"use strict";
/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunknocode_flow"] = self["webpackChunknocode_flow"] || []).push([[361],{

/***/ 45816:
/*!******************!*\
  !*** ./index.js ***!
  \******************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   NocodeFlow: function() { return /* reexport safe */ _src_index_tsx__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _src_style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/style/index.less */ 25240);\n/* harmony import */ var _src_index_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/index.tsx */ 90236);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-26 19:44:29\n * @LastEditTime: 2023-02-26 20:12:56\n * @Last Modified by: jianhang_he\n */\n\n\n/* @remove-on-es-build-end */\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDU4MTYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vaW5kZXguanM/NDFmNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTAyLTI2IDE5OjQ0OjI5XG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTAyLTI2IDIwOjEyOjU2XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuXG5pbXBvcnQgJy4vc3JjL3N0eWxlL2luZGV4Lmxlc3MnXG4vKiBAcmVtb3ZlLW9uLWVzLWJ1aWxkLWVuZCAqL1xuZXhwb3J0IHsgZGVmYXVsdCBhcyBOb2NvZGVGbG93IH0gZnJvbSAnLi9zcmMvaW5kZXgudHN4J1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///45816\n");

/***/ }),

/***/ 20572:
/*!*************************************!*\
  !*** ./src/constants/actionname.ts ***!
  \*************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   CLICK_ADD_NODE: function() { return /* binding */ CLICK_ADD_NODE; },\n/* harmony export */   GET_NOCODE_IP_LIST: function() { return /* binding */ GET_NOCODE_IP_LIST; },\n/* harmony export */   SET_NOCODE_IP_LIST: function() { return /* binding */ SET_NOCODE_IP_LIST; },\n/* harmony export */   SET_REF_BILL_TREE_DATA: function() { return /* binding */ SET_REF_BILL_TREE_DATA; },\n/* harmony export */   SET_RIGHT_PANEL_VISIBLE: function() { return /* binding */ SET_RIGHT_PANEL_VISIBLE; },\n/* harmony export */   SET_TEST_API: function() { return /* binding */ SET_TEST_API; },\n/* harmony export */   SET_TREE_NODE_CHILDREN: function() { return /* binding */ SET_TREE_NODE_CHILDREN; },\n/* harmony export */   TEST_API: function() { return /* binding */ TEST_API; }\n/* harmony export */ });\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 15:28:12\n * @LastEditTime: 2024-01-04 17:24:20\n * @Last Modified by: jianhang_he\n */\nvar CLICK_ADD_NODE = 'clickAddNode'; // 点击添加节点\n\nvar SET_RIGHT_PANEL_VISIBLE = 'setRightPanel'; // 设置右侧面板显示隐藏\n\nvar SET_REF_BILL_TREE_DATA = 'setRefBillTreeData';\nvar SET_TREE_NODE_CHILDREN = 'setTreeNodeChildren'; // 懒加载应用的子节点\n\n// 测试API\nvar TEST_API = 'testApi';\nvar SET_TEST_API = 'setTestApi';\n\n// 获取无代码IP地址\nvar GET_NOCODE_IP_LIST = 'getNoCodeIpList';\n\n// 设置无代码IP地址\nvar SET_NOCODE_IP_LIST = 'setNoCodeIpList';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjA1NzIuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBOztBQUVBO0FBRUE7O0FBRUE7QUFDQTtBQUVBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2NvbnN0YW50cy9hY3Rpb25uYW1lLnRzPzJiNmYiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0wMy0wMiAxNToyODoxMlxuICogQExhc3RFZGl0VGltZTogMjAyNC0wMS0wNCAxNzoyNDoyMFxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmV4cG9ydCBjb25zdCBDTElDS19BRERfTk9ERSA9ICdjbGlja0FkZE5vZGUnIC8vIOeCueWHu+a3u+WKoOiKgueCuVxuXG5leHBvcnQgY29uc3QgU0VUX1JJR0hUX1BBTkVMX1ZJU0lCTEUgPSAnc2V0UmlnaHRQYW5lbCcgLy8g6K6+572u5Y+z5L6n6Z2i5p2/5pi+56S66ZqQ6JePXG5cbmV4cG9ydCBjb25zdCBTRVRfUkVGX0JJTExfVFJFRV9EQVRBID0gJ3NldFJlZkJpbGxUcmVlRGF0YSdcblxuZXhwb3J0IGNvbnN0IFNFVF9UUkVFX05PREVfQ0hJTERSRU4gPSAnc2V0VHJlZU5vZGVDaGlsZHJlbicgLy8g5oeS5Yqg6L295bqU55So55qE5a2Q6IqC54K5XG5cbi8vIOa1i+ivlUFQSVxuZXhwb3J0IGNvbnN0IFRFU1RfQVBJID0gJ3Rlc3RBcGknXG5cbmV4cG9ydCBjb25zdCBTRVRfVEVTVF9BUEkgPSAnc2V0VGVzdEFwaSdcblxuLy8g6I635Y+W5peg5Luj56CBSVDlnLDlnYBcbmV4cG9ydCBjb25zdCBHRVRfTk9DT0RFX0lQX0xJU1QgPSAnZ2V0Tm9Db2RlSXBMaXN0J1xuXG4vLyDorr7nva7ml6Dku6PnoIFJUOWcsOWdgFxuZXhwb3J0IGNvbnN0IFNFVF9OT0NPREVfSVBfTElTVCA9ICdzZXROb0NvZGVJcExpc3QnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///20572\n");

/***/ }),

/***/ 98092:
/*!********************************!*\
  !*** ./src/constants/index.ts ***!
  \********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DATA_CUT_NODE: function() { return /* binding */ DATA_CUT_NODE; },\n/* harmony export */   DATA_NODE_ID: function() { return /* binding */ DATA_NODE_ID; },\n/* harmony export */   DEFAULT_FLOW_VAR: function() { return /* binding */ DEFAULT_FLOW_VAR; },\n/* harmony export */   DEFAULT_RULE_NAME: function() { return /* binding */ DEFAULT_RULE_NAME; },\n/* harmony export */   FIELD_TYPE_MAP: function() { return /* binding */ FIELD_TYPE_MAP; },\n/* harmony export */   GET_FILTER_ITEM_LOOK: function() { return /* binding */ GET_FILTER_ITEM_LOOK; },\n/* harmony export */   LIST_CONFIG: function() { return /* binding */ LIST_CONFIG; },\n/* harmony export */   LIST_TREE_CONFIG: function() { return /* binding */ LIST_TREE_CONFIG; },\n/* harmony export */   NOCODE_FLOW_API: function() { return /* binding */ NOCODE_FLOW_API; },\n/* harmony export */   NOCODE_FLOW_MAIN: function() { return /* binding */ NOCODE_FLOW_MAIN; },\n/* harmony export */   NOCODE_FLOW_MAIN_END_NODE: function() { return /* binding */ NOCODE_FLOW_MAIN_END_NODE; },\n/* harmony export */   NODE_SELECTION: function() { return /* binding */ NODE_SELECTION; },\n/* harmony export */   NODE_STATUS_DOING: function() { return /* binding */ NODE_STATUS_DOING; },\n/* harmony export */   NODE_STATUS_DONE: function() { return /* binding */ NODE_STATUS_DONE; },\n/* harmony export */   NODE_STATUS_EXCEPTION_TERMINATE: function() { return /* binding */ NODE_STATUS_EXCEPTION_TERMINATE; },\n/* harmony export */   NODE_STATUS_TERMINATE: function() { return /* binding */ NODE_STATUS_TERMINATE; },\n/* harmony export */   NODE_STATUS_TODO: function() { return /* binding */ NODE_STATUS_TODO; },\n/* harmony export */   OPERATION_FILTER_LIST: function() { return /* binding */ OPERATION_FILTER_LIST; },\n/* harmony export */   REF_BILL_EDITOR_VALUE_CHANGE: function() { return /* binding */ REF_BILL_EDITOR_VALUE_CHANGE; },\n/* harmony export */   REF_BILL_TYPE_CHANGE: function() { return /* binding */ REF_BILL_TYPE_CHANGE; },\n/* harmony export */   SET_FILTER_ITEM_LOOK: function() { return /* binding */ SET_FILTER_ITEM_LOOK; },\n/* harmony export */   SET_LIST_CONFIG: function() { return /* binding */ SET_LIST_CONFIG; },\n/* harmony export */   SET_LIST_TREE_CONFIG: function() { return /* binding */ SET_LIST_TREE_CONFIG; },\n/* harmony export */   SET_QUERY: function() { return /* binding */ SET_QUERY; },\n/* harmony export */   SET_SYNC_DATA: function() { return /* binding */ SET_SYNC_DATA; },\n/* harmony export */   TEXTAREA_COMPARES_MAP: function() { return /* binding */ TEXTAREA_COMPARES_MAP; },\n/* harmony export */   USER_ORG_IDS: function() { return /* binding */ USER_ORG_IDS; }\n/* harmony export */ });\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-27 11:25:45\n * @LastEditTime: 2024-01-04 13:32:25\n * @Last Modified by: jianhang_he\n */\nvar NODE_SELECTION = 'node-selection';\nvar NOCODE_FLOW_MAIN = 'nocodeflow-main';\nvar NOCODE_FLOW_MAIN_END_NODE = 'nocodeflow-main-end-node';\nvar OPERATION_FILTER_LIST = ['(', ')', '()', 'Backspace', 'CLR'];\nvar DEFAULT_RULE_NAME = '未命名规则';\nvar REF_BILL_TYPE_CHANGE = 'REF_BILL_TYPE_CHANGE'; // 指令-表单数据\nvar REF_BILL_EDITOR_VALUE_CHANGE = 'REF_BILL_EDITOR_VALUE_CHANGE'; // 关联表单-表单数据变化-级联\n\nvar SET_SYNC_DATA = 'setSyncData'; // 设置同步数据（变量、报错）\nvar SET_QUERY = 'setQuery'; // 查询数据\nvar SET_LIST_CONFIG = 'setListConfig'; // 设置列表配置\nvar LIST_CONFIG = 'listconfig'; // 列表配置\nvar LIST_TREE_CONFIG = 'listtreeconfig'; // 列表配置（树型结构）\nvar SET_LIST_TREE_CONFIG = 'setListTreeConfig'; // 设置列表配置（树型结构）\nvar GET_FILTER_ITEM_LOOK = 'getFilterItemLook'; // 获取筛选项\nvar SET_FILTER_ITEM_LOOK = 'filterItemLook'; // 设置筛选项\n\n// handleStatus\n// done - 已正常处理完成\n// doing - 当前待办\n// terminate - 异常终止\n// todo - 等待处理\nvar NODE_STATUS_DONE = 'done'; // 已正常处理完成\nvar NODE_STATUS_TODO = 'todo'; // 等待处理\nvar NODE_STATUS_DOING = 'doing'; // 处理中\nvar NODE_STATUS_EXCEPTION_TERMINATE = 'exception_terminate'; // 处理异常\nvar NODE_STATUS_TERMINATE = 'terminate'; // 否决\n\nvar DEFAULT_FLOW_VAR = {\n  title: '[文本]流程名称',\n  nodeId: '${proc.procName}',\n  key: '${proc.procName}',\n  type: 'text'\n};\n\n// 人员组织的id\nvar USER_ORG_IDS = ['bos_adminorg', 'bos_user'];\nvar DATA_NODE_ID = 'data-node-id';\nvar DATA_CUT_NODE = 'data-cut-node';\nvar FIELD_TYPE_MAP = {\n  NoCodeTextAreaField: 'textarea'\n};\nvar TEXTAREA_COMPARES_MAP = {\n  1301: '1601',\n  // 等于\n  102: '1602' // 不等于\n};\nvar NOCODE_FLOW_API = 'nocode_flow_testapi';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTgwOTIuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFFQTtBQUVBO0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2NvbnN0YW50cy9pbmRleC50cz84ZjEyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDItMjcgMTE6MjU6NDVcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjQtMDEtMDQgMTM6MzI6MjVcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5leHBvcnQgY29uc3QgTk9ERV9TRUxFQ1RJT04gPSAnbm9kZS1zZWxlY3Rpb24nXG5cbmV4cG9ydCBjb25zdCBOT0NPREVfRkxPV19NQUlOID0gJ25vY29kZWZsb3ctbWFpbidcblxuZXhwb3J0IGNvbnN0IE5PQ09ERV9GTE9XX01BSU5fRU5EX05PREUgPSAnbm9jb2RlZmxvdy1tYWluLWVuZC1ub2RlJ1xuXG5leHBvcnQgY29uc3QgT1BFUkFUSU9OX0ZJTFRFUl9MSVNUID0gWycoJywgJyknLCAnKCknLCAnQmFja3NwYWNlJywgJ0NMUiddXG5cbmV4cG9ydCBjb25zdCBERUZBVUxUX1JVTEVfTkFNRSA9ICfmnKrlkb3lkI3op4TliJknXG5cbmV4cG9ydCBjb25zdCBSRUZfQklMTF9UWVBFX0NIQU5HRSA9ICdSRUZfQklMTF9UWVBFX0NIQU5HRScgLy8g5oyH5LukLeihqOWNleaVsOaNrlxuZXhwb3J0IGNvbnN0IFJFRl9CSUxMX0VESVRPUl9WQUxVRV9DSEFOR0UgPSAnUkVGX0JJTExfRURJVE9SX1ZBTFVFX0NIQU5HRScgLy8g5YWz6IGU6KGo5Y2VLeihqOWNleaVsOaNruWPmOWMli3nuqfogZRcblxuZXhwb3J0IGNvbnN0IFNFVF9TWU5DX0RBVEEgPSAnc2V0U3luY0RhdGEnIC8vIOiuvue9ruWQjOatpeaVsOaNru+8iOWPmOmHj+OAgeaKpemUme+8iVxuZXhwb3J0IGNvbnN0IFNFVF9RVUVSWSA9ICdzZXRRdWVyeScgLy8g5p+l6K+i5pWw5o2uXG5leHBvcnQgY29uc3QgU0VUX0xJU1RfQ09ORklHID0gJ3NldExpc3RDb25maWcnIC8vIOiuvue9ruWIl+ihqOmFjee9rlxuZXhwb3J0IGNvbnN0IExJU1RfQ09ORklHID0gJ2xpc3Rjb25maWcnIC8vIOWIl+ihqOmFjee9rlxuZXhwb3J0IGNvbnN0IExJU1RfVFJFRV9DT05GSUcgPSAnbGlzdHRyZWVjb25maWcnIC8vIOWIl+ihqOmFjee9ru+8iOagkeWei+e7k+aehO+8iVxuZXhwb3J0IGNvbnN0IFNFVF9MSVNUX1RSRUVfQ09ORklHID0gJ3NldExpc3RUcmVlQ29uZmlnJyAvLyDorr7nva7liJfooajphY3nva7vvIjmoJHlnovnu5PmnoTvvIlcbmV4cG9ydCBjb25zdCBHRVRfRklMVEVSX0lURU1fTE9PSyA9ICdnZXRGaWx0ZXJJdGVtTG9vaycgLy8g6I635Y+W562b6YCJ6aG5XG5leHBvcnQgY29uc3QgU0VUX0ZJTFRFUl9JVEVNX0xPT0sgPSAnZmlsdGVySXRlbUxvb2snIC8vIOiuvue9ruetm+mAiemhuVxuXG4vLyBoYW5kbGVTdGF0dXNcbi8vIGRvbmUgLSDlt7LmraPluLjlpITnkIblrozmiJBcbi8vIGRvaW5nIC0g5b2T5YmN5b6F5YqeXG4vLyB0ZXJtaW5hdGUgLSDlvILluLjnu4jmraJcbi8vIHRvZG8gLSDnrYnlvoXlpITnkIZcbmV4cG9ydCBjb25zdCBOT0RFX1NUQVRVU19ET05FID0gJ2RvbmUnIC8vIOW3suato+W4uOWkhOeQhuWujOaIkFxuZXhwb3J0IGNvbnN0IE5PREVfU1RBVFVTX1RPRE8gPSAndG9kbycgLy8g562J5b6F5aSE55CGXG5leHBvcnQgY29uc3QgTk9ERV9TVEFUVVNfRE9JTkcgPSAnZG9pbmcnIC8vIOWkhOeQhuS4rVxuZXhwb3J0IGNvbnN0IE5PREVfU1RBVFVTX0VYQ0VQVElPTl9URVJNSU5BVEUgPSAnZXhjZXB0aW9uX3Rlcm1pbmF0ZScgLy8g5aSE55CG5byC5bi4XG5leHBvcnQgY29uc3QgTk9ERV9TVEFUVVNfVEVSTUlOQVRFID0gJ3Rlcm1pbmF0ZScgLy8g5ZCm5YazXG5cbmV4cG9ydCBjb25zdCBERUZBVUxUX0ZMT1dfVkFSID0ge1xuICB0aXRsZTogJ1vmlofmnKxd5rWB56iL5ZCN56ewJyxcbiAgbm9kZUlkOiAnJHtwcm9jLnByb2NOYW1lfScsXG4gIGtleTogJyR7cHJvYy5wcm9jTmFtZX0nLFxuICB0eXBlOiAndGV4dCdcbn1cblxuLy8g5Lq65ZGY57uE57uH55qEaWRcbmV4cG9ydCBjb25zdCBVU0VSX09SR19JRFMgPSBbJ2Jvc19hZG1pbm9yZycsICdib3NfdXNlciddXG5cbmV4cG9ydCBjb25zdCBEQVRBX05PREVfSUQgPSAnZGF0YS1ub2RlLWlkJ1xuZXhwb3J0IGNvbnN0IERBVEFfQ1VUX05PREUgPSAnZGF0YS1jdXQtbm9kZSdcblxuZXhwb3J0IGNvbnN0IEZJRUxEX1RZUEVfTUFQID0ge1xuICBOb0NvZGVUZXh0QXJlYUZpZWxkOiAndGV4dGFyZWEnXG59XG5cbmV4cG9ydCBjb25zdCBURVhUQVJFQV9DT01QQVJFU19NQVAgPSB7XG4gIDEzMDE6ICcxNjAxJywgLy8g562J5LqOXG4gIDEwMjogJzE2MDInIC8vIOS4jeetieS6jlxufVxuXG5leHBvcnQgY29uc3QgTk9DT0RFX0ZMT1dfQVBJID0gJ25vY29kZV9mbG93X3Rlc3RhcGknXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///98092\n");

/***/ }),

/***/ 94096:
/*!************************************!*\
  !*** ./src/constants/propnames.ts ***!
  \************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Action: function() { return /* binding */ Action; },\n/* harmony export */   BaseType: function() { return /* binding */ BaseType; },\n/* harmony export */   Categories: function() { return /* binding */ Categories; },\n/* harmony export */   Controls: function() { return /* binding */ Controls; },\n/* harmony export */   DataScope: function() { return /* binding */ DataScope; },\n/* harmony export */   Editor: function() { return /* binding */ Editor; },\n/* harmony export */   ElementTypes: function() { return /* binding */ ElementTypes; },\n/* harmony export */   Enum: function() { return /* binding */ Enum; },\n/* harmony export */   ITEMS: function() { return /* binding */ ITEMS; },\n/* harmony export */   Id: function() { return /* binding */ Id; },\n/* harmony export */   MaxLength: function() { return /* binding */ MaxLength; },\n/* harmony export */   Name: function() { return /* binding */ Name; },\n/* harmony export */   PARENTID: function() { return /* binding */ PARENTID; },\n/* harmony export */   PackageName: function() { return /* binding */ PackageName; },\n/* harmony export */   Properties: function() { return /* binding */ Properties; },\n/* harmony export */   PropertyName: function() { return /* binding */ PropertyName; },\n/* harmony export */   TYPE: function() { return /* binding */ TYPE; },\n/* harmony export */   _TYPE_: function() { return /* binding */ _TYPE_; },\n/* harmony export */   action: function() { return /* binding */ action; },\n/* harmony export */   condition: function() { return /* binding */ condition; },\n/* harmony export */   items: function() { return /* binding */ items; },\n/* harmony export */   length: function() { return /* binding */ length; },\n/* harmony export */   name: function() { return /* binding */ name; },\n/* harmony export */   scope: function() { return /* binding */ scope; },\n/* harmony export */   type: function() { return /* binding */ type; }\n/* harmony export */ });\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 17:28:59\n * @LastEditTime: 2023-11-22 15:33:26\n * @Last Modified by: jianhang_he\n */\n\nvar _TYPE_ = '_Type_';\nvar TYPE = 'Type';\nvar Categories = 'Categories';\nvar Id = 'Id';\nvar Name = 'Name';\nvar ElementTypes = 'ElementTypes';\nvar BaseType = 'BaseType';\nvar PackageName = 'PackageName';\nvar Properties = 'Properties';\nvar Action = 'Action';\nvar items = 'items';\nvar condition = 'condition';\nvar action = 'action';\nvar Editor = 'Editor';\nvar type = 'type';\nvar Controls = 'Controls';\nvar PropertyName = 'PropertyName';\nvar name = 'name';\nvar length = 'length';\nvar scope = 'scope';\nvar MaxLength = 'MaxLength';\nvar DataScope = 'DataScope';\nvar Enum = 'Enum';\nvar ITEMS = 'Items';\nvar PARENTID = 'parentId';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTQwOTYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvY29uc3RhbnRzL3Byb3BuYW1lcy50cz8zN2YxIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDMtMDIgMTc6Mjg6NTlcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMTEtMjIgMTU6MzM6MjZcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5cbmV4cG9ydCBjb25zdCBfVFlQRV8gPSAnX1R5cGVfJ1xuZXhwb3J0IGNvbnN0IFRZUEUgPSAnVHlwZSdcbmV4cG9ydCBjb25zdCBDYXRlZ29yaWVzID0gJ0NhdGVnb3JpZXMnXG5leHBvcnQgY29uc3QgSWQgPSAnSWQnXG5leHBvcnQgY29uc3QgTmFtZSA9ICdOYW1lJ1xuZXhwb3J0IGNvbnN0IEVsZW1lbnRUeXBlcyA9ICdFbGVtZW50VHlwZXMnXG5leHBvcnQgY29uc3QgQmFzZVR5cGUgPSAnQmFzZVR5cGUnXG5leHBvcnQgY29uc3QgUGFja2FnZU5hbWUgPSAnUGFja2FnZU5hbWUnXG5leHBvcnQgY29uc3QgUHJvcGVydGllcyA9ICdQcm9wZXJ0aWVzJ1xuZXhwb3J0IGNvbnN0IEFjdGlvbiA9ICdBY3Rpb24nXG5leHBvcnQgY29uc3QgaXRlbXMgPSAnaXRlbXMnXG5leHBvcnQgY29uc3QgY29uZGl0aW9uID0gJ2NvbmRpdGlvbidcbmV4cG9ydCBjb25zdCBhY3Rpb24gPSAnYWN0aW9uJ1xuZXhwb3J0IGNvbnN0IEVkaXRvciA9ICdFZGl0b3InXG5leHBvcnQgY29uc3QgdHlwZSA9ICd0eXBlJ1xuZXhwb3J0IGNvbnN0IENvbnRyb2xzID0gJ0NvbnRyb2xzJ1xuZXhwb3J0IGNvbnN0IFByb3BlcnR5TmFtZSA9ICdQcm9wZXJ0eU5hbWUnXG5leHBvcnQgY29uc3QgbmFtZSA9ICduYW1lJ1xuZXhwb3J0IGNvbnN0IGxlbmd0aCA9ICdsZW5ndGgnXG5leHBvcnQgY29uc3Qgc2NvcGUgPSAnc2NvcGUnXG5leHBvcnQgY29uc3QgTWF4TGVuZ3RoID0gJ01heExlbmd0aCdcbmV4cG9ydCBjb25zdCBEYXRhU2NvcGUgPSAnRGF0YVNjb3BlJ1xuZXhwb3J0IGNvbnN0IEVudW0gPSAnRW51bSdcbmV4cG9ydCBjb25zdCBJVEVNUyA9ICdJdGVtcydcbmV4cG9ydCBjb25zdCBQQVJFTlRJRCA9ICdwYXJlbnRJZCdcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///94096\n");

/***/ }),

/***/ 90115:
/*!******************************!*\
  !*** ./src/context/index.ts ***!
  \******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DesignerContext: function() { return /* binding */ DesignerContext; },\n/* harmony export */   FlowViewContext: function() { return /* binding */ FlowViewContext; }\n/* harmony export */ });\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n\n\n// 设计器context，用于顶层向下传入数据\n\nvar DesignerContext = kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});\nDesignerContext.displayName = 'DesignerContext';\nvar FlowViewContext = kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});\nFlowViewContext.displayName = 'FlowViewContext';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTAxMTUuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBOztBQUdBOztBQVFBO0FBQ0E7QUFLQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvY29udGV4dC9pbmRleC50cz85OWRhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IElEYXRhLCBJTWV0YSB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcblxuLy8g6K6+6K6h5ZmoY29udGV4dO+8jOeUqOS6jumhtuWxguWQkeS4i+S8oOWFpeaVsOaNrlxuaW50ZXJmYWNlIElEZXNpZ25lckNvbnRleHQge1xuICBnZXRCYXNlQ29udHJvbEJ5VHlwZTogKHR5cGU6IHN0cmluZykgPT4gUmVhY3QuUmVhY3ROb2RlLFxuICBnZXREZXNpZ25lckRhdGFSZWY6ICgpID0+IHtba2V5OiBzdHJpbmddOiBhbnl9LFxuICB2aWV3S2V5OiBudW1iZXIsXG4gIGNoYW5nZURlc2lnbmVyVmlldzogYW55LFxuICBba2V5OiBzdHJpbmddOiBhbnlcbn1cbmV4cG9ydCBjb25zdCBEZXNpZ25lckNvbnRleHQgPSBSZWFjdC5jcmVhdGVDb250ZXh0PElEZXNpZ25lckNvbnRleHQ+KHt9IGFzIElEZXNpZ25lckNvbnRleHQpXG5EZXNpZ25lckNvbnRleHQuZGlzcGxheU5hbWUgPSAnRGVzaWduZXJDb250ZXh0J1xuXG5pbnRlcmZhY2UgSUZsb3dWaWV3Q29udGV4dCB7XG4gIFtrZXk6IHN0cmluZ106IGFueVxufVxuZXhwb3J0IGNvbnN0IEZsb3dWaWV3Q29udGV4dCA9IFJlYWN0LmNyZWF0ZUNvbnRleHQ8SUZsb3dWaWV3Q29udGV4dD4oe30gYXMgSUZsb3dWaWV3Q29udGV4dClcbkZsb3dWaWV3Q29udGV4dC5kaXNwbGF5TmFtZSA9ICdGbG93Vmlld0NvbnRleHQnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///90115\n");

/***/ }),

/***/ 82396:
/*!***********************************************!*\
  !*** ./src/controls/common/ErrorNodeWrap.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n\n\n/*\n * @Description:Error\n * @Author: jianhang_he\n * @Date: 2023-03-17 13:28:08\n * @LastEditTime: 2024-02-23 17:31:12\n * @Last Modified by: jianhang_he\n */\n\n\n\nvar ErrorNodeWrap = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.memo)(function (_ref) {\n  var children = _ref.children,\n    id = _ref.id;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_context__WEBPACK_IMPORTED_MODULE_3__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    errorContext = _useMemo.error;\n  var error = errorContext.getError();\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useState)(error[id] || {}),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    nodeError = _useState2[0],\n    setNodeError = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState3, 2),\n    tipsVisible = _useState4[0],\n    setTipsVisible = _useState4[1];\n  var panelRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n  var isFocusRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useRef)(false);\n  var handleErrorListener = function handleErrorListener(data) {\n    var curNodeError = errorContext.getError(id) || {};\n    setNodeError(curNodeError);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n    var removeErrorListener = errorContext.addErrorChangeListener(handleErrorListener);\n    return function () {\n      removeErrorListener();\n    };\n  }, []);\n  var onFocusPanel = function onFocusPanel() {\n    isFocusRef.current = true;\n  };\n  var onBlurPanel = function onBlurPanel() {\n    isFocusRef.current = false;\n    setTipsVisible(false);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n    // if (panelRef.current) {\n    //   panelRef.current.addEventListener('focus', onFocusPanel)\n    //   panelRef.current.addEventListener('blur', onBlurPanel)\n\n    //   return () => {\n    //     panelRef.current.removeEventListener('focus', onFocusPanel)\n    //     panelRef.current.removeEventListener('blur', onBlurPanel)\n    //   }\n    // }\n  }, []);\n  var handleMouseEnter = function handleMouseEnter() {\n    setTipsVisible(true);\n  };\n  var handleMouseLeave = function handleMouseLeave() {\n    setTimeout(function () {\n      if (!isFocusRef.current) {\n        setTipsVisible(false);\n      }\n    }, 1000);\n  };\n  var nodeErrorLen = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n    var len = 0;\n    _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(nodeError).forEach(function (item) {\n      var errorData = nodeError[item];\n      if (errorData) {\n        if (typeof errorData.msg === 'string') {\n          len = len + 1;\n        } else {\n          _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()((errorData === null || errorData === void 0 ? void 0 : errorData.msg) || {}).forEach(function (id) {\n            var itemErrorData = errorData.msg[id];\n            len = len + (itemErrorData === null || itemErrorData === void 0 ? void 0 : itemErrorData.length);\n          });\n        }\n      }\n    });\n    return len;\n  }, [nodeError]);\n\n  // 错误提示文案\n  var errorTips = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n    return \"\\u5B58\\u5728\\u6709\".concat(nodeErrorLen, \"\\u6761\\u9519\\u8BEF\\uFF0C\\u8BF7\\u4FEE\\u590D\\u540E\\u518D\\u53D1\\u5E03\\uFF01\");\n  }, [nodeErrorLen]);\n  if (nodeErrorLen === 0) return children;\n  var errorClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()({\n    'node-error': !!nodeError\n  });\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: errorClass\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: \"node-error-tips\",\n    onMouseEnter: handleMouseEnter,\n    onMouseLeave: handleMouseLeave\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: \"node-error-tips-panel\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    ref: panelRef,\n    className: classnames__WEBPACK_IMPORTED_MODULE_4___default()('node-error-tips-panel-content')\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", null, errorTips)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: \"node-error-tips-panel-hot\"\n  })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: \"node-error-tips-icon\"\n  }, nodeErrorLen)), children);\n});\nErrorNodeWrap.displayName = 'ErrorNodeWrap';\n/* harmony default export */ __webpack_exports__[\"default\"] = (ErrorNodeWrap);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///82396\n");

/***/ }),

/***/ 68084:
/*!********************************************!*\
  !*** ./src/controls/common/MoreHandle.tsx ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../constants/actionname */ 20572);\n/* harmony import */ var _hooks_useCopyAndPaste__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../hooks/useCopyAndPaste */ 8184);\n\n\n/*\n * @Description:更多操作\n * @Author: jianhang_he\n * @Date: 2023-03-07 10:23:23\n * @LastEditTime: 2023-12-19 18:07:31\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n// import styles from './MoreHandle.less'\n\nvar moreHandleMenuList = [{\n  key: 'copy',\n  name: '复制'\n}, {\n  key: 'delete',\n  name: '删除'\n}];\nvar DropdowntPanel = function DropdowntPanel(_ref) {\n  var data = _ref.data,\n    close = _ref.close,\n    onClick = _ref.onClick,\n    panelRef = _ref.panelRef,\n    prefixCls = _ref.prefixCls;\n  var handleItemClick = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (e, item) {\n    e.stopPropagation();\n    onClick === null || onClick === void 0 || onClick(item);\n    close === null || close === void 0 || close();\n  }, [close, onClick]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: prefixCls + '-list',\n    ref: panelRef\n  }, data && (data === null || data === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(data).call(data, function (item, index) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n      key: index,\n      className: prefixCls + '-list-item',\n      onClick: function onClick(e) {\n        return handleItemClick(e, item);\n      }\n    }, item.name);\n  })));\n};\n\n// 更多操作\nvar MoreHandle = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.memo)(function (_ref2) {\n  var prefix = _ref2.prefix,\n    id = _ref2.id;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_6__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.GlobalConfigContext),\n    showMessage = _useContext2.showMessage;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var moreBtnRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n  var panelRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n  var lisetnClickMainView = function lisetnClickMainView() {\n    setVisible(false);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_7__.SET_RIGHT_PANEL_VISIBLE, lisetnClickMainView);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_7__.SET_RIGHT_PANEL_VISIBLE, lisetnClickMainView);\n    };\n  }, []);\n\n  // 关闭面板\n  var handleClose = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n    setVisible(false);\n  }, []);\n  (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.useOnClickOutside)([panelRef], function () {\n    handleClose();\n  });\n\n  // 点解更多\n  var handleClickMoreBtn = function handleClickMoreBtn(e) {\n    e.stopPropagation();\n    setVisible(!visible);\n  };\n\n  /**\n   * 点解更多子项\n   * @param key\n   */\n  var handleMoreItemClick = function handleMoreItemClick(_ref3) {\n    var key = _ref3.key;\n    switch (key) {\n      case 'delete':\n        (0,_utils_control__WEBPACK_IMPORTED_MODULE_5__.deleteControlFn)([id], kdesignerApi);\n        break;\n      case 'copy':\n        (0,_utils_control__WEBPACK_IMPORTED_MODULE_5__.copyControlFn)([id], kdesignerApi, showMessage, _hooks_useCopyAndPaste__WEBPACK_IMPORTED_MODULE_8__.setCopyContent);\n        break;\n      default:\n        console.log('handleMoreItemClick', key);\n        break;\n    }\n    setVisible(false);\n  };\n  var moreHandleMenu = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__.Dropdown.Menu, null, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(moreHandleMenuList).call(moreHandleMenuList, function (_ref4) {\n      var key = _ref4.key,\n        name = _ref4.name;\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__.Dropdown.Item, {\n        key: key,\n        onClick: function onClick(e) {\n          return handleMoreItemClick(e, key);\n        }\n      }, name);\n    }));\n  }, []);\n\n  // const node = document.querySelector(`[data-id='${id}']`)\n\n  return (\n    /*#__PURE__*/\n    // <Dropdown\n    //   visible={visible}\n    //   onVisibleChange={(vi) => setVisible(vi)}\n    //   menu={moreHandleMenu}\n    //   trigger='click'\n    //   scrollHidden\n    //   getPopupContainer={(locatorNode) => document.querySelector('#nocodeflow-main')}\n    // >\n    // <Button\n    //   ref={moreBtnRef}\n    //   title='更多操作：复制、删除等'\n    //   className={`${prefix}_header_more`}\n    //   type='text'\n    //   ghost\n    //   onClick={handleClickMoreBtn}\n    // >\n    kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n      className: \"\".concat(prefix, \"_header_more\"),\n      onClick: handleClickMoreBtn\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__.Icon, {\n      title: \"\\u70B9\\u51FB\\u66F4\\u591A\\u64CD\\u4F5C\\uFF1A\\u5220\\u9664\\u7B49\",\n      className: \"\".concat(prefix, \"_header_more_icon\"),\n      prefix: \"designericon\",\n      type: \"gengduo3\"\n    }), visible && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(DropdowntPanel, {\n      prefixCls: \"\".concat(prefix, \"_header_more\"),\n      data: moreHandleMenuList,\n      panelRef: panelRef,\n      onClose: handleClose,\n      onClick: handleMoreItemClick\n    }))\n  );\n});\nMoreHandle.displayName = 'MoreHandle';\n/* harmony default export */ __webpack_exports__[\"default\"] = (MoreHandle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///68084\n");

/***/ }),

/***/ 95104:
/*!********************************************!*\
  !*** ./src/controls/common/NodeHeader.tsx ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _MoreHandle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MoreHandle */ 68084);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-10 16:17:49\n * @LastEditTime: 2023-05-11 19:06:28\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n/**\n * 节点头部\n */\nvar NodeHeader = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (_ref) {\n  var className = _ref.className,\n    name = _ref.name,\n    id = _ref.id,\n    prefix = _ref.prefix,\n    _ref$showMoreBtn = _ref.showMoreBtn,\n    showMoreBtn = _ref$showMoreBtn === void 0 ? true : _ref$showMoreBtn,\n    type = _ref._Type_;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_2__.DesignerContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    prefixCls = _useContext.prefixCls,\n    flowStatus = _useContext.flowStatus,\n    getControlIconMap = _useContext.getControlIconMap;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_1__.GlobalConfigContext),\n    getOutlineItemIcon = _useContext2.getOutlineItemIcon;\n  var rootClass = getPrefixCls && getPrefixCls(prefixCls, 'controls');\n  var headerClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(\"\".concat(prefix || rootClass, \"_header\"), className);\n\n  // 头部背景色\n  var headerBgc = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {\n    return getControlIconMap(type).bgc;\n  }, [type]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: headerClassName,\n    style: {\n      backgroundColor: headerBgc\n    }\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: \"\".concat(rootClass, \"_header_title\"),\n    title: name\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    className: \"\".concat(rootClass, \"_header_title_icon\")\n  }, getOutlineItemIcon(type)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    className: \"name\"\n  }, name)), !(0,_utils__WEBPACK_IMPORTED_MODULE_4__.isReadonlyStatus)(flowStatus) && showMoreBtn && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MoreHandle__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n    prefix: rootClass,\n    id: id\n  }));\n});\nNodeHeader.displayName = 'NodeHeader';\n/* harmony default export */ __webpack_exports__[\"default\"] = (NodeHeader);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTUxMDQuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBV0E7QUFDQTtBQUNBO0FBQ0E7QUFPQTtBQUxBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBR0E7QUFFQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvY29udHJvbHMvY29tbW9uL05vZGVIZWFkZXIudHN4P2Q5MDgiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0wMy0xMCAxNjoxNzo0OVxuICogQExhc3RFZGl0VGltZTogMjAyMy0wNS0xMSAxOTowNjoyOFxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCwgeyBGQywgbWVtbywgdXNlQ29udGV4dCwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgR2xvYmFsQ29uZmlnQ29udGV4dCB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uLy4uL2NvbnRleHQnXG5pbXBvcnQgTW9yZUhhbmRsZSBmcm9tICcuL01vcmVIYW5kbGUnXG5pbXBvcnQgeyBpc1JlYWRvbmx5U3RhdHVzIH0gZnJvbSAnLi4vLi4vdXRpbHMnXG5cbmltcG9ydCBjbGFzc05hbWVzIGZyb20gJ2NsYXNzbmFtZXMnXG5cbmludGVyZmFjZSBOb2RlSGVhZGVyUHJvcHNBcGkge1xuICBjbGFzc05hbWU/OiBzdHJpbmcsXG4gIG5hbWU6IHN0cmluZyxcbiAgaWQ6IHN0cmluZyxcbiAgcHJlZml4OiBzdHJpbmcsXG4gIHNob3dNb3JlQnRuPzogYm9vbGVhbixcbiAgX1R5cGVfOiBzdHJpbmdcbn1cblxuLyoqXG4gKiDoioLngrnlpLTpg6hcbiAqL1xuY29uc3QgTm9kZUhlYWRlcjogRkM8Tm9kZUhlYWRlclByb3BzQXBpPiA9IG1lbW8oKHtcbiAgY2xhc3NOYW1lLFxuICBuYW1lLFxuICBpZCxcbiAgcHJlZml4LFxuICBzaG93TW9yZUJ0biA9IHRydWUsXG4gIF9UeXBlXzogdHlwZVxufSkgPT4ge1xuICBjb25zdCB7IGdldFByZWZpeENscywgcHJlZml4Q2xzLCBmbG93U3RhdHVzLCBnZXRDb250cm9sSWNvbk1hcCB9ID0gdXNlQ29udGV4dChEZXNpZ25lckNvbnRleHQpXG4gIGNvbnN0IHsgZ2V0T3V0bGluZUl0ZW1JY29uIH0gPSB1c2VDb250ZXh0KEdsb2JhbENvbmZpZ0NvbnRleHQpXG4gIGNvbnN0IHJvb3RDbGFzcyA9IGdldFByZWZpeENscyAmJiBnZXRQcmVmaXhDbHMocHJlZml4Q2xzLCAnY29udHJvbHMnKVxuXG4gIGNvbnN0IGhlYWRlckNsYXNzTmFtZSA9IGNsYXNzTmFtZXMoYCR7cHJlZml4IHx8IHJvb3RDbGFzc31faGVhZGVyYCwgY2xhc3NOYW1lKVxuXG4gIC8vIOWktOmDqOiDjOaZr+iJslxuICBjb25zdCBoZWFkZXJCZ2MgPSB1c2VNZW1vKCgpID0+IHtcbiAgICByZXR1cm4gZ2V0Q29udHJvbEljb25NYXAodHlwZSkuYmdjXG4gIH0sIFt0eXBlXSlcblxuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtoZWFkZXJDbGFzc05hbWV9IHN0eWxlPXt7IGJhY2tncm91bmRDb2xvcjogaGVhZGVyQmdjIH19PlxuICAgICAgPGRpdiBjbGFzc05hbWU9e2Ake3Jvb3RDbGFzc31faGVhZGVyX3RpdGxlYH0gdGl0bGU9e25hbWV9PlxuICAgICAgICA8c3BhbiBjbGFzc05hbWU9e2Ake3Jvb3RDbGFzc31faGVhZGVyX3RpdGxlX2ljb25gfT57Z2V0T3V0bGluZUl0ZW1JY29uKHR5cGUpfTwvc3Bhbj5cbiAgICAgICAgPHNwYW4gY2xhc3NOYW1lPSduYW1lJz57bmFtZX08L3NwYW4+XG4gICAgICA8L2Rpdj5cbiAgICAgIHshaXNSZWFkb25seVN0YXR1cyhmbG93U3RhdHVzKSAmJiBzaG93TW9yZUJ0biAmJiA8TW9yZUhhbmRsZSBwcmVmaXg9e3Jvb3RDbGFzc30gaWQ9e2lkfSAvPn1cbiAgICA8L2Rpdj5cbiAgKVxufSlcblxuTm9kZUhlYWRlci5kaXNwbGF5TmFtZSA9ICdOb2RlSGVhZGVyJ1xuXG5leHBvcnQgZGVmYXVsdCBOb2RlSGVhZGVyXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///95104\n");

/***/ }),

/***/ 3068:
/*!********************************************!*\
  !*** ./src/controls/edge/SequenceFlow.tsx ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../constants/actionname */ 20572);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n/* harmony import */ var _SequenceFlow_less__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SequenceFlow.less */ 34256);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_10__);\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 11:02:08\n * @LastEditTime: 2023-06-09 14:14:42\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n\nvar foreignObjectSize = 50;\nvar SequenceFlow = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.memo)(function (_ref) {\n  var id = _ref.id,\n    sourceX = _ref.sourceX,\n    sourceY = _ref.sourceY,\n    targetX = _ref.targetX,\n    targetY = _ref.targetY,\n    sourcePosition = _ref.sourcePosition,\n    targetPosition = _ref.targetPosition,\n    _ref$style = _ref.style,\n    style = _ref$style === void 0 ? {} : _ref$style,\n    markerEnd = _ref.markerEnd,\n    data = _ref.data;\n  // const { sendSyncData } = useContext(FlowViewContext)\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_context__WEBPACK_IMPORTED_MODULE_5__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data,\n    selectionApi = _useMemo.selection;\n  var parentId = data.parentId;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(parentId),\n    dropEvent = _useGetDomProps.dropEvent;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    isActive = _useState2[0],\n    setIsActive = _useState2[1];\n  var rootId = dataContext.getRootId(); // 这个根节点id为空\n  var parentNode = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n    return dataContext.findControl(parentId);\n  }, [dataContext, parentId]);\n  var selectionCallBack = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (selection) {\n    var value = selection.value;\n    if (!value[0] || value[0] !== rootId) {\n      setIsActive(false);\n    }\n  }, [rootId]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    var removeSelectionListener = selectionApi.addSelectChangeListener(selectionCallBack);\n    return function () {\n      removeSelectionListener();\n    };\n  }, []);\n  var onEdgeClick = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (evt) {\n    evt.stopPropagation();\n    // sendSyncData()\n    selectionApi.setSelect([]);\n    var _ref2 = data || {},\n      parentId = _ref2.parentId,\n      id = _ref2.id;\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.eventBus.emit(_constants_actionname__WEBPACK_IMPORTED_MODULE_6__.CLICK_ADD_NODE, {\n      parentId: parentId,\n      childId: id\n    }); // 不用用Symbol作为key值，这个eventBus有问题\n    setIsActive(true);\n  }, [rootId, data]);\n  var positionInfo = {\n    sourceX: sourceX,\n    sourceY: sourceY,\n    sourcePosition: sourcePosition,\n    targetX: targetX,\n    targetY: targetY,\n    targetPosition: targetPosition\n  };\n\n  // 生成路径\n  var edgePath = (0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_2__.getSmoothStepPath)(positionInfo);\n  // 获取线的中心位置\n  // const [centerX, centerY] = getEdgeCenter(positionInfo)\n\n  // 是否显示加号按钮\n  var showAddBtn = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n    if (!parentNode) return false;\n    return !(parentNode._Type_ === _utils_nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_GATEWAY && !parentNode.isNullNode);\n  }, [parentNode]);\n\n  // 点击空白拖拽区域时，需要隐藏抽屉，清空选择\n  var hidePannel = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (e) {\n    e.persist();\n    selectionApi.setSelect([]);\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.eventBus.emit(_constants_actionname__WEBPACK_IMPORTED_MODULE_6__.SET_RIGHT_PANEL_VISIBLE, {\n      visible: false\n    });\n  }, []);\n\n  // console.log('sequenceFLow', centerY, positionInfo)\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"path\", {\n    id: id,\n    style: style,\n    className: \"react-flow__edge-path\",\n    d: edgePath,\n    markerEnd: markerEnd\n  }), showAddBtn ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"foreignObject\", {\n    width: 280,\n    height: 80,\n    x: sourceX - 140,\n    y: sourceY + (targetY - sourceY) / 2 - 40,\n    className: \"add_node_foreignobject\",\n    onClick: hidePannel\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"div\", dropEvent, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_10___default()('add_node', {\n      add_node_active: isActive\n    }),\n    onClick: function onClick(event) {\n      return onEdgeClick(event);\n    }\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_3__.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"jia4\"\n  })))) : null);\n});\nSequenceFlow.displayName = 'SequenceFlow';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.ErrorBoundaryWrap)(SequenceFlow, 'SequenceFlow'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///3068\n");

/***/ }),

/***/ 82684:
/*!*******************************!*\
  !*** ./src/controls/index.ts ***!
  \*******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EDGE_TYPE: function() { return /* binding */ EDGE_TYPE; },\n/* harmony export */   NODE_TYPE: function() { return /* binding */ NODE_TYPE; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/nodeType */ 1300);\n/* harmony import */ var _controls_node_StartSignalEvent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../controls/node/StartSignalEvent */ 27380);\n/* harmony import */ var _controls_node_CalculateAutoTask__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../controls/node/CalculateAutoTask */ 26344);\n/* harmony import */ var _controls_node_NoCodeNotifyTask__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../controls/node/NoCodeNotifyTask */ 46200);\n/* harmony import */ var _controls_node_BranchNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../controls/node/BranchNode */ 58872);\n/* harmony import */ var _controls_node_BranchStartNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../controls/node/BranchStartNode */ 7636);\n/* harmony import */ var _controls_node_NullNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../controls/node/NullNode */ 42616);\n/* harmony import */ var _controls_node_EndNoneEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../controls/node/EndNoneEvent */ 75500);\n/* harmony import */ var _controls_node_NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../controls/node/NoCodeAuditTask */ 19444);\n/* harmony import */ var _controls_node_NoCodeUserTask__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../controls/node/NoCodeUserTask */ 25716);\n/* harmony import */ var _node_QueryDataAutoTask__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node/QueryDataAutoTask */ 43244);\n/* harmony import */ var _node_UpdateBillAutoTask__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node/UpdateBillAutoTask */ 68896);\n/* harmony import */ var _node_ApiInvokeAutoTask__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./node/ApiInvokeAutoTask */ 90668);\n/* harmony import */ var _controls_edge_SequenceFlow__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../controls/edge/SequenceFlow */ 3068);\n\nvar _NODE_TYPE;\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 16:50:53\n * @LastEditTime: 2024-05-07 13:58:09\n * @Last Modified by: jianhang_he\n */\n// import {\n//   START_SIGNAL_EVENT,\n//   CALCULATE_AUTO_TASK,\n//   QUERY_DATA_AUTO_TASK,\n//   NOCODE_AUDIT_TASK,\n//   NOCODE_NOTIFY_TASK,\n//   NULL_NODE_TYPE,\n//   BRANCH_START_NODE_TYPE,\n//   BRANCH_NODE_TYPE,\n//   END_NONE_EVENT,\n//   SEQUENCEFLOW\n// } from '../utils/nodeType'\n\n\n\n// import ActionNode from '../controls/node/ActionNode'\n\n\n\n\n\n\n // 审批表单记录\n // 录入表单记录\n\n\n\n// import CustomJSONTask from './node/CustomJSONTask'\n\n\n\n// 自定义节点\nvar NODE_TYPE = (_NODE_TYPE = {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_NODE_TYPE, _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.START_SIGNAL_EVENT, _controls_node_StartSignalEvent__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.END_NONE_EVENT, _controls_node_EndNoneEvent__WEBPACK_IMPORTED_MODULE_8__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NOCODE_GATEWAY, _controls_node_BranchStartNode__WEBPACK_IMPORTED_MODULE_6__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NOCODE_JUDGE_TASK, _controls_node_BranchNode__WEBPACK_IMPORTED_MODULE_5__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NULL_NODE_TYPE, _controls_node_NullNode__WEBPACK_IMPORTED_MODULE_7__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.QUERY_DATA_AUTO_TASK, _node_QueryDataAutoTask__WEBPACK_IMPORTED_MODULE_11__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NEW_BILL_AUTO_TASK, _node_QueryDataAutoTask__WEBPACK_IMPORTED_MODULE_11__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.UPDATE_BILL_AUTO_TASK, _node_UpdateBillAutoTask__WEBPACK_IMPORTED_MODULE_12__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NOCODE_AUDIT_TASK, _controls_node_NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_9__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NOCODE_USER_TASK, _controls_node_NoCodeUserTask__WEBPACK_IMPORTED_MODULE_10__[\"default\"]), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_NODE_TYPE, _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NOCODE_NOTIFY_TASK, _controls_node_NoCodeNotifyTask__WEBPACK_IMPORTED_MODULE_4__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.CALCULATE_AUTO_TASK, _controls_node_CalculateAutoTask__WEBPACK_IMPORTED_MODULE_3__[\"default\"]), _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.NOCODE_API_INVOKE_AUTO_TASK, _node_ApiInvokeAutoTask__WEBPACK_IMPORTED_MODULE_13__[\"default\"]));\n// 自定义连线\nvar EDGE_TYPE = (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.SEQUENCEFLOW, _controls_edge_SequenceFlow__WEBPACK_IMPORTED_MODULE_14__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///82684\n");

/***/ }),

/***/ 90668:
/*!*************************************************!*\
  !*** ./src/controls/node/ApiInvokeAutoTask.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../hooks/useGetEnumName */ 91575);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__);\n\n\n\n\n\n\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Author: wbw\n * @Email: wbw@kingdee.com\n * @Date: 2022-04-02 09:53:57\n * @Last Modified by: fjr\n * @LastEditTime: 2024-04-18 15:42:19\n * @Description: ...\n */\n\n\n\n\n\n\n\n\n\n\n\nvar _ref = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16__.treeUtils || {},\n  dfs = _ref.dfs;\nvar ApiInvokeAutoTask = function ApiInvokeAutoTask(_ref2) {\n  var data = _ref2.data,\n    id = _ref2.id;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useContext)(_context__WEBPACK_IMPORTED_MODULE_11__.DesignerContext),\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data,\n    metaApi = _useMemo.meta;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useGetDomProps, _excluded);\n  var displayData = _objectSpread(_objectSpread({}, data), data._disp_ || {});\n  var getVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useCallback)(function () {\n    return getPreNodeVariablesById(id);\n  }, [id]);\n  var urlLabel = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isVarStr)(displayData.url)) {\n      var _dfs;\n      var treeData = getVariablesTree();\n      return ((_dfs = dfs(treeData, function (node) {\n        return node.fieldName === displayData.url;\n      })) === null || _dfs === void 0 ? void 0 : _dfs.title) || '';\n    }\n    return displayData.url;\n  }, [getVariablesTree, displayData.url]);\n  var apiModeDisplay = (0,_hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(data._Type_, 'apiMode')(data.apiMode, dataContext);\n  var authModeDisplay = (0,_hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(data._Type_, 'authMode')(data.authMode, dataContext);\n\n  // OAuth2.0（客户端模式）显示：\n  // API模式\n  // 认证方式\n  // 请求方式\n\n  // 基本认证模式显示：\n  // API模式\n  // 认证方式\n\n  // 请求模式显示：\n  // API模式\n  // 请求方式\n\n  var apiMode = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    if ((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.isUndefined)(data.apiMode)) {\n      var _metaApi$getControlMe;\n      return (_metaApi$getControlMe = metaApi.getControlMetaEditor(data._Type_, 'apiMode')) === null || _metaApi$getControlMe === void 0 ? void 0 : _metaApi$getControlMe.Default;\n    }\n    return data.apiMode;\n  }, [data]);\n  var authMode = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    if ((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.isUndefined)(data.authMode)) {\n      var _metaApi$getControlMe2;\n      return (_metaApi$getControlMe2 = metaApi.getControlMetaEditor(data._Type_, 'authMode')) === null || _metaApi$getControlMe2 === void 0 ? void 0 : _metaApi$getControlMe2.Default;\n    }\n    return data.authMode;\n  }, [data]);\n  var method = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    if ((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.isUndefined)(data.method)) {\n      var _metaApi$getControlMe3;\n      return (_metaApi$getControlMe3 = metaApi.getControlMetaEditor(data._Type_, 'method')) === null || _metaApi$getControlMe3 === void 0 ? void 0 : _metaApi$getControlMe3.Default;\n    }\n    return data.method;\n  }, [data]);\n\n  // console.log('apiMode', data.number, apiMode)\n\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_12__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"API\\u6A21\\u5F0F\\uFF1A\"), apiModeDisplay), apiMode === 'auth' && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u8BA4\\u8BC1\\u65B9\\u5F0F\\uFF1A\"), authModeDisplay), (apiMode === 'request' || authMode === 'oauth2') && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u8BF7\\u6C42\\u65B9\\u5F0F\\uFF1A\"), method), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content_des\")\n  }, data.documentation || '')), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(ApiInvokeAutoTask, 'ApiInvokeAutoTask'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///90668\n");

/***/ }),

/***/ 58872:
/*!******************************************!*\
  !*** ./src/controls/node/BranchNode.tsx ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/control */ 3700);\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 16:50:53\n * @LastEditTime: 2023-11-22 10:44:01\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n/**\n * 分支节点\n * @param param0\n * @returns\n */\nvar BranchNode = function BranchNode(_ref) {\n  var _context, _data$filter;\n  var data = _ref.data,\n    id = _ref.id;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_useGetDomProps, _excluded);\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useContext)(_context__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data;\n  var childrens = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(_context = dataContext.getSubControls(data.parentId)).call(_context, function (item) {\n    return item._Type_ === _utils_nodeType__WEBPACK_IMPORTED_MODULE_10__.NOCODE_JUDGE_TASK;\n  });\n  var parentControl = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return dataContext.findControl(data.parentId) || {};\n  }, [data.parentId]);\n  // 父节点是分支节点，不允许拖拽\n  var isBranchNodeParent = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return (0,_utils_control__WEBPACK_IMPORTED_MODULE_11__.isBranchNode)(parentControl);\n  }, [parentControl]);\n  var showMoreBtn = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return isBranchNodeParent ? childrens.length > 2 : true;\n  }, [childrens, isBranchNodeParent]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, isBranchNodeParent ? {} : dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_8__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    prefix: prefixClass,\n    showMoreBtn: showMoreBtn\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", null, \"\\u5224\\u65AD\\u6761\\u4EF6\\uFF1A\"), (data === null || data === void 0 || (_data$filter = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(data)) === null || _data$filter === void 0 ? void 0 : _data$filter.length) || 0, \"\\u9879\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content_des\")\n  }, data.documentation || '')), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.ErrorBoundaryWrap)(BranchNode, 'flow-branch-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTg4NzIuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBR0E7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQUE7QUFHQTtBQUFBO0FBRUE7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBSUE7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2NvbnRyb2xzL25vZGUvQnJhbmNoTm9kZS50c3g/MTFkMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTAzLTAyIDE2OjUwOjUzXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTExLTIyIDEwOjQ0OjAxXG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IEZDLCB1c2VDb250ZXh0LCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBIYW5kbGUsIE5vZGVQcm9wcywgUG9zaXRpb24gfSBmcm9tICdyZWFjdC1mbG93LXJlbmRlcmVyJ1xuaW1wb3J0IHsgRXJyb3JCb3VuZGFyeVdyYXAgfSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5pbXBvcnQgdXNlR2V0RG9tUHJvcHMgZnJvbSAnLi4vLi4vaG9va3MvdXNlR2V0RG9tUHJvcHMnXG5pbXBvcnQgRXJyb3JOb2RlV3JhcCBmcm9tICcuLi9jb21tb24vRXJyb3JOb2RlV3JhcCdcbmltcG9ydCBOb2RlSGVhZGVyIGZyb20gJy4uL2NvbW1vbi9Ob2RlSGVhZGVyJ1xuaW1wb3J0IHsgRGVzaWduZXJDb250ZXh0IH0gZnJvbSAnLi4vLi4vY29udGV4dCdcbmltcG9ydCB7IE5PQ09ERV9KVURHRV9UQVNLLCBOT0NPREVfR0FURVdBWSB9IGZyb20gJy4uLy4uL3V0aWxzL25vZGVUeXBlJ1xuaW1wb3J0IHsgaXNCcmFuY2hOb2RlIH0gZnJvbSAnLi4vLi4vdXRpbHMvY29udHJvbCdcblxuLyoqXG4gKiDliIbmlK/oioLngrlcbiAqIEBwYXJhbSBwYXJhbTBcbiAqIEByZXR1cm5zXG4gKi9cbmNvbnN0IEJyYW5jaE5vZGU6IEZDPE5vZGVQcm9wcz4gPSAoeyBkYXRhLCBpZCB9KSA9PiB7XG4gIGNvbnN0IHsgZHJhZ0V2ZW50LCBwcmVmaXhDbGFzcywgLi4ub3RoZXJQcm9wcyB9ID0gdXNlR2V0RG9tUHJvcHMoaWQpXG4gIGNvbnN0IHsgZ2V0S2Rlc2lnbmVyQXBpIH0gPSB1c2VDb250ZXh0KERlc2lnbmVyQ29udGV4dClcbiAgY29uc3QgeyBkYXRhOiBkYXRhQ29udGV4dCB9ID0gdXNlTWVtbygoKSA9PiBnZXRLZGVzaWduZXJBcGkoKSwgW10pXG4gIGNvbnN0IGNoaWxkcmVucyA9IGRhdGFDb250ZXh0LmdldFN1YkNvbnRyb2xzKGRhdGEucGFyZW50SWQpLmZpbHRlcigoaXRlbTphbnkpID0+IGl0ZW0uX1R5cGVfID09PSBOT0NPREVfSlVER0VfVEFTSylcbiAgY29uc3QgcGFyZW50Q29udHJvbCA9IHVzZU1lbW8oKCkgPT4gZGF0YUNvbnRleHQuZmluZENvbnRyb2woZGF0YS5wYXJlbnRJZCkgfHwge30sIFtkYXRhLnBhcmVudElkXSlcbiAgLy8g54i26IqC54K55piv5YiG5pSv6IqC54K577yM5LiN5YWB6K645ouW5ou9XG4gIGNvbnN0IGlzQnJhbmNoTm9kZVBhcmVudCA9IHVzZU1lbW8oKCkgPT4gaXNCcmFuY2hOb2RlKHBhcmVudENvbnRyb2wpLCBbcGFyZW50Q29udHJvbF0pXG4gIGNvbnN0IHNob3dNb3JlQnRuID0gdXNlTWVtbygoKSA9PiBpc0JyYW5jaE5vZGVQYXJlbnQgPyBjaGlsZHJlbnMubGVuZ3RoID4gMiA6IHRydWUsIFtjaGlsZHJlbnMsIGlzQnJhbmNoTm9kZVBhcmVudF0pXG4gIHJldHVybiAoXG4gICAgPEVycm9yTm9kZVdyYXAgaWQ9e2lkfT5cbiAgICAgIHsvKiog54i26IqC54K55piv5YiG5pSv6IqC54K577yM5LiN5YWB6K645ouW5ou9ICovfVxuICAgICAgPGRpdiB7Li4uKGlzQnJhbmNoTm9kZVBhcmVudCA/IHt9IDogZHJhZ0V2ZW50KX0gey4uLm90aGVyUHJvcHN9PlxuICAgICAgICA8SGFuZGxlIHR5cGU9J3RhcmdldCcgcG9zaXRpb249e1Bvc2l0aW9uLlRvcH0gaWQ9e2lkICsgJ3QnfSAvPlxuICAgICAgICA8Tm9kZUhlYWRlclxuICAgICAgICAgIHByZWZpeD17cHJlZml4Q2xhc3N9XG4gICAgICAgICAgc2hvd01vcmVCdG49e3Nob3dNb3JlQnRufVxuICAgICAgICAgIHsuLi5kYXRhfVxuICAgICAgICAvPlxuICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7cHJlZml4Q2xhc3N9X2NvbnRlbnRgfT5cbiAgICAgICAgICA8ZGl2PjxzcGFuPuWIpOaWreadoeS7tu+8mjwvc3Bhbj57ZGF0YT8uZmlsdGVyPy5sZW5ndGggfHwgMH3pobk8L2Rpdj5cbiAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7cHJlZml4Q2xhc3N9X2NvbnRlbnRfZGVzYH0+e2RhdGEuZG9jdW1lbnRhdGlvbiB8fCAnJ308L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxIYW5kbGUgdHlwZT0nc291cmNlJyBwb3NpdGlvbj17UG9zaXRpb24uQm90dG9tfSBpZD17aWQgKyAnYid9IC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L0Vycm9yTm9kZVdyYXA+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgRXJyb3JCb3VuZGFyeVdyYXAoQnJhbmNoTm9kZSwgJ2Zsb3ctYnJhbmNoLW5vZGUnKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///58872\n");

/***/ }),

/***/ 7636:
/*!***********************************************!*\
  !*** ./src/controls/node/BranchStartNode.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils */ 41232);\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 分支节点\n * @param param0\n * @returns\n */\nvar BranchStartNode = function BranchStartNode(_ref) {\n  var _context;\n  var data = _ref.data,\n    id = _ref.id,\n    selected = _ref.selected;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useContext)(_context__WEBPACK_IMPORTED_MODULE_6__.DesignerContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    prefixCls = _useContext.prefixCls,\n    getKdesignerApi = _useContext.getKdesignerApi,\n    flowStatus = _useContext.flowStatus;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data,\n    selection = kdesignerApi.selection,\n    dataFactory = kdesignerApi.dataFactory;\n\n  // const { hiddenChildren } = useContext(FlowViewContext)\n  // const visible = useRef(true)\n  var rootClass = getPrefixCls && getPrefixCls(prefixCls, 'controls-node');\n  // console.log('BranchStartNode', selected, id)\n\n  var isReadonly = (0,_utils__WEBPACK_IMPORTED_MODULE_10__.isReadonlyStatus)(flowStatus);\n\n  // 添加分支节点\n  var handleAdd = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function () {\n    var datas = dataContext.getData();\n    var childrens = dataContext.getSubControls(id); // 子节点\n    var nullNode = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(childrens).call(childrens, function (item) {\n      return item.isNullNode;\n    })[0]; // 空节点\n    // 新分支信息\n    var newControl = dataFactory({\n      type: _utils_nodeType__WEBPACK_IMPORTED_MODULE_9__.NOCODE_JUDGE_TASK,\n      parentId: id\n    });\n    dataContext.addControl((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.createAddAction)((0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(newControl, {\n      rootKey: datas.key,\n      childId: nullNode.id,\n      name: '判断分支'\n    }))).then(function (actions) {\n      // 节点添加成功后选中当前添加的节点\n      if (actions[0]) {\n        var realControl = actions[0].value;\n        if (realControl._Type_ === 'NoCodeGateway') {\n          var judgeNodeControl = actions[1].value;\n          selection.setSelect([judgeNodeControl === null || judgeNodeControl === void 0 ? void 0 : judgeNodeControl.id]);\n        } else {\n          selection.setSelect(Array.isArray(realControl) ? [realControl[0].id] : [realControl.id]);\n        }\n      }\n    });\n  }, [id, data, dataFactory, dataContext, selection]);\n\n  // 删除判断分支节点\n  var handleDel = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function () {\n    // 不能getAllSubControls，这样会把空节点后面的节点都找到了，不符合逻辑\n    var subControls = dataContext.getSubControls(id) || [];\n    var delectIds = [id];\n    for (var index = 0; index < subControls.length; index++) {\n      var _id = subControls[index].id;\n      // 改用getSubControls之后无需判断节点节点了\n      // if (!id.includes(END_NONE_EVENT)) {\n      if (_id) {\n        delectIds.push(_id);\n      }\n      // }\n    }\n    _utils_control__WEBPACK_IMPORTED_MODULE_7__.deleteControlFn === null || _utils_control__WEBPACK_IMPORTED_MODULE_7__.deleteControlFn === void 0 || (0,_utils_control__WEBPACK_IMPORTED_MODULE_7__.deleteControlFn)(delectIds, kdesignerApi);\n  }, [id, kdesignerApi, dataContext, _utils_control__WEBPACK_IMPORTED_MODULE_7__.deleteControlFn]);\n\n  // 点击切换并行或互斥\n  var handleSwitch = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function () {\n    var _data$leaveMode = data.leaveMode,\n      leaveMode = _data$leaveMode === void 0 ? 'parallel' : _data$leaveMode;\n    // 并行：parallel，互斥：exclusion\n    leaveMode = leaveMode === 'parallel' ? 'exclusion' : 'parallel';\n    var actions = []; // 更新指令组\n    var controls = dataContext.getSubControls(id); // 取一级子组件\n    var seq = 0;\n    console.log('handleSwitch', controls, seq);\n    // 给所有判断节点标上顺序属性\n    controls.forEach(function (item) {\n      if (item._Type_ === _utils_nodeType__WEBPACK_IMPORTED_MODULE_9__.NOCODE_JUDGE_TASK) {\n        seq++;\n        actions.push([item.id, {\n          seq: seq\n        }]);\n      }\n    });\n    actions.push([id, {\n      leaveMode: leaveMode\n    }]);\n    dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.createUpdateAction)(actions));\n  }, [data, id, designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.createUpdateAction, dataContext]);\n  // 是否否互斥(唯一)\n  var isExclusion = (data === null || data === void 0 ? void 0 : data.leaveMode) === 'exclusion';\n  var btnText = ['兼容', '唯一'];\n  var des = ['满足条件的分支依次执行', '从左到右，只执行第一个满足条件'];\n  var tips = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = \"\\u5207\\u6362\\u4E3A\".concat(btnText[Number(!isExclusion)], \"\\u5206\\u652F\\uFF1A\")).call(_context, des[Number(!isExclusion)]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"\".concat(rootClass, \"-branch-start\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Top\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"diamond\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"p\", null)), !isReadonly ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"change\",\n    title: tips,\n    onClick: handleSwitch\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__.Icon, {\n    type: \"qiehuan\",\n    prefix: \"nocodeplatformicon\"\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", null, btnText[Number(isExclusion)])), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"add\",\n    title: \"\\u6DFB\\u52A0\\u65B0\\u7684\\u5206\\u652F\",\n    onClick: handleAdd\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__.Icon, {\n    type: \"zengjia-yuan\",\n    prefix: \"ncicon\"\n  })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"delete\",\n    title: \"\\u5220\\u9664\\u5F53\\u524D\\u5206\\u652F\",\n    onClick: handleDel\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__.Icon, {\n    type: \"shanchu2\",\n    prefix: \"nocodeplatformicon\"\n  }))) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"change_readonly\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", null, btnText[Number(isExclusion)])), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Left\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Right\n  }));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.ErrorBoundaryWrap)(BranchStartNode, 'flow-branch-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///7636\n");

/***/ }),

/***/ 26344:
/*!*************************************************!*\
  !*** ./src/controls/node/CalculateAutoTask.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getExpressionName: function() { return /* binding */ getExpressionName; },\n/* harmony export */   isCustom: function() { return /* binding */ isCustom; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../hooks/useGetEnumName */ 91575);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n\n\n\n\n\n\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 16:50:53\n * @LastEditTime: 2024-02-04 16:11:20\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n// 自定义\nvar isCustom = function isCustom(name) {\n  return name === '$assignment';\n};\n\n// 获取表达式名称\nvar getExpressionName = function getExpressionName(defaultName, field) {\n  var _field$_disp_;\n  if (!field) return defaultName;\n\n  // 自定义的时候使用对象名称去显示\n  if (isCustom(field === null || field === void 0 ? void 0 : field.assignment) && field !== null && field !== void 0 && field.customVarName) {\n    return field === null || field === void 0 ? void 0 : field.customVarName;\n  }\n  return (field === null || field === void 0 || (_field$_disp_ = field._disp_) === null || _field$_disp_ === void 0 ? void 0 : _field$_disp_.assignment) || defaultName;\n};\nvar CalculateAutoTask = function CalculateAutoTask(_ref) {\n  var data = _ref.data,\n    id = _ref.id,\n    selected = _ref.selected;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useGetDomProps, _excluded);\n  var getName = (0,_hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(data._Type_, 'customVarType');\n  var displayData = _objectSpread(_objectSpread({}, data), data._disp_ || {});\n  var settingLen = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    var _displayData$setting;\n    return (_displayData$setting = displayData.setting) === null || _displayData$setting === void 0 ? void 0 : _displayData$setting.length;\n  }, [displayData]);\n  var assignmentDisplay = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    var _data$setting, _data$setting2, _displayData$setting2;\n    if (settingLen > 1) return '';\n    return isCustom((_data$setting = data.setting) === null || _data$setting === void 0 || (_data$setting = _data$setting[0]) === null || _data$setting === void 0 ? void 0 : _data$setting.assignment) ? (_data$setting2 = data.setting) === null || _data$setting2 === void 0 || (_data$setting2 = _data$setting2[0]) === null || _data$setting2 === void 0 ? void 0 : _data$setting2.customVarName : (_displayData$setting2 = displayData.setting) === null || _displayData$setting2 === void 0 || (_displayData$setting2 = _displayData$setting2[0]) === null || _displayData$setting2 === void 0 ? void 0 : _displayData$setting2.assignment;\n  }, [settingLen, data, displayData]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_13__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, settingLen > 1 ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u8FD0\\u7B97\\uFF1A\"), settingLen, \"\\u4E2A\") : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    title: assignmentDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u8D4B\\u503C\\u5BF9\\u8C61\\uFF1A\"), assignmentDisplay), isCustom(data.assignment) && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u5BF9\\u8C61\\u7C7B\\u578B\\uFF1A\"), getName(data.customVarType)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content_des\"),\n    title: data.documentation || ''\n  }, data.documentation || '')), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(CalculateAutoTask, 'flow-math-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///26344\n");

/***/ }),

/***/ 75500:
/*!********************************************!*\
  !*** ./src/controls/node/EndNoneEvent.tsx ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants */ 98092);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-27 11:25:45\n * @LastEditTime: 2023-04-10 17:00:23\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\nvar EndNode = function EndNode(_ref) {\n  var _data$size, _data$size2;\n  var data = _ref.data,\n    id = _ref.id;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_3__.DesignerContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    prefixCls = _useContext.prefixCls;\n  var rootClass = getPrefixCls && getPrefixCls(prefixCls, 'controls-end-node');\n  var css = {\n    width: (_data$size = data.size) === null || _data$size === void 0 ? void 0 : _data$size.width,\n    height: (_data$size2 = data.size) === null || _data$size2 === void 0 ? void 0 : _data$size2.height\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: rootClass,\n    id: _constants__WEBPACK_IMPORTED_MODULE_4__.NOCODE_FLOW_MAIN_END_NODE\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", null, \"\\u7ED3\\u675F\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Position.Top,\n    id: \"a\"\n  }));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.ErrorBoundaryWrap)(EndNode, 'flow-end-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNzU1MDAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBR0E7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2NvbnRyb2xzL25vZGUvRW5kTm9uZUV2ZW50LnRzeD9lN2EyIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDItMjcgMTE6MjU6NDVcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMDQtMTAgMTc6MDA6MjNcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgUmVhY3QsIHsgRkMsIHVzZUNvbnRleHQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEhhbmRsZSwgTm9kZVByb3BzLCBQb3NpdGlvbiB9IGZyb20gJ3JlYWN0LWZsb3ctcmVuZGVyZXInXG5pbXBvcnQgeyBFcnJvckJvdW5kYXJ5V3JhcCB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uLy4uL2NvbnRleHQnXG5pbXBvcnQgeyBOT0NPREVfRkxPV19NQUlOX0VORF9OT0RFIH0gZnJvbSAnLi4vLi4vY29uc3RhbnRzJ1xuXG5jb25zdCBFbmROb2RlOiBGQzxOb2RlUHJvcHM+ID0gKHsgZGF0YSwgaWQgfSkgPT4ge1xuICBjb25zdCB7IGdldFByZWZpeENscywgcHJlZml4Q2xzIH0gPSB1c2VDb250ZXh0KERlc2lnbmVyQ29udGV4dClcbiAgY29uc3Qgcm9vdENsYXNzID0gZ2V0UHJlZml4Q2xzICYmIGdldFByZWZpeENscyhwcmVmaXhDbHMsICdjb250cm9scy1lbmQtbm9kZScpXG4gIGNvbnN0IGNzcyA9IHsgd2lkdGg6IGRhdGEuc2l6ZT8ud2lkdGgsIGhlaWdodDogZGF0YS5zaXplPy5oZWlnaHQgfVxuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtyb290Q2xhc3N9IGlkPXtOT0NPREVfRkxPV19NQUlOX0VORF9OT0RFfT5cbiAgICAgIDxzcGFuPue7k+adnzwvc3Bhbj5cbiAgICAgIDxIYW5kbGUgdHlwZT0ndGFyZ2V0JyBwb3NpdGlvbj17UG9zaXRpb24uVG9wfSBpZD0nYScgLz5cbiAgICA8L2Rpdj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBFcnJvckJvdW5kYXJ5V3JhcChFbmROb2RlLCAnZmxvdy1lbmQtbm9kZScpXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///75500\n");

/***/ }),

/***/ 19444:
/*!***********************************************!*\
  !*** ./src/controls/node/NoCodeAuditTask.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getApproversDisplay: function() { return /* binding */ getApproversDisplay; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context */ 90115);\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\n\n\n\n\n\n\n\n\nvar getApproversDisplay = function getApproversDisplay(participant, dataContext) {\n  var _ref = participant || {},\n    sourceData = _ref.sourceData;\n  var newData = sourceData === null || sourceData === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default()(sourceData).call(sourceData, function (item) {\n    var node = dataContext.findControl(item.menuId);\n    return node ? item.name.replace(/\\S+（/, \"[\".concat(node.name, \"\\uFF08\")).replace(/\\S+\\]/, \"[\".concat(node.name, \"]\")) : item.name;\n  });\n  return (newData === null || newData === void 0 ? void 0 : newData.join(',')) || '';\n};\nvar NoCodeAuditTask = function NoCodeAuditTask(_ref2) {\n  var data = _ref2.data,\n    id = _ref2.id;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_useGetDomProps, _excluded);\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useContext)(_context__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data;\n  var _data$documentation = data.documentation,\n    documentation = _data$documentation === void 0 ? '' : _data$documentation;\n  var participantDisplay = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return getApproversDisplay(data.participant, dataContext);\n  }, [data]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_7__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    title: participantDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", null, \"\\u5BA1\\u6279\\u4EBA\\uFF1A\"), participantDisplay), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    title: documentation,\n    className: \"\".concat(prefixClass, \"_content_des\")\n  }, documentation)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_4__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.ErrorBoundaryWrap)(NoCodeAuditTask, 'flow-action-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTk0NDQuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFHQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBSUE7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2NvbnRyb2xzL25vZGUvTm9Db2RlQXVkaXRUYXNrLnRzeD8zMDEwIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBGQywgdXNlQ29udGV4dCwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgSGFuZGxlLCBOb2RlUHJvcHMsIFBvc2l0aW9uIH0gZnJvbSAncmVhY3QtZmxvdy1yZW5kZXJlcidcbmltcG9ydCB7IEVycm9yQm91bmRhcnlXcmFwIH0gZnJvbSAnZGVzaWduZXJfYmFzZS9NYWluJ1xuaW1wb3J0IHVzZUdldERvbVByb3BzIGZyb20gJy4uLy4uL2hvb2tzL3VzZUdldERvbVByb3BzJ1xuaW1wb3J0IE5vZGVIZWFkZXIgZnJvbSAnLi4vY29tbW9uL05vZGVIZWFkZXInXG5pbXBvcnQgRXJyb3JOb2RlV3JhcCBmcm9tICcuLi9jb21tb24vRXJyb3JOb2RlV3JhcCdcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uLy4uL2NvbnRleHQnXG5cbmV4cG9ydCBjb25zdCBnZXRBcHByb3ZlcnNEaXNwbGF5ID0gKHBhcnRpY2lwYW50OmFueSwgZGF0YUNvbnRleHQ6YW55KSA9PiB7XG4gIGNvbnN0IHsgc291cmNlRGF0YSB9ID0gcGFydGljaXBhbnQgfHwge31cbiAgY29uc3QgbmV3RGF0YSA9IHNvdXJjZURhdGE/Lm1hcCgoaXRlbTphbnkpID0+IHtcbiAgICBjb25zdCBub2RlID0gZGF0YUNvbnRleHQuZmluZENvbnRyb2woaXRlbS5tZW51SWQpXG4gICAgcmV0dXJuIG5vZGUgPyBpdGVtLm5hbWUucmVwbGFjZSgvXFxTK++8iC8sIGBbJHtub2RlLm5hbWV977yIYCkucmVwbGFjZSgvXFxTK1xcXS8sIGBbJHtub2RlLm5hbWV9XWApIDogaXRlbS5uYW1lXG4gIH0pXG4gIHJldHVybiBuZXdEYXRhPy5qb2luKCcsJyl8fCcnXG59XG5cbmNvbnN0IE5vQ29kZUF1ZGl0VGFzazogRkM8Tm9kZVByb3BzPiA9ICh7IGRhdGEsIGlkIH0pID0+IHtcbiAgY29uc3QgeyBkcmFnRXZlbnQsIHByZWZpeENsYXNzLCAuLi5vdGhlclByb3BzIH0gPSB1c2VHZXREb21Qcm9wcyhpZClcbiAgY29uc3QgeyBnZXRLZGVzaWduZXJBcGkgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuICBjb25zdCB7IGRhdGE6IGRhdGFDb250ZXh0IH0gPSB1c2VNZW1vKCgpID0+IGdldEtkZXNpZ25lckFwaSgpLCBbXSlcblxuICBjb25zdCB7IGRvY3VtZW50YXRpb24gPSAnJyB9ID0gZGF0YVxuXG4gIGNvbnN0IHBhcnRpY2lwYW50RGlzcGxheSA9IHVzZU1lbW8oKCkgPT4ge1xuICAgIHJldHVybiBnZXRBcHByb3ZlcnNEaXNwbGF5KGRhdGEucGFydGljaXBhbnQsIGRhdGFDb250ZXh0KVxuICB9LCBbZGF0YV0pXG5cbiAgcmV0dXJuIChcbiAgICA8RXJyb3JOb2RlV3JhcCBpZD17aWR9PlxuICAgICAgPGRpdiB7Li4uZHJhZ0V2ZW50fSB7Li4ub3RoZXJQcm9wc30+XG4gICAgICAgIDxIYW5kbGUgdHlwZT0ndGFyZ2V0JyBwb3NpdGlvbj17UG9zaXRpb24uVG9wfSBpZD17aWQgKyAndCd9IC8+XG4gICAgICAgIDxOb2RlSGVhZGVyXG4gICAgICAgICAgcHJlZml4PXtwcmVmaXhDbGFzc31cbiAgICAgICAgICB7Li4uZGF0YX1cbiAgICAgICAgLz5cbiAgICAgICAgPGRpdiBjbGFzc05hbWU9e2Ake3ByZWZpeENsYXNzfV9jb250ZW50YH0+XG4gICAgICAgICAgPGRpdiB0aXRsZT17cGFydGljaXBhbnREaXNwbGF5fT48c3Bhbj7lrqHmibnkurrvvJo8L3NwYW4+e3BhcnRpY2lwYW50RGlzcGxheX08L2Rpdj5cbiAgICAgICAgICA8ZGl2IHRpdGxlPXtkb2N1bWVudGF0aW9ufSBjbGFzc05hbWU9e2Ake3ByZWZpeENsYXNzfV9jb250ZW50X2Rlc2B9Pntkb2N1bWVudGF0aW9ufTwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPEhhbmRsZSB0eXBlPSdzb3VyY2UnIHBvc2l0aW9uPXtQb3NpdGlvbi5Cb3R0b219IGlkPXtpZCArICdiJ30gLz5cbiAgICAgIDwvZGl2PlxuICAgIDwvRXJyb3JOb2RlV3JhcD5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBFcnJvckJvdW5kYXJ5V3JhcChOb0NvZGVBdWRpdFRhc2ssICdmbG93LWFjdGlvbi1ub2RlJylcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///19444\n");

/***/ }),

/***/ 46200:
/*!************************************************!*\
  !*** ./src/controls/node/NoCodeNotifyTask.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useGetEnumName */ 91575);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./NoCodeAuditTask */ 19444);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../context */ 90115);\n\n\n\n\n\n\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 16:50:53\n * @LastEditTime: 2024-02-04 16:05:30\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\nvar MessageNode = function MessageNode(_ref) {\n  var data = _ref.data,\n    id = _ref.id;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useGetDomProps, _excluded);\n  var getNotifyTypeName = (0,_hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(data._Type_, 'notifytype');\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useContext)(_context__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data;\n  var displayData = _objectSpread(_objectSpread({}, data), data._disp_ || {});\n  var approversDisplay = (0,_NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_15__.getApproversDisplay)(data.receiver, dataContext);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_11__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u6D88\\u606F\\u7C7B\\u578B\\uFF1A\"), getNotifyTypeName(data.notifytype)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    title: approversDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u901A\\u77E5\\u5BF9\\u8C61\\uFF1A\"), (0,_NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_15__.getApproversDisplay)(data.receiver, dataContext)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content_des\"),\n    title: data.documentation || ''\n  }, data.documentation || '')), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(MessageNode, 'flow-message-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDYyMDAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFFQTtBQUVBO0FBQ0E7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUdBO0FBQUE7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFJQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvY29udHJvbHMvbm9kZS9Ob0NvZGVOb3RpZnlUYXNrLnRzeD84YmIwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDMtMDIgMTY6NTA6NTNcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjQtMDItMDQgMTY6MDU6MzBcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgUmVhY3QsIHsgRkMsIHVzZU1lbW8sIHVzZUNvbnRleHQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEhhbmRsZSwgTm9kZVByb3BzLCBQb3NpdGlvbiB9IGZyb20gJ3JlYWN0LWZsb3ctcmVuZGVyZXInXG5pbXBvcnQgeyBFcnJvckJvdW5kYXJ5V3JhcCB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcbmltcG9ydCBOb2RlSGVhZGVyIGZyb20gJy4uL2NvbW1vbi9Ob2RlSGVhZGVyJ1xuaW1wb3J0IHVzZUdldERvbVByb3BzIGZyb20gJy4uLy4uL2hvb2tzL3VzZUdldERvbVByb3BzJ1xuaW1wb3J0IHVzZUdldEVudW1OYW1lIGZyb20gJy4uLy4uL2hvb2tzL3VzZUdldEVudW1OYW1lJ1xuaW1wb3J0IEVycm9yTm9kZVdyYXAgZnJvbSAnLi4vY29tbW9uL0Vycm9yTm9kZVdyYXAnXG5pbXBvcnQgeyBnZXRBcHByb3ZlcnNEaXNwbGF5IH0gZnJvbSAnLi9Ob0NvZGVBdWRpdFRhc2snXG5pbXBvcnQgeyBEZXNpZ25lckNvbnRleHQgfSBmcm9tICcuLi8uLi9jb250ZXh0J1xuXG5jb25zdCBNZXNzYWdlTm9kZTogRkM8Tm9kZVByb3BzPiA9ICh7IGRhdGEsIGlkIH0pID0+IHtcbiAgY29uc3QgeyBkcmFnRXZlbnQsIHByZWZpeENsYXNzLCAuLi5vdGhlclByb3BzIH0gPSB1c2VHZXREb21Qcm9wcyhpZClcbiAgY29uc3QgZ2V0Tm90aWZ5VHlwZU5hbWUgPSB1c2VHZXRFbnVtTmFtZShkYXRhLl9UeXBlXywgJ25vdGlmeXR5cGUnKVxuICBjb25zdCB7IGdldEtkZXNpZ25lckFwaSB9ID0gdXNlQ29udGV4dChEZXNpZ25lckNvbnRleHQpXG4gIGNvbnN0IHsgZGF0YTogZGF0YUNvbnRleHQgfSA9IHVzZU1lbW8oKCkgPT4gZ2V0S2Rlc2lnbmVyQXBpKCksIFtdKVxuXG4gIGNvbnN0IGRpc3BsYXlEYXRhID0geyAuLi5kYXRhLCAuLi4oZGF0YS5fZGlzcF8gfHwge30pIH1cblxuICBjb25zdCBhcHByb3ZlcnNEaXNwbGF5ID0gZ2V0QXBwcm92ZXJzRGlzcGxheShkYXRhLnJlY2VpdmVyLCBkYXRhQ29udGV4dClcblxuICByZXR1cm4gKFxuICAgIDxFcnJvck5vZGVXcmFwIGlkPXtpZH0+XG4gICAgICA8ZGl2IHsuLi5kcmFnRXZlbnR9IHsuLi5vdGhlclByb3BzfT5cbiAgICAgICAgPEhhbmRsZSB0eXBlPSd0YXJnZXQnIHBvc2l0aW9uPXtQb3NpdGlvbi5Ub3B9IGlkPXtpZCArICd0J30gLz5cbiAgICAgICAgPE5vZGVIZWFkZXJcbiAgICAgICAgICBwcmVmaXg9e3ByZWZpeENsYXNzfVxuICAgICAgICAgIHsuLi5kYXRhfVxuICAgICAgICAvPlxuICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7cHJlZml4Q2xhc3N9X2NvbnRlbnRgfT5cbiAgICAgICAgICA8ZGl2PjxzcGFuPua2iOaBr+exu+Wei++8mjwvc3Bhbj57Z2V0Tm90aWZ5VHlwZU5hbWUoZGF0YS5ub3RpZnl0eXBlKX08L2Rpdj5cbiAgICAgICAgICA8ZGl2IHRpdGxlPXthcHByb3ZlcnNEaXNwbGF5fT48c3Bhbj7pgJrnn6Xlr7nosaHvvJo8L3NwYW4+e2dldEFwcHJvdmVyc0Rpc3BsYXkoZGF0YS5yZWNlaXZlciwgZGF0YUNvbnRleHQpfTwvZGl2PlxuICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPXtgJHtwcmVmaXhDbGFzc31fY29udGVudF9kZXNgfSB0aXRsZT17ZGF0YS5kb2N1bWVudGF0aW9uIHx8ICcnfT57ZGF0YS5kb2N1bWVudGF0aW9uIHx8ICcnfTwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPEhhbmRsZSB0eXBlPSdzb3VyY2UnIHBvc2l0aW9uPXtQb3NpdGlvbi5Cb3R0b219IGlkPXtpZCArICdiJ30gLz5cbiAgICAgIDwvZGl2PlxuICAgIDwvRXJyb3JOb2RlV3JhcD5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBFcnJvckJvdW5kYXJ5V3JhcChNZXNzYWdlTm9kZSwgJ2Zsb3ctbWVzc2FnZS1ub2RlJylcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///46200\n");

/***/ }),

/***/ 25716:
/*!**********************************************!*\
  !*** ./src/controls/node/NoCodeUserTask.tsx ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NoCodeAuditTask */ 19444);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _hooks_useCleanUserOrg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../hooks/useCleanUserOrg */ 86500);\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-31 15:20:19\n * @LastEditTime: 2024-04-09 10:28:14\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\nvar NoCodeUserTask = function NoCodeUserTask(_ref) {\n  var data = _ref.data,\n    id = _ref.id;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_useGetDomProps, _excluded);\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_context__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data;\n  // const { documentation } = data\n  // const displayData = useMemo(() => {\n  //   return { ...data, ...data._disp_ }\n  // }, [data])\n\n  var refNodeName = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n    var _data$_disp_;\n    if (!data.refNodeId) return '';\n    var display = (data === null || data === void 0 || (_data$_disp_ = data._disp_) === null || _data$_disp_ === void 0 ? void 0 : _data$_disp_.refNodeId) || '';\n    var ref = dataContext.findControl(data.refNodeId);\n    return ref ? display.replace(/\\S+（/, \"\".concat(ref.name, \"\\uFF08\")) : display;\n  }, [data]);\n  // console.log('displayData', displayData)\n\n  (0,_hooks_useCleanUserOrg__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(data);\n  var approversDisplay = (0,_NoCodeAuditTask__WEBPACK_IMPORTED_MODULE_8__.getApproversDisplay)(data.inputUser, dataContext);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_3__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_3__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_6__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    title: refNodeName\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", null, \"\\u5F55\\u5165\\u8868\\u5355\\uFF1A\"), refNodeName), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    title: approversDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"span\", null, \"\\u5F55\\u5165\\u4EBA\\uFF1A\"), approversDisplay)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_3__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_3__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_4__.ErrorBoundaryWrap)(NoCodeUserTask, 'flow-action-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjU3MTYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUVBO0FBRUE7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBR0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBR0E7QUFBQTtBQUFBO0FBQUE7QUFJQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvY29udHJvbHMvbm9kZS9Ob0NvZGVVc2VyVGFzay50c3g/YmUxYSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTA1LTMxIDE1OjIwOjE5XG4gKiBATGFzdEVkaXRUaW1lOiAyMDI0LTA0LTA5IDEwOjI4OjE0XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IEZDLCB1c2VNZW1vLCB1c2VDb250ZXh0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBIYW5kbGUsIE5vZGVQcm9wcywgUG9zaXRpb24gfSBmcm9tICdyZWFjdC1mbG93LXJlbmRlcmVyJ1xuaW1wb3J0IHsgRXJyb3JCb3VuZGFyeVdyYXAgfSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5pbXBvcnQgdXNlR2V0RG9tUHJvcHMgZnJvbSAnLi4vLi4vaG9va3MvdXNlR2V0RG9tUHJvcHMnXG5pbXBvcnQgTm9kZUhlYWRlciBmcm9tICcuLi9jb21tb24vTm9kZUhlYWRlcidcbmltcG9ydCBFcnJvck5vZGVXcmFwIGZyb20gJy4uL2NvbW1vbi9FcnJvck5vZGVXcmFwJ1xuaW1wb3J0IHsgZ2V0QXBwcm92ZXJzRGlzcGxheSB9IGZyb20gJy4vTm9Db2RlQXVkaXRUYXNrJ1xuaW1wb3J0IHsgRGVzaWduZXJDb250ZXh0IH0gZnJvbSAnLi4vLi4vY29udGV4dCdcbmltcG9ydCB1c2VDbGVhblVzZXJPcmcgZnJvbSAnLi4vLi4vaG9va3MvdXNlQ2xlYW5Vc2VyT3JnJ1xuXG5jb25zdCBOb0NvZGVVc2VyVGFzazogRkM8Tm9kZVByb3BzPiA9ICh7IGRhdGEsIGlkIH0pID0+IHtcbiAgY29uc3QgeyBkcmFnRXZlbnQsIHByZWZpeENsYXNzLCAuLi5vdGhlclByb3BzIH0gPSB1c2VHZXREb21Qcm9wcyhpZClcbiAgY29uc3QgeyBnZXRLZGVzaWduZXJBcGkgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuICBjb25zdCB7IGRhdGE6IGRhdGFDb250ZXh0IH0gPSB1c2VNZW1vKCgpID0+IGdldEtkZXNpZ25lckFwaSgpLCBbXSlcbiAgLy8gY29uc3QgeyBkb2N1bWVudGF0aW9uIH0gPSBkYXRhXG4gIC8vIGNvbnN0IGRpc3BsYXlEYXRhID0gdXNlTWVtbygoKSA9PiB7XG4gIC8vICAgcmV0dXJuIHsgLi4uZGF0YSwgLi4uZGF0YS5fZGlzcF8gfVxuICAvLyB9LCBbZGF0YV0pXG5cbiAgY29uc3QgcmVmTm9kZU5hbWUgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBpZiAoIWRhdGEucmVmTm9kZUlkKSByZXR1cm4gJydcblxuICAgIGNvbnN0IGRpc3BsYXkgPSBkYXRhPy5fZGlzcF8/LnJlZk5vZGVJZCB8fCAnJ1xuICAgIGNvbnN0IHJlZiA9IGRhdGFDb250ZXh0LmZpbmRDb250cm9sKGRhdGEucmVmTm9kZUlkKVxuICAgIHJldHVybiByZWYgPyBkaXNwbGF5LnJlcGxhY2UoL1xcUyvvvIgvLCBgJHtyZWYubmFtZX3vvIhgKSA6IGRpc3BsYXlcbiAgfSwgW2RhdGFdKVxuICAvLyBjb25zb2xlLmxvZygnZGlzcGxheURhdGEnLCBkaXNwbGF5RGF0YSlcblxuICB1c2VDbGVhblVzZXJPcmcoZGF0YSlcblxuICBjb25zdCBhcHByb3ZlcnNEaXNwbGF5ID0gZ2V0QXBwcm92ZXJzRGlzcGxheShkYXRhLmlucHV0VXNlciwgZGF0YUNvbnRleHQpXG5cbiAgcmV0dXJuIChcbiAgICA8RXJyb3JOb2RlV3JhcCBpZD17aWR9PlxuICAgICAgPGRpdiB7Li4uZHJhZ0V2ZW50fSB7Li4ub3RoZXJQcm9wc30+XG4gICAgICAgIDxIYW5kbGUgdHlwZT0ndGFyZ2V0JyBwb3NpdGlvbj17UG9zaXRpb24uVG9wfSBpZD17aWQgKyAndCd9IC8+XG4gICAgICAgIDxOb2RlSGVhZGVyXG4gICAgICAgICAgcHJlZml4PXtwcmVmaXhDbGFzc31cbiAgICAgICAgICB7Li4uZGF0YX1cbiAgICAgICAgLz5cbiAgICAgICAgPGRpdiBjbGFzc05hbWU9e2Ake3ByZWZpeENsYXNzfV9jb250ZW50YH0+XG4gICAgICAgICAgPGRpdiB0aXRsZT17cmVmTm9kZU5hbWV9PjxzcGFuPuW9leWFpeihqOWNle+8mjwvc3Bhbj57cmVmTm9kZU5hbWV9PC9kaXY+XG4gICAgICAgICAgPGRpdiB0aXRsZT17YXBwcm92ZXJzRGlzcGxheX0+PHNwYW4+5b2V5YWl5Lq677yaPC9zcGFuPnthcHByb3ZlcnNEaXNwbGF5fTwvZGl2PlxuICAgICAgICAgIHsvKiB7ZG9jdW1lbnRhdGlvbiAmJiA8ZGl2IGNsYXNzTmFtZT17YCR7cHJlZml4Q2xhc3N9X2NvbnRlbnRfZGVzYH0+e2RvY3VtZW50YXRpb259PC9kaXY+fSAqL31cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxIYW5kbGUgdHlwZT0nc291cmNlJyBwb3NpdGlvbj17UG9zaXRpb24uQm90dG9tfSBpZD17aWQgKyAnYid9IC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L0Vycm9yTm9kZVdyYXA+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgRXJyb3JCb3VuZGFyeVdyYXAoTm9Db2RlVXNlclRhc2ssICdmbG93LWFjdGlvbi1ub2RlJylcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///25716\n");

/***/ }),

/***/ 42616:
/*!****************************************!*\
  !*** ./src/controls/node/NullNode.tsx ***!
  \****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-06 13:33:53\n * @LastEditTime: 2023-06-09 14:12:12\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n/**\n * 分支节点\n * @param param0\n * @returns\n */\nvar NullNode = function NullNode(_ref) {\n  var data = _ref.data,\n    id = _ref.id,\n    selected = _ref.selected;\n  var css = {\n    width: 2,\n    height: 1,\n    backgroundColor: '#d9d9d9'\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Position.Left,\n    id: \"111\"\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Position.Right,\n    id: \"222\"\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_1__.Position.Bottom,\n    id: \"333\"\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    style: css\n  }));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.ErrorBoundaryWrap)(NullNode, 'flow-branch-node'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDI2MTYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUdBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9jb250cm9scy9ub2RlL051bGxOb2RlLnRzeD8xNWQwIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDUtMDYgMTM6MzM6NTNcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMDYtMDkgMTQ6MTI6MTJcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgUmVhY3QsIHsgRkMsIHVzZUNvbnRleHQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEhhbmRsZSwgTm9kZVByb3BzLCBQb3NpdGlvbiB9IGZyb20gJ3JlYWN0LWZsb3ctcmVuZGVyZXInXG5pbXBvcnQgeyBFcnJvckJvdW5kYXJ5V3JhcCB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcblxuLyoqXG4gKiDliIbmlK/oioLngrlcbiAqIEBwYXJhbSBwYXJhbTBcbiAqIEByZXR1cm5zXG4gKi9cbmNvbnN0IE51bGxOb2RlOiBGQzxOb2RlUHJvcHM+ID0gKHsgZGF0YSwgaWQsIHNlbGVjdGVkIH0pID0+IHtcbiAgY29uc3QgY3NzID0geyB3aWR0aDogMiwgaGVpZ2h0OiAxLCBiYWNrZ3JvdW5kQ29sb3I6ICcjZDlkOWQ5JyB9XG4gIHJldHVybiAoXG4gICAgPGRpdj5cbiAgICAgIDxIYW5kbGUgdHlwZT0ndGFyZ2V0JyBwb3NpdGlvbj17UG9zaXRpb24uTGVmdH0gaWQ9JzExMScgLz5cbiAgICAgIDxIYW5kbGUgdHlwZT0ndGFyZ2V0JyBwb3NpdGlvbj17UG9zaXRpb24uUmlnaHR9IGlkPScyMjInIC8+XG4gICAgICA8SGFuZGxlIHR5cGU9J3NvdXJjZScgcG9zaXRpb249e1Bvc2l0aW9uLkJvdHRvbX0gaWQ9JzMzMycgLz5cbiAgICAgIDxkaXYgc3R5bGU9e2Nzc30gLz5cbiAgICA8L2Rpdj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBFcnJvckJvdW5kYXJ5V3JhcChOdWxsTm9kZSwgJ2Zsb3ctYnJhbmNoLW5vZGUnKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///42616\n");

/***/ }),

/***/ 43244:
/*!*************************************************!*\
  !*** ./src/controls/node/QueryDataAutoTask.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils */ 41232);\n\n\n\n\n\n\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Description:imp\n * @Author: jianhang_he\n * @Date: 2023-03-10 09:51:39\n * @LastEditTime: 2024-02-18 14:10:29\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n// 查找表单记录\nvar QueryDataAutoTask = function QueryDataAutoTask(_ref) {\n  var data = _ref.data,\n    id = _ref.id,\n    type = _ref.type;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useGetDomProps, _excluded);\n  var displayData = _objectSpread(_objectSpread({}, data), data._disp_);\n  var formId = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isQueryModeByRela)(data.queryModel)) {\n      return 'refbillField';\n    } else if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isOpenApi)(data.queryModel)) {\n      return 'apiId';\n    }\n    return 'formId';\n  }, [data.queryModel]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_11__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    title: displayData[formId]\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, (0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isFindNode)(type) ? '查找' : '新增', \"\\u8868\\u5355\\uFF1A\"), displayData[formId]), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content_des\"),\n    title: data.documentation || ''\n  }, data.documentation || '')), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(QueryDataAutoTask, 'QueryDataAutoTask'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDMyNDQuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFLQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBR0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUlBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9jb250cm9scy9ub2RlL1F1ZXJ5RGF0YUF1dG9UYXNrLnRzeD82YmRlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246aW1wXG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDMtMTAgMDk6NTE6MzlcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjQtMDItMTggMTQ6MTA6MjlcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgUmVhY3QsIHsgRkMsIHVzZUNvbnRleHQsIHVzZU1lbW8sIHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSwgdXNlRWZmZWN0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBIYW5kbGUsIE5vZGVQcm9wcywgUG9zaXRpb24gfSBmcm9tICdyZWFjdC1mbG93LXJlbmRlcmVyJ1xuaW1wb3J0IHsgRXJyb3JCb3VuZGFyeVdyYXAsIGV2ZW50QnVzIH0gZnJvbSAnZGVzaWduZXJfYmFzZS9NYWluJ1xuaW1wb3J0IHsgRGVzaWduZXJDb250ZXh0IH0gZnJvbSAnLi4vLi4vY29udGV4dCdcbmltcG9ydCBOb2RlSGVhZGVyIGZyb20gJy4uL2NvbW1vbi9Ob2RlSGVhZGVyJ1xuaW1wb3J0IHVzZUdldERvbVByb3BzIGZyb20gJy4uLy4uL2hvb2tzL3VzZUdldERvbVByb3BzJ1xuaW1wb3J0IEVycm9yTm9kZVdyYXAgZnJvbSAnLi4vY29tbW9uL0Vycm9yTm9kZVdyYXAnXG5pbXBvcnQgeyBpc0ZpbmROb2RlLCBpc1F1ZXJ5TW9kZUJ5UmVsYSB9IGZyb20gJy4uLy4uL3V0aWxzL2NvbnRyb2wnXG5pbXBvcnQgeyBpc09wZW5BcGkgfSBmcm9tICcuLi8uLi91dGlscydcblxuLy8g5p+l5om+6KGo5Y2V6K6w5b2VXG5jb25zdCBRdWVyeURhdGFBdXRvVGFzazogRkM8Tm9kZVByb3BzPiA9ICh7IGRhdGEsIGlkLCB0eXBlIH0pID0+IHtcbiAgY29uc3QgeyBkcmFnRXZlbnQsIHByZWZpeENsYXNzLCAuLi5vdGhlclByb3BzIH0gPSB1c2VHZXREb21Qcm9wcyhpZClcblxuICBjb25zdCBkaXNwbGF5RGF0YSA9IHtcbiAgICAuLi5kYXRhLFxuICAgIC4uLmRhdGEuX2Rpc3BfXG4gIH1cblxuICBjb25zdCBmb3JtSWQgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBpZiAoaXNRdWVyeU1vZGVCeVJlbGEoZGF0YS5xdWVyeU1vZGVsKSkge1xuICAgICAgcmV0dXJuICdyZWZiaWxsRmllbGQnXG4gICAgfSBlbHNlIGlmIChpc09wZW5BcGkoZGF0YS5xdWVyeU1vZGVsKSkge1xuICAgICAgcmV0dXJuICdhcGlJZCdcbiAgICB9XG5cbiAgICByZXR1cm4gJ2Zvcm1JZCdcbiAgfSwgW2RhdGEucXVlcnlNb2RlbF0pXG5cbiAgcmV0dXJuIChcbiAgICA8RXJyb3JOb2RlV3JhcCBpZD17aWR9PlxuICAgICAgPGRpdiB7Li4uZHJhZ0V2ZW50fSB7Li4ub3RoZXJQcm9wc30+XG4gICAgICAgIDxIYW5kbGUgdHlwZT0ndGFyZ2V0JyBwb3NpdGlvbj17UG9zaXRpb24uVG9wfSBpZD17aWQgKyAndCd9IC8+XG4gICAgICAgIDxOb2RlSGVhZGVyXG4gICAgICAgICAgcHJlZml4PXtwcmVmaXhDbGFzc31cbiAgICAgICAgICB7Li4uZGF0YX1cbiAgICAgICAgLz5cbiAgICAgICAgPGRpdiBjbGFzc05hbWU9e2Ake3ByZWZpeENsYXNzfV9jb250ZW50YH0+XG4gICAgICAgICAgPGRpdiB0aXRsZT17ZGlzcGxheURhdGFbZm9ybUlkXX0+PHNwYW4+e2lzRmluZE5vZGUodHlwZSkgPyAn5p+l5om+JyA6ICfmlrDlop4nfeihqOWNle+8mjwvc3Bhbj57ZGlzcGxheURhdGFbZm9ybUlkXX08L2Rpdj5cbiAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7cHJlZml4Q2xhc3N9X2NvbnRlbnRfZGVzYH0gdGl0bGU9e2RhdGEuZG9jdW1lbnRhdGlvbiB8fCAnJ30+e2RhdGEuZG9jdW1lbnRhdGlvbiB8fCAnJ308L2Rpdj5cbiAgICAgICAgPC9kaXY+XG4gICAgICAgIDxIYW5kbGUgdHlwZT0nc291cmNlJyBwb3NpdGlvbj17UG9zaXRpb24uQm90dG9tfSBpZD17aWQgKyAnYid9IC8+XG4gICAgICA8L2Rpdj5cbiAgICA8L0Vycm9yTm9kZVdyYXA+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgRXJyb3JCb3VuZGFyeVdyYXAoUXVlcnlEYXRhQXV0b1Rhc2ssICdRdWVyeURhdGFBdXRvVGFzaycpXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///43244\n");

/***/ }),

/***/ 27380:
/*!************************************************!*\
  !*** ./src/controls/node/StartSignalEvent.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getFormName: function() { return /* binding */ getFormName; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../hooks/useGetEnumName */ 91575);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _editors_TriggerTimeEditor_date__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../editors/TriggerTimeEditor/date */ 72680);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../context */ 90115);\n\n\n\n\nvar _excluded = [\"prefixClass\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-07 17:27:53\n * @LastEditTime: 2024-02-04 16:22:35\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n\n// 获取表单名称\nvar getFormName = function getFormName(id, formData) {\n  if (!id) return '';\n  var idList = id.split(',');\n  if (idList.length > 1) {\n    // 其他应用\n    var _idList = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(idList, 2),\n      appId = _idList[0],\n      formId = _idList[1];\n    var appData = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(formData).call(formData, function (item) {\n      return item.value === appId;\n    }) || {};\n    if (appData.children) {\n      var _context;\n      var appFormData = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(_context = appData.children).call(_context, function (item) {\n        return item.value === formId;\n      });\n      return \"\".concat(appFormData.label);\n    }\n    return (appData === null || appData === void 0 ? void 0 : appData.label) || '';\n  } else {\n    // 当前应用\n    var _idList2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(idList, 1),\n      _formId = _idList2[0];\n    var _appFormData = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(formData).call(formData, function (item) {\n      return item.value === _formId;\n    }) || {};\n    return (_appFormData === null || _appFormData === void 0 ? void 0 : _appFormData.label) || '';\n  }\n};\nvar formatDate = function formatDate(date) {\n  if (!date) return '';\n  return (0,_utils__WEBPACK_IMPORTED_MODULE_18__.dateFormat)('yyyy-MM-dd', date);\n};\nvar pattern = /^\\S+/; // 匹配字符串开头到第一个空格之前的非空字符\n\nvar getDateStringWithoutTime = function getDateStringWithoutTime(time) {\n  var _time$match;\n  return time === null || time === void 0 || (_time$match = time.match(pattern)) === null || _time$match === void 0 ? void 0 : _time$match[0];\n};\nvar StartNode = function StartNode(_ref) {\n  var _context2;\n  var data = _ref.data,\n    id = _ref.id;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useContext)(_context__WEBPACK_IMPORTED_MODULE_20__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _getKdesignerApi = getKdesignerApi(),\n    dataContext = _getKdesignerApi.data,\n    metaContext = _getKdesignerApi.meta;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_14__[\"default\"])(id),\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useGetDomProps, _excluded);\n  var getFireKindName = (0,_hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(data._Type_, 'fireKind');\n  var getLoopTypeName = (0,_hooks_useGetEnumName__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(data._Type_, 'loopType');\n  var displayData = _objectSpread(_objectSpread({}, data), data._disp_);\n  var loopType = data.loopType,\n    triggerTime = data.triggerTime,\n    triggerMode = data.triggerMode,\n    fireKind = data.fireKind,\n    startTime = data.startTime,\n    endTime = data.endTime;\n  var isTriggerOnTime = (0,_utils__WEBPACK_IMPORTED_MODULE_18__.isTriggerTime)(triggerMode);\n  var triggerDateLabel = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    if (isTriggerOnTime) {\n      return (0,_editors_TriggerTimeEditor_date__WEBPACK_IMPORTED_MODULE_19__.getDateLable)(loopType, (triggerTime === null || triggerTime === void 0 ? void 0 : triggerTime.date) || []);\n    }\n  }, [isTriggerOnTime, loopType, triggerTime]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    var nodeName = data.name;\n    var _metaContext$getContr = metaContext.getControlMeta(data._Type_),\n      controlName = _metaContext$getContr.Name;\n    if (nodeName === controlName || nodeName === '定时触发') {\n      if (isTriggerOnTime) {\n        nodeName = '定时触发';\n      } else {\n        nodeName = controlName;\n      }\n      dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.createUpdateAction)([[id, {\n        name: nodeName\n      }]]));\n    }\n  }, [isTriggerOnTime]);\n  var triggleTimeDisplay = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context2 = \"\".concat(triggerDateLabel, \" \")).call(_context2, triggerTime === null || triggerTime === void 0 ? void 0 : triggerTime.time);\n  var startTimeDisplay = getDateStringWithoutTime(startTime);\n  var endTimeDisplay = getDateStringWithoutTime(endTime);\n  var triggerType = getFireKindName(fireKind);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", otherProps, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_16__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    showMoreBtn: false,\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, !isTriggerOnTime ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    title: displayData.formId\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"span\", null, \"\\u89E6\\u53D1\\u8868\\u5355\\uFF1A\"), displayData.formId), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    title: triggerType\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"span\", null, \"\\u89E6\\u53D1\\u7C7B\\u578B\\uFF1A\"), triggerType)) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    title: startTimeDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"span\", null, \"\\u5F00\\u59CB\\u65F6\\u95F4\\uFF1A\"), startTimeDisplay), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    title: endTimeDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"span\", null, \"\\u7ED3\\u675F\\u65F6\\u95F4\\uFF1A\"), endTimeDisplay), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"span\", null, \"\\u5FAA\\u73AF\\uFF1A\"), getLoopTypeName(loopType)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    title: triggleTimeDisplay\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"span\", null, \"\\u89E6\\u53D1\\u65F6\\u95F4\\uFF1A\"), triggleTimeDisplay))), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.Position.Bottom,\n    id: \"b\"\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.ErrorBoundaryWrap)(StartNode, 'StartSignalEvent'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///27380\n");

/***/ }),

/***/ 68896:
/*!**************************************************!*\
  !*** ./src/controls/node/UpdateBillAutoTask.tsx ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _common_NodeHeader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/NodeHeader */ 95104);\n/* harmony import */ var _hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../hooks/useGetDomProps */ 74984);\n/* harmony import */ var _common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common/ErrorNodeWrap */ 82396);\n/* harmony import */ var _hooks_useCleanUserOrg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../hooks/useCleanUserOrg */ 86500);\n\n\n\n\n\n\n\n\nvar _excluded = [\"dragEvent\", \"prefixClass\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Description: 修改表单记录\n * @Author: jianhang_he\n * @Date: 2023-03-10 09:51:39\n * @LastEditTime: 2024-04-09 10:27:32\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n// 修改表单记录\nvar UpdateBillAutoTask = function UpdateBillAutoTask(_ref) {\n  var data = _ref.data,\n    id = _ref.id;\n  var _useGetDomProps = (0,_hooks_useGetDomProps__WEBPACK_IMPORTED_MODULE_13__[\"default\"])(id),\n    dragEvent = _useGetDomProps.dragEvent,\n    prefixClass = _useGetDomProps.prefixClass,\n    otherProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useGetDomProps, _excluded);\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useContext)(_context__WEBPACK_IMPORTED_MODULE_11__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data;\n  var displayData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    return _objectSpread(_objectSpread({}, data), data._disp_);\n  }, [data]);\n  var refNodeName = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_8__.useMemo)(function () {\n    if (!data.refNodeId) return '';\n    var ref = dataContext.findControl(data.refNodeId);\n    return ref ? displayData.refNodeId.replace(/\\S+（/, \"\".concat(ref.name, \"\\uFF08\")) : displayData.refNodeId;\n  }, [displayData]);\n  (0,_hooks_useCleanUserOrg__WEBPACK_IMPORTED_MODULE_15__[\"default\"])(data);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_ErrorNodeWrap__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n    id: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, dragEvent, otherProps), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"target\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Top,\n    id: id + 't'\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(_common_NodeHeader__WEBPACK_IMPORTED_MODULE_12__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    prefix: prefixClass\n  }, data)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    title: refNodeName\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"span\", null, \"\\u4FEE\\u6539\\u8868\\u5355\\uFF1A\"), refNodeName), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"_content_des\"),\n    title: data.documentation || ''\n  }, data.documentation || '')), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_8___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Handle, {\n    type: \"source\",\n    position: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.Position.Bottom,\n    id: id + 'b'\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(UpdateBillAutoTask, 'UpdateBillAutoTask'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNjg4OTYuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBR0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUlBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9jb250cm9scy9ub2RlL1VwZGF0ZUJpbGxBdXRvVGFzay50c3g/NDc4YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOiDkv67mlLnooajljZXorrDlvZVcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0wMy0xMCAwOTo1MTozOVxuICogQExhc3RFZGl0VGltZTogMjAyNC0wNC0wOSAxMDoyNzozMlxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCwgeyBGQywgdXNlQ29udGV4dCwgdXNlTWVtbywgdXNlQ2FsbGJhY2ssIHVzZVN0YXRlLCB1c2VFZmZlY3QgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEhhbmRsZSwgTm9kZVByb3BzLCBQb3NpdGlvbiB9IGZyb20gJ3JlYWN0LWZsb3ctcmVuZGVyZXInXG5pbXBvcnQgeyBFcnJvckJvdW5kYXJ5V3JhcCwgZXZlbnRCdXMsIGNyZWF0ZVVwZGF0ZUFjdGlvbiB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uLy4uL2NvbnRleHQnXG5pbXBvcnQgTm9kZUhlYWRlciBmcm9tICcuLi9jb21tb24vTm9kZUhlYWRlcidcbmltcG9ydCB1c2VHZXREb21Qcm9wcyBmcm9tICcuLi8uLi9ob29rcy91c2VHZXREb21Qcm9wcydcbmltcG9ydCBFcnJvck5vZGVXcmFwIGZyb20gJy4uL2NvbW1vbi9FcnJvck5vZGVXcmFwJ1xuaW1wb3J0IHVzZUNsZWFuVXNlck9yZyBmcm9tICcuLi8uLi9ob29rcy91c2VDbGVhblVzZXJPcmcnXG5cbi8vIOS/ruaUueihqOWNleiusOW9lVxuY29uc3QgVXBkYXRlQmlsbEF1dG9UYXNrOiBGQzxOb2RlUHJvcHM+ID0gKHsgZGF0YSwgaWQgfSkgPT4ge1xuICBjb25zdCB7IGRyYWdFdmVudCwgcHJlZml4Q2xhc3MsIC4uLm90aGVyUHJvcHMgfSA9IHVzZUdldERvbVByb3BzKGlkKVxuICBjb25zdCB7IGdldEtkZXNpZ25lckFwaSwgZ2V0UmVmQmlsbFZhckZvcm1JZCB9ID0gdXNlQ29udGV4dChEZXNpZ25lckNvbnRleHQpXG4gIGNvbnN0IHsgZGF0YTogZGF0YUNvbnRleHQgfSA9IHVzZU1lbW8oKCkgPT4gZ2V0S2Rlc2lnbmVyQXBpKCksIFtdKVxuXG4gIGNvbnN0IGRpc3BsYXlEYXRhID0gdXNlTWVtbygoKSA9PiB7XG4gICAgcmV0dXJuIHsgLi4uZGF0YSwgLi4uZGF0YS5fZGlzcF8gfVxuICB9LCBbZGF0YV0pXG5cbiAgY29uc3QgcmVmTm9kZU5hbWUgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBpZiAoIWRhdGEucmVmTm9kZUlkKSByZXR1cm4gJydcbiAgICBjb25zdCByZWYgPSBkYXRhQ29udGV4dC5maW5kQ29udHJvbChkYXRhLnJlZk5vZGVJZClcbiAgICByZXR1cm4gcmVmID8gZGlzcGxheURhdGEucmVmTm9kZUlkLnJlcGxhY2UoL1xcUyvvvIgvLCBgJHtyZWYubmFtZX3vvIhgKSA6IGRpc3BsYXlEYXRhLnJlZk5vZGVJZFxuICB9LCBbZGlzcGxheURhdGFdKVxuXG4gIHVzZUNsZWFuVXNlck9yZyhkYXRhKVxuXG4gIHJldHVybiAoXG4gICAgPEVycm9yTm9kZVdyYXAgaWQ9e2lkfT5cbiAgICAgIDxkaXYgey4uLmRyYWdFdmVudH0gey4uLm90aGVyUHJvcHN9PlxuICAgICAgICA8SGFuZGxlIHR5cGU9J3RhcmdldCcgcG9zaXRpb249e1Bvc2l0aW9uLlRvcH0gaWQ9e2lkICsgJ3QnfSAvPlxuICAgICAgICA8Tm9kZUhlYWRlclxuICAgICAgICAgIHByZWZpeD17cHJlZml4Q2xhc3N9XG4gICAgICAgICAgey4uLmRhdGF9XG4gICAgICAgIC8+XG4gICAgICAgIDxkaXYgY2xhc3NOYW1lPXtgJHtwcmVmaXhDbGFzc31fY29udGVudGB9PlxuICAgICAgICAgIDxkaXYgdGl0bGU9e3JlZk5vZGVOYW1lfT48c3Bhbj7kv67mlLnooajljZXvvJo8L3NwYW4+e3JlZk5vZGVOYW1lfTwvZGl2PlxuICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPXtgJHtwcmVmaXhDbGFzc31fY29udGVudF9kZXNgfSB0aXRsZT17ZGF0YS5kb2N1bWVudGF0aW9uIHx8ICcnfT57ZGF0YS5kb2N1bWVudGF0aW9uIHx8ICcnfTwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPEhhbmRsZSB0eXBlPSdzb3VyY2UnIHBvc2l0aW9uPXtQb3NpdGlvbi5Cb3R0b219IGlkPXtpZCArICdiJ30gLz5cbiAgICAgIDwvZGl2PlxuICAgIDwvRXJyb3JOb2RlV3JhcD5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBFcnJvckJvdW5kYXJ5V3JhcChVcGRhdGVCaWxsQXV0b1Rhc2ssICdVcGRhdGVCaWxsQXV0b1Rhc2snKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///68896\n");

/***/ }),

/***/ 5452:
/*!******************************************************!*\
  !*** ./src/editors/ApprovalDecisionEditor/index.tsx ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ 61260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _ConditionEditor__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../ConditionEditor */ 96680);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_20__);\n\n\n\n\n\n\n\n\n\nvar _excluded = [\"index\", \"prefixClass\", \"className\", \"editorProps\", \"name\", \"message\", \"showDelete\", \"errorData\", \"readonly\", \"onChange\", \"onDelete\"];\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n/*\n * @Description: 审批决策编辑器\n * @Author: jianhang_he\n * @Date: 2023-08-01 10:52:51\n * @LastEditTime: 2023-11-28 16:09:15\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n// 审批意见必填\nvar AUDIT_MESSAGE_MUST_INPUT = 'auditMessageMustInput';\n\n// 决策后结束流程(分支)\nvar TERMINATE_FLOW = 'terminateFlow';\n\n// 决策后发送消息\nvar SEND_MESSAGE = 'sendMessage';\nvar DECISION_OPTION_LIST = [{\n  key: AUDIT_MESSAGE_MUST_INPUT,\n  label: '审批意见必填'\n}, {\n  key: TERMINATE_FLOW,\n  label: '决策后结束流程(分支)'\n}, {\n  key: SEND_MESSAGE,\n  label: '决策后发送消息'\n}];\n\n/**\n * 创建新的决策项\n * @param data\n * @returns\n */\nvar createNewDecision = function createNewDecision(data) {\n  return _objectSpread((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({\n    number: (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.createUUid)(),\n    name: ''\n  }, AUDIT_MESSAGE_MUST_INPUT, false), TERMINATE_FLOW, false), SEND_MESSAGE, false), data);\n};\n\n// [\n//   {\n//     \"name\": \"同意\",\n//     \"id\": \"北研那边生成\",\n//     \"auditType\": \"approve\",\n//     \"defaultDecision\": true,\n\n//     \"number\": \"前端用来唯一key\",\n//     \"auditMessageMustInput\": true,\n//     \"terminateFlow\": false,\n//     \"sendMessage\": true,\n//     \"message\": \"xxx\"\n//   }\n// ]\nvar ApprovalDecisionItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (_ref) {\n  var _editorProps$Editor;\n  var index = _ref.index,\n    prefixClass = _ref.prefixClass,\n    className = _ref.className,\n    editorProps = _ref.editorProps,\n    name = _ref.name,\n    message = _ref.message,\n    showDelete = _ref.showDelete,\n    errorData = _ref.errorData,\n    readonly = _ref.readonly,\n    onChange = _ref.onChange,\n    onDelete = _ref.onDelete,\n    other = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_ref, _excluded);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(name),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    innerName = _useState2[0],\n    setInnerName = _useState2[1];\n  var timer = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(null);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (name !== innerName) {\n      setInnerName(name);\n    }\n  }, [name]);\n  var handleDelete = function handleDelete() {\n    onDelete(index);\n  };\n  var handleChange = function handleChange(data) {\n    onChange(index, data);\n  };\n  var delayUpdateName = function delayUpdateName(val) {\n    if (val === name) return;\n    timer.current && clearTimeout(timer.current);\n    timer.current = setTimeout(function () {\n      timer.current = null;\n      handleChange({\n        name: val\n      });\n    }, 300);\n  };\n\n  /**\n   * 修改决策项名称\n   * @param e\n   */\n  var handleChangeDecisionName = function handleChangeDecisionName(e) {\n    var name = e.target.value;\n    setInnerName(name);\n    delayUpdateName(name);\n    // handleChange({\n    //   name: e.target.value\n    // })\n  };\n\n  /**\n   * 修改决策对应的配置项\n   */\n  var handleChangeDecisionOptionValues = function handleChangeDecisionOptionValues(number, e) {\n    handleChange((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({}, number, e.target.checked));\n  };\n\n  /**\n   * 修改消息\n   */\n  var handleChangeMessage = function handleChangeMessage(value) {\n    handleChange({\n      message: value\n    });\n  };\n  var disabled = editorProps.readonly;\n  var messageError = errorData === null || errorData === void 0 ? void 0 : errorData.message;\n  var nameError = errorData === null || errorData === void 0 ? void 0 : errorData.name;\n  var readonlyDecisionTextList = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if (readonly) {\n      var _context;\n      return _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(DECISION_OPTION_LIST).call(DECISION_OPTION_LIST, function (item) {\n        var key = item.key,\n          label = item.label;\n        return other[key] ? label : '';\n      })).call(_context, function (item) {\n        return item;\n      });\n    }\n    return [];\n  }, []);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().Fragment), null, readonly ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"_readonly\")\n  }, innerName, readonlyDecisionTextList.length > 0 ? '：' : '', readonlyDecisionTextList.join('，')) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: className\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"_main\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"_main_fieldlist\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__.Form.Item, {\n    name: name,\n    required: true,\n    validateTrigger: \"onBlur\",\n    rules: [{\n      required: true,\n      message: ''\n    }],\n    className: (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({}, \"\".concat(className, \"_error\"), nameError)\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__.Input, {\n    className: \"input\",\n    borderType: \"bordered\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\",\n    disabled: disabled,\n    value: innerName,\n    maxLength: 12,\n    onChange: handleChangeDecisionName\n  })), _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(DECISION_OPTION_LIST).call(DECISION_OPTION_LIST, function (_ref3) {\n    var key = _ref3.key,\n      label = _ref3.label;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__.Checkbox, {\n      className: \"checkbox\",\n      key: key,\n      checked: other[key],\n      onChange: function onChange(e) {\n        return handleChangeDecisionOptionValues(key, e);\n      }\n    }, label);\n  }), showDelete && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"xingshanchu\",\n    className: \"delete\",\n    title: \"\\u5220\\u9664\\u51B3\\u7B56\\u9879\",\n    onClick: handleDelete\n  })), nameError && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"span\", {\n    className: \"\".concat(prefixClass, \"-error-msg\")\n  }, errorData.name))), other[SEND_MESSAGE] && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_20___default()(\"\".concat(className, \"_condiction\"), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({}, \"\".concat(className, \"_error\"), messageError))\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(_ConditionEditor__WEBPACK_IMPORTED_MODULE_18__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, editorProps, {\n    Name: \"\\u51B3\\u7B56\\u540E\\u53D1\\u9001\\u6D88\\u606F\",\n    editor: {\n      HideFunc: !!(editorProps !== null && editorProps !== void 0 && (_editorProps$Editor = editorProps.Editor) !== null && _editorProps$Editor !== void 0 && _editorProps$Editor.HideFunc),\n      NameHidden: true\n    },\n    value: message,\n    hiddenTitle: true,\n    readonly: readonly,\n    handleChange: handleChangeMessage\n  })), messageError && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"span\", {\n    className: \"\".concat(prefixClass, \"-error-msg\")\n  }, errorData.message)));\n});\nApprovalDecisionItem.displayName = 'ApprovalDecisionItem';\nvar procExp = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.createFieldRegText)(_utils__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_FLOW_VAR.key, {\n  title: _utils__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_FLOW_VAR.title\n});\n// const procExp = `{{Field id=\"${DEFAULT_FLOW_VAR.key}\" text=\"|||${DEFAULT_FLOW_VAR.title}\"}}`\n\nvar ApprovalDecisionEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    readonly = props.readonly,\n    error = props.error,\n    _props$value = props.value,\n    value = _props$value === void 0 ? [] : _props$value;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title;\n  var controlName = field.name;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.GlobalConfigContext),\n    showMessage = _useContext.showMessage;\n  var editorClassName = \"\".concat(className, \"_approvaldecision\");\n  var _Form$useForm = kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__.Form.useForm(),\n    _Form$useForm2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    // 默认是同意和否决\n    if (value.length === 2) {\n      var newValue = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(value).call(value, function (item) {\n        var _context2, _context3, _context4, _context5, _context6, _context7;\n        var number = item.number,\n          message = item.message;\n        if (message) return item;\n        var newMessage = '';\n        switch (number) {\n          case 'Consent':\n            // 审批通过时通知\n            newMessage = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context3 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context4 = \"\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \".concat(_utils__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_FLOW_VAR.key, \" \\u3011\\u5728\\u3010 \")).call(_context4, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u901A\\u8FC7@@\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \")).call(_context3, procExp, \" \\u3011\\u5728\\u3010 \")).call(_context2, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u901A\\u8FC7@@1\");\n            break;\n          case 'Terminate':\n            // 审批否决时通知\n            newMessage = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context5 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context6 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context7 = \"\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \".concat(_utils__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_FLOW_VAR.key, \" \\u3011\\u5728\\u3010 \")).call(_context7, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u5426\\u51B3@@\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \")).call(_context6, procExp, \" \\u3011\\u5728\\u3010 \")).call(_context5, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u5426\\u51B3@@1\");\n            break;\n          default:\n        }\n        return _objectSpread(_objectSpread({}, item), {}, {\n          message: newMessage\n        });\n      });\n      handleChange(newValue);\n    }\n  }, []);\n  var handleChangeApprovalDecisionItem = function handleChangeApprovalDecisionItem(index, data) {\n    var newValue = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_17__.cloneDeep)(value);\n    newValue[index] = _objectSpread(_objectSpread({}, newValue[index]), data);\n    handleChange(newValue);\n  };\n\n  /**\n   * 添加决策项\n   */\n  var handleAddApprovalDecisionItem = function handleAddApprovalDecisionItem() {\n    form.validateFields().then(function (res) {\n      var _context8;\n      var newValue = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context8 = []).call(_context8, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(value), [createNewDecision()]);\n      handleChange(newValue);\n    }).catch(function (e) {\n      console.log('error:', e);\n      showMessage('请输入决策项名称');\n    });\n  };\n\n  /**\n   * 删除决策项\n   */\n  var handleDeleteApprovalDecisionItem = function handleDeleteApprovalDecisionItem(index) {\n    var newValue = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_17__.cloneDeep)(value);\n    _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_12___default()(newValue).call(newValue, index, 1);\n    handleChange(newValue);\n  };\n\n  // if(readonly) {\n  //   return (\n  //     value.map(item => item.name)\n  //   )\n  // }\n\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: editorClassName\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_15__.Form, {\n    form: form\n  }, value === null || value === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(value).call(value, function (item, index) {\n    var _error$msg;\n    var errorList = error === null || error === void 0 || (_error$msg = error.msg) === null || _error$msg === void 0 ? void 0 : _error$msg[item.number];\n    var errorData = {};\n    if (errorList) {\n      errorList.forEach(function (errorItem) {\n        errorData[errorItem.prop] = errorItem.msg;\n      });\n    }\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(ApprovalDecisionItem, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n      key: item.number,\n      index: index,\n      prefixClass: className,\n      className: \"\".concat(editorClassName, \"_item\"),\n      editorProps: props,\n      showDelete: value.length > 2\n    }, item, {\n      errorData: errorData,\n      readonly: readonly,\n      onChange: handleChangeApprovalDecisionItem,\n      onDelete: handleDeleteApprovalDecisionItem\n    }));\n  })), !readonly && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_16__.BtnField, {\n    major: true,\n    type: \"text\",\n    text: \"\\u6DFB\\u52A0\\u51B3\\u7B56\\u9879\",\n    icon: {\n      prefix: 'designericon',\n      type: 'zengjia-yuan2'\n    },\n    onClick: handleAddApprovalDecisionItem\n  })));\n});\nApprovalDecisionEditor.displayName = 'ApprovalDecisionEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.ErrorBoundaryWrap)(ApprovalDecisionEditor, 'ApprovalDecisionEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///5452\n");

/***/ }),

/***/ 69260:
/*!*************************************************!*\
  !*** ./src/editors/CalcSettingEditor/index.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/fill */ 31848);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ 61260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var _common_TreeNodeTitle__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../common/TreeNodeTitle */ 9846);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _controls_node_CalculateAutoTask__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../controls/node/CalculateAutoTask */ 26344);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _views_right_panel_PropertyView__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../views/right-panel/PropertyView */ 79012);\n/* harmony import */ var _views_right_panel_DisplayViewItem__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../views/right-panel/DisplayViewItem */ 48752);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../constants */ 98092);\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_8___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-08 14:31:45\n * @LastEditTime: 2024-02-04 16:29:20\n * @Last Modified by: jianhang_hes\n */\n\n\n\n// import Billquery from './Billquery'\n\n\n\n\n\n\n\n\n\nvar actions = {\n  assignment: {\n    value: '$assignment',\n    hideproperty: ['customVarName', 'customVarType', 'decimalDataType', 'maxLength', 'scale']\n  },\n  customVarType: {\n    value: 'number',\n    hideproperty: ['decimalDataType', 'maxLength', 'scale']\n  }\n};\nvar ExtraComponent = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.memo)(function (_ref) {\n  var onClick = _ref.onClick;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_19__.BtnField, {\n    type: \"text\",\n    size: \"small\",\n    icon: {\n      prefix: 'designericon',\n      type: 'shanchu'\n    },\n    onClick: onClick\n  }, \"\\u5220\\u9664\");\n});\nExtraComponent.displayName = 'ExtraComponent';\n\n// {disp[curPropName]?.[index]?.assignment}\nvar AssistComponent = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.memo)(function (_ref2) {\n  var value = _ref2.value;\n  if (!value) return;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"div\", {\n    className: \"assist\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"span\", null, \"\\u8D4B\\u503C\\u5BF9\\u8C61\\uFF1A\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"span\", {\n    className: \"assist_value\",\n    title: value\n  }, value));\n});\nAssistComponent.displayName = 'AssistComponent';\n\n// 运算属性编辑器\nvar CalcSettingEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.memo)(function (props) {\n  var _context;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_17__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    isReadonly = _useContext.isReadonly,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data,\n    metaContext = kdesignerApi.meta;\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    curPropName = props.propName,\n    error = props.error,\n    readonly = props.readonly;\n  var childProperty = editor.ChildProperty,\n    source = editor.Source;\n  var nodeId = field.id,\n    disp = field._disp_,\n    refNodeId = field.refNodeId;\n  var sourceKey = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useMemo)(function () {\n    return field[source];\n  }, [field, source]);\n  var preSourceKeyRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useRef)(sourceKey);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useState)(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(_context = value || []).call(_context, function (item) {\n      return item.calcId;\n    })),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useState, 2),\n    activeKey = _useState2[0],\n    setActiveKey = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useState)([]),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useState3, 2),\n    assignments = _useState4[0],\n    setAssignments = _useState4[1];\n  var handleCollapseChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (value) {\n    setActiveKey(value);\n  }, []);\n  var renderTitle = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (_ref3) {\n    var title = _ref3.title;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(_common_TreeNodeTitle__WEBPACK_IMPORTED_MODULE_20__[\"default\"], {\n      title: title\n    });\n  }, [className]);\n  var nodeVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useMemo)(function () {\n    var preNodeVariables = getPreNodeVariablesById(nodeId) || [];\n    if (source) {\n      preNodeVariables = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default()(preNodeVariables).call(preNodeVariables, function (item) {\n        return item.id === sourceKey;\n      });\n    }\n\n    // 过滤掉人员组织的\n    preNodeVariables = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_9___default()(preNodeVariables).call(preNodeVariables, function (item) {\n      var _Type_ = item._Type_;\n      var formId = item.formId;\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_23__.isFindNode)(_Type_)) {\n        // 查找节点查找方式不同\n        if (item.queryModel === 'byfilter') {\n          formId = item.formId;\n        } else {\n          var _editor = metaContext.getControlMetaEditor(_Type_, 'refbillField');\n          formId = getRefBillVarFormId(item.id, item.refbillField, _editor === null || _editor === void 0 ? void 0 : _editor.VarType);\n        }\n        return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_11___default()(_constants__WEBPACK_IMPORTED_MODULE_26__.USER_ORG_IDS).call(_constants__WEBPACK_IMPORTED_MODULE_26__.USER_ORG_IDS, formId);\n      }\n      return true;\n    });\n    return preNodeVariables;\n  }, [getPreNodeVariablesById, nodeId, source, sourceKey]);\n  var defaultSettingItemData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useMemo)(function () {\n    if (!childProperty) return {};\n    return (0,_utils_control__WEBPACK_IMPORTED_MODULE_23__.createNewSettingDefaultData)(childProperty);\n  }, [childProperty]);\n  var calcSettingData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useMemo)(function () {\n    var ass = [];\n    value === null || value === void 0 || value.forEach(function (item) {\n      ass.push(item.assignment);\n    });\n    setAssignments(ass);\n    return value || [];\n  }, [value]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useEffect)(function () {\n    if (preSourceKeyRef.current !== sourceKey) {\n      var newSettingItem = (0,_utils_control__WEBPACK_IMPORTED_MODULE_23__.createNewSettingItem)(defaultSettingItemData);\n      var defaultSetting = [newSettingItem];\n      // 切换表单的时候，要默认选中展开第一个\n      setActiveKey([newSettingItem.calcId]);\n      dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_16__.createUpdateAction)([[nodeId, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, defaultSetting), \"_disp_\", _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, [])))]]));\n      preSourceKeyRef.current = sourceKey;\n    }\n  }, [sourceKey, nodeId, curPropName, disp, childProperty, defaultSettingItemData]);\n  var getNewCalSettingData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (index, propName, propValue) {\n    if (calcSettingData[index]) {\n      var newCalSettingData = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__.cloneDeep)(calcSettingData);\n      var newCalSettingItemData = _objectSpread(_objectSpread({}, newCalSettingData[index]), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, propName, propValue));\n      newCalSettingData[index] = newCalSettingItemData;\n      return newCalSettingData;\n    }\n    return {};\n  }, [calcSettingData]);\n  var handleChangeIndexData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (index, propName, propValue) {\n    var newCalSettingData = getNewCalSettingData(index, propName, propValue);\n    handleChange(newCalSettingData);\n  }, [getNewCalSettingData, calcSettingData]);\n  var handlePropertyChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (index) {\n    for (var _len = arguments.length, propertyData = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      propertyData[_key - 1] = arguments[_key];\n    }\n    var _ref5 = propertyData || [],\n      _ref6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_ref5, 3),\n      propName = _ref6[1],\n      propValue = _ref6[2];\n    if (propName === 'assignment' && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(propValue) === 'object') {\n      var label = propValue.label,\n        _value = propValue.value;\n      var curPropDisplay = [];\n      if (disp[curPropName]) {\n        curPropDisplay = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__.cloneDeep)(disp[curPropName]);\n        if (curPropDisplay[index]) {\n          curPropDisplay[index][propName] = label;\n        } else {\n          curPropDisplay = [(0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, propName, label)];\n        }\n      } else {\n        var _context2;\n        curPropDisplay = _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_12___default()(_context2 = new Array(index)).call(_context2, {});\n        curPropDisplay[index] = (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, propName, label);\n      }\n      var newDisp = _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, curPropDisplay));\n      dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_16__.createUpdateAction)([[nodeId, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, getNewCalSettingData(index, propName, _value)), \"_disp_\", newDisp)]]));\n    } else {\n      handleChangeIndexData(index, propName, propValue);\n    }\n    return true;\n  }, [handleChangeIndexData, getNewCalSettingData, curPropName, disp, nodeId, calcSettingData]);\n\n  /**\n   * 删除\n   */\n  var handleClickDeleteSettingItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (index) {\n    var newCalSettingData = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__.cloneDeep)(calcSettingData);\n    var newDisp = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__.cloneDeep)(disp[curPropName] || []);\n    _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default()(newCalSettingData).call(newCalSettingData, index, 1);\n    if (newDisp.length > 0) {\n      _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_13___default()(newDisp).call(newDisp, index, 1);\n    }\n    dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_16__.createUpdateAction)([[nodeId, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, newCalSettingData), \"_disp_\", _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, newDisp)))]]));\n  }, [calcSettingData]);\n\n  /**\n   * 新增一条\n   */\n  var handleClickAddSettingItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function () {\n    var _context3, _context4, _context5, _context6;\n    var newCalSettingItem = (0,_utils_control__WEBPACK_IMPORTED_MODULE_23__.createNewSettingItem)(defaultSettingItemData);\n    var newDisp = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_21__.cloneDeep)(disp[curPropName] || [{}]);\n    // setNewSettingItem(newCalSettingItem)\n    setActiveKey(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context3 = []).call(_context3, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(activeKey || []), [newCalSettingItem.calcId]));\n    handleChange(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context4 = []).call(_context4, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(calcSettingData), [newCalSettingItem]));\n    dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_16__.createUpdateAction)([[nodeId, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context5 = []).call(_context5, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(calcSettingData), [newCalSettingItem])), \"_disp_\", _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, curPropName, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context6 = []).call(_context6, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(newDisp), [{}]))))]]));\n  }, [activeKey, calcSettingData]);\n  var isHideProperty = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_15__.useCallback)(function (field, id) {\n    var hidePropsList = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_8___default()(actions);\n    return hidePropsList.some(function (name) {\n      var _actions$name;\n      if (field[name] !== ((_actions$name = actions[name]) === null || _actions$name === void 0 ? void 0 : _actions$name.value)) {\n        var _actions$name2;\n        if ((_actions$name2 = actions[name]) !== null && _actions$name2 !== void 0 && (_actions$name2 = _actions$name2.hideproperty) !== null && _actions$name2 !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_11___default()(_actions$name2).call(_actions$name2, id)) {\n          return true;\n        }\n      }\n      return false;\n    });\n  }, []);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-calcsetting\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_18__.Collapse, {\n    activeKey: activeKey,\n    onChange: handleCollapseChange\n    // defaultActiveKey={[lastCalcSettingItemId]}\n  }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(calcSettingData).call(calcSettingData, function (item, index) {\n    var _error$msg, _disp$curPropName;\n    var errorList = error === null || error === void 0 || (_error$msg = error.msg) === null || _error$msg === void 0 ? void 0 : _error$msg[item.calcId];\n    var errorData = {};\n    if (errorList) {\n      errorList.forEach(function (errorItem) {\n        errorData[errorItem.prop] = errorItem.msg;\n      });\n    }\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_18__.Collapse.Panel, {\n      key: item.calcId,\n      header: \"\\u8FD0\\u7B97\".concat(index + 1),\n      panelKey: item.calcId,\n      extra: calcSettingData.length > 1 && !isReadonly && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(ExtraComponent, {\n        onClick: function onClick() {\n          return handleClickDeleteSettingItem(index);\n        }\n      }),\n      assist: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(AssistComponent, {\n        value: (0,_controls_node_CalculateAutoTask__WEBPACK_IMPORTED_MODULE_22__.isCustom)(item.assignment) ? item.customVarName : ((_disp$curPropName = disp[curPropName]) === null || _disp$curPropName === void 0 || (_disp$curPropName = _disp$curPropName[index]) === null || _disp$curPropName === void 0 ? void 0 : _disp$curPropName.assignment) || ''\n      })\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"div\", {\n      className: \"\".concat(className, \"-calcsetting-panel\")\n    }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(childProperty).call(childProperty, function (propertyData) {\n      var _disp$curPropName2;\n      var config = propertyData.Config,\n        id = propertyData.Number,\n        actions = propertyData.Actions;\n      var newItem = _objectSpread({}, item);\n      delete newItem._Type_;\n      var childField = (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__[\"default\"])({\n        id: nodeId,\n        _disp_: disp\n      }, newItem);\n      var hide = isHideProperty(childField, id);\n      if (hide) return null;\n\n      // 只读\n      if (isReadonly) {\n        var _propertyData$Config;\n        // 排除的属性或者是没有值的时候统一处理\n        var _editor2 = (propertyData === null || propertyData === void 0 || (_propertyData$Config = propertyData.Config) === null || _propertyData$Config === void 0 ? void 0 : _propertyData$Config.Editor) || {};\n        var newPropertyData = _objectSpread(_objectSpread({}, propertyData), {}, {\n          Editor: _editor2,\n          Id: propertyData.Number\n        });\n        // 排除的属性或者是没有值的时候统一处理\n        if (!_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_11___default()(_views_right_panel_PropertyView__WEBPACK_IMPORTED_MODULE_24__.excludeDisalyViewPropertyTypeList).call(_views_right_panel_PropertyView__WEBPACK_IMPORTED_MODULE_24__.excludeDisalyViewPropertyTypeList, _editor2 === null || _editor2 === void 0 ? void 0 : _editor2.Type) || typeof childField[newPropertyData.Id] === 'undefined') {\n          return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(_views_right_panel_DisplayViewItem__WEBPACK_IMPORTED_MODULE_25__[\"default\"], {\n            className: \"kdesigner-right-view\",\n            displayData: childField,\n            propertyData: newPropertyData\n          });\n        }\n      }\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"div\", {\n        className: \"\".concat(className, \"-calcsetting-panel-item\"),\n        key: id\n      }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_16__.PropertyViewItem, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__[\"default\"])({}, config, propertyData, {\n        Id: id,\n        field: _objectSpread(_objectSpread({}, field), childField),\n        value: childField[id],\n        className: \"kdesigner-right-view\",\n        enableMutiSelect: false,\n        variablesTree: nodeVariablesTree,\n        readonly: readonly,\n        displayLabel: (_disp$curPropName2 = disp[curPropName]) === null || _disp$curPropName2 === void 0 || (_disp$curPropName2 = _disp$curPropName2[index]) === null || _disp$curPropName2 === void 0 ? void 0 : _disp$curPropName2[id],\n        assignments: assignments,\n        onPropertyChange: function onPropertyChange() {\n          var _context7;\n          for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n            params[_key2] = arguments[_key2];\n          }\n          return handlePropertyChange.apply(void 0, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context7 = [index]).call(_context7, params));\n        },\n        renderCustomError: function renderCustomError(errorDom, error) {\n          return true;\n        }\n      })), errorData[id] && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(\"span\", {\n        className: \"\".concat(className, \"-error-msg\")\n      }, errorData[id]));\n    })));\n  })), !readonly && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_15___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_19__.BtnField, {\n    major: true,\n    size: \"small\",\n    icon: {\n      prefix: 'designericon',\n      type: 'zengjia-yuan2'\n    },\n    onClick: handleClickAddSettingItem\n  }, \"\\u65B0\\u589E\\u4E00\\u6761\"));\n});\nCalcSettingEditor.displayName = 'CalcSettingEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_16__.ErrorBoundaryWrap)(CalcSettingEditor, 'CalcSettingEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///69260\n");

/***/ }),

/***/ 40540:
/*!*****************************************************!*\
  !*** ./src/editors/CombineSelectorEditor/index.tsx ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getSelectNodeFromTree: function() { return /* binding */ getSelectNodeFromTree; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ 11908);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _common_CombineSelector__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../common/CombineSelector */ 97276);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__);\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n/*\n * @Description: 触发流程\n * @Author: jianhang_he\n * @Date: 2023-05-11 13:52:25\n * @LastEditTime: 2024-04-11 16:02:36\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n// 获取选中的节点\nvar getSelectNodeFromTree = function getSelectNodeFromTree(key, tree) {\n  var data = tree;\n  if (!Array.isArray(tree)) {\n    data = [tree];\n  }\n  for (var i = 0; i < data.length; i++) {\n    var item = data[i];\n    if (!item) return null;\n    if (item.key === key) {\n      return item;\n    } else {\n      var node = getSelectNodeFromTree(key, item.children);\n      if (node) return node;\n    }\n  }\n  return null;\n};\n\n// 关联表单类型\nvar RefbillTypes = ['user', 'org', 'refbill'];\nvar CombineSelectorEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)(function (props) {\n  var _context, _selectField$option3;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(_context__WEBPACK_IMPORTED_MODULE_13__.DesignerContext),\n    invokeAction = _useContext.invokeAction,\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    expData = _useContext.expressionData,\n    getControlText = _useContext.getControlText;\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    Name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    id = props.id,\n    actionType = props.actionType,\n    readonly = props.readonly,\n    displayLabel = props.displayLabel,\n    propName = props.propName;\n  var _items = editor.Enum,\n    nameHidden = editor.NameHidden,\n    Default = editor.Default,\n    required = editor.Required,\n    title = editor.Title,\n    placeholder = editor.Placeholder;\n  var curNodeId = field.id,\n    disp = field._disp_,\n    assignment = field.assignment,\n    customVarType = field.customVarType,\n    fieldType = field._Type_,\n    refNodeId = field.refNodeId;\n  var filterVariablesTreeFlow = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12__.ListFilterUtil.filterVariablesTreeFlow;\n  var expressionTitle = Name;\n  var value = props.value;\n  var combineSelectorType = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(_context = ['url', 'json', 'accessTokenUrl']).call(_context, propName) ? 'textarea' : 'text';\n  var variablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return getPreNodeVariablesById(id);\n  }, [id, getPreNodeVariablesById]);\n  var getSelectField = function getSelectField(variablesTree, assignment) {\n    if (variablesTree) {\n      var selectNode = getSelectNodeFromTree(assignment, variablesTree);\n      if (selectNode) {\n        var type = selectNode === null || selectNode === void 0 ? void 0 : selectNode.type;\n        if (type !== null && type !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default()(type).call(type, 'combo')) {\n          var _selectNode$option;\n          var options = selectNode === null || selectNode === void 0 || (_selectNode$option = selectNode.option) === null || _selectNode$option === void 0 || (_selectNode$option = _selectNode$option.valueItems) === null || _selectNode$option === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(_selectNode$option).call(_selectNode$option, function (item) {\n            var label = typeof item.name === 'string' ? item.name : getControlText(item.name);\n            return _objectSpread(_objectSpread({}, item), {}, {\n              label: label\n            });\n          });\n          inputPropsRef.current = _objectSpread(_objectSpread({}, inputPropsRef.current), {}, {\n            options: options\n          });\n          return _objectSpread(_objectSpread({}, selectNode), {}, {\n            type: 'combo'\n          });\n        }\n        expressionTitle = (selectNode === null || selectNode === void 0 ? void 0 : selectNode.label) || (selectNode === null || selectNode === void 0 ? void 0 : selectNode.title);\n        return selectNode;\n      }\n    }\n    return 'text';\n  };\n\n  // const isVar = varReg.test(value)\n  // const isExpression = value?.includes('@@')\n  var inputPropsRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)({});\n  var preAssignment = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(assignment);\n\n  // const initFieldTypeRef = useRef(getSelectField(variablesTree, assignment))\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)({}),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_useState3, 2),\n    selectField = _useState4[0],\n    setSelectField = _useState4[1];\n\n  // 根据赋值对象切换对应的类型，默认是文本类型\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    var expendChildrenTree = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.expendTreeOptionChildren)((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.cloneDeep)(variablesTree)); // 复制一份数据，以免污染其它函数，展开树所有节点\n    var newSelectField = getSelectField(expendChildrenTree, assignment);\n    // 赋值对象切换的时候,当切换的赋值对象类型不同时要把对应的值清空\n    if (preAssignment.current !== assignment) {\n      preAssignment.current = assignment;\n\n      // 只有是变量才需要重新去匹配新的树里面是否存在原有的变量\n      if ((0,_utils__WEBPACK_IMPORTED_MODULE_15__.isVarStr)(value)) {\n        var _newSelectField$optio, _newSelectField$optio2;\n        // 不懂下面的逻辑？？？感觉像是选了自定义之后又切换普通赋值的场景。\n        var fvt = filterVariablesTreeFlow(variablesTree, {\n          type: (newSelectField === null || newSelectField === void 0 ? void 0 : newSelectField.type) || customVarType || 'text',\n          canMulit: true,\n          id: assignment,\n          entityId: newSelectField === null || newSelectField === void 0 || (_newSelectField$optio = newSelectField.option) === null || _newSelectField$optio === void 0 ? void 0 : _newSelectField$optio.billEntityId,\n          isMulti: (newSelectField === null || newSelectField === void 0 || (_newSelectField$optio2 = newSelectField.option) === null || _newSelectField$optio2 === void 0 ? void 0 : _newSelectField$optio2.isMulti) || false\n        });\n        var isChange = false;\n        // 穿透后不止两层，下面的逻辑可能不生效了（切换到不同类型字段，则清空以选值，否则清空）\n        fvt.forEach(function (item) {\n          var children = item === null || item === void 0 ? void 0 : item.children;\n          if (children) {\n            children.forEach(function (items) {\n              if (items.key === value) {\n                isChange = true;\n              }\n            });\n          }\n          if (item.key === value) {\n            isChange = true;\n          }\n        });\n        if (!isChange) {\n          handleChange(undefined);\n        }\n      } else {\n        // 其他的切换的时候直接清空得了\n        handleChange(undefined);\n      }\n    }\n    setSelectField(newSelectField);\n  }, [assignment, variablesTree]);\n\n  // 变量选择值变化\n  var handleVarSelectChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (selectedKeys, info) {\n    if (selectedKeys.length === 1) {\n      handleChange(selectedKeys[0]);\n    }\n  }, [handleChange]);\n\n  // 输入框或者下拉等组合控件发生变化\n  var handleInputChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (data) {\n    var d = data !== null && data !== void 0 && data.target ? data.target.value : data;\n    handleChange === null || handleChange === void 0 || handleChange(Array.isArray(d) ? d.join(',') : d);\n  }, [handleChange]);\n  var handleInputClear = function handleInputClear() {\n    handleChange(undefined);\n  };\n\n  // 字段树数据\n  var fieldData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return getPreNodeVariablesById(id);\n  }, [id, getPreNodeVariablesById]);\n\n  /**\n   * 公式弹窗点击确定\n   * @param str 编辑器文本内容\n   */\n  var onConfirm = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (str, isCN) {\n    if (!str) return handleChange(''); // 为空值时\n    // // 替换中文字符\n    // str = str.replace(/）/g, ')').replace(/（/g, '(').replace(/“/g, '\"').replace(/”/g, '\"').replace(/‘/g, \"'\").replace(/’/g, \"'\")\n    // const newStr = str.replace(FIELD_REG_EXP, '$1').replace(EXP_REG_EXP, '$1')\n    var content = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.transformConditionValue)(str, isCN);\n    handleChange(content);\n  }, [handleChange, value]);\n  var newVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    var _selectField$option, _selectField$option2;\n    // api中屏蔽多条关联表单\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isApiNode)(fieldType)) {\n      var newVarTreeList = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.exludeTreeNodeByCallback)((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.cloneDeep)(variablesTree), function (node) {\n        var _node$option;\n        return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(RefbillTypes).call(RefbillTypes, node === null || node === void 0 ? void 0 : node.type) ? !(node !== null && node !== void 0 && (_node$option = node.option) !== null && _node$option !== void 0 && _node$option.isMulti) : true;\n      });\n      return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.expendTreeOptionChildren)(newVarTreeList, function (item) {\n        return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.checkExpendSingleAndFocusMulti)(item, refNodeId);\n      });\n    }\n    // const data = isUpdateNode(fieldType) || isNewAddNode(fieldType) ? formatFieldTree(variablesTree, refNodeId) : variablesTree\n    var data = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.expendTreeOptionChildren)((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.cloneDeep)(variablesTree), function (item) {\n      return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.checkExpendSingleAndFocusMulti)(item, refNodeId);\n    });\n    return filterVariablesTreeFlow(data, {\n      type: (selectField === null || selectField === void 0 ? void 0 : selectField.type) || customVarType || 'text',\n      canMulit: true,\n      id: assignment,\n      entityId: selectField === null || selectField === void 0 || (_selectField$option = selectField.option) === null || _selectField$option === void 0 ? void 0 : _selectField$option.billEntityId,\n      isMulti: (selectField === null || selectField === void 0 || (_selectField$option2 = selectField.option) === null || _selectField$option2 === void 0 ? void 0 : _selectField$option2.isMulti) || false\n    });\n  }, [variablesTree, selectField, customVarType, assignment, fieldType, refNodeId]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: Name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_common_CombineSelector__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n    placeholder: placeholder,\n    value: value === undefined ? selectField !== null && selectField !== void 0 && (_selectField$option3 = selectField.option) !== null && _selectField$option3 !== void 0 && _selectField$option3.isMulti && (0,_utils__WEBPACK_IMPORTED_MODULE_15__.isCombo)(selectField === null || selectField === void 0 ? void 0 : selectField.type) ? [] : value : value // 如果是单选已选值切换多选，传undefined会有问题，因此这里传空数组\n    ,\n    fieldType: (selectField === null || selectField === void 0 ? void 0 : selectField.type) || combineSelectorType,\n    fieldProps: selectField === null || selectField === void 0 ? void 0 : selectField.option,\n    inputProps: inputPropsRef.current\n    // variablesTree={filterVariablesTree(variablesTree, { type: selectField?.type || customVarType || 'text', id: assignment })}\n    ,\n    variablesTree: newVariablesTree,\n    actionType: actionType,\n    className: \"\".concat(className, \"-newsetting-value\"),\n    fieldTree: fieldData,\n    readonly: readonly,\n    displayLabel: displayLabel,\n    expressionTitle: expressionTitle,\n    hideFunc: (0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isApiNode)(fieldType),\n    onInputChange: handleInputChange,\n    onInputClear: handleInputClear,\n    onVarSelectClear: handleInputClear,\n    onVarSelectChange: handleVarSelectChange,\n    onExpressionConfirm: onConfirm\n  }));\n});\nCombineSelectorEditor.displayName = 'CombineSelectorEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.ErrorBoundaryWrap)(CombineSelectorEditor, 'CombineSelectorEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///40540\n");

/***/ }),

/***/ 96680:
/*!***********************************************!*\
  !*** ./src/editors/ConditionEditor/index.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ 72400);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_instance_replace_all__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ 35680);\n/* harmony import */ var _babel_runtime_corejs3_core_js_instance_replace_all__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_instance_replace_all__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _controls_node_CalculateAutoTask__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../controls/node/CalculateAutoTask */ 26344);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n// import CustomInputTrigger from '../common/CustomInputTrigger'\n// import ConditionModal from './ConditionModal'\n// import { DesignerContext } from '../../context'\n// import EditArea from './EditArea'\n\n// import { ruleMetaInfo, treeData } from './mock'\n\n\n\n\n\n\n\n// 转value为对象\nvar toJsonObject = function toJsonObject(value) {\n  if (!value) {\n    return {\n      content: '',\n      check: false\n    };\n  }\n  if (typeof value === 'string') {\n    return JSON.parse(value);\n  }\n  return value;\n};\n\n// 转value为字符串\nvar toJsonString = function toJsonString(data) {\n  return _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_7___default()(data);\n};\nvar ConditionEditor = kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().memo(function (_ref) {\n  var field = _ref.field,\n    id = _ref.id,\n    propName = _ref.propName,\n    actionType = _ref.actionType,\n    modalTitle = _ref.modalTitle,\n    locked = _ref.locked,\n    name = _ref.Name,\n    handleChange = _ref.handleChange,\n    value = _ref.value,\n    editor = _ref.editor,\n    tips = _ref.Tips,\n    className = _ref.className,\n    readonly = _ref.readonly,\n    hiddenTitle = _ref.hiddenTitle;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    hideFunc = editor.HideFunc,\n    hasCheck = editor.HasCheck,\n    placeholder = editor.Placeholder,\n    title = editor.Title;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    expData = _useContext.expressionData;\n  var controlType = field._Type_,\n    controlName = field.name;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    modalVisible = _useState2[0],\n    setModalVisible = _useState2[1]; // 弹窗显示隐藏\n  var valueData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    return hasCheck ? toJsonObject(value) : value;\n  }, [value]);\n  var expressionValue = hasCheck ? valueData.content : valueData; // 有开关的要取content值\n\n  var oldName = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useRef)(''); // 控件名称，用户比对是否有更新\n\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n      var str = expressionValue || '';\n      var arr = str.split('@@');\n      return arr.length > 1 ? arr : ['', str, 1];\n    }, [expressionValue]),\n    _useMemo2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useMemo, 3),\n    newValue = _useMemo2[1],\n    lang = _useMemo2[2]; // 编辑器值|语言\n  // const editAreaRef = useRef<any>(null) // 编辑区域\n  // const conditionRef = useRef<any>(null) // 公式区域容器\n  // const [editValue, setEditValue] = useState(newValue)\n\n  // 字段树数据\n  var fieldData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    return getPreNodeVariablesById(id);\n  }, [id, getPreNodeVariablesById]);\n\n  // 函数数据列表\n  var expressionData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    var _expData$expression = expData === null || expData === void 0 ? void 0 : expData.expression,\n      functionTypes = _expData$expression.functionTypes;\n    return functionTypes;\n  }, [expData === null || expData === void 0 ? void 0 : expData.expression]);\n\n  // 计算符号\n  var operations = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    var _expData$expression2 = expData === null || expData === void 0 ? void 0 : expData.expression,\n      operations = _expData$expression2.functionOperations;\n    return _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_8___default()(operations);\n  }, [expData === null || expData === void 0 ? void 0 : expData.expression]);\n\n  // 监听值变化\n  // useEffect(() => {\n  //   setEditValue(newValue)\n  // }, [newValue])\n  var handleChangeDataValue = function handleChangeDataValue(data) {\n    var newValue = value;\n    handleChange(_objectSpread(_objectSpread({}, newValue), data));\n  };\n\n  /**\n   * 公式弹窗点击确定\n   * @param str 编辑器文本内容\n   */\n  var onConfirm = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useCallback)(function (str, isCN) {\n    setModalVisible(false);\n    if (!str) {\n      if (hasCheck) {\n        return handleChangeDataValue({\n          content: ''\n        });\n      } else {\n        return handleChange('');\n      }\n    } // 为空值时\n    var content = (0,_utils__WEBPACK_IMPORTED_MODULE_18__.transformConditionValue)(str, isCN);\n    console.log('onConfirm', content);\n    // 有校验的格式不一致\n    if (hasCheck) {\n      handleChangeDataValue({\n        content: content\n      });\n    } else {\n      handleChange(content);\n    }\n  }, [handleChange, value, hasCheck, _utils__WEBPACK_IMPORTED_MODULE_18__.transformConditionValue]);\n\n  // 编辑器失焦\n  // const onEditorBlur = useCallback(() => {\n  //   const editVal = editAreaRef.current.getEditorValue()\n  //   if (editVal !== newValue) onConfirm(editVal, lang || 1)\n  // }, [onConfirm])\n\n  // 点击更多按钮\n  var handleClick = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useCallback)(function (e) {\n    e.preventDefault();\n    if (locked || readonly) return;\n    setModalVisible(true);\n  }, [setModalVisible, locked, readonly]);\n  var handleChangeSwitch = function handleChangeSwitch(checked) {\n    if (!hasCheck) return;\n    var newData = {\n      check: checked\n    };\n    if (controlType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_19__.NOCODE_AUDIT_TASK && checked && !(value !== null && value !== void 0 && value.content)) {\n      var _context;\n      var procName = '${proc.procName}';\n      var procExp = (0,_utils__WEBPACK_IMPORTED_MODULE_18__.createFieldRegText)(procName, {\n        title: '[文本]流程名称'\n      });\n      newData.content = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context = \"\\u60A8\\u6709\\u4E00\\u4E2A\\u3010 \".concat(procName, \" \\u3011\\u5F85\\u5BA1\\u6279\\uFF0C\\u8BF7\\u5C3D\\u5FEB\\u5904\\u7406@@\\u60A8\\u6709\\u4E00\\u4E2A\\u3010 \")).call(_context, procExp, \" \\u3011\\u5F85\\u5BA1\\u6279\\uFF0C\\u8BF7\\u5C3D\\u5FEB\\u5904\\u7406@@1\");\n    }\n    handleChangeDataValue(newData);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    // 侦听名称变化\n    if (oldName.current !== controlName && controlType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_19__.NOCODE_AUDIT_TASK && value !== null && value !== void 0 && value.check) {\n      var _value$content;\n      var content = value === null || value === void 0 || (_value$content = value.content) === null || _value$content === void 0 ? void 0 : _babel_runtime_corejs3_core_js_instance_replace_all__WEBPACK_IMPORTED_MODULE_10___default()(_value$content).call(_value$content, \"\\u3010 \".concat(oldName.current, \" \\u3011\"), \"\\u3010 \".concat(controlName, \" \\u3011\"));\n      handleChange(_objectSpread(_objectSpread({}, value), {}, {\n        content: content || ''\n      }));\n      oldName.current = controlName;\n    }\n  }, [controlName, handleChange, value, controlType]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    var _context2, _context3, _context4, _context5, _context6, _context7;\n    if (controlType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_19__.NOCODE_AUDIT_TASK && value !== null && value !== void 0 && value.check && !(value !== null && value !== void 0 && value.content)) {\n      var procName = '${proc.procName}';\n      var procExp = (0,_utils__WEBPACK_IMPORTED_MODULE_18__.createFieldRegText)(procName, {\n        title: '[文本]流程名称'\n      });\n      switch (propName) {\n        // case 'notifyApproverMsg': // 审批时通知\n        //   handleChangeDataValue({\n        //     check: true,\n        //     content: `您有一个【 ${procName} 】待审批，请尽快处理@@您有一个【 ${procExp} 】待审批，请尽快处理@@1`\n        //   })\n        //   break\n        case 'notifyInitiatorPassMsg':\n          // 审批通过时通知\n          handleChangeDataValue({\n            check: true,\n            content: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context3 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context4 = \"\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \".concat(procName, \" \\u3011\\u5728\\u3010 \")).call(_context4, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u901A\\u8FC7@@\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \")).call(_context3, procExp, \" \\u3011\\u5728\\u3010 \")).call(_context2, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u901A\\u8FC7@@1\")\n          });\n          break;\n        case 'notifyInitiatorRejectMsg':\n          // 审批否决时通知\n          handleChangeDataValue({\n            check: true,\n            content: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context5 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context6 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_9___default()(_context7 = \"\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \".concat(procName, \" \\u3011\\u5728\\u3010 \")).call(_context7, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u5426\\u51B3@@\\u60A8\\u7533\\u8BF7\\u7684\\u3010 \")).call(_context6, procExp, \" \\u3011\\u5728\\u3010 \")).call(_context5, controlName, \" \\u3011\\u8282\\u70B9\\u5BA1\\u6838\\u5426\\u51B3@@1\")\n          });\n          break;\n      }\n    }\n  }, [value === null || value === void 0 ? void 0 : value.check, value === null || value === void 0 ? void 0 : value.content, controlType, handleChangeDataValue]);\n  var star = readonly ? false : required;\n  // console.log('ConditionEditor', newValue, hideFunc)\n  var css = classnames__WEBPACK_IMPORTED_MODULE_17___default()(\"\".concat(className, \"-condition\"), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, \"\".concat(className, \"-nohover\"), readonly));\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().Fragment), null, !hiddenTitle && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_17___default()(\"\".concat(className, \"-condition-title\"), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, \"\".concat(className, \"-readonly\"), readonly))\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.NameTipWrapper, {\n    name: name,\n    className: className,\n    nameHidden: nameHidden,\n    tips: tips,\n    required: star,\n    title: title\n  }), hasCheck && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14__.Switch, {\n    checked: valueData === null || valueData === void 0 ? void 0 : valueData.check,\n    disabled: readonly,\n    onChange: handleChangeSwitch\n  })), (!hasCheck || (valueData === null || valueData === void 0 ? void 0 : valueData.check)) && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    className: css,\n    onMouseDown: handleClick\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    className: \"code-box\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_13__.EditArea, {\n    value: newValue,\n    placeholder: placeholder,\n    expressionData: expressionData,\n    operations: operations,\n    language: lang,\n    fieldData: fieldData,\n    readOnly: \"nocursor\"\n  })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    className: \"fx\"\n  }, \"FX\")), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_13__.Condition, {\n    value: newValue,\n    language: lang,\n    editorPlaceholder: placeholder,\n    hideFunc: hideFunc,\n    fieldData: fieldData,\n    defaultExpandAll: false,\n    expressionData: expressionData,\n    operations: operations,\n    actionType: actionType,\n    modalTitle: name // 和编辑器名称对应\n    ,\n    editorTitle: (0,_controls_node_CalculateAutoTask__WEBPACK_IMPORTED_MODULE_15__.getExpressionName)(name, field),\n    visible: modalVisible,\n    onClose: function onClose() {\n      return setModalVisible(false);\n    },\n    onConfirm: onConfirm\n  })));\n});\nConditionEditor.displayName = 'ConditionEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.ErrorBoundaryWrap)(ConditionEditor, 'ConditionEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///96680\n");

/***/ }),

/***/ 7712:
/*!********************************************************!*\
  !*** ./src/editors/DatePickerPropertyEditor/index.tsx ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   EditorPropertyDatePicker: function() { return /* binding */ EditorPropertyDatePicker; }\n/* harmony export */ });\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ 41232);\n/*\n * @Description: 日期选择编辑器\n * @Author: jianhang_he\n * @Date: 2022-08-09 17:17:51\n * @LastEditTime: 2023-12-12 15:10:07\n * @Last Modified by: jianhang_he\n */\n\n\n\n\nvar EditorPropertyDatePicker = function EditorPropertyDatePicker(props) {\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    picker = props.picker,\n    name = props.Name,\n    tips = props.Tips,\n    id = props.Id;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    allowClear = editor.AllowClear,\n    borderType = editor.BorderType,\n    placeholder = editor.Placeholder,\n    title = editor.Title,\n    editorPicker = editor.Picker,\n    _editor$Format = editor.Format,\n    format = _editor$Format === void 0 ? 'yyyy-MM-dd hh:mm:ss' : _editor$Format,\n    subTitle = editor.SubTitle;\n  var handleChangeDate = function handleChangeDate(value) {\n    console.log('handleChangeDate', value);\n    if (value) {\n      if (!(value instanceof Date)) return;\n      if (id === 'startTime') {\n        value.setHours(0, 0, 0);\n      } else if (id === 'endTime') {\n        value.setHours(23, 59, 59);\n      }\n      var dateString = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.dateFormat)(format, value);\n      handleChange(dateString);\n    } else {\n      handleChange(value);\n    }\n  };\n\n  // 暂时不知道想要获取什么值和属性，用到的时候才改造吧 包括handleChange\n  // const defaultValue = useMemo(() => {\n  //   return value ?? ''\n  // }, [value])\n\n  var dateValue = typeof value === 'string' && value ? new Date(value) : value;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title,\n    subTitle: subTitle\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_1__.DatePicker, {\n    className: \"\".concat(className, \"-datepicker-editor\"),\n    dropdownClassName: \"\".concat(className, \"-datepickerpanel-editor\"),\n    disabled: locked,\n    borderType: borderType,\n    allowClear: allowClear,\n    value: dateValue\n    // onOk={handleChange}\n    ,\n    onChange: handleChangeDate,\n    picker: editorPicker || picker,\n    placeholder: placeholder\n  }));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (EditorPropertyDatePicker);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNzcxMi5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBS0E7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBRUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBSUE7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2VkaXRvcnMvRGF0ZVBpY2tlclByb3BlcnR5RWRpdG9yL2luZGV4LnRzeD81MTA2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246IOaXpeacn+mAieaLqee8lui+keWZqFxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIyLTA4LTA5IDE3OjE3OjUxXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTEyLTEyIDE1OjEwOjA3XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IEZDLCB1c2VNZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBEYXRlUGlja2VyIH0gZnJvbSAnQGtkY2xvdWRqcy9rZGVzaWduJ1xuaW1wb3J0IHtcbiAgTmFtZVRpcFdyYXBwZXIsXG4gIGV2ZW50QnVzLFxuICBFcnJvckJvdW5kYXJ5V3JhcFxufSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5pbXBvcnQgeyBkYXRlRm9ybWF0IH0gZnJvbSAnLi4vLi4vdXRpbHMnXG5cbmV4cG9ydCBjb25zdCBFZGl0b3JQcm9wZXJ0eURhdGVQaWNrZXI6IEZDID0gKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgaGFuZGxlQ2hhbmdlLCB2YWx1ZSwgY2xhc3NOYW1lLCBlZGl0b3IsIGxvY2tlZCwgcGlja2VyLCBOYW1lOiBuYW1lLCBUaXBzOiB0aXBzLCBJZDogaWQgfSA9IHByb3BzXG4gIGNvbnN0IHtcbiAgICBOYW1lSGlkZGVuOiBuYW1lSGlkZGVuLFxuICAgIFJlcXVpcmVkOiByZXF1aXJlZCxcbiAgICBBbGxvd0NsZWFyOiBhbGxvd0NsZWFyLFxuICAgIEJvcmRlclR5cGU6IGJvcmRlclR5cGUsXG4gICAgUGxhY2Vob2xkZXI6IHBsYWNlaG9sZGVyLFxuICAgIFRpdGxlOiB0aXRsZSxcbiAgICBQaWNrZXI6IGVkaXRvclBpY2tlcixcbiAgICBGb3JtYXQ6IGZvcm1hdCA9ICd5eXl5LU1NLWRkIGhoOm1tOnNzJyxcbiAgICBTdWJUaXRsZTogc3ViVGl0bGVcbiAgfSA9IGVkaXRvclxuXG4gIGNvbnN0IGhhbmRsZUNoYW5nZURhdGUgPSAodmFsdWUpID0+IHtcbiAgICBjb25zb2xlLmxvZygnaGFuZGxlQ2hhbmdlRGF0ZScsIHZhbHVlKVxuICAgIGlmICh2YWx1ZSkge1xuICAgICAgaWYgKCEodmFsdWUgaW5zdGFuY2VvZiBEYXRlKSkgcmV0dXJuXG5cbiAgICAgIGlmIChpZCA9PT0gJ3N0YXJ0VGltZScpIHtcbiAgICAgICAgdmFsdWUuc2V0SG91cnMoMCwgMCwgMClcbiAgICAgIH0gZWxzZSBpZiAoaWQgPT09ICdlbmRUaW1lJykge1xuICAgICAgICB2YWx1ZS5zZXRIb3VycygyMywgNTksIDU5KVxuICAgICAgfVxuXG4gICAgICBjb25zdCBkYXRlU3RyaW5nID0gZGF0ZUZvcm1hdChmb3JtYXQsIHZhbHVlKVxuICAgICAgaGFuZGxlQ2hhbmdlKGRhdGVTdHJpbmcpXG4gICAgfSBlbHNlIHtcbiAgICAgIGhhbmRsZUNoYW5nZSh2YWx1ZSlcbiAgICB9XG4gIH1cblxuICAvLyDmmoLml7bkuI3nn6XpgZPmg7PopoHojrflj5bku4DkuYjlgLzlkozlsZ7mgKfvvIznlKjliLDnmoTml7blgJnmiY3mlLnpgKDlkKcg5YyF5ousaGFuZGxlQ2hhbmdlXG4gIC8vIGNvbnN0IGRlZmF1bHRWYWx1ZSA9IHVzZU1lbW8oKCkgPT4ge1xuICAvLyAgIHJldHVybiB2YWx1ZSA/PyAnJ1xuICAvLyB9LCBbdmFsdWVdKVxuXG4gIGNvbnN0IGRhdGVWYWx1ZSA9IHR5cGVvZiB2YWx1ZSA9PT0gJ3N0cmluZycgJiYgdmFsdWUgPyBuZXcgRGF0ZSh2YWx1ZSkgOiB2YWx1ZVxuXG4gIHJldHVybiAoXG4gICAgPD5cbiAgICAgIDxOYW1lVGlwV3JhcHBlciBuYW1lSGlkZGVuPXtuYW1lSGlkZGVufSBjbGFzc05hbWU9e2NsYXNzTmFtZX0gbmFtZT17bmFtZX0gdGlwcz17dGlwc30gcmVxdWlyZWQ9e3JlcXVpcmVkfSB0aXRsZT17dGl0bGV9IHN1YlRpdGxlPXtzdWJUaXRsZX0vPlxuICAgICAgPERhdGVQaWNrZXJcbiAgICAgICAgY2xhc3NOYW1lPXtgJHtjbGFzc05hbWV9LWRhdGVwaWNrZXItZWRpdG9yYH1cbiAgICAgICAgZHJvcGRvd25DbGFzc05hbWU9e2Ake2NsYXNzTmFtZX0tZGF0ZXBpY2tlcnBhbmVsLWVkaXRvcmB9XG4gICAgICAgIGRpc2FibGVkPXtsb2NrZWR9XG4gICAgICAgIGJvcmRlclR5cGU9e2JvcmRlclR5cGV9XG4gICAgICAgIGFsbG93Q2xlYXI9e2FsbG93Q2xlYXJ9XG4gICAgICAgIHZhbHVlPXtkYXRlVmFsdWV9XG4gICAgICAgIC8vIG9uT2s9e2hhbmRsZUNoYW5nZX1cbiAgICAgICAgb25DaGFuZ2U9e2hhbmRsZUNoYW5nZURhdGV9XG4gICAgICAgIHBpY2tlcj17ZWRpdG9yUGlja2VyIHx8IHBpY2tlcn1cbiAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgLz5cbiAgICA8Lz5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBFZGl0b3JQcm9wZXJ0eURhdGVQaWNrZXJcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///7712\n");

/***/ }),

/***/ 88768:
/*!********************************************!*\
  !*** ./src/editors/FilterEditor/index.tsx ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ 72400);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../constants */ 98092);\n/* harmony import */ var _hooks_useRefBillProps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../hooks/useRefBillProps */ 82500);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _hooks_useQueryEventData__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../hooks/useQueryEventData */ 23312);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n/*\n * @Description: 过滤编辑器-查找表单节点\n * @Author: jianhang_he\n * @Date: 2023-03-27 14:28:14\n * @LastEditTime: 2024-04-23 10:34:04\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n\nvar _ref = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__.treeUtils || {},\n  dfs = _ref.dfs,\n  exludeTreeNodeByCallback = _ref.exludeTreeNodeByCallback,\n  getListConfigPure = _ref.getListConfigPure;\nvar FilterEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    readonly = props.readonly,\n    _props$value = props.value,\n    value = _props$value === void 0 ? [] : _props$value;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    source = editor.Source,\n    _editor$ShowVar = editor.ShowVar,\n    showVar = _editor$ShowVar === void 0 ? true : _editor$ShowVar;\n  var formId = field[source],\n    nodeId = field.id,\n    fieldKey = field.key;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    invokeAction = _useContext.invokeAction,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    compareTypesMap = _useContext.compareType;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    colHeadFilter = _useState2[0],\n    setHeadColFilter = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(value),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState3, 2),\n    innerValue = _useState4[0],\n    setInnerValue = _useState4[1];\n  var preFormIdref = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(formId); // 保存上一次选择过的formId，\n  var timer = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(null);\n  var refBillProps = (0,_hooks_useRefBillProps__WEBPACK_IMPORTED_MODULE_18__[\"default\"])({\n    fieldKey: fieldKey\n  });\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    // if (value !== innerValue) {\n    //   setInnerValue(value)\n    // }\n    setInnerValue(function (prev) {\n      return (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__.isEqual)(prev, value) ? prev : value;\n    });\n  }, [value, setInnerValue]);\n  var nodeVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    // 展开数据，只展开单选，不展开多选\n    return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_22__.expendTreeOptionChildren)(getPreNodeVariablesById(nodeId), function (item) {\n      return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_22__.checkExpendSingleAndFocusMulti)(item, '');\n    });\n  }, [getPreNodeVariablesById, nodeId]);\n\n  // 获取筛选项\n  var listFilterConfig = (0,_hooks_useQueryEventData__WEBPACK_IMPORTED_MODULE_20__[\"default\"])({\n    formId: formId,\n    eventName: 'setListTreeConfig',\n    parser: function parser(_ref2) {\n      var data = _ref2.data;\n      var result = (0,_utils__WEBPACK_IMPORTED_MODULE_19__.listFilterParser)(data, data, compareTypesMap);\n      // 排除脱敏字段、多选关联表单的子元素的listFilterConfig\n      return getListConfigPure(result);\n    },\n    defaultValue: []\n  });\n  var listTreeConfig = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if ((0,_utils__WEBPACK_IMPORTED_MODULE_19__.isOpenApi)(field.queryModel)) {\n      var _listFilterConfig = exludeTreeNodeByCallback(listFilterConfig, function (item) {\n        return !item.onlyOrder;\n      });\n      return _listFilterConfig;\n    }\n    return listFilterConfig;\n  }, [listFilterConfig, field.queryModel]);\n  var invokeGetListConfig = function invokeGetListConfig(fid) {\n    invokeAction('listtreeconfig', [fid]);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    formId && invokeGetListConfig(formId);\n  }, [formId]);\n\n  // const listConfig = useQueryListConfig({ formId })\n  // const listFilterConfig = useMemo(() => {\n  //   const { listFilterConfig, listItemConfig } = listConfig || {}\n\n  //   const newListFilterConfig: any[] = []\n\n  //   listFilterConfig?.forEach((config) => {\n  //     const {\n  //       fieldName,\n  //       compareTypes,\n  //       disabled\n  //     } = config\n\n  //     if (!disabled) {\n  //       const otherProps = listItemConfig?.find(item => item.number === fieldName) || {}\n  //       const newCompareTypes = filterCompareTypes(compareTypes)\n\n  //       newListFilterConfig.push({\n  //         ...config,\n  //         ...otherProps,\n  //         compareTypes: newCompareTypes\n  //       })\n  //     }\n  //   })\n\n  //   return newListFilterConfig\n  // }, [listConfig])\n\n  var configuredFilterItems = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if (Array.isArray(innerValue)) {\n      return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(innerValue).call(innerValue, function (item) {\n        var isExist = dfs(listFilterConfig, function (node) {\n          return node.key === item.fieldName;\n        });\n        if (isExist) {\n          var _context;\n          var _compareType = item.compareType;\n          // 兼容之前多行文本的类型是文本类型的情况\n          if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_context = _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_10___default()(_constants__WEBPACK_IMPORTED_MODULE_17__.FIELD_TYPE_MAP)).call(_context, field.type)) {\n            if (_constants__WEBPACK_IMPORTED_MODULE_17__.TEXTAREA_COMPARES_MAP[item.compareType]) {\n              _compareType = _constants__WEBPACK_IMPORTED_MODULE_17__.TEXTAREA_COMPARES_MAP[item.compareType];\n            }\n          }\n          return _objectSpread(_objectSpread({}, item), {}, {\n            compareType: _compareType,\n            value: typeof item.value === 'string' ? JSON.parse(item.value) : item.value || []\n          });\n        } else {\n          // 如果原字段被删除之后，那么数据要置空，产品确认\n          return _objectSpread(_objectSpread({}, item), {}, {\n            compareType: undefined,\n            fieldName: undefined,\n            value: []\n          });\n        }\n      });\n    }\n    return [];\n  }, [innerValue, listFilterConfig]);\n\n  // 当前节点选择的表单切换的时候\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (preFormIdref.current !== formId) {\n      preFormIdref.current = formId;\n      handleChange([]);\n    }\n  }, [formId]);\n  var listenerFilterItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (_ref3) {\n    var args = _ref3.args,\n      data = _ref3.data;\n    if ((args === null || args === void 0 ? void 0 : args.formId) === formId) {\n      var _ref4 = (args === null || args === void 0 ? void 0 : args.param) || {},\n        enumField = _ref4.enumField;\n      var items = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(configuredFilterItems).call(configuredFilterItems, function (item) {\n        return item.fieldName === enumField;\n      });\n      var fieldFilterConfig = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11___default()(listFilterConfig).call(listFilterConfig, function (item) {\n        return item.key === enumField;\n      });\n      setHeadColFilter(function (oldHeadColFilter) {\n        return _objectSpread(_objectSpread({}, oldHeadColFilter), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, enumField, {\n          configuredFilter: {\n            enumEqCompareType: '001',\n            items: items\n          },\n          fieldFilterConfig: fieldFilterConfig,\n          groupInfo: data.rows\n        }));\n      });\n    }\n  }, [formId, configuredFilterItems, listFilterConfig]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.eventBus.on(_constants__WEBPACK_IMPORTED_MODULE_17__.SET_FILTER_ITEM_LOOK, listenerFilterItem);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.eventBus.off(_constants__WEBPACK_IMPORTED_MODULE_17__.SET_FILTER_ITEM_LOOK, listenerFilterItem);\n    };\n  }, [listenerFilterItem]);\n  var delayUpdateValue = function delayUpdateValue(val) {\n    if (val === value) return;\n    timer.current && clearTimeout(timer.current);\n    timer.current = setTimeout(function () {\n      timer.current = null;\n      handleChange(val);\n    }, 300);\n  };\n  var handleChangeFilter = function handleChangeFilter(v) {\n    var newValue = v;\n    if (Array.isArray(v)) {\n      newValue = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(v).call(v, function (item) {\n        return _objectSpread(_objectSpread({}, item), {}, {\n          value: (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(item.value) === 'object' ? _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12___default()(item.value) : item.value || ''\n        });\n      });\n    }\n    setInnerValue(newValue);\n    delayUpdateValue(newValue);\n  };\n  var invokeGetFieldRecords = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (formId) {\n    var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n    invokeAction('getFilterItemLook', [formId, {\n      getEnumData: 'true',\n      enumField: fieldName,\n      filterrows: []\n    }]);\n  }, [invokeAction]);\n  var onGetFieldRecords = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (v) {\n    invokeGetFieldRecords(formId, v.fieldName);\n  }, [formId, invokeGetFieldRecords]);\n  var getVarSelectProps = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (fieldData) {\n    var value = fieldData.value;\n    if (value !== null && value !== void 0 && value.length) {\n      var _context2;\n      var selectedKeys = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(value).call(value, function (item) {\n        return item.fieldValue;\n      })).call(_context2, Boolean);\n      return {\n        expandKeys: (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_22__.getExpandedKeys)(nodeVariablesTree, selectedKeys)\n      };\n    }\n    return {};\n  }, [nodeVariablesTree]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-filter\")\n  }, readonly ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_21___default()(\"\".concat(className, \"-display-viewitem\"), 'custom-title')\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"span\", {\n    className: \"title\",\n    title: title\n  }, name)) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), readonly && !(value !== null && value !== void 0 && value.length) ? '-' : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__.FilterEditor, {\n    id: \"filter\",\n    nameHidden: true\n    // className={className}\n    ,\n    name: name,\n    tips: tips,\n    required: required,\n    readonly: readonly,\n    variablesTree: nodeVariablesTree || [],\n    listFilterConfig: listFilterConfig || [],\n    onGetFieldRecords: onGetFieldRecords,\n    fieldRecords: colHeadFilter || [],\n    style: {\n      marginTop: '0px'\n    },\n    value: configuredFilterItems,\n    refBillProps: refBillProps,\n    onChange: handleChangeFilter,\n    fieldData: {\n      fieldType: 'treeSelect'\n      // style: {\n      //   width: '184px'\n      // }\n    },\n    compareTypeData: {\n      style: !showVar ? {\n        marginRight: 12\n      } : {},\n      disabled: (0,_utils__WEBPACK_IMPORTED_MODULE_19__.isOpenApi)(field.queryModel)\n    },\n    valueData: {\n      className: \"\".concat(className, \"-filter_value\")\n    },\n    filterFooterData: {\n      listType: 'tree',\n      listData: listTreeConfig,\n      triggerText: '添加筛选条件',\n      treeProps: {\n        defaultExpandAll: false\n      }\n    },\n    showVarSelect: showVar,\n    getVarSelectProps: getVarSelectProps\n  }));\n});\nFilterEditor.displayName = 'FilterEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.ErrorBoundaryWrap)(FilterEditor, 'FilterEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///88768\n");

/***/ }),

/***/ 34988:
/*!*********************************************!*\
  !*** ./src/editors/InputPropertyEditor.tsx ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n\n/*\n * @Description: 日期选择编辑器\n * @Author: jianhang_he\n * @Date: 2022-08-09 17:17:51\n * @LastEditTime: 2024-01-24 11:23:56\n * @Last Modified by: jianhang_he\n */\n\n\nvar InputPropertyEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.memo)(function (props) {\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.InputPropertyEditor, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, props, {\n    InputTitle: props.value\n  }));\n});\nInputPropertyEditor.displayName = 'InputPropertyEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = (InputPropertyEditor);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzQ5ODguanMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUlBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvZWRpdG9ycy9JbnB1dFByb3BlcnR5RWRpdG9yLnRzeD9iNjM5Il0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246IOaXpeacn+mAieaLqee8lui+keWZqFxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIyLTA4LTA5IDE3OjE3OjUxXG4gKiBATGFzdEVkaXRUaW1lOiAyMDI0LTAxLTI0IDExOjIzOjU2XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IEZDLCBtZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQge1xuICBJbnB1dFByb3BlcnR5RWRpdG9yIGFzIERlcmZhdWx0SW5wdXRQcm9wZXJ0eUVkaXRvclxufSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5cbmNvbnN0IElucHV0UHJvcGVydHlFZGl0b3I6IEZDID0gbWVtbygocHJvcHMpID0+IHtcbiAgcmV0dXJuIDxEZXJmYXVsdElucHV0UHJvcGVydHlFZGl0b3Igey4uLnByb3BzfSBJbnB1dFRpdGxlPXtwcm9wcy52YWx1ZX0gLz5cbn0pXG5cbklucHV0UHJvcGVydHlFZGl0b3IuZGlzcGxheU5hbWUgPSAnSW5wdXRQcm9wZXJ0eUVkaXRvcidcblxuZXhwb3J0IGRlZmF1bHQgSW5wdXRQcm9wZXJ0eUVkaXRvclxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///34988\n");

/***/ }),

/***/ 97844:
/*!*******************************************!*\
  !*** ./src/editors/JudgeEditor/index.tsx ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ 52892);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ 72400);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _hooks_useDebounce__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../hooks/useDebounce */ 37448);\n/* harmony import */ var _hooks_useRefBillProps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../hooks/useRefBillProps */ 82500);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../constants */ 98092);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n// import { Tooltip } from '@kdcloudjs/kdesign'\n\n\n\n\n\n\n\n// import styles from './index.less'\n// import { unstable_batchedUpdates } from 'react-dom'\n// import produce from 'immer'\n\nvar JudgeEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (_ref) {\n  var id = _ref.id,\n    handleChange = _ref.handleChange,\n    className = _ref.className,\n    editor = _ref.editor,\n    name = _ref.Name,\n    tips = _ref.Tips,\n    field = _ref.field,\n    readonly = _ref.readonly,\n    _ref$value = _ref.value,\n    value = _ref$value === void 0 ? [] : _ref$value;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    compareType = _useContext.compareType,\n    getControlText = _useContext.getControlText,\n    batchInvoke = _useContext.batchInvoke,\n    baseUrl = _useContext.baseUrl;\n  // const [valueDataOption, setValueDataOption] = useState([])\n  // const [compareTypes, setCompareTypes] = useState([])\n  var valueRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_8___default())());\n  var fieldRecords = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)({});\n  var treeRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)({});\n  var inputValRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(value);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(value),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    inputValue = _useState2[0],\n    setInputValue = _useState2[1];\n  var delayUpdateValue = (0,_hooks_useDebounce__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(handleChange);\n  var fieldKey = field.Key;\n  var refBillProps = (0,_hooks_useRefBillProps__WEBPACK_IMPORTED_MODULE_18__[\"default\"])({\n    fieldKey: fieldKey\n  });\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    // if (value !== inputValue) {\n    //   setInputValue(value)\n    // }\n    setInputValue(function (prev) {\n      if ((0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__.isEqual)(prev, value)) {\n        return prev;\n      } else {\n        inputValRef.current = value;\n        return value;\n      }\n    });\n  }, [value]);\n\n  // 将树转成对象，以便查找\n  var transformTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (data) {\n    data.forEach(function (item) {\n      var _item$type, _item$children;\n      var obj = _objectSpread(_objectSpread({}, item), {}, {\n        children: []\n      });\n      treeRef.current[obj.key] = obj;\n      if ((_item$type = item.type) !== null && _item$type !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_item$type).call(_item$type, 'combo')) {\n        var _item$option;\n        var valueItems = item === null || item === void 0 || (_item$option = item.option) === null || _item$option === void 0 || (_item$option = _item$option.valueItems) === null || _item$option === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(_item$option).call(_item$option, function (val) {\n          return {\n            value: val.value,\n            name: typeof val.name === 'string' ? {\n              zh_CN: val.name\n            } : val.name\n          };\n        });\n        treeRef.current[item.value] = _objectSpread(_objectSpread({}, item), {}, {\n          valueItems: valueItems\n        });\n      } else {\n        treeRef.current[item.value] = item;\n      }\n      if (item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {\n        transformTree(item.children);\n      }\n      // item?.children?.forEach((node:any) => {\n      //   if (node.type?.includes('combo')) {\n      //     const valueItems = node?.option?.valueItems?.map((val:any) => {\n      //       return { value: val.value, name: typeof val.name === 'string' ? { zh_CN: val.name } : val.name }\n      //     })\n      //     treeRef.current[node.value] = { ...node, valueItems }\n      //   } else {\n      //     treeRef.current[node.value] = node\n      //   }\n      //   // 有子节点时需要再展开子节点\n      //   if (node.children) {\n      //     transformTree(node.children)\n      //   }\n      // })\n    });\n  }, []);\n\n  // 字段变量，使用formatFieldTree展开数据\n  var treeData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    var data = getPreNodeVariablesById(id, '', function (item) {\n      var _item$option2, _item$option3, _item$option4;\n      // 根据标识canJudge判断能否判断，默认true\n      // API节点单条下面无子节点时，隐藏节点\n      if ((_item$option2 = item.option) !== null && _item$option2 !== void 0 && _item$option2.canJudge && !(item !== null && item !== void 0 && (_item$option3 = item.option) !== null && _item$option3 !== void 0 && (_item$option3 = _item$option3.children) !== null && _item$option3 !== void 0 && _item$option3.length)) return false;\n      return ((_item$option4 = item.option) === null || _item$option4 === void 0 ? void 0 : _item$option4.canJudge) !== false;\n    });\n    var newData = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_21__.expendTreeOptionChildren)(data, function (item) {\n      return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_21__.checkExpendSingleAndFocusMulti)(item, '');\n    });\n    treeRef.current = {};\n    transformTree(newData);\n    return data;\n  }, [getPreNodeVariablesById, id, transformTree]);\n\n  // 获取类比列表\n  var getTypes = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (type) {\n    var entityId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n    if (!type) return [];\n    var lowerControlType = type === null || type === void 0 ? void 0 : type.toLocaleLowerCase();\n    var controlType = lowerControlType !== null && lowerControlType !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(lowerControlType).call(lowerControlType, 'combo') ? 'combo' : lowerControlType;\n    return (0,_utils__WEBPACK_IMPORTED_MODULE_19__.getFieldCompareType)({\n      compareTypesMap: compareType,\n      type: controlType,\n      entityId: entityId\n    });\n  }, [compareType]);\n\n  // 值更新，将value序列化回json\n  var filterValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    valueRef.current = new (_babel_runtime_corejs3_core_js_stable_map__WEBPACK_IMPORTED_MODULE_8___default())();\n    return inputValue === null || inputValue === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(inputValue).call(inputValue, function (item) {\n      var field = treeRef.current[item.fieldName];\n      console.log('filterValue', field);\n      if (field) {\n        var _context, _compareTypes$filter$;\n        var _compareType = item.compareType;\n        // 兼容之前多行文本的类型是文本类型的情况\n        if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_context = _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_11___default()(_constants__WEBPACK_IMPORTED_MODULE_20__.FIELD_TYPE_MAP)).call(_context, field.type)) {\n          if (_constants__WEBPACK_IMPORTED_MODULE_20__.TEXTAREA_COMPARES_MAP[item.compareType]) {\n            _compareType = _constants__WEBPACK_IMPORTED_MODULE_20__.TEXTAREA_COMPARES_MAP[item.compareType];\n          }\n        }\n        var newValue = JSON.parse(item.value);\n        var _ref2 = field || {},\n          fieldCaption = _ref2.title,\n          option = _ref2.option;\n        var compareTypes = getTypes(field === null || field === void 0 ? void 0 : field.type, (option === null || option === void 0 ? void 0 : option.billEntityId) || '');\n        var compareTypeCaption = getControlText((_compareTypes$filter$ = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(compareTypes).call(compareTypes, function (type) {\n          return type.id === item.compareType;\n        })[0]) === null || _compareTypes$filter$ === void 0 ? void 0 : _compareTypes$filter$.name);\n        var items = treeRef.current[item.fieldName].valueItems;\n        var data = _objectSpread(_objectSpread({}, item), {}, {\n          compareType: _compareType,\n          value: newValue,\n          compareTypes: compareTypes,\n          fieldCaption: fieldCaption,\n          compareTypeCaption: compareTypeCaption,\n          items: items\n        }, option);\n        if (option !== null && option !== void 0 && option.billEntityId) {\n          data = _objectSpread(_objectSpread(_objectSpread({}, data), option), {}, {\n            entityId: option === null || option === void 0 ? void 0 : option.billEntityId\n          });\n        }\n        // 存储数据，目前没有使用到数据，留以后用\n        valueRef.current.set(item.fieldName, data);\n        // filter.push(data)\n        return data;\n      } else {\n        // 字段引用失败，清空值\n        return _objectSpread(_objectSpread({}, item), {}, {\n          fieldName: '',\n          compareType: '',\n          compareTypes: [],\n          value: []\n        });\n      }\n    });\n  }, [inputValue, getTypes]);\n\n  // 初始化值\n  var createValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (info) {\n    var _compareTypes$;\n    var field = typeof info === 'string' ? treeRef.current[info] : info;\n    if (!field) return;\n    var fieldName = field.value,\n      type = field.type;\n    var compareTypes = getTypes(type);\n    return {\n      _Type_: 'FilterItem',\n      fieldName: fieldName,\n      compareType: ((_compareTypes$ = compareTypes[0]) === null || _compareTypes$ === void 0 ? void 0 : _compareTypes$.id) || '',\n      value: _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12___default()([])\n    };\n  }, [compareType]);\n\n  // 选项录入变更\n  var handleFitlerChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (info) {\n    console.log('handleFitlerChange', info);\n    var data = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(info).call(info, function (item, index) {\n      var _inputValRef$current;\n      var oldItem = ((_inputValRef$current = inputValRef.current) === null || _inputValRef$current === void 0 ? void 0 : _inputValRef$current[index]) || {};\n      var compareType = item.compareType || '';\n      var fieldName = Array.isArray(item.fieldName) ? item.fieldName[0] : item.fieldName;\n      var value = _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_12___default()(item.value);\n      if (!compareType && oldItem.fieldName !== fieldName) {\n        var _getTypes;\n        // 如果是切换判断条件,则compareType需要根据条件类型选择第一个比较类型作为compertype属性\n        var _ref3 = treeRef.current[fieldName] || {},\n          type = _ref3.type;\n        compareType = ((_getTypes = getTypes(type)) === null || _getTypes === void 0 || (_getTypes = _getTypes[0]) === null || _getTypes === void 0 ? void 0 : _getTypes.id) || '';\n      }\n      if (!fieldName || !compareType) {\n        // 如果清空条件或对比类型,则数值也需要清空\n        value = '[]';\n      }\n      return _objectSpread(_objectSpread({}, item), {}, {\n        fieldName: fieldName,\n        compareType: compareType,\n        value: value\n      });\n    });\n    inputValRef.current = data; // 更新缓存\n    delayUpdateValue(data);\n    setInputValue(data);\n  }, [delayUpdateValue]);\n\n  // 点击底部按钮\n  var handleFooterFilterChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (keys, _ref4) {\n    var checked = _ref4.checked,\n      node = _ref4.node,\n      event = _ref4.event;\n    console.log('handleFooterFilterChange', keys, node);\n    var fieldName = node === null || node === void 0 ? void 0 : node.key;\n    // if ((node.hasChildNode && !['pk', 'refbill', 'user', 'org'].includes(node.type)) || !fieldName) return false\n    if (!fieldName) return false;\n    var _createValue = createValue(node),\n      _Type_ = _createValue._Type_,\n      compareType = _createValue.compareType,\n      fieldValue = _createValue.value;\n    var editorValue = (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(inputValue) || [];\n    editorValue.push({\n      _Type_: _Type_,\n      fieldName: fieldName,\n      compareType: compareType,\n      value: fieldValue\n    });\n    delayUpdateValue(editorValue);\n    setInputValue(editorValue);\n    return true;\n  }, [inputValue, delayUpdateValue, createValue]);\n  var getVarSelectProps = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (fieldData) {\n    var value = fieldData.value;\n    if (value !== null && value !== void 0 && value.length) {\n      var _context2;\n      var selectedKeys = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(value).call(value, function (item) {\n        return item.fieldValue;\n      })).call(_context2, Boolean);\n      return {\n        expandKeys: (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_21__.getExpandedKeys)(treeData, selectedKeys)\n      };\n    }\n    return {};\n  }, [treeData]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-judge-filter-editor\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__.FilterEditor, {\n    tips: tips\n    // className={className}\n    ,\n    readonly: readonly,\n    name: name,\n    required: required,\n    nameHidden: nameHidden,\n    title: title,\n    value: filterValue,\n    variablesTree: treeData,\n    fieldRecords: fieldRecords.current,\n    listFilterConfig: treeData,\n    filterFooterData: {\n      listType: 'tree',\n      triggerText: '添加判断条件',\n      treeProps: {\n        defaultExpandAll: false\n      },\n      onChange: handleFooterFilterChange\n    },\n    valueData: {\n      allowExistValueNotInOption: false,\n      className: \"\".concat(className, \"-filter_value\")\n    },\n    fieldData: {\n      fieldType: 'treeSelect',\n      enableFilterDataTransform: false,\n      flowEditorType: editor.Type\n    },\n    refBillProps: refBillProps,\n    onChange: handleFitlerChange,\n    getVarSelectProps: getVarSelectProps\n    // valueData={{ options: valueDataOption }}\n  }));\n});\nJudgeEditor.displayName = 'JudgeEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_15__.ErrorBoundaryWrap)(JudgeEditor, 'JudgeEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///97844\n");

/***/ }),

/***/ 93304:
/*!**********************************************!*\
  !*** ./src/editors/MultiVarSelect/index.tsx ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ 11908);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/ends-with */ 68456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_19__);\n\n\n\n\n\n\nvar _excluded = [\"title\", \"children\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar dfs = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__.treeUtils.dfs;\n\n// 对象选择编辑器\nvar VarSelectEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_13__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    prefixCls = _useContext.prefixCls;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data;\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    propName = props.propName,\n    error = props.error,\n    variablesTree = props.variablesTree,\n    readonly = props.readonly,\n    onPropertyChange = props.onPropertyChange,\n    assignments = props.assignments,\n    id = props.id;\n  var _items = editor.Enum,\n    nameHidden = editor.NameHidden,\n    required = editor.Required,\n    VarType = editor.VarType,\n    source = editor.Source,\n    _editor$Custom = editor.Custom,\n    Custom = _editor$Custom === void 0 ? [] : _editor$Custom,\n    title = editor.Title;\n  var nodeId = field.id,\n    disp = field._disp_,\n    fieldType = field._Type_,\n    refNodeId = field.refNodeId,\n    loopby = field.loopby;\n  var filterTree = function filterTree(tree, checkChild, parentTitle) {\n    return tree.reduce(function (newTree, treeNode) {\n      var _context, _transformedNode$chil;\n      var title = treeNode.title,\n        children = treeNode.children,\n        others = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(treeNode, _excluded);\n      var key = others.key,\n        nodeValue = others.value;\n      var fullName = parentTitle ? _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context = \"\".concat(parentTitle, \"-\")).call(_context, title) : title;\n      var transformedNode = _objectSpread({\n        fullName: fullName,\n        title: title\n      }, others);\n      if (children) {\n        transformedNode.children = filterTree(children, false, fullName);\n      }\n      if ((checkChild && (transformedNode === null || transformedNode === void 0 || (_transformedNode$chil = transformedNode.children) === null || _transformedNode$chil === void 0 ? void 0 : _transformedNode$chil.length) > 0 || !checkChild) && !(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default()(key).call(key, '${proc.') && (nodeValue !== null && nodeValue !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(nodeValue).call(nodeValue, 'ExecuteResult.QueryResult}') || nodeValue !== null && nodeValue !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(nodeValue).call(nodeValue, 'AuditNumber}') || nodeValue !== null && nodeValue !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(nodeValue).call(nodeValue, 'NodeName}') || key !== null && key !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(key).call(key, '.procName}')))) {\n        return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(newTree).call(newTree, transformedNode);\n      }\n      return newTree;\n    }, []);\n    // const newTree = cloneDeep(tree)\n    // newTree?.forEach(item => {\n    //   const c = item.children\n    //   if (c) {\n    //     item.children = filterTree(c.filter(citem => citem?.value === value || !assignments?.includes(citem?.value)), false)\n    //   }\n    //   return item\n    // })\n    // return newTree?.filter(item => ((checkChild && item.children?.length > 0) || !checkChild) && !(item?.key.startsWith('${proc.') && (item?.value?.endsWith('ExecuteResult.QueryResult}') || item?.value?.endsWith('AuditNumber}') || item?.value?.endsWith('NodeName}') || item?.key?.endsWith('.procName}'))))\n  };\n  var nodeVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    if (variablesTree) {\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_16__.isUpdateNode)(fieldType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_16__.isNewAddNode)(fieldType)) {\n        // return formatFieldTree(variablesTree, refNodeId || loopby)\n        return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_15__.expendTreeOptionChildren)(variablesTree, function (item) {\n          return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_15__.checkExpendSingleAndFocusMulti)(item, refNodeId || loopby);\n        });\n      }\n\n      // 运算节点的赋值要把查找为api的去掉\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_16__.isCalcNode)(fieldType)) {\n        return _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(variablesTree).call(variablesTree, function (item) {\n          var _Type_ = item._Type_,\n            queryModel = item.queryModel;\n          return !((0,_utils_control__WEBPACK_IMPORTED_MODULE_16__.isFindNode)(_Type_) && (0,_utils__WEBPACK_IMPORTED_MODULE_18__.isOpenApi)(queryModel));\n        });\n      }\n      return variablesTree;\n    }\n    var preNodeVariables = getPreNodeVariablesById(nodeId, VarType, undefined, true) || [];\n    if (source) {\n      preNodeVariables = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(preNodeVariables).call(preNodeVariables, function (item) {\n        return item[source] === source;\n      });\n    }\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_16__.isUpdateNode)(fieldType)) return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_15__.expendTreeOptionChildren)(preNodeVariables, function (item) {\n      return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_15__.checkExpendSingleAndFocusMulti)(item, refNodeId || loopby);\n    });\n    return preNodeVariables;\n  }, [variablesTree, getPreNodeVariablesById, nodeId, source, fieldType, refNodeId, loopby]);\n\n  // const nodeVariablesTree = useMemo(() => getPreNodeVariablesById(nodeId), [getPreNodeVariablesById, nodeId])\n\n  var onChange = function onChange(data, nodes) {\n    var newVal = (data || []).join(';');\n    var dispNames = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_10___default()(nodes).call(nodes, function (item) {\n      return (item === null || item === void 0 ? void 0 : item.label) || '-';\n    }).join();\n    dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.createUpdateAction)([[id, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({}, propName, newVal), \"_disp_\", _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({}, propName, dispNames)))]]));\n  };\n  var treeValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    var valueToArr = typeof value === 'string' && value !== '' ? value === null || value === void 0 ? void 0 : value.split(';') : [];\n    return valueToArr;\n  }, [value]);\n  var treeData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    return filterTree(nodeVariablesTree, true);\n  }, [nodeVariablesTree]);\n  var expandKeys = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    var _expandKeys = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_15__.getExpandedKeys)(treeData, treeValue);\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_expandKeys).call(_expandKeys, value);\n  }, [treeData, treeValue]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    var valueExsit = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(treeValue).call(treeValue, function (id) {\n      return dfs(treeData, function (node) {\n        return node.key === id;\n      });\n    });\n    if (!(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__.isEqual)(valueExsit, treeValue)) {\n      handleChange(valueExsit.join(';'));\n    }\n  }, []);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__.KDTreeSelect, {\n    value: treeValue,\n    disabled: readonly,\n    allowClear: true,\n    defaultExpandAll: true,\n    defaultExpandKeys: expandKeys,\n    onChange: onChange,\n    mode: \"multiple\",\n    treeData: treeData,\n    className: classnames__WEBPACK_IMPORTED_MODULE_19___default()((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({}, \"\".concat(prefixCls, \"-multivarselect-readonly\"), readonly)),\n    showFullLabelTips: true\n  }));\n});\nVarSelectEditor.displayName = 'MultiVarSelectEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.ErrorBoundaryWrap)(VarSelectEditor, 'VarSelectEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///93304\n");

/***/ }),

/***/ 13692:
/*!************************************************!*\
  !*** ./src/editors/NewSettingEditor/index.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ 11908);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _common_CombineSelector__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../common/CombineSelector */ 97276);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../constants */ 98092);\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-23 19:16:52\n * @LastEditTime: 2024-05-09 15:36:06\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\nvar _ref = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__.treeUtils || {},\n  dfs = _ref.dfs;\n/**\n * 赋值节点\n */\nvar NewsettingItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (_ref2) {\n  var _curError$;\n  var className = _ref2.className,\n    assignment = _ref2.assignment,\n    expression = _ref2.expression,\n    error = _ref2.error,\n    value = _ref2.value,\n    displayLabel = _ref2.displayLabel,\n    caption = _ref2.caption,\n    id = _ref2.id,\n    _ref2$option = _ref2.option,\n    option = _ref2$option === void 0 ? {} : _ref2$option,\n    type = _ref2.type,\n    readonly = _ref2.readonly,\n    variablesTree = _ref2.variablesTree,\n    onInputChange = _ref2.onInputChange,\n    onInputClear = _ref2.onInputClear,\n    onVarSelectChange = _ref2.onVarSelectChange,\n    onVarSelectClear = _ref2.onVarSelectClear,\n    onExpressionConfirm = _ref2.onExpressionConfirm,\n    editorType = _ref2.editorType;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    getControlText = _useContext.getControlText;\n  var filterVariablesTreeFlow = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__.ListFilterUtil.filterVariablesTreeFlow;\n  var required = option.required;\n  var fieldType = type;\n  var inputProps = {};\n  if (type !== null && type !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default()(type).call(type, 'combo')) {\n    var _option$valueItems;\n    var selectOptions = option === null || option === void 0 || (_option$valueItems = option.valueItems) === null || _option$valueItems === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(_option$valueItems).call(_option$valueItems, function (item) {\n      return _objectSpread(_objectSpread({}, item), {}, {\n        label: getControlText(item.name)\n      });\n    });\n    inputProps = _objectSpread(_objectSpread({}, inputProps), {}, {\n      options: selectOptions,\n      allowClear: true\n    });\n    fieldType = 'combo';\n  }\n  var handleInputChange = function handleInputChange(data) {\n    if (data !== null && data !== void 0 && data.target) {\n      onInputChange === null || onInputChange === void 0 || onInputChange(id, data.target.value);\n    } else {\n      onInputChange === null || onInputChange === void 0 || onInputChange(id, data);\n    }\n  };\n\n  // 变量选择值变化\n  var handleVarSelectChange = function handleVarSelectChange() {\n    var _context;\n    for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n      params[_key] = arguments[_key];\n    }\n    onVarSelectChange === null || onVarSelectChange === void 0 || onVarSelectChange.apply(void 0, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context = [id]).call(_context, params));\n  };\n\n  // 变量选择值清空\n  var handleVarSelectClear = function handleVarSelectClear() {\n    var _context2;\n    for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      params[_key2] = arguments[_key2];\n    }\n    onVarSelectClear === null || onVarSelectClear === void 0 || onVarSelectClear.apply(void 0, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context2 = [id]).call(_context2, params));\n  };\n  var handleExpressionConfirm = function handleExpressionConfirm() {\n    var _context3;\n    for (var _len3 = arguments.length, params = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n      params[_key3] = arguments[_key3];\n    }\n    onExpressionConfirm === null || onExpressionConfirm === void 0 || onExpressionConfirm.apply(void 0, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context3 = [id]).call(_context3, params));\n  };\n  var handleInputClear = function handleInputClear(e) {\n    e && (e === null || e === void 0 ? void 0 : e.stopPropagation());\n    onInputClear === null || onInputClear === void 0 || onInputClear(id);\n  };\n  var valueItem = Array.isArray(value) ? _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11___default()(value).call(value, function (item) {\n    return item[assignment] === id;\n  }) : {};\n  var inputValue = !readonly ? (valueItem === null || valueItem === void 0 ? void 0 : valueItem[expression]) || undefined : value;\n  var curError = error === null || error === void 0 ? void 0 : error[valueItem === null || valueItem === void 0 ? void 0 : valueItem.calcId];\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-newsetting-item\"),\n    key: id\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.NameTipWrapper, {\n    className: className,\n    name: caption,\n    required: required\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(_common_CombineSelector__WEBPACK_IMPORTED_MODULE_17__[\"default\"], {\n    fieldKey: id,\n    readonly: readonly,\n    fieldType: fieldType,\n    value: inputValue,\n    displayLabel: displayLabel,\n    inputProps: inputProps,\n    variablesTree: filterVariablesTreeFlow(variablesTree, {\n      type: type,\n      id: id,\n      entityId: option === null || option === void 0 ? void 0 : option.billEntityId,\n      canMulit: true,\n      isMulti: (option === null || option === void 0 ? void 0 : option.isMulti) || false,\n      flowEditorType: editorType\n    }),\n    fieldTree: variablesTree,\n    fieldProps: option,\n    className: \"\".concat(className, \"-newsetting-value\"),\n    expressionTitle: caption,\n    onInputClear: handleInputClear,\n    onInputChange: handleInputChange,\n    onVarSelectChange: handleVarSelectChange,\n    onVarSelectClear: handleVarSelectClear,\n    onExpressionConfirm: handleExpressionConfirm\n  }), curError && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"span\", {\n    className: \"\".concat(className, \"-error-msg\")\n  }, (_curError$ = curError[0]) === null || _curError$ === void 0 ? void 0 : _curError$.msg));\n});\nNewsettingItem.displayName = 'NewsettingItem';\n\n/**\n * 赋值EDITOR\n * 根据“新增模式”，若为多条记录，且变量树节点option的isMulti为true时\n * 需要将option的children属性展开到变量树，作为当前节点的子节点\n */\nvar NewSettingEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (_ref3) {\n  var _disp_$propName;\n  var field = _ref3.field,\n    id = _ref3.id,\n    propName = _ref3.propName,\n    actionType = _ref3.actionType,\n    modalTitle = _ref3.modalTitle,\n    locked = _ref3.locked,\n    name = _ref3.Name,\n    handleChange = _ref3.handleChange,\n    value = _ref3.value,\n    editor = _ref3.editor,\n    tips = _ref3.Tips,\n    className = _ref3.className,\n    error = _ref3.error,\n    readonly = _ref3.readonly;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    hideFunc = editor.HideFunc,\n    hasCheck = editor.HasCheck,\n    placeholder = editor.Placeholder,\n    ChildProperty = editor.ChildProperty,\n    title = editor.Title;\n  var formId = field.formId,\n    _disp_ = field._disp_,\n    newMode = field.newMode,\n    loopby = field.loopby;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    invokeAction = _useContext2.invokeAction,\n    getPreNodeVariablesById = _useContext2.getPreNodeVariablesById;\n  var preFormIdref = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(formId); // 保存上一次选择过的formId，\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)([]),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    fieldList = _useState2[0],\n    setFieldList = _useState2[1];\n\n  // 上次选择的表单记录\n  var preLoopbyRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(loopby);\n  // 上次选择的新增模式\n  var preNewModeRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(newMode);\n\n  // 赋值对象\n  var assignment = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    var _ChildProperty$;\n    return (_ChildProperty$ = ChildProperty[0]) === null || _ChildProperty$ === void 0 ? void 0 : _ChildProperty$.Number;\n  }, [ChildProperty]);\n  // 值\n  var expression = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    var _ChildProperty$2;\n    return (_ChildProperty$2 = ChildProperty[1]) === null || _ChildProperty$2 === void 0 ? void 0 : _ChildProperty$2.Number;\n  }, [ChildProperty]);\n\n  // 字段树数据\n  var variablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    var variable = getPreNodeVariablesById(id);\n    // 当新增模式为“基于多条记录新增” 且“基于的多条记录”已选值\n    // 赋值变量需要展开父节点为“基于的多条记录”已选值的option变量树\n    // return newMode === 'multi' && loopby ? formatFieldTree(variable, loopby, '') : formatFieldTree(variable)\n    return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_19__.expendTreeOptionChildren)(variable, function (item) {\n      return (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_19__.checkExpendSingleAndFocusMulti)(item, loopby);\n    });\n  }, [id, getPreNodeVariablesById, newMode, loopby]);\n\n  // 查询表单字段\n  var queryFormFieldList = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (formId) {\n    invokeAction('click', [id, 'refbillProps', formId, {}]);\n  }, [id, propName]);\n  var listenerFormFieldList = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (data) {\n    if (Array.isArray(data)) {\n      setFieldList(data);\n      handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(data).call(data, function (item) {\n        var id = item.id;\n        var preValueItem = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_11___default()(value).call(value, function (item) {\n          return item[assignment] === id;\n        }) || {};\n        return (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, assignment, id), expression, preValueItem === null || preValueItem === void 0 ? void 0 : preValueItem[expression]), \"calcId\", (preValueItem === null || preValueItem === void 0 ? void 0 : preValueItem.calcId) || (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.createUUid)());\n      }));\n    }\n  }, [handleChange, formId, value]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.eventBus.on('setRefbillProps', listenerFormFieldList);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.eventBus.off('setRefbillProps', listenerFormFieldList);\n    };\n  }, [listenerFormFieldList]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (preFormIdref.current !== formId) {\n      preFormIdref.current = formId;\n      // handleChange([])\n    }\n    if (formId) {\n      // 有formid的时候才需要请求\n      queryFormFieldList(formId);\n    } else {\n      // 没有formId的时候要清空配置\n      setFieldList([]);\n    }\n  }, [formId, preFormIdref]);\n\n  // 清空选择的变量\n  var clearSelectedVar = function clearSelectedVar() {\n    handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, function (item) {\n      if (item[expression] && ((0,_utils__WEBPACK_IMPORTED_MODULE_18__.isVarStr)(item[expression]) || (0,_utils__WEBPACK_IMPORTED_MODULE_18__.isExpressionStr)(item[expression]))) {\n        var selectedVar = dfs(variablesTree, function (node) {\n          if ((0,_utils__WEBPACK_IMPORTED_MODULE_18__.isVarStr)(item[expression])) {\n            return item[expression] === node.key;\n          } else if ((0,_utils__WEBPACK_IMPORTED_MODULE_18__.isExpressionStr)(item[expression])) {\n            var _item$expression;\n            return (_item$expression = item[expression]) === null || _item$expression === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(_item$expression).call(_item$expression, node.key);\n          }\n          return false;\n        });\n        if (!selectedVar) {\n          return _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, undefined));\n        }\n      }\n      return item;\n    }));\n  };\n\n  // 切换新增表单的时候，需要清空原先多选的表单选择的变量值\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (preLoopbyRef.current !== loopby) {\n      preLoopbyRef.current = loopby;\n      clearSelectedVar();\n    }\n  }, [loopby]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (preNewModeRef.current !== newMode) {\n      preNewModeRef.current = newMode;\n      clearSelectedVar();\n    }\n  }, [newMode]);\n\n  // 值改变\n  var handleInputChange = function handleInputChange(fieldId, data) {\n    handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, function (item) {\n      if (item[assignment] === fieldId) {\n        return Array.isArray(data) ? _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, data.join(','))) : _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, data));\n      }\n      return item;\n    }));\n  };\n  var handleVarSelectChange = function handleVarSelectChange(fieldId, selectedKeys) {\n    if (selectedKeys.length === 1) {\n      handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, function (item) {\n        if (item[assignment] === fieldId) {\n          return _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, selectedKeys[0]));\n        }\n        return item;\n      }));\n    }\n  };\n\n  /**\n   * 公式弹窗点击确定\n   * @param str 编辑器文本内容\n   */\n  var handleExpressionConfirm = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (fieldId, str, isCN) {\n    if (!str) {\n      return handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, function (item) {\n        if (item[assignment] === fieldId) {\n          return _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, ''));\n        }\n        return item;\n      }));\n    } // 为空值时\n\n    handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, function (item) {\n      if (item[assignment] === fieldId) {\n        return _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, (0,_utils__WEBPACK_IMPORTED_MODULE_18__.transformConditionValue)(str, isCN)));\n      }\n      return item;\n    }));\n  }, [handleChange, value]);\n  var handleInputClear = function handleInputClear(fieldId) {\n    handleChange(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(value).call(value, function (item) {\n      if (item[assignment] === fieldId) {\n        return _objectSpread(_objectSpread({}, item), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, expression, undefined));\n      }\n      return item;\n    }));\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-newsetting\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", null, readonly ? _disp_ === null || _disp_ === void 0 || (_disp_$propName = _disp_[propName]) === null || _disp_$propName === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(_disp_$propName).call(_disp_$propName, function (item, index) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(NewsettingItem, {\n      key: index,\n      className: \"\".concat(className),\n      variablesTree: variablesTree,\n      value: item[expression],\n      caption: item[assignment],\n      readonly: readonly\n    });\n  }) : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(fieldList).call(fieldList, function (item, index) {\n    var _disp_$propName2, _FIELD_TYPE_MAP$item$, _item$option;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(NewsettingItem, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n      key: item === null || item === void 0 ? void 0 : item.id,\n      className: \"\".concat(className),\n      variablesTree: variablesTree,\n      assignment: assignment,\n      expression: expression,\n      value: value,\n      error: (error === null || error === void 0 ? void 0 : error.msg) || {},\n      readonly: readonly,\n      displayLabel: (_disp_$propName2 = _disp_[propName]) === null || _disp_$propName2 === void 0 || (_disp_$propName2 = _disp_$propName2[index]) === null || _disp_$propName2 === void 0 ? void 0 : _disp_$propName2.expression\n    }, item, {\n      type: (_FIELD_TYPE_MAP$item$ = _constants__WEBPACK_IMPORTED_MODULE_20__.FIELD_TYPE_MAP[(_item$option = item.option) === null || _item$option === void 0 ? void 0 : _item$option.editorType]) !== null && _FIELD_TYPE_MAP$item$ !== void 0 ? _FIELD_TYPE_MAP$item$ : item.type,\n      onInputClear: handleInputClear,\n      onInputChange: handleInputChange,\n      onVarSelectChange: handleVarSelectChange,\n      onVarSelectClear: handleInputClear,\n      onExpressionConfirm: handleExpressionConfirm,\n      editorType: editor.type\n    }));\n  })));\n});\nNewSettingEditor.displayName = 'NewSettingEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_14__.ErrorBoundaryWrap)(NewSettingEditor, 'NewSettingEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///13692\n");

/***/ }),

/***/ 73288:
/*!**************************************************!*\
  !*** ./src/editors/NodeBillTypeEditor/index.tsx ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getIsSelectUserOrg: function() { return /* binding */ getIsSelectUserOrg; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../constants/propnames */ 94096);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../constants */ 98092);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16__);\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n/*\n * @Description: 触发流程\n * @Author: jianhang_he\n * @Date: 2023-05-11 13:52:25\n * @LastEditTime: 2024-04-09 09:56:03\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n\n// 新增表单来源节点\nvar updateBillFromNodeType = [_utils_nodeType__WEBPACK_IMPORTED_MODULE_11__.START_SIGNAL_EVENT, _utils_nodeType__WEBPACK_IMPORTED_MODULE_11__.QUERY_DATA_AUTO_TASK, _utils_nodeType__WEBPACK_IMPORTED_MODULE_11__.NEW_BILL_AUTO_TASK];\n// 新增表单来源节点（没有id的情况）\nvar updateBillFromNodeTypeWithoutId = [_utils_nodeType__WEBPACK_IMPORTED_MODULE_11__.NOCODE_API_INVOKE_AUTO_TASK];\n// const varReg = /^\\$\\{(.+?)\\}/\n\n// 选择人员组织\nvar getIsSelectUserOrg = function getIsSelectUserOrg(nodeId, refBillId, getRefBillVarFormId) {\n  if (_utils__WEBPACK_IMPORTED_MODULE_13__.varRegList.some(function (item) {\n    return item.test(refBillId);\n  })) {\n    refBillId = getRefBillVarFormId(nodeId, refBillId);\n    // user org\n  }\n  if (_constants__WEBPACK_IMPORTED_MODULE_15__.USER_ORG_IDS.some(function (item) {\n    var _refBillId;\n    return (_refBillId = refBillId) === null || _refBillId === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(_refBillId).call(_refBillId, item);\n  })) {\n    // 如果选了人员或者组织的节点，则需要清空\n    return true;\n  }\n  return false;\n};\nvar NodeBillTypeEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_context__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    Name = props.Name,\n    propName = props.propName,\n    tips = props.Tips,\n    field = props.field,\n    id = props.id,\n    readonly = props.readonly;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title;\n  var curNodeId = field.id,\n    disp = field._disp_,\n    controlType = field._Type_;\n  var kdesignerApi = getKdesignerApi();\n  var dataContext = kdesignerApi.data;\n  var data = dataContext.getData();\n  var parentIdlist = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    return (0,_utils__WEBPACK_IMPORTED_MODULE_13__.findParentIdListById)(curNodeId, data[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.ITEMS]);\n  }, [curNodeId, data]);\n  var options = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    var nodeList = data[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.ITEMS];\n    if (Array.isArray(nodeList) && nodeList !== null && nodeList !== void 0 && nodeList.length) {\n      var newOptions = [];\n      for (var i = 0, len = nodeList.length; i < len; i++) {\n        var _nodeList$i = nodeList[i],\n          nodeType = _nodeList$i[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__._TYPE_],\n          nodeId = _nodeList$i.id,\n          formId = _nodeList$i.formId,\n          refbillField = _nodeList$i.refbillField,\n          name = _nodeList$i.name,\n          _disp_ = _nodeList$i._disp_,\n          parentId = _nodeList$i.parentId,\n          apiId = _nodeList$i.apiId,\n          queryModel = _nodeList$i.queryModel;\n        if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(parentIdlist).call(parentIdlist, nodeId)) {\n          var refBillId = formId || refbillField;\n          if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isFindNode)(nodeType) && (0,_utils__WEBPACK_IMPORTED_MODULE_13__.isOpenApi)(queryModel)) {\n            if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isUpdateNode)(controlType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isUserNode)(controlType)) {\n              // 修改节点/录入节点里面不显示查找为openapi的方式\n              continue;\n            } else {\n              refBillId = apiId;\n            }\n          }\n\n          // 修改/查找节点不显示API节点\n          if (((0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isUpdateNode)(controlType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isFindNode)(controlType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isUserNode)(controlType)) && nodeType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_11__.NOCODE_API_INVOKE_AUTO_TASK) {\n            continue;\n          }\n          if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(updateBillFromNodeType).call(updateBillFromNodeType, nodeType) && refBillId || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(updateBillFromNodeTypeWithoutId).call(updateBillFromNodeTypeWithoutId, nodeType)) {\n            // 录入节点的表单和修改表单需要做下屏蔽，就是人员和组织不能选择\n            if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isUserNode)(controlType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_14__.isUpdateNode)(controlType)) {\n              var isSelectUserOrg = getIsSelectUserOrg(nodeId, refBillId, getRefBillVarFormId);\n              if (isSelectUserOrg) {\n                // 如果选了人员或者组织的节点，则需要清空\n                if (value === nodeId) {\n                  handleChange('');\n                }\n                continue;\n              }\n            }\n            newOptions.push({\n              key: nodeId,\n              title: (0,_utils__WEBPACK_IMPORTED_MODULE_13__.getVariablesTitle)(nodeList[i])\n            });\n          }\n        }\n      }\n      return newOptions;\n    }\n    return [];\n  }, [data[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.ITEMS], curNodeId, parentIdlist]);\n  var handleVarSelectChange = function handleVarSelectChange(value, nodes) {\n    var _nodes$;\n    handleChange(value || '', {\n      _disp_: _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, propName, (nodes === null || nodes === void 0 || (_nodes$ = nodes[0]) === null || _nodes$ === void 0 ? void 0 : _nodes$.label) || ''))\n    });\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: Name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_12__.KDTreeSelect, {\n    value: value,\n    disabled: readonly,\n    allowClear: true,\n    onChange: handleVarSelectChange,\n    treeData: options,\n    treeDefaultExpandAll: true,\n    showFullLabelTips: true,\n    suffixIcon: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16__.Icon, {\n      prefix: \"designericon\",\n      type: \"duixiangxuanze2\"\n    })\n  }));\n});\nNodeBillTypeEditor.displayName = 'NodeBillTypeEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.ErrorBoundaryWrap)(NodeBillTypeEditor, 'NodeBillTypeEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///73288\n");

/***/ }),

/***/ 31899:
/*!*********************************************!*\
  !*** ./src/editors/OrderByEditor/index.tsx ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _hooks_useQueryEventData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../hooks/useQueryEventData */ 23312);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-28 19:01:47\n * @LastEditTime: 2024-02-29 15:55:35\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\nvar _ref = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_3__.treeUtils || {},\n  dfs = _ref.dfs,\n  exludeTreeNodeByCallback = _ref.exludeTreeNodeByCallback,\n  getListSortConfig = _ref.getListSortConfig;\nvar OrderByEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    readonly = props.readonly,\n    _props$value = props.value,\n    value = _props$value === void 0 ? [] : _props$value;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    source = editor.Source;\n  var formId = field[source];\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_4__.DesignerContext),\n    compareTypesMap = _useContext.compareType,\n    invokeAction = _useContext.invokeAction;\n  var preFormIdref = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useRef)(formId); // 保存上一次选择过的formId，\n\n  // 获取筛选项\n  var listFilterConfig = (0,_hooks_useQueryEventData__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n    formId: formId,\n    eventName: 'setListTreeConfig',\n    parser: function parser(_ref2) {\n      var data = _ref2.data;\n      if ((0,_utils__WEBPACK_IMPORTED_MODULE_5__.isOpenApi)(field.queryModel)) {\n        return exludeTreeNodeByCallback((0,_utils__WEBPACK_IMPORTED_MODULE_5__.listFilterParser)(data, data, compareTypesMap), function (node) {\n          return node.canOrder;\n        });\n      }\n      return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.listFilterParser)(data, data, compareTypesMap);\n    },\n    defaultValue: []\n  });\n  var listTreeConfig = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n    return getListSortConfig(listFilterConfig);\n  }, [listFilterConfig]);\n  var invokeGetListConfig = function invokeGetListConfig(fid) {\n    invokeAction('listtreeconfig', [fid]);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    formId && invokeGetListConfig(formId);\n  }, [formId]);\n\n  // 当前节点选择的表单切换的时候\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    if (preFormIdref.current !== formId) {\n      preFormIdref.current = formId;\n      handleChange([]);\n    }\n  }, [formId]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    if (value !== null && value !== void 0 && value.length && listTreeConfig.length) {\n      var needUpdate = false;\n      var newValue = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0___default()(value).call(value, function (item) {\n        var res = dfs(listTreeConfig, function (node) {\n          return node.key === item.number;\n        });\n        if (!res) {\n          // 如果字段不存在，则标志位置为true\n          needUpdate = true;\n        }\n        return res;\n      });\n      if (needUpdate) {\n        handleChange(newValue);\n      }\n    }\n  }, [listTreeConfig]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, readonly ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_7___default()(\"\".concat(className, \"-display-viewitem\"), \"\".concat(className, \"-display-orderby\"))\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"span\", {\n    className: \"title\",\n    title: title\n  }, name)) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), readonly && !(value !== null && value !== void 0 && value.length) ? '-' : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_3__.OrderByEditor, {\n    id: \"filter\",\n    nameHidden: true,\n    readonly: readonly,\n    style: {\n      marginTop: '0px'\n    }\n    // footerStyle={{ marginTop: '0px' }}\n    ,\n    name: name,\n    tips: tips,\n    required: required,\n    treeData: listTreeConfig || [],\n    value: value || [],\n    onChange: handleChange\n  }));\n});\nOrderByEditor.displayName = 'OrderByEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.ErrorBoundaryWrap)(OrderByEditor, 'OrderByEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///31899\n");

/***/ }),

/***/ 86364:
/*!******************************************************!*\
  !*** ./src/editors/ParameterSettingEditor/index.tsx ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ 61260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! kd_libs/react-dom */ 16428);\n/* harmony import */ var kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../constants */ 98092);\n/* harmony import */ var _common_ChildPropertyViewItem__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../common/ChildPropertyViewItem */ 28056);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-08 14:31:45\n * @LastEditTime: 2024-01-17 14:29:39\n * @Last Modified by: jianhang_hes\n */\n\n\n\n\n\n\n\n\n\n\n\n// 参数编辑器\nvar ParameterSettingEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_15__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    isReadonly = _useContext.isReadonly,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data,\n    metaContext = kdesignerApi.meta;\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    curPropName = props.propName,\n    error = props.error,\n    readonly = props.readonly;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    childProperty = editor.ChildProperty,\n    source = editor.Source,\n    subTitle = editor.SubTitle;\n  var nodeId = field.id,\n    disp = field._disp_,\n    refNodeId = field.refNodeId;\n\n  // const sourceKey = useMemo(() => field[source], [field, source])\n  // const preSourceKeyRef = useRef(sourceKey)\n\n  var defaultSettingItemData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useMemo)(function () {\n    if (!childProperty) return {};\n    return (0,_utils_control__WEBPACK_IMPORTED_MODULE_19__.createNewSettingDefaultData)(childProperty);\n  }, [childProperty]);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useState)([]),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    paramsSettingData = _useState2[0],\n    setParameterSettingData = _useState2[1];\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useEffect)(function () {\n    if (value) {\n      setParameterSettingData(value);\n    }\n  }, [value]);\n  var nodeVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useMemo)(function () {\n    var preNodeVariables = getPreNodeVariablesById(nodeId) || [];\n\n    // 过滤掉人员组织的\n    preNodeVariables = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(preNodeVariables).call(preNodeVariables, function (item) {\n      var _Type_ = item._Type_;\n      var formId = item.formId;\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_19__.isFindNode)(_Type_)) {\n        // 查找节点查找方式不同\n        if (item.queryModel === 'byfilter') {\n          formId = item.formId;\n        } else {\n          var _editor = metaContext.getControlMetaEditor(_Type_, 'refbillField');\n          formId = getRefBillVarFormId(item.id, item.refbillField, _editor === null || _editor === void 0 ? void 0 : _editor.VarType);\n        }\n        return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default()(_constants__WEBPACK_IMPORTED_MODULE_20__.USER_ORG_IDS).call(_constants__WEBPACK_IMPORTED_MODULE_20__.USER_ORG_IDS, formId);\n      }\n      return true;\n    });\n    return preNodeVariables;\n  }, [getPreNodeVariablesById, nodeId, source]);\n\n  // const paramsSettingData = useMemo(() => {\n  //   return value || []\n  // }, [value])\n\n  // useEffect(() => {\n  //   if (value === undefined || value === '') {\n  //     const newSettingItem = createNewSettingItem(defaultSettingItemData, 'id')\n  //     const defaultSetting = [newSettingItem]\n\n  //     handleChange(defaultSetting)\n  //     // dataContext.batchUpdateControlPropertyValues(createUpdateAction([[nodeId, {\n  //     //   [curPropName]: defaultSetting,\n  //     //   _disp_: { ...disp, [curPropName]: [] }\n  //     // }]]))\n  //   }\n  // }, [])\n\n  var getNewSettingData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (index, propName, propValue) {\n    if (paramsSettingData[index]) {\n      var newSettingData = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.cloneDeep)(paramsSettingData);\n      var newCalSettingItemData = _objectSpread(_objectSpread({}, newSettingData[index]), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, propName, propValue));\n      newSettingData[index] = newCalSettingItemData;\n      return newSettingData;\n    }\n    return {};\n  }, [paramsSettingData]);\n  var handleChangeIndexData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (index, propName, propValue) {\n    var newSettingData = getNewSettingData(index, propName, propValue);\n    (0,kd_libs_react_dom__WEBPACK_IMPORTED_MODULE_14__.unstable_batchedUpdates)(function () {\n      handleChange(newSettingData);\n      setParameterSettingData(newSettingData);\n    });\n  }, [getNewSettingData, paramsSettingData]);\n  var handlePropertyChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (index) {\n    for (var _len = arguments.length, propertyData = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      propertyData[_key - 1] = arguments[_key];\n    }\n    var _ref = propertyData || [],\n      _ref2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_ref, 3),\n      propName = _ref2[1],\n      propValue = _ref2[2];\n    handleChangeIndexData(index, propName, propValue);\n    return true;\n  }, [handleChangeIndexData, getNewSettingData, curPropName, disp, nodeId, paramsSettingData]);\n\n  /**\n   * 删除\n   */\n  var handleClickDeleteSettingItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function (index) {\n    var newSettingData = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.cloneDeep)(paramsSettingData);\n    // const newDisp = cloneDeep(disp[curPropName] || [])\n    _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_9___default()(newSettingData).call(newSettingData, index, 1);\n\n    // if (newDisp.length > 0) {\n    //   newDisp.splice(index, 1)\n    // }\n\n    handleChange(newSettingData);\n    // dataContext.batchUpdateControlPropertyValues(createUpdateAction([[nodeId, {\n    //   [curPropName]: newSettingData\n    //   // _disp_: { ...disp, [curPropName]: newDisp }\n    // }]]))\n  }, [paramsSettingData]);\n\n  /**\n   * 新增一条\n   */\n  var handleClickAddSettingItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function () {\n    var _context;\n    var newCalSettingItem = (0,_utils_control__WEBPACK_IMPORTED_MODULE_19__.createNewSettingItem)(defaultSettingItemData, 'id');\n    // const newDisp = cloneDeep(disp[curPropName] || [{}])\n    // setNewSettingItem(newCalSettingItem)\n    handleChange(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context = []).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(paramsSettingData), [newCalSettingItem]));\n\n    // dataContext.batchUpdateControlPropertyValues(createUpdateAction([[nodeId, {\n    //   [curPropName]: [...paramsSettingData, newCalSettingItem]\n    //   // _disp_: { ...disp, [curPropName]: [...newDisp, {}] }\n    // }]]))\n  }, [paramsSettingData]);\n  var handleClickClear = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function () {\n    handleChange([]);\n  }, []);\n  var columns = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useMemo)(function () {\n    if (!isReadonly) return [];\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(childProperty).call(childProperty, function (item, index) {\n      return {\n        code: item.Number,\n        name: item.Name,\n        width: 120,\n        features: index === childProperty.length - 1 ? {\n          flex: 1\n        } : {},\n        render: function render(value, record, rowIndex) {\n          var _context2, _context3;\n          return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(\"div\", {\n            className: \"\".concat(className, \"-parameter-item-display\"),\n            key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context2 = \"\".concat(record.id, \"-\")).call(_context2, item.Number)\n          }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(_common_ChildPropertyViewItem__WEBPACK_IMPORTED_MODULE_21__[\"default\"], {\n            key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context3 = \"\".concat(record.id, \"-\")).call(_context3, item.Number),\n            prefixClass: className,\n            data: record,\n            parentField: field,\n            nodeId: nodeId,\n            disp: disp,\n            isReadonly: isReadonly,\n            readonly: readonly,\n            propertyData: item,\n            nodeVariablesTree: nodeVariablesTree\n          }));\n        }\n      };\n    });\n  }, [isReadonly, childProperty]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title,\n    subTitle: subTitle\n  }), isReadonly ? !(paramsSettingData !== null && paramsSettingData !== void 0 && paramsSettingData.length) ? '-' : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__.DataGrid, {\n    dataSource: paramsSettingData,\n    columns: columns\n  }) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-parameter\")\n  }, (paramsSettingData === null || paramsSettingData === void 0 ? void 0 : paramsSettingData.length) > 0 && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-parameter-list\")\n  }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(paramsSettingData).call(paramsSettingData, function (item, index) {\n    var _error$msg;\n    var errorList = error === null || error === void 0 || (_error$msg = error.msg) === null || _error$msg === void 0 ? void 0 : _error$msg[item.id];\n    var errorData = {};\n    if (errorList) {\n      errorList.forEach(function (errorItem) {\n        errorData[errorItem.prop] = errorItem.msg;\n      });\n    }\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(\"div\", {\n      className: \"\".concat(className, \"-parameter-item\"),\n      key: item.id\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(\"div\", {\n      className: \"\".concat(className, \"-parameter-item-content\")\n    }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(childProperty).call(childProperty, function (propertyData) {\n      var _context4;\n      var id = propertyData.Number;\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(_common_ChildPropertyViewItem__WEBPACK_IMPORTED_MODULE_21__[\"default\"], {\n        key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context4 = \"\".concat(item.id, \"-\")).call(_context4, id),\n        prefixClass: className,\n        data: item,\n        parentField: field,\n        nodeId: nodeId,\n        disp: disp\n        // className={className}\n        // displayLabel={disp[curPropName]?.[index]?.[id]}\n        ,\n        isReadonly: isReadonly,\n        readonly: readonly,\n        propertyData: propertyData,\n        nodeVariablesTree: nodeVariablesTree,\n        error: errorData[id],\n        handleChange: function handleChange() {\n          var _context5;\n          for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n            params[_key2] = arguments[_key2];\n          }\n          return handlePropertyChange.apply(void 0, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context5 = [index]).call(_context5, params));\n        }\n      });\n    })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_16__.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"xingshanchu\",\n      className: \"delete\",\n      title: \"\\u5220\\u9664\",\n      onClick: function onClick() {\n        return handleClickDeleteSettingItem(index);\n      }\n    }));\n  })), !readonly && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-parameter-footer\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__.BtnField, {\n    major: true,\n    type: \"text\",\n    className: \"\".concat(className, \"-parameter-add\"),\n    icon: {\n      prefix: 'designericon',\n      type: 'zengjia-yuan'\n    },\n    onClick: handleClickAddSettingItem\n  }, \"\\u6DFB\\u52A0\\u53C2\\u6570\"), paramsSettingData.length > 0 && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_17__.BtnField, {\n    type: \"text\",\n    className: \"\".concat(className, \"-parameter-clear\"),\n    onClick: handleClickClear\n  }, \"\\u6E05\\u7A7A\"))));\n});\nParameterSettingEditor.displayName = 'ParameterSettingEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.ErrorBoundaryWrap)(ParameterSettingEditor, 'ParameterSettingEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///86364\n");

/***/ }),

/***/ 8212:
/*!********************************************!*\
  !*** ./src/editors/PickWfEditor/index.tsx ***!
  \********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../constants */ 98092);\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-28 19:01:47\n * @LastEditTime: 2024-02-28 16:23:30\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\nvar parser = function parser(data) {\n  if (Array.isArray(data)) {\n    return (data === null || data === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(data).call(data, function (item) {\n      return _objectSpread(_objectSpread({}, item), {}, {\n        label: item.name,\n        value: item.id\n      });\n    })) || [];\n  }\n  return [];\n};\nvar PickWfEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    value = props.value;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    refProp = editor.RefProp;\n  var refNodeId = field.refNodeId,\n    itemId = field.itemId;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_12__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    batchInvoke = _useContext.batchInvoke,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data,\n    metaContext = kdesignerApi.meta;\n  var formId = field[refProp];\n  var preSelectedFormId = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(formId);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)([]),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    options = _useState2[0],\n    setOptions = _useState2[1];\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    if (formId !== preSelectedFormId.current) {\n      preSelectedFormId.current = formId;\n      handleChange('');\n    }\n    if (formId) {\n      var selectedFormId = formId;\n      if (refProp !== 'formId') {\n        var _dataContext$getData = dataContext.getData(),\n          Items = _dataContext$getData.Items;\n        Items.forEach(function (item) {\n          var id = item.id,\n            _Type_ = item._Type_;\n          if (formId === item.id) {\n            if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_13__.isFindNode)(_Type_)) {\n              if (item.queryModel === 'byfilter') {\n                selectedFormId = item.formId;\n              } else {\n                var _editor = metaContext.getControlMetaEditor(_Type_, 'refbillField');\n                selectedFormId = getRefBillVarFormId(item.id, item.refbillField, _editor === null || _editor === void 0 ? void 0 : _editor.VarType);\n              }\n            } else {\n              selectedFormId = item.formId;\n            }\n          }\n        });\n      }\n      if (selectedFormId && !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_constants__WEBPACK_IMPORTED_MODULE_14__.USER_ORG_IDS).call(_constants__WEBPACK_IMPORTED_MODULE_14__.USER_ORG_IDS, selectedFormId)) {\n        batchInvoke('getTriggerProcess', 'nocodewfdesigner', [selectedFormId]);\n      } else {\n        setOptions([]);\n      }\n    } else {\n      setOptions([]);\n    }\n  }, [formId]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    // 监听列表配置回调\n    var listener = function listener(eventArgs) {\n      var result = parser(eventArgs);\n      setOptions(result);\n    };\n    var removeQueryEventDataListener = designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.eventBus.on('setTriggerProcess', listener);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.eventBus.off('setTriggerProcess', removeQueryEventDataListener);\n    };\n  }, []);\n  var editorProps = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return _objectSpread(_objectSpread({}, props), {}, {\n      editor: _objectSpread(_objectSpread({}, props.Editor), {}, {\n        NameHidden: true\n      })\n    });\n  }, [props]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-pickwf\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.EditorPropertySelect, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, editorProps, {\n    multiple: true,\n    selectPlaceholder: \"\\u65E0\",\n    dropdownClassName: \"\".concat(className, \"-pickwf-panel\")\n    // allowExistValueNotInOptions\n    ,\n    value: !options.length ? '' : value // 如果选项为空的时候，EditorPropertySelect底层会把value清空，这里加个判断\n    ,\n    options: options || [],\n    scrollHidden: false,\n    handleChange: handleChange\n  })));\n});\nPickWfEditor.displayName = 'PickWfEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.ErrorBoundaryWrap)(PickWfEditor, 'PickWfEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///8212\n");

/***/ }),

/***/ 42752:
/*!*************************************************!*\
  !*** ./src/editors/RefBillTypeEditor/index.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ 28429);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../constants/actionname */ 20572);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../constants */ 98092);\n\n\n\nvar _excluded = [\"label\", \"value\", \"children\", \"icon\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_4___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_4___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n/**\n * 属性编辑器-关联其他表单\n */\n\n\n\n\n\n\n\n\nvar transformToTree = function transformToTree(options) {\n  var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  if (!options) return options;\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(options).call(options, function (item) {\n    var label = item.label,\n      value = item.value,\n      children = item.children,\n      icon = item.icon,\n      other = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(item, _excluded);\n    var itemData = _objectSpread(_objectSpread({\n      key: value,\n      title: label\n    }, other), prop);\n    if (icon) {\n      itemData.icon = icon;\n    }\n    if (children) {\n      if (children.length) {\n        itemData.children = transformToTree(children);\n      }\n      // 还有种children为[]空数组的情况，这种情况需要异步请求数据\n      itemData.checkable = false;\n      // itemData.selectable = false\n    } else {\n      // isLeaf代表不需要请求异步数据\n      itemData.isLeaf = true;\n    }\n    return itemData;\n  });\n};\nvar dfs = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__.treeUtils.dfs;\nvar exsitUserOrgTypes = [_utils_nodeType__WEBPACK_IMPORTED_MODULE_17__.QUERY_DATA_AUTO_TASK];\nvar RefBillTypeEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    Name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    id = props.id,\n    propName = props.propName;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    needsync = editor.needsync,\n    title = editor.Title,\n    editorType = editor.Type,\n    subTitle = editor.SubTitle,\n    refProp = editor.RefProp,\n    Source = editor.Source,\n    treeDefaultExpandAll = editor.ExpandAll;\n  var disp = field._disp_,\n    nodeId = field.id,\n    nodeType = field._Type_,\n    published = field.published,\n    SelectBillPid = field.SelectBillPid,\n    setting = field.setting,\n    source = field[Source];\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useContext)(_context__WEBPACK_IMPORTED_MODULE_14__.DesignerContext),\n    invokeAction = _useContext.invokeAction,\n    getKdesignerApi = _useContext.getKdesignerApi,\n    prefixCls = _useContext.prefixCls;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useContext)(_context__WEBPACK_IMPORTED_MODULE_14__.FlowViewContext),\n    sendSyncData = _useContext2.sendSyncData;\n  var _getKdesignerApi = getKdesignerApi(),\n    dataContext = _getKdesignerApi.data;\n  var prefixClass = \"\".concat(prefixCls, \"-bill-type\");\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useState)([]),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    treeData = _useState2[0],\n    setTreeData = _useState2[1];\n  var loadDataResolveFunc = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useRef)(null);\n  var lazyUpdateAppId = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useRef)(null);\n  var preSelectedSourceRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useRef)(source);\n\n  /**\n   * 更新关联表单下拉树的数据\n   */\n  var setFormOptions = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useCallback)(function (treeRoot) {\n    var _treeRoot$children = treeRoot.children,\n      children = _treeRoot$children === void 0 ? [] : _treeRoot$children;\n    if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(exsitUserOrgTypes).call(exsitUserOrgTypes, nodeType)) {\n      if (children[0].value === 'bos_user') {\n        children[0].icon = /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__.Icon, {\n          prefix: \"nocodeplatformicon\",\n          type: \"gerenzhongxin\",\n          style: {\n            color: '#3987ED'\n          }\n        });\n      }\n      if (children[1].value === 'bos_adminorg') {\n        children[1].icon = /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__.Icon, {\n          prefix: \"nocodeplatformicon\",\n          type: \"zuzhi\",\n          style: {\n            color: '#3987ED'\n          }\n        });\n      }\n      setTreeData(transformToTree(children));\n    } else {\n      var newChildRen = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default()(children).call(children, function (item) {\n        return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_constants__WEBPACK_IMPORTED_MODULE_18__.USER_ORG_IDS).call(_constants__WEBPACK_IMPORTED_MODULE_18__.USER_ORG_IDS, item.value);\n      });\n      setTreeData(transformToTree(newChildRen));\n    }\n  }, [nodeType]);\n\n  /**\n   * 请求FORM数据\n   */\n  var fetchFormOptions = function fetchFormOptions() {\n    if (published) return;\n    // setFormOptions()\n    var args = {\n      showTree: 'true',\n      ignoreCosmicForm: 'true'\n    };\n    if (source === 'byapi') {\n      args.isOpenApi = 'true';\n    }\n    if (Array.isArray(SelectBillPid)) {\n      args.parentId = SelectBillPid[SelectBillPid.length - 1];\n    }\n    invokeAction('click', [id, editorType, propName, args]);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    fetchFormOptions();\n  }, [source]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_16__.SET_REF_BILL_TREE_DATA, setFormOptions);\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_16__.SET_TREE_NODE_CHILDREN, lazyUpdateAppChildren);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_16__.SET_REF_BILL_TREE_DATA, setFormOptions);\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_16__.SET_TREE_NODE_CHILDREN, lazyUpdateAppChildren);\n    };\n  }, []);\n  var lazyUpdateAppChildren = function lazyUpdateAppChildren(data) {\n    var _loadDataResolveFunc$;\n    setTreeData(function (origin) {\n      return updateTreeData(origin, lazyUpdateAppId.current, transformToTree(data, {\n        isAsyncNode: true\n      }));\n    });\n    (_loadDataResolveFunc$ = loadDataResolveFunc.current) === null || _loadDataResolveFunc$ === void 0 || _loadDataResolveFunc$.call(loadDataResolveFunc);\n    loadDataResolveFunc.current = null;\n  };\n  var updateTreeData = function updateTreeData(list, key, children) {\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(list).call(list, function (node) {\n      if (node.key === key) {\n        return _objectSpread(_objectSpread({}, node), {}, {\n          children: children\n        });\n      }\n      if (node.children) {\n        return _objectSpread(_objectSpread({}, node), {}, {\n          children: updateTreeData(node.children, key, children)\n        });\n      }\n      return node;\n    });\n  };\n  var onLoadData = function onLoadData(_ref) {\n    var key = _ref.key,\n      children = _ref.children,\n      isLeaf = _ref.isLeaf;\n    console.log('onLoadData-----');\n    return new (_babel_runtime_corejs3_core_js_stable_promise__WEBPACK_IMPORTED_MODULE_10___default())(function (resolve) {\n      if (children || isLeaf) {\n        resolve();\n        return;\n      }\n      loadDataResolveFunc.current = resolve;\n      lazyUpdateAppId.current = key;\n      invokeAction('queryTreeNodeChildren', [key]);\n    });\n  };\n  var handleSelectForm = function handleSelectForm(newVal, nodes) {\n    if (newVal !== value) {\n      var _nodes$;\n      // const formName = newVal ? dfs(treeData, newVal)?.title : ''\n      var formName = (nodes === null || nodes === void 0 || (_nodes$ = nodes[0]) === null || _nodes$ === void 0 ? void 0 : _nodes$.title) || '';\n      var otherChangeProp = newVal === '' && setting !== null && setting !== void 0 && setting.length ? {\n        setting: []\n      } : {};\n      dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.createUpdateAction)([[id, _objectSpread((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, propName, newVal), refProp, newVal), \"_disp_\", _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, propName, formName), refProp, formName))), otherChangeProp)]]));\n      if (needsync) {\n        sendSyncData([nodeId]);\n      }\n    }\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n    // 需要先判断原先是否有值，再判断是否切换，切换的时候需要清空值\n    if (preSelectedSourceRef.current && source !== preSelectedSourceRef.current) {\n      preSelectedSourceRef.current = source;\n      setTreeData([]);\n      // 选择之后，再清空会造成用户二次选择的内容也清空\n      // handleSelectForm('', {})\n    }\n  }, [source]);\n  var isExsitTreeData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    return dfs(treeData, function (node) {\n      return node.key === value;\n    });\n  }, [treeData, value]);\n  var treeValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useMemo)(function () {\n    // 避免删除表单之后，树选择器还显示对应的id\n    if (isExsitTreeData) {\n      return value;\n    }\n    if (value) {\n      return disp[propName];\n    }\n    return '';\n  }, [isExsitTreeData, disp, value]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: Name,\n    tips: tips,\n    required: !published && required,\n    title: title,\n    subTitle: subTitle\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"-tree-select\")\n  }, published ? disp === null || disp === void 0 ? void 0 : disp[propName] : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__.ConfigProvider, {\n    value: {\n      prefixCls: 'kd'\n    }\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_15__.KDTreeSelect, {\n    allowClear: true,\n    value: treeValue,\n    treeData: treeData,\n    showTreeIcon: true,\n    treeIcon: function treeIcon(props) {\n      return props.icon;\n    },\n    onChange: handleSelectForm,\n    treeLoadData: onLoadData,\n    treeDefaultExpandedKeys: SelectBillPid,\n    treeDefaultExpandAll: treeDefaultExpandAll,\n    virtual: true,\n    listHeight: 360,\n    scrollToKey: treeValue\n  }))));\n});\nRefBillTypeEditor.displayName = 'RefBillTypeEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_13__.ErrorBoundaryWrap)(RefBillTypeEditor, 'RefBillTypeEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///42752\n");

/***/ }),

/***/ 71156:
/*!*************************************************!*\
  !*** ./src/editors/RequestBodyEditor/index.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _common_ChildPropertyViewItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../common/ChildPropertyViewItem */ 28056);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_14__);\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-28 19:01:47\n * @LastEditTime: 2024-02-23 17:29:04\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\nvar RequestBodyEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    error = props.error,\n    _props$value = props.value,\n    value = _props$value === void 0 ? {\n      enctype: 'formData'\n    } : _props$value,\n    curPropName = props.propName;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    refProp = editor.RefProp,\n    childProperty = editor.ChildProperty;\n  var nodeId = field.id,\n    disp = field._disp_,\n    id = field.id;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_11__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    batchInvoke = _useContext.batchInvoke,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId,\n    isReadonly = _useContext.isReadonly;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    errorContext = _useMemo.error;\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useEffect)(function () {\n    if (error !== null && error !== void 0 && error.msg) {\n      var filedError = errorContext.getError(id) || {};\n      try {\n        delete filedError[curPropName];\n      } catch (error) {\n        console.error('error', error);\n      }\n      var newError = (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, id, _objectSpread(_objectSpread({}, filedError), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, value.enctype, _objectSpread(_objectSpread({}, error), {}, {\n        prop: [value.enctype]\n      }))));\n      errorContext.setError(newError);\n    }\n  }, [error]);\n  var _value = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useMemo)(function () {\n    var defaultValue = (0,_utils_control__WEBPACK_IMPORTED_MODULE_13__.createNewSettingDefaultData)(childProperty);\n    if (value) {\n      // 后端默认值是不会返回来，因此需要合并一遍默认值\n      return _objectSpread(_objectSpread({}, defaultValue), value);\n    }\n    return defaultValue;\n  }, [value]);\n  var handlePropertyChange = function handlePropertyChange(id) {\n    for (var _len = arguments.length, propertyData = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n      propertyData[_key - 1] = arguments[_key];\n    }\n    var _ref = propertyData || [],\n      _ref2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_ref, 3),\n      propName = _ref2[1],\n      propertyValue = _ref2[2];\n    var newValue = _objectSpread(_objectSpread({}, _value), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, id, propertyValue));\n    handleChange(newValue);\n    return true;\n  };\n  var controlPropertyGroups = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.getModelData)([{\n    Nodes: _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default()(childProperty).call(childProperty, function (item) {\n      var _item$Config, _item$Config2;\n      var node = _objectSpread(_objectSpread(_objectSpread({}, item.Config), {}, {\n        Actions: (_item$Config = item.Config) === null || _item$Config === void 0 || (_item$Config = _item$Config.Actions) === null || _item$Config === void 0 ? void 0 : _item$Config.Enum\n      }, item), {}, {\n        Id: item.Number\n      });\n      if ((_item$Config2 = item.Config) !== null && _item$Config2 !== void 0 && (_item$Config2 = _item$Config2.Actions) !== null && _item$Config2 !== void 0 && _item$Config2.Enum) {\n        var _item$Config3, _context;\n        var _actions = (_item$Config3 = item.Config) === null || _item$Config3 === void 0 || (_item$Config3 = _item$Config3.Actions) === null || _item$Config3 === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default()(_context = _item$Config3.Enum).call(_context, function (_ref3) {\n          var Action = _ref3.Action,\n            condition = _ref3.Condition;\n          var action = {};\n          _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7___default()(Action).forEach(function (key) {\n            action[key === null || key === void 0 ? void 0 : key.toLocaleLowerCase()] = Action[key];\n          });\n          return {\n            action: action,\n            condition: condition\n          };\n        });\n        node.Actions = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.transformActions)(_actions);\n      }\n      return node;\n    })\n  }], {\n    field: _value\n  });\n  var _childProperty = controlPropertyGroups[0].Nodes;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-requestbody\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(\"\".concat(className, \"-requestbody-content\"), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, \"\".concat(className, \"-requestbody-content-display\"), isReadonly))\n  }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default()(_childProperty).call(_childProperty, function (propertyData) {\n    var id = propertyData.Number,\n      Visible = propertyData.Visible;\n    if (Visible === false) return null;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_common_ChildPropertyViewItem__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n      key: id,\n      prefixClass: \"\".concat(className, \"-requestbody\")\n      // className={className}\n      ,\n      data: (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, id, value[id]),\n      parentField: field\n      // displayLabel={disp[curPropName]?.[id]}\n      ,\n      isReadonly: isReadonly,\n      readonly: isReadonly,\n      propertyData: propertyData\n      // nodeVariablesTree={nodeVariablesTree}\n      // error={errorData[id]}\n      ,\n      handleChange: function handleChange() {\n        var _context2;\n        for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n          params[_key2] = arguments[_key2];\n        }\n        return handlePropertyChange.apply(void 0, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(_context2 = [id]).call(_context2, params));\n      }\n    });\n  })));\n});\nRequestBodyEditor.displayName = 'RequestBodyEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(RequestBodyEditor, 'RequestBodyEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///71156\n");

/***/ }),

/***/ 12752:
/*!*************************************************!*\
  !*** ./src/editors/TestApiEditor/GridInput.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_1__);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-12-22 15:21:51\n * @LastEditTime: 2024-04-03 14:26:08\n * @Last Modified by: jianhang_he\n */\n\n\n\nvar GridInput = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (_ref) {\n  var value = _ref.value,\n    _ref$allowClear = _ref.allowClear,\n    allowClear = _ref$allowClear === void 0 ? true : _ref$allowClear,\n    onChange = _ref.onChange;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_1__.Text, {\n    value: value,\n    title: value,\n    onChange: onChange,\n    allowClear: allowClear\n  });\n});\nGridInput.displayName = 'GridInput';\n/* harmony default export */ __webpack_exports__[\"default\"] = (GridInput);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTI3NTIuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBRUE7QUFJQTtBQUhBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBRUE7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2VkaXRvcnMvVGVzdEFwaUVkaXRvci9HcmlkSW5wdXQudHN4PzkwMmEiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0xMi0yMiAxNToyMTo1MVxuICogQExhc3RFZGl0VGltZTogMjAyNC0wNC0wMyAxNDoyNjowOFxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cblxuaW1wb3J0IFJlYWN0LCB7IG1lbW8gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IFRleHQgfSBmcm9tICdub2NvZGVfY29tcG9uZW50L1dlYlVJJ1xuXG5jb25zdCBHcmlkSW5wdXQgPSBtZW1vKCh7XG4gIHZhbHVlLFxuICBhbGxvd0NsZWFyID0gdHJ1ZSxcbiAgb25DaGFuZ2Vcbn0pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8VGV4dCB2YWx1ZT17dmFsdWV9IHRpdGxlPXt2YWx1ZX0gb25DaGFuZ2U9e29uQ2hhbmdlfSBhbGxvd0NsZWFyPXthbGxvd0NsZWFyfSAvPlxuICApXG59KVxuXG5HcmlkSW5wdXQuZGlzcGxheU5hbWUgPSAnR3JpZElucHV0J1xuXG5leHBvcnQgZGVmYXVsdCBHcmlkSW5wdXRcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///12752\n");

/***/ }),

/***/ 95744:
/*!*********************************************!*\
  !*** ./src/editors/TestApiEditor/index.tsx ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _GridInput__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./GridInput */ 12752);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../constants/actionname */ 20572);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../constants */ 98092);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n/*\n * @Description: 测试API\n * @Author: jianhang_he\n * @Date: 2023-12-21 17:22:03\n * @LastEditTime: 2024-03-14 15:32:29\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\nvar urlReg = /^(https?:\\/\\/)?([\\da-z\\.-]+)\\.([a-z\\.]{2,6})([\\/\\w \\.-]*)*/i;\nvar columns = [{\n  code: 'name',\n  name: '参数名',\n  width: 200\n}, {\n  code: 'type',\n  name: '类型',\n  width: 80\n}, {\n  code: 'value',\n  name: '参考值',\n  features: {\n    flex: 1\n  }\n}];\nvar varColumns = [{\n  code: 'name',\n  name: '变量名称',\n  width: 200\n}, {\n  code: 'value',\n  name: '变量值',\n  features: {\n    flex: 1\n  }\n}];\nvar getTreeDataFlatten = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.treeUtils.getTreeDataFlatten,\n  transformTreeNodeTitle = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.treeUtils.transformTreeNodeTitle;\nvar getVarByValue = function getVarByValue(value) {\n  var varData = {};\n  if (!(0,_utils__WEBPACK_IMPORTED_MODULE_15__.isVarStr)(value)) {\n    varData = (0,_utils__WEBPACK_IMPORTED_MODULE_15__.extractVarDataFromExpression)(value);\n  } else {\n    varData[value] = false;\n  }\n  return varData;\n};\nvar transformToTableSource = function transformToTableSource(data) {\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(data).call(data, function (item) {\n    return _objectSpread(_objectSpread({}, item), {}, {\n      value: (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(item.value) === 'object' ? _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_9___default()(item.value) : item.value\n    });\n  });\n};\nvar TestApiEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)(function (props) {\n  var _apiTestResults$curre;\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    Name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    id = props.id,\n    propName = props.propName,\n    Id = props.Id;\n  var prefixClass = \"\".concat(className, \"-testapi\");\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.GlobalConfigContext),\n    showMessage = _useContext.showMessage;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(_context__WEBPACK_IMPORTED_MODULE_17__.DesignerContext),\n    invokeAction = _useContext2.invokeAction,\n    getPreNodeVariablesById = _useContext2.getPreNodeVariablesById,\n    apiTestResults = _useContext2.apiTestResults;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState, 2),\n    testDataModalVisible = _useState2[0],\n    setTestDataModalVisible = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)([]),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState3, 2),\n    testApiParams = _useState4[0],\n    setTestApiParams = _useState4[1];\n  var apiMode = field.apiMode,\n    url = field.url,\n    method = field.method,\n    requestHeader = field.requestHeader,\n    requestBody = field.requestBody,\n    nodeId = field.id,\n    accessTokenUrl = field.accessTokenUrl;\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)((_apiTestResults$curre = apiTestResults.current) === null || _apiTestResults$curre === void 0 ? void 0 : _apiTestResults$curre[nodeId]),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState5, 2),\n    testApiData = _useState6[0],\n    setTestApiData = _useState6[1];\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    if (!value) {\n      handleChange('');\n    }\n  }, []);\n\n  /**\n   * 给后端传过去的value是JSONstring，因此返回来的时候需要parse一下\n   */\n  var _value = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    if (value) {\n      return JSON.parse(value);\n    }\n    return {};\n  }, [value]);\n\n  // 字段树数据\n  var variablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return getPreNodeVariablesById(nodeId);\n  }, [nodeId, getPreNodeVariablesById]);\n\n  /**\n   * 扁平化是为了获取变量的标题\n   */\n  var treeDataFlatten = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    var treeData = transformTreeNodeTitle((0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.expendTreeOptionChildren)(variablesTree));\n    // 展开所有之后扁平化\n    return getTreeDataFlatten(treeData);\n  }, [variablesTree]);\n\n  /**\n   * 弹窗里面的变量行\n   */\n  var getVarRows = function getVarRows() {\n    var _context;\n    var rows = {};\n    // 地址\n    var apiUrl = apiMode === 'request' ? url : accessTokenUrl;\n    if (apiUrl) {\n      var urlVarData = getVarByValue(apiUrl);\n      rows = _objectSpread(_objectSpread({}, rows), urlVarData);\n    }\n\n    // 请求头\n    if (requestHeader) {\n      requestHeader.forEach(function (item) {\n        rows = _objectSpread(_objectSpread({}, rows), getVarByValue(item.value));\n      });\n    }\n    if (requestBody) {\n      // 请求头\n      if (requestBody.enctype === 'json') {\n        if (requestBody.json) {\n          rows = _objectSpread(_objectSpread({}, rows), getVarByValue(requestBody.json));\n        }\n      } else {\n        if (requestBody.formData) {\n          requestBody.formData.forEach(function (item) {\n            rows = _objectSpread(_objectSpread({}, rows), getVarByValue(item.value));\n          });\n        }\n      }\n    }\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(_context = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_7___default()(rows)).call(_context, function (varKey, index) {\n      return {\n        id: index,\n        key: varKey,\n        name: rows[varKey] === false ? treeDataFlatten[varKey] : rows[varKey],\n        value: _value[varKey]\n      };\n    }) || [];\n  };\n\n  /**\n   * 发送测试数据\n   * @param params\n   */\n  var sendTestApiParams = function sendTestApiParams(params) {\n    invokeAction(_constants_actionname__WEBPACK_IMPORTED_MODULE_18__.TEST_API, [params]);\n  };\n\n  /**\n   * 点击测试按钮\n   * @returns\n   */\n  var handleClickTestApi = function handleClickTestApi() {\n    // if (!url) {\n    //   showMessage('URL不能为空', 1)\n    //   return\n    // }\n\n    // if (!isVarStr(url) && !isExpressionStr(url) && !urlReg.test(url)) {\n    //   showMessage('API的URL不合法，请重新确认', 1)\n    //   return\n    // }\n\n    // // 请求头、请求体、返回参数只要存在行就要为空校验。一行都没有就不用校验\n    // // 请求头校验\n    // if (requestHeader?.length > 0) {\n    //   const existHeadeIsNull = requestHeader.find(header => {\n    //     return Object.keys(header).find(key => header[key] === undefined || header[key] === '')\n    //   })\n\n    //   if (existHeadeIsNull) {\n    //     showMessage('请求头不能为空', 1)\n    //     return\n    //   }\n    // }\n\n    var varRows = getVarRows();\n    if (varRows.length === 0) {\n      sendTestApiParams(field);\n      return;\n    }\n    setTestApiParams(varRows);\n    setTestDataModalVisible(true);\n  };\n\n  /**\n   * 关闭弹窗\n   */\n  var handleCloseModal = function handleCloseModal() {\n    setTestDataModalVisible(false);\n  };\n\n  /**\n   * 确认测试\n   */\n  var handleConfirmTestApi = function handleConfirmTestApi() {\n    var testApiParamsMap = {};\n    testApiParams.forEach(function (param) {\n      if (param.key) {\n        testApiParamsMap[param.key] = param.value || '';\n      }\n    });\n    var testApiParamsStr = _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_9___default()(testApiParamsMap);\n    var newField = _objectSpread(_objectSpread({}, field), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, Id, testApiParamsStr));\n    handleChange(testApiParamsStr);\n    sendTestApiParams(newField);\n    setTestDataModalVisible(false);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    var _apiTestResults$curre2;\n    setTestApiData((_apiTestResults$curre2 = apiTestResults.current) === null || _apiTestResults$curre2 === void 0 ? void 0 : _apiTestResults$curre2[nodeId]);\n  }, [nodeId]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    var listener = function listener(data) {\n      var _document$getElementB;\n      if (!data) return;\n      var _ref = data || {},\n        _ref$body = _ref.body,\n        body = _ref$body === void 0 ? [] : _ref$body,\n        _ref$header = _ref.header,\n        header = _ref$header === void 0 ? [] : _ref$header;\n      var _body = transformToTableSource(body);\n      var _header = transformToTableSource(header);\n      var results = _objectSpread(_objectSpread({}, data), {}, {\n        body: _body,\n        header: _header\n      });\n      setTestApiData(results);\n      // 将api测试结果通过节点Id缓存起来，下次打开面板还能显示\n      apiTestResults.current[nodeId] = results;\n      (_document$getElementB = document.getElementById(_constants__WEBPACK_IMPORTED_MODULE_19__.NOCODE_FLOW_API)) === null || _document$getElementB === void 0 || _document$getElementB.scrollIntoView({\n        behavior: 'smooth',\n        // 平滑滚动\n        block: 'start',\n        // 块级元素顶部对齐\n        inline: 'nearest' // 内联元素就近对齐\n      });\n      console.log('listen', data);\n    };\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_18__.SET_TEST_API, listener);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_18__.SET_TEST_API, listener);\n    };\n  }, []);\n\n  /**\n   * 修改测试数据（指的是弹窗里面的变量值更改）\n   * @param i\n   * @param value\n   */\n  var handleChangeTestApiData = function handleChangeTestApiData(i, value) {\n    var newTestApiParams = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(testApiParams).call(testApiParams, function (item, index) {\n      if (index === i) {\n        return _objectSpread(_objectSpread({}, item), {}, {\n          value: value\n        });\n      }\n      return item;\n    });\n    setTestApiParams(newTestApiParams);\n  };\n\n  /**\n   * 弹窗里面的表格头信息\n   */\n  var testApiColumns = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(varColumns).call(varColumns, function (item, index) {\n      if (item.code === 'value') {\n        return _objectSpread(_objectSpread({}, item), {}, {\n          width: 558,\n          render: function render(value, record, rowIndex) {\n            return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_GridInput__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {\n              meta: item,\n              value: value,\n              record: record,\n              rowIndex: rowIndex,\n              onChange: function onChange(value) {\n                return handleChangeTestApiData(rowIndex, value);\n              }\n            });\n          }\n        });\n      }\n      if (item.code === 'name') {\n        return _objectSpread(_objectSpread({}, item), {}, {\n          render: function render(value, record, rowIndex) {\n            if (!value) return '';\n            var _ref2 = value || {},\n              fullLabel = _ref2.fullLabel,\n              title = _ref2.title;\n            return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_13__.Tooltip, {\n              tip: \"\\u5B8C\\u6574\\u8DEF\\u5F84\\uFF1A\".concat(fullLabel),\n              mouseEnterDelay: 0.3\n            }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"span\", null, title));\n          }\n        });\n      }\n      return item;\n    });\n  }, [handleChangeTestApiData, columns]);\n  var _ref3 = testApiData || {},\n    body = _ref3.body,\n    _ref3$requestInfo = _ref3.requestInfo,\n    requestInfo = _ref3$requestInfo === void 0 ? {} : _ref3$requestInfo,\n    header = _ref3.header;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    id: _constants__WEBPACK_IMPORTED_MODULE_19__.NOCODE_FLOW_API\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.BtnField, {\n    className: \"\".concat(prefixClass, \"-btn\"),\n    major: true,\n    text: \"\\u6D4B\\u8BD5\",\n    onClick: handleClickTestApi\n  }), testApiData && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"-config\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"span\", null, \"\\u8BF7\\u6C42\\u65F6\\u95F4\\uFF1A\", requestInfo.requestTime, \"\\uFF5C\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"span\", null, \"\\u8017\\u65F6\\uFF1A\", requestInfo.cost, \" \\u79D2\\uFF5C\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"span\", null, \"HTTP\\u72B6\\u6001\\u7801\\uFF1A\", requestInfo.statusCode)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"-res\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"-res-title\")\n  }, \"\\u54CD\\u5E94\\u5934\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.DataGrid, {\n    dataSource: header,\n    columns: columns\n  })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"-res\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass, \"-res-title\")\n  }, \"\\u54CD\\u5E94\\u4F53\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.DataGrid, {\n    dataSource: body,\n    columns: columns\n  }))), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.Modal, {\n    title: \"\\u4EE5\\u4E0B\\u53D8\\u91CF\\u8D4B\\u503C\\u540E\\u624D\\u53EF\\u8FDB\\u884C\\u6D4B\\u8BD5\",\n    width: 800,\n    height: 520,\n    visible: testDataModalVisible,\n    body: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.DataGrid, {\n      dataSource: testApiParams,\n      columns: testApiColumns\n    }),\n    onCancel: handleCloseModal,\n    onOk: handleConfirmTestApi\n  }));\n});\nTestApiEditor.displayName = 'TestApiEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.ErrorBoundaryWrap)(TestApiEditor, 'TestApiEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///95744\n");

/***/ }),

/***/ 72680:
/*!***********************************************!*\
  !*** ./src/editors/TriggerTimeEditor/date.ts ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   formatTimeToDate: function() { return /* binding */ formatTimeToDate; },\n/* harmony export */   getDateData: function() { return /* binding */ getDateData; },\n/* harmony export */   getDateLable: function() { return /* binding */ getDateLable; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/fill */ 31848);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-11-15 15:03:45\n * @LastEditTime: 2023-12-05 11:16:06\n * @Last Modified by: jianhang_he\n *\n */\n\nvar createWeekData = function createWeekData() {\n  // 周分别是2、3、4、5、6、7、1\n  var chineseWeekNums = ['一', '二', '三', '四', '五', '六', '日'];\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(chineseWeekNums).call(chineseWeekNums, function (item, index) {\n    return {\n      label: \"\\u5468\".concat(item),\n      value: (index + 1) % 7 + 1 + ''\n    };\n  });\n};\nvar createMonthData = function createMonthData() {\n  var _context, _context2;\n  var maxDay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 31;\n  // 月分别是1、2、3、4....30、31\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_2___default()(_context2 = new Array(maxDay)).call(_context2, '')).call(_context, function (item, index) {\n    return {\n      label: \"\".concat(index + 1, \"\\u53F7\"),\n      value: index + 1 + ''\n    };\n  });\n};\nvar getStringNum = function getStringNum(num) {\n  return num < 10 ? '0' + num : num;\n};\nvar createOneMonthDays = function createOneMonthDays(month, day) {\n  var _context3, _context4;\n  var curDay = day + 1;\n  return {\n    key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context3 = \"\".concat(getStringNum(month), \"-\")).call(_context3, getStringNum(curDay)),\n    title: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context4 = \"\".concat(month, \"\\u6708\")).call(_context4, curDay, \"\\u53F7\")\n  };\n};\n\n// 小月\nvar smallMonth = [4, 6, 9, 11];\nvar createYearData = function createYearData() {\n  var _context5, _context6;\n  var maxMonth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 12;\n  var maxDay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 31;\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(_context5 = _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_2___default()(_context6 = new Array(maxMonth)).call(_context6, '')).call(_context5, function (item, month) {\n    var _context7, _context8;\n    var curMonth = month + 1;\n    var monthData = {\n      key: curMonth,\n      title: \"\".concat(curMonth, \"\\u6708\"),\n      selectable: false\n    };\n    maxDay = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default()(smallMonth).call(smallMonth, curMonth) ? 30 : 31;\n    monthData.children = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(_context7 = _babel_runtime_corejs3_core_js_stable_instance_fill__WEBPACK_IMPORTED_MODULE_2___default()(_context8 = new Array(curMonth === 2 ? 29 : maxDay)).call(_context8, '')).call(_context7, function (item, day) {\n      return createOneMonthDays(curMonth, day);\n    });\n    return monthData;\n  });\n};\nvar createDateData = function createDateData(type) {\n  if (type === 'week') {\n    return createWeekData();\n  } else if (type === 'month') {\n    return createMonthData();\n  } else if (type === 'year') {\n    return createYearData();\n  } else {\n    return [];\n  }\n};\nvar dateCache = {};\nvar getDateData = function getDateData(type) {\n  if (!dateCache[type]) {\n    dateCache[type] = createDateData(type);\n  }\n  return dateCache[type];\n};\nvar formatTimeToDate = function formatTimeToDate(timeStr) {\n  var _context9;\n  var date = new Date();\n  if (!timeStr) return date;\n  var _timeStr$split$map = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(_context9 = timeStr.split(':')).call(_context9, Number),\n    _timeStr$split$map2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_timeStr$split$map, 3),\n    hour = _timeStr$split$map2[0],\n    minute = _timeStr$split$map2[1],\n    second = _timeStr$split$map2[2];\n  date.setHours(hour, minute, second);\n  return date;\n};\n\n// key value的形式方便查找\nvar dateMapCache = {};\nvar getDateLable = function getDateLable(type, value) {\n  if (type === 'day') return '';\n  if (!dateMapCache[type]) {\n    var dateData = getDateData(type);\n    dateMapCache[type] = {};\n    if (type === 'year') {\n      dateData.forEach(function (item) {\n        var _item$children;\n        item === null || item === void 0 || (_item$children = item.children) === null || _item$children === void 0 || _item$children.forEach(function (dayData) {\n          dateMapCache[type][dayData.key] = dayData.title;\n        });\n      });\n    } else {\n      dateData.forEach(function (item) {\n        dateMapCache[type][item.value] = item.label;\n      });\n    }\n  }\n  var dateMap = dateMapCache[type];\n  return value.reduce(function (pre, cur) {\n    var _context10, _context11;\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context10 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context11 = \"\".concat(pre)).call(_context11, pre ? '、' : '')).call(_context10, dateMap[cur] || '');\n  }, '');\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///72680\n");

/***/ }),

/***/ 66608:
/*!*************************************************!*\
  !*** ./src/editors/TriggerTimeEditor/index.tsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _date__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./date */ 72680);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_13__);\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-11-15 14:40:09\n * @LastEditTime: 2023-12-08 14:15:20\n * @Last Modified by: jianhang_he\n */\n/**\n * 属性编辑器-触发时间\n */\n\n\n\n\n\n\n\n\nvar DateTypePicker = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_6__.memo)(function (_ref) {\n  var type = _ref.type,\n    value = _ref.value,\n    className = _ref.className,\n    onChange = _ref.onChange;\n  if (type === 'day') {\n    return null;\n  }\n  var dateData = (0,_date__WEBPACK_IMPORTED_MODULE_11__.getDateData)(type);\n  var handleTreeChange = function handleTreeChange(value) {\n    if (type === 'year') {\n      var newValue = value === null || value === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default()(value).call(value, function (item) {\n        return typeof item !== 'number';\n      });\n      console.log('newValue', newValue);\n      onChange(newValue);\n      return;\n    }\n    onChange(value);\n  };\n  if (type === 'week' || type === 'month') {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_7__.Select, {\n      allowClear: true,\n      placeholder: \"\\u8BF7\\u9009\\u62E9\",\n      mode: \"multiple\",\n      borderType: \"bordered\",\n      value: value,\n      options: dateData,\n      className: className,\n      onChange: handleTreeChange\n    });\n  }\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_7__.ConfigProvider, {\n    value: {\n      prefixCls: 'kd'\n    }\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_10__.KDTreeSelect, {\n    allowClear: true,\n    mode: \"multiple\",\n    value: value,\n    treeData: dateData,\n    showTreeIcon: true,\n    selectedKeys: value,\n    className: className,\n    onChange: handleTreeChange\n  }));\n});\nDateTypePicker.displayName = 'DateTypePicker';\nvar defaultValue = {\n  date: [],\n  time: ''\n};\nvar TriggerTimeEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_6__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_6__.useContext)(_context__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    isReadonly = _useContext.isReadonly;\n  var handleChange = props.handleChange,\n    _props$value = props.value,\n    value = _props$value === void 0 ? defaultValue : _props$value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    Name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    id = props.id,\n    propName = props.propName;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    subTitle = editor.SubTitle;\n  var loopType = field.loopType;\n  var prefixClass = \"\".concat(className, \"-triggertime\");\n  var _ref2 = value || {},\n    timeValue = _ref2.time,\n    dateValue = _ref2.date;\n  var preLoopTypeRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_6__.useRef)(loopType);\n  var handleTimeOK = function handleTimeOK(date) {\n    var time = date ? (0,_utils__WEBPACK_IMPORTED_MODULE_12__.dateFormat)('hh:mm:ss', date) : '';\n    handleChange(_objectSpread(_objectSpread({}, value || defaultValue), {}, {\n      time: time\n    }));\n  };\n  var handleDateChange = function handleDateChange(date) {\n    handleChange(_objectSpread(_objectSpread({}, value || defaultValue), {}, {\n      date: date\n    }));\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_6__.useEffect)(function () {\n    if (!timeValue) {\n      handleTimeOK();\n    }\n  }, [timeValue]);\n\n  // 切换loopType的时候清空\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_6__.useEffect)(function () {\n    if (preLoopTypeRef.current !== loopType) {\n      handleDateChange([]);\n      preLoopTypeRef.current = loopType;\n    }\n  }, [loopType]);\n  if (isReadonly) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(\"div\", {\n      className: classnames__WEBPACK_IMPORTED_MODULE_13___default()(\"\".concat(className, \"-display-viewitem\"), 'custom-title')\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(\"span\", {\n      className: \"title\",\n      title: title\n    }, Name)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(\"span\", null, (0,_date__WEBPACK_IMPORTED_MODULE_11__.getDateLable)(loopType, (value === null || value === void 0 ? void 0 : value.date) || []) + (value === null || value === void 0 ? void 0 : value.time)));\n  }\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: Name,\n    tips: tips,\n    required: required,\n    title: title,\n    subTitle: subTitle\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass)\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(DateTypePicker, {\n    value: dateValue,\n    className: \"\".concat(prefixClass, \"-date\"),\n    type: loopType,\n    onChange: handleDateChange\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_6___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_7__.DatePicker, {\n    defaultValue: timeValue ? (0,_date__WEBPACK_IMPORTED_MODULE_11__.formatTimeToDate)(timeValue) : undefined,\n    className: \"\".concat(prefixClass, \"-time\"),\n    allowClear: false,\n    picker: \"time\",\n    borderType: \"bordered\",\n    onOk: handleTimeOK\n  })));\n});\nTriggerTimeEditor.displayName = 'TriggerTimeEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.ErrorBoundaryWrap)(TriggerTimeEditor, 'TriggerTimeEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///66608\n");

/***/ }),

/***/ 64224:
/*!***************************************************!*\
  !*** ./src/editors/UserInputPermEditor/index.tsx ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/control */ 3700);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-28 19:01:47\n * @LastEditTime: 2024-05-14 14:33:09\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n// 禁止设置字段状态类型\nvar FORBID_SET_FIELD_STATUS_TYPES = ['NoCodeBillFormAp'];\nvar statusList = ['', 'default', 'disabled', 'readonly', 'hidden', 'mustInput'];\n\n// { 'default': 1, 'disabled': 2, ... }\nvar statusListMap = statusList.reduce(function (result, item, index) {\n  if (item) {\n    return _objectSpread(_objectSpread({}, result), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, item, index));\n  }\n  return result;\n}, {});\n\n// 字段状态优先级\n// 级别是指字段可操控状态的自由度，自由度越高级别越高\n// 编辑最高、只读其次、禁用再次、隐藏最低\nvar fieldStatusLevel = {\n  1: 4,\n  3: 3,\n  2: 2,\n  4: 1,\n  5: 4\n};\nvar hideMenu = function hideMenu(controlType, parentType) {\n  var _context, _context2;\n  return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(_context = ['NoCodeBizButtonAp', 'BizBtnFlexPanelAp']).call(_context, controlType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isSysControl)(controlType) || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(_context2 = ['NoCodeEntryEntity']).call(_context2, parentType);\n};\nvar UserInputPermEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.memo)(function (props) {\n  var handleChange = props.handleChange,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    readonly = props.readonly,\n    _props$value = props.value,\n    value = _props$value === void 0 ? [] : _props$value;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title;\n  var refNodeId = field.refNodeId;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    customUtils = _useContext.customUtils,\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data,\n    metaContext = kdesignerApi.meta;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.GlobalConfigContext),\n    showMessage = _useContext2.showMessage;\n  var selectedFormIdRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {\n    var _dataContext$getData = dataContext.getData(),\n      Items = _dataContext$getData.Items;\n    Items.forEach(function (item) {\n      var id = item.id,\n        _Type_ = item._Type_;\n      if (refNodeId === item.id) {\n        if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isFindNode)(_Type_)) {\n          if (item.queryModel === 'byfilter') {\n            selectedFormIdRef.current = item.formId;\n          } else {\n            var _editor = metaContext.getControlMetaEditor(_Type_, 'refbillField');\n            selectedFormIdRef.current = getRefBillVarFormId(item.id, item.refbillField, _editor === null || _editor === void 0 ? void 0 : _editor.VarType);\n          }\n        } else {\n          selectedFormIdRef.current = item.formId;\n        }\n      }\n    });\n  }, [refNodeId]);\n  var handleFieldStatusConfirm = function handleFieldStatusConfirm(value, options) {\n    var getDesignerRef = options.getDesignerRef;\n    var _ref = (getDesignerRef === null || getDesignerRef === void 0 ? void 0 : getDesignerRef()) || {},\n      kdesignerApi = _ref.kdesignerApi;\n    var _ref2 = kdesignerApi || {},\n      dataApi = _ref2.data;\n    var _dataApi$getData = dataApi.getData(),\n      Items = _dataApi$getData.Items;\n    // console.log('handleFieldStatusChange', value);\n    var newValue = _objectSpread({}, value);\n    Items.forEach(function (item) {\n      var Key = item.Key,\n        ParentId = item.ParentId,\n        Status = item.Status,\n        _Type_ = item._Type_,\n        FieldRequired = item.FieldRequired,\n        Name = item.Name;\n      if (!newValue[Key] && !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(FORBID_SET_FIELD_STATUS_TYPES).call(FORBID_SET_FIELD_STATUS_TYPES, _Type_) && statusList[Status] !== 'hidden') {\n        var parentControl = dataApi.findControl(ParentId);\n        // 表格里面的字段不能设置\n        if (parentControl._Type_ !== 'NoCodeEntryAp') {\n          var statusText = statusList[Status] || 'default';\n          newValue[Key] = statusText === 'default' && FieldRequired === '2' ? 'mustInput' : statusText;\n        }\n        // 系统字段的状态为只读态\n        if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isSysControl)(_Type_)) {\n          newValue[Key] = statusList[3];\n        }\n      }\n    });\n    // console.log('handleFieldStatusChange', newValue);\n    handleChange(newValue);\n  };\n  var handleFieldStatusChange = function handleFieldStatusChange(status, field, kdesignerApi, dispatchFieldStatus, fieldStatusData) {\n    var fieldId = field.Id,\n      fieldKey = field.Key;\n    var dataContext = kdesignerApi.data;\n    var subs = dataContext.getAllSubControls(fieldId);\n    var parents = dataContext.getAllParentControls(fieldId);\n\n    // 子组件状态更新\n    var subActions = subs.reduce(function (result, item) {\n      var ctrlId = item.Id,\n        ctrlType = item._Type_,\n        ctrlKey = item.Key;\n      if (fieldId !== ctrlId) {\n        // 系统字段不支持状态修改\n        if (!(0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isSysControl)(ctrlType)) {\n          // const curCtrlStatus = statusListMap[fieldStatusData[ctrlKey] || 'default']\n          // 如果有字段的级别高于容器，则把字段降至与容器一致\n          // if (Number(fieldStatusLevel[statusListMap[status]]) < Number(fieldStatusLevel[curCtrlStatus])) {\n          //   result[ctrlKey] = status\n          // }\n          // 产品确认，容器改变时，里面字段需要变化\n          result[ctrlKey] = status;\n        }\n      }\n      return result;\n    }, {});\n\n    // 父容器状态更新，\n    var parentActions = parents.reduce(function (result, item) {\n      var ctrlType = item._Type_,\n        ctrlKey = item.Key,\n        parentStatus = item.Status;\n      var curCtrlStatus = statusListMap[fieldStatusData[ctrlKey] || statusList[parentStatus] || 'default'];\n      // 容器状态级别低于字段，则把容器提升至与字段一致，且其他字段不变\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isGroupContainer)(ctrlType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isRefBillTable)(ctrlType)) {\n        if (Number(fieldStatusLevel[curCtrlStatus]) < Number(fieldStatusLevel[statusListMap[status]])) {\n          // 分组控件只有1和4两种状态\n          result[ctrlKey] = (0,_utils_control__WEBPACK_IMPORTED_MODULE_10__.isGroupContainer)(ctrlType) ? statusList['1'] : status;\n        }\n      }\n      return result;\n    }, {});\n    var updateValue = _objectSpread(_objectSpread(_objectSpread({}, subActions), parentActions), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, fieldKey, status));\n    // console.log('updateValue', updateValue)\n    dispatchFieldStatus(updateValue);\n  };\n  var handleClickCustomSetting = function handleClickCustomSetting() {\n    if (!selectedFormIdRef.current) {\n      showMessage('录入表单不存在，请选择');\n      return;\n    }\n    customUtils === null || customUtils === void 0 || customUtils.showFieldPermission({\n      formId: selectedFormIdRef.current,\n      value: value !== null && value !== void 0 ? value : [],\n      onChange: handleFieldStatusConfirm,\n      fieldStatusSettingOptions: {\n        hideMenu: hideMenu,\n        onFieldStatusChange: handleFieldStatusChange\n      }\n    });\n  };\n\n  // 产品说只读态的时候先隐藏\n  if (readonly) return null;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-userinputperm\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(\"span\", {\n    className: \"\".concat(className, \"-userinputperm-active\"),\n    onClick: handleClickCustomSetting\n  }, \"\\u914D\\u7F6E\"));\n});\nUserInputPermEditor.displayName = 'UserInputPermEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_8__.ErrorBoundaryWrap)(UserInputPermEditor, 'UserInputPermEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///64224\n");

/***/ }),

/***/ 2100:
/*!**************************************************!*\
  !*** ./src/editors/UserSelectEditor/Trigger.tsx ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n\n\n\nvar Trigger = function Trigger(_ref) {\n  var readonly = _ref.readonly,\n    prefixCls = _ref.prefixCls,\n    value = _ref.value,\n    placeholder = _ref.placeholder,\n    onClick = _ref.onClick,\n    onRemove = _ref.onRemove;\n  var handleRemove = function handleRemove(e, id) {\n    e.preventDefault();\n    e.stopPropagation();\n    if (readonly) return;\n    onRemove === null || onRemove === void 0 || onRemove(id);\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(\"\".concat(prefixCls, \"-editor-trigger\"), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, \"\".concat(prefixCls, \"-editor-trigger-readonly\"), readonly)),\n    onClick: onClick\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"trigger-content\"\n  }, (value === null || value === void 0 ? void 0 : value.length) > 0 ? _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(value).call(value, function (item) {\n    var _context, _context2;\n    var name = item.name,\n      id = item.id,\n      menuId = item.menuId;\n    var _splitTitlePrefix = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.splitTitlePrefix)(name),\n      title = _splitTitlePrefix.title,\n      titlePrefix = _splitTitlePrefix.titlePrefix;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Tooltip, {\n      tip: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = \"\\u5B8C\\u6574\\u8DEF\\u5F84\\uFF1A\".concat(titlePrefix)).call(_context, title),\n      mouseEnterDelay: 0.3\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Tag, {\n      type: \"edit\",\n      className: \"\".concat(prefixCls, \"-select-tag\"),\n      key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context2 = \"\".concat(menuId, \"-\")).call(_context2, id),\n      closable: true,\n      onClose: function onClose(e) {\n        return handleRemove(e, item);\n      },\n      \"data-tag\": id\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-select-tag-prefix\")\n    }, titlePrefix), title));\n  }) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", {\n    className: \"trigger-placeholder\"\n  }, placeholder)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: \"trigger-suffix\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Icon, {\n    prefix: \"designericon\",\n    type: \"gengduo\",\n    style: readonly ? {} : {\n      cursor: 'pointer'\n    }\n  })));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Trigger);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjEwMC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFXQTtBQU9BO0FBTEE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBSUE7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUlBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9lZGl0b3JzL1VzZXJTZWxlY3RFZGl0b3IvVHJpZ2dlci50c3g/YzBkOCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgY2xhc3NOYW1lcyBmcm9tICdjbGFzc25hbWVzJ1xuaW1wb3J0IHsgc3BsaXRUaXRsZVByZWZpeCB9IGZyb20gJy4uLy4uL3V0aWxzJ1xuaW1wb3J0IHsgSWNvbiwgVGFnLCBUb29sdGlwIH0gZnJvbSAnQGtkY2xvdWRqcy9rZGVzaWduJ1xuXG5pbnRlcmZhY2UgVHJpZ2dlclByb3BzIHtcbiAgcmVhZG9ubHk/OiBib29sZWFuO1xuICBwcmVmaXhDbHM6IHN0cmluZztcbiAgdmFsdWU6IGFueVtdO1xuICBwbGFjZWhvbGRlcj86IHN0cmluZztcbiAgb25DbGljazogKGU6IFJlYWN0Lk1vdXNlRXZlbnQpID0+IHZvaWQ7XG4gIG9uUmVtb3ZlOiAoaWQ6IHN0cmluZykgPT4gdm9pZDtcbn1cblxuY29uc3QgVHJpZ2dlcjogUmVhY3QuRkM8VHJpZ2dlclByb3BzPiA9ICh7XG4gIHJlYWRvbmx5LFxuICBwcmVmaXhDbHMsXG4gIHZhbHVlLFxuICBwbGFjZWhvbGRlcixcbiAgb25DbGljayxcbiAgb25SZW1vdmVcbn0pID0+IHtcbiAgY29uc3QgaGFuZGxlUmVtb3ZlID0gKGU6IFJlYWN0Lk1vdXNlRXZlbnQsIGlkOiBzdHJpbmcpID0+IHtcbiAgICBlLnByZXZlbnREZWZhdWx0KClcbiAgICBlLnN0b3BQcm9wYWdhdGlvbigpXG4gICAgaWYgKHJlYWRvbmx5KSByZXR1cm5cbiAgICBvblJlbW92ZT8uKGlkKVxuICB9XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2IGNsYXNzTmFtZT17Y2xhc3NOYW1lcyhgJHtwcmVmaXhDbHN9LWVkaXRvci10cmlnZ2VyYCwgeyBbYCR7cHJlZml4Q2xzfS1lZGl0b3ItdHJpZ2dlci1yZWFkb25seWBdOiByZWFkb25seSB9KX0gb25DbGljaz17b25DbGlja30+XG4gICAgICA8ZGl2IGNsYXNzTmFtZT0ndHJpZ2dlci1jb250ZW50Jz5cbiAgICAgICAge3ZhbHVlPy5sZW5ndGggPiAwXG4gICAgICAgICAgPyB2YWx1ZS5tYXAoaXRlbSA9PiB7XG4gICAgICAgICAgICAgIGNvbnN0IHsgbmFtZSwgaWQsIG1lbnVJZCB9ID0gaXRlbVxuICAgICAgICAgICAgICBjb25zdCB7IHRpdGxlLCB0aXRsZVByZWZpeCB9ID0gc3BsaXRUaXRsZVByZWZpeChuYW1lKVxuICAgICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgIDxUb29sdGlwIHRpcD17YOWujOaVtOi3r+W+hO+8miR7dGl0bGVQcmVmaXh9JHt0aXRsZX1gfSBtb3VzZUVudGVyRGVsYXk9ezAuM30+XG4gICAgICAgICAgICAgICAgICA8VGFnXG4gICAgICAgICAgICAgICAgICAgIHR5cGU9J2VkaXQnXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17YCR7cHJlZml4Q2xzfS1zZWxlY3QtdGFnYH1cbiAgICAgICAgICAgICAgICAgICAga2V5PXtgJHttZW51SWR9LSR7aWR9YH1cbiAgICAgICAgICAgICAgICAgICAgY2xvc2FibGVcbiAgICAgICAgICAgICAgICAgICAgb25DbG9zZT17KGUpID0+IGhhbmRsZVJlbW92ZShlLCBpdGVtKX1cbiAgICAgICAgICAgICAgICAgICAgZGF0YS10YWc9e2lkfVxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzc05hbWU9e2Ake3ByZWZpeENsc30tc2VsZWN0LXRhZy1wcmVmaXhgfT57dGl0bGVQcmVmaXh9PC9zcGFuPnt0aXRsZX1cbiAgICAgICAgICAgICAgICAgIDwvVGFnPlxuICAgICAgICAgICAgICAgIDwvVG9vbHRpcD5cbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgfSlcbiAgICAgICAgICA6IDxzcGFuIGNsYXNzTmFtZT0ndHJpZ2dlci1wbGFjZWhvbGRlcic+e3BsYWNlaG9sZGVyfTwvc3Bhbj59XG4gICAgICA8L2Rpdj5cbiAgICAgIDxkaXYgY2xhc3NOYW1lPSd0cmlnZ2VyLXN1ZmZpeCc+XG4gICAgICAgIDxJY29uIHByZWZpeD0nZGVzaWduZXJpY29uJyB0eXBlPSdnZW5nZHVvJyBzdHlsZT17cmVhZG9ubHkgPyB7fSA6IHsgY3Vyc29yOiAncG9pbnRlcicgfX0gLz5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFRyaWdnZXJcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2100\n");

/***/ }),

/***/ 74336:
/*!********************************************************!*\
  !*** ./src/editors/UserSelectEditor/UsersDataGrid.tsx ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ 73980);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ 13440);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ 59992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ 60600);\n/* harmony import */ var _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ 85640);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/regenerator */ 29052);\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__);\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_7___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_6___default()(t, r)); }); } return e; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof (_babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2___default()) !== \"undefined\" && _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3___default()(o) || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context6; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0___default()(_context6 = Object.prototype.toString.call(o)).call(_context6, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1___default()(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\n\n\n\n\n\n\n\n\nvar tableCellRender = function tableCellRender(value, record, rowIndex) {\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(\"div\", {\n    title: value,\n    className: \"table-cell-render\"\n  }, value);\n};\nvar getDefaultColWidth = function getDefaultColWidth(colId) {\n  switch (colId) {\n    case 'gender':\n      return 60;\n    case 'phone':\n      return 116;\n    default:\n      return 178;\n  }\n};\nvar ApproverDataGrid = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.memo)(function (_ref) {\n  var value = _ref.value,\n    onChange = _ref.onChange,\n    activeMenu = _ref.activeMenu;\n  var menuId = activeMenu.id,\n    sourceType = activeMenu.type,\n    formNumber = activeMenu.formNumber,\n    menuName = activeMenu.name;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useContext)(_context__WEBPACK_IMPORTED_MODULE_22__.DesignerContext),\n    invokeAction = _useContext.invokeAction,\n    getDesignerDataRef = _useContext.getDesignerDataRef;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useState)({\n      page_size: 10,\n      page_no: 1\n    }),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState, 2),\n    pageParams = _useState2[0],\n    setPageParams = _useState2[1]; // 分页请求参数\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useState)([]),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState3, 2),\n    tableData = _useState4[0],\n    setTableData = _useState4[1]; // 表格数据（审批人）\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useState)(0),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState5, 2),\n    totalCount = _useState6[0],\n    setTotalCount = _useState6[1];\n  var _useState7 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useState)(''),\n    _useState8 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState7, 2),\n    inputValue = _useState8[0],\n    setInputValue = _useState8[1];\n  var _useState9 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useState)(''),\n    _useState10 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState9, 2),\n    keyword = _useState10[0],\n    setKeyword = _useState10[1];\n  var _useState11 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useState)(value),\n    _useState12 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(_useState11, 2),\n    selectList = _useState12[0],\n    dispatchSelectList = _useState12[1];\n  var canSelectDataGrid = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useRef)(false);\n  var onPaginationChange = function onPaginationChange(pageNo, pageSize) {\n    setPageParams({\n      page_size: pageSize,\n      page_no: pageNo\n    });\n  };\n  var handleSelectedRows = function handleSelectedRows(selectedRowKeys, actionRowkey, actionRowskeys, action) {\n    var _context2;\n    // canSelectDataGrid.current为false代表表格数据正在加载中，此时禁止勾选表格数据，以防数据错乱\n    if (!canSelectDataGrid.current) return;\n    var curSelectedData = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_14___default()(tableData).call(tableData, function (item) {\n      return item.id === actionRowkey;\n    });\n    switch (action) {\n      case 'check-all':\n        {\n          var _newSelectList = (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(selectList);\n          var _iterator = _createForOfIteratorHelper(tableData),\n            _step;\n          try {\n            var _loop = function _loop() {\n              var _step$value = _step.value,\n                id = _step$value.id,\n                name = _step$value.name;\n              if (!_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_14___default()(_newSelectList).call(_newSelectList, function (item) {\n                return item.menuId === menuId && item.id === id;\n              })) {\n                var _context;\n                _newSelectList.push({\n                  menuId: menuId,\n                  formNumber: formNumber,\n                  menuType: sourceType,\n                  id: id,\n                  name: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_15___default()(_context = \"[\".concat(menuName, \"] \")).call(_context, name)\n                });\n              }\n            };\n            for (_iterator.s(); !(_step = _iterator.n()).done;) {\n              _loop();\n            }\n          } catch (err) {\n            _iterator.e(err);\n          } finally {\n            _iterator.f();\n          }\n          dispatchSelectList(_newSelectList);\n          onChange === null || onChange === void 0 || onChange(_newSelectList);\n          break;\n        }\n      case 'uncheck-all':\n        {\n          var deSelectIdList = (tableData === null || tableData === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_16___default()(tableData).call(tableData, function (item) {\n            return item.id;\n          })) || [];\n          var _newSelectList2 = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13___default()(selectList).call(selectList, function (item) {\n            if (item.menuId === menuId) {\n              return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_17___default()(deSelectIdList).call(deSelectIdList, item.id);\n            }\n            return true;\n          });\n          dispatchSelectList(_newSelectList2);\n          onChange === null || onChange === void 0 || onChange(_newSelectList2);\n          break;\n        }\n      case 'check':\n        var newSelectList = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_15___default()(selectList).call(selectList, {\n          menuId: menuId,\n          formNumber: formNumber,\n          menuType: sourceType,\n          id: curSelectedData.id,\n          name: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_15___default()(_context2 = \"[\".concat(menuName, \"] \")).call(_context2, curSelectedData.name)\n        });\n        dispatchSelectList(newSelectList);\n        onChange === null || onChange === void 0 || onChange(newSelectList);\n        break;\n      case 'uncheck':\n        {\n          var _newSelectList3 = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13___default()(selectList).call(selectList, function (item) {\n            if (item.menuId === menuId) {\n              return item.id !== curSelectedData.id;\n            }\n            return true;\n          });\n          dispatchSelectList(_newSelectList3);\n          onChange === null || onChange === void 0 || onChange(_newSelectList3);\n          break;\n        }\n      default:\n        break;\n    }\n  };\n  var updateTableData = function updateTableData(args) {\n    var _args$data = args.data,\n      data = _args$data === void 0 ? {} : _args$data;\n    var _data$rows = data.rows,\n      rows = _data$rows === void 0 ? [] : _data$rows,\n      _data$totalCount = data.totalCount,\n      totalCount = _data$totalCount === void 0 ? 0 : _data$totalCount;\n    setTableData(rows);\n    setTotalCount(totalCount);\n    canSelectDataGrid.current = true;\n  };\n  var fetchDataGridData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useCallback)( /*#__PURE__*/(0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_9__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_12___default().mark(function _callee() {\n    var args, postData;\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_12___default().wrap(function _callee$(_context3) {\n      while (1) switch (_context3.prev = _context3.next) {\n        case 0:\n          if (sourceType) {\n            _context3.next = 2;\n            break;\n          }\n          return _context3.abrupt(\"return\");\n        case 2:\n          args = [formNumber, sourceType, menuId, _objectSpread(_objectSpread({}, pageParams), {}, {\n            search: keyword\n          })];\n          postData = [{\n            nocodewfdesigner: getDesignerDataRef()\n          }];\n          invokeAction('queryApproverData', args, postData);\n        case 5:\n        case \"end\":\n          return _context3.stop();\n      }\n    }, _callee);\n  })), [keyword, sourceType, pageParams, formNumber, menuId]);\n  var handleKeywordChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useCallback)(function (value) {\n    setKeyword(value);\n    setPageParams(_objectSpread(_objectSpread({}, pageParams), {}, {\n      page_no: 1\n    }));\n  }, [setKeyword, setPageParams]);\n  var debounceHandleKeywordChange = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_21__.useDebounce)(handleKeywordChange, 500);\n\n  // 外界数据变化，同步内部数据变化\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useEffect)(function () {\n    if (!(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__.isEqual)(value, selectList)) {\n      dispatchSelectList(value);\n    }\n  }, [value]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useEffect)(function () {\n    if (sourceType) {\n      setInputValue('');\n      setKeyword('');\n      if (!(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_23__.isEqual)(pageParams, {\n        page_no: 1,\n        page_size: 10\n      })) {\n        setPageParams({\n          page_no: 1,\n          page_size: 10\n        });\n      }\n      canSelectDataGrid.current = false;\n    }\n  }, [sourceType]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useEffect)(function () {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_21__.eventBus.on('setQuery', updateTableData);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_21__.eventBus.off('setQuery', updateTableData);\n    };\n  }, []);\n\n  // 请求列表数据\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useEffect)(function () {\n    fetchDataGridData();\n  }, [fetchDataGridData]);\n\n  // 表格数据的选中id\n  var selectedIds = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useMemo)(function () {\n    var _context4;\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_16___default()(_context4 = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_13___default()(selectList).call(selectList, function (item) {\n      return item.menuId === menuId;\n    })).call(_context4, function (item) {\n      return item.id;\n    });\n  }, [selectList, activeMenu]);\n\n  // 表格列数据\n  var tableColumn = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_18__.useMemo)(function () {\n    var _context5;\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_16___default()(_context5 = (activeMenu === null || activeMenu === void 0 ? void 0 : activeMenu.listItemConfig) || []).call(_context5, function (item) {\n      var number = item.number,\n        name = item.name,\n        width = item.width;\n      return {\n        code: number,\n        name: name,\n        width: width || getDefaultColWidth(number),\n        render: tableCellRender\n      };\n    });\n  }, [activeMenu]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(\"div\", {\n    className: \"main-area\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(\"div\", {\n    className: \"table-search\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_19__.Input, {\n    value: inputValue,\n    placeholder: \"\\u641C\\u7D22\",\n    borderType: \"bordered\",\n    prefix: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_19__.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"sousuo\"\n    }),\n    size: \"small\",\n    onChange: function onChange(e) {\n      setInputValue(e.target.value);\n      debounceHandleKeywordChange(e.target.value);\n    },\n    allowClear: true\n  })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(\"div\", {\n    className: \"table-body\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_20__.DataGrid, {\n    style: {\n      height: '100%'\n    },\n    columns: tableColumn,\n    showSelected: true,\n    dataSource: tableData,\n    onRowSelectChange: handleSelectedRows,\n    onPageChange: onPaginationChange,\n    rowSelection: {\n      type: 'checkbox',\n      value: selectedIds || [],\n      highlightRowWhenSelected: true,\n      column: {\n        lock: true\n      },\n      onChange: handleSelectedRows,\n      clickArea: 'row'\n    },\n    primaryKey: \"id\"\n  })), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(\"div\", {\n    className: \"table-pagination\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_18___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_19__.Pagination, {\n    pageType: \"nicety\",\n    current: pageParams.page_no,\n    showQuickJumper: false,\n    pageSize: pageParams.page_size,\n    onChange: onPaginationChange,\n    total: totalCount || 0,\n    dropdownProps: {\n      getPopupContainer: function getPopupContainer() {\n        return document.body;\n      }\n    },\n    showSizeChanger: true\n  })));\n});\nApproverDataGrid.displayName = 'ApproverDataGrid';\n/* harmony default export */ __webpack_exports__[\"default\"] = (ApproverDataGrid);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///74336\n");

/***/ }),

/***/ 56332:
/*!***********************************************************!*\
  !*** ./src/editors/UserSelectEditor/UsersSelectModal.tsx ***!
  \***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _UsersDataGrid__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./UsersDataGrid */ 74336);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _hooks_useWindowSize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../hooks/useWindowSize */ 90824);\n/* harmony import */ var _hooks_useDebounce__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../hooks/useDebounce */ 37448);\n\n\n\n\n\n\n\n\n\n\n\n\nvar scale = 240 / 940;\nvar RightArea = function RightArea(_ref) {\n  var data = _ref.data,\n    onDelete = _ref.onDelete,\n    onClearAll = _ref.onClearAll;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"right-area\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"header\", {\n    className: \"list-header\"\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"select-count\"\n  }, \"\\u5DF2\\u9009\\uFF08\", \"\".concat((data === null || data === void 0 ? void 0 : data.length) || 0), \"\\uFF09\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"clear-btn\",\n    onClick: onClearAll\n  }, \"\\u6E05\\u7A7A\")), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"select-list\"\n  }, data === null || data === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(data).call(data, function (item) {\n    var _context;\n    var name = item.name,\n      id = item.id,\n      menuId = item.menuId;\n    var _splitTitlePrefix = (0,_utils__WEBPACK_IMPORTED_MODULE_9__.splitTitlePrefix)(name),\n      title = _splitTitlePrefix.title,\n      titlePrefix = _splitTitlePrefix.titlePrefix;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n      className: \"select-item\",\n      key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = \"\".concat(menuId, \"-\")).call(_context, id)\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n      className: \"user-name\",\n      title: name\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n      className: \"name-prefix\"\n    }, titlePrefix), title), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n      className: \"delete-btn\",\n      onClick: function onClick(e) {\n        return onDelete(item);\n      }\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Icon, {\n      prefix: \"designericon\",\n      type: \"shanchu\"\n    })));\n  })));\n};\nvar LeftArea = function LeftArea(_ref2) {\n  var menu = _ref2.menu,\n    activeMenuId = _ref2.activeMenuId,\n    onChange = _ref2.onChange;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"type-list\"\n  }, menu === null || menu === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_1___default()(menu).call(menu, function (item) {\n    var _context2;\n    var name = item.name,\n      id = item.id,\n      menuId = item.menuId;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n      className: classnames__WEBPACK_IMPORTED_MODULE_7___default()('type-item', {\n        'is-active': activeMenuId === id\n      }),\n      key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context2 = \"\".concat(menuId, \"-\")).call(_context2, id),\n      onClick: function onClick() {\n        return onChange === null || onChange === void 0 ? void 0 : onChange(id);\n      }\n    }, name);\n  }));\n};\nvar ModalFooter = function ModalFooter(_ref3) {\n  var prefixCls = _ref3.prefixCls,\n    onCancel = _ref3.onCancel,\n    onConfirm = _ref3.onConfirm;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-modal-footer\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Button, {\n    onClick: onCancel,\n    type: \"second\",\n    size: \"small\",\n    className: \"\".concat(prefixCls, \"-modal-cancel-btn\")\n  }, \"\\u53D6\\u6D88\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Button, {\n    type: \"primary\",\n    size: \"small\",\n    style: {\n      marginLeft: '12px'\n    },\n    onClick: onConfirm,\n    className: \"\".concat(prefixCls, \"-modal-ok-btn\")\n  }, \"\\u786E\\u5B9A\"));\n};\nvar ModalBody = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.forwardRef)(function (_ref4, ref) {\n  var _menu$;\n  var prefixCls = _ref4.prefixCls,\n    value = _ref4.value,\n    menu = _ref4.menu;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)((_menu$ = menu[0]) === null || _menu$ === void 0 ? void 0 : _menu$.id),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    activeMenuId = _useState2[0],\n    setActiveMenuId = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)(value || []),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState3, 2),\n    users = _useState4[0],\n    setUsers = _useState4[1];\n  var handleMenuChange = function handleMenuChange(id) {\n    setActiveMenuId(id);\n  };\n  var handleDeleteApprovers = function handleDeleteApprovers(approver) {\n    var id = approver.id,\n      menuId = approver.menuId;\n    setUsers(function (oldData) {\n      return _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(oldData).call(oldData, function (item) {\n        if (item.id === id && item.menuId === menuId) {\n          return false;\n        }\n        return true;\n      });\n    });\n  };\n  var handleClearAllApprovers = function handleClearAllApprovers() {\n    setUsers([]);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {\n    var _menu$2;\n    setActiveMenuId((_menu$2 = menu[0]) === null || _menu$2 === void 0 ? void 0 : _menu$2.id);\n  }, [menu]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useImperativeHandle)(ref, function () {\n    return {\n      users: users\n    };\n  }, [users]);\n  var activeMenu = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function () {\n    if (!activeMenuId) return {};\n    return _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_4___default()(menu).call(menu, function (menu) {\n      return menu.id === activeMenuId;\n    });\n  }, [activeMenuId]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-modal-body\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.SplitPanel, {\n    className: \"\".concat(prefixCls, \"_content_split\"),\n    defaultSplit: scale,\n    min: \"240px\",\n    firstSlot: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(LeftArea, {\n      activeMenuId: activeMenuId,\n      menu: menu,\n      onChange: handleMenuChange\n    }),\n    secondSlot: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_UsersDataGrid__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n      activeMenu: activeMenu,\n      value: users,\n      onChange: setUsers\n    })\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(RightArea, {\n    data: users,\n    onDelete: handleDeleteApprovers,\n    onClearAll: handleClearAllApprovers\n  }));\n});\nvar calcModalHeight = function calcModalHeight(_ref5) {\n  var height = _ref5.height,\n    min = _ref5.min,\n    max = _ref5.max;\n  if (height > max) return max;\n  if (height < min) return min;\n  return height;\n};\nvar UsersSelectModal = function UsersSelectModal(_ref6) {\n  var prefixCls = _ref6.prefixCls,\n    value = _ref6.value,\n    title = _ref6.title,\n    visible = _ref6.visible,\n    setVisible = _ref6.setVisible,\n    menu = _ref6.menu,\n    onConfirm = _ref6.onConfirm;\n  var _useWindowSize = (0,_hooks_useWindowSize__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(),\n    height = _useWindowSize.height;\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)(calcModalHeight({\n      height: height - 64,\n      min: 520,\n      max: 1080\n    })),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState5, 2),\n    modalHeight = _useState6[0],\n    setModalHeight = _useState6[1];\n  var ref = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);\n  var debounceSetModalHeight = (0,_hooks_useDebounce__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(setModalHeight);\n\n  // 点击取消\n  var handleCancel = function handleCancel() {\n    setVisible(false);\n  };\n  var handleConfirm = function handleConfirm() {\n    var users = ref.current.users;\n    // 外部需要传回调，则以外部回调为准\n    onConfirm === null || onConfirm === void 0 || onConfirm(users);\n    setVisible(false);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {\n    var newModalHeight = calcModalHeight({\n      height: height - 64,\n      min: 520,\n      max: 1080\n    });\n    if (newModalHeight % 2 !== 0) {\n      debounceSetModalHeight(newModalHeight - 1);\n    }\n  }, [height]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Modal, {\n    mask: true,\n    visible: visible,\n    body: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(ModalBody, {\n      ref: ref,\n      value: value,\n      prefixCls: prefixCls,\n      menu: menu\n    }),\n    titleIcon: null,\n    className: \"\".concat(prefixCls, \"-modal\"),\n    footer: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(ModalFooter, {\n      prefixCls: prefixCls,\n      onConfirm: handleConfirm,\n      onCancel: handleCancel\n    }),\n    maskClosable: false,\n    width: 1180,\n    height: modalHeight,\n    keyboard: false,\n    title: title,\n    closable: true,\n    draggable: false,\n    destroyOnClose: true,\n    onCancel: handleCancel,\n    onOk: handleCancel\n  });\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (UsersSelectModal);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///56332\n");

/***/ }),

/***/ 58372:
/*!************************************************!*\
  !*** ./src/editors/UserSelectEditor/index.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _UsersSelectModal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./UsersSelectModal */ 56332);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Trigger */ 2100);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__);\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-06-12 13:58:06\n * @LastEditTime: 2023-10-19 17:12:27\n * @Last Modified by: jianhang_he\n */\n/**\n * 选择审批参与人\n */\n\n\n\n\n\n\nvar getValueFormat = function getValueFormat(v) {\n  return Object.prototype.toString.call(v) === '[object Object]' ? v : {};\n};\n\n// 当节点信息发生变更时,需要重新替换文本\nvar formatValue = function formatValue(sourceData) {\n  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n  var mapper = data.reduce(function (result, node) {\n    return _objectSpread(_objectSpread({}, result), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, node.id, node));\n  }, {});\n  return sourceData === null || sourceData === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default()(sourceData).call(sourceData, function (item) {\n    var node = mapper[item.menuId];\n    return node ? _objectSpread(_objectSpread({}, item), {}, {\n      name: item.name.replace(/\\S+（/, \"[\".concat(node.name, \"\\uFF08\")).replace(/\\S+\\]/, \"[\".concat(node.name, \"]\"))\n    }) : item;\n  });\n};\nvar filterUnexistNode = function filterUnexistNode(obj, menus) {\n  if (!(obj !== null && obj !== void 0 && obj.sourceData)) return obj;\n  var _obj$sourceData = obj.sourceData,\n    sourceData = _obj$sourceData === void 0 ? [] : _obj$sourceData;\n  var newSourceData = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(sourceData).call(sourceData, function (item) {\n    var menuId = item.menuId,\n      formNumber = item.formNumber;\n    return _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_8___default()(menus).call(menus, function (menuItem) {\n      return menuItem.id === menuId && menuItem.formNumber === formNumber;\n    });\n  });\n  return _objectSpread(_objectSpread({}, obj), {}, {\n    sourceData: newSourceData\n  });\n};\nvar UserSelectEditor = function UserSelectEditor(props) {\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    Name = props.Name,\n    tips = props.Tips,\n    readonly = props.readonly,\n    field = props.field;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState, 2),\n    modalVisible = _useState2[0],\n    setModalVisible = _useState2[1];\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useContext)(_context__WEBPACK_IMPORTED_MODULE_11__.DesignerContext),\n    prefixCls = _useContext.prefixCls,\n    invokeApi = _useContext.invokeApi;\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useState)([]),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState3, 2),\n    userSelectMenu = _useState4[0],\n    setUserSelectMenu = _useState4[1];\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useState)({}),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState5, 2),\n    innerValue = _useState6[0],\n    setInnerValue = _useState6[1];\n  var fieldId = field.id;\n  var handleClick = function handleClick() {\n    if (locked || readonly) return;\n    setModalVisible(true);\n  };\n  var updateUserSelectMenu = function updateUserSelectMenu(args) {\n    var _getValueFormat;\n    var _args$data = args.data,\n      data = _args$data === void 0 ? [] : _args$data;\n    setUserSelectMenu(data);\n    var newData = formatValue(((_getValueFormat = getValueFormat(value)) === null || _getValueFormat === void 0 ? void 0 : _getValueFormat.sourceData) || [], data);\n    var newVal = filterUnexistNode(_objectSpread(_objectSpread({}, value), {}, {\n      sourceData: newData\n    }), data);\n    if (!(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__.isEqual)(newVal, innerValue)) {\n      setInnerValue(newVal);\n      handleChange(newVal);\n    }\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useEffect)(function () {\n    invokeApi.getUserSelectMenu([fieldId]);\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.eventBus.on('approverMenu', updateUserSelectMenu);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.eventBus.off('approverMenu', updateUserSelectMenu);\n    };\n  }, []);\n\n  // useEffect(() => {\n  //   const newVal = getValueFormat(value)\n  //   if (!isEqual(newVal, innerValue)) {\n  //     setInnerValue(newVal)\n  //     handleChange(newVal)\n  //   }\n  // }, [value])\n\n  var handleApproversConfirm = function handleApproversConfirm(approvers) {\n    var newVal = _objectSpread(_objectSpread({}, innerValue), {}, {\n      sourceData: approvers\n    });\n    if (!(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_14__.isEqual)(newVal, innerValue)) {\n      setInnerValue(newVal);\n      handleChange(newVal);\n    }\n  };\n  var handleApproverRemove = function handleApproverRemove(approver) {\n    var id = approver.id,\n      menuId = approver.menuId;\n    var sourceData = innerValue.sourceData;\n    var newApprovers = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(sourceData).call(sourceData, function (item) {\n      if (item.id === id && item.menuId === menuId) {\n        return false;\n      }\n      return true;\n    });\n    var newVal = _objectSpread(_objectSpread({}, innerValue), {}, {\n      sourceData: newApprovers\n    });\n    setInnerValue(newVal);\n    handleChange(newVal);\n  };\n  var modalPrefixCls = \"\".concat(prefixCls, \"-user-f7\");\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: Name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_Trigger__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n    readonly: readonly,\n    value: innerValue.sourceData || [],\n    prefixCls: prefixCls,\n    placeholder: \"\\u8BF7\\u9009\\u62E9\",\n    onClick: handleClick,\n    onRemove: handleApproverRemove\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_UsersSelectModal__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n    prefixCls: modalPrefixCls,\n    value: innerValue.sourceData || [],\n    visible: modalVisible,\n    setVisible: setModalVisible,\n    menu: userSelectMenu,\n    onConfirm: handleApproversConfirm,\n    title: \"\\u8BF7\\u9009\\u62E9\"\n  }));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.ErrorBoundaryWrap)(UserSelectEditor, 'UserSelectEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///58372\n");

/***/ }),

/***/ 64816:
/*!*******************************************************!*\
  !*** ./src/editors/VarSelectEditor/VarSelectWrap.tsx ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _common_CustomSelectContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/CustomSelectContent */ 97344);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-15 20:54:39\n * @LastEditTime: 2023-12-25 15:41:54\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\nvar dfs = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_5__.treeUtils.dfs;\nvar VarSelectWrap = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.memo)(function (_ref) {\n  var data = _ref.data,\n    className = _ref.className,\n    valueProps = _ref.value,\n    defaultExpandAll = _ref.defaultExpandAll,\n    readonly = _ref.readonly,\n    onClear = _ref.onClear,\n    setPropsData = _ref.setPropsData,\n    customSelectOptions = _ref.customSelectOptions;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var rootClass = \"\".concat(className, \"-var-select-wrap\");\n  var value = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    // 判断value是否在自定义节点内，如果是，则需要取Title作为value\n    var valueCustomNode = customSelectOptions === null || customSelectOptions === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_1___default()(customSelectOptions).call(customSelectOptions, function (op) {\n      return op.Id === valueProps;\n    });\n    return (valueCustomNode === null || valueCustomNode === void 0 ? void 0 : valueCustomNode.Title) || valueProps;\n  }, [valueProps, customSelectOptions]);\n\n  // 点击自定义选项\n  var handleCustomSelect = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (selectCustomItem) {\n    if (selectCustomItem) {\n      var type = selectCustomItem.type,\n        key = selectCustomItem.key,\n        title = selectCustomItem.title;\n      // 自定义\n      if (type === 'custom') {\n        setPropsData({\n          value: key,\n          label: title\n        });\n      } else {\n        console.warn('找不到类型', key);\n      }\n      setVisible(false);\n    }\n  }, [setPropsData]);\n\n  // 树选择\n  var handleTreeSelect = function handleTreeSelect(value, nodes) {\n    if (!value) {\n      return onClear === null || onClear === void 0 ? void 0 : onClear();\n    }\n    var node = (nodes === null || nodes === void 0 ? void 0 : nodes[0]) || {};\n    setPropsData({\n      value: value,\n      label: (node === null || node === void 0 ? void 0 : node.label) || (node === null || node === void 0 ? void 0 : node.title) || ''\n    });\n  };\n  var handleVisibleChange = function handleVisibleChange(vi) {\n    if (vi !== visible) {\n      setVisible(vi);\n    }\n  };\n  var dropdownRender = function dropdownRender(originContent) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_common_CustomSelectContent__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      prefixCls: rootClass,\n      options: customSelectOptions,\n      onClick: handleCustomSelect\n    }), originContent);\n  };\n  if (readonly) {\n    var _context;\n    var valueCustomNode = customSelectOptions === null || customSelectOptions === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_1___default()(customSelectOptions).call(customSelectOptions, function (op) {\n      return op.Id === valueProps;\n    });\n    if (valueCustomNode) {\n      return valueCustomNode === null || valueCustomNode === void 0 ? void 0 : valueCustomNode.Title;\n    }\n    var _ref2 = dfs(data, function (node) {\n        return node.key === value;\n      }) || {},\n      _ref2$title = _ref2.title,\n      title = _ref2$title === void 0 ? '' : _ref2$title,\n      _ref2$titlePrefix = _ref2.titlePrefix,\n      titlePrefix = _ref2$titlePrefix === void 0 ? '' : _ref2$titlePrefix;\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = \"\".concat(titlePrefix)).call(_context, title);\n  }\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_5__.KDTreeSelect, {\n    visible: visible,\n    value: value,\n    allowClear: true,\n    onChange: handleTreeSelect,\n    onVisibleChange: handleVisibleChange,\n    treeData: data,\n    treeDefaultExpandAll: defaultExpandAll,\n    showFullLabelTips: true,\n    dropdownRender: dropdownRender,\n    suffixIcon: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_6__.Icon, {\n      prefix: \"designericon\",\n      type: \"duixiangxuanze2\"\n    })\n  });\n});\nVarSelectWrap.displayName = 'VarSelectWrap';\n/* harmony default export */ __webpack_exports__[\"default\"] = (VarSelectWrap);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///64816\n");

/***/ }),

/***/ 72412:
/*!***********************************************!*\
  !*** ./src/editors/VarSelectEditor/index.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ 11908);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/ends-with */ 68456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _VarSelectWrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./VarSelectWrap */ 64816);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../context/index */ 90115);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/control */ 3700);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils */ 41232);\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-14 13:35:05\n * @LastEditTime: 2024-05-21 17:49:54\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\nvar getFlowTypeByParam = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.ListFilterUtil.getFlowTypeByParam,\n  SystemFields = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.ListFilterUtil.SystemFields;\n\n// 过滤系统字段（创建/修改人、时间）、流程特殊字段（查找）\nvar excludeSysAndFlowField = function excludeSysAndFlowField(tree) {\n  var _treeUtils$exludeTree;\n  return nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.treeUtils === null || nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.treeUtils === void 0 || (_treeUtils$exludeTree = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.treeUtils.exludeTreeNodeByCallback) === null || _treeUtils$exludeTree === void 0 ? void 0 : _treeUtils$exludeTree.call(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_11__.treeUtils, tree, function (item) {\n    var isSysField = SystemFields === null || SystemFields === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_6___default()(SystemFields).call(SystemFields, function (sysField) {\n      var _item$key;\n      return (_item$key = item.key) === null || _item$key === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(_item$key).call(_item$key, sysField);\n    });\n    var isFlowField = getFlowTypeByParam(item);\n    return !isSysField && (!isFlowField || item.children); // 保留有children的节点\n  });\n};\n\n// 对象选择编辑器\nvar VarSelectEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_14__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPreNodeVariablesById = _useContext.getPreNodeVariablesById;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data;\n  var handleChange = props.handleChange,\n    value = props.value,\n    className = props.className,\n    editor = props.editor,\n    name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    propName = props.propName,\n    error = props.error,\n    variablesTree = props.variablesTree,\n    readonly = props.readonly,\n    onPropertyChange = props.onPropertyChange,\n    assignments = props.assignments;\n  var _items = editor.Enum,\n    nameHidden = editor.NameHidden,\n    required = editor.Required,\n    VarType = editor.VarType,\n    source = editor.Source,\n    _editor$Custom = editor.Custom,\n    Custom = _editor$Custom === void 0 ? [] : _editor$Custom,\n    title = editor.Title;\n  var nodeId = field.id,\n    disp = field._disp_,\n    fieldType = field._Type_,\n    refNodeId = field.refNodeId,\n    loopby = field.loopby;\n\n  // const renderTitle = useCallback(({ title }) => {\n  //   return <TreeNodeTitle title={title} />\n  // }, [className])\n\n  var filterTree = function filterTree(tree, checkChild) {\n    var newTree = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_15__.cloneDeep)(tree);\n    newTree === null || newTree === void 0 || newTree.forEach(function (item) {\n      var c = item.children;\n      if (c) {\n        item.children = filterTree(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(c).call(c, function (citem) {\n          return (citem === null || citem === void 0 ? void 0 : citem.value) === value || !(assignments !== null && assignments !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(assignments).call(assignments, citem === null || citem === void 0 ? void 0 : citem.value));\n        }), false);\n      }\n      return item;\n    });\n    // return newTree?.filter(item => item.type !== 'pk' && ((checkChild && item.children?.length > 0) || !checkChild) && !(item?.key.startsWith('${proc.') && (item?.value?.endsWith('ExecuteResult.QueryResult}') || item?.value?.endsWith('AuditNumber}') || item?.value?.endsWith('NodeName}') || item?.key?.endsWith('.procName}'))))\n    return newTree === null || newTree === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(newTree).call(newTree, function (item) {\n      var _item$children, _context, _item$value, _item$value2, _item$value3, _item$key2;\n      return (checkChild && ((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0 || !checkChild) && !(item !== null && item !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_8___default()(_context = item.key).call(_context, '${proc.') && (item !== null && item !== void 0 && (_item$value = item.value) !== null && _item$value !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(_item$value).call(_item$value, 'ExecuteResult.QueryResult}') || item !== null && item !== void 0 && (_item$value2 = item.value) !== null && _item$value2 !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(_item$value2).call(_item$value2, 'AuditNumber}') || item !== null && item !== void 0 && (_item$value3 = item.value) !== null && _item$value3 !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(_item$value3).call(_item$value3, 'NodeName}') || item !== null && item !== void 0 && (_item$key2 = item.key) !== null && _item$key2 !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_ends_with__WEBPACK_IMPORTED_MODULE_9___default()(_item$key2).call(_item$key2, '.procName}')));\n    });\n  };\n  var nodeVariablesTree = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    var treeList = variablesTree !== null && variablesTree !== void 0 && variablesTree.length ? variablesTree : getPreNodeVariablesById(nodeId, VarType) || [];\n    // if (variablesTree) {\n    var pid = refNodeId || loopby;\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isUpdateNode)(fieldType) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isNewAddNode)(fieldType)) {\n      // 展开的节点都不可选中\n      var expendedTree = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.expendTreeOptionChildren)(treeList, function (item) {\n        var _item$option, _item$option2;\n        // 展开PK类型及和parentKey与表单记录ID一至的数据\n        var expendMulti = item.parentKey === pid && (item === null || item === void 0 || (_item$option = item.option) === null || _item$option === void 0 ? void 0 : _item$option.isMulti);\n        return (item.type === 'pk' || expendMulti) && !(item !== null && item !== void 0 && (_item$option2 = item.option) !== null && _item$option2 !== void 0 && _item$option2.expendOnlyInExp);\n      }, function () {\n        return false;\n      });\n      // 过滤系统字段\n      return excludeSysAndFlowField(expendedTree);\n    }\n\n    // 运算节点的赋值要把查找为api的或者API节点去掉\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isCalcNode)(fieldType)) {\n      var variables = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(treeList).call(treeList, function (item) {\n        var _Type_ = item._Type_,\n          queryModel = item.queryModel;\n        return !((0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isFindNode)(_Type_) && (0,_utils__WEBPACK_IMPORTED_MODULE_18__.isOpenApi)(queryModel) || (0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isApiNode)(_Type_));\n      });\n      // 展开PK类型的节点，且不可选中\n      var _expendedTree = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_16__.expendTreeOptionChildren)(variables, function (item) {\n        var _item$option3;\n        return item.type === 'pk' && !(item !== null && item !== void 0 && (_item$option3 = item.option) !== null && _item$option3 !== void 0 && _item$option3.expendOnlyInExp);\n      }, function (node) {\n        // 流程类节点不可选中，如查找记录\n        var flowType = getFlowTypeByParam === null || getFlowTypeByParam === void 0 ? void 0 : getFlowTypeByParam(node);\n        return !flowType;\n      });\n      return excludeSysAndFlowField(_expendedTree);\n      // return variables\n    }\n    // }\n\n    // let preNodeVariables = getPreNodeVariablesById(nodeId, VarType) || []\n    if (source && !variablesTree) {\n      treeList = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(treeList).call(treeList, function (item) {\n        return item[source] === source;\n      });\n    }\n\n    // 查找节点的关联表单查找要把API节点 及通过苍穹低代码的查找节点去掉\n    if (!variablesTree && (0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isFindNode)(fieldType) && (0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isQueryModeByRela)(field.queryModel)) {\n      var filterTreeData = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(treeList).call(treeList, function (item) {\n        var _Type_ = item._Type_;\n\n        // 下面这个判断有问题，互斥\n        // return !isApiNode(_Type_) || !(isFindNode(_Type_) && isQueryModeByApi(item.queryModel))\n\n        if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isFindNode)(_Type_)) {\n          return !(0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isQueryModeByApi)(item.queryModel);\n        }\n        return !(0,_utils_control__WEBPACK_IMPORTED_MODULE_17__.isApiNode)(_Type_);\n      });\n      return filterTreeData;\n    }\n\n    // return isUpdateNode(fieldType) ? formatFieldTree(preNodeVariables) : preNodeVariables\n    return treeList;\n  }, [variablesTree, getPreNodeVariablesById, nodeId, source, fieldType, refNodeId, loopby]);\n\n  // const nodeVariablesTree = useMemo(() => getPreNodeVariablesById(nodeId), [getPreNodeVariablesById, nodeId])\n\n  var onChange = function onChange(data) {\n    handleChange(data);\n  };\n  var handleClear = function handleClear() {\n    setPropsData({\n      value: '',\n      label: ''\n    });\n  };\n\n  // 设置数据（_disp_便于节点可以直接展示内容，因为保存进去的只是id）\n  var setPropsData = function setPropsData(_ref) {\n    var value = _ref.value,\n      label = _ref.label;\n    // 属性拦截处理\n    var isHandleByProperty = (onPropertyChange === null || onPropertyChange === void 0 ? void 0 : onPropertyChange(field, propName, {\n      value: value,\n      label: label\n    }, editor, [])) || false;\n    if (isHandleByProperty) return;\n    dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.createUpdateAction)([[nodeId, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, propName, value), \"_disp_\", _objectSpread(_objectSpread({}, disp), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, propName, label)))]]));\n  };\n  var treeData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return filterTree(nodeVariablesTree, true);\n  }, [nodeVariablesTree]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: name,\n    tips: tips,\n    required: required,\n    title: title\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_VarSelectWrap__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n    defaultExpandAll: false,\n    className: className,\n    data: treeData,\n    customSelectOptions: Custom,\n    setPropsData: setPropsData,\n    onClear: handleClear,\n    value: value,\n    readonly: readonly\n  }));\n});\nVarSelectEditor.displayName = 'VarSelectEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_12__.ErrorBoundaryWrap)(VarSelectEditor, 'VarSelectEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///72412\n");

/***/ }),

/***/ 25520:
/*!***********************************************!*\
  !*** ./src/editors/WhiteLsitEditor/index.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants/actionname */ 20572);\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-11-15 14:40:09\n * @LastEditTime: 2024-01-03 14:48:04\n * @Last Modified by: jianhang_he\n */\n/**\n * 属性编辑器-触发时间\n */\n\n\n\n\nvar defaultValue = {\n  date: [],\n  time: ''\n};\nvar WhiteLsitEditor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_context__WEBPACK_IMPORTED_MODULE_3__.DesignerContext),\n    isReadonly = _useContext.isReadonly,\n    invokeAction = _useContext.invokeAction;\n  var handleChange = props.handleChange,\n    _props$value = props.value,\n    value = _props$value === void 0 ? defaultValue : _props$value,\n    className = props.className,\n    editor = props.editor,\n    locked = props.locked,\n    Name = props.Name,\n    tips = props.Tips,\n    field = props.field,\n    id = props.id,\n    propName = props.propName;\n  var nameHidden = editor.NameHidden,\n    required = editor.Required,\n    title = editor.Title,\n    subTitle = editor.SubTitle;\n  var prefixClass = \"\".concat(className, \"-whitelist\");\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    ipList = _useState2[0],\n    setIpList = _useState2[1];\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    invokeAction(_constants_actionname__WEBPACK_IMPORTED_MODULE_4__.GET_NOCODE_IP_LIST);\n    var listener = function listener(data) {\n      setIpList(data);\n    };\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_4__.SET_NOCODE_IP_LIST, listener);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_4__.SET_NOCODE_IP_LIST, listener);\n    };\n  }, []);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.NameTipWrapper, {\n    nameHidden: nameHidden,\n    className: className,\n    name: Name,\n    tips: tips,\n    required: required,\n    title: title,\n    subTitle: subTitle\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(\"div\", {\n    className: \"\".concat(prefixClass)\n  }, ipList));\n});\nWhiteLsitEditor.displayName = 'WhiteLsitEditor';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.ErrorBoundaryWrap)(WhiteLsitEditor, 'WhiteLsitEditor'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjU1MjAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBR0E7QUFFQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvZWRpdG9ycy9XaGl0ZUxzaXRFZGl0b3IvaW5kZXgudHN4P2EzMzMiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0xMS0xNSAxNDo0MDowOVxuICogQExhc3RFZGl0VGltZTogMjAyNC0wMS0wMyAxNDo0ODowNFxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbi8qKlxuICog5bGe5oCn57yW6L6R5ZmoLeinpuWPkeaXtumXtFxuICovXG5pbXBvcnQgUmVhY3QsIHsgRkMsIHVzZUNhbGxiYWNrLCB1c2VDb250ZXh0LCB1c2VFZmZlY3QsIHVzZVJlZiwgdXNlU3RhdGUsIHVzZU1lbW8sIG1lbW8gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IE5hbWVUaXBXcmFwcGVyLCBQcm9wZXJ0eUVkaXRvclByb3BzLCBldmVudEJ1cywgY3JlYXRlVXBkYXRlQWN0aW9uLCBFcnJvckJvdW5kYXJ5V3JhcCB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCwgRmxvd1ZpZXdDb250ZXh0IH0gZnJvbSAnLi4vLi4vY29udGV4dCdcbmltcG9ydCB7IEdFVF9OT0NPREVfSVBfTElTVCwgU0VUX05PQ09ERV9JUF9MSVNUIH0gZnJvbSAnLi4vLi4vY29uc3RhbnRzL2FjdGlvbm5hbWUnXG5cbmNvbnN0IGRlZmF1bHRWYWx1ZSA9IHsgZGF0ZTogW10sIHRpbWU6ICcnIH1cblxuY29uc3QgV2hpdGVMc2l0RWRpdG9yOiBGQzxQcm9wZXJ0eUVkaXRvclByb3BzPiA9IG1lbW8oKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgaXNSZWFkb25seSwgaW52b2tlQWN0aW9uIH0gPSB1c2VDb250ZXh0KERlc2lnbmVyQ29udGV4dClcblxuICBjb25zdCB7IGhhbmRsZUNoYW5nZSwgdmFsdWUgPSBkZWZhdWx0VmFsdWUsIGNsYXNzTmFtZSwgZWRpdG9yLCBsb2NrZWQsIE5hbWUsIFRpcHM6IHRpcHMsIGZpZWxkLCBpZCwgcHJvcE5hbWUgfSA9IHByb3BzXG4gIGNvbnN0IHsgTmFtZUhpZGRlbjogbmFtZUhpZGRlbiwgUmVxdWlyZWQ6IHJlcXVpcmVkLCBUaXRsZTogdGl0bGUsIFN1YlRpdGxlOiBzdWJUaXRsZSB9ID0gZWRpdG9yXG5cbiAgY29uc3QgcHJlZml4Q2xhc3MgPSBgJHtjbGFzc05hbWV9LXdoaXRlbGlzdGBcblxuICBjb25zdCBbaXBMaXN0LCBzZXRJcExpc3RdID0gdXNlU3RhdGUobnVsbClcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGludm9rZUFjdGlvbihHRVRfTk9DT0RFX0lQX0xJU1QpXG5cbiAgICBjb25zdCBsaXN0ZW5lciA9IChkYXRhKSA9PiB7XG4gICAgICBzZXRJcExpc3QoZGF0YSlcbiAgICB9XG4gICAgZXZlbnRCdXMub24oU0VUX05PQ09ERV9JUF9MSVNULCBsaXN0ZW5lcilcbiAgICByZXR1cm4gKCkgPT4ge1xuICAgICAgZXZlbnRCdXMub2ZmKFNFVF9OT0NPREVfSVBfTElTVCwgbGlzdGVuZXIpXG4gICAgfVxuICB9LCBbXSlcblxuICByZXR1cm4gKFxuICAgIDw+XG4gICAgICA8TmFtZVRpcFdyYXBwZXIgbmFtZUhpZGRlbj17bmFtZUhpZGRlbn0gY2xhc3NOYW1lPXtjbGFzc05hbWV9IG5hbWU9e05hbWV9IHRpcHM9e3RpcHN9IHJlcXVpcmVkPXtyZXF1aXJlZH0gdGl0bGU9e3RpdGxlfSBzdWJUaXRsZT17c3ViVGl0bGV9IC8+XG4gICAgICA8ZGl2IGNsYXNzTmFtZT17YCR7cHJlZml4Q2xhc3N9YH0+e2lwTGlzdH08L2Rpdj5cbiAgICA8Lz5cbiAgKVxufSlcblxuV2hpdGVMc2l0RWRpdG9yLmRpc3BsYXlOYW1lID0gJ1doaXRlTHNpdEVkaXRvcidcblxuZXhwb3J0IGRlZmF1bHQgRXJyb3JCb3VuZGFyeVdyYXAoV2hpdGVMc2l0RWRpdG9yLCAnV2hpdGVMc2l0RWRpdG9yJylcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///25520\n");

/***/ }),

/***/ 28056:
/*!******************************************************!*\
  !*** ./src/editors/common/ChildPropertyViewItem.tsx ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _views_right_panel_PropertyView__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../views/right-panel/PropertyView */ 79012);\n/* harmony import */ var _views_right_panel_DisplayViewItem__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../views/right-panel/DisplayViewItem */ 48752);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_13__);\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\nvar actions = {\n  assignment: {\n    value: '$assignment',\n    hideproperty: ['customVarName', 'customVarType', 'decimalDataType', 'maxLength', 'scale']\n  },\n  customVarType: {\n    value: 'number',\n    hideproperty: ['decimalDataType', 'maxLength', 'scale']\n  }\n};\nvar isHideProperty = function isHideProperty(field, id) {\n  var hidePropsList = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(actions);\n  return hidePropsList.some(function (name) {\n    var _actions$name;\n    if (field[name] !== ((_actions$name = actions[name]) === null || _actions$name === void 0 ? void 0 : _actions$name.value)) {\n      var _actions$name2;\n      if ((_actions$name2 = actions[name]) !== null && _actions$name2 !== void 0 && (_actions$name2 = _actions$name2.hideproperty) !== null && _actions$name2 !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(_actions$name2).call(_actions$name2, id)) {\n        return true;\n      }\n    }\n    return false;\n  });\n};\n\n/**\n * 子属性项\n * @param param0\n * @returns\n */\nvar ChildPropertyViewItem = function ChildPropertyViewItem(_ref) {\n  var _context;\n  var prefixClass = _ref.prefixClass,\n    className = _ref.className,\n    data = _ref.data,\n    parentField = _ref.parentField,\n    displayLabel = _ref.displayLabel,\n    isReadonly = _ref.isReadonly,\n    readonly = _ref.readonly,\n    propertyData = _ref.propertyData,\n    nodeVariablesTree = _ref.nodeVariablesTree,\n    error = _ref.error,\n    handleChange = _ref.handleChange;\n  var config = propertyData.Config,\n    id = propertyData.Number;\n  var newItem = _objectSpread({}, data);\n  delete newItem._Type_;\n  var childField = (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(newItem, {\n    id: parentField.id,\n    _disp_: parentField._disp_,\n    _Type_: parentField._Type_\n  });\n  var hide = isHideProperty(childField, id);\n  if (hide) return null;\n\n  // 只读\n  if (isReadonly) {\n    var _propertyData$Config;\n    // 排除的属性或者是没有值的时候统一处理\n    var editor = (propertyData === null || propertyData === void 0 || (_propertyData$Config = propertyData.Config) === null || _propertyData$Config === void 0 ? void 0 : _propertyData$Config.Editor) || {};\n    var newPropertyData = _objectSpread(_objectSpread({}, propertyData), {}, {\n      Editor: editor,\n      Id: propertyData.Number\n    });\n    // 排除的属性或者是没有值的时候统一处理\n    if (!_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(_views_right_panel_PropertyView__WEBPACK_IMPORTED_MODULE_11__.excludeDisalyViewPropertyTypeList).call(_views_right_panel_PropertyView__WEBPACK_IMPORTED_MODULE_11__.excludeDisalyViewPropertyTypeList, editor === null || editor === void 0 ? void 0 : editor.Type) || typeof childField[newPropertyData.Id] === 'undefined') {\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_views_right_panel_DisplayViewItem__WEBPACK_IMPORTED_MODULE_12__[\"default\"], {\n        className: \"kdesigner-right-view\",\n        displayData: childField,\n        propertyData: newPropertyData\n      });\n    }\n  }\n  var propertyWrapperStyle = {};\n  if (config.Editor.Width !== undefined) {\n    propertyWrapperStyle.width = config.Editor.Width;\n    propertyWrapperStyle.flexGrow = 0;\n    propertyWrapperStyle.flexShrink = 0;\n  }\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(\"div\", {\n    style: propertyWrapperStyle,\n    className: classnames__WEBPACK_IMPORTED_MODULE_13___default()(className, \"\".concat(prefixClass, \"-parameter-item-property\")),\n    key: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(_context = \"\".concat(newItem.id, \"-\")).call(_context, id)\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.PropertyViewItem, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({}, config, propertyData, {\n    Id: id,\n    field: _objectSpread({}, childField),\n    value: childField[id],\n    className: \"kdesigner-right-view\",\n    enableMutiSelect: false,\n    variablesTree: nodeVariablesTree,\n    readonly: readonly,\n    onPropertyChange: handleChange,\n    renderCustomError: function renderCustomError(errorDom, error) {\n      return true;\n    }\n  })), typeof error === 'string' && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default().createElement(\"span\", {\n    className: \"\".concat(prefixClass, \"-error-msg\")\n  }, error));\n};\nChildPropertyViewItem.displayName = 'ChildPropertyViewItem';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.ErrorBoundaryWrap)(ChildPropertyViewItem, 'ChildPropertyViewItem'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///28056\n");

/***/ }),

/***/ 97276:
/*!************************************************!*\
  !*** ./src/editors/common/CombineSelector.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getSelectNodeFromTree: function() { return /* binding */ getSelectNodeFromTree; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ 72400);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _common_CustomSelectContent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../common/CustomSelectContent */ 97344);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils */ 41232);\n/* harmony import */ var _utils_treeUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/treeUtils */ 31340);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-23 15:42:02\n * @LastEditTime: 2024-05-17 15:13:34\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\nvar FORMULA_ID = 'formula';\nvar dfs = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__.treeUtils.dfs;\n\n// 获取选中的节点\nvar getSelectNodeFromTree = function getSelectNodeFromTree(key, tree) {\n  var data = tree;\n  if (!Array.isArray(tree)) {\n    data = [tree];\n  }\n  for (var i = 0; i < data.length; i++) {\n    var item = data[i];\n    if (!item) return null;\n    if (item.key === key) {\n      return item;\n    } else {\n      var node = getSelectNodeFromTree(key, item.children);\n      if (node) return node;\n    }\n  }\n  return null;\n};\n\n/**\n * 转换变量成表达式\n * @param tree\n * @param value\n * @returns\n */\nvar transformVarToExpression = function transformVarToExpression(tree, value) {\n  if (!tree || !value) {\n    return '';\n  }\n  var parentNodeTitle = '';\n  var nodeTitle = '';\n  for (var i = 0, len = tree.length; i < len; i++) {\n    var _tree$i = tree[i],\n      title = _tree$i.title,\n      children = _tree$i.children,\n      key = _tree$i.key;\n\n    // 找到即返回\n    if (key === value) {\n      nodeTitle = title;\n      break;\n    } else {\n      if (children !== null && children !== void 0 && children.length) {\n        parentNodeTitle = title;\n        for (var j = 0, childLen = children.length; j < childLen; j++) {\n          var childItem = children[j];\n          if (childItem.key === value) {\n            nodeTitle = childItem.title;\n            break;\n          }\n        }\n      }\n    }\n  }\n\n  // 都没有的时候是匹配不上\n  if (!parentNodeTitle && !nodeTitle) {\n    return '';\n  }\n  return (0,_utils__WEBPACK_IMPORTED_MODULE_18__.createFieldRegText)(value, {\n    parentId: parentNodeTitle,\n    title: nodeTitle\n  });\n  // return ` {{Field id=\"${value}\" text=\"${parentNodeTitle || ''}|||${nodeTitle}\"}} `\n};\nvar REFBILL_TYPE_LIST = ['refbill', 'user', 'org'];\nvar CombineSelector = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (_ref) {\n  var placeholder = _ref.placeholder,\n    fieldKey = _ref.fieldKey,\n    value = _ref.value,\n    displayLabel = _ref.displayLabel,\n    readonly = _ref.readonly,\n    propsFieldType = _ref.fieldType,\n    inputProps = _ref.inputProps,\n    className = _ref.className,\n    _ref$variablesTree = _ref.variablesTree,\n    variablesTree = _ref$variablesTree === void 0 ? [] : _ref$variablesTree,\n    actionType = _ref.actionType,\n    _ref$fieldTree = _ref.fieldTree,\n    fieldTree = _ref$fieldTree === void 0 ? [] : _ref$fieldTree,\n    _ref$fieldProps = _ref.fieldProps,\n    fieldProps = _ref$fieldProps === void 0 ? {} : _ref$fieldProps,\n    _ref$varSelectProps = _ref.varSelectProps,\n    varSelectProps = _ref$varSelectProps === void 0 ? {} : _ref$varSelectProps,\n    expressionTitle = _ref.expressionTitle,\n    hideFunc = _ref.hideFunc,\n    onInputBlur = _ref.onInputBlur,\n    onInputFocus = _ref.onInputFocus,\n    onInputKeyDown = _ref.onInputKeyDown,\n    onInputClick = _ref.onInputClick,\n    onVarSelectClear = _ref.onVarSelectClear,\n    onVarSelectChange = _ref.onVarSelectChange,\n    onExpressionConfirm = _ref.onExpressionConfirm,\n    onInputClear = _ref.onInputClear,\n    onInputChange = _ref.onInputChange;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context__WEBPACK_IMPORTED_MODULE_15__.DesignerContext),\n    baseUrl = _useContext.baseUrl,\n    expData = _useContext.expressionData,\n    getBaseHooks = _useContext.getBaseHooks,\n    batchInvoke = _useContext.batchInvoke,\n    getControlText = _useContext.getControlText,\n    prefixCls = _useContext.prefixCls;\n  var useKDRefBill = getBaseHooks('useKDRefBill');\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState, 2),\n    modalVisible = _useState2[0],\n    setModalVisible = _useState2[1]; // 弹窗显示隐藏\n\n  var isExpression = value === null || value === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default()(value).call(value, '@@'); // 是否表达式\n  var isVar = _utils__WEBPACK_IMPORTED_MODULE_18__.varRegList.some(function (item) {\n    return item.test(value);\n  }) && !isExpression; // 是否变量\n\n  var type = (0,_utils__WEBPACK_IMPORTED_MODULE_18__.isRefBillType)(propsFieldType) ? 'refbill' : propsFieldType;\n  var fieldType = isVar ? 'selectInput' : isExpression ? 'formula' : type;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n      if (isVar) {\n        // 如果是普通变量，需要转换成表达式的形式\n        var expressValue = transformVarToExpression(variablesTree, value);\n        return ['', expressValue, 1];\n      } else {\n        if (Array.isArray(value)) {\n          return value;\n        }\n        var str = value || '';\n        var arr = str.split('@@');\n        return arr.length > 1 ? arr : ['', str, 1];\n      }\n    }, [value, variablesTree, isVar]),\n    _useMemo2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useMemo, 3),\n    expressionValue = _useMemo2[1],\n    lang = _useMemo2[2];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(isVar),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState3, 2),\n    varSelectActive = _useState4[0],\n    setVarSelectActive = _useState4[1];\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(value),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState5, 2),\n    innerValue = _useState6[0],\n    setInnerValue = _useState6[1];\n  var _useState7 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(false),\n    _useState8 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState7, 2),\n    isFocused = _useState8[0],\n    setIsFocused = _useState8[1];\n  var timer = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useRef)(null);\n  var _useState9 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(null),\n    _useState10 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(_useState9, 2),\n    queryParams = _useState10[0],\n    setQueryParams = _useState10[1];\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    setVarSelectActive(isVar);\n  }, [isVar]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if (!isFocused && value !== innerValue) {\n      setInnerValue(value);\n    }\n  }, [value, isFocused]);\n  var delayUpdateValue = function delayUpdateValue(val) {\n    if (val === value) return;\n    timer.current && clearTimeout(timer.current);\n    timer.current = setTimeout(function () {\n      timer.current = null;\n      onInputChange(val);\n    }, 300);\n  };\n  var onChange = function onChange(e) {\n    var value = e !== null && e !== void 0 && e.target ? e.target.value : e;\n    setInnerValue(value);\n    delayUpdateValue(value);\n  };\n  var onKeyDown = function onKeyDown(e) {\n    if (e.nativeEvent.keyCode === 13) {\n      onBlur(e);\n    }\n  };\n  var onFocus = function onFocus() {\n    setIsFocused(true);\n  };\n  var onBlur = function onBlur(e) {\n    onInputChange(e);\n    setTimeout(function () {\n      setIsFocused(false);\n    }, 300);\n  };\n  var addControlAction = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (methodName, listener) {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_17__.eventBus.on(methodName, listener);\n\n    // 需要返回销毁函数，要不然监听一直都在\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_17__.eventBus.off(methodName, listener);\n    };\n  }, []);\n  var onBatchInvoke = function onBatchInvoke(actionName, args) {\n    var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n    batchInvoke(actionName, fieldKey, args, params);\n  };\n  var entityId = fieldProps.billEntityId;\n  var batchInvokeQuery = function batchInvokeQuery(entityId, args) {\n    if (entityId) {\n      var _args$filter = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(args),\n        filter = _args$filter === void 0 ? '' : _args$filter,\n        _args$search = args.search,\n        search = _args$search === void 0 ? '' : _args$search,\n        _args$order_by = args.order_by,\n        order_by = _args$order_by === void 0 ? '' : _args$order_by,\n        _args$select = args.select,\n        select = _args$select === void 0 ? '' : _args$select,\n        _args$page_size = args.page_size,\n        page_size = _args$page_size === void 0 ? 10 : _args$page_size,\n        _args$page_no = args.page_no,\n        page_no = _args$page_no === void 0 ? 1 : _args$page_no,\n        _args$ids = args.ids,\n        ids = _args$ids === void 0 ? [] : _args$ids;\n      var _queryParams = {\n        filter: filter,\n        // 数据过滤\n        search: search,\n        // 搜索内容\n        order_by: order_by,\n        // 排序\n        page_size: page_size,\n        // 每页行数\n        page_no: page_no,\n        ids: ids // 选中的ids\n      };\n      if (select) {\n        _queryParams.select = select;\n      }\n      setQueryParams(_queryParams);\n      batchInvoke('query', 'nocodewfdesigner', [entityId, _queryParams]);\n    }\n  };\n  var batchInvokeListConfig = function batchInvokeListConfig() {\n    entityId && batchInvoke('listconfig', 'nocodewfdesigner', [entityId]);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    if ((0,_utils__WEBPACK_IMPORTED_MODULE_18__.isRefBillType)(fieldType)) {\n      batchInvokeQuery(entityId, {\n        page_size: 10,\n        page_no: 1,\n        search: '',\n        // \"select\": \"name,number\",\n        select: fieldProps.displayProp,\n        ids: fieldProps.isMulti ? Array.isArray(value) ? value : value ? value === null || value === void 0 ? void 0 : value.split(',') : [] : value\n      });\n    }\n  }, [entityId, fieldType, fieldProps]);\n  var refBillValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if ((0,_utils__WEBPACK_IMPORTED_MODULE_18__.isRefBillType)(fieldType)) {\n      if (fieldProps.isMulti) {\n        if (value) {\n          return Array.isArray(value) ? value : (value === null || value === void 0 ? void 0 : value.split(',')) || [];\n        }\n        return [];\n      }\n      return value || '';\n      // return fieldProps.isMulti ? (value ? value.split(',') : []) : (value || '')\n    }\n    return '';\n  }, [fieldProps.isMulti, value, fieldType]);\n  var refBillParams = useKDRefBill({\n    controlMeta: _objectSpread({\n      allowClear: true,\n      entityId: entityId,\n      queryParams: queryParams\n    }, fieldProps),\n    onChange: function onChange(v) {\n      var value;\n      if (typeof v === 'string') {\n        value = v;\n      } else if (Array.isArray(v)) {\n        value = v.join(',');\n      }\n      onInputChange(value);\n    },\n    baseUrl: baseUrl,\n    // getBaseControl,\n    batchInvoke: onBatchInvoke,\n    getControlText: getControlText,\n    addControlAction: addControlAction,\n    // onDownLoad,\n    batchInvokeListConfig: batchInvokeListConfig,\n    batchInvokeQuery: batchInvokeQuery,\n    value: refBillValue\n  }, true);\n  var refBillProps = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default()(REFBILL_TYPE_LIST).call(REFBILL_TYPE_LIST, fieldType) ? refBillParams : {};\n\n  // 函数数据列表\n  var expressionData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    var _expData$expression = expData === null || expData === void 0 ? void 0 : expData.expression,\n      functionTypes = _expData$expression.functionTypes;\n    return functionTypes;\n  }, [expData === null || expData === void 0 ? void 0 : expData.expression]);\n\n  // 计算符号\n  var operations = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    var _expData$expression2 = expData === null || expData === void 0 ? void 0 : expData.expression,\n      operations = _expData$expression2.functionOperations;\n    return _babel_runtime_corejs3_core_js_stable_object_values__WEBPACK_IMPORTED_MODULE_9___default()(operations);\n  }, [expData === null || expData === void 0 ? void 0 : expData.expression]);\n  var inputExpressionProps = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if (!isExpression) {\n      return {\n        expressionData: [],\n        fieldData: []\n      };\n    }\n    return {\n      readOnly: true,\n      autofocus: false,\n      lang: lang,\n      expressionData: expressionData,\n      fieldData: fieldTree,\n      value: expressionValue\n    };\n  }, [isExpression, lang, expressionData, fieldTree, expressionValue]);\n  var handleVarSelectChange = function handleVarSelectChange() {\n    for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n      params[_key] = arguments[_key];\n    }\n    onVarSelectChange === null || onVarSelectChange === void 0 || onVarSelectChange.apply(void 0, params);\n  };\n  var handleVarSelectActive = function handleVarSelectActive(active) {\n    setVarSelectActive(active);\n  };\n  var handleCustomClick = function handleCustomClick(data) {\n    var key = data.key;\n    if (key === FORMULA_ID) {\n      setModalVisible(true);\n    }\n  };\n  var dropdownRender = function dropdownRender(dom) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(_common_CustomSelectContent__WEBPACK_IMPORTED_MODULE_16__[\"default\"]\n    // prefixCls={rootClass}\n    , {\n      options: [{\n        Id: FORMULA_ID,\n        Title: '运算公式',\n        icon: 'yunsuangongshi'\n      }],\n      onClick: handleCustomClick\n    }), dom);\n  };\n  var handleVarSelectClear = function handleVarSelectClear() {\n    onVarSelectClear === null || onVarSelectClear === void 0 || onVarSelectClear();\n  };\n  var handleInputClick = function handleInputClick() {\n    onInputClick === null || onInputClick === void 0 || onInputClick();\n    setModalVisible(true);\n  };\n  var _varSelectProps = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if (isExpression) return null;\n    var valueKeys = Array.isArray(value) ? value : value ? [value] : [];\n    var selectedKeys = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(valueKeys).call(valueKeys, function (key) {\n      return !!dfs(variablesTree, function (node) {\n        return node.key === key;\n      });\n    });\n    var expandKeys = (0,_utils_treeUtils__WEBPACK_IMPORTED_MODULE_19__.getExpandedKeys)(variablesTree, selectedKeys);\n    return _objectSpread({\n      type: 'treeSelect',\n      defaultExpandAll: false,\n      expandKeys: expandKeys,\n      showSearch: true,\n      data: variablesTree,\n      varSelectActive: varSelectActive,\n      selectedKeys: selectedKeys,\n      isVar: isVar,\n      readonly: readonly,\n      onSelect: handleVarSelectChange,\n      onClear: handleVarSelectClear,\n      onVarSelectActive: handleVarSelectActive,\n      dropdownRender: dropdownRender\n    }, varSelectProps);\n  }, [variablesTree, value, varSelectActive, isExpression, readonly, isVar, varSelectProps, handleVarSelectChange, handleVarSelectActive, dropdownRender, handleVarSelectClear]);\n  var handleExpressionConfirm = function handleExpressionConfirm() {\n    setModalVisible(false);\n    for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n      params[_key2] = arguments[_key2];\n    }\n    onExpressionConfirm === null || onExpressionConfirm === void 0 || onExpressionConfirm.apply(void 0, params);\n  };\n  var inputValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if (fieldType === 'date' && innerValue && !readonly) {\n      // 日期字段类型的需要传日期类型的值\n      return new Date(innerValue);\n    }\n    if (fieldType === 'combo' && fieldProps !== null && fieldProps !== void 0 && fieldProps.isMulti && innerValue && !isExpression) {\n      if (value) {\n        return Array.isArray(innerValue) ? innerValue : innerValue === null || innerValue === void 0 ? void 0 : innerValue.split(',');\n      } else {\n        return Array.isArray(value) ? value : value === null || value === void 0 ? void 0 : value.split(',');\n      }\n    }\n    // if (fieldType === 'selectInput') {\n    //   const selectNode = getSelectNodeFromTree(value, variablesTree)\n    //   if (!selectNode) return ''\n\n    //   if (typeof selectNode.title === 'object') {\n    //     return selectNode.label\n    //   } else {\n    //     return selectNode.title\n    //   }\n    // }\n    return innerValue;\n  }, [innerValue, fieldType, variablesTree, readonly]);\n\n  // 挪位置是避免hook渲染顺序问题\n  var autoSizeProps = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    if (fieldType === 'textarea') {\n      // PRJ-00442269\t【无代码】第三方API节点URL输入框和请求体JSON输入框根据内容自适应撑高，最高480px\n      return {\n        autoSize: true,\n        style: {\n          maxHeight: '480px'\n        },\n        className: \"\".concat(prefixCls, \"-combineselector-textarea\")\n      };\n    }\n    return {};\n  }, [fieldType]);\n  if (readonly) {\n    if (isVar) {\n      var selectNode = getSelectNodeFromTree(inputValue, variablesTree);\n      var _ref2 = selectNode || {},\n        title = _ref2.title,\n        titlePrefix = _ref2.titlePrefix;\n      if (title && titlePrefix) {\n        var _context;\n        return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context = \"\".concat(titlePrefix)).call(_context, title);\n      }\n      return '';\n    }\n    if (fieldType === 'combo') {\n      var options = inputProps.options;\n      if (Array.isArray(options)) {\n        var _options$find;\n        if (fieldProps.isMulti) {\n          var _options$filter;\n          var v = Array.isArray(inputValue) ? inputValue : inputValue === null || inputValue === void 0 ? void 0 : inputValue.split(',');\n          return (v === null || v === void 0 ? void 0 : v.length) > 0 ? ((_options$filter = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(options).call(options, function (item) {\n            return v === null || v === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default()(v).call(v, item.value);\n          })) === null || _options$filter === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(_options$filter).call(_options$filter, function (item) {\n            return item.label;\n          }).join(',')) || '-' : '-';\n        }\n        return ((_options$find = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_12___default()(options).call(options, function (item) {\n          return item.value === inputValue;\n        })) === null || _options$find === void 0 ? void 0 : _options$find.label) || '-';\n      }\n    }\n    if (fieldType !== 'formula') {\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"span\", {\n        className: \"\".concat(prefixCls, \"-combineselector-display\")\n      }, typeof displayLabel !== 'undefined' ? displayLabel : value || '-');\n    }\n  }\n  var modeType = fieldType === 'combo' && (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.isMulti) === true ? {\n    mode: 'multiple'\n  } : {};\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__.InputCombo, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({\n    isDefaultInput: true,\n    showVarSelect: true,\n    allowClear: true,\n    placeholder: placeholder,\n    fieldType: fieldType,\n    value: inputValue,\n    varSelectProps: _varSelectProps,\n    onClick: handleInputClick,\n    onInputKeyDown: onKeyDown,\n    onInputFocus: onFocus,\n    onInputBlur: onBlur,\n    onChange: onChange,\n    onClear: onInputClear,\n    readonly: readonly,\n    className: className,\n    formulaClassName: fieldType === FORMULA_ID ? 'formula' : ''\n  }, fieldProps, inputProps, inputExpressionProps, refBillProps, modeType, autoSizeProps)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_14__.Condition, {\n    value: isExpression ? expressionValue : '',\n    language: lang\n    // hideFunc={hideFunc}\n    ,\n    fieldData: fieldTree,\n    defaultExpandAll: false,\n    expressionData: expressionData,\n    operations: operations,\n    actionType: actionType,\n    modalTitle: \"\\u53D8\\u91CF\\u8D4B\\u503C\",\n    editorTitle: expressionTitle,\n    hideFunc: hideFunc,\n    visible: modalVisible,\n    onClose: function onClose() {\n      return setModalVisible(false);\n    },\n    onConfirm: handleExpressionConfirm\n  }));\n});\nCombineSelector.displayName = 'CombineSelector';\n/* harmony default export */ __webpack_exports__[\"default\"] = (CombineSelector);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///97276\n");

/***/ }),

/***/ 97344:
/*!****************************************************!*\
  !*** ./src/editors/common/CustomSelectContent.tsx ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../context */ 90115);\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-20 16:38:23\n * @LastEditTime: 2023-05-23 19:02:39\n * @Last Modified by: jianhang_he\n */\n\n\n\nvar CustomSelectContent = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.memo)(function (_ref) {\n  var options = _ref.options,\n    _onClick = _ref.onClick;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_context__WEBPACK_IMPORTED_MODULE_9__.DesignerContext),\n    prefixCls = _useContext.prefixCls;\n  var customPrefixCls = \"\".concat(prefixCls, \"-right-view-customcontent\");\n  var customSelectOptions = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    return (options === null || options === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default()(options).call(options, function (item) {\n      return _objectSpread(_objectSpread({\n        icon: 'duixiangxuanze'\n      }, item), {}, {\n        title: item.Title,\n        key: item.Id,\n        type: item.Type\n      });\n    })) || [];\n  }, [options]);\n  return (customSelectOptions === null || customSelectOptions === void 0 ? void 0 : customSelectOptions.length) > 0 && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(\"div\", {\n    className: customPrefixCls\n  }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_6___default()(customSelectOptions).call(customSelectOptions, function (item, index) {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(\"div\", {\n      key: item.key || index,\n      className: \"\".concat(customPrefixCls, \"-item\"),\n      onClick: function onClick() {\n        _onClick === null || _onClick === void 0 || _onClick(item);\n      }\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_8__.Icon, {\n      className: \"\".concat(customPrefixCls, \"-item-icon\"),\n      prefix: \"designericon\",\n      type: item.icon || 'duixiangxuanze'\n    }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(\"span\", null, item.title));\n  })));\n});\nCustomSelectContent.displayName = 'CustomSelectContent';\n/* harmony default export */ __webpack_exports__[\"default\"] = (CustomSelectContent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTczNDQuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBY0E7QUFHQTtBQURBO0FBRUE7QUFBQTtBQUVBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUVBO0FBRUE7QUFBQTtBQUdBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFLQTtBQUtBO0FBRUE7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2VkaXRvcnMvY29tbW9uL0N1c3RvbVNlbGVjdENvbnRlbnQudHN4PzQ1NjMiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0wMy0yMCAxNjozODoyM1xuICogQExhc3RFZGl0VGltZTogMjAyMy0wNS0yMyAxOTowMjozOVxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCwgeyBtZW1vLCBGQywgdXNlTWVtbywgdXNlQ29udGV4dCB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgSWNvbiB9IGZyb20gJ0BrZGNsb3VkanMva2Rlc2lnbidcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uLy4uL2NvbnRleHQnXG5cbnR5cGUgT3B0aW9uSXRlbUFwaSA9IHtcbiAga2V5Pzogc3RyaW5nLFxuICBpY29uPzogc3RyaW5nLFxuICB0aXRsZT86IHN0cmluZ1xufVxuXG5pbnRlcmZhY2UgQ3VzdG9tQ29udGVudFByb3BzQXBpIHtcbiAgcHJlZml4Q2xzPzogc3RyaW5nLFxuICBvcHRpb25zOiBPcHRpb25JdGVtQXBpW10sXG4gIG9uQ2xpY2s/OiAoZGF0YTogT3B0aW9uSXRlbUFwaSkgPT4gdm9pZFxufVxuXG5jb25zdCBDdXN0b21TZWxlY3RDb250ZW50OiBGQzxDdXN0b21Db250ZW50UHJvcHNBcGk+ID0gbWVtbygoe1xuICBvcHRpb25zLFxuICBvbkNsaWNrXG59KSA9PiB7XG4gIGNvbnN0IHsgcHJlZml4Q2xzIH0gPSB1c2VDb250ZXh0KERlc2lnbmVyQ29udGV4dClcblxuICBjb25zdCBjdXN0b21QcmVmaXhDbHMgPSBgJHtwcmVmaXhDbHN9LXJpZ2h0LXZpZXctY3VzdG9tY29udGVudGBcblxuICBjb25zdCBjdXN0b21TZWxlY3RPcHRpb25zID0gdXNlTWVtbygoKSA9PiB7XG4gICAgcmV0dXJuIG9wdGlvbnM/Lm1hcChpdGVtID0+IHtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIGljb246ICdkdWl4aWFuZ3h1YW56ZScsXG4gICAgICAgIC4uLml0ZW0sXG4gICAgICAgIHRpdGxlOiBpdGVtLlRpdGxlLFxuICAgICAgICBrZXk6IGl0ZW0uSWQsXG4gICAgICAgIHR5cGU6IGl0ZW0uVHlwZVxuICAgICAgfVxuICAgIH0pIHx8IFtdXG4gIH0sIFtvcHRpb25zXSlcblxuICByZXR1cm4gY3VzdG9tU2VsZWN0T3B0aW9ucz8ubGVuZ3RoID4gMCAmJiAoXG4gICAgPD5cbiAgICAgIDxkaXYgY2xhc3NOYW1lPXtjdXN0b21QcmVmaXhDbHN9PlxuICAgICAgICB7XG4gICAgICAgICAgY3VzdG9tU2VsZWN0T3B0aW9ucy5tYXAoKGl0ZW06IE9wdGlvbkl0ZW1BcGksIGluZGV4OiBudW1iZXIpID0+IHtcbiAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgICAgICBrZXk9e2l0ZW0ua2V5IHx8IGluZGV4fVxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17YCR7Y3VzdG9tUHJlZml4Q2xzfS1pdGVtYH1cbiAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBvbkNsaWNrPy4oaXRlbSlcbiAgICAgICAgICAgICAgICB9fVxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPEljb25cbiAgICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17YCR7Y3VzdG9tUHJlZml4Q2xzfS1pdGVtLWljb25gfVxuICAgICAgICAgICAgICAgICAgcHJlZml4PSdkZXNpZ25lcmljb24nXG4gICAgICAgICAgICAgICAgICB0eXBlPXtpdGVtLmljb24gfHwgJ2R1aXhpYW5neHVhbnplJ31cbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgIDxzcGFuPntpdGVtLnRpdGxlfTwvc3Bhbj5cbiAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICApXG4gICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgICAgPC9kaXY+XG4gICAgPC8+XG4gIClcbn0pXG5cbkN1c3RvbVNlbGVjdENvbnRlbnQuZGlzcGxheU5hbWUgPSAnQ3VzdG9tU2VsZWN0Q29udGVudCdcblxuZXhwb3J0IGRlZmF1bHQgQ3VzdG9tU2VsZWN0Q29udGVudFxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///97344\n");

/***/ }),

/***/ 9846:
/*!**********************************************!*\
  !*** ./src/editors/common/TreeNodeTitle.tsx ***!
  \**********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   transformTreeData: function() { return /* binding */ transformTreeData; }\n/* harmony export */ });\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../context */ 90115);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-05-06 15:46:13\n * @LastEditTime: 2023-05-15 11:15:13\n * @Last Modified by: jianhang_he\n */\n\n\nfunction transformTreeData(data, renderTitle) {\n  data.forEach(function (item) {\n    var key = item.key,\n      children = item.children,\n      title = item.title;\n    item.label = title;\n    item.title = typeof renderTitle === 'function' ? renderTitle({\n      title: title,\n      key: key\n    }) : title;\n    item.children = children && children.length > 0 && transformTreeData(children, renderTitle);\n  });\n  return data;\n}\nvar TreeNodeTitle = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.memo)(function (_ref) {\n  var title = _ref.title;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.DesignerContext),\n    prefixCls = _useContext.prefixCls;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    className: \"\".concat(prefixCls, \"-tree-title\"),\n    title: title\n  }, title);\n});\nTreeNodeTitle.displayName = 'TreeNodeTitle';\n/* harmony default export */ __webpack_exports__[\"default\"] = (TreeNodeTitle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTg0Ni5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFDQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUVBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9lZGl0b3JzL2NvbW1vbi9UcmVlTm9kZVRpdGxlLnRzeD9lMmJmIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDUtMDYgMTU6NDY6MTNcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMDUtMTUgMTE6MTU6MTNcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgUmVhY3QsIHsgbWVtbywgdXNlQ29udGV4dCB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgRGVzaWduZXJDb250ZXh0IH0gZnJvbSAnLi4vLi4vY29udGV4dCdcblxuZXhwb3J0IGZ1bmN0aW9uIHRyYW5zZm9ybVRyZWVEYXRhIChkYXRhLCByZW5kZXJUaXRsZSkge1xuICBkYXRhLmZvckVhY2goaXRlbSA9PiB7XG4gICAgY29uc3QgeyBrZXksIGNoaWxkcmVuLCB0aXRsZSB9ID0gaXRlbVxuICAgIGl0ZW0ubGFiZWwgPSB0aXRsZVxuICAgIGl0ZW0udGl0bGUgPSB0eXBlb2YgcmVuZGVyVGl0bGUgPT09ICdmdW5jdGlvbicgPyByZW5kZXJUaXRsZSh7IHRpdGxlLCBrZXkgfSkgOiB0aXRsZVxuICAgIGl0ZW0uY2hpbGRyZW4gPSBjaGlsZHJlbiAmJiBjaGlsZHJlbi5sZW5ndGggPiAwICYmIHRyYW5zZm9ybVRyZWVEYXRhKGNoaWxkcmVuLCByZW5kZXJUaXRsZSlcbiAgfSlcbiAgcmV0dXJuIGRhdGFcbn1cblxuY29uc3QgVHJlZU5vZGVUaXRsZSA9IG1lbW8oKHtcbiAgdGl0bGVcbn0pID0+IHtcbiAgY29uc3QgeyBwcmVmaXhDbHMgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuXG4gIHJldHVybiA8c3BhbiBjbGFzc05hbWU9e2Ake3ByZWZpeENsc30tdHJlZS10aXRsZWB9IHRpdGxlPXt0aXRsZX0+e3RpdGxlfTwvc3Bhbj5cbn0pXG5cblRyZWVOb2RlVGl0bGUuZGlzcGxheU5hbWUgPSAnVHJlZU5vZGVUaXRsZSdcblxuZXhwb3J0IGRlZmF1bHQgVHJlZU5vZGVUaXRsZVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///9846\n");

/***/ }),

/***/ 58036:
/*!******************************!*\
  !*** ./src/editors/index.ts ***!
  \******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _OrderByEditor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OrderByEditor */ 31899);\n/* harmony import */ var _ConditionEditor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ConditionEditor */ 96680);\n/* harmony import */ var _VarSelectEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VarSelectEditor */ 72412);\n/* harmony import */ var _FilterEditor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FilterEditor */ 88768);\n/* harmony import */ var _CalcSettingEditor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CalcSettingEditor */ 69260);\n/* harmony import */ var _NodeBillTypeEditor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NodeBillTypeEditor */ 73288);\n/* harmony import */ var _CombineSelectorEditor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CombineSelectorEditor */ 40540);\n/* harmony import */ var _NewSettingEditor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NewSettingEditor */ 13692);\n/* harmony import */ var _JudgeEditor__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./JudgeEditor */ 97844);\n/* harmony import */ var _UserSelectEditor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./UserSelectEditor */ 58372);\n/* harmony import */ var _RefBillTypeEditor__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./RefBillTypeEditor */ 42752);\n/* harmony import */ var _UserInputPermEditor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./UserInputPermEditor */ 64224);\n/* harmony import */ var _ApprovalDecisionEditor__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ApprovalDecisionEditor */ 5452);\n/* harmony import */ var _PickWfEditor__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./PickWfEditor */ 8212);\n/* harmony import */ var _TriggerTimeEditor__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./TriggerTimeEditor */ 66608);\n/* harmony import */ var _DatePickerPropertyEditor__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./DatePickerPropertyEditor */ 7712);\n/* harmony import */ var _ParameterSettingEditor__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ParameterSettingEditor */ 86364);\n/* harmony import */ var _TestApiEditor__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./TestApiEditor */ 95744);\n/* harmony import */ var _RequestBodyEditor__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./RequestBodyEditor */ 71156);\n/* harmony import */ var _WhiteLsitEditor__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./WhiteLsitEditor */ 25520);\n/* harmony import */ var _InputPropertyEditor__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./InputPropertyEditor */ 34988);\n/* harmony import */ var _MultiVarSelect__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./MultiVarSelect */ 93304);\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-27 11:25:45\n * @LastEditTime: 2024-05-07 13:39:09\n * @Last Modified by: jianhang_he\n */\n\n// import BillTypeFieldEditor from './BillTypeFieldEditor'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// import EditJsonEditor from './EditJsonEditor'\n/**\n * 属性编辑器\n * @returns\n */\nvar getPropertyEditors = function getPropertyEditors() {\n  var list = [];\n  var editorMapList = [[_OrderByEditor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], 'orderby'],\n  // 配置排序条件\n  [_ConditionEditor__WEBPACK_IMPORTED_MODULE_2__[\"default\"], 'expression'],\n  // 运算公式\n  [_RefBillTypeEditor__WEBPACK_IMPORTED_MODULE_11__[\"default\"], 'refbilltype'],\n  // 关联表达\n  [_VarSelectEditor__WEBPACK_IMPORTED_MODULE_3__[\"default\"], 'varselect'],\n  // 变量选择\n  [_MultiVarSelect__WEBPACK_IMPORTED_MODULE_22__[\"default\"], 'multivarselect'],\n  // 变量选择-多选\n  [_UserSelectEditor__WEBPACK_IMPORTED_MODULE_10__[\"default\"], 'userSelect'],\n  // 选择人员\n  [_FilterEditor__WEBPACK_IMPORTED_MODULE_4__[\"default\"], 'filter'],\n  // 筛选\n  [_JudgeEditor__WEBPACK_IMPORTED_MODULE_9__[\"default\"], 'judgefilter'],\n  // 筛选\n  [_CalcSettingEditor__WEBPACK_IMPORTED_MODULE_5__[\"default\"], 'calcSetting'], [_CombineSelectorEditor__WEBPACK_IMPORTED_MODULE_7__[\"default\"], 'combineselector'],\n  // [ConditionEditor, 'combineselector'],\n  [_NodeBillTypeEditor__WEBPACK_IMPORTED_MODULE_6__[\"default\"], 'nodebilltype'], [_NewSettingEditor__WEBPACK_IMPORTED_MODULE_8__[\"default\"], 'newSetting'], [_UserInputPermEditor__WEBPACK_IMPORTED_MODULE_12__[\"default\"], 'userInputPerm'], [_ApprovalDecisionEditor__WEBPACK_IMPORTED_MODULE_13__[\"default\"], 'decisionOptions'], [_PickWfEditor__WEBPACK_IMPORTED_MODULE_14__[\"default\"], 'pickWf'],\n  // 触发流程\n  [_TriggerTimeEditor__WEBPACK_IMPORTED_MODULE_15__[\"default\"], 'triggerTime'],\n  // 触发时间\n  [_DatePickerPropertyEditor__WEBPACK_IMPORTED_MODULE_16__[\"default\"], 'DatePicker'], [_TestApiEditor__WEBPACK_IMPORTED_MODULE_18__[\"default\"], 'testApi'],\n  // 测试API\n  [_ParameterSettingEditor__WEBPACK_IMPORTED_MODULE_17__[\"default\"], 'parameterSetting'],\n  // 参数配置编辑器\n  [_RequestBodyEditor__WEBPACK_IMPORTED_MODULE_19__[\"default\"], 'requestBody'],\n  // 请求体\n  [_WhiteLsitEditor__WEBPACK_IMPORTED_MODULE_20__[\"default\"], 'whiteList'], [_InputPropertyEditor__WEBPACK_IMPORTED_MODULE_21__[\"default\"], 'Input']\n  // [EditJsonEditor, 'editJson']\n  ];\n  editorMapList.forEach(function (_ref) {\n    var _ref2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_ref, 3),\n      editor = _ref2[0],\n      editorType = _ref2[1],\n      controlType = _ref2[2];\n    list.push([editorType, editor, controlType]);\n  });\n  return list;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (getPropertyEditors);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///58036\n");

/***/ }),

/***/ 86500:
/*!**************************************!*\
  !*** ./src/hooks/useCleanUserOrg.ts ***!
  \**************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context */ 90115);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants/propnames */ 94096);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/control */ 3700);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils */ 41232);\n/* harmony import */ var _editors_NodeBillTypeEditor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../editors/NodeBillTypeEditor */ 73288);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2024-04-09 10:23:43\n * @LastEditTime: 2024-04-09 10:26:37\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (data) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_2__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getRefBillVarFormId = _useContext.getRefBillVarFormId;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    dataContext = _useMemo.data;\n  var id = data.id,\n    refNodeId = data.refNodeId;\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n    var ref = dataContext.findControl(refNodeId);\n    if (ref) {\n      var nodeType = ref[_constants_propnames__WEBPACK_IMPORTED_MODULE_3__._TYPE_],\n        nodeId = ref.id,\n        formId = ref.formId,\n        refbillField = ref.refbillField,\n        apiId = ref.apiId,\n        queryModel = ref.queryModel;\n      var refBillId = formId || refbillField;\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_4__.isFindNode)(nodeType) && (0,_utils__WEBPACK_IMPORTED_MODULE_5__.isOpenApi)(queryModel)) {\n        refBillId = apiId;\n      }\n      var isSelectUserOrg = (0,_editors_NodeBillTypeEditor__WEBPACK_IMPORTED_MODULE_6__.getIsSelectUserOrg)(nodeId, refBillId, getRefBillVarFormId);\n      if (isSelectUserOrg) {\n        var actions = [[id, {\n          refNodeId: undefined\n        }]];\n        dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_1__.createUpdateAction)(actions));\n      }\n    }\n  }, []);\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODY1MDAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9ob29rcy91c2VDbGVhblVzZXJPcmcudHM/NmFmNSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDI0LTA0LTA5IDEwOjIzOjQzXG4gKiBATGFzdEVkaXRUaW1lOiAyMDI0LTA0LTA5IDEwOjI2OjM3XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IHsgdXNlTWVtbywgdXNlRWZmZWN0LCB1c2VDb250ZXh0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjcmVhdGVVcGRhdGVBY3Rpb24gfSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5pbXBvcnQgeyBEZXNpZ25lckNvbnRleHQgfSBmcm9tICcuLi9jb250ZXh0J1xuaW1wb3J0IHsgX1RZUEVfIH0gZnJvbSAnLi4vY29uc3RhbnRzL3Byb3BuYW1lcydcbmltcG9ydCB7IGlzRmluZE5vZGUgfSBmcm9tICcuLi91dGlscy9jb250cm9sJ1xuaW1wb3J0IHsgaXNPcGVuQXBpIH0gZnJvbSAnLi4vdXRpbHMnXG5pbXBvcnQgeyBnZXRJc1NlbGVjdFVzZXJPcmcgfSBmcm9tICcuLi9lZGl0b3JzL05vZGVCaWxsVHlwZUVkaXRvcidcblxuZXhwb3J0IGRlZmF1bHQgKGRhdGEpID0+IHtcbiAgY29uc3QgeyBnZXRLZGVzaWduZXJBcGksIGdldFJlZkJpbGxWYXJGb3JtSWQgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuICBjb25zdCB7IGRhdGE6IGRhdGFDb250ZXh0IH0gPSB1c2VNZW1vKCgpID0+IGdldEtkZXNpZ25lckFwaSgpLCBbXSlcblxuICBjb25zdCB7IGlkLCByZWZOb2RlSWQgfSA9IGRhdGFcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGNvbnN0IHJlZiA9IGRhdGFDb250ZXh0LmZpbmRDb250cm9sKHJlZk5vZGVJZClcblxuICAgIGlmIChyZWYpIHtcbiAgICAgIGNvbnN0IHsgW19UWVBFX106IG5vZGVUeXBlLCBpZDogbm9kZUlkLCBmb3JtSWQsIHJlZmJpbGxGaWVsZCwgYXBpSWQsIHF1ZXJ5TW9kZWwgfSA9IHJlZlxuICAgICAgbGV0IHJlZkJpbGxJZCA9IGZvcm1JZCB8fCByZWZiaWxsRmllbGRcblxuICAgICAgaWYgKGlzRmluZE5vZGUobm9kZVR5cGUpICYmIGlzT3BlbkFwaShxdWVyeU1vZGVsKSkge1xuICAgICAgICByZWZCaWxsSWQgPSBhcGlJZFxuICAgICAgfVxuXG4gICAgICBjb25zdCBpc1NlbGVjdFVzZXJPcmcgPSBnZXRJc1NlbGVjdFVzZXJPcmcobm9kZUlkLCByZWZCaWxsSWQsIGdldFJlZkJpbGxWYXJGb3JtSWQpXG5cbiAgICAgIGlmIChpc1NlbGVjdFVzZXJPcmcpIHtcbiAgICAgICAgY29uc3QgYWN0aW9ucyA9IFtbaWQsIHsgcmVmTm9kZUlkOiB1bmRlZmluZWQgfV1dXG4gICAgICAgIGRhdGFDb250ZXh0LmJhdGNoVXBkYXRlQ29udHJvbFByb3BlcnR5VmFsdWVzKGNyZWF0ZVVwZGF0ZUFjdGlvbihhY3Rpb25zKSlcbiAgICAgIH1cbiAgICB9XG4gIH0sIFtdKVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///86500\n");

/***/ }),

/***/ 8184:
/*!**************************************!*\
  !*** ./src/hooks/useCopyAndPaste.ts ***!
  \**************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getCopyContent: function() { return /* binding */ getCopyContent; },\n/* harmony export */   setCopyContent: function() { return /* binding */ setCopyContent; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context */ 90115);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constants */ 98092);\n/* harmony import */ var _utils_storage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/storage */ 98820);\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-11-22 10:21:37\n * @LastEditTime: 2023-12-19 18:06:53\n * @Last Modified by: jianhang_he\n */\n\n\n\n\nvar COPY_CONTENT_KEY = 'nocodeflow.CopyContent';\nvar COPY_IDS_KEY = 'nocodeflow.CopyIds';\nvar setCopyContent = function setCopyContent(copyContent) {\n  (0,_utils_storage__WEBPACK_IMPORTED_MODULE_4__.setStorage)(COPY_CONTENT_KEY, copyContent);\n};\nvar getCopyContent = function getCopyContent() {\n  var copyContent = window.localStorage.getItem(COPY_CONTENT_KEY);\n  if (copyContent) {\n    copyContent = JSON.parse(copyContent);\n  }\n  return copyContent;\n};\nvar setCopyIds = function setCopyIds(ids) {\n  (0,_utils_storage__WEBPACK_IMPORTED_MODULE_4__.setStorage)(COPY_IDS_KEY, ids);\n};\nvar getCopyIds = function getCopyIds() {\n  var copyContent = window.localStorage.getItem(COPY_IDS_KEY);\n  if (copyContent) {\n    copyContent = JSON.parse(copyContent);\n  }\n  return copyContent;\n};\nvar clearCopyContent = function clearCopyContent() {\n  window.localStorage.removeItem(COPY_CONTENT_KEY);\n  window.localStorage.removeItem(COPY_IDS_KEY);\n};\nvar useCopyAndPaste = function useCopyAndPaste() {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_context__WEBPACK_IMPORTED_MODULE_2__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var selectionContext = kdesignerApi.selection;\n  var getSelection = selectionContext.getSelection;\n\n  // 给每个做剪切操作的控件，都加上自定义属性\n  var setDatasetCutControl = function setDatasetCutControl() {\n    var selection = getSelection();\n    selection.forEach(function (controlId) {\n      var _context;\n      var selectedDom = document.querySelectorAll(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context = \"[\".concat(_constants__WEBPACK_IMPORTED_MODULE_3__.DATA_NODE_ID, \"=\\\"\")).call(_context, controlId, \"\\\"]\"));\n      selectedDom.forEach(function (dom) {\n        dom.setAttribute(_constants__WEBPACK_IMPORTED_MODULE_3__.DATA_CUT_NODE, 'true');\n      });\n    });\n  };\n\n  // 移除剪切属性\n  var removeDatasetCutControl = function removeDatasetCutControl() {\n    var selectedDom = document.querySelectorAll(\"[\".concat(_constants__WEBPACK_IMPORTED_MODULE_3__.DATA_CUT_NODE, \"]\"));\n    selectedDom.length && selectedDom.forEach(function (dom) {\n      dom.removeAttribute(_constants__WEBPACK_IMPORTED_MODULE_3__.DATA_CUT_NODE);\n    });\n    return selectedDom.length;\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    return function () {\n      clearCopyContent();\n    };\n  }, []);\n  return {\n    setCopyContent: setCopyContent,\n    getCopyContent: getCopyContent,\n    setCopyIds: setCopyIds,\n    getCopyIds: getCopyIds,\n    setDatasetCutControl: setDatasetCutControl,\n    removeDatasetCutControl: removeDatasetCutControl,\n    clearCopyContent: clearCopyContent\n  };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useCopyAndPaste);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///8184\n");

/***/ }),

/***/ 37448:
/*!**********************************!*\
  !*** ./src/hooks/useDebounce.ts ***!
  \**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ useDebounce; }\n/* harmony export */ });\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-15 20:12:45\n * @LastEditTime: 2023-03-15 20:12:48\n * @Last Modified by: jianhang_he\n */\n\n\n/**\n * 防抖hook\n * 为什么要这个hook?原因：\n * 在react内部直接调用debounce函数是无效的，一旦react内部重新渲染了，对应函数也会重新渲染，内部的timer又会重新生成\n * 所以是一直不起作用\n * @param {*} fn 传入的函数\n * @param {*} delay 延时时间\n * @param {*} dep 依赖数组\n * @returns\n */\nfunction useDebounce(fn) {\n  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n  var _useRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useRef)({\n      fn: fn,\n      timer: null\n    }),\n    current = _useRef.current;\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {\n    current.fn = fn;\n  }, [fn]);\n  return (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function () {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    if (current.timer) {\n      clearTimeout(current.timer);\n    }\n    current.timer = setTimeout(function () {\n      current.fn.apply(current, args);\n    }, delay);\n  }, [fn]);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzc0NDguanMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvaG9va3MvdXNlRGVib3VuY2UudHM/OTIxYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTAzLTE1IDIwOjEyOjQ1XG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTAzLTE1IDIwOjEyOjQ4XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IHsgdXNlUmVmLCB1c2VFZmZlY3QsIHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnXG5cbi8qKlxuICog6Ziy5oqWaG9va1xuICog5Li65LuA5LmI6KaB6L+Z5LiqaG9vaz/ljp/lm6DvvJpcbiAqIOWcqHJlYWN05YaF6YOo55u05o6l6LCD55SoZGVib3VuY2Xlh73mlbDmmK/ml6DmlYjnmoTvvIzkuIDml6ZyZWFjdOWGhemDqOmHjeaWsOa4suafk+S6hu+8jOWvueW6lOWHveaVsOS5n+S8mumHjeaWsOa4suafk++8jOWGhemDqOeahHRpbWVy5Y+I5Lya6YeN5paw55Sf5oiQXG4gKiDmiYDku6XmmK/kuIDnm7TkuI3otbfkvZznlKhcbiAqIEBwYXJhbSB7Kn0gZm4g5Lyg5YWl55qE5Ye95pWwXG4gKiBAcGFyYW0geyp9IGRlbGF5IOW7tuaXtuaXtumXtFxuICogQHBhcmFtIHsqfSBkZXAg5L6d6LWW5pWw57uEXG4gKiBAcmV0dXJuc1xuICovXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB1c2VEZWJvdW5jZSAoZm4sIGRlbGF5ID0gMzAwKSB7XG4gIGNvbnN0IHsgY3VycmVudCB9ID0gdXNlUmVmKHsgZm4sIHRpbWVyOiBudWxsIH0pXG5cbiAgdXNlRWZmZWN0KCgpID0+IHtcbiAgICBjdXJyZW50LmZuID0gZm5cbiAgfSwgW2ZuXSlcblxuICByZXR1cm4gdXNlQ2FsbGJhY2soKC4uLmFyZ3MpID0+IHtcbiAgICBpZiAoY3VycmVudC50aW1lcikge1xuICAgICAgY2xlYXJUaW1lb3V0KGN1cnJlbnQudGltZXIpXG4gICAgfVxuICAgIGN1cnJlbnQudGltZXIgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgIGN1cnJlbnQuZm4oLi4uYXJncylcbiAgICB9LCBkZWxheSlcbiAgfSwgW2ZuXSlcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///37448\n");

/***/ }),

/***/ 52708:
/*!**********************************!*\
  !*** ./src/hooks/useDragDrop.ts ***!
  \**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DRAG_NODE_ID: function() { return /* binding */ DRAG_NODE_ID; },\n/* harmony export */   dragNodeIdDataAttribute: function() { return /* binding */ dragNodeIdDataAttribute; },\n/* harmony export */   getD3Transition: function() { return /* binding */ getD3Transition; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ 61260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../context/index */ 90115);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ 41232);\n/* harmony import */ var _useThrottleFn__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useThrottleFn */ 32380);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../constants */ 98092);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./../utils/control */ 3700);\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar dragNodeIdDataAttribute = 'can-drag-node-id';\nvar DRAG_NODE_ID = 'drag-node-id';\n// type DropEventHook = (event: React.DragEvent) => void\n\nvar dragNodeId = null;\nvar dragOverNodeId = null;\nvar selector = function selector(s) {\n  return {\n    d3Zoom: s.d3Zoom,\n    d3Selection: s.d3Selection\n  };\n};\nvar getD3Transition = function getD3Transition(selection) {\n  var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n  return selection.transition().duration(duration);\n};\nvar useDragDrop = function useDragDrop(id, onDragStartHook, onDropHook) {\n  //\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_6__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    flowStatus = _useContext.flowStatus;\n  var mainviewElementRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useRef)(document.querySelector(\"#\".concat(_constants__WEBPACK_IMPORTED_MODULE_11__.NOCODE_FLOW_MAIN)));\n  var store = (0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_8__.useStore)();\n  var transform = (0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_8__.useStoreState)(function (state) {\n    return state.transform;\n  });\n  var zoomHelper = (0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_8__.useZoomPanHelper)();\n  var sortData = function sortData(dragId, dropId) {\n    var strategy = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'insert';\n    if (!dragId || !dropId || dropId === dragId) {\n      return;\n    }\n    switch (strategy) {\n      case 'insert':\n      default:\n        {\n          var api = getKdesignerApi();\n          api.data.customUpdateState((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createCustomUpdateAction)(function (state) {\n            var items = state.Items;\n            var dragNode = null; // 拖拽节点\n            var dragIndex = null; // 拖拽节点的位置\n            var dropNode = null; // 放置节点\n            var dropIndex = null; // 放置节点的位置\n            var dropNextNode = null; // 放置节点的下一个节点\n\n            for (var i = 0; i < items.length; i++) {\n              var _item$parentIds;\n              if (dragNode && dropNode && dropNextNode) {\n                break;\n              }\n              var item = items[i];\n              if (item.id === dragId) {\n                dragNode = item;\n                dragIndex = i;\n              } else if (item.id === dropId) {\n                dropNode = item;\n                dropIndex = i;\n              }\n              if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.isNullNode)(item) && (_item$parentIds = item.parentIds) !== null && _item$parentIds !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default()(_item$parentIds).call(_item$parentIds, dropId) || item.parentId === dropId) {\n                dropNextNode = item;\n              }\n            }\n            if (dragNode.parentId === dropId) {\n              console.warn('不能原位置拖拽');\n              return;\n            }\n            var dragNodeNextNode = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default()(items).call(items, function (item) {\n              if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.isNullNode)(item)) {\n                var _item$parentIds2;\n                return (_item$parentIds2 = item.parentIds) === null || _item$parentIds2 === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default()(_item$parentIds2).call(_item$parentIds2, dragId);\n              }\n              return item.parentId === dragId;\n            });\n\n            // 拖拽节点的下一个节点的parentid指向拖拽节点的ParentId\n            if (dragNodeNextNode) {\n              if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.isNullNode)(dragNodeNextNode)) {\n                var _dragNodeNextNode$par;\n                dragNodeNextNode.parentIds = (_dragNodeNextNode$par = dragNodeNextNode.parentIds) === null || _dragNodeNextNode$par === void 0 ? void 0 : _dragNodeNextNode$par.replace(dragId, dragNode.parentId);\n              } else {\n                dragNodeNextNode.parentId = dragNode.parentId;\n              }\n            }\n\n            // 拖拽节点的ParentId指向放置节点的Id\n            dragNode.parentId = dropId;\n\n            // 放置节点的下一个节点的父Id指向拖拽id\n            if (dropNextNode) {\n              if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.isNullNode)(dropNextNode)) {\n                var _dropNextNode$parentI;\n                dropNextNode.parentIds = (_dropNextNode$parentI = dropNextNode.parentIds) === null || _dropNextNode$parentI === void 0 ? void 0 : _dropNextNode$parentI.replace(dropId, dragId);\n              } else {\n                dropNextNode.parentId = dragId;\n              }\n            }\n\n            // 注意这里的顺序，先删除的时候位置会变的。如果拖拽的位置在放置的位置后面，那么先删除。否则后删除\n            if (dragIndex > dropIndex) {\n              // 位置需要调整\n              _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3___default()(items).call(items, dragIndex, 1);\n              _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3___default()(items).call(items, dropIndex + 1, 0, dragNode);\n            } else {\n              _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3___default()(items).call(items, dropIndex + 1, 0, dragNode);\n              _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_3___default()(items).call(items, dragIndex, 1);\n            }\n          }));\n        }\n    }\n  };\n  var markDragNodeId = function markDragNodeId(id) {\n    // removeDragMarkId()\n    dragNodeId = id;\n  };\n  var markDragOverNodeId = function markDragOverNodeId(id) {\n    // removeDragOverMarkId()\n    dragOverNodeId = id;\n  };\n  var onDrag = (0,_useThrottleFn__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(function (e) {\n    var _store$getState = store.getState(),\n      transform = _store$getState.transform,\n      height = _store$getState.height,\n      translateExtent = _store$getState.translateExtent;\n    var _transform = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(transform, 3),\n      x = _transform[0],\n      y = _transform[1],\n      zoom = _transform[2];\n    // console.log('onDrag', height, translateExtent, translateExtent)\n    if (e.clientY < 100 && y < 0) {\n      // 火狐上e.clientY一直为0，导致视图一直向上滚动无法放置拖拽\n      if (e.clientY === 0) {\n        return;\n      }\n      // 向上添加\n      zoomHelper.transform({\n        x: x,\n        y: y + 200 > 0 ? 0 : y + 200,\n        zoom: zoom\n      }, 300);\n    } else {\n      // 向下添加\n      if (mainviewElementRef.current) {\n        var _mainviewElementRef$c2;\n        var _mainviewElementRef$c = (_mainviewElementRef$c2 = mainviewElementRef.current) === null || _mainviewElementRef$c2 === void 0 ? void 0 : _mainviewElementRef$c2.getBoundingClientRect(),\n          _height = _mainviewElementRef$c.height;\n        if (e.clientY < _height && e.clientY > _height - 100) {\n          // 距离底部100的距离范围内触发\n          var endNodeElement = document.querySelector(\"#\".concat(_constants__WEBPACK_IMPORTED_MODULE_11__.NOCODE_FLOW_MAIN_END_NODE));\n          if (endNodeElement) {\n            var _endNodeElement$getBo = endNodeElement.getBoundingClientRect(),\n              top = _endNodeElement$getBo.top;\n            if (top > _height) {\n              // 如果过长就按照200的滚动，否则就直接滚完\n              var transformY = top - y - 200 > _height ? y - 200 : _height - top;\n              zoomHelper.transform({\n                x: x,\n                y: transformY,\n                zoom: zoom\n              }, 300);\n            }\n          }\n        }\n      }\n    }\n  }, 300, []);\n  var onDragStart = function onDragStart(event) {\n    markDragNodeId(id);\n    onDragStartHook && onDragStartHook(event);\n  };\n  var onDragOverProxy = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_5__.throttle)(function (event) {\n    event.preventDefault();\n    markDragOverNodeId(id);\n  }, 200);\n  var onDragOver = function onDragOver(event) {\n    event.preventDefault();\n    event.persist();\n    onDragOverProxy(event);\n  };\n  // throttle(, 200)\n\n  var onDrop = function onDrop(event) {\n    event.preventDefault();\n    sortData(dragNodeId, dragOverNodeId);\n    onDropHook && onDropHook(event);\n  };\n  return {\n    dragEvent: {\n      onDrag: onDrag,\n      onDragStart: onDragStart,\n      draggable: !(0,_utils__WEBPACK_IMPORTED_MODULE_9__.isReadonlyStatus)(flowStatus)\n    },\n    dropEvent: {\n      onDragOver: onDragOver,\n      onDrop: onDrop\n    }\n  };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useDragDrop);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///52708\n");

/***/ }),

/***/ 74984:
/*!*************************************!*\
  !*** ./src/hooks/useGetDomProps.ts ***!
  \*************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../context */ 90115);\n/* harmony import */ var _useNodeClick__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./useNodeClick */ 56828);\n/* harmony import */ var _useDragDrop__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./useDragDrop */ 52708);\n/* harmony import */ var _useSelected__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./useSelected */ 88840);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils */ 41232);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../constants */ 98092);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_14__);\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-07-12 14:38:50\n * @LastEditTime: 2023-11-22 10:34:53\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\nvar useGetDomProps = function useGetDomProps(id, key) {\n  var _context;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_context__WEBPACK_IMPORTED_MODULE_8__.DesignerContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    prefixCls = _useContext.prefixCls,\n    getKdesignerApi = _useContext.getKdesignerApi,\n    flowStatus = _useContext.flowStatus;\n  var prefixClass = getPrefixCls && getPrefixCls(prefixCls, key || 'controls');\n  var kdesignerApi = getKdesignerApi();\n  var dataContext = kdesignerApi.data;\n  var control = dataContext.findControl(id);\n  var _ref = control || {},\n    _ref$handleStatus = _ref.handleStatus,\n    handleStatus = _ref$handleStatus === void 0 ? _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_TODO : _ref$handleStatus;\n  var dragEventProps = (0,_useDragDrop__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(id);\n  var onClick = (0,_useNodeClick__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(id);\n  var isSelected = (0,_useSelected__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(id);\n  var className = classnames__WEBPACK_IMPORTED_MODULE_14___default()(\"\".concat(prefixClass), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    'node-selection': isSelected\n  }, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6___default()(_context = \"\".concat(prefixClass, \"_\")).call(_context, handleStatus || _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_TODO), (0,_utils__WEBPACK_IMPORTED_MODULE_12__.isReadonlyStatus)(flowStatus)));\n  if (!id) return {};\n  return _objectSpread(_objectSpread({}, dragEventProps), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    isSelected: isSelected,\n    onClick: onClick,\n    prefixClass: prefixClass,\n    className: className\n  }, _constants__WEBPACK_IMPORTED_MODULE_13__.DATA_NODE_ID, id));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useGetDomProps);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNzQ5ODQuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUlBO0FBRUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBR0E7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2hvb2tzL3VzZUdldERvbVByb3BzLnRzP2JkNmMiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMi0wNy0xMiAxNDozODo1MFxuICogQExhc3RFZGl0VGltZTogMjAyMy0xMS0yMiAxMDozNDo1M1xuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCwgeyB1c2VDb250ZXh0LCB1c2VNZW1vLCB1c2VFZmZlY3QsIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBJRGF0YUFwaSB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uL2NvbnRleHQnXG5pbXBvcnQgdXNlQ2xpY2sgZnJvbSAnLi91c2VOb2RlQ2xpY2snXG5pbXBvcnQgdXNlRHJhZ0Ryb3AgZnJvbSAnLi91c2VEcmFnRHJvcCdcbmltcG9ydCB1c2VTZWxlY3RlZCBmcm9tICcuL3VzZVNlbGVjdGVkJ1xuaW1wb3J0IHsgaXNSZWFkb25seVN0YXR1cyB9IGZyb20gJy4uL3V0aWxzJ1xuaW1wb3J0IHsgTk9ERV9TVEFUVVNfVE9ETywgREFUQV9OT0RFX0lEIH0gZnJvbSAnLi4vY29uc3RhbnRzJ1xuXG5pbXBvcnQgY2xhc3NOYW1lcyBmcm9tICdjbGFzc25hbWVzJ1xuXG5jb25zdCB1c2VHZXREb21Qcm9wcyA9IChpZDogc3RyaW5nLCBrZXk/OiBzdHJpbmcpOiBhbnkgPT4ge1xuICBjb25zdCB7IGdldFByZWZpeENscywgcHJlZml4Q2xzLCBnZXRLZGVzaWduZXJBcGksIGZsb3dTdGF0dXMgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuICBjb25zdCBwcmVmaXhDbGFzcyA9IGdldFByZWZpeENscyAmJiBnZXRQcmVmaXhDbHMocHJlZml4Q2xzLCBrZXkgfHwgJ2NvbnRyb2xzJylcbiAgY29uc3Qga2Rlc2lnbmVyQXBpID0gZ2V0S2Rlc2lnbmVyQXBpKClcbiAgY29uc3QgZGF0YUNvbnRleHQ6IElEYXRhQXBpID0ga2Rlc2lnbmVyQXBpLmRhdGFcblxuICBjb25zdCBjb250cm9sID0gZGF0YUNvbnRleHQuZmluZENvbnRyb2woaWQpXG4gIGNvbnN0IHsgaGFuZGxlU3RhdHVzID0gTk9ERV9TVEFUVVNfVE9ETyB9ID0gY29udHJvbCB8fCB7fVxuXG4gIGNvbnN0IGRyYWdFdmVudFByb3BzID0gdXNlRHJhZ0Ryb3AoaWQpXG4gIGNvbnN0IG9uQ2xpY2sgPSB1c2VDbGljayhpZClcbiAgY29uc3QgaXNTZWxlY3RlZCA9IHVzZVNlbGVjdGVkKGlkKVxuXG4gIGNvbnN0IGNsYXNzTmFtZSA9IGNsYXNzTmFtZXMoYCR7cHJlZml4Q2xhc3N9YCwge1xuICAgICdub2RlLXNlbGVjdGlvbic6IGlzU2VsZWN0ZWQsXG4gICAgW2Ake3ByZWZpeENsYXNzfV8ke2hhbmRsZVN0YXR1cyB8fCBOT0RFX1NUQVRVU19UT0RPfWBdOiBpc1JlYWRvbmx5U3RhdHVzKGZsb3dTdGF0dXMpIC8vIOafpeeci+a1geeoi+WbvueahOaXtuWAme+8jOiKgueCueS8muacieWvueW6lOeahOS4gOS6m+eKtuaAgVxuICB9KVxuXG4gIGlmICghaWQpIHJldHVybiB7IH1cblxuICByZXR1cm4ge1xuICAgIC4uLmRyYWdFdmVudFByb3BzLFxuICAgIGlzU2VsZWN0ZWQsXG4gICAgb25DbGljayxcbiAgICBwcmVmaXhDbGFzcyxcbiAgICBjbGFzc05hbWUsXG4gICAgW0RBVEFfTk9ERV9JRF06IGlkXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlR2V0RG9tUHJvcHNcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///74984\n");

/***/ }),

/***/ 91575:
/*!*************************************!*\
  !*** ./src/hooks/useGetEnumName.ts ***!
  \*************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context */ 90115);\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-07-12 14:38:50\n * @LastEditTime: 2024-03-04 13:33:32\n * @Last Modified by: jianhang_he\n */\n\n\nvar useGetEnumName = function useGetEnumName(type, propName) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_context__WEBPACK_IMPORTED_MODULE_2__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    metaApi = _useMemo.meta;\n  var editor = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n    return metaApi.getControlMetaEditor(type, propName);\n  }, [type, propName]);\n  var enums = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {\n    return (editor === null || editor === void 0 ? void 0 : editor.Enum) || [];\n  }, [editor]);\n\n  // 获取消息类型对应的名称\n  var getEnumName = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (value) {\n    var _value;\n    if (typeof value === 'undefined') {\n      value = editor.Default || '';\n    }\n    var valueList = ((_value = value) === null || _value === void 0 ? void 0 : _value.split(',')) || [];\n    var labelList = [];\n    enums.forEach(function (item) {\n      if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(valueList).call(valueList, item.Id)) {\n        labelList.push(item.Name);\n      }\n    });\n    return labelList.join('，');\n  }, [enums]);\n  return getEnumName;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useGetEnumName);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTE1NzUuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBOztBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2hvb2tzL3VzZUdldEVudW1OYW1lLnRzPzM0OTkiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMi0wNy0xMiAxNDozODo1MFxuICogQExhc3RFZGl0VGltZTogMjAyNC0wMy0wNCAxMzozMzozMlxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCwgeyB1c2VDb250ZXh0LCB1c2VNZW1vLCB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgRGVzaWduZXJDb250ZXh0IH0gZnJvbSAnLi4vY29udGV4dCdcblxuY29uc3QgdXNlR2V0RW51bU5hbWUgPSAodHlwZTogc3RyaW5nLCBwcm9wTmFtZTogc3RyaW5nKTogYW55ID0+IHtcbiAgY29uc3QgeyBnZXRLZGVzaWduZXJBcGkgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuICBjb25zdCB7IG1ldGE6IG1ldGFBcGkgfSA9IHVzZU1lbW8oKCkgPT4gZ2V0S2Rlc2lnbmVyQXBpKCksIFtdKVxuXG4gIGNvbnN0IGVkaXRvciA9IHVzZU1lbW8oKCkgPT4gbWV0YUFwaS5nZXRDb250cm9sTWV0YUVkaXRvcih0eXBlLCBwcm9wTmFtZSksIFt0eXBlLCBwcm9wTmFtZV0pXG5cbiAgY29uc3QgZW51bXMgPSB1c2VNZW1vKCgpID0+IGVkaXRvcj8uRW51bSB8fCBbXSwgW2VkaXRvcl0pXG5cbiAgLy8g6I635Y+W5raI5oGv57G75Z6L5a+55bqU55qE5ZCN56ewXG4gIGNvbnN0IGdldEVudW1OYW1lID0gdXNlQ2FsbGJhY2soKHZhbHVlKSA9PiB7XG4gICAgaWYgKHR5cGVvZiB2YWx1ZSA9PT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgIHZhbHVlID0gZWRpdG9yLkRlZmF1bHQgfHwgJydcbiAgICB9XG5cbiAgICBjb25zdCB2YWx1ZUxpc3QgPSB2YWx1ZT8uc3BsaXQoJywnKSB8fCBbXVxuICAgIGNvbnN0IGxhYmVsTGlzdCA9IFtdXG5cbiAgICBlbnVtcy5mb3JFYWNoKGl0ZW0gPT4ge1xuICAgICAgaWYgKHZhbHVlTGlzdC5pbmNsdWRlcyhpdGVtLklkKSkge1xuICAgICAgICBsYWJlbExpc3QucHVzaChpdGVtLk5hbWUpXG4gICAgICB9XG4gICAgfSlcblxuICAgIHJldHVybiBsYWJlbExpc3Quam9pbign77yMJylcbiAgfSwgW2VudW1zXSlcblxuICByZXR1cm4gZ2V0RW51bU5hbWVcbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlR2V0RW51bU5hbWVcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///91575\n");

/***/ }),

/***/ 87060:
/*!***************************************!*\
  !*** ./src/hooks/useKeyboardEvent.ts ***!
  \***************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../context */ 90115);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/control */ 3700);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils */ 41232);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/nodeType */ 1300);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../constants/propnames */ 94096);\n/* harmony import */ var _useCopyAndPaste__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./useCopyAndPaste */ 8184);\n\n\nvar _excluded = [\"id\", \"itemId\", \"number\", \"_Type_\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 15:43:34\n * @LastEditTime: 2023-12-19 18:12:20\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\nvar useKeyboardEvent = function useKeyboardEvent(ref, isOutline) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useContext)(_context__WEBPACK_IMPORTED_MODULE_11__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    flowStatus = _useContext.flowStatus;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.GlobalConfigContext),\n    showMessage = _useContext2.showMessage;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data;\n  var selectionContext = kdesignerApi.selection;\n  var getSelection = selectionContext.getSelection,\n    setSelect = selectionContext.setSelect,\n    getActiveSelectedId = selectionContext.getActiveSelectedId;\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_9__.useEffect)(function () {\n    var mainViewNode = ref.current;\n    if (mainViewNode && !(0,_utils__WEBPACK_IMPORTED_MODULE_13__.isReadonlyStatus)(flowStatus)) {\n      var handleKeyBoardEvent = function handleKeyBoardEvent(event) {\n        if (event.target !== mainViewNode) return;\n        event.stopPropagation();\n        // 删除控件\n        var keyCode = event.keyCode;\n        switch (keyCode) {\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.BACKSPACE:\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.DELETE:\n            {\n              var _node$parentId;\n              var id = getSelection()[0];\n              var node = dataContext.findControl(id);\n              var parent = dataContext.findControl(node === null || node === void 0 ? void 0 : node.parentId);\n              // 分支判断节点，如果分支下的判断节点 <= 2 时不允许删除\n              if (node._Type_ === _utils_nodeType__WEBPACK_IMPORTED_MODULE_14__.NOCODE_JUDGE_TASK && node !== null && node !== void 0 && (_node$parentId = node.parentId) !== null && _node$parentId !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(_node$parentId).call(_node$parentId, _utils_nodeType__WEBPACK_IMPORTED_MODULE_14__.NOCODE_GATEWAY)) {\n                var sibes = dataContext.getAllSiblings(id);\n                var len = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(sibes).call(sibes, function (item) {\n                  return item._Type_ === _utils_nodeType__WEBPACK_IMPORTED_MODULE_14__.NOCODE_JUDGE_TASK;\n                }).length;\n                if (len <= 2 && !parent.isNullNode) break;\n              }\n              (0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.deleteSelectControlFn)(kdesignerApi);\n              break;\n            }\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.Z:\n            {\n              // 撤销\n              var canUndo = dataContext.canUndo();\n              if ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.isCtrlActive)(event) && canUndo) {\n                dataContext.undo();\n              }\n              break;\n            }\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.Y:\n            {\n              // 恢复\n              var canRedo = dataContext.canRedo();\n              if ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.isCtrlActive)(event) && canRedo) {\n                dataContext.redo();\n              }\n              break;\n            }\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.LEFT:\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.RIGHT:\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.UP:\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.DOWN:\n            {\n              var activedSelectId = getActiveSelectedId({\n                dataContext: dataContext,\n                selectionContext: selectionContext\n              });\n              var nextControl = keyCode === designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.LEFT || keyCode === designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.UP ? dataContext.getPrevSibling(activedSelectId) : dataContext.getNextSibling(activedSelectId);\n              var _nextControl = nextControl && nextControl.control;\n              if (_nextControl) {\n                setSelect([_nextControl[_constants_propnames__WEBPACK_IMPORTED_MODULE_15__.ID]]);\n              }\n              break;\n            }\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.C:\n            {\n              event.preventDefault();\n              // 复制\n              if (event.ctrlKey) {\n                event === null || event === void 0 || event.stopPropagation();\n                var selection = getSelection();\n                (0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.copyControlFn)(selection, kdesignerApi, showMessage, _useCopyAndPaste__WEBPACK_IMPORTED_MODULE_16__.setCopyContent);\n                // const selectControlsCopy = []\n                // for (let index = 0; index < selection.length; index++) {\n                //   const id = selection[index];\n\n                //   const controlData = dataContext.findControl(id)\n\n                //   if (isStartNode(controlData._Type_)) {\n                //     showMessage('触发节点不允许复制', 1)\n                //     return\n                //   }\n\n                //   selectControlsCopy.push(controlData)\n                // }\n\n                // showMessage('复制成功', 0)\n                // setCopyContent(selectControlsCopy)\n              }\n              break;\n            }\n          case designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.keyCode.V:\n            {\n              event.preventDefault();\n              // 粘贴是向后粘贴\n              if (event.ctrlKey) {\n                var copyContent = (0,_useCopyAndPaste__WEBPACK_IMPORTED_MODULE_16__.getCopyContent)();\n                if (Array.isArray(copyContent)) {\n                  var _selection = getSelection();\n                  if (_selection.length === 0) {\n                    showMessage('请先选择一个节点，再进行粘贴操作', 1);\n                    break;\n                  } else if (_selection.length === 1) {\n                    // 粘贴是向后粘贴，因此当前选中的节点会作为粘贴节点的父节点\n                    var parentId = _selection[0];\n                    // 判断控件的存放位置\n                    var index = dataContext.findControlIndex(parentId);\n                    var _dataContext$getData = dataContext.getData(),\n                      rootKey = _dataContext$getData.key;\n\n                    // 复制新增的内容\n                    var tempCopyContent = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(copyContent).call(copyContent, function (item) {\n                      var id = item.id,\n                        itemId = item.itemId,\n                        number = item.number,\n                        _Type_ = item._Type_,\n                        otherItem = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(item, _excluded);\n                      return (0,_utils__WEBPACK_IMPORTED_MODULE_13__.createNodeInfo)(_objectSpread(_objectSpread({}, otherItem), {}, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, _constants_propnames__WEBPACK_IMPORTED_MODULE_15__.PARENTID, parentId), \"rootKey\", rootKey), \"type\", _Type_)));\n                    });\n                    if (!tempCopyContent.length) return;\n                    var lastPasteNodeId = tempCopyContent[tempCopyContent.length - 1].id;\n\n                    // 更新后面节点的parentId或者是parentIds\n                    var oldSubControls = dataContext.findControlByCondition(function (item) {\n                      var _item$parentIds;\n                      // 空节点的是使用parentIds\n                      return item[_constants_propnames__WEBPACK_IMPORTED_MODULE_15__.PARENTID] === parentId || ((_item$parentIds = item.parentIds) === null || _item$parentIds === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_7___default()(_item$parentIds).call(_item$parentIds, parentId));\n                    });\n                    var updateParentIdActions = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(oldSubControls).call(oldSubControls, function (item) {\n                      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_12__.isNullNode)(item)) {\n                        // 子节点是空节点的时候，需要修改parentIds\n                        return [item.id, {\n                          parentIds: item.parentIds.replace(parentId, lastPasteNodeId)\n                        }];\n                      } else {\n                        return [item.id, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, _constants_propnames__WEBPACK_IMPORTED_MODULE_15__.PARENTID, lastPasteNodeId)];\n                      }\n                    });\n                    dataContext.addControl((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createPasteAction)(tempCopyContent, {\n                      index: index + 1\n                    })).then(function (result) {\n                      dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createUpdateAction)(updateParentIdActions), false);\n                      setSelect(lastPasteNodeId);\n                      showMessage('粘贴成功', 0);\n                    });\n                  }\n                }\n              }\n              break;\n            }\n          default:\n            {\n              break;\n            }\n        }\n      };\n      // const debounceHandleKeyBoardEvent = debounce(handleKeyBoardEvent, 100)\n      var debounceHandleKeyBoardEvent = handleKeyBoardEvent;\n      mainViewNode.addEventListener('keydown', debounceHandleKeyBoardEvent);\n      return function () {\n        mainViewNode.removeEventListener('keydown', debounceHandleKeyBoardEvent);\n      };\n    }\n  }, []);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useKeyboardEvent);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///87060\n");

/***/ }),

/***/ 56828:
/*!***********************************!*\
  !*** ./src/hooks/useNodeClick.ts ***!
  \***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context */ 90115);\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 15:43:34\n * @LastEditTime: 2023-04-18 14:07:48\n * @Last Modified by: jianhang_he\n */\n\n\nvar useClick = function useClick(id) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.FlowViewContext),\n    sendSyncData = _useContext.sendSyncData;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context__WEBPACK_IMPORTED_MODULE_1__.DesignerContext),\n    getKdesignerApi = _useContext2.getKdesignerApi,\n    flowStatus = _useContext2.flowStatus;\n  var _useMemo = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {\n      return getKdesignerApi();\n    }, []),\n    selectionContext = _useMemo.selection;\n  var setSelect = selectionContext.setSelect;\n  var onClick = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function (event) {\n    event.stopPropagation();\n\n    // 判断是否需要给后端发送数据\n    // sendSyncData()\n\n    setSelect([id]);\n  }, []);\n  return onClick;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useClick);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTY4MjguanMiLCJtYXBwaW5ncyI6Ijs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2hvb2tzL3VzZU5vZGVDbGljay50cz9mMTFlIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDMtMDIgMTU6NDM6MzRcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMDQtMTggMTQ6MDc6NDhcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgeyB1c2VDYWxsYmFjaywgdXNlQ29udGV4dCwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgRGVzaWduZXJDb250ZXh0LCBGbG93Vmlld0NvbnRleHQgfSBmcm9tICcuLi9jb250ZXh0J1xuaW1wb3J0IHsgaXNEaXNwbGF5U3RhdHVzIH0gZnJvbSAnLi4vdXRpbHMvaW5kZXgnXG5cbmNvbnN0IHVzZUNsaWNrID0gKGlkOiBzdHJpbmcpID0+IHtcbiAgY29uc3QgeyBzZW5kU3luY0RhdGEgfSA9IHVzZUNvbnRleHQoRmxvd1ZpZXdDb250ZXh0KVxuXG4gIGNvbnN0IHsgZ2V0S2Rlc2lnbmVyQXBpLCBmbG93U3RhdHVzIH0gPSB1c2VDb250ZXh0KERlc2lnbmVyQ29udGV4dClcbiAgY29uc3QgeyBzZWxlY3Rpb246IHNlbGVjdGlvbkNvbnRleHQgfSA9IHVzZU1lbW8oKCkgPT4gZ2V0S2Rlc2lnbmVyQXBpKCksIFtdKVxuICBjb25zdCB7IHNldFNlbGVjdCB9ID0gc2VsZWN0aW9uQ29udGV4dFxuXG4gIGNvbnN0IG9uQ2xpY2sgPSB1c2VDYWxsYmFjaygoZXZlbnQpID0+IHtcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKVxuXG4gICAgLy8g5Yik5pat5piv5ZCm6ZyA6KaB57uZ5ZCO56uv5Y+R6YCB5pWw5o2uXG4gICAgLy8gc2VuZFN5bmNEYXRhKClcblxuICAgIHNldFNlbGVjdChbaWRdKVxuICB9LCBbXSlcbiAgcmV0dXJuIG9uQ2xpY2tcbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlQ2xpY2tcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///56828\n");

/***/ }),

/***/ 23312:
/*!****************************************!*\
  !*** ./src/hooks/useQueryEventData.ts ***!
  \****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nvar useQueryEventData = function useQueryEventData(props) {\n  var formId = props.formId,\n    eventName = props.eventName,\n    parser = props.parser,\n    _props$defaultValue = props.defaultValue,\n    defaultValue = _props$defaultValue === void 0 ? {} : _props$defaultValue;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useState)(defaultValue),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    data = _useState2[0],\n    setData = _useState2[1];\n  var defaultParser = function defaultParser(_ref) {\n    var data = _ref.data,\n      args = _ref.args;\n    var config = data.rows;\n    var param = args.param;\n    return {\n      data: config,\n      param: param\n    };\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    var listener = function listener(eventArgs) {\n      var _eventArgs$args;\n      if (eventArgs !== null && eventArgs !== void 0 && eventArgs.args && ((_eventArgs$args = eventArgs.args) === null || _eventArgs$args === void 0 ? void 0 : _eventArgs$args.formId) !== formId) return;\n      var result = typeof parser === 'function' ? parser(eventArgs) : defaultParser(eventArgs);\n      setData(result);\n    };\n    var removeQueryEventDataListener = designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.eventBus.on(eventName, listener);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.eventBus.off(eventName, removeQueryEventDataListener);\n    };\n  }, [eventName, formId, parser]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    if (!formId) {\n      setData(defaultValue);\n    }\n  }, [formId]);\n  return data;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useQueryEventData);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjMzMTIuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7QUFjQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL2hvb2tzL3VzZVF1ZXJ5RXZlbnREYXRhLnRzPzdjMTciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZUNvbnRleHQsIHVzZUVmZmVjdCwgdXNlU3RhdGUsIHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQge1xuICBldmVudEJ1c1xufSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5cbmludGVyZmFjZSBQYXJzZXIge1xuICAocGFyYW06IGFueSk6IHsgZGF0YTogYW55LCBwYXJhbTogYW55IH0gfCBhbnlbXVxufVxuaW50ZXJmYWNlIERhdGFQYXJhbSB7XG4gIGZvcm1JZDogc3RyaW5nO1xuICBldmVudE5hbWU6IHN0cmluZztcbiAgcGFyc2VyPzogUGFyc2VyO1xuICBkZWZhdWx0VmFsdWU/OiBhbnk7XG59XG5cbmNvbnN0IHVzZVF1ZXJ5RXZlbnREYXRhID0gKHByb3BzOiBEYXRhUGFyYW0pOiB7IGRhdGE6IGFueSwgcGFyYW06IGFueSB9IHwgYW55ID0+IHtcbiAgY29uc3Qge1xuICAgIGZvcm1JZCxcbiAgICBldmVudE5hbWUsXG4gICAgcGFyc2VyLFxuICAgIGRlZmF1bHRWYWx1ZSA9IHt9XG4gIH0gPSBwcm9wc1xuICBjb25zdCBbZGF0YSwgc2V0RGF0YV0gPSB1c2VTdGF0ZShkZWZhdWx0VmFsdWUpXG5cbiAgY29uc3QgZGVmYXVsdFBhcnNlciA9ICh7IGRhdGEsIGFyZ3MgfTogeyBkYXRhOiBhbnksIGFyZ3M6IGFueSB9KSA9PiB7XG4gICAgY29uc3QgY29uZmlnID0gZGF0YS5yb3dzXG4gICAgY29uc3QgcGFyYW0gPSBhcmdzLnBhcmFtXG4gICAgcmV0dXJuIHtcbiAgICAgIGRhdGE6IGNvbmZpZywgcGFyYW1cbiAgICB9XG4gIH1cblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGNvbnN0IGxpc3RlbmVyID0gKGV2ZW50QXJncykgPT4ge1xuICAgICAgaWYgKGV2ZW50QXJncz8uYXJncyAmJiBldmVudEFyZ3MuYXJncz8uZm9ybUlkICE9PSBmb3JtSWQpIHJldHVyblxuICAgICAgY29uc3QgcmVzdWx0ID0gdHlwZW9mIHBhcnNlciA9PT0gJ2Z1bmN0aW9uJ1xuICAgICAgICA/IHBhcnNlcihldmVudEFyZ3MpXG4gICAgICAgIDogZGVmYXVsdFBhcnNlcihldmVudEFyZ3MpXG4gICAgICBzZXREYXRhKHJlc3VsdClcbiAgICB9XG4gICAgY29uc3QgcmVtb3ZlUXVlcnlFdmVudERhdGFMaXN0ZW5lciA9IGV2ZW50QnVzLm9uKGV2ZW50TmFtZSwgbGlzdGVuZXIpXG4gICAgcmV0dXJuICgpID0+IHtcbiAgICAgIGV2ZW50QnVzLm9mZihldmVudE5hbWUsIHJlbW92ZVF1ZXJ5RXZlbnREYXRhTGlzdGVuZXIpXG4gICAgfVxuICB9LCBbZXZlbnROYW1lLCBmb3JtSWQsIHBhcnNlcl0pXG5cbiAgdXNlRWZmZWN0KCgpID0+IHtcbiAgICBpZiAoIWZvcm1JZCkge1xuICAgICAgc2V0RGF0YShkZWZhdWx0VmFsdWUpXG4gICAgfVxuICB9LCBbZm9ybUlkXSlcblxuICByZXR1cm4gZGF0YVxufVxuXG5leHBvcnQgZGVmYXVsdCB1c2VRdWVyeUV2ZW50RGF0YVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///23312\n");

/***/ }),

/***/ 82500:
/*!**************************************!*\
  !*** ./src/hooks/useRefBillProps.ts ***!
  \**************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../context/index */ 90115);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_3__);\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-08-16 14:53:31\n * @LastEditTime: 2023-10-19 11:10:37\n * @Last Modified by: jianhang_he\n */\n\n\n\nvar useRefBillProps = function useRefBillProps(_ref) {\n  var fieldKey = _ref.fieldKey;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_2__.DesignerContext),\n    batchInvoke = _useContext.batchInvoke,\n    getControlText = _useContext.getControlText,\n    baseUrl = _useContext.baseUrl;\n  var batchInvokeQuery = function batchInvokeQuery(id) {\n    var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var _args$filter = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_0___default()(args),\n      filter = _args$filter === void 0 ? '' : _args$filter,\n      _args$search = args.search,\n      search = _args$search === void 0 ? '' : _args$search,\n      _args$order_by = args.order_by,\n      order_by = _args$order_by === void 0 ? '' : _args$order_by,\n      _args$select = args.select,\n      select = _args$select === void 0 ? '' : _args$select,\n      _args$page_size = args.page_size,\n      page_size = _args$page_size === void 0 ? 10 : _args$page_size,\n      _args$page_no = args.page_no,\n      page_no = _args$page_no === void 0 ? 1 : _args$page_no,\n      _args$ids = args.ids,\n      ids = _args$ids === void 0 ? [] : _args$ids;\n    var queryParams = {\n      filter: filter,\n      // 数据过滤\n      search: search,\n      // 搜索内容\n      order_by: order_by,\n      // 排序\n      page_size: page_size,\n      // 每页行数\n      page_no: page_no,\n      ids: ids // 选中的ids\n    };\n    if (select) {\n      queryParams.select = select;\n    }\n    batchInvoke('query', 'nocodewfdesigner', [id, queryParams]);\n  };\n  var addControlAction = function addControlAction(methodName, listener) {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_3__.eventBus.on(methodName, listener);\n\n    // 需要返回销毁函数，要不然监听一直都在\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_3__.eventBus.off(methodName, listener);\n    };\n  };\n  var onBatchInvoke = function onBatchInvoke(actionName, args) {\n    var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n    batchInvoke(actionName, fieldKey, args, params);\n  };\n  var batchInvokeListConfig = function batchInvokeListConfig(id) {\n    batchInvoke('listconfig', 'nocodewfdesigner', [id]);\n  };\n  return {\n    baseUrl: baseUrl,\n    batchInvoke: onBatchInvoke,\n    getControlText: getControlText,\n    addControlAction: addControlAction,\n    // onDownLoad,\n    batchInvokeListConfig: batchInvokeListConfig,\n    batchInvokeQuery: batchInvokeQuery\n  };\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useRefBillProps);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODI1MDAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFjQTtBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9ob29rcy91c2VSZWZCaWxsUHJvcHMudHM/NDQ3YyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTA4LTE2IDE0OjUzOjMxXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTEwLTE5IDExOjEwOjM3XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IG1lbW8sIHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSwgdXNlQ29udGV4dCwgdXNlRWZmZWN0LCB1c2VSZWYsIHVzZU1lbW8gfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uL2NvbnRleHQvaW5kZXgnXG5pbXBvcnQge1xuICBldmVudEJ1c1xufSBmcm9tICdkZXNpZ25lcl9iYXNlL01haW4nXG5cbmludGVyZmFjZSBBcmdzQXBpIHtcbiAgZmlsdGVyPzogc3RyaW5nLFxuICBzZWFyY2g/OiBzdHJpbmcsXG4gIG9yZGVyX2J5Pzogc3RyaW5nLFxuICBzZWxlY3Q/OiBzdHJpbmcsXG4gIHBhZ2Vfc2l6ZT86IG51bWJlcixcbiAgcGFnZV9ubz86IHN0cmluZyxcbiAgaWRzPzogc3RyaW5nW11cbn1cblxuY29uc3QgdXNlUmVmQmlsbFByb3BzID0gKHtcbiAgZmllbGRLZXlcbn0pID0+IHtcbiAgY29uc3QgeyBiYXRjaEludm9rZSwgZ2V0Q29udHJvbFRleHQsIGJhc2VVcmwgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuXG4gIGNvbnN0IGJhdGNoSW52b2tlUXVlcnkgPSAoaWQsIGFyZ3M6IEFyZ3NBcGkgPSB7fSkgPT4ge1xuICAgIGNvbnN0IHtcbiAgICAgIGZpbHRlciA9ICcnLCAvLyDmlbDmja7ov4fmu6RcbiAgICAgIHNlYXJjaCA9ICcnLCAvLyDmkJzntKLlhoXlrrlcbiAgICAgIG9yZGVyX2J5ID0gJycsIC8vIOaOkuW6j1xuICAgICAgc2VsZWN0ID0gJycsIC8vIOWtl+autVxuICAgICAgcGFnZV9zaXplID0gMTAsIC8vIOavj+mhteihjOaVsFxuICAgICAgcGFnZV9ubyA9IDEsXG4gICAgICBpZHMgPSBbXS8vIOmAieS4reeahGlkc1xuICAgIH0gPSBhcmdzXG4gICAgY29uc3QgcXVlcnlQYXJhbXMgPSB7XG4gICAgICBmaWx0ZXIsIC8vIOaVsOaNrui/h+a7pFxuICAgICAgc2VhcmNoLCAvLyDmkJzntKLlhoXlrrlcbiAgICAgIG9yZGVyX2J5LCAvLyDmjpLluo9cbiAgICAgIHBhZ2Vfc2l6ZSwgLy8g5q+P6aG16KGM5pWwXG4gICAgICBwYWdlX25vLFxuICAgICAgaWRzIC8vIOmAieS4reeahGlkc1xuICAgIH1cbiAgICBpZiAoc2VsZWN0KSB7XG4gICAgICBxdWVyeVBhcmFtcy5zZWxlY3QgPSBzZWxlY3RcbiAgICB9XG4gICAgYmF0Y2hJbnZva2UoJ3F1ZXJ5JywgJ25vY29kZXdmZGVzaWduZXInLCBbaWQsIHF1ZXJ5UGFyYW1zXSlcbiAgfVxuXG4gIGNvbnN0IGFkZENvbnRyb2xBY3Rpb24gPSAobWV0aG9kTmFtZSwgbGlzdGVuZXIpID0+IHtcbiAgICBldmVudEJ1cy5vbihtZXRob2ROYW1lLCBsaXN0ZW5lcilcblxuICAgIC8vIOmcgOimgei/lOWbnumUgOavgeWHveaVsO+8jOimgeS4jeeEtuebkeWQrOS4gOebtOmDveWcqFxuICAgIHJldHVybiAoKSA9PiB7XG4gICAgICBldmVudEJ1cy5vZmYobWV0aG9kTmFtZSwgbGlzdGVuZXIpXG4gICAgfVxuICB9XG4gIGNvbnN0IG9uQmF0Y2hJbnZva2UgPSAoYWN0aW9uTmFtZSwgYXJncywgcGFyYW1zID0gW10pID0+IHtcbiAgICBiYXRjaEludm9rZShhY3Rpb25OYW1lLCBmaWVsZEtleSwgYXJncywgcGFyYW1zKVxuICB9XG5cbiAgY29uc3QgYmF0Y2hJbnZva2VMaXN0Q29uZmlnID0gKGlkKSA9PiB7XG4gICAgYmF0Y2hJbnZva2UoJ2xpc3Rjb25maWcnLCAnbm9jb2Rld2ZkZXNpZ25lcicsIFtpZF0pXG4gIH1cblxuICByZXR1cm4ge1xuICAgIGJhc2VVcmwsXG4gICAgYmF0Y2hJbnZva2U6IG9uQmF0Y2hJbnZva2UsXG4gICAgZ2V0Q29udHJvbFRleHQsXG4gICAgYWRkQ29udHJvbEFjdGlvbixcbiAgICAvLyBvbkRvd25Mb2FkLFxuICAgIGJhdGNoSW52b2tlTGlzdENvbmZpZyxcbiAgICBiYXRjaEludm9rZVF1ZXJ5XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlUmVmQmlsbFByb3BzXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///82500\n");

/***/ }),

/***/ 88840:
/*!**********************************!*\
  !*** ./src/hooks/useSelected.ts ***!
  \**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _context_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../context/index */ 90115);\n\n\n\n\nvar useSelected = function useSelected(id) {\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    isSelected = _useState2[0],\n    setSelected = _useState2[1];\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_context_index__WEBPACK_IMPORTED_MODULE_3__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var selectionContext = kdesignerApi.selection;\n  var selectionCallBack = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (selection) {\n    var value = selection.value;\n    var newSel = value === null || value === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default()(value).call(value, id);\n    setSelected(newSel);\n  }, [id]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {\n    var selectvalue = selectionContext.getSelection();\n    var newSel = selectvalue === null || selectvalue === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default()(selectvalue).call(selectvalue, id);\n    setSelected(newSel);\n    var removeSelectionListener = selectionContext.addSelectChangeListener(selectionCallBack);\n    return function () {\n      removeSelectionListener();\n    };\n  }, []);\n  return isSelected;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useSelected);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiODg4NDAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUdBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvaG9va3MvdXNlU2VsZWN0ZWQudHM/NTAyMSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgdXNlU3RhdGUsIHVzZUVmZmVjdCwgdXNlTWVtbywgdXNlQ2FsbGJhY2ssIHVzZUNvbnRleHQgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IERlc2lnbmVyQ29udGV4dCB9IGZyb20gJy4uL2NvbnRleHQvaW5kZXgnXG5pbXBvcnQgeyBJU2VsZWN0aW9uLCBzZWxlY3RDaGFuZ2VFdmVudCB9IGZyb20gJ2Rlc2lnbmVyX2Jhc2UvTWFpbidcblxuY29uc3QgdXNlU2VsZWN0ZWQgPSAoaWQ6IHN0cmluZykgPT4ge1xuICBjb25zdCBbaXNTZWxlY3RlZCwgc2V0U2VsZWN0ZWRdID0gdXNlU3RhdGU8Ym9vbGVhbj4oZmFsc2UpXG5cbiAgY29uc3QgeyBnZXRLZGVzaWduZXJBcGkgfSA9IHVzZUNvbnRleHQoRGVzaWduZXJDb250ZXh0KVxuICBjb25zdCBrZGVzaWduZXJBcGkgPSB1c2VNZW1vKCgpID0+IGdldEtkZXNpZ25lckFwaSgpLCBbXSlcbiAgY29uc3Qgc2VsZWN0aW9uQ29udGV4dDogSVNlbGVjdGlvbiA9IGtkZXNpZ25lckFwaS5zZWxlY3Rpb25cblxuICBjb25zdCBzZWxlY3Rpb25DYWxsQmFjayA9IHVzZUNhbGxiYWNrKChzZWxlY3Rpb246IHNlbGVjdENoYW5nZUV2ZW50KSA9PiB7XG4gICAgY29uc3QgeyB2YWx1ZSB9ID0gc2VsZWN0aW9uXG4gICAgY29uc3QgbmV3U2VsID0gdmFsdWU/LmluY2x1ZGVzKGlkKVxuICAgIHNldFNlbGVjdGVkKG5ld1NlbClcbiAgfSwgW2lkXSlcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGNvbnN0IHNlbGVjdHZhbHVlID0gc2VsZWN0aW9uQ29udGV4dC5nZXRTZWxlY3Rpb24oKVxuICAgIGNvbnN0IG5ld1NlbCA9IHNlbGVjdHZhbHVlPy5pbmNsdWRlcyhpZClcbiAgICBzZXRTZWxlY3RlZChuZXdTZWwpXG4gICAgY29uc3QgcmVtb3ZlU2VsZWN0aW9uTGlzdGVuZXIgPSBzZWxlY3Rpb25Db250ZXh0LmFkZFNlbGVjdENoYW5nZUxpc3RlbmVyKHNlbGVjdGlvbkNhbGxCYWNrKVxuICAgIHJldHVybiAoKSA9PiB7XG4gICAgICByZW1vdmVTZWxlY3Rpb25MaXN0ZW5lcigpXG4gICAgfVxuICB9LCBbXSlcblxuICByZXR1cm4gaXNTZWxlY3RlZFxufVxuXG5leHBvcnQgZGVmYXVsdCB1c2VTZWxlY3RlZFxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///88840\n");

/***/ }),

/***/ 32380:
/*!************************************!*\
  !*** ./src/hooks/useThrottleFn.ts ***!
  \************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n\n\nvar useThrottle = function useThrottle(fn, delay) {\n  var dep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n  var _useRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useRef)({\n      fn: fn,\n      timer: null\n    }),\n    current = _useRef.current;\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    current.fn = fn;\n  }, [fn]);\n  return (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function f() {\n    if (!current.timer) {\n      var _current$fn, _context;\n      current.timer = setTimeout(function () {\n        delete current.timer;\n      }, delay);\n      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n        args[_key] = arguments[_key];\n      }\n      (_current$fn = current.fn).call.apply(_current$fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context = [this]).call(_context, args));\n    }\n  }, dep);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useThrottle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzIzODAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBSkE7QUFBQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBRUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9ob29rcy91c2VUaHJvdHRsZUZuLnRzPzkyOGQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZVJlZiwgdXNlRWZmZWN0LCB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0J1xuXG5jb25zdCB1c2VUaHJvdHRsZSA9IChmbiwgZGVsYXksIGRlcCA9IFtdKSA9PiB7XG4gIGNvbnN0IHsgY3VycmVudCB9ID0gdXNlUmVmKHsgZm4sIHRpbWVyOiBudWxsIH0pXG4gIHVzZUVmZmVjdChmdW5jdGlvbiAoKSB7XG4gICAgY3VycmVudC5mbiA9IGZuXG4gIH0sIFtmbl0pXG5cbiAgcmV0dXJuIHVzZUNhbGxiYWNrKGZ1bmN0aW9uIGYgKC4uLmFyZ3MpIHtcbiAgICBpZiAoIWN1cnJlbnQudGltZXIpIHtcbiAgICAgIGN1cnJlbnQudGltZXIgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgZGVsZXRlIGN1cnJlbnQudGltZXJcbiAgICAgIH0sIGRlbGF5KVxuICAgICAgY3VycmVudC5mbi5jYWxsKHRoaXMsIC4uLmFyZ3MpXG4gICAgfVxuICB9LCBkZXApXG59XG5cbmV4cG9ydCBkZWZhdWx0IHVzZVRocm90dGxlXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///32380\n");

/***/ }),

/***/ 90824:
/*!************************************!*\
  !*** ./src/hooks/useWindowSize.ts ***!
  \************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ useWindowSize; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _utils_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/index */ 41232);\n\n\n\nfunction useWindowSize() {\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useState)(function () {\n      var _window = window,\n        innerWidth = _window.innerWidth,\n        innerHeight = _window.innerHeight;\n      return {\n        width: innerWidth,\n        height: innerHeight\n      };\n    }),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    windowSize = _useState2[0],\n    setWindowSize = _useState2[1];\n  var updateSize = function updateSize(_ref) {\n    var width = _ref.width,\n      height = _ref.height;\n    setWindowSize({\n      width: width,\n      height: height\n    });\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {\n    var resizeObserver = (0,_utils_index__WEBPACK_IMPORTED_MODULE_2__.addResizeObserve)(document.body, updateSize);\n    return function () {\n      resizeObserver && resizeObserver.removeResizeObserve();\n    };\n  }, []);\n  return windowSize;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTA4MjQuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQU9BO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFIQTtBQUFBO0FBS0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9ob29rcy91c2VXaW5kb3dTaXplLnRzPzI2ZTEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdXNlRWZmZWN0LCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0J1xyXG5pbXBvcnQgeyBhZGRSZXNpemVPYnNlcnZlIH0gZnJvbSAnLi4vdXRpbHMvaW5kZXgnXHJcblxyXG50eXBlIFJlY3QgPSB7XHJcbiAgd2lkdGg6IG51bWJlcjtcclxuICBoZWlnaHQ6IG51bWJlcjtcclxufVxyXG5cclxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gdXNlV2luZG93U2l6ZSAoKSB7XHJcbiAgY29uc3QgW3dpbmRvd1NpemUsIHNldFdpbmRvd1NpemVdID0gdXNlU3RhdGU8UmVjdD4oKCkgPT4ge1xyXG4gICAgY29uc3QgeyBpbm5lcldpZHRoLCBpbm5lckhlaWdodCB9ID0gd2luZG93XHJcbiAgICByZXR1cm4geyB3aWR0aDogaW5uZXJXaWR0aCwgaGVpZ2h0OiBpbm5lckhlaWdodCB9XHJcbiAgfSlcclxuXHJcbiAgY29uc3QgdXBkYXRlU2l6ZSA9ICh7IHdpZHRoLCBoZWlnaHQgfTogUmVjdCkgPT4ge1xyXG4gICAgc2V0V2luZG93U2l6ZSh7IHdpZHRoLCBoZWlnaHQgfSlcclxuICB9XHJcblxyXG4gIHVzZUVmZmVjdCgoKSA9PiB7XHJcbiAgICBjb25zdCByZXNpemVPYnNlcnZlciA9IGFkZFJlc2l6ZU9ic2VydmUoZG9jdW1lbnQuYm9keSwgdXBkYXRlU2l6ZSlcclxuICAgIHJldHVybiAoKSA9PiB7XHJcbiAgICAgIHJlc2l6ZU9ic2VydmVyICYmIHJlc2l6ZU9ic2VydmVyLnJlbW92ZVJlc2l6ZU9ic2VydmUoKVxyXG4gICAgfVxyXG4gIH0sIFtdKVxyXG5cclxuICByZXR1cm4gd2luZG93U2l6ZVxyXG59XHJcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///90824\n");

/***/ }),

/***/ 90236:
/*!***********************!*\
  !*** ./src/index.tsx ***!
  \***********************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _views_main_view__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./views/main-view */ 67328);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./context */ 90115);\n/* harmony import */ var _utils_meta__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils/meta */ 1048);\n/* harmony import */ var _utils_data__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils/data */ 1740);\n/* harmony import */ var _preHandle__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./preHandle */ 35260);\n/* harmony import */ var _editors__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./editors */ 58036);\n/* harmony import */ var _utils_index__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./utils */ 41232);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./utils/nodeType */ 1300);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var resize_observer_polyfill_dist_ResizeObserver_global__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! resize-observer-polyfill/dist/ResizeObserver.global */ 10936);\n/* harmony import */ var resize_observer_polyfill_dist_ResizeObserver_global__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(resize_observer_polyfill_dist_ResizeObserver_global__WEBPACK_IMPORTED_MODULE_22__);\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_3___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_2___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar _ref = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_21__.treeUtils || {},\n  dfs = _ref.dfs;\nvar prefixCls = 'nocode-flow';\nvar NocodeFlow = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)((0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.forwardRef)(function (props, forwardedRef) {\n  var _props$data = props.data,\n    data = _props$data === void 0 ? [] : _props$data,\n    _props$meta = props.meta,\n    meta = _props$meta === void 0 ? {} : _props$meta,\n    onData = props.onData,\n    _props$showMessage = props.showMessage,\n    showMessage = _props$showMessage === void 0 ? function (msg) {\n      var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;\n      console.log('showMessage-------', msg);\n      // Message[type]({\n      //   content: msg,\n      //   closable: type === 'error',\n      //   duration: 2000,\n      //   style: { background: '#fff', borderColor: '#fff', color: '#212121', boxShadow: '0 4px 10px 1px rgba(0,0,0,0.12)' }\n      // })\n    } : _props$showMessage,\n    _props$invokeAction = props.invokeAction,\n    invokeAction = _props$invokeAction === void 0 ? function (actionName, args, params) {\n      console.log('invokeAction-------', actionName, params);\n    } : _props$invokeAction,\n    batchInvoke = props.batchInvoke,\n    _props$getEncodeValue = props.getEncodeValue,\n    getEncodeValue = _props$getEncodeValue === void 0 ? function (value) {\n      return value;\n    } : _props$getEncodeValue,\n    _props$invokeApi = props.invokeApi,\n    invokeApi = _props$invokeApi === void 0 ? {} : _props$invokeApi,\n    onFlowDesignerApi = props.onApi,\n    flowStatus = props.flowStatus,\n    compareType = props.compareType,\n    getControlText = props.getControlText,\n    webMsg = props.webMsg,\n    baseHooks = props.baseHooks,\n    baseUrl = props.baseUrl,\n    customUtils = props.customUtils;\n  var _data = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(data, 3),\n    flowData = _data[0],\n    // 流程相关的业务数据\n    expressionData = _data[1],\n    // 公式相关的数据\n    errorsOrVarData // 错误或者变量数据\n    = _data[2];\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n  var designerDataRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(flowData);\n  var kdesignerRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n  var controlIconMapRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n  var apiTestResults = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)({}); // 缓存api节点测试结果（PRJ-00442267【无代码】第三方API节点点击测试后，测试内容要缓存起来，方便再次点击该节点时查看上次的测试内容而不需要再点一下测试按钮。刷新、关闭、退出页面时清空缓存即可。）\n\n  // 设计器业务数据\n  console.time('构造业务数据');\n  var designerData = (0,_utils_data__WEBPACK_IMPORTED_MODULE_16__.transformData)(flowData);\n  console.timeEnd('构造业务数据');\n\n  // 设计器元数据\n  console.time('构造元数据');\n  var designerMeta = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return (0,_utils_meta__WEBPACK_IMPORTED_MODULE_15__.adaptorMeta)(meta, designerData);\n  }, [meta, designerData]);\n  console.log('meta', meta, designerMeta);\n  console.timeEnd('构造元数据');\n\n  // 初始的变量\n  var initVariables = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return (0,_utils_index__WEBPACK_IMPORTED_MODULE_19__.variablesTitleSplit)((errorsOrVarData === null || errorsOrVarData === void 0 ? void 0 : errorsOrVarData.variables) || {});\n  }, []);\n  // 变量\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)(initVariables),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_useState, 2),\n    variables = _useState2[0],\n    setVariables = _useState2[1];\n\n  // 获取控件图标信息\n  var getControlIconMap = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (type) {\n    var _controlIconMapRef$cu;\n    if (!controlIconMapRef.current) {\n      if (Array.isArray(designerMeta.Categories)) {\n        var controls = designerMeta.Categories.reduce(function (accum, cur) {\n          return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(accum).call(accum, cur.Controls);\n        }, []);\n        controlIconMapRef.current = {};\n        controls.forEach(function (control) {\n          var Id = control.Id,\n            _control$Icon = control.Icon,\n            icon = _control$Icon === void 0 ? 'liucheng' : _control$Icon,\n            _control$Bg = control.Bg,\n            bgc = _control$Bg === void 0 ? '#ffffff' : _control$Bg;\n          controlIconMapRef.current[Id] = {\n            bgc: bgc,\n            icon: icon\n          };\n        });\n      }\n    }\n    return ((_controlIconMapRef$cu = controlIconMapRef.current) === null || _controlIconMapRef$cu === void 0 ? void 0 : _controlIconMapRef$cu[type]) || {\n      icon: 'liucheng',\n      bgc: '#ffffff'\n    };\n  }, [designerMeta]);\n\n  // 设计器视图\n  var getViews = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (viewName) {\n    switch (viewName) {\n      case 'main':\n        {\n          return {\n            main: _views_main_view__WEBPACK_IMPORTED_MODULE_13__[\"default\"]\n          };\n        }\n    }\n  }, [designerMeta]);\n\n  // 设计器基本配置\n  var globalConfig = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return {\n      showMessage: showMessage,\n      getViews: getViews,\n      enableError: true,\n      keywordMapping: {\n        // 所有meta和data属性名大小写默认配置\n        id: 'id',\n        type: 'type',\n        name: 'name',\n        key: 'key',\n        parentId: 'parentId',\n        items: 'Items'\n      },\n      dataPortalIdPrefix: \"\".concat(prefixCls, \"-top-view\"),\n      enableDiffDefaultData: false,\n      controlViewSetting: {\n        hideItemView: true\n      },\n      propertyViewSetting: {\n        hideItemView: true\n      },\n      preHandle: _preHandle__WEBPACK_IMPORTED_MODULE_17__[\"default\"],\n      getPropertyEditors: _editors__WEBPACK_IMPORTED_MODULE_18__[\"default\"],\n      filterProperty: _utils_meta__WEBPACK_IMPORTED_MODULE_15__.filterProperty,\n      getOutlineItemIcon: function getOutlineItemIcon(type) {\n        return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__.Icon, {\n          prefix: \"designericon\",\n          type: getControlIconMap(type).icon,\n          className: \"rule-designer-control-icon\"\n        });\n      }\n    };\n  }, [showMessage, _utils_meta__WEBPACK_IMPORTED_MODULE_15__.filterProperty, getViews, _editors__WEBPACK_IMPORTED_MODULE_18__[\"default\"]]);\n  var kuiConfig = {\n    prefixCls: 'kd'\n  };\n  var pubEvent = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (key, formData) {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.eventBus.emit(key, formData);\n  }, []);\n  var setDesignerDataRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (data) {\n    designerDataRef.current = _objectSpread(_objectSpread({}, designerDataRef.current), data);\n    if ((0,_utils_index__WEBPACK_IMPORTED_MODULE_19__.isReadonlyStatus)(flowStatus)) {\n      var _designerDataRef$curr;\n      designerDataRef.current.edges = ((_designerDataRef$curr = designerDataRef.current.edges) === null || _designerDataRef$curr === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(_designerDataRef$curr).call(_designerDataRef$curr, function (item) {\n        if (item._Type_ === 'smoothstep') {\n          return _objectSpread(_objectSpread({}, item), {}, {\n            _Type_: _utils_nodeType__WEBPACK_IMPORTED_MODULE_20__.SEQUENCEFLOW\n          });\n        }\n        return item;\n      })) || [];\n    }\n    onData && onData(designerDataRef.current);\n  }, [designerDataRef.current, flowStatus]);\n  var onApiProxy = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (api) {\n    api === null || api === void 0 || api.views.setViewHideState('top')(true);\n    kdesignerApi.current = _objectSpread({}, api);\n    onFlowDesignerApi({\n      kdesignerApi: kdesignerApi.current,\n      pubEvent: pubEvent,\n      setDesignerDataRef: setDesignerDataRef\n    });\n  }, [onFlowDesignerApi, setDesignerDataRef]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    onFlowDesignerApi(_objectSpread(_objectSpread({}, kdesignerApi.current), {}, {\n      setDesignerDataRef: setDesignerDataRef,\n      pubEvent: pubEvent\n    }));\n  }, [setDesignerDataRef]);\n\n  // 获取节点meta名字\n  var getNodeMetaNameById = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (id) {\n    if (!id) return '';\n    var _kdesignerApi$current = kdesignerApi.current,\n      dataApi = _kdesignerApi$current.data,\n      metaApi = _kdesignerApi$current.meta;\n    var nodeData = dataApi.findControl(id) || {};\n    var nodeType = nodeData._Type_;\n    var nodeMeta = metaApi.getControlMeta(nodeType);\n    return nodeMeta.Name || '';\n  }, []);\n\n  // 获取前面节点的所有变量\n  var getPreNodeVariablesById = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (id) {\n    var varType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n    var filterCallback = arguments.length > 2 ? arguments[2] : undefined;\n    var expandOption = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n    var dataApi = kdesignerApi.current.data;\n    var _ref2 = dataApi.getData() || {},\n      _ref2$Items = _ref2.Items,\n      curNodeList = _ref2$Items === void 0 ? [] : _ref2$Items;\n\n    // 为'*'就是全部，不过滤类型，下面类型filterVarType === '*' ? [] : filterVarType.replace('*', '') ? filterVarType.split(',') : []\n    var filterVarTypeList = varType !== null && varType !== void 0 && varType.replace('*', '') ? varType.split(',') : [];\n    var preNodeVariables = filterVarTypeList.length === 0 || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(filterVarTypeList).call(filterVarTypeList, _utils_index__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_FLOW_VAR.type) ? [_utils_index__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_FLOW_VAR] : [];\n    var parentIdlist = (0,_utils_index__WEBPACK_IMPORTED_MODULE_19__.findParentIdListById)(id, curNodeList);\n    _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(variables).forEach(function (item) {\n      if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(parentIdlist).call(parentIdlist, item)) {\n        var children = (0,_utils_index__WEBPACK_IMPORTED_MODULE_19__.filterVarListByType)(item, variables[item], filterVarTypeList, filterCallback, expandOption);\n        // 产品说没有类型的时候不显示\n        if (children.length > 0) {\n          var controlData = dataApi.findControl(item);\n          preNodeVariables.push(_objectSpread(_objectSpread({}, controlData), {}, {\n            nodeId: item,\n            key: item,\n            title: (0,_utils_index__WEBPACK_IMPORTED_MODULE_19__.getVariablesTitle)(controlData),\n            formId: controlData === null || controlData === void 0 ? void 0 : controlData.formId,\n            children: children,\n            selectable: false,\n            checkable: false\n          }));\n        }\n      }\n    });\n    return preNodeVariables;\n  }, [variables]);\n\n  // 获取当前节点的所有变量\n  var getNodeVariablesById = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (id) {\n    return variables[id];\n  }, [variables]);\n\n  /**\n   * 获取关联表单对应的formId\n   * @param nodeId\n   * @param varId\n   * @param varType\n   * @returns\n   */\n  var getRefBillVarFormId = function getRefBillVarFormId(nodeId, varId, varType) {\n    var preNodeVariables = getPreNodeVariablesById(nodeId, varType) || [];\n    var formId = null;\n    if (preNodeVariables !== null && preNodeVariables !== void 0 && preNodeVariables.length) {\n      var _selectRefBill$option;\n      var selectRefBill = dfs(preNodeVariables, function (node) {\n        return node.value === varId;\n      }) || {};\n      if (selectRefBill !== null && selectRefBill !== void 0 && (_selectRefBill$option = selectRefBill.option) !== null && _selectRefBill$option !== void 0 && _selectRefBill$option.billEntityId) {\n        formId = selectRefBill === null || selectRefBill === void 0 ? void 0 : selectRefBill.option.billEntityId;\n      }\n    }\n    return formId;\n  };\n\n  // 设计器上下文\n  var designerValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)({\n    getKdesignerApi: function getKdesignerApi() {\n      return kdesignerApi.current;\n    },\n    setDesignerDataRef: setDesignerDataRef,\n    getDesignerDataRef: function getDesignerDataRef() {\n      return designerDataRef.current;\n    },\n    getBaseHooks: function getBaseHooks(type) {\n      return (baseHooks === null || baseHooks === void 0 ? void 0 : baseHooks[type]) || function () {};\n    },\n    getPrefixCls: function getPrefixCls(configPrefixCls, suffixCls, customizePrefixCls) {\n      var _context;\n      // 获取样式前缀方法\n      if (customizePrefixCls) return customizePrefixCls;\n      configPrefixCls = configPrefixCls || prefixCls;\n      return suffixCls ? _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context = \"\".concat(configPrefixCls, \"-\")).call(_context, suffixCls) : configPrefixCls;\n    },\n    getNodeMetaNameById: getNodeMetaNameById,\n    prefixCls: prefixCls,\n    invokeAction: invokeAction,\n    invokeApi: invokeApi,\n    flowStatus: flowStatus,\n    isReadonly: (0,_utils_index__WEBPACK_IMPORTED_MODULE_19__.isReadonlyStatus)(flowStatus),\n    flowMetaData: data,\n    // 包含函数、变量、流程数据\n    setVariables: setVariables,\n    expressionData: expressionData,\n    getControlText: getControlText,\n    compareType: compareType,\n    webMsg: webMsg,\n    baseUrl: baseUrl,\n    batchInvoke: batchInvoke,\n    customUtils: customUtils,\n    apiTestResults: apiTestResults\n  });\n  var designerContextValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return _objectSpread(_objectSpread({}, designerValue.current), {}, {\n      getPreNodeVariablesById: getPreNodeVariablesById,\n      // 获取前面节点的所有变量\n      getNodeVariablesById: getNodeVariablesById,\n      getControlIconMap: getControlIconMap,\n      getRefBillVarFormId: getRefBillVarFormId\n    });\n  }, [getPreNodeVariablesById, getControlIconMap, getNodeVariablesById]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_12__.ConfigProvider, {\n    value: kuiConfig\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_context__WEBPACK_IMPORTED_MODULE_14__.DesignerContext.Provider, {\n    value: designerContextValue\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(MemoDesigner, {\n    ref: kdesignerRef,\n    globalConfig: globalConfig,\n    meta: designerMeta,\n    data: designerData,\n    onApi: onApiProxy\n  }))));\n}));\n\n// 函数返回true, 不渲染; 函数返回false, 重新渲染\nvar MemoDesigner = kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().memo((designer_base_Main__WEBPACK_IMPORTED_MODULE_11___default()));\nNocodeFlow.displayName = 'NocodeFlow';\n/* harmony default export */ __webpack_exports__[\"default\"] = (NocodeFlow);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///90236\n");

/***/ }),

/***/ 35260:
/*!********************************!*\
  !*** ./src/preHandle/index.ts ***!
  \********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _preAddHandle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./preAddHandle */ 95968);\n/* harmony import */ var _preDeleteHandle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./preDeleteHandle */ 3040);\n\n\n\n\n\nvar preHandleFnMap = (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.ActionType.ADD, _preAddHandle__WEBPACK_IMPORTED_MODULE_3__[\"default\"]), designer_base_Main__WEBPACK_IMPORTED_MODULE_2__.ActionType.DELETE, _preDeleteHandle__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\nvar preHandle = function preHandle(_ref, handleConfig) {\n  var action = _ref.action,\n    dataContext = _ref.dataContext,\n    selectionContext = _ref.selectionContext,\n    globalConfig = _ref.globalConfig,\n    dataFactory = _ref.dataFactory,\n    modelFactory = _ref.modelFactory,\n    metaReader = _ref.metaReader,\n    success = _ref.success,\n    fail = _ref.fail;\n  var dataRef = globalConfig.dataRef,\n    keywordMapping = globalConfig.keywordMapping;\n  var preHandleResults = [];\n  var type = action.type;\n  var preHandleFn = preHandleFnMap[type];\n  if (preHandleFn) {\n    var allActions = preHandleFn({\n      globalConfig: globalConfig,\n      dataContext: dataContext,\n      selectionContext: selectionContext,\n      action: action,\n      dataFactory: dataFactory,\n      modelFactory: modelFactory,\n      metaReader: metaReader\n    }, success(preHandleResults), fail);\n    if (allActions) {\n      preHandleResults.push.apply(preHandleResults, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(allActions));\n    }\n  } else {\n    preHandleResults.push(action);\n  }\n  if (preHandleResults.length) {\n    success(preHandleResults);\n  }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (preHandle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzUyNjAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBY0E7QUFLQTtBQVVBO0FBUkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUtBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBR0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy9wcmVIYW5kbGUvaW5kZXgudHM/NzZiMyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBY3Rpb25UeXBlLCBJTWV0YUFwaSwgSUNvbnRyb2xBY3Rpb24sIElEYXRhUmVhZGVyLCBJR2xvYmFsQ29uZmlnLCBJU2VsZWN0aW9uIH0gZnJvbSAnZGVzaWduZXJfYmFzZS9NYWluJ1xuaW1wb3J0IHByZUFkZEhhbmRsZSBmcm9tICcuL3ByZUFkZEhhbmRsZSdcbmltcG9ydCBwcmVEZWxldGVIYW5kbGUgZnJvbSAnLi9wcmVEZWxldGVIYW5kbGUnXG5cbmludGVyZmFjZSBQcmVIYW5kbGVQYXJhbSB7XG4gIGFjdGlvbjogSUNvbnRyb2xBY3Rpb25cbiAgZGF0YUNvbnRleHQ6IElEYXRhUmVhZGVyXG4gIHNlbGVjdGlvbkNvbnRleHQ6IElTZWxlY3Rpb25cbiAgZ2xvYmFsQ29uZmlnOiBJR2xvYmFsQ29uZmlnXG4gIGRhdGFGYWN0b3J5OiBGdW5jdGlvblxuICBtb2RlbEZhY3Rvcnk6IEZ1bmN0aW9uXG4gIG1ldGFSZWFkZXI6IElNZXRhQXBpXG4gIHN1Y2Nlc3M6IEZ1bmN0aW9uXG4gIGZhaWw6IEZ1bmN0aW9uXG59XG5cbmNvbnN0IHByZUhhbmRsZUZuTWFwID0ge1xuICBbQWN0aW9uVHlwZS5BRERdOiBwcmVBZGRIYW5kbGUsXG4gIFtBY3Rpb25UeXBlLkRFTEVURV06IHByZURlbGV0ZUhhbmRsZSxcbn1cblxuY29uc3QgcHJlSGFuZGxlID0gKHtcbiAgYWN0aW9uLFxuICBkYXRhQ29udGV4dCxcbiAgc2VsZWN0aW9uQ29udGV4dCxcbiAgZ2xvYmFsQ29uZmlnLFxuICBkYXRhRmFjdG9yeSxcbiAgbW9kZWxGYWN0b3J5LFxuICBtZXRhUmVhZGVyLFxuICBzdWNjZXNzLFxuICBmYWlsLFxufTogUHJlSGFuZGxlUGFyYW0sIGhhbmRsZUNvbmZpZzogYW55KSA9PiB7XG4gIGNvbnN0IHsgZGF0YVJlZiwga2V5d29yZE1hcHBpbmcgfSA9IGdsb2JhbENvbmZpZ1xuICBjb25zdCBwcmVIYW5kbGVSZXN1bHRzID0gW11cbiAgY29uc3QgeyB0eXBlIH0gPSBhY3Rpb25cbiAgY29uc3QgcHJlSGFuZGxlRm4gPSBwcmVIYW5kbGVGbk1hcFt0eXBlXVxuICBpZiAocHJlSGFuZGxlRm4pIHtcbiAgICBjb25zdCBhbGxBY3Rpb25zID0gcHJlSGFuZGxlRm4oXG4gICAgICB7XG4gICAgICAgIGdsb2JhbENvbmZpZyxcbiAgICAgICAgZGF0YUNvbnRleHQsXG4gICAgICAgIHNlbGVjdGlvbkNvbnRleHQsXG4gICAgICAgIGFjdGlvbixcbiAgICAgICAgZGF0YUZhY3RvcnksXG4gICAgICAgIG1vZGVsRmFjdG9yeSxcbiAgICAgICAgbWV0YVJlYWRlclxuICAgICAgfSxcbiAgICAgIHN1Y2Nlc3MocHJlSGFuZGxlUmVzdWx0cylcbiAgICAgICxcbiAgICAgIGZhaWxcbiAgICApXG4gICAgaWYgKGFsbEFjdGlvbnMpIHtcbiAgICAgIHByZUhhbmRsZVJlc3VsdHMucHVzaCguLi5hbGxBY3Rpb25zKVxuICAgIH1cbiAgfSBlbHNlIHtcbiAgICBwcmVIYW5kbGVSZXN1bHRzLnB1c2goYWN0aW9uKVxuICB9XG4gIGlmIChwcmVIYW5kbGVSZXN1bHRzLmxlbmd0aCkge1xuICAgIHN1Y2Nlc3MocHJlSGFuZGxlUmVzdWx0cylcbiAgfVxufVxuXG5cbmV4cG9ydCBkZWZhdWx0IHByZUhhbmRsZVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///35260\n");

/***/ }),

/***/ 95968:
/*!***************************************!*\
  !*** ./src/preHandle/preAddHandle.ts ***!
  \***************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ 41232);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/nodeType */ 1300);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/control */ 3700);\n\n\n\n\n\n\n\n\nvar _excluded = [\"type\", \"parentId\", \"childId\", \"name\", \"rootKey\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n/*\n * @Author: wbw\n * @Email: wbw@kingdee.com\n * @Date: 2022-03-28 16:19:57\n * @Last Modified by: fjr\n * @LastEditTime: 2023-11-22 13:47:18\n * @Description: ...\n */\n\n\n\n\n\n// 获取控件最大下标\nvar getControlMaxIndexByType = function getControlMaxIndexByType(dataContext, controlType) {\n  var sameTypeControls = dataContext.filterControls(function (control) {\n    return control._Type_ === controlType;\n  }) || [];\n  var sameTypeControlIndexList = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(sameTypeControls).call(sameTypeControls, function (item) {\n    var _item$id;\n    // 因为id的组成规则是 \"Proc_20230415_1681564482077_StartSignalEvent0\"，因此使用控件类型进行分割，拿到后面的值\n    var list = (_item$id = item.id) === null || _item$id === void 0 ? void 0 : _item$id.split(controlType);\n    return Number((list === null || list === void 0 ? void 0 : list[1]) || 0);\n  });\n\n  // sameTypeControlIndexList为[1, 2, 3, 8, 5...]数字类型之类的数组，在数组里面找最大值\n  var maxIndex = sameTypeControlIndexList.length > 0 ? Math.max.apply(Math, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(sameTypeControlIndexList)) + 1 : 0;\n  return maxIndex;\n};\n\n/**\n * 在判断分支下面创建判断节点\n * @param { dataContext, action, addIndex, curNodeKey, id }\n * @returns {Node, index}\n */\n// const createBranchJudge = ({ dataContext, action, addIndex, curNodeKey, id }:any) => {\n//   const { type, parentId, name } = action?.value || {}\n//   const childrens = dataContext.getSubControls(parentId)\n//   const judges = childrens.filter((item:any) => item._Type_ === type) // 所有子节点中的分支节点\n//   const node = { // 节点数据\n//     _Type_: type,\n//     id,\n//     number: curNodeKey, // 节点编码\n//     itemId: id, // 节点ID\n//     parentId,\n//     name\n//   }\n//   return { node, index: addIndex + judges.length }\n// }\n\nvar createBranchActions = function createBranchActions(value, node, index) {\n  var name = value.name,\n    rootKey = value.rootKey,\n    childActions = value.childActions;\n  var actions = [];\n  var rootId = node.id;\n\n  // 分支开始节点\n  actions.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createAddAction)(_objectSpread(_objectSpread({}, node), {}, {\n    leaveMode: 'parallel'\n  }), {\n    index: index\n  }));\n  var len = 3;\n  var judgeNodeIdList = [];\n  if ((childActions === null || childActions === void 0 ? void 0 : childActions.length) > 0) {\n    len = childActions.length + 1;\n    for (var i = 0; i < childActions.length; i++) {\n      var curActionData = childActions[i];\n      var branchANode = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.createNodeInfo)(_objectSpread({\n        rootKey: rootKey,\n        type: _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__.NOCODE_JUDGE_TASK,\n        parentId: node.id\n      }, curActionData));\n      judgeNodeIdList.push(branchANode.id);\n      actions.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createAddAction)(branchANode, {\n        index: index + i\n      }));\n    }\n  } else {\n    for (var _i = 1; _i < len; _i++) {\n      var _branchANode = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.createNodeInfo)({\n        rootKey: rootKey,\n        type: _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__.NOCODE_JUDGE_TASK,\n        parentId: node.id,\n        name: name,\n        seq: _i\n      });\n      judgeNodeIdList.push(_branchANode.id);\n      actions.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createAddAction)(_branchANode, {\n        index: index + _i\n      }));\n    }\n  }\n\n  // 空节点,后端不增加新节点，故转节点类型转成gateway，用isNullNode来区分\n  var nullNode = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.createNodeInfo)({\n    parentId: rootId,\n    name: 'nullNode',\n    rootKey: rootKey,\n    type: _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__.NOCODE_GATEWAY,\n    isNullNode: true,\n    parentIds: judgeNodeIdList.join(',')\n  });\n  actions.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createAddAction)(nullNode, {\n    index: index + len\n  }));\n  return actions;\n};\nvar preAddHandle = function preAddHandle(_ref, resolve, reject) {\n  var globalConfig = _ref.globalConfig,\n    dataContext = _ref.dataContext,\n    selectionContext = _ref.selectionContext,\n    action = _ref.action,\n    dataFactory = _ref.dataFactory,\n    modelFactory = _ref.modelFactory,\n    metaReader = _ref.metaReader;\n  var type = action.type,\n    value = action.value;\n  var preHandleResults = [action];\n  if (Array.isArray(value)) return preHandleResults;\n  var controlType = value.type,\n    parentId = value.parentId,\n    childId = value.childId,\n    name = value.name,\n    rootKey = value.rootKey,\n    other = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(value, _excluded);\n  var otherActions = [];\n  /**\n   * 添加事件节点处理：\n   * 1.新加的数据需要将父子关系重新变更\n   */\n  var addIndex = dataContext.findControlIndex(parentId) + 1;\n\n  // const maxIndex = getControlMaxIndexByType(dataContext, controlType)\n  // const curNodeKey = createFlowNodeNumber(controlType, maxIndex)\n  // const id = createFlowNodeId(rootKey, controlType, maxIndex)\n  var node = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.createNodeInfo)({\n    rootKey: rootKey,\n    parentId: parentId,\n    type: controlType,\n    name: name\n  });\n  var nextChildParentId = node.id;\n\n  // const rootId = createFlowNodeId(rootKey, controlType, maxIndex)\n\n  if (controlType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__.NOCODE_GATEWAY) {\n    // 创建判断分支\n    var branchActions = createBranchActions(value, node, addIndex) || [];\n    var _ref2 = branchActions[branchActions.length - 1] || {\n        value: {}\n      },\n      nullNode = _ref2.value;\n    nextChildParentId = nullNode.id;\n    otherActions.push.apply(otherActions, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(branchActions));\n  } else if (controlType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__.NOCODE_JUDGE_TASK && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(parentId).call(parentId, _utils_nodeType__WEBPACK_IMPORTED_MODULE_12__.NOCODE_GATEWAY)) {\n    // 创建判断节点\n    var childrens = dataContext.getSubControls(parentId);\n    var judges = [];\n    var seqList = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(childrens).call(childrens, function (item) {\n      if (item._Type_ === controlType) judges.push(item);\n      return (item === null || item === void 0 ? void 0 : item.seq) || '';\n    }); // 所有子节点中的分支节点\n\n    // const { node, index } = createBranchJudge({ dataContext, action, addIndex, curNodeKey, id: })\n    otherActions.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createAddAction)(_objectSpread(_objectSpread({}, node), {}, {\n      seq: Math.max.apply(Math, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(seqList)) + 1\n    }), {\n      index: addIndex + judges.length\n    }));\n  } else {\n    // const nodeData = {\n    //   ...other,\n    //   _Type_: controlType,\n    //   id,\n    //   number: curNodeKey, // 节点编码\n    //   itemId: id, // 节点ID\n    //   name, // 节点默认名称\n    //   parentId,\n    //   _disp_: {}\n    // }\n    var newControl = (0,_utils_control__WEBPACK_IMPORTED_MODULE_13__.createNewControl)(metaReader, _objectSpread(_objectSpread(_objectSpread({}, other), node), {}, {\n      _disp_: {}\n    }));\n    otherActions.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createAddAction)(newControl, {\n      index: addIndex\n    }));\n  }\n  var childControl = dataContext.findControl(childId);\n  var updateChildAction = {};\n  if (childControl.isNullNode) {\n    var _context;\n    // const parentIdsList = childControl.parentIds.split(',')\n    // if (parentIdsList?.length > 0) {\n    //   // 添加的节点父节点是判断分支\n    //   const newParentIdsList = parentIdsList?.map((item:string) => item === parentId ? id : item)\n    //   updateChildAction = createUpdateAction([[childId, { parentIds: newParentIdsList.join(',') }]])\n    // }\n\n    // 添加的节点父节点是否存在于当前空节点的parentIds内，存在则替换，否则添加\n    var parentIds = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_context = childControl.parentIds).call(_context, parentId) ? childControl.parentIds.replace(parentId, nextChildParentId) : [childControl.parentIds, nextChildParentId].join();\n    updateChildAction = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createUpdateAction)([[childId, {\n      parentIds: parentIds\n    }]]);\n  } else {\n    updateChildAction = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_10__.createUpdateAction)([[childId, {\n      parentId: nextChildParentId\n    }]]);\n  }\n  otherActions.push(updateChildAction);\n  return otherActions;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (preAddHandle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///95968\n");

/***/ }),

/***/ 3040:
/*!******************************************!*\
  !*** ./src/preHandle/preDeleteHandle.ts ***!
  \******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ 73980);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/nodeType */ 1300);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/control */ 3700);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants/propnames */ 94096);\n\n\nvar _excluded = [\"type\", \"value\"];\n\n\n\n\n\n/*\n * @Description: p\n * @Author: jianhang_he\n * @Date: 2023-03-02 15:43:34\n * @LastEditTime: 2023-08-01 09:41:43\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n// 根据分支节点id找到对应的分支空节点\nvar findNullNodeByBranchNodeId = function findNullNodeByBranchNodeId(dataApi, branchNodeId) {\n  var subControls = dataApi.getSubControls(branchNodeId);\n  return _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default()(subControls).call(subControls, function (item) {\n    return (0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isNullNode)(item);\n  });\n};\nvar getDeleteJudgeNodeAction = function getDeleteJudgeNodeAction(dataApi, node) {\n  var action = [];\n  var parentId = node.parentId,\n    controlId = node.id;\n  var parentControl = dataApi.findControl(parentId) || {};\n  if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isBranchNode)(parentControl)) {\n    // 需要找到判断节点下面的所有节点（这个是包含当前判断节点）\n    var allChildIds = dataApi.getAllSubControlIds(controlId);\n\n    // 要修正空节点的parentIds的指向\n    var nullNode = findNullNodeByBranchNodeId(dataApi, parentId);\n\n    // 需要更正空节点的指向\n    if (nullNode) {\n      var _parentIds$split$filt, _context;\n      var id = nullNode.id,\n        parentIds = nullNode.parentIds;\n\n      // 需要过滤判断节点分支下和空节点连接的那个节点\n      var newParentIds = (_parentIds$split$filt = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(_context = parentIds.split(',')).call(_context, function (item) {\n        return item !== allChildIds[allChildIds.length - 1];\n      })) === null || _parentIds$split$filt === void 0 ? void 0 : _parentIds$split$filt.join(',');\n\n      // 需要把判断节点后面的节点都删除\n      action.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createDeleteAction)(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_4___default()(allChildIds).call(allChildIds, 1)));\n      // 需要更正空节点的parentIds的指向\n      action.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUpdateAction)([[id, {\n        parentIds: newParentIds\n      }]]));\n    }\n  } else {\n    // 普通的判断节点删除，需要修改子节点的父指向\n    var childNodes = dataApi.getSubControls(controlId);\n    if (childNodes[0]) {\n      var childNode = childNodes[0];\n      action.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUpdateAction)([[childNode.id, {\n        parentId: parentId\n      }]]));\n    }\n  }\n  return action;\n};\nvar preDeleteHandle = function preDeleteHandle(_ref, resolve, reject) {\n  var globalConfig = _ref.globalConfig,\n    dataContext = _ref.dataContext,\n    selectionContext = _ref.selectionContext,\n    action = _ref.action,\n    dataFactory = _ref.dataFactory,\n    modelFactory = _ref.modelFactory,\n    metaReader = _ref.metaReader;\n  var type = action.type,\n    value = action.value,\n    rest = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(action, _excluded);\n  var otherActions = [];\n  if (Array.isArray(value)) {\n    var node = dataContext.findControl(value[0]);\n    var controlType = node._Type_,\n      parentId = node.parentId,\n      id = node.id;\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isBranchNode)(node)) {\n      var _dataContext$getSubCo;\n      var childControls = dataContext.getAllSubControls(id);\n      var childUpdates = [];\n      var nullNodeControl = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_2___default()(childControls).call(childControls, function (node) {\n        var nodeType = node._Type_,\n          nodeParentId = node.parentId;\n        return (0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isNullNode)(node) && nodeParentId === id;\n      });\n      var nullNodeChildControl = (_dataContext$getSubCo = dataContext.getSubControls(nullNodeControl === null || nullNodeControl === void 0 ? void 0 : nullNodeControl.id)) === null || _dataContext$getSubCo === void 0 ? void 0 : _dataContext$getSubCo[0];\n      if (!nullNodeChildControl || (0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isNullNode)(nullNodeChildControl)) {\n        var _data$ITEMS;\n        // 删除分支里面的分支\n        var data = dataContext.getData();\n        (_data$ITEMS = data[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.ITEMS]) === null || _data$ITEMS === void 0 || _data$ITEMS.forEach(function (control) {\n          var controlId = control.id,\n            controlParentId = control.parentId;\n          if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isNullNode)(control) && controlId !== (nullNodeControl === null || nullNodeControl === void 0 ? void 0 : nullNodeControl.id)) {\n            var parentIds = control.parentIds,\n              nullNodeId = control.id;\n            if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_5___default()(parentIds).call(parentIds, nullNodeControl.id)) {\n              var parentIdsList = parentIds.split(',');\n              var newParentListIds = [];\n              parentIdsList.forEach(function (nullNodeParentId) {\n                if (nullNodeParentId === (nullNodeControl === null || nullNodeControl === void 0 ? void 0 : nullNodeControl.id)) {\n                  newParentListIds.push(parentId);\n                } else {\n                  newParentListIds.push(nullNodeParentId);\n                }\n              });\n              childUpdates.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUpdateAction)([[controlId, {\n                parentIds: newParentListIds.join(',')\n              }]]));\n            }\n          }\n        });\n      } else {\n        childUpdates.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUpdateAction)([[nullNodeChildControl.id, {\n          parentId: parentId\n        }]]));\n      }\n      otherActions.push.apply(otherActions, childUpdates);\n    } else {\n      var parentControl = dataContext.findControl(parentId) || {};\n      if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isJudgeNode)(node) && (0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isBranchNode)(parentControl)) {\n        var deleteJudgeNodeAction = getDeleteJudgeNodeAction(dataContext, node);\n        otherActions.push.apply(otherActions, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(deleteJudgeNodeAction));\n      } else {\n        value.forEach(function (id) {\n          var _dataContext$findCont = dataContext.findControl(id),\n            controlType = _dataContext$findCont._Type_,\n            parentId = _dataContext$findCont.parentId;\n          if (!(0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isStartNode)(controlType)) {\n            var _data$ITEMS2;\n            var _childUpdates = [];\n            var _data = dataContext.getData();\n            (_data$ITEMS2 = _data[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.ITEMS]) === null || _data$ITEMS2 === void 0 || _data$ITEMS2.forEach(function (control) {\n              var controlId = control.id,\n                controlParentId = control.parentId;\n              if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isNullNode)(control)) {\n                var parentIds = control.parentIds;\n                if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_5___default()(parentIds).call(parentIds, id)) {\n                  var parentIdsList = parentIds.split(',');\n                  var newParentListIds = [];\n                  parentIdsList.forEach(function (nullNodeParentId) {\n                    if (nullNodeParentId === id) {\n                      // 删除的节点是判断节点的时候，分两种情况\n                      // 1、这个判断节点的父节点是分支节点的时候，子节点的parentids直接就是过滤掉这个判断节点的id即可\n                      // 2、这个判断节点的父节点不是分支节点的时候，子节点的parentids需要过滤掉这个判断节点的id，同时还得接上判断节点的父id\n                      if (controlType === _utils_nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_JUDGE_TASK) {\n                        var _parentControl = dataContext.getParentControl(id);\n                        if (!(0,_utils_control__WEBPACK_IMPORTED_MODULE_9__.isBranchNode)(_parentControl)) {\n                          newParentListIds.push(parentId);\n                        }\n                      } else {\n                        newParentListIds.push(parentId);\n                      }\n                    } else {\n                      newParentListIds.push(nullNodeParentId);\n                    }\n                  });\n                  _childUpdates.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUpdateAction)([[controlId, {\n                    parentIds: newParentListIds === null || newParentListIds === void 0 ? void 0 : newParentListIds.join(',')\n                  }]]));\n                }\n              } else {\n                if (controlParentId === id) {\n                  _childUpdates.push((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUpdateAction)([[controlId, {\n                    parentId: parentId\n                  }]]));\n                }\n              }\n            });\n            otherActions.push.apply(otherActions, _childUpdates);\n          }\n        });\n      }\n    }\n  }\n  return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_6___default()(otherActions).call(otherActions, [action]);\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (preDeleteHandle);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///3040\n");

/***/ }),

/***/ 3700:
/*!******************************!*\
  !*** ./src/utils/control.ts ***!
  \******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   copyControlFn: function() { return /* binding */ copyControlFn; },\n/* harmony export */   createNewControl: function() { return /* binding */ createNewControl; },\n/* harmony export */   createNewSettingDefaultData: function() { return /* binding */ createNewSettingDefaultData; },\n/* harmony export */   createNewSettingItem: function() { return /* binding */ createNewSettingItem; },\n/* harmony export */   deleteControlFn: function() { return /* binding */ deleteControlFn; },\n/* harmony export */   deleteSelectControlFn: function() { return /* binding */ deleteSelectControlFn; },\n/* harmony export */   isApiNode: function() { return /* binding */ isApiNode; },\n/* harmony export */   isAttachmentField: function() { return /* binding */ isAttachmentField; },\n/* harmony export */   isBranchNode: function() { return /* binding */ isBranchNode; },\n/* harmony export */   isCalcNode: function() { return /* binding */ isCalcNode; },\n/* harmony export */   isFindNode: function() { return /* binding */ isFindNode; },\n/* harmony export */   isGroupContainer: function() { return /* binding */ isGroupContainer; },\n/* harmony export */   isJudgeNode: function() { return /* binding */ isJudgeNode; },\n/* harmony export */   isNewAddNode: function() { return /* binding */ isNewAddNode; },\n/* harmony export */   isNotifyNode: function() { return /* binding */ isNotifyNode; },\n/* harmony export */   isNullNode: function() { return /* binding */ isNullNode; },\n/* harmony export */   isQueryModeByApi: function() { return /* binding */ isQueryModeByApi; },\n/* harmony export */   isQueryModeByRela: function() { return /* binding */ isQueryModeByRela; },\n/* harmony export */   isRefBill: function() { return /* binding */ isRefBill; },\n/* harmony export */   isRefBillTable: function() { return /* binding */ isRefBillTable; },\n/* harmony export */   isSelectField: function() { return /* binding */ isSelectField; },\n/* harmony export */   isStartNode: function() { return /* binding */ isStartNode; },\n/* harmony export */   isSysControl: function() { return /* binding */ isSysControl; },\n/* harmony export */   isSysRefBill: function() { return /* binding */ isSysRefBill; },\n/* harmony export */   isUpdateNode: function() { return /* binding */ isUpdateNode; },\n/* harmony export */   isUserNode: function() { return /* binding */ isUserNode; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _nodeType__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./nodeType */ 1300);\n/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./index */ 41232);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants */ 98092);\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_1___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_2___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_5___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_4___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-27 11:25:45\n * @LastEditTime: 2024-05-21 17:38:33\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n// 开始节点\nvar isStartNode = function isStartNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.START_SIGNAL_EVENT;\n};\n\n// 分支节点\nvar isBranchNode = function isBranchNode(_ref) {\n  var type = _ref._Type_,\n    isNullNode = _ref.isNullNode;\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_GATEWAY && !isNullNode;\n};\n\n// 空节点\nvar isNullNode = function isNullNode(_ref2) {\n  var type = _ref2._Type_,\n    isNullNode = _ref2.isNullNode;\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_GATEWAY && isNullNode;\n};\n\n// 判断节点\nvar isJudgeNode = function isJudgeNode(_ref3) {\n  var type = _ref3._Type_;\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_JUDGE_TASK;\n};\n\n// 运算节点\nvar isCalcNode = function isCalcNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.CALCULATE_AUTO_TASK;\n};\n\n// 新增节点\nvar isNewAddNode = function isNewAddNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NEW_BILL_AUTO_TASK;\n};\n// 修改节点\nvar isUpdateNode = function isUpdateNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.UPDATE_BILL_AUTO_TASK;\n};\n\n// 审核节点\nvar isAuditNode = function isAuditNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_AUDIT_TASK;\n};\n\n// 录入节点\nvar isUserNode = function isUserNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_USER_TASK;\n};\nvar isFindNode = function isFindNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.QUERY_DATA_AUTO_TASK;\n};\nvar isApiNode = function isApiNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_API_INVOKE_AUTO_TASK;\n};\n// 消息节点\nvar isNotifyNode = function isNotifyNode(type) {\n  return type === _nodeType__WEBPACK_IMPORTED_MODULE_8__.NOCODE_NOTIFY_TASK;\n};\n\n// 自定义JSON节点\n// export const isCustomJSONNode = (type: string): boolean => {\n//   return type === CUSTOM_JSON_TASK\n// }\n\nvar isAttachmentField = function isAttachmentField(type) {\n  return type === 'NoCodeAttachmentUploadField';\n};\nvar isRefBill = function isRefBill(type) {\n  return (type === null || type === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(type).call(type, 'NoCodeRefBillField')) || (type === null || type === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(type).call(type, 'NoCodeMulRefBillField'));\n};\nvar isSysRefBill = function isSysRefBill(type) {\n  var _context;\n  return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(_context = ['NoCodeCreatorField', 'NoCodeModifierField']).call(_context, type);\n};\nvar isSelectField = function isSelectField(type) {\n  return type === 'NoCodeSelectItemField';\n};\n\n// 删除控件\nvar deleteControlFn = function deleteControlFn(ids, kdesignerApi) {\n  var dataContext = kdesignerApi.data,\n    selectionContext = kdesignerApi.selection;\n  var firstDelectControl = {};\n  var deleteIds = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(ids).call(ids, function (item, index) {\n    var control = dataContext.findControl(item);\n    if (index === 0) {\n      firstDelectControl = control;\n    }\n    return !isStartNode(control._Type_);\n  });\n  if (!deleteIds.length) return;\n  var controlId = deleteIds[0];\n  var _firstDelectControl = firstDelectControl,\n    parentId = _firstDelectControl.parentId;\n  var _dataContext$getPrevS = dataContext.getPrevSibling(controlId),\n    _dataContext$getPrevS2 = _dataContext$getPrevS.control,\n    prevControl = _dataContext$getPrevS2 === void 0 ? {} : _dataContext$getPrevS2;\n  dataContext.deleteControl((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createDeleteAction)(deleteIds)).then(function () {\n    var parentControl = dataContext.findControl(parentId) || {};\n    if (isJudgeNode(firstDelectControl) && isBranchNode(parentControl)) {\n      if (isNullNode(prevControl)) {\n        var childrens = dataContext.getSubControls(parentId);\n        var judges = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_3___default()(childrens).call(childrens, function (item) {\n          return isJudgeNode(item);\n        }) || [];\n        var lastJudge = judges[judges.length - 1];\n        if (lastJudge !== null && lastJudge !== void 0 && lastJudge.id) {\n          selectionContext.setSelect([lastJudge.id]);\n        }\n      } else {\n        var prevControlId = prevControl.id;\n        if (prevControlId) {\n          selectionContext.setSelect([prevControlId]);\n        }\n      }\n    } else if (isNullNode(parentControl)) {\n      // 如果删除的分支前一个节点是空节点的时候，要选中最后的那个判断节点\n      var parentIds = parentControl.parentIds;\n      var parentIdList = parentIds.split(',');\n      var lastJudgeId = parentIdList[parentIdList.length - 1];\n      if (lastJudgeId) {\n        selectionContext.setSelect([lastJudgeId]);\n      }\n    } else {\n      selectionContext.setSelect([parentId]);\n    }\n  });\n};\n\n// 删除选中的控件\nvar deleteSelectControlFn = function deleteSelectControlFn(kdesignerApi) {\n  var selectionContext = kdesignerApi.selection;\n  var getSelection = selectionContext.getSelection;\n  var selection = getSelection();\n  if (selection.length === 1) {\n    deleteControlFn(selection, kdesignerApi);\n  }\n};\n\n// 创建默认设置项\nvar createNewSettingItem = function createNewSettingItem() {\n  var defaultData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n  var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'calcId';\n  return _objectSpread((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, key, (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_7__.createUUid)()), defaultData);\n};\n\n// 创建默认设置数据\nvar createNewSettingDefaultData = function createNewSettingDefaultData(property) {\n  var defaultData = {};\n  if (property) {\n    property.forEach(function (prop) {\n      var config = prop.Config,\n        number = prop.Number;\n      if (config) {\n        var _ref4 = config || {},\n          _ref4$Editor = _ref4.Editor,\n          Editor = _ref4$Editor === void 0 ? {} : _ref4$Editor;\n        defaultData[number] = Editor === null || Editor === void 0 ? void 0 : Editor.Default;\n      }\n    });\n  }\n  return defaultData;\n};\n\n// 创建新控件\nvar createNewControl = function createNewControl(metaApi, controlData) {\n  var type = controlData._Type_;\n  if (isCalcNode(type) || isUpdateNode(type)) {\n    var settingEditor = metaApi.getControlMetaEditor(type, 'setting') || {};\n    var childProperty = settingEditor.ChildProperty;\n    if (!childProperty) return controlData;\n    var defaultSettingItem = createNewSettingItem(createNewSettingDefaultData(childProperty));\n    var defaultSetting = [defaultSettingItem];\n    return _objectSpread(_objectSpread({}, controlData), {}, {\n      setting: defaultSetting\n    });\n  }\n  if (isAuditNode(type) || isUserNode(type)) {\n    // 审批节点和录入节点的主题默认是流程名称\n    return _objectSpread(_objectSpread({}, controlData), {}, {\n      taskSubject: (0,_index__WEBPACK_IMPORTED_MODULE_9__.transformConditionValue)((0,_index__WEBPACK_IMPORTED_MODULE_9__.createFieldRegText)(_constants__WEBPACK_IMPORTED_MODULE_10__.DEFAULT_FLOW_VAR.key, {\n        title: _constants__WEBPACK_IMPORTED_MODULE_10__.DEFAULT_FLOW_VAR.title\n      }), true)\n    });\n  }\n  return controlData;\n};\n\n/**\n * 复制控件\n * @param ids\n */\nvar copyControlFn = function copyControlFn(ids, kdesignerApi, showMessage, setCopyContent) {\n  if (!(ids !== null && ids !== void 0 && ids.length)) return;\n  var dataContext = kdesignerApi.data;\n  var selectControlsCopy = [];\n  for (var index = 0; index < ids.length; index++) {\n    var id = ids[index];\n    var controlData = dataContext.findControl(id);\n    if (isStartNode(controlData._Type_)) {\n      showMessage('触发节点不允许复制', 1);\n      return;\n    }\n    selectControlsCopy.push(controlData);\n  }\n  showMessage('复制成功', 0);\n  setCopyContent(selectControlsCopy);\n};\n\n// 通过关联表单查找\nvar isQueryModeByRela = function isQueryModeByRela(queryMode) {\n  return queryMode === 'byrela';\n};\n// 通过关联表单查找\nvar isQueryModeByApi = function isQueryModeByApi(queryMode) {\n  return queryMode === 'byapi';\n};\nvar isSysControl = function isSysControl(type) {\n  var _context2;\n  return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(_context2 = ['NoCodeCreatorField', 'NoCodeCreateDateField', 'NoCodeModifierField', 'NoCodeModifyDateField', 'NoCodeBillNoField']).call(_context2, type);\n};\nvar isRefBillTable = function isRefBillTable(type) {\n  return type === 'NoCodeRefBillTable';\n};\nvar isGroupContainer = function isGroupContainer(type) {\n  return type === 'NoCodeGroupContainerAp';\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///3700\n");

/***/ }),

/***/ 13908:
/*!***********************************!*\
  !*** ./src/utils/convert-data.ts ***!
  \***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   convertDataToFlowElements: function() { return /* binding */ convertDataToFlowElements; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _nodeType__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./nodeType */ 1300);\n/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./index */ 41232);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../constants */ 98092);\n/* harmony import */ var _control__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./control */ 3700);\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-01 15:58:34\n * @LastEditTime: 2023-08-02 14:07:44\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\nvar DEFAULT_POSITION = {\n  x: 0,\n  y: 0\n};\n\n// 获取endNode节点的前一个节点id\nvar getPreEndNodeId = function getPreEndNodeId(nodes, nodeParentIdList) {\n  var preEndNode = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_7___default()(nodes).call(nodes, function (item) {\n    return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default()(nodeParentIdList).call(nodeParentIdList, item.id);\n  }) || {};\n  return preEndNode.id;\n};\n\n// 创建节点\nvar createNode = function createNode(nodedata) {\n  return _objectSpread({\n    position: DEFAULT_POSITION\n  }, nodedata);\n};\n\n// 创建结束节点\nvar createEndNode = function createEndNode(number, id, parentId) {\n  return createNode({\n    id: id,\n    type: _nodeType__WEBPACK_IMPORTED_MODULE_11__.END_NONE_EVENT,\n    data: {\n      id: id,\n      itemId: id,\n      number: number,\n      parentId: parentId,\n      _Type_: _nodeType__WEBPACK_IMPORTED_MODULE_11__.END_NONE_EVENT\n    }\n  });\n};\n// 创建线条\nvar createEdge = function createEdge(edgedata) {\n  return _objectSpread({\n    // animated: true,\n    // style: { stroke: '#999' },\n    style: edgedata.isDone ? {\n      stroke: 'var(--kd-nc-primary-6)'\n    } : {\n      stroke: '#d9d9d9'\n    },\n    itemId: edgedata.id\n  }, edgedata);\n};\n// 创建结束节点线条\nvar createEndEdge = function createEndEdge(number, id, nodeId, nodeParentId, type, isDone) {\n  return createEdge({\n    id: id,\n    source: nodeParentId,\n    target: nodeId,\n    data: {\n      parentId: nodeParentId,\n      id: nodeId\n    },\n    type: type || _nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW,\n    number: number,\n    isDone: isDone\n  });\n};\n\n// 获取线条类型\nvar getEdgeType = function getEdgeType(isReadonly) {\n  return isReadonly ? 'smoothstep' : _nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW;\n  // if (isReadonly) return 'smoothstep'\n  // if (parentId?.includes(NOCODE_GATEWAY)) { // 父节点是分支节点类型时，不显示加号节点\n  //   return 'smoothstep'\n  // } else {\n  //   return SEQUENCEFLOW\n  // }\n};\nvar getDoneStatus = function getDoneStatus(readonly, status) {\n  var _context;\n  return readonly && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_8___default()(_context = [_constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_DONE, _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_DOING, _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_TERMINATE, _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_EXCEPTION_TERMINATE]).call(_context, status);\n};\n\n// 用于空节点判断有没有走过\nvar nodeIsDoneCache = {};\nvar convertDataToFlowElements = function convertDataToFlowElements(dataApi, flowStatus) {\n  var _context2;\n  var _dataApi$getData = dataApi.getData(),\n    Nodes = _dataApi$getData.Items,\n    Edges = _dataApi$getData.edges,\n    key = _dataApi$getData.key;\n  // console.log('layoutElements nodes', Nodes)\n  var nodes = []; // 节点\n  var edges = []; // 线条\n\n  var nodesLength = Nodes.length;\n  var nodeParentIdList = [];\n  var endNodeData = {};\n  var isReadonly = (0,_index__WEBPACK_IMPORTED_MODULE_12__.isReadonlyStatus)(flowStatus);\n  for (var i = 0; i < nodesLength; i++) {\n    var node = Nodes[i];\n    var id = node.id,\n      parentId = node.parentId,\n      type = node._Type_,\n      number = node.number,\n      isNullNode = node.isNullNode,\n      _handleStatus = node.handleStatus;\n    // 线条会根据已经执行过的节点有颜色区分\n    var _isDone = getDoneStatus(isReadonly, _handleStatus);\n\n    // nodeIsDoneCache 主要是给空节点使用的，如果前面节点状态是否决，那么不应该显示已走的路线\n    if (_isDone && _handleStatus !== _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_TERMINATE) {\n      nodeIsDoneCache[id] = _isDone;\n    }\n    if (type !== _nodeType__WEBPACK_IMPORTED_MODULE_11__.END_NONE_EVENT) {\n      nodeParentIdList.push(parentId);\n      // 根据要求,将空节点类型转成NOCODE_GATEWAY,添加isNullNode标识以便区分\n      var newType = isNullNode ? _nodeType__WEBPACK_IMPORTED_MODULE_11__.NULL_NODE_TYPE : type;\n      nodes.push(createNode({\n        id: id,\n        type: newType,\n        data: _objectSpread({}, node)\n      }));\n      if (type !== _nodeType__WEBPACK_IMPORTED_MODULE_11__.START_SIGNAL_EVENT) {\n        if (isNullNode) {\n          var parentIdsList = node.parentIds.split(',');\n          if ((parentIdsList === null || parentIdsList === void 0 ? void 0 : parentIdsList.length) > 0) {\n            var len = (parentIdsList === null || parentIdsList === void 0 ? void 0 : parentIdsList.length) || 0;\n            for (var index = 0; index < len; index++) {\n              var _parentId = parentIdsList[index];\n              nodeParentIdList.push(_parentId);\n              var value = (0,_index__WEBPACK_IMPORTED_MODULE_12__.getRandomValues)();\n              var edgeId = (0,_index__WEBPACK_IMPORTED_MODULE_12__.createFlowNodeId)(key, _nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW, value);\n              // console.log('edgeid', id, edgeId)\n              // 空节点的走过状态使用父节点的状态去判断\n              var _isDone2 = nodeIsDoneCache[_parentId];\n              if (_isDone2) {\n                nodeIsDoneCache[id] = _isDone2;\n              }\n              edges.push(createEdge({\n                number: (0,_index__WEBPACK_IMPORTED_MODULE_12__.createFlowNodeNumber)(_nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW, value),\n                itemId: edgeId,\n                id: edgeId,\n                source: _parentId,\n                target: id,\n                data: {\n                  parentId: _parentId,\n                  id: id\n                },\n                type: getEdgeType(isReadonly),\n                isDone: _isDone2\n              }));\n            }\n          }\n        } else {\n          if ((0,_control__WEBPACK_IMPORTED_MODULE_14__.isBranchNode)(node)) {\n            var branchNodeSubControls = dataApi.getSubControls(id) || [];\n            var branchNodeIsDone = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_7___default()(branchNodeSubControls).call(branchNodeSubControls, function (item) {\n              return (0,_control__WEBPACK_IMPORTED_MODULE_14__.isJudgeNode)(item) && item.handleStatus === _constants__WEBPACK_IMPORTED_MODULE_13__.NODE_STATUS_DONE;\n            });\n            _isDone = !!branchNodeIsDone;\n          }\n          var _edgeId = (0,_index__WEBPACK_IMPORTED_MODULE_12__.createFlowNodeId)(key, _nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW, i);\n          edges.push(createEdge({\n            number: (0,_index__WEBPACK_IMPORTED_MODULE_12__.createFlowNodeNumber)(_nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW, i),\n            itemId: _edgeId,\n            id: _edgeId,\n            source: parentId,\n            target: id,\n            data: {\n              parentId: parentId,\n              id: id\n            },\n            type: getEdgeType(isReadonly),\n            isDone: _isDone\n          }));\n        }\n      }\n    } else {\n      endNodeData = node;\n    }\n  }\n  var preEndNodeId = getPreEndNodeId(nodes, nodeParentIdList);\n  // console.log('edges preEndNodeId', preEndNodeId)\n  var _endNodeData = endNodeData,\n    endNodeId = _endNodeData.id,\n    endNodeNumber = _endNodeData.number,\n    handleStatus = _endNodeData.handleStatus;\n\n  // 创建结束节点\n  var endNode = createEndNode(endNodeNumber, endNodeId, preEndNodeId);\n  // 创建结束线\n  var edgesIndexList = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_9___default()(edges).call(edges, function (item) {\n    var id = item.id;\n    var list = id.split(_nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW);\n    return Number((list === null || list === void 0 ? void 0 : list[1]) || 0);\n  });\n  var endNodeIndex = edgesIndexList.length > 0 ? Math.max.apply(Math, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(edgesIndexList)) + 1 : 0;\n  // id\n  var endEdgeId = (0,_index__WEBPACK_IMPORTED_MODULE_12__.createFlowNodeId)(key, _nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW, endNodeIndex);\n  // 编码\n  var endEdgeNumber = (0,_index__WEBPACK_IMPORTED_MODULE_12__.createFlowNodeNumber)(_nodeType__WEBPACK_IMPORTED_MODULE_11__.SEQUENCEFLOW, endNodeIndex);\n\n  // 线条会根据已经执行过的节点有颜色区分\n  var isDone = getDoneStatus(isReadonly, handleStatus);\n  var endEdge = createEndEdge(endEdgeNumber, endEdgeId, endNodeId, preEndNodeId, getEdgeType(isReadonly), isDone);\n\n  // 创建结束节点和线\n  nodes.push(endNode);\n  edges.push(endEdge);\n  // console.log('edges', nodes, edges)\n  return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context2 = []).call(_context2, nodes, edges);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///13908\n");

/***/ }),

/***/ 1740:
/*!***************************!*\
  !*** ./src/utils/data.ts ***!
  \***************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   transformData: function() { return /* binding */ transformData; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/nodeType */ 1300);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ 41232);\n\n/*\n * @Author: fjr\n * @Email: jinrui_fang@kingdee.com\n * @Date: 2022-02-25 14:01:22\n * @Last Modified by: fjr\n * @LastEditTime: 2023-04-20 14:45:46\n * @Description: ... 用于转换外部传的数据，变成规则设计器内部所使用的数据结构 add by 王志勇 date:2022-03-08\n */\n\n\nvar dataKeysMap = {\n  name: 'name',\n  id: 'id',\n  key: 'key',\n  edges: 'edges',\n  parentId: 'parentId'\n};\n\n// 转换data\nvar transformData = function transformData(originalData) {\n  var cloneData = originalData;\n  // const { Nodes } = cloneData\n  var adaptedData = {};\n  _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(cloneData).forEach(function (item) {\n    cloneData[item] && dataKeysMap[item] && (adaptedData[dataKeysMap[item]] = cloneData[item]);\n  });\n  var nodes = cloneData.nodes;\n  var length = nodes.length;\n  if (length === 1) {\n    var rootKey = cloneData.key;\n    var startNode = nodes[0];\n    startNode.number = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeNumber)(startNode._Type_, 0);\n    startNode.id = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeId)(rootKey, startNode._Type_, 0);\n    startNode.itemId = startNode.id;\n    nodes[0] = startNode;\n    var endNodeId = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeId)(rootKey, _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.END_NONE_EVENT, 0);\n    var endNumber = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeNumber)(_utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.END_NONE_EVENT, 0);\n    nodes.push({\n      number: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeNumber)(_utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.END_NONE_EVENT, 0),\n      id: endNodeId,\n      _Type_: _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.END_NONE_EVENT,\n      parentId: startNode.id\n      // data: {\n      //   number: endNumber,\n      //   itemId: endNodeId,\n      //   _Type_: END_NONE_EVENT,\n      //   parentId: startNode.id\n      // }\n    });\n    if (!cloneData.edges) {\n      var endEdgeId = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeId)(rootKey, _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.SEQUENCEFLOW, 0);\n      adaptedData.edges = [{\n        id: endEdgeId,\n        source: startNode.id,\n        target: endNodeId,\n        _Type_: _utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.SEQUENCEFLOW,\n        number: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.createFlowNodeNumber)(_utils_nodeType__WEBPACK_IMPORTED_MODULE_1__.SEQUENCEFLOW, 0),\n        itemId: endEdgeId,\n        data: {\n          parentId: startNode.id,\n          id: endNodeId\n        }\n      }];\n    }\n  }\n  adaptedData.Items = nodes;\n  return adaptedData;\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTc0MC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUVBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtZmxvdy8uL3NyYy91dGlscy9kYXRhLnRzPzY1NDAiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBBdXRob3I6IGZqclxuICogQEVtYWlsOiBqaW5ydWlfZmFuZ0BraW5nZGVlLmNvbVxuICogQERhdGU6IDIwMjItMDItMjUgMTQ6MDE6MjJcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBmanJcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMDQtMjAgMTQ6NDU6NDZcbiAqIEBEZXNjcmlwdGlvbjogLi4uIOeUqOS6jui9rOaNouWklumDqOS8oOeahOaVsOaNru+8jOWPmOaIkOinhOWImeiuvuiuoeWZqOWGhemDqOaJgOS9v+eUqOeahOaVsOaNrue7k+aehCBhZGQgYnkg546L5b+X5YuHIGRhdGU6MjAyMi0wMy0wOFxuICovXG5pbXBvcnQgeyBFTkRfTk9ORV9FVkVOVCwgU0VRVUVOQ0VGTE9XIH0gZnJvbSAnLi4vdXRpbHMvbm9kZVR5cGUnXG5pbXBvcnQgeyBjcmVhdGVGbG93Tm9kZUlkLCBjcmVhdGVGbG93Tm9kZU51bWJlciB9IGZyb20gJy4uL3V0aWxzJ1xuXG5jb25zdCBkYXRhS2V5c01hcCA9IHtcbiAgbmFtZTogJ25hbWUnLFxuICBpZDogJ2lkJyxcbiAga2V5OiAna2V5JyxcbiAgZWRnZXM6ICdlZGdlcycsXG4gIHBhcmVudElkOiAncGFyZW50SWQnXG59XG5cbi8vIOi9rOaNomRhdGFcbmV4cG9ydCBjb25zdCB0cmFuc2Zvcm1EYXRhID0gKG9yaWdpbmFsRGF0YTogYW55KSA9PiB7XG4gIGNvbnN0IGNsb25lRGF0YSA9IG9yaWdpbmFsRGF0YVxuICAvLyBjb25zdCB7IE5vZGVzIH0gPSBjbG9uZURhdGFcbiAgY29uc3QgYWRhcHRlZERhdGEgPSB7fVxuICBPYmplY3Qua2V5cyhjbG9uZURhdGEpLmZvckVhY2goaXRlbSA9PiB7XG4gICAgY2xvbmVEYXRhW2l0ZW1dICYmIGRhdGFLZXlzTWFwW2l0ZW1dICYmIChhZGFwdGVkRGF0YVtkYXRhS2V5c01hcFtpdGVtXV0gPSBjbG9uZURhdGFbaXRlbV0pXG4gIH0pXG5cbiAgY29uc3Qgbm9kZXMgPSBjbG9uZURhdGEubm9kZXNcbiAgY29uc3QgbGVuZ3RoID0gbm9kZXMubGVuZ3RoXG5cbiAgaWYgKGxlbmd0aCA9PT0gMSkge1xuICAgIGNvbnN0IHJvb3RLZXkgPSBjbG9uZURhdGEua2V5XG4gICAgY29uc3Qgc3RhcnROb2RlID0gbm9kZXNbMF1cbiAgICBzdGFydE5vZGUubnVtYmVyID0gY3JlYXRlRmxvd05vZGVOdW1iZXIoc3RhcnROb2RlLl9UeXBlXywgMClcbiAgICBzdGFydE5vZGUuaWQgPSBjcmVhdGVGbG93Tm9kZUlkKHJvb3RLZXksIHN0YXJ0Tm9kZS5fVHlwZV8sIDApXG4gICAgc3RhcnROb2RlLml0ZW1JZCA9IHN0YXJ0Tm9kZS5pZFxuICAgIG5vZGVzWzBdID0gc3RhcnROb2RlXG5cbiAgICBjb25zdCBlbmROb2RlSWQgPSBjcmVhdGVGbG93Tm9kZUlkKHJvb3RLZXksIEVORF9OT05FX0VWRU5ULCAwKVxuICAgIGNvbnN0IGVuZE51bWJlciA9IGNyZWF0ZUZsb3dOb2RlTnVtYmVyKEVORF9OT05FX0VWRU5ULCAwKVxuICAgIG5vZGVzLnB1c2goe1xuICAgICAgbnVtYmVyOiBjcmVhdGVGbG93Tm9kZU51bWJlcihFTkRfTk9ORV9FVkVOVCwgMCksXG4gICAgICBpZDogZW5kTm9kZUlkLFxuICAgICAgX1R5cGVfOiBFTkRfTk9ORV9FVkVOVCxcbiAgICAgIHBhcmVudElkOiBzdGFydE5vZGUuaWRcbiAgICAgIC8vIGRhdGE6IHtcbiAgICAgIC8vICAgbnVtYmVyOiBlbmROdW1iZXIsXG4gICAgICAvLyAgIGl0ZW1JZDogZW5kTm9kZUlkLFxuICAgICAgLy8gICBfVHlwZV86IEVORF9OT05FX0VWRU5ULFxuICAgICAgLy8gICBwYXJlbnRJZDogc3RhcnROb2RlLmlkXG4gICAgICAvLyB9XG4gICAgfSlcblxuICAgIGlmICghY2xvbmVEYXRhLmVkZ2VzKSB7XG4gICAgICBjb25zdCBlbmRFZGdlSWQgPSBjcmVhdGVGbG93Tm9kZUlkKHJvb3RLZXksIFNFUVVFTkNFRkxPVywgMClcbiAgICAgIGFkYXB0ZWREYXRhLmVkZ2VzID0gW3tcbiAgICAgICAgaWQ6IGVuZEVkZ2VJZCxcbiAgICAgICAgc291cmNlOiBzdGFydE5vZGUuaWQsXG4gICAgICAgIHRhcmdldDogZW5kTm9kZUlkLFxuICAgICAgICBfVHlwZV86IFNFUVVFTkNFRkxPVyxcbiAgICAgICAgbnVtYmVyOiBjcmVhdGVGbG93Tm9kZU51bWJlcihTRVFVRU5DRUZMT1csIDApLFxuICAgICAgICBpdGVtSWQ6IGVuZEVkZ2VJZCxcbiAgICAgICAgZGF0YToge1xuICAgICAgICAgIHBhcmVudElkOiBzdGFydE5vZGUuaWQsXG4gICAgICAgICAgaWQ6IGVuZE5vZGVJZFxuICAgICAgICB9XG4gICAgICB9XVxuICAgIH1cbiAgfVxuXG4gIGFkYXB0ZWREYXRhLkl0ZW1zID0gbm9kZXNcblxuICByZXR1cm4gYWRhcHRlZERhdGFcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///1740\n");

/***/ }),

/***/ 41232:
/*!****************************!*\
  !*** ./src/utils/index.ts ***!
  \****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   DEFAULT_FLOW_VAR: function() { return /* binding */ DEFAULT_FLOW_VAR; },\n/* harmony export */   addResizeObserve: function() { return /* binding */ addResizeObserve; },\n/* harmony export */   convertToArray: function() { return /* binding */ convertToArray; },\n/* harmony export */   createFieldRegText: function() { return /* binding */ createFieldRegText; },\n/* harmony export */   createFlowNodeId: function() { return /* binding */ createFlowNodeId; },\n/* harmony export */   createFlowNodeNumber: function() { return /* binding */ createFlowNodeNumber; },\n/* harmony export */   createNodeInfo: function() { return /* binding */ createNodeInfo; },\n/* harmony export */   dateFormat: function() { return /* binding */ dateFormat; },\n/* harmony export */   extractVarDataFromExpression: function() { return /* binding */ extractVarDataFromExpression; },\n/* harmony export */   filterCompareTypes: function() { return /* binding */ filterCompareTypes; },\n/* harmony export */   filterVarListByType: function() { return /* binding */ filterVarListByType; },\n/* harmony export */   findParentIdListById: function() { return /* binding */ findParentIdListById; },\n/* harmony export */   getFieldCompareType: function() { return /* binding */ getFieldCompareType; },\n/* harmony export */   getRandomValues: function() { return /* binding */ getRandomValues; },\n/* harmony export */   getVariablesTitle: function() { return /* binding */ getVariablesTitle; },\n/* harmony export */   isCombo: function() { return /* binding */ isCombo; },\n/* harmony export */   isDisplayStatus: function() { return /* binding */ isDisplayStatus; },\n/* harmony export */   isExpressionStr: function() { return /* binding */ isExpressionStr; },\n/* harmony export */   isJson: function() { return /* binding */ isJson; },\n/* harmony export */   isOpenApi: function() { return /* binding */ isOpenApi; },\n/* harmony export */   isReadonlyStatus: function() { return /* binding */ isReadonlyStatus; },\n/* harmony export */   isRefBillType: function() { return /* binding */ isRefBillType; },\n/* harmony export */   isTriggerTime: function() { return /* binding */ isTriggerTime; },\n/* harmony export */   isVarStr: function() { return /* binding */ isVarStr; },\n/* harmony export */   isViewStatus: function() { return /* binding */ isViewStatus; },\n/* harmony export */   listFilterParser: function() { return /* binding */ listFilterParser; },\n/* harmony export */   splitTitlePrefix: function() { return /* binding */ splitTitlePrefix; },\n/* harmony export */   transformConditionValue: function() { return /* binding */ transformConditionValue; },\n/* harmony export */   transformError: function() { return /* binding */ transformError; },\n/* harmony export */   varRegList: function() { return /* binding */ varRegList; },\n/* harmony export */   variablesTitleSplit: function() { return /* binding */ variablesTitleSplit; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ 28220);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ 99308);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ 61260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_trim__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ 25288);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_trim__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_trim__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ 11908);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ 73980);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var _nodeType__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./nodeType */ 1300);\n/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! resize-observer-polyfill */ 82504);\n/* harmony import */ var _control__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./control */ 3700);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! nocode_component/WebUI */ 82416);\n/* harmony import */ var nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var _constants_index__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../constants/index */ 98092);\n\n\n\n\n\n\n\n\n\nvar _excluded = [\"id\", \"rootKey\", \"number\", \"type\"],\n  _excluded2 = [\"children\"],\n  _excluded3 = [\"children\", \"valueItems\", \"billEntityId\", \"displayProp\", \"isMulti\", \"compareTypes\", \"refSelf\"];\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_10___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-16 18:56:15\n * @LastEditTime: 2024-03-20 10:59:57\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\nvar _Condition$constants = nocode_component_WebUI__WEBPACK_IMPORTED_MODULE_22__.Condition.constants,\n  allFieldRegExp = _Condition$constants.allFieldRegExp,\n  allExpRegExp = _Condition$constants.allExpRegExp,\n  fieldRegExp = _Condition$constants.fieldRegExp,\n  createFiledExp = _Condition$constants.createFiledExp,\n  expRegExp = _Condition$constants.expRegExp;\nvar convertToArray = function convertToArray(param) {\n  if (!param) return [];\n  if (Array.isArray(param)) return param;\n  return [param];\n};\n\n/**\n * 创建编码\n * @param type\n * @param index\n * @returns\n */\nvar createFlowNodeNumber = function createFlowNodeNumber(type, index) {\n  var _context;\n  return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context = \"\".concat(type)).call(_context, index);\n};\n\n/**\n * 创建id\n */\nvar createFlowNodeId = function createFlowNodeId(rootkey, type, index) {\n  var _context2;\n  return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context2 = \"\".concat(rootkey, \"_\")).call(_context2, createFlowNodeNumber(type, index));\n};\n\n// 查看态\nvar isViewStatus = function isViewStatus(status) {\n  return status === 'view';\n};\n\n// 展示态\nvar isDisplayStatus = function isDisplayStatus(status) {\n  return status === 'display';\n};\n\n// 只读态\nvar isReadonlyStatus = function isReadonlyStatus(status) {\n  return isViewStatus(status) || isDisplayStatus(status);\n};\n\n// 根据id在链表里面找到所有的parentId\nvar findParentIdListById = function findParentIdListById(id) {\n  var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n  var list = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n  if (!id || data.length === 0) return list;\n  var cloneData = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_18__.cloneDeep)(data);\n  var len = cloneData.length - 1;\n  for (var i = len; i > 0; i--) {\n    var item = cloneData[i];\n    if (item.id === id && !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(list).call(list, item.parentId)) {\n      if ((0,_control__WEBPACK_IMPORTED_MODULE_21__.isNullNode)(item)) {\n        var _item$parentIds;\n        // 如果是空节点，parentId要从parentIds去找，并且要向上查找对应的parentId\n        var parentIdList = (_item$parentIds = item.parentIds) === null || _item$parentIds === void 0 ? void 0 : _item$parentIds.split(',');\n        var parentIdLen = parentIdList.length;\n        for (var j = 0; j < parentIdLen; j++) {\n          var nullNodeParentId = parentIdList[j];\n          // 当前的parentId\n          list.push(nullNodeParentId);\n\n          // 向上找\n          list = (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(new (_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_13___default())(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(list).call(list, findParentIdListById(nullNodeParentId, cloneData, list))));\n        }\n      } else {\n        var parentId = item.parentId;\n        list.push(parentId);\n        _babel_runtime_corejs3_core_js_stable_instance_splice__WEBPACK_IMPORTED_MODULE_14___default()(cloneData).call(cloneData, i, 1);\n        return findParentIdListById(parentId, cloneData, list);\n      }\n    }\n  }\n  return list;\n};\n\n// 转换错误\n// error: { id: [{ prop: 'text: , msg: 'xxxx' }]} => error: { id: { text: { prop: 'text: , msg: 'xxxx' } }}\nvar transformError = function transformError(error) {\n  if (!error) return {};\n  var newError = {};\n  var _loop = function _loop() {\n    var _error$id;\n    var data = {};\n    (_error$id = error[id]) === null || _error$id === void 0 || _error$id.forEach(function (item) {\n      data[item.prop] = item;\n    });\n    newError[id] = data;\n  };\n  for (var id in error) {\n    _loop();\n  }\n  return newError;\n};\n\n// 过滤变量\nvar filterVarListByType = function filterVarListByType(parentKey) {\n  var list = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n  var filterVarTypeList = arguments.length > 2 ? arguments[2] : undefined;\n  var filterCallback = arguments.length > 3 ? arguments[3] : undefined;\n  var expandOption = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n  return list.reduce(function (varList, item) {\n    var _item$option = item.option,\n      option = _item$option === void 0 ? {} : _item$option;\n    var _option$children = option.children,\n      children = _option$children === void 0 ? [] : _option$children;\n    // PK类型且的expendOnlyInExp为false节点,需要展开并过滤\n    var childVarList = expandOption || item.type === 'pk' && !(option !== null && option !== void 0 && option.expendOnlyInExp) ? filterVarListByType(item.value, children || [], filterVarTypeList, filterCallback, expandOption) : [];\n    if (filterVarTypeList.length === 0 || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(filterVarTypeList).call(filterVarTypeList, item.type) || childVarList !== null && childVarList !== void 0 && childVarList.length) {\n      var notFilter = true;\n      if (typeof filterCallback === 'function') {\n        notFilter = filterCallback(item);\n      }\n      if (notFilter) {\n        var _FIELD_TYPE_MAP$item$, _item$option2;\n        var varItem = _objectSpread(_objectSpread({}, item), {}, {\n          parentKey: parentKey,\n          key: item.value,\n          type: (_FIELD_TYPE_MAP$item$ = _constants_index__WEBPACK_IMPORTED_MODULE_23__.FIELD_TYPE_MAP[(_item$option2 = item.option) === null || _item$option2 === void 0 ? void 0 : _item$option2.editorType]) !== null && _FIELD_TYPE_MAP$item$ !== void 0 ? _FIELD_TYPE_MAP$item$ : item.type\n        });\n        if (filterVarTypeList !== null && filterVarTypeList !== void 0 && filterVarTypeList.length && !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(filterVarTypeList).call(filterVarTypeList, item.type)) {\n          varItem.selectable = false;\n          varItem.checkable = false;\n        }\n        if (childVarList !== null && childVarList !== void 0 && childVarList.length) {\n          varItem.children = childVarList;\n        }\n        varList.push(varItem);\n      }\n    }\n    return varList;\n  }, []);\n  // const varList: VariableTreeItemApi[] = []\n\n  // list.forEach((item: VariableItemApi) => {\n  //   if (filterVarTypeList.length === 0 || filterVarTypeList.includes(item.type)) {\n\n  //     let notFilter = true\n  //     if (typeof filterCallback === 'function') {\n  //       notFilter = filterCallback(item)\n  //     }\n\n  //     if (notFilter) {\n  //       varList.push({\n  //         ...item,\n  //         parentKey,\n  //         key: item.value,\n  //         type: FIELD_TYPE_MAP[item.option?.editorType] ? item.option?.editorType :  item.type\n  //       })\n  //     }\n  //   }\n  // })\n\n  // return varList\n};\nvar getVariablesTitle = function getVariablesTitle(controlData) {\n  var _context6;\n  if (!controlData) return '';\n  var _controlData$_disp_ = controlData._disp_,\n    disp = _controlData$_disp_ === void 0 ? {} : _controlData$_disp_,\n    controlType = controlData._Type_;\n  if (controlType === _nodeType__WEBPACK_IMPORTED_MODULE_19__.QUERY_DATA_AUTO_TASK) {\n    var queryModel = controlData.queryModel;\n    if ((0,_control__WEBPACK_IMPORTED_MODULE_21__.isQueryModeByRela)(queryModel)) {\n      var _context3;\n      return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context3 = \"\".concat(controlData === null || controlData === void 0 ? void 0 : controlData.name)).call(_context3, disp.refbillField ? \"\\uFF08\".concat(disp.refbillField, \"\\uFF09\") : '');\n    } else if (isOpenApi(queryModel)) {\n      var _context4;\n      return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context4 = \"\".concat(controlData === null || controlData === void 0 ? void 0 : controlData.name)).call(_context4, disp.apiId ? \"\\uFF08\".concat(disp.apiId, \"\\uFF09\") : '');\n    }\n  }\n  if (controlType === _nodeType__WEBPACK_IMPORTED_MODULE_19__.UPDATE_BILL_AUTO_TASK) {\n    var _context5;\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context5 = \"\".concat(controlData === null || controlData === void 0 ? void 0 : controlData.name)).call(_context5, disp.refNodeId ? \"\\uFF08\".concat(disp.refNodeId, \"\\uFF09\") : '');\n  }\n  return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context6 = \"\".concat(controlData === null || controlData === void 0 ? void 0 : controlData.name)).call(_context6, disp.formId ? \"\\uFF08\".concat(disp.formId, \"\\uFF09\") : '');\n};\nfunction getRandomValues() {\n  var crypto = window.crypto || window.webkitCrypto || window.mozCrypto || window.oCrypto || window.msCrypto;\n  return crypto.getRandomValues(new Uint32Array(1))[0];\n}\nvar createFieldRegText = function createFieldRegText(fieldKey, data) {\n  return createFiledExp(fieldKey, data);\n};\nfunction transformConditionValue(str, isCN) {\n  var _context7, _context8;\n  var content = '';\n  // 替换中文字符\n  str = str.replace(/）/g, ')').replace(/（/g, '(').replace(/“/g, '\"').replace(/”/g, '\"').replace(/‘/g, \"'\").replace(/’/g, \"'\");\n  // if (!(allFieldRegExp.test(str)) && !(allExpRegExp.test(str)) && !/[\\+\\-\\*\\/]/.test(str)) { // 没有公式和字段时只上传文本\n  //   content = str\n  // } else {\n  var newStr = str.replace(/ {{/g, '{{').replace(/}} /g, '}}').replace(allFieldRegExp, '$1');\n  newStr = newStr.replace(allExpRegExp, function (arg) {\n    var _arg$match;\n    var matchStr = ((_arg$match = arg.match(expRegExp)) === null || _arg$match === void 0 ? void 0 : _arg$match[1]) || '';\n    return matchStr.replace('YMDDATE', 'DATE');\n  });\n  content = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context7 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context8 = \"\".concat(_babel_runtime_corejs3_core_js_stable_instance_trim__WEBPACK_IMPORTED_MODULE_15___default()(newStr).call(newStr), \"@@\")).call(_context8, str, \"@@\")).call(_context7, isCN ? 1 : 0);\n  // }\n  return content;\n}\nvar isJson = function isJson(str) {\n  if (typeof str === 'string') {\n    try {\n      var obj = JSON.parse(str);\n      if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(obj) === 'object' && obj) {\n        return true;\n      } else {\n        return false;\n      }\n    } catch (e) {\n      console.log('error：' + str + '!!!' + e);\n      return false;\n    }\n  } else {\n    return false;\n  }\n};\nfunction addResizeObserve(element, callback) {\n  var handleResize = function handleResize(entries) {\n    var entry = entries[0];\n    var _entry$contentRect = entry.contentRect,\n      width = _entry$contentRect.width,\n      height = _entry$contentRect.height;\n    var hide = width === 0 && height === 0;\n    var rect = {\n      hide: hide,\n      width: width,\n      height: height\n    };\n    callback && callback(rect);\n  };\n  var watcher = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_20__[\"default\"](handleResize);\n  watcher.observe(element);\n  return {\n    removeResizeObserve: function removeResizeObserve() {\n      watcher.disconnect(element);\n      watcher = null;\n    }\n  };\n}\nvar DEFAULT_FLOW_VAR = {\n  title: '流程名称',\n  titlePrefix: '[文本]',\n  nodeId: '${proc.procName}',\n  key: '${proc.procName}',\n  type: 'text'\n};\nvar filterIdList = ['001']; // 枚举类型\n\n// 过滤比较类型\nfunction filterCompareTypes(compareTypes) {\n  return (compareTypes === null || compareTypes === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_10___default()(compareTypes).call(compareTypes, function (item) {\n    return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(filterIdList).call(filterIdList, item.id);\n  })) || [];\n}\nfunction dateFormat(fmt) {\n  var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Date.now();\n  var date = new Date(time);\n  var o = {\n    'M+': date.getMonth() + 1,\n    // 月份\n    'd+': date.getDate(),\n    // 日\n    'h+': date.getHours(),\n    // 小时\n    'm+': date.getMinutes(),\n    // 分\n    's+': date.getSeconds(),\n    // 秒\n    'q+': Math.floor((date.getMonth() + 3) / 3),\n    // 季度\n    S: date.getMilliseconds() // 毫秒\n  };\n  if (/(y+)/.test(fmt)) {\n    fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));\n  }\n  for (var k in o) {\n    if (new RegExp('(' + k + ')').test(fmt)) {\n      fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));\n    }\n  }\n  return fmt;\n}\nvar isTriggerTime = function isTriggerTime(type) {\n  return type === 'time';\n};\n\n/**\n * 创建节点信息\n * @param param0\n * @returns {}\n */\nvar createNodeInfo = function createNodeInfo(_ref) {\n  var id = _ref.id,\n    rootKey = _ref.rootKey,\n    number = _ref.number,\n    type = _ref.type,\n    other = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(_ref, _excluded);\n  var value = getRandomValues();\n  number = number || createFlowNodeNumber(type, value);\n  id = id || createFlowNodeId(rootKey, type, value);\n  return _objectSpread({\n    id: id,\n    _Type_: type,\n    number: number,\n    // 节点编码\n    itemId: id\n  }, other);\n};\nvar transformFieldType = function transformFieldType(type) {\n  return type === null || type === void 0 ? void 0 : type.split('-')[0];\n};\nvar getFieldCompareType = function getFieldCompareType(_ref2) {\n  var compareTypesMap = _ref2.compareTypesMap,\n    type = _ref2.type,\n    entityId = _ref2.entityId;\n  var compareTypes = compareTypesMap[type] || [];\n  if (entityId === 'bos_user') {\n    // 人员直接取【创建人】的\n    compareTypes = 'nocodecreatorfield';\n  } else if (entityId === 'bos_adminorg') {\n    compareTypes = 'orgfield';\n  }\n  if (typeof compareTypes === 'string') {\n    // 结果如果是字符串(如text：nodetextfield)，再二次转一下\n    compareTypes = compareTypesMap[compareTypes];\n  }\n  return filterCompareTypes(compareTypes);\n};\nvar getRefSelfChild = function getRefSelfChild(data, parentKey, limitDepth) {\n  return (data || []).reduce(function (treeData, item) {\n    var _context9, _pureId$split;\n    var id = item.id,\n      _item$option3 = item.option,\n      option = _item$option3 === void 0 ? {} : _item$option3;\n    var children = option.children,\n      otherOption = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(option, _excluded2);\n    var fieldName = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context9 = \"\".concat(parentKey, \".\")).call(_context9, id);\n    var pureId = fieldName !== null && fieldName !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(fieldName).call(fieldName, 'fbasedataid') ? id.split('.fbasedataid')[0] : fieldName;\n    // 根据后端拼接的'.'分割出数组，以此为依据判断层级\n    var depth = (pureId === null || pureId === void 0 || (_pureId$split = pureId.split('.')) === null || _pureId$split === void 0 ? void 0 : _pureId$split.length) || 0;\n    if (depth > limitDepth) return treeData;\n    var newOption = _objectSpread({}, otherOption);\n    if (children) {\n      newOption.children = getRefSelfChild(children, parentKey, limitDepth);\n    }\n    var res = _objectSpread(_objectSpread({}, item), {}, {\n      id: fieldName,\n      option: newOption || {}\n    });\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(treeData).call(treeData, res);\n  }, []);\n};\n\n/**\n  * @param data\n * @param compareTypesMap\n * @param deep 当前层级\n * @param limitDepth 限制层级（默认一级：关联表单.属性）\n * @returns\n */\nvar listFilterParser = function listFilterParser(selfTree, data, compareTypesMap) {\n  var _context10;\n  var limitDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;\n  return _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_10___default()(_context10 = (data || []).reduce(function (treeData, item) {\n    var _pureId$split2, _res;\n    var caption = item.caption,\n      type = item.type,\n      id = item.id,\n      _item$option4 = item.option,\n      option = _item$option4 === void 0 ? {} : _item$option4,\n      typeCaption = item.typeCaption;\n    var pureId = id !== null && id !== void 0 && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(id).call(id, 'fbasedataid') ? id.split('.fbasedataid')[0] : id;\n    // 根据后端拼接的'.'分割出数组，以此为依据判断层级\n    var depth = (pureId === null || pureId === void 0 || (_pureId$split2 = pureId.split('.')) === null || _pureId$split2 === void 0 ? void 0 : _pureId$split2.length) || 0;\n    if (depth > limitDepth) return treeData;\n    var children = option.children,\n      valueItems = option.valueItems,\n      billEntityId = option.billEntityId,\n      displayProp = option.displayProp,\n      isMulti = option.isMulti,\n      presetCompareTypes = option.compareTypes,\n      refSelf = option.refSelf,\n      others = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(option, _excluded3);\n    var fieldType = transformFieldType(type).toLowerCase();\n    var compareTypes = getFieldCompareType({\n      compareTypesMap: compareTypesMap,\n      type: fieldType,\n      entityId: billEntityId\n    });\n    var fieldName = id;\n    var res = _objectSpread({\n      title: caption,\n      key: fieldName,\n      compareTypes: compareTypes,\n      type: type,\n      titlePrefix: typeCaption,\n      selectable: type !== 'group'\n    }, others);\n    if ((0,_control__WEBPACK_IMPORTED_MODULE_21__.isRefBill)(type) || (0,_control__WEBPACK_IMPORTED_MODULE_21__.isSysRefBill)(type)) {\n      res = (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(res, {\n        displayProp: displayProp,\n        entityId: billEntityId,\n        isMulti: isMulti\n      });\n    } else if ((0,_control__WEBPACK_IMPORTED_MODULE_21__.isSelectField)(type)) {\n      res = (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(res, {\n        isMulti: isMulti\n      });\n    }\n    if (valueItems) {\n      res.items = valueItems;\n    }\n    if (!isMulti) {\n      if (children) {\n        res.children = listFilterParser(selfTree, children, compareTypesMap, limitDepth);\n      } else if (refSelf === true) {\n        // 关联表单-》关联自身，则取rootTree生成children\n        res.children = listFilterParser(selfTree, getRefSelfChild(selfTree, fieldName, limitDepth), compareTypesMap, limitDepth);\n      }\n    }\n    if (type === 'group' && !((_res = res) !== null && _res !== void 0 && (_res = _res.children) !== null && _res !== void 0 && _res.length)) {\n      // 如果分组下没有字段，也不返回分组节点\n      return treeData;\n    }\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(treeData).call(treeData, res);\n  }, [])).call(_context10, function (item) {\n    var type = item.type,\n      entityId = item.entityId;\n    if ((0,_control__WEBPACK_IMPORTED_MODULE_21__.isRefBill)(type) || (0,_control__WEBPACK_IMPORTED_MODULE_21__.isSysRefBill)(type)) {\n      return entityId !== null;\n    }\n    return true;\n  });\n};\nvar isExpressionStr = function isExpressionStr(str) {\n  return fieldRegExp.test(str) || expRegExp.test(str) || (str === null || str === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(str).call(str, '@@'));\n};\nvar varRegList = [/^\\$\\{(.+?)\\}/, /^disp\\((.+?)\\)/];\nvar isVarStr = function isVarStr(str) {\n  return varRegList.some(function (item) {\n    return item.test(str);\n  }) && !isExpressionStr(str);\n};\n\n// 提取变量\nvar extractVarDataFromExpression = function extractVarDataFromExpression(str) {\n  var varData = {};\n  if (!str) return varData;\n\n  // 使用正则表达式提取关键信息\n  var matches = str.match(allFieldRegExp) || [];\n  matches.forEach(function (match) {\n    var _match$match = match.match(fieldRegExp),\n      _match$match2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_match$match, 3),\n      id = _match$match2[1],\n      text = _match$match2[2];\n    // const [parentTitle = '', nodeTitle = ''] = text?.split('|||')\n    varData[id] = false;\n  });\n  return varData;\n};\nvar isOpenApi = function isOpenApi(type) {\n  return type === 'byapi';\n};\n\n// 关联表单\nvar REFBILL_TYPE_LIST = ['refbill', 'user', 'org'];\nvar isRefBillType = function isRefBillType(type) {\n  if (!type) return false;\n  return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(REFBILL_TYPE_LIST).call(REFBILL_TYPE_LIST, type);\n};\n\n// 选项\nvar isCombo = function isCombo(type) {\n  if (!type) return false;\n  return type === null || type === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_16___default()(type).call(type, 'combo');\n};\n\n// 将‘[文本]单行文本’拆分成{ title: 单行文本，titlePrefix: [文本] }\nvar splitTitlePrefix = function splitTitlePrefix(title) {\n  var result = title.match(/^(\\[[^\\[\\]]+\\])+/g); // 贪婪模式\n  var prefix = result !== null && result !== void 0 && result.length ? result[0] : '';\n  var puleTitle = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_17___default()(title).call(title, prefix.length);\n  return {\n    title: puleTitle,\n    titlePrefix: prefix\n  };\n};\nvar nodesTitleSplit = function nodesTitleSplit(nodes) {\n  return nodes.reduce(function (data, node) {\n    var option = node.option,\n      originTitle = node.title;\n    var _ref3 = option || {},\n      children = _ref3.children;\n    var _splitTitlePrefix = splitTitlePrefix(originTitle),\n      title = _splitTitlePrefix.title,\n      titlePrefix = _splitTitlePrefix.titlePrefix;\n    var newNode = _objectSpread(_objectSpread({}, node), {}, {\n      title: title,\n      titlePrefix: titlePrefix\n    });\n    if (children) {\n      newNode.option = _objectSpread(_objectSpread({}, option), {}, {\n        children: nodesTitleSplit(children)\n      });\n      return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(data).call(data, newNode);\n    }\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(data).call(data, newNode);\n  }, []);\n};\nvar variablesTitleSplit = function variablesTitleSplit(variables) {\n  return _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_9___default()(variables).reduce(function (newVariables, key) {\n    var nodes = variables[key];\n    newVariables[key] = nodesTitleSplit(nodes);\n    return newVariables;\n  }, {});\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///41232\n");

/***/ }),

/***/ 21920:
/*!*****************************!*\
  !*** ./src/utils/layout.ts ***!
  \*****************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getAllRulesFlowConfig: function() { return /* binding */ getAllRulesFlowConfig; },\n/* harmony export */   getNodeHeight: function() { return /* binding */ getNodeHeight; },\n/* harmony export */   getNodeSize: function() { return /* binding */ getNodeSize; },\n/* harmony export */   getReactFlowConfig: function() { return /* binding */ getReactFlowConfig; },\n/* harmony export */   getViewPortWidth: function() { return /* binding */ getViewPortWidth; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var _nodeType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./nodeType */ 1300);\n/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! . */ 41232);\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-04-20 09:21:02\n * @LastEditTime: 2024-03-04 10:17:26\n * @Last Modified by: jianhang_he\n */\n\n\n\n// import { Node } from 'dagre'\n\nfunction getNodeSize(element) {\n  var type = element.type;\n  switch (type) {\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.START_SIGNAL_EVENT:\n      // 开始节点\n      return {\n        width: 280,\n        height: (0,___WEBPACK_IMPORTED_MODULE_11__.isTriggerTime)(element.data.triggerMode) ? 180 : 112\n      };\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.NOCODE_USER_TASK:\n      // 录入节点\n      return {\n        width: 280,\n        height: 112\n      };\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.END_NONE_EVENT:\n      // 结束节点\n      return {\n        width: 80,\n        height: 40\n      };\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.NOCODE_NOTIFY_TASK:\n      // 发送消息\n      return {\n        width: 280,\n        height: getNodeHeight(element, 248, 112)\n      };\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.NOCODE_API_INVOKE_AUTO_TASK:\n      // API节点\n      return {\n        width: 280,\n        height: getNodeHeight(element, 248, element.data.authMode === 'oauth2' ? 132 : 112)\n      };\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.NOCODE_GATEWAY:\n      // 分支开始节点\n      return {\n        width: 36,\n        height: 36\n      };\n    case _nodeType__WEBPACK_IMPORTED_MODULE_10__.NULL_NODE_TYPE:\n      // 分支结束节点\n      return {\n        width: 2,\n        height: 1\n      };\n    default:\n      return {\n        width: 280,\n        height: getNodeHeight(element, 248, 84)\n      };\n  }\n}\nfunction getNodeHeight(element, nodeWidth, initHeight) {\n  var _context, _context2;\n  var data = element.data;\n  // let innerText = ''\n  // if (type === CONDITION_NODE_TYPE) {\n  //   innerText = (data.PreDescription || '')\n  // } else if (type === RET_NODE_TYPE) {\n  //   innerText = data.RET || ''\n  // } else {\n  //   innerText = data.Description || ''\n  // }\n  var container = document.createElement('div');\n  var css = 'line-height: 20px; word-break: break-all; font-size: 14px;';\n  container.setAttribute('style', _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = \"\".concat(css, \" width: \")).call(_context2, nodeWidth, \"px; max-width:\")).call(_context, nodeWidth, \"px;\"));\n  document.body.appendChild(container);\n  container.innerText = (data === null || data === void 0 ? void 0 : data.documentation) || '';\n  var _container$getBoundin = container.getBoundingClientRect(),\n    height = _container$getBoundin.height;\n  document.body.removeChild(container);\n  var result = height > 40 ? 40 : height;\n  return initHeight + result;\n}\nvar getViewPortWidth = function getViewPortWidth(elements) {\n  var _context3;\n  var xPosInfo = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(_context3 = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_8___default()(elements).call(elements, function (el) {\n    if ((0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.isNode)(el)) {\n      var _el$position = el.position,\n        x = _el$position.x,\n        y = _el$position.y;\n      return x;\n    }\n    return null;\n  })).call(_context3, Boolean);\n  return Math.max.apply(Math, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(xPosInfo));\n};\n\n/**\n * 获取 ReactFlow 的配置项\n * @returns ReactFlowProps\n */\nfunction getReactFlowConfig() {\n  return {\n    style: {\n      background: '#F8FAFC'\n    },\n    panOnScroll: true,\n    zoomOnScroll: false,\n    preventScrolling: false,\n    nodesConnectable: false,\n    nodesDraggable: false,\n    panOnScrollMode: react_flow_renderer__WEBPACK_IMPORTED_MODULE_9__.PanOnScrollMode.Free,\n    defaultZoom: 1,\n    minZoom: 1 / 1.5 / 1.5 / 1.5,\n    maxZoom: 1.5 * 1.5 * 1.5,\n    zoomOnDoubleClick: false\n  };\n}\nfunction getAllRulesFlowConfig() {\n  return _objectSpread(_objectSpread({}, getReactFlowConfig()), {}, {\n    style: {\n      background: '#fff'\n    }\n  });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///21920\n");

/***/ }),

/***/ 1048:
/*!***************************!*\
  !*** ./src/utils/meta.ts ***!
  \***************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   adaptorMeta: function() { return /* binding */ adaptorMeta; },\n/* harmony export */   filterProperty: function() { return /* binding */ filterProperty; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../constants/propnames */ 94096);\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-10 17:35:35\n * @LastEditTime: 2024-01-05 15:17:05\n * @Last Modified by: jianhang_he\n */\n\n\nvar defaultPropertyGroupConfig = {\n  Id: 'anonyoumsMockId',\n  Name: 'anonyoumsMockName',\n  Key: 'anonyoumsMockKey',\n  DefaultGroup: true\n};\nvar transformMeta = function transformMeta(meta) {\n  var _context;\n  return _objectSpread(_objectSpread({}, meta), {}, {\n    PropertyGroups: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(_context = [defaultPropertyGroupConfig]).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(meta.PropertyGroups || []))\n  });\n};\n\n// 适配meta数据\nvar adaptorMeta = function adaptorMeta(originMeta, data) {\n  var _meta = transformMeta(originMeta);\n  return (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_9__.adaptorMeta)(_meta, (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_9__.mergeTransformKeyMap)(designer_base_Main__WEBPACK_IMPORTED_MODULE_9__.transformKeyMap, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({}, _constants_propnames__WEBPACK_IMPORTED_MODULE_10__.items, [_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.Enum])), data);\n};\n\n/**\n * @description: 过滤属性模型, true为隐藏, false为显示\n * @param {IControlItem} field\n * @param {IControlProperty} propMeta\n * @return {boolean}\n */\nvar filterProperty = function filterProperty(propMeta) {\n  var hideConfig = propMeta.Hide;\n  if (hideConfig && (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(hideConfig) === 'object') {\n    var hide = hideConfig.Hide;\n    return hide;\n  }\n  return false;\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTA0OC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBRUE7QUFBQTtBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBR0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL3V0aWxzL21ldGEudHM/M2Y2YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTAzLTEwIDE3OjM1OjM1XG4gKiBATGFzdEVkaXRUaW1lOiAyMDI0LTAxLTA1IDE1OjE3OjA1XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IHsgbWVyZ2VUcmFuc2Zvcm1LZXlNYXAsIHRyYW5zZm9ybUtleU1hcCwgYWRhcHRvck1ldGEgYXMgX2FkYXB0b3JNZXRhIH0gZnJvbSAnZGVzaWduZXJfYmFzZS9NYWluJ1xuaW1wb3J0IHsgaXRlbXMsIEVudW0gfSBmcm9tICcuLi9jb25zdGFudHMvcHJvcG5hbWVzJ1xuXG5jb25zdCBkZWZhdWx0UHJvcGVydHlHcm91cENvbmZpZyA9IHtcbiAgSWQ6ICdhbm9ueW91bXNNb2NrSWQnLFxuICBOYW1lOiAnYW5vbnlvdW1zTW9ja05hbWUnLFxuICBLZXk6ICdhbm9ueW91bXNNb2NrS2V5JyxcbiAgRGVmYXVsdEdyb3VwOiB0cnVlXG59XG5cbmNvbnN0IHRyYW5zZm9ybU1ldGEgPSAobWV0YSkgPT4ge1xuICByZXR1cm4ge1xuICAgIC4uLm1ldGEsXG4gICAgUHJvcGVydHlHcm91cHM6IFtkZWZhdWx0UHJvcGVydHlHcm91cENvbmZpZywgLi4uKG1ldGEuUHJvcGVydHlHcm91cHMgfHwgW10pXVxuICB9XG59XG5cbi8vIOmAgumFjW1ldGHmlbDmja5cbmV4cG9ydCBjb25zdCBhZGFwdG9yTWV0YSA9IChvcmlnaW5NZXRhOiBhbnksIGRhdGE6IGFueSkgPT4ge1xuICBjb25zdCBfbWV0YSA9IHRyYW5zZm9ybU1ldGEob3JpZ2luTWV0YSlcbiAgcmV0dXJuIF9hZGFwdG9yTWV0YShfbWV0YSwgbWVyZ2VUcmFuc2Zvcm1LZXlNYXAodHJhbnNmb3JtS2V5TWFwLCB7XG4gICAgW2l0ZW1zXTogW0VudW1dXG4gIH0pLCBkYXRhKVxufVxuXG4vKipcbiAqIEBkZXNjcmlwdGlvbjog6L+H5ruk5bGe5oCn5qih5Z6LLCB0cnVl5Li66ZqQ6JePLCBmYWxzZeS4uuaYvuekulxuICogQHBhcmFtIHtJQ29udHJvbEl0ZW19IGZpZWxkXG4gKiBAcGFyYW0ge0lDb250cm9sUHJvcGVydHl9IHByb3BNZXRhXG4gKiBAcmV0dXJuIHtib29sZWFufVxuICovXG5leHBvcnQgY29uc3QgZmlsdGVyUHJvcGVydHkgPSAocHJvcE1ldGEpOmJvb2xlYW4gPT4ge1xuICBjb25zdCBoaWRlQ29uZmlnID0gcHJvcE1ldGEuSGlkZVxuICBpZiAoaGlkZUNvbmZpZyAmJiB0eXBlb2YgaGlkZUNvbmZpZyA9PT0gJ29iamVjdCcpIHtcbiAgICBjb25zdCB7IEhpZGU6IGhpZGUgfSA9IGhpZGVDb25maWdcbiAgICByZXR1cm4gaGlkZVxuICB9XG4gIHJldHVybiBmYWxzZVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1048\n");

/***/ }),

/***/ 1300:
/*!*******************************!*\
  !*** ./src/utils/nodeType.ts ***!
  \*******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   BRANCH_NODE_TYPE: function() { return /* binding */ BRANCH_NODE_TYPE; },\n/* harmony export */   BRANCH_START_NODE_TYPE: function() { return /* binding */ BRANCH_START_NODE_TYPE; },\n/* harmony export */   CALCULATE_AUTO_TASK: function() { return /* binding */ CALCULATE_AUTO_TASK; },\n/* harmony export */   END_NONE_EVENT: function() { return /* binding */ END_NONE_EVENT; },\n/* harmony export */   NEW_BILL_AUTO_TASK: function() { return /* binding */ NEW_BILL_AUTO_TASK; },\n/* harmony export */   NOCODE_API_INVOKE_AUTO_TASK: function() { return /* binding */ NOCODE_API_INVOKE_AUTO_TASK; },\n/* harmony export */   NOCODE_AUDIT_TASK: function() { return /* binding */ NOCODE_AUDIT_TASK; },\n/* harmony export */   NOCODE_GATEWAY: function() { return /* binding */ NOCODE_GATEWAY; },\n/* harmony export */   NOCODE_JUDGE_TASK: function() { return /* binding */ NOCODE_JUDGE_TASK; },\n/* harmony export */   NOCODE_NOTIFY_TASK: function() { return /* binding */ NOCODE_NOTIFY_TASK; },\n/* harmony export */   NOCODE_USER_TASK: function() { return /* binding */ NOCODE_USER_TASK; },\n/* harmony export */   NULL_NODE_TYPE: function() { return /* binding */ NULL_NODE_TYPE; },\n/* harmony export */   QUERY_DATA_AUTO_TASK: function() { return /* binding */ QUERY_DATA_AUTO_TASK; },\n/* harmony export */   SEQUENCEFLOW: function() { return /* binding */ SEQUENCEFLOW; },\n/* harmony export */   START_SIGNAL_EVENT: function() { return /* binding */ START_SIGNAL_EVENT; },\n/* harmony export */   UPDATE_BILL_AUTO_TASK: function() { return /* binding */ UPDATE_BILL_AUTO_TASK; }\n/* harmony export */ });\n/*\n * @Description: 记录节点和线的类型\n * @Author: jianhang_he\n * @Date: 2023-04-04 18:16:29\n * @LastEditTime: 2024-05-07 13:56:46\n * @Last Modified by: jianhang_he\n */\n\n/**\n * 开始节点\n */\nvar START_SIGNAL_EVENT = 'StartSignalEvent';\n/**\n * 结束节点\n */\nvar END_NONE_EVENT = 'EndNoneEvent';\n\n/* 处理表单记录 */\n\n/**\n * 查找表单记录\n */\nvar QUERY_DATA_AUTO_TASK = 'QueryDataAutoTask';\n\n/**\n * 新增表单记录\n */\nvar NEW_BILL_AUTO_TASK = 'NewBillAutoTask';\n\n/**\n * 修改表单记录\n */\nvar UPDATE_BILL_AUTO_TASK = 'UpdateBillAutoTask';\n\n/** 任务 */\n\n/**\n * 审批节点\n */\nvar NOCODE_AUDIT_TASK = 'NoCodeAuditTask';\n\n/**\n * 录入\n */\nvar NOCODE_USER_TASK = 'NoCodeUserTask';\n\n/** 分支 */\n\n/**\n *判断分支\n */\nvar NOCODE_GATEWAY = 'NoCodeGateway';\n\n/**\n * 判断\n */\nvar NOCODE_JUDGE_TASK = 'NoCodeJudgeTask';\n\n/* 系统功能 */\n\n/**\n * 运算节点\n */\nvar CALCULATE_AUTO_TASK = 'CalculateAutoTask';\n\n/**\n * 发送消息\n */\nvar NOCODE_NOTIFY_TASK = 'NoCodeNotifyTask';\n\n/**\n * 自定义JSON\n */\n// export const CUSTOM_JSON_TASK = 'CustomJSONTask'\n\n/** 分支 */\n\n/**\n * 分支开始节点\n */\nvar BRANCH_START_NODE_TYPE = 'BranchStartNode';\n\n/**\n * 分支节点\n */\nvar BRANCH_NODE_TYPE = 'BranchNode';\n\n/**\n * 空节点\n */\nvar NULL_NODE_TYPE = 'NullNode';\n\n/**\n * API节点\n */\nvar NOCODE_API_INVOKE_AUTO_TASK = 'ApiInvokeAutoTask';\n\n// 线\nvar SEQUENCEFLOW = 'SequenceFlow'; // 连线//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTMwMC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvdXRpbHMvbm9kZVR5cGUudHM/ODQ5MSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOiDorrDlvZXoioLngrnlkoznur/nmoTnsbvlnotcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0wNC0wNCAxODoxNjoyOVxuICogQExhc3RFZGl0VGltZTogMjAyNC0wNS0wNyAxMzo1Njo0NlxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cblxuLyoqXG4gKiDlvIDlp4voioLngrlcbiAqL1xuZXhwb3J0IGNvbnN0IFNUQVJUX1NJR05BTF9FVkVOVCA9ICdTdGFydFNpZ25hbEV2ZW50J1xuLyoqXG4gKiDnu5PmnZ/oioLngrlcbiAqL1xuZXhwb3J0IGNvbnN0IEVORF9OT05FX0VWRU5UID0gJ0VuZE5vbmVFdmVudCdcblxuLyog5aSE55CG6KGo5Y2V6K6w5b2VICovXG5cbi8qKlxuICog5p+l5om+6KGo5Y2V6K6w5b2VXG4gKi9cbmV4cG9ydCBjb25zdCBRVUVSWV9EQVRBX0FVVE9fVEFTSyA9ICdRdWVyeURhdGFBdXRvVGFzaydcblxuLyoqXG4gKiDmlrDlop7ooajljZXorrDlvZVcbiAqL1xuZXhwb3J0IGNvbnN0IE5FV19CSUxMX0FVVE9fVEFTSyA9ICdOZXdCaWxsQXV0b1Rhc2snXG5cbi8qKlxuICog5L+u5pS56KGo5Y2V6K6w5b2VXG4gKi9cbmV4cG9ydCBjb25zdCBVUERBVEVfQklMTF9BVVRPX1RBU0sgPSAnVXBkYXRlQmlsbEF1dG9UYXNrJ1xuXG4vKiog5Lu75YqhICovXG5cbi8qKlxuICog5a6h5om56IqC54K5XG4gKi9cbmV4cG9ydCBjb25zdCBOT0NPREVfQVVESVRfVEFTSyA9ICdOb0NvZGVBdWRpdFRhc2snXG5cbi8qKlxuICog5b2V5YWlXG4gKi9cbmV4cG9ydCBjb25zdCBOT0NPREVfVVNFUl9UQVNLID0gJ05vQ29kZVVzZXJUYXNrJ1xuXG4vKiog5YiG5pSvICovXG5cbi8qKlxuICrliKTmlq3liIbmlK9cbiAqL1xuZXhwb3J0IGNvbnN0IE5PQ09ERV9HQVRFV0FZID0gJ05vQ29kZUdhdGV3YXknXG5cbi8qKlxuICog5Yik5patXG4gKi9cbmV4cG9ydCBjb25zdCBOT0NPREVfSlVER0VfVEFTSyA9ICdOb0NvZGVKdWRnZVRhc2snXG5cbi8qIOezu+e7n+WKn+iDvSAqL1xuXG4vKipcbiAqIOi/kOeul+iKgueCuVxuICovXG5leHBvcnQgY29uc3QgQ0FMQ1VMQVRFX0FVVE9fVEFTSyA9ICdDYWxjdWxhdGVBdXRvVGFzaydcblxuLyoqXG4gKiDlj5HpgIHmtojmga9cbiAqL1xuZXhwb3J0IGNvbnN0IE5PQ09ERV9OT1RJRllfVEFTSyA9ICdOb0NvZGVOb3RpZnlUYXNrJ1xuXG4vKipcbiAqIOiHquWumuS5iUpTT05cbiAqL1xuLy8gZXhwb3J0IGNvbnN0IENVU1RPTV9KU09OX1RBU0sgPSAnQ3VzdG9tSlNPTlRhc2snXG5cbi8qKiDliIbmlK8gKi9cblxuLyoqXG4gKiDliIbmlK/lvIDlp4voioLngrlcbiAqL1xuZXhwb3J0IGNvbnN0IEJSQU5DSF9TVEFSVF9OT0RFX1RZUEUgPSAnQnJhbmNoU3RhcnROb2RlJ1xuXG4vKipcbiAqIOWIhuaUr+iKgueCuVxuICovXG5leHBvcnQgY29uc3QgQlJBTkNIX05PREVfVFlQRSA9ICdCcmFuY2hOb2RlJ1xuXG4vKipcbiAqIOepuuiKgueCuVxuICovXG5leHBvcnQgY29uc3QgTlVMTF9OT0RFX1RZUEUgPSAnTnVsbE5vZGUnXG5cbi8qKlxuICogQVBJ6IqC54K5XG4gKi9cbmV4cG9ydCBjb25zdCBOT0NPREVfQVBJX0lOVk9LRV9BVVRPX1RBU0sgPSAnQXBpSW52b2tlQXV0b1Rhc2snXG5cbi8vIOe6v1xuZXhwb3J0IGNvbnN0IFNFUVVFTkNFRkxPVyA9ICdTZXF1ZW5jZUZsb3cnIC8vIOi/nue6v1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1300\n");

/***/ }),

/***/ 98820:
/*!******************************!*\
  !*** ./src/utils/storage.ts ***!
  \******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   getStorage: function() { return /* binding */ getStorage; },\n/* harmony export */   setStorage: function() { return /* binding */ setStorage; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ 85640);\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/regenerator */ 29052);\n/* harmony import */ var _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n/**\n * 缓存数据\n * @param key\n * @param value\n * @returns\n */\nvar setStorage = /*#__PURE__*/function () {\n  var _ref = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee(key, value) {\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          _context.prev = 0;\n          if (!(value !== null && value !== undefined)) {\n            _context.next = 4;\n            break;\n          }\n          window.localStorage.setItem(key, _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_2___default()(value));\n          return _context.abrupt(\"return\", true);\n        case 4:\n          return _context.abrupt(\"return\", false);\n        case 7:\n          _context.prev = 7;\n          _context.t0 = _context[\"catch\"](0);\n          window.localStorage.clear();\n          console.error('缓存失败', key, _context.t0);\n        case 11:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee, null, [[0, 7]]);\n  }));\n  return function setStorage(_x, _x2) {\n    return _ref.apply(this, arguments);\n  };\n}();\n/**\n * 从缓存获取数据\n * @param key\n * @returns\n */\nvar getStorage = /*#__PURE__*/function () {\n  var _ref2 = (0,_babel_runtime_corejs3_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/_babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark(function _callee2(key) {\n    var res;\n    return _babel_runtime_corejs3_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap(function _callee2$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          _context2.prev = 0;\n          _context2.next = 3;\n          return window.localStorage.getItem(key);\n        case 3:\n          res = _context2.sent;\n          return _context2.abrupt(\"return\", res ? JSON.parse(res) : null);\n        case 7:\n          _context2.prev = 7;\n          _context2.t0 = _context2[\"catch\"](0);\n          console.error('获取缓存失败', key, _context2.t0);\n        case 10:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee2, null, [[0, 7]]);\n  }));\n  return function getStorage(_x3) {\n    return _ref2.apply(this, arguments);\n  };\n}();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOTg4MjAuanMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFYQTtBQUFBO0FBQUE7QUFZQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQVBBO0FBQUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1mbG93Ly4vc3JjL3V0aWxzL3N0b3JhZ2UudHM/YjdjNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIOe8k+WtmOaVsOaNrlxuICogQHBhcmFtIGtleVxuICogQHBhcmFtIHZhbHVlXG4gKiBAcmV0dXJuc1xuICovXG5leHBvcnQgY29uc3Qgc2V0U3RvcmFnZSA9IGFzeW5jIChrZXk6c3RyaW5nLCB2YWx1ZTphbnkpID0+IHtcbiAgdHJ5IHtcbiAgICBpZiAodmFsdWUgIT09IG51bGwgJiYgdmFsdWUgIT09IHVuZGVmaW5lZCkge1xuICAgICAgd2luZG93LmxvY2FsU3RvcmFnZS5zZXRJdGVtKGtleSwgSlNPTi5zdHJpbmdpZnkodmFsdWUpKVxuICAgICAgcmV0dXJuIHRydWVcbiAgICB9XG4gICAgcmV0dXJuIGZhbHNlXG4gIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgd2luZG93LmxvY2FsU3RvcmFnZS5jbGVhcigpXG4gICAgY29uc29sZS5lcnJvcign57yT5a2Y5aSx6LSlJywga2V5LCBlcnJvcilcbiAgfVxufVxuLyoqXG4gKiDku47nvJPlrZjojrflj5bmlbDmja5cbiAqIEBwYXJhbSBrZXlcbiAqIEByZXR1cm5zXG4gKi9cbmV4cG9ydCBjb25zdCBnZXRTdG9yYWdlID0gYXN5bmMgKGtleTpzdHJpbmcpID0+IHtcbiAgdHJ5IHtcbiAgICBjb25zdCByZXMgPSBhd2FpdCB3aW5kb3cubG9jYWxTdG9yYWdlLmdldEl0ZW0oa2V5KVxuICAgIHJldHVybiByZXMgPyBKU09OLnBhcnNlKHJlcykgOiBudWxsXG4gIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgY29uc29sZS5lcnJvcign6I635Y+W57yT5a2Y5aSx6LSlJywga2V5LCBlcnJvcilcbiAgfVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///98820\n");

/***/ }),

/***/ 31340:
/*!********************************!*\
  !*** ./src/utils/treeUtils.ts ***!
  \********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   checkExpendSingleAndFocusMulti: function() { return /* binding */ checkExpendSingleAndFocusMulti; },\n/* harmony export */   entityMetaToTree: function() { return /* binding */ entityMetaToTree; },\n/* harmony export */   exludeTreeNodeByCallback: function() { return /* binding */ exludeTreeNodeByCallback; },\n/* harmony export */   expendTreeOptionChildren: function() { return /* binding */ expendTreeOptionChildren; },\n/* harmony export */   formatFieldTree: function() { return /* binding */ formatFieldTree; },\n/* harmony export */   getEditorEntityTree: function() { return /* binding */ getEditorEntityTree; },\n/* harmony export */   getExpandedKeys: function() { return /* binding */ getExpandedKeys; },\n/* harmony export */   getSelectNodeFromTree: function() { return /* binding */ getSelectNodeFromTree; },\n/* harmony export */   getTreeDataFlatten: function() { return /* binding */ getTreeDataFlatten; },\n/* harmony export */   toArrayTree: function() { return /* binding */ toArrayTree; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ 73980);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ 13440);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ 59992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ 60600);\n/* harmony import */ var _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ 30260);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ 99308);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../constants */ 98092);\n\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_5___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_8___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_7___default()(t, r)); }); } return e; }\n\n\n\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof (_babel_runtime_corejs3_core_js_stable_symbol__WEBPACK_IMPORTED_MODULE_2___default()) !== \"undefined\" && _babel_runtime_corejs3_core_js_get_iterator_method__WEBPACK_IMPORTED_MODULE_3___default()(o) || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context10; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_0___default()(_context10 = Object.prototype.toString.call(o)).call(_context10, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _babel_runtime_corejs3_core_js_stable_array_from__WEBPACK_IMPORTED_MODULE_1___default()(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-06-17 09:06:12\n * @LastEditTime: 2024-04-03 17:43:02\n * @Last Modified by: jianhang_he\n */\n\n\nvar listToTree = function listToTree(treeRoot, list) {\n  var obj = {};\n  var _iterator = _createForOfIteratorHelper(list),\n    _step;\n  try {\n    for (_iterator.s(); !(_step = _iterator.n()).done;) {\n      var item = _step.value;\n      obj[item.ParentId] = obj[item.ParentId] || [];\n      obj[item.ParentId].push(item);\n    }\n  } catch (err) {\n    _iterator.e(err);\n  } finally {\n    _iterator.f();\n  }\n  return formatTree([treeRoot], obj);\n};\nvar formatTree = function formatTree(data, childMap) {\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12___default()(data).call(data, function (item) {\n    var children = childMap[item.Id];\n    if (!childMap[item.Id]) return item;\n    return _objectSpread(_objectSpread({}, item), {}, {\n      children: formatTree(children, childMap)\n    });\n  });\n};\nvar entityMetaToTree = function entityMetaToTree(entitymeta) {\n  var _entitymeta$Items = entitymeta.Items,\n    items = _entitymeta$Items === void 0 ? [] : _entitymeta$Items;\n  var treeRoot = items[0] || {};\n  var treeHead = {\n    Name: '单据头',\n    Id: 'tree-head-node',\n    ParentId: treeRoot.Id\n  };\n  var formatedList = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12___default()(items).call(items, function (item) {\n    var parentId = item.ParentId,\n      fieldName = item.FieldName,\n      Id = item.Id;\n    if ((!parentId || parentId === treeRoot.Id) && fieldName) {\n      return _objectSpread(_objectSpread({}, item), {}, {\n        ParentId: 'tree-head-node'\n      });\n    } else if (!parentId && Id !== treeRoot.Id) {\n      return _objectSpread(_objectSpread({}, item), {}, {\n        ParentId: treeRoot.Id || ''\n      });\n    }\n    return item;\n  });\n  formatedList.unshift(treeHead);\n  return listToTree(treeRoot, formatedList, undefined);\n};\nvar getEditorEntityTree = function getEditorEntityTree(ruleMetaInfo, activeRuleNodeId, actionType, treeType) {\n  var _entity$activeRuleNod;\n  var _ruleMetaInfo$ = ruleMetaInfo[0],\n    entity = _ruleMetaInfo$.entity,\n    treeMap = _ruleMetaInfo$.treeMap;\n  var treeId = (entity === null || entity === void 0 || (_entity$activeRuleNod = entity[activeRuleNodeId]) === null || _entity$activeRuleNod === void 0 ? void 0 : _entity$activeRuleNod[actionType]) || '';\n  if ((0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(treeId) === 'object' && treeType) {\n    treeId = treeId[treeType];\n  }\n  if (!treeId) return [];\n  console.log(actionType, treeId, treeMap[treeId]);\n  return [treeMap[treeId]];\n};\nvar getTreeDataFlatten = function getTreeDataFlatten(treeData) {\n  var flattenData = [];\n  var getChildren = function getChildren(item, arr) {\n    var children = item.children;\n    if (children !== null && children !== void 0 && children.length) {\n      arr.push.apply(arr, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(children));\n      children.forEach(function (i) {\n        return getChildren(i, arr);\n      });\n    }\n  };\n  treeData.forEach(function (data) {\n    flattenData.push(data);\n    getChildren(data, flattenData);\n  });\n  return flattenData;\n};\n\n// 改变一下树返回来的结构，有可能数组\nvar toArrayTree = function toArrayTree(tree) {\n  var newTree = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_16__.cloneDeep)(tree);\n  if (Array.isArray(newTree)) return newTree;\n  return newTree ? [newTree] : [];\n};\n\n// 获取选中的节点\nvar getSelectNodeFromTree = function getSelectNodeFromTree(key, tree) {\n  var data = tree;\n  if (!Array.isArray(tree)) {\n    data = [tree];\n  }\n  for (var i = 0; i < data.length; i++) {\n    var item = data[i];\n    if (!item) return null;\n    if (item.key === key) {\n      return item;\n    } else {\n      var node = getSelectNodeFromTree(key, item.children);\n      if (node) return node;\n    }\n  }\n  return null;\n};\n\n/**\n * 将变量树的关联表单变量展开\n * 如果变量类型是关联表单，则把关联表单的子属性取出作为变量\n * @param data 变量树\n * @param nodeKey 需要展开的节点\n * @param editorType editor类型\n * @param isLoop 是否为循环赋值变量\n * @param expendPk 是否展开OK数据\n * @returns any[]\n */\nfunction formatFieldTree(data) {\n  var nodeKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n  var editorType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n  var expendPk = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n  var fieldList = data || [];\n  var isVar = editorType === 'varselect'; // 是赋值对象\n  // const isCalc = isCalcNode(nodeType) // 运算节点\n  fieldList.forEach(function (field) {\n    var _context, _option$children;\n    var type = field.type,\n      option = field.option,\n      children = field.children,\n      key = field.key;\n\n    // 用于多行文本类型映射回真实类型\n    if (_constants__WEBPACK_IMPORTED_MODULE_17__.FIELD_TYPE_MAP[option === null || option === void 0 ? void 0 : option.editorType]) {\n      field.type = _constants__WEBPACK_IMPORTED_MODULE_17__.FIELD_TYPE_MAP[option === null || option === void 0 ? void 0 : option.editorType];\n    }\n    // console.log('option', option)\n    // expendOnlyInExp为false 类型为'refbill', 'user', 'org'其中之一，是多选节点，children的长度不为空\n    // 这种场景才对option节点进行展开\n    var isLoop = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13___default()(key).call(key, '.QueryDataSet'); // 是否数据集，单条数据\n    // isQuerySet，修改和运算，isLoop场景下，展开\n    // isLoop为true时queryset展开\n    // isLoop为true时，单条多条都展开\n    // isLoop为false时，多条不展开，单条展开\n    // 运算下多条不展开，单条展开\n    // type === 'pk' 全场景展开\n    // const isMultiData = isVar ? isQuerySet : isCalc ? !isQuerySet : true // 是否为多数据\n    var isMultiData = isVar ? isLoop ? true : !(option !== null && option !== void 0 && option.isMulti) : true; // 是否为多数据,如果是赋值对象,isloop单选全展开,多选只展开已选节点,isloop为false时,只展开单选； 值选择器全展开，通过过滤条件，控件节点显示\n    var isRefBill = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13___default()(_context = ['refbill', 'user', 'org']).call(_context, type); // 是否是关联表单类型\n    var isExpend = type === 'pk' || isMultiData && isRefBill; // 如果是PK类型就展开\n    if (isExpend && option !== null && option !== void 0 && (_option$children = option.children) !== null && _option$children !== void 0 && _option$children.length && !(option !== null && option !== void 0 && option.expendOnlyInExp)) {\n      // 将option的children加入到树节点\n      if (nodeKey && nodeKey === field.parentKey || !nodeKey) {\n        var _context2;\n        field.children = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12___default()(_context2 = option.children).call(_context2, function (op) {\n          return _objectSpread(_objectSpread({}, op), {}, {\n            key: op.value,\n            parentKey: key\n          });\n        });\n        if (type === 'pk' && expendPk) {\n          // PK下的数据再展开一级\n          // formatFieldTree(field.children, '', editorType, nodeType, false)\n          formatFieldTree(field.children, '', editorType, false);\n        }\n      }\n      // delete option.children\n    } else if (children !== null && children !== void 0 && children.length) {\n      // formatFieldTree(children, nodeKey, editorType, nodeType, true)\n      formatFieldTree(children, nodeKey, editorType, true);\n    }\n  });\n  return fieldList;\n}\n\n// 检查是否为单选，或为当前多选，若为true，则展开option\nvar checkExpendSingleAndFocusMulti = function checkExpendSingleAndFocusMulti(item, refNodeId) {\n  var _context3;\n  var _ref = item || {},\n    type = _ref.type,\n    option = _ref.option,\n    parentKey = _ref.parentKey;\n  // 展开单条及，父节点KEY与所选refNodeId一致的多选变量, expendOnlyInExp为false\n  var isRefBill = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13___default()(_context3 = ['refbill', 'user', 'org']).call(_context3, type);\n  var isSingle = isRefBill && !(option !== null && option !== void 0 && option.isMulti);\n  var isMulti = isRefBill && (option === null || option === void 0 ? void 0 : option.isMulti) && parentKey === refNodeId;\n  return (type === 'pk' || isSingle || isMulti) && !(option !== null && option !== void 0 && option.expendOnlyInExp);\n};\n\n/**\n * 展开option 的children\n * @param data 源数据\n * @param expendHandle 展开条件函数\n * @param expendPk 是否展开PK属性的option children\n * @returns\n */\nvar expendTreeOptionChildren = function expendTreeOptionChildren() {\n  var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n  var expendHandle = arguments.length > 1 ? arguments[1] : undefined;\n  var selectHandle = arguments.length > 2 ? arguments[2] : undefined;\n  var expendPk = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n  return data === null || data === void 0 ? void 0 : data.reduce(function (prev, field) {\n    var _option$children2, _context5;\n    var type = field.type,\n      option = field.option,\n      children = field.children,\n      key = field.key;\n    if (_constants__WEBPACK_IMPORTED_MODULE_17__.FIELD_TYPE_MAP[option === null || option === void 0 ? void 0 : option.editorType]) {\n      field.type = _constants__WEBPACK_IMPORTED_MODULE_17__.FIELD_TYPE_MAP[option === null || option === void 0 ? void 0 : option.editorType];\n    }\n    var isExpend = expendHandle ? expendHandle === null || expendHandle === void 0 ? void 0 : expendHandle(field) : true;\n    if (isExpend && option !== null && option !== void 0 && (_option$children2 = option.children) !== null && _option$children2 !== void 0 && _option$children2.length) {\n      var _context4;\n      field.children = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_12___default()(_context4 = option.children).call(_context4, function (op) {\n        var _op$option;\n        // const { title, titlePrefix } = splitTitlePrefix(op.title || '')\n        // 展开时，根据op?.option?.editorType多选文本类型要显示成多行文本框\n        var type = _constants__WEBPACK_IMPORTED_MODULE_17__.FIELD_TYPE_MAP[op === null || op === void 0 || (_op$option = op.option) === null || _op$option === void 0 ? void 0 : _op$option.editorType] || op.type;\n        return _objectSpread(_objectSpread({}, op), {}, {\n          key: op.value,\n          parentKey: key,\n          type: type\n        });\n      });\n      if (selectHandle || option !== null && option !== void 0 && option.cannotSelect) {\n        var result = selectHandle === null || selectHandle === void 0 ? void 0 : selectHandle(field);\n        // 自定义是否可选，或cannotSelect属性为true时不可选\n        var canSelectAndCheck = typeof result === 'boolean' ? result : !(option !== null && option !== void 0 && option.cannotSelect);\n        field.selectable = canSelectAndCheck;\n        // 应该和checkable无关，这个是勾选的\n        // field.checkable = canSelectAndCheck\n      }\n      if (type === 'pk' && expendPk) {\n        // PK下的数据再展开一级\n        expendTreeOptionChildren(field.children, expendHandle, selectHandle, false);\n      }\n    } else if (children !== null && children !== void 0 && children.length) {\n      expendTreeOptionChildren(children, expendHandle, selectHandle, expendPk);\n    }\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context5 = []).call(_context5, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(prev), [field]);\n  }, []);\n};\n\n/**\n * 获取展开节点\n * @param data 树结构数据\n * @param selectedKeys 要查找的keys\n * @returns 返回查找keys的所有祖先节点，不按顺序，没有重复。用于展开已选节点\n */\nvar getExpandedKeys = function getExpandedKeys(data, selectedKeys) {\n  var _context8;\n  var ancestorKeys = [];\n  var index = 0;\n  var len = selectedKeys.length;\n  function traverse(node, keys) {\n    var _node$children;\n    if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_13___default()(selectedKeys).call(selectedKeys, node.key)) {\n      index++;\n      ancestorKeys.push.apply(ancestorKeys, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(keys));\n    }\n    if ((_node$children = node.children) !== null && _node$children !== void 0 && _node$children.length) {\n      var _iterator2 = _createForOfIteratorHelper(node.children),\n        _step2;\n      try {\n        for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n          var _context7;\n          var child = _step2.value;\n          if (index >= len) {\n            var _context6;\n            return (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(new (_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_15___default())(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context6 = []).call(_context6, ancestorKeys)));\n          }\n          traverse(child, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context7 = []).call(_context7, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(keys), [node.key]));\n        }\n      } catch (err) {\n        _iterator2.e(err);\n      } finally {\n        _iterator2.f();\n      }\n    }\n  }\n  var _iterator3 = _createForOfIteratorHelper(data),\n    _step3;\n  try {\n    for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n      var node = _step3.value;\n      if (index >= len) {\n        var _context9;\n        return (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(new (_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_15___default())(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context9 = []).call(_context9, ancestorKeys)));\n      }\n      traverse(node, []);\n    }\n  } catch (err) {\n    _iterator3.e(err);\n  } finally {\n    _iterator3.f();\n  }\n  return (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(new (_babel_runtime_corejs3_core_js_stable_set__WEBPACK_IMPORTED_MODULE_15___default())(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(_context8 = []).call(_context8, ancestorKeys)));\n};\n\n// 根据传入的callback，对树节点的数据作排除\nvar exludeTreeNodeByCallback = function exludeTreeNodeByCallback(treeData, filterNodeCb) {\n  if (!treeData) return treeData;\n  return treeData.reduce(function (newTree, item) {\n    var children = item.children,\n      option = item.option;\n    var node = _objectSpread({}, item);\n    if (option) {\n      node.option.children = exludeTreeNodeByCallback(node.option.children, filterNodeCb);\n    } else if (children) {\n      node.children = exludeTreeNodeByCallback(node.children, filterNodeCb);\n    }\n    if (filterNodeCb) {\n      return filterNodeCb !== null && filterNodeCb !== void 0 && filterNodeCb(node) ? _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(newTree).call(newTree, node) : newTree;\n    }\n    return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_14___default()(newTree).call(newTree, node);\n  }, []);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///31340\n");

/***/ }),

/***/ 67328:
/*!*********************************!*\
  !*** ./src/views/main-view.tsx ***!
  \*********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react-flow-renderer */ 98752);\n/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! dagre */ 84912);\n/* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../context */ 90115);\n/* harmony import */ var _utils_convert_data__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/convert-data */ 13908);\n/* harmony import */ var _utils_layout__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/layout */ 21920);\n/* harmony import */ var _hooks_useKeyboardEvent__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../hooks/useKeyboardEvent */ 87060);\n/* harmony import */ var _right_panel__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./right-panel */ 98564);\n/* harmony import */ var _controls__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../controls */ 82684);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../constants/actionname */ 20572);\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../constants */ 98092);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! kd_libs/lodash */ 60644);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var _utils_index__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/index */ 41232);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/nodeType */ 1300);\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_0___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_1___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_4___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_3___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// import { NODES, EDGES, LAYOUTELEMENTS } from './mock'\n\n\n// 视图初始左边距\nvar bodyWidth = document.body.offsetWidth;\nvar panLeft = bodyWidth / 2 - 140;\nvar getTransform = function getTransform(state) {\n  return state.transform;\n};\nvar MainView = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)(function (props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(_context__WEBPACK_IMPORTED_MODULE_14__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getPrefixCls = _useContext.getPrefixCls,\n    prefixCls = _useContext.prefixCls,\n    setDesignerDataRef = _useContext.setDesignerDataRef,\n    invokeApi = _useContext.invokeApi,\n    flowStatus = _useContext.flowStatus,\n    isReadonly = _useContext.isReadonly,\n    _useContext$flowMetaD = _useContext.flowMetaData,\n    flowMetaData = _useContext$flowMetaD === void 0 ? {} : _useContext$flowMetaD,\n    setVariables = _useContext.setVariables;\n  var _getKdesignerApi = getKdesignerApi(),\n    selectionApi = _getKdesignerApi.selection,\n    dataApi = _getKdesignerApi.data,\n    metaApi = _getKdesignerApi.meta,\n    errorApi = _getKdesignerApi.error;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useState)([]),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(_useState3, 2),\n    layoutElements = _useState4[0],\n    setlayoutElements = _useState4[1];\n  var initErrors = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    var _flowMetaData$;\n    return isReadonly ? {} : ((_flowMetaData$ = flowMetaData[2]) === null || _flowMetaData$ === void 0 ? void 0 : _flowMetaData$.errors) || {};\n  }, [isReadonly]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    errorApi.replaceError((0,_utils_index__WEBPACK_IMPORTED_MODULE_23__.transformError)(initErrors));\n  }, []);\n\n  // 记录上一次选中的节点的data\n  var preSyncDataRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n  // 记录添加的节点\n  var newNodeIdRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n  var rightPanelPrefix = getPrefixCls && getPrefixCls(prefixCls, 'rightpanel');\n\n  // reactflow viewport信息\n  var viewPort = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)({\n    x: 0,\n    y: 0,\n    zoom: 1\n  });\n  // reactflow instance\n  var instanceRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)();\n  var operationRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n  // elements集合\n  var elementsRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)([]);\n  // 主视图ref\n  var mainViewNodeRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useRef)(null);\n\n  // 这里不能加节流，频繁更新值的时候会有问题。只有一次更新成功。加了防抖也会有问题\n  var onLayout = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (resetCenter) {\n    var dagreGraph = new (dagre__WEBPACK_IMPORTED_MODULE_13___default().graphlib).Graph();\n    dagreGraph.setDefaultEdgeLabel(function () {\n      return {};\n    });\n    dagreGraph.setGraph({\n      rankdir: 'TB',\n      nodesep: 96,\n      ranksep: 96,\n      edgesep: 96,\n      marginx: panLeft,\n      marginy: 40\n    }); // 配置间距\n    var edges = [];\n    var nodes = [];\n    elementsRef.current.forEach(function (el) {\n      if ((0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.isNode)(el)) {\n        el.data.size = (0,_utils_layout__WEBPACK_IMPORTED_MODULE_16__.getNodeSize)(el);\n        dagreGraph.setNode(el.id, _objectSpread(_objectSpread({}, el.data.size), {}, {\n          shape: 'rect'\n        }));\n      } else {\n        edges.push({\n          id: el.id,\n          target: el.target,\n          source: el.source,\n          _Type_: el.type,\n          itemId: el.itemId,\n          number: el.number\n        });\n        dagreGraph.setEdge(el.source, el.target);\n      }\n    });\n    dagre__WEBPACK_IMPORTED_MODULE_13___default().layout(dagreGraph);\n    var _layoutElements = elementsRef.current.reduce(function (elements, el) {\n      if ((0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.isNode)(el)) {\n        var nodeWithPosition = dagreGraph.node(el.id);\n        el.targetPosition = [react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.Position.Top];\n        el.sourcePosition = react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.Position.Bottom;\n        el.position = {\n          // 修正坐标\n          x: nodeWithPosition.x - nodeWithPosition.width / 2,\n          y: nodeWithPosition.y - nodeWithPosition.height / 2\n        };\n        nodes.push(_objectSpread(_objectSpread({}, el.data), {}, {\n          position: el.position\n        }));\n      }\n      return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_8___default()(elements).call(elements, el);\n    }, []);\n    setDesignerDataRef({\n      edges: edges,\n      nodes: nodes\n    });\n    setlayoutElements(_layoutElements);\n  }, [setDesignerDataRef]);\n  var onLoad = function onLoad(reactFlowInstance) {\n    // console.timeEnd('构造画布所需要的数据')\n    instanceRef.current = reactFlowInstance;\n    var _dataApi$getData = dataApi.getData(),\n      Items = _dataApi$getData.Items;\n    // 只有首尾两个节点时\n    if (Items.length === 2) {\n      var _startNode = Items[0];\n\n      // 第一个节点的formId没有设置的时候,默认选中第一个\n      if (!_startNode.formId) {\n        setTimeout(function () {\n          selectionApi.setSelect([_startNode.id]);\n        });\n      }\n    }\n\n    // 开始节点\n    var startNode = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(layoutElements).call(layoutElements, function (item) {\n      return item.type === _utils_nodeType__WEBPACK_IMPORTED_MODULE_24__.START_SIGNAL_EVENT;\n    });\n    // 适配视图，会自动缩放\n    // setTimeout(() => reactFlowInstance.fitView({ padding: 0.1, maxZoom: 1, minZoom: 1 }), 0)\n    // 水平居中，不缩放，计算与开始时开始节点的X轴偏移量，必须异步执行\n    setTimeout(function () {\n      var _startNode$position;\n      return reactFlowInstance.setTransform({\n        x: panLeft - ((startNode === null || startNode === void 0 || (_startNode$position = startNode.position) === null || _startNode$position === void 0 ? void 0 : _startNode$position.x) || 0),\n        y: 40,\n        zoom: 1\n      });\n    }, 0);\n  };\n\n  // 视图点击\n  var onMainViewClick = function onMainViewClick(e) {\n    e.persist();\n    selectionApi.setSelect([]);\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.eventBus.emit(_constants_actionname__WEBPACK_IMPORTED_MODULE_20__.SET_RIGHT_PANEL_VISIBLE, {\n      visible: false\n    });\n  };\n  var onMove = function onMove(flowTransform) {\n    viewPort.current = flowTransform;\n  };\n  var dataChangeListenerCallback = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (dataChangeEvent) {\n    elementsRef.current = (0,_utils_convert_data__WEBPACK_IMPORTED_MODULE_15__.convertDataToFlowElements)(dataApi, flowStatus);\n    onLayout(true);\n    var _dataChangeEvent$acti = dataChangeEvent.actions,\n      actions = _dataChangeEvent$acti === void 0 ? [] : _dataChangeEvent$acti;\n    var _loop = function _loop() {\n      var item = actions[i];\n      var type = item.type;\n      if (type === 'DELETE') {\n        // 删除对应节点的时候，需要把错误和对应的变量但变量删除\n        var _item$value = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__[\"default\"])(item.value, 1),\n          id = _item$value[0];\n        var oldItems = dataChangeEvent.oldValue.Items;\n        var deleteItem = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(oldItems).call(oldItems, function (item) {\n          return item.id === id;\n        });\n\n        // 删除的时候需要把父节点往后的节点信息同步\n        if (deleteItem) {\n          sendSyncData([deleteItem.parentId], false);\n        }\n        // errorApi.deleteError([id])\n        // setVariables((preVariables) => {\n        //   delete preVariables[id]\n        //   return preVariables\n        // })\n      } else if (type === 'CUSTOMUPDATE') {\n        // 拖拽节点的时候\n        var _oldItems = dataChangeEvent.oldValue.Items,\n          Items = dataChangeEvent.value.Items;\n        var changeItem = _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(Items).call(Items, function (item, index) {\n          if (item.id !== _oldItems[index].id) {\n            return true;\n          }\n          return false;\n        });\n        if (changeItem) {\n          sendSyncData([changeItem.id], false);\n        }\n      } else if (type === 'ADD') {\n        var _id = item.value.id;\n        newNodeIdRef.current = _id;\n      }\n    };\n    for (var i = 0; i < actions.length; i++) {\n      _loop();\n    }\n  }, [onLayout]);\n  var selectionChangeListenerCallback = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (selection) {\n    var value = selection.value,\n      oldValue = selection.oldValue;\n    var selectId = value[0];\n    if (selectId) {\n      if (!newNodeIdRef.current || newNodeIdRef.current && newNodeIdRef.current !== selectId) {\n        newNodeIdRef.current = null;\n        sendSyncData(oldValue, false);\n      }\n\n      // 记录切换之前的节点的信息，方便在节点切换的时候，做数据对比，数据对比就发送数据到后端\n      preSyncDataRef.current = dataApi.findControl(selectId);\n    } else {\n      // 关闭右侧面板的时候，需要同步一下数据\n      var oldSelectId = oldValue[0];\n      var preSelectNodeData = dataApi.findControl(oldSelectId);\n      if (preSelectNodeData) {\n        // 排除删除选中的情况\n        // 排除是新添加的节点\n        // const isCompare = newNodeIdRef.current ? newNodeIdRef.current !== oldSelectId : true\n        newNodeIdRef.current = null;\n        sendSyncData(oldValue, false);\n      }\n    }\n  }, []);\n\n  // 返回了的同步数据进行监听\n  var syncDataListenerCallback = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useCallback)(function (_ref) {\n    var _ref$variables = _ref.variables,\n      variables = _ref$variables === void 0 ? {} : _ref$variables,\n      _ref$errors = _ref.errors,\n      errors = _ref$errors === void 0 ? {} : _ref$errors;\n    setLoading(false);\n    if (errors) {\n      errorApi.setError((0,_utils_index__WEBPACK_IMPORTED_MODULE_23__.transformError)(errors));\n    }\n    if (variables) {\n      setVariables(function (preVariables) {\n        return _objectSpread(_objectSpread({}, preVariables), (0,_utils_index__WEBPACK_IMPORTED_MODULE_23__.variablesTitleSplit)(variables));\n      });\n    }\n  }, []);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    var removeDataChangeListener = dataApi.addDataChangeListener(dataChangeListenerCallback);\n    var removeSelectionChangeListener = selectionApi.addSelectChangeListener(selectionChangeListenerCallback);\n    var removeSyncDataListenerCallback;\n    if (!isReadonly) {\n      removeSyncDataListenerCallback = designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.eventBus.on(_constants__WEBPACK_IMPORTED_MODULE_21__.SET_SYNC_DATA, syncDataListenerCallback);\n    }\n    return function () {\n      removeDataChangeListener();\n      removeSelectionChangeListener();\n      if (!isReadonly) {\n        designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.eventBus.off(_constants__WEBPACK_IMPORTED_MODULE_21__.SET_SYNC_DATA, removeSyncDataListenerCallback);\n      }\n    };\n  }, [dataChangeListenerCallback, selectionChangeListenerCallback, isReadonly]);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useEffect)(function () {\n    console.time('构造画布所需要的数据');\n    elementsRef.current = (0,_utils_convert_data__WEBPACK_IMPORTED_MODULE_15__.convertDataToFlowElements)(dataApi, flowStatus);\n    onLayout(true);\n  }, []);\n  (0,_hooks_useKeyboardEvent__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(mainViewNodeRef);\n\n  // 发送同步数据，方便同步变量和错误\n  var sendSyncData = function sendSyncData(ids) {\n    var needCompare = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n    if (isReadonly) return;\n    if ((ids === null || ids === void 0 ? void 0 : ids.length) > 0) {\n      var curSelectNodeData = dataApi.findControl(ids[0]);\n      if (!needCompare || preSyncDataRef.current && !(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__.isEqual)(curSelectNodeData, preSyncDataRef.current)) {\n        // 数据发生改变的时候需要将其所有的子节点的id发给后端\n        var allIds = dataApi.getAllSubControlIds(ids[0]);\n        invokeApi.saveSyncData([(allIds === null || allIds === void 0 ? void 0 : allIds.length) > 0 ? allIds : ids, ['variables', 'errors'], [], {}]);\n        // setLoading(true)\n      }\n      return;\n    }\n\n    // 默认是选中的会发\n    var selection = selectionApi.getSelection();\n    if (selection.length === 1) {\n      var _curSelectNodeData = dataApi.findControl(selection[0]);\n      // 根据上一次选择的和当前的数据做对比\n      if (preSyncDataRef.current && _curSelectNodeData && !(0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_22__.isEqual)(_curSelectNodeData, preSyncDataRef.current)) {\n        var _allIds = dataApi.getAllSubControlIds(selection[0]);\n        // console.log('invokeApi', invokeApi)\n        invokeApi.saveSyncData([(_allIds === null || _allIds === void 0 ? void 0 : _allIds.length) > 0 ? _allIds : selection, ['variables', 'errors'], [], {}]);\n        // setLoading(true)\n      }\n    }\n  };\n  var reactFlowConfig = (0,_utils_layout__WEBPACK_IMPORTED_MODULE_16__.getReactFlowConfig)();\n  var flowViewContextValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return {\n      sendSyncData: sendSyncData\n    };\n  }, [sendSyncData]);\n\n  // console.log('layoutElements', layoutElements)\n\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_context__WEBPACK_IMPORTED_MODULE_14__.FlowViewContext.Provider, {\n    value: flowViewContextValue\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.ReactFlowProvider, null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n    id: _constants__WEBPACK_IMPORTED_MODULE_21__.NOCODE_FLOW_MAIN\n    // elements={LAYOUTELEMENTS}\n    ,\n    elements: layoutElements,\n    nodeTypes: _controls__WEBPACK_IMPORTED_MODULE_19__.NODE_TYPE,\n    edgeTypes: _controls__WEBPACK_IMPORTED_MODULE_19__.EDGE_TYPE,\n    onLoad: onLoad,\n    onPaneClick: onMainViewClick,\n    ref: mainViewNodeRef,\n    tabIndex: -1,\n    onMove: onMove\n  }, reactFlowConfig), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.Controls, {\n    showInteractive: false\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(Operation, {\n    ref: operationRef\n  }))), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_right_panel__WEBPACK_IMPORTED_MODULE_18__[\"default\"], {\n    prefixCls: rightPanelPrefix,\n    isLoading: loading\n  }));\n});\nvar Operation = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.forwardRef)(function (props, ref) {\n  var zoomPanHelper = (0,react_flow_renderer__WEBPACK_IMPORTED_MODULE_12__.useZoomPanHelper)();\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useImperativeHandle)(ref, function () {\n    return zoomPanHelper;\n  });\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", null);\n});\nMainView.displayName = 'MainView';\nOperation.displayName = 'Operation';\n/* harmony default export */ __webpack_exports__[\"default\"] = (MainView);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///67328\n");

/***/ }),

/***/ 23100:
/*!***********************************************!*\
  !*** ./src/views/right-panel/ControlView.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ 38456);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ 760);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../constants/propnames */ 94096);\n/* harmony import */ var _utils_nodeType__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/nodeType */ 1300);\n/* harmony import */ var _utils_control__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/control */ 3700);\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(t, r)); }); } return e; }\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-01 10:31:06\n * @LastEditTime: 2024-02-05 16:46:56\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\nvar NEED_SECOND_CONFIRM_TYPES = (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({}, _utils_nodeType__WEBPACK_IMPORTED_MODULE_18__.QUERY_DATA_AUTO_TASK, {\n  desc: '查找结果',\n  establish: '查找有结果',\n  notEstablished: '查找无结果'\n}), _utils_nodeType__WEBPACK_IMPORTED_MODULE_18__.NOCODE_AUDIT_TASK, {\n  desc: '审批结果',\n  establish: '审批通过',\n  notEstablished: '审批否决'\n}), _utils_nodeType__WEBPACK_IMPORTED_MODULE_18__.NOCODE_API_INVOKE_AUTO_TASK, {\n  desc: '响应状态'\n});\nvar createFilterValue = function createFilterValue(fieldName, value) {\n  return {\n    _Type_: 'FilterItem',\n    compareType: '1001',\n    // 默认是等于\n    value: _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_8___default()(value),\n    fieldName: fieldName\n  };\n};\nvar ControlViewItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (props) {\n  var type = props.Id,\n    name = props.Name,\n    className = props.className,\n    activedSelectId = props.activedSelectId,\n    tips = props.Tips,\n    _props$Visible = props.Visible,\n    visible = _props$Visible === void 0 ? true : _props$Visible,\n    parentId = props.parentId,\n    rootKey = props.rootKey,\n    childId = props.childId;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState, 2),\n    tooltipVisible = _useState2[0],\n    setToolTipVisible = _useState2[1];\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getControlIconMap = _useContext.getControlIconMap,\n    getNodeVariablesById = _useContext.getNodeVariablesById,\n    webMsg = _useContext.webMsg,\n    getControlText = _useContext.getControlText;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_15__.GlobalConfigContext),\n    getOutlineItemIcon = _useContext2.getOutlineItemIcon;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data;\n  var selectionApi = kdesignerApi.selection;\n  var createControlData = kdesignerApi.dataFactory;\n  var parentControl = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    return dataContext.findControl(parentId);\n  }, [parentId]);\n\n  /**\n   * 添加新节点\n   */\n  var addNewNode = function addNewNode(data) {\n    var newControl = createControlData({\n      type: type,\n      parentId: parentId,\n      name: name\n    });\n    var newActions = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_15__.createAddAction)((0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(newControl, _objectSpread({\n      rootKey: rootKey,\n      childId: childId\n    }, data)));\n    dataContext.addControl(newActions).then(function (actions) {\n      if (actions[0]) {\n        var realControl = actions[0].value;\n        if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_19__.isBranchNode)(realControl)) {\n          var judgeNodeControl = actions[1].value;\n          selectionApi.setSelect([judgeNodeControl === null || judgeNodeControl === void 0 ? void 0 : judgeNodeControl.id]);\n        } else {\n          selectionApi.setSelect(Array.isArray(realControl) ? [realControl[0].id] : [realControl.id]);\n        }\n      }\n    });\n  };\n\n  /**\n   * 获取节点结果变量\n   * @param controlId\n   * @returns\n   */\n  var getNodeResultVariableList = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (controlId) {\n    var variables = getNodeVariablesById(controlId) || [];\n    return _babel_runtime_corejs3_core_js_stable_instance_find__WEBPACK_IMPORTED_MODULE_9___default()(variables).call(variables, function (item) {\n      var _item$option;\n      return item === null || item === void 0 || (_item$option = item.option) === null || _item$option === void 0 ? void 0 : _item$option.isResult;\n    }) || {\n      option: {}\n    };\n  }, [getNodeVariablesById]);\n  var getUpdateActions = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (controlId) {\n    var updateAction = [];\n    var resultVariable = getNodeResultVariableList(controlId);\n    var _resultVariable$optio = resultVariable.option.valueItems,\n      valueItems = _resultVariable$optio === void 0 ? [] : _resultVariable$optio;\n    for (var index = 0; index < valueItems.length; index++) {\n      var _valueItems$index = valueItems[index],\n        _name = _valueItems$index.name,\n        value = _valueItems$index.value;\n      updateAction.push({\n        name: typeof _name === 'string' ? _name : getControlText(_name),\n        // 后端返回来有可能是多语言\n        filter: [createFilterValue(resultVariable.value, [{\n          fieldValue: value\n        }])]\n      });\n    }\n    return updateAction;\n  }, [getNodeResultVariableList]);\n  var updateJudgeControlData = function updateJudgeControlData(actions) {\n    if (!Array.isArray(actions)) return;\n    dataContext.batchUpdateControlPropertyValues((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_15__.createUpdateAction)(actions), false).then(function () {\n      var _actions$;\n      if ((_actions$ = actions[0]) !== null && _actions$ !== void 0 && _actions$[0]) {\n        selectionApi.setSelect([actions[0][0]]);\n      }\n    });\n  };\n  var handleBranchConfirmActions = function handleBranchConfirmActions(key, resultAction) {\n    if (key === 'confirm') {\n      addNewNode({\n        childActions: resultAction\n      });\n    } else if (key === 'cancel') {\n      addNewNode();\n    }\n  };\n  var showAddBranchConfirmModal = function showAddBranchConfirmModal(resultAction) {\n    var _context;\n    var controlName = parentControl.name,\n      controlType = parentControl._Type_,\n      controlId = parentControl.id;\n    var textData = NEED_SECOND_CONFIRM_TYPES[controlType] || {};\n    webMsg === null || webMsg === void 0 || webMsg.showConfirmModal({\n      title: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_10___default()(_context = \"\\u662F\\u5426\\u6DFB\\u52A0\\u3010\".concat(controlName || '', \"\\u3011\")).call(_context, textData.desc || '', \"\\u4E3A\\u5224\\u65AD\\u6761\\u4EF6\\uFF1F\"),\n      content: \"\\u5206\\u652F\\u6761\\u4EF6\\u9ED8\\u8BA4\\u914D\\u7F6E\\u4E3A\".concat(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(resultAction).call(resultAction, function (item) {\n        return item.name;\n      }).join('、'), \"\\uFF1B\"),\n      actions: [{\n        text: '不添加',\n        key: 'cancel'\n      }, {\n        text: '添加',\n        key: 'confirm'\n      }],\n      onAction: function onAction(key) {\n        return handleBranchConfirmActions(key, resultAction);\n      },\n      type: 'prompt'\n    });\n  };\n\n  /**\n   * 点击添加节点到对应选中节点的后面\n   */\n  var handleClickAddControl = function handleClickAddControl() {\n    if ((0,_utils_control__WEBPACK_IMPORTED_MODULE_19__.isBranchNode)({\n      _Type_: type\n    })) {\n      var _context2;\n      if (!parentControl) {\n        return;\n      }\n      var parentControlType = parentControl === null || parentControl === void 0 ? void 0 : parentControl[_constants_propnames__WEBPACK_IMPORTED_MODULE_17__._TYPE_];\n      var resultAction = getUpdateActions(parentControl.id);\n      if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_12___default()(_context2 = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(NEED_SECOND_CONFIRM_TYPES)).call(_context2, parentControlType) && (resultAction === null || resultAction === void 0 ? void 0 : resultAction.length) > 0) {\n        showAddBranchConfirmModal(resultAction);\n        return;\n      }\n    }\n    addNewNode();\n  };\n  var onVisibleChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useCallback)(function (visible) {\n    setToolTipVisible(visible);\n  }, []);\n  if (!visible) return null;\n  var Control = /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-control-main\"),\n    onClick: handleClickAddControl\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"icon\",\n    style: {\n      backgroundColor: getControlIconMap(type).bgc\n    }\n  }, getOutlineItemIcon(type)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"span\", {\n    className: \"title\"\n  }, name));\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-control\")\n  }, tips ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_14__.Tooltip, {\n    placement: \"right\",\n    tip: tips || '',\n    visible: tooltipVisible,\n    onVisibleChange: onVisibleChange\n  }, Control) : Control);\n});\nControlViewItem.displayName = 'ControlViewItem';\nvar getControlList = function getControlList(meta) {\n  var Categories = meta.Categories,\n    Controls = meta.Controls;\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(Categories).call(Categories, function (item) {\n    var Id = item.Id;\n    var controls = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_7___default()(Controls).call(Controls, function (control) {\n      return control.CategoryId === Id && !control.Hidden;\n    });\n    return _objectSpread(_objectSpread({}, item), {}, {\n      Controls: controls\n    });\n  });\n};\n\n/**\n * 控件视图\n */\nvar ControlView = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.memo)(function (_ref) {\n  var controlData = _ref.controlData,\n    parentId = _ref.parentId,\n    childId = _ref.childId;\n  var _useContext3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useContext)(_context__WEBPACK_IMPORTED_MODULE_16__.DesignerContext),\n    getPrefixCls = _useContext3.getPrefixCls,\n    prefixCls = _useContext3.prefixCls,\n    getKdesignerApi = _useContext3.getKdesignerApi;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var metaApi = kdesignerApi.meta,\n    dataApi = kdesignerApi.data;\n  var data = dataApi.getData();\n  var meta = metaApi.getMeta();\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useState)(function () {\n      return getControlList(meta);\n    }),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(_useState3, 2),\n    controlList = _useState4[0],\n    setControlList = _useState4[1];\n  var controlViewPrefixCls = getPrefixCls(prefixCls, 'control-view');\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_13__.useEffect)(function () {\n    setControlList(function () {\n      return getControlList(meta);\n    });\n  }, [meta]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n    className: controlViewPrefixCls\n  }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(controlList).call(controlList, function (containerData, index) {\n    var _context3;\n    if (containerData.Visible === false) return null;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n      key: index,\n      className: \"\".concat(controlViewPrefixCls, \"-container\")\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n      key: index,\n      className: \"\".concat(controlViewPrefixCls, \"-container-header\")\n    }, containerData.Name), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(\"div\", {\n      className: \"\".concat(controlViewPrefixCls, \"-container-content\")\n    }, _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_11___default()(_context3 = (containerData === null || containerData === void 0 ? void 0 : containerData.Controls) || []).call(_context3, function (control) {\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_13___default().createElement(ControlViewItem, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__[\"default\"])({\n        key: control.Id,\n        rootKey: data.key,\n        className: \"\".concat(controlViewPrefixCls, \"-container-content\")\n      }, control, {\n        parentId: parentId,\n        childId: childId,\n        activedSelectId: controlData.id\n      }));\n    })));\n  }));\n});\nControlView.displayName = 'ControlView';\n/* harmony default export */ __webpack_exports__[\"default\"] = (ControlView);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///23100\n");

/***/ }),

/***/ 48752:
/*!***************************************************!*\
  !*** ./src/views/right-panel/DisplayViewItem.tsx ***!
  \***************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ 58496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ 24496);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-20 10:31:50\n * @LastEditTime: 2024-02-28 16:11:02\n * @Last Modified by: jianhang_he\n */\n\n\n\nvar DisplayViewItem = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.memo)(function (_ref) {\n  var _ref$displayData = _ref.displayData,\n    displayData = _ref$displayData === void 0 ? {} : _ref$displayData,\n    _ref$propertyData = _ref.propertyData,\n    propertyData = _ref$propertyData === void 0 ? {} : _ref$propertyData,\n    className = _ref.className;\n  var displayName = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useMemo)(function () {\n    var _ref2 = propertyData || {},\n      Editor = _ref2.Editor,\n      Id = _ref2.Id;\n    var Enum = Editor.Enum,\n      DataType = Editor.DataType,\n      Default = Editor.Default,\n      editorType = Editor.Type;\n    var value = displayData[Id || ''] || Default;\n\n    // 如果是布尔类型的直接就是是否\n    if (DataType === 'Boolean') {\n      if (typeof value !== 'undefined') {\n        return value ? '是' : '否';\n      } else {\n        return Default ? '是' : '否';\n      }\n    }\n\n    // 处理枚举的情况，需要在列表里面找到对应的name\n    if (Enum && (Enum === null || Enum === void 0 ? void 0 : Enum.length) > 0) {\n      var valueList = (value === null || value === void 0 ? void 0 : value.split(',')) || [];\n      var labelList = [];\n      Enum.forEach(function (item) {\n        if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_1___default()(valueList).call(valueList, item.Id)) {\n          labelList.push(item.Name);\n        }\n      });\n      return labelList.join('，') || value || '-';\n    }\n    return value || '-';\n  }, [propertyData, displayData]);\n  var subTitle = propertyData.Editor.SubTitle;\n  if (propertyData.Editor.ChildProperty && Array.isArray(displayName)) {\n    var _propertyData$Editor;\n    var childPropertyNameMap = {};\n    (_propertyData$Editor = propertyData.Editor) === null || _propertyData$Editor === void 0 || (_propertyData$Editor = _propertyData$Editor.ChildProperty) === null || _propertyData$Editor === void 0 || _propertyData$Editor.forEach(function (property) {\n      var Number = property.Number,\n        Name = property.Name;\n      childPropertyNameMap[Number] = Name;\n    });\n    return displayName === null || displayName === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default()(displayName).call(displayName, function (item) {\n      var displayDataList = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(item);\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n        className: \"\".concat(className, \"-display-viewitem\")\n      }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n        className: \"title\"\n      }, propertyData.Name, subTitle && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n        className: \"subTitle\"\n      }, subTitle)), _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_2___default()(displayDataList).call(displayDataList, function (propname, index) {\n        if (!childPropertyNameMap[propname]) return null;\n        return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n          key: index,\n          className: \"\".concat(className, \"-display-viewitem\")\n        }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n          className: \"title\"\n        }, childPropertyNameMap[propname]), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n          className: \"content\"\n        }, (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(item[propname]) === 'object' ? _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_4___default()(item[propname]) : item[propname]));\n      }));\n    });\n  }\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"div\", {\n    className: \"\".concat(className, \"-display-viewitem\")\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n    className: \"title\"\n  }, propertyData.Name, subTitle && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n    className: \"subTitle\"\n  }, subTitle)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default().createElement(\"span\", {\n    className: \"content\"\n  }, (0,_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(displayName) === 'object' ? _babel_runtime_corejs3_core_js_stable_json_stringify__WEBPACK_IMPORTED_MODULE_4___default()(displayName) : displayName));\n});\nDisplayViewItem.displayName = 'DisplayViewItem';\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,designer_base_Main__WEBPACK_IMPORTED_MODULE_6__.ErrorBoundaryWrap)(DisplayViewItem, 'DisplayViewItem'));//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///48752\n");

/***/ }),

/***/ 79012:
/*!************************************************!*\
  !*** ./src/views/right-panel/PropertyView.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   excludeDisalyViewPropertyTypeList: function() { return /* binding */ excludeDisalyViewPropertyTypeList; }\n/* harmony export */ });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ 34716);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ 4884);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ 3464);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ 23992);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ 70696);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ 13939);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/sort */ 24244);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ 50524);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _DisplayViewItem__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DisplayViewItem */ 48752);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_14__);\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_5___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_0___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()) ? Object.defineProperties(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_2___default()(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_1___default()(t, r)); }); } return e; }\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-01 10:31:18\n * @LastEditTime: 2024-05-17 17:06:36\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\nvar getMetaGroupPropertiesByKeys = function getMetaGroupPropertiesByKeys(propertyGroups, keys, nodeCallback, groupCallback) {\n  var _context;\n  return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(propertyGroups).call(propertyGroups, groupCallback)).call(_context, function (item) {\n    var nodes = item.Nodes;\n    var newNodes = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(nodes).call(nodes, function (node) {\n      return node.Visible !== false && nodeCallback(node);\n    });\n    return _objectSpread(_objectSpread({}, item), {}, {\n      Nodes: newNodes\n    });\n  });\n};\n\n// 排除只展示信息的属性\nvar excludeDisalyViewPropertyTypeList = ['content',\n// 发送消息内容\n'expression',\n// 表达式\n'filter',\n// 过滤\n'orderby',\n// 排序\n'newSetting', 'setting', 'calcSetting', 'userSelect', 'judgefilter', 'varselect', 'multivarselect', 'combineselector', 'userInputPerm', 'decisionOptions', 'triggerTime', 'parameterSetting', 'requestBody', 'Switch'\n// 'editJson'\n];\n\n// 排除只读类型为空的类型\n// const excludeDisplayIsNullTypeList = ['Switch', 'expression', 'userInputPerm', 'filter']\n\nvar customErrorProps = ['setting', 'decisionOptions', 'requestHeader', 'responseParams', 'requestBody', 'sourceData'];\nvar PropertyView = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.memo)(function (_ref) {\n  var _context2;\n  var controlData = _ref.controlData,\n    isLoading = _ref.isLoading;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(_context__WEBPACK_IMPORTED_MODULE_12__.DesignerContext),\n    getPrefixCls = _useContext.getPrefixCls,\n    prefixCls = _useContext.prefixCls,\n    getKdesignerApi = _useContext.getKdesignerApi,\n    flowStatus = _useContext.flowStatus,\n    isReadonly = _useContext.isReadonly;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.GlobalConfigContext),\n    filterProperty = _useContext2.filterProperty;\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n\n  // 展示信息\n  var displayData = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_10__.useMemo)(function () {\n    if (!controlData) return {};\n    var newDisplayData = _objectSpread({}, controlData._disp_ || {});\n    _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_5___default()(controlData || {}).forEach(function (propName) {\n      if (!newDisplayData[propName] && controlData[propName]) {\n        newDisplayData[propName] = controlData[propName];\n      }\n    });\n    return newDisplayData;\n  }, [controlData]);\n  if (!controlData || isLoading) return null;\n  var metaApi = kdesignerApi.meta,\n    dataContext = kdesignerApi.data;\n  var controlType = controlData._Type_;\n  var defaultFieldData = metaApi.getDefaultData(controlType);\n  var controlMeta = metaApi.getControlMeta(controlType);\n  if (!controlMeta.Properties) return;\n  var data = dataContext.getData();\n  var controlPropertyGroups = (0,designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.getModelData)(controlMeta.Properties, _objectSpread(_objectSpread({}, data), {}, {\n    field: _objectSpread(_objectSpread({}, defaultFieldData), controlData)\n  }));\n  // console.log('controlPropertyGroups', controlPropertyGroups)\n  var groupProperties = _babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_8___default()(_context2 = getMetaGroupPropertiesByKeys(controlPropertyGroups, ['NCPG_Base'], function (node) {\n    return !filterProperty(node);\n  }, function (group) {\n    var _group$Nodes, _group$Nodes2;\n    if ((group === null || group === void 0 || (_group$Nodes = group.Nodes) === null || _group$Nodes === void 0 ? void 0 : _group$Nodes.length) == 0) {\n      return false;\n    }\n\n    // 所有属性是否隐藏\n    var isAllPropertyHide = group === null || group === void 0 || (_group$Nodes2 = group.Nodes) === null || _group$Nodes2 === void 0 ? void 0 : _group$Nodes2.every(function (item) {\n      return (item === null || item === void 0 ? void 0 : item.Visible) === false;\n    });\n\n    // 如果所有属性隐藏的话，那么当前分组隐藏\n    if (isAllPropertyHide) {\n      return false;\n    }\n    if (isReadonly) {\n      var _context3;\n      return !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(_context3 = ['NCPG_ApiTest']).call(_context3, group.Key);\n    }\n    return true;\n  })).call(_context2, function (groupA, groupB) {\n    return groupA.Seq === undefined ? -1 : groupB.Seq === undefined ? 1 : groupA.Seq - groupB.Seq;\n  }); // 没有Seq排在前面，其他的按照Seq排列\n\n  var propertyViewPrefixCls = getPrefixCls(prefixCls, 'property-view');\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_14___default()(propertyViewPrefixCls, (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({}, \"\".concat(propertyViewPrefixCls, \"-display\"), isReadonly))\n  }, groupProperties === null || groupProperties === void 0 ? void 0 : _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(groupProperties).call(groupProperties, function (item) {\n    var properties = item.Nodes,\n      id = item.Id,\n      name = item.Name,\n      type = item._Type_;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n      key: id,\n      className: \"\".concat(propertyViewPrefixCls, \"-group\")\n    }, type === 'PropertyGroup' && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(\"div\", {\n      className: \"\".concat(propertyViewPrefixCls, \"-group-title\")\n    }, name), _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(properties).call(properties, function (propertyData) {\n      // 只读\n      if (isReadonly) {\n        var _ref2 = (propertyData === null || propertyData === void 0 ? void 0 : propertyData.Editor) || {},\n          _type = _ref2.Type,\n          defaultValue = _ref2.Default;\n        // 排除的属性或者是没有值的时候统一处理\n        if (!_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(excludeDisalyViewPropertyTypeList).call(excludeDisalyViewPropertyTypeList, _type) || typeof displayData[propertyData.Id] === 'undefined' && defaultValue === 'undefined') {\n          return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(_DisplayViewItem__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n            className: \"kdesigner-right-view\",\n            displayData: displayData,\n            propertyData: propertyData\n          });\n        }\n      }\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_10___default().createElement(designer_base_Main__WEBPACK_IMPORTED_MODULE_11__.PropertyViewItem, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_3__[\"default\"])({}, propertyData, {\n        key: propertyData.Id,\n        field: controlData,\n        className: \"kdesigner-right-view\",\n        enableMutiSelect: false,\n        readonly: isReadonly,\n        renderCustomError: function renderCustomError(error) {\n          if (_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_9___default()(customErrorProps).call(customErrorProps, error.prop)) {\n            return true;\n          }\n        }\n      }));\n    }));\n  }));\n});\nPropertyView.displayName = 'PropertyView';\n/* harmony default export */ __webpack_exports__[\"default\"] = (PropertyView);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///79012\n");

/***/ }),

/***/ 98564:
/*!*****************************************!*\
  !*** ./src/views/right-panel/index.tsx ***!
  \*****************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ 2664);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ 30112);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ 95992);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ 65984);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! kd_libs/kdesign1 */ 63548);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! designer_base/Main */ 18040);\n/* harmony import */ var designer_base_Main__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(designer_base_Main__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../context */ 90115);\n/* harmony import */ var _PropertyView__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PropertyView */ 79012);\n/* harmony import */ var _ControlView__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ControlView */ 23100);\n/* harmony import */ var _constants_actionname__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../constants/actionname */ 20572);\n/* harmony import */ var _constants_propnames__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../constants/propnames */ 94096);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! classnames */ 71252);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utils */ 41232);\n\n\n\n\n\n\n\n\n\n\n\n// import {isEqual} from 'lodash'\n\n\nvar RightPanel = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.memo)(function (_ref) {\n  var prefixCls = _ref.prefixCls,\n    isLoading = _ref.isLoading;\n  var panelRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useRef)();\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useContext)(_context__WEBPACK_IMPORTED_MODULE_6__.DesignerContext),\n    getKdesignerApi = _useContext.getKdesignerApi,\n    getControlIconMap = _useContext.getControlIconMap;\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useContext)(designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.GlobalConfigContext),\n    getOutlineItemIcon = _useContext2.getOutlineItemIcon;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(''),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useState3, 2),\n    selectId = _useState4[0],\n    setSelectId = _useState4[1];\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useState5, 2),\n    isClickAddNode = _useState6[0],\n    setIsClickAddNode = _useState6[1];\n  var _useState7 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)({}),\n    _useState8 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useState7, 2),\n    selectedEdgeData = _useState8[0],\n    setSelectedEdgeData = _useState8[1];\n  var _useState9 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(0),\n    _useState10 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useState9, 2),\n    _ = _useState10[0],\n    forceUpdate = _useState10[1];\n  var kdesignerApi = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return getKdesignerApi();\n  }, []);\n  var dataContext = kdesignerApi.data,\n    metaApi = kdesignerApi.meta,\n    selectionApi = kdesignerApi.selection;\n  var data = dataContext.getData();\n  var rootId = dataContext.getRootId();\n  var controlData = dataContext.findControl(selectId) || {};\n  var controlType = controlData._Type_;\n  // 所有控件\n  var controlMetas = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return metaApi.getMeta()[_constants_propnames__WEBPACK_IMPORTED_MODULE_10__.Controls];\n  }, []);\n\n  /**\n   *\n   */\n  var listenClickAddNode = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (data) {\n    setSelectedEdgeData(data);\n    setIsClickAddNode(true);\n    setVisible(true);\n  }, []);\n\n  /**\n   * 监听右侧面板显示隐藏\n   */\n  var lisetnRightPanelVisible = function lisetnRightPanelVisible(data) {\n    setVisible(data.visible);\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_9__.CLICK_ADD_NODE, listenClickAddNode);\n    designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.eventBus.on(_constants_actionname__WEBPACK_IMPORTED_MODULE_9__.SET_RIGHT_PANEL_VISIBLE, lisetnRightPanelVisible);\n    return function () {\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_9__.CLICK_ADD_NODE, listenClickAddNode);\n      designer_base_Main__WEBPACK_IMPORTED_MODULE_5__.eventBus.off(_constants_actionname__WEBPACK_IMPORTED_MODULE_9__.SET_RIGHT_PANEL_VISIBLE, lisetnRightPanelVisible);\n    };\n  }, []);\n  var dataChangeListenerCallback = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (dataChangeEvent) {\n    forceUpdate(function (n) {\n      return n + 1;\n    });\n  }, []);\n  var selectionChangeListenerCallback = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function (selection) {\n    var value = selection.value,\n      oldValue = selection.oldValue;\n    var selectId = value[0];\n\n    // 点击其他地方\n    if (selectId && selectId !== rootId) {\n      setIsClickAddNode(false);\n    }\n    setVisible(!!selectId);\n    setSelectId(selectId);\n  }, []);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {\n    var removeSelectionChangeListener = selectionApi.addSelectChangeListener(selectionChangeListenerCallback);\n    var removeDataChangeListener = dataContext.addDataChangeListener(dataChangeListenerCallback);\n    return function () {\n      removeSelectionChangeListener === null || removeSelectionChangeListener === void 0 || removeSelectionChangeListener();\n      removeDataChangeListener === null || removeDataChangeListener === void 0 || removeDataChangeListener();\n    };\n  }, [selectionChangeListenerCallback]);\n\n  /**\n   * 关闭\n   */\n  var handleClose = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useCallback)(function () {\n    setVisible === null || setVisible === void 0 || setVisible(false);\n    selectionApi.setSelect([]);\n  }, []);\n  var controlName = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    var _ref2 = metaApi.getControlMeta(controlType) || {},\n      Name = _ref2.Name;\n    if ((0,_utils__WEBPACK_IMPORTED_MODULE_12__.isTriggerTime)(controlData === null || controlData === void 0 ? void 0 : controlData.triggerMode)) {\n      return '定时触发';\n    }\n    return Name;\n  }, [controlType, controlData === null || controlData === void 0 ? void 0 : controlData.triggerMode]);\n\n  /**\n   * 自定义面板头部节点\n   */\n  var CustomHeader = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    var isAdd = !controlName;\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n      className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(\"\".concat(prefixCls, \"_header\"), (0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, \"\".concat(prefixCls, \"_header_add\"), isAdd)),\n      style: {\n        backgroundColor: getControlIconMap(controlType).bgc\n      }\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"_header_title\")\n    }, !isAdd ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement((kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().Fragment), null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"_header_title_icon\")\n    }, getOutlineItemIcon(controlType)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", {\n      className: \"name\"\n    }, controlName)) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", {\n      className: \"addname\"\n    }, \"\\u6DFB\\u52A0\\u8282\\u70B9\")), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_4__.Icon, {\n      className: \"close\",\n      type: \"close\",\n      onClick: handleClose\n    }));\n  }, [controlData, controlMetas, controlType, controlName]);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_4__.Drawer, {\n    ref: panelRef,\n    className: prefixCls,\n    placement: \"right\",\n    visible: visible,\n    onClose: function onClose() {\n      return setVisible === null || setVisible === void 0 ? void 0 : setVisible(false);\n    },\n    mask: false,\n    title: CustomHeader,\n    width: 640,\n    closable: false\n  }, isClickAddNode ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_ControlView__WEBPACK_IMPORTED_MODULE_8__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    controlData: controlData\n  }, selectedEdgeData)) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_PropertyView__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n    isLoading: isLoading,\n    controlData: controlData\n  }));\n});\nRightPanel.displayName = 'RightPanel';\n/* harmony default export */ __webpack_exports__[\"default\"] = (RightPanel);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///98564\n");

/***/ }),

/***/ 34256:
/*!*********************************************!*\
  !*** ./src/controls/edge/SequenceFlow.less ***!
  \*********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzQyNTYuanMiLCJtYXBwaW5ncyI6IjtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvY29udHJvbHMvZWRnZS9TZXF1ZW5jZUZsb3cubGVzcz82OTVlIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IHt9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///34256\n");

/***/ }),

/***/ 25240:
/*!******************************!*\
  !*** ./src/style/index.less ***!
  \******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjUyNDAuanMiLCJtYXBwaW5ncyI6IjtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLWZsb3cvLi9zcmMvc3R5bGUvaW5kZXgubGVzcz9hZDA0Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IHt9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///25240\n");

/***/ })

}]);