"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 ContentWrapper () {
        return ContentWrapper;
    },
    get StyledContentLeft () {
        return StyledContentLeft;
    },
    get StyledContentRight () {
        return StyledContentRight;
    },
    get StyledContentRightWrapper () {
        return StyledContentRightWrapper;
    },
    get StyledDivider () {
        return StyledDivider;
    },
    get StyledInput () {
        return StyledInput;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _engines = require("../../engines");
const _TextField = require("../TextField");
const _Rangetokens = require("./Range.tokens");
const _ui = require("./ui");
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 mergedConfig = (0, _engines.mergeConfig)(_TextField.textFieldConfig);
const TextField = (0, _engines.component)(mergedConfig);
const StyledContentLeft = _styledcomponents.default.div.withConfig({
    displayName: "Range.styles__StyledContentLeft",
    componentId: "sc-8c253bec-0"
})([
    `line-height:0;color:var(`,
    `);&:hover{color:var(`,
    `);}&:active{color:var(`,
    `);}`
], _Rangetokens.tokens.contentSlotColor, _Rangetokens.tokens.contentSlotColorHover, _Rangetokens.tokens.contentSlotColorActive);
const StyledContentRight = (0, _styledcomponents.default)(_ui.EmbedIconButtonUI).withConfig({
    displayName: "Range.styles__StyledContentRight",
    componentId: "sc-8c253bec-1"
})([
    ``
]);
const StyledInput = (0, _styledcomponents.default)(TextField).withConfig({
    displayName: "Range.styles__StyledInput",
    componentId: "sc-8c253bec-2"
})([
    `width:100%;`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);&.`,
    `{`,
    `:var(`,
    `,var(`,
    `));`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);}&.`,
    `{`,
    `:var(`,
    `,var(`,
    `));`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);}&.`,
    `{`,
    `:var(`,
    `,var(`,
    `));`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);}`
], _TextField.textFieldTokens.fieldSizing, _Rangetokens.tokens.textFieldSizing, _TextField.textFieldTokens.color, _Rangetokens.tokens.textFieldColor, _TextField.textFieldTokens.placeholderColor, _Rangetokens.tokens.textFieldPlaceholderColor, _TextField.textFieldTokens.placeholderColorFocus, _Rangetokens.tokens.textFieldPlaceholderColorFocus, _TextField.textFieldTokens.clearPlaceholderColorFocus, _Rangetokens.tokens.textFieldClearPlaceholderColorFocus, _TextField.textFieldTokens.caretColor, _Rangetokens.tokens.textFieldCaretColor, _TextField.textFieldTokens.focusColor, _Rangetokens.tokens.textFieldFocusColor, _TextField.textFieldTokens.backgroundColor, _Rangetokens.tokens.textFieldBackgroundColor, _TextField.textFieldTokens.backgroundColorHover, _Rangetokens.tokens.textFieldBackgroundColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Rangetokens.tokens.textFieldBackgroundColorFocus, _TextField.textFieldTokens.borderColor, _Rangetokens.tokens.textFieldBorderColor, _TextField.textFieldTokens.borderColorHover, _Rangetokens.tokens.textFieldBorderColorHover, _TextField.textFieldTokens.borderColorFocus, _Rangetokens.tokens.textFieldBorderColorFocus, _TextField.textFieldTokens.colorReadOnly, _Rangetokens.tokens.textFieldColorReadOnly, _TextField.textFieldTokens.backgroundColorReadOnly, _Rangetokens.tokens.textFieldBackgroundColorReadOnly, _TextField.textFieldTokens.borderColorReadOnly, _Rangetokens.tokens.textFieldBorderColorReadOnly, _TextField.textFieldTokens.placeholderColorReadOnly, _Rangetokens.tokens.textFieldPlaceholderColorReadOnly, _TextField.textFieldTokens.height, _Rangetokens.tokens.textFieldHeight, _TextField.textFieldTokens.borderWidth, _Rangetokens.tokens.textFieldBorderWidth, _TextField.textFieldTokens.borderRadius, _Rangetokens.tokens.textFieldBorderRadius, _TextField.textFieldTokens.padding, _Rangetokens.tokens.textFieldPadding, _TextField.textFieldTokens.leftContentMargin, _Rangetokens.tokens.textFieldLeftContentMargin, _TextField.textFieldTokens.rightContentMargin, _Rangetokens.tokens.textFieldRightContentMargin, _TextField.textFieldTokens.fontFamily, _Rangetokens.tokens.textFieldFontFamily, _TextField.textFieldTokens.fontSize, _Rangetokens.tokens.textFieldFontSize, _TextField.textFieldTokens.fontStyle, _Rangetokens.tokens.textFieldFontStyle, _TextField.textFieldTokens.fontWeight, _Rangetokens.tokens.textFieldFontWeight, _TextField.textFieldTokens.letterSpacing, _Rangetokens.tokens.textFieldLetterSpacing, _TextField.textFieldTokens.lineHeight, _Rangetokens.tokens.textFieldLineHeight, _TextField.textFieldTokens.disabledOpacity, _Rangetokens.tokens.disabledOpacity, _TextField.textFieldTokens.textBeforeColor, _Rangetokens.tokens.textFieldTextBeforeColor, _TextField.textFieldTokens.textAfterColor, _Rangetokens.tokens.textFieldTextAfterColor, _TextField.textFieldTokens.textBeforeMargin, _Rangetokens.tokens.textFieldTextBeforeMargin, _TextField.textFieldTokens.textAfterMargin, _Rangetokens.tokens.textFieldTextAfterMargin, _TextField.textFieldTokens.dividerColorHover, _Rangetokens.tokens.textFieldDividerColorHover, _TextField.textFieldTokens.dividerColorFocus, _Rangetokens.tokens.textFieldDividerColorFocus, _Rangetokens.classes.rangeValueSuccess, _TextField.textFieldTokens.color, _Rangetokens.tokens.textFieldColorSuccess, _Rangetokens.tokens.textFieldColor, _TextField.textFieldTokens.backgroundColor, _Rangetokens.tokens.textFieldBackgroundSuccessColor, _TextField.textFieldTokens.backgroundColorHover, _Rangetokens.tokens.textFieldBackgroundSuccessColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Rangetokens.tokens.textFieldBackgroundSuccessColorFocus, _TextField.textFieldTokens.borderColor, _Rangetokens.tokens.textFieldBorderColorSuccess, _TextField.textFieldTokens.borderColorHover, _Rangetokens.tokens.textFieldBorderColorSuccessHover, _TextField.textFieldTokens.borderColorFocus, _Rangetokens.tokens.textFieldBorderColorSuccessFocus, _Rangetokens.classes.rangeValueError, _TextField.textFieldTokens.color, _Rangetokens.tokens.textFieldColorError, _Rangetokens.tokens.textFieldColor, _TextField.textFieldTokens.backgroundColor, _Rangetokens.tokens.textFieldBackgroundErrorColor, _TextField.textFieldTokens.backgroundColorHover, _Rangetokens.tokens.textFieldBackgroundErrorColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Rangetokens.tokens.textFieldBackgroundErrorColorFocus, _TextField.textFieldTokens.borderColor, _Rangetokens.tokens.textFieldBorderColorError, _TextField.textFieldTokens.borderColorHover, _Rangetokens.tokens.textFieldBorderColorErrorHover, _TextField.textFieldTokens.borderColorFocus, _Rangetokens.tokens.textFieldBorderColorErrorFocus, _Rangetokens.classes.rangeValueEdited, _TextField.textFieldTokens.color, _Rangetokens.tokens.textFieldColorEdited, _Rangetokens.tokens.textFieldColor, _TextField.textFieldTokens.backgroundColor, _Rangetokens.tokens.textFieldBackgroundEditedColor, _TextField.textFieldTokens.backgroundColorHover, _Rangetokens.tokens.textFieldBackgroundEditedColorHover, _TextField.textFieldTokens.backgroundColorFocus, _Rangetokens.tokens.textFieldBackgroundEditedColorFocus, _TextField.textFieldTokens.borderColor, _Rangetokens.tokens.textFieldBorderColorEdited, _TextField.textFieldTokens.borderColorHover, _Rangetokens.tokens.textFieldBorderColorEditedHover, _TextField.textFieldTokens.borderColorFocus, _Rangetokens.tokens.textFieldBorderColorEditedFocus);
const base = (0, _styledcomponents.css)([
    `width:fit-content;`
]);
const ContentWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Range.styles__ContentWrapper",
    componentId: "sc-8c253bec-3"
})([
    `display:flex;align-items:center;position:relative;&:before{content:'';position:absolute;inset:0;z-index:-1;}&.`,
    `{&:before{display:none;}&.`,
    `{&:before{display:block;content:'';position:absolute;top:unset;left:0;right:0;bottom:0;z-index:-1;height:1px;box-shadow:unset;background:var(`,
    `);opacity:1;}}}`
], _Rangetokens.classes.clear, _Rangetokens.classes.clearDivider, _Rangetokens.tokens.clearDividerColor);
const StyledDivider = _styledcomponents.default.div.withConfig({
    displayName: "Range.styles__StyledDivider",
    componentId: "sc-8c253bec-4"
})([
    ``
]);
const StyledContentRightWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Range.styles__StyledContentRightWrapper",
    componentId: "sc-8c253bec-5"
})([
    `display:flex;align-items:center;flex-direction:row-reverse;`
]);
