"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: all[name]
    });
}
_export(exports, {
    DesktopHiddenLabel: function() {
        return DesktopHiddenLabel;
    },
    MobileHideenLabel: function() {
        return MobileHideenLabel;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _label = require("../../../label");
const _modal = require("../../../modal");
const _react = require("react");
const _reacttooltip = require("@radix-ui/react-tooltip");
const MobileHideenLabel = ()=>{
    const showHiddenHint = (0, _react.useCallback)(()=>{
        _modal.modal.alert({
            title: "Hidden",
            message: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
                className: "orderly-text-3xs orderly-text-base-contrast/60",
                children: "Hidden order is a limit order that does not appear in the orderbook."
            })
        });
    }, []);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
        children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_label.Label, {
            onClick: showHiddenHint,
            className: "orderly-text-base-contrast-54",
            children: "Hidden"
        })
    });
};
const DesktopHiddenLabel = ()=>{
    const [open, setOpen] = (0, _react.useState)(false);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
        children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_reacttooltip.Tooltip, {
            children: [
                /*#__PURE__*/ (0, _jsxruntime.jsx)(_reacttooltip.TooltipTrigger, {
                    asChild: true,
                    children: /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                        className: "orderly-text-base-contrast-54",
                        children: "Hidden"
                    })
                }),
                /*#__PURE__*/ (0, _jsxruntime.jsxs)(_reacttooltip.TooltipContent, {
                    align: "end",
                    alignOffset: -80,
                    className: "orderly-max-w-[240px] orderly-z-20 orderly-text-base-contrast orderly-select-none orderly-rounded orderly-bg-base-400 orderly-p-3 orderly-text-4xs",
                    children: [
                        /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
                            children: /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
                                className: "orderly-text-3xs",
                                children: "Hidden order is a limit order that does not appear in the orderbook."
                            })
                        }),
                        /*#__PURE__*/ (0, _jsxruntime.jsx)(_reacttooltip.TooltipArrow, {
                            className: "orderly-fill-base-400"
                        })
                    ]
                })
            ]
        })
    });
};

//# sourceMappingURL=hiddenLabel.js.map