import _extends from "@babel/runtime/helpers/extends";
import { t } from "../../src/locale";
import { CRuleNodeListSetter, CStringOnlySetter } from "../_setters";
import { uuid } from "../_utils/utils";
import loopData from "../_com-props/loopData";
import componentKey from "../_com-props/componentKey";
import componentName from "../_com-props/componentName";
import { getFlowEventConfig } from "../_com-props/flowEventConfig";
var Meta = {
  "componentName": "EngineRulePro",
  "title": "EngineRulePro",
  "docUrl": "",
  "screenshot": "",
  "devMode": "proCode",
  "group": t('engine-rule-pro.key_utlsyUH9u6VC'),
  "category": "Business",
  "configure": {
    "props": [loopData, componentKey, componentName, {
      name: 'pluginId',
      title: {
        label: t('engine-rule-pro.key_ZBXO1tm6SXLA'),
        tip: 'pluginId'
      },
      setter: CStringOnlySetter,
      defaultValue: function defaultValue() {
        return 58;
      },
      condition: function condition() {
        return false;
      }
    }, getFlowEventConfig({
      label: t('engine-rule-pro.key_VWhPwIWkeDIq'),
      tip: 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: t('engine-rule-pro.key_XyPFNTHOw5XD'),
        tip: t('engine-rule-pro.key_KwKZlyrWKEC2')
      },
      setter: 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": 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_" + uuid()
    }
  }
}];
export default _extends({}, Meta);