"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__, {
    HandleNotch: ()=>HandleNotch
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const CssUtil_cjs_namespaceObject = require("../../utils/CssUtil.cjs");
const getNotchWidth = (handleType, isVertical)=>{
    if ('input' === handleType && !isVertical) return 'w-2';
    if ('artifact' === handleType) return 'w-2.5';
    return 'w-3';
};
const getNotchHeight = (handleType, isVertical)=>{
    if ('input' === handleType && isVertical) return 'h-2';
    if ('artifact' === handleType) return 'h-2.5';
    return 'h-3';
};
const HandleNotch = ({ handleType, isVertical, selected, hovered, showNotch })=>{
    const isActive = selected || hovered;
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
        className: (0, CssUtil_cjs_namespaceObject.cx)('border-2 pointer-events-none transition-all duration-250 ease-in-out', getNotchWidth(handleType, isVertical), getNotchHeight(handleType, isVertical), 'artifact' === handleType || 'input' === handleType ? 'rounded-none' : 'rounded-full', 'artifact' === handleType && 'rotate-45', isActive ? 'border-brand bg-brand' : 'border-border bg-surface', showNotch ? 'opacity-100' : 'opacity-0')
    });
};
exports.HandleNotch = __webpack_exports__.HandleNotch;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "HandleNotch"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
