"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([[7372],{

/***/ "./src/web/component/common/FlowItem.less":
/*!************************************************!*\
  !*** ./src/web/component/common/FlowItem.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\"] = ({\"success\":\"_9-Aion8h_success\",\"dot\":\"ZVMmASGJ_dot\",\"title\":\"KaeMBu2m_title\",\"state\":\"Z-CvAj4c_state\",\"info\":\"GvzLXVo7_info\",\"flag\":\"TBFeJiu+_flag\",\"error\":\"KKDLfIhb_error\",\"warning\":\"jnwNwgma_warning\",\"going\":\"_5Fdia0us_going\",\"reject\":\"SFYzHxjl_reject\",\"item\":\"QO80lXi8_item\",\"usr\":\"veevljfh_usr\",\"editor\":\"XVWU8JJb_editor\",\"icon\":\"_3ioEKe+f_icon\",\"Auditor\":\"F7A5dz-7_Auditor\",\"handler\":\"vsH04h6N_handler\",\"des\":\"hGNfFjvv_des\",\"node\":\"Nh28D1ks_node\",\"launch\":\"OQk0QbW4_launch\",\"finish\":\"KvvJwUIM_finish\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vRmxvd0l0ZW0ubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2NvbW1vbi9GbG93SXRlbS5sZXNzP2ZjOTAiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJzdWNjZXNzXCI6XCJfOS1BaW9uOGhfc3VjY2Vzc1wiLFwiZG90XCI6XCJaVk1tQVNHSl9kb3RcIixcInRpdGxlXCI6XCJLYWVNQnUybV90aXRsZVwiLFwic3RhdGVcIjpcIlotQ3ZBajRjX3N0YXRlXCIsXCJpbmZvXCI6XCJHdnpMWFZvN19pbmZvXCIsXCJmbGFnXCI6XCJUQkZlSml1K19mbGFnXCIsXCJlcnJvclwiOlwiS0tETGZJaGJfZXJyb3JcIixcIndhcm5pbmdcIjpcImpud053Z21hX3dhcm5pbmdcIixcImdvaW5nXCI6XCJfNUZkaWEwdXNfZ29pbmdcIixcInJlamVjdFwiOlwiU0ZZekh4amxfcmVqZWN0XCIsXCJpdGVtXCI6XCJRTzgwbFhpOF9pdGVtXCIsXCJ1c3JcIjpcInZlZXZsamZoX3VzclwiLFwiZWRpdG9yXCI6XCJYVldVOEpKYl9lZGl0b3JcIixcImljb25cIjpcIl8zaW9FS2UrZl9pY29uXCIsXCJBdWRpdG9yXCI6XCJGN0E1ZHotN19BdWRpdG9yXCIsXCJoYW5kbGVyXCI6XCJ2c0gwNGg2Tl9oYW5kbGVyXCIsXCJkZXNcIjpcImhHTmZGanZ2X2Rlc1wiLFwibm9kZVwiOlwiTmgyOEQxa3Nfbm9kZVwiLFwibGF1bmNoXCI6XCJPUWswUWJXNF9sYXVuY2hcIixcImZpbmlzaFwiOlwiS3Z2SndVSU1fZmluaXNoXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/FlowItem.less\n");

/***/ }),

/***/ "./src/web/layout/apps/FlowListLayout.less":
/*!*************************************************!*\
  !*** ./src/web/layout/apps/FlowListLayout.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\"] = ({\"apply\":\"RlXB8RId_apply\",\"mb\":\"SpCsExEE_mb\",\"nav\":\"DAh5OVTO_nav\",\"title\":\"Iu79-u2b_title\",\"node_name\":\"FbedzwWE_node_name\",\"err\":\"uaIt0zoF_err\",\"btns\":\"qQqKgw2a_btns\",\"list\":\"g5DwPN+R_list\",\"node\":\"dkH4oigt_node\",\"confirm\":\"Orrq7fn8_confirm\",\"body\":\"GHdNFZHJ_body\",\"footer\":\"HHqqCqoD_footer\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hcHBzL0Zsb3dMaXN0TGF5b3V0Lmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9hcHBzL0Zsb3dMaXN0TGF5b3V0Lmxlc3M/MTA5ZCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImFwcGx5XCI6XCJSbFhCOFJJZF9hcHBseVwiLFwibWJcIjpcIlNwQ3NFeEVFX21iXCIsXCJuYXZcIjpcIkRBaDVPVlRPX25hdlwiLFwidGl0bGVcIjpcIkl1NzktdTJiX3RpdGxlXCIsXCJub2RlX25hbWVcIjpcIkZiZWR6d1dFX25vZGVfbmFtZVwiLFwiZXJyXCI6XCJ1YUl0MHpvRl9lcnJcIixcImJ0bnNcIjpcInFRcUtndzJhX2J0bnNcIixcImxpc3RcIjpcImc1RHdQTitSX2xpc3RcIixcIm5vZGVcIjpcImRrSDRvaWd0X25vZGVcIixcImNvbmZpcm1cIjpcIk9ycnE3Zm44X2NvbmZpcm1cIixcImJvZHlcIjpcIkdIZE5GWkhKX2JvZHlcIixcImZvb3RlclwiOlwiSEhxcUNxb0RfZm9vdGVyXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/apps/FlowListLayout.less\n");

/***/ }),

/***/ "./src/web/layout/apps/FormDetailFooterLayout.less":
/*!*********************************************************!*\
  !*** ./src/web/layout/apps/FormDetailFooterLayout.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\"] = ({\"form_footer\":\"L+3T9ft1_form_footer\",\"form_footer_main\":\"WRUJUeKF_form_footer_main\",\"form_footer_main_tips\":\"-anEDyDY_form_footer_main_tips\",\"btns\":\"xiAX4YhX_btns\",\"bizbtns\":\"Btg5+xYQ_bizbtns\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hcHBzL0Zvcm1EZXRhaWxGb290ZXJMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2FwcHMvRm9ybURldGFpbEZvb3RlckxheW91dC5sZXNzPzAzMzYiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJmb3JtX2Zvb3RlclwiOlwiTCszVDlmdDFfZm9ybV9mb290ZXJcIixcImZvcm1fZm9vdGVyX21haW5cIjpcIldSVUpVZUtGX2Zvcm1fZm9vdGVyX21haW5cIixcImZvcm1fZm9vdGVyX21haW5fdGlwc1wiOlwiLWFuRUR5RFlfZm9ybV9mb290ZXJfbWFpbl90aXBzXCIsXCJidG5zXCI6XCJ4aUFYNFloWF9idG5zXCIsXCJiaXpidG5zXCI6XCJCdGc1K3hZUV9iaXpidG5zXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/apps/FormDetailFooterLayout.less\n");

/***/ }),

/***/ "./src/constants/flowConstants.ts":
/*!****************************************!*\
  !*** ./src/constants/flowConstants.ts ***!
  \****************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\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\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.FLOW_ACTION_TYPES = void 0;\nvar FLOW_ACTION_TYPES = exports.FLOW_ACTION_TYPES = {\n  consent: 'Consent',\n  // 同意\n  terminate: 'Terminate',\n  // 否决\n  reject: 'Reject',\n  // 驳回\n  cancel: 'TaskCancel' // 驳回\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29uc3RhbnRzL2Zsb3dDb25zdGFudHMudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9jb25zdGFudHMvZmxvd0NvbnN0YW50cy50cz81NzZjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBGTE9XX0FDVElPTl9UWVBFUyA9IHtcbiAgY29uc2VudDogJ0NvbnNlbnQnLCAvLyDlkIzmhI9cbiAgdGVybWluYXRlOiAnVGVybWluYXRlJywgLy8g5ZCm5YazXG4gIHJlamVjdDogJ1JlamVjdCcsIC8vIOmps+WbnlxuICBjYW5jZWw6ICdUYXNrQ2FuY2VsJyAvLyDpqbPlm55cbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/constants/flowConstants.ts\n");

/***/ }),

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

