import { jsxs as t, jsx as n } from "react/jsx-runtime";
import y from "../../../utils/classNames.js";
import e from "../../button/Button.js";
const R = (l) => {
  const {
    hasChanged: i,
    isResetAll: o,
    immediateChange: s,
    resetButtonText: a,
    closeButtonText: r,
    cancelButtonText: c,
    applyButtonText: m,
    onHide: h,
    onResetColumnChanges: d,
    onDiscardChanges: C,
    onApplyChanges: g,
    onConfirmResetColumnChanges: u,
    onCancelResetColumnChanges: p
  } = l, b = y("btn", "btn-default btn-link", !i && "disabled");
  return /* @__PURE__ */ t("div", { className: "display-flex justify-content-between", children: [
    /* @__PURE__ */ t("div", { children: [
      !o && /* @__PURE__ */ t("div", { className: b, onClick: d, children: [
        /* @__PURE__ */ n("span", { className: "rioglyph rioglyph-revert text-size-xs margin-right-10" }),
        a
      ] }),
      o && /* @__PURE__ */ t("div", { className: "btn-group", children: [
        /* @__PURE__ */ n(
          e,
          {
            iconOnly: !0,
            iconName: "rioglyph-remove",
            className: "margin-right-5 btn-outline",
            onClick: p
          }
        ),
        /* @__PURE__ */ n(
          e,
          {
            iconOnly: !0,
            bsStyle: e.PRIMARY,
            iconName: "rioglyph-ok",
            onClick: u
          }
        )
      ] })
    ] }),
    s ? /* @__PURE__ */ n(e, { onClick: h, children: r }) : /* @__PURE__ */ t("div", { className: "btn-toolbar", children: [
      /* @__PURE__ */ n(e, { onClick: C, children: c }),
      /* @__PURE__ */ n(e, { bsStyle: e.PRIMARY, onClick: g, children: m })
    ] })
  ] });
};
export {
  R as TableSettingsDialogFooter
};
//# sourceMappingURL=TableSettingsDialogFooter.js.map
