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

/***/ "./src/web/component/common/Modal.less":
/*!*********************************************!*\
  !*** ./src/web/component/common/Modal.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\"] = ({\"modal\":\"f8WfEosd_modal\",\"modal_footer\":\"JiAfxMHU_modal_footer\",\"modal_footer_action_btn\":\"FwTepbwW_modal_footer_action_btn\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vTW9kYWwubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2NvbW1vbi9Nb2RhbC5sZXNzPzBmNDUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJtb2RhbFwiOlwiZjhXZkVvc2RfbW9kYWxcIixcIm1vZGFsX2Zvb3RlclwiOlwiSmlBZnhNSFVfbW9kYWxfZm9vdGVyXCIsXCJtb2RhbF9mb290ZXJfYWN0aW9uX2J0blwiOlwiRndUZXBid1dfbW9kYWxfZm9vdGVyX2FjdGlvbl9idG5cIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/Modal.less\n");

/***/ }),

/***/ "./src/web/component/permission/OrgAuthorize.less":
/*!********************************************************!*\
  !*** ./src/web/component/permission/OrgAuthorize.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\"] = ({\"org-authorize\":\"J6bVHvb3_org-authorize\",\"tag\":\"dw3GBV+b_tag\",\"tag-name\":\"_4XEKNogc_tag-name\",\"is-disabled\":\"qdcI8wtn_is-disabled\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9wZXJtaXNzaW9uL09yZ0F1dGhvcml6ZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvcGVybWlzc2lvbi9PcmdBdXRob3JpemUubGVzcz8xZjY4Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wib3JnLWF1dGhvcml6ZVwiOlwiSjZiVkh2YjNfb3JnLWF1dGhvcml6ZVwiLFwidGFnXCI6XCJkdzNHQlYrYl90YWdcIixcInRhZy1uYW1lXCI6XCJfNFhFS05vZ2NfdGFnLW5hbWVcIixcImlzLWRpc2FibGVkXCI6XCJxZGNJOHd0bl9pcy1kaXNhYmxlZFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/permission/OrgAuthorize.less\n");

/***/ }),

/***/ "./src/web/component/permission/OrgSelectModal.less":
/*!**********************************************************!*\
  !*** ./src/web/component/permission/OrgSelectModal.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\"] = ({\"orgselectmodal\":\"ZL3WO-hk_orgselectmodal\",\"orgselectmodal_content\":\"hBbKWn6U_orgselectmodal_content\",\"orgselectmodal_content_table\":\"NVMLjB9o_orgselectmodal_content_table\",\"orgselectmodal_content_table_search\":\"XGAGmE64_orgselectmodal_content_table_search\",\"orgselectmodal_content_table_pagination\":\"TjSbOL7x_orgselectmodal_content_table_pagination\",\"orgselectmodal_content_main\":\"OGGVcqsd_orgselectmodal_content_main\",\"selected\":\"Ax+b5arS_selected\",\"selected_nav\":\"_12TRQ0zb_selected_nav\",\"nav_title\":\"vw2bD5An_nav_title\",\"selected_list\":\"o3Qx9NXw_selected_list\",\"selected_item\":\"_32kPu4lj_selected_item\",\"item_info\":\"KxyxG+r1_item_info\",\"item_title\":\"Y0cv0Jaw_item_title\",\"item_btn\":\"_04hGZK2L_item_btn\",\"orgselectmodal_content_org\":\"I4Az9g3B_orgselectmodal_content_org\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9wZXJtaXNzaW9uL09yZ1NlbGVjdE1vZGFsLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9wZXJtaXNzaW9uL09yZ1NlbGVjdE1vZGFsLmxlc3M/Y2JmZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbm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b250ZW50X29yZ1wiOlwiSTRBejlnM0Jfb3Jnc2VsZWN0bW9kYWxfY29udGVudF9vcmdcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/permission/OrgSelectModal.less\n");

/***/ }),

/***/ "./src/web/component/permission/PersonAuthorize.less":
/*!***********************************************************!*\
  !*** ./src/web/component/permission/PersonAuthorize.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\"] = ({\"person-authorize\":\"FyP8co7a_person-authorize\",\"tag\":\"yL0YFjlX_tag\",\"tag-name\":\"TYyu6fu9_tag-name\",\"is-disabled\":\"_0iSTplxR_is-disabled\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9wZXJtaXNzaW9uL1BlcnNvbkF1dGhvcml6ZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvcGVybWlzc2lvbi9QZXJzb25BdXRob3JpemUubGVzcz84MjJhIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wicGVyc29uLWF1dGhvcml6ZVwiOlwiRnlQOGNvN2FfcGVyc29uLWF1dGhvcml6ZVwiLFwidGFnXCI6XCJ5TDBZRmpsWF90YWdcIixcInRhZy1uYW1lXCI6XCJUWXl1NmZ1OV90YWctbmFtZVwiLFwiaXMtZGlzYWJsZWRcIjpcIl8waVNUcGx4Ul9pcy1kaXNhYmxlZFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/permission/PersonAuthorize.less\n");

/***/ }),

/***/ "./src/web/component/permission/PersonSelectModal.less":
/*!*************************************************************!*\
  !*** ./src/web/component/permission/PersonSelectModal.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\"] = ({\"personselectmodal\":\"HGlNqBFr_personselectmodal\",\"personselectmodal_content\":\"sXPPz0hX_personselectmodal_content\",\"personselectmodal_content_split\":\"_3He0YspH_personselectmodal_content_split\",\"personselectmodal_content_table\":\"OyjZeCml_personselectmodal_content_table\",\"personselectmodal_content_table_search\":\"e1gRkhuA_personselectmodal_content_table_search\",\"personselectmodal_content_table_body\":\"uAO89pXS_personselectmodal_content_table_body\",\"personselectmodal_content_table_pagination\":\"haH5RFyp_personselectmodal_content_table_pagination\",\"personselectmodal_content_main\":\"c0FDJMk2_personselectmodal_content_main\",\"selected\":\"X9lpCJN+_selected\",\"selected_nav\":\"jdbdcZJY_selected_nav\",\"nav_title\":\"_8laBEki1_nav_title\",\"selected_list\":\"B8WNd4lN_selected_list\",\"selected_item\":\"gZ7hi2SU_selected_item\",\"item_info\":\"XoNo+42c_item_info\",\"item_title\":\"_0OqyiCj8_item_title\",\"item_btn\":\"_1VMDY+-I_item_btn\",\"personselectmodal_content_org\":\"-bqlqx0H_personselectmodal_content_org\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9wZXJtaXNzaW9uL1BlcnNvblNlbGVjdE1vZGFsLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9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NlbGVjdGVkXCIsXCJzZWxlY3RlZF9uYXZcIjpcImpkYmRjWkpZX3NlbGVjdGVkX25hdlwiLFwibmF2X3RpdGxlXCI6XCJfOGxhQkVraTFfbmF2X3RpdGxlXCIsXCJzZWxlY3RlZF9saXN0XCI6XCJCOFdOZDRsTl9zZWxlY3RlZF9saXN0XCIsXCJzZWxlY3RlZF9pdGVtXCI6XCJnWjdoaTJTVV9zZWxlY3RlZF9pdGVtXCIsXCJpdGVtX2luZm9cIjpcIlhvTm8rNDJjX2l0ZW1faW5mb1wiLFwiaXRlbV90aXRsZVwiOlwiXzBPcXlpQ2o4X2l0ZW1fdGl0bGVcIixcIml0ZW1fYnRuXCI6XCJfMVZNRFkrLUlfaXRlbV9idG5cIixcInBlcnNvbnNlbGVjdG1vZGFsX2NvbnRlbnRfb3JnXCI6XCItYnFscXgwSF9wZXJzb25zZWxlY3Rtb2RhbF9jb250ZW50X29yZ1wifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/permission/PersonSelectModal.less\n");

/***/ }),

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

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