eval("\n\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 _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 _storageTools = __webpack_require__(/*! ../utils/storageTools */ \"./src/utils/storageTools.ts\");\nvar useFormBackground = function useFormBackground(targetFormId) {\n  var _useState = (0, _react.useState)(''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    bgc = _useState2[0],\n    setBgc = _useState2[1]; // 背景颜色\n  // 从storage内获取背景颜色\n  var getBgc = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var _storage$items;\n    var storage, _ref2, bc, customStyle, color;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          if (targetFormId) {\n            _context.next = 2;\n            break;\n          }\n          return _context.abrupt(\"return\");\n        case 2:\n          _context.next = 4;\n          return (0, _storageTools.getStorage)('bos-core-' + targetFormId);\n        case 4:\n          _context.t0 = _context.sent;\n          if (_context.t0) {\n            _context.next = 7;\n            break;\n          }\n          _context.t0 = {};\n        case 7:\n          storage = _context.t0;\n          _ref2 = (storage === null || storage === void 0 || (_storage$items = storage.items) === null || _storage$items === void 0 ? void 0 : _storage$items[0]) || {}, bc = _ref2.bc, customStyle = _ref2.customStyle;\n          color = customStyle ? bc : '#F8FAFC';\n          setBgc(color);\n        case 11:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  })), [targetFormId]);\n\n  // 监听storage变化,重新设置背景颜色\n  (0, _react.useLayoutEffect)(function () {\n    window.addEventListener('storage', function () {\n      return getBgc();\n    }, false);\n    return function () {\n      window.removeEventListener('storage', function () {});\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    getBgc();\n  }, [targetFormId]);\n  return bgc;\n};\nvar _default = exports[\"default\"] = useFormBackground;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlRm9ybUJhY2tncm91bmQudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFHQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvaG9va3MvdXNlRm9ybUJhY2tncm91bmQudHM/MTIwMiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VTdGF0ZSwgdXNlTGF5b3V0RWZmZWN0LCB1c2VDYWxsYmFjaywgdXNlRWZmZWN0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBnZXRTdG9yYWdlIH0gZnJvbSAnLi4vdXRpbHMvc3RvcmFnZVRvb2xzJ1xuXG5jb25zdCB1c2VGb3JtQmFja2dyb3VuZCA9ICh0YXJnZXRGb3JtSWQ6c3RyaW5nfHVuZGVmaW5lZCkgPT4ge1xuICBjb25zdCBbYmdjLCBzZXRCZ2NdID0gdXNlU3RhdGUoJycpIC8vIOiDjOaZr+minOiJslxuICAvLyDku45zdG9yYWdl5YaF6I635Y+W6IOM5pmv6aKc6ImyXG4gIGNvbnN0IGdldEJnYyA9IHVzZUNhbGxiYWNrKGFzeW5jICgpID0+IHtcbiAgICBpZiAoIXRhcmdldEZvcm1JZCkgcmV0dXJuXG4gICAgY29uc3Qgc3RvcmFnZSA9IGF3YWl0IGdldFN0b3JhZ2UoJ2Jvcy1jb3JlLScgKyB0YXJnZXRGb3JtSWQpIHx8IHt9XG4gICAgY29uc3QgeyBiYywgY3VzdG9tU3R5bGUgfSA9IHN0b3JhZ2U/Lml0ZW1zPy5bMF0gfHwge31cbiAgICBjb25zdCBjb2xvciA9IGN1c3RvbVN0eWxlID8gYmMgOiAnI0Y4RkFGQydcbiAgICBzZXRCZ2MoY29sb3IpXG4gIH0sIFt0YXJnZXRGb3JtSWRdKVxuXG4gIC8vIOebkeWQrHN0b3JhZ2Xlj5jljJYs6YeN5paw6K6+572u6IOM5pmv6aKc6ImyXG4gIHVzZUxheW91dEVmZmVjdCgoKSA9PiB7XG4gICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ3N0b3JhZ2UnLCAoKSA9PiBnZXRCZ2MoKSwgZmFsc2UpXG4gICAgcmV0dXJuICgpID0+IHtcbiAgICAgIHdpbmRvdy5yZW1vdmVFdmVudExpc3RlbmVyKCdzdG9yYWdlJywgKCkgPT4ge30pXG4gICAgfVxuICB9LCBbXSlcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGdldEJnYygpXG4gIH0sIFt0YXJnZXRGb3JtSWRdKVxuXG4gIHJldHVybiBiZ2Ncbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlRm9ybUJhY2tncm91bmRcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/hooks/useFormBackground.ts\n");

/***/ }),

