"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_platform"] = self["webpackChunknocode_platform"] || []).push([[6688],{

/***/ "./src/web/component/common/FlowStatusTag.less":
/*!*****************************************************!*\
  !*** ./src/web/component/common/FlowStatusTag.less ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"tag\":\"B0BB54zw_tag\",\"success\":\"vNynaJ6y_success\",\"error\":\"xV9OxNu3_error\",\"warning\":\"rc2CssHi_warning\",\"going\":\"IeZiZcJw_going\",\"reject\":\"vZjZ7H70_reject\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vRmxvd1N0YXR1c1RhZy5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL0Zsb3dTdGF0dXNUYWcubGVzcz85MGFlIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1widGFnXCI6XCJCMEJCNTR6d190YWdcIixcInN1Y2Nlc3NcIjpcInZOeW5hSjZ5X3N1Y2Nlc3NcIixcImVycm9yXCI6XCJ4VjlPeE51M19lcnJvclwiLFwid2FybmluZ1wiOlwicmMyQ3NzSGlfd2FybmluZ1wiLFwiZ29pbmdcIjpcIkllWmlaY0p3X2dvaW5nXCIsXCJyZWplY3RcIjpcInZaalo3SDcwX3JlamVjdFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/FlowStatusTag.less\n");

/***/ }),

/***/ "./src/web/layout/designer/HeaderFormName.less":
/*!*****************************************************!*\
  !*** ./src/web/layout/designer/HeaderFormName.less ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"header_formname\":\"-l8F5Byn_header_formname\",\"header_formname_input\":\"jZHRzDD-_header_formname_input\",\"header_formname_editicon\":\"oSIYjYRW_header_formname_editicon\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9IZWFkZXJGb3JtTmFtZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvZGVzaWduZXIvSGVhZGVyRm9ybU5hbWUubGVzcz9jMDk5Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiaGVhZGVyX2Zvcm1uYW1lXCI6XCItbDhGNUJ5bl9oZWFkZXJfZm9ybW5hbWVcIixcImhlYWRlcl9mb3JtbmFtZV9pbnB1dFwiOlwialpIUnpERC1faGVhZGVyX2Zvcm1uYW1lX2lucHV0XCIsXCJoZWFkZXJfZm9ybW5hbWVfZWRpdGljb25cIjpcIm9TSVlqWVJXX2hlYWRlcl9mb3JtbmFtZV9lZGl0aWNvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderFormName.less\n");

/***/ }),

/***/ "./src/web/layout/flow/designer/HeaderLayout.less":
/*!********************************************************!*\
  !*** ./src/web/layout/flow/designer/HeaderLayout.less ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"designer_header\":\"_4DC7qUOQ_designer_header\",\"ml-4\":\"sQTfxIjx_ml-4\",\"leftnav\":\"_8jFJaegp_leftnav\",\"leftnav_container\":\"Tlk052ri_leftnav_container\",\"leftnav_container_name\":\"llNFgECc_leftnav_container_name\",\"leftnav_container_input\":\"_4OSiyrYk_leftnav_container_input\",\"leftnav_container_editicon\":\"KBQ4o41C_leftnav_container_editicon\",\"mainnav\":\"_08sCtpNE_mainnav\",\"selected\":\"MjxYJmkB_selected\",\"rightnav\":\"GhAq-Vei_rightnav\",\"btn_group\":\"A+gJV6aM_btn_group\",\"lunch_btn\":\"bAGsurS3_lunch_btn\",\"save_btn\":\"l0U7usep_save_btn\",\"seperator\":\"GRrnLxSh_seperator\",\"btn_dropdown\":\"dC6QpHry_btn_dropdown\",\"isOpen\":\"Mv6713Cr_isOpen\",\"rightnav-preview\":\"MrTjmbNw_rightnav-preview\",\"rightnav-save\":\"me9enQtr_rightnav-save\",\"designer_container\":\"Mspu39-2_designer_container\",\"designer_container_notop\":\"_1HzAhyxR_designer_container_notop\",\"dropdown_panel\":\"_35CMn2sU_dropdown_panel\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9mbG93L2Rlc2lnbmVyL0hlYWRlckxheW91dC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvZmxvdy9kZXNpZ25lci9IZWFkZXJMYXlvdXQubGVzcz8zMTFhIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiZGVzaWduZXJfaGVhZGVyXCI6XCJfNERDN3FVT1FfZGVzaWduZXJfaGVhZGVyXCIsXCJtbC00XCI6XCJzUVRmeElqeF9tbC00XCIsXCJsZWZ0bmF2XCI6XCJfOGpGSmFlZ3BfbGVmdG5hdlwiLFwibGVmdG5hdl9jb250YWluZXJcIjpcIlRsazA1MnJpX2xlZnRuYXZfY29udGFpbmVyXCIsXCJsZWZ0bmF2X2NvbnRhaW5lcl9uYW1lXCI6XCJsbE5GZ0VDY19sZWZ0bmF2X2NvbnRhaW5lcl9uYW1lXCIsXCJsZWZ0bmF2X2NvbnRhaW5lcl9pbnB1dFwiOlwiXzRPU2l5cllrX2xlZnRuYXZfY29udGFpbmVyX2lucHV0XCIsXCJsZWZ0bmF2X2NvbnRhaW5lcl9lZGl0aWNvblwiOlwiS0JRNG80MUNfbGVmdG5hdl9jb250YWluZXJfZWRpdGljb25cIixcIm1haW5uYXZcIjpcIl8wOHNDdHBORV9tYWlubmF2XCIsXCJzZWxlY3RlZFwiOlwiTWp4WUpta0Jfc2VsZWN0ZWRcIixcInJpZ2h0bmF2XCI6XCJHaEFxLVZlaV9yaWdodG5hdlwiLFwiYnRuX2dyb3VwXCI6XCJBK2dKVjZhTV9idG5fZ3JvdXBcIixcImx1bmNoX2J0blwiOlwiYkFHc3VyUzNfbHVuY2hfYnRuXCIsXCJzYXZlX2J0blwiOlwibDBVN3VzZXBfc2F2ZV9idG5cIixcInNlcGVyYXRvclwiOlwiR1Jybkx4U2hfc2VwZXJhdG9yXCIsXCJidG5fZHJvcGRvd25cIjpcImRDNlFwSHJ5X2J0bl9kcm9wZG93blwiLFwiaXNPcGVuXCI6XCJNdjY3MTNDcl9pc09wZW5cIixcInJpZ2h0bmF2LXByZXZpZXdcIjpcIk1yVGptYk53X3JpZ2h0bmF2LXByZXZpZXdcIixcInJpZ2h0bmF2LXNhdmVcIjpcIm1lOWVuUXRyX3JpZ2h0bmF2LXNhdmVcIixcImRlc2lnbmVyX2NvbnRhaW5lclwiOlwiTXNwdTM5LTJfZGVzaWduZXJfY29udGFpbmVyXCIsXCJkZXNpZ25lcl9jb250YWluZXJfbm90b3BcIjpcIl8xSHpBaHl4Ul9kZXNpZ25lcl9jb250YWluZXJfbm90b3BcIixcImRyb3Bkb3duX3BhbmVsXCI6XCJfMzVDTW4yc1VfZHJvcGRvd25fcGFuZWxcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/layout/flow/designer/HeaderLayout.less\n");

/***/ }),

/***/ "./src/web/layout/flow/designer/LunchFlowModalLayout.less":
/*!****************************************************************!*\
  !*** ./src/web/layout/flow/designer/LunchFlowModalLayout.less ***!
  \****************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"footer\":\"X7vri77E_footer\",\"lunch_flow_modal\":\"cugvzC+9_lunch_flow_modal\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9mbG93L2Rlc2lnbmVyL0x1bmNoRmxvd01vZGFsTGF5b3V0Lmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9mbG93L2Rlc2lnbmVyL0x1bmNoRmxvd01vZGFsTGF5b3V0Lmxlc3M/MzFjMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImZvb3RlclwiOlwiWDd2cmk3N0VfZm9vdGVyXCIsXCJsdW5jaF9mbG93X21vZGFsXCI6XCJjdWd2ekMrOV9sdW5jaF9mbG93X21vZGFsXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/flow/designer/LunchFlowModalLayout.less\n");

/***/ }),

