"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__, {
    CANVAS_MODE_TOOLBAR_HEIGHT: ()=>CANVAS_MODE_TOOLBAR_HEIGHT,
    CountBadge: ()=>CanvasModeToolbar_CountBadge,
    CanvasModeToolbar: ()=>CanvasModeToolbar_CanvasModeToolbar,
    TOOLBAR_ICON_BUTTON_CLASS: ()=>TOOLBAR_ICON_BUTTON_CLASS
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const external_react_namespaceObject = require("react");
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
const CANVAS_MODE_TOOLBAR_HEIGHT = 48;
const TOOLBAR_ICON_BUTTON_CLASS = 'text-foreground-muted hover:bg-surface-hover hover:text-foreground [&_svg]:size-5 [&_svg]:transition-all hover:[&_svg]:size-6 disabled:hover:[&_svg]:size-5';
const CanvasModeToolbar_CountBadge = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(function({ count, variant = 'default' }) {
    if (count <= 0) return null;
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
        className: `absolute -top-1 -right-1 min-w-[16px] h-4 px-1 text-[10px] font-medium rounded-full flex items-center justify-center ${'destructive' === variant ? 'bg-destructive text-destructive-foreground' : 'bg-muted text-muted-foreground'}`,
        children: count
    });
});
const CanvasModeToolbar_CanvasModeToolbar = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(function({ children, className }) {
    return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Row, {
        "data-testid": "canvas-toolbar",
        className: (0, apollo_wind_namespaceObject.cn)('gap-2 items-center rounded-2xl border border-border-subtle bg-surface-raised text-foreground px-2.5 backdrop-blur-sm shadow-lg', className),
        style: {
            height: CANVAS_MODE_TOOLBAR_HEIGHT
        },
        children: children
    });
});
exports.CANVAS_MODE_TOOLBAR_HEIGHT = __webpack_exports__.CANVAS_MODE_TOOLBAR_HEIGHT;
exports.CanvasModeToolbar = __webpack_exports__.CanvasModeToolbar;
exports.CountBadge = __webpack_exports__.CountBadge;
exports.TOOLBAR_ICON_BUTTON_CLASS = __webpack_exports__.TOOLBAR_ICON_BUTTON_CLASS;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "CANVAS_MODE_TOOLBAR_HEIGHT",
    "CanvasModeToolbar",
    "CountBadge",
    "TOOLBAR_ICON_BUTTON_CLASS"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