/***/ "./src/web/component/common/FlowItem.tsx":
/*!***********************************************!*\
  !*** ./src/web/component/common/FlowItem.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.UserInputItem = exports.LaunchItem = exports.FlowItem = exports.FinishItem = exports.AuditItem = 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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.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 _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _FlowItem = _interopRequireDefault(__webpack_require__(/*! ./FlowItem.less */ \"./src/web/component/common/FlowItem.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// 节点状态标签颜色\nvar CLASS_LIST = {\n  willApproval: _FlowItem.default.warning,\n  // 待审批\n  willHandled: _FlowItem.default.warning,\n  // (\"待录入\")\n  approve: _FlowItem.default.success,\n  // 同意\n  handled: _FlowItem.default.success,\n  // (\"已录入\")\n  done: _FlowItem.default.success,\n  // (\"已完成\")\n  launch: _FlowItem.default.success,\n  // (\"发起审批\")\n  pass: _FlowItem.default.success,\n  // (\"已通过\")\n  terminate: _FlowItem.default.reject,\n  // 否决\n  withdraw: _FlowItem.default.reject,\n  // (\"已撤回\")\n  reject: _FlowItem.default.error,\n  // 驳回\n  // dismissed: styles.error, // (\"驳回\")\n  exception_terminate: _FlowItem.default.error // (\"异常终止\")\n  // exception: styles.error // (\"异常终止\")\n};\n// 流程图标 ['reduce', 'right-bold', 'close-bold']\nvar FLOW_ICON = {\n  // exception: 'close-bold',\n  // dismissed: 'close-bold',\n  withdraw: 'yichexiao',\n  // (\"已撤回\")\n  exception_terminate: 'cuowushibai',\n  // (\"异常终止\")\n  terminate: 'foujue2',\n  // 否决\n  approve: 'tongyi',\n  handled: 'tongyi',\n  launch: 'tongyi',\n  pass: 'tongyi',\n  done: 'tongyi'\n};\n\n// 结束节点\nvar FinishItem = exports.FinishItem = (0, _react.memo)(function (_ref) {\n  var item = _ref.item;\n  var css = (0, _classnames.default)(_FlowItem.default.item, _FlowItem.default.finish, CLASS_LIST[item.handleState] || CLASS_LIST.handled);\n  var icon = FLOW_ICON[item.handleState] || 'right-bold';\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: css\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowItem.default.dot, 'kd-nc-flow-dot')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: icon\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.info\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.title,\n    style: {\n      marginBottom: 0\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", null, item.nodeName)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.state\n  }, item.handleStateDesc), /*#__PURE__*/_react.default.createElement(\"div\", null, item.message))));\n});\n\n// 流程发起节点\nvar LaunchItem = exports.LaunchItem = (0, _react.memo)(function (_ref2) {\n  var _item$approverInfos;\n  var item = _ref2.item;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowItem.default.item, _FlowItem.default.launch)\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowItem.default.dot, 'kd-nc-flow-dot')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.info\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.editor\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.icon,\n    style: {\n      background: item.bg\n    }\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Avatar, {\n    src: item.approverInfos[0].handlerAvatar\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.handler\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.usr\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, (item === null || item === void 0 || (_item$approverInfos = item.approverInfos) === null || _item$approverInfos === void 0 || (_item$approverInfos = _item$approverInfos[0]) === null || _item$approverInfos === void 0 ? void 0 : _item$approverInfos.handlerName) || ''), /*#__PURE__*/_react.default.createElement(\"span\", null, item.handleTime ? (0, _utils.dateFormat)('MM-dd hh:mm', item.handleTime) : '')), /*#__PURE__*/_react.default.createElement(\"div\", null, (item === null || item === void 0 ? void 0 : item.handleStateDesc) || '')))));\n});\n\n// 审批节点\nvar AuditItem = exports.AuditItem = (0, _react.memo)(function (_ref3) {\n  var _context5, _approverInfos$, _approverInfos$2;\n  var item = _ref3.item,\n    className = _ref3.className,\n    curNode = _ref3.curNode,\n    config = _ref3.config;\n  var taskId = item.taskId,\n    procInstId = item.procInstId,\n    handleTime = item.handleTime,\n    handleState = item.handleState,\n    nodeName = item.nodeName,\n    handleStateDesc = item.handleStateDesc,\n    approverInfos = item.approverInfos,\n    message = item.message;\n  var appId = config.appId,\n    targetFormId = config.targetFormId,\n    pkId = config.pkId;\n  // 状态样式\n  var css = (0, _classnames.default)(_FlowItem.default.item, className, CLASS_LIST[handleState] || CLASS_LIST.willHandled);\n  // 状态图标\n  var icon = FLOW_ICON[handleState];\n  // 是否显示审核按钮，节点taskId和焦点taskId一至且为等审批状态\n  var showAudit = (0, _react.useMemo)(function () {\n    return (item === null || item === void 0 ? void 0 : item.canHandle) && taskId !== curNode.taskId && handleState === 'willApproval';\n  }, [handleState, curNode, item, taskId]);\n  // 点击审核\n  var handleClick = (0, _react.useCallback)(function () {\n    var _context, _context2, _context3, _context4;\n    (0, _utils.openner)((0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = (0, _concat.default)(_context4 = \"/\".concat(appId, \"/detail/\")).call(_context4, targetFormId, \"/\")).call(_context3, pkId, \"/view/flow/\")).call(_context2, procInstId, \"/task/\")).call(_context, taskId));\n  }, [appId, targetFormId, pkId, taskId, procInstId]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: css\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowItem.default.dot, 'kd-nc-flow-dot')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.info\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.title\n  }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", null, nodeName), showAudit && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    major: true,\n    \"data-nc-action\": (0, _concat.default)(_context5 = \"\".concat(appId, \"|\")).call(_context5, targetFormId, \"|fu_fr_audit\"),\n    onClick: handleClick,\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'daishenpi'\n    }\n  }, \"\\u5BA1\\u6279\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.state\n  }, handleStateDesc)), handleState === 'willApproval' ?\n  /*#__PURE__*/\n  // 待审批\n  _react.default.createElement(\"div\", {\n    className: _FlowItem.default.Auditor\n  }, (0, _map.default)(approverInfos).call(approverInfos, function (usr) {\n    return /*#__PURE__*/_react.default.createElement(\"p\", {\n      key: usr.handlerId\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.Avatar, {\n      src: usr.handlerAvatar\n    }), /*#__PURE__*/_react.default.createElement(\"span\", {\n      title: (usr === null || usr === void 0 ? void 0 : usr.handlerName) || ''\n    }, (usr === null || usr === void 0 ? void 0 : usr.handlerName) || ''));\n  })) :\n  /*#__PURE__*/\n  // 已审批\n  _react.default.createElement(\"div\", {\n    className: _FlowItem.default.editor\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.icon\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Avatar, {\n    src: (approverInfos === null || approverInfos === void 0 || (_approverInfos$ = approverInfos[0]) === null || _approverInfos$ === void 0 ? void 0 : _approverInfos$.handlerAvatar) || ''\n  }), icon && /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    className: _FlowItem.default.flag,\n    prefix: \"nocodeplatformicon\",\n    type: icon\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.handler\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.usr\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, (approverInfos === null || approverInfos === void 0 || (_approverInfos$2 = approverInfos[0]) === null || _approverInfos$2 === void 0 ? void 0 : _approverInfos$2.handlerName) || ''), /*#__PURE__*/_react.default.createElement(\"span\", null, handleTime ? (0, _utils.dateFormat)('MM-dd hh:mm', handleTime) : '')), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.des\n  }, message || '')))));\n});\n\n/**\n * 录入节点\n */\nvar UserInputItem = exports.UserInputItem = (0, _react.memo)(function (_ref4) {\n  var _context13, _context14, _item$approverInfos2, _item$approverInfos3;\n  var item = _ref4.item,\n    className = _ref4.className,\n    config = _ref4.config;\n  var procInstId = item.procInstId,\n    nodeBusinessKey = item.nodeBusinessKey,\n    nodeId = item.nodeId,\n    nodeType = item.nodeType,\n    handleState = item.handleState,\n    canInputOrView = item.canInputOrView,\n    approverInfos = item.approverInfos;\n  var _ref5 = config || {},\n    appId = _ref5.appId,\n    targetFormId = _ref5.targetFormId,\n    pkId = _ref5.pkId,\n    userTaskActivityId = _ref5.userTaskActivityId,\n    userTaskBusinessKey = _ref5.userTaskBusinessKey;\n  var css = (0, _classnames.default)(_FlowItem.default.item, className, CLASS_LIST[item.handleState] || CLASS_LIST.willHandled);\n  var icon = FLOW_ICON[item.handleState];\n\n  // 当前处理人ID，以,分开\n  var userTaskCurrentUserId = (0, _react.useMemo)(function () {\n    return (0, _map.default)(approverInfos).call(approverInfos, function (item) {\n      return item.handlerId;\n    }).join();\n  }, []);\n  // 点击查看/录入，打开URL\n  var handleClick = (0, _react.useCallback)(function (key) {\n    var _context6, _context7, _context8, _context9, _context10, _context11, _context12;\n    var url = (0, _concat.default)(_context6 = (0, _concat.default)(_context7 = (0, _concat.default)(_context8 = (0, _concat.default)(_context9 = (0, _concat.default)(_context10 = (0, _concat.default)(_context11 = (0, _concat.default)(_context12 = \"/\".concat(appId, \"/detail/\")).call(_context12, targetFormId, \"/\")).call(_context11, pkId, \"/\")).call(_context10, key, \"/flow/\")).call(_context9, procInstId, \"/\")).call(_context8, nodeId, \"/\")).call(_context7, nodeBusinessKey, \"/\")).call(_context6, userTaskCurrentUserId);\n    (0, _utils.openner)(url);\n  }, [userTaskCurrentUserId, appId, targetFormId, pkId, procInstId, nodeId, nodeBusinessKey, userTaskBusinessKey]);\n\n  // 只有录入节点，以及当前并非在录入表单界面，才显示查看/录入两个按钮\n  var showEditBtn = (0, _react.useMemo)(function () {\n    return !userTaskActivityId && !userTaskBusinessKey && canInputOrView;\n  }, [userTaskActivityId, canInputOrView, userTaskBusinessKey]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: css\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowItem.default.dot, 'kd-nc-flow-dot')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.info\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.title\n  }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", null, item.nodeName), showEditBtn ? handleState === 'handled' ? /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    major: true,\n    \"data-nc-action\": (0, _concat.default)(_context13 = \"\".concat(appId, \"|\")).call(_context13, targetFormId, \"|fu_fr_check\"),\n    onClick: function onClick() {\n      return handleClick('view');\n    },\n    icon: {\n      prefix: 'ncicon',\n      type: 'yanjing'\n    }\n  }, \"\\u67E5\\u770B\") : /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    major: true,\n    \"data-nc-action\": (0, _concat.default)(_context14 = \"\".concat(appId, \"|\")).call(_context14, targetFormId, \"|fu_fr_fill\"),\n    onClick: function onClick() {\n      return handleClick('edit');\n    },\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'bianji'\n    }\n  }, \"\\u5F55\\u5165\") : null), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.state\n  }, item.handleStateDesc)), item.handleState !== 'willHandled' && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.editor\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.icon,\n    style: {\n      background: item.bg\n    }\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Avatar, {\n    src: (_item$approverInfos2 = item.approverInfos) === null || _item$approverInfos2 === void 0 ? void 0 : _item$approverInfos2[0].handlerAvatar\n  }), icon && /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    className: _FlowItem.default.flag,\n    prefix: \"nocodeplatformicon\",\n    type: icon\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.handler\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.usr\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, (item === null || item === void 0 || (_item$approverInfos3 = item.approverInfos) === null || _item$approverInfos3 === void 0 || (_item$approverInfos3 = _item$approverInfos3[0]) === null || _item$approverInfos3 === void 0 ? void 0 : _item$approverInfos3.handlerName) || ''), /*#__PURE__*/_react.default.createElement(\"span\", null, item.handleTime ? (0, _utils.dateFormat)('MM-dd hh:mm', item.handleTime) : '')), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.des\n  }, (item === null || item === void 0 ? void 0 : item.message) || '')))));\n});\n/**\n * 常规节点\n */\nvar FlowItem = exports.FlowItem = (0, _react.memo)(function (_ref6) {\n  var item = _ref6.item,\n    className = _ref6.className;\n  var css = (0, _classnames.default)(_FlowItem.default.item, className, CLASS_LIST[item.handleState] || CLASS_LIST.willHandled);\n  var icon = FLOW_ICON[item.handleState];\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: css\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowItem.default.dot, 'kd-nc-flow-dot')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.info\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.title\n  }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", null, item.nodeName)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.state\n  }, item.handleStateDesc)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.editor\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.icon,\n    style: {\n      background: item.bg\n    }\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: item.icon\n  }), icon && /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    className: _FlowItem.default.flag,\n    prefix: \"nocodeplatformicon\",\n    type: icon\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.handler\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.usr\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, item.handlerName || item.nodeTypeName), /*#__PURE__*/_react.default.createElement(\"span\", null, item.handleTime ? (0, _utils.dateFormat)('MM-dd hh:mm', item.handleTime) : '')), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowItem.default.des\n  }, (item === null || item === void 0 ? void 0 : item.message) || '')))));\n});\nUserInputItem.displayName = 'UserInputItem';\nAuditItem.displayName = 'AuditItem';\nFlowItem.displayName = 'FlowItem';\nFinishItem.displayName = 'FinishItem';\nLaunchItem.displayName = 'LaunchItem';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/FlowItem.tsx\n");

/***/ }),

