2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 9787
|
|
|
|
|
// Function ID: 9788
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getIFrameSandboxAttributes
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 9787 (getIFrameSandboxAttributes)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_0 = ["allow-pointer-lock", "allow-scripts", "allow-same-origin", "allow-forms"];
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/activities/utils/getIFrameSandboxAttributes.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getIFrameSandboxAttributes(allowPopups) {
|
|
|
|
|
let obj = closure_0;
|
|
|
|
|
if (allowPopups.allowPopups) {
|
|
|
|
|
const items = [, ];
|
2026-07-29 08:29:29 +00:00
|
|
|
const arraySpreadResult = HermesBuiltin.arraySpread(tmp, 0);
|
2026-07-20 16:05:17 +00:00
|
|
|
items[arraySpreadResult] = "allow-popups";
|
|
|
|
|
items[arraySpreadResult + 1] = "allow-popups-to-escape-sandbox";
|
|
|
|
|
obj = items;
|
|
|
|
|
}
|
|
|
|
|
return obj.join(" ");
|
|
|
|
|
};
|