'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var CloseOutlined = require('@ant-design/icons-vue');
require('../button/index.js');
var button = require('../button/button.js');

function _isSlot(s) {
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
}
function noop() {
}
const Operation = (props) => {
  const {
    disabled,
    moveToLeft = noop,
    moveToRight = noop,
    leftArrowText = "",
    rightArrowText = "",
    leftActive,
    rightActive,
    class: className,
    style,
    direction,
    oneWay
  } = props;
  return vue.createVNode("div", {
    "class": className,
    "style": style
  }, [vue.createVNode(button.default, {
    "type": "primary",
    "size": "small",
    "disabled": disabled || !rightActive,
    "onClick": moveToRight,
    "icon": direction !== "rtl" ? vue.createVNode(CloseOutlined.RightOutlined, null, null) : vue.createVNode(CloseOutlined.LeftOutlined, null, null)
  }, _isSlot(rightArrowText) ? rightArrowText : {
    default: () => [rightArrowText]
  }), !oneWay && vue.createVNode(button.default, {
    "type": "primary",
    "size": "small",
    "disabled": disabled || !leftActive,
    "onClick": moveToLeft,
    "icon": direction !== "rtl" ? vue.createVNode(CloseOutlined.LeftOutlined, null, null) : vue.createVNode(CloseOutlined.RightOutlined, null, null)
  }, _isSlot(leftArrowText) ? leftArrowText : {
    default: () => [leftArrowText]
  })]);
};
Operation.displayName = "Operation";
Operation.inheritAttrs = false;

exports.default = Operation;
//# sourceMappingURL=operation.js.map
