"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 LeftContent () {
        return LeftContent;
    },
    get RightContent () {
        return RightContent;
    },
    get StyledContent () {
        return StyledContent;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _mixins = require("../../../../mixins");
const _tokens = require("../../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 StyledContent = _styledcomponents.default.div.withConfig({
    displayName: "SegmentItem.styles__StyledContent",
    componentId: "sc-2ecd7287-0"
})([
    `display:inline-block;width:fit-content;padding:var(`,
    `);`,
    `;margin-right:`,
    `;margin-left:`,
    `;`
], _tokens.tokens.itemContentPadding, (0, _mixins.applyEllipsis)(), ({ hasRightMargin })=>hasRightMargin ? `var(${_tokens.tokens.itemIconMargin})` : '0', ({ hasLeftMargin })=>hasLeftMargin ? `var(${_tokens.tokens.itemIconMargin})` : '0');
const RightContent = _styledcomponents.default.div.withConfig({
    displayName: "SegmentItem.styles__RightContent",
    componentId: "sc-2ecd7287-1"
})([
    `display:flex;margin-left:var(`,
    `);overflow:hidden;color:var(`,
    `);&.`,
    `{display:inline-block;color:var(`,
    `);`,
    `;}`
], _tokens.tokens.itemIconMargin, _tokens.tokens.itemColor, _tokens.classes.segmentAdditionalText, _tokens.tokens.itemAdditionalColor, (0, _mixins.applyEllipsis)());
const LeftContent = _styledcomponents.default.div.withConfig({
    displayName: "SegmentItem.styles__LeftContent",
    componentId: "sc-2ecd7287-2"
})([
    `display:flex;margin-right:var(`,
    `);color:inherit;`
], _tokens.tokens.itemIconMargin);
const base = (0, _styledcomponents.css)([
    `position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;white-space:nowrap;appearance:none;border:none;outline:none;cursor:pointer;margin-left:var(`,
    `);-webkit-tap-highlight-color:rgba(0,0,0,0);&:first-child{margin-left:0;}`,
    `;&.`,
    `{`,
    `{overflow:hidden;text-overflow:ellipsis;}}`
], _tokens.tokens.itemMarginLeft, (0, _mixins.addFocus)({
    outlineSize: '0.063rem',
    outlineOffset: '0.063rem',
    outlineColor: `var(${_tokens.tokens.outlineFocusColor})`,
    outlineRadius: 'calc(var(--plasma_private-outline-radius) + var(--plasma_private-clip-outline-radius))'
}), _tokens.classes.segmentTruncate, StyledContent);
