"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__, {
    useButtonHandleSizeAndPosition: ()=>useButtonHandleSizeAndPosition
});
const external_react_namespaceObject = require("react");
const external_ButtonHandleStyleUtils_cjs_namespaceObject = require("./ButtonHandleStyleUtils.cjs");
const useButtonHandleSizeAndPosition = ({ position, positionPercent, numHandles, customPositionAndOffsets })=>{
    const width = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.widthForHandleWithPosition)({
            position,
            numHandles,
            customWidth: customPositionAndOffsets?.width
        }), [
        customPositionAndOffsets?.width,
        position,
        numHandles
    ]);
    const height = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.heightForHandleWithPosition)({
            position,
            numHandles,
            customHeight: customPositionAndOffsets?.height
        }), [
        customPositionAndOffsets?.height,
        position,
        numHandles
    ]);
    const top = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.topPositionForHandle)({
            position,
            positionPercent,
            customHeight: customPositionAndOffsets?.height,
            customTop: customPositionAndOffsets?.top,
            customBottom: customPositionAndOffsets?.bottom
        }), [
        customPositionAndOffsets?.top,
        customPositionAndOffsets?.bottom,
        customPositionAndOffsets?.height,
        position,
        positionPercent
    ]);
    const bottom = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.bottomPositionForHandle)({
            position,
            positionPercent,
            customHeight: customPositionAndOffsets?.height,
            customTop: customPositionAndOffsets?.top,
            customBottom: customPositionAndOffsets?.bottom
        }), [
        customPositionAndOffsets?.bottom,
        customPositionAndOffsets?.top,
        customPositionAndOffsets?.height,
        position,
        positionPercent
    ]);
    const left = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.leftPositionForHandle)({
            position,
            positionPercent,
            customWidth: customPositionAndOffsets?.width,
            customRight: customPositionAndOffsets?.right,
            customLeft: customPositionAndOffsets?.left
        }), [
        customPositionAndOffsets?.left,
        customPositionAndOffsets?.right,
        customPositionAndOffsets?.width,
        position,
        positionPercent
    ]);
    const right = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.rightPositionForHandle)({
            position,
            positionPercent,
            customWidth: customPositionAndOffsets?.width,
            customRight: customPositionAndOffsets?.right,
            customLeft: customPositionAndOffsets?.left
        }), [
        customPositionAndOffsets?.right,
        customPositionAndOffsets?.left,
        customPositionAndOffsets?.width,
        position,
        positionPercent
    ]);
    const transform = (0, external_react_namespaceObject.useMemo)(()=>(0, external_ButtonHandleStyleUtils_cjs_namespaceObject.transformForHandle)({
            position,
            customPositionAndOffsets
        }), [
        position,
        customPositionAndOffsets
    ]);
    return {
        width,
        height,
        top,
        bottom,
        left,
        right,
        transform
    };
};
exports.useButtonHandleSizeAndPosition = __webpack_exports__.useButtonHandleSizeAndPosition;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "useButtonHandleSizeAndPosition"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
