"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _Types=_interopRequireDefault(require("../lib/Types"));var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\BaseHolder.js";var BaseHolder=function(_React$Component){(0,_inherits2["default"])(BaseHolder,_React$Component);function BaseHolder(props){(0,_classCallCheck2["default"])(this,BaseHolder);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(BaseHolder).call(this,props));}(0,_createClass2["default"])(BaseHolder,[{key:"render",value:function render(){var _this$props=this.props,children=_this$props.children,selected=_this$props.selected,justifyContent=_this$props.justifyContent,alignItems=_this$props.alignItems,alignContent=_this$props.alignContent,flexDirection=_this$props.flexDirection,flexWrap=_this$props.flexWrap,flexFlow=_this$props.flexFlow,order=_this$props.order,alignSelf=_this$props.alignSelf,flexGrow=_this$props.flexGrow,flexShrink=_this$props.flexShrink,flexBasis=_this$props.flexBasis,width=_this$props.width,height=_this$props.height,stretchContainer=_this$props.stretchContainer,content=_this$props.content,restProps=(0,_objectWithoutProperties2["default"])(_this$props,["children","selected","justifyContent","alignItems","alignContent","flexDirection","flexWrap","flexFlow","order","alignSelf","flexGrow","flexShrink","flexBasis","width","height","stretchContainer","content"]);var styl=[styles.base];if(selected)styl.push(styles.selected);if(stretchContainer)styl.push(styles.stretchToContent);return _react["default"].createElement(_reactNative.View,(0,_extends2["default"])({},restProps,{style:[styl,{order:order,alignSelf:alignSelf,flexGrow:flexGrow,flexShrink:flexShrink,flexBasis:flexBasis,width:width,height:height}],__source:{fileName:_jsxFileName,lineNumber:42}}),content,_react["default"].createElement(_reactNative.View,{WRAPPER:true,style:[!!content||stretchContainer?styles.stretchToContent:{},{justifyContent:justifyContent,alignItems:alignItems,alignContent:alignContent,flexDirection:flexDirection,flexWrap:flexWrap,flexFlow:flexFlow}],__source:{fileName:_jsxFileName,lineNumber:53}},children));}}]);return BaseHolder;}(_react["default"].Component);exports["default"]=BaseHolder;var styles=_reactNative.StyleSheet.create({base:{minHeight:10},stretchToContent:{position:'absolute',top:0,left:0,bottom:0,right:0,overflow:'hidden'},selected:{boxShadow:'inset 0px 0px 1px 1px rgba(250,10,0,0.81)',border:'1px solid green'}});BaseHolder.Inputs={width:new _Types["default"].Integer(),height:new _Types["default"].Integer()["default"](40),justifyContent:new _Types["default"].Text()["default"]("flex-start"),alignItems:new _Types["default"].Text(),alignContent:new _Types["default"].Text(),flexDirection:new _Types["default"].Text(),flexWrap:new _Types["default"].Text(),flexFlow:new _Types["default"].Text(),order:new _Types["default"].Text(),alignSelf:new _Types["default"].Text(),flexGrow:new _Types["default"].Text(),flexShrink:new _Types["default"].Text(),flexBasis:new _Types["default"].Text()};