"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get StyledContent () {
        return StyledContent;
    },
    get StyledDescription () {
        return StyledDescription;
    },
    get StyledInput () {
        return StyledInput;
    },
    get StyledLabel () {
        return StyledLabel;
    },
    get StyledTrigger () {
        return StyledTrigger;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _mixins = require("../../mixins");
const _Switchtokens = require("./Switch.tokens");
function _getRequireWildcardCache(nodeInterop) {
    if (typeof WeakMap !== "function") return null;
    var cacheBabelInterop = new WeakMap();
    var cacheNodeInterop = new WeakMap();
    return (_getRequireWildcardCache = function(nodeInterop) {
        return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
    })(nodeInterop);
}
function _interop_require_wildcard(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 = {
        __proto__: null
    };
    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;
}
const base = (0, _styledcomponents.css)([
    `position:relative;display:flex;flex-direction:column;gap:var(`,
    `);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);&:focus{outline:0 none;}`
], _Switchtokens.tokens.verticalGap);
const StyledContent = _styledcomponents.default.div.withConfig({
    displayName: "Switch.styles__StyledContent",
    componentId: "sc-44a9ca61-0"
})([
    `width:100%;position:relative;display:flex;align-items:center;&.`,
    `{justify-content:space-between;`,
    `:0 var(`,
    `) 0 0;}&.`,
    `{justify-content:start;flex-direction:row-reverse;`,
    `:0 0 0 var(`,
    `);}`
], _Switchtokens.classes.beforeSwitchLabelPosition, _Switchtokens.tokens.labelOffsetPrivate, _Switchtokens.tokens.labelOffset, _Switchtokens.classes.afterSwitchLabelPosition, _Switchtokens.tokens.labelOffsetPrivate, _Switchtokens.tokens.labelOffset);
const StyledDescription = _styledcomponents.default.div.withConfig({
    displayName: "Switch.styles__StyledDescription",
    componentId: "sc-44a9ca61-1"
})([
    `position:relative;`,
    ` display:-webkit-box;line-clamp:var(`,
    `);-webkit-line-clamp:var(`,
    `);-webkit-box-orient:vertical;white-space:normal;`
], (0, _mixins.applyEllipsis)(), _Switchtokens.tokens.descriptionMaxLines, _Switchtokens.tokens.descriptionMaxLines);
const StyledInput = _styledcomponents.default.input.withConfig({
    displayName: "Switch.styles__StyledInput",
    componentId: "sc-44a9ca61-2"
})([
    `position:absolute;right:0;margin:0;opacity:0;&:focus{outline:0 none;}`
]);
const StyledLabel = _styledcomponents.default.span.withConfig({
    displayName: "Switch.styles__StyledLabel",
    componentId: "sc-44a9ca61-3"
})([
    `user-select:none;&.`,
    `{`,
    `}`
], _Switchtokens.classes.singleLine, (0, _mixins.applyEllipsis)());
const StyledTrigger = _styledcomponents.default.div.withConfig({
    displayName: "Switch.styles__StyledTrigger",
    componentId: "sc-44a9ca61-4"
})([
    `position:relative;display:flex;align-items:center;transition:background-color 0.15s ease-in-out 0.1s;::after{content:'';position:absolute;right:auto;left:0;transition:width 0.15s ease-in-out 0s,left 0.3s ease-in-out 0s,right 0.3s ease-in-out 0s;}`,
    `:checked ~ &::after{right:0;left:auto;}`
], StyledInput);
