decord/source/modules/auth/native/components/PromotionalEmailCheckBox.tsx

56 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 14873
// Function ID: 113287
2026-07-20 16:05:17 +00:00
// Name: PromotionalEmailCheckBox
2026-07-28 08:39:19 +00:00
// Dependencies: [31, 27, 5624, 33, 4165, 3883, 1212, 7613, 4161, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 14873 (PromotionalEmailCheckBox)
2026-07-23 10:11:24 +00:00
import "result";
import get_ActivityIndicator from "get ActivityIndicator";
import setPromoEmailConsentState from "setPromoEmailConsentState";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_2;
let closure_3;
let closure_4;
let closure_5;
let closure_6;
let closure_7;
let require = arg1;
({ View: closure_2, Pressable: closure_3 } = get_ActivityIndicator);
({ usePromoEmailConsentStore: closure_4, setPromoEmailConsentChecked: closure_5 } = setPromoEmailConsentState);
({ jsx: closure_6, jsxs: closure_7 } = jsxProd);
let closure_8 = _createForOfIteratorHelperLoose.createStyles({ checkboxRow: { flexDirection: "row", alignItems: "flex-start", gap: 8 }, checkboxLabel: { flex: 1 } });
const result = require("setPromoEmailConsentState").fileFinishedImporting("modules/auth/native/components/PromotionalEmailCheckBox.tsx");
2026-07-20 16:05:17 +00:00
export default function PromotionalEmailCheckBox(style) {
const tmp = callback4();
const tmp3 = callback((checked) => checked.checked);
2026-07-23 10:11:24 +00:00
const require = tmp3;
2026-07-28 08:39:19 +00:00
let obj = require(3883) /* useCheckboxA11yNative */;
2026-07-20 16:05:17 +00:00
const checkboxA11yNative = obj.useCheckboxA11yNative({ checked: tmp3 });
let tmp7 = null;
if (tmp2) {
obj = { style: style.style };
obj = { accessibilityRole: tmp5 };
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.accessibilityLabel = intl.string(require(1212) /* getSystemLocale */.t.ylFCLt);
2026-07-20 16:05:17 +00:00
obj.accessibilityState = tmp6;
obj.onPress = function onPress() {
2026-07-23 10:11:24 +00:00
return outer1_5(!closure_0);
2026-07-20 16:05:17 +00:00
};
obj.style = tmp.checkboxRow;
const obj1 = { checked: tmp3 };
2026-07-28 08:39:19 +00:00
const items = [callback2(require(7613) /* FormCheckbox */.FormCheckbox, obj1), ];
2026-07-23 10:11:24 +00:00
const obj2 = { variant: "text-xs/medium", color: "text-muted", style: tmp.checkboxLabel };
const intl2 = require(1212) /* getSystemLocale */.intl;
obj2.children = intl2.string(require(1212) /* getSystemLocale */.t.ylFCLt);
2026-07-28 08:39:19 +00:00
items[1] = callback2(require(4161) /* Text */.Text, obj2);
2026-07-20 16:05:17 +00:00
obj.children = items;
obj.children = callback3(closure_3, obj);
tmp7 = callback2(closure_2, obj);
}
return tmp7;
};