"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.RequirementCheck=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _reactNativePaper=require("react-native-paper");var _MaterialIcons=_interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));var Colors=_interopRequireWildcard(require("@brightlayer-ui/colors"));var _reactNativeComponents=require("@brightlayer-ui/react-native-components");var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/RequirementCheck.tsx";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}var makeStyles=function makeStyles(){return _reactNative.StyleSheet.create({itemContainer:{flexDirection:'row',justifyContent:'flex-start',alignItems:'center'},text:{paddingLeft:8}});};var RequirementCheck=function RequirementCheck(props){var isChecked=props.isChecked,text=props.text;var theme=(0,_reactNativePaper.useTheme)(props.theme);var styles=makeStyles();function colorIfValid(valid){return valid?theme.colors.primary:theme.dark?Colors.black[500]:Colors.gray[200];}return _react.default.createElement(_reactNative.View,{style:styles.itemContainer,__source:{fileName:_jsxFileName,lineNumber:58,columnNumber:9}},_react.default.createElement(_MaterialIcons.default,{name:'check',size:24,color:colorIfValid(isChecked),__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:13}}),_react.default.createElement(_reactNativeComponents.Subtitle2,{font:'regular',style:styles.text,__source:{fileName:_jsxFileName,lineNumber:60,columnNumber:13}},text));};exports.RequirementCheck=RequirementCheck;
//# sourceMappingURL=RequirementCheck.js.map