diff --git a/frontend-admin/node_modules/.package-lock.json b/frontend-admin/node_modules/.package-lock.json index 5d9c3cd7..261cf3fd 100644 --- a/frontend-admin/node_modules/.package-lock.json +++ b/frontend-admin/node_modules/.package-lock.json @@ -441,6 +441,41 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", + "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", + "peer": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", @@ -984,6 +1019,20 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-transform-object-assign": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.27.1.tgz", + "integrity": "sha512-LP6tsnirA6iy13uBKiYgjJsfQrodmlSrpZModtlo1Vk8sOO68gfo7dfA9TGJyEgxTiO7czK4EGZm8FJEZtk4kQ==", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-transform-object-rest-spread": { "version": "7.28.6", "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.6.tgz", @@ -6601,29 +6650,24 @@ } }, "node_modules/react-native-reanimated": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-4.1.6.tgz", - "integrity": "sha512-F+ZJBYiok/6Jzp1re75F/9aLzkgoQCOh4yxrnwATa8392RvM3kx+fiXXFvwcgE59v48lMwd9q0nzF1oJLXpfxQ==", + "version": "3.6.3", + "resolved": "https://registry.npmjs.org/react-native-reanimated/-/react-native-reanimated-3.6.3.tgz", + "integrity": "sha512-2KkkPozoIvDbJcHuf8qeyoLROXQxizSi+2CTCkuNVkVZOxxY4B0Omvgq61aOQhSZUh/649x1YHoAaTyGMGDJUw==", "dependencies": { - "react-native-is-edge-to-edge": "^1.2.1", - "semver": "7.7.2" + "@babel/plugin-transform-object-assign": "^7.16.7", + "@babel/preset-typescript": "^7.16.7", + "convert-source-map": "^2.0.0", + "invariant": "^2.2.4" }, "peerDependencies": { "@babel/core": "^7.0.0-0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0-0", + "@babel/plugin-proposal-optional-chaining": "^7.0.0-0", + "@babel/plugin-transform-arrow-functions": "^7.0.0-0", + "@babel/plugin-transform-shorthand-properties": "^7.0.0-0", + "@babel/plugin-transform-template-literals": "^7.0.0-0", "react": "*", - "react-native": "*", - "react-native-worklets": ">=0.5.0" - } - }, - "node_modules/react-native-reanimated/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" + "react-native": "*" } }, "node_modules/react-native-safe-area-context": { diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp deleted file mode 100644 index 02588bd6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp +++ /dev/null @@ -1,89 +0,0 @@ -#include -#include - -#include - -namespace reanimated { - -AnimatedSensorModule::AnimatedSensorModule( - const PlatformDepMethodsHolder &platformDepMethodsHolder) - : platformRegisterSensorFunction_(platformDepMethodsHolder.registerSensor), - platformUnregisterSensorFunction_( - platformDepMethodsHolder.unregisterSensor) {} - -AnimatedSensorModule::~AnimatedSensorModule() { - react_native_assert( - sensorsIds_.empty() && - "Tried to deallocate AnimatedSensorModule with registered sensors"); -} - -jsi::Value AnimatedSensorModule::registerSensor( - jsi::Runtime &rt, - const std::shared_ptr &uiWorkletRuntime, - const jsi::Value &sensorTypeValue, - const jsi::Value &interval, - const jsi::Value &iosReferenceFrame, - const jsi::Value &sensorDataHandler) { - SensorType sensorType = static_cast(sensorTypeValue.asNumber()); - - auto serializableHandler = extractSerializableOrThrow( - rt, - sensorDataHandler, - "[Reanimated] Sensor event handler must be a worklet."); - - int sensorId = platformRegisterSensorFunction_( - sensorType, - interval.asNumber(), - iosReferenceFrame.asNumber(), - [sensorType, - serializableHandler, - weakUiWorkletRuntime = std::weak_ptr(uiWorkletRuntime)]( - double newValues[], int orientationDegrees) { - auto uiWorkletRuntime = weakUiWorkletRuntime.lock(); - if (uiWorkletRuntime == nullptr) { - return; - } - - jsi::Runtime &uiRuntime = uiWorkletRuntime->getJSIRuntime(); - jsi::Object value(uiRuntime); - if (sensorType == SensorType::ROTATION_VECTOR) { - // TODO: timestamp should be provided by the platform implementation - // such that the native side has a chance of providing a true event - // timestamp - value.setProperty(uiRuntime, "qx", newValues[0]); - value.setProperty(uiRuntime, "qy", newValues[1]); - value.setProperty(uiRuntime, "qz", newValues[2]); - value.setProperty(uiRuntime, "qw", newValues[3]); - value.setProperty(uiRuntime, "yaw", newValues[4]); - value.setProperty(uiRuntime, "pitch", newValues[5]); - value.setProperty(uiRuntime, "roll", newValues[6]); - } else { - value.setProperty(uiRuntime, "x", newValues[0]); - value.setProperty(uiRuntime, "y", newValues[1]); - value.setProperty(uiRuntime, "z", newValues[2]); - } - value.setProperty( - uiRuntime, "interfaceOrientation", orientationDegrees); - - uiWorkletRuntime->runGuarded(serializableHandler, value); - }); - if (sensorId != -1) { - sensorsIds_.insert(sensorId); - } - return jsi::Value(sensorId); -} - -void AnimatedSensorModule::unregisterSensor(const jsi::Value &sensorId) { - // It is called during sensor hook unmounting - sensorsIds_.erase(sensorId.getNumber()); - platformUnregisterSensorFunction_(sensorId.asNumber()); -} - -void AnimatedSensorModule::unregisterAllSensors() { - for (auto sensorId : sensorsIds_) { - platformUnregisterSensorFunction_(sensorId); - } - sensorsIds_.clear(); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h deleted file mode 100644 index f813079b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include - -#include -#include - -#include - -#include -#include - -namespace reanimated { - -using namespace facebook; -using namespace worklets; - -enum SensorType { - ACCELEROMETER = 1, - GYROSCOPE = 2, - GRAVITY = 3, - MAGNETIC_FIELD = 4, - ROTATION_VECTOR = 5, -}; - -class AnimatedSensorModule { - std::unordered_set sensorsIds_; - RegisterSensorFunction platformRegisterSensorFunction_; - UnregisterSensorFunction platformUnregisterSensorFunction_; - - public: - AnimatedSensorModule( - const PlatformDepMethodsHolder &platformDepMethodsHolder); - ~AnimatedSensorModule(); - - jsi::Value registerSensor( - jsi::Runtime &rt, - const std::shared_ptr &uiWorkletRuntime, - const jsi::Value &sensorType, - const jsi::Value &interval, - const jsi::Value &iosReferenceFrame, - const jsi::Value &sensorDataContainer); - void unregisterSensor(const jsi::Value &sensorId); - void unregisterAllSensors(); -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/InterpolatorRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/InterpolatorRegistry.cpp deleted file mode 100644 index bb1d3076..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/InterpolatorRegistry.cpp +++ /dev/null @@ -1,427 +0,0 @@ -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#include - -namespace reanimated::css { - -namespace { - -// Private implementation details -const auto BLACK = CSSColor(0, 0, 0, 255); -const auto TRANSPARENT = CSSColor::Transparent; - -InterpolatorFactoriesRecord mergeInterpolators( - const std::vector &maps) { - InterpolatorFactoriesRecord result; - for (const auto &map : maps) { - result.insert(map.begin(), map.end()); - } - return result; -} - -// ========================== -// React Native Interpolators -// ========================== - -const InterpolatorFactoriesRecord FLEX_INTERPOLATORS = { - {"alignContent", value("flex-start")}, - {"alignItems", value("stretch")}, - {"alignSelf", value("auto")}, - {"aspectRatio", value("auto")}, - {"borderBottomWidth", value(0)}, - {"borderEndWidth", value(0)}, - {"borderLeftWidth", value(0)}, - {"borderRightWidth", value(0)}, - {"borderStartWidth", value(0)}, - {"borderTopWidth", value(0)}, - {"borderWidth", value(0)}, - {"bottom", - value(RelativeTo::Parent, "height", "auto")}, - {"boxSizing", value("border-box")}, - {"display", value("flex")}, - {"end", value(RelativeTo::Parent, "width", "auto")}, - {"flex", value(0)}, - {"flexBasis", - value(RelativeTo::Parent, "width", "auto")}, - {"flexDirection", value("column")}, - {"rowGap", value(RelativeTo::Self, "height", 0)}, - {"columnGap", value(RelativeTo::Self, "width", 0)}, - {"flexGrow", value(0)}, - {"flexShrink", value(0)}, - {"flexWrap", value("no-wrap")}, - {"height", - value(RelativeTo::Parent, "height", "auto")}, - {"justifyContent", value("flex-start")}, - {"left", value(RelativeTo::Parent, "width", "auto")}, - {"margin", value(RelativeTo::Parent, "width", 0)}, - {"marginBottom", - value(RelativeTo::Parent, "width", 0)}, - {"marginEnd", value(RelativeTo::Parent, "width", 0)}, - {"marginHorizontal", - value(RelativeTo::Parent, "width", 0)}, - {"marginLeft", - value(RelativeTo::Parent, "width", 0)}, - {"marginRight", - value(RelativeTo::Parent, "width", 0)}, - {"marginStart", - value(RelativeTo::Parent, "width", 0)}, - {"marginTop", value(RelativeTo::Parent, "width", 0)}, - {"marginVertical", - value(RelativeTo::Parent, "width", 0)}, - {"maxHeight", - value(RelativeTo::Parent, "height", "auto")}, - {"maxWidth", - value(RelativeTo::Parent, "width", "auto")}, - {"minHeight", - value(RelativeTo::Parent, "height", "auto")}, - {"minWidth", - value(RelativeTo::Parent, "width", "auto")}, - {"overflow", value("visible")}, - {"padding", value(RelativeTo::Parent, "width", 0)}, - {"paddingBottom", - value(RelativeTo::Parent, "width", 0)}, - {"paddingEnd", - value(RelativeTo::Parent, "width", 0)}, - {"paddingHorizontal", - value(RelativeTo::Parent, "width", 0)}, - {"paddingLeft", - value(RelativeTo::Parent, "width", 0)}, - {"paddingRight", - value(RelativeTo::Parent, "width", 0)}, - {"paddingStart", - value(RelativeTo::Parent, "width", 0)}, - {"paddingTop", - value(RelativeTo::Parent, "width", 0)}, - {"paddingVertical", - value(RelativeTo::Parent, "width", 0)}, - {"position", value("relative")}, - {"right", - value(RelativeTo::Parent, "width", "auto")}, - {"start", - value(RelativeTo::Parent, "width", "auto")}, - {"top", value(RelativeTo::Parent, "height", "auto")}, - {"width", - value(RelativeTo::Parent, "width", "auto")}, - {"zIndex", value(0)}, - {"direction", value("inherit")}}; - -const InterpolatorFactoriesRecord SHADOW_INTERPOLATORS_IOS = { - {"shadowColor", value(BLACK)}, - {"shadowOffset", - record({{"width", value(0)}, {"height", value(0)}})}, - {"shadowRadius", value(0)}, - {"shadowOpacity", value(1)}}; - -const InterpolatorFactoriesRecord TRANSFORMS_INTERPOLATORS = { - {"transformOrigin", - array( - {value(RelativeTo::Self, "width", "50%"), - value(RelativeTo::Self, "height", "50%"), - value(0)})}, - {"transform", - transforms( - {{"perspective", - transformOp(0)}, // 0 - no perspective - {"rotate", transformOp("0deg")}, - {"rotateX", transformOp("0deg")}, - {"rotateY", transformOp("0deg")}, - {"rotateZ", transformOp("0deg")}, - {"scale", transformOp(1)}, - {"scaleX", transformOp(1)}, - {"scaleY", transformOp(1)}, - {"translateX", - transformOp(RelativeTo::Self, "width", 0)}, - {"translateY", - transformOp(RelativeTo::Self, "height", 0)}, - {"skewX", transformOp("0deg")}, - {"skewY", transformOp("0deg")}, - {"matrix", - transformOp(TransformMatrix3D::Identity())}})}, -}; - -const InterpolatorFactoriesRecord VIEW_INTERPOLATORS = mergeInterpolators( - {FLEX_INTERPOLATORS, - SHADOW_INTERPOLATORS_IOS, - TRANSFORMS_INTERPOLATORS, - InterpolatorFactoriesRecord{ - {"backfaceVisibility", value("visible")}, - {"backgroundColor", value(TRANSPARENT)}, - {"borderBlockColor", value(BLACK)}, - {"borderBlockEndColor", value(BLACK)}, - {"borderBlockStartColor", value(BLACK)}, - {"borderBottomColor", value(BLACK)}, - {"borderBottomEndRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderBottomLeftRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderBottomRightRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderBottomStartRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderColor", value(BLACK)}, - {"borderCurve", value("circular")}, - {"borderEndColor", value(BLACK)}, - {"borderEndEndRadius", value(RelativeTo::Self, "width", 0)}, - {"borderEndStartRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderLeftColor", value(BLACK)}, - {"borderRadius", value(RelativeTo::Self, "width", 0)}, - {"borderRightColor", value(BLACK)}, - {"borderStartColor", value(BLACK)}, - {"borderStartEndRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderStartStartRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderStyle", value("solid")}, - {"borderTopColor", value(BLACK)}, - {"borderTopEndRadius", value(RelativeTo::Self, "width", 0)}, - {"borderTopLeftRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderTopRightRadius", - value(RelativeTo::Self, "width", 0)}, - {"borderTopStartRadius", - value(RelativeTo::Self, "width", 0)}, - {"outlineColor", value(BLACK)}, - {"outlineOffset", value(0)}, - {"outlineStyle", value("solid")}, - {"outlineWidth", value(0)}, - {"opacity", value(1)}, - {"elevation", value(0)}, - {"pointerEvents", value("auto")}, - {"isolation", value("auto")}, - {"cursor", value("auto")}, - {"boxShadow", - array({record({ - {"offsetX", value(0)}, - {"offsetY", value(0)}, -#ifdef ANDROID - // For some reason Android crashes when blurRadius is smaller - // than 1, so we use a custom value type that will never be - // smaller than 1 - {"blurRadius", value(1)}, -#else - {"blurRadius", value(0)}, -#endif - {"spreadDistance", value(0)}, - {"color", value(TRANSPARENT)}, - {"inset", value(false)}, - })})}, - {"mixBlendMode", value("normal")}}}); - -const InterpolatorFactoriesRecord TEXT_INTERPOLATORS_IOS = { - {"fontVariant", - value>(std::vector{})}, - {"textDecorationColor", value(BLACK)}, - {"textDecorationStyle", value("solid")}, - {"writingDirection", value("auto")}, -}; - -const InterpolatorFactoriesRecord TEXT_INTERPOLATORS_ANDROID = { - {"textAlignVertical", value("auto")}, - {"verticalAlign", value("auto")}, - {"includeFontPadding", value(false)}, -}; - -const InterpolatorFactoriesRecord TEXT_INTERPOLATORS = mergeInterpolators( - {VIEW_INTERPOLATORS, - TEXT_INTERPOLATORS_IOS, - TEXT_INTERPOLATORS_ANDROID, - InterpolatorFactoriesRecord{ - {"color", value(BLACK)}, - {"fontFamily", value("inherit")}, - {"fontSize", value(14)}, - {"fontStyle", value("normal")}, - {"fontWeight", value("normal")}, - {"letterSpacing", value(0)}, - {"lineHeight", - value(14)}, // TODO - should inherit from fontSize - {"textAlign", value("auto")}, - {"textDecorationLine", value("none")}, - {"textShadowColor", value(BLACK)}, - {"textShadowOffset", - record( - {{"width", value(0)}, - {"height", value(0)}})}, - {"textShadowRadius", value(0)}, - {"textTransform", value("none")}, - {"userSelect", value("auto")}, - }}); - -const InterpolatorFactoriesRecord IMAGE_INTERPOLATORS = mergeInterpolators( - {VIEW_INTERPOLATORS, - InterpolatorFactoriesRecord{ - {"resizeMode", value("cover")}, - {"overlayColor", value(BLACK)}, - {"tintColor", value(BLACK)}, - }}); - -// ================= -// SVG INTERPOLATORS -// ================= - -const InterpolatorFactoriesRecord SVG_COLOR_INTERPOLATORS = { - {"color", value(BLACK)}, -}; - -const InterpolatorFactoriesRecord SVG_FILL_INTERPOLATORS = { - {"fill", value(BLACK)}, - {"fillOpacity", value(1)}, - {"fillRule", value(0)}, -}; - -const InterpolatorFactoriesRecord SVG_STROKE_INTERPOLATORS = { - {"stroke", value(BLACK)}, - {"strokeWidth", value(1)}, - {"strokeOpacity", value(1)}, - {"strokeDasharray", - value(SVGStrokeDashArray())}, - {"strokeDashoffset", value(0)}, - {"strokeLinecap", value(0)}, - {"strokeLinejoin", value(0)}, - {"strokeMiterlimit", value(4)}, - {"vectorEffect", value(0)}, -}; - -const InterpolatorFactoriesRecord SVG_CLIP_INTERPOLATORS = { - {"clipRule", value("nonzero")}, - {"clipPath", value("none")}, -}; - -const InterpolatorFactoriesRecord SVG_TRANSFORM_INTERPOLATORS = { - {"translateX", value(0)}, - {"translateY", value(0)}, - {"originX", value(0)}, - {"originY", value(0)}, - {"scaleX", value(1)}, - {"scaleY", value(1)}, - {"skewX", value(0)}, - {"skewY", value(0)}, - {"rotation", value(0)}, -}; - -const InterpolatorFactoriesRecord SVG_COMMON_INTERPOLATORS = - mergeInterpolators({ - SVG_COLOR_INTERPOLATORS, - SVG_FILL_INTERPOLATORS, - SVG_STROKE_INTERPOLATORS, - }); - -const InterpolatorFactoriesRecord SVG_CIRCLE_INTERPOLATORS = mergeInterpolators( - {SVG_COMMON_INTERPOLATORS, - InterpolatorFactoriesRecord{ - {"cx", value(0)}, - {"cy", value(0)}, - {"r", value(0)}, - {"opacity", value(1)}, - }}); - -const InterpolatorFactoriesRecord SVG_ELLIPSE_INTERPOLATORS = - mergeInterpolators( - {SVG_COMMON_INTERPOLATORS, - InterpolatorFactoriesRecord{ - {"cx", value(0)}, - {"cy", value(0)}, - {"rx", value(0)}, - {"ry", value(0)}, - {"opacity", value(1)}, - }}); - -const InterpolatorFactoriesRecord SVG_LINE_INTERPOLATORS = mergeInterpolators( - {SVG_COMMON_INTERPOLATORS, - InterpolatorFactoriesRecord{ - {"x1", value(0)}, - {"y1", value(0)}, - {"x2", value(0)}, - {"y2", value(0)}, - {"opacity", value(1)}, - }}); - -const InterpolatorFactoriesRecord SVG_RECT_INTERPOLATORS = mergeInterpolators( - {SVG_COMMON_INTERPOLATORS, - InterpolatorFactoriesRecord{ - {"x", value(0)}, - {"y", value(0)}, - {"width", value(0)}, - {"height", value(0)}, - {"rx", value(0)}, - {"ry", value(0)}, - {"opacity", value(1)}, - }}); - -const InterpolatorFactoriesRecord SVG_PATH_INTERPOLATORS = mergeInterpolators( - {SVG_COMMON_INTERPOLATORS, - InterpolatorFactoriesRecord{ - // TODO - add more properties - }}); - -// ================== -// COMPONENT REGISTRY -// ================== - -ComponentInterpolatorsMap initializeRegistry() { - ComponentInterpolatorsMap registry = { - // React Native Components - {"View", VIEW_INTERPOLATORS}, - {"Paragraph", TEXT_INTERPOLATORS}, - {"Image", IMAGE_INTERPOLATORS}, - }; - - if (StaticFeatureFlags::getFlag( - "EXPERIMENTAL_CSS_ANIMATIONS_FOR_SVG_COMPONENTS")) { - // SVG Components - registry["RNSVGCircle"] = SVG_CIRCLE_INTERPOLATORS; - registry["RNSVGEllipse"] = SVG_ELLIPSE_INTERPOLATORS; - registry["RNSVGLine"] = SVG_LINE_INTERPOLATORS; - registry["RNSVGPath"] = SVG_PATH_INTERPOLATORS; - registry["RNSVGRect"] = SVG_RECT_INTERPOLATORS; - } - - return registry; -} - -ComponentInterpolatorsMap registry = initializeRegistry(); - -} // namespace - -const InterpolatorFactoriesRecord &getComponentInterpolators( - const std::string &componentName) { - if (auto it = registry.find(componentName); it != registry.end()) { - return it->second; - } - - // Use View interpolators as a fallback for unknown components - // (e.g. we get the ScrollView component name for the ScrollView component - // but it should be styled in the same way as a View) - return VIEW_INTERPOLATORS; -} - -void registerComponentInterpolators( - const std::string &componentName, - const InterpolatorFactoriesRecord &interpolators) { - registry[componentName] = interpolators; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/InterpolatorRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/InterpolatorRegistry.h deleted file mode 100644 index 5d841ba0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/InterpolatorRegistry.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include - -#include -#include - -namespace reanimated::css { - -using ComponentInterpolatorsMap = - std::unordered_map; - -const InterpolatorFactoriesRecord &getComponentInterpolators( - const std::string &componentName); - -void registerComponentInterpolators( - const std::string &componentName, - const InterpolatorFactoriesRecord &interpolators); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/definitions.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/definitions.h deleted file mode 100644 index d043127e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/definitions.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include -#include -#include - -namespace reanimated::css { - -using namespace facebook; - -using PropertyNames = std::vector; -using PropertyPath = std::vector; -/** - * If nullopt - all style properties can trigger transition - * If empty vector - no style property can trigger transition - * Otherwise - only specified style properties can trigger transition - */ -using TransitionProperties = std::optional; - -using EasingFunction = std::function; -using ColorChannels = std::array; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/Quaternion.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/Quaternion.cpp deleted file mode 100644 index 60f18c9d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/Quaternion.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -bool Quaternion::operator==(const Quaternion &other) const { - return x == other.x && y == other.y && z == other.z && w == other.w; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const Quaternion &quaternion) { - os << "Quaternion(" << quaternion.x << ", " << quaternion.y << ", " - << quaternion.z << ", " << quaternion.w << ")"; - return os; -} - -#endif // NDEBUG - -Quaternion Quaternion::interpolate(const double t, const Quaternion &other) - const { - const double kEpsilon = 1e-5; - Quaternion copy = *this; - - double cosHalfAngle = - copy.x * other.x + copy.y * other.y + copy.z * other.z + copy.w * other.w; - - if (cosHalfAngle < 0.0) { - copy.x = -copy.x; - copy.y = -copy.y; - copy.z = -copy.z; - copy.w = -copy.w; - cosHalfAngle = -cosHalfAngle; - } - - if (cosHalfAngle > 1) - cosHalfAngle = 1; - - double sinHalfAngle = std::sqrt(1.0 - cosHalfAngle * cosHalfAngle); - if (sinHalfAngle < kEpsilon) { - // Quaternions share common axis and angle. - return *this; - } - - double halfAngle = std::acos(cosHalfAngle); - double scale = std::sin((1 - t) * halfAngle) / sinHalfAngle; - double invscale = std::sin(t * halfAngle) / sinHalfAngle; - - return { - copy.x * scale + other.x * invscale, - copy.y * scale + other.y * invscale, - copy.z * scale + other.z * invscale, - copy.w * scale + other.w * invscale}; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/Quaternion.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/Quaternion.h deleted file mode 100644 index 67336b86..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/Quaternion.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#ifndef NDEBUG -#include -#endif // NDEBUG - -namespace reanimated::css { - -struct Quaternion { - double x, y, z, w; - - bool operator==(const Quaternion &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const Quaternion &quaternion); -#endif // NDEBUG - - Quaternion interpolate(double progress, const Quaternion &other) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.h deleted file mode 100644 index 805bc8af..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.h +++ /dev/null @@ -1,147 +0,0 @@ -#pragma once - -#include - -#include -#include -#include - -namespace reanimated::css { - -class TransformMatrix { - public: - virtual ~TransformMatrix() = default; - - virtual double determinant() const = 0; - - virtual double &operator[](size_t index) = 0; - virtual const double &operator[](size_t index) const = 0; - - virtual size_t getDimension() const = 0; - - virtual std::string toString() const = 0; - virtual folly::dynamic toDynamic() const = 0; -}; - -template -class TransformMatrixBase : public TransformMatrix { - public: - static constexpr size_t SIZE = TDimension * TDimension; - using MatrixArray = std::array; - - explicit TransformMatrixBase(MatrixArray matrix) - : matrix_(std::move(matrix)) {} - - explicit TransformMatrixBase(jsi::Runtime &rt, const jsi::Value &value) { - const auto array = value.asObject(rt).asArray(rt); - if (array.size(rt) != SIZE) { - throw std::invalid_argument( - "[Reanimated] Matrix array should have " + std::to_string(SIZE) + - " elements"); - } - - for (size_t i = 0; i < SIZE; ++i) { - matrix_[i] = array.getValueAtIndex(rt, i).asNumber(); - } - } - - explicit TransformMatrixBase(const folly::dynamic &array) { - if (!array.isArray() || array.size() != SIZE) { - throw std::invalid_argument( - "[Reanimated] Matrix array should have " + std::to_string(SIZE) + - " elements"); - } - - for (size_t i = 0; i < SIZE; ++i) { - matrix_[i] = array[i].asDouble(); - } - } - - virtual bool operator==(const TDerived &other) const = 0; - - double &operator[](size_t index) override { - return matrix_[index]; - } - - const double &operator[](size_t index) const override { - return matrix_[index]; - } - - TDerived operator*(const TDerived &rhs) const { - return TDerived(multiply(rhs)); - } - - TDerived &operator*=(const TDerived &rhs) { - matrix_ = multiply(rhs); - return static_cast(*this); - } - - std::string toString() const override { - std::string result = "["; - for (size_t i = 0; i < SIZE; ++i) { - result += std::to_string(matrix_[i]); - if (i < SIZE - 1) { - result += ", "; - } - } - result += "]"; - return result; - } - - folly::dynamic toDynamic() const override { - folly::dynamic result = folly::dynamic::array; - for (size_t i = 0; i < SIZE; ++i) { - result.push_back(matrix_[i]); - } - return result; - } - - size_t getDimension() const override { - return TDimension; - } - - bool isSingular() const { - return determinant() == 0; - } - - bool normalize() { - const auto last = matrix_[SIZE - 1]; - if (last == 0) { - return false; - } - if (last == 1) { - return true; - } - - for (size_t i = 0; i < SIZE; ++i) { - matrix_[i] /= last; - } - return true; - } - - void transpose() { - for (size_t i = 0; i < TDimension; ++i) { - for (size_t j = i + 1; j < TDimension; ++j) { - std::swap(matrix_[i * TDimension + j], matrix_[j * TDimension + i]); - } - } - } - - protected: - std::array matrix_; - - MatrixArray multiply(const TDerived &rhs) const { - std::array result{}; - for (size_t i = 0; i < TDimension; ++i) { - for (size_t j = 0; j < TDimension; ++j) { - for (size_t k = 0; k < TDimension; ++k) { - result[i * TDimension + j] += - matrix_[i * TDimension + k] * rhs[k * TDimension + j]; - } - } - } - return result; - } -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.cpp deleted file mode 100644 index a9cbc323..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.cpp +++ /dev/null @@ -1,259 +0,0 @@ -#include - -namespace reanimated::css { - -TransformMatrix2D::Decomposed TransformMatrix2D::Decomposed::interpolate( - const double progress, - const TransformMatrix2D::Decomposed &other) const { - return { - .scale = scale.interpolate(progress, other.scale), - .skew = skew + (other.skew - skew) * progress, - .rotation = rotation + (other.rotation - rotation) * progress, - .translation = translation.interpolate(progress, other.translation)}; -} - -#ifndef NDEBUG - -std::ostream &operator<<( - std::ostream &os, - const TransformMatrix2D::Decomposed &decomposed) { - os << "TransformMatrix2D::Decomposed(scale=" << decomposed.scale - << ", skew=" << decomposed.skew << ", rotation=" << decomposed.rotation - << ", translation=" << decomposed.translation << ")"; - return os; -} - -#endif // NDEBUG - -TransformMatrix2D TransformMatrix2D::Identity() { - // clang-format off - return TransformMatrix2D({ - 1, 0, 0, - 0, 1, 0, - 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - const auto cosVal = std::cos(v); - const auto sinVal = std::sin(v); - // clang-format off - return TransformMatrix2D({ - cosVal, -sinVal, 0, - sinVal, cosVal, 0, - 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - // clang-format off - return TransformMatrix2D({ - v, 0, 0, - 0, v, 0, - 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - // clang-format off - return TransformMatrix2D({ - v, 0, 0, - 0, 1, 0, - 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - // clang-format off - return TransformMatrix2D({ - 1, 0, 0, - 0, v, 0, - 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - // clang-format off - return TransformMatrix2D({ - 1, 0, 0, - 0, 1, 0, - v, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - // clang-format off - return TransformMatrix2D({ - 1, 0, 0, - 0, 1, 0, - 0, v, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - const auto tanVal = std::tan(v); - // clang-format off - return TransformMatrix2D({ - 1, 0, 0, - tanVal, 1, 0, - 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix2D TransformMatrix2D::create(double v) { - const auto tanVal = std::tan(v); - // clang-format off - return TransformMatrix2D({ - 1, tanVal, 0, - 0, 1, 0, - 0, 0, 1 - }); - // clang-format on -} - -template -TransformMatrix2D TransformMatrix2D::create(double value) { - throw std::invalid_argument( - "[Reanimated] Cannot create TransformMatrix2D from: " + - getOperationNameFromType(TOperation)); -} - -bool TransformMatrix2D::operator==(const TransformMatrix2D &other) const { - return matrix_ == other.matrix_; -} - -double TransformMatrix2D::determinant() const { - return (matrix_[0] * matrix_[4] * matrix_[8]) + - (matrix_[1] * matrix_[5] * matrix_[6]) + - (matrix_[2] * matrix_[3] * matrix_[7]) - - (matrix_[2] * matrix_[4] * matrix_[6]) - - (matrix_[1] * matrix_[3] * matrix_[8]) - - (matrix_[0] * matrix_[5] * matrix_[7]); -} - -void TransformMatrix2D::translate2d(const Vector2D &translation) { - for (size_t i = 0; i < 3; ++i) { - matrix_[6 + i] += - translation[0] * matrix_[i] + translation[1] * matrix_[3 + i]; - } -} - -void TransformMatrix2D::scale2d(const Vector2D &scale) { - for (size_t i = 0; i < 3; ++i) { - matrix_[i] *= scale[0]; - matrix_[3 + i] *= scale[1]; - } -} - -std::optional TransformMatrix2D::decompose() - const { - auto matrixCp = *this; - - if (!matrixCp.normalize()) { - return std::nullopt; - } - - const auto translation = matrixCp.getTranslation(); - - // Take the 2×2 linear part into two column vectors (col-major) - std::array rows; - for (size_t i = 0; i < 2; ++i) { - rows[i] = Vector2D(matrixCp[i * 3], matrixCp[i * 3 + 1]); - } - - auto [scale, skew] = computeScaleAndSkew(rows); - - // At this point, the matrix (in rows) is orthonormal. - // Check for a coordinate system flip. If the determinant - // is negative, then negate the matrix and the scaling factors. - if (rows[0].cross(rows[1]) < 0) { - scale *= -1; - for (auto &row : rows) { - row *= -1; - } - } - - const auto rotation = computeRotation(rows); - - return TransformMatrix2D::Decomposed{ - .scale = scale, - .skew = skew, - .rotation = rotation, - .translation = translation}; -} - -TransformMatrix2D TransformMatrix2D::recompose( - const TransformMatrix2D::Decomposed &decomposed) { - auto result = TransformMatrix2D::Identity(); - - // Apply Translation - result.translate2d(decomposed.translation); - - // Apply Rotation - const auto rotationMatrix = - TransformMatrix2D::create(decomposed.rotation); - result = rotationMatrix * result; - - // Apply XY shear - if (decomposed.skew != 0) { - auto tmp = TransformMatrix2D::Identity(); - tmp[3] = decomposed.skew; - result = tmp * result; - } - - // Apply Scale - result.scale2d(decomposed.scale); - - return result; -} - -Vector2D TransformMatrix2D::getTranslation() const { - return Vector2D(matrix_[6], matrix_[7]); -} - -std::pair TransformMatrix2D::computeScaleAndSkew( - std::array &rows) { - Vector2D scale; - - // Compute X scale and normalize first row - scale[0] = rows[0].length(); - rows[0].normalize(); - - // Compute XY shear and orthogonalize second row against first - double skew = rows[0].dot(rows[1]); - rows[1] = rows[1].addScaled(rows[0], -skew); - - // Now, compute Y scale and normalize second row - scale[1] = rows[1].length(); - rows[1].normalize(); - - // Next, Normalize shear by Y scale - skew /= scale[1]; - - return {scale, skew}; -} - -double TransformMatrix2D::computeRotation(std::array &rows) { - // For 2D, we can compute rotation directly from the orthonormal matrix - // The rotation angle is atan2(m10, m00) where m10 is rows[1][0] and m00 is - // rows[0][0] - return std::atan2(rows[1][0], rows[0][0]); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.h deleted file mode 100644 index 1dd9a665..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.h +++ /dev/null @@ -1,58 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include - -namespace reanimated::css { - -namespace { -static constexpr size_t MATRIX_2D_DIMENSION = 3; // 3x3 matrix -} - -class TransformMatrix2D - : public TransformMatrixBase { - public: - struct Decomposed { - Vector2D scale; - double skew; - double rotation; - Vector2D translation; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const Decomposed &decomposed); -#endif // NDEBUG - - Decomposed interpolate(double progress, const Decomposed &other) const; - }; - - using TransformMatrixBase:: - TransformMatrixBase; - - static TransformMatrix2D Identity(); - - template - static TransformMatrix2D create(double value); - - bool operator==(const TransformMatrix2D &other) const override; - - double determinant() const override; - void translate2d(const Vector2D &translation); - void scale2d(const Vector2D &scale); - - std::optional decompose() const; - static TransformMatrix2D recompose(const Decomposed &decomposed); - - private: - Vector2D getTranslation() const; - static std::pair computeScaleAndSkew( - std::array &rows); - static double computeRotation(std::array &rows); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.cpp deleted file mode 100644 index d2d3dc24..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.cpp +++ /dev/null @@ -1,583 +0,0 @@ -#include -#include - -#include - -namespace reanimated::css { - -TransformMatrix3D::Decomposed TransformMatrix3D::Decomposed::interpolate( - const double progress, - const TransformMatrix3D::Decomposed &other) const { - return { - .scale = scale.interpolate(progress, other.scale), - .skew = skew.interpolate(progress, other.skew), - .quaternion = quaternion.interpolate(progress, other.quaternion), - .translation = translation.interpolate(progress, other.translation), - .perspective = perspective.interpolate(progress, other.perspective)}; -} - -#ifndef NDEBUG - -std::ostream &operator<<( - std::ostream &os, - const TransformMatrix3D::Decomposed &decomposed) { - os << "TransformMatrix3D::Decomposed(scale=" << decomposed.scale - << ", skew=" << decomposed.skew << ", quaternion=" << decomposed.quaternion - << ", translation=" << decomposed.translation - << ", perspective=" << decomposed.perspective << ")"; - return os; -} - -#endif // NDEBUG - -TransformMatrix3D TransformMatrix3D::Identity() { - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -// Template specializations for TransformMatrix3D::create -template <> -TransformMatrix3D TransformMatrix3D::create( - double v) { - if (v == 0) { - // Ignore perspective if it is invalid - return TransformMatrix3D::Identity(); - } - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, -1.0 / v, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - const auto cosVal = std::cos(v); - const auto sinVal = std::sin(v); - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - 0, cosVal, sinVal, 0, - 0, -sinVal, cosVal, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - const auto cosVal = std::cos(v); - const auto sinVal = std::sin(v); - // clang-format off - return TransformMatrix3D({ - cosVal, 0, -sinVal, 0, - 0, 1, 0, 0, - sinVal, 0, cosVal, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - const auto cosVal = std::cos(v); - const auto sinVal = std::sin(v); - // clang-format off - return TransformMatrix3D({ - cosVal, sinVal, 0, 0, - -sinVal, cosVal, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - return TransformMatrix3D::create(v); -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - // clang-format off - return TransformMatrix3D({ - v, 0, 0, 0, - 0, v, 0, 0, - 0, 0, v, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - // clang-format off - return TransformMatrix3D({ - v, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - 0, v, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - v, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, v, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - const auto tanVal = std::tan(v); - // clang-format off - return TransformMatrix3D({ - 1, 0, 0, 0, - tanVal, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template <> -TransformMatrix3D TransformMatrix3D::create(double v) { - const auto tanVal = std::tan(v); - // clang-format off - return TransformMatrix3D({ - 1, tanVal, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -template -TransformMatrix3D TransformMatrix3D::create(double value) { - throw std::invalid_argument( - "[Reanimated] Cannot create TransformMatrix3D from: " + - getOperationNameFromType(TOperation)); -} - -bool TransformMatrix3D::operator==(const TransformMatrix3D &other) const { - return matrix_ == other.matrix_; -} - -Vector4D operator*(const Vector4D &v, const TransformMatrix3D &m) { - Vector4D result; - - for (size_t i = 0; i < 4; ++i) { - for (size_t j = 0; j < 4; ++j) { - result[i] += v[j] * m[j * 4 + i]; - } - } - - return result; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const TransformMatrix3D &matrix) { - std::string result = "TransformMatrix3D{"; - for (size_t i = 0; i < 16; ++i) { - result += std::to_string(matrix[i]); - if (i < 15) { - result += ", "; - } - } - result += "}"; - return os << result; -} - -#endif // NDEBUG - -/** - * Calculates the determinant of the 4x4 matrix using the minor (Laplace - * expansion) method. - * - * | a1 a2 a3 a4 | - * | b1 b2 b3 b4 | - * | c1 c2 c3 c4 | - * | d1 d2 d3 d4 | - */ -double TransformMatrix3D::determinant() const { - const double a1 = matrix_[0]; - const double b1 = matrix_[1]; - const double c1 = matrix_[2]; - const double d1 = matrix_[3]; - - const double a2 = matrix_[4]; - const double b2 = matrix_[5]; - const double c2 = matrix_[6]; - const double d2 = matrix_[7]; - - const double a3 = matrix_[8]; - const double b3 = matrix_[9]; - const double c3 = matrix_[10]; - const double d3 = matrix_[11]; - - const double a4 = matrix_[12]; - const double b4 = matrix_[13]; - const double c4 = matrix_[14]; - const double d4 = matrix_[15]; - - return a1 * determinant3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) - - b1 * determinant3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4) + - c1 * determinant3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4) - - d1 * determinant3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4); -} - -void TransformMatrix3D::adjugate() { - const double a1 = matrix_[0]; - const double b1 = matrix_[1]; - const double c1 = matrix_[2]; - const double d1 = matrix_[3]; - - const double a2 = matrix_[4]; - const double b2 = matrix_[5]; - const double c2 = matrix_[6]; - const double d2 = matrix_[7]; - - const double a3 = matrix_[8]; - const double b3 = matrix_[9]; - const double c3 = matrix_[10]; - const double d3 = matrix_[11]; - - const double a4 = matrix_[12]; - const double b4 = matrix_[13]; - const double c4 = matrix_[14]; - const double d4 = matrix_[15]; - - matrix_[0] = determinant3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4); - matrix_[4] = -determinant3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4); - matrix_[8] = determinant3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4); - matrix_[12] = -determinant3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4); - - matrix_[1] = -determinant3x3(b1, b3, b4, c1, c3, c4, d1, d3, d4); - matrix_[5] = determinant3x3(a1, a3, a4, c1, c3, c4, d1, d3, d4); - matrix_[9] = -determinant3x3(a1, a3, a4, b1, b3, b4, d1, d3, d4); - matrix_[13] = determinant3x3(a1, a3, a4, b1, b3, b4, c1, c3, c4); - - matrix_[2] = determinant3x3(b1, b2, b4, c1, c2, c4, d1, d2, d4); - matrix_[6] = -determinant3x3(a1, a2, a4, c1, c2, c4, d1, d2, d4); - matrix_[10] = determinant3x3(a1, a2, a4, b1, b2, b4, d1, d2, d4); - matrix_[14] = -determinant3x3(a1, a2, a4, b1, b2, b4, c1, c2, c4); - - matrix_[3] = -determinant3x3(b1, b2, b3, c1, c2, c3, d1, d2, d3); - matrix_[7] = determinant3x3(a1, a2, a3, c1, c2, c3, d1, d2, d3); - matrix_[11] = -determinant3x3(a1, a2, a3, b1, b2, b3, d1, d2, d3); - matrix_[15] = determinant3x3(a1, a2, a3, b1, b2, b3, c1, c2, c3); -} - -bool TransformMatrix3D::invert() { - const auto det = determinant(); - - // If the determinant is invalid (zero, very small number, etc.), then the - // matrix is not invertible - if (!std::isnormal(det)) { - return false; - } - - adjugate(); - for (size_t i = 0; i < 16; ++i) { - matrix_[i] /= det; - } - - return true; -} - -void TransformMatrix3D::translate3d(const Vector3D &translation) { - for (size_t i = 0; i < 4; ++i) { - matrix_[12 + i] += translation[0] * matrix_[i] + - translation[1] * matrix_[4 + i] + translation[2] * matrix_[8 + i]; - } -} - -void TransformMatrix3D::scale3d(const Vector3D &scale) { - for (size_t i = 0; i < 4; ++i) { - matrix_[i] *= scale[0]; - matrix_[4 + i] *= scale[1]; - matrix_[8 + i] *= scale[2]; - } -} - -std::optional TransformMatrix3D::decompose() - const { - auto matrixCp = *this; - - if (!matrixCp.normalize()) { - return std::nullopt; - } - const auto perspective = matrixCp.computePerspective(); - if (!perspective) { - return std::nullopt; - } - const auto translation = matrixCp.getTranslation(); - - // Move the remaining matrix to 3 separate column vectors for easier - // processing - std::array rows; - for (size_t i = 0; i < 3; ++i) { - rows[i] = - Vector3D(matrixCp[i * 4], matrixCp[i * 4 + 1], matrixCp[i * 4 + 2]); - } - - auto [scale, skew] = computeScaleAndSkew(rows); - - // At this point, the matrix (in rows) is orthonormal. - // Check for a coordinate system flip. If the determinant - // is negative, then negate the matrix and the scaling factors. - if (rows[0].dot(rows[1].cross(rows[2])) < 0) { - scale *= -1; - for (auto &row : rows) { - row *= -1; - } - } - const auto rotation = computeQuaternion(rows); - - return TransformMatrix3D::Decomposed{ - .scale = scale, - .skew = skew, - .quaternion = rotation, - .translation = translation, - .perspective = perspective.value()}; -} - -TransformMatrix3D TransformMatrix3D::recompose( - const TransformMatrix3D::Decomposed &decomposed) { - auto result = TransformMatrix3D::Identity(); - - // Start from applying perspective - for (size_t i = 0; i < 4; ++i) { - result[3 + i * 4] = decomposed.perspective[i]; - } - - // Apply translation - result.translate3d(decomposed.translation); - - // Apply rotation - result = fromQuaternion(decomposed.quaternion) * result; - - // Apply skew - auto hasSkewYZ = decomposed.skew[2] != 0; - auto hasSkewXZ = decomposed.skew[1] != 0; - auto hasSkewXY = decomposed.skew[0] != 0; - - if (hasSkewYZ || hasSkewXZ || hasSkewXY) { - auto tmp = TransformMatrix3D::Identity(); - if (hasSkewYZ) { // YZ - tmp[9] = decomposed.skew[2]; - result = tmp * result; - } - if (hasSkewXZ) { // XZ - tmp[8] = decomposed.skew[1]; - result = tmp * result; - } - if (hasSkewXY) { // XY - tmp[4] = decomposed.skew[0]; - result = tmp * result; - } - } - - // Apply scale - result.scale3d(decomposed.scale); - - return result; -} - -TransformMatrix3D TransformMatrix3D::fromQuaternion(const Quaternion &q) { - const double xx = q.x * q.x; - const double yy = q.y * q.y; - const double zz = q.z * q.z; - const double xz = q.x * q.z; - const double xy = q.x * q.y; - const double yz = q.y * q.z; - const double xw = q.w * q.x; - const double yw = q.w * q.y; - const double zw = q.w * q.z; - - // clang-format off - return TransformMatrix3D({ - 1 - 2 * (yy + zz), 2 * (xy - zw), 2 * (xz + yw), 0, - 2 * (xy + zw), 1 - 2 * (xx + zz), 2 * (yz - xw), 0, - 2 * (xz - yw), 2 * (yz + xw), 1 - 2 * (xx + yy), 0, - 0, 0, 0, 1 - }); - // clang-format on -} - -std::optional TransformMatrix3D::computePerspective() const { - auto perspectiveMatrix = *this; - - for (size_t i = 0; i < 3; ++i) { - perspectiveMatrix[3 + i * 4] = 0; - } - perspectiveMatrix[15] = 1; - - if (perspectiveMatrix.isSingular()) { - return std::nullopt; - } - - if (matrix_[3] == 0 && matrix_[7] == 0 && matrix_[11] == 0) { - // No perspective - return Vector4D{0, 0, 0, 1}; - } - - // Invert and transpose the perspective matrix (we will solve the equation - // by multiplying the rhs vector by the inverse of the perspective matrix) - if (!perspectiveMatrix.invert()) { - return std::nullopt; - } - perspectiveMatrix.transpose(); - - // rhs is the right hand side of the equation we are trying to solve - const Vector4D rhs(matrix_[3], matrix_[7], matrix_[11], matrix_[15]); - // Solve the equation - return rhs * perspectiveMatrix; -} - -Vector3D TransformMatrix3D::getTranslation() const { - return Vector3D(matrix_[12], matrix_[13], matrix_[14]); -} - -std::pair TransformMatrix3D::computeScaleAndSkew( - std::array &rows) { - Vector3D scale, skew; - - // Compute X scale factor and normalize first row - scale[0] = rows[0].length(); - rows[0].normalize(); - - // Compute XY shear factor and make 2nd row orthogonal to 1st. - skew[0] = rows[0].dot(rows[1]); - rows[1] = rows[1].addScaled(rows[0], -skew[0]); - - // Now, compute Y scale and normalize 2nd row. - scale[1] = rows[1].length(); - rows[1].normalize(); - skew[0] /= scale[1]; // normalize XY shear - - // Compute XZ and YZ shears, orthogonalize 3rd row - skew[1] = rows[0].dot(rows[2]); - rows[2] = rows[2].addScaled(rows[0], -skew[1]); - skew[2] = rows[1].dot(rows[2]); - rows[2] = rows[2].addScaled(rows[1], -skew[2]); - - // Next, get Z scale and normalize 3rd row - scale[2] = rows[2].length(); - rows[2].normalize(); - skew[1] /= scale[2]; // normalize XZ shear - skew[2] /= scale[2]; // normalize YZ shear - - return {scale, skew}; -} - -Quaternion TransformMatrix3D::computeQuaternion(std::array &rows) { - double m00 = rows[0][0]; - double m01 = rows[0][1]; - double m02 = rows[0][2]; - - double m10 = rows[1][0]; - double m11 = rows[1][1]; - double m12 = rows[1][2]; - - double m20 = rows[2][0]; - double m21 = rows[2][1]; - double m22 = rows[2][2]; - - Quaternion q; - double trace = m00 + m11 + m22; // Trace of the matrix - - if (trace > 0.0) { - double s = 0.5 / sqrt(trace + 1.0); - q.w = 0.25 / s; - q.x = (m21 - m12) * s; - q.y = (m02 - m20) * s; - q.z = (m10 - m01) * s; - } else { - if (m00 > m11 && m00 > m22) { - double s = 2.0 * sqrt(1.0 + m00 - m11 - m22); - q.w = (m21 - m12) / s; - q.x = 0.25 * s; - q.y = (m01 + m10) / s; - q.z = (m02 + m20) / s; - } else if (m11 > m22) { - double s = 2.0 * sqrt(1.0 + m11 - m00 - m22); - q.w = (m02 - m20) / s; - q.x = (m01 + m10) / s; - q.y = 0.25 * s; - q.z = (m12 + m21) / s; - } else { - double s = 2.0 * sqrt(1.0 + m22 - m00 - m11); - q.w = (m10 - m01) / s; - q.x = (m02 + m20) / s; - q.y = (m12 + m21) / s; - q.z = 0.25 * s; - } - } - - return q; -} - -/** - * Calculate the determinant of a 3x3 matrix - * - * | a b c | - * | d e f | - * | g h i | - */ -double TransformMatrix3D::determinant3x3( - const double a, - const double b, - const double c, - const double d, - const double e, - const double f, - const double g, - const double h, - const double i) { - return (a * e * i) + (b * f * g) + (c * d * h) - (c * e * g) - (b * d * i) - - (a * f * h); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.h deleted file mode 100644 index cd5d796c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.h +++ /dev/null @@ -1,84 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include - -namespace reanimated::css { - -namespace { -static constexpr size_t MATRIX_3D_DIMENSION = 4; // 4x4 matrix -} - -class TransformMatrix3D - : public TransformMatrixBase { - public: - struct Decomposed { - Vector3D scale; - Vector3D skew; - Quaternion quaternion; - Vector3D translation; - Vector4D perspective; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const Decomposed &decomposed); -#endif // NDEBUG - - Decomposed interpolate(double progress, const Decomposed &other) const; - }; - - using TransformMatrixBase:: - TransformMatrixBase; - - static TransformMatrix3D Identity(); - - template - static TransformMatrix3D create(double value); - - bool operator==(const TransformMatrix3D &other) const override; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const TransformMatrix3D &matrix); -#endif // NDEBUG - - double determinant() const override; - void adjugate(); - bool invert(); - void translate3d(const Vector3D &translation); - void scale3d(const Vector3D &scale); - - std::optional decompose() const; - static TransformMatrix3D recompose(const Decomposed &decomposed); - static TransformMatrix3D fromQuaternion(const Quaternion &q); - - private: - std::optional computePerspective() const; - - Vector3D getTranslation() const; - static std::pair computeScaleAndSkew( - std::array &rows); - static Quaternion computeQuaternion(std::array &columns); - - inline static double determinant3x3( - double a, - double b, - double c, - double d, - double e, - double f, - double g, - double h, - double i); -}; - -Vector4D operator*(const Vector4D &v, const TransformMatrix3D &m); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformOp.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformOp.cpp deleted file mode 100644 index 7e33336d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformOp.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include - -#include -#include - -namespace reanimated::css { - -constexpr std::array transformOperationStrings = { - "perspective", - "rotate", - "rotateX", - "rotateY", - "rotateZ", - "scale", - "scaleX", - "scaleY", - "translateX", - "translateY", - "skewX", - "skewY", - "matrix"}; - -TransformOp getTransformOperationType(const std::string &property) { - static const std::unordered_map stringToEnumMap = { - {"perspective", TransformOp::Perspective}, - {"rotate", TransformOp::Rotate}, - {"rotateX", TransformOp::RotateX}, - {"rotateY", TransformOp::RotateY}, - {"rotateZ", TransformOp::RotateZ}, - {"scale", TransformOp::Scale}, - {"scaleX", TransformOp::ScaleX}, - {"scaleY", TransformOp::ScaleY}, - {"translateX", TransformOp::TranslateX}, - {"translateY", TransformOp::TranslateY}, - {"skewX", TransformOp::SkewX}, - {"skewY", TransformOp::SkewY}, - {"matrix", TransformOp::Matrix}}; - - auto it = stringToEnumMap.find(property); - if (it != stringToEnumMap.end()) { - return it->second; - } else { - throw std::invalid_argument( - "[Reanimated] Unknown transform operation: " + property); - } -} - -std::string getOperationNameFromType(const TransformOp type) { - return transformOperationStrings[static_cast(type)]; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformOp.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformOp.h deleted file mode 100644 index 846b32ed..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/TransformOp.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once - -#include - -namespace reanimated::css { - -enum class TransformOp { - Perspective, - Rotate, - RotateX, - RotateY, - RotateZ, - Scale, - ScaleX, - ScaleY, - TranslateX, - TranslateY, - SkewX, - SkewY, - Matrix, -}; - -TransformOp getTransformOperationType(const std::string &property); - -std::string getOperationNameFromType(const TransformOp type); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/vectors.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/vectors.cpp deleted file mode 100644 index d65af915..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/vectors.cpp +++ /dev/null @@ -1,166 +0,0 @@ -#include - -namespace reanimated::css { - -// Vector2D - -double &Vector2D::operator[](const size_t idx) { - return vec[idx]; -} - -const double &Vector2D::operator[](const size_t idx) const { - return vec[idx]; -} - -Vector2D &Vector2D::operator*=(const double scalar) { - vec[0] *= scalar; - vec[1] *= scalar; - return *this; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const Vector2D &vector) { - os << "Vector2D(" << vector.vec[0] << ", " << vector.vec[1] << ")"; - return os; -} - -#endif // NDEBUG - -double Vector2D::length() const { - return std::hypot(vec[0], vec[1]); -} - -void Vector2D::scaleToLength(double targetLength) { - double currentLength = length(); - if (currentLength != 0) { - double factor = targetLength / currentLength; - vec[0] *= factor; - vec[1] *= factor; - } -} - -void Vector2D::normalize() { - scaleToLength(1); -} - -double Vector2D::dot(const Vector2D &other) const { - return vec[0] * other.vec[0] + vec[1] * other.vec[1]; -} - -double Vector2D::cross(const Vector2D &other) const { - return vec[0] * other.vec[1] - vec[1] * other.vec[0]; -} - -Vector2D Vector2D::addScaled(const Vector2D &other, const double scale) const { - return Vector2D{vec[0] + scale * other.vec[0], vec[1] + scale * other.vec[1]}; -} - -Vector2D Vector2D::interpolate(const double progress, const Vector2D &other) - const { - return Vector2D{ - vec[0] + progress * (other.vec[0] - vec[0]), - vec[1] + progress * (other.vec[1] - vec[1])}; -} - -// Vector3D - -double &Vector3D::operator[](const size_t idx) { - return vec[idx]; -} - -const double &Vector3D::operator[](const size_t idx) const { - return vec[idx]; -} - -Vector3D &Vector3D::operator*=(const double scalar) { - vec[0] *= scalar; - vec[1] *= scalar; - vec[2] *= scalar; - return *this; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const Vector3D &vector) { - os << "Vector3D(" << vector.vec[0] << ", " << vector.vec[1] << ", " - << vector.vec[2] << ")"; - return os; -} - -#endif // NDEBUG - -double Vector3D::length() const { - return std::hypot(vec[0], vec[1], vec[2]); -} - -void Vector3D::scaleToLength(double targetLength) { - double currentLength = length(); - if (currentLength != 0) { - double factor = targetLength / currentLength; - vec[0] *= factor; - vec[1] *= factor; - vec[2] *= factor; - } -} - -void Vector3D::normalize() { - scaleToLength(1); -} - -double Vector3D::dot(const Vector3D &other) const { - return vec[0] * other.vec[0] + vec[1] * other.vec[1] + vec[2] * other.vec[2]; -} - -Vector3D Vector3D::cross(const Vector3D &other) const { - return Vector3D{ - vec[1] * other.vec[2] - vec[2] * other.vec[1], - vec[2] * other.vec[0] - vec[0] * other.vec[2], - vec[0] * other.vec[1] - vec[1] * other.vec[0]}; -} - -Vector3D Vector3D::addScaled(const Vector3D &other, const double scale) const { - return Vector3D{ - vec[0] + scale * other.vec[0], - vec[1] + scale * other.vec[1], - vec[2] + scale * other.vec[2]}; -} - -Vector3D Vector3D::interpolate(const double progress, const Vector3D &other) - const { - return Vector3D{ - vec[0] + progress * (other.vec[0] - vec[0]), - vec[1] + progress * (other.vec[1] - vec[1]), - vec[2] + progress * (other.vec[2] - vec[2])}; -} - -// Vector4D - -double &Vector4D::operator[](const size_t idx) { - return vec[idx]; -} - -const double &Vector4D::operator[](const size_t idx) const { - return vec[idx]; -} - -Vector4D Vector4D::interpolate(const double progress, const Vector4D &other) - const { - return Vector4D{ - vec[0] + progress * (other.vec[0] - vec[0]), - vec[1] + progress * (other.vec[1] - vec[1]), - vec[2] + progress * (other.vec[2] - vec[2]), - vec[3] + progress * (other.vec[3] - vec[3])}; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const Vector4D &vector) { - os << "Vector4D(" << vector.vec[0] << ", " << vector.vec[1] << ", " - << vector.vec[2] << ", " << vector.vec[3] << ")"; - return os; -} - -#endif // NDEBUG - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/vectors.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/vectors.h deleted file mode 100644 index 5d6a788b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/transforms/vectors.h +++ /dev/null @@ -1,77 +0,0 @@ -#pragma once - -#include - -#ifndef NDEBUG -#include -#endif // NDEBUG - -namespace reanimated::css { - -struct Vector2D { - std::array vec; - - Vector2D() : vec({0, 0}) {} - explicit Vector2D(double x, double y) : vec({x, y}) {} - explicit Vector2D(std::array vec) : vec(vec) {} - - double &operator[](size_t idx); - const double &operator[](size_t idx) const; - Vector2D &operator*=(double scalar); - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const Vector2D &vector); -#endif // NDEBUG - - double length() const; - void scaleToLength(double targetLength); - void normalize(); - double dot(const Vector2D &other) const; - double cross(const Vector2D &other) const; - Vector2D addScaled(const Vector2D &other, double scale) const; - Vector2D interpolate(double progress, const Vector2D &other) const; -}; - -struct Vector3D { - std::array vec; - - Vector3D() : vec({0, 0, 0}) {} - explicit Vector3D(double x, double y, double z) : vec({x, y, z}) {} - explicit Vector3D(std::array vec) : vec(vec) {} - - double &operator[](size_t idx); - const double &operator[](size_t idx) const; - Vector3D &operator*=(double scalar); - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const Vector3D &vector); -#endif // NDEBUG - - double length() const; - void scaleToLength(double targetLength); - void normalize(); - double dot(const Vector3D &other) const; - Vector3D cross(const Vector3D &other) const; - Vector3D addScaled(const Vector3D &other, double scale) const; - Vector3D interpolate(double progress, const Vector3D &other) const; -}; - -struct Vector4D { - std::array vec; - - Vector4D() : vec({0, 0, 0, 0}) {} - explicit Vector4D(double x, double y, double z, double w) - : vec({x, y, z, w}) {} - explicit Vector4D(std::array vec) : vec(vec) {} - - double &operator[](size_t idx); - const double &operator[](size_t idx) const; - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const Vector4D &vector); -#endif // NDEBUG - - Vector4D interpolate(double progress, const Vector4D &other) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSAngle.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSAngle.cpp deleted file mode 100644 index ca5087f0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSAngle.cpp +++ /dev/null @@ -1,107 +0,0 @@ -#include - -#include -#include -#include - -namespace reanimated::css { - -CSSAngle::CSSAngle() : value(0) {} - -CSSAngle::CSSAngle(const double value) : value(value) {} - -CSSAngle::CSSAngle(const std::string &rotationString) { - static const std::regex validNumberRegex(R"(^[-+]?\d*\.?\d+$)"); - static const std::unordered_map unitFactors = { - {"rad", 1}, - {"deg", M_PI / 180}, - }; - - // Find position of the first non-numeric character (first character - // of the unit, e.g. "deg" or "rad") - size_t pos = rotationString.find_first_not_of("0123456789.-+"); - - if (pos == std::string::npos) { - throw std::invalid_argument( - "[Reanimated] CSSAngle: Invalid angle value: " + rotationString); - } - - std::string numericPart = rotationString.substr(0, pos); - std::string unitPart = rotationString.substr(pos); - - if (!std::regex_match(numericPart, validNumberRegex)) { - throw std::invalid_argument( - "[Reanimated] CSSAngle: Invalid angle value: " + rotationString); - } - - // Lookup the unit and convert to radians - auto it = unitFactors.find(unitPart); - if (it == unitFactors.cend()) { - throw std::invalid_argument( - "[Reanimated] CSSAngle: Invalid angle unit: " + unitPart); - } - - double numericValue = std::stod(numericPart); - - this->value = numericValue * it->second; -} - -CSSAngle::CSSAngle(const char *cstr) : CSSAngle(std::string_view{cstr}) {} - -CSSAngle::CSSAngle(jsi::Runtime &rt, const jsi::Value &jsiValue) { - if (!jsiValue.isString()) { - throw std::invalid_argument( - "[Reanimated] CSSAngle: Invalid value type: " + - stringifyJSIValue(rt, jsiValue)); - } - - std::string strValue = jsiValue.asString(rt).utf8(rt); - *this = CSSAngle(strValue); -} - -CSSAngle::CSSAngle(const folly::dynamic &value) { - if (!value.isString()) { - throw std::invalid_argument( - "[Reanimated] CSSAngle: Invalid value type: " + folly::toJson(value)); - } - - *this = CSSAngle(value.asString()); -} - -bool CSSAngle::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) { - // TODO - improve canConstruct check and add check for string correctness - return jsiValue.isString() || jsiValue.isNumber(); -} - -bool CSSAngle::canConstruct(const folly::dynamic &value) { - return value.isString() || value.isNumber(); -} - -folly::dynamic CSSAngle::toDynamic() const { - return folly::dynamic(toString()); -} - -std::string CSSAngle::toString() const { - std::ostringstream stream; - stream << std::fixed << std::setprecision(4) << value; - return stream.str() + "rad"; -} - -CSSAngle CSSAngle::interpolate(double progress, const CSSAngle &to) const { - return CSSAngle(value + (to.value - value) * progress); -} - -bool CSSAngle::operator==(const CSSAngle &other) const { - return value == other.value; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const CSSAngle &angleValue) { - os << "CSSAngle(" << angleValue.value << ")"; - return os; -} - -#endif // NDEBUG - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSAngle.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSAngle.h deleted file mode 100644 index 5501c655..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSAngle.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include - -#include - -#include -#include - -namespace reanimated::css { - -using namespace worklets; - -struct CSSAngle : public CSSSimpleValue { - double value; - - CSSAngle(); - explicit CSSAngle(double value); - explicit CSSAngle(const std::string &rotationString); - explicit CSSAngle(const char *cstr); - explicit CSSAngle(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSAngle(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - CSSAngle interpolate(double progress, const CSSAngle &to) const override; - - bool operator==(const CSSAngle &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const CSSAngle &angleValue); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSBoolean.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSBoolean.cpp deleted file mode 100644 index 110ade2c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSBoolean.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#include - -namespace reanimated::css { - -CSSBoolean::CSSBoolean() : value(false) {} - -CSSBoolean::CSSBoolean(bool value) : value(value) {} - -CSSBoolean::CSSBoolean(jsi::Runtime &rt, const jsi::Value &jsiValue) - : value(jsiValue.asBool()) {} - -CSSBoolean::CSSBoolean(const folly::dynamic &value) : value(value.asBool()) {} - -bool CSSBoolean::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) { - return jsiValue.isBool(); -} - -bool CSSBoolean::canConstruct(const folly::dynamic &value) { - return value.isBool(); -} - -folly::dynamic CSSBoolean::toDynamic() const { - return {value}; -} - -std::string CSSBoolean::toString() const { - return value ? "true" : "false"; -} - -CSSBoolean CSSBoolean::interpolate(double progress, const CSSBoolean &to) - const { - return CSSBoolean(progress < 0.5 ? value : to.value); -} - -bool CSSBoolean::operator==(const CSSBoolean &other) const { - return value == other.value; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const CSSBoolean &boolValue) { - os << boolValue.toString(); - return os; -} - -#endif // NDEBUG - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSBoolean.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSBoolean.h deleted file mode 100644 index ea6a08b8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSBoolean.h +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -struct CSSBoolean : public CSSSimpleValue { - bool value; - - CSSBoolean(); - explicit CSSBoolean(bool value); - explicit CSSBoolean(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSBoolean(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - CSSBoolean interpolate(double progress, const CSSBoolean &to) const override; - - bool operator==(const CSSBoolean &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const CSSBoolean &boolValue); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSColor.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSColor.cpp deleted file mode 100644 index 90fb66b3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSColor.cpp +++ /dev/null @@ -1,173 +0,0 @@ -#include - -namespace reanimated::css { - -CSSColor::CSSColor() - : channels{0, 0, 0, 0}, colorType(ColorType::Transparent) {} - -CSSColor::CSSColor(ColorType colorType) - : channels{0, 0, 0, 0}, colorType(colorType) {} - -CSSColor::CSSColor(int64_t numberValue) - : channels{0, 0, 0, 0}, colorType(ColorType::Rgba) { - uint32_t color; - // On Android, colors are represented as signed 32-bit integers. In JS, we use - // a bitwise operation (normalizedColor = normalizedColor | 0x0) to ensure the - // value is treated as a signed int, causing numbers above 2^31 to become - // negative. To correctly interpret these in C++, we cast negative values to - // int32_t to preserve their bit pattern, then assign to uint32_t. This wraps - // the bits (modulo 2^32), effectively reversing the JS-side bit shift. - if (numberValue < 0) { - color = static_cast(numberValue); - } else { - color = static_cast(numberValue); - } - channels[0] = (color >> 16) & 0xFF; // Red - channels[1] = (color >> 8) & 0xFF; // Green - channels[2] = color & 0xFF; // Blue - channels[3] = (color >> 24) & 0xFF; // Alpha - colorType = ColorType::Rgba; -} - -CSSColor::CSSColor(const std::string &colorString) - : channels{0, 0, 0, 0}, colorType(ColorType::Transparent) { - if (colorString == "transparent") { - colorType = ColorType::Transparent; - } else if (colorString == "currentColor") { - colorType = ColorType::CurrentColor; - } else { - throw std::invalid_argument( - "[Reanimated] CSSColor: Invalid string value: " + colorString); - } -} - -CSSColor::CSSColor(const uint8_t r, const uint8_t g, const uint8_t b) - : channels{r, g, b, 255}, colorType(ColorType::Rgba) {} - -CSSColor::CSSColor( - const uint8_t r, - const uint8_t g, - const uint8_t b, - const uint8_t a) - : channels{r, g, b, a}, colorType(ColorType::Rgba) {} - -CSSColor::CSSColor(const ColorChannels &colorChannels) - : channels{colorChannels[0], colorChannels[1], colorChannels[2], colorChannels[3]}, - colorType(ColorType::Rgba) {} - -CSSColor::CSSColor(jsi::Runtime &rt, const jsi::Value &jsiValue) - : channels{0, 0, 0, 0}, colorType(ColorType::Transparent) { - if (jsiValue.isNumber()) { - *this = CSSColor(jsiValue.getNumber()); - } else if (jsiValue.isString()) { - *this = CSSColor(jsiValue.getString(rt).utf8(rt)); - } else if (jsiValue.isUndefined()) { - *this = Transparent; - } else { - throw std::invalid_argument( - "[Reanimated] CSSColor: Invalid value: " + - stringifyJSIValue(rt, jsiValue)); - } -} - -CSSColor::CSSColor(const folly::dynamic &value) - : channels{0, 0, 0, 0}, colorType(ColorType::Transparent) { - if (value.isNumber()) { - *this = CSSColor(value.asInt()); - } else if (value.isString()) { - *this = CSSColor(value.getString()); - } else if (value.empty()) { - *this = Transparent; - } else { - throw std::invalid_argument( - "[Reanimated] CSSColor: Invalid value: " + folly::toJson(value)); - } -} - -bool CSSColor::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) { - return jsiValue.isNumber() || jsiValue.isUndefined() || - (jsiValue.isString() && - isValidColorString(jsiValue.getString(rt).utf8(rt))); -} - -bool CSSColor::canConstruct(const folly::dynamic &value) { - return value.isNumber() || value.empty() || - (value.isString() && isValidColorString(value.getString())); -} - -folly::dynamic CSSColor::toDynamic() const { - if (colorType == ColorType::Transparent) { - return 0x00000000; - } - return (channels[3] << 24) | (channels[0] << 16) | (channels[1] << 8) | - channels[2]; -} - -std::string CSSColor::toString() const { - if (colorType == ColorType::Rgba) { - return "rgba(" + std::to_string(channels[0]) + "," + - std::to_string(channels[1]) + "," + std::to_string(channels[2]) + "," + - std::to_string(channels[3]) + ")"; - } - if (colorType == ColorType::CurrentColor) { - return "currentColor"; - } - return "transparent"; -} - -CSSColor CSSColor::interpolate(const double progress, const CSSColor &to) - const { - if ((to.colorType == ColorType::Transparent && - colorType == ColorType::Transparent) || - colorType == ColorType::CurrentColor || - to.colorType == ColorType::CurrentColor) { - return progress < 0.5 ? *this : to; - } - - ColorChannels fromChannels = channels; - ColorChannels toChannels = to.channels; - if (colorType == ColorType::Transparent) { - fromChannels = {toChannels[0], toChannels[1], toChannels[2], 0}; - } else if (to.colorType == ColorType::Transparent) { - toChannels = {fromChannels[0], fromChannels[1], fromChannels[2], 0}; - } - - ColorChannels resultChannels; - for (size_t i = 0; i < 4; ++i) { - resultChannels[i] = - interpolateChannel(fromChannels[i], toChannels[i], progress); - } - - return CSSColor(resultChannels); -} - -uint8_t CSSColor::interpolateChannel( - const uint8_t from, - const uint8_t to, - const double progress) { - // Cast one of operands to double to avoid unsigned int subtraction overflow - // (when from > to) - double interpolated = (static_cast(to) - from) * progress + from; - return static_cast(std::round(std::clamp(interpolated, 0.0, 255.0))); -} - -bool CSSColor::operator==(const CSSColor &other) const { - return colorType == other.colorType && channels[0] == other.channels[0] && - channels[1] == other.channels[1] && channels[2] == other.channels[2] && - channels[3] == other.channels[3]; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const CSSColor &colorValue) { - os << "CSSColor(" << colorValue.toString() << ")"; - return os; -} - -#endif // NDEBUG - -bool CSSColor::isValidColorString(const std::string &colorString) { - return colorString == "transparent" || colorString == "currentColor"; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSColor.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSColor.h deleted file mode 100644 index b7c679f7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSColor.h +++ /dev/null @@ -1,60 +0,0 @@ -#pragma once - -#include -#include - -#include - -#include -#include - -namespace reanimated::css { - -using namespace worklets; - -enum class ColorType { - Rgba, - Transparent, - CurrentColor, // for SVG -}; - -struct CSSColor : public CSSSimpleValue { - ColorChannels channels; - ColorType colorType; - - static const CSSColor Transparent; - - CSSColor(); - explicit CSSColor(ColorType colorType); - explicit CSSColor(int64_t numberValue); - explicit CSSColor(const std::string &colorString); - - explicit CSSColor(uint8_t r, uint8_t g, uint8_t b); - explicit CSSColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a); - explicit CSSColor(const ColorChannels &colorChannels); - - explicit CSSColor(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSColor(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - CSSColor interpolate(double progress, const CSSColor &to) const override; - - static uint8_t interpolateChannel(uint8_t from, uint8_t to, double progress); - - bool operator==(const CSSColor &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const CSSColor &colorValue); -#endif // NDEBUG - - private: - static bool isValidColorString(const std::string &colorString); -}; - -inline const CSSColor CSSColor::Transparent(ColorType::Transparent); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.cpp deleted file mode 100644 index 34c55519..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.cpp +++ /dev/null @@ -1,120 +0,0 @@ -#include -#include - -namespace reanimated::css { - -template -CSSDiscreteArray::CSSDiscreteArray() : values() {} - -template -CSSDiscreteArray::CSSDiscreteArray(const std::vector &values) - : values(values) {} - -template -CSSDiscreteArray::CSSDiscreteArray( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - if (!canConstruct(rt, jsiValue)) { - throw std::invalid_argument( - "[Reanimated] CSSDiscreteArray: Invalid value type: " + - stringifyJSIValue(rt, jsiValue)); - } - - const auto &array = jsiValue.asObject(rt).asArray(rt); - values.reserve(array.size(rt)); - - for (size_t i = 0; i < array.size(rt); i++) { - values.emplace_back(rt, array.getValueAtIndex(rt, i)); - } -} - -template -CSSDiscreteArray::CSSDiscreteArray(const folly::dynamic &value) { - if (!canConstruct(value)) { - throw std::invalid_argument( - "[Reanimated] CSSDiscreteArray: Invalid value type: " + - folly::toJson(value)); - } - - const auto &array = value; - values.reserve(array.size()); - - for (size_t i = 0; i < array.size(); i++) { - values.emplace_back(array[i]); - } -} - -template -bool CSSDiscreteArray::canConstruct( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - // TODO - maybe add better validation - return jsiValue.isObject() && jsiValue.asObject(rt).isArray(rt); -} - -template -bool CSSDiscreteArray::canConstruct(const folly::dynamic &value) { - return value.isArray(); -} - -template -folly::dynamic CSSDiscreteArray::toDynamic() const { - folly::dynamic array = folly::dynamic::array; - for (const auto &value : values) { - array.push_back(value.toDynamic()); - } - return array; -} - -template -std::string CSSDiscreteArray::toString() const { - std::stringstream ss; - - ss << "{"; - for (size_t i = 0; i < values.size(); i++) { - ss << values[i].toString(); - if (i < values.size() - 1) { - ss << ", "; - } - } - ss << "}"; - - return ss.str(); -} - -template -CSSDiscreteArray CSSDiscreteArray::interpolate( - double progress, - const CSSDiscreteArray &other) const { - return CSSDiscreteArray(progress < 0.5 ? values : other.values); -} - -template -bool CSSDiscreteArray::operator==( - const CSSDiscreteArray &other) const { - if (values.size() != other.values.size()) { - return false; - } - for (size_t i = 0; i < values.size(); i++) { - if (values[i] != other.values[i]) { - return false; - } - } - return true; -} - -#ifndef NDEBUG - -template -std::ostream &operator<<( - std::ostream &os, - const CSSDiscreteArray &arrayValue) { - os << "CSSDiscreteArray(" << arrayValue.toString() << ")"; - return os; -} - -#endif // NDEBUG - -template struct CSSDiscreteArray; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.h deleted file mode 100644 index e5e1fc92..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSDiscreteArray.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include - -#include - -#include -#include - -namespace reanimated::css { - -using namespace worklets; - -/* - * CSSDiscreteArray is used for array interpolation when arrays need to be - * treated as discrete values. Instead of interpolating between corresponding - * elements of two arrays, this type interpolates between entire arrays - * treated as single discrete values. - */ -template -struct CSSDiscreteArray : public CSSSimpleValue> { - static constexpr bool is_discrete_value = true; - - std::vector values; - - CSSDiscreteArray(); - explicit CSSDiscreteArray(const std::vector &values); - explicit CSSDiscreteArray(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSDiscreteArray(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - CSSDiscreteArray interpolate( - double progress, - const CSSDiscreteArray &other) const override; - - bool operator==(const CSSDiscreteArray &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const CSSDiscreteArray &arrayValue); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSKeyword.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSKeyword.cpp deleted file mode 100644 index 2bb8962a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSKeyword.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include - -#include - -namespace reanimated::css { - -template -CSSKeywordBase::CSSKeywordBase(const char *value) : value(value) {} - -template -CSSKeywordBase::CSSKeywordBase( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - if (jsiValue.isString()) { - value = jsiValue.getString(rt).utf8(rt); - } else { - throw std::invalid_argument( - "[Reanimated] CSSKeywordBase: Invalid value type: " + - stringifyJSIValue(rt, jsiValue)); - } -} - -template -CSSKeywordBase::CSSKeywordBase(const folly::dynamic &value) { - if (value.isString()) { - this->value = value.getString(); - } else { - throw std::invalid_argument( - "[Reanimated] CSSKeywordBase: Invalid value type: " + - folly::toJson(value)); - } -} - -template -bool CSSKeywordBase::canConstruct( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - return jsiValue.isString(); -} - -template -bool CSSKeywordBase::canConstruct(const folly::dynamic &value) { - return value.isString(); -} - -template -folly::dynamic CSSKeywordBase::toDynamic() const { - return value; -} - -template -std::string CSSKeywordBase::toString() const { - return value; -} - -template -bool CSSKeywordBase::operator==( - const CSSKeywordBase &other) const { - return value == other.value; -} - -CSSKeyword CSSKeyword::interpolate(double progress, const CSSKeyword &to) - const { - return CSSKeyword(progress < 0.5 ? value : to.value); -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const CSSKeyword &keywordValue) { - os << "CSSKeyword(" << keywordValue.toString() << ")"; - return os; -} - -#endif // NDEBUG - -CSSDisplay CSSDisplay::interpolate(double progress, const CSSDisplay &to) - const { - if (value == "none" && progress > 0) { - return CSSDisplay(to.value); - } - if (to.value == "none" && progress < 1) { - return CSSDisplay(value); - } - return CSSDisplay(progress < 0.5 ? value : to.value); -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const CSSDisplay &displayValue) { - os << "CSSDisplay(" << displayValue.toString() << ")"; - return os; -} - -#endif // NDEBUG - -// Explicit template instantiations -template class CSSKeywordBase; -template class CSSKeywordBase; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSKeyword.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSKeyword.h deleted file mode 100644 index 7e43a0c6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSKeyword.h +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once - -#include - -#include - -#include - -namespace reanimated::css { - -using namespace worklets; - -template -class CSSKeywordBase : public CSSSimpleValue { - public: - static constexpr bool is_discrete_value = true; - - CSSKeywordBase() = default; - explicit CSSKeywordBase(const char *value); - explicit CSSKeywordBase(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSKeywordBase(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - - bool operator==(const CSSKeywordBase &other) const; - - protected: - std::string value; -}; - -struct CSSKeyword : public CSSKeywordBase { - using CSSKeywordBase::CSSKeywordBase; - using CSSKeywordBase::canConstruct; - - CSSKeyword interpolate(double progress, const CSSKeyword &to) const override; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const CSSKeyword &keywordValue); -#endif // NDEBUG -}; - -struct CSSDisplay : public CSSKeywordBase { - using CSSKeywordBase::CSSKeywordBase; - using CSSKeywordBase::canConstruct; - - CSSDisplay interpolate(double progress, const CSSDisplay &to) const override; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const CSSDisplay &displayValue); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSLength.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSLength.cpp deleted file mode 100644 index be697772..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSLength.cpp +++ /dev/null @@ -1,140 +0,0 @@ -#include - -namespace reanimated::css { - -CSSLength::CSSLength() : value(0), isRelative(false) {} - -CSSLength::CSSLength(const double value) : value(value), isRelative(false) {} - -CSSLength::CSSLength(const double value, const bool isRelative) - : value(value), isRelative(isRelative) {} - -CSSLength::CSSLength(const char *value) { - if (!canConstruct(value)) { - throw std::invalid_argument( - "[Reanimated] CSSLength: Invalid value: " + std::string(value)); - } - - std::string str = value; - str.pop_back(); - this->value = std::stod(str) / 100; - this->isRelative = true; -} - -CSSLength::CSSLength(jsi::Runtime &rt, const jsi::Value &jsiValue) { - if (jsiValue.isNumber()) { - this->value = jsiValue.asNumber(); - this->isRelative = false; - } else if (jsiValue.isString()) { - std::string strValue = jsiValue.asString(rt).utf8(rt); - *this = CSSLength(strValue); // Delegate to the string constructor - } else { - throw std::runtime_error("[Reanimated] CSSLength: Unsupported value type"); - } -} - -CSSLength::CSSLength(const folly::dynamic &value) { - if (value.isNumber()) { - this->value = value.getDouble(); - this->isRelative = false; - } else if (value.isString()) { - std::string strValue = value.getString(); - *this = CSSLength(strValue.c_str()); // Delegate to the string constructor - } else { - throw std::runtime_error("[Reanimated] CSSLength: Unsupported value type"); - } -} - -bool CSSLength::canConstruct(const std::string &value) { - return !value.empty() && value.back() == '%'; -} - -bool CSSLength::canConstruct(const char *value) { - return canConstruct(std::string(value)); -} - -bool CSSLength::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) { - return jsiValue.isNumber() || - (jsiValue.isString() && canConstruct(jsiValue.getString(rt).utf8(rt))); -} - -bool CSSLength::canConstruct(const folly::dynamic &value) { - return value.isNumber() || - (value.isString() && canConstruct(value.getString())); -} - -folly::dynamic CSSLength::toDynamic() const { - if (isRelative) { - return std::to_string(value * 100) + "%"; - } - return value; -} - -std::string CSSLength::toString() const { - if (isRelative) { - return std::to_string(value * 100) + "%"; - } - return std::to_string(value); -} - -CSSLength CSSLength::interpolate( - const double progress, - const CSSLength &to, - const CSSResolvableValueInterpolationContext &context) const { - // If both value types are the same, we can interpolate without reading the - // relative value from the shadow node - // (also, when one of the values is 0, and the other is relative) - if ((isRelative == to.isRelative) || (isRelative && to.value == 0) || - (to.isRelative && value == 0)) { - return CSSLength( - value + (to.value - value) * progress, isRelative || to.isRelative); - } - // Otherwise, we need to read the relative value from the shadow node and - // interpolate values as numbers - const auto resolvedFrom = resolve(context); - const auto resolvedTo = to.resolve(context); - - if (!resolvedFrom.has_value() || !resolvedTo.has_value()) { - return progress < 0.5 ? *this : to; - } - return CSSLength( - resolvedFrom.value() + - (resolvedTo.value() - resolvedFrom.value()) * progress); -} - -std::optional CSSLength::resolve( - const CSSResolvableValueInterpolationContext &context) const { - if (!isRelative) { - return value; - } - - jsi::Value relativeValue; - if (context.relativeTo == RelativeTo::Self) { - relativeValue = context.viewStylesRepository->getNodeProp( - context.node, context.relativeProperty); - } else { - relativeValue = context.viewStylesRepository->getParentNodeProp( - context.node, context.relativeProperty); - } - - if (!relativeValue.isNumber()) { - return std::nullopt; - } - - return value * relativeValue.getNumber(); -} - -bool CSSLength::operator==(const CSSLength &other) const { - return value == other.value && isRelative == other.isRelative; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const CSSLength &value) { - os << "CSSLength(" << value.toString() << ")"; - return os; -} - -#endif // NDEBUG - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSLength.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSLength.h deleted file mode 100644 index aa26fc8c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSLength.h +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -struct CSSLength : public CSSResolvableValue { - double value; - bool isRelative; - - CSSLength(); - explicit CSSLength(double value); - explicit CSSLength(double value, bool isRelative); - explicit CSSLength(const char *value); - explicit CSSLength(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSLength(const folly::dynamic &value); - - static bool canConstruct(const std::string &value); - static bool canConstruct(const char *value); - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - CSSLength interpolate( - double progress, - const CSSLength &to, - const CSSResolvableValueInterpolationContext &context) const override; - std::optional resolve( - const CSSResolvableValueInterpolationContext &context) const override; - - bool operator==(const CSSLength &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const CSSLength &dimension); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSNumber.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSNumber.cpp deleted file mode 100644 index 1cac397f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSNumber.cpp +++ /dev/null @@ -1,107 +0,0 @@ -#include -#include - -#include - -namespace reanimated::css { - -template -CSSNumberBase::CSSNumberBase() : value(0) {} - -template -CSSNumberBase::CSSNumberBase(TValue value) : value(value) {} - -template -CSSNumberBase::CSSNumberBase( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - if (jsiValue.isNumber()) { - value = static_cast(jsiValue.asNumber()); - } else { - throw std::invalid_argument( - "[Reanimated] CSSNumberBase: Invalid value type: " + - stringifyJSIValue(rt, jsiValue)); - } -} - -template -CSSNumberBase::CSSNumberBase(const folly::dynamic &value) { - if (value.isInt() || value.isDouble()) { - this->value = static_cast(value.getDouble()); - } else { - throw std::invalid_argument( - "[Reanimated] CSSNumberBase: Invalid value type: " + - folly::toJson(value)); - } -} - -template -bool CSSNumberBase::canConstruct( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - return jsiValue.isNumber(); -} - -template -bool CSSNumberBase::canConstruct( - const folly::dynamic &value) { - return value.isInt() || value.isDouble(); -} - -template -folly::dynamic CSSNumberBase::toDynamic() const { - return value; -} - -template -std::string CSSNumberBase::toString() const { - return std::to_string(value); -} - -template -TDerived CSSNumberBase::interpolate( - double progress, - const TDerived &other) const { - return TDerived(value + progress * (other.value - value)); -} - -template -bool CSSNumberBase::operator==( - const CSSNumberBase &other) const { - return value == other.value; -} - -CSSInteger CSSInteger::interpolate(double progress, const CSSInteger &other) - const { - return CSSInteger( - static_cast(std::round(value + progress * (other.value - value)))); -} - -template struct CSSNumberBase; -template struct CSSNumberBase; - -#ifdef ANDROID - -CSSShadowRadiusAndroid::CSSShadowRadiusAndroid() - : CSSNumberBase(1.0) {} - -CSSShadowRadiusAndroid::CSSShadowRadiusAndroid(const double value) - : CSSNumberBase(std::max(1.0, value)) {} - -CSSShadowRadiusAndroid::CSSShadowRadiusAndroid( - jsi::Runtime &rt, - const jsi::Value &jsiValue) - : CSSNumberBase(rt, jsiValue) { - value = std::max(1.0, value); -} - -CSSShadowRadiusAndroid::CSSShadowRadiusAndroid(const folly::dynamic &value) - : CSSNumberBase(value) { - this->value = std::max(1.0, value.getDouble()); -} - -template struct CSSNumberBase; - -#endif - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSNumber.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSNumber.h deleted file mode 100644 index 902d4210..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSNumber.h +++ /dev/null @@ -1,71 +0,0 @@ -#pragma once - -#include - -#include - -#include - -namespace reanimated::css { - -using namespace worklets; - -template -struct CSSNumberBase : public CSSSimpleValue { - TValue value; - - CSSNumberBase(); - explicit CSSNumberBase(TValue value); - explicit CSSNumberBase(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSNumberBase(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - TDerived interpolate(double progress, const TDerived &other) const override; - - bool operator==(const CSSNumberBase &other) const; -}; - -#ifndef NDEBUG - -template -std::ostream &operator<<( - std::ostream &os, - const CSSNumberBase &numberValue) { - os << "CSSNumberBase(" << numberValue.toString() << ")"; - return os; -} - -#endif // NDEBUG - -struct CSSDouble : public CSSNumberBase { - // Inherit all constructors from the base class - using CSSNumberBase::CSSNumberBase; -}; -struct CSSInteger : public CSSNumberBase { - // Inherit all constructors from the base class - using CSSNumberBase::CSSNumberBase; - - CSSInteger interpolate(double progress, const CSSInteger &other) - const override; -}; - -#ifdef ANDROID - -// For some reason Android crashes when blurRadius is smaller than 1 so we use a -// custom value that will never be smaller than 1 - -struct CSSShadowRadiusAndroid - : public CSSNumberBase { - CSSShadowRadiusAndroid(); - explicit CSSShadowRadiusAndroid(double value); - explicit CSSShadowRadiusAndroid(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit CSSShadowRadiusAndroid(const folly::dynamic &value); -}; - -#endif - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValue.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValue.h deleted file mode 100644 index 923997f9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValue.h +++ /dev/null @@ -1,79 +0,0 @@ -#pragma once - -#include - -#include -#include -#include - -namespace reanimated::css { - -using namespace facebook; - -struct ValueInterpolatorUpdateContext { - const std::shared_ptr &node; -}; - -enum class RelativeTo { - Parent, - Self, -}; - -struct CSSResolvableValueInterpolationContext { - const std::shared_ptr &node; - const std::shared_ptr &viewStylesRepository; - const std::string &relativeProperty; - const RelativeTo relativeTo; -}; - -struct CSSValue { - // This field should be overridden in discrete value types - static constexpr bool is_discrete_value = false; - - virtual ~CSSValue() = default; - - virtual folly::dynamic toDynamic() const = 0; - virtual std::string toString() const = 0; -}; - -// Base for leaf values that can be interpolated without resolution -template -struct CSSSimpleValue : public CSSValue { - static constexpr bool is_resolvable_value = false; - - virtual TDerived interpolate(double progress, const TDerived &to) const = 0; -}; - -// Base for leaf values that need resolution before interpolation -template -struct CSSResolvableValue : public CSSValue { - static constexpr bool is_resolvable_value = true; - - virtual TDerived interpolate( - double progress, - const TDerived &to, - const CSSResolvableValueInterpolationContext &context) const = 0; - virtual std::optional resolve( - const CSSResolvableValueInterpolationContext &context) const = 0; -}; - -// Checks if a type is a resolvable value that needs resolution before -// interpolation -template -concept Resolvable = requires { - { TCSSValue::is_resolvable_value } -> std::convertible_to; - requires TCSSValue::is_resolvable_value == true; -}; - -// Checks if a type is a discrete value -template -concept Discrete = requires { - { TCSSValue::is_discrete_value } -> std::convertible_to; - requires TCSSValue::is_discrete_value == true; -}; - -// Check if a type is derived from CSSValue -template -concept CSSValueDerived = std::is_base_of_v; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.cpp deleted file mode 100644 index 8512362a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -namespace reanimated::css { - -template -CSSValueVariant::CSSValueVariant( - std::variant &&storage) - : storage_(std::move(storage)) {} - -template -CSSValueVariant::CSSValueVariant( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - auto tryOne = [&]() -> bool { - // We have to check in a runtime if the type can be constructed from the - // provided jsi::Value. The first match will be used to construct the - // CSS value. - if (!TCSSValue::canConstruct(rt, jsiValue)) { - return false; - } - storage_ = TCSSValue(rt, jsiValue); - return true; - }; - - // Try constructing with each allowed type until one succeeds - if (!(tryOne.template operator()() || ...)) { - throw std::runtime_error( - "[Reanimated] No compatible type found for construction from: " + - stringifyJSIValue(rt, jsiValue)); - } -} - -template -CSSValueVariant::CSSValueVariant(const folly::dynamic &value) { - auto tryOne = [&]() -> bool { - // We have to check in a runtime if the type can be constructed from the - // provided folly::dynamic. The first match will be used to construct the - // CSS value. - if (!TCSSValue::canConstruct(value)) { - return false; - } - storage_ = TCSSValue(value); - return true; - }; - - // Try constructing with each allowed type until one succeeds - if (!(tryOne.template operator()() || ...)) { - throw std::runtime_error( - "[Reanimated] No compatible type found for construction from: " + - folly::toJson(value)); - } -} - -template -bool CSSValueVariant::operator==( - const CSSValueVariant &other) const { - if (storage_.index() != other.storage_.index()) { - return false; - } - - return std::visit( - [](const auto &lhs, const auto &rhs) { - REA_IF_SAME_TYPE(lhs, rhs) { - return lhs == rhs; - } - return false; - }, - storage_, - other.storage_); -} - -template -bool CSSValueVariant::operator==(const CSSValue &other) const { - if (auto *o = dynamic_cast(&other)) { - return *this == *o; - } - return false; -} - -template -folly::dynamic CSSValueVariant::toDynamic() const { - return std::visit([](const auto &v) { return v.toDynamic(); }, storage_); -} - -template -std::string CSSValueVariant::toString() const { - return std::visit([](const auto &v) { return v.toString(); }, storage_); -} - -template -CSSValueVariant CSSValueVariant::interpolate( - const double progress, - const CSSValueVariant &to, - const ValueInterpolatorUpdateContext &context) const { - if (storage_.index() != to.storage_.index()) { - return fallbackInterpolate(progress, to); - } - - return std::visit( - [&](const auto &fromValue, const auto &toValue) -> CSSValueVariant { - REA_IF_SAME_TYPE(fromValue, toValue) { - if constexpr (Resolvable) { - throw std::runtime_error( - "[Reanimated] Resolvable value cannot be interpolated as non-resolvable"); - } else { - return CSSValueVariant(fromValue.interpolate(progress, toValue)); - } - } - return fallbackInterpolate(progress, to); - }, - storage_, - to.storage_); -} - -template -CSSValueVariant CSSValueVariant::interpolate( - const double progress, - const CSSValueVariant &to, - const CSSResolvableValueInterpolationContext &context) const { - if (storage_.index() != to.storage_.index()) { - return fallbackInterpolate(progress, to); - } - - return std::visit( - [&](const auto &fromValue, const auto &toValue) -> CSSValueVariant { - REA_IF_SAME_TYPE(fromValue, toValue) { - if constexpr (Resolvable) { - return CSSValueVariant( - fromValue.interpolate(progress, toValue, context)); - } else { - throw std::runtime_error( - "[Reanimated] Non-resolvable value cannot be interpolated as resolvable"); - } - } - return fallbackInterpolate(progress, to); - }, - storage_, - to.storage_); -} - -template -CSSValueVariant -CSSValueVariant::fallbackInterpolate( - const double progress, - const CSSValueVariant &to) const { - return progress < 0.5 ? *this : to; -} - -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant>; -#ifdef ANDROID -template class CSSValueVariant; -#endif - -template class CSSValueVariant; -template class CSSValueVariant; -template class CSSValueVariant; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.h deleted file mode 100644 index 602d6c58..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.h +++ /dev/null @@ -1,123 +0,0 @@ -#pragma once - -#include -#include - -#include - -#include -#include -#include -#include -#include - -namespace reanimated::css { - -using namespace worklets; - -/** - * Macro to check if two lambda parameters have the same reference-removed type. - * - * Usage: - * REA_IF_SAME_TYPE(lhs, rhs) { - * // same-type block - * } else { - * // mismatch block - * } - */ -#define REA_IF_SAME_TYPE(lhs, rhs) \ - using L = std::remove_reference_t; \ - using R = std::remove_reference_t; \ - if constexpr (std::is_same_v) // NOLINT(readability/braces) - -// Checks whether a type has canConstruct(...) for a generic value -template -concept ValueConstructibleCSSValue = requires(TValue &&value) { - { - TCSSValue::canConstruct(std::forward(value)) - } -> std::same_as; -}; // NOLINT(readability/braces) - -// Checks whether a type can be constructed from a jsi::Value -template -concept JSIConstructibleCSSValue = - requires(jsi::Runtime &rt, const jsi::Value &value) { - { TCSSValue::canConstruct(rt, value) } -> std::same_as; - { TCSSValue(rt, value) } -> std::same_as; - }; // NOLINT(readability/braces) - -// Checks whether a type can be constructed from a folly::dynamic -template -concept DynamicConstructibleCSSValue = requires(const folly::dynamic &value) { - { TCSSValue::canConstruct(value) } -> std::same_as; - { TCSSValue(value) } -> std::same_as; -}; // NOLINT(readability/braces) - -/** - * CSSValueVariant - * - * A std::variant-based container for multiple CSSValue-derived types. - */ -template -class CSSValueVariant final : public CSSValue { - static_assert( - (CSSValueDerived && ...), - "CSSValueVariant accepts only CSSValue-derived types"); - static_assert( - (JSIConstructibleCSSValue && ...), - "CSSValueVariant accepts only types that can be constructed from a jsi::Value"); - static_assert( - (DynamicConstructibleCSSValue && ...), - "CSSValueVariant accepts only types that can be constructed from a folly::dynamic"); - - public: - CSSValueVariant() = default; - - /** - * Construct from std::variant storage directly - */ - explicit CSSValueVariant(std::variant &&storage); - - /** - * Construct from jsi::Value if it matches any AllowedType's constructor - * (chooses the first one that matches) - */ - explicit CSSValueVariant(jsi::Runtime &rt, const jsi::Value &jsiValue); - - /** - * Construct from folly::dynamic if it matches any AllowedType's constructor - * (chooses the first one that matches) - */ - explicit CSSValueVariant(const folly::dynamic &value); - - bool operator==(const CSSValueVariant &other) const; - bool operator==(const CSSValue &other) const; - - folly::dynamic toDynamic() const override; - std::string toString() const override; - - /** - * Interpolate (non-resolvable) - */ - CSSValueVariant interpolate( - const double progress, - const CSSValueVariant &to, - const ValueInterpolatorUpdateContext &context) const; - - /** - * Interpolate (resolvable) - */ - CSSValueVariant interpolate( - const double progress, - const CSSValueVariant &to, - const CSSResolvableValueInterpolationContext &context) const; - - private: - std::variant storage_; - - CSSValueVariant fallbackInterpolate( - const double progress, - const CSSValueVariant &to) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.cpp deleted file mode 100644 index c9a7bfed..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.cpp +++ /dev/null @@ -1,196 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -double getIterationCount(jsi::Runtime &rt, const jsi::Object &settings) { - return settings.getProperty(rt, "iterationCount").asNumber(); -} - -AnimationDirection getDirection(jsi::Runtime &rt, const jsi::Object &settings) { - static const std::unordered_map - strToEnumMap = { - {"normal", AnimationDirection::Normal}, - {"reverse", AnimationDirection::Reverse}, - {"alternate", AnimationDirection::Alternate}, - {"alternate-reverse", AnimationDirection::AlternateReverse}}; - - const auto str = settings.getProperty(rt, "direction").asString(rt).utf8(rt); - auto it = strToEnumMap.find(str); - if (it == strToEnumMap.cend()) { - throw std::invalid_argument( - "[Reanimated] Invalid animationDirection: " + str); - } - return it->second; -} - -AnimationFillMode getFillMode(jsi::Runtime &rt, const jsi::Object &settings) { - static const std::unordered_map strToEnumMap = - {{"none", AnimationFillMode::None}, - {"forwards", AnimationFillMode::Forwards}, - {"backwards", AnimationFillMode::Backwards}, - {"both", AnimationFillMode::Both}}; - - const auto str = settings.getProperty(rt, "fillMode").asString(rt).utf8(rt); - auto it = strToEnumMap.find(str); - if (it == strToEnumMap.cend()) { - throw std::invalid_argument( - "[Reanimated] Invalid animationFillMode: " + str); - } - return it->second; -} - -AnimationPlayState getPlayState(jsi::Runtime &rt, const jsi::Object &settings) { - static const std::unordered_map - strToEnumMap = { - {"running", AnimationPlayState::Running}, - {"paused", AnimationPlayState::Paused}}; - - const auto str = settings.getProperty(rt, "playState").asString(rt).utf8(rt); - auto it = strToEnumMap.find(str); - if (it == strToEnumMap.cend()) { - throw std::invalid_argument( - "[Reanimated] Invalid animationPlayState: " + str); - } - return it->second; -} - -CSSAnimationSettings parseCSSAnimationSettings( - jsi::Runtime &rt, - const jsi::Value &settings) { - const auto &settingsObj = settings.asObject(rt); - - return { - getDuration(rt, settingsObj), - getTimingFunction(rt, settingsObj), - getDelay(rt, settingsObj), - getIterationCount(rt, settingsObj), - getDirection(rt, settingsObj), - getFillMode(rt, settingsObj), - getPlayState(rt, settingsObj)}; -} - -PartialCSSAnimationSettings parsePartialCSSAnimationSettings( - jsi::Runtime &rt, - const jsi::Value &partialSettings) { - const auto &partialObj = partialSettings.asObject(rt); - - PartialCSSAnimationSettings result; - - if (partialObj.hasProperty(rt, "duration")) { - result.duration = getDuration(rt, partialObj); - } - if (partialObj.hasProperty(rt, "timingFunction")) { - result.easingFunction = getTimingFunction(rt, partialObj); - } - if (partialObj.hasProperty(rt, "delay")) { - result.delay = getDelay(rt, partialObj); - } - if (partialObj.hasProperty(rt, "iterationCount")) { - result.iterationCount = getIterationCount(rt, partialObj); - } - if (partialObj.hasProperty(rt, "direction")) { - result.direction = getDirection(rt, partialObj); - } - if (partialObj.hasProperty(rt, "fillMode")) { - result.fillMode = getFillMode(rt, partialObj); - } - if (partialObj.hasProperty(rt, "playState")) { - result.playState = getPlayState(rt, partialObj); - } - - return result; -} - -std::vector parseAnimationNames( - jsi::Runtime &rt, - const jsi::Value &animationNames) { - std::vector result; - - const auto &namesArray = animationNames.asObject(rt).asArray(rt); - const auto animationNamesCount = namesArray.size(rt); - result.reserve(animationNamesCount); - - for (size_t i = 0; i < animationNamesCount; i++) { - result.emplace_back( - namesArray.getValueAtIndex(rt, i).asString(rt).utf8(rt)); - } - - return result; -} - -template -std::unordered_map parseHelper( - jsi::Runtime &rt, - const jsi::Object &settingsObj, - std::function parseFunction) { - std::unordered_map result; - - const auto animationIndices = settingsObj.getPropertyNames(rt); - const auto animationIndicesCount = animationIndices.size(rt); - result.reserve(animationIndicesCount); - - for (size_t i = 0; i < animationIndicesCount; i++) { - const auto &indexStr = animationIndices.getValueAtIndex(rt, i).toString(rt); - const auto &animationSettings = settingsObj.getProperty(rt, indexStr); - - const auto index = std::stoul(indexStr.utf8(rt)); - result[index] = parseFunction(rt, animationSettings); - } - - return result; -} - -CSSAnimationSettingsMap parseNewAnimationSettings( - jsi::Runtime &rt, - const std::vector &animationNames, - const jsi::Value &newSettings) { - return parseHelper( - rt, - newSettings.asObject(rt), - [&](jsi::Runtime &rt, const jsi::Value &settings) { - return parseCSSAnimationSettings(rt, settings); - }); -} - -CSSAnimationSettingsUpdatesMap parseSettingsUpdates( - jsi::Runtime &rt, - const jsi::Value &settingsUpdates) { - return parseHelper( - rt, - settingsUpdates.asObject(rt), - [](jsi::Runtime &rt, const jsi::Value &settings) { - return parsePartialCSSAnimationSettings(rt, settings); - }); -} - -CSSAnimationUpdates parseCSSAnimationUpdates( - jsi::Runtime &rt, - const jsi::Value &config) { - const auto &configObj = config.asObject(rt); - - CSSAnimationUpdates result; - - if (configObj.hasProperty(rt, "animationNames")) { - const auto animationNames = - parseAnimationNames(rt, configObj.getProperty(rt, "animationNames")); - result.animationNames = std::move(animationNames); - - if (configObj.hasProperty(rt, "newAnimationSettings")) { - result.newAnimationSettings = parseNewAnimationSettings( - rt, - animationNames, - configObj.getProperty(rt, "newAnimationSettings")); - } - } - - if (configObj.hasProperty(rt, "settingsUpdates")) { - result.settingsUpdates = - parseSettingsUpdates(rt, configObj.getProperty(rt, "settingsUpdates")); - } - - return result; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.h deleted file mode 100644 index 1defb7b8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSAnimationConfig.h +++ /dev/null @@ -1,53 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -enum class AnimationDirection { Normal, Reverse, Alternate, AlternateReverse }; -enum class AnimationFillMode { None, Forwards, Backwards, Both }; -enum class AnimationPlayState { Running, Paused }; - -struct CSSAnimationSettings { - double duration; - EasingFunction easingFunction; - double delay; - double iterationCount; - AnimationDirection direction; - AnimationFillMode fillMode; - AnimationPlayState playState; -}; - -struct PartialCSSAnimationSettings { - std::optional duration; - std::optional easingFunction; - std::optional delay; - std::optional iterationCount; - std::optional direction; - std::optional fillMode; - std::optional playState; -}; - -using CSSAnimationSettingsMap = - std::unordered_map; -using CSSAnimationSettingsUpdatesMap = - std::unordered_map; - -struct CSSAnimationUpdates { - std::optional> animationNames; - CSSAnimationSettingsMap newAnimationSettings; - CSSAnimationSettingsUpdatesMap settingsUpdates; -}; - -CSSAnimationUpdates parseCSSAnimationUpdates( - jsi::Runtime &rt, - const jsi::Value &config); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.cpp deleted file mode 100644 index 75540f2f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include - -namespace reanimated::css { - -std::shared_ptr createStyleInterpolator( - jsi::Runtime &rt, - const jsi::Object &config, - const std::string &componentName, - const std::shared_ptr &viewStylesRepository) { - return std::make_shared( - rt, - config.getProperty(rt, "keyframesStyle"), - componentName, - viewStylesRepository); -} - -std::shared_ptr getKeyframeTimingFunctions( - jsi::Runtime &rt, - const jsi::Object &config) { - KeyframeEasingFunctions result; - const auto &keyframeTimingFunctions = - config.getProperty(rt, "keyframeTimingFunctions").asObject(rt); - const auto timingFunctionOffsets = - keyframeTimingFunctions.getPropertyNames(rt); - const auto timingFunctionsCount = timingFunctionOffsets.size(rt); - - for (size_t i = 0; i < timingFunctionsCount; ++i) { - const auto offset = - timingFunctionOffsets.getValueAtIndex(rt, i).asString(rt).utf8(rt); - const auto easingFunction = createEasingFunction( - rt, keyframeTimingFunctions.getProperty(rt, offset.c_str())); - - result[std::stod(offset)] = easingFunction; - } - - return std::make_shared(result); -} - -CSSKeyframesConfig parseCSSAnimationKeyframesConfig( - jsi::Runtime &rt, - const jsi::Value &config, - const std::string &componentName, - const std::shared_ptr &viewStylesRepository) { - const auto &configObj = config.asObject(rt); - - return { - createStyleInterpolator( - rt, configObj, componentName, viewStylesRepository), - getKeyframeTimingFunctions(rt, configObj)}; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.h deleted file mode 100644 index 3ba8880d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSKeyframesConfig.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include - -namespace reanimated::css { - -using KeyframeEasingFunctions = std::unordered_map; - -struct CSSKeyframesConfig { - std::shared_ptr styleInterpolator; - std::shared_ptr keyframeEasingFunctions; -}; - -CSSKeyframesConfig parseCSSAnimationKeyframesConfig( - jsi::Runtime &rt, - const jsi::Value &config, - const std::string &componentName, - const std::shared_ptr &viewStylesRepository); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.cpp deleted file mode 100644 index 7c5fd99c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.cpp +++ /dev/null @@ -1,102 +0,0 @@ -#include - -namespace reanimated::css { - -std::optional getTransitionPropertySettings( - const CSSTransitionPropertiesSettings &propertiesSettings, - const std::string &propName) { - // Try to use property specific settings first - const auto &propIt = propertiesSettings.find(propName); - if (propIt != propertiesSettings.end()) { - return propIt->second; - } - // Fallback to "all" settings if no property specific settings are available - const auto &allIt = propertiesSettings.find("all"); - if (allIt != propertiesSettings.end()) { - return allIt->second; - } - // Or return nullopt if no settings are available - return std::nullopt; -} - -TransitionProperties getProperties( - jsi::Runtime &rt, - const jsi::Object &config) { - const auto transitionProperty = config.getProperty(rt, "properties"); - - if (transitionProperty.isObject()) { - PropertyNames properties; - - const auto propertiesArray = transitionProperty.asObject(rt).asArray(rt); - const auto propertiesCount = propertiesArray.size(rt); - for (size_t i = 0; i < propertiesCount; ++i) { - properties.emplace_back( - propertiesArray.getValueAtIndex(rt, i).asString(rt).utf8(rt)); - } - - return properties; - } - - return std::nullopt; -} - -bool getAllowDiscrete(jsi::Runtime &rt, const jsi::Object &config) { - return config.getProperty(rt, "allowDiscrete").asBool(); -} - -CSSTransitionPropertiesSettings parseCSSTransitionPropertiesSettings( - jsi::Runtime &rt, - const jsi::Object &settings) { - CSSTransitionPropertiesSettings result; - - const auto propertyNames = settings.getPropertyNames(rt); - const auto propertiesCount = propertyNames.size(rt); - - for (size_t i = 0; i < propertiesCount; ++i) { - const auto propertyName = - propertyNames.getValueAtIndex(rt, i).asString(rt).utf8(rt); - const auto propertySettings = - settings.getProperty(rt, jsi::PropNameID::forUtf8(rt, propertyName)) - .asObject(rt); - - result.emplace( - propertyName, - CSSTransitionPropertySettings{ - getDuration(rt, propertySettings), - getTimingFunction(rt, propertySettings), - getDelay(rt, propertySettings), - getAllowDiscrete(rt, propertySettings)}); - } - - return result; -} - -CSSTransitionConfig parseCSSTransitionConfig( - jsi::Runtime &rt, - const jsi::Value &config) { - const auto configObj = config.asObject(rt); - return CSSTransitionConfig{ - getProperties(rt, configObj), - parseCSSTransitionPropertiesSettings( - rt, configObj.getProperty(rt, "settings").asObject(rt))}; -} - -PartialCSSTransitionConfig parsePartialCSSTransitionConfig( - jsi::Runtime &rt, - const jsi::Value &partialConfig) { - const auto partialObj = partialConfig.asObject(rt); - - PartialCSSTransitionConfig result; - - if (partialObj.hasProperty(rt, "properties")) { - result.properties = getProperties(rt, partialObj); - } - if (partialObj.hasProperty(rt, "settings")) { - result.settings = parseCSSTransitionPropertiesSettings( - rt, partialObj.getProperty(rt, "settings").asObject(rt)); - } - - return result; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.h deleted file mode 100644 index 1ca2106e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/CSSTransitionConfig.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include - -namespace reanimated::css { - -struct CSSTransitionPropertySettings { - double duration; - EasingFunction easingFunction; - double delay; - bool allowDiscrete; -}; - -using CSSTransitionPropertiesSettings = - std::unordered_map; - -struct CSSTransitionConfig { - TransitionProperties properties; - CSSTransitionPropertiesSettings settings; -}; - -struct PartialCSSTransitionConfig { - std::optional properties; - std::optional settings; -}; - -std::optional getTransitionPropertySettings( - const CSSTransitionPropertiesSettings &propertiesSettings, - const std::string &propName); - -TransitionProperties getProperties(jsi::Runtime &rt, const jsi::Object &config); - -CSSTransitionPropertiesSettings parseCSSTransitionPropertiesSettings( - jsi::Runtime &rt, - const jsi::Object &settings); - -CSSTransitionConfig parseCSSTransitionConfig( - jsi::Runtime &rt, - const jsi::Value &config); - -PartialCSSTransitionConfig parsePartialCSSTransitionConfig( - jsi::Runtime &rt, - const jsi::Value &partialConfig); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/common.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/common.cpp deleted file mode 100644 index f7b4f931..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/common.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include - -namespace reanimated::css { - -double getDuration(jsi::Runtime &rt, const jsi::Object &config) { - return config.getProperty(rt, "duration").asNumber(); -} - -EasingFunction getTimingFunction(jsi::Runtime &rt, const jsi::Object &config) { - return createEasingFunction(rt, config.getProperty(rt, "timingFunction")); -} - -double getDelay(jsi::Runtime &rt, const jsi::Object &config) { - return config.getProperty(rt, "delay").asNumber(); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/common.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/common.h deleted file mode 100644 index 4d053e6b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/configs/common.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#include - -namespace reanimated::css { - -double getDuration(jsi::Runtime &rt, const jsi::Object &config); - -EasingFunction getTimingFunction(jsi::Runtime &rt, const jsi::Object &config); - -double getDelay(jsi::Runtime &rt, const jsi::Object &config); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSAnimation.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSAnimation.cpp deleted file mode 100644 index 76d06473..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSAnimation.cpp +++ /dev/null @@ -1,135 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -CSSAnimation::CSSAnimation( - jsi::Runtime &rt, - std::shared_ptr shadowNode, - std::string animationName, - const CSSKeyframesConfig &cssKeyframesConfig, - const CSSAnimationSettings &settings, - const double timestamp) - : name_(std::move(animationName)), - shadowNode_(std::move(shadowNode)), - fillMode_(settings.fillMode), - styleInterpolator_(cssKeyframesConfig.styleInterpolator), - progressProvider_(std::make_shared( - timestamp, - settings.duration, - settings.delay, - settings.iterationCount, - settings.direction, - settings.easingFunction, - cssKeyframesConfig.keyframeEasingFunctions)) { - if (settings.playState == AnimationPlayState::Paused) { - progressProvider_->pause(timestamp); - } -} - -const std::string &CSSAnimation::getName() const { - return name_; -} - -std::shared_ptr CSSAnimation::getShadowNode() const { - return shadowNode_; -} - -double CSSAnimation::getStartTimestamp(const double timestamp) const { - return progressProvider_->getStartTimestamp(timestamp); -} - -AnimationProgressState CSSAnimation::getState(double timestamp) const { - return progressProvider_->getState(timestamp); -} - -bool CSSAnimation::isReversed() const { - const auto direction = progressProvider_->getDirection(); - return direction == AnimationDirection::Reverse || - direction == AnimationDirection::AlternateReverse; -} - -bool CSSAnimation::hasForwardsFillMode() const { - return fillMode_ == AnimationFillMode::Forwards || - fillMode_ == AnimationFillMode::Both; -} - -bool CSSAnimation::hasBackwardsFillMode() const { - return fillMode_ == AnimationFillMode::Backwards || - fillMode_ == AnimationFillMode::Both; -} - -folly::dynamic CSSAnimation::getCurrentInterpolationStyle() const { - return styleInterpolator_->interpolate(shadowNode_, progressProvider_); -} - -folly::dynamic CSSAnimation::getBackwardsFillStyle() const { - return isReversed() ? styleInterpolator_->getLastKeyframeValue() - : styleInterpolator_->getFirstKeyframeValue(); -} - -folly::dynamic CSSAnimation::getResetStyle() const { - return styleInterpolator_->getResetStyle(shadowNode_); -} - -void CSSAnimation::run(const double timestamp) { - if (progressProvider_->getState(timestamp) == - AnimationProgressState::Finished) { - return; - } - progressProvider_->play(timestamp); -} - -folly::dynamic CSSAnimation::update(const double timestamp) { - progressProvider_->update(timestamp); - - // Check if the animation has not started yet because of the delay - // (In general, it shouldn't be activated until the delay has passed but we - // add this check to make sure that animation doesn't start with the negative - // progress) - if (progressProvider_->getState(timestamp) == - AnimationProgressState::Pending) { - return hasBackwardsFillMode() ? getBackwardsFillStyle() : folly::dynamic(); - } - - return styleInterpolator_->interpolate(shadowNode_, progressProvider_); -} - -void CSSAnimation::updateSettings( - const PartialCSSAnimationSettings &updatedSettings, - const double timestamp) { - progressProvider_->resetProgress(); - - if (updatedSettings.duration.has_value()) { - progressProvider_->setDuration(updatedSettings.duration.value()); - } - if (updatedSettings.easingFunction.has_value()) { - progressProvider_->setEasingFunction( - updatedSettings.easingFunction.value()); - } - if (updatedSettings.delay.has_value()) { - progressProvider_->setDelay(updatedSettings.delay.value()); - } - if (updatedSettings.iterationCount.has_value()) { - progressProvider_->setIterationCount( - updatedSettings.iterationCount.value()); - } - if (updatedSettings.direction.has_value()) { - progressProvider_->setDirection(updatedSettings.direction.value()); - } - if (updatedSettings.fillMode.has_value()) { - fillMode_ = updatedSettings.fillMode.value(); - } - if (updatedSettings.playState.has_value()) { - if (updatedSettings.playState.value() == AnimationPlayState::Paused) { - progressProvider_->pause(timestamp); - } else { - progressProvider_->play(timestamp); - } - } - - progressProvider_->update(timestamp); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSAnimation.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSAnimation.h deleted file mode 100644 index 3ac40048..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSAnimation.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include - -namespace reanimated::css { - -class CSSAnimation { - public: - CSSAnimation( - jsi::Runtime &rt, - std::shared_ptr shadowNode, - std::string animationName, - const CSSKeyframesConfig &cssKeyframesConfig, - const CSSAnimationSettings &settings, - double timestamp); - - const std::string &getName() const; - std::shared_ptr getShadowNode() const; - - double getStartTimestamp(double timestamp) const; - AnimationProgressState getState(double timestamp) const; - bool isReversed() const; - - bool hasForwardsFillMode() const; - bool hasBackwardsFillMode() const; - - folly::dynamic getCurrentInterpolationStyle() const; - folly::dynamic getBackwardsFillStyle() const; - folly::dynamic getResetStyle() const; - - void run(double timestamp); - folly::dynamic update(double timestamp); - void updateSettings( - const PartialCSSAnimationSettings &updatedSettings, - double timestamp); - - private: - const std::string name_; - const std::shared_ptr shadowNode_; - AnimationFillMode fillMode_; - - const std::shared_ptr styleInterpolator_; - const std::shared_ptr progressProvider_; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp deleted file mode 100644 index 6e158fba..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.cpp +++ /dev/null @@ -1,145 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -CSSTransition::CSSTransition( - std::shared_ptr shadowNode, - const CSSTransitionConfig &config, - const std::shared_ptr &viewStylesRepository) - : shadowNode_(std::move(shadowNode)), - viewStylesRepository_(viewStylesRepository), - properties_(config.properties), - settings_(config.settings), - styleInterpolator_(TransitionStyleInterpolator( - shadowNode_->getComponentName(), - viewStylesRepository)), - progressProvider_(TransitionProgressProvider()) {} - -Tag CSSTransition::getViewTag() const { - return shadowNode_->getTag(); -} - -std::shared_ptr CSSTransition::getShadowNode() const { - return shadowNode_; -} - -double CSSTransition::getMinDelay(double timestamp) const { - return progressProvider_.getMinDelay(timestamp); -} - -TransitionProgressState CSSTransition::getState() const { - return progressProvider_.getState(); -} - -folly::dynamic CSSTransition::getCurrentInterpolationStyle() const { - return styleInterpolator_.interpolate(shadowNode_, progressProvider_); -} - -TransitionProperties CSSTransition::getProperties() const { - return properties_; -} - -PropertyNames CSSTransition::getAllowedProperties( - const folly::dynamic &oldProps, - const folly::dynamic &newProps) { - if (!oldProps.isObject() || !newProps.isObject()) { - return {}; - } - - // If specific properties are set, process only those - if (properties_.has_value()) { - PropertyNames allowedProps; - const auto &properties = properties_.value(); - allowedProps.reserve(properties.size()); - - for (const auto &prop : properties) { - if (isAllowedProperty(prop)) { - allowedProps.push_back(prop); - } - } - - return allowedProps; - } - - // Process all properties from both old and new props - std::unordered_set allAllowedProps; - - for (const auto &props : {oldProps, newProps}) { - for (const auto &propertyName : props.keys()) { - if (isAllowedProperty(propertyName.asString())) { - allAllowedProps.insert(propertyName.asString()); - } - } - } - - return {allAllowedProps.begin(), allAllowedProps.end()}; -} - -void CSSTransition::updateSettings(const PartialCSSTransitionConfig &config) { - if (config.properties.has_value()) { - updateTransitionProperties(config.properties.value()); - } - if (config.settings.has_value()) { - settings_ = config.settings.value(); - } -} - -folly::dynamic CSSTransition::run( - const ChangedProps &changedProps, - const folly::dynamic &lastUpdateValue, - const double timestamp) { - progressProvider_.runProgressProviders( - timestamp, - settings_, - changedProps.changedPropertyNames, - styleInterpolator_.getReversedPropertyNames(changedProps.newProps)); - styleInterpolator_.updateInterpolatedProperties( - changedProps, lastUpdateValue); - return update(timestamp); -} - -folly::dynamic CSSTransition::update(const double timestamp) { - progressProvider_.update(timestamp); - auto result = styleInterpolator_.interpolate(shadowNode_, progressProvider_); - // Remove interpolators for which interpolation has finished - // (we won't need them anymore in the current transition) - styleInterpolator_.discardFinishedInterpolators(progressProvider_); - // And remove finished progress providers after they were used to calculate - // the last frame of the transition - progressProvider_.discardFinishedProgressProviders(); - return result; -} - -void CSSTransition::updateTransitionProperties( - const TransitionProperties &properties) { - properties_ = properties; - - const auto isAllPropertiesTransition = !properties_.has_value(); - if (isAllPropertiesTransition) { - return; - } - - const std::unordered_set transitionPropertyNames( - properties_->begin(), properties_->end()); - - styleInterpolator_.discardIrrelevantInterpolators(transitionPropertyNames); - progressProvider_.discardIrrelevantProgressProviders(transitionPropertyNames); -} - -bool CSSTransition::isAllowedProperty(const std::string &propertyName) const { - if (!isDiscreteProperty(propertyName, shadowNode_->getComponentName())) { - return true; - } - - const auto &propertySettings = - getTransitionPropertySettings(settings_, propertyName); - - if (!propertySettings.has_value()) { - return false; - } - return propertySettings.value().allowDiscrete; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.h deleted file mode 100644 index 1afdcbc1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/core/CSSTransition.h +++ /dev/null @@ -1,50 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include -#include - -namespace reanimated::css { - -class CSSTransition { - public: - CSSTransition( - std::shared_ptr shadowNode, - const CSSTransitionConfig &config, - const std::shared_ptr &viewStylesRepository); - - Tag getViewTag() const; - std::shared_ptr getShadowNode() const; - double getMinDelay(double timestamp) const; - TransitionProgressState getState() const; - folly::dynamic getCurrentInterpolationStyle() const; - TransitionProperties getProperties() const; - PropertyNames getAllowedProperties( - const folly::dynamic &oldProps, - const folly::dynamic &newProps); - - void updateSettings(const PartialCSSTransitionConfig &config); - folly::dynamic run( - const ChangedProps &changedProps, - const folly::dynamic &lastUpdateValue, - double timestamp); - folly::dynamic update(double timestamp); - - private: - const std::shared_ptr shadowNode_; - const std::shared_ptr viewStylesRepository_; - TransitionProperties properties_; - CSSTransitionPropertiesSettings settings_; - TransitionStyleInterpolator styleInterpolator_; - TransitionProgressProvider progressProvider_; - - void updateTransitionProperties(const TransitionProperties &properties); - bool isAllowedProperty(const std::string &propertyName) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/EasingFunctions.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/EasingFunctions.cpp deleted file mode 100644 index 1a0e49ea..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/EasingFunctions.cpp +++ /dev/null @@ -1,76 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -inline const std::unordered_map - PREDEFINED_EASING_MAP = { - {"linear", [](double x) { return x; }}, - {"ease", cubicBezier(0.25, 0.1, 0.25, 0.1)}, - {"ease-in", cubicBezier(0.42, 0.0, 1.0, 1.0)}, - {"ease-out", cubicBezier(0.0, 0.0, 0.58, 1.0)}, - {"ease-in-out", cubicBezier(0.42, 0.0, 0.58, 1.0)}, - {"step-start", steps(std::vector{0}, std::vector{1})}, - {"step-end", - steps(std::vector{0, 1}, std::vector{0, 1})}}; - -EasingFunction createEasingFunction( - jsi::Runtime &rt, - const jsi::Value &easingConfig) { - if (easingConfig.isString()) { - return getPredefinedEasingFunction(easingConfig.asString(rt).utf8(rt)); - } else if (easingConfig.isObject()) { - return createParametrizedEasingFunction(rt, easingConfig.asObject(rt)); - } else { - throw std::runtime_error( - std::string("[Reanimated] Invalid easing function")); - } -} - -EasingFunction getPredefinedEasingFunction(const std::string &name) { - auto it = PREDEFINED_EASING_MAP.find(name); - if (it != PREDEFINED_EASING_MAP.end()) { - return it->second; - } else { - throw std::runtime_error(std::string( - "[Reanimated] Easing function with name '" + name + - "' is not defined.")); - } -} - -EasingFunction createParametrizedEasingFunction( - jsi::Runtime &rt, - const jsi::Object &easingConfig) { - const auto easingName = - easingConfig.getProperty(rt, "name").asString(rt).utf8(rt); - - if (easingName == "cubicBezier") { - return cubicBezier(rt, easingConfig); - } - - std::vector pointsX; - std::vector pointsY; - - const auto points = - easingConfig.getProperty(rt, "points").asObject(rt).asArray(rt); - const auto pointsCount = points.size(rt); - - for (size_t i = 0; i < pointsCount; i++) { - const auto pointObj = points.getValueAtIndex(rt, i).asObject(rt); - pointsX.push_back(pointObj.getProperty(rt, "x").asNumber()); - pointsY.push_back(pointObj.getProperty(rt, "y").asNumber()); - } - - if (easingName == "linear") { - return linear(pointsX, pointsY); - } else if (easingName == "steps") { - return steps(pointsX, pointsY); - } else { - throw std::runtime_error(std::string( - "[Reanimated] Parametrized easing function with name '" + easingName + - "' is not defined.")); - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/EasingFunctions.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/EasingFunctions.h deleted file mode 100644 index 452a96b7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/EasingFunctions.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include - -namespace reanimated::css { - -using namespace facebook; - -extern const std::unordered_map - PREDEFINED_EASING_MAP; - -EasingFunction getPredefinedEasingFunction(const std::string &name); -EasingFunction createParametrizedEasingFunction( - jsi::Runtime &rt, - const jsi::Object &easingConfig); - -EasingFunction createEasingFunction( - jsi::Runtime &rt, - const jsi::Value &easingConfig); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/cubicBezier.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/cubicBezier.cpp deleted file mode 100644 index c7b9f568..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/cubicBezier.cpp +++ /dev/null @@ -1,76 +0,0 @@ -#include - -namespace reanimated::css { - -double sampleCurveX(const double t, const double x1, const double x2) { - return 3 * (1 - t) * (1 - t) * t * x1 + 3 * (1 - t) * t * t * x2 + t * t * t; -} - -double sampleCurveY(const double t, const double y1, const double y2) { - return 3 * (1 - t) * (1 - t) * t * y1 + 3 * (1 - t) * t * t * y2 + t * t * t; -} - -double -sampleCurveDerivativeX(const double t, const double x1, const double x2) { - return -6 * (1 - t) * t * x1 + 3 * (1 - t) * (1 - t) * x1 + - 6 * (1 - t) * t * x2 - 6 * t * t * x2 + 3 * t * t; -} - -double solveCurveX( - const double x, - const double x1, - const double x2, - const double epsilon) { - double t0 = 0.0, t1 = 1.0, t2 = x, xValue, dX; - int iterations = 0; - - while (iterations < 8) { - xValue = sampleCurveX(t2, x1, x2) - x; - if (std::abs(xValue) < epsilon) { - return t2; - } - dX = sampleCurveDerivativeX(t2, x1, x2); - if (std::abs(dX) < epsilon) { - break; - } - t2 = t2 - xValue / dX; - iterations++; - } - - // Fallback: Use binary search - while (t0 < t1) { - t2 = (t0 + t1) / 2.0; - xValue = sampleCurveX(t2, x1, x2); - if (std::abs(xValue - x) < epsilon) { - return t2; - } - if (x > xValue) { - t0 = t2; - } else { - t1 = t2; - } - } - - return t2; -} - -EasingFunction cubicBezier( - const double x1, - const double y1, - const double x2, - const double y2) { - return [=](double x) { - double t = solveCurveX(x, x1, x2); - return sampleCurveY(t, y1, y2); - }; -} - -EasingFunction cubicBezier(jsi::Runtime &rt, const jsi::Object &easingConfig) { - const auto x1 = easingConfig.getProperty(rt, "x1").asNumber(); - const auto y1 = easingConfig.getProperty(rt, "y1").asNumber(); - const auto x2 = easingConfig.getProperty(rt, "x2").asNumber(); - const auto y2 = easingConfig.getProperty(rt, "y2").asNumber(); - return cubicBezier(x1, y1, x2, y2); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/cubicBezier.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/cubicBezier.h deleted file mode 100644 index fca77fc7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/cubicBezier.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#include - -namespace reanimated::css { - -double sampleCurveX(double t, double x1, double x2); -double sampleCurveY(double t, double y1, double y2); -double sampleCurveDerivativeX(double t, double x1, double x2); -double solveCurveX(double x, double x1, double x2, double epsilon = 1e-6); - -EasingFunction cubicBezier(double x1, double y1, double x2, double y2); -EasingFunction cubicBezier(jsi::Runtime &rt, const jsi::Object &easingConfig); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/linear.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/linear.cpp deleted file mode 100644 index 10f7e1b7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/linear.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include - -namespace reanimated::css { - -double interpolateValue( - double x, - size_t leftIdx, - const std::vector &pointsX, - const std::vector &pointsY) { - if (leftIdx == pointsX.size() - 1) { - // We are exactly on the last point of the curve, we just return its y - // coordinate - return pointsY[leftIdx]; - } - const auto rightIdx = leftIdx + 1; - // Calculate the line equation for the line between leftIdx and rightIdx - // points - const auto a = (pointsY[rightIdx] - pointsY[leftIdx]) / - (pointsX[rightIdx] - pointsX[leftIdx]); - return pointsY[leftIdx] + a * (x - pointsX[leftIdx]); -} - -EasingFunction linear( - const std::vector &pointsX, - const std::vector &pointsY) { - return [=](double x) { - size_t leftIdx = firstSmallerOrEqual(x, pointsX); - return interpolateValue(x, leftIdx, pointsX, pointsY); - }; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/linear.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/linear.h deleted file mode 100644 index a4341184..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/linear.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include -#include - -#include - -namespace reanimated::css { - -double interpolateValue( - double x, - std::size_t leftIdx, - const std::vector &arrX, - const std::vector &arrY); - -EasingFunction linear( - const std::vector &pointsX, - const std::vector &pointsY); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/steps.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/steps.cpp deleted file mode 100644 index 019c7f6d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/steps.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include - -namespace reanimated::css { -EasingFunction steps( - const std::vector &pointsX, - const std::vector &pointsY) { - return [=](double x) { - size_t stepIdx = firstSmallerOrEqual(x, pointsX); - return pointsY[stepIdx]; - }; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/steps.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/steps.h deleted file mode 100644 index 720c51b6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/easing/steps.h +++ /dev/null @@ -1,14 +0,0 @@ -#pragma once - -#include -#include - -#include - -namespace reanimated::css { - -EasingFunction steps( - const std::vector &pointsX, - const std::vector &pointsY); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.cpp deleted file mode 100644 index 0e954cb7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.cpp +++ /dev/null @@ -1,134 +0,0 @@ -#include - -namespace reanimated::css { - -class RecordInterpolatorFactory : public PropertyInterpolatorFactory { - public: - explicit RecordInterpolatorFactory( - const InterpolatorFactoriesRecord &factories) - : PropertyInterpolatorFactory(), factories_(factories) {} - - const CSSValue &getDefaultValue() const override { - static EmptyObjectValue emptyObjectValue; - return emptyObjectValue; - } - - std::shared_ptr create( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - const override { - return std::make_shared( - factories_, propertyPath, viewStylesRepository); - } - - private: - // Helper private type just for a default value - struct EmptyObjectValue : public CSSValue { - folly::dynamic toDynamic() const override { - return folly::dynamic::object; - } - - std::string toString() const override { - return "{}"; - } - }; - - const InterpolatorFactoriesRecord factories_; -}; - -class ArrayInterpolatorFactory : public PropertyInterpolatorFactory { - public: - explicit ArrayInterpolatorFactory(const InterpolatorFactoriesArray &factories) - : PropertyInterpolatorFactory(), factories_(factories) {} - - const CSSValue &getDefaultValue() const override { - static EmptyArrayValue emptyArrayValue; - return emptyArrayValue; - } - - std::shared_ptr create( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - const override { - return std::make_shared( - factories_, propertyPath, viewStylesRepository); - } - - private: - // Helper private type just for a default value - struct EmptyArrayValue : public CSSValue { - folly::dynamic toDynamic() const override { - return folly::dynamic::array; - } - - std::string toString() const override { - return "[]"; - } - }; - - const InterpolatorFactoriesArray factories_; -}; - -class TransformsInterpolatorFactory : public PropertyInterpolatorFactory { - public: - explicit TransformsInterpolatorFactory( - const std::shared_ptr &interpolators) - : PropertyInterpolatorFactory(), interpolators_(interpolators) {} - - const CSSValue &getDefaultValue() const override { - static EmptyTransformsValue emptyTransformsValue; - return emptyTransformsValue; - } - - std::shared_ptr create( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - const override { - return std::make_shared( - propertyPath, interpolators_, viewStylesRepository); - } - - private: - static TransformMatrix3D &getIdentityMatrix() { - static TransformMatrix3D identityMatrix = TransformMatrix3D::Identity(); - return identityMatrix; - } - - // Helper private type just for a default value - struct EmptyTransformsValue : public CSSValue { - folly::dynamic toDynamic() const override { - return getIdentityMatrix().toDynamic(); - } - - std::string toString() const override { - return getIdentityMatrix().toString(); - } - }; - - const std::shared_ptr interpolators_; -}; - -// Non-template function implementations -std::shared_ptr record( - const InterpolatorFactoriesRecord &factories) { - return std::make_shared(factories); -} - -std::shared_ptr array( - const InterpolatorFactoriesArray &factories) { - return std::make_shared(factories); -} - -std::shared_ptr transforms( - const std::unordered_map< - std::string, - std::shared_ptr> &interpolators) { - TransformInterpolators result; - for (const auto &[property, interpolator] : interpolators) { - result[getTransformOperationType(property)] = interpolator; - } - return std::make_shared( - std::make_shared(result)); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.h deleted file mode 100644 index ab61b157..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.h +++ /dev/null @@ -1,194 +0,0 @@ -#pragma once - -#include - -#include -#include - -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -// Template class implementations -template -class SimpleValueInterpolatorFactory : public PropertyInterpolatorFactory { - public: - template - explicit SimpleValueInterpolatorFactory(const TValue &defaultValue) - : PropertyInterpolatorFactory(), defaultValue_(defaultValue) {} - - bool isDiscreteProperty() const override { - // The property is considered discrete if all of the allowed types are - // discrete - return (Discrete && ...); - } - - const CSSValue &getDefaultValue() const override { - return defaultValue_; - } - - std::shared_ptr create( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - const override { - return std::make_shared>( - propertyPath, defaultValue_, viewStylesRepository); - } - - private: - const CSSValueVariant defaultValue_; -}; - -template -class ResolvableValueInterpolatorFactory : public PropertyInterpolatorFactory { - public: - template - explicit ResolvableValueInterpolatorFactory( - RelativeTo relativeTo, - const std::string &relativeProperty, - const TValue &defaultValue) - : PropertyInterpolatorFactory(), - relativeTo_(relativeTo), - relativeProperty_(relativeProperty), - defaultValue_(defaultValue) {} - - const CSSValue &getDefaultValue() const override { - return defaultValue_; - } - - std::shared_ptr create( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - const override { - return std::make_shared>( - propertyPath, - defaultValue_, - viewStylesRepository, - relativeTo_, - relativeProperty_); - } - - private: - const RelativeTo relativeTo_; - const std::string relativeProperty_; - const CSSValueVariant defaultValue_; -}; - -/** - * Helper function to create a concrete CSSValue from defaultValue - */ -template -CSSValueVariant createCSSValue(const auto &defaultValue) { - using ValueType = decltype(defaultValue); - CSSValueVariant result; - - auto tryOne = [&]() -> bool { - if constexpr (std::is_constructible_v) { - if constexpr (ValueConstructibleCSSValue) { - // For construction from a non-jsi::Value, we perform a runtime - // canConstruct check only if the type has a canConstruct method. - // (this is needed e.g. when different CSS value types can be - // constructed from the same value type, like CSSLength and CSSKeyword) - if (!TCSSValue::canConstruct(defaultValue)) { - return false; - } - } - result = CSSValueVariant( - std::variant(TCSSValue(defaultValue))); - return true; - } - return false; - }; - - // Try constructing with each allowed type until one succeeds - if (!(tryOne.template operator()() || ...)) { - throw std::runtime_error( - "[Reanimated] No compatible type found for construction from defaultValue"); - } - - return result; -} - -/** - * Value interpolator factories - */ -template -auto value(const auto &defaultValue) -> std::enable_if_t< - (std::is_constructible_v || ...), - std::shared_ptr> { - // Create a concrete CSSValue from the defaultValue - auto cssValue = createCSSValue(defaultValue); - return std::make_shared>( - std::move(cssValue)); -} - -template -auto value( - RelativeTo relativeTo, - const std::string &relativeProperty, - const auto &defaultValue) - -> std::enable_if_t< - (std::is_constructible_v || ...), - std::shared_ptr> { - // Create a concrete CSSValue from the defaultValue - auto cssValue = createCSSValue(defaultValue); - return std::make_shared>( - relativeTo, relativeProperty, std::move(cssValue)); -} - -/** - * Transform operation interpolator factories - */ -template -auto transformOp(const auto &defaultValue) -> std::enable_if_t< - std::is_base_of_v && - std::is_constructible_v, - std::shared_ptr> { - return std::make_shared>( - std::make_shared(defaultValue)); -} - -template -auto transformOp( - RelativeTo relativeTo, - const std::string &relativeProperty, - const auto &defaultValue) - -> std::enable_if_t< - std::is_base_of_v && - std::is_constructible_v && - ResolvableOperation, - std::shared_ptr> { - return std::make_shared>( - std::make_shared(defaultValue), relativeTo, relativeProperty); -} - -/** - * Record property interpolator factory - */ -std::shared_ptr record( - const InterpolatorFactoriesRecord &factories); - -/** - * Array property interpolator factory - */ -std::shared_ptr array( - const InterpolatorFactoriesArray &factories); - -/** - * Transform interpolators - */ -std::shared_ptr transforms( - const std::unordered_map< - std::string, - std::shared_ptr> &interpolators); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.cpp deleted file mode 100644 index 5c58694d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -PropertyInterpolator::PropertyInterpolator( - PropertyPath propertyPath, - const std::shared_ptr &viewStylesRepository) - : propertyPath_(std::move(propertyPath)), - viewStylesRepository_(viewStylesRepository) {} - -bool PropertyInterpolatorFactory::isDiscreteProperty() const { - return false; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.h deleted file mode 100644 index 3d4b8beb..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.h +++ /dev/null @@ -1,72 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -class PropertyInterpolator { - public: - explicit PropertyInterpolator( - PropertyPath propertyPath, - const std::shared_ptr &viewStylesRepository); - - virtual folly::dynamic getStyleValue( - const std::shared_ptr &shadowNode) const = 0; - virtual folly::dynamic getResetStyle( - const std::shared_ptr &shadowNode) const = 0; - virtual folly::dynamic getFirstKeyframeValue() const = 0; - virtual folly::dynamic getLastKeyframeValue() const = 0; - virtual bool equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const = 0; - - virtual void updateKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes) = 0; - virtual void updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) = 0; - - virtual folly::dynamic interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) - const = 0; - - protected: - const PropertyPath propertyPath_; - const std::shared_ptr viewStylesRepository_; -}; - -class PropertyInterpolatorFactory { - public: - PropertyInterpolatorFactory() = default; - virtual ~PropertyInterpolatorFactory() = default; - - virtual bool isDiscreteProperty() const; - virtual const CSSValue &getDefaultValue() const = 0; - - virtual std::shared_ptr create( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - const = 0; -}; - -using PropertyInterpolatorsRecord = - std::unordered_map>; -using InterpolatorFactoriesRecord = std:: - unordered_map>; - -using PropertyInterpolatorsArray = - std::vector>; -using InterpolatorFactoriesArray = - std::vector>; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.cpp deleted file mode 100644 index 26c8c47e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.cpp +++ /dev/null @@ -1,107 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -ArrayPropertiesInterpolator::ArrayPropertiesInterpolator( - const InterpolatorFactoriesArray &factories, - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - : GroupPropertiesInterpolator(propertyPath, viewStylesRepository), - factories_(factories) {} - -bool ArrayPropertiesInterpolator::equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const { - if (!propertyValue.isArray()) { - return false; - } - - const auto valuesCount = propertyValue.size(); - if (valuesCount != interpolators_.size()) { - return false; - } - - for (size_t i = 0; i < valuesCount; ++i) { - if (!interpolators_[i]->equalsReversingAdjustedStartValue( - propertyValue[i])) { - return false; - } - } - - return true; -} - -void ArrayPropertiesInterpolator::updateKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes) { - const jsi::Array keyframesArray = keyframes.asObject(rt).asArray(rt); - const size_t valuesCount = keyframesArray.size(rt); - - resizeInterpolators(valuesCount); - - for (size_t i = 0; i < valuesCount; ++i) { - interpolators_[i]->updateKeyframes( - rt, keyframesArray.getValueAtIndex(rt, i)); - } -} - -void ArrayPropertiesInterpolator::updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) { - const auto emptyArray = folly::dynamic::array(); - const auto null = folly::dynamic(); - - const auto &oldStyleArray = - oldStyleValue.empty() ? emptyArray : oldStyleValue; - const auto &newStyleArray = - newStyleValue.empty() ? emptyArray : newStyleValue; - const auto &lastUpdateArray = - lastUpdateValue.empty() ? emptyArray : lastUpdateValue; - - const size_t oldSize = oldStyleArray.size(); - const size_t newSize = newStyleArray.size(); - const size_t lastSize = lastUpdateArray.size(); - const size_t valuesCount = std::max(oldSize, newSize); - - resizeInterpolators(valuesCount); - - for (size_t i = 0; i < valuesCount; ++i) { - // These index checks ensure that interpolation works between 2 arrays - // with different lengths - interpolators_[i]->updateKeyframesFromStyleChange( - i < oldSize ? oldStyleArray[i] : null, - i < newSize ? newStyleArray[i] : null, - i < lastSize ? lastUpdateArray[i] : null); - } -} - -folly::dynamic ArrayPropertiesInterpolator::mapInterpolators( - const std::function &callback) - const { - auto result = folly::dynamic::array(); - - for (size_t i = 0; i < interpolators_.size(); ++i) { - result.push_back(callback(*interpolators_[i])); - } - - return result; -} - -void ArrayPropertiesInterpolator::resizeInterpolators(size_t valuesCount) { - // Remove excess interpolators if the array size has decreased - if (interpolators_.size() > valuesCount) { - interpolators_.resize(valuesCount); - } - - while (interpolators_.size() < valuesCount) { - interpolators_.emplace_back(createPropertyInterpolator( - interpolators_.size(), - propertyPath_, - factories_, - viewStylesRepository_)); - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h deleted file mode 100644 index 4ecccf45..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once - -#include -#include - -#include - -namespace reanimated::css { - -class ArrayPropertiesInterpolator : public GroupPropertiesInterpolator { - public: - ArrayPropertiesInterpolator( - const InterpolatorFactoriesArray &factories, - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository); - virtual ~ArrayPropertiesInterpolator() = default; - - bool equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const override; - - void updateKeyframes(jsi::Runtime &rt, const jsi::Value &keyframes) override; - void updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) override; - - protected: - folly::dynamic mapInterpolators( - const std::function &callback) - const override; - - private: - const InterpolatorFactoriesArray &factories_; - PropertyInterpolatorsArray interpolators_; - - void resizeInterpolators(size_t valuesCount); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.cpp deleted file mode 100644 index aac63065..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include - -namespace reanimated::css { - -GroupPropertiesInterpolator::GroupPropertiesInterpolator( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - : PropertyInterpolator(propertyPath, viewStylesRepository) {} - -folly::dynamic GroupPropertiesInterpolator::getStyleValue( - const std::shared_ptr &shadowNode) const { - return mapInterpolators( - [&](PropertyInterpolator &interpolator) -> folly::dynamic { - return interpolator.getStyleValue(shadowNode); - }); -} - -folly::dynamic GroupPropertiesInterpolator::getResetStyle( - const std::shared_ptr &shadowNode) const { - return mapInterpolators( - [&](PropertyInterpolator &interpolator) -> folly::dynamic { - return interpolator.getResetStyle(shadowNode); - }); -} - -folly::dynamic GroupPropertiesInterpolator::getFirstKeyframeValue() const { - return mapInterpolators( - [&](PropertyInterpolator &interpolator) -> folly::dynamic { - return interpolator.getFirstKeyframeValue(); - }); -} - -folly::dynamic GroupPropertiesInterpolator::getLastKeyframeValue() const { - return mapInterpolators( - [&](PropertyInterpolator &interpolator) -> folly::dynamic { - return interpolator.getLastKeyframeValue(); - }); -} - -folly::dynamic GroupPropertiesInterpolator::interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) const { - return mapInterpolators( - [&](PropertyInterpolator &interpolator) -> folly::dynamic { - return interpolator.interpolate(shadowNode, progressProvider); - }); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.h deleted file mode 100644 index b80657a7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/GroupPropertiesInterpolator.h +++ /dev/null @@ -1,35 +0,0 @@ -#pragma once - -#include -#include -#include - -#include - -namespace reanimated::css { - -class GroupPropertiesInterpolator : public PropertyInterpolator { - public: - GroupPropertiesInterpolator( - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository); - - folly::dynamic getStyleValue( - const std::shared_ptr &shadowNode) const override; - folly::dynamic getResetStyle( - const std::shared_ptr &shadowNode) const override; - folly::dynamic getFirstKeyframeValue() const override; - folly::dynamic getLastKeyframeValue() const override; - - folly::dynamic interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) - const override; - - protected: - virtual folly::dynamic mapInterpolators( - const std::function &callback) - const = 0; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp deleted file mode 100644 index d7ef659e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp +++ /dev/null @@ -1,102 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -RecordPropertiesInterpolator::RecordPropertiesInterpolator( - const InterpolatorFactoriesRecord &factories, - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository) - : GroupPropertiesInterpolator(propertyPath, viewStylesRepository), - factories_(factories) {} - -bool RecordPropertiesInterpolator::equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const { - return std::ranges::all_of(propertyValue.items(), [this](const auto &item) { - const auto &[propName, propValue] = item; - const auto it = interpolators_.find(propName.getString()); - return it != interpolators_.end() && - it->second->equalsReversingAdjustedStartValue(propValue); - }); -} - -void RecordPropertiesInterpolator::updateKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes) { - // TODO - maybe add a possibility to remove interpolators that are no longer - // used (for now, for simplicity, we only add new ones) - const jsi::Object keyframesObject = keyframes.asObject(rt); - - jsi::Array propertyNames = keyframesObject.getPropertyNames(rt); - size_t propertiesCount = propertyNames.size(rt); - - for (size_t i = 0; i < propertiesCount; ++i) { - const std::string propertyName = - propertyNames.getValueAtIndex(rt, i).asString(rt).utf8(rt); - const jsi::Value &propertyKeyframes = keyframesObject.getProperty( - rt, jsi::PropNameID::forUtf8(rt, propertyName)); - - maybeCreateInterpolator(propertyName); - interpolators_[propertyName]->updateKeyframes(rt, propertyKeyframes); - } -} - -void RecordPropertiesInterpolator::updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) { - // TODO - maybe add a possibility to remove interpolators that are no longer - // used (for now, for simplicity, we only add new ones) - const folly::dynamic emptyObject = folly::dynamic::object(); - const auto null = folly::dynamic(); - - const auto &oldStyleObject = - oldStyleValue.empty() ? emptyObject : oldStyleValue; - const auto &newStyleObject = - newStyleValue.empty() ? emptyObject : newStyleValue; - const auto &lastUpdateObject = - lastUpdateValue.empty() ? emptyObject : lastUpdateValue; - - std::unordered_set propertyNamesSet; - for (const auto &key : oldStyleObject.keys()) { - propertyNamesSet.insert(key.asString()); - } - for (const auto &key : newStyleObject.keys()) { - propertyNamesSet.insert(key.asString()); - } - - for (const auto &propertyName : propertyNamesSet) { - maybeCreateInterpolator(propertyName); - interpolators_[propertyName]->updateKeyframesFromStyleChange( - oldStyleObject.getDefault(propertyName, null), - newStyleObject.getDefault(propertyName, null), - lastUpdateObject.getDefault(propertyName, null)); - } -} - -folly::dynamic RecordPropertiesInterpolator::mapInterpolators( - const std::function &callback) - const { - folly::dynamic result = folly::dynamic::object; - - for (const auto &[propertyName, interpolator] : interpolators_) { - const auto value = callback(*interpolator); - if (!value.isNull()) { - result[propertyName] = value; - } - } - - return result; -} - -void RecordPropertiesInterpolator::maybeCreateInterpolator( - const std::string &propertyName) { - if (interpolators_.find(propertyName) == interpolators_.end()) { - const auto newInterpolator = createPropertyInterpolator( - propertyName, propertyPath_, factories_, viewStylesRepository_); - interpolators_.emplace(propertyName, newInterpolator); - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.h deleted file mode 100644 index 94fdead9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include -#include - -#include -#include - -namespace reanimated::css { - -class RecordPropertiesInterpolator : public GroupPropertiesInterpolator { - public: - RecordPropertiesInterpolator( - const InterpolatorFactoriesRecord &factories, - const PropertyPath &propertyPath, - const std::shared_ptr &viewStylesRepository); - virtual ~RecordPropertiesInterpolator() = default; - - bool equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const override; - - void updateKeyframes(jsi::Runtime &rt, const jsi::Value &keyframes) override; - void updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) override; - - protected: - folly::dynamic mapInterpolators( - const std::function &callback) - const override; - - void maybeCreateInterpolator(const std::string &propertyName); - - private: - const InterpolatorFactoriesRecord &factories_; - PropertyInterpolatorsRecord interpolators_; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h deleted file mode 100644 index 6b72e029..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include -#include - -#include -#include - -namespace reanimated::css { - -// We can just re-use the logic from the RecordPropertiesInterpolator class as -// interpolating multiple properties from the view style during animation is the -// same as interpolating record properties -class AnimationStyleInterpolator : public RecordPropertiesInterpolator { - public: - explicit AnimationStyleInterpolator( - jsi::Runtime &rt, - const jsi::Value &keyframes, - const std::string &componentName, - const std::shared_ptr &viewStylesRepository) - : RecordPropertiesInterpolator( - getComponentInterpolators(componentName), - {}, - viewStylesRepository) { - updateKeyframes(rt, keyframes); - } -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp deleted file mode 100644 index 411af96e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp +++ /dev/null @@ -1,115 +0,0 @@ -#include - -namespace reanimated::css { - -TransitionStyleInterpolator::TransitionStyleInterpolator( - const std::string &componentName, - const std::shared_ptr &viewStylesRepository) - : componentName_(componentName), - viewStylesRepository_(viewStylesRepository) {} - -std::unordered_set -TransitionStyleInterpolator::getReversedPropertyNames( - const folly::dynamic &newPropertyValues) const { - std::unordered_set reversedProperties; - - if (!newPropertyValues.isObject()) { - return reversedProperties; - } - - for (const auto &[propertyName, propertyValue] : newPropertyValues.items()) { - const auto propertyNameStr = propertyName.getString(); - const auto it = interpolators_.find(propertyNameStr); - if (it != interpolators_.end() && - // First keyframe value of the previous transition is the reversing - // adjusted start value - it->second->equalsReversingAdjustedStartValue(propertyValue)) { - reversedProperties.insert(propertyNameStr); - } - } - - return reversedProperties; -} - -folly::dynamic TransitionStyleInterpolator::interpolate( - const std::shared_ptr &shadowNode, - const TransitionProgressProvider &transitionProgressProvider) const { - return mapInterpolators( - transitionProgressProvider, - [&](const std::shared_ptr &interpolator, - const std::shared_ptr &progressProvider) { - return interpolator->interpolate(shadowNode, progressProvider); - }); -} - -void TransitionStyleInterpolator::discardFinishedInterpolators( - const TransitionProgressProvider &transitionProgressProvider) { - for (const auto &propertyName : - transitionProgressProvider.getRemovedProperties()) { - interpolators_.erase(propertyName); - } -} - -void TransitionStyleInterpolator::discardIrrelevantInterpolators( - const std::unordered_set &transitionPropertyNames) { - for (auto it = interpolators_.begin(); it != interpolators_.end();) { - // Remove property interpolators for properties not specified in the - // transition property names - if (transitionPropertyNames.find(it->first) == - transitionPropertyNames.end()) { - it = interpolators_.erase(it); - } else { - ++it; - } - } -} - -void TransitionStyleInterpolator::updateInterpolatedProperties( - const ChangedProps &changedProps, - const folly::dynamic &lastUpdateValue) { - const auto &oldPropsObj = changedProps.oldProps; - const auto &newPropsObj = changedProps.newProps; - - const auto empty = folly::dynamic(); - - for (const auto &propertyName : changedProps.changedPropertyNames) { - auto it = interpolators_.find(propertyName); - const auto shouldCreateInterpolator = it == interpolators_.end(); - - if (shouldCreateInterpolator) { - const auto newInterpolator = createPropertyInterpolator( - propertyName, - {}, - getComponentInterpolators(componentName_), - viewStylesRepository_); - it = interpolators_.emplace(propertyName, newInterpolator).first; - } - - const auto &oldValue = oldPropsObj.getDefault(propertyName, empty); - const auto &newValue = newPropsObj.getDefault(propertyName, empty); - // Pass lastValue only if the interpolator is updated (no new interpolator - // was created), otherwise pass an empty value - const auto &lastValue = - (shouldCreateInterpolator || lastUpdateValue.empty()) - ? empty - : lastUpdateValue.getDefault(propertyName, empty); - - it->second->updateKeyframesFromStyleChange(oldValue, newValue, lastValue); - } -} - -folly::dynamic TransitionStyleInterpolator::mapInterpolators( - const TransitionProgressProvider &transitionProgressProvider, - const MapInterpolatorsCallback &callback) const { - folly::dynamic result = folly::dynamic::object; - - for (const auto &[propertyName, progressProvider] : - transitionProgressProvider.getPropertyProgressProviders()) { - result[propertyName] = - callback(interpolators_.at(propertyName), progressProvider); - } - - return result; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.h deleted file mode 100644 index 2d4769e6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -class TransitionStyleInterpolator { - public: - TransitionStyleInterpolator( - const std::string &componentName, - const std::shared_ptr &viewStylesRepository); - - std::unordered_set getReversedPropertyNames( - const folly::dynamic &newPropertyValues) const; - - folly::dynamic interpolate( - const std::shared_ptr &shadowNode, - const TransitionProgressProvider &transitionProgressProvider) const; - - void discardFinishedInterpolators( - const TransitionProgressProvider &transitionProgressProvider); - void discardIrrelevantInterpolators( - const std::unordered_set &transitionPropertyNames); - void updateInterpolatedProperties( - const ChangedProps &changedProps, - const folly::dynamic &lastUpdateValue); - - private: - using MapInterpolatorsCallback = std::function &, - const std::shared_ptr &)>; - - const std::string componentName_; - const std::shared_ptr viewStylesRepository_; - - PropertyInterpolatorsRecord interpolators_; - - folly::dynamic mapInterpolators( - const TransitionProgressProvider &transitionProgressProvider, - const MapInterpolatorsCallback &callback) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformInterpolator.h deleted file mode 100644 index 2426df9e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformInterpolator.h +++ /dev/null @@ -1,85 +0,0 @@ -#pragma once - -#include -#include - -#include -#include - -namespace reanimated::css { - -class TransformInterpolator { - public: - using Interpolators = - std::unordered_map>; - - struct UpdateContext { - const std::shared_ptr &node; - const std::shared_ptr &viewStylesRepository; - const std::shared_ptr &interpolators; - }; - - virtual ~TransformInterpolator() = default; - - virtual std::shared_ptr getDefaultOperation() const = 0; - virtual std::shared_ptr interpolate( - double progress, - const std::shared_ptr &from, - const std::shared_ptr &to, - const UpdateContext &context) const = 0; - virtual std::shared_ptr resolveOperation( - const std::shared_ptr &operation, - const UpdateContext &context) const = 0; -}; - -template -class TransformInterpolatorBase : public TransformInterpolator { - public: - explicit TransformInterpolatorBase( - std::shared_ptr defaultOperation) - : defaultOperation_(defaultOperation) {} - - std::shared_ptr getDefaultOperation() const override { - return defaultOperation_; - } - - std::shared_ptr interpolate( - double progress, - const std::shared_ptr &from, - const std::shared_ptr &to, - const UpdateContext &context) const override { - return std::make_shared(interpolate( - progress, - *std::static_pointer_cast(from), - *std::static_pointer_cast(to), - context)); - } - - std::shared_ptr resolveOperation( - const std::shared_ptr &operation, - const UpdateContext &context) const override { - return std::make_shared(resolveOperation( - *std::static_pointer_cast(operation), context)); - } - - protected: - virtual TOperation interpolate( - double progress, - const TOperation &from, - const TOperation &to, - const UpdateContext &context) const = 0; - - virtual TOperation resolveOperation( - const TOperation &operation, - const UpdateContext &context) const { - return operation; - } - - private: - std::shared_ptr defaultOperation_; -}; - -using TransformInterpolators = TransformInterpolator::Interpolators; -using TransformInterpolatorUpdateContext = TransformInterpolator::UpdateContext; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.cpp deleted file mode 100644 index 555d022d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.cpp +++ /dev/null @@ -1,225 +0,0 @@ -#include - -#include -#include -#include -#include -#include -#include - -namespace reanimated::css { - -#ifndef NDEBUG - -std::ostream &operator<<( - std::ostream &os, - const TransformOperation &operation) { - os << operation.getOperationName() << "(" - << operation.stringifyOperationValue() << ")"; - return os; -} - -#endif // NDEBUG - -bool TransformOperation::canConvertTo(const TransformOp targetType) const { - return false; -} - -void TransformOperation::assertCanConvertTo( - const TransformOp targetType) const { - if (!canConvertTo(targetType)) { - throw std::invalid_argument( - "[Reanimated] Cannot convert transform operation to type: " + - getOperationNameFromType(targetType)); - } -} - -TransformOperations TransformOperation::convertTo( - const TransformOp targetType) const { - throw std::invalid_argument( - "[Reanimated] Cannot convert transform operation to type: " + - getOperationNameFromType(targetType)); -} - -std::string TransformOperation::getOperationName() const { - return getOperationNameFromType(type()); -} - -bool TransformOperation::isRelative() const { - return false; -} - -std::shared_ptr TransformOperation::fromJSIValue( - jsi::Runtime &rt, - const jsi::Value &value) { - if (!value.isObject()) { - throw std::invalid_argument( - "[Reanimated] TransformOperation must be an object."); - } - - jsi::Object obj = value.asObject(rt); - auto propertyNames = obj.getPropertyNames(rt); - - if (propertyNames.size(rt) != 1) { - throw std::invalid_argument( - "[Reanimated] TransformOperation must have exactly one property."); - } - - const auto propertyName = - propertyNames.getValueAtIndex(rt, 0).asString(rt).utf8(rt); - const auto propertyValue = - obj.getProperty(rt, jsi::PropNameID::forUtf8(rt, propertyName)); - TransformOp operationType = getTransformOperationType(propertyName); - - switch (operationType) { - case TransformOp::Perspective: - return std::make_shared(propertyValue.asNumber()); - case TransformOp::Rotate: - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - case TransformOp::RotateX: - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - case TransformOp::RotateY: - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - case TransformOp::RotateZ: - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - case TransformOp::Scale: - return std::make_shared(propertyValue.asNumber()); - case TransformOp::ScaleX: - return std::make_shared(propertyValue.asNumber()); - case TransformOp::ScaleY: - return std::make_shared(propertyValue.asNumber()); - case TransformOp::TranslateX: { - if (propertyValue.isNumber()) { - return std::make_shared(propertyValue.asNumber()); - } - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - } - case TransformOp::TranslateY: { - if (propertyValue.isNumber()) { - return std::make_shared(propertyValue.asNumber()); - } - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - } - case TransformOp::SkewX: - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - case TransformOp::SkewY: - return std::make_shared( - propertyValue.asString(rt).utf8(rt)); - case TransformOp::Matrix: - return std::make_shared( - TransformMatrix3D(rt, propertyValue)); - default: - throw std::invalid_argument( - "[Reanimated] Unknown transform operation: " + propertyName); - } -} - -std::shared_ptr TransformOperation::fromDynamic( - const folly::dynamic &value) { - if (!value.isObject()) { - throw std::invalid_argument( - "[Reanimated] TransformOperation must be an object."); - } - - auto &obj = value; - if (obj.size() != 1) { - throw std::invalid_argument( - "[Reanimated] TransformOperation must have exactly one property."); - } - - auto propertyName = obj.items().begin()->first.getString(); - auto propertyValue = obj.items().begin()->second; - TransformOp operationType = getTransformOperationType(propertyName); - - switch (operationType) { - case TransformOp::Perspective: - return std::make_shared(propertyValue.getDouble()); - case TransformOp::Rotate: - return std::make_shared(propertyValue.getString()); - case TransformOp::RotateX: - return std::make_shared(propertyValue.getString()); - case TransformOp::RotateY: - return std::make_shared(propertyValue.getString()); - case TransformOp::RotateZ: - return std::make_shared(propertyValue.getString()); - case TransformOp::Scale: - return std::make_shared(propertyValue.getDouble()); - case TransformOp::ScaleX: - return std::make_shared(propertyValue.getDouble()); - case TransformOp::ScaleY: - return std::make_shared(propertyValue.getDouble()); - case TransformOp::TranslateX: { - if (propertyValue.isNumber()) { - return std::make_shared(propertyValue.getDouble()); - } - return std::make_shared(propertyValue.getString()); - } - case TransformOp::TranslateY: { - if (propertyValue.isNumber()) { - return std::make_shared(propertyValue.getDouble()); - } - return std::make_shared(propertyValue.getString()); - } - case TransformOp::SkewX: - return std::make_shared(propertyValue.getString()); - case TransformOp::SkewY: - return std::make_shared(propertyValue.getString()); - case TransformOp::Matrix: - return std::make_shared( - TransformMatrix3D(propertyValue)); - default: - throw std::invalid_argument( - "[Reanimated] Unknown transform operation: " + propertyName); - } -} - -folly::dynamic TransformOperation::toDynamic() const { - return folly::dynamic::object(getOperationName(), valueToDynamic()); -} - -// Specialization for the matrix operation -#ifndef NDEBUG - -template -std::string -TransformOperationBase::stringifyOperationValue() const { - std::ostringstream ss; - ss << value; - return ss.str(); -} - -template <> -std::string TransformOperationBase< - TransformOp::Matrix, - std::variant>:: - stringifyOperationValue() const { - std::ostringstream ss; - - if (std::holds_alternative(value)) { - ss << std::get(value); - } else { - const auto &operations = std::get(value); - std::ostringstream ss; - for (const auto &operation : operations) { - ss << operation->getOperationName() << "(" - << operation->stringifyOperationValue() << "), "; - } - } - - return ss.str(); -} - -#endif // NDEBUG - -template struct TransformOperationBase< - TransformOp::Matrix, - std::variant>; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.h deleted file mode 100644 index f8a20232..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.h +++ /dev/null @@ -1,87 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include - -#include - -#include -#include -#include -#include -#include - -#ifndef NDEBUG -#include -#include -#endif // NDEBUG - -namespace reanimated::css { - -using namespace facebook; -using namespace react; - -// Base struct for TransformOperation -struct TransformOperation { - virtual bool operator==(const TransformOperation &other) const = 0; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const TransformOperation &operation); - virtual std::string stringifyOperationValue() const = 0; -#endif // NDEBUG - - std::string getOperationName() const; - virtual TransformOp type() const = 0; - virtual bool isRelative() const; - - static std::shared_ptr fromJSIValue( - jsi::Runtime &rt, - const jsi::Value &value); - static std::shared_ptr fromDynamic( - const folly::dynamic &value); - folly::dynamic toDynamic() const; - virtual folly::dynamic valueToDynamic() const = 0; - - virtual bool canConvertTo(TransformOp type) const; - virtual std::vector> convertTo( - TransformOp type) const; - - virtual TransformMatrix3D toMatrix() const = 0; - void assertCanConvertTo(TransformOp type) const; -}; - -using TransformOperations = std::vector>; - -// Template overload to inherit from in final operation structs -template -struct TransformOperationBase : public TransformOperation { - const TValue value; - - explicit TransformOperationBase(const TValue &value) : value(value) {} - virtual ~TransformOperationBase() = default; - - TransformOp type() const override { - return TOperation; - } - - bool operator==(const TransformOperation &other) const override { - if (type() != other.type()) { - return false; - } - const auto &otherOperation = - static_cast &>(other); - return value == otherOperation.value; - } - -#ifndef NDEBUG - std::string stringifyOperationValue() const override; -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp deleted file mode 100644 index 90a0dc7b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp +++ /dev/null @@ -1,64 +0,0 @@ -#include - -namespace reanimated::css { - -PerspectiveOperation -TransformOperationInterpolator::interpolate( - double progress, - const PerspectiveOperation &from, - const PerspectiveOperation &to, - const TransformInterpolatorUpdateContext &context) const { - if (to.value.value == 0) - return PerspectiveOperation(0); - if (from.value.value == 0) - return PerspectiveOperation(to.value); - - return PerspectiveOperation(from.value.interpolate(progress, to.value)); -} - -MatrixOperation TransformOperationInterpolator::interpolate( - double progress, - const MatrixOperation &from, - const MatrixOperation &to, - const TransformInterpolatorUpdateContext &context) const { - const auto fromMatrix = matrixFromOperation(from, context); - const auto toMatrix = matrixFromOperation(to, context); - const auto decomposedFrom = fromMatrix.decompose(); - const auto decomposedTo = toMatrix.decompose(); - - if (!decomposedFrom.has_value() || !decomposedTo.has_value()) { - return MatrixOperation(progress < 0.5 ? fromMatrix : toMatrix); - } - - return MatrixOperation(TransformMatrix3D::recompose( - decomposedFrom->interpolate(progress, decomposedTo.value()))); -} - -TransformMatrix3D -TransformOperationInterpolator::matrixFromOperation( - const MatrixOperation &matrixOperation, - const TransformInterpolatorUpdateContext &context) const { - if (std::holds_alternative(matrixOperation.value)) { - const auto &operations = - std::get(matrixOperation.value); - - TransformMatrix3D matrix = TransformMatrix3D::Identity(); - - for (int i = static_cast(operations.size()) - 1; i >= 0; i--) { - auto operation = operations[i]; - - if (operation->isRelative()) { - const auto &interpolator = context.interpolators->at(operation->type()); - operation = interpolator->resolveOperation(operation, context); - } - - matrix *= operation->toMatrix(); - } - - return matrix; - } - - return std::get(matrixOperation.value); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.h deleted file mode 100644 index 781ad944..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.h +++ /dev/null @@ -1,124 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include - -namespace reanimated::css { - -template -concept ResolvableOperation = requires(TOperation operation) { - { - operation.value - } -> std::convertible_to< - typename std::remove_reference_t>; - requires Resolvable>; -}; // NOLINT(readability/braces) - -// Base implementation for simple operations -template -class TransformOperationInterpolator - : public TransformInterpolatorBase { - public: - TransformOperationInterpolator( - std::shared_ptr defaultOperation) - : TransformInterpolatorBase(defaultOperation) {} - - OperationType interpolate( - double progress, - const OperationType &from, - const OperationType &to, - const TransformInterpolatorUpdateContext &context) const override { - return OperationType{from.value.interpolate(progress, to.value)}; - } -}; - -// Specialization for PerspectiveOperation -template <> -class TransformOperationInterpolator - : public TransformInterpolatorBase { - public: - using TransformInterpolatorBase< - PerspectiveOperation>::TransformInterpolatorBase; - - PerspectiveOperation interpolate( - double progress, - const PerspectiveOperation &from, - const PerspectiveOperation &to, - const TransformInterpolatorUpdateContext &context) const override; -}; - -// Specialization for MatrixOperation -template <> -class TransformOperationInterpolator - : public TransformInterpolatorBase { - public: - using TransformInterpolatorBase::TransformInterpolatorBase; - - MatrixOperation interpolate( - double progress, - const MatrixOperation &from, - const MatrixOperation &to, - const TransformInterpolatorUpdateContext &context) const override; - - private: - TransformMatrix3D matrixFromOperation( - const MatrixOperation &matrixOperation, - const TransformInterpolatorUpdateContext &context) const; -}; - -// Specialization for resolvable operations -template -class TransformOperationInterpolator - : public TransformInterpolatorBase { - public: - TransformOperationInterpolator( - const std::shared_ptr &defaultOperation, - RelativeTo relativeTo, - const std::string &relativeProperty) - : TransformInterpolatorBase(defaultOperation), - relativeTo_(relativeTo), - relativeProperty_(relativeProperty) {} - - TOperation interpolate( - double progress, - const TOperation &from, - const TOperation &to, - const TransformInterpolatorUpdateContext &context) const override { - return TOperation{from.value.interpolate( - progress, to.value, getResolvableValueContext(context))}; - } - - TOperation resolveOperation( - const TOperation &operation, - const TransformInterpolatorUpdateContext &context) const override { - const auto &resolved = - operation.value.resolve(getResolvableValueContext(context)); - - if (!resolved.has_value()) { - return TOperation{operation.value}; - } - - return TOperation{resolved.value()}; - } - - private: - const RelativeTo relativeTo_; - const std::string relativeProperty_; - - CSSResolvableValueInterpolationContext getResolvableValueContext( - const TransformInterpolatorUpdateContext &context) const { - return { - .node = context.node, - .viewStylesRepository = context.viewStylesRepository, - .relativeProperty = relativeProperty_, - .relativeTo = relativeTo_, - }; - } -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.cpp deleted file mode 100644 index 50c2ee8f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.cpp +++ /dev/null @@ -1,405 +0,0 @@ -#include - -namespace reanimated::css { - -const TransformOperations TransformsStyleInterpolator::defaultStyleValue_ = { - std::make_shared(TransformMatrix3D::Identity())}; - -TransformsStyleInterpolator::TransformsStyleInterpolator( - const PropertyPath &propertyPath, - const std::shared_ptr &interpolators, - const std::shared_ptr &viewStylesRepository) - : PropertyInterpolator(propertyPath, viewStylesRepository), - interpolators_(interpolators) {} - -folly::dynamic TransformsStyleInterpolator::getStyleValue( - const std::shared_ptr &shadowNode) const { - return viewStylesRepository_->getStyleProp( - shadowNode->getTag(), propertyPath_); -} - -folly::dynamic TransformsStyleInterpolator::getResetStyle( - const std::shared_ptr &shadowNode) const { - auto styleValue = getStyleValue(shadowNode); - - if (!styleValue.isArray()) { - return convertResultToDynamic(defaultStyleValue_); - } - - return styleValue; -} - -folly::dynamic TransformsStyleInterpolator::getFirstKeyframeValue() const { - return convertResultToDynamic( - keyframes_.front()->fromOperations.value_or(defaultStyleValue_)); -} - -folly::dynamic TransformsStyleInterpolator::getLastKeyframeValue() const { - return convertResultToDynamic( - keyframes_.back()->toOperations.value_or(defaultStyleValue_)); -} - -bool TransformsStyleInterpolator::equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const { - const auto propertyOperations = parseTransformOperations(propertyValue); - - if (!reversingAdjustedStartValue_.has_value()) { - return !propertyOperations.has_value(); - } else if (!propertyOperations.has_value()) { - return false; - } - - const auto &reversingAdjustedOperationsValue = - reversingAdjustedStartValue_.value(); - const auto &propertyOperationsValue = propertyOperations.value(); - - if (reversingAdjustedOperationsValue.size() != - propertyOperationsValue.size()) { - return false; - } - - for (size_t i = 0; i < reversingAdjustedOperationsValue.size(); ++i) { - if (*reversingAdjustedOperationsValue[i] != *propertyOperationsValue[i]) { - return false; - } - } - - return true; -} - -folly::dynamic TransformsStyleInterpolator::interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) const { - const auto currentIndex = getIndexOfCurrentKeyframe(progressProvider); - - // Get or create the current keyframe - auto keyframe = keyframes_[currentIndex]; - if (!keyframe->fromOperations.has_value() || - !keyframe->toOperations.has_value()) { - // If the value is nullopt, we would have to read it from the view style - // and build the keyframe again - const auto fallbackValue = getFallbackValue(shadowNode); - keyframe = createTransformKeyframe( - keyframe->fromOffset, - keyframe->toOffset, - keyframe->fromOperations.value_or(fallbackValue), - keyframe->toOperations.value_or(fallbackValue)); - } - - // Interpolate the current keyframe - TransformOperations result = interpolateOperations( - shadowNode, - progressProvider->getKeyframeProgress( - keyframe->fromOffset, keyframe->toOffset), - keyframe->fromOperations.value(), - keyframe->toOperations.value()); - - return convertResultToDynamic(result); -} - -void TransformsStyleInterpolator::updateKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes) { - // Step 1: Parse keyframes - const auto parsedKeyframes = parseJSIKeyframes(rt, keyframes); - - // Step 2: Convert keyframes to TransformOperations - std::vector>> operations; - operations.reserve(parsedKeyframes.size()); - for (const auto &[offset, value] : parsedKeyframes) { - operations.emplace_back(offset, parseTransformOperations(rt, value)); - } - - // Step 3: Prepare keyframe interpolation pairs (convert keyframe values in - // both keyframes to the same type) - // There will be one less keyframe than the number of keyframes in the jsi - // array as we create interpolation pairs - const auto keyframesCount = operations.size() - 1; - keyframes_.clear(); - keyframes_.reserve(keyframesCount); - - for (size_t i = 0; i < keyframesCount; ++i) { - keyframes_.push_back(createTransformKeyframe( - operations[i].first, - operations[i + 1].first, - operations[i].second, - operations[i + 1].second)); - } -} - -void TransformsStyleInterpolator::updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) { - if (oldStyleValue.isNull()) { - reversingAdjustedStartValue_ = std::nullopt; - } else { - reversingAdjustedStartValue_ = parseTransformOperations(oldStyleValue); - } - - const auto &prevStyleValue = - lastUpdateValue.isNull() ? oldStyleValue : lastUpdateValue; - - keyframes_.clear(); - keyframes_.reserve(1); - keyframes_.emplace_back(createTransformKeyframe( - 0, - 1, - parseTransformOperations(prevStyleValue).value_or(TransformOperations{}), - parseTransformOperations(newStyleValue).value_or(TransformOperations{}))); -} - -std::optional -TransformsStyleInterpolator::parseTransformOperations( - jsi::Runtime &rt, - const jsi::Value &values) { - if (values.isUndefined()) { - return std::nullopt; - } - - const auto transformsArray = values.asObject(rt).asArray(rt); - const auto transformsCount = transformsArray.size(rt); - - TransformOperations transformOperations; - transformOperations.reserve(transformsCount); - - for (size_t i = 0; i < transformsCount; ++i) { - const auto transform = transformsArray.getValueAtIndex(rt, i); - transformOperations.emplace_back( - TransformOperation::fromJSIValue(rt, transform)); - } - return transformOperations; -} - -std::optional -TransformsStyleInterpolator::parseTransformOperations( - const folly::dynamic &values) { - if (values.empty()) { - return std::nullopt; - } - - const auto &transformsArray = values; - const auto transformsCount = transformsArray.size(); - - TransformOperations transformOperations; - transformOperations.reserve(transformsCount); - - for (size_t i = 0; i < transformsCount; ++i) { - const auto &transform = transformsArray[i]; - transformOperations.emplace_back( - TransformOperation::fromDynamic(transform)); - } - return transformOperations; -} - -std::shared_ptr -TransformsStyleInterpolator::createTransformKeyframe( - const double fromOffset, - const double toOffset, - const std::optional &fromOperationsOptional, - const std::optional &toOperationsOptional) const { - // If nullopt is passed, return values as is (we will have to read the - // transform value from the view style later on and create the new keyframe - // then) - if (!fromOperationsOptional.has_value() || - !toOperationsOptional.has_value()) { - return std::make_shared(TransformKeyframe{ - fromOffset, toOffset, fromOperationsOptional, toOperationsOptional}); - } - - const auto [fromOperations, toOperations] = createTransformInterpolationPair( - fromOperationsOptional.value(), toOperationsOptional.value()); - return std::make_shared( - TransformKeyframe{fromOffset, toOffset, fromOperations, toOperations}); -} - -void TransformsStyleInterpolator::addConvertedOperations( - const std::shared_ptr &sourceOperation, - const std::shared_ptr &targetOperation, - TransformOperations &sourceResult, - TransformOperations &targetResult) const { - const auto convertedOps = sourceOperation->convertTo(targetOperation->type()); - - targetResult.emplace_back(targetOperation); - for (size_t k = 0; k < convertedOps.size(); ++k) { - sourceResult.emplace_back(convertedOps[k]); - // Converted operations will contain one operation with the same type and - // can contain more operations derived from the source operation (we need - // to pair them with operations of the same type with default values) - if (k > 0) { - targetResult.emplace_back( - getDefaultOperationOfType(convertedOps[k]->type())); - } - } -} - -std::pair -TransformsStyleInterpolator::createTransformInterpolationPair( - const TransformOperations &fromOperations, - const TransformOperations &toOperations) const { - TransformOperations fromOperationsResult, toOperationsResult; - size_t i = 0, j = 0; - bool shouldInterpolateMatrices = false; - - // Build index maps and check for matrix operation - std::unordered_map lastIndexInFrom, lastIndexInTo; - for (size_t idx = 0; idx < fromOperations.size(); ++idx) { - if (fromOperations[idx]->type() == TransformOp::Matrix) { - shouldInterpolateMatrices = true; - break; - } - lastIndexInFrom[fromOperations[idx]->type()] = idx; - } - for (size_t idx = 0; idx < toOperations.size() && !shouldInterpolateMatrices; - ++idx) { - if (toOperations[idx]->type() == TransformOp::Matrix) { - shouldInterpolateMatrices = true; - break; - } - lastIndexInTo[toOperations[idx]->type()] = idx; - } - - while (!shouldInterpolateMatrices && i < fromOperations.size() && - j < toOperations.size()) { - const auto &fromOperation = fromOperations[i]; - const auto &toOperation = toOperations[j]; - - // Case 1: Types match directly - if (fromOperation->type() == toOperation->type()) { - fromOperationsResult.emplace_back(fromOperation); - toOperationsResult.emplace_back(toOperation); - i++; - j++; - } else if (fromOperation->canConvertTo(toOperation->type())) { - // Case 2: Operations can be converted to each other's type - addConvertedOperations( - fromOperation, toOperation, fromOperationsResult, toOperationsResult); - i++; - j++; - } else if (toOperation->canConvertTo(fromOperation->type())) { - addConvertedOperations( - toOperation, fromOperation, toOperationsResult, fromOperationsResult); - i++; - j++; - } else { - // Case 3: Use default values if no conversion possible - bool toExistsLaterInFrom = lastIndexInFrom.count(toOperation->type()) && - lastIndexInFrom[toOperation->type()] > i; - bool fromExistsLaterInTo = lastIndexInTo.count(fromOperation->type()) && - lastIndexInTo[fromOperation->type()] > j; - - if (toExistsLaterInFrom == fromExistsLaterInTo) { - // If neither exists later, or both exist later (were reordered), we - // cannot interpolate the operations directly and we need to convert - // these operations to matrices - shouldInterpolateMatrices = true; - break; - } else if (!fromExistsLaterInTo) { - // If fromOperation does not exist later in toOperations, we can - // interpolate it to the default value - fromOperationsResult.emplace_back(fromOperation); - toOperationsResult.emplace_back( - getDefaultOperationOfType(fromOperation->type())); - i++; - } else { - // If toOperation does not exist later in fromOperations, we can - // interpolate it from the default value - fromOperationsResult.emplace_back( - getDefaultOperationOfType(toOperation->type())); - toOperationsResult.emplace_back(toOperation); - j++; - } - } - } - - // Convert all operations to matrices if matrix interpolation is required - if (shouldInterpolateMatrices) { - return std::make_pair( - TransformOperations{ - std::make_shared(MatrixOperation(fromOperations))}, - TransformOperations{ - std::make_shared(MatrixOperation(toOperations))}); - } - - // Add remaining operations with default values - for (; i < fromOperations.size(); ++i) { - fromOperationsResult.emplace_back(fromOperations[i]); - toOperationsResult.emplace_back( - getDefaultOperationOfType(fromOperations[i]->type())); - } - for (; j < toOperations.size(); ++j) { - fromOperationsResult.emplace_back( - getDefaultOperationOfType(toOperations[j]->type())); - toOperationsResult.emplace_back(toOperations[j]); - } - - return std::make_pair(fromOperationsResult, toOperationsResult); -} - -size_t TransformsStyleInterpolator::getIndexOfCurrentKeyframe( - const std::shared_ptr &progressProvider) const { - const auto progress = progressProvider->getGlobalProgress(); - - const auto it = std::lower_bound( - keyframes_.begin(), - keyframes_.end(), - progress, - [](const std::shared_ptr &keyframe, double progress) { - return keyframe->toOffset < progress; - }); - - // If we're at the end, return the last valid keyframe index - if (it == keyframes_.end()) { - return keyframes_.size() - 1; - } - - return std::distance(keyframes_.begin(), it); -} - -TransformOperations TransformsStyleInterpolator::getFallbackValue( - const std::shared_ptr &shadowNode) const { - const auto &styleValue = getStyleValue(shadowNode); - return parseTransformOperations(styleValue).value_or(TransformOperations{}); -} - -std::shared_ptr -TransformsStyleInterpolator::getDefaultOperationOfType( - const TransformOp type) const { - return interpolators_->at(type)->getDefaultOperation(); -} - -TransformOperations TransformsStyleInterpolator::interpolateOperations( - const std::shared_ptr &shadowNode, - const double keyframeProgress, - const TransformOperations &fromOperations, - const TransformOperations &toOperations) const { - TransformOperations result; - result.reserve(fromOperations.size()); - const auto transformUpdateContext = TransformInterpolatorUpdateContext{ - shadowNode, viewStylesRepository_, interpolators_}; - - for (size_t i = 0; i < fromOperations.size(); ++i) { - const auto &fromOperation = fromOperations[i]; - const auto &toOperation = toOperations[i]; - - // fromOperation and toOperation have the same type - const auto &interpolator = interpolators_->at(fromOperation->type()); - result.emplace_back(interpolator->interpolate( - keyframeProgress, fromOperation, toOperation, transformUpdateContext)); - } - - return result; -} - -folly::dynamic TransformsStyleInterpolator::convertResultToDynamic( - const TransformOperations &operations) { - auto result = folly::dynamic::array(); - - for (const auto &operation : operations) { - result.push_back(operation->toDynamic()); - } - - return result; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.h deleted file mode 100644 index b0f5b10b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.h +++ /dev/null @@ -1,98 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -struct TransformKeyframe { - const double fromOffset; - const double toOffset; - // If the value is nullopt, we would have to read it from the view style - // (in all other cases, both vectors will have the same number of elements of - // corresponding types - elements from the same index will form interpolation - // pairs) - const std::optional fromOperations; - const std::optional toOperations; -}; - -class TransformsStyleInterpolator final : public PropertyInterpolator { - public: - TransformsStyleInterpolator( - const PropertyPath &propertyPath, - const std::shared_ptr &interpolators, - const std::shared_ptr &viewStylesRepository); - - folly::dynamic getStyleValue( - const std::shared_ptr &shadowNode) const override; - folly::dynamic getResetStyle( - const std::shared_ptr &shadowNode) const override; - folly::dynamic getFirstKeyframeValue() const override; - folly::dynamic getLastKeyframeValue() const override; - bool equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const override; - - folly::dynamic interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) - const override; - - void updateKeyframes(jsi::Runtime &rt, const jsi::Value &keyframes) override; - void updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) override; - - private: - const std::shared_ptr interpolators_; - static const TransformOperations defaultStyleValue_; - - std::vector> keyframes_; - std::optional reversingAdjustedStartValue_; - - static std::optional parseTransformOperations( - jsi::Runtime &rt, - const jsi::Value &values); - static std::optional parseTransformOperations( - const folly::dynamic &values); - std::shared_ptr createTransformKeyframe( - double fromOffset, - double toOffset, - const std::optional &fromOperationsOptional, - const std::optional &toOperationsOptional) const; - std::pair - createTransformInterpolationPair( - const TransformOperations &fromOperations, - const TransformOperations &toOperations) const; - void addConvertedOperations( - const std::shared_ptr &sourceOperation, - const std::shared_ptr &targetOperation, - TransformOperations &sourceResult, - TransformOperations &targetResult) const; - std::shared_ptr getDefaultOperationOfType( - TransformOp type) const; - - size_t getIndexOfCurrentKeyframe( - const std::shared_ptr &progressProvider) const; - TransformOperations getFallbackValue( - const std::shared_ptr &shadowNode) const; - TransformOperations interpolateOperations( - const std::shared_ptr &shadowNode, - double keyframeProgress, - const TransformOperations &fromOperations, - const TransformOperations &toOperations) const; - - static folly::dynamic convertResultToDynamic( - const TransformOperations &operations); - TransformInterpolatorUpdateContext createUpdateContext( - const std::shared_ptr &shadowNode) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.cpp deleted file mode 100644 index ef1da0dd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.cpp +++ /dev/null @@ -1,136 +0,0 @@ -#include - -namespace reanimated::css { - -// Matrix -std::variant simplifyOperations( - const TransformOperations &operations) { - // Initialize the stack with the reversed list of operations - std::vector> operationsStack( - operations.begin(), operations.end()); - TransformOperations reversedOperations; - TransformMatrix3D simplifiedMatrix = TransformMatrix3D::Identity(); - bool hasSimplifications = false; - - while (!operationsStack.empty()) { - auto operation = operationsStack.back(); - operationsStack.pop_back(); - - if (operation->type() == TransformOp::Matrix) { - const auto matrixOperation = - std::static_pointer_cast(operation); - if (std::holds_alternative(matrixOperation->value)) { - // If the current operation is a matrix created from other operations, - // add all of these operations to the stack - for (auto &op : std::get(matrixOperation->value)) { - operationsStack.push_back(op); - } - continue; - } - } - - if (!operation->isRelative()) { - // If the operation is not relative, it can be simplified (converted to - // the matrix and multiplied) - const auto operationMatrix = operation->toMatrix(); - simplifiedMatrix = hasSimplifications - ? (simplifiedMatrix * operationMatrix) - : operationMatrix; - hasSimplifications = true; - } else { - // If the current operation is relative, we need to add the current - // simplified matrix to the list of operations before adding the - // relative operation - if (hasSimplifications) { - reversedOperations.emplace_back( - std::make_shared(simplifiedMatrix)); - simplifiedMatrix = TransformMatrix3D::Identity(); - hasSimplifications = false; - } - reversedOperations.emplace_back(operation); - } - } - - if (hasSimplifications) { - // We can return just a single matrix if there are no operations or the - // only operation is a simplified matrix (when hasSimplifications is true) - if (reversedOperations.size() <= 1) { - return simplifiedMatrix; - } - // Otherwise, add the last simplified matrix to the list of operations - reversedOperations.emplace_back( - std::make_shared(simplifiedMatrix)); - } - - // Reverse the list of operations to maintain the order - std::reverse(reversedOperations.begin(), reversedOperations.end()); - return reversedOperations; -} - -MatrixOperation::MatrixOperation(const TransformMatrix3D &value) - : TransformOperationBase< - TransformOp::Matrix, - std::variant>(value) {} - -MatrixOperation::MatrixOperation(const TransformOperations &operations) - // Simplify operations to reduce the number of matrix multiplications - // during matrix keyframe interpolation - : TransformOperationBase< - TransformOp::Matrix, - std::variant>( - simplifyOperations(operations)) {} - -bool MatrixOperation::operator==(const TransformOperation &other) const { - if (type() != other.type()) { - return false; - } - - const auto *otherOperation = dynamic_cast(&other); - if (otherOperation == nullptr) { - return false; - } - - const auto hasOperations = std::holds_alternative(value); - const auto otherHasOperations = - std::holds_alternative(otherOperation->value); - - if (hasOperations != otherHasOperations) { - return false; - } - if (!hasOperations) { - return std::get(value) == - std::get(otherOperation->value); - } - - const auto &operations = std::get(value); - const auto &otherOperations = - std::get(otherOperation->value); - - if (operations.size() != otherOperations.size()) { - return false; - } - for (size_t i = 0; i < operations.size(); ++i) { - if (*operations[i] != *otherOperations[i]) { - return false; - } - } - return true; -} - -folly::dynamic MatrixOperation::valueToDynamic() const { - if (!std::holds_alternative(value)) { - throw std::invalid_argument( - "[Reanimated] Cannot convert unprocessed transform operations to the dynamic value."); - } - return std::get(value).toDynamic(); -} - -TransformMatrix3D MatrixOperation::toMatrix() const { - if (!std::holds_alternative(value)) { - throw std::invalid_argument( - "[Reanimated] Cannot convert unprocessed transform operations to the matrix."); - } - return std::get(value); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.h deleted file mode 100644 index fe22827d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include - -#include -#include - -namespace reanimated::css { - -// Matrix -struct MatrixOperation final - : public TransformOperationBase< - TransformOp::Matrix, - std::variant> { - using TransformOperationBase< - TransformOp::Matrix, - std::variant>:: - TransformOperationBase; - - explicit MatrixOperation(const TransformMatrix3D &value); - explicit MatrixOperation(const TransformOperations &operations); - - bool operator==(const TransformOperation &other) const override; - - folly::dynamic valueToDynamic() const override; - TransformMatrix3D toMatrix() const override; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.h deleted file mode 100644 index 09f7b82d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -#include - -namespace reanimated::css { - -struct PerspectiveOperation final - : public TransformOperationBase { - using TransformOperationBase:: - TransformOperationBase; - - explicit PerspectiveOperation(double value) - : TransformOperationBase( - CSSDouble(value)) {} - - folly::dynamic valueToDynamic() const override { - return value.value != 0 ? value.toDynamic() : folly::dynamic(); - } - - TransformMatrix3D toMatrix() const override { - return TransformMatrix3D::create(value.value); - } -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.h deleted file mode 100644 index 342e8464..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include - -#include -#include - -namespace reanimated::css { - -template -struct RotateOperationBase - : public TransformOperationBase { - using TransformOperationBase::TransformOperationBase; - - explicit RotateOperationBase(const std::string &value) - : TransformOperationBase(CSSAngle(value)) {} - - folly::dynamic valueToDynamic() const override { - return this->value.toDynamic(); - } - - TransformMatrix3D toMatrix() const override { - return TransformMatrix3D::create(this->value.value); - } -}; - -using RotateOperation = RotateOperationBase; - -using RotateXOperation = RotateOperationBase; - -using RotateYOperation = RotateOperationBase; - -struct RotateZOperation final - : public RotateOperationBase { - using RotateOperationBase::RotateOperationBase; - - bool canConvertTo(TransformOp type) const override { - return type == TransformOp::Rotate; - } - - TransformOperations convertTo(TransformOp type) const override { - assertCanConvertTo(type); - return {std::make_shared(value)}; - } -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.h deleted file mode 100644 index 38895890..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -template -struct ScaleOperationBase - : public TransformOperationBase { - using TransformOperationBase::TransformOperationBase; - - explicit ScaleOperationBase(const double value) - : TransformOperationBase(CSSDouble(value)) {} - - folly::dynamic valueToDynamic() const override { - return this->value.toDynamic(); - } - - TransformMatrix3D toMatrix() const override { - return TransformMatrix3D::create(this->value.value); - } -}; - -using ScaleXOperation = ScaleOperationBase; - -using ScaleYOperation = ScaleOperationBase; - -struct ScaleOperation final : public ScaleOperationBase { - using ScaleOperationBase::ScaleOperationBase; - - bool canConvertTo(TransformOp type) const override { - return type == TransformOp::ScaleX || type == TransformOp::ScaleY; - } - - TransformOperations convertTo(TransformOp type) const override { - assertCanConvertTo(type); - if (type == TransformOp::ScaleX) { - return { - std::make_shared(value), - std::make_shared(value)}; - } else { - return { - std::make_shared(value), - std::make_shared(value)}; - } - } -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.h deleted file mode 100644 index d23502f0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -template -struct SkewOperationBase : public TransformOperationBase { - using TransformOperationBase::TransformOperationBase; - - explicit SkewOperationBase(const std::string &value) - : TransformOperationBase(CSSAngle(value)) {} - - folly::dynamic valueToDynamic() const override { - return this->value.toDynamic(); - } - - TransformMatrix3D toMatrix() const override { - return TransformMatrix3D::create(this->value.value); - } -}; - -using SkewXOperation = SkewOperationBase; - -using SkewYOperation = SkewOperationBase; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.h deleted file mode 100644 index 44f0665a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -template -struct TranslateOperationBase - : public TransformOperationBase { - using TransformOperationBase::TransformOperationBase; - - explicit TranslateOperationBase(double value) - : TransformOperationBase(CSSLength(value)) {} - explicit TranslateOperationBase(const std::string &value) - : TransformOperationBase(CSSLength(value)) {} - - bool isRelative() const override { - return this->value.isRelative; - } - - folly::dynamic valueToDynamic() const override { - return this->value.toDynamic(); - } - - TransformMatrix3D toMatrix() const override { - if (this->value.isRelative) { - throw std::invalid_argument( - "[Reanimated] Cannot convert relative translate to the matrix."); - } - return TransformMatrix3D::create(this->value.value); - } -}; - -using TranslateXOperation = TranslateOperationBase; - -using TranslateYOperation = TranslateOperationBase; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.cpp deleted file mode 100644 index 76ac1e23..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#include - -#include -#include -#include -#include - -#include -#include - -namespace reanimated::css { - -template -ResolvableValueInterpolator::ResolvableValueInterpolator( - const PropertyPath &propertyPath, - const ValueType &defaultStyleValue, - const std::shared_ptr &viewStylesRepository, - RelativeTo relativeTo, - std::string relativeProperty) - : SimpleValueInterpolator( - propertyPath, - defaultStyleValue, - viewStylesRepository), - relativeTo_(relativeTo), - relativeProperty_(relativeProperty) {} - -template -folly::dynamic ResolvableValueInterpolator::interpolateValue( - double progress, - const std::shared_ptr &fromValue, - const std::shared_ptr &toValue, - const ValueInterpolatorUpdateContext &context) const { - const auto &from = std::static_pointer_cast(fromValue); - const auto &to = std::static_pointer_cast(toValue); - return from - ->interpolate( - progress, - *to, - {.node = context.node, - .viewStylesRepository = this->viewStylesRepository_, - .relativeProperty = relativeProperty_, - .relativeTo = relativeTo_}) - .toDynamic(); -} - -template class ResolvableValueInterpolator; -template class ResolvableValueInterpolator; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.h deleted file mode 100644 index a5af3e6f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include -#include - -#include -#include -#include - -namespace reanimated::css { - -/** - * Concrete implementation of ValueInterpolator for CSS values that require - * resolution before interpolation. This class handles interpolation of relative - * values (e.g., percentage length values) that need to be resolved to absolute - * values using the context describing the ShadowNode before the interpolation - * can occur. - */ -template -class ResolvableValueInterpolator final - : public SimpleValueInterpolator { - static_assert( - (... && std::is_base_of::value), - "[Reanimated] ResolvableValueInterpolator: All interpolated types must inherit from CSSValue"); - - public: - using ValueType = - typename SimpleValueInterpolator::ValueType; - - explicit ResolvableValueInterpolator( - const PropertyPath &propertyPath, - const ValueType &defaultStyleValue, - const std::shared_ptr &viewStylesRepository, - RelativeTo relativeTo, - std::string relativeProperty); - - protected: - folly::dynamic interpolateValue( - double progress, - const std::shared_ptr &fromValue, - const std::shared_ptr &toValue, - const ValueInterpolatorUpdateContext &context) const override; - - private: - RelativeTo relativeTo_; - std::string relativeProperty_; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.cpp deleted file mode 100644 index 6dca430d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.cpp +++ /dev/null @@ -1,71 +0,0 @@ -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace reanimated::css { - -template -SimpleValueInterpolator::SimpleValueInterpolator( - const PropertyPath &propertyPath, - const ValueType &defaultStyleValue, - const std::shared_ptr &viewStylesRepository) - : ValueInterpolator( - propertyPath, - std::make_shared(defaultStyleValue), - viewStylesRepository) {} - -template -std::shared_ptr SimpleValueInterpolator::createValue( - jsi::Runtime &rt, - const jsi::Value &value) const { - return std::make_shared(rt, value); -} - -template -std::shared_ptr SimpleValueInterpolator::createValue( - const folly::dynamic &value) const { - return std::make_shared(value); -} - -template -folly::dynamic SimpleValueInterpolator::interpolateValue( - double progress, - const std::shared_ptr &fromValue, - const std::shared_ptr &toValue, - const ValueInterpolatorUpdateContext &context) const { - const auto &from = std::static_pointer_cast(fromValue); - const auto &to = std::static_pointer_cast(toValue); - return from->interpolate(progress, *to, context).toDynamic(); -} - -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator>; -#ifdef ANDROID -template class SimpleValueInterpolator; -#endif - -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; -template class SimpleValueInterpolator; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.h deleted file mode 100644 index b1460ae0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/SimpleValueInterpolator.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -/** - * Concrete implementation of ValueInterpolator for simple CSS values that don't - * require resolution before interpolation. This class handles direct - * interpolation between values without any additional processing or resolution. - */ -template -class SimpleValueInterpolator : public ValueInterpolator { - static_assert( - (... && std::is_base_of::value), - "[Reanimated] SimpleValueInterpolator: All interpolated types must inherit from CSSValue"); - - public: - using ValueType = CSSValueVariant; - - explicit SimpleValueInterpolator( - const PropertyPath &propertyPath, - const ValueType &defaultStyleValue, - const std::shared_ptr &viewStylesRepository); - - protected: - std::shared_ptr createValue( - jsi::Runtime &rt, - const jsi::Value &value) const override; - - std::shared_ptr createValue( - const folly::dynamic &value) const override; - - folly::dynamic interpolateValue( - double progress, - const std::shared_ptr &fromValue, - const std::shared_ptr &toValue, - const ValueInterpolatorUpdateContext &context) const override; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.cpp deleted file mode 100644 index 03e8d84c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.cpp +++ /dev/null @@ -1,153 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -ValueInterpolator::ValueInterpolator( - const PropertyPath &propertyPath, - const std::shared_ptr &defaultValue, - const std::shared_ptr &viewStylesRepository) - : PropertyInterpolator(propertyPath, viewStylesRepository), - defaultStyleValue_(defaultValue), - defaultStyleValueDynamic_(defaultValue->toDynamic()) {} - -folly::dynamic ValueInterpolator::getStyleValue( - const std::shared_ptr &shadowNode) const { - return viewStylesRepository_->getStyleProp( - shadowNode->getTag(), propertyPath_); -} - -folly::dynamic ValueInterpolator::getResetStyle( - const std::shared_ptr &shadowNode) const { - auto styleValue = getStyleValue(shadowNode); - - if (styleValue.isNull()) { - return defaultStyleValueDynamic_; - } - - return styleValue; -} - -folly::dynamic ValueInterpolator::getFirstKeyframeValue() const { - return convertOptionalToDynamic(keyframes_.front().value); -} - -folly::dynamic ValueInterpolator::getLastKeyframeValue() const { - return convertOptionalToDynamic(keyframes_.back().value); -} - -bool ValueInterpolator::equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const { - if (reversingAdjustedStartValue_.isNull()) { - return propertyValue.isNull(); - } - return reversingAdjustedStartValue_ == propertyValue; -} - -void ValueInterpolator::updateKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes) { - const auto parsedKeyframes = parseJSIKeyframes(rt, keyframes); - - keyframes_.clear(); - keyframes_.reserve(parsedKeyframes.size()); - - for (const auto &[offset, value] : parsedKeyframes) { - if (value.isUndefined()) { - keyframes_.emplace_back(offset, std::nullopt); - } else { - keyframes_.emplace_back( - offset, std::make_optional(createValue(rt, value))); - } - } -} - -void ValueInterpolator::updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) { - ValueKeyframe firstKeyframe, lastKeyframe; - - if (!lastUpdateValue.isNull()) { - firstKeyframe = ValueKeyframe{0, createValue(lastUpdateValue)}; - } else if (!oldStyleValue.isNull()) { - firstKeyframe = ValueKeyframe{0, createValue(oldStyleValue)}; - } else { - firstKeyframe = ValueKeyframe{0, defaultStyleValue_}; - } - - if (newStyleValue.isNull()) { - lastKeyframe = ValueKeyframe{1, defaultStyleValue_}; - } else { - lastKeyframe = ValueKeyframe{1, createValue(newStyleValue)}; - } - - keyframes_ = {std::move(firstKeyframe), std::move(lastKeyframe)}; - reversingAdjustedStartValue_ = oldStyleValue; -} - -folly::dynamic ValueInterpolator::interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) const { - const auto toIndex = getToKeyframeIndex(progressProvider); - const auto fromIndex = toIndex - 1; - - const auto &fromKeyframe = keyframes_[fromIndex]; - const auto &toKeyframe = keyframes_[toIndex]; - - // clang-format off - const auto &fromValue = fromKeyframe.value - ? fromKeyframe.value.value() - : getFallbackValue(shadowNode); - const auto &toValue = toKeyframe.value - ? toKeyframe.value.value() - : getFallbackValue(shadowNode); - // clang-format on - - const auto keyframeProgress = progressProvider->getKeyframeProgress( - fromKeyframe.offset, toKeyframe.offset); - - if (keyframeProgress == 1.0) { - return toValue->toDynamic(); - } - if (keyframeProgress == 0.0) { - return fromValue->toDynamic(); - } - - return interpolateValue( - keyframeProgress, fromValue, toValue, {.node = shadowNode}); -} - -folly::dynamic ValueInterpolator::convertOptionalToDynamic( - const std::optional> &value) const { - return value ? value.value()->toDynamic() : folly::dynamic(); -} - -std::shared_ptr ValueInterpolator::getFallbackValue( - const std::shared_ptr &shadowNode) const { - const auto styleValue = getStyleValue(shadowNode); - return styleValue.isNull() ? defaultStyleValue_ : createValue(styleValue); -} - -size_t ValueInterpolator::getToKeyframeIndex( - const std::shared_ptr &progressProvider) const { - const auto progress = progressProvider->getGlobalProgress(); - - const auto it = std::upper_bound( - keyframes_.begin(), - keyframes_.end(), - progress, - [](double progress, const ValueKeyframe &keyframe) { - return progress < keyframe.offset; - }); - - // If we're at the end, return the last valid keyframe index - if (it == keyframes_.end()) { - return keyframes_.size() - 1; - } - - return std::distance(keyframes_.begin(), it); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h deleted file mode 100644 index 5dd9537c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h +++ /dev/null @@ -1,78 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include - -namespace reanimated::css { - -struct ValueKeyframe { - double offset; - std::optional> value; -}; - -/** - * Base class for CSS value interpolators that provides common functionality - * for interpolating CSS values during animations. This class should be extended - * by concrete implementations for specific CSS value types to provide - * type-specific interpolation logic. - */ -class ValueInterpolator : public PropertyInterpolator { - public: - explicit ValueInterpolator( - const PropertyPath &propertyPath, - const std::shared_ptr &defaultValue, - const std::shared_ptr &viewStylesRepository); - virtual ~ValueInterpolator() = default; - - folly::dynamic getStyleValue( - const std::shared_ptr &shadowNode) const override; - folly::dynamic getResetStyle( - const std::shared_ptr &shadowNode) const override; - folly::dynamic getFirstKeyframeValue() const override; - folly::dynamic getLastKeyframeValue() const override; - bool equalsReversingAdjustedStartValue( - const folly::dynamic &propertyValue) const override; - - void updateKeyframes(jsi::Runtime &rt, const jsi::Value &keyframes) override; - void updateKeyframesFromStyleChange( - const folly::dynamic &oldStyleValue, - const folly::dynamic &newStyleValue, - const folly::dynamic &lastUpdateValue) override; - - folly::dynamic interpolate( - const std::shared_ptr &shadowNode, - const std::shared_ptr &progressProvider) - const override; - - protected: - std::vector keyframes_; - std::shared_ptr defaultStyleValue_; - folly::dynamic defaultStyleValueDynamic_; - folly::dynamic reversingAdjustedStartValue_; - - virtual std::shared_ptr createValue( - jsi::Runtime &rt, - const jsi::Value &value) const = 0; - virtual std::shared_ptr createValue( - const folly::dynamic &value) const = 0; - virtual folly::dynamic interpolateValue( - double progress, - const std::shared_ptr &fromValue, - const std::shared_ptr &toValue, - const ValueInterpolatorUpdateContext &context) const = 0; - - private: - folly::dynamic convertOptionalToDynamic( - const std::optional> &value) const; - std::shared_ptr getFallbackValue( - const std::shared_ptr &shadowNode) const; - size_t getToKeyframeIndex( - const std::shared_ptr &progressProvider) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.cpp deleted file mode 100644 index 228e98d0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.cpp +++ /dev/null @@ -1,164 +0,0 @@ -#include - -namespace reanimated::css { - -ViewStylesRepository::ViewStylesRepository( - const std::shared_ptr &staticPropsRegistry, - const std::shared_ptr &animatedPropsRegistry) - : staticPropsRegistry_(staticPropsRegistry), - animatedPropsRegistry_(animatedPropsRegistry) {} - -jsi::Value ViewStylesRepository::getNodeProp( - const std::shared_ptr &shadowNode, - const std::string &propName) { - int tag = shadowNode->getTag(); - - auto &cachedNode = shadowNodeCache_[tag]; - updateCacheIfNeeded(cachedNode, shadowNode); - - if (propName == "width" || propName == "height" || propName == "top" || - propName == "left") { - const auto &layoutMetrics = cachedNode.layoutMetrics; - - if (propName == "width") { - return {layoutMetrics.frame.size.width}; - } else if (propName == "height") { - return {layoutMetrics.frame.size.height}; - } else if (propName == "top") { - return {layoutMetrics.frame.origin.y}; - } else if (propName == "left") { - return {layoutMetrics.frame.origin.x}; - } - } else { - const auto &viewProps = cachedNode.viewProps; - - if (propName == "opacity") { - return {viewProps->opacity}; - } else if (propName == "zIndex") { - return viewProps->zIndex.has_value() ? jsi::Value(*viewProps->zIndex) - : jsi::Value(0); - } else if (propName == "backgroundColor") { - return {static_cast(*viewProps->backgroundColor)}; - } - } - - throw std::runtime_error("[Reanimated] Unsupported property: " + propName); -} - -jsi::Value ViewStylesRepository::getParentNodeProp( - const std::shared_ptr &shadowNode, - const std::string &propName) { - const auto surfaceId = shadowNode->getSurfaceId(); - const auto &shadowTreeRegistry = uiManager_->getShadowTreeRegistry(); - - std::shared_ptr parentNode = nullptr; - - shadowTreeRegistry.visit(surfaceId, [&](ShadowTree const &shadowTree) { - auto currentRevision = shadowTree.getCurrentRevision(); - parentNode = - dom::getParentNode(currentRevision.rootShadowNode, *shadowNode); - }); - - if (!parentNode) { - return jsi::Value::undefined(); - } - - return getNodeProp(parentNode, propName); -} - -folly::dynamic ViewStylesRepository::getStyleProp( - const Tag tag, - const PropertyPath &propertyPath) { - auto animatedValue = - getPropertyValue(animatedPropsRegistry_->get(tag), propertyPath); - if (!animatedValue.isNull()) { - return animatedValue; - } - - return getPropertyValue(staticPropsRegistry_->get(tag), propertyPath); -} - -void ViewStylesRepository::clearNodesCache() { - shadowNodeCache_.clear(); -} - -void ViewStylesRepository::updateCacheIfNeeded( - CachedShadowNode &cachedNode, - const std::shared_ptr &shadowNode) { - auto newestCloneOfShadowNode = - uiManager_->getNewestCloneOfShadowNode(*shadowNode); - - // Check if newestCloneOfShadowNode is valid (is already mounted / not - // yet unmounted) - if (!newestCloneOfShadowNode) { - return; - } - - auto layoutableShadowNode = - dynamic_cast(newestCloneOfShadowNode.get()); - if (!layoutableShadowNode) { - return; - } - - cachedNode.layoutMetrics = layoutableShadowNode->layoutMetrics_; - cachedNode.viewProps = std::static_pointer_cast( - newestCloneOfShadowNode->getProps()); -} - -folly::dynamic ViewStylesRepository::getPropertyValue( - const folly::dynamic &value, - const PropertyPath &propertyPath) { - const folly::dynamic *currentValue = &value; - - for (size_t i = 0; i < propertyPath.size(); ++i) { - if (currentValue->isNull() || currentValue->empty()) { - return {}; - } - - const auto &propName = propertyPath[i]; - - if (!currentValue->isObject()) { - return {}; - } - - if (propName == "transform") { - auto transformIt = currentValue->find("transform"); - if (transformIt == currentValue->items().end()) { - return {}; - } - - const auto &transform = transformIt->second; - if (!transform.isArray()) { - return {}; - } - - if (i + 1 >= propertyPath.size()) { - return transform; - } - - const std::string &transformPropName = propertyPath[i + 1]; - - for (const auto &transformEntry : transform) { - if (transformEntry.isObject()) { - auto transformPropIt = transformEntry.find(transformPropName); - if (transformPropIt != transformEntry.items().end()) { - return transformPropIt->second; - } - } - } - - return {}; - } - - auto propIt = currentValue->find(propName); - if (propIt == currentValue->items().end()) { - return {}; - } - - currentValue = &propIt->second; - } - - return *currentValue; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.h deleted file mode 100644 index 8365c0d6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.h +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include - -#include -#include -#include - -namespace reanimated::css { - -using namespace facebook; -using namespace react; - -struct CachedShadowNode { - LayoutMetrics layoutMetrics; - std::shared_ptr viewProps; -}; - -class ViewStylesRepository { - public: - ViewStylesRepository( - const std::shared_ptr &staticPropsRegistry, - const std::shared_ptr &animatedPropsRegistry); - - void setUIManager(const std::shared_ptr &uiManager) { - uiManager_ = uiManager; - } - - jsi::Value getNodeProp( - const std::shared_ptr &shadowNode, - const std::string &propName); - jsi::Value getParentNodeProp( - const std::shared_ptr &shadowNode, - const std::string &propName); - folly::dynamic getStyleProp(Tag tag, const PropertyPath &propertyPath); - - void clearNodesCache(); - - private: - std::shared_ptr uiManager_; - std::shared_ptr staticPropsRegistry_; - std::shared_ptr animatedPropsRegistry_; - - std::unordered_map shadowNodeCache_; - - void updateCacheIfNeeded( - CachedShadowNode &cachedNode, - const std::shared_ptr &shadowNode); - - static folly::dynamic getPropertyValue( - const folly::dynamic &value, - const PropertyPath &propertyPath); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.cpp deleted file mode 100644 index d1619248..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.cpp +++ /dev/null @@ -1,194 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -AnimationProgressProvider::AnimationProgressProvider( - const double timestamp, - const double duration, - const double delay, - const double iterationCount, - const AnimationDirection direction, - EasingFunction easingFunction, - const std::shared_ptr &keyframeEasingFunctions) - : RawProgressProvider(timestamp, duration, delay), - iterationCount_(iterationCount), - direction_(direction), - easingFunction_(std::move(easingFunction)), - keyframeEasingFunctions_(keyframeEasingFunctions) {} - -void AnimationProgressProvider::setIterationCount(double iterationCount) { - iterationCount_ = iterationCount; -} - -void AnimationProgressProvider::setDirection(AnimationDirection direction) { - direction_ = direction; -} - -void AnimationProgressProvider::setEasingFunction( - const EasingFunction &easingFunction) { - easingFunction_ = easingFunction; -} - -AnimationDirection AnimationProgressProvider::getDirection() const { - return direction_; -} - -double AnimationProgressProvider::getGlobalProgress() const { - return applyAnimationDirection(rawProgress_.value_or(0)); -} - -AnimationProgressState AnimationProgressProvider::getState( - const double timestamp) const { - if (shouldFinish(timestamp)) { - return AnimationProgressState::Finished; - } - if (pauseTimestamp_ > 0) { - return AnimationProgressState::Paused; - } - if (timestamp < getStartTimestamp(timestamp) || !rawProgress_.has_value()) { - return AnimationProgressState::Pending; - } - const auto rawProgress = rawProgress_.value(); - if (rawProgress >= 1) { - return AnimationProgressState::Finished; - } - return AnimationProgressState::Running; -} - -double AnimationProgressProvider::getPauseTimestamp() const { - return pauseTimestamp_; -} - -double AnimationProgressProvider::getTotalPausedTime( - const double timestamp) const { - return pauseTimestamp_ > 0 - ? (totalPausedTime_ + (timestamp - pauseTimestamp_)) - : totalPausedTime_; -} - -double AnimationProgressProvider::getStartTimestamp( - const double timestamp) const { - // Start timestamp is the timestamp when the first animation keyframe - // should be applied (it depends on the animation delay and the total - // time when the animation was paused) - return creationTimestamp_ + delay_ + getTotalPausedTime(timestamp); -} - -double AnimationProgressProvider::getKeyframeProgress( - const double fromOffset, - const double toOffset) const { - if (fromOffset == toOffset) { - return 1; - } - - const auto keyframeProgress = - (getGlobalProgress() - fromOffset) / (toOffset - fromOffset); - - // Use the overridden easing function if it was overridden for the - // current keyframe - const auto easingFunctionIt = keyframeEasingFunctions_->find(fromOffset); - if (easingFunctionIt != keyframeEasingFunctions_->end()) { - return easingFunctionIt->second(keyframeProgress); - } - - return easingFunction_(keyframeProgress); -} - -void AnimationProgressProvider::pause(const double timestamp) { - pauseTimestamp_ = timestamp; -} - -void AnimationProgressProvider::play(const double timestamp) { - if (pauseTimestamp_ > 0) { - totalPausedTime_ += timestamp - pauseTimestamp_; - } - pauseTimestamp_ = 0; -} - -void AnimationProgressProvider::resetProgress() { - RawProgressProvider::resetProgress(); - currentIteration_ = 1; - previousIterationsDuration_ = 0; -} - -bool AnimationProgressProvider::shouldFinish(const double timestamp) const { - if (iterationCount_ == 0) { - return true; - } - if (iterationCount_ == -1) { - return false; - } - const auto elapsedDuration = timestamp - getStartTimestamp(timestamp); - return elapsedDuration >= duration_ * iterationCount_; -} - -std::optional AnimationProgressProvider::calculateRawProgress( - const double timestamp) { - const double currentIterationElapsedTime = timestamp - - (creationTimestamp_ + delay_ + previousIterationsDuration_ + - getTotalPausedTime(timestamp)); - - if (currentIterationElapsedTime < 0) { - return std::nullopt; - } - - const double iterationProgress = - updateIterationProgress(currentIterationElapsedTime); - - if (shouldFinish(timestamp)) { - // Override current progress for the last update in the last iteration to - // ensure that animation finishes exactly at the specified iteration - const double intPart = std::floor(iterationCount_); - return intPart == iterationCount_ ? 1 : iterationCount_ - intPart; - } - - return iterationProgress; -} - -double AnimationProgressProvider::updateIterationProgress( - const double currentIterationElapsedTime) { - if (duration_ == 0) { - return 1; - } - // We can increase curentIteration by more than just one iteration if the - // animation delay is negative, thus we are using this division to get the - // number of iterations that have passed since the previous animation update - // (deltaIterations can be greater than for the first update of the - // animation with the negative delay) - const double progress = currentIterationElapsedTime / duration_; - const auto deltaIterations = static_cast(progress); - - if (deltaIterations > 0) { - // Return 1 if the current iteration is the last one - if (iterationCount_ != -1 && - currentIteration_ + deltaIterations > iterationCount_) { - currentIteration_ = iterationCount_; - return 1; - } - - currentIteration_ += deltaIterations; - previousIterationsDuration_ = (currentIteration_ - 1) * duration_; - } - - // If the current iteration changes, the progress must be updated - // respectively not to contain the progress of the previous iteration - return progress - deltaIterations; -} - -double AnimationProgressProvider::applyAnimationDirection( - const double progress) const { - switch (direction_) { - case AnimationDirection::Normal: - return progress; - case AnimationDirection::Reverse: - return 1.0 - progress; - case AnimationDirection::Alternate: - return currentIteration_ % 2 == 0 ? 1.0 - progress : progress; - case AnimationDirection::AlternateReverse: - return currentIteration_ % 2 == 0 ? progress : 1.0 - progress; - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.h deleted file mode 100644 index 74f22579..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.h +++ /dev/null @@ -1,68 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include - -#include - -namespace reanimated::css { - -enum class AnimationProgressState { - Pending, // When the animation is waiting for the delay to pass - Running, - Paused, - Finished -}; - -class AnimationProgressProvider final : public KeyframeProgressProvider, - public RawProgressProvider { - public: - AnimationProgressProvider( - double timestamp, - double duration, - double delay, - double iterationCount, - AnimationDirection direction, - EasingFunction easingFunction, - const std::shared_ptr &keyframeEasingFunctions); - - void setIterationCount(double iterationCount); - void setDirection(AnimationDirection direction); - void setEasingFunction(const EasingFunction &easingFunction); - - AnimationDirection getDirection() const; - double getGlobalProgress() const override; - double getKeyframeProgress(double fromOffset, double toOffset) const override; - AnimationProgressState getState(double timestamp) const; - double getPauseTimestamp() const; - double getTotalPausedTime(double timestamp) const; - double getStartTimestamp(double timestamp) const; - - void pause(double timestamp); - void play(double timestamp); - void resetProgress() override; - - protected: - std::optional calculateRawProgress(double timestamp) override; - - private: - double iterationCount_; - AnimationDirection direction_; - EasingFunction easingFunction_; - std::shared_ptr keyframeEasingFunctions_; - - unsigned currentIteration_ = 1; - double previousIterationsDuration_ = 0; - double pauseTimestamp_ = 0; - double totalPausedTime_ = 0; - - bool shouldFinish(double timestamp) const; - - double updateIterationProgress(double currentIterationElapsedTime); - double applyAnimationDirection(double iterationProgress) const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/KeyframeProgressProvider.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/KeyframeProgressProvider.h deleted file mode 100644 index 2b61d442..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/KeyframeProgressProvider.h +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -namespace reanimated::css { - -class KeyframeProgressProvider { - public: - virtual double getGlobalProgress() const = 0; - - virtual double getKeyframeProgress(double fromOffset, double toOffset) - const = 0; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/RawProgressProvider.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/RawProgressProvider.cpp deleted file mode 100644 index 3559f7fd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/RawProgressProvider.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include - -namespace reanimated::css { - -RawProgressProvider::RawProgressProvider( - const double timestamp, - const double duration, - const double delay) - : duration_(duration), delay_(delay), creationTimestamp_(timestamp) {} - -void RawProgressProvider::setDuration(double duration) { - duration_ = duration; -} - -void RawProgressProvider::setDelay(double delay) { - delay_ = delay; -} - -void RawProgressProvider::resetProgress() { - rawProgress_.reset(); - previousRawProgress_.reset(); -} - -void RawProgressProvider::update(const double timestamp) { - previousRawProgress_ = rawProgress_; - - if (timestamp - creationTimestamp_ < delay_) { - rawProgress_.reset(); - return; - } - - rawProgress_ = calculateRawProgress(timestamp); - if (!rawProgress_.has_value()) { - return; - } - - if (rawProgress_.value() < 0) { - rawProgress_.reset(); - } else if (rawProgress_.value() >= 1) { - rawProgress_ = 1; - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/RawProgressProvider.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/RawProgressProvider.h deleted file mode 100644 index 9256aad3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/RawProgressProvider.h +++ /dev/null @@ -1,31 +0,0 @@ -#pragma once - -#include -namespace reanimated::css { - -class RawProgressProvider { - public: - RawProgressProvider(double timestamp, double duration, double delay); - - void setDuration(double duration); - void setDelay(double delay); - - virtual void resetProgress(); - void update(double timestamp); - - protected: - double duration_; - double delay_; - double creationTimestamp_; - - std::optional rawProgress_; - std::optional previousRawProgress_; - - /** - * Calculates the progress of the animation at the given timestamp without - * applying any decorations (e.g. animation direction, easing) - */ - virtual std::optional calculateRawProgress(double timestamp) = 0; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.cpp deleted file mode 100644 index 8fdaa745..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.cpp +++ /dev/null @@ -1,220 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -// TransitionPropertyProgressProvider - -TransitionPropertyProgressProvider::TransitionPropertyProgressProvider( - const double timestamp, - const double duration, - const double delay, - const EasingFunction &easingFunction) - : RawProgressProvider(timestamp, duration, delay), - easingFunction_(easingFunction) {} - -TransitionPropertyProgressProvider::TransitionPropertyProgressProvider( - const double timestamp, - const double duration, - const double delay, - const EasingFunction &easingFunction, - const double reversingShorteningFactor) - : RawProgressProvider(timestamp, duration, delay), - easingFunction_(easingFunction), - reversingShorteningFactor_(reversingShorteningFactor) {} - -double TransitionPropertyProgressProvider::getGlobalProgress() const { - return rawProgress_.value_or(0); -} - -double TransitionPropertyProgressProvider::getKeyframeProgress( - const double fromOffset, - const double toOffset) const { - if (fromOffset == toOffset) { - return 1; - } - return easingFunction_(getGlobalProgress()); -} - -double TransitionPropertyProgressProvider::getRemainingDelay( - const double timestamp) const { - return delay_ - (timestamp - creationTimestamp_); -} - -double TransitionPropertyProgressProvider::getReversingShorteningFactor() - const { - return reversingShorteningFactor_; -} - -TransitionProgressState TransitionPropertyProgressProvider::getState() const { - if (!rawProgress_.has_value()) { - return TransitionProgressState::Pending; - } - const auto rawProgress = rawProgress_.value(); - if (rawProgress >= 1) { - return TransitionProgressState::Finished; - } - return TransitionProgressState::Running; -} - -std::optional TransitionPropertyProgressProvider::calculateRawProgress( - const double timestamp) { - if (duration_ == 0) { - return 1; - } - return getElapsedTime(timestamp) / duration_; -} - -double TransitionPropertyProgressProvider::getElapsedTime( - const double timestamp) const { - return timestamp - (creationTimestamp_ + delay_); -} - -// TransitionProgressProvider - -TransitionProgressState TransitionProgressProvider::getState() const { - for (const auto &[_, propertyProgressProvider] : propertyProgressProviders_) { - if (propertyProgressProvider->getState() == - TransitionProgressState::Running) { - return TransitionProgressState::Running; - } - } - return TransitionProgressState::Pending; -} - -double TransitionProgressProvider::getMinDelay(const double timestamp) const { - if (propertyProgressProviders_.empty()) { - return 0; - } - auto minDelay = std::numeric_limits::max(); - - for (const auto &[_, propertyProgressProvider] : propertyProgressProviders_) { - const auto remainingDelay = - propertyProgressProvider->getRemainingDelay(timestamp); - if (remainingDelay < minDelay) { - minDelay = remainingDelay; - } - } - - return minDelay; -} - -TransitionPropertyProgressProviders -TransitionProgressProvider::getPropertyProgressProviders() const { - return propertyProgressProviders_; -} - -std::unordered_set -TransitionProgressProvider::getRemovedProperties() const { - return removedProperties_; -} - -void TransitionProgressProvider::discardFinishedProgressProviders() { - for (auto it = propertyProgressProviders_.begin(); - it != propertyProgressProviders_.end();) { - if (it->second->getState() == TransitionProgressState::Finished) { - it = propertyProgressProviders_.erase(it); - } else { - ++it; - } - } -} - -void TransitionProgressProvider::discardIrrelevantProgressProviders( - const std::unordered_set &transitionPropertyNames) { - for (auto it = propertyProgressProviders_.begin(); - it != propertyProgressProviders_.end();) { - // Remove property progress providers for properties not specified in the - // transition property names - if (transitionPropertyNames.find(it->first) == - transitionPropertyNames.end()) { - it = propertyProgressProviders_.erase(it); - } else { - ++it; - } - } -} - -void TransitionProgressProvider::runProgressProviders( - const double timestamp, - const CSSTransitionPropertiesSettings &propertiesSettings, - const PropertyNames &changedPropertyNames, - const std::unordered_set &reversedPropertyNames) { - for (const auto &propertyName : changedPropertyNames) { - const auto propertySettingsOptional = - getTransitionPropertySettings(propertiesSettings, propertyName); - - if (!propertySettingsOptional.has_value()) { - throw std::invalid_argument( - "[Reanimated] Property '" + propertyName + - "' is not a valid transition property"); - } - - const auto &propertySettings = propertySettingsOptional.value(); - const auto it = propertyProgressProviders_.find(propertyName); - - if (it != propertyProgressProviders_.end()) { - const auto &progressProvider = it->second; - progressProvider->update(timestamp); - - if (reversedPropertyNames.find(propertyName) != - reversedPropertyNames.end() && - progressProvider->getState() != TransitionProgressState::Finished) { - // Create reversing shortening progress provider for interrupted - // reversing transition - propertyProgressProviders_.insert_or_assign( - propertyName, - createReversingShorteningProgressProvider( - timestamp, propertySettings, *progressProvider)); - continue; - } - } - - // Create progress provider with the new settings - propertyProgressProviders_.insert_or_assign( - propertyName, - std::make_shared( - timestamp, - propertySettings.duration, - propertySettings.delay, - propertySettings.easingFunction)); - } -} - -void TransitionProgressProvider::update(const double timestamp) { - removedProperties_.clear(); - - for (const auto &[propertyName, propertyProgressProvider] : - propertyProgressProviders_) { - propertyProgressProvider->update(timestamp); - if (propertyProgressProvider->getState() == - TransitionProgressState::Finished) { - removedProperties_.insert(propertyName); - } - } -} - -std::shared_ptr -TransitionProgressProvider::createReversingShorteningProgressProvider( - const double timestamp, - const CSSTransitionPropertySettings &propertySettings, - const TransitionPropertyProgressProvider &existingProgressProvider) { - const auto oldProgress = existingProgressProvider.getKeyframeProgress(0, 1); - const auto oldReversingShorteningFactor = - existingProgressProvider.getReversingShorteningFactor(); - auto newReversingShorteningFactor = - oldProgress * oldReversingShorteningFactor + - (1 - oldReversingShorteningFactor); - - return std::make_shared( - timestamp, - propertySettings.duration * newReversingShorteningFactor, - propertySettings.delay < 0 - ? newReversingShorteningFactor * propertySettings.delay - : propertySettings.delay, - propertySettings.easingFunction, - newReversingShorteningFactor); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.h deleted file mode 100644 index 696605b3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.h +++ /dev/null @@ -1,82 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -enum class TransitionProgressState { Pending, Running, Finished }; - -class TransitionPropertyProgressProvider final - : public KeyframeProgressProvider, - public RawProgressProvider { - public: - TransitionPropertyProgressProvider( - double timestamp, - double duration, - double delay, - const EasingFunction &easingFunction); - TransitionPropertyProgressProvider( - double timestamp, - double duration, - double delay, - const EasingFunction &easingFunction, - double reversingShorteningFactor); - - double getGlobalProgress() const override; - double getKeyframeProgress(double fromOffset, double toOffset) const override; - double getRemainingDelay(double timestamp) const; - double getReversingShorteningFactor() const; - TransitionProgressState getState() const; - - protected: - std::optional calculateRawProgress(double timestamp) override; - - private: - EasingFunction easingFunction_; - double reversingShorteningFactor_ = 1; - - double getElapsedTime(double timestamp) const; -}; - -using TransitionPropertyProgressProviders = std::unordered_map< - std::string, - std::shared_ptr>; - -class TransitionProgressProvider final { - public: - TransitionProgressState getState() const; - double getMinDelay(double timestamp) const; - TransitionPropertyProgressProviders getPropertyProgressProviders() const; - std::unordered_set getRemovedProperties() const; - - void discardFinishedProgressProviders(); - void discardIrrelevantProgressProviders( - const std::unordered_set &transitionPropertyNames); - void runProgressProviders( - double timestamp, - const CSSTransitionPropertiesSettings &propertiesSettings, - const PropertyNames &changedPropertyNames, - const std::unordered_set &reversedPropertyNames); - void update(double timestamp); - - private: - TransitionPropertyProgressProviders propertyProgressProviders_; - - std::unordered_set removedProperties_; - - std::shared_ptr - createReversingShorteningProgressProvider( - double timestamp, - const CSSTransitionPropertySettings &propertySettings, - const TransitionPropertyProgressProvider &existingProgressProvider); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.cpp deleted file mode 100644 index 70406e69..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.cpp +++ /dev/null @@ -1,349 +0,0 @@ -#include - -namespace reanimated::css { - -bool CSSAnimationsRegistry::isEmpty() const { - // The registry is empty if has no registered animations and no updates - // stored in the updates registry - return UpdatesRegistry::isEmpty() && registry_.empty(); -} - -bool CSSAnimationsRegistry::hasUpdates() const { - return !runningAnimationIndicesMap_.empty() || - !delayedAnimationsManager_.empty() || !animationsToRevertMap_.empty(); -} - -void CSSAnimationsRegistry::apply( - jsi::Runtime &rt, - const std::shared_ptr &shadowNode, - const std::optional> &animationNames, - const CSSAnimationsMap &newAnimations, - const CSSAnimationSettingsUpdatesMap &settingsUpdates, - double timestamp) { - const auto animationsVector = - buildAnimationsVector(rt, shadowNode, animationNames, newAnimations); - - const auto viewTag = shadowNode->getTag(); - if (animationsVector.empty()) { - remove(viewTag); - return; - } - - registry_.erase(viewTag); - registry_.emplace( - viewTag, - RegistryEntry{ - std::move(animationsVector), - buildAnimationToIndexMap(animationsVector)}); - runningAnimationIndicesMap_[viewTag].clear(); - - std::vector updatedIndices; - for (const auto &[index, _] : newAnimations) { - updatedIndices.push_back(index); - } - for (const auto &[index, _] : settingsUpdates) { - updatedIndices.push_back(index); - } - - updateAnimationSettings(animationsVector, settingsUpdates, timestamp); - for (size_t i = 0; i < animationsVector.size(); ++i) { - scheduleOrActivateAnimation(i, animationsVector[i], timestamp); - } - updateViewAnimations(viewTag, updatedIndices, timestamp, false); - applyViewAnimationsStyle(viewTag, timestamp); -} - -void CSSAnimationsRegistry::remove(const Tag viewTag) { - removeViewAnimations(viewTag); - removeFromUpdatesRegistry(viewTag); - registry_.erase(viewTag); -} - -void CSSAnimationsRegistry::update(const double timestamp) { - // Activate all delayed animations that should start now - activateDelayedAnimations(timestamp); - // Update styles in the registry for views which animations were reverted - handleAnimationsToRevert(timestamp); - - // Iterate over active animations and update them - for (auto it = runningAnimationIndicesMap_.begin(); - it != runningAnimationIndicesMap_.end();) { - const auto viewTag = it->first; - const std::vector animationIndices = { - it->second.begin(), it->second.end()}; - updateViewAnimations(viewTag, animationIndices, timestamp, true); - - if (runningAnimationIndicesMap_[viewTag].empty()) { - it = runningAnimationIndicesMap_.erase(it); - } else { - ++it; - } - } -} - -CSSAnimationsVector CSSAnimationsRegistry::buildAnimationsVector( - jsi::Runtime &rt, - const std::shared_ptr &shadowNode, - const std::optional> &animationNames, - const std::optional &newAnimations) const { - const auto registryIt = registry_.find(shadowNode->getTag()); - - // If animationNames has no value, that means no animations were added, - // removed or reordered, so we can return the current animations vector from - // the registry - if (!animationNames.has_value()) { - if (registryIt != registry_.end()) { - return std::move(registryIt->second.animationsVector); - } - } - - CSSAnimationsVector animationsVector; - const auto &animationNamesVector = animationNames.value(); - const auto animationNamesSize = animationNamesVector.size(); - animationsVector.reserve(animationNamesSize); - - std::unordered_map oldAnimationsMap; - CSSAnimationsMap emptyAnimationsMap; - const auto &newAnimationsMap = newAnimations.value_or(emptyAnimationsMap); - - if (registryIt != registry_.end()) { - const auto &oldAnimations = registryIt->second.animationsVector; - - // Fill the map while maintaining reverse order (for quick pop from the end) - for (auto it = oldAnimations.rbegin(); it != oldAnimations.rend(); ++it) { - oldAnimationsMap[(*it)->getName()].emplace_back(*it); - } - } - - for (size_t i = 0; i < animationNamesSize; ++i) { - const auto &newAnimationIt = newAnimationsMap.find(i); - if (newAnimationIt != newAnimationsMap.end()) { - animationsVector.emplace_back(newAnimationIt->second); - continue; - } - - const auto &name = animationNamesVector[i]; - const auto &oldAnimationIt = oldAnimationsMap.find(name); - - if (oldAnimationIt == oldAnimationsMap.end()) { - throw std::runtime_error( - "[Reanimated] There is no animation with name " + name + - " available to use at index " + std::to_string(i)); - } - - animationsVector.emplace_back(oldAnimationIt->second.back()); - oldAnimationIt->second.pop_back(); - - if (oldAnimationIt->second.empty()) { - oldAnimationsMap.erase(oldAnimationIt); - } - } - - return animationsVector; -} - -CSSAnimationsRegistry::AnimationToIndexMap -CSSAnimationsRegistry::buildAnimationToIndexMap( - const CSSAnimationsVector &animationsVector) const { - AnimationToIndexMap animationToIndexMap; - - for (size_t i = 0; i < animationsVector.size(); ++i) { - animationToIndexMap[animationsVector[i]] = i; - } - - return animationToIndexMap; -} - -void CSSAnimationsRegistry::updateAnimationSettings( - const CSSAnimationsVector &animationsVector, - const CSSAnimationSettingsUpdatesMap &settingsUpdates, - const double timestamp) { - for (size_t i = 0; i < animationsVector.size(); ++i) { - const auto &animation = animationsVector[i]; - const auto it = settingsUpdates.find(i); - if (it != settingsUpdates.end()) { - animation->updateSettings(it->second, timestamp); - } - } -} - -void CSSAnimationsRegistry::updateViewAnimations( - const Tag viewTag, - const std::vector &animationIndices, - const double timestamp, - const bool addToBatch) { - folly::dynamic result = folly::dynamic::object; - std::shared_ptr shadowNode = nullptr; - bool hasUpdates = false; - - for (const auto animationIndex : animationIndices) { - const auto &animation = registry_[viewTag].animationsVector[animationIndex]; - if (!shadowNode) { - shadowNode = animation->getShadowNode(); - } - if (animation->getState(timestamp) == AnimationProgressState::Pending) { - animation->run(timestamp); - } - - bool updatesAddedToBatch = false; - const auto updates = animation->update(timestamp); - const auto newState = animation->getState(timestamp); - - if (newState == AnimationProgressState::Finished) { - // Revert changes applied during animation if there is no forwards fill - // mode - if (addToBatch && !animation->hasForwardsFillMode()) { - // We also have to manually commit style values - // reverting the changes applied by the animation. - hasUpdates = - addStyleUpdates(result, animation->getResetStyle(), false) || - hasUpdates; - updatesAddedToBatch = true; - // We want to remove style changes applied by the animation that is - // finished and has no forwards fill mode. We cannot simply remove - // properties from the style in the registry as it may be overridden - // by the next animation. Instead, we are creating the new style - // object without reverted (finished without forwards fill mode) - // animations. - animationsToRevertMap_[viewTag].insert(animationIndex); - } - } - - if (addToBatch && !updatesAddedToBatch) { - hasUpdates = addStyleUpdates(result, updates, true) || hasUpdates; - } - if (newState != AnimationProgressState::Running) { - runningAnimationIndicesMap_[viewTag].erase(animationIndex); - } - } - - if (hasUpdates) { - addUpdatesToBatch(shadowNode, result); - } -} - -void CSSAnimationsRegistry::scheduleOrActivateAnimation( - const size_t animationIndex, - const std::shared_ptr &animation, - const double timestamp) { - // Remove the animation from delayed (if it is already added to - // delayed animations) - delayedAnimationsManager_.remove(animation); - - const auto startTimestamp = animation->getStartTimestamp(timestamp); - - if (startTimestamp > timestamp) { - // If the animation is delayed, schedule it for activation - // (Only if it isn't paused) - if (animation->getState(timestamp) != AnimationProgressState::Paused) { - delayedAnimationsManager_.add(startTimestamp, animation); - } - } else { - const auto viewTag = animation->getShadowNode()->getTag(); - runningAnimationIndicesMap_[viewTag].insert(animationIndex); - } -} - -void CSSAnimationsRegistry::removeViewAnimations(const Tag viewTag) { - const auto it = registry_.find(viewTag); - if (it == registry_.end()) { - return; - } - - for (const auto &animation : it->second.animationsVector) { - delayedAnimationsManager_.remove(animation); - } - runningAnimationIndicesMap_.erase(viewTag); -} - -void CSSAnimationsRegistry::applyViewAnimationsStyle( - const Tag viewTag, - const double timestamp) { - const auto it = registry_.find(viewTag); - // Remove the style from the registry if there are no animations for the view - if (it == registry_.end() || it->second.animationsVector.empty()) { - removeFromUpdatesRegistry(viewTag); - return; - } - - folly::dynamic updatedStyle = folly::dynamic::object; - std::shared_ptr shadowNode = nullptr; - - for (const auto &animation : it->second.animationsVector) { - const auto startTimestamp = animation->getStartTimestamp(timestamp); - - folly::dynamic style; - const auto ¤tState = animation->getState(timestamp); - if (startTimestamp > timestamp && animation->hasBackwardsFillMode()) { - style = animation->getBackwardsFillStyle(); - } else if ( - currentState == AnimationProgressState::Running || - // Animation is paused after start (was running before) - (currentState == AnimationProgressState::Paused && - timestamp >= animation->getStartTimestamp(timestamp)) || - // Animation is finished and has fill forwards fill mode - (currentState == AnimationProgressState::Finished && - animation->hasForwardsFillMode())) { - style = animation->getCurrentInterpolationStyle(); - } - - if (!shadowNode) { - shadowNode = animation->getShadowNode(); - } - if (style.isObject()) { - updatedStyle.update(style); - } - } - - setInUpdatesRegistry(shadowNode, updatedStyle); -} - -void CSSAnimationsRegistry::activateDelayedAnimations(const double timestamp) { - while (!delayedAnimationsManager_.empty() && - delayedAnimationsManager_.top().timestamp <= timestamp) { - const auto [_, animation] = delayedAnimationsManager_.pop(); - const auto viewTag = animation->getShadowNode()->getTag(); - - // Add only these animations which weren't removed in the meantime - if (registry_.find(viewTag) == registry_.end()) { - continue; - } - - const auto &animationToIndexMap = registry_[viewTag].animationToIndexMap; - if (animationToIndexMap.find(animation) == animationToIndexMap.end()) { - continue; - } - - const auto animationIndex = animationToIndexMap.at(animation); - runningAnimationIndicesMap_[viewTag].insert(animationIndex); - } -} - -void CSSAnimationsRegistry::handleAnimationsToRevert(const double timestamp) { - for (const auto &[viewTag, _] : animationsToRevertMap_) { - applyViewAnimationsStyle(viewTag, timestamp); - } - animationsToRevertMap_.clear(); -} - -bool CSSAnimationsRegistry::addStyleUpdates( - folly::dynamic &target, - const folly::dynamic &updates, - bool shouldOverride) { - if (!updates.isObject()) { - return false; - } - - bool hasUpdates = false; - for (const auto &[propertyName, propertyValue] : updates.items()) { - if (shouldOverride || !target.count(propertyName) || - target[propertyName].isNull()) { - target[propertyName] = propertyValue; - hasUpdates = true; - } - } - - return hasUpdates; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.h deleted file mode 100644 index c9330a12..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSAnimationsRegistry.h +++ /dev/null @@ -1,95 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace reanimated::css { - -using CSSAnimationsMap = - std::unordered_map>; -using CSSAnimationsVector = std::vector>; - -class CSSAnimationsRegistry - : public UpdatesRegistry, - std::enable_shared_from_this { - public: - using SettingsUpdates = - std::vector>; - - bool isEmpty() const override; - bool hasUpdates() const; - - void apply( - jsi::Runtime &rt, - const std::shared_ptr &shadowNode, - const std::optional> &animationNames, - const CSSAnimationsMap &newAnimations, - const CSSAnimationSettingsUpdatesMap &settingsUpdates, - double timestamp); - void remove(Tag viewTag) override; - - void update(double timestamp); - - private: - using AnimationToIndexMap = - std::unordered_map, size_t>; - using RunningAnimationIndicesMap = std::unordered_map>; - using AnimationsToRevertMap = - std::unordered_map>; - struct RegistryEntry { - const CSSAnimationsVector animationsVector; - const AnimationToIndexMap animationToIndexMap; - }; - - using Registry = std::unordered_map; - - Registry registry_; - - RunningAnimationIndicesMap runningAnimationIndicesMap_; - AnimationsToRevertMap animationsToRevertMap_; - DelayedItemsManager> delayedAnimationsManager_; - - CSSAnimationsVector buildAnimationsVector( - jsi::Runtime &rt, - const std::shared_ptr &shadowNode, - const std::optional> &animationNames, - const std::optional &newAnimations) const; - AnimationToIndexMap buildAnimationToIndexMap( - const CSSAnimationsVector &animationsVector) const; - void updateAnimationSettings( - const CSSAnimationsVector &animationsVector, - const CSSAnimationSettingsUpdatesMap &settingsUpdates, - double timestamp); - - void updateViewAnimations( - Tag viewTag, - const std::vector &animationIndices, - double timestamp, - bool addToBatch); - void scheduleOrActivateAnimation( - size_t animationIndex, - const std::shared_ptr &animation, - double timestamp); - void removeViewAnimations(Tag viewTag); - void applyViewAnimationsStyle(Tag viewTag, double timestamp); - void activateDelayedAnimations(double timestamp); - void handleAnimationsToRevert(double timestamp); - - static bool addStyleUpdates( - folly::dynamic &target, - const folly::dynamic &updates, - bool shouldOverride); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.cpp deleted file mode 100644 index 630ee3fa..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include - -namespace reanimated::css { - -CSSKeyframesRegistry::CSSKeyframesRegistry( - const std::shared_ptr &viewStylesRepository) - : viewStylesRepository_(viewStylesRepository) {} - -const CSSKeyframesConfig &CSSKeyframesRegistry::get( - const std::string &animationName, - const std::string &componentName) { - const auto ®istryIt = registry_.find(animationName); - if (registryIt == registry_.end()) { - throw std::runtime_error( - "[Reanimated] No keyframes with name `" + animationName + - "` were registered"); - } - - const auto &keyframesByComponentName = registryIt->second; - const auto &keyframesByComponentNameIt = - keyframesByComponentName.find(componentName); - if (keyframesByComponentNameIt == keyframesByComponentName.end()) { - throw std::runtime_error( - "[Reanimated] No keyframes with name `" + animationName + - "` were registered for component `" + componentName + "`"); - } - - return keyframesByComponentNameIt->second; -} - -void CSSKeyframesRegistry::set( - const std::string &animationName, - const std::string &componentName, - CSSKeyframesConfig &&config) { - registry_[animationName][componentName] = std::move(config); -} - -void CSSKeyframesRegistry::remove( - const std::string &animationName, - const std::string &componentName) { - registry_[animationName].erase(componentName); - if (registry_[animationName].empty()) { - registry_.erase(animationName); - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.h deleted file mode 100644 index c253890c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated::css { - -class CSSKeyframesRegistry { - public: - CSSKeyframesRegistry( - const std::shared_ptr &viewStylesRepository); - - const CSSKeyframesConfig &get( - const std::string &animationName, - const std::string &componentName); - void set( - const std::string &animationName, - const std::string &componentName, - CSSKeyframesConfig &&config); - void remove( - const std::string &animationName, - const std::string &componentName); - - private: - using ConfigsByComponentName = - std::unordered_map; - - std::unordered_map registry_; - const std::shared_ptr viewStylesRepository_; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.cpp deleted file mode 100644 index 14c98c2b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include - -namespace reanimated::css { - -CSSTransitionsRegistry::CSSTransitionsRegistry( - const std::shared_ptr &staticPropsRegistry, - const GetAnimationTimestampFunction &getCurrentTimestamp) - : getCurrentTimestamp_(getCurrentTimestamp), - staticPropsRegistry_(staticPropsRegistry) {} - -bool CSSTransitionsRegistry::isEmpty() const { - // The registry is empty if has no registered animations and no updates - // stored in the updates registry - return UpdatesRegistry::isEmpty() && registry_.empty(); -} - -bool CSSTransitionsRegistry::hasUpdates() const { - return !runningTransitionTags_.empty() || !delayedTransitionsManager_.empty(); -} - -void CSSTransitionsRegistry::add( - const std::shared_ptr &transition) { - const auto &shadowNode = transition->getShadowNode(); - const auto viewTag = shadowNode->getTag(); - - registry_.insert({viewTag, transition}); - PropsObserver observer = createPropsObserver(viewTag); - staticPropsRegistry_->setObserver(viewTag, std::move(observer)); -} - -void CSSTransitionsRegistry::remove(const Tag viewTag) { - removeFromUpdatesRegistry(viewTag); - staticPropsRegistry_->removeObserver(viewTag); - delayedTransitionsManager_.remove(viewTag); - runningTransitionTags_.erase(viewTag); - registry_.erase(viewTag); -} - -void CSSTransitionsRegistry::updateSettings( - const Tag viewTag, - const PartialCSSTransitionConfig &config) { - const auto &transition = registry_[viewTag]; - transition->updateSettings(config); - - // Replace style overrides with the new ones if transition properties were - // updated (we want to keep overrides only for transitioned properties) - if (config.properties.has_value()) { - updateInUpdatesRegistry( - transition, transition->getCurrentInterpolationStyle()); - } -} - -void CSSTransitionsRegistry::update(const double timestamp) { - // Activate all delayed transitions that should start now - activateDelayedTransitions(timestamp); - - // Iterate over active transitions and update them - for (auto it = runningTransitionTags_.begin(); - it != runningTransitionTags_.end();) { - const auto &viewTag = *it; - const auto &transition = registry_[viewTag]; - - const folly::dynamic &updates = transition->update(timestamp); - if (!updates.empty()) { - addUpdatesToBatch(transition->getShadowNode(), updates); - } - - // We remove transition from running and schedule it when animation of one - // of properties has finished and the other one is still delayed - const auto &minDelay = transition->getMinDelay(timestamp); - if (minDelay > 0) { - delayedTransitionsManager_.add( - timestamp + transition->getMinDelay(timestamp), viewTag); - } - - if (transition->getState() != TransitionProgressState::Running) { - it = runningTransitionTags_.erase(it); - } else { - ++it; - } - } -} - -void CSSTransitionsRegistry::activateDelayedTransitions( - const double timestamp) { - while (!delayedTransitionsManager_.empty() && - delayedTransitionsManager_.top().timestamp <= timestamp) { - const auto [_, viewTag] = delayedTransitionsManager_.pop(); - - // Add only these transitions which weren't removed in the meantime - if (registry_.find(viewTag) != registry_.end()) { - runningTransitionTags_.insert(viewTag); - } - } -} - -void CSSTransitionsRegistry::scheduleOrActivateTransition( - const std::shared_ptr &transition) { - const auto viewTag = transition->getViewTag(); - const auto currentTimestamp = getCurrentTimestamp_(); - const auto minDelay = transition->getMinDelay(currentTimestamp); - - // Remove transition from delayed (if it is already added to delayed - // transitions) - delayedTransitionsManager_.remove(viewTag); - - if (minDelay > 0) { - delayedTransitionsManager_.add(currentTimestamp + minDelay, viewTag); - } else { - runningTransitionTags_.insert(viewTag); - } -} - -PropsObserver CSSTransitionsRegistry::createPropsObserver(const Tag viewTag) { - return [weakThis = weak_from_this(), viewTag]( - const folly::dynamic &oldProps, const folly::dynamic &newProps) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - const auto &transition = strongThis->registry_[viewTag]; - const auto allowedProperties = - transition->getAllowedProperties(oldProps, newProps); - - const auto changedProps = - getChangedProps(oldProps, newProps, allowedProperties); - - if (changedProps.changedPropertyNames.empty()) { - return; - } - - { - std::lock_guard lock{strongThis->mutex_}; - - const auto &shadowNode = transition->getShadowNode(); - const auto &lastUpdates = - strongThis->getUpdatesFromRegistry(shadowNode->getTag()); - const auto &transitionStartStyle = transition->run( - changedProps, lastUpdates, strongThis->getCurrentTimestamp_()); - strongThis->updateInUpdatesRegistry(transition, transitionStartStyle); - strongThis->scheduleOrActivateTransition(transition); - } - }; -} - -void CSSTransitionsRegistry::updateInUpdatesRegistry( - const std::shared_ptr &transition, - const folly::dynamic &updates) { - const auto &shadowNode = transition->getShadowNode(); - const auto &lastUpdates = getUpdatesFromRegistry(shadowNode->getTag()); - const auto &transitionProperties = transition->getProperties(); - - folly::dynamic filteredUpdates = folly::dynamic::object; - - if (!transitionProperties.has_value()) { - // If transitionProperty is set to 'all' (optional has no value), we have - // to keep the result of the previous transition updated with the new - // transition starting values - if (!lastUpdates.empty()) { - filteredUpdates = lastUpdates; - } - } else if (!lastUpdates.empty()) { - // Otherwise, we keep only allowed properties from the last updates - // and update the object with the new transition starting values - for (const auto &prop : transitionProperties.value()) { - if (lastUpdates.count(prop)) { - filteredUpdates[prop] = lastUpdates[prop]; - } - } - } - - // updates object contains only allowed properties so we don't need - // to do additional filtering here - filteredUpdates.update(updates); - setInUpdatesRegistry(shadowNode, filteredUpdates); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.h deleted file mode 100644 index c0aa7a61..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/CSSTransitionsRegistry.h +++ /dev/null @@ -1,56 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -namespace reanimated::css { - -class CSSTransitionsRegistry - : public UpdatesRegistry, - public std::enable_shared_from_this { - public: - CSSTransitionsRegistry( - const std::shared_ptr &staticPropsRegistry, - const GetAnimationTimestampFunction &getCurrentTimestamp); - - bool isEmpty() const override; - bool hasUpdates() const; - - void add(const std::shared_ptr &transition); - void updateSettings(Tag viewTag, const PartialCSSTransitionConfig &config); - void remove(Tag viewTag) override; - - void update(double timestamp); - - private: - using Registry = std::unordered_map>; - - const GetAnimationTimestampFunction &getCurrentTimestamp_; - const std::shared_ptr staticPropsRegistry_; - - Registry registry_; - - std::unordered_set runningTransitionTags_; - DelayedItemsManager delayedTransitionsManager_; - - void activateDelayedTransitions(double timestamp); - void scheduleOrActivateTransition( - const std::shared_ptr &transition); - PropsObserver createPropsObserver(Tag viewTag); - void updateInUpdatesRegistry( - const std::shared_ptr &transition, - const folly::dynamic &updates); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.cpp deleted file mode 100644 index a9a83b33..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include - -#include - -namespace reanimated::css { - -void StaticPropsRegistry::set( - jsi::Runtime &rt, - const Tag viewTag, - const jsi::Value &props) { - if (props.isNull() || props.isUndefined()) { - remove(viewTag); - } else { - const auto newProps = dynamicFromValue(rt, props); - if (has(viewTag)) { - notifyObservers(viewTag, get(viewTag), newProps); - } - registry_[viewTag] = newProps; - } -} - -folly::dynamic StaticPropsRegistry::get(const Tag viewTag) const { - auto it = registry_.find(viewTag); - if (it == registry_.end()) { - return nullptr; - } - return it->second; -} - -bool StaticPropsRegistry::has(const Tag viewTag) const { - return registry_.find(viewTag) != registry_.end(); -} - -void StaticPropsRegistry::remove(const Tag viewTag) { - registry_.erase(viewTag); -} - -bool StaticPropsRegistry::isEmpty() const { - return registry_.empty() && observers_.empty(); -} - -bool StaticPropsRegistry::hasObservers(const Tag viewTag) const { - return observers_.find(viewTag) != observers_.end(); -} - -void StaticPropsRegistry::setObserver( - const Tag viewTag, - PropsObserver observer) { - observers_[viewTag] = std::move(observer); -} - -void StaticPropsRegistry::removeObserver(const Tag viewTag) { - observers_.erase(viewTag); -} - -void StaticPropsRegistry::notifyObservers( - const Tag viewTag, - const folly::dynamic &oldProps, - const folly::dynamic &newProps) { - auto observerIt = observers_.find(viewTag); - if (observerIt != observers_.end()) { - observerIt->second(oldProps, newProps); - } -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.h deleted file mode 100644 index 2b148153..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/registries/StaticPropsRegistry.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -using namespace facebook; -using namespace react; - -using PropsObserver = std::function< - void(const folly::dynamic &oldProps, const folly::dynamic &newProps)>; - -class StaticPropsRegistry { - public: - void set(jsi::Runtime &rt, Tag viewTag, const jsi::Value &props); - folly::dynamic get(Tag viewTag) const; - bool has(Tag viewTag) const; - void remove(Tag viewTag); - bool isEmpty() const; - - bool hasObservers(Tag viewTag) const; - void setObserver(Tag viewTag, PropsObserver observer); - void removeObserver(Tag viewTag); - - private: - std::unordered_map registry_; - std::unordered_map observers_; - - void notifyObservers( - Tag viewTag, - const folly::dynamic &oldProps, - const folly::dynamic &newProps); -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGLength.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGLength.cpp deleted file mode 100644 index c4697dfb..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGLength.cpp +++ /dev/null @@ -1,107 +0,0 @@ -#include - -namespace reanimated::css { - -SVGLength::SVGLength() : value(0), isPercentage(false) {} - -SVGLength::SVGLength(const double value) : value(value), isPercentage(false) {} - -SVGLength::SVGLength(const double value, const bool isPercentage) - : value(value), isPercentage(isPercentage) {} - -SVGLength::SVGLength(const char *value) { - if (!canConstruct(value)) { - throw std::invalid_argument( - "[Reanimated] SVGLength: Invalid value: " + std::string(value)); - } - - std::string str = value; - str.pop_back(); - this->value = std::stod(str) / 100; - this->isPercentage = true; -} - -SVGLength::SVGLength(jsi::Runtime &rt, const jsi::Value &jsiValue) { - if (jsiValue.isNumber()) { - this->value = jsiValue.asNumber(); - this->isPercentage = false; - } else if (jsiValue.isString()) { - std::string strValue = jsiValue.asString(rt).utf8(rt); - *this = SVGLength(strValue); // Delegate to the string constructor - } else { - throw std::runtime_error("[Reanimated] SVGLength: Unsupported value type"); - } -} - -SVGLength::SVGLength(const folly::dynamic &value) { - if (value.isNumber()) { - this->value = value.getDouble(); - this->isPercentage = false; - } else if (value.isString()) { - std::string strValue = value.getString(); - *this = SVGLength(strValue.c_str()); // Delegate to the string constructor - } else { - throw std::runtime_error("[Reanimated] SVGLength: Unsupported value type"); - } -} - -bool SVGLength::canConstruct(const std::string &value) { - return !value.empty() && value.back() == '%'; -} - -bool SVGLength::canConstruct(const char *value) { - return canConstruct(std::string(value)); -} - -bool SVGLength::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) { - return jsiValue.isNumber() || - (jsiValue.isString() && canConstruct(jsiValue.getString(rt).utf8(rt))); -} - -bool SVGLength::canConstruct(const folly::dynamic &value) { - return value.isNumber() || - (value.isString() && canConstruct(value.getString())); -} - -folly::dynamic SVGLength::toDynamic() const { - if (isPercentage) { - return std::to_string(value * 100) + "%"; - } - return value; -} - -std::string SVGLength::toString() const { - if (isPercentage) { - return std::to_string(value * 100) + "%"; - } - return std::to_string(value); -} - -SVGLength SVGLength::interpolate(const double progress, const SVGLength &to) - const { - // We can interpolate SVG length values only if both values are percentages or - // both are numbers. In other cases, we interpolate them as keywords. - if ((isPercentage == to.isPercentage) || (isPercentage && to.value == 0) || - (to.isPercentage && value == 0)) { - return SVGLength( - value + (to.value - value) * progress, isPercentage || to.isPercentage); - } - - // Otherwise, we interpolate values as discrete values - return progress < 0.5 ? *this : to; -} - -bool SVGLength::operator==(const SVGLength &other) const { - return value == other.value && isPercentage == other.isPercentage; -} - -#ifndef NDEBUG - -std::ostream &operator<<(std::ostream &os, const SVGLength &value) { - os << "SVGLength(" << value.toString() << ")"; - return os; -} - -#endif // NDEBUG - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGLength.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGLength.h deleted file mode 100644 index 421de886..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGLength.h +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated::css { - -struct SVGLength : public CSSSimpleValue { - double value; - bool isPercentage; - - SVGLength(); - explicit SVGLength(double value); - explicit SVGLength(double value, bool isPercentage); - explicit SVGLength(const char *value); - explicit SVGLength(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit SVGLength(const folly::dynamic &value); - - static bool canConstruct(const std::string &value); - static bool canConstruct(const char *value); - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - SVGLength interpolate(double progress, const SVGLength &to) const override; - - bool operator==(const SVGLength &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<(std::ostream &os, const SVGLength &dimension); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.cpp deleted file mode 100644 index 31b5f161..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.cpp +++ /dev/null @@ -1,119 +0,0 @@ -#include - -namespace reanimated::css { - -SVGStrokeDashArray::SVGStrokeDashArray() : values() {} - -SVGStrokeDashArray::SVGStrokeDashArray(const std::vector &values) - : values(values) {} - -SVGStrokeDashArray::SVGStrokeDashArray( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - const auto &array = jsiValue.asObject(rt).asArray(rt); - const auto arraySize = array.size(rt); - values.reserve(arraySize); - for (size_t i = 0; i < arraySize; ++i) { - values.emplace_back(rt, array.getValueAtIndex(rt, i)); - } -} - -SVGStrokeDashArray::SVGStrokeDashArray(const folly::dynamic &value) { - for (const auto &value : value) { - values.emplace_back(value); - } -} - -bool SVGStrokeDashArray::canConstruct( - jsi::Runtime &rt, - const jsi::Value &jsiValue) { - if (!jsiValue.isObject() || !jsiValue.asObject(rt).isArray(rt)) { - return false; - } - const auto &array = jsiValue.asObject(rt).asArray(rt); - for (size_t i = 0; i < array.size(rt); ++i) { - if (!SVGLength::canConstruct(rt, array.getValueAtIndex(rt, i))) { - return false; - } - } - return true; -} - -bool SVGStrokeDashArray::canConstruct(const folly::dynamic &value) { - return value.isArray() && - std::all_of(value.begin(), value.end(), [](const auto &value) { - return SVGLength::canConstruct(value); - }); -} - -folly::dynamic SVGStrokeDashArray::toDynamic() const { - folly::dynamic array = folly::dynamic::array; - array.reserve(values.size()); - for (const auto &value : values) { - array.push_back(value.toDynamic()); - } - return array; -} - -std::string SVGStrokeDashArray::toString() const { - std::stringstream ss; - ss << "{"; - for (const auto &value : values) { - ss << value.toString(); - if (&value != &values.back()) { - ss << ", "; - } - } - ss << "}"; - return ss.str(); -} - -SVGStrokeDashArray SVGStrokeDashArray::interpolate( - double progress, - const SVGStrokeDashArray &to) const { - std::vector result; - auto fromValues = values; - auto toValues = to.values; - - // If one of the arrays is empty, we take the fist value from the second - // one and put it as the only element of the first (empty) array - // (this is how it works on the web) - if (fromValues.size() == 0 && toValues.size() > 0) { - fromValues = {toValues[0]}; - } - if (toValues.size() == 0 && fromValues.size() > 0) { - toValues = {fromValues[0]}; - } - - const auto fromSize = fromValues.size(); - const auto toSize = toValues.size(); - - // We need to find the least common multiple of the two arrays to get - // a smooth interpolation of the dash array pattern - const auto resultSize = std::lcm(fromSize, toSize); - result.reserve(resultSize); - - for (size_t i = 0; i < resultSize; i++) { - result.emplace_back( - fromValues[i % fromSize].interpolate(progress, toValues[i % toSize])); - } - - return SVGStrokeDashArray(result); -} - -bool SVGStrokeDashArray::operator==(const SVGStrokeDashArray &other) const { - return values == other.values; -} - -#ifndef NDEBUG - -std::ostream &operator<<( - std::ostream &os, - const SVGStrokeDashArray &strokeDashArray) { - os << "SVGStrokeDashArray(" << strokeDashArray.toString() << ")"; - return os; -} - -#endif // NDEBUG - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.h deleted file mode 100644 index 79388d23..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.h +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include - -#include -#include -#include - -namespace reanimated::css { - -struct SVGStrokeDashArray : public CSSSimpleValue { - std::vector values; - - SVGStrokeDashArray(); - explicit SVGStrokeDashArray(const std::vector &values); - explicit SVGStrokeDashArray(jsi::Runtime &rt, const jsi::Value &jsiValue); - explicit SVGStrokeDashArray(const folly::dynamic &value); - - static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue); - static bool canConstruct(const folly::dynamic &value); - - folly::dynamic toDynamic() const override; - std::string toString() const override; - SVGStrokeDashArray interpolate(double progress, const SVGStrokeDashArray &to) - const override; - - bool operator==(const SVGStrokeDashArray &other) const; - -#ifndef NDEBUG - friend std::ostream &operator<<( - std::ostream &os, - const SVGStrokeDashArray &strokeDashArray); -#endif // NDEBUG -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.cpp deleted file mode 100644 index fbb9dba1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include - -namespace reanimated::css { - -template -DelayedItem::DelayedItem(const double timestamp, const TValue value) - : timestamp(timestamp), value(value) {} - -template -bool DelayedItemComparator::operator()( - const DelayedItem &lhs, - const DelayedItem &rhs) const { - if (lhs.timestamp == rhs.timestamp) { - // Use address comparison as a tiebreaker when timestamps are equal - return std::less{}(&lhs.value, &rhs.value); - } - return lhs.timestamp < rhs.timestamp; -} - -template -void DelayedItemsManager::add( - const double timestamp, - const TValue value) { - auto result = itemsSet_.emplace(timestamp, value); - if (result.second) { - itemsMap_[result.first->value] = result.first; - } -} - -template -typename DelayedItemsManager::Item DelayedItemsManager::pop() { - if (itemsSet_.empty()) { - throw std::runtime_error("[Reanimated] No delayed items available to pop"); - } - auto it = itemsSet_.begin(); - Item result = std::move(*it); - itemsMap_.erase(it->value); - itemsSet_.erase(it); - return result; -} - -template -bool DelayedItemsManager::remove(const TValue value) { - auto it = itemsMap_.find(value); - - if (it == itemsMap_.end()) { - return false; - } - - itemsSet_.erase(it->second); - itemsMap_.erase(it); - return true; -} - -template -const typename DelayedItemsManager::Item & -DelayedItemsManager::top() const { - if (itemsSet_.empty()) { - throw std::runtime_error("[Reanimated] No delayed items available"); - } - return *itemsSet_.begin(); -} - -template -bool DelayedItemsManager::empty() const { - return itemsSet_.empty(); -} - -template -size_t DelayedItemsManager::size() const { - return itemsSet_.size(); -} - -// Declare the types that will be used in the DelayedItemsManager class -template class DelayedItemsManager>; -template class DelayedItemsManager; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.h deleted file mode 100644 index 5f6292bf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/DelayedItemsManager.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include - -#include -#include -#include -#include -#include -#include - -namespace reanimated::css { - -template -struct DelayedItem { - const double timestamp; - const TValue value; - - DelayedItem(double timestamp, TValue value); -}; - -template -struct DelayedItemComparator { - bool operator()( - const DelayedItem &lhs, - const DelayedItem &rhs) const; -}; - -template -class DelayedItemsManager { - using Item = DelayedItem; - using ItemSet = std::set>; - using ItemMap = std::unordered_map; - - ItemSet itemsSet_; - ItemMap itemsMap_; - - public: - void add(double timestamp, TValue value); - Item pop(); - bool remove(TValue value); - const Item &top() const; - bool empty() const; - size_t size() const; -}; - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/algorithms.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/algorithms.cpp deleted file mode 100644 index 82562f61..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/algorithms.cpp +++ /dev/null @@ -1,10 +0,0 @@ -#include - -namespace reanimated::css { - -size_t firstSmallerOrEqual(const double x, const std::vector &arr) { - auto it = std::upper_bound(arr.begin(), arr.end(), x); - return it == arr.begin() ? 0 : std::distance(arr.begin(), --it); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/algorithms.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/algorithms.h deleted file mode 100644 index 1221ae36..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/algorithms.h +++ /dev/null @@ -1,10 +0,0 @@ -#pragma once - -#include -#include - -namespace reanimated::css { - -size_t firstSmallerOrEqual(double x, const std::vector &arr); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/interpolators.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/interpolators.cpp deleted file mode 100644 index 971bb93f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/interpolators.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include - -namespace reanimated::css { - -std::shared_ptr createPropertyInterpolator( - const std::string &propertyName, - const PropertyPath &propertyPath, - const InterpolatorFactoriesRecord &factories, - const std::shared_ptr &viewStylesRepository) { - auto it = factories.find(propertyName); - - if (it == factories.cend()) { - throw std::invalid_argument( - "[Reanimated] No interpolator factory found for property: " + - propertyName); - } - - PropertyPath newPath = propertyPath; - newPath.emplace_back(propertyName); - - return it->second->create(newPath, viewStylesRepository); -} - -std::shared_ptr createPropertyInterpolator( - size_t arrayIndex, - const PropertyPath &propertyPath, - const InterpolatorFactoriesArray &factories, - const std::shared_ptr &viewStylesRepository) { - PropertyPath newPath = propertyPath; - newPath.emplace_back(std::to_string(arrayIndex)); - - return factories[arrayIndex % factories.size()]->create( - newPath, viewStylesRepository); -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/interpolators.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/interpolators.h deleted file mode 100644 index 01a22ea2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/interpolators.h +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include - -#include -#include -#include - -namespace reanimated::css { - -std::shared_ptr createPropertyInterpolator( - const std::string &propertyName, - const PropertyPath &propertyPath, - const InterpolatorFactoriesRecord &factories, - const std::shared_ptr &viewStylesRepository); - -std::shared_ptr createPropertyInterpolator( - size_t arrayIndex, - const PropertyPath &propertyPath, - const InterpolatorFactoriesArray &factories, - const std::shared_ptr &viewStylesRepository); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/keyframes.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/keyframes.cpp deleted file mode 100644 index 2ffe8d26..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/keyframes.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include - -namespace reanimated::css { - -std::vector> parseJSIKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes) { - if (!keyframes.isObject() || !keyframes.asObject(rt).isArray(rt)) { - throw std::invalid_argument( - "[Reanimated] Keyframes must be an array of keyframe objects"); - } - - const auto keyframeArray = keyframes.asObject(rt).asArray(rt); - const auto keyframesCount = keyframeArray.size(rt); - - const auto getKeyframeAtIndexOffset = [&](size_t index) -> double { - return keyframeArray.getValueAtIndex(rt, index) - .asObject(rt) - .getProperty(rt, "offset") - .asNumber(); - }; - - const bool hasOffset0 = getKeyframeAtIndexOffset(0) == 0; - const bool hasOffset1 = getKeyframeAtIndexOffset(keyframesCount - 1) == 1; - - std::vector> result; - result.reserve(keyframesCount + (hasOffset0 ? 0 : 1) + (hasOffset1 ? 0 : 1)); - - // Insert the keyframe without value at offset 0 if it is not present - if (!hasOffset0) { - result.emplace_back(0.0, jsi::Value::undefined()); - } - - // Insert all provided keyframes - for (size_t i = 0; i < keyframesCount; ++i) { - jsi::Object keyframeObject = - keyframeArray.getValueAtIndex(rt, i).asObject(rt); - double offset = keyframeObject.getProperty(rt, "offset").asNumber(); - jsi::Value value = keyframeObject.getProperty(rt, "value"); - - result.emplace_back(offset, std::move(value)); - } - - // Insert the keyframe without value at offset 1 if it is not present - if (!hasOffset1) { - result.emplace_back(1.0, jsi::Value::undefined()); - } - - return result; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/keyframes.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/keyframes.h deleted file mode 100644 index d7842e6c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/keyframes.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -#include -#include -#include - -namespace reanimated::css { - -using namespace facebook; - -std::vector> parseJSIKeyframes( - jsi::Runtime &rt, - const jsi::Value &keyframes); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/props.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/props.cpp deleted file mode 100644 index 23fc27ea..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/props.cpp +++ /dev/null @@ -1,159 +0,0 @@ -#include - -namespace reanimated::css { - -bool isDiscreteProperty( - const std::string &propName, - const std::string &componentName) { - const auto &interpolators = getComponentInterpolators(componentName); - const auto it = interpolators.find(propName); - if (it == interpolators.end()) { - return false; - } - return it->second->isDiscreteProperty(); -} - -bool areArraysDifferentRecursive( - const folly::dynamic &oldArray, - const folly::dynamic &newArray) { - if (oldArray.size() != newArray.size()) { - return true; - } - - for (size_t i = 0; i < oldArray.size(); i++) { - const auto [oldChangedProp, newChangedProp] = - getChangedPropsRecursive(oldArray[i], newArray[i]); - - if (!oldChangedProp.isNull() || !newChangedProp.isNull()) { - return true; - } - } - - return false; -} - -std::pair getChangedPropsRecursive( - const folly::dynamic &oldProp, - const folly::dynamic &newProp) { - if (!oldProp.isObject() || !newProp.isObject()) { - // Primitive values comparison - if (oldProp != newProp) { - return {oldProp, newProp}; - } - return {folly::dynamic(), folly::dynamic()}; - } - - if (oldProp.isArray() && newProp.isArray()) { - // Arrays comparison - if (areArraysDifferentRecursive(oldProp, newProp)) { - return {oldProp, newProp}; - } - return {folly::dynamic(), folly::dynamic()}; - } - - folly::dynamic oldResult = folly::dynamic::object; - folly::dynamic newResult = folly::dynamic::object; - bool oldHasChanges = false; - bool newHasChanges = false; - - // Check for removed properties - for (const auto &item : oldProp.items()) { - const auto &propName = item.first.asString(); - if (!newProp.count(propName)) { - const auto &oldValue = item.second; - oldResult[propName] = oldValue; - oldHasChanges = true; - } - } - - // Check for new and changed properties - for (const auto &item : newProp.items()) { - const auto &propName = item.first.asString(); - const auto &newValue = item.second; - - if (oldProp.count(propName)) { - const auto &oldValue = oldProp[propName]; - auto [oldChangedProp, newChangedProp] = - getChangedPropsRecursive(oldValue, newValue); - - if (!oldChangedProp.isNull() && !newChangedProp.isNull()) { - oldResult[propName] = std::move(oldChangedProp); - newResult[propName] = std::move(newChangedProp); - oldHasChanges = true; - newHasChanges = true; - } - } else { - newResult[propName] = newValue; - newHasChanges = true; - } - } - - return { - oldHasChanges ? std::move(oldResult) : folly::dynamic(), - newHasChanges ? std::move(newResult) : folly::dynamic()}; -} - -std::pair getChangedValueForProp( - const folly::dynamic &oldObject, - const folly::dynamic &newObject, - const std::string &propName) { - const bool oldHasProperty = oldObject.count(propName); - const bool newHasProperty = newObject.count(propName); - - if (oldHasProperty && newHasProperty) { - const auto &oldVal = oldObject[propName]; - const auto &newVal = newObject[propName]; - - if (oldVal.isObject() && newVal.isObject()) { - return getChangedPropsRecursive(oldVal, newVal); - } else if (oldVal != newVal) { - return {oldVal, newVal}; - } - - return {folly::dynamic(), folly::dynamic()}; - } - - if (oldHasProperty) { - const auto &oldVal = oldObject[propName]; - return {oldVal, folly::dynamic()}; - } else if (newHasProperty) { - const auto &newVal = newObject[propName]; - return {folly::dynamic(), newVal}; - } - - return {folly::dynamic(), folly::dynamic()}; -} - -ChangedProps getChangedProps( - const folly::dynamic &oldProps, - const folly::dynamic &newProps, - const PropertyNames &allowedProperties) { - folly::dynamic oldResult = folly::dynamic::object; - folly::dynamic newResult = folly::dynamic::object; - PropertyNames changedPropertyNames; - - for (const auto &propName : allowedProperties) { - auto [oldChangedProp, newChangedProp] = - getChangedValueForProp(oldProps, newProps, propName); - - const auto hasOldChangedProp = !oldChangedProp.isNull(); - const auto hasNewChangedProp = !newChangedProp.isNull(); - - if (hasOldChangedProp) { - oldResult[propName] = std::move(oldChangedProp); - } - if (hasNewChangedProp) { - newResult[propName] = std::move(newChangedProp); - } - if (hasOldChangedProp || hasNewChangedProp) { - changedPropertyNames.push_back(propName); - } - } - - return { - std::move(oldResult), - std::move(newResult), - std::move(changedPropertyNames)}; -} - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/props.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/props.h deleted file mode 100644 index 9c1cecd1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/CSS/utils/props.h +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include -#include - -#include -#include -#include -#include -#include - -namespace reanimated::css { - -struct ChangedProps { - const folly::dynamic oldProps; - const folly::dynamic newProps; - const PropertyNames changedPropertyNames; -}; - -bool isDiscreteProperty( - const std::string &propName, - const std::string &componentName); - -// We need to specify it here because there are 2 methods referencing -// each other in the recursion and areArraysDifferentRecursive must be -// aware that getChangedPropsRecursive exists -std::pair getChangedPropsRecursive( - const folly::dynamic &oldProp, - const folly::dynamic &newProp); - -ChangedProps getChangedProps( - const folly::dynamic &oldProps, - const folly::dynamic &newProps, - const PropertyNames &allowedProperties); - -} // namespace reanimated::css diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.cpp deleted file mode 100644 index b2396c8f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.cpp +++ /dev/null @@ -1,102 +0,0 @@ -#include -#include -#include -#include - -#include - -#include -#include - -using namespace facebook::react; - -namespace reanimated { - -ReanimatedCommitHook::ReanimatedCommitHook( - const std::shared_ptr &uiManager, - const std::shared_ptr &updatesRegistryManager, - const std::shared_ptr &layoutAnimationsProxy) - : uiManager_(uiManager), - updatesRegistryManager_(updatesRegistryManager), - layoutAnimationsProxy_(layoutAnimationsProxy) { - uiManager_->registerCommitHook(*this); -} - -ReanimatedCommitHook::~ReanimatedCommitHook() noexcept { - uiManager_->unregisterCommitHook(*this); -} - -void ReanimatedCommitHook::maybeInitializeLayoutAnimations( - SurfaceId surfaceId) { - auto lock = std::unique_lock(mutex_); - if (surfaceId > currentMaxSurfaceId_) { - // when a new surfaceId is observed we call setMountingOverrideDelegate - // for all yet unseen surfaces - uiManager_->getShadowTreeRegistry().enumerate( - [strongThis = shared_from_this()]( - const ShadowTree &shadowTree, bool &stop) { - // Executed synchronously. - if (shadowTree.getSurfaceId() <= strongThis->currentMaxSurfaceId_) { - // the set function actually adds our delegate to a list, so we - // shouldn't invoke it twice for the same surface - return; - } - shadowTree.getMountingCoordinator()->setMountingOverrideDelegate( - strongThis->layoutAnimationsProxy_); - }); - currentMaxSurfaceId_ = surfaceId; - } -} - -RootShadowNode::Unshared ReanimatedCommitHook::shadowTreeWillCommit( - ShadowTree const &, - RootShadowNode::Shared const &, - RootShadowNode::Unshared const &newRootShadowNode -#if REACT_NATIVE_MINOR_VERSION >= 80 - , - const ShadowTreeCommitOptions &commitOptions -#endif - ) noexcept { - ReanimatedSystraceSection s("ReanimatedCommitHook::shadowTreeWillCommit"); - - maybeInitializeLayoutAnimations(newRootShadowNode->getSurfaceId()); - - auto reaShadowNode = - std::reinterpret_pointer_cast( - newRootShadowNode); - - if (reaShadowNode->hasReanimatedCommitTrait()) { - // ShadowTree commited by Reanimated, no need to apply updates from - // the updates registry manager - reaShadowNode->unsetReanimatedCommitTrait(); - reaShadowNode->setReanimatedMountTrait(); - return newRootShadowNode; - } - - // ShadowTree not commited by Reanimated, apply updates from the updates - // registry manager - reaShadowNode->unsetReanimatedMountTrait(); - RootShadowNode::Unshared rootNode = newRootShadowNode; - - { - auto lock = updatesRegistryManager_->lock(); - - PropsMap propsMap = updatesRegistryManager_->collectProps(); - updatesRegistryManager_->cancelCommitAfterPause(); - - rootNode = cloneShadowTreeWithNewProps(*rootNode, propsMap); - // If the commit comes from React Native then pause commits from - // Reanimated since the ShadowTree to be committed by Reanimated may not - // include the new changes from React Native yet and all changes of animated - // props will be applied in ReanimatedCommitHook by UpdatesRegistryManager - // This is very important, since if we didn't pause Reanimated commits, - // it could lead to RN commits being delayed until the animation is finished - // (very bad). We don't pause Reanimated commits for state updates coming - // from React Native as this would break sticky header animations. - updatesRegistryManager_->pauseReanimatedCommits(); - } - - return rootNode; -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.h deleted file mode 100644 index 1ca39bfe..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitHook.h +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include -#include - -#include - -#include - -using namespace facebook::react; - -namespace reanimated { - -class ReanimatedCommitHook - : public UIManagerCommitHook, - public std::enable_shared_from_this { - public: - ReanimatedCommitHook( - const std::shared_ptr &uiManager, - const std::shared_ptr &updatesRegistryManager, - const std::shared_ptr &layoutAnimationsProxy); - - ~ReanimatedCommitHook() noexcept override; - - void commitHookWasRegistered(UIManager const &) noexcept override {} - - void commitHookWasUnregistered(UIManager const &) noexcept override {} - - void maybeInitializeLayoutAnimations(SurfaceId surfaceId); - - RootShadowNode::Unshared shadowTreeWillCommit( - ShadowTree const &shadowTree, - RootShadowNode::Shared const &oldRootShadowNode, - RootShadowNode::Unshared const &newRootShadowNode -#if REACT_NATIVE_MINOR_VERSION >= 80 - , - const ShadowTreeCommitOptions &commitOptions -#endif - ) noexcept override; - - private: - std::shared_ptr uiManager_; - std::shared_ptr updatesRegistryManager_; - std::shared_ptr layoutAnimationsProxy_; - - SurfaceId currentMaxSurfaceId_ = -1; - - std::mutex mutex_; // Protects `currentMaxSurfaceId_`. -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitShadowNode.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitShadowNode.h deleted file mode 100644 index 52639215..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedCommitShadowNode.h +++ /dev/null @@ -1,46 +0,0 @@ -#pragma once - -#include - -using namespace facebook::react; - -namespace reanimated { - -// We use this trait to mark that a commit was created by Reanimated. -// Traits are copied when nodes are cloned, so this information -// won't be lost unless someone explicitly overrides it. -// We need this information to skip unnecessary updates in -// the commit hook. -// Currently RN traits go up to 10, so hopefully -// the arbitrarily chosen numbers 27 and 28 will be safe :) - -// We have to use 2 traits, because we want to distinguish reanimated -// commits both in the commit hook and mount hook. If we only had one trait -// and didn't remove it in the commit hook, then any node that would clone -// this node would also have our commit trait, rendering this trait useless. -constexpr ShadowNodeTraits::Trait ReanimatedCommitTrait{1 << 27}; -constexpr ShadowNodeTraits::Trait ReanimatedMountTrait{1 << 28}; - -class ReanimatedCommitShadowNode : public ShadowNode { - public: - inline void setReanimatedCommitTrait() { - traits_.set(ReanimatedCommitTrait); - } - inline void unsetReanimatedCommitTrait() { - traits_.unset(ReanimatedCommitTrait); - } - inline bool hasReanimatedCommitTrait() { - return traits_.check(ReanimatedCommitTrait); - } - inline void setReanimatedMountTrait() { - traits_.set(ReanimatedMountTrait); - } - inline void unsetReanimatedMountTrait() { - traits_.unset(ReanimatedMountTrait); - } - inline bool hasReanimatedMountTrait() { - return traits_.check(ReanimatedMountTrait); - } -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedMountHook.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedMountHook.cpp deleted file mode 100644 index 122d5a23..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedMountHook.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include -#include -#include - -namespace reanimated { - -ReanimatedMountHook::ReanimatedMountHook( - const std::shared_ptr &uiManager, - const std::shared_ptr &updatesRegistryManager, - const std::function &requestFlush) - : uiManager_(uiManager), - updatesRegistryManager_(updatesRegistryManager), - requestFlush_(requestFlush) { - uiManager_->registerMountHook(*this); -} - -ReanimatedMountHook::~ReanimatedMountHook() noexcept { - uiManager_->unregisterMountHook(*this); -} - -void ReanimatedMountHook::shadowTreeDidMount( - const RootShadowNode::Shared &rootShadowNode, -#if REACT_NATIVE_MINOR_VERSION >= 81 - HighResTimeStamp -#else - double -#endif // REACT_NATIVE_MINOR_VERSION >= 81 - ) noexcept { - ReanimatedSystraceSection s("ReanimatedMountHook::shadowTreeDidMount"); - - auto reaShadowNode = - std::reinterpret_pointer_cast( - std::const_pointer_cast(rootShadowNode)); - - if (reaShadowNode->hasReanimatedMountTrait()) { - // We mark reanimated commits with ReanimatedMountTrait. We don't want other - // shadow nodes to use this trait, but since this rootShadowNode is Shared, - // we don't have that guarantee. That's why we also unset this trait in the - // commit hook. We remove it here mainly for the sake of cleanliness. - reaShadowNode->unsetReanimatedMountTrait(); - return; - } - - { - auto lock = updatesRegistryManager_->lock(); - updatesRegistryManager_->handleNodeRemovals(*rootShadowNode); - - // When commit from React Native has finished, we reset the skip commit flag - // in order to allow Reanimated to commit its tree - updatesRegistryManager_->unpauseReanimatedCommits(); - if (updatesRegistryManager_->shouldCommitAfterPause()) { - requestFlush_(); - } - } -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedMountHook.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedMountHook.h deleted file mode 100644 index ea077dd7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ReanimatedMountHook.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include -#include - -#include - -#include - -namespace reanimated { - -using namespace facebook::react; - -class ReanimatedMountHook : public UIManagerMountHook { - public: - ReanimatedMountHook( - const std::shared_ptr &uiManager, - const std::shared_ptr &updatesRegistryManager, - const std::function &requestFlush); - ~ReanimatedMountHook() noexcept override; - - void shadowTreeDidMount( - RootShadowNode::Shared const &rootShadowNode, -#if REACT_NATIVE_MINOR_VERSION >= 81 - HighResTimeStamp /*unmountTime*/ -#else - double /*unmountTime*/ -#endif // REACT_NATIVE_MINOR_VERSION >= 81 - ) noexcept override; - - private: - const std::shared_ptr uiManager_; - const std::shared_ptr updatesRegistryManager_; - const std::function requestFlush_; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ShadowTreeCloner.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ShadowTreeCloner.cpp deleted file mode 100644 index bc491cca..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ShadowTreeCloner.cpp +++ /dev/null @@ -1,102 +0,0 @@ -#include -#include - -#include -#include - -namespace reanimated { - -Props::Shared mergeProps( - const ShadowNode &shadowNode, - const PropsMap &propsMap, - const ShadowNodeFamily &family) { - ReanimatedSystraceSection s("ShadowTreeCloner::mergeProps"); - - const auto it = propsMap.find(&family); - - if (it == propsMap.end()) { - return ShadowNodeFragment::propsPlaceholder(); - } - - PropsParserContext propsParserContext{ - shadowNode.getSurfaceId(), *shadowNode.getContextContainer()}; - const auto &propsVector = it->second; - auto newProps = shadowNode.getProps(); - -#ifdef ANDROID - if (propsVector.size() > 1) { - folly::dynamic newPropsDynamic = folly::dynamic::object; - for (const auto &props : propsVector) { - newPropsDynamic = folly::dynamic::merge( - props.operator folly::dynamic(), newPropsDynamic); - } - return shadowNode.getComponentDescriptor().cloneProps( - propsParserContext, newProps, RawProps(newPropsDynamic)); - } -#endif - - for (const auto &props : propsVector) { - newProps = shadowNode.getComponentDescriptor().cloneProps( - propsParserContext, newProps, RawProps(props)); - } - - return newProps; -} - -std::shared_ptr cloneShadowTreeWithNewPropsRecursive( - const ShadowNode &shadowNode, - const ChildrenMap &childrenMap, - const PropsMap &propsMap) { - const auto family = &shadowNode.getFamily(); - const auto affectedChildrenIt = childrenMap.find(family); - auto children = shadowNode.getChildren(); - - if (affectedChildrenIt != childrenMap.end()) { - for (const auto index : affectedChildrenIt->second) { - children[index] = cloneShadowTreeWithNewPropsRecursive( - *children[index], childrenMap, propsMap); - } - } - - return shadowNode.clone( - {mergeProps(shadowNode, propsMap, *family), - std::make_shared>>( - children), - shadowNode.getState(), - false}); -} - -RootShadowNode::Unshared cloneShadowTreeWithNewProps( - const RootShadowNode &oldRootNode, - const PropsMap &propsMap) { - ReanimatedSystraceSection s("ShadowTreeCloner::cloneShadowTreeWithNewProps"); - - ChildrenMap childrenMap; - - { - ReanimatedSystraceSection s("ShadowTreeCloner::prepareChildrenMap"); - - for (auto &[family, _] : propsMap) { - const auto ancestors = family->getAncestors(oldRootNode); - - for (const auto &[parentNode, index] : - std::ranges::reverse_view(ancestors)) { - const auto parentFamily = &parentNode.get().getFamily(); - auto &affectedChildren = childrenMap[parentFamily]; - - if (affectedChildren.contains(index)) { - continue; - } - - affectedChildren.insert(index); - } - } - } - - // This cast is safe, because this function returns a clone - // of the oldRootNode, which is an instance of RootShadowNode - return std::static_pointer_cast( - cloneShadowTreeWithNewPropsRecursive(oldRootNode, childrenMap, propsMap)); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ShadowTreeCloner.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ShadowTreeCloner.h deleted file mode 100644 index 278ae1e0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/ShadowTreeCloner.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include -#include - -#include -#include -#include -#include -#include - -using namespace facebook; -using namespace react; - -namespace reanimated { - -using PropsMap = - std::unordered_map>; -using ChildrenMap = - std::unordered_map>; - -RootShadowNode::Unshared cloneShadowTreeWithNewProps( - const RootShadowNode &oldRootNode, - const PropsMap &propsMap); - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.cpp deleted file mode 100644 index 8af8cd85..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include - -#include - -namespace reanimated { - -#if REACT_NATIVE_MINOR_VERSION >= 81 -static inline std::shared_ptr shadowNodeFromValue( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper) { - return Bridging>::fromJs( - rt, shadowNodeWrapper); -} -#endif - -void AnimatedPropsRegistry::update( - jsi::Runtime &rt, - const jsi::Value &operations) { - auto operationsArray = operations.asObject(rt).asArray(rt); - - for (size_t i = 0, length = operationsArray.size(rt); i < length; ++i) { - auto item = operationsArray.getValueAtIndex(rt, i).asObject(rt); - auto shadowNodeWrapper = item.getProperty(rt, "shadowNodeWrapper"); - auto shadowNode = shadowNodeFromValue(rt, shadowNodeWrapper); - - const jsi::Value &updates = item.getProperty(rt, "updates"); - addUpdatesToBatch(shadowNode, jsi::dynamicFromValue(rt, updates)); - } -} - -void AnimatedPropsRegistry::remove(const Tag tag) { - updatesRegistry_.erase(tag); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.h deleted file mode 100644 index 57c2c24b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/AnimatedPropsRegistry.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -#include - -#include - -#include -#include -#include - -namespace reanimated { - -class AnimatedPropsRegistry : public UpdatesRegistry { - public: - void update(jsi::Runtime &rt, const jsi::Value &operations); - void remove(Tag tag) override; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.cpp deleted file mode 100644 index ee43dd17..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.cpp +++ /dev/null @@ -1,156 +0,0 @@ -#include - -namespace reanimated { - -std::lock_guard UpdatesRegistry::lock() const { - return std::lock_guard{mutex_}; -} - -bool UpdatesRegistry::isEmpty() const { - return updatesRegistry_.empty(); -} - -folly::dynamic UpdatesRegistry::get(const Tag tag) const { - std::lock_guard lock{mutex_}; - - auto it = updatesRegistry_.find(tag); - if (it == updatesRegistry_.cend()) { - return nullptr; - } - return it->second.second; -} - -void UpdatesRegistry::flushUpdates(UpdatesBatch &updatesBatch) { - auto copiedUpdatesBatch = std::move(updatesBatch_); - updatesBatch_.clear(); - - // Store all updates in the registry for later use in the commit hook - flushUpdatesToRegistry(copiedUpdatesBatch); - // Flush the updates to the updatesBatch used to apply current changes - for (auto &[shadowNode, props] : copiedUpdatesBatch) { - updatesBatch.emplace_back(shadowNode, std::move(props)); - } -} - -void UpdatesRegistry::collectProps(PropsMap &propsMap) { - std::lock_guard lock{mutex_}; - - auto copiedRegistry = updatesRegistry_; - for (const auto &[tag, pair] : copiedRegistry) { - const auto &[shadowNode, props] = pair; - auto &family = shadowNode->getFamily(); - auto it = propsMap.find(&family); - - if (it == propsMap.cend()) { - auto propsVector = std::vector{}; - propsVector.emplace_back(RawProps(props)); - propsMap.emplace(&family, propsVector); - } else { - it->second.push_back(RawProps(props)); - } - } -} - -void UpdatesRegistry::addUpdatesToBatch( - const std::shared_ptr &shadowNode, - const folly::dynamic &props) { - updatesBatch_.emplace_back(shadowNode, props); -} - -void UpdatesRegistry::setInUpdatesRegistry( - const std::shared_ptr &shadowNode, - const folly::dynamic &props) { - const auto tag = shadowNode->getTag(); -#ifdef ANDROID - updatePropsToRevert(tag, &props); -#endif - updatesRegistry_[tag] = std::make_pair(shadowNode, props); -} - -folly::dynamic UpdatesRegistry::getUpdatesFromRegistry(const Tag tag) const { - auto it = updatesRegistry_.find(tag); - if (it == updatesRegistry_.cend()) { - return folly::dynamic(); - } - return it->second.second; -} - -void UpdatesRegistry::removeFromUpdatesRegistry(const Tag tag) { -#ifdef ANDROID - updatePropsToRevert(tag); -#endif - updatesRegistry_.erase(tag); -} - -void UpdatesRegistry::flushUpdatesToRegistry(const UpdatesBatch &updatesBatch) { - for (auto &[shadowNode, props] : updatesBatch) { - const auto tag = shadowNode->getTag(); - auto it = updatesRegistry_.find(tag); - - if (it == updatesRegistry_.cend()) { - updatesRegistry_[tag] = std::make_pair(shadowNode, props); - } else { - it->second.second.update(props); - } - } -} - -#ifdef ANDROID - -bool UpdatesRegistry::hasPropsToRevert() const { - return !propsToRevertMap_.empty(); -} - -void UpdatesRegistry::collectPropsToRevert(PropsToRevertMap &propsToRevertMap) { - std::lock_guard lock{mutex_}; - - for (const auto &[tag, pair] : propsToRevertMap_) { - const auto &[shadowNode, props] = pair; - const auto it = propsToRevertMap.find(tag); - if (it == propsToRevertMap.end()) { - propsToRevertMap[tag] = {shadowNode, props}; - } else { - it->second.props.insert(props.begin(), props.end()); - } - } - - propsToRevertMap_.clear(); -} - -void UpdatesRegistry::updatePropsToRevert( - const Tag tag, - const folly::dynamic *newProps) { - auto it = updatesRegistry_.find(tag); - if (it == updatesRegistry_.end()) { - return; - } - - const auto &shadowNode = it->second.first; - const auto ®istryProps = it->second.second; - if (propsToRevertMap_.find(tag) == propsToRevertMap_.end()) { - propsToRevertMap_[tag] = {shadowNode, std::unordered_set()}; - } - - if (newProps == nullptr) { - // If newProps is not provided, revert all props from registry - for (const auto &propName : registryProps.keys()) { - propsToRevertMap_[tag].props.emplace(propName.asString()); - } - } else { - // If newProps is provided, revert only props that are in registry but not - // in newProps - for (const auto &propName : registryProps.keys()) { - if (newProps->find(propName) == newProps->items().end()) { - propsToRevertMap_[tag].props.emplace(propName.asString()); - } - } - } - - if (propsToRevertMap_[tag].props.empty()) { - propsToRevertMap_.erase(tag); - } -} - -#endif - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.h deleted file mode 100644 index 6f327633..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistry.h +++ /dev/null @@ -1,78 +0,0 @@ -#pragma once - -#include - -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace reanimated { - -using namespace facebook; -using namespace react; - -using UpdatesBatch = - std::vector, folly::dynamic>>; -using RegistryMap = std::unordered_map< - Tag, - std::pair, folly::dynamic>>; - -#ifdef ANDROID -struct PropsToRevert { - std::shared_ptr shadowNode; - std::unordered_set props; -}; - -using PropsToRevertMap = std::unordered_map; -#endif - -class UpdatesRegistry { - public: - virtual ~UpdatesRegistry() {} - - std::lock_guard lock() const; - - virtual bool isEmpty() const; - folly::dynamic get(Tag tag) const; - virtual void remove(Tag tag) = 0; - -#ifdef ANDROID - bool hasPropsToRevert() const; - void collectPropsToRevert(PropsToRevertMap &propsToRevertMap); -#endif - - void flushUpdates(UpdatesBatch &updatesBatch); - void collectProps(PropsMap &propsMap); - - protected: - mutable std::mutex mutex_; - RegistryMap updatesRegistry_; - - void addUpdatesToBatch( - const std::shared_ptr &shadowNode, - const folly::dynamic &props); - folly::dynamic getUpdatesFromRegistry(const Tag tag) const; - void setInUpdatesRegistry( - const std::shared_ptr &shadowNode, - const folly::dynamic &props); - void removeFromUpdatesRegistry(Tag tag); - - private: - UpdatesBatch updatesBatch_; - - void flushUpdatesToRegistry(const UpdatesBatch &updatesBatch); - -#ifdef ANDROID - PropsToRevertMap propsToRevertMap_; - - void updatePropsToRevert(Tag tag, const folly::dynamic *newProps = nullptr); -#endif -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.cpp deleted file mode 100644 index 5b6229bf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.cpp +++ /dev/null @@ -1,163 +0,0 @@ -#include -#include - -namespace reanimated { - -UpdatesRegistryManager::UpdatesRegistryManager( - const std::shared_ptr &staticPropsRegistry) - : staticPropsRegistry_(staticPropsRegistry) {} - -std::lock_guard UpdatesRegistryManager::lock() const { - return std::lock_guard{mutex_}; -} - -void UpdatesRegistryManager::addRegistry( - const std::shared_ptr ®istry) { - if (!registry) { - throw std::invalid_argument("[Reanimated] Registry cannot be null"); - } - registries_.push_back(registry); -} - -void UpdatesRegistryManager::pauseReanimatedCommits() { - if constexpr (!StaticFeatureFlags::getFlag( - "DISABLE_COMMIT_PAUSING_MECHANISM")) { - isPaused_ = true; - } -} - -bool UpdatesRegistryManager::shouldReanimatedSkipCommit() { - return isPaused_; -} - -void UpdatesRegistryManager::unpauseReanimatedCommits() { - isPaused_ = false; -} - -void UpdatesRegistryManager::pleaseCommitAfterPause() { - shouldCommitAfterPause_ = true; -} - -void UpdatesRegistryManager::cancelCommitAfterPause() { - shouldCommitAfterPause_ = false; -} - -bool UpdatesRegistryManager::shouldCommitAfterPause() { - return shouldCommitAfterPause_.exchange(false); -} - -void UpdatesRegistryManager::markNodeAsRemovable( - const std::shared_ptr &shadowNode) { - removableShadowNodes_[shadowNode->getTag()] = shadowNode; -} - -void UpdatesRegistryManager::unmarkNodeAsRemovable(Tag viewTag) { - removableShadowNodes_.erase(viewTag); -} - -void UpdatesRegistryManager::handleNodeRemovals( - const RootShadowNode &rootShadowNode) { - RemovableShadowNodes remainingShadowNodes; - - for (const auto &[tag, shadowNode] : removableShadowNodes_) { - if (!shadowNode) { - continue; - } - - if (shadowNode->getFamily().getAncestors(rootShadowNode).empty()) { - for (auto ®istry : registries_) { - registry->remove(tag); - } - staticPropsRegistry_->remove(tag); - } else { - remainingShadowNodes.emplace(tag, shadowNode); - } - } - - removableShadowNodes_ = std::move(remainingShadowNodes); -} - -PropsMap UpdatesRegistryManager::collectProps() { - PropsMap propsMap; - for (auto ®istry : registries_) { - registry->collectProps(propsMap); - } - return propsMap; -} - -#ifdef ANDROID - -bool UpdatesRegistryManager::hasPropsToRevert() { - for (auto ®istry : registries_) { - if (registry->hasPropsToRevert()) { - return true; - } - } - return false; -} - -void UpdatesRegistryManager::addToPropsMap( - PropsMap &propsMap, - const std::shared_ptr &shadowNode, - const folly::dynamic &props) { - auto &family = shadowNode->getFamily(); - auto it = propsMap.find(&family); - - if (it == propsMap.cend()) { - auto propsVector = std::vector{}; - propsVector.emplace_back(props); - propsMap.emplace(&family, propsVector); - } else { - it->second.emplace_back(props); - } -} - -void UpdatesRegistryManager::collectPropsToRevertBySurface( - std::unordered_map &propsMapBySurface) { - for (const auto ®istry : registries_) { - registry->collectPropsToRevert(propsToRevertMap_); - } - - for (const auto &[tag, pair] : propsToRevertMap_) { - const auto &[shadowNode, props] = pair; - const auto &staticStyle = staticPropsRegistry_->get(tag); - folly::dynamic filteredStyle = folly::dynamic::object; - - for (const auto &propName : props) { - if (!staticStyle.isNull() && staticStyle.count(propName) > 0) { - filteredStyle[propName] = staticStyle[propName]; - continue; - } - - const auto &componentName = shadowNode->getComponentName(); - const auto &interpolators = getComponentInterpolators(componentName); - const auto &it = interpolators.find(propName); - - if (it != interpolators.end()) { - filteredStyle[propName] = it->second->getDefaultValue().toDynamic(); - continue; - } - - filteredStyle[propName] = nullptr; - } - - const auto &surfaceId = shadowNode->getSurfaceId(); - auto &propsMap = propsMapBySurface[surfaceId]; - - addToPropsMap(propsMap, shadowNode, filteredStyle); - } -} - -void UpdatesRegistryManager::clearPropsToRevert(const SurfaceId surfaceId) { - for (auto it = propsToRevertMap_.begin(); it != propsToRevertMap_.end();) { - if (it->second.shadowNode->getSurfaceId() == surfaceId) { - it = propsToRevertMap_.erase(it); - } else { - ++it; - } - } -} - -#endif - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.h deleted file mode 100644 index b5a54cba..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.h +++ /dev/null @@ -1,70 +0,0 @@ -#pragma once - -#include -#include - -#include -#include - -#include -#include -#include -#include - -namespace reanimated { - -using namespace css; - -class UpdatesRegistryManager { - public: - explicit UpdatesRegistryManager( - const std::shared_ptr &staticPropsRegistry); - - std::lock_guard lock() const; - - // TODO - ensure that other sublibraries can easily hook into this registry - // manager (e.g. add priority to registries) - void addRegistry(const std::shared_ptr ®istry); - - void pauseReanimatedCommits(); - bool shouldReanimatedSkipCommit(); - void unpauseReanimatedCommits(); - - void pleaseCommitAfterPause(); - bool shouldCommitAfterPause(); - void cancelCommitAfterPause(); - - void markNodeAsRemovable(const std::shared_ptr &shadowNode); - void unmarkNodeAsRemovable(Tag viewTag); - void handleNodeRemovals(const RootShadowNode &rootShadowNode); - PropsMap collectProps(); - -#ifdef ANDROID - bool hasPropsToRevert(); - void collectPropsToRevertBySurface( - std::unordered_map &propsMapBySurface); - void clearPropsToRevert(SurfaceId surfaceId); -#endif - - private: - using RemovableShadowNodes = - std::unordered_map>; - - mutable std::mutex mutex_; - std::atomic isPaused_; - std::atomic shouldCommitAfterPause_; - RemovableShadowNodes removableShadowNodes_; - std::vector> registries_; - const std::shared_ptr staticPropsRegistry_; - -#ifdef ANDROID - PropsToRevertMap propsToRevertMap_; - - static void addToPropsMap( - PropsMap &propsMap, - const std::shared_ptr &shadowNode, - const folly::dynamic &props); -#endif -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationType.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationType.h deleted file mode 100644 index 6c36ae05..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationType.h +++ /dev/null @@ -1,7 +0,0 @@ -#pragma once - -typedef enum LayoutAnimationType { - ENTERING = 1, - EXITING = 2, - LAYOUT = 3, -} LayoutAnimationType; diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp deleted file mode 100644 index 63ccbd7e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp +++ /dev/null @@ -1,124 +0,0 @@ -#include - -#ifndef NDEBUG -#include -#endif - -namespace reanimated { - -void LayoutAnimationsManager::configureAnimationBatch( - const std::vector &layoutAnimationsBatch) { - auto lock = std::unique_lock(animationsMutex_); - for (auto layoutAnimationConfig : layoutAnimationsBatch) { - const auto &[tag, type, config] = layoutAnimationConfig; - if (type == ENTERING) { - enteringAnimationsForNativeID_[tag] = config; - continue; - } - if (config == nullptr) { - getConfigsForType(type).erase(tag); - } else { - getConfigsForType(type)[tag] = config; - } - } -} - -void LayoutAnimationsManager::setShouldAnimateExiting( - const int tag, - const bool value) { - auto lock = std::unique_lock(animationsMutex_); - shouldAnimateExitingForTag_[tag] = value; -} - -bool LayoutAnimationsManager::shouldAnimateExiting( - const int tag, - const bool shouldAnimate) { - auto lock = std::unique_lock(animationsMutex_); - return shouldAnimateExitingForTag_.contains(tag) - ? shouldAnimateExitingForTag_[tag] - : shouldAnimate; -} - -bool LayoutAnimationsManager::hasLayoutAnimation( - const int tag, - const LayoutAnimationType type) { - auto lock = std::unique_lock(animationsMutex_); - return getConfigsForType(type).contains(tag); -} - -void LayoutAnimationsManager::clearLayoutAnimationConfig(const int tag) { - auto lock = std::unique_lock(animationsMutex_); - enteringAnimations_.erase(tag); - exitingAnimations_.erase(tag); - layoutAnimations_.erase(tag); - shouldAnimateExitingForTag_.erase(tag); -} - -void LayoutAnimationsManager::startLayoutAnimation( - jsi::Runtime &rt, - const int tag, - const LayoutAnimationType type, - const jsi::Object &values) { - std::shared_ptr config; - { - auto lock = std::unique_lock(animationsMutex_); - if (!getConfigsForType(type).contains(tag)) { - return; - } - config = getConfigsForType(type)[tag]; - } - // TODO: cache the following!! - jsi::Value layoutAnimationRepositoryAsValue = - rt.global() - .getPropertyAsObject(rt, "global") - .getProperty(rt, "LayoutAnimationsManager"); - jsi::Function startAnimationForTag = - layoutAnimationRepositoryAsValue.getObject(rt).getPropertyAsFunction( - rt, "start"); - startAnimationForTag.call( - rt, - jsi::Value(tag), - jsi::Value(static_cast(type)), - values, - config->toJSValue(rt)); -} - -void LayoutAnimationsManager::cancelLayoutAnimation( - jsi::Runtime &rt, - const int tag) const { - jsi::Value layoutAnimationRepositoryAsValue = - rt.global() - .getPropertyAsObject(rt, "global") - .getProperty(rt, "LayoutAnimationsManager"); - jsi::Function cancelLayoutAnimation = - layoutAnimationRepositoryAsValue.getObject(rt).getPropertyAsFunction( - rt, "stop"); - cancelLayoutAnimation.call(rt, jsi::Value(tag)); -} - -void LayoutAnimationsManager::transferConfigFromNativeID( - const int nativeId, - const int tag) { - auto lock = std::unique_lock(animationsMutex_); - auto config = enteringAnimationsForNativeID_[nativeId]; - if (config) { - enteringAnimations_.insert_or_assign(tag, config); - } - enteringAnimationsForNativeID_.erase(nativeId); -} - -std::unordered_map> & -LayoutAnimationsManager::getConfigsForType(const LayoutAnimationType type) { - switch (type) { - case ENTERING: - return enteringAnimations_; - case EXITING: - return exitingAnimations_; - case LAYOUT: - return layoutAnimations_; - default: - throw std::invalid_argument("[Reanimated] Unknown layout animation type"); - } -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h deleted file mode 100644 index 5e9d3ca7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h +++ /dev/null @@ -1,64 +0,0 @@ -#pragma once - -#include - -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace reanimated { - -using namespace facebook; -using namespace worklets; - -struct LayoutAnimationConfig { - int tag; - LayoutAnimationType type; - std::shared_ptr config; -}; - -class LayoutAnimationsManager { - public: - explicit LayoutAnimationsManager(const std::shared_ptr &jsLogger) - : jsLogger_(jsLogger) {} - void configureAnimationBatch( - const std::vector &layoutAnimationsBatch); - void setShouldAnimateExiting(const int tag, const bool value); - bool shouldAnimateExiting(const int tag, const bool shouldAnimate); - bool hasLayoutAnimation(const int tag, const LayoutAnimationType type); - void startLayoutAnimation( - jsi::Runtime &rt, - const int tag, - const LayoutAnimationType type, - const jsi::Object &values); - void clearLayoutAnimationConfig(const int tag); - void cancelLayoutAnimation(jsi::Runtime &rt, const int tag) const; - void transferConfigFromNativeID(const int nativeId, const int tag); - - private: - std::unordered_map> &getConfigsForType( - const LayoutAnimationType type); - - std::shared_ptr jsLogger_; - - std::unordered_map> - enteringAnimationsForNativeID_; - std::unordered_map> enteringAnimations_; - std::unordered_map> exitingAnimations_; - std::unordered_map> layoutAnimations_; - std::unordered_map shouldAnimateExitingForTag_; - mutable std::recursive_mutex - animationsMutex_; // Protects `enteringAnimations_`, `exitingAnimations_`, - // `layoutAnimations_` and `shouldAnimateExitingForTag_`. -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.cpp deleted file mode 100644 index 6574d2d9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.cpp +++ /dev/null @@ -1,849 +0,0 @@ -#include -#include - -#include -#include - -#include -#include - -namespace reanimated { - -// We never modify the Shadow Tree, we just send some additional -// mutations to the mounting layer. -// When animations finish, the Host Tree will represent the most recent Shadow -// Tree -// On android this code will be sometimes executed on the JS thread. -// That's why we have to schedule some of animation manager function on the UI -// thread -std::optional LayoutAnimationsProxy::pullTransaction( - SurfaceId surfaceId, - MountingTransaction::Number transactionNumber, - const TransactionTelemetry &telemetry, - ShadowViewMutationList mutations) const { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << std::endl; - LOG(INFO) << "pullTransaction " << std::this_thread::get_id() << " " - << surfaceId << std::endl; -#endif - auto lock = std::unique_lock(mutex); - PropsParserContext propsParserContext{surfaceId, *contextContainer_}; - ShadowViewMutationList filteredMutations; - - std::vector> roots; - std::unordered_map movedViews; - - addOngoingAnimations(surfaceId, filteredMutations); - - for (const auto tag : finishedAnimationTags_) { - auto &updateMap = surfaceManager.getUpdateMap(surfaceId); - layoutAnimations_.erase(tag); - updateMap.erase(tag); - } - finishedAnimationTags_.clear(); - - parseRemoveMutations(movedViews, mutations, roots); - - handleRemovals(filteredMutations, roots); - - handleUpdatesAndEnterings( - filteredMutations, movedViews, mutations, propsParserContext, surfaceId); - - addOngoingAnimations(surfaceId, filteredMutations); - - return MountingTransaction{ - surfaceId, transactionNumber, std::move(filteredMutations), telemetry}; -} - -std::optional LayoutAnimationsProxy::progressLayoutAnimation( - int tag, - const jsi::Object &newStyle) { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "progress layout animation for tag " << tag << std::endl; -#endif - auto lock = std::unique_lock(mutex); - auto layoutAnimationIt = layoutAnimations_.find(tag); - - if (layoutAnimationIt == layoutAnimations_.end()) { - return {}; - } - - auto &layoutAnimation = layoutAnimationIt->second; - - maybeRestoreOpacity(layoutAnimation, newStyle); - - auto rawProps = - std::make_shared(uiRuntime_, jsi::Value(uiRuntime_, newStyle)); - - PropsParserContext propsParserContext{ - layoutAnimation.finalView->surfaceId, *contextContainer_}; -#ifdef RN_SERIALIZABLE_STATE - rawProps = std::make_shared(folly::dynamic::merge( - layoutAnimation.finalView->props->rawProps, (folly::dynamic)*rawProps)); -#endif - auto newProps = - getComponentDescriptorForShadowView(*layoutAnimation.finalView) - .cloneProps( - propsParserContext, - layoutAnimation.finalView->props, - std::move(*rawProps)); - auto &updateMap = - surfaceManager.getUpdateMap(layoutAnimation.finalView->surfaceId); - updateMap.insert_or_assign( - tag, UpdateValues{newProps, Frame(uiRuntime_, newStyle)}); - - return layoutAnimation.finalView->surfaceId; -} - -std::optional LayoutAnimationsProxy::endLayoutAnimation( - int tag, - bool shouldRemove) { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "end layout animation for " << tag << " - should remove " - << shouldRemove << std::endl; -#endif - auto lock = std::unique_lock(mutex); - auto layoutAnimationIt = layoutAnimations_.find(tag); - - if (layoutAnimationIt == layoutAnimations_.end()) { - return {}; - } - - auto &layoutAnimation = layoutAnimationIt->second; - - // multiple layout animations can be triggered for a view - // one after the other, so we need to keep count of how many - // were actually triggered, so that we don't cleanup necessary - // structures too early - if (layoutAnimation.count > 1) { - layoutAnimation.count--; - return {}; - } - finishedAnimationTags_.push_back(tag); - auto surfaceId = layoutAnimation.finalView->surfaceId; - - if (!shouldRemove || !nodeForTag_.contains(tag)) { - return {}; - } - - auto node = nodeForTag_[tag]; - auto mutationNode = std::static_pointer_cast(node); - mutationNode->state = DEAD; - deadNodes.insert(mutationNode); - - return surfaceId; -} - -/** - Organizes removed views into a tree structure, allowing for convenient - traversals and index maintenance - */ -void LayoutAnimationsProxy::parseRemoveMutations( - std::unordered_map &movedViews, - ShadowViewMutationList &mutations, - std::vector> &roots) const { - std::set deletedViews; - std::unordered_map>> - childrenForTag, unflattenedChildrenForTag; - - std::vector> mutationNodes; - - // iterate from the end, so that parents appear before children - for (auto it = mutations.rbegin(); it != mutations.rend(); it++) { - auto &mutation = *it; - if (mutation.type == ShadowViewMutation::Delete) { - deletedViews.insert(mutation.oldChildShadowView.tag); - } - if (mutation.type == ShadowViewMutation::Remove) { - updateIndexForMutation(mutation); - auto tag = mutation.oldChildShadowView.tag; - auto parentTag = mutation.parentTag; - auto unflattenedParentTag = parentTag; // temporary - - std::shared_ptr mutationNode; - std::shared_ptr node = nodeForTag_[tag], - parent = nodeForTag_[parentTag], - unflattenedParent = - nodeForTag_[unflattenedParentTag]; - - if (!node) { - mutationNode = std::make_shared(mutation); - } else { - mutationNode = - std::make_shared(mutation, std::move(*node)); - for (auto &subNode : mutationNode->children) { - subNode->parent = mutationNode; - } - for (auto &subNode : mutationNode->unflattenedChildren) { - subNode->unflattenedParent = mutationNode; - } - } - if (!deletedViews.contains(mutation.oldChildShadowView.tag)) { - mutationNode->state = MOVED; - movedViews.insert_or_assign(mutation.oldChildShadowView.tag, -1); - } - nodeForTag_[tag] = mutationNode; - - if (!parent) { - parent = std::make_shared(parentTag); - nodeForTag_[parentTag] = parent; - } - - if (!unflattenedParent) { - if (parentTag == unflattenedParentTag) { - unflattenedParent = parent; - } else { - unflattenedParent = std::make_shared(unflattenedParentTag); - nodeForTag_[unflattenedParentTag] = unflattenedParent; - } - } - - mutationNodes.push_back(mutationNode); - - childrenForTag[parentTag].push_back(mutationNode); - unflattenedChildrenForTag[unflattenedParentTag].push_back(mutationNode); - mutationNode->parent = parent; - mutationNode->unflattenedParent = unflattenedParent; - } - if (mutation.type == ShadowViewMutation::Update && - movedViews.contains(mutation.newChildShadowView.tag)) { - auto node = nodeForTag_[mutation.newChildShadowView.tag]; - auto mutationNode = std::static_pointer_cast(node); - mutationNode->mutation.oldChildShadowView = mutation.oldChildShadowView; - } - } - - for (const auto &mutation : mutations) { - if (mutation.type == ShadowViewMutation::Insert && - movedViews.contains(mutation.newChildShadowView.tag)) { - movedViews[mutation.newChildShadowView.tag] = mutation.parentTag; - } - } - - for (auto &[parentTag, children] : childrenForTag) { - auto &parent = nodeForTag_[parentTag]; - parent->insertChildren(children); - for (auto &child : children) { - child->parent = parent; - } - } - for (auto &[unflattenedParentTag, children] : unflattenedChildrenForTag) { - auto &unflattenedParent = nodeForTag_[unflattenedParentTag]; - unflattenedParent->insertUnflattenedChildren(children); - for (auto &child : children) { - child->unflattenedParent = unflattenedParent; - } - } - - for (auto &mutationNode : mutationNodes) { - if (!mutationNode->unflattenedParent->isMutationMode()) { - roots.push_back(mutationNode); - } - } -} - -void LayoutAnimationsProxy::handleRemovals( - ShadowViewMutationList &filteredMutations, - std::vector> &roots) const { - // iterate from the end, so that children - // with higher indices appear first in the mutations list - for (auto it = roots.rbegin(); it != roots.rend(); it++) { - auto &node = *it; - if (!startAnimationsRecursively( - node, true, true, false, filteredMutations)) { - filteredMutations.push_back(node->mutation); - node->unflattenedParent->removeChildFromUnflattenedTree(node); //??? - if (node->state != MOVED) { - maybeCancelAnimation(node->tag); - filteredMutations.push_back(ShadowViewMutation::DeleteMutation( - node->mutation.oldChildShadowView)); - nodeForTag_.erase(node->tag); - node->state = DELETED; -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "delete " << node->tag << std::endl; -#endif - } - } - } - - for (auto node : deadNodes) { - if (node->state != DELETED) { - endAnimationsRecursively(node, filteredMutations); - maybeDropAncestors(node->unflattenedParent, node, filteredMutations); - } - } - deadNodes.clear(); -} - -void LayoutAnimationsProxy::handleUpdatesAndEnterings( - ShadowViewMutationList &filteredMutations, - const std::unordered_map &movedViews, - ShadowViewMutationList &mutations, - const PropsParserContext &propsParserContext, - SurfaceId surfaceId) const { - std::unordered_map oldShadowViewsForReparentings; - for (auto &mutation : mutations) { - maybeUpdateWindowDimensions(mutation, surfaceId); - - Tag tag = mutation.type == ShadowViewMutation::Type::Create || - mutation.type == ShadowViewMutation::Type::Insert - ? mutation.newChildShadowView.tag - : mutation.oldChildShadowView.tag; - - switch (mutation.type) { - case ShadowViewMutation::Type::Create: { - filteredMutations.push_back(mutation); - break; - } - case ShadowViewMutation::Type::Insert: { - updateIndexForMutation(mutation); - - const auto parentTag = mutation.parentTag; - const auto mutationParent = parentTag; - if (nodeForTag_.contains(parentTag)) { - nodeForTag_[parentTag]->applyMutationToIndices(mutation); - } - - if (movedViews.contains(tag)) { - auto layoutAnimationIt = layoutAnimations_.find(tag); - if (layoutAnimationIt == layoutAnimations_.end()) { - if (oldShadowViewsForReparentings.contains(tag)) { - filteredMutations.push_back(ShadowViewMutation::InsertMutation( - mutationParent, - oldShadowViewsForReparentings[tag], - mutation.index)); - } else { - filteredMutations.push_back(mutation); - } - continue; - } - - auto oldView = *layoutAnimationIt->second.currentView; - filteredMutations.push_back(ShadowViewMutation::InsertMutation( - mutationParent, oldView, mutation.index)); - if (movedViews.contains(tag)) { - layoutAnimationIt->second.parentTag = movedViews.at(tag); - } - continue; - } - - transferConfigFromNativeID( - mutation.newChildShadowView.props->nativeId, - mutation.newChildShadowView.tag); - if (!layoutAnimationsManager_->hasLayoutAnimation(tag, ENTERING)) { - filteredMutations.push_back(mutation); - continue; - } - - startEnteringAnimation(tag, mutation); - filteredMutations.push_back(mutation); - - // temporarily set opacity to 0 to prevent flickering on android - std::shared_ptr newView = - cloneViewWithoutOpacity(mutation, propsParserContext); - - filteredMutations.push_back(ShadowViewMutation::UpdateMutation( - mutation.newChildShadowView, *newView, mutationParent)); - break; - } - - case ShadowViewMutation::Type::Update: { - auto shouldAnimate = hasLayoutChanged(mutation); - if (!layoutAnimationsManager_->hasLayoutAnimation(tag, LAYOUT) || - (!shouldAnimate && !layoutAnimations_.contains(tag))) { - // We should cancel any ongoing animation here to ensure that the - // proper final state is reached for this view However, due to how - // RNSScreens handle adding headers (a second commit is triggered to - // offset all the elements by the header height) this would lead to - // all entering animations being cancelled when a screen with a header - // is pushed onto a stack - // TODO: find a better solution for this problem - filteredMutations.push_back(mutation); - continue; - } else if (!shouldAnimate) { - updateOngoingAnimationTarget(tag, mutation); - continue; - } - - // store the oldChildShadowView, so that we can use this ShadowView when - // the view is inserted - oldShadowViewsForReparentings[tag] = mutation.oldChildShadowView; - if (movedViews.contains(tag)) { - mutation.parentTag = movedViews.at(tag); - } - if (mutation.parentTag != -1) { - startLayoutAnimation(tag, mutation); - } - break; - } - - case ShadowViewMutation::Type::Remove: - case ShadowViewMutation::Type::Delete: { - break; - } - - default: - filteredMutations.push_back(mutation); - } - } -} - -void LayoutAnimationsProxy::addOngoingAnimations( - SurfaceId surfaceId, - ShadowViewMutationList &mutations) const { - auto &updateMap = surfaceManager.getUpdateMap(surfaceId); - for (auto &[tag, updateValues] : updateMap) { - auto layoutAnimationIt = layoutAnimations_.find(tag); - - if (layoutAnimationIt == layoutAnimations_.end()) { - continue; - } - - auto &layoutAnimation = layoutAnimationIt->second; - - auto newView = std::make_shared(*layoutAnimation.finalView); - newView->props = updateValues.newProps; - updateLayoutMetrics(newView->layoutMetrics, updateValues.frame); - - mutations.push_back(ShadowViewMutation::UpdateMutation( - *layoutAnimation.currentView, *newView, layoutAnimation.parentTag)); - layoutAnimation.currentView = newView; - } - updateMap.clear(); -} - -void LayoutAnimationsProxy::endAnimationsRecursively( - std::shared_ptr node, - ShadowViewMutationList &mutations) const { - maybeCancelAnimation(node->tag); - node->state = DELETED; - // iterate from the end, so that children - // with higher indices appear first in the mutations list - for (auto it = node->unflattenedChildren.rbegin(); - it != node->unflattenedChildren.rend(); - it++) { - auto &subNode = *it; - if (subNode->state != DELETED) { - endAnimationsRecursively(subNode, mutations); - } - } - mutations.push_back(node->mutation); - nodeForTag_.erase(node->tag); -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "delete " << node->tag << std::endl; -#endif - mutations.push_back( - ShadowViewMutation::DeleteMutation(node->mutation.oldChildShadowView)); -} - -void LayoutAnimationsProxy::maybeDropAncestors( - std::shared_ptr parent, - std::shared_ptr child, - ShadowViewMutationList &cleanupMutations) const { - parent->removeChildFromUnflattenedTree(child); - if (!parent->isMutationMode()) { - return; - } - - auto node = std::static_pointer_cast(parent); - - if (node->children.size() == 0 && node->state != ANIMATING) { - nodeForTag_.erase(node->tag); - cleanupMutations.push_back(node->mutation); - maybeCancelAnimation(node->tag); - node->state = DELETED; -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "delete " << node->tag << std::endl; -#endif - cleanupMutations.push_back( - ShadowViewMutation::DeleteMutation(node->mutation.oldChildShadowView)); - maybeDropAncestors(node->unflattenedParent, node, cleanupMutations); - } -} - -const ComponentDescriptor & -LayoutAnimationsProxy::getComponentDescriptorForShadowView( - const ShadowView &shadowView) const { - return componentDescriptorRegistry_->at(shadowView.componentHandle); -} - -bool LayoutAnimationsProxy::startAnimationsRecursively( - std::shared_ptr node, - bool shouldRemoveSubviewsWithoutAnimations, - bool shouldAnimate, - bool isScreenPop, - ShadowViewMutationList &mutations) const { - if (isRNSScreen(node)) { - isScreenPop = true; - } - - shouldAnimate = !isScreenPop && - layoutAnimationsManager_->shouldAnimateExiting(node->tag, shouldAnimate); - - bool hasExitAnimation = shouldAnimate && - layoutAnimationsManager_->hasLayoutAnimation( - node->tag, LayoutAnimationType::EXITING); - bool hasAnimatedChildren = false; - - shouldRemoveSubviewsWithoutAnimations = - shouldRemoveSubviewsWithoutAnimations && - (!hasExitAnimation || node->state == MOVED); - std::vector> toBeRemoved; - - // iterate from the end, so that children - // with higher indices appear first in the mutations list - for (auto it = node->unflattenedChildren.rbegin(); - it != node->unflattenedChildren.rend(); - it++) { - auto &subNode = *it; -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "child " << subNode->tag << " " - << " " << shouldAnimate << " " - << shouldRemoveSubviewsWithoutAnimations << std::endl; -#endif - if (subNode->state != UNDEFINED && subNode->state != MOVED) { - if (shouldAnimate && subNode->state != DEAD) { - hasAnimatedChildren = true; - } else { - endAnimationsRecursively(subNode, mutations); - toBeRemoved.push_back(subNode); - } - } else if (startAnimationsRecursively( - subNode, - shouldRemoveSubviewsWithoutAnimations, - shouldAnimate, - isScreenPop, - mutations)) { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "child " << subNode->tag - << " start animations returned true " << std::endl; -#endif - hasAnimatedChildren = true; - } else if (subNode->state == MOVED) { - mutations.push_back(subNode->mutation); - toBeRemoved.push_back(subNode); - } else if (shouldRemoveSubviewsWithoutAnimations) { - maybeCancelAnimation(subNode->tag); - mutations.push_back(subNode->mutation); - toBeRemoved.push_back(subNode); - subNode->state = DELETED; - nodeForTag_.erase(subNode->tag); -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "delete " << subNode->tag << std::endl; -#endif - mutations.push_back(ShadowViewMutation::DeleteMutation( - subNode->mutation.oldChildShadowView)); - } else { - subNode->state = WAITING; - } - } - - for (auto &subNode : toBeRemoved) { - node->removeChildFromUnflattenedTree(subNode); - } - - if (node->state == MOVED) { - auto replacement = std::make_shared(*node); - for (auto subNode : node->children) { - subNode->parent = replacement; - } - for (auto subNode : node->unflattenedChildren) { - subNode->unflattenedParent = replacement; - } - nodeForTag_[replacement->tag] = replacement; - return false; - } - - bool wantAnimateExit = hasExitAnimation || hasAnimatedChildren; - - if (hasExitAnimation) { - node->state = ANIMATING; - startExitingAnimation(node->tag, node->mutation); - } else { - layoutAnimationsManager_->clearLayoutAnimationConfig(node->tag); - } - - return wantAnimateExit; -} - -void LayoutAnimationsProxy::updateIndexForMutation( - ShadowViewMutation &mutation) const { - if (mutation.index == -1) { - return; - } - - const auto parentTag = mutation.parentTag; - - if (!nodeForTag_.contains(parentTag)) { - return; - } - - auto parent = nodeForTag_[parentTag]; - int size = 0, prevIndex = -1, offset = 0; - - for (auto &subNode : parent->children) { - size += subNode->mutation.index - prevIndex - 1; - if (mutation.index < size) { - break; - } - offset++; - prevIndex = subNode->mutation.index; - } -#ifdef LAYOUT_ANIMATIONS_LOGS - int tag = mutation.type == ShadowViewMutation::Insert - ? mutation.newChildShadowView.tag - : mutation.oldChildShadowView.tag; - LOG(INFO) << "update index for " << tag << " in " << parentTag << ": " - << mutation.index << " -> " << mutation.index + offset << std::endl; -#endif - mutation.index += offset; -} - -bool LayoutAnimationsProxy::shouldOverridePullTransaction() const { - return true; -} - -void LayoutAnimationsProxy::createLayoutAnimation( - const ShadowViewMutation &mutation, - ShadowView &oldView, - const SurfaceId &surfaceId, - const int tag) const { - int count = 1; - auto layoutAnimationIt = layoutAnimations_.find(tag); - - if (layoutAnimationIt != layoutAnimations_.end()) { - auto &layoutAnimation = layoutAnimationIt->second; - oldView = *layoutAnimation.currentView; - count = layoutAnimation.count + 1; - } - - auto finalView = std::make_shared( - mutation.type == ShadowViewMutation::Remove - ? mutation.oldChildShadowView - : mutation.newChildShadowView); - auto currentView = std::make_shared(oldView); - - layoutAnimations_.insert_or_assign( - tag, - LayoutAnimation{finalView, currentView, mutation.parentTag, {}, count}); -} - -void LayoutAnimationsProxy::startEnteringAnimation( - const int tag, - ShadowViewMutation &mutation) const { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "start entering animation for tag " << tag << std::endl; -#endif - auto finalView = std::make_shared(mutation.newChildShadowView); - auto current = std::make_shared(mutation.newChildShadowView); - - auto &viewProps = - static_cast(*mutation.newChildShadowView.props); - auto opacity = viewProps.opacity; - - uiScheduler_->scheduleOnUI([weakThis = weak_from_this(), - finalView, - current, - mutation, - opacity, - tag]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - Rect window{}; - { - auto &mutex = strongThis->mutex; - auto lock = std::unique_lock(mutex); - strongThis->layoutAnimations_.insert_or_assign( - tag, - LayoutAnimation{finalView, current, mutation.parentTag, opacity}); - window = strongThis->surfaceManager.getWindow( - mutation.newChildShadowView.surfaceId); - } - - Snapshot values(mutation.newChildShadowView, window); - auto &uiRuntime = strongThis->uiRuntime_; - jsi::Object yogaValues(uiRuntime); - yogaValues.setProperty(uiRuntime, "targetOriginX", values.x); - yogaValues.setProperty(uiRuntime, "targetGlobalOriginX", values.x); - yogaValues.setProperty(uiRuntime, "targetOriginY", values.y); - yogaValues.setProperty(uiRuntime, "targetGlobalOriginY", values.y); - yogaValues.setProperty(uiRuntime, "targetWidth", values.width); - yogaValues.setProperty(uiRuntime, "targetHeight", values.height); - yogaValues.setProperty(uiRuntime, "windowWidth", values.windowWidth); - yogaValues.setProperty(uiRuntime, "windowHeight", values.windowHeight); - strongThis->layoutAnimationsManager_->startLayoutAnimation( - uiRuntime, tag, LayoutAnimationType::ENTERING, yogaValues); - }); -} - -void LayoutAnimationsProxy::startExitingAnimation( - const int tag, - ShadowViewMutation &mutation) const { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "start exiting animation for tag " << tag << std::endl; -#endif - auto surfaceId = mutation.oldChildShadowView.surfaceId; - - uiScheduler_->scheduleOnUI( - [weakThis = weak_from_this(), tag, mutation, surfaceId]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - auto oldView = mutation.oldChildShadowView; - Rect window{}; - { - auto &mutex = strongThis->mutex; - auto lock = std::unique_lock(mutex); - strongThis->createLayoutAnimation(mutation, oldView, surfaceId, tag); - window = strongThis->surfaceManager.getWindow(surfaceId); - } - - Snapshot values(oldView, window); - - auto &uiRuntime = strongThis->uiRuntime_; - jsi::Object yogaValues(uiRuntime); - yogaValues.setProperty(uiRuntime, "currentOriginX", values.x); - yogaValues.setProperty(uiRuntime, "currentGlobalOriginX", values.x); - yogaValues.setProperty(uiRuntime, "currentOriginY", values.y); - yogaValues.setProperty(uiRuntime, "currentGlobalOriginY", values.y); - yogaValues.setProperty(uiRuntime, "currentWidth", values.width); - yogaValues.setProperty(uiRuntime, "currentHeight", values.height); - yogaValues.setProperty(uiRuntime, "windowWidth", values.windowWidth); - yogaValues.setProperty(uiRuntime, "windowHeight", values.windowHeight); - strongThis->layoutAnimationsManager_->startLayoutAnimation( - uiRuntime, tag, LayoutAnimationType::EXITING, yogaValues); - strongThis->layoutAnimationsManager_->clearLayoutAnimationConfig(tag); - }); -} - -void LayoutAnimationsProxy::startLayoutAnimation( - const int tag, - const ShadowViewMutation &mutation) const { -#ifdef LAYOUT_ANIMATIONS_LOGS - LOG(INFO) << "start layout animation for tag " << tag << std::endl; -#endif - auto surfaceId = mutation.oldChildShadowView.surfaceId; - - uiScheduler_->scheduleOnUI([weakThis = weak_from_this(), - mutation, - surfaceId, - tag]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - auto oldView = mutation.oldChildShadowView; - Rect window{}; - { - auto &mutex = strongThis->mutex; - auto lock = std::unique_lock(mutex); - strongThis->createLayoutAnimation(mutation, oldView, surfaceId, tag); - window = strongThis->surfaceManager.getWindow(surfaceId); - } - - Snapshot currentValues(oldView, window); - Snapshot targetValues(mutation.newChildShadowView, window); - - auto &uiRuntime = strongThis->uiRuntime_; - jsi::Object yogaValues(uiRuntime); - yogaValues.setProperty(uiRuntime, "currentOriginX", currentValues.x); - yogaValues.setProperty(uiRuntime, "currentGlobalOriginX", currentValues.x); - yogaValues.setProperty(uiRuntime, "currentOriginY", currentValues.y); - yogaValues.setProperty(uiRuntime, "currentGlobalOriginY", currentValues.y); - yogaValues.setProperty(uiRuntime, "currentWidth", currentValues.width); - yogaValues.setProperty(uiRuntime, "currentHeight", currentValues.height); - yogaValues.setProperty(uiRuntime, "targetOriginX", targetValues.x); - yogaValues.setProperty(uiRuntime, "targetGlobalOriginX", targetValues.x); - yogaValues.setProperty(uiRuntime, "targetOriginY", targetValues.y); - yogaValues.setProperty(uiRuntime, "targetGlobalOriginY", targetValues.y); - yogaValues.setProperty(uiRuntime, "targetWidth", targetValues.width); - yogaValues.setProperty(uiRuntime, "targetHeight", targetValues.height); - yogaValues.setProperty(uiRuntime, "windowWidth", targetValues.windowWidth); - yogaValues.setProperty( - uiRuntime, "windowHeight", targetValues.windowHeight); - strongThis->layoutAnimationsManager_->startLayoutAnimation( - uiRuntime, tag, LayoutAnimationType::LAYOUT, yogaValues); - }); -} - -void LayoutAnimationsProxy::updateOngoingAnimationTarget( - const int tag, - const ShadowViewMutation &mutation) const { - layoutAnimations_[tag].finalView = - std::make_shared(mutation.newChildShadowView); -} - -void LayoutAnimationsProxy::maybeCancelAnimation(const int tag) const { - if (!layoutAnimations_.contains(tag)) { - return; - } - layoutAnimations_.erase(tag); - uiScheduler_->scheduleOnUI([weakThis = weak_from_this(), tag]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - auto &uiRuntime = strongThis->uiRuntime_; - strongThis->layoutAnimationsManager_->cancelLayoutAnimation(uiRuntime, tag); - }); -} - -void LayoutAnimationsProxy::transferConfigFromNativeID( - const std::string nativeIdString, - const int tag) const { - if (nativeIdString.empty()) { - return; - } - try { - auto nativeId = stoi(nativeIdString); - layoutAnimationsManager_->transferConfigFromNativeID(nativeId, tag); - } catch (std::invalid_argument) { - } catch (std::out_of_range) { - } -} - -// When entering animations start, we temporarily set opacity to 0 -// so that we can immediately insert the view at the right position -// and schedule the animation on the UI thread -std::shared_ptr LayoutAnimationsProxy::cloneViewWithoutOpacity( - facebook::react::ShadowViewMutation &mutation, - const PropsParserContext &propsParserContext) const { - auto newView = std::make_shared(mutation.newChildShadowView); - folly::dynamic opacity = folly::dynamic::object("opacity", 0); - auto newProps = getComponentDescriptorForShadowView(*newView).cloneProps( - propsParserContext, newView->props, RawProps(opacity)); - newView->props = newProps; - return newView; -} - -void LayoutAnimationsProxy::maybeRestoreOpacity( - LayoutAnimation &layoutAnimation, - const jsi::Object &newStyle) const { - if (layoutAnimation.opacity && !newStyle.hasProperty(uiRuntime_, "opacity")) { - newStyle.setProperty( - uiRuntime_, "opacity", jsi::Value(*layoutAnimation.opacity)); - layoutAnimation.opacity.reset(); - } -} - -void LayoutAnimationsProxy::maybeUpdateWindowDimensions( - facebook::react::ShadowViewMutation &mutation, - SurfaceId surfaceId) const { - if (mutation.type == ShadowViewMutation::Update && - !std::strcmp( - mutation.oldChildShadowView.componentName, RootComponentName)) { - surfaceManager.updateWindow( - surfaceId, - mutation.newChildShadowView.layoutMetrics.frame.size.width, - mutation.newChildShadowView.layoutMetrics.frame.size.height); - } -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h deleted file mode 100644 index 8930af9d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h +++ /dev/null @@ -1,140 +0,0 @@ -#pragma once - -#include -#include - -#include - -#include -#include -#include - -#include -#include -#include -#include -#include - -namespace reanimated { - -class ReanimatedModuleProxy; - -using namespace facebook; - -struct LayoutAnimation { - std::shared_ptr finalView, currentView; - Tag parentTag; - std::optional opacity; - int count = 1; - LayoutAnimation &operator=(const LayoutAnimation &other) = default; -}; - -struct LayoutAnimationsProxy - : public MountingOverrideDelegate, - public std::enable_shared_from_this { - mutable std::unordered_map> nodeForTag_; - mutable std::unordered_map layoutAnimations_; - mutable std::recursive_mutex mutex; - mutable SurfaceManager surfaceManager; - mutable std::unordered_set> deadNodes; - mutable std::unordered_map leastRemoved; - mutable std::vector finishedAnimationTags_; - std::shared_ptr layoutAnimationsManager_; - std::shared_ptr contextContainer_; - SharedComponentDescriptorRegistry componentDescriptorRegistry_; - jsi::Runtime &uiRuntime_; - const std::shared_ptr uiScheduler_; - LayoutAnimationsProxy( - std::shared_ptr layoutAnimationsManager, - SharedComponentDescriptorRegistry componentDescriptorRegistry, - std::shared_ptr contextContainer, - jsi::Runtime &uiRuntime, - const std::shared_ptr uiScheduler) - : layoutAnimationsManager_(layoutAnimationsManager), - contextContainer_(contextContainer), - componentDescriptorRegistry_(componentDescriptorRegistry), - uiRuntime_(uiRuntime), - uiScheduler_(uiScheduler) {} - - void startEnteringAnimation(const int tag, ShadowViewMutation &mutation) - const; - void startExitingAnimation(const int tag, ShadowViewMutation &mutation) const; - void startLayoutAnimation(const int tag, const ShadowViewMutation &mutation) - const; - - void transferConfigFromNativeID(const std::string nativeId, const int tag) - const; - std::optional progressLayoutAnimation( - int tag, - const jsi::Object &newStyle); - std::optional endLayoutAnimation(int tag, bool shouldRemove); - void maybeCancelAnimation(const int tag) const; - - void parseRemoveMutations( - std::unordered_map &movedViews, - ShadowViewMutationList &mutations, - std::vector> &roots) const; - void handleRemovals( - ShadowViewMutationList &filteredMutations, - std::vector> &roots) const; - - void handleUpdatesAndEnterings( - ShadowViewMutationList &filteredMutations, - const std::unordered_map &movedViews, - ShadowViewMutationList &mutations, - const PropsParserContext &propsParserContext, - SurfaceId surfaceId) const; - void addOngoingAnimations( - SurfaceId surfaceId, - ShadowViewMutationList &mutations) const; - void updateOngoingAnimationTarget( - const int tag, - const ShadowViewMutation &mutation) const; - std::shared_ptr cloneViewWithoutOpacity( - facebook::react::ShadowViewMutation &mutation, - const PropsParserContext &propsParserContext) const; - void maybeRestoreOpacity( - LayoutAnimation &layoutAnimation, - const jsi::Object &newStyle) const; - void maybeUpdateWindowDimensions( - facebook::react::ShadowViewMutation &mutation, - SurfaceId surfaceId) const; - void createLayoutAnimation( - const ShadowViewMutation &mutation, - ShadowView &oldView, - const SurfaceId &surfaceId, - const int tag) const; - - void updateIndexForMutation(ShadowViewMutation &mutation) const; - - void removeRecursively( - std::shared_ptr node, - ShadowViewMutationList &mutations) const; - bool startAnimationsRecursively( - std::shared_ptr node, - const bool shouldRemoveSubviewsWithoutAnimations, - const bool shouldAnimate, - const bool isScreenPop, - ShadowViewMutationList &mutations) const; - void endAnimationsRecursively( - std::shared_ptr node, - ShadowViewMutationList &mutations) const; - void maybeDropAncestors( - std::shared_ptr node, - std::shared_ptr child, - ShadowViewMutationList &cleanupMutations) const; - - const ComponentDescriptor &getComponentDescriptorForShadowView( - const ShadowView &shadowView) const; - - // MountingOverrideDelegate - - bool shouldOverridePullTransaction() const override; - std::optional pullTransaction( - SurfaceId surfaceId, - MountingTransaction::Number number, - const TransactionTelemetry &telemetry, - ShadowViewMutationList mutations) const override; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp deleted file mode 100644 index 3333653d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp +++ /dev/null @@ -1,83 +0,0 @@ -#include - -namespace reanimated { - -std::unordered_map &SurfaceManager::getUpdateMap( - SurfaceId surfaceId) { - auto props = props_.find(surfaceId); - if (props != props_.end()) { - return *props->second; - } - - auto newProps = std::make_shared>(); - props_.insert_or_assign(surfaceId, newProps); - return *newProps; -} - -void SurfaceManager::updateWindow( - const SurfaceId surfaceId, - const double windowWidth, - const double windowHeight) { - windows_.insert_or_assign(surfaceId, Rect{windowWidth, windowHeight}); -} - -Rect SurfaceManager::getWindow(SurfaceId surfaceId) { - auto windowIt = windows_.find(surfaceId); - if (windowIt != windows_.end()) { - return windowIt->second; - } - return Rect{0, 0}; -} - -void Node::applyMutationToIndices(ShadowViewMutation mutation) { - const auto parentTag = mutation.parentTag; - if (tag != parentTag) { - return; - } - - int delta = mutation.type == ShadowViewMutation::Insert ? 1 : -1; - for (int i = children.size() - 1; i >= 0; i--) { - if (children[i]->mutation.index < mutation.index) { - return; - } - children[i]->mutation.index += delta; - } -} - -// Should only be called on unflattened parents -void Node::removeChildFromUnflattenedTree(std::shared_ptr child) { - for (int i = unflattenedChildren.size() - 1; i >= 0; i--) { - if (unflattenedChildren[i]->tag == child->tag) { - unflattenedChildren.erase(unflattenedChildren.begin() + i); - break; - } - } - - auto &flattenedChildren = child->parent->children; - for (int i = flattenedChildren.size() - 1; i >= 0; i--) { - if (flattenedChildren[i]->tag == child->tag) { - flattenedChildren.erase(flattenedChildren.begin() + i); - return; - } - flattenedChildren[i]->mutation.index--; - } -} - -void Node::insertChildren( - std::vector> &newChildren) { - mergeAndSwap(children, newChildren); -} - -void Node::insertUnflattenedChildren( - std::vector> &newChildren) { - mergeAndSwap(unflattenedChildren, newChildren); -} - -bool Node::isMutationMode() { - return false; -} - -bool MutationNode::isMutationMode() { - return true; -} -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h deleted file mode 100644 index 8cf936a4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.h +++ /dev/null @@ -1,174 +0,0 @@ -#pragma once - -#include - -#include -#include - -#include -#include -#include -#include -#include - -namespace reanimated { - -struct Rect { - double width, height; -}; - -struct Frame { - std::optional x, y, width, height; - Frame(jsi::Runtime &runtime, const jsi::Object &newStyle) { - if (newStyle.hasProperty(runtime, "originX")) { - x = newStyle.getProperty(runtime, "originX").asNumber(); - } - if (newStyle.hasProperty(runtime, "originY")) { - y = newStyle.getProperty(runtime, "originY").asNumber(); - } - if (newStyle.hasProperty(runtime, "width")) { - width = newStyle.getProperty(runtime, "width").asNumber(); - } - if (newStyle.hasProperty(runtime, "height")) { - height = newStyle.getProperty(runtime, "height").asNumber(); - } - } -}; - -struct UpdateValues { - Props::Shared newProps; - Frame frame; -}; - -struct Snapshot { - double x, y, width, height, windowWidth, windowHeight; - Snapshot(const ShadowView &shadowView, Rect window) { - const auto &frame = shadowView.layoutMetrics.frame; - x = frame.origin.x; - y = frame.origin.y; - width = frame.size.width; - height = frame.size.height; - windowWidth = window.width; - windowHeight = window.height; - } -}; - -typedef enum ExitingState { - UNDEFINED = 1, - WAITING = 2, - ANIMATING = 4, - DEAD = 8, - MOVED = 16, - DELETED = 32, -} ExitingState; - -struct MutationNode; - -/** - Represents a view that was either removed or had a child removed from the - ShadowTree - */ -struct Node { - std::vector> children, unflattenedChildren; - std::shared_ptr parent, unflattenedParent; - Tag tag; - void removeChildFromUnflattenedTree(std::shared_ptr child); - void applyMutationToIndices(ShadowViewMutation mutation); - void insertChildren(std::vector> &newChildren); - void insertUnflattenedChildren( - std::vector> &newChildren); - virtual bool isMutationMode(); - explicit Node(const Tag tag) : tag(tag) {} - Node(Node &&node) - : children(std::move(node.children)), - unflattenedChildren(std::move(node.unflattenedChildren)), - tag(node.tag) {} - Node(Node &node) - : children(node.children), - unflattenedChildren(node.unflattenedChildren), - tag(node.tag) {} - virtual ~Node() = default; -}; - -/** - Represents a view that was removed from the ShadowTree - */ -struct MutationNode : public Node { - ShadowViewMutation mutation; - ExitingState state = UNDEFINED; - explicit MutationNode(ShadowViewMutation &mutation) - : Node(mutation.oldChildShadowView.tag), mutation(mutation) {} - MutationNode(ShadowViewMutation &mutation, Node &&node) - : Node(std::move(node)), mutation(mutation) {} - bool isMutationMode() override; -}; - -struct SurfaceManager { - mutable std::unordered_map< - SurfaceId, - std::shared_ptr>> - props_; - mutable std::unordered_map windows_; - - std::unordered_map &getUpdateMap(SurfaceId surfaceId); - void - updateWindow(SurfaceId surfaceId, double windowWidth, double windowHeight); - Rect getWindow(SurfaceId surfaceId); -}; - -static inline void updateLayoutMetrics( - LayoutMetrics &layoutMetrics, - Frame &frame) { - // we use optional's here to avoid overwriting non-animated values - if (frame.width) { - layoutMetrics.frame.size.width = *frame.width; - } - if (frame.height) { - layoutMetrics.frame.size.height = *frame.height; - } - if (frame.x) { - layoutMetrics.frame.origin.x = *frame.x; - } - if (frame.y) { - layoutMetrics.frame.origin.y = *frame.y; - } -} - -static inline bool isRNSScreen(std::shared_ptr node) { - const auto &componentName = node->mutation.oldChildShadowView.componentName; - return !std::strcmp(componentName, "RNSScreenStack") || - !std::strcmp(componentName, "RNSScreen") || - !std::strcmp(componentName, "RNSModalScreen"); -} - -static inline bool hasLayoutChanged(const ShadowViewMutation &mutation) { - return mutation.oldChildShadowView.layoutMetrics.frame != - mutation.newChildShadowView.layoutMetrics.frame; -} - -static inline void mergeAndSwap( - std::vector> &A, - std::vector> &B) { - std::vector> merged; - auto it1 = A.begin(), it2 = B.begin(); - while (it1 != A.end() && it2 != B.end()) { - if ((*it1)->mutation.index < (*it2)->mutation.index) { - merged.push_back(*it1); - it1++; - } else { - merged.push_back(*it2); - it2++; - } - } - while (it1 != A.end()) { - merged.push_back(*it1); - it1++; - } - while (it2 != B.end()) { - merged.push_back(*it2); - it2++; - } - std::swap(A, merged); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/PropValueProcessor.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/PropValueProcessor.cpp deleted file mode 100644 index 07c56d02..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/PropValueProcessor.cpp +++ /dev/null @@ -1,128 +0,0 @@ -#include -#include - -#include -#include -#include -#include - -namespace reanimated { -const std::unordered_set PropValueProcessor::layoutProps = { - "width", - "height", - "top", - "left"}; -const std::unordered_set PropValueProcessor::styleProps = { - "opacity", - "zIndex", - "backgroundColor", - "boxShadow"}; - -std::string PropValueProcessor::processPropValue( - const std::string &propName, - const std::shared_ptr &shadowNode, - jsi::Runtime &rt) { - if (isLayoutProp(propName)) { - auto layoutableShadowNode = - dynamic_cast(shadowNode.get()); - if (!layoutableShadowNode) { - throw std::runtime_error( - "Cannot cast shadow node to " - "LayoutableShadowNode for layout property: " + - propName); - } - return processLayoutProp(propName, layoutableShadowNode); - } else if (isStyleProp(propName)) { - auto props = shadowNode->getProps(); - auto viewProps = std::static_pointer_cast(props); - return processStyleProp(propName, viewProps, rt); - } - - throw std::runtime_error(std::string( - "Getting property `" + propName + - "` with function `getViewProp` is not supported")); -} - -std::string PropValueProcessor::processLayoutProp( - const std::string &propName, - const LayoutableShadowNode *layoutableShadowNode) { - const auto &frame = layoutableShadowNode->layoutMetrics_.frame; - - if (propName == "width") { - return std::to_string(frame.size.width); - } else if (propName == "height") { - return std::to_string(frame.size.height); - } else if (propName == "top") { - return std::to_string(frame.origin.y); - } else if (propName == "left") { - return std::to_string(frame.origin.x); - } - - throw std::runtime_error("Unsupported layout property: " + propName); -} - -std::string PropValueProcessor::processStyleProp( - const std::string &propName, - const std::shared_ptr &viewProps, - jsi::Runtime &rt) { - if (propName == "opacity") { - return std::to_string(viewProps->opacity); - } else if (propName == "zIndex") { - if (viewProps->zIndex.has_value()) { - return std::to_string(*viewProps->zIndex); - } - return "0"; // Default value when zIndex is not set - } else if (propName == "backgroundColor") { - return intColorToHex(*viewProps->backgroundColor); - } else if (propName == "boxShadow") { - jsi::Array result = jsi::Array(rt, viewProps->boxShadow.size()); - for (size_t i = 0; i < viewProps->boxShadow.size(); i++) { - result.setValueAtIndex( - rt, i, boxShadowPreprocessing(viewProps->boxShadow[i], rt)); - } - return rt.global() - .getPropertyAsObject(rt, "JSON") - .getPropertyAsFunction(rt, "stringify") - .call(rt, result) - .asString(rt) - .utf8(rt); - } - - throw std::runtime_error("Unsupported style property: " + propName); -} - -jsi::Object PropValueProcessor::boxShadowPreprocessing( - const BoxShadow &boxShadow, - jsi::Runtime &rt) { - jsi::Object result(rt); - result.setProperty(rt, "offsetX", boxShadow.offsetX); - result.setProperty(rt, "offsetY", boxShadow.offsetY); - result.setProperty(rt, "blurRadius", boxShadow.blurRadius); - result.setProperty(rt, "spreadDistance", boxShadow.spreadDistance); - result.setProperty(rt, "color", intColorToHex(*boxShadow.color)); - result.setProperty(rt, "inset", boxShadow.inset ? true : false); - return result; -} - -std::string PropValueProcessor::intColorToHex(const int val) { - std::stringstream invertedHexColorStream; - // By default transparency is first, color second - invertedHexColorStream << std::setfill('0') << std::setw(8) << std::hex - << val; - - auto invertedHexColor = invertedHexColorStream.str(); - auto hexColor = - "#" + invertedHexColor.substr(2, 6) + invertedHexColor.substr(0, 2); - - return hexColor; -} - -bool PropValueProcessor::isLayoutProp(const std::string &propName) { - return layoutProps.contains(propName); -} - -bool PropValueProcessor::isStyleProp(const std::string &propName) { - return styleProps.contains(propName); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/PropValueProcessor.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/PropValueProcessor.h deleted file mode 100644 index e44f2c6c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/PropValueProcessor.h +++ /dev/null @@ -1,47 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include - -namespace reanimated { - -using namespace facebook; -using namespace react; - -class PropValueProcessor { - public: - static const std::unordered_set layoutProps; - static const std::unordered_set styleProps; - - static std::string processPropValue( - const std::string &propName, - const std::shared_ptr &shadowNode, - jsi::Runtime &rt); - - private: - static std::string processLayoutProp( - const std::string &propName, - const LayoutableShadowNode *layoutableShadowNode); - - static std::string processStyleProp( - const std::string &propName, - const std::shared_ptr &viewProps, - jsi::Runtime &rt); - - static std::string intColorToHex(const int val); - - static jsi::Object boxShadowPreprocessing( - const BoxShadow &boxShadow, - jsi::Runtime &rt); - - static bool isLayoutProp(const std::string &propName); - - static bool isStyleProp(const std::string &propName); -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp deleted file mode 100644 index 05acd4f3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp +++ /dev/null @@ -1,1379 +0,0 @@ -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#ifdef __ANDROID__ -#include -#endif // __ANDROID__ - -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace reanimated { - -#if REACT_NATIVE_MINOR_VERSION >= 81 -static inline std::shared_ptr shadowNodeFromValue( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper) { - return Bridging>::fromJs( - rt, shadowNodeWrapper); -} -#endif - -ReanimatedModuleProxy::ReanimatedModuleProxy( - const std::shared_ptr &workletsModuleProxy, - jsi::Runtime &rnRuntime, - const std::shared_ptr &jsCallInvoker, - const PlatformDepMethodsHolder &platformDepMethodsHolder, - const bool isReducedMotion) - : ReanimatedModuleProxySpec(jsCallInvoker), - isReducedMotion_(isReducedMotion), - workletsModuleProxy_(workletsModuleProxy), - eventHandlerRegistry_(std::make_unique()), - requestRender_(platformDepMethodsHolder.requestRender), - animatedSensorModule_(platformDepMethodsHolder), - jsLogger_( - std::make_shared(workletsModuleProxy->getJSScheduler())), - layoutAnimationsManager_( - std::make_shared(jsLogger_)), - getAnimationTimestamp_(platformDepMethodsHolder.getAnimationTimestamp), - animatedPropsRegistry_(std::make_shared()), - staticPropsRegistry_(std::make_shared()), - updatesRegistryManager_( - std::make_shared(staticPropsRegistry_)), - viewStylesRepository_(std::make_shared( - staticPropsRegistry_, - animatedPropsRegistry_)), - cssAnimationKeyframesRegistry_( - std::make_shared(viewStylesRepository_)), - cssAnimationsRegistry_(std::make_shared()), - cssTransitionsRegistry_(std::make_shared( - staticPropsRegistry_, - getAnimationTimestamp_)), -#ifdef ANDROID - synchronouslyUpdateUIPropsFunction_( - platformDepMethodsHolder.synchronouslyUpdateUIPropsFunction), -#endif // ANDROID - subscribeForKeyboardEventsFunction_( - platformDepMethodsHolder.subscribeForKeyboardEvents), - unsubscribeFromKeyboardEventsFunction_( - platformDepMethodsHolder.unsubscribeFromKeyboardEvents) { - auto lock = updatesRegistryManager_->lock(); - // Add registries in order of their priority (from the lowest to the - // highest) - // CSS transitions should be overriden by animated style animations; - // animated style animations should be overriden by CSS animations - updatesRegistryManager_->addRegistry(cssTransitionsRegistry_); - updatesRegistryManager_->addRegistry(animatedPropsRegistry_); - updatesRegistryManager_->addRegistry(cssAnimationsRegistry_); -} - -void ReanimatedModuleProxy::init( - const PlatformDepMethodsHolder &platformDepMethodsHolder) { - auto onRenderCallback = [weakThis = - weak_from_this()](const double timestampMs) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - strongThis->renderRequested_ = false; - strongThis->onRender(timestampMs); - }; - onRenderCallback_ = std::move(onRenderCallback); - - auto updateProps = [weakThis = weak_from_this()]( - jsi::Runtime &rt, const jsi::Value &operations) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - strongThis->animatedPropsRegistry_->update(rt, operations); - }; - - auto measure = [weakThis = weak_from_this()]( - jsi::Runtime &rt, - const jsi::Value &shadowNodeValue) -> jsi::Value { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return jsi::Value::undefined(); - } - return strongThis->measure(rt, shadowNodeValue); - }; - - auto dispatchCommand = [weakThis = weak_from_this()]( - jsi::Runtime &rt, - const jsi::Value &shadowNodeValue, - const jsi::Value &commandNameValue, - const jsi::Value &argsValue) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - strongThis->dispatchCommand( - rt, shadowNodeValue, commandNameValue, argsValue); - }; - ProgressLayoutAnimationFunction progressLayoutAnimation = - [weakThis = weak_from_this()]( - jsi::Runtime &rt, int tag, const jsi::Object &newStyle) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - auto surfaceId = - strongThis->layoutAnimationsProxy_->progressLayoutAnimation( - tag, newStyle); - if (!surfaceId) { - return; - } - strongThis->layoutAnimationFlushRequests_.insert(*surfaceId); - }; - - auto requestLayoutAnimationRender = [weakThis = weak_from_this()](double) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - strongThis->layoutAnimationRenderRequested_ = false; - }; - - EndLayoutAnimationFunction endLayoutAnimation = - [weakThis = weak_from_this(), requestLayoutAnimationRender]( - int tag, bool shouldRemove) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - auto surfaceId = strongThis->layoutAnimationsProxy_->endLayoutAnimation( - tag, shouldRemove); - - if (!strongThis->layoutAnimationRenderRequested_) { - strongThis->layoutAnimationRenderRequested_ = true; - // if an animation has duration 0, performOperations would not get - // called for it so we call requestRender to have it called in the - // next frame - strongThis->requestRender_(requestLayoutAnimationRender); - } - - if (!surfaceId) { - return; - } - strongThis->layoutAnimationFlushRequests_.insert(*surfaceId); - }; - - auto obtainProp = [weakThis = weak_from_this()]( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &propName) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return jsi::String::createFromUtf8(rt, ""); - } - - return strongThis->obtainProp(rt, shadowNodeWrapper, propName); - }; - - jsi::Runtime &uiRuntime = - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(); - UIRuntimeDecorator::decorate( - uiRuntime, - obtainProp, - updateProps, - measure, - dispatchCommand, - platformDepMethodsHolder.getAnimationTimestamp, - platformDepMethodsHolder.setGestureStateFunction, - progressLayoutAnimation, - endLayoutAnimation, - platformDepMethodsHolder.maybeFlushUIUpdatesQueueFunction); -} - -ReanimatedModuleProxy::~ReanimatedModuleProxy() { - // event handler registry and frame callbacks store some JSI values from UI - // runtime, so they have to go away before we tear down the runtime - eventHandlerRegistry_.reset(); - frameCallbacks_.clear(); -} - -jsi::Value ReanimatedModuleProxy::registerEventHandler( - jsi::Runtime &rt, - const jsi::Value &worklet, - const jsi::Value &eventName, - const jsi::Value &emitterReactTag) { - static uint64_t NEXT_EVENT_HANDLER_ID = 1; - - uint64_t newRegistrationId = NEXT_EVENT_HANDLER_ID++; - auto eventNameStr = eventName.asString(rt).utf8(rt); - auto handlerSerializable = extractSerializableOrThrow( - rt, - worklet, - "[Reanimated] Event handler must be a serializable worklet."); - int emitterReactTagInt = emitterReactTag.asNumber(); - - workletsModuleProxy_->getUIScheduler()->scheduleOnUI( - [=, weakThis = weak_from_this()]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - auto handler = std::make_shared( - newRegistrationId, - eventNameStr, - emitterReactTagInt, - handlerSerializable); - strongThis->eventHandlerRegistry_->registerEventHandler( - std::move(handler)); - }); - - return jsi::Value(static_cast(newRegistrationId)); -} - -void ReanimatedModuleProxy::unregisterEventHandler( - jsi::Runtime &, - const jsi::Value ®istrationId) { - uint64_t id = registrationId.asNumber(); - workletsModuleProxy_->getUIScheduler()->scheduleOnUI( - [=, weakThis = weak_from_this()]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - strongThis->eventHandlerRegistry_->unregisterEventHandler(id); - }); -} - -std::string ReanimatedModuleProxy::obtainPropFromShadowNode( - jsi::Runtime &rt, - const std::string &propName, - const std::shared_ptr &shadowNode) { - auto newestCloneOfShadowNode = - uiManager_->getNewestCloneOfShadowNode(*shadowNode); - - return PropValueProcessor::processPropValue( - propName, newestCloneOfShadowNode, rt); -} - -jsi::Value ReanimatedModuleProxy::getViewProp( - jsi::Runtime &rnRuntime, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &propName, - const jsi::Value &callback) { - const auto propNameStr = propName.asString(rnRuntime).utf8(rnRuntime); - const auto funPtr = std::make_shared( - callback.getObject(rnRuntime).asFunction(rnRuntime)); - const auto shadowNode = shadowNodeFromValue(rnRuntime, shadowNodeWrapper); - workletsModuleProxy_->getUIScheduler()->scheduleOnUI( - [=, weakThis = weak_from_this()]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - jsi::Runtime &uiRuntime = - strongThis->workletsModuleProxy_->getUIWorkletRuntime() - ->getJSIRuntime(); - const auto resultStr = strongThis->obtainPropFromShadowNode( - uiRuntime, propNameStr, shadowNode); - - strongThis->workletsModuleProxy_->getJSScheduler()->scheduleOnJS( - [=](jsi::Runtime &rnRuntime) { - const auto resultValue = - jsi::String::createFromUtf8(rnRuntime, resultStr); - funPtr->call(rnRuntime, resultValue); - }); - }); - return jsi::Value::undefined(); -} - -jsi::Value ReanimatedModuleProxy::getStaticFeatureFlag( - jsi::Runtime &rt, - const jsi::Value &name) { - return reanimated::StaticFeatureFlags::getFlag(name.asString(rt).utf8(rt)); -} - -jsi::Value ReanimatedModuleProxy::setDynamicFeatureFlag( - jsi::Runtime &rt, - const jsi::Value &name, - const jsi::Value &value) { - reanimated::DynamicFeatureFlags::setFlag( - name.asString(rt).utf8(rt), value.asBool()); - return jsi::Value::undefined(); -} - -jsi::Value ReanimatedModuleProxy::configureLayoutAnimationBatch( - jsi::Runtime &rt, - const jsi::Value &layoutAnimationsBatch) { - auto array = layoutAnimationsBatch.asObject(rt).asArray(rt); - size_t length = array.size(rt); - std::vector batch(length); - for (int i = 0; i < length; i++) { - auto item = array.getValueAtIndex(rt, i).asObject(rt); - auto &batchItem = batch[i]; - batchItem.tag = item.getProperty(rt, "viewTag").asNumber(); - batchItem.type = static_cast( - item.getProperty(rt, "type").asNumber()); - auto config = item.getProperty(rt, "config"); - if (config.isUndefined()) { - batchItem.config = nullptr; - } else { - batchItem.config = extractSerializableOrThrow( - rt, - config, - "[Reanimated] Layout animation config must be an object."); - } - } - layoutAnimationsManager_->configureAnimationBatch(batch); - return jsi::Value::undefined(); -} - -void ReanimatedModuleProxy::setShouldAnimateExiting( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &shouldAnimate) { - layoutAnimationsManager_->setShouldAnimateExiting( - viewTag.asNumber(), shouldAnimate.getBool()); -} - -bool ReanimatedModuleProxy::isAnyHandlerWaitingForEvent( - const std::string &eventName, - const int emitterReactTag) { - return eventHandlerRegistry_->isAnyHandlerWaitingForEvent( - eventName, emitterReactTag); -} - -void ReanimatedModuleProxy::maybeRequestRender() { - if (!renderRequested_) { - renderRequested_ = true; - requestRender_(onRenderCallback_); - } -} - -void ReanimatedModuleProxy::onRender(double timestampMs) { - ReanimatedSystraceSection s("ReanimatedModuleProxy::onRender"); - auto callbacks = std::move(frameCallbacks_); - frameCallbacks_.clear(); - jsi::Runtime &uiRuntime = - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(); - jsi::Value timestamp{timestampMs}; - for (const auto &callback : callbacks) { - runOnRuntimeGuarded(uiRuntime, *callback, timestamp); - } -} - -jsi::Value ReanimatedModuleProxy::registerSensor( - jsi::Runtime &rt, - const jsi::Value &sensorType, - const jsi::Value &interval, - const jsi::Value &iosReferenceFrame, - const jsi::Value &sensorDataHandler) { - return animatedSensorModule_.registerSensor( - rt, - workletsModuleProxy_->getUIWorkletRuntime(), - sensorType, - interval, - iosReferenceFrame, - sensorDataHandler); -} - -void ReanimatedModuleProxy::unregisterSensor( - jsi::Runtime &, - const jsi::Value &sensorId) { - animatedSensorModule_.unregisterSensor(sensorId); -} - -void ReanimatedModuleProxy::cleanupSensors() { - animatedSensorModule_.unregisterAllSensors(); -} - -void ReanimatedModuleProxy::setViewStyle( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &viewStyle) { - const auto tag = viewTag.asNumber(); - staticPropsRegistry_->set(rt, tag, viewStyle); - if (staticPropsRegistry_->hasObservers(tag)) { - maybeRunCSSLoop(); - } -} - -void ReanimatedModuleProxy::markNodeAsRemovable( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper) { - auto lock = updatesRegistryManager_->lock(); - auto shadowNode = shadowNodeFromValue(rt, shadowNodeWrapper); - updatesRegistryManager_->markNodeAsRemovable(shadowNode); -} - -void ReanimatedModuleProxy::unmarkNodeAsRemovable( - jsi::Runtime &rt, - const jsi::Value &viewTag) { - auto lock = updatesRegistryManager_->lock(); - updatesRegistryManager_->unmarkNodeAsRemovable(viewTag.asNumber()); -} - -void ReanimatedModuleProxy::registerCSSKeyframes( - jsi::Runtime &rt, - const jsi::Value &animationName, - const jsi::Value &viewName, - const jsi::Value &keyframesConfig) { - // Convert react view name to Fabric component name - const auto componentName = - componentNameByReactViewName(viewName.asString(rt).utf8(rt)); - cssAnimationKeyframesRegistry_->set( - animationName.asString(rt).utf8(rt), - componentName, - parseCSSAnimationKeyframesConfig( - rt, keyframesConfig, componentName, viewStylesRepository_)); -} - -void ReanimatedModuleProxy::unregisterCSSKeyframes( - jsi::Runtime &rt, - const jsi::Value &animationName, - const jsi::Value &viewName) { - cssAnimationKeyframesRegistry_->remove( - animationName.asString(rt).utf8(rt), - componentNameByReactViewName(viewName.asString(rt).utf8(rt))); -} - -void ReanimatedModuleProxy::applyCSSAnimations( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &animationUpdates) { - auto shadowNode = shadowNodeFromValue(rt, shadowNodeWrapper); - const auto timestamp = getCssTimestamp(); - const auto updates = parseCSSAnimationUpdates(rt, animationUpdates); - - CSSAnimationsMap newAnimations; - - if (!updates.newAnimationSettings.empty()) { - // animationNames always exists when newAnimationSettings is not empty - const auto animationNames = updates.animationNames.value(); - const auto animationNamesCount = animationNames.size(); - - for (const auto &[index, settings] : updates.newAnimationSettings) { - if (index >= animationNamesCount) { - throw std::invalid_argument( - "[Reanimated] index is out of bounds of animationNames"); - } - - const auto &animationName = animationNames[index]; - const auto &keyframesConfig = cssAnimationKeyframesRegistry_->get( - animationName, shadowNode->getComponentName()); - - newAnimations.emplace( - index, - std::make_shared( - rt, - shadowNode, - animationName, - keyframesConfig, - settings, - timestamp)); - } - } - - { - auto lock = cssAnimationsRegistry_->lock(); - cssAnimationsRegistry_->apply( - rt, - shadowNode, - updates.animationNames, - std::move(newAnimations), - updates.settingsUpdates, - timestamp); - } - - maybeRunCSSLoop(); -} - -void ReanimatedModuleProxy::unregisterCSSAnimations(const jsi::Value &viewTag) { - auto lock = cssAnimationsRegistry_->lock(); - cssAnimationsRegistry_->remove(viewTag.asNumber()); -} - -void ReanimatedModuleProxy::registerCSSTransition( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &transitionConfig) { - auto shadowNode = shadowNodeFromValue(rt, shadowNodeWrapper); - - auto transition = std::make_shared( - std::move(shadowNode), - parseCSSTransitionConfig(rt, transitionConfig), - viewStylesRepository_); - - { - auto lock = cssTransitionsRegistry_->lock(); - cssTransitionsRegistry_->add(transition); - } - maybeRunCSSLoop(); -} - -void ReanimatedModuleProxy::updateCSSTransition( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &configUpdates) { - auto lock = cssTransitionsRegistry_->lock(); - cssTransitionsRegistry_->updateSettings( - viewTag.asNumber(), parsePartialCSSTransitionConfig(rt, configUpdates)); - maybeRunCSSLoop(); -} - -void ReanimatedModuleProxy::unregisterCSSTransition( - jsi::Runtime &rt, - const jsi::Value &viewTag) { - auto lock = cssTransitionsRegistry_->lock(); - cssTransitionsRegistry_->remove(viewTag.asNumber()); -} - -bool ReanimatedModuleProxy::handleEvent( - const std::string &eventName, - const int emitterReactTag, - const jsi::Value &payload, - double currentTime) { - ReanimatedSystraceSection s("ReanimatedModuleProxy::handleEvent"); - - eventHandlerRegistry_->processEvent( - workletsModuleProxy_->getUIWorkletRuntime(), - currentTime, - eventName, - emitterReactTag, - payload); - - // TODO: return true if Reanimated successfully handled the event - // to avoid sending it to JavaScript - return false; -} - -bool ReanimatedModuleProxy::handleRawEvent( - const RawEvent &rawEvent, - double currentTime) { - ReanimatedSystraceSection s("ReanimatedModuleProxy::handleRawEvent"); - - const EventTarget *eventTarget = rawEvent.eventTarget.get(); - if (eventTarget == nullptr) { - // after app reload scrollView is unmounted and its content offset is set - // to 0 and view is thrown into recycle pool setting content offset - // triggers scroll event eventTarget is null though, because it's - // unmounting we can just ignore this event, because it's an event on - // unmounted component - return false; - } - - int tag = eventTarget->getTag(); - auto eventType = rawEvent.type; - if (eventType.rfind("top", 0) == 0) { - eventType = "on" + eventType.substr(3); - } - - if (!isAnyHandlerWaitingForEvent(eventType, tag)) { - return false; - } - - jsi::Runtime &rt = - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(); - const auto &eventPayload = rawEvent.eventPayload; - jsi::Value payload = eventPayload->asJSIValue(rt); - - auto res = handleEvent(eventType, tag, std::move(payload), currentTime); - // TODO: we should call performOperations conditionally if event is handled - // (res == true), but for now handleEvent always returns false. Thankfully, - // performOperations does not trigger a lot of code if there is nothing to - // be done so this is fine for now. - performOperations(); - return res; -} - -void ReanimatedModuleProxy::cssLoopCallback(const double /*timestampMs*/) { - shouldUpdateCssAnimations_ = true; - if (cssAnimationsRegistry_->hasUpdates() || - cssTransitionsRegistry_->hasUpdates() -#ifdef ANDROID - || updatesRegistryManager_->hasPropsToRevert() -#endif // ANDROID - ) { - requestRender_([weakThis = weak_from_this()](const double newTimestampMs) { - if (auto strongThis = weakThis.lock()) { - strongThis->cssLoopCallback(newTimestampMs); - } - }); - } else { - cssLoopRunning_ = false; - } -} - -void ReanimatedModuleProxy::maybeRunCSSLoop() { - if (cssLoopRunning_) { - return; - } - - cssLoopRunning_ = true; - - workletsModuleProxy_->getUIScheduler()->scheduleOnUI( - [weakThis = weak_from_this()]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - strongThis->requestRender_([weakThis](const double timestampMs) { - if (auto strongThis = weakThis.lock()) { - strongThis->cssLoopCallback(timestampMs); - } - }); - }); -} - -double ReanimatedModuleProxy::getCssTimestamp() { - if (cssLoopRunning_) { - return currentCssTimestamp_; - } - currentCssTimestamp_ = getAnimationTimestamp_(); - return currentCssTimestamp_; -} - -void ReanimatedModuleProxy::performOperations() { - ReanimatedSystraceSection s("ReanimatedModuleProxy::performOperations"); - - auto flushRequestsCopy = std::move(layoutAnimationFlushRequests_); - for (const auto surfaceId : flushRequestsCopy) { - uiManager_->getShadowTreeRegistry().visit( - surfaceId, [](const ShadowTree &shadowTree) { - shadowTree.notifyDelegatesOfUpdates(); - }); - } - - jsi::Runtime &rt = - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(); - - UpdatesBatch updatesBatch; - { - ReanimatedSystraceSection s2("ReanimatedModuleProxy::flushUpdates"); - - auto lock = updatesRegistryManager_->lock(); - - if (shouldUpdateCssAnimations_) { - currentCssTimestamp_ = getAnimationTimestamp_(); - auto lock = cssTransitionsRegistry_->lock(); - // Update CSS transitions and flush updates - cssTransitionsRegistry_->update(currentCssTimestamp_); - cssTransitionsRegistry_->flushUpdates(updatesBatch); - } - - { - auto lock = animatedPropsRegistry_->lock(); - // Flush all animated props updates - animatedPropsRegistry_->flushUpdates(updatesBatch); - } - - if (shouldUpdateCssAnimations_) { - auto lock = cssAnimationsRegistry_->lock(); - // Update CSS animations and flush updates - cssAnimationsRegistry_->update(currentCssTimestamp_); - cssAnimationsRegistry_->flushUpdates(updatesBatch); - } - - shouldUpdateCssAnimations_ = false; - -#ifdef ANDROID - if constexpr (StaticFeatureFlags::getFlag( - "ANDROID_SYNCHRONOUSLY_UPDATE_UI_PROPS")) { - static const std::unordered_set synchronousProps = { - "opacity", - "elevation", - "zIndex", - // "shadowOpacity", // not supported on Android - // "shadowRadius", // not supported on Android - "backgroundColor", - // "color", // TODO: fix animating color of Animated.Text - "tintColor", - "borderRadius", - "borderTopLeftRadius", - "borderTopRightRadius", - "borderTopStartRadius", - "borderTopEndRadius", - "borderBottomLeftRadius", - "borderBottomRightRadius", - "borderBottomStartRadius", - "borderBottomEndRadius", - "borderStartStartRadius", - "borderStartEndRadius", - "borderEndStartRadius", - "borderEndEndRadius", - "borderColor", - "borderTopColor", - "borderBottomColor", - "borderLeftColor", - "borderRightColor", - "borderStartColor", - "borderEndColor", - "transform", - }; - - // NOTE: Keep in sync with NativeProxy.java - static constexpr auto CMD_START_OF_VIEW = 1; - static constexpr auto CMD_START_OF_TRANSFORM = 2; - static constexpr auto CMD_END_OF_TRANSFORM = 3; - static constexpr auto CMD_END_OF_VIEW = 4; - - static constexpr auto CMD_OPACITY = 10; - static constexpr auto CMD_ELEVATION = 11; - static constexpr auto CMD_Z_INDEX = 12; - static constexpr auto CMD_SHADOW_OPACITY = 13; - static constexpr auto CMD_SHADOW_RADIUS = 14; - static constexpr auto CMD_BACKGROUND_COLOR = 15; - static constexpr auto CMD_COLOR = 16; - static constexpr auto CMD_TINT_COLOR = 17; - - static constexpr auto CMD_BORDER_RADIUS = 20; - static constexpr auto CMD_BORDER_TOP_LEFT_RADIUS = 21; - static constexpr auto CMD_BORDER_TOP_RIGHT_RADIUS = 22; - static constexpr auto CMD_BORDER_TOP_START_RADIUS = 23; - static constexpr auto CMD_BORDER_TOP_END_RADIUS = 24; - static constexpr auto CMD_BORDER_BOTTOM_LEFT_RADIUS = 25; - static constexpr auto CMD_BORDER_BOTTOM_RIGHT_RADIUS = 26; - static constexpr auto CMD_BORDER_BOTTOM_START_RADIUS = 27; - static constexpr auto CMD_BORDER_BOTTOM_END_RADIUS = 28; - static constexpr auto CMD_BORDER_START_START_RADIUS = 29; - static constexpr auto CMD_BORDER_START_END_RADIUS = 30; - static constexpr auto CMD_BORDER_END_START_RADIUS = 31; - static constexpr auto CMD_BORDER_END_END_RADIUS = 32; - - static constexpr auto CMD_BORDER_COLOR = 40; - static constexpr auto CMD_BORDER_TOP_COLOR = 41; - static constexpr auto CMD_BORDER_BOTTOM_COLOR = 42; - static constexpr auto CMD_BORDER_LEFT_COLOR = 43; - static constexpr auto CMD_BORDER_RIGHT_COLOR = 44; - static constexpr auto CMD_BORDER_START_COLOR = 45; - static constexpr auto CMD_BORDER_END_COLOR = 46; - - static constexpr auto CMD_TRANSFORM_TRANSLATE_X = 100; - static constexpr auto CMD_TRANSFORM_TRANSLATE_Y = 101; - static constexpr auto CMD_TRANSFORM_SCALE = 102; - static constexpr auto CMD_TRANSFORM_SCALE_X = 103; - static constexpr auto CMD_TRANSFORM_SCALE_Y = 104; - static constexpr auto CMD_TRANSFORM_ROTATE = 105; - static constexpr auto CMD_TRANSFORM_ROTATE_X = 106; - static constexpr auto CMD_TRANSFORM_ROTATE_Y = 107; - static constexpr auto CMD_TRANSFORM_ROTATE_Z = 108; - static constexpr auto CMD_TRANSFORM_SKEW_X = 109; - static constexpr auto CMD_TRANSFORM_SKEW_Y = 110; - static constexpr auto CMD_TRANSFORM_MATRIX = 111; - static constexpr auto CMD_TRANSFORM_PERSPECTIVE = 112; - - static constexpr auto CMD_UNIT_DEG = 200; - static constexpr auto CMD_UNIT_RAD = 201; - static constexpr auto CMD_UNIT_PX = 202; - static constexpr auto CMD_UNIT_PERCENT = 203; - - const auto propNameToCommand = [](const std::string &name) { - if (name == "opacity") - return CMD_OPACITY; - - if (name == "elevation") - return CMD_ELEVATION; - - if (name == "zIndex") - return CMD_Z_INDEX; - - if (name == "shadowOpacity") - return CMD_SHADOW_OPACITY; - - if (name == "shadowRadius") - return CMD_SHADOW_RADIUS; - - if (name == "backgroundColor") - return CMD_BACKGROUND_COLOR; - - if (name == "color") - return CMD_COLOR; - - if (name == "tintColor") - return CMD_TINT_COLOR; - - if (name == "borderRadius") - return CMD_BORDER_RADIUS; - - if (name == "borderTopLeftRadius") - return CMD_BORDER_TOP_LEFT_RADIUS; - - if (name == "borderTopRightRadius") - return CMD_BORDER_TOP_RIGHT_RADIUS; - - if (name == "borderTopStartRadius") - return CMD_BORDER_TOP_START_RADIUS; - - if (name == "borderTopEndRadius") - return CMD_BORDER_TOP_END_RADIUS; - - if (name == "borderBottomLeftRadius") - return CMD_BORDER_BOTTOM_LEFT_RADIUS; - - if (name == "borderBottomRightRadius") - return CMD_BORDER_BOTTOM_RIGHT_RADIUS; - - if (name == "borderBottomStartRadius") - return CMD_BORDER_BOTTOM_START_RADIUS; - - if (name == "borderBottomEndRadius") - return CMD_BORDER_BOTTOM_END_RADIUS; - - if (name == "borderStartStartRadius") - return CMD_BORDER_START_START_RADIUS; - - if (name == "borderStartEndRadius") - return CMD_BORDER_START_END_RADIUS; - - if (name == "borderEndStartRadius") - return CMD_BORDER_END_START_RADIUS; - - if (name == "borderEndEndRadius") - return CMD_BORDER_END_END_RADIUS; - - if (name == "borderColor") - return CMD_BORDER_COLOR; - - if (name == "borderTopColor") - return CMD_BORDER_TOP_COLOR; - - if (name == "borderBottomColor") - return CMD_BORDER_BOTTOM_COLOR; - - if (name == "borderLeftColor") - return CMD_BORDER_LEFT_COLOR; - - if (name == "borderRightColor") - return CMD_BORDER_RIGHT_COLOR; - - if (name == "borderStartColor") - return CMD_BORDER_START_COLOR; - - if (name == "borderEndColor") - return CMD_BORDER_END_COLOR; - - if (name == "transform") - return CMD_START_OF_TRANSFORM; // TODO: use CMD_TRANSFORM? - - throw std::runtime_error("[Reanimated] Unsupported style: " + name); - }; - - const auto transformNameToCommand = [](const std::string &name) { - if (name == "translateX") - return CMD_TRANSFORM_TRANSLATE_X; - - if (name == "translateY") - return CMD_TRANSFORM_TRANSLATE_Y; - - if (name == "scale") - return CMD_TRANSFORM_SCALE; - - if (name == "scaleX") - return CMD_TRANSFORM_SCALE_X; - - if (name == "scaleY") - return CMD_TRANSFORM_SCALE_Y; - - if (name == "rotate") - return CMD_TRANSFORM_ROTATE; - - if (name == "rotateX") - return CMD_TRANSFORM_ROTATE_X; - - if (name == "rotateY") - return CMD_TRANSFORM_ROTATE_Y; - - if (name == "rotateZ") - return CMD_TRANSFORM_ROTATE_Z; - - if (name == "skewX") - return CMD_TRANSFORM_SKEW_X; - - if (name == "skewY") - return CMD_TRANSFORM_SKEW_Y; - - if (name == "matrix") - return CMD_TRANSFORM_MATRIX; - - if (name == "perspective") - return CMD_TRANSFORM_PERSPECTIVE; - - throw std::runtime_error("[Reanimated] Unsupported transform: " + name); - }; - - UpdatesBatch synchronousUpdatesBatch, shadowTreeUpdatesBatch; - - for (const auto &[shadowNode, props] : updatesBatch) { - bool hasOnlySynchronousProps = true; - for (const auto &key : props.keys()) { - const auto keyStr = key.asString(); - if (!synchronousProps.contains(keyStr)) { - hasOnlySynchronousProps = false; - break; - } - } - if (hasOnlySynchronousProps) { - synchronousUpdatesBatch.emplace_back(shadowNode, props); - } else { - shadowTreeUpdatesBatch.emplace_back(shadowNode, props); - } - } - - if (!synchronousUpdatesBatch.empty()) { - std::vector intBuffer; - std::vector doubleBuffer; - intBuffer.reserve(1024); - doubleBuffer.reserve(1024); - - for (const auto &[shadowNode, props] : synchronousUpdatesBatch) { - intBuffer.push_back(CMD_START_OF_VIEW); - intBuffer.push_back(shadowNode->getTag()); - for (const auto &[key, value] : props.items()) { - const auto command = propNameToCommand(key.getString()); - switch (command) { - case CMD_OPACITY: - case CMD_ELEVATION: - case CMD_Z_INDEX: - case CMD_SHADOW_OPACITY: - case CMD_SHADOW_RADIUS: - intBuffer.push_back(command); - doubleBuffer.push_back(value.asDouble()); - break; - - case CMD_BACKGROUND_COLOR: - case CMD_COLOR: - case CMD_TINT_COLOR: - case CMD_BORDER_COLOR: - case CMD_BORDER_TOP_COLOR: - case CMD_BORDER_BOTTOM_COLOR: - case CMD_BORDER_LEFT_COLOR: - case CMD_BORDER_RIGHT_COLOR: - case CMD_BORDER_START_COLOR: - case CMD_BORDER_END_COLOR: - intBuffer.push_back(command); - intBuffer.push_back(value.asInt()); - break; - - case CMD_BORDER_RADIUS: - case CMD_BORDER_TOP_LEFT_RADIUS: - case CMD_BORDER_TOP_RIGHT_RADIUS: - case CMD_BORDER_TOP_START_RADIUS: - case CMD_BORDER_TOP_END_RADIUS: - case CMD_BORDER_BOTTOM_LEFT_RADIUS: - case CMD_BORDER_BOTTOM_RIGHT_RADIUS: - case CMD_BORDER_BOTTOM_START_RADIUS: - case CMD_BORDER_BOTTOM_END_RADIUS: - case CMD_BORDER_START_START_RADIUS: - case CMD_BORDER_START_END_RADIUS: - case CMD_BORDER_END_START_RADIUS: - case CMD_BORDER_END_END_RADIUS: - intBuffer.push_back(command); - if (value.isDouble()) { - intBuffer.push_back(CMD_UNIT_PX); - doubleBuffer.push_back(value.getDouble()); - } else if (value.isString()) { - const auto &valueStr = value.getString(); - if (!valueStr.ends_with("%")) { - throw std::runtime_error( - "[Reanimated] Border radius string must be a percentage"); - } - intBuffer.push_back(CMD_UNIT_PERCENT); - doubleBuffer.push_back(std::stof(valueStr.substr(0, -1))); - } else { - throw std::runtime_error( - "[Reanimated] Border radius value must be either a number or a string"); - } - break; - - case CMD_START_OF_TRANSFORM: - intBuffer.push_back(command); - react_native_assert( - value.isArray() && - "[Reanimated] Transform value must be an array"); - for (const auto &item : value) { - react_native_assert( - item.isObject() && - "[Reanimated] Transform array item must be an object"); - react_native_assert( - item.size() == 1 && - "[Reanimated] Transform array item must have exactly one key-value pair"); - const auto transformCommand = - transformNameToCommand(item.keys().begin()->getString()); - const auto &transformValue = *item.values().begin(); - switch (transformCommand) { - case CMD_TRANSFORM_SCALE: - case CMD_TRANSFORM_SCALE_X: - case CMD_TRANSFORM_SCALE_Y: - case CMD_TRANSFORM_PERSPECTIVE: { - intBuffer.push_back(transformCommand); - doubleBuffer.push_back(transformValue.asDouble()); - break; - } - - case CMD_TRANSFORM_TRANSLATE_X: - case CMD_TRANSFORM_TRANSLATE_Y: { - intBuffer.push_back(transformCommand); - if (transformValue.isDouble()) { - intBuffer.push_back(CMD_UNIT_PX); - doubleBuffer.push_back(transformValue.getDouble()); - } else if (transformValue.isString()) { - const auto &transformValueStr = - transformValue.getString(); - if (!transformValueStr.ends_with("%")) { - throw std::runtime_error( - "[Reanimated] String translate must be a percentage"); - } - intBuffer.push_back(CMD_UNIT_PERCENT); - doubleBuffer.push_back( - std::stof(transformValueStr.substr(0, -1))); - } else { - throw std::runtime_error( - "[Reanimated] Translate value must be either a number or a string"); - } - break; - } - - case CMD_TRANSFORM_ROTATE: - case CMD_TRANSFORM_ROTATE_X: - case CMD_TRANSFORM_ROTATE_Y: - case CMD_TRANSFORM_ROTATE_Z: - case CMD_TRANSFORM_SKEW_X: - case CMD_TRANSFORM_SKEW_Y: { - const auto &transformValueStr = - transformValue.getString(); - intBuffer.push_back(transformCommand); - if (transformValueStr.ends_with("deg")) { - intBuffer.push_back(CMD_UNIT_DEG); - } else if (transformValueStr.ends_with("rad")) { - intBuffer.push_back(CMD_UNIT_RAD); - } else { - throw std::runtime_error( - "[Reanimated] Unsupported rotation unit: " + - transformValueStr); - } - doubleBuffer.push_back( - std::stof(transformValueStr.substr(0, -3))); - break; - } - - case CMD_TRANSFORM_MATRIX: { - intBuffer.push_back(transformCommand); - react_native_assert( - transformValue.isArray() && - "[Reanimated] Matrix must be an array"); - int size = transformValue.size(); - intBuffer.push_back(size); - for (int i = 0; i < size; i++) { - doubleBuffer.push_back(transformValue[i].asDouble()); - } - break; - } - } - } - intBuffer.push_back(CMD_END_OF_TRANSFORM); - break; - } - } - intBuffer.push_back(CMD_END_OF_VIEW); - } - synchronouslyUpdateUIPropsFunction_(intBuffer, doubleBuffer); - } - - updatesBatch = std::move(shadowTreeUpdatesBatch); - } -#endif // ANDROID - - if ((updatesBatch.size() > 0) && - updatesRegistryManager_->shouldReanimatedSkipCommit()) { - updatesRegistryManager_->pleaseCommitAfterPause(); - } - } - - if (updatesRegistryManager_->shouldReanimatedSkipCommit()) { - // It may happen that `performOperations` is called on the UI thread - // while React Native tries to commit a new tree on the JS thread. - // In this case, we should skip the commit here and let React Native do - // it. The commit will include the current values from the updates manager - // which will be applied in ReanimatedCommitHook. - return; - } - - commitUpdates(rt, updatesBatch); - - // Clear the entire cache after the commit - // (we don't know if the view is updated from outside of Reanimated - // so we have to clear the entire cache) - viewStylesRepository_->clearNodesCache(); -} - -void ReanimatedModuleProxy::requestFlushRegistry() { - requestRender_([weakThis = weak_from_this()](const double timestamp) { - if (auto strongThis = weakThis.lock()) { - strongThis->shouldFlushRegistry_ = true; - } - }); -} - -void ReanimatedModuleProxy::commitUpdates( - jsi::Runtime &rt, - const UpdatesBatch &updatesBatch) { - ReanimatedSystraceSection s("ReanimatedModuleProxy::commitUpdates"); - react_native_assert(uiManager_ != nullptr); - const auto &shadowTreeRegistry = uiManager_->getShadowTreeRegistry(); - - std::unordered_map propsMapBySurface; - -#ifdef ANDROID - updatesRegistryManager_->collectPropsToRevertBySurface(propsMapBySurface); -#endif - - if (shouldFlushRegistry_) { - shouldFlushRegistry_ = false; - const auto propsMap = updatesRegistryManager_->collectProps(); - for (auto const &[family, props] : propsMap) { - const auto surfaceId = family->getSurfaceId(); - auto &propsVector = propsMapBySurface[surfaceId][family]; - for (const auto &prop : props) { - propsVector.emplace_back(prop); - } - } - } else { - for (auto const &[shadowNode, props] : updatesBatch) { - SurfaceId surfaceId = shadowNode->getSurfaceId(); - auto family = &shadowNode->getFamily(); - react_native_assert(family->getSurfaceId() == surfaceId); - propsMapBySurface[surfaceId][family].emplace_back(std::move(props)); - } - } - - for (auto const &[surfaceId, propsMap] : propsMapBySurface) { - shadowTreeRegistry.visit(surfaceId, [&](ShadowTree const &shadowTree) { - const auto status = shadowTree.commit( - [&](RootShadowNode const &oldRootShadowNode) - -> RootShadowNode::Unshared { - if (updatesRegistryManager_->shouldReanimatedSkipCommit()) { - return nullptr; - } - - auto rootNode = - cloneShadowTreeWithNewProps(oldRootShadowNode, propsMap); - - // Mark the commit as Reanimated commit so that we can distinguish - // it in ReanimatedCommitHook. - - auto reaShadowNode = - std::reinterpret_pointer_cast( - rootNode); - reaShadowNode->setReanimatedCommitTrait(); - - return rootNode; - }, - {/* .enableStateReconciliation = */ - false, - /* .mountSynchronously = */ true}); - -#ifdef ANDROID - if (status == ShadowTree::CommitStatus::Succeeded) { - updatesRegistryManager_->clearPropsToRevert(surfaceId); - } -#endif - }); - } -} - -void ReanimatedModuleProxy::dispatchCommand( - jsi::Runtime &rt, - const jsi::Value &shadowNodeValue, - const jsi::Value &commandNameValue, - const jsi::Value &argsValue) { - const auto shadowNode = shadowNodeFromValue(rt, shadowNodeValue); - std::string commandName = stringFromValue(rt, commandNameValue); - folly::dynamic args = commandArgsFromValue(rt, argsValue); - const auto &scheduler = static_cast(uiManager_->getDelegate()); - - if (!scheduler) { - return; - } - - const auto &schedulerDelegate = scheduler->getDelegate(); - - if (schedulerDelegate) { - const auto shadowView = ShadowView(*shadowNode); - schedulerDelegate->schedulerDidDispatchCommand( - shadowView, commandName, args); - } -} - -jsi::String ReanimatedModuleProxy::obtainProp( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &propName) { - jsi::Runtime &uiRuntime = - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(); - const auto propNameStr = propName.asString(rt).utf8(rt); - const auto shadowNode = shadowNodeFromValue(rt, shadowNodeWrapper); - const auto resultStr = - obtainPropFromShadowNode(uiRuntime, propNameStr, shadowNode); - return jsi::String::createFromUtf8(rt, resultStr); -} - -jsi::Value ReanimatedModuleProxy::measure( - jsi::Runtime &rt, - const jsi::Value &shadowNodeValue) { - // based on implementation from UIManagerBinding.cpp - - auto shadowNode = shadowNodeFromValue(rt, shadowNodeValue); - auto layoutMetrics = uiManager_->getRelativeLayoutMetrics( - *shadowNode, nullptr, {/* .includeTransform = */ true}); - - if (layoutMetrics == EmptyLayoutMetrics) { - // Originally, in this case React Native returns `{0, 0, 0, 0, 0, 0}`, - // most likely due to the type of measure callback function which accepts - // just an array of numbers (not null). In Reanimated, `measure` returns - // `MeasuredDimensions | null`. - return jsi::Value::null(); - } - auto newestCloneOfShadowNode = - uiManager_->getNewestCloneOfShadowNode(*shadowNode); - - auto layoutableShadowNode = - dynamic_cast(newestCloneOfShadowNode.get()); - facebook::react::Point originRelativeToParent = - layoutableShadowNode != nullptr - ? layoutableShadowNode->getLayoutMetrics().frame.origin - : facebook::react::Point(); - - auto frame = layoutMetrics.frame; - - jsi::Object result(rt); - result.setProperty( - rt, "x", jsi::Value(static_cast(originRelativeToParent.x))); - result.setProperty( - rt, "y", jsi::Value(static_cast(originRelativeToParent.y))); - result.setProperty( - rt, "width", jsi::Value(static_cast(frame.size.width))); - result.setProperty( - rt, "height", jsi::Value(static_cast(frame.size.height))); - result.setProperty( - rt, "pageX", jsi::Value(static_cast(frame.origin.x))); - result.setProperty( - rt, "pageY", jsi::Value(static_cast(frame.origin.y))); - return result; -} - -void ReanimatedModuleProxy::initializeFabric( - const std::shared_ptr &uiManager) { - uiManager_ = uiManager; - viewStylesRepository_->setUIManager(uiManager_); - - initializeLayoutAnimationsProxy(); - - const std::function request = [weakThis = weak_from_this()]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - - strongThis->requestFlushRegistry(); - }; - mountHook_ = std::make_shared( - uiManager_, updatesRegistryManager_, request); - commitHook_ = std::make_shared( - uiManager_, updatesRegistryManager_, layoutAnimationsProxy_); -} - -void ReanimatedModuleProxy::initializeLayoutAnimationsProxy() { - uiManager_->setAnimationDelegate(nullptr); - auto scheduler = reinterpret_cast(uiManager_->getDelegate()); - auto componentDescriptorRegistry = - scheduler->getContextContainer() - ->at>( - "ComponentDescriptorRegistry_DO_NOT_USE_PRETTY_PLEASE") - .lock(); - - if (componentDescriptorRegistry) { - layoutAnimationsProxy_ = std::make_shared( - layoutAnimationsManager_, - componentDescriptorRegistry, - scheduler->getContextContainer(), - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(), - workletsModuleProxy_->getUIScheduler()); - } -} - -#ifdef IS_REANIMATED_EXAMPLE_APP - -std::string format(bool b) { - return b ? "✅" : "❌"; -} - -std::function -ReanimatedModuleProxy::createRegistriesLeakCheck() { - return [weakThis = weak_from_this()]() { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return std::string(""); - } - - std::string result = ""; - - result += "AnimatedPropsRegistry: " + - format(strongThis->animatedPropsRegistry_->isEmpty()); - result += "\nCSSAnimationsRegistry: " + - format(strongThis->cssAnimationsRegistry_->isEmpty()); - result += "\nCSSTransitionsRegistry: " + - format(strongThis->cssTransitionsRegistry_->isEmpty()); - result += "\nStaticPropsRegistry: " + - format(strongThis->staticPropsRegistry_->isEmpty()) + "\n"; - - return result; - }; -} - -#endif // IS_REANIMATED_EXAMPLE_APP - -jsi::Value ReanimatedModuleProxy::subscribeForKeyboardEvents( - jsi::Runtime &rt, - const jsi::Value &handlerWorklet, - const jsi::Value &isStatusBarTranslucent, - const jsi::Value &isNavigationBarTranslucent) { - auto serializableHandler = extractSerializableOrThrow( - rt, - handlerWorklet, - "[Reanimated] Keyboard event handler must be a worklet."); - return subscribeForKeyboardEventsFunction_( - [=, weakThis = weak_from_this()](int keyboardState, int height) { - auto strongThis = weakThis.lock(); - if (!strongThis) { - return; - } - strongThis->workletsModuleProxy_->getUIWorkletRuntime()->runGuarded( - serializableHandler, jsi::Value(keyboardState), jsi::Value(height)); - }, - isStatusBarTranslucent.getBool(), - isNavigationBarTranslucent.getBool()); -} - -void ReanimatedModuleProxy::unsubscribeFromKeyboardEvents( - jsi::Runtime &, - const jsi::Value &listenerId) { - unsubscribeFromKeyboardEventsFunction_(listenerId.asNumber()); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h deleted file mode 100644 index 9e0599a0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h +++ /dev/null @@ -1,265 +0,0 @@ -#pragma once - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -namespace reanimated { - -using namespace facebook; -using namespace css; - -using UpdatesBatch = - std::vector, folly::dynamic>>; - -class ReanimatedModuleProxy - : public ReanimatedModuleProxySpec, - public std::enable_shared_from_this { - public: - ReanimatedModuleProxy( - const std::shared_ptr &workletsModuleProxy, - jsi::Runtime &rnRuntime, - const std::shared_ptr &jsCallInvoker, - const PlatformDepMethodsHolder &platformDepMethodsHolder, - const bool isReducedMotion); - - // We need this init method to initialize callbacks with - // weak_from_this() which is available only after the object - // is fully constructed. - void init(const PlatformDepMethodsHolder &platformDepMethodsHolder); - - ~ReanimatedModuleProxy(); - - jsi::Value registerEventHandler( - jsi::Runtime &rt, - const jsi::Value &worklet, - const jsi::Value &eventName, - const jsi::Value &emitterReactTag) override; - void unregisterEventHandler( - jsi::Runtime &rt, - const jsi::Value ®istrationId) override; - - jsi::Value getViewProp( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &propName, - const jsi::Value &callback) override; - - jsi::Value getStaticFeatureFlag(jsi::Runtime &rt, const jsi::Value &name) - override; - jsi::Value setDynamicFeatureFlag( - jsi::Runtime &rt, - const jsi::Value &name, - const jsi::Value &value) override; - - jsi::Value configureLayoutAnimationBatch( - jsi::Runtime &rt, - const jsi::Value &layoutAnimationsBatch) override; - void setShouldAnimateExiting( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &shouldAnimate) override; - - void onRender(double timestampMs); - - bool isAnyHandlerWaitingForEvent( - const std::string &eventName, - const int emitterReactTag); - - void maybeRequestRender(); - - bool handleEvent( - const std::string &eventName, - const int emitterReactTag, - const jsi::Value &payload, - double currentTime); - - inline std::shared_ptr getJSLogger() const { - return jsLogger_; - } - - bool handleRawEvent(const RawEvent &rawEvent, double currentTime); - - void maybeRunCSSLoop(); - double getCssTimestamp(); - - void performOperations(); - - void setViewStyle( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &viewStyle) override; - - void markNodeAsRemovable( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper) override; - void unmarkNodeAsRemovable(jsi::Runtime &rt, const jsi::Value &viewTag) - override; - - void registerCSSKeyframes( - jsi::Runtime &rt, - const jsi::Value &animationName, - const jsi::Value &viewName, - const jsi::Value &keyframesConfig) override; - void unregisterCSSKeyframes( - jsi::Runtime &rt, - const jsi::Value &animationName, - const jsi::Value &viewName) override; - - void applyCSSAnimations( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &animationUpdates) override; - void unregisterCSSAnimations(const jsi::Value &viewTag) override; - - void registerCSSTransition( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &transitionConfig) override; - void updateCSSTransition( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &configUpdates) override; - void unregisterCSSTransition(jsi::Runtime &rt, const jsi::Value &viewTag) - override; - - void cssLoopCallback(const double /*timestampMs*/); - - void dispatchCommand( - jsi::Runtime &rt, - const jsi::Value &shadowNodeValue, - const jsi::Value &commandNameValue, - const jsi::Value &argsValue); - - jsi::String obtainProp( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &propName); - - jsi::Value measure(jsi::Runtime &rt, const jsi::Value &shadowNodeValue); - - void initializeFabric(const std::shared_ptr &uiManager); - - void initializeLayoutAnimationsProxy(); - - std::string obtainPropFromShadowNode( - jsi::Runtime &rt, - const std::string &propName, - const std::shared_ptr &shadowNode); - - jsi::Value registerSensor( - jsi::Runtime &rt, - const jsi::Value &sensorType, - const jsi::Value &interval, - const jsi::Value &iosReferenceFrame, - const jsi::Value &sensorDataContainer) override; - void unregisterSensor(jsi::Runtime &rt, const jsi::Value &sensorId) override; - - void cleanupSensors(); - - jsi::Value subscribeForKeyboardEvents( - jsi::Runtime &rt, - const jsi::Value &keyboardEventContainer, - const jsi::Value &isStatusBarTranslucent, - const jsi::Value &isNavigationBarTranslucent) override; - void unsubscribeFromKeyboardEvents( - jsi::Runtime &rt, - const jsi::Value &listenerId) override; - - inline LayoutAnimationsManager &layoutAnimationsManager() { - return *layoutAnimationsManager_; - } - - [[nodiscard]] inline bool isReducedMotion() const { - return isReducedMotion_; - } - - [[nodiscard]] inline std::shared_ptr - getWorkletsModuleProxy() const { - return workletsModuleProxy_; - } - - void requestFlushRegistry(); - std::function createRegistriesLeakCheck(); - - private: - void commitUpdates(jsi::Runtime &rt, const UpdatesBatch &updatesBatch); - - const bool isReducedMotion_; - bool shouldFlushRegistry_ = false; - std::shared_ptr workletsModuleProxy_; - - std::unique_ptr eventHandlerRegistry_; - const RequestRenderFunction requestRender_; - std::vector> frameCallbacks_; - volatile bool renderRequested_{false}; - std::function onRenderCallback_; - AnimatedSensorModule animatedSensorModule_; - const std::shared_ptr jsLogger_; - std::shared_ptr layoutAnimationsManager_; - GetAnimationTimestampFunction getAnimationTimestamp_; - - bool cssLoopRunning_{false}; - bool shouldUpdateCssAnimations_{true}; - double currentCssTimestamp_{0}; - - const std::shared_ptr animatedPropsRegistry_; - const std::shared_ptr staticPropsRegistry_; - const std::shared_ptr updatesRegistryManager_; - const std::shared_ptr viewStylesRepository_; - const std::shared_ptr cssAnimationKeyframesRegistry_; - const std::shared_ptr cssAnimationsRegistry_; - const std::shared_ptr cssTransitionsRegistry_; - - const SynchronouslyUpdateUIPropsFunction synchronouslyUpdateUIPropsFunction_; - - std::shared_ptr uiManager_; - std::shared_ptr layoutAnimationsProxy_; - std::shared_ptr commitHook_; - std::shared_ptr mountHook_; - std::set layoutAnimationFlushRequests_; - bool layoutAnimationRenderRequested_; - - const KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction_; - const KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction_; - -#ifndef NDEBUG - worklets::SingleInstanceChecker singleInstanceChecker_; -#endif // NDEBUG -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp deleted file mode 100644 index 8a290e09..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp +++ /dev/null @@ -1,278 +0,0 @@ -#include - -#include - -#define REANIMATED_SPEC_PREFIX(FN_NAME) \ - __hostFunction_ReanimatedModuleProxySpec_##FN_NAME - -namespace reanimated { - -static jsi::Value REANIMATED_SPEC_PREFIX(registerEventHandler)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - return static_cast(&turboModule) - ->registerEventHandler( - rt, std::move(args[0]), std::move(args[1]), std::move(args[2])); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unregisterEventHandler)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unregisterEventHandler(rt, std::move(args[0])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(getViewProp)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->getViewProp( - rt, std::move(args[0]), std::move(args[1]), std::move(args[2])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(registerSensor)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - return static_cast(&turboModule) - ->registerSensor( - rt, - std::move(args[0]), - std::move(args[1]), - std::move(args[2]), - std::move(args[3])); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unregisterSensor)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unregisterSensor(rt, std::move(args[0])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(getStaticFeatureFlag)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - return static_cast(&turboModule) - ->getStaticFeatureFlag(rt, std::move(args[0])); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(setDynamicFeatureFlag)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->setDynamicFeatureFlag(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(subscribeForKeyboardEvents)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - return static_cast(&turboModule) - ->subscribeForKeyboardEvents( - rt, std::move(args[0]), std::move(args[1]), std::move(args[2])); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unsubscribeFromKeyboardEvents)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unsubscribeFromKeyboardEvents(rt, std::move(args[0])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(configureLayoutAnimationBatch)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - return static_cast(&turboModule) - ->configureLayoutAnimationBatch(rt, std::move(args[0])); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(setShouldAnimateExiting)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->setShouldAnimateExiting(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(setViewStyle)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->setViewStyle(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(markNodeAsRemovable)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->markNodeAsRemovable(rt, std::move(args[0])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unmarkNodeAsRemovable)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unmarkNodeAsRemovable(rt, std::move(args[0])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(registerCSSKeyframes)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->registerCSSKeyframes( - rt, std::move(args[0]), std::move(args[1]), std::move(args[2])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unregisterCSSKeyframes)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unregisterCSSKeyframes(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(applyCSSAnimations)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->applyCSSAnimations(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unregisterCSSAnimations)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unregisterCSSAnimations(std::move(args[0])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(registerCSSTransition)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->registerCSSTransition(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(updateCSSTransition)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->updateCSSTransition(rt, std::move(args[0]), std::move(args[1])); - return jsi::Value::undefined(); -} - -static jsi::Value REANIMATED_SPEC_PREFIX(unregisterCSSTransition)( - jsi::Runtime &rt, - TurboModule &turboModule, - const jsi::Value *args, - size_t) { - static_cast(&turboModule) - ->unregisterCSSTransition(rt, std::move(args[0])); - return jsi::Value::undefined(); -} - -ReanimatedModuleProxySpec::ReanimatedModuleProxySpec( - const std::shared_ptr &jsInvoker) - : TurboModule("NativeReanimated", jsInvoker) { - methodMap_["registerEventHandler"] = - MethodMetadata{3, REANIMATED_SPEC_PREFIX(registerEventHandler)}; - methodMap_["unregisterEventHandler"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterEventHandler)}; - - methodMap_["getViewProp"] = - MethodMetadata{3, REANIMATED_SPEC_PREFIX(getViewProp)}; - methodMap_["registerSensor"] = - MethodMetadata{4, REANIMATED_SPEC_PREFIX(registerSensor)}; - methodMap_["getStaticFeatureFlag"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(getStaticFeatureFlag)}; - methodMap_["unregisterSensor"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterSensor)}; - methodMap_["setDynamicFeatureFlag"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(setDynamicFeatureFlag)}; - methodMap_["subscribeForKeyboardEvents"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(subscribeForKeyboardEvents)}; - methodMap_["unsubscribeFromKeyboardEvents"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(unsubscribeFromKeyboardEvents)}; - - methodMap_["configureLayoutAnimationBatch"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(configureLayoutAnimationBatch)}; - methodMap_["setShouldAnimateExitingForTag"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(setShouldAnimateExiting)}; - - methodMap_["setViewStyle"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(setViewStyle)}; - - methodMap_["markNodeAsRemovable"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(markNodeAsRemovable)}; - methodMap_["unmarkNodeAsRemovable"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(unmarkNodeAsRemovable)}; - - methodMap_["registerCSSKeyframes"] = - MethodMetadata{3, REANIMATED_SPEC_PREFIX(registerCSSKeyframes)}; - methodMap_["unregisterCSSKeyframes"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(unregisterCSSKeyframes)}; - - methodMap_["applyCSSAnimations"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(applyCSSAnimations)}; - methodMap_["unregisterCSSAnimations"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterCSSAnimations)}; - - methodMap_["registerCSSTransition"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(registerCSSTransition)}; - methodMap_["updateCSSTransition"] = - MethodMetadata{2, REANIMATED_SPEC_PREFIX(updateCSSTransition)}; - methodMap_["unregisterCSSTransition"] = - MethodMetadata{1, REANIMATED_SPEC_PREFIX(unregisterCSSTransition)}; -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h deleted file mode 100644 index 11b281bc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h +++ /dev/null @@ -1,125 +0,0 @@ -#pragma once - -#include -#include - -#include -#include -#include - -using namespace facebook; -using namespace react; - -namespace reanimated { - -class JSI_EXPORT ReanimatedModuleProxySpec : public TurboModule { - protected: - explicit ReanimatedModuleProxySpec( - const std::shared_ptr &jsInvoker); - - public: - // events - virtual jsi::Value registerEventHandler( - jsi::Runtime &rt, - const jsi::Value &worklet, - const jsi::Value &eventName, - const jsi::Value &emitterReactTag) = 0; - virtual void unregisterEventHandler( - jsi::Runtime &rt, - const jsi::Value ®istrationId) = 0; - - // views - virtual jsi::Value getViewProp( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &propName, - const jsi::Value &callback) = 0; - - // sensors - virtual jsi::Value registerSensor( - jsi::Runtime &rt, - const jsi::Value &sensorType, - const jsi::Value &interval, - const jsi::Value &iosReferenceFrame, - const jsi::Value &sensorDataContainer) = 0; - virtual void unregisterSensor( - jsi::Runtime &rt, - const jsi::Value &sensorId) = 0; - - // keyboard - virtual jsi::Value subscribeForKeyboardEvents( - jsi::Runtime &rt, - const jsi::Value &keyboardEventContainer, - const jsi::Value &isStatusBarTranslucent, - const jsi::Value &isNavigationBarTranslucent) = 0; - virtual void unsubscribeFromKeyboardEvents( - jsi::Runtime &rt, - const jsi::Value &listenerId) = 0; - - // feature flags - virtual jsi::Value getStaticFeatureFlag( - jsi::Runtime &rt, - const jsi::Value &name) = 0; - - virtual jsi::Value setDynamicFeatureFlag( - jsi::Runtime &rt, - const jsi::Value &name, - const jsi::Value &value) = 0; - - // layout animations - virtual jsi::Value configureLayoutAnimationBatch( - jsi::Runtime &rt, - const jsi::Value &layoutAnimationsBatch) = 0; - - virtual void setShouldAnimateExiting( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &shouldAnimate) = 0; - - // JS View style - virtual void setViewStyle( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &viewStyle) = 0; - - // Cleanup - virtual void markNodeAsRemovable( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper) = 0; - virtual void unmarkNodeAsRemovable( - jsi::Runtime &rt, - const jsi::Value &viewTag) = 0; - - // CSS animation keyframes - virtual void registerCSSKeyframes( - jsi::Runtime &rt, - const jsi::Value &animationName, - const jsi::Value &viewName, - const jsi::Value &keyframesConfig) = 0; - virtual void unregisterCSSKeyframes( - jsi::Runtime &rt, - const jsi::Value &animationName, - const jsi::Value &viewName) = 0; - - // CSS animations - virtual void applyCSSAnimations( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &animationUpdates) = 0; - virtual void unregisterCSSAnimations(const jsi::Value &viewTag) = 0; - - // CSS transitions - virtual void registerCSSTransition( - jsi::Runtime &rt, - const jsi::Value &shadowNodeWrapper, - const jsi::Value &transitionConfig) = 0; - virtual void updateCSSTransition( - jsi::Runtime &rt, - const jsi::Value &viewTag, - const jsi::Value &configUpdates) = 0; - virtual void unregisterCSSTransition( - jsi::Runtime &rt, - const jsi::Value &viewTag) = 0; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.cpp deleted file mode 100644 index f5d77348..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include -#include - -namespace reanimated { - -void RNRuntimeDecorator::decorate( - jsi::Runtime &rnRuntime, - jsi::Runtime &uiRuntime, - const std::shared_ptr &reanimatedModuleProxy) { - auto workletRuntimeValue = - rnRuntime.global() - .getPropertyAsObject(rnRuntime, "ArrayBuffer") - .asFunction(rnRuntime) - .callAsConstructor(rnRuntime, {static_cast(sizeof(void *))}); - uintptr_t *workletRuntimeData = reinterpret_cast( - workletRuntimeValue.getObject(rnRuntime).getArrayBuffer(rnRuntime).data( - rnRuntime)); - workletRuntimeData[0] = reinterpret_cast(&uiRuntime); - rnRuntime.global().setProperty( - rnRuntime, "_WORKLET_RUNTIME", workletRuntimeValue); - -#ifndef NDEBUG - checkJSVersion(rnRuntime, reanimatedModuleProxy->getJSLogger()); -#endif // NDEBUG - -#ifdef IS_REANIMATED_EXAMPLE_APP - installDebugBindings(rnRuntime, reanimatedModuleProxy); -#endif // IS_REANIMATED_EXAMPLE_APP - - injectReanimatedCppVersion(rnRuntime); - - rnRuntime.global().setProperty( - rnRuntime, - "_REANIMATED_IS_REDUCED_MOTION", - reanimatedModuleProxy->isReducedMotion()); - - rnRuntime.global().setProperty( - rnRuntime, - "__reanimatedModuleProxy", - jsi::Object::createFromHostObject(rnRuntime, reanimatedModuleProxy)); -} - -#ifdef IS_REANIMATED_EXAMPLE_APP -void RNRuntimeDecorator::installDebugBindings( - jsi::Runtime &rnRuntime, - const std::shared_ptr &reanimatedModuleProxy) { -#if TARGET_OS_X - jsi_utils::installJsiFunction( - rnRuntime, - "__getTagFromShadowNodeWrapper", - [](jsi::Runtime &rt, const jsi::Value &shadowNodeWrapper) { - auto node = Bridging>::fromJs( - rt, shadowNodeWrapper); - return jsi::Value(rt, static_cast(node->getTag())); - }); -#endif // TARGET_OS_X - - jsi_utils::installJsiFunction( - rnRuntime, - "_registriesLeakCheck", - reanimatedModuleProxy->createRegistriesLeakCheck()); -} -#endif // IS_REANIMATED_EXAMPLE_APP - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.h deleted file mode 100644 index 0d627de1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/RNRuntimeDecorator.h +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include - -#include - -#include - -using namespace facebook; - -namespace reanimated { - -class RNRuntimeDecorator { - public: - static void decorate( - jsi::Runtime &rnRuntime, - jsi::Runtime &uiRuntime, - const std::shared_ptr &reanimatedModuleProxy); - -#ifdef IS_REANIMATED_EXAMPLE_APP - private: - static void installDebugBindings( - jsi::Runtime &rnRuntime, - const std::shared_ptr &reanimatedModuleProxy); -#endif // IS_REANIMATED_EXAMPLE_APP -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.cpp deleted file mode 100644 index 8ffb2d71..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include -#include - -namespace reanimated { - -using namespace worklets; - -void UIRuntimeDecorator::decorate( - jsi::Runtime &uiRuntime, - const ObtainPropFunction obtainPropFunction, - const UpdatePropsFunction updateProps, - const MeasureFunction measure, - const DispatchCommandFunction dispatchCommand, - const GetAnimationTimestampFunction getAnimationTimestamp, - const SetGestureStateFunction setGestureState, - const ProgressLayoutAnimationFunction progressLayoutAnimation, - const EndLayoutAnimationFunction endLayoutAnimation, - const MaybeFlushUIUpdatesQueueFunction maybeFlushUIUpdatesQueue) { - jsi_utils::installJsiFunction(uiRuntime, "_updateProps", updateProps); - jsi_utils::installJsiFunction(uiRuntime, "_dispatchCommand", dispatchCommand); - jsi_utils::installJsiFunction(uiRuntime, "_measure", measure); - - jsi_utils::installJsiFunction( - uiRuntime, "_getAnimationTimestamp", getAnimationTimestamp); - - jsi_utils::installJsiFunction( - uiRuntime, "_notifyAboutProgress", progressLayoutAnimation); - jsi_utils::installJsiFunction( - uiRuntime, "_notifyAboutEnd", endLayoutAnimation); - - jsi_utils::installJsiFunction(uiRuntime, "_setGestureState", setGestureState); - - const auto microtaskQueueFinalizers = - uiRuntime.global() - .getProperty(uiRuntime, "_microtaskQueueFinalizers") - .asObject(uiRuntime) - .asArray(uiRuntime); - - microtaskQueueFinalizers.getPropertyAsFunction(uiRuntime, "push") - .callWithThis( - uiRuntime, - microtaskQueueFinalizers, - jsi::Function::createFromHostFunction( - uiRuntime, - jsi::PropNameID::forAscii(uiRuntime, "_maybeFlushUIUpdatesQueue"), - 0, - jsi_utils::createHostFunction(maybeFlushUIUpdatesQueue))); - - jsi_utils::installJsiFunction(uiRuntime, "_obtainProp", obtainPropFunction); -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.h deleted file mode 100644 index d46d9678..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/RuntimeDecorators/UIRuntimeDecorator.h +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include - -#include - -using namespace facebook; - -namespace reanimated { - -class UIRuntimeDecorator { - public: - static void decorate( - jsi::Runtime &uiRuntime, - const ObtainPropFunction obtainPropFunction, - const UpdatePropsFunction updateProps, - const MeasureFunction measure, - const DispatchCommandFunction dispatchCommand, - const GetAnimationTimestampFunction getAnimationTimestamp, - const SetGestureStateFunction setGestureState, - const ProgressLayoutAnimationFunction progressLayoutAnimation, - const EndLayoutAnimationFunction endLayoutAnimation, - const MaybeFlushUIUpdatesQueueFunction maybeFlushUIUpdatesQueue); -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/FeatureFlags.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/FeatureFlags.cpp deleted file mode 100644 index 62620c6d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/FeatureFlags.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include - -namespace reanimated { - -std::unordered_map DynamicFeatureFlags::flags_; - -bool DynamicFeatureFlags::getFlag(const std::string &name) { - return flags_.contains(name) && flags_[name]; -} - -void DynamicFeatureFlags::setFlag(const std::string &name, bool value) { - flags_[name] = value; -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/FeatureFlags.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/FeatureFlags.h deleted file mode 100644 index b42d6855..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/FeatureFlags.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once -#include -#include - -namespace reanimated { - -class StaticFeatureFlags { - public: -#ifdef REANIMATED_FEATURE_FLAGS - -// Convert the value under x into a string -#define XTOSTRING(x) #x -// Evaluate the flag value; without this step, it would stringify the flag name -// itself instead of the flag value -#define TOSTRING(x) XTOSTRING(x) - - static constexpr bool getFlag(const std::string_view &name) { - std::string nameStr = name.data(); - std::string featureFlags = TOSTRING(REANIMATED_FEATURE_FLAGS); - if (featureFlags.find("[" + nameStr + ":") == std::string::npos) { - throw std::logic_error("Unable to recognize flag: " + nameStr); - } - return featureFlags.find("[" + nameStr + ":true]") != std::string::npos; - } - -#else - - static constexpr bool getFlag(const std::string_view &) { - return false; - } - -#endif -}; - -class DynamicFeatureFlags { - public: - static bool getFlag(const std::string &name); - static void setFlag(const std::string &name, bool value); - - private: - static std::unordered_map flags_; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/PlatformDepMethodsHolder.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/PlatformDepMethodsHolder.h deleted file mode 100644 index dbea4baa..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/PlatformDepMethodsHolder.h +++ /dev/null @@ -1,63 +0,0 @@ -#pragma once - -#include -#include -#include - -#include -#include -#include - -using namespace facebook; -using namespace react; - -namespace reanimated { - -using UpdatePropsFunction = - std::function; -using ObtainPropFunction = std::function; -using DispatchCommandFunction = std::function; -using MeasureFunction = std::function< - jsi::Value(jsi::Runtime &rt, const jsi::Value &shadowNodeValue)>; - -using RequestRenderFunction = - std::function)>; -using SynchronouslyUpdateUIPropsFunction = - std::function &, const std::vector &)>; -using GetAnimationTimestampFunction = std::function; - -using ProgressLayoutAnimationFunction = - std::function; -using EndLayoutAnimationFunction = std::function; - -using RegisterSensorFunction = - std::function)>; -using UnregisterSensorFunction = std::function; -using SetGestureStateFunction = std::function; -using KeyboardEventSubscribeFunction = - std::function, bool, bool)>; -using KeyboardEventUnsubscribeFunction = std::function; -using MaybeFlushUIUpdatesQueueFunction = std::function; - -struct PlatformDepMethodsHolder { - RequestRenderFunction requestRender; -#ifdef ANDROID - SynchronouslyUpdateUIPropsFunction synchronouslyUpdateUIPropsFunction; -#endif // ANDROID - GetAnimationTimestampFunction getAnimationTimestamp; - RegisterSensorFunction registerSensor; - UnregisterSensorFunction unregisterSensor; - SetGestureStateFunction setGestureStateFunction; - KeyboardEventSubscribeFunction subscribeForKeyboardEvents; - KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEvents; - MaybeFlushUIUpdatesQueueFunction maybeFlushUIUpdatesQueueFunction; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedSystraceSection.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedSystraceSection.h deleted file mode 100644 index c3b17e9c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedSystraceSection.h +++ /dev/null @@ -1,135 +0,0 @@ -#pragma once -#include -#include - -#ifdef REANIMATED_PROFILING - -#if defined(__APPLE__) -#include - -#if OS_LOG_TARGET_HAS_10_15_FEATURES -#include -#include -#include -#endif // OS_LOG_TARGET_HAS_10_15_FEATURES - -#elif defined(ANDROID) - -#include - -#endif // defined(ANDROID) - -#endif // REANIMATED_PROFILING - -namespace reanimated { - -#if defined(ANDROID) && defined(REANIMATED_PROFILING) - -struct ReanimatedSystraceSection { - public: - template - explicit ReanimatedSystraceSection( - const char *name, - ConvertsToStringPiece &&...args) { - ATrace_beginSection(name); - } - - ~ReanimatedSystraceSection() { - ATrace_endSection(); - } -}; - -// The apple part is copied from React Native -// from -// https://github.com/facebook/react-native/blob/5697d923a05119314b4cfcd556cb243986637764/packages/react-native/ReactCommon/cxxreact/SystraceSection.h -#elif defined(__APPLE__) && OS_LOG_TARGET_HAS_10_15_FEATURES && \ - defined(REANIMATED_PROFILING) - -template -struct renderer { - static std::string render(const T &t) { - std::ostringstream oss; - oss << t; - return oss.str(); - } -}; - -template -static auto render(const T &t) - -> decltype(renderer::render(std::declval())) { - return renderer::render(t); -} - -inline os_log_t instrumentsLogHandle = nullptr; - -static inline os_log_t getOrCreateInstrumentsLogHandle() { - if (!instrumentsLogHandle) { - instrumentsLogHandle = os_log_create( - "dev.reanimated.instruments", OS_LOG_CATEGORY_POINTS_OF_INTEREST); - } - return instrumentsLogHandle; -} - -struct ReanimatedSystraceSection { - public: - template - explicit ReanimatedSystraceSection( - const char *name, - ConvertsToStringPiece &&...args) { - os_log_t instrumentsLogHandle = - reanimated::getOrCreateInstrumentsLogHandle(); - - // If the log isn't enabled, we don't want the performance overhead of the - // rest of the code below. - if (!os_signpost_enabled(instrumentsLogHandle)) { - return; - } - - name_ = name; - - const auto argsVector = - std::vector{reanimated::render(args)...}; - std::string argsString = ""; - for (size_t i = 0; i < argsVector.size(); i += 2) { - argsString += argsVector[i] + "=" + argsVector[i + 1] + ";"; - } - - signpostID_ = os_signpost_id_make_with_pointer(instrumentsLogHandle, this); - - os_signpost_interval_begin( - instrumentsLogHandle, - signpostID_, - "Reanimated", - "%s begin: %s", - name, - argsString.c_str()); - } - - ~ReanimatedSystraceSection() { - os_signpost_interval_end( - reanimated::instrumentsLogHandle, - signpostID_, - "Reanimated", - "%s end", - name_.data()); - } - - private: - os_signpost_id_t signpostID_ = OS_SIGNPOST_ID_INVALID; - std::string_view name_; -}; - -#else - -struct ReanimatedSystraceSection { - public: - template - explicit ReanimatedSystraceSection( - const char *name, - ConvertsToStringPiece &&...args) {} -}; - -#endif // defined(__APPLE__) && OS_LOG_TARGET_HAS_10_15_FEATURES && - // defined(REANIMATED_PROFILING) - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp deleted file mode 100644 index 230b23bf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include -#include - -#include -#include - -#ifdef REANIMATED_VERSION -#define STRINGIZE(x) #x -#define STRINGIZE2(x) STRINGIZE(x) -#define REANIMATED_VERSION_STRING STRINGIZE2(REANIMATED_VERSION) -#endif // REANIMATED_VERSION - -using namespace facebook; - -namespace reanimated { - -std::string getReanimatedCppVersion() { - return std::string(REANIMATED_VERSION_STRING); -} - -void injectReanimatedCppVersion(jsi::Runtime &rnRuntime) { - auto version = getReanimatedCppVersion(); - rnRuntime.global().setProperty( - rnRuntime, - "_REANIMATED_VERSION_CPP", - jsi::String::createFromUtf8(rnRuntime, version)); -} - -#ifndef NDEBUG -void checkJSVersion( - jsi::Runtime &rnRuntime, - const std::shared_ptr &jsLogger) { - auto cppVersion = getReanimatedCppVersion(); - auto jsVersionValue = - rnRuntime.global().getProperty(rnRuntime, "_REANIMATED_VERSION_JS"); - worklets::checkJSVersion( - rnRuntime, - jsVersionValue, - jsLogger, - cppVersion, - "Reanimated", - "https://docs.swmansion.com/react-native-reanimated/"); -} -#else -void checkJSVersion( - jsi::Runtime &rnRuntime, - const std::shared_ptr &jsLogger) { - // In release builds we don't check the version, hence - // this function is a NOOP. -} -#endif // NDEBUG - -}; // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.h b/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.h deleted file mode 100644 index b4901775..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/Common/cpp/reanimated/Tools/ReanimatedVersion.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include - -#include - -#include -#include - -using namespace facebook; - -namespace reanimated { - -std::string getReanimatedCppVersion(); -void injectReanimatedCppVersion(jsi::Runtime &); -void checkJSVersion( - jsi::Runtime &, - const std::shared_ptr &); - -}; // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/README.md b/frontend-admin/node_modules/react-native-reanimated/README.md index fd1efcc5..b8ac3a74 100644 --- a/frontend-admin/node_modules/react-native-reanimated/README.md +++ b/frontend-admin/node_modules/react-native-reanimated/README.md @@ -1,32 +1,33 @@ React Native Reanimated by Software Mansion -### Create smooth animations with an excellent developer experience. +### React Native's Animated library reimplemented -> Reanimated 4 is here! Check out our [documentation page](https://docs.swmansion.com/react-native-reanimated/) for more information +> Reanimated 3 is here! Check out our [documentation page](https://docs.swmansion.com/react-native-reanimated/) for more information + +React Native Reanimated provides a more comprehensive, +low level abstraction for the Animated library API to be built +on top of and hence allow for much greater flexibility especially when it +comes to gesture based interactions. ### Nightly CI state -[![NPM Reanimated publish nightly](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-reanimated-publish-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-reanimated-publish-nightly.yml) -[![NPM Worklets publish [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-worklets-publish-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/npm-worklets-publish-nightly.yml) -[![Lint clang-tidy [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/lint-clang-tidy-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/lint-clang-tidy-nightly.yml) -[![Reanimated compatibility check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/reanimated-compatibility-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/reanimated-compatibility-check-nightly.yml) -[![Use frameworks Reanimated build check [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/use-frameworks-reanimated-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/use-frameworks-reanimated-build-check-nightly.yml) -[![React Native nightly Reanimated build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/react-native-nightly-reanimated-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/react-native-nightly-reanimated-build-check-nightly.yml) -[![Expo DevClient build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/expo-devclient-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/expo-devclient-build-check-nightly.yml) -[![Reanimated TypeScript compatibility test](https://github.com/software-mansion/react-native-reanimated/actions/workflows/reanimated-typescript-compatibility-test-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/reanimated-typescript-compatibility-test-nightly.yml) -[![Windows hosted app Reanimated build check](https://github.com/software-mansion/react-native-reanimated/actions/workflows/windows-hosted-app-reanimated-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/windows-hosted-app-reanimated-build-check-nightly.yml) -[![Worklets Bundle Mode build check [Nightly]](https://github.com/software-mansion/react-native-reanimated/actions/workflows/worklets-bundle-mode-build-check-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/worklets-bundle-mode-build-check-nightly.yml) -[![URL validation](https://github.com/software-mansion/react-native-reanimated/actions/workflows/url-validation-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/url-validation-nightly.yml) +[![Build nightly npm package](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-nightly-npm-package.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-nightly-npm-package.yml) +[![Run nightly monorepo test](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-monorepo-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-monorepo-nightly.yml) +[![Check static framework nightly build](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-static-framework-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-static-framework-nightly.yml) +[![Check React Native nightly build](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-react-native-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-react-native-nightly.yml) +[![Check Expo dev-client nightly build](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-expo-dev-client-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-expo-dev-client-nightly.yml) +[![Check TypeScript nightly build](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-TS-react-native.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/check-TS-react-native.yml) +[![Test V8 on Android nightly](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-v8-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-v8-nightly.yml) +[![Test build on Windows nightly](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-on-windows-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/build-on-windows-nightly.yml) +[![Validate urls in source code](https://github.com/software-mansion/react-native-reanimated/actions/workflows/detect-broken-urls-nightly.yml/badge.svg)](https://github.com/software-mansion/react-native-reanimated/actions/workflows/detect-broken-urls-nightly.yml) ## Installation Check out the [installation](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started/#installation) section of our docs for the detailed installation instructions. -## Compatibility +## Fabric -React Native Reanimated 4.x supports only the [New React Native architecture](https://reactnative.dev/architecture/landing-page) and three latest React Native versions. - -If your app still runs on the old architecture, please consider adopting the New Architecture or stay with latest 3.x release. +To learn how to use `react-native-reanimated` with Fabric architecture, head over to [Fabric README](README-Fabric.md). Instructions on how to run Fabric Example within this repo can be found in the [FabricExample README](FabricExample/README.md). ## Documentation @@ -34,8 +35,8 @@ Check out our dedicated documentation page for info about this library, API refe ## Examples -The source code for the example (showcase) app is under the [`apps/common-app`](https://github.com/software-mansion/react-native-reanimated/blob/main/apps/common-app/) directory. -If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Check [Example README](apps/fabric-example/README.md) for installation instructions. +The source code for the example (showcase) app is under the [`Example/`](https://github.com/software-mansion/react-native-reanimated/blob/main/Example/) directory. +If you want to play with the API but don't feel like trying it on a real app, you can run the example project. Check Example/ directory README for installation instructions. ## License @@ -48,11 +49,3 @@ This project has been built and is maintained thanks to the support from [Shopif [![shopify](https://avatars1.githubusercontent.com/u/8085?v=3&s=100 'Shopify.com')](https://shopify.com) [![expo](https://avatars2.githubusercontent.com/u/12504344?v=3&s=100 'Expo.io')](https://expo.io) [![swm](https://logo.swmansion.com/logo?color=white&variant=desktop&width=150&tag=react-native-reanimated-github 'Software Mansion')](https://swmansion.com) - -## Community Discord - -[Join the Software Mansion Community Discord](https://discord.swmansion.com) to chat about Reanimated or other Software Mansion libraries. - -## Reanimated is created by Software Mansion - -Since 2012 [Software Mansion](https://swmansion.com) is a software agency with experience in building web and mobile apps. We are Core React Native Contributors and experts in dealing with all kinds of React Native issues. We can help you build your next dream product – [Hire us](https://swmansion.com/contact/projects?utm_source=reanimated&utm_medium=readme). diff --git a/frontend-admin/node_modules/react-native-reanimated/RNReanimated.podspec b/frontend-admin/node_modules/react-native-reanimated/RNReanimated.podspec index dba0fade..8e539f56 100644 --- a/frontend-admin/node_modules/react-native-reanimated/RNReanimated.podspec +++ b/frontend-admin/node_modules/react-native-reanimated/RNReanimated.podspec @@ -3,22 +3,65 @@ require_relative './scripts/reanimated_utils' reanimated_package_json = JSON.parse(File.read(File.join(__dir__, "package.json"))) $config = find_config() +assert_latest_react_native_with_new_architecture($config, reanimated_package_json) assert_minimal_react_native_version($config) -$new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] != '0' -assert_new_architecture_enabled($new_arch_enabled) +$new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1' +is_release = ENV['PRODUCTION'] == '1' +folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -DREACT_NATIVE_MINOR_VERSION=' + $config[:react_native_minor_version].to_s +folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32' boost_compiler_flags = '-Wno-documentation' +fabric_flags = $new_arch_enabled ? '-DRCT_NEW_ARCH_ENABLED' : '' example_flag = $config[:is_reanimated_example_app] ? '-DIS_REANIMATED_EXAMPLE_APP' : '' -version_flags = "-DREACT_NATIVE_MINOR_VERSION=#{$config[:react_native_minor_version]} -DREANIMATED_VERSION=#{reanimated_package_json['version']}" -ios_min_version = '13.4' +version_flag = '-DREANIMATED_VERSION=' + reanimated_package_json["version"] +debug_flag = is_release ? '-DNDEBUG' : '' +ios_min_version = $config[:react_native_minor_version] >= 73 ? '13.4' : '9.0' -# Directory in which data for further processing for clangd will be stored. -compilation_metadata_dir = "CompilationDatabase" -# We want generate the metadata only within the monorepo of Reanimated. -compilation_metadata_generation_flag = $config[:is_reanimated_example_app] ? "-gen-cdb-fragment-path #{compilation_metadata_dir}" : '' - -feature_flags = "-DREANIMATED_FEATURE_FLAGS=\"#{get_static_feature_flags()}\"" +def self.install_modules_dependencies_legacy(s) + using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1' + s.dependency "React-Core" + if $new_arch_enabled + s.dependency "React-RCTFabric" + s.dependency "React-Codegen" + end + s.dependency "RCT-Folly" + s.dependency "RCTRequired" + s.dependency "RCTTypeSafety" + s.dependency 'FBLazyVector' + if $config[:react_native_minor_version] <= 71 + s.dependency 'FBReactNativeSpec' + end + s.dependency 'React-Core' + s.dependency 'React-CoreModules' + s.dependency 'React-Core/DevSupport' + if !$config[:is_tvos_target] + s.dependency 'React-RCTActionSheet' + end + s.dependency 'React-RCTNetwork' + s.dependency 'React-RCTAnimation' + s.dependency 'React-RCTLinking' + s.dependency 'React-RCTBlob' + s.dependency 'React-RCTSettings' + s.dependency 'React-RCTText' + s.dependency 'React-RCTImage' + s.dependency 'React-Core/RCTWebSocket' + s.dependency 'React-cxxreact' + s.dependency 'React-jsi' + s.dependency 'React-jsiexecutor' + s.dependency 'React-jsinspector' + s.dependency 'Yoga' + s.dependency 'DoubleConversion' + s.dependency 'glog' + if using_hermes && !$config[:is_tvos_target] && $config[:react_native_minor_version] >= 70 + s.dependency 'React-hermes' + s.dependency 'hermes-engine' + end + s.dependency 'React-callinvoker' + if $config[:react_native_minor_version] >= 72 && !$new_arch_enabled + s.dependency 'React-RCTAppDelegate' + end +end Pod::Spec.new do |s| @@ -31,68 +74,42 @@ Pod::Spec.new do |s| s.homepage = "https://github.com/software-mansion/react-native-reanimated" s.license = "MIT" s.author = { "author" => "author@domain.cn" } - s.platforms = { :ios => ios_min_version, :tvos => "9.0", :osx => "10.14", :visionos => "1.0" } + s.platforms = { :ios => ios_min_version, :tvos => "9.0", :osx => "10.14" } s.source = { :git => "https://github.com/software-mansion/react-native-reanimated.git", :tag => "#{s.version}" } - s.dependency "RNWorklets" + s.source_files = [ + "apple/**/*.{mm,h,m}", + "Common/cpp/**/*.{cpp,h}" + ] - s.subspec "reanimated" do |ss| - ss.source_files = "Common/cpp/reanimated/**/*.{cpp,h}" - ss.header_dir = "reanimated" - ss.header_mappings_dir = "Common/cpp/reanimated" + s.preserve_paths = [ + "Common/cpp/hidden_headers/**" + ] - ss.subspec "apple" do |sss| - sss.source_files = "apple/reanimated/**/*.{mm,h,m}" - sss.header_dir = "reanimated" - sss.header_mappings_dir = "apple/reanimated" - end + gcc_debug_definitions = "$(inherited)" + if $config[:react_native_minor_version] >= 73 || !is_release + gcc_debug_definitions << " HERMES_ENABLE_DEBUGGER=1" end s.pod_target_xcconfig = { "USE_HEADERMAP" => "YES", "DEFINES_MODULE" => "YES", - "HEADER_SEARCH_PATHS" => [ - '"$(PODS_TARGET_SRCROOT)/ReactCommon"', - '"$(PODS_TARGET_SRCROOT)"', - '"$(PODS_ROOT)/RCT-Folly"', - '"$(PODS_ROOT)/boost"', - '"$(PODS_ROOT)/boost-for-react-native"', - '"$(PODS_ROOT)/DoubleConversion"', - '"$(PODS_ROOT)/Headers/Private/React-Core"', - '"$(PODS_ROOT)/Headers/Private/Yoga"', - '"$(PODS_ROOT)/Headers/Public/RNWorklets"', - ].join(' '), - "FRAMEWORK_SEARCH_PATHS" => '"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes"', - "CLANG_CXX_LANGUAGE_STANDARD" => "c++20", - "GCC_PREPROCESSOR_DEFINITIONS[config=*Debug*]" => '$(inherited)', - "GCC_PREPROCESSOR_DEFINITIONS[config=*Release*]" => '$(inherited)', + "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" \"$(PODS_ROOT)/Headers/Private/Yoga\"", + "FRAMEWORK_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes\"", + "CLANG_CXX_LANGUAGE_STANDARD" => "c++17", + "GCC_PREPROCESSOR_DEFINITIONS[config=Debug]" => gcc_debug_definitions, + "GCC_PREPROCESSOR_DEFINITIONS[config=Release]" => "$(inherited) NDEBUG=1", } - s.compiler_flags = boost_compiler_flags + s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.xcconfig = { - "HEADER_SEARCH_PATHS" => [ - '"$(PODS_ROOT)/boost"', - '"$(PODS_ROOT)/boost-for-react-native"', - '"$(PODS_ROOT)/glog"', - '"$(PODS_ROOT)/RCT-Folly"', - '"$(PODS_ROOT)/Headers/Public/React-hermes"', - '"$(PODS_ROOT)/Headers/Public/hermes-engine"', - '"$(PODS_ROOT)/Headers/Public/RNWorklets"', - "\"$(PODS_ROOT)/#{$config[:react_native_common_dir]}\"", - "\"$(PODS_ROOT)/#{$config[:dynamic_frameworks_reanimated_dir]}/apple\"", - "\"$(PODS_ROOT)/#{$config[:dynamic_frameworks_reanimated_dir]}/Common/cpp\"", - "\"$(PODS_ROOT)/#{$config[:dynamic_frameworks_reanimated_dir]}/Common/NativeView\"", - "\"$(PODS_ROOT)/#{$config[:dynamic_frameworks_worklets_dir]}/apple\"", - "\"$(PODS_ROOT)/#{$config[:dynamic_frameworks_worklets_dir]}/Common/cpp\"", - ].join(' '), - "OTHER_CFLAGS" => "$(inherited) #{example_flag} #{version_flags} #{compilation_metadata_generation_flag} #{feature_flags}", + "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/Headers/Public/React-hermes\" \"$(PODS_ROOT)/Headers/Public/hermes-engine\" \"$(PODS_ROOT)/#{$config[:react_native_common_dir]}\"", + "OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags + " " + fabric_flags + " " + example_flag + " " + version_flag + " " + debug_flag } s.requires_arc = true - - install_modules_dependencies(s) - - s.dependency 'React-jsi' - using_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1' - if using_hermes && !$config[:is_tvos_target] - s.dependency 'React-hermes' + s.dependency "ReactCommon/turbomodule/core" + if defined?(install_modules_dependencies()) != nil + install_modules_dependencies(s) + else + install_modules_dependencies_legacy(s) end end diff --git a/frontend-admin/node_modules/react-native-reanimated/android/CMakeLists.txt b/frontend-admin/node_modules/react-native-reanimated/android/CMakeLists.txt index c4e4df92..8ba41221 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/CMakeLists.txt +++ b/frontend-admin/node_modules/react-native-reanimated/android/CMakeLists.txt @@ -1,102 +1,319 @@ project(Reanimated) cmake_minimum_required(VERSION 3.8) -set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +set (CMAKE_VERBOSE_MAKEFILE ON) +if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 73) + set (CMAKE_CXX_STANDARD 20) +else() + set (CMAKE_CXX_STANDARD 17) +endif() -set(CMAKE_CXX_STANDARD 20) +# default CMAKE_CXX_FLAGS: "-g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-protector-all" -# default CMAKE_CXX_FLAGS: "-g -DANDROID -fdata-sections -ffunction-sections -# -funwind-tables -fstack-protector-strong -no-canonical-prefixes -# -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-protector-all" -include("${REACT_NATIVE_DIR}/ReactAndroid/cmake-utils/folly-flags.cmake") -add_compile_options(${folly_FLAGS}) +if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + include("${REACT_NATIVE_DIR}/ReactAndroid/cmake-utils/folly-flags.cmake") + add_compile_options(${folly_FLAGS}) +else() + set(folly_FLAGS "-DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_HAVE_MEMRCHR=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1") + string(APPEND CMAKE_CXX_FLAGS " ${folly_FLAGS}") +endif() -string( - APPEND - CMAKE_CXX_FLAGS - " -DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION}\ - -DREANIMATED_VERSION=${REANIMATED_VERSION}\ - -DREANIMATED_FEATURE_FLAGS=\"${REANIMATED_FEATURE_FLAGS}\"") -string(APPEND CMAKE_CXX_FLAGS " -fno-omit-frame-pointer -fstack-protector-all") -# flags to optimize the binary size -string(APPEND CMAKE_CXX_FLAGS " -fvisibility=hidden -ffunction-sections -fdata-sections") +string(APPEND CMAKE_CXX_FLAGS " -DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION} -DREANIMATED_VERSION=${REANIMATED_VERSION} -DHERMES_ENABLE_DEBUGGER=${HERMES_ENABLE_DEBUGGER}") -if(${REANIMATED_PROFILING}) - string(APPEND CMAKE_CXX_FLAGS " -DREANIMATED_PROFILING") +string(APPEND CMAKE_CXX_FLAGS " -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++${CMAKE_CXX_STANDARD} -Wall -Werror") + +if(${IS_NEW_ARCHITECTURE_ENABLED}) + string(APPEND CMAKE_CXX_FLAGS " -DRCT_NEW_ARCH_ENABLED") endif() if(${IS_REANIMATED_EXAMPLE_APP}) - string(APPEND CMAKE_CXX_FLAGS " -DIS_REANIMATED_EXAMPLE_APP -Wpedantic") + string(APPEND CMAKE_CXX_FLAGS " -DIS_REANIMATED_EXAMPLE_APP") endif() if(NOT ${CMAKE_BUILD_TYPE} MATCHES "Debug") - string(APPEND CMAKE_CXX_FLAGS " -DNDEBUG") + string(APPEND CMAKE_CXX_FLAGS " -DNDEBUG") endif() -set(BUILD_DIR "${CMAKE_SOURCE_DIR}/build") -set(ANDROID_CPP_DIR "${CMAKE_SOURCE_DIR}/src/main/cpp") -set(COMMON_CPP_DIR "${CMAKE_SOURCE_DIR}/../Common/cpp") +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "") -file(GLOB_RECURSE REANIMATED_COMMON_CPP_SOURCES CONFIGURE_DEPENDS - "${COMMON_CPP_DIR}/reanimated/*.cpp") -file(GLOB_RECURSE REANIMATED_ANDROID_CPP_SOURCES CONFIGURE_DEPENDS - "${ANDROID_CPP_DIR}/reanimated/*.cpp") +set (PACKAGE_NAME "reanimated") +set (BUILD_DIR ${CMAKE_SOURCE_DIR}/build) +set (SRC_DIR ${CMAKE_SOURCE_DIR}/src) +set (COMMON_SRC_DIR "${CMAKE_SOURCE_DIR}/../Common") -find_package(fbjni REQUIRED CONFIG) -find_package(ReactAndroid REQUIRED CONFIG) +file(GLOB_RECURSE SOURCES_COMMON CONFIGURE_DEPENDS "${COMMON_SRC_DIR}/cpp/**.cpp") +file(GLOB_RECURSE SOURCES_ANDROID CONFIGURE_DEPENDS "${SRC_DIR}/main/cpp/**.cpp") -add_library(reanimated SHARED ${REANIMATED_COMMON_CPP_SOURCES} - ${REANIMATED_ANDROID_CPP_SOURCES}) - -if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 80) - include( - "${REACT_NATIVE_DIR}/ReactCommon/cmake-utils/react-native-flags.cmake") - target_compile_reactnative_options(reanimated PUBLIC) +if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + # Consume shared libraries and headers from prefabs + find_package(fbjni REQUIRED CONFIG) + find_package(ReactAndroid REQUIRED CONFIG) + if(${JS_RUNTIME} STREQUAL "hermes") + find_package(hermes-engine REQUIRED CONFIG) + endif() else() - string(APPEND CMAKE_CXX_FLAGS - " -fexceptions -frtti -std=c++${CMAKE_CXX_STANDARD} -Wall -Werror") + # Consume shared libraries from found .so files + if(${IS_NEW_ARCHITECTURE_ENABLED}) + message(FATAL_ERROR "not supported") + else() + set (RN_SO_DIR "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/first-party/react/jni") + set (FBJNI_HEADERS_DIR "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/first-party/fbjni/headers") + endif() + file (GLOB LIBRN_DIR "${RN_SO_DIR}/${ANDROID_ABI}") endif() -target_include_directories( - reanimated - PRIVATE "${COMMON_CPP_DIR}" - "${ANDROID_CPP_DIR}" - "${REACT_NATIVE_DIR}/ReactCommon" - "${REACT_NATIVE_DIR}/ReactCommon/yoga" - "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/react/turbomodule" - "${REACT_NATIVE_DIR}/ReactCommon/callinvoker" - "${REACT_NATIVE_DIR}/ReactCommon/runtimeexecutor" - "${REACT_NATIVE_DIR}/ReactCommon/jsiexecutor" - "${REACT_NATIVE_DIR}/ReactCommon/react/renderer/graphics/platform/cxx" - "${REACT_NATIVE_WORKLETS_DIR}/Common/cpp" - "${REACT_NATIVE_WORKLETS_DIR}/android/src/main/cpp") - -set_target_properties(reanimated PROPERTIES LINKER_LANGUAGE CXX) - -if(${CMAKE_BUILD_TYPE} MATCHES "Debug") - set(BUILD_TYPE "debug") -else() - set(BUILD_TYPE "release") -endif() - -add_library(worklets SHARED IMPORTED) - -set_target_properties( - worklets - PROPERTIES - IMPORTED_LOCATION - "${REACT_NATIVE_WORKLETS_DIR}/android/build/intermediates/cmake/${BUILD_TYPE}/obj/${ANDROID_ABI}/libworklets.so" +add_library( + ${PACKAGE_NAME} + SHARED + ${SOURCES_COMMON} + ${SOURCES_ANDROID} + ${INCLUDE_JSI_CPP} + ${INCLUDE_JSIDYNAMIC_CPP} ) -set_target_properties(reanimated PROPERTIES LINKER_LANGUAGE CXX) -# remove dead code sections -set_target_properties(reanimated PROPERTIES LINK_FLAGS "-Wl,--gc-sections") +# includes -target_link_libraries(reanimated log ReactAndroid::jsi fbjni::fbjni android - worklets) +target_include_directories( + ${PACKAGE_NAME} + PRIVATE + "${COMMON_SRC_DIR}/cpp/AnimatedSensor" + "${COMMON_SRC_DIR}/cpp/Fabric" + "${COMMON_SRC_DIR}/cpp/hidden_headers" + "${COMMON_SRC_DIR}/cpp/LayoutAnimations" + "${COMMON_SRC_DIR}/cpp/NativeModules" + "${COMMON_SRC_DIR}/cpp/ReanimatedRuntime" + "${COMMON_SRC_DIR}/cpp/Registries" + "${COMMON_SRC_DIR}/cpp/SharedItems" + "${COMMON_SRC_DIR}/cpp/Tools" + "${SRC_DIR}/main/cpp" +) -if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76) - target_link_libraries(reanimated ReactAndroid::reactnative) +if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + target_include_directories( + ${PACKAGE_NAME} + PRIVATE + "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/react/turbomodule" + "${REACT_NATIVE_DIR}/ReactCommon" + "${REACT_NATIVE_DIR}/ReactCommon/callinvoker" + "${REACT_NATIVE_DIR}/ReactCommon/react/renderer/graphics/platform/cxx" + "${REACT_NATIVE_DIR}/ReactCommon/runtimeexecutor" + "${REACT_NATIVE_DIR}/ReactCommon/yoga" + ) else() - target_link_libraries(reanimated ReactAndroid::react_nativemodule_core) + file(GLOB LIBFBJNI_INCLUDE_DIR ${FBJNI_HEADERS_DIR}) + target_include_directories( + ${PACKAGE_NAME} + PRIVATE + "${LIBFBJNI_INCLUDE_DIR}" + "${BUILD_DIR}/third-party-ndk/boost/boost_${BOOST_VERSION}" + "${BUILD_DIR}/third-party-ndk/double-conversion" + "${BUILD_DIR}/third-party-ndk/folly" + "${BUILD_DIR}/third-party-ndk/glog/exported" + "${REACT_NATIVE_DIR}/React" + "${REACT_NATIVE_DIR}/React/Base" + "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni" + "${REACT_NATIVE_DIR}/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni" + "${REACT_NATIVE_DIR}/ReactAndroid/src/main/java/com/facebook/react/fabric/jni" + "${REACT_NATIVE_DIR}/ReactCommon" + "${REACT_NATIVE_DIR}/ReactCommon/callinvoker" + "${REACT_NATIVE_DIR}/ReactCommon/jsi" + "${REACT_NATIVE_DIR}/ReactCommon/hermes" + "${REACT_NATIVE_DIR}/ReactCommon/react/renderer/graphics/platform/cxx" + "${REACT_NATIVE_DIR}/ReactCommon/runtimeexecutor" + "${REACT_NATIVE_DIR}/ReactCommon/turbomodule/core" + "${REACT_NATIVE_DIR}/ReactCommon/turbomodule" + "${REACT_NATIVE_DIR}/ReactCommon/yoga" + ) endif() + +# build shared lib + +set_target_properties(${PACKAGE_NAME} PROPERTIES LINKER_LANGUAGE CXX) + +target_link_libraries( + ${PACKAGE_NAME} + log + android +) + +if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + target_link_libraries( + ${PACKAGE_NAME} + ReactAndroid::folly_runtime + ReactAndroid::glog + ReactAndroid::jsi + ReactAndroid::reactnativejni + fbjni::fbjni + ) +else() + find_library( + JSI_LIB + jsi + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + find_library( + GLOG_LIB + glog + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + + find_library( + FBJNI_LIB + fbjni + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + + if(${REACT_NATIVE_MINOR_VERSION} LESS 69) + find_library( + FOLLY_LIB + folly_json + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + else() + find_library( + FOLLY_LIB + folly_runtime + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + endif() + + find_library( + REACTNATIVEJNI_LIB + reactnativejni + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + + target_link_libraries( + ${PACKAGE_NAME} + ${JSI_LIB} + ${GLOG_LIB} + ${FBJNI_LIB} + ${FOLLY_LIB} + ${REACTNATIVEJNI_LIB} + ) +endif() + +if(${JS_RUNTIME} STREQUAL "hermes") + string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_HERMES=1") + if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + # From prefab from module `com.facebook.react:hermes-android` + set(HERMES_LIB hermes-engine::libhermes) + elseif(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 69) + # Bundled Hermes from module `com.facebook.react:hermes-engine` or project `:ReactAndroid:hermes-engine` + target_include_directories( + ${PACKAGE_NAME} + PRIVATE + "${JS_RUNTIME_DIR}/API" + "${JS_RUNTIME_DIR}/public" + ) + set(HERMES_LIB "${BUILD_DIR}/third-party-ndk/hermes/jni/${ANDROID_ABI}/libhermes.so") + else() + # From `hermes-engine` npm package + target_include_directories( + ${PACKAGE_NAME} + PRIVATE + "${JS_RUNTIME_DIR}/android/include" + ) + set(HERMES_LIB "${BUILD_DIR}/third-party-ndk/hermes/jni/${ANDROID_ABI}/libhermes.so") + endif() + target_link_libraries( + ${PACKAGE_NAME} + ${HERMES_LIB} + ) + if (${HERMES_ENABLE_DEBUGGER}) + if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + set(HERMES_EXECUTOR_LIB ReactAndroid::hermes_executor) + else() + find_library( + HERMES_EXECUTOR_LIB + hermes-executor-debug + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + endif() + if(${REACT_NATIVE_MINOR_VERSION} LESS_EQUAL 67) + find_library( + HERMES_INSPECTOR_LIB + hermes-inspector + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + target_link_libraries( + ${PACKAGE_NAME} + ${HERMES_INSPECTOR_LIB} + ) + endif() + target_link_libraries( + ${PACKAGE_NAME} + ${HERMES_EXECUTOR_LIB} + ) + endif() +elseif(${JS_RUNTIME} STREQUAL "v8") + string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_V8=1") + target_include_directories( + ${PACKAGE_NAME} + PRIVATE + "${JS_RUNTIME_DIR}/src" + ) + file (GLOB V8_SO_DIR "${JS_RUNTIME_DIR}/android/build/intermediates/library_jni/*/jni/${ANDROID_ABI}") + find_library( + V8EXECUTOR_LIB + v8executor + PATHS ${V8_SO_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + target_link_libraries( + ${PACKAGE_NAME} + ${V8EXECUTOR_LIB} + ) +elseif(${JS_RUNTIME} STREQUAL "jsc") + string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_JSC=1") + if(${REACT_NATIVE_MINOR_VERSION} GREATER_EQUAL 71) + set(JSEXECUTOR_LIB ReactAndroid::jscexecutor) + else() + find_library( + JSEXECUTOR_LIB + jscexecutor + PATHS ${LIBRN_DIR} + NO_DEFAULT_PATH + NO_CMAKE_FIND_ROOT_PATH + ) + endif() + target_link_libraries(${PACKAGE_NAME} ${JSEXECUTOR_LIB}) +else() + message(FATAL_ERROR "Unknown JS runtime ${JS_RUNTIME}.") +endif() + +if(${IS_NEW_ARCHITECTURE_ENABLED}) + target_link_libraries( + ${PACKAGE_NAME} + ReactAndroid::fabricjni + ReactAndroid::react_debug + ReactAndroid::react_render_core + ReactAndroid::react_render_mounting + ReactAndroid::react_render_scheduler + ReactAndroid::react_render_uimanager + ReactAndroid::rrc_view + ) +endif() + +# Resolves "CMake Warning: Manually-specified variables were not used by the project" +# when any of the following variables is not used in some build configuration. +set (ignoreMe "${JS_RUNTIME_DIR}") +set (ignoreMe "${BOOST_VERSION}") diff --git a/frontend-admin/node_modules/react-native-reanimated/android/build.gradle b/frontend-admin/node_modules/react-native-reanimated/android/build.gradle index 6b73a69d..3de90e57 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/build.gradle +++ b/frontend-admin/node_modules/react-native-reanimated/android/build.gradle @@ -1,7 +1,46 @@ -import com.android.build.gradle.tasks.ExternalNativeBuildJsonTask -import groovy.json.JsonSlurper -import java.nio.file.Paths +import com.android.Version +import org.apache.tools.ant.filters.ReplaceTokens import org.apache.tools.ant.taskdefs.condition.Os +import groovy.json.JsonSlurper + +import javax.inject.Inject +import java.nio.file.Files +import java.nio.file.Paths + +/** + * Finds the path of the installed npm package with the given name using Node's + * module resolution algorithm, which searches "node_modules" directories up to + * the file system root. This handles various cases, including: + * + * - Working in the open-source RN repo: + * Gradle: /path/to/react-native/ReactAndroid + * Node module: /path/to/react-native/node_modules/[package] + * + * - Installing RN as a dependency of an app and searching for hoisted + * dependencies: + * Gradle: /path/to/app/node_modules/react-native/ReactAndroid + * Node module: /path/to/app/node_modules/[package] + * + * - Working in a larger repo (e.g., Facebook) that contains RN: + * Gradle: /path/to/repo/path/to/react-native/ReactAndroid + * Node module: /path/to/repo/node_modules/[package] + * + * The search begins at the given base directory (a File object). The returned + * path is a string. + */ +static def findNodeModulePath(baseDir, packageName) { + def basePath = baseDir.toPath().normalize() + // Node's module resolution algorithm searches up to the root directory, + // after which the base path will be null + while (basePath) { + def candidatePath = Paths.get(basePath.toString(), "node_modules", packageName) + if (candidatePath.toFile().exists()) { + return candidatePath.toString() + } + basePath = basePath.getParent() + } + return null +} def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback @@ -12,6 +51,16 @@ def safeAppExtGet(prop, fallback) { appProject?.ext?.has(prop) ? appProject.ext.get(prop) : fallback } +def resolveBuildType() { + Gradle gradle = getGradle() + String tskReqStr = gradle.getStartParameter().getTaskRequests()['args'].toString() + return tskReqStr.contains('Release') ? 'release' : 'debug' +} + +def isReanimatedExampleApp() { + return safeAppExtGet("isReanimatedExampleApp", false) +} + def isNewArchitectureEnabled() { // To opt-in for the New Architecture, you can either: // - Set `newArchEnabled` to true inside the `gradle.properties` file @@ -26,54 +75,41 @@ def resolveReactNativeDirectory() { return file(reactNativeLocation) } - // Fallback to node resolver for custom directory structures like monorepos. - def reactNativePackage = file( - providers.exec { - workingDir(rootDir) - commandLine("node", "--print", "require.resolve('react-native/package.json')") - }.standardOutput.asText.get().trim() - ) - if (reactNativePackage.exists()) { - return reactNativePackage.parentFile + if (isReanimatedExampleApp()) { + return file("$projectDir/../${getPlaygroundAppName()}/node_modules/react-native") + } + + // monorepo workaround + // react-native can be hoisted or in project's own node_modules + def reactNativeFromProjectNodeModules = file("${rootProject.projectDir}/../node_modules/react-native") + if (reactNativeFromProjectNodeModules.exists()) { + return reactNativeFromProjectNodeModules + } + + def reactNativeFromNodeModulesWithReanimated = file("${projectDir}/../../react-native") + if (reactNativeFromNodeModulesWithReanimated.exists()) { + return reactNativeFromNodeModulesWithReanimated } throw new GradleException( - "[Reanimated] Unable to resolve react-native location in node_modules. You should set project extension property (in `app/build.gradle`) named `REACT_NATIVE_NODE_MODULES_DIR` with the path to react-native in node_modules." + "[Reanimated] Unable to resolve react-native location in node_modules. You should project extension property (in `app/build.gradle`) `REACT_NATIVE_NODE_MODULES_DIR` with path to react-native." ) } -def resolveReactNativeWorkletsDirectory() { - def reactNativeWorkletsLocation = safeAppExtGet("REACT_NATIVE_WORKLETS_NODE_MODULES_DIR", null) - if (reactNativeWorkletsLocation != null) { - return file(reactNativeWorkletsLocation) +def getPlaygroundAppName() { // only for the development + String playgroundAppName = "" + try { + rootProject.getSubprojects().forEach({project -> + if (project.plugins.hasPlugin("com.android.application")) { + var projectCatalogAbsolutePath = project.projectDir.toString().replace("/android/app", "") + var slashPosition = projectCatalogAbsolutePath.lastIndexOf("/") + playgroundAppName = projectCatalogAbsolutePath.substring(slashPosition + 1) + } + }) + } catch (_) { + throw new GradleException("[Reanimated] Couldn't determine playground app name.") } - - // Fallback to node resolver for custom directory structures like monorepos. - def reactNativeWorkletsPackage = file( - providers.exec { - workingDir(rootDir) - commandLine("node", "--print", "require.resolve('react-native-worklets/package.json')") - }.standardOutput.asText.get().trim() - ) - if (reactNativeWorkletsPackage.exists()) { - return reactNativeWorkletsPackage.parentFile - } - - throw new GradleException( - "[Reanimated] Unable to resolve react-native-worklets location in node_modules. You should set project extension property (in `app/build.gradle`) named `REACT_NATIVE_WORKLETS_NODE_MODULES_DIR` with the path to react-native-worklets in node_modules." - ) -} - -def getReactNativeVersion() { - def reactNativeRootDir = resolveReactNativeDirectory() - def reactProperties = new Properties() - file("$reactNativeRootDir/ReactAndroid/gradle.properties").withInputStream { reactProperties.load(it) } - return reactProperties.getProperty("VERSION_NAME") -} - -def getReactNativeMinorVersion() { - def reactNativeVersion = getReactNativeVersion() - return reactNativeVersion.startsWith("0.0.0-") ? 1000 : reactNativeVersion.split("\\.")[1].toInteger() + return playgroundAppName } def getReanimatedVersion() { @@ -82,6 +118,11 @@ def getReanimatedVersion() { return json.version } +def getReanimatedMajorVersion() { + def (major, minor, patch) = getReanimatedVersion().tokenize('.') + return major.toInteger() +} + def toPlatformFileString(String path) { if (Os.isFamily(Os.FAMILY_WINDOWS)) { path = path.replace(File.separatorChar, '/' as char) @@ -89,47 +130,72 @@ def toPlatformFileString(String path) { return path } -def getReanimatedStaticFeatureFlags() { - def featureFlags = new HashMap() - - def staticFeatureFlagsFile = file(projectDir.path + "/../src/featureFlags/staticFlags.json") - if (!staticFeatureFlagsFile.exists()) { - throw new GradleException("[Reanimated] Feature flags file not found at ${staticFeatureFlagsFile.absolutePath}.") - } - new JsonSlurper().parseText(staticFeatureFlagsFile.text).each { key, value -> - featureFlags[key] = value.toString() - } - - def packageJsonFile = file(rootDir.path + "/../package.json") - if (packageJsonFile.exists()) { - def packageJson = new JsonSlurper().parseText(packageJsonFile.text) - packageJson.reanimated?.staticFeatureFlags?.each { key, value -> - featureFlags[key] = value.toString() - } - } - - return featureFlags.collect { key, value -> "[${key}:${value}]" }.join("") -} - -if (isNewArchitectureEnabled()) { - apply plugin: "com.facebook.react" -} - -def packageDir = project.projectDir.parentFile def reactNativeRootDir = resolveReactNativeDirectory() -def reactNativeWorkletsRootDir = resolveReactNativeWorkletsDirectory() -def REACT_NATIVE_MINOR_VERSION = getReactNativeMinorVersion() -def REACT_NATIVE_VERSION = getReactNativeVersion() + +def reactProperties = new Properties() +file("$reactNativeRootDir/ReactAndroid/gradle.properties").withInputStream { reactProperties.load(it) } + +def REACT_NATIVE_VERSION = reactProperties.getProperty("VERSION_NAME") +def REACT_NATIVE_MINOR_VERSION = REACT_NATIVE_VERSION.startsWith("0.0.0-") ? 1000 : REACT_NATIVE_VERSION.split("\\.")[1].toInteger() def REANIMATED_VERSION = getReanimatedVersion() +def REANIMATED_MAJOR_VERSION = getReanimatedMajorVersion() def IS_NEW_ARCHITECTURE_ENABLED = isNewArchitectureEnabled() -def IS_REANIMATED_EXAMPLE_APP = safeAppExtGet("isReanimatedExampleApp", false) -def REANIMATED_PROFILING = safeAppExtGet("enableReanimatedProfiling", false) -def REANIMATED_FEATURE_FLAGS = getReanimatedStaticFeatureFlags() -// Set version for prefab -version REANIMATED_VERSION +// for React Native <= 0.70 +def BOOST_VERSION = reactProperties.getProperty("BOOST_VERSION") +def DOUBLE_CONVERSION_VERSION = reactProperties.getProperty("DOUBLE_CONVERSION_VERSION") +def FOLLY_VERSION = reactProperties.getProperty("FOLLY_VERSION") +def GLOG_VERSION = reactProperties.getProperty("GLOG_VERSION") +def FBJNI_VERSION = "0.3.0" -def reanimatedPrefabHeadersDir = project.file("$buildDir/prefab-headers/reanimated") +// We download various C++ open-source dependencies into downloads. +// We then copy both the downloaded code and our custom makefiles and headers into third-party-ndk. +// After that we build native code from src/main/jni with module path pointing at third-party-ndk. + +def customDownloadsDir = System.getenv("REACT_NATIVE_DOWNLOADS_DIR") +def downloadsDir = customDownloadsDir ? new File(customDownloadsDir) : new File("$buildDir/downloads") +def thirdPartyNdkDir = new File("$buildDir/third-party-ndk") + +def reactNativeThirdParty = new File("$reactNativeRootDir/ReactAndroid/src/main/jni/third-party") +def reactNativeAndroidDownloadDir = new File("$reactNativeRootDir/ReactAndroid/build/downloads") + +def prefabHeadersDir = project.file("$buildDir/prefab-headers/reanimated") + +def JS_RUNTIME = { + // Override JS runtime with environment variable + if (System.getenv("JS_RUNTIME")) { + return System.getenv("JS_RUNTIME") + } + + // Enable V8 runtime if react-native-v8 is installed + def v8Project = rootProject.getSubprojects().find { project -> project.name == "react-native-v8" } + if (v8Project != null) { + return "v8" + } + + // Check if Hermes is enabled in app setup + def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') } + if ((REACT_NATIVE_MINOR_VERSION >= 71 && appProject?.hermesEnabled?.toBoolean()) || appProject?.ext?.react?.enableHermes?.toBoolean()) { + return "hermes" + } + + // Use JavaScriptCore (JSC) by default + return "jsc" +}.call() + +def jsRuntimeDir = { + if (JS_RUNTIME == "hermes") { + if (REACT_NATIVE_MINOR_VERSION >= 69) { + return Paths.get(reactNativeRootDir.path, "sdks", "hermes") + } else { + return Paths.get(reactNativeRootDir.path, "..", "hermes-engine") + } + } else if (JS_RUNTIME == "v8") { + return findProject(":react-native-v8").getProjectDir().getParent() + } else { + return Paths.get(reactNativeRootDir.path, "ReactCommon", "jsi") + } +}.call() def reactNativeArchitectures() { def value = project.getProperties().get("reactNativeArchitectures") @@ -140,11 +206,14 @@ buildscript { repositories { google() mavenCentral() + maven { + url "https://plugins.gradle.org/m2/" + } } dependencies { - classpath "com.android.tools.build:gradle:8.2.1" - classpath "de.undercouch:gradle-download-task:5.6.0" - classpath "com.diffplug.spotless:spotless-plugin-gradle:6.25.0" + classpath "com.android.tools.build:gradle:7.3.1" + classpath "de.undercouch:gradle-download-task:5.0.1" + classpath "com.diffplug.spotless:spotless-plugin-gradle:6.11.0" } } @@ -157,9 +226,12 @@ apply plugin: "maven-publish" apply plugin: "de.undercouch.download" android { - compileSdkVersion safeExtGet("compileSdkVersion", 34) + compileSdkVersion safeExtGet("compileSdkVersion", 30) - namespace "com.swmansion.reanimated" + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.swmansion.reanimated" + } if (rootProject.hasProperty("ndkPath")) { ndkPath rootProject.ext.ndkPath @@ -169,58 +241,70 @@ android { } buildFeatures { - prefab true - prefabPublishing true - buildConfig true + if (REACT_NATIVE_MINOR_VERSION > 68) { + prefab true + prefabPublishing true + buildConfig true + } } prefab { reanimated { - headers reanimatedPrefabHeadersDir.absolutePath + headers prefabHeadersDir.absolutePath } } defaultConfig { - minSdkVersion safeExtGet("minSdkVersion", 23) - targetSdkVersion safeExtGet("targetSdkVersion", 34) + minSdkVersion safeExtGet("minSdkVersion", 16) + targetSdkVersion safeExtGet("targetSdkVersion", 30) versionCode 1 - versionName REANIMATED_VERSION - - buildConfigField("boolean", "REANIMATED_PROFILING", REANIMATED_PROFILING.toString()) + versionName "1.0" + buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", IS_NEW_ARCHITECTURE_ENABLED.toString()) buildConfigField("String", "REANIMATED_VERSION_JAVA", "\"${REANIMATED_VERSION}\"") - buildConfigField("boolean", "IS_INTERNAL_BUILD", "false") - buildConfigField("int", "EXOPACKAGE_FLAGS", "0") - buildConfigField("int", "REACT_NATIVE_MINOR_VERSION", REACT_NATIVE_MINOR_VERSION.toString()) - externalNativeBuild { cmake { arguments "-DANDROID_STL=c++_shared", "-DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION}", "-DANDROID_TOOLCHAIN=clang", + REACT_NATIVE_MINOR_VERSION < 71 ? "-DBOOST_VERSION=${BOOST_VERSION}" : "-DBOOST_VERSION=", "-DREACT_NATIVE_DIR=${toPlatformFileString(reactNativeRootDir.path)}", - "-DREACT_NATIVE_WORKLETS_DIR=${toPlatformFileString(reactNativeWorkletsRootDir.path)}", - "-DIS_REANIMATED_EXAMPLE_APP=${IS_REANIMATED_EXAMPLE_APP}", - "-DREANIMATED_PROFILING=${REANIMATED_PROFILING}", - "-DREANIMATED_VERSION=${REANIMATED_VERSION}", - "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON", - "-DREANIMATED_FEATURE_FLAGS=${REANIMATED_FEATURE_FLAGS}" + "-DJS_RUNTIME=${JS_RUNTIME}", + "-DJS_RUNTIME_DIR=${jsRuntimeDir}", + "-DIS_NEW_ARCHITECTURE_ENABLED=${IS_NEW_ARCHITECTURE_ENABLED}", + "-DIS_REANIMATED_EXAMPLE_APP=${isReanimatedExampleApp()}", + "-DREANIMATED_VERSION=${REANIMATED_VERSION}" abiFilters (*reactNativeArchitectures()) - targets("reanimated") } } + buildConfigField("boolean", "IS_INTERNAL_BUILD", "false") + buildConfigField("int", "EXOPACKAGE_FLAGS", "0") + buildConfigField("int", "REACT_NATIVE_MINOR_VERSION", REACT_NATIVE_MINOR_VERSION.toString()) + consumerProguardFiles 'proguard-rules.pro' } externalNativeBuild { cmake { - version = System.getenv("CMAKE_VERSION") ?: "3.22.1" path "CMakeLists.txt" } } buildTypes { debug { - packagingOptions { - doNotStrip "**/**/*.so" + externalNativeBuild { + cmake { + if (JS_RUNTIME == "hermes") { + arguments "-DHERMES_ENABLE_DEBUGGER=1" + } else { + arguments "-DHERMES_ENABLE_DEBUGGER=0" + } + } + } + } + release { + externalNativeBuild { + cmake { + arguments "-DHERMES_ENABLE_DEBUGGER=0" + } } } } @@ -228,10 +312,7 @@ android { abortOnError false } packagingOptions { - // For some reason gradle only complains about the duplicated version of librrc_root and libreact_render libraries - // while there are more libraries copied in intermediates folder of the lib build directory, we exclude - // only the ones that make the build fail (ideally we should only include libreanimated but we - // are only allowed to specify exclude patterns) + doNotStrip resolveBuildType() == 'debug' ? "**/**/*.so" : '' excludes = [ "META-INF", "META-INF/**", @@ -242,86 +323,107 @@ android { "**/libfolly_runtime.so", "**/libglog.so", "**/libhermes.so", - "**/libhermesvm.so", "**/libhermes-executor-debug.so", "**/libhermes_executor.so", - "**/libhermestooling.so", "**/libreactnativejni.so", "**/libturbomodulejsijni.so", - "**/libreactnative.so", "**/libreact_nativemodule_core.so", - "**/libreact_render*.so", - "**/librrc_root.so", "**/libjscexecutor.so", + "**/libv8executor.so", ] } - compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 - } - tasks.withType(ExternalNativeBuildJsonTask) { + tasks.withType(JavaCompile) { compileTask -> - compileTask.doLast { - if (!IS_REANIMATED_EXAMPLE_APP) { - return - } - - def generated = new File("${compileTask.abi.getCxxBuildFolder()}/compile_commands.json") - def output = new File("${packageDir}/compile_commands.json") - - output.text = generated.text - - println("Generated clangd metadata.") + compileTask.dependsOn(packageNdkLibs) + } + configurations { + extractHeaders + extractSO + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + packagingOptions { + // For some reason gradle only complains about the duplicated version of librrc_root and libreact_render libraries + // while there are more libraries copied in intermediates folder of the lib build directory, we exclude + // only the ones that make the build fail (ideally we should only include libreanimated but we + // are only allowed to specify exlude patterns) + exclude "**/libreact_render*.so" + exclude "**/librrc_root.so" + } + sourceSets.main { + java { + if (IS_NEW_ARCHITECTURE_ENABLED) { + srcDirs += "src/fabric/java" + } else { + srcDirs += "src/paper/java" } - } -} -def validateReactNativeVersionResult = providers.exec { - workingDir(projectDir.path) - commandLine("node", "./../scripts/validate-react-native-version.js", REACT_NATIVE_VERSION.toString()) - ignoreExitValue = true -} + // messageQueueThread + if (REANIMATED_MAJOR_VERSION > 2) { + if (REACT_NATIVE_MINOR_VERSION <= 67) { + srcDirs += "src/reactNativeVersionPatch/messageQueueThread/67" + } else if (REACT_NATIVE_MINOR_VERSION <= 72) { + srcDirs += "src/reactNativeVersionPatch/messageQueueThread/72" + } else { + srcDirs += "src/reactNativeVersionPatch/messageQueueThread/latest" + } + } -task assertMinimalReactNativeVersionTask { - doFirst { - if (validateReactNativeVersionResult.getResult().get().exitValue != 0) { - throw new GradleException(validateReactNativeVersionResult.getStandardError().getAsText().get().trim()) + // ReanimatedUIManager & ReanimatedUIImplementation + if (REACT_NATIVE_MINOR_VERSION <= 70) { + srcDirs += "src/reactNativeVersionPatch/ReanimatedUIManager/70" + } else { + srcDirs += "src/reactNativeVersionPatch/ReanimatedUIManager/latest" + } + + // ReactFeatureFlags + if (IS_NEW_ARCHITECTURE_ENABLED) { + if (REACT_NATIVE_MINOR_VERSION <= 72) { + srcDirs += "src/reactNativeVersionPatch/ReactFeatureFlagsWrapper/72" + } else { + srcDirs += "src/reactNativeVersionPatch/ReactFeatureFlagsWrapper/latest" + } + } } } } -preBuild.dependsOn(assertMinimalReactNativeVersionTask) - -task assertNewArchitectureEnabledTask { - onlyIf { !IS_NEW_ARCHITECTURE_ENABLED } +def assertLatestReactNativeWithNewArchitecture = task assertLatestReactNativeWithNewArchitectureTask { + onlyIf { IS_NEW_ARCHITECTURE_ENABLED && REANIMATED_MAJOR_VERSION == 3 && REACT_NATIVE_MINOR_VERSION < 72 } doFirst { - throw new GradleException("[Reanimated] Reanimated requires new architecture to be enabled. Please enable it by setting `newArchEnabled` to `true` in `gradle.properties`.") + // If you change the minimal React Native version remember to update Compatibility Table in docs + throw new GradleException( + "[Reanimated] Outdated version of React Native for New Architecture. Reanimated " + REANIMATED_VERSION + " supports the New Architecture on React Native 0.72.0+. See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#outdated-version-of-react-native-for-new-architecture for more information." + ) } } -preBuild.dependsOn(assertNewArchitectureEnabledTask) - -def validateWorkletsBuildResult = providers.exec { - workingDir(projectDir.path) - commandLine("node", "./../scripts/validate-worklets-build.js") - ignoreExitValue = true -} - -task assertWorkletsVersionTask { +def assertMinimalReactNativeVersion = task assertMinimalReactNativeVersionTask { + onlyIf { REACT_NATIVE_MINOR_VERSION < 66 } doFirst { - if (validateWorkletsBuildResult.getResult().get().exitValue != 0) { - throw new GradleException(validateWorkletsBuildResult.getStandardError().getAsText().get().trim()) - } + // If you change the minimal React Native version remember to update Compatibility Table in docs + throw new GradleException("[Reanimated] Unsupported React Native version. Please use 0.66 or newer.") } } -preBuild.dependsOn(assertWorkletsVersionTask) - -task prepareReanimatedHeadersForPrefabs(type: Copy) { +task prepareHeadersForPrefab(type: Copy) { from("$projectDir/src/main/cpp") - from("$projectDir/../Common/cpp") - include("reanimated/**/*.h") - into(reanimatedPrefabHeadersDir) + from("$projectDir/../Common/cpp/AnimatedSensor") + from("$projectDir/../Common/cpp/Fabric") + from("$projectDir/../Common/cpp/LayoutAnimations") + from("$projectDir/../Common/cpp/NativeModules") + from("$projectDir/../Common/cpp/ReanimatedRuntime") + from("$projectDir/../Common/cpp/Registries") + from("$projectDir/../Common/cpp/SharedItems") + from("$projectDir/../Common/cpp/Tools") + include("*.h") + into(prefabHeadersDir) +} + +tasks.preBuild { + dependsOn assertLatestReactNativeWithNewArchitecture, assertMinimalReactNativeVersion } task cleanCmakeCache() { @@ -331,8 +433,404 @@ task cleanCmakeCache() { } } +task printVersions { + println "Android gradle plugin: ${Version.ANDROID_GRADLE_PLUGIN_VERSION}" + println "Gradle: ${project.gradle.gradleVersion}" +} + +task createNativeDepsDirectories() { + downloadsDir.mkdirs() + thirdPartyNdkDir.mkdirs() + prefabHeadersDir.mkdirs() +} + +def resolveTaskFactory(String taskName, String artifactLocalName, File reactNativeAndroidDownloadDir, File reanimatedDownloadDir) { + return tasks.create(name: taskName, dependsOn: createNativeDepsDirectories, type: Copy) { + from reactNativeAndroidDownloadDir + include artifactLocalName + into reanimatedDownloadDir + + onlyIf { + // First we check whether the file is already in our download directory + if (file("$reanimatedDownloadDir/$artifactLocalName").isFile()) { + return false + } + + // If it is not the case we check whether it was downloaded by ReactAndroid project + if (file("$reactNativeAndroidDownloadDir/$artifactLocalName").isFile()) { + return true + } + + return false + } + } +} + +/* +Reanimated includes "hermes/hermes.h" header file in `NativeProxy.cpp`. +Previously, we used header files from `hermes-engine` package in `node_modules`. +In React Native 0.69 and 0.70, Hermes is no longer distributed as package on NPM. +On the new architecture, Hermes is downloaded from GitHub and then compiled from sources. +However, on the old architecture, we need to download Hermes header files on our own +as well as unzip Hermes AAR in order to obtain `libhermes.so` shared library. +For more details, see https://reactnative.dev/architecture/bundled-hermes +or https://github.com/reactwg/react-native-new-architecture/discussions/4 +*/ +if (REACT_NATIVE_MINOR_VERSION in [69, 70] && !IS_NEW_ARCHITECTURE_ENABLED) { + // copied from `react-native/ReactAndroid/hermes-engine/build.gradle` + + def downloadDir = customDownloadsDir ? new File(customDownloadsDir) : new File(reactNativeRootDir, "sdks/download") + + // By default we are going to download and unzip hermes inside the /sdks/hermes folder + // but you can provide an override for where the hermes source code is located. + def hermesDir = System.getenv("REACT_NATIVE_OVERRIDE_HERMES_DIR") ?: new File(reactNativeRootDir, "sdks/hermes") + + def hermesVersion = "main" + def hermesVersionFile = new File(reactNativeRootDir, "sdks/.hermesversion") + if (hermesVersionFile.exists()) { + hermesVersion = hermesVersionFile.text + } + + task downloadHermes(type: Download) { + src("https://github.com/facebook/hermes/tarball/${hermesVersion}") + onlyIfNewer(true) + overwrite(false) + dest(new File(downloadDir, "hermes.tar.gz")) + } + + task unzipHermes(dependsOn: downloadHermes, type: Copy) { + from(tarTree(downloadHermes.dest)) { + eachFile { file -> + // We flatten the unzip as the tarball contains a `facebook-hermes-` + // folder at the top level. + if (file.relativePath.segments.size() > 1) { + file.relativePath = new RelativePath(!file.isDirectory(), file.relativePath.segments.drop(1)) + } + } + } + into(hermesDir) + } +} + +if (REACT_NATIVE_MINOR_VERSION < 71) { + // You need to have following folders in this directory: + // - boost_1_63_0 + // - double-conversion-1.1.6 + // - folly-deprecate-dynamic-initializer + // - glog-0.3.5 + def dependenciesPath = System.getenv("REACT_NATIVE_DEPENDENCIES") + + // The Boost library is a very large download (>100MB). + // If Boost is already present on your system, define the REACT_NATIVE_BOOST_PATH env variable + // and the build will use that. + def boostPath = dependenciesPath ?: System.getenv("REACT_NATIVE_BOOST_PATH") + + def follyReplaceContent = ''' + ssize_t r; + do { + r = open(name, flags, mode); + } while (r == -1 && errno == EINTR); + return r; + ''' + + Task resolveBoost = resolveTaskFactory("resolveBoost", "boost_${BOOST_VERSION}.tar.gz", reactNativeAndroidDownloadDir, downloadsDir) + Task resolveDoubleConversion = resolveTaskFactory( + "resolveDoubleConversion", + "double-conversion-${DOUBLE_CONVERSION_VERSION}.tar.gz", + reactNativeAndroidDownloadDir, + downloadsDir + ) + Task resolveFolly = resolveTaskFactory("resolveFolly", "folly-${FOLLY_VERSION}.tar.gz", reactNativeAndroidDownloadDir, downloadsDir) + Task resolveGlog = resolveTaskFactory("resolveGlog", "glog-${GLOG_VERSION}.tar.gz", reactNativeAndroidDownloadDir, downloadsDir) + + if (IS_NEW_ARCHITECTURE_ENABLED) { + def reactNativeAndroidProject = findProject(":ReactAndroid") + if (reactNativeAndroidProject != null) { + reactNativeAndroidProject.afterEvaluate { + def resolveTasks = [resolveBoost, resolveGlog, resolveDoubleConversion, resolveFolly] + resolveTasks.forEach({ task -> + String reactAndroidDownloadTaskName = "download" + task.name.replace("resolve", "") + def reactAndroidDownloadTask = reactNativeAndroidProject.getTasks().findByName(reactAndroidDownloadTaskName) + if (reactAndroidDownloadTask != null) { + task.dependsOn(reactAndroidDownloadTask) + } else { + logger.warn("[Reanimated] Failed to find task named `$reactAndroidDownloadTaskName` in `:ReactAndroid` project." + + " Explicit dependency between it and $task.name task can not be set.") + } + }) + } + } else { + throw new GradleException("[Reanimated] Failed to find `:ReactAndroid` project. Explicit dependency between download tasks can not be set.") + } + } + + task downloadBoost(dependsOn: resolveBoost, type: Download) { + def transformedVersion = BOOST_VERSION.replace("_", ".") + def artifactLocalName = "boost_${BOOST_VERSION}.tar.gz" + def srcUrl = "https://boostorg.jfrog.io/artifactory/main/release/${transformedVersion}/source/${artifactLocalName}" + if (REACT_NATIVE_MINOR_VERSION < 69) { + srcUrl = "https://github.com/react-native-community/boost-for-react-native/releases/download/v${transformedVersion}-0/${artifactLocalName}" + } + src(srcUrl) + onlyIfNewer(true) + overwrite(false) + dest(new File(downloadsDir, artifactLocalName)) + } + + task prepareBoost(dependsOn: boostPath ? [] : [downloadBoost], type: Copy) { + from(boostPath ?: tarTree(resources.gzip(downloadBoost.dest))) + from("$reactNativeThirdParty/boost/Android.mk") + include("Android.mk", "boost_${BOOST_VERSION}/boost/**/*.hpp", "boost/boost/**/*.hpp") + includeEmptyDirs = false + into("$thirdPartyNdkDir/boost") + doLast { + file("$thirdPartyNdkDir/boost/boost").renameTo("$thirdPartyNdkDir/boost/boost_${BOOST_VERSION}") + } + } + + task downloadDoubleConversion(dependsOn: resolveDoubleConversion, type: Download) { + src("https://github.com/google/double-conversion/archive/v${DOUBLE_CONVERSION_VERSION}.tar.gz") + onlyIfNewer(true) + overwrite(false) + dest(new File(downloadsDir, "double-conversion-${DOUBLE_CONVERSION_VERSION}.tar.gz")) + } + + task prepareDoubleConversion(dependsOn: dependenciesPath ? [] : [downloadDoubleConversion], type: Copy) { + from(dependenciesPath ?: tarTree(downloadDoubleConversion.dest)) + from("$reactNativeThirdParty/double-conversion/Android.mk") + include("double-conversion-${DOUBLE_CONVERSION_VERSION}/src/**/*", "Android.mk") + filesMatching("*/src/**/*", { fname -> fname.path = "double-conversion/${fname.name}" }) + includeEmptyDirs = false + into("$thirdPartyNdkDir/double-conversion") + } + + task downloadFolly(dependsOn: resolveFolly, type: Download) { + src("https://github.com/facebook/folly/archive/v${FOLLY_VERSION}.tar.gz") + onlyIfNewer(true) + overwrite(false) + dest(new File(downloadsDir, "folly-${FOLLY_VERSION}.tar.gz")) + } + + task prepareFolly(dependsOn: dependenciesPath ? [] : [downloadFolly], type: Copy) { + from(dependenciesPath ?: tarTree(downloadFolly.dest)) + from("$reactNativeThirdParty/folly/Android.mk") + include("folly-${FOLLY_VERSION}/folly/**/*", "Android.mk") + eachFile { fname -> fname.path = (fname.path - "folly-${FOLLY_VERSION}/") } + // Fixes problem with Folly failing to build on certain systems. See + // https://github.com/software-mansion/react-native-reanimated/issues/1024 + filter { line -> line.replaceAll("return int\\(wrapNoInt\\(open, name, flags, mode\\)\\);", follyReplaceContent) } + includeEmptyDirs = false + into("$thirdPartyNdkDir/folly") + } + + task downloadGlog(dependsOn: resolveGlog, type: Download) { + src("https://github.com/google/glog/archive/v${GLOG_VERSION}.tar.gz") + onlyIfNewer(true) + overwrite(false) + dest(new File(downloadsDir, "glog-${GLOG_VERSION}.tar.gz")) + } + + // Prepare glog sources to be compiled, this task will perform steps that normally should've been + // executed by automake. This way we can avoid dependencies on make/automake + task prepareGlog(dependsOn: dependenciesPath ? [] : [downloadGlog], type: Copy) { + duplicatesStrategy = "include" + from(dependenciesPath ?: tarTree(downloadGlog.dest)) + from("$reactNativeThirdParty/glog/") + include("glog-${GLOG_VERSION}/src/**/*", "Android.mk", "config.h") + includeEmptyDirs = false + filesMatching("**/*.h.in") { + filter(ReplaceTokens, tokens: [ + ac_cv_have_unistd_h : "1", + ac_cv_have_stdint_h : "1", + ac_cv_have_systypes_h : "1", + ac_cv_have_inttypes_h : "1", + ac_cv_have_libgflags : "0", + ac_google_start_namespace : "namespace google {", + ac_cv_have_uint16_t : "1", + ac_cv_have_u_int16_t : "1", + ac_cv_have___uint16 : "0", + ac_google_end_namespace : "}", + ac_cv_have___builtin_expect : "1", + ac_google_namespace : "google", + ac_cv___attribute___noinline : "__attribute__ ((noinline))", + ac_cv___attribute___noreturn : "__attribute__ ((noreturn))", + ac_cv___attribute___printf_4_5: "__attribute__((__format__ (__printf__, 4, 5)))" + ]) + it.path = (it.name - ".in") + } + into("$thirdPartyNdkDir/glog") + + doLast { + copy { + from(fileTree(dir: "$thirdPartyNdkDir/glog", includes: ["stl_logging.h", "logging.h", "raw_logging.h", "vlog_is_on.h", "**/src/glog/log_severity.h"]).files) + includeEmptyDirs = false + into("$thirdPartyNdkDir/glog/exported/glog") + } + } + } + + task prepareHermes { + if (REACT_NATIVE_MINOR_VERSION >= 69) { + if (!IS_NEW_ARCHITECTURE_ENABLED) { + dependsOn(unzipHermes) + } + + doLast { + // e.g. hermes-engine-0.70.0-rc.1-debug.aar + def hermesAAR = file( + "$reactNativeRootDir/android/com/facebook/react/hermes-engine/" + + "${REACT_NATIVE_VERSION}/hermes-engine-${REACT_NATIVE_VERSION}-" + + "${resolveBuildType()}.aar" + ) + if (!hermesAAR.exists()) { + throw new GradleException("[Reanimated] Could not find hermes-engine AAR.", null) + } + + def soFiles = zipTree(hermesAAR).matching({ it.include "**/*.so" }) + + copy { + from soFiles + from "$reactNativeRootDir/ReactAndroid/src/main/jni/first-party/hermes/Android.mk" + into "$thirdPartyNdkDir/hermes" + } + } + } else { + doLast { + def hermesPackagePath = findNodeModulePath(projectDir, "hermes-engine") + if (!hermesPackagePath) { + throw new GradleException("[Reanimated] Could not find the hermes-engine npm package.", null) + } + + def hermesAAR = file("$hermesPackagePath/android/hermes-${resolveBuildType()}.aar") // e.g. hermes-debug.aar + if (!hermesAAR.exists()) { + throw new GradleException("[Reanimated] The hermes-engine npm package is missing \"android/hermes-${resolveBuildType()}.aar\".", null) + } + + def soFiles = zipTree(hermesAAR).matching({ it.include "**/*.so" }) + + copy { + from soFiles + from "$reactNativeRootDir/ReactAndroid/src/main/jni/first-party/hermes/Android.mk" + into "$thirdPartyNdkDir/hermes" + } + } + } + } + + task prepareJSC { + if (REACT_NATIVE_MINOR_VERSION >= 71) { + // do nothing + } else { + doLast { + def jscPackagePath = findNodeModulePath(projectDir, "jsc-android") + if (!jscPackagePath) { + throw new GradleException("[Reanimated] Could not find the jsc-android npm package.", null) + } + + def jscDist = file("$jscPackagePath/dist") + if (!jscDist.exists()) { + throw new GradleException("[Reanimated] The jsc-android npm package is missing its \"dist\" directory.", null) + } + + def jscAAR = fileTree(jscDist).matching({ it.include "**/android-jsc/**/*.aar" }).singleFile + def soFiles = zipTree(jscAAR).matching({ it.include "**/*.so" }) + + def headerFiles = fileTree(jscDist).matching({ it.include "**/include/*.h" }) + + copy { + from(soFiles) + from(headerFiles) + from("$reactNativeRootDir/ReactAndroid/src/main/jni/third-party/jsc/Android.mk") + + filesMatching("**/*.h", { it.path = "JavaScriptCore/${it.name}" }) + + includeEmptyDirs(false) + into("$thirdPartyNdkDir/jsc") + } + } + } + } + + task extractAARHeaders { + doLast { + configurations.extractHeaders.files.each { + def file = it.absoluteFile + def packageName = file.name.tokenize('-')[0] + copy { + from zipTree(file) + into "$reactNativeRootDir/ReactAndroid/src/main/jni/first-party/$packageName/headers" + include "**/*.h" + } + } + } + } + + task extractSOFiles { + doLast { + configurations.extractSO.files.each { + def file = it.absoluteFile + def packageName = file.name.tokenize('-')[0] + copy { + from zipTree(file) + into "$reactNativeRootDir/ReactAndroid/src/main/jni/first-party/$packageName/" + include "jni/**/*.so" + } + } + } + } + + task unpackReactNativeAAR { + def buildType = resolveBuildType() + def rnAarMatcher = "**/react-native/**/*${buildType}.aar" + if (REACT_NATIVE_MINOR_VERSION < 69) { + rnAarMatcher = "**/**/*.aar" + } + def rnAAR = fileTree("$reactNativeRootDir/android").matching({ it.include rnAarMatcher }).singleFile + def file = rnAAR.absoluteFile + def packageName = file.name.tokenize('-')[0] + copy { + from zipTree(file) + into "$reactNativeRootDir/ReactAndroid/src/main/jni/first-party/$packageName/" + include "jni/**/*.so" + } + } + + task downloadNdkBuildDependencies { + if (!boostPath) { + dependsOn(downloadBoost) + } + dependsOn(downloadDoubleConversion) + dependsOn(downloadFolly) + dependsOn(downloadGlog) + } + + task prepareThirdPartyNdkHeaders(dependsOn:[ + downloadNdkBuildDependencies, + prepareBoost, + prepareDoubleConversion, + prepareFolly, + prepareGlog, + unpackReactNativeAAR] + ) {} +} + +task packageNdkLibs(type: Copy) { + from("$buildDir/reanimated-ndk/all") + include("**/libreanimated.so") + into("$projectDir/src/main/jniLibs") +} + repositories { mavenCentral() + mavenLocal() + maven { + // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm + url "$reactNativeRootDir/android" + } + maven { + // Android JSC is installed from npm + url "$reactNativeRootDir/../jsc-android/dist" + } google() } @@ -341,26 +839,71 @@ dependencies { implementation "androidx.transition:transition:1.1.0" implementation "androidx.core:core:1.6.0" - implementation "com.facebook.react:react-android" // version substituted by RNGP - - if (project == rootProject) { - // This is needed for linting in Reanimated's repo. - } else { - if (rootProject.subprojects.find { it.name == "react-native-worklets" }) { - implementation project(":react-native-worklets") - } else { - throw new GradleException("[Reanimated] `react-native-worklets` library not found. Please install it as a dependency in your project. Install `react-native-worklets` with your package manager, i.e. `yarn add react-native-worklets` or `npm i react-native-worklets`. Read the documentation for more details: https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#unable-to-find-a-specification-for-rnworklets-depended-upon-by-rnreanimated") + if (REACT_NATIVE_MINOR_VERSION >= 71) { + implementation "com.facebook.react:react-android" // version substituted by RNGP + if (JS_RUNTIME == "hermes") { + implementation "com.facebook.react:hermes-android" // version substituted by RNGP } + } else { + // noinspection GradleDynamicVersion + implementation "com.facebook.react:react-native:+" // From node_modules + implementation "com.facebook.fbjni:fbjni-java-only:" + FBJNI_VERSION + + extractHeaders("com.facebook.fbjni:fbjni:" + FBJNI_VERSION + ":headers") + extractSO("com.facebook.fbjni:fbjni:" + FBJNI_VERSION) + + def jscAAR = fileTree("$reactNativeRootDir/../jsc-android/dist/org/webkit/android-jsc").matching({ it.include "**/**/*.aar" }).singleFile + extractSO(files(jscAAR)) } } -preBuild.dependsOn(prepareReanimatedHeadersForPrefabs) +def nativeBuildDependsOn(dependsOnTask) { + def buildTasks = tasks.findAll({ task -> ( + !task.name.contains("Clean") + && (task.name.contains("externalNative") + || task.name.contains("CMake") + || task.name.contains("generateJsonModel") + ) + ) }) + buildTasks.forEach { task -> task.dependsOn(dependsOnTask) } +} -if (project != rootProject) { - evaluationDependsOn(":react-native-worklets") +afterEvaluate { + if (REACT_NATIVE_MINOR_VERSION < 71) { + extractAARHeaders.dependsOn(prepareThirdPartyNdkHeaders) + extractSOFiles.dependsOn(prepareThirdPartyNdkHeaders) - afterEvaluate { - tasks.getByName("externalNativeBuildDebug").dependsOn(findProject(":react-native-worklets").tasks.getByName("externalNativeBuildDebug")) - tasks.getByName("externalNativeBuildRelease").dependsOn(findProject(":react-native-worklets").tasks.getByName("externalNativeBuildRelease")) + nativeBuildDependsOn(prepareThirdPartyNdkHeaders) + nativeBuildDependsOn(extractAARHeaders) + nativeBuildDependsOn(extractSOFiles) + } + + preBuild.dependsOn(prepareHeadersForPrefab) + + tasks.forEach({ task -> + if (task.name.contains("JniLibFolders")) { + task.dependsOn(packageNdkLibs) + } + }) + + if (JS_RUNTIME == "hermes") { + if (REACT_NATIVE_MINOR_VERSION < 71) { + extractAARHeaders.dependsOn(prepareHermes) + extractSOFiles.dependsOn(prepareHermes) + } + } else if (JS_RUNTIME == "v8") { + def buildTasks = tasks.findAll({ task -> + !task.name.contains("Clean") && (task.name.contains("externalNative") || task.name.contains("CMake") || task.name.startsWith("generateJsonModel")) }) + buildTasks.forEach { task -> + def buildType = task.name.endsWith('Debug') ? 'Debug' : 'Release' + task.dependsOn(":react-native-v8:copy${buildType}JniLibsProjectOnly") + } + } else if (JS_RUNTIME == "jsc") { + if (REACT_NATIVE_MINOR_VERSION < 71) { + extractAARHeaders.dependsOn(prepareJSC) + extractSOFiles.dependsOn(prepareJSC) + } + } else { + throw GradleScriptException("[Reanimated] Unknown JS runtime ${JS_RUNTIME}.") } } diff --git a/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.jar b/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.jar index 9bbc975c..7454180f 100644 Binary files a/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.jar and b/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.properties b/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.properties index 2733ed5d..8fad3f5a 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.properties +++ b/frontend-admin/node_modules/react-native-reanimated/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/frontend-admin/node_modules/react-native-reanimated/android/proguard-rules.pro b/frontend-admin/node_modules/react-native-reanimated/android/proguard-rules.pro index c6e18e23..118a2c3f 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/proguard-rules.pro +++ b/frontend-admin/node_modules/react-native-reanimated/android/proguard-rules.pro @@ -1,3 +1,2 @@ -keep class com.swmansion.reanimated.** { *; } -keep class com.facebook.react.turbomodule.** { *; } --keep class com.facebook.react.fabric.** { *; } diff --git a/frontend-admin/node_modules/react-native-reanimated/android/spotless.gradle b/frontend-admin/node_modules/react-native-reanimated/android/spotless.gradle index 906dc16e..21a5517a 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/spotless.gradle +++ b/frontend-admin/node_modules/react-native-reanimated/android/spotless.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.diffplug.spotless' spotless { java { - target 'src/**/*.java' + target 'src/main/java/**/*.java' googleJavaFormat() } } diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml b/frontend-admin/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml index c1d65e41..586ffb97 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/AndroidManifest.xml @@ -1,2 +1,5 @@ - + + + diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/AnimationFrameCallback.h b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/AnimationFrameCallback.h deleted file mode 100644 index 9da8b47c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/AnimationFrameCallback.h +++ /dev/null @@ -1,37 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated { - -using namespace facebook; -using namespace facebook::jni; - -class AnimationFrameCallback : public HybridClass { - public: - static auto constexpr kJavaDescriptor = - "Lcom/swmansion/reanimated/nativeProxy/AnimationFrameCallback;"; - - void onAnimationFrame(double timestampMs) { - callback_(timestampMs); - } - - static void registerNatives() { - javaClassStatic()->registerNatives({ - makeNativeMethod( - "onAnimationFrame", AnimationFrameCallback::onAnimationFrame), - }); - } - - private: - friend HybridBase; - - explicit AnimationFrameCallback(std::function callback) - : callback_(std::move(callback)) {} - - std::function callback_; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/EventHandler.h b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/EventHandler.h deleted file mode 100644 index af9080d7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/EventHandler.h +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once - -#include - -#include -#include - -#include - -namespace reanimated { - -using namespace facebook; -using namespace facebook::jni; - -class EventHandler : public HybridClass { - public: - static auto constexpr kJavaDescriptor = - "Lcom/swmansion/reanimated/nativeProxy/EventHandler;"; - - void receiveEvent( - jni::alias_ref eventKey, - jint emitterReactTag, - jni::alias_ref event) { - ReanimatedSystraceSection s("EventHandler::receiveEvent"); - handler_(eventKey, emitterReactTag, event); - } - - static void registerNatives() { - javaClassStatic()->registerNatives({ - makeNativeMethod("receiveEvent", EventHandler::receiveEvent), - }); - } - - private: - friend HybridBase; - - explicit EventHandler(std::function, - jint emitterReactTag, - jni::alias_ref)> handler) - : handler_(std::move(handler)) {} - - std::function< - void(jni::alias_ref, jint, jni::alias_ref)> - handler_; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/KeyboardWorkletWrapper.h b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/KeyboardWorkletWrapper.h deleted file mode 100644 index 72bbba50..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/KeyboardWorkletWrapper.h +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated { - -using namespace facebook; -using namespace facebook::jni; - -class KeyboardWorkletWrapper : public HybridClass { - public: - static auto constexpr kJavaDescriptor = - "Lcom/swmansion/reanimated/keyboard/KeyboardWorkletWrapper;"; - - void invoke(int keyboardState, int height) { - callback_(keyboardState, height); - } - - static void registerNatives() { - javaClassStatic()->registerNatives({ - makeNativeMethod("invoke", KeyboardWorkletWrapper::invoke), - }); - } - - private: - friend HybridBase; - - explicit KeyboardWorkletWrapper(std::function callback) - : callback_(std::move(callback)) {} - - std::function callback_; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.cpp b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.cpp deleted file mode 100644 index 01247a99..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.cpp +++ /dev/null @@ -1,324 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -namespace reanimated { - -using namespace facebook; -using namespace react; - -NativeProxy::NativeProxy( - jni::alias_ref jThis, - const std::shared_ptr &workletsModuleProxy, - jsi::Runtime *rnRuntime, - const std::shared_ptr &jsCallInvoker, - jni::alias_ref - fabricUIManager) - : javaPart_(jni::make_global(jThis)), - rnRuntime_(rnRuntime), - workletsModuleProxy_(workletsModuleProxy), - reanimatedModuleProxy_(std::make_shared( - workletsModuleProxy, - *rnRuntime, - jsCallInvoker, - getPlatformDependentMethods(), - getIsReducedMotion())) { -#ifndef NDEBUG - checkJavaVersion(); - injectCppVersion(); -#endif // NDEBUG - reanimatedModuleProxy_->init(getPlatformDependentMethods()); - const auto &uiManager = - fabricUIManager->getBinding()->getScheduler()->getUIManager(); - reanimatedModuleProxy_->initializeFabric(uiManager); - registerEventHandler(); - // removed temporarily, event listener mechanism needs to be fixed on RN side - // eventListener_ = std::make_shared( - // [reanimatedModuleProxy, - // getAnimationTimestamp](const RawEvent &rawEvent) { - // return reanimatedModuleProxy->handleRawEvent( - // rawEvent, getAnimationTimestamp()); - // }); - // reactScheduler_ = binding->getScheduler(); - // reactScheduler_->addEventListener(eventListener_); -} - -NativeProxy::~NativeProxy() { - // removed temporary, new event listener mechanism need fix on the RN side - // reactScheduler_->removeEventListener(eventListener_); -} - -jni::local_ref NativeProxy::initHybrid( - jni::alias_ref jThis, - jni::alias_ref jWorkletsModule, - jlong jsContext, - jni::alias_ref - jsCallInvokerHolder, - jni::alias_ref - fabricUIManager) { - auto jsCallInvoker = jsCallInvokerHolder->cthis()->getCallInvoker(); - auto workletsModuleProxy = jWorkletsModule->cthis()->getWorkletsModuleProxy(); - return makeCxxInstance( - jThis, - workletsModuleProxy, - (jsi::Runtime *)jsContext, - jsCallInvoker, - fabricUIManager); -} - -#ifndef NDEBUG -void NativeProxy::checkJavaVersion() { - std::string javaVersion; - try { - javaVersion = - getJniMethod("getReanimatedJavaVersion")(javaPart_.get()) - ->toStdString(); - } catch (std::exception &) { - throw std::runtime_error( - std::string( - "[Reanimated] C++ side failed to resolve Java code version.\n") + - "See `https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#c-side-failed-to-resolve-java-code-version` for more details."); - } - - auto cppVersion = getReanimatedCppVersion(); - if (cppVersion != javaVersion) { - throw std::runtime_error( - std::string( - "[Reanimated] Mismatch between C++ code version and Java code version (") + - cppVersion + " vs. " + javaVersion + " respectively).\n" + - "See `https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#mismatch-between-c-code-version-and-java-code-version` for more details."); - } -} - -void NativeProxy::injectCppVersion() { - auto cppVersion = getReanimatedCppVersion(); - try { - static const auto method = - getJniMethod)>("setCppVersion"); - method(javaPart_.get(), make_jstring(cppVersion)); - } catch (std::exception &) { - throw std::runtime_error( - std::string( - "[Reanimated] C++ side failed to resolve Java code version (injection).\n") + - "See `https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#c-side-failed-to-resolve-java-code-version` for more details."); - } -} -#endif // NDEBUG - -void NativeProxy::installJSIBindings() { - jsi::Runtime &rnRuntime = *rnRuntime_; - RNRuntimeDecorator::decorate( - rnRuntime, - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(), - reanimatedModuleProxy_); -} - -bool NativeProxy::isAnyHandlerWaitingForEvent( - const std::string &eventName, - const int emitterReactTag) { - return reanimatedModuleProxy_->isAnyHandlerWaitingForEvent( - eventName, emitterReactTag); -} - -void NativeProxy::performOperations() { - reanimatedModuleProxy_->performOperations(); -} - -bool NativeProxy::getIsReducedMotion() { - static const auto method = getJniMethod("getIsReducedMotion"); - return method(javaPart_.get()); -} - -void NativeProxy::registerNatives() { - registerHybrid( - {makeNativeMethod("initHybrid", NativeProxy::initHybrid), - makeNativeMethod("installJSIBindings", NativeProxy::installJSIBindings), - makeNativeMethod( - "isAnyHandlerWaitingForEvent", - NativeProxy::isAnyHandlerWaitingForEvent), - makeNativeMethod("performOperations", NativeProxy::performOperations), - makeNativeMethod("invalidateCpp", NativeProxy::invalidateCpp)}); -} - -void NativeProxy::requestRender(std::function onRender) { - static const auto method = - getJniMethod("requestRender"); - method( - javaPart_.get(), - AnimationFrameCallback::newObjectCxxArgs(std::move(onRender)).get()); -} - -void NativeProxy::registerEventHandler() { - auto eventHandler = bindThis(&NativeProxy::handleEvent); - static const auto method = - getJniMethod("registerEventHandler"); - method( - javaPart_.get(), - EventHandler::newObjectCxxArgs(std::move(eventHandler)).get()); -} - -void NativeProxy::maybeFlushUIUpdatesQueue() { - // Module might be already destroyed. - if (!javaPart_) { - return; - } - - static const auto method = getJniMethod("maybeFlushUIUpdatesQueue"); - method(javaPart_.get()); -} - -void NativeProxy::synchronouslyUpdateUIProps( - const std::vector &intBuffer, - const std::vector &doubleBuffer) { - static const auto method = getJniMethod, jni::alias_ref)>( - "synchronouslyUpdateUIProps"); - auto jArrayInt = jni::JArrayInt::newArray(intBuffer.size()); - auto jArrayDouble = jni::JArrayDouble::newArray(doubleBuffer.size()); - jArrayInt->setRegion(0, intBuffer.size(), intBuffer.data()); - jArrayDouble->setRegion(0, doubleBuffer.size(), doubleBuffer.data()); - method(javaPart_.get(), jArrayInt, jArrayDouble); -} - -int NativeProxy::registerSensor( - int sensorType, - int interval, - int, - std::function setter) { - static const auto method = - getJniMethod("registerSensor"); - return method( - javaPart_.get(), - sensorType, - interval, - SensorSetter::newObjectCxxArgs(std::move(setter)).get()); -} -void NativeProxy::unregisterSensor(int sensorId) { - static const auto method = getJniMethod("unregisterSensor"); - method(javaPart_.get(), sensorId); -} - -void NativeProxy::setGestureState(int handlerTag, int newState) { - static const auto method = getJniMethod("setGestureState"); - method(javaPart_.get(), handlerTag, newState); -} - -int NativeProxy::subscribeForKeyboardEvents( - std::function callback, - bool isStatusBarTranslucent, - bool isNavigationBarTranslucent) { - static const auto method = - getJniMethod( - "subscribeForKeyboardEvents"); - return method( - javaPart_.get(), - KeyboardWorkletWrapper::newObjectCxxArgs(std::move(callback)).get(), - isStatusBarTranslucent, - isNavigationBarTranslucent); -} - -void NativeProxy::unsubscribeFromKeyboardEvents(int listenerId) { - static const auto method = - getJniMethod("unsubscribeFromKeyboardEvents"); - method(javaPart_.get(), listenerId); -} - -double NativeProxy::getAnimationTimestamp() { - static const auto method = getJniMethod("getAnimationTimestamp"); - jlong output = method(javaPart_.get()); - return static_cast(output); -} - -void NativeProxy::handleEvent( - jni::alias_ref eventName, - jint emitterReactTag, - jni::alias_ref event) { - // handles RCTEvents from RNGestureHandler - if (event.get() == nullptr) { - // Ignore events with null payload. - return; - } - // TODO: convert event directly to jsi::Value without JSON serialization - std::string eventAsString; - try { - eventAsString = event->toString(); - } catch (std::exception &) { - // Events from other libraries may contain NaN or INF values which - // cannot be represented in JSON. See - // https://github.com/software-mansion/react-native-reanimated/issues/1776 - // for details. - return; - } - std::string eventJSON = eventAsString; - if (eventJSON == "null") { - return; - } - - jsi::Runtime &rt = - workletsModuleProxy_->getUIWorkletRuntime()->getJSIRuntime(); - jsi::Value payload; - try { - payload = jsi::Value::createFromJsonUtf8( - rt, reinterpret_cast(&eventJSON[0]), eventJSON.size()); - } catch (std::exception &) { - // Ignore events with malformed JSON payload. - return; - } - - reanimatedModuleProxy_->handleEvent( - eventName->toString(), emitterReactTag, payload, getAnimationTimestamp()); -} - -PlatformDepMethodsHolder NativeProxy::getPlatformDependentMethods() { - auto getAnimationTimestamp = bindThis(&NativeProxy::getAnimationTimestamp); - - auto requestRender = bindThis(&NativeProxy::requestRender); - - auto synchronouslyUpdateUIPropsFunction = - bindThis(&NativeProxy::synchronouslyUpdateUIProps); - - auto registerSensorFunction = bindThis(&NativeProxy::registerSensor); - - auto unregisterSensorFunction = bindThis(&NativeProxy::unregisterSensor); - - auto setGestureStateFunction = bindThis(&NativeProxy::setGestureState); - - auto subscribeForKeyboardEventsFunction = - bindThis(&NativeProxy::subscribeForKeyboardEvents); - - auto unsubscribeFromKeyboardEventsFunction = - bindThis(&NativeProxy::unsubscribeFromKeyboardEvents); - - auto maybeFlushUiUpdatesQueueFunction = - bindThis(&NativeProxy::maybeFlushUIUpdatesQueue); - - return { - requestRender, - synchronouslyUpdateUIPropsFunction, - getAnimationTimestamp, - registerSensorFunction, - unregisterSensorFunction, - setGestureStateFunction, - subscribeForKeyboardEventsFunction, - unsubscribeFromKeyboardEventsFunction, - maybeFlushUiUpdatesQueueFunction, - }; -} - -void NativeProxy::invalidateCpp() { - workletsModuleProxy_.reset(); - // cleanup all animated sensors here, since the next line resets - // the pointer and it will be too late after it - reanimatedModuleProxy_->cleanupSensors(); - reanimatedModuleProxy_.reset(); - javaPart_ = nullptr; -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.h b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.h deleted file mode 100644 index 8a811e53..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/NativeProxy.h +++ /dev/null @@ -1,120 +0,0 @@ -#pragma once - -#include - -#include - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include - -namespace reanimated { - -using namespace facebook; -using namespace facebook::jni; - -class NativeProxy : public jni::HybridClass, - std::enable_shared_from_this { - public: - static auto constexpr kJavaDescriptor = - "Lcom/swmansion/reanimated/NativeProxy;"; - static jni::local_ref initHybrid( - jni::alias_ref jThis, - jni::alias_ref jWorkletsModule, - jlong jsContext, - jni::alias_ref - jsCallInvokerHolder, - jni::alias_ref - fabricUIManager); - - static void registerNatives(); - - ~NativeProxy(); - - private: - friend HybridBase; - jni::global_ref javaPart_; - jsi::Runtime *rnRuntime_; - std::shared_ptr workletsModuleProxy_; - std::shared_ptr reanimatedModuleProxy_; -#ifndef NDEBUG - void checkJavaVersion(); - void injectCppVersion(); -#endif // NDEBUG - // removed temporarily, event listener mechanism needs to be fixed on RN side - // std::shared_ptr reactScheduler_; - // std::shared_ptr eventListener_; - void installJSIBindings(); - void synchronouslyUpdateUIProps( - const std::vector &intBuffer, - const std::vector &doubleBuffer); - PlatformDepMethodsHolder getPlatformDependentMethods(); - - double getAnimationTimestamp(); - bool isAnyHandlerWaitingForEvent( - const std::string &eventName, - const int emitterReactTag); - void performOperations(); - bool getIsReducedMotion(); - void requestRender(std::function onRender); - void registerEventHandler(); - void maybeFlushUIUpdatesQueue(); - void setGestureState(int handlerTag, int newState); - int registerSensor( - int sensorType, - int interval, - int iosReferenceFrame, - std::function setter); - void unregisterSensor(int sensorId); - int subscribeForKeyboardEvents( - std::function callback, - bool isStatusBarTranslucent, - bool isNavigationBarTranslucent); - void unsubscribeFromKeyboardEvents(int listenerId); - void handleEvent( - jni::alias_ref eventName, - jint emitterReactTag, - jni::alias_ref event); - - /*** - * Wraps a method of `NativeProxy` in a function object capturing `this` - * @tparam TReturn return type of passed method - * @tparam TParams parameter types of passed method - * @param methodPtr pointer to method to be wrapped - * @return a function object with the same signature as the method, calling - * that method on `this` - */ - template - std::function bindThis( - TReturn (NativeProxy::*methodPtr)(TParams...)) { - // It's probably safe to pass `this` as reference here... - return [this, methodPtr](TParams &&...args) { - return (this->*methodPtr)(std::forward(args)...); - }; - } - - template - JMethod getJniMethod(std::string const &methodName) { - return javaPart_->getClass()->getMethod(methodName.c_str()); - } - - explicit NativeProxy( - jni::alias_ref jThis, - const std::shared_ptr &workletsModuleProxy, - jsi::Runtime *rnRuntime, - const std::shared_ptr &jsCallInvoker, - jni::alias_ref - fabricUIManager); - - void invalidateCpp(); -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/OnLoad.cpp b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/OnLoad.cpp deleted file mode 100644 index ad6ab7bd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/OnLoad.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include - -#include -#include -#include -#include -#include - -JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { - return facebook::jni::initialize(vm, [] { - reanimated::NativeProxy::registerNatives(); - reanimated::AnimationFrameCallback::registerNatives(); - reanimated::EventHandler::registerNatives(); - reanimated::SensorSetter::registerNatives(); - reanimated::KeyboardWorkletWrapper::registerNatives(); - }); -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/SensorSetter.h b/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/SensorSetter.h deleted file mode 100644 index a3fe548d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/cpp/reanimated/android/SensorSetter.h +++ /dev/null @@ -1,42 +0,0 @@ -#pragma once - -#include - -#include - -namespace reanimated { - -using namespace facebook; -using namespace facebook::jni; - -class SensorSetter : public HybridClass { - public: - static auto constexpr kJavaDescriptor = - "Lcom/swmansion/reanimated/nativeProxy/SensorSetter;"; - - void sensorSetter(jni::alias_ref value, int orientationDegrees) { - size_t size = value->size(); - auto elements = value->getRegion(0, size); - double array[7]; - for (size_t i = 0; i < size; i++) { - array[i] = elements[i]; - } - callback_(array, orientationDegrees); - } - - static void registerNatives() { - javaClassStatic()->registerNatives({ - makeNativeMethod("sensorSetter", SensorSetter::sensorSetter), - }); - } - - private: - friend HybridBase; - - explicit SensorSetter(std::function callback) - : callback_(std::move(callback)) {} - - std::function callback_; -}; - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/DevMenuUtils.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/DevMenuUtils.java deleted file mode 100644 index e641ae84..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/DevMenuUtils.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.swmansion.reanimated; - -import com.facebook.react.ReactApplication; -import com.facebook.react.bridge.ReactApplicationContext; -import com.facebook.react.devsupport.interfaces.DevOptionHandler; -import com.facebook.react.devsupport.interfaces.DevSupportManager; - -public class DevMenuUtils { - - public static void addDevMenuOption(ReactApplicationContext context, DevOptionHandler handler) { - // In Expo, `ApplicationContext` is not an instance of `ReactApplication` - if (context.getApplicationContext() instanceof ReactApplication) { - DevSupportManager devSupportManager = - ((ReactApplication) context.getApplicationContext()) - .getReactHost() - .getDevSupportManager(); - - if (devSupportManager != null) { - devSupportManager.addCustomDevOption("Toggle slow animations (Reanimated)", handler); - } else { - throw new RuntimeException("[Reanimated] DevSupportManager is not available"); - } - } - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java deleted file mode 100644 index a02506c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +++ /dev/null @@ -1,494 +0,0 @@ -package com.swmansion.reanimated; - -import android.content.ContentResolver; -import android.os.SystemClock; -import android.provider.Settings; -import androidx.annotation.OptIn; -import com.facebook.jni.HybridData; -import com.facebook.proguard.annotations.DoNotStrip; -import com.facebook.react.bridge.JavaOnlyArray; -import com.facebook.react.bridge.JavaOnlyMap; -import com.facebook.react.bridge.NativeModule; -import com.facebook.react.bridge.ReactApplicationContext; -import com.facebook.react.bridge.UiThreadUtil; -import com.facebook.react.common.annotations.FrameworkAPI; -import com.facebook.react.fabric.FabricUIManager; -import com.facebook.react.turbomodule.core.CallInvokerHolderImpl; -import com.facebook.react.uimanager.UIManagerHelper; -import com.facebook.react.uimanager.common.UIManagerType; -import com.facebook.soloader.SoLoader; -import com.swmansion.common.GestureHandlerStateManager; -import com.swmansion.reanimated.keyboard.KeyboardAnimationManager; -import com.swmansion.reanimated.keyboard.KeyboardWorkletWrapper; -import com.swmansion.reanimated.nativeProxy.AnimationFrameCallback; -import com.swmansion.reanimated.nativeProxy.EventHandler; -import com.swmansion.reanimated.nativeProxy.SensorSetter; -import com.swmansion.reanimated.sensor.ReanimatedSensorContainer; -import com.swmansion.reanimated.sensor.ReanimatedSensorType; -import com.swmansion.worklets.JSCallInvokerResolver; -import com.swmansion.worklets.WorkletsModule; -import java.lang.ref.WeakReference; -import java.util.Arrays; -import java.util.Objects; -import java.util.PrimitiveIterator; -import java.util.concurrent.atomic.AtomicBoolean; - -/** - * @noinspection JavaJniMissingFunction - */ -public class NativeProxy { - static { - SoLoader.loadLibrary("reanimated"); - } - - protected final WorkletsModule mWorkletsModule; - protected NodesManager mNodesManager; - protected final FabricUIManager mFabricUIManager; - protected final WeakReference mContext; - private final ReanimatedSensorContainer reanimatedSensorContainer; - private final GestureHandlerStateManager gestureHandlerStateManager; - private final KeyboardAnimationManager keyboardAnimationManager; - private Long firstUptime = SystemClock.uptimeMillis(); - private boolean slowAnimationsEnabled = false; - private final int ANIMATIONS_DRAG_FACTOR = 10; - protected String cppVersion = null; - - /** - * Invalidating concurrently could be fatal. It shouldn't happen in a normal flow, but it doesn't - * cost us much to add synchronization for extra safety. - */ - private final AtomicBoolean mInvalidated = new AtomicBoolean(false); - - @DoNotStrip - @SuppressWarnings("unused") - private final HybridData mHybridData; - - public @OptIn(markerClass = FrameworkAPI.class) NativeProxy( - ReactApplicationContext context, WorkletsModule workletsModule, NodesManager nodesManager) { - context.assertOnJSQueueThread(); - - mWorkletsModule = workletsModule; - mContext = new WeakReference<>(context); - reanimatedSensorContainer = new ReanimatedSensorContainer(mContext); - keyboardAnimationManager = new KeyboardAnimationManager(mContext); - addDevMenuOption(); - - GestureHandlerStateManager tempHandlerStateManager; - try { - Class gestureHandlerModuleClass = - (Class) - Class.forName("com.swmansion.gesturehandler.react.RNGestureHandlerModule"); - tempHandlerStateManager = - (GestureHandlerStateManager) context.getNativeModule(gestureHandlerModuleClass); - } catch (ClassCastException | ClassNotFoundException e) { - tempHandlerStateManager = null; - } - gestureHandlerStateManager = tempHandlerStateManager; - mNodesManager = nodesManager; - - mFabricUIManager = - (FabricUIManager) UIManagerHelper.getUIManager(context, UIManagerType.FABRIC); - - CallInvokerHolderImpl callInvokerHolder = JSCallInvokerResolver.getJSCallInvokerHolder(context); - mHybridData = - initHybrid( - workletsModule, - Objects.requireNonNull(context.getJavaScriptContextHolder()).get(), - callInvokerHolder, - mFabricUIManager); - if (BuildConfig.DEBUG) { - checkCppVersion(); // injectCppVersion should be called during initHybrid above - } - } - - @OptIn(markerClass = FrameworkAPI.class) - private native HybridData initHybrid( - WorkletsModule workletsModule, - long jsContext, - CallInvokerHolderImpl jsCallInvokerHolder, - FabricUIManager fabricUIManager); - - public native boolean isAnyHandlerWaitingForEvent(String eventName, int emitterReactTag); - - public native void performOperations(); - - protected native void installJSIBindings(); - - private native void invalidateCpp(); - - protected HybridData getHybridData() { - return mHybridData; - } - - protected void invalidate() { - if (mInvalidated.getAndSet(true)) { - return; - } - if (mHybridData != null && mHybridData.isValid()) { - invalidateCpp(); - } - } - - private void toggleSlowAnimations() { - slowAnimationsEnabled = !slowAnimationsEnabled; - if (slowAnimationsEnabled) { - firstUptime = SystemClock.uptimeMillis(); - } - mNodesManager.enableSlowAnimations(slowAnimationsEnabled, ANIMATIONS_DRAG_FACTOR); - mWorkletsModule.toggleSlowAnimations(); - } - - private void addDevMenuOption() { - // In Expo, `ApplicationContext` is not an instance of `ReactApplication` - DevMenuUtils.addDevMenuOption(mContext.get(), this::toggleSlowAnimations); - } - - @DoNotStrip - public void requestRender(AnimationFrameCallback callback) { - UiThreadUtil.assertOnUiThread(); - mNodesManager.postOnAnimation(callback); - } - - @DoNotStrip - public String getReanimatedJavaVersion() { - return BuildConfig.REANIMATED_VERSION_JAVA; - } - - @DoNotStrip - @SuppressWarnings("unused") - // It turns out it's pretty difficult to set a member of a class - // instance through JNI so we decided to use a setter instead. - protected void setCppVersion(String version) { - cppVersion = version; - } - - protected void checkCppVersion() { - if (cppVersion == null) { - throw new RuntimeException( - "[Reanimated] Java side failed to resolve C++ code version. " - + "See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#java-side-failed-to-resolve-c-code-version for more information."); - } - String javaVersion = getReanimatedJavaVersion(); - if (!cppVersion.equals(javaVersion)) { - throw new RuntimeException( - "[Reanimated] Mismatch between Java code version and C++ code version (" - + javaVersion - + " vs. " - + cppVersion - + " respectively). See " - + "https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#mismatch-between-java-code-version-and-c-code-version for more information."); - } - } - - // NOTE: Keep in sync with ReanimatedModuleProxy::performOperations - private static final int CMD_START_OF_VIEW = 1; - private static final int CMD_START_OF_TRANSFORM = 2; - private static final int CMD_END_OF_TRANSFORM = 3; - private static final int CMD_END_OF_VIEW = 4; - - private static final int CMD_OPACITY = 10; - private static final int CMD_ELEVATION = 11; - private static final int CMD_Z_INDEX = 12; - private static final int CMD_SHADOW_OPACITY = 13; - private static final int CMD_SHADOW_RADIUS = 14; - private static final int CMD_BACKGROUND_COLOR = 15; - private static final int CMD_COLOR = 16; - private static final int CMD_TINT_COLOR = 17; - - private static final int CMD_BORDER_RADIUS = 20; - private static final int CMD_BORDER_TOP_LEFT_RADIUS = 21; - private static final int CMD_BORDER_TOP_RIGHT_RADIUS = 22; - private static final int CMD_BORDER_TOP_START_RADIUS = 23; - private static final int CMD_BORDER_TOP_END_RADIUS = 24; - private static final int CMD_BORDER_BOTTOM_LEFT_RADIUS = 25; - private static final int CMD_BORDER_BOTTOM_RIGHT_RADIUS = 26; - private static final int CMD_BORDER_BOTTOM_START_RADIUS = 27; - private static final int CMD_BORDER_BOTTOM_END_RADIUS = 28; - private static final int CMD_BORDER_START_START_RADIUS = 29; - private static final int CMD_BORDER_START_END_RADIUS = 30; - private static final int CMD_BORDER_END_START_RADIUS = 31; - private static final int CMD_BORDER_END_END_RADIUS = 32; - - private static final int CMD_BORDER_COLOR = 40; - private static final int CMD_BORDER_TOP_COLOR = 41; - private static final int CMD_BORDER_BOTTOM_COLOR = 42; - private static final int CMD_BORDER_LEFT_COLOR = 43; - private static final int CMD_BORDER_RIGHT_COLOR = 44; - private static final int CMD_BORDER_START_COLOR = 45; - private static final int CMD_BORDER_END_COLOR = 46; - - private static final int CMD_TRANSFORM_TRANSLATE_X = 100; - private static final int CMD_TRANSFORM_TRANSLATE_Y = 101; - private static final int CMD_TRANSFORM_SCALE = 102; - private static final int CMD_TRANSFORM_SCALE_X = 103; - private static final int CMD_TRANSFORM_SCALE_Y = 104; - private static final int CMD_TRANSFORM_ROTATE = 105; - private static final int CMD_TRANSFORM_ROTATE_X = 106; - private static final int CMD_TRANSFORM_ROTATE_Y = 107; - private static final int CMD_TRANSFORM_ROTATE_Z = 108; - private static final int CMD_TRANSFORM_SKEW_X = 109; - private static final int CMD_TRANSFORM_SKEW_Y = 110; - private static final int CMD_TRANSFORM_MATRIX = 111; - private static final int CMD_TRANSFORM_PERSPECTIVE = 112; - - private static final int CMD_UNIT_DEG = 200; - private static final int CMD_UNIT_RAD = 201; - private static final int CMD_UNIT_PX = 202; - private static final int CMD_UNIT_PERCENT = 203; - - private static String commandToString(int command) { - return switch (command) { - case CMD_OPACITY -> "opacity"; - case CMD_ELEVATION -> "elevation"; - case CMD_Z_INDEX -> "zIndex"; - case CMD_SHADOW_OPACITY -> "shadowOpacity"; - case CMD_SHADOW_RADIUS -> "shadowRadius"; - case CMD_BACKGROUND_COLOR -> "backgroundColor"; - case CMD_COLOR -> "color"; - case CMD_TINT_COLOR -> "tintColor"; - case CMD_BORDER_RADIUS -> "borderRadius"; - case CMD_BORDER_TOP_LEFT_RADIUS -> "borderTopLeftRadius"; - case CMD_BORDER_TOP_RIGHT_RADIUS -> "borderTopRightRadius"; - case CMD_BORDER_TOP_START_RADIUS -> "borderTopStartRadius"; - case CMD_BORDER_TOP_END_RADIUS -> "borderTopEndRadius"; - case CMD_BORDER_BOTTOM_LEFT_RADIUS -> "borderBottomLeftRadius"; - case CMD_BORDER_BOTTOM_RIGHT_RADIUS -> "borderBottomRightRadius"; - case CMD_BORDER_BOTTOM_START_RADIUS -> "borderBottomStartRadius"; - case CMD_BORDER_BOTTOM_END_RADIUS -> "borderBottomEndRadius"; - case CMD_BORDER_START_START_RADIUS -> "borderStartStartRadius"; - case CMD_BORDER_START_END_RADIUS -> "borderStartEndRadius"; - case CMD_BORDER_END_START_RADIUS -> "borderEndStartRadius"; - case CMD_BORDER_END_END_RADIUS -> "borderEndEndRadius"; - case CMD_BORDER_COLOR -> "borderColor"; - case CMD_BORDER_TOP_COLOR -> "borderTopColor"; - case CMD_BORDER_BOTTOM_COLOR -> "borderBottomColor"; - case CMD_BORDER_LEFT_COLOR -> "borderLeftColor"; - case CMD_BORDER_RIGHT_COLOR -> "borderRightColor"; - case CMD_BORDER_START_COLOR -> "borderStartColor"; - case CMD_BORDER_END_COLOR -> "borderEndColor"; - default -> throw new RuntimeException("Unknown command: " + command); - }; - } - - private static String transformCommandToString(int transformCommand) { - return switch (transformCommand) { - case CMD_TRANSFORM_TRANSLATE_X -> "translateX"; - case CMD_TRANSFORM_TRANSLATE_Y -> "translateY"; - case CMD_TRANSFORM_SCALE -> "scale"; - case CMD_TRANSFORM_SCALE_X -> "scaleX"; - case CMD_TRANSFORM_SCALE_Y -> "scaleY"; - case CMD_TRANSFORM_ROTATE -> "rotate"; - case CMD_TRANSFORM_ROTATE_X -> "rotateX"; - case CMD_TRANSFORM_ROTATE_Y -> "rotateY"; - case CMD_TRANSFORM_ROTATE_Z -> "rotateZ"; - case CMD_TRANSFORM_SKEW_X -> "skewX"; - case CMD_TRANSFORM_SKEW_Y -> "skewY"; - case CMD_TRANSFORM_MATRIX -> "matrix"; - case CMD_TRANSFORM_PERSPECTIVE -> "perspective"; - default -> throw new RuntimeException("Unknown transform command: " + transformCommand); - }; - } - - @DoNotStrip - public void synchronouslyUpdateUIProps(int[] intBuffer, double[] doubleBuffer) { - PrimitiveIterator.OfInt intIterator = Arrays.stream(intBuffer).iterator(); - PrimitiveIterator.OfDouble doubleIterator = Arrays.stream(doubleBuffer).iterator(); - int viewTag = -1; - JavaOnlyMap props = new JavaOnlyMap(); - while (intIterator.hasNext()) { - int command = intIterator.nextInt(); - switch (command) { - case CMD_START_OF_VIEW: - viewTag = intIterator.nextInt(); - props = new JavaOnlyMap(); - break; - - case CMD_OPACITY: - case CMD_ELEVATION: - case CMD_Z_INDEX: - case CMD_SHADOW_OPACITY: - case CMD_SHADOW_RADIUS: - { - String name = commandToString(command); - props.putDouble(name, doubleIterator.nextDouble()); - break; - } - - case CMD_BACKGROUND_COLOR: - case CMD_COLOR: - case CMD_TINT_COLOR: - case CMD_BORDER_COLOR: - case CMD_BORDER_TOP_COLOR: - case CMD_BORDER_BOTTOM_COLOR: - case CMD_BORDER_LEFT_COLOR: - case CMD_BORDER_RIGHT_COLOR: - case CMD_BORDER_START_COLOR: - case CMD_BORDER_END_COLOR: - { - String name = commandToString(command); - props.putInt(name, intIterator.nextInt()); - break; - } - - case CMD_BORDER_RADIUS: - case CMD_BORDER_TOP_LEFT_RADIUS: - case CMD_BORDER_TOP_RIGHT_RADIUS: - case CMD_BORDER_TOP_START_RADIUS: - case CMD_BORDER_TOP_END_RADIUS: - case CMD_BORDER_BOTTOM_LEFT_RADIUS: - case CMD_BORDER_BOTTOM_RIGHT_RADIUS: - case CMD_BORDER_BOTTOM_START_RADIUS: - case CMD_BORDER_BOTTOM_END_RADIUS: - case CMD_BORDER_START_START_RADIUS: - case CMD_BORDER_START_END_RADIUS: - case CMD_BORDER_END_START_RADIUS: - case CMD_BORDER_END_END_RADIUS: - { - String name = commandToString(command); - double value = doubleIterator.nextDouble(); - switch (intIterator.nextInt()) { - case CMD_UNIT_PX -> props.putDouble(name, value); - case CMD_UNIT_PERCENT -> props.putString(name, value + "%"); - default -> throw new RuntimeException("Unknown unit command"); - } - break; - } - - case CMD_START_OF_TRANSFORM: - JavaOnlyArray transform = new JavaOnlyArray(); - while (true) { - int transformCommand = intIterator.nextInt(); - if (transformCommand == CMD_END_OF_TRANSFORM) { - props.putArray("transform", transform); - break; - } - String name = transformCommandToString(transformCommand); - switch (transformCommand) { - case CMD_TRANSFORM_TRANSLATE_X: - case CMD_TRANSFORM_TRANSLATE_Y: - { - double value = doubleIterator.nextDouble(); - switch (intIterator.nextInt()) { - case CMD_UNIT_PX -> transform.pushMap(JavaOnlyMap.of(name, value)); - case CMD_UNIT_PERCENT -> transform.pushMap(JavaOnlyMap.of(name, value + "%")); - default -> throw new RuntimeException("Unknown unit command"); - } - break; - } - - case CMD_TRANSFORM_SCALE: - case CMD_TRANSFORM_SCALE_X: - case CMD_TRANSFORM_SCALE_Y: - case CMD_TRANSFORM_PERSPECTIVE: - { - double value = doubleIterator.nextDouble(); - transform.pushMap(JavaOnlyMap.of(name, value)); - break; - } - - case CMD_TRANSFORM_ROTATE: - case CMD_TRANSFORM_ROTATE_X: - case CMD_TRANSFORM_ROTATE_Y: - case CMD_TRANSFORM_ROTATE_Z: - case CMD_TRANSFORM_SKEW_X: - case CMD_TRANSFORM_SKEW_Y: - double angle = doubleIterator.nextDouble(); - String unit = - switch (intIterator.nextInt()) { - case CMD_UNIT_DEG -> "deg"; - case CMD_UNIT_RAD -> "rad"; - default -> throw new RuntimeException("Unknown unit command"); - }; - transform.pushMap(JavaOnlyMap.of(name, angle + unit)); - break; - - case CMD_TRANSFORM_MATRIX: - int length = intIterator.nextInt(); - JavaOnlyArray matrix = new JavaOnlyArray(); - for (int i = 0; i < length; i++) { - matrix.pushDouble(doubleIterator.nextDouble()); - } - transform.pushMap(JavaOnlyMap.of(name, matrix)); - break; - - default: - throw new RuntimeException("Unknown transform type: " + transformCommand); - } - } - break; - - case CMD_END_OF_VIEW: - mFabricUIManager.synchronouslyUpdateViewOnUIThread(viewTag, props); - break; - - default: - throw new RuntimeException("Unexcepted command: " + command); - } - } - } - - @DoNotStrip - public void setGestureState(int handlerTag, int newState) { - if (gestureHandlerStateManager != null) { - gestureHandlerStateManager.setGestureHandlerState(handlerTag, newState); - } - } - - @DoNotStrip - public long getAnimationTimestamp() { - if (slowAnimationsEnabled) { - return this.firstUptime - + (SystemClock.uptimeMillis() - this.firstUptime) / ANIMATIONS_DRAG_FACTOR; - } else { - return SystemClock.uptimeMillis(); - } - } - - @DoNotStrip - public void registerEventHandler(EventHandler handler) { - handler.mCustomEventNamesResolver = mNodesManager.getEventNameResolver(); - mNodesManager.registerEventHandler(handler); - } - - @DoNotStrip - public int registerSensor(int sensorType, int interval, SensorSetter setter) { - return reanimatedSensorContainer.registerSensor( - ReanimatedSensorType.getInstanceById(sensorType), interval, setter); - } - - @DoNotStrip - public void unregisterSensor(int sensorId) { - reanimatedSensorContainer.unregisterSensor(sensorId); - } - - @DoNotStrip - public int subscribeForKeyboardEvents( - KeyboardWorkletWrapper keyboardWorkletWrapper, - boolean isStatusBarTranslucent, - boolean isNavigationBarTranslucent) { - return keyboardAnimationManager.subscribeForKeyboardUpdates( - keyboardWorkletWrapper, isStatusBarTranslucent, isNavigationBarTranslucent); - } - - @DoNotStrip - public void unsubscribeFromKeyboardEvents(int listenerId) { - keyboardAnimationManager.unsubscribeFromKeyboardUpdates(listenerId); - } - - @DoNotStrip - public boolean getIsReducedMotion() { - ContentResolver mContentResolver = mContext.get().getContentResolver(); - String rawValue = - Settings.Global.getString(mContentResolver, Settings.Global.TRANSITION_ANIMATION_SCALE); - float parsedValue = rawValue != null ? Float.parseFloat(rawValue) : 1f; - return parsedValue == 0f; - } - - @DoNotStrip - void maybeFlushUIUpdatesQueue() { - UiThreadUtil.assertOnUiThread(); - if (!mNodesManager.isAnimationRunning()) { - mNodesManager.performOperations(); - } - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java index a322746b..5db6885b 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java @@ -1,49 +1,103 @@ package com.swmansion.reanimated; -import android.os.SystemClock; -import androidx.tracing.Trace; +import static java.lang.Float.NaN; + +import android.view.View; +import com.facebook.react.bridge.Arguments; +import com.facebook.react.bridge.GuardedRunnable; +import com.facebook.react.bridge.JavaOnlyMap; import com.facebook.react.bridge.ReactApplicationContext; -import com.facebook.react.bridge.UIManager; +import com.facebook.react.bridge.ReactContext; +import com.facebook.react.bridge.ReadableArray; +import com.facebook.react.bridge.ReadableMap; +import com.facebook.react.bridge.ReadableType; import com.facebook.react.bridge.UiThreadUtil; +import com.facebook.react.bridge.WritableArray; import com.facebook.react.bridge.WritableMap; -import com.facebook.react.fabric.FabricUIManager; import com.facebook.react.modules.core.DeviceEventManagerModule; import com.facebook.react.modules.core.ReactChoreographer; import com.facebook.react.uimanager.GuardedFrameCallback; -import com.facebook.react.uimanager.UIManagerHelper; +import com.facebook.react.uimanager.IllegalViewOperationException; +import com.facebook.react.uimanager.ReactShadowNode; +import com.facebook.react.uimanager.ReactStylesDiffMap; +import com.facebook.react.uimanager.UIImplementation; import com.facebook.react.uimanager.UIManagerModule; -import com.facebook.react.uimanager.common.UIManagerType; +import com.facebook.react.uimanager.UIManagerReanimatedHelper; import com.facebook.react.uimanager.events.Event; import com.facebook.react.uimanager.events.EventDispatcherListener; import com.facebook.react.uimanager.events.RCTEventEmitter; +import com.swmansion.reanimated.layoutReanimation.AnimationsManager; import com.swmansion.reanimated.nativeProxy.NoopEventHandler; -import com.swmansion.worklets.WorkletsModule; import java.util.ArrayList; +import java.util.Collections; +import java.util.LinkedList; import java.util.List; +import java.util.Map; +import java.util.Queue; +import java.util.Set; import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.Semaphore; +import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import javax.annotation.Nullable; public class NodesManager implements EventDispatcherListener { - private Long mFirstUptime = SystemClock.uptimeMillis(); - private boolean mSlowAnimationsEnabled = false; - private int mAnimationsDragFactor; + public void scrollTo(int viewTag, double x, double y, boolean animated) { + View view; + try { + view = mUIManager.resolveView(viewTag); + } catch (IllegalViewOperationException e) { + e.printStackTrace(); + return; + } + NativeMethodsHelper.scrollTo(view, x, y, animated); + } + + public void dispatchCommand(int viewTag, String commandId, ReadableArray commandArgs) { + // mUIManager.dispatchCommand must be called from native modules queue thread + // because of an assert in ShadowNodeRegistry.getNode + mContext.runOnNativeModulesQueueThread( + new GuardedRunnable(mContext.getExceptionHandler()) { + @Override + public void runGuarded() { + mUIManager.dispatchCommand(viewTag, commandId, commandArgs); + } + }); + } + + public float[] measure(int viewTag) { + View view; + try { + view = mUIManager.resolveView(viewTag); + } catch (IllegalViewOperationException e) { + e.printStackTrace(); + return (new float[] {NaN, NaN, NaN, NaN, NaN, NaN}); + } + return NativeMethodsHelper.measure(view); + } public interface OnAnimationFrame { void onAnimationFrame(double timestampMs); } + private AnimationsManager mAnimationManager; + private final UIImplementation mUIImplementation; private final DeviceEventManagerModule.RCTDeviceEventEmitter mEventEmitter; private final ReactChoreographer mReactChoreographer; private final GuardedFrameCallback mChoreographerCallback; protected final UIManagerModule.CustomEventNamesResolver mCustomEventNamesResolver; private final AtomicBoolean mCallbackPosted = new AtomicBoolean(); + private final ReactContext mContext; + private final UIManagerModule mUIManager; + private ReactApplicationContext mReactApplicationContext; private RCTEventEmitter mCustomEventHandler = new NoopEventHandler(); private List mFrameCallbacks = new ArrayList<>(); private ConcurrentLinkedQueue mEventQueue = new ConcurrentLinkedQueue<>(); private double lastFrameTimeMs; - private FabricUIManager mFabricUIManager; + public Set uiProps = Collections.emptySet(); + public Set nativeProps = Collections.emptySet(); + private ReaCompatibility compatibility; public NativeProxy getNativeProxy() { return mNativeProxy; @@ -51,23 +105,47 @@ public class NodesManager implements EventDispatcherListener { private NativeProxy mNativeProxy; - public void invalidate() { - if (mNativeProxy != null) { - mNativeProxy.invalidate(); - mNativeProxy = null; + public AnimationsManager getAnimationsManager() { + return mAnimationManager; + } + + public void onCatalystInstanceDestroy() { + if (mAnimationManager != null) { + mAnimationManager.onCatalystInstanceDestroy(); } - if (mFabricUIManager != null) { - mFabricUIManager.getEventDispatcher().removeListener(this); + if (mNativeProxy != null) { + mNativeProxy.onCatalystInstanceDestroy(); + mNativeProxy = null; } } - public NodesManager(ReactApplicationContext context, WorkletsModule workletsModule) { - context.assertOnJSQueueThread(); + public void initWithContext(ReactApplicationContext reactApplicationContext) { + mReactApplicationContext = reactApplicationContext; + mNativeProxy = new NativeProxy(reactApplicationContext); + mAnimationManager.setAndroidUIScheduler(getNativeProxy().getAndroidUIScheduler()); + compatibility = new ReaCompatibility(reactApplicationContext); + compatibility.registerFabricEventListener(this); + } - UIManager uiManager = UIManagerHelper.getUIManager(context, UIManagerType.FABRIC); - assert uiManager != null; - mCustomEventNamesResolver = uiManager::resolveCustomDirectEventName; + private final class NativeUpdateOperation { + public int mViewTag; + public WritableMap mNativeProps; + + public NativeUpdateOperation(int viewTag, WritableMap nativeProps) { + mViewTag = viewTag; + mNativeProps = nativeProps; + } + } + + private Queue mOperationsInBatch = new LinkedList<>(); + private boolean mTryRunBatchUpdatesSynchronously = false; + + public NodesManager(ReactContext context) { + mContext = context; + mUIManager = context.getNativeModule(UIManagerModule.class); + mUIImplementation = mUIManager.getUIImplementation(); + mCustomEventNamesResolver = mUIManager.getDirectEventNamesResolver(); mEventEmitter = context.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class); mReactChoreographer = ReactChoreographer.getInstance(); @@ -79,9 +157,17 @@ public class NodesManager implements EventDispatcherListener { } }; - mNativeProxy = new NativeProxy(context, workletsModule, this); - mFabricUIManager = (FabricUIManager) uiManager; - mFabricUIManager.getEventDispatcher().addListener(this); + // We register as event listener at the end, because we pass `this` and we haven't finished + // contructing an object yet. + // This lead to a crash described in + // https://github.com/software-mansion/react-native-reanimated/issues/604 which was caused by + // Nodes Manager being constructed on UI thread and registering for events. + // Events are handled in the native modules thread in the `onEventDispatch()` method. + // This method indirectly uses `mChoreographerCallback` which was created after event + // registration, creating race condition + mUIManager.getEventDispatcher().addListener(this); + + mAnimationManager = new AnimationsManager(mContext, mUIManager); } public void onHostPause() { @@ -116,58 +202,99 @@ public class NodesManager implements EventDispatcherListener { } public void performOperations() { - UiThreadUtil.assertOnUiThread(); - if (mNativeProxy != null) { - mNativeProxy.performOperations(); + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + if (mNativeProxy != null) { + mNativeProxy.performOperations(); + } + } else if (!mOperationsInBatch.isEmpty()) { + final Queue copiedOperationsQueue = mOperationsInBatch; + mOperationsInBatch = new LinkedList<>(); + final boolean trySynchronously = mTryRunBatchUpdatesSynchronously; + mTryRunBatchUpdatesSynchronously = false; + final Semaphore semaphore = new Semaphore(0); + mContext.runOnNativeModulesQueueThread( + new GuardedRunnable(mContext.getExceptionHandler()) { + @Override + public void runGuarded() { + boolean queueWasEmpty = + UIManagerReanimatedHelper.isOperationQueueEmpty(mUIImplementation); + boolean shouldDispatchUpdates = trySynchronously && queueWasEmpty; + if (!shouldDispatchUpdates) { + semaphore.release(); + } + while (!copiedOperationsQueue.isEmpty()) { + NativeUpdateOperation op = copiedOperationsQueue.remove(); + ReactShadowNode shadowNode = mUIImplementation.resolveShadowNode(op.mViewTag); + if (shadowNode != null) { + mUIManager.updateView(op.mViewTag, shadowNode.getViewClass(), op.mNativeProps); + } + } + if (queueWasEmpty) { + mUIImplementation.dispatchViewUpdates(-1); // no associated batchId + } + if (shouldDispatchUpdates) { + semaphore.release(); + } + } + }); + if (trySynchronously) { + try { + semaphore.tryAcquire(16, TimeUnit.MILLISECONDS); + } catch (InterruptedException e) { + // if the thread is interruped we just continue and let the layout update happen + // asynchronously + } + } } } private void onAnimationFrame(long frameTimeNanos) { - UiThreadUtil.assertOnUiThread(); + // Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "onAnimationFrame"); - try { - if (BuildConfig.REANIMATED_PROFILING) { - Trace.beginSection("onAnimationFrame"); + double currentFrameTimeMs = frameTimeNanos / 1000000.; + + if (currentFrameTimeMs > lastFrameTimeMs) { + // It is possible for ChoreographerCallback to be executed twice within the same frame + // due to frame drops. If this occurs, the additional callback execution should be ignored. + lastFrameTimeMs = currentFrameTimeMs; + + while (!mEventQueue.isEmpty()) { + CopiedEvent copiedEvent = mEventQueue.poll(); + handleEvent( + copiedEvent.getTargetTag(), copiedEvent.getEventName(), copiedEvent.getPayload()); } - double currentFrameTimeMs = frameTimeNanos / 1000000.; - if (mSlowAnimationsEnabled) { - currentFrameTimeMs = - mFirstUptime + (currentFrameTimeMs - mFirstUptime) / mAnimationsDragFactor; - } - - if (currentFrameTimeMs > lastFrameTimeMs) { - // It is possible for ChoreographerCallback to be executed twice within the same frame - // due to frame drops. If this occurs, the additional callback execution should be ignored. - lastFrameTimeMs = currentFrameTimeMs; - - while (!mEventQueue.isEmpty()) { - CopiedEvent copiedEvent = mEventQueue.poll(); - handleEvent( - copiedEvent.getTargetTag(), copiedEvent.getEventName(), copiedEvent.getPayload()); + if (!mFrameCallbacks.isEmpty()) { + List frameCallbacks = mFrameCallbacks; + mFrameCallbacks = new ArrayList<>(frameCallbacks.size()); + for (int i = 0, size = frameCallbacks.size(); i < size; i++) { + frameCallbacks.get(i).onAnimationFrame(currentFrameTimeMs); } - - if (!mFrameCallbacks.isEmpty()) { - List frameCallbacks = mFrameCallbacks; - mFrameCallbacks = new ArrayList<>(frameCallbacks.size()); - for (int i = 0, size = frameCallbacks.size(); i < size; i++) { - frameCallbacks.get(i).onAnimationFrame(currentFrameTimeMs); - } - } - - performOperations(); } - mCallbackPosted.set(false); - if (!mFrameCallbacks.isEmpty() || !mEventQueue.isEmpty()) { - // enqueue next frame - startUpdatingOnAnimationFrame(); - } - } finally { - if (BuildConfig.REANIMATED_PROFILING) { - Trace.endSection(); - } + performOperations(); } + + mCallbackPosted.set(false); + if (!mFrameCallbacks.isEmpty() || !mEventQueue.isEmpty()) { + // enqueue next frame + startUpdatingOnAnimationFrame(); + } + + // Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE); + } + + public void enqueueUpdateViewOnNativeThread( + int viewTag, WritableMap nativeProps, boolean trySynchronously) { + if (trySynchronously) { + mTryRunBatchUpdatesSynchronously = true; + } + mOperationsInBatch.add(new NativeUpdateOperation(viewTag, nativeProps)); + } + + public void configureProps(Set uiPropsSet, Set nativePropsSet) { + uiProps = uiPropsSet; + nativeProps = nativePropsSet; } public void postOnAnimation(OnAnimationFrame onAnimationFrame) { @@ -177,32 +304,22 @@ public class NodesManager implements EventDispatcherListener { @Override public void onEventDispatch(Event event) { - try { - if (BuildConfig.REANIMATED_PROFILING) { - Trace.beginSection("onEventDispatch"); - } - - if (mNativeProxy == null) { - return; - } - // Events can be dispatched from any thread so we have to make sure handleEvent is run from - // the UI thread. - if (UiThreadUtil.isOnUiThread()) { - handleEvent(event); - performOperations(); - } else { - String eventName = mCustomEventNamesResolver.resolveCustomEventName(event.getEventName()); - int viewTag = event.getViewTag(); - boolean shouldSaveEvent = mNativeProxy.isAnyHandlerWaitingForEvent(eventName, viewTag); - if (shouldSaveEvent) { - mEventQueue.offer(new CopiedEvent(event)); - } - startUpdatingOnAnimationFrame(); - } - } finally { - if (BuildConfig.REANIMATED_PROFILING) { - Trace.endSection(); + if (mNativeProxy == null) { + return; + } + // Events can be dispatched from any thread so we have to make sure handleEvent is run from the + // UI thread. + if (UiThreadUtil.isOnUiThread()) { + handleEvent(event); + performOperations(); + } else { + String eventName = mCustomEventNamesResolver.resolveCustomEventName(event.getEventName()); + int viewTag = event.getViewTag(); + boolean shouldSaveEvent = mNativeProxy.isAnyHandlerWaitingForEvent(eventName, viewTag); + if (shouldSaveEvent) { + mEventQueue.offer(new CopiedEvent(event)); } + startUpdatingOnAnimationFrame(); } } @@ -226,11 +343,128 @@ public class NodesManager implements EventDispatcherListener { mEventEmitter.emit(name, body); } - public void enableSlowAnimations(boolean slowAnimationsEnabled, int animationsDragFactor) { - mSlowAnimationsEnabled = slowAnimationsEnabled; - mAnimationsDragFactor = animationsDragFactor; - if (slowAnimationsEnabled) { - mFirstUptime = SystemClock.uptimeMillis(); + public void updateProps(int viewTag, Map props) { + // TODO: update PropsNode to use this method instead of its own way of updating props + boolean hasUIProps = false; + boolean hasNativeProps = false; + boolean hasJSProps = false; + JavaOnlyMap newUIProps = new JavaOnlyMap(); + WritableMap newJSProps = Arguments.createMap(); + WritableMap newNativeProps = Arguments.createMap(); + + for (Map.Entry entry : props.entrySet()) { + String key = entry.getKey(); + Object value = entry.getValue(); + if (uiProps.contains(key)) { + hasUIProps = true; + addProp(newUIProps, key, value); + } else if (nativeProps.contains(key)) { + hasNativeProps = true; + addProp(newNativeProps, key, value); + } else { + hasJSProps = true; + addProp(newJSProps, key, value); + } + } + + if (viewTag != View.NO_ID) { + if (hasUIProps) { + mUIImplementation.synchronouslyUpdateViewOnUIThread( + viewTag, new ReactStylesDiffMap(newUIProps)); + } + if (hasNativeProps) { + enqueueUpdateViewOnNativeThread(viewTag, newNativeProps, true); + } + if (hasJSProps) { + WritableMap evt = Arguments.createMap(); + evt.putInt("viewTag", viewTag); + evt.putMap("props", newJSProps); + sendEvent("onReanimatedPropsChange", evt); + } + } + } + + public void synchronouslyUpdateUIProps(int viewTag, ReadableMap uiProps) { + compatibility.synchronouslyUpdateUIProps(viewTag, uiProps); + } + + public String obtainProp(int viewTag, String propName) { + View view = mUIManager.resolveView(viewTag); + String result = + "error: unknown propName " + propName + ", currently supported: opacity, zIndex"; + if (propName.equals("opacity")) { + Float opacity = view.getAlpha(); + result = Float.toString(opacity); + } else if (propName.equals("zIndex")) { + Float zIndex = view.getElevation(); + result = Float.toString(zIndex); + } + return result; + } + + private static WritableMap copyReadableMap(ReadableMap map) { + WritableMap copy = Arguments.createMap(); + copy.merge(map); + return copy; + } + + private static WritableArray copyReadableArray(ReadableArray array) { + WritableArray copy = Arguments.createArray(); + for (int i = 0; i < array.size(); i++) { + ReadableType type = array.getType(i); + switch (type) { + case Boolean: + copy.pushBoolean(array.getBoolean(i)); + break; + case String: + copy.pushString(array.getString(i)); + break; + case Null: + copy.pushNull(); + break; + case Number: + copy.pushDouble(array.getDouble(i)); + break; + case Map: + copy.pushMap(copyReadableMap(array.getMap(i))); + break; + case Array: + copy.pushArray(copyReadableArray(array.getArray(i))); + break; + default: + throw new IllegalStateException("[Reanimated] Unknown type of ReadableArray."); + } + } + return copy; + } + + private static void addProp(WritableMap propMap, String key, Object value) { + if (value == null) { + propMap.putNull(key); + } else if (value instanceof Double) { + propMap.putDouble(key, (Double) value); + } else if (value instanceof Integer) { + propMap.putInt(key, (Integer) value); + } else if (value instanceof Number) { + propMap.putDouble(key, ((Number) value).doubleValue()); + } else if (value instanceof Boolean) { + propMap.putBoolean(key, (Boolean) value); + } else if (value instanceof String) { + propMap.putString(key, (String) value); + } else if (value instanceof ReadableArray) { + if (!(value instanceof WritableArray)) { + propMap.putArray(key, copyReadableArray((ReadableArray) value)); + } else { + propMap.putArray(key, (ReadableArray) value); + } + } else if (value instanceof ReadableMap) { + if (!(value instanceof WritableMap)) { + propMap.putMap(key, copyReadableMap((ReadableMap) value)); + } else { + propMap.putMap(key, (ReadableMap) value); + } + } else { + throw new IllegalStateException("[Reanimated] Unknown type of animated value."); } } } diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java index 7d7f1c01..35b2f960 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedModule.java @@ -1,38 +1,55 @@ package com.swmansion.reanimated; +import android.util.Log; import com.facebook.react.bridge.LifecycleEventListener; import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.module.annotations.ReactModule; -import com.swmansion.worklets.WorkletsModule; +import com.facebook.react.uimanager.NativeViewHierarchyManager; +import com.facebook.react.uimanager.UIBlock; +import com.facebook.react.uimanager.UIManagerModule; +import com.facebook.react.uimanager.UIManagerModuleListener; +import java.util.ArrayList; +import javax.annotation.Nullable; @ReactModule(name = ReanimatedModule.NAME) -public class ReanimatedModule extends NativeReanimatedModuleSpec implements LifecycleEventListener { - private final NodesManager mNodesManager; - private final WorkletsModule mWorkletsModule; +public class ReanimatedModule extends ReactContextBaseJavaModule + implements LifecycleEventListener, UIManagerModuleListener { + + public static final String NAME = "ReanimatedModule"; + + private interface UIThreadOperation { + void execute(NodesManager nodesManager); + } + + private ArrayList mOperations = new ArrayList<>(); + private @Nullable NodesManager mNodesManager; public ReanimatedModule(ReactApplicationContext reactContext) { super(reactContext); - reactContext.assertOnJSQueueThread(); - mWorkletsModule = reactContext.getNativeModule(WorkletsModule.class); - mNodesManager = new NodesManager(reactContext, mWorkletsModule); } @Override public void initialize() { - ReactApplicationContext reactContext = getReactApplicationContext(); - reactContext.assertOnJSQueueThread(); - reactContext.addLifecycleEventListener(this); + ReactApplicationContext reactCtx = getReactApplicationContext(); + UIManagerModule uiManager = reactCtx.getNativeModule(UIManagerModule.class); + reactCtx.addLifecycleEventListener(this); + uiManager.addUIManagerListener(this); } @Override public void onHostPause() { - mNodesManager.onHostPause(); + if (mNodesManager != null) { + mNodesManager.onHostPause(); + } } @Override public void onHostResume() { - mNodesManager.onHostResume(); + if (mNodesManager != null) { + mNodesManager.onHostResume(); + } } @Override @@ -40,33 +57,70 @@ public class ReanimatedModule extends NativeReanimatedModuleSpec implements Life // do nothing } + @Override + public void willDispatchViewUpdates(final UIManagerModule uiManager) { + if (mOperations.isEmpty()) { + return; + } + final ArrayList operations = mOperations; + mOperations = new ArrayList<>(); + uiManager.addUIBlock( + new UIBlock() { + @Override + public void execute(NativeViewHierarchyManager nativeViewHierarchyManager) { + NodesManager nodesManager = getNodesManager(); + for (UIThreadOperation operation : operations) { + operation.execute(nodesManager); + } + } + }); + } + + @Override + public String getName() { + return NAME; + } + + /*package*/ public NodesManager getNodesManager() { - // This method is called from react-native-gesture-handler. + if (mNodesManager == null) { + mNodesManager = new NodesManager(getReactApplicationContext()); + } + return mNodesManager; } @ReactMethod(isBlockingSynchronousMethod = true) - public boolean installTurboModule() { - getReactApplicationContext().assertOnJSQueueThread(); - mNodesManager.getNativeProxy().installJSIBindings(); - return true; + public void installTurboModule() { + // When debugging in chrome the JS context is not available. + // https://github.com/facebook/react-native/blob/v0.67.0-rc.6/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobCollector.java#L25 + Utils.isChromeDebugger = getReactApplicationContext().getJavaScriptContextHolder().get() == 0; + + if (!Utils.isChromeDebugger) { + this.getNodesManager().initWithContext(getReactApplicationContext()); + } else { + Log.w( + "[REANIMATED]", + "Unable to create Reanimated Native Module. You can ignore this message if you are using Chrome Debugger now."); + } } @ReactMethod - public void addListener(String ignoredEventName) { + public void addListener(String eventName) { // Keep: Required for RN built in Event Emitter Calls. } @ReactMethod - public void removeListeners(Integer ignoredCount) { + public void removeListeners(Integer count) { // Keep: Required for RN built in Event Emitter Calls. } @Override - public void invalidate() { - super.invalidate(); - mNodesManager.invalidate(); - ReactApplicationContext reactContext = getReactApplicationContext(); - reactContext.removeLifecycleEventListener(this); + public void onCatalystInstanceDestroy() { + super.onCatalystInstanceDestroy(); + + if (mNodesManager != null) { + mNodesManager.onCatalystInstanceDestroy(); + } } } diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java index eee7e930..961b585e 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/ReanimatedPackage.java @@ -1,58 +1,84 @@ package com.swmansion.reanimated; -import androidx.annotation.NonNull; -import com.facebook.react.BaseReactPackage; +import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_MODULE_END; +import static com.facebook.react.bridge.ReactMarkerConstants.CREATE_UI_MANAGER_MODULE_START; + import com.facebook.react.ReactApplication; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactPackage; +import com.facebook.react.TurboReactPackage; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.bridge.ReactMarker; import com.facebook.react.module.annotations.ReactModule; -import com.facebook.react.module.annotations.ReactModuleList; import com.facebook.react.module.model.ReactModuleInfo; import com.facebook.react.module.model.ReactModuleInfoProvider; +import com.facebook.react.turbomodule.core.interfaces.TurboModule; +import com.facebook.react.uimanager.ReanimatedUIManager; +import com.facebook.react.uimanager.UIManagerModule; +import com.facebook.react.uimanager.ViewManager; +import com.facebook.systrace.Systrace; import java.util.HashMap; +import java.util.List; import java.util.Map; -import java.util.Objects; -@ReactModuleList( - nativeModules = { - ReanimatedModule.class, - }) -public class ReanimatedPackage extends BaseReactPackage implements ReactPackage { +public class ReanimatedPackage extends TurboReactPackage implements ReactPackage { + @Override - public NativeModule getModule( - @NonNull String name, @NonNull ReactApplicationContext reactContext) { - return switch (name) { - case ReanimatedModule.NAME -> new ReanimatedModule(reactContext); - default -> null; - }; + public NativeModule getModule(String name, ReactApplicationContext reactContext) { + if (name.equals(ReanimatedModule.NAME)) { + return new ReanimatedModule(reactContext); + } + if (name.equals(ReanimatedUIManager.NAME)) { + return createUIManager(reactContext); + } + return null; } @Override public ReactModuleInfoProvider getReactModuleInfoProvider() { Class[] moduleList = new Class[] { - ReanimatedModule.class, + ReanimatedModule.class, ReanimatedUIManager.class, }; final Map reactModuleInfoMap = new HashMap<>(); for (Class moduleClass : moduleList) { - ReactModule reactModule = - Objects.requireNonNull(moduleClass.getAnnotation(ReactModule.class)); + ReactModule reactModule = moduleClass.getAnnotation(ReactModule.class); reactModuleInfoMap.put( reactModule.name(), new ReactModuleInfo( reactModule.name(), moduleClass.getName(), - reactModule.canOverrideExistingModule(), + true, reactModule.needsEagerInit(), + reactModule.hasConstants(), reactModule.isCxxModule(), - true)); + TurboModule.class.isAssignableFrom(moduleClass))); } - return () -> reactModuleInfoMap; + return new ReactModuleInfoProvider() { + @Override + public Map getReactModuleInfos() { + return reactModuleInfoMap; + } + }; + } + + private UIManagerModule createUIManager(final ReactApplicationContext reactContext) { + ReactMarker.logMarker(CREATE_UI_MANAGER_MODULE_START); + Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "createUIManagerModule"); + final ReactInstanceManager reactInstanceManager = getReactInstanceManager(reactContext); + List viewManagers = reactInstanceManager.getOrCreateViewManagers(reactContext); + int minTimeLeftInFrameForNonBatchedOperationMs = -1; + try { + return ReanimatedUIManagerFactory.create( + reactContext, viewManagers, minTimeLeftInFrameForNonBatchedOperationMs); + } finally { + Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE); + ReactMarker.logMarker(CREATE_UI_MANAGER_MODULE_END); + } } /** diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/Utils.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/Utils.java index 40ac4f3c..e5c9767e 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/Utils.java +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/Utils.java @@ -8,6 +8,8 @@ import java.util.Map; public class Utils { + public static boolean isChromeDebugger = false; + public static Map processMapping(ReadableMap style) { ReadableMapKeySetIterator iter = style.keySetIterator(); HashMap mapping = new HashMap<>(); @@ -44,14 +46,4 @@ public class Utils { } return 0; } - - public static Runnable combineRunnables(final Runnable... runnables) { - return new Runnable() { - public void run() { - for (Runnable r : runnables) { - r.run(); - } - } - }; - } } diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/Keyboard.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/Keyboard.java deleted file mode 100644 index 78c31b27..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/Keyboard.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.swmansion.reanimated.keyboard; - -import androidx.core.view.WindowInsetsCompat; -import com.facebook.react.uimanager.PixelUtil; - -public class Keyboard { - private KeyboardState mState = KeyboardState.UNKNOWN; - private int mHeight = 0; - private int mActiveTransitionCounter = 0; - private static final int CONTENT_TYPE_MASK = WindowInsetsCompat.Type.ime(); - private static final int SYSTEM_BAR_TYPE_MASK = WindowInsetsCompat.Type.systemBars(); - - public KeyboardState getState() { - return mState; - } - - public int getHeight() { - return mHeight; - } - - public void updateHeight(WindowInsetsCompat insets, boolean isNavigationBarTranslucent) { - int contentBottomInset = insets.getInsets(CONTENT_TYPE_MASK).bottom; - int systemBarBottomInset = - isNavigationBarTranslucent ? 0 : insets.getInsets(SYSTEM_BAR_TYPE_MASK).bottom; - int keyboardHeightDip = contentBottomInset - systemBarBottomInset; - int keyboardHeight = (int) PixelUtil.toDIPFromPixel(Math.max(0, keyboardHeightDip)); - if (keyboardHeight <= 0 && mState == KeyboardState.OPEN) { - /* - When the keyboard is being canceling, for one frame the insets show a keyboard height of 0, - causing a jump of the keyboard. We can avoid it by ignoring that frame and calling - the listeners on the following frame. - */ - return; - } - mHeight = keyboardHeight; - } - - public void onAnimationStart() { - if (mActiveTransitionCounter > 0) { - mState = mState == KeyboardState.OPENING ? KeyboardState.CLOSING : KeyboardState.OPENING; - } else { - mState = mHeight <= 0 ? KeyboardState.OPENING : KeyboardState.CLOSING; - } - mActiveTransitionCounter++; - } - - public void onAnimationEnd() { - mActiveTransitionCounter--; - if (mActiveTransitionCounter == 0) { - mState = mHeight <= 0 ? KeyboardState.CLOSED : KeyboardState.OPEN; - } - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardAnimationCallback.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardAnimationCallback.java deleted file mode 100644 index 106d20f8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardAnimationCallback.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.swmansion.reanimated.keyboard; - -import androidx.annotation.NonNull; -import androidx.core.view.WindowInsetsAnimationCompat; -import androidx.core.view.WindowInsetsCompat; -import java.util.List; - -public class KeyboardAnimationCallback extends WindowInsetsAnimationCompat.Callback { - private final Keyboard mKeyboard; - private final NotifyAboutKeyboardChangeFunction mNotifyAboutKeyboardChange; - private static final int CONTENT_TYPE_MASK = WindowInsetsCompat.Type.ime(); - private final boolean mIsNavigationBarTranslucent; - - public KeyboardAnimationCallback( - Keyboard keyboard, - NotifyAboutKeyboardChangeFunction notifyAboutKeyboardChange, - boolean isNavigationBarTranslucent) { - super(WindowInsetsAnimationCompat.Callback.DISPATCH_MODE_CONTINUE_ON_SUBTREE); - mNotifyAboutKeyboardChange = notifyAboutKeyboardChange; - mIsNavigationBarTranslucent = isNavigationBarTranslucent; - mKeyboard = keyboard; - } - - @NonNull - @Override - public WindowInsetsAnimationCompat.BoundsCompat onStart( - @NonNull WindowInsetsAnimationCompat animation, - @NonNull WindowInsetsAnimationCompat.BoundsCompat bounds) { - if (!isKeyboardAnimation(animation)) { - return bounds; - } - mKeyboard.onAnimationStart(); - mNotifyAboutKeyboardChange.call(); - return super.onStart(animation, bounds); - } - - @NonNull - @Override - public WindowInsetsCompat onProgress( - @NonNull WindowInsetsCompat insets, - @NonNull List runningAnimations) { - boolean isAnyKeyboardAnimationRunning = false; - for (WindowInsetsAnimationCompat animation : runningAnimations) { - if (isKeyboardAnimation(animation)) { - isAnyKeyboardAnimationRunning = true; - break; - } - } - if (isAnyKeyboardAnimationRunning) { - mKeyboard.updateHeight(insets, mIsNavigationBarTranslucent); - mNotifyAboutKeyboardChange.call(); - } - return insets; - } - - @Override - public void onEnd(@NonNull WindowInsetsAnimationCompat animation) { - if (isKeyboardAnimation(animation)) { - mKeyboard.onAnimationEnd(); - mNotifyAboutKeyboardChange.call(); - } - } - - private static boolean isKeyboardAnimation(@NonNull WindowInsetsAnimationCompat animation) { - return (animation.getTypeMask() & CONTENT_TYPE_MASK) != 0; - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardAnimationManager.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardAnimationManager.java deleted file mode 100644 index c4ab71cd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardAnimationManager.java +++ /dev/null @@ -1,52 +0,0 @@ -package com.swmansion.reanimated.keyboard; - -import com.facebook.react.bridge.ReactApplicationContext; -import java.lang.ref.WeakReference; -import java.util.concurrent.ConcurrentHashMap; - -@FunctionalInterface -interface NotifyAboutKeyboardChangeFunction { - void call(); -} - -public class KeyboardAnimationManager { - private int mNextListenerId = 0; - private final ConcurrentHashMap mListeners = - new ConcurrentHashMap<>(); - private final Keyboard mKeyboard = new Keyboard(); - private final WindowsInsetsManager mWindowsInsetsManager; - - public KeyboardAnimationManager(WeakReference reactContext) { - mWindowsInsetsManager = - new WindowsInsetsManager(reactContext, mKeyboard, this::notifyAboutKeyboardChange); - } - - public int subscribeForKeyboardUpdates( - KeyboardWorkletWrapper callback, - boolean isStatusBarTranslucent, - boolean isNavigationBarTranslucent) { - int listenerId = mNextListenerId++; - if (mListeners.isEmpty()) { - KeyboardAnimationCallback keyboardAnimationCallback = - new KeyboardAnimationCallback( - mKeyboard, this::notifyAboutKeyboardChange, isNavigationBarTranslucent); - mWindowsInsetsManager.startObservingChanges( - keyboardAnimationCallback, isStatusBarTranslucent, isNavigationBarTranslucent); - } - mListeners.put(listenerId, callback); - return listenerId; - } - - public void unsubscribeFromKeyboardUpdates(int listenerId) { - mListeners.remove(listenerId); - if (mListeners.isEmpty()) { - mWindowsInsetsManager.stopObservingChanges(); - } - } - - public void notifyAboutKeyboardChange() { - for (KeyboardWorkletWrapper listener : mListeners.values()) { - listener.invoke(mKeyboard.getState().asInt(), mKeyboard.getHeight()); - } - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardState.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardState.java deleted file mode 100644 index 4b4dfb85..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardState.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.swmansion.reanimated.keyboard; - -public enum KeyboardState { - UNKNOWN(0), - OPENING(1), - OPEN(2), - CLOSING(3), - CLOSED(4); - - private final int mValue; - - KeyboardState(int value) { - mValue = value; - } - - public int asInt() { - return mValue; - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardWorkletWrapper.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardWorkletWrapper.java deleted file mode 100644 index 86477855..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/KeyboardWorkletWrapper.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.swmansion.reanimated.keyboard; - -import com.facebook.jni.HybridData; -import com.facebook.proguard.annotations.DoNotStrip; - -@DoNotStrip -public class KeyboardWorkletWrapper { - @DoNotStrip private final HybridData mHybridData; - - @DoNotStrip - private KeyboardWorkletWrapper(HybridData hybridData) { - mHybridData = hybridData; - } - - public native void invoke(int keyboardState, int height); -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/WindowsInsetsManager.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/WindowsInsetsManager.java deleted file mode 100644 index 56609448..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/keyboard/WindowsInsetsManager.java +++ /dev/null @@ -1,135 +0,0 @@ -package com.swmansion.reanimated.keyboard; - -import android.app.Activity; -import android.os.Handler; -import android.os.Looper; -import android.util.Log; -import android.view.View; -import android.widget.FrameLayout; -import androidx.core.view.ViewCompat; -import androidx.core.view.WindowCompat; -import androidx.core.view.WindowInsetsCompat; -import com.facebook.react.bridge.ReactApplicationContext; -import java.lang.ref.WeakReference; - -public class WindowsInsetsManager { - - private boolean mIsStatusBarTranslucent = false; - private boolean mIsNavigationBarTranslucent = false; - private final WeakReference mReactContext; - private final Keyboard mKeyboard; - private final NotifyAboutKeyboardChangeFunction mNotifyAboutKeyboardChange; - - private final String MissingContextErrorMsg = "Unable to get reference to react activity"; - - public WindowsInsetsManager( - WeakReference reactContext, - Keyboard keyboard, - NotifyAboutKeyboardChangeFunction notifyAboutKeyboardChange) { - mReactContext = reactContext; - mKeyboard = keyboard; - mNotifyAboutKeyboardChange = notifyAboutKeyboardChange; - } - - private Activity getCurrentActivity() { - return mReactContext.get().getCurrentActivity(); - } - - public void startObservingChanges( - KeyboardAnimationCallback keyboardAnimationCallback, - boolean isStatusBarTranslucent, - boolean isNavigationBarTranslucent) { - mIsStatusBarTranslucent = isStatusBarTranslucent; - mIsNavigationBarTranslucent = isNavigationBarTranslucent; - updateWindowDecor(false); - - Activity currentActivity = getCurrentActivity(); - if (currentActivity == null) { - Log.e("Reanimated", MissingContextErrorMsg); - return; - } - - View rootView = currentActivity.getWindow().getDecorView(); - ViewCompat.setOnApplyWindowInsetsListener(rootView, this::onApplyWindowInsetsListener); - ViewCompat.setWindowInsetsAnimationCallback(rootView, keyboardAnimationCallback); - } - - public void stopObservingChanges() { - updateWindowDecor(!mIsStatusBarTranslucent && !mIsNavigationBarTranslucent); - updateInsets(0, 0); - - Activity currentActivity = getCurrentActivity(); - if (currentActivity == null) { - Log.e("Reanimated", MissingContextErrorMsg); - return; - } - - View rootView = currentActivity.getWindow().getDecorView(); - ViewCompat.setWindowInsetsAnimationCallback(rootView, null); - ViewCompat.setOnApplyWindowInsetsListener(rootView, null); - } - - private void updateWindowDecor(boolean decorFitsSystemWindow) { - new Handler(Looper.getMainLooper()) - .post( - () -> { - Activity currentActivity = getCurrentActivity(); - if (currentActivity == null) { - Log.e("Reanimated", MissingContextErrorMsg); - return; - } - - WindowCompat.setDecorFitsSystemWindows( - currentActivity.getWindow(), decorFitsSystemWindow); - }); - } - - private WindowInsetsCompat onApplyWindowInsetsListener(View view, WindowInsetsCompat insets) { - WindowInsetsCompat defaultInsets = ViewCompat.onApplyWindowInsets(view, insets); - if (mKeyboard.getState() == KeyboardState.OPEN) { - mKeyboard.updateHeight(insets, mIsNavigationBarTranslucent); - mNotifyAboutKeyboardChange.call(); - } - setWindowInsets(defaultInsets); - return defaultInsets; - } - - private void setWindowInsets(WindowInsetsCompat insets) { - int systemBarsTypeMask = WindowInsetsCompat.Type.systemBars(); - int paddingTop = insets.getInsets(systemBarsTypeMask).top; - int paddingBottom = insets.getInsets(systemBarsTypeMask).bottom; - updateInsets(paddingTop, paddingBottom); - } - - private void updateInsets(int paddingTop, int paddingBottom) { - new Handler(Looper.getMainLooper()) - .post( - () -> { - FrameLayout.LayoutParams params = getLayoutParams(paddingTop, paddingBottom); - int actionBarId = androidx.appcompat.R.id.action_bar_root; - - Activity currentActivity = getCurrentActivity(); - if (currentActivity == null) { - Log.e("Reanimated", MissingContextErrorMsg); - return; - } - - View actionBarRootView = - currentActivity.getWindow().getDecorView().findViewById(actionBarId); - actionBarRootView.setLayoutParams(params); - }); - } - - private FrameLayout.LayoutParams getLayoutParams(int paddingTop, int paddingBottom) { - int matchParentFlag = FrameLayout.LayoutParams.MATCH_PARENT; - FrameLayout.LayoutParams params = - new FrameLayout.LayoutParams(matchParentFlag, matchParentFlag); - - params.setMargins( - 0, - mIsStatusBarTranslucent ? 0 : paddingTop, - 0, - mIsNavigationBarTranslucent ? 0 : paddingBottom); - return params; - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/nativeProxy/EventHandler.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/nativeProxy/EventHandler.java index ec16e44a..3ed2665a 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/nativeProxy/EventHandler.java +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/nativeProxy/EventHandler.java @@ -12,8 +12,7 @@ import com.facebook.react.uimanager.events.RCTEventEmitter; public class EventHandler implements RCTEventEmitter { @DoNotStrip private final HybridData mHybridData; - - public UIManagerModule.CustomEventNamesResolver mCustomEventNamesResolver; + UIManagerModule.CustomEventNamesResolver mCustomEventNamesResolver; @DoNotStrip private EventHandler(HybridData hybridData) { diff --git a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java index 4b520bed..c26ecdad 100644 --- a/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java +++ b/frontend-admin/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/sensor/ReanimatedSensor.java @@ -17,7 +17,6 @@ public class ReanimatedSensor { Sensor sensor; ReanimatedSensorType sensorType; int interval; - private static final int DEFAULT_INTERVAL = 8; ReanimatedSensor( WeakReference reactContext, @@ -31,7 +30,7 @@ public class ReanimatedSensor { (SensorManager) reactContext.get().getSystemService(reactContext.get().SENSOR_SERVICE); this.sensorType = sensorType; if (interval == -1) { - this.interval = DEFAULT_INTERVAL; + this.interval = SensorManager.SENSOR_DELAY_UI; } else { this.interval = interval; } diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RCTUIView+Reanimated.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RCTUIView+Reanimated.h deleted file mode 100644 index c798a780..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RCTUIView+Reanimated.h +++ /dev/null @@ -1,11 +0,0 @@ -#if TARGET_OS_OSX - -#import - -@interface RCTUIView (Reanimated) - -@property CGPoint center; - -@end - -#endif diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RCTUIView+Reanimated.m b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RCTUIView+Reanimated.m deleted file mode 100644 index fdd19064..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RCTUIView+Reanimated.m +++ /dev/null @@ -1,26 +0,0 @@ -#if TARGET_OS_OSX - -#import -#import - -@implementation RCTUIView (Reanimated) - -- (CGPoint)center -{ - NSRect frameRect = self.frame; - CGFloat xCenter = frameRect.origin.x + frameRect.size.width / 2; - CGFloat yCenter = frameRect.origin.y + frameRect.size.height / 2; - return CGPointMake(xCenter, yCenter); -} - -- (void)setCenter:(CGPoint)point -{ - NSRect frameRect = self.frame; - CGFloat xOrigin = point.x - frameRect.size.width / 2; - CGFloat yOrigin = point.y - frameRect.size.height / 2; - self.frame = CGRectMake(xOrigin, yOrigin, frameRect.size.width, frameRect.size.height); -} - -@end - -#endif diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAAssertJavaScriptQueue.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAAssertJavaScriptQueue.h deleted file mode 100644 index fa769d75..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAAssertJavaScriptQueue.h +++ /dev/null @@ -1,14 +0,0 @@ -#import - -// Copied from RCTJSThreadManager.mm -static NSString *const RCTJSThreadName = @"com.facebook.react.runtime.JavaScript"; - -static BOOL REAIsJavaScriptQueue() -{ - return [NSThread.currentThread.name isEqualToString:RCTJSThreadName]; -} - -static void REAAssertJavaScriptQueue() -{ - react_native_assert(REAIsJavaScriptQueue() && "This function must be called on the JavaScript queue"); -} diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAAssertTurboModuleManagerQueue.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAAssertTurboModuleManagerQueue.h deleted file mode 100644 index 836a4bda..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAAssertTurboModuleManagerQueue.h +++ /dev/null @@ -1,16 +0,0 @@ -#import - -constexpr auto turboModuleManagerQueueLabel = - "com.meta.react.turbomodulemanager.queue"; - -static bool REAIsTurboModuleManagerQueue() { - const auto currentQueueLabel = - dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL); - return strcmp(currentQueueLabel, turboModuleManagerQueueLabel) == 0; -} - -static void REAAssertTurboModuleManagerQueue() { - react_native_assert( - REAIsTurboModuleManagerQueue() && - "This function must be called on the TurboModuleManager queue"); -} diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/READisplayLink.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/READisplayLink.h deleted file mode 100644 index 560cde99..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/READisplayLink.h +++ /dev/null @@ -1,21 +0,0 @@ -#if !TARGET_OS_OSX - -#import - -typedef CADisplayLink READisplayLink; - -#else // TARGET_OS_OSX [ - -#ifdef __cplusplus -extern "C" { -#endif - -#import - -#ifdef __cplusplus -} -#endif - -typedef RCTPlatformDisplayLink READisplayLink; - -#endif // ] TARGET_OS_OSX diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REANodesManager.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REANodesManager.h deleted file mode 100644 index f955d9e3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REANodesManager.h +++ /dev/null @@ -1,22 +0,0 @@ -#import - -#import - -typedef void (^REAOnAnimationCallback)(READisplayLink *displayLink); -typedef void (^REAEventHandler)(id event); -typedef void (^CADisplayLinkOperation)(READisplayLink *displayLink); -typedef void (^REAPerformOperations)(); - -@interface REANodesManager : NSObject - -- (nonnull instancetype)init; -- (void)invalidate; - -- (void)postOnAnimation:(REAOnAnimationCallback)clb; -- (void)registerEventHandler:(REAEventHandler)eventHandler; -- (void)dispatchEvent:(id)event; - -- (void)registerPerformOperations:(REAPerformOperations)performOperations; -- (void)maybeFlushUIUpdatesQueue; - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REANodesManager.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REANodesManager.mm deleted file mode 100644 index 40ecbb9e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REANodesManager.mm +++ /dev/null @@ -1,154 +0,0 @@ -#import -#import -#import - -#import - -@implementation REANodesManager { - READisplayLink *_displayLink; - NSMutableArray *_onAnimationCallbacks; - REAEventHandler _eventHandler; - REAPerformOperations _performOperations; -} - -- (READisplayLink *)getDisplayLink -{ - RCTAssertMainQueue(); - - if (!_displayLink) { - _displayLink = [READisplayLink displayLinkWithTarget:self selector:@selector(onAnimationFrame:)]; -#if !TARGET_OS_OSX - _displayLink.preferredFramesPerSecond = 120; // will fallback to 60 fps for devices without Pro Motion display -#endif // TARGET_OS_OSX - [_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes]; - } - return _displayLink; -} - -- (void)useDisplayLinkOnMainQueue:(CADisplayLinkOperation)displayLinkOperation -{ - // This method is called on the JavaScript queue during initialization or on the ShadowQueue during invalidation. - react_native_assert(REAIsJavaScriptQueue() || REAIsTurboModuleManagerQueue()); - - __weak __typeof__(self) weakSelf = self; - RCTExecuteOnMainQueue(^{ - __typeof__(self) strongSelf = weakSelf; - if (strongSelf == nil) { - return; - } - displayLinkOperation([strongSelf getDisplayLink]); - }); -} - -- (nonnull instancetype)init -{ - REAAssertJavaScriptQueue(); - - if ((self = [super init])) { - _onAnimationCallbacks = [NSMutableArray new]; - _eventHandler = ^(id event) { - // no-op - }; - } - [self useDisplayLinkOnMainQueue:^(READisplayLink *displayLink) { - [displayLink setPaused:YES]; - }]; - - return self; -} - -- (void)invalidate -{ - REAAssertTurboModuleManagerQueue(); - - _eventHandler = nil; - [self useDisplayLinkOnMainQueue:^(READisplayLink *displayLink) { - [displayLink invalidate]; - }]; -} - -- (void)postOnAnimation:(REAOnAnimationCallback)clb -{ - RCTAssertMainQueue(); - [_onAnimationCallbacks addObject:clb]; - [self startUpdatingOnAnimationFrame]; -} - -- (void)registerEventHandler:(REAEventHandler)eventHandler -{ - REAAssertJavaScriptQueue(); - _eventHandler = eventHandler; -} - -- (void)registerPerformOperations:(REAPerformOperations)performOperations -{ - REAAssertJavaScriptQueue(); - _performOperations = performOperations; -} - -- (void)startUpdatingOnAnimationFrame -{ - RCTAssertMainQueue(); - [[self getDisplayLink] setPaused:NO]; -} - -- (void)stopUpdatingOnAnimationFrame -{ - RCTAssertMainQueue(); - [[self getDisplayLink] setPaused:YES]; -} - -- (void)onAnimationFrame:(READisplayLink *)displayLink -{ - RCTAssertMainQueue(); - - NSArray *callbacks = _onAnimationCallbacks; - _onAnimationCallbacks = [NSMutableArray new]; - - // When one of the callbacks would postOnAnimation callback we don't want - // to process it until the next frame. This is why we cpy the array before - // we iterate over it - for (REAOnAnimationCallback block in callbacks) { - block(displayLink); - } - - [self performOperations]; - - if (_onAnimationCallbacks.count == 0) { - [self stopUpdatingOnAnimationFrame]; - } -} - -- (void)performOperations -{ - RCTAssertMainQueue(); - _performOperations(); // calls ReanimatedModuleProxy::performOperations -} - -- (void)dispatchEvent:(id)event -{ - RCTAssertMainQueue(); - __weak REAEventHandler eventHandler = _eventHandler; - __weak __typeof__(self) weakSelf = self; - RCTExecuteOnMainQueue(^void() { - __typeof__(self) strongSelf = weakSelf; - if (strongSelf == nil) { - return; - } - if (eventHandler == nil) { - return; - } - eventHandler(event); - [strongSelf performOperations]; - }); -} - -- (void)maybeFlushUIUpdatesQueue -{ - RCTAssertMainQueue(); - if ([[self getDisplayLink] isPaused]) { - [self performOperations]; - } -} - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAReducedMotion.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAReducedMotion.h deleted file mode 100644 index a10e403d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAReducedMotion.h +++ /dev/null @@ -1,13 +0,0 @@ -#import - -namespace reanimated { - -static inline bool getIsReducedMotion() { -#if __has_include() - return UIAccessibilityIsReduceMotionEnabled(); -#else - return NSWorkspace.sharedWorkspace.accessibilityDisplayShouldReduceMotion; -#endif // __has_include() -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REASlowAnimations.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REASlowAnimations.h deleted file mode 100644 index a4fb245c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REASlowAnimations.h +++ /dev/null @@ -1,8 +0,0 @@ -#import - -namespace reanimated { - -CGFloat getUIAnimationDragCoefficient(void); -CFTimeInterval calculateTimestampWithSlowAnimations(CFTimeInterval currentTimestamp); - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REASlowAnimations.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REASlowAnimations.mm deleted file mode 100644 index 497a1ba5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REASlowAnimations.mm +++ /dev/null @@ -1,46 +0,0 @@ -#import - -#import - -#if TARGET_IPHONE_SIMULATOR -#import -#endif - -namespace reanimated { - -CGFloat getUIAnimationDragCoefficient(void) -{ - static float (*UIAnimationDragCoefficient)(void) = NULL; -#if TARGET_IPHONE_SIMULATOR - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - UIAnimationDragCoefficient = (float (*)(void))dlsym(RTLD_DEFAULT, "UIAnimationDragCoefficient"); - }); -#endif - return UIAnimationDragCoefficient ? UIAnimationDragCoefficient() : 1.f; -} - -CFTimeInterval calculateTimestampWithSlowAnimations(CFTimeInterval currentTimestamp) -{ -#if TARGET_IPHONE_SIMULATOR - static CFTimeInterval dragCoefChangedTimestamp = CACurrentMediaTime(); - static CGFloat previousDragCoef = getUIAnimationDragCoefficient(); - - const CGFloat dragCoef = getUIAnimationDragCoefficient(); - if (previousDragCoef != dragCoef) { - previousDragCoef = dragCoef; - dragCoefChangedTimestamp = CACurrentMediaTime(); - } - - const bool areSlowAnimationsEnabled = dragCoef != 1.f; - if (areSlowAnimationsEnabled) { - return (dragCoefChangedTimestamp + (currentTimestamp - dragCoefChangedTimestamp) / dragCoef); - } else { - return currentTimestamp; - } -#else - return currentTimestamp; -#endif -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAUIView.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAUIView.h deleted file mode 100644 index 6c9b9479..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/REAUIView.h +++ /dev/null @@ -1,13 +0,0 @@ -#if !TARGET_OS_OSX - -#import - -typedef UIView REAUIView; - -#else // TARGET_OS_OSX [ - -#import - -typedef RCTUIView REAUIView; - -#endif // ] TARGET_OS_OSX diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RNGestureHandlerStateManager.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RNGestureHandlerStateManager.h deleted file mode 100644 index e927e96a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/RNGestureHandlerStateManager.h +++ /dev/null @@ -1,5 +0,0 @@ -@protocol RNGestureHandlerStateManager - -- (void)setGestureState:(int)state forHandler:(int)handlerTag; - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/ReanimatedModule.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/ReanimatedModule.h deleted file mode 100644 index b34fec9b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/ReanimatedModule.h +++ /dev/null @@ -1,15 +0,0 @@ -#import -#import -#import -#import - -#import - -#import - -@interface ReanimatedModule - : RCTEventEmitter - -@property (nonatomic, readonly) REANodesManager *nodesManager; - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/ReanimatedModule.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/ReanimatedModule.mm deleted file mode 100644 index 3018f0d7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/ReanimatedModule.mm +++ /dev/null @@ -1,183 +0,0 @@ -#import -#import -#import -#import - -#import -#import -#import -#import -#import -#import - -#import -#import - -using namespace facebook::react; -using namespace reanimated; - -@interface RCTBridge (JSIRuntime) -- (void *)runtime; -@end - -@implementation ReanimatedModule { - __weak RCTSurfacePresenter *_surfacePresenter; -#ifndef NDEBUG - SingleInstanceChecker singleInstanceChecker_; -#endif // NDEBUG - bool hasListeners; -} - -@synthesize moduleRegistry = _moduleRegistry; -@synthesize callInvoker = _callInvoker; - -RCT_EXPORT_MODULE(ReanimatedModule); - -- (void)invalidate -{ - REAAssertTurboModuleManagerQueue(); - - [_nodesManager invalidate]; - [super invalidate]; -} - -- (void)attachReactEventListener:(const std::shared_ptr)reanimatedModuleProxy -{ - REAAssertJavaScriptQueue(); - - std::weak_ptr reanimatedModuleProxyWeak = reanimatedModuleProxy; - RCTScheduler *scheduler = [_surfacePresenter scheduler]; - __weak __typeof__(self) weakSelf = self; - _surfacePresenter.runtimeExecutor(^(jsi::Runtime &runtime) { - __typeof__(self) strongSelf = weakSelf; - if (strongSelf == nil) { - return; - } - auto eventListener = - std::make_shared([reanimatedModuleProxyWeak](const RawEvent &rawEvent) { - if (!RCTIsMainQueue()) { - // event listener called on the JS thread, let's ignore this event - // as we cannot safely access worklet runtime here - // and also we don't care about topLayout events - return false; - } - if (const auto reanimatedModuleProxy = reanimatedModuleProxyWeak.lock()) { - return reanimatedModuleProxy->handleRawEvent(rawEvent, CACurrentMediaTime() * 1000); - } - return false; - }); - [scheduler addEventListener:eventListener]; - }); -} - -#pragma mark-- Bridgeless methods - -/* - * Taken from RCTNativeAnimatedTurboModule: - * This selector is invoked via BridgelessTurboModuleSetup. - */ -- (void)setSurfacePresenter:(id)surfacePresenter -{ - REAAssertJavaScriptQueue(); - _surfacePresenter = surfacePresenter; -} - -- (void)setBridge:(RCTBridge *)bridge -{ - REAAssertJavaScriptQueue(); - [super setBridge:bridge]; - _nodesManager = [[REANodesManager alloc] init]; - [[self.moduleRegistry moduleForName:"EventDispatcher"] addDispatchObserver:self]; -} - -#pragma mark-- Events - -- (NSArray *)supportedEvents -{ - return @[ @"onReanimatedCall", @"onReanimatedPropsChange" ]; -} - -- (void)eventDispatcherWillDispatchEvent:(id)event -{ - // Events can be dispatched from any queue - [_nodesManager dispatchEvent:event]; -} - -- (void)startObserving -{ - hasListeners = YES; -} - -- (void)stopObserving -{ - hasListeners = NO; -} - -- (void)sendEventWithName:(NSString *)eventName body:(id)body -{ - if (hasListeners) { - [super sendEventWithName:eventName body:body]; - } -} - -/** - * Currently on iOS React Native can go into a non-fatal race condition - * on a double reload. Double reload can happen during an OTA update, - * when an app is reloaded immediately after evaluating the bundle. - * We need to bail on it without throwing exceptions. - */ -- (BOOL)hasReactNativeFailedReload -{ - return ![_moduleRegistry moduleIsInitialized:WorkletsModule.class]; -} - -- (void)checkBridgeless -{ - auto isBridgeless = ![self.bridge isKindOfClass:[RCTCxxBridge class]]; - react_native_assert(isBridgeless && "[Reanimated] react-native-reanimated only supports bridgeless mode"); -} - -RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(installTurboModule) -{ - REAAssertJavaScriptQueue(); - - if ([self hasReactNativeFailedReload]) { - return @NO; - } - - WorkletsModule *workletsModule = [_moduleRegistry moduleForName:"WorkletsModule"]; - auto jsCallInvoker = _callInvoker.callInvoker; - - react_native_assert(self.bridge != nullptr); - [self checkBridgeless]; - react_native_assert(self.bridge.runtime != nullptr); - jsi::Runtime &rnRuntime = *reinterpret_cast(self.bridge.runtime); - - auto reanimatedModuleProxy = - reanimated::createReanimatedModuleProxy(_nodesManager, _moduleRegistry, rnRuntime, jsCallInvoker, workletsModule); - - auto &uiRuntime = [workletsModule getWorkletsModuleProxy]->getUIWorkletRuntime() -> getJSIRuntime(); - - RNRuntimeDecorator::decorate(rnRuntime, uiRuntime, reanimatedModuleProxy); - [self attachReactEventListener:reanimatedModuleProxy]; - - react_native_assert(_surfacePresenter != nil && "_surfacePresenter is nil"); - RCTScheduler *scheduler = [_surfacePresenter scheduler]; - react_native_assert(scheduler != nil && "_surfacePresenter.scheduler is nil"); - react_native_assert(scheduler.uiManager != nil && "_surfacePresenter.scheduler.uiManager is nil"); - const auto &uiManager = scheduler.uiManager; - react_native_assert(uiManager.get() != nil); - reanimatedModuleProxy->initializeFabric(uiManager); - - return @YES; -} - -- (std::shared_ptr)getTurboModule: - (const facebook::react::ObjCTurboModule::InitParams &)params -{ - [self checkBridgeless]; - REAAssertJavaScriptQueue(); - return std::make_shared(params); -} - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/keyboardObserver/REAKeyboardEventObserver.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/keyboardObserver/REAKeyboardEventObserver.h deleted file mode 100644 index 9ba879dd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/keyboardObserver/REAKeyboardEventObserver.h +++ /dev/null @@ -1,9 +0,0 @@ -typedef void (^KeyboardEventListenerBlock)(int keyboardState, int height); - -@interface REAKeyboardEventObserver : NSObject - -- (instancetype)init; -- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener; -- (void)unsubscribeFromKeyboardEvents:(int)listenerId; - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/keyboardObserver/REAKeyboardEventObserver.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/keyboardObserver/REAKeyboardEventObserver.mm deleted file mode 100644 index 4ad1d9dd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/keyboardObserver/REAKeyboardEventObserver.mm +++ /dev/null @@ -1,427 +0,0 @@ -#import - -#import -#import -#import - -#import -#import -#import -#import - -typedef NS_ENUM(NSUInteger, KeyboardState) { - UNKNOWN = 0, - OPENING = 1, - OPEN = 2, - CLOSING = 3, - CLOSED = 4, -}; - -@implementation REAKeyboardEventObserver { - REAUIView *_measuringView; - NSNumber *_nextListenerId; - NSMutableDictionary *_listeners; - READisplayLink *_displayLink; - KeyboardState _state; - CFTimeInterval _animationStartTimestamp; - float _initialKeyboardHeight; - float _targetKeyboardHeight; - REAUIView *_keyboardView; - bool _isKeyboardObserverAttached; - bool _isInteractiveDismissalCanceled; -} - -- (instancetype)init -{ - self = [super init]; - _listeners = [[NSMutableDictionary alloc] init]; - _nextListenerId = @0; - _state = UNKNOWN; - _animationStartTimestamp = 0; - _isKeyboardObserverAttached = false; - _isInteractiveDismissalCanceled = false; - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - - [notificationCenter addObserver:self - selector:@selector(cleanupListeners) - name:RCTBridgeDidInvalidateModulesNotification - object:nil]; - return self; -} - -- (READisplayLink *)getDisplayLink -{ - RCTAssertMainQueue(); - - if (!_displayLink) { - _displayLink = [READisplayLink displayLinkWithTarget:self selector:@selector(updateKeyboardFrame)]; -#if !TARGET_OS_OSX - _displayLink.preferredFramesPerSecond = 120; // will fallback to 60 fps for devices without Pro Motion display -#endif - [_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes]; - } - return _displayLink; -} - -#if TARGET_OS_TV -- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener -{ - NSLog(@"Keyboard handling is not supported on tvOS"); - return 0; -} - -- (void)unsubscribeFromKeyboardEvents:(int)listenerId -{ - NSLog(@"Keyboard handling is not supported on tvOS"); -} - -#elif TARGET_OS_OSX - -- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener -{ - NSLog(@"Keyboard handling is not supported on macOS"); - return 0; -} - -- (void)unsubscribeFromKeyboardEvents:(int)listenerId -{ - NSLog(@"Keyboard handling is not supported on macOS"); -} - -#else - -- (void)runListeners:(float)keyboardHeight -{ - for (NSString *key in _listeners.allKeys) { - ((KeyboardEventListenerBlock)_listeners[key])(_state, keyboardHeight); - } -} - -- (void)runUpdater -{ - [[self getDisplayLink] setPaused:NO]; - _animationStartTimestamp = 0; -} - -- (float)getTargetTimestamp -{ - float targetTimestamp = _displayLink.targetTimestamp; - return reanimated::calculateTimestampWithSlowAnimations(targetTimestamp) * 1000; -} - -- (float)estimateProgressForDuration:(float)keyboardAnimationDuration - a1:(float)a1 - a2:(float)a2 - b1:(float)b1 - b2:(float)b2 - c1:(float)c1 - c2:(float)c2 -{ - CFTimeInterval elapsedTime = _displayLink.targetTimestamp - _animationStartTimestamp; - float timeProgress = elapsedTime / keyboardAnimationDuration; - timeProgress = fmax(fmin(timeProgress, 1), 0); - float x = timeProgress; - float progress = 1 - a1 * pow(1 - x, a2) - b1 * x * pow(1 - x, b2) - c1 * pow(x, 2) * pow(1 - x, c2); - return progress; -} - -- (CGFloat)estimateOpeningKeyboardHeight -{ - /* - Curve parameters come from estimation: https://www.desmos.com/calculator/ufy5rbucpd - Animation takes 30 frames, which is 0.48 seconds at 60 fps. - */ - float progress = [self estimateProgressForDuration:0.48 a1:1 a2:4.62 b1:2.44 b2:9.82 c1:0.22 c2:2.09]; - float animationDistance = _targetKeyboardHeight - _initialKeyboardHeight; - float currentKeyboardHeight = _initialKeyboardHeight + animationDistance * progress; - return currentKeyboardHeight; -} - -- (CGFloat)estimateClosingKeyboardHeight -{ - /* - Curve parameters come from estimation: https://www.desmos.com/calculator/vhrhdaopyq - Animation takes 31 frames, which is 0.496 seconds at 60 fps. - */ - float progress = [self estimateProgressForDuration:0.496 a1:1 a2:5.65 b1:2.74 b2:8.38 c1:0.93 c2:3.29]; - float currentKeyboardHeight = _initialKeyboardHeight * (1 - progress); - return currentKeyboardHeight; -} - -- (float)getAnimatingKeyboardHeight -{ - if (_animationStartTimestamp == 0) { - // DisplayLink animations usually start later than CAAnimations. - _animationStartTimestamp = _displayLink.targetTimestamp - _displayLink.duration; - } - CAAnimation *positionAnimation = [_measuringView.layer animationForKey:@"position"]; - float caAnimationBeginTime = [[positionAnimation valueForKey:@"beginTime"] floatValue]; - if (caAnimationBeginTime != 0) { - /* - CAAnimations have their own timers, and synchronizing with their timer produces - better visual effects. The CAAnimation timer is only available from the second - frame of the animation. - */ - _animationStartTimestamp = caAnimationBeginTime; - } - - CGFloat keyboardHeight = 0; - if (_state == OPENING) { - keyboardHeight = [self estimateOpeningKeyboardHeight]; - } else if (_state == CLOSING) { - keyboardHeight = [self estimateClosingKeyboardHeight]; - } - return keyboardHeight; -} - -- (void)updateKeyboardFrame -{ - bool isKeyboardAnimationRunning = [self hasAnyAnimation:_measuringView]; - if (isKeyboardAnimationRunning) { - CGFloat keyboardHeight = [self getAnimatingKeyboardHeight]; - [self runListeners:keyboardHeight]; - } -} - -- (void)keyboardWillChangeFrame:(NSNotification *)notification -{ - NSDictionary *userInfo = [notification userInfo]; - CGRect beginFrame = [[userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue]; - CGRect endFrame = [[userInfo objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue]; - NSTimeInterval animationDuration = [[userInfo objectForKey:UIKeyboardAnimationDurationUserInfoKey] doubleValue]; - auto window = [[[UIApplication sharedApplication] delegate] window]; - - /* - The keyboard frame is in the screen's coordinate space and must first be converted - to the window coordinate space in order to support Slide Over and Stage Manager on - iPadOS. - */ - beginFrame = [window convertRect:beginFrame fromCoordinateSpace:window.screen.coordinateSpace]; - endFrame = [window convertRect:endFrame fromCoordinateSpace:window.screen.coordinateSpace]; - - /* - In some cases, such as when the user has enabled "prefer cross-fade transitions" or - when the keyboard is floating, the begin or end frame is an empty rectangle. In - such cases we should treat the keyboard as closed, rather than at (0, 0). - */ - CGRect beginFrameIntersection = CGRectIntersection(window.bounds, beginFrame); - _initialKeyboardHeight = - CGRectIsEmpty(beginFrameIntersection) ? 0 : CGRectGetMaxY(window.bounds) - CGRectGetMinY(beginFrameIntersection); - - CGRect endFrameIntersection = CGRectIntersection(window.bounds, endFrame); - _targetKeyboardHeight = - CGRectIsEmpty(endFrameIntersection) ? 0 : CGRectGetMaxY(window.bounds) - CGRectGetMinY(endFrameIntersection); - - bool forceAnimation = false; - auto keyboardView = [self getKeyboardView]; - if (_state == CLOSING) { - _targetKeyboardHeight = 0; - } else if (_isInteractiveDismissalCanceled && keyboardView) { - // Prefer the keyboard view frame over notification frame which may not be current. - beginFrameIntersection = CGRectIntersection(window.bounds, keyboardView.frame); - _initialKeyboardHeight = CGRectIsEmpty(beginFrameIntersection) - ? 0 - : CGRectGetMaxY(window.bounds) - CGRectGetMinY(beginFrameIntersection); - forceAnimation = true; - } - _isInteractiveDismissalCanceled = false; - - bool hasKeyboardAnimation = [self hasAnyAnimation:keyboardView]; - if (hasKeyboardAnimation || forceAnimation) { - _measuringView.frame = CGRectMake(0, -1, 0, _initialKeyboardHeight); - [UIView animateWithDuration:animationDuration - animations:^{ - self->_measuringView.frame = CGRectMake(0, -1, 0, self->_targetKeyboardHeight); - }]; - [self runUpdater]; - } -} - -- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener -{ - NSNumber *listenerId = [_nextListenerId copy]; - _nextListenerId = [NSNumber numberWithInt:[_nextListenerId intValue] + 1]; - RCTExecuteOnMainQueue(^() { - if (!self->_measuringView) { - self->_measuringView = [[UIView alloc] initWithFrame:CGRectMake(0, -1, 0, 0)]; - UIWindow *keyWindow = [[[UIApplication sharedApplication] delegate] window]; - [keyWindow addSubview:self->_measuringView]; - } - if ([self->_listeners count] == 0) { - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - [notificationCenter addObserver:self - selector:@selector(keyboardWillShow:) - name:UIKeyboardWillShowNotification - object:nil]; - [notificationCenter addObserver:self - selector:@selector(keyboardDidShow:) - name:UIKeyboardDidShowNotification - object:nil]; - [notificationCenter addObserver:self - selector:@selector(keyboardWillHide:) - name:UIKeyboardWillHideNotification - object:nil]; - [notificationCenter addObserver:self - selector:@selector(keyboardDidHide:) - name:UIKeyboardDidHideNotification - object:nil]; - } - - [self->_listeners setObject:listener forKey:listenerId]; - }); - return [listenerId intValue]; -} - -- (void)unsubscribeFromKeyboardEvents:(int)listenerId -{ - RCTExecuteOnMainQueue(^() { - NSNumber *_listenerId = [NSNumber numberWithInt:listenerId]; - [self->_listeners removeObjectForKey:_listenerId]; - if ([self->_listeners count] == 0) { - NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; - [notificationCenter removeObserver:self name:UIKeyboardWillShowNotification object:nil]; - [notificationCenter removeObserver:self name:UIKeyboardDidShowNotification object:nil]; - [notificationCenter removeObserver:self name:UIKeyboardWillHideNotification object:nil]; - [notificationCenter removeObserver:self name:UIKeyboardDidHideNotification object:nil]; - } - }); -} - -- (void)cleanupListeners -{ - RCTUnsafeExecuteOnMainQueueSync(^() { - [self->_listeners removeAllObjects]; - [[self getDisplayLink] invalidate]; - self->_displayLink = nil; - [[NSNotificationCenter defaultCenter] removeObserver:self]; - }); -} - -- (void)keyboardWillShow:(NSNotification *)notification -{ - _state = OPENING; - [self keyboardWillChangeFrame:notification]; -} - -- (void)keyboardDidShow:(NSNotification *)notification -{ - [[self getDisplayLink] setPaused:YES]; - - auto window = [[[UIApplication sharedApplication] delegate] window]; - auto keyboardView = [self getKeyboardView]; - if (keyboardView) { - CGRect frameIntersection = CGRectIntersection(window.bounds, keyboardView.frame); - _targetKeyboardHeight = - CGRectIsEmpty(frameIntersection) ? 0 : CGRectGetMaxY(window.bounds) - CGRectGetMinY(frameIntersection); - } - _state = OPEN; - [self runListeners:_targetKeyboardHeight]; - - if (_isKeyboardObserverAttached) { - return; - } - if (keyboardView) { - [_keyboardView addObserver:self - forKeyPath:@"center" - options:NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew - context:nil]; - _isKeyboardObserverAttached = true; - } -} - -- (void)keyboardWillHide:(NSNotification *)notification -{ - if (_isKeyboardObserverAttached) { - [_keyboardView removeObserver:self forKeyPath:@"center"]; - _isKeyboardObserverAttached = false; - } - - _state = CLOSING; - [self keyboardWillChangeFrame:notification]; -} - -- (void)keyboardDidHide:(NSNotification *)notification -{ - [[self getDisplayLink] setPaused:YES]; - - _targetKeyboardHeight = 0; - _state = CLOSED; - [self runListeners:_targetKeyboardHeight]; -} - -- (void)updateKeyboardHeightDuringInteractiveDismiss:(CGPoint)oldKeyboardFrame - newKeyboardFrame:(CGPoint)newKeyboardFrame -{ - auto keyboardView = [self getKeyboardView]; - if (!keyboardView) { - return; - } - - bool hasKeyboardAnimation = [self hasAnyAnimation:keyboardView]; - float keyboardHeight = keyboardView.frame.size.height; - /* - If the keyboard is animating, height will be updated by the notification observers. - If the keyboard state is CLOSED, height is 0, or the keyboard is floating (keyboard - width != window width), don't update to prevent jumping to intermediate state. - */ - if (hasKeyboardAnimation || _state == CLOSED || keyboardHeight == 0 || - CGRectGetWidth(keyboardView.frame) != CGRectGetWidth(keyboardView.window.bounds)) { - return; - } - - float windowHeight = keyboardView.window.bounds.size.height; - float visibleKeyboardHeight = windowHeight - (newKeyboardFrame.y - keyboardHeight / 2); - if (oldKeyboardFrame.y > newKeyboardFrame.y) { - _state = OPENING; - _isInteractiveDismissalCanceled = true; - } else if (oldKeyboardFrame.y < newKeyboardFrame.y) { - _state = CLOSING; - _isInteractiveDismissalCanceled = false; - } - [self runListeners:visibleKeyboardHeight]; -} - -- (void)observeValueForKeyPath:(NSString *)keyPath - ofObject:(id)object - change:(NSDictionary *)change - context:(void *)context -{ - if ([keyPath isEqualToString:@"center"]) { - CGPoint oldKeyboardFrame = [change[NSKeyValueChangeOldKey] CGPointValue]; - CGPoint newKeyboardFrame = [change[NSKeyValueChangeNewKey] CGPointValue]; - [self updateKeyboardHeightDuringInteractiveDismiss:oldKeyboardFrame newKeyboardFrame:newKeyboardFrame]; - } -} - -- (bool)hasAnyAnimation:(REAUIView *)view -{ - return view.layer.presentationLayer.animationKeys.count != 0; - ; -} - -- (REAUIView *_Nullable)findClass:(NSString *)className inViewsList:(NSArray *)viewList -{ - for (UIWindow *view in viewList) { - if ([NSStringFromClass([view class]) isEqual:className]) { - return view; - } - } - return nil; -} - -// Inspired by: https://stackoverflow.com/questions/32598490 -- (REAUIView *_Nullable)getKeyboardView -{ - if (_keyboardView) { - return _keyboardView; - } - NSArray *windows = [UIApplication sharedApplication].windows; - auto window = [self findClass:@"UITextEffectsWindow" inViewsList:windows]; - auto keyboardContainer = [self findClass:@"UIInputSetContainerView" inViewsList:window.subviews]; - _keyboardView = [self findClass:@"UIInputSetHostView" inViewsList:keyboardContainer.subviews]; - return _keyboardView; -} - -#endif - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/NativeProxy.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/NativeProxy.h deleted file mode 100644 index eb5f8310..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/NativeProxy.h +++ /dev/null @@ -1,19 +0,0 @@ -#if __cplusplus - -#import -#import - -#import - -namespace reanimated { - -std::shared_ptr createReanimatedModuleProxy( - REANodesManager *nodesManager, - RCTModuleRegistry *moduleRegistry, - jsi::Runtime &rnRuntime, - const std::shared_ptr &jsInvoker, - WorkletsModule *workletsModule); - -} // namespace reanimated - -#endif //__cplusplus diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/NativeProxy.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/NativeProxy.mm deleted file mode 100644 index 793d28d7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/NativeProxy.mm +++ /dev/null @@ -1,56 +0,0 @@ -#import -#import -#import -#import -#import -#import - -@interface RCTBridge (JSIRuntime) -- (void *)runtime; -@end - -namespace reanimated { - -using namespace facebook; -using namespace react; - -std::shared_ptr createReanimatedModuleProxy( - REANodesManager *nodesManager, - RCTModuleRegistry *moduleRegistry, - jsi::Runtime &rnRuntime, - const std::shared_ptr &jsInvoker, - WorkletsModule *workletsModule) -{ - REAAssertJavaScriptQueue(); - - PlatformDepMethodsHolder platformDepMethodsHolder = makePlatformDepMethodsHolder(moduleRegistry, nodesManager); - - const auto workletsModuleProxy = [workletsModule getWorkletsModuleProxy]; - - auto reanimatedModuleProxy = std::make_shared( - workletsModuleProxy, rnRuntime, jsInvoker, platformDepMethodsHolder, getIsReducedMotion()); - reanimatedModuleProxy->init(platformDepMethodsHolder); - - jsi::Runtime &uiRuntime = workletsModuleProxy->getUIWorkletRuntime()->getJSIRuntime(); - - [nodesManager registerEventHandler:^(id event) { - // handles RCTEvents from RNGestureHandler - std::string eventName = [event.eventName UTF8String]; - int emitterReactTag = [event.viewTag intValue]; - id eventData = [event arguments][2]; - jsi::Value payload = convertObjCObjectToJSIValue(uiRuntime, eventData); - double currentTime = CACurrentMediaTime() * 1000; - reanimatedModuleProxy->handleEvent(eventName, emitterReactTag, payload, currentTime); - }]; - - std::weak_ptr weakReanimatedModuleProxy = reanimatedModuleProxy; // to avoid retain cycle - [nodesManager registerPerformOperations:^() { - if (auto reanimatedModuleProxy = weakReanimatedModuleProxy.lock()) { - reanimatedModuleProxy->performOperations(); - } - }]; - - return reanimatedModuleProxy; -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.h deleted file mode 100644 index e626f39b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.h +++ /dev/null @@ -1,30 +0,0 @@ -#if __cplusplus - -#import -#import -#import -#import - -namespace reanimated { - -PlatformDepMethodsHolder makePlatformDepMethodsHolder( - RCTModuleRegistry *moduleRegistry, - REANodesManager *nodesManager); -SetGestureStateFunction makeSetGestureStateFunction( - RCTModuleRegistry *moduleRegistry); -RequestRenderFunction makeRequestRender(REANodesManager *nodesManager); -GetAnimationTimestampFunction makeGetAnimationTimestamp(); -MaybeFlushUIUpdatesQueueFunction makeMaybeFlushUIUpdatesQueueFunction( - REANodesManager *nodesManager); -RegisterSensorFunction makeRegisterSensorFunction( - ReanimatedSensorContainer *reanimatedSensorContainer); -UnregisterSensorFunction makeUnregisterSensorFunction( - ReanimatedSensorContainer *reanimatedSensorContainer); -KeyboardEventSubscribeFunction makeSubscribeForKeyboardEventsFunction( - REAKeyboardEventObserver *keyboardObserver); -KeyboardEventUnsubscribeFunction makeUnsubscribeFromKeyboardEventsFunction( - REAKeyboardEventObserver *keyboardObserver); - -} // namespace reanimated - -#endif //__cplusplus diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm deleted file mode 100644 index f4a7e525..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm +++ /dev/null @@ -1,134 +0,0 @@ -#import -#import -#import -#import -#import -#import -#import -#import - -namespace reanimated { - -using namespace facebook; -using namespace react; - -SetGestureStateFunction makeSetGestureStateFunction(RCTModuleRegistry *moduleRegistry) -{ - id gestureHandlerStateManager = nil; - auto setGestureStateFunction = [gestureHandlerStateManager, moduleRegistry](int handlerTag, int newState) mutable { - if (gestureHandlerStateManager == nil) { - gestureHandlerStateManager = [moduleRegistry moduleForName:"RNGestureHandlerModule"]; - } - setGestureState(gestureHandlerStateManager, handlerTag, newState); - }; - return setGestureStateFunction; -} - -RequestRenderFunction makeRequestRender(REANodesManager *nodesManager) -{ - auto requestRender = [nodesManager](std::function onRender) { - [nodesManager postOnAnimation:^(READisplayLink *displayLink) { -#if !TARGET_OS_OSX - auto targetTimestamp = displayLink.targetTimestamp; -#else - // TODO macOS targetTimestamp isn't available on macOS - auto targetTimestamp = displayLink.timestamp + displayLink.duration; -#endif - const double frameTimestamp = calculateTimestampWithSlowAnimations(targetTimestamp) * 1000; - onRender(frameTimestamp); - }]; - }; - - return requestRender; -} - -GetAnimationTimestampFunction makeGetAnimationTimestamp() -{ - auto getAnimationTimestamp = []() { return calculateTimestampWithSlowAnimations(CACurrentMediaTime()) * 1000; }; - return getAnimationTimestamp; -} - -MaybeFlushUIUpdatesQueueFunction makeMaybeFlushUIUpdatesQueueFunction(REANodesManager *nodesManager) -{ - auto maybeFlushUIUpdatesQueueFunction = [nodesManager]() { [nodesManager maybeFlushUIUpdatesQueue]; }; - return maybeFlushUIUpdatesQueueFunction; -} - -RegisterSensorFunction makeRegisterSensorFunction(ReanimatedSensorContainer *reanimatedSensorContainer) -{ - auto registerSensorFunction = - [=](int sensorType, int interval, int iosReferenceFrame, std::function setter) -> int { - return [reanimatedSensorContainer registerSensor:(ReanimatedSensorType)sensorType - interval:interval - iosReferenceFrame:iosReferenceFrame - setter:^(double *data, int orientationDegrees) { - setter(data, orientationDegrees); - }]; - }; - return registerSensorFunction; -} - -UnregisterSensorFunction makeUnregisterSensorFunction(ReanimatedSensorContainer *reanimatedSensorContainer) -{ - auto unregisterSensorFunction = [=](int sensorId) { [reanimatedSensorContainer unregisterSensor:sensorId]; }; - return unregisterSensorFunction; -} - -KeyboardEventSubscribeFunction makeSubscribeForKeyboardEventsFunction(REAKeyboardEventObserver *keyboardObserver) -{ - auto subscribeForKeyboardEventsFunction = - [=](std::function keyboardEventDataUpdater, - bool isStatusBarTranslucent, - bool isNavigationBarTranslucent) { - // ignore isStatusBarTranslucent and isNavigationBarTranslucent - those are Android only - return [keyboardObserver subscribeForKeyboardEvents:^(int keyboardState, int height) { - keyboardEventDataUpdater(keyboardState, height); - }]; - }; - return subscribeForKeyboardEventsFunction; -} - -KeyboardEventUnsubscribeFunction makeUnsubscribeFromKeyboardEventsFunction(REAKeyboardEventObserver *keyboardObserver) -{ - auto unsubscribeFromKeyboardEventsFunction = [=](int listenerId) { - [keyboardObserver unsubscribeFromKeyboardEvents:listenerId]; - }; - return unsubscribeFromKeyboardEventsFunction; -} - -PlatformDepMethodsHolder makePlatformDepMethodsHolder(RCTModuleRegistry *moduleRegistry, REANodesManager *nodesManager) -{ - auto requestRender = makeRequestRender(nodesManager); - - auto getAnimationTimestamp = makeGetAnimationTimestamp(); - - ReanimatedSensorContainer *reanimatedSensorContainer = [[ReanimatedSensorContainer alloc] init]; - - auto registerSensorFunction = makeRegisterSensorFunction(reanimatedSensorContainer); - - auto unregisterSensorFunction = makeUnregisterSensorFunction(reanimatedSensorContainer); - - auto setGestureStateFunction = makeSetGestureStateFunction(moduleRegistry); - - REAKeyboardEventObserver *keyboardObserver = [[REAKeyboardEventObserver alloc] init]; - - auto subscribeForKeyboardEventsFunction = makeSubscribeForKeyboardEventsFunction(keyboardObserver); - - auto unsubscribeFromKeyboardEventsFunction = makeUnsubscribeFromKeyboardEventsFunction(keyboardObserver); - - auto maybeFlushUIUpdatesQueueFunction = makeMaybeFlushUIUpdatesQueueFunction(nodesManager); - - PlatformDepMethodsHolder platformDepMethodsHolder = { - requestRender, - getAnimationTimestamp, - registerSensorFunction, - unregisterSensorFunction, - setGestureStateFunction, - subscribeForKeyboardEventsFunction, - unsubscribeFromKeyboardEventsFunction, - maybeFlushUIUpdatesQueueFunction, - }; - return platformDepMethodsHolder; -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/REAJSIUtils.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/REAJSIUtils.h deleted file mode 100644 index 4f496d8f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/REAJSIUtils.h +++ /dev/null @@ -1,64 +0,0 @@ -#pragma once - -#import - -using namespace facebook; - -// Copied from RCTTurboModule.mm - -/** - * All static helper functions are ObjC++ specific. - */ -static jsi::Value convertNSNumberToJSIBoolean(jsi::Runtime &runtime, NSNumber *value) -{ - return jsi::Value((bool)[value boolValue]); -} - -static jsi::Value convertNSNumberToJSINumber(jsi::Runtime &runtime, NSNumber *value) -{ - return jsi::Value([value doubleValue]); -} - -static jsi::String convertNSStringToJSIString(jsi::Runtime &runtime, NSString *value) -{ - return jsi::String::createFromUtf8(runtime, [value UTF8String] ?: ""); -} - -static jsi::Value convertObjCObjectToJSIValue(jsi::Runtime &runtime, id value); - -static jsi::Object convertNSDictionaryToJSIObject(jsi::Runtime &runtime, NSDictionary *value) -{ - jsi::Object result = jsi::Object(runtime); - for (NSString *k in value) { - result.setProperty(runtime, convertNSStringToJSIString(runtime, k), convertObjCObjectToJSIValue(runtime, value[k])); - } - return result; -} - -static jsi::Array convertNSArrayToJSIArray(jsi::Runtime &runtime, NSArray *value) -{ - jsi::Array result = jsi::Array(runtime, value.count); - for (size_t i = 0; i < value.count; i++) { - result.setValueAtIndex(runtime, i, convertObjCObjectToJSIValue(runtime, value[i])); - } - return result; -} - -static jsi::Value convertObjCObjectToJSIValue(jsi::Runtime &runtime, id value) -{ - if ([value isKindOfClass:[NSString class]]) { - return convertNSStringToJSIString(runtime, (NSString *)value); - } else if ([value isKindOfClass:[NSNumber class]]) { - if ([value isKindOfClass:[@YES class]]) { - return convertNSNumberToJSIBoolean(runtime, (NSNumber *)value); - } - return convertNSNumberToJSINumber(runtime, (NSNumber *)value); - } else if ([value isKindOfClass:[NSDictionary class]]) { - return convertNSDictionaryToJSIObject(runtime, (NSDictionary *)value); - } else if ([value isKindOfClass:[NSArray class]]) { - return convertNSArrayToJSIArray(runtime, (NSArray *)value); - } else if (value == (id)kCFNull) { - return jsi::Value::null(); - } - return jsi::Value::undefined(); -} diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/SetGestureState.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/SetGestureState.h deleted file mode 100644 index 084961c3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/SetGestureState.h +++ /dev/null @@ -1,10 +0,0 @@ -#import - -namespace reanimated { - -void setGestureState( - id gestureHandlerStateManager, - int handlerTag, - int newState); - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/SetGestureState.mm b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/SetGestureState.mm deleted file mode 100644 index c77fcfda..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/native/SetGestureState.mm +++ /dev/null @@ -1,12 +0,0 @@ -#import - -namespace reanimated { - -void setGestureState(id gestureHandlerStateManager, int handlerTag, int newState) -{ - if (gestureHandlerStateManager != nil) { - [gestureHandlerStateManager setGestureState:newState forHandler:handlerTag]; - } -} - -} // namespace reanimated diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensor.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensor.h deleted file mode 100644 index eb3c4759..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensor.h +++ /dev/null @@ -1,30 +0,0 @@ -#if !TARGET_OS_TV && !TARGET_OS_OSX -#import -#endif - -#import - -@interface ReanimatedSensor : NSObject { - ReanimatedSensorType _sensorType; - double _interval; - double _lastTimestamp; - int _referenceFrame; -#if !TARGET_OS_TV && !TARGET_OS_OSX - CMMotionManager *_motionManager; -#endif - void (^_setter)(double[], int); -} - -- (instancetype)init:(ReanimatedSensorType)sensorType - interval:(int)interval - iosReferenceFrame:(int)iosReferenceFrame - setter:(void (^)(double[], int))setter; -- (bool)initialize; -- (bool)initializeGyroscope; -- (bool)initializeAccelerometer; -- (bool)initializeGravity; -- (bool)initializeMagnetometer; -- (bool)initializeOrientation; -- (void)cancel; - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensor.m b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensor.m deleted file mode 100644 index 4e408e79..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensor.m +++ /dev/null @@ -1,265 +0,0 @@ -#import - -#if !TARGET_OS_TV && !TARGET_OS_OSX && !TARGET_OS_VISION -@implementation ReanimatedSensor - -- (instancetype)init:(ReanimatedSensorType)sensorType - interval:(int)interval - iosReferenceFrame:(int)iosReferenceFrame - setter:(void (^)(double[], int))setter -{ - self = [super init]; - _sensorType = sensorType; - if (interval == -1) { - _interval = 1.0 / UIScreen.mainScreen.maximumFramesPerSecond; - } else { - _interval = interval / 1000.0; // in seconds - } - _referenceFrame = iosReferenceFrame; - _setter = setter; - _motionManager = [[CMMotionManager alloc] init]; - return self; -} - -- (bool)initialize -{ - if (_sensorType == ACCELEROMETER) { - return [self initializeAccelerometer]; - } else if (_sensorType == GYROSCOPE) { - return [self initializeGyroscope]; - } else if (_sensorType == GRAVITY) { - return [self initializeGravity]; - } else if (_sensorType == MAGNETIC_FIELD) { - return [self initializeMagnetometer]; - } else if (_sensorType == ROTATION_VECTOR) { - return [self initializeOrientation]; - } - - return false; -} - -- (bool)initializeGyroscope -{ - if (![_motionManager isGyroAvailable]) { - return false; - } - [_motionManager setGyroUpdateInterval:_interval]; - [_motionManager startGyroUpdates]; - [_motionManager - startGyroUpdatesToQueue:[NSOperationQueue mainQueue] - withHandler:^(CMGyroData *sensorData, NSError *error) { - double currentTime = CACurrentMediaTime() * 1000; - if (currentTime - self->_lastTimestamp < self->_interval) { - return; - } - double data[] = {sensorData.rotationRate.x, sensorData.rotationRate.y, sensorData.rotationRate.z}; - self->_setter(data, [self getInterfaceOrientation]); - self->_lastTimestamp = currentTime; - }]; - - return true; -} - -- (bool)initializeAccelerometer -{ - if (![_motionManager isAccelerometerAvailable]) { - return false; - } - [_motionManager setAccelerometerUpdateInterval:_interval]; - [_motionManager startAccelerometerUpdates]; - [_motionManager startAccelerometerUpdatesToQueue:[NSOperationQueue mainQueue] - withHandler:^(CMAccelerometerData *sensorData, NSError *error) { - double currentTime = CACurrentMediaTime() * 1000; - if (currentTime - self->_lastTimestamp < self->_interval) { - return; - } - double G = 9.81; - // convert G to m/s^2 - double data[] = { - sensorData.acceleration.x * G, - sensorData.acceleration.y * G, - sensorData.acceleration.z * G}; - self->_setter(data, [self getInterfaceOrientation]); - self->_lastTimestamp = currentTime; - }]; - - return true; -} - -- (bool)initializeGravity -{ - if (![_motionManager isDeviceMotionAvailable]) { - return false; - } - [_motionManager setDeviceMotionUpdateInterval:_interval]; - [_motionManager setShowsDeviceMovementDisplay:YES]; - [_motionManager - startDeviceMotionUpdatesToQueue:[NSOperationQueue mainQueue] - withHandler:^(CMDeviceMotion *sensorData, NSError *error) { - double currentTime = CACurrentMediaTime() * 1000; - if (currentTime - self->_lastTimestamp < self->_interval) { - return; - } - double G = 9.81; - // convert G to m/s^2 - double data[] = { - sensorData.gravity.x * G, sensorData.gravity.y * G, sensorData.gravity.z * G}; - self->_setter(data, [self getInterfaceOrientation]); - self->_lastTimestamp = currentTime; - }]; - - return true; -} - -- (bool)initializeMagnetometer -{ - if (![_motionManager isMagnetometerAvailable]) { - return false; - } - [_motionManager setMagnetometerUpdateInterval:_interval]; - [_motionManager startMagnetometerUpdates]; - [_motionManager - startMagnetometerUpdatesToQueue:[NSOperationQueue mainQueue] - withHandler:^(CMMagnetometerData *sensorData, NSError *error) { - double currentTime = CACurrentMediaTime() * 1000; - if (currentTime - self->_lastTimestamp < self->_interval) { - return; - } - double data[] = { - sensorData.magneticField.x, sensorData.magneticField.y, sensorData.magneticField.z}; - self->_setter(data, [self getInterfaceOrientation]); - self->_lastTimestamp = currentTime; - }]; - - return true; -} - -- (bool)initializeOrientation -{ - if (![_motionManager isDeviceMotionAvailable]) { - return false; - } - [_motionManager setDeviceMotionUpdateInterval:_interval]; - - [_motionManager setShowsDeviceMovementDisplay:YES]; - - // _referenceFrame = Auto, on devices without magnetometer fall back to `XArbitraryZVertical`, - // `XArbitraryCorrectedZVertical` otherwise - if (_referenceFrame == 4) { - if (![_motionManager isMagnetometerAvailable]) { - _referenceFrame = 0; - } else { - _referenceFrame = 1; - } - } - - // the binary shift works here because of the definition of CMAttitudeReferenceFrame - [_motionManager startDeviceMotionUpdatesUsingReferenceFrame:(1 << _referenceFrame) - toQueue:[NSOperationQueue mainQueue] - withHandler:^(CMDeviceMotion *sensorData, NSError *error) { - double currentTime = CACurrentMediaTime() * 1000; - if (currentTime - self->_lastTimestamp < self->_interval) { - return; - } - CMAttitude *attitude = sensorData.attitude; - double data[] = { - attitude.quaternion.x, - attitude.quaternion.y, - attitude.quaternion.z, - attitude.quaternion.w, - attitude.yaw, - attitude.pitch, - attitude.roll}; - self->_setter(data, [self getInterfaceOrientation]); - self->_lastTimestamp = currentTime; - }]; - - return true; -} - -- (void)cancel -{ - if (_sensorType == ACCELEROMETER) { - [_motionManager stopAccelerometerUpdates]; - } else if (_sensorType == GYROSCOPE) { - [_motionManager stopGyroUpdates]; - } else if (_sensorType == GRAVITY) { - [_motionManager stopDeviceMotionUpdates]; - } else if (_sensorType == MAGNETIC_FIELD) { - [_motionManager stopMagnetometerUpdates]; - } else if (_sensorType == ROTATION_VECTOR) { - [_motionManager stopDeviceMotionUpdates]; - } -} - -- (int)getInterfaceOrientation -{ - UIInterfaceOrientation orientation = UIInterfaceOrientationPortrait; - if (@available(iOS 13.0, *)) { - orientation = UIApplication.sharedApplication.windows.firstObject.windowScene.interfaceOrientation; - } else { - orientation = UIApplication.sharedApplication.statusBarOrientation; - } - switch (orientation) { - case UIInterfaceOrientationLandscapeLeft: - return 270; - case UIInterfaceOrientationLandscapeRight: - return 90; - case UIInterfaceOrientationPortraitUpsideDown: - return 180; - default: - return 0; - } -} - -@end - -#else - -@implementation ReanimatedSensor - -- (instancetype)init:(ReanimatedSensorType)sensorType - interval:(int)interval - iosReferenceFrame:(int)iosReferenceFrame - setter:(void (^)(double[], int))setter -{ - self = [super init]; - return self; -} - -- (bool)initialize -{ - return false; -} - -- (bool)initializeGyroscope -{ - return false; -} - -- (bool)initializeAccelerometer -{ - return false; -} - -- (bool)initializeGravity -{ - return false; -} - -- (bool)initializeMagnetometer -{ - return false; -} - -- (bool)initializeOrientation -{ - return false; -} - -- (void)cancel -{ -} - -@end -#endif diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorContainer.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorContainer.h deleted file mode 100644 index 54c67951..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorContainer.h +++ /dev/null @@ -1,15 +0,0 @@ -#import - -@interface ReanimatedSensorContainer : NSObject { - NSNumber *_nextSensorId; - NSMutableDictionary *_sensors; -} - -- (instancetype)init; -- (int)registerSensor:(ReanimatedSensorType)sensorType - interval:(int)interval - iosReferenceFrame:(int)iosReferenceFrame - setter:(void (^)(double[], int))setter; -- (void)unregisterSensor:(int)sensorId; - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorContainer.m b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorContainer.m deleted file mode 100644 index 5d1347bc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorContainer.m +++ /dev/null @@ -1,46 +0,0 @@ -#import -#import -#import - -static NSNumber *_nextSensorId = nil; - -@implementation ReanimatedSensorContainer - -- (instancetype)init -{ - self = [super init]; - _sensors = [[NSMutableDictionary alloc] init]; - _nextSensorId = @0; - return self; -} - -- (int)registerSensor:(ReanimatedSensorType)sensorType - interval:(int)interval - iosReferenceFrame:(int)iosReferenceFrame - setter:(void (^)(double[], int))setter -{ - ReanimatedSensor *sensor = [[ReanimatedSensor alloc] init:sensorType - interval:interval - iosReferenceFrame:iosReferenceFrame - setter:setter]; - if ([sensor initialize]) { - NSNumber *sensorId = [_nextSensorId copy]; - _nextSensorId = [NSNumber numberWithInt:[_nextSensorId intValue] + 1]; - [_sensors setObject:sensor forKey:sensorId]; - return [sensorId intValue]; - } else { - return -1; - } -} - -- (void)unregisterSensor:(int)sensorId -{ - NSNumber *_sensorId = [NSNumber numberWithInt:sensorId]; - if (_sensors[_sensorId] == nil) { - return; - } - [_sensors[_sensorId] cancel]; - [_sensors removeObjectForKey:_sensorId]; -} - -@end diff --git a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorType.h b/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorType.h deleted file mode 100644 index 7ff34d7b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/apple/reanimated/apple/sensor/ReanimatedSensorType.h +++ /dev/null @@ -1,7 +0,0 @@ -typedef NS_ENUM(NSUInteger, ReanimatedSensorType) { - ACCELEROMETER = 1, - GYROSCOPE = 2, - GRAVITY = 3, - MAGNETIC_FIELD = 4, - ROTATION_VECTOR = 5, -}; diff --git a/frontend-admin/node_modules/react-native-reanimated/compatibility.json b/frontend-admin/node_modules/react-native-reanimated/compatibility.json deleted file mode 100644 index f1ba9cb8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/compatibility.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "nightly": { - "react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"], - "react-native-worklets": ["nightly"] - }, - "4.1.x": { - "react-native": ["0.78", "0.79", "0.80", "0.81", "0.82"], - "react-native-worklets": ["0.5.x", "0.6.x", "0.7.x"] - }, - "4.0.x": { - "react-native": ["0.78", "0.79", "0.80", "0.81"], - "react-native-worklets": ["0.4.x"] - }, - "3.19.x": { - "react-native": ["0.78", "0.79", "0.80", "0.81"], - "react-native-worklets": [] - }, - "3.18.x": { - "react-native": ["0.75", "0.76", "0.77", "0.78", "0.79", "0.80"], - "react-native-worklets": [] - }, - "3.17.4 - 3.17.5": { - "react-native": ["0.75", "0.76", "0.77", "0.78", "0.79"], - "react-native-worklets": [] - }, - "3.17.1 - 3.17.3": { - "react-native": ["0.75", "0.76", "0.77", "0.78"], - "react-native-worklets": [] - }, - "3.17.0": { - "react-native": ["0.75", "0.76", "0.77"], - "react-native-worklets": [] - }, - "3.16.7": { - "react-native": ["0.74", "0.75", "0.76", "0.77"], - "react-native-worklets": [] - }, - "3.16.0 - 3.16.6": { - "react-native": ["0.74", "0.75", "0.76"], - "react-native-worklets": [] - }, - "3.15.x": { - "react-native": ["0.74", "0.75"], - "react-native-worklets": [] - }, - "3.9.x - 3.14.x": { - "react-native": ["0.74"], - "react-native-worklets": [] - }, - "3.6.x - 3.8.x": { - "react-native": ["0.72", "0.73"], - "react-native-worklets": [] - }, - "3.1.x - 3.5.x": { - "react-native": ["0.72"], - "react-native-worklets": [] - }, - "3.0.x": { - "react-native": ["0.71"], - "react-native-worklets": [] - } -} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js index b99c0070..e0570ffe 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js @@ -1,10 +1,61 @@ 'use strict'; -export { ReanimatedFlatList as FlatList } from './component/FlatList'; -export { AnimatedImage as Image } from './component/Image'; -export { AnimatedScrollView as ScrollView } from './component/ScrollView'; -export { AnimatedText as Text } from './component/Text'; -export { AnimatedView as View } from './component/View'; -export { addWhitelistedNativeProps, addWhitelistedUIProps } from './ConfigHelper'; export { createAnimatedComponent } from './createAnimatedComponent'; +export { AnimatedText as Text } from './reanimated2/component/Text'; +export { AnimatedView as View } from './reanimated2/component/View'; +export { AnimatedScrollView as ScrollView } from './reanimated2/component/ScrollView'; +export { AnimatedImage as Image } from './reanimated2/component/Image'; +export { ReanimatedFlatList as FlatList } from './reanimated2/component/FlatList'; +export { addWhitelistedNativeProps, addWhitelistedUIProps } from './ConfigHelper'; +/** + * @deprecated Please import `Extrapolate` directly from `react-native-reanimated` instead of `Animated` namespace. + */ + +/** + * @deprecated Please import `SharedValue` directly from `react-native-reanimated` instead of `Animated` namespace. + */ + +/** + * @deprecated Please import `DerivedValue` directly from `react-native-reanimated` instead of `Animated` namespace. + */ + +/** + * @deprecated Please import `Adaptable` directly from `react-native-reanimated` instead of `Animated` namespace. + */ + +/** + * @deprecated Please import `TransformStyleTypes` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `AdaptTransforms` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `AnimatedTransform` directly from `react-native-reanimated` instead of `Animated` namespace. + */ + +/** + * @deprecated Please import `AnimateStyle` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `StylesOrDefault` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `AnimateProps` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `EasingFunction` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `AnimatedScrollViewProps` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ + +/** + * @deprecated Please import `FlatListPropsWithLayout` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ //# sourceMappingURL=Animated.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js.map index 51e1394e..f52f7dd8 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/Animated.js.map @@ -1 +1 @@ -{"version":3,"names":["ReanimatedFlatList","FlatList","AnimatedImage","Image","AnimatedScrollView","ScrollView","AnimatedText","Text","AnimatedView","View","addWhitelistedNativeProps","addWhitelistedUIProps","createAnimatedComponent"],"sourceRoot":"../../src","sources":["Animated.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,kBAAkB,IAAIC,QAAQ,QAAQ,sBAAsB;AACrE,SAASC,aAAa,IAAIC,KAAK,QAAQ,mBAAmB;AAC1D,SAASC,kBAAkB,IAAIC,UAAU,QAAQ,wBAAwB;AACzE,SAASC,YAAY,IAAIC,IAAI,QAAQ,kBAAkB;AACvD,SAASC,YAAY,IAAIC,IAAI,QAAQ,kBAAkB;AACvD,SACEC,yBAAyB,EACzBC,qBAAqB,QAChB,gBAAgB;AACvB,SAASC,uBAAuB,QAAQ,2BAA2B","ignoreList":[]} +{"version":3,"names":["createAnimatedComponent","AnimatedText","Text","AnimatedView","View","AnimatedScrollView","ScrollView","AnimatedImage","Image","ReanimatedFlatList","FlatList","addWhitelistedNativeProps","addWhitelistedUIProps"],"sources":["Animated.ts"],"sourcesContent":["'use strict';\nimport type { Extrapolate as _Extrapolate } from './reanimated2/interpolateColor';\nimport type { SharedValue as _SharedValue } from './reanimated2/commonTypes';\nimport type { DerivedValue as _DerivedValue } from './reanimated2/hook/useDerivedValue';\nimport type {\n TransformStyleTypes as _TransformStyleTypes,\n Adaptable as _Adaptable,\n AdaptTransforms as _AdaptTransforms,\n AnimatedTransform as _AnimatedTransform,\n AnimateStyle as _AnimateStyle,\n StylesOrDefault as _StylesOrDefault,\n AnimateProps as _AnimateProps,\n} from './reanimated2/helperTypes';\nimport type { EasingFunction as _EasingFunction } from './reanimated2/Easing';\n\nimport type { AnimatedScrollViewProps as _AnimatedScrollViewProps } from './reanimated2/component/ScrollView';\nimport type { FlatListPropsWithLayout as _FlatListPropsWithLayout } from './reanimated2/component/FlatList';\n\nexport { createAnimatedComponent } from './createAnimatedComponent';\nexport { AnimatedText as Text } from './reanimated2/component/Text';\nexport { AnimatedView as View } from './reanimated2/component/View';\nexport { AnimatedScrollView as ScrollView } from './reanimated2/component/ScrollView';\nexport { AnimatedImage as Image } from './reanimated2/component/Image';\nexport { ReanimatedFlatList as FlatList } from './reanimated2/component/FlatList';\nexport {\n addWhitelistedNativeProps,\n addWhitelistedUIProps,\n} from './ConfigHelper';\n/**\n * @deprecated Please import `Extrapolate` directly from `react-native-reanimated` instead of `Animated` namespace.\n */\nexport type Extrapolate = typeof _Extrapolate;\n/**\n * @deprecated Please import `SharedValue` directly from `react-native-reanimated` instead of `Animated` namespace.\n */\n\nexport type SharedValue = _SharedValue;\n/**\n * @deprecated Please import `DerivedValue` directly from `react-native-reanimated` instead of `Animated` namespace.\n */\nexport type DerivedValue = _DerivedValue;\n/**\n * @deprecated Please import `Adaptable` directly from `react-native-reanimated` instead of `Animated` namespace.\n */\nexport type Adaptable = _Adaptable;\n/**\n * @deprecated Please import `TransformStyleTypes` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type TransformStyleTypes = _TransformStyleTypes;\n/**\n * @deprecated Please import `AdaptTransforms` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type AdaptTransforms = _AdaptTransforms;\n/**\n * @deprecated Please import `AnimatedTransform` directly from `react-native-reanimated` instead of `Animated` namespace.\n */\nexport type AnimatedTransform = _AnimatedTransform;\n/**\n * @deprecated Please import `AnimateStyle` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type AnimateStyle = _AnimateStyle;\n/**\n * @deprecated Please import `StylesOrDefault` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type StylesOrDefault = _StylesOrDefault;\n/**\n * @deprecated Please import `AnimateProps` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type AnimateProps

= _AnimateProps

;\n/**\n * @deprecated Please import `EasingFunction` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type EasingFunction = _EasingFunction;\n/**\n * @deprecated Please import `AnimatedScrollViewProps` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type AnimatedScrollViewProps = _AnimatedScrollViewProps;\n/**\n * @deprecated Please import `FlatListPropsWithLayout` directly from `react-native-reanimated` instead of `Animated` namespace.\n * */\nexport type FlatListPropsWithLayout = _FlatListPropsWithLayout;\n"],"mappings":"AAAA,YAAY;;AAkBZ,SAASA,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,YAAY,IAAIC,IAAI,QAAQ,8BAA8B;AACnE,SAASC,YAAY,IAAIC,IAAI,QAAQ,8BAA8B;AACnE,SAASC,kBAAkB,IAAIC,UAAU,QAAQ,oCAAoC;AACrF,SAASC,aAAa,IAAIC,KAAK,QAAQ,+BAA+B;AACtE,SAASC,kBAAkB,IAAIC,QAAQ,QAAQ,kCAAkC;AACjF,SACEC,yBAAyB,EACzBC,qBAAqB,QAChB,gBAAgB;AACvB;AACA;AACA;;AAEA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Bezier.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/Bezier.js deleted file mode 100644 index 2fc5794a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Bezier.js +++ /dev/null @@ -1,136 +0,0 @@ -'use strict'; - -import { ReanimatedError } from './common'; - -/** - * https://github.com/gre/bezier-easing BezierEasing - use bezier curve for - * transition easing function by Gaëtan Renaudeau 2014 - 2015 – MIT License - */ - -// These values are established by empiricism with tests (tradeoff: performance VS precision) - -const NEWTON_ITERATIONS = 4; -const NEWTON_MIN_SLOPE = 0.001; -const SUBDIVISION_PRECISION = 0.0000001; -const SUBDIVISION_MAX_ITERATIONS = 10; -const kSplineTableSize = 11; -const kSampleStepSize = 1.0 / (kSplineTableSize - 1.0); -function A(aA1, aA2) { - 'worklet'; - - return 1.0 - 3.0 * aA2 + 3.0 * aA1; -} -function B(aA1, aA2) { - 'worklet'; - - return 3.0 * aA2 - 6.0 * aA1; -} -function C(aA1) { - 'worklet'; - - return 3.0 * aA1; -} - -// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2. -function calcBezier(aT, aA1, aA2) { - 'worklet'; - - return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT; -} - -// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2. -function getSlope(aT, aA1, aA2) { - 'worklet'; - - return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1); -} -function binarySubdivide(aX, aA, aB, mX1, mX2) { - 'worklet'; - - let currentX; - let currentT; - let i = 0; - do { - currentT = aA + (aB - aA) / 2.0; - currentX = calcBezier(currentT, mX1, mX2) - aX; - if (currentX > 0.0) { - aB = currentT; - } else { - aA = currentT; - } - } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS); - return currentT; -} -function newtonRaphsonIterate(aX, aGuessT, mX1, mX2) { - 'worklet'; - - for (let i = 0; i < NEWTON_ITERATIONS; ++i) { - const currentSlope = getSlope(aGuessT, mX1, mX2); - if (currentSlope === 0.0) { - return aGuessT; - } - const currentX = calcBezier(aGuessT, mX1, mX2) - aX; - aGuessT -= currentX / currentSlope; - } - return aGuessT; -} -export function Bezier(mX1, mY1, mX2, mY2) { - 'worklet'; - - function LinearEasing(x) { - 'worklet'; - - return x; - } - if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) { - throw new ReanimatedError('Bezier x values must be in [0, 1] range.'); - } - if (mX1 === mY1 && mX2 === mY2) { - return LinearEasing; - } - const sampleValues = new Array(kSplineTableSize); - - // Precompute samples table - for (let i = 0; i < kSplineTableSize; ++i) { - sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2); - } - function getTForX(aX) { - 'worklet'; - - let intervalStart = 0.0; - let currentSample = 1; - const lastSample = kSplineTableSize - 1; - for (; currentSample !== lastSample && sampleValues[currentSample] <= aX; ++currentSample) { - intervalStart += kSampleStepSize; - } - --currentSample; - - // Interpolate to provide an initial guess for t - const dist = (aX - sampleValues[currentSample]) / (sampleValues[currentSample + 1] - sampleValues[currentSample]); - const guessForT = intervalStart + dist * kSampleStepSize; - const initialSlope = getSlope(guessForT, mX1, mX2); - if (initialSlope >= NEWTON_MIN_SLOPE) { - return newtonRaphsonIterate(aX, guessForT, mX1, mX2); - } else if (initialSlope === 0.0) { - return guessForT; - } else { - return binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize, mX1, mX2); - } - } - return function BezierEasing(x) { - 'worklet'; - - if (mX1 === mY1 && mX2 === mY2) { - return x; // linear - } - // Because JavaScript number are imprecise, we should guarantee the extremes are right. - if (x === 0) { - return 0; - } - if (x === 1) { - return 1; - } - return calcBezier(getTForX(x), mY1, mY2); - }; -} -//# sourceMappingURL=Bezier.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Bezier.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/Bezier.js.map deleted file mode 100644 index 58527466..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Bezier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","NEWTON_ITERATIONS","NEWTON_MIN_SLOPE","SUBDIVISION_PRECISION","SUBDIVISION_MAX_ITERATIONS","kSplineTableSize","kSampleStepSize","A","aA1","aA2","B","C","calcBezier","aT","getSlope","binarySubdivide","aX","aA","aB","mX1","mX2","currentX","currentT","i","Math","abs","newtonRaphsonIterate","aGuessT","currentSlope","Bezier","mY1","mY2","LinearEasing","x","sampleValues","Array","getTForX","intervalStart","currentSample","lastSample","dist","guessForT","initialSlope","BezierEasing"],"sourceRoot":"../../src","sources":["Bezier.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,eAAe,QAAQ,UAAU;;AAE1C;AACA;AACA;AACA;;AAEA;;AAEA,MAAMC,iBAAiB,GAAG,CAAC;AAC3B,MAAMC,gBAAgB,GAAG,KAAK;AAC9B,MAAMC,qBAAqB,GAAG,SAAS;AACvC,MAAMC,0BAA0B,GAAG,EAAE;AAErC,MAAMC,gBAAgB,GAAG,EAAE;AAC3B,MAAMC,eAAe,GAAG,GAAG,IAAID,gBAAgB,GAAG,GAAG,CAAC;AAEtD,SAASE,CAACA,CAACC,GAAW,EAAEC,GAAW,EAAU;EAC3C,SAAS;;EACT,OAAO,GAAG,GAAG,GAAG,GAAGA,GAAG,GAAG,GAAG,GAAGD,GAAG;AACpC;AACA,SAASE,CAACA,CAACF,GAAW,EAAEC,GAAW,EAAU;EAC3C,SAAS;;EACT,OAAO,GAAG,GAAGA,GAAG,GAAG,GAAG,GAAGD,GAAG;AAC9B;AACA,SAASG,CAACA,CAACH,GAAW,EAAE;EACtB,SAAS;;EACT,OAAO,GAAG,GAAGA,GAAG;AAClB;;AAEA;AACA,SAASI,UAAUA,CAACC,EAAU,EAAEL,GAAW,EAAEC,GAAW,EAAU;EAChE,SAAS;;EACT,OAAO,CAAC,CAACF,CAAC,CAACC,GAAG,EAAEC,GAAG,CAAC,GAAGI,EAAE,GAAGH,CAAC,CAACF,GAAG,EAAEC,GAAG,CAAC,IAAII,EAAE,GAAGF,CAAC,CAACH,GAAG,CAAC,IAAIK,EAAE;AAC9D;;AAEA;AACA,SAASC,QAAQA,CAACD,EAAU,EAAEL,GAAW,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Y,CAACI,aAAa,CAAC,CAAC;IACjE,MAAMG,SAAS,GAAGJ,aAAa,GAAGG,IAAI,GAAGlC,eAAe;IAExD,MAAMoC,YAAY,GAAG5B,QAAQ,CAAC2B,SAAS,EAAEtB,GAAG,EAAEC,GAAG,CAAC;IAClD,IAAIsB,YAAY,IAAIxC,gBAAgB,EAAE;MACpC,OAAOwB,oBAAoB,CAACV,EAAE,EAAEyB,SAAS,EAAEtB,GAAG,EAAEC,GAAG,CAAC;IACtD,CAAC,MAAM,IAAIsB,YAAY,KAAK,GAAG,EAAE;MAC/B,OAAOD,SAAS;IAClB,CAAC,MAAM;MACL,OAAO1B,eAAe,CACpBC,EAAE,EACFqB,aAAa,EACbA,aAAa,GAAG/B,eAAe,EAC/Ba,GAAG,EACHC,GACF,CAAC;IACH;EACF;EAEA,OAAO,SAASuB,YAAYA,CAACV,CAAC,EAAE;IAC9B,SAAS;;IACT,IAAId,GAAG,KAAKW,GAAG,IAAIV,GAAG,KAAKW,GAAG,EAAE;MAC9B,OAAOE,CAAC,CAAC,CAAC;IACZ;IACA;IACA,IAAIA,CAAC,KAAK,CAAC,EAAE;MACX,OAAO,CAAC;IACV;IACA,IAAIA,CAAC,KAAK,CAAC,EAAE;MACX,OAAO,CAAC;IACV;IACA,OAAOrB,UAAU,CAACwB,QAAQ,CAACH,CAAC,CAAC,EAAEH,GAAG,EAAEC,GAAG,CAAC;EAC1C,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Colors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/Colors.js deleted file mode 100644 index 94bc93a8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Colors.js +++ /dev/null @@ -1,593 +0,0 @@ -'use strict'; - -/** - * Copied from: react-native/Libraries/StyleSheet/normalizeColor.js - * react-native/Libraries/StyleSheet/processColor.js - * https://github.com/wcandillon/react-native-redash/blob/master/src/Colors.ts - */ - -/* eslint no-bitwise: 0 */ -const NUMBER = '[-+]?\\d*\\.?\\d+'; -const PERCENTAGE = NUMBER + '%'; -function call(...args) { - return '\\(\\s*(' + args.join(')\\s*,?\\s*(') + ')\\s*\\)'; -} -function callWithSlashSeparator(...args) { - return '\\(\\s*(' + args.slice(0, args.length - 1).join(')\\s*,?\\s*(') + ')\\s*/\\s*(' + args[args.length - 1] + ')\\s*\\)'; -} -function commaSeparatedCall(...args) { - return '\\(\\s*(' + args.join(')\\s*,\\s*(') + ')\\s*\\)'; -} -const MATCHERS = { - rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)), - rgba: new RegExp('rgba(' + commaSeparatedCall(NUMBER, NUMBER, NUMBER, NUMBER) + '|' + callWithSlashSeparator(NUMBER, NUMBER, NUMBER, NUMBER) + ')'), - hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)), - hsla: new RegExp('hsla(' + commaSeparatedCall(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER) + '|' + callWithSlashSeparator(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER) + ')'), - hwb: new RegExp('hwb' + call(NUMBER, PERCENTAGE, PERCENTAGE)), - hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, - hex6: /^#([0-9a-fA-F]{6})$/, - hex8: /^#([0-9a-fA-F]{8})$/ -}; -function hue2rgb(p, q, t) { - 'worklet'; - - if (t < 0) { - t += 1; - } - if (t > 1) { - t -= 1; - } - if (t < 1 / 6) { - return p + (q - p) * 6 * t; - } - if (t < 1 / 2) { - return q; - } - if (t < 2 / 3) { - return p + (q - p) * (2 / 3 - t) * 6; - } - return p; -} -function hslToRgb(h, s, l) { - 'worklet'; - - const q = l < 0.5 ? l * (1 + s) : l + s - l * s; - const p = 2 * l - q; - const r = hue2rgb(p, q, h + 1 / 3); - const g = hue2rgb(p, q, h); - const b = hue2rgb(p, q, h - 1 / 3); - return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8; -} -function hwbToRgb(h, w, b) { - 'worklet'; - - if (w + b >= 1) { - const gray = Math.round(w * 255 / (w + b)); - return gray << 24 | gray << 16 | gray << 8; - } - const red = hue2rgb(0, 1, h + 1 / 3) * (1 - w - b) + w; - const green = hue2rgb(0, 1, h) * (1 - w - b) + w; - const blue = hue2rgb(0, 1, h - 1 / 3) * (1 - w - b) + w; - return Math.round(red * 255) << 24 | Math.round(green * 255) << 16 | Math.round(blue * 255) << 8; -} -function parse255(str) { - 'worklet'; - - const int = Number.parseInt(str, 10); - if (int < 0) { - return 0; - } - if (int > 255) { - return 255; - } - return int; -} -function parse360(str) { - 'worklet'; - - const int = Number.parseFloat(str); - return (int % 360 + 360) % 360 / 360; -} -function parse1(str) { - 'worklet'; - - const num = Number.parseFloat(str); - if (num < 0) { - return 0; - } - if (num > 1) { - return 255; - } - return Math.round(num * 255); -} -function parsePercentage(str) { - 'worklet'; - - // parseFloat conveniently ignores the final % - const int = Number.parseFloat(str); - if (int < 0) { - return 0; - } - if (int > 100) { - return 1; - } - return int / 100; -} -export function clampRGBA(RGBA) { - 'worklet'; - - for (let i = 0; i < 4; i++) { - RGBA[i] = Math.max(0, Math.min(RGBA[i], 1)); - } -} -const names = { - transparent: undefined, - /* spell-checker: disable */ - // http://www.w3.org/TR/css3-color/#svg-color - aliceblue: 0xf0f8ffff, - antiquewhite: 0xfaebd7ff, - aqua: 0x00ffffff, - aquamarine: 0x7fffd4ff, - azure: 0xf0ffffff, - beige: 0xf5f5dcff, - bisque: 0xffe4c4ff, - black: 0x000000ff, - blanchedalmond: 0xffebcdff, - blue: 0x0000ffff, - blueviolet: 0x8a2be2ff, - brown: 0xa52a2aff, - burlywood: 0xdeb887ff, - burntsienna: 0xea7e5dff, - cadetblue: 0x5f9ea0ff, - chartreuse: 0x7fff00ff, - chocolate: 0xd2691eff, - coral: 0xff7f50ff, - cornflowerblue: 0x6495edff, - cornsilk: 0xfff8dcff, - crimson: 0xdc143cff, - cyan: 0x00ffffff, - darkblue: 0x00008bff, - darkcyan: 0x008b8bff, - darkgoldenrod: 0xb8860bff, - darkgray: 0xa9a9a9ff, - darkgreen: 0x006400ff, - darkgrey: 0xa9a9a9ff, - darkkhaki: 0xbdb76bff, - darkmagenta: 0x8b008bff, - darkolivegreen: 0x556b2fff, - darkorange: 0xff8c00ff, - darkorchid: 0x9932ccff, - darkred: 0x8b0000ff, - darksalmon: 0xe9967aff, - darkseagreen: 0x8fbc8fff, - darkslateblue: 0x483d8bff, - darkslategray: 0x2f4f4fff, - darkslategrey: 0x2f4f4fff, - darkturquoise: 0x00ced1ff, - darkviolet: 0x9400d3ff, - deeppink: 0xff1493ff, - deepskyblue: 0x00bfffff, - dimgray: 0x696969ff, - dimgrey: 0x696969ff, - dodgerblue: 0x1e90ffff, - firebrick: 0xb22222ff, - floralwhite: 0xfffaf0ff, - forestgreen: 0x228b22ff, - fuchsia: 0xff00ffff, - gainsboro: 0xdcdcdcff, - ghostwhite: 0xf8f8ffff, - gold: 0xffd700ff, - goldenrod: 0xdaa520ff, - gray: 0x808080ff, - green: 0x008000ff, - greenyellow: 0xadff2fff, - grey: 0x808080ff, - honeydew: 0xf0fff0ff, - hotpink: 0xff69b4ff, - indianred: 0xcd5c5cff, - indigo: 0x4b0082ff, - ivory: 0xfffff0ff, - khaki: 0xf0e68cff, - lavender: 0xe6e6faff, - lavenderblush: 0xfff0f5ff, - lawngreen: 0x7cfc00ff, - lemonchiffon: 0xfffacdff, - lightblue: 0xadd8e6ff, - lightcoral: 0xf08080ff, - lightcyan: 0xe0ffffff, - lightgoldenrodyellow: 0xfafad2ff, - lightgray: 0xd3d3d3ff, - lightgreen: 0x90ee90ff, - lightgrey: 0xd3d3d3ff, - lightpink: 0xffb6c1ff, - lightsalmon: 0xffa07aff, - lightseagreen: 0x20b2aaff, - lightskyblue: 0x87cefaff, - lightslategray: 0x778899ff, - lightslategrey: 0x778899ff, - lightsteelblue: 0xb0c4deff, - lightyellow: 0xffffe0ff, - lime: 0x00ff00ff, - limegreen: 0x32cd32ff, - linen: 0xfaf0e6ff, - magenta: 0xff00ffff, - maroon: 0x800000ff, - mediumaquamarine: 0x66cdaaff, - mediumblue: 0x0000cdff, - mediumorchid: 0xba55d3ff, - mediumpurple: 0x9370dbff, - mediumseagreen: 0x3cb371ff, - mediumslateblue: 0x7b68eeff, - mediumspringgreen: 0x00fa9aff, - mediumturquoise: 0x48d1ccff, - mediumvioletred: 0xc71585ff, - midnightblue: 0x191970ff, - mintcream: 0xf5fffaff, - mistyrose: 0xffe4e1ff, - moccasin: 0xffe4b5ff, - navajowhite: 0xffdeadff, - navy: 0x000080ff, - oldlace: 0xfdf5e6ff, - olive: 0x808000ff, - olivedrab: 0x6b8e23ff, - orange: 0xffa500ff, - orangered: 0xff4500ff, - orchid: 0xda70d6ff, - palegoldenrod: 0xeee8aaff, - palegreen: 0x98fb98ff, - paleturquoise: 0xafeeeeff, - palevioletred: 0xdb7093ff, - papayawhip: 0xffefd5ff, - peachpuff: 0xffdab9ff, - peru: 0xcd853fff, - pink: 0xffc0cbff, - plum: 0xdda0ddff, - powderblue: 0xb0e0e6ff, - purple: 0x800080ff, - rebeccapurple: 0x663399ff, - red: 0xff0000ff, - rosybrown: 0xbc8f8fff, - royalblue: 0x4169e1ff, - saddlebrown: 0x8b4513ff, - salmon: 0xfa8072ff, - sandybrown: 0xf4a460ff, - seagreen: 0x2e8b57ff, - seashell: 0xfff5eeff, - sienna: 0xa0522dff, - silver: 0xc0c0c0ff, - skyblue: 0x87ceebff, - slateblue: 0x6a5acdff, - slategray: 0x708090ff, - slategrey: 0x708090ff, - snow: 0xfffafaff, - springgreen: 0x00ff7fff, - steelblue: 0x4682b4ff, - tan: 0xd2b48cff, - teal: 0x008080ff, - thistle: 0xd8bfd8ff, - tomato: 0xff6347ff, - turquoise: 0x40e0d0ff, - violet: 0xee82eeff, - wheat: 0xf5deb3ff, - white: 0xffffffff, - whitesmoke: 0xf5f5f5ff, - yellow: 0xffff00ff, - yellowgreen: 0x9acd32ff - /* spell-checker: enable */ -}; - -// copied from react-native/Libraries/Components/View/ReactNativeStyleAttributes -export const ColorProperties = ['backgroundColor', 'borderBottomColor', 'borderColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'borderStartColor', 'borderEndColor', 'borderBlockColor', 'borderBlockEndColor', 'borderBlockStartColor', 'color', 'outlineColor', 'placeholderTextColor', 'shadowColor', 'textDecorationColor', 'tintColor', 'textShadowColor', 'overlayColor', -// SVG color properties -'fill', 'floodColor', 'lightingColor', 'stopColor', 'stroke']; -export function normalizeColor(color) { - 'worklet'; - - if (typeof color === 'number') { - if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) { - return color; - } - return null; - } - if (typeof color !== 'string') { - return null; - } - let match; - - // Ordered based on occurrences on Facebook codebase - if (match = MATCHERS.hex6.exec(color)) { - return Number.parseInt(match[1] + 'ff', 16) >>> 0; - } - if (color in names) { - return names[color]; - } - if (match = MATCHERS.rgb.exec(color)) { - return ( - // b - (parse255(match[1]) << 24 | - // r - parse255(match[2]) << 16 | - // g - parse255(match[3]) << 8 | 0x000000ff) >>> - // a - 0 - ); - } - if (match = MATCHERS.rgba.exec(color)) { - // rgba(R G B / A) notation - if (match[6] !== undefined) { - return (parse255(match[6]) << 24 | - // r - parse255(match[7]) << 16 | - // g - parse255(match[8]) << 8 | - // b - parse1(match[9])) >>> - // a - 0; - } - - // rgba(R, G, B, A) notation - return (parse255(match[2]) << 24 | - // r - parse255(match[3]) << 16 | - // g - parse255(match[4]) << 8 | - // b - parse1(match[5])) >>> - // a - 0; - } - if (match = MATCHERS.hex3.exec(color)) { - return Number.parseInt(match[1] + match[1] + - // r - match[2] + match[2] + - // g - match[3] + match[3] + - // b - 'ff', - // a - 16) >>> 0; - } - - // https://drafts.csswg.org/css-color-4/#hex-notation - if (match = MATCHERS.hex8.exec(color)) { - return Number.parseInt(match[1], 16) >>> 0; - } - if (match = MATCHERS.hex4.exec(color)) { - return Number.parseInt(match[1] + match[1] + - // r - match[2] + match[2] + - // g - match[3] + match[3] + - // b - match[4] + match[4], - // a - 16) >>> 0; - } - if (match = MATCHERS.hsl.exec(color)) { - return (hslToRgb(parse360(match[1]), - // h - parsePercentage(match[2]), - // s - parsePercentage(match[3]) // l - ) | 0x000000ff) >>> - // a - 0; - } - if (match = MATCHERS.hsla.exec(color)) { - // hsla(H S L / A) notation - if (match[6] !== undefined) { - return (hslToRgb(parse360(match[6]), - // h - parsePercentage(match[7]), - // s - parsePercentage(match[8]) // l - ) | parse1(match[9])) >>> - // a - 0; - } - - // hsla(H, S, L, A) notation - return (hslToRgb(parse360(match[2]), - // h - parsePercentage(match[3]), - // s - parsePercentage(match[4]) // l - ) | parse1(match[5])) >>> - // a - 0; - } - if (match = MATCHERS.hwb.exec(color)) { - return (hwbToRgb(parse360(match[1]), - // h - parsePercentage(match[2]), - // w - parsePercentage(match[3]) // b - ) | 0x000000ff) >>> - // a - 0; - } - return null; -} -export const opacity = c => { - 'worklet'; - - return (c >> 24 & 255) / 255; -}; -export const red = c => { - 'worklet'; - - return c >> 16 & 255; -}; -export const green = c => { - 'worklet'; - - return c >> 8 & 255; -}; -export const blue = c => { - 'worklet'; - - return c & 255; -}; -export const rgbaColor = (r, g, b, alpha = 1) => { - 'worklet'; - - // Round alpha to 3 decimal places to avoid floating point precision issues - const safeAlpha = Math.round(alpha * 1000) / 1000; - return `rgba(${r}, ${g}, ${b}, ${safeAlpha})`; -}; - -/** - * @param r - Red value (0-255) - * @param g - Green value (0-255) - * @param b - Blue value (0-255) - * @returns `{h: hue (0-1), s: saturation (0-1), v: value (0-1)}` - */ -export function RGBtoHSV(r, g, b) { - 'worklet'; - - const max = Math.max(r, g, b); - const min = Math.min(r, g, b); - const d = max - min; - const s = max === 0 ? 0 : d / max; - const v = max / 255; - let h = 0; - switch (max) { - case min: - break; - case r: - h = g - b + d * (g < b ? 6 : 0); - h /= 6 * d; - break; - case g: - h = b - r + d * 2; - h /= 6 * d; - break; - case b: - h = r - g + d * 4; - h /= 6 * d; - break; - } - return { - h, - s, - v - }; -} - -/** - * @param h - Hue (0-1) - * @param s - Saturation (0-1) - * @param v - Value (0-1) - * @returns `{r: red (0-255), g: green (0-255), b: blue (0-255)}` - */ -function HSVtoRGB(h, s, v) { - 'worklet'; - - let r, g, b; - const i = Math.floor(h * 6); - const f = h * 6 - i; - const p = v * (1 - s); - const q = v * (1 - f * s); - const t = v * (1 - (1 - f) * s); - switch (i % 6) { - case 0: - [r, g, b] = [v, t, p]; - break; - case 1: - [r, g, b] = [q, v, p]; - break; - case 2: - [r, g, b] = [p, v, t]; - break; - case 3: - [r, g, b] = [p, q, v]; - break; - case 4: - [r, g, b] = [t, p, v]; - break; - case 5: - [r, g, b] = [v, p, q]; - break; - } - return { - r: Math.round(r * 255), - g: Math.round(g * 255), - b: Math.round(b * 255) - }; -} -export const hsvToColor = (h, s, v, a) => { - 'worklet'; - - const { - r, - g, - b - } = HSVtoRGB(h, s, v); - return rgbaColor(r, g, b, a); -}; -export function processColorInitially(color) { - 'worklet'; - - if (color === null || color === undefined) { - return color; - } - let colorNumber; - if (typeof color === 'number') { - colorNumber = color; - } else { - const normalizedColor = normalizeColor(color); - if (typeof normalizedColor !== 'number') { - return normalizedColor; - } - colorNumber = normalizedColor; - } - return (colorNumber << 24 | colorNumber >>> 8) >>> 0; // alpha rgb -} -export function isColor(value) { - 'worklet'; - - if (typeof value !== 'string') { - return false; - } - return processColorInitially(value) != null; -} -export function convertToRGBA(color) { - 'worklet'; - - const processedColor = processColorInitially(color); // alpha rgb; - const a = (processedColor >>> 24) / 255; - const r = (processedColor << 8 >>> 24) / 255; - const g = (processedColor << 16 >>> 24) / 255; - const b = (processedColor << 24 >>> 24) / 255; - return [r, g, b, a]; -} -export function rgbaArrayToRGBAColor(RGBA) { - 'worklet'; - - const alpha = RGBA[3] < 0.001 ? 0 : RGBA[3]; - return `rgba(${Math.round(RGBA[0] * 255)}, ${Math.round(RGBA[1] * 255)}, ${Math.round(RGBA[2] * 255)}, ${alpha})`; -} -export function toLinearSpace(RGBA, gamma = 2.2) { - 'worklet'; - - const res = []; - for (let i = 0; i < 3; ++i) { - res.push(Math.pow(RGBA[i], gamma)); - } - res.push(RGBA[3]); - return res; -} -export function toGammaSpace(RGBA, gamma = 2.2) { - 'worklet'; - - const res = []; - for (let i = 0; i < 3; ++i) { - res.push(Math.pow(RGBA[i], 1 / gamma)); - } - res.push(RGBA[3]); - return res; -} -//# sourceMappingURL=Colors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Colors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/Colors.js.map deleted file mode 100644 index 8ce025bf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["NUMBER","PERCENTAGE","call","args","join","callWithSlashSeparator","slice","length","commaSeparatedCall","MATCHERS","rgb","RegExp","rgba","hsl","hsla","hwb","hex3","hex4","hex6","hex8","hue2rgb","p","q","t","hslToRgb","h","s","l","r","g","b","Math","round","hwbToRgb","w","gray","red","green","blue","parse255","str","int","Number","parseInt","parse360","parseFloat","parse1","num","parsePercentage","clampRGBA","RGBA","i","max","min","names","transparent","undefined","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blueviolet","brown","burlywood","burntsienna","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","ColorProperties","normalizeColor","color","match","exec","opacity","c","rgbaColor","alpha","safeAlpha","RGBtoHSV","d","v","HSVtoRGB","floor","f","hsvToColor","a","processColorInitially","colorNumber","normalizedColor","isColor","value","convertToRGBA","processedColor","rgbaArrayToRGBAColor","toLinearSpace","gamma","res","push","pow","toGammaSpace"],"sourceRoot":"../../src","sources":["Colors.ts"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACA;AACA;AACA;;AAEA;AAcA,MAAMA,MAAc,GAAG,mBAAmB;AAC1C,MAAMC,UAAU,GAAGD,MAAM,GAAG,GAAG;AAE/B,SAASE,IAAIA,CAAC,GAAGC,IAAyB,EAAE;EAC1C,OAAO,UAAU,GAAGA,IAAI,CAACC,IAAI,CAAC,cAAc,CAAC,GAAG,UAAU;AAC5D;AAEA,SAASC,sBAAsBA,CAAC,GAAGF,IAAyB,EAAE;EAC5D,OACE,UAAU,GACVA,IAAI,CAACG,KAAK,CAAC,CAAC,EAAEH,IAAI,CAACI,MAAM,GAAG,CAAC,CAAC,CAACH,IAAI,CAAC,cAAc,CAAC,GACnD,aAAa,GACbD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AAC,GAAG,GAAG,CAAC,KAAKgK,KAAK,GAAG;AAC9C;AAEA,OAAO,SAASkB,aAAaA,CAC3BlL,IAAsB,EACtBmL,KAAK,GAAG,GAAG,EACO;EAClB,SAAS;;EACT,MAAMC,GAAG,GAAG,EAAE;EACd,KAAK,IAAInL,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAE,EAAEA,CAAC,EAAE;IAC1BmL,GAAG,CAACC,IAAI,CAACxM,IAAI,CAACyM,GAAG,CAACtL,IAAI,CAACC,CAAC,CAAC,EAAEkL,KAAK,CAAC,CAAC;EACpC;EACAC,GAAG,CAACC,IAAI,CAACrL,IAAI,CAAC,CAAC,CAAC,CAAC;EACjB,OAAOoL,GAAG;AACZ;AAEA,OAAO,SAASG,YAAYA,CAC1BvL,IAAsB,EACtBmL,KAAK,GAAG,GAAG,EACO;EAClB,SAAS;;EACT,MAAMC,GAAG,GAAG,EAAE;EACd,KAAK,IAAInL,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAE,EAAEA,CAAC,EAAE;IAC1BmL,GAAG,CAACC,IAAI,CAACxM,IAAI,CAACyM,GAAG,CAACtL,IAAI,CAACC,CAAC,CAAC,EAAE,CAAC,GAAGkL,KAAK,CAAC,CAAC;EACxC;EACAC,GAAG,CAACC,IAAI,CAACrL,IAAI,CAAC,CAAC,CAAC,CAAC;EACjB,OAAOoL,GAAG;AACZ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js index 4dcf50f7..568ab06f 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js @@ -1,35 +1,61 @@ 'use strict'; -import { executeOnUIRuntimeSync } from 'react-native-worklets'; -import { getLoggerConfig, SHOULD_BE_USE_WEB, updateLoggerConfig } from './common'; - -/** @deprecated This function is a no-op in Reanimated 4. */ -export function addWhitelistedNativeProps(_props) { - // Do nothing. This is just for backward compatibility. -} - -/** @deprecated This function is a no-op in Reanimated 4. */ -export function addWhitelistedUIProps(_props) { - // Do nothing. This is just for backward compatibility. -} - -/** - * Updates Reanimated logger config with the user-provided configuration. Will - * affect Reanimated code executed after call to this function so it should be - * called before any Reanimated code is executed to take effect. Each call to - * this function will override the previous configuration (it's recommended to - * call it only once). - * - * @param config - The new logger configuration to apply. - */ -export function configureReanimatedLogger(config) { - // Get the current config from the React runtime (to have a single source of truth) - const currentConfig = getLoggerConfig(); - // Update the configuration object in the React runtime - updateLoggerConfig(currentConfig, config); - // Register the updated configuration in the UI runtime - if (!SHOULD_BE_USE_WEB) { - executeOnUIRuntimeSync(updateLoggerConfig)(currentConfig, config); +import { PropsAllowlists } from './propsAllowlists'; +import { jsiConfigureProps } from './reanimated2/core'; +function assertNoOverlapInLists() { + for (const key in PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST) { + if (key in PropsAllowlists.UI_THREAD_PROPS_WHITELIST) { + throw new Error(`[Reanimated] Property \`${key}\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`); + } } } +function configureProps() { + assertNoOverlapInLists(); + jsiConfigureProps(Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST), Object.keys(PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST)); +} +export function addWhitelistedNativeProps(props) { + const oldSize = Object.keys(PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST).length; + PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST = { + ...PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST, + ...props + }; + if (oldSize !== Object.keys(PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST).length) { + configureProps(); + } +} +export function addWhitelistedUIProps(props) { + const oldSize = Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST).length; + PropsAllowlists.UI_THREAD_PROPS_WHITELIST = { + ...PropsAllowlists.UI_THREAD_PROPS_WHITELIST, + ...props + }; + if (oldSize !== Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST).length) { + configureProps(); + } +} +const PROCESSED_VIEW_NAMES = new Set(); +/** + * updates UI props whitelist for given view host instance + * this will work just once for every view name + */ + +export function adaptViewConfig(viewConfig) { + const viewName = viewConfig.uiViewClassName; + const props = viewConfig.validAttributes; + + // update whitelist of UI props for this view name only once + if (!PROCESSED_VIEW_NAMES.has(viewName)) { + const propsToAdd = {}; + Object.keys(props).forEach(key => { + // we don't want to add native props as they affect layout + // we also skip props which repeat here + if (!(key in PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST) && !(key in PropsAllowlists.UI_THREAD_PROPS_WHITELIST)) { + propsToAdd[key] = true; + } + }); + addWhitelistedUIProps(propsToAdd); + PROCESSED_VIEW_NAMES.add(viewName); + } +} +configureProps(); //# sourceMappingURL=ConfigHelper.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js.map index 2124f45d..e6bc3357 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/ConfigHelper.js.map @@ -1 +1 @@ -{"version":3,"names":["executeOnUIRuntimeSync","getLoggerConfig","SHOULD_BE_USE_WEB","updateLoggerConfig","addWhitelistedNativeProps","_props","addWhitelistedUIProps","configureReanimatedLogger","config","currentConfig"],"sourceRoot":"../../src","sources":["ConfigHelper.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,sBAAsB,QAAQ,uBAAuB;AAG9D,SACEC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,QACb,UAAU;;AAEjB;AACA,OAAO,SAASC,yBAAyBA,CACvCC,MAA+B,EACzB;EACN;AAAA;;AAGF;AACA,OAAO,SAASC,qBAAqBA,CAACD,MAA+B,EAAQ;EAC3E;AAAA;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,yBAAyBA,CAACC,MAAoB,EAAE;EAC9D;EACA,MAAMC,aAAa,GAAGR,eAAe,CAAC,CAAC;EACvC;EACAE,kBAAkB,CAACM,aAAa,EAAED,MAAM,CAAC;EACzC;EACA,IAAI,CAACN,iBAAiB,EAAE;IACtBF,sBAAsB,CAACG,kBAAkB,CAAC,CAACM,aAAa,EAAED,MAAM,CAAC;EACnE;AACF","ignoreList":[]} +{"version":3,"names":["PropsAllowlists","jsiConfigureProps","assertNoOverlapInLists","key","NATIVE_THREAD_PROPS_WHITELIST","UI_THREAD_PROPS_WHITELIST","Error","configureProps","Object","keys","addWhitelistedNativeProps","props","oldSize","length","addWhitelistedUIProps","PROCESSED_VIEW_NAMES","Set","adaptViewConfig","viewConfig","viewName","uiViewClassName","validAttributes","has","propsToAdd","forEach","add"],"sources":["ConfigHelper.ts"],"sourcesContent":["'use strict';\nimport { PropsAllowlists } from './propsAllowlists';\nimport { jsiConfigureProps } from './reanimated2/core';\nfunction assertNoOverlapInLists() {\n for (const key in PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST) {\n if (key in PropsAllowlists.UI_THREAD_PROPS_WHITELIST) {\n throw new Error(\n `[Reanimated] Property \\`${key}\\` was whitelisted both as UI and native prop. Please remove it from one of the lists.`\n );\n }\n }\n}\n\nfunction configureProps(): void {\n assertNoOverlapInLists();\n jsiConfigureProps(\n Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST),\n Object.keys(PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST)\n );\n}\n\nexport function addWhitelistedNativeProps(\n props: Record\n): void {\n const oldSize = Object.keys(\n PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST\n ).length;\n PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST = {\n ...PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST,\n ...props,\n };\n if (\n oldSize !==\n Object.keys(PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST).length\n ) {\n configureProps();\n }\n}\n\nexport function addWhitelistedUIProps(props: Record): void {\n const oldSize = Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST).length;\n PropsAllowlists.UI_THREAD_PROPS_WHITELIST = {\n ...PropsAllowlists.UI_THREAD_PROPS_WHITELIST,\n ...props,\n };\n if (\n oldSize !== Object.keys(PropsAllowlists.UI_THREAD_PROPS_WHITELIST).length\n ) {\n configureProps();\n }\n}\n\nconst PROCESSED_VIEW_NAMES = new Set();\n\nexport interface ViewConfig {\n uiViewClassName: string;\n validAttributes: Record;\n}\n/**\n * updates UI props whitelist for given view host instance\n * this will work just once for every view name\n */\n\nexport function adaptViewConfig(viewConfig: ViewConfig): void {\n const viewName = viewConfig.uiViewClassName;\n const props = viewConfig.validAttributes;\n\n // update whitelist of UI props for this view name only once\n if (!PROCESSED_VIEW_NAMES.has(viewName)) {\n const propsToAdd: Record = {};\n Object.keys(props).forEach((key) => {\n // we don't want to add native props as they affect layout\n // we also skip props which repeat here\n if (\n !(key in PropsAllowlists.NATIVE_THREAD_PROPS_WHITELIST) &&\n !(key in PropsAllowlists.UI_THREAD_PROPS_WHITELIST)\n ) {\n propsToAdd[key] = true;\n }\n });\n addWhitelistedUIProps(propsToAdd);\n\n PROCESSED_VIEW_NAMES.add(viewName);\n }\n}\n\nconfigureProps();\n"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,mBAAmB;AACnD,SAASC,iBAAiB,QAAQ,oBAAoB;AACtD,SAASC,sBAAsBA,CAAA,EAAG;EAChC,KAAK,MAAMC,GAAG,IAAIH,eAAe,CAACI,6BAA6B,EAAE;IAC/D,IAAID,GAAG,IAAIH,eAAe,CAACK,yBAAyB,EAAE;MACpD,MAAM,IAAIC,KAAK,CACZ,2BAA0BH,GAAI,wFAAuF,CACvH;IACH;EACF;AACF;AAEA,SAASI,cAAcA,CAAA,EAAS;EAC9BL,sBAAsB,EAAE;EACxBD,iBAAi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IAAK;MAClC;MACA;MACA,IACE,EAAEA,GAAG,IAAIH,eAAe,CAACI,6BAA6B,CAAC,IACvD,EAAED,GAAG,IAAIH,eAAe,CAACK,yBAAyB,CAAC,EACnD;QACAkB,UAAU,CAACpB,GAAG,CAAC,GAAG,IAAI;MACxB;IACF,CAAC,CAAC;IACFW,qBAAqB,CAACS,UAAU,CAAC;IAEjCR,oBAAoB,CAACU,GAAG,CAACN,QAAQ,CAAC;EACpC;AACF;AAEAZ,cAAc,EAAE"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Easing.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/Easing.js deleted file mode 100644 index db40b64a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Easing.js +++ /dev/null @@ -1,316 +0,0 @@ -'use strict'; - -import { Bezier } from './Bezier'; - -/** - * The `Easing` module implements common easing functions. This module is used - * by [Animate.timing()](docs/animate.html#timing) to convey physically - * believable motion in animations. - * - * You can find a visualization of some common easing functions at - * http://easings.net/ - * - * ### Predefined animations - * - * The `Easing` module provides several predefined animations through the - * following methods: - * - * - [`back`](docs/easing.html#back) provides a simple animation where the object - * goes slightly back before moving forward - * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation - * - [`ease`](docs/easing.html#ease) provides a simple inertial animation - * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction - * - * ### Standard functions - * - * Three standard easing functions are provided: - * - * - [`linear`](docs/easing.html#linear) - * - [`quad`](docs/easing.html#quad) - * - [`cubic`](docs/easing.html#cubic) - * - * The [`poly`](docs/easing.html#poly) function can be used to implement - * quartic, quintic, and other higher power functions. - * - * ### Additional functions - * - * Additional mathematical functions are provided by the following methods: - * - * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve - * - [`circle`](docs/easing.html#circle) provides a circular function - * - [`sin`](docs/easing.html#sin) provides a sinusoidal function - * - [`exp`](docs/easing.html#exp) provides an exponential function - * - * The following helpers are used to modify other easing functions. - * - * - [`in`](docs/easing.html#in) runs an easing function forwards - * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical - * - [`out`](docs/easing.html#out) runs an easing function backwards - */ - -/** - * A linear function, `f(t) = t`. Position correlates to elapsed time one to - * one. - * - * http://cubic-bezier.com/#0,0,1,1 - */ -function linear(t) { - 'worklet'; - - return t; -} - -/** - * A simple inertial interaction, similar to an object slowly accelerating to - * speed. - * - * http://cubic-bezier.com/#.42,0,1,1 - */ -function ease(t) { - 'worklet'; - - return Bezier(0.42, 0, 1, 1)(t); -} - -/** - * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed - * time. - * - * http://easings.net/#easeInQuad - */ -function quad(t) { - 'worklet'; - - return t * t; -} - -/** - * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed - * time. - * - * http://easings.net/#easeInCubic - */ -function cubic(t) { - 'worklet'; - - return t * t * t; -} - -/** - * A power function. Position is equal to the Nth power of elapsed time. - * - * N = 4: http://easings.net/#easeInQuart n = 5: http://easings.net/#easeInQuint - */ -function poly(n) { - 'worklet'; - - return t => { - 'worklet'; - - return Math.pow(t, n); - }; -} - -/** - * A sinusoidal function. - * - * http://easings.net/#easeInSine - */ -function sin(t) { - 'worklet'; - - return 1 - Math.cos(t * Math.PI / 2); -} - -/** - * A circular function. - * - * http://easings.net/#easeInCirc - */ -function circle(t) { - 'worklet'; - - return 1 - Math.sqrt(1 - t * t); -} - -/** - * An exponential function. - * - * http://easings.net/#easeInExpo - */ -function exp(t) { - 'worklet'; - - return Math.pow(2, 10 * (t - 1)); -} - -/** - * A simple elastic interaction, similar to a spring oscillating back and forth. - * - * Default bounciness is 1, which overshoots a little bit once. 0 bounciness - * doesn't overshoot at all, and bounciness of N `>` 1 will overshoot about N - * times. - * - * http://easings.net/#easeInElastic - */ -function elastic(bounciness = 1) { - 'worklet'; - - const p = bounciness * Math.PI; - return t => { - 'worklet'; - - return 1 - Math.pow(Math.cos(t * Math.PI / 2), 3) * Math.cos(t * p); - }; -} - -/** - * Use with `Animated.parallel()` to create a simple effect where the object - * animates back slightly as the animation starts. - * - * Wolfram Plot: - * - * - http://tiny.cc/back_default (s = 1.70158, default) - */ -function back(s = 1.70158) { - 'worklet'; - - return t => { - 'worklet'; - - return t * t * ((s + 1) * t - s); - }; -} - -/** - * Provides a simple bouncing effect. - * - * http://easings.net/#easeInBounce - */ -function bounce(t) { - 'worklet'; - - if (t < 1 / 2.75) { - return 7.5625 * t * t; - } - if (t < 2 / 2.75) { - const t2 = t - 1.5 / 2.75; - return 7.5625 * t2 * t2 + 0.75; - } - if (t < 2.5 / 2.75) { - const t2 = t - 2.25 / 2.75; - return 7.5625 * t2 * t2 + 0.9375; - } - const t2 = t - 2.625 / 2.75; - return 7.5625 * t2 * t2 + 0.984375; -} - -/** - * Provides a cubic bezier curve, equivalent to CSS Transitions' - * `transition-timing-function`. - * - * A useful tool to visualize cubic bezier curves can be found at - * http://cubic-bezier.com/ - */ -function bezier(x1, y1, x2, y2) { - 'worklet'; - - return { - factory: () => { - 'worklet'; - - return Bezier(x1, y1, x2, y2); - } - }; -} -function bezierFn(x1, y1, x2, y2) { - 'worklet'; - - return Bezier(x1, y1, x2, y2); -} - -/** Runs an easing function forwards. */ -function in_(easing) { - 'worklet'; - - return easing; -} - -/** Runs an easing function backwards. */ -function out(easing) { - 'worklet'; - - return t => { - 'worklet'; - - return 1 - easing(1 - t); - }; -} - -/** - * Makes any easing function symmetrical. The easing function will run forwards - * for half of the duration, then backwards for the rest of the duration. - */ -function inOut(easing) { - 'worklet'; - - return t => { - 'worklet'; - - if (t < 0.5) { - return easing(t * 2) / 2; - } - return 1 - easing((1 - t) * 2) / 2; - }; -} - -/** - * The `steps` easing function jumps between discrete values at regular - * intervals, creating a stepped animation effect. The `n` parameter determines - * the number of steps in the animation, and the `roundToNextStep` parameter - * determines whether the animation should start at the beginning or end of each - * step. - */ -function steps(n = 10, roundToNextStep = true) { - 'worklet'; - - return t => { - 'worklet'; - - const value = Math.min(Math.max(t, 0), 1) * n; - if (roundToNextStep) { - return Math.ceil(value) / n; - } - return Math.floor(value) / n; - }; -} -const EasingObject = { - linear, - ease, - quad, - cubic, - poly, - sin, - circle, - exp, - elastic, - back, - bounce, - bezier, - bezierFn, - steps, - in: in_, - out, - inOut -}; -export const EasingNameSymbol = Symbol('easingName'); -for (const [easingName, easing] of Object.entries(EasingObject)) { - Object.defineProperty(easing, EasingNameSymbol, { - value: easingName, - configurable: false, - enumerable: false, - writable: false - }); -} -export const Easing = EasingObject; -//# sourceMappingURL=Easing.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Easing.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/Easing.js.map deleted file mode 100644 index c33aa500..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Easing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Bezier","linear","t","ease","quad","cubic","poly","n","Math","pow","sin","cos","PI","circle","sqrt","exp","elastic","bounciness","p","back","s","bounce","t2","bezier","x1","y1","x2","y2","factory","bezierFn","in_","easing","out","inOut","steps","roundToNextStep","value","min","max","ceil","floor","EasingObject","in","EasingNameSymbol","Symbol","easingName","Object","entries","defineProperty","configurable","enumerable","writable","Easing"],"sourceRoot":"../../src","sources":["Easing.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,UAAU;;AAGjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,MAAMA,CAACC,CAAS,EAAU;EACjC,SAAS;;EACT,OAAOA,CAAC;AACV;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,IAAIA,CAACD,CAAS,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ACpC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGK,CAAC;IAC7C,IAAI4B,eAAe,EAAE;MACnB,OAAO3B,IAAI,CAAC+B,IAAI,CAACH,KAAK,CAAC,GAAG7B,CAAC;IAC7B;IACA,OAAOC,IAAI,CAACgC,KAAK,CAACJ,KAAK,CAAC,GAAG7B,CAAC;EAC9B,CAAC;AACH;AAEA,MAAMkC,YAAY,GAAG;EACnBxC,MAAM;EACNE,IAAI;EACJC,IAAI;EACJC,KAAK;EACLC,IAAI;EACJI,GAAG;EACHG,MAAM;EACNE,GAAG;EACHC,OAAO;EACPG,IAAI;EACJE,MAAM;EACNE,MAAM;EACNM,QAAQ;EACRK,KAAK;EACLQ,EAAE,EAAEZ,GAAG;EACPE,GAAG;EACHC;AACF,CAAC;AAED,OAAO,MAAMU,gBAAgB,GAAGC,MAAM,CAAC,YAAY,CAAC;AAEpD,KAAK,MAAM,CAACC,UAAU,EAAEd,MAAM,CAAC,IAAIe,MAAM,CAACC,OAAO,CAACN,YAAY,CAAC,EAAE;EAC/DK,MAAM,CAACE,cAAc,CAACjB,MAAM,EAAEY,gBAAgB,EAAE;IAC9CP,KAAK,EAAES,UAAU;IACjBI,YAAY,EAAE,KAAK;IACnBC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE;EACZ,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMC,MAAM,GAAGX,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/PropAdapters.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/PropAdapters.js deleted file mode 100644 index 4d981586..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/PropAdapters.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -import { logger } from './common'; - -// @ts-expect-error This overload is required by our API. - -export function createAnimatedPropAdapter(adapter, _nativeProps) { - logger.warn('`createAnimatedPropAdapter` is no longer necessary in Reanimated 4 and will be removed in next version. Please remove this call from your code and pass the adapter function directly.'); - return adapter; -} -//# sourceMappingURL=PropAdapters.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/PropAdapters.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/PropAdapters.js.map deleted file mode 100644 index ba08979e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/PropAdapters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","createAnimatedPropAdapter","adapter","_nativeProps","warn"],"sourceRoot":"../../src","sources":["PropAdapters.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,MAAM,QAAQ,UAAU;;AAMjC;;AAMA,OAAO,SAASC,yBAAyBA,CACvCC,OAAoC,EACpCC,YAAuB,EACM;EAC7BH,MAAM,CAACI,IAAI,CACT,wLACF,CAAC;EACD,OAAOF,OAAO;AAChB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/NativeReanimated.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/NativeReanimated.js deleted file mode 100644 index c17f576d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/NativeReanimated.js +++ /dev/null @@ -1,165 +0,0 @@ -/* eslint-disable @typescript-eslint/no-empty-function */ -'use strict'; - -import { executeOnUIRuntimeSync, WorkletsModule } from 'react-native-worklets'; -import { ReanimatedError, registerReanimatedError, SHOULD_BE_USE_WEB } from '../common'; -import { getShadowNodeWrapperFromRef } from '../fabricUtils'; -import { checkCppVersion } from '../platform-specific/checkCppVersion'; -import { jsVersion } from '../platform-specific/jsVersion'; -import { assertWorkletsVersion } from '../platform-specific/workletsVersion'; -import { ReanimatedTurboModule } from '../specs'; -export function createNativeReanimatedModule() { - return new NativeReanimatedModule(); -} -function assertSingleReanimatedInstance() { - if (global._REANIMATED_VERSION_JS !== undefined && global._REANIMATED_VERSION_JS !== jsVersion) { - throw new ReanimatedError(`Another instance of Reanimated was detected. -See \`https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#another-instance-of-reanimated-was-detected\` for more details. Previous: ${global._REANIMATED_VERSION_JS}, current: ${jsVersion}.`); - } -} -class NativeReanimatedModule { - /** - * We keep the instance of `WorkletsModule` here to keep correct coupling of - * the modules and initialization order. - */ - // eslint-disable-next-line no-unused-private-class-members - #workletsModule; - #reanimatedModuleProxy; - constructor() { - this.#workletsModule = WorkletsModule; - // These checks have to split since version checking depend on the execution order - if (__DEV__) { - assertSingleReanimatedInstance(); - assertWorkletsVersion(); - } - global._REANIMATED_VERSION_JS = jsVersion; - if (global.__reanimatedModuleProxy === undefined && ReanimatedTurboModule) { - if (!ReanimatedTurboModule.installTurboModule()) { - // This path means that React Native has failed on reload. - // We don't want to throw any errors to not mislead the users - // that the problem is related to Reanimated. - // We install a DummyReanimatedModuleProxy instead. - this.#reanimatedModuleProxy = new DummyReanimatedModuleProxy(); - return; - } - } - if (global.__reanimatedModuleProxy === undefined) { - throw new ReanimatedError(`Native part of Reanimated doesn't seem to be initialized. -See https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#native-part-of-reanimated-doesnt-seem-to-be-initialized for more details.`); - } - if (__DEV__ && !globalThis.RN$Bridgeless && !SHOULD_BE_USE_WEB) { - throw new ReanimatedError('Reanimated 4 supports only the React Native New Architecture and web.'); - } - if (__DEV__) { - checkCppVersion(); - } - this.#reanimatedModuleProxy = global.__reanimatedModuleProxy; - executeOnUIRuntimeSync(function initializeUI() { - 'worklet'; - - registerReanimatedError(); - })(); - } - registerSensor(sensorType, interval, iosReferenceFrame, handler) { - return this.#reanimatedModuleProxy.registerSensor(sensorType, interval, iosReferenceFrame, handler); - } - unregisterSensor(sensorId) { - return this.#reanimatedModuleProxy.unregisterSensor(sensorId); - } - registerEventHandler(eventHandler, eventName, emitterReactTag) { - return this.#reanimatedModuleProxy.registerEventHandler(eventHandler, eventName, emitterReactTag); - } - unregisterEventHandler(id) { - return this.#reanimatedModuleProxy.unregisterEventHandler(id); - } - getViewProp(viewTag, propName, component, - // required on Fabric - callback) { - const shadowNodeWrapper = getShadowNodeWrapperFromRef(component); - return this.#reanimatedModuleProxy.getViewProp(shadowNodeWrapper, propName, callback); - } - configureLayoutAnimationBatch(layoutAnimationsBatch) { - this.#reanimatedModuleProxy.configureLayoutAnimationBatch(layoutAnimationsBatch); - } - setShouldAnimateExitingForTag(viewTag, shouldAnimate) { - this.#reanimatedModuleProxy.setShouldAnimateExitingForTag(viewTag, shouldAnimate); - } - getStaticFeatureFlag(name) { - return this.#reanimatedModuleProxy.getStaticFeatureFlag(name); - } - setDynamicFeatureFlag(name, value) { - this.#reanimatedModuleProxy.setDynamicFeatureFlag(name, value); - } - subscribeForKeyboardEvents(handler, isStatusBarTranslucent, isNavigationBarTranslucent) { - return this.#reanimatedModuleProxy.subscribeForKeyboardEvents(handler, isStatusBarTranslucent, isNavigationBarTranslucent); - } - unsubscribeFromKeyboardEvents(listenerId) { - this.#reanimatedModuleProxy.unsubscribeFromKeyboardEvents(listenerId); - } - setViewStyle(viewTag, style) { - this.#reanimatedModuleProxy.setViewStyle(viewTag, style); - } - markNodeAsRemovable(shadowNodeWrapper) { - this.#reanimatedModuleProxy.markNodeAsRemovable(shadowNodeWrapper); - } - unmarkNodeAsRemovable(viewTag) { - this.#reanimatedModuleProxy.unmarkNodeAsRemovable(viewTag); - } - registerCSSKeyframes(animationName, viewName, keyframesConfig) { - this.#reanimatedModuleProxy.registerCSSKeyframes(animationName, viewName, keyframesConfig); - } - unregisterCSSKeyframes(animationName, viewName) { - this.#reanimatedModuleProxy.unregisterCSSKeyframes(animationName, viewName); - } - applyCSSAnimations(shadowNodeWrapper, animationUpdates) { - this.#reanimatedModuleProxy.applyCSSAnimations(shadowNodeWrapper, animationUpdates); - } - unregisterCSSAnimations(viewTag) { - this.#reanimatedModuleProxy.unregisterCSSAnimations(viewTag); - } - registerCSSTransition(shadowNodeWrapper, transitionConfig) { - this.#reanimatedModuleProxy.registerCSSTransition(shadowNodeWrapper, transitionConfig); - } - updateCSSTransition(viewTag, configUpdates) { - this.#reanimatedModuleProxy.updateCSSTransition(viewTag, configUpdates); - } - unregisterCSSTransition(viewTag) { - this.#reanimatedModuleProxy.unregisterCSSTransition(viewTag); - } -} -class DummyReanimatedModuleProxy { - configureLayoutAnimationBatch() {} - setShouldAnimateExitingForTag() {} - getStaticFeatureFlag() { - return false; - } - setDynamicFeatureFlag() {} - subscribeForKeyboardEvents() { - return -1; - } - unsubscribeFromKeyboardEvents() {} - setViewStyle() {} - markNodeAsRemovable() {} - unmarkNodeAsRemovable() {} - registerCSSKeyframes() {} - unregisterCSSKeyframes() {} - applyCSSAnimations() {} - registerCSSAnimations() {} - updateCSSAnimations() {} - unregisterCSSAnimations() {} - registerCSSTransition() {} - updateCSSTransition() {} - unregisterCSSTransition() {} - registerSensor() { - return -1; - } - unregisterSensor() {} - registerEventHandler() { - return -1; - } - unregisterEventHandler() {} - getViewProp() { - return null; - } -} -//# sourceMappingURL=NativeReanimated.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/NativeReanimated.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/NativeReanimated.js.map deleted file mode 100644 index d8e9cfb2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/NativeReanimated.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["executeOnUIRuntimeSync","WorkletsModule","ReanimatedError","registerReanimatedError","SHOULD_BE_USE_WEB","getShadowNodeWrapperFromRef","checkCppVersion","jsVersion","assertWorkletsVersion","ReanimatedTurboModule","createNativeReanimatedModule","NativeReanimatedModule","assertSingleReanimatedInstance","global","_REANIMATED_VERSION_JS","undefined","workletsModule","reanimatedModuleProxy","constructor","__DEV__","__reanimatedModuleProxy","installTurboModule","DummyReanimatedModuleProxy","globalThis","RN$Bridgeless","initializeUI","registerSensor","sensorType","interval","iosReferenceFrame","handler","unregisterSensor","sensorId","registerEventHandler","eventHandler","eventName","emitterReactTag","unregisterEventHandler","id","getViewProp","viewTag","propName","component","callback","shadowNodeWrapper","configureLayoutAnimationBatch","layoutAnimationsBatch","setShouldAnimateExitingForTag","shouldAnimate","getStaticFeatureFlag","name","setDynamicFeatureFlag","value","subscribeForKeyboardEvents","isStatusBarTranslucent","isNavigationBarTranslucent","unsubscribeFromKeyboardEvents","listenerId","setViewStyle","style","markNodeAsRemovable","unmarkNodeAsRemovable","registerCSSKeyframes","animationName","viewName","keyframesConfig","unregisterCSSKeyframes","applyCSSAnimations","animationUpdates","unregisterCSSAnimations","registerCSSTransition","transitionConfig","updateCSSTransition","configUpdates","unregisterCSSTransition","registerCSSAnimations","updateCSSAnimations"],"sourceRoot":"../../../src","sources":["ReanimatedModule/NativeReanimated.ts"],"mappings":"AAAA;AACA,YAAY;;AAMZ,SAASA,sBAAsB,EAAEC,cAAc,QAAQ,uBAAuB;AAE9E,SACEC,eAAe,EACfC,uBAAuB,EACvBC,iBAAiB,QACZ,WAAW;AAclB,SAASC,2BAA2B,QAAQ,gBAAgB;AAC5D,SAASC,eAAe,QAAQ,sCAAsC;AACtE,SAASC,SAAS,QAAQ,gCAAgC;AAC1D,SAASC,qBAAqB,QAAQ,sCAAsC;AAC5E,SAASC,qBAAqB,QAAQ,UAAU;AAMhD,OAAO,SAASC,4BAA4BA,CAAA,EAAsB;EAChE,OAAO,IAAIC,sBAAsB,CAAC,CAAC;AACrC;AAEA,SAASC,8BAA8BA,CAAA,EAAG;EACxC,IACEC,MAAM,CAACC,sBAAsB,KAAKC,SAAS,IAC3CF,MAAM,CAACC,sBAAsB,KAAKP,SAAS,EAC3C;IACA,MAAM,IAAIL,eAAe,CACvB;AACN,iKAAiKW,MAAM,CAACC,sBAAsB,cAAcP,SAAS,GACjN,CAAC;EACH;AACF;AAEA,MAAMI,sBAAsB,CAA8B;EACxD;AACF;AACA;AACA;EACE;EACA,CAACK,cAAc;EACf,CAACC,qBAAqB;EACtBC,WAAWA,CA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AqB,CAACuD,mBAAmB,CAAChC,OAAO,EAAEiC,aAAa,CAAC;EACzE;EAEAC,uBAAuBA,CAAClC,OAAe,EAAE;IACvC,IAAI,CAAC,CAACvB,qBAAqB,CAACyD,uBAAuB,CAAClC,OAAO,CAAC;EAC9D;AACF;AAEA,MAAMlB,0BAA0B,CAAkC;EAChEuB,6BAA6BA,CAAA,EAAS,CAAC;EACvCE,6BAA6BA,CAAA,EAAS,CAAC;EACvCE,oBAAoBA,CAAA,EAAY;IAC9B,OAAO,KAAK;EACd;EACAE,qBAAqBA,CAAA,EAAS,CAAC;EAC/BE,0BAA0BA,CAAA,EAAW;IACnC,OAAO,CAAC,CAAC;EACX;EAEAG,6BAA6BA,CAAA,EAAS,CAAC;EACvCE,YAAYA,CAAA,EAAS,CAAC;EACtBE,mBAAmBA,CAAA,EAAS,CAAC;EAC7BC,qBAAqBA,CAAA,EAAS,CAAC;EAC/BC,oBAAoBA,CAAA,EAAS,CAAC;EAC9BI,sBAAsBA,CAAA,EAAS,CAAC;EAChCC,kBAAkBA,CAAA,EAAS,CAAC;EAC5BQ,qBAAqBA,CAAA,EAAS,CAAC;EAC/BC,mBAAmBA,CAAA,EAAS,CAAC;EAC7BP,uBAAuBA,CAAA,EAAS,CAAC;EACjCC,qBAAqBA,CAAA,EAAS,CAAC;EAC/BE,mBAAmBA,CAAA,EAAS,CAAC;EAC7BE,uBAAuBA,CAAA,EAAS,CAAC;EACjChD,cAAcA,CAAA,EAAW;IACvB,OAAO,CAAC,CAAC;EACX;EAEAK,gBAAgBA,CAAA,EAAS,CAAC;EAC1BE,oBAAoBA,CAAA,EAAW;IAC7B,OAAO,CAAC,CAAC;EACX;EAEAI,sBAAsBA,CAAA,EAAS,CAAC;EAChCE,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI;EACb;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.js deleted file mode 100644 index ba40a31c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { ReanimatedModule } from './reanimatedModuleInstance'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.js.map deleted file mode 100644 index d103b264..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedModule"],"sourceRoot":"../../../src","sources":["ReanimatedModule/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,gBAAgB,QAAQ,4BAA4B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.web.js deleted file mode 100644 index 09f0f205..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.web.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -// this file was created to prevent NativeReanimated from being included in the web bundle -import { createJSReanimatedModule } from './js-reanimated'; -export const ReanimatedModule = createJSReanimatedModule(); -//# sourceMappingURL=index.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.web.js.map deleted file mode 100644 index fc3dba5c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/index.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createJSReanimatedModule","ReanimatedModule"],"sourceRoot":"../../../src","sources":["ReanimatedModule/index.web.ts"],"mappings":"AAAA,YAAY;;AACZ;AACA,SAASA,wBAAwB,QAAQ,iBAAiB;AAE1D,OAAO,MAAMC,gBAAgB,GAAGD,wBAAwB,CAAC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js deleted file mode 100644 index 1663fe8f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js +++ /dev/null @@ -1,244 +0,0 @@ -'use strict'; - -import { WorkletsModule } from 'react-native-worklets'; -import { IS_JEST, IS_WEB, IS_WINDOW_AVAILABLE, logger, ReanimatedError } from '../../common'; -import { SensorType } from '../../commonTypes'; -import { assertWorkletsVersion } from '../../platform-specific/workletsVersion'; -export function createJSReanimatedModule() { - return new JSReanimated(); -} -class JSReanimated { - /** - * We keep the instance of `WorkletsModule` here to keep correct coupling of - * the modules and initialization order. - */ - // eslint-disable-next-line no-unused-private-class-members - #workletsModule = WorkletsModule; - nextSensorId = 0; - sensors = new Map(); - platform = undefined; - constructor() { - if (__DEV__) { - assertWorkletsVersion(); - } - } - registerEventHandler(_eventHandler, _eventName, _emitterReactTag) { - throw new ReanimatedError('registerEventHandler is not available in JSReanimated.'); - } - unregisterEventHandler(_) { - throw new ReanimatedError('unregisterEventHandler is not available in JSReanimated.'); - } - configureLayoutAnimationBatch() { - // no-op - } - setShouldAnimateExitingForTag() { - // no-op - } - registerSensor(sensorType, interval, _iosReferenceFrame, eventHandler) { - if (!IS_WINDOW_AVAILABLE) { - // the window object is unavailable when building the server portion of a site that uses SSG - // this check is here to ensure that the server build won't fail - return -1; - } - if (this.platform === undefined) { - this.detectPlatform(); - } - if (!(this.getSensorName(sensorType) in window)) { - // https://w3c.github.io/sensors/#secure-context - logger.warn('Sensor is not available.' + (IS_WEB && location.protocol !== 'https:' ? ' Make sure you use secure origin with `npx expo start --web --https`.' : '') + (this.platform === Platform.WEB_IOS ? ' For iOS web, you will also have to also grant permission in the browser: https://dev.to/li/how-to-requestpermission-for-devicemotion-and-deviceorientation-events-in-ios-13-46g2.' : '')); - return -1; - } - if (this.platform === undefined) { - this.detectPlatform(); - } - const sensor = this.initializeSensor(sensorType, interval); - sensor.addEventListener('reading', this.getSensorCallback(sensor, sensorType, eventHandler)); - sensor.start(); - this.sensors.set(this.nextSensorId, sensor); - return this.nextSensorId++; - } - getSensorCallback = (sensor, sensorType, eventHandler) => { - switch (sensorType) { - case SensorType.ACCELEROMETER: - case SensorType.GRAVITY: - return () => { - let { - x, - y, - z - } = sensor; - - // Web Android sensors have a different coordinate system than iOS - if (this.platform === Platform.WEB_ANDROID) { - [x, y, z] = [-x, -y, -z]; - } - // TODO TYPESCRIPT on web SerializableRef is the value itself so we call it directly - eventHandler({ - x, - y, - z, - interfaceOrientation: 0 - }); - }; - case SensorType.GYROSCOPE: - case SensorType.MAGNETIC_FIELD: - return () => { - const { - x, - y, - z - } = sensor; - // TODO TYPESCRIPT on web SerializableRef is the value itself so we call it directly - eventHandler({ - x, - y, - z, - interfaceOrientation: 0 - }); - }; - case SensorType.ROTATION: - return () => { - const [qw, qx] = sensor.quaternion; - let [,, qy, qz] = sensor.quaternion; - - // Android sensors have a different coordinate system than iOS - if (this.platform === Platform.WEB_ANDROID) { - [qy, qz] = [qz, -qy]; - } - - // reference: https://stackoverflow.com/questions/5782658/extracting-yaw-from-a-quaternion - const yaw = -Math.atan2(2.0 * (qy * qz + qw * qx), qw * qw - qx * qx - qy * qy + qz * qz); - const pitch = Math.sin(-2.0 * (qx * qz - qw * qy)); - const roll = -Math.atan2(2.0 * (qx * qy + qw * qz), qw * qw + qx * qx - qy * qy - qz * qz); - // TODO TYPESCRIPT on web SerializableRef is the value itself so we call it directly - eventHandler({ - qw, - qx, - qy, - qz, - yaw, - pitch, - roll, - interfaceOrientation: 0 - }); - }; - } - }; - unregisterSensor(id) { - const sensor = this.sensors.get(id); - if (sensor !== undefined) { - sensor.stop(); - this.sensors.delete(id); - } - } - subscribeForKeyboardEvents(_) { - if (IS_WEB) { - logger.warn('useAnimatedKeyboard is not available on web yet.'); - } else if (IS_JEST) { - logger.warn('useAnimatedKeyboard is not available when using Jest.'); - } else { - logger.warn('useAnimatedKeyboard is not available on this configuration.'); - } - return -1; - } - unsubscribeFromKeyboardEvents(_) { - // noop - } - initializeSensor(sensorType, interval) { - const config = interval <= 0 ? { - referenceFrame: 'device' - } : { - frequency: 1000 / interval - }; - switch (sensorType) { - case SensorType.ACCELEROMETER: - return new window.Accelerometer(config); - case SensorType.GYROSCOPE: - return new window.Gyroscope(config); - case SensorType.GRAVITY: - return new window.GravitySensor(config); - case SensorType.MAGNETIC_FIELD: - return new window.Magnetometer(config); - case SensorType.ROTATION: - return new window.AbsoluteOrientationSensor(config); - } - } - getSensorName(sensorType) { - switch (sensorType) { - case SensorType.ACCELEROMETER: - return 'Accelerometer'; - case SensorType.GRAVITY: - return 'GravitySensor'; - case SensorType.GYROSCOPE: - return 'Gyroscope'; - case SensorType.MAGNETIC_FIELD: - return 'Magnetometer'; - case SensorType.ROTATION: - return 'AbsoluteOrientationSensor'; - } - } - detectPlatform() { - const userAgent = navigator.userAgent || navigator.vendor || window.opera; - if (userAgent === undefined) { - this.platform = Platform.UNKNOWN; - } else if (/iPad|iPhone|iPod/.test(userAgent)) { - this.platform = Platform.WEB_IOS; - } else if (/android/i.test(userAgent)) { - this.platform = Platform.WEB_ANDROID; - } else { - this.platform = Platform.WEB; - } - } - getViewProp(_viewTag, _propName, _component, _callback) { - throw new ReanimatedError('getViewProp is not available in JSReanimated.'); - } - getStaticFeatureFlag() { - // mock implementation - return false; - } - setDynamicFeatureFlag() { - // noop - } - setViewStyle(_viewTag, _style) { - throw new ReanimatedError('setViewStyle is not available in JSReanimated.'); - } - markNodeAsRemovable(_shadowNodeWrapper) { - throw new ReanimatedError('markNodeAsRemovable is not available in JSReanimated.'); - } - unmarkNodeAsRemovable(_viewTag) { - throw new ReanimatedError('unmarkNodeAsRemovable is not available in JSReanimated.'); - } - registerCSSKeyframes(_animationName, _viewName, _keyframesConfig) { - throw new ReanimatedError('`registerCSSKeyframes` is not available in JSReanimated.'); - } - unregisterCSSKeyframes(_animationName, _viewName) { - throw new ReanimatedError('`unregisterCSSKeyframes` is not available in JSReanimated.'); - } - applyCSSAnimations(_shadowNodeWrapper, _animationUpdates) { - throw new ReanimatedError('`applyCSSAnimations` is not available in JSReanimated.'); - } - unregisterCSSAnimations(_viewTag) { - throw new ReanimatedError('`unregisterCSSAnimations` is not available in JSReanimated.'); - } - registerCSSTransition(_shadowNodeWrapper, _transitionConfig) { - throw new ReanimatedError('`registerCSSTransition` is not available in JSReanimated.'); - } - updateCSSTransition(_viewTag, _settingsUpdates) { - throw new ReanimatedError('`updateCSSTransition` is not available in JSReanimated.'); - } - unregisterCSSTransition(_viewTag) { - throw new ReanimatedError('`unregisterCSSTransition` is not available in JSReanimated.'); - } -} - -// Lack of this export breaks TypeScript generation since -// an enum transpiles into JavaScript code. -/** @knipIgnore */ -export let Platform = /*#__PURE__*/function (Platform) { - Platform["WEB_IOS"] = "web iOS"; - Platform["WEB_ANDROID"] = "web Android"; - Platform["WEB"] = "web"; - Platform["UNKNOWN"] = "unknown"; - return Platform; -}({}); -//# sourceMappingURL=JSReanimated.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js.map deleted file mode 100644 index 40500c2f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["WorkletsModule","IS_JEST","IS_WEB","IS_WINDOW_AVAILABLE","logger","ReanimatedError","SensorType","assertWorkletsVersion","createJSReanimatedModule","JSReanimated","workletsModule","nextSensorId","sensors","Map","platform","undefined","constructor","__DEV__","registerEventHandler","_eventHandler","_eventName","_emitterReactTag","unregisterEventHandler","_","configureLayoutAnimationBatch","setShouldAnimateExitingForTag","registerSensor","sensorType","interval","_iosReferenceFrame","eventHandler","detectPlatform","getSensorName","window","warn","location","protocol","Platform","WEB_IOS","sensor","initializeSensor","addEventListener","getSensorCallback","start","set","ACCELEROMETER","GRAVITY","x","y","z","WEB_ANDROID","interfaceOrientation","GYROSCOPE","MAGNETIC_FIELD","ROTATION","qw","qx","quaternion","qy","qz","yaw","Math","atan2","pitch","sin","roll","unregisterSensor","id","get","stop","delete","subscribeForKeyboardEvents","unsubscribeFromKeyboardEvents","config","referenceFrame","frequency","Accelerometer","Gyroscope","GravitySensor","Magnetometer","AbsoluteOrientationSensor","userAgent","navigator","vendor","opera","UNKNOWN","test","WEB","getViewProp","_viewTag","_propName","_component","_callback","getStaticFeatureFlag","setDynamicFeatureFlag","setViewStyle","_style","markNodeAsRemovable","_shadowNodeWrapper","unmarkNodeAsRemovable","registerCSSKeyframes","_animationName","_viewName","_keyframesConfig","unregisterCSSKeyframes","applyCSSAnimations","_animationUpdates","unregisterCSSAnimations","registerCSSTransition","_transitionConfig","updateCSSTransition","_settingsUpdates","unregisterCSSTransition"],"sourceRoot":"../../../../src","sources":["ReanimatedModule/js-reanimated/JSReanimated.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,cAAc,QAAQ,uBAAuB;AAEtD,SACEC,OAAO,EACPC,MAAM,EACNC,mBAAmB,EACnBC,MAAM,EACNC,eAAe,QACV,cAAc;AAQrB,SAASC,UAAU,QAAQ,mBAAmB;AAM9C,SAASC,qBAAqB,QAAQ,yCAAyC;AAI/E,OAAO,SAASC,wBAAwBA,CAAA,EAAsB;EAC5D,OAAO,IAAIC,YAAY,CAAC,CAAC;AAC3B;AAEA,MAAMA,YAAY,CAA8B;EAC9C;AACF;AACA;AACA;EACE;EACA,CAACC,cAAc,GAAoBV,cAAc;EACjDW,YAAY,GAAG,CAAC;EAChBC,OAAO,GAAG,IAAIC,GAAG,CAAoB,CAAC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tBC,SAAiB,EACjBC,gBAAuD,EACjD;IACN,MAAM,IAAIlG,eAAe,CACvB,0DACF,CAAC;EACH;EAEAmG,sBAAsBA,CAACH,cAAsB,EAAEC,SAAiB,EAAQ;IACtE,MAAM,IAAIjG,eAAe,CACvB,4DACF,CAAC;EACH;EAEAoG,kBAAkBA,CAChBP,kBAAqC,EACrCQ,iBAAsC,EACtC;IACA,MAAM,IAAIrG,eAAe,CACvB,wDACF,CAAC;EACH;EAEAsG,uBAAuBA,CAAClB,QAAgB,EAAQ;IAC9C,MAAM,IAAIpF,eAAe,CACvB,6DACF,CAAC;EACH;EAEAuG,qBAAqBA,CACnBV,kBAAqC,EACrCW,iBAAgD,EAC1C;IACN,MAAM,IAAIxG,eAAe,CACvB,2DACF,CAAC;EACH;EAEAyG,mBAAmBA,CACjBrB,QAAgB,EAChBsB,gBAAwD,EAClD;IACN,MAAM,IAAI1G,eAAe,CACvB,yDACF,CAAC;EACH;EAEA2G,uBAAuBA,CAACvB,QAAgB,EAAQ;IAC9C,MAAM,IAAIpF,eAAe,CACvB,6DACF,CAAC;EACH;AACF;;AAEA;AACA;AACA;AACA,WAAYgC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/WebSensor.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/WebSensor.js deleted file mode 100644 index 27ccd055..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/WebSensor.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -//# sourceMappingURL=WebSensor.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/WebSensor.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/WebSensor.js.map deleted file mode 100644 index a4b46f26..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/WebSensor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ReanimatedModule/js-reanimated/WebSensor.ts"],"mappings":"AAAA,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/index.js deleted file mode 100644 index 4ea519d3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/index.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -import { logger } from '../../common'; -import { createReactDOMStyle, createTextShadowValue, createTransformValue } from './webUtils'; -export { createJSReanimatedModule } from './JSReanimated'; -// TODO: Move these functions outside of index file. -export const _updatePropsJS = (updates, viewRef, isAnimatedProps) => { - if (viewRef) { - const component = viewRef.getAnimatableRef ? viewRef.getAnimatableRef() : viewRef; - const [rawStyles] = Object.keys(updates).reduce((acc, key) => { - const value = updates[key]; - const index = typeof value === 'function' ? 1 : 0; - acc[index][key] = value; - return acc; - }, [{}, {}]); - if (typeof component.setNativeProps === 'function') { - // This is the legacy way to update props on React Native Web <= 0.18. - // Also, some components (e.g. from react-native-svg) don't have styles - // and always provide setNativeProps function instead (even on React Native Web 0.19+). - setNativeProps(component, rawStyles, isAnimatedProps); - } else if (createReactDOMStyle !== undefined && component.style !== undefined) { - // React Native Web 0.19+ no longer provides setNativeProps function, - // so we need to update DOM nodes directly. - updatePropsDOM(component, rawStyles, isAnimatedProps); - } else if (Object.keys(component.props).length > 0) { - Object.keys(component.props).forEach(key => { - if (!rawStyles[key]) { - return; - } - const dashedKey = key.replace(/[A-Z]/g, m => '-' + m.toLowerCase()); - component._touchableNode.setAttribute(dashedKey, rawStyles[key]); - }); - } else { - const componentName = 'className' in component ? component?.className : ''; - logger.warn(`It's not possible to manipulate the component ${componentName}`); - } - } -}; -const setNativeProps = (component, newProps, isAnimatedProps) => { - if (isAnimatedProps) { - // Only update UI props directly on the component, - // other props can be updated as standard style props. - component.setNativeProps?.(newProps); - } - const previousStyle = component.previousStyle ? component.previousStyle : {}; - const currentStyle = { - ...previousStyle, - ...newProps - }; - component.previousStyle = currentStyle; - component.setNativeProps?.({ - style: currentStyle - }); -}; -const updatePropsDOM = (component, style, isAnimatedProps) => { - const previousStyle = component.previousStyle ? component.previousStyle : {}; - const currentStyle = { - ...previousStyle, - ...style - }; - component.previousStyle = currentStyle; - const domStyle = createReactDOMStyle(currentStyle); - if (Array.isArray(domStyle.transform) && createTransformValue !== undefined) { - domStyle.transform = createTransformValue(domStyle.transform); - } - if (createTextShadowValue !== undefined && (domStyle.textShadowColor || domStyle.textShadowRadius || domStyle.textShadowOffset)) { - domStyle.textShadow = createTextShadowValue({ - textShadowColor: domStyle.textShadowColor, - textShadowOffset: domStyle.textShadowOffset, - textShadowRadius: domStyle.textShadowRadius - }); - } - for (const key in domStyle) { - if (isAnimatedProps) { - // We need to explicitly set the 'text' property on input component because React Native's - // internal _valueTracker (https://github.com/facebook/react/blob/main/packages/react-dom-bindings/src/client/inputValueTracking.js) - // prevents updates when only modifying attributes. - if (component.nodeName === 'INPUT' && key === 'text') { - component.value = domStyle[key]; - } else { - component.setAttribute(key, domStyle[key]); - } - } else { - component.style[key] = domStyle[key]; - } - } -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/index.js.map deleted file mode 100644 index efaac096..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","createReactDOMStyle","createTextShadowValue","createTransformValue","createJSReanimatedModule","_updatePropsJS","updates","viewRef","isAnimatedProps","component","getAnimatableRef","rawStyles","Object","keys","reduce","acc","key","value","index","setNativeProps","undefined","style","updatePropsDOM","props","length","forEach","dashedKey","replace","m","toLowerCase","_touchableNode","setAttribute","componentName","className","warn","newProps","previousStyle","currentStyle","domStyle","Array","isArray","transform","textShadowColor","textShadowRadius","textShadowOffset","textShadow","nodeName"],"sourceRoot":"../../../../src","sources":["ReanimatedModule/js-reanimated/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,cAAc;AAGrC,SACEC,mBAAmB,EACnBC,qBAAqB,EACrBC,oBAAoB,QACf,YAAY;AAEnB,SAASC,wBAAwB,QAAQ,gBAAgB;AAwBzD;AACA,OAAO,MAAMC,cAAc,GAAGA,CAC5BC,OAAoB,EACpBC,OAEC,EACDC,eAAyB,KAChB;EACT,IAAID,OAAO,EAAE;IACX,MAAME,SAAS,GAAGF,OAAO,CAACG,gBAAgB,GACtCH,OAAO,CAACG,gBAAgB,CAAC,CAAC,GAC1BH,OAAO;IACX,MAAM,CAACI,SAAS,CAAC,GAAGC,MAAM,CAACC,IAAI,CAACP,OAAO,CAAC,CAACQ,MAAM,CAC7C,CAACC,GAAqC,EAAEC,GAAG,KAAK;MAC9C,MAAMC,KAAK,GAAGX,OAAO,CAACU,GAAG,CAAC;MAC1B,MAAME,KAAK,GAAG,OAAOD,KAAK,KAAK,UAAU,GAAG,CAAC,GAAG,CAAC;MACjDF,GAAG,CAACG,KAAK,CAAC,CAACF,GAAG,CAAC,GAAGC,KAAK;MACvB,OAAOF,GAAG;IACZ,CAAC,EACD,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CACT,CAAC;IAED,IAAI,OAAON,SAAS,CAACU,cAAc,KAAK,UAAU,EAAE;MAClD;MACA;MACA;MACAA,cAAc,CAACV,SAAS,EAAEE,SAAS,EAAEH,eAAe,CAAC;IACvD,CAAC,MAAM,IACLP,mBAAmB,KAAKmB,SAAS,IACj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CAACY,KAAK,CAAgBL,GAAG,CAAC,GAAGsB,QAAQ,CAACtB,GAAG,CAAC;IACtD;EACF;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/react-native-web.d.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/react-native-web.d.js deleted file mode 100644 index afd5b733..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/react-native-web.d.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -//# sourceMappingURL=react-native-web.d.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/react-native-web.d.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/react-native-web.d.js.map deleted file mode 100644 index b5607edd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/react-native-web.d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["ReanimatedModule/js-reanimated/react-native-web.d.ts"],"mappings":"AAAA,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.js deleted file mode 100644 index dec6a1b8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export let createReactDOMStyle; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export let createTransformValue; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export let createTextShadowValue; -//# sourceMappingURL=webUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.js.map deleted file mode 100644 index 40f6c724..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createReactDOMStyle","createTransformValue","createTextShadowValue"],"sourceRoot":"../../../../src","sources":["ReanimatedModule/js-reanimated/webUtils.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA,OAAO,IAAIA,mBAAwC;AACnD;AACA,OAAO,IAAIC,oBAA6C;AACxD;AACA,OAAO,IAAIC,qBAAoD","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.web.js deleted file mode 100644 index 289ac7c6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.web.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export let createReactDOMStyle; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export let createTransformValue; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export let createTextShadowValue; -try { - createReactDOMStyle = - // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports - require('react-native-web/dist/exports/StyleSheet/compiler/createReactDOMStyle').default; -} catch (_e) {} -try { - // React Native Web 0.19+ - createTransformValue = - // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports - require('react-native-web/dist/exports/StyleSheet/preprocess').createTransformValue; -} catch (_e) {} -try { - createTextShadowValue = - // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-require-imports - require('react-native-web/dist/exports/StyleSheet/preprocess').createTextShadowValue; -} catch (_e) {} -//# sourceMappingURL=webUtils.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.web.js.map deleted file mode 100644 index 1a91e25e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/js-reanimated/webUtils.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createReactDOMStyle","createTransformValue","createTextShadowValue","require","default","_e"],"sourceRoot":"../../../../src","sources":["ReanimatedModule/js-reanimated/webUtils.web.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA,OAAO,IAAIA,mBAAwC;AACnD;AACA,OAAO,IAAIC,oBAA6C;AACxD;AACA,OAAO,IAAIC,qBAAoD;AAE/D,IAAI;EACFF,mBAAmB;EACjB;EACAG,OAAO,CAAC,uEAAuE,CAAC,CAACC,OAAO;AAC5F,CAAC,CAAC,OAAOC,EAAE,EAAE,CAAC;AAEd,IAAI;EACF;EACAJ,oBAAoB;EAClB;EACAE,OAAO,CAAC,qDAAqD,CAAC,CAACF,oBAAoB;AACvF,CAAC,CAAC,OAAOI,EAAE,EAAE,CAAC;AAEd,IAAI;EACFH,qBAAqB;EACnB;EACAC,OAAO,CAAC,qDAAqD,CAAC,CAACD,qBAAqB;AACxF,CAAC,CAAC,OAAOG,EAAE,EAAE,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.js deleted file mode 100644 index 5360396f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -import { SHOULD_BE_USE_WEB } from '../common'; -import { createJSReanimatedModule } from './js-reanimated'; -import { createNativeReanimatedModule } from './NativeReanimated'; -export const ReanimatedModule = SHOULD_BE_USE_WEB ? createJSReanimatedModule() : createNativeReanimatedModule(); -//# sourceMappingURL=reanimatedModuleInstance.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.js.map deleted file mode 100644 index 6cfd4083..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SHOULD_BE_USE_WEB","createJSReanimatedModule","createNativeReanimatedModule","ReanimatedModule"],"sourceRoot":"../../../src","sources":["ReanimatedModule/reanimatedModuleInstance.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,iBAAiB,QAAQ,WAAW;AAC7C,SAASC,wBAAwB,QAAQ,iBAAiB;AAC1D,SAASC,4BAA4B,QAAQ,oBAAoB;AAEjE,OAAO,MAAMC,gBAAgB,GAAGH,iBAAiB,GAC7CC,wBAAwB,CAAC,CAAC,GAC1BC,4BAA4B,CAAC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js deleted file mode 100644 index 8b9e7e85..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -import { createJSReanimatedModule } from './js-reanimated'; -export const ReanimatedModule = createJSReanimatedModule(); -//# sourceMappingURL=reanimatedModuleInstance.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js.map deleted file mode 100644 index 84d41e10..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createJSReanimatedModule","ReanimatedModule"],"sourceRoot":"../../../src","sources":["ReanimatedModule/reanimatedModuleInstance.web.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,wBAAwB,QAAQ,iBAAiB;AAE1D,OAAO,MAAMC,gBAAgB,GAAGD,wBAAwB,CAAC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleProxy.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleProxy.js deleted file mode 100644 index d15ab0ad..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleProxy.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=reanimatedModuleProxy.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleProxy.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleProxy.js.map deleted file mode 100644 index 6a511526..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReanimatedModule/reanimatedModuleProxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["ReanimatedModule/reanimatedModuleProxy.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReducedMotion.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReducedMotion.js deleted file mode 100644 index a99fc2ce..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReducedMotion.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -import { IS_WEB, IS_WINDOW_AVAILABLE } from './common'; -import { makeMutable } from './mutables'; -export function isReducedMotionEnabledInSystem() { - return IS_WEB ? IS_WINDOW_AVAILABLE ? - // @ts-ignore Fallback if `window` is undefined. - window.matchMedia('(prefers-reduced-motion: reduce)').matches : false : !!global._REANIMATED_IS_REDUCED_MOTION; -} -const IS_REDUCED_MOTION_ENABLED_IN_SYSTEM = isReducedMotionEnabledInSystem(); -export const ReducedMotionManager = { - jsValue: IS_REDUCED_MOTION_ENABLED_IN_SYSTEM, - uiValue: makeMutable(IS_REDUCED_MOTION_ENABLED_IN_SYSTEM), - setEnabled(value) { - ReducedMotionManager.jsValue = value; - ReducedMotionManager.uiValue.value = value; - } -}; -//# sourceMappingURL=ReducedMotion.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReducedMotion.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ReducedMotion.js.map deleted file mode 100644 index bd9f0e3e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ReducedMotion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_WEB","IS_WINDOW_AVAILABLE","makeMutable","isReducedMotionEnabledInSystem","window","matchMedia","matches","global","_REANIMATED_IS_REDUCED_MOTION","IS_REDUCED_MOTION_ENABLED_IN_SYSTEM","ReducedMotionManager","jsValue","uiValue","setEnabled","value"],"sourceRoot":"../../src","sources":["ReducedMotion.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,EAAEC,mBAAmB,QAAQ,UAAU;AACtD,SAASC,WAAW,QAAQ,YAAY;AAIxC,OAAO,SAASC,8BAA8BA,CAAA,EAAG;EAC/C,OAAOH,MAAM,GACTC,mBAAmB;EACjB;EACAG,MAAM,CAACC,UAAU,CAAC,kCAAkC,CAAC,CAACC,OAAO,GAC7D,KAAK,GACP,CAAC,CAAEC,MAAM,CAAiBC,6BAA6B;AAC7D;AAEA,MAAMC,mCAAmC,GAAGN,8BAA8B,CAAC,CAAC;AAE5E,OAAO,MAAMO,oBAAoB,GAAG;EAClCC,OAAO,EAAEF,mCAAmC;EAC5CG,OAAO,EAAEV,WAAW,CAACO,mCAAmC,CAAC;EACzDI,UAAUA,CAACC,KAAc,EAAE;IACzBJ,oBAAoB,CAACC,OAAO,GAAGG,KAAK;IACpCJ,oBAAoB,CAACE,OAAO,CAACE,KAAK,GAAGA,KAAK;EAC5C;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Sensor.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/Sensor.js deleted file mode 100644 index 606e2f21..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Sensor.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -import { SensorType } from './commonTypes'; -import { makeMutable } from './mutables'; -import { ReanimatedModule } from './ReanimatedModule'; -function initSensorData(sensorType) { - if (sensorType === SensorType.ROTATION) { - return makeMutable({ - qw: 0, - qx: 0, - qy: 0, - qz: 0, - yaw: 0, - pitch: 0, - roll: 0, - interfaceOrientation: 0 - }); - } else { - return makeMutable({ - x: 0, - y: 0, - z: 0, - interfaceOrientation: 0 - }); - } -} -export default class Sensor { - listenersNumber = 0; - sensorId = null; - constructor(sensorType, config) { - this.sensorType = sensorType; - this.config = config; - this.data = initSensorData(sensorType); - } - register(eventHandler) { - const config = this.config; - const sensorType = this.sensorType; - this.sensorId = ReanimatedModule.registerSensor(sensorType, config.interval === 'auto' ? -1 : config.interval, config.iosReferenceFrame, eventHandler); - return this.sensorId !== -1; - } - isRunning() { - return this.sensorId !== -1 && this.sensorId !== null; - } - isAvailable() { - return this.sensorId !== -1; - } - getSharedValue() { - return this.data; - } - unregister() { - if (this.sensorId !== null && this.sensorId !== -1) { - ReanimatedModule.unregisterSensor(this.sensorId); - } - this.sensorId = null; - } -} -//# sourceMappingURL=Sensor.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/Sensor.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/Sensor.js.map deleted file mode 100644 index c0b39f90..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/Sensor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SensorType","makeMutable","ReanimatedModule","initSensorData","sensorType","ROTATION","qw","qx","qy","qz","yaw","pitch","roll","interfaceOrientation","x","y","z","Sensor","listenersNumber","sensorId","constructor","config","data","register","eventHandler","registerSensor","interval","iosReferenceFrame","isRunning","isAvailable","getSharedValue","unregister","unregisterSensor"],"sourceRoot":"../../src","sources":["Sensor.ts"],"mappings":"AAAA,YAAY;;AASZ,SAASA,UAAU,QAAQ,eAAe;AAC1C,SAASC,WAAW,QAAQ,YAAY;AACxC,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,SAASC,cAAcA,CACrBC,UAAsB,EACgB;EACtC,IAAIA,UAAU,KAAKJ,UAAU,CAACK,QAAQ,EAAE;IACtC,OAAOJ,WAAW,CAA0B;MAC1CK,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,EAAE,EAAE,CAAC;MACLC,GAAG,EAAE,CAAC;MACNC,KAAK,EAAE,CAAC;MACRC,IAAI,EAAE,CAAC;MACPC,oBAAoB,EAAE;IACxB,CAAC,CAAC;EACJ,CAAC,MAAM;IACL,OAAOZ,WAAW,CAA0B;MAC1Ca,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJC,CAAC,EAAE,CAAC;MACJH,oBAAoB,EAAE;IACxB,CAAC,CAAC;EACJ;AACF;AAEA,eAAe,MAAMI,MAAM,CAAC;EACnBC,eAAe,GAAG,CAAC;EAClBC,QAAQ,GAAkB,IAAI;EAKtCC,WAAWA,CAAChB,UAAsB,EAAEiB,MAAoB,EAAE;IACxD,IAAI,CAACjB,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACiB,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,IAAI,GAAGnB,cAAc,CAACC,UAAU,CAAC;EACxC;EAEAmB,QAAQA,CACNC,YAAsE,EACtE;IACA,MAAMH,MAAM,GAAG,IAAI,CAACA,MAAM;IAC1B,MAAMjB,UAAU,GAAG,IAAI,CAACA,UAAU;IAClC,IAAI,CAACe,QAAQ,GAAGjB,gBAAgB,CAACuB,cAAc,CAC7CrB,UAAU,EACViB,MAAM,CAACK,QAAQ,KAAK,MAAM,GAAG,CAAC,CAAC,GAAGL,MAAM,CAACK,QAAQ,EACjDL,MAAM,CAACM,iBAAiB,EACxBH,YACF,CAAC;IACD,OAAO,IAAI,CAACL,QAAQ,KAAK,CAAC,CAAC;EAC7B;EAEAS,SAASA,CAAA,EAAG;IACV,OAAO,IAAI,CAACT,QAAQ,KAAK,CAAC,CAAC,IAAI,IAAI,CAACA,QAAQ,KAAK,IAAI;EACvD;EAEAU,WAAWA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACV,QAAQ,KAAK,CAAC,CAAC;EAC7B;EAEAW,cAAcA,CAAA,EAAG;IACf,OAAO,IAAI,CAACR,IAAI;EAClB;EAEAS,UAAUA,CAAA,EAAG;IACX,IAAI,IAAI,CAACZ,QAAQ,KAAK,IAAI,IAAI,IAAI,CAACA,QAAQ,KAAK,CAAC,CAAC,EAAE;MAClDjB,gBAAgB,CAAC8B,gBAAgB,CAAC,IAAI,CAACb,QAAQ,CAAC;IAClD;IACA,IAAI,CAACA,QAAQ,GAAG,IAAI;EACtB;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/SensorContainer.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/SensorContainer.js deleted file mode 100644 index 851d0d15..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/SensorContainer.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -import Sensor from './Sensor'; -export class SensorContainer { - nativeSensors = new Map(); - getSensorId(sensorType, config) { - return sensorType * 100 + config.iosReferenceFrame * 10 + Number(config.adjustToInterfaceOrientation); - } - initializeSensor(sensorType, config) { - const sensorId = this.getSensorId(sensorType, config); - if (!this.nativeSensors.has(sensorId)) { - const newSensor = new Sensor(sensorType, config); - this.nativeSensors.set(sensorId, newSensor); - } - const sensor = this.nativeSensors.get(sensorId); - return sensor.getSharedValue(); - } - registerSensor(sensorType, config, handler) { - const sensorId = this.getSensorId(sensorType, config); - if (!this.nativeSensors.has(sensorId)) { - return -1; - } - const sensor = this.nativeSensors.get(sensorId); - if (sensor && sensor.isAvailable() && (sensor.isRunning() || sensor.register(handler))) { - sensor.listenersNumber++; - return sensorId; - } - return -1; - } - unregisterSensor(sensorId) { - if (this.nativeSensors.has(sensorId)) { - const sensor = this.nativeSensors.get(sensorId); - if (sensor && sensor.isRunning()) { - sensor.listenersNumber--; - if (sensor.listenersNumber === 0) { - sensor.unregister(); - } - } - } - } -} -//# sourceMappingURL=SensorContainer.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/SensorContainer.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/SensorContainer.js.map deleted file mode 100644 index 91f1187b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/SensorContainer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Sensor","SensorContainer","nativeSensors","Map","getSensorId","sensorType","config","iosReferenceFrame","Number","adjustToInterfaceOrientation","initializeSensor","sensorId","has","newSensor","set","sensor","get","getSharedValue","registerSensor","handler","isAvailable","isRunning","register","listenersNumber","unregisterSensor","unregister"],"sourceRoot":"../../src","sources":["SensorContainer.ts"],"mappings":"AAAA,YAAY;;AAUZ,OAAOA,MAAM,MAAM,UAAU;AAE7B,OAAO,MAAMC,eAAe,CAAC;EACnBC,aAAa,GAAwB,IAAIC,GAAG,CAAC,CAAC;EAEtDC,WAAWA,CAACC,UAAsB,EAAEC,MAAoB,EAAE;IACxD,OACED,UAAU,GAAG,GAAG,GAChBC,MAAM,CAACC,iBAAiB,GAAG,EAAE,GAC7BC,MAAM,CAACF,MAAM,CAACG,4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AII,MAAM,IAAIA,MAAM,CAACM,SAAS,CAAC,CAAC,EAAE;QAChCN,MAAM,CAACQ,eAAe,EAAE;QACxB,IAAIR,MAAM,CAACQ,eAAe,KAAK,CAAC,EAAE;UAChCR,MAAM,CAACU,UAAU,CAAC,CAAC;QACrB;MACF;IACF;EACF;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/UpdateLayoutAnimations.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/UpdateLayoutAnimations.js deleted file mode 100644 index 52bcc8c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/UpdateLayoutAnimations.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -import { createSerializable } from 'react-native-worklets'; -import { SHOULD_BE_USE_WEB } from './common'; -import { configureLayoutAnimationBatch } from './core'; -function createUpdateManager() { - const animations = []; - // When a stack is rerendered we reconfigure all the shared elements. - // To do that we want them to appear in our batch in the correct order, - // so we defer some of the updates to appear at the end of the batch. - const deferredAnimations = []; - return { - update(batchItem, isUnmounting) { - if (isUnmounting) { - deferredAnimations.push(batchItem); - } else { - animations.push(batchItem); - } - if (animations.length + deferredAnimations.length === 1) { - this.flush(); - } - }, - flush() { - configureLayoutAnimationBatch(animations.concat(deferredAnimations)); - animations.length = 0; - deferredAnimations.length = 0; - } - }; -} - -/** - * Lets you update the current configuration of the layout animation or shared - * element transition for a given component. Configurations are batched and - * applied at the end of the current execution block, right before sending the - * response back to native. - * - * @param viewTag - The tag of the component you'd like to configure. - * @param type - The type of the animation you'd like to configure - - * {@link LayoutAnimationType}. - * @param config - The animation configuration - {@link LayoutAnimationFunction} - * or {@link Keyframe}. Passing `undefined` will remove the animation. - * @param isUnmounting - Determines whether the configuration should be included - * at the end of the batch, after all the non-deferred configurations (even - * those that were updated later). This is used to retain the correct ordering - * of shared elements. Defaults to `false`. - */ -export let updateLayoutAnimations; -if (SHOULD_BE_USE_WEB) { - updateLayoutAnimations = () => { - // no-op - }; -} else { - const updateLayoutAnimationsManager = createUpdateManager(); - updateLayoutAnimations = (viewTag, type, config, isUnmounting) => updateLayoutAnimationsManager.update({ - viewTag, - type, - config: config ? createSerializable(config) : undefined - }, isUnmounting); -} -//# sourceMappingURL=UpdateLayoutAnimations.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/UpdateLayoutAnimations.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/UpdateLayoutAnimations.js.map deleted file mode 100644 index 08e8f6c0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/UpdateLayoutAnimations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createSerializable","SHOULD_BE_USE_WEB","configureLayoutAnimationBatch","createUpdateManager","animations","deferredAnimations","update","batchItem","isUnmounting","push","length","flush","concat","updateLayoutAnimations","updateLayoutAnimationsManager","viewTag","type","config","undefined"],"sourceRoot":"../../src","sources":["UpdateLayoutAnimations.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,kBAAkB,QAAQ,uBAAuB;AAE1D,SAASC,iBAAiB,QAAQ,UAAU;AAM5C,SAASC,6BAA6B,QAAQ,QAAQ;AAEtD,SAASC,mBAAmBA,CAAA,EAAG;EAC7B,MAAMC,UAAsC,GAAG,EAAE;EACjD;EACA;EACA;EACA,MAAMC,kBAA8C,GAAG,EAAE;EAEzD,OAAO;IACLC,MAAMA,CAACC,SAAmC,EAAEC,YAAsB,EAAE;MAClE,IAAIA,YAAY,EAAE;QAChBH,kBAAkB,CAACI,IAAI,CAACF,SAAS,CAAC;MACpC,CAAC,MAAM;QACLH,UAAU,CAACK,IAAI,CAACF,SAAS,CAAC;MAC5B;MACA,IAAIH,UAAU,CAACM,MAAM,GAAGL,kBAAkB,CAACK,MAAM,KAAK,CAAC,EAAE;QACvD,IAAI,CAACC,KAAK,CAAC,CAAC;MACd;IACF,CAAC;IACDA,KAAKA,CAAA,EAAa;MAChBT,6BAA6B,CAACE,UAAU,CAACQ,MAAM,CAACP,kBAAkB,CAAC,CAAC;MACpED,UAAU,CAACM,MAAM,GAAG,CAAC;MACrBL,kBAAkB,CAACK,MAAM,GAAG,CAAC;IAC/B;EACF,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAIG,sBAKF;AAET,IAAIZ,iBAAiB,EAAE;EACrBY,sBAAsB,GAAGA,CAAA,KAAM;IAC7B;EAAA,CACD;AACH,CAAC,MAAM;EACL,MAAMC,6BAA6B,GAAGX,mBAAmB,CAAC,CAAC;EAC3DU,sBAAsB,GAAGA,CAACE,OAAO,EAAEC,IAAI,EAAEC,MAAM,EAAET,YAAY,KAC3DM,6BAA6B,CAACR,MAAM,CAClC;IACES,OAAO;IACPC,IAAI;IACJC,MAAM,EAAEA,MAAM,GAAGjB,kBAAkB,CAACiB,MAAM,CAAC,GAAGC;EAChD,CAAC,EACDV,YACF,CAAC;AACL","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ViewDescriptorsSet.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/ViewDescriptorsSet.js deleted file mode 100644 index 885887f1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ViewDescriptorsSet.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -import { makeMutable } from './core'; -export function makeViewDescriptorsSet() { - const shareableViewDescriptors = makeMutable([]); - const viewTags = new Set(); - const data = { - shareableViewDescriptors, - add: (item, updaterContainer) => { - viewTags.add(item.tag); - const updater = updaterContainer?.current; - shareableViewDescriptors.modify(descriptors => { - 'worklet'; - - const index = descriptors.findIndex(descriptor => descriptor.tag === item.tag); - if (index !== -1) { - descriptors[index] = item; - } else { - descriptors.push(item); - } - updater?.(true); - return descriptors; - }, false); - }, - remove: viewTag => { - viewTags.delete(viewTag); - shareableViewDescriptors.modify(descriptors => { - 'worklet'; - - const index = descriptors.findIndex(descriptor => descriptor.tag === viewTag); - if (index !== -1) { - descriptors.splice(index, 1); - } - return descriptors; - }, false); - }, - has: viewTag => viewTags.has(viewTag) - }; - return data; -} -//# sourceMappingURL=ViewDescriptorsSet.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/ViewDescriptorsSet.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/ViewDescriptorsSet.js.map deleted file mode 100644 index d274e13b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/ViewDescriptorsSet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["makeMutable","makeViewDescriptorsSet","shareableViewDescriptors","viewTags","Set","data","add","item","updaterContainer","tag","updater","current","modify","descriptors","index","findIndex","descriptor","push","remove","viewTag","delete","splice","has"],"sourceRoot":"../../src","sources":["ViewDescriptorsSet.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,WAAW,QAAQ,QAAQ;AAUpC,OAAO,SAASC,sBAAsBA,CAAA,EAAuB;EAC3D,MAAMC,wBAAwB,GAAGF,WAAW,CAAe,EAAE,CAAC;EAC9D,MAAMG,QAAQ,GAAG,IAAIC,GAAG,CAAS,CAAC;EAElC,MAAMC,IAAwB,GAAG;IAC/BH,wBAAwB;IACxBI,GAAG,EAAEA,CAACC,IAAgB,EAAEC,gBAAwC,KAAK;MACnEL,QAAQ,CAACG,GAAG,CAACC,IAAI,CAACE,GAAa,CAAC;MAChC,MAAMC,OAAO,GAAGF,gBAAgB,EAAEG,OAAO;MACzCT,wBAAwB,CAACU,MAAM,CAAEC,WAAW,IAAK;QAC/C,SAAS;;QACT,MAAMC,KAAK,GAAGD,WAAW,CAACE,SAAS,CAChCC,UAAU,IAAKA,UAAU,CAACP,GAAG,KAAKF,IAAI,CAACE,GAC1C,CAAC;QACD,IAAIK,KAAK,KAAK,CAAC,CAAC,EAAE;UAChBD,WAAW,CAACC,KAAK,CAAC,GAAGP,IAAI;QAC3B,CAAC,MAAM;UACLM,WAAW,CAACI,IAAI,CAACV,IAAI,CAAC;QACxB;QACAG,OAAO,GAAG,IAAI,CAAC;QACf,OAAOG,WAAW;MACpB,CAAC,EAAE,KAAK,CAAC;IACX,CAAC;IAEDK,MAAM,EAAGC,OAAe,IAAK;MAC3BhB,QAAQ,CAACiB,MAAM,CAACD,OAAO,CAAC;MACxBjB,wBAAwB,CAACU,MAAM,CAAEC,WAAW,IAAK;QAC/C,SAAS;;QACT,MAAMC,KAAK,GAAGD,WAAW,CAACE,SAAS,CAChCC,UAAU,IAAKA,UAAU,CAACP,GAAG,KAAKU,OACrC,CAAC;QACD,IAAIL,KAAK,KAAK,CAAC,CAAC,EAAE;UAChBD,WAAW,CAACQ,MAAM,CAACP,KAAK,EAAE,CAAC,CAAC;QAC9B;QACA,OAAOD,WAAW;MACpB,CAAC,EAAE,KAAK,CAAC;IACX,CAAC;IAEDS,GAAG,EAAGH,OAAe,IAAKhB,QAAQ,CAACmB,GAAG,CAACH,OAAO;EAChD,CAAC;EAED,OAAOd,IAAI;AACb","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/WorkletEventHandler.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/WorkletEventHandler.js deleted file mode 100644 index 2dc439a6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/WorkletEventHandler.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -import { SHOULD_BE_USE_WEB } from './common'; -import { registerEventHandler, unregisterEventHandler } from './core'; -// In JS implementation (e.g. for web) we don't use Reanimated's -// event emitter, therefore we have to handle here -// the event that came from React Native and convert it. -function jsListener(eventName, handler) { - return evt => { - handler({ - ...evt.nativeEvent, - eventName - }); - }; -} -class WorkletEventHandlerNative { - #viewTags; - #registrations; // keys are viewTags, values are arrays of registration ID's for each viewTag - constructor(worklet, eventNames) { - this.worklet = worklet; - this.eventNames = eventNames; - this.#viewTags = new Set(); - this.#registrations = new Map(); - } - updateEventHandler(newWorklet, newEvents) { - // Update worklet and event names - this.worklet = newWorklet; - this.eventNames = newEvents; - - // Detach all events - this.#registrations.forEach(registrationIDs => { - registrationIDs.forEach(id => unregisterEventHandler(id)); - // No need to remove registrationIDs from map, since it gets overwritten when attaching - }); - - // Attach new events with new worklet - Array.from(this.#viewTags).forEach(tag => { - const newRegistrations = this.eventNames.map(eventName => registerEventHandler(this.worklet, eventName, tag)); - this.#registrations.set(tag, newRegistrations); - }); - } - registerForEvents(viewTag, fallbackEventName) { - this.#viewTags.add(viewTag); - const newRegistrations = this.eventNames.map(eventName => registerEventHandler(this.worklet, eventName, viewTag)); - this.#registrations.set(viewTag, newRegistrations); - if (this.eventNames.length === 0 && fallbackEventName) { - const newRegistration = registerEventHandler(this.worklet, fallbackEventName, viewTag); - this.#registrations.set(viewTag, [newRegistration]); - } - } - unregisterFromEvents(viewTag) { - this.#viewTags.delete(viewTag); - this.#registrations.get(viewTag)?.forEach(id => { - unregisterEventHandler(id); - }); - this.#registrations.delete(viewTag); - } -} -class WorkletEventHandlerWeb { - constructor(worklet, eventNames = []) { - this.worklet = worklet; - this.eventNames = eventNames; - this.listeners = {}; - this.setupWebListeners(); - } - setupWebListeners() { - this.listeners = {}; - this.eventNames.forEach(eventName => { - this.listeners[eventName] = jsListener(eventName, this.worklet); - }); - } - updateEventHandler(newWorklet, newEvents) { - // Update worklet and event names - this.worklet = newWorklet; - this.eventNames = newEvents; - this.setupWebListeners(); - } - registerForEvents(_viewTag, _fallbackEventName) { - // noop - } - unregisterFromEvents(_viewTag) { - // noop - } -} -export const WorkletEventHandler = SHOULD_BE_USE_WEB ? WorkletEventHandlerWeb : WorkletEventHandlerNative; -//# sourceMappingURL=WorkletEventHandler.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/WorkletEventHandler.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/WorkletEventHandler.js.map deleted file mode 100644 index 32c606bf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/WorkletEventHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SHOULD_BE_USE_WEB","registerEventHandler","unregisterEventHandler","jsListener","eventName","handler","evt","nativeEvent","WorkletEventHandlerNative","viewTags","registrations","constructor","worklet","eventNames","Set","Map","updateEventHandler","newWorklet","newEvents","forEach","registrationIDs","id","Array","from","tag","newRegistrations","map","set","registerForEvents","viewTag","fallbackEventName","add","length","newRegistration","unregisterFromEvents","delete","get","WorkletEventHandlerWeb","listeners","setupWebListeners","_viewTag","_fallbackEventName","WorkletEventHandler"],"sourceRoot":"../../src","sources":["WorkletEventHandler.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,oBAAoB,EAAEC,sBAAsB,QAAQ,QAAQ;AASrE;AACA;AACA;AACA,SAASC,UAAUA,CACjBC,SAAiB,EACjBC,OAAgD,EAChD;EACA,OAAQC,GAAmB,IAAK;IAC9BD,OAAO,CAAC;MAAE,GAAGC,GAAG,CAACC,WAAW;MAAEH;IAAU,CAA2B,CAAC;EACtE,CAAC;AACH;AAEA,MAAMI,yBAAyB,CAE/B;EAGE,CAACC,QAAQ;EACT,CAACC,aAAa,CAAwB,CAAC;EACvCC,WAAWA,CACTC,OAAgD,EAChDC,UAAoB,EACpB;IACA,IAAI,CAACD,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAAC,CAACJ,QAAQ,GAAG,IAAIK,GAAG,CAAS,CAAC;IAClC,IAAI,CAAC,CAACJ,aAAa,GAAG,IAAIK,GAAG,CAAmB,CAAC;EACnD;EAEAC,kBAAkBA,CAChBC,UAAmD,EACnDC,SAAmB,EACb;IACN;IACA,IAAI,CAACN,OAAO,GAAGK,UAAU;IACzB,IAAI,CAACJ,UAAU,GAAGK,SAAS;;IAE3B;IACA,IAAI,CAAC,CAACR,aAAa,CAACS,OAAO,CAAEC,eAAe,IAAK;MAC/CA,eAAe,CAACD,OAAO,CAAEE,EAAE,IAAK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AChDnB,sBAAsB,CAACmB,EAAE,CAAC;IAC5B,CAAC,CAAC;IACF,IAAI,CAAC,CAACX,aAAa,CAACyB,MAAM,CAACN,OAAO,CAAC;EACrC;AACF;AAEA,MAAMQ,sBAAsB,CAE5B;EAQE1B,WAAWA,CACTC,OAAgD,EAChDC,UAAoB,GAAG,EAAE,EACzB;IACA,IAAI,CAACD,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACyB,SAAS,GAAG,CAAC,CAAC;IACnB,IAAI,CAACC,iBAAiB,CAAC,CAAC;EAC1B;EAEAA,iBAAiBA,CAAA,EAAG;IAClB,IAAI,CAACD,SAAS,GAAG,CAAC,CAAC;IACnB,IAAI,CAACzB,UAAU,CAACM,OAAO,CAAEf,SAAS,IAAK;MACrC,IAAI,CAACkC,SAAS,CAAClC,SAAS,CAAC,GAAGD,UAAU,CAACC,SAAS,EAAE,IAAI,CAACQ,OAAO,CAAC;IACjE,CAAC,CAAC;EACJ;EAEAI,kBAAkBA,CAChBC,UAAmD,EACnDC,SAAmB,EACb;IACN;IACA,IAAI,CAACN,OAAO,GAAGK,UAAU;IACzB,IAAI,CAACJ,UAAU,GAAGK,SAAS;IAC3B,IAAI,CAACqB,iBAAiB,CAAC,CAAC;EAC1B;EAEAX,iBAAiBA,CAACY,QAAgB,EAAEC,kBAA2B,EAAQ;IACrE;EAAA;EAGFP,oBAAoBA,CAACM,QAAgB,EAAQ;IAC3C;EAAA;AAEJ;AAEA,OAAO,MAAME,mBAAmB,GAAG1C,iBAAiB,GAChDqC,sBAAsB,GACtB7B,yBAAyB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/clamp.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/clamp.js deleted file mode 100644 index 4197770d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/clamp.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -import { defineAnimation, getReduceMotionForAnimation, recognizePrefixSuffix } from './util'; -export const withClamp = function (config, _animationToClamp) { - 'worklet'; - - return defineAnimation(_animationToClamp, () => { - 'worklet'; - - const animationToClamp = typeof _animationToClamp === 'function' ? _animationToClamp() : _animationToClamp; - const strippedMin = config.min === undefined ? undefined : recognizePrefixSuffix(config.min).strippedValue; - const strippedMax = config.max === undefined ? undefined : recognizePrefixSuffix(config.max).strippedValue; - function clampOnFrame(animation, now) { - const finished = animationToClamp.onFrame(animationToClamp, now); - if (animationToClamp.current === undefined) { - logger.warn("Error inside 'withClamp' animation, the inner animation has invalid current value"); - return true; - } else { - const { - prefix, - strippedValue, - suffix - } = recognizePrefixSuffix(animationToClamp.current); - let newValue; - if (strippedMax !== undefined && strippedMax < strippedValue) { - newValue = strippedMax; - } else if (strippedMin !== undefined && strippedMin > strippedValue) { - newValue = strippedMin; - } else { - newValue = strippedValue; - } - animation.current = typeof animationToClamp.current === 'number' ? newValue : `${prefix === undefined ? '' : prefix}${newValue}${suffix === undefined ? '' : suffix}`; - } - return finished; - } - function onStart(animation, value, now, previousAnimation) { - animation.current = value; - animation.previousAnimation = animationToClamp; - const animationBeforeClamped = previousAnimation?.previousAnimation; - if (config.max !== undefined && config.min !== undefined && config.max < config.min) { - logger.warn('Wrong config was provided to withClamp. Min value is bigger than max'); - } - animationToClamp.onStart(animationToClamp, - /** - * Provide the current value of the previous animation of the clamped - * animation so we can animate from the original "un-truncated" value - */ - animationBeforeClamped?.current || value, now, animationBeforeClamped); - } - const callback = finished => { - if (animationToClamp.callback) { - animationToClamp.callback(finished); - } - }; - return { - isHigherOrder: true, - onFrame: clampOnFrame, - onStart, - current: animationToClamp.current, - callback, - previousAnimation: null, - reduceMotion: getReduceMotionForAnimation(config.reduceMotion) - }; - }); -}; -//# sourceMappingURL=clamp.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/clamp.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/clamp.js.map deleted file mode 100644 index 9e93d039..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/clamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","defineAnimation","getReduceMotionForAnimation","recognizePrefixSuffix","withClamp","config","_animationToClamp","animationToClamp","strippedMin","min","undefined","strippedValue","strippedMax","max","clampOnFrame","animation","now","finished","onFrame","current","warn","prefix","suffix","newValue","onStart","value","previousAnimation","animationBeforeClamped","callback","isHigherOrder","reduceMotion"],"sourceRoot":"../../../src","sources":["animation/clamp.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,WAAW;AASlC,SACEC,eAAe,EACfC,2BAA2B,EAC3BC,qBAAqB,QAChB,QAAQ;AAUf,OAAO,MAAMC,SAAS,GAAG,SAAAA,CACvBC,MAAyD,EACzDC,iBAAkE,EACvC;EAC3B,SAAS;;EACT,OAAOL,eAAe,CACpBK,iBAAiB,EACjB,MAAsB;IACpB,SAAS;;IACT,MAAMC,gBAAgB,GACpB,OAAOD,iBAAiB,KAAK,UAAU,GACnCA,iBAAiB,CAAC,CAAC,GACnBA,iBAAiB;IAEvB,MAAME,WAAW,GACfH,MAAM,CAACI,GAAG,KAAKC,SAAS,GACpBA,SAAS,GACTP,qBAAqB,CAACE,MAAM,CAACI,GAAG,CAAC,CAACE,aAAa;IAErD,MAAMC,WAAW,GACfP,MAAM,CAACQ,GAAG,KAAKH,SAAS,GACpBA,SAAS,GACTP,qBAAqB,CAACE,MAAM,CAACQ,GAAG,CAAC,CAACF,aAAa;IAErD,SAASG,YAAYA,CACnBC,SAAyB,EACzBC,GAAc,EACL;MACT,MAAMC,QAAQ,GAAGV,gBAAgB,CAACW,OAAO,CAACX,gBAAgB,EAAES,GAAG,CAAC;MAEhE,IAAIT,gBAAgB,CAACY,OAAO,KAAKT,SAAS,EAAE;QAC1CV,MAAM,CAACoB,IAAI,CACT,mFACF,CAAC;QACD,OAAO,IAAI;MACb,CAAC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,IAAIV,gBAAgB,CAACqB,QAAQ,EAAE;QAC7BrB,gBAAgB,CAACqB,QAAQ,CAACX,QAAQ,CAAC;MACrC;IACF,CAAC;IAED,OAAO;MACLY,aAAa,EAAE,IAAI;MACnBX,OAAO,EAAEJ,YAAY;MACrBU,OAAO;MACPL,OAAO,EAAEZ,gBAAgB,CAACY,OAAQ;MAClCS,QAAQ;MACRF,iBAAiB,EAAE,IAAI;MACvBI,YAAY,EAAE5B,2BAA2B,CAACG,MAAM,CAACyB,YAAY;IAC/D,CAAC;EACH,CACF,CAAC;AACH,CAAkB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/commonTypes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/commonTypes.js deleted file mode 100644 index 0a62811d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/commonTypes.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=commonTypes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/commonTypes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/commonTypes.js.map deleted file mode 100644 index d7c17ac3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/commonTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["animation/commonTypes.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/decay.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/decay.js deleted file mode 100644 index 69c78a60..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/decay.js +++ /dev/null @@ -1,90 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../common'; -import { defineAnimation, getReduceMotionForAnimation } from '../util'; -import { rigidDecay } from './rigidDecay'; -import { rubberBandDecay } from './rubberBandDecay'; -import { isValidRubberBandConfig } from './utils'; - -// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file. - -function validateConfig(config) { - 'worklet'; - - if (config.clamp) { - if (!Array.isArray(config.clamp)) { - throw new ReanimatedError(`\`config.clamp\` must be an array but is ${typeof config.clamp}.`); - } - if (config.clamp.length !== 2) { - throw new ReanimatedError(`\`clamp array\` must contain 2 items but is given ${config.clamp.length}.`); - } - } - if (config.velocityFactor <= 0) { - throw new ReanimatedError(`\`config.velocityFactor\` must be greater then 0 but is ${config.velocityFactor}.`); - } - if (config.rubberBandEffect && !config.clamp) { - throw new ReanimatedError('You need to set `clamp` property when using `rubberBandEffect`.'); - } -} - -/** - * Lets you create animations that mimic objects in motion with friction. - * - * @param config - The decay animation configuration - {@link DecayConfig}. - * @param callback - A function called upon animation completion - - * {@link AnimationCallback}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDecay - */ -export const withDecay = function (userConfig, callback) { - 'worklet'; - - return defineAnimation(0, () => { - 'worklet'; - - const config = { - deceleration: 0.998, - velocityFactor: 1, - velocity: 0, - rubberBandFactor: 0.6 - }; - if (userConfig) { - Object.keys(userConfig).forEach(key => config[key] = userConfig[key]); - } - const decay = isValidRubberBandConfig(config) ? (animation, now) => rubberBandDecay(animation, now, config) : (animation, now) => rigidDecay(animation, now, config); - function onStart(animation, value, now) { - const initialVelocity = config.velocity; - animation.current = value; - animation.lastTimestamp = now; - animation.startTimestamp = now; - animation.initialVelocity = initialVelocity; - animation.velocity = initialVelocity; - validateConfig(config); - if (animation.reduceMotion && config.clamp) { - if (value < config.clamp[0]) { - animation.current = config.clamp[0]; - } else if (value > config.clamp[1]) { - animation.current = config.clamp[1]; - } - } - } - - // To ensure the animation is correctly initialized and starts as expected - // we need to set its current value to undefined. - // Setting current to 0 breaks the animation. - return { - onFrame: decay, - onStart, - callback, - velocity: config.velocity ?? 0, - initialVelocity: 0, - current: undefined, - lastTimestamp: 0, - startTimestamp: 0, - reduceMotion: getReduceMotionForAnimation(config.reduceMotion) - }; - }); -}; -//# sourceMappingURL=decay.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/decay.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/decay.js.map deleted file mode 100644 index 6541d8c0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/decay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","defineAnimation","getReduceMotionForAnimation","rigidDecay","rubberBandDecay","isValidRubberBandConfig","validateConfig","config","clamp","Array","isArray","length","velocityFactor","rubberBandEffect","withDecay","userConfig","callback","deceleration","velocity","rubberBandFactor","Object","keys","forEach","key","decay","animation","now","onStart","value","initialVelocity","current","lastTimestamp","startTimestamp","reduceMotion","onFrame","undefined"],"sourceRoot":"../../../../src","sources":["animation/decay/decay.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,cAAc;AAM9C,SAASC,eAAe,EAAEC,2BAA2B,QAAQ,SAAS;AACtE,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,eAAe,QAAQ,mBAAmB;AAOnD,SAASC,uBAAuB,QAAQ,SAAS;;AAIjD;;AAMA,SAASC,cAAcA,CAACC,MAA0B,EAAQ;EACxD,SAAS;;EACT,IAAIA,MAAM,CAACC,KAAK,EAAE;IAChB,IAAI,CAACC,KAAK,CAACC,OAAO,CAACH,MAAM,CAACC,KAAK,CAAC,EAAE;MAChC,MAAM,IAAIR,eAAe,CACvB,4CAA4C,OAAOO,MAAM,CAACC,KAAK,GACjE,CAAC;IACH;IACA,IAAID,MAAM,CAACC,KAAK,CAACG,MAAM,KAAK,CAAC,EAAE;MAC7B,MAAM,IAAIX,eAAe,CACvB,qDACEO,MAAM,CAACC,KAAK,CAACG,MAAM,GAEvB,CAAC;IACH;EACF;E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D,SAAS,CAACI,eAAe,GAAGA,eAAe;MAC3CJ,SAAS,CAACP,QAAQ,GAAGW,eAAe;MAEpCvB,cAAc,CAACC,MAAM,CAAC;MAEtB,IAAIkB,SAAS,CAACQ,YAAY,IAAI1B,MAAM,CAACC,KAAK,EAAE;QAC1C,IAAIoB,KAAK,GAAGrB,MAAM,CAACC,KAAK,CAAC,CAAC,CAAC,EAAE;UAC3BiB,SAAS,CAACK,OAAO,GAAGvB,MAAM,CAACC,KAAK,CAAC,CAAC,CAAC;QACrC,CAAC,MAAM,IAAIoB,KAAK,GAAGrB,MAAM,CAACC,KAAK,CAAC,CAAC,CAAC,EAAE;UAClCiB,SAAS,CAACK,OAAO,GAAGvB,MAAM,CAACC,KAAK,CAAC,CAAC,CAAC;QACrC;MACF;IACF;;IAEA;IACA;IACA;IACA,OAAO;MACL0B,OAAO,EAAEV,KAAK;MACdG,OAAO;MACPX,QAAQ;MACRE,QAAQ,EAAEX,MAAM,CAACW,QAAQ,IAAI,CAAC;MAC9BW,eAAe,EAAE,CAAC;MAClBC,OAAO,EAAEK,SAAS;MAClBJ,aAAa,EAAE,CAAC;MAChBC,cAAc,EAAE,CAAC;MACjBC,YAAY,EAAE/B,2BAA2B,CAACK,MAAM,CAAC0B,YAAY;IAC/D,CAAC;EACH,CAAC,CAAC;AACJ,CAA6B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/index.js deleted file mode 100644 index acdf7435..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { withDecay } from './decay'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/index.js.map deleted file mode 100644 index 85c6efee..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withDecay"],"sourceRoot":"../../../../src","sources":["animation/decay/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,SAAS,QAAQ,SAAS","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rigidDecay.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rigidDecay.js deleted file mode 100644 index a41fd4f9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rigidDecay.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -import { SLOPE_FACTOR, VELOCITY_EPS } from './utils'; -export function rigidDecay(animation, now, config) { - 'worklet'; - - const { - lastTimestamp, - startTimestamp, - initialVelocity, - current, - velocity - } = animation; - const deltaTime = Math.min(now - lastTimestamp, 64); - const v = velocity * Math.exp(-(1 - config.deceleration) * (now - startTimestamp) * SLOPE_FACTOR); - animation.current = current + v * config.velocityFactor * deltaTime / 1000; - animation.velocity = v; - animation.lastTimestamp = now; - if (config.clamp) { - if (initialVelocity < 0 && animation.current <= config.clamp[0]) { - animation.current = config.clamp[0]; - return true; - } else if (initialVelocity > 0 && animation.current >= config.clamp[1]) { - animation.current = config.clamp[1]; - return true; - } - } - return Math.abs(v) < VELOCITY_EPS; -} -//# sourceMappingURL=rigidDecay.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rigidDecay.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rigidDecay.js.map deleted file mode 100644 index ab070db7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rigidDecay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SLOPE_FACTOR","VELOCITY_EPS","rigidDecay","animation","now","config","lastTimestamp","startTimestamp","initialVelocity","current","velocity","deltaTime","Math","min","v","exp","deceleration","velocityFactor","clamp","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AAY;AACnC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rubberBandDecay.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rubberBandDecay.js deleted file mode 100644 index e624848b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rubberBandDecay.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -import { SLOPE_FACTOR, VELOCITY_EPS } from './utils'; -const DERIVATIVE_EPS = 0.1; -export function rubberBandDecay(animation, now, config) { - 'worklet'; - - const { - lastTimestamp, - startTimestamp, - current, - velocity - } = animation; - const deltaTime = Math.min(now - lastTimestamp, 64); - const clampIndex = Math.abs(current - config.clamp[0]) < Math.abs(current - config.clamp[1]) ? 0 : 1; - let derivative = 0; - if (current < config.clamp[0] || current > config.clamp[1]) { - derivative = current - config.clamp[clampIndex]; - } - const v = velocity * Math.exp(-(1 - config.deceleration) * (now - startTimestamp) * SLOPE_FACTOR) - derivative * config.rubberBandFactor; - if (Math.abs(derivative) > DERIVATIVE_EPS) { - animation.springActive = true; - } else if (animation.springActive) { - animation.current = config.clamp[clampIndex]; - return true; - } else if (Math.abs(v) < VELOCITY_EPS) { - return true; - } - animation.current = current + v * config.velocityFactor * deltaTime / 1000; - animation.velocity = v; - animation.lastTimestamp = now; - return false; -} -//# sourceMappingURL=rubberBandDecay.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rubberBandDecay.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rubberBandDecay.js.map deleted file mode 100644 index e5a9c75d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/rubberBandDecay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SLOPE_FACTOR","VELOCITY_EPS","DERIVATIVE_EPS","rubberBandDecay","animation","now","config","lastTimestamp","startTimestamp","current","velocity","deltaTime","Math","min","clampIndex","abs","clamp","derivative","v","exp","deceleration","rubberBandFactor","springActive","velocityFactor"],"sourceRoot":"../../../../src","sources":["animation/decay/rubberBandDecay.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,YAAY,EAAEC,YAAY,QAAQ,SAAS;AAEpD,MAAMC,cAAc,GAAG,GAAG;AAE1B,OAAO,SAASC,eAAeA,CAC7BC,SAA8B,EAC9BC,GAAW,EACXC,MAA6B,EACpB;EACT,SAAS;;EACT,MAAM;IAAEC,aAAa;IAAEC,cAAc;IAAEC,OAAO;IAAEC;EAAS,CAAC,GAAGN,SAAS;EAEtE,MAAMO,SAAS,GAAGC,IAAI,CAACC,GAAG,CAACR,GAAG,GAAGE,aAAa,EAAE,EAAE,CAAC;EACnD,MAAMO,UAAU,GACdF,IAAI,CAACG,GAAG,CAACN,OAAO,GAAGH,MAAM,CAACU,KAAK,CAAC,CAAC,CAAC,CAAC,GAAGJ,IAAI,CAACG,GAAG,CAACN,OAAO,GAAGH,MAAM,CAACU,KAAK,CAAC,CAAC,CAAC,CAAC,GACrE,CAAC,GACD,CAAC;EAEP,IAAIC,UAAU,GAAG,CAAC;EAClB,IAAIR,OAAO,GAAGH,MAAM,CAACU,KAAK,CAAC,CAAC,CAAC,IAAIP,OAAO,GAAGH,MAAM,CAACU,KAAK,CAAC,CAAC,CAAC,EAAE;IAC1DC,UAAU,GAAGR,OAAO,GAAGH,MAAM,CAACU,KAAK,CAACF,UAAU,CAAC;EACjD;EAEA,MAAMI,CAAC,GACLR,QAAQ,GACNE,IAAI,CAACO,GAAG,CACN,EAAE,CAAC,GAAGb,MAAM,CAACc,YAAY,CAAC,IAAIf,GAAG,GAAGG,cAAc,CAAC,GAAGR,YACxD,CAAC,GACHiB,UAAU,GAAGX,MAAM,CAACe,gBAAgB;EAEtC,IAAIT,IAAI,CAACG,GAAG,CAACE,UAAU,CAAC,GAAGf,cAAc,EAAE;IACzCE,SAAS,CAACkB,YAAY,GAAG,IAAI;EAC/B,CAAC,MAAM,IAAIlB,SAAS,CAACkB,YAAY,EAAE;IACjClB,SAAS,CAACK,OAAO,GAAGH,MAAM,CAACU,KAAK,CAACF,UAAU,CAAC;IAC5C,OAAO,IAAI;EACb,CAAC,MAAM,IAAIF,IAAI,CAACG,GAAG,CAACG,CAAC,CAAC,GAAGjB,YAAY,EAAE;IACrC,OAAO,IAAI;EACb;EAEAG,SAAS,CAACK,OAAO,GAAGA,OAAO,GAAIS,CAAC,GAAGZ,MAAM,CAACiB,cAAc,GAAGZ,SAAS,GAAI,IAAI;EAC5EP,SAAS,CAACM,QAAQ,GAAGQ,CAAC;EACtBd,SAAS,CAACG,aAAa,GAAGF,GAAG;EAC7B,OAAO,KAAK;AACd","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/utils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/utils.js deleted file mode 100644 index 08b2c464..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/utils.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -import { IS_WEB } from '../../common'; -export const VELOCITY_EPS = IS_WEB ? 1 / 20 : 1; -export const SLOPE_FACTOR = 0.1; - -/** - * The decay animation configuration. - * - * @param velocity - Initial velocity of the animation. Defaults to 0. - * @param deceleration - The rate at which the velocity decreases over time. - * Defaults to 0.998. - * @param clamp - Array of two numbers which restricts animation's range. - * Defaults to []. - * @param velocityFactor - Velocity multiplier. Defaults to 1. - * @param rubberBandEffect - Makes the animation bounce over the limit specified - * in `clamp`. Defaults to `false`. - * @param rubberBandFactor - Strength of the rubber band effect. Defaults to - * 0.6. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDecay#config - */ - -// If user wants to use rubber band decay animation we have to make sure he has provided clamp - -export function isValidRubberBandConfig(config) { - 'worklet'; - - return !!config.rubberBandEffect && Array.isArray(config.clamp) && config.clamp.length === 2; -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/utils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/utils.js.map deleted file mode 100644 index de2a3718..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/decay/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_WEB","VELOCITY_EPS","SLOPE_FACTOR","isValidRubberBandConfig","config","rubberBandEffect","Array","isArray","clamp","length"],"sourceRoot":"../../../../src","sources":["animation/decay/utils.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,cAAc;AAUrC,OAAO,MAAMC,YAAY,GAAGD,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC;AAC/C,OAAO,MAAME,YAAY,GAAG,GAAG;;AAiB/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAuBA;;AAMA,OAAO,SAASC,uBAAuBA,CACrCC,MAA0B,EACO;EACjC,SAAS;;EACT,OACE,CAAC,CAACA,MAAM,CAACC,gBAAgB,IACzBC,KAAK,CAACC,OAAO,CAACH,MAAM,CAACI,KAAK,CAAC,IAC3BJ,MAAM,CAACI,KAAK,CAACC,MAAM,KAAK,CAAC;AAE7B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/delay.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/delay.js deleted file mode 100644 index eb8a75c0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/delay.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -import { defineAnimation, getReduceMotionForAnimation } from './util'; - -// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file. - -/** - * An animation modifier that lets you start an animation with a delay. - * - * @param delayMs - Duration (in milliseconds) before the animation starts. - * @param nextAnimation - The animation to delay. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDelay - */ -export const withDelay = function (delayMs, _nextAnimation, reduceMotion) { - 'worklet'; - - return defineAnimation(_nextAnimation, () => { - 'worklet'; - - const nextAnimation = typeof _nextAnimation === 'function' ? _nextAnimation() : _nextAnimation; - function delay(animation, now) { - const { - startTime, - started, - previousAnimation - } = animation; - const current = animation.current; - if (now - startTime >= delayMs || animation.reduceMotion) { - if (!started) { - nextAnimation.onStart(nextAnimation, current, now, previousAnimation); - animation.previousAnimation = null; - animation.started = true; - } - const finished = nextAnimation.onFrame(nextAnimation, now); - animation.current = nextAnimation.current; - return finished; - } else if (previousAnimation) { - const finished = previousAnimation.finished || previousAnimation.onFrame(previousAnimation, now); - animation.current = previousAnimation.current; - if (finished) { - animation.previousAnimation = null; - } - } - return false; - } - function onStart(animation, value, now, previousAnimation) { - animation.startTime = now; - animation.started = false; - animation.current = value; - if (previousAnimation === animation) { - animation.previousAnimation = previousAnimation.previousAnimation; - } else { - animation.previousAnimation = previousAnimation; - } - - // child animations inherit the setting, unless they already have it defined - // they will have it defined only if the user used the `reduceMotion` prop - if (nextAnimation.reduceMotion === undefined) { - nextAnimation.reduceMotion = animation.reduceMotion; - } - } - const callback = finished => { - if (nextAnimation.callback) { - nextAnimation.callback(finished); - } - }; - return { - isHigherOrder: true, - onFrame: delay, - onStart, - current: nextAnimation.current, - callback, - previousAnimation: null, - startTime: 0, - started: false, - reduceMotion: getReduceMotionForAnimation(reduceMotion) - }; - }); -}; -//# sourceMappingURL=delay.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/delay.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/delay.js.map deleted file mode 100644 index 51bcf192..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/delay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["defineAnimation","getReduceMotionForAnimation","withDelay","delayMs","_nextAnimation","reduceMotion","nextAnimation","delay","animation","now","startTime","started","previousAnimation","current","onStart","finished","onFrame","value","undefined","callback","isHigherOrder"],"sourceRoot":"../../../src","sources":["animation/delay.ts"],"mappings":"AAAA,YAAY;;AASZ,SAASA,eAAe,EAAEC,2BAA2B,QAAQ,QAAQ;;AAErE;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAG,SAAAA,CACvBC,OAAe,EACfC,cAA6B,EAC7BC,YAA2B,EACA;EAC3B,SAAS;;EACT,OAAOL,eAAe,CACpBI,cAAc,EACd,MAAsB;IACpB,SAAS;;IACT,MAAME,aAAa,GACjB,OAAOF,cAAc,KAAK,UAAU,GAChCA,cAAc,CAAC,CAAC,GAChBA,cAAc;IAEpB,SAASG,KAAKA,CAACC,SAAyB,EAAEC,GAAc,EAAW;MACjE,MAAM;QAAEC,SAAS;QAAEC,OAAO;QAAEC;MAAkB,CAAC,GAAGJ,SAAS;MAC3D,MAAMK,OAAwB,GAAGL,SAAS,CAACK,OAAO;MAClD,IAAIJ,GAAG,GAAGC,SAAS,IAAIP,OAAO,IAAIK,SAAS,CAACH,YAAY,EAAE;QACxD,IAAI,CAACM,OAAO,EAAE;UACZL,aAAa,CAACQ,OAAO,CACnBR,aAAa,EACbO,OAAO,EACPJ,GAAG,EACHG,iBACF,CAAC;UACDJ,SAAS,CAACI,iBAAiB,GAAG,IAAI;UAClCJ,SAAS,CAACG,OAAO,GAAG,IAAI;QAC1B;QACA,MAAMI,QAAQ,GAAGT,aAAa,CAACU,OAAO,CAACV,aAAa,EAAEG,GAAG,CAAC;QAC1DD,SAAS,CAACK,OAAO,GAAGP,aAAa,CAACO,OAAQ;QAC1C,OAAOE,QAAQ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":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/index.js deleted file mode 100644 index a0db4701..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -export { withClamp } from './clamp'; -export { withDecay } from './decay'; -export { withDelay } from './delay'; -export { withRepeat } from './repeat'; -export { withSequence } from './sequence'; -export { GentleSpringConfig, GentleSpringConfigWithDuration, Reanimated3DefaultSpringConfig, Reanimated3DefaultSpringConfigWithDuration, SnappySpringConfig, SnappySpringConfigWithDuration, WigglySpringConfig, WigglySpringConfigWithDuration, withSpring } from './spring'; -export { withStyleAnimation } from './styleAnimation'; -export { withTiming } from './timing'; -export { cancelAnimation, defineAnimation, initialUpdaterRun } from './util'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/index.js.map deleted file mode 100644 index e3459c77..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withClamp","withDecay","withDelay","withRepeat","withSequence","GentleSpringConfig","GentleSpringConfigWithDuration","Reanimated3DefaultSpringConfig","Reanimated3DefaultSpringConfigWithDuration","SnappySpringConfig","SnappySpringConfigWithDuration","WigglySpringConfig","WigglySpringConfigWithDuration","withSpring","withStyleAnimation","withTiming","cancelAnimation","defineAnimation","initialUpdaterRun"],"sourceRoot":"../../../src","sources":["animation/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,QAAQ,SAAS;AAQnC,SAASC,SAAS,QAAQ,SAAS;AACnC,SAASC,SAAS,QAAQ,SAAS;AACnC,SAASC,UAAU,QAAQ,UAAU;AACrC,SAASC,YAAY,QAAQ,YAAY;AAEzC,SACEC,kBAAkB,EAClBC,8BAA8B,EAC9BC,8BAA8B,EAC9BC,0CAA0C,EAC1CC,kBAAkB,EAClBC,8BAA8B,EAC9BC,kBAAkB,EAClBC,8BAA8B,EAC9BC,UAAU,QACL,UAAU;AACjB,SAASC,kBAAkB,QAAQ,kBAAkB;AAErD,SAASC,UAAU,QAAQ,UAAU;AACrC,SAASC,eAAe,EAAEC,eAAe,EAAEC,iBAAiB,QAAQ,QAAQ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/repeat.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/repeat.js deleted file mode 100644 index 059d485e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/repeat.js +++ /dev/null @@ -1,94 +0,0 @@ -'use strict'; - -import { defineAnimation, getReduceMotionForAnimation } from './util'; - -// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file. - -/** - * Lets you repeat an animation given number of times or run it indefinitely. - * - * @param animation - An animation object you want to repeat. - * @param numberOfReps - The number of times the animation is going to be - * repeated. Defaults to 2. - * @param reverse - Whether the animation should run in reverse every other - * repetition. Defaults to false. - * @param callback - A function called on animation complete. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withRepeat - */ -export const withRepeat = function (_nextAnimation, numberOfReps = 2, reverse = false, callback, reduceMotion) { - 'worklet'; - - return defineAnimation(_nextAnimation, () => { - 'worklet'; - - const nextAnimation = typeof _nextAnimation === 'function' ? _nextAnimation() : _nextAnimation; - function repeat(animation, now) { - const finished = nextAnimation.onFrame(nextAnimation, now); - animation.current = nextAnimation.current; - if (finished) { - animation.reps += 1; - // call inner animation's callback on every repetition - // as the second argument the animation's current value is passed - if (nextAnimation.callback) { - nextAnimation.callback(true /* finished */, animation.current); - } - if (animation.reduceMotion || numberOfReps > 0 && animation.reps >= numberOfReps) { - return true; - } - const startValue = reverse ? nextAnimation.current : animation.startValue; - if (reverse) { - nextAnimation.toValue = animation.startValue; - animation.startValue = startValue; - } - nextAnimation.onStart(nextAnimation, startValue, now, nextAnimation.previousAnimation); - return false; - } - return false; - } - const repCallback = finished => { - if (callback) { - callback(finished); - } - // when cancelled call inner animation's callback - if (!finished && nextAnimation.callback) { - nextAnimation.callback(false /* finished */); - } - }; - function onStart(animation, value, now, previousAnimation) { - animation.startValue = value; - animation.reps = 0; - - // child animations inherit the setting, unless they already have it defined - // they will have it defined only if the user used the `reduceMotion` prop - if (nextAnimation.reduceMotion === undefined) { - nextAnimation.reduceMotion = animation.reduceMotion; - } - - // don't start the animation if reduced motion is enabled and - // the animation would end at its starting point - if (animation.reduceMotion && reverse && (numberOfReps <= 0 || numberOfReps % 2 === 0)) { - animation.current = animation.startValue; - animation.onFrame = () => true; - } else { - nextAnimation.onStart(nextAnimation, value, now, previousAnimation); - } - } - return { - isHigherOrder: true, - onFrame: repeat, - onStart, - reps: 0, - current: nextAnimation.current, - callback: repCallback, - startValue: 0, - reduceMotion: getReduceMotionForAnimation(reduceMotion) - }; - }); -}; -//# sourceMappingURL=repeat.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/repeat.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/repeat.js.map deleted file mode 100644 index 5ea5909c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/repeat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["defineAnimation","getReduceMotionForAnimation","withRepeat","_nextAnimation","numberOfReps","reverse","callback","reduceMotion","nextAnimation","repeat","animation","now","finished","onFrame","current","reps","startValue","toValue","onStart","previousAnimation","repCallback","value","undefined","isHigherOrder"],"sourceRoot":"../../../src","sources":["animation/repeat.ts"],"mappings":"AAAA,YAAY;;AAUZ,SAASA,eAAe,EAAEC,2BAA2B,Q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AAK;IACd;IAEA,MAAMC,WAAW,GAAIR,QAAkB,IAAW;MAChD,IAAIN,QAAQ,EAAE;QACZA,QAAQ,CAACM,QAAQ,CAAC;MACpB;MACA;MACA,IAAI,CAACA,QAAQ,IAAIJ,aAAa,CAACF,QAAQ,EAAE;QACvCE,aAAa,CAACF,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC;MAC9C;IACF,CAAC;IAED,SAASY,OAAOA,CACdR,SAA0B,EAC1BW,KAAsB,EACtBV,GAAc,EACdQ,iBAAwC,EAClC;MACNT,SAAS,CAACM,UAAU,GAAGK,KAAK;MAC5BX,SAAS,CAACK,IAAI,GAAG,CAAC;;MAElB;MACA;MACA,IAAIP,aAAa,CAACD,YAAY,KAAKe,SAAS,EAAE;QAC5Cd,aAAa,CAACD,YAAY,GAAGG,SAAS,CAACH,YAAY;MACrD;;MAEA;MACA;MACA,IACEG,SAAS,CAACH,YAAY,IACtBF,OAAO,KACND,YAAY,IAAI,CAAC,IAAIA,YAAY,GAAG,CAAC,KAAK,CAAC,CAAC,EAC7C;QACAM,SAAS,CAACI,OAAO,GAAGJ,SAAS,CAACM,UAAU;QACxCN,SAAS,CAACG,OAAO,GAAG,MAAM,IAAI;MAChC,CAAC,MAAM;QACLL,aAAa,CAACU,OAAO,CAACV,aAAa,EAAEa,KAAK,EAAEV,GAAG,EAAEQ,iBAAiB,CAAC;MACrE;IACF;IAEA,OAAO;MACLI,aAAa,EAAE,IAAI;MACnBV,OAAO,EAAEJ,MAAM;MACfS,OAAO;MACPH,IAAI,EAAE,CAAC;MACPD,OAAO,EAAEN,aAAa,CAACM,OAAO;MAC9BR,QAAQ,EAAEc,WAAW;MACrBJ,UAAU,EAAE,CAAC;MACbT,YAAY,EAAEN,2BAA2B,CAACM,YAAY;IACxD,CAAC;EACH,CACF,CAAC;AACH,CAAmB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/sequence.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/sequence.js deleted file mode 100644 index 09855086..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/sequence.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -import { defineAnimation, getReduceMotionForAnimation } from './util'; - -/** - * Lets you run animations in a sequence. - * - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @param animations - Any number of animation objects to be run in a sequence. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation/ - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withSequence - */ - -export function withSequence(_reduceMotionOrFirstAnimation, ..._animations) { - 'worklet'; - - let reduceMotion; - - // the first argument is either a config or an animation - // this is done to allow the reduce motion config prop to be optional - if (_reduceMotionOrFirstAnimation) { - if (typeof _reduceMotionOrFirstAnimation === 'string') { - reduceMotion = _reduceMotionOrFirstAnimation; - } else { - _animations.unshift(_reduceMotionOrFirstAnimation); - } - } - if (_animations.length === 0) { - logger.warn('No animation was provided for the sequence'); - return defineAnimation(0, () => { - 'worklet'; - - return { - onStart: (animation, value) => animation.current = value, - onFrame: () => true, - current: 0, - animationIndex: 0, - reduceMotion: getReduceMotionForAnimation(reduceMotion) - }; - }); - } - return defineAnimation(_animations[0], () => { - 'worklet'; - - const animations = _animations.map(a => { - const result = typeof a === 'function' ? a() : a; - result.finished = false; - return result; - }); - function findNextNonReducedMotionAnimationIndex(index) { - // the last animation is returned even if reduced motion is enabled, - // because we want the sequence to finish at the right spot - while (index < animations.length - 1 && animations[index].reduceMotion) { - if (typeof animations[index].callback === 'function') { - animations[index].callback?.(true); - } - index++; - } - return index; - } - const callback = finished => { - if (finished) { - // we want to call the callback after every single animation - // not after all of them - return; - } - // this is going to be called only if sequence has been cancelled - animations.forEach(animation => { - if (typeof animation.callback === 'function' && !animation.finished) { - animation.callback(finished); - } - }); - }; - function sequence(animation, now) { - const currentAnim = animations[animation.animationIndex]; - const finished = currentAnim.onFrame(currentAnim, now); - animation.current = currentAnim.current; - if (finished) { - // we want to call the callback after every single animation - if (currentAnim.callback) { - currentAnim.callback(true /* finished */); - } - currentAnim.finished = true; - animation.animationIndex = findNextNonReducedMotionAnimationIndex(animation.animationIndex + 1); - if (animation.animationIndex < animations.length) { - const nextAnim = animations[animation.animationIndex]; - nextAnim.onStart(nextAnim, currentAnim.current, now, currentAnim); - return false; - } - return true; - } - return false; - } - function onStart(animation, value, now, previousAnimation) { - // child animations inherit the setting, unless they already have it defined - // they will have it defined only if the user used the `reduceMotion` prop - animations.forEach(anim => { - if (anim.reduceMotion === undefined) { - anim.reduceMotion = animation.reduceMotion; - } - }); - animation.animationIndex = findNextNonReducedMotionAnimationIndex(0); - if (previousAnimation === undefined) { - previousAnimation = animations[animations.length - 1]; - } - const currentAnimation = animations[animation.animationIndex]; - currentAnimation.onStart(currentAnimation, value, now, previousAnimation); - } - return { - isHigherOrder: true, - onFrame: sequence, - onStart, - animationIndex: 0, - current: animations[0].current, - callback, - reduceMotion: getReduceMotionForAnimation(reduceMotion) - }; - }); -} -//# sourceMappingURL=sequence.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/sequence.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/sequence.js.map deleted file mode 100644 index 33dff48d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/sequence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","defineAnimation","getReduceMotionForAnimation","withSequence","_reduceMotionOrFirstAnimation","_animations","reduceMotion","unshift","length","warn","onStart","animation","value","current","onFrame","animationIndex","animations","map","a","result","finished","findNextNonReducedMotionAnimationIndex","index","callback","forEach","sequence","now","currentAnim","nextAnim","previousAnimation","anim","undefined","currentAnimation","isHigherOrder"],"sourceRoot":"../../../src","sources":["animation/sequence.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,M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EAAED,WAAW,CAACd,OAAO,EAAEa,GAAG,EAAEC,WAAW,CAAC;UACjE,OAAO,KAAK;QACd;QACA,OAAO,IAAI;MACb;MACA,OAAO,KAAK;IACd;IAEA,SAASjB,OAAOA,CACdC,SAA4B,EAC5BC,KAAsB,EACtBc,GAAc,EACdG,iBAAoC,EAC9B;MACN;MACA;MACAb,UAAU,CAACQ,OAAO,CAAEM,IAAI,IAAK;QAC3B,IAAIA,IAAI,CAACxB,YAAY,KAAKyB,SAAS,EAAE;UACnCD,IAAI,CAACxB,YAAY,GAAGK,SAAS,CAACL,YAAY;QAC5C;MACF,CAAC,CAAC;MACFK,SAAS,CAACI,cAAc,GAAGM,sCAAsC,CAAC,CAAC,CAAC;MAEpE,IAAIQ,iBAAiB,KAAKE,SAAS,EAAE;QACnCF,iBAAiB,GAAGb,UAAU,CAC5BA,UAAU,CAACR,MAAM,GAAG,CAAC,CACD;MACxB;MAEA,MAAMwB,gBAAgB,GAAGhB,UAAU,CAACL,SAAS,CAACI,cAAc,CAAC;MAC7DiB,gBAAgB,CAACtB,OAAO,CACtBsB,gBAAgB,EAChBpB,KAAK,EACLc,GAAG,EACHG,iBACF,CAAC;IACH;IAEA,OAAO;MACLI,aAAa,EAAE,IAAI;MACnBnB,OAAO,EAAEW,QAAQ;MACjBf,OAAO;MACPK,cAAc,EAAE,CAAC;MACjBF,OAAO,EAAEG,UAAU,CAAC,CAAC,CAAC,CAACH,OAAO;MAC9BU,QAAQ;MACRjB,YAAY,EAAEJ,2BAA2B,CAACI,YAAY;IACxD,CAAC;EACH,CACF,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/index.js deleted file mode 100644 index 107bf783..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export * from './spring'; -export * from './springConfigs'; -export * from './springUtils'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/index.js.map deleted file mode 100644 index 4b054135..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["animation/spring/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,eAAe","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/spring.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/spring.js deleted file mode 100644 index f6f9087a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/spring.js +++ /dev/null @@ -1,169 +0,0 @@ -'use strict'; - -import { defineAnimation, getReduceMotionForAnimation } from '../util'; -import { GentleSpringConfig, GentleSpringConfigWithDuration } from './springConfigs'; -import { calculateNewStiffnessToMatchDuration, checkIfConfigIsValid, criticallyDampedSpringCalculations, getEnergy, initialCalculations, isAnimationTerminatingCalculation, safeMergeConfigs, scaleZetaToMatchClamps, underDampedSpringCalculations } from './springUtils'; - -// TODO TYPESCRIPT This is a temporary type to get rid of .d.ts file. - -/** - * Lets you create spring-based animations. - * - * @param toValue - The value at which the animation will come to rest - - * {@link AnimatableValue} - * @param config - The spring animation configuration - {@link SpringConfig}. - * Defaults to {@link GentleSpringConfig}. You can use other predefined spring - * configurations, such as {@link WigglySpringConfig}, - * {@link SnappySpringConfig}, {@link Reanimated3DefaultSpringConfig} or create - * your own. - * @param callback - A function called on animation complete - - * {@link AnimationCallback} - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withSpring - */ -export const withSpring = (toValue, userConfig, callback) => { - 'worklet'; - - return defineAnimation(toValue, () => { - 'worklet'; - - const defaultConfig = { - ...GentleSpringConfig, - ...GentleSpringConfigWithDuration, - overshootClamping: false, - energyThreshold: 6e-9, - velocity: 0, - reduceMotion: undefined, - clamp: undefined - }; - const config = safeMergeConfigs({ - ...defaultConfig, - useDuration: !!(userConfig?.duration || userConfig?.dampingRatio), - skipAnimation: false - }, userConfig); - config.skipAnimation = !checkIfConfigIsValid(config); - if (config.duration === 0) { - config.skipAnimation = true; - } - function springOnFrame(animation, now) { - // eslint-disable-next-line @typescript-eslint/no-shadow - const { - toValue, - current - } = animation; - if (config.skipAnimation) { - animation.current = toValue; - animation.lastTimestamp = 0; - return true; - } - const { - lastTimestamp, - velocity - } = animation; - const deltaTime = Math.min(now - lastTimestamp, 64); - animation.lastTimestamp = now; - const t = deltaTime / 1000; - const v0 = velocity; - const x0 = current - toValue; - const { - zeta, - omega0, - omega1 - } = animation; - const { - position: newPosition, - velocity: newVelocity - } = zeta < 1 ? underDampedSpringCalculations(animation, { - zeta, - v0, - x0, - omega0, - omega1, - t - }) : criticallyDampedSpringCalculations(animation, { - v0, - x0, - omega0, - t - }); - animation.current = newPosition; - animation.velocity = newVelocity; - if (isAnimationTerminatingCalculation(animation, config)) { - animation.velocity = 0; - animation.current = toValue; - // clear lastTimestamp to avoid using stale value by the next spring animation that starts after this one - animation.lastTimestamp = 0; - return true; - } - return false; - } - function isTriggeredTwice(previousAnimation, animation) { - return previousAnimation?.lastTimestamp && previousAnimation?.startTimestamp && previousAnimation?.toValue === animation.toValue && previousAnimation?.duration === animation.duration && previousAnimation?.dampingRatio === animation.dampingRatio; - } - function onStart(animation, value, now, previousAnimation) { - animation.current = value; - let stiffness = config.stiffness; - const triggeredTwice = isTriggeredTwice(previousAnimation, animation); - const duration = config.duration; - const x0 = triggeredTwice ? - // If animation is triggered twice we want to continue the previous animation - // form the previous starting point - previousAnimation?.startValue : value - animation.toValue; - animation.startValue = x0; - if (previousAnimation) { - animation.velocity = (triggeredTwice ? previousAnimation?.velocity : previousAnimation?.velocity + config.velocity) || 0; - } else { - animation.velocity = config.velocity || 0; - } - if (triggeredTwice) { - animation.zeta = previousAnimation?.zeta || 0; - animation.omega0 = previousAnimation?.omega0 || 0; - animation.omega1 = previousAnimation?.omega1 || 0; - } else { - if (config.useDuration) { - const actualDuration = triggeredTwice ? - // If animation is triggered twice we want to continue the previous animation - // so we need to include the time that already elapsed - duration - ((previousAnimation?.lastTimestamp || 0) - (previousAnimation?.startTimestamp || 0)) : duration; - config.duration = actualDuration; - stiffness = calculateNewStiffnessToMatchDuration(x0, config, animation.velocity); - config.stiffness = stiffness; - } - const { - zeta, - omega0, - omega1 - } = initialCalculations(stiffness, config); - animation.zeta = zeta; - animation.omega0 = omega0; - animation.omega1 = omega1; - if (config.clamp !== undefined) { - animation.zeta = scaleZetaToMatchClamps(animation, config.clamp); - } - } - const initialEnergy = getEnergy(x0, config.velocity, config.stiffness, config.mass); - animation.initialEnergy = initialEnergy; - animation.lastTimestamp = previousAnimation?.lastTimestamp || now; - animation.startTimestamp = triggeredTwice ? previousAnimation?.startTimestamp || now : now; - } - return { - onFrame: springOnFrame, - onStart, - toValue, - velocity: config.velocity || 0, - current: toValue, - startValue: 0, - callback, - lastTimestamp: 0, - startTimestamp: 0, - zeta: 0, - omega0: 0, - omega1: 0, - initialEnergy: 0, - reduceMotion: getReduceMotionForAnimation(config.reduceMotion) - }; - }); -}; -//# sourceMappingURL=spring.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/spring.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/spring.js.map deleted file mode 100644 index e0f797e6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/spring.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["defineAnimation","getReduceMotionForAnimation","GentleSpringConfig","GentleSpringConfigWithDuration","calculateNewStiffnessToMatchDuration","checkIfConfigIsValid","criticallyDampedSpringCalculations","getEnergy","initialCalculations","isAnimationTerminatingCalculation","safeMergeConfigs","scaleZetaToMatchClamps","underDampedSpringCalculations","withSpring","toValue","userConfig","callback","defaultConfig","overshootClamping","energyThreshold","velocity","reduceMotion","undefined","clamp","config","useDuration","duration","dampingRatio","skipAnimation","springOnFrame","animation","now","current","lastTimestamp","deltaTime","Math","min","t","v0","x0","zeta","omega0","omega1","position","newPosition","newVelocity","isTriggeredTwice","previousAnimation","startTimestamp","onStart","value","stiffness","triggeredTwice","startValue","actualDuration","initialEnergy","mass","onFrame"],"sourceRoot":"../../../../src","sources":["animation/spring/spring.ts"],"mappings":"AAAA,YAAY;;AAOZ,SAASA,eAAe,EAAEC,2BAA2B,QAAQ,SAAS;AAEtE,SACEC,kBAAkB,EAClBC,8BAA8B,QACzB,iBAAiB;AAOxB,SACEC,oCAAoC,EACpCC,oBAAoB,EACpBC,kCAAkC,EAClCC,SAAS,EACTC,mBAAmB,EACnBC,iCAAiC,EACjCC,gBAAgB,EAChBC,sBAAsB,EACtBC,6BAA6B,QACxB,eAAe;;AAEtB;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAIA,CACzBC,OAAwB,EACxBC,UAAyB,EACzBC,QAA4B,KACG;EAC/B,SAAS;;EAET,OAAOhB,eAAe,CAAkBc,OAAO,EAAE,MAAM;IACrD,SAAS;;IACT,MAAMG,aAAkC,GAAG;MACzC,GAAGf,kBAAkB;MACrB,GAAGC,8BAA8B;MACjCe,iBAAiB,EAAE,KAAK;MACxBC,eAAe,EAAE,IAAI;MACrBC,QAAQ,EAAE,CAAC;MACXC,YAAY,EAAEC,SAAS;MACvBC,KAAK,EAAED;IACT,CAAU;IAEV,MAAME,MAA+C,GAAGd,gBAAgB,CAGtE;MACE,GAAGO,aAAa;MAChBQ,WAAW,EAAE,CAAC,EAAEV,UAAU,EAAEW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IACT,CAAC;MACD1B,SAAS,CAACyB,aAAa,GAAGA,aAAa;MAEvCzB,SAAS,CAACG,aAAa,GAAGc,iBAAiB,EAAEd,aAAa,IAAIF,GAAG;MAEjED,SAAS,CAACkB,cAAc,GAAGI,cAAc,GACrCL,iBAAiB,EAAEC,cAAc,IAAIjB,GAAG,GACxCA,GAAG;IACT;IAEA,OAAO;MACL0B,OAAO,EAAE5B,aAAa;MACtBoB,OAAO;MACPnC,OAAO;MACPM,QAAQ,EAAEI,MAAM,CAACJ,QAAQ,IAAI,CAAC;MAC9BY,OAAO,EAAElB,OAAO;MAChBuC,UAAU,EAAE,CAAC;MACbrC,QAAQ;MACRiB,aAAa,EAAE,CAAC;MAChBe,cAAc,EAAE,CAAC;MACjBR,IAAI,EAAE,CAAC;MACPC,MAAM,EAAE,CAAC;MACTC,MAAM,EAAE,CAAC;MACTa,aAAa,EAAE,CAAC;MAChBlC,YAAY,EAAEpB,2BAA2B,CAACuB,MAAM,CAACH,YAAY;IAC/D,CAAC;EACH,CAAC,CAAC;AACJ,CAAoB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springConfigs.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springConfigs.js deleted file mode 100644 index 9589109a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springConfigs.js +++ /dev/null @@ -1,68 +0,0 @@ -'use strict'; - -export const Reanimated3DefaultSpringConfig = { - damping: 10, - mass: 1, - stiffness: 100 -}; -export const Reanimated3DefaultSpringConfigWithDuration = { - duration: 1333, - dampingRatio: 0.5 -}; -export const WigglySpringConfig = { - damping: 90, - mass: 4, - stiffness: 900 -}; -export const WigglySpringConfigWithDuration = { - duration: 550, - dampingRatio: 0.75 -}; -export const GentleSpringConfig = { - damping: 120, - mass: 4, - stiffness: 900 -}; -export const GentleSpringConfigWithDuration = { - duration: 550, - dampingRatio: 1 -}; -export const SnappySpringConfig = { - damping: 110, - mass: 4, - stiffness: 900, - overshootClamping: true -}; -export const SnappySpringConfigWithDuration = { - duration: 550, - dampingRatio: 0.92, - overshootClamping: true -}; - -/** - * Spring animation configuration. - * - * @param mass - The weight of the spring. Reducing this value makes the - * animation faster. Defaults to 4. - * @param damping - How quickly a spring slows down. Higher damping means the - * spring will come to rest faster. Defaults to 120. - * @param stiffness - How bouncy the spring is. Defaults to 900. - * @param duration - Perceptual duration of the animation in milliseconds. - * Actual duration is 1.5 times the value of perceptual duration. Defaults to - * 550ms if `dampingRatio` is provided. - * @param dampingRatio - How damped the spring is. Value `1` means the spring is - * critically damped, value `<1` means the spring is underdamped and value - * `>1` means the spring is overdamped. Defaults to 1 if `duration` is - * provided. - * @param velocity - Initial velocity applied to the spring equation. Defaults - * to 0. - * @param overshootClamping - Whether a spring can bounce over the `toValue`. - * Defaults to false. - * @param energyThreshold - Relative energy threshold below which the spring - * will snap to `toValue` without further oscillations. Defaults to 6e-9. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withSpring/#config- - */ -//# sourceMappingURL=springConfigs.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springConfigs.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springConfigs.js.map deleted file mode 100644 index 88a95c64..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springConfigs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Reanimated3DefaultSpringConfig","damping","mass","stiffness","Reanimated3DefaultSpringConfigWithDuration","duration","dampingRatio","WigglySpringConfig","WigglySpringConfigWithDuration","GentleSpringConfig","GentleSpringConfigWithDuration","SnappySpringConfig","overshootClamping","SnappySpringConfigWithDuration"],"sourceRoot":"../../../../src","sources":["animation/spring/springConfigs.ts"],"mappings":"AAAA,YAAY;;AAIZ,OAAO,MAAMA,8BAA8B,GAAG;EAC5CC,OAAO,EAAE,EAAE;EACXC,IAAI,EAAE,CAAC;EACPC,SAAS,EAAE;AACb,CAAiC;AAEjC,OAAO,MAAMC,0CAA0C,GAAG;EACxDC,QAAQ,EAAE,IAAI;EACdC,YAAY,EAAE;AAChB,CAAiC;AAEjC,OAAO,MAAMC,kBAAkB,GAAG;EAChCN,OAAO,EAAE,EAAE;EACXC,IAAI,EAAE,CAAC;EACPC,SAAS,EAAE;AACb,CAAiC;AAEjC,OAAO,MAAMK,8BAA8B,GAAG;EAC5CH,QAAQ,EAAE,GAAG;EACbC,YAAY,EAAE;AAChB,CAAiC;AAEjC,OAAO,MAAMG,kBAAkB,GAAG;EAChCR,OAAO,EAAE,GAAG;EACZC,IAAI,EAAE,CAAC;EACPC,SAAS,EAAE;AACb,CAAiC;AAEjC,OAAO,MAAMO,8BAA8B,GAAG;EAC5CL,QAAQ,EAAE,GAAG;EACbC,YAAY,EAAE;AAChB,CAAiC;AAEjC,OAAO,MAAMK,kBAAkB,GAAG;EAChCV,OAAO,EAAE,GAAG;EACZC,IAAI,EAAE,CAAC;EACPC,SAAS,EAAE,GAAG;EACdS,iBAAiB,EAAE;AACrB,CAAiC;AAEjC,OAAO,MAAMC,8BAA8B,GAAG;EAC5CR,QAAQ,EAAE,GAAG;EACbC,YAAY,EAAE,IAAI;EAClBM,iBAAiB,EAAE;AACrB,CAAiC;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springUtils.js deleted file mode 100644 index a56cdabb..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springUtils.js +++ /dev/null @@ -1,286 +0,0 @@ -'use strict'; - -import { logger } from '../../common'; - -// This type contains all the properties from SpringConfig, which are changed to be required, -// except for optional 'reduceMotion' and 'clamp' - -export function checkIfConfigIsValid(config) { - 'worklet'; - - let errorMessage = ''; - ['stiffness', 'damping', 'dampingRatio', 'mass', 'energyThreshold'].forEach(prop => { - const value = config[prop]; - if (value <= 0) { - errorMessage += `, ${prop} must be grater than zero but got ${value}`; - } - }); - if (config.duration < 0) { - errorMessage += `, duration can't be negative, got ${config.duration}`; - } - if (config.clamp?.min && config.clamp?.max && config.clamp.min > config.clamp.max) { - errorMessage += `, clamp.min should be lower than clamp.max, got clamp: {min: ${config.clamp.min}, max: ${config.clamp.max}} `; - } - if (errorMessage !== '') { - logger.warn('Invalid spring config' + errorMessage); - } - return errorMessage === ''; -} -export function safeMergeConfigs(defaults, userConfig) { - 'worklet'; - - if (!userConfig) { - return defaults; - } - const filtered = Object.fromEntries(Object.entries(userConfig).filter(([, v]) => v !== undefined)); - return { - ...defaults, - ...filtered - }; -} -function bisectRoot({ - min, - max, - func, - precision, - maxIterations = 20 -}) { - 'worklet'; - - const direction = func(max) >= func(min) ? 1 : -1; - let idx = maxIterations; - let current = (max + min) / 2; - while (Math.abs(func(current)) > precision && idx > 0) { - idx -= 1; - if (func(current) * direction < 0) { - min = current; - } else { - max = current; - } - current = (min + max) / 2; - } - return current; -} -export function initialCalculations(stiffness = 0, config) { - 'worklet'; - - if (config.skipAnimation) { - return { - zeta: 0, - omega0: 0, - omega1: 0 - }; - } - if (config.useDuration) { - const { - mass: m, - dampingRatio: zeta - } = config; - - /** - * Omega0 and omega1 denote angular frequency and natural angular frequency, - * see this link for formulas: - * https://courses.lumenlearning.com/suny-osuniversityphysics/chapter/15-5-damped-oscillations/ - */ - const omega0 = Math.sqrt(stiffness / m); - const omega1 = omega0 * Math.sqrt(1 - zeta ** 2); - return { - zeta, - omega0, - omega1 - }; - } else { - const { - damping: c, - mass: m, - stiffness: k - } = config; - const zeta = c / (2 * Math.sqrt(k * m)); // damping ratio - const omega0 = Math.sqrt(k / m); // undamped angular frequency of the oscillator (rad/ms) - const omega1 = omega0 * Math.sqrt(1 - zeta ** 2); // exponential decay - - return { - zeta, - omega0, - omega1 - }; - } -} - -/** - * We make an assumption that we can manipulate zeta without changing duration - * of movement. According to theory this change is small and tests shows that we - * can indeed ignore it. - */ -export function scaleZetaToMatchClamps(animation, clamp) { - 'worklet'; - - const { - zeta, - toValue, - startValue - } = animation; - const toValueNum = Number(toValue); - if (startValue === 0) { - return zeta; - } - const [firstBound, secondBound] = startValue <= 0 ? [clamp.min, clamp.max] : [clamp.max, clamp.min]; - - /** - * The extrema we get from equation below are relative (we obtain a ratio), To - * get absolute extrema we convert it as follows: - * - * AbsoluteExtremum = startValue ± RelativeExtremum * (toValue - startValue) - * Where ± denotes: - * - * - If extremum is over the target - * - Otherwise - */ - - const relativeExtremum1 = secondBound !== undefined ? Math.abs((secondBound - toValueNum) / startValue) : undefined; - const relativeExtremum2 = firstBound !== undefined ? Math.abs((firstBound - toValueNum) / startValue) : undefined; - - /** - * Use this formula http://hyperphysics.phy-astr.gsu.edu/hbase/oscda.html to - * calculate first two extrema. These extrema are located where cos = +- 1 - * - * Therefore the first two extrema are: - * - * Math.exp(-zeta * Math.PI); (over the target) - * Math.exp(-zeta * 2 * Math.PI); (before the target) - */ - - const newZeta1 = relativeExtremum1 !== undefined ? Math.abs(Math.log(relativeExtremum1) / Math.PI) : undefined; - const newZeta2 = relativeExtremum2 !== undefined ? Math.abs(Math.log(relativeExtremum2) / (2 * Math.PI)) : undefined; - const zetaSatisfyingClamp = [newZeta1, newZeta2].filter(x => x !== undefined); - // The bigger is zeta the smaller are bounces, we return the biggest one - // because it should satisfy all conditions - return Math.max(...zetaSatisfyingClamp, zeta); -} -export function getEnergy(displacement, velocity, stiffness, mass) { - 'worklet'; - - const potentialEnergy = 0.5 * stiffness * displacement ** 2; - const kineticEnergy = 0.5 * mass * velocity ** 2; - return potentialEnergy + kineticEnergy; -} - -/** Runs before initial */ -export function calculateNewStiffnessToMatchDuration(x0, config, v0) { - 'worklet'; - - if (config.skipAnimation) { - return 0; - } - - /** - * Use this formula: - * https://phys.libretexts.org/Bookshelves/University_Physics/Book%3A_University_Physics_(OpenStax)/Book%3A_University_Physics_I_-_Mechanics_Sound_Oscillations_and_Waves_(OpenStax)/15%3A_Oscillations/15.06%3A_Damped_Oscillations - * to find the asymptote and estimate the damping that gives us the expected - * duration - * - * ⎛ ⎛ c⎞ ⎞ - * ⎜-⎜──⎟ ⋅ duration⎟ - * ⎝ ⎝2m⎠ ⎠ - * A ⋅ e = threshold - */ - const { - dampingRatio: zeta, - energyThreshold: threshold, - mass: m, - duration: targetDuration - } = config; - const energyDiffForStiffness = stiffness => { - 'worklet'; - - const perceptualCoefficient = 1.5; - const MILLISECONDS_IN_SECOND = 1000; - const settlingDuration = targetDuration * perceptualCoefficient / MILLISECONDS_IN_SECOND; - const omega0 = Math.sqrt(stiffness / m) * zeta; - const xtk = (x0 + (v0 + x0 * omega0) * settlingDuration) * Math.exp(-omega0 * settlingDuration); - const vtk = (x0 + (v0 + x0 * omega0) * settlingDuration) * Math.exp(-omega0 * settlingDuration) * -omega0 + (v0 + x0 * omega0) * Math.exp(-omega0 * settlingDuration); - const e0 = getEnergy(x0, v0, stiffness, m); - const etk = getEnergy(xtk, vtk, stiffness, m); - const energyFraction = etk / e0; - return energyFraction - threshold; - }; - const precision = config.energyThreshold * 1e-3; // Experimentally seems to be good enough. - - // Bisection turns out to be much faster than Newton's method in our case - return bisectRoot({ - min: Number.EPSILON, - max: 8e3 /* Stiffness for 8ms animation doesn't exceed 2e3, we add some safety margin on top of that. */, - func: energyDiffForStiffness, - precision, - maxIterations: 100 - }); -} -export function criticallyDampedSpringCalculations(animation, precalculatedValues) { - 'worklet'; - - const { - toValue - } = animation; - const { - v0, - x0, - omega0, - t - } = precalculatedValues; - const criticallyDampedEnvelope = Math.exp(-omega0 * t); - const criticallyDampedPosition = toValue + criticallyDampedEnvelope * (x0 + (v0 + omega0 * x0) * t); - const criticallyDampedVelocity = criticallyDampedEnvelope * -omega0 * (x0 + (v0 + omega0 * x0) * t) + criticallyDampedEnvelope * (v0 + omega0 * x0); - return { - position: criticallyDampedPosition, - velocity: criticallyDampedVelocity - }; -} -export function underDampedSpringCalculations(animation, precalculatedValues) { - 'worklet'; - - const { - toValue - } = animation; - const { - zeta, - t, - omega0, - omega1, - x0, - v0 - } = precalculatedValues; - const sin1 = Math.sin(omega1 * t); - const cos1 = Math.cos(omega1 * t); - - // under damped - const underDampedEnvelope = Math.exp(-zeta * omega0 * t); - const underDampedFrag1 = underDampedEnvelope * (sin1 * ((v0 + zeta * omega0 * x0) / omega1) + x0 * cos1); - const underDampedPosition = toValue + underDampedFrag1; - // This looks crazy -- it's actually just the derivative of the oscillation function - const underDampedVelocity = -zeta * omega0 * underDampedFrag1 + underDampedEnvelope * (cos1 * (v0 + zeta * omega0 * x0) - omega1 * x0 * sin1); - return { - position: underDampedPosition, - velocity: underDampedVelocity - }; -} -export function isAnimationTerminatingCalculation(animation, config) { - 'worklet'; - - const { - toValue, - velocity, - startValue, - current, - initialEnergy - } = animation; - if (config.overshootClamping) { - const leftBound = startValue >= 0 ? toValue : toValue + startValue; - const rightBound = leftBound + Math.abs(startValue); - if (current < leftBound || current > rightBound) { - return true; - } - } - const currentEnergy = getEnergy(toValue - current, velocity, config.stiffness, config.mass); - return initialEnergy === 0 || currentEnergy / initialEnergy <= config.energyThreshold; -} -//# sourceMappingURL=springUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springUtils.js.map deleted file mode 100644 index 3b463ef2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/spring/springUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","checkIfConfigIsValid","config","errorMessage","forEach","prop","value","duration","clamp","min","max","warn","safeMergeConfigs","defaults","userConfig","filtered","Object","fromEntries","entries","filter","v","undefined","bisectRoot","func","precision","maxIterations","direction","idx","current","Math","abs","initialCalculations","stiffness","skipAnimation","zeta","omega0","omega1","useDuration","mass","m","dampingRatio","sqrt","damping","c","k","scaleZetaToMatchClamps","animation","toValue","startValue","toValueNum","Number","firstBound","secondBound","relativeExtremum1","relativeExtremum2","newZeta1","log","PI","newZeta2","zetaSatisfyingClamp","x","getEnergy","displacement","velocity","potentialEnergy","kineticEnergy","calculateNewStiffnessToMatchDuration","x0","v0","energyThreshold","threshold","targetDuration","energyDiffForStiffness","perceptualCoefficient","MILLISECONDS_IN_SECOND","settlingDuration","xtk","exp","vtk","e0","etk","energyFraction","EPSILON","criticallyDampedSpringCalculations","precalculatedValues","t","criticallyDampedEnvelope","criticallyDampedPosition","criticallyDampedVelocity","position","underDampedSpringCalculations","sin1","sin","cos1","cos","underDampedEnvelope","underDampedFrag1","underDampedPosition","underDampedVelocity","isAnimationTerminatingCalculation","initialEnergy","overshootClamping","leftBound","rightBound","currentEnergy"],"sourceRoot":"../../../../src","sources":["animation/spring/springUtils.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,cAAc;;AAIrC;AACA;;AA+BA,OAAO,SAASC,oBAAoBA,CAACC,MAA2B,EAAW;EACzE,SAAS;;EACT,IAAIC,YAAY,GAAG,EAAE;EAEnB,CAAC,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,iBAAiB,CAAC,CACnEC,OAAO,CAAEC,IAAI,IAAK;IAClB,MAAMC,KAAK,GAAGJ,MAAM,CAACG,IAAI,CAAC;IAC1B,IAAIC,KAAK,IAAI,CAAC,EAAE;MACdH,YAAY,IAAI,KAAKE,IAAI,qCAAqCC,KAAK,EAAE;IACvE;EACF,CAAC,CAAC;EAEF,IAAIJ,MAAM,CAACK,QAAQ,GAAG,CAAC,EAAE;IACvBJ,YAAY,IAAI,qCAAqCD,MAAM,CAACK,QAAQ,EAAE;EACxE;EAEA,IACEL,MAAM,CA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AG+B,EAAE,GAAG0B,IAAI,CAAC;EAE3D,MAAMI,mBAAmB,GAAGlD,OAAO,GAAGiD,gBAAgB;EACtD;EACA,MAAME,mBAAmB,GACvB,CAAChE,IAAI,GAAGC,MAAM,GAAG6D,gBAAgB,GACjCD,mBAAmB,IAChBF,IAAI,IAAIzB,EAAE,GAAGlC,IAAI,GAAGC,MAAM,GAAGgC,EAAE,CAAC,GAAG/B,MAAM,GAAG+B,EAAE,GAAGwB,IAAI,CAAC;EAE3D,OAAO;IAAEF,QAAQ,EAAEQ,mBAAmB;IAAElC,QAAQ,EAAEmC;EAAoB,CAAC;AACzE;AAEA,OAAO,SAASC,iCAAiCA,CAC/CrD,SAA+B,EAC/B5C,MAA+C,EACtC;EACT,SAAS;;EACT,MAAM;IAAE6C,OAAO;IAAEgB,QAAQ;IAAEf,UAAU;IAAEpB,OAAO;IAAEwE;EAAc,CAAC,GAAGtD,SAAS;EAE3E,IAAI5C,MAAM,CAACmG,iBAAiB,EAAE;IAC5B,MAAMC,SAAS,GAAGtD,UAAU,IAAI,CAAC,GAAGD,OAAO,GAAGA,OAAO,GAAGC,UAAU;IAClE,MAAMuD,UAAU,GAAGD,SAAS,GAAGzE,IAAI,CAACC,GAAG,CAACkB,UAAU,CAAC;IACnD,IAAIpB,OAAO,GAAG0E,SAAS,IAAI1E,OAAO,GAAG2E,UAAU,EAAE;MAC/C,OAAO,IAAI;IACb;EACF;EACA,MAAMC,aAAa,GAAG3C,SAAS,CAC7Bd,OAAO,GAAGnB,OAAO,EACjBmC,QAAQ,EACR7D,MAAM,CAAC8B,SAAS,EAChB9B,MAAM,CAACoC,IACT,CAAC;EAED,OACE8D,aAAa,KAAK,CAAC,IACnBI,aAAa,GAAGJ,aAAa,IAAIlG,MAAM,CAACmE,eAAe;AAE3D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/styleAnimation.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/styleAnimation.js deleted file mode 100644 index 7302dd2b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/styleAnimation.js +++ /dev/null @@ -1,180 +0,0 @@ -'use strict'; - -import { ColorProperties } from '../Colors'; -import { logger, processColor } from '../common'; -import { withTiming } from './timing'; -import { defineAnimation, isValidLayoutAnimationProp } from './util'; - -// resolves path to value for nested objects -// if path cannot be resolved returns undefined -function resolvePath(obj, path) { - 'worklet'; - - const keys = Array.isArray(path) ? path : [path]; - return keys.reduce((acc, current) => { - if (Array.isArray(acc) && typeof current === 'number') { - return acc[current]; - } else if (acc !== null && typeof acc === 'object' && current in acc) { - return acc[current]; - } - return undefined; - }, obj); -} - -// set value at given path - -function setPath(obj, path, value) { - 'worklet'; - - const keys = Array.isArray(path) ? path : [path]; - let currObj = obj; - for (let i = 0; i < keys.length - 1; i++) { - // creates entry if there isn't one - currObj = currObj; - if (!(keys[i] in currObj)) { - // if next key is a number create an array - if (typeof keys[i + 1] === 'number') { - currObj[keys[i]] = []; - } else { - currObj[keys[i]] = {}; - } - } - currObj = currObj[keys[i]]; - } - currObj[keys[keys.length - 1]] = value; -} -export function withStyleAnimation(styleAnimations) { - 'worklet'; - - return defineAnimation({}, () => { - 'worklet'; - - const onFrame = (animation, now) => { - let stillGoing = false; - const entriesToCheck = [{ - value: animation.styleAnimations, - path: [] - }]; - while (entriesToCheck.length > 0) { - const currentEntry = entriesToCheck.pop(); - if (Array.isArray(currentEntry.value)) { - for (let index = 0; index < currentEntry.value.length; index++) { - entriesToCheck.push({ - value: currentEntry.value[index], - path: currentEntry.path.concat(index) - }); - } - } else if (typeof currentEntry.value === 'object' && currentEntry.value.onFrame === undefined) { - // nested object - for (const key of Object.keys(currentEntry.value)) { - entriesToCheck.push({ - value: currentEntry.value[key], - path: currentEntry.path.concat(key) - }); - } - } else { - const currentStyleAnimation = currentEntry.value; - if (currentStyleAnimation.finished) { - continue; - } - const finished = currentStyleAnimation.onFrame(currentStyleAnimation, now); - if (finished) { - currentStyleAnimation.finished = true; - if (currentStyleAnimation.callback) { - currentStyleAnimation.callback(true); - } - } else { - stillGoing = true; - } - - // When working with animations changing colors, we need to make sure that each one of them begins with a rgba, not a processed number. - // Thus, we only set the path to a processed color, but currentStyleAnimation.current stays as rgba. - const isAnimatingColorProp = ColorProperties.includes(currentEntry.path[0]); - setPath(animation.current, currentEntry.path, isAnimatingColorProp ? processColor(currentStyleAnimation.current) : currentStyleAnimation.current); - } - } - return !stillGoing; - }; - const onStart = (animation, value, now, previousAnimation) => { - const entriesToCheck = [{ - value: styleAnimations, - path: [] - }]; - while (entriesToCheck.length > 0) { - const currentEntry = entriesToCheck.pop(); - if (Array.isArray(currentEntry.value)) { - for (let index = 0; index < currentEntry.value.length; index++) { - entriesToCheck.push({ - value: currentEntry.value[index], - path: currentEntry.path.concat(index) - }); - } - } else if (typeof currentEntry.value === 'object' && currentEntry.value.onStart === undefined) { - for (const key of Object.keys(currentEntry.value)) { - entriesToCheck.push({ - value: currentEntry.value[key], - path: currentEntry.path.concat(key) - }); - } - } else { - const prevAnimation = resolvePath(previousAnimation?.styleAnimations, currentEntry.path); - let prevVal = resolvePath(value, currentEntry.path); - if (prevAnimation && !prevVal) { - prevVal = prevAnimation.current; - } - if (__DEV__) { - if (prevVal === undefined) { - logger.warn(`Initial values for animation are missing for property ${currentEntry.path.join('.')}`); - } - const propName = currentEntry.path[0]; - if (typeof propName === 'string' && !isValidLayoutAnimationProp(propName.trim())) { - logger.warn(`'${propName}' property is not officially supported for layout animations. It may not work as expected.`); - } - } - setPath(animation.current, currentEntry.path, prevVal); - let currentAnimation; - if (typeof currentEntry.value !== 'object' || !currentEntry.value.onStart) { - currentAnimation = withTiming(currentEntry.value, { - duration: 0 - }); // TODO TYPESCRIPT this temporary cast is to get rid of .d.ts file. - setPath(animation.styleAnimations, currentEntry.path, currentAnimation); - } else { - currentAnimation = currentEntry.value; - } - currentAnimation.onStart(currentAnimation, prevVal, now, prevAnimation); - } - } - }; - const callback = finished => { - if (!finished) { - const animationsToCheck = [styleAnimations]; - while (animationsToCheck.length > 0) { - const currentAnimation = animationsToCheck.pop(); - if (Array.isArray(currentAnimation)) { - for (const element of currentAnimation) { - animationsToCheck.push(element); - } - } else if (typeof currentAnimation === 'object' && currentAnimation.onStart === undefined) { - for (const value of Object.values(currentAnimation)) { - animationsToCheck.push(value); - } - } else { - const currentStyleAnimation = currentAnimation; - if (!currentStyleAnimation.finished && currentStyleAnimation.callback) { - currentStyleAnimation.callback(false); - } - } - } - } - }; - return { - isHigherOrder: true, - onFrame, - onStart, - current: {}, - styleAnimations, - callback - }; - }); -} -//# sourceMappingURL=styleAnimation.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/styleAnimation.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/styleAnimation.js.map deleted file mode 100644 index 1de2aaf0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/styleAnimation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ColorProperties","logger","processColor","withTiming","defineAnimation","isValidLayoutAnimationProp","resolvePath","obj","path","keys","Array","isArray","reduce","acc","current","undefined","setPath","value","currObj","i","length","withStyleAnimation","styleAnimations","onFrame","animation","now","stillGoing","entriesToCheck","currentEntry","pop","index","push","concat","key","Object","currentStyleAnimation","finished","callback","isAnimatingColorProp","includes","onStart","previousAnimation","prevAnimation","prevVal","__DEV__","warn","join","propName","trim","currentAnimation","duration","animationsToCheck","element","values","isHigherOrder"],"sourceRoot":"../../../src","sources":["animation/styleAnimation.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,WAAW;AAC3C,SAASC,MAAM,EAAEC,YAAY,QAAQ,WAAW;AAWhD,SAASC,UAAU,QAAQ,UAAU;AACrC,SAASC,eAAe,EAAEC,0BAA0B,QAAQ,QAAQ;;AAEpE;AACA;AACA,SAASC,WAAWA,CAClBC,GAAoB,EACpBC,IAAyC,EACN;EACnC,SAAS;;EACT,MAAMC,IAA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B,IAAI,CAACd,KAAK,CAAC;YAC/B;UACF,CAAC,MAAM;YACL,MAAMkB,qBAAsC,GAC1Cc,gBAAmC;YACrC,IACE,CAACd,qBAAqB,CAACC,QAAQ,IAC/BD,qBAAqB,CAACE,QAAQ,EAC9B;cACAF,qBAAqB,CAACE,QAAQ,CAAC,KAAK,CAAC;YACvC;UACF;QACF;MACF;IACF,CAAC;IAED,OAAO;MACLiB,aAAa,EAAE,IAAI;MACnB/B,OAAO;MACPiB,OAAO;MACP1B,OAAO,EAAE,CAAC,CAAC;MACXQ,eAAe;MACfe;IACF,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/timing.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/timing.js deleted file mode 100644 index 9737bca4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/timing.js +++ /dev/null @@ -1,100 +0,0 @@ -'use strict'; - -import { Easing } from '../Easing'; -import { assertEasingIsWorklet, defineAnimation, getReduceMotionForAnimation } from './util'; - -/** - * The timing animation configuration. - * - * @param duration - Length of the animation (in milliseconds). Defaults to 300. - * @param easing - An easing function which defines the animation curve. - * Defaults to `Easing.inOut(Easing.quad)`. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withTiming#config- - */ - -// TODO TYPESCRIPT This is temporary type put in here to get rid of our .d.ts file - -/** - * Lets you create an animation based on duration and easing. - * - * @param toValue - The value on which the animation will come at rest - - * {@link AnimatableValue}. - * @param config - The timing animation configuration - {@link TimingConfig}. - * @param callback - A function called on animation complete - - * {@link AnimationCallback}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withTiming - */ -export const withTiming = function (toValue, userConfig, callback) { - 'worklet'; - - if (__DEV__ && userConfig?.easing) { - assertEasingIsWorklet(userConfig.easing); - } - return defineAnimation(toValue, () => { - 'worklet'; - - const config = { - duration: 300, - easing: Easing.inOut(Easing.quad) - }; - if (userConfig) { - Object.keys(userConfig).forEach(key => config[key] = userConfig[key]); - } - function timing(animation, now) { - // eslint-disable-next-line @typescript-eslint/no-shadow - const { - toValue, - startTime, - startValue - } = animation; - const runtime = now - startTime; - if (runtime >= config.duration) { - // reset startTime to avoid reusing finished animation config in `start` method - animation.startTime = 0; - animation.current = toValue; - return true; - } - const progress = animation.easing(runtime / config.duration); - animation.current = startValue + (toValue - startValue) * progress; - return false; - } - function onStart(animation, value, now, previousAnimation) { - if (previousAnimation && previousAnimation.type === 'timing' && previousAnimation.toValue === toValue && previousAnimation.startTime) { - // to maintain continuity of timing animations we check if we are starting - // new timing over the old one with the same parameters. If so, we want - // to copy animation timeline properties - animation.startTime = previousAnimation.startTime; - animation.startValue = previousAnimation.startValue; - } else { - animation.startTime = now; - animation.startValue = value; - } - animation.current = value; - if (typeof config.easing === 'object') { - animation.easing = config.easing.factory(); - } else { - animation.easing = config.easing; - } - } - return { - type: 'timing', - onFrame: timing, - onStart: onStart, - progress: 0, - toValue, - startValue: 0, - startTime: 0, - easing: () => 0, - current: toValue, - callback, - reduceMotion: getReduceMotionForAnimation(userConfig?.reduceMotion) - }; - }); -}; -//# sourceMappingURL=timing.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/timing.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/timing.js.map deleted file mode 100644 index b6c9b1cd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/timing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Easing","assertEasingIsWorklet","defineAnimation","getReduceMotionForAnimation","withTiming","toValue","userConfig","callback","__DEV__","easing","config","duration","inOut","quad","Object","keys","forEach","key","timing","animation","now","startTime","startValue","runtime","current","progress","onStart","value","previousAnimation","type","factory","onFrame","reduceMotion"],"sourceRoot":"../../../src","sources":["animation/timing.ts"],"mappings":"AAAA,YAAY;;AAUZ,SAASA,MAAM,QAAQ,WAAW;AAClC,SACEC,qBAAqB,EACrBC,eAAe,EACfC,2BAA2B,QACtB,QAAQ;;AAEf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyBA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,GAAG,SAAAA,CACxBC,OAAwB,EACxBC,UAAyB,EACzBC,QAA4B,EACA;EAC5B,SAAS;;EAET,IAAIC,OAAO,IAAIF,UAAU,EAAEG,MAAM,EAAE;IACjCR,qBAAqB,CAACK,UAAU,CAACG,MAAM,CAAC;EAC1C;EAEA,OAAOP,eAAe,CAAkBG,OAAO,EAAE,MAAM;IACrD,SAAS;;IACT,MAAMK,MAAoD,GAAG;MAC3DC,QAAQ,EAAE,GAAG;MACbF,MAAM,EAAET,MAAM,CAACY,KAAK,CAACZ,MAAM,CAACa,IAAI;IAClC,CAAC;IACD,IAAIP,UAAU,EAAE;MACdQ,MAAM,CAACC,IAAI,CAACT,UAAU,CAAC,CAACU,OAAO,CAC5BC,GAAG,IACAP,MAAM,CAASO,GAAG,CAAC,GAAGX,UAAU,CAACW,GAAG,CAC1C,CAAC;IACH;IAEA,SAASC,MAAMA,CAACC,SAA+B,EAAEC,GAAc,EAAW;MACxE;MACA,MAAM;QAAEf,OAAO;QAAEgB,SAAS;QAAEC;MAAW,CAAC,GAAGH,SAAS;MACpD,MAAMI,OAAO,GAAGH,GAAG,GAAGC,SAAS;MAE/B,IAAIE,OAAO,IAAIb,MAAM,CAACC,QAAQ,EAAE;QAC9B;QACAQ,SAAS,CAACE,SAAS,GAAG,CAAC;QACvBF,SAAS,CAACK,OAAO,GAAGnB,OAAO;QAC3B,OAAO,IAAI;MACb;MACA,MAAMoB,QAAQ,G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AmB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/transformationMatrix/matrixUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/transformationMatrix/matrixUtils.js deleted file mode 100644 index 0d4ada82..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/transformationMatrix/matrixUtils.js +++ /dev/null @@ -1,195 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../common'; -export function isAffineMatrixFlat(x) { - 'worklet'; - - return Array.isArray(x) && x.length === 16 && x.every(element => typeof element === 'number' && !isNaN(element)); -} -export function isAffineMatrix(x) { - 'worklet'; - - return Array.isArray(x) && x.length === 4 && x.every(row => Array.isArray(row) && row.length === 4 && row.every(element => typeof element === 'number' && !isNaN(element))); -} -export function flatten(matrix) { - 'worklet'; - - return matrix.flat(); -} -export function unflatten(m) { - 'worklet'; - - return [[m[0], m[1], m[2], m[3]], [m[4], m[5], m[6], m[7]], [m[8], m[9], m[10], m[11]], [m[12], m[13], m[14], m[15]]]; -} -function maybeFlattenMatrix(matrix) { - 'worklet'; - - return isAffineMatrix(matrix) ? flatten(matrix) : matrix; -} -export function multiplyMatrices(a, b) { - 'worklet'; - - return [[a[0][0] * b[0][0] + a[0][1] * b[1][0] + a[0][2] * b[2][0] + a[0][3] * b[3][0], a[0][0] * b[0][1] + a[0][1] * b[1][1] + a[0][2] * b[2][1] + a[0][3] * b[3][1], a[0][0] * b[0][2] + a[0][1] * b[1][2] + a[0][2] * b[2][2] + a[0][3] * b[3][2], a[0][0] * b[0][3] + a[0][1] * b[1][3] + a[0][2] * b[2][3] + a[0][3] * b[3][3]], [a[1][0] * b[0][0] + a[1][1] * b[1][0] + a[1][2] * b[2][0] + a[1][3] * b[3][0], a[1][0] * b[0][1] + a[1][1] * b[1][1] + a[1][2] * b[2][1] + a[1][3] * b[3][1], a[1][0] * b[0][2] + a[1][1] * b[1][2] + a[1][2] * b[2][2] + a[1][3] * b[3][2], a[1][0] * b[0][3] + a[1][1] * b[1][3] + a[1][2] * b[2][3] + a[1][3] * b[3][3]], [a[2][0] * b[0][0] + a[2][1] * b[1][0] + a[2][2] * b[2][0] + a[2][3] * b[3][0], a[2][0] * b[0][1] + a[2][1] * b[1][1] + a[2][2] * b[2][1] + a[2][3] * b[3][1], a[2][0] * b[0][2] + a[2][1] * b[1][2] + a[2][2] * b[2][2] + a[2][3] * b[3][2], a[2][0] * b[0][3] + a[2][1] * b[1][3] + a[2][2] * b[2][3] + a[2][3] * b[3][3]], [a[3][0] * b[0][0] + a[3][1] * b[1][0] + a[3][2] * b[2][0] + a[3][3] * b[3][0], a[3][0] * b[0][1] + a[3][1] * b[1][1] + a[3][2] * b[2][1] + a[3][3] * b[3][1], a[3][0] * b[0][2] + a[3][1] * b[1][2] + a[3][2] * b[2][2] + a[3][3] * b[3][2], a[3][0] * b[0][3] + a[3][1] * b[1][3] + a[3][2] * b[2][3] + a[3][3] * b[3][3]]]; -} -export function subtractMatrices(maybeFlatA, maybeFlatB) { - 'worklet'; - - const isFlatOnStart = isAffineMatrixFlat(maybeFlatA); - const a = maybeFlattenMatrix(maybeFlatA); - const b = maybeFlattenMatrix(maybeFlatB); - const c = a.map((_, i) => a[i] - b[i]); - return isFlatOnStart ? c : unflatten(c); -} -export function addMatrices(maybeFlatA, maybeFlatB) { - 'worklet'; - - const isFlatOnStart = isAffineMatrixFlat(maybeFlatA); - const a = maybeFlattenMatrix(maybeFlatA); - const b = maybeFlattenMatrix(maybeFlatB); - const c = a.map((_, i) => a[i] + b[i]); - return isFlatOnStart ? c : unflatten(c); -} -export function scaleMatrix(maybeFlatA, scalar) { - 'worklet'; - - const isFlatOnStart = isAffineMatrixFlat(maybeFlatA); - const a = maybeFlattenMatrix(maybeFlatA); - const b = a.map(x => x * scalar); - return isFlatOnStart ? b : unflatten(b); -} -export function getRotationMatrix(angle, axis = 'z') { - 'worklet'; - - const cos = Math.cos(angle); - const sin = Math.sin(angle); - switch (axis) { - case 'z': - return [[cos, sin, 0, 0], [-sin, cos, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]; - case 'y': - return [[cos, 0, -sin, 0], [0, 1, 0, 0], [sin, 0, cos, 0], [0, 0, 0, 1]]; - case 'x': - return [[1, 0, 0, 0], [0, cos, sin, 0], [0, -sin, cos, 0], [0, 0, 0, 1]]; - } -} -function norm3d(x, y, z) { - 'worklet'; - - return Math.sqrt(x * x + y * y + z * z); -} -function transposeMatrix(matrix) { - 'worklet'; - - const m = flatten(matrix); - return [[m[0], m[4], m[8], m[12]], [m[1], m[5], m[9], m[13]], [m[2], m[6], m[10], m[14]], [m[3], m[7], m[11], m[15]]]; -} -function assertVectorsHaveEqualLengths(a, b) { - 'worklet'; - - if (__DEV__ && a.length !== b.length) { - throw new ReanimatedError(`Cannot calculate inner product of two vectors of different lengths. Length of ${a.toString()} is ${a.length} and length of ${b.toString()} is ${b.length}.`); - } -} -function innerProduct(a, b) { - 'worklet'; - - assertVectorsHaveEqualLengths(a, b); - return a.reduce((acc, _, i) => acc + a[i] * b[i], 0); -} -function projection(u, a) { - 'worklet'; - - assertVectorsHaveEqualLengths(u, a); - const s = innerProduct(u, a) / innerProduct(u, u); - return u.map(e => e * s); -} -function subtractVectors(a, b) { - 'worklet'; - - assertVectorsHaveEqualLengths(a, b); - return a.map((_, i) => a[i] - b[i]); -} -function scaleVector(u, a) { - 'worklet'; - - return u.map(e => e * a); -} -function gramSchmidtAlgorithm(matrix) { - // Gram-Schmidt orthogonalization decomposes any matrix with non-zero determinant into an orthogonal and a triangular matrix - // These matrices are equal to rotation and skew matrices respectively, because we apply it to transformation matrix - // That is expected to already have extracted the remaining transforms (scale & translation) - 'worklet'; - - const [a0, a1, a2, a3] = matrix; - const u0 = a0; - const u1 = subtractVectors(a1, projection(u0, a1)); - const u2 = subtractVectors(subtractVectors(a2, projection(u0, a2)), projection(u1, a2)); - const u3 = subtractVectors(subtractVectors(subtractVectors(a3, projection(u0, a3)), projection(u1, a3)), projection(u2, a3)); - const [e0, e1, e2, e3] = [u0, u1, u2, u3].map(u => scaleVector(u, 1 / Math.sqrt(innerProduct(u, u)))); - const rotationMatrix = [[e0[0], e1[0], e2[0], e3[0]], [e0[1], e1[1], e2[1], e3[1]], [e0[2], e1[2], e2[2], e3[2]], [e0[3], e1[3], e2[3], e3[3]]]; - const skewMatrix = [[innerProduct(e0, a0), innerProduct(e0, a1), innerProduct(e0, a2), innerProduct(e0, a3)], [0, innerProduct(e1, a1), innerProduct(e1, a2), innerProduct(e1, a3)], [0, 0, innerProduct(e2, a2), innerProduct(e2, a3)], [0, 0, 0, innerProduct(e3, a3)]]; - return { - rotationMatrix: transposeMatrix(rotationMatrix), - skewMatrix: transposeMatrix(skewMatrix) - }; -} -export function decomposeMatrix(unknownTypeMatrix) { - 'worklet'; - - const matrix = maybeFlattenMatrix(unknownTypeMatrix); - - // normalize matrix - if (matrix[15] === 0) { - throw new ReanimatedError('Invalid transform matrix.'); - } - matrix.forEach((_, i) => matrix[i] /= matrix[15]); - const translationMatrix = [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [matrix[12], matrix[13], matrix[14], 1]]; - const sx = matrix[15] * norm3d(matrix[0], matrix[4], matrix[8]); - const sy = matrix[15] * norm3d(matrix[1], matrix[5], matrix[9]); - const sz = matrix[15] * norm3d(matrix[2], matrix[6], matrix[10]); - - // eslint-disable-next-line @typescript-eslint/no-shadow - const scaleMatrix = [[sx, 0, 0, 0], [0, sy, 0, 0], [0, 0, sz, 0], [0, 0, 0, 1]]; - const rotationAndSkewMatrix = [[matrix[0] / sx, matrix[1] / sx, matrix[2] / sx, 0], [matrix[4] / sy, matrix[5] / sy, matrix[6] / sy, 0], [matrix[8] / sz, matrix[9] / sz, matrix[10] / sz, 0], [0, 0, 0, 1]]; - const { - rotationMatrix, - skewMatrix - } = gramSchmidtAlgorithm(rotationAndSkewMatrix); - return { - translationMatrix, - scaleMatrix, - rotationMatrix, - skewMatrix - }; -} -export function decomposeMatrixIntoMatricesAndAngles(matrix) { - 'worklet'; - - // eslint-disable-next-line @typescript-eslint/no-shadow - const { - scaleMatrix, - rotationMatrix, - translationMatrix, - skewMatrix - } = decomposeMatrix(matrix); - const sinRy = -rotationMatrix[0][2]; - const ry = Math.asin(sinRy); - let rx; - let rz; - if (sinRy === 1 || sinRy === -1) { - rz = 0; - rx = Math.atan2(sinRy * rotationMatrix[0][1], sinRy * rotationMatrix[0][2]); - } else { - rz = Math.atan2(rotationMatrix[0][1], rotationMatrix[0][0]); - rx = Math.atan2(rotationMatrix[1][2], rotationMatrix[2][2]); - } - return { - scaleMatrix, - rotationMatrix, - translationMatrix, - skewMatrix, - rx: rx || 0, - ry: ry || 0, - rz: rz || 0 - }; -} -//# sourceMappingURL=matrixUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/transformationMatrix/matrixUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/transformationMatrix/matrixUtils.js.map deleted file mode 100644 index 139eaca3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/transformationMatrix/matrixUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","isAffineMatrixFlat","x","Array","isArray","length","every","element","isNaN","isAffineMatrix","row","flatten","matrix","flat","unflatten","m","maybeFlattenMatrix","multiplyMatrices","a","b","subtractMatrices","maybeFlatA","maybeFlatB","isFlatOnStart","c","map","_","i","addMatrices","scaleMatrix","scalar","getRotationMatrix","angle","axis","cos","Math","sin","norm3d","y","z","sqrt","transposeMatrix","assertVectorsHaveEqualLengths","__DEV__","toString","innerProduct","reduce","acc","projection","u","s","e","subtractVectors","scaleVector","gramSchmidtAlgorithm","a0","a1","a2","a3","u0","u1","u2","u3","e0","e1","e2","e3","rotationMatrix","skewMatrix","decomposeMatrix","unknownTypeMatrix","forEach","translationMatrix","sx","sy","sz","rotationAndSkewMatrix","decomposeMatrixIntoMatricesAndAngles","sinRy","ry","asin","rx","rz","atan2"],"s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EC,eAAe,CAACzD,MAAM,CAAC;EAEzB,MAAMkE,KAAK,GAAG,CAACX,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAEnC,MAAMY,EAAE,GAAG5C,IAAI,CAAC6C,IAAI,CAACF,KAAK,CAAC;EAC3B,IAAIG,EAAE;EACN,IAAIC,EAAE;EACN,IAAIJ,KAAK,KAAK,CAAC,IAAIA,KAAK,KAAK,CAAC,CAAC,EAAE;IAC/BI,EAAE,GAAG,CAAC;IACND,EAAE,GAAG9C,IAAI,CAACgD,KAAK,CAACL,KAAK,GAAGX,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEW,KAAK,GAAGX,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAC7E,CAAC,MAAM;IACLe,EAAE,GAAG/C,IAAI,CAACgD,KAAK,CAAChB,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEA,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3Dc,EAAE,GAAG9C,IAAI,CAACgD,KAAK,CAAChB,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEA,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAC7D;EAEA,OAAO;IACLtC,WAAW;IACXsC,cAAc;IACdK,iBAAiB;IACjBJ,UAAU;IACVa,EAAE,EAAEA,EAAE,IAAI,CAAC;IACXF,EAAE,EAAEA,EAAE,IAAI,CAAC;IACXG,EAAE,EAAEA,EAAE,IAAI;EACZ,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/util.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/util.js deleted file mode 100644 index 80aa4e37..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/util.js +++ /dev/null @@ -1,396 +0,0 @@ -/* eslint-disable @typescript-eslint/no-shadow */ -'use strict'; - -import { createSerializable, isWorkletFunction, runOnUI, RuntimeKind, serializableMappingCache } from 'react-native-worklets'; -import { clampRGBA, convertToRGBA, isColor, rgbaArrayToRGBAColor, toGammaSpace, toLinearSpace } from '../Colors'; -import { logger, ReanimatedError, SHOULD_BE_USE_WEB } from '../common'; -import { ReduceMotion } from '../commonTypes'; -import { ReducedMotionManager } from '../ReducedMotion'; -import { addMatrices, decomposeMatrixIntoMatricesAndAngles, flatten, getRotationMatrix, isAffineMatrixFlat, multiplyMatrices, scaleMatrix, subtractMatrices } from './transformationMatrix/matrixUtils'; - -/** - * This variable has to be an object, because it can't be changed for the - * worklets if it's a primitive value. We also have to bind it to a separate - * object to prevent from freezing it in development. - */ -const IN_STYLE_UPDATER = { - current: false -}; -const IN_STYLE_UPDATER_UI = createSerializable({ - current: false -}); -serializableMappingCache.set(IN_STYLE_UPDATER, IN_STYLE_UPDATER_UI); -const LAYOUT_ANIMATION_SUPPORTED_PROPS = { - originX: true, - originY: true, - width: true, - height: true, - borderRadius: true, - globalOriginX: true, - globalOriginY: true, - opacity: true, - transform: true, - backgroundColor: true -}; -export function isValidLayoutAnimationProp(prop) { - 'worklet'; - - return prop in LAYOUT_ANIMATION_SUPPORTED_PROPS; -} -if (__DEV__ && ReducedMotionManager.jsValue) { - logger.warn(`Reduced motion setting is enabled on this device. This warning is visible only in the development mode. Some animations will be disabled by default. You can override the behavior for individual animations, see https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#reduced-motion-setting-is-enabled-on-this-device.`); -} -export function assertEasingIsWorklet(easing) { - 'worklet'; - - if (globalThis.__RUNTIME_KIND !== RuntimeKind.ReactNative) { - // If this is called on UI (for example from gesture handler with worklets), we don't get easing, - // but its bound copy, which is not a worklet. We don't want to throw any error then. - return; - } - if (SHOULD_BE_USE_WEB) { - // It is possible to run reanimated on web without plugin, so let's skip this check on web - return; - } - // @ts-ignore typescript wants us to use `in` instead, which doesn't work with host objects - if (easing?.factory) { - return; - } - if (!isWorkletFunction(easing)) { - throw new ReanimatedError('The easing function is not a worklet. Please make sure you import `Easing` from react-native-reanimated.'); - } -} -export function initialUpdaterRun(updater) { - IN_STYLE_UPDATER.current = true; - const result = updater(); - IN_STYLE_UPDATER.current = false; - return result; -} -export function recognizePrefixSuffix(value) { - 'worklet'; - - if (typeof value === 'string') { - const match = value.match(/([A-Za-z]*)(-?\d*\.?\d*)([eE][-+]?[0-9]+)?([A-Za-z%]*)/); - if (!match) { - throw new ReanimatedError("Couldn't parse animation value."); - } - const prefix = match[1]; - const suffix = match[4]; - // number with scientific notation - const number = match[2] + (match[3] ?? ''); - return { - prefix, - suffix, - strippedValue: parseFloat(number) - }; - } else { - return { - strippedValue: value - }; - } -} - -/** - * Returns whether the motion should be reduced for a specified config. By - * default returns the system setting. - */ -const isReduceMotionOnUI = ReducedMotionManager.uiValue; -export function getReduceMotionFromConfig(config) { - 'worklet'; - - return !config || config === ReduceMotion.System ? isReduceMotionOnUI.value : config === ReduceMotion.Always; -} - -/** - * Returns the value that should be assigned to `animation.reduceMotion` for a - * given config. If the config is not defined, `undefined` is returned. - */ -export function getReduceMotionForAnimation(config) { - 'worklet'; - - // if the config is not defined, we want `reduceMotion` to be undefined, - // so the parent animation knows if it should overwrite it - if (!config) { - return undefined; - } - return getReduceMotionFromConfig(config); -} -function applyProgressToMatrix(progress, a, b) { - 'worklet'; - - return addMatrices(a, scaleMatrix(subtractMatrices(b, a), progress)); -} -function applyProgressToNumber(progress, a, b) { - 'worklet'; - - return a + progress * (b - a); -} -function decorateAnimation(animation) { - 'worklet'; - - const baseOnStart = animation.onStart; - const baseOnFrame = animation.onFrame; - if (animation.isHigherOrder) { - animation.onStart = (animation, value, timestamp, previousAnimation) => { - if (animation.reduceMotion === undefined) { - animation.reduceMotion = getReduceMotionFromConfig(); - } - return baseOnStart(animation, value, timestamp, previousAnimation); - }; - return; - } - const animationCopy = Object.assign({}, animation); - delete animationCopy.callback; - const prefNumberSuffOnStart = (animation, value, timestamp, previousAnimation) => { - // recognize prefix, suffix, and updates stripped value on animation start - const { - prefix, - suffix, - strippedValue - } = recognizePrefixSuffix(value); - animation.__prefix = prefix; - animation.__suffix = suffix; - animation.strippedCurrent = strippedValue; - const { - strippedValue: strippedToValue - } = recognizePrefixSuffix(animation.toValue); - animation.current = strippedValue; - animation.startValue = strippedValue; - animation.toValue = strippedToValue; - if (previousAnimation && previousAnimation !== animation) { - const { - prefix: paPrefix, - suffix: paSuffix, - strippedValue: paStrippedValue - } = recognizePrefixSuffix(previousAnimation.current); - previousAnimation.current = paStrippedValue; - previousAnimation.__prefix = paPrefix; - previousAnimation.__suffix = paSuffix; - } - baseOnStart(animation, strippedValue, timestamp, previousAnimation); - animation.current = (animation.__prefix ?? '') + animation.current + (animation.__suffix ?? ''); - if (previousAnimation && previousAnimation !== animation) { - previousAnimation.current = (previousAnimation.__prefix ?? '') + - // FIXME - // eslint-disable-next-line @typescript-eslint/restrict-plus-operands, @typescript-eslint/no-base-to-string - previousAnimation.current + (previousAnimation.__suffix ?? ''); - } - }; - const prefNumberSuffOnFrame = (animation, timestamp) => { - animation.current = animation.strippedCurrent; - const res = baseOnFrame(animation, timestamp); - animation.strippedCurrent = animation.current; - animation.current = (animation.__prefix ?? '') + animation.current + (animation.__suffix ?? ''); - return res; - }; - const tab = ['R', 'G', 'B', 'A']; - const colorOnStart = (animation, value, timestamp, previousAnimation) => { - let RGBAValue; - let RGBACurrent; - let RGBAToValue; - const res = []; - if (isColor(value)) { - RGBACurrent = toLinearSpace(convertToRGBA(animation.current)); - RGBAValue = toLinearSpace(convertToRGBA(value)); - if (animation.toValue) { - RGBAToValue = toLinearSpace(convertToRGBA(animation.toValue)); - } - } - tab.forEach((i, index) => { - animation[i] = Object.assign({}, animationCopy); - animation[i].current = RGBACurrent[index]; - animation[i].toValue = RGBAToValue ? RGBAToValue[index] : undefined; - animation[i].onStart(animation[i], RGBAValue[index], timestamp, previousAnimation ? previousAnimation[i] : undefined); - res.push(animation[i].current); - }); - animation.unroundedCurrent = res; - - // We need to clamp the res values to make sure they are in the correct RGBA range - clampRGBA(res); - animation.current = rgbaArrayToRGBAColor(toGammaSpace(res)); - }; - const colorOnFrame = (animation, timestamp) => { - const res = []; - let finished = true; - // We must restore nonscale current to ever end the animation. - animation.current = animation.nonscaledCurrent; - tab.forEach(i => { - const result = animation[i].onFrame(animation[i], timestamp); - // We really need to assign this value to result, instead of passing it directly - otherwise once "finished" is false, onFrame won't be called - finished = finished && result; - res.push(animation[i].current); - }); - - // We need to clamp the res values to make sure they are in the correct RGBA range - clampRGBA(res); - animation.nonscaledCurrent = res; - animation.current = rgbaArrayToRGBAColor(toGammaSpace(res)); - return finished; - }; - const transformationMatrixOnStart = (animation, value, timestamp, previousAnimation) => { - const toValue = animation.toValue; - animation.startMatrices = decomposeMatrixIntoMatricesAndAngles(value); - animation.stopMatrices = decomposeMatrixIntoMatricesAndAngles(toValue); - - // We create an animation copy to animate single value between 0 and 100 - // We set limits from 0 to 100 (instead of 0-1) to make spring look good - // with default thresholds. - - animation[0] = Object.assign({}, animationCopy); - animation[0].current = 0; - animation[0].toValue = 100; - animation[0].onStart(animation[0], 0, timestamp, previousAnimation ? previousAnimation[0] : undefined); - animation.current = value; - }; - const transformationMatrixOnFrame = (animation, timestamp) => { - let finished = true; - const result = animation[0].onFrame(animation[0], timestamp); - // We really need to assign this value to result, instead of passing it directly - otherwise once "finished" is false, onFrame won't be called - finished = finished && result; - const progress = animation[0].current / 100; - const transforms = ['translationMatrix', 'scaleMatrix', 'skewMatrix']; - const mappedTransforms = []; - transforms.forEach((key, _) => mappedTransforms.push(applyProgressToMatrix(progress, animation.startMatrices[key], animation.stopMatrices[key]))); - const [currentTranslation, currentScale, skewMatrix] = mappedTransforms; - const rotations = ['x', 'y', 'z']; - const mappedRotations = []; - rotations.forEach((key, _) => { - const angle = applyProgressToNumber(progress, animation.startMatrices['r' + key], animation.stopMatrices['r' + key]); - mappedRotations.push(getRotationMatrix(angle, key)); - }); - const [rotationMatrixX, rotationMatrixY, rotationMatrixZ] = mappedRotations; - const rotationMatrix = multiplyMatrices(rotationMatrixX, multiplyMatrices(rotationMatrixY, rotationMatrixZ)); - const updated = flatten(multiplyMatrices(multiplyMatrices(currentScale, multiplyMatrices(skewMatrix, rotationMatrix)), currentTranslation)); - animation.current = updated; - return finished; - }; - const arrayOnStart = (animation, value, timestamp, previousAnimation) => { - value.forEach((v, i) => { - animation[i] = Object.assign({}, animationCopy); - animation[i].current = v; - animation[i].toValue = animation.toValue[i]; - animation[i].onStart(animation[i], v, timestamp, previousAnimation ? previousAnimation[i] : undefined); - }); - animation.current = [...value]; - }; - const arrayOnFrame = (animation, timestamp) => { - let finished = true; - animation.current.forEach((_, i) => { - const result = animation[i].onFrame(animation[i], timestamp); - // We really need to assign this value to result, instead of passing it directly - otherwise once "finished" is false, onFrame won't be called - finished = finished && result; - animation.current[i] = animation[i].current; - }); - return finished; - }; - const objectOnStart = (animation, value, timestamp, previousAnimation) => { - for (const key in value) { - animation[key] = Object.assign({}, animationCopy); - animation[key].onStart = animation.onStart; - animation[key].current = value[key]; - animation[key].toValue = animation.toValue[key]; - animation[key].onStart(animation[key], value[key], timestamp, previousAnimation ? previousAnimation[key] : undefined); - } - animation.current = value; - }; - const objectOnFrame = (animation, timestamp) => { - let finished = true; - const newObject = {}; - for (const key in animation.current) { - const result = animation[key].onFrame(animation[key], timestamp); - // We really need to assign this value to result, instead of passing it directly - otherwise once "finished" is false, onFrame won't be called - finished = finished && result; - newObject[key] = animation[key].current; - } - animation.current = newObject; - return finished; - }; - animation.onStart = (animation, value, timestamp, previousAnimation) => { - if (animation.reduceMotion === undefined) { - animation.reduceMotion = getReduceMotionFromConfig(); - } - if (animation.reduceMotion) { - if (animation.toValue !== undefined) { - animation.current = animation.toValue; - } else { - // if there is no `toValue`, then the base function is responsible for setting the current value - baseOnStart(animation, value, timestamp, previousAnimation); - } - animation.startTime = 0; - animation.onFrame = () => true; - return; - } - if (isColor(value)) { - colorOnStart(animation, value, timestamp, previousAnimation); - animation.onFrame = colorOnFrame; - return; - } else if (isAffineMatrixFlat(value)) { - transformationMatrixOnStart(animation, value, timestamp, previousAnimation); - animation.onFrame = transformationMatrixOnFrame; - return; - } else if (Array.isArray(value)) { - arrayOnStart(animation, value, timestamp, previousAnimation); - animation.onFrame = arrayOnFrame; - return; - } else if (typeof value === 'string') { - prefNumberSuffOnStart(animation, value, timestamp, previousAnimation); - animation.onFrame = prefNumberSuffOnFrame; - return; - } else if (typeof value === 'object' && value !== null) { - objectOnStart(animation, value, timestamp, previousAnimation); - animation.onFrame = objectOnFrame; - return; - } - baseOnStart(animation, value, timestamp, previousAnimation); - }; -} -export function defineAnimation(starting, factory) { - 'worklet'; - - if (globalThis.__RUNTIME_KIND === RuntimeKind.ReactNative && IN_STYLE_UPDATER.current) { - return starting; - } - const create = () => { - 'worklet'; - - const animation = factory(); - decorateAnimation(animation); - return animation; - }; - if (globalThis.__RUNTIME_KIND !== RuntimeKind.ReactNative || SHOULD_BE_USE_WEB) { - return create(); - } - create.__isAnimationDefinition = true; - - // @ts-expect-error it's fine - return create; -} -function cancelAnimationNative(sharedValue) { - 'worklet'; - - // setting the current value cancels the animation if one is currently running - if (globalThis.__RUNTIME_KIND !== RuntimeKind.ReactNative) { - sharedValue.value = sharedValue.value; // eslint-disable-line no-self-assign - } else { - runOnUI(() => { - 'worklet'; - - sharedValue.value = sharedValue.value; // eslint-disable-line no-self-assign - })(); - } -} -function cancelAnimationWeb(sharedValue) { - // setting the current value cancels the animation if one is currently running - sharedValue.value = sharedValue.value; // eslint-disable-line no-self-assign -} - -/** - * Lets you cancel a running animation paired to a shared value. The - * cancellation is asynchronous. - * - * @param sharedValue - The shared value of a running animation that you want to - * cancel. - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/cancelAnimation - */ -export const cancelAnimation = SHOULD_BE_USE_WEB ? cancelAnimationWeb : cancelAnimationNative; -//# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/util.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/util.js.map deleted file mode 100644 index 1f9ebf85..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animation/util.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createSerializable","isWorkletFunction","runOnUI","RuntimeKind","serializableMappingCache","clampRGBA","convertToRGBA","isColor","rgbaArrayToRGBAColor","toGammaSpace","toLinearSpace","logger","ReanimatedError","SHOULD_BE_USE_WEB","ReduceMotion","ReducedMotionManager","addMatrices","decomposeMatrixIntoMatricesAndAngles","flatten","getRotationMatrix","isAffineMatrixFlat","multiplyMatrices","scaleMatrix","subtractMatrices","IN_STYLE_UPDATER","current","IN_STYLE_UPDATER_UI","set","LAYOUT_ANIMATION_SUPPORTED_PROPS","originX","originY","width","height","borderRadius","globalOriginX","globalOriginY","opacity","transform","backgroundColor","isValidLayoutAnimationProp","prop","__DEV__","jsValue","warn","assertEasingIsWorklet","easing","globalThis","__RUNTIME_KIND","ReactNative","factory","initialUpdaterRun","updater","result","recognizePrefixSuffix","value","match","prefix","suffix","number","strippedValue","parseFloat","isReduceMotionOnUI","uiValue","getReduceMotionFromConfig","config","System","Always","getReduceMotionForAnimation","undefined","applyProgressToMatrix","progress","a","b","applyProgressToNumber","decorateAnimation","animation","baseOnStart","onStart","baseOnFrame","onFrame","isHigherOrder","timestamp","previousAnimation","reduceMotion","animationCopy","Object","assign","callback","prefNumberSuffOnStart","__prefix","__suffix","strippedCurrent","strippedToValue","toValue","startValue","paPrefix","paSuffix","paStrippedValue","prefNumberSuffOnFrame","res","tab","colorOnStart","RGBAValue","RGBACurrent","RGBAToValue","forEach","i","index","push","unroundedCurrent","colorOnFrame","finished","nonscaledCurrent","transformationMatrixOnStart","startMatrices","stopMatrices","transformationMatrixOnFrame","transforms","mappedTransforms","key","_","currentTranslation","currentScale","skewMatrix","rotations","mappedRotations","angle","rotationMatrixX","rotationMatrixY","rotationMatrixZ","rotationMatrix","updated","arrayOnStart","v","arrayOnFrame","objectOnStart","objectOnFrame","newObject","startTime","Array","isArray","defineAnimation","starting","create","__isAnimationDefinition","cancelAnimationNative","sharedValue","cancelAnimationWeb","cancelAnimation"],"sourceRoot":"../../../src","sources":["animation/util.ts"],"mappings":"AAAA;AACA,YAAY;;AACZ,SACEA,kBAAkB,EAClBC,iBAAiB,EACjBC,OAAO,EACPC,WAAW,EACXC,wBAAwB,QACnB,uBAAuB;AAG9B,SACEC,SAAS,EACTC,aAAa,EACbC,OAAO,EACPC,oBAAoB,EACpBC,YAAY,EACZC,aAAa,QACR,WAAW;AAClB,SAASC,MAAM,EAAEC,eAAe,EAAEC,iBAAiB,QAAQ,WAAW;AAUtE,SAASC,YAAY,QAAQ,gBAAgB;AAE7C,SAASC,oBAAoB,QAAQ,kBAAkB;AAMvD,SACEC,WAAW,EACXC,oCAAoC,EACpCC,OAAO,EACPC,iBAAiB,EACjBC,kBAAkB,EAClBC,gBAAgB,EAChBC,WAAW,EACXC,gBAAgB,QACX,oCAAoC;;AAE3C;AACA;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,GAAG;EAAEC,OAAO,EAAE;AAAM,CAAC;AAC3C,MAAMC,mBAAmB,GAAG1B,kBAAkB,CAAC;EAAEyB,OAAO,EAAE;AAAM,CAAC,CAAC;AAClErB,wBAAwB,CAACuB,GAAG,CAACH,gBAAgB,EAAEE,mBAAmB,CAAC;AAEnE,MAAME,gCAAgC,GAAG;EACvCC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,KAAK,EAAE,IAAI;EACXC,MAAM,EAAE,IAAI;EACZC,YAAY,EAAE,IAAI;EAClBC,aAAa,EAAE,IAAI;EACnBC,aAAa,EAAE,IAAI;EACnBC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE,IAAI;EACfC,eAAe,EAAE;AACnB,CAAC;AAID,OAAO,SAASC,0BAA0BA,CAACC,IAAY,EAAE;EACvD,SAAS;;EACT,OAAQA,IAAI,IAA4BZ,gCAAgC;AAC1E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ACf;AAEA,SAASE,qBAAqBA,CAASC,WAAgC,EAAQ;EAC7E,SAAS;;EACT;EACA,IAAIpG,UAAU,CAACC,cAAc,KAAK5C,WAAW,CAAC6C,WAAW,EAAE;IACzDkG,WAAW,CAAC5F,KAAK,GAAG4F,WAAW,CAAC5F,KAAK,CAAC,CAAC;EACzC,CAAC,MAAM;IACLpD,OAAO,CAAC,MAAM;MACZ,SAAS;;MACTgJ,WAAW,CAAC5F,KAAK,GAAG4F,WAAW,CAAC5F,KAAK,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC,CAAC;EACN;AACF;AAEA,SAAS6F,kBAAkBA,CAASD,WAAgC,EAAQ;EAC1E;EACAA,WAAW,CAAC5F,KAAK,GAAG4F,WAAW,CAAC5F,KAAK,CAAC,CAAC;AACzC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM8F,eAAe,GAAGvI,iBAAiB,GAC5CsI,kBAAkB,GAClBF,qBAAqB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js index 8478898b..60655570 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js @@ -1,6 +1,5 @@ 'use strict'; -import { logger } from './common'; const mockTargetValues = { targetOriginX: 0, targetOriginY: 0, @@ -19,30 +18,18 @@ const mockTargetValues = { currentGlobalOriginY: 0, currentBorderRadius: 0 }; -function getCommonProperties(layoutStyle, componentStyle) { - let componentStyleFlat = Array.isArray(componentStyle) ? componentStyle.flat() : [componentStyle]; - componentStyleFlat = componentStyleFlat.filter(Boolean); - componentStyleFlat = componentStyleFlat.map(style => 'initial' in style ? style.initial.value // Include properties of animated style - : style); - const componentStylesKeys = componentStyleFlat.flatMap(style => Object.keys(style)); - const commonKeys = Object.keys(layoutStyle).filter(key => componentStylesKeys.includes(key)); - return commonKeys; -} -function maybeReportOverwrittenProperties(layoutAnimationStyle, style, displayName) { - const commonProperties = getCommonProperties(layoutAnimationStyle, style); - if (commonProperties.length > 0) { - logger.warn(`${commonProperties.length === 1 ? 'Property' : 'Properties'} "${commonProperties.join(', ')}" of ${displayName} may be overwritten by a layout animation. Please wrap your component with an animated view and apply the layout animation on the wrapper.`); - } -} export function maybeBuild(layoutAnimationOrBuilder, style, displayName) { const isAnimationBuilder = value => 'build' in layoutAnimationOrBuilder && typeof layoutAnimationOrBuilder.build === 'function'; if (isAnimationBuilder(layoutAnimationOrBuilder)) { const animationFactory = layoutAnimationOrBuilder.build(); - if (__DEV__ && style) { - const layoutAnimation = animationFactory(mockTargetValues); - maybeReportOverwrittenProperties(layoutAnimation.animations, style, displayName); + const layoutAnimation = animationFactory(mockTargetValues); + const animatedStyle = layoutAnimation.animations; + const getCommonProperties = (obj1, obj2) => Object.keys(obj1).filter(key => Object.prototype.hasOwnProperty.call(obj2, key)); + const commonProperties = getCommonProperties(animatedStyle, style || {}); + if (commonProperties.length > 0) { + console.warn(`[Reanimated] ${commonProperties.length === 1 ? 'Property' : 'Properties: '} "${commonProperties}" of ${displayName} may be overwritten with layout animation. Please create a wrapper with the layout animation you want to apply.`); } - return animationFactory; + return layoutAnimationOrBuilder.build(); } else { return layoutAnimationOrBuilder; } diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js.map index 117b86c8..49b93225 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/animationBuilder.js.map @@ -1 +1 @@ -{"version":3,"names":["logger","mockTargetValues","targetOriginX","targetOriginY","targetWidth","targetHeight","targetGlobalOriginX","targetGlobalOriginY","targetBorderRadius","windowWidth","windowHeight","currentOriginX","currentOriginY","currentWidth","currentHeight","currentGlobalOriginX","currentGlobalOriginY","currentBorderRadius","getCommonProperties","layoutStyle","componentStyle","componentStyleFlat","Array","isArray","flat","filter","Boolean","map","style","initial","value","componentStylesKeys","flatMap","Object","keys","commonKeys","key","includes","maybeReportOverwrittenProperties","layoutAnimationStyle","displayName","commonProperties","length","warn","join","maybeBuild","layoutAnimationOrBuilder","isAnimationBuilder","build","animationFactory","__DEV__","layoutAnimation","animations"],"sourceRoot":"../../src","sources":["animationBuilder.tsx"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,UAAU;AASjC,MAAMC,gBAAuC,GAAG;EAC9CC,aAAa,EAAE,CAAC;EAChBC,aAAa,EAAE,CAAC;EAChBC,WAAW,EAAE,CAAC;EACdC,YAAY,EAAE,CAAC;EACfC,mBAAmB,EAAE,CAAC;EACtBC,mBAAmB,EAAE,CAAC;EACtBC,kBAAkB,EAAE,CAAC;EACrBC,WAAW,EAAE,CAAC;EACdC,YAAY,EAAE,CAAC;EACfC,cAAc,EAAE,CAAC;EACjBC,cAAc,EAAE,CAAC;EACjBC,YAAY,EAAE,CAAC;EACfC,aAAa,EAAE,CAAC;EAChBC,oBAAoB,EAAE,CAAC;EACvBC,oBAAoB,EAAE,CAAC;EACvBC,mBAAmB,EAAE;AACvB,CAAC;AAED,SAASC,mBAAmBA,CAC1BC,WAAuB,EACvBC,cAAuC,EACvC;EACA,IAAIC,kBAAkB,GAAGC,KAAK,CAACC,OAAO,CAACH,cAAc,CAAC,GAClDA,cAAc,CAACI,IAAI,CAAC,CAAC,GACrB,CAACJ,cAAc,CAAC;EAEpBC,kBAAkB,GAAGA,kBAAkB,CAACI,MAAM,CAACC,OAAO,CAAC;EAEvDL,kBAAkB,GAAGA,kBAAkB,CAACM,GAAG,CAAEC,KAAK,IAChD,SAAS,IAAIA,KAAK,GACdA,KAAK,CAACC,OAAO,CAACC,KAAK,CAAC;EAAA,EACpBF,KACN,CAAC;EAED,MAAMG,mBAAmB,GAAGV,kBAAkB,CAACW,OAAO,CAAEJ,KAAK,IAC3DK,MAAM,CAACC,IAAI,CAACN,KAAK,CACnB,CAAC;EAED,MAAMO,UAAU,GAAGF,MAAM,CAACC,IAAI,CAACf,WAAW,CAAC,CAACM,MAAM,CAAEW,GAAG,IACrDL,mBAAmB,CAACM,QAAQ,CAACD,GAAG,CAClC,CAAC;EAED,OAAOD,UAAU;AACnB;AAEA,SAASG,gCAAgCA,CACvCC,oBAAgC,EAChCX,KAA8B,EAC9BY,WAAmB,EACnB;EACA,MAAMC,gBAAgB,GAAGvB,mBAAmB,CAACqB,oBAAoB,EAAEX,KAAK,CAAC;EAEzE,IAAIa,gBAAgB,CAACC,MAAM,GAAG,CAAC,EAAE;IAC/B1C,MAAM,CAAC2C,IAAI,CACT,GACEF,gBAAgB,CAACC,MAAM,KAAK,CAAC,GAAG,UAAU,GAAG,YAAY,KACtDD,gBAAgB,CAACG,IAAI,CACxB,IACF,CAAC,QAAQJ,WAAW,4IACtB,CAAC;EACH;AACF;AAEA,OAAO,SAASK,UAAUA,CACxBC,wBAGY,EACZlB,KAA0C,EAC1CY,WAAmB,EACiB;EACpC,MAAMO,kBAAkB,GACtBjB,KAAmE,IAEnE,OAAO,IAAIgB,wBAAwB,IACnC,OAAOA,wBAAwB,CAACE,KAAK,KAAK,UAAU;EAEtD,IAAID,kBAAkB,CAACD,wBAAwB,CAAC,EAAE;IAChD,MAAMG,gBAAgB,GAAGH,wBAAwB,CAACE,KAAK,CAAC,CAAC;IAEzD,IAAIE,OAAO,IAAItB,KAAK,EAAE;MACpB,MAAMuB,eAAe,GAAGF,gBAAgB,CAAChD,gBAAgB,CAAC;MAC1DqC,gCAAgC,CAC9Ba,eAAe,CAACC,UAAU,EAC1BxB,KAAK,EACLY,WACF,CAAC;IACH;IAEA,OAAOS,gBAAgB;EACzB,CAAC,MAAM;IACL,OAAOH,wBAAwB;EACjC;AACF","ignoreList":[]} +{"version":3,"names":["mockTargetValues","targetOriginX","targetOriginY","targetWidth","targetHeight","targetGlobalOriginX","targetGlobalOriginY","targetBorderRadius","windowWidth","windowHeight","currentOriginX","currentOriginY","currentWidth","currentHeight","currentGlobalOriginX","currentGlobalOriginY","currentBorderRadius","maybeBuild","layoutAnimationOrBuilder","style","displayName","isAnimationBuilder","value","build","animationFactory","layoutAnimation","animatedStyle","animations","getCommonProperties","obj1","obj2","Object","keys","filter","key","prototype","hasOwnProperty","call","commonProperties","length","console","warn"],"sources":["animationBuilder.tsx"],"sourcesContent":["'use strict';\nimport type {\n ILayoutAnimationBuilder,\n LayoutAnimationFunction,\n LayoutAnimationsValues,\n} from './reanimated2/layoutReanimation';\nimport type { StyleProps } from './reanimated2/commonTypes';\n\nconst mockTargetValues: LayoutAnimationsValues = {\n targetOriginX: 0,\n targetOriginY: 0,\n targetWidth: 0,\n targetHeight: 0,\n targetGlobalOriginX: 0,\n targetGlobalOriginY: 0,\n targetBorderRadius: 0,\n windowWidth: 0,\n windowHeight: 0,\n currentOriginX: 0,\n currentOriginY: 0,\n currentWidth: 0,\n currentHeight: 0,\n currentGlobalOriginX: 0,\n currentGlobalOriginY: 0,\n currentBorderRadius: 0,\n};\n\nexport function maybeBuild(\n layoutAnimationOrBuilder:\n | ILayoutAnimationBuilder\n | LayoutAnimationFunction\n | Keyframe,\n style: StyleProps | undefined,\n displayName: string\n): LayoutAnimationFunction | Keyframe {\n const isAnimationBuilder = (\n value: ILayoutAnimationBuilder | LayoutAnimationFunction | Keyframe\n ): value is ILayoutAnimationBuilder =>\n 'build' in layoutAnimationOrBuilder &&\n typeof layoutAnimationOrBuilder.build === 'function';\n\n if (isAnimationBuilder(layoutAnimationOrBuilder)) {\n const animationFactory = layoutAnimationOrBuilder.build();\n const layoutAnimation = animationFactory(mockTargetValues);\n const animatedStyle = layoutAnimation.animations;\n\n const getCommonProperties = (obj1: object, obj2: object) =>\n Object.keys(obj1).filter((key) =>\n Object.prototype.hasOwnProperty.call(obj2, key)\n );\n\n const commonProperties = getCommonProperties(animatedStyle, style || {});\n if (commonProperties.length > 0) {\n console.warn(\n `[Reanimated] ${\n commonProperties.length === 1 ? 'Property' : 'Properties: '\n } \"${commonProperties}\" of ${displayName} may be overwritten with layout animation. Please create a wrapper with the layout animation you want to apply.`\n );\n }\n\n return layoutAnimationOrBuilder.build();\n } else {\n return layoutAnimationOrBuilder;\n }\n}\n"],"mappings":"AAAA,YAAY;;AAQZ,MAAMA,gBAAwC,GAAG;EAC/CC,aAAa,EAAE,CAAC;EAChBC,aAAa,EAAE,CAAC;EAChBC,WAAW,EAAE,CAAC;EACdC,YAAY,EAAE,CAAC;EACfC,mBAAmB,EAAE,CAAC;EACtBC,mBAAmB,EAAE,CAAC;EACtBC,kBAAkB,EAAE,CAAC;EACrBC,WAAW,EAAE,CAAC;EACdC,YAAY,EAAE,CAAC;EACfC,cAAc,EAAE,CAAC;EACjBC,cAAc,EAAE,CAAC;EACjBC,YAAY,EAAE,CAAC;EACfC,aAAa,EAAE,CAAC;EAChBC,oBAAoB,EAAE,CAAC;EACvBC,oBAAoB,EAAE,CAAC;EACvBC,mBAAmB,EAAE;AACvB,CAAC;AAED,OAAO,SAASC,UAAUA,CACxBC,wBAGY,EACZC,KAA6B,EAC7BC,WAAmB,EACiB;EACpC,MAAMC,kBAAkB,GACtBC,KAAmE,IAEnE,OAAO,IAAIJ,wBAAwB,IACnC,OAAOA,wBAAwB,CAACK,KAAK,KAAK,UAAU;EAEtD,IAAIF,kBAAkB,CAACH,wBAAwB,CAAC,EAAE;IAChD,MAAMM,gBAAgB,GAAGN,wBAAwB,CAACK,KAAK,EAAE;IACzD,MAAME,eAAe,GAAGD,gBAAgB,CAACxB,gBAAgB,CAAC;IAC1D,MAAM0B,aAAa,GAAGD,eAAe,CAACE,UAAU;IAEhD,MAAMC,mBAAmB,GAAGA,CAACC,IAAY,EAAEC,IAAY,KACrDC,MAAM,CAACC,IAAI,CAACH,IAAI,CAAC,CAACI,MAAM,CAAEC,GAAG,IAC3BH,MAAM,CAACI,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,IAAI,EAAEI,GAAG,CAAC,CAChD;IAEH,MAAMI,gBAAgB,GAAGV,mBAAmB,CAACF,aAAa,EAAEP,KAAK,IAAI,CAAC,CAAC,CAAC;IACxE,IAAImB,gBAAgB,CAACC,MAAM,GAAG,CAAC,EAAE;MAC/BC,OAAO,CAACC,IAAI,CACT,gBACCH,gBAAgB,CAACC,MAAM,KAAK,CAAC,GAAG,UAAU,GAAG,cAC9C,KAAID,gBAAiB,QAAOlB,WAAY,iHAAgH,CAC1J;IACH;IAEA,OAAOF,wBAAwB,CAACK,KAAK,EAAE;EACzC,CAAC,MAAM;IACL,OAAOL,wBAAwB;EACjC;AACF"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/constants.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/constants.js deleted file mode 100644 index 56a6cb08..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/constants.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -import { Platform } from 'react-native'; -function isWindowAvailable() { - // the window object is unavailable when building the server portion of a site that uses SSG - // this function shouldn't be used to conditionally render components - // https://www.joshwcomeau.com/react/the-perils-of-rehydration/ - // @ts-ignore Fallback if `window` is undefined. - return typeof window !== 'undefined'; -} -export const IS_ANDROID = Platform.OS === 'android'; -/** @knipIgnore */ -export const IS_IOS = Platform.OS === 'ios'; -export const IS_WEB = Platform.OS === 'web'; -export const IS_JEST = !!process.env.JEST_WORKER_ID; -/** @knipIgnore */ -export const IS_WINDOWS = Platform.OS === 'windows'; -export const IS_WINDOW_AVAILABLE = isWindowAvailable(); -export const SHOULD_BE_USE_WEB = IS_JEST || IS_WEB || IS_WINDOWS; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/constants.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/constants.js.map deleted file mode 100644 index 523d90c7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Platform","isWindowAvailable","window","IS_ANDROID","OS","IS_IOS","IS_WEB","IS_JEST","process","env","JEST_WORKER_ID","IS_WINDOWS","IS_WINDOW_AVAILABLE","SHOULD_BE_USE_WEB"],"sourceRoot":"../../../src","sources":["common/constants.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,iBAAiBA,CAAA,EAAG;EAC3B;EACA;EACA;EACA;EACA,OAAO,OAAOC,MAAM,KAAK,WAAW;AACtC;AAEA,OAAO,MAAMC,UAAmB,GAAGH,QAAQ,CAACI,EAAE,KAAK,SAAS;AAC5D;AACA,OAAO,MAAMC,MAAe,GAAGL,QAAQ,CAACI,EAAE,KAAK,KAAK;AACpD,OAAO,MAAME,MAAe,GAAGN,QAAQ,CAACI,EAAE,KAAK,KAAK;AACpD,OAAO,MAAMG,OAAgB,GAAG,CAAC,CAACC,OAAO,CAACC,GAAG,CAACC,cAAc;AAC5D;AACA,OAAO,MAAMC,UAAmB,GAAGX,QAAQ,CAACI,EAAE,KAAK,SAAS;AAE5D,OAAO,MAAMQ,mBAA4B,GAAGX,iBAAiB,CAAC,CAAC;AAE/D,OAAO,MAAMY,iBAAiB,GAAGN,OAAO,IAAID,MAAM,IAAIK,UAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/errors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/errors.js deleted file mode 100644 index 74c37ed7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/errors.js +++ /dev/null @@ -1,28 +0,0 @@ -/* eslint-disable reanimated/use-reanimated-error */ -'use strict'; - -import { RuntimeKind } from 'react-native-worklets'; -function ReanimatedErrorConstructor(message) { - 'worklet'; - - const prefix = '[Reanimated]'; - const errorInstance = new Error(message ? `${prefix} ${message}` : prefix); - errorInstance.name = 'ReanimatedError'; - return errorInstance; -} - -/** - * Registers ReanimatedError in the global scope. Register only for Worklet - * runtimes. - */ -export function registerReanimatedError() { - 'worklet'; - - if (globalThis.__RUNTIME_KIND !== RuntimeKind.ReactNative) { - globalThis.ReanimatedError = ReanimatedErrorConstructor; - } -} -export const ReanimatedError = ReanimatedErrorConstructor; - -// signed type -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/errors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/errors.js.map deleted file mode 100644 index dccd5581..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["RuntimeKind","ReanimatedErrorConstructor","message","prefix","errorInstance","Error","name","registerReanimatedError","globalThis","__RUNTIME_KIND","ReactNative","ReanimatedError"],"sourceRoot":"../../../src","sources":["common/errors.ts"],"mappings":"AAAA;AACA,YAAY;;AAEZ,SAASA,WAAW,QAAQ,uBAAuB;AAEnD,SAASC,0BAA0BA,CAACC,OAAe,EAAmB;EACpE,SAAS;;EACT,MAAMC,MAAM,GAAG,cAAc;EAC7B,MAAMC,aAAa,GAAG,IAAIC,KAAK,CAACH,OAAO,GAAG,GAAGC,MAAM,IAAID,OAAO,EAAE,GAAGC,MAAM,CAAC;EAC1EC,aAAa,CAACE,IAAI,GAAG,iBAAiB;EACtC,OAAOF,aAAa;AACtB;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASG,uBAAuBA,CAAA,EAAG;EACxC,SAAS;;EACT,IAAIC,UAAU,CAACC,cAAc,KAAKT,WAAW,CAACU,WAAW,EAAE;IACzDF,UAAU,CAACG,eAAe,GACxBV,0BAAyD;EAC7D;AACF;AAEA,OAAO,MAAMU,eAAe,GAC1BV,0BAAyD;;AAQG","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/index.js deleted file mode 100644 index 4d2a7fa9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -export * from './constants'; -export * from './errors'; -export * from './logger'; -export * from './processors'; -export * from './utils'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/index.js.map deleted file mode 100644 index a11cfb13..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["common/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,cAAc;AAE5B,cAAc,SAAS","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/logger.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/logger.js deleted file mode 100644 index 66af6292..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/logger.js +++ /dev/null @@ -1,96 +0,0 @@ -/* eslint-disable reanimated/use-logger */ -'use strict'; - -const PREFIX = '[Reanimated]'; -const DOCS_URL = 'https://docs.swmansion.com/react-native-reanimated/docs/debugging/logger-configuration'; -const DOCS_REFERENCE = `If you don't want to see this message, you can disable the \`strict\` mode. Refer to:\n${DOCS_URL} for more details.`; -export let ReanimatedLogLevel = /*#__PURE__*/function (ReanimatedLogLevel) { - ReanimatedLogLevel[ReanimatedLogLevel["warn"] = 1] = "warn"; - ReanimatedLogLevel[ReanimatedLogLevel["error"] = 2] = "error"; - return ReanimatedLogLevel; -}({}); -function logToConsole(data) { - 'worklet'; - - switch (data.level) { - case ReanimatedLogLevel.warn: - console.warn(data.message); - break; - case ReanimatedLogLevel.error: - console.error(data.message); - break; - } -} -const DEFAULT_LOGGER_CONFIG = { - logFunction: logToConsole, - level: ReanimatedLogLevel.warn, - strict: true -}; - -/** - * Current logger config getter. - * - * @returns The current logger configuration object. - */ -export function getLoggerConfig() { - 'worklet'; - - if (!global.__reanimatedLoggerConfig) { - global.__reanimatedLoggerConfig = DEFAULT_LOGGER_CONFIG; - } - return global.__reanimatedLoggerConfig; -} - -/** - * Updates logger configuration. - * - * @param currentConfig - The current logger configuration object. - * @param options - The new logger configuration to apply. - * - * - Level: The minimum log level to display. - * - Strict: Whether to log warnings and errors that are not strict. Defaults to - * false. - */ -export function updateLoggerConfig(currentConfig, options) { - 'worklet'; - - global.__reanimatedLoggerConfig = { - ...currentConfig, - // Don't reuse previous level and strict values from the current config - level: options?.level ?? DEFAULT_LOGGER_CONFIG.level, - strict: options?.strict ?? DEFAULT_LOGGER_CONFIG.strict - }; -} -function handleLog(level, message, options) { - 'worklet'; - - const config = getLoggerConfig(); - if ( - // Don't log if the log is marked as strict-only and the config doesn't - // enable strict logging - options.strict && !config.strict || - // Don't log if the log level is below the minimum configured level - level < config.level) { - return; - } - if (options.strict) { - message += `\n\n${DOCS_REFERENCE}`; - } - config.logFunction({ - level, - message: `${PREFIX} ${message}` - }); -} -export const logger = { - warn(message, options = {}) { - 'worklet'; - - handleLog(ReanimatedLogLevel.warn, message, options); - }, - error(message, options = {}) { - 'worklet'; - - handleLog(ReanimatedLogLevel.error, message, options); - } -}; -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/logger.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/logger.js.map deleted file mode 100644 index df3d45e3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["PREFIX","DOCS_URL","DOCS_REFERENCE","ReanimatedLogLevel","logToConsole","data","level","warn","console","message","error","DEFAULT_LOGGER_CONFIG","logFunction","strict","getLoggerConfig","global","__reanimatedLoggerConfig","updateLoggerConfig","currentConfig","options","handleLog","config","logger"],"sourceRoot":"../../../src","sources":["common/logger.ts"],"mappings":"A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,SAASA,CAChBd,KAAyB,EACzBG,OAAe,EACfU,OAAmB,EACnB;EACA,SAAS;;EACT,MAAME,MAAM,GAAGP,eAAe,CAAC,CAAC;EAChC;EACE;EACA;EACCK,OAAO,CAACN,MAAM,IAAI,CAACQ,MAAM,CAACR,MAAM;EACjC;EACAP,KAAK,GAAGe,MAAM,CAACf,KAAK,EACpB;IACA;EACF;EAEA,IAAIa,OAAO,CAACN,MAAM,EAAE;IAClBJ,OAAO,IAAI,OAAOP,cAAc,EAAE;EACpC;EAEAmB,MAAM,CAACT,WAAW,CAAC;IACjBN,KAAK;IACLG,OAAO,EAAE,GAAGT,MAAM,IAAIS,OAAO;EAC/B,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMa,MAAM,GAAG;EACpBf,IAAIA,CAACE,OAAe,EAAEU,OAAmB,GAAG,CAAC,CAAC,EAAE;IAC9C,SAAS;;IACTC,SAAS,CAACjB,kBAAkB,CAACI,IAAI,EAAEE,OAAO,EAAEU,OAAO,CAAC;EACtD,CAAC;EACDT,KAAKA,CAACD,OAAe,EAAEU,OAAmB,GAAG,CAAC,CAAC,EAAE;IAC/C,SAAS;;IACTC,SAAS,CAACjB,kBAAkB,CAACO,KAAK,EAAED,OAAO,EAAEU,OAAO,CAAC;EACvD;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/colors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/colors.js deleted file mode 100644 index 75b908a1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/colors.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; -'worklet'; - -import { ColorProperties, processColorInitially } from '../../Colors'; -import { IS_ANDROID } from '../constants'; -export function processColor(color) { - let normalizedColor = processColorInitially(color); - if (typeof normalizedColor !== 'number') { - return normalizedColor; - } - if (IS_ANDROID) { - // Android use 32 bit *signed* integer to represent the color - // We utilize the fact that bitwise operations in JS also operates on - // signed 32 bit integers, so that we can use those to convert from - // *unsigned* to *signed* 32bit int that way. - normalizedColor = normalizedColor | 0x0; - } - return normalizedColor; -} -export function processColorsInProps(props) { - for (const key in props) { - if (ColorProperties.includes(key)) { - if (Array.isArray(props[key])) { - props[key] = props[key].map(color => processColor(color)); - } else { - props[key] = processColor(props[key]); - } - } - } -} -//# sourceMappingURL=colors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/colors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/colors.js.map deleted file mode 100644 index 9f4560d6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ColorProperties","processColorInitially","IS_ANDROID","processColor","color","normalizedColor","processColorsInProps","props","key","includes","Array","isArray","map"],"sourceRoot":"../../../../src","sources":["common/processors/colors.ts"],"mappings":"AAAA,YAAY;AACZ,SAAS;;AACT,SAASA,eAAe,EAAEC,qBAAqB,QAAQ,cAAc;AAErE,SAASC,UAAU,QAAQ,cAAc;AAEzC,OAAO,SAASC,YAAYA,CAACC,KAAc,EAA6B;EACtE,IAAIC,eAAe,GAAGJ,qBAAqB,CAACG,KAAK,CAAC;EAElD,IAAI,OAAOC,eAAe,KAAK,QAAQ,EAAE;IACvC,OAAOA,eAAe;EACxB;EAEA,IAAIH,UAAU,EAAE;IACd;IACA;IACA;IACA;IACAG,eAAe,GAAGA,eAAe,GAAG,GAAG;EACzC;EAEA,OAAOA,eAAe;AACxB;AAEA,OAAO,SAASC,oBAAoBA,CAACC,KAAiB,EAAE;EACtD,KAAK,MAAMC,GAAG,IAAID,KAAK,EAAE;IACvB,IAAIP,eAAe,CAACS,QAAQ,CAACD,GAAG,CAAC,EAAE;MACjC,IAAIE,KAAK,CAACC,OAAO,CAACJ,KAAK,CAACC,GAAG,CAAC,CAAC,EAAE;QAC7BD,KAAK,CAACC,GAAG,CAAC,GAAGD,KAAK,CAACC,GAAG,CAAC,CAACI,GAAG,CAAER,KAAc,IAAKD,YAAY,CAACC,KAAK,CAAC,CAAC;MACtE,CAAC,MAAM;QACLG,KAAK,CAACC,GAAG,CAAC,GAAGL,YAAY,CAACI,KAAK,CAACC,GAAG,CAAC,CAAC;MACvC;IACF;EACF;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/index.js deleted file mode 100644 index 99c75fff..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export * from './colors'; -export * from './shadows'; -export * from './transformOrigin'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/index.js.map deleted file mode 100644 index 0f54996d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["common/processors/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,mBAAmB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/shadows.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/shadows.js deleted file mode 100644 index 25d2363e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/shadows.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict'; -'worklet'; - -import { IS_ANDROID } from '../constants'; -import { ReanimatedError } from '../errors'; -import { maybeAddSuffix, parseBoxShadowString } from '../utils'; -import { processColor } from './colors'; -const ERROR_MESSAGES = { - notArrayObject: value => `Box shadow value must be a string or an array of shadow objects (e.g. [{ offsetX, offsetY, color }]). Received: ${JSON.stringify(value)}.`, - invalidColor: (color, boxShadow) => `Invalid color "${color}" in box shadow "${boxShadow}".` -}; -const parseBlurRadius = value => { - if (IS_ANDROID) { - // Android crashes when blurRadius is smaller than 1 - return Math.max(parseFloat(value), 1); - } - return parseFloat(value); -}; -export const processBoxShadowNative = value => { - if (value === 'none') { - return; - } - const parsedShadow = typeof value === 'string' ? parseBoxShadowString(value) : value; - if (!Array.isArray(parsedShadow)) { - throw new ReanimatedError(ERROR_MESSAGES.notArrayObject(parsedShadow)); - } - return parsedShadow.map(shadow => { - const { - color = '#000', - offsetX = 0, - offsetY = 0, - spreadDistance = 0, - blurRadius = 0, - ...rest - } = shadow; - const processedColor = processColor(color); - if (processedColor === null) { - throw new ReanimatedError(ERROR_MESSAGES.invalidColor(color, JSON.stringify(shadow))); - } - return { - ...rest, - blurRadius: parseBlurRadius(blurRadius), - color: processedColor, - offsetX: parseFloat(offsetX), - offsetY: parseFloat(offsetY), - spreadDistance: parseFloat(spreadDistance) - }; - }); -}; -export const processBoxShadowWeb = value => { - const parsedShadow = typeof value === 'string' ? parseBoxShadowString(value) : value; - return parsedShadow.map(({ - offsetX, - offsetY, - color = '#000', - blurRadius = '', - spreadDistance = '', - inset = '' - }) => [maybeAddSuffix(offsetX, 'px'), maybeAddSuffix(offsetY, 'px'), maybeAddSuffix(blurRadius, 'px'), maybeAddSuffix(spreadDistance, 'px'), color, inset ? 'inset' : ''].filter(Boolean).join(' ')).join(', '); -}; -//# sourceMappingURL=shadows.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/shadows.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/shadows.js.map deleted file mode 100644 index 315532d4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/shadows.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_ANDROID","ReanimatedError","maybeAddSuffix","parseBoxShadowString","processColor","ERROR_MESSAGES","notArrayObject","value","JSON","stringify","invalidColor","color","boxShadow","parseBlurRadius","Math","max","parseFloat","processBoxShadowNative","parsedShadow","Array","isArray","map","shadow","offsetX","offsetY","spreadDistance","blurRadius","rest","processedColor","processBoxShadowWeb","inset","filter","Boolean","join"],"sourceRoot":"../../../../src","sources":["common/processors/shadows.ts"],"mappings":"AAAA,YAAY;AACZ,SAAS;;AAGT,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,eAAe,QAAQ,WAAW;AAE3C,SAASC,cAAc,EAAEC,oBAAoB,QAAQ,UAAU;AAC/D,SAASC,YAAY,QAAQ,UAAU;AAEvC,MAAMC,cAAc,GAAG;EACrBC,cAAc,EAAGC,KAAa,IAC5B,mHAAmHC,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC,GAAG;EAE7IG,YAAY,EAAEA,CAACC,KAAa,EAAEC,SAAiB,KAC7C,kBAAkBD,KAAK,oBAAoBC,SAAS;AACxD,CAAC;AAWD,MAAMC,eAAe,GAAIN,KAAa,IAAK;EACzC,IAAIP,UAAU,EAAE;IACd;IACA,OAAOc,IAAI,CAACC,GAAG,CAACC,UAAU,CAACT,KAAK,CAAC,EAAE,CAAC,CAAC;EACvC;EACA,OAAOS,UAAU,CAACT,KAAK,CAAC;AAC1B,CAAC;AAED,OAAO,MAAMU,sBAGZ,GAAIV,KAAK,IAAK;EACb,IAAIA,KAAK,KAAK,MAAM,EAAE;IACpB;EACF;EAEA,MAAMW,YAAY,GAChB,OAAOX,KAAK,KAAK,QAAQ,GAAGJ,oBAAoB,CAACI,KAAK,CAAC,GAAGA,KAAK;EAEjE,IAAI,CAACY,KAAK,CAACC,OAAO,CAACF,YAAY,CAAC,EAAE;IAChC,MAAM,IAAIjB,eAAe,CAACI,cAAc,CAACC,cAAc,CAACY,YAAY,CAAC,CAAC;EACxE;EAEA,OAAOA,YAAY,CAACG,GAAG,CAA2BC,MAAM,IAAK;IAC3D,MAAM;MACJX,KAAK,GAAG,MAAM;MACdY,OAAO,GAAG,CAAC;MACXC,OAAO,GAAG,CAAC;MACXC,cAAc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oreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/transformOrigin.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/transformOrigin.js deleted file mode 100644 index 12c30ed4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/transformOrigin.js +++ /dev/null @@ -1,90 +0,0 @@ -'use strict'; -'worklet'; - -import { ReanimatedError } from '../errors'; -const HORIZONTAL_CONVERSIONS = { - left: 0, - center: '50%', - right: '100%' -}; -const VERTICAL_CONVERSIONS = { - top: 0, - center: '50%', - bottom: '100%' -}; -function getAllowedValues(axis, isArray) { - const allowed = []; - if (isArray) { - allowed.push('numbers'); - } else { - allowed.push('numbers with px unit'); - } - allowed.push('percentages'); - let keywords = []; - switch (axis) { - case 'x': - keywords = Object.keys(HORIZONTAL_CONVERSIONS); - break; - case 'y': - keywords = Object.keys(VERTICAL_CONVERSIONS); - break; - } - if (keywords.length) { - allowed.push(`keywords (${keywords.join(', ')})`); - } - - // Add "or" before the last item - allowed[allowed.length - 1] = `or ${allowed[allowed.length - 1]}`; - return allowed.join(', '); -} -export const ERROR_MESSAGES = { - invalidTransformOrigin: value => `Invalid transformOrigin: ${JSON.stringify(value)}. Expected 1-3 values.`, - invalidValue: (value, axis, origin, isArray) => `Invalid value "${value}" for the ${axis}-axis in transformOrigin ${JSON.stringify(origin)}. Allowed values: ${getAllowedValues(axis, isArray)}.` -}; -function maybeSwapComponents(components) { - if (components[0] in VERTICAL_CONVERSIONS && (components[1] === undefined || components[1] in HORIZONTAL_CONVERSIONS)) { - [components[0], components[1]] = [components[1], components[0]]; - } -} -function parseValue(value, allowPercentages, customParse, getError, keywordConversions) { - if (typeof value === 'number') { - return value; - } - if (keywordConversions && value in keywordConversions) { - return keywordConversions[value]; - } - if (allowPercentages && value.endsWith('%')) { - const num = parseFloat(value); - if (num === 0) { - return 0; - } - if (!isNaN(num)) { - return `${num}%`; - } - } - const parsed = customParse(value); - if (parsed === null) { - throw new ReanimatedError(getError()); - } - return parsed; -} -function parsePx(component) { - if (component.endsWith('px') || component === '0') { - const num = parseFloat(component); - if (!isNaN(num)) { - return num; - } - } - return null; -} -export const processTransformOrigin = value => { - const isArray = Array.isArray(value); - const components = isArray ? value : value.split(/\s+/); - const customParse = isArray ? () => null : parsePx; - if (components.length < 1 || components.length > 3) { - throw new ReanimatedError(ERROR_MESSAGES.invalidTransformOrigin(value)); - } - maybeSwapComponents(components); - return [parseValue(components[0] ?? '50%', true, customParse, () => ERROR_MESSAGES.invalidValue(components[0], 'x', value, isArray), HORIZONTAL_CONVERSIONS), parseValue(components[1] ?? '50%', true, customParse, () => ERROR_MESSAGES.invalidValue(components[1], 'y', value, isArray), VERTICAL_CONVERSIONS), parseValue(components[2] ?? 0, false, customParse, () => ERROR_MESSAGES.invalidValue(components[2], 'z', value, isArray))]; -}; -//# sourceMappingURL=transformOrigin.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/transformOrigin.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/transformOrigin.js.map deleted file mode 100644 index 0639f7be..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/processors/transformOrigin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","HORIZONTAL_CONVERSIONS","left","center","right","VERTICAL_CONVERSIONS","top","bottom","getAllowedValues","axis","isArray","allowed","push","keywords","Object","keys","length","join","ERROR_MESSAGES","invalidTransformOrigin","value","JSON","stringify","invalidValue","origin","maybeSwapComponents","components","undefined","parseValue","allowPercentages","customParse","getError","keywordConversions","endsWith","num","parseFloat","isNaN","parsed","parsePx","component","processTransformOrigin","Array","split"],"sourceRoot":"../../../../src","sources":["common/processors/transformOrigin.ts"],"mappings":"AAAA,YAAY;AACZ,SAAS;;AACT,SAASA,eAAe,QAAQ,WAAW;AAQ3C,MAAMC,sBAAsB,GAAG;EAC7BC,IAAI,EAAE,CAAC;EACPC,MAAM,EAAE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,GAAG,EAAEN,KAAK,EAAEV,OAAO,CAChE,CAAC,CACF;AACH,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/types.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/types.js deleted file mode 100644 index 6e4bb72f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/types.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/types.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/types.js.map deleted file mode 100644 index c5079906..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["common/types.ts"],"mappings":"AAAA,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/guards.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/guards.js deleted file mode 100644 index 967001f3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/guards.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; -'worklet'; - -export const isLength = value => { - return value.endsWith('px') || !isNaN(Number(value)); -}; -//# sourceMappingURL=guards.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/guards.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/guards.js.map deleted file mode 100644 index 6f2f3f78..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/guards.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isLength","value","endsWith","isNaN","Number"],"sourceRoot":"../../../../src","sources":["common/utils/guards.ts"],"mappings":"AAAA,YAAY;AACZ,SAAS;;AAET,OAAO,MAAMA,QAAQ,GAAIC,KAAa,IAAK;EACzC,OAAOA,KAAK,CAACC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,MAAM,CAACH,KAAK,CAAC,CAAC;AACtD,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/index.js deleted file mode 100644 index 9da77be6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export * from './guards'; -export * from './parsers'; -export * from './suffix'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/index.js.map deleted file mode 100644 index eb726347..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["common/utils/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,UAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/parsers.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/parsers.js deleted file mode 100644 index 949bac5f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/parsers.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; -'worklet'; - -import { isLength } from '../utils/guards'; -const LENGTH_MAPPINGS = ['offsetX', 'offsetY', 'blurRadius', 'spreadDistance']; -const SHADOW_PARTS_REGEX = /(?:[^\s()]+|\([^()]*\))+/g; -const SHADOW_SPLIT_REGEX = /(?:[^,()]+|\([^)]*\))+(?=\s*,|$)/g; -export function parseBoxShadowString(value) { - if (value === 'none') { - return []; - } - const shadows = value.match(SHADOW_SPLIT_REGEX) || []; - return shadows.map(shadow => { - const result = { - offsetX: 0, - offsetY: 0 - }; - let foundLengthsCount = 0; - const parts = shadow.match(SHADOW_PARTS_REGEX) || []; - parts.forEach(part => { - if (isLength(part)) { - result[LENGTH_MAPPINGS[foundLengthsCount++]] = part; - } else if (part === 'inset') { - result.inset = true; - } else { - result.color = part.trim(); - } - }); - return result; - }); -} -//# sourceMappingURL=parsers.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/parsers.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/parsers.js.map deleted file mode 100644 index 791a9f48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/parsers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isLength","LENGTH_MAPPINGS","SHADOW_PARTS_REGEX","SHADOW_SPLIT_REGEX","parseBoxShadowString","value","shadows","match","map","shadow","result","offsetX","offsetY","foundLengthsCount","parts","forEach","part","inset","color","trim"],"sourceRoot":"../../../../src","sources":["common/utils/parsers.ts"],"mappings":"AAAA,YAAY;AACZ,SAAS;;AAGT,SAASA,QAAQ,QAAQ,iBAAiB;AAE1C,MAAMC,eAAe,GAAG,CACtB,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,CACR;AAEV,MAAMC,kBAAkB,GAAG,2BAA2B;AACtD,MAAMC,kBAAkB,GAAG,mCAAmC;AAE9D,OAAO,SAASC,oBAAoBA,CAACC,KAAa,EAAE;EAClD,IAAIA,KAAK,KAAK,MAAM,EAAE;IACpB,OAAO,EAAE;EACX;EAEA,MAAMC,OAAO,GAAGD,KAAK,CAACE,KAAK,CAACJ,kBAAkB,CAAC,IAAI,EAAE;EAErD,OAAOG,OAAO,CAACE,GAAG,CAAkBC,MAAM,IAAK;IAC7C,MAAMC,MAAsB,GAAG;MAC7BC,OAAO,EAAE,CAAC;MACVC,OAAO,EAAE;IACX,CAAC;IAED,IAAIC,iBAAiB,GAAG,CAAC;IACzB,MAAMC,KAAK,GAAGL,MAAM,CAACF,KAAK,CAACL,kBAAkB,CAAC,IAAI,EAAE;IAEpDY,KAAK,CAACC,OAAO,CAAEC,IAAI,IAAK;MACtB,IAAIhB,QAAQ,CAACgB,IAAI,CAAC,EAAE;QAClBN,MAAM,CAACT,eAAe,CAACY,iBAAiB,EAAE,CAAC,CAAC,GAAGG,IAAI;MACrD,CAAC,MAAM,IAAIA,IAAI,KAAK,OAAO,EAAE;QAC3BN,MAAM,CAACO,KAAK,GAAG,IAAI;MACrB,CAAC,MAAM;QACLP,MAAM,CAACQ,KAAK,GAAGF,IAAI,CAACG,IAAI,CAAC,CAAC;MAC5B;IACF,CAAC,CAAC;IAEF,OAAOT,MAAM;EACf,CAAC,CAAC;AACJ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/suffix.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/suffix.js deleted file mode 100644 index 44936b48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/suffix.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export function hasSuffix(value) { - return typeof value === 'string' && isNaN(parseInt(value[value.length - 1])); -} -export function maybeAddSuffix(value, suffix) { - return hasSuffix(value) ? value : `${String(value)}${suffix}`; -} -//# sourceMappingURL=suffix.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/suffix.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/suffix.js.map deleted file mode 100644 index f5669083..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/common/utils/suffix.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["hasSuffix","value","isNaN","parseInt","length","maybeAddSuffix","suffix","String"],"sourceRoot":"../../../../src","sources":["common/utils/suffix.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,SAASA,SAASA,CAACC,KAAc,EAAmB;EACzD,OAAO,OAAOA,KAAK,KAAK,QAAQ,IAAIC,KAAK,CAACC,QAAQ,CAACF,KAAK,CAACA,KAAK,CAACG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;AAC9E;AAEA,OAAO,SAASC,cAAcA,CAACJ,KAAc,EAAEK,MAAc,EAAE;EAC7D,OAAON,SAAS,CAACC,KAAK,CAAC,GAAGA,KAAK,GAAG,GAAGM,MAAM,CAACN,KAAK,CAAC,GAAGK,MAAM,EAAE;AAC/D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/commonTypes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/commonTypes.js deleted file mode 100644 index 4cdf2c92..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/commonTypes.js +++ /dev/null @@ -1,103 +0,0 @@ -'use strict'; - -// this is just a temporary mock - -export let LayoutAnimationType = /*#__PURE__*/function (LayoutAnimationType) { - LayoutAnimationType[LayoutAnimationType["ENTERING"] = 1] = "ENTERING"; - LayoutAnimationType[LayoutAnimationType["EXITING"] = 2] = "EXITING"; - LayoutAnimationType[LayoutAnimationType["LAYOUT"] = 3] = "LAYOUT"; - return LayoutAnimationType; -}({}); - -/** - * Used to configure the `.defaultTransitionType()` shared transition modifier. - * - * @experimental - */ - -/** - * A value that can be used both on the [JavaScript - * thread](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#javascript-thread) - * and the [UI - * thread](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#ui-thread). - * - * Shared values are defined using - * [useSharedValue](https://docs.swmansion.com/react-native-reanimated/docs/core/useSharedValue) - * hook. You access and modify shared values by their `.value` property. - */ - -/** - * Due to pattern of `MaybeSharedValue` type present in `AnimatedProps` - * (`AnimatedStyle`), contravariance breaks types for animated styles etc. - * Instead of refactoring the code with small chances of success, we just - * disable contravariance for `SharedValue` in this problematic case. - */ - -export let SensorType = /*#__PURE__*/function (SensorType) { - SensorType[SensorType["ACCELEROMETER"] = 1] = "ACCELEROMETER"; - SensorType[SensorType["GYROSCOPE"] = 2] = "GYROSCOPE"; - SensorType[SensorType["GRAVITY"] = 3] = "GRAVITY"; - SensorType[SensorType["MAGNETIC_FIELD"] = 4] = "MAGNETIC_FIELD"; - SensorType[SensorType["ROTATION"] = 5] = "ROTATION"; - return SensorType; -}({}); -export let IOSReferenceFrame = /*#__PURE__*/function (IOSReferenceFrame) { - IOSReferenceFrame[IOSReferenceFrame["XArbitraryZVertical"] = 0] = "XArbitraryZVertical"; - IOSReferenceFrame[IOSReferenceFrame["XArbitraryCorrectedZVertical"] = 1] = "XArbitraryCorrectedZVertical"; - IOSReferenceFrame[IOSReferenceFrame["XMagneticNorthZVertical"] = 2] = "XMagneticNorthZVertical"; - IOSReferenceFrame[IOSReferenceFrame["XTrueNorthZVertical"] = 3] = "XTrueNorthZVertical"; - IOSReferenceFrame[IOSReferenceFrame["Auto"] = 4] = "Auto"; - return IOSReferenceFrame; -}({}); - -/** - * A function called upon animation completion. If the animation is cancelled, - * the callback will receive `false` as the argument; otherwise, it will receive - * `true`. - */ - -export let InterfaceOrientation = /*#__PURE__*/function (InterfaceOrientation) { - InterfaceOrientation[InterfaceOrientation["ROTATION_0"] = 0] = "ROTATION_0"; - InterfaceOrientation[InterfaceOrientation["ROTATION_90"] = 90] = "ROTATION_90"; - InterfaceOrientation[InterfaceOrientation["ROTATION_180"] = 180] = "ROTATION_180"; - InterfaceOrientation[InterfaceOrientation["ROTATION_270"] = 270] = "ROTATION_270"; - return InterfaceOrientation; -}({}); -export let KeyboardState = /*#__PURE__*/function (KeyboardState) { - KeyboardState[KeyboardState["UNKNOWN"] = 0] = "UNKNOWN"; - KeyboardState[KeyboardState["OPENING"] = 1] = "OPENING"; - KeyboardState[KeyboardState["OPEN"] = 2] = "OPEN"; - KeyboardState[KeyboardState["CLOSING"] = 3] = "CLOSING"; - KeyboardState[KeyboardState["CLOSED"] = 4] = "CLOSED"; - return KeyboardState; -}({}); - -/** - * @param x - A number representing X coordinate relative to the parent - * component. - * @param y - A number representing Y coordinate relative to the parent - * component. - * @param width - A number representing the width of the component. - * @param height - A number representing the height of the component. - * @param pageX - A number representing X coordinate relative to the screen. - * @param pageY - A number representing Y coordinate relative to the screen. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/measure#returns - */ - -/** - * @param System - If the `Reduce motion` accessibility setting is enabled on - * the device, disable the animation. Otherwise, enable the animation. - * @param Always - Disable the animation. - * @param Never - Enable the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/guides/accessibility - */ -export let ReduceMotion = /*#__PURE__*/function (ReduceMotion) { - ReduceMotion["System"] = "system"; - ReduceMotion["Always"] = "always"; - ReduceMotion["Never"] = "never"; - return ReduceMotion; -}({}); - -// Ideally we want AnimatedStyle to not be generic, but there are -// so many dependencies on it being generic that it's not feasible at the moment. -//# sourceMappingURL=commonTypes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/commonTypes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/commonTypes.js.map deleted file mode 100644 index 0a9a8d4d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/commonTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["LayoutAnimationType","SensorType","IOSReferenceFrame","InterfaceOrientation","KeyboardState","ReduceMotion"],"sourceRoot":"../../src","sources":["commonTypes.ts"],"mappings":"AAAA,YAAY;;AA2EwD;;AAmBpE,WAAYA,mBAAmB,0BAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAnBA,mBAAmB,CAAnBA,mBAAmB;EAAA,OAAnBA,mBAAmB;AAAA;;AAsD/B;AACA;AACA;AACA;AACA;;AAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;AACA;;AA8FA,WAAYC,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA;AAOtB,WAAYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;;AAqB7B;AACA;AACA;AACA;AACA;;AA0BA,WAAYC,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAWhC,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAazB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;;AAmCxB;AACA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/FlatList.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/FlatList.js deleted file mode 100644 index 77a64007..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/FlatList.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; - -import { useMemo, useRef } from 'react'; -import { FlatList } from 'react-native'; -import { createAnimatedComponent } from '../createAnimatedComponent'; -import { LayoutAnimationConfig } from './LayoutAnimationConfig'; -import { AnimatedView } from './View'; -import { jsx as _jsx } from "react/jsx-runtime"; -const AnimatedFlatList = createAnimatedComponent(FlatList); -const createCellRendererComponent = (itemLayoutAnimationRef, cellRendererComponentStyleRef) => { - const CellRendererComponent = props => { - return /*#__PURE__*/_jsx(AnimatedView - // TODO TYPESCRIPT This is temporary cast is to get rid of .d.ts file. - , { - layout: itemLayoutAnimationRef?.current, - onLayout: props.onLayout, - style: [props.style, typeof cellRendererComponentStyleRef?.current === 'function' ? cellRendererComponentStyleRef?.current({ - index: props.index, - item: props.item - }) : cellRendererComponentStyleRef?.current], - children: props.children - }); - }; - return CellRendererComponent; -}; - -// Since createAnimatedComponent return type is ComponentClass that has the props of the argument, -// but not things like NativeMethods, etc. we need to add them manually by extending the type. - -// We need explicit any here, because this is the exact same type that is used in React Native types. -// eslint-disable-next-line @typescript-eslint/no-explicit-any -const FlatListRender = function (props, ref) { - const { - itemLayoutAnimation, - skipEnteringExitingAnimations, - CellRendererComponentStyle, - ...restProps - } = props; - - // Set default scrollEventThrottle, because user expects - // to have continuous scroll events and - // react-native defaults it to 50 for FlatLists. - // We set it to 1, so we have peace until - // there are 960 fps screens. - if (!('scrollEventThrottle' in restProps)) { - restProps.scrollEventThrottle = 1; - } - const itemLayoutAnimationRef = useRef(itemLayoutAnimation); - itemLayoutAnimationRef.current = itemLayoutAnimation; - const cellRendererComponentStyleRef = useRef(CellRendererComponentStyle); - cellRendererComponentStyleRef.current = CellRendererComponentStyle; - const CellRendererComponent = useMemo(() => createCellRendererComponent(itemLayoutAnimationRef, cellRendererComponentStyleRef), []); - const animatedFlatList = - /*#__PURE__*/ - // @ts-expect-error In its current type state, createAnimatedComponent cannot create generic components. - _jsx(AnimatedFlatList, { - ref: ref, - ...restProps, - CellRendererComponent: CellRendererComponent - }); - if (skipEnteringExitingAnimations === undefined) { - return animatedFlatList; - } - return /*#__PURE__*/_jsx(LayoutAnimationConfig, { - skipEntering: true, - skipExiting: true, - children: animatedFlatList - }); -}; -export const ReanimatedFlatList = FlatListRender; - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -//# sourceMappingURL=FlatList.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/FlatList.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/FlatList.js.map deleted file mode 100644 index f030493c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/FlatList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useMemo","useRef","FlatList","createAnimatedComponent","LayoutAnimationConfig","AnimatedView","jsx","_jsx","AnimatedFlatList","createCellRendererComponent","itemLayoutAnimationRef","cellRendererComponentStyleRef","CellRendererComponent","props","layout","current","onLayout","style","index","item","children","FlatListRender","ref","itemLayoutAnimation","skipEnteringExitingAnimations","CellRendererComponentStyle","restProps","scrollEventThrottle","animatedFlatList","undefined","skipEntering","skipExiting","ReanimatedFlatList"],"sourceRoot":"../../../src","sources":["component/FlatList.tsx"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAOvC,SAASC,QAAQ,QAAQ,cAAc;AAGvC,SAASC,uBAAuB,QAAQ,4BAA4B;AAEpE,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,YAAY,QAAQ,QAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtC,MAAMC,gBAAgB,GAAGL,uBAAuB,CAACD,QAAQ,CAAC;AAU1D,MAAMO,2BAA2B,GAAGA,CAClCC,sBAAuE,EACvEC,6BAEC,KACE;EACH,MAAMC,qBAAqB,GAAIC,KAAiC,IAAK;IACnE,oBACEN,IAAA,CAACF;IACC;IAAA;MACAS,MAAM,EAAEJ,sBAAsB,EAAEK,OAAe;MAC/CC,QAAQ,EAAEH,KAAK,CAACG,QAAS;MACzBC,KAAK,EAAE,CACLJ,KAAK,CAACI,KAAK,EACX,OAAON,6BAA6B,EAAEI,OAAO,KAAK,UAAU,GACxDJ,6BAA6B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EvB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Image.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Image.js deleted file mode 100644 index a10ed287..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Image.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -import { Image } from 'react-native'; -import { createAnimatedComponent } from '../createAnimatedComponent'; - -// Since createAnimatedComponent return type is ComponentClass that has the props of the argument, -// but not things like NativeMethods, etc. we need to add them manually by extending the type. - -export const AnimatedImage = createAnimatedComponent(Image); -//# sourceMappingURL=Image.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Image.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Image.js.map deleted file mode 100644 index cb45ad0a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Image.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Image","createAnimatedComponent","AnimatedImage"],"sourceRoot":"../../../src","sources":["component/Image.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,KAAK,QAAQ,cAAc;AAEpC,SAASC,uBAAuB,QAAQ,4BAA4B;;AAEpE;AACA;;AAKA,OAAO,MAAMC,aAAa,GAAGD,uBAAuB,CAACD,KAAK,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/LayoutAnimationConfig.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/LayoutAnimationConfig.js deleted file mode 100644 index 2b5527d9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/LayoutAnimationConfig.js +++ /dev/null @@ -1,70 +0,0 @@ -'use strict'; - -import { Children, Component, createContext, useEffect, useRef } from 'react'; -import { setShouldAnimateExitingForTag } from '../core'; -import { findNodeHandle } from '../platformFunctions/findNodeHandle'; -import { jsx as _jsx } from "react/jsx-runtime"; -export const SkipEnteringContext = /*#__PURE__*/createContext(null); - -// skipEntering - don't animate entering of children on wrapper mount -// skipExiting - don't animate exiting of children on wrapper unmount - -function SkipEntering(props) { - const skipValueRef = useRef(props.shouldSkip); - useEffect(() => { - skipValueRef.current = false; - }, [skipValueRef]); - return /*#__PURE__*/_jsx(SkipEnteringContext, { - value: skipValueRef, - children: props.children - }); -} - -// skipExiting (unlike skipEntering) cannot be done by conditionally -// configuring the animation in `createAnimatedComponent`, since at this stage -// we don't know if the wrapper is going to be unmounted or not. -// That's why we need to pass the skipExiting flag to the native side -// when the wrapper is unmounted to prevent the animation. -// Since `ReactNode` can be a list of nodes, we wrap every child with our wrapper -// so we are able to access its tag with `findNodeHandle`. -/** - * A component that lets you skip entering and exiting animations. - * - * @param skipEntering - A boolean indicating whether children's entering - * animations should be skipped when `LayoutAnimationConfig` is mounted. - * @param skipExiting - A boolean indicating whether children's exiting - * animations should be skipped when LayoutAnimationConfig is unmounted. - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-animation-config/ - */ -export class LayoutAnimationConfig extends Component { - getMaybeWrappedChildren() { - return Children.count(this.props.children) > 1 && this.props.skipExiting ? Children.map(this.props.children, child => /*#__PURE__*/_jsx(LayoutAnimationConfig, { - skipExiting: true, - children: child - })) : this.props.children; - } - setShouldAnimateExiting() { - if (Children.count(this.props.children) === 1) { - const tag = findNodeHandle(this); - if (tag) { - setShouldAnimateExitingForTag(tag, !this.props.skipExiting); - } - } - } - componentWillUnmount() { - if (this.props.skipExiting !== undefined) { - this.setShouldAnimateExiting(); - } - } - render() { - const children = this.getMaybeWrappedChildren(); - if (this.props.skipEntering === undefined) { - return children; - } - return /*#__PURE__*/_jsx(SkipEntering, { - shouldSkip: this.props.skipEntering, - children: children - }); - } -} -//# sourceMappingURL=LayoutAnimationConfig.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/LayoutAnimationConfig.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/LayoutAnimationConfig.js.map deleted file mode 100644 index d575d897..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/LayoutAnimationConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Children","Component","createContext","useEffect","useRef","setShouldAnimateExitingForTag","findNodeHandle","jsx","_jsx","SkipEnteringContext","SkipEntering","props","skipValueRef","shouldSkip","current","value","children","LayoutAnimationConfig","getMaybeWrappedChildren","count","skipExiting","map","child","setShouldAnimateExiting","tag","componentWillUnmount","undefined","render","skipEntering"],"sourceRoot":"../../../src","sources":["component/LayoutAnimationConfig.tsx"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,QAAQ,EAAEC,SAAS,EAAEC,aAAa,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAE7E,SAASC,6BAA6B,QAAQ,SAAS;AACvD,SAASC,cAAc,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErE,OAAO,MAAMC,mBAAmB,gBAC9BP,aAAa,CAAkC,IAAI,CAAC;;AAEtD;AACA;;AAOA,SAASQ,YAAYA,CAACC,KAAmD,EAAE;EACzE,MAAMC,YAAY,GAAGR,MAAM,CAACO,KAAK,CAACE,UAAU,CAAC;EAE7CV,SAAS,CAAC,MAAM;IACdS,YAAY,CAACE,OAAO,GAAG,KAAK;EAC9B,CAAC,EAAE,CAACF,YAAY,CAAC,CAAC;EAElB,oBACEJ,IAAA,CAACC,mBAAmB;IAACM,KAAK,EAAEH,YAAa;IAAAI,QAAA,EACtCL,KAAK,CAACK;EAAQ,CACI,CAAC;AAE1B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,qBAAqB,SAAShB,SAAS,CAA6B;EAC/EiB,uBAAuBA,CAAA,EAAG;IACxB,OAAOlB,QAAQ,CAACmB,KAAK,CAAC,IAAI,CAACR,KAAK,CAACK,QAAQ,CAAC,GAAG,CAAC,IAAI,IAAI,CAACL,KAAK,CAACS,WAAW,GACpEpB,QAAQ,CAACqB,GAAG,CAAC,IAAI,CAACV,KAAK,CAACK,QAAQ,EAAGM,KAAK,iBACtCd,IAAA,CAACS,qBAAqB;MAACG,WAAW;MAAAJ,QAAA,EAAEM;IAAK,CAAwB,CAClE,CAAC,GACF,IAAI,CAACX,KAAK,CAACK,QAAQ;EACzB;EAEAO,uBAAuBA,CAAA,EAAG;IACxB,IAAIvB,QAAQ,CAACmB,KAAK,CAAC,IAAI,CAACR,KAAK,CAACK,QAAQ,CAAC,KAAK,CAAC,EAAE;MAC7C,MAAMQ,GAAG,GAAGlB,cAAc,CAAC,IAAI,CAAC;MAChC,IAAIkB,GAAG,EAAE;QACPnB,6BAA6B,CAACmB,GAAG,EAAE,CAAC,IAAI,CAACb,KAAK,CAACS,WAAW,CAAC;MAC7D;IACF;EACF;EAEAK,oBAAoBA,CAAA,EAAS;IAC3B,IAAI,IAAI,CAACd,KAAK,CAACS,WAAW,KAAKM,SAAS,EAAE;MACxC,IAAI,CAACH,uBAAuB,CAAC,CAAC;IAChC;EACF;EAEAI,MAAMA,CAAA,EAAc;IAClB,MAAMX,QAAQ,GAAG,IAAI,CAACE,uBAAuB,CAAC,CAAC;IAE/C,IAAI,IAAI,CAACP,KAAK,CAACiB,YAAY,KAAKF,SAAS,EAAE;MACzC,OAAOV,QAAQ;IACjB;IAEA,oBACER,IAAA,CAACE,YAAY;MAACG,UAAU,EAAE,IAAI,CAACF,KAAK,CAACiB,YAAa;MAAAZ,QAAA,EAC/CA;IAAQ,CACG,CAAC;EAEnB;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/PerformanceMonitor.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/PerformanceMonitor.js deleted file mode 100644 index 8fffd2c1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/PerformanceMonitor.js +++ /dev/null @@ -1,175 +0,0 @@ -'use strict'; - -import { useEffect, useRef } from 'react'; -import { StyleSheet, TextInput, View } from 'react-native'; -import { createAnimatedComponent } from '../createAnimatedComponent'; -import { useAnimatedProps, useFrameCallback, useSharedValue } from '../hook'; -import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; -function createCircularDoublesBuffer(size) { - 'worklet'; - - return { - next: 0, - buffer: new Float32Array(size), - size, - count: 0, - push(value) { - const oldValue = this.buffer[this.next]; - const oldCount = this.count; - this.buffer[this.next] = value; - this.next = (this.next + 1) % this.size; - this.count = Math.min(this.size, this.count + 1); - return oldCount === this.size ? oldValue : null; - }, - front() { - const notEmpty = this.count > 0; - if (notEmpty) { - const current = this.next - 1; - const index = current < 0 ? this.size - 1 : current; - return this.buffer[index]; - } - return null; - }, - back() { - const notEmpty = this.count > 0; - return notEmpty ? this.buffer[this.next] : null; - } - }; -} -const DEFAULT_BUFFER_SIZE = 20; -const AnimatedTextInput = createAnimatedComponent(TextInput); -function loopAnimationFrame(fn) { - let lastTime = 0; - function loop() { - requestAnimationFrame(time => { - if (lastTime > 0) { - fn(lastTime, time); - } - lastTime = time; - requestAnimationFrame(loop); - }); - } - loop(); -} -function getFps(renderTimeInMs) { - 'worklet'; - - return 1000 / renderTimeInMs; -} -function completeBufferRoutine(buffer, timestamp) { - 'worklet'; - - timestamp = Math.round(timestamp); - const droppedTimestamp = buffer.push(timestamp) ?? timestamp; - const measuredRangeDuration = timestamp - droppedTimestamp; - return getFps(measuredRangeDuration / buffer.count); -} -function JsPerformance({ - smoothingFrames -}) { - const jsFps = useSharedValue(null); - const totalRenderTime = useSharedValue(0); - const circularBuffer = useRef(createCircularDoublesBuffer(smoothingFrames)); - useEffect(() => { - loopAnimationFrame((_, timestamp) => { - timestamp = Math.round(timestamp); - const currentFps = completeBufferRoutine(circularBuffer.current, timestamp); - - // JS fps have to be measured every 2nd frame, - // thus 2x multiplication has to occur here - jsFps.value = (currentFps * 2).toFixed(0); - }); - }, [jsFps, totalRenderTime]); - const animatedProps = useAnimatedProps(() => { - const text = 'JS: ' + (jsFps.value ?? 'N/A') + ' '; - return { - text, - defaultValue: text - }; - }); - return /*#__PURE__*/_jsx(View, { - style: styles.container, - children: /*#__PURE__*/_jsx(AnimatedTextInput, { - style: styles.text, - animatedProps: animatedProps, - editable: false - }) - }); -} -function UiPerformance({ - smoothingFrames -}) { - const uiFps = useSharedValue(null); - const circularBuffer = useSharedValue(null); - useFrameCallback(({ - timestamp - }) => { - if (circularBuffer.value === null) { - circularBuffer.value = createCircularDoublesBuffer(smoothingFrames); - } - timestamp = Math.round(timestamp); - const currentFps = completeBufferRoutine(circularBuffer.value, timestamp); - uiFps.value = currentFps.toFixed(0); - }); - const animatedProps = useAnimatedProps(() => { - const text = 'UI: ' + (uiFps.value ?? 'N/A') + ' '; - return { - text, - defaultValue: text - }; - }); - return /*#__PURE__*/_jsx(View, { - style: styles.container, - children: /*#__PURE__*/_jsx(AnimatedTextInput, { - style: styles.text, - animatedProps: animatedProps, - editable: false - }) - }); -} -/** - * A component that lets you measure fps values on JS and UI threads on both the - * Paper and Fabric architectures. - * - * @param smoothingFrames - Determines amount of saved frames which will be used - * for fps value smoothing. - */ -export function PerformanceMonitor({ - smoothingFrames = DEFAULT_BUFFER_SIZE -}) { - return /*#__PURE__*/_jsxs(View, { - style: styles.monitor, - children: [/*#__PURE__*/_jsx(JsPerformance, { - smoothingFrames: smoothingFrames - }), /*#__PURE__*/_jsx(UiPerformance, { - smoothingFrames: smoothingFrames - })] - }); -} -const styles = StyleSheet.create({ - monitor: { - flexDirection: 'row', - position: 'absolute', - backgroundColor: '#0006', - zIndex: 1000 - }, - header: { - fontSize: 14, - color: '#ffff', - paddingHorizontal: 5 - }, - text: { - fontSize: 13, - fontVariant: ['tabular-nums'], - color: '#ffff', - fontFamily: 'monospace', - paddingHorizontal: 3 - }, - container: { - alignItems: 'center', - justifyContent: 'center', - flexDirection: 'row', - flexWrap: 'wrap' - } -}); -//# sourceMappingURL=PerformanceMonitor.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/PerformanceMonitor.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/PerformanceMonitor.js.map deleted file mode 100644 index 3a38910c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/PerformanceMonitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useRef","StyleSheet","TextInput","View","createAnimatedComponent","useAnimatedProps","useFrameCallback","useSharedValue","jsx","_jsx","jsxs","_jsxs","createCircularDoublesBuffer","size","next","buffer","Float32Array","count","push","value","oldValue","oldCount","Math","min","front","notEmpty","current","index","back","DEFAULT_BUFFER_SIZE","AnimatedTextInput","loopAnimationFrame","fn","lastTime","loop","requestAnimationFrame","time","getFps","renderTimeInMs","completeBufferRoutine","timestamp","round","droppedTimestamp","measuredRangeDuration","JsPerformance","smoothingFrames","jsFps","totalRenderTime","circularBuffer","_","currentFps","toFixed","animatedProps","text","defaultValue","style","styles","container","children","editable","UiPerformance","uiFps","PerformanceMonitor","monitor","create","flexDirection","position","backgroundColor","zIndex","header","fontSize","color","paddingHorizontal","fontVariant","fontFamily","alignItems","justifyContent","flexWrap"],"sourceRoot":"../../../src","sources":["component/PerformanceMonitor.tsx"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACzC,SAASC,UAAU,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAE1D,SAASC,uBAAuB,QAAQ,4BAA4B;AAEpE,SAASC,gBAAgB,EAAEC,gBAAgB,EAAEC,cAAc,QAAQ,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG7E,SAASC,2BAA2BA,CAACC,IAAY,EAAE;EACjD,SAAS;;EAET,OAAO;IACLC,IAAI,EAAE,CAAW;IACjBC,MAAM,EAAE,IAAIC,YAAY,CAACH,IAAI,CAAC;IAC9BA,IAAI;IACJI,KAAK,EAAE,CAAW;IAElBC,IAAIA,CAACC,KAAa,EAAiB;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,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ReducedMotionConfig.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ReducedMotionConfig.js deleted file mode 100644 index 969d1ec7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ReducedMotionConfig.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -import { useEffect } from 'react'; -import { logger } from '../common'; -import { ReduceMotion } from '../commonTypes'; -import { isReducedMotionEnabledInSystem, ReducedMotionManager } from '../ReducedMotion'; - -/** - * A component that lets you overwrite default reduce motion behavior globally - * in your application. - * - * @param mode - Determines default reduce motion behavior globally in your - * application. Configured with {@link ReduceMotion} enum. - * @see https://docs.swmansion.com/react-native-reanimated/docs/device/ReducedMotionConfig - */ -export function ReducedMotionConfig({ - mode -}) { - useEffect(() => { - if (!__DEV__) { - return; - } - logger.warn(`Reduced motion setting is overwritten with mode '${mode}'.`); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - useEffect(() => { - const wasEnabled = ReducedMotionManager.jsValue; - switch (mode) { - case ReduceMotion.System: - ReducedMotionManager.setEnabled(isReducedMotionEnabledInSystem()); - break; - case ReduceMotion.Always: - ReducedMotionManager.setEnabled(true); - break; - case ReduceMotion.Never: - ReducedMotionManager.setEnabled(false); - break; - } - return () => { - ReducedMotionManager.setEnabled(wasEnabled); - }; - }, [mode]); - return null; -} -//# sourceMappingURL=ReducedMotionConfig.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ReducedMotionConfig.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ReducedMotionConfig.js.map deleted file mode 100644 index 4e6be364..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ReducedMotionConfig.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","logger","ReduceMotion","isReducedMotionEnabledInSystem","ReducedMotionManager","ReducedMotionConfig","mode","__DEV__","warn","wasEnabled","jsValue","System","setEnabled","Always","Never"],"sourceRoot":"../../../src","sources":["component/ReducedMotionConfig.tsx"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SACEC,8BAA8B,EAC9BC,oBAAoB,QACf,kBAAkB;;AAEzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAAC;EAAEC;AAA6B,CAAC,EAAE;EACpEN,SAAS,CAAC,MAAM;IACd,IAAI,CAACO,OAAO,EAAE;MACZ;IACF;IACAN,MAAM,CAACO,IAAI,CAAC,oDAAoDF,IAAI,IAAI,CAAC;IACzE;EACF,CAAC,EAAE,EAAE,CAAC;EAENN,SAAS,CAAC,MAAM;IACd,MAAMS,UAAU,GAAGL,oBAAoB,CAACM,OAAO;IAC/C,QAAQJ,IAAI;MACV,KAAKJ,YAAY,CAACS,MAAM;QACtBP,oBAAoB,CAACQ,UAAU,CAACT,8BAA8B,CAAC,CAAC,CAAC;QACjE;MACF,KAAKD,YAAY,CAACW,MAAM;QACtBT,oBAAoB,CAACQ,UAAU,CAAC,IAAI,CAAC;QACrC;MACF,KAAKV,YAAY,CAACY,KAAK;QACrBV,oBAAoB,CAACQ,UAAU,CAAC,KAAK,CAAC;QACtC;IACJ;IACA,OAAO,MAAM;MACXR,oBAAoB,CAACQ,UAAU,CAACH,UAAU,CAAC;IAC7C,CAAC;EACH,CAAC,EAAE,CAACH,IAAI,CAAC,CAAC;EAEV,OAAO,IAAI;AACb","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ScrollView.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ScrollView.js deleted file mode 100644 index c618fd03..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ScrollView.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -import React from 'react'; -import { ScrollView } from 'react-native'; -import { createAnimatedComponent } from '../createAnimatedComponent'; -import { useAnimatedRef, useScrollOffset } from '../hook'; - -// Since createAnimatedComponent return type is ComponentClass that has the props of the argument, -// but not things like NativeMethods, etc. we need to add them manually by extending the type. -import { jsx as _jsx } from "react/jsx-runtime"; -const AnimatedScrollViewComponent = createAnimatedComponent(ScrollView); -export function AnimatedScrollView({ - scrollViewOffset, - ref, - ...restProps -}) { - const animatedRef = ref === null ? - // eslint-disable-next-line react-hooks/rules-of-hooks - useAnimatedRef() : ref; - if (scrollViewOffset) { - // eslint-disable-next-line react-hooks/rules-of-hooks - useScrollOffset(animatedRef, scrollViewOffset); - } - - // Set default scrollEventThrottle, because user expects - // to have continuous scroll events. - // We set it to 1 so we have peace until - // there are 960 fps screens. - if (!('scrollEventThrottle' in restProps)) { - restProps.scrollEventThrottle = 1; - } - return /*#__PURE__*/_jsx(AnimatedScrollViewComponent, { - ref: animatedRef, - ...restProps - }); -} -//# sourceMappingURL=ScrollView.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ScrollView.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ScrollView.js.map deleted file mode 100644 index fe7a0308..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/ScrollView.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["React","ScrollView","createAnimatedComponent","useAnimatedRef","useScrollOffset","jsx","_jsx","AnimatedScrollViewComponent","AnimatedScrollView","scrollViewOffset","ref","restProps","animatedRef","scrollEventThrottle"],"sourceRoot":"../../../src","sources":["component/ScrollView.tsx"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,UAAU,QAAQ,cAAc;AAGzC,SAASC,uBAAuB,QAAQ,4BAA4B;AAGpE,SAASC,cAAc,EAAEC,eAAe,QAAQ,SAAS;;AAQzD;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAKA,MAAMC,2BAA2B,GAAGL,uBAAuB,CAACD,UAAU,CAAC;AAEvE,OAAO,SAASO,kBAAkBA,CAAC;EACjCC,gBAAgB;EAChBC,GAAG;EACH,GAAGC;AACoB,CAAC,EAAE;EAC1B,MAAMC,WAAW,GACfF,GAAG,KAAK,IAAI;EACR;EACAP,cAAc,CAAa,CAAC,GAC3BO,GAA+B;EAEtC,IAAID,gBAAgB,EAAE;IACpB;IACAL,eAAe,CAACQ,WAAW,EAAEH,gBAAgB,CAAC;EAChD;;EAEA;EACA;EACA;EACA;EACA,IAAI,EAAE,qBAAqB,IAAIE,SAAS,CAAC,EAAE;IACzCA,SAAS,CAACE,mBAAmB,GAAG,CAAC;EACnC;EAEA,oBAAOP,IAAA,CAACC,2BAA2B;IAACG,GAAG,EAAEE,WAAY;IAAA,GAAKD;EAAS,CAAG,CAAC;AACzE","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Text.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Text.js deleted file mode 100644 index aefc2ba7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Text.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -import { Text } from 'react-native'; -import { createAnimatedComponent } from '../createAnimatedComponent'; - -// Since createAnimatedComponent return type is ComponentClass that has the props of the argument, -// but not things like NativeMethods, etc. we need to add them manually by extending the type. - -export const AnimatedText = createAnimatedComponent(Text); -//# sourceMappingURL=Text.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Text.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Text.js.map deleted file mode 100644 index 828ff75f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/Text.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Text","createAnimatedComponent","AnimatedText"],"sourceRoot":"../../../src","sources":["component/Text.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,uBAAuB,QAAQ,4BAA4B;;AAEpE;AACA;;AAKA,OAAO,MAAMC,YAAY,GAAGD,uBAAuB,CAACD,IAAI,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/View.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/View.js deleted file mode 100644 index 31fbc97d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/View.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -import { View } from 'react-native'; -import { createAnimatedComponent } from '../createAnimatedComponent'; - -// Since createAnimatedComponent return type is ComponentClass that has the props of the argument, -// but not things like NativeMethods, etc. we need to add them manually by extending the type. - -export const AnimatedView = createAnimatedComponent(View); -//# sourceMappingURL=View.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/View.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/component/View.js.map deleted file mode 100644 index a38a61c3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/component/View.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["View","createAnimatedComponent","AnimatedView"],"sourceRoot":"../../../src","sources":["component/View.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,uBAAuB,QAAQ,4BAA4B;;AAEpE;AACA;;AAKA,OAAO,MAAMC,YAAY,GAAGD,uBAAuB,CAACD,IAAI,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/core.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/core.js deleted file mode 100644 index cae07397..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/core.js +++ /dev/null @@ -1,118 +0,0 @@ -'use strict'; - -import { controlEdgeToEdgeValues, isEdgeToEdge } from 'react-native-is-edge-to-edge'; -import { createSerializable } from 'react-native-worklets'; -import { logger, ReanimatedError } from './common'; -import { ReanimatedModule } from './ReanimatedModule'; -import { SensorContainer } from './SensorContainer'; -export { startMapper, stopMapper } from './mappers'; -export { makeMutable } from './mutables'; -const EDGE_TO_EDGE = isEdgeToEdge(); - -/** - * @deprecated Please use the exported variable `reanimatedVersion` instead. - * @returns `false` in Reanimated 4, `true` in Reanimated 3, doesn't exist in - * Reanimated 2 or 1 - */ -export const isReanimated3 = () => { - logger.warn('The `isReanimated3` function is deprecated. Please use the exported variable `reanimatedVersion` instead.'); - return false; -}; - -// Superseded by check in `/src/threads.ts`. -// Used by `react-navigation` to detect if using Reanimated 2 or 3. -/** - * @deprecated Please use the exported variable `reanimatedVersion` instead. - * @returns `false` in Reanimated 4, `true` in Reanimated 3, doesn't exist in - * Reanimated 2 or 1 - */ -export const isConfigured = isReanimated3; -export function getViewProp(viewTag, propName, component) { - if (!component) { - throw new ReanimatedError('Function `getViewProp` requires a component to be passed as an argument on Fabric.'); - } - - // eslint-disable-next-line @typescript-eslint/no-misused-promises - return new Promise((resolve, reject) => { - return ReanimatedModule.getViewProp(viewTag, propName, component, result => { - if (typeof result === 'string' && result.slice(0, 6) === 'error:') { - // eslint-disable-next-line @typescript-eslint/prefer-promise-reject-errors - reject(result); - } else { - resolve(result); - } - }); - }); -} -function getSensorContainer() { - if (!global.__sensorContainer) { - global.__sensorContainer = new SensorContainer(); - } - return global.__sensorContainer; -} -export function registerEventHandler(eventHandler, eventName, emitterReactTag = -1) { - function handleAndFlushAnimationFrame(eventTimestamp, event) { - 'worklet'; - - // TODO: Fix this and don't call `__flushAnimationFrame` here. - global.__frameTimestamp = eventTimestamp; - eventHandler(event); - global.__flushAnimationFrame(eventTimestamp); - global.__frameTimestamp = undefined; - } - return ReanimatedModule.registerEventHandler(createSerializable(handleAndFlushAnimationFrame), eventName, emitterReactTag); -} -export function unregisterEventHandler(id) { - return ReanimatedModule.unregisterEventHandler(id); -} -export function subscribeForKeyboardEvents(eventHandler, options) { - // TODO: this should really go with the same code path as other events, that is - // via registerEventHandler. For now we are copying the code from there. - function handleAndFlushAnimationFrame(state, height) { - 'worklet'; - - // TODO: Fix this and don't call `__flushAnimationFrame` here. - const now = global._getAnimationTimestamp(); - global.__frameTimestamp = now; - eventHandler(state, height); - global.__flushAnimationFrame(now); - global.__frameTimestamp = undefined; - } - if (__DEV__) { - controlEdgeToEdgeValues({ - isStatusBarTranslucentAndroid: options.isStatusBarTranslucentAndroid, - isNavigationBarTranslucentAndroid: options.isNavigationBarTranslucentAndroid - }); - } - return ReanimatedModule.subscribeForKeyboardEvents(createSerializable(handleAndFlushAnimationFrame), EDGE_TO_EDGE || (options.isStatusBarTranslucentAndroid ?? false), EDGE_TO_EDGE || (options.isNavigationBarTranslucentAndroid ?? false)); -} -export function unsubscribeFromKeyboardEvents(listenerId) { - return ReanimatedModule.unsubscribeFromKeyboardEvents(listenerId); -} -export function registerSensor(sensorType, config, eventHandler) { - const sensorContainer = getSensorContainer(); - return sensorContainer.registerSensor(sensorType, config, createSerializable(eventHandler)); -} -export function initializeSensor(sensorType, config) { - const sensorContainer = getSensorContainer(); - return sensorContainer.initializeSensor(sensorType, config); -} -export function unregisterSensor(sensorId) { - const sensorContainer = getSensorContainer(); - return sensorContainer.unregisterSensor(sensorId); -} - -/** - * @deprecated This function no longer has any effect in Reanimated and will be - * removed in the future. - */ -export function enableLayoutAnimations(_flag, _isCallByUser = true) { - logger.warn('`enableLayoutAnimations` is deprecated and will be removed in the future.'); -} -export function configureLayoutAnimationBatch(layoutAnimationsBatch) { - ReanimatedModule.configureLayoutAnimationBatch(layoutAnimationsBatch); -} -export function setShouldAnimateExitingForTag(viewTag, shouldAnimate) { - ReanimatedModule.setShouldAnimateExitingForTag(viewTag, shouldAnimate); -} -//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/core.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/core.js.map deleted file mode 100644 index 2feac211..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["controlEdgeToEdgeValues","isEdgeToEdge","createSerializable","logger","ReanimatedError","ReanimatedModule","SensorContainer","startMapper","stopMapper","makeMutable","EDGE_TO_EDGE","isReanimated3","warn","isConfigured","getViewProp","viewTag","propName","component","Promise","resolve","reject","result","slice","getSensorContainer","global","__sensorContainer","registerEventHandler","eventHandler","eventName","emitterReactTag","handleAndFlushAnimationFrame","eventTimestamp","event","__frameTimestamp","__flushAnimationFrame","undefined","unregisterEventHandler","id","subscribeForKeyboardEvents","options","state","height","now","_getAnimationTimestamp","__DEV__","isStatusBarTranslucentAndroid","isNavigationBarTranslucentAndroid","unsubscribeFromKeyboardEvents","listenerId","registerSensor","sensorType","config","sensorContainer","initializeSensor","unregisterSensor","sensorId","enableLayoutAnimations","_flag","_isCallByUser","configureLayoutAnimationBatch","layoutAnimationsBatch","setShouldAnimateExitingForTag","shouldAnimate"],"sourceRoot":"../../src","sources":["core.ts"],"mappings":"AAAA,YAAY;;AACZ,SACEA,uBAAuB,EACvBC,YAAY,QACP,8BAA8B;AAErC,SAASC,kBAAkB,QAAQ,uBAAuB;AAE1D,SAASC,MAAM,EAAEC,eAAe,QAAQ,UAAU;AAWlD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,WAAW,EAAEC,UAAU,QAAQ,WAAW;AACnD,SAASC,WAAW,QAAQ,YAAY;AAExC,MAAMC,YAAY,GAAGT,YAAY,CAAC,CAAC;;AAEnC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMU,aAAa,GAAGA,CAAA,KAAM;EACjCR,MAAM,CAACS,IAAI,CACT,2GACF,CAAC;EACD,OAAO,KAAK;AACd,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAGF,aAAa;AAEzC,OAAO,SAASG,WAAWA,CACzBC,OAAe,EACfC,QAAgB,EAChBC,SAA6B,EACjB;EACZ,IAA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EAAEC,MAAM,CAAC;AAC7D;AAEA,OAAO,SAASG,gBAAgBA,CAACC,QAAgB,EAAQ;EACvD,MAAMH,eAAe,GAAG7B,kBAAkB,CAAC,CAAC;EAC5C,OAAO6B,eAAe,CAACE,gBAAgB,CAACC,QAAQ,CAAC;AACnD;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CACpCC,KAAc,EACdC,aAAa,GAAG,IAAI,EACd;EACNvD,MAAM,CAACS,IAAI,CACT,2EACF,CAAC;AACH;AAEA,OAAO,SAAS+C,6BAA6BA,CAC3CC,qBAAiD,EAC3C;EACNvD,gBAAgB,CAACsD,6BAA6B,CAACC,qBAAqB,CAAC;AACvE;AAEA,OAAO,SAASC,6BAA6BA,CAC3C9C,OAA6B,EAC7B+C,aAAsB,EACtB;EACAzD,gBAAgB,CAACwD,6BAA6B,CAC5C9C,OAAO,EACP+C,aACF,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/AnimatedComponent.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/AnimatedComponent.js deleted file mode 100644 index b1ea031d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/AnimatedComponent.js +++ /dev/null @@ -1,282 +0,0 @@ -'use strict'; - -import '../layoutReanimation/animationsManager'; -import { maybeBuild } from '../animationBuilder'; -import { IS_JEST, IS_WEB, logger } from '../common'; -import { LayoutAnimationType } from '../commonTypes'; -import { SkipEnteringContext } from '../component/LayoutAnimationConfig'; -import ReanimatedAnimatedComponent from '../css/component/AnimatedComponent'; -import { configureWebLayoutAnimations, getReducedMotionFromConfig, saveSnapshot, startWebLayoutAnimation, tryActivateLayoutTransition } from '../layoutReanimation/web'; -import { addHTMLMutationObserver } from '../layoutReanimation/web/domUtils'; -import { updateLayoutAnimations } from '../UpdateLayoutAnimations'; -import { InlinePropManager } from './InlinePropManager'; -import jsPropsUpdater from './JSPropsUpdater'; -import { NativeEventsManager } from './NativeEventsManager'; -import { PropsFilter } from './PropsFilter'; -import { filterStyles, flattenArray } from './utils'; -let id = 0; -if (IS_WEB) { - configureWebLayoutAnimations(); -} -export default class AnimatedComponent extends ReanimatedAnimatedComponent { - _animatedStyles = []; - _prevAnimatedStyles = []; - _animatedProps = []; - _prevAnimatedProps = []; - _isFirstRender = true; - jestAnimatedStyle = { - value: {} - }; - jestAnimatedProps = { - value: {} - }; - _InlinePropManager = new InlinePropManager(); - _PropsFilter = new PropsFilter(); - static contextType = SkipEnteringContext; - reanimatedID = id++; - constructor(ChildComponent, props, displayName, options) { - super(ChildComponent, props); - this._options = options; - this._displayName = displayName; - if (IS_JEST) { - this.jestAnimatedStyle = { - value: {} - }; - this.jestAnimatedProps = { - value: {} - }; - } - const skipEntering = this.context?.current; - if (!skipEntering) { - this._configureLayoutAnimation(LayoutAnimationType.ENTERING, this.props.entering); - } - } - componentDidMount() { - super.componentDidMount(); - if (!IS_WEB) { - // It exists only on native platforms. We initialize it here because the ref to the animated component is available only post-mount - this._NativeEventsManager = new NativeEventsManager(this, this._options); - } - this._NativeEventsManager?.attachEvents(); - this._updateAnimatedStylesAndProps(); - this._InlinePropManager.attachInlineProps(this, this._getViewInfo()); - if (this._options?.jsProps?.length) { - jsPropsUpdater.registerComponent(this, this._options.jsProps); - } - this._configureLayoutAnimation(LayoutAnimationType.LAYOUT, this.props.layout); - this._configureLayoutAnimation(LayoutAnimationType.EXITING, this.props.exiting); - if (IS_WEB && this._componentDOMRef) { - const element = this._componentDOMRef; - const dummyClone = element.dummyClone; - // If the element was cloned (because of the exiting animation), we need bring it - // back to the DOM - while (dummyClone?.firstChild) { - element.appendChild(dummyClone.firstChild); - } - delete element.dummyClone; - if (this.props.exiting) { - saveSnapshot(element); - } - if (!this.props.entering || getReducedMotionFromConfig(this.props.entering)) { - this._isFirstRender = false; - return; - } - const skipEntering = this.context?.current; - if (!skipEntering) { - startWebLayoutAnimation(this.props, element, LayoutAnimationType.ENTERING); - } else if (element.style) { - element.style.visibility = 'initial'; - } - } - this._isFirstRender = false; - } - componentWillUnmount() { - super.componentWillUnmount(); - this._NativeEventsManager?.detachEvents(); - this._detachStyles(); - this._InlinePropManager.detachInlineProps(); - if (this._options?.jsProps?.length) { - jsPropsUpdater.unregisterComponent(this); - } - const exiting = this.props.exiting; - if (IS_WEB && this._componentDOMRef && exiting && !getReducedMotionFromConfig(exiting)) { - addHTMLMutationObserver(); - startWebLayoutAnimation(this.props, this._componentDOMRef, LayoutAnimationType.EXITING); - } - } - _detachStyles() { - const viewTag = this.getComponentViewTag(); - if (viewTag !== -1) { - for (const style of this._animatedStyles) { - style.viewDescriptors.remove(viewTag); - } - if (this.props.animatedProps?.viewDescriptors) { - this.props.animatedProps.viewDescriptors.remove(viewTag); - } - } - } - setNativeProps(props) { - if (this._options?.setNativeProps) { - this._options.setNativeProps(this._componentRef, props); - } else { - this._componentRef?.setNativeProps?.(props); - } - } - _handleAnimatedStylesUpdate(prevStyles, currentStyles, jestAnimatedStyleOrProps) { - const { - viewTag, - shadowNodeWrapper - } = this._getViewInfo(); - const newStyles = new Set(currentStyles); - const isStyleAttached = style => style.viewDescriptors.has(viewTag); - - // remove old styles - if (prevStyles) { - // in most of the cases, views have only a single animated style and it remains unchanged - const hasOneSameStyle = currentStyles.length === 1 && prevStyles.length === 1 && currentStyles[0] === prevStyles[0]; - if (hasOneSameStyle && isStyleAttached(prevStyles[0])) { - return; - } - - // otherwise, remove each style that is not present in new styles - for (const prevStyle of prevStyles) { - const isPresent = currentStyles.some(style => { - if (style === prevStyle && isStyleAttached(style)) { - newStyles.delete(style); - return true; - } - return false; - }); - if (!isPresent) { - prevStyle.viewDescriptors.remove(viewTag); - } - } - } - newStyles.forEach(style => { - style.viewDescriptors.add({ - tag: viewTag, - shadowNodeWrapper - }, style.styleUpdaterContainer); - if (IS_JEST) { - /** - * We need to connect Jest's TestObject instance whose contains just - * props object with the updateProps() function where we update the - * properties of the component. We can't update props object directly - * because TestObject contains a copy of props - look at render - * function: const props = this._filterNonAnimatedProps(this.props); - */ - Object.assign(jestAnimatedStyleOrProps.value, style.initial.value); - style.jestAnimatedValues.current = jestAnimatedStyleOrProps; - } - }); - } - _updateAnimatedStylesAndProps() { - this._handleAnimatedStylesUpdate(this._prevAnimatedStyles, this._animatedStyles, this.jestAnimatedStyle); - this._handleAnimatedStylesUpdate(this._prevAnimatedProps, this._animatedProps, this.jestAnimatedProps); - } - componentDidUpdate(prevProps, _prevState, snapshot) { - this._configureLayoutAnimation(LayoutAnimationType.LAYOUT, this.props.layout, prevProps.layout); - this._configureLayoutAnimation(LayoutAnimationType.EXITING, this.props.exiting, prevProps.exiting); - this._NativeEventsManager?.updateEvents(prevProps); - this._updateAnimatedStylesAndProps(); - this._InlinePropManager.attachInlineProps(this, this._getViewInfo()); - if (IS_WEB && this.props.exiting && this._componentDOMRef) { - saveSnapshot(this._componentDOMRef); - } - if (IS_WEB && snapshot && this.props.layout && !getReducedMotionFromConfig(this.props.layout)) { - tryActivateLayoutTransition(this.props, this._componentDOMRef, snapshot); - } - } - _updateStyles(props) { - const filteredStyles = filterStyles(flattenArray(props.style ?? [])); - this._prevAnimatedStyles = this._animatedStyles; - this._animatedStyles = filteredStyles.animatedStyles; - const filteredAnimatedProps = filterStyles(flattenArray(props.animatedProps ?? [])); - this._prevAnimatedProps = this._animatedProps; - this._animatedProps = filteredAnimatedProps.animatedStyles; - if (filteredAnimatedProps.cssStyle) { - if (__DEV__ && filteredStyles.cssStyle) { - logger.warn('AnimatedComponent: CSS properties cannot be used in style and animatedProps at the same time. Using properties from the style object.'); - this._cssStyle = filteredStyles.cssStyle; - return; - } - - // Add all remaining props to cssStyle object - // (e.g. SVG components are styled via top level props, not via style object) - const mergedProps = { - ...props, - ...filteredAnimatedProps.cssStyle - }; - delete mergedProps.style; - delete mergedProps.animatedProps; - this._cssStyle = mergedProps; - } else { - this._cssStyle = filteredStyles.cssStyle ?? {}; - } - } - _configureLayoutAnimation(type, currentConfig, previousConfig) { - if (IS_WEB || currentConfig === previousConfig) { - return; - } - updateLayoutAnimations(type === LayoutAnimationType.ENTERING ? this.reanimatedID : this.getComponentViewTag(), type, currentConfig && maybeBuild(currentConfig, type === LayoutAnimationType.LAYOUT ? undefined /* We don't have to warn user if style has common properties with animation for LAYOUT */ : this.props?.style, this._displayName)); - } - - // This is a component lifecycle method from React, therefore we are not calling it directly. - // It is called before the component gets rerendered. This way we can access components' position before it changed - // and later on, in componentDidUpdate, calculate translation for layout transition. - getSnapshotBeforeUpdate() { - if (IS_WEB && this.props.layout && this._componentDOMRef?.getBoundingClientRect) { - return this._componentDOMRef.getBoundingClientRect(); - } - - // `getSnapshotBeforeUpdate` has to return value which is not `undefined`. - return null; - } - render() { - const filteredProps = this._PropsFilter.filterNonAnimatedProps(this); - if (IS_JEST) { - filteredProps.jestAnimatedStyle = this.jestAnimatedStyle; - filteredProps.jestAnimatedProps = this.jestAnimatedProps; - } - - // Layout animations on web are set inside `componentDidMount` method, which is called after first render. - // Because of that we can encounter a situation in which component is visible for a short amount of time, and later on animation triggers. - // I've tested that on various browsers and devices and it did not happen to me. To be sure that it won't happen to someone else, - // I've decided to hide component at first render. Its visibility is reset in `componentDidMount`. - if (this._isFirstRender && IS_WEB && filteredProps.entering && !getReducedMotionFromConfig(filteredProps.entering)) { - filteredProps.style = Array.isArray(filteredProps.style) ? filteredProps.style.concat([{ - visibility: 'hidden' - }]) : { - ...(filteredProps.style ?? {}), - visibility: 'hidden' // Hide component until `componentDidMount` triggers - }; - } - const skipEntering = this.context?.current; - const nativeID = skipEntering ? undefined : `${this.reanimatedID}`; - const jestProps = IS_JEST ? { - jestInlineStyle: this.props.style && filterOutAnimatedStyles(this.props.style), - jestAnimatedStyle: this.jestAnimatedStyle, - jestAnimatedProps: this.jestAnimatedProps - } : {}; - return super.render({ - nativeID, - ...filteredProps, - ...jestProps - }); - } -} -function filterOutAnimatedStyles(style) { - if (!style) { - return style; - } - if (!Array.isArray(style)) { - return style?.viewDescriptors ? {} : style; - } - return style.filter(styleElement => !(styleElement && 'viewDescriptors' in styleElement)).map(styleElement => { - if (Array.isArray(styleElement)) { - return filterOutAnimatedStyles(styleElement); - } - return styleElement; - }); -} -//# sourceMappingURL=AnimatedComponent.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/AnimatedComponent.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/AnimatedComponent.js.map deleted file mode 100644 index 4dc0b3f8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/AnimatedComponent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["maybeBuild","IS_JEST","IS_WEB","logger","LayoutAnimationType","SkipEnteringContext","ReanimatedAnimatedComponent","configureWebLayoutAnimations","getReducedMotionFromConfig","saveSnapshot","startWebLayoutAnimation","tryActivateLayoutTransition","addHTMLMutationObserver","updateLayoutAnimations","InlinePropManager","jsPropsUpdater","NativeEventsManager","PropsFilter","filterStyles","flattenArray","id","AnimatedComponent","_animatedStyles","_prevAnimatedStyles","_animatedProps","_prevAnimatedProps","_isFirstRender","jestAnimatedStyle","value","jestAnimatedProps","_InlinePropManager","_PropsFilter","contextType","reanimatedID","constructor","ChildComponent","props","displayName","options","_options","_displayName","skipEntering","context","current","_configureLayoutAnimation","ENTERING","entering","componentDidMount","_NativeEventsManager","attachEvents","_updateAnimatedStylesAndProps","attachInlineProps","_getViewInfo","jsProps","length","registerComponent","LAYOUT","layout","EXITING","exiting","_componentDOMRef","element","dummyClone","firstChild","appendChild","style","visibility","componentWillUnmount","detachEvents","_detachStyles","detachInlineProps","unregisterComponent","viewTag","getComponentViewTag","viewDescriptors","remove","animatedProps","setNativeProps","_componentRef","_handleAnimatedStylesUpdate","prevStyles","currentStyles","jestAnimatedStyleOrProps","shadowNodeWrapper","newStyles","Set","isStyleAttached","has","hasOneSameStyle","prevStyle","isPresent","some","delete","forEach","add","tag","styleUpdaterContainer","Object","assign","initial","jestAnimatedValues","componentDidUpdate","prevProps","_prevState","snapshot","updateEvents","_updateStyles","filteredStyles","animatedStyles","filteredAnimatedProps","cssStyle","__DEV__","warn","_cssStyle","mergedProps","type","currentConfig","previousConfig","undefined","getSnapshotBeforeUpdate","getBoundingClientRect","render","filteredProps","filterNonAnimatedProps","Array","isArray","concat","nativeID","jestProps","jestInlineStyle","filterOutAnimatedStyles","filter","styleElement","map"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/AnimatedComponent.tsx"],"mappings":"AAAA,YAAY;;AACZ,OAAO,wCAAwC;AAI/C,SAASA,UAAU,QAAQ,qBAAqB;AAChD,SAASC,OAAO,EAAEC,MAAM,EAAEC,MAAM,QAAQ,WAAW;AAEnD,SAASC,mBAAmB,QAAQ,gBAAgB;AACpD,SAASC,mBAAmB,QAAQ,oCAAoC;AACxE,OAAOC,2BAA2B,MAAM,oCAAoC;AAE5E,SACEC,4BAA4B,EAC5BC,0BAA0B,EAC1BC,YAAY,EACZC,uBAAuB,EACvBC,2BAA2B,QACtB,0BAA0B;AAEjC,SAASC,uBAAuB,QAAQ,mCAAmC;AAE3E,SAASC,sBAAsB,QAAQ,2BAA2B;AAYlE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,YAAY,EAAEC,YAAY,QAAQ,SAAS;AAEpD,IAAIC,EAAE,GAAG,CAAC;AAEV,IAAIlB,MAAM,EAAE;EACVK,4BAA4B,CAAC,CAAC;AAChC;AAOA,eAAe,MAAMc,iBAAiB,SAC5Bf,2BAA2B,CAIrC;EAGEgB,eAAe,GAAiB,EAAE;EAClCC,mBAAmB,GAAiB,EAAE;EACtCC,cAAc,GAAqD,EAAE;EACrEC,kBAAkB,GAAqD,EAAE;EACzEC,cAAc,GAAG,IAAI;EAErBC,iBAAiB,GAA0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;QACE,IAAIwD,aAAa,CAACzD,KAAK,IAAI,CAAC,CAAC,CAAC;QAC9BC,UAAU,EAAE,QAAQ,CAAE;MACxB,CAAC;IACP;IAEA,MAAMzB,YAAY,GAAG,IAAI,CAACC,OAAO,EAAEC,OAAO;IAC1C,MAAMoF,QAAQ,GAAGtF,YAAY,GAAG6E,SAAS,GAAG,GAAG,IAAI,CAACrF,YAAY,EAAE;IAElE,MAAM+F,SAAS,GAAG/H,OAAO,GACrB;MACEgI,eAAe,EACb,IAAI,CAAC7F,KAAK,CAAC6B,KAAK,IAAIiE,uBAAuB,CAAC,IAAI,CAAC9F,KAAK,CAAC6B,KAAK,CAAC;MAC/DtC,iBAAiB,EAAE,IAAI,CAACA,iBAAiB;MACzCE,iBAAiB,EAAE,IAAI,CAACA;IAC1B,CAAC,GACD,CAAC,CAAC;IAEN,OAAO,KAAK,CAAC4F,MAAM,CAAC;MAClBM,QAAQ;MACR,GAAGL,aAAa;MAChB,GAAGM;IACL,CAAC,CAAC;EACJ;AACF;AAEA,SAASE,uBAAuBA,CAC9BjE,KAAuE,EAC3B;EAC5C,IAAI,CAACA,KAAK,EAAE;IACV,OAAOA,KAAK;EACd;EACA,IAAI,CAAC2D,KAAK,CAACC,OAAO,CAAC5D,KAAK,CAAC,EAAE;IACzB,OAAOA,KAAK,EAAES,eAAe,GAAG,CAAC,CAAC,GAAGT,KAAK;EAC5C;EACA,OAAOA,KAAK,CACTkE,MAAM,CACJC,YAAY,IAAK,EAAEA,YAAY,IAAI,iBAAiB,IAAIA,YAAY,CACvE,CAAC,CACAC,GAAG,CAAED,YAAY,IAAK;IACrB,IAAIR,KAAK,CAACC,OAAO,CAACO,YAAY,CAAC,EAAE;MAC/B,OAAOF,uBAAuB,CAACE,YAAY,CAAC;IAC9C;IACA,OAAOA,YAAY;EACrB,CAAC,CAAC;AACN","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js index 5828da9d..c0a7dd31 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js @@ -1,10 +1,16 @@ 'use strict'; -import { isSharedValue } from '../isSharedValue'; -import { startMapper, stopMapper } from '../mappers'; -import { updateProps } from '../updateProps'; -import { makeViewDescriptorsSet } from '../ViewDescriptorsSet'; +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } import { flattenArray } from './utils'; +import { makeViewDescriptorsSet } from '../reanimated2/ViewDescriptorsSet'; +import { adaptViewConfig } from '../ConfigHelper'; +import updateProps from '../reanimated2/UpdateProps'; +import { stopMapper, startMapper } from '../reanimated2/mappers'; +import { isSharedValue } from '../reanimated2/isSharedValue'; +import { shouldBeUseWeb } from '../reanimated2/PlatformChecker'; +const SHOULD_BE_USE_WEB = shouldBeUseWeb(); function isInlineStyleTransform(transform) { if (!Array.isArray(transform)) { return false; @@ -16,29 +22,28 @@ function inlinePropsHasChanged(styles1, styles2) { return true; } for (const key of Object.keys(styles1)) { - if (styles1[key] !== styles2[key]) { - return true; - } + if (styles1[key] !== styles2[key]) return true; } return false; } -function getInlinePropsUpdate(styleValue) { +function getInlinePropsUpdate(inlineProps) { 'worklet'; - if (isSharedValue(styleValue)) { - return styleValue.value; - } - if (Array.isArray(styleValue)) { - return styleValue.map(getInlinePropsUpdate); - } - if (styleValue && typeof styleValue === 'object') { - const update = {}; - for (const [key, value] of Object.entries(styleValue)) { - update[key] = getInlinePropsUpdate(value); + const update = {}; + for (const [key, styleValue] of Object.entries(inlineProps)) { + if (isSharedValue(styleValue)) { + update[key] = styleValue.value; + } else if (Array.isArray(styleValue)) { + update[key] = styleValue.map(item => { + return getInlinePropsUpdate(item); + }); + } else if (typeof styleValue === 'object') { + update[key] = getInlinePropsUpdate(styleValue); + } else { + update[key] = styleValue; } - return update; } - return styleValue; + return update; } function extractSharedValuesMapFromProps(props) { const inlineProps = {}; @@ -50,11 +55,11 @@ function extractSharedValuesMapFromProps(props) { if (!style) { return; } - for (const [styleKey, styleValue] of Object.entries(style)) { + for (const [key, styleValue] of Object.entries(style)) { if (isSharedValue(styleValue)) { - inlineProps[styleKey] = styleValue; - } else if (styleKey === 'transform' && isInlineStyleTransform(styleValue)) { - inlineProps[styleKey] = styleValue; + inlineProps[key] = styleValue; + } else if (key === 'transform' && isInlineStyleTransform(styleValue)) { + inlineProps[key] = styleValue; } } }); @@ -86,9 +91,11 @@ export function getInlineStyle(style, isFirstRender) { return newStyle; } export class InlinePropManager { - _inlinePropsViewDescriptors = null; - _inlinePropsMapperId = null; - _inlineProps = {}; + constructor() { + _defineProperty(this, "_inlinePropsViewDescriptors", null); + _defineProperty(this, "_inlinePropsMapperId", null); + _defineProperty(this, "_inlineProps", {}); + } attachInlineProps(animatedComponent, viewInfo) { const newInlineProps = extractSharedValuesMapFromProps(animatedComponent.props); const hasChanged = inlinePropsHasChanged(newInlineProps, this._inlineProps); @@ -97,19 +104,32 @@ export class InlinePropManager { this._inlinePropsViewDescriptors = makeViewDescriptorsSet(); const { viewTag, - shadowNodeWrapper + viewName, + shadowNodeWrapper, + viewConfig } = viewInfo; + if (Object.keys(newInlineProps).length && viewConfig) { + adaptViewConfig(viewConfig); + } this._inlinePropsViewDescriptors.add({ + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion tag: viewTag, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + name: viewName, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion shadowNodeWrapper: shadowNodeWrapper }); } const shareableViewDescriptors = this._inlinePropsViewDescriptors.shareableViewDescriptors; + const maybeViewRef = SHOULD_BE_USE_WEB ? { + items: new Set([animatedComponent]) + } // see makeViewsRefSet + : undefined; const updaterFunction = () => { 'worklet'; const update = getInlinePropsUpdate(newInlineProps); - updateProps(shareableViewDescriptors, update); + updateProps(shareableViewDescriptors, update, maybeViewRef); }; this._inlineProps = newInlineProps; if (this._inlinePropsMapperId) { diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js.map index 1d36e2e0..fad0bd58 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/InlinePropManager.js.map @@ -1 +1 @@ -{"version":3,"names":["isSharedValue","startMapper","stopMapper","updateProps","makeViewDescriptorsSet","flattenArray","isInlineStyleTransform","transform","Array","isArray","some","t","hasInlineStyles","inlinePropsHasChanged","styles1","styles2","Object","keys","length","key","getInlinePropsUpdate","styleValue","value","map","update","entries","extractSharedValuesMapFromProps","props","inlineProps","styles","style","forEach","styleKey","getInlineStyle","isFirstRender","newStyle","InlinePropManager","_inlinePropsViewDescriptors","_inlinePropsMapperId","_inlineProps","attachInlineProps","animatedComponent","viewInfo","newInlineProps","hasChanged","viewTag","shadowNodeWrapper","add","tag","shareableViewDescriptors","updaterFunction","values","detachInlineProps"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/InlinePropManager.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,aAAa,QAAQ,kBAAkB;AAChD,SAASC,WAAW,EAAEC,UAAU,QAAQ,YAAY;AACpD,SAASC,WAAW,QAAQ,gBAAgB;AAE5C,SAASC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AAS;;QACT,MAAM1B,MAAM,GAAGJ,oBAAoB,CAACuB,cAAc,CAAC;QACnDxC,WAAW,CAAC8C,wBAAwB,EAAEzB,MAAM,CAAC;MAC/C,CAAC;MACD,IAAI,CAACe,YAAY,GAAGI,cAAc;MAClC,IAAI,IAAI,CAACL,oBAAoB,EAAE;QAC7BpC,UAAU,CAAC,IAAI,CAACoC,oBAAoB,CAAC;MACvC;MACA,IAAI,CAACA,oBAAoB,GAAG,IAAI;MAChC,IAAItB,MAAM,CAACC,IAAI,CAAC0B,cAAc,CAAC,CAACzB,MAAM,EAAE;QACtC,IAAI,CAACoB,oBAAoB,GAAGrC,WAAW,CACrCiD,eAAe,EACflC,MAAM,CAACmC,MAAM,CAACR,cAAc,CAC9B,CAAC;MACH;IACF;EACF;EAEOS,iBAAiBA,CAAA,EAAG;IACzB,IAAI,IAAI,CAACd,oBAAoB,EAAE;MAC7BpC,UAAU,CAAC,IAAI,CAACoC,oBAAoB,CAAC;IACvC;EACF;AACF","ignoreList":[]} +{"version":3,"names":["_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","flattenArray","makeViewDescriptorsSet","adaptViewConfig","updateProps","stopMapper","startMapper","isSharedValue","shouldBeUseWeb","SHOULD_BE_USE_WEB","isInlineStyleTransform","transform","Array","isArray","some","t","hasInlineStyles","inlinePropsHasChanged","styles1","styles2","keys","length","getInlinePropsUpdate","inlineProps","update","styleValue","entries","map","item","extractSharedValuesMapFromProps","props","styles","style","forEach","getInlineStyle","isFirstRender","newStyle","InlinePropManager","constructor","attachInlineProps","animatedComponent","viewInfo","newInlineProps","hasChanged","_inlineProps","_inlinePropsViewDescriptors","viewTag","viewName","shadowNodeWrapper","viewConfig","add","tag","name","shareableViewDescriptors","maybeViewRef","items","Set","updaterFunction","_inlinePropsMapperId","values","detachInlineProps"],"sources":["InlinePropManager.ts"],"sourcesContent":["'use strict';\nimport type { StyleProps } from '../reanimated2';\nimport type {\n IAnimatedComponentInternal,\n AnimatedComponentProps,\n IInlinePropManager,\n ViewInfo,\n} from './commonTypes';\nimport { flattenArray } from './utils';\nimport { makeViewDescriptorsSet } from '../reanimated2/ViewDescriptorsSet';\nimport type {\n ViewDescriptorsSet,\n ViewRefSet,\n} from '../reanimated2/ViewDescriptorsSet';\nimport { adaptViewConfig } from '../ConfigHelper';\nimport updateProps from '../reanimated2/UpdateProps';\nimport { stopMapper, startMapper } from '../reanimated2/mappers';\nimport { isSharedValue } from '../reanimated2/isSharedValue';\nimport { shouldBeUseWeb } from '../reanimated2/PlatformChecker';\n\nconst SHOULD_BE_USE_WEB = shouldBeUseWeb();\n\nfunction isInlineStyleTransform(transform: unknown): boolean {\n if (!Array.isArray(transform)) {\n return false;\n }\n\n return transform.some((t: Record) => hasInlineStyles(t));\n}\n\nfunction inlinePropsHasChanged(\n styles1: StyleProps,\n styles2: StyleProps\n): boolean {\n if (Object.keys(styles1).length !== Object.keys(styles2).length) {\n return true;\n }\n\n for (const key of Object.keys(styles1)) {\n if (styles1[key] !== styles2[key]) return true;\n }\n\n return false;\n}\n\nfunction getInlinePropsUpdate(inlineProps: Record) {\n 'worklet';\n const update: Record = {};\n for (const [key, styleValue] of Object.entries(inlineProps)) {\n if (isSharedValue(styleValue)) {\n update[key] = styleValue.value;\n } else if (Array.isArray(styleValue)) {\n update[key] = styleValue.map((item) => {\n return getInlinePropsUpdate(item);\n });\n } else if (typeof styleValue === 'object') {\n update[key] = getInlinePropsUpdate(styleValue as Record);\n } else {\n update[key] = styleValue;\n }\n }\n return update;\n}\n\nfunction extractSharedValuesMapFromProps(\n props: AnimatedComponentProps<\n Record /* Initial component props */\n >\n): Record {\n const inlineProps: Record = {};\n\n for (const key in props) {\n const value = props[key];\n if (key === 'style') {\n const styles = flattenArray(props.style ?? []);\n styles.forEach((style) => {\n if (!style) {\n return;\n }\n for (const [key, styleValue] of Object.entries(style)) {\n if (isSharedValue(styleValue)) {\n inlineProps[key] = styleValue;\n } else if (\n key === 'transform' &&\n isInlineStyleTransform(styleValue)\n ) {\n inlineProps[key] = styleValue;\n }\n }\n });\n } else if (isSharedValue(value)) {\n inlineProps[key] = value;\n }\n }\n\n return inlineProps;\n}\n\nexport function hasInlineStyles(style: StyleProps): boolean {\n if (!style) {\n return false;\n }\n return Object.keys(style).some((key) => {\n const styleValue = style[key];\n return (\n isSharedValue(styleValue) ||\n (key === 'transform' && isInlineStyleTransform(styleValue))\n );\n });\n}\n\nexport function getInlineStyle(\n style: Record,\n isFirstRender: boolean\n) {\n if (isFirstRender) {\n return getInlinePropsUpdate(style);\n }\n const newStyle: StyleProps = {};\n for (const [key, styleValue] of Object.entries(style)) {\n if (\n !isSharedValue(styleValue) &&\n !(key === 'transform' && isInlineStyleTransform(styleValue))\n ) {\n newStyle[key] = styleValue;\n }\n }\n return newStyle;\n}\n\nexport class InlinePropManager implements IInlinePropManager {\n _inlinePropsViewDescriptors: ViewDescriptorsSet | null = null;\n _inlinePropsMapperId: number | null = null;\n _inlineProps: StyleProps = {};\n\n public attachInlineProps(\n animatedComponent: React.Component &\n IAnimatedComponentInternal,\n viewInfo: ViewInfo\n ) {\n const newInlineProps: Record =\n extractSharedValuesMapFromProps(animatedComponent.props);\n const hasChanged = inlinePropsHasChanged(newInlineProps, this._inlineProps);\n\n if (hasChanged) {\n if (!this._inlinePropsViewDescriptors) {\n this._inlinePropsViewDescriptors = makeViewDescriptorsSet();\n\n const { viewTag, viewName, shadowNodeWrapper, viewConfig } = viewInfo;\n\n if (Object.keys(newInlineProps).length && viewConfig) {\n adaptViewConfig(viewConfig);\n }\n\n this._inlinePropsViewDescriptors.add({\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n tag: viewTag as number,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n name: viewName!,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n shadowNodeWrapper: shadowNodeWrapper!,\n });\n }\n const shareableViewDescriptors =\n this._inlinePropsViewDescriptors.shareableViewDescriptors;\n\n const maybeViewRef = SHOULD_BE_USE_WEB\n ? ({ items: new Set([animatedComponent]) } as ViewRefSet) // see makeViewsRefSet\n : undefined;\n const updaterFunction = () => {\n 'worklet';\n const update = getInlinePropsUpdate(newInlineProps);\n updateProps(shareableViewDescriptors, update, maybeViewRef);\n };\n this._inlineProps = newInlineProps;\n if (this._inlinePropsMapperId) {\n stopMapper(this._inlinePropsMapperId);\n }\n this._inlinePropsMapperId = null;\n if (Object.keys(newInlineProps).length) {\n this._inlinePropsMapperId = startMapper(\n updaterFunction,\n Object.values(newInlineProps)\n );\n }\n }\n }\n\n public detachInlineProps() {\n if (this._inlinePropsMapperId) {\n stopMapper(this._inlinePropsMapperId);\n }\n }\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,M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W,CACrCmD,eAAe,EACf1E,MAAM,CAAC4E,MAAM,CAACjB,cAAc,CAAC,CAC9B;MACH;IACF;EACF;EAEOkB,iBAAiBA,CAAA,EAAG;IACzB,IAAI,IAAI,CAACF,oBAAoB,EAAE;MAC7BrD,UAAU,CAAC,IAAI,CAACqD,oBAAoB,CAAC;IACvC;EACF;AACF"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js index f4b19fc7..c0bd9a77 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js @@ -1,50 +1,86 @@ 'use strict'; -import { runOnUI } from 'react-native-worklets'; -import { SHOULD_BE_USE_WEB } from '../common'; -class JSPropsUpdaterNative { - static _tagToComponentMapping = new Map(); - registerComponent(animatedComponent, jsProps) { - const viewTag = animatedComponent.getComponentViewTag(); - JSPropsUpdaterNative._tagToComponentMapping.set(viewTag, animatedComponent); - runOnUI(() => { - global._tagToJSPropNamesMapping[viewTag] = Object.fromEntries(jsProps.map(propName => [propName, true])); - })(); +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +import { NativeEventEmitter, NativeModules, findNodeHandle } from 'react-native'; +import { shouldBeUseWeb } from '../reanimated2/PlatformChecker'; +import { runOnJS, runOnUIImmediately } from '../reanimated2/threads'; +const SHOULD_BE_USE_WEB = shouldBeUseWeb(); +class JSPropsUpdaterPaper { + constructor() { + _defineProperty(this, "_reanimatedEventEmitter", void 0); + this._reanimatedEventEmitter = new NativeEventEmitter(NativeModules.ReanimatedModule); } - unregisterComponent(animatedComponent) { - const viewTag = animatedComponent.getComponentViewTag(); - JSPropsUpdaterNative._tagToComponentMapping.delete(viewTag); - runOnUI(() => { - delete global._tagToJSPropNamesMapping[viewTag]; - })(); + addOnJSPropsChangeListener(animatedComponent) { + const viewTag = findNodeHandle(animatedComponent); + JSPropsUpdaterPaper._tagToComponentMapping.set(viewTag, animatedComponent); + if (JSPropsUpdaterPaper._tagToComponentMapping.size === 1) { + const listener = data => { + const component = JSPropsUpdaterPaper._tagToComponentMapping.get(data.viewTag); + component === null || component === void 0 ? void 0 : component._updateFromNative(data.props); + }; + this._reanimatedEventEmitter.addListener('onReanimatedPropsChange', listener); + } } - updateProps(operations) { - operations.forEach(({ - tag, - updates - }) => { - const component = JSPropsUpdaterNative._tagToComponentMapping.get(tag); - component?.setNativeProps(updates); - }); + removeOnJSPropsChangeListener(animatedComponent) { + const viewTag = findNodeHandle(animatedComponent); + JSPropsUpdaterPaper._tagToComponentMapping.delete(viewTag); + if (JSPropsUpdaterPaper._tagToComponentMapping.size === 0) { + this._reanimatedEventEmitter.removeAllListeners('onReanimatedPropsChange'); + } } } +_defineProperty(JSPropsUpdaterPaper, "_tagToComponentMapping", new Map()); +class JSPropsUpdaterFabric { + constructor() { + if (!JSPropsUpdaterFabric.isInitialized) { + const updater = (viewTag, props) => { + const component = JSPropsUpdaterFabric._tagToComponentMapping.get(viewTag); + component === null || component === void 0 ? void 0 : component._updateFromNative(props); + }; + runOnUIImmediately(() => { + 'worklet'; + + global.updateJSProps = (viewTag, props) => { + runOnJS(updater)(viewTag, props); + }; + })(); + JSPropsUpdaterFabric.isInitialized = true; + } + } + addOnJSPropsChangeListener(animatedComponent) { + if (!JSPropsUpdaterFabric.isInitialized) { + return; + } + const viewTag = findNodeHandle(animatedComponent); + JSPropsUpdaterFabric._tagToComponentMapping.set(viewTag, animatedComponent); + } + removeOnJSPropsChangeListener(animatedComponent) { + if (!JSPropsUpdaterFabric.isInitialized) { + return; + } + const viewTag = findNodeHandle(animatedComponent); + JSPropsUpdaterFabric._tagToComponentMapping.delete(viewTag); + } +} +_defineProperty(JSPropsUpdaterFabric, "_tagToComponentMapping", new Map()); +_defineProperty(JSPropsUpdaterFabric, "isInitialized", false); class JSPropsUpdaterWeb { - registerComponent(_animatedComponent) { + addOnJSPropsChangeListener(_animatedComponent) { // noop } - unregisterComponent(_animatedComponent) { - // noop - } - updateProps(_operations) { + removeOnJSPropsChangeListener(_animatedComponent) { // noop } } let JSPropsUpdater; if (SHOULD_BE_USE_WEB) { JSPropsUpdater = JSPropsUpdaterWeb; +} else if (global._IS_FABRIC) { + JSPropsUpdater = JSPropsUpdaterFabric; } else { - JSPropsUpdater = JSPropsUpdaterNative; + JSPropsUpdater = JSPropsUpdaterPaper; } -const jsPropsUpdater = new JSPropsUpdater(); -export default jsPropsUpdater; +export default JSPropsUpdater; //# sourceMappingURL=JSPropsUpdater.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js.map index fc35d180..0972e582 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/JSPropsUpdater.js.map @@ -1 +1 @@ -{"version":3,"names":["runOnUI","SHOULD_BE_USE_WEB","JSPropsUpdaterNative","_tagToComponentMapping","Map","registerComponent","animatedComponent","jsProps","viewTag","getComponentViewTag","set","global","_tagToJSPropNamesMapping","Object","fromEntries","map","propName","unregisterComponent","delete","updateProps","operations","forEach","tag","updates","component","get","setNativeProps","JSPropsUpdaterWeb","_animatedComponent","_operations","JSPropsUpdater","jsPropsUpdater"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/JSPropsUpdater.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,QAAQ,uBAAuB;AAE/C,SAASC,iBAAiB,QAAQ,WAAW;AAU7C,MAAMC,oBAAoB,CAA4B;EACpD,OAAeC,sBAAsB,GAAG,IAAIC,GAAG,CAG7C,CAAC;EAEIC,iBAAiBA,CACtBC,iBAAwC,EACxCC,OAAiB,EACjB;IACA,MAAMC,OAAO,GAAGF,iBAAiB,CAACG,mBAAmB,CAAC,CAAC;IACvDP,oBAAoB,CAACC,sBAAsB,CAACO,GAAG,CAACF,OAAO,EAAEF,iBAAiB,CAAC;IAE3EN,OAAO,CAAC,MAAM;MACZW,MAAM,CAACC,wBAAwB,CAACJ,OAAO,CAAC,GAAGK,MAAM,CAACC,WAAW,CAC3DP,OAAO,CAACQ,GAAG,CAAEC,QAAQ,IAAK,CAACA,QAAQ,EAAE,IAAI,CAAC,CAC5C,CAAC;IACH,CAAC,CAAC,CAAC,CAAC;EACN;EAEOC,mBAAmBA,CAACX,iBAAwC,EAAE;IACnE,MAAME,OAAO,GAAGF,iBAAiB,CAACG,mBAAmB,CAAC,CAAC;IACvDP,oBAAoB,CAACC,sBAAsB,CAACe,MAAM,CAACV,OAAO,CAAC;IAE3DR,OAAO,CAAC,MAAM;MACZ,OAAOW,MAAM,CAACC,wBAAwB,CAACJ,OAAO,CAAC;IACjD,CAAC,CAAC,CAAC,CAAC;EACN;EAEOW,WAAWA,CAACC,UAA8B,EAAE;IACjDA,UAAU,CAACC,OAAO,CAAC,CAAC;MAAEC,GAAG;MAAEC;IAAQ,CAAC,KAAK;MACvC,MAAMC,SAAS,GAAGtB,oBAAoB,CAACC,sBAAsB,CAACsB,GAAG,CAACH,GAAG,CAAC;MACtEE,SAAS,EAAEE,cAAc,CAACH,OAAO,CAAC;IACpC,CAAC,CAAC;EACJ;AACF;AAEA,MAAMI,iBAAiB,CAA4B;EAC1CtB,iBAAiBA,CACtBuB,kBAG4B,EAC5B;IACA;EAAA;EAGKX,mBAAmBA,CACxBW,kBAG4B,EAC5B;IACA;EAAA;EAGKT,WAAWA,CAACU,WAA+B,EAAE;IAClD;EAAA;AAEJ;AAMA,IAAIC,cAAqC;AACzC,IAAI7B,iBAAiB,EAAE;EACrB6B,cAAc,GAAGH,iBAAiB;AACpC,CAAC,MAAM;EACLG,cAAc,GAAG5B,oBAAoB;AACvC;AAEA,MAAM6B,cAAc,GAAG,IAAID,cAAc,CAAC,CAAC;AAE3C,eAAeC,cAAc","ignoreList":[]} +{"version":3,"names":["_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NativeEventEmitter","NativeModules","findNodeHandle","shouldBeUseWeb","runOnJS","runOnUIImmediately","SHOULD_BE_USE_WEB","JSPropsUpdaterPaper","constructor","_reanimatedEventEmitter","ReanimatedModule","addOnJSPropsChangeListener","animatedComponent","viewTag","_tagToComponentMapping","set","size","listener","data","component","get","_updateFromNative","props","addListener","removeOnJSPropsChangeListener","delete","removeAllListeners","Map","JSPropsUpdaterFabric","isInitialized","updater","global","updateJSProps","JSPropsUpdaterWeb","_animatedComponent","JSPropsUpdater","_IS_FABRIC"],"sources":["JSPropsUpdater.ts"],"sourcesContent":["'use strict';\nimport {\n NativeEventEmitter,\n NativeModules,\n findNodeHandle,\n} from 'react-native';\nimport { shouldBeUseWeb } from '../reanimated2/PlatformChecker';\nimport type { StyleProps } from '../reanimated2';\nimport { runOnJS, runOnUIImmediately } from '../reanimated2/threads';\nimport type {\n AnimatedComponentProps,\n IAnimatedComponentInternal,\n IJSPropsUpdater,\n InitialComponentProps,\n} from './commonTypes';\n\ninterface ListenerData {\n viewTag: number;\n props: StyleProps;\n}\n\nconst SHOULD_BE_USE_WEB = shouldBeUseWeb();\n\nclass JSPropsUpdaterPaper implements IJSPropsUpdater {\n private static _tagToComponentMapping = new Map();\n private _reanimatedEventEmitter: NativeEventEmitter;\n\n constructor() {\n this._reanimatedEventEmitter = new NativeEventEmitter(\n NativeModules.ReanimatedModule\n );\n }\n\n public addOnJSPropsChangeListener(\n animatedComponent: React.Component<\n AnimatedComponentProps\n > &\n IAnimatedComponentInternal\n ) {\n const viewTag = findNodeHandle(animatedComponent);\n JSPropsUpdaterPaper._tagToComponentMapping.set(viewTag, animatedComponent);\n if (JSPropsUpdaterPaper._tagToComponentMapping.size === 1) {\n const listener = (data: ListenerData) => {\n const component = JSPropsUpdaterPaper._tagToComponentMapping.get(\n data.viewTag\n );\n component?._updateFromNative(data.props);\n };\n this._reanimatedEventEmitter.addListener(\n 'onReanimatedPropsChange',\n listener\n );\n }\n }\n\n public removeOnJSPropsChangeListener(\n animatedComponent: React.Component<\n AnimatedComponentProps\n > &\n IAnimatedComponentInternal\n ) {\n const viewTag = findNodeHandle(animatedComponent);\n JSPropsUpdaterPaper._tagToComponentMapping.delete(viewTag);\n if (JSPropsUpdaterPaper._tagToComponentMapping.size === 0) {\n this._reanimatedEventEmitter.removeAllListeners(\n 'onReanimatedPropsChange'\n );\n }\n }\n}\n\nclass JSPropsUpdaterFabric implements IJSPropsUpdater {\n private static _tagToComponentMapping = new Map();\n private static isInitialized = false;\n\n constructor() {\n if (!JSPropsUpdaterFabric.isInitialized) {\n const updater = (viewTag: number, props: unknown) => {\n const component =\n JSPropsUpdaterFabric._tagToComponentMapping.get(viewTag);\n component?._updateFromNative(props);\n };\n runOnUIImmediately(() => {\n 'worklet';\n global.updateJSProps = (viewTag: number, props: unknown) => {\n runOnJS(updater)(viewTag, props);\n };\n })();\n JSPropsUpdaterFabric.isInitialized = true;\n }\n }\n\n public addOnJSPropsChangeListener(\n animatedComponent: React.Component<\n AnimatedComponentProps\n > &\n IAnimatedComponentInternal\n ) {\n if (!JSPropsUpdaterFabric.isInitialized) {\n return;\n }\n const viewTag = findNodeHandle(animatedComponent);\n JSPropsUpdaterFabric._tagToComponentMapping.set(viewTag, animatedComponent);\n }\n\n public removeOnJSPropsChangeListener(\n animatedComponent: React.Component<\n AnimatedComponentProps\n > &\n IAnimatedComponentInternal\n ) {\n if (!JSPropsUpdaterFabric.isInitialized) {\n return;\n }\n const viewTag = findNodeHandle(animatedComponent);\n JSPropsUpdaterFabric._tagToComponentMapping.delete(viewTag);\n }\n}\n\nclass JSPropsUpdaterWeb implements IJSPropsUpdater {\n public addOnJSPropsChangeListener(\n _animatedComponent: React.Component<\n AnimatedComponentProps\n > &\n IAnimatedComponentInternal\n ) {\n // noop\n }\n\n public removeOnJSPropsChangeListener(\n _animatedComponent: React.Component<\n AnimatedComponentProps\n > &\n IAnimatedComponentInternal\n ) {\n // noop\n }\n}\n\ntype JSPropsUpdaterOptions =\n | typeof JSPropsUpdaterWeb\n | typeof JSPropsUpdaterFabric\n | typeof JSPropsUpdaterPaper;\n\nlet JSPropsUpdater: JSPropsUpdaterOptions;\nif (SHOULD_BE_USE_WEB) {\n JSPropsUpdater = JSPropsUpdaterWeb;\n} else if (global._IS_FABRIC) {\n JSPropsUpdater = JSPropsUpdaterFabric;\n} else {\n JSPropsUpdater = JSPropsUpdaterPaper;\n}\n\nexport default JSPropsUpdater;\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AA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a,EAAE;MACvC;IACF;IACA,MAAMhB,OAAO,GAAGX,cAAc,CAACU,iBAAiB,CAAC;IACjDgB,oBAAoB,CAACd,sBAAsB,CAACW,MAAM,CAACZ,OAAO,CAAC;EAC7D;AACF;AAACpC,eAAA,CA9CKmD,oBAAoB,4BACgB,IAAID,GAAG,EAAE;AAAAlD,eAAA,CAD7CmD,oBAAoB,mBAEO,KAAK;AA8CtC,MAAMK,iBAAiB,CAA4B;EAC1CtB,0BAA0BA,CAC/BuB,kBAG4B,EAC5B;IACA;EAAA;EAGKV,6BAA6BA,CAClCU,kBAG4B,EAC5B;IACA;EAAA;AAEJ;AAOA,IAAIC,cAAqC;AACzC,IAAI7B,iBAAiB,EAAE;EACrB6B,cAAc,GAAGF,iBAAiB;AACpC,CAAC,MAAM,IAAIF,MAAM,CAACK,UAAU,EAAE;EAC5BD,cAAc,GAAGP,oBAAoB;AACvC,CAAC,MAAM;EACLO,cAAc,GAAG5B,mBAAmB;AACtC;AAEA,eAAe4B,cAAc"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/NativeEventsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/NativeEventsManager.js deleted file mode 100644 index 2153f435..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/NativeEventsManager.js +++ /dev/null @@ -1,104 +0,0 @@ -'use strict'; - -import { findNodeHandle } from '../platformFunctions/findNodeHandle'; -import { WorkletEventHandler } from '../WorkletEventHandler'; -import { has } from './utils'; -export class NativeEventsManager { - #managedComponent; - #componentOptions; - #eventViewTag = -1; - constructor(component, options) { - this.#managedComponent = component; - this.#componentOptions = options; - this.#eventViewTag = this.getEventViewTag(); - } - attachEvents() { - executeForEachEventHandler(this.#managedComponent.props, (key, handler) => { - handler.registerForEvents(this.#eventViewTag, key); - }); - } - detachEvents() { - executeForEachEventHandler(this.#managedComponent.props, (_key, handler) => { - handler.unregisterFromEvents(this.#eventViewTag); - }); - } - updateEvents(prevProps) { - const computedEventTag = this.getEventViewTag(true); - // If the event view tag changes, we need to completely re-mount all events - if (this.#eventViewTag !== computedEventTag) { - // Remove all bindings from previous props that ran on the old viewTag - executeForEachEventHandler(prevProps, (_key, handler) => { - handler.unregisterFromEvents(this.#eventViewTag); - }); - // We don't need to unregister from current (new) props, because their events weren't registered yet - // Replace the view tag - this.#eventViewTag = computedEventTag; - // Attach the events with a new viewTag - this.attachEvents(); - return; - } - executeForEachEventHandler(prevProps, (key, prevHandler) => { - const newProp = this.#managedComponent.props[key]; - if (!newProp) { - // Prop got deleted - prevHandler.unregisterFromEvents(this.#eventViewTag); - } else if (isWorkletEventHandler(newProp) && newProp.workletEventHandler !== prevHandler) { - // Prop got changed - prevHandler.unregisterFromEvents(this.#eventViewTag); - newProp.workletEventHandler.registerForEvents(this.#eventViewTag); - } - }); - executeForEachEventHandler(this.#managedComponent.props, (key, handler) => { - if (!prevProps[key]) { - // Prop got added - handler.registerForEvents(this.#eventViewTag); - } - }); - } - getEventViewTag(componentUpdate = false) { - // Get the tag for registering events - since the event emitting view can be nested inside the main component - const componentAnimatedRef = this.#managedComponent._componentRef; - if (componentAnimatedRef?.getScrollableNode) { - /* - In most cases, getScrollableNode() returns a view tag, and findNodeHandle is not required. - However, to cover more exotic list cases, we will continue to use findNodeHandle - for consistency. For numerical values, findNodeHandle should return the value immediately, - as documented here: https://github.com/facebook/react/blob/91061073d57783c061889ac6720ef1ab7f0c2149/packages/react-native-renderer/src/ReactNativePublicCompat.js#L113 - */ - const scrollableNode = componentAnimatedRef.getScrollableNode(); - if (typeof scrollableNode === 'number') { - return scrollableNode; - } - return findNodeHandle(scrollableNode) ?? -1; - } - if (this.#componentOptions?.setNativeProps) { - // This case ensures backward compatibility with components that - // have their own setNativeProps method passed as an option. - return findNodeHandle(this.#managedComponent) ?? -1; - } - if (!componentUpdate) { - // On the first render of a component, we may already receive a resolved view tag. - return this.#managedComponent.getComponentViewTag(); - } - if (componentAnimatedRef?.__nativeTag) { - return componentAnimatedRef.__nativeTag ?? -1; - } - /* - When a component is updated, a child could potentially change and have a different - view tag. This can occur with a GestureDetector component. - */ - return findNodeHandle(componentAnimatedRef) ?? -1; - } -} -function isWorkletEventHandler(prop) { - return has('workletEventHandler', prop) && prop.workletEventHandler instanceof WorkletEventHandler; -} -function executeForEachEventHandler(props, callback) { - for (const key in props) { - const prop = props[key]; - if (isWorkletEventHandler(prop)) { - callback(key, prop.workletEventHandler); - } - } -} -//# sourceMappingURL=NativeEventsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/NativeEventsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/NativeEventsManager.js.map deleted file mode 100644 index a9e95d22..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/NativeEventsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["findNodeHandle","WorkletEventHandler","has","NativeEventsManager","managedComponent","componentOptions","eventViewTag","constructor","component","options","getEventViewTag","attachEvents","executeForEachEventHandler","props","key","handler","registerForEvents","detachEvents","_key","unregisterFromEvents","updateEvents","prevProps","computedEventTag","prevHandler","newProp","isWorkletEventHandler","workletEventHandler","componentUpdate","componentAnimatedRef","_componentRef","getScrollableNode","scrollableNode","setNativeProps","getComponentViewTag","__nativeTag","prop","callback"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/NativeEventsManager.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,cAAc,QAAQ,qCAAqC;AACpE,SAASC,mBAAmB,QAAQ,wBAAwB;AAQ5D,SAASC,GAAG,QAAQ,SAAS;AAE7B,OAAO,MAAMC,mBAAmB,CAAiC;EACtD,CAACC,gBAAgB;EACjB,CAACC,gBAAgB;EAC1B,CAACC,YAAY,GAAG,CAAC,CAAC;EAElBC,WAAWA,CAACC,SAAmC,EAAEC,OAA0B,EAAE;IAC3E,IAAI,CAAC,C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;MACrC,OAAON,oBAAoB,CAACM,WAAW,IAAI,CAAC,CAAC;IAC/C;IACA;AACJ;AACA;AACA;IACI,OAAOlC,cAAc,CAAC4B,oBAAoB,CAAC,IAAI,CAAC,CAAC;EACnD;AACF;AAEA,SAASH,qBAAqBA,CAC5BU,IAAa,EACsB;EACnC,OACEjC,GAAG,CAAC,qBAAqB,EAAEiC,IAAI,CAAC,IAChCA,IAAI,CAACT,mBAAmB,YAAYzB,mBAAmB;AAE3D;AAEA,SAASW,0BAA0BA,CACjCC,KAAoD,EACpDuB,QAGS,EACT;EACA,KAAK,MAAMtB,GAAG,IAAID,KAAK,EAAE;IACvB,MAAMsB,IAAI,GAAGtB,KAAK,CAACC,GAAG,CAAC;IACvB,IAAIW,qBAAqB,CAACU,IAAI,CAAC,EAAE;MAC/BC,QAAQ,CAACtB,GAAG,EAAEqB,IAAI,CAACT,mBAAmB,CAAC;IACzC;EACF;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js index df366419..da8a3c48 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js @@ -1,16 +1,23 @@ 'use strict'; -import { initialUpdaterRun } from '../animation'; -import { isSharedValue } from '../isSharedValue'; -import { WorkletEventHandler } from '../WorkletEventHandler'; -import { getInlineStyle, hasInlineStyles } from './InlinePropManager'; +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } +import { isSharedValue } from '../reanimated2'; +import { isChromeDebugger } from '../reanimated2/PlatformChecker'; +import WorkletEventHandler from '../reanimated2/WorkletEventHandler'; +import { initialUpdaterRun } from '../reanimated2/animation'; +import { hasInlineStyles, getInlineStyle } from './InlinePropManager'; import { flattenArray, has } from './utils'; +import { StyleSheet } from 'react-native'; function dummyListener() { // empty listener we use to assign to listener properties for which animated // event is used. } export class PropsFilter { - _initialPropsMap = new Map(); + constructor() { + _defineProperty(this, "_initialStyle", {}); + } filterNonAnimatedProps(component) { const inputProps = component.props; const props = {}; @@ -20,38 +27,37 @@ export class PropsFilter { const styleProp = inputProps.style; const styles = flattenArray(styleProp ?? []); const processedStyle = styles.map(style => { - if (style?.viewDescriptors) { - const handle = style; + if (style && style.viewDescriptors) { + // this is how we recognize styles returned by useAnimatedStyle + style.viewsRef.add(component); if (component._isFirstRender) { - this._initialPropsMap.set(handle, { - ...handle.initial.value, - ...initialUpdaterRun(handle.initial.updater) - }); + this._initialStyle = { + ...style.initial.value, + ...this._initialStyle, + ...initialUpdaterRun(style.initial.updater) + }; } - return this._initialPropsMap.get(handle) ?? {}; + return this._initialStyle; } else if (hasInlineStyles(style)) { return getInlineStyle(style, component._isFirstRender); } else { return style; } }); - // keep styles as they were passed by the user - // it will help other libs to interpret styles correctly - props[key] = processedStyle; + props[key] = StyleSheet.flatten(processedStyle); } else if (key === 'animatedProps') { - const animatedPropsProp = inputProps.animatedProps; - const animatedPropsArray = flattenArray(animatedPropsProp ?? []); - animatedPropsArray.forEach(animatedProps => { - if (animatedProps?.viewDescriptors && animatedProps.initial) { - Object.keys(animatedProps.initial.value).forEach(initialValueKey => { - props[initialValueKey] = animatedProps.initial?.value[initialValueKey]; - }); - } - }); - } else if (has('workletEventHandler', value) && value.workletEventHandler instanceof WorkletEventHandler) { - if (value.workletEventHandler.eventNames.length > 0) { - value.workletEventHandler.eventNames.forEach(eventName => { - props[eventName] = has('listeners', value.workletEventHandler) ? value.workletEventHandler.listeners[eventName] : dummyListener; + const animatedProp = inputProps.animatedProps; + if (animatedProp.initial !== undefined) { + Object.keys(animatedProp.initial.value).forEach(key => { + var _animatedProp$initial, _animatedProp$viewsRe; + props[key] = (_animatedProp$initial = animatedProp.initial) === null || _animatedProp$initial === void 0 ? void 0 : _animatedProp$initial.value[key]; + (_animatedProp$viewsRe = animatedProp.viewsRef) === null || _animatedProp$viewsRe === void 0 ? void 0 : _animatedProp$viewsRe.add(component); + }); + } + } else if (has('current', value) && value.current instanceof WorkletEventHandler) { + if (value.current.eventNames.length > 0) { + value.current.eventNames.forEach(eventName => { + props[eventName] = has('listeners', value.current) ? value.current.listeners[eventName] : dummyListener; }); } else { props[key] = dummyListener; @@ -60,7 +66,7 @@ export class PropsFilter { if (component._isFirstRender) { props[key] = value.value; } - } else { + } else if (key !== 'onGestureHandlerStateChange' || !isChromeDebugger()) { props[key] = value; } } diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js.map index 0ed2856f..1de50866 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/PropsFilter.js.map @@ -1 +1 @@ -{"version":3,"names":["initialUpdaterRun","isSharedValue","WorkletEventHandler","getInlineStyle","hasInlineStyles","flattenArray","has","dummyListener","PropsFilter","_initialPropsMap","Map","filterNonAnimatedProps","component","inputProps","props","key","value","styleProp","style","styles","processedStyle","map","viewDescriptors","handle","_isFirstRender","set","initial","updater","get","animatedPropsProp","animatedProps","animatedPropsArray","forEach","Object","keys","initialValueKey","workletEventHandler","eventNames","length","eventName","listeners"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/PropsFilter.tsx"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aAAa,CAACe,KAAK,CAAC,EAAE;QAC/B,IAAIJ,SAAS,CAACY,cAAc,EAAE;UAC5BV,KAAK,CAACC,GAAG,CAAC,GAAGC,KAAK,CAACA,KAAK;QAC1B;MACF,CAAC,MAAM;QACLF,KAAK,CAACC,GAAG,CAAC,GAAGC,KAAK;MACpB;IACF;IACA,OAAOF,KAAK;EACd;AACF","ignoreList":[]} +{"version":3,"names":["_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","isSharedValue","isChromeDebugger","WorkletEventHandler","initialUpdaterRun","hasInlineStyles","getInlineStyle","flattenArray","has","StyleSheet","dummyListener","PropsFilter","constructor","filterNonAnimatedProps","component","inputProps","props","styleProp","style","styles","processedStyle","map","viewDescriptors","viewsRef","add","_isFirstRender","_initialStyle","initial","updater","flatten","animatedProp","animatedProps","keys","forEach","_animatedProp$initial","_animatedProp$viewsRe","current","eventNames","length","eventName","listeners"],"sources":["PropsFilter.tsx"],"sourcesContent":["'use strict';\nimport type { StyleProps, SharedValue } from '../reanimated2';\nimport { isSharedValue } from '../reanimated2';\nimport { isChromeDebugger } from '../reanimated2/PlatformChecker';\nimport WorkletEventHandler from '../reanimated2/WorkletEventHandler';\nimport { initialUpdaterRun } from '../reanimated2/animation';\nimport { hasInlineStyles, getInlineStyle } from './InlinePropManager';\nimport type {\n AnimatedComponentProps,\n AnimatedProps,\n InitialComponentProps,\n IAnimatedComponentInternal,\n IPropsFilter,\n} from './commonTypes';\nimport { flattenArray, has } from './utils';\nimport { StyleSheet } from 'react-native';\n\nfunction dummyListener() {\n // empty listener we use to assign to listener properties for which animated\n // event is used.\n}\n\nexport class PropsFilter implements IPropsFilter {\n private _initialStyle = {};\n\n public filterNonAnimatedProps(\n component: React.Component & IAnimatedComponentInternal\n ): Record {\n const inputProps =\n component.props as AnimatedComponentProps;\n const props: Record = {};\n for (const key in inputProps) {\n const value = inputProps[key];\n if (key === 'style') {\n const styleProp = inputProps.style;\n const styles = flattenArray(styleProp ?? []);\n const processedStyle: StyleProps = styles.map((style) => {\n if (style && style.viewDescriptors) {\n // this is how we recognize styles returned by useAnimatedStyle\n style.viewsRef.add(component);\n if (component._isFirstRender) {\n this._initialStyle = {\n ...style.initial.value,\n ...this._initialStyle,\n ...initialUpdaterRun(style.initial.updater),\n };\n }\n return this._initialStyle;\n } else if (hasInlineStyles(style)) {\n return getInlineStyle(style, component._isFirstRender);\n } else {\n return style;\n }\n });\n props[key] = StyleSheet.flatten(processedStyle);\n } else if (key === 'animatedProps') {\n const animatedProp = inputProps.animatedProps as Partial<\n AnimatedComponentProps\n >;\n if (animatedProp.initial !== undefined) {\n Object.keys(animatedProp.initial.value).forEach((key) => {\n props[key] = animatedProp.initial?.value[key];\n animatedProp.viewsRef?.add(component);\n });\n }\n } else if (\n has('current', value) &&\n value.current instanceof WorkletEventHandler\n ) {\n if (value.current.eventNames.length > 0) {\n value.current.eventNames.forEach((eventName) => {\n props[eventName] = has('listeners', value.current)\n ? (value.current.listeners as Record)[eventName]\n : dummyListener;\n });\n } else {\n props[key] = dummyListener;\n }\n } else if (isSharedValue(value)) {\n if (component._isFirstRender) {\n props[key] = (value as SharedValue).value;\n }\n } else if (key !== 'onGestureHandlerStateChange' || !isChromeDebugger()) {\n props[key] = value;\n }\n }\n return props;\n }\n}\n"],"mappings":"AAAA,YAAY;;AAAC,SAAAA,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAA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,SAAS,EAAE3B,KAAK,CAAC,IACrBA,KAAK,CAACuD,OAAO,YAAYjC,mBAAmB,EAC5C;QACA,IAAItB,KAAK,CAACuD,OAAO,CAACC,UAAU,CAACC,MAAM,GAAG,CAAC,EAAE;UACvCzD,KAAK,CAACuD,OAAO,CAACC,UAAU,CAACJ,OAAO,CAAEM,SAAS,IAAK;YAC9CvB,KAAK,CAACuB,SAAS,CAAC,GAAG/B,GAAG,CAAC,WAAW,EAAE3B,KAAK,CAACuD,OAAO,CAAC,GAC7CvD,KAAK,CAACuD,OAAO,CAACI,SAAS,CAA6BD,SAAS,CAAC,GAC/D7B,aAAa;UACnB,CAAC,CAAC;QACJ,CAAC,MAAM;UACLM,KAAK,CAACpC,GAAG,CAAC,GAAG8B,aAAa;QAC5B;MACF,CAAC,MAAM,IAAIT,aAAa,CAACpB,KAAK,CAAC,EAAE;QAC/B,IAAIiC,SAAS,CAACW,cAAc,EAAE;UAC5BT,KAAK,CAACpC,GAAG,CAAC,GAAIC,KAAK,CAA0BA,KAAK;QACpD;MACF,CAAC,MAAM,IAAID,GAAG,KAAK,6BAA6B,IAAI,CAACsB,gBAAgB,EAAE,EAAE;QACvEc,KAAK,CAACpC,GAAG,CAAC,GAAGC,KAAK;MACpB;IACF;IACA,OAAOmC,KAAK;EACd;AACF"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/commonTypes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/commonTypes.js.map index e9870b32..5c4b7af0 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/commonTypes.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/commonTypes.js.map @@ -1 +1 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["createAnimatedComponent/commonTypes.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} +{"version":3,"names":[],"sources":["commonTypes.ts"],"sourcesContent":["'use strict';\nimport type { Ref, Component } from 'react';\nimport type {\n StyleProps,\n BaseAnimationBuilder,\n ILayoutAnimationBuilder,\n EntryExitAnimationFunction,\n SharedTransition,\n SharedValue,\n} from '../reanimated2';\nimport type {\n ViewDescriptorsSet,\n ViewRefSet,\n} from '../reanimated2/ViewDescriptorsSet';\nimport type { SkipEnteringContext } from '../reanimated2/component/LayoutAnimationConfig';\nimport type { ShadowNodeWrapper } from '../reanimated2/commonTypes';\nimport type { ViewConfig } from '../ConfigHelper';\n\nexport interface AnimatedProps extends Record {\n viewDescriptors?: ViewDescriptorsSet;\n viewsRef?: ViewRefSet;\n initial?: SharedValue;\n}\n\nexport interface ViewInfo {\n viewTag: number | HTMLElement | null;\n viewName: string | null;\n shadowNodeWrapper: ShadowNodeWrapper | null;\n viewConfig: ViewConfig;\n}\n\nexport interface IInlinePropManager {\n attachInlineProps(\n animatedComponent: React.Component,\n viewInfo: ViewInfo\n ): void;\n detachInlineProps(): void;\n}\n\nexport interface IPropsFilter {\n filterNonAnimatedProps: (\n component: React.Component & IAnimatedComponentInternal\n ) => Record;\n}\n\nexport interface IJSPropsUpdater {\n addOnJSPropsChangeListener(\n animatedComponent: React.Component &\n IAnimatedComponentInternal\n ): void;\n removeOnJSPropsChangeListener(\n animatedComponent: React.Component &\n IAnimatedComponentInternal\n ): void;\n}\n\nexport type LayoutAnimationStaticContext = {\n presetName: string;\n};\n\nexport type AnimatedComponentProps

> = P & {\n forwardedRef?: Ref;\n style?: NestedArray;\n animatedProps?: Partial>;\n animatedStyle?: StyleProps;\n layout?: (\n | BaseAnimationBuilder\n | ILayoutAnimationBuilder\n | typeof BaseAnimationBuilder\n ) &\n LayoutAnimationStaticContext;\n entering?: (\n | BaseAnimationBuilder\n | typeof BaseAnimationBuilder\n | EntryExitAnimationFunction\n | Keyframe\n ) &\n LayoutAnimationStaticContext;\n exiting?: (\n | BaseAnimationBuilder\n | typeof BaseAnimationBuilder\n | EntryExitAnimationFunction\n | Keyframe\n ) &\n LayoutAnimationStaticContext;\n sharedTransitionTag?: string;\n sharedTransitionStyle?: SharedTransition;\n};\n\nexport interface AnimatedComponentRef extends Component {\n setNativeProps?: (props: Record) => void;\n getScrollableNode?: () => AnimatedComponentRef;\n getAnimatableRef?: () => AnimatedComponentRef;\n}\n\nexport interface IAnimatedComponentInternal {\n _styles: StyleProps[] | null;\n _animatedProps?: Partial>;\n _viewTag: number;\n _isFirstRender: boolean;\n animatedStyle: { value: StyleProps };\n _component: AnimatedComponentRef | HTMLElement | null;\n _sharedElementTransition: SharedTransition | null;\n _jsPropsUpdater: IJSPropsUpdater;\n _InlinePropManager: IInlinePropManager;\n _PropsFilter: IPropsFilter;\n _viewInfo?: ViewInfo;\n context: React.ContextType;\n}\n\nexport type NestedArray = T | NestedArray[];\n\nexport interface InitialComponentProps extends Record {\n ref?: Ref;\n collapsable?: boolean;\n}\n"],"mappings":"AAAA,YAAY;;AAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js index 9ddd602f..c972d50a 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js @@ -1,9 +1,41 @@ 'use strict'; +function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } +function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } +function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } +function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } import React from 'react'; -import AnimatedComponentImpl from './AnimatedComponent'; - -// eslint-disable-next-line @typescript-eslint/no-explicit-any +import { findNodeHandle, Platform } from 'react-native'; +import WorkletEventHandler from '../reanimated2/WorkletEventHandler'; +import '../reanimated2/layoutReanimation/animationsManager'; +import invariant from 'invariant'; +import { adaptViewConfig } from '../ConfigHelper'; +import { RNRenderer } from '../reanimated2/platform-specific/RNRenderer'; +import { configureLayoutAnimations, enableLayoutAnimations } from '../reanimated2/core'; +import { SharedTransition, LayoutAnimationType } from '../reanimated2/layoutReanimation'; +import { getShadowNodeWrapperFromRef } from '../reanimated2/fabricUtils'; +import { removeFromPropsRegistry } from '../reanimated2/PropsRegistry'; +import { getReduceMotionFromConfig } from '../reanimated2/animation/util'; +import { maybeBuild } from '../animationBuilder'; +import { SkipEnteringContext } from '../reanimated2/component/LayoutAnimationConfig'; +import JSPropsUpdater from './JSPropsUpdater'; +import { has, flattenArray } from './utils'; +import setAndForwardRef from './setAndForwardRef'; +import { isFabric, isJest, isWeb, shouldBeUseWeb } from '../reanimated2/PlatformChecker'; +import { InlinePropManager } from './InlinePropManager'; +import { PropsFilter } from './PropsFilter'; +import { startWebLayoutAnimation, tryActivateLayoutTransition, configureWebLayoutAnimations, getReducedMotionFromConfig } from '../reanimated2/layoutReanimation/web'; +const IS_WEB = isWeb(); +const IS_FABRIC = isFabric(); +function onlyAnimatedStyles(styles) { + return styles.filter(style => style === null || style === void 0 ? void 0 : style.viewDescriptors); +} +function isSameAnimatedStyle(style1, style2) { + // We cannot use equality check to compare useAnimatedStyle outputs directly. + // Instead, we can compare its viewsRefs. + return (style1 === null || style1 === void 0 ? void 0 : style1.viewsRef) === (style2 === null || style2 === void 0 ? void 0 : style2.viewsRef); +} +const isSameAnimatedProps = isSameAnimatedStyle; /** * Lets you create an Animated version of any React Native component. @@ -13,39 +45,366 @@ import AnimatedComponentImpl from './AnimatedComponent'; * @see https://docs.swmansion.com/react-native-reanimated/docs/core/createAnimatedComponent */ -// Don't change the order of overloads, since such a change breaks current behavior - /** - * @deprecated Please use `Animated.FlatList` component instead of calling - * `Animated.createAnimatedComponent(FlatList)` manually. - */ -// @ts-ignore This is required to create this overload, since type of createAnimatedComponent is incorrect and doesn't include typeof FlatList -import { jsx as _jsx } from "react/jsx-runtime"; + * @deprecated Please use `Animated.FlatList` component instead of calling `Animated.createAnimatedComponent(FlatList)` manually. + */ // @ts-ignore This is required to create this overload, since type of createAnimatedComponent is incorrect and doesn't include typeof FlatList export function createAnimatedComponent(Component, options) { - class AnimatedComponent extends AnimatedComponentImpl { - static displayName = `AnimatedComponent(${Component.displayName || Component.name || 'Component'})`; + invariant(typeof Component !== 'function' || Component.prototype && Component.prototype.isReactComponent, `Looks like you're passing a function component \`${Component.name}\` to \`createAnimatedComponent\` function which supports only class components. Please wrap your function component with \`React.forwardRef()\` or use a class component instead.`); + class AnimatedComponent extends React.Component { constructor(props) { - // User can override component-defined jsProps via options - const jsProps = options?.jsProps ?? Component.jsProps; - const modifiedOptions = jsProps?.length ? { - ...options, - jsProps - } : options; - super(Component, props, AnimatedComponent.displayName, modifiedOptions); + super(props); + _defineProperty(this, "_styles", null); + _defineProperty(this, "_animatedProps", void 0); + _defineProperty(this, "_viewTag", -1); + _defineProperty(this, "_isFirstRender", true); + _defineProperty(this, "animatedStyle", { + value: {} + }); + _defineProperty(this, "_component", null); + _defineProperty(this, "_sharedElementTransition", null); + _defineProperty(this, "_jsPropsUpdater", new JSPropsUpdater()); + _defineProperty(this, "_InlinePropManager", new InlinePropManager()); + _defineProperty(this, "_PropsFilter", new PropsFilter()); + _defineProperty(this, "_viewInfo", void 0); + _defineProperty(this, "context", void 0); + _defineProperty(this, "_setComponentRef", setAndForwardRef({ + getForwardedRef: () => this.props.forwardedRef, + setLocalRef: ref => { + // TODO update config + + const tag = IS_WEB ? ref : findNodeHandle(ref); + const { + layout, + entering, + exiting, + sharedTransitionTag + } = this.props; + if ((layout || entering || exiting || sharedTransitionTag) && tag != null) { + var _this$context; + if (!shouldBeUseWeb()) { + enableLayoutAnimations(true, false); + } + if (layout) { + configureLayoutAnimations(tag, LayoutAnimationType.LAYOUT, maybeBuild(layout, undefined /* We don't have to warn user if style has common properties with animation for LAYOUT */, AnimatedComponent.displayName)); + } + const skipEntering = (_this$context = this.context) === null || _this$context === void 0 ? void 0 : _this$context.current; + if (entering && !skipEntering) { + var _this$props; + configureLayoutAnimations(tag, LayoutAnimationType.ENTERING, maybeBuild(entering, (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.style, AnimatedComponent.displayName)); + } + if (exiting) { + const reduceMotionInExiting = 'getReduceMotion' in exiting && typeof exiting.getReduceMotion === 'function' ? getReduceMotionFromConfig(exiting.getReduceMotion()) : getReduceMotionFromConfig(); + if (!reduceMotionInExiting) { + var _this$props2; + configureLayoutAnimations(tag, LayoutAnimationType.EXITING, maybeBuild(exiting, (_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : _this$props2.style, AnimatedComponent.displayName)); + } + } + if (sharedTransitionTag && !IS_WEB) { + const sharedElementTransition = this.props.sharedTransitionStyle ?? new SharedTransition(); + const reduceMotionInTransition = getReduceMotionFromConfig(sharedElementTransition.getReduceMotion()); + if (!reduceMotionInTransition) { + sharedElementTransition.registerTransition(tag, sharedTransitionTag); + this._sharedElementTransition = sharedElementTransition; + } + } + } + if (ref !== this._component) { + this._component = ref; + } + } + })); + if (isJest()) { + this.animatedStyle = { + value: {} + }; + } + } + componentDidMount() { + this._attachNativeEvents(); + this._jsPropsUpdater.addOnJSPropsChangeListener(this); + this._attachAnimatedStyles(); + this._InlinePropManager.attachInlineProps(this, this._getViewInfo()); + if (IS_WEB) { + configureWebLayoutAnimations(); + if (!this.props.entering) { + this._isFirstRender = false; + return; + } + if (getReducedMotionFromConfig(this.props.entering)) { + this._isFirstRender = false; + return; + } + startWebLayoutAnimation(this.props, this._component, LayoutAnimationType.ENTERING); + } + this._isFirstRender = false; + } + componentWillUnmount() { + var _this$_sharedElementT; + this._detachNativeEvents(); + this._jsPropsUpdater.removeOnJSPropsChangeListener(this); + this._detachStyles(); + this._InlinePropManager.detachInlineProps(); + (_this$_sharedElementT = this._sharedElementTransition) === null || _this$_sharedElementT === void 0 ? void 0 : _this$_sharedElementT.unregisterTransition(this._viewTag); + if (IS_WEB && this.props.exiting && !getReducedMotionFromConfig(this.props.exiting)) { + startWebLayoutAnimation(this.props, this._component, LayoutAnimationType.EXITING); + } + } + _getEventViewRef() { + var _this$_component, _getScrollableNode, _ref; + // Make sure to get the scrollable node for components that implement + // `ScrollResponder.Mixin`. + return (_this$_component = this._component) !== null && _this$_component !== void 0 && _this$_component.getScrollableNode ? (_getScrollableNode = (_ref = this._component).getScrollableNode) === null || _getScrollableNode === void 0 ? void 0 : _getScrollableNode.call(_ref) : this._component; + } + _attachNativeEvents() { + const node = this._getEventViewRef(); + let viewTag = null; // We set it only if needed + + for (const key in this.props) { + const prop = this.props[key]; + if (has('current', prop) && prop.current instanceof WorkletEventHandler) { + if (viewTag === null) { + viewTag = findNodeHandle(options !== null && options !== void 0 && options.setNativeProps ? this : node); + } + prop.current.registerForEvents(viewTag, key); + } + } + } + _detachNativeEvents() { + for (const key in this.props) { + const prop = this.props[key]; + if (has('current', prop) && prop.current instanceof WorkletEventHandler) { + prop.current.unregisterFromEvents(); + } + } + } + _detachStyles() { + if (IS_WEB && this._styles !== null) { + for (const style of this._styles) { + if (style !== null && style !== void 0 && style.viewsRef) { + style.viewsRef.remove(this); + } + } + } else if (this._viewTag !== -1 && this._styles !== null) { + var _this$props$animatedP; + for (const style of this._styles) { + style.viewDescriptors.remove(this._viewTag); + } + if ((_this$props$animatedP = this.props.animatedProps) !== null && _this$props$animatedP !== void 0 && _this$props$animatedP.viewDescriptors) { + this.props.animatedProps.viewDescriptors.remove(this._viewTag); + } + if (IS_FABRIC) { + removeFromPropsRegistry(this._viewTag); + } + } + } + _reattachNativeEvents(prevProps) { + for (const key in prevProps) { + const prop = this.props[key]; + if (has('current', prop) && prop.current instanceof WorkletEventHandler && prop.current.reattachNeeded) { + prop.current.unregisterFromEvents(); + } + } + let viewTag = null; + for (const key in this.props) { + const prop = this.props[key]; + if (has('current', prop) && prop.current instanceof WorkletEventHandler && prop.current.reattachNeeded) { + if (viewTag === null) { + const node = this._getEventViewRef(); + viewTag = findNodeHandle(options !== null && options !== void 0 && options.setNativeProps ? this : node); + } + prop.current.registerForEvents(viewTag, key); + prop.current.reattachNeeded = false; + } + } + } + _updateFromNative(props) { + if (options !== null && options !== void 0 && options.setNativeProps) { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + options.setNativeProps(this._component, props); + } else { + var _this$_component2, _this$_component2$set; + // eslint-disable-next-line no-unused-expressions + (_this$_component2 = this._component) === null || _this$_component2 === void 0 ? void 0 : (_this$_component2$set = _this$_component2.setNativeProps) === null || _this$_component2$set === void 0 ? void 0 : _this$_component2$set.call(_this$_component2, props); + } + } + _getViewInfo() { + var _this$_component3, _getAnimatableRef, _ref2; + if (this._viewInfo !== undefined) { + return this._viewInfo; + } + let viewTag; + let viewName; + let shadowNodeWrapper = null; + let viewConfig; + // Component can specify ref which should be animated when animated version of the component is created. + // Otherwise, we animate the component itself. + const component = (_this$_component3 = this._component) !== null && _this$_component3 !== void 0 && _this$_component3.getAnimatableRef ? (_getAnimatableRef = (_ref2 = this._component).getAnimatableRef) === null || _getAnimatableRef === void 0 ? void 0 : _getAnimatableRef.call(_ref2) : this; + if (IS_WEB) { + // At this point I assume that `_setComponentRef` was already called and `_component` is set. + // `this._component` on web represents HTMLElement of our component, that's why we use casting + viewTag = this._component; + viewName = null; + shadowNodeWrapper = null; + viewConfig = null; + } else { + var _hostInstance$viewCon; + // hostInstance can be null for a component that doesn't render anything (render function returns null). Example: svg Stop: https://github.com/react-native-svg/react-native-svg/blob/develop/src/elements/Stop.tsx + const hostInstance = RNRenderer.findHostInstance_DEPRECATED(component); + if (!hostInstance) { + throw new Error('[Reanimated] Cannot find host instance for this component. Maybe it renders nothing?'); + } + // we can access view tag in the same way it's accessed here https://github.com/facebook/react/blob/e3f4eb7272d4ca0ee49f27577156b57eeb07cf73/packages/react-native-renderer/src/ReactFabric.js#L146 + viewTag = hostInstance === null || hostInstance === void 0 ? void 0 : hostInstance._nativeTag; + /** + * RN uses viewConfig for components for storing different properties of the component(example: https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js#L24). + * The name we're looking for is in the field named uiViewClassName. + */ + viewName = hostInstance === null || hostInstance === void 0 ? void 0 : (_hostInstance$viewCon = hostInstance.viewConfig) === null || _hostInstance$viewCon === void 0 ? void 0 : _hostInstance$viewCon.uiViewClassName; + viewConfig = hostInstance === null || hostInstance === void 0 ? void 0 : hostInstance.viewConfig; + if (IS_FABRIC) { + shadowNodeWrapper = getShadowNodeWrapperFromRef(this); + } + } + this._viewInfo = { + viewTag, + viewName, + shadowNodeWrapper, + viewConfig + }; + return this._viewInfo; + } + _attachAnimatedStyles() { + var _this$props$animatedP2, _this$props$animatedP3; + const styles = this.props.style ? onlyAnimatedStyles(flattenArray(this.props.style)) : []; + const prevStyles = this._styles; + this._styles = styles; + const prevAnimatedProps = this._animatedProps; + this._animatedProps = this.props.animatedProps; + const { + viewTag, + viewName, + shadowNodeWrapper, + viewConfig + } = this._getViewInfo(); + + // update UI props whitelist for this view + const hasReanimated2Props = ((_this$props$animatedP2 = this.props.animatedProps) === null || _this$props$animatedP2 === void 0 ? void 0 : _this$props$animatedP2.viewDescriptors) || styles.length; + if (hasReanimated2Props && viewConfig) { + adaptViewConfig(viewConfig); + } + this._viewTag = viewTag; + + // remove old styles + if (prevStyles) { + // in most of the cases, views have only a single animated style and it remains unchanged + const hasOneSameStyle = styles.length === 1 && prevStyles.length === 1 && isSameAnimatedStyle(styles[0], prevStyles[0]); + if (!hasOneSameStyle) { + // otherwise, remove each style that is not present in new styles + for (const prevStyle of prevStyles) { + const isPresent = styles.some(style => isSameAnimatedStyle(style, prevStyle)); + if (!isPresent) { + prevStyle.viewDescriptors.remove(viewTag); + } + } + } + } + styles.forEach(style => { + style.viewDescriptors.add({ + tag: viewTag, + name: viewName, + shadowNodeWrapper + }); + if (isJest()) { + /** + * We need to connect Jest's TestObject instance whose contains just props object + * with the updateProps() function where we update the properties of the component. + * We can't update props object directly because TestObject contains a copy of props - look at render function: + * const props = this._filterNonAnimatedProps(this.props); + */ + this.animatedStyle.value = { + ...this.animatedStyle.value, + ...style.initial.value + }; + style.animatedStyle.current = this.animatedStyle; + } + }); + + // detach old animatedProps + if (prevAnimatedProps && !isSameAnimatedProps(prevAnimatedProps, this.props.animatedProps)) { + prevAnimatedProps.viewDescriptors.remove(viewTag); + } + + // attach animatedProps property + if ((_this$props$animatedP3 = this.props.animatedProps) !== null && _this$props$animatedP3 !== void 0 && _this$props$animatedP3.viewDescriptors) { + this.props.animatedProps.viewDescriptors.add({ + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + tag: viewTag, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + name: viewName, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + shadowNodeWrapper: shadowNodeWrapper + }); + } + } + componentDidUpdate(prevProps, _prevState, + // This type comes straight from React + // eslint-disable-next-line @typescript-eslint/no-explicit-any + snapshot) { + this._reattachNativeEvents(prevProps); + this._attachAnimatedStyles(); + this._InlinePropManager.attachInlineProps(this, this._getViewInfo()); + + // Snapshot won't be undefined because it comes from getSnapshotBeforeUpdate method + if (IS_WEB && snapshot !== null && this.props.layout && !getReducedMotionFromConfig(this.props.layout)) { + tryActivateLayoutTransition(this.props, this._component, snapshot); + } + } + // This is a component lifecycle method from React, therefore we are not calling it directly. + // It is called before the component gets rerendered. This way we can access components' position before it changed + // and later on, in componentDidUpdate, calculate translation for layout transition. + getSnapshotBeforeUpdate() { + if (this._component.getBoundingClientRect !== undefined) { + return this._component.getBoundingClientRect(); + } + return null; + } + render() { + const props = this._PropsFilter.filterNonAnimatedProps(this); + if (isJest()) { + props.animatedStyle = this.animatedStyle; + } + + // Layout animations on web are set inside `componentDidMount` method, which is called after first render. + // Because of that we can encounter a situation in which component is visible for a short amount of time, and later on animation triggers. + // I've tested that on various browsers and devices and it did not happen to me. To be sure that it won't happen to someone else, + // I've decided to hide component at first render. Its visibility is reset in `componentDidMount`. + if (this._isFirstRender && IS_WEB && props.entering && !getReducedMotionFromConfig(props.entering)) { + props.style = { + ...(props.style ?? {}), + visibility: 'hidden' // Hide component until `componentDidMount` triggers + }; + } + + const platformProps = Platform.select({ + web: {}, + default: { + collapsable: false + } + }); + return /*#__PURE__*/React.createElement(Component, _extends({}, props, { + // Casting is used here, because ref can be null - in that case it cannot be assigned to HTMLElement. + // After spending some time trying to figure out what to do with this problem, we decided to leave it this way + ref: this._setComponentRef + }, platformProps)); } } - const animatedComponent = props => { - return /*#__PURE__*/_jsx(AnimatedComponent, { - ...props, - // Needed to prevent react from signing AnimatedComponent to the ref - // (we want to handle the ref assignment in the AnimatedComponent) - ref: null, - ...(props.ref === null ? null : { - forwardedRef: props.ref - }) - }); - }; - animatedComponent.displayName = Component.displayName || Component.name || 'Component'; - return animatedComponent; + _defineProperty(AnimatedComponent, "displayName", void 0); + _defineProperty(AnimatedComponent, "contextType", SkipEnteringContext); + AnimatedComponent.displayName = `AnimatedComponent(${Component.displayName || Component.name || 'Component'})`; + return /*#__PURE__*/React.forwardRef((props, ref) => { + return /*#__PURE__*/React.createElement(AnimatedComponent, _extends({}, props, ref === null ? null : { + forwardedRef: ref + })); + }); } //# sourceMappingURL=createAnimatedComponent.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js.map index 2a87223b..7d3d18af 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/createAnimatedComponent.js.map @@ -1 +1 @@ -{"version":3,"names":["React","AnimatedComponentImpl","jsx","_jsx","createAnimatedComponent","Component","options","AnimatedComponent","displayName","name","constructor","props","jsProps","modifiedOptions","length","animatedComponent","ref","forwardedRef"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/createAnimatedComponent.tsx"],"mappings":"AAAA,YAAY;;AAOZ,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAOC,qBAAqB,MAAM,qBAAqB;;AAMvD;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAkBA;AACA;AACA;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAMA,OAAO,SAASC,uBAAuBA,CACrCC,SAAoE,EACpEC,OAAwC,EAEnC;EACL,MAAMC,iBAAiB,SAASN,qBAAqB,CAAC;IACpD,OAAOO,WAAW,GAAG,qBACnBH,SAAS,CAACG,WAAW,IAAIH,SAAS,CAACI,IAAI,IAAI,WAAW,GACrD;IAEHC,WAAWA,CAACC,KAAoD,EAAE;MAChE;MACA,MAAMC,OAAO,GAAGN,OAAO,EAAEM,OAAO,IAAIP,SAAS,CAACO,OAAO;MACrD,MAAMC,eAAe,GAAGD,OAAO,EAAEE,MAAM,GACnC;QAAE,GAAGR,OAAO;QAAEM;MAAQ,CAAC,GACvBN,OAAO;MACX,KAAK,CAACD,SAAS,EAAEM,KAAK,EAAEJ,iBAAiB,CAACC,WAAW,EAAEK,eAAe,CAAC;IACzE;EACF;EAEA,MAAME,iBAAiB,GACrBJ,KAA+D,IAC5D;IACH,oBACER,IAAA,CAACI,iBAAiB;MAAA,GACZI,KAAK;MACT;MACA;MACAK,GAAG,EAAE,IAAK;MAAA,IACLL,KAAK,CAACK,GAAG,KAAK,IAAI,GAAG,IAAI,GAAG;QAAEC,YAAY,EAAEN,KAAK,CAACK;MAAI,CAAC;IAAA,CAC7D,CAAC;EAEN,CAAC;EAEDD,iBAAiB,CAACP,WAAW,GAC3BH,SAAS,CAACG,WAAW,IAAIH,SAAS,CAACI,IAAI,IAAI,WAAW;EAExD,OAAOM,iBAAiB;AAC1B","ignoreList":[]} +{"version":3,"names":["_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_defineProperty","obj","value","_toPropertyKey","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","React","findNodeHandle","Platform","WorkletEventHandler","invariant","adaptViewConfig","RNRenderer","configureLayoutAnimations","enableLayoutAnimations","SharedTransition","LayoutAnimationType","getShadowNodeWrapperFromRef","removeFromPropsRegistry","getReduceMotionFromConfig","maybeBuild","SkipEnteringContext","JSPropsUpdater","has","flattenArray","setAndForwardRef","isFabric","isJest","isWeb","shouldBeUseWeb","InlinePropManager","PropsFilter","startWebLayoutAnimation","tryActivateLayoutTransition","configureWebLayoutAnimations","getReducedMotionFromConfig","IS_WEB","IS_FABRIC","onlyAnimatedStyles","styles","filter","style","viewDescriptors","isSameAnimatedStyle","style1","style2","viewsRef","isSameAnimatedProps","createAnimatedComponent","Component","options","isReactComponent","name","AnimatedComponent","constructor","props","getForwardedRef","forwardedRef","setLocalRef","ref","tag","layout","entering","exiting","sharedTransitionTag","_this$context","LAYOUT","displayName","skipEntering","context","current","_this$props","ENTERING","reduceMotionInExiting","getReduceMotion","_this$props2","EXITING","sharedElementTransition","sharedTransitionStyle","reduceMotionInTransition","registerTransition","_sharedElementTransition","_component","animatedStyle","componentDidMount","_attachNativeEvents","_jsPropsUpdater","addOnJSPropsChangeListener","_attachAnimatedStyles","_InlinePropManager","attachInlineProps","_getViewInfo","_isFirstRender","componentWillUnmount","_this$_sharedElementT","_detachNativeEvents","removeOnJSPropsChangeListener","_detachStyles","detachInlineProps","unregisterTransition","_viewTag","_getEventViewRef","_this$_component","_getScrollableNode","_ref","getScrollableNode","node","viewTag","prop","setNativeProps","registerForEvents","unregisterFromEvents","_styles","remove","_this$props$animatedP","animatedProps","_reattachNativeEvents","prevProps","reattachNeeded","_updateFromNative","_this$_component2","_this$_component2$set","_this$_component3","_getAnimatableRef","_ref2","_viewInfo","viewName","shadowNodeWrapper","viewConfig","component","getAnimatableRef","_hostInstance$viewCon","hostInstance","findHostInstance_DEPRECATED","Error","_nativeTag","uiViewClassName","_this$props$animatedP2","_this$props$animatedP3","prevStyles","prevAnimatedProps","_animatedProps","hasReanimated2Props","hasOneSameStyle","prevStyle","isPresent","some","forEach","add","initial","componentDidUpdate","_prevState","snapshot","getSnapshotBeforeUpdate","getBoundingClientRect","render","_PropsFilter","filterNonAnimatedProps","visibility","platformProps","select","web","default","collapsable","createElement","_setComponentRef","forwardRef"],"sources":["createAnimatedComponent.tsx"],"sourcesContent":["'use strict';\nimport type {\n Component,\n ComponentClass,\n ComponentType,\n FunctionComponent,\n MutableRefObject,\n} from 'react';\nimport React from 'react';\nimport { findNodeHandle, Platform } from 'react-native';\nimport WorkletEventHandler from '../reanimated2/WorkletEventHandler';\nimport '../reanimated2/layoutReanimation/animationsManager';\nimport invariant from 'invariant';\nimport { adaptViewConfig } from '../ConfigHelper';\nimport { RNRenderer } from '../reanimated2/platform-specific/RNRenderer';\nimport {\n configureLayoutAnimations,\n enableLayoutAnimations,\n} from '../reanimated2/core';\nimport {\n SharedTransition,\n LayoutAnimationType,\n} from '../reanimated2/layoutReanimation';\nimport type { StyleProps, ShadowNodeWrapper } from '../reanimated2/commonTypes';\nimport { getShadowNodeWrapperFromRef } from '../reanimated2/fabricUtils';\nimport { removeFromPropsRegistry } from '../reanimated2/PropsRegistry';\nimport { getReduceMotionFromConfig } from '../reanimated2/animation/util';\nimport { maybeBuild } from '../animationBuilder';\nimport { SkipEnteringContext } from '../reanimated2/component/LayoutAnimationConfig';\nimport type { AnimateProps } from '../reanimated2';\nimport JSPropsUpdater from './JSPropsUpdater';\nimport type {\n AnimatedComponentProps,\n AnimatedProps,\n InitialComponentProps,\n AnimatedComponentRef,\n IAnimatedComponentInternal,\n ViewInfo,\n} from './commonTypes';\nimport { has, flattenArray } from './utils';\nimport setAndForwardRef from './setAndForwardRef';\nimport {\n isFabric,\n isJest,\n isWeb,\n shouldBeUseWeb,\n} from '../reanimated2/PlatformChecker';\nimport { InlinePropManager } from './InlinePropManager';\nimport { PropsFilter } from './PropsFilter';\nimport {\n startWebLayoutAnimation,\n tryActivateLayoutTransition,\n configureWebLayoutAnimations,\n getReducedMotionFromConfig,\n} from '../reanimated2/layoutReanimation/web';\nimport type { CustomConfig } from '../reanimated2/layoutReanimation/web/config';\nimport type { FlatList, FlatListProps } from 'react-native';\n\nconst IS_WEB = isWeb();\nconst IS_FABRIC = isFabric();\n\nfunction onlyAnimatedStyles(styles: StyleProps[]): StyleProps[] {\n return styles.filter((style) => style?.viewDescriptors);\n}\n\nfunction isSameAnimatedStyle(\n style1?: StyleProps,\n style2?: StyleProps\n): boolean {\n // We cannot use equality check to compare useAnimatedStyle outputs directly.\n // Instead, we can compare its viewsRefs.\n return style1?.viewsRef === style2?.viewsRef;\n}\n\nconst isSameAnimatedProps = isSameAnimatedStyle;\n\ntype Options

= {\n setNativeProps: (ref: AnimatedComponentRef, props: P) => void;\n};\n\n/**\n * Lets you create an Animated version of any React Native component.\n *\n * @param component - The component you want to make animatable.\n * @returns A component that Reanimated is capable of animating.\n * @see https://docs.swmansion.com/react-native-reanimated/docs/core/createAnimatedComponent\n */\n\n/**\n * @deprecated Please use `Animated.FlatList` component instead of calling `Animated.createAnimatedComponent(FlatList)` manually.\n */\n// @ts-ignore This is required to create this overload, since type of createAnimatedComponent is incorrect and doesn't include typeof FlatList\nexport function createAnimatedComponent(\n component: typeof FlatList,\n options?: Options\n): ComponentClass>>;\n\nexport function createAnimatedComponent

(\n component: FunctionComponent

,\n options?: Options

\n): FunctionComponent>;\n\nexport function createAnimatedComponent

(\n component: ComponentClass

,\n options?: Options

\n): ComponentClass>;\n\nexport function createAnimatedComponent(\n Component: ComponentType,\n options?: Options\n): any {\n invariant(\n typeof Component !== 'function' ||\n (Component.prototype && Component.prototype.isReactComponent),\n `Looks like you're passing a function component \\`${Component.name}\\` to \\`createAnimatedComponent\\` function which supports only class components. Please wrap your function component with \\`React.forwardRef()\\` or use a class component instead.`\n );\n\n class AnimatedComponent\n extends React.Component>\n implements IAnimatedComponentInternal\n {\n _styles: StyleProps[] | null = null;\n _animatedProps?: Partial>;\n _viewTag = -1;\n _isFirstRender = true;\n animatedStyle: { value: StyleProps } = { value: {} };\n _component: AnimatedComponentRef | HTMLElement | null = null;\n _sharedElementTransition: SharedTransition | null = null;\n _jsPropsUpdater = new JSPropsUpdater();\n _InlinePropManager = new InlinePropManager();\n _PropsFilter = new PropsFilter();\n _viewInfo?: ViewInfo;\n static displayName: string;\n static contextType = SkipEnteringContext;\n context!: React.ContextType;\n\n constructor(props: AnimatedComponentProps) {\n super(props);\n if (isJest()) {\n this.animatedStyle = { value: {} };\n }\n }\n\n componentDidMount() {\n this._attachNativeEvents();\n this._jsPropsUpdater.addOnJSPropsChangeListener(this);\n this._attachAnimatedStyles();\n this._InlinePropManager.attachInlineProps(this, this._getViewInfo());\n\n if (IS_WEB) {\n configureWebLayoutAnimations();\n\n if (!this.props.entering) {\n this._isFirstRender = false;\n return;\n }\n\n if (getReducedMotionFromConfig(this.props.entering as CustomConfig)) {\n this._isFirstRender = false;\n return;\n }\n\n startWebLayoutAnimation(\n this.props,\n this._component as HTMLElement,\n LayoutAnimationType.ENTERING\n );\n }\n\n this._isFirstRender = false;\n }\n\n componentWillUnmount() {\n this._detachNativeEvents();\n this._jsPropsUpdater.removeOnJSPropsChangeListener(this);\n this._detachStyles();\n this._InlinePropManager.detachInlineProps();\n this._sharedElementTransition?.unregisterTransition(this._viewTag);\n\n if (\n IS_WEB &&\n this.props.exiting &&\n !getReducedMotionFromConfig(this.props.exiting as CustomConfig)\n ) {\n startWebLayoutAnimation(\n this.props,\n this._component as HTMLElement,\n LayoutAnimationType.EXITING\n );\n }\n }\n\n _getEventViewRef() {\n // Make sure to get the scrollable node for components that implement\n // `ScrollResponder.Mixin`.\n return (this._component as AnimatedComponentRef)?.getScrollableNode\n ? (this._component as AnimatedComponentRef).getScrollableNode?.()\n : this._component;\n }\n\n _attachNativeEvents() {\n const node = this._getEventViewRef() as AnimatedComponentRef;\n let viewTag = null; // We set it only if needed\n\n for (const key in this.props) {\n const prop = this.props[key];\n if (\n has('current', prop) &&\n prop.current instanceof WorkletEventHandler\n ) {\n if (viewTag === null) {\n viewTag = findNodeHandle(options?.setNativeProps ? this : node);\n }\n prop.current.registerForEvents(viewTag as number, key);\n }\n }\n }\n\n _detachNativeEvents() {\n for (const key in this.props) {\n const prop = this.props[key];\n if (\n has('current', prop) &&\n prop.current instanceof WorkletEventHandler\n ) {\n prop.current.unregisterFromEvents();\n }\n }\n }\n\n _detachStyles() {\n if (IS_WEB && this._styles !== null) {\n for (const style of this._styles) {\n if (style?.viewsRef) {\n style.viewsRef.remove(this);\n }\n }\n } else if (this._viewTag !== -1 && this._styles !== null) {\n for (const style of this._styles) {\n style.viewDescriptors.remove(this._viewTag);\n }\n if (this.props.animatedProps?.viewDescriptors) {\n this.props.animatedProps.viewDescriptors.remove(this._viewTag);\n }\n if (IS_FABRIC) {\n removeFromPropsRegistry(this._viewTag);\n }\n }\n }\n\n _reattachNativeEvents(\n prevProps: AnimatedComponentProps\n ) {\n for (const key in prevProps) {\n const prop = this.props[key];\n if (\n has('current', prop) &&\n prop.current instanceof WorkletEventHandler &&\n prop.current.reattachNeeded\n ) {\n prop.current.unregisterFromEvents();\n }\n }\n\n let viewTag = null;\n\n for (const key in this.props) {\n const prop = this.props[key];\n if (\n has('current', prop) &&\n prop.current instanceof WorkletEventHandler &&\n prop.current.reattachNeeded\n ) {\n if (viewTag === null) {\n const node = this._getEventViewRef() as AnimatedComponentRef;\n viewTag = findNodeHandle(options?.setNativeProps ? this : node);\n }\n prop.current.registerForEvents(viewTag as number, key);\n prop.current.reattachNeeded = false;\n }\n }\n }\n\n _updateFromNative(props: StyleProps) {\n if (options?.setNativeProps) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n options.setNativeProps(this._component as AnimatedComponentRef, props);\n } else {\n // eslint-disable-next-line no-unused-expressions\n (this._component as AnimatedComponentRef)?.setNativeProps?.(props);\n }\n }\n\n _getViewInfo(): ViewInfo {\n if (this._viewInfo !== undefined) {\n return this._viewInfo;\n }\n\n let viewTag: number | HTMLElement | null;\n let viewName: string | null;\n let shadowNodeWrapper: ShadowNodeWrapper | null = null;\n let viewConfig;\n // Component can specify ref which should be animated when animated version of the component is created.\n // Otherwise, we animate the component itself.\n const component = (this._component as AnimatedComponentRef)\n ?.getAnimatableRef\n ? (this._component as AnimatedComponentRef).getAnimatableRef?.()\n : this;\n\n if (IS_WEB) {\n // At this point I assume that `_setComponentRef` was already called and `_component` is set.\n // `this._component` on web represents HTMLElement of our component, that's why we use casting\n viewTag = this._component as HTMLElement;\n viewName = null;\n shadowNodeWrapper = null;\n viewConfig = null;\n } else {\n // hostInstance can be null for a component that doesn't render anything (render function returns null). Example: svg Stop: https://github.com/react-native-svg/react-native-svg/blob/develop/src/elements/Stop.tsx\n const hostInstance = RNRenderer.findHostInstance_DEPRECATED(component);\n if (!hostInstance) {\n throw new Error(\n '[Reanimated] Cannot find host instance for this component. Maybe it renders nothing?'\n );\n }\n // we can access view tag in the same way it's accessed here https://github.com/facebook/react/blob/e3f4eb7272d4ca0ee49f27577156b57eeb07cf73/packages/react-native-renderer/src/ReactFabric.js#L146\n viewTag = hostInstance?._nativeTag;\n /**\n * RN uses viewConfig for components for storing different properties of the component(example: https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Components/ScrollView/ScrollViewNativeComponent.js#L24).\n * The name we're looking for is in the field named uiViewClassName.\n */\n viewName = hostInstance?.viewConfig?.uiViewClassName;\n\n viewConfig = hostInstance?.viewConfig;\n\n if (IS_FABRIC) {\n shadowNodeWrapper = getShadowNodeWrapperFromRef(this);\n }\n }\n this._viewInfo = { viewTag, viewName, shadowNodeWrapper, viewConfig };\n return this._viewInfo;\n }\n\n _attachAnimatedStyles() {\n const styles = this.props.style\n ? onlyAnimatedStyles(flattenArray(this.props.style))\n : [];\n const prevStyles = this._styles;\n this._styles = styles;\n\n const prevAnimatedProps = this._animatedProps;\n this._animatedProps = this.props.animatedProps;\n\n const { viewTag, viewName, shadowNodeWrapper, viewConfig } =\n this._getViewInfo();\n\n // update UI props whitelist for this view\n const hasReanimated2Props =\n this.props.animatedProps?.viewDescriptors || styles.length;\n if (hasReanimated2Props && viewConfig) {\n adaptViewConfig(viewConfig);\n }\n\n this._viewTag = viewTag as number;\n\n // remove old styles\n if (prevStyles) {\n // in most of the cases, views have only a single animated style and it remains unchanged\n const hasOneSameStyle =\n styles.length === 1 &&\n prevStyles.length === 1 &&\n isSameAnimatedStyle(styles[0], prevStyles[0]);\n\n if (!hasOneSameStyle) {\n // otherwise, remove each style that is not present in new styles\n for (const prevStyle of prevStyles) {\n const isPresent = styles.some((style) =>\n isSameAnimatedStyle(style, prevStyle)\n );\n if (!isPresent) {\n prevStyle.viewDescriptors.remove(viewTag);\n }\n }\n }\n }\n\n styles.forEach((style) => {\n style.viewDescriptors.add({\n tag: viewTag,\n name: viewName,\n shadowNodeWrapper,\n });\n if (isJest()) {\n /**\n * We need to connect Jest's TestObject instance whose contains just props object\n * with the updateProps() function where we update the properties of the component.\n * We can't update props object directly because TestObject contains a copy of props - look at render function:\n * const props = this._filterNonAnimatedProps(this.props);\n */\n this.animatedStyle.value = {\n ...this.animatedStyle.value,\n ...style.initial.value,\n };\n style.animatedStyle.current = this.animatedStyle;\n }\n });\n\n // detach old animatedProps\n if (\n prevAnimatedProps &&\n !isSameAnimatedProps(prevAnimatedProps, this.props.animatedProps)\n ) {\n prevAnimatedProps.viewDescriptors!.remove(viewTag as number);\n }\n\n // attach animatedProps property\n if (this.props.animatedProps?.viewDescriptors) {\n this.props.animatedProps.viewDescriptors.add({\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n tag: viewTag as number,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n name: viewName!,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n shadowNodeWrapper: shadowNodeWrapper!,\n });\n }\n }\n\n componentDidUpdate(\n prevProps: AnimatedComponentProps,\n _prevState: Readonly,\n // This type comes straight from React\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n snapshot: DOMRect | null\n ) {\n this._reattachNativeEvents(prevProps);\n this._attachAnimatedStyles();\n this._InlinePropManager.attachInlineProps(this, this._getViewInfo());\n\n // Snapshot won't be undefined because it comes from getSnapshotBeforeUpdate method\n if (\n IS_WEB &&\n snapshot !== null &&\n this.props.layout &&\n !getReducedMotionFromConfig(this.props.layout as CustomConfig)\n ) {\n tryActivateLayoutTransition(\n this.props,\n this._component as HTMLElement,\n snapshot\n );\n }\n }\n\n _setComponentRef = setAndForwardRef({\n getForwardedRef: () =>\n this.props.forwardedRef as MutableRefObject<\n Component, Record, unknown>\n >,\n setLocalRef: (ref) => {\n // TODO update config\n\n const tag = IS_WEB\n ? (ref as HTMLElement)\n : findNodeHandle(ref as Component);\n\n const { layout, entering, exiting, sharedTransitionTag } = this.props;\n if (\n (layout || entering || exiting || sharedTransitionTag) &&\n tag != null\n ) {\n if (!shouldBeUseWeb()) {\n enableLayoutAnimations(true, false);\n }\n if (layout) {\n configureLayoutAnimations(\n tag,\n LayoutAnimationType.LAYOUT,\n maybeBuild(\n layout,\n undefined /* We don't have to warn user if style has common properties with animation for LAYOUT */,\n AnimatedComponent.displayName\n )\n );\n }\n const skipEntering = this.context?.current;\n if (entering && !skipEntering) {\n configureLayoutAnimations(\n tag,\n LayoutAnimationType.ENTERING,\n maybeBuild(\n entering,\n this.props?.style,\n AnimatedComponent.displayName\n )\n );\n }\n if (exiting) {\n const reduceMotionInExiting =\n 'getReduceMotion' in exiting &&\n typeof exiting.getReduceMotion === 'function'\n ? getReduceMotionFromConfig(exiting.getReduceMotion())\n : getReduceMotionFromConfig();\n if (!reduceMotionInExiting) {\n configureLayoutAnimations(\n tag,\n LayoutAnimationType.EXITING,\n maybeBuild(\n exiting,\n this.props?.style,\n AnimatedComponent.displayName\n )\n );\n }\n }\n if (sharedTransitionTag && !IS_WEB) {\n const sharedElementTransition =\n this.props.sharedTransitionStyle ?? new SharedTransition();\n const reduceMotionInTransition = getReduceMotionFromConfig(\n sharedElementTransition.getReduceMotion()\n );\n if (!reduceMotionInTransition) {\n sharedElementTransition.registerTransition(\n tag as number,\n sharedTransitionTag\n );\n this._sharedElementTransition = sharedElementTransition;\n }\n }\n }\n\n if (ref !== this._component) {\n this._component = ref;\n }\n },\n });\n\n // This is a component lifecycle method from React, therefore we are not calling it directly.\n // It is called before the component gets rerendered. This way we can access components' position before it changed\n // and later on, in componentDidUpdate, calculate translation for layout transition.\n getSnapshotBeforeUpdate() {\n if (\n (this._component as HTMLElement).getBoundingClientRect !== undefined\n ) {\n return (this._component as HTMLElement).getBoundingClientRect();\n }\n\n return null;\n }\n\n render() {\n const props = this._PropsFilter.filterNonAnimatedProps(this);\n\n if (isJest()) {\n props.animatedStyle = this.animatedStyle;\n }\n\n // Layout animations on web are set inside `componentDidMount` method, which is called after first render.\n // Because of that we can encounter a situation in which component is visible for a short amount of time, and later on animation triggers.\n // I've tested that on various browsers and devices and it did not happen to me. To be sure that it won't happen to someone else,\n // I've decided to hide component at first render. Its visibility is reset in `componentDidMount`.\n if (\n this._isFirstRender &&\n IS_WEB &&\n props.entering &&\n !getReducedMotionFromConfig(props.entering as CustomConfig)\n ) {\n props.style = {\n ...(props.style ?? {}),\n visibility: 'hidden', // Hide component until `componentDidMount` triggers\n };\n }\n\n const platformProps = Platform.select({\n web: {},\n default: { collapsable: false },\n });\n\n return (\n void}\n {...platformProps}\n />\n );\n }\n }\n\n AnimatedComponent.displayName = `AnimatedComponent(${\n Component.displayName || Component.name || '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,CAAC,CAAC;AACJ"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/getViewInfo.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/getViewInfo.js deleted file mode 100644 index c6079312..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/getViewInfo.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export function getViewInfo(element) { - return { - viewName: element?._viewConfig?.uiViewClassName ?? element?.__internalInstanceHandle?.type ?? element?.__internalInstanceHandle?.elementType, - viewTag: element?.__nativeTag - }; -} -//# sourceMappingURL=getViewInfo.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/getViewInfo.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/getViewInfo.js.map deleted file mode 100644 index 0a8253cf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/getViewInfo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["getViewInfo","element","viewName","_viewConfig","uiViewClassName","__internalInstanceHandle","type","elementType","viewTag","__nativeTag"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/getViewInfo.ts"],"mappings":"AAAA,YAAY;;AAIZ,OAAO,SAASA,WAAWA,CAACC,OAAqB,EAG/C;EACA,OAAO;IACLC,QAAQ,EAAGD,OAAO,EAAEE,WAAW,EAAEC,eAAe,IAC9CH,OAAO,EAAEI,wBAAwB,EAAEC,IAAI,IACvCL,OAAO,EAAEI,wBAAwB,EAAEE,WAAsB;IAC3DC,OAAO,EAAEP,OAAO,EAAEQ;EACpB,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/index.js.map index d143eb8e..115da9b6 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/index.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/index.js.map @@ -1 +1 @@ -{"version":3,"names":["createAnimatedComponent"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,uBAAuB,QAAQ,2BAA2B","ignoreList":[]} +{"version":3,"names":["createAnimatedComponent"],"sources":["index.ts"],"sourcesContent":["'use strict';\nexport { createAnimatedComponent } from './createAnimatedComponent';\n"],"mappings":"AAAA,YAAY;;AACZ,SAASA,uBAAuB,QAAQ,2BAA2B"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js index c9b67967..fbc0d9f4 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js @@ -27,32 +27,4 @@ export const has = (key, x) => { } return false; }; -export function filterStyles(styles) { - if (!styles) { - return { - animatedStyles: [], - cssStyle: null - }; - } - return styles.reduce(({ - animatedStyles, - cssStyle - }, style) => { - if (style?.viewDescriptors) { - animatedStyles.push(style); - } else { - cssStyle = { - ...cssStyle, - ...style - }; - } - return { - animatedStyles, - cssStyle - }; - }, { - animatedStyles: [], - cssStyle: null - }); -} //# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js.map index c4713e48..ad7feddc 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/createAnimatedComponent/utils.js.map @@ -1 +1 @@ -{"version":3,"names":["flattenArray","array","Array","isArray","resultArr","_flattenArray","arr","forEach","item","push","has","key","x","undefined","filterStyles","styles","animatedStyles","cssStyle","reduce","style","viewDescriptors"],"sourceRoot":"../../../src","sources":["createAnimatedComponent/utils.ts"],"mappings":"AAAA,YAAY;;AAKZ,OAAO,SAASA,YAAYA,CAAIC,KAAqB,EAAO;EAC1D,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACzB,OAAO,CAACA,KAAK,CAAC;EAChB;EACA,MAAMG,SAAc,GAAG,EAAE;EAEzB,MAAMC,aAAa,GAAIC,GAAqB,IAAW;IACrDA,GAAG,CAACC,OAAO,CAAEC,IAAI,IAAK;MACpB,IAAIN,KAAK,CAACC,OAAO,CAACK,IAAI,CAAC,EAAE;QACvBH,aAAa,CAACG,IAAI,CAAC;MACrB,CAAC,MAAM;QACLJ,SAAS,CAACK,IAAI,CAACD,IAAI,CAAC;MACtB;IACF,CAAC,CAAC;EACJ,CAAC;EACDH,aAAa,CAACJ,KAAK,CAAC;EACpB,OAAOG,SAAS;AAClB;AAEA,OAAO,MAAMM,GAAG,GAAGA,CACjBC,GAAM,EACNC,CAAU,KACuB;EACjC,IAAI,OAAOA,CAAC,KAAK,UAAU,IAAI,OAAOA,CAAC,KAAK,QAAQ,EAAE;IACpD,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;MACjC,OAAO,KAAK;IACd,CAAC,MAAM;MACL,OAAOF,GAAG,IAAIC,CAAC;IACjB;EACF;EACA,OAAO,KAAK;AACd,CAAC;AAOD,OAAO,SAASE,YAAYA,CAACC,MAAgC,EAAkB;EAC7E,IAAI,CAACA,MAAM,EAAE;IACX,OAAO;MAAEC,cAAc,EAAE,EAAE;MAAEC,QAAQ,EAAE;IAAK,CAAC;EAC/C;EAEA,OAAOF,MAAM,CAACG,MAAM,CAClB,CAAC;IAAEF,cAAc;IAAEC;EAAS,CAAC,EAAEE,KAAK,KAAK;IACvC,IAAIA,KAAK,EAAEC,eAAe,EAAE;MAC1BJ,cAAc,CAACP,IAAI,CAACU,KAAK,CAAC;IAC5B,CAAC,MAAM;MACLF,QAAQ,GAAG;QAAE,GAAGA,QAAQ;QAAE,GAAGE;MAAM,CAAa;IAClD;IACA,OAAO;MAAEH,cAAc;MAAEC;IAAS,CAAC;EACrC,CAAC,EACD;IAAED,cAAc,EAAE,EAAE;IAAEC,QAAQ,EAAE;EAAK,CACvC,CAAC;AACH","ignoreList":[]} +{"version":3,"names":["flattenArray","array","Array","isArray","resultArr","_flattenArray","arr","forEach","item","push","has","key","x","undefined"],"sources":["utils.ts"],"sourcesContent":["'use strict';\nimport type { NestedArray } from './commonTypes';\n\nexport function flattenArray(array: NestedArray): T[] {\n if (!Array.isArray(array)) {\n return [array];\n }\n const resultArr: T[] = [];\n\n const _flattenArray = (arr: NestedArray[]): void => {\n arr.forEach((item) => {\n if (Array.isArray(item)) {\n _flattenArray(item);\n } else {\n resultArr.push(item);\n }\n });\n };\n _flattenArray(array);\n return resultArr;\n}\n\nexport const has = (\n key: K,\n x: unknown\n): x is typeof x & { [key in K]: unknown } => {\n if (typeof x === 'function' || typeof x === 'object') {\n if (x === null || x === undefined) {\n return false;\n } else {\n return key in x;\n }\n }\n return false;\n};\n"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,YAAYA,CAAIC,KAAqB,EAAO;EAC1D,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACzB,OAAO,CAACA,KAAK,CAAC;EAChB;EACA,MAAMG,SAAc,GAAG,EAAE;EAEzB,MAAMC,aAAa,GAAIC,GAAqB,IAAW;IACrDA,GAAG,CAACC,OAAO,CAAEC,IAAI,IAAK;MACpB,IAAIN,KAAK,CAACC,OAAO,CAACK,IAAI,CAAC,EAAE;QACvBH,aAAa,CAACG,IAAI,CAAC;MACrB,CAAC,MAAM;QACLJ,SAAS,CAACK,IAAI,CAACD,IAAI,CAAC;MACtB;IACF,CAAC,CAAC;EACJ,CAAC;EACDH,aAAa,CAACJ,KAAK,CAAC;EACpB,OAAOG,SAAS;AAClB;AAEA,OAAO,MAAMM,GAAG,GAAGA,CACjBC,GAAM,EACNC,CAAU,KACkC;EAC5C,IAAI,OAAOA,CAAC,KAAK,UAAU,IAAI,OAAOA,CAAC,KAAK,QAAQ,EAAE;IACpD,IAAIA,CAAC,KAAK,IAAI,IAAIA,CAAC,KAAKC,SAAS,EAAE;MACjC,OAAO,KAAK;IACd,CAAC,MAAM;MACL,OAAOF,GAAG,IAAIC,CAAC;IACjB;EACF;EACA,OAAO,KAAK;AACd,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/AnimatedComponent.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/AnimatedComponent.js deleted file mode 100644 index 2876a3fc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/AnimatedComponent.js +++ /dev/null @@ -1,171 +0,0 @@ -'use strict'; - -import { Component } from 'react'; -import { Platform, StyleSheet } from 'react-native'; -import { IS_JEST, ReanimatedError, SHOULD_BE_USE_WEB } from '../../common'; -import { getViewInfo } from '../../createAnimatedComponent/getViewInfo'; -import { getShadowNodeWrapperFromRef } from '../../fabricUtils'; -import { findHostInstance } from '../../platform-specific/findHostInstance'; -import { markNodeAsRemovable, unmarkNodeAsRemovable } from '../native'; -import { CSSManager } from '../platform'; -import { filterNonCSSStyleProps } from './utils'; -import { jsx as _jsx } from "react/jsx-runtime"; -// TODO - change these ugly underscore prefixed methods and properties to real -// private/protected ones when possible (when changes from this repo are merged -// to the main one) -export default class AnimatedComponent extends Component { - _cssStyle = {}; // RN style object with Reanimated CSS properties - _componentRef = null; - _hasAnimatedRef = false; - // Used only on web - _componentDOMRef = null; - _willUnmount = false; - constructor(ChildComponent, props) { - super(props); - this.ChildComponent = ChildComponent; - } - getComponentViewTag() { - return this._getViewInfo().viewTag; - } - _onSetLocalRef() { - // noop - can be overridden in subclasses - } - _getViewInfo() { - if (this._viewInfo !== undefined) { - return this._viewInfo; - } - let viewTag; - let shadowNodeWrapper = null; - let DOMElement = null; - let viewName; - if (SHOULD_BE_USE_WEB) { - // At this point we assume that `_setComponentRef` was already called and `_component` is set. - // `this._component` on web represents HTMLElement of our component, that's why we use casting - // TODO - implement a valid solution later on - this is a temporary fix - viewTag = this._componentRef; - DOMElement = this._componentDOMRef; - } else { - const hostInstance = findHostInstance(this); - if (!hostInstance) { - /* - findHostInstance can return null for a component that doesn't render anything - (render function returns null). Example: - svg Stop: https://github.com/react-native-svg/react-native-svg/blob/develop/src/elements/Stop.tsx - */ - throw new ReanimatedError('Cannot find host instance for this component. Maybe it renders nothing?'); - } - const viewInfo = getViewInfo(hostInstance); - viewTag = viewInfo.viewTag ?? -1; - viewName = viewInfo.viewName; - shadowNodeWrapper = getShadowNodeWrapperFromRef(this, hostInstance); - } - this._viewInfo = { - viewTag, - shadowNodeWrapper, - viewName - }; - if (DOMElement) { - this._viewInfo.DOMElement = DOMElement; - } - return this._viewInfo; - } - _setComponentRef = ref => { - const forwardedRef = this.props.forwardedRef; - // Forward to user ref prop (if one has been specified) - if (typeof forwardedRef === 'function') { - // Handle function-based refs. String-based refs are handled as functions. - forwardedRef(ref); - } else if (typeof forwardedRef === 'object' && forwardedRef) { - // Handle createRef-based refs - forwardedRef.current = ref; - } - if (!ref) { - // component has been unmounted - return; - } - if (ref !== this._componentRef) { - this._componentRef = this._resolveComponentRef(ref); - // if ref is changed, reset viewInfo - this._viewInfo = undefined; - } - this._onSetLocalRef(); - }; - _resolveComponentRef = ref => { - const componentRef = ref; - // Component can specify ref which should be animated when animated version of the component is created. - // Otherwise, we animate the component itself. - if (componentRef && componentRef.getAnimatableRef) { - this._hasAnimatedRef = true; - return componentRef.getAnimatableRef(); - } - // Case for SVG components on Web - if (SHOULD_BE_USE_WEB) { - if (componentRef && componentRef.elementRef) { - this._componentDOMRef = componentRef.elementRef.current; - } else { - this._componentDOMRef = ref; - } - } - return componentRef; - }; - _updateStyles(props) { - this._cssStyle = StyleSheet.flatten(props.style) ?? {}; - } - componentDidMount() { - this._updateStyles(this.props); - const viewTag = this._viewInfo?.viewTag; - if (!SHOULD_BE_USE_WEB && this._willUnmount && typeof viewTag === 'number') { - unmarkNodeAsRemovable(viewTag); - } - if (!IS_JEST) { - this._CSSManager ??= new CSSManager(this._getViewInfo()); - this._CSSManager?.update(this._cssStyle); - } - this._willUnmount = false; - } - componentWillUnmount() { - if (!IS_JEST && this._CSSManager) { - this._CSSManager.unmountCleanup(); - } - const wrapper = this._viewInfo?.shadowNodeWrapper; - if (!SHOULD_BE_USE_WEB && wrapper) { - // Mark node as removable on the native (C++) side, but only actually remove it - // when it no longer exists in the Shadow Tree. This ensures proper cleanup of - // animations/transitions/props while handling cases where the node might be - // remounted (e.g., when frozen) after componentWillUnmount is called. - - markNodeAsRemovable(wrapper); - } - this._willUnmount = true; - } - shouldComponentUpdate(nextProps) { - this._updateStyles(nextProps); - if (this._CSSManager) { - this._CSSManager.update(this._cssStyle); - } - - // TODO - maybe check if the render is necessary instead of always returning true - return true; - } - render(props) { - const { - ChildComponent - } = this; - const platformProps = Platform.select({ - web: {}, - default: { - collapsable: false - } - }); - return /*#__PURE__*/_jsx(ChildComponent, { - ...(props ?? this.props), - ...platformProps, - style: filterNonCSSStyleProps(props?.style ?? this.props.style) - // Casting is used here, because ref can be null - in that case it cannot be assigned to HTMLElement. - // After spending some time trying to figure out what to do with this problem, we decided to leave it this way - , - ref: this._setComponentRef - }); - } -} -//# sourceMappingURL=AnimatedComponent.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/AnimatedComponent.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/AnimatedComponent.js.map deleted file mode 100644 index 04c8c7fd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/AnimatedComponent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Component","Platform","StyleSheet","IS_JEST","ReanimatedError","SHOULD_BE_USE_WEB","getViewInfo","getShadowNodeWrapperFromRef","findHostInstance","markNodeAsRemovable","unmarkNodeAsRemovable","CSSManager","filterNonCSSStyleProps","jsx","_jsx","AnimatedComponent","_cssStyle","_componentRef","_hasAnimatedRef","_componentDOMRef","_willUnmount","constructor","ChildComponent","props","getComponentViewTag","_getViewInfo","viewTag","_onSetLocalRef","_viewInfo","undefined","shadowNodeWrapper","DOMElement","viewName","hostInstance","viewInfo","_setComponentRef","ref","forwardedRef","current","_resolveComponentRef","componentRef","getAnimatableRef","elementRef","_updateStyles","flatten","style","componentDidMount","_CSSManager","update","componentWillUnmount","unmountCleanup","wrapper","shouldComponentUpdate","nextProps","render","platformProps","select","web","default","collapsable"],"sourceRoot":"../../../../src","sources":["css/component/AnimatedComponent.tsx"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEnD,SAASC,OAAO,EAAEC,eAAe,EAAEC,iBAAiB,QAAQ,cAAc;AAO1E,SAASC,WAAW,QAAQ,2CAA2C;AACvE,SAASC,2BAA2B,QAAQ,mBAAmB;AAC/D,SAASC,gBAAgB,QAAQ,0CAA0C;AAC3E,SAASC,mBAAmB,EAAEC,qBAAqB,QAAQ,WAAW;AACtE,SAASC,UAAU,QAAQ,aAAa;AAExC,SAASC,sBAAsB,QAAQ,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOjD;AACA;AACA;AACA,eAAe,MAAMC,iBAAiB,SAG5Bf,SAAS,CAEnB;EAMEgB,SAAS,GAAa,CAAC,CAAC,CAAC,CAAC;EAC1BC,aAAa,GAA8C,IAAI;EAC/DC,eAAe,GAAG,KAAK;EACvB;EACAC,gBAAgB,GAAuB,IAAI;EAC3CC,YAAY,GAAY,KAAK;EAE7BC,WAAWA,CAACC,cAA4B,EAAEC,KAAQ,EAAE;IAClD,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACD,cAAc,GAAGA,cAAc;EACtC;E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AAsB,CAACW,KAAK,EAAEsB,KAAK,IAAI,IAAI,CAACtB,KAAK,CAACsB,KAAK;MAC9D;MACA;MAAA;MACAT,GAAG,EAAE,IAAI,CAACD;IAA6C,CACxD,CAAC;EAEN;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/createAnimatedComponent.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/createAnimatedComponent.js deleted file mode 100644 index cca2532c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/createAnimatedComponent.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict'; - -import React from 'react'; -import AnimatedComponentImpl from './AnimatedComponent'; - -// Don't change the order of overloads, since such a change breaks current behavior - -/** - * @deprecated Please use `Animated.FlatList` component instead of calling - * `Animated.createAnimatedComponent(FlatList)` manually. - */ -// @ts-ignore This is required to create this overload, since type of createAnimatedComponent is incorrect and doesn't include typeof FlatList -import { jsx as _jsx } from "react/jsx-runtime"; -export default function createAnimatedComponent(Component) { - class AnimatedComponent extends AnimatedComponentImpl { - static displayName = `AnimatedComponent(${Component.displayName || Component.name || 'Component'})`; - constructor(props) { - super(Component, props); - } - } - const animatedComponent = props => { - return /*#__PURE__*/_jsx(AnimatedComponent, { - ...props, - // Needed to prevent react from signing AnimatedComponent to the ref - // (we want to handle the ref assignment in the AnimatedComponent) - ref: null, - ...(props.ref === null ? null : { - forwardedRef: props.ref - }) - }); - }; - animatedComponent.displayName = Component.displayName || Component.name || 'Component'; - return animatedComponent; -} -//# sourceMappingURL=createAnimatedComponent.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/createAnimatedComponent.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/createAnimatedComponent.js.map deleted file mode 100644 index f8895e75..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/createAnimatedComponent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["React","AnimatedComponentImpl","jsx","_jsx","createAnimatedComponent","Component","AnimatedComponent","displayName","name","constructor","props","animatedComponent","ref","forwardedRef"],"sourceRoot":"../../../../src","sources":["css/component/createAnimatedComponent.tsx"],"mappings":"AAAA,YAAY;;AAOZ,OAAOA,KAAK,MAAM,OAAO;AAKzB,OAAOC,qBAAqB,MAAM,qBAAqB;;AAEvD;;AAeA;AACA;AACA;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAKA,eAAe,SAASC,uBAAuBA,CAC7CC,SAA2B,EAEtB;EACL,MAAMC,iBAAiB,SAASL,qBAAqB,CAAC;IACpD,OAAOM,WAAW,GAAG,qBACnBF,SAAS,CAACE,WAAW,IAAIF,SAAS,CAACG,IAAI,IAAI,WAAW,GACrD;IAEHC,WAAWA,CAACC,KAA6B,EAAE;MACzC,KAAK,CAACL,SAAS,EAAEK,KAAK,CAAC;IACzB;EACF;EAEA,MAAMC,iBAAiB,GACrBD,KAA+D,IAC5D;IACH,oBACEP,IAAA,CAACG,iBAAiB;MAAA,GACZI,KAAK;MACT;MACA;MACAE,GAAG,EAAE,IAAK;MAAA,IACLF,KAAK,CAACE,GAAG,KAAK,IAAI,GAAG,IAAI,GAAG;QAAEC,YAAY,EAAEH,KAAK,CAACE;MAAI,CAAC;IAAA,CAC7D,CAAC;EAEN,CAAC;EAEDD,iBAAiB,CAACJ,WAAW,GAC3BF,SAAS,CAACE,WAAW,IAAIF,SAAS,CAACG,IAAI,IAAI,WAAW;EAExD,OAAOG,iBAAiB;AAC1B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/index.js deleted file mode 100644 index ed267ec9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { default as createAnimatedComponent } from './createAnimatedComponent'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/index.js.map deleted file mode 100644 index 17dd0a59..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","createAnimatedComponent"],"sourceRoot":"../../../../src","sources":["css/component/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,IAAIC,uBAAuB,QAAQ,2BAA2B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/utils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/utils.js deleted file mode 100644 index b54920e6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/utils.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -import { isCSSStyleProp } from '../utils/guards'; -function filterNonCSSStylePropsRecursive(props) { - if (Array.isArray(props)) { - return props.map(prop => filterNonCSSStylePropsRecursive(prop)); - } - if (!props) { - return props; - } - if (typeof props === 'object') { - return Object.entries(props).reduce((acc, [key, value]) => { - if (!isCSSStyleProp(key)) { - acc[key] = value; - } - return acc; - }, {}); - } - return props; -} -export function filterNonCSSStyleProps(props) { - return filterNonCSSStylePropsRecursive(props); -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/utils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/utils.js.map deleted file mode 100644 index 05e2353c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/component/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isCSSStyleProp","filterNonCSSStylePropsRecursive","props","Array","isArray","map","prop","Object","entries","reduce","acc","key","value","filterNonCSSStyleProps"],"sourceRoot":"../../../../src","sources":["css/component/utils.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,cAAc,QAAQ,iBAAiB;AAEhD,SAASC,+BAA+BA,CACtCC,KAA0B,EACL;EACrB,IAAIC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACG,GAAG,CAAEC,IAAI,IACpBL,+BAA+B,CAACK,IAA2B,CAC7D,CAAC;EACH;EAEA,IAAI,CAACJ,KAAK,EAAE;IACV,OAAOA,KAAK;EACd;EAEA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAOK,MAAM,CAACC,OAAO,CAACN,KAAK,CAAC,CAACO,MAAM,CAAY,CAACC,GAAG,EAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;MACpE,IAAI,CAACZ,cAAc,CAACW,GAAG,CAAC,EAAE;QACxBD,GAAG,CAACC,GAAG,CAAC,GAAGC,KAAK;MAClB;MACA,OAAOF,GAAG;IACZ,CAAC,EAAE,CAAC,CAAC,CAAC;EACR;EAEA,OAAOR,KAAK;AACd;AAEA,OAAO,SAASW,sBAAsBA,CACpCX,KAA0B,EACL;EACrB,OAAOD,+BAA+B,CAACC,KAAK,CAAC;AAC/C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/font.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/font.js deleted file mode 100644 index b8c6e760..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/font.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -export const FONT_WEIGHT_MAPPINGS = { - thin: '100', - ultralight: '200', - light: '300', - normal: '400', - regular: '400', - medium: '500', - condensed: '500', - semibold: '600', - bold: '700', - condensedBold: '700', - heavy: '800', - black: '900' -}; -//# sourceMappingURL=font.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/font.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/font.js.map deleted file mode 100644 index 9d017af5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/font.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["FONT_WEIGHT_MAPPINGS","thin","ultralight","light","normal","regular","medium","condensed","semibold","bold","condensedBold","heavy","black"],"sourceRoot":"../../../../src","sources":["css/constants/font.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAO,MAAMA,oBAAoB,GAAG;EAClCC,IAAI,EAAE,KAAK;EACXC,UAAU,EAAE,KAAK;EACjBC,KAAK,EAAE,KAAK;EACZC,MAAM,EAAE,KAAK;EACbC,OAAO,EAAE,KAAK;EACdC,MAAM,EAAE,KAAK;EACbC,SAAS,EAAE,KAAK;EAChBC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,KAAK;EACXC,aAAa,EAAE,KAAK;EACpBC,KAAK,EAAE,KAAK;EACZC,KAAK,EAAE;AACT,CAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/index.js deleted file mode 100644 index e8027974..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -export * from './font'; -export * from './misc'; -export * from './regex'; -export * from './settings'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/index.js.map deleted file mode 100644 index e87a31e4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/constants/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/misc.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/misc.js deleted file mode 100644 index 9eb1e86c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/misc.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export const ANIMATION_NAME_PREFIX = 'REA-CSS-'; -//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/misc.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/misc.js.map deleted file mode 100644 index fd976011..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/misc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ANIMATION_NAME_PREFIX"],"sourceRoot":"../../../../src","sources":["css/constants/misc.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAO,MAAMA,qBAAqB,GAAG,UAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/regex.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/regex.js deleted file mode 100644 index 3e9ad71c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/regex.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export const PERCENTAGE_REGEX = /^-?(\d*\.)?\d+%$/; -export const MILLISECONDS_REGEX = /^-?(\d*\.)?\d+ms$/; -export const SECONDS_REGEX = /^-?(\d*\.)?\d+s$/; -//# sourceMappingURL=regex.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/regex.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/regex.js.map deleted file mode 100644 index 094cd6c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/regex.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["PERCENTAGE_REGEX","MILLISECONDS_REGEX","SECONDS_REGEX"],"sourceRoot":"../../../../src","sources":["css/constants/regex.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAO,MAAMA,gBAAgB,GAAG,kBAAkB;AAClD,OAAO,MAAMC,kBAAkB,GAAG,mBAAmB;AACrD,OAAO,MAAMC,aAAa,GAAG,kBAAkB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/settings.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/settings.js deleted file mode 100644 index 4a2e6c0f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/settings.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -export const ANIMATION_PROPS = ['animationName', 'animationDuration', 'animationTimingFunction', 'animationDelay', 'animationIterationCount', 'animationDirection', 'animationFillMode', 'animationPlayState']; -export const TRANSITION_PROPS = ['transitionProperty', 'transitionDuration', 'transitionTimingFunction', 'transitionDelay', 'transitionBehavior', 'transition']; -export const VALID_STEPS_MODIFIERS = ['jump-start', 'start', 'jump-end', 'end', 'jump-none', 'jump-both']; -export const VALID_PREDEFINED_TIMING_FUNCTIONS = ['linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'step-start', 'step-end']; -export const VALID_PARAMETRIZED_TIMING_FUNCTIONS = ['cubic-bezier', 'steps', 'linear']; -//# sourceMappingURL=settings.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/settings.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/settings.js.map deleted file mode 100644 index a85b94df..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/constants/settings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ANIMATION_PROPS","TRANSITION_PROPS","VALID_STEPS_MODIFIERS","VALID_PREDEFINED_TIMING_FUNCTIONS","VALID_PARAMETRIZED_TIMING_FUNCTIONS"],"sourceRoot":"../../../../src","sources":["css/constants/settings.ts"],"mappings":"AAAA,YAAY;;AAIZ,OAAO,MAAMA,eAAmC,GAAG,CACjD,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,CACrB;AAED,OAAO,MAAMC,gBAAqC,GAAG,CACnD,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,CACb;AAED,OAAO,MAAMC,qBAAsC,GAAG,CACpD,YAAY,EACZ,OAAO,EACP,UAAU,EACV,KAAK,EACL,WAAW,EACX,WAAW,CACZ;AAED,OAAO,MAAMC,iCAA6D,GAAG,CAC3E,QAAQ,EACR,MAAM,EACN,SAAS,EACT,UAAU,EACV,aAAa,EACb,YAAY,EACZ,UAAU,CACX;AAED,OAAO,MAAMC,mCAA6C,GAAG,CAC3D,cAAc,EACd,OAAO,EACP,QAAQ,CACT","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/cubicBezier.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/cubicBezier.js deleted file mode 100644 index ab9f6049..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/cubicBezier.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../common'; -export const ERROR_MESSAGES = { - invalidCoordinate: (coordinate, value) => `Invalid ${coordinate} coordinate for cubic bezier easing point, it should be a number between 0 and 1, received ${value}` -}; -export class CubicBezierEasing { - static easingName = 'cubicBezier'; - constructor(x1, y1, x2, y2) { - if (x1 < 0 || x1 > 1) { - throw new ReanimatedError(ERROR_MESSAGES.invalidCoordinate('x1', x1)); - } - if (x2 < 0 || x2 > 1) { - throw new ReanimatedError(ERROR_MESSAGES.invalidCoordinate('x2', x2)); - } - this.x1 = x1; - this.y1 = y1; - this.x2 = x2; - this.y2 = y2; - } - toString() { - return `${CubicBezierEasing.easingName}(${this.x1}, ${this.y1}, ${this.x2}, ${this.y2})`; - } - normalize() { - return { - name: CubicBezierEasing.easingName, - x1: this.x1, - y1: this.y1, - x2: this.x2, - y2: this.y2 - }; - } -} -//# sourceMappingURL=cubicBezier.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/cubicBezier.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/cubicBezier.js.map deleted file mode 100644 index 67354514..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/cubicBezier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","ERROR_MESSAGES","invalidCoordinate","coordinate","value","CubicBezierEasing","easingName","constructor","x1","y1","x2","y2","toString","normalize","name"],"sourceRoot":"../../../../src","sources":["css/easing/cubicBezier.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,cAAc;AAM9C,OAAO,MAAMC,cAAc,GAAG;EAC5BC,iBAAiB,EAAEA,CAACC,UAAkB,EAAEC,KAAa,KACnD,WAAWD,UAAU,8FAA8FC,KAAK;AAC5H,CAAC;AAED,OAAO,MAAMC,iBAAiB,CAAuC;EACnE,OAAgBC,UAAU,GAAG,aAAa;EAM1CC,WAAWA,CAACC,EAAU,EAAEC,EAAU,EAAEC,EAAU,EAAEC,EAAU,EAAE;IAC1D,IAAIH,EAAE,GAAG,CAAC,IAAIA,EAAE,GAAG,CAAC,EAAE;MACpB,MAAM,IAAIR,eAAe,CAACC,cAAc,CAACC,iBAAiB,CAAC,IAAI,EAAEM,EAAE,CAAC,CAAC;IACvE;IACA,IAAIE,EAAE,GAAG,CAAC,IAAIA,EAAE,GAAG,CAAC,EAAE;MACpB,MAAM,IAAIV,eAAe,CAACC,cAAc,CAACC,iBAAiB,CAAC,IAAI,EAAEQ,EAAE,CAAC,CAAC;IACvE;IACA,IAAI,CAACF,EAAE,GAAGA,EAAE;IACZ,IAAI,CAACC,EAAE,GAAGA,EAAE;IACZ,IAAI,CAACC,EAAE,GAAGA,EAAE;IACZ,IAAI,CAACC,EAAE,GAAGA,EAAE;EACd;EAEAC,QAAQA,CAAA,EAAW;IACjB,OAAO,GAAGP,iBAAiB,CAACC,UAAU,IAAI,IAAI,CAACE,EAAE,KAAK,IAAI,CAACC,EAAE,KAAK,IAAI,CAACC,EAAE,KAAK,IAAI,CAACC,EAAE,GAAG;EAC1F;EAEAE,SAASA,CAAA,EAAgC;IACvC,OAAO;MACLC,IAAI,EAAET,iBAAiB,CAACC,UAAU;MAClCE,EAAE,EAAE,IAAI,CAACA,EAAE;MACXC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXC,EAAE,EAAE,IAAI,CAACA,EAAE;MACXC,EAAE,EAAE,IAAI,CAACA;IACX,CAAC;EACH;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/index.js deleted file mode 100644 index 8cf78ebc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/index.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -import { CubicBezierEasing } from './cubicBezier'; -import { LinearEasing } from './linear'; -import { StepsEasing } from './steps'; -export function cubicBezier(x1, y1, x2, y2) { - return new CubicBezierEasing(x1, y1, x2, y2); -} -export function steps(stepsNumber, modifier = 'jump-end') { - return new StepsEasing(stepsNumber, modifier); -} -export function linear(...points) { - return new LinearEasing(points); -} -export { CubicBezierEasing, LinearEasing, StepsEasing }; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/index.js.map deleted file mode 100644 index 85c955ea..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CubicBezierEasing","LinearEasing","StepsEasing","cubicBezier","x1","y1","x2","y2","steps","stepsNumber","modifier","linear","points"],"sourceRoot":"../../../../src","sources":["css/easing/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iBAAiB,QAAQ,eAAe;AACjD,SAASC,YAAY,QAAQ,UAAU;AACvC,SAASC,WAAW,QAAQ,SAAS;AAGrC,OAAO,SAASC,WAAWA,CAACC,EAAU,EAAEC,EAAU,EAAEC,EAAU,EAAEC,EAAU,EAAE;EAC1E,OAAO,IAAIP,iBAAiB,CAACI,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,CAAC;AAC9C;AAEA,OAAO,SAASC,KAAKA,CACnBC,WAAmB,EACnBC,QAAuB,GAAG,UAAU,EACpC;EACA,OAAO,IAAIR,WAAW,CAACO,WAAW,EAAEC,QAAQ,CAAC;AAC/C;AAEA,OAAO,SAASC,MAAMA,CAAC,GAAGC,MAAsB,EAAE;EAChD,OAAO,IAAIX,YAAY,CAACW,MAAM,CAAC;AACjC;AAEA,SAASZ,iBAAiB,EAAEC,YAAY,EAAEC,WAAW","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/linear.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/linear.js deleted file mode 100644 index e19eb31d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/linear.js +++ /dev/null @@ -1,122 +0,0 @@ -'use strict'; - -import { logger, ReanimatedError } from '../../common'; -import { PERCENTAGE_REGEX } from '../constants'; -export const ERROR_MESSAGES = { - invalidPointsCount: () => `Invalid linear easing points count. There should be at least two points`, - invalidInputProgressValue: inputProgress => `Invalid input progress ${inputProgress} value, it should be a percentage between 0% and 100%` -}; -export const WARN_MESSAGES = { - inputProgressLessThanPrecedingPoint: (x, precedingX) => `Linear easing point x value ${x} is less than value of the preceding control point ${precedingX}. Value will be overridden by ${precedingX}` -}; -const parsePercentage = percentage => { - let result; - if (typeof percentage === 'number') { - result = percentage; - } else if (PERCENTAGE_REGEX.test(percentage)) { - result = parseFloat(percentage) / 100; - } - if (result === undefined || result < 0 || result > 1) { - throw new ReanimatedError(ERROR_MESSAGES.invalidInputProgressValue(percentage)); - } - return result; -}; -const extrapolate = (x, point1, point2) => { - const slope = (point2.y - point1.y) / (point2.x - point1.x); - return point1.y + slope * (x - point1.x); -}; -export class LinearEasing { - static easingName = 'linear'; - constructor(points) { - if (points.length < 2) { - throw new ReanimatedError(ERROR_MESSAGES.invalidPointsCount()); - } - this.points = points.map(p => Array.isArray(p) && p.length === 1 ? p[0] : p); - } - toString() { - return `${LinearEasing.easingName}(${this.points.map(point => Array.isArray(point) ? `[${point.map(p => typeof p === 'string' ? `"${p}"` : p).join(', ')}]` : point).join(', ')})`; - } - normalize() { - const points = this.canonicalize(); - - // Extrapolate points if the input progress of the first one is greater than 0 - // or the input progress of the last one is less than 1 - if (points[0].x > 0) { - points.unshift({ - x: 0, - y: extrapolate(0, points[0], points[1]) - }); - } - if (points[points.length - 1].x < 1) { - points.push({ - x: 1, - y: extrapolate(1, points[points.length - 2], points[points.length - 1]) - }); - } - return { - name: LinearEasing.easingName, - points - }; - } - canonicalize() { - const result = this.points.flatMap(point => Array.isArray(point) ? point.slice(1).map(x => ({ - x: parsePercentage(x), - y: point[0] - })) : [{ - y: point - }]); - - // 1. If the first control point lacks an input progress value, - // set its input progress value to 0. - if (result[0].x === undefined) { - result[0].x = 0; - } - - // 2.If the last control point lacks an input progress value, - // set its input progress value to 1. - if (result[result.length - 1].x === undefined) { - result[result.length - 1].x = 1; - } - - // 3. If any control point has an input progress value that is less - // than the input progress value of any preceding control point, set - // its input progress value to the largest input progress value of - // any preceding control point. - let maxPrecedingX = 0; - for (let i = 1; i < result.length - 1; i++) { - const x = result[i].x; - if (x !== undefined) { - if (x < maxPrecedingX) { - logger.warn(WARN_MESSAGES.inputProgressLessThanPrecedingPoint(x, maxPrecedingX)); - result[i].x = maxPrecedingX; - } else { - maxPrecedingX = x; - } - } - } - - // 4. If any control point still lacks an input progress value, then - // for each contiguous run of such control points, set their input - // progress values so that they are evenly spaced between the preceding - // and following control points with input progress values. - let precedingX = result[0].x; - let missingCount = 0; - for (let i = 1; i < result.length; i++) { - const x = result[i].x; - if (x === undefined) { - missingCount++; - continue; - } - if (missingCount > 0) { - const range = x - precedingX; - for (let j = 0; j < missingCount; j++) { - result[i - missingCount + j].x = precedingX + range * (j + 1) / (missingCount + 1); - } - } - precedingX = x; - missingCount = 0; - } - return result; - } -} -//# sourceMappingURL=linear.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/linear.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/linear.js.map deleted file mode 100644 index 4d664f1a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/linear.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","ReanimatedError","PERCENTAGE_REGEX","ERROR_MESSAGES","invalidPointsCount","invalidInputProgressValue","inputProgress","WARN_MESSAGES","inputProgressLessThanPrecedingPoint","x","precedingX","parsePercentage","percentage","result","test","parseFloat","undefined","extrapolate","point1","point2","slope","y","LinearEasing","easingName","constructor","points","length","map","p","Array","isArray","toString","point","join","normalize","canonicalize","unshift","push","name","flatMap","slice","maxPrecedingX","i","warn","missingCount","range","j"],"sourceRoot":"../../../../src","sources":["css/easing/linear.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,EAAEC,eAAe,QAAQ,cAAc;AACtD,SAASC,gBAAgB,QAAQ,cAAc;AAQ/C,OAAO,MAAMC,cAAc,GAAG;EAC5BC,kBAAkB,EAAEA,CAAA,KAClB,yEAAyE;EAC3EC,yBAAyB,EAAGC,aAA8B,IACxD,0BAA0BA,aAAa;AAC3C,CAAC;AAED,OAAO,MAAMC,aAAa,GAAG;EAC3BC,mCAAmC,EAAEA,CAACC,CAAS,EAAEC,UAAkB,KACjE,+BAA+BD,CAAC,sDAAsDC,UAAU,iCAAiCA,UAAU;AAC/I,CAAC;AAED,MAAMC,eAAe,GAAIC,UAA2B,IAAa;EAC/D,IAAIC,MAA0B;EAC9B,IAAI,OAAOD,UAAU,K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,EAAE;MACtC,MAAMjC,CAAC,GAAGI,MAAM,CAAC6B,CAAC,CAAC,CAACjC,CAAC;MAErB,IAAIA,CAAC,KAAKO,SAAS,EAAE;QACnB4B,YAAY,EAAE;QACd;MACF;MAEA,IAAIA,YAAY,GAAG,CAAC,EAAE;QACpB,MAAMC,KAAK,GAAGpC,CAAC,GAAGC,UAAU;QAE5B,KAAK,IAAIoC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,YAAY,EAAEE,CAAC,EAAE,EAAE;UACrCjC,MAAM,CAAC6B,CAAC,GAAGE,YAAY,GAAGE,CAAC,CAAC,CAACrC,CAAC,GAC5BC,UAAU,GAAImC,KAAK,IAAIC,CAAC,GAAG,CAAC,CAAC,IAAKF,YAAY,GAAG,CAAC,CAAC;QACvD;MACF;MAEAlC,UAAU,GAAGD,CAAC;MACdmC,YAAY,GAAG,CAAC;IAClB;IAEA,OAAO/B,MAAM;EACf;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/steps.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/steps.js deleted file mode 100644 index 27bb3ac5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/steps.js +++ /dev/null @@ -1,97 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../common'; -export const ERROR_MESSAGES = { - invalidStepsNumber: stepsNumber => `Steps easing function accepts only positive integers as numbers of steps, ${stepsNumber} isn't a one` -}; -export class StepsEasing { - static easingName = 'steps'; - constructor(stepsNumber, modifier = 'jump-end') { - if (stepsNumber <= 0 || stepsNumber % 1 !== 0) { - throw new ReanimatedError(ERROR_MESSAGES.invalidStepsNumber(stepsNumber)); - } - this.stepsNumber = stepsNumber; - this.modifier = modifier; - } - toString() { - return `${StepsEasing.easingName}(${this.stepsNumber}, ${this.modifier})`; - } - normalize() { - switch (this.modifier) { - case 'jump-start': - case 'start': - return this.jumpStart(); - case 'jump-end': - case 'end': - return this.jumpEnd(); - case 'jump-both': - return this.jumpBoth(); - case 'jump-none': - default: - if (this.stepsNumber === 1) { - // CSS animations standard returns here linear easing - return 'linear'; - } - return this.jumpNone(); - } - } - jumpNone() { - const points = []; - const div = this.stepsNumber - 1; - for (let i = 0; i < this.stepsNumber; i++) { - points.push({ - x: i / this.stepsNumber, - y: i / div - }); - } - return this.withName(points); - } - jumpStart() { - const points = []; - for (let i = 0; i < this.stepsNumber; i++) { - points.push({ - x: i / this.stepsNumber, - y: (i + 1) / this.stepsNumber - }); - } - return this.withName(points); - } - jumpEnd() { - const points = []; - for (let i = 0; i < this.stepsNumber; i++) { - points.push({ - x: i / this.stepsNumber, - y: i / this.stepsNumber - }); - } - // Final jump - points.push({ - x: 1, - y: 1 - }); - return this.withName(points); - } - jumpBoth() { - const points = []; - const div = this.stepsNumber + 1; - for (let i = 0; i < this.stepsNumber; i++) { - points.push({ - x: i / this.stepsNumber, - y: (i + 1) / div - }); - } - // Final jump - points.push({ - x: 1, - y: 1 - }); - return this.withName(points); - } - withName(points) { - return { - name: StepsEasing.easingName, - points - }; - } -} -//# sourceMappingURL=steps.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/steps.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/steps.js.map deleted file mode 100644 index 112ae104..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/steps.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","ERROR_MESSAGES","invalidStepsNumber","stepsNumber","StepsEasing","easingName","constructor","modifier","toString","normalize","jumpStart","jumpEnd","jumpBoth","jumpNone","points","div","i","push","x","y","withName","name"],"sourceRoot":"../../../../src","sources":["css/easing/steps.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,cAAc;AAQ9C,OAAO,MAAMC,cAAc,GAAG;EAC5BC,kBAAkB,EAAGC,WAAmB,IACtC,6EAA6EA,WAAW;AAC5F,CAAC;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,GAAG,IAAI,CAACb,WAAW;QAAEgB,CAAC,EAAE,CAACH,CAAC,GAAG,CAAC,IAAID;MAAI,CAAC,CAAC;IAC5D;IACA;IACAD,MAAM,CAACG,IAAI,CAAC;MAAEC,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAE,CAAC,CAAC;IAE3B,OAAO,IAAI,CAACC,QAAQ,CAACN,MAAM,CAAC;EAC9B;EAEQM,QAAQA,CAACN,MAAe,EAAE;IAChC,OAAO;MACLO,IAAI,EAAEjB,WAAW,CAACC,UAAU;MAC5BS;IACF,CAAC;EACH;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/types.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/types.js deleted file mode 100644 index ccadfcf8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/types.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/types.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/types.js.map deleted file mode 100644 index 4a2aec07..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/easing/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/easing/types.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/index.js deleted file mode 100644 index 54426db1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export { createAnimatedComponent as createCSSAnimatedComponent } from './component'; -export { cubicBezier, linear, steps } from './easing'; -export * from './stylesheet'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/index.js.map deleted file mode 100644 index 1c0c4122..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createAnimatedComponent","createCSSAnimatedComponent","cubicBezier","linear","steps"],"sourceRoot":"../../../src","sources":["css/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,uBAAuB,IAAIC,0BAA0B,QAAQ,aAAa;AACnF,SAASC,WAAW,EAAEC,MAAM,EAAEC,KAAK,QAAQ,UAAU;AACrD,cAAc,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/CSSKeyframesRuleBase.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/CSSKeyframesRuleBase.js deleted file mode 100644 index ce05f382..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/CSSKeyframesRuleBase.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -import { ANIMATION_NAME_PREFIX } from '../constants'; -export default class CSSKeyframesRuleBase { - static currentAnimationID = 0; - - // TODO - change cssRules prop to match specification - - constructor(keyframes, cssText) { - this.cssRules_ = keyframes; - this.cssText_ = cssText ?? JSON.stringify(keyframes); - this.length_ = Object.keys(keyframes).length; - this.name_ = CSSKeyframesRuleBase.generateNextKeyframeName(); - } - get cssRules() { - return this.cssRules_; - } - get cssText() { - return this.cssText_; - } - get length() { - return this.length_; - } - get name() { - return this.name_; - } - static generateNextKeyframeName() { - return `${ANIMATION_NAME_PREFIX}${CSSKeyframesRuleBase.currentAnimationID++}`; - } -} -//# sourceMappingURL=CSSKeyframesRuleBase.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/CSSKeyframesRuleBase.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/CSSKeyframesRuleBase.js.map deleted file mode 100644 index 1aff2a66..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/CSSKeyframesRuleBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ANIMATION_NAME_PREFIX","CSSKeyframesRuleBase","currentAnimationID","constructor","keyframes","cssText","cssRules_","cssText_","JSON","stringify","length_","Object","keys","length","name_","generateNextKeyframeName","cssRules","name"],"sourceRoot":"../../../../src","sources":["css/models/CSSKeyframesRuleBase.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,qBAAqB,QAAQ,cAAc;AAOpD,eAAe,MAAeC,oBAAoB,CAElD;EACE,OAAeC,kBAAkB,GAAG,CAAC;;EAErC;;EAMAC,WAAWA,CAACC,SAAmC,EAAEC,OAAgB,EAAE;IACjE,IAAI,CAACC,SAAS,GAAGF,SAAS;IAC1B,IAAI,CAACG,QAAQ,GAAGF,OAAO,IAAIG,IAAI,CAACC,SAAS,CAACL,SAAS,CAAC;IACpD,IAAI,CAACM,OAAO,GAAGC,MAAM,CAACC,IAAI,CAACR,SAAS,CAAC,CAACS,MAAM;IAC5C,IAAI,CAACC,KAAK,GAAGb,oBAAoB,CAACc,wBAAwB,CAAC,CAAC;EAC9D;EAEA,IAAIC,QAAQA,CAAA,EAAG;IACb,OAAO,IAAI,CAACV,SAAS;EACvB;EAEA,IAAID,OAAOA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACE,QAAQ;EACtB;EAEA,IAAIM,MAAMA,CAAA,EAAG;IACX,OAAO,IAAI,CAACH,OAAO;EACrB;EAEA,IAAIO,IAAIA,CAAA,EAAG;IACT,OAAO,IAAI,CAACH,KAAK;EACnB;EAEA,OAAOC,wBAAwBA,CAAA,EAAG;IAChC,OAAO,GAAGf,qBAAqB,GAAGC,oBAAoB,CAACC,kBAAkB,EAAE,EAAE;EAC/E;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/index.js deleted file mode 100644 index aee15efb..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { default as CSSKeyframesRuleBase } from './CSSKeyframesRuleBase'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/index.js.map deleted file mode 100644 index 6be1dc35..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/models/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","CSSKeyframesRuleBase"],"sourceRoot":"../../../../src","sources":["css/models/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,IAAIC,oBAAoB,QAAQ,wBAAwB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/index.js deleted file mode 100644 index 5013e434..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export * from './keyframes'; -export * from './managers'; -export * from './normalization'; -export * from './proxy'; -export * from './registry'; -export * from './style'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/index.js.map deleted file mode 100644 index 829a7700..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/native/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,iBAAiB;AAC/B,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,SAAS","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRegistry.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRegistry.js deleted file mode 100644 index 6f7f9135..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRegistry.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; - -import { registerCSSKeyframes, unregisterCSSKeyframes } from '../proxy'; -/** - * This class is responsible for managing the registry of CSS animation - * keyframes. It keeps track of views that use specific animations and handles - * native-side registration. Animation keyframes are registered on the native - * side only when used for the first time and unregistered when removed from the - * last view that uses them. - */ -class CSSKeyframesRegistry { - cssTextToNameMap_ = new Map(); - nameToKeyframes_ = new Map(); - get(nameOrCssText) { - const result = this.nameToKeyframes_.get(nameOrCssText); - if (result) { - return result.keyframesRule; - } - const animationName = this.cssTextToNameMap_.get(nameOrCssText); - if (animationName) { - return this.nameToKeyframes_.get(animationName)?.keyframesRule; - } - } - add(keyframesRule, viewName, viewTag) { - const existingKeyframesEntry = this.nameToKeyframes_.get(keyframesRule.name); - const existingComponentEntry = existingKeyframesEntry?.usedBy[viewName]; - if (existingComponentEntry) { - // Just add the view tag to the existing component entry if keyframes - // for the specific animation and component name are already registered - existingComponentEntry.add(viewTag); - return; - } - - // Otherwise, we have to register keyframes preprocessed for the specific - // component name - if (existingKeyframesEntry) { - existingKeyframesEntry.usedBy[viewName] = new Set([viewTag]); - } else { - this.nameToKeyframes_.set(keyframesRule.name, { - keyframesRule, - usedBy: { - [viewName]: new Set([viewTag]) - } - }); - } - - // Store the keyframes to name mapping in order to reuse the same - // animation name when possible (when the same inline keyframes object - // is used) - this.cssTextToNameMap_.set(keyframesRule.cssText, keyframesRule.name); - - // Register animation keyframes only if they are not already registered - // (when they are added for the first time) - registerCSSKeyframes(keyframesRule.name, viewName, keyframesRule.getNormalizedKeyframesConfig(viewName)); - } - remove(animationName, viewName, viewTag) { - const keyframesEntry = this.nameToKeyframes_.get(animationName); - if (!keyframesEntry) { - return; - } - const componentEntry = keyframesEntry.usedBy[viewName]; - componentEntry.delete(viewTag); - if (componentEntry.size === 0) { - delete keyframesEntry.usedBy[viewName]; - unregisterCSSKeyframes(animationName, viewName); - } - if (Object.keys(keyframesEntry.usedBy).length === 0) { - this.nameToKeyframes_.delete(animationName); - this.cssTextToNameMap_.delete(keyframesEntry.keyframesRule.cssText); - } - } - clear() { - this.nameToKeyframes_.clear(); - this.cssTextToNameMap_.clear(); - } -} -const cssKeyframesRegistry = new CSSKeyframesRegistry(); -export default cssKeyframesRegistry; -//# sourceMappingURL=CSSKeyframesRegistry.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRegistry.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRegistry.js.map deleted file mode 100644 index c127875d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRegistry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["registerCSSKeyframes","unregisterCSSKeyframes","CSSKeyframesRegistry","cssTextToNameMap_","Map","nameToKeyframes_","get","nameOrCssText","result","keyframesRule","animationName","add","viewName","viewTag","existingKeyframesEntry","name","existingComponentEntry","usedBy","Set","set","cssText","getNormalizedKeyframesConfig","remove","keyframesEntry","componentEntry","delete","size","Object","keys","length","clear","cssKeyframesRegistry"],"sourceRoot":"../../../../../src","sources":["css/native/keyframes/CSSKeyframesRegistry.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,EAAEC,sBAAsB,QAAQ,UAAU;AAQvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,oBAAoB,CAAC;EACRC,iBAAiB,GAAwB,IAAIC,GAAG,CAAC,CAAC;EAClDC,gBAAgB,GAAgC,IAAID,GAAG,CAAC,CAAC;EAE1EE,GAAGA,CAACC,aAAqB,EAAE;IACzB,MAAMC,MAAM,GAAG,IAAI,CAACH,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,EAAEC,OAAe,EAAE;IAC/D,MAAMU,cAAc,GAAG,IAAI,CAAClB,gBAAgB,CAACC,GAAG,CAACI,aAAa,CAAC;IAC/D,IAAI,CAACa,cAAc,EAAE;MACnB;IACF;IAEA,MAAMC,cAAc,GAAGD,cAAc,CAACN,MAAM,CAACL,QAAQ,CAAC;IACtDY,cAAc,CAACC,MAAM,CAACZ,OAAO,CAAC;IAE9B,IAAIW,cAAc,CAACE,IAAI,KAAK,CAAC,EAAE;MAC7B,OAAOH,cAAc,CAACN,MAAM,CAACL,QAAQ,CAAC;MACtCX,sBAAsB,CAACS,aAAa,EAAEE,QAAQ,CAAC;IACjD;IAEA,IAAIe,MAAM,CAACC,IAAI,CAACL,cAAc,CAACN,MAAM,CAAC,CAACY,MAAM,KAAK,CAAC,EAAE;MACnD,IAAI,CAACxB,gBAAgB,CAACoB,MAAM,CAACf,aAAa,CAAC;MAC3C,IAAI,CAACP,iBAAiB,CAACsB,MAAM,CAACF,cAAc,CAACd,aAAa,CAACW,OAAO,CAAC;IACrE;EACF;EAEAU,KAAKA,CAAA,EAAG;IACN,IAAI,CAACzB,gBAAgB,CAACyB,KAAK,CAAC,CAAC;IAC7B,IAAI,CAAC3B,iBAAiB,CAAC2B,KAAK,CAAC,CAAC;EAChC;AACF;AAEA,MAAMC,oBAAoB,GAAG,IAAI7B,oBAAoB,CAAC,CAAC;AAEvD,eAAe6B,oBAAoB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js deleted file mode 100644 index ae3ff7d3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -import { CSSKeyframesRuleBase } from '../../models'; -import { normalizeAnimationKeyframes } from '../normalization'; -import { getStyleBuilder } from '../registry'; -export default class CSSKeyframesRuleImpl extends CSSKeyframesRuleBase { - normalizedKeyframesCache_ = {}; - constructor(keyframes, cssText) { - super(keyframes, cssText); - } - getNormalizedKeyframesConfig(viewName) { - if (!this.normalizedKeyframesCache_[viewName]) { - this.normalizedKeyframesCache_[viewName] = normalizeAnimationKeyframes(this.cssRules, getStyleBuilder(viewName)); - } - return this.normalizedKeyframesCache_[viewName]; - } -} -//# sourceMappingURL=CSSKeyframesRuleImpl.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js.map deleted file mode 100644 index 70ab760f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CSSKeyframesRuleBase","normalizeAnimationKeyframes","getStyleBuilder","CSSKeyframesRuleImpl","normalizedKeyframesCache_","constructor","keyframes","cssText","getNormalizedKeyframesConfig","viewName","cssRules"],"sourceRoot":"../../../../../src","sources":["css/native/keyframes/CSSKeyframesRuleImpl.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,QAAQ,cAAc;AAEnD,SAASC,2BAA2B,QAAQ,kBAAkB;AAC9D,SAASC,eAAe,QAAQ,aAAa;AAG7C,eAAe,MAAMC,oBAAoB,SAE/BH,oBAAoB,CAAI;EACfI,yBAAyB,GAGtC,CAAC,CAAC;EAENC,WAAWA,CAACC,SAAmC,EAAEC,OAAgB,EAAE;IACjE,KAAK,CAACD,SAAS,EAAEC,OAAO,CAAC;EAC3B;EAEAC,4BAA4BA,CAC1BC,QAAgB,EACuB;IACvC,IAAI,CAAC,IAAI,CAACL,yBAAyB,CAACK,QAAQ,CAAC,EAAE;MAC7C,IAAI,CAACL,yBAAyB,CAACK,QAAQ,CAAC,GAAGR,2BAA2B,CACpE,IAAI,CAACS,QAAQ,EACbR,eAAe,CAACO,QAAQ,CAC1B,CAAC;IACH;IAEA,OAAO,IAAI,CAACL,yBAAyB,CAACK,QAAQ,CAAC;EACjD;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/index.js deleted file mode 100644 index 0fb700da..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -export { default as cssKeyframesRegistry } from './CSSKeyframesRegistry'; -export { default as CSSKeyframesRuleImpl } from './CSSKeyframesRuleImpl'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/index.js.map deleted file mode 100644 index e4fb8d1d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/keyframes/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","cssKeyframesRegistry","CSSKeyframesRuleImpl"],"sourceRoot":"../../../../../src","sources":["css/native/keyframes/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,IAAIC,oBAAoB,QAAQ,wBAAwB;AACxE,SAASD,OAAO,IAAIE,oBAAoB,QAAQ,wBAAwB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSAnimationsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSAnimationsManager.js deleted file mode 100644 index 7279e73f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSAnimationsManager.js +++ /dev/null @@ -1,160 +0,0 @@ -'use strict'; - -import { cssKeyframesRegistry, CSSKeyframesRuleImpl } from '../keyframes'; -import { createSingleCSSAnimationProperties, getAnimationSettingsUpdates, normalizeSingleCSSAnimationSettings } from '../normalization'; -import { applyCSSAnimations, unregisterCSSAnimations } from '../proxy'; -export default class CSSAnimationsManager { - attachedAnimations = []; - constructor(shadowNodeWrapper, viewName, viewTag) { - this.shadowNodeWrapper = shadowNodeWrapper; - this.viewName = viewName; - this.viewTag = viewTag; - } - update(animationProperties) { - if (!animationProperties) { - this.detach(); - return; - } - const processedAnimations = this.processAnimations(animationProperties); - this.registerKeyframesUsage(processedAnimations); - const animationUpdates = this.getAnimationUpdates(processedAnimations); - this.attachedAnimations = processedAnimations; - if (animationUpdates) { - if (animationUpdates.animationNames && animationUpdates.animationNames.length === 0) { - this.detach(); - return; - } - applyCSSAnimations(this.shadowNodeWrapper, animationUpdates); - } - } - unmountCleanup() { - this.unregisterKeyframesUsage(); - } - detach() { - if (this.attachedAnimations.length > 0) { - unregisterCSSAnimations(this.viewTag); - this.unregisterKeyframesUsage(); - this.attachedAnimations = []; - } - } - registerKeyframesUsage(processedAnimations) { - const newAnimationNames = new Set(); - - // Register keyframes for all new animations - processedAnimations.forEach(({ - keyframesRule - }) => { - cssKeyframesRegistry.add(keyframesRule, this.viewName, this.viewTag); - newAnimationNames.add(keyframesRule.name); - }); - - // Unregister keyframes for all old animations that are no longer attached - // to the view - this.attachedAnimations.forEach(({ - keyframesRule: { - name - } - }) => { - if (!newAnimationNames.has(name)) { - cssKeyframesRegistry.remove(name, this.viewName, this.viewTag); - } - }); - } - unregisterKeyframesUsage() { - // Unregister keyframes usage by the view (it is necessary to clean up - // keyframes from the CPP registry once all views that use them are unmounted) - this.attachedAnimations.forEach(({ - keyframesRule: { - name - } - }) => { - cssKeyframesRegistry.remove(name, this.viewName, this.viewTag); - }); - } - processAnimations(animationProperties) { - const singleAnimationPropertiesArray = createSingleCSSAnimationProperties(animationProperties); - const processedAnimations = singleAnimationPropertiesArray.map(properties => { - const keyframes = properties.animationName; - let keyframesRule; - if (keyframes instanceof CSSKeyframesRuleImpl) { - // If the instance of the CSSKeyframesRule class was passed, we can just compare - // references to the instance (css.keyframes() call should be memoized in order - // to preserve the same animation. If used inline, it will restart the animation - // on every component re-render) - keyframesRule = keyframes; - } else { - // If the keyframes are not an instance of the CSSKeyframesRule class (e.g. someone - // passes a keyframes object inline in the component's style without using css.keyframes() - // function), we don't want to restart the animation on every component re-render. - // In this case, we need to check if the animation with the same keyframes is already - // registered in the registry. If it is, we can just use the existing keyframes rule. - // Otherwise, we need to create a new keyframes rule. - const cssText = JSON.stringify(keyframes); - keyframesRule = cssKeyframesRegistry.get(cssText) ?? new CSSKeyframesRuleImpl(keyframes, cssText); - } - return { - normalizedSettings: normalizeSingleCSSAnimationSettings(properties), - keyframesRule - }; - }); - return processedAnimations; - } - buildAnimationsMap(animations) { - // Iterate over attached animations from last to first for faster pop from - // the end of the array when removing used animations - return animations.reduceRight((acc, animation) => { - const name = animation.keyframesRule.name; - if (!acc[name]) { - acc[name] = [animation]; - } else { - acc[name].push(animation); - } - return acc; - }, {}); - } - getAnimationUpdates(processedAnimations) { - const newAnimationSettings = {}; - const settingsUpdates = {}; - let animationsArrayChanged = this.attachedAnimations.length !== processedAnimations.length; - let hasNewAnimations = false; - let hasSettingsUpdates = false; - const oldAnimations = this.buildAnimationsMap(this.attachedAnimations); - processedAnimations.forEach(({ - keyframesRule, - normalizedSettings - }, i) => { - const oldAnimation = oldAnimations[keyframesRule.name]?.pop(); - if (!oldAnimation) { - hasNewAnimations = true; - animationsArrayChanged = true; - newAnimationSettings[i] = normalizedSettings; - return; - } - const updates = getAnimationSettingsUpdates(oldAnimation.normalizedSettings, normalizedSettings); - if (Object.keys(updates).length > 0) { - hasSettingsUpdates = true; - settingsUpdates[i] = updates; - } - if (oldAnimation.keyframesRule.name !== keyframesRule.name) { - animationsArrayChanged = true; - } - }); - const result = {}; - if (animationsArrayChanged) { - result.animationNames = processedAnimations.map(({ - keyframesRule - }) => keyframesRule.name); - } - if (hasNewAnimations) { - result.newAnimationSettings = newAnimationSettings; - } - if (hasSettingsUpdates) { - result.settingsUpdates = settingsUpdates; - } - if (hasNewAnimations || hasSettingsUpdates || animationsArrayChanged) { - return result; - } - return null; - } -} -//# sourceMappingURL=CSSAnimationsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSAnimationsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSAnimationsManager.js.map deleted file mode 100644 index f81a3a35..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSAnimationsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["cssKeyframesRegistry","CSSKeyframesRuleImpl","createSingleCSSAnimationProperties","getAnimationSettingsUpdates","normalizeSingleCSSAnimationSettings","applyCSSAnimations","unregisterCSSAnimations","CSSAnimationsManager","attachedAnimations","constructor","shadowNodeWrapper","viewName","viewTag","update","animationProperties","detach","processedAnimations","processAnimations","registerKeyframesUsage","animationUpdates","getAnimationUpdates","animationNames","length","unmountCleanup","unregisterKeyframesUsage","newAnimationNames","Set","forEach","keyframesRule","add","name","has","remove","singleAnimationPropertiesArray","map","properties","keyframes","animationName","cssText","JSON","stringify","get","normalizedSettings","buildAnimationsMap","animations","reduceRight","acc","animation","push","newAnimationSettings","settingsUpdates","animationsArrayChanged","hasNewAnimations","hasSettingsUpdates","oldAnimations","i","oldAnimation","pop","updates","Object","keys","result"],"sourceRoot":"../../../../../src","sources":["css/native/managers/CSSAnimationsManager.ts"],"mappings":"AAAA,YAAY;;AAOZ,SAASA,oBAAoB,EAAEC,oBAAoB,QAAQ,cAAc;AACzE,SACEC,kCAAkC,EAClCC,2BAA2B,EAC3BC,mCAAmC,QAC9B,kBAAkB;AACzB,SAASC,kBAAkB,EAAEC,uBAAuB,QAAQ,UAAU;AAWtE,eAAe,MAAMC,oBAAoB,CAAkC;EAKjEC,kBAAkB,GAAyB,EAAE;EAErDC,WAAWA,CACTC,iBAAoC,EACpCC,QAAgB,EAChBC,OAAe,EACf;IACA,I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GAAGb,kBAAkB;QAC5C;MACF;MAEA,MAAMgB,OAAO,GAAGvD,2BAA2B,CACzCqD,YAAY,CAACd,kBAAkB,EAC/BA,kBACF,CAAC;MAED,IAAIiB,MAAM,CAACC,IAAI,CAACF,OAAO,CAAC,CAACpC,MAAM,GAAG,CAAC,EAAE;QACnC+B,kBAAkB,GAAG,IAAI;QACzBH,eAAe,CAACK,CAAC,CAAC,GAAGG,OAAO;MAC9B;MAEA,IAAIF,YAAY,CAAC5B,aAAa,CAACE,IAAI,KAAKF,aAAa,CAACE,IAAI,EAAE;QAC1DqB,sBAAsB,GAAG,IAAI;MAC/B;IACF,CAAC,CAAC;IAEF,MAAMU,MAA2B,GAAG,CAAC,CAAC;IACtC,IAAIV,sBAAsB,EAAE;MAC1BU,MAAM,CAACxC,cAAc,GAAGL,mBAAmB,CAACkB,GAAG,CAC7C,CAAC;QAAEN;MAAc,CAAC,KAAKA,aAAa,CAACE,IACvC,CAAC;IACH;IACA,IAAIsB,gBAAgB,EAAE;MACpBS,MAAM,CAACZ,oBAAoB,GAAGA,oBAAoB;IACpD;IACA,IAAII,kBAAkB,EAAE;MACtBQ,MAAM,CAACX,eAAe,GAAGA,eAAe;IAC1C;IAEA,IAAIE,gBAAgB,IAAIC,kBAAkB,IAAIF,sBAAsB,EAAE;MACpE,OAAOU,MAAM;IACf;IAEA,OAAO,IAAI;EACb;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSManager.js deleted file mode 100644 index 08f254ce..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSManager.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../common'; -import { filterCSSAndStyleProperties } from '../../utils'; -import { setViewStyle } from '../proxy'; -import { getStyleBuilder, hasStyleBuilder } from '../registry'; -import CSSAnimationsManager from './CSSAnimationsManager'; -import CSSTransitionsManager from './CSSTransitionsManager'; -export default class CSSManager { - styleBuilder = null; - isFirstUpdate = true; - constructor({ - shadowNodeWrapper, - viewTag, - viewName = 'RCTView' - }) { - const tag = this.viewTag = viewTag; - const wrapper = shadowNodeWrapper; - this.viewName = viewName; - this.styleBuilder = hasStyleBuilder(viewName) ? getStyleBuilder(viewName) : null; - this.cssAnimationsManager = new CSSAnimationsManager(wrapper, viewName, tag); - this.cssTransitionsManager = new CSSTransitionsManager(wrapper, tag); - } - update(style) { - const [animationProperties, transitionProperties, filteredStyle] = filterCSSAndStyleProperties(style); - if (!this.styleBuilder && (animationProperties || transitionProperties)) { - throw new ReanimatedError(`Tried to apply CSS animations to ${this.viewName} which is not supported`); - } - const normalizedStyle = this.styleBuilder?.buildFrom(filteredStyle); - - // If the update is called during the first css style update, we won't - // trigger CSS transitions and set styles before attaching CSS transitions - if (this.isFirstUpdate && normalizedStyle) { - setViewStyle(this.viewTag, normalizedStyle); - } - this.cssTransitionsManager.update(transitionProperties); - this.cssAnimationsManager.update(animationProperties); - - // If the current update is not the fist one, we want to update CSS - // animations and transitions first and update the style then to make - // sure that the new transition is fired with new settings (like duration) - if (!this.isFirstUpdate && normalizedStyle) { - setViewStyle(this.viewTag, normalizedStyle); - } - this.isFirstUpdate = false; - } - unmountCleanup() { - this.cssAnimationsManager.unmountCleanup(); - this.cssTransitionsManager.unmountCleanup(); - } -} -//# sourceMappingURL=CSSManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSManager.js.map deleted file mode 100644 index 80108ed4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","filterCSSAndStyleProperties","setViewStyle","getStyleBuilder","hasStyleBuilder","CSSAnimationsManager","CSSTransitionsManager","CSSManager","styleBuilder","isFirstUpdate","constructor","shadowNodeWrapper","viewTag","viewName","tag","wrapper","cssAnimationsManager","cssTransitionsManager","update","style","animationProperties","transitionProperties","filteredStyle","normalizedStyle","buildFrom","unmountCleanup"],"sourceRoot":"../../../../../src","sources":["css/native/managers/CSSManager.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,iBAAiB;AAKjD,SAASC,2BAA2B,QAAQ,aAAa;AACzD,SAASC,YAAY,QAAQ,UAAU;AACvC,SAASC,eAAe,EAAEC,eAAe,QAAQ,aAAa;AAE9D,OAAOC,oBAAoB,MAAM,wBAAwB;AACzD,OAAOC,qBAAqB,MAAM,yBAAyB;AAE3D,eAAe,MAAMC,UAAU,CAAwB;EAKpCC,YAAY,GAAmC,IAAI;EAC5DC,aAAa,GAAY,IAAI;EAErCC,WAAWA,CAAC;IAAEC,iBAAiB;IAAEC,OAAO;IAAEC,QAAQ,GAAG;EAAoB,CAAC,EAAE;IAC1E,MAAMC,GAAG,GAAI,IAAI,CAACF,OAAO,GAAGA,OAAkB;IAC9C,MAAMG,OAAO,GAAGJ,iBAAsC;IAEtD,IAAI,CAACE,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACL,YAAY,GAAGJ,eAAe,CAACS,QAAQ,CAAC,GACzCV,eAAe,CAACU,QAAQ,CAAC,GACzB,IAAI;IACR,IAAI,CAACG,oBAAoB,GAAG,IAAIX,oBAAoB,CAClDU,OAAO,EACPF,QAAQ,EACRC,GACF,CAAC;IACD,IAAI,CAACG,qBAAqB,GAAG,IAAIX,qBAAqB,CAACS,OAAO,EAAED,GAAG,CAAC;EACtE;EAEAI,MAAMA,CAACC,KAAe,EAAQ;IAC5B,MAAM,CAACC,mBAAmB,EAAEC,oBAAoB,EAAEC,aAAa,CAAC,GAC9DrB,2BAA2B,CAACkB,KAAK,CAAC;IAEpC,IAAI,CAAC,IAAI,CAACX,YAAY,KAAKY,mBAAmB,IAAIC,oBAAoB,CAAC,EAAE;MACvE,MAAM,IAAIrB,eAAe,CACvB,oCAAoC,IAAI,CAACa,QAAQ,yBACnD,CAAC;IACH;IAEA,MAAMU,eAAe,GAAG,IAAI,CAACf,YAAY,EAAEgB,SAAS,CAACF,aAAa,CAAC;;IAEnE;IACA;IACA,IAAI,IAAI,CAACb,aAAa,IAAIc,eAAe,EAAE;MACzCrB,YAAY,CAAC,IAAI,CAACU,OAAO,EAAEW,eAAe,CAAC;IAC7C;IAEA,IAAI,CAACN,qBAAqB,CAACC,MAAM,CAACG,oBAAoB,CAAC;IACvD,IAAI,CAACL,oBAAoB,CAACE,MAAM,CAACE,mBAAmB,CAAC;;IAErD;IACA;IACA;IACA,IAAI,CAAC,IAAI,CAACX,aAAa,IAAIc,eAAe,EAAE;MAC1CrB,YAAY,CAAC,IAAI,CAACU,OAAO,EAAEW,eAAe,CAAC;IAC7C;IAEA,IAAI,CAACd,aAAa,GAAG,KAAK;EAC5B;EAEAgB,cAAcA,CAAA,EAAS;IACrB,IAAI,CAACT,oBAAoB,CAACS,cAAc,CAAC,CAAC;IAC1C,IAAI,CAACR,qBAAqB,CAACQ,cAAc,CAAC,CAAC;EAC7C;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSTransitionsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSTransitionsManager.js deleted file mode 100644 index 45f1c62a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSTransitionsManager.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -import { getNormalizedCSSTransitionConfigUpdates, normalizeCSSTransitionProperties } from '../normalization'; -import { registerCSSTransition, unregisterCSSTransition, updateCSSTransition } from '../proxy'; -export default class CSSTransitionsManager { - transitionConfig = null; - constructor(shadowNodeWrapper, viewTag) { - this.viewTag = viewTag; - this.shadowNodeWrapper = shadowNodeWrapper; - } - update(transitionProperties) { - if (!transitionProperties) { - this.detach(); - return; - } - const transitionConfig = normalizeCSSTransitionProperties(transitionProperties); - if (!transitionConfig) { - this.detach(); - return; - } - if (this.transitionConfig) { - const configUpdates = getNormalizedCSSTransitionConfigUpdates(this.transitionConfig, transitionConfig); - if (Object.keys(configUpdates).length > 0) { - this.transitionConfig = transitionConfig; - updateCSSTransition(this.viewTag, configUpdates); - } - } else { - this.attachTransition(transitionConfig); - } - } - unmountCleanup() { - // noop - } - detach() { - if (this.transitionConfig) { - unregisterCSSTransition(this.viewTag); - this.transitionConfig = null; - } - } - attachTransition(transitionConfig) { - if (!this.transitionConfig) { - registerCSSTransition(this.shadowNodeWrapper, transitionConfig); - this.transitionConfig = transitionConfig; - } - } -} -//# sourceMappingURL=CSSTransitionsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSTransitionsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSTransitionsManager.js.map deleted file mode 100644 index 77a890b1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/CSSTransitionsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["getNormalizedCSSTransitionConfigUpdates","normalizeCSSTransitionProperties","registerCSSTransition","unregisterCSSTransition","updateCSSTransition","CSSTransitionsManager","transitionConfig","constructor","shadowNodeWrapper","viewTag","update","transitionProperties","detach","configUpdates","Object","keys","length","attachTransition","unmountCleanup"],"sourceRoot":"../../../../../src","sources":["css/native/managers/CSSTransitionsManager.ts"],"mappings":"AAAA,YAAY;;AAMZ,SACEA,uCAAuC,EACvCC,gCAAgC,QAC3B,kBAAkB;AACzB,SACEC,qBAAqB,EACrBC,uBAAuB,EACvBC,mBAAmB,QACd,UAAU;AAGjB,eAAe,MAAMC,qBAAqB,CAAmC;EAInEC,gBAAgB,GAAyC,IAAI;EAErEC,WAAWA,CAACC,iBAAoC,EAAEC,OAAe,EAAE;IACjE,IAAI,CAACA,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACD,iBAAiB,GAAGA,iBAAiB;EAC5C;EAEAE,MAAMA,CAACC,oBAAoD,EAAQ;IACjE,IAAI,CAACA,oBAAoB,EAAE;MACzB,IAAI,CAACC,MAAM,CAAC,CAAC;MACb;IACF;IAEA,MAAMN,gBAAgB,GACpBL,gCAAgC,CAACU,oBAAoB,CAAC;IACxD,IAAI,CAACL,gBAAgB,EAAE;MACrB,IAAI,CAACM,MAAM,CAAC,CAAC;MACb;IACF;IAEA,IAAI,IAAI,CAACN,gBAAgB,EAAE;MACzB,MAAMO,aAAa,GAAGb,uCAAuC,CAC3D,IAAI,CAACM,gBAAgB,EACrBA,gBACF,CAAC;MAED,IAAIQ,MAAM,CAACC,IAAI,CAACF,aAAa,CAAC,CAACG,MAAM,GAAG,CAAC,EAAE;QACzC,IAAI,CAACV,gBAAgB,GAAGA,gBAAgB;QACxCF,mBAAmB,CAAC,IAAI,CAACK,OAAO,EAAEI,aAAa,CAAC;MAClD;IACF,CAAC,MAAM;MACL,IAAI,CAACI,gBAAgB,CAACX,gBAAgB,CAAC;IACzC;EACF;EAEAY,cAAcA,CAAA,EAAS;IACrB;EAAA;EAGMN,MAAMA,CAAA,EAAG;IACf,IAAI,IAAI,CAACN,gBAAgB,EAAE;MACzBH,uBAAuB,CAAC,IAAI,CAACM,OAAO,CAAC;MACrC,IAAI,CAACH,gBAAgB,GAAG,IAAI;IAC9B;EACF;EAEQW,gBAAgBA,CAACX,gBAA+C,EAAE;IACxE,IAAI,CAAC,IAAI,CAACA,gBAAgB,EAAE;MAC1BJ,qBAAqB,CAAC,IAAI,CAACM,iBAAiB,EAAEF,gBAAgB,CAAC;MAC/D,IAAI,CAACA,gBAAgB,GAAGA,gBAAgB;IAC1C;EACF;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/index.js deleted file mode 100644 index 0c2b2acc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { default as CSSManager } from './CSSManager'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/index.js.map deleted file mode 100644 index ebcafd92..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/managers/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","CSSManager"],"sourceRoot":"../../../../../src","sources":["css/native/managers/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,IAAIC,UAAU,QAAQ,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/constants.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/constants.js deleted file mode 100644 index 2dc1470b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/constants.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export const VALID_ANIMATION_DIRECTIONS = new Set(['normal', 'reverse', 'alternate', 'alternate-reverse']); -export const VALID_FILL_MODES = new Set(['none', 'forwards', 'backwards', 'both']); -export const VALID_PLAY_STATES = new Set(['running', 'paused']); -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/constants.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/constants.js.map deleted file mode 100644 index b46f1897..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["VALID_ANIMATION_DIRECTIONS","Set","VALID_FILL_MODES","VALID_PLAY_STATES"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/animation/constants.ts"],"mappings":"AAAA,YAAY;;AAOZ,OAAO,MAAMA,0BAA0B,GAAG,IAAIC,GAAG,CAAwB,CACvE,QAAQ,EACR,SAAS,EACT,WAAW,EACX,mBAAmB,CACpB,CAAC;AAEF,OAAO,MAAMC,gBAAgB,GAAG,IAAID,GAAG,CAAuB,CAC5D,MAAM,EACN,UAAU,EACV,WAAW,EACX,MAAM,CACP,CAAC;AAEF,OAAO,MAAME,iBAAiB,GAAG,IAAIF,GAAG,CAAwB,CAC9D,SAAS,EACT,QAAQ,CACT,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/index.js deleted file mode 100644 index cf00bec4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -export { normalizeAnimationKeyframes } from './keyframes'; -export { createSingleCSSAnimationProperties } from './properties'; -export { getAnimationSettingsUpdates } from './settings'; -export { normalizeSingleCSSAnimationSettings } from './settings'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/index.js.map deleted file mode 100644 index 1904eaf9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["normalizeAnimationKeyframes","createSingleCSSAnimationProperties","getAnimationSettingsUpdates","normalizeSingleCSSAnimationSettings"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/animation/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,2BAA2B,QAAQ,aAAa;AACzD,SAASC,kCAAkC,QAAQ,cAAc;AACjE,SAASC,2BAA2B,QAAQ,YAAY;AACxD,SAASC,mCAAmC,QAAQ,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/keyframes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/keyframes.js deleted file mode 100644 index 094e9a33..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/keyframes.js +++ /dev/null @@ -1,105 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { PERCENTAGE_REGEX } from '../../../constants'; -import { isDefined, isNumber } from '../../../utils'; -import { normalizeTimingFunction } from '../common'; -export const ERROR_MESSAGES = { - invalidOffsetType: selector => `Invalid keyframe selector "${selector}". Only numbers, percentages, "from", and "to" are supported.`, - invalidOffsetRange: selector => `Invalid keyframe selector "${selector}". Expected a number between 0 and 1 or a percentage between 0% and 100%.` -}; -function normalizeKeyframeSelector(keyframeSelector) { - const selectors = typeof keyframeSelector === 'string' ? keyframeSelector.split(',').map(k => k.trim()) : [keyframeSelector]; - const offsets = selectors.map(selector => { - if (selector === 'from') { - return 0; - } - if (selector === 'to') { - return 1; - } - let offset; - if (typeof selector === 'number' || !isNaN(+selector)) { - offset = +selector; - } else if (PERCENTAGE_REGEX.test(selector)) { - offset = parseFloat(selector) / 100; - } - if (!isNumber(offset)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidOffsetType(selector)); - } - if (offset < 0 || offset > 1) { - throw new ReanimatedError(ERROR_MESSAGES.invalidOffsetRange(selector)); - } - return offset; - }); - return offsets; -} -function processKeyframes(keyframes, styleBuilder) { - return Object.entries(keyframes).flatMap(([selector, { - animationTimingFunction = undefined, - ...style - } = {}]) => { - const normalizedStyle = styleBuilder.buildFrom(style); - if (!normalizedStyle) { - return []; - } - return normalizeKeyframeSelector(selector).map(offset => ({ - offset, - style: normalizedStyle, - timingFunction: animationTimingFunction - })); - }).sort((a, b) => a.offset - b.offset).reduce((acc, keyframe) => { - const lastKeyframe = acc[acc.length - 1]; - if (lastKeyframe && lastKeyframe.offset === keyframe.offset) { - lastKeyframe.style = { - ...lastKeyframe.style, - ...keyframe.style - }; - lastKeyframe.timingFunction = keyframe.timingFunction; - } else { - acc.push(keyframe); - } - return acc; - }, []); -} -function processStyleProperties(offset, style, keyframeStyle, styleBuilder) { - Object.entries(style).forEach(([property, value]) => { - if (!isDefined(value)) { - return; - } - if (typeof value === 'object') { - if (!Array.isArray(value) || styleBuilder.isSeparatelyInterpolatedArrayProperty(property)) { - if (!keyframeStyle[property]) { - keyframeStyle[property] = Array.isArray(value) ? [] : {}; - } - processStyleProperties(offset, value, keyframeStyle[property], styleBuilder); - return; - } - } - if (!keyframeStyle[property]) { - keyframeStyle[property] = []; - } - keyframeStyle[property].push({ - offset, - value - }); - }); -} -export function normalizeAnimationKeyframes(keyframes, styleBuilder) { - const keyframesStyle = {}; - const timingFunctions = {}; - processKeyframes(keyframes, styleBuilder).forEach(({ - offset, - style, - timingFunction - }) => { - processStyleProperties(offset, style, keyframesStyle, styleBuilder); - if (timingFunction && offset < 1) { - timingFunctions[offset] = normalizeTimingFunction(timingFunction); - } - }); - return { - keyframesStyle, - keyframeTimingFunctions: timingFunctions - }; -} -//# sourceMappingURL=keyframes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/keyframes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/keyframes.js.map deleted file mode 100644 index dd7f3684..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/keyframes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","PERCENTAGE_REGEX","isDefined","isNumber","normalizeTimingFunction","ERROR_MESSAGES","invalidOffsetType","selector","invalidOffsetRange","normalizeKeyframeSelector","keyframeSelector","selectors","split","map","k","trim","offsets","offset","isNaN","test","parseFloat","processKeyframes","keyframes","styleBuilder","Object","entries","flatMap","animationTimingFunction","undefined","style","normalizedStyle","buildFrom","timingFunction","sort","a","b","reduce","acc","keyframe","lastKeyframe","length","push","processStyleProperties","keyframeStyle","forEach","property","value","Array","isArray","isSeparatelyInterpolatedArrayProperty","normalizeAnimationKeyframes","keyframesStyle","timingFunctions","keyframeTimingFunctions"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/animation/keyframes.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,gBAAgB,QAAQ,oBAAoB;AAOrD,SAASC,SAAS,EAAEC,QAAQ,QAAQ,gBAAgB;AAOpD,SAASC,uBAAuB,QAAQ,WAAW;AAEnD,OAAO,MAAMC,cAAc,GAAG;EAC5BC,iBAAiB,EAAGC,QAAsC,IACxD,8BAA8BA,QAAQ,+DAA+D;EACvGC,kBAAkB,EAAGD,QAAsC,IACzD,8BAA8BA,QAAQ;AAC1C,CAAC;AAED,SAASE,yBAAyBA,CAChCC,gBAA8C,EACpC;EACV,MAAMC,SAAS,GACb,OAAOD,gBAAgB,KAAK,QAAQ,GAChCA,gBAAgB,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,GAChD,CAACL,gBAAgB,CAAC;EAExB,MAAMM,OAAO,GAAGL,SAAS,CAACE,GAAG,CAAEN,QAAQ,IAAK;IAC1C,IAAIA,QAAQ,KAAK,MAAM,EAAE;MACvB,OAAO,CAAC;IACV;IACA,IAAIA,QAAQ,KAAK,IAAI,EAAE;MACrB,OAAO,CAAC;IACV;IAEA,IAAIU,MAA0B;IAE9B,IAAI,OAAOV,QAAQ,KAAK,QAAQ,IAAI,CAACW,KAAK,CAAC,CAACX,QAAQ,CAAC,EAAE;MACrDU,MAAM,GAAG,CAACV,QAAQ;IACpB,CAAC,MAAM,IAAIN,gBAAgB,CAACkB,IAAI,CAACZ,QAAQ,CAAC,EAAE;MAC1CU,MAAM,GAAGG,UAAU,CAACb,QAAQ,CAAC,GAAG,GAAG;IACrC;IAEA,IAAI,CAACJ,QAAQ,CAACc,MAAM,C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/B,gBAAgB,CAACC,SAAS,EAAEC,YAAY,CAAC,CAACqB,OAAO,CAC/C,CAAC;IAAE3B,MAAM;IAAEY,KAAK;IAAEG;EAAe,CAAC,KAAK;IACrCU,sBAAsB,CAACzB,MAAM,EAAEY,KAAK,EAAEsB,cAAc,EAAE5B,YAAY,CAAC;IACnE,IAAIS,cAAc,IAAIf,MAAM,GAAG,CAAC,EAAE;MAChCmC,eAAe,CAACnC,MAAM,CAAC,GAAGb,uBAAuB,CAAC4B,cAAc,CAAC;IACnE;EACF,CACF,CAAC;EAED,OAAO;IAAEmB,cAAc;IAAEE,uBAAuB,EAAED;EAAgB,CAAC;AACrE","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/properties.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/properties.js deleted file mode 100644 index bef43d08..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/properties.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -import { convertPropertiesToArrays } from '../../../utils'; -export function createSingleCSSAnimationProperties(properties) { - const { - animationName: animationNames, - animationDuration, - animationTimingFunction, - animationDelay, - animationIterationCount, - animationDirection, - animationFillMode, - animationPlayState - } = convertPropertiesToArrays(properties); - return animationNames.map((animationName, index) => { - return { - animationName, - animationDuration: animationDuration?.[index % animationDuration.length], - animationTimingFunction: animationTimingFunction?.[index % animationTimingFunction.length], - animationDelay: animationDelay?.[index % animationDelay.length], - animationIterationCount: animationIterationCount?.[index % animationIterationCount.length], - animationDirection: animationDirection?.[index % animationDirection.length], - animationFillMode: animationFillMode?.[index % animationFillMode.length], - animationPlayState: animationPlayState?.[index % animationPlayState.length] - }; - }); -} -//# sourceMappingURL=properties.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/properties.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/properties.js.map deleted file mode 100644 index 3e1b8545..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertPropertiesToArrays","createSingleCSSAnimationProperties","properties","animationName","animationNames","animationDuration","animationTimingFunction","animationDelay","animationIterationCount","animationDirection","animationFillMode","animationPlayState","map","index","length"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/animation/properties.ts"],"mappings":"AAAA,YAAY;;AAKZ,SAASA,yBAAyB,QAAQ,gBAAgB;AAE1D,OAAO,SAASC,kCAAkCA,CAChDC,UAA0C,EACV;EAChC,MAAM;IACJC,aAAa,EAAEC,cAAc;IAC7BC,iBAAiB;IACjBC,uBAAuB;IACvBC,cAAc;IACdC,uBAAuB;IACvBC,kBAAkB;IAClBC,iBAAiB;IACjBC;EACF,CAAC,GAAGX,yBAAyB,CAACE,UAAU,CAAC;EAEzC,OAAOE,cAAc,CAACQ,GAAG,CAAC,CAACT,aAAa,EAAEU,KAAK,KAAK;IAClD,OAAO;MACLV,aAAa;MACbE,iBAAiB,EAAEA,iBAAiB,GAAGQ,KAAK,GAAGR,iBAAiB,CAACS,MAAM,CAAC;MACxER,uBAAuB,EACrBA,uBAAuB,GAAGO,KAAK,GAAGP,uBAAuB,CAACQ,MAAM,CAAC;MACnEP,cAAc,EAAEA,cAAc,GAAGM,KAAK,GAAGN,cAAc,CAACO,MAAM,CAAC;MAC/DN,uBAAuB,EACrBA,uBAAuB,GAAGK,KAAK,GAAGL,uBAAuB,CAACM,MAAM,CAAC;MACnEL,kBAAkB,EAChBA,kBAAkB,GAAGI,KAAK,GAAGJ,kBAAkB,CAACK,MAAM,CAAC;MACzDJ,iBAAiB,EAAEA,iBAAiB,GAAGG,KAAK,GAAGH,iBAAiB,CAACI,MAAM,CAAC;MACxEH,kBAAkB,EAChBA,kBAAkB,GAAGE,KAAK,GAAGF,kBAAkB,CAACG,MAAM;IAC1D,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/settings.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/settings.js deleted file mode 100644 index dea75752..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/settings.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { deepEqual, isNumber } from '../../../utils'; -import { normalizeDelay, normalizeDuration, normalizeTimingFunction } from '../common'; -import { VALID_ANIMATION_DIRECTIONS, VALID_FILL_MODES, VALID_PLAY_STATES } from './constants'; -export const ERROR_MESSAGES = { - invalidAnimationDirection: direction => `Invalid animation direction "${direction}".`, - invalidIterationCount: iterationCount => `Invalid iteration count "${iterationCount}". Expected a number or "infinite".`, - negativeIterationCount: iterationCount => `Iteration count cannot be negative, received "${iterationCount}".`, - invalidFillMode: fillMode => `Invalid fill mode "${fillMode}".`, - invalidPlayState: playState => `Invalid play state "${playState}".` -}; -export function normalizeDirection(direction = 'normal') { - if (!VALID_ANIMATION_DIRECTIONS.has(direction)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidAnimationDirection(direction)); - } - return direction; -} -export function normalizeIterationCount(iterationCount = 1) { - if (iterationCount === 'infinite' || iterationCount === Infinity) { - return -1; - } else if (!isNumber(iterationCount)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidIterationCount(iterationCount)); - } else if (iterationCount < 0) { - throw new ReanimatedError(ERROR_MESSAGES.negativeIterationCount(iterationCount)); - } - return iterationCount; -} -export function normalizeFillMode(fillMode = 'none') { - if (!VALID_FILL_MODES.has(fillMode)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidFillMode(fillMode)); - } - return fillMode; -} -export function normalizePlayState(playState = 'running') { - if (!VALID_PLAY_STATES.has(playState)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidPlayState(playState)); - } - return playState; -} -export function normalizeSingleCSSAnimationSettings({ - animationDuration, - animationTimingFunction, - animationDelay, - animationIterationCount, - animationDirection, - animationFillMode, - animationPlayState -}) { - return { - duration: normalizeDuration(animationDuration), - timingFunction: normalizeTimingFunction(animationTimingFunction), - delay: normalizeDelay(animationDelay), - iterationCount: normalizeIterationCount(animationIterationCount), - direction: normalizeDirection(animationDirection), - fillMode: normalizeFillMode(animationFillMode), - playState: normalizePlayState(animationPlayState) - }; -} -export function getAnimationSettingsUpdates(oldConfig, newConfig) { - const updatedSettings = {}; - if (oldConfig.duration !== newConfig.duration) { - updatedSettings.duration = newConfig.duration; - } - if (oldConfig.timingFunction !== newConfig.timingFunction && (typeof oldConfig.timingFunction !== 'object' || - // TODO - maybe replace by some better solution than deepEqual - !deepEqual(oldConfig.timingFunction, newConfig.timingFunction))) { - updatedSettings.timingFunction = newConfig.timingFunction; - } - if (oldConfig.delay !== newConfig.delay) { - updatedSettings.delay = newConfig.delay; - } - if (oldConfig.iterationCount !== newConfig.iterationCount) { - updatedSettings.iterationCount = newConfig.iterationCount; - } - if (oldConfig.direction !== newConfig.direction) { - updatedSettings.direction = newConfig.direction; - } - if (oldConfig.fillMode !== newConfig.fillMode) { - updatedSettings.fillMode = newConfig.fillMode; - } - if (oldConfig.playState !== newConfig.playState) { - updatedSettings.playState = newConfig.playState; - } - return updatedSettings; -} -//# sourceMappingURL=settings.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/settings.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/settings.js.map deleted file mode 100644 index 929c18d4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/animation/settings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","deepEqual","isNumber","normalizeDelay","normalizeDuration","normalizeTimingFunction","VALID_ANIMATION_DIRECTIONS","VALID_FILL_MODES","VALID_PLAY_STATES","ERROR_MESSAGES","invalidAnimationDirection","direction","invalidIterationCount","iterationCount","negativeIterationCount","invalidFillMode","fillMode","invalidPlayState","playState","normalizeDirection","has","normalizeIterationCount","Infinity","normalizeFillMode","normalizePlayState","normalizeSingleCSSAnimationSettings","animationDuration","animationTimingFunction","animationDelay","animationIterationCount","animationDirection","animationFillMode","animationPlayState","duration","timingFunction","delay","getAnimationSettingsUpdates","oldConfig","newConfig","updatedSettings"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/animation/settings.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAQpD,SAASC,SAAS,EAAEC,QAAQ,QAAQ,gBAAgB;AAEpD,SACEC,cAAc,EACdC,iBAAiB,EACjBC,uBAAuB,QAClB,WAAW;AAClB,SACEC,0BAA0B,EAC1BC,gBAAgB,EAChBC,iBAAiB,QACZ,aAAa;AAEpB,OAAO,MAAMC,cAAc,GAAG;EAC5BC,yBAAyB,EAAGC,SAAgC,IAC1D,gCAAgCA,SAAS,IAAI;EAC/CC,qBAAqB,EAAGC,cAA0C,IAChE,4BAA4BA,cAAc,qCAAqC;EACjFC,sBAAsB,EAAGD,cAAsB,IAC7C,iDAAiDA,cAAc,IAAI;EACrEE,eAAe,EAAGC,QAA8B,IAC9C,sBAAsBA,QAAQ,IAAI;EACpCC,gBAAgB,EAAGC,SAAgC,IACjD,uBAAuBA,SAAS;AACpC,CAAC;AAED,OAAO,SAASC,kBAAkBA,CAChCR,SAAgC,GAAG,QAAQ,EACpB;EACvB,IAAI,CAACL,0BAA0B,CAACc,GAAG,CAACT,SAAS,CAAC,EAAE;IAC9C,MAAM,IAAIX,eAAe,CACvBS,cAAc,CAACC,yBAAyB,CAACC,SAAS,CACpD,CAAC;EACH;EACA,OAAOA,SAAS;AAClB;AAEA,OAAO,SAASU,uBAAuBA,CACrCR,cAA0C,GAAG,CAAC,EACtC;EACR,IAAIA,cAAc,KAAK,UAAU,IAAIA,cAAc,KAAKS,QAAQ,EAAE;IAChE,OAAO,CAAC,CAAC;EACX,CAAC,MAAM,IAAI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-reanimated/lib/module/css/native/normalization/common/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/index.js deleted file mode 100644 index d4a5e6e7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { normalizeDelay, normalizeDuration, normalizeTimingFunction } from './settings'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/index.js.map deleted file mode 100644 index 0361b03f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["normalizeDelay","normalizeDuration","normalizeTimingFunction"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/common/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SACEA,cAAc,EACdC,iBAAiB,EACjBC,uBAAuB,QAClB,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/settings.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/settings.js deleted file mode 100644 index 4e549eff..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/settings.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { VALID_PREDEFINED_TIMING_FUNCTIONS } from '../../../constants'; -import { isPredefinedTimingFunction, normalizeTimeUnit } from '../../../utils'; -export const ERROR_MESSAGES = { - invalidDelay: timeUnit => `Invalid delay "${timeUnit}". Expected a number, "ms", or "s".`, - invalidDuration: duration => `Invalid duration "${duration}". Expected a number, "ms", or "s".`, - negativeDuration: duration => `Duration cannot be negative, received "${duration}".`, - invalidPredefinedTimingFunction: timingFunction => `Invalid predefined timing function "${timingFunction}". Supported values are: ${VALID_PREDEFINED_TIMING_FUNCTIONS.join(', ')}.`, - invalidParametrizedTimingFunction: timingFunction => `Invalid parametrized timing function "${timingFunction?.toString()}".` -}; -export function normalizeDelay(delay = 0) { - const delayMs = normalizeTimeUnit(delay); - if (delayMs === null) { - throw new ReanimatedError(ERROR_MESSAGES.invalidDelay(delay)); - } - return delayMs; -} -export function normalizeDuration(duration = 0) { - const durationMs = normalizeTimeUnit(duration); - if (durationMs === null) { - throw new ReanimatedError(ERROR_MESSAGES.invalidDuration(duration)); - } else if (durationMs < 0) { - throw new ReanimatedError(ERROR_MESSAGES.negativeDuration(duration)); - } - return durationMs; -} -export function normalizeTimingFunction(timingFunction = 'ease') { - if (typeof timingFunction === 'string') { - if (!isPredefinedTimingFunction(timingFunction)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidPredefinedTimingFunction(timingFunction)); - } - return timingFunction; - } - if (!timingFunction.normalize || typeof timingFunction.normalize !== 'function') { - throw new ReanimatedError(ERROR_MESSAGES.invalidParametrizedTimingFunction(timingFunction)); - } - return timingFunction.normalize(); -} -//# sourceMappingURL=settings.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/settings.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/settings.js.map deleted file mode 100644 index 2bf24945..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/common/settings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","VALID_PREDEFINED_TIMING_FUNCTIONS","isPredefinedTimingFunction","normalizeTimeUnit","ERROR_MESSAGES","invalidDelay","timeUnit","invalidDuration","duration","negativeDuration","invalidPredefinedTimingFunction","timingFunction","join","invalidParametrizedTimingFunction","toString","normalizeDelay","delay","delayMs","normalizeDuration","durationMs","normalizeTimingFunction","normalize"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/common/settings.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QA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AAK,QAAQ,EAAE;IACtC,IAAI,CAACT,0BAA0B,CAACS,cAAc,CAAC,EAAE;MAC/C,MAAM,IAAIX,eAAe,CACvBI,cAAc,CAACM,+BAA+B,CAACC,cAAc,CAC/D,CAAC;IACH;IACA,OAAOA,cAAc;EACvB;EACA,IACE,CAACA,cAAc,CAACU,SAAS,IACzB,OAAOV,cAAc,CAACU,SAAS,KAAK,UAAU,EAC9C;IACA,MAAM,IAAIrB,eAAe,CACvBI,cAAc,CAACS,iCAAiC,CAACF,cAAc,CACjE,CAAC;EACH;EACA,OAAOA,cAAc,CAACU,SAAS,CAAC,CAAC;AACnC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/index.js deleted file mode 100644 index 15375e5b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export * from './animation'; -export * from './common'; -export * from './transition'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/index.js.map deleted file mode 100644 index 6b6566ef..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/native/normalization/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/config.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/config.js deleted file mode 100644 index 8b4fb4f2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/config.js +++ /dev/null @@ -1,114 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { areArraysEqual, convertPropertyToArray, deepEqual } from '../../../utils'; -import { normalizeDelay, normalizeDuration, normalizeTimingFunction } from '../common'; -import { normalizeTransitionBehavior } from './settings'; -import { createEmptyTransitionConfig, parseTransitionShorthand } from './shorthand'; -export const ERROR_MESSAGES = { - invalidTransitionProperty: transitionProperty => `Invalid transition property "${JSON.stringify(transitionProperty)}"` -}; -function getExpandedConfigProperties(config) { - const result = config.transition ? parseTransitionShorthand(config.transition) : createEmptyTransitionConfig(); - for (const [key, value] of Object.entries(config)) { - result[key] = convertPropertyToArray(value); - } - return result; -} -const hasTransition = ({ - transitionProperty, - ...rest -}) => { - if (transitionProperty.length) { - const hasNone = transitionProperty[0] === 'none'; - - // We allow either all values to be 'none' or none of them to be 'none' - if (transitionProperty.some(prop => prop === 'none' !== hasNone)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidTransitionProperty(transitionProperty)); - } - return !hasNone; - } - - // transitionProperty defaults to 'all' if not specified but there are - // other transition properties - return Object.values(rest).some(value => value.length); -}; -export function normalizeCSSTransitionProperties(config) { - const expandedProperties = getExpandedConfigProperties(config); - if (!hasTransition(expandedProperties)) { - return null; - } - const { - transitionProperty, - transitionDuration, - transitionTimingFunction, - transitionDelay, - transitionBehavior - } = expandedProperties; - const specificProperties = []; - let allPropertiesTransition = false; - const settings = {}; - if (!transitionProperty.length) { - // For cases when transition property hasn't been explicitly specified - // (e.g. when only the transitionDuration is set) - transitionProperty.push('all'); - } - - // Go from the last to the first property to ensure that the last - // one entry for the same property is used without having to override - // it multiple times if specified more than once (we just take the last - // occurrence and ignore remaining ones) - for (let i = transitionProperty.length - 1; i >= 0; i--) { - const property = transitionProperty[i]; - // Continue if there was a prop with the same name specified later - // (we don't want to override the last occurrence of the property) - if (settings?.[property]) { - continue; - } - if (property === 'all') { - allPropertiesTransition = true; - } else { - specificProperties.push(property); - } - settings[property] = { - duration: normalizeDuration(transitionDuration[i % transitionDuration.length]), - timingFunction: normalizeTimingFunction(transitionTimingFunction[i % transitionTimingFunction.length]), - delay: normalizeDelay(transitionDelay[i % transitionDelay.length]), - allowDiscrete: normalizeTransitionBehavior(transitionBehavior[i % transitionBehavior.length]) - }; - - // 'all' transition property overrides all properties before it, - // so we don't need to process them - if (allPropertiesTransition) { - break; - } - } - return { - properties: allPropertiesTransition ? 'all' : specificProperties.reverse(), - settings - }; -} -export function getNormalizedCSSTransitionConfigUpdates(oldConfig, newConfig) { - const configUpdates = {}; - if (oldConfig.properties !== newConfig.properties && (!Array.isArray(oldConfig.properties) || !Array.isArray(newConfig.properties) || !areArraysEqual(oldConfig.properties, newConfig.properties))) { - configUpdates.properties = newConfig.properties; - } - const newSettingsKeys = Object.keys(newConfig.settings); - const oldSettingsKeys = Object.keys(oldConfig.settings); - if (newSettingsKeys.length !== oldSettingsKeys.length) { - configUpdates.settings = newConfig.settings; - } else { - for (const key of newSettingsKeys) { - if (!oldConfig.settings[key] || - // TODO - think of a better way to compare settings (necessary for - // timing functions comparison). Maybe add some custom way instead - // of deepEqual - !deepEqual(oldConfig.settings[key], newConfig.settings[key])) { - configUpdates.settings = newConfig.settings; - break; - } - } - } - return configUpdates; -} -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/config.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/config.js.map deleted file mode 100644 index eda50bd4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","areArraysEqual","convertPropertyToArray","deepEqual","normalizeDelay","normalizeDuration","normalizeTimingFunction","normalizeTransitionBehavior","createEmptyTransitionConfig","parseTransitionShorthand","ERROR_MESSAGES","invalidTransitionProperty","transitionProperty","JSON","stringify","getExpandedConfigProperties","config","result","transition","key","value","Object","entries","hasTransition","rest","length","hasNone","some","prop","values","normalizeCSSTransitionProperties","expandedProperties","transitionDuration","transitionTimingFunction","transitionDelay","transitionBehavior","specificProperties","allPropertiesTransition","settings","push","i","property","duration","timingFunction","delay","allowDiscrete","properties","reverse","getNormalizedCSSTransitionConfigUpdates","oldConfig","newConfig","configUpdates","Array","isArray","newSettingsKeys","keys","oldSettingsKeys"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/transition/config.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAMpD,SACEC,cAAc,EACdC,sBAAsB,EACtBC,SAAS,QACJ,gBAAgB;AAMvB,SACEC,cAAc,EACdC,iBAAiB,EACjBC,uBAAuB,QAClB,WAAW;AAClB,SAASC,2BAA2B,QAAQ,YAAY;AAExD,SACEC,2BAA2B,EAC3BC,wBAAwB,QACnB,aAAa;AAEpB,OAAO,MAAMC,cAAc,GAAG;EAC5BC,yBAAyB,EACvBC,kBAAgE,IAC7D,gCAAgCC,IAAI,CAACC,SAAS,CAACF,kBAAkB,CAAC;AACzE,CAAC;AAED,SAASG,2BAA2BA,CAClCC,MAA+B,EACQ;EACvC,MAAMC,MAAiB,GAAGD,MAAM,CAACE,UAAU,GACvCT,wBAAwB,CAACO,MAAM,CAACE,UAAU,CAAC,GAC3CV,2BAA2B,CAAC,CAAC;EAEjC,KAAK,MAAM,CAACW,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACN,MAAM,CAAC,EAAE;IACjDC,MAAM,CAACE,GAAG,CAAC,GAAGjB,sBAAsB,CAACkB,KAAK,CAAC;EAC7C;EAEA,OAAOH,MAAM;AACf;AAEA,MAAMM,aAAa,GAAGA,CAAC;EACrBX,kBAAkB;EAClB,GAAGY;AACkC,CAAC,KAAK;EAC3C,IAAIZ,kBAAkB,CAACa,MAAM,EAAE;IAC7B,MAAMC,OAAO,GAAGd,kBAAkB,CAAC,CAAC,CAAC,KAAK,MAAM;;IAEhD;IACA,IAAIA,kBAAk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+B,eAAe,CAAC/B,MAAM,EAAE;IACrD0B,aAAa,CAACb,QAAQ,GAAGY,SAAS,CAACZ,QAAQ;EAC7C,CAAC,MAAM;IACL,KAAK,MAAMnB,GAAG,IAAImC,eAAe,EAAE;MACjC,IACE,CAACL,SAAS,CAACX,QAAQ,CAACnB,GAAG,CAAC;MACxB;MACA;MACA;MACA,CAAChB,SAAS,CAAC8C,SAAS,CAACX,QAAQ,CAACnB,GAAG,CAAC,EAAE+B,SAAS,CAACZ,QAAQ,CAACnB,GAAG,CAAC,CAAC,EAC5D;QACAgC,aAAa,CAACb,QAAQ,GAAGY,SAAS,CAACZ,QAAQ;QAC3C;MACF;IACF;EACF;EAEA,OAAOa,aAAa;AACtB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/constants.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/constants.js deleted file mode 100644 index 017a5e6f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/constants.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export const VALID_TRANSITION_BEHAVIORS = ['normal', 'allow-discrete']; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/constants.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/constants.js.map deleted file mode 100644 index f8d6ca1b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["VALID_TRANSITION_BEHAVIORS"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/transition/constants.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,MAAMA,0BAAmD,GAAG,CACjE,QAAQ,EACR,gBAAgB,CACjB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/index.js deleted file mode 100644 index 8ade2c78..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { getNormalizedCSSTransitionConfigUpdates, normalizeCSSTransitionProperties } from './config'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/index.js.map deleted file mode 100644 index a651bcaa..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["getNormalizedCSSTransitionConfigUpdates","normalizeCSSTransitionProperties"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/transition/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SACEA,uCAAuC,EACvCC,gCAAgC,QAC3B,UAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/settings.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/settings.js deleted file mode 100644 index 953f9564..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/settings.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { VALID_TRANSITION_BEHAVIORS } from './constants'; -export const ERROR_MESSAGES = { - invalidTransitionBehavior: behavior => `Invalid transition behavior "${behavior}".` -}; -export function normalizeTransitionBehavior(behavior = 'normal') { - if (!VALID_TRANSITION_BEHAVIORS.includes(behavior)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidTransitionBehavior(behavior)); - } - return behavior === 'allow-discrete'; -} -//# sourceMappingURL=settings.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/settings.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/settings.js.map deleted file mode 100644 index 45f66df9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/settings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","VALID_TRANSITION_BEHAVIORS","ERROR_MESSAGES","invalidTransitionBehavior","behavior","normalizeTransitionBehavior","includes"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/transition/settings.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,0BAA0B,QAAQ,aAAa;AAExD,OAAO,MAAMC,cAAc,GAAG;EAC5BC,yBAAyB,EAAGC,QAA+B,IACzD,gCAAgCA,QAAQ;AAC5C,CAAC;AAED,OAAO,SAASC,2BAA2BA,CACzCD,QAA+B,GAAG,QAAQ,EACjC;EACT,IAAI,CAACH,0BAA0B,CAACK,QAAQ,CAACF,QAAQ,CAAC,EAAE;IAClD,MAAM,IAAIJ,eAAe,CACvBE,cAAc,CAACC,yBAAyB,CAACC,QAAQ,CACnD,CAAC;EACH;EACA,OAAOA,QAAQ,KAAK,gBAAgB;AACtC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/shorthand.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/shorthand.js deleted file mode 100644 index a74eeb09..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/shorthand.js +++ /dev/null @@ -1,76 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { cubicBezier, linear, steps } from '../../../easing'; -import { camelizeKebabCase, isArrayOfLength, isPercentage, isPredefinedTimingFunction, isStepsModifier, parseSingleTransitionShorthand, splitByComma, splitByWhitespace } from '../../../utils'; -export const createEmptyTransitionConfig = () => ({ - transitionProperty: [], - transitionDuration: [], - transitionTimingFunction: [], - transitionDelay: [], - transitionBehavior: [] -}); -export function parseTransitionShorthand(value) { - return splitByComma(value).reduce((acc, part) => { - const result = parseSingleTransitionShorthand(part); - acc.transitionProperty.push(camelizeKebabCase(result.transitionProperty ?? 'all')); - acc.transitionDuration.push(result.transitionDuration); - acc.transitionTimingFunction.push(result.transitionTimingFunction ? parseTimingFunction(result.transitionTimingFunction) : undefined); - acc.transitionDelay.push(result.transitionDelay); - acc.transitionBehavior.push(result.transitionBehavior); - return acc; - }, createEmptyTransitionConfig()); -} -function asControlPoint(value) { - const [first, ...rest] = value; - if (!first || isNaN(Number(first)) || !rest.every(isPercentage)) { - return null; - } - return [Number(first), ...rest]; -} -function parseTimingFunction(value) { - if (isPredefinedTimingFunction(value)) { - return value; - } - - // TODO: implement more strict check - const regex = /^(.+)\((.+)\)$/; - if (!regex.test(value)) { - throw new ReanimatedError(`Unsupported timing function: ${value}`); - } - const [, name, args] = value.match(regex); - const parsedArgs = splitByComma(args); - switch (name) { - case 'cubic-bezier': - { - const numberArgs = parsedArgs.map(Number); - if (isArrayOfLength(numberArgs, 4) && numberArgs.every(n => !isNaN(n))) { - return cubicBezier(...numberArgs); - } - break; - } - case 'linear': - { - const controlPoints = parsedArgs.map(arg => { - const parts = splitByWhitespace(arg); - const controlPoint = asControlPoint(parts); - if (!controlPoint) { - throw new ReanimatedError(`Invalid control point: ${arg} in ${value} timing function`); - } - return controlPoint; - }); - return linear(...controlPoints); - } - case 'steps': - { - const stepsNumber = Number(parsedArgs[0]); - const stepsModifier = parsedArgs[1]; - if (!isNaN(stepsNumber) && stepsNumber > 0 && (stepsModifier === undefined || isStepsModifier(stepsModifier))) { - return steps(stepsNumber, stepsModifier); - } - break; - } - } - throw new ReanimatedError(`Invalid timing function: ${value}`); -} -//# sourceMappingURL=shorthand.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/shorthand.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/shorthand.js.map deleted file mode 100644 index 72da2952..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/normalization/transition/shorthand.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","cubicBezier","linear","steps","camelizeKebabCase","isArrayOfLength","isPercentage","isPredefinedTimingFunction","isStepsModifier","parseSingleTransitionShorthand","splitByComma","splitByWhitespace","createEmptyTransitionConfig","transitionProperty","transitionDuration","transitionTimingFunction","transitionDelay","transitionBehavior","parseTransitionShorthand","value","reduce","acc","part","result","push","parseTimingFunction","undefined","asControlPoint","first","rest","isNaN","Number","every","regex","test","name","args","match","parsedArgs","numberArgs","map","n","controlPoints","arg","parts","controlPoint","stepsNumber","stepsModifier"],"sourceRoot":"../../../../../../src","sources":["css/native/normalization/transition/shorthand.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,WAAW,EAAEC,MAAM,EAAEC,KAAK,QAAQ,iBAAiB;AAK5D,SACEC,iBAAiB,EACjBC,eAAe,EACfC,YAAY,EACZC,0BAA0B,EAC1BC,eAAe,EACfC,8BAA8B,EAC9BC,YAAY,EACZC,iBAAiB,QACZ,gBAAgB;AAUvB,OAAO,MAAMC,2BAA2B,GACtCA,CAAA,MAA8C;EAC5CC,kBAAkB,EAAE,EAAE;EACtBC,kBAAkB,EAAE,EAAE;EACtBC,wBAAwB,EAAE,EAAE;EAC5BC,eAAe,EAAE,EAAE;EACnBC,kBAAkB,EAAE;AACtB,CAAC,CAAC;AAEJ,OAAO,SAASC,wBAAwBA,CAACC,KAAa,EAAE;EACtD,OAAOT,YAAY,CAACS,KAAK,CAAC,CAACC,MAAM,CAC/B,CAACC,GAAG,EAAEC,IAAI,KAAK;IACb,MAAMC,MAAM,GAAGd,8BAA8B,CAACa,IAAI,CAAC;IACnDD,GAAG,CAACR,kBAAkB,CAACW,IAAI,CACzBpB,iBAAiB,CAACmB,MAAM,CAACV,kBAAkB,IAAI,KAAK,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;QACnB,MAAMI,UAAU,GAAGD,UAAU,CAACE,GAAG,CAACT,MAAM,CAAC;QACzC,IACE1B,eAAe,CAACkC,UAAU,EAAE,CAAC,CAAC,IAC9BA,UAAU,CAACP,KAAK,CAAES,CAAC,IAAK,CAACX,KAAK,CAACW,CAAC,CAAC,CAAC,EAClC;UACA,OAAOxC,WAAW,CAAC,GAAGsC,UAAU,CAAC;QACnC;QACA;MACF;IACA,KAAK,QAAQ;MAAE;QACb,MAAMG,aAAa,GAAGJ,UAAU,CAACE,GAAG,CAAEG,GAAG,IAAK;UAC5C,MAAMC,KAAK,GAAGjC,iBAAiB,CAACgC,GAAG,CAAC;UACpC,MAAME,YAAY,GAAGlB,cAAc,CAACiB,KAAK,CAAC;UAC1C,IAAI,CAACC,YAAY,EAAE;YACjB,MAAM,IAAI7C,eAAe,CACvB,0BAA0B2C,GAAG,OAAOxB,KAAK,kBAC3C,CAAC;UACH;UACA,OAAO0B,YAAY;QACrB,CAAC,CAAC;QACF,OAAO3C,MAAM,CAAC,GAAGwC,aAAa,CAAC;MACjC;IACA,KAAK,OAAO;MAAE;QACZ,MAAMI,WAAW,GAAGf,MAAM,CAACO,UAAU,CAAC,CAAC,CAAC,CAAC;QACzC,MAAMS,aAAa,GAAGT,UAAU,CAAC,CAAC,CAAC;QACnC,IACE,CAACR,KAAK,CAACgB,WAAW,CAAC,IACnBA,WAAW,GAAG,CAAC,KACdC,aAAa,KAAKrB,SAAS,IAAIlB,eAAe,CAACuC,aAAa,CAAC,CAAC,EAC/D;UACA,OAAO5C,KAAK,CAAC2C,WAAW,EAAEC,aAAa,CAAC;QAC1C;QACA;MACF;EACF;EAEA,MAAM,IAAI/C,eAAe,CAAC,4BAA4BmB,KAAK,EAAE,CAAC;AAChE","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/proxy.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/proxy.js deleted file mode 100644 index 5ad74bb5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/proxy.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -import { ReanimatedModule } from '../../ReanimatedModule'; -// COMMON - -export function setViewStyle(viewTag, style) { - ReanimatedModule.setViewStyle(viewTag, style); -} -export function markNodeAsRemovable(shadowNodeWrapper) { - ReanimatedModule.markNodeAsRemovable(shadowNodeWrapper); -} -export function unmarkNodeAsRemovable(viewTag) { - ReanimatedModule.unmarkNodeAsRemovable(viewTag); -} - -// ANIMATIONS - -// Keyframes - -export function registerCSSKeyframes(animationName, viewName, keyframesConfig) { - ReanimatedModule.registerCSSKeyframes(animationName, viewName, keyframesConfig); -} -export function unregisterCSSKeyframes(animationName, viewName) { - ReanimatedModule.unregisterCSSKeyframes(animationName, viewName); -} - -// View animations - -export function applyCSSAnimations(shadowNodeWrapper, animationUpdates) { - ReanimatedModule.applyCSSAnimations(shadowNodeWrapper, animationUpdates); -} -export function unregisterCSSAnimations(viewTag) { - ReanimatedModule.unregisterCSSAnimations(viewTag); -} - -// TRANSITIONS - -export function registerCSSTransition(shadowNodeWrapper, transitionConfig) { - ReanimatedModule.registerCSSTransition(shadowNodeWrapper, transitionConfig); -} -export function updateCSSTransition(viewTag, configUpdates) { - ReanimatedModule.updateCSSTransition(viewTag, configUpdates); -} -export function unregisterCSSTransition(viewTag) { - ReanimatedModule.unregisterCSSTransition(viewTag); -} -//# sourceMappingURL=proxy.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/proxy.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/proxy.js.map deleted file mode 100644 index 8106404f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/proxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedModule","setViewStyle","viewTag","style","markNodeAsRemovable","shadowNodeWrapper","unmarkNodeAsRemovable","registerCSSKeyframes","animationName","viewName","keyframesConfig","unregisterCSSKeyframes","applyCSSAnimations","animationUpdates","unregisterCSSAnimations","registerCSSTransition","transitionConfig","updateCSSTransition","configUpdates","unregisterCSSTransition"],"sourceRoot":"../../../../src","sources":["css/native/proxy.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,gBAAgB,QAAQ,wBAAwB;AAOzD;;AAEA,OAAO,SAASC,YAAYA,CAACC,OAAe,EAAEC,KAAiB,EAAE;EAC/DH,gBAAgB,CAACC,YAAY,CAACC,OAAO,EAAEC,KAAK,CAAC;AAC/C;AAEA,OAAO,SAASC,mBAAmBA,CAACC,iBAAoC,EAAE;EACxEL,gBAAgB,CAACI,mBAAmB,CAACC,iBAAiB,CAAC;AACzD;AAEA,OAAO,SAASC,qBAAqBA,CAACJ,OAAe,EAAE;EACrDF,gBAAgB,CAACM,qBAAqB,CAACJ,OAAO,CAAC;AACjD;;AAEA;;AAEA;;AAEA,OAAO,SAASK,oBAAoBA,CAClCC,aAAqB,EACrBC,QAAgB,EAChBC,eAAsD,EACtD;EACAV,gBAAgB,CAACO,oBAAoB,CACnCC,aAAa,EACbC,QAAQ,EACRC,eACF,CAAC;AACH;AAEA,OAAO,SAASC,sBAAsBA,CACpCH,aAAqB,EACrBC,QAAgB,EAChB;EACAT,gBAAgB,CAACW,sBAAsB,CAACH,aAAa,EAAEC,QAAQ,CAAC;AAClE;;AAEA;;AAEA,OAAO,SAASG,kBAAkBA,CAChCP,iBAAoC,EACpCQ,gBAAqC,EACrC;EACAb,gBAAgB,CAACY,kBAAkB,CAACP,iBAAiB,EAAEQ,gBAAgB,CAAC;AAC1E;AAEA,OAAO,SAASC,uBAAuBA,CAACZ,OAAe,EAAE;EACvDF,gBAAgB,CAACc,uBAAuB,CAACZ,OAAO,CAAC;AACnD;;AAEA;;AAEA,OAAO,SAASa,qBAAqBA,CACnCV,iBAAoC,EACpCW,gBAA+C,EAC/C;EACAhB,gBAAgB,CAACe,qBAAqB,CAACV,iBAAiB,EAAEW,gBAAgB,CAAC;AAC7E;AAEA,OAAO,SAASC,mBAAmBA,CACjCf,OAAe,EACfgB,aAAqD,EACrD;EACAlB,gBAAgB,CAACiB,mBAAmB,CAACf,OAAO,EAAEgB,aAAa,CAAC;AAC9D;AAEA,OAAO,SAASC,uBAAuBA,CAACjB,OAAe,EAAE;EACvDF,gBAAgB,CAACmB,uBAAuB,CAACjB,OAAO,CAAC;AACnD","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/registry.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/registry.js deleted file mode 100644 index a73a585a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/registry.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../common'; -import { BASE_PROPERTIES_CONFIG, createStyleBuilder } from './style'; -export const ERROR_MESSAGES = { - styleBuilderNotFound: componentName => `CSS style builder for component ${componentName} was not found` -}; -const baseStyleBuilder = createStyleBuilder(BASE_PROPERTIES_CONFIG, { - separatelyInterpolatedArrayProperties: ['transformOrigin', 'boxShadow'] -}); -const STYLE_BUILDERS = {}; -export function hasStyleBuilder(componentName) { - return !!STYLE_BUILDERS[componentName] || componentName.startsWith('RCT'); -} -export function getStyleBuilder(componentName) { - const styleBuilder = STYLE_BUILDERS[componentName]; - if (styleBuilder) { - return styleBuilder; - } - - // This captures all React Native components - if (componentName.startsWith('RCT')) { - return baseStyleBuilder; - } - throw new ReanimatedError(ERROR_MESSAGES.styleBuilderNotFound(componentName)); -} -export function registerComponentStyleBuilder(componentName, config) { - STYLE_BUILDERS[componentName] = createStyleBuilder(config); -} -//# sourceMappingURL=registry.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/registry.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/registry.js.map deleted file mode 100644 index e68a4c1d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/registry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","BASE_PROPERTIES_CONFIG","createStyleBuilder","ERROR_MESSAGES","styleBuilderNotFound","componentName","baseStyleBuilder","separatelyInterpolatedArrayProperties","STYLE_BUILDERS","hasStyleBuilder","startsWith","getStyleBuilder","styleBuilder","registerComponentStyleBuilder","config"],"sourceRoot":"../../../../src","sources":["css/native/registry.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,cAAc;AAE9C,SAASC,sBAAsB,EAAEC,kBAAkB,QAAQ,SAAS;AAEpE,OAAO,MAAMC,cAAc,GAAG;EAC5BC,oBAAoB,EAAGC,aAAqB,IAC1C,mCAAmCA,aAAa;AACpD,CAAC;AAED,MAAMC,gBAAgB,GAAGJ,kBAAkB,CAACD,sBAAsB,EAAE;EAClEM,qCAAqC,EAAE,CAAC,iBAAiB,EAAE,WAAW;AACxE,CAAC,CAAC;AAEF,MAAMC,cAA4C,GAAG,CAAC,CAAC;AAEvD,OAAO,SAASC,eAAeA,CAACJ,aAAqB,EAAW;EAC9D,OAAO,CAAC,CAACG,cAAc,CAACH,aAAa,CAAC,IAAIA,aAAa,CAACK,UAAU,CAAC,KAAK,CAAC;AAC3E;AAEA,OAAO,SAASC,eAAeA,CAACN,aAAqB,EAAgB;EACnE,MAAMO,YAAY,GAAGJ,cAAc,CAACH,aAAa,CAAC;EAElD,IAAIO,YAAY,EAAE;IAChB,OAAOA,YAAY;EACrB;;EAEA;EACA,IAAIP,aAAa,CAACK,UAAU,CAAC,KAAK,CAAC,EAAE;IACnC,OAAOJ,gBAAgB;EACzB;EAEA,MAAM,IAAIN,eAAe,CAACG,cAAc,CAACC,oBAAoB,CAACC,aAAa,CAAC,CAAC;AAC/E;AAEA,OAAO,SAASQ,6BAA6BA,CAC3CR,aAAqB,EACrBS,MAA0B,EAC1B;EACAN,cAAc,CAACH,aAAa,CAAC,GAAGH,kBAAkB,CAACY,MAAM,CAAC;AAC5D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/config.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/config.js deleted file mode 100644 index 69bb64d3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/config.js +++ /dev/null @@ -1,255 +0,0 @@ -'use strict'; - -import { IS_ANDROID, processBoxShadowNative, processTransformOrigin } from '../../../common'; -import { processAspectRatio, processColor, processFontWeight, processGap, processInset, processInsetBlock, processInsetInline, processTransform } from './processors'; -const colorAttributes = { - process: processColor -}; -export const BASE_PROPERTIES_CONFIG = { - /** Layout and Positioning */ - // FLEXBOX - flex: true, - flexBasis: true, - flexDirection: true, - justifyContent: true, - alignItems: true, - alignSelf: true, - alignContent: true, - flexGrow: true, - flexShrink: true, - flexWrap: true, - gap: { - process: processGap - }, - rowGap: true, - columnGap: true, - start: true, - end: true, - direction: true, - // DIMENSIONS - height: true, - width: true, - maxHeight: true, - maxWidth: true, - minHeight: true, - minWidth: true, - // MARGINS - margin: true, - marginTop: true, - marginRight: true, - marginBottom: true, - marginLeft: true, - marginStart: true, - marginEnd: true, - // TODO - check if these props should depend on layout direction - marginBlock: { - as: 'marginVertical' - }, - marginBlockEnd: { - as: 'marginBottom' - }, - marginBlockStart: { - as: 'marginTop' - }, - marginInline: { - as: 'marginHorizontal' - }, - marginInlineEnd: { - as: 'marginRight' - }, - marginInlineStart: { - as: 'marginLeft' - }, - marginHorizontal: true, - marginVertical: true, - // PADDINGS - padding: true, - paddingTop: true, - paddingRight: true, - paddingBottom: true, - paddingLeft: true, - paddingStart: true, - paddingEnd: true, - // TODO - check if these props should depend on layout direction - paddingBlock: { - as: 'paddingVertical' - }, - paddingBlockEnd: { - as: 'paddingBottom' - }, - paddingBlockStart: { - as: 'paddingTop' - }, - paddingInline: { - as: 'paddingHorizontal' - }, - paddingInlineEnd: { - as: 'paddingRight' - }, - paddingInlineStart: { - as: 'paddingLeft' - }, - paddingHorizontal: true, - paddingVertical: true, - // INSETS - top: true, - left: true, - bottom: true, - right: true, - inset: { - process: processInset - }, - insetBlock: { - process: processInsetBlock - }, - insetInline: { - process: processInsetInline - }, - // TODO - check if these props should depend on layout direction - insetBlockStart: { - as: 'top' - }, - insetBlockEnd: { - as: 'bottom' - }, - insetInlineStart: { - as: 'left' - }, - insetInlineEnd: { - as: 'right' - }, - // OTHERS - position: true, - display: true, - overflow: true, - zIndex: true, - aspectRatio: { - process: processAspectRatio - }, - boxSizing: false, - // web only - - /** Appearance */ - // COLORS - // Background - backgroundColor: colorAttributes, - // Text - color: colorAttributes, - textDecorationColor: colorAttributes, - textShadowColor: colorAttributes, - // Border - borderColor: colorAttributes, - borderTopColor: colorAttributes, - borderBlockStartColor: colorAttributes, - borderRightColor: colorAttributes, - borderEndColor: colorAttributes, - borderBottomColor: colorAttributes, - borderBlockEndColor: colorAttributes, - borderLeftColor: colorAttributes, - borderStartColor: colorAttributes, - borderBlockColor: colorAttributes, - // Other - outlineColor: colorAttributes, - shadowColor: colorAttributes, - overlayColor: IS_ANDROID ? colorAttributes : false, - tintColor: colorAttributes, - // SHADOWS - // View - shadowOffset: !IS_ANDROID, - shadowOpacity: !IS_ANDROID, - shadowRadius: !IS_ANDROID, - elevation: IS_ANDROID, - textShadowOffset: true, - textShadowRadius: true, - boxShadow: { - process: processBoxShadowNative - }, - // BORDERS - // Radius - borderRadius: true, - // top-left - borderTopLeftRadius: true, - borderTopStartRadius: true, - borderStartStartRadius: true, - // top-right - borderTopRightRadius: true, - borderTopEndRadius: true, - borderStartEndRadius: true, - // bottom-left - borderBottomLeftRadius: true, - borderBottomStartRadius: true, - borderEndStartRadius: true, - // bottom-right - borderBottomRightRadius: true, - borderBottomEndRadius: true, - borderEndEndRadius: true, - // Width - borderWidth: true, - // top - borderTopWidth: true, - borderStartWidth: true, - // bottom - borderBottomWidth: true, - borderEndWidth: true, - // left - borderLeftWidth: true, - // right - borderRightWidth: true, - // Decoration - borderCurve: false, - borderStyle: true, - // OUTLINES - outlineOffset: true, - outlineStyle: true, - outlineWidth: true, - // TRANSFORMS - transformOrigin: { - process: processTransformOrigin - }, - transform: { - process: processTransform - }, - // OTHERS - backfaceVisibility: true, - opacity: true, - mixBlendMode: true, - // eslint-disable-next-line camelcase - experimental_backgroundImage: false, - // TODO - - /** Typography */ - // Font - fontFamily: true, - fontSize: true, - fontStyle: true, - fontVariant: true, - fontWeight: { - process: processFontWeight - }, - // Alignment - textAlign: true, - textAlignVertical: true, - verticalAlign: false, - // Decoration - letterSpacing: true, - lineHeight: true, - textTransform: true, - textDecorationLine: true, - textDecorationStyle: true, - // Others - userSelect: true, - writingDirection: false, - includeFontPadding: true, - /** Others */ - // Image - resizeMode: true, - objectFit: false, - // Cursor - cursor: true, - pointerEvents: true, - // Others - filter: false, - // web only - isolation: true -}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/config.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/config.js.map deleted file mode 100644 index ef9eac8e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_ANDROID","processBoxShadowNative","processTransformOrigin","processAspectRatio","processColor","processFontWeight","processGap","processInset","processInsetBlock","processInsetInline","processTransform","colorAttributes","process","BASE_PROPERTIES_CONFIG","flex","flexBasis","flexDirection","justifyContent","alignItems","alignSelf","alignContent","flexGrow","flexShrink","flexWrap","gap","rowGap","columnGap","start","end","direction","height","width","maxHeight","maxWidth","minHeight","minWidth","margin","marginTop","marginRight","marginBottom","marginLeft","marginStart","marginEnd","marginBlock","as","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingStart","paddingEnd","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingInline","paddingInlineEnd","paddingInlineStart","paddingHorizontal","paddingVertical","top","left","bottom","right","inset","insetBlock","insetInline","insetBlockStart","insetBlockEnd","insetInlineStart","insetInlineEnd","position","display","overflow","zIndex","aspectRatio","boxSizing","backgroundColor","color","textDecorationColor","textShadowColor","borderColor","borderTopColor","borderBlockStartColor","borderRightColor","borderEndColor","borderBottomColor","borderBlockEndColor","borderLeftColor","borderStartColor","borderBlockColor","outlineColor","shadowColor","overlayColor","tintColor","shadowOffset","shadowOpacity","shadowRadius","elevation","textShadowOffset","textShadowRadius","boxShadow","borderRadius","borderTopLeftRadius","borderTopStartRadius","borderStartStartRadius","borderTopRightRadius","borderTopEndRadius","borderStartEndRadius","borderBottomLeftRadius","borderBottomStartRadius","borderEndStartRadius","borderBottomRightRadius","borderBottomEndRadius","borderEndEndRadius","borderWidth","borderTopWidth","borderStartWidth","borderBottomWidth","borderEndWidth","borderLeftWidth","borderRightWidth","borderCurve","borderStyle","outlineOffset","outlineStyle","outlineWidth","transformOrigin","transform","backfaceVisibility","opacity","mixBlendMode","experimental_backgroundImage","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","textAlign","textAlignVertical","verticalAlign","letterSpacing","lineHeight","textTransform","textDecorationLine","textDecorationStyle","userSelect","writingDirection","includeFontPadding","resizeMode","objectFit","cursor","pointerEvents","filter","isolation"],"sourceRoot":"../../../../../src","sources":["css/native/style/config.ts"],"mappings":"AAAA,YAAY;;AACZ,SACEA,UAAU,EACVC,sBAAsB,EACtBC,sBAAsB,QACjB,iBAAiB;AAExB,SACEC,kBAAkB,EAClBC,YAAY,EACZC,iBAAiB,EACjBC,UAAU,EACVC,YAAY,EACZC,iBAAiB,EACjBC,kBAAkB,EAClBC,gBAAgB,QACX,cAAc;AAGrB,MAAMC,eAAe,GAAG;EAAEC,OAAO,EAAER;AAAa,CAAC;AAEjD,OAAO,MAAMS,sBAAsD,GAAG;EACpE;EACA;EACAC,IAAI,EAAE,IAAI;EACVC,SAAS,EAAE,IAAI;EACfC,aAAa,EAAE,IAAI;EACnBC,cAAc,EAAE,IAAI;EACpBC,UAAU,EAAE,IAAI;EAChBC,SA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AEtB;EACAC,WAAW,EAAE,KAAK;EAClBC,WAAW,EAAE,IAAI;EAEjB;EACAC,aAAa,EAAE,IAAI;EACnBC,YAAY,EAAE,IAAI;EAClBC,YAAY,EAAE,IAAI;EAElB;EACAC,eAAe,EAAE;IAAE1H,OAAO,EAAEV;EAAuB,CAAC;EACpDqI,SAAS,EAAE;IAAE3H,OAAO,EAAEF;EAAiB,CAAC;EAExC;EACA8H,kBAAkB,EAAE,IAAI;EACxBC,OAAO,EAAE,IAAI;EACbC,YAAY,EAAE,IAAI;EAClB;EACAC,4BAA4B,EAAE,KAAK;EAAE;;EAErC;EACA;EACAC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,SAAS,EAAE,IAAI;EACfC,WAAW,EAAE,IAAI;EACjBC,UAAU,EAAE;IAAEpI,OAAO,EAAEP;EAAkB,CAAC;EAC1C;EACA4I,SAAS,EAAE,IAAI;EACfC,iBAAiB,EAAE,IAAI;EACvBC,aAAa,EAAE,KAAK;EACpB;EACAC,aAAa,EAAE,IAAI;EACnBC,UAAU,EAAE,IAAI;EAChBC,aAAa,EAAE,IAAI;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,mBAAmB,EAAE,IAAI;EACzB;EACAC,UAAU,EAAE,IAAI;EAChBC,gBAAgB,EAAE,KAAK;EACvBC,kBAAkB,EAAE,IAAI;EAExB;EACA;EACAC,UAAU,EAAE,IAAI;EAChBC,SAAS,EAAE,KAAK;EAChB;EACAC,MAAM,EAAE,IAAI;EACZC,aAAa,EAAE,IAAI;EACnB;EACAC,MAAM,EAAE,KAAK;EAAE;EACfC,SAAS,EAAE;AACb,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/createStyleBuilder.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/createStyleBuilder.js deleted file mode 100644 index f5021a48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/createStyleBuilder.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict'; - -import { isConfigPropertyAlias, isDefined, isRecord } from '../../utils'; -class StyleBuilderImpl { - processedProps = {}; - constructor(config, options) { - this.config = config; - this.buildMiddleware = options?.buildMiddleware ?? (props => props); - this.separatelyInterpolatedArrayProperties_ = options?.separatelyInterpolatedArrayProperties ?? []; - } - isSeparatelyInterpolatedArrayProperty(property) { - return this.separatelyInterpolatedArrayProperties_.includes(property); - } - add(property, value) { - const configValue = this.config[property]; - if (!configValue || !isDefined(value)) { - return; - } - if (configValue === true) { - this.maybeAssignProp(property, value); - } else if (isConfigPropertyAlias(configValue)) { - this.add(configValue.as, value); - } else { - const { - process - } = configValue; - const processedValue = process ? process(value) : value; - if (!isDefined(processedValue)) { - return; - } - if (isRecord(processedValue)) { - this.maybeAssignProps(processedValue); - } else { - this.maybeAssignProp(property, processedValue); - } - } - } - build() { - const result = this.buildMiddleware(this.processedProps); - this.cleanup(); - if (Object.keys(result).length === 0) { - return null; - } - return result; - } - buildFrom(props) { - Object.entries(props).forEach(([key, value]) => this.add(key, value)); - return this.build(); - } - maybeAssignProp(property, value) { - this.processedProps[property] ??= value; - } - maybeAssignProps(props) { - Object.entries(props).forEach(([key, value]) => this.maybeAssignProp(key, value)); - } - cleanup() { - this.processedProps = {}; - } -} -export default function createStyleBuilder(config, options) { - return new StyleBuilderImpl(config, options); -} -//# sourceMappingURL=createStyleBuilder.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/createStyleBuilder.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/createStyleBuilder.js.map deleted file mode 100644 index 320e8925..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/createStyleBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isConfigPropertyAlias","isDefined","isRecord","StyleBuilderImpl","processedProps","constructor","config","options","buildMiddleware","props","separatelyInterpolatedArrayProperties_","separatelyInterpolatedArrayProperties","isSeparatelyInterpolatedArrayProperty","property","includes","add","value","configValue","maybeAssignProp","as","process","processedValue","maybeAssignProps","build","result","cleanup","Object","keys","length","buildFrom","entries","forEach","key","createStyleBuilder"],"sourceRoot":"../../../../../src","sources":["css/native/style/createStyleBuilder.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,qBAAqB,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,aAAa;AAYxE,MAAMC,gBAAgB,CAAiD;EAK7DC,cAAc,GAAG,CAAC,CAAC;EAE3BC,WAAWA,CAACC,MAA6B,EAAEC,OAAgC,EAAE;IAC3E,IAAI,CAACD,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACE,eAAe,GAAGD,OAAO,EAAEC,eAAe,KAAMC,KAAK,IAAKA,KAAK,CAAC;IACrE,IAAI,CAACC,sCAAsC,GACzCH,OAAO,EAAEI,qCAAqC,IAAI,EAAE;EACxD;EAEAC,qCAAqCA,CAACC,QAAiB,EAAW;IAChE,OAAO,IAAI,CAACH,sCAAsC,CAACI,QAAQ,CAACD,QAAQ,CAAC;EACvE;EAEAE,GAAGA,CAACF,QAAiB,EAAEG,KAAiB,EAAQ;IAC9C,MAAMC,WAAW,GAAG,IAAI,CAACX,MAAM,CAACO,QAAQ,CAAC;IAEzC,IAAI,CAACI,WAAW,IAAI,CAAChB,SAAS,CAACe,KAAK,CAAC,EAAE;MACrC;IACF;IAEA,IAAIC,WAAW,KAAK,IAAI,EAAE;MACxB,IAAI,CAACC,eAAe,CAACL,QAAQ,EAAEG,KAAK,CAAC;IACvC,CAAC,MAAM,IAAIhB,qBAAqB,CAAIiB,WAAW,CAAC,EAAE;MAChD,IAAI,CAACF,GAAG,CAACE,WAAW,CAACE,EAAE,EAAEH,KAAK,CAAC;IACjC,CAAC,MAAM;MACL,MAAM;QAAEI;MAAQ,CAAC,GAAGH,WAAW;MAC/B,MAAMI,cAAc,GAAGD,OAAO,GAAGA,OAAO,CAACJ,KAAK,CAAC,GAAGA,KAAK;MAEvD,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AO,IAAIJ,gBAAgB,CAACG,MAAM,EAAEC,OAAO,CAAC;AAC9C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/index.js deleted file mode 100644 index 96e9fcc9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export * from './config'; -export { default as createStyleBuilder } from './createStyleBuilder'; -export * from './processors'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/index.js.map deleted file mode 100644 index 23286f41..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","createStyleBuilder"],"sourceRoot":"../../../../../src","sources":["css/native/style/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,SAASA,OAAO,IAAIC,kBAAkB,QAAQ,sBAAsB;AACpE,cAAc,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/colors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/colors.js deleted file mode 100644 index 9fcedbb3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/colors.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -import { processColor as processColorInternal, ReanimatedError } from '../../../../common'; -export const ERROR_MESSAGES = { - invalidColor: color => `Invalid color value: ${String(color)}` -}; -export const processColor = value => { - let normalizedColor = null; - if (typeof value === 'string' && value === 'transparent') { - normalizedColor = 'transparent'; - } else { - normalizedColor = processColorInternal(value); - } - if (!normalizedColor && normalizedColor !== 0) { - throw new ReanimatedError(ERROR_MESSAGES.invalidColor(value)); - } - return normalizedColor; -}; -//# sourceMappingURL=colors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/colors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/colors.js.map deleted file mode 100644 index ef747f9e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processColor","processColorInternal","ReanimatedError","ERROR_MESSAGES","invalidColor","color","String","value","normalizedColor"],"sourceRoot":"../../../../../../src","sources":["css/native/style/processors/colors.ts"],"mappings":"AAAA,YAAY;;AAIZ,SACEA,YAAY,IAAIC,oBAAoB,EACpCC,eAAe,QACV,oBAAoB;AAG3B,OAAO,MAAMC,cAAc,GAAG;EAC5BC,YAAY,EAAGC,KAAiC,IAC9C,wBAAwBC,MAAM,CAACD,KAAK,CAAC;AACzC,CAAC;AAED,OAAO,MAAML,YAGZ,GAAIO,KAAK,IAAK;EACb,IAAIC,eAAuC,GAAG,IAAI;EAElD,IAAI,OAAOD,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,aAAa,EAAE;IACxDC,eAAe,GAAG,aAAa;EACjC,CAAC,MAAM;IACLA,eAAe,GAAGP,oBAAoB,CAACM,KAAK,CAAC;EAC/C;EAEA,IAAI,CAACC,eAAe,IAAIA,eAAe,KAAK,CAAC,EAAE;IAC7C,MAAM,IAAIN,eAAe,CAACC,cAAc,CAACC,YAAY,CAACG,KAAK,CAAC,CAAC;EAC/D;EAEA,OAAOC,eAAe;AACxB,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/font.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/font.js deleted file mode 100644 index 62a25017..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/font.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { FONT_WEIGHT_MAPPINGS } from '../../../constants'; -const ERROR_MESSAGES = { - invalidFontWeight: weight => `Invalid font weight value: ${weight}` -}; -export const processFontWeight = value => { - if (typeof value === 'number' || !isNaN(+value)) { - return value.toString(); - } - if (value in FONT_WEIGHT_MAPPINGS) { - return FONT_WEIGHT_MAPPINGS[value]; - } - throw new ReanimatedError(ERROR_MESSAGES.invalidFontWeight(value)); -}; -//# sourceMappingURL=font.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/font.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/font.js.map deleted file mode 100644 index 6aa38d20..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/font.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","FONT_WEIGHT_MAPPINGS","ERROR_MESSAGES","invalidFontWeight","weight","processFontWeight","value","isNaN","toString"],"sourceRoot":"../../../../../../src","sources":["css/native/style/processors/font.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AACpD,SAASC,oBAAoB,QAAQ,oBAAoB;AAGzD,MAAMC,cAAc,GAAG;EACrBC,iBAAiB,EAAGC,MAAuB,IACzC,8BAA8BA,MAAM;AACxC,CAAC;AAED,OAAO,MAAMC,iBAAkD,GAAIC,KAAK,IAAK;EAC3E,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAAC,CAACD,KAAK,CAAC,EAAE;IAC/C,OAAOA,KAAK,CAACE,QAAQ,CAAC,CAAC;EACzB;EAEA,IAAIF,KAAK,IAAIL,oBAAoB,EAAE;IACjC,OAAOA,oBAAoB,CAACK,KAAK,CAAsC;EACzE;EAEA,MAAM,IAAIN,eAAe,CAACE,cAAc,CAACC,iBAAiB,CAACG,KAAK,CAAC,CAAC;AACpE,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/index.js deleted file mode 100644 index fb79f4ab..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -export { processColor } from './colors'; -export { processFontWeight } from './font'; -export { processInset, processInsetBlock, processInsetInline } from './insets'; -export { processAspectRatio, processGap } from './others'; -export { processTransform } from './transform'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/index.js.map deleted file mode 100644 index 780f0fa2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processColor","processFontWeight","processInset","processInsetBlock","processInsetInline","processAspectRatio","processGap","processTransform"],"sourceRoot":"../../../../../../src","sources":["css/native/style/processors/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,YAAY,QAAQ,UAAU;AACvC,SAASC,iBAAiB,QAAQ,QAAQ;AAC1C,SAASC,YAAY,EAAEC,iBAAiB,EAAEC,kBAAkB,QAAQ,UAAU;AAC9E,SAASC,kBAAkB,EAAEC,UAAU,QAAQ,UAAU;AACzD,SAASC,gBAAgB,QAAQ,aAAa","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/insets.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/insets.js deleted file mode 100644 index 1f920d52..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/insets.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -export const processInset = value => ({ - top: value, - bottom: value, - left: value, - right: value -}); -export const processInsetBlock = value => ({ - top: value, - bottom: value -}); -export const processInsetInline = value => ({ - left: value, - right: value -}); -//# sourceMappingURL=insets.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/insets.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/insets.js.map deleted file mode 100644 index 6d0f3447..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/insets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processInset","value","top","bottom","left","right","processInsetBlock","processInsetInline"],"sourceRoot":"../../../../../../src","sources":["css/native/style/processors/insets.ts"],"mappings":"AAAA,YAAY;;AAUZ,OAAO,MAAMA,YAA4B,GAAIC,KAAK,KAAM;EACtDC,GAAG,EAAED,KAAK;EACVE,MAAM,EAAEF,KAAK;EACbG,IAAI,EAAEH,KAAK;EACXI,KAAK,EAAEJ;AACT,CAAC,CAAC;AAEF,OAAO,MAAMK,iBAAiC,GAAIL,KAAK,KAAM;EAC3DC,GAAG,EAAED,KAAK;EACVE,MAAM,EAAEF;AACV,CAAC,CAAC;AAEF,OAAO,MAAMM,kBAAkC,GAAIN,KAAK,KAAM;EAC5DG,IAAI,EAAEH,KAAK;EACXI,KAAK,EAAEJ;AACT,CAAC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/others.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/others.js deleted file mode 100644 index 4da4f5a2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/others.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -export const ERROR_MESSAGES = { - unsupportedAspectRatio: ratio => `Unsupported aspect ratio: ${ratio}. Expected a number or a string in "a/b" format.` -}; -export const processAspectRatio = value => { - if (typeof value === 'number' || !isNaN(+value)) { - return +value; - } else if (typeof value === 'string') { - const parts = value.split('/'); - if (parts.length === 2) { - const numerator = parseFloat(parts[0]); - const denominator = parseFloat(parts[1]); - if (!isNaN(numerator) && !isNaN(denominator) && denominator !== 0) { - return numerator / denominator; - } - } - } - throw new ReanimatedError(ERROR_MESSAGES.unsupportedAspectRatio(value)); -}; -export const processGap = value => ({ - rowGap: value, - columnGap: value -}); -//# sourceMappingURL=others.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/others.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/others.js.map deleted file mode 100644 index 4c5fba50..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/others.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","ERROR_MESSAGES","unsupportedAspectRatio","ratio","processAspectRatio","value","isNaN","parts","split","length","numerator","parseFloat","denominator","processGap","rowGap","columnGap"],"sourceRoot":"../../../../../../src","sources":["css/native/style/processors/others.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAGpD,OAAO,MAAMC,cAAc,GAAG;EAC5BC,sBAAsB,EAAGC,KAAsB,IAC7C,6BAA6BA,KAAK;AACtC,CAAC;AAED,OAAO,MAAMC,kBAAmD,GAAIC,KAAK,IAAK;EAC5E,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAAC,CAACD,KAAK,CAAC,EAAE;IAC/C,OAAO,CAACA,KAAK;EACf,CAAC,MAAM,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IACpC,MAAME,KAAK,GAAGF,KAAK,CAACG,KAAK,CAAC,GAAG,CAAC;IAC9B,IAAID,KAAK,CAACE,MAAM,KAAK,CAAC,EAAE;MACtB,MAAMC,SAAS,GAAGC,UAAU,CAACJ,KAAK,CAAC,CAAC,CAAC,CAAC;MACtC,MAAMK,WAAW,GAAGD,UAAU,CAACJ,KAAK,CAAC,CAAC,CAAC,CAAC;MACxC,IAAI,CAACD,KAAK,CAACI,SAAS,CAAC,IAAI,CAACJ,KAAK,CAACM,WAAW,CAAC,IAAIA,WAAW,KAAK,CAAC,EAAE;QACjE,OAAOF,SAAS,GAAGE,WAAW;MAChC;IACF;EACF;EAEA,MAAM,IAAIZ,eAAe,CAACC,cAAc,CAACC,sBAAsB,CAACG,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,OAAO,MAAMQ,UAA2C,GAAIR,KAAK,KAAM;EACrES,MAAM,EAAET,KAAK;EACbU,SAAS,EAAEV;AACb,CAAC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/transform.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/transform.js deleted file mode 100644 index 0ede15a5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/transform.js +++ /dev/null @@ -1,138 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { isAngle, isNumber, isNumberArray, isPercentage } from '../../../utils'; -export const ERROR_MESSAGES = { - invalidTransform: transform => `Invalid transform property: ${transform}` -}; -const parseTransformProperty = transform => { - const [key, valueString] = transform.split(/\(\s*/); - const values = parseValues(valueString.replace(/\)$/g, '')); - switch (key) { - case 'translate': - return parseTranslate(values); - case 'translateX': - return parseTranslateX(values); - case 'translateY': - return parseTranslateY(values); - case 'scale': - return parseScale(values); - case 'scaleX': - return parseScaleX(values); - case 'scaleY': - return parseScaleY(values); - case 'rotate': - case 'rotateX': - case 'rotateY': - case 'rotateZ': - return parseRotate(key, values); - case 'skew': - return parseSkew(values); - case 'skewX': - return parseSkewX(values); - case 'skewY': - return parseSkewY(values); - case 'matrix': - return parseMatrix(values); - default: - return []; - } -}; -function parseValues(valueString) { - return valueString.split(',').map(value => { - const trimmedValue = value.trim(); - if (['deg', 'rad', '%'].some(unit => trimmedValue.endsWith(unit))) { - return trimmedValue; - } - const numValue = parseFloat(trimmedValue); - return isNaN(numValue) ? trimmedValue : numValue; - }); -} -function parseTranslate(values) { - if (values.length > 2) { - return []; - } - const result = parseTranslateX([values[0]]).concat(parseTranslateY([values[1] ?? values[0]])); - return result.length === 2 ? result : []; -} -function parseTranslateX(values) { - return values.length === 1 && (isNumber(values[0]) || isPercentage(values[0])) ? [{ - translateX: values[0] - }] : []; -} -function parseTranslateY(values) { - return values.length === 1 && (isNumber(values[0]) || isPercentage(values[0])) ? [{ - translateY: values[0] - }] : []; -} -function parseScale(values) { - if (values.length > 2) { - return []; - } - if (values.length === 1) { - return isNumber(values[0]) ? [{ - scale: values[0] - }] : []; - } - const result = parseScaleX([values[0]]).concat(parseScaleY([values[1] ?? values[0]])); - return result.length === 2 ? result : []; -} -function parseScaleX(values) { - return values.length === 1 && isNumber(values[0]) ? [{ - scaleX: values[0] - }] : []; -} -function parseScaleY(values) { - return values.length === 1 && isNumber(values[0]) ? [{ - scaleY: values[0] - }] : []; -} -function parseRotate(key, values) { - return values.length === 1 && (isAngle(values[0]) || values[0] === 0) ? [{ - [key]: values[0] === 0 ? '0deg' : values[0] - }] : []; -} -function parseSkew(values) { - if (values.length > 2) { - return []; - } - const result = parseSkewX([values[0]]).concat(parseSkewY([values[1] ?? values[0]])); - return result.length === 2 ? result : []; -} -function parseSkewX(values) { - return values.length === 1 && (isAngle(values[0]) || values[0] === 0) ? [{ - skewX: values[0] === 0 ? '0deg' : values[0] - }] : []; -} -function parseSkewY(values) { - return values.length === 1 && (isAngle(values[0]) || values[0] === 0) ? [{ - skewY: values[0] === 0 ? '0deg' : values[0] - }] : []; -} -function parseMatrix(values) { - let matrixValues = []; - if (isNumberArray(values)) { - if (values.length === 6) { - // prettier-ignore - matrixValues = [values[0], values[1], 0, 0, values[2], values[3], 0, 0, 0, 0, 1, 0, values[4], values[5], 0, 1]; - } else if (values.length === 16) { - matrixValues = values; - } - } - return matrixValues.length > 0 ? [{ - matrix: matrixValues - }] : []; -} -export const processTransform = value => { - if (typeof value !== 'string') { - return value; - } - return value.split(/\)\s*/).filter(Boolean).flatMap(part => { - const parsed = parseTransformProperty(part); - if (parsed.length === 0) { - throw new ReanimatedError(ERROR_MESSAGES.invalidTransform(`${part})`)); - } - return parsed; - }); -}; -//# sourceMappingURL=transform.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/transform.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/transform.js.map deleted file mode 100644 index f43d3827..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/processors/transform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","isAngle","isNumber","isNumberArray","isPercentage","ERROR_MESSAGES","invalidTransform","transform","parseTransformProperty","key","valueString","split","values","parseValues","replace","parseTranslate","parseTranslateX","parseTranslateY","parseScale","parseScaleX","parseScaleY","parseRotate","parseSkew","parseSkewX","parseSkewY","parseMatrix","map","value","trimmedValue","trim","some","unit","endsWith","numValue","parseFloat","isNaN","length","result","concat","translateX","translateY","scale","scaleX","scaleY","skewX","skewY","matrixValues","matrix","processTransform","filter","Boolean","flatMap","part","parsed"],"sourceRoot":"../../../../../../src","sources":["css/native/style/processors/transform.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,oBAAoB;AAEpD,SAASC,OAAO,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,YAAY,QAAQ,gBAAgB;AAG/E,OAAO,MAAMC,cAAc,GAAG;EAC5BC,gBAAgB,EAAGC,SAAiB,IAClC,+BAA+BA,SAAS;AAC5C,CAAC;AAED,MAAMC,sBAAsB,GAAID,SAAiB,IAAsB;EACrE,MAAM,CAACE,GAAG,EAAEC,WAAW,CAAC,GAAGH,SAAS,CAACI,KAAK,CAAC,OAAO,CAAC;EACnD,MAAMC,MAAM,GAAGC,WAAW,CAACH,WAAW,CAACI,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;EAE3D,QAAQL,GAAG;IACT,KAAK,WAAW;MACd,OAAOM,cAAc,CAACH,MAAM,CAAC;IAC/B,KAAK,YAAY;MACf,OAAOI,e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AAC,EAAEA,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAC3B;IACH,CAAC,MAAM,IAAIA,MAAM,CAACwB,MAAM,KAAK,EAAE,EAAE;MAC/BU,YAAY,GAAGlC,MAAM;IACvB;EACF;EAEA,OAAOkC,YAAY,CAACV,MAAM,GAAG,CAAC,GAAG,CAAC;IAAEW,MAAM,EAAED;EAAa,CAAC,CAAC,GAAG,EAAE;AAClE;AAEA,OAAO,MAAME,gBAA0D,GACrErB,KAAK,IACF;EACH,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAOA,KAAK;EACd;EAEA,OAAOA,KAAK,CACThB,KAAK,CAAC,OAAO,CAAC,CACdsC,MAAM,CAACC,OAAO,CAAC,CACfC,OAAO,CAAEC,IAAI,IAAK;IACjB,MAAMC,MAAM,GAAG7C,sBAAsB,CAAC4C,IAAI,CAAC;IAE3C,IAAIC,MAAM,CAACjB,MAAM,KAAK,CAAC,EAAE;MACvB,MAAM,IAAIpC,eAAe,CAACK,cAAc,CAACC,gBAAgB,CAAC,GAAG8C,IAAI,GAAG,CAAC,CAAC;IACxE;IAEA,OAAOC,MAAM;EACf,CAAC,CAAC;AACN,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/types.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/types.js deleted file mode 100644 index ccadfcf8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/types.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/types.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/types.js.map deleted file mode 100644 index e0257d69..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/style/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/native/style/types.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/animation.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/animation.js deleted file mode 100644 index 599f17d4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/animation.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=animation.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/animation.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/animation.js.map deleted file mode 100644 index bc45d04e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/animation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/native/types/animation.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/index.js deleted file mode 100644 index d913af9e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/index.js.map deleted file mode 100644 index 63cff671..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/native/types/index.ts"],"mappings":"AAAA,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/transition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/transition.js deleted file mode 100644 index 73e743c1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/transition.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=transition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/transition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/transition.js.map deleted file mode 100644 index a8456ade..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/native/types/transition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/native/types/transition.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.js deleted file mode 100644 index cda425f6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { CSSKeyframesRuleImpl, CSSManager } from './native'; -//# sourceMappingURL=platform.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.js.map deleted file mode 100644 index 0cc871f9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CSSKeyframesRuleImpl","CSSManager"],"sourceRoot":"../../../src","sources":["css/platform.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,EAAEC,UAAU,QAAQ,UAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.web.js deleted file mode 100644 index f6abb09a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.web.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { CSSKeyframesRuleImpl, CSSManager } from './web'; -//# sourceMappingURL=platform.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.web.js.map deleted file mode 100644 index 5242e6c7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/platform.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CSSKeyframesRuleImpl","CSSManager"],"sourceRoot":"../../../src","sources":["css/platform.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,EAAEC,UAAU,QAAQ,OAAO","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/index.js deleted file mode 100644 index b4fb06e6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -import keyframes from './keyframes'; -import { create } from './stylesheet'; -export const css = { - create, - keyframes -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/index.js.map deleted file mode 100644 index 1a9b9082..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["keyframes","create","css"],"sourceRoot":"../../../../src","sources":["css/stylesheet/index.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAOA,SAAS,MAAM,aAAa;AACnC,SAASC,MAAM,QAAQ,cAAc;AAErC,OAAO,MAAMC,GAAG,GAAG;EACjBD,MAAM;EACND;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/keyframes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/keyframes.js deleted file mode 100644 index 35bc6a14..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/keyframes.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -import { CSSKeyframesRuleImpl } from '../platform'; -export default function keyframes( -// TODO - think of better types -keyframeDefinitions) { - return new CSSKeyframesRuleImpl(keyframeDefinitions); -} -//# sourceMappingURL=keyframes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/keyframes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/keyframes.js.map deleted file mode 100644 index b66cb4be..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/keyframes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CSSKeyframesRuleImpl","keyframes","keyframeDefinitions"],"sourceRoot":"../../../../src","sources":["css/stylesheet/keyframes.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,QAAQ,aAAa;AAOlD,eAAe,SAASC,SAASA;AAC/B;AACAC,mBACmC,EACjB;EAClB,OAAO,IAAIF,oBAAoB,CAACE,mBAAmB,CAAC;AACtD","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/stylesheet.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/stylesheet.js deleted file mode 100644 index 2bcae1e7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/stylesheet.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -import { CSSKeyframesRuleImpl } from '../platform'; -import { isCSSKeyframesRule } from '../utils'; -function parseAnimationName(animationName) { - if (typeof animationName !== 'object') { - return; - } - const keyframesArray = Array.isArray(animationName) ? animationName : [animationName]; - return keyframesArray.map(keyframes => isCSSKeyframesRule(keyframes) ? keyframes : new CSSKeyframesRuleImpl(keyframes)); -} -export const create = styles => { - // TODO - implement more optimizations and correctness checks in dev here - - for (const key in styles) { - const style = styles[key]; - if (style.animationName) { - style.animationName = parseAnimationName(style.animationName); - } - } - if (__DEV__) { - for (const key in styles) { - Object.freeze(styles[key]); - } - } - return styles; -}; -//# sourceMappingURL=stylesheet.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/stylesheet.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/stylesheet.js.map deleted file mode 100644 index 2513adfe..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/stylesheet/stylesheet.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CSSKeyframesRuleImpl","isCSSKeyframesRule","parseAnimationName","animationName","keyframesArray","Array","isArray","map","keyframes","create","styles","key","style","__DEV__","Object","freeze"],"sourceRoot":"../../../../src","sources":["css/stylesheet/stylesheet.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,QAAQ,aAAa;AAElD,SAASC,kBAAkB,QAAQ,UAAU;AAI7C,SAASC,kBAAkBA,CACzBC,aAAkD,EAClD;EACA,IAAI,OAAOA,aAAa,KAAK,QAAQ,EAAE;IACrC;EACF;EAEA,MAAMC,cAAc,GAAGC,KAAK,CAACC,OAAO,CAACH,aAAa,CAAC,GAC/CA,aAAa,GACb,CAACA,aAAa,CAAC;EAEnB,OAAOC,cAAc,CAACG,GAAG,CAAEC,SAAS,IAClCP,kBAAkB,CAACO,SAAS,CAAC,GACzBA,SAAS,GACT,IAAIR,oBAAoB,CAACQ,SAAS,CACxC,CAAC;AACH;AAEA,OAAO,MAAMC,MAAM,GAEjBC,MAA4B,IACtB;EACN;;EAEA,KAAK,MAAMC,GAAG,IAAID,MAAM,EAAE;IACxB,MAAME,KAAK,GAAGF,MAAM,CAACC,GAAG,CAAC;IACzB,IAAIC,KAAK,CAACT,aAAa,EAAE;MACvBS,KAAK,CAACT,aAAa,GAAGD,kBAAkB,CAACU,KAAK,CAACT,aAAa,CAAC;IAC/D;EACF;EAEA,IAAIU,OAAO,EAAE;IACX,KAAK,MAAMF,GAAG,IAAID,MAAM,EAAE;MACxBI,MAAM,CAACC,MAAM,CAACL,MAAM,CAACC,GAAG,CAAC,CAAC;IAC5B;EACF;EAEA,OAAOD,MAAM;AACf,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/index.js deleted file mode 100644 index ecb34077..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export * from './init'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/index.js.map deleted file mode 100644 index 8a2d233c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/svg/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,QAAQ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.js deleted file mode 100644 index 6c47a3f3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import { registerComponentStyleBuilder } from '../native'; -import { SVG_CIRCLE_PROPERTIES_CONFIG, SVG_ELLIPSE_PROPERTIES_CONFIG, SVG_LINE_PROPERTIES_CONFIG, SVG_PATH_PROPERTIES_CONFIG, SVG_RECT_PROPERTIES_CONFIG } from './native'; -export function initSvgCssSupport() { - registerComponentStyleBuilder('RNSVGCircle', SVG_CIRCLE_PROPERTIES_CONFIG); - registerComponentStyleBuilder('RNSVGEllipse', SVG_ELLIPSE_PROPERTIES_CONFIG); - registerComponentStyleBuilder('RNSVGLine', SVG_LINE_PROPERTIES_CONFIG); - registerComponentStyleBuilder('RNSVGPath', SVG_PATH_PROPERTIES_CONFIG); - registerComponentStyleBuilder('RNSVGRect', SVG_RECT_PROPERTIES_CONFIG); - - // TODO: Add more SVG components as they are implemented -} -//# sourceMappingURL=init.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.js.map deleted file mode 100644 index 60cb33f5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["registerComponentStyleBuilder","SVG_CIRCLE_PROPERTIES_CONFIG","SVG_ELLIPSE_PROPERTIES_CONFIG","SVG_LINE_PROPERTIES_CONFIG","SVG_PATH_PROPERTIES_CONFIG","SVG_RECT_PROPERTIES_CONFIG","initSvgCssSupport"],"sourceRoot":"../../../../src","sources":["css/svg/init.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,6BAA6B,QAAQ,WAAW;AACzD,SACEC,4BAA4B,EAC5BC,6BAA6B,EAC7BC,0BAA0B,EAC1BC,0BAA0B,EAC1BC,0BAA0B,QACrB,UAAU;AAEjB,OAAO,SAASC,iBAAiBA,CAAA,EAAG;EAClCN,6BAA6B,CAAC,aAAa,EAAEC,4BAA4B,CAAC;EAC1ED,6BAA6B,CAAC,cAAc,EAAEE,6BAA6B,CAAC;EAC5EF,6BAA6B,CAAC,WAAW,EAAEG,0BAA0B,CAAC;EACtEH,6BAA6B,CAAC,WAAW,EAAEI,0BAA0B,CAAC;EACtEJ,6BAA6B,CAAC,WAAW,EAAEK,0BAA0B,CAAC;;EAEtE;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.web.js deleted file mode 100644 index d9b44ad2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.web.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export function initSvgCssSupport() { - // TODO: Add web support for SVG components -} -//# sourceMappingURL=init.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.web.js.map deleted file mode 100644 index 7df7f780..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/init.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["initSvgCssSupport"],"sourceRoot":"../../../../src","sources":["css/svg/init.web.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,SAASA,iBAAiBA,CAAA,EAAG;EAClC;AAAA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/circle.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/circle.js deleted file mode 100644 index e3a33325..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/circle.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import { processOpacity } from '../processors'; -import { commonSvgProps } from './common'; -export const SVG_CIRCLE_PROPERTIES_CONFIG = { - ...commonSvgProps, - cx: true, - cy: true, - r: true, - opacity: { - process: processOpacity - } -}; -//# sourceMappingURL=circle.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/circle.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/circle.js.map deleted file mode 100644 index f6862ff1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/circle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processOpacity","commonSvgProps","SVG_CIRCLE_PROPERTIES_CONFIG","cx","cy","r","opacity","process"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/circle.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,cAAc,QAAQ,eAAe;AAE9C,SAASC,cAAc,QAAQ,UAAU;AAEzC,OAAO,MAAMC,4BAAgE,GAC3E;EACE,GAAGD,cAAc;EACjBE,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,CAAC,EAAE,IAAI;EACPC,OAAO,EAAE;IAAEC,OAAO,EAAEP;EAAe;AACrC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/common.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/common.js deleted file mode 100644 index ccc875d6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/common.js +++ /dev/null @@ -1,112 +0,0 @@ -'use strict'; - -import { convertStringToNumber, processColorSVG, processOpacity, processStrokeDashArray } from '../processors'; -const colorAttributes = { - process: processColorSVG -}; -const colorProps = { - color: colorAttributes -}; -const fillProps = { - fill: colorAttributes, - fillOpacity: { - process: processOpacity - }, - fillRule: { - process: convertStringToNumber({ - evenodd: 0, - nonzero: 1 - }) - } -}; -const strokeProps = { - stroke: colorAttributes, - strokeWidth: true, - strokeOpacity: { - process: processOpacity - }, - strokeDasharray: { - process: processStrokeDashArray - }, - strokeDashoffset: true, - strokeLinecap: { - process: convertStringToNumber({ - butt: 0, - square: 2, - round: 1 - }) - }, - strokeLinejoin: { - process: convertStringToNumber({ - miter: 0, - bevel: 2, - round: 1 - }) - }, - strokeMiterlimit: true, - vectorEffect: { - process: convertStringToNumber({ - none: 0, - default: 0, - nonScalingStroke: 1, - 'non-scaling-stroke': 1, - inherit: 2, - uri: 3 - }) - } -}; -const clipProps = { - clipRule: true, - clipPath: true // TODO - maybe preprocess this? -}; -const transformProps = { - translate: true, - // TODO - add preprocessor (NumberArray) and split to translateX and translateY - translateX: true, - translateY: true, - origin: true, - // TODO - add preprocessor (NumberArray) and split to originX and originY - originX: true, - originY: true, - scale: true, - // TODO - add preprocessor (NumberArray) and split to scaleX and scaleY - scaleX: true, - scaleY: true, - skew: true, - // TODO - add preprocessor (NumberArray) and split to skewX and skewY - skewX: true, - skewY: true, - rotation: true, - x: true, - y: true, - transform: true // TODO - add preprocessor -}; -const responderProps = { - pointerEvents: true -}; - -// TODO - check what these props are doing and if we need to preprocess them -const commonMarkerProps = { - marker: true, - markerStart: true, - markerMid: true, - markerEnd: true -}; -const commonMaskProps = { - mask: true // TODO - add preprocessor -}; -const commonFilterProps = { - filter: true // TODO - add preprocessor -}; -export const commonSvgProps = { - ...colorProps, - ...fillProps, - ...strokeProps, - ...clipProps, - ...transformProps, - ...responderProps, - ...commonMarkerProps, - ...commonMaskProps, - ...commonFilterProps -}; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/common.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/common.js.map deleted file mode 100644 index 35e2f6b5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertStringToNumber","processColorSVG","processOpacity","processStrokeDashArray","colorAttributes","process","colorProps","color","fillProps","fill","fillOpacity","fillRule","evenodd","nonzero","strokeProps","stroke","strokeWidth","strokeOpacity","strokeDasharray","strokeDashoffset","strokeLinecap","butt","square","round","strokeLinejoin","miter","bevel","strokeMiterlimit","vectorEffect","none","default","nonScalingStroke","inherit","uri","clipProps","clipRule","clipPath","transformProps","translate","translateX","translateY","origin","originX","originY","scale","scaleX","scaleY","skew","skewX","skewY","rotation","x","y","transform","responderProps","pointerEvents","commonMarkerProps","marker","markerStart","markerMid","markerEnd","commonMaskProps","mask","commonFilterProps","filter","commonSvgProps"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/common.ts"],"mappings":"AAAA,YAAY;;AAmBZ,SAC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AAQ,EAAE,IAAI,CAAE;AAClB,CAAC;AAED,MAAMC,cAAkD,GAAG;EACzDC,SAAS,EAAE,IAAI;EAAE;EACjBC,UAAU,EAAE,IAAI;EAChBC,UAAU,EAAE,IAAI;EAChBC,MAAM,EAAE,IAAI;EAAE;EACdC,OAAO,EAAE,IAAI;EACbC,OAAO,EAAE,IAAI;EACbC,KAAK,EAAE,IAAI;EAAE;EACbC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE,IAAI;EACZC,IAAI,EAAE,IAAI;EAAE;EACZC,KAAK,EAAE,IAAI;EACXC,KAAK,EAAE,IAAI;EACXC,QAAQ,EAAE,IAAI;EACdC,CAAC,EAAE,IAAI;EACPC,CAAC,EAAE,IAAI;EACPC,SAAS,EAAE,IAAI,CAAE;AACnB,CAAC;AAED,MAAMC,cAEL,GAAG;EACFC,aAAa,EAAE;AACjB,CAAC;;AAED;AACA,MAAMC,iBAAwD,GAAG;EAC/DC,MAAM,EAAE,IAAI;EACZC,WAAW,EAAE,IAAI;EACjBC,SAAS,EAAE,IAAI;EACfC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,eAAoD,GAAG;EAC3DC,IAAI,EAAE,IAAI,CAAE;AACd,CAAC;AAED,MAAMC,iBAAwD,GAAG;EAC/DC,MAAM,EAAE,IAAI,CAAE;AAChB,CAAC;AAaD,OAAO,MAAMC,cAAc,GAAG;EAC5B,GAAG3D,UAAU;EACb,GAAGE,SAAS;EACZ,GAAGM,WAAW;EACd,GAAGoB,SAAS;EACZ,GAAGG,cAAc;EACjB,GAAGiB,cAAc;EACjB,GAAGE,iBAAiB;EACpB,GAAGK,eAAe;EAClB,GAAGE;AACL,CAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/ellipse.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/ellipse.js deleted file mode 100644 index 4360ddf9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/ellipse.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -import { commonSvgProps } from './common'; -export const SVG_ELLIPSE_PROPERTIES_CONFIG = { - ...commonSvgProps, - cx: true, - cy: true, - rx: true, - ry: true, - opacity: true -}; -//# sourceMappingURL=ellipse.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/ellipse.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/ellipse.js.map deleted file mode 100644 index 2fa408cc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/ellipse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["commonSvgProps","SVG_ELLIPSE_PROPERTIES_CONFIG","cx","cy","rx","ry","opacity"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/ellipse.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,cAAc,QAAQ,UAAU;AAEzC,OAAO,MAAMC,6BAAkE,GAC7E;EACE,GAAGD,cAAc;EACjBE,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,OAAO,EAAE;AACX,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/index.js deleted file mode 100644 index 28917bfc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -export * from './circle'; -export * from './ellipse'; -export * from './line'; -export * from './path'; -export * from './rect'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/index.js.map deleted file mode 100644 index c815570a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,QAAQ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/line.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/line.js deleted file mode 100644 index 9be48480..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/line.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -import { commonSvgProps } from './common'; -export const SVG_LINE_PROPERTIES_CONFIG = { - ...commonSvgProps, - x1: true, - y1: true, - x2: true, - y2: true, - opacity: true -}; -//# sourceMappingURL=line.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/line.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/line.js.map deleted file mode 100644 index f3b0f3c1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/line.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["commonSvgProps","SVG_LINE_PROPERTIES_CONFIG","x1","y1","x2","y2","opacity"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/line.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,cAAc,QAAQ,UAAU;AAEzC,OAAO,MAAMC,0BAA4D,GAAG;EAC1E,GAAGD,cAAc;EACjBE,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,OAAO,EAAE;AACX,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/path.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/path.js deleted file mode 100644 index 219fdab2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/path.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -import { commonSvgProps } from './common'; - -// @ts-expect-error - remove when more properties are added -export const SVG_PATH_PROPERTIES_CONFIG = { - ...commonSvgProps - // TODO - add more properties -}; -//# sourceMappingURL=path.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/path.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/path.js.map deleted file mode 100644 index b8c0be0b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/path.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["commonSvgProps","SVG_PATH_PROPERTIES_CONFIG"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/path.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,cAAc,QAAQ,UAAU;;AAEzC;AACA,OAAO,MAAMC,0BAA4D,GAAG;EAC1E,GAAGD;EACH;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/rect.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/rect.js deleted file mode 100644 index 59b9b419..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/rect.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import { commonSvgProps } from './common'; -export const SVG_RECT_PROPERTIES_CONFIG = { - ...commonSvgProps, - x: true, - y: true, - rx: true, - ry: true, - width: true, - height: true, - opacity: true -}; -//# sourceMappingURL=rect.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/rect.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/rect.js.map deleted file mode 100644 index a94b90ac..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/configs/rect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["commonSvgProps","SVG_RECT_PROPERTIES_CONFIG","x","y","rx","ry","width","height","opacity"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/configs/rect.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,cAAc,QAAQ,UAAU;AAEzC,OAAO,MAAMC,0BAA4D,GAAG;EAC1E,GAAGD,cAAc;EACjBE,CAAC,EAAE,IAAI;EACPC,CAAC,EAAE,IAAI;EACPC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,KAAK,EAAE,IAAI;EACXC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAE;AACX,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/index.js deleted file mode 100644 index 9e3e877b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export * from './configs'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/index.js.map deleted file mode 100644 index 3e6a4593..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/svg/native/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,WAAW","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/colors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/colors.js deleted file mode 100644 index 540fd27d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/colors.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -import { processColor } from '../../../native'; -export const processColorSVG = value => { - if (value === 'none') { - return 'transparent'; - } - if (value === 'currentColor') { - return 'currentColor'; - } - return processColor(value); -}; -//# sourceMappingURL=colors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/colors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/colors.js.map deleted file mode 100644 index d1fc3986..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processColor","processColorSVG","value"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/processors/colors.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,YAAY,QAA6B,iBAAiB;AAEnE,OAAO,MAAMC,eAGZ,GAAIC,KAAK,IAAK;EACb,IAAIA,KAAK,KAAK,MAAM,EAAE;IACpB,OAAO,aAAa;EACtB;EACA,IAAIA,KAAK,KAAK,cAAc,EAAE;IAC5B,OAAO,cAAc;EACvB;EAEA,OAAOF,YAAY,CAACE,KAAK,CAAC;AAC5B,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/index.js deleted file mode 100644 index 7ae3137e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -export * from './colors'; -export * from './opacity'; -export * from './others'; -export { processStrokeDashArray } from './stroke'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/index.js.map deleted file mode 100644 index 10d1e070..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processStrokeDashArray"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/processors/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,SAASA,sBAAsB,QAAQ,UAAU","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/opacity.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/opacity.js deleted file mode 100644 index a77d6243..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/opacity.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -export const processOpacity = opacity => { - const value = typeof opacity === 'string' && opacity.trim().endsWith('%') ? +opacity.slice(0, -1) / 100 : +opacity; - return isNaN(value) || value > 1 ? 1 : Math.max(value, 0); -}; -//# sourceMappingURL=opacity.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/opacity.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/opacity.js.map deleted file mode 100644 index 985a40ea..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/opacity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processOpacity","opacity","value","trim","endsWith","slice","isNaN","Math","max"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/processors/opacity.ts"],"mappings":"AAAA,YAAY;;AAKZ,OAAO,MAAMA,cAAkD,GAAIC,OAAO,IAAK;EAC7E,MAAMC,KAAK,GACT,OAAOD,OAAO,KAAK,QAAQ,IAAIA,OAAO,CAACE,IAAI,CAAC,CAAC,CAACC,QAAQ,CAAC,GAAG,CAAC,GACvD,CAACH,OAAO,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,GAC3B,CAACJ,OAAO;EACd,OAAOK,KAAK,CAACJ,KAAK,CAAC,IAAIA,KAAK,GAAG,CAAC,GAAG,CAAC,GAAGK,IAAI,CAACC,GAAG,CAACN,KAAK,EAAE,CAAC,CAAC;AAC3D,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/others.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/others.js deleted file mode 100644 index 15d12bd0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/others.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export const convertStringToNumber = conversions => value => conversions[value]; -//# sourceMappingURL=others.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/others.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/others.js.map deleted file mode 100644 index 0c09c360..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/others.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertStringToNumber","conversions","value"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/processors/others.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,MAAMA,qBAAqB,GAE9BC,WAA8B,IAE/BC,KAAK,IACJD,WAAW,CAACC,KAAK,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/stroke.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/stroke.js deleted file mode 100644 index 65d218d8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/stroke.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../../../common'; -import { isLength } from '../../../utils'; -export const ERROR_MESSAGES = { - invalidDashArray: value => `Invalid stroke dash array value: ${JSON.stringify(value)}` -}; -export const processStrokeDashArray = value => { - let result = []; - if (isLength(value)) { - result = [value]; - } else if (Array.isArray(value)) { - // We have to repeat the same pattern twice if the number of elements is odd - // "If the number of values is odd, the pattern behaves as if it was duplicated - // to yield an even number of values" - // (https://www.w3.org/TR/fill-stroke-3/#valdef-stroke-dasharray-length-percentage) - result = value.length % 2 === 0 || value.length < 3 ? value : value.concat(value); - } else if (value === 'none') { - return 'none'; - } else { - throw new ReanimatedError(ERROR_MESSAGES.invalidDashArray(value)); - } - if (__DEV__) { - isValidDashArray(result); - } - return result; -}; -const isValidDashArray = value => { - if (!value.every(isLength)) { - throw new ReanimatedError(ERROR_MESSAGES.invalidDashArray(value)); - } -}; -//# sourceMappingURL=stroke.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/stroke.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/stroke.js.map deleted file mode 100644 index 6e23bd1d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/svg/native/processors/stroke.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","isLength","ERROR_MESSAGES","invalidDashArray","value","JSON","stringify","processStrokeDashArray","result","Array","isArray","length","concat","__DEV__","isValidDashArray","every"],"sourceRoot":"../../../../../../src","sources":["css/svg/native/processors/stroke.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,eAAe,QAAQ,oBAAoB;AACpD,SAASC,QAAQ,QAAQ,gBAAgB;AAEzC,OAAO,MAAMC,cAAc,GAAG;EAC5BC,gBAAgB,EAAGC,KAAc,IAC/B,oCAAoCC,IAAI,CAACC,SAAS,CAACF,KAAK,CAAC;AAC7D,CAAC;AAED,OAAO,MAAMG,sBAGZ,GAAIH,KAAK,IAAK;EACb,IAAII,MAAoB,GAAG,EAAE;EAE7B,IAAIP,QAAQ,CAACG,KAAK,CAAC,EAAE;IACnBI,MAAM,GAAG,CAACJ,KAAK,CAAC;EAClB,CAAC,MAAM,IAAIK,KAAK,CAACC,OAAO,CAACN,KAAK,CAAC,EAAE;IAC/B;IACA;IACA;IACA;IACAI,MAAM,GACJJ,KAAK,CAACO,MAAM,GAAG,CAAC,KAAK,CAAC,IAAIP,KAAK,CAACO,MAAM,GAAG,CAAC,GAAGP,KAAK,GAAGA,KAAK,CAACQ,MAAM,CAACR,KAAK,CAAC;EAC5E,CAAC,MAAM,IAAIA,KAAK,KAAK,MAAM,EAAE;IAC3B,OAAO,MAAM;EACf,CAAC,MAAM;IACL,MAAM,IAAIJ,eAAe,CAACE,cAAc,CAACC,gBAAgB,CAACC,KAAK,CAAC,CAAC;EACnE;EAEA,IAAIS,OAAO,EAAE;IACXC,gBAAgB,CAACN,MAAM,CAAC;EAC1B;EAEA,OAAOA,MAAM;AACf,CAAC;AAED,MAAMM,gBAAgB,GAAIV,KAAmB,IAAK;EAChD,IAAI,CAACA,KAAK,CAACW,KAAK,CAACd,QAAQ,CAAC,EAAE;IAC1B,MAAM,IAAID,eAAe,CAACE,cAAc,CAACC,gBAAgB,CAACC,KAAK,CAAC,CAAC;EACnE;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/animation.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/animation.js deleted file mode 100644 index 599f17d4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/animation.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=animation.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/animation.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/animation.js.map deleted file mode 100644 index 5621b750..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/animation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/animation.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/common.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/common.js deleted file mode 100644 index 28c4c4db..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/common.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=common.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/common.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/common.js.map deleted file mode 100644 index 270d5ca3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/common.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/common.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/config.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/config.js deleted file mode 100644 index f79851f4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/config.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/config.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/config.js.map deleted file mode 100644 index adb18418..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/config.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/helpers.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/helpers.js deleted file mode 100644 index f2ca1f2f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/helpers.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -/* eslint-disable @typescript-eslint/no-explicit-any */ -//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/helpers.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/helpers.js.map deleted file mode 100644 index 45aef2de..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/helpers.ts"],"mappings":"AAAA,YAAY;;AAEZ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/index.js deleted file mode 100644 index 1e350857..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/index.js.map deleted file mode 100644 index f21ffebc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/index.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/interfaces.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/interfaces.js deleted file mode 100644 index 5703ba95..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/interfaces.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=interfaces.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/interfaces.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/interfaces.js.map deleted file mode 100644 index 3050dd0b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/interfaces.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/interfaces.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/props.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/props.js deleted file mode 100644 index bb819d57..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/props.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=props.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/props.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/props.js.map deleted file mode 100644 index e2856533..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/props.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/props.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/transition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/transition.js deleted file mode 100644 index 73e743c1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/transition.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=transition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/transition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/transition.js.map deleted file mode 100644 index df6f6f22..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/types/transition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/types/transition.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/conversions.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/conversions.js deleted file mode 100644 index c9431c46..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/conversions.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -export function convertPropertyToArray(value) { - return value !== undefined ? Array.isArray(value) ? value : [value] : []; -} -export function convertPropertiesToArrays(config) { - return Object.fromEntries(Object.entries(config).map(([key, value]) => [key, convertPropertyToArray(value)])); -} -export function kebabizeCamelCase(property) { - return property.replace(/[A-Z]/g, x => `-${x.toLowerCase()}`); -} -export function camelizeKebabCase(property) { - return property.replace(/-./g, x => x[1].toUpperCase()); -} -//# sourceMappingURL=conversions.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/conversions.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/conversions.js.map deleted file mode 100644 index 7da603a9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/conversions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertPropertyToArray","value","undefined","Array","isArray","convertPropertiesToArrays","config","Object","fromEntries","entries","map","key","kebabizeCamelCase","property","replace","x","toLowerCase","camelizeKebabCase","toUpperCase"],"sourceRoot":"../../../../src","sources":["css/utils/conversions.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,sBAAsBA,CAAIC,KAAoB,EAAO;EACnE,OAAOA,KAAK,KAAKC,SAAS,GAAIC,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,GAAGA,KAAK,GAAG,CAACA,KAAK,CAAC,GAAI,EAAE;AAC5E;AAEA,OAAO,SAASI,yBAAyBA,CAAsBC,MAAS,EAAE;EACxE,OAAOC,MAAM,CAACC,WAAW,CACvBD,MAAM,CAACE,OAAO,CAACH,MAAM,CAAC,CAACI,GAAG,CAAC,CAAC,CAACC,GAAG,EAAEV,KAAK,CAAC,KAAK,CAC3CU,GAAG,EACHX,sBAAsB,CAACC,KAAK,CAAC,CAC9B,CACH,CAAC;AACH;AAEA,OAAO,SAASW,iBAAiBA,CAAmBC,QAAW,EAAE;EAC/D,OAAOA,QAAQ,CAACC,OAAO,CAAC,QAAQ,EAAGC,CAAC,IAAK,IAAIA,CAAC,CAACC,WAAW,CAAC,CAAC,EAAE,CAAC;AACjE;AAEA,OAAO,SAASC,iBAAiBA,CAAmBJ,QAAW,EAAE;EAC/D,OAAOA,QAAQ,CAACC,OAAO,CAAC,KAAK,EAAGC,CAAC,IAAKA,CAAC,CAAC,CAAC,CAAC,CAACG,WAAW,CAAC,CAAC,CAAC;AAC3D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/equality.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/equality.js deleted file mode 100644 index dec0899e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/equality.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -export function areArraysEqual(array1, array2) { - if (array1.length !== array2.length) { - return false; - } - for (let i = 0; i < array1.length; i++) { - if (array1[i] !== array2[i]) { - return false; - } - } - return true; -} -export function deepEqual(obj1, obj2) { - if (obj1 === obj2) { - return true; - } - if (typeof obj1 !== 'object' || typeof obj2 !== 'object' || obj1 === null || obj2 === null) { - return false; - } - - // Handle arrays - if (Array.isArray(obj1) && Array.isArray(obj2)) { - if (obj1.length !== obj2.length) { - return false; - } - for (let i = 0; i < obj1.length; i++) { - if (!deepEqual(obj1[i], obj2[i])) { - return false; - } - } - return true; - } - - // If one is an array and the other is not - if (Array.isArray(obj1) || Array.isArray(obj2)) { - return false; - } - - // Handle objects - const keys1 = Object.keys(obj1); - const keys2 = Object.keys(obj2); - if (keys1.length !== keys2.length) { - return false; - } - const keysSet2 = new Set(keys2); - for (const key of keys1) { - if (!keysSet2.has(key)) { - return false; - } - if (!deepEqual(obj1[key], obj2[key])) { - return false; - } - } - return true; -} -//# sourceMappingURL=equality.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/equality.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/equality.js.map deleted file mode 100644 index 5dcb5261..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/equality.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["areArraysEqual","array1","array2","length","i","deepEqual","obj1","obj2","Array","isArray","keys1","Object","keys","keys2","keysSet2","Set","key","has"],"sourceRoot":"../../../../src","sources":["css/utils/equality.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAO,SAASA,cAAcA,CAAIC,MAAW,EAAEC,MAAW,EAAW;EACnE,IAAID,MAAM,CAACE,MAAM,KAAKD,MAAM,CAACC,MAAM,EAAE;IACnC,OAAO,KAAK;EACd;EAEA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,MAAM,CAACE,MAAM,EAAEC,CAAC,EAAE,EAAE;IACtC,IAAIH,MAAM,CAACG,CAAC,CAAC,KAAKF,MAAM,CAACE,CAAC,CAAC,EAAE;MAC3B,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb;AAEA,OAAO,SAASC,SAASA,CAAIC,IAAO,EAAEC,IAAO,EAAW;EACtD,IAAID,IAAI,KAAKC,IAAI,EAAE;IACjB,OAAO,IAAI;EACb;EAEA,IACE,OAAOD,IAAI,KAAK,QAAQ,IACxB,OAAOC,IAAI,KAAK,QAAQ,IACxBD,IAAI,KAAK,IAAI,IACbC,IAAI,KAAK,IAAI,EACb;IACA,OAAO,KAAK;EACd;;EAEA;EACA,IAAIC,KAAK,CAACC,OAAO,CAACH,IAAI,CAAC,IAAIE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;IAC9C,IAAID,IAAI,CAACH,MAAM,KAAKI,IAAI,CAACJ,MAAM,EAAE;MAC/B,OAAO,KAAK;IACd;IACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGE,IAAI,CAACH,MAAM,EAAEC,CAAC,EAAE,EAAE;MACpC,IAAI,CAACC,SAAS,CAACC,IAAI,CAACF,CAAC,CAAC,EAAEG,IAAI,CAACH,CAAC,CAAC,CAAC,EAAE;QAChC,OAAO,KAAK;MACd;IACF;IACA,OAAO,IAAI;EACb;;EAEA;EACA,IAAII,KAAK,CAACC,OAAO,CAACH,IAAI,CAAC,IAAIE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;IAC9C,OAAO,KAAK;EACd;;EAEA;EACA,MAAMG,KAAK,GAAGC,MAAM,CAACC,IAAI,CAACN,IAAI,CAAgB;EAC9C,MAAMO,KAAK,GAAGF,MAAM,CAACC,IAAI,CAACL,IAAI,CAAgB;EAE9C,IAAIG,KAAK,CAACP,MAAM,KAAKU,KAAK,CAACV,MAAM,EAAE;IACjC,OAAO,KAAK;EACd;EAEA,MAAMW,QAAQ,GAAG,IAAIC,GAAG,CAACF,KAAK,CAAC;EAC/B,KAAK,MAAMG,GAAG,IAAIN,KAAK,EAAE;IACvB,IAAI,CAACI,QAAQ,CAACG,GAAG,CAACD,GAAG,CAAC,EAAE;MACtB,OAAO,KAAK;IACd;IACA,IAAI,CAACX,SAAS,CAACC,IAAI,CAACU,GAAG,CAAC,EAAET,IAAI,CAACS,GAAG,CAAC,CAAC,EAAE;MACpC,OAAO,KAAK;IACd;EACF;EAEA,OAAO,IAAI;AACb","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/guards.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/guards.js deleted file mode 100644 index 8dee3e4c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/guards.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -import { ANIMATION_PROPS, TRANSITION_PROPS, VALID_PARAMETRIZED_TIMING_FUNCTIONS, VALID_PREDEFINED_TIMING_FUNCTIONS, VALID_STEPS_MODIFIERS } from '../constants'; -const ANIMATION_PROPS_SET = new Set(ANIMATION_PROPS); -const TRANSITION_PROPS_SET = new Set(TRANSITION_PROPS); -const VALID_STEPS_MODIFIERS_SET = new Set(VALID_STEPS_MODIFIERS); -const VALID_PREDEFINED_TIMING_FUNCTIONS_SET = new Set(VALID_PREDEFINED_TIMING_FUNCTIONS); -const VALID_PARAMETRIZED_TIMING_FUNCTIONS_SET = new Set(VALID_PARAMETRIZED_TIMING_FUNCTIONS); -export const isPredefinedTimingFunction = value => VALID_PREDEFINED_TIMING_FUNCTIONS_SET.has(value); -export const smellsLikeTimingFunction = value => VALID_PREDEFINED_TIMING_FUNCTIONS_SET.has(value) || VALID_PARAMETRIZED_TIMING_FUNCTIONS_SET.has(value.split('(')[0].trim()); -export const isAnimationProp = key => ANIMATION_PROPS_SET.has(key); -export const isTransitionProp = key => TRANSITION_PROPS_SET.has(key); -export const isStepsModifier = value => VALID_STEPS_MODIFIERS_SET.has(value); -export const isCSSStyleProp = key => isTransitionProp(key) || isAnimationProp(key); -export const isTimeUnit = value => -// TODO: implement more strict check -typeof value === 'string' && (/^-?(\d+)?(\.\d+)?(ms|s)$/.test(value) || value === '0'); -export const isNumber = value => typeof value === 'number' && !isNaN(value); -export const isPercentage = value => typeof value === 'string' && /^-?\d+(\.\d+)?%$/.test(value); -export const isLength = value => isNumber(value) || isPercentage(value); -export const isAngle = value => typeof value === 'string' && /^-?\d+(\.\d+)?(deg|rad)$/.test(value); -export const isDefined = value => value !== undefined && value !== null; -export const isRecord = value => typeof value === 'object' && value !== null && !Array.isArray(value); -export const isNumberArray = value => Array.isArray(value) && value.every(isNumber); -export const isArrayOfLength = (value, length) => Array.isArray(value) && value.length === length; -export const isCSSKeyframesObject = value => typeof value === 'object' && Object.keys(value).length > 0; -export const isCSSKeyframesRule = value => typeof value === 'object' && 'cssRules' in value && 'cssText' in value; -export const isConfigPropertyAlias = value => !!value && typeof value === 'object' && 'as' in value && typeof value.as === 'string'; -export const hasProp = (obj, key) => key in obj; -//# sourceMappingURL=guards.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/guards.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/guards.js.map deleted file mode 100644 index 1395f744..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/guards.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ANIMATION_PROPS","TRANSITION_PROPS","VALID_PARAMETRIZED_TIMING_FUNCTIONS","VALID_PREDEFINED_TIMING_FUNCTIONS","VALID_STEPS_MODIFIERS","ANIMATION_PROPS_SET","Set","TRANSITION_PROPS_SET","VALID_STEPS_MODIFIERS_SET","VALID_PREDEFINED_TIMING_FUNCTIONS_SET","VALID_PARAMETRIZED_TIMING_FUNCTIONS_SET","isPredefinedTimingFunction","value","has","smellsLikeTimingFunction","split","trim","isAnimationProp","key","isTransitionProp","isStepsModifier","isCSSStyleProp","isTimeUnit","test","isNumber","isNaN","isPercentage","isLength","isAngle","isDefined","undefined","isRecord","Array","isArray","isNumberArray","every","isArrayOfLength","length","isCSSKeyframesObject","Object","keys","isCSSKeyframesRule","isConfigPropertyAlias","as","hasProp","obj"],"sourceRoot":"../../../../src","sources":["css/utils/guards.ts"],"mappings":"AAAA,YAAY;;AACZ,SACEA,eAAe,EACfC,gBAAgB,EAChBC,mCAAmC,EACnCC,iCAAiC,EACjCC,qBAAqB,QAChB,cAAc;AAcrB,MAAMC,mBAAmB,GAAG,IAAIC,GAAG,CAASN,eAAe,CAAC;AAC5D,MAAMO,oBAAoB,GAAG,IAAID,GAAG,CAASL,gBAAgB,CAAC;AAC9D,MAAMO,yBAAyB,GAAG,IAAIF,GAAG,CAASF,qBAAqB,CAAC;AAExE,MAAMK,qCAAqC,GAAG,IAAIH,GAAG,CACnDH,iCACF,CAAC;AAED,MAAMO,uCAAuC,GAAG,IAAIJ,GAAG,CACrDJ,mCACF,CAAC;AAED,OAAO,MAAM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AAK,CAAC;AAErE,OAAO,MAAMiB,SAAS,GAAOjB,KAAQ,IACnCA,KAAK,KAAKkB,SAAS,IAAIlB,KAAK,KAAK,IAAI;AAEvC,OAAO,MAAMmB,QAAQ,GACnBnB,KAAc,IAEd,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,IAAI,CAACoB,KAAK,CAACC,OAAO,CAACrB,KAAK,CAAC;AAEtE,OAAO,MAAMsB,aAAa,GAAItB,KAAc,IAC1CoB,KAAK,CAACC,OAAO,CAACrB,KAAK,CAAC,IAAIA,KAAK,CAACuB,KAAK,CAACX,QAAQ,CAAC;AAE/C,OAAO,MAAMY,eAAe,GAAGA,CAC7BxB,KAAU,EACVyB,MAAS,KACiBL,KAAK,CAACC,OAAO,CAACrB,KAAK,CAAC,IAAIA,KAAK,CAACyB,MAAM,KAAKA,MAAM;AAE3E,OAAO,MAAMC,oBAAoB,GAC/B1B,KAAa,IAEb,OAAOA,KAAK,KAAK,QAAQ,IAAI2B,MAAM,CAACC,IAAI,CAAC5B,KAAK,CAAC,CAACyB,MAAM,GAAG,CAAC;AAE5D,OAAO,MAAMI,kBAAkB,GAAI7B,KAAa,IAC9C,OAAOA,KAAK,KAAK,QAAQ,IAAI,UAAU,IAAIA,KAAK,IAAI,SAAS,IAAIA,KAAK;AAExE,OAAO,MAAM8B,qBAAqB,GAChC9B,KAAc,IAEd,CAAC,CAACA,KAAK,IACP,OAAOA,KAAK,KAAK,QAAQ,IACzB,IAAI,IAAIA,KAAK,IACb,OAAOA,KAAK,CAAC+B,EAAE,KAAK,QAAQ;AAE9B,OAAO,MAAMC,OAAO,GAAGA,CACrBC,GAAM,EACN3B,GAAM,KAC2BA,GAAG,IAAI2B,GAAG","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/index.js deleted file mode 100644 index 3321abe8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -export * from './conversions'; -export * from './equality'; -export * from './guards'; -export * from './parsers'; -export * from './props'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/index.js.map deleted file mode 100644 index 86bdce51..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/utils/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,WAAW;AACzB,cAAc,SAAS","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/parsers.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/parsers.js deleted file mode 100644 index 16d1870d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/parsers.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -import { ReanimatedError } from '../../common'; -import { MILLISECONDS_REGEX, SECONDS_REGEX } from '../constants'; -import { isTimeUnit, smellsLikeTimingFunction } from './guards'; -export function splitByComma(str) { - // split by comma not enclosed in parentheses - const parts = []; - let current = ''; - let depth = 0; - for (const char of str) { - if (char === '(') { - depth++; - } else if (char === ')') { - depth--; - } else if (char === ',' && depth === 0) { - parts.push(current.trim()); - current = ''; - continue; - } - current += char; - } - parts.push(current.trim()); - return parts; -} -export function splitByWhitespace(str) { - // split by whitespace not enclosed in parentheses - return str.split(/\s+(?![^()]*\))/); -} -export function parseSingleTransitionShorthand(value) { - const result = {}; - const parts = splitByWhitespace(value); - for (const part of parts) { - if (part === 'all') { - result.transitionProperty = 'all'; - continue; - } - if (part === 'normal' || part === 'allow-discrete') { - result.transitionBehavior = part; - continue; - } - if (isTimeUnit(part)) { - const timeUnit = part; - if (result.transitionDuration === undefined) { - result.transitionDuration = timeUnit; - continue; - } - if (result.transitionDelay === undefined) { - result.transitionDelay = timeUnit; - continue; - } - } - if (result.transitionTimingFunction === undefined && smellsLikeTimingFunction(part)) { - result.transitionTimingFunction = part; - continue; - } - if (result.transitionProperty === undefined) { - result.transitionProperty = part; - continue; - } - throw new ReanimatedError(`Invalid transition shorthand: ${value}`); - } - return result; -} -export function normalizeTimeUnit(timeUnit) { - if (typeof timeUnit === 'number') { - return timeUnit; - } else if (MILLISECONDS_REGEX.test(timeUnit)) { - return parseInt(timeUnit, 10); - } else if (SECONDS_REGEX.test(timeUnit)) { - return parseFloat(timeUnit) * 1000; - } - return null; -} -//# sourceMappingURL=parsers.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/parsers.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/parsers.js.map deleted file mode 100644 index 8adf856f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/parsers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","MILLISECONDS_REGEX","SECONDS_REGEX","isTimeUnit","smellsLikeTimingFunction","splitByComma","str","parts","current","depth","char","push","trim","splitByWhitespace","split","parseSingleTransitionShorthand","value","result","part","transitionProperty","transitionBehavior","timeUnit","transitionDuration","undefined","transitionDelay","transitionTimingFunction","normalizeTimeUnit","test","parseInt","parseFloat"],"sourceRoot":"../../../../src","sources":["css/utils/parsers.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,eAAe,QAAQ,cAAc;AAC9C,SAASC,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAEhE,SAASC,UAAU,EAAEC,wBAAwB,QAAQ,UAAU;AAE/D,OAAO,SAASC,YAAYA,CAACC,GAAW,EAAE;EACxC;EACA,MAAMC,KAAe,GAAG,EAAE;EAC1B,IAAIC,OAAO,GAAG,EAAE;EAChB,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MAAM,CAACO,eAAe,GAAGH,QAAQ;QACjC;MACF;IACF;IACA,IACEJ,MAAM,CAACQ,wBAAwB,KAAKF,SAAS,IAC7CnB,wBAAwB,CAACc,IAAI,CAAC,EAC9B;MACAD,MAAM,CAACQ,wBAAwB,GAAGP,IAAI;MACtC;IACF;IACA,IAAID,MAAM,CAACE,kBAAkB,KAAKI,SAAS,EAAE;MAC3CN,MAAM,CAACE,kBAAkB,GAAGD,IAAI;MAChC;IACF;IACA,MAAM,IAAIlB,eAAe,CAAC,iCAAiCgB,KAAK,EAAE,CAAC;EACrE;EAEA,OAAOC,MAAM;AACf;AAEA,OAAO,SAASS,iBAAiBA,CAACL,QAAkB,EAAiB;EACnE,IAAI,OAAOA,QAAQ,KAAK,QAAQ,EAAE;IAChC,OAAOA,QAAQ;EACjB,CAAC,MAAM,IAAIpB,kBAAkB,CAAC0B,IAAI,CAACN,QAAQ,CAAC,EAAE;IAC5C,OAAOO,QAAQ,CAACP,QAAQ,EAAE,EAAE,CAAC;EAC/B,CAAC,MAAM,IAAInB,aAAa,CAACyB,IAAI,CAACN,QAAQ,CAAC,EAAE;IACvC,OAAOQ,UAAU,CAACR,QAAQ,CAAC,GAAG,IAAI;EACpC;EACA,OAAO,IAAI;AACb","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/props.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/props.js deleted file mode 100644 index 3aff2b04..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/props.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -import { logger } from '../../common'; -import { isSharedValue } from '../../isSharedValue'; -import { isAnimationProp, isCSSKeyframesObject, isCSSKeyframesRule, isTransitionProp } from './guards'; -export function filterCSSAndStyleProperties(style) { - const animationProperties = {}; - let transitionProperties = {}; - const filteredStyle = {}; - for (const [prop, value] of Object.entries(style)) { - if (isAnimationProp(prop)) { - // TODO - add support for animation shorthand - animationProperties[prop] = value; - } else if (isTransitionProp(prop)) { - // If there is a shorthand `transition` property, all properties specified - // before are ignored and only these specified later are taken into account - // and override ones from the shorthand - if (prop === 'transition') { - transitionProperties = { - transition: value - }; - } else { - transitionProperties[prop] = value; - } - } else if (!isSharedValue(value)) { - filteredStyle[prop] = value; - } - } - - // Return animationProperties only if at least one animationName contains - // valid keyframes - const animationName = animationProperties.animationName; - const hasAnimationName = animationName && (Array.isArray(animationName) ? animationName : [animationName]).every(keyframes => keyframes === 'none' ? false : isCSSKeyframesRule(keyframes) || isCSSKeyframesObject(keyframes)); - const finalAnimationConfig = hasAnimationName ? { - ...animationProperties, - animationName - } : null; - - // Return transitionProperties only if the transitionProperty is present - const hasTransitionConfig = Object.keys(transitionProperties).length > 0; - const finalTransitionConfig = hasTransitionConfig ? transitionProperties : null; - if (__DEV__) { - validateCSSAnimationProps(animationProperties); - validateCSSTransitionProps(transitionProperties); - } - return [finalAnimationConfig, finalTransitionConfig, filteredStyle]; -} -function validateCSSAnimationProps(props) { - // Check if animationDuration is missing when animationName is present - if (!('animationDuration' in props) && 'animationName' in props) { - logger.warn('animationDuration was not specified for CSS animation. The default duration is 0s.\n' + 'Have you forgotten to pass the animationDuration?'); - } -} -function validateCSSTransitionProps(props) { - // Check if transitionDuration is missing when transitionProperty is present - if (!('transitionDuration' in props) && 'transitionProperty' in props) { - logger.warn('transitionDuration was not specified for CSS transition. The default duration is 0s.\n' + 'Have you forgotten to pass the transitionDuration?'); - } -} -//# sourceMappingURL=props.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/props.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/props.js.map deleted file mode 100644 index 58a7b2ab..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/utils/props.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","isSharedValue","isAnimationProp","isCSSKeyframesObject","isCSSKeyframesRule","isTransitionProp","filterCSSAndStyleProperties","style","animationProperties","transitionProperties","filteredStyle","prop","value","Object","entries","transition","animationName","hasAnimationName","Array","isArray","every","keyframes","finalAnimationConfig","hasTransitionConfig","keys","length","finalTransitionConfig","__DEV__","validateCSSAnimationProps","validateCSSTransitionProps","props","warn"],"sourceRoot":"../../../../src","sources":["css/utils/props.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,cAAc;AACrC,SAASC,aAAa,QAAQ,qBAAqB;AASnD,SACEC,eAAe,EACfC,oBAAoB,EACpBC,kBAAkB,EAClBC,gBAAgB,QACX,UAAU;AAEjB,OAAO,SAASC,2BAA2BA,CACzCC,KAAkB,EAKlB;EACA,MAAMC,mBAAoD,GAAG,CAAC,CAAC;EAC/D,IAAIC,oBAAsD,GAAG,CAAC,CAAC;EAC/D,MAAMC,aAAwB,GAAG,CAAC,CAAC;EAEnC,KAAK,MAAM,CAACC,IAAI,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACP,KAAK,CAAC,EAAE;IACjD,IAAIL,eAAe,CAACS,IAAI,CAAC,EAAE;MACzB;MACAH,mBAAmB,CAACG,IAAI,CAAC,GAAGC,KAAK;IACnC,CAAC,MAAM,IAAIP,gBAAgB,CAACM,IAAI,CAAC,EAAE;MACjC;MACA;MACA;MACA,IAAIA,IAAI,KAAK,YAAY,EAAE;QACzBF,oBAAoB,GAAG;UAAEM,UAAU,EAAEH;QAAM,CAAC;MAC9C,CAAC,MAAM;QACLH,oBAAoB,CAACE,IAAI,CAAC,GAAGC,KAAK;MACpC;IACF,CAAC,MAAM,IAAI,CAACX,aAAa,CAACW,KAAK,CAAC,EAAE;MAChCF,aAAa,CAACC,IAAI,CAAC,GAAGC,KAAK;IAC7B;EACF;;EAEA;EACA;EACA,MAAMI,aAAa,GAAGR,mBAAmB,CAACQ,aAAa;EACvD,MAAMC,gBAAgB,GACpBD,aAAa,IACb,CAACE,KAAK,CAACC,OAAO,CAACH,aAAa,CAAC,GAAGA,aAAa,GAAG,CAACA,aAAa,CAAC,EAAEI,KAAK,CACnEC,SAAS,IACRA,SAAS,KAAK,MAAM,GAChB,KAAK,GACLjB,kBAAkB,CAACiB,SAAS,CAAC,IAAIlB,oBAAoB,CAACkB,SAAS,CACvE,CAAC;EACH,MAAMC,oBAAoB,GAAGL,gBAAgB,GACxC;IACC,GAAGT,mBAAmB;IACtBQ;EACF,CAAC,GACD,IAAI;;EAER;EACA,MAAMO,mBAAmB,GAAGV,MAAM,CAACW,IAAI,CAACf,oBAAoB,CAAC,CAACgB,MAAM,GAAG,CAAC;EACxE,MAAMC,qBAAqB,GAAGH,mBAAmB,GAC7Cd,oBAAoB,GACpB,IAAI;EAER,IAAIkB,OAAO,EAAE;IACXC,yBAAyB,CAACpB,mBAAmB,CAAC;IAC9CqB,0BAA0B,CAACpB,oBAAoB,CAAC;EAClD;EAEA,OAAO,CAACa,oBAAoB,EAAEI,qBAAqB,EAAEhB,aAAa,CAAC;AACrE;AAEA,SAASkB,yBAAyBA,CAACE,KAAsC,EAAE;EACzE;EACA,IAAI,EAAE,mBAAmB,IAAIA,KAAK,CAAC,IAAI,eAAe,IAAIA,KAAK,EAAE;IAC/D9B,MAAM,CAAC+B,IAAI,CACT,sFAAsF,GACpF,mDACJ,CAAC;EACH;AACF;AAEA,SAASF,0BAA0BA,CAACC,KAAuC,EAAE;EAC3E;EACA,IAAI,EAAE,oBAAoB,IAAIA,KAAK,CAAC,IAAI,oBAAoB,IAAIA,KAAK,EAAE;IACrE9B,MAAM,CAAC+B,IAAI,CACT,wFAAwF,GACtF,oDACJ,CAAC;EACH;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/animationParser.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/animationParser.js deleted file mode 100644 index 7d1e7a9c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/animationParser.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -import { hasSuffix } from '../../common'; -import { PROPERTIES_CONFIG } from './config'; -import { createStyleBuilder } from './style'; -import { parseTimingFunction } from './utils'; -const styleBuilder = createStyleBuilder(PROPERTIES_CONFIG); -export function processKeyframeDefinitions(definitions) { - return Object.entries(definitions).reduce((acc, [timestamp, rules]) => { - const step = hasSuffix(timestamp) ? timestamp : `${parseFloat(timestamp) * 100}%`; - const processedBlock = processKeyframeBlock(rules); - if (!processedBlock) { - return acc; - } - acc.push(`${step} { ${processedBlock} }`); - return acc; - }, []).join(' '); -} -function processKeyframeBlock({ - animationTimingFunction, - ...rules -}) { - const style = styleBuilder.buildFrom(rules); - if (!style) { - return null; - } - return animationTimingFunction ? `animation-timing-function: ${parseTimingFunction(animationTimingFunction)}; ${style}` : style; -} -//# sourceMappingURL=animationParser.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/animationParser.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/animationParser.js.map deleted file mode 100644 index 615b1b4a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/animationParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["hasSuffix","PROPERTIES_CONFIG","createStyleBuilder","parseTimingFunction","styleBuilder","processKeyframeDefinitions","definitions","Object","entries","reduce","acc","timestamp","rules","step","parseFloat","processedBlock","processKeyframeBlock","push","join","animationTimingFunction","style","buildFrom"],"sourceRoot":"../../../../src","sources":["css/web/animationParser.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,QAAQ,cAAc;AAMxC,SAASC,iBAAiB,QAAQ,UAAU;AAC5C,SAASC,kBAAkB,QAAQ,SAAS;AAC5C,SAASC,mBAAmB,QAAQ,SAAS;AAE7C,MAAMC,YAAY,GAAGF,kBAAkB,CAACD,iBAAiB,CAAC;AAE1D,OAAO,SAASI,0BAA0BA,CAACC,WAAkC,EAAE;EAC7E,OAAOC,MAAM,CAACC,OAAO,CAACF,WAAW,CAAC,CAC/BG,MAAM,CAAW,CAACC,GAAG,EAAE,CAACC,SAAS,EAAEC,KAAK,CAAC,KAAK;IAC7C,MAAMC,IAAI,GAAGb,SAAS,CAACW,SAAS,CAAC,GAC7BA,SAAS,GACT,GAAGG,UAAU,CAACH,SAAS,CAAC,GAAG,GAAG,GAAG;IAErC,MAAMI,cAAc,GAAGC,oBAAoB,CAACJ,KAAK,CAAC;IAElD,IAAI,CAACG,cAAc,EAAE;MACnB,OAAOL,GAAG;IACZ;IAEAA,GAAG,CAACO,IAAI,CAAC,GAAGJ,IAAI,MAAME,cAAc,IAAI,CAAC;IAEzC,OAAOL,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC,CACLQ,IAAI,CAAC,GAAG,CAAC;AACd;AAEA,SAASF,oBAAoBA,CAAC;EAC5BG,uBAAuB;EACvB,GAAGP;AACkC,CAAC,EAAiB;EACvD,MAAMQ,KAAK,GAAGhB,YAAY,CAACiB,SAAS,CAACT,KAAK,CAAC;EAE3C,IAAI,CAACQ,KAAK,EAAE;IACV,OAAO,IAAI;EACb;EAEA,OAAOD,uBAAuB,GAC1B,8BAA8BhB,mBAAmB,CAACgB,uBAAuB,CAAC,KAAKC,KAAK,EAAE,GACtFA,KAAK;AACX","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/config.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/config.js deleted file mode 100644 index 5548a4cf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/config.js +++ /dev/null @@ -1,246 +0,0 @@ -'use strict'; - -import { processBoxShadowWeb } from '../../common'; -import { boxShadowBuilder, processColor, processFilter, processFontVariant, processFontWeight, processMarginHorizontal, processMarginVertical, processPaddingHorizontal, processPaddingVertical, processTransform, processTransformOrigin, textShadowBuilder } from './style'; -const colorAttributes = { - process: processColor -}; -export const PROPERTIES_CONFIG = { - /** Layout and Positioning */ - // FLEXBOX - flex: true, - flexBasis: 'px', - flexDirection: true, - justifyContent: true, - alignItems: true, - alignSelf: true, - alignContent: true, - flexGrow: true, - flexShrink: true, - flexWrap: true, - gap: 'px', - rowGap: 'px', - columnGap: 'px', - start: false, - end: false, - direction: true, - // DIMENSIONS - height: 'px', - width: 'px', - maxHeight: 'px', - maxWidth: 'px', - minHeight: 'px', - minWidth: 'px', - // MARGINS - margin: 'px', - marginTop: 'px', - marginRight: 'px', - marginBottom: 'px', - marginLeft: 'px', - // TODO - check if these props should depend on writing direction - marginStart: { - as: 'marginLeft' - }, - marginEnd: { - as: 'marginRight' - }, - marginBlock: 'px', - marginBlockEnd: 'px', - marginBlockStart: 'px', - marginInline: 'px', - marginInlineEnd: 'px', - marginInlineStart: 'px', - marginHorizontal: { - process: processMarginHorizontal - }, - marginVertical: { - process: processMarginVertical - }, - // PADDINGS - padding: 'px', - paddingTop: 'px', - paddingRight: 'px', - paddingBottom: 'px', - paddingLeft: 'px', - // TODO - check if these props should depend on writing direction - paddingStart: { - as: 'paddingLeft' - }, - paddingEnd: { - as: 'paddingRight' - }, - paddingBlock: 'px', - paddingBlockEnd: 'px', - paddingBlockStart: 'px', - paddingInline: 'px', - paddingInlineEnd: 'px', - paddingInlineStart: 'px', - paddingHorizontal: { - process: processPaddingHorizontal - }, - paddingVertical: { - process: processPaddingVertical - }, - // INSETS - top: 'px', - left: 'px', - bottom: 'px', - right: 'px', - inset: 'px', - insetBlock: 'px', - insetBlockEnd: 'px', - insetBlockStart: 'px', - insetInline: 'px', - insetInlineEnd: 'px', - insetInlineStart: 'px', - // OTHERS - position: true, - display: true, - overflow: true, - zIndex: true, - aspectRatio: true, - boxSizing: true, - /** Appearance */ - // COLORS - // Background - backgroundColor: colorAttributes, - // Text - color: colorAttributes, - textDecorationColor: colorAttributes, - textShadowColor: textShadowBuilder, - // Border - borderColor: colorAttributes, - borderTopColor: colorAttributes, - borderBlockStartColor: colorAttributes, - borderRightColor: colorAttributes, - borderEndColor: { - as: 'borderRightColor' - }, - borderBottomColor: colorAttributes, - borderBlockEndColor: colorAttributes, - borderLeftColor: colorAttributes, - borderStartColor: { - as: 'borderLeftColor' - }, - borderBlockColor: colorAttributes, - // Other - outlineColor: colorAttributes, - shadowColor: boxShadowBuilder, - overlayColor: colorAttributes, - tintColor: colorAttributes, - // SHADOWS - // View - shadowOffset: boxShadowBuilder, - shadowOpacity: boxShadowBuilder, - shadowRadius: boxShadowBuilder, - elevation: false, - // Android only - textShadowOffset: textShadowBuilder, - textShadowRadius: textShadowBuilder, - boxShadow: { - process: processBoxShadowWeb - }, - // BORDERS - // Radius - borderRadius: 'px', - // top-left - borderTopLeftRadius: 'px', - borderTopStartRadius: { - as: 'borderTopLeftRadius' - }, - borderStartStartRadius: 'px', - // top-right - borderTopRightRadius: 'px', - borderTopEndRadius: { - as: 'borderTopRightRadius' - }, - borderStartEndRadius: 'px', - // bottom-left - borderBottomLeftRadius: 'px', - borderBottomStartRadius: { - as: 'borderBottomLeftRadius' - }, - borderEndStartRadius: 'px', - // bottom-right - borderBottomRightRadius: 'px', - borderBottomEndRadius: { - as: 'borderBottomRightRadius' - }, - borderEndEndRadius: 'px', - // Width - borderWidth: 'px', - // top - borderTopWidth: 'px', - borderStartWidth: { - as: 'borderLeftWidth' - }, - // bottom - borderBottomWidth: 'px', - borderEndWidth: { - as: 'borderRightWidth' - }, - // left - borderLeftWidth: 'px', - // right - borderRightWidth: 'px', - // Decoration - borderCurve: true, - borderStyle: true, - // OUTLINES - outlineOffset: 'px', - outlineStyle: true, - outlineWidth: 'px', - // TRANSFORMS - transformOrigin: { - process: processTransformOrigin - }, - transform: { - process: processTransform - }, - // OTHERS - backfaceVisibility: true, - opacity: true, - mixBlendMode: true, - // eslint-disable-next-line camelcase - experimental_backgroundImage: false, - // TODO - - /** Typography */ - // Font - fontFamily: true, - fontSize: 'px', - fontStyle: true, - fontVariant: { - process: processFontVariant - }, - fontWeight: { - process: processFontWeight - }, - // Alignment - textAlign: true, - textAlignVertical: true, - verticalAlign: true, - // Decoration - letterSpacing: 'px', - lineHeight: 'px', - textTransform: true, - textDecorationLine: true, - textDecorationStyle: true, - // Others - userSelect: true, - writingDirection: false, - includeFontPadding: false, - /** Others */ - // Image - resizeMode: false, - objectFit: false, - // Cursor - cursor: true, - pointerEvents: true, - // Others - filter: { - process: processFilter - }, - isolation: true -}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/config.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/config.js.map deleted file mode 100644 index b9c8a1d6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["processBoxShadowWeb","boxShadowBuilder","processColor","processFilter","processFontVariant","processFontWeight","processMarginHorizontal","processMarginVertical","processPaddingHorizontal","processPaddingVertical","processTransform","processTransformOrigin","textShadowBuilder","colorAttributes","process","PROPERTIES_CONFIG","flex","flexBasis","flexDirection","justifyContent","alignItems","alignSelf","alignContent","flexGrow","flexShrink","flexWrap","gap","rowGap","columnGap","start","end","direction","height","width","maxHeight","maxWidth","minHeight","minWidth","margin","marginTop","marginRight","marginBottom","marginLeft","marginStart","as","marginEnd","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","marginHorizontal","marginVertical","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingStart","paddingEnd","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingInline","paddingInlineEnd","paddingInlineStart","paddingHorizontal","paddingVertical","top","left","bottom","right","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","position","display","overflow","zIndex","aspectRatio","boxSizing","backgroundColor","color","textDecorationColor","textShadowColor","borderColor","borderTopColor","borderBlockStartColor","borderRightColor","borderEndColor","borderBottomColor","borderBlockEndColor","borderLeftColor","borderStartColor","borderBlockColor","outlineColor","shadowColor","overlayColor","tintColor","shadowOffset","shadowOpacity","shadowRadius","elevation","textShadowOffset","textShadowRadius","boxShadow","borderRadius","borderTopLeftRadius","borderTopStartRadius","borderStartStartRadius","borderTopRightRadius","borderTopEndRadius","borderStartEndRadius","borderBottomLeftRadius","borderBottomStartRadius","borderEndStartRadius","borderBottomRightRadius","borderBottomEndRadius","borderEndEndRadius","borderWidth","borderTopWidth","borderStartWidth","borderBottomWidth","borderEndWidth","borderLeftWidth","borderRightWidth","borderCurve","borderStyle","outlineOffset","outlineStyle","outlineWidth","transformOrigin","transform","backfaceVisibility","opacity","mixBlendMode","experimental_backgroundImage","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","textAlign","textAlignVertical","verticalAlign","letterSpacing","lineHeight","textTransform","textDecorationLine","textDecorationStyle","userSelect","writingDirection","includeFontPadding","resizeMode","objectFit","cursor","pointerEvents","filter","isolation"],"sourceRoot":"../../../../src","sources":["css/web/config.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,mBAAmB,QAAQ,cAAc;AAGlD,SACEC,gBAAgB,EAChBC,YAAY,EACZC,aAAa,EACbC,kBAAkB,EAClBC,iBAAiB,EACjBC,uBAAuB,EACvBC,qBAAqB,EACrBC,wBAAwB,EACxBC,sBAAsB,EACtBC,gBAAgB,EAChBC,sBAAsB,EACtBC,iBAAiB,QACZ,SAAS;AAEhB,MAAMC,eAAe,GAAG;EAAEC,OAAO,EAAEZ;AAAa,CAAC;AAEjD,OAAO,MAAMa,iBAAiD,GAAG;EAC/D;EACA;EACAC,IAAI,EAAE,IAAI;EACVC,SAAS,EAAE,IAAI;EACfC,aAAa,EAAE,IAAI;EACnBC,cAAc,EAAE,IAAI;EACpBC,UAAU,EAAE,IAAI;EAChBC,SAAS,EAAE,IAAI;EACfC,YAAY,EAAE,IAAI;EAClBC,QAAQ,EAAE,IAAI;EACdC,UAAU,EAAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,GAAG,EAAE,IAAI;EACTC,MAAM,EAAE,IAAI;EACZC,SAAS,EAAE,IAAI;EACfC,KAAK,EAAE,KAAK;EACZC,GAAG,EAAE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AAE,IAAI;EAChBC,QAAQ,EAAE,IAAI;EACdC,SAAS,EAAE,IAAI;EACfC,WAAW,EAAE;IAAEnI,OAAO,EAAEV;EAAmB,CAAC;EAC5C8I,UAAU,EAAE;IAAEpI,OAAO,EAAET;EAAkB,CAAC;EAC1C;EACA8I,SAAS,EAAE,IAAI;EACfC,iBAAiB,EAAE,IAAI;EACvBC,aAAa,EAAE,IAAI;EACnB;EACAC,aAAa,EAAE,IAAI;EACnBC,UAAU,EAAE,IAAI;EAChBC,aAAa,EAAE,IAAI;EACnBC,kBAAkB,EAAE,IAAI;EACxBC,mBAAmB,EAAE,IAAI;EACzB;EACAC,UAAU,EAAE,IAAI;EAChBC,gBAAgB,EAAE,KAAK;EACvBC,kBAAkB,EAAE,KAAK;EAEzB;EACA;EACAC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE,KAAK;EAChB;EACAC,MAAM,EAAE,IAAI;EACZC,aAAa,EAAE,IAAI;EACnB;EACAC,MAAM,EAAE;IAAEpJ,OAAO,EAAEX;EAAc,CAAC;EAClCgK,SAAS,EAAE;AACb,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/domUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/domUtils.js deleted file mode 100644 index 6c37b850..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/domUtils.js +++ /dev/null @@ -1,73 +0,0 @@ -'use strict'; - -import { IS_WINDOW_AVAILABLE, logger, ReanimatedError } from '../../common'; -const CSS_ANIMATIONS_STYLE_TAG_ID = 'ReanimatedCSSStyleTag'; - -// Since we cannot remove keyframe from DOM by its name, we have to store its id -const cssNameToIndex = new Map(); -const cssNameList = []; -export function configureWebCSSAnimations() { - if (!IS_WINDOW_AVAILABLE || - // Without this check SSR crashes because document is undefined (NextExample on CI) - document.getElementById(CSS_ANIMATIONS_STYLE_TAG_ID) !== null) { - return; - } - const cssStyleTag = document.createElement('style'); - cssStyleTag.id = CSS_ANIMATIONS_STYLE_TAG_ID; - cssStyleTag.onload = () => { - if (!cssStyleTag.sheet) { - logger.error('Failed to create CSS animations stylesheet.'); - } - }; - document.head.append(cssStyleTag); -} -function getStyleSheet() { - return document.getElementById(CSS_ANIMATIONS_STYLE_TAG_ID)?.sheet ?? null; -} -export function insertCSSAnimation(animationName, keyframes) { - // Without window availability check SSR crashes because document is undefined - // (NextExample on CI) - if (!IS_WINDOW_AVAILABLE || cssNameToIndex.has(animationName)) { - return; - } - const sheet = getStyleSheet(); - if (!sheet) { - logger.error('Failed to create CSS animations stylesheet.'); - return; - } - const animation = `@keyframes ${animationName} { ${keyframes} }`; - sheet.insertRule(animation, 0); - cssNameList.unshift(animationName); - cssNameToIndex.set(animationName, 0); - for (let i = 1; i < cssNameList.length; ++i) { - const nextCSSName = cssNameList[i]; - const nextCSSIndex = cssNameToIndex.get(nextCSSName); - if (nextCSSIndex === undefined) { - throw new ReanimatedError('Failed to obtain CSS animation index.'); - } - cssNameToIndex.set(cssNameList[i], nextCSSIndex + 1); - } -} -export function removeCSSAnimation(animationName) { - // Without this check SSR crashes because document is undefined (NextExample on CI) - if (!IS_WINDOW_AVAILABLE) { - return; - } - const sheet = getStyleSheet(); - const currentCSSIndex = cssNameToIndex.get(animationName); - if (currentCSSIndex === undefined) { - throw new ReanimatedError('Failed to obtain CSS animation index.'); - } - sheet?.deleteRule(currentCSSIndex); - cssNameList.splice(currentCSSIndex, 1); - cssNameToIndex.delete(animationName); - for (let i = currentCSSIndex; i < cssNameList.length; ++i) { - const nextCSSName = cssNameList[i]; - const nextCSSIndex = cssNameToIndex.get(nextCSSName); - if (nextCSSIndex === undefined) { - throw new ReanimatedError('Failed to obtain CSS animation index.'); - } - cssNameToIndex.set(cssNameList[i], nextCSSIndex - 1); - } -} -//# sourceMappingURL=domUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/domUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/domUtils.js.map deleted file mode 100644 index 5c33182a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/domUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_WINDOW_AVAILABLE","logger","ReanimatedError","CSS_ANIMATIONS_STYLE_TAG_ID","cssNameToIndex","Map","cssNameList","configureWebCSSAnimations","document","getElementById","cssStyleTag","createElement","id","onload","sheet","error","head","append","getStyleSheet","insertCSSAnimation","animationName","keyframes","has","animation","insertRule","unshift","set","i","length","nextCSSName","nextCSSIndex","get","undefined","removeCSSAnimation","currentCSSIndex","deleteRule","splice","delete"],"sourceRoot":"../../../../src","sources":["css/web/domUtils.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,mBAAmB,EAAEC,MAAM,EAAEC,eAAe,QAAQ,cAAc;AAE3E,MAAMC,2BAA2B,GAAG,uBAAuB;;AAE3D;AACA,MAAMC,cAAc,GAAG,IAAIC,GAAG,CAAiB,CAAC;AAChD,MAAMC,WAAqB,GAAG,EAAE;AAEhC,OAAO,SAASC,yBAAyBA,CAAA,EAAG;EAC1C,IACE,CAACP,mBAAmB;EAAI;EACxBQ,QAAQ,CAACC,cAAc,CAACN,2BAA2B,CAAC,KAAK,IAAI,EAC7D;IACA;EACF;EAEA,MAAMO,WAAW,GAAGF,QAAQ,CAACG,aAAa,CAAC,OAAO,CAAC;EACnDD,WAAW,CAACE,EAAE,GAAGT,2BAA2B;EAE5CO,WAAW,CAACG,MAAM,GAAG,MAAM;IACzB,IAAI,CAACH,WAAW,CAACI,KAAK,EAAE;MACtBb,MAAM,CAACc,KAAK,CAAC,6CAA6C,CAAC;IAC7D;EACF,CAAC;EAEDP,QAAQ,CAACQ,IAAI,CAACC,MAAM,CAACP,WAAW,CAAC;AACnC;AAEA,SAASQ,aAAaA,CAAA,EAAG;EACvB,OAEIV,QAAQ,CAACC,cAAc,CACrBN,2BACF,CAAC,EACAW,KAAK,IAAI,IAAI;AAEpB;AAEA,OAAO,S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,EAAEqB,UAAU,CAACD,eAAe,CAAC;EAClC5B,WAAW,CAAC8B,MAAM,CAACF,eAAe,EAAE,CAAC,CAAC;EACtC9B,cAAc,CAACiC,MAAM,CAACjB,aAAa,CAAC;EAEpC,KAAK,IAAIO,CAAC,GAAGO,eAAe,EAAEP,CAAC,GAAGrB,WAAW,CAACsB,MAAM,EAAE,EAAED,CAAC,EAAE;IACzD,MAAME,WAAW,GAAGvB,WAAW,CAACqB,CAAC,CAAC;IAClC,MAAMG,YAAY,GAAG1B,cAAc,CAAC2B,GAAG,CAACF,WAAW,CAAC;IAEpD,IAAIC,YAAY,KAAKE,SAAS,EAAE;MAC9B,MAAM,IAAI9B,eAAe,CAAC,uCAAuC,CAAC;IACpE;IAEAE,cAAc,CAACsB,GAAG,CAACpB,WAAW,CAACqB,CAAC,CAAC,EAAEG,YAAY,GAAG,CAAC,CAAC;EACtD;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/index.js deleted file mode 100644 index 0926ca45..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export * from './animationParser'; -export * from './domUtils'; -export * from './keyframes'; -export * from './managers'; -export * from './normalization'; -export * from './utils'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/index.js.map deleted file mode 100644 index e544af74..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["css/web/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,mBAAmB;AACjC,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,iBAAiB;AAC/B,cAAc,SAAS","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js deleted file mode 100644 index 84adc003..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -import { CSSKeyframesRuleBase } from '../../models'; -import { processKeyframeDefinitions } from '../animationParser'; -export default class CSSKeyframesRuleImpl extends CSSKeyframesRuleBase { - constructor(keyframes, processedKeyframes) { - super(keyframes); - this.processedKeyframes_ = processedKeyframes ?? processKeyframeDefinitions(keyframes); - } - get processedKeyframes() { - return this.processedKeyframes_; - } -} -//# sourceMappingURL=CSSKeyframesRuleImpl.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js.map deleted file mode 100644 index 77db5395..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["CSSKeyframesRuleBase","processKeyframeDefinitions","CSSKeyframesRuleImpl","constructor","keyframes","processedKeyframes","processedKeyframes_"],"sourceRoot":"../../../../../src","sources":["css/web/keyframes/CSSKeyframesRuleImpl.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,QAAQ,cAAc;AAEnD,SAASC,0BAA0B,QAAQ,oBAAoB;AAE/D,eAAe,MAAMC,oBAAoB,SAE/BF,oBAAoB,CAAI;EAGhCG,WAAWA,CACTC,SAAmC,EACnCC,kBAA2B,EAC3B;IACA,KAAK,CAACD,SAAS,CAAC;IAChB,IAAI,CAACE,mBAAmB,GACtBD,kBAAkB,IAAIJ,0BAA0B,CAACG,SAAS,CAAC;EAC/D;EAEA,IAAIC,kBAAkBA,CAAA,EAAW;IAC/B,OAAO,IAAI,CAACC,mBAAmB;EACjC;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/index.js deleted file mode 100644 index 1d58cdad..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { default as CSSKeyframesRuleImpl } from './CSSKeyframesRuleImpl'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/index.js.map deleted file mode 100644 index 709c75bb..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/keyframes/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","CSSKeyframesRuleImpl"],"sourceRoot":"../../../../../src","sources":["css/web/keyframes/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,IAAIC,oBAAoB,QAAQ,wBAAwB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSAnimationsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSAnimationsManager.js deleted file mode 100644 index 52c14ded..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSAnimationsManager.js +++ /dev/null @@ -1,160 +0,0 @@ -'use strict'; - -import { maybeAddSuffix } from '../../../common'; -import { convertPropertiesToArrays, kebabizeCamelCase, normalizeTimeUnit } from '../../utils'; -import { processKeyframeDefinitions } from '../animationParser'; -import { configureWebCSSAnimations, insertCSSAnimation, removeCSSAnimation } from '../domUtils'; -import { CSSKeyframesRuleImpl } from '../keyframes'; -import { maybeAddSuffixes, parseTimingFunction } from '../utils'; -const isCSSKeyframesRuleImpl = keyframes => typeof keyframes === 'object' && 'processedKeyframes' in keyframes; -export default class CSSAnimationsManager { - // Keys are processed keyframes - attachedAnimations = {}; - unmountCleanupCalled = false; - constructor(element) { - configureWebCSSAnimations(); - this.element = element; - } - update(animationProperties) { - if (!animationProperties) { - this.detach(); - return; - } - const { - animationName: definitions, - ...animationSettings - } = convertPropertiesToArrays(animationProperties); - if (definitions.length === 0) { - this.detach(); - return; - } - const timestamp = Date.now(); - const processedAnimations = definitions.map(definition => { - let processedAnimation; - - // If the CSSKeyframesRule instance was provided, we can just use it - if (isCSSKeyframesRuleImpl(definition)) { - processedAnimation = this.attachedAnimations[definition.processedKeyframes] ?? { - keyframesRule: definition, - removable: false, - creationTimestamp: timestamp - }; - } else { - // If keyframes was defined as an object, the additional processing is needed - const keyframes = definition; - const processedKeyframes = processKeyframeDefinitions(keyframes); - - // If the animation with the same keyframes was already attached, we can reuse it - // Otherwise, we need to create a new CSSKeyframesRule object - processedAnimation = this.attachedAnimations[processedKeyframes] ?? { - keyframesRule: new CSSKeyframesRuleImpl(keyframes, processedKeyframes), - removable: true, - creationTimestamp: timestamp - }; - } - if (this.unmountCleanupCalled) { - // unmountCleanup is called not only when the component truly unmounts, but also - // when display property is set to 'none' (e.g. during navigation between screens) - // In such a case, we don't want to restart the animation after re-entering the - // screen so we have to shift its delay by the time elapsed since the animation - // was started for the first time. - processedAnimation.elapsedTime = timestamp - processedAnimation.creationTimestamp; - } - return processedAnimation; - }); - this.unmountCleanupCalled = false; - this.updateAttachedAnimations(processedAnimations); - this.setElementAnimations(processedAnimations, animationSettings); - } - unmountCleanup() { - if (!this.unmountCleanupCalled) { - this.unmountCleanupCalled = true; - // We use setTimeout to ensure that the animation is removed after the - // component is unmounted (it puts the detach call at the end of the event loop) - // We just remove the animation definition from the style sheet as there is no - // need to clean up view props if it is removed from the DOM. - setTimeout(() => { - this.removeAnimationsFromStyleSheet(Object.values(this.attachedAnimations)); - }); - } - } - detach() { - const attachedAnimations = Object.values(this.attachedAnimations); - if (attachedAnimations.length === 0) { - return; - } - this.element.style.animationDuration = ''; - this.element.style.animationDelay = ''; - this.element.style.animationDirection = ''; - this.element.style.animationFillMode = ''; - this.element.style.animationPlayState = ''; - this.element.style.animationTimingFunction = ''; - this.removeAnimationsFromStyleSheet(attachedAnimations); - this.unmountCleanupCalled = false; - this.attachedAnimations = {}; - } - updateAttachedAnimations(processedAnimations) { - const newAttachedAnimations = {}; - processedAnimations.forEach(processedAnimation => { - const rule = processedAnimation.keyframesRule; - if (rule.processedKeyframes) { - // We always call insert as it will insert animation only if it doesn't exist - insertCSSAnimation(rule.name, rule.processedKeyframes); - } - newAttachedAnimations[rule.processedKeyframes] = processedAnimation; - }); - Object.values(this.attachedAnimations).forEach(({ - keyframesRule: rule, - removable - }) => { - if (removable && rule.processedKeyframes && !newAttachedAnimations[rule.processedKeyframes]) { - removeCSSAnimation(rule.name); - } - }); - this.attachedAnimations = newAttachedAnimations; - } - setElementAnimations(processedAnimations, animationSettings) { - this.element.style.animationName = processedAnimations.map(({ - keyframesRule: { - name - } - }) => name).join(','); - this.element.style.animationDuration = maybeAddSuffixes(animationSettings, 'animationDuration', 'ms').join(','); - const animationDelays = animationSettings.animationDelay ?? []; - this.element.style.animationDelay = processedAnimations.map(({ - elapsedTime - }, i) => { - const providedDelay = animationDelays[i] ?? 0; - return maybeAddSuffix(elapsedTime ? (normalizeTimeUnit(providedDelay) ?? 0) - elapsedTime : providedDelay, 'ms'); - }).join(','); - if (animationSettings.animationIterationCount) { - this.element.style.animationIterationCount = animationSettings.animationIterationCount.join(','); - } - if (animationSettings.animationDirection) { - this.element.style.animationDirection = animationSettings.animationDirection.map(kebabizeCamelCase).join(','); - } - if (animationSettings.animationFillMode) { - this.element.style.animationFillMode = animationSettings.animationFillMode.join(','); - } - if (animationSettings.animationPlayState) { - this.element.style.animationPlayState = animationSettings.animationPlayState.join(','); - } - if (animationSettings.animationTimingFunction) { - this.element.style.animationTimingFunction = parseTimingFunction(animationSettings.animationTimingFunction); - } - } - removeAnimationsFromStyleSheet(animations) { - animations.forEach(({ - keyframesRule: { - name, - processedKeyframes - }, - removable - }) => { - if (removable && processedKeyframes) { - removeCSSAnimation(name); - } - }); - } -} -//# sourceMappingURL=CSSAnimationsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSAnimationsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSAnimationsManager.js.map deleted file mode 100644 index b2ce42f4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSAnimationsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["maybeAddSuffix","convertPropertiesToArrays","kebabizeCamelCase","normalizeTimeUnit","processKeyframeDefinitions","configureWebCSSAnimations","insertCSSAnimation","removeCSSAnimation","CSSKeyframesRuleImpl","maybeAddSuffixes","parseTimingFunction","isCSSKeyframesRuleImpl","keyframes","CSSAnimationsManager","attachedAnimations","unmountCleanupCalled","constructor","element","update","animationProperties","detach","animationName","definitions","animationSettings","length","timestamp","Date","now","processedAnimations","map","definition","processedAnimation","processedKeyframes","keyframesRule","removable","creationTimestamp","elapsedTime","updateAttachedAnimations","setElementAnimations","unmountCleanup","setTimeout","removeAnimationsFromStyleSheet","Object","values","style","animationDuration","animationDelay","animationDirection","animationFillMode","animationPlayState","animationTimingFunction","newAttachedAnimations","forEach","rule","name","join","animationDelays","i","providedDelay","animationIterationCount","animations"],"sourceRoot":"../../../../../src","sources":["css/web/managers/CSSAnimationsManager.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,cAAc,QAAQ,iBAAiB;AAShD,SACEC,yBAAyB,EACzBC,iBAAiB,EACjBC,iBAAiB,QACZ,aAAa;AACpB,SAASC,0BAA0B,QAAQ,oBAAoB;AAC/D,SACEC,yBAAyB,EACzBC,kBAAkB,EAClBC,kBAAkB,Q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B,CAAC0B,kBAAkB,EAAE;MACxC,IAAI,CAAChC,OAAO,CAAC2B,KAAK,CAACK,kBAAkB,GACnC1B,iBAAiB,CAAC0B,kBAAkB,CAACM,IAAI,CAAC,GAAG,CAAC;IAClD;IAEA,IAAIhC,iBAAiB,CAAC2B,uBAAuB,EAAE;MAC7C,IAAI,CAACjC,OAAO,CAAC2B,KAAK,CAACM,uBAAuB,GAAGxC,mBAAmB,CAC9Da,iBAAiB,CAAC2B,uBACpB,CAAC;IACH;EACF;EAEQT,8BAA8BA,CAACmB,UAAgC,EAAE;IACvEA,UAAU,CAACR,OAAO,CAChB,CAAC;MAAEnB,aAAa,EAAE;QAAEqB,IAAI;QAAEtB;MAAmB,CAAC;MAAEE;IAAU,CAAC,KAAK;MAC9D,IAAIA,SAAS,IAAIF,kBAAkB,EAAE;QACnCzB,kBAAkB,CAAC+C,IAAI,CAAC;MAC1B;IACF,CACF,CAAC;EACH;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSManager.js deleted file mode 100644 index ad5b8185..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSManager.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -import { filterCSSAndStyleProperties } from '../../utils'; -import CSSAnimationsManager from './CSSAnimationsManager'; -import CSSTransitionsManager from './CSSTransitionsManager'; -export default class CSSManager { - constructor(viewInfo) { - this.element = viewInfo.DOMElement; - this.animationsManager = new CSSAnimationsManager(this.element); - this.transitionsManager = new CSSTransitionsManager(this.element); - } - update(style) { - const [animationProperties, transitionProperties] = filterCSSAndStyleProperties(style); - this.animationsManager.update(animationProperties); - this.transitionsManager.update(transitionProperties); - } - unmountCleanup() { - this.animationsManager.unmountCleanup(); - this.transitionsManager.unmountCleanup(); - } -} -//# sourceMappingURL=CSSManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSManager.js.map deleted file mode 100644 index 02d7d4e0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["filterCSSAndStyleProperties","CSSAnimationsManager","CSSTransitionsManager","CSSManager","constructor","viewInfo","element","DOMElement","animationsManager","transitionsManager","update","style","animationProperties","transitionProperties","unmountCleanup"],"sourceRoot":"../../../../../src","sources":["css/web/managers/CSSManager.ts"],"mappings":"AAAA,YAAY;;AAKZ,SAASA,2BAA2B,QAAQ,aAAa;AACzD,OAAOC,oBAAoB,MAAM,wBAAwB;AACzD,OAAOC,qBAAqB,MAAM,yBAAyB;AAE3D,eAAe,MAAMC,UAAU,CAAwB;EAMrDC,WAAWA,CAACC,QAAkB,EAAE;IAC9B,IAAI,CAACC,OAAO,GAAGD,QAAQ,CAACE,UAAmC;IAE3D,IAAI,CAACC,iBAAiB,GAAG,IAAIP,oBAAoB,CAAC,IAAI,CAACK,OAAO,CAAC;IAC/D,IAAI,CAACG,kBAAkB,GAAG,IAAIP,qBAAqB,CAAC,IAAI,CAACI,OAAO,CAAC;EACnE;EAEAI,MAAMA,CAACC,KAAe,EAAQ;IAC5B,MAAM,CAACC,mBAAmB,EAAEC,oBAAoB,CAAC,GAC/Cb,2BAA2B,CAACW,KAAK,CAAC;IAEpC,IAAI,CAACH,iBAAiB,CAACE,MAAM,CAACE,mBAAmB,CAAC;IAClD,IAAI,CAACH,kBAAkB,CAACC,MAAM,CAACG,oBAAoB,CAAC;EACtD;EAEAC,cAAcA,CAAA,EAAS;IACrB,IAAI,CAACN,iBAAiB,CAACM,cAAc,CAAC,CAAC;IACvC,IAAI,CAACL,kBAAkB,CAACK,cAAc,CAAC,CAAC;EAC1C;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSTransitionsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSTransitionsManager.js deleted file mode 100644 index 8e0684c9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSTransitionsManager.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import { kebabizeCamelCase } from '../../utils'; -import { normalizeCSSTransitionProperties } from '../normalization'; -import { maybeAddSuffixes, parseTimingFunction } from '../utils'; -export default class CSSTransitionsManager { - isAttached = false; - constructor(element) { - this.element = element; - } - update(transitionProperties) { - if (!transitionProperties) { - this.detach(); - return; - } - this.setElementTransition(transitionProperties); - this.isAttached = true; - } - unmountCleanup() { - // noop - } - detach() { - if (!this.isAttached) { - return; - } - this.element.style.transition = ''; - this.element.style.transitionProperty = ''; - this.element.style.transitionDuration = ''; - this.element.style.transitionDelay = ''; - this.element.style.transitionTimingFunction = ''; - // @ts-ignore this is correct - this.element.style.transitionBehavior = ''; - this.isAttached = false; - } - setElementTransition(transitionProperties) { - const normalizedProps = normalizeCSSTransitionProperties(transitionProperties); - this.element.style.transitionProperty = normalizedProps.transitionProperty.map(kebabizeCamelCase).join(','); - this.element.style.transitionDuration = maybeAddSuffixes(normalizedProps, 'transitionDuration', 'ms').join(','); - this.element.style.transitionDelay = maybeAddSuffixes(normalizedProps, 'transitionDelay', 'ms').join(','); - this.element.style.transitionTimingFunction = parseTimingFunction(normalizedProps.transitionTimingFunction); - - // @ts-ignore this is correct - this.element.style.transitionBehavior = normalizedProps.transitionBehavior.map(kebabizeCamelCase).join(','); - } -} -//# sourceMappingURL=CSSTransitionsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSTransitionsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSTransitionsManager.js.map deleted file mode 100644 index 4c1903a3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/CSSTransitionsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["kebabizeCamelCase","normalizeCSSTransitionProperties","maybeAddSuffixes","parseTimingFunction","CSSTransitionsManager","isAttached","constructor","element","update","transitionProperties","detach","setElementTransition","unmountCleanup","style","transition","transitionProperty","transitionDuration","transitionDelay","transitionTimingFunction","transitionBehavior","normalizedProps","map","join"],"sourceRoot":"../../../../../src","sources":["css/web/managers/CSSTransitionsManager.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,gCAAgC,QAAQ,kBAAkB;AACnE,SAASC,gBAAgB,EAAEC,mBAAmB,QAAQ,UAAU;AAEhE,eAAe,MAAMC,qBAAqB,CAAmC;EAEnEC,UAAU,GAAG,KAAK;EAE1BC,WAAWA,CAACC,OAA8B,EAAE;IAC1C,IAAI,CAACA,OAAO,GAAGA,OAAO;EACxB;EAEAC,MAAMA,CAACC,oBAAoD,EAAE;IAC3D,IAAI,CAACA,oBAAoB,EAAE;MACzB,IAAI,CAACC,MAAM,CAAC,CAAC;MACb;IACF;IAEA,IAAI,CAACC,oBAAoB,CAACF,oBAAoB,CAAC;IAC/C,IAAI,CAACJ,UAAU,GAAG,IAAI;EACxB;EAEAO,cAAcA,CAAA,EAAG;IACf;EAAA;EAGMF,MAAMA,CAAA,EAAG;IACf,IAAI,CAAC,IAAI,CAACL,UAAU,EAAE;MACpB;IACF;IAEA,IAAI,CAACE,OAAO,CAACM,KAAK,CAACC,UAAU,GAAG,EAAE;IAClC,IAAI,CAACP,OAAO,CAACM,KAAK,CAACE,kBAAkB,GAAG,EAAE;IAC1C,IAAI,CAACR,OAAO,CAACM,KAAK,CAACG,kBAAkB,GAAG,EAAE;IAC1C,IAAI,CAACT,OAAO,CAACM,KAAK,CAACI,eAAe,GAAG,EAAE;IACvC,IAAI,CAACV,OAAO,CAACM,KAAK,CAACK,wBAAwB,GAAG,EAAE;IAChD;IACA,IAAI,CAACX,OAAO,CAACM,KAAK,CAACM,kBAAkB,GAAG,EAAE;IAE1C,IAAI,CAACd,UAAU,GAAG,KAAK;EACzB;EAEQM,oBAAoBA,CAACF,oBAA6C,EAAE;IAC1E,MAAMW,eAAe,GACnBnB,gCAAgC,CAACQ,oBAAoB,CAAC;IAExD,IAAI,CAACF,OAAO,CAACM,KAAK,CAACE,kBAAkB,GAAGK,eAAe,CAACL,kBAAkB,CACvEM,GAAG,CAACrB,iBAAiB,CAAC,CACtBsB,IAAI,CAAC,GAAG,CAAC;IAEZ,IAAI,CAACf,OAAO,CAACM,KAAK,CAACG,kBAAkB,GAAGd,gBAAgB,CACtDkB,eAAe,EACf,oBAAoB,EACpB,IACF,CAAC,CAACE,IAAI,CAAC,GAAG,CAAC;IAEX,IAAI,CAACf,OAAO,CAACM,KAAK,CAACI,eAAe,GAAGf,gBAAgB,CACnDkB,eAAe,EACf,iBAAiB,EACjB,IACF,CAAC,CAACE,IAAI,CAAC,GAAG,CAAC;IAEX,IAAI,CAACf,OAAO,CAACM,KAAK,CAACK,wBAAwB,GAAGf,mBAAmB,CAC/DiB,eAAe,CAACF,wBAClB,CAAC;;IAED;IACA,IAAI,CAACX,OAAO,CAACM,KAAK,CAACM,kBAAkB,GAAGC,eAAe,CAACD,kBAAkB,CACvEE,GAAG,CAACrB,iBAAiB,CAAC,CACtBsB,IAAI,CAAC,GAAG,CAAC;EACd;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/index.js deleted file mode 100644 index 0c2b2acc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export { default as CSSManager } from './CSSManager'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/index.js.map deleted file mode 100644 index 4e322b58..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/managers/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","CSSManager"],"sourceRoot":"../../../../../src","sources":["css/web/managers/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,IAAIC,UAAU,QAAQ,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/index.js deleted file mode 100644 index fec4e939..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export * from './transition'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/index.js.map deleted file mode 100644 index 10d19999..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/web/normalization/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/transition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/transition.js deleted file mode 100644 index c9435f48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/transition.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -import { convertPropertyToArray, parseSingleTransitionShorthand, splitByComma } from '../../utils'; -const createEmptyTransitionConfig = () => ({ - transitionProperty: [], - transitionDuration: [], - transitionTimingFunction: [], - transitionDelay: [], - transitionBehavior: [] -}); -function parseTransitionShorthand(value) { - return splitByComma(value).reduce((acc, part) => { - const result = parseSingleTransitionShorthand(part); - acc.transitionProperty.push(result.transitionProperty ?? 'all'); - acc.transitionDuration.push(result.transitionDuration ? String(result.transitionDuration) : '0s'); - acc.transitionTimingFunction.push(result.transitionTimingFunction ?? 'ease'); - acc.transitionDelay.push(result.transitionDelay ? String(result.transitionDelay) : '0s'); - acc.transitionBehavior.push(result.transitionBehavior ?? 'normal'); - return acc; - }, createEmptyTransitionConfig()); -} -export function normalizeCSSTransitionProperties(config) { - const result = config.transition ? parseTransitionShorthand(config.transition) : createEmptyTransitionConfig(); - for (const [key, value] of Object.entries(config)) { - result[key] = convertPropertyToArray(value); - } - return result; -} -//# sourceMappingURL=transition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/transition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/transition.js.map deleted file mode 100644 index 61515004..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/normalization/transition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertPropertyToArray","parseSingleTransitionShorthand","splitByComma","createEmptyTransitionConfig","transitionProperty","transitionDuration","transitionTimingFunction","transitionDelay","transitionBehavior","parseTransitionShorthand","value","reduce","acc","part","result","push","String","normalizeCSSTransitionProperties","config","transition","key","Object","entries"],"sourceRoot":"../../../../../src","sources":["css/web/normalization/transition.ts"],"mappings":"AAAA,YAAY;;AAMZ,SACEA,sBAAsB,EACtBC,8BAA8B,EAC9BC,YAAY,QACP,aAAa;AAOpB,MAAMC,2BAA2B,GAC/BA,CAAA,MAA8C;EAC5CC,kBAAkB,EAAE,EAAE;EACtBC,kBAAkB,EAAE,EAAE;EACtBC,wBAAwB,EAAE,EAAE;EAC5BC,eAAe,EAAE,EAAE;EACnBC,kBAAkB,EAAE;AACtB,CAAC,CAAC;AAEJ,SAASC,wBAAwBA,CAACC,KAAa,EAAE;EAC/C,OAAOR,YAAY,CAACQ,KAAK,CAAC,CAACC,MAAM,CAC/B,CAACC,GAAG,EAAEC,IAAI,KAAK;IACb,MAAMC,MAAM,GAAGb,8BAA8B,CAACY,IAAI,CAAC;IACnDD,GAAG,CAACR,kBAAkB,CAACW,IAAI,CAACD,MAAM,CAACV,kBAAkB,IAAI,KAAK,CAAC;IAC/DQ,GAAG,CAACP,kBAAkB,CAACU,IAAI,CACzBD,MAAM,CAACT,kBAAkB,GAAGW,MAAM,CAACF,MAAM,CAACT,kBAAkB,CAAC,GAAG,IAClE,CAAC;IACDO,GAAG,CAACN,wBAAwB,CAACS,IAAI,CAC/BD,MAAM,CAACR,wBAAwB,IAAI,MACrC,CAAC;IACDM,GAAG,CAACL,eAAe,CAACQ,IAAI,CACtBD,MAAM,CAACP,eAAe,GAAGS,MAAM,CAACF,MAAM,CAACP,eAAe,CAAC,GAAG,IAC5D,CAAC;IACDK,GAAG,CAACJ,kBAAkB,CAACO,IAAI,CAACD,MAAM,CAACN,kBAAkB,IAAI,QAAQ,CAAC;IAClE,OAAOI,GAAG;EACZ,CAAC,EACDT,2BAA2B,CAAC,CAC9B,CAAC;AACH;AAEA,OAAO,SAASc,gCAAgCA,CAC9CC,MAA+B,EACQ;EACvC,MAAMJ,MAAiB,GAAGI,MAAM,CAACC,UAAU,GACvCV,wBAAwB,CAACS,MAAM,CAACC,UAAU,CAAC,GAC3ChB,2BAA2B,CAAC,CAAC;EAEjC,KAAK,MAAM,CAACiB,GAAG,EAAEV,KAAK,CAAC,IAAIW,MAAM,CAACC,OAAO,CAACJ,MAAM,CAAC,EAAE;IACjDJ,MAAM,CAACM,GAAG,CAAC,GAAGpB,sBAAsB,CAACU,KAAK,CAAC;EAC7C;EAEA,OAAOI,MAAM;AACf","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builderFactories.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builderFactories.js deleted file mode 100644 index 10a8991d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builderFactories.js +++ /dev/null @@ -1,124 +0,0 @@ -'use strict'; - -import { hasSuffix } from '../../../common'; -import { hasProp, isConfigPropertyAlias, isDefined, isRecord, kebabizeCamelCase } from '../../utils'; -const hasValueProcessor = configValue => typeof configValue === 'object' && configValue !== null && 'process' in configValue; -class BuilderBase { - processedProps = {}; - constructor(config) { - this.config = config; - } - add(property, value) { - const configValue = this.config[property]; - if (!configValue || !isDefined(value) || configValue === false) { - return; - } - if (configValue === true) { - this.maybeAssignProp(property, String(value)); - } else if (typeof configValue === 'string') { - this.maybeAssignProp(property, hasSuffix(value) ? value : `${String(value)}${configValue}`); - } else if (isConfigPropertyAlias(configValue)) { - this.add(configValue.as, value); - } else { - this.customProcess(property, value); - } - } - maybeAssignProp(property, value) { - this.processedProps[property] ??= value; - } - maybeAssignProps(properties) { - Object.entries(properties).forEach(([key, value]) => this.maybeAssignProp(key, value)); - } - handleProcess(property, value, process) { - const processedValue = process ? process(value) : String(value); - if (!isDefined(processedValue)) { - return; - } - if (isRecord(processedValue)) { - this.maybeAssignProps(processedValue); - } else { - this.maybeAssignProp(property, processedValue); - } - } -} -class StyleBuilderImpl extends BuilderBase { - ruleBuildersSet = new Set(); - nameAliases = {}; - constructor(config, buildHandler) { - super(config); - this.buildHandler = buildHandler; - } - buildFrom(props) { - Object.entries(props).forEach(([key, value]) => this.add(key, value)); - return this.build(); - } - build() { - this.buildRuleBuilders(); - const result = this.buildHandler(this.processedProps, this.nameAliases); - this.cleanup(); - return result; - } - customProcess(property, value) { - const configValue = this.config[property]; - if (typeof configValue !== 'object') { - return; - } - if (isRuleBuilder(configValue)) { - this.ruleBuildersSet.add(configValue); - configValue.add(property, value); - } else { - if (hasValueProcessor(configValue)) { - this.handleProcess(property, value, configValue.process); - } else { - this.maybeAssignProp(property, String(value)); - } - if (hasProp(configValue, 'name')) { - this.nameAliases[property] = configValue.name; - } - } - } - buildRuleBuilders() { - // Build props which are created from other style properties - this.ruleBuildersSet.forEach(builder => this.maybeAssignProps(builder.build())); - this.ruleBuildersSet.clear(); - } - cleanup() { - this.processedProps = {}; - this.nameAliases = {}; - } -} -class RuleBuilderImpl extends BuilderBase { - constructor(config, buildHandler) { - super(config); - this.buildHandler = buildHandler; - } - build() { - const result = this.buildHandler(this.processedProps); - this.cleanup(); - return result; - } - customProcess(property, value) { - const configValue = this.config[property]; - if (hasValueProcessor(configValue)) { - this.handleProcess(property, value, configValue.process); - } - } - cleanup() { - this.processedProps = {}; - } -} -const isRuleBuilder = value => value instanceof RuleBuilderImpl; -const defaultStyleBuildHandler = (props, nameAliases) => { - const entries = Object.entries(props); - if (entries.length === 0) { - return null; - } - return entries.map(([key, value]) => `${nameAliases[key] ?? kebabizeCamelCase(key)}: ${value}`).join('; '); -}; -export function createStyleBuilder(config, buildHandler = defaultStyleBuildHandler) { - return new StyleBuilderImpl(config, buildHandler); -} -export function createRuleBuilder(config, buildHandler) { - return new RuleBuilderImpl(config, buildHandler); -} -//# sourceMappingURL=builderFactories.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builderFactories.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builderFactories.js.map deleted file mode 100644 index b3a67ed9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builderFactories.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["hasSuffix","hasProp","isConfigPropertyAlias","isDefined","isRecord","kebabizeCamelCase","hasValueProcessor","configValue","BuilderBase","processedProps","constructor","config","add","property","value","maybeAssignProp","String","as","customProcess","maybeAssignProps","properties","Object","entries","forEach","key","handleProcess","process","processedValue","StyleBuilderImpl","ruleBuildersSet","Set","nameAliases","buildHandler","buildFrom","props","build","buildRuleBuilders","result","cleanup","isRuleBuilder","name","builder","clear","RuleBuilderImpl","defaultStyleBuildHandler","length","map","join","createStyleBuilder","createRuleBuilder"],"sourceRoot":"../../../../../src","sources":["css/web/style/builderFactories.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,SAAS,QAAQ,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C,MAA4B,EAC5BqB,YAAiC,EACR;EACzB,OAAO,IAAIW,eAAe,CAAChC,MAAM,EAAEqB,YAAY,CAAC;AAClD","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/index.js deleted file mode 100644 index 5ee7ff2a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export * from './shadows'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/index.js.map deleted file mode 100644 index fd54967c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["css/web/style/builders/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,WAAW","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/shadows.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/shadows.js deleted file mode 100644 index ca7ec4a7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/shadows.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -import { logger } from '../../../../common'; -import { opacifyColor } from '../../utils'; -import { createRuleBuilder } from '../builderFactories'; -import { processColor } from '../processors'; -const processShadowOffset = value => `${value.width}px ${value.height}px`; -export const boxShadowBuilder = createRuleBuilder({ - shadowColor: { - process: processColor - }, - shadowOffset: { - process: processShadowOffset - }, - shadowOpacity: true, - shadowRadius: 'px' -}, ({ - shadowColor = '#000', - shadowOffset = '0 0', - shadowOpacity = '1', - shadowRadius = '0' -}) => { - const opacity = Math.min(Math.max(+shadowOpacity, 0), 1); - const processedColor = opacity !== 1 ? opacifyColor(shadowColor, opacity) : shadowColor; - if (!processedColor) { - logger.warn(`Cannot apply shadowOpacity to shadowColor: ${shadowColor}`); - } - return { - boxShadow: `${shadowOffset} ${shadowRadius} ${processedColor ?? shadowColor}` - }; -}); -export const textShadowBuilder = createRuleBuilder({ - textShadowColor: { - process: processColor - }, - textShadowOffset: { - process: processShadowOffset - }, - textShadowRadius: 'px' -}, ({ - textShadowColor = '#000', - textShadowOffset = '0 0', - textShadowRadius = '0' -}) => ({ - textShadow: `${textShadowOffset} ${textShadowRadius} ${textShadowColor}` -})); -//# sourceMappingURL=shadows.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/shadows.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/shadows.js.map deleted file mode 100644 index 962ca449..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/builders/shadows.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","opacifyColor","createRuleBuilder","processColor","processShadowOffset","value","width","height","boxShadowBuilder","shadowColor","process","shadowOffset","shadowOpacity","shadowRadius","opacity","Math","min","max","processedColor","warn","boxShadow","textShadowBuilder","textShadowColor","textShadowOffset","textShadowRadius","textShadow"],"sourceRoot":"../../../../../../src","sources":["css/web/style/builders/shadows.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,YAAY,QAAQ,aAAa;AAC1C,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,YAAY,QAAQ,eAAe;AAI5C,MAAMC,mBAAyD,GAAIC,KAAK,IACtE,GAAGA,KAAK,CAACC,KAAK,MAAMD,KAAK,CAACE,MAAM,IAAI;AAOtC,OAAO,MAAMC,gBAAgB,GAAGN,iBAAiB,CAC/C;EACEO,WAAW,EAAE;IAAEC,OAAO,EAAEP;EAAa,CAAC;EACtCQ,YAAY,EAAE;IAAED,OAAO,EAAEN;EAAoB,CAAC;EAC9CQ,aAAa,EAAE,IAAI;EACnBC,YAAY,EAAE;AAChB,CAAC,EACD,CAAC;EACCJ,WAAW,GAAG,MAAM;EACpBE,YAAY,GAAG,KAAK;EACpBC,aAAa,GAAG,GAAG;EACnBC,YAAY,GAAG;AACjB,CAAC,KAAK;EACJ,MAAMC,OAAO,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAAC,CAACL,aAAa,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;EACxD,MAAMM,cAAc,GAClBJ,OAAO,KAAK,CAAC,GAAGb,YAAY,CAACQ,WAAW,EAAEK,OAAO,CAAC,GAAGL,WAAW;EAElE,IAAI,CAACS,cAAc,EAAE;IACnBlB,MAAM,CAACmB,IAAI,CAAC,8CAA8CV,WAAW,EAAE,CAAC;EAC1E;EAEA,OAAO;IACLW,SAAS,EAAE,GAAGT,YAAY,IAAIE,YAAY,IAAIK,cAAc,IAAIT,WAAW;EAC7E,CAAC;AACH,CACF,CAAC;AAOD,OAAO,MAAMY,iBAAiB,GAAGnB,iBAAiB,CAChD;EACEoB,eAAe,EAAE;IAAEZ,OAAO,EAAEP;EAAa,CAAC;EAC1CoB,gBAAgB,EAAE;IAAEb,OAAO,EAAEN;EAAoB,CAAC;EAClDoB,gBAAgB,EAAE;AACpB,CAAC,EACD,CAAC;EACCF,eAAe,GAAG,MAAM;EACxBC,gBAAgB,GAAG,KAAK;EACxBC,gBAAgB,GAAG;AACrB,CAAC,MAAM;EACLC,UAAU,EAAE,GAAGF,gBAAgB,IAAIC,gBAAgB,IAAIF,eAAe;AACxE,CAAC,CACH,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/index.js deleted file mode 100644 index 20821cd1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export * from './builderFactories'; -export * from './builders'; -export * from './processors'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/index.js.map deleted file mode 100644 index 7b0e6a73..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/web/style/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,oBAAoB;AAClC,cAAc,YAAY;AAC1B,cAAc,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/colors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/colors.js deleted file mode 100644 index 82dd7632..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/colors.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -import { convertToRGBA, rgbaArrayToRGBAColor } from '../../../../Colors'; -import { isNumber } from '../../../utils'; -export const processColor = value => { - if (isNumber(value)) { - const rgbaArray = convertToRGBA(value); - return rgbaArrayToRGBAColor(rgbaArray); - } - if (typeof value !== 'string') { - return; - } - if (value.startsWith('hwb')) { - return value.replace(/\s*,\s*/g, ' '); - } - return value; -}; -//# sourceMappingURL=colors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/colors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/colors.js.map deleted file mode 100644 index 09b0dcd6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertToRGBA","rgbaArrayToRGBAColor","isNumber","processColor","value","rgbaArray","startsWith","replace"],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/colors.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,aAAa,EAAEC,oBAAoB,QAAQ,oBAAoB;AACxE,SAASC,QAAQ,QAAQ,gBAAgB;AAGzC,OAAO,MAAMC,YAAwC,GAAIC,KAAK,IAAK;EACjE,IAAIF,QAAQ,CAACE,KAAK,CAAC,EAAE;IACnB,MAAMC,SAAS,GAAGL,aAAa,CAACI,KAAK,CAAC;IACtC,OAAOH,oBAAoB,CAACI,SAAS,CAAC;EACxC;EAEA,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IAC7B;EACF;EAEA,IAAIA,KAAK,CAACE,UAAU,CAAC,KAAK,CAAC,EAAE;IAC3B,OAAOF,KAAK,CAACG,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC;EACvC;EAEA,OAAOH,KAAK;AACd,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/filter.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/filter.js deleted file mode 100644 index d0d9e85f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/filter.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -import { maybeAddSuffix } from '../../../../common'; -const FILTER_SUFFIXES = { - brightness: '%', - blur: 'px', - contrast: '%', - grayscale: '%', - hueRotate: 'deg', - invert: '%', - saturate: '%', - sepia: '%' -}; -export const processFilter = value => { - if (typeof value === 'string') { - return value; - } - return value.map(filter => Object.entries(filter).map(([filterProp, filterValue]) => { - if (filterProp !== 'dropShadow') { - return `${filterProp}(${maybeAddSuffix(filterValue, FILTER_SUFFIXES[filterProp])})`; - } else if (typeof filterValue === 'string') { - return `drop-shadow(${filterValue})`; - } else { - return `drop-shadow(${[maybeAddSuffix(filterValue.offsetX, 'px'), maybeAddSuffix(filterValue.offsetY, 'px'), maybeAddSuffix(filterValue.standardDeviation, 'px'), filterValue.color].filter(Boolean).join(' ')})`; - } - }).join(' ')).join(', '); -}; -//# sourceMappingURL=filter.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/filter.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/filter.js.map deleted file mode 100644 index a977920f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["maybeAddSuffix","FILTER_SUFFIXES","brightness","blur","contrast","grayscale","hueRotate","invert","saturate","sepia","processFilter","value","map","filter","Object","entries","filterProp","filterValue","offsetX","offsetY","standardDeviation","color","Boolean","join"],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/filter.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,cAAc,QAAQ,oBAAoB;AAGnD,MAAMC,eAAuC,GAAG;EAC9CC,UAAU,EAAE,GAAG;EACfC,IAAI,EAAE,IAAI;EACVC,QAAQ,EAAE,GAAG;EACbC,SAAS,EAAE,GAAG;EACdC,SAAS,EAAE,KAAK;EAChBC,MAAM,EAAE,GAAG;EACXC,QAAQ,EAAE,GAAG;EACbC,KAAK,EAAE;AACT,CAAC;AAED,OAAO,MAAMC,aAEZ,GAAIC,KAAK,IAAK;EACb,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAOA,KAAK;EACd;EAEA,OAAOA,KAAK,CACTC,GAAG,CAAEC,MAAM,IACVC,MAAM,CAACC,OAAO,CAACF,MAAM,CAAC,CACnBD,GAAG,CAAC,CAAC,CAACI,UAAU,EAAEC,WAAW,CAAC,KAAK;IAClC,IAAID,UAAU,KAAK,YAAY,EAAE;MAC/B,OAAO,GAAGA,UAAU,IAAIhB,cAAc,CAACiB,WAAW,EAAEhB,eAAe,CAACe,UAAU,CAAC,CAAC,GAAG;IACrF,CAAC,MAAM,IAAI,OAAOC,WAAW,KAAK,QAAQ,EAAE;MAC1C,OAAO,eAAeA,WAAW,GAAG;IACtC,CAAC,MAAM;MACL,OAAO,eAAe,CACpBjB,cAAc,CAACiB,WAAW,CAACC,OAAO,EAAE,IAAI,CAAC,EACzClB,cAAc,CAACiB,WAAW,CAACE,OAAO,EAAE,IAAI,CAAC,EACzCnB,cAAc,CAACiB,WAAW,CAACG,iBAAiB,EAAE,IAAI,CAAC,EACnDH,WAAW,CAACI,KAAK,CAClB,CACER,MAAM,CAACS,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC,GAAG;IACjB;EACF,CAAC,CAAC,CACDA,IAAI,CAAC,GAAG,CACb,CAAC,CACAA,IAAI,CAAC,IAAI,CAAC;AACf,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/font.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/font.js deleted file mode 100644 index 3e273a24..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/font.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -import { FONT_WEIGHT_MAPPINGS } from '../../../constants'; -export const processFontWeight = value => { - if (typeof value === 'number' || !isNaN(+value)) { - return String(value); - } - if (value in FONT_WEIGHT_MAPPINGS) { - return FONT_WEIGHT_MAPPINGS[value]; - } -}; -export const processFontVariant = value => value.join(', '); -//# sourceMappingURL=font.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/font.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/font.js.map deleted file mode 100644 index a6d1bf2c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/font.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["FONT_WEIGHT_MAPPINGS","processFontWeight","value","isNaN","String","processFontVariant","join"],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/font.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,oBAAoB,QAAQ,oBAAoB;AAGzD,OAAO,MAAMC,iBAAkD,GAAIC,KAAK,IAAK;EAC3E,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAAC,CAACD,KAAK,CAAC,EAAE;IAC/C,OAAOE,MAAM,CAACF,KAAK,CAAC;EACtB;EAEA,IAAIA,KAAK,IAAIF,oBAAoB,EAAE;IACjC,OAAOA,oBAAoB,CAACE,KAAK,CAAsC;EACzE;AACF,CAAC;AAED,OAAO,MAAMG,kBAAiD,GAAIH,KAAK,IACrEA,KAAK,CAACI,IAAI,CAAC,IAAI,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/index.js deleted file mode 100644 index 637180a8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export * from './colors'; -export * from './filter'; -export * from './font'; -export * from './margins'; -export * from './paddings'; -export * from './transforms'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/index.js.map deleted file mode 100644 index 0deed203..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/margins.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/margins.js deleted file mode 100644 index 7e1b9f29..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/margins.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -import { parseDimensionValue } from '../../utils'; -export const processMarginHorizontal = value => { - const result = parseDimensionValue(value); - if (!result) { - return; - } - return { - marginLeft: result, - marginRight: result - }; -}; -export const processMarginVertical = value => { - const result = parseDimensionValue(value); - if (!result) { - return; - } - return { - marginTop: result, - marginBottom: result - }; -}; -//# sourceMappingURL=margins.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/margins.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/margins.js.map deleted file mode 100644 index e3e92d7d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/margins.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["parseDimensionValue","processMarginHorizontal","value","result","marginLeft","marginRight","processMarginVertical","marginTop","marginBottom"],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/margins.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,mBAAmB,QAAQ,aAAa;AAGjD,OAAO,MAAMC,uBAAuD,GAClEC,KAAK,IACF;EACH,MAAMC,MAAM,GAAGH,mBAAmB,CAACE,KAAK,CAAC;EAEzC,IAAI,CAACC,MAAM,EAAE;IACX;EACF;EAEA,OAAO;IACLC,UAAU,EAAED,MAAM;IAClBE,WAAW,EAAEF;EACf,CAAC;AACH,CAAC;AAED,OAAO,MAAMG,qBAAqD,GAChEJ,KAAK,IACF;EACH,MAAMC,MAAM,GAAGH,mBAAmB,CAACE,KAAK,CAAC;EAEzC,IAAI,CAACC,MAAM,EAAE;IACX;EACF;EAEA,OAAO;IACLI,SAAS,EAAEJ,MAAM;IACjBK,YAAY,EAAEL;EAChB,CAAC;AACH,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/paddings.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/paddings.js deleted file mode 100644 index 65f6ce5d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/paddings.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -import { parseDimensionValue } from '../../utils'; -export const processPaddingHorizontal = value => { - const result = parseDimensionValue(value); - if (!result) { - return; - } - return { - paddingLeft: result, - paddingRight: result - }; -}; -export const processPaddingVertical = value => { - const result = parseDimensionValue(value); - if (!result) { - return; - } - return { - paddingTop: result, - paddingBottom: result - }; -}; -//# sourceMappingURL=paddings.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/paddings.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/paddings.js.map deleted file mode 100644 index a66d558d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/paddings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["parseDimensionValue","processPaddingHorizontal","value","result","paddingLeft","paddingRight","processPaddingVertical","paddingTop","paddingBottom"],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/paddings.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,mBAAmB,QAAQ,aAAa;AAGjD,OAAO,MAAMC,wBAAwD,GACnEC,KAAK,IACF;EACH,MAAMC,MAAM,GAAGH,mBAAmB,CAACE,KAAK,CAAC;EAEzC,IAAI,CAACC,MAAM,EAAE;IACX;EACF;EAEA,OAAO;IACLC,WAAW,EAAED,MAAM;IACnBE,YAAY,EAAEF;EAChB,CAAC;AACH,CAAC;AAED,OAAO,MAAMG,sBAAsD,GACjEJ,KAAK,IACF;EACH,MAAMC,MAAM,GAAGH,mBAAmB,CAACE,KAAK,CAAC;EAEzC,IAAI,CAACC,MAAM,EAAE;IACX;EACF;EAEA,OAAO;IACLI,UAAU,EAAEJ,MAAM;IAClBK,aAAa,EAAEL;EACjB,CAAC;AACH,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/transforms.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/transforms.js deleted file mode 100644 index 1cceba91..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/transforms.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -import { createStyleBuilder } from '../builderFactories'; -const transformBuilder = createStyleBuilder({ - perspective: 'px', - rotate: true, - rotateX: true, - rotateY: true, - rotateZ: true, - scale: true, - scaleX: true, - scaleY: true, - translateX: 'px', - translateY: 'px', - skewX: true, - skewY: true, - matrix: { - name: 'matrix3d' - } -}, (transforms, nameAliases) => Object.entries(transforms).map(([key, value]) => `${nameAliases[key] ?? key}(${value})`).join(' ')); -export const processTransform = value => { - if (!value) { - return; - } - if (typeof value === 'string') { - return value; - } - value.forEach(transform => Object.entries(transform).forEach(([transformProp, transformValue]) => transformBuilder.add(transformProp, transformValue))); - return transformBuilder.build(); -}; -export const processTransformOrigin = value => { - if (typeof value === 'string') { - return value; - } - return value.map(v => typeof v === 'number' ? `${v}px` : v).join(' '); -}; -//# sourceMappingURL=transforms.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/transforms.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/transforms.js.map deleted file mode 100644 index 1b8a1178..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/processors/transforms.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createStyleBuilder","transformBuilder","perspective","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","translateX","translateY","skewX","skewY","matrix","name","transforms","nameAliases","Object","entries","map","key","value","join","processTransform","forEach","transform","transformProp","transformValue","add","build","processTransformOrigin","v"],"sourceRoot":"../../../../../../src","sources":["css/web/style/processors/transforms.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,kBAAkB,QAAQ,qBAAqB;AAGxD,MAAMC,gBA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GAAG,GAAGA,CAAC,IAAI,GAAGA,CAAE,CAAC,CAACT,IAAI,CAAC,GAAG,CAAC;AAC3E,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/types.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/types.js deleted file mode 100644 index ccadfcf8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/types.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/types.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/types.js.map deleted file mode 100644 index 25004f62..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/style/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["css/web/style/types.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/utils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/utils.js deleted file mode 100644 index c8d046ef..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/utils.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -import { hasSuffix, maybeAddSuffix, processColor, ReanimatedError } from '../../common'; -import { CubicBezierEasing, LinearEasing, StepsEasing } from '../easing'; -import { kebabizeCamelCase } from '../utils'; -export function maybeAddSuffixes(object, key, suffix) { - if (!(key in object)) { - return []; - } - return object[key].map(value => maybeAddSuffix(value, suffix)); -} -function easingMapper(easing) { - if (typeof easing === 'string') { - return easing; - } - if (easing instanceof StepsEasing) { - return `steps(${easing.stepsNumber}, ${kebabizeCamelCase(easing.modifier)})`; - } - if (easing instanceof CubicBezierEasing) { - return `cubic-bezier(${easing.x1}, ${easing.y1}, ${easing.x2}, ${easing.y2})`; - } - if (easing instanceof LinearEasing) { - const values = easing.points.map(point => Array.isArray(point) ? point.join(' ') : point).join(', '); - return `linear(${values})`; - } - throw new ReanimatedError(`Invalid timing function ${easing.toString()}`); -} -export function parseTimingFunction(timingFunction) { - if (Array.isArray(timingFunction)) { - return timingFunction.map(easingMapper).join(', '); - } - return easingMapper(timingFunction); -} -export function parseDimensionValue(value) { - if (typeof value === 'object') { - return; - } - if (typeof value === 'string') { - return value; - } - if (!hasSuffix(value)) { - return `${value}px`; - } - return value; -} -export function opacifyColor(color, opacity) { - const colorNumber = processColor(color); - if (colorNumber == null) { - return null; - } - const a = colorNumber >> 24 & 0xff; - const r = colorNumber >> 16 & 0xff; - const g = colorNumber >> 8 & 0xff; - const b = colorNumber & 0xff; - - // Combine the existing alpha with the new opacity - const newAlpha = a / 255 * opacity; - return `rgba(${r}, ${g}, ${b}, ${newAlpha})`; -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/utils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/utils.js.map deleted file mode 100644 index cd0cea77..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/css/web/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["hasSuffix","maybeAddSuffix","processColor","ReanimatedError","CubicBezierEasing","LinearEasing","StepsEasing","kebabizeCamelCase","maybeAddSuffixes","object","key","suffix","map","value","easingMapper","easing","stepsNumber","modifier","x1","y1","x2","y2","values","points","point","Array","isArray","join","toString","parseTimingFunction","timingFunction","parseDimensionValue","opacifyColor","color","opacity","colorNumber","a","r","g","b","newAlpha"],"sourceRoot":"../../../../src","sources":["css/web/utils.ts"],"mappings":"AAAA,YAAY;;AAGZ,SACEA,SAAS,EACTC,cAAc,EACdC,YAAY,EACZC,eAAe,QACV,cAAc;AAErB,SAASC,iBAAiB,EAAEC,YAAY,EAAEC,WAAW,QAAQ,WAAW;AAExE,SAASC,iBAAiB,QAAQ,UA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,IAAI,CAAC;EACpD;EAEA,OAAOb,YAAY,CAACgB,cAAc,CAAC;AACrC;AAEA,OAAO,SAASC,mBAAmBA,CAAClB,KAAqB,EAAE;EACzD,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B;EACF;EACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAOA,KAAK;EACd;EACA,IAAI,CAACb,SAAS,CAACa,KAAK,CAAC,EAAE;IACrB,OAAO,GAAGA,KAAK,IAAI;EACrB;EAEA,OAAOA,KAAK;AACd;AAEA,OAAO,SAASmB,YAAYA,CAC1BC,KAAiB,EACjBC,OAAe,EACA;EACf,MAAMC,WAAW,GAAGjC,YAAY,CAAC+B,KAAK,CAAC;EACvC,IAAIE,WAAW,IAAI,IAAI,EAAE;IACvB,OAAO,IAAI;EACb;EAEA,MAAMC,CAAC,GAAID,WAAW,IAAI,EAAE,GAAI,IAAI;EACpC,MAAME,CAAC,GAAIF,WAAW,IAAI,EAAE,GAAI,IAAI;EACpC,MAAMG,CAAC,GAAIH,WAAW,IAAI,CAAC,GAAI,IAAI;EACnC,MAAMI,CAAC,GAAGJ,WAAW,GAAG,IAAI;;EAE5B;EACA,MAAMK,QAAQ,GAAIJ,CAAC,GAAG,GAAG,GAAIF,OAAO;EAEpC,OAAO,QAAQG,CAAC,KAAKC,CAAC,KAAKC,CAAC,KAAKC,QAAQ,GAAG;AAC9C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/Colors.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/Colors.js deleted file mode 100644 index 9c27b93c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/Colors.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -//# sourceMappingURL=Colors.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/Colors.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/Colors.js.map deleted file mode 100644 index 1ef58fdf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/Colors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["culori/Colors.ts"],"mappings":"AAAA,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/index.js deleted file mode 100644 index 410cd0f0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -/* - * The vast majority of the code exported by this module is a direct copy of the code from - * the culori package (see https://culorijs.org/), which deserves full credit for it. - */ -import oklab from './oklab'; -export default { - oklab -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/index.js.map deleted file mode 100644 index ed3fab70..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["oklab"],"sourceRoot":"../../../src","sources":["culori/index.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AAEA,OAAOA,KAAK,MAAM,SAAS;AAE3B,eAAe;EACbA;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/lrgb.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/lrgb.js deleted file mode 100644 index b59d648d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/lrgb.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -/* - * The vast majority of the code exported by this module is a direct copy of the code from the culori package (see - * https://culorijs.org/), which deserves full credit for it. In particular, code from the following path has been used: - * - https://github.com/Evercoder/culori/tree/v4.0.1/src/lrgb - */ - -// TODO Remove once we have the option to get a workletized version of the culori package -// https://github.com/software-mansion/react-native-reanimated/pull/6782#pullrequestreview-2488830278 -const channelFromLrgb = (c = 0) => { - 'worklet'; - - const abs = Math.abs(c); - if (abs > 0.0031308) { - return (Math.sign(c) || 1) * (1.055 * Math.pow(abs, 1 / 2.4) - 0.055); - } - return c * 12.92; -}; -const convertLrgbToRgb = ({ - r, - g, - b, - alpha -}) => { - 'worklet'; - - return { - r: channelFromLrgb(r), - g: channelFromLrgb(g), - b: channelFromLrgb(b), - alpha - }; -}; -const channelToLrgb = (c = 0) => { - 'worklet'; - - const abs = Math.abs(c); - if (abs <= 0.04045) { - return c / 12.92; - } - return (Math.sign(c) || 1) * Math.pow((abs + 0.055) / 1.055, 2.4); -}; -const convertRgbToLrgb = ({ - r, - g, - b, - alpha -}) => { - 'worklet'; - - return { - r: channelToLrgb(r), - g: channelToLrgb(g), - b: channelToLrgb(b), - alpha - }; -}; -export default { - convert: { - fromRgb: convertRgbToLrgb, - toRgb: convertLrgbToRgb - } -}; -//# sourceMappingURL=lrgb.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/lrgb.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/lrgb.js.map deleted file mode 100644 index 57181018..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/lrgb.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["channelFromLrgb","c","abs","Math","sign","pow","convertLrgbToRgb","r","g","b","alpha","channelToLrgb","convertRgbToLrgb","convert","fromRgb","toRgb"],"sourceRoot":"../../../src","sources":["culori/lrgb.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;;AAEA;AACA;AAIA,MAAMA,eAAe,GAAGA,CAACC,CAAC,GAAG,CAAC,KAAK;EACjC,SAAS;;EACT,MAAMC,GAAG,GAAGC,IAAI,CAACD,GAAG,CAACD,CAAC,CAAC;EACvB,IAAIC,GAAG,GAAG,SAAS,EAAE;IACnB,OAAO,CAACC,IAAI,CAACC,I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-admin/node_modules/react-native-reanimated/lib/module/culori/oklab.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/oklab.js deleted file mode 100644 index 383d57c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/oklab.js +++ /dev/null @@ -1,78 +0,0 @@ -'use strict'; - -/* - * The vast majority of the code exported by this module is a direct copy of the code from the culori package (see - * https://culorijs.org/), which deserves full credit for it. In particular, code from the following path has been used: - * - https://github.com/Evercoder/culori/tree/v4.0.1/src/oklab - */ -// TODO Once we have the option to workletize external dependencies, we can replace most of the code below with -// a simple implementation based on their converter utils (see -// https://github.com/software-mansion/react-native-reanimated/pull/6782#pullrequestreview-2488830278, -// https://culorijs.org/api/#converter). -import lrgb from './lrgb'; -function convertLrgbToOklab({ - r = 0, - g = 0, - b = 0, - alpha -}) { - 'worklet'; - - const L = Math.cbrt(0.41222147079999993 * r + 0.5363325363 * g + 0.0514459929 * b); - const M = Math.cbrt(0.2119034981999999 * r + 0.6806995450999999 * g + 0.1073969566 * b); - const S = Math.cbrt(0.08830246189999998 * r + 0.2817188376 * g + 0.6299787005000002 * b); - return { - l: 0.2104542553 * L + 0.793617785 * M - 0.0040720468 * S, - a: 1.9779984951 * L - 2.428592205 * M + 0.4505937099 * S, - b: 0.0259040371 * L + 0.7827717662 * M - 0.808675766 * S, - alpha - }; -} -function convertRgbToOklab(rgb) { - 'worklet'; - - const lrgbColor = lrgb.convert.fromRgb(rgb); - const result = convertLrgbToOklab(lrgbColor); - if (rgb.r === rgb.b && rgb.b === rgb.g) { - result.a = result.b = 0; - } - return result; -} -function convertOklabToLrgb({ - l = 0, - a = 0, - b = 0, - alpha -}) { - 'worklet'; - - /* eslint-disable no-loss-of-precision */ - const L = Math.pow(l * 0.99999999845051981432 + 0.39633779217376785678 * a + 0.21580375806075880339 * b, 3); - const M = Math.pow(l * 1.0000000088817607767 - 0.1055613423236563494 * a - 0.063854174771705903402 * b, 3); - const S = Math.pow(l * 1.0000000546724109177 - 0.089484182094965759684 * a - 1.2914855378640917399 * b, 3); - return { - r: +4.076741661347994 * L - 3.307711590408193 * M + 0.230969928729428 * S, - g: -1.2684380040921763 * L + 2.6097574006633715 * M - 0.3413193963102197 * S, - b: -0.004196086541837188 * L - 0.7034186144594493 * M + 1.7076147009309444 * S, - alpha - }; - /* eslint-enable no-loss-of-precision */ -} -function convertOklabToRgb(labColor) { - 'worklet'; - - const roundChannel = channel => Math.ceil(channel * 100_000) / 100_000; - const lrgbColor = convertOklabToLrgb(labColor); - const rgbColor = lrgb.convert.toRgb(lrgbColor); - rgbColor.r = roundChannel(rgbColor.r); - rgbColor.g = roundChannel(rgbColor.g); - rgbColor.b = roundChannel(rgbColor.b); - return rgbColor; -} -export default { - convert: { - fromRgb: convertRgbToOklab, - toRgb: convertOklabToRgb - } -}; -//# sourceMappingURL=oklab.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/oklab.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/oklab.js.map deleted file mode 100644 index 41a884b5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/culori/oklab.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["lrgb","convertLrgbToOklab","r","g","b","alpha","L","Math","cbrt","M","S","l","a","convertRgbToOklab","rgb","lrgbColor","convert","fromRgb","result","convertOklabToLrgb","pow","convertOklabToRgb","labColor","roundChannel","channel","ceil","rgbColor","toRgb"],"sourceRoot":"../../../src","sources":["culori/oklab.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,QAAQ;AAEzB,SAASC,kBAAkBA,CAAC;EAC1BC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACLC,CAAC,GAAG,CAAC;EACLC;AACQ,CAAC,EAAY;EACrB,SAAS;;EACT,MAAMC,CAAC,GAAGC,IAAI,CAACC,IAAI,CACjB,mBAAmB,G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C,OAAOsB,QAAQ;AACjB;AAEA,eAAe;EACbV,OAAO,EAAE;IACPC,OAAO,EAAEJ,iBAAiB;IAC1Bc,KAAK,EAAEN;EACT;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.js deleted file mode 100644 index dad13f0d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.js +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -'use strict'; - -import { findHostInstance } from './platform-specific/findHostInstance'; -export function getShadowNodeWrapperFromRef(ref, hostInstance) { - let resolvedInstance = hostInstance?.__internalInstanceHandle ?? ref?.__internalInstanceHandle; - if (!resolvedInstance) { - if (ref.getNativeScrollRef) { - resolvedInstance = ref.getNativeScrollRef().__internalInstanceHandle; - } else if (ref._reactInternals) { - resolvedInstance = findHostInstance(ref).__internalInstanceHandle; - } else { - throw new ReanimatedError(`Failed to find host instance for a ref.}`); - } - } - return resolvedInstance.stateNode.node; -} -//# sourceMappingURL=fabricUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.js.map deleted file mode 100644 index c8a723c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["findHostInstance","getShadowNodeWrapperFromRef","ref","hostInstance","resolvedInstance","__internalInstanceHandle","getNativeScrollRef","_reactInternals","ReanimatedError","stateNode","node"],"sourceRoot":"../../src","sources":["fabricUtils.ts"],"mappings":"AAAA;AACA,YAAY;;AAGZ,SAASA,gBAAgB,QAAQ,sCAAsC;AAEvE,OAAO,SAASC,2BAA2BA,CACzCC,GAAe,EACfC,YAA2B,EACR;EACnB,IAAIC,gBAAgB,GAClBD,YAAY,EAAEE,wBAAwB,IAAIH,GAAG,EAAEG,wBAAwB;EAEzE,IAAI,CAACD,gBAAgB,EAAE;IACrB,IAAIF,GAAG,CAACI,kBAAkB,EAAE;MAC1BF,gBAAgB,GAAIF,GAAG,CAACI,kBAAkB,CAAC,CAAC,CACzCD,wBAAwB;IAC7B,CAAC,MAAM,IAAKH,GAAG,CAASK,eAAe,EAAE;MACvCH,gBAAgB,GAAGJ,gBAAgB,CAACE,GAAG,CAAC,CAACG,wBAAwB;IACnE,CAAC,MAAM;MACL,MAAM,IAAIG,eAAe,CAAC,0CAA0C,CAAC;IACvE;EACF;EAEA,OAAOJ,gBAAgB,CAAEK,SAAS,CAACC,IAAI;AACzC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.web.js deleted file mode 100644 index 14a6f199..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.web.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -import { ReanimatedError } from './common'; -export function getShadowNodeWrapperFromRef() { - throw new ReanimatedError('Trying to call `getShadowNodeWrapperFromRef` on web.'); -} -//# sourceMappingURL=fabricUtils.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.web.js.map deleted file mode 100644 index 1bc888c2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/fabricUtils.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","getShadowNodeWrapperFromRef"],"sourceRoot":"../../src","sources":["fabricUtils.web.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,eAAe,QAAQ,UAAU;AAE1C,OAAO,SAASC,2BAA2BA,CAAA,EAAG;EAC5C,MAAM,IAAID,eAAe,CACvB,sDACF,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/index.js deleted file mode 100644 index 3bef4ce0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/index.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -import { ReanimatedModule } from '../ReanimatedModule'; -/** @knipIgnore */ -export const DynamicFlags = { - EXAMPLE_DYNAMIC_FLAG: false, - init() { - Object.keys(DynamicFlags).forEach(key => { - if (key !== 'init' && key !== 'setFlag') { - ReanimatedModule.setDynamicFeatureFlag(key, DynamicFlags[key]); - } - }); - }, - setFlag(name, value) { - if (name in DynamicFlags) { - DynamicFlags[name] = value; - ReanimatedModule.setDynamicFeatureFlag(name, value); - } else { - logger.warn(`The feature flag: '${name}' no longer exists, you can safely remove invocation of \`setDynamicFeatureFlag('${name}')\` from your code.`); - } - } -}; -DynamicFlags.init(); - -// Public API function to update a feature flag -export function setDynamicFeatureFlag(name, value) { - DynamicFlags.setFlag(name, value); -} - -/** - * This constant is needed for typechecking and preserving static typechecks in - * generated .d.ts files. Without it, the static flags resolve to an object - * without specific keys. - */ -// eslint-disable-next-line @typescript-eslint/no-unused-vars -const DefaultStaticFeatureFlags = { - RUNTIME_TEST_FLAG: false, - DISABLE_COMMIT_PAUSING_MECHANISM: false, - ANDROID_SYNCHRONOUSLY_UPDATE_UI_PROPS: false, - EXPERIMENTAL_CSS_ANIMATIONS_FOR_SVG_COMPONENTS: false, - USE_SYNCHRONIZABLE_FOR_MUTABLES: false -}; -const staticFeatureFlags = {}; -export function getStaticFeatureFlag(name) { - if (name in staticFeatureFlags) { - return staticFeatureFlags[name]; - } - const featureFlagValue = ReanimatedModule.getStaticFeatureFlag(name); - staticFeatureFlags[name] = featureFlagValue; - return featureFlagValue; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/index.js.map deleted file mode 100644 index 0de7571b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","ReanimatedModule","DynamicFlags","EXAMPLE_DYNAMIC_FLAG","init","Object","keys","forEach","key","setDynamicFeatureFlag","setFlag","name","value","warn","DefaultStaticFeatureFlags","RUNTIME_TEST_FLAG","DISABLE_COMMIT_PAUSING_MECHANISM","ANDROID_SYNCHRONOUSLY_UPDATE_UI_PROPS","EXPERIMENTAL_CSS_ANIMATIONS_FOR_SVG_COMPONENTS","USE_SYNCHRONIZABLE_FOR_MUTABLES","staticFeatureFlags","getStaticFeatureFlag","featureFlagValue"],"sourceRoot":"../../../src","sources":["featureFlags/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,WAAW;AAClC,SAASC,gBAAgB,QAAQ,qBAAqB;AAUtD;AACA,OAAO,MAAMC,YAA8B,GAAG;EAC5CC,oBAAoB,EAAE,KAAK;EAE3BC,IAAIA,CAAA,EAAG;IACLC,MAAM,CAACC,IAAI,CAACJ,YAAY,CAAC,CAACK,OAAO,CAAEC,GAAG,IAAK;MACzC,IAAIA,GAAG,KAAK,MAAM,IAAIA,GAAG,KAAK,SAAS,EAAE;QACvCP,gBAAgB,CAACQ,qBAAqB,CACpCD,GAAG,EACHN,YAAY,CAACM,GAAG,CAClB,CAAC;MACH;IACF,CAAC,CAAC;EACJ,CAAC;EACDE,OAAOA,CAACC,IAAI,EAAEC,KAAK,EAAE;IACnB,IAAID,IAAI,IAAIT,YAAY,EAAE;MACxBA,YAAY,CAACS,IAAI,CAAC,GAAGC,KAAK;MAC1BX,gBAAgB,CAACQ,qBAAqB,CAACE,IAAI,EAAEC,KAAK,CAAC;IACrD,CAAC,MAAM;MACLZ,MAAM,CAACa,IAAI,CACT,sBAAsBF,IAAI,oFAAoFA,IAAI,sBACpH,CAAC;IACH;EACF;AACF,CAAC;AACDT,YAAY,CAACE,IAAI,CAAC,CAAC;;AAEnB;AACA,OAAO,SAASK,qBAAqBA,CACnCE,IAAqB,EACrBC,KAAc,EACR;EACNV,YAAY,CAACQ,OAAO,CAACC,IAAI,EAAEC,KAAK,CAAC;AACnC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,yBAAyB,GAAG;EAChCC,iBAAiB,EAAE,KAAK;EACxBC,gCAAgC,EAAE,KAAK;EACvCC,qCAAqC,EAAE,KAAK;EAC5CC,8CAA8C,EAAE,KAAK;EACrDC,+BAA+B,EAAE;AACnC,CAAkD;AAMlD,MAAMC,kBAAqD,GAAG,CAAC,CAAC;AAEhE,OAAO,SAASC,oBAAoBA,CAClCV,IAAoC,EAC3B;EACT,IAAIA,IAAI,IAAIS,kBAAkB,EAAE;IAC9B,OAAOA,kBAAkB,CAACT,IAAI,CAAC;EACjC;EACA,MAAMW,gBAAgB,GAAGrB,gBAAgB,CAACoB,oBAAoB,CAACV,IAAI,CAAC;EACpES,kBAAkB,CAACT,IAAI,CAAC,GAAGW,gBAAgB;EAC3C,OAAOA,gBAAgB;AACzB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/staticFlags.json b/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/staticFlags.json deleted file mode 100644 index d9f9e52a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/featureFlags/staticFlags.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "RUNTIME_TEST_FLAG": false, - "DISABLE_COMMIT_PAUSING_MECHANISM": false, - "ANDROID_SYNCHRONOUSLY_UPDATE_UI_PROPS": false, - "EXPERIMENTAL_CSS_ANIMATIONS_FOR_SVG_COMPONENTS": false, - "USE_SYNCHRONIZABLE_FOR_MUTABLES": false -} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryJS.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryJS.js deleted file mode 100644 index 083f6097..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryJS.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -import { runOnUI } from 'react-native-worklets'; -import { prepareUIRegistry } from './FrameCallbackRegistryUI'; -export default class FrameCallbackRegistryJS { - nextCallbackId = 0; - constructor() { - prepareUIRegistry(); - } - registerFrameCallback(callback) { - if (!callback) { - return -1; - } - const callbackId = this.nextCallbackId; - this.nextCallbackId++; - runOnUI(() => { - global._frameCallbackRegistry.registerFrameCallback(callback, callbackId); - })(); - return callbackId; - } - unregisterFrameCallback(callbackId) { - runOnUI(() => { - global._frameCallbackRegistry.unregisterFrameCallback(callbackId); - })(); - } - manageStateFrameCallback(callbackId, state) { - runOnUI(() => { - global._frameCallbackRegistry.manageStateFrameCallback(callbackId, state); - })(); - } -} -//# sourceMappingURL=FrameCallbackRegistryJS.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryJS.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryJS.js.map deleted file mode 100644 index 4fee9b00..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryJS.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["runOnUI","prepareUIRegistry","FrameCallbackRegistryJS","nextCallbackId","constructor","registerFrameCallback","callback","callbackId","global","_frameCallbackRegistry","unregisterFrameCallback","manageStateFrameCallback","state"],"sourceRoot":"../../../src","sources":["frameCallback/FrameCallbackRegistryJS.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,QAAQ,uBAAuB;AAG/C,SAASC,iBAAiB,QAAQ,2BAA2B;AAE7D,eAAe,MAAMC,uBAAuB,CAAC;EACnCC,cAAc,GAAG,CAAC;EAE1BC,WAAWA,CAAA,EAAG;IACZH,iBAAiB,CAAC,CAAC;EACrB;EAEAI,qBAAqBA,CAACC,QAAwC,EAAU;IACtE,IAAI,CAACA,QAAQ,EAAE;MACb,OAAO,CAAC,CAAC;IACX;IAEA,MAAMC,UAAU,GAAG,IAAI,CAACJ,cAAc;IACtC,IAAI,CAACA,cAAc,EAAE;IAErBH,OAAO,CAAC,MAAM;MACZQ,MAAM,CAACC,sBAAsB,CAACJ,qBAAqB,CAACC,QAAQ,EAAEC,UAAU,CAAC;IAC3E,CAAC,CAAC,CAAC,CAAC;IAEJ,OAAOA,UAAU;EACnB;EAEAG,uBAAuBA,CAACH,UAAkB,EAAQ;IAChDP,OAAO,CAAC,MAAM;MACZQ,MAAM,CAACC,sBAAsB,CAACC,uBAAuB,CAACH,UAAU,CAAC;IACnE,CAAC,CAAC,CAAC,CAAC;EACN;EAEAI,wBAAwBA,CAACJ,UAAkB,EAAEK,KAAc,EAAQ;IACjEZ,OAAO,CAAC,MAAM;MACZQ,MAAM,CAACC,sBAAsB,CAACE,wBAAwB,CAACJ,UAAU,EAAEK,KAAK,CAAC;IAC3E,CAAC,CAAC,CAAC,CAAC;EACN;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryUI.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryUI.js deleted file mode 100644 index b5a66e1e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryUI.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; - -import { runOnUI } from 'react-native-worklets'; -export const prepareUIRegistry = runOnUI(() => { - 'worklet'; - - const frameCallbackRegistry = { - frameCallbackRegistry: new Map(), - activeFrameCallbacks: new Set(), - previousFrameTimestamp: null, - nextCallId: 0, - runCallbacks(callId) { - const loop = timestamp => { - if (callId !== this.nextCallId) { - return; - } - if (this.previousFrameTimestamp === null) { - this.previousFrameTimestamp = timestamp; - } - const delta = timestamp - this.previousFrameTimestamp; - this.activeFrameCallbacks.forEach(callbackId => { - const callbackDetails = this.frameCallbackRegistry.get(callbackId); - const { - startTime - } = callbackDetails; - if (startTime === null) { - // First frame - callbackDetails.startTime = timestamp; - callbackDetails.callback({ - timestamp, - timeSincePreviousFrame: null, - timeSinceFirstFrame: 0 - }); - } else { - // Next frame - callbackDetails.callback({ - timestamp, - timeSincePreviousFrame: delta, - timeSinceFirstFrame: timestamp - startTime - }); - } - }); - if (this.activeFrameCallbacks.size > 0) { - this.previousFrameTimestamp = timestamp; - requestAnimationFrame(loop); - } else { - this.previousFrameTimestamp = null; - } - }; - - // runCallback() should only be called after registering a callback, - // so if there is only one active callback, then it means that there were - // zero previously and the loop isn't running yet. - if (this.activeFrameCallbacks.size === 1 && callId === this.nextCallId) { - requestAnimationFrame(loop); - } - }, - registerFrameCallback(callback, callbackId) { - this.frameCallbackRegistry.set(callbackId, { - callback, - startTime: null - }); - }, - unregisterFrameCallback(callbackId) { - this.manageStateFrameCallback(callbackId, false); - this.frameCallbackRegistry.delete(callbackId); - }, - manageStateFrameCallback(callbackId, state) { - if (callbackId === -1) { - return; - } - if (state) { - if (!this.activeFrameCallbacks.has(callbackId)) { - this.activeFrameCallbacks.add(callbackId); - this.runCallbacks(this.nextCallId); - } - } else { - const callback = this.frameCallbackRegistry.get(callbackId); - callback.startTime = null; - this.activeFrameCallbacks.delete(callbackId); - if (this.activeFrameCallbacks.size === 0) { - this.nextCallId += 1; - } - } - } - }; - global._frameCallbackRegistry = frameCallbackRegistry; -}); -//# sourceMappingURL=FrameCallbackRegistryUI.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryUI.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryUI.js.map deleted file mode 100644 index b52e334e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/FrameCallbackRegistryUI.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["runOnUI","prepareUIRegistry","frameCallbackRegistry","Map","activeFrameCallbacks","Set","previousFrameTimestamp","nextCallId","runCallbacks","callId","loop","timestamp","delta","forEach","callbackId","callbackDetails","get","startTime","callback","timeSincePreviousFrame","timeSinceFirstFrame","size","requestAnimationFrame","registerFrameCallback","set","unregisterFrameCallback","manageStateFrameCallback","delete","state","has","add","global","_frameCallbackRegistry"],"sourceRoot":"../../../src","sources":["frameCallback/FrameCallbackRegistryUI.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,QAAQ,uBAAuB;AA2B/C,OAAO,MAAMC,iBAAiB,GAAGD,OAAO,CAAC,MAAM;EAC7C,SAAS;;EAET,MAAME,qBAA8C,GAAG;IACrDA,qBAAqB,EAAE,IAAIC,GAAG,CAA0B,CAAC;IACzDC,oBAAoB,EAAE,IAAIC,GAAG,CAAS,CAAC;IACvCC,sBAAsB,EAAE,IAAI;IAC5BC,UAAU,EAAE,CAAC;IAEbC,YAAYA,CAACC,MAAM,EAAE;MACnB,MAAMC,IAAI,GAAIC,SAAiB,IAAK;QAClC,IAAIF,MAAM,KAAK,IAAI,CAACF,UAAU,EAAE;UAC9B;QACF;QACA,IAAI,IAAI,CAACD,sBAAsB,KAAK,IAAI,EAAE;UACxC,IAAI,CAACA,sBAAsB,GAAGK,SAAS;QACzC;QAEA,MAAMC,KAAK,GAAGD,SAAS,GAAG,IAAI,CAACL,sBAAsB;QAErD,IAAI,CAACF,oBAAoB,CAACS,OAAO,CAAEC,UAAkB,IAAK;UACxD,MAAMC,eAAe,GAAG,IAAI,CAACb,qBAAqB,CAACc,GAAG,CAACF,UAAU,CAAE;UAEnE,MAAM;YAAEG;UAAU,CAAC,GAAGF,eAAe;UAErC,IAAIE,SAAS,KAAK,IAAI,EAAE;YACtB;YACAF,eAAe,CAACE,SAAS,GAAGN,SAAS;YAErCI,eAAe,CAACG,QAAQ,CAAC;cACvBP,SAAS;cACTQ,sBAAsB,EAAE,IAAI;cAC5BC,mBAAmB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AAU,CAAC;QACpC;MACF,CAAC,MAAM;QACL,MAAMW,QAAQ,GAAG,IAAI,CAAChB,qBAAqB,CAACc,GAAG,CAACF,UAAU,CAAE;QAC5DI,QAAQ,CAACD,SAAS,GAAG,IAAI;QAEzB,IAAI,CAACb,oBAAoB,CAACuB,MAAM,CAACb,UAAU,CAAC;QAC5C,IAAI,IAAI,CAACV,oBAAoB,CAACiB,IAAI,KAAK,CAAC,EAAE;UACxC,IAAI,CAACd,UAAU,IAAI,CAAC;QACtB;MACF;IACF;EACF,CAAC;EAEDwB,MAAM,CAACC,sBAAsB,GAAG9B,qBAAqB;AACvD,CAAC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/index.js deleted file mode 100644 index d913af9e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/index.js.map deleted file mode 100644 index e4327c81..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/frameCallback/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["frameCallback/index.ts"],"mappings":"AAAA,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/helperTypes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/helperTypes.js deleted file mode 100644 index f43a7990..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/helperTypes.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -/* -This file is a legacy remainder of manual types from react-native-reanimated.d.ts file. -I wasn't able to get rid of all of them from the code. -They should be treated as a temporary solution -until time comes to refactor the code and get necessary types right. -This will not be easy though! -*/ -export {}; -//# sourceMappingURL=helperTypes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/helperTypes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/helperTypes.js.map deleted file mode 100644 index c31198da..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/helperTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../src","sources":["helperTypes.ts"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AANA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/commonTypes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/commonTypes.js deleted file mode 100644 index 0a62811d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/commonTypes.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=commonTypes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/commonTypes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/commonTypes.js.map deleted file mode 100644 index f951e85a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/commonTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["hook/commonTypes.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/index.js deleted file mode 100644 index 064e5554..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/index.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -export { useAnimatedKeyboard } from './useAnimatedKeyboard'; -export { useAnimatedProps } from './useAnimatedProps'; -export { useAnimatedReaction } from './useAnimatedReaction'; -export { useAnimatedRef } from './useAnimatedRef'; -export { useAnimatedScrollHandler } from './useAnimatedScrollHandler'; -export { useAnimatedSensor } from './useAnimatedSensor'; -export { useAnimatedStyle } from './useAnimatedStyle'; -export { useComposedEventHandler } from './useComposedEventHandler'; -export { useDerivedValue } from './useDerivedValue'; -export { useEvent } from './useEvent'; -export { useFrameCallback } from './useFrameCallback'; -export { useHandler } from './useHandler'; -export { useReducedMotion } from './useReducedMotion'; -export { useScrollOffset } from './useScrollOffset'; -export { useSharedValue } from './useSharedValue'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/index.js.map deleted file mode 100644 index e9e9974c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useAnimatedKeyboard","useAnimatedProps","useAnimatedReaction","useAnimatedRef","useAnimatedScrollHandler","useAnimatedSensor","useAnimatedStyle","useComposedEventHandler","useDerivedValue","useEvent","useFrameCallback","useHandler","useReducedMotion","useScrollOffset","useSharedValue"],"sourceRoot":"../../../src","sources":["hook/index.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,cAAc,QAAQ,kBAAkB;AAMjD,SAASC,wBAAwB,QAAQ,4BAA4B;AACrE,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,uBAAuB,QAAQ,2BAA2B;AAEnE,SAASC,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,QAAQ,QAAQ,YAAY;AAErC,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,cAAc,QAAQ,kBAAkB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedKeyboard.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedKeyboard.js deleted file mode 100644 index c47b462f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedKeyboard.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -import { useEffect, useRef } from 'react'; -import { KeyboardState } from '../commonTypes'; -import { makeMutable, subscribeForKeyboardEvents, unsubscribeFromKeyboardEvents } from '../core'; - -/** - * Lets you synchronously get the position and state of the keyboard. - * - * @param options - An additional keyboard configuration options. - * @returns An object with the current keyboard `height` and `state` as [shared - * values](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#shared-value). - * @see https://docs.swmansion.com/react-native-reanimated/docs/device/useAnimatedKeyboard - */ -export function useAnimatedKeyboard(options = { - isStatusBarTranslucentAndroid: undefined, - isNavigationBarTranslucentAndroid: undefined -}) { - const ref = useRef(null); - const listenerId = useRef(-1); - const isSubscribed = useRef(false); - if (ref.current === null) { - const keyboardEventData = { - state: makeMutable(KeyboardState.UNKNOWN), - height: makeMutable(0) - }; - listenerId.current = subscribeForKeyboardEvents((state, height) => { - 'worklet'; - - keyboardEventData.state.value = state; - keyboardEventData.height.value = height; - }, options); - ref.current = keyboardEventData; - isSubscribed.current = true; - } - useEffect(() => { - if (isSubscribed.current === false && ref.current !== null) { - const keyboardEventData = ref.current; - // subscribe again after Fast Refresh - listenerId.current = subscribeForKeyboardEvents((state, height) => { - 'worklet'; - - keyboardEventData.state.value = state; - keyboardEventData.height.value = height; - }, options); - isSubscribed.current = true; - } - return () => { - unsubscribeFromKeyboardEvents(listenerId.current); - isSubscribed.current = false; - }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - return ref.current; -} -//# sourceMappingURL=useAnimatedKeyboard.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedKeyboard.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedKeyboard.js.map deleted file mode 100644 index ad4d1882..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedKeyboard.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useRef","KeyboardState","makeMutable","subscribeForKeyboardEvents","unsubscribeFromKeyboardEvents","useAnimatedKeyboard","options","isStatusBarTranslucentAndroid","undefined","isNavigationBarTranslucentAndroid","ref","listenerId","isSubscribed","current","keyboardEventData","state","UNKNOWN","height","value"],"sourceRoot":"../../../src","sources":["hook/useAnimatedKeyboard.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAMzC,SAASC,aAAa,QAAQ,gBAAgB;AAC9C,SACEC,WAAW,EACXC,0BAA0B,EAC1BC,6BAA6B,QACxB,SAAS;;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CACjCC,OAAgC,GAAG;EACjCC,6BAA6B,EAAEC,SAAS;EACxCC,iCAAiC,EAAED;AACrC,CAAC,EACqB;EACtB,MAAME,GAAG,GAAGV,MAAM,CAA8B,IAAI,CAAC;EACrD,MAAMW,UAAU,GAAGX,MAAM,CAAS,CAAC,CAAC,CAAC;EACrC,MAAMY,YAAY,GAAGZ,MAAM,CAAU,KAAK,CAAC;EAE3C,IAAIU,GAAG,CAACG,OAAO,KAAK,IAAI,EAAE;IACxB,MAAMC,iBAAuC,GAAG;MAC9CC,KAAK,EAAEb,WAAW,CAAgBD,aAAa,CAACe,OAAO,CAAC;MACxDC,MAAM,EAAEf,WAAW,CAAC,CAAC;IACvB,CAAC;IACDS,UAAU,CAACE,OAAO,GAAGV,0BAA0B,CAAC,CAACY,KAAK,EAAEE,MAAM,KAAK;MACjE,SAAS;;MACTH,iBAAiB,CAACC,KAAK,CAACG,KAAK,GAAGH,KAAK;MACrCD,iBAAiB,CAACG,MAAM,CAACC,KAAK,GAAGD,MAAM;IACzC,CAAC,EAAEX,OAAO,CAAC;IACXI,GAAG,CAACG,OAAO,GAAGC,iBAAiB;IAC/BF,YAAY,CAACC,OAAO,GAAG,IAAI;EAC7B;EACAd,SAAS,CAAC,MAAM;IACd,IAAIa,YAAY,CAACC,OAAO,KAAK,KAAK,IAAIH,GAAG,CAACG,OAAO,KAAK,IAAI,EAAE;MAC1D,MAAMC,iBAAiB,GAAGJ,GAAG,CAACG,OAAO;MACrC;MACAF,UAAU,CAACE,OAAO,GAAGV,0BAA0B,CAAC,CAACY,KAAK,EAAEE,MAAM,KAAK;QACjE,SAAS;;QACTH,iBAAiB,CAACC,KAAK,CAACG,KAAK,GAAGH,KAAK;QACrCD,iBAAiB,CAACG,MAAM,CAACC,KAAK,GAAGD,MAAM;MACzC,CAAC,EAAEX,OAAO,CAAC;MACXM,YAAY,CAACC,OAAO,GAAG,IAAI;IAC7B;IACA,OAAO,MAAM;MACXT,6BAA6B,CAACO,UAAU,CAACE,OAAO,CAAC;MACjDD,YAAY,CAACC,OAAO,GAAG,KAAK;IAC9B,CAAC;IACD;EACF,CAAC,EAAE,EAAE,CAAC;EACN,OAAOH,GAAG,CAACG,OAAO;AACpB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedProps.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedProps.js deleted file mode 100644 index 0930b66c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedProps.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -import { SHOULD_BE_USE_WEB } from '../common'; -import { useAnimatedStyle } from './useAnimatedStyle'; - -// TODO: we should make sure that when useAP is used we are not assigning styles - -function useAnimatedPropsJS(updater, deps, adapters) { - return useAnimatedStyle(updater, deps, adapters, true); -} -const useAnimatedPropsNative = useAnimatedStyle; - -/** - * Lets you create an animated props object which can be animated using shared - * values. - * - * @param updater - A function returning an object with properties you want to - * animate. - * @param dependencies - An optional array of dependencies. Only relevant when - * using Reanimated without the Babel plugin on the Web. - * @param adapters - An optional function or array of functions allowing to - * adopt prop naming between JS and the native side. - * @returns An animated props object which has to be passed to `animatedProps` - * property of an Animated component that you want to animate. - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedProps - */ -export const useAnimatedProps = SHOULD_BE_USE_WEB ? useAnimatedPropsJS : useAnimatedPropsNative; -//# sourceMappingURL=useAnimatedProps.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedProps.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedProps.js.map deleted file mode 100644 index 7010ab18..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedProps.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SHOULD_BE_USE_WEB","useAnimatedStyle","useAnimatedPropsJS","updater","deps","adapters","useAnimatedPropsNative","useAnimatedProps"],"sourceRoot":"../../../src","sources":["hook/useAnimatedProps.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iBAAiB,QAAQ,WAAW;AAG7C,SAASC,gBAAgB,QAAQ,oBAAoB;;AAErD;;AAYA,SAASC,kBAAkBA,CACzBC,OAAoB,EACpBC,IAA4B,EAC5BC,QAGQ,EACR;EACA,OAAQJ,gBAAgB,CACtBE,OAAO,EACPC,IAAI,EACJC,QAAQ,EACR,IACF,CAAC;AACH;AAEA,MAAMC,sBAAsB,GAAGL,gBAAgB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,gBAAkC,GAAGP,iBAAiB,GAC9DE,kBAAkB,GACnBI,sBAAsB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedReaction.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedReaction.js deleted file mode 100644 index 9daa3200..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedReaction.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -import { useEffect } from 'react'; -import { SHOULD_BE_USE_WEB } from '../common'; -import { startMapper, stopMapper } from '../core'; -import { useSharedValue } from './useSharedValue'; - -/** - * Lets you to respond to changes in a [shared - * value](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#shared-value). - * It's especially useful when comparing values previously stored in the shared - * value with the current one. - * - * @param prepare - A function that should return a value to which you'd like to - * react. - * @param react - A function that reacts to changes in the value returned by the - * `prepare` function. - * @param dependencies - An optional array of dependencies. Only relevant when - * using Reanimated without the Babel plugin on the Web. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useAnimatedReaction - */ -// @ts-expect-error This overload is required by our API. - -export function useAnimatedReaction(prepare, react, dependencies) { - const previous = useSharedValue(null); - let inputs = Object.values(prepare.__closure ?? {}); - if (SHOULD_BE_USE_WEB) { - if (!inputs.length && dependencies?.length) { - // let web work without a Reanimated Babel plugin - inputs = dependencies; - } - } - if (dependencies === undefined) { - dependencies = [...Object.values(prepare.__closure ?? {}), ...Object.values(react.__closure ?? {}), prepare.__workletHash, react.__workletHash]; - } else { - dependencies.push(prepare.__workletHash, react.__workletHash); - } - useEffect(() => { - const fun = () => { - 'worklet'; - - const input = prepare(); - react(input, previous.value); - previous.value = input; - }; - const mapperId = startMapper(fun, inputs); - return () => { - stopMapper(mapperId); - }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, dependencies); -} -//# sourceMappingURL=useAnimatedReaction.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedReaction.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedReaction.js.map deleted file mode 100644 index 549e1bb3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedReaction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","SHOULD_BE_USE_WEB","startMapper","stopMapper","useSharedValue","useAnimatedReaction","prepare","react","dependencies","previous","inputs","Object","values","__closure","length","undefined","__workletHash","push","fun","input","value","mapperId"],"sourceRoot":"../../../src","sources":["hook/useAnimatedReaction.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,QAAQ,OAAO;AAGjC,SAASC,iBAAiB,QAAQ,WAAW;AAC7C,SAASC,WAAW,EAAEC,UAAU,QAAQ,SAAS;AAEjD,SAASC,cAAc,QAAQ,kBAAkB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,OAAO,SAASC,mBAAmBA,CACjCC,OAA4C,EAC5CC,KAGC,EACDC,YAA6B,EAC7B;EACA,MAAMC,QAAQ,GAAGL,cAAc,CAAwB,IAAI,CAAC;EAE5D,IAAIM,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACN,OAAO,CAACO,SAAS,IAAI,CAAC,CAAC,CAAC;EAEnD,IAAIZ,iBAAiB,EAAE;IACrB,IAAI,CAACS,MAAM,CAACI,MAAM,IAAIN,YAAY,EAAEM,MAAM,EAAE;MAC1C;MACAJ,MAAM,GAAGF,YAAY;IACvB;EACF;EAEA,IAAIA,YAAY,KAAKO,SAAS,EAAE;IAC9BP,YAAY,GAAG,CACb,GAAGG,MAAM,CAACC,MAAM,CAACN,OAAO,CAACO,SAAS,IAAI,CAAC,CAAC,CAAC,EACzC,GAAGF,MAAM,CAACC,MAAM,CAACL,KAAK,CAACM,SAAS,IAAI,CAAC,CAAC,CAAC,EACvCP,OAAO,CAACU,aAAa,EACrBT,KAAK,CAACS,aAAa,CACpB;EACH,CAAC,MAAM;IACLR,YAAY,CAACS,IAAI,CAACX,OAAO,CAACU,aAAa,EAAET,KAAK,CAACS,aAAa,CAAC;EAC/D;EAEAhB,SAAS,CAAC,MAAM;IACd,MAAMkB,GAAG,GAAGA,CAAA,KAAM;MAChB,SAAS;;MACT,MAAMC,KAAK,GAAGb,OAAO,CAAC,CAAC;MACvBC,KAAK,CAACY,KAAK,EAAEV,QAAQ,CAACW,KAAK,CAAC;MAC5BX,QAAQ,CAACW,KAAK,GAAGD,KAAK;IACxB,CAAC;IACD,MAAME,QAAQ,GAAGnB,WAAW,CAACgB,GAAG,EAAER,MAAM,CAAC;IACzC,OAAO,MAAM;MACXP,UAAU,CAACkB,QAAQ,CAAC;IACtB,CAAC;IACD;EACF,CAAC,EAAEb,YAAY,CAAC;AAClB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedRef.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedRef.js deleted file mode 100644 index 341b0cc6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedRef.js +++ /dev/null @@ -1,89 +0,0 @@ -'use strict'; - -import { useRef, useState } from 'react'; -import { createSerializable, serializableMappingCache } from 'react-native-worklets'; -import { SHOULD_BE_USE_WEB } from '../common/constants'; -import { getShadowNodeWrapperFromRef } from '../fabricUtils'; -import { makeMutable } from '../mutables'; -import { findNodeHandle } from '../platformFunctions/findNodeHandle'; -function useAnimatedRefBase(getWrapper) { - const observers = useRef(new Map()).current; - const wrapperRef = useRef(null); - const resultRef = useRef(null); - if (!resultRef.current) { - const fun = ref => { - if (ref) { - wrapperRef.current = getWrapper(ref); - - // We have to unwrap the tag from the shadow node wrapper. - // eslint-disable-next-line @typescript-eslint/no-explicit-any - fun.getTag = () => findNodeHandle(ref); - fun.current = ref; - if (observers.size) { - const currentTag = fun?.getTag?.() ?? null; - observers.forEach((cleanup, observer) => { - // Perform the cleanup before calling the observer again. - // This ensures that all events that were set up in the observer - // are cleaned up before the observer sets up new events during - // the next call. - cleanup?.(); - observers.set(observer, observer(currentTag)); - }); - } - } - return wrapperRef.current; - }; - fun.observe = observer => { - // Call observer immediately to get the initial value - const cleanup = observer(fun?.getTag?.() ?? null); - observers.set(observer, cleanup); - return () => { - observers.get(observer)?.(); - observers.delete(observer); - }; - }; - fun.current = null; - resultRef.current = fun; - } - return resultRef.current; -} -function useAnimatedRefNative() { - const [sharedWrapper] = useState(() => makeMutable(null)); - const resultRef = useAnimatedRefBase(ref => { - const currentWrapper = getShadowNodeWrapperFromRef(ref); - sharedWrapper.value = currentWrapper; - return currentWrapper; - }); - if (!serializableMappingCache.get(resultRef)) { - const animatedRefSerializableHandle = createSerializable({ - __init: () => { - 'worklet'; - - return () => sharedWrapper.value; - } - }); - serializableMappingCache.set(resultRef, animatedRefSerializableHandle); - } - return resultRef; -} -function useAnimatedRefWeb() { - return useAnimatedRefBase(ref => { - if (ref.getScrollableNode) { - return ref.getScrollableNode(); - } - if (ref.getNativeScrollRef) { - return ref.getNativeScrollRef(); - } - return ref; - }); -} - -/** - * Lets you get a reference of a view that you can use inside a worklet. - * - * @returns An object with a `.current` property which contains an instance of - * the reference object. - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef - */ -export const useAnimatedRef = SHOULD_BE_USE_WEB ? useAnimatedRefWeb : useAnimatedRefNative; -//# sourceMappingURL=useAnimatedRef.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedRef.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedRef.js.map deleted file mode 100644 index 15473767..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedRef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useRef","useState","createSerializable","serializableMappingCache","SHOULD_BE_USE_WEB","getShadowNodeWrapperFromRef","makeMutable","findNodeHandle","useAnimatedRefBase","getWrapper","observers","Map","current","wrapperRef","resultRef","fun","ref","getTag","size","currentTag","forEach","cleanup","observer","set","observe","get","delete","useAnimatedRefNative","sharedWrapper","currentWrapper","value","animatedRefSerializableHandle","__init","useAnimatedRefWeb","getScr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C;IAChC;IACA,IAAIlB,GAAG,CAACmB,kBAAkB,EAAE;MAC1B,OAAOnB,GAAG,CAACmB,kBAAkB,CAAC,CAAC;IACjC;IACA,OAAOnB,GAAG;EACZ,CAAC,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMoB,cAAc,GAAGhC,iBAAiB,GAC3C6B,iBAAiB,GACjBN,oBAAoB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedScrollHandler.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedScrollHandler.js deleted file mode 100644 index 216bbee5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedScrollHandler.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; - -import { useEvent } from './useEvent'; -import { useHandler } from './useHandler'; - -/** - * Lets you run callbacks on ScrollView events. Supports `onScroll`, - * `onBeginDrag`, `onEndDrag`, `onMomentumBegin`, and `onMomentumEnd` events. - * - * These callbacks are automatically workletized and ran on the UI thread. - * - * @param handlers - An object containing event handlers. - * @param dependencies - An optional array of dependencies. Only relevant when - * using Reanimated without the Babel plugin on the Web. - * @returns An object you need to pass to `onScroll` prop on the - * `Animated.ScrollView` component. - * @see https://docs.swmansion.com/react-native-reanimated/docs/scroll/useAnimatedScrollHandler - */ -// @ts-expect-error This overload is required by our API. - -export function useAnimatedScrollHandler(handlers, dependencies) { - // case when handlers is a function - const scrollHandlers = typeof handlers === 'function' ? { - onScroll: handlers - } : handlers; - const { - context, - doDependenciesDiffer - } = useHandler(scrollHandlers, dependencies); - - // build event subscription array - const subscribeForEvents = ['onScroll']; - if (scrollHandlers.onBeginDrag !== undefined) { - subscribeForEvents.push('onScrollBeginDrag'); - } - if (scrollHandlers.onEndDrag !== undefined) { - subscribeForEvents.push('onScrollEndDrag'); - } - if (scrollHandlers.onMomentumBegin !== undefined) { - subscribeForEvents.push('onMomentumScrollBegin'); - } - if (scrollHandlers.onMomentumEnd !== undefined) { - subscribeForEvents.push('onMomentumScrollEnd'); - } - return useEvent(event => { - 'worklet'; - - const { - onScroll, - onBeginDrag, - onEndDrag, - onMomentumBegin, - onMomentumEnd - } = scrollHandlers; - if (onScroll && event.eventName.endsWith('onScroll')) { - onScroll(event, context); - } else if (onBeginDrag && event.eventName.endsWith('onScrollBeginDrag')) { - onBeginDrag(event, context); - } else if (onEndDrag && event.eventName.endsWith('onScrollEndDrag')) { - onEndDrag(event, context); - } else if (onMomentumBegin && event.eventName.endsWith('onMomentumScrollBegin')) { - onMomentumBegin(event, context); - } else if (onMomentumEnd && event.eventName.endsWith('onMomentumScrollEnd')) { - onMomentumEnd(event, context); - } - }, subscribeForEvents, doDependenciesDiffer - // Read https://github.com/software-mansion/react-native-reanimated/pull/5056 - // for more information about this cast. - ); -} -//# sourceMappingURL=useAnimatedScrollHandler.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedScrollHandler.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedScrollHandler.js.map deleted file mode 100644 index 5c922cb5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedScrollHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEvent","useHandler","useAnimatedScrollHandler","handlers","dependencies","scrollHandlers","onScroll","context","doDependenciesDiffer","subscribeForEvents","onBeginDrag","undefined","push","onEndDrag","onMomentumBegin","onMomentumEnd","event","eventName","endsWith"],"sourceRoot":"../../../src","sources":["hook/useAnimatedScrollHandler.ts"],"mappings":"AAAA,YAAY;;AAOZ,SAASA,QAAQ,QAAQ,YAAY;AACrC,SAASC,UAAU,QAAQ,cAAc;;AAmBzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,OAAO,SAASC,wBAAwBA,CAGtCC,QAA0D,EAC1DC,YAA6B,EAC7B;EACA;EACA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C3B,CAAC,MAAM,IACLO,eAAe,IACfE,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,uBAAuB,CAAC,EACjD;MACAJ,eAAe,CAACE,KAAK,EAAET,OAAO,CAAC;IACjC,CAAC,MAAM,IACLQ,aAAa,IACbC,KAAK,CAACC,SAAS,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAC/C;MACAH,aAAa,CAACC,KAAK,EAAET,OAAO,CAAC;IAC/B;EACF,CAAC,EACDE,kBAAkB,EAClBD;EACA;EACA;EACF,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedSensor.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedSensor.js deleted file mode 100644 index 8643e790..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedSensor.js +++ /dev/null @@ -1,148 +0,0 @@ -'use strict'; - -import { useEffect, useMemo, useRef } from 'react'; -import { callMicrotasks } from 'react-native-worklets'; -import { InterfaceOrientation, IOSReferenceFrame, SensorType } from '../commonTypes'; -import { initializeSensor, registerSensor, unregisterSensor } from '../core'; - -// euler angles are in order ZXY, z = yaw, x = pitch, y = roll -// https://github.com/mrdoob/three.js/blob/dev/src/math/Quaternion.js#L237 -function eulerToQuaternion(pitch, roll, yaw) { - 'worklet'; - - const c1 = Math.cos(pitch / 2); - const s1 = Math.sin(pitch / 2); - const c2 = Math.cos(roll / 2); - const s2 = Math.sin(roll / 2); - const c3 = Math.cos(yaw / 2); - const s3 = Math.sin(yaw / 2); - return [s1 * c2 * c3 - c1 * s2 * s3, c1 * s2 * c3 + s1 * c2 * s3, c1 * c2 * s3 + s1 * s2 * c3, c1 * c2 * c3 - s1 * s2 * s3]; -} -function adjustRotationToInterfaceOrientation(data) { - 'worklet'; - - const { - interfaceOrientation, - pitch, - roll, - yaw - } = data; - if (interfaceOrientation === InterfaceOrientation.ROTATION_90) { - data.pitch = roll; - data.roll = -pitch; - data.yaw = yaw - Math.PI / 2; - } else if (interfaceOrientation === InterfaceOrientation.ROTATION_270) { - data.pitch = -roll; - data.roll = pitch; - data.yaw = yaw + Math.PI / 2; - } else if (interfaceOrientation === InterfaceOrientation.ROTATION_180) { - data.pitch *= -1; - data.roll *= -1; - data.yaw *= -1; - } - const q = eulerToQuaternion(data.pitch, data.roll, data.yaw); - data.qx = q[0]; - data.qy = q[1]; - data.qz = q[2]; - data.qw = q[3]; - return data; -} -function adjustVectorToInterfaceOrientation(data) { - 'worklet'; - - const { - interfaceOrientation, - x, - y - } = data; - if (interfaceOrientation === InterfaceOrientation.ROTATION_90) { - data.x = -y; - data.y = x; - } else if (interfaceOrientation === InterfaceOrientation.ROTATION_270) { - data.x = y; - data.y = -x; - } else if (interfaceOrientation === InterfaceOrientation.ROTATION_180) { - data.x *= -1; - data.y *= -1; - } - return data; -} - -/** - * Lets you create animations based on data from the device's sensors. - * - * @param sensorType - Type of the sensor to use. Configured with - * {@link SensorType} enum. - * @param config - The sensor configuration - {@link SensorConfig}. - * @returns An object containing the sensor measurements [shared - * value](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#shared-value) - * and a function to unregister the sensor - * @see https://docs.swmansion.com/react-native-reanimated/docs/device/useAnimatedSensor - */ - -export function useAnimatedSensor(sensorType, userConfig) { - const userConfigRef = useRef(userConfig); - const hasConfigChanged = userConfigRef.current?.adjustToInterfaceOrientation !== userConfig?.adjustToInterfaceOrientation || userConfigRef.current?.interval !== userConfig?.interval || userConfigRef.current?.iosReferenceFrame !== userConfig?.iosReferenceFrame; - if (hasConfigChanged) { - userConfigRef.current = { - ...userConfig - }; - } - const config = useMemo(() => ({ - interval: 'auto', - adjustToInterfaceOrientation: true, - iosReferenceFrame: IOSReferenceFrame.Auto, - ...userConfigRef.current - }), - // eslint-disable-next-line react-hooks/exhaustive-deps - [userConfigRef.current]); - const ref = useRef({ - sensor: initializeSensor(sensorType, config), - unregister: () => { - // NOOP - }, - isAvailable: false, - config - }); - useEffect(() => { - ref.current = { - sensor: initializeSensor(sensorType, config), - unregister: () => { - // NOOP - }, - isAvailable: false, - config - }; - const sensorData = ref.current.sensor; - const adjustToInterfaceOrientation = ref.current.config.adjustToInterfaceOrientation; - const id = registerSensor(sensorType, config, data => { - 'worklet'; - - if (adjustToInterfaceOrientation) { - if (sensorType === SensorType.ROTATION) { - data = adjustRotationToInterfaceOrientation(data); - } else { - data = adjustVectorToInterfaceOrientation(data); - } - } - sensorData.value = data; - callMicrotasks(); - }); - if (id !== -1) { - // if sensor is available - ref.current.unregister = () => unregisterSensor(id); - ref.current.isAvailable = true; - } else { - // if sensor is unavailable - ref.current.unregister = () => { - // NOOP - }; - ref.current.isAvailable = false; - } - return () => { - ref.current.unregister(); - }; - }, [sensorType, config]); - return ref.current; -} -//# sourceMappingURL=useAnimatedSensor.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedSensor.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedSensor.js.map deleted file mode 100644 index 3915763c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedSensor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useMemo","useRef","callMicrotasks","InterfaceOrientation","IOSReferenceFrame","SensorType","initializeSensor","registerSensor","unregisterSensor","eulerToQuaternion","pitch","roll","yaw","c1","Math","cos","s1","sin","c2","s2","c3","s3","adjustRotationToInterfaceOrientation","data","interfaceOrientation","ROTATION_90","PI","ROTATION_270","ROTATION_180","q","qx","qy","qz","qw","adjustVectorToInterfaceOrientation","x","y","useAnimatedSensor","sensorType","userConfig","userConfigRef","hasConfigChanged","current","adjustToInterfaceOrientation","interval","iosReferenceFrame","config","Auto","ref","sensor","unregister","isAvailable","sensorData","id","ROTATION","value"],"sourceRoot":"../../../src","sources":["hook/useAnimatedSensor.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,OAAO,EAAEC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,CAACZ,UAAU,EAAEQ,MAAM,CAAC,CAAC;EAExB,OAAOE,GAAG,CAACN,OAAO;AACpB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedStyle.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedStyle.js deleted file mode 100644 index 1c246bfe..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedStyle.js +++ /dev/null @@ -1,429 +0,0 @@ -'use strict'; - -import { useEffect, useRef } from 'react'; -import { isWorkletFunction, makeShareable } from 'react-native-worklets'; -import { initialUpdaterRun } from '../animation'; -import { IS_JEST, ReanimatedError, SHOULD_BE_USE_WEB } from '../common'; -import { startMapper, stopMapper } from '../core'; -import { updateProps, updatePropsJestWrapper } from '../updateProps'; -import { makeViewDescriptorsSet } from '../ViewDescriptorsSet'; -import { useSharedValue } from './useSharedValue'; -import { buildWorkletsHash, isAnimated, shallowEqual, validateAnimatedStyles } from './utils'; -function prepareAnimation(frameTimestamp, animatedProp, lastAnimation, lastValue) { - 'worklet'; - - if (Array.isArray(animatedProp)) { - animatedProp.forEach((prop, index) => { - prepareAnimation(frameTimestamp, prop, lastAnimation && lastAnimation[index], lastValue && lastValue[index]); - }); - // return animatedProp; - } - if (typeof animatedProp === 'object' && animatedProp.onFrame) { - const animation = animatedProp; - let value = animation.current; - if (lastValue !== undefined && lastValue !== null) { - if (typeof lastValue === 'object') { - if (lastValue.value !== undefined) { - // previously it was a shared value - value = lastValue.value; - } else if (lastValue.onFrame !== undefined) { - if (lastAnimation?.current !== undefined) { - // it was an animation before, copy its state - value = lastAnimation.current; - } else if (lastValue?.current !== undefined) { - // it was initialized - value = lastValue.current; - } - } - } else { - // previously it was a plain value, just set it as starting point - value = lastValue; - } - } - animation.callStart = timestamp => { - animation.onStart(animation, value, timestamp, lastAnimation); - }; - animation.callStart(frameTimestamp); - animation.callStart = null; - } else if (typeof animatedProp === 'object') { - // it is an object - Object.keys(animatedProp).forEach(key => prepareAnimation(frameTimestamp, animatedProp[key], lastAnimation && lastAnimation[key], lastValue && lastValue[key])); - } -} -function runAnimations(animation, timestamp, key, result, animationsActive, forceCopyAnimation) { - 'worklet'; - - if (!animationsActive.value) { - return true; - } - if (Array.isArray(animation)) { - result[key] = []; - let allFinished = true; - forceCopyAnimation = key === 'boxShadow'; - animation.forEach((entry, index) => { - if (!runAnimations(entry, timestamp, index, result[key], animationsActive, forceCopyAnimation)) { - allFinished = false; - } - }); - return allFinished; - } else if (typeof animation === 'object' && animation.onFrame) { - let finished = true; - if (!animation.finished) { - if (animation.callStart) { - animation.callStart(timestamp); - animation.callStart = null; - } - finished = animation.onFrame(animation, timestamp); - animation.timestamp = timestamp; - if (finished) { - animation.finished = true; - animation.callback?.(true /* finished */); - } - } - /* - * If `animation.current` is a boxShadow object, spread its properties into a new object - * to avoid modifying the original reference. This ensures when `newValues` has a nested color prop, it stays unparsed - * in rgba format, allowing the animation to run correctly. - */ - if (forceCopyAnimation) { - result[key] = { - ...animation.current - }; - } else { - result[key] = animation.current; - } - return finished; - } else if (typeof animation === 'object') { - result[key] = {}; - let allFinished = true; - Object.keys(animation).forEach(k => { - if (!runAnimations(animation[k], timestamp, k, result[key], animationsActive, forceCopyAnimation)) { - allFinished = false; - } - }); - return allFinished; - } else { - result[key] = animation; - return true; - } -} -function styleUpdater(viewDescriptors, updater, state, animationsActive, isAnimatedProps = false, forceUpdate) { - 'worklet'; - - const animations = state.animations ?? {}; - const newValues = updater() ?? {}; - const oldValues = state.last; - const nonAnimatedNewValues = {}; - let hasAnimations = false; - let frameTimestamp; - let hasNonAnimatedValues = false; - for (const key in newValues) { - const value = newValues[key]; - if (isAnimated(value)) { - frameTimestamp = global.__frameTimestamp || global._getAnimationTimestamp(); - prepareAnimation(frameTimestamp, value, animations[key], oldValues[key]); - animations[key] = value; - hasAnimations = true; - } else { - hasNonAnimatedValues = true; - nonAnimatedNewValues[key] = value; - delete animations[key]; - } - } - if (hasAnimations) { - const frame = timestamp => { - // eslint-disable-next-line @typescript-eslint/no-shadow - const { - animations, - last, - isAnimationCancelled - } = state; - if (isAnimationCancelled) { - state.isAnimationRunning = false; - return; - } - const updates = {}; - let allFinished = true; - for (const propName in animations) { - const finished = runAnimations(animations[propName], timestamp, propName, updates, animationsActive); - if (finished) { - /** - * If the animated prop is an array, we need to directly set each - * property (manually spread it). This prevents issues where the color - * prop might be incorrectly linked with its `toValue` and `current` - * states, causing abrupt transitions or 'jumps' in animation states. - */ - if (Array.isArray(updates[propName])) { - updates[propName].forEach(obj => { - for (const prop in obj) { - if (!last[propName] || typeof last[propName] !== 'object') { - last[propName] = {}; - } - last[propName][prop] = obj[prop]; - } - }); - } else { - last[propName] = updates[propName]; - } - delete animations[propName]; - } else { - allFinished = false; - } - } - if (updates) { - updateProps(viewDescriptors, updates); - } - if (!allFinished) { - requestAnimationFrame(frame); - } else { - state.isAnimationRunning = false; - } - }; - state.animations = animations; - if (!state.isAnimationRunning) { - state.isAnimationCancelled = false; - state.isAnimationRunning = true; - frame(frameTimestamp); - } - if (hasNonAnimatedValues) { - updateProps(viewDescriptors, nonAnimatedNewValues); - } - } else { - state.isAnimationCancelled = true; - state.animations = []; - if (!shallowEqual(oldValues, newValues) || forceUpdate) { - updateProps(viewDescriptors, newValues, isAnimatedProps); - } - } - state.last = newValues; -} -function jestStyleUpdater(viewDescriptors, updater, state, animationsActive, animatedValues, adapters, forceUpdate) { - 'worklet'; - - const animations = state.animations ?? {}; - const newValues = updater() ?? {}; - const oldValues = state.last; - - // extract animated props - let hasAnimations = false; - let frameTimestamp; - Object.keys(animations).forEach(key => { - const value = newValues[key]; - if (!isAnimated(value)) { - delete animations[key]; - } - }); - Object.keys(newValues).forEach(key => { - const value = newValues[key]; - if (isAnimated(value)) { - frameTimestamp = global.__frameTimestamp || global._getAnimationTimestamp(); - prepareAnimation(frameTimestamp, value, animations[key], oldValues[key]); - animations[key] = value; - hasAnimations = true; - } - }); - function frame(timestamp) { - // eslint-disable-next-line @typescript-eslint/no-shadow - const { - animations, - last, - isAnimationCancelled - } = state; - if (isAnimationCancelled) { - state.isAnimationRunning = false; - return; - } - const updates = {}; - let allFinished = true; - Object.keys(animations).forEach(propName => { - const finished = runAnimations(animations[propName], timestamp, propName, updates, animationsActive); - if (finished) { - last[propName] = updates[propName]; - delete animations[propName]; - } else { - allFinished = false; - } - }); - if (Object.keys(updates).length) { - updatePropsJestWrapper(viewDescriptors, updates, animatedValues, adapters); - } - if (!allFinished) { - requestAnimationFrame(frame); - } else { - state.isAnimationRunning = false; - } - } - if (hasAnimations) { - state.animations = animations; - if (!state.isAnimationRunning) { - state.isAnimationCancelled = false; - state.isAnimationRunning = true; - frame(frameTimestamp); - } - } else { - state.isAnimationCancelled = true; - state.animations = []; - } - - // calculate diff - state.last = newValues; - if (!shallowEqual(oldValues, newValues) || forceUpdate) { - updatePropsJestWrapper(viewDescriptors, newValues, animatedValues, adapters); - } -} - -// check for invalid usage of shared values in returned object -function checkSharedValueUsage(prop, currentKey) { - if (Array.isArray(prop)) { - // if it's an array (i.ex. transform) validate all its elements - for (const element of prop) { - checkSharedValueUsage(element, currentKey); - } - } else if (typeof prop === 'object' && prop !== null && prop.value === undefined) { - // if it's a nested object, run validation for all its props - for (const key of Object.keys(prop)) { - checkSharedValueUsage(prop[key], key); - } - } else if (currentKey !== undefined && typeof prop === 'object' && prop !== null && prop.value !== undefined) { - // if shared value is passed instead of its value, throw an error - throw new ReanimatedError(`Invalid value passed to \`${currentKey}\`, maybe you forgot to use \`.value\`?`); - } -} - -/** - * Lets you create a styles object, similar to StyleSheet styles, which can be - * animated using shared values. - * - * @param updater - A function returning an object with style properties you - * want to animate. - * @param dependencies - An optional array of dependencies. Only relevant when - * using Reanimated without the Babel plugin on the Web. - * @returns An animated style object which has to be passed to the `style` - * property of an Animated component you want to animate. - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedStyle - */ -// You cannot pass Shared Values to `useAnimatedStyle` directly. -// @ts-expect-error This overload is required by our API. - -export function useAnimatedStyle(updater, dependencies, adapters, isAnimatedProps = false) { - const animatedUpdaterData = useRef(null); - let inputs = Object.values(updater.__closure ?? {}); - if (SHOULD_BE_USE_WEB) { - if (!inputs.length && dependencies?.length) { - // let web work without a Babel plugin - inputs = dependencies; - } - if (__DEV__ && !inputs.length && !dependencies && !isWorkletFunction(updater)) { - throw new ReanimatedError(`\`useAnimatedStyle\` was used without a dependency array or Babel plugin. Please explicitly pass a dependency array, or enable the Babel plugin. -For more, see the docs: \`https://docs.swmansion.com/react-native-reanimated/docs/guides/web-support#web-without-the-babel-plugin\`.`); - } - } - const adaptersArray = adapters ? Array.isArray(adapters) ? adapters : [adapters] : []; - const adaptersHash = adapters ? buildWorkletsHash(adaptersArray) : null; - const areAnimationsActive = useSharedValue(true); - const jestAnimatedValues = useRef({}); - - // build dependencies - if (!dependencies) { - dependencies = [...inputs, updater.__workletHash]; - } else { - dependencies.push(updater.__workletHash); - } - if (adaptersHash) { - dependencies.push(adaptersHash); - } - if (!animatedUpdaterData.current) { - const initialStyle = initialUpdaterRun(updater); - if (__DEV__) { - validateAnimatedStyles(initialStyle); - } - animatedUpdaterData.current = { - initial: { - value: initialStyle, - updater - }, - remoteState: makeShareable({ - last: initialStyle, - animations: {}, - isAnimationCancelled: false, - isAnimationRunning: false - }), - viewDescriptors: makeViewDescriptorsSet(), - styleUpdaterContainer: { - current: undefined - } - }; - } - const { - initial, - remoteState, - viewDescriptors - } = animatedUpdaterData.current; - const shareableViewDescriptors = viewDescriptors.shareableViewDescriptors; - dependencies.push(shareableViewDescriptors); - useEffect(() => { - let fun; - let updaterFn = updater; - if (adapters) { - updaterFn = () => { - 'worklet'; - - const newValues = updater(); - adaptersArray.forEach(adapter => { - adapter(newValues); - }); - return newValues; - }; - } - if (IS_JEST) { - fun = forceUpdate => { - 'worklet'; - - jestStyleUpdater(shareableViewDescriptors, updater, remoteState, areAnimationsActive, jestAnimatedValues, adaptersArray, forceUpdate); - }; - } else { - fun = forceUpdate => { - 'worklet'; - - styleUpdater(shareableViewDescriptors, updaterFn, remoteState, areAnimationsActive, isAnimatedProps, forceUpdate); - }; - } - if (animatedUpdaterData.current) { - animatedUpdaterData.current.styleUpdaterContainer.current = fun; - } - const mapperId = startMapper(fun, inputs); - return () => { - stopMapper(mapperId); - }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, dependencies); - useEffect(() => { - areAnimationsActive.value = true; - return () => { - areAnimationsActive.value = false; - }; - }, [areAnimationsActive]); - if (__DEV__) { - checkSharedValueUsage(initial.value); - } - const animatedStyleHandle = useRef(null); - if (!animatedStyleHandle.current) { - const styleUpdaterContainer = animatedUpdaterData.current.styleUpdaterContainer; - animatedStyleHandle.current = IS_JEST ? { - viewDescriptors, - initial, - jestAnimatedValues, - toJSON: animatedStyleHandleToJSON, - styleUpdaterContainer - } : { - viewDescriptors, - initial, - styleUpdaterContainer - }; - } - return animatedStyleHandle.current; -} -function animatedStyleHandleToJSON() { - return '{}'; -} -//# sourceMappingURL=useAnimatedStyle.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedStyle.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedStyle.js.map deleted file mode 100644 index aef25e1b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useAnimatedStyle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useRef","isWorkletFunction","makeShareable","initialUpdaterRun","IS_JEST","ReanimatedError","SHOULD_BE_USE_WEB","startMapper","stopMapper","updateProps","updatePropsJestWrapper","makeViewDescriptorsSet","useSharedValue","buildWorkletsHash","isAnimated","shallowEqual","validateAnimatedStyles","prepareAnimation","frameTimestamp","animatedProp","lastAnimation","lastValue","Array","isArray","forEach","prop","index","onFrame","animation","value","current","undefined","callStart","timestamp","onStart","Object","keys","key","runAnimations","result","animationsActive","forceCopyAnimation","allFinished","entry","finished","callback","k","styleUpdater","viewDescriptors","updater","state","isAnimatedProps","forceUpdate","animations","newValues","oldValues","last","nonAnimatedNewValues","hasAnimations","hasNonAnimatedValues","global","__frameTimestamp","_getAnimationTimestamp","frame","isAnimationCancelled","isAnimationRunning","updates","propName","obj","requestAnimationFrame","jestStyleUpdater","animatedValues","adapters","length","checkSharedValueUsage","currentKey","element","useAnimatedStyle","dependencies","animatedUpdaterData","inputs","values","__closure","__DEV__","adaptersArray","adaptersHash","areAnimationsActive","jestAnimatedValues","__workletHash","push","initialStyle","initial","remoteState","styleUpdaterContainer","shareableViewDescriptors","fun","updaterFn","adapter","mapperId","animatedStyleHandle","toJSON","animatedStyleHandleToJSON"],"sourceRoot":"../../../src","sources":["hook/useAnimatedStyle.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,SAASC,iBAAiB,EAAEC,aAAa,QAAQ,uBAAuB;AAExE,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,OAAO,EAAEC,eAAe,EAAEC,iBAAiB,QAAQ,WAAW;AAYvE,SAASC,WAAW,EAAEC,UAAU,QAAQ,SAAS;AAEjD,SAASC,WAAW,EAAEC,sBAAsB,QAAQ,gBAAgB;AAEpE,SAASC,sBAAsB,QAAQ,uBAAuB;AAQ9D,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SACEC,iBAAiB,EACjBC,UAAU,EACVC,YAAY,EACZC,sBAAsB,QACjB,SAAS;AAmBhB,SAASC,gBAAgBA,CACvBC,cAAsB,EACtBC,YAAgC,EAChCC,aAAiC,EACjCC,SAA6B,EACvB;EACN,SAAS;;EACT,IAAIC,KAAK,CAACC,OAAO,CAACJ,YAAY,CAAC,EAAE;IAC/BA,YAAY,CAACK,OAAO,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAK;MACpCT,gBAAgB,CACdC,cAAc,EACdO,IAAI,EACJL,aAAa,IAAIA,aAAa,CAACM,KAAK,CAAC,EACrCL,SAAS,IAAIA,SAAS,CAACK,K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F,GAAG,EAAEf,MAAM,CAAC;IACzC,OAAO,MAAM;MACXxE,UAAU,CAAC0F,QAAQ,CAAC;IACtB,CAAC;IACD;EACF,CAAC,EAAEpB,YAAY,CAAC;EAEhB/E,SAAS,CAAC,MAAM;IACduF,mBAAmB,CAACzD,KAAK,GAAG,IAAI;IAChC,OAAO,MAAM;MACXyD,mBAAmB,CAACzD,KAAK,GAAG,KAAK;IACnC,CAAC;EACH,CAAC,EAAE,CAACyD,mBAAmB,CAAC,CAAC;EAEzB,IAAIH,OAAO,EAAE;IACXT,qBAAqB,CAACiB,OAAO,CAAC9D,KAAK,CAAC;EACtC;EAEA,MAAMsE,mBAAmB,GAAGnG,MAAM,CAIhC,IAAI,CAAC;EAEP,IAAI,CAACmG,mBAAmB,CAACrE,OAAO,EAAE;IAChC,MAAM+D,qBAAqB,GACzBd,mBAAmB,CAACjD,OAAO,CAAC+D,qBAAqB;IACnDM,mBAAmB,CAACrE,OAAO,GAAG1B,OAAO,GACjC;MACE4C,eAAe;MACf2C,OAAO;MACPJ,kBAAkB;MAClBa,MAAM,EAAEC,yBAAyB;MACjCR;IACF,CAAC,GACD;MAAE7C,eAAe;MAAE2C,OAAO;MAAEE;IAAsB,CAAC;EACzD;EAEA,OAAOM,mBAAmB,CAACrE,OAAO;AACpC;AAEA,SAASuE,yBAAyBA,CAAA,EAAW;EAC3C,OAAO,IAAI;AACb","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useComposedEventHandler.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useComposedEventHandler.js deleted file mode 100644 index 1a5203dc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useComposedEventHandler.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; - -import { WorkletEventHandler } from '../WorkletEventHandler'; -import { useEvent } from './useEvent'; -import { useHandler } from './useHandler'; - -/** - * Lets you compose multiple event handlers based on - * [useEvent](https://docs.swmansion.com/react-native-reanimated/docs/advanced/useEvent) - * hook. - * - * @param handlers - An array of event handlers created using - * [useEvent](https://docs.swmansion.com/react-native-reanimated/docs/advanced/useEvent) - * hook. - * @returns An object you need to pass to a coresponding "onEvent" prop on an - * `Animated` component (for example handlers responsible for `onScroll` event - * go to `onScroll` prop). - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useComposedEventHandler - */ -// @ts-expect-error This overload is required by our API. - -export function useComposedEventHandler(handlers) { - // Record of handlers' worklets to calculate deps diffs. We use the record type to match the useHandler API requirements - const workletsRecord = {}; - // Summed event names for registration - const composedEventNames = new Set(); - // Map that holds worklets for specific handled events - const workletsMap = {}; - handlers.filter(h => h !== null).forEach(handler => { - // EventHandlerProcessed is the return type of useEvent and has to be force casted to EventHandlerInternal, because we need WorkletEventHandler object - const { - workletEventHandler - } = handler; - if (workletEventHandler instanceof WorkletEventHandler) { - workletEventHandler.eventNames.forEach(eventName => { - composedEventNames.add(eventName); - if (workletsMap[eventName]) { - workletsMap[eventName].push(workletEventHandler.worklet); - } else { - workletsMap[eventName] = [workletEventHandler.worklet]; - } - const handlerName = eventName + `${workletsMap[eventName].length}`; - workletsRecord[handlerName] = workletEventHandler.worklet; - }); - } - }); - const { - doDependenciesDiffer - } = useHandler(workletsRecord); - return useEvent(event => { - 'worklet'; - - if (workletsMap[event.eventName]) { - workletsMap[event.eventName].forEach(worklet => worklet(event)); - } - }, Array.from(composedEventNames), doDependenciesDiffer); -} -//# sourceMappingURL=useComposedEventHandler.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useComposedEventHandler.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useComposedEventHandler.js.map deleted file mode 100644 index 1c886f2d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useComposedEventHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["WorkletEventHandler","useEvent","useHandler","useComposedEventHandler","handlers","workletsRecord","composedEventNames","Set","workletsMap","filter","h","forEach","handler","workletEventHandler","eventNames","eventName","add","push","worklet","handlerName","length","doDependenciesDiffer","event","Array","from"],"sourceRoot":"../../../src","sources":["hook/useComposedEventHandler.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,mBAAmB,QAAQ,wBAAwB;AAG5D,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,UAAU,QAAQ,cAAc;;AAUzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,OAAO,SAASC,uBAAuBA,CAGrCC,QAA0D,EAAE;EAC5D;EACA,MAAMC,cAA+C,GAAG,CAAC,CAAC;EAC1D;EACA,MAAMC,kBAAkB,GAAG,IAAIC,GAAG,CAAS,CAAC;EAC5C;EACA,MAAMC,WAEL,GAAG,CAAC,CAAC;EAENJ,QAAQ,CACLK,MAAM,CAAEC,CAAC,IAAKA,CAAC,KAAK,IAAI,CAAC,CACzBC,OAAO,CAAEC,OAAO,IAAK;IACpB;IACA,MAAM;MAAEC;IAAoB,CAAC,GAC3BD,OAAmD;IACrD,IAAIC,mBAAmB,YAAYb,mBAAmB,EAAE;MACtDa,mBAAmB,CAACC,UAAU,CAACH,OAAO,CAAEI,SAAS,IAAK;QACpDT,kBAAkB,CAACU,GAAG,CAACD,SAAS,CAAC;QAEjC,IAAIP,WAAW,CAACO,SAAS,CAAC,EAAE;UAC1BP,WAAW,CAACO,SAAS,CAAC,CAACE,IAAI,CAACJ,mBAAmB,CAACK,OAAO,CAAC;QAC1D,CAAC,MAAM;UACLV,WAAW,CAACO,SAAS,CAAC,GAAG,CAACF,mBAAmB,CAACK,OAAO,CAAC;QACxD;QAEA,MAAMC,WAAW,GAAGJ,SAAS,GAAG,GAAGP,WAAW,CAACO,SAAS,CAAC,CAACK,MAAM,EAAE;QAClEf,cAAc,CAACc,WAAW,CAAC,GACzBN,mBAAmB,CAACK,OAA0B;MAClD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC;EAEJ,MAAM;IAAEG;EAAqB,CAAC,GAAGnB,UAAU,CAACG,cAAc,CAAC;EAE3D,OAAOJ,QAAQ,CACZqB,KAAK,IAAK;IACT,SAAS;;IACT,IAAId,WAAW,CAACc,KAAK,CAACP,SAAS,CAAC,EAAE;MAChCP,WAAW,CAACc,KAAK,CAACP,SAAS,CAAC,CAACJ,OAAO,CAAEO,OAAO,IAAKA,OAAO,CAACI,KAAK,CAAC,CAAC;IACnE;EACF,CAAC,EACDC,KAAK,CAACC,IAAI,CAAClB,kBAAkB,CAAC,EAC9Be,oBACF,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useDerivedValue.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useDerivedValue.js deleted file mode 100644 index ebbad16f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useDerivedValue.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict'; - -import { useEffect, useRef } from 'react'; -import { initialUpdaterRun } from '../animation'; -import { SHOULD_BE_USE_WEB } from '../common'; -import { makeMutable, startMapper, stopMapper } from '../core'; - -/** - * Lets you create new shared values based on existing ones while keeping them - * reactive. - * - * @param updater - A function called whenever at least one of the shared values - * or state used in the function body changes. - * @param dependencies - An optional array of dependencies. Only relevant when - * using Reanimated without the Babel plugin on the Web. - * @returns A new readonly shared value based on a value returned from the - * updater function - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/useDerivedValue - */ -// @ts-expect-error This overload is required by our API. - -export function useDerivedValue(updater, dependencies) { - const initRef = useRef(null); - let inputs = Object.values(updater.__closure ?? {}); - if (SHOULD_BE_USE_WEB) { - if (!inputs.length && dependencies?.length) { - // let web work without a Babel/SWC plugin - inputs = dependencies; - } - } - - // build dependencies - if (dependencies === undefined) { - dependencies = [...inputs, updater.__workletHash]; - } else { - dependencies.push(updater.__workletHash); - } - if (initRef.current === null) { - initRef.current = makeMutable(initialUpdaterRun(updater)); - } - const sharedValue = initRef.current; - useEffect(() => { - const fun = () => { - 'worklet'; - - sharedValue.value = updater(); - }; - const mapperId = startMapper(fun, inputs, [sharedValue]); - return () => { - stopMapper(mapperId); - }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, dependencies); - return sharedValue; -} -//# sourceMappingURL=useDerivedValue.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useDerivedValue.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useDerivedValue.js.map deleted file mode 100644 index 52c98005..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useDerivedValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useRef","initialUpdaterRun","SHOULD_BE_USE_WEB","makeMutable","startMapper","stopMapper","useDerivedValue","updater","dependencies","initRef","inputs","Object","values","__closure","length","undefined","__workletHash","push","current","sharedValue","fun","value","mapperId"],"sourceRoot":"../../../src","sources":["hook/useDerivedValue.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAGzC,SAASC,iBAAiB,QAAQ,cAAc;AAChD,SAASC,iBAAiB,QAAQ,WAAW;AAE7C,SAASC,WAAW,EAAEC,WAAW,EAAEC,UAAU,QAAQ,SAAS;;AAa9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,SAASC,eAAeA,CAC7BC,OAAmC,EACnCC,YAA6B,EACR;EACrB,MAAMC,OAAO,GAAGT,MAAM,CAA4B,IAAI,CAAC;EACvD,IAAIU,MAAM,GAAGC,MAAM,CAACC,MAAM,CAACL,OAAO,CAACM,SAAS,IAAI,CAAC,CAAC,CAAC;EACnD,IAAIX,iBAAiB,EAAE;IACrB,IAAI,CAACQ,MAAM,CAACI,MAAM,IAAIN,YAAY,EAAEM,MAAM,EAAE;MAC1C;MACAJ,MAAM,GAAGF,YAAY;IACvB;EACF;;EAEA;EACA,IAAIA,YAAY,KAAKO,SAAS,EAAE;IAC9BP,YAAY,GAAG,CAAC,GAAGE,MAAM,EAAEH,OAAO,CAACS,aAAa,CAAC;EACnD,CAAC,MAAM;IACLR,YAAY,CAACS,IAAI,CAACV,OAAO,CAACS,aAAa,CAAC;EAC1C;EAEA,IAAIP,OAAO,CAACS,OAAO,KAAK,IAAI,EAAE;IAC5BT,OAAO,CAACS,OAAO,GAAGf,WAAW,CAACF,iBAAiB,CAACM,OAAO,CAAC,CAAC;EAC3D;EAEA,MAAMY,WAA+B,GAAGV,OAAO,CAACS,OAAO;EAEvDnB,SAAS,CAAC,MAAM;IACd,MAAMqB,GAAG,GAAGA,CAAA,KAAM;MAChB,SAAS;;MACTD,WAAW,CAACE,KAAK,GAAGd,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,MAAMe,QAAQ,GAAGlB,WAAW,CAACgB,GAAG,EAAEV,MAAM,EAAE,CACxCS,WAAW,CACZ,CAAC;IACF,OAAO,MAAM;MACXd,UAAU,CAACiB,QAAQ,CAAC;IACtB,CAAC;IACD;EACF,CAAC,EAAEd,YAAY,CAAC;EAEhB,OAAOW,WAAW;AACpB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useEvent.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useEvent.js deleted file mode 100644 index fe5546b2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useEvent.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -import { useRef } from 'react'; -import { WorkletEventHandler } from '../WorkletEventHandler'; - -/** Worklet to provide as an argument to `useEvent` hook. */ - -/** - * Lets you run a function whenever a specified native event occurs. - * - * @param handler - A function that receives an event object with event data - - * {@link EventHandler}. - * @param eventNames - An array of event names the `handler` callback will react - * to. - * @param rebuild - Whether the event handler should be rebuilt. Defaults to - * `false`. - * @returns A function that will be called when the event occurs - - * {@link EventHandlerProcessed}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useEvent - */ -// @ts-expect-error This overload is required by our API. -// We don't know which properites of a component that is made into -// an AnimatedComponent are event handlers and we don't want to force the user to define it. -// Therefore we disguise `useEvent` return type as a simple function and we handle -// it being a React Ref in `createAnimatedComponent`. - -export function useEvent(handler, eventNames = [], rebuild = false) { - const initRef = useRef(null); - if (initRef.current === null) { - const workletEventHandler = new WorkletEventHandler(handler, eventNames); - initRef.current = { - workletEventHandler - }; - } else if (rebuild) { - const workletEventHandler = initRef.current.workletEventHandler; - workletEventHandler.updateEventHandler(handler, eventNames); - initRef.current = { - workletEventHandler - }; - } - return initRef.current; -} -//# sourceMappingURL=useEvent.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useEvent.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useEvent.js.map deleted file mode 100644 index 383b6ce0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useRef","WorkletEventHandler","useEvent","handler","eventNames","rebuild","initRef","current","workletEventHandler","updateEventHandler"],"sourceRoot":"../../../src","sources":["hook/useEvent.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,OAAO;AAE9B,SAASC,mBAAmB,QAAQ,wBAAwB;;AAG5D;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,OAAO,SAASC,QAAQA,CACtBC,OAAmE,EACnEC,UAAoB,GAAG,EAAE,EACzBC,OAAO,GAAG,KAAK,EACc;EAC7B,MAAMC,OAAO,GAAGN,MAAM,CAA8B,IAAK,CAAC;EAC1D,IAAIM,OAAO,CAACC,OAAO,KAAK,IAAI,EAAE;IAC5B,MAAMC,mBAAmB,GAAG,IAAIP,mBAAmB,CACjDE,OAAO,EACPC,UACF,CAAC;IACDE,OAAO,CAACC,OAAO,GAAG;MAAEC;IAAoB,CAAC;EAC3C,CAAC,MAAM,IAAIH,OAAO,EAAE;IAClB,MAAMG,mBAAmB,GAAGF,OAAO,CAACC,OAAO,CAACC,mBAAmB;IAC/DA,mBAAmB,CAACC,kBAAkB,CAACN,OAAO,EAAEC,UAAU,CAAC;IAC3DE,OAAO,CAACC,OAAO,GAAG;MAAEC;IAAoB,CAAC;EAC3C;EAEA,OAAOF,OAAO,CAACC,OAAO;AACxB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useFrameCallback.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useFrameCallback.js deleted file mode 100644 index 6369568b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useFrameCallback.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import { useEffect, useRef } from 'react'; -import FrameCallbackRegistryJS from '../frameCallback/FrameCallbackRegistryJS'; - -/** - * @param setActive - A function that lets you start the frame callback or stop - * it from running. - * @param isActive - A boolean indicating whether a callback is running. - * @param callbackId - A number indicating a unique identifier of the frame - * callback. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useFrameCallback#returns - */ - -const frameCallbackRegistry = new FrameCallbackRegistryJS(); - -/** - * Lets you run a function on every frame update. - * - * @param callback - A function executed on every frame update. - * @param autostart - Whether the callback should start automatically. Defaults - * to `true`. - * @returns A frame callback object - {@link FrameCallback}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useFrameCallback - */ -export function useFrameCallback(callback, autostart = true) { - const ref = useRef({ - setActive: isActive => { - frameCallbackRegistry.manageStateFrameCallback(ref.current.callbackId, isActive); - ref.current.isActive = isActive; - }, - isActive: autostart, - callbackId: -1 - }); - useEffect(() => { - ref.current.callbackId = frameCallbackRegistry.registerFrameCallback(callback); - const memoizedFrameCallback = ref.current; - ref.current.setActive(ref.current.isActive); - return () => { - frameCallbackRegistry.unregisterFrameCallback(memoizedFrameCallback.callbackId); - memoizedFrameCallback.callbackId = -1; - }; - }, [callback, autostart]); - return ref.current; -} -//# sourceMappingURL=useFrameCallback.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useFrameCallback.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useFrameCallback.js.map deleted file mode 100644 index f1c9a6d2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useFrameCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useRef","FrameCallbackRegistryJS","frameCallbackRegistry","useFrameCallback","callback","autostart","ref","setActive","isActive","manageStateFrameCallback","current","callbackId","registerFrameCallback","memoizedFrameCallback","unregisterFrameCallback"],"sourceRoot":"../../../src","sources":["hook/useFrameCallback.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,OAAOC,uBAAuB,MAAM,0CAA0C;;AAG9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,MAAMC,qBAAqB,GAAG,IAAID,uBAAuB,CAAC,CAAC;;AAE3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,gBAAgBA,CAC9BC,QAAwC,EACxCC,SAAS,GAAG,IAAI,EACD;EACf,MAAMC,GAAG,GAAGN,MAAM,CAAgB;IAChCO,SAAS,EAAGC,QAAiB,IAAK;MAChCN,qBAAqB,CAACO,wBAAwB,CAC5CH,GAAG,CAACI,OAAO,CAACC,UAAU,EACtBH,QACF,CAAC;MACDF,GAAG,CAACI,OAAO,CAACF,QAAQ,GAAGA,QAAQ;IACjC,CAAC;IACDA,QAAQ,EAAEH,SAAS;IACnBM,UAAU,EAAE,CAAC;EACf,CAAC,CAAC;EAEFZ,SAAS,CAAC,MAAM;IACdO,GAAG,CAACI,OAAO,CAACC,UAAU,GACpBT,qBAAqB,CAACU,qBAAqB,CAACR,QAAQ,CAAC;IACvD,MAAMS,qBAAqB,GAAGP,GAAG,CAACI,OAAO;IACzCJ,GAAG,CAACI,OAAO,CAACH,SAAS,CAACD,GAAG,CAACI,OAAO,CAACF,QAAQ,CAAC;IAE3C,OAAO,MAAM;MACXN,qBAAqB,CAACY,uBAAuB,CAC3CD,qBAAqB,CAACF,UACxB,CAAC;MACDE,qBAAqB,CAACF,UAAU,GAAG,CAAC,CAAC;IACvC,CAAC;EACH,CAAC,EAAE,CAACP,QAAQ,EAAEC,SAAS,CAAC,CAAC;EAEzB,OAAOC,GAAG,CAACI,OAAO;AACpB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useHandler.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useHandler.js deleted file mode 100644 index d7aeea51..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useHandler.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -import { useEffect, useRef } from 'react'; -import { isWorkletFunction, makeShareable } from 'react-native-worklets'; -import { IS_JEST, IS_WEB, ReanimatedError } from '../common'; -import { areDependenciesEqual, buildDependencies } from './utils'; - -/** - * Lets you find out whether the event handler dependencies have changed. - * - * @param handlers - An object of event handlers. - * @param dependencies - An optional array of dependencies. - * @returns An object containing a boolean indicating whether the dependencies - * have changed, and a boolean indicating whether the code is running on the - * web. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/useHandler - */ -// @ts-expect-error This overload is required by our API. - -export function useHandler(handlers, dependencies) { - const initRef = useRef(null); - if (initRef.current === null) { - const context = makeShareable({}); - initRef.current = { - context, - savedDependencies: [] - }; - } - useEffect(() => { - return () => { - initRef.current = null; - }; - }, []); - const { - context, - savedDependencies - } = initRef.current; - for (const handlerName in handlers) { - if (!isWorkletFunction(handlers[handlerName])) { - throw new ReanimatedError('Passed a function that is not a worklet. Please provide a worklet function.'); - } - } - dependencies = buildDependencies(dependencies, handlers); - const doDependenciesDiffer = !areDependenciesEqual(dependencies, savedDependencies); - initRef.current.savedDependencies = dependencies; - const useWeb = IS_WEB || IS_JEST; - return { - context, - doDependenciesDiffer, - useWeb - }; -} -//# sourceMappingURL=useHandler.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useHandler.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useHandler.js.map deleted file mode 100644 index 47855226..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useHandler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useRef","isWorkletFunction","makeShareable","IS_JEST","IS_WEB","ReanimatedError","areDependenciesEqual","buildDependencies","useHandler","handlers","dependencies","initRef","current","context","savedDependencies","handlerName","doDependenciesDiffer","useWeb"],"sourceRoot":"../../../src","sources":["hook/useHandler.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEzC,SAASC,iBAAiB,EAAEC,aAAa,QAAQ,uBAAuB;AAExE,SAASC,OAAO,EAAEC,MAAM,EAAEC,eAAe,QAAQ,WAAW;AAE5D,SAASC,oBAAoB,EAAEC,iBAAiB,QAAQ,SAAS;;AAmCjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,OAAO,SAASC,UAAUA,CAIxBC,QAAgD,EAChDC,YAA6B,EACD;EAC5B,MAAMC,OAAO,GAAGX,MAAM,CAA0C,IAAI,CAAC;EACrE,IAAIW,OAAO,CAACC,OAAO,KAAK,IAAI,EAAE;IAC5B,MAAMC,OAAO,GAAGX,aAAa,CAAC,CAAC,CAAY,CAAC;IAC5CS,OAAO,CAACC,OAAO,GAAG;MAChBC,OAAO;MACPC,iBAAiB,EAAE;IACrB,CAAC;EACH;EAEAf,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACXY,OAAO,CAACC,OAAO,GAAG,IAAI;IACxB,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,MAAM;IAAEC,OAAO;IAAEC;EAAkB,CAAC,GAAGH,OAAO,CAACC,OAAO;EAEtD,KAAK,MAAMG,WAAW,IAAIN,QAAQ,EAAE;IAClC,IAAI,CAACR,iBAAiB,CAACQ,QAAQ,CAACM,WAAW,CAAC,CAAC,EAAE;MAC7C,MAAM,IAAIV,eAAe,CACvB,6EACF,CAAC;IACH;EACF;EAEAK,YAAY,GAAGH,iBAAiB,CAC9BG,YAAY,EACZD,QACF,CAAC;EAED,MAAMO,oBAAoB,GAAG,CAACV,oBAAoB,CAChDI,YAAY,EACZI,iBACF,CAAC;EACDH,OAAO,CAACC,OAAO,CAACE,iBAAiB,GAAGJ,YAAY;EAChD,MAAMO,MAAM,GAAGb,MAAM,IAAID,OAAO;EAEhC,OAAO;IAAEU,OAAO;IAAEG,oBAAoB;IAAEC;EAAO,CAAC;AAClD","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useReducedMotion.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useReducedMotion.js deleted file mode 100644 index 9c844060..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useReducedMotion.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -import { isReducedMotionEnabledInSystem } from '../ReducedMotion'; -const IS_REDUCED_MOTION_ENABLED_IN_SYSTEM = isReducedMotionEnabledInSystem(); - -/** - * Lets you query the reduced motion system setting. - * - * Changing the reduced motion system setting doesn't cause your components to - * rerender. - * - * @returns A boolean indicating whether the reduced motion setting was enabled - * when the app started. - * @see https://docs.swmansion.com/react-native-reanimated/docs/device/useReducedMotion - */ -export function useReducedMotion() { - return IS_REDUCED_MOTION_ENABLED_IN_SYSTEM; -} -//# sourceMappingURL=useReducedMotion.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useReducedMotion.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useReducedMotion.js.map deleted file mode 100644 index eda48d10..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useReducedMotion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isReducedMotionEnabledInSystem","IS_REDUCED_MOTION_ENABLED_IN_SYSTEM","useReducedMotion"],"sourceRoot":"../../../src","sources":["hook/useReducedMotion.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,8BAA8B,QAAQ,kBAAkB;AAEjE,MAAMC,mCAAmC,GAAGD,8BAA8B,CAAC,CAAC;;AAE5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,gBAAgBA,CAAA,EAAG;EACjC,OAAOD,mCAAmC;AAC5C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useScrollOffset.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useScrollOffset.js deleted file mode 100644 index 57a2c721..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useScrollOffset.js +++ /dev/null @@ -1,82 +0,0 @@ -'use strict'; - -import { useCallback, useEffect, useRef } from 'react'; -import { IS_WEB, logger } from '../common'; -import { useEvent } from './useEvent'; -import { useSharedValue } from './useSharedValue'; -const NOT_INITIALIZED_WARNING = 'animatedRef is not initialized in useScrollOffset. Make sure to pass the animated ref to the scrollable component to get scroll offset updates.'; -const NATIVE_SCROLL_EVENT_NAMES = ['onScroll', 'onScrollBeginDrag', 'onScrollEndDrag', 'onMomentumScrollBegin', 'onMomentumScrollEnd']; - -/** - * Lets you synchronously get the current offset of a scrollable component. - * - * @param animatedRef - An [animated - * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef) - * attached to a scrollable component. - * @returns A shared value which holds the current scroll offset of the - * scrollable component. - * @see https://docs.swmansion.com/react-native-reanimated/docs/scroll/useScrollOffset - */ -export const useScrollOffset = IS_WEB ? useScrollOffsetWeb : useScrollOffsetNative; -function useScrollOffsetWeb(animatedRef, providedOffset) { - const internalOffset = useSharedValue(0); - const offset = useRef(providedOffset ?? internalOffset).current; - const eventHandler = useCallback(() => { - 'worklet'; - - if (animatedRef?.current) { - const element = getWebScrollableElement(animatedRef.current); - // scrollLeft is the X axis scrolled offset, works properly also with RTL layout - offset.value = element.scrollLeft === 0 ? element.scrollTop : element.scrollLeft; - } - }, [animatedRef, offset]); - useEffect(() => { - if (!animatedRef) { - return; - } - return animatedRef.observe(tag => { - if (!animatedRef.current || !tag) { - logger.warn(NOT_INITIALIZED_WARNING); - return; - } - const element = getWebScrollableElement(animatedRef.current); - element.addEventListener('scroll', eventHandler); - return () => { - element.removeEventListener('scroll', eventHandler); - }; - }); - }, [animatedRef, eventHandler]); - return offset; -} -function useScrollOffsetNative(animatedRef, providedOffset) { - const internalOffset = useSharedValue(0); - const offset = useRef(providedOffset ?? internalOffset).current; - const eventHandler = useEvent(event => { - 'worklet'; - - offset.value = event.contentOffset.x === 0 ? event.contentOffset.y : event.contentOffset.x; - }, NATIVE_SCROLL_EVENT_NAMES - // Read https://github.com/software-mansion/react-native-reanimated/pull/5056 - // for more information about this cast. - ); - useEffect(() => { - if (!animatedRef) { - return; - } - return animatedRef.observe(tag => { - if (!tag) { - logger.warn(NOT_INITIALIZED_WARNING); - return; - } - eventHandler.workletEventHandler.registerForEvents(tag); - return () => { - eventHandler.workletEventHandler.unregisterFromEvents(tag); - }; - }); - }, [animatedRef, eventHandler]); - return offset; -} -function getWebScrollableElement(scrollComponent) { - return scrollComponent?.getScrollableNode?.() ?? scrollComponent; -} -//# sourceMappingURL=useScrollOffset.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useScrollOffset.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useScrollOffset.js.map deleted file mode 100644 index c192bcf9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useScrollOffset.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useCallback","useEffect","useRef","IS_WEB","logger","useEvent","useSharedValue","NOT_INITIALIZED_WARNING","NATIVE_SCROLL_EVENT_NAMES","useScrollOffset","useScrollOffsetWeb","useScrollOffsetNative","animatedRef","providedOffset","internalOffset","offset","current","eventHandler","element","getWebScrollableElement","value","scrollLeft","scrollTop","observe","tag","warn","addEventListener","removeEventListener","event","contentOffset","x","y","workletEventHandler","registerForEvents","unregisterFromEvents","scrollComponent","getScrollableNode"],"sourceRoot":"../../../src","sources":["hook/useScrollOffset.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAEtD,SAASC,MAAM,EAAEC,MAAM,QAAQ,WAAW;AAQ1C,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,uBAAuB,GAC3B,iJAAiJ;AAEnJ,MAAMC,yBAAyB,GAAG,CAChC,UAAU,EACV,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,CACb;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,eAAe,GAAGN,MAAM,GACjCO,kBAAkB,GAClBC,qBAAqB;AAEzB,SAASD,kBAAkBA,CACzBE,WAAqC,EACrCC,cAAoC,EACf;EACrB,MAAMC,cAAc,GAAGR,cAAc,CAAC,CAAC,CAAC;EACxC,MAAMS,MAAM,GAAGb,MAAM,CAACW,cAAc,IAAIC,cAAc,CAAC,CAACE,OAAO;EAE/D,MAAMC,YAAY,GAAGjB,WAAW,CAAC,MAAM;IACrC,SAAS;;IACT,IAAIY,WAAW,EAAEI,OAAO,EAAE;MACxB,MAAME,OAAO,GAAGC,uBAAuB,CAACP,WAAW,CAACI,OAAO,CAAC;MAC5D;MACAD,MAAM,CAACK,KAAK,GACVF,OAAO,CAACG,UAAU,KAAK,CAAC,GAAGH,OAAO,CAACI,SAAS,GAAGJ,OAAO,CAACG,UAAU;IACrE;EACF,CAAC,EAAE,CAACT,WAAW,EAAEG,MAAM,CAAC,CAAC;EAEzBd,SAAS,CAAC,MAAM;IACd,IAAI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vD,OAAO,MAAM;QACXP,YAAY,CAACe,mBAAmB,CAACE,oBAAoB,CAACV,GAAG,CAAC;MAC5D,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,EAAE,CAACZ,WAAW,EAAEK,YAAY,CAAC,CAAC;EAE/B,OAAOF,MAAM;AACf;AAEA,SAASI,uBAAuBA,CAACgB,eAA2B,EAAe;EACzE,OAAOA,eAAe,EAAEC,iBAAiB,GAAG,CAAC,IAAID,eAAe;AAClE","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useSharedValue.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useSharedValue.js deleted file mode 100644 index dbd2b679..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useSharedValue.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -import { useEffect, useState } from 'react'; -import { cancelAnimation } from '../animation'; -import { makeMutable } from '../core'; - -/** - * Lets you define [shared - * values](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#shared-value) - * in your components. - * - * @param initialValue - The value you want to be initially stored to a `.value` - * property. - * @returns A shared value with a single `.value` property initially set to the - * `initialValue` - {@link SharedValue}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/useSharedValue - */ -export function useSharedValue(initialValue) { - const [mutable] = useState(() => makeMutable(initialValue)); - useEffect(() => { - return () => { - cancelAnimation(mutable); - }; - }, [mutable]); - return mutable; -} -//# sourceMappingURL=useSharedValue.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useSharedValue.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useSharedValue.js.map deleted file mode 100644 index a252144e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/useSharedValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["useEffect","useState","cancelAnimation","makeMutable","useSharedValue","initialValue","mutable"],"sourceRoot":"../../../src","sources":["hook/useSharedValue.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAE3C,SAASC,eAAe,QAAQ,cAAc;AAE9C,SAASC,WAAW,QAAQ,SAAS;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAAQC,YAAmB,EAAsB;EAC7E,MAAM,CAACC,OAAO,CAAC,GAAGL,QAAQ,CAAC,MAAME,WAAW,CAACE,YAAY,CAAC,CAAC;EAC3DL,SAAS,CAAC,MAAM;IACd,OAAO,MAAM;MACXE,eAAe,CAACI,OAAO,CAAC;IAC1B,CAAC;EACH,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EACb,OAAOA,OAAO;AAChB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/utils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/utils.js deleted file mode 100644 index 7063ea2b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/utils.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict'; - -import { isWorkletFunction } from 'react-native-worklets'; -import { ReanimatedError } from '../common'; -// Builds one big hash from multiple worklets' hashes. -export function buildWorkletsHash(worklets) { - // For arrays `Object.values` returns the array itself. - return Object.values(worklets).reduce((acc, worklet) => acc + worklet.__workletHash.toString(), ''); -} - -// Builds dependencies array for useEvent handlers. -export function buildDependencies(dependencies, handlers) { - const handlersList = Object.values(handlers).filter(handler => handler !== undefined); - if (!dependencies) { - return handlersList; - } - dependencies.push(buildWorkletsHash(handlersList)); - return dependencies; -} -function areWorkletsEqual(worklet1, worklet2) { - if (worklet1.__workletHash === worklet2.__workletHash) { - const closure1Keys = Object.keys(worklet1.__closure); - const closure2Keys = Object.keys(worklet2.__closure); - return closure1Keys.length === closure2Keys.length && closure1Keys.every(key => key in worklet2.__closure && worklet1.__closure[key] === worklet2.__closure[key]); - } - return false; -} - -// This is supposed to work as useEffect comparison. -export function areDependenciesEqual(nextDependencies, prevDependencies) { - function is(x, y) { - return x === y && (x !== 0 || 1 / x === 1 / y) || Number.isNaN(x) && Number.isNaN(y); - } - const objectIs = typeof Object.is === 'function' ? Object.is : is; - function areHookInputsEqual(nextDeps, prevDeps) { - if (!nextDeps || !prevDeps || prevDeps.length !== nextDeps.length) { - return false; - } - for (let i = 0; i < prevDeps.length; ++i) { - const nextDep = nextDeps[i]; - const prevDep = prevDeps[i]; - if (objectIs(nextDep, prevDep)) { - continue; - } - if (!isWorkletFunction(nextDep) || !isWorkletFunction(prevDep)) { - return false; - } - if (!areWorkletsEqual(nextDep, prevDep)) { - return false; - } - } - return true; - } - return areHookInputsEqual(nextDependencies, prevDependencies); -} -export function isAnimated(prop) { - 'worklet'; - - if (Array.isArray(prop)) { - return prop.some(isAnimated); - } else if (typeof prop === 'object' && prop !== null) { - if (prop.onFrame !== undefined) { - return true; - } else { - return Object.values(prop).some(isAnimated); - } - } - return false; -} - -// This function works because `Object.keys` -// return empty array of primitives and on arrays -// it returns array of its indices. -export function shallowEqual(a, b) { - 'worklet'; - - const aKeys = Object.keys(a); - const bKeys = Object.keys(b); - if (aKeys.length !== bKeys.length) { - return false; - } - for (let i = 0; i < aKeys.length; i++) { - if (a[aKeys[i]] !== b[aKeys[i]]) { - return false; - } - } - return true; -} -export function validateAnimatedStyles(styles) { - 'worklet'; - - if (typeof styles !== 'object') { - throw new ReanimatedError(`\`useAnimatedStyle\` has to return an object, found ${typeof styles} instead.`); - } else if (Array.isArray(styles)) { - throw new ReanimatedError('`useAnimatedStyle` has to return an object and cannot return static styles combined with dynamic ones. Please do merging where a component receives props.'); - } -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/utils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/utils.js.map deleted file mode 100644 index f6ecb5f9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/hook/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isWorkletFunction","ReanimatedError","buildWorkletsHash","worklets","Object","values","reduce","acc","worklet","__workletHash","toString","buildDependencies","dependencies","handlers","handlersList","filter","handler","undefined","push","areWorkletsEqual","worklet1","worklet2","closure1Keys","keys","__closure","closure2Keys","length","every","key","areDependenciesEqual","nextDependencies","prevDependencies","is","x","y","Number","isNaN","objectIs","areHookInputsEqual","nextDeps","prevDeps","i","nextDep","prevDep","isAnimated","prop","Array","isArray","some","onFrame","shallowEqual","a","b","aKeys","bKeys","validateAnimatedStyles","styles"],"sourceRoot":"../../../src","sources":["hook/utils.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,iBAAiB,QAAQ,uBAAuB;AAEzD,SAASC,eAAe,QAAQ,WAAW;AAG3C;AACA,OAAO,SAASC,iBAAiBA,CAC/BC,QAEwC,EACxC;EACA;EACA,OAAOC,MAAM,CAACC,MAAM,CAACF,QAAQ,CAAC,CAACG,MAAM,CACnC,CAACC,GAAG,EAAEC,OAA2C,KAC/CD,GAAG,GAAGC,OAAO,CAACC,aAAa,CAACC,QAAQ,CAAC,CAAC,EACxC,EACF,CAAC;AACH;;AAEA;AACA,OAAO,SAASC,iBAAiBA,CAC/BC,YAA4B,EAC5BC,QAAyC,EACzC;EACA,MAAMC,YAAY,GAAGV,MAAM,CAACC,MAAM,CAACQ,QAAQ,CAAC,CAACE,MAAM,CAChDC,OAAO,IAAKA,OAAO,KAAKC,SAC3B,CAAC;EACD,IAAI,CAACL,YAAY,EAAE;IACjB,OAAOE,YAAY;EACrB;EAEAF,YAAY,CAACM,IAAI,CAAChB,iBAAiB,CAACY,YAAY,CAAC,CAAC;EAClD,OAAOF,YAAY;AACrB;AAEA,SAASO,gBAAgBA,CACvBC,QAAyB,EACzBC,QAAyB,EACzB;EACA,IAAID,QAAQ,CAACX,aAAa,KAAKY,QAAQ,CAACZ,aAAa,EAAE;IACrD,MAAMa,YAAY,GAAGlB,MAAM,CAACmB,IAAI,C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ACZ,CAAC,CAAC,CAAC,KAAKW,CAAC,CAACC,KAAK,CAACZ,CAAC,CAAC,CAAC,EAAE;MAC/B,OAAO,KAAK;IACd;EACF;EACA,OAAO,IAAI;AACb;AAEA,OAAO,SAASc,sBAAsBA,CAACC,MAA0B,EAAE;EACjE,SAAS;;EACT,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,MAAM,IAAIvD,eAAe,CACvB,uDAAuD,OAAOuD,MAAM,WACtE,CAAC;EACH,CAAC,MAAM,IAAIV,KAAK,CAACC,OAAO,CAACS,MAAM,CAAC,EAAE;IAChC,MAAM,IAAIvD,eAAe,CACvB,4JACF,CAAC;EACH;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js index 1088397e..931366da 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js @@ -1,64 +1,6 @@ 'use strict'; -import './publicGlobals'; -import { initializeReanimatedModule } from './initializers'; -import { ReanimatedModule } from './ReanimatedModule'; - -// TODO: Specify the initialization pipeline since now there's no -// universal source of truth for it. -initializeReanimatedModule(ReanimatedModule); - -// eslint-disable-next-line import/first import * as Animated from './Animated'; +export * from './reanimated2'; export default Animated; -export { createAnimatedComponent } from './Animated'; -export { cancelAnimation, defineAnimation, GentleSpringConfig, GentleSpringConfigWithDuration, Reanimated3DefaultSpringConfig, Reanimated3DefaultSpringConfigWithDuration, SnappySpringConfig, SnappySpringConfigWithDuration, WigglySpringConfig, WigglySpringConfigWithDuration, withClamp, withDecay, withDelay, withRepeat, withSequence, withSpring, withTiming } from './animation'; -export { convertToRGBA, isColor } from './Colors'; -export { processColor, ReanimatedLogLevel } from './common'; -export { InterfaceOrientation, IOSReferenceFrame, KeyboardState, ReduceMotion, SensorType } from './commonTypes'; -export { LayoutAnimationConfig } from './component/LayoutAnimationConfig'; -export { PerformanceMonitor } from './component/PerformanceMonitor'; -export { ReducedMotionConfig } from './component/ReducedMotionConfig'; -export { configureReanimatedLogger } from './ConfigHelper'; -export { enableLayoutAnimations, getViewProp, isConfigured, isReanimated3, makeMutable } from './core'; -export * from './css'; -export { Easing } from './Easing'; -export { getStaticFeatureFlag, setDynamicFeatureFlag } from './featureFlags'; -export { useAnimatedKeyboard, useAnimatedProps, useAnimatedReaction, useAnimatedRef, useAnimatedScrollHandler, useAnimatedSensor, useAnimatedStyle, useComposedEventHandler, useDerivedValue, useEvent, useFrameCallback, useHandler, useReducedMotion, useScrollOffset, /** @deprecated Please use {@link useScrollOffset} instead. */ -useScrollOffset as useScrollViewOffset, useSharedValue } from './hook'; -export { ColorSpace, /** @deprecated Please use {@link Extrapolation} instead. */ -Extrapolate, interpolateColor, useInterpolateConfig } from './interpolateColor'; -export { clamp, Extrapolation, interpolate } from './interpolation'; -export { isSharedValue } from './isSharedValue'; -export { advanceAnimationByFrame, advanceAnimationByTime, getAnimatedStyle, setUpTests, withReanimatedTimer } from './jestUtils'; -export { BaseAnimationBuilder, -// Bounce -BounceIn, BounceInDown, BounceInLeft, BounceInRight, BounceInUp, BounceOut, BounceOutDown, BounceOutLeft, BounceOutRight, BounceOutUp, ComplexAnimationBuilder, CurvedTransition, EntryExitTransition, -// Fade -FadeIn, FadeInDown, FadeInLeft, FadeInRight, FadeInUp, FadeOut, FadeOutDown, FadeOutLeft, FadeOutRight, FadeOutUp, FadingTransition, FlipInEasyX, FlipInEasyY, FlipInXDown, -// Flip -FlipInXUp, FlipInYLeft, FlipInYRight, FlipOutEasyX, FlipOutEasyY, FlipOutXDown, FlipOutXUp, FlipOutYLeft, FlipOutYRight, JumpingTransition, Keyframe, -// Transitions -Layout, LightSpeedInLeft, -// Lightspeed -LightSpeedInRight, LightSpeedOutLeft, LightSpeedOutRight, LinearTransition, -// Pinwheel -PinwheelIn, PinwheelOut, -// Roll -RollInLeft, RollInRight, RollOutLeft, RollOutRight, -// Rotate -RotateInDownLeft, RotateInDownRight, RotateInUpLeft, RotateInUpRight, RotateOutDownLeft, RotateOutDownRight, RotateOutUpLeft, RotateOutUpRight, SequencedTransition, SlideInDown, SlideInLeft, -// Slide -SlideInRight, SlideInUp, SlideOutDown, SlideOutLeft, SlideOutRight, SlideOutUp, -// Stretch -StretchInX, StretchInY, StretchOutX, StretchOutY, -// Zoom -ZoomIn, ZoomInDown, ZoomInEasyDown, ZoomInEasyUp, ZoomInLeft, ZoomInRight, ZoomInRotate, ZoomInUp, ZoomOut, ZoomOutDown, ZoomOutEasyDown, ZoomOutEasyUp, ZoomOutLeft, ZoomOutRight, ZoomOutRotate, ZoomOutUp } from './layoutReanimation'; -export { startMapper, stopMapper } from './mappers'; -export { jsVersion as reanimatedVersion } from './platform-specific/jsVersion'; -export { dispatchCommand, getRelativeCoords, measure, scrollTo, setGestureState, setNativeProps } from './platformFunctions'; -export { getUseOfValueInStyleWarning } from './pluginUtils'; -export { createAnimatedPropAdapter } from './PropAdapters'; -export { finishScreenTransition, ScreenTransition, startScreenTransition } from './screenTransition'; -export { createWorkletRuntime, executeOnUIRuntimeSync, isWorkletFunction, makeShareableCloneRecursive, runOnJS, runOnRuntime, runOnUI } from './workletFunctions'; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js.map index 5379fcc6..1e3384f9 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js.map +++ b/frontend-admin/node_modules/react-native-reanimated/lib/module/index.js.map @@ -1 +1 @@ -{"version":3,"names":["initializeReanimatedModule","ReanimatedModule","Animated","createAnimatedComponent","cancelAnimation","defineAnimation","GentleSpringConfig","GentleSpringConfigWithDuration","Reanimated3DefaultSpringConfig","Reanimated3DefaultSpringConfigWithDuration","SnappySpringConfig","SnappySpringConfigWithDuration","WigglySpringConfig","WigglySpringConfigWithDuration","withClamp","withDecay","withDelay","withRepeat","withSequence","withSpring","withTiming","convertToRGBA","isColor","processColor","ReanimatedLogLevel","InterfaceOrientation","IOSReferenceFrame","KeyboardState","ReduceMotion","SensorType","LayoutAnimationConfig","PerformanceMonitor","ReducedMotionConfig","configureReanimatedLogger","enableLayoutAnimations","getViewProp","isConfigured","isReanimated3","makeMutable","Easing","getStaticFeatureFlag","setDynamicFeatureFlag","useAnimatedKeyboard","useAnimatedProps","useAnimatedReaction","useAnimatedRef","useAnimatedScrollHandler","useAnimatedSensor","useAnimatedStyle","useComposedEventHandler","useDerivedValue","useEvent","useFrameCallback","useHandler","useReducedMotion","useScrollOffset","useScrollViewOffset","useSharedValue","ColorSpace","Extrapolate","interpolateColor","useInterpolateConfig","clamp","Extrapolation","interpolate","isSharedValue","advanceAnimationByFrame","advanceAnimationByTime","getAnimatedStyle","setUpTests","withReanimatedTimer","BaseAnimationBuilder","BounceIn","BounceInDown","BounceInLeft","BounceInRight","BounceInUp","BounceOut","BounceOutDown","BounceOutLeft","BounceOutRight","BounceOutUp","ComplexAnimationBuilder","CurvedTransition","EntryExitTransition","FadeIn","FadeInDown","FadeInLeft","FadeInRight","FadeInUp","FadeOut","FadeOutDown","FadeOutLeft","FadeOutRight","FadeOutUp","FadingTransition","FlipInEasyX","FlipInEasyY","FlipInXDown","FlipInXUp","FlipInYLeft","FlipInYRight","FlipOutEasyX","FlipOutEasyY","FlipOutXDown","FlipOutXUp","FlipOutYLeft","FlipOutYRight","JumpingTransition","Keyframe","Layout","LightSpeedInLeft","LightSpeedInRight","LightSpeedOutLeft","LightSpeedOutRight","LinearTransition","PinwheelIn","PinwheelOut","RollInLeft","RollInRight","RollOutLeft","RollOutRight","RotateInDownLeft","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight","SequencedTransition","SlideInDown","SlideInLeft","SlideInRight","SlideInUp","SlideOutDown","SlideOutLeft","SlideOutRight","SlideOutUp","StretchInX","StretchInY","StretchOutX","StretchOutY","ZoomIn","ZoomInDown","ZoomInEasyDown","ZoomInEasyUp","ZoomInLeft","ZoomInRight","ZoomInRotate","ZoomInUp","ZoomOut","ZoomOutDown","ZoomOutEasyDown","ZoomOutEasyUp","ZoomOutLeft","ZoomOutRight","ZoomOutRotate","ZoomOutUp","startMapper","stopMapper","jsVersion","reanimatedVersion","dispatchCommand","getRelativeCoords","measure","scrollTo","setGestureState","setNativeProps","getUseOfValueInStyleWarning","createAnimatedPropAdapter","finishScreenTransition","ScreenTransition","startScreenTransition","createWorkletRuntime","executeOnUIRuntimeSync","isWorkletFunction","makeShareableCloneRecursive","runOnJS","runOnRuntime","runOnUI"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAO,iBAAiB;AAExB,SAASA,0BAA0B,QAAQ,gBAAgB;AAC3D,SAASC,gBAAgB,QAAQ,oBAAoB;;AAErD;AACA;AACAD,0BAA0B,CAACC,gBAAgB,CAAC;;AAE5C;AACA,OAAO,KAAKC,QAAQ,MAAM,YAAY;AAEtC,eAAeA,QAAQ;AAEvB,SAASC,uBAAuB,QAAQ,YAAY;AAapD,SACEC,eAAe,EACfC,eAAe,EACfC,kBAAkB,EAClBC,8BAA8B,EAC9BC,8BAA8B,EAC9BC,0CAA0C,EAC1CC,kBAAkB,EAClBC,8BAA8B,EAC9BC,kBAAkB,EAClBC,8BAA8B,EAC9BC,SAAS,EACTC,SAAS,EACTC,SAAS,EACTC,UAAU,EACVC,YAAY,EACZC,UAAU,EACVC,UAAU,QACL,aAAa;AAEpB,SAASC,aAAa,EAAEC,OAAO,QAAQ,UAAU;AACjD,SAASC,YAAY,EAAEC,kBAAkB,QAAQ,UAAU;AAiC3D,SACEC,oBAAoB,EACpBC,iBAAiB,EACjBC,aAAa,EACbC,YAAY,EACZC,UAAU,QACL,eAAe;AAEtB,SAASC,qBAAqB,QAAQ,mCAAmC;AAEzE,SAASC,kBAAkB,QAAQ,gCAAgC;AACnE,SAASC,mBAAmB,QAAQ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AAY,EACZC,aAAa,EACbC,iBAAiB,EACjBC,QAAQ;AACR;AACAC,MAAM,EACNC,gBAAgB;AAChB;AACAC,iBAAiB,EACjBC,iBAAiB,EACjBC,kBAAkB,EAClBC,gBAAgB;AAChB;AACAC,UAAU,EACVC,WAAW;AACX;AACAC,UAAU,EACVC,WAAW,EACXC,WAAW,EACXC,YAAY;AACZ;AACAC,gBAAgB,EAChBC,iBAAiB,EACjBC,cAAc,EACdC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,EAClBC,eAAe,EACfC,gBAAgB,EAChBC,mBAAmB,EACnBC,WAAW,EACXC,WAAW;AACX;AACAC,YAAY,EACZC,SAAS,EACTC,YAAY,EACZC,YAAY,EACZC,aAAa,EACbC,UAAU;AACV;AACAC,UAAU,EACVC,UAAU,EACVC,WAAW,EACXC,WAAW;AACX;AACAC,MAAM,EACNC,UAAU,EACVC,cAAc,EACdC,YAAY,EACZC,UAAU,EACVC,WAAW,EACXC,YAAY,EACZC,QAAQ,EACRC,OAAO,EACPC,WAAW,EACXC,eAAe,EACfC,aAAa,EACbC,WAAW,EACXC,YAAY,EACZC,aAAa,EACbC,SAAS,QACJ,qBAAqB;AAC5B,SAASC,WAAW,EAAEC,UAAU,QAAQ,WAAW;AACnD,SAASC,SAAS,IAAIC,iBAAiB,QAAQ,+BAA+B;AAE9E,SACEC,eAAe,EACfC,iBAAiB,EACjBC,OAAO,EACPC,QAAQ,EACRC,eAAe,EACfC,cAAc,QACT,qBAAqB;AAC5B,SAASC,2BAA2B,QAAQ,eAAe;AAC3D,SAASC,yBAAyB,QAAQ,gBAAgB;AAM1D,SACEC,sBAAsB,EACtBC,gBAAgB,EAChBC,qBAAqB,QAChB,oBAAoB;AAE3B,SACEC,oBAAoB,EACpBC,sBAAsB,EACtBC,iBAAiB,EACjBC,2BAA2B,EAC3BC,OAAO,EACPC,YAAY,EACZC,OAAO,QACF,oBAAoB","ignoreList":[]} +{"version":3,"names":["Animated"],"sources":["index.ts"],"sourcesContent":["'use strict';\nimport * as Animated from './Animated';\n\nexport * from './reanimated2';\nexport default Animated;\n"],"mappings":"AAAA,YAAY;;AACZ,OAAO,KAAKA,QAAQ,MAAM,YAAY;AAEtC,cAAc,eAAe;AAC7B,eAAeA,QAAQ"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/initializers.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/initializers.js deleted file mode 100644 index eff166ef..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/initializers.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -import { executeOnUIRuntimeSync } from 'react-native-worklets'; -import { IS_WEB, ReanimatedError, SHOULD_BE_USE_WEB } from './common'; -import { initSvgCssSupport } from './css/svg'; -import { getStaticFeatureFlag } from './featureFlags'; -export function initializeReanimatedModule(ReanimatedModule) { - if (!IS_WEB && !ReanimatedModule) { - throw new ReanimatedError('Tried to initialize Reanimated without a valid ReanimatedModule'); - } - if (getStaticFeatureFlag('EXPERIMENTAL_CSS_ANIMATIONS_FOR_SVG_COMPONENTS')) { - initSvgCssSupport(); - } -} -if (!SHOULD_BE_USE_WEB) { - executeOnUIRuntimeSync(() => { - 'worklet'; - - global._tagToJSPropNamesMapping = {}; - })(); -} -//# sourceMappingURL=initializers.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/initializers.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/initializers.js.map deleted file mode 100644 index d5e1982b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/initializers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["executeOnUIRuntimeSync","IS_WEB","ReanimatedError","SHOULD_BE_USE_WEB","initSvgCssSupport","getStaticFeatureFlag","initializeReanimatedModule","ReanimatedModule","global","_tagToJSPropNamesMapping"],"sourceRoot":"../../src","sources":["initializers.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,sBAAsB,QAAQ,uBAAuB;AAE9D,SAASC,MAAM,EAAEC,eAAe,EAAEC,iBAAiB,QAAQ,UAAU;AACrE,SAASC,iBAAiB,QAAQ,WAAW;AAC7C,SAASC,oBAAoB,QAAQ,gBAAgB;AAGrD,OAAO,SAASC,0BAA0BA,CACxCC,gBAAmC,EACnC;EACA,IAAI,CAACN,MAAM,IAAI,CAACM,gBAAgB,EAAE;IAChC,MAAM,IAAIL,eAAe,CACvB,iEACF,CAAC;EACH;EACA,IAAIG,oBAAoB,CAAC,gDAAgD,CAAC,EAAE;IAC1ED,iBAAiB,CAAC,CAAC;EACrB;AACF;AAEA,IAAI,CAACD,iBAAiB,EAAE;EACtBH,sBAAsB,CAAC,MAAM;IAC3B,SAAS;;IACTQ,MAAM,CAACC,wBAAwB,GAAG,CAAC,CAAC;EACtC,CAAC,CAAC,CAAC,CAAC;AACN","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolateColor.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolateColor.js deleted file mode 100644 index 1de9f4b9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolateColor.js +++ /dev/null @@ -1,310 +0,0 @@ -'use strict'; - -import { blue, green, hsvToColor, opacity, red, rgbaColor, RGBtoHSV } from './Colors'; -import { processColor, ReanimatedError } from './common'; -import { makeMutable } from './core'; -import culori from './culori'; -import { useSharedValue } from './hook/useSharedValue'; -import { Extrapolation, interpolate } from './interpolation'; - -/** @deprecated Please use Extrapolation instead */ -export const Extrapolate = Extrapolation; - -/** - * Options for color interpolation. - * - * @param gamma - Gamma value used in gamma correction. Defaults to `2.2`. - * @param useCorrectedHSVInterpolation - Whether to reduce the number of colors - * the interpolation has to go through. Defaults to `true`. - */ - -const interpolateColorsHSV = (value, inputRange, colors, options) => { - 'worklet'; - - let h = 0; - const { - useCorrectedHSVInterpolation = true - } = options; - if (useCorrectedHSVInterpolation) { - // if the difference between hues in a range is > 180 deg - // then move the hue at the right end of the range +/- 360 deg - // and add the next point in the original place + 0.00001 with original hue - // to not break the next range - const correctedInputRange = [inputRange[0]]; - const originalH = colors.h; - const correctedH = [originalH[0]]; - for (let i = 1; i < originalH.length; ++i) { - const d = originalH[i] - originalH[i - 1]; - if (originalH[i] > originalH[i - 1] && d > 0.5) { - correctedInputRange.push(inputRange[i]); - correctedInputRange.push(inputRange[i] + 0.00001); - correctedH.push(originalH[i] - 1); - correctedH.push(originalH[i]); - } else if (originalH[i] < originalH[i - 1] && d < -0.5) { - correctedInputRange.push(inputRange[i]); - correctedInputRange.push(inputRange[i] + 0.00001); - correctedH.push(originalH[i] + 1); - correctedH.push(originalH[i]); - } else { - correctedInputRange.push(inputRange[i]); - correctedH.push(originalH[i]); - } - } - h = (interpolate(value, correctedInputRange, correctedH, Extrapolation.CLAMP) + 1) % 1; - } else { - h = interpolate(value, inputRange, colors.h, Extrapolation.CLAMP); - } - const s = interpolate(value, inputRange, colors.s, Extrapolation.CLAMP); - const v = interpolate(value, inputRange, colors.v, Extrapolation.CLAMP); - const a = interpolate(value, inputRange, colors.a, Extrapolation.CLAMP); - return hsvToColor(h, s, v, a); -}; -const toLinearSpace = (x, gamma) => { - 'worklet'; - - return x.map(v => Math.pow(v / 255, gamma)); -}; -const toGammaSpace = (x, gamma) => { - 'worklet'; - - return Math.round(Math.pow(x, 1 / gamma) * 255); -}; -const interpolateColorsRGB = (value, inputRange, colors, options) => { - 'worklet'; - - const { - gamma = 2.2 - } = options; - let { - r: outputR, - g: outputG, - b: outputB - } = colors; - if (gamma !== 1) { - outputR = toLinearSpace(outputR, gamma); - outputG = toLinearSpace(outputG, gamma); - outputB = toLinearSpace(outputB, gamma); - } - const r = interpolate(value, inputRange, outputR, Extrapolation.CLAMP); - const g = interpolate(value, inputRange, outputG, Extrapolation.CLAMP); - const b = interpolate(value, inputRange, outputB, Extrapolation.CLAMP); - const a = interpolate(value, inputRange, colors.a, Extrapolation.CLAMP); - if (gamma === 1) { - return rgbaColor(r, g, b, a); - } - return rgbaColor(toGammaSpace(r, gamma), toGammaSpace(g, gamma), toGammaSpace(b, gamma), a); -}; -const interpolateColorsLAB = (value, inputRange, colors, _options) => { - 'worklet'; - - const l = interpolate(value, inputRange, colors.l, Extrapolation.CLAMP); - const a = interpolate(value, inputRange, colors.a, Extrapolation.CLAMP); - const b = interpolate(value, inputRange, colors.b, Extrapolation.CLAMP); - const alpha = interpolate(value, inputRange, colors.alpha, Extrapolation.CLAMP); - const { - r: _r, - g: _g, - b: _b, - alpha: _alpha - } = culori.oklab.convert.toRgb({ - l, - a, - b, - alpha - }); - return rgbaColor(_r, _g, _b, _alpha); -}; -const _splitColorsIntoChannels = (processedColors, convFromRgb) => { - 'worklet'; - - const ch1 = []; - const ch2 = []; - const ch3 = []; - const alpha = []; - for (const processedColor of processedColors) { - const convertedColor = convFromRgb({ - r: red(processedColor), - g: green(processedColor), - b: blue(processedColor) - }); - ch1.push(convertedColor.ch1); - ch2.push(convertedColor.ch2); - ch3.push(convertedColor.ch3); - alpha.push(opacity(processedColor)); - } - return { - ch1, - ch2, - ch3, - alpha - }; -}; -const getInterpolateRGB = processedColors => { - 'worklet'; - - const { - ch1, - ch2, - ch3, - alpha - } = _splitColorsIntoChannels(processedColors, color => ({ - ch1: color.r, - ch2: color.g, - ch3: color.b - })); - return { - r: ch1, - g: ch2, - b: ch3, - a: alpha - }; -}; -const getInterpolateHSV = processedColors => { - 'worklet'; - - const { - ch1, - ch2, - ch3, - alpha - } = _splitColorsIntoChannels(processedColors, color => { - const hsvColor = RGBtoHSV(color.r, color.g, color.b); - return { - ch1: hsvColor.h, - ch2: hsvColor.s, - ch3: hsvColor.v - }; - }); - return { - h: ch1, - s: ch2, - v: ch3, - a: alpha - }; -}; -const getInterpolateLAB = processedColors => { - 'worklet'; - - const { - ch1, - ch2, - ch3, - alpha - } = _splitColorsIntoChannels(processedColors, color => { - const labColor = culori.oklab.convert.fromRgb(color); - return { - ch1: labColor.l, - ch2: labColor.a, - ch3: labColor.b - }; - }); - return { - l: ch1, - a: ch2, - b: ch3, - alpha - }; -}; -const TRANSPARENCY_MASK = 0x00ffffff; // AARRGGBB - -/** - * Processes color ranges to handle transparent color interpolation by replacing - * 'transparent' values with RGBA values that preserve the RGB channels from - * neighboring colors while setting alpha to 0. - * - * @example - * // Transparent between colors gets RGB from both neighbors - * ['red', 'transparent', 'blue'] → ['rgba(255, 0, 0, 1)', 'rgba(255, 0, 0, 0)', 'rgba(0, 0, 255, 0)', 'rgba(0, 0, 255, 1)'] - * - * // Consecutive transparent values are consolidated if possible - * ['transparent', 'transparent', 'red'] → ['rgba(255, 0, 0, 0)', 'rgba(255, 0, 0, 1)'] - */ -function processColorRanges(inputRange, outputRange) { - 'worklet'; - - const processedInputRange = []; - const processedOutputRange = []; - let isPrevTransparent = false; - for (let i = 0; i < inputRange.length; i++) { - const color = outputRange[i]; - const processedColor = processColor(color); - const isTransparent = color === 'transparent'; - if (typeof processedColor === 'number') { - if (isPrevTransparent) { - // Ensure that we animate from the correct RGB values (the same as in the - // current color) with alpha 0 when animating from transparent to a color. - processedInputRange.push(inputRange[i - 1]); - processedOutputRange.push(processedColor & TRANSPARENCY_MASK); - } - // Add current color to the output range - processedInputRange.push(inputRange[i]); - processedOutputRange.push(processedColor); - } else if (!isPrevTransparent) { - // If the transparent color is encountered after the non-transparent color, - // then we add the last processed color with alpha 0 to the output range. - if (isTransparent && i > 0) { - const lastProcessedColor = processedOutputRange[processedOutputRange.length - 1]; - processedInputRange.push(inputRange[i]); - processedOutputRange.push(lastProcessedColor & TRANSPARENCY_MASK); - } - } else if (i === inputRange.length - 1 && !processedOutputRange.length) { - // If the end of the input range is reached, the previous color was transparent - // and the output range is empty, that means all colors were transparent, - // so we can add just 2 transparent colors to the output range. - const lastindex = inputRange.length - 1; - processedInputRange.push(inputRange[0], inputRange[lastindex]); - processedOutputRange.push(0, 0); - } - isPrevTransparent = isTransparent; - } - return [processedInputRange, processedOutputRange]; -} - -/** - * Lets you map a value from a range of numbers to a range of colors using - * linear interpolation. - * - * @param value - A number from the `input` range that is going to be mapped to - * the color in the `output` range. - * @param inputRange - An array of numbers specifying the input range of the - * interpolation. - * @param outputRange - An array of output colors values (eg. "red", "#00FFCC", - * "rgba(255, 0, 0, 0.5)"). - * @param colorSpace - The color space to use for interpolation. Defaults to - * 'RGB'. - * @param options - Additional options for interpolation - - * {@link InterpolationOptions}. - * @returns The color after interpolation from within the output range in - * rgba(r, g, b, a) format. - * @see https://docs.swmansion.com/react-native-reanimated/docs/utilities/interpolateColor - */ - -export function interpolateColor(value, inputRange, outputRange, colorSpace = 'RGB', options = {}) { - 'worklet'; - - const [processedInputRange, processedOutputRange] = processColorRanges(inputRange, outputRange); - if (colorSpace === 'HSV') { - return interpolateColorsHSV(value, processedInputRange, getInterpolateHSV(processedOutputRange), options); - } else if (colorSpace === 'RGB') { - return interpolateColorsRGB(value, processedInputRange, getInterpolateRGB(processedOutputRange), options); - } else if (colorSpace === 'LAB') { - return interpolateColorsLAB(value, processedInputRange, getInterpolateLAB(processedOutputRange), options); - } - throw new ReanimatedError(`Invalid color space provided: ${colorSpace}. Supported values are: ['RGB', 'HSV', 'LAB'].`); -} -export let ColorSpace = /*#__PURE__*/function (ColorSpace) { - ColorSpace[ColorSpace["RGB"] = 0] = "RGB"; - ColorSpace[ColorSpace["HSV"] = 1] = "HSV"; - ColorSpace[ColorSpace["LAB"] = 2] = "LAB"; - return ColorSpace; -}({}); -export function useInterpolateConfig(inputRange, outputRange, colorSpace = ColorSpace.RGB, options = {}) { - return useSharedValue({ - inputRange, - outputRange, - colorSpace, - cache: makeMutable(null), - options - }); -} -//# sourceMappingURL=interpolateColor.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolateColor.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolateColor.js.map deleted file mode 100644 index ccf5a809..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolateColor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["blue","green","hsvToColor","opacity","red","rgbaColor","RGBtoHSV","processColor","ReanimatedError","makeMutable","culori","useSharedValue","Extrapolation","interpolate","Extrapolate","interpolateColorsHSV","value","inputRange","colors","options","h","useCorrectedHSVInterpolation","correctedInputRange","originalH","correctedH","i","length","d","push","CLAMP","s","v","a","toLinearSpace","x","gamma","map","Math","pow","toGammaSpace","round","interpolateColorsRGB","r","outputR","g","outputG","b","outputB","interpolateColorsLAB","_options","l","alpha","_r","_g","_b","_alpha","oklab","convert","toRgb","_splitColorsIntoChannels","processedColors","convFromRgb","ch1","ch2","ch3","processedColor","convertedColor","getInterpolateRGB","color","getInterpolateHSV","hsvColor","getInterpolateLAB","labColor","fromRgb","TRANSPARENCY_MASK","processColorRanges","outputRange","processedInputRange","processedOutputRange","isPrevTransparent","isTransparent","lastProcessedColor","lastindex","interpolateColor","colorSpace","ColorSpace","useInterpolateConfig","RGB","cache"],"sourceRoot":"../../src","sources":["interpolateColor.ts"],"mappings":"AAAA,YAAY;;AACZ,SACEA,IAAI,EACJC,KAAK,EACLC,UAAU,EACVC,OAAO,EACPC,GAAG,EACHC,SAAS,EACTC,QAAQ,QACH,UAAU;AACjB,SAASC,YAAY,EAAEC,eAAe,QAAQ,UAAU;AAExD,SAASC,WAAW,QAAQ,QAAQ;AACpC,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,aAAa,EAAEC,WAAW,QAAQ,iBAAiB;;AAE5D;AACA,OAAO,MAAMC,WAAW,GAAGF,aAAa;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,MAAMG,oBAAoB,GAAGA,CAC3BC,KAAa,EACbC,UAA6B,EAC7BC,MAAsB,EACtBC,OAA6B,KAC1B;EACH,SAAS;;EACT,IAAIC,CAAC,GAAG,CAAC;EACT,MAAM;IAAEC,4BAA4B,GAAG;EAAK,CAAC,GAAGF,OAAO;EACvD,IAAIE,4BAA4B,EAAE;IAChC;IACA;IACA;IACA;IACA,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AC;AACJ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolation.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolation.js deleted file mode 100644 index 282c1987..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolation.js +++ /dev/null @@ -1,172 +0,0 @@ -'use strict'; - -import { ReanimatedError } from './common'; - -/** - * Extrapolation type. - * - * @param IDENTITY - Returns the provided value as is. - * @param CLAMP - Clamps the value to the edge of the output range. - * @param EXTEND - Predicts the values beyond the output range. - */ -export let Extrapolation = /*#__PURE__*/function (Extrapolation) { - Extrapolation["IDENTITY"] = "identity"; - Extrapolation["CLAMP"] = "clamp"; - Extrapolation["EXTEND"] = "extend"; - return Extrapolation; -}({}); - -/** Represents the possible values for extrapolation as a string. */ - -/** Allows to specify extrapolation for left and right edge of the interpolation. */ - -/** Configuration options for extrapolation. */ - -function getVal(type, coef, val, leftEdgeOutput, rightEdgeOutput, x) { - 'worklet'; - - switch (type) { - case Extrapolation.IDENTITY: - return x; - case Extrapolation.CLAMP: - if (coef * val < coef * leftEdgeOutput) { - return leftEdgeOutput; - } - return rightEdgeOutput; - case Extrapolation.EXTEND: - default: - return val; - } -} -function isExtrapolate(value) { - 'worklet'; - - return /* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */value === Extrapolation.EXTEND || value === Extrapolation.CLAMP || value === Extrapolation.IDENTITY - /* eslint-enable @typescript-eslint/no-unsafe-enum-comparison */; -} - -// validates extrapolations type -// if type is correct, converts it to ExtrapolationConfig -function validateType(type) { - 'worklet'; - - // initialize extrapolationConfig with default extrapolation - const extrapolationConfig = { - extrapolateLeft: Extrapolation.EXTEND, - extrapolateRight: Extrapolation.EXTEND - }; - if (!type) { - return extrapolationConfig; - } - if (typeof type === 'string') { - if (!isExtrapolate(type)) { - throw new ReanimatedError(`Unsupported value for "interpolate" \nSupported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]\n Valid example: - interpolate(value, [inputRange], [outputRange], "clamp")`); - } - extrapolationConfig.extrapolateLeft = type; - extrapolationConfig.extrapolateRight = type; - return extrapolationConfig; - } - - // otherwise type is extrapolation config object - if (type.extrapolateLeft && !isExtrapolate(type.extrapolateLeft) || type.extrapolateRight && !isExtrapolate(type.extrapolateRight)) { - throw new ReanimatedError(`Unsupported value for "interpolate" \nSupported values: ["extend", "clamp", "identity", Extrapolatation.CLAMP, Extrapolatation.EXTEND, Extrapolatation.IDENTITY]\n Valid example: - interpolate(value, [inputRange], [outputRange], { - extrapolateLeft: Extrapolation.CLAMP, - extrapolateRight: Extrapolation.IDENTITY - }})`); - } - Object.assign(extrapolationConfig, type); - return extrapolationConfig; -} -function internalInterpolate(x, narrowedInput, extrapolationConfig) { - 'worklet'; - - const { - leftEdgeInput, - rightEdgeInput, - leftEdgeOutput, - rightEdgeOutput - } = narrowedInput; - if (rightEdgeInput - leftEdgeInput === 0) { - return leftEdgeOutput; - } - const progress = (x - leftEdgeInput) / (rightEdgeInput - leftEdgeInput); - const val = leftEdgeOutput + progress * (rightEdgeOutput - leftEdgeOutput); - const coef = rightEdgeOutput >= leftEdgeOutput ? 1 : -1; - if (coef * val < coef * leftEdgeOutput) { - return getVal(extrapolationConfig.extrapolateLeft, coef, val, leftEdgeOutput, rightEdgeOutput, x); - } else if (coef * val > coef * rightEdgeOutput) { - return getVal(extrapolationConfig.extrapolateRight, coef, val, leftEdgeOutput, rightEdgeOutput, x); - } - return val; -} - -/** - * Lets you map a value from one range to another using linear interpolation. - * - * @param value - A number from the `input` range that is going to be mapped to - * the `output` range. - * @param inputRange - An array of numbers specifying the input range of the - * interpolation. - * @param outputRange - An array of numbers specifying the output range of the - * interpolation. - * @param extrapolate - Determines what happens when the `value` goes beyond the - * `input` range. Defaults to `Extrapolation.EXTEND` - - * {@link ExtrapolationType}. - * @returns A mapped value within the output range. - * @see https://docs.swmansion.com/react-native-reanimated/docs/utilities/interpolate - */ -export function interpolate(x, inputRange, outputRange, type) { - 'worklet'; - - if (inputRange.length < 2 || outputRange.length < 2) { - throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.'); - } - const extrapolationConfig = validateType(type); - const length = inputRange.length; - const narrowedInput = { - leftEdgeInput: inputRange[0], - rightEdgeInput: inputRange[1], - leftEdgeOutput: outputRange[0], - rightEdgeOutput: outputRange[1] - }; - if (length > 2) { - if (x > inputRange[length - 1]) { - narrowedInput.leftEdgeInput = inputRange[length - 2]; - narrowedInput.rightEdgeInput = inputRange[length - 1]; - narrowedInput.leftEdgeOutput = outputRange[length - 2]; - narrowedInput.rightEdgeOutput = outputRange[length - 1]; - } else { - for (let i = 1; i < length; ++i) { - if (x <= inputRange[i]) { - narrowedInput.leftEdgeInput = inputRange[i - 1]; - narrowedInput.rightEdgeInput = inputRange[i]; - narrowedInput.leftEdgeOutput = outputRange[i - 1]; - narrowedInput.rightEdgeOutput = outputRange[i]; - break; - } - } - } - } - return internalInterpolate(x, narrowedInput, extrapolationConfig); -} - -/** - * Lets you limit a value within a specified range. - * - * @param value - A number that will be returned as long as the provided value - * is in range between `min` and `max`. - * @param min - A number which will be returned when provided `value` is lower - * than `min`. - * @param max - A number which will be returned when provided `value` is higher - * than `max`. - * @returns A number between min and max bounds. - * @see https://docs.swmansion.com/react-native-reanimated/docs/utilities/clamp/ - */ -export function clamp(value, min, max) { - 'worklet'; - - return Math.min(Math.max(value, min), max); -} -//# sourceMappingURL=interpolation.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolation.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolation.js.map deleted file mode 100644 index e6236f6c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/interpolation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","Extrapolation","getVal","type","coef","val","leftEdgeOutput","rightEdgeOutput","x","IDENTITY","CLAMP","EXTEND","isExtrapolate","value","validateType","extrapolationConfig","extrapolateLeft","extrapolateRight","Object","assign","internalInterpolate","narrowedInput","leftEdgeInput","rightEdgeInput","progress","interpolate","inputRange","outputRange","length","i","clamp","min","max","Math"],"sourceRoot":"../../src","sources":["interpolation.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,eAAe,QAAQ,UAAU;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;;AAMzB;;AAUA;;AAWA;;AAOA,SAASC,MAAMA,CACbC,IAAmB,EACnBC,IAAY,EACZC,GAAW,EACXC,cAAsB,EACtBC,eAAuB,EACvBC,CAAS,EACD;EACR,SAAS;;EAET,QAAQL,IAAI;IACV,KAAKF,aAAa,CAACQ,QAAQ;MACzB,OAAOD,CAAC;IACV,KAAKP,aAAa,CAACS,KAAK;MACtB,IAAIN,IAAI,GAAGC,GAAG,GAAGD,IAAI,GAAGE,cAAc,EAAE;QACtC,OAAOA,cAAc;MACvB;MACA,OAAOC,eAAe;IACxB,KAAKN,aAAa,CAACU,MAAM;IACzB;MACE,OAAON,GAAG;EACd;AACF;AAEA,SAASO,aAAaA,CAACC,KAAa,EAA0B;EAC5D,SAAS;;EAET,OACE,iEACAA,KAAK,KAAKZ,aAAa,CAACU,MAAM,IAC9BE,KAAK,KAAKZ,aAAa,CAACS,KAAK,IAC7BG,KAAK,KAAKZ,aAAa,CAACQ;EACxB;AAEJ;;AAEA;AACA;AACA,SAASK,YAAYA,CAACX,IAAuB,EAA+B;EAC1E,SAAS;;EACT;EACA,MAAMY,mBAAgD,GAAG;IACvDC,eAAe,EAAEf,aAAa,CAACU,MAAM;IACrCM,gBAAgB,EAAEhB,aAAa,CAACU;EAClC,CAAC;EAED,IAAI,CAACR,IAAI,EAAE;IACT,OAAOY,mBAAmB;EAC5B;EAEA,IAAI,OAAOZ,IAAI,KAAK,QAAQ,EAAE;IAC5B,IAAI,CAACS,aA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AAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,MAAM,EAAE,EAAEC,CAAC,EAAE;QAC/B,IAAIrB,CAAC,IAAIkB,UAAU,CAACG,CAAC,CAAC,EAAE;UACtBR,aAAa,CAACC,aAAa,GAAGI,UAAU,CAACG,CAAC,GAAG,CAAC,CAAC;UAC/CR,aAAa,CAACE,cAAc,GAAGG,UAAU,CAACG,CAAC,CAAC;UAC5CR,aAAa,CAACf,cAAc,GAAGqB,WAAW,CAACE,CAAC,GAAG,CAAC,CAAC;UACjDR,aAAa,CAACd,eAAe,GAAGoB,WAAW,CAACE,CAAC,CAAC;UAC9C;QACF;MACF;IACF;EACF;EAEA,OAAOT,mBAAmB,CAACZ,CAAC,EAAEa,aAAa,EAAEN,mBAAmB,CAAC;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASe,KAAKA,CAACjB,KAAa,EAAEkB,GAAW,EAAEC,GAAW,EAAE;EAC7D,SAAS;;EACT,OAAOC,IAAI,CAACF,GAAG,CAACE,IAAI,CAACD,GAAG,CAACnB,KAAK,EAAEkB,GAAG,CAAC,EAAEC,GAAG,CAAC;AAC5C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/isSharedValue.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/isSharedValue.js deleted file mode 100644 index c648af99..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/isSharedValue.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export function isSharedValue(value) { - 'worklet'; - - // We cannot use `in` operator here because `value` could be a HostObject and therefore we cast. - return value?._isReanimatedSharedValue === true; -} -//# sourceMappingURL=isSharedValue.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/isSharedValue.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/isSharedValue.js.map deleted file mode 100644 index 7d67454a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/isSharedValue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["isSharedValue","value","_isReanimatedSharedValue"],"sourceRoot":"../../src","sources":["isSharedValue.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,aAAaA,CAC3BC,KAAc,EACW;EACzB,SAAS;;EACT;EACA,OAAQA,KAAK,EAA8BC,wBAAwB,KAAK,IAAI;AAC9E","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.js deleted file mode 100644 index ee43ea22..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.js +++ /dev/null @@ -1,223 +0,0 @@ -/* eslint-disable @typescript-eslint/no-namespace */ -'use strict'; - -import { IS_JEST, logger, ReanimatedError } from './common'; -const defaultFramerateConfig = { - fps: 60 -}; -const isEmpty = obj => !obj || Object.keys(obj).length === 0; -const getStylesFromObject = obj => { - return obj === undefined ? {} : Object.fromEntries(Object.entries(obj).map(([property, value]) => [property, value._isReanimatedSharedValue ? value.value : value])); -}; -const getCurrentProps = component => { - const propsObject = component.props.jestAnimatedProps?.value; - return propsObject ? { - ...propsObject - } : {}; -}; -const getCurrentStyle = component => { - const styleObject = component.props.style; - let currentStyle = {}; - if (Array.isArray(styleObject)) { - // It is possible that style may contain nested arrays. Currently, neither `StyleSheet.flatten` nor `flattenArray` solve this issue. - // Hence, we're not handling nested arrays at the moment - this is a known limitation of the current implementation. - styleObject.forEach(style => { - currentStyle = { - ...currentStyle, - ...style - }; - }); - } - const jestInlineStyles = component.props.jestInlineStyle; - const jestAnimatedStyleValue = component.props.jestAnimatedStyle?.value; - if (Array.isArray(jestInlineStyles)) { - for (const obj of jestInlineStyles) { - if ('jestAnimatedValues' in obj) { - continue; - } - const inlineStyles = getStylesFromObject(obj); - currentStyle = { - ...currentStyle, - ...inlineStyles - }; - } - currentStyle = { - ...currentStyle, - ...jestAnimatedStyleValue - }; - return currentStyle; - } - const inlineStyles = getStylesFromObject(jestInlineStyles); - currentStyle = isEmpty(jestAnimatedStyleValue) ? { - ...inlineStyles - } : { - ...jestAnimatedStyleValue - }; - return currentStyle; -}; -const checkEqual = (current, expected) => { - if (Array.isArray(expected)) { - if (!Array.isArray(current) || expected.length !== current.length) { - return false; - } - for (let i = 0; i < current.length; i++) { - if (!checkEqual(current[i], expected[i])) { - return false; - } - } - } else if (typeof current === 'object' && current) { - if (typeof expected !== 'object' || !expected) { - return false; - } - for (const property in expected) { - if (!checkEqual(current[property], expected[property])) { - return false; - } - } - } else { - return current === expected; - } - return true; -}; -const findStyleDiff = (current, expected, shouldMatchAllProps) => { - const diffs = []; - let isEqual = true; - let property; - for (property in expected) { - if (!checkEqual(current[property], expected[property])) { - isEqual = false; - diffs.push({ - property, - current: current[property], - expect: expected[property] - }); - } - } - if (shouldMatchAllProps && Object.keys(current).length !== Object.keys(expected).length) { - isEqual = false; - // eslint-disable-next-line @typescript-eslint/no-shadow - let property; - for (property in current) { - if (expected[property] === undefined) { - diffs.push({ - property, - current: current[property], - expect: expected[property] - }); - } - } - } - return { - isEqual, - diffs - }; -}; -const compareAndFormatDifferences = (currentValues, expectedValues, shouldMatchAllProps = false) => { - const { - isEqual, - diffs - } = findStyleDiff(currentValues, expectedValues, shouldMatchAllProps); - if (isEqual) { - return { - message: () => 'ok', - pass: true - }; - } - const currentValuesStr = JSON.stringify(currentValues); - const expectedValuesStr = JSON.stringify(expectedValues); - const differences = diffs.map(diff => `- '${diff.property}' should be ${JSON.stringify(diff.expect)}, but is ${JSON.stringify(diff.current)}`).join('\n'); - return { - message: () => `Expected: ${expectedValuesStr}\nReceived: ${currentValuesStr}\n\nDifferences:\n${differences}`, - pass: false - }; -}; -const compareProps = (component, expectedProps) => { - if (component.props.jestAnimatedProps && Object.keys(component.props.jestAnimatedProps.value).length === 0) { - return { - message: () => `Component doesn't have props.`, - pass: false - }; - } - const currentProps = getCurrentProps(component); - return compareAndFormatDifferences(currentProps, expectedProps); -}; -const compareStyle = (component, expectedStyle, config) => { - if (!component.props.style) { - return { - message: () => `Component doesn't have a style.`, - pass: false - }; - } - const { - shouldMatchAllProps - } = config; - const currentStyle = getCurrentStyle(component); - return compareAndFormatDifferences(currentStyle, expectedStyle, shouldMatchAllProps); -}; -let frameTime = Math.round(1000 / defaultFramerateConfig.fps); -const beforeTest = () => { - jest.useFakeTimers(); -}; -const afterTest = () => { - jest.runOnlyPendingTimers(); - jest.useRealTimers(); -}; -export const withReanimatedTimer = animationTest => { - logger.warn('This method is deprecated, you should define your own before and after test hooks to enable jest.useFakeTimers(). Check out the documentation for details on testing'); - beforeTest(); - animationTest(); - afterTest(); -}; -export const advanceAnimationByTime = (time = frameTime) => { - logger.warn('This method is deprecated, use jest.advanceTimersByTime directly'); - jest.advanceTimersByTime(time); - jest.runOnlyPendingTimers(); -}; -export const advanceAnimationByFrame = count => { - logger.warn('This method is deprecated, use jest.advanceTimersByTime directly'); - jest.advanceTimersByTime(count * frameTime); - jest.runOnlyPendingTimers(); -}; -const requireFunction = IS_JEST ? require : () => { - throw new ReanimatedError('`setUpTests` is available only in Jest environment.'); -}; -export const setUpTests = (userFramerateConfig = {}) => { - let expect = global.expect; - if (expect === undefined) { - const expectModule = requireFunction('expect'); - expect = expectModule; - // Starting from Jest 28, "expect" package uses named exports instead of default export. - // So, requiring "expect" package doesn't give direct access to "expect" function anymore. - // It gives access to the module object instead. - // We use this info to detect if the project uses Jest 28 or higher. - if (typeof expect === 'object') { - const jestGlobals = requireFunction('@jest/globals'); - expect = jestGlobals.expect; - } - if (expect === undefined || expect.extend === undefined) { - expect = expectModule.default; - } - } - const framerateConfig = { - ...defaultFramerateConfig, - ...userFramerateConfig - }; - frameTime = Math.round(1000 / framerateConfig.fps); - expect.extend({ - toHaveAnimatedProps(component, expectedProps) { - return compareProps(component, expectedProps); - } - }); - expect.extend({ - toHaveAnimatedStyle(component, expectedStyle, config = {}) { - return compareStyle(component, expectedStyle, config); - } - }); -}; -export const getAnimatedStyle = component => { - return getCurrentStyle( - // This type assertion is needed to get type checking in the following - // functions since `ReactTestInstance` has its `props` defined as `any`. - component); -}; -//# sourceMappingURL=jestUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.js.map deleted file mode 100644 index 442f566b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_JEST","logger","ReanimatedError","defaultFramerateConfig","fps","isEmpty","obj","Object","keys","length","getStylesFromObject","undefined","fromEntries","entries","map","property","value","_isReanimatedSharedValue","getCurrentProps","component","propsObject","props","jestAnimatedProps","getCurrentStyle","styleObject","style","currentStyle","Array","isArray","forEach","jestInlineStyles","jestInlineStyle","jestAnimatedStyleValue","jestAnimatedStyle","inlineStyles","checkEqual","current","expected","i","findStyleDiff","shouldMatchAllProps","diffs","isEqual","push","expect","compareAndFormatDifferences","currentValues","expectedValues","message","pass","currentValuesStr","JSON","stringify","expectedValuesStr","differences","diff","join","compareProps","expectedProps","currentProps","compareStyle","expectedStyle","config","frameTime","Math","round","beforeTest","jest","useFakeTimers","afterTest","runOnlyPendingTimers","useRealTimers","withReanimatedTimer","animationTest","warn","advanceAnimationByTime","time","advanceTimersByTime","advanceAnimationByFrame","count","requireFunction","require","setUpTests","userFramerateConfig","global","expectModule","jestGlobals","extend","default","framerateConfig","toHaveAnimatedProps","toHaveAnimatedStyle","getAnimatedStyle"],"sourceRoot":"../../src","sources":["jestUtils.ts"],"mappings":"AAAA;AACA,YAAY;;AAIZ,SAASA,OAAO,EAAEC,MAAM,EAAEC,eAAe,QAAQ,UAAU;AAuB3D,MAAMC,sBAAsB,GAAG;EAC7BC,GAAG,EAAE;AACP,CAAC;AAED,MAAMC,OAAO,GAAIC,GAAuB,IACtC,CAACA,GAAG,IAAIC,MAAM,CA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AOI,eAAe;EACpB;EACA;EACAJ,SACF,CAAC;AACH,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.web.js deleted file mode 100644 index 690f417d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.web.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -/* - * Stubbed for web, where we don't use this file; - */ -export function withReanimatedTimer() { - // NOOP -} -export function advanceAnimationByTime() { - // NOOP -} -export function advanceAnimationByFrame() { - // NOOP -} -export function setUpTests() { - // NOOP -} -export function getAnimatedStyle() { - // NOOP -} -//# sourceMappingURL=jestUtils.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.web.js.map deleted file mode 100644 index 9f5596e7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/jestUtils.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withReanimatedTimer","advanceAnimationByTime","advanceAnimationByFrame","setUpTests","getAnimatedStyle"],"sourceRoot":"../../src","sources":["jestUtils.web.ts"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACA;AAEA,OAAO,SAASA,mBAAmBA,CAAA,EAAG;EACpC;AAAA;AAGF,OAAO,SAASC,sBAAsBA,CAAA,EAAG;EACvC;AAAA;AAGF,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC;AAAA;AAGF,OAAO,SAASC,UAAUA,CAAA,EAAG;EAC3B;AAAA;AAGF,OAAO,SAASC,gBAAgBA,CAAA,EAAG;EACjC;AAAA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js deleted file mode 100644 index a48ba8ce..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +++ /dev/null @@ -1,124 +0,0 @@ -'use strict'; - -import { withDelay } from '../../animation'; -import { getReduceMotionFromConfig } from '../../animation/util'; -import { ReanimatedError } from '../../common'; -import { ReduceMotion } from '../../commonTypes'; -export class BaseAnimationBuilder { - reduceMotionV = ReduceMotion.System; - randomizeDelay = false; - build = () => { - throw new ReanimatedError('Unimplemented method in child class.'); - }; - - /** - * Lets you adjust the animation duration. Can be chained alongside other - * [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param durationMs - Length of the animation (in milliseconds). - */ - static duration(durationMs) { - const instance = this.createInstance(); - return instance.duration(durationMs); - } - duration(durationMs) { - this.durationV = durationMs; - return this; - } - - /** - * Lets you adjust the delay before the animation starts (in milliseconds). - * Can be chained alongside other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param delayMs - Delay before the animation starts (in milliseconds). - */ - static delay(delayMs) { - const instance = this.createInstance(); - return instance.delay(delayMs); - } - delay(delayMs) { - this.delayV = delayMs; - return this; - } - - /** - * The callback that will fire after the animation ends. Can be chained - * alongside other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param callback - Callback that will fire after the animation ends. - */ - static withCallback(callback) { - const instance = this.createInstance(); - return instance.withCallback(callback); - } - withCallback(callback) { - this.callbackV = callback; - return this; - } - - /** - * Lets you adjust the behavior when the device's reduced motion accessibility - * setting is turned on. Can be chained alongside other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - */ - static reduceMotion(reduceMotion) { - const instance = this.createInstance(); - return instance.reduceMotion(reduceMotion); - } - reduceMotion(reduceMotionV) { - this.reduceMotionV = reduceMotionV; - return this; - } - - // 300ms is the default animation duration. If any animation has different default has to override this method. - static getDuration() { - return 300; - } - getDuration() { - return this.durationV ?? 300; - } - - /** @deprecated Use `.delay()` with `Math.random()` instead */ - static randomDelay() { - const instance = this.createInstance(); - return instance.randomDelay(); - } - randomDelay() { - this.randomizeDelay = true; - return this; - } - - // when randomizeDelay is set to true, randomize delay between 0 and provided value (or 1000ms if delay is not provided) - getDelay() { - return this.randomizeDelay ? Math.random() * (this.delayV ?? 1000) : this.delayV ?? 0; - } - getReduceMotion() { - return this.reduceMotionV; - } - getDelayFunction() { - const isDelayProvided = this.randomizeDelay || this.delayV; - const reduceMotion = this.getReduceMotion(); - return isDelayProvided ? (delay, animation) => { - 'worklet'; - - return withDelay(delay, animation, reduceMotion); - } : (_, animation) => { - 'worklet'; - - animation.reduceMotion = getReduceMotionFromConfig(reduceMotion); - return animation; - }; - } - static build() { - const instance = this.createInstance(); - return instance.build(); - } -} -//# sourceMappingURL=BaseAnimationBuilder.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map deleted file mode 100644 index 2b30b61d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withDelay","getReduceMotionFromConfig","ReanimatedError","ReduceMotion","BaseAnimationBuilder","reduceMotionV","System","randomizeDelay","build","duration","durationMs","instance","createInstance","durationV","delay","delayMs","delayV","withCallback","callback","callbackV","reduceMotion","getDuration","randomDelay","getDelay","Math","random","getReduceMotion","getDelayFunction","isDelayProvided","animation","_"],"sourceRoot":"../../../../src","sources":["layoutReanimation/animationBuilder/BaseAnimationBuilder.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S,KAAK;MAChB,SAAS;;MACTA,SAAS,CAACT,YAAY,GAAGnB,yBAAyB,CAACmB,YAAY,CAAC;MAChE,OAAOS,SAAS;IAClB,CAAC;EACP;EAEA,OAAOrB,KAAKA,CAAA,EAE4C;IACtD,MAAMG,QAAQ,GAAG,IAAI,CAACC,cAAc,CAAC,CAAC;IACtC,OAAOD,QAAQ,CAACH,KAAK,CAAC,CAAC;EACzB;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js deleted file mode 100644 index 1b6316e3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +++ /dev/null @@ -1,258 +0,0 @@ -'use strict'; - -import { withSpring, withTiming } from '../../animation'; -import { assertEasingIsWorklet } from '../../animation/util'; -import { BaseAnimationBuilder } from './BaseAnimationBuilder'; -export class ComplexAnimationBuilder extends BaseAnimationBuilder { - /** - * Lets you change the easing curve of the animation. Can be chained alongside - * other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param easingFunction - An easing function which defines the animation - * curve. - */ - static easing(easingFunction) { - const instance = this.createInstance(); - return instance.easing(easingFunction); - } - easing(easingFunction) { - if (__DEV__) { - assertEasingIsWorklet(easingFunction); - } - this.easingV = easingFunction; - return this; - } - - /** - * Lets you rotate the element. Can be chained alongside other [layout - * animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param degree - The rotation degree. - */ - static rotate(degree) { - const instance = this.createInstance(); - return instance.rotate(degree); - } - rotate(degree) { - this.rotateV = degree; - return this; - } - - /** - * Enables the spring-based animation configuration. Can be chained alongside - * other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param duration - An optional duration of the spring animation (in - * milliseconds). - */ - static springify(duration) { - const instance = this.createInstance(); - return instance.springify(duration); - } - springify(duration) { - this.durationV = duration; - this.type = withSpring; - return this; - } - - /** - * Lets you adjust the spring animation damping ratio. Can be chained - * alongside other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param dampingRatio - How damped the spring is. - */ - static dampingRatio(dampingRatio) { - const instance = this.createInstance(); - return instance.dampingRatio(dampingRatio); - } - dampingRatio(value) { - this.dampingRatioV = value; - return this; - } - - /** - * Lets you adjust the spring animation damping. Can be chained alongside - * other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param value - Decides how quickly a spring stops moving. Higher damping - * means the spring will come to rest faster. - */ - static damping(damping) { - const instance = this.createInstance(); - return instance.damping(damping); - } - damping(damping) { - this.dampingV = damping; - return this; - } - - /** - * Lets you adjust the spring animation mass. Can be chained alongside other - * [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param mass - The weight of the spring. Reducing this value makes the - * animation faster. - */ - static mass(mass) { - const instance = this.createInstance(); - return instance.mass(mass); - } - mass(mass) { - this.massV = mass; - return this; - } - - /** - * Lets you adjust the stiffness of the spring animation. Can be chained - * alongside other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param stiffness - How bouncy the spring is. - */ - static stiffness(stiffness) { - const instance = this.createInstance(); - return instance.stiffness(stiffness); - } - stiffness(stiffness) { - this.stiffnessV = stiffness; - return this; - } - - /** - * Lets you adjust overshoot clamping of the spring. Can be chained alongside - * other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param overshootClamping - Whether a spring can bounce over the final - * position. - */ - static overshootClamping(overshootClamping) { - const instance = this.createInstance(); - return instance.overshootClamping(overshootClamping); - } - overshootClamping(overshootClamping) { - this.overshootClampingV = overshootClamping; - return this; - } - - /** - * @deprecated Use {@link energyThreshold} instead. This method currently does - * nothing and will be removed in the upcoming major version. - */ - static restDisplacementThreshold(_restDisplacementThreshold) { - return this.createInstance(); - } - - /** - * @deprecated Use {@link energyThreshold} instead. This method currently does - * nothing and will be removed in the upcoming major version. - */ - restDisplacementThreshold(_restDisplacementThreshold) { - return this; - } - - /** - * @deprecated Use {@link energyThreshold} instead. This method currently does - * nothing and will be removed in a future version. - */ - static restSpeedThreshold(_restSpeedThreshold) { - return this.createInstance(); - } - - /** - * @deprecated Use {@link energyThreshold} instead. This method currently does - * nothing and will be removed in a future version. - */ - restSpeedThreshold(_restSpeedThreshold) { - return this; - } - - /** - * Lets you adjust the energy threshold level to stop the spring animation. - * Can be chained alongside other [layout animation - * modifiers](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#layout-animation-modifier). - * - * @param energyThreshold - Relative energy threshold below which the spring - * will snap to `toValue` without further oscillations. Defaults to 6e-9. - */ - static energyThreshold(energyThreshold) { - const instance = this.createInstance(); - return instance.energyThreshold(energyThreshold); - } - energyThreshold(energyThreshold) { - this.energyThresholdV = energyThreshold; - return this; - } - - /** - * Lets you override the initial config of the animation - * - * @param values - An object containing the styles to override. - */ - static withInitialValues(values) { - const instance = this.createInstance(); - return instance.withInitialValues(values); - } - withInitialValues(values) { - this.initialValues = values; - return this; - } - getAnimationAndConfig() { - const duration = this.durationV; - const easing = this.easingV; - const rotate = this.rotateV; - const type = this.type ? this.type : withTiming; - const damping = this.dampingV; - const dampingRatio = this.dampingRatioV; - const mass = this.massV; - const stiffness = this.stiffnessV; - const overshootClamping = this.overshootClampingV; - const energyThreshold = this.energyThresholdV; - const animation = type; - const config = {}; - function maybeSetConfigValue(value, variableName) { - if (value) { - config[variableName] = value; - } - } - if (type === withTiming) { - maybeSetConfigValue(easing, 'easing'); - } - [{ - variableName: 'damping', - value: damping - }, { - variableName: 'dampingRatio', - value: dampingRatio - }, { - variableName: 'mass', - value: mass - }, { - variableName: 'stiffness', - value: stiffness - }, { - variableName: 'overshootClamping', - value: overshootClamping - }, { - variableName: 'energyThreshold', - value: energyThreshold - }, { - variableName: 'duration', - value: duration - }, { - variableName: 'rotate', - value: rotate - }].forEach(({ - value, - variableName - }) => maybeSetConfigValue(value, variableName)); - return [animation, config]; - } -} -//# sourceMappingURL=ComplexAnimationBuilder.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map deleted file mode 100644 index f6113744..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withSpring","withTiming","assertEasingIsWorklet","BaseAnimationBuilder","ComplexAnimationBuilder","easing","easingFunction","instance","createInstance","__DEV__","easingV","rotate","degree","rotateV","springify","duration","durationV","type","dampingRatio","value","dampingRatioV","damping","dampingV","mass","massV","stiffness","stiffnessV","overshootClamping","overshootClampingV","restDisplacementThreshold","_restDisplacementThreshold","restSpeedThreshold","_restSpeedThreshold","energyThreshold","energyThresholdV","withInitialValues","values","initialValues","getAnimationAndConfig","animation","config","maybeSetConfigValue","variableName","forEach"],"sourceRoot":"../../../../src","sources":["layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,UAAU,EAAEC,UAAU,QAAQ,iBAAiB;AACxD,SAASC,qBAAqB,QAAQ,sBAAsB;AAS5D,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,OAAO,MAAMC,uBAAuB,SAASD,oBAAoB,CAAC;EAgBhE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,OAAOE,MAAMA,CAEXC,c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-reanimated/lib/module/layoutReanimation/animationBuilder/Keyframe.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/Keyframe.js deleted file mode 100644 index b048a83c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/Keyframe.js +++ /dev/null @@ -1,231 +0,0 @@ -'use strict'; - -import { withDelay, withSequence, withTiming } from '../../animation'; -import { assertEasingIsWorklet, getReduceMotionFromConfig } from '../../animation/util'; -import { ReanimatedError } from '../../common'; -import { ReduceMotion } from '../../commonTypes'; -import { Easing } from '../../Easing'; -class InnerKeyframe { - reduceMotionV = ReduceMotion.System; - /* - Keyframe definition should be passed in the constructor as the map - which keys are between range 0 - 100 (%) and correspond to the point in the animation progress. - */ - constructor(definitions) { - this.definitions = definitions; - } - parseDefinitions() { - /* - Each style property contain an array with all their key points: - value, duration of transition to that value, and optional easing function (defaults to Linear) - */ - const parsedKeyframes = {}; - /* - Parsing keyframes 'from' and 'to'. - */ - if (this.definitions.from) { - if (this.definitions['0']) { - throw new ReanimatedError("You cannot provide both keyframe 0 and 'from' as they both specified initial values."); - } - this.definitions['0'] = this.definitions.from; - delete this.definitions.from; - } - if (this.definitions.to) { - if (this.definitions['100']) { - throw new ReanimatedError("You cannot provide both keyframe 100 and 'to' as they both specified values at the end of the animation."); - } - this.definitions['100'] = this.definitions.to; - delete this.definitions.to; - } - /* - One of the assumptions is that keyframe 0 is required to properly set initial values. - Every other keyframe should contain properties from the set provided as initial values. - */ - if (!this.definitions['0']) { - throw new ReanimatedError("Please provide 0 or 'from' keyframe with initial state of your object."); - } - const initialValues = this.definitions['0']; - /* - Initialize parsedKeyframes for properties provided in initial keyframe - */ - Object.keys(initialValues).forEach(styleProp => { - if (styleProp === 'transform') { - if (!Array.isArray(initialValues.transform)) { - return; - } - initialValues.transform.forEach((transformStyle, index) => { - Object.keys(transformStyle).forEach(transformProp => { - parsedKeyframes[makeKeyframeKey(index, transformProp)] = []; - }); - }); - } else { - parsedKeyframes[styleProp] = []; - } - }); - const duration = this.durationV ? this.durationV : 500; - const animationKeyPoints = Array.from(Object.keys(this.definitions)).map(Number); - const getAnimationDuration = (key, currentKeyPoint) => { - const maxDuration = currentKeyPoint / 100 * duration; - const currentDuration = parsedKeyframes[key].reduce((acc, value) => acc + value.duration, 0); - return maxDuration - currentDuration; - }; - - /* - Other keyframes can't contain properties that were not specified in initial keyframe. - */ - const addKeyPoint = ({ - key, - value, - currentKeyPoint, - easing - }) => { - if (!(key in parsedKeyframes)) { - throw new ReanimatedError("Keyframe can contain only that set of properties that were provide with initial values (keyframe 0 or 'from')"); - } - if (__DEV__ && easing) { - assertEasingIsWorklet(easing); - } - parsedKeyframes[key].push({ - duration: getAnimationDuration(key, currentKeyPoint), - value, - easing - }); - }; - animationKeyPoints.filter(value => value !== 0).sort((a, b) => a - b).forEach(keyPoint => { - if (keyPoint < 0 || keyPoint > 100) { - throw new ReanimatedError('Keyframe should be in between range 0 - 100.'); - } - const keyframe = this.definitions[keyPoint]; - const easing = keyframe.easing; - delete keyframe.easing; - const addKeyPointWith = (key, value) => addKeyPoint({ - key, - value, - currentKeyPoint: keyPoint, - easing - }); - Object.keys(keyframe).forEach(key => { - if (key === 'transform') { - if (!Array.isArray(keyframe.transform)) { - return; - } - keyframe.transform.forEach((transformStyle, index) => { - Object.keys(transformStyle).forEach(transformProp => { - addKeyPointWith(makeKeyframeKey(index, transformProp), transformStyle[transformProp] // Here we assume that user has passed props of proper type. - // I don't think it's worthwhile to check if he passed i.e. `Animated.Node`. - ); - }); - }); - } else { - addKeyPointWith(key, keyframe[key]); - } - }); - }); - return { - initialValues, - keyframes: parsedKeyframes - }; - } - duration(durationMs) { - this.durationV = durationMs; - return this; - } - delay(delayMs) { - this.delayV = delayMs; - return this; - } - withCallback(callback) { - this.callbackV = callback; - return this; - } - reduceMotion(reduceMotionV) { - this.reduceMotionV = reduceMotionV; - return this; - } - getDelayFunction() { - const delay = this.delayV; - const reduceMotion = this.reduceMotionV; - return delay ? - // eslint-disable-next-line @typescript-eslint/no-shadow - (delay, animation) => { - 'worklet'; - - return withDelay(delay, animation, reduceMotion); - } : (_, animation) => { - 'worklet'; - - animation.reduceMotion = getReduceMotionFromConfig(reduceMotion); - return animation; - }; - } - build = () => { - const delay = this.delayV; - const delayFunction = this.getDelayFunction(); - const { - keyframes, - initialValues - } = this.parseDefinitions(); - const callback = this.callbackV; - if (this.parsedAnimation) { - return this.parsedAnimation; - } - this.parsedAnimation = () => { - 'worklet'; - - const animations = {}; - - /* - For each style property, an animations sequence is created that corresponds with its key points. - Transform style properties require special handling because of their nested structure. - */ - const addAnimation = key => { - const keyframePoints = keyframes[key]; - // in case if property was only passed as initial value - if (keyframePoints.length === 0) { - return; - } - const animation = delayFunction(delay, keyframePoints.length === 1 ? withTiming(keyframePoints[0].value, { - duration: keyframePoints[0].duration, - easing: keyframePoints[0].easing ? keyframePoints[0].easing : Easing.linear - }) : withSequence(...keyframePoints.map(keyframePoint => withTiming(keyframePoint.value, { - duration: keyframePoint.duration, - easing: keyframePoint.easing ? keyframePoint.easing : Easing.linear - })))); - if (key.includes('transform')) { - if (!('transform' in animations)) { - animations.transform = []; - } - animations.transform.push({ - [key.split(':')[1]]: animation - }); - } else { - animations[key] = animation; - } - }; - Object.keys(initialValues).forEach(key => { - if (key.includes('transform')) { - initialValues[key].forEach((transformProp, index) => { - Object.keys(transformProp).forEach(transformPropKey => { - addAnimation(makeKeyframeKey(index, transformPropKey)); - }); - }); - } else { - addAnimation(key); - } - }); - return { - animations, - initialValues, - callback - }; - }; - return this.parsedAnimation; - }; -} -function makeKeyframeKey(index, transformProp) { - 'worklet'; - - return `${index}_transform:${transformProp}`; -} -export const Keyframe = InnerKeyframe; -//# sourceMappingURL=Keyframe.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/Keyframe.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/Keyframe.js.map deleted file mode 100644 index 5b812751..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/Keyframe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withDelay","withSequence","withTiming","assertEasingIsWorklet","getReduceMotionFromConfig","ReanimatedError","ReduceMotion","Easing","InnerKeyframe","reduceMotionV","System","constructor","definitions","parseDefinitions","parsedKeyframes","from","to","initialValues","Object","keys","forEach","styleProp","Array","isArray","transform","transformStyle","index","transformProp","makeKeyframeKey","duration","durationV","animationKeyPoints","map","Number","getAnimationDuration","key","currentKeyPoint","maxDuration","currentDuration","reduce","acc","value","addKeyPoint","easing","__DEV__","push","filter","sort","a","b","keyPoint","keyframe","addKeyPointWith","keyframes","durationMs","delay","delayMs","delayV","withCallback","callback","callbackV","reduceMotion","getDelayFunction","animation","_","build","delayFunction","parsedAnimation","animations","addAnimation","keyframePoints","length","linear","keyframePoint","includes","split","transformPropKey","Keyframe"],"sourceRoot":"../../../../src","sources":["layoutReanimation/animationBuilder/Keyframe.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AACrE,SACEC,qBAAqB,EACrBC,yBAAyB,QACpB,sBAAsB;AAC7B,SAASC,eAAe,QAAQ,cAAc;AAa9C,SAASC,YAAY,QAAQ,mBAAmB;AAEhD,SAASC,MAAM,QAAQ,cAAc;AAYrC,MAAMC,aAAa,CAAuC;EAGxDC,aAAa,GAAiBH,YAAY,CAACI,MAAM;EAKjD;AACF;AACA;AACA;EACEC,WAAWA,CAACC,WAA+B,EAAE;IAC3C,IAAI,CAACA,WAAW,GAAGA,WAAwC;EAC7D;EAEQC,gBAAgBA,CAAA,EAA8B;IACpD;AACJ;AACA;AACA;IACI,MAAMC,eAAgD,GAAG,CAAC,CAAC;IAC3D;AACJ;AACA;IACI,IAAI,IAAI,CAACF,WAAW,CAACG,IAAI,EAAE;MACzB,IAAI,IAAI,CAAC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xB,CAACO,aAA8C,EAAED,KAAa,KAAK;YACjER,MAAM,CAACC,IAAI,CAACQ,aAAa,CAAC,CAACP,OAAO,CAAEwD,gBAAwB,IAAK;cAC/DP,YAAY,CAACzC,eAAe,CAACF,KAAK,EAAEkD,gBAAgB,CAAC,CAAC;YACxD,CAAC,CAAC;UACJ,CACF,CAAC;QACH,CAAC,MAAM;UACLP,YAAY,CAAClC,GAAG,CAAC;QACnB;MACF,CAAC,CAAC;MACF,OAAO;QACLiC,UAAU;QACVnD,aAAa;QACb0C;MACF,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAACQ,eAAe;EAC7B,CAAC;AACH;AAEA,SAASvC,eAAeA,CAACF,KAAa,EAAEC,aAAqB,EAAE;EAC7D,SAAS;;EACT,OAAO,GAAGD,KAAK,cAAcC,aAAa,EAAE;AAC9C;AAUA,OAAO,MAAMkD,QAAQ,GAAGrE,aAA0C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/index.js deleted file mode 100644 index 14dd71fc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export { BaseAnimationBuilder } from './BaseAnimationBuilder'; -export { ComplexAnimationBuilder } from './ComplexAnimationBuilder'; -export { Keyframe } from './Keyframe'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/index.js.map deleted file mode 100644 index 2518f3cf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationBuilder/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["BaseAnimationBuilder","ComplexAnimationBuilder","Keyframe"],"sourceRoot":"../../../../src","sources":["layoutReanimation/animationBuilder/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,QAAQ,QAAiC,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationsManager.js deleted file mode 100644 index 3f11d421..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationsManager.js +++ /dev/null @@ -1,88 +0,0 @@ -'use strict'; - -import { executeOnUIRuntimeSync } from 'react-native-worklets'; -import { withStyleAnimation } from '../animation'; -import { SHOULD_BE_USE_WEB } from '../common'; -import { LayoutAnimationType } from '../commonTypes'; -import { legacy_makeMutableUI as makeMutableUI } from '../mutables'; -const TAG_OFFSET = 1e9; -function startObservingProgress(tag, sharedValue) { - 'worklet'; - - sharedValue.addListener(tag + TAG_OFFSET, () => { - global._notifyAboutProgress(tag, sharedValue.value); - }); -} -function stopObservingProgress(tag, sharedValue, removeView = false) { - 'worklet'; - - sharedValue.removeListener(tag + TAG_OFFSET); - global._notifyAboutEnd(tag, removeView); -} -function createLayoutAnimationManager() { - 'worklet'; - - const currentAnimationForTag = new Map(); - const mutableValuesForTag = new Map(); - return { - start(tag, type, - /** - * CreateLayoutAnimationManager creates an animation manager for Layout - * animations. - */ - yogaValues, config) { - const style = config(yogaValues); - let currentAnimation = style.animations; - - // When layout animation is requested, but a previous one is still running, we merge - // new layout animation targets into the ongoing animation - const previousAnimation = currentAnimationForTag.get(tag); - if (previousAnimation) { - currentAnimation = { - ...previousAnimation, - ...style.animations - }; - } - currentAnimationForTag.set(tag, currentAnimation); - let value = mutableValuesForTag.get(tag); - if (value === undefined) { - value = makeMutableUI(style.initialValues); - mutableValuesForTag.set(tag, value); - } else { - stopObservingProgress(tag, value); - value._value = style.initialValues; - } - - // @ts-ignore The line below started failing because I added types to the method – don't have time to fix it right now - const animation = withStyleAnimation(currentAnimation); - animation.callback = finished => { - if (finished) { - currentAnimationForTag.delete(tag); - mutableValuesForTag.delete(tag); - const shouldRemoveView = type === LayoutAnimationType.EXITING; - stopObservingProgress(tag, value, shouldRemoveView); - } - if (style.callback) { - style.callback(finished === undefined ? false : finished); - } - }; - startObservingProgress(tag, value); - value.value = animation; - }, - stop(tag) { - const value = mutableValuesForTag.get(tag); - if (!value) { - return; - } - stopObservingProgress(tag, value); - } - }; -} -if (!SHOULD_BE_USE_WEB) { - executeOnUIRuntimeSync(() => { - 'worklet'; - - global.LayoutAnimationsManager = createLayoutAnimationManager(); - })(); -} -//# sourceMappingURL=animationsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationsManager.js.map deleted file mode 100644 index 610494d7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/animationsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["executeOnUIRuntimeSync","withStyleAnimation","SHOULD_BE_USE_WEB","LayoutAnimationType","legacy_makeMutableUI","makeMutableUI","TAG_OFFSET","startObservingProgress","tag","sharedValue","addListener","global","_notifyAboutProgress","value","stopObservingProgress","removeView","removeListener","_notifyAboutEnd","createLayoutAnimationManager","currentAnimationForTag","Map","mutableValuesForTag","start","type","yogaValues","config","style","currentAnimation","animations","previousAnimation","get","set","undefined","initialValues","_value","animation","callback","finished","delete","shouldRemoveView","EXITING","stop","LayoutAnimationsManager"],"sourceRoot":"../../../src","sources":["layoutReanimation/animationsManager.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,sBAAsB,QAAQ,uBAAuB;AAE9D,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,iBAAiB,QAAQ,WAAW;AAO7C,SAASC,mBAAmB,QAAQ,gBAAgB;A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CAAC;AACN","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Bounce.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Bounce.js deleted file mode 100644 index 8668c4bf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Bounce.js +++ /dev/null @@ -1,555 +0,0 @@ -'use strict'; - -import { withSequence, withTiming } from '../../animation'; -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Bounce entering animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceIn extends ComplexAnimationBuilder { - static presetName = 'BounceIn'; - static createInstance() { - return new BounceIn(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scale: delayFunction(delay, withSequence(withTiming(1.2, { - duration: duration * 0.55 - }), withTiming(0.9, { - duration: duration * 0.15 - }), withTiming(1.1, { - duration: duration * 0.15 - }), withTiming(1, { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - transform: [{ - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce from bottom animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceInDown extends ComplexAnimationBuilder { - static presetName = 'BounceInDown'; - static createInstance() { - return new BounceInDown(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, withSequence(withTiming(-20, { - duration: duration * 0.55 - }), withTiming(10, { - duration: duration * 0.15 - }), withTiming(-10, { - duration: duration * 0.15 - }), withTiming(0, { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - transform: [{ - translateY: values.windowHeight - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce from top animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceInUp extends ComplexAnimationBuilder { - static presetName = 'BounceInUp'; - static createInstance() { - return new BounceInUp(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, withSequence(withTiming(20, { - duration: duration * 0.55 - }), withTiming(-10, { - duration: duration * 0.15 - }), withTiming(10, { - duration: duration * 0.15 - }), withTiming(0, { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - transform: [{ - translateY: -values.windowHeight - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce from left animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceInLeft extends ComplexAnimationBuilder { - static presetName = 'BounceInLeft'; - static createInstance() { - return new BounceInLeft(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, withSequence(withTiming(20, { - duration: duration * 0.55 - }), withTiming(-10, { - duration: duration * 0.15 - }), withTiming(10, { - duration: duration * 0.15 - }), withTiming(0, { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - transform: [{ - translateX: -values.windowWidth - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce from right animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceInRight extends ComplexAnimationBuilder { - static presetName = 'BounceInRight'; - static createInstance() { - return new BounceInRight(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, withSequence(withTiming(-20, { - duration: duration * 0.55 - }), withTiming(10, { - duration: duration * 0.15 - }), withTiming(-10, { - duration: duration * 0.15 - }), withTiming(0, { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - transform: [{ - translateX: values.windowWidth - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce exiting animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceOut extends ComplexAnimationBuilder { - static presetName = 'BounceOut'; - static createInstance() { - return new BounceOut(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scale: delayFunction(delay, withSequence(withTiming(1.1, { - duration: duration * 0.15 - }), withTiming(0.9, { - duration: duration * 0.15 - }), withTiming(1.2, { - duration: duration * 0.15 - }), withTiming(0, { - duration: duration * 0.55 - }))) - }] - }, - initialValues: { - transform: [{ - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce to bottom animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceOutDown extends ComplexAnimationBuilder { - static presetName = 'BounceOutDown'; - static createInstance() { - return new BounceOutDown(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, withSequence(withTiming(-10, { - duration: duration * 0.15 - }), withTiming(10, { - duration: duration * 0.15 - }), withTiming(-20, { - duration: duration * 0.15 - }), withTiming(values.windowHeight, { - duration: duration * 0.55 - }))) - }] - }, - initialValues: { - transform: [{ - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce to top animation. You can modify the behavior by chaining methods like - * `.delay(300)` or `.duration(100)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceOutUp extends ComplexAnimationBuilder { - static presetName = 'BounceOutUp'; - static createInstance() { - return new BounceOutUp(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, withSequence(withTiming(10, { - duration: duration * 0.15 - }), withTiming(-10, { - duration: duration * 0.15 - }), withTiming(20, { - duration: duration * 0.15 - }), withTiming(-values.windowHeight, { - duration: duration * 0.55 - }))) - }] - }, - initialValues: { - transform: [{ - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce to left animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceOutLeft extends ComplexAnimationBuilder { - static presetName = 'BounceOutLeft'; - static createInstance() { - return new BounceOutLeft(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, withSequence(withTiming(10, { - duration: duration * 0.15 - }), withTiming(-10, { - duration: duration * 0.15 - }), withTiming(20, { - duration: duration * 0.15 - }), withTiming(-values.windowWidth, { - duration: duration * 0.55 - }))) - }] - }, - initialValues: { - transform: [{ - translateX: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Bounce to right animation. You can modify the behavior by chaining methods - * like `.delay(300)` or `.duration(100)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#bounce - */ -export class BounceOutRight extends ComplexAnimationBuilder { - static presetName = 'BounceOutRight'; - static createInstance() { - return new BounceOutRight(); - } - static getDuration() { - return 600; - } - getDuration() { - return this.durationV ?? 600; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, withSequence(withTiming(-10, { - duration: duration * 0.15 - }), withTiming(10, { - duration: duration * 0.15 - }), withTiming(-20, { - duration: duration * 0.15 - }), withTiming(values.windowWidth, { - duration: duration * 0.55 - }))) - }] - }, - initialValues: { - transform: [{ - translateX: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Bounce.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Bounce.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Bounce.js.map deleted file mode 100644 index 529441a5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Bounce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withSequence","withTiming","ComplexAnimationBuilder","BounceIn","presetName","createInstance","getDuration","durationV","build","delayFunction","getDelayFunction","delay","getDelay","duration","callback","callbackV","initialValues","animations","transform","scale","BounceInDown","values","translateY","windowHeight","BounceInUp","BounceInLeft","translateX","windowWidth","BounceInRight","BounceOut","Bounce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,OAAO,IAAI,CAACC,SAAS,IAAI,GAAG;EAC9B;EAEAC,KAAK,GAAGA,CAAA,KAAkC;IACxC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACP,WAAW,CAAC,CAAC;IACnC,MAAMQ,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAQK,MAAiC,IAAK;MAC5C,SAAS;;MACT,OAAO;QACLJ,UAAU,EAAE;UACVC,SAAS,EAAE,CACT;YACEQ,UAAU,EAAEjB,aAAa,CACvBE,KAAK,EACLX,YAAY,CACVC,UAAU,CAAC,CAAC,EAAE,EAAE;cAAEY,QAAQ,EAAEA,QAAQ,GAAG;YAAK,CAAC,CAAC,EAC9CZ,UAAU,CAAC,EAAE,EAAE;cAAEY,QAAQ,EAAEA,QAAQ,GAAG;YAAK,CAAC,CAAC,EAC7CZ,UAAU,CAAC,CAAC,EAAE,EAAE;cAAEY,QAAQ,EAAEA,QAAQ,GAAG;YAAK,CAAC,CAAC,EAC9CZ,UAAU,CAACoB,MAAM,CAACM,WAAW,EAAE;cAC7Bd,QAAQ,EAAEA,QAAQ,GAAG;YACvB,CAAC,CACH,CACF;UACF,CAAC;QAEL,CAAC;QACDG,aAAa,EAAE;UACbE,SAAS,EAAE,CAAC;YAAEQ,UAAU,EAAE;UAAE,CAAC,CAAC;UAC9B,GAAGV;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Fade.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Fade.js deleted file mode 100644 index 9bfe6320..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Fade.js +++ /dev/null @@ -1,421 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Fade in animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeIn extends ComplexAnimationBuilder { - static presetName = 'FadeIn'; - static createInstance() { - return new FadeIn(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)) - }, - initialValues: { - opacity: 0, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade from right animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeInRight extends ComplexAnimationBuilder { - static presetName = 'FadeInRight'; - static createInstance() { - return new FadeInRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - translateX: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - translateX: 25 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade from left animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeInLeft extends ComplexAnimationBuilder { - static presetName = 'FadeInLeft'; - static createInstance() { - return new FadeInLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - translateX: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - translateX: -25 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade from top animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeInUp extends ComplexAnimationBuilder { - static presetName = 'FadeInUp'; - static createInstance() { - return new FadeInUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - translateY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - translateY: -25 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade from bottom animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeInDown extends ComplexAnimationBuilder { - static presetName = 'FadeInDown'; - static createInstance() { - return new FadeInDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - translateY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - translateY: 25 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade out animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeOut extends ComplexAnimationBuilder { - static presetName = 'FadeOut'; - static createInstance() { - return new FadeOut(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)) - }, - initialValues: { - opacity: 1, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade to right animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeOutRight extends ComplexAnimationBuilder { - static presetName = 'FadeOutRight'; - static createInstance() { - return new FadeOutRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - translateX: delayFunction(delay, animation(25, config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - translateX: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade to left animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeOutLeft extends ComplexAnimationBuilder { - static presetName = 'FadeOutLeft'; - static createInstance() { - return new FadeOutLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - translateX: delayFunction(delay, animation(-25, config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - translateX: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} -/** - * Fade to top animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeOutUp extends ComplexAnimationBuilder { - static presetName = 'FadeOutUp'; - static createInstance() { - return new FadeOutUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - translateY: delayFunction(delay, animation(-25, config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Fade to bottom animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade - */ -export class FadeOutDown extends ComplexAnimationBuilder { - static presetName = 'FadeOutDown'; - static createInstance() { - return new FadeOutDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const initialValues = this.initialValues; - const delay = this.getDelay(); - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - translateY: delayFunction(delay, animation(25, config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Fade.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Fade.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Fade.js.map deleted file mode 100644 index abe27196..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Fade.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","FadeIn","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","callback","callbackV","initialValues","delay","getDelay","animations","opacity","FadeInRight","transform","translateX","FadeInLeft","FadeInUp","translateY","FadeInDown","FadeOut","FadeOutRight","FadeOutLeft","FadeOutUp","FadeOutDown"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Fade.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,SACTD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,QAAQ;EAC5B,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,MAAM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AAC,CAAC;IACxD,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IACxC,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAE7B,OAAO,MAAM;MACX,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,OAAO,EAAEX,aAAa,CAACQ,KAAK,EAAEN,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC,CAAC;UACnDU,SAAS,EAAE,CACT;YAAEI,UAAU,EAAEjB,aAAa,CAACQ,KAAK,EAAEN,SAAS,CAAC,EAAE,EAAEC,MAAM,CAAC;UAAE,CAAC;QAE/D,CAAC;QACDI,aAAa,EAAE;UACbI,OAAO,EAAE,CAAC;UACVE,SAAS,EAAE,CAAC;YAAEI,UAAU,EAAE;UAAE,CAAC,CAAC;UAC9B,GAAGV;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Flip.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Flip.js deleted file mode 100644 index 86c80259..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Flip.js +++ /dev/null @@ -1,576 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Rotate from top on the X axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipInXUp extends ComplexAnimationBuilder { - static presetName = 'FlipInXUp'; - static createInstance() { - return new FlipInXUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateX: '90deg' - }, { - translateY: -targetValues.targetHeight - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: 500 - }, { - rotateX: delayFunction(delay, animation('0deg', config)) - }, { - translateY: delayFunction(delay, animation(0, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate from left on the Y axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipInYLeft extends ComplexAnimationBuilder { - static presetName = 'FlipInYLeft'; - static createInstance() { - return new FlipInYLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateY: '-90deg' - }, { - translateX: -targetValues.targetWidth - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateY: delayFunction(delay, animation('0deg', config)) - }, { - translateX: delayFunction(delay, animation(0, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate from bottom on the X axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipInXDown extends ComplexAnimationBuilder { - static presetName = 'FlipInXDown'; - static createInstance() { - return new FlipInXDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateX: '-90deg' - }, { - translateY: targetValues.targetHeight - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateX: delayFunction(delay, animation('0deg', config)) - }, { - translateY: delayFunction(delay, animation(0, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate from right on the Y axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipInYRight extends ComplexAnimationBuilder { - static presetName = 'FlipInYRight'; - static createInstance() { - return new FlipInYRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateY: '90deg' - }, { - translateX: targetValues.targetWidth - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateY: delayFunction(delay, animation('0deg', config)) - }, { - translateX: delayFunction(delay, animation(0, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Eased rotate in on the X axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipInEasyX extends ComplexAnimationBuilder { - static presetName = 'FlipInEasyX'; - static createInstance() { - return new FlipInEasyX(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateX: '90deg' - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateX: delayFunction(delay, animation('0deg', config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Eased rotate in on the Y axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipInEasyY extends ComplexAnimationBuilder { - static presetName = 'FlipInEasyY'; - static createInstance() { - return new FlipInEasyY(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateY: '90deg' - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateY: delayFunction(delay, animation('0deg', config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate to top animation on the X axis. You can modify the behavior by - * chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipOutXUp extends ComplexAnimationBuilder { - static presetName = 'FlipOutXUp'; - static createInstance() { - return new FlipOutXUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateX: '0deg' - }, { - translateY: 0 - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateX: delayFunction(delay, animation('90deg', config)) - }, { - translateY: delayFunction(delay, animation(-targetValues.currentHeight, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate to left on the Y axis. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipOutYLeft extends ComplexAnimationBuilder { - static presetName = 'FlipOutYLeft'; - static createInstance() { - return new FlipOutYLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateY: '0deg' - }, { - translateX: 0 - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateY: delayFunction(delay, animation('-90deg', config)) - }, { - translateX: delayFunction(delay, animation(-targetValues.currentWidth, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate to bottom on the X axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipOutXDown extends ComplexAnimationBuilder { - static presetName = 'FlipOutXDown'; - static createInstance() { - return new FlipOutXDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateX: '0deg' - }, { - translateY: 0 - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateX: delayFunction(delay, animation('-90deg', config)) - }, { - translateY: delayFunction(delay, animation(targetValues.currentHeight, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Rotate to right animation on the Y axis. You can modify the behavior by - * chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipOutYRight extends ComplexAnimationBuilder { - static presetName = 'FlipOutYRight'; - static createInstance() { - return new FlipOutYRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return targetValues => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateY: '0deg' - }, { - translateX: 0 - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateY: delayFunction(delay, animation('90deg', config)) - }, { - translateX: delayFunction(delay, animation(targetValues.currentWidth, config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Eased rotate on the X axis. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipOutEasyX extends ComplexAnimationBuilder { - static presetName = 'FlipOutEasyX'; - static createInstance() { - return new FlipOutEasyX(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateX: '0deg' - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateX: delayFunction(delay, animation('90deg', config)) - }] - }, - callback - }; - }; - }; -} - -/** - * Eased rotate on the Y axis. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#flip - */ -export class FlipOutEasyY extends ComplexAnimationBuilder { - static presetName = 'FlipOutEasyY'; - static createInstance() { - return new FlipOutEasyY(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - initialValues: { - transform: [{ - perspective: 500 - }, { - rotateY: '0deg' - }], - ...initialValues - }, - animations: { - transform: [{ - perspective: delayFunction(delay, animation(500, config)) - }, { - rotateY: delayFunction(delay, animation('90deg', config)) - }] - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Flip.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Flip.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Flip.js.map deleted file mode 100644 index 848c9a66..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Flip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","FlipInXUp","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","targetValues","transform","perspective","rotateX","translateY","targetHeight","animations","FlipInYLeft","rotateY","translateX","targetWidth","FlipInXDown","FlipInYRight","FlipInEasyX","FlipInEasyY","FlipOutXUp","currentHeight","FlipOutYLeft","currentWidth","FlipOutXDown","FlipOutYRight","FlipOutEasyX","FlipOutEasyY"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Flip.ts"],"mappings":"AAAA,YAAY;;AAWZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,SACZD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,WAAW;EAE/B,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,SAAS,CAAC,CAAC;EACxB;EAEAG,KAAK,GAAGA,CAAA,KAAsD;IAC5D,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAQC,YAAY,IAAK;MACvB,SAAS;;MACT,OAAO;QACLD,aAAa,EAAE;UACbE,SAAS,EAAE,CACT;YAAEC,WAAW,EAAE;UAAI,CAAC,EACpB;YAAEC,OAAO,EAAE;UAAQ,CAAC,EACpB;YAAEC,UAAU,EAAE,CAACJ,YAAY,CAACK;UAAa,CAAC,CAC3C;UACD,GAAGN;QACL,CAAC;QACDO,UAAU,EAAE;UACVL,SAAS,EAAE,CACT;YAAEC,WAAW,EAAE;UAAI,CAAC,EACpB;YAAEC,OAAO,EAAEb,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,MAAM,EAAEC,MAAM,CAAC;UAAE,CAAC,EAC5D;YAAEW,UAAU,EAAEd,a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[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js deleted file mode 100644 index db0aff63..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js +++ /dev/null @@ -1,216 +0,0 @@ -'use strict'; - -import { withSequence, withTiming } from '../../animation'; -import { ComplexAnimationBuilder } from '../animationBuilder'; -/** - * Entry from right animation with change in skew and opacity. You can modify - * the behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#lightspeed - */ -export class LightSpeedInRight extends ComplexAnimationBuilder { - static presetName = 'LightSpeedInRight'; - static createInstance() { - return new LightSpeedInRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, withTiming(1, { - duration - })), - transform: [{ - translateX: delayFunction(delay, animation(0, { - ...config, - duration: duration * 0.7 - })) - }, { - skewX: delayFunction(delay, withSequence(withTiming('10deg', { - duration: duration * 0.7 - }), withTiming('-5deg', { - duration: duration * 0.15 - }), withTiming('0deg', { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - translateX: values.windowWidth - }, { - skewX: '-45deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Entry from left animation with change in skew and opacity. You can modify the - * behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#lightspeed - */ -export class LightSpeedInLeft extends ComplexAnimationBuilder { - static presetName = 'LightSpeedInLeft'; - static createInstance() { - return new LightSpeedInLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const duration = this.getDuration(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, withTiming(1, { - duration - })), - transform: [{ - translateX: delayFunction(delay, animation(0, { - ...config, - duration: duration * 0.7 - })) - }, { - skewX: delayFunction(delay, withSequence(withTiming('-10deg', { - duration: duration * 0.7 - }), withTiming('5deg', { - duration: duration * 0.15 - }), withTiming('0deg', { - duration: duration * 0.15 - }))) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - translateX: -values.windowWidth - }, { - skewX: '45deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Exit to right animation with change in skew and opacity. You can modify the - * behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#lightspeed - */ -export class LightSpeedOutRight extends ComplexAnimationBuilder { - static presetName = 'LightSpeedOutRight'; - static createInstance() { - return new LightSpeedOutRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - translateX: delayFunction(delay, animation(values.windowWidth, config)) - }, { - skewX: delayFunction(delay, animation('-45deg', config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - translateX: 0 - }, { - skewX: '0deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Exit to left animation with change in skew and opacity. You can modify the - * behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#lightspeed - */ -export class LightSpeedOutLeft extends ComplexAnimationBuilder { - static presetName = 'LightSpeedOutLeft'; - static createInstance() { - return new LightSpeedOutLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - translateX: delayFunction(delay, animation(-values.windowWidth, config)) - }, { - skewX: delayFunction(delay, animation('45deg', config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - translateX: 0 - }, { - skewX: '0deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Lightspeed.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js.map deleted file mode 100644 index 515a0d4b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withSequence","withTiming","ComplexAnimationBuilder","LightSpeedInRight","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","duration","getDuration","callback","callbackV","initialValues","values","animations","opacity","transform","translateX","skewX","windowWidth","LightSpeedInLeft","LightSpeedOutRight","LightSpeedOutLeft"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Lightspeed.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,YAAY,EAAEC,UAAU,QA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BK,KAAK,EACLH,SAAS,CAAC,CAACU,MAAM,CAACM,WAAW,EAAEf,MAAM,CACvC;UACF,CAAC,EACD;YACEc,KAAK,EAAEjB,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,OAAO,EAAEC,MAAM,CAAC;UACxD,CAAC;QAEL,CAAC;QACDQ,aAAa,EAAE;UACbG,OAAO,EAAE,CAAC;UACVC,SAAS,EAAE,CAAC;YAAEC,UAAU,EAAE;UAAE,CAAC,EAAE;YAAEC,KAAK,EAAE;UAAO,CAAC,CAAC;UACjD,GAAGN;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js deleted file mode 100644 index 2f8de3f7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Entry with change in rotation, scale, and opacity. You can modify the - * behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#pinwheel - */ -export class PinwheelIn extends ComplexAnimationBuilder { - static presetName = 'PinwheelIn'; - static createInstance() { - return new PinwheelIn(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - scale: delayFunction(delay, animation(1, config)) - }, { - rotate: delayFunction(delay, animation('0rad', config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - scale: 0 - }, { - rotate: '5rad' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Exit with change in rotation, scale, and opacity. You can modify the behavior - * by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#pinwheel - */ -export class PinwheelOut extends ComplexAnimationBuilder { - static presetName = 'PinwheelOut'; - static createInstance() { - return new PinwheelOut(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - scale: delayFunction(delay, animation(0, config)) - }, { - rotate: delayFunction(delay, animation('5rad', config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - scale: 1 - }, { - rotate: '0rad' - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Pinwheel.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js.map deleted file mode 100644 index ddda2b75..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","PinwheelIn","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","animations","opacity","transform","scale","rotate","PinwheelOut"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Pinwheel.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,uBAAuB,QAAQ,qB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OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIiB,WAAW,CAAC,CAAC;EAC1B;EAEAhB,KAAK,GAAGA,CAAA,KAAkC;IACxC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAO,MAAM;MACX,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,OAAO,EAAEX,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC,CAAC;UACnDS,SAAS,EAAE,CACT;YACEC,KAAK,EAAEb,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC;UAClD,CAAC,EACD;YACEW,MAAM,EAAEd,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,MAAM,EAAEC,MAAM,CAAC;UACxD,CAAC;QAEL,CAAC;QACDM,aAAa,EAAE;UACbE,OAAO,EAAE,CAAC;UACVC,SAAS,EAAE,CACT;YACEC,KAAK,EAAE;UACT,CAAC,EACD;YACEC,MAAM,EAAE;UACV,CAAC,CACF;UACD,GAAGL;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Roll.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Roll.js deleted file mode 100644 index 2ceaa1f2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Roll.js +++ /dev/null @@ -1,184 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Roll from left animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#roll - */ -export class RollInLeft extends ComplexAnimationBuilder { - static presetName = 'RollInLeft'; - static createInstance() { - return new RollInLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(0, config)) - }, { - rotate: delayFunction(delay, animation('0deg', config)) - }] - }, - initialValues: { - transform: [{ - translateX: -values.windowWidth - }, { - rotate: '-180deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Roll from right animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#roll - */ -export class RollInRight extends ComplexAnimationBuilder { - static presetName = 'RollInRight'; - static createInstance() { - return new RollInRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(0, config)) - }, { - rotate: delayFunction(delay, animation('0deg', config)) - }] - }, - initialValues: { - transform: [{ - translateX: values.windowWidth - }, { - rotate: '180deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Roll to left animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#roll - */ -export class RollOutLeft extends ComplexAnimationBuilder { - static presetName = 'RollOutLeft'; - static createInstance() { - return new RollOutLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(-values.windowWidth, config)) - }, { - rotate: delayFunction(delay, animation('-180deg', config)) - }] - }, - initialValues: { - transform: [{ - translateX: 0 - }, { - rotate: '0deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Roll to right animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#roll - */ -export class RollOutRight extends ComplexAnimationBuilder { - static presetName = 'RollOutRight'; - static createInstance() { - return new RollOutRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(values.windowWidth, config)) - }, { - rotate: delayFunction(delay, animation('180deg', config)) - }] - }, - initialValues: { - transform: [{ - translateX: 0 - }, { - rotate: '0deg' - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Roll.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Roll.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Roll.js.map deleted file mode 100644 index 11c2d45b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Roll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","RollInLeft","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","transform","translateX","rotate","windowWidth","RollInRight","RollOutLeft","RollOutRight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Roll.ts"],"mappings":"AAAA,YAAY;;AAOZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,SACbD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,YAAY;EAEhC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,UAAU,CAAC,CAAC;EACzB;EAEAG,KAAK,GAAGA,CAAA,KAAkC;IACxC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAQC,MAAiC,IAAK;MAC5C,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,SAAS,EAAE,CACT;YAAEC,UAAU,EAAEb,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC;UAAE,CAAC,EAC1D;YAAEW,MAAM,EAAEd,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,MAAM,EAAEC,MAAM,CAAC;UAAE,CAAC;QAE/D,CAAC;QACDM,aAAa,EAAE;UACbG,SAAS,EAAE,CACT;YAAE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AAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAQC,MAAiC,IAAK;MAC5C,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,SAAS,EAAE,CACT;YACEC,UAAU,EAAEb,aAAa,CACvBK,KAAK,EACLH,SAAS,CAACQ,MAAM,CAACK,WAAW,EAAEZ,MAAM,CACtC;UACF,CAAC,EACD;YAAEW,MAAM,EAAEd,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,QAAQ,EAAEC,MAAM,CAAC;UAAE,CAAC;QAEjE,CAAC;QACDM,aAAa,EAAE;UACbG,SAAS,EAAE,CAAC;YAAEC,UAAU,EAAE;UAAE,CAAC,EAAE;YAAEC,MAAM,EAAE;UAAO,CAAC,CAAC;UAClD,GAAGL;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Rotate.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Rotate.js deleted file mode 100644 index 206c2ad7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Rotate.js +++ /dev/null @@ -1,412 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Rotate to bottom from left edge. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateInDownLeft extends ComplexAnimationBuilder { - static presetName = 'RotateInDownLeft'; - static createInstance() { - return new RotateInDownLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - rotate: delayFunction(delay, animation('0deg', config)) - }, { - translateX: delayFunction(delay, animation(0, config)) - }, { - translateY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - rotate: '-90deg' - }, { - translateX: values.targetWidth / 2 - values.targetHeight / 2 - }, { - translateY: -(values.targetWidth / 2 - values.targetHeight / 2) - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to bottom from right edge. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateInDownRight extends ComplexAnimationBuilder { - static presetName = 'RotateInDownRight'; - static createInstance() { - return new RotateInDownRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - rotate: delayFunction(delay, animation('0deg', config)) - }, { - translateX: delayFunction(delay, animation(0, config)) - }, { - translateY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - rotate: '90deg' - }, { - translateX: -(values.targetWidth / 2 - values.targetHeight / 2) - }, { - translateY: -(values.targetWidth / 2 - values.targetHeight / 2) - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to top from left edge. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateInUpLeft extends ComplexAnimationBuilder { - static presetName = 'RotateInUpLeft'; - static createInstance() { - return new RotateInUpLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - rotate: delayFunction(delay, animation('0deg', config)) - }, { - translateX: delayFunction(delay, animation(0, config)) - }, { - translateY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - rotate: '90deg' - }, { - translateX: values.targetWidth / 2 - values.targetHeight / 2 - }, { - translateY: values.targetWidth / 2 - values.targetHeight / 2 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to top from right edge. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateInUpRight extends ComplexAnimationBuilder { - static presetName = 'RotateInUpRight'; - static createInstance() { - return new RotateInUpRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(1, config)), - transform: [{ - rotate: delayFunction(delay, animation('0deg', config)) - }, { - translateX: delayFunction(delay, animation(0, config)) - }, { - translateY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - opacity: 0, - transform: [{ - rotate: '-90deg' - }, { - translateX: -(values.targetWidth / 2 - values.targetHeight / 2) - }, { - translateY: values.targetWidth / 2 - values.targetHeight / 2 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to bottom from left edge. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateOutDownLeft extends ComplexAnimationBuilder { - static presetName = 'RotateOutDownLeft'; - static createInstance() { - return new RotateOutDownLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - rotate: delayFunction(delay, animation('90deg', config)) - }, { - translateX: delayFunction(delay, animation(values.currentWidth / 2 - values.currentHeight / 2, config)) - }, { - translateY: delayFunction(delay, animation(values.currentWidth / 2 - values.currentHeight / 2, config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - rotate: '0deg' - }, { - translateX: 0 - }, { - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to bottom from right edge. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateOutDownRight extends ComplexAnimationBuilder { - static presetName = 'RotateOutDownRight'; - static createInstance() { - return new RotateOutDownRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - rotate: delayFunction(delay, animation('-90deg', config)) - }, { - translateX: delayFunction(delay, animation(-(values.currentWidth / 2 - values.currentHeight / 2), config)) - }, { - translateY: delayFunction(delay, animation(values.currentWidth / 2 - values.currentHeight / 2, config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - rotate: '0deg' - }, { - translateX: 0 - }, { - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to top from left edge. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateOutUpLeft extends ComplexAnimationBuilder { - static presetName = 'RotateOutUpLeft'; - static createInstance() { - return new RotateOutUpLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - rotate: delayFunction(delay, animation('-90deg', config)) - }, { - translateX: delayFunction(delay, animation(values.currentWidth / 2 - values.currentHeight / 2, config)) - }, { - translateY: delayFunction(delay, animation(-(values.currentWidth / 2 - values.currentHeight / 2), config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - rotate: '0deg' - }, { - translateX: 0 - }, { - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Rotate to top from right edge. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#rotate - */ -export class RotateOutUpRight extends ComplexAnimationBuilder { - static presetName = 'RotateOutUpRight'; - static createInstance() { - return new RotateOutUpRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - opacity: delayFunction(delay, animation(0, config)), - transform: [{ - rotate: delayFunction(delay, animation('90deg', config)) - }, { - translateX: delayFunction(delay, animation(-(values.currentWidth / 2 - values.currentHeight / 2), config)) - }, { - translateY: delayFunction(delay, animation(-(values.currentWidth / 2 - values.currentHeight / 2), config)) - }] - }, - initialValues: { - opacity: 1, - transform: [{ - rotate: '0deg' - }, { - translateX: 0 - }, { - translateY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Rotate.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Rotate.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Rotate.js.map deleted file mode 100644 index da76eb59..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Rotate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","RotateInDownLeft","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","opacity","transform","rotate","translateX","translateY","targetWidth","targetHeight","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","currentWidth","currentHeight","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Rotate.ts"],"mappings":"AAAA,YAAY;;AASZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAA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UAAE,CAAC,CAAC;UACrE,GAAGP;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Slide.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Slide.js deleted file mode 100644 index 5dc81df8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Slide.js +++ /dev/null @@ -1,300 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Slide from right animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideInRight extends ComplexAnimationBuilder { - static presetName = 'SlideInRight'; - static createInstance() { - return new SlideInRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originX: delayFunction(delay, animation(values.targetOriginX, config)) - }, - initialValues: { - originX: values.targetOriginX + values.windowWidth, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide from left animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideInLeft extends ComplexAnimationBuilder { - static presetName = 'SlideInLeft'; - static createInstance() { - return new SlideInLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originX: delayFunction(delay, animation(values.targetOriginX, config)) - }, - initialValues: { - originX: values.targetOriginX - values.windowWidth, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide to right animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideOutRight extends ComplexAnimationBuilder { - static presetName = 'SlideOutRight'; - static createInstance() { - return new SlideOutRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originX: delayFunction(delay, animation(Math.max(values.currentOriginX + values.windowWidth, values.windowWidth), config)) - }, - initialValues: { - originX: values.currentOriginX, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide to left animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideOutLeft extends ComplexAnimationBuilder { - static presetName = 'SlideOutLeft'; - static createInstance() { - return new SlideOutLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originX: delayFunction(delay, animation(Math.min(values.currentOriginX - values.windowWidth, -values.windowWidth), config)) - }, - initialValues: { - originX: values.currentOriginX, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide from top animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideInUp extends ComplexAnimationBuilder { - static presetName = 'SlideInUp'; - static createInstance() { - return new SlideInUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originY: delayFunction(delay, animation(values.targetOriginY, config)) - }, - initialValues: { - originY: -values.windowHeight, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide from bottom animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideInDown extends ComplexAnimationBuilder { - static presetName = 'SlideInDown'; - static createInstance() { - return new SlideInDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originY: delayFunction(delay, animation(values.targetOriginY, config)) - }, - initialValues: { - originY: values.targetOriginY + values.windowHeight, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide to top animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideOutUp extends ComplexAnimationBuilder { - static presetName = 'SlideOutUp'; - static createInstance() { - return new SlideOutUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originY: delayFunction(delay, animation(Math.min(values.currentOriginY - values.windowHeight, -values.windowHeight), config)) - }, - initialValues: { - originY: values.currentOriginY, - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Slide to bottom animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide - */ -export class SlideOutDown extends ComplexAnimationBuilder { - static presetName = 'SlideOutDown'; - static createInstance() { - return new SlideOutDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - originY: delayFunction(delay, animation(Math.max(values.currentOriginY + values.windowHeight, values.windowHeight), config)) - }, - initialValues: { - originY: values.currentOriginY, - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Slide.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Slide.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Slide.js.map deleted file mode 100644 index f269bea3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Slide.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","SlideInRight","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","values","animations","originX","targetOriginX","windowWidth","SlideInLeft","SlideOutRight","Math","max","currentOriginX","SlideOutLeft","min","SlideInUp","originY","targetOriginY","windowHeight","SlideInDown","SlideOutUp","currentOriginY","SlideOutDown"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Slide.ts"],"mappings":"AAAA,YAAY;;AASZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,SACfD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,cAAc;EAElC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,YAAY,CAAC,CAAC;EAC3B;EAEAG,KAAK,GAAGA,CAAA,KAAsD;IAC5D,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAQC,MAAM,IAAK;MACjB,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,OAAO,EAAEZ,aAAa,CACpBK,KAAK,EACLH,SAAS,CAACQ,MAAM,CAACG,aAAa,EAAEV,MAAM,CACxC;QACF,CAAC;QACDM,aAAa,EAAE;UACbG,OAAO,EAAEF,MAAM,CAACG,aAAa,GAAGH,MAAM,CAACI,WAAW;UAClD,GAAGL;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMQ,WAAW,SACdpB,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,aAAa;EAEjC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIiB,WAAW,CAAC,CAAC;EAC1B;EAEAhB,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AAEc,OAAO,EAAEb,MAAM,CAACkB,cAAc;UAAE,GAAGnB;QAAc,CAAC;QACnEF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMsB,YAAY,SACflC,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,cAAc;EAElC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAI+B,YAAY,CAAC,CAAC;EAC3B;EAEA9B,KAAK,GAAGA,CAAA,KAAqD;IAC3D,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAQC,MAAM,IAAK;MACjB,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVY,OAAO,EAAEvB,aAAa,CACpBK,KAAK,EACLH,SAAS,CACPe,IAAI,CAACC,GAAG,CACNR,MAAM,CAACkB,cAAc,GAAGlB,MAAM,CAACe,YAAY,EAC3Cf,MAAM,CAACe,YACT,CAAC,EACDtB,MACF,CACF;QACF,CAAC;QACDM,aAAa,EAAE;UAAEc,OAAO,EAAEb,MAAM,CAACkB,cAAc;UAAE,GAAGnB;QAAc,CAAC;QACnEF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Stretch.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Stretch.js deleted file mode 100644 index 867c0bde..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Stretch.js +++ /dev/null @@ -1,168 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Stretch animation on the X axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch - */ -export class StretchInX extends ComplexAnimationBuilder { - static presetName = 'StretchInX'; - static createInstance() { - return new StretchInX(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scaleX: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - scaleX: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Stretch animation on the Y axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch - */ -export class StretchInY extends ComplexAnimationBuilder { - static presetName = 'StretchInY'; - static createInstance() { - return new StretchInY(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scaleY: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - scaleY: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Stretch animation on the X axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch - */ -export class StretchOutX extends ComplexAnimationBuilder { - static presetName = 'StretchOutX'; - static createInstance() { - return new StretchOutX(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scaleX: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - scaleX: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Stretch animation on the Y axis. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch - */ -export class StretchOutY extends ComplexAnimationBuilder { - static presetName = 'StretchOutY'; - static createInstance() { - return new StretchOutY(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scaleY: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - scaleY: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Stretch.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Stretch.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Stretch.js.map deleted file mode 100644 index 19bc56cd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Stretch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","StretchInX","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","animations","transform","scaleX","StretchInY","scaleY","StretchOutX","StretchOutY"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Stretch.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,UAAU,SACbD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,YAAY;EAEhC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,UAAU,CAAC,CAAC;EACzB;EAEAG,KAAK,GAAGA,CAAA,KAAkC;IACxC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAO,MAAM;MACX,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,SAAS,EAAE,CAAC;YAAEC,MAAM,EAAEZ,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC;UAAE,CAAC;QACpE,CAAC;QACDM,aAAa,EAAE;UACbE,SAAS,EAAE,CAAC;YAAEC,MAAM,EAAE;UAAE,CAAC,CAAC;UAC1B,GAAGH;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,UAAU,SACblB,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,YAAY;EAEhC,OAAOC,cAAcA,CAAA,EAEF;IACjB,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imated/lib/module/layoutReanimation/defaultAnimations/Zoom.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Zoom.js deleted file mode 100644 index 5cc0ddd5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Zoom.js +++ /dev/null @@ -1,718 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Scale from center animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomIn extends ComplexAnimationBuilder { - static presetName = 'ZoomIn'; - static createInstance() { - return new ZoomIn(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale from center with rotation. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInRotate extends ComplexAnimationBuilder { - static presetName = 'ZoomInRotate'; - static createInstance() { - return new ZoomInRotate(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const rotate = this.rotateV ? this.rotateV : '0.3'; - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scale: delayFunction(delay, animation(1, config)) - }, { - rotate: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - scale: 0 - }, { - rotate: `${rotate}rad` - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale from left animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInLeft extends ComplexAnimationBuilder { - static presetName = 'ZoomInLeft'; - static createInstance() { - return new ZoomInLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(0, config)) - }, { - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - translateX: -values.windowWidth - }, { - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale from right animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInRight extends ComplexAnimationBuilder { - static presetName = 'ZoomInRight'; - static createInstance() { - return new ZoomInRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(0, config)) - }, { - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - translateX: values.windowWidth - }, { - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale from top animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInUp extends ComplexAnimationBuilder { - static presetName = 'ZoomInUp'; - static createInstance() { - return new ZoomInUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(0, config)) - }, { - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - translateY: -values.windowHeight - }, { - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale from bottom animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInDown extends ComplexAnimationBuilder { - static presetName = 'ZoomInDown'; - static createInstance() { - return new ZoomInDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(0, config)) - }, { - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - translateY: values.windowHeight - }, { - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Eased scale from top animation. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInEasyUp extends ComplexAnimationBuilder { - static presetName = 'ZoomInEasyUp'; - static createInstance() { - return new ZoomInEasyUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(0, config)) - }, { - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - translateY: -values.targetHeight - }, { - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Eased scale from bottom animation. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `entering` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomInEasyDown extends ComplexAnimationBuilder { - static presetName = 'ZoomInEasyDown'; - static createInstance() { - return new ZoomInEasyDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(0, config)) - }, { - scale: delayFunction(delay, animation(1, config)) - }] - }, - initialValues: { - transform: [{ - translateY: values.targetHeight - }, { - scale: 0 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale to center animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOut extends ComplexAnimationBuilder { - static presetName = 'ZoomOut'; - static createInstance() { - return new ZoomOut(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale to center with rotation. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutRotate extends ComplexAnimationBuilder { - static presetName = 'ZoomOutRotate'; - static createInstance() { - return new ZoomOutRotate(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const rotate = this.rotateV ? this.rotateV : '0.3'; - const callback = this.callbackV; - const initialValues = this.initialValues; - return () => { - 'worklet'; - - return { - animations: { - transform: [{ - scale: delayFunction(delay, animation(0, config)) - }, { - rotate: delayFunction(delay, animation(rotate, config)) - }] - }, - initialValues: { - transform: [{ - scale: 1 - }, { - rotate: '0rad' - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale to left animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutLeft extends ComplexAnimationBuilder { - static presetName = 'ZoomOutLeft'; - static createInstance() { - return new ZoomOutLeft(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(-values.windowWidth, config)) - }, { - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - translateX: 0 - }, { - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale to right animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutRight extends ComplexAnimationBuilder { - static presetName = 'ZoomOutRight'; - static createInstance() { - return new ZoomOutRight(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateX: delayFunction(delay, animation(values.windowWidth, config)) - }, { - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - translateX: 0 - }, { - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale to top animation. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutUp extends ComplexAnimationBuilder { - static presetName = 'ZoomOutUp'; - static createInstance() { - return new ZoomOutUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(-values.windowHeight, config)) - }, { - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - translateY: 0 - }, { - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Scale to bottom animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutDown extends ComplexAnimationBuilder { - static presetName = 'ZoomOutDown'; - static createInstance() { - return new ZoomOutDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(values.windowHeight, config)) - }, { - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - translateY: 0 - }, { - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Eased scale to top animation. You can modify the behavior by chaining methods - * like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutEasyUp extends ComplexAnimationBuilder { - static presetName = 'ZoomOutEasyUp'; - static createInstance() { - return new ZoomOutEasyUp(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(-values.currentHeight, config)) - }, { - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - translateY: 0 - }, { - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} - -/** - * Eased scale to bottom animation. You can modify the behavior by chaining - * methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `exiting` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#zoom - */ -export class ZoomOutEasyDown extends ComplexAnimationBuilder { - static presetName = 'ZoomOutEasyDown'; - static createInstance() { - return new ZoomOutEasyDown(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const delay = this.getDelay(); - const callback = this.callbackV; - const initialValues = this.initialValues; - return values => { - 'worklet'; - - return { - animations: { - transform: [{ - translateY: delayFunction(delay, animation(values.currentHeight, config)) - }, { - scale: delayFunction(delay, animation(0, config)) - }] - }, - initialValues: { - transform: [{ - translateY: 0 - }, { - scale: 1 - }], - ...initialValues - }, - callback - }; - }; - }; -} -//# sourceMappingURL=Zoom.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Zoom.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Zoom.js.map deleted file mode 100644 index f32e1db7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/Zoom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","ZoomIn","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","delay","getDelay","callback","callbackV","initialValues","animations","transform","scale","ZoomInRotate","rotate","rotateV","ZoomInLeft","values","translateX","windowWidth","ZoomInRight","ZoomInUp","translateY","windowHeight","ZoomInDown","ZoomInEasyUp","targetHeight","ZoomInEasyDown","ZoomOut","ZoomOutRotate","ZoomOutLeft","ZoomOutRight","ZoomOutUp","ZoomOutDown","ZoomOutEasyUp","currentHeight","ZoomOutEasyDown"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/Zoom.ts"],"mappings":"AAAA,YAAY;;AAYZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,MAAM,SACTD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,QAAQ;EAE5B,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,MAAM,CAAC,CAAC;EACrB;EAEAG,KAAK,GAAGA,CAAA,KAAkC;IACxC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAC7B,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,aAAa,GAAG,IAAI,CAACA,aAAa;IAExC,OAAO,MAAM;MACX,SAAS;;MACT,OAAO;QACLC,UAAU,EAAE;UACVC,SAAS,EAAE,CAAC;YAAEC,KAAK,EAAEZ,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC;UAAE,CAAC;QACnE,CAAC;QACDM,aAAa,EAAE;UACbE,SAAS,EAAE,CAAC;YAAEC,KAAK,EAAE;UAAE,CAAC,CAAC;UACzB,GAAGH;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,YAAY,SACflB,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,cAAc;EAElC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIe,YAAY,CAAC,CAAC;EAC3B;EAEAd,KAAK,GAAGA,CAAA,KAAkC;IACxC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ACLH,SAAS,CAACe,MAAM,CAACkB,aAAa,EAAEhC,MAAM,CACxC;UACF,CAAC,EACD;YAAES,KAAK,EAAEZ,aAAa,CAACK,KAAK,EAAEH,SAAS,CAAC,CAAC,EAAEC,MAAM,CAAC;UAAE,CAAC;QAEzD,CAAC;QACDM,aAAa,EAAE;UACbE,SAAS,EAAE,CAAC;YAAEW,UAAU,EAAE;UAAE,CAAC,EAAE;YAAEV,KAAK,EAAE;UAAE,CAAC,CAAC;UAC5C,GAAGH;QACL,CAAC;QACDF;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/index.js deleted file mode 100644 index bf09f638..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -export * from './Bounce'; -export * from './Fade'; -export * from './Flip'; -export * from './Lightspeed'; -export * from './Pinwheel'; -export * from './Roll'; -export * from './Rotate'; -export * from './Slide'; -export * from './Stretch'; -export * from './Zoom'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/index.js.map deleted file mode 100644 index 513da85c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultAnimations/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultAnimations/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,QAAQ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js deleted file mode 100644 index d59e37f2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js +++ /dev/null @@ -1,114 +0,0 @@ -'use strict'; - -import { withTiming } from '../../animation'; -import { assertEasingIsWorklet } from '../../animation/util'; -import { Easing } from '../../Easing'; -import { BaseAnimationBuilder } from '../animationBuilder'; - -/** - * Layout transitions with a curved animation. You can modify the behavior by - * chaining methods like `.duration(500)` or `.delay(500)`. - * - * You pass it to the `layout` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#fading-transition - */ -export class CurvedTransition extends BaseAnimationBuilder { - static presetName = 'CurvedTransition'; - easingXV = Easing.in(Easing.ease); - easingYV = Easing.out(Easing.ease); - easingWidthV = Easing.in(Easing.exp); - easingHeightV = Easing.out(Easing.exp); - static createInstance() { - return new CurvedTransition(); - } - static easingX(easing) { - const instance = this.createInstance(); - return instance.easingX(easing); - } - easingX(easing) { - if (__DEV__) { - assertEasingIsWorklet(easing); - } - this.easingXV = easing; - return this; - } - static easingY(easing) { - const instance = this.createInstance(); - return instance.easingY(easing); - } - easingY(easing) { - if (__DEV__) { - assertEasingIsWorklet(easing); - } - this.easingYV = easing; - return this; - } - static easingWidth(easing) { - const instance = this.createInstance(); - return instance.easingWidth(easing); - } - easingWidth(easing) { - if (__DEV__) { - assertEasingIsWorklet(easing); - } - this.easingWidthV = easing; - return this; - } - static easingHeight(easing) { - const instance = this.createInstance(); - return instance.easingHeight(easing); - } - easingHeight(easing) { - if (__DEV__) { - assertEasingIsWorklet(easing); - } - this.easingHeightV = easing; - return this; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const callback = this.callbackV; - const delay = this.getDelay(); - const duration = this.durationV ?? 300; - const easing = { - easingX: this.easingXV, - easingY: this.easingYV, - easingWidth: this.easingWidthV, - easingHeight: this.easingHeightV - }; - return values => { - 'worklet'; - - return { - initialValues: { - originX: values.currentOriginX, - originY: values.currentOriginY, - width: values.currentWidth, - height: values.currentHeight - }, - animations: { - originX: delayFunction(delay, withTiming(values.targetOriginX, { - duration, - easing: easing.easingX - })), - originY: delayFunction(delay, withTiming(values.targetOriginY, { - duration, - easing: easing.easingY - })), - width: delayFunction(delay, withTiming(values.targetWidth, { - duration, - easing: easing.easingWidth - })), - height: delayFunction(delay, withTiming(values.targetHeight, { - duration, - easing: easing.easingHeight - })) - }, - callback - }; - }; - }; -} -//# sourceMappingURL=CurvedTransition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js.map deleted file mode 100644 index 4c8aacc7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withTiming","assertEasingIsWorklet","Easing","BaseAnimationBuilder","CurvedTransition","presetName","easingXV","in","ease","easingYV","out","easingWidthV","exp","easingHeightV","createInstance","easingX","easing","instance","__DEV__","easingY","easingWidth","easingHeight","build","delayFunction","getDelayFunction","callback","callbackV","delay","getDelay","duration","durationV","values","initialValues","originX","currentOriginX","originY","currentOriginY","width","currentWidth","height","currentHeight","animations","targetOriginX","targetOriginY","targetWidth","targetHeight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/CurvedTransition.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,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AACO,YAAY;UAC1BC,MAAM,EAAER,MAAM,CAACS;QACjB,CAAC;QACDC,UAAU,EAAE;UACVR,OAAO,EAAEV,aAAa,CACpBI,KAAK,EACL3B,UAAU,CAAC+B,MAAM,CAACW,aAAa,EAAE;YAC/Bb,QAAQ;YACRb,MAAM,EAAEA,MAAM,CAACD;UACjB,CAAC,CACH,CAAC;UACDoB,OAAO,EAAEZ,aAAa,CACpBI,KAAK,EACL3B,UAAU,CAAC+B,MAAM,CAACY,aAAa,EAAE;YAC/Bd,QAAQ;YACRb,MAAM,EAAEA,MAAM,CAACG;UACjB,CAAC,CACH,CAAC;UACDkB,KAAK,EAAEd,aAAa,CAClBI,KAAK,EACL3B,UAAU,CAAC+B,MAAM,CAACa,WAAW,EAAE;YAC7Bf,QAAQ;YACRb,MAAM,EAAEA,MAAM,CAACI;UACjB,CAAC,CACH,CAAC;UACDmB,MAAM,EAAEhB,aAAa,CACnBI,KAAK,EACL3B,UAAU,CAAC+B,MAAM,CAACc,YAAY,EAAE;YAC9BhB,QAAQ;YACRb,MAAM,EAAEA,MAAM,CAACK;UACjB,CAAC,CACH;QACF,CAAC;QACDI;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js deleted file mode 100644 index 90bccb58..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js +++ /dev/null @@ -1,162 +0,0 @@ -'use strict'; - -import { withSequence, withTiming } from '../../animation'; -import { logger } from '../../common'; -import { BaseAnimationBuilder } from '../animationBuilder'; -import { FadeIn, FadeOut } from '../defaultAnimations/Fade'; -export class EntryExitTransition extends BaseAnimationBuilder { - static presetName = 'EntryExitTransition'; - enteringV = FadeIn; - exitingV = FadeOut; - static createInstance() { - return new EntryExitTransition(); - } - static entering(animation) { - const instance = this.createInstance(); - return instance.entering(animation); - } - entering(animation) { - this.enteringV = animation; - return this; - } - static exiting(animation) { - const instance = this.createInstance(); - return instance.exiting(animation); - } - exiting(animation) { - this.exitingV = animation; - return this; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const callback = this.callbackV; - const delay = this.getDelay(); - // @ts-ignore Calling `.build()` both static and instance methods works fine here, but `this` types are incompatible. They are not used though, so it's fine. - const enteringAnimation = this.enteringV.build(); - // @ts-ignore Calling `.build()` both static and instance methods works fine here, but `this` types are incompatible. They are not used though, so it's fine. - const exitingAnimation = this.exitingV.build(); - const exitingDuration = this.exitingV.getDuration(); - return values => { - 'worklet'; - - const enteringValues = enteringAnimation(values); - const exitingValues = exitingAnimation(values); - const animations = { - transform: [] - }; - for (const prop of Object.keys(exitingValues.animations)) { - if (prop === 'transform') { - if (!Array.isArray(exitingValues.animations.transform)) { - continue; - } - exitingValues.animations.transform.forEach((value, index) => { - for (const transformProp of Object.keys(value)) { - animations.transform.push({ - [transformProp]: delayFunction(delay, withSequence(value[transformProp], withTiming(exitingValues.initialValues.transform ? - // TODO TYPESCRIPT - // @ts-ignore This line of code fails tragically - // in newer versions of React Native, where they have - // narrowed down the type of `transform` even further. - // Since this piece of code improperly typed anyway - // (e.g. it assumes types from RN Animated here) I'd rather - // fix it in the future when types for animations - // are properly defined. - exitingValues.initialValues.transform[index][transformProp] : 0, { - duration: 0 - }))) - }); - } - }); - } else { - const sequence = enteringValues.animations[prop] !== undefined ? [exitingValues.animations[prop], withTiming(enteringValues.initialValues[prop], { - duration: 0 - }), enteringValues.animations[prop]] : [exitingValues.animations[prop], withTiming(Object.keys(values).includes(prop) ? values[prop] : exitingValues.initialValues[prop], { - duration: 0 - })]; - animations[prop] = delayFunction(delay, withSequence(...sequence)); - } - } - for (const prop of Object.keys(enteringValues.animations)) { - if (prop === 'transform') { - if (!Array.isArray(enteringValues.animations.transform)) { - continue; - } - enteringValues.animations.transform.forEach((value, index) => { - for (const transformProp of Object.keys(value)) { - animations.transform.push({ - [transformProp]: delayFunction(delay + exitingDuration, withSequence(withTiming(enteringValues.initialValues.transform ? enteringValues.initialValues.transform[index][transformProp] : 0, { - duration: exitingDuration - }), value[transformProp])) - }); - } - }); - } else if (animations[prop] !== undefined) { - // it was already added in the previous loop - continue; - } else { - animations[prop] = delayFunction(delay, withSequence(withTiming(enteringValues.initialValues[prop], { - duration: 0 - }), enteringValues.animations[prop])); - } - } - const mergedTransform = (Array.isArray(exitingValues.initialValues.transform) ? exitingValues.initialValues.transform : []).concat((Array.isArray(enteringValues.animations.transform) ? enteringValues.animations.transform : []).map(value => { - const objectKeys = Object.keys(value); - if (objectKeys?.length < 1) { - logger.error(`\${value} is not a valid Transform object`); - return value; - } - const transformProp = objectKeys[0]; - const current = - // TODO TYPESCRIPT - // @ts-ignore Read similar comment above. - value[transformProp].current; - if (typeof current === 'string') { - if (current.includes('deg')) { - return { - [transformProp]: '0deg' - }; - } else { - return { - [transformProp]: '0' - }; - } - } else if (transformProp.includes('translate')) { - return { - [transformProp]: 0 - }; - } else { - return { - [transformProp]: 1 - }; - } - })); - return { - initialValues: { - ...exitingValues.initialValues, - originX: values.currentOriginX, - originY: values.currentOriginY, - width: values.currentWidth, - height: values.currentHeight, - transform: mergedTransform - }, - animations: { - originX: delayFunction(delay + exitingDuration, withTiming(values.targetOriginX, { - duration: exitingDuration - })), - originY: delayFunction(delay + exitingDuration, withTiming(values.targetOriginY, { - duration: exitingDuration - })), - width: delayFunction(delay + exitingDuration, withTiming(values.targetWidth, { - duration: exitingDuration - })), - height: delayFunction(delay + exitingDuration, withTiming(values.targetHeight, { - duration: exitingDuration - })), - ...animations - }, - callback - }; - }; - }; -} -//# sourceMappingURL=EntryExitTransition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js.map deleted file mode 100644 index c87ba769..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withSequence","withTiming","logger","BaseAnimationBuilder","FadeIn","FadeOut","EntryExitTransition","presetName","enteringV","exitingV","createInstance","entering","animation","instance","exiting","build","delayFunction","getDelayFunction","callback","callbackV","delay","getDelay","enteringAnimation","exitingAnimation","exitingDuration","getDuration","values","enteringValues","exitingValues","animations","transform","prop","Object","keys","Array","isArray","forEach","value","index","transformProp","push","initialValues","duration","sequence","undefined","includes","mergedTransform","concat","map","objectKeys","length","error","current","originX","currentOriginX","originY","currentOriginY","width","currentWidth","height","currentHeight","targetOriginX","targetOriginY","targetWidth","targetHeight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/EntryExitTransition.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AAC1D,SAASC,MAAM,QAAQ,cAAc;AAUrC,SAASC,oBAAoB,QAAQ,qBAAqB;AAC1D,SAASC,MAAM,EAAEC,OAAO,QAAQ,2BAA2B;AAE3D,OAAO,MAAMC,mBAAmB,SACtBH,oBAAoB,CAE9B;EACE,OAAOI,UAAU,GAAG,qBAAqB;EAEzCC,SAAS,GAAuDJ,MAAM;EAEtEK,QAAQ,GAAuDJ,OAAO;EAEtE,OAAOK,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIJ,mBAAmB,CAAC,CAAC;EAClC;EAEA,OAAOK,QAAQA,CACbC,SAA6D,EACxC;IACrB,MAAMC,QAAQ,GAAG,IAAI,CAACH,cAAc,CAAC,CAAC;IACtC,OAAOG,QAAQ,CAACF,QAAQ,CAACC,SAAS,CAAC;EACrC;EAEAD,QAAQA,CACNC,SAA6D,EACxC;IACrB,IAAI,CAACJ,SAAS,GAAGI,SAAS;IAC1B,OAAO,IAAI;EACb;EAEA,OA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,EAAEvC,aAAa,CACpBI,KAAK,GAAGI,eAAe,EACvBvB,UAAU,CAACyB,MAAM,CAACoC,aAAa,EAAE;YAAEpB,QAAQ,EAAElB;UAAgB,CAAC,CAChE,CAAC;UACDiC,KAAK,EAAEzC,aAAa,CAClBI,KAAK,GAAGI,eAAe,EACvBvB,UAAU,CAACyB,MAAM,CAACqC,WAAW,EAAE;YAAErB,QAAQ,EAAElB;UAAgB,CAAC,CAC9D,CAAC;UACDmC,MAAM,EAAE3C,aAAa,CACnBI,KAAK,GAAGI,eAAe,EACvBvB,UAAU,CAACyB,MAAM,CAACsC,YAAY,EAAE;YAAEtB,QAAQ,EAAElB;UAAgB,CAAC,CAC/D,CAAC;UACD,GAAGK;QACL,CAAC;QACDX;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js deleted file mode 100644 index 0fa4f485..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js +++ /dev/null @@ -1,61 +0,0 @@ -'use strict'; - -import { withDelay, withSequence, withTiming } from '../../animation'; -import { BaseAnimationBuilder } from '../animationBuilder'; - -/** - * Fades out components from one position and shows them in another. You can - * modify the behavior by chaining methods like `.duration(500)` or - * `.delay(500)`. - * - * You pass it to the `layout` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#fading-transition - */ -export class FadingTransition extends BaseAnimationBuilder { - static presetName = 'FadingTransition'; - static createInstance() { - return new FadingTransition(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const callback = this.callbackV; - const delay = this.getDelay(); - const halfDuration = (this.durationV ?? 500) / 2; - return values => { - 'worklet'; - - return { - initialValues: { - opacity: 1, - originX: values.currentOriginX, - originY: values.currentOriginY, - width: values.currentWidth, - height: values.currentHeight - }, - animations: { - opacity: delayFunction(delay, withSequence(withTiming(0, { - duration: halfDuration - }), withTiming(1, { - duration: halfDuration - }))), - originX: withDelay(delay + halfDuration, withTiming(values.targetOriginX, { - duration: 0 - })), - originY: withDelay(delay + halfDuration, withTiming(values.targetOriginY, { - duration: 0 - })), - width: withDelay(delay + halfDuration, withTiming(values.targetWidth, { - duration: 0 - })), - height: withDelay(delay + halfDuration, withTiming(values.targetHeight, { - duration: 0 - })) - }, - callback - }; - }; - }; -} -//# sourceMappingURL=FadingTransition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js.map deleted file mode 100644 index 8c8a4cc7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withDelay","withSequence","withTiming","BaseAnimationBuilder","FadingTransition","presetName","createInstance","build","delayFunction","getDelayFunction","callback","callbackV","delay","getDelay","halfDuration","durationV","values","initialValues","opacity","originX","currentOriginX","originY","currentOriginY","width","currentWidth","height","currentHeight","animations","duration","targetOriginX","targetOriginY","targetWidth","targetHeight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/FadingTransition.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,SAAS,EAAEC,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AAKrE,SAASC,oBAAoB,QAAQ,qBAAqB;;AAE1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SACnBD,oBAAoB,CAE9B;EACE,OAAOE,UAAU,GAAG,kBAAkB;EAEtC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OA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AAS,CACfY,KAAK,GAAGE,YAAY,EACpBZ,UAAU,CAACc,MAAM,CAACgB,YAAY,EAAE;YAAEJ,QAAQ,EAAE;UAAE,CAAC,CACjD;QACF,CAAC;QACDlB;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js deleted file mode 100644 index 21cb4dba..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -import { withSequence, withTiming } from '../../animation'; -import { Easing } from '../../Easing'; -import { BaseAnimationBuilder } from '../animationBuilder'; - -/** - * Layout jumps - quite literally - from one position to another. You can modify - * the behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `layout` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#jumping-transition - */ -export class JumpingTransition extends BaseAnimationBuilder { - static presetName = 'JumpingTransition'; - static createInstance() { - return new JumpingTransition(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const callback = this.callbackV; - const delay = this.getDelay(); - const duration = this.durationV ?? 300; - const halfDuration = duration / 2; - const config = { - duration - }; - return values => { - 'worklet'; - - const d = Math.max(Math.abs(values.targetOriginX - values.currentOriginX), Math.abs(values.targetOriginY - values.currentOriginY)); - return { - initialValues: { - originX: values.currentOriginX, - originY: values.currentOriginY, - width: values.currentWidth, - height: values.currentHeight - }, - animations: { - originX: delayFunction(delay, withTiming(values.targetOriginX, config)), - originY: delayFunction(delay, withSequence(withTiming(Math.min(values.targetOriginY, values.currentOriginY) - d, { - duration: halfDuration, - easing: Easing.out(Easing.exp) - }), withTiming(values.targetOriginY, { - ...config, - duration: halfDuration, - easing: Easing.bounce - }))), - width: delayFunction(delay, withTiming(values.targetWidth, config)), - height: delayFunction(delay, withTiming(values.targetHeight, config)) - }, - callback - }; - }; - }; -} -//# sourceMappingURL=JumpingTransition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js.map deleted file mode 100644 index 6c8b18bc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withSequence","withTiming","Easing","BaseAnimationBuilder","JumpingTransition","presetName","createInstance","build","delayFunction","getDelayFunction","callback","callbackV","delay","getDelay","duration","durationV","halfDuration","config","values","d","Math","max","abs","targetOriginX","currentOriginX","targetOriginY","currentOriginY","initialValues","originX","originY","width","currentWidth","height","currentHeight","animations","min","easing","out","exp","bounce","targetWidth","targetHeight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/JumpingTransition.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AAK1D,SAASC,MAAM,QAAQ,cAAc;AACrC,SAASC,oBAAoB,QAAQ,qBAAqB;;AAE1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,SACpBD,oBAAoB,CAE9B;EACE,OAAOE,UAAU,GAAG,mBAAmB;EAEvC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,iBAAiB,CAAC,CAAC;EAChC;EAEAG,KAAK,GAAGA,CAAA,KAA+B;IACrC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,KAAK,GAAG,IAAI,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,MAAM,CAACsB,WAAW,EAAEvB,MAAM,CAAC,CAAC;UACnEe,MAAM,EAAExB,aAAa,CAACI,KAAK,EAAEX,UAAU,CAACiB,MAAM,CAACuB,YAAY,EAAExB,MAAM,CAAC;QACtE,CAAC;QACDP;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js deleted file mode 100644 index 852a48b3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict'; - -import { ComplexAnimationBuilder } from '../animationBuilder'; - -/** - * Linearly transforms the layout from one position to another. You can modify - * the behavior by chaining methods like `.springify()` or `.duration(500)`. - * - * You pass it to the `layout` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#linear-transition - */ -export class LinearTransition extends ComplexAnimationBuilder { - static presetName = 'LinearTransition'; - static createInstance() { - return new LinearTransition(); - } - build = () => { - const delayFunction = this.getDelayFunction(); - const [animation, config] = this.getAnimationAndConfig(); - const callback = this.callbackV; - const delay = this.getDelay(); - return values => { - 'worklet'; - - return { - initialValues: { - originX: values.currentOriginX, - originY: values.currentOriginY, - width: values.currentWidth, - height: values.currentHeight - }, - animations: { - originX: delayFunction(delay, animation(values.targetOriginX, config)), - originY: delayFunction(delay, animation(values.targetOriginY, config)), - width: delayFunction(delay, animation(values.targetWidth, config)), - height: delayFunction(delay, animation(values.targetHeight, config)) - }, - callback - }; - }; - }; -} - -/** @deprecated Please use {@link LinearTransition} instead. */ -export const Layout = LinearTransition; -//# sourceMappingURL=LinearTransition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js.map deleted file mode 100644 index 819fd4e7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ComplexAnimationBuilder","LinearTransition","presetName","createInstance","build","delayFunction","getDelayFunction","animation","config","getAnimationAndConfig","callback","callbackV","delay","getDelay","values","initialValues","originX","currentOriginX","originY","currentOriginY","width","currentWidth","height","currentHeight","animations","targetOriginX","targetOriginY","targetWidth","targetHeight","Layout"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/LinearTransition.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,uBAAuB,QAAQ,qBAAqB;;AAE7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SACnBD,uBAAuB,CAEjC;EACE,OAAOE,UAAU,GAAG,kBAAkB;EAEtC,OAAOC,cAAcA,CAAA,EAEF;IACjB,OAAO,IAAIF,gBAAgB,CAAC,CAAC;EAC/B;EAEAG,KAAK,GAAGA,CAAA,KAA+B;IACrC,MAAMC,aAAa,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAC7C,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,GAAG,IAAI,CAACC,qBAAqB,CAAC,CAAC;IACxD,MAAMC,QAAQ,GAAG,IAAI,CAACC,SAAS;IAC/B,MAAMC,KAAK,GAAG,IAAI,CAACC,QAAQ,CAAC,CAAC;IAE7B,OAAQC,MAAM,IAAK;MACjB,SAAS;;MACT,OAAO;QACLC,aAAa,EAAE;UACbC,OAAO,EAAEF,MAAM,CAACG,cAAc;UAC9BC,OAAO,EAAEJ,MAAM,CAACK,cAAc;UAC9BC,KAAK,EAAEN,MAAM,CAACO,YAAY;UAC1BC,MAAM,EAAER,MAAM,CAACS;QACjB,CAAC;QACDC,UAAU,EAAE;UACVR,OAAO,EAAEX,aAAa,CACpBO,KAAK,EACLL,SAAS,CAACO,MAAM,CAACW,aAAa,EAAEjB,MAAM,CACxC,CAAC;UACDU,OAAO,EAAEb,aAAa,CACpBO,KAAK,EACLL,SAAS,CAACO,MAAM,CAACY,aAAa,EAAElB,MAAM,CACxC,CAAC;UACDY,KAAK,EAAEf,aAAa,CAACO,KAAK,EAAEL,SAAS,CAACO,MAAM,CAACa,WAAW,EAAEnB,MAAM,CAAC,CAAC;UAClEc,MAAM,EAAEjB,aAAa,CAACO,KAAK,EAAEL,SAAS,CAACO,MAAM,CAACc,YAAY,EAAEpB,MAAM,CAAC;QACrE,CAAC;QACDE;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH;;AAEA;AACA,OAAO,MAAMmB,MAAM,GAAG5B,gBAAgB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js deleted file mode 100644 index d892b3a6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -import { withSequence, withTiming } from '../../animation'; -import { BaseAnimationBuilder } from '../animationBuilder'; - -/** - * Transforms layout starting from the X-axis and width first, followed by the - * Y-axis and height. You can modify the behavior by chaining methods like - * `.springify()` or `.duration(500)`. - * - * You pass it to the `layout` prop on [an Animated - * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). - * - * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#sequenced-transition - */ -export class SequencedTransition extends BaseAnimationBuilder { - static presetName = 'SequencedTransition'; - reversed = false; - static createInstance() { - return new SequencedTransition(); - } - static reverse() { - const instance = SequencedTransition.createInstance(); - return instance.reverse(); - } - reverse() { - this.reversed = !this.reversed; - return this; - } - build = () => { - const delayFunction = this.getDelayFunction(); - const callback = this.callbackV; - const delay = this.getDelay(); - const halfDuration = (this.durationV ?? 500) / 2; - const config = { - duration: halfDuration - }; - const reverse = this.reversed; - return values => { - 'worklet'; - - return { - initialValues: { - originX: values.currentOriginX, - originY: values.currentOriginY, - width: values.currentWidth, - height: values.currentHeight - }, - animations: { - originX: delayFunction(delay, withSequence(withTiming(reverse ? values.currentOriginX : values.targetOriginX, config), withTiming(values.targetOriginX, config))), - originY: delayFunction(delay, withSequence(withTiming(reverse ? values.targetOriginY : values.currentOriginY, config), withTiming(values.targetOriginY, config))), - width: delayFunction(delay, withSequence(withTiming(reverse ? values.currentWidth : values.targetWidth, config), withTiming(values.targetWidth, config))), - height: delayFunction(delay, withSequence(withTiming(reverse ? values.targetHeight : values.currentHeight, config), withTiming(values.targetHeight, config))) - }, - callback - }; - }; - }; -} -//# sourceMappingURL=SequencedTransition.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js.map deleted file mode 100644 index a445ecbe..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["withSequence","withTiming","BaseAnimationBuilder","SequencedTransition","presetName","reversed","createInstance","reverse","instance","build","delayFunction","getDelayFunction","callback","callbackV","delay","getDelay","halfDuration","durationV","config","duration","values","initialValues","originX","currentOriginX","originY","currentOriginY","width","currentWidth","height","currentHeight","animations","targetOriginX","targetOriginY","targetWidth","targetHeight"],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/SequencedTransition.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,YAAY,EAAEC,UAAU,QAAQ,iBAAiB;AAK1D,SAASC,oBAA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cAAc,GAAGH,MAAM,CAACW,aAAa,EACtDb,MACF,CAAC,EACDjB,UAAU,CAACmB,MAAM,CAACW,aAAa,EAAEb,MAAM,CACzC,CACF,CAAC;UACDM,OAAO,EAAEd,aAAa,CACpBI,KAAK,EACLd,YAAY,CACVC,UAAU,CACRM,OAAO,GAAGa,MAAM,CAACY,aAAa,GAAGZ,MAAM,CAACK,cAAc,EACtDP,MACF,CAAC,EACDjB,UAAU,CAACmB,MAAM,CAACY,aAAa,EAAEd,MAAM,CACzC,CACF,CAAC;UACDQ,KAAK,EAAEhB,aAAa,CAClBI,KAAK,EACLd,YAAY,CACVC,UAAU,CACRM,OAAO,GAAGa,MAAM,CAACO,YAAY,GAAGP,MAAM,CAACa,WAAW,EAClDf,MACF,CAAC,EACDjB,UAAU,CAACmB,MAAM,CAACa,WAAW,EAAEf,MAAM,CACvC,CACF,CAAC;UACDU,MAAM,EAAElB,aAAa,CACnBI,KAAK,EACLd,YAAY,CACVC,UAAU,CACRM,OAAO,GAAGa,MAAM,CAACc,YAAY,GAAGd,MAAM,CAACS,aAAa,EACpDX,MACF,CAAC,EACDjB,UAAU,CAACmB,MAAM,CAACc,YAAY,EAAEhB,MAAM,CACxC,CACF;QACF,CAAC;QACDN;MACF,CAAC;IACH,CAAC;EACH,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/index.js deleted file mode 100644 index a0a7c771..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export * from './CurvedTransition'; -export * from './EntryExitTransition'; -export * from './FadingTransition'; -export * from './JumpingTransition'; -export * from './LinearTransition'; -export * from './SequencedTransition'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/index.js.map deleted file mode 100644 index a61c7eca..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/defaultTransitions/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["layoutReanimation/defaultTransitions/index.ts"],"mappings":"AAAA,YAAY;;AACZ,cAAc,oBAAoB;AAClC,cAAc,uBAAuB;AACrC,cAAc,oBAAoB;AAClC,cAAc,qBAAqB;AACnC,cAAc,oBAAoB;AAClC,cAAc,uBAAuB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/index.js deleted file mode 100644 index b8a98218..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -import './animationsManager'; -export * from './animationBuilder'; -export * from './defaultAnimations'; -export * from './defaultTransitions'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/index.js.map deleted file mode 100644 index 7390e535..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["layoutReanimation/index.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAO,qBAAqB;AAE5B,cAAc,oBAAoB;AAClC,cAAc,qBAAqB;AACnC,cAAc,sBAAsB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/Easing.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/Easing.web.js deleted file mode 100644 index 03846e59..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/Easing.web.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -// Those are the easings that can be implemented using Bezier curves. -// Others should be done as CSS animations -export const WebEasings = { - linear: [0, 0, 1, 1], - ease: [0.42, 0, 1, 1], - quad: [0.11, 0, 0.5, 0], - cubic: [0.32, 0, 0.67, 0], - sin: [0.12, 0, 0.39, 0], - circle: [0.55, 0, 1, 0.45], - exp: [0.7, 0, 0.84, 0] -}; -export function getEasingByName(easingName) { - return `cubic-bezier(${WebEasings[easingName].toString()})`; -} -export function maybeGetBezierEasing(easing) { - if (typeof easing === 'string') { - return null; - } - if (!('factory' in easing)) { - return null; - } - const easingFactory = easing.factory; - if (!('__closure' in easingFactory)) { - return null; - } - const closure = easingFactory.__closure; - if (!('Bezier' in closure)) { - return null; - } - return `cubic-bezier(${closure.x1}, ${closure.y1}, ${closure.x2}, ${closure.y2})`; -} -//# sourceMappingURL=Easing.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/Easing.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/Easing.web.js.map deleted file mode 100644 index f7948241..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/Easing.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["WebEasings","linear","ease","quad","cubic","sin","circle","exp","getEasingByName","easingName","toString","maybeGetBezierEasing","easing","easingFactory","factory","closure","__closure","x1","y1","x2","y2"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/Easing.web.ts"],"mappings":"AAAA,YAAY;;AAYZ;AACA;AACA,OAAO,MAAMA,UAAU,GAAG;EACxBC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EACpBC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;EACrBC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;EACvBC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;EACzBC,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;EACvBC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;EAC1BC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC;AACvB,CAAC;AAED,OAAO,SAASC,eAAeA,CAACC,UAA2B,EAAE;EAC3D,OAAO,gBAAgBT,UAAU,CAACS,UAAU,CAAC,CAACC,QAAQ,CAAC,CAAC,GAAG;AAC7D;AAEA,OAAO,SAASC,oBAAoBA,CAClCC,MAA6B,EACd;EACf,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,OAAO,IAAI;EACb;EAEA,IAAI,EAAE,SAAS,IAAIA,MAAM,CAAC,EAAE;IAC1B,OAAO,IAAI;EACb;EAEA,MAAMC,aAAa,GAAGD,MAAM,CAACE,OAAO;EAEpC,IAAI,EAAE,WAAW,IAAID,aAAa,CAAC,EAAE;IACnC,OAAO,IAAI;EACb;EAEA,MAAME,OAAO,GAAGF,aAAa,CAACG,SAA0B;EAExD,IAAI,EAAE,QAAQ,IAAID,OAAO,CAAC,EAAE;IAC1B,OAAO,IAAI;EACb;EAEA,OAAO,gBAAgBA,OAAO,CAACE,EAAE,KAAKF,OAAO,CAACG,EAAE,KAAKH,OAAO,CAACI,EAAE,KAAKJ,OAAO,CAACK,EAAE,GAAG;AACnF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Bounce.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Bounce.web.js deleted file mode 100644 index d2e6df82..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Bounce.web.js +++ /dev/null @@ -1,363 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_BOUNCE_TIME = 0.6; -export const BounceInData = { - BounceIn: { - name: 'BounceIn', - style: { - 0: { - transform: [{ - scale: 0 - }] - }, - 55: { - transform: [{ - scale: 1.2 - }] - }, - 70: { - transform: [{ - scale: 0.9 - }] - }, - 85: { - transform: [{ - scale: 1.1 - }] - }, - 100: { - transform: [{ - scale: 1 - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceInRight: { - name: 'BounceInRight', - style: { - 0: { - transform: [{ - translateX: '100vw' - }] - }, - 55: { - transform: [{ - translateX: '-20px' - }] - }, - 70: { - transform: [{ - translateX: '10px' - }] - }, - 85: { - transform: [{ - translateX: '-10px' - }] - }, - 100: { - transform: [{ - translateX: '0px' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceInLeft: { - name: 'BounceInLeft', - style: { - 0: { - transform: [{ - translateX: '-100vw' - }] - }, - 55: { - transform: [{ - translateX: '20px' - }] - }, - 70: { - transform: [{ - translateX: '-10px' - }] - }, - 85: { - transform: [{ - translateX: '10px' - }] - }, - 100: { - transform: [{ - translateX: '0px' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceInUp: { - name: 'BounceInUp', - style: { - 0: { - transform: [{ - translateY: '-100vh' - }] - }, - 55: { - transform: [{ - translateY: '20px' - }] - }, - 70: { - transform: [{ - translateY: '-10px' - }] - }, - 85: { - transform: [{ - translateY: '10px' - }] - }, - 100: { - transform: [{ - translateY: '0px' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceInDown: { - name: 'BounceInDown', - style: { - 0: { - transform: [{ - translateY: '100vh' - }] - }, - 55: { - transform: [{ - translateY: '-20px' - }] - }, - 70: { - transform: [{ - translateY: '10px' - }] - }, - 85: { - transform: [{ - translateY: '-10px' - }] - }, - 100: { - transform: [{ - translateY: '0px' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - } -}; -export const BounceOutData = { - BounceOut: { - name: 'BounceOut', - style: { - 0: { - transform: [{ - scale: 1 - }] - }, - 15: { - transform: [{ - scale: 1.1 - }] - }, - 30: { - transform: [{ - scale: 0.9 - }] - }, - 45: { - transform: [{ - scale: 1.2 - }] - }, - 100: { - transform: [{ - scale: 0.1 - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceOutRight: { - name: 'BounceOutRight', - style: { - 0: { - transform: [{ - translateX: '0px' - }] - }, - 15: { - transform: [{ - translateX: '-10px' - }] - }, - 30: { - transform: [{ - translateX: '10px' - }] - }, - 45: { - transform: [{ - translateX: '-20px' - }] - }, - 100: { - transform: [{ - translateX: '100vh' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceOutLeft: { - name: 'BounceOutLeft', - style: { - 0: { - transform: [{ - translateX: '0px' - }] - }, - 15: { - transform: [{ - translateX: '10px' - }] - }, - 30: { - transform: [{ - translateX: '-10px' - }] - }, - 45: { - transform: [{ - translateX: '20px' - }] - }, - 100: { - transform: [{ - translateX: '-100vh' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceOutUp: { - name: 'BounceOutUp', - style: { - 0: { - transform: [{ - translateY: '0px' - }] - }, - 15: { - transform: [{ - translateY: '10px' - }] - }, - 30: { - transform: [{ - translateY: '-10px' - }] - }, - 45: { - transform: [{ - translateY: '20px' - }] - }, - 100: { - transform: [{ - translateY: '-100vh' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - }, - BounceOutDown: { - name: 'BounceOutDown', - style: { - 0: { - transform: [{ - translateY: '0px' - }] - }, - 15: { - transform: [{ - translateY: '-10px' - }] - }, - 30: { - transform: [{ - translateY: '10px' - }] - }, - 45: { - transform: [{ - translateY: '-20px' - }] - }, - 100: { - transform: [{ - translateY: '100vh' - }] - } - }, - duration: DEFAULT_BOUNCE_TIME - } -}; -export const BounceIn = { - BounceIn: { - style: convertAnimationObjectToKeyframes(BounceInData.BounceIn), - duration: BounceInData.BounceIn.duration - }, - BounceInRight: { - style: convertAnimationObjectToKeyframes(BounceInData.BounceInRight), - duration: BounceInData.BounceInRight.duration - }, - BounceInLeft: { - style: convertAnimationObjectToKeyframes(BounceInData.BounceInLeft), - duration: BounceInData.BounceInLeft.duration - }, - BounceInUp: { - style: convertAnimationObjectToKeyframes(BounceInData.BounceInUp), - duration: BounceInData.BounceInUp.duration - }, - BounceInDown: { - style: convertAnimationObjectToKeyframes(BounceInData.BounceInDown), - duration: BounceInData.BounceInDown.duration - } -}; -export const BounceOut = { - BounceOut: { - style: convertAnimationObjectToKeyframes(BounceOutData.BounceOut), - duration: BounceOutData.BounceOut.duration - }, - BounceOutRight: { - style: convertAnimationObjectToKeyframes(BounceOutData.BounceOutRight), - duration: BounceOutData.BounceOutRight.duration - }, - BounceOutLeft: { - style: convertAnimationObjectToKeyframes(BounceOutData.BounceOutLeft), - duration: BounceOutData.BounceOutLeft.duration - }, - BounceOutUp: { - style: convertAnimationObjectToKeyframes(BounceOutData.BounceOutUp), - duration: BounceOutData.BounceOutUp.duration - }, - BounceOutDown: { - style: convertAnimationObjectToKeyframes(BounceOutData.BounceOutDown), - duration: BounceOutData.BounceOutDown.duration - } -}; -//# sourceMappingURL=Bounce.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Bounce.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Bounce.web.js.map deleted file mode 100644 index 63f9ea60..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Bounce.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_BOUNCE_TIME","BounceInData","BounceIn","name","style","transform","scale","duration","BounceInRight","translateX","BounceInLeft","BounceInUp","translateY","BounceInDown","BounceOutData","BounceOut","BounceOutRight","BounceOutLeft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,CAAC;IACjEJ,QAAQ,EAAEN,YAAY,CAACU,UAAU,CAACJ;EACpC,CAAC;EACDM,YAAY,EAAE;IACZT,KAAK,EAAEL,iCAAiC,CAACE,YAAY,CAACY,YAAY,CAAC;IACnEN,QAAQ,EAAEN,YAAY,CAACY,YAAY,CAACN;EACtC;AACF,CAAC;AAED,OAAO,MAAMQ,SAAS,GAAG;EACvBA,SAAS,EAAE;IACTX,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACC,SAAS,CAAC;IACjER,QAAQ,EAAEO,aAAa,CAACC,SAAS,CAACR;EACpC,CAAC;EACDS,cAAc,EAAE;IACdZ,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACE,cAAc,CAAC;IACtET,QAAQ,EAAEO,aAAa,CAACE,cAAc,CAACT;EACzC,CAAC;EACDU,aAAa,EAAE;IACbb,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACG,aAAa,CAAC;IACrEV,QAAQ,EAAEO,aAAa,CAACG,aAAa,CAACV;EACxC,CAAC;EACDW,WAAW,EAAE;IACXd,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACI,WAAW,CAAC;IACnEX,QAAQ,EAAEO,aAAa,CAACI,WAAW,CAACX;EACtC,CAAC;EACDY,aAAa,EAAE;IACbf,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACK,aAAa,CAAC;IACrEZ,QAAQ,EAAEO,aAAa,CAACK,aAAa,CAACZ;EACxC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Fade.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Fade.web.js deleted file mode 100644 index a9fbd725..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Fade.web.js +++ /dev/null @@ -1,221 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_FADE_TIME = 0.3; -export const FadeInData = { - FadeIn: { - name: 'FadeIn', - style: { - 0: { - opacity: 0 - }, - 100: { - opacity: 1 - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeInRight: { - name: 'FadeInRight', - style: { - 0: { - opacity: 0, - transform: [{ - translateX: '25px' - }] - }, - 100: { - opacity: 1, - transform: [{ - translateX: '0px' - }] - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeInLeft: { - name: 'FadeInLeft', - style: { - 0: { - opacity: 0, - transform: [{ - translateX: '-25px' - }] - }, - 100: { - opacity: 1, - transform: [{ - translateX: '0px' - }] - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeInUp: { - name: 'FadeInUp', - style: { - 0: { - opacity: 0, - transform: [{ - translateY: '-25px' - }] - }, - 100: { - opacity: 1, - transform: [{ - translateY: '0px' - }] - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeInDown: { - name: 'FadeInDown', - style: { - 0: { - opacity: 0, - transform: [{ - translateY: '25px' - }] - }, - 100: { - opacity: 1, - transform: [{ - translateY: '0px' - }] - } - }, - duration: DEFAULT_FADE_TIME - } -}; -export const FadeOutData = { - FadeOut: { - name: 'FadeOut', - style: { - 0: { - opacity: 1 - }, - 100: { - opacity: 0 - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeOutRight: { - name: 'FadeOutRight', - style: { - 0: { - opacity: 1, - transform: [{ - translateX: '0px' - }] - }, - 100: { - opacity: 0, - transform: [{ - translateX: '25px' - }] - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeOutLeft: { - name: 'FadeOutLeft', - style: { - 0: { - opacity: 1, - transform: [{ - translateX: '0px' - }] - }, - 100: { - opacity: 0, - transform: [{ - translateX: '-25px' - }] - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeOutUp: { - name: 'FadeOutUp', - style: { - 0: { - opacity: 1, - transform: [{ - translateY: '0px' - }] - }, - 100: { - opacity: 0, - transform: [{ - translateY: '-25px' - }] - } - }, - duration: DEFAULT_FADE_TIME - }, - FadeOutDown: { - name: 'FadeOutDown', - style: { - 0: { - opacity: 1, - transform: [{ - translateY: '0px' - }] - }, - 100: { - opacity: 0, - transform: [{ - translateY: '25px' - }] - } - }, - duration: DEFAULT_FADE_TIME - } -}; -export const FadeIn = { - FadeIn: { - style: convertAnimationObjectToKeyframes(FadeInData.FadeIn), - duration: FadeInData.FadeIn.duration - }, - FadeInRight: { - style: convertAnimationObjectToKeyframes(FadeInData.FadeInRight), - duration: FadeInData.FadeInRight.duration - }, - FadeInLeft: { - style: convertAnimationObjectToKeyframes(FadeInData.FadeInLeft), - duration: FadeInData.FadeInLeft.duration - }, - FadeInUp: { - style: convertAnimationObjectToKeyframes(FadeInData.FadeInUp), - duration: FadeInData.FadeInUp.duration - }, - FadeInDown: { - style: convertAnimationObjectToKeyframes(FadeInData.FadeInDown), - duration: FadeInData.FadeInDown.duration - } -}; -export const FadeOut = { - FadeOut: { - style: convertAnimationObjectToKeyframes(FadeOutData.FadeOut), - duration: FadeOutData.FadeOut.duration - }, - FadeOutRight: { - style: convertAnimationObjectToKeyframes(FadeOutData.FadeOutRight), - duration: FadeOutData.FadeOutRight.duration - }, - FadeOutLeft: { - style: convertAnimationObjectToKeyframes(FadeOutData.FadeOutLeft), - duration: FadeOutData.FadeOutLeft.duration - }, - FadeOutUp: { - style: convertAnimationObjectToKeyframes(FadeOutData.FadeOutUp), - duration: FadeOutData.FadeOutUp.duration - }, - FadeOutDown: { - style: convertAnimationObjectToKeyframes(FadeOutData.FadeOutDown), - duration: FadeOutData.FadeOutDown.duration - } -}; -//# sourceMappingURL=Fade.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Fade.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Fade.web.js.map deleted file mode 100644 index 71ca66c2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Fade.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_FADE_TIME","FadeInData","FadeIn","name","style","opacity","duration","FadeInRight","transform","translateX","FadeInLeft","FadeInUp","translateY","FadeInDown","FadeOutData","FadeOut","FadeOutRight","FadeOutLeft","FadeOutUp","FadeOutDown"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Fade.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,iBAAiB,GAAG,GAAG;AAE7B,OAAO,MAAMC,UAAU,GAAG;EACxBC,MAAM,EAAE;IACNC,IAAI,EAAE,QAAQ;IACdC,KAAK,EAAE;MACL,CAAC,EAAE;QAAEC,OAAO,EAAE;MAAE,CAAC;MACjB,GAAG,EAAE;QAAEA,OAAO,EAAE;MAAE;IACpB,CAAC;IACDC,QAAQ,EAAEN;EACZ,CAAC;EAEDO,WAAW,EAAE;IACXJ,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,OAAO,EAAE,CAAC;QACVG,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAO,CAAC;MACpC,CAAC;MACD,GAAG,EAAE;QACHJ,OAAO,EAAE,CAAC;QACVG,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAM,CAAC;MACnC;IACF,CAAC;IACDH,QAAQ,EAAEN;EACZ,CAAC;EAEDU,UAAU,EAAE;IACVP,IAAI,EAAE,YAAY;IAClBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,OAAO,EAAE,CAAC;QACVG,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAQ,CAAC;MACrC,CAAC;MACD,GAAG,EAAE;QACHJ,OAAO,EAAE,CAAC;QACVG,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAM,CAAC;MACnC;IACF,CAAC;IACDH,QAAQ,EAAEN;EACZ,CAAC;EAEDW,QAAQ,EAAE;IACRR,IAAI,EAAE,UA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,CAACS,UAAU,CAAC;IAC/DJ,QAAQ,EAAEL,UAAU,CAACS,UAAU,CAACJ;EAClC,CAAC;EACDK,QAAQ,EAAE;IACRP,KAAK,EAAEL,iCAAiC,CAACE,UAAU,CAACU,QAAQ,CAAC;IAC7DL,QAAQ,EAAEL,UAAU,CAACU,QAAQ,CAACL;EAChC,CAAC;EACDO,UAAU,EAAE;IACVT,KAAK,EAAEL,iCAAiC,CAACE,UAAU,CAACY,UAAU,CAAC;IAC/DP,QAAQ,EAAEL,UAAU,CAACY,UAAU,CAACP;EAClC;AACF,CAAC;AAED,OAAO,MAAMS,OAAO,GAAG;EACrBA,OAAO,EAAE;IACPX,KAAK,EAAEL,iCAAiC,CAACe,WAAW,CAACC,OAAO,CAAC;IAC7DT,QAAQ,EAAEQ,WAAW,CAACC,OAAO,CAACT;EAChC,CAAC;EACDU,YAAY,EAAE;IACZZ,KAAK,EAAEL,iCAAiC,CAACe,WAAW,CAACE,YAAY,CAAC;IAClEV,QAAQ,EAAEQ,WAAW,CAACE,YAAY,CAACV;EACrC,CAAC;EACDW,WAAW,EAAE;IACXb,KAAK,EAAEL,iCAAiC,CAACe,WAAW,CAACG,WAAW,CAAC;IACjEX,QAAQ,EAAEQ,WAAW,CAACG,WAAW,CAACX;EACpC,CAAC;EACDY,SAAS,EAAE;IACTd,KAAK,EAAEL,iCAAiC,CAACe,WAAW,CAACI,SAAS,CAAC;IAC/DZ,QAAQ,EAAEQ,WAAW,CAACI,SAAS,CAACZ;EAClC,CAAC;EACDa,WAAW,EAAE;IACXf,KAAK,EAAEL,iCAAiC,CAACe,WAAW,CAACK,WAAW,CAAC;IACjEb,QAAQ,EAAEQ,WAAW,CAACK,WAAW,CAACb;EACpC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Flip.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Flip.web.js deleted file mode 100644 index 6dbba51c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Flip.web.js +++ /dev/null @@ -1,293 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_FLIP_TIME = 0.3; -export const FlipInData = { - FlipInYRight: { - name: 'FlipInYRight', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateY: '90deg', - translateX: '100%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateY: '0deg', - translateX: '0%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipInYLeft: { - name: 'FlipInYLeft', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateY: '-90deg', - translateX: '-100%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateY: '0deg', - translateX: '0%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipInXUp: { - name: 'FlipInXUp', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateX: '90deg', - translateY: '-100%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateX: '0deg', - translateY: '0%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipInXDown: { - name: 'FlipInXDown', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateX: '-90deg', - translateY: '100%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateX: '0deg', - translateY: '0%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipInEasyX: { - name: 'FlipInEasyX', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateX: '90deg' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateX: '0deg' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipInEasyY: { - name: 'FlipInEasyY', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateY: '90deg' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateY: '0deg' - }] - } - }, - duration: DEFAULT_FLIP_TIME - } -}; -export const FlipOutData = { - FlipOutYRight: { - name: 'FlipOutYRight', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateY: '0deg', - translateX: '0%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateY: '90deg', - translateX: '100%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipOutYLeft: { - name: 'FlipOutYLeft', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateY: '0deg', - translateX: '0%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateY: '-90deg', - translateX: '-100%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipOutXUp: { - name: 'FlipOutXUp', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateX: '0deg', - translateY: '0%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateX: '90deg', - translateY: '-100%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipOutXDown: { - name: 'FlipOutXDown', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateX: '0deg', - translateY: '0%' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateX: '-90deg', - translateY: '100%' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipOutEasyX: { - name: 'FlipOutEasyX', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateX: '0deg' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateX: '90deg' - }] - } - }, - duration: DEFAULT_FLIP_TIME - }, - FlipOutEasyY: { - name: 'FlipOutEasyY', - style: { - 0: { - transform: [{ - perspective: '500px', - rotateY: '0deg' - }] - }, - 100: { - transform: [{ - perspective: '500px', - rotateY: '90deg' - }] - } - }, - duration: DEFAULT_FLIP_TIME - } -}; -export const FlipIn = { - FlipInYRight: { - style: convertAnimationObjectToKeyframes(FlipInData.FlipInYRight), - duration: FlipInData.FlipInYRight.duration - }, - FlipInYLeft: { - style: convertAnimationObjectToKeyframes(FlipInData.FlipInYLeft), - duration: FlipInData.FlipInYLeft.duration - }, - FlipInXUp: { - style: convertAnimationObjectToKeyframes(FlipInData.FlipInXUp), - duration: FlipInData.FlipInXUp.duration - }, - FlipInXDown: { - style: convertAnimationObjectToKeyframes(FlipInData.FlipInXDown), - duration: FlipInData.FlipInXDown.duration - }, - FlipInEasyX: { - style: convertAnimationObjectToKeyframes(FlipInData.FlipInEasyX), - duration: FlipInData.FlipInEasyX.duration - }, - FlipInEasyY: { - style: convertAnimationObjectToKeyframes(FlipInData.FlipInEasyY), - duration: FlipInData.FlipInEasyY.duration - } -}; -export const FlipOut = { - FlipOutYRight: { - style: convertAnimationObjectToKeyframes(FlipOutData.FlipOutYRight), - duration: FlipOutData.FlipOutYRight.duration - }, - FlipOutYLeft: { - style: convertAnimationObjectToKeyframes(FlipOutData.FlipOutYLeft), - duration: FlipOutData.FlipOutYLeft.duration - }, - FlipOutXUp: { - style: convertAnimationObjectToKeyframes(FlipOutData.FlipOutXUp), - duration: FlipOutData.FlipOutXUp.duration - }, - FlipOutXDown: { - style: convertAnimationObjectToKeyframes(FlipOutData.FlipOutXDown), - duration: FlipOutData.FlipOutXDown.duration - }, - FlipOutEasyX: { - style: convertAnimationObjectToKeyframes(FlipOutData.FlipOutEasyX), - duration: FlipOutData.FlipOutEasyX.duration - }, - FlipOutEasyY: { - style: convertAnimationObjectToKeyframes(FlipOutData.FlipOutEasyY), - duration: FlipOutData.FlipOutEasyY.duration - } -}; -//# sourceMappingURL=Flip.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Flip.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Flip.web.js.map deleted file mode 100644 index ef5ffbb1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Flip.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_FLIP_TIME","FlipInData","FlipInYRight","name","style","transform","perspective","rotateY","translateX","duration","FlipInYLeft","FlipInXUp","rotateX","translateY","FlipInXDown","FlipInEasyX","FlipInEasyY","FlipOutData","FlipOutYRight","FlipOutYLeft","FlipOutXUp","FlipOutXDown","FlipOutEasyX","FlipOutEasyY","FlipIn","FlipOut"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Flip.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,iBAAiB,GAAG,GAAG;AAE7B,OAAO,MAAMC,UAAU,GAAG;EACxBC,YAAY,EAAE;IACZC,IAAI,EAAE,cAAc;IACpBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACEC,WAAW,EAAE,OAAO;UACpBC,OAAO,EAAE,OAAO;UAChBC,UAAU,EAAE;QACd,CAAC;MAEL,CAAC;MACD,GAAG,EAAE;QACHH,SAAS,EAAE,CACT;UACEC,WAAW,EAAE,OAAO;UACpBC,OAAO,EAAE,MAAM;UACfC,UAAU,EAAE;QACd,CAAC;MAEL;IACF,CAAC;IACDC,QAAQ,EAAET;EACZ,CAAC;EAEDU,WAAW,EAAE;IACXP,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACEC,WAAW,EAAE,OAAO;UACpBC,OAAO,EAAE,QAAQ;UACjBC,UAAU,EAAE;QACd,CAAC;MAEL,CAAC;MACD,GAAG,EAAE;QACHH,SAAS,EAAE,CACT;UACEC,WAAW,EAAE,OAAO;UACpBC,OAAO,EAAE,MAAM;UACfC,UAAU,EAAE;QACd,CAAC;MAEL;IACF,CAAC;IACDC,QAAQ,EAAET;EACZ,CAAC;EAEDW,SAAS,EAAE;IACTR,IAAI,EAAE,WAAW;IACjBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACEC,WAAW,EAAE,OAAO;UACpBM,OAAO,EAAE,OAAO;UAChBC,UAAU,EAAE;QACd,CAAC;MAEL,CAAC;MACD,GAAG,EAAE;QACHR,SAAS,EA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ClEd,QAAQ,EAAEQ,WAAW,CAACM,YAAY,CAACd;EACrC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Lightspeed.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Lightspeed.web.js deleted file mode 100644 index d58b811f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Lightspeed.web.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_LIGHTSPEED_TIME = 0.3; -export const LightSpeedInData = { - LightSpeedInRight: { - name: 'LightSpeedInRight', - style: { - 0: { - transform: [{ - translateX: '100vw', - skewX: '-45deg' - }], - opacity: 0 - }, - 70: { - transform: [{ - skewX: '10deg' - }] - }, - 85: { - transform: [{ - skewX: '-5deg' - }] - }, - 100: { - transform: [{ - skewX: '0deg' - }] - } - }, - duration: DEFAULT_LIGHTSPEED_TIME - }, - LightSpeedInLeft: { - name: 'LightSpeedInLeft', - style: { - 0: { - transform: [{ - translateX: '-100vw', - skewX: '45deg' - }], - opacity: 0 - }, - 70: { - transform: [{ - skewX: '-10deg' - }] - }, - 85: { - transform: [{ - skewX: '5deg' - }] - }, - 100: { - transform: [{ - skewX: '0deg' - }] - } - }, - duration: DEFAULT_LIGHTSPEED_TIME - } -}; -export const LightSpeedOutData = { - LightSpeedOutRight: { - name: 'LightSpeedOutRight', - style: { - 0: { - transform: [{ - translateX: '0vw', - skewX: '0deg' - }], - opacity: 1 - }, - 100: { - transform: [{ - translateX: '100vw', - skewX: '-45deg' - }], - opacity: 0 - } - }, - duration: DEFAULT_LIGHTSPEED_TIME - }, - LightSpeedOutLeft: { - name: 'LightSpeedOutLeft', - style: { - 0: { - transform: [{ - translateX: '0vw', - skew: '0deg' - }], - opacity: 1 - }, - 100: { - transform: [{ - translateX: '-100vw', - skew: '45deg' - }], - opacity: 0 - } - }, - duration: DEFAULT_LIGHTSPEED_TIME - } -}; -export const LightSpeedIn = { - LightSpeedInRight: { - style: convertAnimationObjectToKeyframes(LightSpeedInData.LightSpeedInRight), - duration: LightSpeedInData.LightSpeedInRight.duration - }, - LightSpeedInLeft: { - style: convertAnimationObjectToKeyframes(LightSpeedInData.LightSpeedInLeft), - duration: LightSpeedInData.LightSpeedInLeft.duration - } -}; -export const LightSpeedOut = { - LightSpeedOutRight: { - style: convertAnimationObjectToKeyframes(LightSpeedOutData.LightSpeedOutRight), - duration: LightSpeedOutData.LightSpeedOutRight.duration - }, - LightSpeedOutLeft: { - style: convertAnimationObjectToKeyframes(LightSpeedOutData.LightSpeedOutLeft), - duration: LightSpeedOutData.LightSpeedOutLeft.duration - } -}; -//# sourceMappingURL=Lightspeed.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Lightspeed.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Lightspeed.web.js.map deleted file mode 100644 index 385f3cc6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Lightspeed.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_LIGHTSPEED_TIME","LightSpeedInData","LightSpeedInRight","name","style","transform","translateX","skewX","opacity","duration","LightSpeedInLeft","LightSpeedOutData","LightSpeedOutRight","LightSpeedOutLeft","skew","LightSpeedIn","LightSpeedOut"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Lightspeed.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,uBAAuB,GAAG,GAAG;AAEnC,OAAO,MAAMC,gBAAgB,GAAG;EAC9BC,iBAAiB,EAAE;IACjBC,IAAI,EAAE,mBAAmB;IACzBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE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CAAC,CAAC;QACrDC,OAAO,EAAE;MACX;IACF,CAAC;IACDC,QAAQ,EAAET;EACZ,CAAC;EAEDa,iBAAiB,EAAE;IACjBV,IAAI,EAAE,mBAAmB;IACzBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE,KAAK;UAAEQ,IAAI,EAAE;QAAO,CAAC,CAAC;QAChDN,OAAO,EAAE;MACX,CAAC;MACD,GAAG,EAAE;QACHH,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE,QAAQ;UAAEQ,IAAI,EAAE;QAAQ,CAAC,CAAC;QACpDN,OAAO,EAAE;MACX;IACF,CAAC;IACDC,QAAQ,EAAET;EACZ;AACF,CAAC;AAED,OAAO,MAAMe,YAAY,GAAG;EAC1Bb,iBAAiB,EAAE;IACjBE,KAAK,EAAEL,iCAAiC,CACtCE,gBAAgB,CAACC,iBACnB,CAAC;IACDO,QAAQ,EAAER,gBAAgB,CAACC,iBAAiB,CAACO;EAC/C,CAAC;EACDC,gBAAgB,EAAE;IAChBN,KAAK,EAAEL,iCAAiC,CAACE,gBAAgB,CAACS,gBAAgB,CAAC;IAC3ED,QAAQ,EAAER,gBAAgB,CAACS,gBAAgB,CAACD;EAC9C;AACF,CAAC;AAED,OAAO,MAAMO,aAAa,GAAG;EAC3BJ,kBAAkB,EAAE;IAClBR,KAAK,EAAEL,iCAAiC,CACtCY,iBAAiB,CAACC,kBACpB,CAAC;IACDH,QAAQ,EAAEE,iBAAiB,CAACC,kBAAkB,CAACH;EACjD,CAAC;EACDI,iBAAiB,EAAE;IACjBT,KAAK,EAAEL,iCAAiC,CACtCY,iBAAiB,CAACE,iBACpB,CAAC;IACDJ,QAAQ,EAAEE,iBAAiB,CAACE,iBAAiB,CAACJ;EAChD;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Pinwheel.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Pinwheel.web.js deleted file mode 100644 index 54bdedc5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Pinwheel.web.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_PINWHEEL_TIME = 0.3; -export const PinwheelData = { - PinwheelIn: { - name: 'PinwheelIn', - style: { - 0: { - transform: [{ - rotate: '5rad', - scale: 0 - }], - opacity: 0 - }, - 100: { - transform: [{ - rotate: '0deg', - scale: 1 - }], - opacity: 1 - } - }, - duration: DEFAULT_PINWHEEL_TIME - }, - PinwheelOut: { - name: 'PinwheelOut', - style: { - 0: { - transform: [{ - rotate: '0rad', - scale: 1 - }], - opacity: 1 - }, - 100: { - transform: [{ - rotate: '5rad', - scale: 0 - }], - opacity: 0 - } - }, - duration: DEFAULT_PINWHEEL_TIME - } -}; -export const Pinwheel = { - PinwheelIn: { - style: convertAnimationObjectToKeyframes(PinwheelData.PinwheelIn), - duration: PinwheelData.PinwheelIn.duration - }, - PinwheelOut: { - style: convertAnimationObjectToKeyframes(PinwheelData.PinwheelOut), - duration: PinwheelData.PinwheelOut.duration - } -}; -//# sourceMappingURL=Pinwheel.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Pinwheel.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Pinwheel.web.js.map deleted file mode 100644 index 44557894..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Pinwheel.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_PINWHEEL_TIME","PinwheelData","PinwheelIn","name","style","transform","rotate","scale","opacity","duration","PinwheelOut","Pinwheel"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Pinwheel.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,qBAAqB,GAAG,GAAG;AAEjC,OAAO,MAAMC,YAAY,GAAG;EAC1BC,UAAU,EAAE;IACVC,IAAI,EAAE,YAAY;IAClBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAE,MAAM;UAAEC,KAAK,EAAE;QAAE,CAAC,CAAC;QACzCC,OAAO,EAAE;MACX,CAAC;MAED,GAAG,EAAE;QACHH,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAE,MAAM;UAAEC,KAAK,EAAE;QAAE,CAAC,CAAC;QACzCC,OAAO,EAAE;MACX;IACF,CAAC;IACDC,QAAQ,EAAET;EACZ,CAAC;EAEDU,WAAW,EAAE;IACXP,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAE,MAAM;UAAEC,KAAK,EAAE;QAAE,CAAC,CAAC;QACzCC,OAAO,EAAE;MACX,CAAC;MACD,GAAG,EAAE;QACHH,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAE,MAAM;UAAEC,KAAK,EAAE;QAAE,CAAC,CAAC;QACzCC,OAAO,EAAE;MACX;IACF,CAAC;IACDC,QAAQ,EAAET;EACZ;AACF,CAAC;AAED,OAAO,MAAMW,QAAQ,GAAG;EACtBT,UAAU,EAAE;IACVE,KAAK,EAAEL,iCAAiC,CAACE,YAAY,CAACC,UAAU,CAAC;IACjEO,QAAQ,EAAER,YAAY,CAACC,UAAU,CAACO;EACpC,CAAC;EACDC,WAAW,EAAE;IACXN,KAAK,EAAEL,iCAAiC,CAACE,YAAY,CAACS,WAAW,CAAC;IAClED,QAAQ,EAAER,YAAY,CAACS,WAAW,CAACD;EACrC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Roll.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Roll.web.js deleted file mode 100644 index ffb2cc0c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Roll.web.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_ROLL_TIME = 0.3; -export const RollInData = { - RollInLeft: { - name: 'RollInLeft', - style: { - 0: { - transform: [{ - translateX: '-100vw', - rotate: '-180deg' - }] - }, - 100: { - transform: [{ - translateX: '0vw', - rotate: '0deg' - }] - } - }, - duration: DEFAULT_ROLL_TIME - }, - RollInRight: { - name: 'RollInRight', - style: { - 0: { - transform: [{ - translateX: '100vw', - rotate: '180deg' - }] - }, - 100: { - transform: [{ - translateX: '0vw', - rotate: '0deg' - }] - } - }, - duration: DEFAULT_ROLL_TIME - } -}; -export const RollOutData = { - RollOutLeft: { - name: 'RollOutLeft', - style: { - 0: { - transform: [{ - translateX: '0vw', - rotate: '0deg' - }] - }, - 100: { - transform: [{ - translateX: '-100vw', - rotate: '-180deg' - }] - } - }, - duration: DEFAULT_ROLL_TIME - }, - RollOutRight: { - name: 'RollOutRight', - style: { - 0: { - transform: [{ - translateX: '0vw', - rotate: '0deg' - }] - }, - 100: { - transform: [{ - translateX: '100vw', - rotate: '180deg' - }] - } - }, - duration: DEFAULT_ROLL_TIME - } -}; -export const RollIn = { - RollInLeft: { - style: convertAnimationObjectToKeyframes(RollInData.RollInLeft), - duration: RollInData.RollInLeft.duration - }, - RollInRight: { - style: convertAnimationObjectToKeyframes(RollInData.RollInRight), - duration: RollInData.RollInRight.duration - } -}; -export const RollOut = { - RollOutLeft: { - style: convertAnimationObjectToKeyframes(RollOutData.RollOutLeft), - duration: RollOutData.RollOutLeft.duration - }, - RollOutRight: { - style: convertAnimationObjectToKeyframes(RollOutData.RollOutRight), - duration: RollOutData.RollOutRight.duration - } -}; -//# sourceMappingURL=Roll.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Roll.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Roll.web.js.map deleted file mode 100644 index ea478fb0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Roll.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_ROLL_TIME","RollInData","RollInLeft","name","style","transform","translateX","rotate","duration","RollInRight","RollOutData","RollOutLeft","RollOutRight","RollIn","RollOut"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Roll.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,iBAAiB,GAAG,GAAG;AAE7B,OAAO,MAAMC,UAAU,GAAG;EACxBC,UAAU,EAAE;IACVC,IAAI,EAAE,YAAY;IAClBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE,QAAQ;UAAEC,MAAM,EAAE;QAAU,CAAC;MACzD,CAAC;MACD,GAAG,EAAE;QACHF,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE,KAAK;UAAEC,MAAM,EAAE;QAAO,CAAC;MACnD;IACF,CAAC;IACDC,QAAQ,EAAER;EACZ,CAAC;EAEDS,WAAW,EAAE;IACXN,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE,OAAO;UAAEC,MAAM,EAAE;QAAS,CAAC;MACvD,CAAC;MACD,GAAG,EAAE;QACHF,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE,KAAK;UAAEC,MAAM,EAAE;QAAO,CAAC;MACnD;IACF,CAAC;IACDC,QAAQ,EAAER;EACZ;AACF,CAAC;AAED,OAAO,MAAMU,WAAW,GAAG;EACzBC,WAA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ACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Rotate.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Rotate.web.js deleted file mode 100644 index 578316fd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Rotate.web.js +++ /dev/null @@ -1,221 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_ROTATE_TIME = 0.3; -export const RotateInData = { - RotateInDownLeft: { - name: 'RotateInDownLeft', - style: { - 0: { - transform: [{ - translateX: '-50%', - translateY: '-250%', - rotate: '-90deg' - }], - opacity: 0 - }, - 100: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - } - }, - duration: DEFAULT_ROTATE_TIME - }, - RotateInDownRight: { - name: 'RotateInDownRight', - style: { - 0: { - transform: [{ - translateX: '40%', - translateY: '-250%', - rotate: '90deg' - }], - opacity: 0 - }, - 100: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - } - }, - duration: DEFAULT_ROTATE_TIME - }, - RotateInUpLeft: { - name: 'RotateInUpLeft', - style: { - 0: { - transform: [{ - translateX: '-40%', - translateY: '250%', - rotate: '90deg' - }], - opacity: 0 - }, - 100: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - } - }, - duration: DEFAULT_ROTATE_TIME - }, - RotateInUpRight: { - name: 'RotateInUpRight', - style: { - 0: { - transform: [{ - translateX: '40%', - translateY: '250%', - rotate: '-90deg' - }], - opacity: 0 - }, - 100: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - } - }, - duration: DEFAULT_ROTATE_TIME - } -}; -export const RotateOutData = { - RotateOutDownLeft: { - name: 'RotateOutDownLeft', - style: { - 0: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - }, - 100: { - transform: [{ - translateX: '-40%', - translateY: '250%', - rotate: '90deg' - }], - opacity: 0 - } - }, - duration: DEFAULT_ROTATE_TIME - }, - RotateOutDownRight: { - name: 'RotateOutDownRight', - style: { - 0: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - }, - 100: { - transform: [{ - translateX: '40%', - translateY: '250%', - rotate: '-90deg' - }], - opacity: 0 - } - }, - duration: DEFAULT_ROTATE_TIME - }, - RotateOutUpLeft: { - name: 'RotateOutUpLeft', - style: { - 0: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - }, - 100: { - transform: [{ - translateX: '-40%', - translateY: '-250%', - rotate: '-90deg' - }], - opacity: 0 - } - }, - duration: DEFAULT_ROTATE_TIME - }, - RotateOutUpRight: { - name: 'RotateOutUpRight', - style: { - 0: { - transform: [{ - translateX: '0%', - translateY: '0%', - rotate: '0deg' - }], - opacity: 1 - }, - 100: { - transform: [{ - translateX: '40%', - translateY: '-250%', - rotate: '90deg' - }], - opacity: 0 - } - }, - duration: DEFAULT_ROTATE_TIME - } -}; -export const RotateIn = { - RotateInDownLeft: { - style: convertAnimationObjectToKeyframes(RotateInData.RotateInDownLeft), - duration: RotateInData.RotateInDownLeft.duration - }, - RotateInDownRight: { - style: convertAnimationObjectToKeyframes(RotateInData.RotateInDownRight), - duration: RotateInData.RotateInDownRight.duration - }, - RotateInUpLeft: { - style: convertAnimationObjectToKeyframes(RotateInData.RotateInUpLeft), - duration: RotateInData.RotateInUpLeft.duration - }, - RotateInUpRight: { - style: convertAnimationObjectToKeyframes(RotateInData.RotateInUpRight), - duration: RotateInData.RotateInUpRight.duration - } -}; -export const RotateOut = { - RotateOutDownLeft: { - style: convertAnimationObjectToKeyframes(RotateOutData.RotateOutDownLeft), - duration: RotateOutData.RotateOutDownLeft.duration - }, - RotateOutDownRight: { - style: convertAnimationObjectToKeyframes(RotateOutData.RotateOutDownRight), - duration: RotateOutData.RotateOutDownRight.duration - }, - RotateOutUpLeft: { - style: convertAnimationObjectToKeyframes(RotateOutData.RotateOutUpLeft), - duration: RotateOutData.RotateOutUpLeft.duration - }, - RotateOutUpRight: { - style: convertAnimationObjectToKeyframes(RotateOutData.RotateOutUpRight), - duration: RotateOutData.RotateOutUpRight.duration - } -}; -//# sourceMappingURL=Rotate.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Rotate.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Rotate.web.js.map deleted file mode 100644 index c214ceff..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Rotate.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_ROTATE_TIME","RotateInData","RotateInDownLeft","name","style","transform","translateX","translateY","rotate","opacity","duration","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutData","RotateOutDownLeft","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight","RotateIn","RotateOut"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Rotate.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,mBAAmB,GAAG,GAAG;AAE/B,OAAO,MAAMC,YAAY,GAAG;EAC1BC,gBAAgB,EAAE;IAChBC,IAAI,EAAE,kBAAkB;IACxBC,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACEC,UAAU,EAAE,MAAM;UAClBC,UAAU,EAAE,OAAO;UACnBC,MAAM,EAAE;QACV,CAAC,CACF;QACDC,OAAO,EAAE;MACX,CAAC;MACD,GAAG,EAAE;QACHJ,SAAS,EAAE,CACT;UACEC,UAAU,EAAE,IAAI;UAChBC,UAAU,EAAE,IAAI;UAChBC,MAAM,EAAE;QACV,CAAC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AC;IACzEL,QAAQ,EAAEI,aAAa,CAACC,iBAAiB,CAACL;EAC5C,CAAC;EACDM,kBAAkB,EAAE;IAClBZ,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACE,kBAAkB,CAAC;IAC1EN,QAAQ,EAAEI,aAAa,CAACE,kBAAkB,CAACN;EAC7C,CAAC;EACDO,eAAe,EAAE;IACfb,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACG,eAAe,CAAC;IACvEP,QAAQ,EAAEI,aAAa,CAACG,eAAe,CAACP;EAC1C,CAAC;EACDQ,gBAAgB,EAAE;IAChBd,KAAK,EAAEL,iCAAiC,CAACe,aAAa,CAACI,gBAAgB,CAAC;IACxER,QAAQ,EAAEI,aAAa,CAACI,gBAAgB,CAACR;EAC3C;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Slide.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Slide.web.js deleted file mode 100644 index 94f2e11e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Slide.web.js +++ /dev/null @@ -1,173 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_SLIDE_TIME = 0.3; -export const SlideInData = { - SlideInRight: { - name: 'SlideInRight', - style: { - 0: { - transform: [{ - translateX: '100vw' - }] - }, - 100: { - transform: [{ - translateX: '0%' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - }, - SlideInLeft: { - name: 'SlideInLeft', - style: { - 0: { - transform: [{ - translateX: '-100vw' - }] - }, - 100: { - transform: [{ - translateX: '0%' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - }, - SlideInUp: { - name: 'SlideInUp', - style: { - 0: { - transform: [{ - translateY: '-100vh' - }] - }, - 100: { - transform: [{ - translateY: '0%' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - }, - SlideInDown: { - name: 'SlideInDown', - style: { - 0: { - transform: [{ - translateY: '100vh' - }] - }, - 100: { - transform: [{ - translateY: '0%' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - } -}; -export const SlideOutData = { - SlideOutRight: { - name: 'SlideOutRight', - style: { - 0: { - transform: [{ - translateX: '0%' - }] - }, - 100: { - transform: [{ - translateX: '100vw' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - }, - SlideOutLeft: { - name: 'SlideOutLeft', - style: { - 0: { - transform: [{ - translateX: '0%' - }] - }, - 100: { - transform: [{ - translateX: '-100vw' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - }, - SlideOutUp: { - name: 'SlideOutUp', - style: { - 0: { - transform: [{ - translateY: '0%' - }] - }, - 100: { - transform: [{ - translateY: '-100vh' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - }, - SlideOutDown: { - name: 'SlideOutDown', - style: { - 0: { - transform: [{ - translateY: '0%' - }] - }, - 100: { - transform: [{ - translateY: '100vh' - }] - } - }, - duration: DEFAULT_SLIDE_TIME - } -}; -export const SlideIn = { - SlideInRight: { - style: convertAnimationObjectToKeyframes(SlideInData.SlideInRight), - duration: SlideInData.SlideInRight.duration - }, - SlideInLeft: { - style: convertAnimationObjectToKeyframes(SlideInData.SlideInLeft), - duration: SlideInData.SlideInLeft.duration - }, - SlideInUp: { - style: convertAnimationObjectToKeyframes(SlideInData.SlideInUp), - duration: SlideInData.SlideInUp.duration - }, - SlideInDown: { - style: convertAnimationObjectToKeyframes(SlideInData.SlideInDown), - duration: SlideInData.SlideInDown.duration - } -}; -export const SlideOut = { - SlideOutRight: { - style: convertAnimationObjectToKeyframes(SlideOutData.SlideOutRight), - duration: SlideOutData.SlideOutRight.duration - }, - SlideOutLeft: { - style: convertAnimationObjectToKeyframes(SlideOutData.SlideOutLeft), - duration: SlideOutData.SlideOutLeft.duration - }, - SlideOutUp: { - style: convertAnimationObjectToKeyframes(SlideOutData.SlideOutUp), - duration: SlideOutData.SlideOutUp.duration - }, - SlideOutDown: { - style: convertAnimationObjectToKeyframes(SlideOutData.SlideOutDown), - duration: SlideOutData.SlideOutDown.duration - } -}; -//# sourceMappingURL=Slide.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Slide.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Slide.web.js.map deleted file mode 100644 index 19bffbc3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Slide.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_SLIDE_TIME","SlideInData","SlideInRight","name","style","transform","translateX","duration","SlideInLeft","SlideInUp","translateY","SlideInDown","SlideOutData","SlideOutRight","SlideOutLeft","SlideOutUp","SlideOutDown","SlideIn","SlideOut"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Slide.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,kBAAkB,GAAG,GAAG;AAE9B,OAAO,MAAMC,WAAW,GAAG;EACzBC,YAAY,EAAE;IACZC,IAAI,EAAE,cAAc;IACpBC,KAAK,EAAE;MACL,CAAC,EAAE;QAAEC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAQ,CAAC;MAAE,CAAC;MAC3C,GAAG,EAAE;QAAED,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAK,CAAC;MAAE;IAC3C,CAAC;IACDC,QAAQ,EAAEP;EACZ,CAAC;EAEDQ,WAAW,EAAE;IACXL,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE;MACL,CAAC,EAAE;QAAEC,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAS,CAAC;MAAE,CAAC;MAC5C,GAAG,EAAE;QAAED,SAAS,EAAE,CAAC;UAAEC,UAAU,EAAE;QAAK,CAAC;MAAE;IAC3C,CAAC;IACD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;EACDO,YAAY,EAAE;IACZV,KAAK,EAAEL,iCAAiC,CAACa,YAAY,CAACE,YAAY,CAAC;IACnEP,QAAQ,EAAEK,YAAY,CAACE,YAAY,CAACP;EACtC,CAAC;EACDQ,UAAU,EAAE;IACVX,KAAK,EAAEL,iCAAiC,CAACa,YAAY,CAACG,UAAU,CAAC;IACjER,QAAQ,EAAEK,YAAY,CAACG,UAAU,CAACR;EACpC,CAAC;EACDS,YAAY,EAAE;IACZZ,KAAK,EAAEL,iCAAiC,CAACa,YAAY,CAACI,YAAY,CAAC;IACnET,QAAQ,EAAEK,YAAY,CAACI,YAAY,CAACT;EACtC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Stretch.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Stretch.web.js deleted file mode 100644 index af1a84f6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Stretch.web.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_STRETCH_TIME = 0.3; -export const StretchInData = { - StretchInX: { - name: 'StretchInX', - style: { - 0: { - transform: [{ - scaleX: 0 - }] - }, - 100: { - transform: [{ - scaleX: 1 - }] - } - }, - duration: DEFAULT_STRETCH_TIME - }, - StretchInY: { - name: 'StretchInY', - style: { - 0: { - transform: [{ - scaleY: 0 - }] - }, - 100: { - transform: [{ - scaleY: 1 - }] - } - }, - duration: DEFAULT_STRETCH_TIME - } -}; -export const StretchOutData = { - StretchOutX: { - name: 'StretchOutX', - style: { - 0: { - transform: [{ - scaleX: 1 - }] - }, - 100: { - transform: [{ - scaleX: 0 - }] - } - }, - duration: DEFAULT_STRETCH_TIME - }, - StretchOutY: { - name: 'StretchOutY', - style: { - 0: { - transform: [{ - scaleY: 1 - }] - }, - 100: { - transform: [{ - scaleY: 0 - }] - } - }, - duration: DEFAULT_STRETCH_TIME - } -}; -export const StretchIn = { - StretchInX: { - style: convertAnimationObjectToKeyframes(StretchInData.StretchInX), - duration: StretchInData.StretchInX.duration - }, - StretchInY: { - style: convertAnimationObjectToKeyframes(StretchInData.StretchInY), - duration: StretchInData.StretchInY.duration - } -}; -export const StretchOut = { - StretchOutX: { - style: convertAnimationObjectToKeyframes(StretchOutData.StretchOutX), - duration: StretchOutData.StretchOutX.duration - }, - StretchOutY: { - style: convertAnimationObjectToKeyframes(StretchOutData.StretchOutY), - duration: StretchOutData.StretchOutY.duration - } -}; -//# sourceMappingURL=Stretch.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Stretch.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Stretch.web.js.map deleted file mode 100644 index e02b6efc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Stretch.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_STRETCH_TIME","StretchInData","StretchInX","name","style","transform","scaleX","duration","StretchInY","scaleY","StretchOutData","StretchOutX","StretchOutY","StretchIn","StretchOut"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/animation/Stretch.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,iCAAiC,QAAQ,oBAAoB;AAEtE,MAAMC,oBAAoB,GAAG,GAAG;AAEhC,OAAO,MAAMC,aAAa,GAAG;EAC3BC,UAAU,EAAE;IACVC,IAAI,EAAE,YAAY;IAClBC,KAAK,EAAE;MACL,CAAC,EAAE;QAAEC,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE,CAAC;MAAE,CAAC;MACjC,GAAG,EAAE;QAAED,SAAS,EAAE,CAAC;UAAEC,MAAM,EAAE;QAAE,CAAC;MAAE;IACpC,CAAC;IACDC,QAAQ,EAAEP;EACZ,CAAC;EAEDQ,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C,CAACW,cAAc,CAACC,WAAW,CAAC;IACpEJ,QAAQ,EAAEG,cAAc,CAACC,WAAW,CAACJ;EACvC,CAAC;EACDK,WAAW,EAAE;IACXR,KAAK,EAAEL,iCAAiC,CAACW,cAAc,CAACE,WAAW,CAAC;IACpEL,QAAQ,EAAEG,cAAc,CAACE,WAAW,CAACL;EACvC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Zoom.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Zoom.web.js deleted file mode 100644 index b69a8390..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Zoom.web.js +++ /dev/null @@ -1,361 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from '../animationParser'; -const DEFAULT_ZOOM_TIME = 0.3; -export const ZoomInData = { - ZoomIn: { - name: 'ZoomIn', - style: { - 0: { - transform: [{ - scale: 0 - }] - }, - 100: { - transform: [{ - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInRotate: { - name: 'ZoomInRotate', - style: { - 0: { - transform: [{ - scale: 0, - rotate: '0.3rad' - }] - }, - 100: { - transform: [{ - scale: 1, - rotate: '0deg' - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInRight: { - name: 'ZoomInRight', - style: { - 0: { - transform: [{ - translateX: '100vw', - scale: 0 - }] - }, - 100: { - transform: [{ - translateX: '0%', - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInLeft: { - name: 'ZoomInLeft', - style: { - 0: { - transform: [{ - translateX: '-100vw', - scale: 0 - }] - }, - 100: { - transform: [{ - translateX: '0%', - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInUp: { - name: 'ZoomInUp', - style: { - 0: { - transform: [{ - translateY: '-100vh', - scale: 0 - }] - }, - 100: { - transform: [{ - translateY: '0%', - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInDown: { - name: 'ZoomInDown', - style: { - 0: { - transform: [{ - translateY: '100vh', - scale: 0 - }] - }, - 100: { - transform: [{ - translateY: '0%', - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInEasyUp: { - name: 'ZoomInEasyUp', - style: { - 0: { - transform: [{ - translateY: '-100%', - scale: 0 - }] - }, - 100: { - transform: [{ - translateY: '0%', - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomInEasyDown: { - name: 'ZoomInEasyDown', - style: { - 0: { - transform: [{ - translateY: '100%', - scale: 0 - }] - }, - 100: { - transform: [{ - translateY: '0%', - scale: 1 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - } -}; -export const ZoomOutData = { - ZoomOut: { - name: 'ZoomOut', - style: { - 0: { - transform: [{ - scale: 1 - }] - }, - 100: { - transform: [{ - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutRotate: { - name: 'ZoomOutRotate', - style: { - 0: { - transform: [{ - scale: 1, - rotate: '0rad' - }] - }, - 100: { - transform: [{ - scale: 0, - rotate: '0.3rad' - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutRight: { - name: 'ZoomOutRight', - style: { - 0: { - transform: [{ - translateX: '0vw', - scale: 1 - }] - }, - 100: { - transform: [{ - translateX: '100vw', - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutLeft: { - name: 'ZoomOutLeft', - style: { - 0: { - transform: [{ - translateX: '0vw', - scale: 1 - }] - }, - 100: { - transform: [{ - translateX: '-100vw', - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutUp: { - name: 'ZoomOutUp', - style: { - 0: { - transform: [{ - translateX: '0vh', - scale: 1 - }] - }, - 100: { - transform: [{ - translateY: '-100vh', - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutDown: { - name: 'ZoomOutDown', - style: { - 0: { - transform: [{ - translateX: '0vh', - scale: 1 - }] - }, - 100: { - transform: [{ - translateY: '100vh', - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutEasyUp: { - name: 'ZoomOutEasyUp', - style: { - 0: { - transform: [{ - translateY: '0%', - scale: 1 - }] - }, - 100: { - transform: [{ - translateY: '-100%', - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - }, - ZoomOutEasyDown: { - name: 'ZoomOutEasyDown', - style: { - 0: { - transform: [{ - translateY: '0%', - scale: 1 - }] - }, - 100: { - transform: [{ - translateY: '100%', - scale: 0 - }] - } - }, - duration: DEFAULT_ZOOM_TIME - } -}; -export const ZoomIn = { - ZoomIn: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomIn), - duration: ZoomInData.ZoomIn.duration - }, - ZoomInRotate: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInRotate), - duration: ZoomInData.ZoomInRotate.duration - }, - ZoomInRight: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInRight), - duration: ZoomInData.ZoomInRight.duration - }, - ZoomInLeft: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInLeft), - duration: ZoomInData.ZoomInLeft.duration - }, - ZoomInUp: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInUp), - duration: ZoomInData.ZoomInUp.duration - }, - ZoomInDown: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInDown), - duration: ZoomInData.ZoomInDown.duration - }, - ZoomInEasyUp: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInEasyUp), - duration: ZoomInData.ZoomInEasyUp.duration - }, - ZoomInEasyDown: { - style: convertAnimationObjectToKeyframes(ZoomInData.ZoomInEasyDown), - duration: ZoomInData.ZoomInEasyDown.duration - } -}; -export const ZoomOut = { - ZoomOut: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOut), - duration: ZoomOutData.ZoomOut.duration - }, - ZoomOutRotate: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutRotate), - duration: ZoomOutData.ZoomOutRotate.duration - }, - ZoomOutRight: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutRight), - duration: ZoomOutData.ZoomOutRight.duration - }, - ZoomOutLeft: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutLeft), - duration: ZoomOutData.ZoomOutLeft.duration - }, - ZoomOutUp: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutUp), - duration: ZoomOutData.ZoomOutUp.duration - }, - ZoomOutDown: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutDown), - duration: ZoomOutData.ZoomOutDown.duration - }, - ZoomOutEasyUp: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutEasyUp), - duration: ZoomOutData.ZoomOutEasyUp.duration - }, - ZoomOutEasyDown: { - style: convertAnimationObjectToKeyframes(ZoomOutData.ZoomOutEasyDown), - duration: ZoomOutData.ZoomOutEasyDown.duration - } -}; -//# sourceMappingURL=Zoom.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Zoom.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Zoom.web.js.map deleted file mode 100644 index 16ca3b28..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animation/Zoom.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","DEFAULT_ZOOM_TIME","ZoomInData","ZoomIn","name","style","transform","scale","duration","ZoomInRotate","rotate","ZoomInRight","translateX","ZoomInLeft","ZoomInUp","translateY","ZoomInDown","ZoomInEasyUp","ZoomInEasyDown","ZoomOutData","ZoomOut","ZoomOutRotate","ZoomOutRight","ZoomOutLeft","ZoomOutUp","ZoomOutDown","ZoomOutEasyUp","ZoomOutEasy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AC;EACDmB,eAAe,EAAE;IACftB,KAAK,EAAEL,iCAAiC,CAACmB,WAAW,CAACQ,eAAe,CAAC;IACrEnB,QAAQ,EAAEW,WAAW,CAACQ,eAAe,CAACnB;EACxC;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationParser.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationParser.js deleted file mode 100644 index 5cb2ed16..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationParser.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import { WebEasings } from './Easing.web'; -export function convertAnimationObjectToKeyframes(animationObject) { - let keyframe = `@keyframes ${animationObject.name} { `; - for (const [timestamp, style] of Object.entries(animationObject.style)) { - const step = timestamp === 'from' ? 0 : timestamp === 'to' ? 100 : timestamp; - keyframe += `${step}% { `; - for (const [property, values] of Object.entries(style)) { - if (property === 'easing') { - let easingName = 'linear'; - if (values in WebEasings) { - easingName = values; - } else if (values.name in WebEasings) { - easingName = values.name; - } - keyframe += `animation-timing-function: cubic-bezier(${WebEasings[easingName].toString()});`; - continue; - } - if (property === 'originX') { - keyframe += `left: ${values}px; `; - continue; - } - if (property === 'originY') { - keyframe += `top: ${values}px; `; - continue; - } - if (property !== 'transform') { - keyframe += `${property}: ${values}; `; - continue; - } - keyframe += `transform:`; - values.forEach(value => { - for (const [transformProperty, transformPropertyValue] of Object.entries(value)) { - keyframe += ` ${transformProperty}(${transformPropertyValue})`; - } - }); - keyframe += `; `; // Property end - } - keyframe += `} `; // Timestamp end - } - keyframe += `} `; // Keyframe end - - return keyframe; -} -//# sourceMappingURL=animationParser.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationParser.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationParser.js.map deleted file mode 100644 index 8300e99a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationParser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["WebEasings","convertAnimationObjectToKeyframes","animationObject","keyframe","name","timestamp","style","Object","entries","step","property","values","easingName","toString","forEach","value","transformProperty","transformPropertyValue"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/animationParser.ts"],"mappings":"AAAA,YAAY;;AAKZ,SAASA,UAAU,QAAQ,cAAc;AAwCzC,OAAO,SAASC,iCAAiCA,CAC/CC,eAA8B,EAC9B;EACA,IAAIC,QAAQ,GAAG,cAAcD,eAAe,CAACE,IAAI,KAAK;EAEtD,KAAK,MAAM,CAACC,SAAS,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACN,eAAe,CAACI,KAAK,CAAC,EAAE;IACtE,MAAMG,IAAI,GACRJ,SAAS,KAAK,MAAM,GAAG,CAAC,GAAGA,SAAS,KAAK,IAAI,GAAG,GAAG,GAAGA,SAAS;IAEjEF,QAAQ,IAAI,GAAGM,IAAI,MAAM;IAEzB,KAAK,MAAM,CAACC,QAAQ,EAAEC,MAAM,CAAC,IAAIJ,MAAM,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACtD,IAAII,QAAQ,KAAK,QAAQ,EAAE;QACzB,IAAIE,UAA2B,GAAG,QAAQ;QAE1C,IAAID,MAAM,IAAIX,UAAU,EAAE;UACxBY,UAAU,GAAGD,MAAM;QACrB,CAAC,MAAM,IAAIA,MAAM,CAACP,IAAI,IAAIJ,UAAU,EAAE;UACpCY,UAAU,GAAGD,MAAM,CAACP,IAAI;QAC1B;QAEAD,QAAQ,IAAI,2CAA2CH,UAAU,CAC/DY,UAAU,CACX,CAACC,QAAQ,CAAC,CAAC,IAAI;QAEhB;MACF;MAEA,IAAIH,QAAQ,KAAK,SAAS,EAAE;QAC1BP,QAAQ,IAAI,SAASQ,MAAM,MAAM;QACjC;MACF;MAEA,IAAID,QAAQ,KAAK,SAAS,EAAE;QAC1BP,QAAQ,IAAI,QAAQQ,MAAM,MAAM;QAChC;MACF;MAEA,IAAID,QAAQ,KAAK,WAAW,EAAE;QAC5BP,QAAQ,IAAI,GAAGO,QAAQ,KAAKC,MAAM,IAAI;QACtC;MACF;MAEAR,QAAQ,IAAI,YAAY;MAExBQ,MAAM,CAACG,OAAO,CAAEC,KAAuC,IAAK;QAC1D,KAAK,MAAM,CACTC,iBAAiB,EACjBC,sBAAsB,CACvB,IAAIV,MAAM,CAACC,OAAO,CAACO,KAAK,CAAC,EAAE;UAC1BZ,QAAQ,IAAI,IAAIa,iBAAiB,IAAIC,sBAAsB,GAAG;QAChE;MACF,CAAC,CAAC;MACFd,QAAQ,IAAI,IAAI,CAAC,CAAC;IACpB;IACAA,QAAQ,IAAI,IAAI,CAAC,CAAC;EACpB;EACAA,QAAQ,IAAI,IAAI,CAAC,CAAC;;EAElB,OAAOA,QAAQ;AACjB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationsManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationsManager.js deleted file mode 100644 index 467d9d05..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationsManager.js +++ /dev/null @@ -1,121 +0,0 @@ -'use strict'; - -import { logger } from '../../common'; -import { LayoutAnimationType } from '../../commonTypes'; -import { EasingNameSymbol } from '../../Easing'; -import { Keyframe } from '../animationBuilder'; -import { makeElementVisible } from './componentStyle'; -import { getProcessedConfig, handleExitingAnimation, handleLayoutTransition, maybeModifyStyleForKeyframe, setElementAnimation } from './componentUtils'; -import { Animations } from './config'; -import { createAnimationWithInitialValues, createCustomKeyFrameAnimation } from './createAnimation'; -import { areDOMRectsEqual } from './domUtils'; -function chooseConfig(animationType, props) { - const config = animationType === LayoutAnimationType.ENTERING ? props.entering : animationType === LayoutAnimationType.EXITING ? props.exiting : animationType === LayoutAnimationType.LAYOUT ? props.layout : null; - return config; -} -function checkUndefinedAnimationFail(initialAnimationName, needsCustomization) { - // This prevents crashes if we try to set animations that are not defined. - // We don't care about layout transitions or custom keyframes since they're created dynamically - if (initialAnimationName in Animations || needsCustomization) { - return false; - } - logger.warn("Couldn't load entering/exiting animation. Current version supports only predefined animations with modifiers: duration, delay, easing, randomizeDelay, withCallback, reducedMotion."); - return true; -} -function maybeReportOverwrittenProperties(keyframe, styles) { - const propertyRegex = /([a-zA-Z-]+)(?=:)/g; - const animationProperties = new Set(); - for (const match of keyframe.matchAll(propertyRegex)) { - animationProperties.add(match[1]); - } - const commonProperties = Array.from(styles).filter(style => animationProperties.has(style)); - if (commonProperties.length === 0) { - return; - } - logger.warn(`${commonProperties.length === 1 ? 'Property' : 'Properties'} [${commonProperties.join(', ')}] may be overwritten by a layout animation. Please wrap your component with an animated view and apply the layout animation on the wrapper.`); -} -function chooseAction(animationType, animationConfig, element, transitionData) { - switch (animationType) { - case LayoutAnimationType.ENTERING: - setElementAnimation(element, animationConfig, true); - break; - case LayoutAnimationType.LAYOUT: - transitionData.reversed = animationConfig.reversed; - handleLayoutTransition(element, animationConfig, transitionData); - break; - case LayoutAnimationType.EXITING: - handleExitingAnimation(element, animationConfig); - break; - } -} -function tryGetAnimationConfig(props, animationType) { - const config = chooseConfig(animationType, props); - if (!config) { - return null; - } - const isLayoutTransition = animationType === LayoutAnimationType.LAYOUT; - const isCustomKeyframe = config instanceof Keyframe; - const hasInitialValues = config.initialValues !== undefined; - let animationName; - if (isCustomKeyframe) { - animationName = createCustomKeyFrameAnimation(config.definitions); - } else if (typeof config === 'function') { - animationName = config.presetName; - } else { - animationName = config.constructor.presetName; - } - if (hasInitialValues) { - animationName = createAnimationWithInitialValues(animationName, config.initialValues); - } - const shouldFail = checkUndefinedAnimationFail(animationName, isLayoutTransition || isCustomKeyframe || hasInitialValues); - if (shouldFail) { - return null; - } - if (isCustomKeyframe) { - const keyframeTimestamps = Object.keys(config.definitions); - if (!(keyframeTimestamps.includes('100') || keyframeTimestamps.includes('to'))) { - logger.warn(`Neither '100' nor 'to' was specified in Keyframe definition. This may result in wrong final position of your component. One possible solution is to duplicate last timestamp in definition as '100' (or 'to')`); - } - } - const animationConfig = getProcessedConfig(animationName, animationType, config); - return animationConfig; -} -export function startWebLayoutAnimation(props, element, animationType, transitionData) { - const animationConfig = tryGetAnimationConfig(props, animationType); - maybeModifyStyleForKeyframe(element, props.entering); - if (animationConfig?.animationName in Animations) { - maybeReportOverwrittenProperties(Animations[animationConfig?.animationName].style, element.style); - } - if (animationConfig) { - chooseAction(animationType, animationConfig, element, transitionData); - } else { - makeElementVisible(element, 0); - } -} -export function tryActivateLayoutTransition(props, element, snapshot) { - if (!props.layout) { - return; - } - const rect = element.getBoundingClientRect(); - if (areDOMRectsEqual(rect, snapshot)) { - return; - } - const enteringAnimation = props.layout.enteringV?.presetName; - const exitingAnimation = props.layout.exitingV?.presetName; - const deltaX = (snapshot.width - rect.width) / 2; - const deltaY = (snapshot.height - rect.height) / 2; - const transitionData = { - translateX: snapshot.x - rect.x + deltaX, - translateY: snapshot.y - rect.y + deltaY, - scaleX: snapshot.width / rect.width, - scaleY: snapshot.height / rect.height, - reversed: false, - // This field is used only in `SequencedTransition`, so by default it will be false - easingX: props.layout.easingXV?.[EasingNameSymbol] ?? 'ease', - easingY: props.layout.easingYV?.[EasingNameSymbol] ?? 'ease', - entering: enteringAnimation, - exiting: exitingAnimation - }; - startWebLayoutAnimation(props, element, LayoutAnimationType.LAYOUT, transitionData); -} -//# sourceMappingURL=animationsManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationsManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationsManager.js.map deleted file mode 100644 index 032e5298..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/animationsManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","LayoutAnimationType","EasingNameSymbol","Keyframe","makeElementVisible","getProcessedConfig","handleExitingAnimation","handleLayoutTransition","maybeModifyStyleForKeyframe","setElementAnimation","Animations","createAnimationWithInitialValues","createCustomKeyFrameAnimation","areDOMRectsEqual","chooseConfig","animationType","props","config","ENTERING","entering","EXITING","exiting","LAYOUT","layout","checkUndefinedAnimationFail","initialAnimationName","needsCustomization","warn","maybeReportOverwrittenProperties","keyframe","styles","propertyRegex","animationProperties","Set","match","matchAll","add","commonProperties","Array","from","filter","style","has","length","join","chooseAction","animationConfig","element","transitionData","reversed","tryGetAnimationConfig","isLayoutTransition","isCustomKeyframe","hasInitialValues","initialValues","undefined","animationName","definitions","presetName","constructor","shouldFail","keyframeTimestamps","Object","keys","includes","startWebLayoutAnimation","tryActivateLayoutTransition","snapshot","rect","getBoundingClientRect","enteringAnimation","enteringV","exitingAnimation","exitingV","deltaX","width","deltaY","height","translateX","x","translateY","y","scaleX","scaleY","easingX","easingXV","easingY","easingYV"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/animationsManager.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,cAAc;AACrC,SAASC,mBAAmB,QAAQ,mBAAmB;AAKvD,SAASC,gBAAgB,QAAQ,cAAc;AAE/C,SAASC,QAAQ,QAAQ,qBAAqB;AAE9C,SAASC,kBAAkB,QAAQ,kBAAkB;AACrD,SACEC,kBAAkB,EAClBC,sBAAsB,EACtBC,sBAAsB,EACtBC,2BAA2B,EAC3BC,mBAAmB,QACd,kBAAkB;AAQzB,SAASC,UAAU,QAAQ,UAAU;AACrC,SACEC,gCAAgC,EAChCC,6BAA6B,QACxB,mBAAmB;AAC1B,SAASC,gBAAgB,QAAQ,YAAY;AAE7C,SAASC,YAAYA,CACnBC,aAAkC,EAClCC,KAAuD,EACvD;EACA,MAAMC,MAAM,GACVF,aAAa,KAAKd,mBAAmB,CAACiB,QAAQ,GAC1CF,KAAK,CAACG,QAAQ,GACdJ,aAAa,KAAKd,mBAAmB,CAACmB,OAAO,GAC3CJ,KAAK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,GAAIxD,KAAK,CAACO,MAAM,CAAkBkD,QAAQ,EAAEf,UAAU;EAE5E,MAAMgB,MAAM,GAAG,CAACP,QAAQ,CAACQ,KAAK,GAAGP,IAAI,CAACO,KAAK,IAAI,CAAC;EAChD,MAAMC,MAAM,GAAG,CAACT,QAAQ,CAACU,MAAM,GAAGT,IAAI,CAACS,MAAM,IAAI,CAAC;EAClD,MAAM7B,cAA8B,GAAG;IACrC8B,UAAU,EAAEX,QAAQ,CAACY,CAAC,GAAGX,IAAI,CAACW,CAAC,GAAGL,MAAM;IACxCM,UAAU,EAAEb,QAAQ,CAACc,CAAC,GAAGb,IAAI,CAACa,CAAC,GAAGL,MAAM;IACxCM,MAAM,EAAEf,QAAQ,CAACQ,KAAK,GAAGP,IAAI,CAACO,KAAK;IACnCQ,MAAM,EAAEhB,QAAQ,CAACU,MAAM,GAAGT,IAAI,CAACS,MAAM;IACrC5B,QAAQ,EAAE,KAAK;IAAE;IACjBmC,OAAO,EACJpE,KAAK,CAACO,MAAM,CAAkB8D,QAAQ,GAAGnF,gBAAgB,CAAC,IAAI,MAAM;IACvEoF,OAAO,EACJtE,KAAK,CAACO,MAAM,CAAkBgE,QAAQ,GAAGrF,gBAAgB,CAAC,IAAI,MAAM;IACvEiB,QAAQ,EAAEmD,iBAAiB;IAC3BjD,OAAO,EAAEmD;EACX,CAAC;EAEDP,uBAAuB,CACrBjD,KAAK,EACL+B,OAAO,EACP9C,mBAAmB,CAACqB,MAAM,EAC1B0B,cACF,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentStyle.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentStyle.js deleted file mode 100644 index 81b0a272..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentStyle.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -import { _updatePropsJS } from '../../ReanimatedModule/js-reanimated'; -export const snapshots = new WeakMap(); -export function makeElementVisible(element, delay) { - if (delay === 0) { - _updatePropsJS({ - visibility: 'initial' - }, element); - } else { - setTimeout(() => { - _updatePropsJS({ - visibility: 'initial' - }, element); - }, delay * 1000); - } -} -function fixElementPosition(element, parent, snapshot) { - const parentRect = parent.getBoundingClientRect(); - const parentBorderTopValue = parseInt(getComputedStyle(parent).borderTopWidth); - const parentBorderLeftValue = parseInt(getComputedStyle(parent).borderLeftWidth); - const dummyRect = element.getBoundingClientRect(); - // getBoundingClientRect returns DOMRect with position of the element with respect to document body. - // However, using position `absolute` doesn't guarantee, that the dummy will be placed relative to body element. - // The trick below allows us to once again get position relative to body, by comparing snapshot with new position of the dummy. - if (dummyRect.top !== snapshot.top) { - element.style.top = `${snapshot.top - parentRect.top - parentBorderTopValue}px`; - } - if (dummyRect.left !== snapshot.left) { - element.style.left = `${snapshot.left - parentRect.left - parentBorderLeftValue}px`; - } -} -export function setElementPosition(element, snapshot) { - element.style.transform = ''; - element.style.position = 'absolute'; - element.style.top = `${snapshot.top}px`; - element.style.left = `${snapshot.left}px`; - element.style.width = `${snapshot.width}px`; - element.style.height = `${snapshot.height}px`; - element.style.margin = '0px'; // tmpElement has absolute position, so margin is not necessary - - if (element.parentElement) { - fixElementPosition(element, element.parentElement, snapshot); - } -} -//# sourceMappingURL=componentStyle.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentStyle.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentStyle.js.map deleted file mode 100644 index 7771a630..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentStyle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["_updatePropsJS","snapshots","WeakMap","makeElementVisible","element","delay","visibility","setTimeout","fixElementPosition","parent","snapshot","parentRect","getBoundingClientRect","parentBorderTopValue","parseInt","getComputedStyle","borderTopWidth","parentBorderLeftValue","borderLeftWidth","dummyRect","top","style","left","setElementPosition","transform","position","width","height","margin","parentElement"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/componentStyle.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,cAAc,QAAQ,sCAAsC;AAerE,OAAO,MAAMC,SAAS,GAAG,IAAIC,OAAO,CAAkC,CAAC;AAEvE,OAAO,SAASC,kBAAkBA,CAACC,OAAoB,EAAEC,KAAa,EAAE;EACtE,IAAIA,KAAK,KAAK,CAAC,EAAE;IACfL,cAAc,CAAC;MAAEM,UAAU,EAAE;IAAU,CAAC,EAAEF,OAAgC,CAAC;EAC7E,CAAC,MAAM;IACLG,UAAU,CAAC,MAAM;MACfP,cAAc,CACZ;QAAEM,UAAU,EAAE;MAAU,CAAC,EACzBF,OACF,CAAC;IACH,CAAC,EAAEC,KAAK,GAAG,IAAI,CAAC;EAClB;AACF;AAEA,SAASG,kBAAkBA,CACzBJ,OAAoB,EACpBK,MAAmB,EACnBC,QAA4B,EAC5B;EACA,MAAMC,UAAU,GAAGF,MAAM,CAACG,qBAAqB,CAAC,CAAC;EAEjD,MAAMC,oBAAoB,GAAGC,QAAQ,CACnCC,gBAAgB,CAACN,MAAM,CAAC,CAACO,cAC3B,CAAC;EAED,MAAMC,qBAAqB,GAAGH,QAAQ,CACpCC,gBAAgB,CAACN,MAAM,CAAC,CAACS,eAC3B,CAAC;EAED,MAAMC,SAAS,GAAGf,OAAO,CAACQ,qBAAqB,CAAC,CAAC;EACjD;EACA;EACA;EACA,IAAIO,SAAS,CAACC,GAAG,KAAKV,QAAQ,CAACU,GAAG,EAAE;IAClChB,OAAO,CAACiB,KAAK,CAACD,GAAG,GAAG,GAClBV,QAAQ,CAACU,GAAG,GAAGT,UAAU,CAACS,GAAG,GAAGP,oBAAoB,IAClD;EACN;EAEA,IAAIM,SAAS,CAACG,IAAI,KAAKZ,QAAQ,CAACY,IAAI,EAAE;IACpClB,OAAO,CAACiB,KAAK,CAACC,IAAI,GAAG,GACnBZ,QAAQ,CAACY,IAAI,GAAGX,UAAU,CAACW,IAAI,GAAGL,qBAAqB,IACrD;EACN;AACF;AAEA,OAAO,SAASM,kBAAkBA,CAChCnB,OAAoB,EACpBM,QAA4B,EAC5B;EACAN,OAAO,CAACiB,KAAK,CAACG,SAAS,GAAG,EAAE;EAC5BpB,OAAO,CAACiB,KAAK,CAACI,QAAQ,GAAG,UAAU;EACnCrB,OAAO,CAACiB,KAAK,CAACD,GAAG,GAAG,GAAGV,QAAQ,CAACU,GAAG,IAAI;EACvChB,OAAO,CAACiB,KAAK,CAACC,IAAI,GAAG,GAAGZ,QAAQ,CAACY,IAAI,IAAI;EACzClB,OAAO,CAACiB,KAAK,CAACK,KAAK,GAAG,GAAGhB,QAAQ,CAACgB,KAAK,IAAI;EAC3CtB,OAAO,CAACiB,KAAK,CAACM,MAAM,GAAG,GAAGjB,QAAQ,CAACiB,MAAM,IAAI;EAC7CvB,OAAO,CAACiB,KAAK,CAACO,MAAM,GAAG,KAAK,CAAC,CAAC;;EAE9B,IAAIxB,OAAO,CAACyB,aAAa,EAAE;IACzBrB,kBAAkB,CAACJ,OAAO,EAAEA,OAAO,CAACyB,aAAa,EAAEnB,QAAQ,CAAC;EAC9D;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentUtils.js deleted file mode 100644 index ec87a230..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentUtils.js +++ /dev/null @@ -1,295 +0,0 @@ -'use strict'; - -import { logger } from '../../common'; -import { LayoutAnimationType, ReduceMotion } from '../../commonTypes'; -import { EasingNameSymbol } from '../../Easing'; -import { _updatePropsJS } from '../../ReanimatedModule/js-reanimated'; -import { ReducedMotionManager } from '../../ReducedMotion'; -import { Keyframe } from '../animationBuilder'; -import { setElementPosition, snapshots } from './componentStyle'; -import { Animations, TransitionType } from './config'; -import { TransitionGenerator } from './createAnimation'; -import { scheduleAnimationCleanup } from './domUtils'; -import { getEasingByName, maybeGetBezierEasing, WebEasings } from './Easing.web'; -import { prepareCurvedTransition } from './transition/Curved.web'; -function getEasingFromConfig(config) { - if (!config.easingV) { - return getEasingByName('linear'); - } - const easingName = config.easingV[EasingNameSymbol]; - if (easingName in WebEasings) { - return getEasingByName(easingName); - } - const bezierEasing = maybeGetBezierEasing(config.easingV); - if (!bezierEasing) { - logger.warn(`Selected easing is not currently supported on web. Using linear easing instead.`); - return getEasingByName('linear'); - } - return bezierEasing; -} -function getRandomDelay(maxDelay = 1000) { - return Math.floor(Math.random() * (maxDelay + 1)) / 1000; -} -function getDelayFromConfig(config) { - const shouldRandomizeDelay = config.randomizeDelay; - const delay = shouldRandomizeDelay ? getRandomDelay() : 0; - if (!config.delayV) { - return delay; - } - return shouldRandomizeDelay ? getRandomDelay(config.delayV) : config.delayV / 1000; -} -export function getReducedMotionFromConfig(config) { - if (!config.reduceMotionV) { - return ReducedMotionManager.jsValue; - } - switch (config.reduceMotionV) { - case ReduceMotion.Never: - return false; - case ReduceMotion.Always: - return true; - default: - return ReducedMotionManager.jsValue; - } -} -function getDurationFromConfig(config, animationName) { - // Duration in keyframe has to be in seconds. However, when using `.duration()` modifier we pass it in miliseconds. - // If `duration` was specified in config, we have to divide it by `1000`, otherwise we return value that is already in seconds. - - const defaultDuration = animationName in Animations ? Animations[animationName].duration : 0.3; - return config.durationV !== undefined ? config.durationV / 1000 : defaultDuration; -} -function getCallbackFromConfig(config) { - return config.callbackV !== undefined ? config.callbackV : null; -} -function getReversedFromConfig(config) { - return !!config.reversed; -} -export function getProcessedConfig(animationName, animationType, config) { - return { - animationName, - animationType, - duration: getDurationFromConfig(config, animationName), - delay: getDelayFromConfig(config), - easing: getEasingFromConfig(config), - callback: getCallbackFromConfig(config), - reversed: getReversedFromConfig(config) - }; -} -export function maybeModifyStyleForKeyframe(element, config) { - if (!(config instanceof Keyframe)) { - return; - } - - // We need to set `animationFillMode` to `forwards`, otherwise component will go back to its position. - // This will result in wrong snapshot - element.style.animationFillMode = 'forwards'; - for (const timestampRules of Object.values(config.definitions)) { - if ('originX' in timestampRules || 'originY' in timestampRules) { - element.style.position = 'absolute'; - return; - } - } -} -export function saveSnapshot(element) { - const rect = element.getBoundingClientRect(); - const snapshot = { - top: rect.top, - left: rect.left, - width: rect.width, - height: rect.height, - scrollOffsets: getElementScrollValue(element) - }; - snapshots.set(element, snapshot); -} -export function setElementAnimation(element, animationConfig, shouldSavePosition = false, parent = null) { - const { - animationName, - duration, - delay, - easing - } = animationConfig; - const configureAnimation = () => { - element.style.animationName = animationName; - element.style.animationFillMode = 'backwards'; - element.style.animationDuration = `${duration}s`; - element.style.animationDelay = `${delay}s`; - element.style.animationTimingFunction = easing; - }; - if (animationConfig.animationType === LayoutAnimationType.ENTERING) { - // On chrome sometimes entering animations flicker. This is most likely caused by animation being interrupted - // by already started tasks. To avoid flickering, we use `requestAnimationFrame`, which will run callback right before repaint. - requestAnimationFrame(configureAnimation); - } else { - configureAnimation(); - } - const maybeRemoveElement = () => { - if (element.isDummy && parent?.contains(element)) { - element.removedAfterAnimation = true; - parent.removeChild(element); - } - }; - let wasCallbackCalled = false; - const maybeCallCallback = finished => { - if (!wasCallbackCalled && animationConfig.callback) { - animationConfig.callback(finished); - wasCallbackCalled = true; - } - }; - element.onanimationend = () => { - if (shouldSavePosition) { - saveSnapshot(element); - } - maybeRemoveElement(); - maybeCallCallback(true); - element.removeEventListener('animationcancel', animationCancelHandler); - }; - const animationCancelHandler = () => { - maybeRemoveElement(); - maybeCallCallback(false); - element.removeEventListener('animationcancel', animationCancelHandler); - }; - - // Here we have to use `addEventListener` since element.onanimationcancel doesn't work on chrome - element.onanimationstart = () => { - if (animationConfig.animationType === LayoutAnimationType.ENTERING) { - _updatePropsJS({ - visibility: 'initial' - }, element); - } - element.addEventListener('animationcancel', animationCancelHandler); - }; - if (!(animationName in Animations)) { - scheduleAnimationCleanup(animationName, duration + delay, () => { - if (shouldSavePosition) { - setElementPosition(element, snapshots.get(element)); - } - maybeRemoveElement(); - maybeCallCallback(false); - }); - } -} -export function handleLayoutTransition(element, animationConfig, transitionData) { - const { - animationName - } = animationConfig; - let animationType; - switch (animationName) { - case 'LinearTransition': - animationType = TransitionType.LINEAR; - break; - case 'SequencedTransition': - animationType = TransitionType.SEQUENCED; - break; - case 'FadingTransition': - animationType = TransitionType.FADING; - break; - case 'JumpingTransition': - animationType = TransitionType.JUMPING; - break; - case 'CurvedTransition': - animationType = TransitionType.CURVED; - break; - case 'EntryExitTransition': - animationType = TransitionType.ENTRY_EXIT; - break; - default: - animationType = TransitionType.LINEAR; - break; - } - const { - transitionKeyframeName, - dummyTransitionKeyframeName - } = TransitionGenerator(animationType, transitionData); - animationConfig.animationName = transitionKeyframeName; - if (animationType === TransitionType.CURVED) { - const { - dummy, - dummyAnimationConfig - } = prepareCurvedTransition(element, animationConfig, transitionData, dummyTransitionKeyframeName // In `CurvedTransition` it cannot be undefined - ); - setElementAnimation(dummy, dummyAnimationConfig); - } - setElementAnimation(element, animationConfig); -} -function getElementScrollValue(element) { - let current = element; - const scrollOffsets = { - scrollTopOffset: 0, - scrollLeftOffset: 0 - }; - while (current) { - if (current.scrollTop !== 0 && scrollOffsets.scrollTopOffset === 0) { - scrollOffsets.scrollTopOffset = current.scrollTop; - } - if (current.scrollLeft !== 0 && scrollOffsets.scrollLeftOffset === 0) { - scrollOffsets.scrollLeftOffset = current.scrollLeft; - } - current = current.parentElement; - } - return scrollOffsets; -} -export function handleExitingAnimation(element, animationConfig) { - const parent = element.offsetParent; - const dummy = element.cloneNode(); - dummy.isDummy = true; - dummy.style.animationName = ''; - element.dummyClone = dummy; - element.style.animationName = ''; - - // Moving elements in DOM resets their scroll positions - // so we memorize them here and restore after - const scrollPositions = new Map(); - const saveScrollPosition = node => { - scrollPositions.set(node, { - top: node.scrollTop, - left: node.scrollLeft - }); - for (const child of Array.from(node.children)) { - saveScrollPosition(child); - } - }; - saveScrollPosition(element); - - // After cloning the element, we want to move all children from original element to its clone. This is because original element - // will be unmounted, therefore when this code executes in child component, parent will be either empty or removed soon. - // Using element.cloneNode(true) doesn't solve the problem, because it creates copy of children and we won't be able to set their animations - // - // This loop works because appendChild() moves element into its new parent instead of copying it - while (element.firstChild) { - dummy.appendChild(element.firstChild); - } - parent?.appendChild(dummy); - const restoreScrollPosition = node => { - const scrollPosition = scrollPositions.get(node === dummy ? element : node); - if (scrollPosition) { - node.scrollTop = scrollPosition.top; - node.scrollLeft = scrollPosition.left; - } - for (const child of Array.from(node.children)) { - restoreScrollPosition(child); - } - }; - restoreScrollPosition(dummy); - const snapshot = snapshots.get(element); - const scrollOffsets = getElementScrollValue(element); - - // Scroll does not trigger snapshotting, therefore if we start exiting animation after - // scrolling through parent component, dummy will end up in wrong place. In order to fix that - // we keep last known scroll position in snapshot and then adjust dummy position based on - // last known scroll offset and current scroll offset - - const currentScrollTopOffset = scrollOffsets.scrollTopOffset; - const lastScrollTopOffset = snapshot.scrollOffsets.scrollTopOffset; - if (currentScrollTopOffset !== lastScrollTopOffset) { - snapshot.top += lastScrollTopOffset - currentScrollTopOffset; - } - const currentScrollLeftOffset = scrollOffsets.scrollLeftOffset; - const lastScrollLeftOffset = snapshot.scrollOffsets.scrollLeftOffset; - if (currentScrollLeftOffset !== lastScrollLeftOffset) { - snapshot.left += lastScrollLeftOffset - currentScrollLeftOffset; - } - snapshots.set(dummy, snapshot); - setElementPosition(dummy, snapshot); - setElementAnimation(dummy, animationConfig, false, parent); -} -//# sourceMappingURL=componentUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentUtils.js.map deleted file mode 100644 index 49b26be5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/componentUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","LayoutAnimationType","ReduceMotion","EasingNameSymbol","_updatePropsJS","ReducedMotionManager","Keyframe","setElementPosition","snapshots","Animations","TransitionType","TransitionGenerator","scheduleAnimationCleanup","getEasingByName","maybeGetBezierEasing","WebEasings","prepareCurvedTransition","getEasingFromConfig","config","easingV","easingName","bezierEasing","warn","getRandomDelay","maxDelay","Math","floor","random","getDelayFromConfig","shouldRandomizeDelay","randomizeDelay","delay","delayV","getReducedMotionFromConfig","reduceMotionV","jsValue","Never","Always","getDurationFromConfig","animationName","defaultDuration","duration","durationV","undefined","getCallbackFromConfig","callbackV","getReversedFromConfig","reversed","getProcessedConfig","animationType","easing","callback","maybeModifyStyleForKeyframe","element","style","animationFillMode","timestampRules","Object","values","definitions","position","saveSnapshot","rect","getBoundingClientRect","snapshot","top","left","width","height","scrollOffsets","getElementScrollValue","set","setElementAnimation","animationConfig","shouldSavePosition","parent","configureAnimation","animationDuration","animationDelay","animationTimingFunction","ENTERING","requestAnimationFrame","maybeRemoveElement","isDummy","contains","removedAfterAnimation","removeChild","wasCallbackCalled","maybeCallCallback","finished","onanimationend","removeEventListener","animationCancelHandler","onanimationstart","visibility","addEventListener","get","handleLayoutTransition","transitionData","LINEAR","SEQUENCED","FADING","JUMPING","CURVED","ENTRY_EXIT","transitionKeyframeName","dummyTransitionKeyframeName","dummy","dummyAnimationConfig","current","scrollTopOffset","scrollLeftOffset","scrollTop","scrollLeft","parentElement","handleExitingAnimation","offsetParent","cloneNode","dummyClone","scrollPositions","Map","saveScrollPosition","node","child","Array","from","children","firstChild","appendChild","restoreScrollPosition","scrollPosition","currentScrollTopOffset","lastScrollTopOffset","currentScrollLeftOffset","lastScrollLeftOffset"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/componentUtils.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,cAAc;AACrC,SAASC,mBAAmB,EAAEC,YAAY,QAAQ,mBAAmB;AAErE,SAASC,gBAAgB,QAAQ,cAAc;AAE/C,SAASC,cAAc,QAAQ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,CAAC,EAAE;MAC7CG,qBAAqB,CAACN,KAAK,CAAC;IAC9B;EACF,CAAC;EACDM,qBAAqB,CAACtB,KAAK,CAAC;EAE5B,MAAM3C,QAAQ,GAAGxD,SAAS,CAACwF,GAAG,CAAC3C,OAAO,CAAE;EAExC,MAAMgB,aAAa,GAAGC,qBAAqB,CAACjB,OAAO,CAAC;;EAEpD;EACA;EACA;EACA;;EAEA,MAAM8E,sBAAsB,GAAG9D,aAAa,CAACyC,eAAe;EAC5D,MAAMsB,mBAAmB,GAAGpE,QAAQ,CAACK,aAAa,CAACyC,eAAe;EAElE,IAAIqB,sBAAsB,KAAKC,mBAAmB,EAAE;IAClDpE,QAAQ,CAACC,GAAG,IAAImE,mBAAmB,GAAGD,sBAAsB;EAC9D;EAEA,MAAME,uBAAuB,GAAGhE,aAAa,CAAC0C,gBAAgB;EAC9D,MAAMuB,oBAAoB,GAAGtE,QAAQ,CAACK,aAAa,CAAC0C,gBAAgB;EAEpE,IAAIsB,uBAAuB,KAAKC,oBAAoB,EAAE;IACpDtE,QAAQ,CAACE,IAAI,IAAIoE,oBAAoB,GAAGD,uBAAuB;EACjE;EAEA7H,SAAS,CAAC+D,GAAG,CAACoC,KAAK,EAAE3C,QAAQ,CAAC;EAE9BzD,kBAAkB,CAACoG,KAAK,EAAE3C,QAAQ,CAAC;EAEnCQ,mBAAmB,CAACmC,KAAK,EAAElC,eAAe,EAAE,KAAK,EAAEE,MAAM,CAAC;AAC5D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/config.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/config.js deleted file mode 100644 index c9fcb523..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/config.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict'; - -import { BounceIn, BounceInData, BounceOut, BounceOutData } from './animation/Bounce.web'; -import { FadeIn, FadeInData, FadeOut, FadeOutData } from './animation/Fade.web'; -import { FlipIn, FlipInData, FlipOut, FlipOutData } from './animation/Flip.web'; -import { LightSpeedIn, LightSpeedInData, LightSpeedOut, LightSpeedOutData } from './animation/Lightspeed.web'; -import { Pinwheel, PinwheelData } from './animation/Pinwheel.web'; -import { RollIn, RollInData, RollOut, RollOutData } from './animation/Roll.web'; -import { RotateIn, RotateInData, RotateOut, RotateOutData } from './animation/Rotate.web'; -import { SlideIn, SlideInData, SlideOut, SlideOutData } from './animation/Slide.web'; -import { StretchIn, StretchInData, StretchOut, StretchOutData } from './animation/Stretch.web'; -import { ZoomIn, ZoomInData, ZoomOut, ZoomOutData } from './animation/Zoom.web'; -export let TransitionType = /*#__PURE__*/function (TransitionType) { - TransitionType[TransitionType["LINEAR"] = 0] = "LINEAR"; - TransitionType[TransitionType["SEQUENCED"] = 1] = "SEQUENCED"; - TransitionType[TransitionType["FADING"] = 2] = "FADING"; - TransitionType[TransitionType["JUMPING"] = 3] = "JUMPING"; - TransitionType[TransitionType["CURVED"] = 4] = "CURVED"; - TransitionType[TransitionType["ENTRY_EXIT"] = 5] = "ENTRY_EXIT"; - return TransitionType; -}({}); -export const AnimationsData = { - ...FadeInData, - ...FadeOutData, - ...BounceInData, - ...BounceOutData, - ...FlipInData, - ...FlipOutData, - ...StretchInData, - ...StretchOutData, - ...ZoomInData, - ...ZoomOutData, - ...SlideInData, - ...SlideOutData, - ...LightSpeedInData, - ...LightSpeedOutData, - ...PinwheelData, - ...RotateInData, - ...RotateOutData, - ...RollInData, - ...RollOutData -}; -export const Animations = { - ...FadeIn, - ...FadeOut, - ...BounceIn, - ...BounceOut, - ...FlipIn, - ...FlipOut, - ...StretchIn, - ...StretchOut, - ...ZoomIn, - ...ZoomOut, - ...SlideIn, - ...SlideOut, - ...LightSpeedIn, - ...LightSpeedOut, - ...Pinwheel, - ...RotateIn, - ...RotateOut, - ...RollIn, - ...RollOut -}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/config.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/config.js.map deleted file mode 100644 index b92c13fd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["BounceIn","BounceInData","BounceOut","BounceOutData","FadeIn","FadeInData","FadeOut","FadeOutData","FlipIn","FlipInData","FlipOut","FlipOutData","LightSpeedIn","LightSpeedInData","LightSpeedOut","LightSpeedOutData","Pinwheel","PinwheelData","RollIn","RollInData","RollOut","RollOutData","RotateIn","RotateInData","RotateOut","RotateOutData","SlideIn","SlideInData","SlideOut","SlideOutData","StretchIn","StretchInData","StretchOut","StretchOutData","ZoomIn","ZoomInData","ZoomOut","ZoomOutData","TransitionType","AnimationsData","Animations"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/config.ts"],"mappings":"AAAA,YAAY;;AAOZ,SACEA,QAAQ,EACRC,YAAY,EACZC,SAAS,EACTC,aAAa,QACR,wBAAwB;AAC/B,SAASC,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,WAAW,QAAQ,sBAAsB;AAC/E,SAASC,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,WAAW,QAAQ,sBAAsB;AAC/E,SACEC,YAAY,EACZC,gBAAgB,EAChBC,aAAa,EACbC,iBAAiB,QACZ,4BAA4B;AACnC,SAASC,QAAQ,EAAEC,YAAY,QAAQ,0BAA0B;AACjE,SAASC,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,WAAW,QAAQ,sBAAsB;AAC/E,SACEC,QAAQ,EACRC,YAAY,EACZC,SAAS,EACTC,aAAa,QACR,wBAAwB;AAC/B,SACEC,OAAO,EACPC,WAAW,EACXC,QAAQ,EACRC,YAAY,QACP,uBAAuB;AAC9B,SACEC,SAAS,EACTC,aAAa,EACbC,UAAU,EACVC,cAAc,QACT,yBAAyB;AAChC,SAASC,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,WAAW,QAAQ,sBAAsB;AA6C/E,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAS1B,OAAO,MAAMC,cAA6C,GAAG;EAC3D,GAAGlC,UAAU;EACb,GAAGE,WAAW;EACd,GAAGN,YAAY;EACf,GAAGE,aAAa;EAChB,GAAGM,UAAU;EACb,GAAGE,WAAW;EACd,GAAGoB,aAAa;EAChB,GAAGE,cAAc;EACjB,GAAGE,UAAU;EACb,GAAGE,WAAW;EACd,GAAGV,WAAW;EACd,GAAGE,YAAY;EACf,GAAGhB,gBAAgB;EACnB,GAAGE,iBAAiB;EACpB,GAAGE,YAAY;EACf,GAAGM,YAAY;EACf,GAAGE,aAAa;EAChB,GAAGN,UAAU;EACb,GAAGE;AACL,CAAC;AAED,OAAO,MAAMmB,UAAU,GAAG;EACxB,GAAGpC,MAAM;EACT,GAAGE,OAAO;EACV,GAAGN,QAAQ;EACX,GAAGE,SAAS;EACZ,GAAGM,MAAM;EACT,GAAGE,OAAO;EACV,GAAGoB,SAAS;EACZ,GAAGE,UAAU;EACb,GAAGE,MAAM;EACT,GAAGE,OAAO;EACV,GAAGV,OAAO;EACV,GAAGE,QAAQ;EACX,GAAGhB,YAAY;EACf,GAAGE,aAAa;EAChB,GAAGE,QAAQ;EACX,GAAGM,QAAQ;EACX,GAAGE,SAAS;EACZ,GAAGN,MAAM;EACT,GAAGE;AACL,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/createAnimation.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/createAnimation.js deleted file mode 100644 index fe2cbe7e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/createAnimation.js +++ /dev/null @@ -1,174 +0,0 @@ -'use strict'; - -import { convertAnimationObjectToKeyframes } from './animationParser'; -import { AnimationsData, TransitionType } from './config'; -import { insertWebAnimation } from './domUtils'; -import { CurvedTransition } from './transition/Curved.web'; -import { EntryExitTransition } from './transition/EntryExit.web'; -import { FadingTransition } from './transition/Fading.web'; -import { JumpingTransition } from './transition/Jumping.web'; -import { LinearTransition } from './transition/Linear.web'; -import { SequencedTransition } from './transition/Sequenced.web'; -// Translate values are passed as numbers. However, if `translate` property receives number, it will not automatically -// convert it to `px`. Therefore if we want to keep transform we have to add 'px' suffix to each of translate values -// that are present inside transform. -// - -function addPxToTransform(transform) { - // @ts-ignore `existingTransform` cannot be string because in that case - // we throw error in `extractTransformFromStyle` - const newTransform = transform.map(transformProp => { - const newTransformProp = {}; - for (const [key, value] of Object.entries(transformProp)) { - if ((key.includes('translate') || key.includes('perspective')) && typeof value === 'number') { - // @ts-ignore After many trials we decided to ignore this error - it says that we cannot use 'key' to index this object. - // Sadly it doesn't go away after using cast `key as keyof TransformProperties`. - newTransformProp[key] = `${value}px`; - } else { - // @ts-ignore same as above. - newTransformProp[key] = value; - } - } - return newTransformProp; - }); - return newTransform; -} -export function createCustomKeyFrameAnimation(keyframeDefinitions) { - for (const value of Object.values(keyframeDefinitions)) { - if (value.transform) { - value.transform = addPxToTransform(value.transform); - } - } - const animationData = { - name: '', - style: keyframeDefinitions, - duration: -1 - }; - animationData.name = generateNextCustomKeyframeName(); - - // Move keyframe easings one keyframe up (our LA Keyframe definition is different - // from the CSS keyframes and expects easing to be present in the keyframe to which - // we animate instead of the keyframe we animate from) - const offsets = Object.keys(keyframeDefinitions); - for (let i = 1; i < offsets.length; i++) { - const style = keyframeDefinitions[offsets[i]]; - if (style.easing) { - keyframeDefinitions[offsets[i - 1]].easing = style.easing; - delete style.easing; - } - } - const parsedKeyframe = convertAnimationObjectToKeyframes(animationData); - insertWebAnimation(animationData.name, parsedKeyframe); - return animationData.name; -} -export function createAnimationWithInitialValues(animationName, initialValues) { - const animationStyle = structuredClone(AnimationsData[animationName].style); - const firstAnimationStep = animationStyle['0']; - const { - transform, - ...rest - } = initialValues; - const transformWithPx = addPxToTransform(transform); - if (transform) { - // If there was no predefined transform, we can simply assign transform from `initialValues`. - if (!firstAnimationStep.transform) { - firstAnimationStep.transform = transformWithPx; - } else { - // Othwerwise we have to merge predefined transform with the one provided in `initialValues`. - // To do that, we create `Map` that will contain final transform. - const transformStyle = new Map(); - - // First we assign all of the predefined rules - for (const rule of firstAnimationStep.transform) { - // In most cases there will be just one iteration - for (const [property, value] of Object.entries(rule)) { - transformStyle.set(property, value); - } - } - - // Then we either add new rule, or override one that already exists. - for (const rule of transformWithPx) { - for (const [property, value] of Object.entries(rule)) { - transformStyle.set(property, value); - } - } - - // Finally, we convert `Map` with final transform back into array of objects. - firstAnimationStep.transform = Array.from(transformStyle, ([property, value]) => ({ - [property]: value - })); - } - } - animationStyle['0'] = { - ...animationStyle['0'], - ...rest - }; - - // TODO: Maybe we can extract the logic below into separate function - const keyframeName = generateNextCustomKeyframeName(); - const animationObject = { - name: keyframeName, - style: animationStyle, - duration: AnimationsData[animationName].duration - }; - const keyframe = convertAnimationObjectToKeyframes(animationObject); - insertWebAnimation(keyframeName, keyframe); - return keyframeName; -} -let customKeyframeCounter = 0; -function generateNextCustomKeyframeName() { - return `REA${customKeyframeCounter++}`; -} - -/** - * Creates transition of given type, appends it to stylesheet and returns - * keyframe name. - * - * @param transitionType - Type of transition (e.g. LINEAR). - * @param transitionData - Object containing data for transforms (translateX, - * scaleX,...). - * @returns Keyframe name that represents transition. - */ -export function TransitionGenerator(transitionType, transitionData) { - const transitionKeyframeName = generateNextCustomKeyframeName(); - let dummyTransitionKeyframeName; - let transitionObject; - switch (transitionType) { - case TransitionType.LINEAR: - transitionObject = LinearTransition(transitionKeyframeName, transitionData); - break; - case TransitionType.SEQUENCED: - transitionObject = SequencedTransition(transitionKeyframeName, transitionData); - break; - case TransitionType.FADING: - transitionObject = FadingTransition(transitionKeyframeName, transitionData); - break; - case TransitionType.JUMPING: - transitionObject = JumpingTransition(transitionKeyframeName, transitionData); - break; - - // Here code block with {} is necessary because of eslint - case TransitionType.CURVED: - { - dummyTransitionKeyframeName = generateNextCustomKeyframeName(); - const { - firstKeyframeObj, - secondKeyframeObj - } = CurvedTransition(transitionKeyframeName, dummyTransitionKeyframeName, transitionData); - transitionObject = firstKeyframeObj; - const dummyKeyframe = convertAnimationObjectToKeyframes(secondKeyframeObj); - insertWebAnimation(dummyTransitionKeyframeName, dummyKeyframe); - break; - } - case TransitionType.ENTRY_EXIT: - transitionObject = EntryExitTransition(transitionKeyframeName, transitionData); - break; - } - const transitionKeyframe = convertAnimationObjectToKeyframes(transitionObject); - insertWebAnimation(transitionKeyframeName, transitionKeyframe); - return { - transitionKeyframeName, - dummyTransitionKeyframeName - }; -} -//# sourceMappingURL=createAnimation.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/createAnimation.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/createAnimation.js.map deleted file mode 100644 index e75c6893..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/createAnimation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["convertAnimationObjectToKeyframes","AnimationsData","TransitionType","insertWebAnimation","CurvedTransition","EntryExitTransition","FadingTransition","JumpingTransition","LinearTransition","SequencedTransition","addPxToTransform","transform","newTransform","map","transformProp","newTransformProp","key","value","Object","entries","includes","createCustomKeyFrameAnimation","keyframeDefinitions","values","animationData","name","style","duration","generateNextCustomKeyframeName","offsets","keys","i","length","easing","parsedKeyframe","createAnimationWithInitialValues","animationName","initialValues","animationStyle","structuredClone","firstAnimationStep","rest","transformWithPx","transformStyle","Map","rule","property","set","Array","from","keyframeName","animationObject","keyframe","customKeyframeCounter","TransitionGenerator","transitionType","transitionData","transitionKeyframeName","dummyTransitionKeyframeName","transitionObject","LINEAR","SEQUENCED","FADING","JUMPING","CURVED","firstKeyframeObj","secondKeyframeObj","dummyKeyframe","ENTRY_EXIT","transitionKeyframe"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/createAnimation.ts"],"mappings":"AAAA,YAAY;;AASZ,SAASA,iCAAiC,QAAQ,mBAAmB;AAErE,SAASC,cAAc,EAAEC,cAAc,QAAQ,UAAU;AACzD,SAASC,kBAAkB,QAAQ,YAAY;AAC/C,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,mBAAmB,QAAQ,4BAA4B;AAChE,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,iBAAiB,QAAQ,0BAA0B;AAC5D,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SAASC,mBAAmB,QAAQ,4BAA4B;AAIhE;AACA;AACA;AACA;;AAEA,SAASC,gBAAgBA,CAACC,SAAwB,EAAE;EAGlD;EACA;EACA,MAAMC,YAAY,GAAGD,SAAS,CAACE,GAAG,CAAEC,aAA8B,IAAK;IACrE,MAAMC,gBAAkD,GAAG,CAAC,CAAC;IAC7D,KAAK,MAAM,CAACC,GAAG,EAAEC,KAAK,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACL,aAAa,CAAC,EAAE;MACxD,IACE,CAACE,GAAG,CAACI,QAAQ,CAAC,WAAW,CAAC,IAAIJ,GAAG,CAACI,QAAQ,CAAC,aAAa,CAAC,KACzD,OAAOH,KAAK,KAAK,QAAQ,EACzB;QACA;QACA;QACAF,gBAAgB,CAACC,GAAG,CAAC,GAAG,GAAGC,KAAK,IAAI;MACtC,CAAC,MAAM;QACL;QACAF,gBAAgB,CAACC,GAAG,CAAC,GAAGC,KAAK;MAC/B;IACF;IACA,OAAOF,gBAAgB;EACzB,CAAC,CAAC;EAEF,OAAOH,YAAY;AACrB;AAEA,OAAO,SAASS,6BAA6BA,CAC3CC,mBAAwC,EACxC;EACA,KAAK,MAAML,K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9D;MACF;IACA,KAAKjE,cAAc,CAACkE,UAAU;MAC5BT,gBAAgB,GAAGtD,mBAAmB,CACpCoD,sBAAsB,EACtBD,cACF,CAAC;MACD;EACJ;EAEA,MAAMa,kBAAkB,GACtBrE,iCAAiC,CAAC2D,gBAAgB,CAAC;EAErDxD,kBAAkB,CAACsD,sBAAsB,EAAEY,kBAAkB,CAAC;EAE9D,OAAO;IAAEZ,sBAAsB;IAAEC;EAA4B,CAAC;AAChE","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/domUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/domUtils.js deleted file mode 100644 index ee9e030a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/domUtils.js +++ /dev/null @@ -1,160 +0,0 @@ -'use strict'; - -import { IS_WINDOW_AVAILABLE, logger, ReanimatedError } from '../../common'; -import { setElementPosition, snapshots } from './componentStyle'; -import { Animations } from './config'; -const PREDEFINED_WEB_ANIMATIONS_ID = 'ReanimatedPredefinedWebAnimationsStyle'; -const CUSTOM_WEB_ANIMATIONS_ID = 'ReanimatedCustomWebAnimationsStyle'; - -// Since we cannot remove keyframe from DOM by its name, we have to store its id -const animationNameToIndex = new Map(); -const animationNameList = []; -let isObserverSet = false; - -/** - * Creates `HTMLStyleElement`, inserts it into DOM and then inserts CSS rules - * into the stylesheet. If style element already exists, nothing happens. - */ -export function configureWebLayoutAnimations() { - if (!IS_WINDOW_AVAILABLE || - // Without this check SSR crashes because document is undefined (NextExample on CI) - document.getElementById(PREDEFINED_WEB_ANIMATIONS_ID) !== null) { - return; - } - const predefinedAnimationsStyleTag = document.createElement('style'); - predefinedAnimationsStyleTag.id = PREDEFINED_WEB_ANIMATIONS_ID; - predefinedAnimationsStyleTag.onload = () => { - if (!predefinedAnimationsStyleTag.sheet) { - logger.error('Failed to create layout animations stylesheet.'); - return; - } - for (const animationName in Animations) { - predefinedAnimationsStyleTag.sheet.insertRule(Animations[animationName].style); - } - }; - const customAnimationsStyleTag = document.createElement('style'); - customAnimationsStyleTag.id = CUSTOM_WEB_ANIMATIONS_ID; - document.head.appendChild(predefinedAnimationsStyleTag); - document.head.appendChild(customAnimationsStyleTag); -} -export function insertWebAnimation(animationName, keyframe) { - // Without this check SSR crashes because document is undefined (NextExample on CI) - if (!IS_WINDOW_AVAILABLE) { - return; - } - const styleTag = document.getElementById(CUSTOM_WEB_ANIMATIONS_ID); - if (!styleTag.sheet) { - logger.error('Failed to create layout animations stylesheet.'); - return; - } - styleTag.sheet.insertRule(keyframe, 0); - animationNameList.unshift(animationName); - animationNameToIndex.set(animationName, 0); - for (let i = 1; i < animationNameList.length; ++i) { - const nextAnimationName = animationNameList[i]; - const nextAnimationIndex = animationNameToIndex.get(nextAnimationName); - if (nextAnimationIndex === undefined) { - throw new ReanimatedError('Failed to obtain animation index.'); - } - animationNameToIndex.set(animationNameList[i], nextAnimationIndex + 1); - } -} -function removeWebAnimation(animationName, animationRemoveCallback) { - // Without this check SSR crashes because document is undefined (NextExample on CI) - if (!IS_WINDOW_AVAILABLE) { - return; - } - const styleTag = document.getElementById(CUSTOM_WEB_ANIMATIONS_ID); - const currentAnimationIndex = animationNameToIndex.get(animationName); - if (currentAnimationIndex === undefined) { - throw new ReanimatedError('Failed to obtain animation index.'); - } - animationRemoveCallback(); - styleTag.sheet?.deleteRule(currentAnimationIndex); - animationNameList.splice(currentAnimationIndex, 1); - animationNameToIndex.delete(animationName); - for (let i = currentAnimationIndex; i < animationNameList.length; ++i) { - const nextAnimationName = animationNameList[i]; - const nextAnimationIndex = animationNameToIndex.get(nextAnimationName); - if (nextAnimationIndex === undefined) { - throw new ReanimatedError('Failed to obtain animation index.'); - } - animationNameToIndex.set(animationNameList[i], nextAnimationIndex - 1); - } -} -const timeoutScale = 5; // We use this value to enlarge timeout duration. It can prove useful if animation lags. -const frameDurationMs = 16; // Just an approximation. -const minimumFrames = 10; -export function scheduleAnimationCleanup(animationName, animationDuration, animationRemoveCallback) { - // If duration is very short, we want to keep remove delay to at least 10 frames - // In our case it is exactly 160/1099 s, which is approximately 0.15s - const timeoutValue = Math.max(animationDuration * timeoutScale * 1000, animationDuration + frameDurationMs * minimumFrames); - setTimeout(() => removeWebAnimation(animationName, animationRemoveCallback), timeoutValue); -} -function reattachElementToAncestor(child, parent) { - const childSnapshot = snapshots.get(child); - if (!childSnapshot) { - logger.error('Failed to obtain snapshot.'); - return; - } - - // We use that so we don't end up in infinite loop - child.removedAfterAnimation = true; - parent.appendChild(child); - setElementPosition(child, childSnapshot); - const originalOnAnimationEnd = child.onanimationend; - child.onanimationend = function (event) { - parent.removeChild(child); - - // Given that this function overrides onAnimationEnd, it won't be null - originalOnAnimationEnd?.call(this, event); - }; -} -function findDescendantWithExitingAnimation(node, root) { - // Node could be something else than HTMLElement, for example TextNode (treated as plain text, not as HTML object), - // therefore it won't have children prop and calling Array.from(node.children) will cause error. - if (!(node instanceof HTMLElement)) { - return; - } - if (node.isDummy && node.removedAfterAnimation === undefined) { - reattachElementToAncestor(node, root); - } - const children = Array.from(node.children); - for (let i = 0; i < children.length; ++i) { - findDescendantWithExitingAnimation(children[i], root); - } -} -function checkIfScreenWasChanged(mutationTarget) { - let reactFiberKey = '__reactFiber'; - for (const key of Object.keys(mutationTarget)) { - if (key.startsWith('__reactFiber')) { - reactFiberKey = key; - break; - } - } - return mutationTarget[reactFiberKey]?.child?.memoizedProps?.navigation !== undefined; -} -export function addHTMLMutationObserver() { - if (isObserverSet || !IS_WINDOW_AVAILABLE) { - return; - } - isObserverSet = true; - const observer = new MutationObserver(mutationsList => { - const rootMutation = mutationsList[mutationsList.length - 1]; - if (checkIfScreenWasChanged(rootMutation.target)) { - return; - } - for (let i = 0; i < rootMutation.removedNodes.length; ++i) { - findDescendantWithExitingAnimation(rootMutation.removedNodes[i], rootMutation.target); - } - }); - observer.observe(document.body, { - childList: true, - subtree: true - }); -} -export function areDOMRectsEqual(r1, r2) { - // There are 4 more fields, but checking these should suffice - return r1.x === r2.x && r1.y === r2.y && r1.width === r2.width && r1.height === r2.height; -} -//# sourceMappingURL=domUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/domUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/domUtils.js.map deleted file mode 100644 index e0375a23..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/domUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_WINDOW_AVAILABLE","logger","ReanimatedError","setElementPosition","snapshots","Animations","PREDEFINED_WEB_ANIMATIONS_ID","CUSTOM_WEB_ANIMATIONS_ID","animationNameToIndex","Map","animationNameList","isObserverSet","configureWebLayoutAnimations","document","getElementById","predefinedAnimationsStyleTag","createElement","id","onload","sheet","error","animationName","insertRule","style","customAnimationsStyleTag","head","appendChild","insertWebAnimation","keyframe","styleTag","unshift","set","i","length","nextAnimationName","nextAnimationIndex","get","undefined","removeWebAnimation","animationRemoveCallback","currentAnimationIndex","deleteRule","splice","delete","timeoutScale","frameDurationMs","minimumFrames","scheduleAnimationCleanup","animationDuration","timeoutValue","Math","max","setTimeout","reattachElementToAncestor","child","parent","childSnapshot","removedAfterAnimation","originalOnAnimationEnd","onanimationend","event","removeChild","call","findDescendantWithExitingAnimation","node","root","HTMLElement","isDummy","children","Array","from","checkIfScreenWasChanged","mutationTarget","reactFiberKey","key","Object","keys","startsWith","memoizedProps","navigation","addHTMLMutationObserver","observer","MutationObserver","mutationsList","rootMutation","target","removedNodes","observe","body","childList","subtree","areDOMRectsEqual","r1","r2","x","y","width","height"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/domUtils.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,mBAAmB,EAAEC,MAAM,EAAEC,eAAe,QAAQ,cAAc;AAE3E,SAASC,kBAAkB,EAAEC,SAAS,QAAQ,kBAAkB;AAEhE,SAASC,UAAU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,aAAa,GAAG,IAAI;EAEpB,MAAMsE,QAAQ,GAAG,IAAIC,gBAAgB,CAAEC,aAAa,IAAK;IACvD,MAAMC,YAAY,GAAGD,aAAa,CAACA,aAAa,CAAClD,MAAM,GAAG,CAAC,CAAC;IAE5D,IACEsC,uBAAuB,CACrBa,YAAY,CAACC,MACf,CAAC,EACD;MACA;IACF;IAEA,KAAK,IAAIrD,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGoD,YAAY,CAACE,YAAY,CAACrD,MAAM,EAAE,EAAED,CAAC,EAAE;MACzD+B,kCAAkC,CAChCqB,YAAY,CAACE,YAAY,CAACtD,CAAC,CAAC,EAC5BoD,YAAY,CAACC,MACf,CAAC;IACH;EACF,CAAC,CAAC;EAEFJ,QAAQ,CAACM,OAAO,CAAC1E,QAAQ,CAAC2E,IAAI,EAAE;IAAEC,SAAS,EAAE,IAAI;IAAEC,OAAO,EAAE;EAAK,CAAC,CAAC;AACrE;AAEA,OAAO,SAASC,gBAAgBA,CAACC,EAAW,EAAEC,EAAW,EAAE;EACzD;EACA,OACED,EAAE,CAACE,CAAC,KAAKD,EAAE,CAACC,CAAC,IACbF,EAAE,CAACG,CAAC,KAAKF,EAAE,CAACE,CAAC,IACbH,EAAE,CAACI,KAAK,KAAKH,EAAE,CAACG,KAAK,IACrBJ,EAAE,CAACK,MAAM,KAAKJ,EAAE,CAACI,MAAM;AAE3B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/index.js deleted file mode 100644 index 228930a1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export { startWebLayoutAnimation, tryActivateLayoutTransition } from './animationsManager'; -export { getReducedMotionFromConfig, saveSnapshot } from './componentUtils'; -export { configureWebLayoutAnimations } from './domUtils'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/index.js.map deleted file mode 100644 index 12734264..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["startWebLayoutAnimation","tryActivateLayoutTransition","getReducedMotionFromConfig","saveSnapshot","configureWebLayoutAnimations"],"sourceRoot":"../../../../src","sources":["layoutReanimation/web/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,SACEA,uBAAuB,EACvBC,2BAA2B,QACtB,qBAAqB;AAC5B,SAASC,0BAA0B,EAAEC,YAAY,QAAQ,kBAAkB;AAC3E,SAASC,4BAA4B,QAAQ,YAAY","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Curved.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Curved.web.js deleted file mode 100644 index 9ad64dd9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Curved.web.js +++ /dev/null @@ -1,110 +0,0 @@ -'use strict'; - -import { LayoutAnimationType } from '../../../commonTypes'; -import { getEasingByName } from '../Easing.web'; -function resetStyle(component) { - component.style.animationName = ''; // This line prevents unwanted entering animation - component.style.position = 'absolute'; - component.style.top = '0px'; - component.style.left = '0px'; - component.style.margin = '0px'; - component.style.width = '100%'; - component.style.height = '100%'; -} -function showChildren(parent, childrenDisplayProperty, shouldShow) { - for (let i = 0; i < parent.children.length; ++i) { - const child = parent.children[i]; - if (shouldShow) { - child.style.display = childrenDisplayProperty.get(child); - } else { - childrenDisplayProperty.set(child, child.style.display); - child.style.display = 'none'; - } - } -} -function prepareParent(element, dummy, animationConfig, transitionData) { - // Adjust configs for `CurvedTransition` and create config object for dummy - animationConfig.easing = getEasingByName(transitionData.easingX); - const childrenDisplayProperty = new Map(); - showChildren(element, childrenDisplayProperty, false); - const originalBackgroundColor = element.style.backgroundColor; - element.style.backgroundColor = 'transparent'; - const onFinalize = () => { - if (element.contains(dummy)) { - element.removeChild(dummy); - } - showChildren(element, childrenDisplayProperty, true); - element.style.backgroundColor = originalBackgroundColor; - }; - const animationCancelCallback = () => { - onFinalize(); - element.removeEventListener('animationcancel', animationCancelCallback); - }; - const animationEndCallback = () => { - onFinalize(); - element.removeEventListener('animationend', animationEndCallback); - }; - element.addEventListener('animationend', animationEndCallback); - element.addEventListener('animationcancel', animationCancelCallback); - element.appendChild(dummy); -} -function prepareDummy(element, animationConfig, transitionData, dummyTransitionKeyframeName) { - const dummyAnimationConfig = { - animationName: dummyTransitionKeyframeName, - animationType: LayoutAnimationType.LAYOUT, - duration: animationConfig.duration, - delay: animationConfig.delay, - easing: getEasingByName(transitionData.easingY), - callback: null, - reversed: false - }; - const dummy = element.cloneNode(true); - dummy.isDummy = true; - resetStyle(dummy); - return { - dummy, - dummyAnimationConfig - }; -} -export function prepareCurvedTransition(element, animationConfig, transitionData, dummyTransitionKeyframeName) { - const { - dummy, - dummyAnimationConfig - } = prepareDummy(element, animationConfig, transitionData, dummyTransitionKeyframeName); - prepareParent(element, dummy, animationConfig, transitionData); - return { - dummy, - dummyAnimationConfig - }; -} -export function CurvedTransition(keyframeXName, keyframeYName, transitionData) { - const keyframeXObj = { - name: keyframeXName, - style: { - 0: { - transform: [{ - translateX: `${transitionData.translateX}px`, - scale: `${transitionData.scaleX},${transitionData.scaleY}` - }] - } - }, - duration: 300 - }; - const keyframeYObj = { - name: keyframeYName, - style: { - 0: { - transform: [{ - translateY: `${transitionData.translateY}px`, - scale: `${transitionData.scaleX},${transitionData.scaleY}` - }] - } - }, - duration: 300 - }; - return { - firstKeyframeObj: keyframeXObj, - secondKeyframeObj: keyframeYObj - }; -} -//# sourceMappingURL=Curved.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Curved.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Curved.web.js.map deleted file mode 100644 index 4c630993..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Curved.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["LayoutAnimationType","getEasingByName","resetStyle","component","style","animationName","position","top","left","margin","width","height","showChildren","parent","childrenDisplayProperty","shouldShow","i","children","length","child","display","get","set","prepareParent","element","dummy","animationConfig","transitionData","easing","easingX","Map","originalBackgroundColor","backgroundColor","onFinalize","contains","removeChild","animationCancelCallback","removeEventListener","animationEndCallback","addEventListener","appendChild","prepareDummy","dummyTransitionKeyframeName","dummyAnimationConfig","animationType","LAYOUT","duration","delay","easingY","callback","reversed","cloneNode","isDummy","prepareCurvedTransition","CurvedTransition","keyframeXName","keyframeYName","keyframeXObj","name","transform","translateX","scale","scaleX","scaleY","keyframeYObj","translateY","firstKeyframeObj","secondKeyframeObj"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/transition/Curved.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,mBAAmB,QAAQ,sBAAsB;AAK1D,SAASC,eAAe,QAAQ,eAAe;AAE/C,SAASC,UAAUA,CAACC,SAAsB,EAAE;EAC1CA,SAAS,CAACC,KAAK,CAACC,aAAa,GAAG,EAAE,CAAC,CAAC;EACpCF,SAAS,CAACC,KAAK,CAACE,QAAQ,GAAG,UAAU;EACrCH,SAAS,CAACC,KAAK,CAACG,GAAG,GAAG,KAAK;EAC3BJ,SAAS,CAACC,KAAK,CAACI,IAAI,GAAG,KAAK;EAC5BL,SAAS,CAACC,KAAK,CAACK,MAAM,GAAG,KAAK;EAC9BN,SAAS,CAACC,KAAK,CAACM,KAAK,GAAG,MAAM;EAC9BP,SAAS,CAACC,KAAK,CAACO,MAAM,GAAG,MAAM;AACjC;AAEA,SAASC,YAAYA,CACnBC,MAAmB,EACnBC,uBAAiD,EACjDC,U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,cAAc,CAAC;EAE9D,OAAO;IAAEF,KAAK;IAAEkB;EAAqB,CAAC;AACxC;AAEA,OAAO,SAASW,gBAAgBA,CAC9BC,aAAqB,EACrBC,aAAqB,EACrB7B,cAA8B,EAC9B;EACA,MAAM8B,YAAY,GAAG;IACnBC,IAAI,EAAEH,aAAa;IACnBnD,KAAK,EAAE;MACL,CAAC,EAAE;QACDuD,SAAS,EAAE,CACT;UACEC,UAAU,EAAE,GAAGjC,cAAc,CAACiC,UAAU,IAAI;UAC5CC,KAAK,EAAE,GAAGlC,cAAc,CAACmC,MAAM,IAAInC,cAAc,CAACoC,MAAM;QAC1D,CAAC;MAEL;IACF,CAAC;IACDjB,QAAQ,EAAE;EACZ,CAAC;EAED,MAAMkB,YAAY,GAAG;IACnBN,IAAI,EAAEF,aAAa;IACnBpD,KAAK,EAAE;MACL,CAAC,EAAE;QACDuD,SAAS,EAAE,CACT;UACEM,UAAU,EAAE,GAAGtC,cAAc,CAACsC,UAAU,IAAI;UAC5CJ,KAAK,EAAE,GAAGlC,cAAc,CAACmC,MAAM,IAAInC,cAAc,CAACoC,MAAM;QAC1D,CAAC;MAEL;IACF,CAAC;IACDjB,QAAQ,EAAE;EACZ,CAAC;EAED,OAAO;IACLoB,gBAAgB,EAAET,YAAY;IAC9BU,iBAAiB,EAAEH;EACrB,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/EntryExit.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/EntryExit.web.js deleted file mode 100644 index dd85cf04..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/EntryExit.web.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -import { AnimationsData } from '../config'; -const ExitingFinalStep = 49; -const EnteringStartStep = 50; -// Layout transitions on web work in "reverse order". It means that the element is rendered at its destination and then, at the beginning of the animation, -// we move it back to its starting point. -// This function is responsible for adding transition data into beginning of each keyframe step. -// Doing so will ensure that the element will perform animation from correct position. -function addTransformToKeepPosition(keyframeStyleData, animationStyle, transformData, isExiting) { - for (const [timestamp, styles] of Object.entries(animationStyle)) { - if (styles.transform !== undefined) { - // If transform was defined, we want to put transform from transition at the beginning, hence we use `unshift` - styles.transform.unshift(transformData); - } else { - // If transform was undefined, we simply add transform from transition - styles.transform = [transformData]; - } - const newTimestamp = parseInt(timestamp) / 2; - const index = isExiting ? Math.min(newTimestamp, ExitingFinalStep) // We want to squeeze exiting animation from range 0-100 into range 0-49 - : newTimestamp + EnteringStartStep; // Entering animation will start from 50 and go up to 100 - - keyframeStyleData[`${index}`] = styles; - } -} - -// EntryExit transition consists of two animations - exiting and entering. -// In Keyframes one cannot simply specify animation for given frame. Switching from one animation -// to the other one between steps 49 and 50 may lead to flickers, since browser tries to interpolate -// one step into the other. To avoid that, we set components' `opacity` to 0 right before switching animation -// and set it again to 1 when component is in right position. Hiding component between animations -// prevents flickers. -function hideComponentBetweenAnimations(keyframeStyleData) { - // We have to take into account that some animations have already defined `opacity`. - // In that case, we don't want to override it. - const opacityInStep = new Map(); - if (keyframeStyleData[0].opacity === undefined) { - opacityInStep.set(48, 1); - opacityInStep.set(49, 0); - } - if (keyframeStyleData[50].opacity === undefined) { - opacityInStep.set(50, 0); - opacityInStep.set(51, 1); - } - for (const [step, opacity] of opacityInStep) { - keyframeStyleData[step] = { - ...keyframeStyleData[step], - opacity - }; - } -} -export function EntryExitTransition(name, transitionData) { - const exitingAnimationData = structuredClone(AnimationsData[transitionData.exiting]); - const enteringAnimationData = structuredClone(AnimationsData[transitionData.entering]); - const additionalExitingData = { - translateX: `${transitionData.translateX}px`, - translateY: `${transitionData.translateY}px`, - scale: `${transitionData.scaleX},${transitionData.scaleY}` - }; - const additionalEnteringData = { - translateX: `0px`, - translateY: `0px`, - scale: `1,1` - }; - const keyframeData = { - name, - style: {}, - duration: 300 - }; - addTransformToKeepPosition(keyframeData.style, exitingAnimationData.style, additionalExitingData, true); - addTransformToKeepPosition(keyframeData.style, enteringAnimationData.style, additionalEnteringData, false); - hideComponentBetweenAnimations(keyframeData.style); - return keyframeData; -} -//# sourceMappingURL=EntryExit.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/EntryExit.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/EntryExit.web.js.map deleted file mode 100644 index c99cec5d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/EntryExit.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["AnimationsData","ExitingFinalStep","EnteringStartStep","addTransformToKeepPosition","keyframeStyleData","animationStyle","transformData","isExiting","timestamp","styles","Object","entries","transform","undefined","unshift","newTimestamp","parseInt","index","Math","min","hideComponentBetweenAnimations","opacityInStep","Map","opacity","set","step","EntryExitTransition","name","transitionData","exitingAnimationData","structuredClone","exiting","enteringAnimationData","entering","additionalExitingData","translateX","translateY","scale","scaleX","scaleY","additionalEnteringData","keyframeData","style","duration"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/transition/EntryExit.web.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,cAAc,QAAQ,WAAW;AAE1C,MAAMC,gBAAgB,GAAG,EAAE;AAC3B,MAAMC,iBAAiB,GAAG,EAAE;AAQ5B;AACA;AACA;AACA;AACA,SAASC,0BAA0BA,CACjCC,iBAAiD,EACjDC,cAA8C,EAC9CC,aAA4B,EAC5BC,SAAkB,EAClB;EACA,KAAK,MAAM,CAACC,SAAS,EAAEC,MAAM,CAAC,IAAIC,MAAM,CAACC,OAAO,CAACN,cAAc,CAAC,EAAE;IAChE,IAAII,MAAM,CAACG,SAAS,KAAKC,SAAS,EAAE;MAClC;MACAJ,MAAM,CAACG,SAAS,CAACE,OAAO,CAACR,aAAa,CAAC;IACzC,CAAC,MAAM;MACL;MACAG,MAAM,CAACG,SAAS,GAAG,CA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AAQ,CACxC,CAAC;EAED,MAAMC,qBAAoC,GAAG;IAC3CC,UAAU,EAAE,GAAGP,cAAc,CAACO,UAAU,IAAI;IAC5CC,UAAU,EAAE,GAAGR,cAAc,CAACQ,UAAU,IAAI;IAC5CC,KAAK,EAAE,GAAGT,cAAc,CAACU,MAAM,IAAIV,cAAc,CAACW,MAAM;EAC1D,CAAC;EAED,MAAMC,sBAAqC,GAAG;IAC5CL,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EAED,MAAMI,YAA2B,GAAG;IAClCd,IAAI;IACJe,KAAK,EAAE,CAAC,CAAC;IACTC,QAAQ,EAAE;EACZ,CAAC;EAEDxC,0BAA0B,CACxBsC,YAAY,CAACC,KAAK,EAClBb,oBAAoB,CAACa,KAAK,EAC1BR,qBAAqB,EACrB,IACF,CAAC;EAED/B,0BAA0B,CACxBsC,YAAY,CAACC,KAAK,EAClBV,qBAAqB,CAACU,KAAK,EAC3BF,sBAAsB,EACtB,KACF,CAAC;EAEDpB,8BAA8B,CAACqB,YAAY,CAACC,KAAK,CAAC;EAElD,OAAOD,YAAY;AACrB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Fading.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Fading.web.js deleted file mode 100644 index e5b38bb0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Fading.web.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict'; - -export function FadingTransition(name, transitionData) { - const { - translateX, - translateY, - scaleX, - scaleY - } = transitionData; - const fadingTransition = { - name, - style: { - 0: { - opacity: 1, - transform: [{ - translateX: `${translateX}px`, - translateY: `${translateY}px`, - scale: `${scaleX},${scaleY}` - }] - }, - 20: { - opacity: 0, - transform: [{ - translateX: `${translateX}px`, - translateY: `${translateY}px`, - scale: `${scaleX},${scaleY}` - }] - }, - 60: { - opacity: 0, - transform: [{ - translateX: '0px', - translateY: '0px', - scale: `1,1` - }] - }, - 100: { - opacity: 1, - transform: [{ - translateX: '0px', - translateY: '0px', - scale: `1,1` - }] - } - }, - duration: 300 - }; - return fadingTransition; -} -//# sourceMappingURL=Fading.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Fading.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Fading.web.js.map deleted file mode 100644 index 87973639..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Fading.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["FadingTransition","name","transitionData","translateX","translateY","scaleX","scaleY","fadingTransition","style","opacity","transform","scale","duration"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/transition/Fading.web.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,gBAAgBA,CAACC,IAAY,EAAEC,cAA8B,EAAE;EAC7E,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,cAAc;EAEjE,MAAMK,gBAAgB,GAAG;IACvBN,IAAI;IACJO,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,OAAO,EAAE,CAAC;QACVC,SAAS,EAAE,CACT;UACEP,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BC,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BO,KAAK,EAAE,GAAGN,MAAM,IAAIC,MAAM;QAC5B,CAAC;MAEL,CAAC;MACD,EAAE,EAAE;QACFG,OAAO,EAAE,CAAC;QACVC,SAAS,EAAE,CACT;UACEP,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BC,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BO,KAAK,EAAE,GAAGN,MAAM,IAAIC,MAAM;QAC5B,CAAC;MAEL,CAAC;MACD,EAAE,EAAE;QACFG,OAAO,EAAE,CAAC;QACVC,SAAS,EAAE,CACT;UACEP,UAAU,EAAE,KAAK;UACjBC,UAAU,EAAE,KAAK;UACjBO,KAAK,EAAE;QACT,CAAC;MAEL,CAAC;MACD,GAAG,EAAE;QACHF,OAAO,EAAE,CAAC;QACVC,SAAS,EAAE,CACT;UACEP,UAAU,EAAE,KAAK;UACjBC,UAAU,EAAE,KAAK;UACjBO,KAAK,EAAE;QACT,CAAC;MAEL;IACF,CAAC;IACDC,QAAQ,EAAE;EACZ,CAAC;EAED,OAAOL,gBAAgB;AACzB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Jumping.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Jumping.web.js deleted file mode 100644 index e6780bc8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Jumping.web.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -import { Easing } from '../../../Easing'; -export function JumpingTransition(name, transitionData) { - const { - translateX, - translateY, - scaleX, - scaleY - } = transitionData; - const d = Math.max(Math.abs(translateX), Math.abs(translateY)) / 2; - const peakTranslateY = translateY <= 0 ? translateY - d : -translateY + d; - const jumpingTransition = { - name, - style: { - 0: { - transform: [{ - translateX: `${translateX}px`, - translateY: `${translateY}px`, - scale: `${scaleX},${scaleY}` - }], - easing: Easing.exp - }, - 50: { - transform: [{ - translateX: `${translateX / 2}px`, - translateY: `${peakTranslateY}px`, - scale: `${scaleX},${scaleY}` - }] - }, - 100: { - transform: [{ - translateX: '0px', - translateY: '0px', - scale: '1,1' - }] - } - }, - duration: 300 - }; - return jumpingTransition; -} -//# sourceMappingURL=Jumping.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Jumping.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Jumping.web.js.map deleted file mode 100644 index 3dc939e0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Jumping.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Easing","JumpingTransition","name","transitionData","translateX","translateY","scaleX","scaleY","d","Math","max","abs","peakTranslateY","jumpingTransition","style","transform","scale","easing","exp","duration"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/transition/Jumping.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,iBAAiB;AAGxC,OAAO,SAASC,iBAAiBA,CAC/BC,IAAY,EACZC,cAA8B,EAC9B;EACA,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,cAAc;EAEjE,MAAMK,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACP,UAAU,CAAC,EAAEK,IAAI,CAACE,GAAG,CAACN,UAAU,CAAC,CAAC,GAAG,CAAC;EAClE,MAAMO,cAAc,GAAGP,UAAU,IAAI,CAAC,GAAGA,UAAU,GAAGG,CAAC,GAAG,CAACH,UAAU,GAAGG,CAAC;EAEzE,MAAMK,iBAAiB,GAAG;IACxBX,IAAI;IACJY,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACEX,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BC,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BW,KAAK,EAAE,GAAGV,MAAM,IAAIC,MAAM;QAC5B,CAAC,CACF;QACDU,MAAM,EAAEjB,MAAM,CAACkB;MACjB,CAAC;MACD,EAAE,EAAE;QACFH,SAAS,EAAE,CACT;UACEX,UAAU,EAAE,GAAGA,UAAU,GAAG,CAAC,IAAI;UACjCC,UAAU,EAAE,GAAGO,cAAc,IAAI;UACjCI,KAAK,EAAE,GAAGV,MAAM,IAAIC,MAAM;QAC5B,CAAC;MAEL,CAAC;MACD,GAAG,EAAE;QACHQ,SAAS,EAAE,CAAC;UAAEX,UAAU,EAAE,KAAK;UAAEC,UAAU,EAAE,KAAK;UAAEW,KAAK,EAAE;QAAM,CAAC;MACpE;IACF,CAAC;IACDG,QAAQ,EAAE;EACZ,CAAC;EAED,OAAON,iBAAiB;AAC1B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Linear.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Linear.web.js deleted file mode 100644 index c94fd3cf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Linear.web.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -export function LinearTransition(name, transitionData) { - const { - translateX, - translateY, - scaleX, - scaleY - } = transitionData; - const linearTransition = { - name, - style: { - 0: { - transform: [{ - translateX: `${translateX}px`, - translateY: `${translateY}px`, - scale: `${scaleX},${scaleY}` - }] - } - }, - duration: 300 - }; - return linearTransition; -} -//# sourceMappingURL=Linear.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Linear.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Linear.web.js.map deleted file mode 100644 index 35840c31..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Linear.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["LinearTransition","name","transitionData","translateX","translateY","scaleX","scaleY","linearTransition","style","transform","scale","duration"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/transition/Linear.web.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,gBAAgBA,CAACC,IAAY,EAAEC,cAA8B,EAAE;EAC7E,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,cAAc;EAEjE,MAAMK,gBAAgB,GAAG;IACvBN,IAAI;IACJO,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACEN,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BC,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BM,KAAK,EAAE,GAAGL,MAAM,IAAIC,MAAM;QAC5B,CAAC;MAEL;IACF,CAAC;IACDK,QAAQ,EAAE;EACZ,CAAC;EAED,OAAOJ,gBAAgB;AACzB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Sequenced.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Sequenced.web.js deleted file mode 100644 index 777f353a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Sequenced.web.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; - -export function SequencedTransition(name, transitionData) { - const { - translateX, - translateY, - scaleX, - scaleY, - reversed - } = transitionData; - const scaleValue = reversed ? `1,${scaleX}` : `${scaleY},1`; - const sequencedTransition = { - name, - style: { - 0: { - transform: [{ - translateX: `${translateX}px`, - translateY: `${translateY}px`, - scale: `${scaleX},${scaleY}` - }] - }, - 50: { - transform: [{ - translateX: reversed ? `${translateX}px` : '0px', - translateY: reversed ? '0px' : `${translateY}px`, - scale: scaleValue - }] - }, - 100: { - transform: [{ - translateX: '0px', - translateY: '0px', - scale: '1,1' - }] - } - }, - duration: 300 - }; - return sequencedTransition; -} -//# sourceMappingURL=Sequenced.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Sequenced.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Sequenced.web.js.map deleted file mode 100644 index c29202da..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/layoutReanimation/web/transition/Sequenced.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SequencedTransition","name","transitionData","translateX","translateY","scaleX","scaleY","reversed","scaleValue","sequencedTransition","style","transform","scale","duration"],"sourceRoot":"../../../../../src","sources":["layoutReanimation/web/transition/Sequenced.web.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,mBAAmBA,CACjCC,IAAY,EACZC,cAA8B,EAC9B;EACA,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC,MAAM;IAAEC,MAAM;IAAEC;EAAS,CAAC,GAAGL,cAAc;EAE3E,MAAMM,UAAU,GAAGD,QAAQ,GAAG,KAAKF,MAAM,EAAE,GAAG,GAAGC,MAAM,IAAI;EAE3D,MAAMG,mBAAmB,GAAG;IAC1BR,IAAI;IACJS,KAAK,EAAE;MACL,CAAC,EAAE;QACDC,SAAS,EAAE,CACT;UACER,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BC,UAAU,EAAE,GAAGA,UAAU,IAAI;UAC7BQ,KAAK,EAAE,GAAGP,MAAM,IAAIC,MAAM;QAC5B,CAAC;MAEL,CAAC;MACD,EAAE,EAAE;QACFK,SAAS,EAAE,CACT;UACER,UAAU,EAAEI,QAAQ,GAAG,GAAGJ,UAAU,IAAI,GAAG,KAAK;UAChDC,UAAU,EAAEG,QAAQ,GAAG,KAAK,GAAG,GAAGH,UAAU,IAAI;UAChDQ,KAAK,EAAEJ;QACT,CAAC;MAEL,CAAC;MACD,GAAG,EAAE;QACHG,SAAS,EAAE,CAAC;UAAER,UAAU,EAAE,KAAK;UAAEC,UAAU,EAAE,KAAK;UAAEQ,KAAK,EAAE;QAAM,CAAC;MACpE;IACF,CAAC;IACDC,QAAQ,EAAE;EACZ,CAAC;EAED,OAAOJ,mBAAmB;AAC5B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/mappers.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/mappers.js deleted file mode 100644 index 8be40951..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/mappers.js +++ /dev/null @@ -1,189 +0,0 @@ -'use strict'; - -import { runOnUI } from 'react-native-worklets'; -import { IS_JEST } from './common'; -import { isSharedValue } from './isSharedValue'; -function createMapperRegistry() { - 'worklet'; - - const mappers = new Map(); - let sortedMappers = []; - let runRequested = false; - let processingMappers = false; - function updateMappersOrder() { - // sort mappers topologically - // the algorithm here takes adventage of a fact that the topological order - // of a transposed graph is a reverse topological order of the original graph - // The graph in our case consists of mappers and an edge between two mappers - // A and B exists if there is a shared value that's on A's output lists and on - // B's input list. - // - // We don't need however to calculate that graph as it is easier to work with - // the transposed version of it that can be calculated ad-hoc. For the transposed - // version to be traversed we use "pre" map that maps share value to mappers that - // output that shared value. Then we can infer all the outgoing edges for a given - // mapper simply by scanning it's input list and checking if any of the shared values - // from that list exists in the "pre" map. If they do, then we have an edge between - // that mapper and the mappers from the "pre" list for the given shared value. - // - // For topological sorting we use a dfs-based approach that requires the graph to - // be traversed in dfs order and each node after being processed lands at the - // beginning of the topological order list. Since we traverse a transposed graph, - // instead of reversing that order we can use a normal array and push processed - // mappers to the end. There is no need to reverse that array after we are done. - const pre = new Map(); // map from sv -> mapper that outputs that sv - mappers.forEach(mapper => { - if (mapper.outputs) { - for (const output of mapper.outputs) { - const preMappers = pre.get(output); - if (preMappers === undefined) { - pre.set(output, [mapper]); - } else { - preMappers.push(mapper); - } - } - } - }); - const visited = new Set(); - const newOrder = []; - function dfs(mapper) { - visited.add(mapper); - for (const input of mapper.inputs) { - const preMappers = pre.get(input); - if (preMappers) { - for (const preMapper of preMappers) { - if (!visited.has(preMapper)) { - dfs(preMapper); - } - } - } - } - newOrder.push(mapper); - } - mappers.forEach(mapper => { - if (!visited.has(mapper)) { - dfs(mapper); - } - }); - sortedMappers = newOrder; - } - function mapperRun() { - runRequested = false; - if (processingMappers) { - return; - } - try { - processingMappers = true; - if (mappers.size !== sortedMappers.length) { - updateMappersOrder(); - } - for (const mapper of sortedMappers) { - if (mapper.dirty) { - mapper.dirty = false; - mapper.worklet(); - } - } - } finally { - processingMappers = false; - } - } - function maybeRequestUpdates() { - if (IS_JEST) { - // On Jest environment we avoid using queueMicrotask as that'd require test - // to advance the clock manually. This on other hand would require tests - // to know how many times mappers need to run. As we don't want tests to - // make any assumptions on that number it is easier to execute mappers - // immediately for testing purposes and only expect test to advance timers - // if they want to make any assertions on the effects of animations being run. - mapperRun(); - } else if (!runRequested) { - if (processingMappers) { - // In general, we should avoid having mappers trigger updates as this may - // result in unpredictable behavior. Specifically, the updated value can - // be read by mappers that run later in the same frame but previous mappers - // would access the old value. Updating mappers during the mapper-run phase - // breaks the order in which we should execute the mappers. However, doing - // that is still a possibility and there are some instances where people use - // the API in that way, hence we need to prevent mapper-run phase falling into - // an infinite loop. We do that by detecting when mapper-run is requested while - // we are already in mapper-run phase, and in that case we use `requestAnimationFrame` - // instead of `queueMicrotask` which will schedule mapper run for the next - // frame instead of queuing another set of updates in the same frame. - requestAnimationFrame(mapperRun); - } else { - queueMicrotask(mapperRun); - } - runRequested = true; - } - } - function extractInputs(inputs, resultArray) { - if (Array.isArray(inputs)) { - for (const input of inputs) { - if (input) { - extractInputs(input, resultArray); - } - } - } else if (isSharedValue(inputs)) { - resultArray.push(inputs); - } else if (Object.getPrototypeOf(inputs) === Object.prototype) { - // we only extract inputs recursively from "plain" objects here, if object - // is of a derivative class (e.g. HostObject on web, or Map) we don't scan - // it recursively - for (const element of Object.values(inputs)) { - if (element) { - extractInputs(element, resultArray); - } - } - } - return resultArray; - } - return { - start: (mapperID, worklet, inputs, outputs) => { - const mapper = { - id: mapperID, - dirty: true, - worklet, - inputs: extractInputs(inputs, []), - outputs - }; - mappers.set(mapper.id, mapper); - sortedMappers = []; - for (const sv of mapper.inputs) { - sv.addListener(mapper.id, () => { - mapper.dirty = true; - maybeRequestUpdates(); - }); - } - maybeRequestUpdates(); - }, - stop: mapperID => { - const mapper = mappers.get(mapperID); - if (mapper) { - mappers.delete(mapper.id); - sortedMappers = []; - for (const sv of mapper.inputs) { - sv.removeListener(mapper.id); - } - } - } - }; -} -let MAPPER_ID = 9999; -export function startMapper(worklet, inputs = [], outputs = []) { - const mapperID = MAPPER_ID += 1; - runOnUI(() => { - let mapperRegistry = global.__mapperRegistry; - if (mapperRegistry === undefined) { - mapperRegistry = global.__mapperRegistry = createMapperRegistry(); - } - mapperRegistry.start(mapperID, worklet, inputs, outputs); - })(); - return mapperID; -} -export function stopMapper(mapperID) { - runOnUI(() => { - const mapperRegistry = global.__mapperRegistry; - mapperRegistry?.stop(mapperID); - })(); -} -//# sourceMappingURL=mappers.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/mappers.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/mappers.js.map deleted file mode 100644 index 64bdb26e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/mappers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["runOnUI","IS_JEST","isSharedValue","createMapperRegistry","mappers","Map","sortedMappers","runRequested","processingMappers","updateMappersOrder","pre","forEach","mapper","outputs","output","preMappers","get","undefined","set","push","visited","Set","newOrder","dfs","add","input","inputs","preMapper","has","mapperRun","size","length","dirty","worklet","maybeRequestUpdates","requestAnimationFrame","queueMicrotask","extractInputs","resultArray","Array","isArray","Object","getPrototypeOf","prototype","element","values","start","mapperID","id","sv","addListener","stop","delete","removeListener","MAPPER_ID","startMapper","mapperRegistry","global","__mapperRegistry","stopMapper"],"sourceRoot":"../../src","sources":["mappers.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,QAAQ,uBAAuB;AAE/C,SAASC,OAAO,QAAQ,UAAU;AAMlC,SAASC,aAAa,QAAQ,iBAAiB;AAY/C,SAASC,oBAAoBA,CAAA,EAAG;EAC9B,SAAS;;EACT,MAAMC,OAAO,GAAG,IAAIC,GAAG,CAAiB,CAAC;EACzC,IAAIC,aAAuB,GAAG,EAAE;EAEhC,IAAIC,YAAY,GAAG,KAAK;EACxB,IAAIC,iBAAiB,GAAG,KAAK;EAE7B,SAASC,kBAAkBA,CAA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AC9B;MACF;IACF;EACF,CAAC;AACH;AAEA,IAAIM,SAAS,GAAG,IAAI;AAEpB,OAAO,SAASC,WAAWA,CACzBtB,OAAmB,EACnBP,MAAuB,GAAG,EAAE,EAC5Bb,OAAsB,GAAG,EAAE,EACnB;EACR,MAAMkC,QAAQ,GAAIO,SAAS,IAAI,CAAE;EAEjCtD,OAAO,CAAC,MAAM;IACZ,IAAIwD,cAAc,GAAGC,MAAM,CAACC,gBAAgB;IAC5C,IAAIF,cAAc,KAAKvC,SAAS,EAAE;MAChCuC,cAAc,GAAGC,MAAM,CAACC,gBAAgB,GAAGvD,oBAAoB,CAAC,CAAC;IACnE;IACAqD,cAAc,CAACV,KAAK,CAACC,QAAQ,EAAEd,OAAO,EAAEP,MAAM,EAAEb,OAAO,CAAC;EAC1D,CAAC,CAAC,CAAC,CAAC;EAEJ,OAAOkC,QAAQ;AACjB;AAEA,OAAO,SAASY,UAAUA,CAACZ,QAAgB,EAAQ;EACjD/C,OAAO,CAAC,MAAM;IACZ,MAAMwD,cAAc,GAAGC,MAAM,CAACC,gBAAgB;IAC9CF,cAAc,EAAEL,IAAI,CAACJ,QAAQ,CAAC;EAChC,CAAC,CAAC,CAAC,CAAC;AACN","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/mock.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/mock.js deleted file mode 100644 index a1293b1b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/mock.js +++ /dev/null @@ -1,425 +0,0 @@ -'use strict'; - -import { Animated as AnimatedRN, Image as ImageRN, processColor as processColorRN, Text as TextRN, View as ViewRN } from 'react-native'; -import { advanceAnimationByFrame, advanceAnimationByTime, ColorSpace, Extrapolation, getAnimatedStyle, InterfaceOrientation, IOSReferenceFrame, KeyboardState, reanimatedVersion, ReduceMotion, SensorType, setUpTests, withReanimatedTimer } from './index'; - -// eslint-disable-next-line @typescript-eslint/no-empty-function -const NOOP = () => {}; -const NOOP_FACTORY = () => NOOP; -const ID = t => t; -const IMMEDIATE_CALLBACK_INVOCATION = callback => callback(); -const hook = { - useAnimatedProps: IMMEDIATE_CALLBACK_INVOCATION, - useEvent: (_handler, _eventNames, _rebuild) => NOOP, - // useHandler: ADD ME IF NEEDED - useSharedValue: init => { - const value = { - value: init - }; - return new Proxy(value, { - get(target, prop) { - if (prop === 'value') { - return target.value; - } - if (prop === 'get') { - return () => target.value; - } - if (prop === 'set') { - return newValue => { - if (typeof newValue === 'function') { - target.value = newValue(target.value); - } else { - target.value = newValue; - } - }; - } - }, - set(target, prop, newValue) { - if (prop === 'value') { - target.value = newValue; - return true; - } - return false; - } - }); - }, - // useReducedMotion: ADD ME IF NEEDED - useAnimatedStyle: IMMEDIATE_CALLBACK_INVOCATION, - useAnimatedReaction: NOOP, - useAnimatedRef: () => ({ - current: null - }), - useAnimatedScrollHandler: NOOP_FACTORY, - useDerivedValue: processor => { - const result = processor(); - return { - value: result, - get: () => result - }; - }, - useAnimatedSensor: () => ({ - sensor: { - value: { - x: 0, - y: 0, - z: 0, - interfaceOrientation: 0, - qw: 0, - qx: 0, - qy: 0, - qz: 0, - yaw: 0, - pitch: 0, - roll: 0 - } - }, - unregister: NOOP, - isAvailable: false, - config: { - interval: 0, - adjustToInterfaceOrientation: false, - iosReferenceFrame: 0 - } - }), - // useFrameCallback: ADD ME IF NEEDED - useAnimatedKeyboard: () => ({ - height: 0, - state: 0 - }), - useScrollViewOffset: () => ({ - value: 0 - }), - useScrollOffset: () => ({ - value: 0 - }) -}; -const animation = { - cancelAnimation: NOOP, - // defineAnimation: ADD ME IF NEEDED - // withClamp: ADD ME IF NEEDED - withDecay: (_userConfig, callback) => { - callback?.(true); - return 0; - }, - withDelay: (_delayMs, nextAnimation) => { - return nextAnimation; - }, - withRepeat: ID, - withSequence: () => 0, - withSpring: (toValue, _userConfig, callback) => { - callback?.(true); - return toValue; - }, - withTiming: (toValue, _userConfig, callback) => { - callback?.(true); - return toValue; - } -}; -const interpolation = { - Extrapolation, - interpolate: NOOP, - clamp: NOOP -}; -const interpolateColor = { - Extrapolate: Extrapolation, - Extrapolation, - ColorSpace, - interpolateColor: NOOP - // useInterpolateConfig: ADD ME IF NEEDED -}; -const Easing = { - Easing: { - linear: ID, - ease: ID, - quad: ID, - cubic: ID, - poly: ID, - sin: ID, - circle: ID, - exp: ID, - elastic: ID, - back: ID, - bounce: ID, - bezier: () => ({ - factory: ID - }), - bezierFn: ID, - steps: ID, - in: ID, - out: ID, - inOut: ID - } -}; -const platformFunctions = { - measure: () => ({ - x: 0, - y: 0, - width: 0, - height: 0, - pageX: 0, - pageY: 0 - }), - // dispatchCommand: ADD ME IF NEEDED - scrollTo: NOOP - // setGestureState: ADD ME IF NEEDED - // setNativeProps: ADD ME IF NEEDED - // getRelativeCoords: ADD ME IF NEEDED -}; -const Colors = { - // isColor: ADD ME IF NEEDED - processColor: processColorRN - // convertToRGBA: ADD ME IF NEEDED -}; -const PropAdapters = { - // createAnimatedPropAdapter: ADD ME IF NEEDED -}; -class BaseAnimationMock { - duration() { - return this; - } - delay() { - return this; - } - springify() { - return this; - } - damping() { - return this; - } - stiffness() { - return this; - } - withCallback() { - return this; - } - randomDelay() { - return this; - } - withInitialValues() { - return this; - } - easing(_) { - return this; - } - rotate(_) { - return this; - } - mass(_) { - return this; - } - restDisplacementThreshold(_) { - return this; - } - restSpeedThreshold(_) { - return this; - } - overshootClamping(_) { - return this; - } - dampingRatio(_) { - return this; - } - getDelay() { - return 0; - } - getDelayFunction() { - return NOOP; - } - getDuration() { - return 300; - } - getReduceMotion() { - return ReduceMotion.System; - } - getAnimationAndConfig() { - return [NOOP, {}]; - } - build() { - return () => ({ - initialValues: {}, - animations: {} - }); - } - reduceMotion() { - return this; - } -} -const core = { - runOnJS: ID, - runOnUI: ID, - createWorkletRuntime: NOOP, - runOnRuntime: NOOP, - makeMutable: ID, - createSerializable: ID, - isReanimated3: () => false, - // isConfigured: ADD ME IF NEEDED - enableLayoutAnimations: NOOP - // getViewProp: ADD ME IF NEEDED -}; -const layoutReanimation = { - BaseAnimationBuilder: new BaseAnimationMock(), - ComplexAnimationBuilder: new BaseAnimationMock(), - Keyframe: BaseAnimationMock, - // Flip - FlipInXUp: new BaseAnimationMock(), - FlipInYLeft: new BaseAnimationMock(), - FlipInXDown: new BaseAnimationMock(), - FlipInYRight: new BaseAnimationMock(), - FlipInEasyX: new BaseAnimationMock(), - FlipInEasyY: new BaseAnimationMock(), - FlipOutXUp: new BaseAnimationMock(), - FlipOutYLeft: new BaseAnimationMock(), - FlipOutXDown: new BaseAnimationMock(), - FlipOutYRight: new BaseAnimationMock(), - FlipOutEasyX: new BaseAnimationMock(), - FlipOutEasyY: new BaseAnimationMock(), - // Stretch - StretchInX: new BaseAnimationMock(), - StretchInY: new BaseAnimationMock(), - StretchOutX: new BaseAnimationMock(), - StretchOutY: new BaseAnimationMock(), - // Fade - FadeIn: new BaseAnimationMock(), - FadeInRight: new BaseAnimationMock(), - FadeInLeft: new BaseAnimationMock(), - FadeInUp: new BaseAnimationMock(), - FadeInDown: new BaseAnimationMock(), - FadeOut: new BaseAnimationMock(), - FadeOutRight: new BaseAnimationMock(), - FadeOutLeft: new BaseAnimationMock(), - FadeOutUp: new BaseAnimationMock(), - FadeOutDown: new BaseAnimationMock(), - // Slide - SlideInRight: new BaseAnimationMock(), - SlideInLeft: new BaseAnimationMock(), - SlideOutRight: new BaseAnimationMock(), - SlideOutLeft: new BaseAnimationMock(), - SlideInUp: new BaseAnimationMock(), - SlideInDown: new BaseAnimationMock(), - SlideOutUp: new BaseAnimationMock(), - SlideOutDown: new BaseAnimationMock(), - // Zoom - ZoomIn: new BaseAnimationMock(), - ZoomInRotate: new BaseAnimationMock(), - ZoomInLeft: new BaseAnimationMock(), - ZoomInRight: new BaseAnimationMock(), - ZoomInUp: new BaseAnimationMock(), - ZoomInDown: new BaseAnimationMock(), - ZoomInEasyUp: new BaseAnimationMock(), - ZoomInEasyDown: new BaseAnimationMock(), - ZoomOut: new BaseAnimationMock(), - ZoomOutRotate: new BaseAnimationMock(), - ZoomOutLeft: new BaseAnimationMock(), - ZoomOutRight: new BaseAnimationMock(), - ZoomOutUp: new BaseAnimationMock(), - ZoomOutDown: new BaseAnimationMock(), - ZoomOutEasyUp: new BaseAnimationMock(), - ZoomOutEasyDown: new BaseAnimationMock(), - // Bounce - BounceIn: new BaseAnimationMock(), - BounceInDown: new BaseAnimationMock(), - BounceInUp: new BaseAnimationMock(), - BounceInLeft: new BaseAnimationMock(), - BounceInRight: new BaseAnimationMock(), - BounceOut: new BaseAnimationMock(), - BounceOutDown: new BaseAnimationMock(), - BounceOutUp: new BaseAnimationMock(), - BounceOutLeft: new BaseAnimationMock(), - BounceOutRight: new BaseAnimationMock(), - // Lightspeed - LightSpeedInRight: new BaseAnimationMock(), - LightSpeedInLeft: new BaseAnimationMock(), - LightSpeedOutRight: new BaseAnimationMock(), - LightSpeedOutLeft: new BaseAnimationMock(), - // Pinwheel - PinwheelIn: new BaseAnimationMock(), - PinwheelOut: new BaseAnimationMock(), - // Rotate - RotateInDownLeft: new BaseAnimationMock(), - RotateInDownRight: new BaseAnimationMock(), - RotateInUpLeft: new BaseAnimationMock(), - RotateInUpRight: new BaseAnimationMock(), - RotateOutDownLeft: new BaseAnimationMock(), - RotateOutDownRight: new BaseAnimationMock(), - RotateOutUpLeft: new BaseAnimationMock(), - RotateOutUpRight: new BaseAnimationMock(), - // Roll - RollInLeft: new BaseAnimationMock(), - RollInRight: new BaseAnimationMock(), - RollOutLeft: new BaseAnimationMock(), - RollOutRight: new BaseAnimationMock(), - // Transitions - Layout: new BaseAnimationMock(), - LinearTransition: new BaseAnimationMock(), - FadingTransition: new BaseAnimationMock(), - SequencedTransition: new BaseAnimationMock(), - JumpingTransition: new BaseAnimationMock(), - CurvedTransition: new BaseAnimationMock(), - EntryExitTransition: new BaseAnimationMock() -}; -const isSharedValue = { - // isSharedValue: ADD ME IF NEEDED -}; -const commonTypes = { - SensorType, - IOSReferenceFrame, - InterfaceOrientation, - KeyboardState, - ReduceMotion -}; -const pluginUtils = { - // getUseOfValueInStyleWarning: ADD ME IF NEEDED -}; -const jestUtils = { - withReanimatedTimer, - advanceAnimationByTime, - advanceAnimationByFrame, - setUpTests, - getAnimatedStyle -}; -const LayoutAnimationConfig = { - // LayoutAnimationConfig: ADD ME IF NEEDED -}; -const mappers = { - // startMapper: ADD ME IF NEEDED - // stopMapper: ADD ME IF NEEDED -}; -const Animated = { - View: ViewRN, - Text: TextRN, - Image: ImageRN, - ScrollView: AnimatedRN.ScrollView, - FlatList: AnimatedRN.FlatList, - Extrapolate: Extrapolation, - interpolate: NOOP, - interpolateColor: NOOP, - clamp: NOOP, - createAnimatedComponent: ID, - addWhitelistedUIProps: NOOP, - addWhitelistedNativeProps: NOOP -}; -const Reanimated = { - ...core, - ...hook, - ...animation, - ...interpolation, - ...interpolateColor, - ...Easing, - ...platformFunctions, - ...Colors, - ...PropAdapters, - ...layoutReanimation, - ...isSharedValue, - ...commonTypes, - ...pluginUtils, - ...jestUtils, - ...LayoutAnimationConfig, - ...mappers -}; -module.exports = { - __esModule: true, - reanimatedVersion, - ...Reanimated, - default: Animated -}; -//# sourceMappingURL=mock.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/mock.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/mock.js.map deleted file mode 100644 index 2dcdc1a5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/mock.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["Animated","AnimatedRN","Image","ImageRN","processColor","processColorRN","Text","TextRN","View","ViewRN","advanceAnimationByFrame","advanceAnimationByTime","ColorSpace","Extrapolation","getAnimatedStyle","InterfaceOrientation","IOSReferenceFrame","KeyboardState","reanimatedVersion","ReduceMotion","SensorType","setUpTests","withReanimatedTimer","NOOP","NOOP_FACTORY","ID","t","IMMEDIATE_CALLBACK_INVOCATION","callback","hook","useAnimatedProps","useEvent","_handler","_eventNames","_rebuild","useSharedValue","init","value","Proxy","get","target","prop","newValue","set","useAnimatedStyle","useAnimatedReaction","useAnimatedRef","current","useAnimatedScrollHandler","useDerivedValue","processor","result","useAnimatedSensor","sensor","x","y","z","interfaceOrientation","qw","qx","qy","qz","yaw","pitch","roll","unregister","isAvailable","config","interval","adjustToInterfaceOrientation","iosReferenceFrame","useAnimatedKeyboard","height","state","useScrollViewOffset","useScrollOffset","animation","cancelAnimation","withDecay","_userConfig","withDelay","_delayMs","nextAnimation","withRepeat","withSequence","withSpring","toValue","withTiming","interpolation","interpolate","clamp","interpolateColor","Extrapolate","Easing","linear","ease","quad","cubic","poly","sin","circle","exp","elastic","back","bounce","bezier","factory","bezierFn","steps","in","out","inOut","platformFunctions","measure","width","pageX","pageY","scrollTo","Colors","PropAdapters","BaseAnimationMock","duration","delay","springify","damping","stiffness","withCallback","randomDelay","withInitialValues","easing","_","rotate","mass","restDisplacementThreshold","restSpeedThreshold","overshootClamping","dampingRatio","getDelay","getDelayFunction","getDuration","getReduceMotion","System","getAnimationAndConfig","build","initialValues","animations","reduceMotion","core","runOnJS","runOnUI","createWorkletRuntime","runOnRuntime","makeMutable","createSerializable","isReanimated3","enableLayoutAnimations","layoutReanimation","BaseAnimationBuilder","ComplexAnimationBuilder","Keyframe","FlipInXUp","FlipInYLeft","FlipInXDown","FlipInYRight","FlipInEasyX","FlipInEasyY","FlipOutXUp","FlipOutYLeft","FlipOutXDown","FlipOutYRight","FlipOutEasyX","FlipOutEasyY","StretchInX","StretchInY","StretchOutX","StretchOutY","FadeIn","FadeInRight","FadeInLeft","FadeInUp","FadeInDown","FadeOut","FadeOutRight","FadeOutLeft","FadeOutUp","FadeOutDown","SlideInRight","SlideInLeft","SlideOutRight","SlideOutLeft","SlideInUp","SlideInDown","SlideOutUp","SlideOutDown","ZoomIn","ZoomInRotate","ZoomInLeft","ZoomInRight","ZoomInUp","ZoomInDown","ZoomInEasyUp","ZoomInEasyDown","ZoomOut","ZoomOutRotate","ZoomOutLeft","ZoomOutRight","ZoomOutUp","ZoomOutDown","ZoomOutEasyUp","ZoomOutEasyDown","BounceIn","BounceInDown","BounceInUp","BounceInLeft","BounceInRight","BounceOut","BounceOutDown","BounceOutUp","BounceOutLeft","BounceOutRight","LightSpeedInRight","LightSpeedInLeft","LightSpeedOutRight","LightSpeedOutLeft","PinwheelIn","PinwheelOut","RotateInDownLeft","RotateInDownRight","RotateInUpLeft","RotateInUpRight","RotateOutDownLeft","RotateOutDownRight","RotateOutUpLeft","RotateOutUpRight","RollInLeft","RollInRight","RollOutLeft","RollOutRight","Layout","LinearTransition","FadingTransition","SequencedTransition","JumpingTransition","CurvedTransition","EntryExitTransition","isSharedValue","commonTypes","pluginUtils","jestUtils","LayoutAnimationConfig","mappers","ScrollView","FlatList","createAnimatedComponent","addWhitelistedUIProps","addWhitelistedNativeProps","Reanimated","module","exports","__esModule","default"],"sourceRoot":"../../src","sources":["mock.ts"],"mappings":"AAAA,YAAY;;AAEZ,SACEA,QAAQ,IAAIC,UAAU,EACtBC,KAAK,IAAIC,OAAO,EAChBC,YAAY,IAAIC,cAAc,EAC9BC,IAAI,IAAIC,MAAM,EACdC,IAAI,IAAIC,MAAM,QACT,cAAc;AAWrB,SACEC,uBAAuB,EACvBC,sBAAsB,EACtBC,UAAU,EACVC,aAAa,EACbC,gBAAgB,EAChBC,oBAAoB,EACpBC,iBAAiB,EACjBC,aAAa,EACbC,iBAAiB,EACjBC,YAAY,EACZC,UAAU,EACVC,UAAU,EACVC,mBAAmB,QACd,SAAS;;AAEhB;AACA,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;AACrB,MAAMC,YAAY,GAAGA,CAAA,KAAMD,IAAI;AAC/B,MAAME,EAAE,GAAOC,CAAI,IAAKA,CAAC;AACzB,MAAMC,6BAA6B,GAAOC,QAAiB,IAAKA,QAAQ,CAAC,CAAC;AAE1E,MAAMC,IAAI,GAAG;EACXC,gBAAgB,EAAEH,6BAA6B;EAC/CI,QAAQ,EAAEA,C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react-native-reanimated/lib/module/mutables.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/mutables.js deleted file mode 100644 index 53535fc3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/mutables.js +++ /dev/null @@ -1,313 +0,0 @@ -'use strict'; - -import { createSerializable, createSynchronizable, executeOnUIRuntimeSync, runOnUI, serializableMappingCache } from 'react-native-worklets'; -import { IS_JEST, logger, ReanimatedError, SHOULD_BE_USE_WEB } from './common'; -import { getStaticFeatureFlag } from './featureFlags'; -import { isFirstReactRender, isReactRendering } from './reactUtils'; -import { valueSetter } from './valueSetter'; -function shouldWarnAboutAccessDuringRender() { - return __DEV__ && isReactRendering() && !isFirstReactRender(); -} -function checkInvalidReadDuringRender() { - if (shouldWarnAboutAccessDuringRender()) { - logger.warn("Reading from `value` during component render. Please ensure that you don't access the `value` property nor use `get` method of a shared value while React is rendering a component.", { - strict: true - }); - } -} -function checkInvalidWriteDuringRender() { - if (shouldWarnAboutAccessDuringRender()) { - logger.warn("Writing to `value` during component render. Please ensure that you don't access the `value` property nor use `set` method of a shared value while React is rendering a component.", { - strict: true - }); - } -} -/** - * Adds `get` and `set` methods to the mutable object to handle access to - * `value` property. - * - * React Compiler disallows modifying return values of hooks. Even though - * assignment to `value` is a setter invocation, Compiler's static analysis - * doesn't detect it. That's why we provide a second API for users using the - * Compiler. - */ -function addCompilerSafeGetAndSet(mutable) { - 'worklet'; - - Object.defineProperties(mutable, { - get: { - value() { - return mutable.value; - }, - configurable: false, - enumerable: false - }, - set: { - value(newValue) { - if (typeof newValue === 'function' && - // If we have an animation definition, we don't want to call it here. - !newValue.__isAnimationDefinition) { - mutable.value = newValue(mutable.value); - } else { - mutable.value = newValue; - } - }, - configurable: false, - enumerable: false - } - }); -} -/** - * Hides the internal `_value` property of a mutable. It won't be visible to: - * - * - `Object.keys`, - * - `const prop in obj`, - * - Etc. - * - * This way when the user accidentally sends the SharedValue to React, he won't - * get an obscure error message. - * - * We hide for both _React runtime_ and _Worklet runtime_ mutables for - * uniformity of behavior. - */ -function hideInternalValueProp(mutable) { - 'worklet'; - - Object.defineProperty(mutable, '_value', { - configurable: false, - enumerable: false - }); -} - -// eslint-disable-next-line camelcase -function experimental_makeMutableUI(initial, dirtyFlag) { - 'worklet'; - - const listeners = new Map(); - let value = initial; - let isDirty = false; - const mutable = { - get value() { - return value; - }, - set value(newValue) { - valueSetter(mutable, newValue); - }, - get _value() { - return value; - }, - set _value(newValue) { - if (!isDirty) { - this.setDirty(true); - } - value = newValue; - listeners.forEach(listener => { - listener(newValue); - }); - }, - modify: (modifier, forceUpdate = true) => { - valueSetter(mutable, modifier !== undefined ? modifier(value) : value, forceUpdate); - }, - addListener: (id, listener) => { - listeners.set(id, listener); - }, - removeListener: id => { - listeners.delete(id); - }, - setDirty: dirty => { - dirtyFlag.setBlocking(dirty); - isDirty = dirty; - }, - _animation: null, - _isReanimatedSharedValue: true - }; - hideInternalValueProp(mutable); - addCompilerSafeGetAndSet(mutable); - return mutable; -} - -// eslint-disable-next-line camelcase -export function legacy_makeMutableUI(initial) { - 'worklet'; - - const listeners = new Map(); - let value = initial; - const mutable = { - get value() { - return value; - }, - set value(newValue) { - valueSetter(mutable, newValue); - }, - get _value() { - return value; - }, - set _value(newValue) { - value = newValue; - listeners.forEach(listener => { - listener(newValue); - }); - }, - modify: (modifier, forceUpdate = true) => { - valueSetter(mutable, modifier !== undefined ? modifier(value) : value, forceUpdate); - }, - addListener: (id, listener) => { - listeners.set(id, listener); - }, - removeListener: id => { - listeners.delete(id); - }, - _animation: null, - _isReanimatedSharedValue: true - }; - hideInternalValueProp(mutable); - addCompilerSafeGetAndSet(mutable); - return mutable; -} -const USE_SYNCHRONIZABLE_FOR_MUTABLES = getStaticFeatureFlag('USE_SYNCHRONIZABLE_FOR_MUTABLES'); - -// eslint-disable-next-line camelcase -function experimental_makeMutableNative(initial) { - let latest = initial; - const dirtyFlag = createSynchronizable(false); - const handle = createSerializable({ - __init: () => { - 'worklet'; - - return experimental_makeMutableUI(initial, dirtyFlag); - } - }); - const mutable = { - get value() { - checkInvalidReadDuringRender(); - if (dirtyFlag.getBlocking()) { - const uiValueGetter = executeOnUIRuntimeSync(sv => { - sv.setDirty(false); - return sv.value; - }); - latest = uiValueGetter(mutable); - } - return latest; - }, - set value(newValue) { - checkInvalidWriteDuringRender(); - runOnUI(() => { - mutable.value = newValue; - })(); - }, - get _value() { - throw new ReanimatedError('Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?'); - }, - set _value(_newValue) { - throw new ReanimatedError('Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?'); - }, - modify: (modifier, forceUpdate = true) => { - runOnUI(() => { - mutable.modify(modifier, forceUpdate); - })(); - }, - addListener: () => { - throw new ReanimatedError('Adding listeners is only possible on the UI runtime.'); - }, - removeListener: () => { - throw new ReanimatedError('Removing listeners is only possible on the UI runtime.'); - }, - _isReanimatedSharedValue: true - }; - hideInternalValueProp(mutable); - addCompilerSafeGetAndSet(mutable); - serializableMappingCache.set(mutable, handle); - return mutable; -} -function makeMutableNative(initial) { - const handle = createSerializable({ - __init: () => { - 'worklet'; - - return legacy_makeMutableUI(initial); - } - }); - const mutable = { - get value() { - checkInvalidReadDuringRender(); - const uiValueGetter = executeOnUIRuntimeSync(sv => { - return sv.value; - }); - return uiValueGetter(mutable); - }, - set value(newValue) { - checkInvalidWriteDuringRender(); - runOnUI(() => { - mutable.value = newValue; - })(); - }, - get _value() { - throw new ReanimatedError('Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?'); - }, - set _value(_newValue) { - throw new ReanimatedError('Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?'); - }, - modify: (modifier, forceUpdate = true) => { - runOnUI(() => { - mutable.modify(modifier, forceUpdate); - })(); - }, - addListener: () => { - throw new ReanimatedError('Adding listeners is only possible on the UI runtime.'); - }, - removeListener: () => { - throw new ReanimatedError('Removing listeners is only possible on the UI runtime.'); - }, - _isReanimatedSharedValue: true - }; - hideInternalValueProp(mutable); - addCompilerSafeGetAndSet(mutable); - serializableMappingCache.set(mutable, handle); - return mutable; -} -function makeMutableWeb(initial) { - let value = initial; - const listeners = new Map(); - const mutable = { - get value() { - checkInvalidReadDuringRender(); - return value; - }, - set value(newValue) { - checkInvalidWriteDuringRender(); - valueSetter(mutable, newValue); - }, - get _value() { - return value; - }, - set _value(newValue) { - value = newValue; - listeners.forEach(listener => { - listener(newValue); - }); - }, - modify: (modifier, forceUpdate = true) => { - valueSetter(mutable, modifier !== undefined ? modifier(mutable.value) : mutable.value, forceUpdate); - }, - addListener: (id, listener) => { - listeners.set(id, listener); - }, - removeListener: id => { - listeners.delete(id); - }, - _isReanimatedSharedValue: true - }; - hideInternalValueProp(mutable); - addCompilerSafeGetAndSet(mutable); - if (IS_JEST) { - mutable.toJSON = () => mutableToJSON(value); - } - return mutable; -} -export const makeMutable = SHOULD_BE_USE_WEB ? makeMutableWeb : USE_SYNCHRONIZABLE_FOR_MUTABLES ? -// eslint-disable-next-line camelcase -experimental_makeMutableNative : makeMutableNative; -function mutableToJSON(value) { - return JSON.stringify(value); -} -//# sourceMappingURL=mutables.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/mutables.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/mutables.js.map deleted file mode 100644 index c6f7a5ae..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/mutables.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createSerializable","createSynchronizable","executeOnUIRuntimeSync","runOnUI","serializableMappingCache","IS_JEST","logger","ReanimatedError","SHOULD_BE_USE_WEB","getStaticFeatureFlag","isFirstReactRender","isReactRendering","valueSetter","shouldWarnAboutAccessDuringRender","__DEV__","checkInvalidReadDuringRender","warn","strict","checkInvalidWriteDuringRender","addCompilerSafeGetAndSet","mutable","Object","defineProperties","get","value","configurable","enumerable","set","newValue","__isAnimationDefinition","hideInternalValueProp","defineProperty","experimental_makeMutableUI","initial","dirtyFlag","listeners","Map","isDirty","_value","setDirty","forEach","listener","modify","modifier","forceUpdate","undefined","addListener","id","removeListener","delete","dirty","setBlocking","_animation","_isReanimatedSharedValue","legacy_makeMutableUI","USE_SYNCHRONIZABLE_FOR_MUTABLES","experimental_makeMutableNative","latest","handle","__init","getBlocking","uiValueGetter","sv","_newValue","makeMutableNative","makeMutableWeb","toJSON","mutableToJSON","makeMutable","JSON","stringify"],"sourceRoot":"../../src","sources":["mutables.ts"],"mappings":"AAAA,YAAY;;AAEZ,SACEA,kBAAkB,EAClBC,oBAAoB,EACpBC,sBAAsB,EACtBC,OAAO,EACPC,wBAAwB,QACnB,uBAAuB;AAE9B,SAASC,OAAO,EAAEC,MAAM,EAAEC,eAAe,EAAEC,iBAAiB,QAAQ,UAAU;AAE9E,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SAASC,kBAAkB,EAAEC,gBAAgB,QAAQ,cAAc;AACnE,SAASC,WAAW,QAAQ,eAAe;AAE3C,SAASC,iCAAiCA,CAAA,EAAG;EAC3C,OAAOC,OAAO,IAAIH,gBAAgB,CAAC,CAAC,IAAI,CAACD,kBAAkB,CAAC,CAAC;AAC/D;AAEA,SAASK,4BAA4BA,CAAA,EAAG;EACtC,IAAIF,iCAAiC,CAAC,CAAC,EAAE;IACvCP,MAAM,CAACU,IAAI,CACT,qLAAqL,EACrL;MAAEC,MAAM,EAAE;IAAK,CACjB,CAAC;EACH;AACF;AAEA,SAASC,6BAA6BA,CAAA,EAAG;EACvC,IAAIL,iCAAiC,CAAC,CAAC,EAAE;IACvCP,MAAM,CAACU,IAAI,CACT,mLAAmL,EACnL;MAAEC,MAAM,EAAE;IAAK,CACjB,CAAC;EACH;AACF;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASE,wBAAwBA,CAAQC,OAA8B,EAAQ;EAC7E,SAAS;;EACTC,MAAM,CAACC,gBAAgB,CAACF,OAAO,EA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B,qBAAqB,CAACV,OAAO,CAAC;EAC9BD,wBAAwB,CAACC,OAAO,CAAC;EAEjC,IAAIf,OAAO,EAAE;IACVe,OAAO,CAAwB8C,MAAM,GAAG,MAAMC,aAAa,CAAC3C,KAAK,CAAC;EACrE;EAEA,OAAOJ,OAAO;AAChB;AAEA,OAAO,MAAMgD,WAAW,GAAG5D,iBAAiB,GACxCyD,cAAc,GACdV,+BAA+B;AAC7B;AACAC,8BAA8B,GAC9BQ,iBAAiB;AAMvB,SAASG,aAAaA,CAAS3C,KAAa,EAAU;EACpD,OAAO6C,IAAI,CAACC,SAAS,CAAC9C,KAAK,CAAC;AAC9B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/checkCppVersion.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/checkCppVersion.js deleted file mode 100644 index 5c929d41..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/checkCppVersion.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -import { logger, ReanimatedError } from '../common'; -import { jsVersion } from './jsVersion'; -export function checkCppVersion() { - const cppVersion = global._REANIMATED_VERSION_CPP; - if (cppVersion === undefined) { - logger.warn(`Couldn't determine the version of the native part of Reanimated. - See \`https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#couldnt-determine-the-version-of-the-native-part-of-reanimated\` for more details.`); - return; - } - const ok = matchVersion(jsVersion, cppVersion); - if (!ok) { - throw new ReanimatedError(`Mismatch between JavaScript part and native part of Reanimated (${jsVersion} vs ${cppVersion}). - See \`https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#mismatch-between-javascript-part-and-native-part-of-reanimated\` for more details.`); - } -} -export function matchVersion(version1, version2) { - if (version1.match(/^\d+\.\d+\.\d+$/) && version2.match(/^\d+\.\d+\.\d+$/)) { - // x.y.z, compare only major and minor, skip patch - const [major1, minor1] = version1.split('.'); - const [major2, minor2] = version2.split('.'); - return major1 === major2 && minor1 === minor2; - } else { - // alpha, beta or rc, compare everything - return version1 === version2; - } -} -//# sourceMappingURL=checkCppVersion.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/checkCppVersion.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/checkCppVersion.js.map deleted file mode 100644 index db08bc78..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/checkCppVersion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","ReanimatedError","jsVersion","checkCppVersion","cppVersion","global","_REANIMATED_VERSION_CPP","undefined","warn","ok","matchVersion","version1","version2","match","major1","minor1","split","major2","minor2"],"sourceRoot":"../../../src","sources":["platform-specific/checkCppVersion.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,EAAEC,eAAe,QAAQ,WAAW;AACnD,SAASC,SAAS,QAAQ,aAAa;AAEvC,OAAO,SAASC,eAAeA,CAAA,EAAG;EAChC,MAAMC,UAAU,GAAGC,MAAM,CAACC,uBAAuB;EACjD,IAAIF,UAAU,KAAKG,SAAS,EAAE;IAC5BP,MAAM,CAACQ,IAAI,CACT;AACN,4KACI,CAAC;IACD;EACF;EACA,MAAMC,EAAE,GAAGC,YAAY,CAACR,SAAS,EAAEE,UAAU,CAAC;EAC9C,IAAI,CAACK,EAAE,EAAE;IACP,MAAM,IAAIR,eAAe,CACvB,mEAAmEC,SAAS,OAAOE,UAAU;AACnG,4KACI,CAAC;EACH;AACF;AAEA,OAAO,SAASM,YAAYA,CAACC,QAAgB,EAAEC,QAAgB,EAAE;EAC/D,IAAID,QAAQ,CAACE,KAAK,CAAC,iBAAiB,CAAC,IAAID,QAAQ,CAACC,KAAK,CAAC,iBAAiB,CAAC,EAAE;IAC1E;IACA,MAAM,CAACC,MAAM,EAAEC,MAAM,CAAC,GAAGJ,QAAQ,CAACK,KAAK,CAAC,GAAG,CAAC;IAC5C,MAAM,CAACC,MAAM,EAAEC,MAAM,CAAC,GAAGN,QAAQ,CAACI,KAAK,CAAC,GAAG,CAAC;IAC5C,OAAOF,MAAM,KAAKG,MAAM,IAAIF,MAAM,KAAKG,MAAM;EAC/C,CAAC,MAAM;IACL;IACA,OAAOP,QAAQ,KAAKC,QAAQ;EAC9B;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.js deleted file mode 100644 index 21432c48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.js +++ /dev/null @@ -1,46 +0,0 @@ -/* eslint-disable camelcase */ -'use strict'; - -import { ReanimatedError } from '../common'; -function findHostInstanceFastPath(maybeNativeRef) { - if (!maybeNativeRef) { - return undefined; - } - if (maybeNativeRef.__internalInstanceHandle && maybeNativeRef.__nativeTag && maybeNativeRef._viewConfig) { - return maybeNativeRef; - } - // That means it’s a ref to a non-native component, and it’s necessary - // to call `findHostInstance_DEPRECATED` on them. - return undefined; -} -function resolveFindHostInstance_DEPRECATED() { - if (findHostInstance_DEPRECATED !== undefined) { - return; - } - try { - // eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires - const ReactFabric = require('react-native/Libraries/Renderer/shims/ReactFabric'); - // Since RN 0.77 ReactFabric exports findHostInstance_DEPRECATED in default object so we're trying to - // access it first, then fallback on named export - findHostInstance_DEPRECATED = ReactFabric?.default?.findHostInstance_DEPRECATED ?? ReactFabric?.findHostInstance_DEPRECATED; - } catch (_e) { - throw new ReanimatedError('Failed to resolve findHostInstance_DEPRECATED'); - } -} -let findHostInstance_DEPRECATED; -export function findHostInstance(ref) { - // Fast path for native refs - const hostInstance = findHostInstanceFastPath(ref._componentRef); - if (hostInstance !== undefined) { - return hostInstance; - } - resolveFindHostInstance_DEPRECATED(); - /* - The Fabric implementation of `findHostInstance_DEPRECATED` requires a React ref as an argument - rather than a native ref. If a component implements the `getAnimatableRef` method, it must use - the ref provided by this method. It is the component's responsibility to ensure that this is - a valid React ref. - */ - return findHostInstance_DEPRECATED(ref._hasAnimatedRef ? ref._componentRef : ref); -} -//# sourceMappingURL=findHostInstance.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.js.map deleted file mode 100644 index 90862ad8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedError","findHostInstanceFastPath","maybeNativeRef","undefined","__internalInstanceHandle","__nativeTag","_viewConfig","resolveFindHostInstance_DEPRECATED","findHostInstance_DEPRECATED","ReactFabric","require","default","_e","findHostInstance","ref","hostInstance","_componentRef","_hasAnimatedRef"],"sourceRoot":"../../../src","sources":["platform-specific/findHostInstance.ts"],"mappings":"AAAA;AACA,YAAY;;AAEZ,SAASA,eAAe,QAAQ,WAAW;AAU3C,SAASC,wBAAwBA,CAACC,cAAwC,EAAE;EAC1E,IAAI,CAACA,cAAc,EAAE;IACnB,OAAOC,SAAS;EAClB;EACA,IACED,cAAc,CAACE,wBAAwB,IACvCF,cAAc,CAACG,WAAW,IAC1BH,cAAc,CAACI,WAAW,EAC1B;IACA,OAAOJ,cAAc;EACvB;EACA;EACA;EACA,OAAOC,SAAS;AAClB;AAEA,SAASI,kCAAkCA,CAAA,EAAG;EAC5C,IAAIC,2BAA2B,KAAKL,SAAS,EAAE;IAC7C;EACF;EACA,IAAI;IACF;IACA,MAAMM,WAAW,GAAGC,OAAO,CAAC,mDAAmD,CAAC;IAChF;IACA;IACAF,2BAA2B,GACzBC,WAAW,EAAEE,OAAO,EAAEH,2BAA2B,IACjDC,WAAW,EAAED,2BAA2B;EAC5C,CAAC,CAAC,OAAOI,EAAE,EAAE;IACX,MAAM,IAAIZ,eAAe,CAAC,+CAA+C,CAAC;EAC5E;AACF;AAEA,IAAIQ,2BAA2D;AAC/D,OAAO,SAASK,gBAAgBA,CAC9BC,GAAgD,EAClC;EACd;EACA,MAAMC,YAAY,GAAGd,wBAAwB,CAC1Ca,GAAG,CAAoCE,aAC1C,CAAC;EACD,IAAID,YAAY,KAAKZ,SAAS,EAAE;IAC9B,OAAOY,YAAY;EACrB;EAEAR,kCAAkC,CAAC,CAAC;EACpC;AACF;AACA;AACA;AACA;AACA;EACE,OAAOC,2BAA2B,CAC/BM,GAAG,CAAoCG,eAAe,GAClDH,GAAG,CAAoCE,aAAa,GACrDF,GACN,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.web.js deleted file mode 100644 index 277e6cfd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.web.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -// eslint-disable-next-line @typescript-eslint/no-empty-function -export function findHostInstance(_component) {} -//# sourceMappingURL=findHostInstance.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.web.js.map deleted file mode 100644 index ead357ca..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/findHostInstance.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["findHostInstance","_component"],"sourceRoot":"../../../src","sources":["platform-specific/findHostInstance.web.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA,OAAO,SAASA,gBAAgBA,CAACC,UAAe,EAAQ,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/jsVersion.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/jsVersion.js deleted file mode 100644 index d75d62a1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/jsVersion.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -/** - * We hardcode the version of Reanimated here in order to compare it with the - * version used to build the native part of the library in runtime. Remember to - * keep this in sync with the version declared in `package.json` - */ -export const jsVersion = '4.1.6'; -//# sourceMappingURL=jsVersion.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/jsVersion.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/jsVersion.js.map deleted file mode 100644 index ca3f3215..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/jsVersion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["jsVersion"],"sourceRoot":"../../../src","sources":["platform-specific/jsVersion.ts"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,SAAS,GAAG,OAAO","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/workletsVersion.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/workletsVersion.js deleted file mode 100644 index 28953425..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/workletsVersion.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -// @ts-expect-error There's no types for this script. -import validateWorkletsVersion from 'react-native-reanimated/scripts/validate-worklets-version'; -import { ReanimatedError } from '../common/errors'; -import { jsVersion as reanimatedVersion } from './jsVersion'; -export function assertWorkletsVersion() { - const result = validateWorkletsVersion(reanimatedVersion); - if (!result.ok) { - throw new ReanimatedError(result.message); - } -} -//# sourceMappingURL=workletsVersion.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/workletsVersion.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/workletsVersion.js.map deleted file mode 100644 index 7af9e1ee..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platform-specific/workletsVersion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["validateWorkletsVersion","ReanimatedError","jsVersion","reanimatedVersion","assertWorkletsVersion","result","ok","message"],"sourceRoot":"../../../src","sources":["platform-specific/workletsVersion.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA,OAAOA,uBAAuB,MAAM,2DAA2D;AAE/F,SAASC,eAAe,QAAQ,kBAAkB;AAClD,SAASC,SAAS,IAAIC,iBAAiB,QAAQ,aAAa;AAE5D,OAAO,SAASC,qBAAqBA,CAAA,EAAG;EACtC,MAAMC,MAAM,GAAGL,uBAAuB,CAACG,iBAAiB,CAAC;EAEzD,IAAI,CAACE,MAAM,CAACC,EAAE,EAAE;IACd,MAAM,IAAIL,eAAe,CAACI,MAAM,CAACE,OAAO,CAAC;EAC3C;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.js deleted file mode 100644 index 0910a0c6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict'; - -import { RuntimeKind } from 'react-native-worklets'; -import { IS_JEST, logger, SHOULD_BE_USE_WEB } from '../common'; -/** - * Lets you synchronously call a command of a native component. - * - * @param animatedRef - An [animated - * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef#returns) - * connected to the component you'd want to call the command on. - * @param commandName - The name of the command to dispatch (e.g. `"focus"` or - * `"scrollToEnd"`). - * @param args - An optional array of arguments for the command. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/dispatchCommand - */ -export let dispatchCommand; -function dispatchCommandNative(animatedRef, commandName, args = []) { - 'worklet'; - - if (globalThis.__RUNTIME_KIND === RuntimeKind.ReactNative) { - return; - } - const shadowNodeWrapper = animatedRef(); - - // This prevents crashes if ref has not been set yet - if (!shadowNodeWrapper) { - logger.warn(`Tried to dispatch command "${commandName}" with an uninitialized ref. Make sure to pass the animated ref to the component before using it.`); - return; - } - global._dispatchCommand(shadowNodeWrapper, commandName, args); -} -function dispatchCommandJest() { - logger.warn('dispatchCommand() is not supported with Jest.'); -} -function dispatchCommandDefault() { - logger.warn('dispatchCommand() is not supported on this configuration.'); -} -if (!SHOULD_BE_USE_WEB) { - // Those assertions are actually correct since on Native platforms `AnimatedRef` is - // mapped as a different function in `serializableMappingCache` and - // TypeScript is not able to infer that. - dispatchCommand = dispatchCommandNative; -} else if (IS_JEST) { - dispatchCommand = dispatchCommandJest; -} else { - dispatchCommand = dispatchCommandDefault; -} -//# sourceMappingURL=dispatchCommand.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.js.map deleted file mode 100644 index 9d802cce..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["RuntimeKind","IS_JEST","logger","SHOULD_BE_USE_WEB","dispatchCommand","dispatchCommandNative","animatedRef","commandName","args","globalThis","__RUNTIME_KIND","ReactNative","shadowNodeWrapper","warn","global","_dispatchCommand","dispatchCommandJest","dispatchCommandDefault"],"sourceRoot":"../../../src","sources":["platformFunctions/dispatchCommand.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,WAAW,QAAQ,uBAAuB;AAEnD,SAASC,OAAO,EAAEC,MAAM,EAAEC,iBAAiB,QAAQ,WAAW;AAc9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAIC,eAAgC;AAE3C,SAASC,qBAAqBA,CAC5BC,WAA8C,EAC9CC,WAAmB,EACnBC,IAAoB,GAAG,EAAE,EACzB;EACA,SAAS;;EACT,IAAIC,UAAU,CAACC,cAAc,KAAKV,WAAW,CAACW,WAAW,EAAE;IACzD;EACF;EAEA,MAAMC,iBAAiB,GAAGN,WAAW,CAAC,CAAC;;EAEvC;EACA,IAAI,CAACM,iBAAiB,EAAE;IACtBV,MAAM,CAACW,IAAI,CACT,8BAA8BN,WAAW,mGAC3C,CAAC;IACD;EACF;EAEAO,MAAM,CAACC,gBAAgB,CACrBH,iBAAiB,EACjBL,WAAW,EACXC,IACF,CAAC;AACH;AAEA,SAASQ,mBAAmBA,CAAA,EAAG;EAC7Bd,MAAM,CAACW,IAAI,CAAC,+CAA+C,CAAC;AAC9D;AAEA,SAASI,sBAAsBA,CAAA,EAAG;EAChCf,MAAM,CAACW,IAAI,CAAC,2DAA2D,CAAC;AAC1E;AAEA,IAAI,CAACV,iBAAiB,EAAE;EACtB;EACA;EACA;EACAC,eAAe,GAAGC,qBAAmD;AACvE,CAAC,MAAM,IAAIJ,OAAO,EAAE;EAClBG,eAAe,GAAGY,mBAAmB;AACvC,CAAC,MAAM;EACLZ,eAAe,GAAGa,sBAAsB;AAC1C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.web.js deleted file mode 100644 index 11cfc32c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.web.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -export function dispatchCommand() { - logger.warn('dispatchCommand() is not supported on web.'); -} -//# sourceMappingURL=dispatchCommand.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.web.js.map deleted file mode 100644 index 79c5dfbc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/dispatchCommand.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","dispatchCommand","warn"],"sourceRoot":"../../../src","sources":["platformFunctions/dispatchCommand.web.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,MAAM,QAAQ,WAAW;AAElC,OAAO,SAASC,eAAeA,CAAA,EAAG;EAChCD,MAAM,CAACE,IAAI,CAAC,4CAA4C,CAAC;AAC3D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.js deleted file mode 100644 index 96509ad5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -import { findNodeHandle } from 'react-native'; -export { findNodeHandle }; -//# sourceMappingURL=findNodeHandle.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.js.map deleted file mode 100644 index 4ebe1b5a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["findNodeHandle"],"sourceRoot":"../../../src","sources":["platformFunctions/findNodeHandle.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,cAAc,QAAQ,cAAc;AAE7C,SAASA,cAAc","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.web.js deleted file mode 100644 index f6033014..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.web.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export function findNodeHandle(componentOrHandle) { - return componentOrHandle; -} -//# sourceMappingURL=findNodeHandle.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.web.js.map deleted file mode 100644 index af80b6c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/findNodeHandle.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["findNodeHandle","componentOrHandle"],"sourceRoot":"../../../src","sources":["platformFunctions/findNodeHandle.web.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,cAAcA,CAC5BC,iBAA4E,EAC5E;EACA,OAAOA,iBAAiB;AAC1B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/getRelativeCoords.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/getRelativeCoords.js deleted file mode 100644 index 9dbde849..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/getRelativeCoords.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; - -import { measure } from './measure'; - -/** An object which contains relative coordinates. */ - -/** - * Lets you determines the location on the screen, relative to the given view. - * - * @param animatedRef - An [animated - * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef#returns) - * connected to the component you'd want to get the coordinates from. - * @param absoluteX - A number which is an absolute x coordinate. - * @param absoluteY - A number which is an absolute y coordinate. - * @returns An object which contains relative coordinates - - * {@link ComponentCoords}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/utilities/getRelativeCoords - */ -export function getRelativeCoords(animatedRef, absoluteX, absoluteY) { - 'worklet'; - - const parentCoords = measure(animatedRef); - if (parentCoords === null) { - return null; - } - return { - x: absoluteX - parentCoords.pageX, - y: absoluteY - parentCoords.pageY - }; -} -//# sourceMappingURL=getRelativeCoords.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/getRelativeCoords.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/getRelativeCoords.js.map deleted file mode 100644 index acf80604..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/getRelativeCoords.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["measure","getRelativeCoords","animatedRef","absoluteX","absoluteY","parentCoords","x","pageX","y","pageY"],"sourceRoot":"../../../src","sources":["platformFunctions/getRelativeCoords.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,OAAO,QAAQ,WAAW;;AAEnC;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAC/BC,WAA8B,EAC9BC,SAAiB,EACjBC,SAAiB,EACO;EACxB,SAAS;;EACT,MAAMC,YAAY,GAAGL,OAAO,CAACE,WAAW,CAAC;EACzC,IAAIG,YAAY,KAAK,IAAI,EAAE;IACzB,OAAO,IAAI;EACb;EACA,OAAO;IACLC,CAAC,EAAEH,SAAS,GAAGE,YAAY,CAACE,KAAK;IACjCC,CAAC,EAAEJ,SAAS,GAAGC,YAAY,CAACI;EAC9B,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/index.js deleted file mode 100644 index 3fa5f13e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -export { dispatchCommand } from './dispatchCommand'; -export { getRelativeCoords } from './getRelativeCoords'; -export { measure } from './measure'; -export { scrollTo } from './scrollTo'; -export { setGestureState } from './setGestureState'; -export { setNativeProps } from './setNativeProps'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/index.js.map deleted file mode 100644 index 54f4ab19..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["dispatchCommand","getRelativeCoords","measure","scrollTo","setGestureState","setNativeProps"],"sourceRoot":"../../../src","sources":["platformFunctions/index.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,cAAc,QAAQ,kBAAkB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.js deleted file mode 100644 index 5171262b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict'; - -import { RuntimeKind } from 'react-native-worklets'; -import { IS_JEST, logger, SHOULD_BE_USE_WEB } from '../common'; -/** - * Lets you synchronously get the dimensions and position of a view on the - * screen. - * - * @param animatedRef - An [animated - * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef#returns) - * connected to the component you'd want to get the measurements from. - * @returns An object containing component measurements or null when the - * measurement couldn't be performed- {@link MeasuredDimensions}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/measure/ - */ -export let measure; -function measureNative(animatedRef) { - 'worklet'; - - if (globalThis.__RUNTIME_KIND === RuntimeKind.ReactNative) { - return null; - } - const viewTag = animatedRef(); - if (viewTag === -1) { - logger.warn(`The view with tag ${viewTag} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`); - return null; - } - const measured = global._measure(viewTag); - if (measured === null) { - logger.warn(`The view has some undefined, not-yet-computed or meaningless value of \`LayoutMetrics\` type. This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`); - return null; - } else if (measured.x === -1234567) { - logger.warn(`The view returned an invalid measurement response. Please make sure the view is currently rendered.`); - return null; - } else if (isNaN(measured.x)) { - logger.warn(`The view gets view-flattened on Android. To disable view-flattening, set \`collapsable={false}\` on this component.`); - return null; - } else { - return measured; - } -} -function measureJest() { - logger.warn('measure() cannot be used with Jest.'); - return null; -} -function measureDefault() { - logger.warn('measure() is not supported on this configuration.'); - return null; -} -if (!SHOULD_BE_USE_WEB) { - // Those assertions are actually correct since on Native platforms `AnimatedRef` is - // mapped as a different function in `serializableMappingCache` and - // TypeScript is not able to infer that. - measure = measureNative; -} else if (IS_JEST) { - measure = measureJest; -} else { - measure = measureDefault; -} -//# sourceMappingURL=measure.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.js.map deleted file mode 100644 index c3244620..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["RuntimeKind","IS_JEST","logger","SHOULD_BE_USE_WEB","measure","measureNative","animatedRef","globalThis","__RUNTIME_KIND","ReactNative","viewTag","warn","measured","global","_measure","x","isNaN","measureJest","measureDefault"],"sourceRoot":"../../../src","sources":["platformFunctions/measure.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,WAAW,QAAQ,uBAAuB;AAEnD,SAASC,OAAO,EAAEC,MAAM,EAAEC,iBAAiB,QAAQ,WAAW;AAgB9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAIC,OAAgB;AAE3B,SAASC,aAAaA,CAACC,WAA8C,EAAE;EACrE,SAAS;;EACT,IAAIC,UAAU,CAACC,cAAc,KAAKR,WAAW,CAACS,WAAW,EAAE;IACzD,OAAO,IAAI;EACb;EAEA,MAAMC,OAAO,GAAGJ,WAAW,CAAC,CAAC;EAC7B,IAAII,OAAO,KAAK,CAAC,CAAC,EAAE;IAClBR,MAAM,CAACS,IAAI,CACT,qBAAqBD,OAAO,4JAC9B,CAAC;IACD,OAAO,IAAI;EACb;EAEA,MAAME,QAAQ,GAAGC,MAAM,CAACC,QAAQ,CAAEJ,OAA4B,CAAC;EAC/D,IAAIE,QAAQ,KAAK,IAAI,EAAE;IACrBV,MAAM,CAACS,IAAI,CACT,kNACF,CAAC;IACD,OAAO,IAAI;EACb,CAAC,MAAM,IAAIC,QAAQ,CAACG,CAAC,KAAK,CAAC,OAAO,EAAE;IAClCb,MAAM,CAACS,IAAI,CACT,qGACF,CAAC;IACD,OAAO,IAAI;EACb,CAAC,MAAM,IAAIK,KAAK,CAACJ,QAAQ,CAACG,CAAC,CAAC,EAAE;IAC5Bb,MAAM,CAACS,IAAI,CACT,qHACF,CAAC;IACD,OAAO,IAAI;EACb,CAAC,MAAM;IACL,OAAOC,QAAQ;EACjB;AACF;AAEA,SAASK,WAAWA,CAAA,EAAG;EACrBf,MAAM,CAACS,IAAI,CAAC,qCAAqC,CAAC;EAClD,OAAO,IAAI;AACb;AAEA,SAASO,cAAcA,CAAA,EAAG;EACxBhB,MAAM,CAACS,IAAI,CAAC,mDAAmD,CAAC;EAChE,OAAO,IAAI;AACb;AAEA,IAAI,CAACR,iBAAiB,EAAE;EACtB;EACA;EACA;EACAC,OAAO,GAAGC,aAAmC;AAC/C,CAAC,MAAM,IAAIJ,OAAO,EAAE;EAClBG,OAAO,GAAGa,WAAW;AACvB,CAAC,MAAM;EACLb,OAAO,GAAGc,cAAc;AAC1B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.web.js deleted file mode 100644 index 3175e09c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.web.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -export function measure(animatedRef) { - const element = animatedRef(); - if (!element) { - logger.warn(`The view with tag ${element} is not a valid argument for measure(). This may be because the view is not currently rendered, which may not be a bug (e.g. an off-screen FlatList item).`); - return null; - } - const viewportOffset = element.getBoundingClientRect(); - return { - width: element.offsetWidth, - height: element.offsetHeight, - x: element.offsetLeft, - y: element.offsetTop, - pageX: viewportOffset.left, - pageY: viewportOffset.top - }; -} -//# sourceMappingURL=measure.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.web.js.map deleted file mode 100644 index 66526329..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/measure.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","measure","animatedRef","element","warn","viewportOffset","getBoundingClientRect","width","offsetWidth","height","offsetHeight","x","offsetLeft","y","offsetTop","pageX","left","pageY","top"],"sourceRoot":"../../../src","sources":["platformFunctions/measure.web.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,MAAM,QAAQ,WAAW;AAIlC,OAAO,SAASC,OAAOA,CACrBC,WAA8B,EACH;EAC3B,MAAMC,OAAO,GAAGD,WAAW,CAAC,CAAuB;EAEnD,IAAI,CAACC,OAAO,EAAE;IACZH,MAAM,CAACI,IAAI,CACT,qBAAqBD,OAAO,4JAC9B,CAAC;IACD,OAAO,IAAI;EACb;EAEA,MAAME,cAAc,GAAGF,OAAO,CAACG,qBAAqB,CAAC,CAAC;EACtD,OAAO;IACLC,KAAK,EAAEJ,OAAO,CAACK,WAAW;IAC1BC,MAAM,EAAEN,OAAO,CAACO,YAAY;IAC5BC,CAAC,EAAER,OAAO,CAACS,UAAU;IACrBC,CAAC,EAAEV,OAAO,CAACW,SAAS;IACpBC,KAAK,EAAEV,cAAc,CAACW,IAAI;IAC1BC,KAAK,EAAEZ,cAAc,CAACa;EACxB,CAAC;AACH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.js deleted file mode 100644 index 0f1d7a9e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict'; - -import { IS_JEST, logger, SHOULD_BE_USE_WEB } from '../common'; -import { dispatchCommand } from './dispatchCommand'; -/** - * Lets you synchronously scroll to a given position of a `ScrollView`. - * - * @param animatedRef - An [animated - * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef) - * attached to an `Animated.ScrollView` component. - * @param x - The x position you want to scroll to. - * @param y - The y position you want to scroll to. - * @param animated - Whether the scrolling should be smooth or instant. - * @see https://docs.swmansion.com/react-native-reanimated/docs/scroll/scrollTo - */ -export let scrollTo; -function scrollToNative(animatedRef, x, y, animated) { - 'worklet'; - - dispatchCommand(animatedRef, 'scrollTo', [x, y, animated]); -} -function scrollToJest() { - logger.warn('scrollTo() is not supported with Jest.'); -} -function scrollToDefault() { - logger.warn('scrollTo() is not supported on this configuration.'); -} -if (!SHOULD_BE_USE_WEB) { - // Those assertions are actually correct since on Native platforms `AnimatedRef` is - // mapped as a different function in `serializableMappingCache` and - // TypeScript is not able to infer that. - scrollTo = scrollToNative; -} else if (IS_JEST) { - scrollTo = scrollToJest; -} else { - scrollTo = scrollToDefault; -} -//# sourceMappingURL=scrollTo.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.js.map deleted file mode 100644 index cad18bd7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["IS_JEST","logger","SHOULD_BE_USE_WEB","dispatchCommand","scrollTo","scrollToNative","animatedRef","x","y","animated","scrollToJest","warn","scrollToDefault"],"sourceRoot":"../../../src","sources":["platformFunctions/scrollTo.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,OAAO,EAAEC,MAAM,EAAEC,iBAAiB,QAAQ,WAAW;AAG9D,SAASC,eAAe,QAAQ,mBAAmB;AASnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAIC,QAAkB;AAE7B,SAASC,cAAcA,CACrBC,WAA8B,EAC9BC,CAAS,EACTC,CAAS,EACTC,QAAiB,EACjB;EACA,SAAS;;EACTN,eAAe,CAACG,WAAW,EAAE,UAAU,EAAE,CAACC,CAAC,EAAEC,CAAC,EAAEC,QAAQ,CAAC,CAAC;AAC5D;AAEA,SAASC,YAAYA,CAAA,EAAG;EACtBT,MAAM,CAACU,IAAI,CAAC,wCAAwC,CAAC;AACvD;AAEA,SAASC,eAAeA,CAAA,EAAG;EACzBX,MAAM,CAACU,IAAI,CAAC,oDAAoD,CAAC;AACnE;AAEA,IAAI,CAACT,iBAAiB,EAAE;EACtB;EACA;EACA;EACAE,QAAQ,GAAGC,cAAqC;AAClD,CAAC,MAAM,IAAIL,OAAO,EAAE;EAClBI,QAAQ,GAAGM,YAAY;AACzB,CAAC,MAAM;EACLN,QAAQ,GAAGQ,eAAe;AAC5B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.web.js deleted file mode 100644 index 41831ddd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.web.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -export function scrollTo(animatedRef, x, y, animated) { - const element = animatedRef(); - - // This prevents crashes if ref has not been set yet - if (!element) { - logger.warn('Called scrollTo() with an uninitialized ref. Make sure to pass the animated ref to the scrollable component before calling scrollTo().'); - return; - } - - // By ScrollView we mean any scrollable component - const scrollView = element; - scrollView?.scrollTo({ - x, - y, - animated - }); -} -//# sourceMappingURL=scrollTo.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.web.js.map deleted file mode 100644 index 3c60df57..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/scrollTo.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","scrollTo","animatedRef","x","y","animated","element","warn","scrollView"],"sourceRoot":"../../../src","sources":["platformFunctions/scrollTo.web.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,MAAM,QAAQ,WAAW;AAIlC,OAAO,SAASC,QAAQA,CACtBC,WAA8B,EAC9BC,CAAS,EACTC,CAAS,EACTC,QAAiB,EACjB;EACA,MAAMC,OAAO,GAAGJ,WAAW,CAAC,CAAC;;EAE7B;EACA,IAAI,CAACI,OAAO,EAAE;IACZN,MAAM,CAACO,IAAI,CACT,wIACF,CAAC;IACD;EACF;;EAEA;EACA,MAAMC,UAAU,GAAGF,OAAgC;EACnDE,UAAU,EAAEP,QAAQ,CAAC;IAAEE,CAAC;IAAEC,CAAC;IAAEC;EAAS,CAAC,CAAC;AAC1C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.js deleted file mode 100644 index e6f74712..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -import { RuntimeKind } from 'react-native-worklets'; -import { IS_JEST, logger, SHOULD_BE_USE_WEB } from '../common'; -export let setGestureState; -function setGestureStateNative(handlerTag, newState) { - 'worklet'; - - if (globalThis.__RUNTIME_KIND === RuntimeKind.ReactNative) { - logger.warn('You can not use setGestureState in non-worklet function.'); - return; - } - global._setGestureState(handlerTag, newState); -} -function setGestureStateJest() { - logger.warn('setGestureState() cannot be used with Jest.'); -} -function setGestureStateDefault() { - logger.warn('setGestureState() is not supported on this configuration.'); -} -if (!SHOULD_BE_USE_WEB) { - setGestureState = setGestureStateNative; -} else if (IS_JEST) { - setGestureState = setGestureStateJest; -} else { - setGestureState = setGestureStateDefault; -} -//# sourceMappingURL=setGestureState.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.js.map deleted file mode 100644 index 9e641a37..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["RuntimeKind","IS_JEST","logger","SHOULD_BE_USE_WEB","setGestureState","setGestureStateNative","handlerTag","newState","globalThis","__RUNTIME_KIND","ReactNative","warn","global","_setGestureState","setGestureStateJest","setGestureStateDefault"],"sourceRoot":"../../../src","sources":["platformFunctions/setGestureState.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,WAAW,QAAQ,uBAAuB;AAEnD,SAASC,OAAO,EAAEC,MAAM,EAAEC,iBAAiB,QAAQ,WAAW;AAI9D,OAAO,IAAIC,eAAgC;AAE3C,SAASC,qBAAqBA,CAACC,UAAkB,EAAEC,QAAgB,EAAE;EACnE,SAAS;;EACT,IAAIC,UAAU,CAACC,cAAc,KAAKT,WAAW,CAACU,WAAW,EAAE;IACzDR,MAAM,CAACS,IAAI,CAAC,0DAA0D,CAAC;IACvE;EACF;EACAC,MAAM,CAACC,gBAAgB,CAACP,UAAU,EAAEC,QAAQ,CAAC;AAC/C;AAEA,SAASO,mBAAmBA,CAAA,EAAG;EAC7BZ,MAAM,CAACS,IAAI,CAAC,6CAA6C,CAAC;AAC5D;AAEA,SAASI,sBAAsBA,CAAA,EAAG;EAChCb,MAAM,CAACS,IAAI,CAAC,2DAA2D,CAAC;AAC1E;AAEA,IAAI,CAACR,iBAAiB,EAAE;EACtBC,eAAe,GAAGC,qBAAqB;AACzC,CAAC,MAAM,IAAIJ,OAAO,EAAE;EAClBG,eAAe,GAAGU,mBAAmB;AACvC,CAAC,MAAM;EACLV,eAAe,GAAGW,sBAAsB;AAC1C","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.web.js deleted file mode 100644 index 53993476..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.web.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -export function setGestureState() { - logger.warn('setGestureState() is not available on web.'); -} -//# sourceMappingURL=setGestureState.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.web.js.map deleted file mode 100644 index 38abb039..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setGestureState.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","setGestureState","warn"],"sourceRoot":"../../../src","sources":["platformFunctions/setGestureState.web.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,MAAM,QAAQ,WAAW;AAElC,OAAO,SAASC,eAAeA,CAAA,EAAG;EAChCD,MAAM,CAACE,IAAI,CAAC,4CAA4C,CAAC;AAC3D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.js deleted file mode 100644 index 31e4ec3f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.js +++ /dev/null @@ -1,50 +0,0 @@ -'use strict'; - -import { RuntimeKind } from 'react-native-worklets'; -import { IS_JEST, logger, processColorsInProps, SHOULD_BE_USE_WEB } from '../common'; -/** - * Lets you imperatively update component properties. You should always reach - * for - * [useAnimatedStyle](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedStyle) - * and - * [useAnimatedProps](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedProps) - * first when animating styles or properties. - * - * @param animatedRef - An [animated - * ref](https://docs.swmansion.com/react-native-reanimated/docs/core/useAnimatedRef#returns) - * connected to the component you'd want to update. - * @param updates - An object with properties you want to update. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/setNativeProps - */ -export let setNativeProps; -function setNativePropsNative(animatedRef, updates) { - 'worklet'; - - if (globalThis.__RUNTIME_KIND === RuntimeKind.ReactNative) { - logger.warn('setNativeProps() can only be used on the UI runtime.'); - return; - } - const shadowNodeWrapper = animatedRef(); - processColorsInProps(updates); - global._updateProps([{ - shadowNodeWrapper, - updates - }]); -} -function setNativePropsJest() { - logger.warn('setNativeProps() is not supported with Jest.'); -} -function setNativePropsDefault() { - logger.warn('setNativeProps() is not supported on this configuration.'); -} -if (!SHOULD_BE_USE_WEB) { - // Those assertions are actually correct since on Native platforms `AnimatedRef` is - // mapped as a different function in `serializableMappingCache` and - // TypeScript is not able to infer that. - setNativeProps = setNativePropsNative; -} else if (IS_JEST) { - setNativeProps = setNativePropsJest; -} else { - setNativeProps = setNativePropsDefault; -} -//# sourceMappingURL=setNativeProps.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.js.map deleted file mode 100644 index 892d4c65..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["RuntimeKind","IS_JEST","logger","processColorsInProps","SHOULD_BE_USE_WEB","setNativeProps","setNativePropsNative","animatedRef","updates","globalThis","__RUNTIME_KIND","ReactNative","warn","shadowNodeWrapper","global","_updateProps","setNativePropsJest","setNativePropsDefault"],"sourceRoot":"../../../src","sources":["platformFunctions/setNativeProps.ts"],"mappings":"AAAA,YAAY;;AACZ,SAASA,WAAW,QAAQ,uBAAuB;AAEnD,SACEC,OAAO,EACPC,MAAM,EACNC,oBAAoB,EACpBC,iBAAiB,QACZ,WAAW;AAYlB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAIC,cAA8B;AAEzC,SAASC,oBAAoBA,CAC3BC,WAA8C,EAC9CC,OAAmB,EACnB;EACA,SAAS;;EACT,IAAIC,UAAU,CAACC,cAAc,KAAKV,WAAW,CAACW,WAAW,EAAE;IACzDT,MAAM,CAACU,IAAI,CAAC,sDAAsD,CAAC;IACnE;EACF;EACA,MAAMC,iBAAiB,GAAGN,WAAW,CAAC,CAAsB;EAC5DJ,oBAAoB,CAACK,OAAO,CAAC;EAC7BM,MAAM,CAACC,YAAY,CAAE,CAAC;IAAEF,iBAAiB;IAAEL;EAAQ,CAAC,CAAC,CAAC;AACxD;AAEA,SAASQ,kBAAkBA,CAAA,EAAG;EAC5Bd,MAAM,CAACU,IAAI,CAAC,8CAA8C,CAAC;AAC7D;AAEA,SAASK,qBAAqBA,CAAA,EAAG;EAC/Bf,MAAM,CAACU,IAAI,CAAC,0DAA0D,CAAC;AACzE;AAEA,IAAI,CAACR,iBAAiB,EAAE;EACtB;EACA;EACA;EACAC,cAAc,GAAGC,oBAAiD;AACpE,CAAC,MAAM,IAAIL,OAAO,EAAE;EAClBI,cAAc,GAAGW,kBAAkB;AACrC,CAAC,MAAM;EACLX,cAAc,GAAGY,qBAAqB;AACxC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.web.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.web.js deleted file mode 100644 index 7f38e8d2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.web.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -import { _updatePropsJS } from '../ReanimatedModule/js-reanimated'; -export function setNativeProps(animatedRef, updates) { - const component = animatedRef(); - _updatePropsJS(updates, component); -} -//# sourceMappingURL=setNativeProps.web.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.web.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.web.js.map deleted file mode 100644 index 2aec595a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/platformFunctions/setNativeProps.web.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["_updatePropsJS","setNativeProps","animatedRef","updates","component"],"sourceRoot":"../../../src","sources":["platformFunctions/setNativeProps.web.ts"],"mappings":"AAAA,YAAY;;AAIZ,SAASA,cAAc,QAAQ,mCAAmC;AAElE,OAAO,SAASC,cAAcA,CAC5BC,WAA8B,EAC9BC,OAAmB,EACnB;EACA,MAAMC,SAAS,GAAGF,WAAW,CAAC,CAA0B;EACxDF,cAAc,CAACG,OAAO,EAAEC,SAAS,CAAC;AACpC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/pluginUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/pluginUtils.js deleted file mode 100644 index 1cc905fc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/pluginUtils.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -export function getUseOfValueInStyleWarning() { - return "It looks like you might be using shared value's .value inside reanimated inline style. " + 'If you want a component to update when shared value changes you should use the shared value' + ' directly instead of its current state represented by `.value`. See documentation here: ' + 'https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary/#animations-in-inline-styling'; -} -//# sourceMappingURL=pluginUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/pluginUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/pluginUtils.js.map deleted file mode 100644 index 3c2ad190..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/pluginUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["getUseOfValueInStyleWarning"],"sourceRoot":"../../src","sources":["pluginUtils.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAO,SAASA,2BAA2BA,CAAA,EAAG;EAC5C,OACE,yFAAyF,GACzF,6FAA6F,GAC7F,0FAA0F,GAC1F,6GAA6G;AAEjH","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/privateGlobals.d.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/privateGlobals.d.js deleted file mode 100644 index 8f6b36b2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/privateGlobals.d.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -// This file works by accident - currently Builder Bob doesn't move `.d.ts` files to output types. -// If it ever breaks, we should address it so we'd not pollute the user's global namespace. -export {}; -//# sourceMappingURL=privateGlobals.d.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/privateGlobals.d.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/privateGlobals.d.js.map deleted file mode 100644 index 4c5f1022..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/privateGlobals.d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../src","sources":["privateGlobals.d.ts"],"mappings":"AAAA,YAAY;;AAEZ;AACA;AAAA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/publicGlobals.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/publicGlobals.js deleted file mode 100644 index 49d5282b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/publicGlobals.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=publicGlobals.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/publicGlobals.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/publicGlobals.js.map deleted file mode 100644 index 3e1480a4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/publicGlobals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../src","sources":["publicGlobals.ts"],"mappings":"AAAA,YAAY;;AAEZ","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/reactUtils.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/reactUtils.js deleted file mode 100644 index afdc7683..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/reactUtils.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -import React from 'react'; -function getCurrentReactOwner() { - return ( - // @ts-expect-error React secret internals aren't typed - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE?.A?.getOwner?.() || - // @ts-expect-error React secret internals aren't typed - React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current || - // @ts-expect-error React secret internals aren't typed - React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE?.ReactCurrentOwner?.current - ); -} -export function isReactRendering() { - return !!getCurrentReactOwner(); -} -export function isFirstReactRender() { - const currentOwner = getCurrentReactOwner(); - // alternate is not null only after the first render and stores all the - // data from the previous component render - return currentOwner && !currentOwner?.alternate; -} -//# sourceMappingURL=reactUtils.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/reactUtils.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/reactUtils.js.map deleted file mode 100644 index 3ac90f63..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/reactUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["React","getCurrentReactOwner","__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","A","getOwner","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","current","__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","isReactRendering","isFirstReactRender","currentOwner","alternate"],"sourceRoot":"../../src","sources":["reactUtils.ts"],"mappings":"AAAA,YAAY;;AACZ,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,oBAAoBA,CAAA,EAAG;EAC9B;IACE;IACAD,KAAK,CAACE,+DAA+D,EAAEC,CAAC,EAAEC,QAAQ,GAAG,CAAC;IACtF;IACAJ,KAAK,CAACK,kDAAkD,EAAEC,iBAAiB,EACvEC,OAAO;IACX;IACAP,KAAK,CAACQ,+DAA+D,EACjEF,iBAAiB,EAAEC;EAAO;AAElC;AAEA,OAAO,SAASE,gBAAgBA,CAAA,EAAG;EACjC,OAAO,CAAC,CAACR,oBAAoB,CAAC,CAAC;AACjC;AAEA,OAAO,SAASS,kBAAkBA,CAAA,EAAG;EACnC,MAAMC,YAAY,GAAGV,oBAAoB,CAAC,CAAC;EAC3C;EACA;EACA,OAAOU,YAAY,IAAI,CAACA,YAAY,EAAEC,SAAS;AACjD","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/RNScreensTurboModule.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/RNScreensTurboModule.js deleted file mode 100644 index 22522b87..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/RNScreensTurboModule.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -import { logger } from '../common'; -function noopFactory(defaultReturnValue) { - return () => { - 'worklet'; - - logger.warn('RNScreensTurboModule has not been found. Check that you have installed `react-native-screens@3.30.0` or newer in your project and rebuilt your app.'); - return defaultReturnValue; - }; -} -export const RNScreensTurboModule = global.RNScreensTurboModule || { - startTransition: noopFactory({ - topScreenId: -1, - belowTopScreenId: -1, - canStartTransition: false - }), - updateTransition: noopFactory(), - finishTransition: noopFactory() -}; -//# sourceMappingURL=RNScreensTurboModule.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/RNScreensTurboModule.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/RNScreensTurboModule.js.map deleted file mode 100644 index 3e56c3d7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/RNScreensTurboModule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["logger","noopFactory","defaultReturnValue","warn","RNScreensTurboModule","global","startTransition","topScreenId","belowTopScreenId","canStartTransition","updateTransition","finishTransition"],"sourceRoot":"../../../src","sources":["screenTransition/RNScreensTurboModule.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,MAAM,QAAQ,WAAW;AAGlC,SAASC,WAAWA,CAAIC,kBAAsB,EAAW;EACvD,OAAO,MAAM;IACX,SAAS;;IACTF,MAAM,CAACG,IAAI,CACT,qJACF,CAAC;IACD,OAAOD,kBAAkB;EAC3B,CAAC;AACH;AAQA,OAAO,MAAME,oBAA8C,GACzDC,MAAM,CAACD,oBAAoB,IAAI;EAC7BE,eAAe,EAAEL,WAAW,CAAoB;IAC9CM,WAAW,EAAE,CAAC,CAAC;IACfC,gBAAgB,EAAE,CAAC,CAAC;IACpBC,kBAAkB,EAAE;EACtB,CAAC,CAAC;EACFC,gBAAgB,EAAET,WAAW,CAAC,CAAC;EAC/BU,gBAAgB,EAAEV,WAAW,CAAC;AAChC,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/animationManager.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/animationManager.js deleted file mode 100644 index 8c0855a6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/animationManager.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -import { applyStyle } from './styleUpdater'; -import { getSwipeSimulator } from './swipeSimulator'; -export function startScreenTransition(screenTransitionConfig) { - 'worklet'; - - const { - stackTag, - sharedEvent - } = screenTransitionConfig; - sharedEvent.addListener(stackTag, () => { - applyStyle(screenTransitionConfig, sharedEvent.value); - }); -} -function getLockAxis(goBackGesture) { - 'worklet'; - - if (['swipeRight', 'swipeLeft', 'horizontalSwipe'].includes(goBackGesture)) { - return 'x'; - } else if (['swipeUp', 'swipeDown', 'verticalSwipe'].includes(goBackGesture)) { - return 'y'; - } - return undefined; -} -export function finishScreenTransition(screenTransitionConfig) { - 'worklet'; - - const { - stackTag, - sharedEvent, - goBackGesture - } = screenTransitionConfig; - sharedEvent.removeListener(stackTag); - const lockAxis = getLockAxis(goBackGesture); - const step = getSwipeSimulator(sharedEvent.value, screenTransitionConfig, lockAxis); - step(); -} -//# sourceMappingURL=animationManager.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/animationManager.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/animationManager.js.map deleted file mode 100644 index 9cd60ebc..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/animationManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["applyStyle","getSwipeSimulator","startScreenTransition","screenTransitionConfig","stackTag","sharedEvent","addListener","value","getLockAxis","goBackGesture","includes","undefined","finishScreenTransition","removeListener","lockAxis","step"],"sourceRoot":"../../../src","sources":["screenTransition/animationManager.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,UAAU,QAAQ,gBAAgB;AAC3C,SAASC,iBAAiB,QAAQ,kBAAkB;AAEpD,OAAO,SAASC,qBAAqBA,CACnCC,sBAA8C,EAC9C;EACA,SAAS;;EACT,MAAM;IAAEC,QAAQ;IAAEC;EAAY,CAAC,GAAGF,sBAAsB;EACxDE,WAAW,CAACC,WAAW,CAACF,QAAQ,EAAE,MAAM;IACtCJ,UAAU,CAACG,sBAAsB,EAAEE,WAAW,CAACE,KAAK,CAAC;EACvD,CAAC,CAAC;AACJ;AAEA,SAASC,WAAWA,CAACC,aAAqB,EAAY;EACpD,SAAS;;EACT,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAACC,QAAQ,CAACD,aAAa,CAAC,EAAE;IAC1E,OAAO,GAAG;EACZ,CAAC,MAAM,IACL,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe,CAAC,CAACC,QAAQ,CAACD,aAAa,CAAC,EACjE;IACA,OAAO,GAAG;EACZ;EACA,OAAOE,SAAS;AAClB;AAEA,OAAO,SAASC,sBAAsBA,CACpCT,sBAA8C,EAC9C;EACA,SAAS;;EACT,MAAM;IAAEC,QAAQ;IAAEC,WAAW;IAAEI;EAAc,CAAC,GAAGN,sBAAsB;EACvEE,WAAW,CAACQ,cAAc,CAACT,QAAQ,CAAC;EACpC,MAAMU,QAAQ,GAAGN,WAAW,CAACC,aAAa,CAAC;EAC3C,MAAMM,IAAI,GAAGd,iBAAiB,CAC5BI,WAAW,CAACE,KAAK,EACjBJ,sBAAsB,EACtBW,QACF,CAAC;EACDC,IAAI,CAAC,CAAC;AACR","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/commonTypes.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/commonTypes.js deleted file mode 100644 index 0a62811d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/commonTypes.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; - -export {}; -//# sourceMappingURL=commonTypes.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/commonTypes.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/commonTypes.js.map deleted file mode 100644 index d7755a83..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/commonTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":[],"sourceRoot":"../../../src","sources":["screenTransition/commonTypes.ts"],"mappings":"AAAA,YAAY;;AAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/index.js deleted file mode 100644 index c7c4d775..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -export { finishScreenTransition, startScreenTransition } from './animationManager'; -export { ScreenTransition } from './presets'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/index.js.map deleted file mode 100644 index 1ba1617a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["finishScreenTransition","startScreenTransition","ScreenTransition"],"sourceRoot":"../../../src","sources":["screenTransition/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,SACEA,sBAAsB,EACtBC,qBAAqB,QAChB,oBAAoB;AAM3B,SAASC,gBAAgB,QAAQ,WAAW","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/presets.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/presets.js deleted file mode 100644 index a95501c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/presets.js +++ /dev/null @@ -1,157 +0,0 @@ -'use strict'; - -const SwipeRight = { - topScreenStyle: event => { - 'worklet'; - - return { - transform: [{ - translateX: event.translationX - }] - }; - }, - belowTopScreenStyle: (event, screenSize) => { - 'worklet'; - - return { - transform: [{ - translateX: (event.translationX - screenSize.width) * 0.3 - }] - }; - } -}; -const SwipeLeft = { - topScreenStyle: event => { - 'worklet'; - - return { - transform: [{ - translateX: event.translationX - }] - }; - }, - belowTopScreenStyle: (event, screenSize) => { - 'worklet'; - - return { - transform: [{ - translateX: (event.translationX + screenSize.width) * 0.3 - }] - }; - } -}; -const SwipeDown = { - topScreenStyle: event => { - 'worklet'; - - return { - transform: [{ - translateY: event.translationY - }] - }; - }, - belowTopScreenStyle: (event, screenSize) => { - 'worklet'; - - return { - transform: [{ - translateY: (event.translationY - screenSize.height) * 0.3 - }] - }; - } -}; -const SwipeUp = { - topScreenStyle: event => { - 'worklet'; - - return { - transform: [{ - translateY: event.translationY - }] - }; - }, - belowTopScreenStyle: (event, screenSize) => { - 'worklet'; - - return { - transform: [{ - translateY: (event.translationY + screenSize.height) * 0.3 - }] - }; - } -}; -const TwoDimensional = { - topScreenStyle: (event, _screenSize) => { - 'worklet'; - - return { - transform: [{ - translateX: event.translationX - }, { - translateY: event.translationY - }] - }; - }, - belowTopScreenStyle: (_event, _screenSize) => { - 'worklet'; - - return {}; - } -}; -const Horizontal = { - topScreenStyle: (event, _screenSize) => { - 'worklet'; - - return { - transform: [{ - translateX: event.translationX - }] - }; - }, - belowTopScreenStyle: (_event, _screenSize) => { - 'worklet'; - - return {}; - } -}; -const Vertical = { - topScreenStyle: (event, _screenSize) => { - 'worklet'; - - return { - transform: [{ - translateY: event.translationY - }] - }; - }, - belowTopScreenStyle: (_event, _screenSize) => { - 'worklet'; - - return {}; - } -}; -const SwipeRightFade = { - topScreenStyle: (event, screenSize) => { - 'worklet'; - - return { - opacity: 1 - Math.abs(event.translationX / screenSize.width) - }; - }, - belowTopScreenStyle: (_event, _screenSize) => { - 'worklet'; - - return {}; - } -}; -export const ScreenTransition = { - SwipeRight, - SwipeLeft, - SwipeDown, - SwipeUp, - Horizontal, - Vertical, - TwoDimensional, - SwipeRightFade -}; -//# sourceMappingURL=presets.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/presets.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/presets.js.map deleted file mode 100644 index 2f40fd97..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/presets.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["SwipeRight","topScreenStyle","event","transform","translateX","translationX","belowTopScreenStyle","screenSize","width","SwipeLeft","SwipeDown","translateY","translationY","height","SwipeUp","TwoDimensional","_screenSize","_event","Horizontal","Vertical","SwipeRightFade","opacity","Math","abs","ScreenTransition"],"sourceRoot":"../../../src","sources":["screenTransition/presets.ts"],"mappings":"AAAA,YAAY;;AAIZ,MAAMA,UAAoC,GAAG;EAC3CC,cAAc,EAAGC,KAAK,IAAK;IACzB,SAAS;;IACT,OAAO;MACLC,SAAS,EAAE,CAAC;QAAEC,UAAU,EAAEF,KAAK,CAACG;MAAa,CAAC;IAChD,CAAC;EACH,CAAC;EACDC,mBAAmB,EAAEA,CAACJ,KAAK,EAAEK,UAAU,KAAK;IAC1C,SAAS;;IACT,OAAO;MACLJ,SAAS,EAAE,CACT;QAAEC,UAAU,EAAE,CAACF,KAAK,CAACG,YAAY,GAAGE,UAAU,CAACC,KAAK,IAAI;MAAI,CAAC;IAEjE,CAAC;EACH;AACF,CAAC;AAED,MAAMC,SAAmC,GAAG;EAC1CR,cAAc,EAAGC,KAAK,IAAK;IACzB,SAAS;;IACT,OAAO;MACLC,SAAS,EAAE,CAAC;QAAEC,UAAU,EAAEF,KAAK,CAACG;MAAa,CAAC;IAChD,CAAC;EACH,CAAC;EACDC,mBAAmB,EAAEA,CAACJ,KAAK,EAAEK,UAAU,KAAK;IAC1C,SAAS;;IACT,OAAO;MACLJ,SAAS,EAAE,CACT;QAAEC,UAAU,EAAE,CAACF,KAAK,CAACG,YAAY,GAAGE,UAAU,CAACC,KAAK,IAAI;MAAI,CAAC;IAEjE,CAAC;EACH;AACF,CAAC;AAED,MAAME,SAAmC,GAAG;EAC1CT,cAAc,EAAGC,KAAK,IAAK;IACzB,SAAS;;IACT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D,CAAC;EACH,CAAC;EACDC,mBAAmB,EAAEA,CAACW,MAAM,EAAED,WAAW,KAAK;IAC5C,SAAS;;IACT,OAAO,CAAC,CAAC;EACX;AACF,CAAC;AAED,MAAMG,QAAkC,GAAG;EACzClB,cAAc,EAAEA,CAACC,KAAK,EAAEc,WAAW,KAAK;IACtC,SAAS;;IACT,OAAO;MACLb,SAAS,EAAE,CAAC;QAAEQ,UAAU,EAAET,KAAK,CAACU;MAAa,CAAC;IAChD,CAAC;EACH,CAAC;EACDN,mBAAmB,EAAEA,CAACW,MAAM,EAAED,WAAW,KAAK;IAC5C,SAAS;;IACT,OAAO,CAAC,CAAC;EACX;AACF,CAAC;AAED,MAAMI,cAAwC,GAAG;EAC/CnB,cAAc,EAAEA,CAACC,KAAK,EAAEK,UAAU,KAAK;IACrC,SAAS;;IACT,OAAO;MACLc,OAAO,EAAE,CAAC,GAAGC,IAAI,CAACC,GAAG,CAACrB,KAAK,CAACG,YAAY,GAAGE,UAAU,CAACC,KAAK;IAC7D,CAAC;EACH,CAAC;EACDF,mBAAmB,EAAEA,CAACW,MAAM,EAAED,WAAW,KAAK;IAC5C,SAAS;;IACT,OAAO,CAAC,CAAC;EACX;AACF,CAAC;AAED,OAAO,MAAMQ,gBAAgB,GAAG;EAC9BxB,UAAU;EACVS,SAAS;EACTC,SAAS;EACTI,OAAO;EACPI,UAAU;EACVC,QAAQ;EACRJ,cAAc;EACdK;AACF,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/styleUpdater.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/styleUpdater.js deleted file mode 100644 index d6821ad6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/styleUpdater.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -import { updateProps } from '../updateProps'; -function createViewDescriptor(screenId) { - 'worklet'; - - return { - shadowNodeWrapper: screenId - }; -} -function applyStyleForTopScreen(screenTransitionConfig, event) { - 'worklet'; - - const { - screenDimensions, - topScreenId, - screenTransition - } = screenTransitionConfig; - const { - topScreenStyle: computeTopScreenStyle - } = screenTransition; - const topScreenStyle = computeTopScreenStyle(event, screenDimensions); - const topScreenDescriptor = { - value: [createViewDescriptor(topScreenId)] - }; - updateProps(topScreenDescriptor, topScreenStyle, undefined); -} -export function applyStyleForBelowTopScreen(screenTransitionConfig, event) { - 'worklet'; - - const { - screenDimensions, - belowTopScreenId, - screenTransition - } = screenTransitionConfig; - const { - belowTopScreenStyle: computeBelowTopScreenStyle - } = screenTransition; - const belowTopScreenStyle = computeBelowTopScreenStyle(event, screenDimensions); - const belowTopScreenDescriptor = { - value: [createViewDescriptor(belowTopScreenId)] - }; - updateProps(belowTopScreenDescriptor, belowTopScreenStyle, undefined); -} -export function applyStyle(screenTransitionConfig, event) { - 'worklet'; - - applyStyleForTopScreen(screenTransitionConfig, event); - applyStyleForBelowTopScreen(screenTransitionConfig, event); -} -//# sourceMappingURL=styleUpdater.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/styleUpdater.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/styleUpdater.js.map deleted file mode 100644 index f08eb5a3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/styleUpdater.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["updateProps","createViewDescriptor","screenId","shadowNodeWrapper","applyStyleForTopScreen","screenTransitionConfig","event","screenDimensions","topScreenId","screenTransition","topScreenStyle","computeTopScreenStyle","topScreenDescriptor","value","undefined","applyStyleForBelowTopScreen","belowTopScreenId","belowTopScreenStyle","computeBelowTopScreenStyle","belowTopScreenDescriptor","applyStyle"],"sourceRoot":"../../../src","sources":["screenTransition/styleUpdater.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,WAAW,QAAQ,gBAAgB;AAM5C,SAASC,oBAAoBA,CAACC,QAAoC,EAAE;EAClE,SAAS;;EACT,OAAO;IAAEC,iBAAiB,EAAED;EAAS,CAAC;AACxC;AAEA,SAASE,sBAAsBA,CAC7BC,sBAA8C,EAC9CC,KAAoC,EACpC;EACA,SAAS;;EACT,MAAM;IAAEC,gBAAgB;IAAEC,WAAW;IAAEC;EAAiB,CAAC,GACvDJ,sBAAsB;EACxB,MAAM;IAAEK,cAAc,EAAEC;EAAsB,CAAC,GAAGF,gBAAgB;EAClE,MAAMC,cAAc,GAAGC,qBAAqB,CAACL,KAAK,EAAEC,gBAAgB,CAAC;EACrE,MAAMK,mBAAmB,GAAG;IAC1BC,KAAK,EAAE,CAACZ,oBAAoB,CAACO,WAAW,CAAC;EAC3C,CAAC;EACDR,WAAW,CAACY,mBAAmB,EAAEF,cAAc,EAAEI,SAAS,CAAC;AAC7D;AAEA,OAAO,SAASC,2BAA2BA,CACzCV,sBAA8C,EAC9CC,KAAoC,EACpC;EACA,SAAS;;EACT,MAAM;IAAEC,gBAAgB;IAAES,gBAAgB;IAAEP;EAAiB,CAAC,GAC5DJ,sBAAsB;EACxB,MAAM;IAAEY,mBAAmB,EAAEC;EAA2B,CAAC,GAAGT,gBAAgB;EAC5E,MAAMQ,mBAAmB,GAAGC,0BAA0B,CACpDZ,KAAK,EACLC,gBACF,CAAC;EACD,MAAMY,wBAAwB,GAAG;IAC/BN,KAAK,EAAE,CAACZ,oBAAoB,CAACe,gBAAgB,CAAC;EAChD,CAAC;EACDhB,WAAW,CAACmB,wBAAwB,EAAEF,mBAAmB,EAAEH,SAAS,CAAC;AACvE;AAEA,OAAO,SAASM,UAAUA,CACxBf,sBAA8C,EAC9CC,KAAoC,EACpC;EACA,SAAS;;EACTF,sBAAsB,CAACC,sBAAsB,EAAEC,KAAK,CAAC;EACrDS,2BAA2B,CAACV,sBAAsB,EAAEC,KAAK,CAAC;AAC5D","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/swipeSimulator.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/swipeSimulator.js deleted file mode 100644 index 5cf8d473..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/swipeSimulator.js +++ /dev/null @@ -1,189 +0,0 @@ -'use strict'; - -import { RNScreensTurboModule } from './RNScreensTurboModule'; -import { applyStyle, applyStyleForBelowTopScreen } from './styleUpdater'; -const BASE_VELOCITY = 400; -const ADDITIONAL_VELOCITY_FACTOR_X = 400; -const ADDITIONAL_VELOCITY_FACTOR_Y = 500; -const ADDITIONAL_VELOCITY_FACTOR_XY = 600; -function computeEasingProgress(startingTimestamp, distance, velocity) { - 'worklet'; - - if (Math.abs(distance) < 1) { - return 1; - } - const elapsedTime = (globalThis._getAnimationTimestamp() - startingTimestamp) / 1000; - const currentPosition = velocity * elapsedTime; - const progress = currentPosition / distance; - return progress; -} -function easing(x) { - 'worklet'; - - // based on https://easings.net/#easeOutQuart - return 1 - Math.pow(1 - x, 5); -} -function computeProgress(screenTransitionConfig, event, isTransitionCanceled) { - 'worklet'; - - const screenDimensions = screenTransitionConfig.screenDimensions; - const progressX = Math.abs(event.translationX / screenDimensions.width); - const progressY = Math.abs(event.translationY / screenDimensions.height); - const maxProgress = Math.max(progressX, progressY); - const progress = isTransitionCanceled ? maxProgress / 2 : maxProgress; - return progress; -} -function maybeScheduleNextFrame(step, didScreenReachDestination, screenTransitionConfig, event, isTransitionCanceled) { - 'worklet'; - - if (!didScreenReachDestination) { - const stackTag = screenTransitionConfig.stackTag; - const progress = computeProgress(screenTransitionConfig, event, isTransitionCanceled); - RNScreensTurboModule.updateTransition(stackTag, progress); - requestAnimationFrame(step); - } else { - screenTransitionConfig.onFinishAnimation?.(); - } -} -export function getSwipeSimulator(event, screenTransitionConfig, lockAxis) { - 'worklet'; - - const screenDimensions = screenTransitionConfig.screenDimensions; - const startTimestamp = globalThis._getAnimationTimestamp(); - const { - isTransitionCanceled - } = screenTransitionConfig; - const startingPosition = { - x: event.translationX, - y: event.translationY - }; - const direction = { - x: Math.sign(event.translationX), - y: Math.sign(event.translationY) - }; - const finalPosition = isTransitionCanceled ? { - x: 0, - y: 0 - } : { - x: direction.x * screenDimensions.width, - y: direction.y * screenDimensions.height - }; - const distance = { - x: Math.abs(finalPosition.x - startingPosition.x), - y: Math.abs(finalPosition.y - startingPosition.y) - }; - const didScreenReachDestination = { - x: false, - y: false - }; - const velocity = { - x: BASE_VELOCITY, - y: BASE_VELOCITY - }; - if (lockAxis === 'x') { - velocity.y = 0; - velocity.x += ADDITIONAL_VELOCITY_FACTOR_X * distance.x / screenDimensions.width; - } else if (lockAxis === 'y') { - velocity.x = 0; - velocity.y += ADDITIONAL_VELOCITY_FACTOR_Y * distance.y / screenDimensions.height; - } else { - const euclideanDistance = Math.sqrt(distance.x ** 2 + distance.y ** 2); - const screenDiagonal = Math.sqrt(screenDimensions.width ** 2 + screenDimensions.height ** 2); - const velocityVectorLength = BASE_VELOCITY + ADDITIONAL_VELOCITY_FACTOR_XY * euclideanDistance / screenDiagonal; - if (Math.abs(startingPosition.x) > Math.abs(startingPosition.y)) { - velocity.x = velocityVectorLength; - velocity.y = velocityVectorLength * Math.abs(startingPosition.y / startingPosition.x); - } else { - velocity.x = velocityVectorLength * Math.abs(startingPosition.x / startingPosition.y); - velocity.y = velocityVectorLength; - } - } - if (isTransitionCanceled) { - function didScreenReachDestinationCheck() { - if (lockAxis === 'x') { - return didScreenReachDestination.x; - } else if (lockAxis === 'y') { - return didScreenReachDestination.y; - } else { - return didScreenReachDestination.x && didScreenReachDestination.y; - } - } - function restoreOriginalStyleForBelowTopScreen() { - event.translationX = direction.x * screenDimensions.width; - event.translationY = direction.y * screenDimensions.height; - applyStyleForBelowTopScreen(screenTransitionConfig, event); - } - const computeFrame = () => { - const progress = { - x: computeEasingProgress(startTimestamp, distance.x, velocity.x), - y: computeEasingProgress(startTimestamp, distance.y, velocity.y) - }; - event.translationX = startingPosition.x - direction.x * distance.x * easing(progress.x); - event.translationY = startingPosition.y - direction.y * distance.y * easing(progress.y); - if (direction.x > 0) { - if (event.translationX <= 0) { - didScreenReachDestination.x = true; - event.translationX = 0; - } - } else { - if (event.translationX >= 0) { - didScreenReachDestination.x = true; - event.translationX = 0; - } - } - if (direction.y > 0) { - if (event.translationY <= 0) { - didScreenReachDestination.y = true; - event.translationY = 0; - } - } else { - if (event.translationY >= 0) { - didScreenReachDestination.y = true; - event.translationY = 0; - } - } - applyStyle(screenTransitionConfig, event); - const finished = didScreenReachDestinationCheck(); - if (finished) { - restoreOriginalStyleForBelowTopScreen(); - } - maybeScheduleNextFrame(computeFrame, finished, screenTransitionConfig, event, isTransitionCanceled); - }; - return computeFrame; - } else { - const computeFrame = () => { - const progress = { - x: computeEasingProgress(startTimestamp, distance.x, velocity.x), - y: computeEasingProgress(startTimestamp, distance.y, velocity.y) - }; - event.translationX = startingPosition.x + direction.x * distance.x * easing(progress.x); - event.translationY = startingPosition.y + direction.y * distance.y * easing(progress.y); - if (direction.x > 0) { - if (event.translationX >= screenDimensions.width) { - didScreenReachDestination.x = true; - event.translationX = screenDimensions.width; - } - } else { - if (event.translationX <= -screenDimensions.width) { - didScreenReachDestination.x = true; - event.translationX = -screenDimensions.width; - } - } - if (direction.y > 0) { - if (event.translationY >= screenDimensions.height) { - didScreenReachDestination.y = true; - event.translationY = screenDimensions.height; - } - } else { - if (event.translationY <= -screenDimensions.height) { - didScreenReachDestination.y = true; - event.translationY = -screenDimensions.height; - } - } - applyStyle(screenTransitionConfig, event); - maybeScheduleNextFrame(computeFrame, didScreenReachDestination.x || didScreenReachDestination.y, screenTransitionConfig, event, isTransitionCanceled); - }; - return computeFrame; - } -} -//# sourceMappingURL=swipeSimulator.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/swipeSimulator.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/swipeSimulator.js.map deleted file mode 100644 index 6b45dcd6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/screenTransition/swipeSimulator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["RNScreensTurboModule","applyStyle","applyStyleForBelowTopScreen","BASE_VELOCITY","ADDITIONAL_VELOCITY_FACTOR_X","ADDITIONAL_VELOCITY_FACTOR_Y","ADDITIONAL_VELOCITY_FACTOR_XY","computeEasingProgress","startingTimestamp","distance","velocity","Math","abs","elapsedTime","globalThis","_getAnimationTimestamp","currentPosition","progress","easing","x","pow","computeProgress","screenTransitionConfig","event","isTransitionCanceled","screenDimensions","progressX","translationX","width","progressY","translationY","height","maxProgress","max","maybeScheduleNextFrame","step","didScreenReachDestination","stackTag","updateTransition","requestAnimationFrame","onFinishAnimation","getSwipeSimulator","lockAxis","startTimestamp","startingPosition","y","direction","sign","finalPosition","euclideanDistance","sqrt","screenDiagonal","velocityVectorLength","didScreenReachDestinationCheck","restoreOriginalStyleForBelowTopScreen","computeFrame","finished"],"sourceRoot":"../../../src","sources":["screenTransition/swipeSimulator.ts"],"mappings":"AAAA,YAAY;;AAMZ,SAASA,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,UAAU,EAAEC,2BAA2B,QAAQ,gBAAgB;AAExE,MAAMC,aAAa,GAAG,GAAG;AACzB,MAAMC,4BAA4B,GAAG,GAAG;AACxC,MAAMC,4BAA4B,GAAG,GAAG;AACxC,MAAMC,6BAA6B,GAAG,GAAG;AAEzC,SAASC,qBAAqBA,CAC5BC,iBAAyB,EACzBC,QAAgB,EAChBC,QAAgB,EAChB;EACA,SAAS;;EACT,IAAIC,IAAI,CAACC,GAAG,CAACH,QAAQ,CAAC,GAAG,CAAC,EAAE;IAC1B,OAAO,CAAC;EACV;EACA,MAAMI,WAAW,GACf,CAACC,UAAU,CAACC,sBAAsB,CAAC,CAAC,GAAGP,iBAAiB,IAAI,IAAI;EAClE,MAAMQ,eAAe,GAAGN,QAAQ,GAAGG,WAAW;EAC9C,MAAMI,QAAQ,GAAGD,eAAe,GAAGP,QAAQ;EAC3C,OAAOQ,QAAQ;AACjB;AAEA,SAASC,MA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ChBc,gBAAgB,CAACC,CAAC,GAAGC,SAAS,CAACD,CAAC,GAAGpC,QAAQ,CAACoC,CAAC,GAAG3B,MAAM,CAACD,QAAQ,CAAC4B,CAAC,CAAC;MACpE,IAAIC,SAAS,CAAC3B,CAAC,GAAG,CAAC,EAAE;QACnB,IAAII,KAAK,CAACI,YAAY,IAAIF,gBAAgB,CAACG,KAAK,EAAE;UAChDQ,yBAAyB,CAACjB,CAAC,GAAG,IAAI;UAClCI,KAAK,CAACI,YAAY,GAAGF,gBAAgB,CAACG,KAAK;QAC7C;MACF,CAAC,MAAM;QACL,IAAIL,KAAK,CAACI,YAAY,IAAI,CAACF,gBAAgB,CAACG,KAAK,EAAE;UACjDQ,yBAAyB,CAACjB,CAAC,GAAG,IAAI;UAClCI,KAAK,CAACI,YAAY,GAAG,CAACF,gBAAgB,CAACG,KAAK;QAC9C;MACF;MACA,IAAIkB,SAAS,CAACD,CAAC,GAAG,CAAC,EAAE;QACnB,IAAItB,KAAK,CAACO,YAAY,IAAIL,gBAAgB,CAACM,MAAM,EAAE;UACjDK,yBAAyB,CAACS,CAAC,GAAG,IAAI;UAClCtB,KAAK,CAACO,YAAY,GAAGL,gBAAgB,CAACM,MAAM;QAC9C;MACF,CAAC,MAAM;QACL,IAAIR,KAAK,CAACO,YAAY,IAAI,CAACL,gBAAgB,CAACM,MAAM,EAAE;UAClDK,yBAAyB,CAACS,CAAC,GAAG,IAAI;UAClCtB,KAAK,CAACO,YAAY,GAAG,CAACL,gBAAgB,CAACM,MAAM;QAC/C;MACF;MACA9B,UAAU,CAACqB,sBAAsB,EAAEC,KAAK,CAAC;MACzCW,sBAAsB,CACpBqB,YAAY,EACZnB,yBAAyB,CAACjB,CAAC,IAAIiB,yBAAyB,CAACS,CAAC,EAC1DvB,sBAAsB,EACtBC,KAAK,EACLC,oBACF,CAAC;IACH,CAAC;IACD,OAAO+B,YAAY;EACrB;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/NativeReanimatedModule.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/NativeReanimatedModule.js deleted file mode 100644 index 42ba9a3b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/NativeReanimatedModule.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -import { TurboModuleRegistry } from 'react-native'; -export default TurboModuleRegistry.get('ReanimatedModule'); -//# sourceMappingURL=NativeReanimatedModule.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/NativeReanimatedModule.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/NativeReanimatedModule.js.map deleted file mode 100644 index c34140b5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/NativeReanimatedModule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeReanimatedModule.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,mBAAmB,QAAQ,cAAc;AAMlD,eAAeA,mBAAmB,CAACC,GAAG,CAAO,kBAAkB,CAAC","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/index.js deleted file mode 100644 index 83830799..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -import ReanimatedTurboModule from './NativeReanimatedModule'; -export { ReanimatedTurboModule }; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/index.js.map deleted file mode 100644 index b37c74e6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/specs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["ReanimatedTurboModule"],"sourceRoot":"../../../src","sources":["specs/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,qBAAqB,MAAM,0BAA0B;AAE5D,SAASA,qBAAqB","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/index.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/index.js deleted file mode 100644 index 7264603c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -export { default as updateProps } from './updateProps'; -export { updatePropsJestWrapper } from './updateProps'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/index.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/index.js.map deleted file mode 100644 index 650e528d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["default","updateProps","updatePropsJestWrapper"],"sourceRoot":"../../../src","sources":["updateProps/index.ts"],"mappings":"AAAA,YAAY;;AAEZ,SAASA,OAAO,IAAIC,WAAW,QAAQ,eAAe;AACtD,SAASC,sBAAsB,QAAQ,eAAe","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/updateProps.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/updateProps.js deleted file mode 100644 index f194581a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/updateProps.js +++ /dev/null @@ -1,138 +0,0 @@ -/* eslint-disable @typescript-eslint/no-explicit-any */ -'use strict'; - -import { runOnJS, runOnUI } from 'react-native-worklets'; -import { IS_JEST, processBoxShadowNative, processBoxShadowWeb, processColorsInProps, processTransformOrigin, ReanimatedError, SHOULD_BE_USE_WEB } from '../common'; -import jsPropsUpdater from '../createAnimatedComponent/JSPropsUpdater'; -import { _updatePropsJS } from '../ReanimatedModule/js-reanimated'; -let updateProps; -if (SHOULD_BE_USE_WEB) { - updateProps = (viewDescriptors, updates, isAnimatedProps) => { - 'worklet'; - - viewDescriptors.value?.forEach(viewDescriptor => { - const component = viewDescriptor.tag; - if ('boxShadow' in updates) { - updates.boxShadow = processBoxShadowWeb(updates.boxShadow); - } - _updatePropsJS(updates, component, isAnimatedProps); - }); - }; -} else { - updateProps = (viewDescriptors, updates) => { - 'worklet'; - - /* TODO: Improve this config structure in the future - * The goal is to create a simplified version of `src/css/platform/native/config.ts`, - * containing only properties that require processing and their associated processors - * */ - processColorsInProps(updates); - if ('transformOrigin' in updates) { - updates.transformOrigin = processTransformOrigin(updates.transformOrigin); - } - if ('boxShadow' in updates) { - updates.boxShadow = processBoxShadowNative(updates.boxShadow); - } - global.UpdatePropsManager.update(viewDescriptors, updates); - }; -} -export const updatePropsJestWrapper = (viewDescriptors, updates, animatedValues, adapters) => { - adapters.forEach(adapter => { - adapter(updates); - }); - animatedValues.current.value = { - ...animatedValues.current.value, - ...updates - }; - updateProps(viewDescriptors, updates); -}; -export default updateProps; -function updateJSProps(operations) { - jsPropsUpdater.updateProps(operations); -} -function createUpdatePropsManager() { - 'worklet'; - - const nativeOperations = []; - const jsOperations = []; - let flushPending = false; - const processViewUpdates = (tag, updates) => Object.entries(updates).reduce((acc, [propName, value]) => { - if (global._tagToJSPropNamesMapping[tag]?.[propName]) { - acc.jsPropUpdates ??= {}; - acc.jsPropUpdates[propName] = value; - } else { - acc.nativePropUpdates ??= {}; - acc.nativePropUpdates[propName] = value; - } - return acc; - }, {}); - return { - update(viewDescriptors, updates) { - viewDescriptors.value.forEach(({ - tag, - shadowNodeWrapper - }) => { - const viewTag = tag; - const { - nativePropUpdates, - jsPropUpdates - } = processViewUpdates(viewTag, updates); - if (nativePropUpdates) { - nativeOperations.push({ - shadowNodeWrapper, - updates: nativePropUpdates - }); - } - if (jsPropUpdates) { - jsOperations.push({ - tag: viewTag, - updates: jsPropUpdates - }); - } - if (!flushPending && (nativePropUpdates || jsPropUpdates)) { - queueMicrotask(this.flush); - flushPending = true; - } - }); - }, - flush() { - if (nativeOperations.length) { - global._updateProps(nativeOperations); - nativeOperations.length = 0; - } - if (jsOperations.length) { - runOnJS(updateJSProps)(jsOperations); - jsOperations.length = 0; - } - flushPending = false; - } - }; -} -if (SHOULD_BE_USE_WEB) { - const maybeThrowError = () => { - // Jest attempts to access a property of this object to check if it is a Jest mock - // so we can't throw an error in the getter. - if (!IS_JEST) { - throw new ReanimatedError('`UpdatePropsManager` is not available on non-native platform.'); - } - }; - global.UpdatePropsManager = new Proxy({}, { - get: maybeThrowError, - set: () => { - maybeThrowError(); - return false; - } - }); -} else { - runOnUI(() => { - 'worklet'; - - global.UpdatePropsManager = createUpdatePropsManager(); - })(); -} - -/** - * This used to be `SharedValue` but objects holding just a - * single `value` prop are fine too. - */ -//# sourceMappingURL=updateProps.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/updateProps.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/updateProps.js.map deleted file mode 100644 index 063ae2f0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/updateProps/updateProps.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["runOnJS","runOnUI","IS_JEST","processBoxShadowNative","processBoxShadowWeb","processColorsInProps","processTransformOrigin","ReanimatedError","SHOULD_BE_USE_WEB","jsPropsUpdater","_updatePropsJS","updateProps","viewDescriptors","updates","isAnimatedProps","value","forEach","viewDescriptor","component","tag","boxShadow","transformOrigin","global","UpdatePropsManager","update","updatePropsJestWrapper","animatedValues","adapters","adapter","current","updateJSProps","operations","createUpdatePropsManager","nativeOperations","jsOperations","flushPending","processViewUpdates","Object","entries","reduce","acc","propName","_tagToJSPropNamesMapping","jsPropUpdates","nativePropUpdates","shadowNodeWrapper","viewTag","push","queueMicrotask","flush","length","_updateProps","maybeThrowError","Proxy","get","set"],"sourceRoot":"../../../src","sources":["updateProps/updateProps.ts"],"mappings":"AAAA;AACA,YAAY;;AAEZ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IACd;EACF,CACF,CAAC;AACH,CAAC,MAAM;EACLnD,OAAO,CAAC,MAAM;IACZ,SAAS;;IACTqB,MAAM,CAACC,kBAAkB,GAAGS,wBAAwB,CAAC,CAAC;EACxD,CAAC,CAAC,CAAC,CAAC;AACN;;AAEA;AACA;AACA;AACA","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/valueSetter.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/valueSetter.js deleted file mode 100644 index 24d7caed..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/valueSetter.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -export function valueSetter(mutable, value, forceUpdate = false) { - 'worklet'; - - const previousAnimation = mutable._animation; - if (previousAnimation) { - previousAnimation.cancelled = true; - mutable._animation = null; - } - if (typeof value === 'function' || value !== null && typeof value === 'object' && - // TODO TYPESCRIPT fix this after fixing AnimationObject type - value.onFrame !== undefined) { - const animation = typeof value === 'function' ? - // TODO TYPESCRIPT fix this after fixing AnimationObject type - value() : - // TODO TYPESCRIPT fix this after fixing AnimationObject type - value; - // prevent setting again to the same value - // and triggering the mappers that treat this value as an input - // this happens when the animation's target value(stored in animation.current until animation.onStart is called) is set to the same value as a current one(this._value) - // built in animations that are not higher order(withTiming, withSpring) hold target value in .current - if (mutable._value === animation.current && !animation.isHigherOrder && !forceUpdate) { - animation.callback?.(true); - return; - } - // animated set - const initializeAnimation = timestamp => { - animation.onStart(animation, mutable.value, timestamp, previousAnimation); - }; - const currentTimestamp = global.__frameTimestamp || global._getAnimationTimestamp(); - initializeAnimation(currentTimestamp); - const step = newTimestamp => { - // Function `requestAnimationFrame` adds callback to an array, all the callbacks are flushed with function `__flushAnimationFrame` - // Usually we flush them inside function `nativeRequestAnimationFrame` and then the given timestamp is the timestamp of end of the current frame. - // However function `__flushAnimationFrame` may also be called inside `registerEventHandler` - then we get actual timestamp which is earlier than the end of the frame. - - const timestamp = newTimestamp < (animation.timestamp || 0) ? animation.timestamp : newTimestamp; - if (animation.cancelled) { - animation.callback?.(false /* finished */); - return; - } - const finished = animation.onFrame(animation, timestamp); - animation.finished = true; - animation.timestamp = timestamp; - // TODO TYPESCRIPT - // For now I'll assume that `animation.current` is always defined - // but actually need to dive into animations to understand it - mutable._value = animation.current; - if (finished) { - animation.callback?.(true /* finished */); - } else { - requestAnimationFrame(step); - } - }; - mutable._animation = animation; - step(currentTimestamp); - } else { - // prevent setting again to the same value - // and triggering the mappers that treat this value as an input - if (mutable._value === value && !forceUpdate) { - return; - } - mutable._value = value; - } -} -//# sourceMappingURL=valueSetter.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/valueSetter.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/valueSetter.js.map deleted file mode 100644 index 0c30b587..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/valueSetter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["valueSetter","mutable","value","forceUpdate","previousAnimation","_animation","cancelled","onFrame","undefined","animation","_value","current","isHigherOrder","callback","initializeAnimation","timestamp","onStart","currentTimestamp","global","__frameTimestamp","_getAnimationTimestamp","step","newTimestamp","finished","requestAnimationFrame"],"sourceRoot":"../../src","sources":["valueSetter.ts"],"mappings":"AAAA,YAAY;;AAGZ,OAAO,SAASA,WAAWA,CACzBC,OAAuB,EACvBC,KAAY,EACZC,WAAW,GAAG,KAAK,EACb;EACN,SAAS;;EACT,MAAMC,iBAAiB,GAAGH,OAAO,CAACI,UAAU;EAC5C,IAAID,iBAAiB,EAAE;IACrBA,iBAAiB,CAACE,SAAS,GAAG,IAAI;IAClCL,OAAO,CAACI,UAAU,GAAG,IAAI;EAC3B;EACA,IACE,OAAOH,KAAK,KAAK,UAAU,IAC1BA,KAAK,KAAK,IAAI,IACb,OAAOA,KAAK,KAAK,QAAQ;EACzB;EACCA,KAAK,CAAgCK,OAAO,KAAKC,SAAU,EAC9D;IACA,MAAMC,SAAiC,GACrC,OAAO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I,CAACJ,gBAAgB,CAAC;EACxB,CAAC,MAAM;IACL;IACA;IACA,IAAIhB,OAAO,CAACS,MAAM,KAAKR,KAAK,IAAI,CAACC,WAAW,EAAE;MAC5C;IACF;IACAF,OAAO,CAACS,MAAM,GAAGR,KAAK;EACxB;AACF","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/workletFunctions.js b/frontend-admin/node_modules/react-native-reanimated/lib/module/workletFunctions.js deleted file mode 100644 index c74bf3a0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/workletFunctions.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -import { createSerializable, createWorkletRuntime as createWorkletRuntimeFromWorklets, executeOnUIRuntimeSync as executeOnUIRuntimeSyncFromWorklets, isWorkletFunction as isWorkletFunctionFromWorklets, runOnJS as runOnJSFromWorklets, runOnRuntime as runOnRuntimeFromWorklets, runOnUI as runOnUIFromWorklets } from 'react-native-worklets'; - -/** - * @deprecated Please import `makeShareableCloneRecursive` directly from - * `react-native-worklets` instead of `react-native-reanimated`. - */ -export const makeShareableCloneRecursive = createSerializable; - -/** - * @deprecated Please import `createWorkletRuntime` directly from - * `react-native-worklets` instead of `react-native-reanimated`. - */ -export const createWorkletRuntime = createWorkletRuntimeFromWorklets; - -/** - * @deprecated Please import `executeOnUIRuntimeSync` directly from - * `react-native-worklets` instead of `react-native-reanimated`. - */ -export const executeOnUIRuntimeSync = executeOnUIRuntimeSyncFromWorklets; - -/** - * @deprecated Please import `runOnJS` directly from `react-native-worklets` - * instead of `react-native-reanimated`. - */ -export const runOnJS = runOnJSFromWorklets; - -/** - * @deprecated Please import `runOnUI` directly from `react-native-worklets` - * instead of `react-native-reanimated`. - */ -export const runOnUI = runOnUIFromWorklets; - -/** - * @deprecated Please import `runOnRuntime` directly from - * `react-native-worklets` instead of `react-native-reanimated`. - */ -export const runOnRuntime = runOnRuntimeFromWorklets; - -/** - * @deprecated Please import `WorkletRuntime` directly from - * `react-native-worklets` instead of `react-native-reanimated`. - */ - -/** - * @deprecated Please import `isWorkletFunction` directly from - * `react-native-worklets` instead of `react-native-reanimated`. - */ -export const isWorkletFunction = isWorkletFunctionFromWorklets; -//# sourceMappingURL=workletFunctions.js.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/module/workletFunctions.js.map b/frontend-admin/node_modules/react-native-reanimated/lib/module/workletFunctions.js.map deleted file mode 100644 index 9daacbce..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/module/workletFunctions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["createSerializable","createWorkletRuntime","createWorkletRuntimeFromWorklets","executeOnUIRuntimeSync","executeOnUIRuntimeSyncFromWorklets","isWorkletFunction","isWorkletFunctionFromWorklets","runOnJS","runOnJSFromWorklets","runOnRuntime","runOnRuntimeFromWorklets","runOnUI","runOnUIFromWorklets","makeShareableCloneRecursive"],"sourceRoot":"../../src","sources":["workletFunctions.ts"],"mappings":"AAAA,YAAY;;AAMZ,SACEA,kBAAkB,EAClBC,oBAAoB,IAAIC,gCAAgC,EACxDC,sBAAsB,IAAIC,kCAAkC,EAC5DC,iBAAiB,IAAIC,6BAA6B,EAClDC,OAAO,IAAIC,mBAAmB,EAC9BC,YAAY,IAAIC,wBAAwB,EACxCC,OAAO,IAAIC,mBAAmB,QACzB,uBAAuB;;AAE9B;AACA;AACA;AACA;AACA,OAAO,MAAMC,2BAA+C,GAC1Db,kBAAkB;;AAEpB;AACA;AACA;AACA;AACA,OAAO,MAAMC,oBAAoB,GAAGC,gCAAgC;;AAEpE;AACA;AACA;AACA;AACA,OAAO,MAAMC,sBAAsB,GAAGC,kCAAkC;;AAExE;AACA;AACA;AACA;AACA,OAAO,MAAMG,OAAO,GAAGC,mBAAmB;;AAE1C;AACA;AACA;AACA;AACA,OAAO,MAAMG,OAAO,GAAGC,mBAAmB;;AAE1C;AACA;AACA;AACA;AACA,OAAO,MAAMH,YAAY,GAAGC,wBAAwB;;AAEpD;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA,OAAO,MAAML,iBAAiB,GAAGC,6BAA6B","ignoreList":[]} diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts index be7c579e..4efee978 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts +++ b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts @@ -1,8 +1,66 @@ -export { ReanimatedFlatList as FlatList } from './component/FlatList'; -export { AnimatedImage as Image } from './component/Image'; -export { AnimatedScrollView as ScrollView } from './component/ScrollView'; -export { AnimatedText as Text } from './component/Text'; -export { AnimatedView as View } from './component/View'; -export { addWhitelistedNativeProps, addWhitelistedUIProps, } from './ConfigHelper'; +import type { Extrapolate as _Extrapolate } from './reanimated2/interpolateColor'; +import type { SharedValue as _SharedValue } from './reanimated2/commonTypes'; +import type { DerivedValue as _DerivedValue } from './reanimated2/hook/useDerivedValue'; +import type { TransformStyleTypes as _TransformStyleTypes, Adaptable as _Adaptable, AdaptTransforms as _AdaptTransforms, AnimatedTransform as _AnimatedTransform, AnimateStyle as _AnimateStyle, StylesOrDefault as _StylesOrDefault, AnimateProps as _AnimateProps } from './reanimated2/helperTypes'; +import type { EasingFunction as _EasingFunction } from './reanimated2/Easing'; +import type { AnimatedScrollViewProps as _AnimatedScrollViewProps } from './reanimated2/component/ScrollView'; +import type { FlatListPropsWithLayout as _FlatListPropsWithLayout } from './reanimated2/component/FlatList'; export { createAnimatedComponent } from './createAnimatedComponent'; -//# sourceMappingURL=Animated.d.ts.map \ No newline at end of file +export { AnimatedText as Text } from './reanimated2/component/Text'; +export { AnimatedView as View } from './reanimated2/component/View'; +export { AnimatedScrollView as ScrollView } from './reanimated2/component/ScrollView'; +export { AnimatedImage as Image } from './reanimated2/component/Image'; +export { ReanimatedFlatList as FlatList } from './reanimated2/component/FlatList'; +export { addWhitelistedNativeProps, addWhitelistedUIProps, } from './ConfigHelper'; +/** + * @deprecated Please import `Extrapolate` directly from `react-native-reanimated` instead of `Animated` namespace. + */ +export type Extrapolate = typeof _Extrapolate; +/** + * @deprecated Please import `SharedValue` directly from `react-native-reanimated` instead of `Animated` namespace. + */ +export type SharedValue = _SharedValue; +/** + * @deprecated Please import `DerivedValue` directly from `react-native-reanimated` instead of `Animated` namespace. + */ +export type DerivedValue = _DerivedValue; +/** + * @deprecated Please import `Adaptable` directly from `react-native-reanimated` instead of `Animated` namespace. + */ +export type Adaptable = _Adaptable; +/** + * @deprecated Please import `TransformStyleTypes` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type TransformStyleTypes = _TransformStyleTypes; +/** + * @deprecated Please import `AdaptTransforms` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type AdaptTransforms = _AdaptTransforms; +/** + * @deprecated Please import `AnimatedTransform` directly from `react-native-reanimated` instead of `Animated` namespace. + */ +export type AnimatedTransform = _AnimatedTransform; +/** + * @deprecated Please import `AnimateStyle` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type AnimateStyle = _AnimateStyle; +/** + * @deprecated Please import `StylesOrDefault` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type StylesOrDefault = _StylesOrDefault; +/** + * @deprecated Please import `AnimateProps` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type AnimateProps

= _AnimateProps

; +/** + * @deprecated Please import `EasingFunction` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type EasingFunction = _EasingFunction; +/** + * @deprecated Please import `AnimatedScrollViewProps` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type AnimatedScrollViewProps = _AnimatedScrollViewProps; +/** + * @deprecated Please import `FlatListPropsWithLayout` directly from `react-native-reanimated` instead of `Animated` namespace. + * */ +export type FlatListPropsWithLayout = _FlatListPropsWithLayout; diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts.map deleted file mode 100644 index ff936a17..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Animated.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Animated.d.ts","sourceRoot":"","sources":["../../src/Animated.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Bezier.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Bezier.d.ts deleted file mode 100644 index 3a97c4ee..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Bezier.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function Bezier(mX1: number, mY1: number, mX2: number, mY2: number): (x: number) => number; -//# sourceMappingURL=Bezier.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Bezier.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Bezier.d.ts.map deleted file mode 100644 index d6f23338..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Bezier.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Bezier.d.ts","sourceRoot":"","sources":["../../src/Bezier.ts"],"names":[],"mappings":"AAwFA,wBAAgB,MAAM,CACpB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CA0EvB"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Colors.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Colors.d.ts deleted file mode 100644 index 328437d3..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Colors.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -interface HSV { - h: number; - s: number; - v: number; -} -export declare function clampRGBA(RGBA: ParsedColorArray): void; -export declare const ColorProperties: string[]; -export declare function normalizeColor(color: unknown): number | null | undefined; -export declare const opacity: (c: number) => number; -export declare const red: (c: number) => number; -export declare const green: (c: number) => number; -export declare const blue: (c: number) => number; -export declare const rgbaColor: (r: number, g: number, b: number, alpha?: number) => number | string; -/** - * @param r - Red value (0-255) - * @param g - Green value (0-255) - * @param b - Blue value (0-255) - * @returns `{h: hue (0-1), s: saturation (0-1), v: value (0-1)}` - */ -export declare function RGBtoHSV(r: number, g: number, b: number): HSV; -export declare const hsvToColor: (h: number, s: number, v: number, a: number) => number | string; -export declare function processColorInitially(color: unknown): number | null | undefined; -export declare function isColor(value: unknown): boolean; -export type ParsedColorArray = [number, number, number, number]; -export declare function convertToRGBA(color: unknown): ParsedColorArray; -export declare function rgbaArrayToRGBAColor(RGBA: ParsedColorArray): string; -export declare function toLinearSpace(RGBA: ParsedColorArray, gamma?: number): ParsedColorArray; -export declare function toGammaSpace(RGBA: ParsedColorArray, gamma?: number): ParsedColorArray; -export {}; -//# sourceMappingURL=Colors.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Colors.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Colors.d.ts.map deleted file mode 100644 index 4f544161..00000000 --- a/frontend-admin/node_modules/react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MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAQ9D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAMnE;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,gBAAgB,EACtB,KAAK,SAAM,GACV,gBAAgB,CAQlB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,gBAAgB,EACtB,KAAK,SAAM,GACV,gBAAgB,CAQlB"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts index ad411aa8..2f1b713e 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts +++ b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts @@ -1,16 +1,11 @@ -import type { LoggerConfig } from './common'; -/** @deprecated This function is a no-op in Reanimated 4. */ -export declare function addWhitelistedNativeProps(_props: Record): void; -/** @deprecated This function is a no-op in Reanimated 4. */ -export declare function addWhitelistedUIProps(_props: Record): void; +export declare function addWhitelistedNativeProps(props: Record): void; +export declare function addWhitelistedUIProps(props: Record): void; +export interface ViewConfig { + uiViewClassName: string; + validAttributes: Record; +} /** - * Updates Reanimated logger config with the user-provided configuration. Will - * affect Reanimated code executed after call to this function so it should be - * called before any Reanimated code is executed to take effect. Each call to - * this function will override the previous configuration (it's recommended to - * call it only once). - * - * @param config - The new logger configuration to apply. + * updates UI props whitelist for given view host instance + * this will work just once for every view name */ -export declare function configureReanimatedLogger(config: LoggerConfig): void; -//# sourceMappingURL=ConfigHelper.d.ts.map \ No newline at end of file +export declare function adaptViewConfig(viewConfig: ViewConfig): void; diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts.map deleted file mode 100644 index 9777f29f..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ConfigHelper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConfigHelper.d.ts","sourceRoot":"","sources":["../../src/ConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO7C,4DAA4D;AAC5D,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,IAAI,CAEN;AAED,4DAA4D;AAC5D,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAE3E;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,YAAY,QAS7D"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Easing.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Easing.d.ts deleted file mode 100644 index f732ad88..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Easing.d.ts +++ /dev/null @@ -1,174 +0,0 @@ -import type { EasingFunction } from './commonTypes'; -/** - * The `Easing` module implements common easing functions. This module is used - * by [Animate.timing()](docs/animate.html#timing) to convey physically - * believable motion in animations. - * - * You can find a visualization of some common easing functions at - * http://easings.net/ - * - * ### Predefined animations - * - * The `Easing` module provides several predefined animations through the - * following methods: - * - * - [`back`](docs/easing.html#back) provides a simple animation where the object - * goes slightly back before moving forward - * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation - * - [`ease`](docs/easing.html#ease) provides a simple inertial animation - * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction - * - * ### Standard functions - * - * Three standard easing functions are provided: - * - * - [`linear`](docs/easing.html#linear) - * - [`quad`](docs/easing.html#quad) - * - [`cubic`](docs/easing.html#cubic) - * - * The [`poly`](docs/easing.html#poly) function can be used to implement - * quartic, quintic, and other higher power functions. - * - * ### Additional functions - * - * Additional mathematical functions are provided by the following methods: - * - * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve - * - [`circle`](docs/easing.html#circle) provides a circular function - * - [`sin`](docs/easing.html#sin) provides a sinusoidal function - * - [`exp`](docs/easing.html#exp) provides an exponential function - * - * The following helpers are used to modify other easing functions. - * - * - [`in`](docs/easing.html#in) runs an easing function forwards - * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical - * - [`out`](docs/easing.html#out) runs an easing function backwards - */ -export type EasingFunctionFactory = { - factory: () => EasingFunction; -}; -/** - * A linear function, `f(t) = t`. Position correlates to elapsed time one to - * one. - * - * http://cubic-bezier.com/#0,0,1,1 - */ -declare function linear(t: number): number; -/** - * A simple inertial interaction, similar to an object slowly accelerating to - * speed. - * - * http://cubic-bezier.com/#.42,0,1,1 - */ -declare function ease(t: number): number; -/** - * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed - * time. - * - * http://easings.net/#easeInQuad - */ -declare function quad(t: number): number; -/** - * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed - * time. - * - * http://easings.net/#easeInCubic - */ -declare function cubic(t: number): number; -/** - * A power function. Position is equal to the Nth power of elapsed time. - * - * N = 4: http://easings.net/#easeInQuart n = 5: http://easings.net/#easeInQuint - */ -declare function poly(n: number): EasingFunction; -/** - * A sinusoidal function. - * - * http://easings.net/#easeInSine - */ -declare function sin(t: number): number; -/** - * A circular function. - * - * http://easings.net/#easeInCirc - */ -declare function circle(t: number): number; -/** - * An exponential function. - * - * http://easings.net/#easeInExpo - */ -declare function exp(t: number): number; -/** - * A simple elastic interaction, similar to a spring oscillating back and forth. - * - * Default bounciness is 1, which overshoots a little bit once. 0 bounciness - * doesn't overshoot at all, and bounciness of N `>` 1 will overshoot about N - * times. - * - * http://easings.net/#easeInElastic - */ -declare function elastic(bounciness?: number): EasingFunction; -/** - * Use with `Animated.parallel()` to create a simple effect where the object - * animates back slightly as the animation starts. - * - * Wolfram Plot: - * - * - http://tiny.cc/back_default (s = 1.70158, default) - */ -declare function back(s?: number): (t: number) => number; -/** - * Provides a simple bouncing effect. - * - * http://easings.net/#easeInBounce - */ -declare function bounce(t: number): number; -/** - * Provides a cubic bezier curve, equivalent to CSS Transitions' - * `transition-timing-function`. - * - * A useful tool to visualize cubic bezier curves can be found at - * http://cubic-bezier.com/ - */ -declare function bezier(x1: number, y1: number, x2: number, y2: number): EasingFunctionFactory; -declare function bezierFn(x1: number, y1: number, x2: number, y2: number): (x: number) => number; -/** Runs an easing function forwards. */ -declare function in_(easing: EasingFunction): EasingFunction; -/** Runs an easing function backwards. */ -declare function out(easing: EasingFunction): EasingFunction; -/** - * Makes any easing function symmetrical. The easing function will run forwards - * for half of the duration, then backwards for the rest of the duration. - */ -declare function inOut(easing: EasingFunction): EasingFunction; -/** - * The `steps` easing function jumps between discrete values at regular - * intervals, creating a stepped animation effect. The `n` parameter determines - * the number of steps in the animation, and the `roundToNextStep` parameter - * determines whether the animation should start at the beginning or end of each - * step. - */ -declare function steps(n?: number, roundToNextStep?: boolean): EasingFunction; -export declare const EasingNameSymbol: unique symbol; -export declare const Easing: { - linear: typeof linear; - ease: typeof ease; - quad: typeof quad; - cubic: typeof cubic; - poly: typeof poly; - sin: typeof sin; - circle: typeof circle; - exp: typeof exp; - elastic: typeof elastic; - back: typeof back; - bounce: typeof bounce; - bezier: typeof bezier; - bezierFn: typeof bezierFn; - steps: typeof steps; - in: typeof in_; - out: typeof out; - inOut: typeof inOut; -}; -export {}; -//# sourceMappingURL=Easing.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Easing.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Easing.d.ts.map deleted file mode 100644 index 05dfb2c8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Easing.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -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,MAAM,EACV,EAAE,EAAE,MAAM,GACT,qBAAqB,CAQvB;AAED,iBAAS,QAAQ,CACf,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,GACT,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAGvB;AAED,wCAAwC;AACxC,iBAAS,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAGnD;AAED,yCAAyC;AACzC,iBAAS,GAAG,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CAMnD;AAED;;;GAGG;AACH,iBAAS,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG,cAAc,CASrD;AAED;;;;;;GAMG;AACH,iBAAS,KAAK,CAAC,CAAC,SAAK,EAAE,eAAe,UAAO,GAAG,cAAc,CAU7D;AAsBD,eAAO,MAAM,gBAAgB,eAAuB,CAAC;AAWrD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAAe,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/PropAdapters.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/PropAdapters.d.ts deleted file mode 100644 index 62d0ce91..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/PropAdapters.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { AnimatedPropsAdapterFunction } from './commonTypes'; -export declare function createAnimatedPropAdapter(adapter: AnimatedPropsAdapterFunction, nativeProps?: string[]): AnimatedPropsAdapterFunction; -//# sourceMappingURL=PropAdapters.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/PropAdapters.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/PropAdapters.d.ts.map deleted file mode 100644 index 0e6fabff..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/PropAdapters.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PropAdapters.d.ts","sourceRoot":"","sources":["../../src/PropAdapters.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,eAAe,CAAC;AAGvB,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,4BAA4B,EACrC,WAAW,CAAC,EAAE,MAAM,EAAE,GACrB,4BAA4B,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/NativeReanimated.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/NativeReanimated.d.ts deleted file mode 100644 index 7b236954..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/NativeReanimated.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { IReanimatedModule } from './reanimatedModuleProxy'; -export declare function createNativeReanimatedModule(): IReanimatedModule; -//# sourceMappingURL=NativeReanimated.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/NativeReanimated.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/NativeReanimated.d.ts.map deleted file mode 100644 index a2a43a51..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/NativeReanimated.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NativeReanimated.d.ts","sourceRoot":"","sources":["../../../src/ReanimatedModule/NativeReanimated.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,4BAA4B,IAAI,iBAAiB,CAEhE"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.d.ts deleted file mode 100644 index 0358e816..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { ReanimatedModule } from './reanimatedModuleInstance'; -export type { IReanimatedModule, ReanimatedModuleProxy, } from './reanimatedModuleProxy'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.d.ts.map deleted file mode 100644 index 7b6932e9..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ReanimatedModule/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EACV,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.web.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.web.d.ts deleted file mode 100644 index 01dfcfba..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.web.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const ReanimatedModule: import("./reanimatedModuleProxy").IReanimatedModule; -export type { IReanimatedModule, ReanimatedModuleProxy, } from './reanimatedModuleProxy'; -//# sourceMappingURL=index.web.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.web.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.web.d.ts.map deleted file mode 100644 index f394edcd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/index.web.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/ReanimatedModule/index.web.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,qDAA6B,CAAC;AAC3D,YAAY,EACV,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts deleted file mode 100644 index 2382dd57..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { IReanimatedModule } from '../reanimatedModuleProxy'; -export declare function createJSReanimatedModule(): IReanimatedModule; -/** @knipIgnore */ -export declare enum Platform { - WEB_IOS = "web iOS", - WEB_ANDROID = "web Android", - WEB = "web", - UNKNOWN = "unknown" -} -declare global { - interface Navigator { - userAgent: string; - vendor: string; - } -} -//# sourceMappingURL=JSReanimated.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts.map deleted file mode 100644 index f67ea1a1..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"JSReanimated.d.ts","sourceRoot":"","sources":["../../../../src/ReanimatedModule/js-reanimated/JSReanimated.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,wBAAgB,wBAAwB,IAAI,iBAAiB,CAE5D;AAwTD,kBAAkB;AAClB,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,OAAO,YAAY;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/WebSensor.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/WebSensor.d.ts deleted file mode 100644 index b7271fc8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/WebSensor.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -export declare class WebSensor { - start: () => void; - stop: () => void; - addEventListener: (eventType: string, eventHandler: () => void) => void; - quaternion: [number, number, number, number]; - x: number; - y: number; - z: number; -} -type configOptions = { - referenceFrame: string; - frequency?: undefined; -} | { - frequency: number; - referenceFrame?: undefined; -}; -interface Constructable { - new (config: configOptions): T; -} -declare global { - interface Window { - Accelerometer: Constructable; - GravitySensor: Constructable; - Gyroscope: Constructable; - Magnetometer: Constructable; - AbsoluteOrientationSensor: Constructable; - Sensor: Constructable; - opera?: string; - } -} -export {}; -//# sourceMappingURL=WebSensor.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/WebSensor.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/WebSensor.d.ts.map deleted file mode 100644 index 82bd29cf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/WebSensor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebSensor.d.ts","sourceRoot":"","sources":["../../../../src/ReanimatedModule/js-reanimated/WebSensor.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IACxE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,KAAK,aAAa,GACd;IACE,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,GACD;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEN,UAAU,aAAa,CAAC,CAAC;IACvB,KAAK,MAAM,EAAE,aAAa,GAAG,CAAC,CAAC;CAChC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACxC,aAAa,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACxC,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACpC,YAAY,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACvC,yBAAyB,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACpD,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts deleted file mode 100644 index ce59046e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { StyleProps } from '../../commonTypes'; -import type { PropUpdates } from '../../createAnimatedComponent/commonTypes'; -export { createJSReanimatedModule } from './JSReanimated'; -interface JSReanimatedComponent { - previousStyle: StyleProps; - setNativeProps?: (style: StyleProps) => void; - style?: StyleProps; - props: Record; - _touchableNode: { - setAttribute: (key: string, props: unknown) => void; - }; -} -export interface ReanimatedHTMLElement extends HTMLElement { - previousStyle: StyleProps; - setNativeProps?: (style: StyleProps) => void; - props: Record; - _touchableNode: { - setAttribute: (key: string, props: unknown) => void; - }; - isDummy?: boolean; - dummyClone?: ReanimatedHTMLElement; - removedAfterAnimation?: boolean; -} -export declare const _updatePropsJS: (updates: PropUpdates, viewRef: (JSReanimatedComponent | ReanimatedHTMLElement) & { - getAnimatableRef?: () => JSReanimatedComponent | ReanimatedHTMLElement; -}, isAnimatedProps?: boolean) => void; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts.map deleted file mode 100644 index 7a70b7dd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ReanimatedModule/js-reanimated/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAO7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,UAAU,qBAAqB;IAC7B,aAAa,EAAE,UAAU,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,cAAc,EAAE;QACd,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;KACrD,CAAC;CACH;AAED,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,aAAa,EAAE,UAAU,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IACvC,cAAc,EAAE;QACd,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;KACrD,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAGD,eAAO,MAAM,cAAc,GACzB,SAAS,WAAW,EACpB,SAAS,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,GAAG;IACzD,gBAAgB,CAAC,EAAE,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;CACxE,EACD,kBAAkB,OAAO,KACxB,IA2CF,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.d.ts deleted file mode 100644 index 33ebe066..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare let createReactDOMStyle: (style: any) => any; -export declare let createTransformValue: (transform: any) => any; -export declare let createTextShadowValue: (style: any) => void | string; -//# sourceMappingURL=webUtils.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.d.ts.map deleted file mode 100644 index 4c319db4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webUtils.d.ts","sourceRoot":"","sources":["../../../../src/ReanimatedModule/js-reanimated/webUtils.ts"],"names":[],"mappings":"AAGA,eAAO,IAAI,mBAAmB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAEpD,eAAO,IAAI,oBAAoB,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC;AAEzD,eAAO,IAAI,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.web.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.web.d.ts deleted file mode 100644 index c37023b5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.web.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare let createReactDOMStyle: (style: any) => any; -export declare let createTransformValue: (transform: any) => any; -export declare let createTextShadowValue: (style: any) => void | string; -//# sourceMappingURL=webUtils.web.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.web.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.web.d.ts.map deleted file mode 100644 index 9676ce67..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/js-reanimated/webUtils.web.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webUtils.web.d.ts","sourceRoot":"","sources":["../../../../src/ReanimatedModule/js-reanimated/webUtils.web.ts"],"names":[],"mappings":"AAGA,eAAO,IAAI,mBAAmB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAEpD,eAAO,IAAI,oBAAoB,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC;AAEzD,eAAO,IAAI,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.d.ts deleted file mode 100644 index c37caf12..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ReanimatedModule: import("./reanimatedModuleProxy").IReanimatedModule; -//# sourceMappingURL=reanimatedModuleInstance.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.d.ts.map deleted file mode 100644 index 1f183a04..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reanimatedModuleInstance.d.ts","sourceRoot":"","sources":["../../../src/ReanimatedModule/reanimatedModuleInstance.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,qDAEK,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.web.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.web.d.ts deleted file mode 100644 index 76af6665..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.web.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ReanimatedModule: import("./reanimatedModuleProxy").IReanimatedModule; -//# sourceMappingURL=reanimatedModuleInstance.web.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.web.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.web.d.ts.map deleted file mode 100644 index c0545833..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleInstance.web.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reanimatedModuleInstance.web.d.ts","sourceRoot":"","sources":["../../../src/ReanimatedModule/reanimatedModuleInstance.web.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,qDAA6B,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts deleted file mode 100644 index c532f920..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { SerializableRef, WorkletFunction } from 'react-native-worklets'; -import type { LayoutAnimationBatchItem, ShadowNodeWrapper, StyleProps, Value3D, ValueRotation, WrapperRef } from '../commonTypes'; -import type { CSSAnimationUpdates, NormalizedCSSAnimationKeyframesConfig, NormalizedCSSTransitionConfig } from '../css/native'; -/** Type of `__reanimatedModuleProxy` injected with JSI. */ -export interface ReanimatedModuleProxy { - registerEventHandler(eventHandler: SerializableRef, eventName: string, emitterReactTag: number): number; - unregisterEventHandler(id: number): void; - getViewProp(viewTagOrShadowNodeWrapper: number | ShadowNodeWrapper, propName: string, callback?: (result: T) => void): Promise; - registerSensor(sensorType: number, interval: number, iosReferenceFrame: number, handler: SerializableRef<(data: Value3D | ValueRotation) => void>): number; - unregisterSensor(sensorId: number): void; - getStaticFeatureFlag(name: string): boolean; - setDynamicFeatureFlag(name: string, value: boolean): void; - subscribeForKeyboardEvents(handler: SerializableRef, isStatusBarTranslucent: boolean, isNavigationBarTranslucent: boolean): number; - unsubscribeFromKeyboardEvents(listenerId: number): void; - configureLayoutAnimationBatch(layoutAnimationsBatch: LayoutAnimationBatchItem[]): void; - setShouldAnimateExitingForTag(viewTag: number, shouldAnimate: boolean): void; - setViewStyle(viewTag: number, style: StyleProps): void; - markNodeAsRemovable(shadowNodeWrapper: ShadowNodeWrapper): void; - unmarkNodeAsRemovable(viewTag: number): void; - registerCSSKeyframes(animationName: string, viewName: string, keyframesConfig: NormalizedCSSAnimationKeyframesConfig): void; - unregisterCSSKeyframes(animationName: string, viewName: string): void; - applyCSSAnimations(shadowNodeWrapper: ShadowNodeWrapper, animationUpdates: CSSAnimationUpdates): void; - unregisterCSSAnimations(viewTag: number): void; - registerCSSTransition(shadowNodeWrapper: ShadowNodeWrapper, transitionConfig: NormalizedCSSTransitionConfig): void; - updateCSSTransition(viewTag: number, settingsUpdates: Partial): void; - unregisterCSSTransition(viewTag: number): void; -} -export interface IReanimatedModule extends Omit { - getViewProp(viewTag: number, propName: string, component: WrapperRef | null, callback?: (result: TValue) => void): Promise; -} -//# sourceMappingURL=reanimatedModuleProxy.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts.map deleted file mode 100644 index 30f39789..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reanimatedModuleProxy.d.ts","sourceRoot":"","sources":["../../../src/ReanimatedModule/reanimatedModuleProxy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,aAAa,EACb,UAAU,EACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,mBAAmB,EACnB,qCAAqC,EACrC,6BAA6B,EAC9B,MAAM,eAAe,CAAC;AAEvB,2DAA2D;AAC3D,MAAM,WAAW,qBAAqB;IACpC,oBAAoB,CAAC,CAAC,EACpB,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC,EAChC,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GACtB,MAAM,CAAC;IAEV,sBAAsB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,WAAW,CAAC,CAAC,EACX,0BAA0B,EAAE,MAAM,GAAG,iBAAiB,EACtD,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,GAC7B,OAAO,CAAC,CAAC,CAAC,CAAC;IAEd,cAAc,CACZ,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,EACzB,OAAO,EAAE,eAAe,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,KAAK,IAAI,CAAC,GAChE,MAAM,CAAC;IAEV,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAE5C,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1D,0BAA0B,CACx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EAAE,MAAM,EAChB,SAAS,EAAE,UAAU,GAAG,IAAI,EAC5B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAClC,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReducedMotion.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReducedMotion.d.ts deleted file mode 100644 index 21bea75e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReducedMotion.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare function isReducedMotionEnabledInSystem(): boolean; -export declare const ReducedMotionManager: { - jsValue: boolean; - uiValue: import("./commonTypes").Mutable; - setEnabled(value: boolean): void; -}; -//# sourceMappingURL=ReducedMotion.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReducedMotion.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReducedMotion.d.ts.map deleted file mode 100644 index f4123862..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ReducedMotion.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReducedMotion.d.ts","sourceRoot":"","sources":["../../src/ReducedMotion.ts"],"names":[],"mappings":"AAMA,wBAAgB,8BAA8B,YAO7C;AAID,eAAO,MAAM,oBAAoB;;;sBAGb,OAAO;CAI1B,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Sensor.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Sensor.d.ts deleted file mode 100644 index 46fcc2e4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Sensor.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { SerializableRef } from 'react-native-worklets'; -import type { SensorConfig, SharedValue, Value3D, ValueRotation } from './commonTypes'; -import { SensorType } from './commonTypes'; -export default class Sensor { - listenersNumber: number; - private sensorId; - private sensorType; - private data; - private config; - constructor(sensorType: SensorType, config: SensorConfig); - register(eventHandler: SerializableRef<(data: Value3D | ValueRotation) => void>): boolean; - isRunning(): boolean; - isAvailable(): boolean; - getSharedValue(): SharedValue; - unregister(): void; -} -//# sourceMappingURL=Sensor.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Sensor.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Sensor.d.ts.map deleted file mode 100644 index bf3cdf65..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/Sensor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Sensor.d.ts","sourceRoot":"","sources":["../../src/Sensor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,uBAAuB,CAAC;AAE9E,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,OAAO,EACP,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AA4B3C,MAAM,CAAC,OAAO,OAAO,MAAM;IAClB,eAAe,SAAK;IAC3B,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,IAAI,CAAuC;IACnD,OAAO,CAAC,MAAM,CAAe;gBAEjB,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY;IAMxD,QAAQ,CACN,YAAY,EAAE,eAAe,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,KAAK,IAAI,CAAC;IAaxE,SAAS;IAIT,WAAW;IAIX,cAAc;IAId,UAAU;CAMX"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/SensorContainer.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/SensorContainer.d.ts deleted file mode 100644 index 9926e830..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/SensorContainer.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { SerializableRef } from 'react-native-worklets'; -import type { SensorConfig, SensorType, SharedValue, Value3D, ValueRotation } from './commonTypes'; -export declare class SensorContainer { - private nativeSensors; - getSensorId(sensorType: SensorType, config: SensorConfig): number; - initializeSensor(sensorType: SensorType, config: SensorConfig): SharedValue; - registerSensor(sensorType: SensorType, config: SensorConfig, handler: SerializableRef<(data: Value3D | ValueRotation) => void>): number; - unregisterSensor(sensorId: number): void; -} -//# sourceMappingURL=SensorContainer.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/SensorContainer.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/SensorContainer.d.ts.map deleted file mode 100644 index d576901e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/SensorContainer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SensorContainer.d.ts","sourceRoot":"","sources":["../../src/SensorContainer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,WAAW,EACX,OAAO,EACP,aAAa,EACd,MAAM,eAAe,CAAC;AAGvB,qBAAa,eAAe;IAC1B,OAAO,CAAC,aAAa,CAAkC;IAEvD,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY;IAQxD,gBAAgB,CACd,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,YAAY,GACnB,WAAW,CAAC,OAAO,GAAG,aAAa,CAAC;IAYvC,cAAc,CACZ,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,eAAe,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,aAAa,KAAK,IAAI,CAAC,GAChE,MAAM;IAmBT,gBAAgB,CAAC,QAAQ,EAAE,MAAM;CAWlC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/UpdateLayoutAnimations.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/UpdateLayoutAnimations.d.ts deleted file mode 100644 index 8b430002..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/UpdateLayoutAnimations.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { LayoutAnimationFunction, LayoutAnimationType } from './commonTypes'; -/** - * Lets you update the current configuration of the layout animation or shared - * element transition for a given component. Configurations are batched and - * applied at the end of the current execution block, right before sending the - * response back to native. - * - * @param viewTag - The tag of the component you'd like to configure. - * @param type - The type of the animation you'd like to configure - - * {@link LayoutAnimationType}. - * @param config - The animation configuration - {@link LayoutAnimationFunction} - * or {@link Keyframe}. Passing `undefined` will remove the animation. - * @param isUnmounting - Determines whether the configuration should be included - * at the end of the batch, after all the non-deferred configurations (even - * those that were updated later). This is used to retain the correct ordering - * of shared elements. Defaults to `false`. - */ -export declare let updateLayoutAnimations: (viewTag: number, type: LayoutAnimationType, config?: Keyframe | LayoutAnimationFunction, isUnmounting?: boolean) => void; -//# sourceMappingURL=UpdateLayoutAnimations.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/UpdateLayoutAnimations.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/UpdateLayoutAnimations.d.ts.map deleted file mode 100644 index 579421a0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/UpdateLayoutAnimations.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UpdateLayoutAnimations.d.ts","sourceRoot":"","sources":["../../src/UpdateLayoutAnimations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,eAAe,CAAC;AA6BvB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,IAAI,sBAAsB,EAAE,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,mBAAmB,EACzB,MAAM,CAAC,EAAE,QAAQ,GAAG,uBAAuB,EAC3C,YAAY,CAAC,EAAE,OAAO,KACnB,IAAI,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ViewDescriptorsSet.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ViewDescriptorsSet.d.ts deleted file mode 100644 index 37c86f9d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ViewDescriptorsSet.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { SharedValue, StyleUpdaterContainer } from './commonTypes'; -import type { Descriptor } from './hook/commonTypes'; -export interface ViewDescriptorsSet { - shareableViewDescriptors: SharedValue; - add: (item: Descriptor, updaterContainer?: StyleUpdaterContainer) => void; - remove: (viewTag: number) => void; - has: (viewTag: number) => boolean; -} -export declare function makeViewDescriptorsSet(): ViewDescriptorsSet; -//# sourceMappingURL=ViewDescriptorsSet.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ViewDescriptorsSet.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ViewDescriptorsSet.d.ts.map deleted file mode 100644 index 85115bb5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/ViewDescriptorsSet.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ViewDescriptorsSet.d.ts","sourceRoot":"","sources":["../../src/ViewDescriptorsSet.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,wBAAwB,EAAE,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC;IACpD,GAAG,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC1E,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;CACnC;AAED,wBAAgB,sBAAsB,IAAI,kBAAkB,CA0C3D"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/WorkletEventHandler.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/WorkletEventHandler.d.ts deleted file mode 100644 index cef7c78c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/WorkletEventHandler.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { NativeSyntheticEvent } from 'react-native'; -import type { EventPayload, IWorkletEventHandler, ReanimatedEvent } from './hook/commonTypes'; -type JSEvent = NativeSyntheticEvent>; -declare class WorkletEventHandlerNative implements IWorkletEventHandler { - #private; - eventNames: string[]; - worklet: (event: ReanimatedEvent) => void; - constructor(worklet: (event: ReanimatedEvent) => void, eventNames: string[]); - updateEventHandler(newWorklet: (event: ReanimatedEvent) => void, newEvents: string[]): void; - registerForEvents(viewTag: number, fallbackEventName?: string): void; - unregisterFromEvents(viewTag: number): void; -} -declare class WorkletEventHandlerWeb implements IWorkletEventHandler { - eventNames: string[]; - listeners: Record>) => void> | Record) => void>; - worklet: (event: ReanimatedEvent) => void; - constructor(worklet: (event: ReanimatedEvent) => void, eventNames?: string[]); - setupWebListeners(): void; - updateEventHandler(newWorklet: (event: ReanimatedEvent) => void, newEvents: string[]): void; - registerForEvents(_viewTag: number, _fallbackEventName?: string): void; - unregisterFromEvents(_viewTag: number): void; -} -export declare const WorkletEventHandler: typeof WorkletEventHandlerNative | typeof WorkletEventHandlerWeb; -export {}; -//# sourceMappingURL=WorkletEventHandler.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/WorkletEventHandler.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/WorkletEventHandler.d.ts.map deleted file mode 100644 index 3ba6a32b..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/WorkletEventHandler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkletEventHandler.d.ts","sourceRoot":"","sources":["../../src/WorkletEventHandler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAIzD,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,KAAK,OAAO,CAAC,KAAK,SAAS,MAAM,IAAI,oBAAoB,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;AAc/E,cAAM,yBAAyB,CAAC,KAAK,SAAS,MAAM,CAClD,YAAW,oBAAoB,CAAC,KAAK,CAAC;;IAEtC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;gBAI/C,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,EAChD,UAAU,EAAE,MAAM,EAAE;IAQtB,kBAAkB,CAChB,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,EACnD,SAAS,EAAE,MAAM,EAAE,GAClB,IAAI;IAoBP,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI;IAkBpE,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAO5C;AAED,cAAM,sBAAsB,CAAC,KAAK,SAAS,MAAM,CAC/C,YAAW,oBAAoB,CAAC,KAAK,CAAC;IAEtC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EACL,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,GACxE,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC;IAEpD,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;gBAG/C,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,EAChD,UAAU,GAAE,MAAM,EAAO;IAQ3B,iBAAiB;IAOjB,kBAAkB,CAChB,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,EACnD,SAAS,EAAE,MAAM,EAAE,GAClB,IAAI;IAOP,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI;IAItE,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAG7C;AAED,eAAO,MAAM,mBAAmB,kEAEH,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/clamp.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/clamp.d.ts deleted file mode 100644 index 80934bb2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/clamp.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -type withClampType = (config: { - min?: T; - max?: T; -}, clampedAnimation: T) => T; -export declare const withClamp: withClampType; -export {}; -//# sourceMappingURL=clamp.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/clamp.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/clamp.d.ts.map deleted file mode 100644 index a605c8c0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/clamp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../../src/animation/clamp.ts"],"names":[],"mappings":"AAgBA,KAAK,aAAa,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAC7C,MAAM,EAAE;IACN,GAAG,CAAC,EAAE,CAAC,CAAC;IACR,GAAG,CAAC,EAAE,CAAC,CAAC;CACT,EACD,gBAAgB,EAAE,CAAC,KAChB,CAAC,CAAC;AAEP,eAAO,MAAM,SAAS,EA6GjB,aAAa,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/commonTypes.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/commonTypes.d.ts deleted file mode 100644 index 6177ca01..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/commonTypes.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { AnimatableValue, AnimatedStyle, Animation, AnimationCallback, AnimationObject, StyleProps, Timestamp } from '../commonTypes'; -export interface HigherOrderAnimation { - isHigherOrder?: boolean; -} -export type NextAnimation = T | (() => T); -export interface ClampAnimation extends Animation, HigherOrderAnimation { - current: AnimatableValue; -} -export interface DelayAnimation extends Animation, HigherOrderAnimation { - startTime: Timestamp; - started: boolean; - previousAnimation: DelayAnimation | null; - current: AnimatableValue; -} -export interface RepeatAnimation extends Animation, HigherOrderAnimation { - reps: number; - startValue: AnimatableValue; - toValue?: AnimatableValue; - previousAnimation?: RepeatAnimation; -} -export interface SequenceAnimation extends Animation, HigherOrderAnimation { - animationIndex: number; -} -export interface StyleLayoutAnimation extends HigherOrderAnimation { - current: StyleProps; - styleAnimations: AnimatedStyle; - onFrame: (animation: StyleLayoutAnimation, timestamp: Timestamp) => boolean; - onStart: (nextAnimation: StyleLayoutAnimation, current: AnimatedStyle, timestamp: Timestamp, previousAnimation: StyleLayoutAnimation) => void; - callback?: AnimationCallback; -} -//# sourceMappingURL=commonTypes.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/commonTypes.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/commonTypes.d.ts.map deleted file mode 100644 index 723c8f61..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/commonTypes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"commonTypes.d.ts","sourceRoot":"","sources":["../../../src/animation/commonTypes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,SAAS,EACV,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,eAAe,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,cACf,SAAQ,SAAS,CAAC,cAAc,CAAC,EAC/B,oBAAoB;IACtB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,MAAM,WAAW,cACf,SAAQ,SAAS,CAAC,cAAc,CAAC,EAC/B,oBAAoB;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,cAAc,GAAG,IAAI,CAAC;IACzC,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,MAAM,WAAW,eACf,SAAQ,SAAS,CAAC,eAAe,CAAC,EAChC,oBAAoB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,iBAAiB,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,MAAM,WAAW,iBACf,SAAQ,SAAS,CAAC,iBAAiB,CAAC,EAClC,oBAAoB;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,OAAO,EAAE,UAAU,CAAC;IACpB,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,CAAC,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,SAAS,KAAK,OAAO,CAAC;IAC5E,OAAO,EAAE,CACP,aAAa,EAAE,oBAAoB,EACnC,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,EAC3B,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,oBAAoB,KACpC,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/decay.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/decay.d.ts deleted file mode 100644 index 0191f67c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/decay.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { AnimationCallback } from '../../commonTypes'; -import type { DecayConfig } from './utils'; -export type WithDecayConfig = DecayConfig; -type withDecayType = (userConfig: DecayConfig, callback?: AnimationCallback) => number; -/** - * Lets you create animations that mimic objects in motion with friction. - * - * @param config - The decay animation configuration - {@link DecayConfig}. - * @param callback - A function called upon animation completion - - * {@link AnimationCallback}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDecay - */ -export declare const withDecay: withDecayType; -export {}; -//# sourceMappingURL=decay.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/decay.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/decay.d.ts.map deleted file mode 100644 index 4282ce50..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/decay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decay.d.ts","sourceRoot":"","sources":["../../../../src/animation/decay/decay.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAEV,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC;AAG1C,KAAK,aAAa,GAAG,CACnB,UAAU,EAAE,WAAW,EACvB,QAAQ,CAAC,EAAE,iBAAiB,KACzB,MAAM,CAAC;AA8BZ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,EAgEN,aAAa,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/index.d.ts deleted file mode 100644 index 14fdbf89..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { WithDecayConfig } from './decay'; -export { withDecay } from './decay'; -export type { DecayAnimation } from './utils'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/index.d.ts.map deleted file mode 100644 index c7f9cdae..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/animation/decay/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rigidDecay.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rigidDecay.d.ts deleted file mode 100644 index 15afc3ad..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rigidDecay.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { DefaultDecayConfig, InnerDecayAnimation } from './utils'; -export declare function rigidDecay(animation: InnerDecayAnimation, now: number, config: DefaultDecayConfig): boolean; -//# sourceMappingURL=rigidDecay.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rigidDecay.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rigidDecay.d.ts.map deleted file mode 100644 index fa1b078d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rigidDecay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rigidDecay.d.ts","sourceRoot":"","sources":["../../../../src/animation/decay/rigidDecay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGvE,wBAAgB,UAAU,CACxB,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAyBT"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rubberBandDecay.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rubberBandDecay.d.ts deleted file mode 100644 index 13ab5068..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rubberBandDecay.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { InnerDecayAnimation, RubberBandDecayConfig } from './utils'; -export declare function rubberBandDecay(animation: InnerDecayAnimation, now: number, config: RubberBandDecayConfig): boolean; -//# sourceMappingURL=rubberBandDecay.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rubberBandDecay.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rubberBandDecay.d.ts.map deleted file mode 100644 index fe56a7c7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/rubberBandDecay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rubberBandDecay.d.ts","sourceRoot":"","sources":["../../../../src/animation/decay/rubberBandDecay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAK1E,wBAAgB,eAAe,CAC7B,SAAS,EAAE,mBAAmB,EAC9B,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAmCT"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/utils.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/utils.d.ts deleted file mode 100644 index eb8c634e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/utils.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { AnimatableValue, Animation, AnimationObject, ReduceMotion, RequiredKeys, Timestamp } from '../../commonTypes'; -export declare const VELOCITY_EPS: number; -export declare const SLOPE_FACTOR = 0.1; -export interface DecayAnimation extends Animation { - lastTimestamp: Timestamp; - startTimestamp: Timestamp; - initialVelocity: number; - velocity: number; - current: AnimatableValue | undefined; -} -export interface InnerDecayAnimation extends Omit, AnimationObject { - current: number; - springActive?: boolean; -} -/** - * The decay animation configuration. - * - * @param velocity - Initial velocity of the animation. Defaults to 0. - * @param deceleration - The rate at which the velocity decreases over time. - * Defaults to 0.998. - * @param clamp - Array of two numbers which restricts animation's range. - * Defaults to []. - * @param velocityFactor - Velocity multiplier. Defaults to 1. - * @param rubberBandEffect - Makes the animation bounce over the limit specified - * in `clamp`. Defaults to `false`. - * @param rubberBandFactor - Strength of the rubber band effect. Defaults to - * 0.6. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDecay#config - */ -export type DecayConfig = { - deceleration?: number; - velocityFactor?: number; - velocity?: number; - reduceMotion?: ReduceMotion; -} & ({ - rubberBandEffect?: false; - clamp?: [min: number, max: number]; -} | { - rubberBandEffect: true; - clamp: [min: number, max: number]; - rubberBandFactor?: number; -}); -export type DefaultDecayConfig = RequiredKeys & { - rubberBandFactor: number; -}; -export type RubberBandDecayConfig = RequiredKeys & { - rubberBandEffect: true; -}; -export declare function isValidRubberBandConfig(config: DefaultDecayConfig): config is RubberBandDecayConfig; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/utils.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/utils.d.ts.map deleted file mode 100644 index d53ade97..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/decay/utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/animation/decay/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACT,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,SAAS,EACV,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,YAAY,QAAsB,CAAC;AAChD,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,MAAM,WAAW,cAAe,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/D,aAAa,EAAE,SAAS,CAAC;IACzB,cAAc,EAAE,SAAS,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;CACtC;AAED,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EACrC,eAAe;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,GAAG,CACA;IACE,gBAAgB,CAAC,EAAE,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;CACpC,GACD;IACE,gBAAgB,EAAE,IAAI,CAAC;IACvB,KAAK,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CACJ,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAC3C,WAAW,EACX,cAAc,GAAG,gBAAgB,GAAG,UAAU,CAC/C,GAAG;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,CAAC;AAGjC,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAC9C,kBAAkB,EAClB,OAAO,CACR,GAAG;IAAE,gBAAgB,EAAE,IAAI,CAAA;CAAE,CAAC;AAE/B,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,kBAAkB,GACzB,MAAM,IAAI,qBAAqB,CAOjC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/delay.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/delay.d.ts deleted file mode 100644 index 7ee26c48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/delay.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { AnimatableValue, ReduceMotion } from '../commonTypes'; -type withDelayType = (delayMs: number, delayedAnimation: T, reduceMotion?: ReduceMotion) => T; -/** - * An animation modifier that lets you start an animation with a delay. - * - * @param delayMs - Duration (in milliseconds) before the animation starts. - * @param nextAnimation - The animation to delay. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDelay - */ -export declare const withDelay: withDelayType; -export {}; -//# sourceMappingURL=delay.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/delay.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/delay.d.ts.map deleted file mode 100644 index 4d79bd44..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/delay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../src/animation/delay.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAGf,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAKxB,KAAK,aAAa,GAAG,CAAC,CAAC,SAAS,eAAe,EAC7C,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,CAAC,EACnB,YAAY,CAAC,EAAE,YAAY,KACxB,CAAC,CAAC;AAEP;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,EAqFjB,aAAa,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/index.d.ts deleted file mode 100644 index e1f93a44..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { withClamp } from './clamp'; -export type { DelayAnimation, RepeatAnimation, SequenceAnimation, StyleLayoutAnimation, } from './commonTypes'; -export type { DecayAnimation, WithDecayConfig } from './decay'; -export { withDecay } from './decay'; -export { withDelay } from './delay'; -export { withRepeat } from './repeat'; -export { withSequence } from './sequence'; -export type { SpringAnimation, WithSpringConfig } from './spring'; -export { GentleSpringConfig, GentleSpringConfigWithDuration, Reanimated3DefaultSpringConfig, Reanimated3DefaultSpringConfigWithDuration, SnappySpringConfig, SnappySpringConfigWithDuration, WigglySpringConfig, WigglySpringConfigWithDuration, withSpring, } from './spring'; -export { withStyleAnimation } from './styleAnimation'; -export type { TimingAnimation, WithTimingConfig } from './timing'; -export { withTiming } from './timing'; -export { cancelAnimation, defineAnimation, initialUpdaterRun } from './util'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/index.d.ts.map deleted file mode 100644 index c83eb057..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,YAAY,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,8BAA8B,EAC9B,8BAA8B,EAC9B,0CAA0C,EAC1C,kBAAkB,EAClB,8BAA8B,EAC9B,kBAAkB,EAClB,8BAA8B,EAC9B,UAAU,GACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/repeat.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/repeat.d.ts deleted file mode 100644 index 44d8264e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/repeat.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { AnimatableValue, AnimationCallback, ReduceMotion } from '../commonTypes'; -type withRepeatType = (animation: T, numberOfReps?: number, reverse?: boolean, callback?: AnimationCallback, reduceMotion?: ReduceMotion) => T; -/** - * Lets you repeat an animation given number of times or run it indefinitely. - * - * @param animation - An animation object you want to repeat. - * @param numberOfReps - The number of times the animation is going to be - * repeated. Defaults to 2. - * @param reverse - Whether the animation should run in reverse every other - * repetition. Defaults to false. - * @param callback - A function called on animation complete. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withRepeat - */ -export declare const withRepeat: withRepeatType; -export {}; -//# sourceMappingURL=repeat.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/repeat.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/repeat.d.ts.map deleted file mode 100644 index fd64bdcd..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/repeat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../src/animation/repeat.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAEf,iBAAiB,EAEjB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAKxB,KAAK,cAAc,GAAG,CAAC,CAAC,SAAS,eAAe,EAC9C,SAAS,EAAE,CAAC,EACZ,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,OAAO,EACjB,QAAQ,CAAC,EAAE,iBAAiB,EAC5B,YAAY,CAAC,EAAE,YAAY,KACxB,CAAC,CAAC;AAEP;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,EAyGlB,cAAc,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/sequence.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/sequence.d.ts deleted file mode 100644 index c839251a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/sequence.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { AnimatableValue, ReduceMotion } from '../commonTypes'; -/** - * Lets you run animations in a sequence. - * - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @param animations - Any number of animation objects to be run in a sequence. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation/ - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withSequence - */ -export declare function withSequence(_reduceMotion: ReduceMotion, ...animations: T[]): T; -export declare function withSequence(...animations: T[]): T; -//# sourceMappingURL=sequence.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/sequence.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/sequence.d.ts.map deleted file mode 100644 index 35e4c322..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/sequence.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sequence.d.ts","sourceRoot":"","sources":["../../../src/animation/sequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAGf,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAIxB;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,eAAe,EACpD,aAAa,EAAE,YAAY,EAC3B,GAAG,UAAU,EAAE,CAAC,EAAE,GACjB,CAAC,CAAC;AAEL,wBAAgB,YAAY,CAAC,CAAC,SAAS,eAAe,EAAE,GAAG,UAAU,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/index.d.ts deleted file mode 100644 index 2d8314f5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './spring'; -export * from './springConfigs'; -export * from './springUtils'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/index.d.ts.map deleted file mode 100644 index 9c04e315..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/animation/spring/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/spring.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/spring.d.ts deleted file mode 100644 index 7d143c50..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/spring.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { AnimatableValue, AnimationCallback } from '../../commonTypes'; -import type { SpringConfig } from './springConfigs'; -type withSpringType = (toValue: T, userConfig?: SpringConfig, callback?: AnimationCallback) => T; -/** - * Lets you create spring-based animations. - * - * @param toValue - The value at which the animation will come to rest - - * {@link AnimatableValue} - * @param config - The spring animation configuration - {@link SpringConfig}. - * Defaults to {@link GentleSpringConfig}. You can use other predefined spring - * configurations, such as {@link WigglySpringConfig}, - * {@link SnappySpringConfig}, {@link Reanimated3DefaultSpringConfig} or create - * your own. - * @param callback - A function called on animation complete - - * {@link AnimationCallback} - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withSpring - */ -export declare const withSpring: withSpringType; -export {}; -//# sourceMappingURL=spring.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/spring.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/spring.d.ts.map deleted file mode 100644 index f6c4d7cf..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/spring.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spring.d.ts","sourceRoot":"","sources":["../../../../src/animation/spring/spring.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EAEf,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAwBpD,KAAK,cAAc,GAAG,CAAC,CAAC,SAAS,eAAe,EAC9C,OAAO,EAAE,CAAC,EACV,UAAU,CAAC,EAAE,YAAY,EACzB,QAAQ,CAAC,EAAE,iBAAiB,KACzB,CAAC,CAAC;AAEP;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,EAsMjB,cAAc,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springConfigs.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springConfigs.d.ts deleted file mode 100644 index 98bd3035..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springConfigs.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import type { ReduceMotion } from '../../commonTypes'; -export declare const Reanimated3DefaultSpringConfig: { - readonly damping: 10; - readonly mass: 1; - readonly stiffness: 100; -}; -export declare const Reanimated3DefaultSpringConfigWithDuration: { - readonly duration: 1333; - readonly dampingRatio: 0.5; -}; -export declare const WigglySpringConfig: { - readonly damping: 90; - readonly mass: 4; - readonly stiffness: 900; -}; -export declare const WigglySpringConfigWithDuration: { - readonly duration: 550; - readonly dampingRatio: 0.75; -}; -export declare const GentleSpringConfig: { - readonly damping: 120; - readonly mass: 4; - readonly stiffness: 900; -}; -export declare const GentleSpringConfigWithDuration: { - readonly duration: 550; - readonly dampingRatio: 1; -}; -export declare const SnappySpringConfig: { - readonly damping: 110; - readonly mass: 4; - readonly stiffness: 900; - readonly overshootClamping: true; -}; -export declare const SnappySpringConfigWithDuration: { - readonly duration: 550; - readonly dampingRatio: 0.92; - readonly overshootClamping: true; -}; -/** - * Spring animation configuration. - * - * @param mass - The weight of the spring. Reducing this value makes the - * animation faster. Defaults to 4. - * @param damping - How quickly a spring slows down. Higher damping means the - * spring will come to rest faster. Defaults to 120. - * @param stiffness - How bouncy the spring is. Defaults to 900. - * @param duration - Perceptual duration of the animation in milliseconds. - * Actual duration is 1.5 times the value of perceptual duration. Defaults to - * 550ms if `dampingRatio` is provided. - * @param dampingRatio - How damped the spring is. Value `1` means the spring is - * critically damped, value `<1` means the spring is underdamped and value - * `>1` means the spring is overdamped. Defaults to 1 if `duration` is - * provided. - * @param velocity - Initial velocity applied to the spring equation. Defaults - * to 0. - * @param overshootClamping - Whether a spring can bounce over the `toValue`. - * Defaults to false. - * @param energyThreshold - Relative energy threshold below which the spring - * will snap to `toValue` without further oscillations. Defaults to 6e-9. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withSpring/#config- - */ -export type SpringConfig = { - mass?: number; - overshootClamping?: boolean; - energyThreshold?: number; - velocity?: number; - reduceMotion?: ReduceMotion; -} & ({ - stiffness?: number; - damping?: number; - duration?: never; - dampingRatio?: never; - clamp?: never; -} | { - stiffness?: never; - damping?: never; - duration?: number; - dampingRatio?: number; - clamp?: { - min?: number; - max?: number; - }; -}); -//# sourceMappingURL=springConfigs.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springConfigs.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springConfigs.d.ts.map deleted file mode 100644 index 8bc21753..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springConfigs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"springConfigs.d.ts","sourceRoot":"","sources":["../../../../src/animation/spring/springConfigs.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,8BAA8B;;;;CAIV,CAAC;AAElC,eAAO,MAAM,0CAA0C;;;CAGtB,CAAC;AAElC,eAAO,MAAM,kBAAkB;;;;CAIE,CAAC;AAElC,eAAO,MAAM,8BAA8B;;;CAGV,CAAC;AAElC,eAAO,MAAM,kBAAkB;;;;CAIE,CAAC;AAElC,eAAO,MAAM,8BAA8B;;;CAGV,CAAC;AAElC,eAAO,MAAM,kBAAkB;;;;;CAKE,CAAC;AAElC,eAAO,MAAM,8BAA8B;;;;CAIV,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,GAAG,CACA;IACE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC,CACJ,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springUtils.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springUtils.d.ts deleted file mode 100644 index 4521cf12..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springUtils.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import type { AnimatableValue, Animation, Timestamp } from '../../commonTypes'; -import type { SpringConfig } from './springConfigs'; -export type DefaultSpringConfig = { - [K in keyof Required]: K extends 'reduceMotion' | 'clamp' ? Required[K] | undefined : Required[K]; -}; -export type WithSpringConfig = SpringConfig; -export interface SpringConfigInner { - useDuration: boolean; - skipAnimation: boolean; -} -export interface SpringAnimation extends Animation { - current: AnimatableValue; - toValue: AnimatableValue; - velocity: number; - lastTimestamp: Timestamp; - startTimestamp: Timestamp; - startValue: number; - zeta: number; - omega0: number; - omega1: number; - initialEnergy: number; -} -export interface InnerSpringAnimation extends Omit { - toValue: number; - current: number; -} -export declare function checkIfConfigIsValid(config: DefaultSpringConfig): boolean; -export declare function safeMergeConfigs(defaults: TConfig, userConfig?: Partial): TConfig; -export declare function initialCalculations(stiffness: number | undefined, config: DefaultSpringConfig & SpringConfigInner): { - zeta: number; - omega0: number; - omega1: number; -}; -/** - * We make an assumption that we can manipulate zeta without changing duration - * of movement. According to theory this change is small and tests shows that we - * can indeed ignore it. - */ -export declare function scaleZetaToMatchClamps(animation: SpringAnimation, clamp: { - min?: number; - max?: number; -}): number; -export declare function getEnergy(displacement: number, velocity: number, stiffness: number, mass: number): number; -/** Runs before initial */ -export declare function calculateNewStiffnessToMatchDuration(x0: number, config: DefaultSpringConfig & SpringConfigInner, v0: number): number; -export declare function criticallyDampedSpringCalculations(animation: InnerSpringAnimation, precalculatedValues: { - v0: number; - x0: number; - omega0: number; - t: number; -}): { - position: number; - velocity: number; -}; -export declare function underDampedSpringCalculations(animation: InnerSpringAnimation, precalculatedValues: { - zeta: number; - v0: number; - x0: number; - omega0: number; - omega1: number; - t: number; -}): { - position: number; - velocity: number; -}; -export declare function isAnimationTerminatingCalculation(animation: InnerSpringAnimation, config: DefaultSpringConfig & SpringConfigInner): boolean; -//# sourceMappingURL=springUtils.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springUtils.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springUtils.d.ts.map deleted file mode 100644 index 730634ff..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/spring/springUtils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CAAC,EAAE,MAAM,CAAC;CACX,GACA;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAuBxC;AAED,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,oBAAoB,EAC/B,MAAM,EAAE,mBAAmB,GAAG,iBAAiB,GAC9C,OAAO,CAsBT"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/styleAnimation.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/styleAnimation.d.ts deleted file mode 100644 index f390ed2e..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/styleAnimation.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { AnimatedStyle } from '../commonTypes'; -import type { StyleLayoutAnimation } from './commonTypes'; -export declare function withStyleAnimation(styleAnimations: AnimatedStyle): StyleLayoutAnimation; -//# sourceMappingURL=styleAnimation.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/styleAnimation.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/styleAnimation.d.ts.map deleted file mode 100644 index 116ab641..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/styleAnimation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"styleAnimation.d.ts","sourceRoot":"","sources":["../../../src/animation/styleAnimation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,aAAa,EAMd,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AA6D1D,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC,GAClC,oBAAoB,CAwMtB"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/timing.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/timing.d.ts deleted file mode 100644 index bf7404c5..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/timing.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { AnimatableValue, Animation, AnimationCallback, EasingFunction, ReduceMotion, Timestamp } from '../commonTypes'; -import type { EasingFunctionFactory } from '../Easing'; -/** - * The timing animation configuration. - * - * @param duration - Length of the animation (in milliseconds). Defaults to 300. - * @param easing - An easing function which defines the animation curve. - * Defaults to `Easing.inOut(Easing.quad)`. - * @param reduceMotion - Determines how the animation responds to the device's - * reduced motion accessibility setting. Default to `ReduceMotion.System` - - * {@link ReduceMotion}. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withTiming#config- - */ -interface TimingConfig { - duration?: number; - reduceMotion?: ReduceMotion; - easing?: EasingFunction | EasingFunctionFactory; -} -export type WithTimingConfig = TimingConfig; -export interface TimingAnimation extends Animation { - type: string; - easing: EasingFunction; - startValue: AnimatableValue; - startTime: Timestamp; - progress: number; - toValue: AnimatableValue; - current: AnimatableValue; -} -type withTimingType = (toValue: T, userConfig?: TimingConfig, callback?: AnimationCallback) => T; -/** - * Lets you create an animation based on duration and easing. - * - * @param toValue - The value on which the animation will come at rest - - * {@link AnimatableValue}. - * @param config - The timing animation configuration - {@link TimingConfig}. - * @param callback - A function called on animation complete - - * {@link AnimationCallback}. - * @returns An [animation - * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object) - * which holds the current state of the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withTiming - */ -export declare const withTiming: withTimingType; -export {}; -//# sourceMappingURL=timing.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/timing.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/timing.d.ts.map deleted file mode 100644 index 960c28d0..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/timing.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timing.d.ts","sourceRoot":"","sources":["../../../src/animation/timing.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,SAAS,EACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAQvD;;;;;;;;;;GAUG;AACH,UAAU,YAAY;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,GAAG,qBAAqB,CAAC;CACjD;AAED,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C,MAAM,WAAW,eAAgB,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,eAAe,CAAC;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe,CAAC;IACzB,OAAO,EAAE,eAAe,CAAC;CAC1B;AASD,KAAK,cAAc,GAAG,CAAC,CAAC,SAAS,eAAe,EAC9C,OAAO,EAAE,CAAC,EACV,UAAU,CAAC,EAAE,YAAY,EACzB,QAAQ,CAAC,EAAE,iBAAiB,KACzB,CAAC,CAAC;AAEP;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,EAsFlB,cAAc,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/transformationMatrix/matrixUtils.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/transformationMatrix/matrixUtils.d.ts deleted file mode 100644 index 9c9c6474..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/transformationMatrix/matrixUtils.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -type FixedLengthArray]> = PassedObject & { - readonly length: L; - [I: number]: T; -}; -export type AffineMatrix = FixedLengthArray, 4>; -export type AffineMatrixFlat = FixedLengthArray; -type TransformMatrixDecomposition = Record<'translationMatrix' | 'scaleMatrix' | 'rotationMatrix' | 'skewMatrix', AffineMatrix>; -type Axis = 'x' | 'y' | 'z'; -interface TansformMatrixDecompositionWithAngles extends TransformMatrixDecomposition { - rx: number; - ry: number; - rz: number; -} -export declare function isAffineMatrixFlat(x: unknown): x is AffineMatrixFlat; -export declare function isAffineMatrix(x: unknown): x is AffineMatrix; -export declare function flatten(matrix: AffineMatrix): AffineMatrixFlat; -export declare function unflatten(m: AffineMatrixFlat): AffineMatrix; -export declare function multiplyMatrices(a: AffineMatrix, b: AffineMatrix): AffineMatrix; -export declare function subtractMatrices(maybeFlatA: T, maybeFlatB: T): T; -export declare function addMatrices(maybeFlatA: T, maybeFlatB: T): T; -export declare function scaleMatrix(maybeFlatA: T, scalar: number): T; -export declare function getRotationMatrix(angle: number, axis?: Axis): AffineMatrix; -export declare function decomposeMatrix(unknownTypeMatrix: AffineMatrixFlat | AffineMatrix): TransformMatrixDecomposition; -export declare function decomposeMatrixIntoMatricesAndAngles(matrix: AffineMatrixFlat | AffineMatrix): TansformMatrixDecompositionWithAngles; -export {}; -//# sourceMappingURL=matrixUtils.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/transformationMatrix/matrixUtils.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/transformationMatrix/matrixUtils.d.ts.map deleted file mode 100644 index aed08908..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/transformationMatrix/matrixUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"matrixUtils.d.ts","sourceRoot":"","sources":["../../../../src/animation/transformationMatrix/matrixUtils.tsx"],"names":[],"mappings":"AAIA,KAAK,gBAAgB,CACnB,CAAC,EACD,CAAC,SAAS,MAAM,EAChB,YAAY,GAAG,CAAC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AC,EACb,UAAU,EAAE,CAAC,GACZ,CAAC,CAQH;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,gBAAgB,GAAG,YAAY,EACnE,UAAU,EAAE,CAAC,EACb,MAAM,EAAE,MAAM,GACb,CAAC,CAOH;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,IAAU,GACf,YAAY,CA2Bd;AAyGD,wBAAgB,eAAe,CAC7B,iBAAiB,EAAE,gBAAgB,GAAG,YAAY,GACjD,4BAA4B,CA6C9B;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,gBAAgB,GAAG,YAAY,GACtC,qCAAqC,CA4BvC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/util.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/util.d.ts deleted file mode 100644 index 41c1e86c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/util.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type { AnimatableValue, AnimationObject, EasingFunction, SharedValue } from '../commonTypes'; -import { ReduceMotion } from '../commonTypes'; -import type { EasingFunctionFactory } from '../Easing'; -import type { StyleLayoutAnimation } from './commonTypes'; -export declare function isValidLayoutAnimationProp(prop: string): boolean; -export declare function assertEasingIsWorklet(easing: EasingFunction | EasingFunctionFactory): void; -export declare function initialUpdaterRun(updater: () => T): T; -interface RecognizedPrefixSuffix { - prefix?: string; - suffix?: string; - strippedValue: number; -} -export declare function recognizePrefixSuffix(value: string | number): RecognizedPrefixSuffix; -export declare function getReduceMotionFromConfig(config?: ReduceMotion): boolean; -/** - * Returns the value that should be assigned to `animation.reduceMotion` for a - * given config. If the config is not defined, `undefined` is returned. - */ -export declare function getReduceMotionForAnimation(config?: ReduceMotion): boolean | undefined; -type AnimationToDecoration = T extends StyleLayoutAnimation ? Record : U | (() => U) | AnimatableValue; -export declare function defineAnimation(starting: AnimationToDecoration, factory: () => T): T; -declare function cancelAnimationWeb(sharedValue: SharedValue): void; -/** - * Lets you cancel a running animation paired to a shared value. The - * cancellation is asynchronous. - * - * @param sharedValue - The shared value of a running animation that you want to - * cancel. - * @see https://docs.swmansion.com/react-native-reanimated/docs/core/cancelAnimation - */ -export declare const cancelAnimation: typeof cancelAnimationWeb; -export {}; -//# sourceMappingURL=util.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/util.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/util.d.ts.map deleted file mode 100644 index 144c13fa..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animation/util.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/animation/util.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,eAAe,EAGf,eAAe,EACf,cAAc,EACd,WAAW,EAEZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,KAAK,EAAwB,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAwChF,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,WAGtD;AAQD,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,cAAc,GAAG,qBAAqB,GAC7C,IAAI,CAqBN;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,KAKpD;AAED,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,GAAG,MAAM,GACrB,sBAAsB,CAiBxB;AAOD,wBAAgB,yBAAyB,CAAC,MAAM,CAAC,EAAE,YAAY,WAK9D;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,CAAC,EAAE,YAAY,uBAShE;AAyXD,KAAK,qBAAqB,CACxB,CAAC,SAAS,eAAe,GAAG,oBAAoB,EAChD,CAAC,SAAS,eAAe,GAAG,oBAAoB,IAC9C,CAAC,SAAS,oBAAoB,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,eAAe,CAAC;AAEpC,wBAAgB,eAAe,CAC7B,CAAC,SAAS,eAAe,GAAG,oBAAoB,EAAE,sCAAsC;AACxF,CAAC,SAAS,eAAe,GAAG,oBAAoB,GAAG,CAAC,EACpD,QAAQ,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAyB5D;AAeD,iBAAS,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAG1E;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,2BAEH,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts index 7bc5b3fb..5a934ca7 100644 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts +++ b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts @@ -1,4 +1,3 @@ -import type { ILayoutAnimationBuilder, LayoutAnimationFunction, StyleProps } from './commonTypes'; -import type { NestedArray } from './createAnimatedComponent/commonTypes'; -export declare function maybeBuild(layoutAnimationOrBuilder: ILayoutAnimationBuilder | LayoutAnimationFunction | Keyframe, style: NestedArray | undefined, displayName: string): LayoutAnimationFunction | Keyframe; -//# sourceMappingURL=animationBuilder.d.ts.map \ No newline at end of file +import type { ILayoutAnimationBuilder, LayoutAnimationFunction } from './reanimated2/layoutReanimation'; +import type { StyleProps } from './reanimated2/commonTypes'; +export declare function maybeBuild(layoutAnimationOrBuilder: ILayoutAnimationBuilder | LayoutAnimationFunction | Keyframe, style: StyleProps | undefined, displayName: string): LayoutAnimationFunction | Keyframe; diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts.map deleted file mode 100644 index a8006a82..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/animationBuilder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationBuilder.d.ts","sourceRoot":"","sources":["../../src/animationBuilder.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EAEvB,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAkEzE,wBAAgB,UAAU,CACxB,wBAAwB,EACpB,uBAAuB,GACvB,uBAAuB,GACvB,QAAQ,EACZ,KAAK,EAAE,WAAW,CAAC,UAAU,CAAC,GAAG,SAAS,EAC1C,WAAW,EAAE,MAAM,GAClB,uBAAuB,GAAG,QAAQ,CAuBpC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/constants.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/constants.d.ts deleted file mode 100644 index 2b517720..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/constants.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare const IS_ANDROID: boolean; -/** @knipIgnore */ -export declare const IS_IOS: boolean; -export declare const IS_WEB: boolean; -export declare const IS_JEST: boolean; -/** @knipIgnore */ -export declare const IS_WINDOWS: boolean; -export declare const IS_WINDOW_AVAILABLE: boolean; -export declare const SHOULD_BE_USE_WEB: boolean; -//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/constants.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/constants.d.ts.map deleted file mode 100644 index 6d227944..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/constants.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU,EAAE,OAAmC,CAAC;AAC7D,kBAAkB;AAClB,eAAO,MAAM,MAAM,EAAE,OAA+B,CAAC;AACrD,eAAO,MAAM,MAAM,EAAE,OAA+B,CAAC;AACrD,eAAO,MAAM,OAAO,EAAE,OAAsC,CAAC;AAC7D,kBAAkB;AAClB,eAAO,MAAM,UAAU,EAAE,OAAmC,CAAC;AAE7D,eAAO,MAAM,mBAAmB,EAAE,OAA6B,CAAC;AAEhE,eAAO,MAAM,iBAAiB,SAAkC,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/errors.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/errors.d.ts deleted file mode 100644 index 0d1131a8..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/errors.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Registers ReanimatedError in the global scope. Register only for Worklet - * runtimes. - */ -export declare function registerReanimatedError(): void; -export declare const ReanimatedError: IReanimatedErrorConstructor; -export interface IReanimatedErrorConstructor extends Error { - new (message?: string): ReanimatedError; - (message?: string): ReanimatedError; - readonly prototype: ReanimatedError; -} -export type ReanimatedError = Error & { - name: 'Reanimated'; -}; -//# sourceMappingURL=errors.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/errors.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/errors.d.ts.map deleted file mode 100644 index 45904d09..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/errors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/common/errors.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,wBAAgB,uBAAuB,SAMtC;AAED,eAAO,MAAM,eAAe,EACI,2BAA2B,CAAC;AAE5D,MAAM,WAAW,2BAA4B,SAAQ,KAAK;IACxD,KAAK,OAAO,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC;IACxC,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC;IACpC,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC;CACrC;AAED,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/index.d.ts deleted file mode 100644 index c10806b7..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from './constants'; -export * from './errors'; -export * from './logger'; -export * from './processors'; -export type * from './types'; -export * from './utils'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/index.d.ts.map deleted file mode 100644 index d42fc487..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,mBAAmB,SAAS,CAAC;AAC7B,cAAc,SAAS,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/logger.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/logger.d.ts deleted file mode 100644 index 2f033f4a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/logger.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -export declare enum ReanimatedLogLevel { - warn = 1, - error = 2 -} -type LogData = { - level: ReanimatedLogLevel; - message: string; -}; -type LogFunction = (data: LogData) => void; -export type LoggerConfig = { - level?: ReanimatedLogLevel; - strict?: boolean; -}; -export type LoggerConfigInternal = { - logFunction: LogFunction; -} & Required; -/** - * Current logger config getter. - * - * @returns The current logger configuration object. - */ -export declare function getLoggerConfig(): LoggerConfigInternal; -/** - * Updates logger configuration. - * - * @param currentConfig - The current logger configuration object. - * @param options - The new logger configuration to apply. - * - * - Level: The minimum log level to display. - * - Strict: Whether to log warnings and errors that are not strict. Defaults to - * false. - */ -export declare function updateLoggerConfig(currentConfig: LoggerConfigInternal, options?: Partial): void; -type LogOptions = { - strict?: boolean; -}; -export declare const logger: { - warn(message: string, options?: LogOptions): void; - error(message: string, options?: LogOptions): void; -}; -export {}; -//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/logger.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/logger.d.ts.map deleted file mode 100644 index 661ac90c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/common/logger.ts"],"names":[],"mappings":"AAQA,oBAAY,kBAAkB;IAC5B,IAAI,IAAI;IACR,KAAK,IAAI;CACV;AAED,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,kBAAkB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,WAAW,CAAC;CAC1B,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;AAoB3B;;;;GAIG;AACH,wBAAgB,eAAe,yBAM9B;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,oBAAoB,EACnC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,QAShC;AAED,KAAK,UAAU,GAAG;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AA6BF,eAAO,MAAM,MAAM;kBACH,MAAM,YAAW,UAAU;mBAI1B,MAAM,YAAW,UAAU;CAI3C,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/colors.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/colors.d.ts deleted file mode 100644 index 22dd5f30..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/colors.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { StyleProps } from '../../commonTypes'; -export declare function processColor(color: unknown): number | null | undefined; -export declare function processColorsInProps(props: StyleProps): void; -//# sourceMappingURL=colors.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/colors.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/colors.d.ts.map deleted file mode 100644 index 0fd8b8da..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/colors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/common/processors/colors.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAgBtE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,QAUrD"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/index.d.ts deleted file mode 100644 index c5fe2eb6..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './colors'; -export * from './shadows'; -export * from './transformOrigin'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/index.d.ts.map deleted file mode 100644 index 665af79a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/processors/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/shadows.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/shadows.d.ts deleted file mode 100644 index b2b14d0d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/shadows.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { BoxShadowValue } from 'react-native'; -import type { ValueProcessor } from '../types'; -export type ProcessedBoxShadowValue = { - offsetX: number; - offsetY: number; - blurRadius?: number; - color?: number; - spreadDistance?: number; - inset?: boolean; -}; -export declare const processBoxShadowNative: ValueProcessor | string, ProcessedBoxShadowValue[]>; -export declare const processBoxShadowWeb: ValueProcessor, string>; -//# sourceMappingURL=shadows.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/shadows.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/shadows.d.ts.map deleted file mode 100644 index ad370152..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/shadows.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shadows.d.ts","sourceRoot":"","sources":["../../../../src/common/processors/shadows.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAY/C,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAUF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CACjD,aAAa,CAAC,cAAc,CAAC,GAAG,MAAM,EACtC,uBAAuB,EAAE,CAuC1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAC9C,MAAM,GAAG,aAAa,CAAC,cAAc,CAAC,EACtC,MAAM,CA2BP,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/transformOrigin.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/transformOrigin.d.ts deleted file mode 100644 index 0298cefa..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/transformOrigin.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TransformOrigin, ValueProcessor } from '../types'; -type Axis = 'x' | 'y' | 'z'; -export declare const ERROR_MESSAGES: { - invalidTransformOrigin: (value: TransformOrigin) => string; - invalidValue: (value: string | number, axis: Axis, origin: TransformOrigin, isArray: boolean) => string; -}; -export declare const processTransformOrigin: ValueProcessor; -export {}; -//# sourceMappingURL=transformOrigin.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/transformOrigin.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/transformOrigin.d.ts.map deleted file mode 100644 index b20c5427..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/processors/transformOrigin.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transformOrigin.d.ts","sourceRoot":"","sources":["../../../../src/common/processors/transformOrigin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEhE,KAAK,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AA+C5B,eAAO,MAAM,cAAc;oCACO,eAAe;0BAGtC,MAAM,GAAG,MAAM,QAChB,IAAI,UACF,eAAe,WACd,OAAO;CAKnB,CAAC;AAoDF,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,eAAe,CAgClE,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/types.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/types.d.ts deleted file mode 100644 index 5d49f92a..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/types.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export type Maybe = T | null | undefined; -export type ValueProcessor = (value: V) => Maybe; -export type TransformOrigin = string | Array; -export type NormalizedTransformOrigin = [ - `${number}%` | number, - `${number}%` | number, - number -]; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/types.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/types.d.ts.map deleted file mode 100644 index f9872431..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/common/types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAE5C,MAAM,MAAM,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;AAE9D,MAAM,MAAM,yBAAyB,GAAG;IACtC,GAAG,MAAM,GAAG,GAAG,MAAM;IACrB,GAAG,MAAM,GAAG,GAAG,MAAM;IACrB,MAAM;CACP,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/guards.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/guards.d.ts deleted file mode 100644 index 776dfb5d..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/guards.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const isLength: (value: string) => boolean; -//# sourceMappingURL=guards.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/guards.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/guards.d.ts.map deleted file mode 100644 index c3c6da94..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/guards.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../src/common/utils/guards.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,YAErC,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/index.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/index.d.ts deleted file mode 100644 index 46e34122..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './guards'; -export * from './parsers'; -export * from './suffix'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/index.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/index.d.ts.map deleted file mode 100644 index dca6c54c..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/utils/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/parsers.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/parsers.d.ts deleted file mode 100644 index 24dee4d2..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/parsers.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { BoxShadowValue } from 'react-native'; -export declare function parseBoxShadowString(value: string): BoxShadowValue[]; -//# sourceMappingURL=parsers.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/parsers.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/parsers.d.ts.map deleted file mode 100644 index 87520e48..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/parsers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/common/utils/parsers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAcnD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,oBA4BjD"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/suffix.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/suffix.d.ts deleted file mode 100644 index 757e9074..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/suffix.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function hasSuffix(value: unknown): value is string; -export declare function maybeAddSuffix(value: unknown, suffix: string): string; -//# sourceMappingURL=suffix.d.ts.map \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/suffix.d.ts.map b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/suffix.d.ts.map deleted file mode 100644 index d10bf2f4..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/common/utils/suffix.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"suffix.d.ts","sourceRoot":"","sources":["../../../../src/common/utils/suffix.ts"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEzD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAE5D"} \ No newline at end of file diff --git a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/commonTypes.d.ts b/frontend-admin/node_modules/react-native-reanimated/lib/typescript/commonTypes.d.ts deleted file mode 100644 index 16829191..00000000 --- a/frontend-admin/node_modules/react-native-reanimated/lib/typescript/commonTypes.d.ts +++ /dev/null @@ -1,319 +0,0 @@ -import type { ComponentRef, RefObject } from 'react'; -import type { ImageStyle, NativeMethods, ScrollResponderMixin, ScrollViewComponent, TextStyle, TransformsStyle, View, ViewStyle } from 'react-native'; -import type { SerializableRef, WorkletFunction } from 'react-native-worklets'; -import type { Maybe } from './common/types'; -import type { CSSAnimationProperties, CSSTransitionProperties } from './css'; -import type { AnyRecord } from './css/types'; -import type { EasingFunctionFactory } from './Easing'; -type LayoutAnimationOptions = 'originX' | 'originY' | 'width' | 'height' | 'borderRadius' | 'globalOriginX' | 'globalOriginY'; -type CurrentLayoutAnimationValues = { - [K in LayoutAnimationOptions as `current${Capitalize}`]: number; -}; -type TargetLayoutAnimationValues = { - [K in LayoutAnimationOptions as `target${Capitalize}`]: number; -}; -interface WindowDimensions { - windowWidth: number; - windowHeight: number; -} -export interface KeyframeProps extends StyleProps { - easing?: EasingFunction | EasingFunctionFactory; -} -type FirstFrame = { - 0: KeyframeProps & { - easing?: never; - }; - from?: never; -} | { - 0?: never; - from: KeyframeProps & { - easing?: never; - }; -}; -type LastFrame = { - 100?: KeyframeProps; - to?: never; -} | { - 100?: never; - to: KeyframeProps; -}; -export type ValidKeyframeProps = FirstFrame & LastFrame & Record; -export type MaybeInvalidKeyframeProps = Record & { - to?: KeyframeProps; - from?: KeyframeProps; -}; -export type LayoutAnimation = { - initialValues: StyleProps; - animations: StyleProps; - callback?: (finished: boolean) => void; -}; -export type AnimationFunction = (a?: any, b?: any, c?: any) => any; -export type EntryAnimationsValues = TargetLayoutAnimationValues & WindowDimensions; -export type ExitAnimationsValues = CurrentLayoutAnimationValues & WindowDimensions; -export type EntryExitAnimationFunction = ((targetValues: EntryAnimationsValues) => LayoutAnimation) | ((targetValues: ExitAnimationsValues) => LayoutAnimation) | (() => LayoutAnimation); -export type AnimationConfigFunction = (targetValues: T) => LayoutAnimation; -export type LayoutAnimationValues = CurrentLayoutAnimationValues & TargetLayoutAnimationValues & WindowDimensions; -export declare enum LayoutAnimationType { - ENTERING = 1, - EXITING = 2, - LAYOUT = 3 -} -export type LayoutAnimationFunction = (targetValues: LayoutAnimationValues) => LayoutAnimation; -export type LayoutAnimationStartFunction = (tag: number, type: LayoutAnimationType, yogaValues: Partial, config: (arg: Partial) => LayoutAnimation) => void; -export interface ILayoutAnimationBuilder { - build: () => LayoutAnimationFunction; -} -export interface BaseLayoutAnimationConfig { - duration?: number; - easing?: EasingFunction | EasingFunctionFactory; - type?: AnimationFunction; - damping?: number; - dampingRatio?: number; - mass?: number; - stiffness?: number; - overshootClamping?: number; - energyThreshold?: number; -} -export interface BaseBuilderAnimationConfig extends BaseLayoutAnimationConfig { - rotate?: number | string; -} -export type LayoutAnimationAndConfig = [ - AnimationFunction, - BaseBuilderAnimationConfig -]; -export interface IEntryExitAnimationBuilder { - build: () => EntryExitAnimationFunction; -} -export interface IEntryAnimationBuilder { - build: () => AnimationConfigFunction; -} -export interface IExitAnimationBuilder { - build: () => AnimationConfigFunction; -} -/** - * Used to configure the `.defaultTransitionType()` shared transition modifier. - * - * @experimental - */ -export type EntryExitAnimationsValues = EntryAnimationsValues | ExitAnimationsValues; -export type StylePropsWithArrayTransform = StyleProps & { - transform?: TransformArrayItem[]; -}; -export interface LayoutAnimationBatchItem { - viewTag: number; - type: LayoutAnimationType; - config: SerializableRef | undefined; -} -export type RequiredKeys = T & Required>; -export interface StyleProps extends ViewStyle, TextStyle { - originX?: number; - originY?: number; - [key: string]: any; -} -/** - * A value that can be used both on the [JavaScript - * thread](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#javascript-thread) - * and the [UI - * thread](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#ui-thread). - * - * Shared values are defined using - * [useSharedValue](https://docs.swmansion.com/react-native-reanimated/docs/core/useSharedValue) - * hook. You access and modify shared values by their `.value` property. - */ -export interface SharedValue { - value: Value; - get(): Value; - set(value: Value | ((value: Value) => Value)): void; - addListener: (listenerID: number, listener: (value: Value) => void) => void; - removeListener: (listenerID: number) => void; - modify: (modifier?: (value: T) => T, forceUpdate?: boolean) => void; -} -/** - * Due to pattern of `MaybeSharedValue` type present in `AnimatedProps` - * (`AnimatedStyle`), contravariance breaks types for animated styles etc. - * Instead of refactoring the code with small chances of success, we just - * disable contravariance for `SharedValue` in this problematic case. - */ -type SharedValueDisableContravariance = Omit, 'set'>; -export interface Mutable extends SharedValue { - _isReanimatedSharedValue: true; - _animation?: AnimationObject | null; - /** - * `_value` prop should only be accessed by the `valueSetter` implementation - * which may make the decision about updating the mutable value depending on - * the provided new value. All other places should only attempt to modify the - * mutable by assigning to `value` prop directly or by calling the `set` - * method. - */ - _value: Value; - /** - * Defined only when enabled with a feature flag - * `USE_SYNCHRONIZABLE_FOR_MUTABLES`. - */ - setDirty?: (dirty: boolean) => void; -} -export type MapperRawInputs = unknown[]; -export type MapperOutputs = SharedValue[]; -export type MapperRegistry = { - start: (mapperID: number, worklet: (forceUpdate?: boolean) => void, inputs: MapperRawInputs, outputs?: MapperOutputs) => void; - stop: (mapperID: number) => void; -}; -export type AnimatedPropsAdapterFunction = (props: Record) => void; -export type AnimatedPropsAdapterWorklet = WorkletFunction<[ - props: Record -], void>; -export interface NestedObject { - [key: string]: NestedObjectValues; -} -export type NestedObjectValues = T | Array> | NestedObject; -type Animatable = number | string | Array; -export type AnimatableValueObject = { - [key: string]: Animatable; -}; -export type AnimatableValue = Animatable | AnimatableValueObject; -export interface AnimationObject { - [key: string]: any; - callback?: AnimationCallback; - current?: T; - toValue?: AnimationObject['current']; - startValue?: AnimationObject['current']; - finished?: boolean; - strippedCurrent?: number; - cancelled?: boolean; - reduceMotion?: boolean; - __prefix?: string; - __suffix?: string; - onFrame: (animation: any, timestamp: Timestamp) => boolean; - onStart: (nextAnimation: any, current: any, timestamp: Timestamp, previousAnimation: any) => void; -} -export interface Animation extends AnimationObject { - onFrame: (animation: T, timestamp: Timestamp) => boolean; - onStart: (nextAnimation: T, current: AnimatableValue, timestamp: Timestamp, previousAnimation: Animation | null | T) => void; -} -export declare enum SensorType { - ACCELEROMETER = 1, - GYROSCOPE = 2, - GRAVITY = 3, - MAGNETIC_FIELD = 4, - ROTATION = 5 -} -export declare enum IOSReferenceFrame { - XArbitraryZVertical = 0, - XArbitraryCorrectedZVertical = 1, - XMagneticNorthZVertical = 2, - XTrueNorthZVertical = 3, - Auto = 4 -} -export type SensorConfig = { - interval: number | 'auto'; - adjustToInterfaceOrientation: boolean; - iosReferenceFrame: IOSReferenceFrame; -}; -export type AnimatedSensor = { - sensor: SharedValue; - unregister: () => void; - isAvailable: boolean; - config: SensorConfig; -}; -/** - * A function called upon animation completion. If the animation is cancelled, - * the callback will receive `false` as the argument; otherwise, it will receive - * `true`. - */ -export type AnimationCallback = (finished?: boolean, current?: AnimatableValue) => void; -export type Timestamp = number; -export type Value3D = { - x: number; - y: number; - z: number; - interfaceOrientation: InterfaceOrientation; -}; -export type ValueRotation = { - qw: number; - qx: number; - qy: number; - qz: number; - yaw: number; - pitch: number; - roll: number; - interfaceOrientation: InterfaceOrientation; -}; -export declare enum InterfaceOrientation { - ROTATION_0 = 0, - ROTATION_90 = 90, - ROTATION_180 = 180, - ROTATION_270 = 270 -} -export type ShadowNodeWrapper = { - __nativeStateShadowNodeWrapper: never; -}; -export declare enum KeyboardState { - UNKNOWN = 0, - OPENING = 1, - OPEN = 2, - CLOSING = 3, - CLOSED = 4 -} -export type AnimatedKeyboardInfo = { - height: SharedValue; - state: SharedValue; -}; -/** - * @param x - A number representing X coordinate relative to the parent - * component. - * @param y - A number representing Y coordinate relative to the parent - * component. - * @param width - A number representing the width of the component. - * @param height - A number representing the height of the component. - * @param pageX - A number representing X coordinate relative to the screen. - * @param pageY - A number representing Y coordinate relative to the screen. - * @see https://docs.swmansion.com/react-native-reanimated/docs/advanced/measure#returns - */ -export interface MeasuredDimensions { - x: number; - y: number; - width: number; - height: number; - pageX: number; - pageY: number; -} -export interface AnimatedKeyboardOptions { - isStatusBarTranslucentAndroid?: boolean; - isNavigationBarTranslucentAndroid?: boolean; -} -/** - * @param System - If the `Reduce motion` accessibility setting is enabled on - * the device, disable the animation. Otherwise, enable the animation. - * @param Always - Disable the animation. - * @param Never - Enable the animation. - * @see https://docs.swmansion.com/react-native-reanimated/docs/guides/accessibility - */ -export declare enum ReduceMotion { - System = "system", - Always = "always", - Never = "never" -} -export type EasingFunction = (t: number) => number; -export type TransformArrayItem = Extract>[number]; -type MaybeSharedValue = Value | (Value extends AnimatableValue ? SharedValueDisableContravariance : never); -type MaybeSharedValueRecursive = Value extends readonly (infer Item)[] ? SharedValueDisableContravariance | (MaybeSharedValueRecursive | Item)[] : Value extends object ? SharedValueDisableContravariance | { - [Key in keyof Value]: MaybeSharedValueRecursive | Value[Key]; -} : MaybeSharedValue; -type DefaultStyle = ViewStyle & ImageStyle & TextStyle; -export type AnimatedStyle