2026-09-25 08:38:05 +00:00
|
|
|
// Module ID: 8916
|
|
|
|
|
// Function ID: 8917
|
2026-09-24 10:59:02 +00:00
|
|
|
// Name: getIFrameAllowAttributes
|
|
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-25 08:38:05 +00:00
|
|
|
// Module 8916 (getIFrameAllowAttributes)
|
2026-09-24 10:59:02 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
let closure_0 = ["autoplay", "encrypted-media"];
|
|
|
|
|
let closure_1 = ["accelerometer", "gyroscope"];
|
|
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/getIFrameAllowAttributes.tsx");
|
|
|
|
|
|
|
|
|
|
export default function getIFrameAllowAttributes(allowMotionSensors) {
|
|
|
|
|
let obj = closure_0;
|
|
|
|
|
if (true === allowMotionSensors.allowMotionSensors) {
|
|
|
|
|
const items = [];
|
|
|
|
|
HermesBuiltin.arraySpread(closure_1, HermesBuiltin.arraySpread(tmp, 0));
|
|
|
|
|
obj = items;
|
|
|
|
|
}
|
|
|
|
|
return obj.join("; ");
|
|
|
|
|
};
|