/***/ "./src/web/component/common/NocodeEntry.tsx":
/*!**************************************************!*\
  !*** ./src/web/component/common/NocodeEntry.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\");\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 _PopBillSkeleton = __webpack_require__(/*! @/web/component/skeleton/PopBillSkeleton */ \"./src/web/component/skeleton/PopBillSkeleton.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 BillMain = (0, _react.lazy)(function () {\n  return __webpack_require__.e(/*! import() */ 7168).then(__webpack_require__.t.bind(__webpack_require__, /*! bos_core/Main */ \"webpack/container/remote/bos_core/Main\", 23));\n});\nvar NocodeEntry = (0, _react.memo)(function (_ref) {\n  var onRef = _ref.onRef,\n    config = _ref.config,\n    options = _ref.options,\n    _ref$device = _ref.device,\n    device = _ref$device === void 0 ? 'pc' : _ref$device;\n  return /*#__PURE__*/_react.default.createElement(_react.Suspense, {\n    fallback: /*#__PURE__*/_react.default.createElement(_WebUI.Skeleton, {\n      options: _PopBillSkeleton.PopBillSkeleton\n    })\n  }, /*#__PURE__*/_react.default.createElement(BillMain, {\n    device: device,\n    onRef: onRef,\n    config: config,\n    options: options\n  }));\n});\nNocodeEntry.displayName = 'NocodeEntry';\nvar _default = exports[\"default\"] = NocodeEntry;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vTm9jb2RlRW50cnkudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBUUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFHQTtBQUNBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vTm9jb2RlRW50cnkudHN4PzIzZDYiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IEZDLCBtZW1vLCBsYXp5LCBTdXNwZW5zZSwgZm9yd2FyZFJlZiB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgU2tlbGV0b24gfSBmcm9tICdub2NvZGVfY29tcG9uZW50L1dlYlVJJ1xuaW1wb3J0IHsgUG9wQmlsbFNrZWxldG9uIH0gZnJvbSAnQC93ZWIvY29tcG9uZW50L3NrZWxldG9uL1BvcEJpbGxTa2VsZXRvbidcblxuY29uc3QgQmlsbE1haW4gPSBsYXp5KCgpID0+IGltcG9ydCgnYm9zX2NvcmUvTWFpbicpKVxuXG5pbnRlcmZhY2UgSU5vY29kZUVudHJ5IHtcbiAgb25SZWY/OmFueSxcbiAgY29uZmlnOmFueSxcbiAgb3B0aW9ucz86YW55LFxuICBkZXZpY2U/OiAnbW9iaWxlJ3wncGMnfHVuZGVmaW5lZFxufVxuY29uc3QgTm9jb2RlRW50cnk6RkM8SU5vY29kZUVudHJ5PiA9IG1lbW8oKHsgb25SZWYsIGNvbmZpZywgb3B0aW9ucywgZGV2aWNlID0gJ3BjJyB9KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPFN1c3BlbnNlIGZhbGxiYWNrPXs8U2tlbGV0b24gb3B0aW9ucz17UG9wQmlsbFNrZWxldG9ufSAvPn0+XG4gICAgICA8QmlsbE1haW4gZGV2aWNlPXtkZXZpY2V9IG9uUmVmPXtvblJlZn0gY29uZmlnPXtjb25maWd9IG9wdGlvbnM9e29wdGlvbnN9IC8+XG4gICAgPC9TdXNwZW5zZT5cbiAgKVxufSlcbk5vY29kZUVudHJ5LmRpc3BsYXlOYW1lID0gJ05vY29kZUVudHJ5J1xuZXhwb3J0IGRlZmF1bHQgTm9jb2RlRW50cnlcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/NocodeEntry.tsx\n");

/***/ }),

/***/ "./src/web/component/skeleton/PopBillSkeleton.ts":
/*!*******************************************************!*\
  !*** ./src/web/component/skeleton/PopBillSkeleton.ts ***!
  \*******************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\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\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.PopBillSkeleton = void 0;\n/*\n * @Description: 应用设置页-基础设置-骨架屏\n * @Author: john_xin_gu\n * @Date: 2023-07-26 19:12:56\n * @LastEditTime: 2023-09-07 14:58:45\n * @Last Modified by: john_xin_gu\n */\n\nvar PopBillSkeleton = exports.PopBillSkeleton = [{\n  width: '100%',\n  height: '100%',\n  flexDirection: 'column',\n  background: '#f2f9ff',\n  child: [{\n    width: 'auto',\n    height: '100%',\n    margin: '12px 16px 12px 16px',\n    type: 'CONCENT',\n    child: [{\n      width: 'auto',\n      height: 'auto',\n      margin: '4px 12px 12px 12px',\n      flexDirection: 'column',\n      child: [{\n        width: '200px',\n        height: '24px',\n        margin: '0px',\n        type: 'INPUT'\n      }, {\n        width: 'auto',\n        height: 'auto',\n        margin: '32px 0px 0px 0px',\n        child: [{\n          width: '50%',\n          height: 'auto',\n          margin: '0px',\n          flexDirection: 'column',\n          child: [{\n            width: '28px',\n            height: '16px',\n            margin: '0px 0px 8px 0px',\n            type: 'INPUT'\n          }, {\n            width: '100%',\n            height: '36px',\n            margin: '0px',\n            type: 'INPUT'\n          }, {\n            width: '56px',\n            height: '16px',\n            margin: '24px 0px 0px 0px',\n            type: 'INPUT'\n          }, {\n            width: 'auto',\n            height: '20px',\n            margin: '16px 0px 28px 0px',\n            child: [{\n              width: '80px',\n              height: '20px',\n              margin: '0px',\n              type: 'INPUT'\n            }, {\n              width: '56px',\n              height: '20px',\n              margin: '0px 0px 0px 24px',\n              type: 'INPUT'\n            }]\n          }, {\n            width: '96px',\n            height: '16px',\n            margin: '0px',\n            type: 'INPUT'\n          }, {\n            width: '100%',\n            height: '36px',\n            margin: '8px 0px 0px 0px',\n            type: 'INPUT'\n          }]\n        }, {\n          width: '50%',\n          height: 'auto',\n          margin: '0px 0px 0px 24px',\n          flexDirection: 'column',\n          child: [{\n            width: '56px',\n            height: '16px',\n            margin: '0px 0px 8px 0px',\n            type: 'INPUT'\n          }, {\n            width: '100%',\n            height: '36px',\n            margin: '0px',\n            type: 'INPUT'\n          }, {\n            width: '80px',\n            height: '16px',\n            margin: '24px 0px 0px 0px',\n            type: 'INPUT'\n          }, {\n            width: 'auto',\n            height: '20px',\n            margin: '16px 0px 28px 0px',\n            child: [{\n              width: '56px',\n              height: '20px',\n              margin: '0px',\n              type: 'INPUT'\n            }, {\n              width: '160px',\n              height: '20px',\n              margin: '0px 0px 0px 24px',\n              type: 'INPUT'\n            }]\n          }, {\n            width: '120px',\n            height: '16px',\n            margin: '0px',\n            type: 'INPUT'\n          }, {\n            width: 'auto',\n            height: '20px',\n            margin: '16px 0px 0px 0px',\n            child: [{\n              width: '80px',\n              height: '20px',\n              margin: '0px',\n              type: 'INPUT'\n            }, {\n              width: '56px',\n              height: '20px',\n              margin: '0px 0px 0px 24px',\n              type: 'INPUT'\n            }]\n          }]\n        }]\n      }, {\n        width: '56px',\n        height: '16px',\n        margin: '28px 0px 0px 0px',\n        type: 'INPUT'\n      }, {\n        width: '100%',\n        height: '76px',\n        margin: '8px 0px 28px 0px',\n        type: 'INPUT'\n      }, {\n        width: '56px',\n        height: '16px',\n        margin: '0px',\n        type: 'INPUT'\n      }, {\n        width: 'auto',\n        height: '28px',\n        margin: '8px 0px 8px 0px',\n        child: [{\n          width: '92px',\n          height: '28px',\n          margin: '0px',\n          type: 'INPUT'\n        }, {\n          width: '72px',\n          height: '28px',\n          type: 'INPUT'\n        }]\n      }, {\n        width: '100%',\n        height: '176px',\n        margin: '0px',\n        type: 'INPUT'\n      }, {\n        width: '100%',\n        height: '28px',\n        margin: '8px 0px 0px 0px',\n        justifyContent: 'flex-end',\n        child: [{\n          width: '280px',\n          height: '28px',\n          margin: '0px',\n          type: 'INPUT'\n        }]\n      }]\n    }]\n  }]\n}];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/skeleton/PopBillSkeleton.ts\n");

/***/ }),

