"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _locale = require("../../src/locale");
var _setters = require("../_setters");
var _utils = require("../_utils/utils");
var _loopData = _interopRequireDefault(require("../_com-props/loopData"));
var _componentKey = _interopRequireDefault(require("../_com-props/componentKey"));
var _componentName = _interopRequireDefault(require("../_com-props/componentName"));
var _flowEventConfig = require("../_com-props/flowEventConfig");
var Meta = {
  "componentName": "EngineRulePro",
  "title": "EngineRulePro",
  "docUrl": "",
  "screenshot": "",
  "devMode": "proCode",
  "group": (0, _locale.t)('engine-rule-pro.key_utlsyUH9u6VC'),
  "category": "Business",
  "configure": {
    "props": [_loopData["default"], _componentKey["default"], _componentName["default"], {
      name: 'pluginId',
      title: {
        label: (0, _locale.t)('engine-rule-pro.key_ZBXO1tm6SXLA'),
        tip: 'pluginId'
      },
      setter: _setters.CStringOnlySetter,
      defaultValue: function defaultValue() {
        return 58;
      },
      condition: function condition() {
        return false;
      }
    }, (0, _flowEventConfig.getFlowEventConfig)({
      label: (0, _locale.t)('engine-rule-pro.key_VWhPwIWkeDIq'),
      tip: (0, _locale.t)('engine-rule-pro.key_tzBPxhOyF5Xh'),
      props: {
        // 如果插件中需要配置规则，则需要给定pluginId
        pluginId: 58
      }
    }),
    // {
    //   name: 'flowEventConfig',
    //   title: { label: t('engine-rule-pro.key_VWhPwIWkeDIq'), tip: t('engine-rule-pro.key_tzBPxhOyF5Xh') },
    //   setter: CFlowEventSetter,
    //   props: {
    //     // 如果插件中需要配置规则，则需要给定pluginId
    //     pluginId: 58
    //   },
    // },
    {
      name: 'ruleNodeGroupConfig',
      title: {
        label: (0, _locale.t)('engine-rule-pro.key_XyPFNTHOw5XD'),
        tip: (0, _locale.t)('engine-rule-pro.key_KwKZlyrWKEC2')
      },
      setter: _setters.CRuleNodeListSetter
    }, {
      title: {
        "label": "_panel"
      },
      name: "entrySchema",
      supportVariable: false,
      setter: {
        componentName: "CPanelSetter",
        props: {
          "value": '',
          "defaultValue": '{"pluginId": 58}',
          "placeholder": "",
          "hiddenIERList": {
            // 隐藏InstanceList和EmbedList,规则选择
            Instance: true,
            Embed: false,
            Rule: true
          }
        },
        initialValue: ''
      },
      condition: function condition(target) {
        var tt = target.parent.getPropValue('ruleNodeGroupConfig');
        return tt === null || tt === void 0 ? void 0 : tt.ruleGroupId;
      }
    }],
    "supports": {
      "style": false,
      "events": false,
      "loop": false,
      "condition": false
    },
    "component": {}
  }
};
var snippets = [{
  "title": (0, _locale.t)('engine-rule-pro.key_pJdXSat87UcS'),
  "screenshot": "https://s3.ap-east-1.amazonaws.com/res.os/icon/comp/EngineRule.png",
  "schema": {
    "componentName": "EngineRulePro",
    "props": {
      componentKey: "cr_" + (0, _utils.uuid)()
    }
  }
}];
var _default = exports["default"] = (0, _extends2["default"])({}, Meta);