/***/ }),

/***/ "./src/hooks/useWindowSize.ts":
/*!************************************!*\
  !*** ./src/hooks/useWindowSize.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.useWindowSize = useWindowSize;\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 _index = __webpack_require__(/*! ../utils/index */ \"./src/utils/index.tsx\");\nfunction useWindowSize() {\n  var _useState = (0, _react.useState)(function () {\n      var _window = window,\n        innerWidth = _window.innerWidth,\n        innerHeight = _window.innerHeight;\n      return {\n        width: innerWidth,\n        height: innerHeight\n      };\n    }),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    windowSize = _useState2[0],\n    setWindowSize = _useState2[1];\n  var updateSize = function updateSize(_ref) {\n    var width = _ref.width,\n      height = _ref.height;\n    setWindowSize({\n      width: width,\n      height: height\n    });\n  };\n  (0, _react.useEffect)(function () {\n    var resizeObserver = (0, _index.addResizeObserve)(document.body, updateSize);\n    return function () {\n      resizeObserver && resizeObserver.removeResizeObserve();\n    };\n  }, []);\n  return windowSize;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlV2luZG93U2l6ZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBT0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUhBO0FBQUE7QUFLQTtBQUFBO0FBQUE7QUFDQTtBQUFB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lci5yZW1vdmVSZXNpemVPYnNlcnZlKClcclxuICAgIH1cclxuICB9LCBbXSlcclxuXHJcbiAgcmV0dXJuIHdpbmRvd1NpemVcclxufVxyXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/hooks/useWindowSize.ts\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.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 _useFilterRefBill = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFilterRefBill */ \"./src/hooks/useFilterRefBill.tsx\"));\nvar _excluded = [\"appId\"];\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-11-06 11:01:16\n * @LastEditTime: 2023-11-07 16:58:52\n * @Last Modified by: jianhang_he\n */\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 ListFilterSetting = (0, _react.memo)(function (_ref) {\n  var appId = _ref.appId,\n    props = (0, _objectWithoutProperties2.default)(_ref, _excluded);\n  var refBillProps = (0, _useFilterRefBill.default)({\n    appId: appId\n  });\n  return /*#__PURE__*/_react.default.createElement(_WebUI.ListFilterSettingDropdown, (0, _extends2.default)({\n    refBillProps: refBillProps\n  }, props));\n});\nListFilterSetting.displayName = 'ListFilterSetting';\nvar _default = exports[\"default\"] = ListFilterSetting;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vTGlzdEZpbHRlclNldHRpbmcudHN4Iiwib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G5cbkxpc3RGaWx0ZXJTZXR0aW5nLmRpc3BsYXlOYW1lID0gJ0xpc3RGaWx0ZXJTZXR0aW5nJ1xuXG5leHBvcnQgZGVmYXVsdCBMaXN0RmlsdGVyU2V0dGluZ1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/ListFilterSetting.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _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 _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _Modal = _interopRequireDefault(__webpack_require__(/*! ./Modal.less */ \"./src/web/component/common/Modal.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; }\nvar ModalFooter = (0, _react.memo)(function (_ref) {\n  var cancelText = _ref.cancelText,\n    okText = _ref.okText,\n    onOk = _ref.onOk,\n    onCancel = _ref.onCancel,\n    cancelButtonProps = _ref.cancelButtonProps,\n    okButtonProps = _ref.okButtonProps;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Modal.default.modal_footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Modal.default.modal_footer_action\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, (0, _extends2.default)({\n    onClick: onCancel,\n    size: \"small\",\n    className: _Modal.default.modal_footer_action_btn\n  }, cancelButtonProps), cancelText || '取消'), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, (0, _extends2.default)({\n    onClick: onOk,\n    size: \"small\",\n    type: \"primary\",\n    className: _Modal.default.modal_footer_action_btn\n  }, okButtonProps), okText || '确定')));\n});\nModalFooter.displayName = 'ModalFooter';\nvar CustomModal = (0, _react.memo)(function (props) {\n  var cancelText = props.cancelText,\n    okText = props.okText,\n    onOk = props.onOk,\n    onCancel = props.onCancel,\n    cancelButtonProps = props.cancelButtonProps,\n    okButtonProps = props.okButtonProps;\n\n  // return null\n\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, (0, _extends2.default)({\n    showline: false,\n    footer: /*#__PURE__*/_react.default.createElement(ModalFooter, {\n      cancelText: cancelText,\n      okText: okText,\n      onOk: onOk,\n      onCancel: onCancel,\n      cancelButtonProps: cancelButtonProps,\n      okButtonProps: okButtonProps\n    })\n  }, props, {\n    className: (0, _classnames.default)(_Modal.default.modal, props.className)\n  }));\n});\nCustomModal.displayName = 'CustomModal';\nvar _default = exports[\"default\"] = CustomModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vTW9kYWwudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUFBO0FBRUE7QUFPQTtBQUxBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBSUE7QUFFQTtBQUVBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUdBOztBQUVBO0FBRUE7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFFQTtBQUFBO0FBR0E7QUFFQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL01vZGFsLnRze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DwvZGl2PlxuICApXG59KVxuXG5Nb2RhbEZvb3Rlci5kaXNwbGF5TmFtZSA9ICdNb2RhbEZvb3RlcidcblxuY29uc3QgQ3VzdG9tTW9kYWwgPSBtZW1vKChwcm9wcykgPT4ge1xuICBjb25zdCB7XG4gICAgY2FuY2VsVGV4dCxcbiAgICBva1RleHQsXG4gICAgb25PayxcbiAgICBvbkNhbmNlbCxcbiAgICBjYW5jZWxCdXR0b25Qcm9wcyxcbiAgICBva0J1dHRvblByb3BzXG4gIH0gPSBwcm9wc1xuXG4gIC8vIHJldHVybiBudWxsXG5cbiAgcmV0dXJuIChcbiAgICA8TW9kYWxcbiAgICAgIHNob3dsaW5lPXtmYWxzZX1cbiAgICAgIGZvb3Rlcj17XG4gICAgICAgIDxNb2RhbEZvb3RlclxuICAgICAgICAgIGNhbmNlbFRleHQ9e2NhbmNlbFRleHR9XG4gICAgICAgICAgb2tUZXh0PXtva1RleHR9XG4gICAgICAgICAgb25Paz17b25Pa31cbiAgICAgICAgICBvbkNhbmNlbD17b25DYW5jZWx9XG4gICAgICAgICAgY2FuY2VsQnV0dG9uUHJvcHM9e2NhbmNlbEJ1dHRvblByb3BzfVxuICAgICAgICAgIG9rQnV0dG9uUHJvcHM9e29rQnV0dG9uUHJvcHN9XG4gICAgICAgIC8+XG4gICAgICB9XG4gICAgICB7Li4ucHJvcHN9XG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZXMoc3R5bGVzLm1vZGFsLCBwcm9wcy5jbGFzc05hbWUpfVxuICAgIC8+XG4gIClcbn0pXG5cbkN1c3RvbU1vZGFsLmRpc3BsYXlOYW1lID0gJ0N1c3RvbU1vZGFsJ1xuXG5leHBvcnQgZGVmYXVsdCBDdXN0b21Nb2RhbFxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/Modal.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.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 _excluded = [\"onChange\", \"value\"]; // import classnames from 'classnames'\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 styles from './SearchInput.less'\n\nvar SearchInput = function SearchInput(props) {\n  var onChange = props.onChange,\n    value = props.value,\n    other = (0, _objectWithoutProperties2.default)(props, _excluded);\n  var _useState = (0, _react.useState)(value || ''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    input = _useState2[0],\n    setInput = _useState2[1];\n  var lock = (0, _react.useRef)(false);\n  var isFirefox = (0, _react.useRef)(/firefox/i.test(window.navigator.userAgent));\n  (0, _react.useEffect)(function () {\n    setInput(value);\n  }, [value]);\n  var handleChange = (0, _react.useCallback)(function (v) {\n    setInput(v);\n    !lock.current && onChange && onChange(v);\n  }, [onChange]);\n  var handleStart = (0, _react.useCallback)(function () {\n    lock.current = true;\n  }, []);\n  var handleEnd = (0, _react.useCallback)(function (e) {\n    lock.current = false;\n    // firefox，输入法输入时，先执行end，change最后\n    // chrome，输入法输入时，先执行change，end最后\n    !isFirefox.current && onChange && onChange(input);\n  }, [input, onChange]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: \"kd-nc-search-input\"\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Text, (0, _extends2.default)({\n    value: input,\n    onCompositionStart: handleStart,\n    onCompositionEnd: handleEnd,\n    onChange: handleChange\n  }, other)));\n};\n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SB1c2VDYWxsYmFjaygoZTphbnkpID0+IHtcbiAgICBsb2NrLmN1cnJlbnQgPSBmYWxzZVxuICAgIC8vIGZpcmVmb3jvvIzovpPlhaXms5XovpPlhaXml7bvvIzlhYjmiafooYxlbmTvvIxjaGFuZ2XmnIDlkI5cbiAgICAvLyBjaHJvbWXvvIzovpPlhaXms5XovpPlhaXml7bvvIzlhYjmiafooYxjaGFuZ2XvvIxlbmTmnIDlkI5cbiAgICAhaXNGaXJlZm94LmN1cnJlbnQgJiYgb25DaGFuZ2UgJiYgb25DaGFuZ2UoaW5wdXQpXG4gIH0sIFtpbnB1dCwgb25DaGFuZ2VdKVxuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPSdrZC1uYy1zZWFyY2gtaW5wdXQnPlxuICAgICAgPElucHV0XG4gICAgICAgIHZhbHVlPXtpbnB1dH1cbiAgICAgICAgb25Db21wb3NpdGlvblN0YXJ0PXtoYW5kbGVTdGFydH1cbiAgICAgICAgb25Db21wb3NpdGlvbkVuZD17aGFuZGxlRW5kfVxuICAgICAgICBvbkNoYW5nZT17aGFuZGxlQ2hhbmdlfVxuICAgICAgICB7Li4ub3RoZXJ9XG4gICAgICAvPlxuICAgIDwvZGl2PlxuXG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgU2VhcmNoSW5wdXRcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/SearchInput.tsx\n");

