var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.IconSplash=void 0;var _color=_interopRequireDefault(require("color"));var _react=_interopRequireDefault(require("react"));var Colors=_interopRequireWildcard(require("@brightlayer-ui/colors"));var _reactNative=require("react-native");var _reactNativePaper=require("react-native-paper");var _MaterialIcons=_interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));var _jsxFileName="/home/circleci/login-workflow/login-workflow/src/components/IconSplash.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 makeContainerStyles=function makeContainerStyles(){return _reactNative.StyleSheet.create({iconContainer:{flex:1,justifyContent:'center'}});};var makeStyles=function makeStyles(theme,iconSize){return _reactNative.StyleSheet.create({circleIconBackground:{marginTop:16,width:iconSize,height:iconSize,borderRadius:iconSize/2,backgroundColor:(theme.dark?theme.colors.actionPalette.active:theme.colors.primary)||theme.colors.primary,justifyContent:'center',alignItems:'center',alignSelf:'center'}});};var IconSplash=function IconSplash(props){var icon=props.icon,_props$iconSize=props.iconSize,iconSize=_props$iconSize===void 0?70:_props$iconSize,style=props.style;var theme=(0,_reactNativePaper.useTheme)(props.theme);var styles=makeStyles(theme,iconSize);var containerStyles=makeContainerStyles();var iconColor=(0,_color.default)((theme.dark?theme.colors.actionPalette.active:theme.colors.primary)||theme.colors.primary).isDark()?Colors.white[50]:Colors.black[500];return _react.default.createElement(_reactNative.View,{style:[containerStyles.iconContainer,style],__source:{fileName:_jsxFileName,lineNumber:74,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:styles.circleIconBackground,__source:{fileName:_jsxFileName,lineNumber:75,columnNumber:13}},_react.default.createElement(_MaterialIcons.default,{name:icon!==null&&icon!==void 0?icon:'vpn-key',size:iconSize*0.55,color:iconColor,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:17}})));};exports.IconSplash=IconSplash;
//# sourceMappingURL=IconSplash.js.map