"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cssForPhone = exports.cssForPhablet = exports.cssForTablet = exports.setEnvironment = exports.phone = exports.phablet = exports.tablet = exports.desktop = void 0;
exports.desktop = 1240;
exports.tablet = 700;
exports.phablet = 500;
exports.phone = 340;
let environment = 'native';
exports.setEnvironment = envArg => {
    environment = envArg;
};
exports.cssForTablet = (contentArg) => {
    if (environment === 'native' || environment === 'desktop') {
        return `
      @media (max-width: ${exports.tablet}px) {
        ${contentArg}
      }
    `;
    }
    else if (environment === 'tablet' || environment === 'phablet' || environment === 'phone') {
        return `
      @media (min-width: 0px) {
        ${contentArg}
      }
    `;
    }
};
exports.cssForPhablet = (contentArg) => {
    if (environment === 'native' || environment === 'desktop') {
        return `
      @media (max-width: ${exports.phablet}px) {
        ${contentArg}
      }
    `;
    }
    else if (environment === 'phablet' || environment === 'phone') {
        return `
      @media (min-width: 0px) {
        ${contentArg}
      }
    `;
    }
};
exports.cssForPhone = (contentArg) => {
    if (environment === 'native' || environment === 'desktop') {
        return `
      @media (max-width: ${exports.phone}px) {
        ${contentArg}
      }
    `;
    }
    else if (environment === 'phone') {
        return `
      @media (min-width: 0px) {
        ${contentArg}
      }
    `;
    }
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzdG9vbHMuYnJlYWtwb2ludHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9jc3N0b29scy5icmVha3BvaW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLE9BQU8sR0FBRyxJQUFJLENBQUM7QUFDZixRQUFBLE1BQU0sR0FBRyxHQUFHLENBQUM7QUFDYixRQUFBLE9BQU8sR0FBRyxHQUFHLENBQUM7QUFDZCxRQUFBLEtBQUssR0FBRyxHQUFHLENBQUM7QUFJekIsSUFBSSxXQUFXLEdBQWlCLFFBQVEsQ0FBQztBQUU1QixRQUFBLGNBQWMs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