/***/ }),

/***/ "./src/web/component/permission/OrgAuthorize.tsx":
/*!*******************************************************!*\
  !*** ./src/web/component/permission/OrgAuthorize.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 _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _OrgSelectModal = _interopRequireDefault(__webpack_require__(/*! ./OrgSelectModal */ \"./src/web/component/permission/OrgSelectModal.tsx\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _OrgAuthorize = _interopRequireDefault(__webpack_require__(/*! ./OrgAuthorize.less */ \"./src/web/component/permission/OrgAuthorize.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/**\r\n * 授权组织\r\n */\n\nvar OrgAuthorize = function OrgAuthorize(_ref) {\n  var value = _ref.value,\n    onChange = _ref.onChange,\n    _ref$disabledIds = _ref.disabledIds,\n    disabledIds = _ref$disabledIds === void 0 ? [] : _ref$disabledIds,\n    withScope = _ref.withScope;\n  var _useState = (0, _react.useState)(value || []),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    orgs = _useState2[0],\n    setOrgs = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    modalVisible = _useState4[0],\n    setModalVisible = _useState4[1];\n  var handleDelete = function handleDelete(id) {\n    if ((0, _includes.default)(disabledIds).call(disabledIds, id)) return;\n    var newOrgs = (0, _filter.default)(orgs).call(orgs, function (p) {\n      return p.id !== id;\n    });\n    setOrgs(newOrgs);\n    onChange === null || onChange === void 0 || onChange(newOrgs);\n  };\n  /**\r\n   * 点击新增\r\n   */\n  var handleAdd = (0, _react.useCallback)(function () {\n    setModalVisible(true);\n  }, []);\n\n  /**\r\n   * 关闭弹窗\r\n   */\n  var handleCloseModal = (0, _react.useCallback)(function () {\n    setModalVisible(false);\n  }, []);\n\n  /**\r\n   * 点击确定\r\n   * @param list\r\n   */\n  var handleConfim = function handleConfim(selectedlist) {\n    setOrgs(selectedlist);\n    onChange === null || onChange === void 0 || onChange(selectedlist);\n    handleCloseModal();\n  };\n  (0, _react.useEffect)(function () {\n    if (!(0, _lodash.isEqual)(value, orgs)) {\n      setOrgs(value || []);\n    }\n  }, [value]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgAuthorize.default['org-authorize']\n  }, (0, _map.default)(orgs).call(orgs, function (_ref2) {\n    var id = _ref2.id,\n      name = _ref2.name;\n    return /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: (0, _classnames.default)(_OrgAuthorize.default.tag, (0, _defineProperty2.default)({}, _OrgAuthorize.default['is-disabled'], disabledIds === null || disabledIds === void 0 ? void 0 : (0, _includes.default)(disabledIds).call(disabledIds, id))),\n      key: id\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _OrgAuthorize.default['tag-name']\n    }, name), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"guanbi\",\n      onClick: function onClick() {\n        return handleDelete(id);\n      }\n    }));\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    size: \"small\",\n    type: \"ghost\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"zengjia-yuan\"\n    }),\n    onClick: handleAdd\n  }, \"\\u65B0\\u589E\")), modalVisible && /*#__PURE__*/_react.default.createElement(_OrgSelectModal.default, {\n    selectedList: orgs,\n    visible: modalVisible,\n    onConfirm: handleConfim,\n    onClose: handleCloseModal,\n    withScope: withScope\n  }));\n};\nvar _default = exports[\"default\"] = OrgAuthorize;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/permission/OrgAuthorize.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _sliceInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\nvar _Array$from = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js\");\nvar _Symbol2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js\");\nvar _getIteratorMethod = __webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ \"../../node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.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 _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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _symbol = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.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 _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _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 _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _Modal = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Modal */ \"./src/web/component/common/Modal.tsx\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _SearchInput = _interopRequireDefault(__webpack_require__(/*! ../common/SearchInput */ \"./src/web/component/common/SearchInput.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _OrgSelectModal = _interopRequireDefault(__webpack_require__(/*! ./OrgSelectModal.less */ \"./src/web/component/permission/OrgSelectModal.less\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol2 !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context2; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context2 = Object.prototype.toString.call(o)).call(_context2, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar prefixClass = 'orgselectmodal';\nvar UPDATE_SELECTED_LIST = (0, _symbol.default)('更新当前选中的组织列表');\nvar personSelectModalState = {\n  selectedList: []\n};\nvar reducer = function reducer(state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case UPDATE_SELECTED_LIST:\n      return _objectSpread(_objectSpread({}, state), {}, {\n        selectedList: payload.selectedList\n      });\n    default:\n      throw new Error();\n  }\n};\nvar PersonDataGrid = (0, _react.memo)(function (_ref2) {\n  var state = _ref2.state,\n    dispatch = _ref2.dispatch,\n    _ref2$disabledIds = _ref2.disabledIds,\n    disabledIds = _ref2$disabledIds === void 0 ? [] : _ref2$disabledIds,\n    withScope = _ref2.withScope;\n  var selectedList = state.selectedList;\n  var _useState = (0, _react.useState)({\n      page_size: 10,\n      page_no: 1\n    }),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    params = _useState2[0],\n    setParams = _useState2[1]; // 分页请求参数\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    orgData = _useState4[0],\n    setOrgData = _useState4[1]; // 员工数据\n  var _useState5 = (0, _react.useState)(0),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    totalCount = _useState6[0],\n    setTotalCount = _useState6[1];\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    keyword = _useState8[0],\n    setKeyword = _useState8[1];\n  var selectedIds = (0, _react.useMemo)(function () {\n    return (0, _map.default)(selectedList).call(selectedList, function (item) {\n      return item.id;\n    });\n  }, [selectedList]);\n  var handleSelectedRows = function handleSelectedRows(selectedRowKeys, actionRowkey, actionRowskeys, action) {\n    var curSelectedData = (0, _find.default)(orgData).call(orgData, function (item) {\n      return item.id === actionRowkey;\n    });\n    switch (action) {\n      case 'check-all':\n        {\n          var newPersonList = (0, _toConsumableArray2.default)(selectedList);\n          var _iterator = _createForOfIteratorHelper(orgData),\n            _step;\n          try {\n            var _loop = function _loop() {\n              var _step$value = _step.value,\n                id = _step$value.id,\n                name = _step$value.name,\n                number = _step$value.number;\n              if (!(0, _find.default)(newPersonList).call(newPersonList, function (item) {\n                return item.id === id;\n              })) {\n                newPersonList.push({\n                  id: id,\n                  name: name,\n                  number: number\n                });\n              }\n            };\n            for (_iterator.s(); !(_step = _iterator.n()).done;) {\n              _loop();\n            }\n          } catch (err) {\n            _iterator.e(err);\n          } finally {\n            _iterator.f();\n          }\n          dispatch({\n            type: UPDATE_SELECTED_LIST,\n            payload: {\n              selectedList: newPersonList\n            }\n          });\n          break;\n        }\n      case 'uncheck-all':\n        {\n          var deSelectIdList = (orgData === null || orgData === void 0 ? void 0 : (0, _map.default)(orgData).call(orgData, function (person) {\n            return person.id;\n          })) || [];\n          deSelectIdList = (0, _filter.default)(deSelectIdList).call(deSelectIdList, function (id) {\n            return !(disabledIds !== null && disabledIds !== void 0 && (0, _includes.default)(disabledIds).call(disabledIds, id));\n          });\n          dispatch({\n            type: UPDATE_SELECTED_LIST,\n            payload: {\n              selectedList: (0, _filter.default)(selectedList).call(selectedList, function (item) {\n                return !(0, _includes.default)(deSelectIdList).call(deSelectIdList, item.id);\n              })\n            }\n          });\n          break;\n        }\n      case 'check':\n        if (!curSelectedData) return;\n        dispatch({\n          type: UPDATE_SELECTED_LIST,\n          payload: {\n            selectedList: (0, _concat.default)(selectedList).call(selectedList, {\n              id: curSelectedData.id,\n              name: curSelectedData.name,\n              number: curSelectedData.number\n            })\n          }\n        });\n        break;\n      case 'uncheck':\n        {\n          if (disabledIds !== null && disabledIds !== void 0 && (0, _includes.default)(disabledIds).call(disabledIds, curSelectedData.id)) return;\n          var newSelectedList = (0, _filter.default)(selectedList).call(selectedList, function (item) {\n            return item.id !== curSelectedData.id;\n          });\n          dispatch({\n            type: UPDATE_SELECTED_LIST,\n            payload: {\n              selectedList: newSelectedList\n            }\n          });\n          break;\n        }\n      default:\n        break;\n    }\n  };\n  var tableColumn = (0, _react.useMemo)(function () {\n    return [{\n      code: 'name',\n      name: '组织名称',\n      width: 400\n    }, {\n      code: 'number',\n      name: '组织编号',\n      width: 200\n    }\n    // { code: 'opera', name: '操作', width: 100, render: renderMore }\n    ];\n  }, []);\n  var fetchOrgData = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var post, _yield$getFlattenOrg, _yield$getFlattenOrg$, rows, _yield$getFlattenOrg$2, _totalCount, data, message;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          post = _objectSpread(_objectSpread({}, params), {}, {\n            select: 'id,name,number',\n            search: keyword,\n            withScope: withScope\n          });\n          _context.prev = 1;\n          _context.next = 4;\n          return (0, _home.getFlattenOrg)(post);\n        case 4:\n          _yield$getFlattenOrg = _context.sent;\n          _yield$getFlattenOrg$ = _yield$getFlattenOrg.rows;\n          rows = _yield$getFlattenOrg$ === void 0 ? [] : _yield$getFlattenOrg$;\n          _yield$getFlattenOrg$2 = _yield$getFlattenOrg.totalCount;\n          _totalCount = _yield$getFlattenOrg$2 === void 0 ? 0 : _yield$getFlattenOrg$2;\n          data = (0, _map.default)(rows).call(rows, function (item) {\n            var parent = item.parent;\n            return _objectSpread(_objectSpread({}, item), {}, {\n              parentName: parent\n            });\n          });\n          setOrgData(data);\n          setTotalCount(_totalCount);\n          _context.next = 19;\n          break;\n        case 14:\n          _context.prev = 14;\n          _context.t0 = _context[\"catch\"](1);\n          console.log(_context.t0);\n          message = _context.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 19:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee, null, [[1, 14]]);\n  })), [params, keyword, withScope]);\n  var debounceFetchOrgUsers = (0, _useDebounce.default)(fetchOrgData, 500);\n  var handleKeywordChange = function handleKeywordChange(value) {\n    setKeyword(value);\n    setParams(_objectSpread(_objectSpread({}, params), {}, {\n      page_no: 1\n    }));\n    debounceFetchOrgUsers();\n  };\n  var onPaginationChange = function onPaginationChange(pageNo, pageSize) {\n    setParams({\n      page_size: pageSize,\n      page_no: pageNo\n    });\n    debounceFetchOrgUsers();\n  };\n\n  /**\n   * 获取员工信息\n   */\n  (0, _react.useEffect)(function () {\n    fetchOrgData();\n  }, []);\n  var onDelSelect = function onDelSelect(item, index) {\n    if (disabledIds !== null && disabledIds !== void 0 && (0, _includes.default)(disabledIds).call(disabledIds, item.id)) return;\n    var newSelectedList = (0, _filter.default)(selectedList).call(selectedList, function (i) {\n      return i.id !== item.id;\n    });\n    dispatch({\n      type: UPDATE_SELECTED_LIST,\n      payload: {\n        selectedList: newSelectedList\n      }\n    });\n  };\n\n  // 渲染列表\n  var renderItem = (0, _react.useCallback)(function () {\n    return selectedList === null || selectedList === void 0 ? void 0 : (0, _map.default)(selectedList).call(selectedList, function (item, index) {\n      return /*#__PURE__*/_react.default.createElement(\"div\", {\n        key: item.value,\n        className: _OrgSelectModal.default.selected_item\n      }, /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _OrgSelectModal.default.item_info\n      }, /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _OrgSelectModal.default.item_title\n      }, item.name || '-'), /*#__PURE__*/_react.default.createElement(\"div\", null, item.number || '-')), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n        type: \"text\",\n        className: _OrgSelectModal.default.item_btn,\n        onClick: function onClick() {\n          onDelSelect === null || onDelSelect === void 0 || onDelSelect(item, index);\n        }\n      }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n        type: \"delete\"\n      })));\n    });\n  }, [selectedList]);\n  var onClean = function onClean() {\n    var newSelectedList = (0, _filter.default)(selectedList).call(selectedList, function (item) {\n      return disabledIds === null || disabledIds === void 0 ? void 0 : (0, _includes.default)(disabledIds).call(disabledIds, item.id);\n    });\n    dispatch({\n      type: UPDATE_SELECTED_LIST,\n      payload: {\n        selectedList: newSelectedList\n      }\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default[\"\".concat(prefixClass, \"_content_main\")]\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default[\"\".concat(prefixClass, \"_content_table\")]\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default[\"\".concat(prefixClass, \"_content_table_header\")]\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default[\"\".concat(prefixClass, \"_content_table_search\")]\n  }, /*#__PURE__*/_react.default.createElement(_SearchInput.default, {\n    placeholder: \"\\u641C\\u7D22\",\n    borderType: \"bordered\",\n    prefix: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"sousuo\"\n    }),\n    size: \"small\",\n    onChange: handleKeywordChange,\n    allowClear: true\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_WebUI.DataGrid, {\n    style: {\n      height: '308px'\n    },\n    columns: tableColumn,\n    showSelected: true,\n    dataSource: orgData,\n    onRowSelectChange: handleSelectedRows,\n    onPageChange: onPaginationChange,\n    rowSelection: {\n      type: 'checkbox',\n      value: selectedIds || [],\n      highlightRowWhenSelected: true,\n      column: {\n        lock: true\n      },\n      onChange: handleSelectedRows,\n      clickArea: 'row'\n    },\n    primaryKey: \"id\"\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default[\"\".concat(prefixClass, \"_content_table_pagination\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Pagination, {\n    pageType: \"nicety\",\n    current: params.page_no,\n    showQuickJumper: false,\n    pageSize: params.page_size,\n    onChange: onPaginationChange,\n    total: totalCount || 0,\n    dropdownProps: {\n      getPopupContainer: function getPopupContainer() {\n        return document.body;\n      }\n    },\n    showSizeChanger: true\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default.selected\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default.selected_nav\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default.nav_title\n  }, \"\\u5DF2\\u9009(\", selectedList === null || selectedList === void 0 ? void 0 : selectedList.length, \")\"), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: onClean,\n    type: \"text\",\n    major: true\n  }, \"\\u6E05\\u7A7A\"))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _OrgSelectModal.default.selected_list\n  }, renderItem())));\n});\nPersonDataGrid.displayName = 'PersonDataGrid';\nvar OrgSelectModal = (0, _react.memo)(function (_ref4) {\n  var visible = _ref4.visible,\n    _ref4$disabledIds = _ref4.disabledIds,\n    disabledIds = _ref4$disabledIds === void 0 ? [] : _ref4$disabledIds,\n    selectedList = _ref4.selectedList,\n    onClose = _ref4.onClose,\n    onConfirm = _ref4.onConfirm,\n    withScope = _ref4.withScope;\n  var _useReducer = (0, _react.useReducer)(reducer, personSelectModalState),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    state = _useReducer2[0],\n    dispatch = _useReducer2[1];\n\n  /**\n   * 外部的选中发生变化\n   */\n  (0, _react.useEffect)(function () {\n    dispatch({\n      type: UPDATE_SELECTED_LIST,\n      payload: {\n        selectedList: selectedList\n      }\n    });\n  }, [selectedList]);\n  var content = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _OrgSelectModal.default[\"\".concat(prefixClass, \"_content\")]\n    }, /*#__PURE__*/_react.default.createElement(PersonDataGrid, {\n      state: state,\n      dispatch: dispatch,\n      disabledIds: disabledIds,\n      withScope: withScope\n    }));\n  }, [state, dispatch, selectedList, disabledIds]);\n\n  /**\n   * 点击确定要把选中的人员带出去\n   */\n  var handleConfirm = (0, _react.useCallback)(function () {\n    onConfirm(state.selectedList);\n  }, [state.selectedList, onConfirm]);\n  return /*#__PURE__*/_react.default.createElement(_Modal.default, {\n    title: \"\\u8BF7\\u9009\\u62E9\",\n    width: 1180,\n    height: 524,\n    visible: visible,\n    keyboard: false,\n    maskClosable: false,\n    closable: true,\n    body: content,\n    className: _OrgSelectModal.default[prefixClass],\n    onCancel: onClose,\n    onOk: handleConfirm\n  });\n});\nOrgSelectModal.displayName = 'OrgSelectModal';\nvar _default = exports[\"default\"] = OrgSelectModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/permission/OrgSelectModal.tsx\n");