/***/ "./src/web/pages/admin/flow/AdminFlowPage.less":
/*!*****************************************************!*\
  !*** ./src/web/pages/admin/flow/AdminFlowPage.less ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"container\":\"RE6bQFL-_container\",\"main\":\"wXVegECB_main\",\"actions\":\"gr31fFN-_actions\",\"buttons\":\"mZMIW3Ox_buttons\",\"list\":\"IKFw8hsO_list\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FkbWluL2Zsb3cvQWRtaW5GbG93UGFnZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9wYWdlcy9hZG1pbi9mbG93L0FkbWluRmxvd1BhZ2UubGVzcz8wZjMxIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiY29udGFpbmVyXCI6XCJSRTZiUUZMLV9jb250YWluZXJcIixcIm1haW5cIjpcIndYVmVnRUNCX21haW5cIixcImFjdGlvbnNcIjpcImdyMzFmRk4tX2FjdGlvbnNcIixcImJ1dHRvbnNcIjpcIm1aTUlXM094X2J1dHRvbnNcIixcImxpc3RcIjpcIklLRnc4aHNPX2xpc3RcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/pages/admin/flow/AdminFlowPage.less\n");

/***/ }),

/***/ "./src/web/pages/flow/designer/index.less":
/*!************************************************!*\
  !*** ./src/web/pages/flow/designer/index.less ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"loading_wrapper\":\"N7Q-77Dl_loading_wrapper\",\"hidden\":\"ZvdR8I3o_hidden\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2Zsb3cvZGVzaWduZXIvaW5kZXgubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvcGFnZXMvZmxvdy9kZXNpZ25lci9pbmRleC5sZXNzPzJkNjIiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJsb2FkaW5nX3dyYXBwZXJcIjpcIk43US03N0RsX2xvYWRpbmdfd3JhcHBlclwiLFwiaGlkZGVuXCI6XCJadmRSOEkzb19oaWRkZW5cIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/pages/flow/designer/index.less\n");

/***/ }),

/***/ "./src/hooks/useFilterRefBill.tsx":
/*!****************************************!*\
  !*** ./src/hooks/useFilterRefBill.tsx ***!
  \****************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _useEventEmit = __webpack_require__(/*! @/hooks/useEventEmit */ \"./src/hooks/useEventEmit.ts\");\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(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, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /*\n * @Description:rfc\n * @Author: jianhang_he\n * @Date: 2023-11-03 17:26:25\n * @LastEditTime: 2024-01-09 15:41:35\n * @Last Modified by: jianhang_he\n */\nvar useFilterRefBill = function useFilterRefBill(props) {\n  var _ref = props || {},\n    propsAppId = _ref.appId,\n    defaultQueryParams = _ref.defaultQueryParams,\n    queryCallback = _ref.queryCallback;\n  var _ref2 = defaultQueryParams || {},\n    _ref2$pageSize = _ref2.pageSize,\n    defaultPageSize = _ref2$pageSize === void 0 ? 20 : _ref2$pageSize;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId; // 应用ID\n  var curAppId = propsAppId || appId;\n  var _useState = (0, _react.useState)(),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    queryParams = _useState2[0],\n    setQueryParams = _useState2[1];\n\n  // 请求列表信息\n  var batchInvokeQuery = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(id, params) {\n      var args, data;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            args = _objectSpread({\n              env: '1',\n              page_size: (params === null || params === void 0 ? void 0 : params.page_size) || defaultPageSize || 20,\n              page_no: (params === null || params === void 0 ? void 0 : params.page_no) || 1\n            }, params);\n            setQueryParams(args); // 多个相同关联表单的时候，需要判断参数是否相同，因此外抛一个参数\n            // F7弹窗需要显示所有信息\n            // params.page_size && params.page_no && (delete args.select)\n            _context.next = 4;\n            return (0, _apps.loadFormDataList)(curAppId, id, args);\n          case 4:\n            data = _context.sent;\n            queryCallback === null || queryCallback === void 0 || queryCallback();\n            (0, _useEventEmit.publishEvent)('setQuery', {\n              args: {\n                formId: id,\n                param: args\n              },\n              data: data\n            });\n          case 7:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee);\n    }));\n    return function batchInvokeQuery(_x, _x2) {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n  var batchInvokeTable = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(params) {\n      var res;\n      return _regenerator.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 (0, _apps.queryEntryData)(params === null || params === void 0 ? void 0 : params.appId, params === null || params === void 0 ? void 0 : params.formId, params === null || params === void 0 ? void 0 : params.pkId, {\n              page_size: (params === null || params === void 0 ? void 0 : params.page_size) || 10,\n              page_no: (params === null || params === void 0 ? void 0 : params.page_no) || 1,\n              entry: params === null || params === void 0 ? void 0 : params.entry\n            });\n          case 3:\n            res = _context2.sent;\n            params === null || params === void 0 || params.callback(res);\n            _context2.next = 10;\n            break;\n          case 7:\n            _context2.prev = 7;\n            _context2.t0 = _context2[\"catch\"](0);\n            console.log('请求列表数据失败', _context2.t0);\n          case 10:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2, null, [[0, 7]]);\n    }));\n    return function batchInvokeTable(_x3) {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  var batchInvokeListConfig = /*#__PURE__*/function () {\n    var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id, params) {\n      var data;\n      return _regenerator.default.wrap(function _callee3$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.next = 2;\n            return (0, _apps.getFormDataListSetting)(curAppId, id, params.env, {\n              selects: params.displayProp\n            });\n          case 2:\n            data = _context3.sent;\n            // console.log('batchInvokeListConfig', data);\n\n            (0, _useEventEmit.publishEvent)('setListConfig', {\n              args: {\n                formId: id\n              },\n              data: data\n            });\n          case 4:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee3);\n    }));\n    return function batchInvokeListConfig(_x4, _x5) {\n      return _ref5.apply(this, arguments);\n    };\n  }();\n  var addControlAction = function addControlAction(methodName, listener) {\n    _eventEmit.default.on(methodName, listener);\n    return function () {\n      _eventEmit.default.off(methodName, listener);\n    };\n  };\n  var refBillProps = {\n    batchInvokeQuery: batchInvokeQuery,\n    addControlAction: _useEventEmit.addEventListener,\n    baseUrl: window.__nocode_file_host__,\n    batchInvoke: function batchInvoke() {},\n    // F7里面的筛选面板才需要用到发送请求\n    batchInvokeTable: batchInvokeTable,\n    // onDownLoad,\n    batchInvokeListConfig: batchInvokeListConfig,\n    getControlText: function getControlText(info) {\n      var lang = 'zh_CN';\n      return (info === null || info === void 0 ? void 0 : info[lang]) || '';\n    },\n    queryParams: queryParams\n  };\n  return refBillProps;\n};\nvar _default = exports[\"default\"] = useFilterRefBill;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/hooks/useFilterRefBill.tsx\n");

/***/ }),

/***/ "./src/route/NocodeLink.tsx":
/*!**********************************!*\
  !*** ./src/route/NocodeLink.tsx ***!
  \**********************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _urlUtil = __webpack_require__(/*! @/utils/urlUtil */ \"./src/utils/urlUtil.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar NocodeLink = function NocodeLink(props) {\n  var children = props.children,\n    to = props.to;\n  var location = (0, _reactRouterDom.useLocation)();\n  var search = location.search;\n  var nocodeTo = to;\n  nocodeTo = (0, _urlUtil.urlParamWithDebug)(nocodeTo, search);\n  return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Link, (0, _extends2.default)({}, props, {\n    to: nocodeTo\n  }), children);\n};\nvar _default = exports[\"default\"] = (0, _react.memo)(NocodeLink);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcm91dGUvTm9jb2RlTGluay50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9yb3V0ZS9Ob2NvZGVMaW5rLnRzeD80NGM4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IExpbmssIHVzZUxvY2F0aW9uIH0gZnJvbSAncmVhY3Qtcm91dGVyLWRvbSdcbmltcG9ydCBSZWFjdCwgeyBtZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1cmxQYXJhbVdpdGhEZWJ1ZyB9IGZyb20gJ0AvdXRpbHMvdXJsVXRpbCdcblxuY29uc3QgTm9jb2RlTGluayA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCB0byB9ID0gcHJvcHNcbiAgY29uc3QgbG9jYXRpb24gPSB1c2VMb2NhdGlvbigpXG4gIGNvbnN0IHsgc2VhcmNoIH0gPSBsb2NhdGlvblxuICBsZXQgbm9jb2RlVG8gPSB0b1xuICBub2NvZGVUbyA9IHVybFBhcmFtV2l0aERlYnVnKG5vY29kZVRvLCBzZWFyY2gpXG4gIHJldHVybiA8TGluayB7Li4ucHJvcHN9IHRvPXtub2NvZGVUb30+e2NoaWxkcmVufTwvTGluaz5cbn1cblxuZXhwb3J0IGRlZmF1bHQgbWVtbyhOb2NvZGVMaW5rKVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/route/NocodeLink.tsx\n");

/***/ }),

