2026-10-10 08:08:14 +00:00
|
|
|
// Module ID: 10901
|
|
|
|
|
// Function ID: 10902
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ZoomLayout
|
2026-10-10 08:08:14 +00:00
|
|
|
// Dependencies: [109, 19, 17, 21, 558, 576, 10902, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-10 08:08:14 +00:00
|
|
|
// Module 10901 (ZoomLayout)
|
2026-10-03 08:58:59 +00:00
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-10-10 08:08:14 +00:00
|
|
|
import ZoomLayoutNativeComponentDefault from "ZoomLayoutNativeComponent" /* 10902 */;
|
2026-10-08 09:57:35 +00:00
|
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-08 09:57:35 +00:00
|
|
|
let closure_3 = ["ref"];
|
2026-10-03 08:58:59 +00:00
|
|
|
const PixelRatio = react_native.PixelRatio;
|
|
|
|
|
const jsx = Fragment.jsx;
|
2026-10-08 09:57:35 +00:00
|
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function ZoomLayout(ref) {
|
|
|
|
|
let ref1;
|
|
|
|
|
let tmp11;
|
|
|
|
|
let tmp3;
|
|
|
|
|
let tmp4;
|
|
|
|
|
let tmp9;
|
2026-10-03 08:58:59 +00:00
|
|
|
let tmp = dependencyMap;
|
2026-10-08 09:57:35 +00:00
|
|
|
let obj = ref1(576);
|
|
|
|
|
const cResult = obj.c(6);
|
|
|
|
|
if (cResult[0] !== ref) {
|
|
|
|
|
ref = ref.ref;
|
|
|
|
|
const tmp7 = _objectWithoutProperties(ref, closure_3);
|
|
|
|
|
let num = 0;
|
|
|
|
|
cResult[0] = ref;
|
|
|
|
|
cResult[1] = tmp7;
|
|
|
|
|
cResult[2] = ref;
|
|
|
|
|
tmp4 = ref;
|
|
|
|
|
tmp3 = tmp7;
|
|
|
|
|
} else {
|
|
|
|
|
tmp3 = cResult[1];
|
|
|
|
|
tmp4 = cResult[2];
|
|
|
|
|
}
|
|
|
|
|
ref1 = react.useRef(null);
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj2 = react;
|
2026-10-08 09:57:35 +00:00
|
|
|
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
const fn = function z() {
|
|
|
|
|
let ref;
|
2026-10-03 08:58:59 +00:00
|
|
|
let obj = {
|
|
|
|
|
zoomTo(arg0) {
|
|
|
|
|
let animated;
|
|
|
|
|
let scale;
|
|
|
|
|
let x;
|
|
|
|
|
let y;
|
|
|
|
|
({ scale, animated } = arg0);
|
|
|
|
|
let num = 2;
|
|
|
|
|
({ x, y } = arg0);
|
|
|
|
|
if (undefined !== scale) {
|
|
|
|
|
num = scale;
|
|
|
|
|
}
|
|
|
|
|
if (null != ref.current) {
|
|
|
|
|
const value = PixelRatio.get();
|
|
|
|
|
const result = x * value;
|
|
|
|
|
const result1 = y * value;
|
2026-10-08 09:57:35 +00:00
|
|
|
const Commands = ref1(dependencyMap[6]).Commands;
|
2026-10-03 08:58:59 +00:00
|
|
|
Commands.zoomTo(tmp2.current, result / num - result, result1 / num - result1, num, undefined === animated || animated);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
unzoom(arg0) {
|
|
|
|
|
let obj = arg0;
|
|
|
|
|
if (undefined === arg0) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
const animated = obj.animated;
|
|
|
|
|
const tmp = undefined === animated || animated;
|
|
|
|
|
if (null != ref.current) {
|
2026-10-08 09:57:35 +00:00
|
|
|
const Commands = ref1(dependencyMap[6]).Commands;
|
2026-10-03 08:58:59 +00:00
|
|
|
Commands.unzoom(tmp2.current, tmp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return obj;
|
|
|
|
|
};
|
2026-10-08 09:57:35 +00:00
|
|
|
cResult[3] = fn;
|
|
|
|
|
tmp9 = fn;
|
2026-10-03 08:58:59 +00:00
|
|
|
} else {
|
2026-10-08 09:57:35 +00:00
|
|
|
tmp9 = cResult[3];
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
2026-10-08 09:57:35 +00:00
|
|
|
const imperativeHandle = obj2.useImperativeHandle(tmp4, tmp9);
|
|
|
|
|
if (cResult[4] !== tmp3) {
|
2026-10-03 08:58:59 +00:00
|
|
|
ZoomLayoutNativeComponentDefault;
|
2026-10-08 09:57:35 +00:00
|
|
|
const merged = Object.assign(tmp3);
|
|
|
|
|
const tmp18 = <tmp14 ref={ref1} />;
|
|
|
|
|
cResult[4] = tmp3;
|
|
|
|
|
cResult[5] = tmp18;
|
|
|
|
|
tmp11 = tmp18;
|
2026-10-03 08:58:59 +00:00
|
|
|
} else {
|
2026-10-08 09:57:35 +00:00
|
|
|
tmp11 = cResult[5];
|
2026-10-03 08:58:59 +00:00
|
|
|
}
|
2026-10-08 09:57:35 +00:00
|
|
|
return tmp11;
|
|
|
|
|
}) : (function ZoomLayout(ref) {
|
|
|
|
|
ref = ref.ref;
|
|
|
|
|
const merged = Object.assign(ref, Object.assign({ ref: 0 }));
|
|
|
|
|
const ref1 = react.useRef(null);
|
2026-10-03 08:58:59 +00:00
|
|
|
const imperativeHandle = react.useImperativeHandle(ref, () => {
|
2026-10-08 09:57:35 +00:00
|
|
|
let ref;
|
2026-10-03 08:58:59 +00:00
|
|
|
let obj = {
|
|
|
|
|
zoomTo(scale) {
|
|
|
|
|
let x;
|
|
|
|
|
let y;
|
|
|
|
|
let num = scale.scale;
|
|
|
|
|
({ x, y } = scale);
|
|
|
|
|
if (num === undefined) {
|
|
|
|
|
num = 2;
|
|
|
|
|
}
|
|
|
|
|
let flag = scale.animated;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
if (null != ref.current) {
|
|
|
|
|
const value = PixelRatio.get();
|
|
|
|
|
const result = x * value;
|
|
|
|
|
const result1 = y * value;
|
2026-10-08 09:57:35 +00:00
|
|
|
const Commands = ref1(dependencyMap[6]).Commands;
|
2026-10-03 08:58:59 +00:00
|
|
|
Commands.zoomTo(tmp.current, result / num - result, result1 / num - result1, num, flag);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
unzoom() {
|
|
|
|
|
let obj = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
let flag = obj.animated;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = true;
|
|
|
|
|
}
|
|
|
|
|
if (null != ref.current) {
|
2026-10-08 09:57:35 +00:00
|
|
|
const Commands = ref1(dependencyMap[6]).Commands;
|
2026-10-03 08:58:59 +00:00
|
|
|
Commands.unzoom(tmp.current, flag);
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
};
|
|
|
|
|
return obj;
|
|
|
|
|
});
|
|
|
|
|
ZoomLayoutNativeComponentDefault;
|
2026-10-08 09:57:35 +00:00
|
|
|
const merged1 = Object.assign(merged);
|
|
|
|
|
return <tmp4 ref={ref1} />;
|
|
|
|
|
});
|
2026-10-03 08:58:59 +00:00
|
|
|
let result = size.fileFinishedImporting("modules/zoom_layout/ZoomLayout.android.tsx");
|
|
|
|
|
|
2026-10-08 09:57:35 +00:00
|
|
|
export default tmp2;
|