"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    getExpandedShape: ()=>getExpandedShape,
    getExpandedSize: ()=>getExpandedSize,
    EXPANDED_RECTANGLE_WIDTH: ()=>EXPANDED_RECTANGLE_WIDTH,
    getCollapsedShape: ()=>getCollapsedShape,
    COLLAPSED_NODE_SIZE: ()=>COLLAPSED_NODE_SIZE,
    getCollapsedSize: ()=>getCollapsedSize
});
const external_container_cjs_namespaceObject = require("./container.cjs");
const COLLAPSED_NODE_SIZE = 96;
const EXPANDED_RECTANGLE_WIDTH = 288;
const getCollapsedShape = (originalShape)=>'rectangle' === originalShape ? 'square' : originalShape;
const getExpandedShape = (collapsedShape)=>'square' === collapsedShape ? 'rectangle' : collapsedShape ?? void 0;
const getCollapsedSize = ()=>({
        width: COLLAPSED_NODE_SIZE,
        height: COLLAPSED_NODE_SIZE
    });
const getExpandedSize = (shape)=>{
    if ('container' === shape) return {
        width: external_container_cjs_namespaceObject.DEFAULT_CONTAINER_WIDTH,
        height: external_container_cjs_namespaceObject.DEFAULT_CONTAINER_HEIGHT
    };
    return {
        width: 'rectangle' === shape ? EXPANDED_RECTANGLE_WIDTH : COLLAPSED_NODE_SIZE,
        height: COLLAPSED_NODE_SIZE
    };
};
exports.COLLAPSED_NODE_SIZE = __webpack_exports__.COLLAPSED_NODE_SIZE;
exports.EXPANDED_RECTANGLE_WIDTH = __webpack_exports__.EXPANDED_RECTANGLE_WIDTH;
exports.getCollapsedShape = __webpack_exports__.getCollapsedShape;
exports.getCollapsedSize = __webpack_exports__.getCollapsedSize;
exports.getExpandedShape = __webpack_exports__.getExpandedShape;
exports.getExpandedSize = __webpack_exports__.getExpandedSize;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "COLLAPSED_NODE_SIZE",
    "EXPANDED_RECTANGLE_WIDTH",
    "getCollapsedShape",
    "getCollapsedSize",
    "getExpandedShape",
    "getExpandedSize"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