/***/ "./src/web/component/common/FlowStatusTag.tsx":
/*!****************************************************!*\
  !*** ./src/web/component/common/FlowStatusTag.tsx ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _FlowStatusTag = _interopRequireDefault(__webpack_require__(/*! ./FlowStatusTag.less */ \"./src/web/component/common/FlowStatusTag.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-04-06 16:22:00\n * @LastEditTime: 2023-12-20 15:06:02\n * @Last Modified by: jianhang_he\n */\n\n// 节点状态标签颜色\nvar classList = {\n  willApproval: _FlowStatusTag.default.warning,\n  // 待审批\n  approve: _FlowStatusTag.default.success,\n  // 同意\n  handled: _FlowStatusTag.default.sucess,\n  // (\"已完成\")\n  done: _FlowStatusTag.default.success,\n  // (\"已完成\")\n  terminate: _FlowStatusTag.default.reject,\n  // 否决\n  withdraw: _FlowStatusTag.default.reject,\n  // (\"已撤回\")\n  exception_terminate: _FlowStatusTag.default.error,\n  // (\"异常终止\")\n  willHandled: _FlowStatusTag.default.going,\n  // (\"处理中\")\n  launch: _FlowStatusTag.default.going // (\"处理中\")\n};\nvar FlowStatusTag = (0, _react.memo)(function (_ref) {\n  var status = _ref.status,\n    text = _ref.text,\n    className = _ref.className;\n  return /*#__PURE__*/_react.default.createElement(_WebUI.Tag, {\n    className: (0, _classnames.default)(classList[status] || classList.launch, className)\n  }, text);\n});\nFlowStatusTag.displayName = 'FlowStatusTag';\nvar _default = exports[\"default\"] = FlowStatusTag;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vRmxvd1N0YXR1c1RhZy50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFPQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFYQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFPQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBUUE7QUFJQTtBQUZBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUVBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vRmxvd1N0YXR1c1RhZy50c3g/MzJhMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTA0LTA2IDE2OjIyOjAwXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTEyLTIwIDE1OjA2OjAyXG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IG1lbW8sIEZDIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBUYWcgfSBmcm9tICdub2NvZGVfY29tcG9uZW50L1dlYlVJJ1xuXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vRmxvd1N0YXR1c1RhZy5sZXNzJ1xuaW1wb3J0IGNsYXNzTmFtZXMgZnJvbSAnY2xhc3NuYW1lcydcblxuLy8g6IqC54K554q25oCB5qCH562+6aKc6ImyXG5jb25zdCBjbGFzc0xpc3QgPSB7XG4gIHdpbGxBcHByb3ZhbDogc3R5bGVzLndhcm5pbmcsIC8vIOW+heWuoeaJuVxuICBhcHByb3ZlOiBzdHlsZXMuc3VjY2VzcywgLy8g5ZCM5oSPXG4gIGhhbmRsZWQ6IHN0eWxlcy5zdWNlc3MsIC8vIChcIuW3suWujOaIkFwiKVxuICBkb25lOiBzdHlsZXMuc3VjY2VzcywgLy8gKFwi5bey5a6M5oiQXCIpXG4gIHRlcm1pbmF0ZTogc3R5bGVzLnJlamVjdCwgLy8g5ZCm5YazXG4gIHdpdGhkcmF3OiBzdHlsZXMucmVqZWN0LCAvLyAoXCLlt7LmkqTlm55cIilcbiAgZXhjZXB0aW9uX3Rlcm1pbmF0ZTogc3R5bGVzLmVycm9yLCAvLyAoXCLlvILluLjnu4jmraJcIilcbiAgd2lsbEhhbmRsZWQ6IHN0eWxlcy5nb2luZywgLy8gKFwi5aSE55CG5LitXCIpXG4gIGxhdW5jaDogc3R5bGVzLmdvaW5nIC8vIChcIuWkhOeQhuS4rVwiKVxufVxuXG5pbnRlcmZhY2UgRmxvd1N0YXR1c1RhZ0FwaSB7XG4gIHN0YXR1czogc3RyaW5nLFxuICB0ZXh0OiBzdHJpbmcsXG4gIGNsYXNzTmFtZTogc3RyaW5nXG59XG5cbmNvbnN0IEZsb3dTdGF0dXNUYWc6IEZDPEZsb3dTdGF0dXNUYWdBcGk+ID0gbWVtbygoe1xuICBzdGF0dXMsXG4gIHRleHQsXG4gIGNsYXNzTmFtZVxufSkgPT4ge1xuICByZXR1cm4gPFRhZyBjbGFzc05hbWU9e2NsYXNzTmFtZXMoY2xhc3NMaXN0W3N0YXR1c10gfHwgY2xhc3NMaXN0LmxhdW5jaCwgY2xhc3NOYW1lKX0+e3RleHR9PC9UYWc+XG59KVxuXG5GbG93U3RhdHVzVGFnLmRpc3BsYXlOYW1lID0gJ0Zsb3dTdGF0dXNUYWcnXG5cbmV4cG9ydCBkZWZhdWx0IEZsb3dTdGF0dXNUYWdcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/FlowStatusTag.tsx\n");

/***/ }),

/***/ "./src/web/layout/designer/HeaderFormName.jsx":
/*!****************************************************!*\
  !*** ./src/web/layout/designer/HeaderFormName.jsx ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _HeaderFormName = _interopRequireDefault(__webpack_require__(/*! ./HeaderFormName.less */ \"./src/web/layout/designer/HeaderFormName.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-09-27 15:22:40\n * @LastEditTime: 2023-05-05 15:46:13\n * @Last Modified by: jianhang_he\n */\n\nvar DEFAULT_FORM_NAME = '未命名表单';\nvar DOUBLE_CLICK = 'doubleClick';\n\n/**\n * @description 表单名称区域\n * @param {formName, updateFormName} formName 表单名称 updateFormName 更新表单名称（回传给上层）\n * @returns\n */\nvar HeaderFormName = function HeaderFormName(_ref) {\n  var formName = _ref.formName,\n    updateFormName = _ref.updateFormName,\n    _ref$placeholder = _ref.placeholder,\n    placeholder = _ref$placeholder === void 0 ? '请输入表单名称' : _ref$placeholder,\n    _ref$tips = _ref.tips,\n    tips = _ref$tips === void 0 ? '点击修改表单名称' : _ref$tips,\n    _ref$doubleClickTips = _ref.doubleClickTips,\n    doubleClickTips = _ref$doubleClickTips === void 0 ? '双击修改表单名称' : _ref$doubleClickTips,\n    _ref$defaultName = _ref.defaultName,\n    defaultName = _ref$defaultName === void 0 ? DEFAULT_FORM_NAME : _ref$defaultName;\n  var inputRef = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(formName === defaultName),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    formNameEditStatus = _useState2[0],\n    setEditFormNameEditStatus = _useState2[1]; // 表单名称编辑状态\n  var _useState3 = (0, _react.useState)(formName),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    name = _useState4[0],\n    setName = _useState4[1]; // 表单名称\n\n  (0, _react.useEffect)(function () {\n    setName(formName);\n    setEditFormNameEditStatus(formName === defaultName);\n  }, [formName]);\n  (0, _react.useEffect)(function () {\n    if (inputRef.current && formNameEditStatus) {\n      // 初始化的时候表单名称和默认名称一致时，需要选中修改\n      inputRef.current.select();\n    }\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (formNameEditStatus === DOUBLE_CLICK) {\n      inputRef.current.select();\n      return;\n    }\n    if (formNameEditStatus) {\n      // 输入框显示的时候默认聚焦\n      inputRef.current.focus();\n    }\n  }, [formNameEditStatus]);\n\n  // 输入框改变\n  var handleChangeFormName = function handleChangeFormName(e) {\n    var value = e.target.value;\n    setName(value);\n  };\n\n  // 回车\n  var onPressEnterFormName = function onPressEnterFormName(inputValue) {\n    updataFormNameAndHideInput(inputValue || defaultName);\n  };\n\n  // 回传formName和隐藏输入框\n  var updataFormNameAndHideInput = (0, _react.useCallback)(function (value) {\n    updateFormName(value);\n    setDocumentTitle(value);\n    setName(value);\n    setEditFormNameEditStatus(false);\n  }, []);\n\n  // 设置当前页面title\n  var setDocumentTitle = function setDocumentTitle(title) {\n    document.title = \"\\u914D\\u7F6E\\uFF1A\".concat(title);\n  };\n\n  // 双击修改\n  var handleDoubleClickFormName = function handleDoubleClickFormName() {\n    setEditFormNameEditStatus(DOUBLE_CLICK);\n  };\n  var handleBlurFormName = function handleBlurFormName(e) {\n    var value = e.target.value;\n    updataFormNameAndHideInput(value || formName || defaultName);\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderFormName.default.header_formname\n  }, formNameEditStatus ? /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    allowClear: true,\n    defaultValue: name,\n    value: name,\n    onChange: handleChangeFormName,\n    onBlur: handleBlurFormName,\n    onPressEnter: onPressEnterFormName,\n    maxLength: 50,\n    ref: inputRef,\n    className: _HeaderFormName.default.header_formname_input,\n    placeholder: placeholder,\n    borderType: \"bordered\"\n  }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"p\", {\n    title: doubleClickTips,\n    onDoubleClick: handleDoubleClickFormName\n  }, name), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    title: tips,\n    className: _HeaderFormName.default.header_formname_editicon,\n    type: \"bianji\",\n    onClick: function onClick() {\n      return setEditFormNameEditStatus(true);\n    }\n  })));\n};\nvar _default = exports[\"default\"] = HeaderFormName;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderFormName.jsx\n");

