'use strict';



function ___$insertStyle(css) {
    if (!css || typeof window === 'undefined') {
        return;
    }
    const style = document.createElement('style');
    style.setAttribute('type', 'text/css');
    style.innerHTML = css;
    document.head.appendChild(style);
    return css;
}

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var reactNative = require('react-native');
var reactNativeWeb = require('react-native-web');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

// stories/MyButton.tsx
var styles$1 = reactNative.StyleSheet.create({
    button: {
        paddingVertical: 8,
        paddingHorizontal: 16,
        borderRadius: 4,
        alignSelf: "flex-start",
        flexGrow: 0,
        backgroundColor: "purple",
    },
    buttonText: {
        color: "white",
        fontSize: 16,
        fontWeight: "bold",
    },
    buttonContainer: {
        alignItems: "flex-start",
        flex: 1,
    },
});
var MyButton = function (_a) {
    var text = _a.text, onPress = _a.onPress, color = _a.color, textColor = _a.textColor;
    return (React__default["default"].createElement(reactNative.View, { style: styles$1.buttonContainer },
        React__default["default"].createElement(reactNative.TouchableOpacity, { style: [styles$1.button, !!color && { backgroundColor: color }], onPress: onPress, activeOpacity: 0.8 },
            React__default["default"].createElement(reactNative.Text, { style: [styles$1.buttonText, !!textColor && { color: textColor }] }, text))));
};

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

var __assign = function() {
    __assign = Object.assign || function __assign(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};

function __spreadArray(to, from, pack) {
    if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
        if (ar || !(i in from)) {
            if (!ar) ar = Array.prototype.slice.call(from, 0, i);
            ar[i] = from[i];
        }
    }
    return to.concat(ar || Array.prototype.slice.call(from));
}

var TouchableOpacity = reactNative.TouchableOpacity;
var MyButton2 = function (_a) {
    var onPress = _a.onPress, propStyling = _a.propStyling, buttonText = _a.buttonText, buttonTextStyling = _a.buttonTextStyling, disabled = _a.disabled;
    return (React__default["default"].createElement(TouchableOpacity, __assign({ style: __spreadArray(__spreadArray([customStyling], propStyling, true), [disabled ? disabledStyle : {}], false) }, { onPress: onPress, disabled: !!disabled }),
        React__default["default"].createElement(reactNative.Text, { style: __spreadArray(__spreadArray([], buttonTextStyling, true), [disabled ? disabledTextStyle : {}], false) }, buttonText)));
};
var _a = reactNative.StyleSheet.create({
    customStyling: {
        justifyContent: "center",
        alignItems: "center",
        borderRadius: 5,
        padding: 7.5,
    },
    disabledStyle: {
        backgroundColor: "#ccc",
    },
    disabledTextStyle: {
        color: "black",
    },
}), customStyling = _a.customStyling, disabledStyle = _a.disabledStyle, disabledTextStyle = _a.disabledTextStyle;

var CommonHeader = function (_a) {
    var height = _a.height, width = _a.width;
    return (React__default["default"].createElement(reactNativeWeb.View, { style: styles.headerStyle },
        React__default["default"].createElement(reactNativeWeb.Image, { source: require("./assets/Logo.png"), style: { width: width, height: height } })));
};
var styles = reactNativeWeb.StyleSheet.create({
    headerStyle: {
        marginHorizontal: 10,
        marginVertical: 12
    }
});

var LandingScreen = function (_a) {
    var width = _a.width, height = _a.height;
    return (React__default["default"].createElement(reactNative.Image, { source: require("./assets/mvloginImg@2.png"), style: { width: width, height: height } }));
};

exports.CommonHeader = CommonHeader;
exports.LandingScreen = LandingScreen;
exports.MyButton = MyButton;
exports.MyButton2 = MyButton2;
//# sourceMappingURL=index.js.map