/***/ "./src/web/layout/apps/BizButtonList.tsx":
/*!***********************************************!*\
  !*** ./src/web/layout/apps/BizButtonList.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 _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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.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 _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 _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.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 = _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-05-19 15:43:11\n * @LastEditTime: 2023-11-06 14:56:27\n * @Last Modified by: jianhang_he\n */\nvar TooltipWrapper = function TooltipWrapper(_ref) {\n  var tips = _ref.tips,\n    placement = _ref.placement,\n    children = _ref.children;\n  if (tips) {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Tooltip, {\n      tip: tips,\n      placement: placement\n    }, children);\n  }\n  return children;\n};\nvar MAX_WIDTH = 270;\nvar BizButtonList = (0, _react.memo)(function (_ref2) {\n  var pkId = _ref2.pkId,\n    formId = _ref2.formId,\n    appId = _ref2.appId,\n    bosApi = _ref2.bosApi,\n    className = _ref2.className;\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    originBizButtonList = _useState2[0],\n    setOriginBizButtonList = _useState2[1];\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    bizButtonList = _useState4[0],\n    setBizButtonList = _useState4[1];\n  var bizBtnsRef = (0, _react.useRef)(null);\n  var hasMoreBtnRef = (0, _react.useRef)(false);\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    isLoading = _useState6[0],\n    setIsLoading = _useState6[1];\n  (0, _react.useEffect)(function () {\n    if (!bosApi) return;\n\n    // 剩余宽度 总按钮宽度不超过270px\n    var residueWidth = MAX_WIDTH;\n    setBizButtonList((0, _map.default)(originBizButtonList).call(originBizButtonList, function (item, index) {\n      var curLangText = bosApi === null || bosApi === void 0 ? void 0 : bosApi.getControlText(item.text);\n      var curLangTextLen = curLangText.length;\n      console.log('setBizButtonList', residueWidth, curLangText);\n      if (residueWidth >= 0) {\n        if (curLangTextLen > 4) {\n          residueWidth = residueWidth - (90 + (curLangTextLen - 4) * 14);\n        } else {\n          residueWidth = residueWidth - 90;\n        }\n      }\n\n      // 如果最后一个直接就是少于两个字符的时候，那么需要直接显示对应的操作按钮\n      if (index === originBizButtonList.length - 1 && curLangTextLen <= 2 && residueWidth < 0) {\n        residueWidth += 90;\n      }\n      if (residueWidth < 0) {\n        hasMoreBtnRef.current = true;\n      }\n      return _objectSpread(_objectSpread({}, item), {}, {\n        text: curLangText,\n        isMoreBtn: residueWidth === 0 && index < originBizButtonList.length - 1 || residueWidth < 0\n      });\n    }));\n  }, [originBizButtonList, bosApi]);\n  (0, _react.useEffect)(function () {\n    if (!pkId) {\n      console.warn('pkid不存在');\n      return;\n    }\n    (0, _apps.getBizButtonList)({\n      appId: appId,\n      formId: formId,\n      pkId: pkId\n    }).then(function (res) {\n      var rows = res.rows;\n      if (Array.isArray(rows)) {\n        setOriginBizButtonList(rows);\n      } else {\n        console.error('业务按钮返回不是一个数组');\n      }\n    }).catch(function (error) {\n      console.error('获取业务按钮信息失败', error);\n    });\n  }, [pkId]);\n  var invokeHandleAction = (0, _react.useCallback)(function (key) {\n    bosApi.invokeHandle('click', key, [], [], saveStatus);\n  }, [bosApi]);\n  var saveStatus = function saveStatus() {\n    setIsLoading(false);\n  };\n\n  /**\n   * 点击业务按钮\n   */\n  var handleClickBizButton = (0, _react.useCallback)(function (item) {\n    var secondConfirm = item.SecondConfirm,\n      opk = item.opk,\n      text = item.text;\n    setIsLoading(true);\n    if (secondConfirm) {\n      // 需要二次确认\n      (0, _utils.showConfirmModal)({\n        title: \"\\u786E\\u5B9A\\u5BF9\\u8BB0\\u5F55\\u6267\\u884C\".concat(text, \"\\u64CD\\u4F5C\\u5417\\uFF1F\"),\n        actions: [{\n          text: '取消',\n          key: 'cancel'\n        }, {\n          text: '确定',\n          key: 'confirm'\n        }],\n        onAction: function onAction(key) {\n          if (key === 'confirm') {\n            invokeHandleAction(opk);\n          } else {\n            setIsLoading(false);\n          }\n        },\n        type: 'prompt'\n      });\n    } else {\n      invokeHandleAction(opk);\n    }\n  }, [invokeHandleAction]);\n\n  //\n  var handleClickMoreBtnItem = function handleClickMoreBtnItem(key) {\n    var curClickItem = (0, _find.default)(bizButtonList).call(bizButtonList, function (item) {\n      return item.opk === key;\n    });\n    if (curClickItem) {\n      handleClickBizButton(curClickItem);\n    }\n  };\n  var moreBtnmenu = /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, {\n    onClick: handleClickMoreBtnItem\n  }, (0, _map.default)(bizButtonList).call(bizButtonList, function (item, index) {\n    if (!item.isMoreBtn) return null;\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n      disabled: isLoading,\n      key: item.opk\n    }, /*#__PURE__*/_react.default.createElement(TooltipWrapper, {\n      tips: item === null || item === void 0 ? void 0 : item.HelpTips,\n      placement: \"right\"\n    }, item.text));\n  }));\n  if (!(bizButtonList !== null && bizButtonList !== void 0 && bizButtonList.length)) return null;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    ref: bizBtnsRef,\n    className: className\n  }, (0, _map.default)(bizButtonList).call(bizButtonList, function (item, index) {\n    if (item.isMoreBtn) return null;\n    return /*#__PURE__*/_react.default.createElement(TooltipWrapper, {\n      key: item.opk,\n      tips: item === null || item === void 0 ? void 0 : item.HelpTips\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: isLoading,\n      onClick: function onClick() {\n        handleClickBizButton(item);\n      }\n    }, item.text));\n  }), hasMoreBtnRef.current && /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n    menu: moreBtnmenu,\n    trigger: \"click\"\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, null, \"\\u66F4\\u591A\")));\n});\nBizButtonList.displayName = 'BizButtonList';\nvar _default = exports[\"default\"] = BizButtonList;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/apps/BizButtonList.tsx\n");

/***/ }),

/***/ "./src/web/layout/apps/FlowListLayout.tsx":
/*!************************************************!*\
  !*** ./src/web/layout/apps/FlowListLayout.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 _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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.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 _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.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 _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _map2 = _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 _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _FlowItem = __webpack_require__(/*! @/web/component/common/FlowItem */ \"./src/web/component/common/FlowItem.tsx\");\nvar _FlowListLayout = _interopRequireDefault(__webpack_require__(/*! ./FlowListLayout.less */ \"./src/web/layout/apps/FlowListLayout.less\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _flowConstants = __webpack_require__(/*! @/constants/flowConstants */ \"./src/constants/flowConstants.ts\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.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; }\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// 节点组件\nvar ITEM_LIST = {\n  NoCodeWfNodeUserInput: _FlowItem.UserInputItem,\n  // 录入节点\n  NoCodeWfNodeEnd: _FlowItem.FinishItem,\n  // 结束节点\n  NoCodeWfNodeStart: _FlowItem.LaunchItem,\n  // (\"发起流程节点\")\n  NoCodeWfNodeAudit: _FlowItem.AuditItem // (\"审批节点\")\n};\n\n/**\n * 流程列表\n * @description procDefId 流程模型ID\n * @description taskId 任务ID\n * @description procInstId/flowId 流程实例/版本ID\n */\n\nvar FlowList = (0, _react.memo)(function (_ref) {\n  var _dataMap$current, _context3, _curNode$decisionOpti;\n  var taskId = _ref.taskId,\n    data = _ref.data,\n    _ref$config = _ref.config,\n    config = _ref$config === void 0 ? {} : _ref$config,\n    onSubmit = _ref.onSubmit,\n    setFormLock = _ref.setFormLock;\n  var procInstId = config.procInstId,\n    appId = config.appId,\n    targetFormId = config.targetFormId;\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    options = _useState2[0],\n    setOptions = _useState2[1]; // 流程\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    dismissOptions = _useState4[0],\n    setDismissOptions = _useState4[1]; // 流程\n  var _useState5 = (0, _react.useState)([]),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    dismiss = _useState6[0],\n    setDismiss = _useState6[1]; // 驳回ID\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    flowId = _useState8[0],\n    setFlowId = _useState8[1]; // 当前流程\n  var _useState9 = (0, _react.useState)(''),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    message = _useState10[0],\n    setMessage = _useState10[1]; // 审批意见\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    modalVisible = _useState12[0],\n    setModalVisible = _useState12[1]; // 审批意见\n  var dataMap = (0, _react.useRef)(new _map.default());\n  var _useState13 = (0, _react.useState)(false),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    errVisible = _useState14[0],\n    setErrVisible = _useState14[1];\n\n  // isHandler 我审的，同意否决， isInitiator 我发的，可撤回, canWithdraw:可撤回 canHandle:可审批, canDisallow:可驳回\n  var _ref2 = ((_dataMap$current = dataMap.current) === null || _dataMap$current === void 0 ? void 0 : _dataMap$current.get(flowId)) || {},\n    _ref2$approvalInfo = _ref2.approvalInfo,\n    approvalInfo = _ref2$approvalInfo === void 0 ? [] : _ref2$approvalInfo,\n    canWithdraw = _ref2.canWithdraw;\n\n  // 给flowId设置初始值\n  (0, _react.useEffect)(function () {\n    procInstId && setFlowId(procInstId);\n  }, [procInstId]);\n\n  // 查找当前节点，用于显示审批标题\n  var curNode = (0, _react.useMemo)(function () {\n    var node = taskId && approvalInfo ? (0, _find.default)(approvalInfo).call(approvalInfo, function (item) {\n      return item.taskId === taskId;\n    }) : {};\n    return node || {};\n  }, [taskId, approvalInfo]);\n\n  // 审批意见校验\n  var validateMsg = (0, _react.useCallback)(function (message) {\n    if (!(0, _trim.default)(message).call(message)) {\n      setErrVisible(true);\n      return false;\n    }\n    setErrVisible(false);\n    return true;\n  }, [setErrVisible]);\n\n  // 审批意见\n  var handleChange = (0, _react.useCallback)(function (v) {\n    // validateMsg(v)\n    setMessage(v);\n  }, [setMessage, validateMsg]);\n\n  /**\n   * 审批：同意/否决\n   * */\n  var handleClick = (0, _react.useCallback)(function (action) {\n    var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n    var ignoreValidate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n    if (!ignoreValidate) {\n      var _dataMap$current2;\n      var _dataMap$current$get = (_dataMap$current2 = dataMap.current) === null || _dataMap$current2 === void 0 ? void 0 : _dataMap$current2.get(flowId),\n        notifyMsgMustInput = _dataMap$current$get.notifyMsgMustInput;\n      // 审批/否决校验\n      if (notifyMsgMustInput !== null && notifyMsgMustInput !== void 0 && (0, _includes.default)(notifyMsgMustInput).call(notifyMsgMustInput, action.toLowerCase()) && !validateMsg(message)) return;\n    }\n\n    // const param = { action, taskId, message }\n    (0, _apps.taskApply)(_objectSpread({\n      action: action,\n      taskId: curNode === null || curNode === void 0 ? void 0 : curNode.taskId,\n      message: message\n    }, params)).then(function () {\n      (0, _utils.showNotice)('success', '审批意见提交成功');\n      onSubmit === null || onSubmit === void 0 || onSubmit();\n    }).catch(function (err) {\n      return (0, _utils.showNotice)('error', \"\\u5BA1\\u6279\\u610F\\u89C1\\u63D0\\u4EA4\\u5BA1\\u6279\\u5931\\u8D25\\uFF0C\".concat(err.message));\n    });\n  }, [flowId, message, curNode, onSubmit, validateMsg]);\n\n  /**\n   * 点击决策项\n   */\n  var handleClickDecisionOptionBtn = function handleClickDecisionOptionBtn(data) {\n    var _ref3 = data || {},\n      number = _ref3.number,\n      name = _ref3.name,\n      auditMessageMustInput = _ref3.auditMessageMustInput;\n\n    // 决策项必填校验\n    if (auditMessageMustInput && !validateMsg(message)) return;\n    if (!number) {\n      var _context;\n      console.error((0, _concat.default)(_context = \"\".concat(name, \"\\u51B3\\u7B56\\u9879number\\u4E3A\\u7A7A\\uFF0C\")).call(_context, number));\n      return;\n    }\n    handleClick(number, {}, true);\n  };\n\n  // 驳回\n  var handleDismiss = (0, _react.useCallback)(function () {\n    // console.log('handleDismiss')\n    handleClick(_flowConstants.FLOW_ACTION_TYPES.reject, {\n      nextNodeId: dismiss\n    });\n    setModalVisible(false);\n  }, [dismiss, handleClick]);\n\n  // 驳回弹窗\n  var handleConfirm = (0, _react.useCallback)(function () {\n    // const data = dataMap.current.get(flowId)\n    var disAllowNodeList = curNode.disAllowNodeList;\n    var options = (0, _map2.default)(disAllowNodeList).call(disAllowNodeList, function (item) {\n      return {\n        label: item.name,\n        value: item.nodeId\n      };\n    });\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setDismiss(options[0].value);\n      setDismissOptions(options);\n      setModalVisible(true);\n    });\n  }, [curNode]);\n\n  // 撤回\n  var handleCancel = (0, _react.useCallback)(function () {\n    // const { businessKey, entityNumber } = dataMap.current?.get(flowId)\n    // const param = { businessKey, entityNumber }\n    (0, _apps.taskCancel)({\n      procInstId: flowId\n    }).then(function () {\n      (0, _utils.showNotice)('success', '撤回提交成功');\n      onSubmit === null || onSubmit === void 0 || onSubmit();\n    }).catch(function (err) {\n      return (0, _utils.showNotice)('error', \"\".concat(err.message));\n    });\n  }, [flowId, onSubmit]);\n\n  /**\n   * 跳转到流程只读态\n   */\n  var goFlowPage = (0, _react.useCallback)(function () {\n    var _dataMap$current3, _context2;\n    if (window.isIE) {\n      var title = '该功能暂不支持IE浏览器，\\n请尝试使用其他浏览器（推荐Chrome）。';\n      (0, _utils.showConfirm)(title, '', 4);\n      return;\n    }\n    var _ref4 = ((_dataMap$current3 = dataMap.current) === null || _dataMap$current3 === void 0 ? void 0 : _dataMap$current3.get(flowId)) || {},\n      procInstId = _ref4.procInstId,\n      pkId = _ref4.businessKey;\n    // http://172.19.110.42:8080/ierp/nocode/h/应用ID/flow/{流程模型id}/{流程定义}/cosmic\n    // 流程模型未返回，暂用流程实例代替\n    (0, _utils.openner)((0, _concat.default)(_context2 = \"/flow/\".concat(procInstId, \"/\")).call(_context2, pkId));\n  }, [flowId]);\n  (0, _react.useEffect)(function () {\n    var _datas$;\n    var datas = [];\n    data === null || data === void 0 || data.forEach(function (item) {\n      dataMap.current.set(item.procInstId, item);\n      datas.push({\n        label: item.processName || '流程',\n        value: item.procInstId\n      });\n    });\n    var id = procInstId || ((_datas$ = datas[0]) === null || _datas$ === void 0 ? void 0 : _datas$.value);\n    // 打开详情时没有流程ID, 指令第一条为当前流程\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      var _dataMap$current$get2;\n      if (!procInstId) setFlowId(id);\n      setFormLock === null || setFormLock === void 0 || setFormLock(((_dataMap$current$get2 = dataMap.current.get(id)) === null || _dataMap$current$get2 === void 0 ? void 0 : _dataMap$current$get2.lockStatus) === '1');\n      setOptions(datas);\n    });\n  }, [data, procInstId, setFormLock]);\n\n  // 是否显示审批能，必须可以审批、当前节点为待审批状态、有当前节点\n  var showAuditBtn = (0, _react.useMemo)(function () {\n    return (curNode === null || curNode === void 0 ? void 0 : curNode.canHandle) && (curNode === null || curNode === void 0 ? void 0 : curNode.taskId) && (curNode === null || curNode === void 0 ? void 0 : curNode.handleState) === 'willApproval';\n  }, [curNode]);\n\n  // 切换流程\n  var handleFlowChange = (0, _react.useCallback)(function (v) {\n    setFlowId(v);\n    // 埋点\n    (0, _PageEventService.publishClickUserEvent)({\n      appId: appId,\n      formId: targetFormId,\n      action: 'fu_fr_open'\n    });\n  }, [setFlowId]);\n\n  // console.log('FlowList', data, dataMap.current, flowList)\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FlowListLayout.default.apply, 'kd-nc-flow-list')\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.nav\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.title\n  }, \"\\u6D41\\u7A0B\\u8BB0\\u5F55\"), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    major: true,\n    \"data-nc-action\": (0, _concat.default)(_context3 = \"\".concat(appId, \"|\")).call(_context3, targetFormId, \"|fu_fr_fc\"),\n    type: \"text\",\n    onClick: goFlowPage,\n    disabled: !options.length\n  }, \"\\u6D41\\u7A0B\\u56FE\"))), options.length > 1 && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.mb\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Select, {\n    value: flowId,\n    onChange: handleFlowChange,\n    options: options\n  })), showAuditBtn && /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.node_name\n  }, (curNode === null || curNode === void 0 ? void 0 : curNode.nodeName) || ''), /*#__PURE__*/_react.default.createElement(_WebUI.Textarea, {\n    value: message,\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u5BA1\\u6279\\u610F\\u89C1\",\n    onChange: handleChange,\n    maxLength: 245,\n    showCount: true,\n    autoSize: {\n      minRows: 3,\n      maxRows: 3\n    }\n  }), errVisible && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.err\n  }, \"\\u5BA1\\u6279\\u610F\\u89C1\\u4E3A\\u5FC5\\u586B\\u9879\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.btns\n  }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showAuditBtn && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_curNode$decisionOpti = curNode.decisionOptions) === null || _curNode$decisionOpti === void 0 ? void 0 : (0, _map2.default)(_curNode$decisionOpti).call(_curNode$decisionOpti, function (item, index) {\n    var number = item.number,\n      name = item.name;\n    return /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      key: number,\n      size: \"small\",\n      type: index === 0 && 'primary',\n      onClick: function onClick() {\n        return handleClickDecisionOptionBtn(item);\n      }\n    }, name);\n  }), curNode.canDisallow && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    size: \"small\",\n    onClick: handleConfirm\n  }, \"\\u9A73\\u56DE\")), canWithdraw && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    size: \"small\",\n    onClick: handleCancel\n  }, \"\\u64A4\\u56DE\"))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowListLayout.default.list\n  }, (0, _map2.default)(approvalInfo).call(approvalInfo, function (item, index) {\n    var Element = ITEM_LIST[item.nodeType] || _FlowItem.FlowItem;\n    return /*#__PURE__*/_react.default.createElement(Element, {\n      key: item.id,\n      curNode: curNode\n      // canHandle={canHandle}\n      ,\n      config: config,\n      className: index === approvalInfo.length - 2 ? _FlowListLayout.default.node : '',\n      item: item\n    });\n  }))), /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    className: _FlowListLayout.default.confirm,\n    title: \"\\u9A73\\u56DE\",\n    showline: true,\n    visible: modalVisible,\n    onCancel: function onCancel() {\n      return setModalVisible(false);\n    },\n    destroyOnClose: true,\n    height: 208,\n    width: 480,\n    body: /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _FlowListLayout.default.body\n    }, \"\\u9A73\\u56DE\\u81F3\", /*#__PURE__*/_react.default.createElement(_WebUI.Select, {\n      placeholder: \"\\u8BF7\\u9009\\u62E9\",\n      value: dismiss,\n      onChange: setDismiss,\n      options: dismissOptions\n    })),\n    footer: /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _FlowListLayout.default.footer\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      size: \"small\",\n      onClick: function onClick() {\n        return setModalVisible(false);\n      }\n    }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      type: \"primary\",\n      onClick: handleDismiss,\n      size: \"small\"\n    }, \"\\u786E\\u8BA4\"))\n  }));\n});\nFlowList.displayName = 'FlowListLayout';\nvar _default = exports[\"default\"] = FlowList;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/apps/FlowListLayout.tsx\n");

/***/ }),