/***/ }),

/***/ "./src/web/layout/flow/designer/HeaderLayout.tsx":
/*!*******************************************************!*\
  !*** ./src/web/layout/flow/designer/HeaderLayout.tsx ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _HeaderNavDropDown = _interopRequireDefault(__webpack_require__(/*! ../../designer/HeaderNavDropDown */ \"./src/web/layout/designer/HeaderNavDropDown.tsx\"));\nvar _Header = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Header */ \"./src/web/component/common/Header.jsx\"));\nvar _NocodeLink = _interopRequireDefault(__webpack_require__(/*! @/route/NocodeLink */ \"./src/route/NocodeLink.tsx\"));\nvar _HeaderFormName = _interopRequireDefault(__webpack_require__(/*! ../../designer/HeaderFormName */ \"./src/web/layout/designer/HeaderFormName.jsx\"));\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _HeaderLayout = _interopRequireDefault(__webpack_require__(/*! ./HeaderLayout.less */ \"./src/web/layout/flow/designer/HeaderLayout.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _LunchFlowModalLayout = _interopRequireDefault(__webpack_require__(/*! ./LunchFlowModalLayout */ \"./src/web/layout/flow/designer/LunchFlowModalLayout.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-27 20:27:10\n * @LastEditTime: 2024-04-01 17:05:13\n * @Last Modified by: jianhang_he\n */\n\n// 获取是否隐藏导航栏状\nvar getIsHideHeaderNavBar = function getIsHideHeaderNavBar(origin) {\n  var hideOriginList = ['cosmic'];\n  return (0, _includes.default)(hideOriginList).call(hideOriginList, origin);\n};\n\n/**\n * @description 流程设计器顶部栏\n * @returns\n */\nvar FlowHeaderLayout = (0, _react.memo)(function () {\n  var _context2;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    flowId = _useParams.flowId,\n    appId = _useParams.appId,\n    origin = _useParams.origin,\n    procInstId = _useParams.procInstId;\n  var isHideHeadNavBar = getIsHideHeaderNavBar(origin);\n  var isReadonly = !!procInstId;\n\n  // const [flowData, setFlowData] = useState({}) // 表单相关信息\n  var _useState = (0, _react.useState)(Date.now()),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    save = _useState2[0],\n    setSave = _useState2[1]; // 保存，触发强制更新\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    flowTitle = _useState4[0],\n    setFlowTitle = _useState4[1]; // 表单标题\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    modalVisible = _useState6[0],\n    setModalVisible = _useState6[1]; // 立即执行弹窗\n  var _useState7 = (0, _react.useState)({}),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    flowData = _useState8[0],\n    setFlowData = _useState8[1]; // 需要从loaddata/用户的配置里获取表单ID\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    isLoading = _useState10[0],\n    setIsLoading = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    isLunching = _useState12[0],\n    setIsLunching = _useState12[1];\n  var _useState13 = (0, _react.useState)(null),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    refresh = _useState14[0],\n    setRefresh = _useState14[1];\n  var _useState15 = (0, _react.useState)(false),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    isMountDesigner = _useState16[0],\n    setIsMountDesigner = _useState16[1];\n  var isClickLunchFlowRef = (0, _react.useRef)(false); // 是否立即执行\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state;\n  var rootConfig = state.rootConfig;\n  var _useMemo = (0, _react.useMemo)(function () {\n      var _flowData$nodes;\n      return ((_flowData$nodes = flowData.nodes) === null || _flowData$nodes === void 0 ? void 0 : (0, _find.default)(_flowData$nodes).call(_flowData$nodes, function (item) {\n        return item._Type_ === 'StartSignalEvent';\n      })) || {};\n    }, [flowData]),\n    formId = _useMemo.formId,\n    triggerMode = _useMemo.triggerMode;\n  var createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context;\n    return (0, _concat.default)(_context = \"\".concat(appId, \"||\")).call(_context, actionName);\n  }, [appId]);\n  (0, _react.useEffect)(function () {\n    document.title = !flowTitle ? '查看流程' : \"\\u914D\\u7F6E\\u6D41\\u7A0B\\uFF1A\".concat(flowTitle);\n  }, [flowTitle]);\n\n  // 获取本地的流程名称title\n  var setStorageTitle = function setStorageTitle() {\n    var key = procInstId || flowId;\n    var name = window.sessionStorage.getItem(\"nocode-flow-data-\".concat(key));\n    if (name) {\n      var title = name || '未命名流程';\n      setFlowTitle(title);\n      window.removeEventListener('storage', setStorageTitle, false);\n      window.localStorage.removeItem(\"nocode-flow-data-\".concat(key));\n    }\n  };\n\n  // 监听storage变化,重新设置流程标题\n  (0, _react.useLayoutEffect)(function () {\n    setStorageTitle();\n    window.addEventListener('storage', setStorageTitle, false);\n    return function () {\n      window.removeEventListener('storage', setStorageTitle, false);\n    };\n  }, []);\n\n  // 之前是调接口的，但是在查看流程的时候后端返回不了flowid，因此这个有问题，所以标题从storage里拿\n  // useEffect(() => {\n  //   // 获取流程信息\n  //   getFlowData({\n  //     appId,\n  //     flowId\n  //   }).then(res => {\n  //     const data = res?.rows?.[0] || { }\n  //     setFlowData(data)\n  //     setFlowTitle(data.name)\n  //   }).catch(err => {\n  //     console.error('出错了', err)\n  //   })\n  // }, [])\n\n  // 设计器保存/发布\n  var handleConfirm = (0, _react.useCallback)(function (id) {\n    // doMethod(SAVE_NOCODE_DESIGNER)\n    setSave([Date.now(), 'save', id].join());\n  }, []);\n\n  // 设计器保存/发布\n  var onSave = (0, _react.useCallback)(function () {\n    if (!isMountDesigner || isLunching) return;\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    // doMethod(SAVE_NOCODE_DESIGNER)\n    setIsLoading(true);\n    setSave([Date.now(), 'save'].join());\n  }, [isMountDesigner, isLunching, rootConfig]);\n\n  // 设计器保存/发布\n  var onLunch = (0, _react.useCallback)(function () {\n    if (!isMountDesigner || isLoading) return;\n    if (triggerMode === 'time') {\n      (0, _utils.showConfirmModal)({\n        type: 'prompt',\n        title: '确认立即触发此流程吗？',\n        onAction: function onAction(key) {\n          switch (key) {\n            case 'ok':\n              handleConfirm('timer');\n          }\n        }\n      });\n      return;\n    }\n    if (!formId) {\n      (0, _utils.showNotice)('warnning', '请选择触发表单');\n      return;\n    }\n    isClickLunchFlowRef.current = true;\n    setIsLunching(true);\n\n    // 点击执行的时候需要保存，要不点击新增记录后端拿到的还是旧的流程\n    setSave([Date.now(), 'save'].join());\n    // setModalVisible(true)\n  }, [formId, triggerMode, isMountDesigner, isLoading, handleConfirm]);\n\n  // 更新表单名称\n  var updateFlowName = (0, _react.useCallback)(function (flowName) {\n    // 表单名称不一致的时候才需要修改\n    if (flowName !== flowTitle) {\n      setFlowTitle(flowName);\n      _eventEmit.default.emit(_constants.UPDATE_FLOWNAME, flowName);\n    }\n  }, [flowTitle]);\n  var saveStatus = function saveStatus() {\n    setIsLoading(false);\n    setIsLunching(false);\n  };\n  var listenerActionCallback = (0, _react.useCallback)(function (action, data) {\n    switch (action) {\n      case _constants.REFBILL_REFRESH_REF_LIST:\n        if (data === formId) {\n          setRefresh(Date.now());\n        }\n        break;\n      case _constants.SHOW_LUNCH_FLOW_MODAL:\n        if (isClickLunchFlowRef.current) {\n          setModalVisible(true);\n          isClickLunchFlowRef.current = false;\n        }\n        break;\n      default:\n        break;\n    }\n  }, [formId]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isHideHeadNavBar && /*#__PURE__*/_react.default.createElement(_Header.default, {\n    className: _HeaderLayout.default.designer_header\n  }, /*#__PURE__*/_react.default.createElement(_Header.default.Left, {\n    className: _HeaderLayout.default.leftnav\n  }, !isReadonly && /*#__PURE__*/_react.default.createElement(_HeaderNavDropDown.default, null), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.leftnav_container\n  }, !isReadonly && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, \"\\u914D\\u7F6E\\uFF1A\", /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.leftnav_container_name\n  }, /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: (0, _concat.default)(_context2 = \"/\".concat(appId, \"/admin/flow/\")).call(_context2, flowId),\n    className: _HeaderLayout.default.leftnav_container_name,\n    \"data-nc-action\": createUiActionDataStr('tb_crumb_fl')\n  }, \"\\u6D41\\u7A0B\\u7BA1\\u7406\"))), flowTitle && (isReadonly ? /*#__PURE__*/_react.default.createElement(\"p\", null, flowTitle) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"fangxiangyou\"\n  }), /*#__PURE__*/_react.default.createElement(_HeaderFormName.default, {\n    formName: flowTitle,\n    updateFormName: updateFlowName,\n    defaultName: \"\\u672A\\u547D\\u540D\\u6D41\\u7A0B\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u6D41\\u7A0B\\u540D\\u79F0\",\n    tips: \"\\u70B9\\u51FB\\u4FEE\\u6539\\u6D41\\u7A0B\\u540D\\u79F0\",\n    doubleClickTips: \"\\u53CC\\u51FB\\u4FEE\\u6539\\u6D41\\u7A0B\\u540D\\u79F0\"\n  }))))), /*#__PURE__*/_react.default.createElement(_Header.default.Main, {\n    className: _HeaderLayout.default.mainnav\n  }), /*#__PURE__*/_react.default.createElement(_Header.default.Right, {\n    className: _HeaderLayout.default.rightnav\n  }, !isReadonly && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.btn_group\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    title: \"\\u70B9\\u51FB\\u6267\\u884C\\u6D41\\u7A0B\",\n    size: \"small\",\n    className: _HeaderLayout.default.lunch_btn,\n    disabled: !isMountDesigner,\n    \"data-nc-action\": createUiActionDataStr('tb_execute'),\n    loading: isLunching,\n    onClick: onLunch\n  }, \"\\u7ACB\\u5373\\u6267\\u884C\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    title: \"\\u70B9\\u51FB\\u53D1\\u5E03\\u6D41\\u7A0B\",\n    size: \"small\",\n    className: _HeaderLayout.default.save_btn,\n    disabled: !isMountDesigner,\n    \"data-nc-action\": createUiActionDataStr('tb_publish'),\n    type: \"primary\",\n    loading: isLoading,\n    onClick: onSave\n  }, \"\\u53D1\\u5E03\")))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_HeaderLayout.default.designer_container, (0, _defineProperty2.default)({}, _HeaderLayout.default.designer_container_notop, isHideHeadNavBar))\n  }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, {\n    context: {\n      save: save,\n      flowTitle: flowTitle,\n      setFlowData: setFlowData,\n      saveStatus: saveStatus,\n      listenerActionCallback: listenerActionCallback,\n      isMountDesigner: isMountDesigner,\n      setIsMountDesigner: setIsMountDesigner,\n      setFlowTitle: setFlowTitle\n    }\n  })), /*#__PURE__*/_react.default.createElement(_LunchFlowModalLayout.default, {\n    visible: modalVisible,\n    setVisible: setModalVisible,\n    onConfirm: handleConfirm,\n    formId: formId,\n    appId: appId,\n    refresh: refresh\n  }));\n});\nFlowHeaderLayout.displayName = 'FlowHeaderLayout';\nvar _default = exports[\"default\"] = FlowHeaderLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/flow/designer/HeaderLayout.tsx\n");

