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

56 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 15576
// Function ID: 15577
2026-07-20 16:05:17 +00:00
// Name: PromotionalEmailCheckBox
2026-09-01 10:26:29 +00:00
// Dependencies: [19, 17, 6053, 21, 4478, 4205, 1236, 7684, 4474, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-09-01 10:26:29 +00:00
// Module 15576 (PromotionalEmailCheckBox)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-09-01 10:26:29 +00:00
import setPromoEmailConsentState from "setPromoEmailConsentState" /* 6053 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
2026-09-01 10:26:29 +00:00
import createCacheKey from "createCacheKey" /* 4478 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ View: obj1, Pressable: c3 } = get_ActivityIndicator);
({ usePromoEmailConsentStore: c4, setPromoEmailConsentChecked: c5 } = setPromoEmailConsentState);
({ jsx: closure_6, jsxs: error } = jsxProd);
let closure_8 = createCacheKey.createStyles({ checkboxRow: { flexDirection: "row", alignItems: "flex-start", gap: 8 }, checkboxLabel: { flex: 1 } });
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/auth/native/components/PromotionalEmailCheckBox.tsx");
2026-07-20 16:05:17 +00:00
export default function PromotionalEmailCheckBox(style) {
2026-07-29 08:29:29 +00:00
let _require;
2026-07-20 16:05:17 +00:00
const tmp = callback4();
const tmp3 = callback((checked) => checked.checked);
2026-07-29 08:29:29 +00:00
_require = tmp3;
2026-09-01 10:26:29 +00:00
let obj = _require(4205);
2026-07-20 16:05:17 +00:00
const checkboxA11yNative = obj.useCheckboxA11yNative({ checked: tmp3 });
2026-07-29 08:29:29 +00:00
let tmp9 = null;
2026-07-20 16:05:17 +00:00
if (tmp2) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = style.style;
obj = { accessibilityRole: null, accessibilityLabel: null, accessibilityState: null, onPress: null, style: null, children: null };
obj[0] = tmp7;
const intl = tmp4(1236).intl;
obj[1] = intl.string(tmp4(1236).t.ylFCLt);
obj[2] = tmp8;
obj[3] = function onPress() {
2026-08-24 06:08:38 +00:00
return closure_1_5(!closure_0);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[4] = tmp.checkboxRow;
2026-08-24 06:08:38 +00:00
obj1 = { checked: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp3;
2026-09-01 10:26:29 +00:00
const items = [callback2(tmp4(7684).FormCheckbox, obj1), ];
2026-07-29 08:29:29 +00:00
const obj2 = { variant: "text-xs/medium", color: "text-muted", style: null, children: null };
obj2[2] = tmp.checkboxLabel;
const intl2 = tmp4(1236).intl;
obj2[3] = intl2.string(tmp4(1236).t.ylFCLt);
2026-09-01 10:26:29 +00:00
items[1] = callback2(tmp4(4474).Text, obj2);
2026-07-29 08:29:29 +00:00
obj[5] = items;
obj[1] = callback3(closure_3, obj);
tmp9 = callback2(closure_2, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp9;
2026-07-20 16:05:17 +00:00
};