/***/ "./src/web/layout/apps/FormDetailFooterLayout.tsx":
/*!********************************************************!*\
  !*** ./src/web/layout/apps/FormDetailFooterLayout.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 _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.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 _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _BizButtonList = _interopRequireDefault(__webpack_require__(/*! ./BizButtonList */ \"./src/web/layout/apps/BizButtonList.tsx\"));\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _FormDetailFooterLayout = _interopRequireDefault(__webpack_require__(/*! ./FormDetailFooterLayout.less */ \"./src/web/layout/apps/FormDetailFooterLayout.less\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.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; }\n// import { closeWindow } from '@/utils/closeWindow'\n\nvar INIT_BTN_LOADING_STATE = {\n  save: false,\n  // 保存\n  saveAndNew: false,\n  // 复制并新增\n  copy: false,\n  // 复制\n  delete: false,\n  // 删除\n  edit: false // 编辑\n};\nvar FormDetailFooterLayout = (0, _react.memo)(function (_ref) {\n  var status = _ref.status,\n    _ref$disabled = _ref.disabled,\n    disabled = _ref$disabled === void 0 ? false : _ref$disabled,\n    disabledCb = _ref.disabledCb,\n    bosApi = _ref.bosApi,\n    authList = _ref.authList,\n    config = _ref.config,\n    origin = _ref.origin,\n    isSharePage = _ref.isSharePage,\n    _ref$inputAuthFixed = _ref.inputAuthFixed,\n    inputAuthFixed = _ref$inputAuthFixed === void 0 ? false : _ref$inputAuthFixed,\n    formLock = _ref.formLock,\n    newPkId = _ref.newPkId,\n    extraButton = _ref.extraButton,\n    setStatus = _ref.setStatus,\n    copyCallback = _ref.copyCallback,\n    delCallback = _ref.delCallback,\n    saveCallback = _ref.saveCallback;\n  var _ref2 = authList || {},\n    deleteAuth = _ref2.deleteAuth,\n    inputAuth = _ref2.inputAuth,\n    editAuth = _ref2.editAuth,\n    viewAuth = _ref2.viewAuth;\n  var _ref3 = config || {},\n    appId = _ref3.appId,\n    pkId = _ref3.pkId,\n    targetFormId = _ref3.targetFormId,\n    procInstId = _ref3.procInstId;\n  var checkboxRef = (0, _react.useRef)(null);\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_BTN_LOADING_STATE),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    btnLoadingState = _useReducer2[0],\n    dispatchBtnLoadingState = _useReducer2[1];\n  // const bosLoading = useRef(false)\n\n  var createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context, _context2;\n    return (0, _concat.default)(_context = (0, _concat.default)(_context2 = \"\".concat(appId, \"|\")).call(_context2, targetFormId, \"|\")).call(_context, actionName);\n  }, [appId, targetFormId]);\n\n  // 检查是否成功\n  var checkActions = (0, _react.useCallback)(function (res) {\n    var _actions$ShowNotifica, _actions$setFormStatu;\n    var actions = (0, _utils.getBosActions)(res.data) || {};\n    return {\n      isSuccess: (actions === null || actions === void 0 || (_actions$ShowNotifica = actions.ShowNotificationMsg) === null || _actions$ShowNotifica === void 0 ? void 0 : _actions$ShowNotifica[0].type) === 0,\n      formStatus: actions === null || actions === void 0 || (_actions$setFormStatu = actions.setFormStatus) === null || _actions$setFormStatu === void 0 ? void 0 : _actions$setFormStatu[0],\n      actions: actions\n    };\n  }, []);\n\n  /**\n   * 点击保存\n   */\n  var saveEvn = (0, _react.useCallback)(function () {\n    if (disabled) return disabledCb === null || disabledCb === void 0 ? void 0 : disabledCb();\n    if (status === 'view') return;\n    // 按钮loading开始\n    dispatchBtnLoadingState({\n      save: true\n    });\n    bosApi.invokeHandle('click', 'btnsave', [], [], function (res, pageId) {\n      if (res.errorCode === '1001') {\n        (0, _utils.showNotice)('warnning', '表单加载中，请稍候');\n        dispatchBtnLoadingState({\n          save: false\n        });\n        return;\n      }\n      var _checkActions = checkActions(res),\n        isSuccess = _checkActions.isSuccess,\n        actions = _checkActions.actions;\n      if (isSuccess) {\n        saveCallback(actions, false, pageId);\n      }\n      dispatchBtnLoadingState({\n        save: false\n      });\n    });\n  }, [status, bosApi, saveCallback, disabled, disabledCb, btnLoadingState.save]);\n\n  /**\n  * 点击保存并新增\n  */\n  var saveAndNewEvn = (0, _react.useCallback)(function () {\n    if (disabled) return disabledCb === null || disabledCb === void 0 ? void 0 : disabledCb();\n    if (status !== 'addNew') return;\n    var action = checkboxRef.current.checked ? 'btnsaveandcopy' : 'btnsaveandnew';\n    dispatchBtnLoadingState({\n      saveAndNew: true\n    });\n    bosApi.invokeHandle('click', action, [], [], function (res, pageId) {\n      dispatchBtnLoadingState({\n        saveAndNew: false\n      });\n      if (res.errorCode === '1001') {\n        (0, _utils.showNotice)('warnning', '表单加载中，请稍候');\n        return;\n      }\n      var _checkActions2 = checkActions(res),\n        isSuccess = _checkActions2.isSuccess,\n        actions = _checkActions2.actions;\n      if (isSuccess) {\n        saveCallback(actions, true, pageId);\n      }\n    });\n    // setStatus('addNew')\n  }, [status, bosApi, disabled, disabledCb, btnLoadingState.saveAndNew]);\n\n  // 删除\n  var deleteHandle = (0, _react.useCallback)(function () {\n    if (disabled) return disabledCb === null || disabledCb === void 0 ? void 0 : disabledCb();\n    (0, _utils.showDeleteConfirmModal)({\n      title: '',\n      message: '确定删除该记录吗？',\n      detail: '',\n      onOk: function onOk() {\n        (0, _PageEventService.publishUserEvent)({\n          appId: appId,\n          formId: targetFormId,\n          action: 'au_fo_del_comf'\n        });\n        dispatchBtnLoadingState({\n          delete: true\n        });\n        bosApi.invokeHandle('click', 'btndel', [], [], function (res) {\n          dispatchBtnLoadingState({\n            delete: false\n          });\n          if (res.errorCode === '1001') {\n            (0, _utils.showNotice)('warnning', '表单加载中，请稍候');\n            return;\n          }\n          if (checkActions(res).isSuccess) {\n            // closeWindow()\n            delCallback === null || delCallback === void 0 || delCallback();\n          }\n        });\n      },\n      onCancel: function onCancel() {}\n    });\n  }, [appId, targetFormId, bosApi, disabled, disabledCb, btnLoadingState.delete]);\n\n  // 编辑\n  var editHandle = (0, _react.useCallback)(function () {\n    if (disabled) return disabledCb === null || disabledCb === void 0 ? void 0 : disabledCb();\n    if (status !== 'view') return;\n    dispatchBtnLoadingState({\n      edit: true\n    });\n    bosApi.invokeHandle('click', 'btnedit', [], [], function (res) {\n      dispatchBtnLoadingState({\n        edit: false\n      });\n      if (res.errorCode === '1001') {\n        (0, _utils.showNotice)('warnning', '表单加载中，请稍候');\n        return false;\n      }\n      // const actions:any = getBosActions(res.data)\n      // if (checkActions(res)?.formStatus === 1) { // 根据后端的返回状态调整\n      //   setStatus('edit')\n      // }\n    });\n  }, [status, bosApi, disabled, disabledCb, btnLoadingState.edit]);\n\n  // 复制\n  var copyHandle = (0, _react.useCallback)(function () {\n    if (disabled) return disabledCb === null || disabledCb === void 0 ? void 0 : disabledCb();\n    // editHandle()\n    if (status !== 'view') return;\n    dispatchBtnLoadingState({\n      copy: true\n    });\n    bosApi.invokeHandle('click', 'btncopy', [], [], function (res, pageId) {\n      var _checkActions3;\n      dispatchBtnLoadingState({\n        copy: false\n      });\n      if (res.errorCode === '1001') {\n        (0, _utils.showNotice)('warnning', '表单加载中，请稍候');\n        return;\n      }\n      // bosApi.setFormStatus('addNew', pageId)\n      if (((_checkActions3 = checkActions(res)) === null || _checkActions3 === void 0 ? void 0 : _checkActions3.formStatus) === 0) {\n        // 根据后端的返回状态调整\n        // setStatus('addNew') // 后端\n        copyCallback === null || copyCallback === void 0 || copyCallback();\n      }\n    });\n    // setApprovalData([])\n  }, [status, checkActions, copyCallback, bosApi, disabled, disabledCb, btnLoadingState.copy]);\n  var copyEnvHandle = (0, _useDebounce.default)(copyHandle);\n  var editEnvHandle = (0, _useDebounce.default)(editHandle);\n  var deleteEnvHandle = (0, _useDebounce.default)(deleteHandle);\n  var saveAndNewEnvHandle = (0, _useDebounce.default)(saveAndNewEvn);\n  var saveEnvHandle = (0, _useDebounce.default)(saveEvn);\n\n  // 详情状态 view\n  var viewButton = (0, _react.useMemo)(function () {\n    // 在苍穹界面内 或 没权限 不显示按钮\n    if (origin === 'cosmic' || !viewAuth) return null;\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extraButton && extraButton(), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _FormDetailFooterLayout.default.btns\n    }, /*#__PURE__*/_react.default.createElement(_BizButtonList.default, {\n      className: _FormDetailFooterLayout.default.bizbtns,\n      bosApi: bosApi,\n      appId: appId,\n      formId: targetFormId,\n      pkId: newPkId\n    }), !formLock && deleteAuth && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: !bosApi,\n      \"data-nc-action\": createUiActionDataStr('fu_fo_del'),\n      loading: btnLoadingState.delete,\n      onClick: deleteEnvHandle\n    }, \"\\u5220\\u9664\"), !inputAuthFixed && inputAuth && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: !bosApi,\n      \"data-nc-action\": createUiActionDataStr('fu_fo_copy'),\n      loading: btnLoadingState.copy,\n      onClick: copyEnvHandle\n    }, \"\\u590D\\u5236\"), !formLock && editAuth && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: !bosApi,\n      \"data-nc-action\": createUiActionDataStr('fu_fo_edit'),\n      type: \"primary\",\n      loading: btnLoadingState.edit,\n      onClick: editEnvHandle\n    }, \"\\u7F16\\u8F91\")));\n  }, [viewAuth, deleteAuth, inputAuth, editAuth, appId, targetFormId, formLock, newPkId, bosApi, deleteEnvHandle, copyEnvHandle, editEnvHandle, createUiActionDataStr, btnLoadingState.copy, btnLoadingState.delete, btnLoadingState.edit]);\n\n  // 编辑状态 edit\n  var editButton = (0, _react.useMemo)(function () {\n    if (!editAuth) return null;\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", null), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _FormDetailFooterLayout.default.btns\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: !bosApi,\n      type: \"primary\",\n      loading: btnLoadingState.save,\n      onClick: saveEnvHandle\n    }, \"\\u4FDD\\u5B58\")));\n  }, [saveEnvHandle, bosApi, editAuth, btnLoadingState.save]);\n\n  // 新增状态 addNew\n  var addNewButton = (0, _react.useMemo)(function () {\n    var _context3;\n    if (!inputAuth) return null;\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_WebUI.Checkbox, {\n      ref: checkboxRef,\n      \"data-nc-action\": (0, _concat.default)(_context3 = \"\".concat(appId, \"|\")).call(_context3, targetFormId, \"|fu_fo_kc\"),\n      className: _FormDetailFooterLayout.default.footer_main_tips\n    }, \"\\u7EE7\\u7EED\\u5F55\\u5165\\u65F6\\uFF0C\\u4FDD\\u7559\\u672C\\u6B21\\u63D0\\u4EA4\\u5185\\u5BB9\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _FormDetailFooterLayout.default.btns\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: !bosApi,\n      loading: btnLoadingState.saveAndNew,\n      onClick: saveAndNewEnvHandle\n    }, \"\\u63D0\\u4EA4\\u5E76\\u65B0\\u589E\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      disabled: !bosApi,\n      type: \"primary\",\n      loading: btnLoadingState.save,\n      onClick: saveEnvHandle\n    }, \"\\u63D0\\u4EA4\")));\n  }, [saveAndNewEnvHandle, saveEnvHandle, bosApi, inputAuth, appId, targetFormId, btnLoadingState.saveAndNew, btnLoadingState.save]);\n\n  // 免登分享出去，所展示出的按钮\n  var footerNodeByShared = (0, _react.useMemo)(function () {\n    // 录入：提交；编辑：不能分享，不会进到这里来；查看：无按钮\n    if (status === 'addNew') {\n      return /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _FormDetailFooterLayout.default.btns\n      }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n        type: \"primary\",\n        disabled: !bosApi,\n        loading: btnLoadingState.save,\n        onClick: saveEnvHandle\n      }, \"\\u63D0\\u4EA4\"));\n    } else if (status === 'edit') {\n      return editButton;\n    } else if (status === 'view') {\n      return viewButton;\n    }\n    return null;\n  }, [status, saveEnvHandle, bosApi, btnLoadingState.save, editButton, viewButton]);\n\n  // 非分享状态按钮\n  var footerNodeByLogined = (0, _react.useMemo)(function () {\n    // if (procInstId) return null // 流程状态不显示按钮\n    var buttons = {\n      view: viewButton,\n      edit: editButton,\n      addNew: addNewButton\n    };\n    return buttons[status || 'addNew'];\n  }, [status, viewButton, editButton, addNewButton]);\n  console.log('FormDetailFooterLayout', status);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FormDetailFooterLayout.default.form_footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FormDetailFooterLayout.default.form_footer_main\n  }, !isSharePage ? footerNodeByLogined : footerNodeByShared));\n});\nFormDetailFooterLayout.displayName = 'FormDetailFooterLayout';\nvar _default = exports[\"default\"] = FormDetailFooterLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/apps/FormDetailFooterLayout.tsx\n");

/***/ })

}]);