decord/source/__polyfill/00xxx/module_381.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

283 lines
8.1 KiB
JavaScript

// Module ID: 381
// Function ID: 382
// Dependencies: [32, 41, 42, 93, 95, 96, 98, 27, 382, 383, 367, 366]
// Module 381
import _modAll27 from "module_27" /* 27 */;
import _modDef366 from "module_366" /* 366 */;
import _slicedToArray from "module_32" /* 32 */;
import _classCallCheck from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import hasOwnProperty_mod from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _get from "_get" /* 96 */;
import _inherits from "_inherits" /* 98 */;
const AnimatedStyle = importDefault;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
let hasOwnProperty = hasOwnProperty_mod;
class AnimatedStyle {
constructor(arg0, arg1, arg2, arg3, arg4) {
self = this;
tmp = closure_4(this, AnimatedStyle);
items = [];
items[0] = module;
tmp2 = metroRequire;
obj = metroRequire(AnimatedStyle);
tmp3 = hasOwnProperty;
if (closure_8()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp3Result = tmp3(self, constructResult);
tmp3Result._nodeKeys = global;
tmp3Result._nodes = arg1;
tmp3Result._style = importDefault;
return tmp3Result;
}
}
_inherits(AnimatedStyle, _modDef366);
const entry = {
key: "__getValue",
value: function __getValue() {
const self = this;
const obj = {};
const keys = Object.keys(this._style);
for (let num = 0; num < length; num = num + 1) {
let tmp = keys[num];
let obj2 = self._style[tmp];
if (obj2 instanceof AnimatedStyle(367)) {
obj[tmp] = obj2.__getValue();
} else {
obj[tmp] = obj2;
}
}
return self.__getValueForStyle(obj);
}
};
let items = [
entry,
{
key: "__getValueForStyle",
value: function __getValueForStyle(arg0) {
return arg0;
}
},
{
key: "__replaceAnimatedNodeWithValues",
value: function __replaceAnimatedNodeWithValues(arg0) {
let obj;
let tmp;
const keys = Object.keys(arg0);
let num = 0;
if (0 < keys.length) {
while (true) {
tmp = keys[num];
obj = this._style[tmp];
if ("transform" === tmp) {
if (obj instanceof AnimatedStyle(383)) {
break;
}
}
let tmp5 = AnimatedStyle;
if (obj instanceof AnimatedStyle(382)) {
arg0[tmp] = obj.__getValueWithStaticObject(arg0[tmp]);
} else if (obj instanceof tmp5(367)) {
arg0[tmp] = obj.__getValue();
}
num = num + 1;
}
const _Array = Array;
arg0[tmp] = obj.__getValueWithStaticTransforms(Array.isArray(arg0[tmp]) ? arg0[tmp] : []);
}
}
},
{
key: "__getAnimatedValue",
value: function __getAnimatedValue() {
const obj = {};
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj2 = _nodes[num];
obj[this._nodeKeys[num]] = obj2.__getAnimatedValue();
}
return obj;
}
},
{
key: "__attach",
value: function __attach() {
const self = this;
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj = _nodes[num];
let __addChildResult = obj.__addChild(self);
}
fn = _get(metroRequire(AnimatedStyle.prototype), "__attach", self);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
fn([]);
}
},
{
key: "__detach",
value: function __detach() {
const self = this;
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj = _nodes[num];
let __removeChildResult = obj.__removeChild(self);
}
fn = _get(metroRequire(AnimatedStyle.prototype), "__detach", self);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
fn([]);
}
},
{
key: "__makeNative",
value: function __makeNative(arg0) {
const self = this;
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj = _nodes[num];
let __makeNativeResult = obj.__makeNative(arg0);
}
fn = _get(metroRequire(AnimatedStyle.prototype), "__makeNative", self);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
const items = [arg0];
fn(items);
}
},
{
key: "__getNativeConfig",
value: function __getNativeConfig() {
const self = this;
const obj = {};
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj2 = _nodes[num];
let __makeNativeResult = obj2.__makeNative(tmp);
obj[this._nodeKeys[num]] = obj2.__getNativeTag();
}
return { type: "style", style: obj, debugID: self.__getDebugID() };
}
}
];
const entry1 = {
key: "from",
value: function from(arg0, arg1, arg2) {
let tmp2;
if (null == arg0) {
return null;
} else {
const items = [];
const items1 = [];
const obj3 = {};
let construct = globalThis;
const _Object = Object;
const keys = Object.keys(arg0);
let num = 0;
if (0 < keys.length) {
while (true) {
let tmp = keys[num];
tmp2 = arg0[tmp];
if (null != arg1) {
if (!c10(arg1, tmp)) {
obj3[tmp] = tmp2;
}
num = num + 1;
}
if (null != tmp2) {
if ("transform" === tmp) {
break;
}
}
let fromResult = tmp2;
if (!(tmp2 instanceof AnimatedStyle(367))) {
let obj = AnimatedStyle(382);
fromResult = obj.from(tmp2);
}
if (null == fromResult) {
obj3[tmp] = tmp2;
} else {
let arr = items.push(tmp);
let arr3 = items1.push(fromResult);
obj3[tmp] = fromResult;
}
}
let tmp12 = AnimatedStyle;
let from = dependencyMap;
if (obj2.shouldUseAnimatedObjectForTransform()) {
tmp12 = tmp12(382);
from = tmp12.from;
let fromResult1 = from(tmp2);
} else {
fromResult1 = tmp12(383).from(tmp2);
const tmp12Result = tmp12(383);
}
obj2 = _modAll27;
}
const items2 = [items, items1, obj3];
const arr2 = _slicedToArray(items2, 3)[1];
if (0 === arr2.length) {
return null;
} else {
const obj4 = Object.create(AnimatedStyle.prototype);
_classCallCheck(obj4, AnimatedStyle);
const items3 = [undefined];
let constructor = metroRequire;
const obj5 = metroRequire(AnimatedStyle);
if (_isNativeReflectConstruct()) {
const _Reflect = construct.Reflect;
construct = _Reflect.construct;
constructor = constructor(obj4).constructor;
let constructResult = construct(obj5, items3, constructor);
} else {
constructResult = obj5.apply(obj4, items3);
}
const tmp29Result = hasOwnProperty(obj4, constructResult);
tmp29Result._nodeKeys = tmp19;
tmp29Result._nodes = arr2;
tmp29Result._style = tmp20;
}
const tmp18 = _slicedToArray(items2, 3);
}
}
};
let items1 = [entry1];
hasOwnProperty = Object.prototype.hasOwnProperty;
let fn = Object.hasOwn;
if (fn == null) {
fn = (arg0, arg1) => {
const call = hasOwnProperty.call;
return typeof call === "unknown" ? hasOwnProperty(arg1) : call(arg0, arg1);
};
}
export default _createClass(AnimatedStyle, items, items1);