2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 254
|
|
|
|
|
// Function ID: 3318
|
|
|
|
|
// Name: setStyleAttributePreprocessor
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [96, 255, 147, 73]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 254 (setStyleAttributePreprocessor)
|
2026-07-23 10:11:24 +00:00
|
|
|
let roundToNearestPixelResult = require("PixelRatio").default.roundToNearestPixel(0.4);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (0 === roundToNearestPixelResult) {
|
2026-07-23 10:11:24 +00:00
|
|
|
roundToNearestPixelResult = 1 / require("PixelRatio").default.get();
|
|
|
|
|
const _default2 = require("PixelRatio").default;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = { position: "absolute", left: 0, right: 0, top: 0, bottom: 0 };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { hairlineWidth: roundToNearestPixelResult };
|
|
|
|
|
obj.absoluteFill = obj;
|
|
|
|
|
obj.absoluteFillObject = obj;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.compose = require("composeStyles");
|
|
|
|
|
obj.flatten = require("flattenStyle");
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.setStyleAttributePreprocessor = function setStyleAttributePreprocessor(arg0, process) {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (true === require(73).default[arg0]) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = { process };
|
|
|
|
|
let merged = obj;
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if ("object" !== typeof require(73).default[arg0]) {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _console = console;
|
|
|
|
|
const _HermesInternal = HermesInternal;
|
|
|
|
|
console.error("" + arg0 + " is not a valid style attribute");
|
|
|
|
|
} else {
|
|
|
|
|
const _Object = Object;
|
|
|
|
|
obj = { process };
|
2026-07-23 10:11:24 +00:00
|
|
|
merged = Object.assign({}, require(73).default[arg0], obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
require(73).default[arg0] = merged;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
obj.create = function create(arg0) {
|
|
|
|
|
return arg0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default obj;
|