/***/ }),

/***/ "./src/web/layout/flow/designer/LunchFlowModalLayout.tsx":
/*!***************************************************************!*\
  !*** ./src/web/layout/flow/designer/LunchFlowModalLayout.tsx ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _cellRender = __webpack_require__(/*! @/web/component/common/table/cellRender */ \"./src/web/component/common/table/cellRender/index.tsx\");\nvar _LunchFlowModalLayout = _interopRequireDefault(__webpack_require__(/*! ./LunchFlowModalLayout.less */ \"./src/web/layout/flow/designer/LunchFlowModalLayout.less\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _immer = _interopRequireDefault(__webpack_require__(/*! kd_libs/immer */ \"webpack/container/remote/kd_libs/immer\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _useFilterRefBill = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFilterRefBill */ \"./src/hooks/useFilterRefBill.tsx\"));\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(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, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar LunchFlowModalLayout = (0, _react.memo)(function (_ref) {\n  var appId = _ref.appId,\n    visible = _ref.visible,\n    formId = _ref.formId,\n    _ref$showAddRecord = _ref.showAddRecord,\n    showAddRecord = _ref$showAddRecord === void 0 ? true : _ref$showAddRecord,\n    refresh = _ref.refresh,\n    setVisible = _ref.setVisible,\n    onConfirm = _ref.onConfirm;\n  // const [visible, setVisible] = useState(false)\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    data = _useState2[0],\n    setData = _useState2[1]; // 表格数据\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    tableColumn = _useState4[0],\n    setTableColumn = _useState4[1]; // 表格列头信息\n  var _useState5 = (0, _react.useState)([]),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    tableColumnData = _useState6[0],\n    setTableColumnData = _useState6[1]; // 表格列配置信息{key,number}\n  var _useState7 = (0, _react.useState)([]),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    config = _useState8[0],\n    setConfig = _useState8[1]; // 表格配置\n  var _useState9 = (0, _react.useState)(''),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    searchValue = _useState10[0],\n    setSearchValue = _useState10[1]; // 表格搜索关键字\n  var _useState11 = (0, _react.useState)([]),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    tableSelectedKeys = _useState12[0],\n    setTableSelectedKeys = _useState12[1]; // 选中行\n  var _useState13 = (0, _react.useState)([]),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    tableFilterData = _useState14[0],\n    setTableFilterData = _useState14[1]; // 存储过滤项\n  var _useState15 = (0, _react.useState)({}),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    colHeadFilter = _useState16[0],\n    setColHeadFilter = _useState16[1]; // 列头筛选设置\n  // const [modalHeight, setModalHeight] = useState(520) // 列头筛选设置\n  var refBillProps = (0, _useFilterRefBill.default)({\n    appId: appId\n  });\n  var fetchParams = (0, _react.useRef)({\n    page_no: 1,\n    page_size: 10,\n    filter: '',\n    env: 1,\n    order_by: '',\n    search: ''\n  });\n\n  // 格式化表格列\n  var formatTableColumn = (0, _react.useCallback)(function (config) {\n    var list = config.rows[0].listItemConfig;\n    var col = [];\n    var colData = [];\n    list.forEach(function (item) {\n      var align = item.type === 'nocodedecimalfield' ? 'right' : ''; // 标题对齐方式\n      var titleProps = {\n        // 列头数据\n        align: align,\n        title: item.name,\n        number: item.number,\n        type: item.type\n      };\n      colData.push({\n        key: item.number,\n        title: item.name\n      });\n      item.display && col.push({\n        code: item.number,\n        title: /*#__PURE__*/_react.default.createElement(_WebUI.TableTitle, titleProps),\n        lock: item.locked,\n        width: item.width || 200,\n        render: function render(value, record, rowIndex) {\n          return /*#__PURE__*/_react.default.createElement(_cellRender.CellRender, {\n            value: value,\n            type: item.type,\n            readOnly: true,\n            record: record,\n            rowIndex: rowIndex,\n            oriAppId: appId // 表格弹窗请求数据需求\n            ,\n            oriFormId: formId // 表格弹窗请求数据需求\n            ,\n            id: record.id // 表格弹窗请求数据需求\n            ,\n            fieldName: item.number // 表格弹窗请求数据需求\n            ,\n            title: item.name // 表格弹窗请求数据需求\n          });\n        }\n      });\n    });\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setTableColumn(col);\n      setTableColumnData(colData);\n    });\n  }, [appId, formId]);\n\n  // 搜索\n  var onSearch = (0, _react.useCallback)(function () {\n    var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    fetchParams.current = _objectSpread(_objectSpread({}, fetchParams.current), params);\n    (0, _apps.getFormDataList)(appId, formId, _objectSpread({}, fetchParams.current)).then(function (res) {\n      setData(res);\n    }).catch(function (err) {\n      console.error('getFormDataList', err);\n    });\n  }, [appId, formId]);\n  var handleSearch = (0, _useDebounce.default)(onSearch);\n\n  // 表头筛选点击确认，过滤条件\n  var onFilterConfirm = (0, _react.useCallback)(function (info, fieldName) {\n    console.log('onFilterConfirm', info, fieldName);\n    var newItems = (0, _filter.default)(tableFilterData).call(tableFilterData, function (filter) {\n      return filter.fieldName !== fieldName;\n    });\n    // 过滤掉全选\n    info.forEach(function (item) {\n      if (item.compareType === '001') {\n        var isAll = item.value.some(function (val) {\n          return val.type === 'all';\n        });\n        !isAll && newItems.push(item);\n      } else {\n        newItems.push(item);\n      }\n    });\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      // 更新过滤条件\n      setTableFilterData(newItems);\n      // 更新过滤条件数据\n      setColHeadFilter((0, _immer.default)(function (draf) {\n        if (draf[fieldName]) {\n          draf[fieldName].items = newItems;\n        }\n      }));\n    });\n    (0, _apps.sendColHeadFilter)({\n      data: [{\n        appid: appId,\n        formid: formId,\n        filterrows: newItems\n      }]\n    }, 1, fieldName).then(function (res) {\n      onSearch({\n        filter: res.extra.filters[0]\n      });\n    });\n  }, [appId, formId, tableFilterData]);\n\n  // 行选择\n  var onRowSelectChange = (0, _react.useCallback)(function (selectedRowKeys, actionRowkey, actionRowskeys, action) {\n    // console.log('onRowSelectChange', selectedRowKeys, actionRowkey, actionRowskeys, action)\n    setTableSelectedKeys(selectedRowKeys);\n  }, []);\n\n  // 文字搜索\n  var onSearchAction = (0, _react.useCallback)(function (search) {\n    setSearchValue(search);\n    onSearch({\n      search: search\n    });\n  }, [onSearch]);\n\n  // 排序\n  var onSort = (0, _react.useCallback)(function (number, isAsc) {\n    console.log('onSort', number, isAsc);\n    var params = {\n      data: [{\n        appId: appId,\n        formId: formId,\n        orderInfo: [{\n          number: number,\n          isAsc: isAsc === 1\n        }]\n      }]\n    };\n    (0, _apps.sendColHeadSort)(params, 1).then(function (res) {\n      var orderBy = res.extra.orderBy;\n      onSearch({\n        order_by: orderBy\n      });\n    });\n  }, [onSearch, appId, formId]);\n\n  // 过滤条件变化\n  var onFilterChange = (0, _react.useCallback)(function (info) {\n    var filterrows = (0, _map.default)(info).call(info, function (item) {\n      var compareType = item.compareType,\n        fieldName = item.fieldName,\n        value = item.value;\n      return {\n        compareType: compareType,\n        fieldName: fieldName,\n        value: value\n      };\n    });\n    // 更新过滤条件\n    setTableFilterData(info);\n    (0, _apps.sendFormFilterSetting)({\n      data: [{\n        appid: appId,\n        formid: formId,\n        filterrows: filterrows\n      }]\n    }, 1).then(function (res) {\n      // console.log('sendFormFilterSetting', res)\n      onSearch({\n        filter: res.extra.filters[0]\n      });\n    });\n  }, [appId, formId, onSearch]);\n\n  // 添加列头过滤条件时触发，当前为过滤条件弹窗显示隐藏时\n  var addColHeadFilter = (0, _react.useCallback)(function (info, filterItems) {\n    console.log('onColHeadFilterVisibleChange', info, filterItems);\n    var field = info.fieldName;\n    (0, _apps.getEnumFilterValue)(appId, formId, field, filterItems, 1).then(function (res) {\n      console.log('getEnumFilterValue', res);\n      setColHeadFilter((0, _immer.default)(function (draf) {\n        draf[field] = {\n          configuredFilter: {\n            items: filterItems\n          },\n          fieldFilterConfig: info,\n          groupInfo: res.rows\n        };\n      }));\n    });\n  }, [appId, formId]);\n\n  // 翻页\n  var onPageChange = (0, _react.useCallback)(function (pageNum, pageSize) {\n    // console.log('onPageChange', pageNum, pageSize)\n    onSearch({\n      page_no: pageNum,\n      page_size: pageSize\n    });\n  }, [onSearch]);\n\n  // 提交\n  var handleConfirm = (0, _react.useCallback)(function () {\n    if (!(tableSelectedKeys !== null && tableSelectedKeys !== void 0 && tableSelectedKeys[0])) return (0, _utils.showNotice)('warnning', '请选择要执行的数据');\n    setVisible(false);\n    onConfirm(tableSelectedKeys[0]);\n  }, [tableSelectedKeys, onConfirm]);\n\n  // 列头点击筛选图标, 请求的接口参数不一样\n  var onFilterShow = (0, _react.useCallback)(function (fieldName, filterItems) {\n    // console.log('onFilterShow', fieldName, filterItems)\n    (0, _apps.getColHeadFilter)({\n      appId: appId,\n      formId: formId,\n      env: 1,\n      fieldName: fieldName,\n      params: {\n        filterRows: filterItems,\n        filter: ''\n      }\n    }).then(function (res) {\n      setColHeadFilter((0, _immer.default)(function (draf) {\n        draf[fieldName] = res.rows[0];\n      }));\n    }).catch(function (err) {\n      console.error('getColHeadFilter', err);\n    });\n  }, [appId, formId]);\n\n  // 列设置\n  // const onListSettingConfirm = useCallback((...args) => {\n  //   console.log('onListSettingConfirm', args)\n  // }, [])\n\n  (0, _react.useEffect)(function () {\n    visible && handleSearch();\n  }, [visible, handleSearch]);\n  (0, _react.useEffect)(function () {\n    if (!formId || !appId) return;\n    // 请求表格数据\n    handleSearch();\n    // 请求表格配置信息\n    (0, _apps.getFormDataListSetting)(appId, formId, 1, {}).then(function (res) {\n      setConfig(res.rows[0]);\n      formatTableColumn(res);\n    }).catch(function (err) {\n      console.error('getFormDataListSetting', err);\n    });\n  }, [formId, appId, refresh]);\n  var modalHeight = (0, _react.useMemo)(function () {\n    // let height = document.body.offsetHeight - 64 // 可视区域 - 64（上下减32）\n    // height = height > 1080 ? 1080 : height // 最大\n    // height = height < 520 ? 520 : height // 最小\n    // height = height % 2 > 0 ? (height - 1) : height // 将高度转为复数，解决虚边\n    return (0, _utils.autoModalHeight)(520, 768); // 统一使用autoModalHeight函数\n  }, [document.body.offsetHeight]);\n\n  // 新增记录\n  var handleClickAddRecord = function handleClickAddRecord() {\n    _eventEmit.default.emit(_constants.ADD_NEW_RECORD, {\n      formId: formId\n    });\n  };\n  var dataGridLayoutProps = {\n    data: data,\n    config: config,\n    searchValue: searchValue,\n    tableSelectedKeys: tableSelectedKeys,\n    colHeadFilter: colHeadFilter,\n    tableColumn: tableColumn,\n    tableColumnData: tableColumnData,\n    primaryKey: 'id',\n    multiSelect: false,\n    tableFilterData: tableFilterData,\n    refBillProps: refBillProps,\n    totalNode: showAddRecord ? /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      type: \"ghost\",\n      size: \"small\",\n      onClick: handleClickAddRecord,\n      icon: {\n        prefix: 'ncicon',\n        type: 'zengjia-yuan'\n      }\n    }, \"\\u65B0\\u589E\\u8BB0\\u5F55\") : null,\n    // sorts: [],\n    // style: {},\n    // visibleColumnKeys,\n    // colOperations: [],\n    onSort: onSort,\n    onFilterConfirm: onFilterConfirm,\n    onRowSelectChange: onRowSelectChange,\n    onSearch: onSearchAction,\n    onFilterChange: onFilterChange,\n    onColHeadFilterVisibleChange: addColHeadFilter,\n    onPageChange: onPageChange,\n    onFilterShow: onFilterShow\n    // onListSettingConfirm\n  };\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    title: \"\\u8BF7\\u9009\\u62E9\",\n    visible: visible,\n    width: 1180,\n    height: modalHeight,\n    destroyOnClose: true,\n    maskClosable: false,\n    bodyStyle: {\n      padding: '16px 24px',\n      overflow: 'hidden'\n    },\n    onCancel: function onCancel() {\n      return setVisible(false);\n    },\n    className: _LunchFlowModalLayout.default.lunch_flow_modal,\n    body: /*#__PURE__*/_react.default.createElement(_WebUI.DataGridLayout, dataGridLayoutProps),\n    footer: /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _LunchFlowModalLayout.default.footer\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      size: \"small\",\n      onClick: function onClick() {\n        return setVisible(false);\n      }\n    }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      size: \"small\",\n      type: \"primary\",\n      onClick: handleConfirm\n    }, \"\\u786E\\u8BA4\"))\n  });\n});\nLunchFlowModalLayout.displayName = 'LunchFlowModalLayout';\nvar _default = exports[\"default\"] = LunchFlowModalLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/flow/designer/LunchFlowModalLayout.tsx\n");

