"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 CaptionWrapper () {
        return CaptionWrapper;
    },
    get CodeGroup () {
        return CodeGroup;
    },
    get CodeWrapper () {
        return CodeWrapper;
    },
    get ItemCircle () {
        return ItemCircle;
    },
    get ItemInput () {
        return ItemInput;
    },
    get ItemWrapper () {
        return ItemWrapper;
    },
    get Separator () {
        return Separator;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _CodeInputtokens = require("./CodeInput.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)([
    `display:flex;flex-direction:column;justify-content:center;width:min-content;align-items:center;&.`,
    `{align-items:start;}`
], _CodeInputtokens.classes.captionAlignLeft);
const CodeWrapper = _styledcomponents.default.div.withConfig({
    displayName: "CodeInput.styles__CodeWrapper",
    componentId: "sc-e72210ce-0"
})([
    `display:flex;align-items:center;`
]);
const CodeGroup = _styledcomponents.default.div.withConfig({
    displayName: "CodeInput.styles__CodeGroup",
    componentId: "sc-e72210ce-1"
})([
    `display:flex;align-items:center;`
]);
const Separator = _styledcomponents.default.div.withConfig({
    displayName: "CodeInput.styles__Separator",
    componentId: "sc-e72210ce-2"
})([
    `width:var(`,
    `);`
], _CodeInputtokens.tokens.separatorWidth);
const ItemInput = _styledcomponents.default.input.withConfig({
    displayName: "CodeInput.styles__ItemInput",
    componentId: "sc-e72210ce-3"
})([
    `box-sizing:border-box;appearance:none;border:0;padding:0;outline:none;pointer-events:none;text-align:center;caret-color:transparent;caret:none;opacity:`,
    `;`
], ({ hide })=>hide ? '0' : '1');
const ItemWrapper = _styledcomponents.default.div.withConfig({
    displayName: "CodeInput.styles__ItemWrapper",
    componentId: "sc-e72210ce-4"
})([
    `position:relative;`
]);
const ItemCircle = _styledcomponents.default.div.withConfig({
    displayName: "CodeInput.styles__ItemCircle",
    componentId: "sc-e72210ce-5"
})([
    `position:absolute;top:calc(50% - calc(var(`,
    `) / 2));left:calc(50% - calc(var(`,
    `) / 2));width:var(`,
    `);height:var(`,
    `);box-sizing:border-box;border-radius:100%;background-color:'transparent';`
], _CodeInputtokens.tokens.codeItemCircleSize, _CodeInputtokens.tokens.codeItemCircleSize, _CodeInputtokens.tokens.codeItemCircleSize, _CodeInputtokens.tokens.codeItemCircleSize);
const CaptionWrapper = _styledcomponents.default.div.withConfig({
    displayName: "CodeInput.styles__CaptionWrapper",
    componentId: "sc-e72210ce-6"
})([
    `text-align:`,
    `;align-self:`,
    `;width:`,
    `;white-space:pre-line;`
], ({ captionAlign })=>captionAlign, ({ captionAlign })=>captionAlign, ({ widthValue })=>widthValue || 'auto');
