import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
var _excluded = ["prop"];
import React, { PureComponent } from 'react';
import { event } from '@alilc/lowcode-engine';
import './index.less';
var SetterVariable = /*#__PURE__*/function (_PureComponent) {
  function SetterVariable() {
    return _PureComponent.apply(this, arguments) || this;
  }
  _inheritsLoose(SetterVariable, _PureComponent);
  SetterVariable.show = function show(params) {
    var field = params.prop,
      res = _objectWithoutPropertiesLoose(params, _excluded);
    event.emit('variableBindDialog.openDialog', _extends({
      field: field
    }, res));
  };
  var _proto = SetterVariable.prototype;
  _proto.render = function render() {
    return /*#__PURE__*/React.createElement("div", {
      className: "lowcode-setter-variable"
    }, "Hello LowcodeSetterVariable");
  };
  return SetterVariable;
}(PureComponent);
SetterVariable.displayName = 'SetterVariable';
SetterVariable.isPopup = true;
export { SetterVariable as default };