"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 IconResizeDiagonalStyled () {
        return IconResizeDiagonalStyled;
    },
    get PopupRootContainer () {
        return PopupRootContainer;
    },
    get PopupView () {
        return PopupView;
    },
    get StyledPortal () {
        return StyledPortal;
    },
    get StyledPortalContainer () {
        return StyledPortalContainer;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _Icon = require("../_Icon");
const _Popuptokens = require("./Popup.tokens");
const _utils = require("./utils");
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)([
    `.`,
    `{cursor:grab;}.`,
    `{cursor:grabbing;}.`,
    `{user-select:none;-webkit-user-select:none;}`
], _Popuptokens.classes.draggablePopupWrapper, _Popuptokens.classes.draggingPopupWrapper, _Popuptokens.classes.resizableContainerNoSelect);
const StyledPortal = _styledcomponents.default.div.withConfig({
    displayName: "Popup.styles__StyledPortal",
    componentId: "sc-f209901a-0"
})([
    ``
]);
const StyledPortalContainer = _styledcomponents.default.div.withConfig({
    displayName: "Popup.styles__StyledPortalContainer",
    componentId: "sc-f209901a-1"
})([
    `width:0;`
]);
const PopupView = _styledcomponents.default.div.withConfig({
    displayName: "Popup.styles__PopupView",
    componentId: "sc-f209901a-2"
})([
    `position:relative;max-width:100%;pointer-events:all;`
]);
const PopupRootContainer = _styledcomponents.default.div.withConfig({
    displayName: "Popup.styles__PopupRootContainer",
    componentId: "sc-f209901a-3"
})([
    `position:`,
    `;z-index:`,
    `;left:`,
    `;right:`,
    `;top:`,
    `;bottom:`,
    `;transform:`,
    `;`
], ({ frame, positionFixed })=>frame === 'document' || positionFixed ? 'fixed' : 'absolute', ({ zIndex })=>zIndex || _utils.DEFAULT_Z_INDEX, ({ position })=>position.left || '', ({ position })=>position.right || '', ({ position })=>position.top || '', ({ position })=>position.bottom || '', ({ position })=>position.transform || '');
const IconResizeDiagonalStyled = (0, _styledcomponents.default)(_Icon.IconResizeDiagonal).withConfig({
    displayName: "Popup.styles__IconResizeDiagonalStyled",
    componentId: "sc-f209901a-4"
})([
    `color:var(--text-secondary);&:hover{color:var(--text-secondary-hover);}&:active{color:var(--text-secondary-active);}&.`,
    `{transform:rotate(-90deg);}&.`,
    `{transform:rotate(0);}&.`,
    `{transform:rotate(90deg);}&.`,
    `{transform:rotate(180deg);}`
], _Popuptokens.classes.resizableTopRightIcon, _Popuptokens.classes.resizableBottomRightIcon, _Popuptokens.classes.resizableBottomLeftIcon, _Popuptokens.classes.resizableTopLeftIcon);