/***/ }),

/***/ "./src/web/pages/admin/flow/AdminFlowPage.tsx":
/*!****************************************************!*\
  !*** ./src/web/pages/admin/flow/AdminFlowPage.tsx ***!
  \****************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof3 = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _index = __webpack_require__(/*! @/utils/index */ \"./src/utils/index.tsx\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _useFetchHook = __webpack_require__(/*! @/hooks/useFetchHook */ \"./src/hooks/useFetchHook.ts\");\nvar _api = __webpack_require__(/*! @/ajax/api */ \"./src/ajax/api.js\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _PopBill = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/PopBill */ \"./src/web/component/apps/PopBill.tsx\"));\nvar _FlowStatusTag = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/FlowStatusTag */ \"./src/web/component/common/FlowStatusTag.tsx\"));\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _AdminFlowPage = _interopRequireDefault(__webpack_require__(/*! ./AdminFlowPage.less */ \"./src/web/pages/admin/flow/AdminFlowPage.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof3(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(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, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-09 16:33:01\n * @LastEditTime: 2024-04-03 09:31:58\n * @Last Modified by: jianhang_he\n */ // import FlowPopDetail from '@/web/layout/home/FlowPopLayout'\nvar AdminFlowPage = (0, _react.memo)(function () {\n  var _context, _context2, _context3;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var navigate = (0, _useNocodeNavigate.default)();\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId,\n    flowModelId = _useParams.flowId,\n    formId = _useParams.targetFormId;\n  var selectedFlow = state.selectedFlow;\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    bill = _useState2[0],\n    setBill = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    visible = _useState4[0],\n    setVisible = _useState4[1];\n  var _useState5 = (0, _react.useState)([]),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    column = _useState6[0],\n    setColumn = _useState6[1];\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    flowId = _useState8[0],\n    setFlowId = _useState8[1];\n  // 内部selectedFlow.number和分页信息维护成同一个状态，这样请求不会根据状态变更触发两次\n  var _useState9 = (0, _react.useState)({\n      page_no: 1,\n      page_size: 20,\n      processNumber: selectedFlow.number\n    }),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    flowPageData = _useState10[0],\n    setFlowPageData = _useState10[1];\n  var pageData = (0, _react.useMemo)(function () {\n    return {\n      page_no: flowPageData.page_no,\n      page_size: flowPageData.page_size\n    };\n  }, [flowPageData]);\n  (0, _react.useEffect)(function () {\n    setFlowPageData(_objectSpread(_objectSpread({}, flowPageData), {}, {\n      page_no: 1,\n      processNumber: selectedFlow.number\n    }));\n  }, [selectedFlow.number]);\n  var paramStr = (0, _concat.default)(_context = \"processNumber=\".concat(flowPageData.processNumber, \"&appId=\")).call(_context, appId);\n  var _useGetHook = (0, _useFetchHook.useGetHook)((0, _concat.default)(_context2 = \"\".concat(_api.ADMIN_FLOW_LSIT_CONFIG, \"?\")).call(_context2, paramStr), null),\n    listConfig = _useGetHook.data; // 获取列表数据\n  var _useGetHook2 = (0, _useFetchHook.useGetHook)((0, _concat.default)(_context3 = \"\".concat(_api.ADMIN_FLOW_LSIT_DATA, \"?\")).call(_context3, paramStr), pageData),\n    data = _useGetHook2.data,\n    refresh = _useGetHook2.refresh; // 获取列表配置数据\n\n  var createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context4, _context5;\n    return (0, _concat.default)(_context4 = (0, _concat.default)(_context5 = \"\".concat(appId, \"|\")).call(_context5, formId, \"|\")).call(_context4, actionName);\n  }, [appId, formId]);\n\n  /**\n   * 点击列表\n   */\n  var itemClick = (0, _react.useCallback)(function (value, record, rowIndex) {\n    setBill({\n      Status: 'view',\n      appId: appId,\n      pkId: record.businessKey,\n      targetFormId: record.targetFormId,\n      procInstId: record.procInstId,\n      formId: 'bos_nocode_bill',\n      rootPageId: state === null || state === void 0 ? void 0 : state.rootConfig.pageId\n    });\n    setFlowId(record.procInstId);\n    setVisible(true);\n  }, [state.rootConfig]);\n\n  /**\n   * 格式化列数据\n   */\n  var formatTableColumn = (0, _react.useCallback)(function (config) {\n    var list = config.rows[0].listItemConfig;\n    var col = [];\n    list.forEach(function (item) {\n      var number = item.number,\n        name = item.name,\n        type = item.type,\n        width = item.width;\n      item.display && col.push({\n        code: item.number,\n        lock: item.locked,\n        width: 200,\n        title: /*#__PURE__*/_react.default.createElement(_WebUI.TableTitle, {\n          title: name,\n          key: number,\n          type: type,\n          number: number,\n          hideFilter: true,\n          hideSort: true\n        }),\n        render: function render(value, record, rowIndex) {\n          if ((0, _typeof2.default)(value) === 'object' && value !== null && value !== void 0 && value.isApprovalStatus) {\n            var _state = value.handleState,\n              stateDesc = value.handleStateDesc;\n            return /*#__PURE__*/_react.default.createElement(_FlowStatusTag.default, {\n              status: _state,\n              text: stateDesc\n            });\n          }\n          return /*#__PURE__*/_react.default.createElement(\"span\", {\n            title: value\n          }, value);\n        }\n      });\n    });\n    col.push({\n      code: 'operator',\n      title: /*#__PURE__*/_react.default.createElement(_WebUI.TableTitle, {\n        title: \"\\u64CD\\u4F5C\",\n        key: \"operator\",\n        type: \"operator\",\n        number: \"operator\",\n        hideFilter: true,\n        hideSort: true\n      }),\n      lock: true,\n      width: 100,\n      render: function render(value, record, rowIndex) {\n        return /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n          major: true,\n          type: \"text\",\n          \"data-nc-action\": createUiActionDataStr('sa_fg_detail'),\n          onClick: function onClick() {\n            return itemClick(value, record, rowIndex);\n          },\n          text: \"\\u8BE6\\u60C5\"\n        });\n      }\n    });\n    setColumn(col);\n  }, [createUiActionDataStr]);\n\n  // 格式化列数据\n  (0, _react.useEffect)(function () {\n    listConfig && formatTableColumn(listConfig);\n  }, [listConfig]);\n\n  // 配置流程\n  var handleClickSettingFlow = (0, _react.useCallback)(function () {\n    var _context6;\n    if (window.isIE) {\n      var title = '该功能暂不支持IE浏览器，\\n请尝试使用其他浏览器（推荐Chrome）。';\n      (0, _index.showConfirm)(title, '', 4);\n      return;\n    }\n    (0, _index.openner)((0, _concat.default)(_context6 = \"/\".concat(appId, \"/flow/\")).call(_context6, flowModelId));\n  }, [appId, flowModelId]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminFlowPage.default.container\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminFlowPage.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminFlowPage.default.actions\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminFlowPage.default.buttons\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    title: \"\\u70B9\\u51FB\\u914D\\u7F6E\\u5F53\\u524D\\u9009\\u4E2D\\u7684\\u6D41\\u7A0B\",\n    type: \"primary\",\n    \"data-nc-action\": createUiActionDataStr('sa_fg_set'),\n    onClick: handleClickSettingFlow\n  }, \"\\u914D\\u7F6E\\u6D41\\u7A0B\"))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminFlowPage.default.list\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.DataGridLayout, {\n    totalNode: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null),\n    rowSelection: false,\n    style: {\n      width: '100%'\n    },\n    tableColumn: column,\n    data: data,\n    searchNode: /*#__PURE__*/_react.default.createElement(\"span\", null),\n    buttonNode: /*#__PURE__*/_react.default.createElement(\"span\", null),\n    onPageChange: function onPageChange(num, size) {\n      return setFlowPageData(_objectSpread(_objectSpread({}, flowPageData), {}, {\n        page_no: num,\n        page_size: size\n      }));\n    }\n  })))), visible && /*#__PURE__*/_react.default.createElement(_PopBill.default, {\n    visible: visible,\n    close: function close() {\n      return setVisible(false);\n    },\n    billList: [],\n    flowId: flowId,\n    config: bill,\n    onRefresh: refresh,\n    detailShareReqireLogin: true,\n    detailShareNotReqireLogin: true\n  }));\n});\nAdminFlowPage.displayName = 'AdminFlowPage';\nvar _default = exports[\"default\"] = AdminFlowPage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/admin/flow/AdminFlowPage.tsx\n");