/***/ }),

/***/ "./src/web/component/permission/PersonAuthorize.tsx":
/*!**********************************************************!*\
  !*** ./src/web/component/permission/PersonAuthorize.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 _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _PersonSelectModal = _interopRequireDefault(__webpack_require__(/*! ./PersonSelectModal */ \"./src/web/component/permission/PersonSelectModal.tsx\"));\nvar _PersonAuthorize = _interopRequireDefault(__webpack_require__(/*! ./PersonAuthorize.less */ \"./src/web/component/permission/PersonAuthorize.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/**\n * 授权人员\n */\n\nvar PersonAuthorize = function PersonAuthorize(_ref) {\n  var value = _ref.value,\n    onChange = _ref.onChange,\n    _ref$disabledIds = _ref.disabledIds,\n    disabledIds = _ref$disabledIds === void 0 ? [] : _ref$disabledIds,\n    _ref$isMulti = _ref.isMulti,\n    isMulti = _ref$isMulti === void 0 ? true : _ref$isMulti,\n    buttonOption = _ref.buttonOption,\n    withScope = _ref.withScope;\n  var _useState = (0, _react.useState)(value || []),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    person = _useState2[0],\n    setPerson = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    personModalVisible = _useState4[0],\n    setPersonModalVisible = _useState4[1];\n  var handleDelete = function handleDelete(id) {\n    if ((0, _includes.default)(disabledIds).call(disabledIds, id)) return;\n    var newPerson = (0, _filter.default)(person).call(person, function (p) {\n      return p.id !== id;\n    });\n    setPerson(newPerson);\n    onChange === null || onChange === void 0 || onChange(newPerson);\n  };\n  /**\n   * 点击新增\n   */\n  var handleClickAddNew = (0, _react.useCallback)(function () {\n    setPersonModalVisible(true);\n  }, []);\n\n  /**\n   * 关闭弹窗\n   */\n  var handleClosePersonModal = (0, _react.useCallback)(function () {\n    setPersonModalVisible(false);\n  }, []);\n\n  /**\n   * 点击确定\n   * @param list\n   */\n  var handleConfim = function handleConfim(selectedlist) {\n    setPerson(selectedlist);\n    onChange === null || onChange === void 0 || onChange(selectedlist);\n    handleClosePersonModal();\n  };\n  (0, _react.useEffect)(function () {\n    if (!(0, _lodash.isEqual)(value, person)) {\n      setPerson(value);\n    }\n  }, [value]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonAuthorize.default['person-authorize']\n  }, (0, _map.default)(person).call(person, function (_ref2) {\n    var id = _ref2.id,\n      name = _ref2.name;\n    return /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: (0, _classnames.default)(_PersonAuthorize.default.tag, (0, _defineProperty2.default)({}, _PersonAuthorize.default['is-disabled'], disabledIds === null || disabledIds === void 0 ? void 0 : (0, _includes.default)(disabledIds).call(disabledIds, id))),\n      key: id\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _PersonAuthorize.default['tag-name']\n    }, name), isMulti && /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"guanbi\",\n      onClick: function onClick() {\n        return handleDelete(id);\n      }\n    }));\n  }), !(buttonOption !== null && buttonOption !== void 0 && buttonOption.hide) && /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    size: \"small\",\n    type: \"ghost\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: (buttonOption === null || buttonOption === void 0 ? void 0 : buttonOption.icon) || 'zengjia-yuan'\n    }),\n    onClick: handleClickAddNew\n  }, (buttonOption === null || buttonOption === void 0 ? void 0 : buttonOption.text) || '新增')), personModalVisible && /*#__PURE__*/_react.default.createElement(_PersonSelectModal.default, {\n    disabledIds: disabledIds,\n    selectedList: person,\n    visible: personModalVisible,\n    isMulti: isMulti,\n    onConfirm: handleConfim,\n    onClose: handleClosePersonModal,\n    withScope: withScope\n  }));\n};\nvar _default = exports[\"default\"] = PersonAuthorize;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/permission/PersonAuthorize.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _sliceInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\nvar _Array$from = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js\");\nvar _Symbol2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js\");\nvar _getIteratorMethod = __webpack_require__(/*! @babel/runtime-corejs3/core-js/get-iterator-method */ \"../../node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.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 _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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _symbol = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/symbol */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/symbol.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 _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _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 _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _Modal = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Modal */ \"./src/web/component/common/Modal.tsx\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _index = __webpack_require__(/*! @/utils/index */ \"./src/utils/index.tsx\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _SearchInput = _interopRequireDefault(__webpack_require__(/*! ../common/SearchInput */ \"./src/web/component/common/SearchInput.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _useWindowSize2 = __webpack_require__(/*! ../../../hooks/useWindowSize */ \"./src/hooks/useWindowSize.ts\");\nvar _PersonSelectModal = _interopRequireDefault(__webpack_require__(/*! ./PersonSelectModal.less */ \"./src/web/component/permission/PersonSelectModal.less\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol2 !== \"undefined\" && _getIteratorMethod(o) || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { var _context3; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context3 = Object.prototype.toString.call(o)).call(_context3, 8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return _Array$from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar prefixClass = 'personselectmodal';\nvar UPDATE_CURRENT_ORG = (0, _symbol.default)('更新当前选中的组织');\nvar UPDATE_SELECTED_LIST = (0, _symbol.default)('更新当前选中的人员列表');\nvar personSelectModalState = {\n  currentOrg: null,\n  // 当前组织信息\n  selectedList: []\n};\nvar reducer = function reducer(state, _ref) {\n  var type = _ref.type,\n    payload = _ref.payload;\n  switch (type) {\n    case UPDATE_CURRENT_ORG:\n      return _objectSpread(_objectSpread({}, state), {}, {\n        currentOrg: payload.currentOrg\n      });\n    case UPDATE_SELECTED_LIST:\n      return _objectSpread(_objectSpread({}, state), {}, {\n        selectedList: payload.selectedList\n      });\n    default:\n      throw new Error();\n  }\n};\n\n/**\n * 组织树\n * @returns\n */\nvar OrgTree = (0, _react.memo)(function (_ref2) {\n  var dispatch = _ref2.dispatch,\n    defaultExpandRoot = _ref2.defaultExpandRoot,\n    withScope = _ref2.withScope;\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    treeData = _useState2[0],\n    setTreeData = _useState2[1]; // 树数据\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    expandedKeys = _useState4[0],\n    setExpandedKeys = _useState4[1]; // 设置哪些节点默认展开\n  var _useState5 = (0, _react.useState)([]),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    selectedKeys = _useState6[0],\n    setSelectedKeys = _useState6[1];\n\n  /**\n   * 将请求回来的数据添加到树节点,转换格式\n   */\n  var transformTreeValue = (0, _react.useCallback)(function (arr, list, key) {\n    console.log(key, arr);\n    arr.some(function (item) {\n      if (item.key === key) {\n        item.children = list;\n        return true;\n      } else {\n        transformTreeValue(item.children, list, key);\n        return false;\n      }\n    });\n    return arr;\n  }, []);\n\n  /**\n   * 获取组织架构信息\n   */\n  var fetchOrgData = (0, _react.useCallback)(function (id) {\n    var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n    var cb = arguments.length > 2 ? arguments[2] : undefined;\n    (0, _home.getCompanyOrg)({\n      id: id,\n      withScope: withScope\n    }, false).then(function (res) {\n      var list = (0, _index.formateTreeData)(res.rows); // 格式化数据\n      // 通过key查找到需要添加数据的节点\n      if (key === '') {\n        // 首次请求回来的数据直接赋值\n        setTreeData(list);\n      } else {\n        var data = transformTreeValue(treeData, list, key);\n        setTreeData((0, _toConsumableArray2.default)(data));\n      }\n      cb && cb(list[0]);\n    });\n  }, [treeData, withScope]);\n\n  /**\n   * 初始化\n   */\n  (0, _react.useEffect)(function () {\n    fetchOrgData('', '', function (res) {\n      return dispatch({\n        type: UPDATE_CURRENT_ORG,\n        payload: {\n          currentOrg: res\n        }\n      });\n    });\n  }, []);\n\n  /**\n   * 点击树节点\n   */\n  var onExpand = (0, _react.useCallback)(function (expandedKeys, info) {\n    setExpandedKeys(expandedKeys);\n  }, [treeData]);\n  var onSelect = function onSelect(key, info) {\n    dispatch({\n      type: UPDATE_CURRENT_ORG,\n      payload: {\n        currentOrg: info.node\n      }\n    });\n    setSelectedKeys(key);\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_org\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Tree, {\n    defaultExpandRoot: defaultExpandRoot,\n    name: \"Tree\",\n    treeData: treeData,\n    expandedKeys: expandedKeys,\n    onExpand: onExpand,\n    selectedKeys: selectedKeys,\n    onSelect: onSelect,\n    height: \"100%\",\n    virtual: true,\n    selectable: true\n  }));\n});\nOrgTree.displayName = 'OrgTree';\nvar PersonDataGrid = (0, _react.memo)(function (_ref3) {\n  var state = _ref3.state,\n    dispatch = _ref3.dispatch,\n    disabledIds = _ref3.disabledIds,\n    _ref3$isMulti = _ref3.isMulti,\n    isMulti = _ref3$isMulti === void 0 ? true : _ref3$isMulti,\n    withScope = _ref3.withScope;\n  var currentOrg = state.currentOrg,\n    selectedList = state.selectedList;\n  var pageParams = (0, _react.useRef)({\n    page_size: 20,\n    page_no: 1\n  });\n  var _useState7 = (0, _react.useState)({}),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    personData = _useState8[0],\n    setPersonData = _useState8[1]; // 员工数据\n  var _useState9 = (0, _react.useState)(''),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    keyword = _useState10[0],\n    setKeyword = _useState10[1];\n  var selectedIds = (0, _react.useMemo)(function () {\n    return (0, _map.default)(selectedList).call(selectedList, function (item) {\n      return item.id;\n    });\n  }, [selectedList]);\n  var handleSelectedRows = function handleSelectedRows(selectedRowKeys, actionRowkey, actionRowskeys, action) {\n    var _context;\n    // 单选时无actionRowkey，使用selectedRowKeys\n    var key = isMulti ? actionRowkey : selectedRowKeys[0];\n    var curSelectedData = (0, _find.default)(_context = personData.rows).call(_context, function (item) {\n      return item.id === key;\n    });\n    if (!isMulti) {\n      // 单选时，直接替换值\n      dispatch({\n        type: UPDATE_SELECTED_LIST,\n        payload: {\n          selectedList: [{\n            id: curSelectedData.id,\n            name: curSelectedData.name,\n            number: curSelectedData.number\n          }]\n        }\n      });\n      return;\n    }\n    switch (action) {\n      case 'check-all':\n        {\n          var newPersonList = (0, _toConsumableArray2.default)(selectedList);\n          var _iterator = _createForOfIteratorHelper(personData.rows),\n            _step;\n          try {\n            var _loop = function _loop() {\n              var _step$value = _step.value,\n                id = _step$value.id,\n                name = _step$value.name,\n                number = _step$value.number;\n              if (!(0, _find.default)(newPersonList).call(newPersonList, function (item) {\n                return item.id === id;\n              })) {\n                newPersonList.push({\n                  id: id,\n                  name: name,\n                  number: number\n                });\n              }\n            };\n            for (_iterator.s(); !(_step = _iterator.n()).done;) {\n              _loop();\n            }\n          } catch (err) {\n            _iterator.e(err);\n          } finally {\n            _iterator.f();\n          }\n          dispatch({\n            type: UPDATE_SELECTED_LIST,\n            payload: {\n              selectedList: newPersonList\n            }\n          });\n          break;\n        }\n      case 'uncheck-all':\n        {\n          var _personData$rows;\n          var deSelectIdList = ((_personData$rows = personData.rows) === null || _personData$rows === void 0 ? void 0 : (0, _map.default)(_personData$rows).call(_personData$rows, function (person) {\n            return person.id;\n          })) || [];\n          deSelectIdList = (0, _filter.default)(deSelectIdList).call(deSelectIdList, function (id) {\n            return !(disabledIds !== null && disabledIds !== void 0 && (0, _includes.default)(disabledIds).call(disabledIds, id));\n          });\n          dispatch({\n            type: UPDATE_SELECTED_LIST,\n            payload: {\n              selectedList: (0, _filter.default)(selectedList).call(selectedList, function (item) {\n                return !(0, _includes.default)(deSelectIdList).call(deSelectIdList, item.id);\n              })\n            }\n          });\n          break;\n        }\n      case 'check':\n        dispatch({\n          type: UPDATE_SELECTED_LIST,\n          payload: {\n            selectedList: (0, _concat.default)(selectedList).call(selectedList, {\n              id: curSelectedData.id,\n              name: curSelectedData.name,\n              number: curSelectedData.number\n            })\n          }\n        });\n        break;\n      case 'uncheck':\n        {\n          if (disabledIds !== null && disabledIds !== void 0 && (0, _includes.default)(disabledIds).call(disabledIds, curSelectedData.id)) return;\n          var newSelectedList = (0, _filter.default)(selectedList).call(selectedList, function (item) {\n            return item.id !== curSelectedData.id;\n          });\n          dispatch({\n            type: UPDATE_SELECTED_LIST,\n            payload: {\n              selectedList: newSelectedList\n            }\n          });\n          break;\n        }\n      default:\n        break;\n    }\n  };\n  var tableColumn = (0, _react.useMemo)(function () {\n    return [{\n      code: 'number',\n      name: '员工编号',\n      width: 178\n    }, {\n      code: 'name',\n      name: '员工姓名',\n      width: 178\n    }, {\n      code: 'gender',\n      name: '性别',\n      width: 178\n    }, {\n      code: 'phone',\n      name: '手机号',\n      width: 178\n    }, {\n      code: 'email',\n      name: '邮箱',\n      width: 178\n    }\n    // { code: 'opera', name: '操作', width: 100, render: renderMore }\n    ];\n  }, []);\n  var fetchOrgUsers = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var data, res, message;\n    return _regenerator.default.wrap(function _callee$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          if (currentOrg) {\n            _context2.next = 2;\n            break;\n          }\n          return _context2.abrupt(\"return\");\n        case 2:\n          data = _objectSpread(_objectSpread({}, pageParams.current), {}, {\n            deptId: currentOrg === null || currentOrg === void 0 ? void 0 : currentOrg.id,\n            search: keyword,\n            withScope: withScope\n          });\n          _context2.prev = 3;\n          _context2.next = 6;\n          return (0, _home.getOrgUsers)(data, false);\n        case 6:\n          res = _context2.sent;\n          setPersonData(res);\n          _context2.next = 15;\n          break;\n        case 10:\n          _context2.prev = 10;\n          _context2.t0 = _context2[\"catch\"](3);\n          console.log(_context2.t0);\n          message = _context2.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 15:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee, null, [[3, 10]]);\n  })), [currentOrg, keyword, withScope]);\n  var onPaginationChange = function onPaginationChange(pageNo, pageSize) {\n    pageParams.current = {\n      page_size: pageSize,\n      page_no: pageNo\n    };\n    fetchOrgUsers();\n  };\n  var debounceFetchOrgUsers = (0, _useDebounce.default)(fetchOrgUsers, 500);\n  var handleKeywordChange = function handleKeywordChange(value) {\n    setKeyword(value);\n    pageParams.current = _objectSpread(_objectSpread({}, pageParams.current), {}, {\n      page_no: 1\n    });\n    debounceFetchOrgUsers();\n  };\n\n  /**\n   * 获取员工信息\n   */\n  (0, _react.useEffect)(function () {\n    fetchOrgUsers();\n  }, [currentOrg]);\n  var onDelSelect = function onDelSelect(item, index) {\n    if (disabledIds !== null && disabledIds !== void 0 && (0, _includes.default)(disabledIds).call(disabledIds, item.id)) return;\n    var newSelectedList = (0, _filter.default)(selectedList).call(selectedList, function (i) {\n      return i.id !== item.id;\n    });\n    dispatch({\n      type: UPDATE_SELECTED_LIST,\n      payload: {\n        selectedList: newSelectedList\n      }\n    });\n  };\n\n  // 渲染列表\n  var renderItem = (0, _react.useCallback)(function () {\n    return selectedList === null || selectedList === void 0 ? void 0 : (0, _map.default)(selectedList).call(selectedList, function (item, index) {\n      return /*#__PURE__*/_react.default.createElement(\"div\", {\n        key: item.value,\n        className: _PersonSelectModal.default.selected_item\n      }, /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _PersonSelectModal.default.item_info\n      }, /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _PersonSelectModal.default.item_title\n      }, item.name || '-'), /*#__PURE__*/_react.default.createElement(\"div\", null, item.number || '-')), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n        type: \"text\",\n        className: _PersonSelectModal.default.item_btn,\n        disabled: disabledIds === null || disabledIds === void 0 ? void 0 : (0, _includes.default)(disabledIds).call(disabledIds, item.id),\n        onClick: function onClick() {\n          onDelSelect === null || onDelSelect === void 0 || onDelSelect(item, index);\n        }\n      }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n        type: \"delete\"\n      })));\n    });\n  }, [selectedList, disabledIds]);\n  var onClean = function onClean() {\n    var newSelectedList = (0, _filter.default)(selectedList).call(selectedList, function (item) {\n      return disabledIds === null || disabledIds === void 0 ? void 0 : (0, _includes.default)(disabledIds).call(disabledIds, item.id);\n    });\n    dispatch({\n      type: UPDATE_SELECTED_LIST,\n      payload: {\n        selectedList: newSelectedList\n      }\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_main\")]\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_table\")]\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_table_header\")]\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_table_search\")]\n  }, /*#__PURE__*/_react.default.createElement(_SearchInput.default, {\n    placeholder: \"\\u641C\\u7D22\",\n    borderType: \"bordered\",\n    prefix: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"sousuo\"\n    }),\n    size: \"small\",\n    onChange: handleKeywordChange,\n    allowClear: true\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_table_body\")]\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.DataGrid, {\n    columns: tableColumn,\n    showSelected: true,\n    dataSource: personData.rows,\n    onRowSelectChange: handleSelectedRows,\n    onPageChange: onPaginationChange,\n    rowSelection: {\n      type: isMulti ? 'checkbox' : 'radio',\n      value: selectedIds || [],\n      highlightRowWhenSelected: true,\n      column: {\n        lock: true\n      },\n      onChange: handleSelectedRows,\n      clickArea: 'row'\n    },\n    primaryKey: \"id\"\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_table_pagination\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Pagination, {\n    pageType: \"nicety\",\n    current: pageParams.current.page_no,\n    showQuickJumper: false,\n    pageSize: pageParams.current.page_size,\n    onChange: onPaginationChange,\n    total: (personData === null || personData === void 0 ? void 0 : personData.totalCount) || 0,\n    dropdownProps: {\n      getPopupContainer: function getPopupContainer() {\n        return document.body;\n      }\n    },\n    showSizeChanger: true\n  }))), isMulti ? /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default.selected\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default.selected_nav\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default.nav_title\n  }, \"\\u5DF2\\u9009(\", selectedList === null || selectedList === void 0 ? void 0 : selectedList.length, \")\"), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: onClean,\n    type: \"text\",\n    major: true\n  }, \"\\u6E05\\u7A7A\"))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PersonSelectModal.default.selected_list\n  }, renderItem())) : null);\n});\nPersonDataGrid.displayName = 'PersonDataGrid';\nvar scale = 240 / 1180;\nvar calcModalHeight = function calcModalHeight(_ref5) {\n  var height = _ref5.height,\n    min = _ref5.min,\n    max = _ref5.max;\n  if (height > max) return max;\n  if (height < min) return min;\n  return height;\n};\nvar PersonSelectModal = (0, _react.memo)(function (_ref6) {\n  var visible = _ref6.visible,\n    _ref6$disabledIds = _ref6.disabledIds,\n    disabledIds = _ref6$disabledIds === void 0 ? [] : _ref6$disabledIds,\n    selectedList = _ref6.selectedList,\n    onClose = _ref6.onClose,\n    onConfirm = _ref6.onConfirm,\n    isMulti = _ref6.isMulti,\n    withScope = _ref6.withScope;\n  var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),\n    height = _useWindowSize.height;\n  var _useState11 = (0, _react.useState)(calcModalHeight({\n      height: height - 64,\n      min: 520,\n      max: 1080\n    })),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    modalHeight = _useState12[0],\n    setModalHeight = _useState12[1];\n  var _useReducer = (0, _react.useReducer)(reducer, personSelectModalState),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    state = _useReducer2[0],\n    dispatch = _useReducer2[1];\n\n  /**\n   * 外部的选中发生变化\n   */\n  (0, _react.useEffect)(function () {\n    dispatch({\n      type: UPDATE_SELECTED_LIST,\n      payload: {\n        selectedList: selectedList\n      }\n    });\n  }, [selectedList]);\n  var content = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content\")]\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.SplitPanel, {\n      className: _PersonSelectModal.default[\"\".concat(prefixClass, \"_content_split\")],\n      defaultSplit: scale,\n      min: \"240px\",\n      firstSlot: /*#__PURE__*/_react.default.createElement(OrgTree, {\n        dispatch: dispatch,\n        withScope: withScope\n      }),\n      secondSlot: /*#__PURE__*/_react.default.createElement(PersonDataGrid, {\n        state: state,\n        dispatch: dispatch,\n        isMulti: isMulti,\n        disabledIds: disabledIds,\n        withScope: withScope\n      })\n    }));\n  }, [state, dispatch, selectedList, disabledIds]);\n\n  /**\n   * 点击确定要把选中的人员带出去\n   */\n  var handleConfirm = (0, _react.useCallback)(function () {\n    onConfirm(state.selectedList);\n  }, [state.selectedList, onConfirm]);\n  var debounceSetModalHeight = (0, _useDebounce.default)(setModalHeight);\n  (0, _react.useEffect)(function () {\n    var newModalHeight = calcModalHeight({\n      height: height - 64,\n      min: 520,\n      max: 1080\n    });\n    if (newModalHeight % 2 !== 0) {\n      debounceSetModalHeight(newModalHeight - 1);\n    }\n  }, [height]);\n  return /*#__PURE__*/_react.default.createElement(_Modal.default, {\n    title: \"\\u8BF7\\u9009\\u62E9\",\n    width: 1244,\n    height: modalHeight,\n    visible: visible,\n    keyboard: false,\n    maskClosable: false,\n    closable: true,\n    body: content,\n    className: _PersonSelectModal.default[prefixClass],\n    onCancel: onClose,\n    onOk: handleConfirm\n  });\n});\nPersonSelectModal.displayName = 'PersonSelectModal';\nvar _default = exports[\"default\"] = PersonSelectModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/permission/PersonSelectModal.tsx\n");

/***/ })

}]);