(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "styled-components", "../../Pallette/themes", "../../Pallette/fonts"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.HStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var themes_1 = require("../../Pallette/themes");
    var fonts_1 = require("../../Pallette/fonts");
    var fontSizesOnest = {
        64: fonts_1.ariesOnest,
        56: fonts_1.taurusOnest,
        40: fonts_1.geminiOnest,
        32: fonts_1.cancerOnest,
        28: fonts_1.leoOnest,
        24: fonts_1.virgoOnest,
        20: fonts_1.libraOnest,
        16: fonts_1.capricornusOnest
    };
    var fontTypesOnest = {
        aries: fonts_1.ariesOnest,
        taurus: fonts_1.taurusOnest,
        gemini: fonts_1.geminiOnest,
        cancer: fonts_1.cancerOnest,
        leo: fonts_1.leoOnest,
        virgo: fonts_1.virgoOnest,
        libra: fonts_1.libraOnest,
        scorpius: fonts_1.scorpiusOnest,
        capricornus: fonts_1.capricornusOnest,
        saggitarius: fonts_1.saggitariusOnest
    };
    var fontTypesNeueMachina = {
        aries: fonts_1.ariesNeueMachina,
        taurus: fonts_1.taurusNeueMachina,
        gemini: fonts_1.geminiNeueMachina,
        cancer: fonts_1.cancerNeueMachina,
        leo: fonts_1.leoNeueMachina,
        virgo: fonts_1.virgoNeueMachina,
        libra: fonts_1.libraNeueMachina,
        scorpius: fonts_1.scorpiusNeueMachina,
        capricornus: fonts_1.capricornusNeueMachina,
        saggitarius: fonts_1.saggitariusNeueMachina
    };
    var fontSizesNeueMachina = {
        64: fonts_1.ariesNeueMachina,
        56: fonts_1.taurusNeueMachina,
        40: fonts_1.geminiNeueMachina,
        32: fonts_1.cancerNeueMachina,
        28: fonts_1.leoNeueMachina,
        24: fonts_1.virgoNeueMachina,
        20: fonts_1.libraNeueMachina,
        16: fonts_1.capricornusNeueMachina
    };
    var getFont = function (_a) {
        var fontFamily = _a.fontFamily, fontType = _a.fontType, fontSize = _a.fontSize;
        if (fontFamily === "Neue Machina") {
            return fontSize
                ? fontSizesNeueMachina[fontSize]
                : fontTypesNeueMachina[fontType];
        }
        return fontSize ? fontSizesOnest[fontSize] : fontTypesOnest[fontType];
    };
    exports.HStyled = styled_components_1.default.span(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n  margin: 0;\n  ", ";\n  ", "\n"], ["\n  margin: 0;\n  ", ";\n  ", "\n"])), function (props) {
        return getFont({
            fontFamily: props.fontFamily,
            fontType: props.type,
            fontSize: props.size
        });
    }, function (props) {
        return props.color && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n      color: ", ";\n    "], ["\n      color: ", ";\n    "])), props.color);
    });
    exports.HStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2;
});