/***/ }),

/***/ "./src/web/pages/flow/designer/index.tsx":
/*!***********************************************!*\
  !*** ./src/web/pages/flow/designer/index.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _Main = _interopRequireDefault(__webpack_require__(/*! bos_core/Main */ \"webpack/container/remote/bos_core/Main\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _fieldPermission = _interopRequireDefault(__webpack_require__(/*! @/web/component/fieldPermission */ \"./src/web/component/fieldPermission/index.tsx\"));\nvar _index = _interopRequireDefault(__webpack_require__(/*! ./index.less */ \"./src/web/pages/flow/designer/index.less\"));\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 15:43:37\n * @LastEditTime: 2024-04-01 16:27:45\n * @Last Modified by: jianhang_he\n */\n\nvar DEFULT_FORM_ID = 'bos_nocode_wfdesign';\nvar NocodeEntryMemo = (0, _react.memo)(function (props) {\n  var _state$rootConfig, _context;\n  // flowId对应流程模型id，procdefineId对应流程定义id，还有一个流程实例id\n  // 流程模型：可编辑，\n  // 流程定义：流程版本，一个流程模型对应多个流程版本\n  // 流程实例：一个流程版本对应多个流程实例\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    flowId = _useParams.flowId,\n    procdefineId = _useParams.procdefineId,\n    procInstId = _useParams.procInstId,\n    pkId = _useParams.pkId;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  if (!(state !== null && state !== void 0 && (_state$rootConfig = state.rootConfig) !== null && _state$rootConfig !== void 0 && _state$rootConfig.pageId)) return null;\n\n  // 存在procdefineId的时候需要拼接一下，用于给后端判断版本（低代码嵌流程设计器的时候）\n  var targetFormId = pkId ? (0, _concat.default)(_context = \"\".concat(procInstId, \"-\")).call(_context, pkId) : flowId;\n  var status = pkId ? 'view' : '';\n  return /*#__PURE__*/_react.default.createElement(_react.Suspense, {\n    fallback: /*#__PURE__*/_react.default.createElement(\"div\", null)\n  }, /*#__PURE__*/_react.default.createElement(_Main.default, (0, _extends2.default)({\n    config: {\n      formId: DEFULT_FORM_ID,\n      targetFormId: targetFormId,\n      Status: status,\n      rootPageId: state.rootConfig.pageId\n    }\n  }, props)));\n});\nvar FlowDesigner = (0, _react.memo)(function () {\n  var context = (0, _reactRouterDom.useOutletContext)();\n  var _useParams2 = (0, _reactRouterDom.useParams)(),\n    appId = _useParams2.appId;\n  var save = context.save,\n    flowTitle = context.flowTitle,\n    setFlowData = context.setFlowData,\n    saveStatus = context.saveStatus,\n    listenerActionCallback = context.listenerActionCallback,\n    isMountDesigner = context.isMountDesigner,\n    setIsMountDesigner = context.setIsMountDesigner,\n    setFlowTitle = context.setFlowTitle;\n  var _useState = (0, _react.useState)({\n      appId: appId\n    }),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    fieldPermissionData = _useState2[0],\n    setFieldPermissionData = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    fieldPermissionVisible = _useState4[0],\n    setFieldPermissionVisible = _useState4[1];\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state;\n  var _useState5 = (0, _react.useState)(),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    bosApi = _useState6[0],\n    onBosApi = _useState6[1];\n  var listenShowFieldPermission = function listenShowFieldPermission(data) {\n    setFieldPermissionData(data);\n    setFieldPermissionVisible(true);\n  };\n  (0, _react.useEffect)(function () {\n    if (bosApi) {\n      var removeListenMount = bosApi.addEventListener(_constants.DESIGNER_MOUNT, updateDesignerMountFlag);\n      // 获取用户所选的表单ID\n      var removeFormIdListener = bosApi.addEventListener(_constants.NOCODE_FLOW_DATA, setFlowData);\n      var removeListenFieldPermission = bosApi.addEventListener('showFieldPermission', listenShowFieldPermission);\n      var updateFlowTitle = function updateFlowTitle(title) {\n        bosApi === null || bosApi === void 0 || bosApi.publishEvent(_constants.NOCODE_DESIGNER_UPDATE, {\n          type: _constants.UPDATE_FLOWNAME,\n          payload: title\n        });\n      };\n      _eventEmit.default.on(_constants.UPDATE_FLOWNAME, updateFlowTitle);\n      var addNewRecordListener = function addNewRecordListener(data) {\n        bosApi === null || bosApi === void 0 || bosApi.publishEvent(_constants.ADD_NEW_RECORD, data);\n      };\n      _eventEmit.default.on(_constants.ADD_NEW_RECORD, addNewRecordListener);\n      var removeRefreshRefListListener = bosApi.addEventListener(_constants.REFBILL_REFRESH_REF_LIST, function (data) {\n        return listenerActionCallback(_constants.REFBILL_REFRESH_REF_LIST, data);\n      });\n      var removeSendMessageToPlatformListener = bosApi.addEventListener(_constants.SEND_MESSAGE_TO_PLATFORM, function (data) {\n        return listenerActionCallback(data.type, data);\n      });\n      var removeUpdateFlowNameListener = bosApi.addEventListener(_constants.UPDATE_NOCODE_FLOW_NAME, function (title) {\n        return setFlowTitle(title);\n      });\n      return function () {\n        removeListenMount === null || removeListenMount === void 0 || removeListenMount();\n        removeFormIdListener === null || removeFormIdListener === void 0 || removeFormIdListener();\n        removeListenFieldPermission === null || removeListenFieldPermission === void 0 || removeListenFieldPermission();\n        removeRefreshRefListListener === null || removeRefreshRefListListener === void 0 || removeRefreshRefListListener();\n        removeSendMessageToPlatformListener === null || removeSendMessageToPlatformListener === void 0 || removeSendMessageToPlatformListener();\n        removeUpdateFlowNameListener === null || removeUpdateFlowNameListener === void 0 || removeUpdateFlowNameListener();\n        _eventEmit.default.off(_constants.UPDATE_FLOWNAME, updateFlowTitle);\n        _eventEmit.default.off(_constants.ADD_NEW_RECORD, addNewRecordListener);\n      };\n    }\n  }, [bosApi, listenerActionCallback]);\n\n  // 点击保存\n  (0, _react.useEffect)(function () {\n    // console.log('save', save)\n    save && (bosApi === null || bosApi === void 0 ? void 0 : bosApi.publishEvent(_constants.NOCODE_FLOW_SAVE, save));\n  }, [save]);\n  (0, _react.useEffect)(function () {\n    if (bosApi) {\n      bosApi.publishEvent(_constants.NOCODE_DESIGNER_SAVE_API, {\n        saveStatus: saveStatus\n      }, true);\n    }\n  }, [saveStatus, bosApi]);\n\n  // 点击保存\n  (0, _react.useEffect)(function () {\n    // console.log('save', save)\n    (state === null || state === void 0 ? void 0 : state.compareTypes) && (bosApi === null || bosApi === void 0 ? void 0 : bosApi.publishEvent(_constants.SET_COMPARE_TYPES, state === null || state === void 0 ? void 0 : state.compareTypes, true));\n  }, [state === null || state === void 0 ? void 0 : state.compareTypes, bosApi]);\n  var updateDesignerMountFlag = (0, _react.useCallback)(function () {\n    setIsMountDesigner === null || setIsMountDesigner === void 0 || setIsMountDesigner(true);\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)((0, _defineProperty2.default)({}, _index.default.hidden, !isMountDesigner))\n  }, /*#__PURE__*/_react.default.createElement(NocodeEntryMemo, (0, _extends2.default)({\n    onRef: onBosApi,\n    options: {\n      rootConfig: state.rootConfig\n    }\n  }, context))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)([_index.default.loading_wrapper, (0, _defineProperty2.default)({}, _index.default.hidden, isMountDesigner)])\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Spin, {\n    name: \"Spin\"\n  })), /*#__PURE__*/_react.default.createElement(_fieldPermission.default, (0, _extends2.default)({\n    title: \"\\u5F55\\u5165\\u5185\\u5BB9\",\n    visible: fieldPermissionVisible,\n    setVisible: setFieldPermissionVisible,\n    needSystemField: false\n    // formId={formId}\n    // appId={appId}\n    // value={permission}\n    // fieldPermissionMenu={[{ key: 'default', label: '编辑' }, { key: 'hidden', label: '隐藏' }, { key: 'readonly', label: '只读' }, { key: 'mustInput', label: '必填' }]}\n    // onChange={handleChangeFieldPermission}\n  }, fieldPermissionData)));\n});\nFlowDesigner.displayName = 'FlowDesigner';\nvar _default = exports[\"default\"] = FlowDesigner;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/flow/designer/index.tsx\n");

/***/ })

}]);