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

/***/ "./src/web/component/apps/BatchEditModal.less":
/*!****************************************************!*\
  !*** ./src/web/component/apps/BatchEditModal.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\":\"_6P32Nzmm_modal\",\"modalBody\":\"_3vhPyGtn_modalBody\",\"modalFooter\":\"_0FNe3CpY_modalFooter\",\"modalFooterRight\":\"_2w5lqUPs_modalFooterRight\",\"modalFooterBtn\":\"XvFraAx2_modalFooterBtn\",\"fieldItem\":\"D7Pu4N+N_fieldItem\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hcHBzL0JhdGNoRWRpdE1vZGFsLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9hcHBzL0JhdGNoRWRpdE1vZGFsLmxlc3M/MTE1YyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcIm1vZGFsXCI6XCJfNlAzMk56bW1fbW9kYWxcIixcIm1vZGFsQm9keVwiOlwiXzN2aFB5R3RuX21vZGFsQm9keVwiLFwibW9kYWxGb290ZXJcIjpcIl8wRk5lM0NwWV9tb2RhbEZvb3RlclwiLFwibW9kYWxGb290ZXJSaWdodFwiOlwiXzJ3NWxxVVBzX21vZGFsRm9vdGVyUmlnaHRcIixcIm1vZGFsRm9vdGVyQnRuXCI6XCJYdkZyYUF4Ml9tb2RhbEZvb3RlckJ0blwiLFwiZmllbGRJdGVtXCI6XCJEN1B1NE4rTl9maWVsZEl0ZW1cIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/apps/BatchEditModal.less\n");

/***/ }),

/***/ "./src/web/layout/apps/LeftLayout.less":
/*!*********************************************!*\
  !*** ./src/web/layout/apps/LeftLayout.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\"] = ({\"app_left\":\"J-FOgXA9_app_left\",\"leaf-icon-wrapper\":\"tsNn+cDH_leaf-icon-wrapper\",\"avatar\":\"t0RjazoE_avatar\",\"empty-group\":\"C8aBKBa-_empty-group\",\"search\":\"BIfT2sQl_search\",\"search-icon\":\"k54CQOJ1_search-icon\",\"group-node-hover\":\"_5Y7shU38_group-node-hover\",\"blue\":\"jdAXE2P0_blue\",\"switch-icon\":\"mps35ixO_switch-icon\",\"app_main\":\"_6PDgQBQf_app_main\",\"app_main_bg\":\"xiDIoCV9_app_main_bg\",\"title\":\"GLiPVPX8_title\",\"title-name\":\"h2Z7KB3r_title-name\",\"go-designer\":\"w-9VVRZu_go-designer\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hcHBzL0xlZnRMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2FwcHMvTGVmdExheW91dC5sZXNzPzhjOTYiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJhcHBfbGVmdFwiOlwiSi1GT2dYQTlfYXBwX2xlZnRcIixcImxlYWYtaWNvbi13cmFwcGVyXCI6XCJ0c05uK2NESF9sZWFmLWljb24td3JhcHBlclwiLFwiYXZhdGFyXCI6XCJ0MFJqYXpvRV9hdmF0YXJcIixcImVtcHR5LWdyb3VwXCI6XCJDOGFCS0JhLV9lbXB0eS1ncm91cFwiLFwic2VhcmNoXCI6XCJCSWZUMnNRbF9zZWFyY2hcIixcInNlYXJjaC1pY29uXCI6XCJrNTRDUU9KMV9zZWFyY2gtaWNvblwiLFwiZ3JvdXAtbm9kZS1ob3ZlclwiOlwiXzVZN3NoVTM4X2dyb3VwLW5vZGUtaG92ZXJcIixcImJsdWVcIjpcImpkQVhFMlAwX2JsdWVcIixcInN3aXRjaC1pY29uXCI6XCJtcHMzNWl4T19zd2l0Y2gtaWNvblwiLFwiYXBwX21haW5cIjpcIl82UERnUUJRZl9hcHBfbWFpblwiLFwiYXBwX21haW5fYmdcIjpcInhpRElvQ1Y5X2FwcF9tYWluX2JnXCIsXCJ0aXRsZVwiOlwiR0xpUFZQWDhfdGl0bGVcIixcInRpdGxlLW5hbWVcIjpcImgyWjdLQjNyX3RpdGxlLW5hbWVcIixcImdvLWRlc2lnbmVyXCI6XCJ3LTlWVlJadV9nby1kZXNpZ25lclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/apps/LeftLayout.less\n");

/***/ }),

/***/ "./src/web/layout/common/BaseSettingLayout.less":
/*!******************************************************!*\
  !*** ./src/web/layout/common/BaseSettingLayout.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\"] = ({\"base\":\"O1zyc0rU_base\",\"name_field\":\"JgZKgY3D_name_field\",\"input_error\":\"Yj1Rh3Jc_input_error\",\"name\":\"OTjTUUwV_name\",\"empty_tip\":\"_1B01kiPE_empty_tip\",\"dot\":\"B-qq8uHk_dot\",\"hidden_field\":\"ytHb7azd_hidden_field\",\"hidden_name\":\"fbgOvGPz_hidden_name\",\"hidden_wrapper\":\"Ji0qsMFt_hidden_wrapper\",\"orgs_field\":\"+Blo+1wn_orgs_field\",\"orgs_name\":\"VfQ+CpWo_orgs_name\",\"person_field\":\"Fe0D0ZTE_person_field\",\"person_name\":\"lIMuSzrh_person_name\",\"tab-editor\":\"HVinxl5z_tab-editor\",\"tab-editor-item\":\"o8G5rp3A_tab-editor-item\",\"is-active\":\"KrAug184_is-active\",\"setting_option\":\"_2E6m9jBC_setting_option\",\"setting_option_timeitem_wrapper\":\"_2Z16rxVO_setting_option_timeitem_wrapper\",\"setting_option_timeitem\":\"GXZvFfBJ_setting_option_timeitem\",\"setting_option_item\":\"HSsrOBoN_setting_option_item\",\"setting_option_name\":\"sd9+m-k2_setting_option_name\",\"edit_item\":\"_5OF88OBN_edit_item\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vQmFzZVNldHRpbmdMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2NvbW1vbi9CYXNlU2V0dGluZ0xheW91dC5sZXNzP2Q3N2YiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJiYXNlXCI6XCJPMXp5YzByVV9iYXNlXCIsXCJuYW1lX2ZpZWxkXCI6XCJKZ1pLZ1kzRF9uYW1lX2ZpZWxkXCIsXCJpbnB1dF9lcnJvclwiOlwiWWoxUmgzSmNfaW5wdXRfZXJyb3JcIixcIm5hbWVcIjpcIk9UalRVVXdWX25hbWVcIixcImVtcHR5X3RpcFwiOlwiXzFCMDFraVBFX2VtcHR5X3RpcFwiLFwiZG90XCI6XCJCLXFxOHVIa19kb3RcIixcImhpZGRlbl9maWVsZFwiOlwieXRIYjdhemRfaGlkZGVuX2ZpZWxkXCIsXCJoaWRkZW5fbmFtZVwiOlwiZmJnT3ZHUHpfaGlkZGVuX25hbWVcIixcImhpZGRlbl93cmFwcGVyXCI6XCJKaTBxc01GdF9oaWRkZW5fd3JhcHBlclwiLFwib3Jnc19maWVsZFwiOlwiK0Jsbysxd25fb3Jnc19maWVsZFwiLFwib3Jnc19uYW1lXCI6XCJWZlErQ3BXb19vcmdzX25hbWVcIixcInBlcnNvbl9maWVsZFwiOlwiRmUwRDBaVEVfcGVyc29uX2ZpZWxkXCIsXCJwZXJzb25fbmFtZVwiOlwibElNdVN6cmhfcGVyc29uX25hbWVcIixcInRhYi1lZGl0b3JcIjpcIkhWaW54bDV6X3RhYi1lZGl0b3JcIixcInRhYi1lZGl0b3ItaXRlbVwiOlwibzhHNXJwM0FfdGFiLWVkaXRvci1pdGVtXCIsXCJpcy1hY3RpdmVcIjpcIktyQXVnMTg0X2lzLWFjdGl2ZVwiLFwic2V0dGluZ19vcHRpb25cIjpcIl8yRTZtOWpCQ19zZXR0aW5nX29wdGlvblwiLFwic2V0dGluZ19vcHRpb25fdGltZWl0ZW1fd3JhcHBlclwiOlwiXzJaMTZyeFZPX3NldHRpbmdfb3B0aW9uX3RpbWVpdGVtX3dyYXBwZXJcIixcInNldHRpbmdfb3B0aW9uX3RpbWVpdGVtXCI6XCJHWFp2RmZCSl9zZXR0aW5nX29wdGlvbl90aW1laXRlbVwiLFwic2V0dGluZ19vcHRpb25faXRlbVwiOlwiSFNzck9Cb05fc2V0dGluZ19vcHRpb25faXRlbVwiLFwic2V0dGluZ19vcHRpb25fbmFtZVwiOlwic2Q5K20tazJfc2V0dGluZ19vcHRpb25fbmFtZVwiLFwiZWRpdF9pdGVtXCI6XCJfNU9GODhPQk5fZWRpdF9pdGVtXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/common/BaseSettingLayout.less\n");

/***/ }),

/***/ "./src/web/layout/common/ColumnSettingLayout.less":
/*!********************************************************!*\
  !*** ./src/web/layout/common/ColumnSettingLayout.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\"] = ({\"layout\":\"jQn3Zs+b_layout\",\"head\":\"lEhMJ5Vd_head\",\"search\":\"N3idDjuA_search\",\"body\":\"NzxCQHJ7_body\",\"footer\":\"O29oxuIy_footer\",\"clear\":\"Q075H-R+_clear\",\"item_content\":\"loVwSEO9_item_content\",\"label\":\"_9g3Fos28_label\",\"count\":\"_4BQAm+JD_count\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vQ29sdW1uU2V0dGluZ0xheW91dC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvY29tbW9uL0NvbHVtblNldHRpbmdMYXlvdXQubGVzcz8xZGY0Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibGF5b3V0XCI6XCJqUW4zWnMrYl9sYXlvdXRcIixcImhlYWRcIjpcImxFaE1KNVZkX2hlYWRcIixcInNlYXJjaFwiOlwiTjNpZERqdUFfc2VhcmNoXCIsXCJib2R5XCI6XCJOenhDUUhKN19ib2R5XCIsXCJmb290ZXJcIjpcIk8yOW94dUl5X2Zvb3RlclwiLFwiY2xlYXJcIjpcIlEwNzVILVIrX2NsZWFyXCIsXCJpdGVtX2NvbnRlbnRcIjpcImxvVndTRU85X2l0ZW1fY29udGVudFwiLFwibGFiZWxcIjpcIl85ZzNGb3MyOF9sYWJlbFwiLFwiY291bnRcIjpcIl80QlFBbStKRF9jb3VudFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/common/ColumnSettingLayout.less\n");

/***/ }),

/***/ "./src/web/layout/common/FilterSettingLayout.less":
/*!********************************************************!*\
  !*** ./src/web/layout/common/FilterSettingLayout.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\"] = ({\"layout\":\"YOwHo1WE_layout\",\"head\":\"NDPeFpUz_head\",\"body\":\"-2FfTb1g_body\",\"filtereditor\":\"SvGXeCeZ_filtereditor\",\"editor_bottom\":\"OpXL1iQP_editor_bottom\",\"footer\":\"_2JenMy5w_footer\",\"clear\":\"aogiJCC5_clear\",\"item_content\":\"VcbjsXeP_item_content\",\"label\":\"jhFHXE5J_label\",\"count\":\"iy4Efyv6_count\",\"with_filter_footer\":\"gSm8q8Ia_with_filter_footer\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vRmlsdGVyU2V0dGluZ0xheW91dC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvY29tbW9uL0ZpbHRlclNldHRpbmdMYXlvdXQubGVzcz84MDBiIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibGF5b3V0XCI6XCJZT3dIbzFXRV9sYXlvdXRcIixcImhlYWRcIjpcIk5EUGVGcFV6X2hlYWRcIixcImJvZHlcIjpcIi0yRmZUYjFnX2JvZHlcIixcImZpbHRlcmVkaXRvclwiOlwiU3ZHWGVDZVpfZmlsdGVyZWRpdG9yXCIsXCJlZGl0b3JfYm90dG9tXCI6XCJPcFhMMWlRUF9lZGl0b3JfYm90dG9tXCIsXCJmb290ZXJcIjpcIl8ySmVuTXk1d19mb290ZXJcIixcImNsZWFyXCI6XCJhb2dpSkNDNV9jbGVhclwiLFwiaXRlbV9jb250ZW50XCI6XCJWY2Jqc1hlUF9pdGVtX2NvbnRlbnRcIixcImxhYmVsXCI6XCJqaEZIWEU1Sl9sYWJlbFwiLFwiY291bnRcIjpcIml5NEVmeXY2X2NvdW50XCIsXCJ3aXRoX2ZpbHRlcl9mb290ZXJcIjpcImdTbThxOElhX3dpdGhfZmlsdGVyX2Zvb3RlclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/common/FilterSettingLayout.less\n");

/***/ }),

/***/ "./src/web/layout/common/SiderMenu.less":
/*!**********************************************!*\
  !*** ./src/web/layout/common/SiderMenu.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\"] = ({\"side_bar\":\"CnKEP5+L_side_bar\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vU2lkZXJNZW51Lmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9jb21tb24vU2lkZXJNZW51Lmxlc3M/MzAwMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInNpZGVfYmFyXCI6XCJDbktFUDUrTF9zaWRlX2JhclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/common/SiderMenu.less\n");

/***/ }),

/***/ "./src/web/layout/common/SortSettingLayout.less":
/*!******************************************************!*\
  !*** ./src/web/layout/common/SortSettingLayout.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\"] = ({\"layout\":\"_2fwWkkO4_layout\",\"head\":\"N+JBAPre_head\",\"body\":\"_0QTcb--J_body\",\"footer\":\"mkdLJcki_footer\",\"clear\":\"tilRIwj3_clear\",\"item_content\":\"_2aJp72Zi_item_content\",\"label\":\"OuCea6dn_label\",\"count\":\"cFGXAybf_count\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vU29ydFNldHRpbmdMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2NvbW1vbi9Tb3J0U2V0dGluZ0xheW91dC5sZXNzPzdlYzIiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJsYXlvdXRcIjpcIl8yZndXa2tPNF9sYXlvdXRcIixcImhlYWRcIjpcIk4rSkJBUHJlX2hlYWRcIixcImJvZHlcIjpcIl8wUVRjYi0tSl9ib2R5XCIsXCJmb290ZXJcIjpcIm1rZExKY2tpX2Zvb3RlclwiLFwiY2xlYXJcIjpcInRpbFJJd2ozX2NsZWFyXCIsXCJpdGVtX2NvbnRlbnRcIjpcIl8yYUpwNzJaaV9pdGVtX2NvbnRlbnRcIixcImxhYmVsXCI6XCJPdUNlYTZkbl9sYWJlbFwiLFwiY291bnRcIjpcImNGR1hBeWJmX2NvdW50XCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/common/SortSettingLayout.less\n");

/***/ }),

/***/ "./src/web/layout/common/StatisticSettingLayout.less":
/*!***********************************************************!*\
  !*** ./src/web/layout/common/StatisticSettingLayout.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\"] = ({\"layout\":\"_9xCoS+le_layout\",\"title\":\"gt0cDyE7_title\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vU3RhdGlzdGljU2V0dGluZ0xheW91dC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvY29tbW9uL1N0YXRpc3RpY1NldHRpbmdMYXlvdXQubGVzcz80ODhiIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibGF5b3V0XCI6XCJfOXhDb1MrbGVfbGF5b3V0XCIsXCJ0aXRsZVwiOlwiZ3QwY0R5RTdfdGl0bGVcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/layout/common/StatisticSettingLayout.less\n");

/***/ }),

/***/ "./src/web/layout/common/TableSchemeConfigPopLayout.less":
/*!***************************************************************!*\
  !*** ./src/web/layout/common/TableSchemeConfigPopLayout.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\"] = ({\"view_config\":\"LAQynChd_view_config\",\"config_body\":\"_2vLtSPkg_config_body\",\"footer\":\"Tz+cc4+3_footer\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vVGFibGVTY2hlbWVDb25maWdQb3BMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2NvbW1vbi9UYWJsZVNjaGVtZUNvbmZpZ1BvcExheW91dC5sZXNzPzJmYzEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJ2aWV3X2NvbmZpZ1wiOlwiTEFReW5DaGRfdmlld19jb25maWdcIixcImNvbmZpZ19ib2R5XCI6XCJfMnZMdFNQa2dfY29uZmlnX2JvZHlcIixcImZvb3RlclwiOlwiVHorY2M0KzNfZm9vdGVyXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/common/TableSchemeConfigPopLayout.less\n");

/***/ }),

/***/ "./src/web/pages/apps/home/AppHomePage.less":
/*!**************************************************!*\
  !*** ./src/web/pages/apps/home/AppHomePage.less ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"container\":\"xZCkvLlf_container\",\"main\":\"Q4tOYR7D_main\",\"actions\":\"bWy1YpOa_actions\",\"buttons\":\"UauZzE7y_buttons\",\"buttonsChild\":\"pGUbxXTz_buttonsChild\",\"toolbarItem\":\"_9hxMKAcW_toolbarItem\",\"dropdown\":\"G5v3uNwU_dropdown\",\"toolbarIcon\":\"bTs9mrxX_toolbarIcon\",\"svgIcon\":\"D57oEenD_svgIcon\",\"vas_action\":\"IE4yQ52l_vas_action\",\"search\":\"_4DAkdQkg_search\",\"search-icon\":\"+sOWIZZw_search-icon\",\"split_line\":\"p0ji3vEu_split_line\",\"refresh\":\"_1yOhcDKz_refresh\",\"refresh_load\":\"B-0JbAbj_refresh_load\",\"fullscreen\":\"-8WLaLyw_fullscreen\",\"list\":\"a+6TzMd-_list\",\"nav\":\"RVTtC7kZ_nav\",\"btn\":\"lmIDBi2N_btn\",\"btn-active\":\"avPw+fjY_btn-active\",\"tab\":\"ESYNR47Z_tab\",\"tab_name\":\"aTpmAIzV_tab_name\",\"filter-bar\":\"O129BCan_filter-bar\",\"filter-label-bar\":\"CqIf1MhZ_filter-label-bar\",\"setting\":\"PVuYjJK5_setting\",\"row-setting\":\"bIz6uQSC_row-setting\",\"table_list\":\"Xu4D4ge8_table_list\",\"page\":\"_2Rk6iEn1_page\",\"page_total\":\"S-M6H+mE_page_total\",\"container-full-screen\":\"BpZlnBP9_container-full-screen\",\"pop_bill\":\"_5X6H8833_pop_bill\",\"pop_container\":\"H0rgIR0u_pop_container\",\"head_filter_tab_header\":\"FkWuPBoO_head_filter_tab_header\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FwcHMvaG9tZS9BcHBIb21lUGFnZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9wYWdlcy9hcHBzL2hvbWUvQXBwSG9tZVBhZ2UubGVzcz80MjBkIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiY29udGFpbmVyXCI6XCJ4WkNrdkxsZl9jb250YWluZXJcIixcIm1haW5cIjpcIlE0dE9ZUjdEX21haW5cIixcImFjdGlvbnNcIjpcImJXeTFZcE9hX2FjdGlvbnNcIixcImJ1dHRvbnNcIjpcIlVhdVp6RTd5X2J1dHRvbnNcIixcImJ1dHRvbnNDaGlsZFwiOlwicEdVYnhYVHpfYnV0dG9uc0NoaWxkXCIsXCJ0b29sYmFySXRlbVwiOlwiXzloeE1LQWNXX3Rvb2xiYXJJdGVtXCIsXCJkcm9wZG93blwiOlwiRzV2M3VOd1VfZHJvcGRvd25cIixcInRvb2xiYXJJY29uXCI6XCJiVHM5bXJ4WF90b29sYmFySWNvblwiLFwic3ZnSWNvblwiOlwiRDU3b0VlbkRfc3ZnSWNvblwiLFwidmFzX2FjdGlvblwiOlwiSUU0eVE1MmxfdmFzX2FjdGlvblwiLFwic2VhcmNoXCI6XCJfNERBa2RRa2dfc2VhcmNoXCIsXCJzZWFyY2gtaWNvblwiOlwiK3NPV0laWndfc2VhcmNoLWljb25cIixcInNwbGl0X2xpbmVcIjpcInAwamkzdkV1X3NwbGl0X2xpbmVcIixcInJlZnJlc2hcIjpcIl8xeU9oY0RLel9yZWZyZXNoXCIsXCJyZWZyZXNoX2xvYWRcIjpcIkItMEpiQWJqX3JlZnJlc2hfbG9hZFwiLFwiZnVsbHNjcmVlblwiOlwiLThXTGFMeXdfZnVsbHNjcmVlblwiLFwibGlzdFwiOlwiYSs2VHpNZC1fbGlzdFwiLFwibmF2XCI6XCJSVlR0QzdrWl9uYXZcIixcImJ0blwiOlwibG1JREJpMk5fYnRuXCIsXCJidG4tYWN0aXZlXCI6XCJhdlB3K2ZqWV9idG4tYWN0aXZlXCIsXCJ0YWJcIjpcIkVTWU5SNDdaX3RhYlwiLFwidGFiX25hbWVcIjpcImFUcG1BSXpWX3RhYl9uYW1lXCIsXCJmaWx0ZXItYmFyXCI6XCJPMTI5QkNhbl9maWx0ZXItYmFyXCIsXCJmaWx0ZXItbGFiZWwtYmFyXCI6XCJDcUlmMU1oWl9maWx0ZXItbGFiZWwtYmFyXCIsXCJzZXR0aW5nXCI6XCJQVnVZakpLNV9zZXR0aW5nXCIsXCJyb3ctc2V0dGluZ1wiOlwiYkl6NnVRU0Nfcm93LXNldHRpbmdcIixcInRhYmxlX2xpc3RcIjpcIlh1NEQ0Z2U4X3RhYmxlX2xpc3RcIixcInBhZ2VcIjpcIl8yUms2aUVuMV9wYWdlXCIsXCJwYWdlX3RvdGFsXCI6XCJTLU02SCttRV9wYWdlX3RvdGFsXCIsXCJjb250YWluZXItZnVsbC1zY3JlZW5cIjpcIkJwWmxuQlA5X2NvbnRhaW5lci1mdWxsLXNjcmVlblwiLFwicG9wX2JpbGxcIjpcIl81WDZIODgzM19wb3BfYmlsbFwiLFwicG9wX2NvbnRhaW5lclwiOlwiSDByZ0lSMHVfcG9wX2NvbnRhaW5lclwiLFwiaGVhZF9maWx0ZXJfdGFiX2hlYWRlclwiOlwiRmtXdVBCb09faGVhZF9maWx0ZXJfdGFiX2hlYWRlclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/pages/apps/home/AppHomePage.less\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = usePolling;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _setTimeout2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/*\n * @Description: 请求轮询\n * @Author: jianhang_he\n * @Date: 2022-10-18 19:56:29\n * @LastEditTime: 2022-10-18 20:23:52\n * @Last Modified by: jianhang_he\n */\n\n/**\n * 请求轮询(组件销毁会自动停止轮询,调用endPolling也可主动停止轮询)\n * @param callback 要进行轮询的请求\n * @param interval 轮询间隔时间\n * @returns [startPolling, endPolling] 轮询开始函数，轮询停止函数\n */\nfunction usePolling(callback) {\n  var interval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;\n  var timerRef = (0, _react.useRef)(0);\n  var cancelRef = (0, _react.useRef)(false);\n\n  // 停止轮询\n  var stopPolling = function stopPolling() {\n    cancelRef.current = true;\n    clearTimeout(timerRef.current);\n  };\n\n  // 组件卸载的时候停止沦陷\n  (0, _react.useEffect)(function () {\n    return stopPolling;\n  }, []);\n\n  // 轮询\n  var polling = /*#__PURE__*/function () {\n    var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            _context.prev = 0;\n            _context.next = 3;\n            return callback(stopPolling);\n          case 3:\n            _context.next = 9;\n            break;\n          case 5:\n            _context.prev = 5;\n            _context.t0 = _context[\"catch\"](0);\n            console.error('轮询出错：', _context.t0);\n            throw new Error('轮询出错：', _context.t0);\n          case 9:\n            if (!cancelRef.current) {\n              _context.next = 11;\n              break;\n            }\n            return _context.abrupt(\"return\");\n          case 11:\n            return _context.abrupt(\"return\", timerRef.current = (0, _setTimeout2.default)(polling, interval));\n          case 12:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee, null, [[0, 5]]);\n    }));\n    return function polling() {\n      return _ref.apply(this, arguments);\n    };\n  }();\n\n  // 开始轮询\n  var startPolling = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n      return _regenerator.default.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            cancelRef.current = false;\n            _context2.next = 3;\n            return polling();\n          case 3:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2);\n    }));\n    return function startPolling() {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  return [startPolling, stopPolling];\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlUG9sbGluZy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQU9BO0FBUEE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQUE7QUFBQTs7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBVEE7QUFBQTtBQUFBOztBQVdBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBSEE7QUFBQTtBQUFBO0FBS0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9ob29rcy91c2VQb2xsaW5nLmpzPzVjM2MiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjog6K+35rGC6L2u6K+iXG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjItMTAtMTggMTk6NTY6MjlcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjItMTAtMTggMjA6MjM6NTJcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5pbXBvcnQgeyB1c2VFZmZlY3QsIHVzZVJlZiB9IGZyb20gJ3JlYWN0J1xuXG4vKipcbiAqIOivt+axgui9ruivoijnu4Tku7bplIDmr4HkvJroh6rliqjlgZzmraLova7or6Is6LCD55SoZW5kUG9sbGluZ+S5n+WPr+S4u+WKqOWBnOatoui9ruivoilcbiAqIEBwYXJhbSBjYWxsYmFjayDopoHov5vooYzova7or6LnmoTor7fmsYJcbiAqIEBwYXJhbSBpbnRlcnZhbCDova7or6Lpl7TpmpTml7bpl7RcbiAqIEByZXR1cm5zIFtzdGFydFBvbGxpbmcsIGVuZFBvbGxpbmddIOi9ruivouW8gOWni+WHveaVsO+8jOi9ruivouWBnOatouWHveaVsFxuICovXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiB1c2VQb2xsaW5nIChjYWxsYmFjaywgaW50ZXJ2YWwgPSAxMDAwKSB7XG4gIGNvbnN0IHRpbWVyUmVmID0gdXNlUmVmKDApXG4gIGNvbnN0IGNhbmNlbFJlZiA9IHVzZVJlZihmYWxzZSlcblxuICAvLyDlgZzmraLova7or6JcbiAgY29uc3Qgc3RvcFBvbGxpbmcgPSAoKSA9PiB7XG4gICAgY2FuY2VsUmVmLmN1cnJlbnQgPSB0cnVlXG4gICAgY2xlYXJUaW1lb3V0KHRpbWVyUmVmLmN1cnJlbnQpXG4gIH1cblxuICAvLyDnu4Tku7bljbjovb3nmoTml7blgJnlgZzmraLmsqbpmbdcbiAgdXNlRWZmZWN0KCgpID0+IHN0b3BQb2xsaW5nLCBbXSlcblxuICAvLyDova7or6JcbiAgY29uc3QgcG9sbGluZyA9IGFzeW5jICgpID0+IHtcbiAgICB0cnkge1xuICAgICAgYXdhaXQgY2FsbGJhY2soc3RvcFBvbGxpbmcpXG4gICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICBjb25zb2xlLmVycm9yKCfova7or6Llh7rplJnvvJonLCBlcnIpXG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ+i9ruivouWHuumUme+8micsIGVycilcbiAgICB9XG4gICAgaWYgKGNhbmNlbFJlZi5jdXJyZW50KSByZXR1cm5cbiAgICByZXR1cm4gKHRpbWVyUmVmLmN1cnJlbnQgPSBzZXRUaW1lb3V0KHBvbGxpbmcsIGludGVydmFsKSlcbiAgfVxuXG4gIC8vIOW8gOWni+i9ruivolxuICBjb25zdCBzdGFydFBvbGxpbmcgPSBhc3luYyAoKSA9PiB7XG4gICAgY2FuY2VsUmVmLmN1cnJlbnQgPSBmYWxzZVxuICAgIGF3YWl0IHBvbGxpbmcoKVxuICB9XG5cbiAgcmV0dXJuIFtzdGFydFBvbGxpbmcsIHN0b3BQb2xsaW5nXVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/hooks/usePolling.js\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.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 _endsWith = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/ends-with */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/ends-with.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 _indexOf = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _BatchEditModal = _interopRequireDefault(__webpack_require__(/*! ./BatchEditModal.less */ \"./src/web/component/apps/BatchEditModal.less\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _batchOperationsUtil = __webpack_require__(/*! @/utils/batchOperationsUtil */ \"./src/utils/batchOperationsUtil.ts\");\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\n// 获取单选项\nvar RadioItem = (0, _react.memo)(function (props) {\n  var _options$;\n  var _props$labelText = props.labelText,\n    labelText = _props$labelText === void 0 ? '更新方式' : _props$labelText,\n    options = props.options,\n    valueProps = props.value,\n    defaultValue = props.defaultValue,\n    onChange = props.onChange,\n    className = props.className;\n  var _useState = (0, _react.useState)((options === null || options === void 0 || (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value) || ''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  (0, _react.useEffect)(function () {\n    setValue(valueProps);\n  }, [valueProps]);\n  var handleChange = (0, _react.useCallback)(function (e, checkedValue) {\n    setValue(checkedValue);\n    onChange === null || onChange === void 0 || onChange(checkedValue);\n  }, [onChange]);\n  return /*#__PURE__*/_react.default.createElement(_WebUI.FieldItem, {\n    labelText: labelText,\n    className: className,\n    showTitle: true\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Radio.Group, {\n    defaultValue: defaultValue || value,\n    value: value,\n    onChange: handleChange\n  }, options === null || options === void 0 ? void 0 : (0, _map.default)(options).call(options, function (item) {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Radio, {\n      value: item.value,\n      key: item.value\n    }, item.label);\n  })));\n});\nvar UPDATE_WAY = {\n  add: 'add',\n  update: 'update',\n  replace: 'replace'\n};\nvar BatchEditContent = (0, _react.memo)(function (_ref) {\n  var visible = _ref.visible,\n    controlMeta = _ref.controlMeta,\n    refBillProps = _ref.refBillProps,\n    colHeadFilter = _ref.colHeadFilter,\n    isChange = _ref.isChange,\n    opType = _ref.opType,\n    onChange = _ref.onChange,\n    onUpdateChange = _ref.onUpdateChange,\n    onSearchChange = _ref.onSearchChange;\n  var entityId = controlMeta.entityId,\n    isMulti = controlMeta.isMulti,\n    displayProp = controlMeta.displayProp,\n    items = controlMeta.items,\n    fieldName = controlMeta.fieldName,\n    maxLength = controlMeta.maxLength;\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    curvalue = _useState4[0],\n    setCurvalue = _useState4[1];\n  var getValueTypeByType = _WebUI.ListFilterUtil.getValueTypeByType,\n    getValue = _WebUI.ListFilterUtil.getValue,\n    transform2Options = _WebUI.ListFilterUtil.transform2Options,\n    createValue = _WebUI.ListFilterUtil.createValue;\n  var valueInputType = getValueTypeByType(controlMeta);\n  var fieldType = valueInputType === 'select' && isMulti === true ? 'multiSelect' : valueInputType;\n  var dataValue = getValue(fieldType, curvalue, colHeadFilter === null || colHeadFilter === void 0 ? void 0 : colHeadFilter[fieldName], isMulti);\n  var billProps = _objectSpread(_objectSpread({}, refBillProps), {}, {\n    batchInvokeListConfig: function batchInvokeListConfig() {\n      return refBillProps.batchInvokeListConfig(entityId, controlMeta);\n    },\n    controlMeta: controlMeta,\n    value: Array.isArray(dataValue) ? dataValue.join(',') : dataValue,\n    onChange: function onChange(v) {\n      return handleValChange(Array.isArray(v) ? v : v === '' ? [] : v === null || v === void 0 ? void 0 : v.split(','), fieldType);\n    }\n    // baseUrl, getBaseControl, useFieldProps,\n    // batchInvoke: onBatchInvoke, getControlText, addControlAction, onDownLoad,\n    // batchInvokeListConfig, batchInvokeQuery\n  });\n  var handleValChange = function handleValChange(v, fieldType) {\n    var value = createValue(v, fieldType === 'number' ? 'decimal' : fieldType);\n    setCurvalue(value);\n    onChange === null || onChange === void 0 || onChange(value, fieldType);\n  };\n  (0, _react.useEffect)(function () {\n    // 每次比较符号改变都要重新发请求，因为useKDRefBill是重新执行的\n    entityId && valueInputType === 'refbill' && (refBillProps === null || refBillProps === void 0 ? void 0 : refBillProps.batchInvokeQuery(entityId, {\n      page_size: 10,\n      page_no: 1,\n      search: '',\n      select: displayProp\n    }));\n    if (isChange) {\n      setCurvalue([]);\n    }\n  }, [entityId, valueInputType, isChange]);\n\n  // 切换字段类型会改变更新方式的默认值\n  (0, _react.useEffect)(function () {\n    onUpdateChange(isMulti ? _batchOperationsUtil.MultiUpdateOptions[0].value : _batchOperationsUtil.DefaultUpdateWay);\n  }, [isMulti, fieldType]);\n\n  /**\n  *  分割千分位\n  */\n  var thousandsSeparatorFormat = function thousandsSeparatorFormat(numStr) {\n    var arr = numStr.split('.');\n    var reg = /\\B(?=(\\d{3})+(?!\\d))/g;\n    if (arr.length === 2) {\n      var _context;\n      var _arr = (0, _slicedToArray2.default)(arr, 2),\n        v1 = _arr[0],\n        v2 = _arr[1];\n      return (0, _concat.default)(_context = \"\".concat(v1.replace(reg, ','), \".\")).call(_context, v2);\n    }\n    return arr[0].replace(reg, ',');\n  };\n  var formatter = (0, _react.useCallback)(function (value) {\n    var ThousandsSeparator = controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.ThousandsSeparator;\n    if (ThousandsSeparator) {\n      return thousandsSeparatorFormat(\"\".concat(value));\n    } else {\n      return String(value);\n    }\n  }, []);\n  var rangeProps = (0, _react.useMemo)(function () {\n    var range = {};\n    var _ref2 = (controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.dataRange) || {},\n      min = _ref2.min,\n      max = _ref2.max;\n    if (!(0, _lodash.isUndefined)(min) && min !== '') {\n      range.min = Number(min);\n    }\n    if (!(0, _lodash.isUndefined)(max) && max !== '') {\n      range.max = Number(max);\n    }\n    return range;\n  }, [controlMeta]);\n  var refBillParams = (0, _WebUI.useKDRefBill)(billProps, !!refBillProps && fieldType === 'refbill');\n\n  // 获取不同字段类型的特殊属性\n  var getValueProps = function getValueProps() {\n    var valueProps = {};\n    switch (fieldType) {\n      case 'refbill':\n        valueProps = _objectSpread(_objectSpread({\n          className: 'kd-modal-body-refbill'\n        }, refBillParams), {}, {\n          value: dataValue[0]\n        });\n        break;\n      case 'number':\n        valueProps = _objectSpread(_objectSpread({}, rangeProps), {}, {\n          showStepper: true,\n          formatter: formatter,\n          decimalLength: controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.scale,\n          digitLength: controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.precision\n        });\n        break;\n      case 'textarea':\n        valueProps = {\n          maxLength: maxLength,\n          count: true,\n          showCount: true\n        };\n        break;\n      case 'datetime':\n      case 'dateRange':\n        valueProps = {\n          formatType: controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.formatType\n        };\n        break;\n    }\n    return valueProps;\n  };\n  var valueProps = getValueProps();\n  var selVal = fieldType === 'refbill' ? valueProps.value : dataValue;\n  var valueData = _objectSpread(_objectSpread({\n    title: '更新为',\n    name: 'value',\n    options: transform2Options(items),\n    className: 'kd-modal-body-infoValue',\n    colHeadFilter: colHeadFilter === null || colHeadFilter === void 0 ? void 0 : colHeadFilter[fieldName],\n    fieldType: fieldType,\n    // onVisibleChange: (visible) => handleValuePanelVisibleChange(visible, v),\n    borderType: 'bordered',\n    isMulti: isMulti\n  }, valueProps), {}, {\n    onChange: function onChange(v) {\n      return handleValChange(v, fieldType);\n    },\n    allowClear: fieldType !== 'number',\n    value: selVal === undefined || selVal === null ? '' : selVal\n  });\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _includes.default)(_batchOperationsUtil.SensitiveTypes).call(_batchOperationsUtil.SensitiveTypes, fieldType) && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BatchEditModal.default.updateVal\n  }, /*#__PURE__*/_react.default.createElement(RadioItem, {\n    className: _BatchEditModal.default.fieldItem,\n    options: _batchOperationsUtil.TextUpdateOptions,\n    value: opType,\n    defaultValue: _batchOperationsUtil.TextUpdateOptions[0].value,\n    onChange: onUpdateChange\n  }), opType === UPDATE_WAY.replace && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_WebUI.FieldItem, {\n    className: _BatchEditModal.default.fieldItem,\n    labelText: \"\\u67E5\\u627E\",\n    showTitle: true,\n    required: true\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    onChange: onSearchChange\n  })), /*#__PURE__*/_react.default.createElement(_WebUI.FieldItem, {\n    className: _BatchEditModal.default.fieldItem,\n    labelText: \"\\u66FF\\u6362\\u4E3A\",\n    showTitle: true\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    onChange: onChange,\n    maxLength: maxLength || 2000\n  })))), opType !== UPDATE_WAY.replace && /*#__PURE__*/_react.default.createElement(_kdesign.ConfigProvider, {\n    value: {\n      prefixCls: 'kd'\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BatchEditModal.default.fieldItem\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.ConditionFilterItem, {\n    data: [valueData],\n    customInput: [{\n      type: 'notInput',\n      render: function render(_ref3) {\n        var value = _ref3.value,\n          className = _ref3.className;\n        return /*#__PURE__*/_react.default.createElement(\"span\", {\n          className: className\n        }, value);\n      }\n    }],\n    valueRequired: true,\n    className: \"kd-item\",\n    conditionFilterItemType: 2\n  }))), isMulti && /*#__PURE__*/_react.default.createElement(RadioItem, {\n    value: opType,\n    className: _BatchEditModal.default.fieldItem,\n    options: _batchOperationsUtil.MultiUpdateOptions,\n    defaultValue: _batchOperationsUtil.MultiUpdateOptions[0].value,\n    onChange: onUpdateChange\n  }));\n});\nvar BatchEditModal = function BatchEditModal(props) {\n  var visible = props.visible,\n    setVisible = props.setVisible,\n    appId = props.appId,\n    formId = props.formId,\n    activeSchemaId = props.activeSchemaId,\n    searchKeywords = props.searchKeywords,\n    selectedQueryString = props.selectedQueryString,\n    listFilterConfig = props.listFilterConfig,\n    colHeadFilter = props.colHeadFilter,\n    onConfirmEdit = props.onConfirmEdit,\n    orderBy = props.orderBy,\n    refBillProps = props.refBillProps,\n    onColHeadFilterVisibleChange = props.onColHeadFilterVisibleChange,\n    listFilters = props.listFilters;\n  var _useState5 = (0, _react.useState)({}),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    fieldData = _useState6[0],\n    setFieldData = _useState6[1];\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    curval = _useState8[0],\n    setCurval = _useState8[1];\n  var _useState9 = (0, _react.useState)(''),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    curfieldType = _useState10[0],\n    setCurfieldType = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    isChange = _useState12[0],\n    setIsChange = _useState12[1];\n  var _useState13 = (0, _react.useState)([]),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    selval = _useState14[0],\n    setSelval = _useState14[1];\n  var _useState15 = (0, _react.useState)(''),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    search = _useState16[0],\n    setSearch = _useState16[1];\n  var _useState17 = (0, _react.useState)(false),\n    _useState18 = (0, _slicedToArray2.default)(_useState17, 2),\n    loading = _useState18[0],\n    setLoading = _useState18[1];\n  var onClose = function onClose() {\n    setVisible(false);\n  };\n  (0, _react.useEffect)(function () {\n    var filterOptions = [];\n    // const fieldDataProp: any[] = []\n    listFilterConfig === null || listFilterConfig === void 0 || listFilterConfig.forEach(function (item) {\n      // 屏蔽内部表格，标识为innerTable\n      if (item.type && !item.innerTable && !((0, _includes.default)(_batchOperationsUtil.NoBatchEditTypes).call(_batchOperationsUtil.NoBatchEditTypes, item.type) || (0, _includes.default)(_batchOperationsUtil.NoBatchEditStatus).call(_batchOperationsUtil.NoBatchEditStatus, item.status))) {\n        if (item.type === 'nocodedaterangefield') {\n          var _context2;\n          if ((0, _endsWith.default)(_context2 = item.fieldName).call(_context2, '_startdate')) {\n            var id = item.fieldName.replace('_startdate', '');\n            var name = item.fieldCaption.replace('.开始', '');\n            filterOptions.push({\n              label: name,\n              value: id\n            });\n            // fieldDataProp.push({ ...item, fieldName: id, number: id, FieldType: item.type, type: item.type, Key: id, PropKey: id, name: name, PropCap: name, fieldCaption: name, filterFields: [], isMulti: item.isMulti, items: [] })\n          }\n        } else {\n          filterOptions.push({\n            label: item.fieldCaption,\n            value: item.fieldName\n          });\n          // fieldDataProp.push({ ...item, FieldType: item.type, type: item.type, Key: item.fieldName, PropKey: item.fieldName, PropCap: item.fieldCaption, fieldCaption: item.fieldCaption, filterFields: [], isMulti: item.isMulti, items: [] })\n        }\n      }\n    });\n    var fieldData = {\n      name: 'field',\n      title: '内容',\n      value: '',\n      options: filterOptions,\n      fieldType: 'select',\n      borderType: 'bordered',\n      onChange: handleSelectChange,\n      className: 'nocode-designer-modal-body-fielddata',\n      placeholder: '请选择'\n      // ...fieldDataProp\n    };\n    setFieldData(fieldData);\n  }, [listFilterConfig]);\n  var controlMeta = (0, _find.default)(listFilterConfig).call(listFilterConfig, function (item) {\n    var _context3;\n    return curval !== '' && (0, _indexOf.default)(_context3 = item.fieldName).call(_context3, curval) > -1;\n  });\n  var _useState19 = (0, _react.useState)((controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.isMulti) === true ? UPDATE_WAY.add : UPDATE_WAY.update),\n    _useState20 = (0, _slicedToArray2.default)(_useState19, 2),\n    opType = _useState20[0],\n    setOpType = _useState20[1];\n  var handleSelectChange = function handleSelectChange(v) {\n    setCurval(v);\n    setIsChange(true);\n    var controlMeta = listFilterConfig === null || listFilterConfig === void 0 ? void 0 : (0, _find.default)(listFilterConfig).call(listFilterConfig, function (item) {\n      var _context4;\n      return (0, _indexOf.default)(_context4 = item.fieldName).call(_context4, v) > -1;\n    });\n    var mm = controlMeta;\n    if (controlMeta.type === 'nocodedaterangefield') {\n      var _context5;\n      if ((0, _endsWith.default)(_context5 = controlMeta.fieldName).call(_context5, '_startdate')) {\n        mm = _objectSpread(_objectSpread({}, controlMeta), {}, {\n          name: controlMeta.name.replace('.开始', ''),\n          fieldCaption: controlMeta.fieldCaption.replace('.开始', ''),\n          fieldName: controlMeta.fieldName.replace('_startdate', ''),\n          number: controlMeta.number.replace('_startdate', '')\n        });\n      }\n    }\n    onColHeadFilterVisibleChange(mm);\n    changeOpType(mm);\n    setCurfieldType(controlMeta.type);\n  };\n  var changeOpType = function changeOpType(controlMeta) {\n    var type = (controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.isMulti) === true ? UPDATE_WAY.add : UPDATE_WAY.update;\n    setOpType(type);\n  };\n  var changeVal = function changeVal(v, fieldType) {\n    setIsChange(false);\n    setSelval(v);\n  };\n  var handleUpdateChange = (0, _react.useCallback)(function (checkedValue) {\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setSearch('');\n      if ((0, _includes.default)(_batchOperationsUtil.SensitiveTypes).call(_batchOperationsUtil.SensitiveTypes, curfieldType)) {\n        setSelval([]);\n      }\n      setOpType(checkedValue);\n    });\n  }, [curfieldType]);\n  var handleSearchChange = (0, _react.useCallback)(function (v) {\n    setSearch(v);\n  }, []);\n  var data = (0, _react.useMemo)(function () {\n    fieldData.value = curval;\n    return [fieldData];\n  }, [fieldData, curval]);\n  var body = function body() {\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_WebUI.ConditionFilterItem, {\n      data: data,\n      customInput: [{\n        type: 'notInput',\n        render: function render(_ref4) {\n          var value = _ref4.value,\n            className = _ref4.className;\n          return /*#__PURE__*/_react.default.createElement(\"span\", {\n            className: className\n          }, value);\n        }\n      }],\n      valueRequired: true,\n      className: \"kd-item\",\n      conditionFilterItemType: 2\n    }), controlMeta && /*#__PURE__*/_react.default.createElement(BatchEditContent, {\n      visible: visible,\n      controlMeta: controlMeta,\n      refBillProps: refBillProps,\n      colHeadFilter: colHeadFilter,\n      isChange: isChange,\n      opType: opType,\n      onChange: changeVal,\n      onUpdateChange: handleUpdateChange,\n      onSearchChange: handleSearchChange\n    }));\n  };\n  var foot = function foot() {\n    var _context6;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BatchEditModal.default.modalFooter\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BatchEditModal.default.modalFooterRight\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n      size: \"small\",\n      className: _BatchEditModal.default.modalFooterBtn,\n      onClick: onClose\n    }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n      size: \"small\",\n      loading: loading,\n      disabled: loading,\n      type: \"primary\",\n      className: _BatchEditModal.default.modalFooterBtn,\n      \"data-nc-action\": (0, _concat.default)(_context6 = \"\".concat(appId, \"|\")).call(_context6, formId, \"|au_be_comf\"),\n      onClick: onConfirm\n    }, \"\\u786E\\u5B9A\")));\n  };\n  var getConfirmParams = (0, _react.useCallback)(function () {\n    var fields = [{\n      field: curval,\n      value: selval,\n      updateMode: opType\n    }];\n    switch (curfieldType) {\n      case 'nocodedaterangefield':\n        var sv = selval;\n        if (selval.length === 0) {\n          sv = [{\n            fieldValue: ''\n          }, {\n            fieldValue: ''\n          }];\n        }\n        fields = [{\n          field: curval + '_startdate',\n          value: [sv[0]],\n          updateMode: opType\n        }, {\n          field: curval + '_enddate',\n          value: [sv[1]],\n          updateMode: opType\n        }];\n        break;\n      case 'nocodetextfield':\n      case 'nocodetextareafield':\n        // 敏感词替换模式\n        if (opType === UPDATE_WAY.replace) {\n          fields[0].value = [{\n            fieldValue: selval.toString(),\n            search: search\n          }];\n        }\n        break;\n    }\n    var params = {\n      filter: selectedQueryString,\n      fields: fields,\n      schemaId: activeSchemaId,\n      orderBy: orderBy,\n      operation: 'edit'\n    };\n    if (listFilters) {\n      params.queryFilter = listFilters[0];\n    }\n    if (searchKeywords) {\n      params.search = searchKeywords;\n    }\n    return params;\n  }, [curval, selval, opType, search, curfieldType, selectedQueryString, activeSchemaId, orderBy, listFilters, searchKeywords]);\n  var onConfirm = function onConfirm() {\n    if (curval === '') {\n      (0, _utils.showNotice)('info', '请先选择内容进行批量编辑');\n      return;\n    }\n    if (opType === UPDATE_WAY.replace && !search) {\n      (0, _utils.showNotice)('warn', '请填写要查找的内容');\n      return;\n    }\n    setLoading(true);\n    (0, _apps.batchEditFormDataListItemWithFilter)(appId, formId, getConfirmParams()).then(function (res) {\n      setLoading(false);\n      var successCount = res.successCount;\n      (0, _utils.showNotice)('success', \"\".concat(successCount, \"\\u6761\\u8BB0\\u5F55\\u6279\\u91CF\\u7F16\\u8F91\\u6210\\u529F\"));\n      onConfirmEdit(null);\n      onClose();\n    }).catch(function (err) {\n      setLoading(false);\n      (0, _batchOperationsUtil.showBatchErrNotice)(err, '批量编辑');\n      // 刷新表单并保留失败项\n      onConfirmEdit(err);\n      onClose();\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    visible: visible,\n    closable: true,\n    title: \"\\u6279\\u91CF\\u7F16\\u8F91\",\n    body: body(),\n    width: 480,\n    height: 460,\n    className: _BatchEditModal.default.modal,\n    onCancel: onClose,\n    footer: foot(),\n    showline: false,\n    maskClosable: false,\n    keyboard: false\n  });\n};\nBatchEditContent.displayName = 'BatchEditContent';\nvar _default = exports[\"default\"] = BatchEditModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/apps/BatchEditModal.tsx\n");

/***/ }),

/***/ "./src/web/component/apps/Export.tsx":
/*!*******************************************!*\
  !*** ./src/web/component/apps/Export.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 _parseInt2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js\"));\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _ImportExportModal = _interopRequireDefault(__webpack_require__(/*! ./ImportExportModal */ \"./src/web/component/apps/ImportExportModal.jsx\"));\nvar _CircleProgress = _interopRequireDefault(__webpack_require__(/*! ./CircleProgress */ \"./src/web/component/apps/CircleProgress.jsx\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _usePolling3 = _interopRequireDefault(__webpack_require__(/*! @/hooks/usePolling */ \"./src/hooks/usePolling.js\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _Import = __webpack_require__(/*! ./Import/Import */ \"./src/web/component/apps/Import/Import.tsx\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description: 应用使用页-导出弹窗（记录+附件共用）\n * @Author: jianhang_he\n * @Date: 2022-10-14 17:50:31\n * @LastEditTime: 2024-04-15 14:55:22\n * @Last Modified by: jianhang_he\n */\n\n// 状态映射\nvar statusMap = {\n  1: _constants.LOADING,\n  // 已提交\n  2: _constants.SUCCESS,\n  // 已完成\n  3: _constants.CANCELED,\n  // 已取消\n  4: _constants.FAILURE // 出错\n};\nvar statusTextMap = {\n  1: '取消',\n  2: '完成',\n  3: '关闭',\n  4: '关闭'\n};\n\n/**\n * @Description: 应用使用页-导出弹窗\n * @param visible 弹窗可见\n * @param closeModal 关闭弹窗\n * @returns\n */\nvar ExportModal = (0, _react.memo)(function (_ref) {\n  var _ref$title = _ref.title,\n    title = _ref$title === void 0 ? '导出' : _ref$title,\n    visible = _ref.visible,\n    taskId = _ref.taskId,\n    exportIdsLength = _ref.exportIdsLength,\n    formId = _ref.formId,\n    closeModal = _ref.closeModal,\n    _ref$isAtt = _ref.isAtt,\n    isAtt = _ref$isAtt === void 0 ? false : _ref$isAtt,\n    titleTips = _ref.titleTips;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    exportStatusData = _useState2[0],\n    setExportStatusData = _useState2[1];\n  var ExportName = isAtt ? '附件' : '记录';\n\n  /**\n   * 获取导出url\n   */\n  var getExportUrl = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var _res$row;\n      var res, urls, csrfToken;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            _context.next = 2;\n            return (0, _apps.queryExportUrl)({\n              taskId: taskId\n            });\n          case 2:\n            res = _context.sent;\n            stopPolling();\n            urls = res === null || res === void 0 || (_res$row = res.row) === null || _res$row === void 0 ? void 0 : _res$row.urls; // 数据量大的时候(超出excel上限)，有可能会返回多个url\n            if (Array.isArray(urls)) {\n              csrfToken = state.rootConfig.csrfToken;\n              urls.forEach(function (url, index) {\n                var newUrl = (0, _utils.getTicketUrl)(csrfToken, url);\n                (0, _utils.download)(newUrl);\n              });\n            }\n          case 6:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee);\n    }));\n    return function getExportUrl() {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * 获取导出状态\n   * @param {*} stopPolling 停止轮询\n   */\n  var getExportStatusData = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(stopPolling) {\n      var res, _res$row2, status, progress;\n      return _regenerator.default.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.next = 2;\n            return (0, _apps.queryExportStatus)({\n              taskId: taskId\n            }, isAtt);\n          case 2:\n            res = _context2.sent;\n            if (!res.row) {\n              _context2.next = 12;\n              break;\n            }\n            _res$row2 = res.row, status = _res$row2.status, progress = _res$row2.progress; // 兼容后端中间progress为null使得进度跳回0的场景\n            if (progress !== null) {\n              setExportStatusData(res.row);\n            }\n            if (!(statusMap[status] === _constants.LOADING)) {\n              _context2.next = 8;\n              break;\n            }\n            return _context2.abrupt(\"return\");\n          case 8:\n            if (statusMap[status] === _constants.SUCCESS) {\n              getExportUrl();\n            }\n            // 导入成功|失败\n            stopPolling();\n            _context2.next = 13;\n            break;\n          case 12:\n            stopPolling();\n          case 13:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2);\n    }));\n    return function getExportStatusData(_x) {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n\n  // startPollexportStatusData 开始轮询导出状态\n  // stopPolling 停止轮询\n  var _usePolling = (0, _usePolling3.default)(getExportStatusData, 1000),\n    _usePolling2 = (0, _slicedToArray2.default)(_usePolling, 2),\n    startPollexportStatusData = _usePolling2[0],\n    stopPolling = _usePolling2[1];\n  (0, _react.useEffect)(function () {\n    // 开始轮询导入状态\n    if (taskId) {\n      startPollexportStatusData();\n    }\n  }, []);\n\n  /**\n   * 关闭弹窗\n   */\n  var onClose = function onClose() {\n    closeModal && closeModal();\n  };\n\n  /**\n   * 取消（取消导出 & 关闭弹窗）\n   */\n  var onCancel = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {\n      var _res$row3, res, canceled;\n      return _regenerator.default.wrap(function _callee3$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            if (!(statusMap[exportStatusData === null || exportStatusData === void 0 ? void 0 : exportStatusData.status] === _constants.LOADING)) {\n              _context3.next = 7;\n              break;\n            }\n            _context3.next = 3;\n            return (0, _apps.cancelExport)({\n              taskId: taskId\n            }, isAtt);\n          case 3:\n            res = _context3.sent;\n            canceled = (_res$row3 = res.row) === null || _res$row3 === void 0 ? void 0 : _res$row3.canceled; // 取消导出成功\n            if (canceled) {\n              stopPolling();\n              (0, _utils.showNotice)('success', \"\\u5DF2\\u53D6\\u6D88\".concat(ExportName, \"\\u5BFC\\u51FA\"));\n              onClose();\n            } else {\n              (0, _utils.showNotice)('error', \"\\u53D6\\u6D88\".concat(ExportName, \"\\u5BFC\\u51FA\\u5931\\u8D25\"));\n            }\n            return _context3.abrupt(\"return\");\n          case 7:\n            onClose();\n          case 8:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee3);\n    }));\n    return function onCancel() {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  var bodyRender = (0, _react.useCallback)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      style: {\n        paddingTop: 122\n      }\n    }, /*#__PURE__*/_react.default.createElement(_CircleProgress.default, {\n      percent: (0, _parseInt2.default)((exportStatusData === null || exportStatusData === void 0 ? void 0 : exportStatusData.progress) || 0),\n      status: statusMap[exportStatusData === null || exportStatusData === void 0 ? void 0 : exportStatusData.status],\n      textMap: [\"\".concat(ExportName, \"\\u5BFC\\u51FA\\u4E2D\\uFF0C\\u8BF7\\u8010\\u5FC3\\u7B49\\u5F85\"), '导出失败', isAtt ? '导出成功' : \"\\u5BFC\\u51FA\\u6210\\u529F\\uFF0C\\u5171\\u5BFC\\u51FA\".concat(exportIdsLength || 0, \"\\u6761\\u8BB0\\u5F55\")]\n    }));\n  }, [exportStatusData]);\n  return /*#__PURE__*/_react.default.createElement(_ImportExportModal.default, {\n    visible: visible,\n    title: title,\n    titleTips: titleTips,\n    body: bodyRender(),\n    onCancel: onCancel,\n    onClose: onClose,\n    cancelText: statusTextMap[exportStatusData === null || exportStatusData === void 0 ? void 0 : exportStatusData.status],\n    renderFooter: function renderFooter() {\n      return /*#__PURE__*/_react.default.createElement(_Import.ImportExportModalFooter, {\n        cancelText: statusTextMap[exportStatusData === null || exportStatusData === void 0 ? void 0 : exportStatusData.status] || '取消',\n        onCancel: onCancel\n      });\n    }\n  });\n});\nExportModal.displayName = 'ExportModal';\nvar _default = exports[\"default\"] = ExportModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/apps/Export.tsx\n");

/***/ }),

/***/ "./src/web/component/apps/ExportAttachBtn.tsx":
/*!****************************************************!*\
  !*** ./src/web/component/apps/ExportAttachBtn.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 _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _Modal = _interopRequireDefault(__webpack_require__(/*! ../common/Modal */ \"./src/web/component/common/Modal.tsx\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _Export = _interopRequireDefault(__webpack_require__(/*! ./Export */ \"./src/web/component/apps/Export.tsx\"));\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _ExportButton = __webpack_require__(/*! ./ExportButton */ \"./src/web/component/apps/ExportButton.jsx\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description: 表单列表-批量导出附件\n * @Author: xiaoman_xie\n * @Date: 2024-01-31 14:26:01\n * @LastEditTime: 2024-07-01 14:19:12\n * @Last Modified by: xiaoman_xie\n */\n\nvar getAtt = function getAtt(info) {\n  var atts = [];\n  info.forEach(function (item) {\n    if (item.canExport) {\n      atts.push({\n        label: item.name,\n        value: item.key\n      });\n    }\n  });\n  return atts;\n};\nvar ExportAttachBtn = (0, _react.memo)(function (props) {\n  var formId = props.formId,\n    activeSchemaId = props.activeSchemaId,\n    searchKeyWord = props.searchKeyWord,\n    selectedQueryString = props.selectedQueryString,\n    filters = props.filters,\n    selectedCount = props.selectedCount,\n    totalCount = props.totalCount,\n    onItemClick = props.onItemClick;\n  var _useState = (0, _react.useState)(''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    attId = _useState2[0],\n    setAttId = _useState2[1];\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    list = _useState4[0],\n    setList = _useState4[1];\n  var _useState5 = (0, _react.useState)(''),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    taskId = _useState6[0],\n    setTaskId = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    selectModalVisible = _useState8[0],\n    setSelectModalVisible = _useState8[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    exportModalVisible = _useState10[0],\n    setExportModalVisible = _useState10[1];\n  var _useState11 = (0, _react.useState)(_ExportButton.EXPORT_SELECTED),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    exportType = _useState12[0],\n    setExportType = _useState12[1];\n  var openExportAttModal = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          // 获取导出字段\n          (0, _apps.getExportFieldList)({\n            formid: formId,\n            attr: true\n          }, true).then(function (res) {\n            var info = (res === null || res === void 0 ? void 0 : res.rows) || [];\n            (0, _reactDom.unstable_batchedUpdates)(function () {\n              setList(getAtt(info));\n              setSelectModalVisible(true);\n            });\n          }).catch(function (err) {\n            console.log('请求错误', err);\n          });\n        case 1:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  })), [formId]);\n  var handleExport = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n    var _res$row;\n    var params, res, tId;\n    return _regenerator.default.wrap(function _callee2$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          if (attId) {\n            _context2.next = 3;\n            break;\n          }\n          (0, _utils.showNotice)('warning', '请选择要导出的附件');\n          return _context2.abrupt(\"return\");\n        case 3:\n          params = {\n            formid: formId,\n            selects: attId,\n            // 导出全部时，要带上筛选串；导出已选用的是勾选Id串和筛选串的拼接\n            filters: exportType === _ExportButton.EXPORT_ALL ? filters : selectedQueryString,\n            search: searchKeyWord,\n            schemaId: activeSchemaId\n          };\n          _context2.next = 6;\n          return (0, _apps.sendExportData)(params, true);\n        case 6:\n          res = _context2.sent;\n          tId = res === null || res === void 0 || (_res$row = res.row) === null || _res$row === void 0 ? void 0 : _res$row.taskId;\n          if (tId) {\n            (0, _reactDom.unstable_batchedUpdates)(function () {\n              setTaskId(tId);\n              setSelectModalVisible(false);\n              setExportModalVisible(true);\n            });\n          }\n        case 9:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee2);\n  })), [formId, attId, selectedQueryString, searchKeyWord, activeSchemaId]);\n  var handleCancel = (0, _react.useCallback)(function () {\n    setSelectModalVisible(false);\n  }, []);\n  var handleChange = (0, _react.useCallback)(function (key) {\n    setAttId(key);\n  }, []);\n  var closeExportModal = (0, _react.useCallback)(function () {\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setAttId('');\n      setExportModalVisible(false);\n    });\n  }, []);\n  var handleItemClick = (0, _react.useCallback)(function (key) {\n    if (onItemClick) return onItemClick(key);\n    setExportType(key);\n    openExportAttModal();\n  }, [openExportAttModal]);\n\n  // 导出下拉菜单项\n  var exportDropdownMenu = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, {\n      onClick: handleItemClick\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n      key: _ExportButton.EXPORT_SELECTED,\n      disabled: selectedCount === 0\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      style: _ExportButton.dropdownTitleStyle\n    }, \"\\u5BFC\\u51FA\\u9009\\u4E2D\\uFF08\\u5DF2\\u9009\", selectedCount, \"\\u6761\\uFF09\")), /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n      key: _ExportButton.EXPORT_ALL,\n      disabled: totalCount === 0\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      style: _ExportButton.dropdownTitleStyle\n    }, \"\\u5BFC\\u51FA\\u5168\\u90E8\\uFF08\\u5171\", totalCount || 0, \"\\u6761\\uFF09\")));\n  }, [handleItemClick, selectedCount, totalCount]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n    trigger: \"click\",\n    menu: exportDropdownMenu\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    text: \"\\u5BFC\\u51FA\\u9644\\u4EF6\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'daochu'\n    }\n  })), selectModalVisible && /*#__PURE__*/_react.default.createElement(_Modal.default, {\n    height: 208,\n    okText: \"\\u5BFC\\u51FA\",\n    onOk: handleExport,\n    onCancel: handleCancel,\n    title: \"\\u5BFC\\u51FA\\u9644\\u4EF6\",\n    body: /*#__PURE__*/_react.default.createElement(_WebUI.FieldItem, {\n      labelText: \"\\u5185\\u5BB9\",\n      showTitle: true,\n      required: true\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.Select, {\n      value: attId,\n      options: list,\n      onChange: handleChange,\n      style: {\n        fontSize: 14\n      }\n    }))\n  }), exportModalVisible && /*#__PURE__*/_react.default.createElement(_Export.default, {\n    title: \"\\u5BFC\\u51FA\\u9644\\u4EF6\",\n    visible: exportModalVisible,\n    closeModal: closeExportModal,\n    taskId: taskId,\n    isAtt: true\n  }));\n});\nExportAttachBtn.displayName = 'ExportAttachBtn';\nvar _default = exports[\"default\"] = ExportAttachBtn;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/apps/ExportAttachBtn.tsx\n");

/***/ }),

/***/ "./src/web/component/apps/ExportButton.jsx":
/*!*************************************************!*\
  !*** ./src/web/component/apps/ExportButton.jsx ***!
  \*************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.dropdownTitleStyle = exports[\"default\"] = exports.EXPORT_SELECTED = exports.EXPORT_ALL = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _Export = _interopRequireDefault(__webpack_require__(/*! ./Export */ \"./src/web/component/apps/Export.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description: 应用使用页-导出按钮\n * @Author: jianhang_he\n * @Date: 2022-10-17 15:50:16\n * @LastEditTime: 2024-02-06 17:40:51\n * @Last Modified by: jianhang_he\n */\n\nvar EXPORT_SELECTED = exports.EXPORT_SELECTED = 'exportSelected'; // 导出选中\nvar EXPORT_ALL = exports.EXPORT_ALL = 'exportAll'; // 导出全部\nvar ModalTitle = '导出表单记录';\nvar dropdownTitleStyle = exports.dropdownTitleStyle = {\n  fontSize: 14\n};\n\n/**\n * @description 应用使用页-导出按钮\n * @param {string[]} selectedRows 已选择行（各项是id）\n * @param {number} allDataLength 列表所有数据长度\n * @returns\n */\nvar ExportButton = function ExportButton(_ref) {\n  var _exportIdsRef$current;\n  var selectedRows = _ref.selectedRows,\n    tableDataSource = _ref.tableDataSource,\n    totalCount = _ref.totalCount,\n    searchKeyWord = _ref.searchKeyWord,\n    createUiActionDataStr = _ref.createUiActionDataStr,\n    onClick = _ref.onClick,\n    activeSchemaId = _ref.activeSchemaId,\n    selectedQueryString = _ref.selectedQueryString,\n    selectedCount = _ref.selectedCount,\n    _ref$filters = _ref.filters,\n    filters = _ref$filters === void 0 ? '' : _ref$filters;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    formid = _useParams.targetFormId;\n  // 字段配置弹窗\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    listItemSettingVisible = _useState2[0],\n    setListItemSettingVisible = _useState2[1];\n  // 导出任务id（用于查询进度和取消）\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    taskId = _useState4[0],\n    setTaskId = _useState4[1];\n  // 导出弹窗（显示导出状态）\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    exportModalVisible = _useState6[0],\n    setExportModalVisible = _useState6[1];\n  // 导出字段列表\n  var _useState7 = (0, _react.useState)([]),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    exportFieldList = _useState8[0],\n    setExportFieldList = _useState8[1];\n  // 导出字段已选列表\n  var _useState9 = (0, _react.useState)([]),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    selectedFieldKeys = _useState10[0],\n    setSelectedFieldKeys = _useState10[1];\n  var exportIdsRef = (0, _react.useRef)([]); // 导出数据（行数据）\n  var exportIdsLength = (_exportIdsRef$current = exportIdsRef.current) === null || _exportIdsRef$current === void 0 ? void 0 : _exportIdsRef$current.length;\n  // const tableDataSourceIdsRef = useRef(() => {\n  //   return tableDataSource.map(item => item.id)\n  // }) // 导出所有时候id列表\n\n  // 已选择条数\n  // const selectedRowsLength = useMemo(() => selectedRows === 'all' ? totalCount : selectedRows?.length, [selectedRows, totalCount])\n  // 全部条数\n  // const tableDataSourceLength = tableDataSource?.length\n\n  // useEffect(() => {\n  //   tableDataSourceIdsRef.current = tableDataSource.map(item => item.id)\n  // }, [tableDataSource])\n\n  /**\n   * 点击导出下拉面板\n   * @param {string} key exportSelected | exportAll\n   */\n  var handleItemClick = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(key) {\n      var res, data, newExportFieldList, newSelectedKeys;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            if (!onClick) {\n              _context.next = 2;\n              break;\n            }\n            return _context.abrupt(\"return\", onClick(key));\n          case 2:\n            if (key === EXPORT_SELECTED) {\n              // 选择导出部分\n              exportIdsRef.current = selectedRows;\n            } else if (key === EXPORT_ALL) {\n              // 导出全部\n              exportIdsRef.current = [];\n              // exportIdsRef.current = tableDataSourceIdsRef.current\n            } else {\n              exportIdsRef.current = [];\n            }\n\n            // 获取导出字段\n            _context.next = 5;\n            return (0, _apps.getExportFieldList)({\n              formid: formid\n            });\n          case 5:\n            res = _context.sent;\n            data = res === null || res === void 0 ? void 0 : res.rows;\n            if (data) {\n              newExportFieldList = [];\n              newSelectedKeys = []; // 后端这里返回的是{key, name}。组件内部的适配是{key, title}，因此转一下\n              data.forEach(function (_ref3) {\n                var key = _ref3.key,\n                  name = _ref3.name,\n                  canExport = _ref3.canExport,\n                  reason = _ref3.reason;\n                newExportFieldList.push({\n                  key: key,\n                  title: name,\n                  disabled: !canExport,\n                  tips: reason\n                });\n                if (canExport) {\n                  newSelectedKeys.push(key);\n                }\n              });\n              setExportFieldList(newExportFieldList);\n\n              // 默认全选\n              setSelectedFieldKeys(newSelectedKeys);\n            }\n\n            // 显示导出字段配置弹窗\n            setListItemSettingVisible(true);\n          case 9:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee);\n    }));\n    return function handleItemClick(_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * 关闭导出字段配置弹窗\n   */\n  var closeListItemSetting = (0, _react.useCallback)(function () {\n    setListItemSettingVisible(false);\n  }, []);\n\n  /**\n   * 导出\n   * @param {string[]} selectedFieldList 已选择字段 ['nocodefield', ...]\n   */\n  var handleConfirmExport = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(selectedFieldList) {\n      var _res$row, selects, params, _params$ids, res, _res$row2;\n      return _regenerator.default.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            if (!(Array.isArray(selectedFieldList) && selectedFieldList.length > 0)) {\n              _context2.next = 11;\n              break;\n            }\n            selects = selectedFieldList.join(',');\n            params = {\n              formid: formid,\n              selects: selects,\n              filters: filters,\n              search: searchKeyWord,\n              schemaId: activeSchemaId\n            }; // if (listFilters?.[0]) {\n            //   params.filters = listFilters.filter\n            // }\n            if (Array.isArray(exportIdsRef.current) && exportIdsLength > 0) {\n              params.ids = exportIdsRef.current;\n              // 有ids时则使用勾选+筛选串，否则为导出全部\n              if ((_params$ids = params.ids) !== null && _params$ids !== void 0 && _params$ids.length) {\n                params.filters = selectedQueryString;\n              }\n            }\n            _context2.next = 6;\n            return (0, _apps.sendExportData)(params);\n          case 6:\n            res = _context2.sent;\n            if (res !== null && res !== void 0 && (_res$row = res.row) !== null && _res$row !== void 0 && _res$row.taskId) {\n              setTaskId(res === null || res === void 0 || (_res$row2 = res.row) === null || _res$row2 === void 0 ? void 0 : _res$row2.taskId);\n              // 隐藏字段弹窗\n              setListItemSettingVisible(false);\n              // 显示导出弹窗\n              setExportModalVisible(true);\n            }\n            console.log(res);\n            _context2.next = 12;\n            break;\n          case 11:\n            (0, _utils.showNotice)('warning', '请选择导出字段');\n          case 12:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2);\n    }));\n    return function handleConfirmExport(_x2) {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n\n  // 导出下拉菜单项\n  var exportDropdownMenu = /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, {\n    onClick: handleItemClick\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n    key: EXPORT_SELECTED,\n    disabled: selectedCount === 0,\n    \"data-nc-action\": createUiActionDataStr('au_lo_op_os')\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    style: dropdownTitleStyle\n  }, \"\\u5BFC\\u51FA\\u9009\\u4E2D\\uFF08\\u5DF2\\u9009\", selectedCount, \"\\u6761\\uFF09\")), /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n    key: EXPORT_ALL,\n    disabled: totalCount === 0,\n    \"data-nc-action\": createUiActionDataStr('au_lo_op_oa')\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    style: dropdownTitleStyle\n  }, \"\\u5BFC\\u51FA\\u5168\\u90E8\\uFF08\\u5171\", totalCount || 0, \"\\u6761\\uFF09\")));\n  var closeModal = (0, _react.useCallback)(function () {\n    setExportModalVisible(false);\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n    trigger: \"click\",\n    menu: exportDropdownMenu\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    text: \"\\u5BFC\\u51FA\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'daochu'\n    }\n  })), listItemSettingVisible && /*#__PURE__*/_react.default.createElement(_WebUI.ListItemSettingPop, {\n    title: ModalTitle,\n    onClose: closeListItemSetting,\n    checkedKeys: selectedFieldKeys,\n    onConfirm: handleConfirmExport,\n    data: exportFieldList,\n    width: 480,\n    showLock: false,\n    okText: \"\\u5BFC\\u51FA\"\n  }), exportModalVisible && /*#__PURE__*/_react.default.createElement(_Export.default, {\n    title: ModalTitle,\n    titleTips: \"\\u5C06\\u6240\\u9009\\u8BB0\\u5F55\\u5BFC\\u51FA\\u81F3Excel\\u6587\\u4EF6\\u4E2D\",\n    visible: exportModalVisible,\n    closeModal: closeModal,\n    taskId: taskId\n    // exportIdsLength={Array.isArray(exportIdsRef.current) && exportIdsRef.current?.length > 0 ? exportIdsRef.current?.length : totalCount} // 默认是导出全部\n    ,\n    exportIdsLength: exportIdsLength > 0 ? selectedCount : totalCount // 兼容导出全部\n  }));\n};\nvar _default = exports[\"default\"] = (0, _react.memo)(ExportButton);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/apps/ExportButton.jsx\n");

/***/ }),

/***/ "./src/web/component/apps/Import/ImportButton.jsx":
/*!********************************************************!*\
  !*** ./src/web/component/apps/Import/ImportButton.jsx ***!
  \********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _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 _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _Import = _interopRequireDefault(__webpack_require__(/*! ./Import */ \"./src/web/component/apps/Import/Import.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _excluded = [\"refresh\", \"onClick\"];\n/*\n * @Description: 应用使用页-导入按钮\n * @Author: jianhang_he\n * @Date: 2022-10-17 15:50:16\n * @LastEditTime: 2023-09-12 10:34:17\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; }\n/**\n * @description 应用使用页-导入按钮\n * @param {*} props\n * @returns\n */\nvar ImportButton = function ImportButton(_ref) {\n  var refresh = _ref.refresh,\n    onClick = _ref.onClick,\n    otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    importModalVisible = _useState2[0],\n    setImportModalVisible = _useState2[1];\n\n  /**\n   *点击导入\n   */\n  var handleClickImport = function handleClickImport() {\n    if (onClick) return onClick();\n    setImportModalVisible(true);\n  };\n\n  /**\n   * 关闭导入弹窗\n   */\n  var closeImportModal = (0, _react.useCallback)(function () {\n    setImportModalVisible(false);\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, (0, _extends2.default)({\n    type: \"text\",\n    text: \"\\u5BFC\\u5165\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'xiazai'\n    }\n  }, otherProps, {\n    onClick: handleClickImport\n  })), importModalVisible && /*#__PURE__*/_react.default.createElement(_Import.default, {\n    visible: importModalVisible,\n    closeModal: closeImportModal,\n    refresh: refresh\n  }));\n};\nvar _default = exports[\"default\"] = ImportButton;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hcHBzL0ltcG9ydC9JbXBvcnRCdXR0b24uanN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQVZBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTkE7QUFBQTtBQVlBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUlBO0FBRkE7QUFDQTtBQUVBO0FBQUE7QUFBQTtBQUFBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFHQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvYXBwcy9JbXBvcnQvSW1wb3J0QnV0dG9uLmpzeD9kNWQ2Il0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246IOW6lOeUqOS9v+eUqOmhtS3lr7zlhaXmjInpkq5cbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMi0xMC0xNyAxNTo1MDoxNlxuICogQExhc3RFZGl0VGltZTogMjAyMy0wOS0xMiAxMDozNDoxN1xuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjaywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IEljb24gfSBmcm9tICdAa2RjbG91ZGpzL2tkZXNpZ24nXG5pbXBvcnQgSW1wb3J0TW9kYWwgZnJvbSAnLi9JbXBvcnQnXG5pbXBvcnQgeyBCdG5GaWVsZCBhcyBCdXR0b24gfSBmcm9tICdub2NvZGVfY29tcG9uZW50L1dlYlVJJ1xuXG4vKipcbiAqIEBkZXNjcmlwdGlvbiDlupTnlKjkvb/nlKjpobUt5a+85YWl5oyJ6ZKuXG4gKiBAcGFyYW0geyp9IHByb3BzXG4gKiBAcmV0dXJuc1xuICovXG5jb25zdCBJbXBvcnRCdXR0b24gPSAoe1xuICByZWZyZXNoLFxuICBvbkNsaWNrLFxuICAuLi5vdGhlclByb3BzXG59KSA9PiB7XG4gIGNvbnN0IFtpbXBvcnRNb2RhbFZpc2libGUsIHNldEltcG9ydE1vZGFsVmlzaWJsZV0gPSB1c2VTdGF0ZShmYWxzZSlcblxuICAvKipcbiAgICrngrnlh7vlr7zlhaVcbiAgICovXG4gIGNvbnN0IGhhbmRsZUNsaWNrSW1wb3J0ID0gKCkgPT4ge1xuICAgIGlmIChvbkNsaWNrKSByZXR1cm4gb25DbGljaygpXG4gICAgc2V0SW1wb3J0TW9kYWxWaXNpYmxlKHRydWUpXG4gIH1cblxuICAvKipcbiAgICog5YWz6Zet5a+85YWl5by556qXXG4gICAqL1xuICBjb25zdCBjbG9zZUltcG9ydE1vZGFsID0gdXNlQ2FsbGJhY2soKCkgPT4ge1xuICAgIHNldEltcG9ydE1vZGFsVmlzaWJsZShmYWxzZSlcbiAgfSwgW10pXG5cbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEJ1dHRvbiB0eXBlPSd0ZXh0JyB0ZXh0PSflr7zlhaUnIGljb249e3sgcHJlZml4OiAnbm9jb2RlcGxhdGZvcm1pY29uJywgdHlwZTogJ3hpYXphaScgfX0gey4uLm90aGVyUHJvcHN9IG9uQ2xpY2s9e2hhbmRsZUNsaWNrSW1wb3J0fSAvPlxuICAgICAge2ltcG9ydE1vZGFsVmlzaWJsZSAmJiA8SW1wb3J0TW9kYWwgdmlzaWJsZT17aW1wb3J0TW9kYWxWaXNpYmxlfSBjbG9zZU1vZGFsPXtjbG9zZUltcG9ydE1vZGFsfSByZWZyZXNoPXtyZWZyZXNofSAvPn1cbiAgICA8Lz5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBJbXBvcnRCdXR0b25cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/apps/Import/ImportButton.jsx\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.LeftLayoutSkeleton = void 0;\n/*\n * @Description: 应用使用页-骨架屏\n * @Author: john_xin_gu\n * @Date: 2023-07-26 19:12:56\n * @LastEditTime: 2023-09-07 14:55:39\n * @Last Modified by: john_xin_gu\n */\n\nvar LeftLayoutSkeleton = exports.LeftLayoutSkeleton = [{\n  width: '100%',\n  height: '100%',\n  child: [{\n    width: '240px',\n    height: '100%',\n    type: 'MENU',\n    child: [{\n      width: '216px',\n      height: '28px',\n      margin: '12px',\n      type: 'INPUT'\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '12px 12px 8px 0px',\n      child: [{\n        width: '16px',\n        height: '16px',\n        type: 'INPUT'\n      }, {\n        width: '120px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px 0px 0px 8px'\n      }]\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '20px 12px 8px 0px',\n      child: [{\n        width: '16px',\n        height: '16px',\n        type: 'INPUT'\n      }, {\n        width: '160px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px 0px 0px 8px'\n      }]\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '20px 12px 8px 0px',\n      child: [{\n        width: '16px',\n        height: '16px',\n        type: 'INPUT'\n      }, {\n        width: '120px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px 0px 0px 8px'\n      }]\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '20px 12px 8px 0px',\n      child: [{\n        width: '16px',\n        height: '16px',\n        type: 'INPUT'\n      }, {\n        width: '160px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px 0px 0px 8px'\n      }]\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '20px 12px 8px 24px',\n      child: [{\n        width: '16px',\n        height: '16px',\n        type: 'INPUT'\n      }, {\n        width: '120px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px 0px 0px 8px'\n      }]\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '20px 12px 8px 24px',\n      child: [{\n        width: '16px',\n        height: '16px',\n        type: 'INPUT'\n      }, {\n        width: '160px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px 0px 0px 8px'\n      }]\n    }]\n  }, {\n    width: 'calc(100vw - 264px)',\n    height: '100%',\n    type: 'CONCENT',\n    margin: '12px',\n    child: [{\n      width: '100%',\n      height: '36px',\n      margin: '0px 0px 32px 0px',\n      flexDirection: 'row',\n      alignItems: 'center',\n      child: [{\n        width: '116px',\n        height: '36px',\n        type: 'INPUT'\n      }, {\n        width: '48px',\n        height: '20px',\n        type: 'INPUT',\n        repeat: 4\n      }]\n    }, {\n      width: '216px',\n      height: '28px',\n      type: 'INPUT',\n      margin: '0px 0px 16px 12px'\n    }, {\n      width: '98%',\n      height: '100%',\n      type: 'INPUT',\n      margin: '0px 0px 16px 12px'\n    }, {\n      width: ' 98%',\n      height: '28px',\n      margin: '0px 0px 0px 12px',\n      justifyContent: 'flex-end',\n      child: [{\n        width: '520px',\n        height: '28px',\n        type: 'INPUT'\n      }]\n    }]\n  }]\n}];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/skeleton/LeftLayoutSkeleton.ts\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _replaceAll = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _LeftLayout = _interopRequireDefault(__webpack_require__(/*! ./LeftLayout.less */ \"./src/web/layout/apps/LeftLayout.less\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _menuTreeUtil = __webpack_require__(/*! @/utils/menuTreeUtil */ \"./src/utils/menuTreeUtil.js\");\nvar _TreeNodeTitle = __webpack_require__(/*! @/web/component/common/TreeNodeTitle */ \"./src/web/component/common/TreeNodeTitle.tsx\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _Loading = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Loading */ \"./src/web/component/common/Loading.tsx\"));\nvar _useLoadData = _interopRequireDefault(__webpack_require__(/*! @/hooks/useLoadData */ \"./src/hooks/useLoadData.js\"));\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _actionNames = __webpack_require__(/*! @/reducer/actionNames */ \"./src/reducer/actionNames.js\");\nvar _empty = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/empty.png */ \"./assets/img/empty.png\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _SearchInput = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/SearchInput */ \"./src/web/component/common/SearchInput.tsx\"));\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _LeftLayoutSkeleton = __webpack_require__(/*! @/web/component/skeleton/LeftLayoutSkeleton */ \"./src/web/component/skeleton/LeftLayoutSkeleton.ts\");\nvar _HomeContainer = _interopRequireDefault(__webpack_require__(/*! ../../component/home/HomeContainer */ \"./src/web/component/home/HomeContainer.tsx\"));\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\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 useDefaultFormId from '@/web/layout/common/useDefaultFormId'\n\n/*\n * 应用左边\n * @returns jsx\n */\nvar AppsLeftLayout = function AppsLeftLayout(props) {\n  var _state$appsList;\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId,\n    formId = _useParams.targetFormId;\n  var navigate = (0, _useNocodeNavigate.default)();\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    data = _useState2[0],\n    setData = _useState2[1];\n  var _React$useState = _react.default.useState([]),\n    _React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),\n    expandedKeys = _React$useState2[0],\n    setExpandedKeys = _React$useState2[1]; // 设置哪些节点默认展开\n  // const [defaultFormId, setDefaultFormId] = useDefaultFormId('apps')\n  var _React$useState3 = _react.default.useState(''),\n    _React$useState4 = (0, _slicedToArray2.default)(_React$useState3, 2),\n    value = _React$useState4[0],\n    setValue = _React$useState4[1];\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state,\n    dispatch = _useAppContext.dispatch;\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    selectedKey = _useState4[0],\n    setSelectedKey = _useState4[1];\n  var _useState5 = (0, _react.useState)(''),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    scrollTokey = _useState6[0],\n    setScrollToKey = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    showEmpty = _useState8[0],\n    setShowEmpty = _useState8[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    loadForm = _useState10[0],\n    setLoadform = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    init = _useState12[0],\n    setInit = _useState12[1];\n  var appInfo = state === null || state === void 0 || (_state$appsList = state.appsList) === null || _state$appsList === void 0 ? void 0 : _state$appsList[appId];\n  var isTemplateRef = (0, _react.useRef)(false);\n  var _ref = appInfo || {},\n    istemplate = _ref.istemplate;\n  isTemplateRef.current = istemplate;\n\n  /**\n   * 保存选中的表单信息\n   * @param {*} formData 表单信息\n   */\n  var saveSelectedFormData = function saveSelectedFormData(formData) {\n    dispatch({\n      type: _actionNames.UPDATE_SELECTED_FORMDATA,\n      payload: formData\n    });\n  };\n  var showIsTemplateNotice = function showIsTemplateNotice() {\n    (0, _utils.showNotice)('error', '预览时无法使用此功能');\n  };\n  var goDesigner = function goDesigner(e, formId, type) {\n    e.stopPropagation();\n    if (isTemplateRef.current) {\n      return showIsTemplateNotice();\n    }\n    if ((0, _utils.isCustomPage)(type)) {\n      var _context;\n      (0, _utils.openner)((0, _concat.default)(_context = \"/\".concat(appId, \"/admin/\")).call(_context, formId));\n    } else {\n      var _context2;\n      (0, _utils.openner)((0, _concat.default)(_context2 = \"/\".concat(appId, \"/designer/\")).call(_context2, formId));\n    }\n  };\n  var renderTitle = function renderTitle(titleInfo) {\n    var _context3;\n    var name = titleInfo.name,\n      formId = titleInfo.formId,\n      type = titleInfo.type;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _LeftLayout.default.title\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _LeftLayout.default['title-name'],\n      title: name\n    }, name), formId && /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"jichushezhi\",\n      className: (0, _classnames.default)(_LeftLayout.default['go-designer'], 'go-designer-icon'),\n      onClick: function onClick(e) {\n        return goDesigner(e, formId, type);\n      },\n      \"data-nc-action\": (0, _concat.default)(_context3 = \"\".concat(appId, \"|\")).call(_context3, formId, \"|au_lfm_set\"),\n      title: (0, _utils.isCustomPage)(type) ? '配置卡片看板' : '配置表单'\n    }));\n  };\n  var showMenuList = (0, _react.useCallback)(function (values) {\n    var _values$, _defaultSelectedFormD2;\n    var datas = (0, _lodash.cloneDeep)(((_values$ = values[0]) === null || _values$ === void 0 ? void 0 : _values$.row) || {});\n    var res = (0, _lodash.cloneDeep)(values[1]);\n    var rows = (res === null || res === void 0 ? void 0 : res.rows) || [];\n    var data = (0, _menuTreeUtil.transformTreeData)(rows, renderTitle, function (nodeInfo) {\n      return renderIcon(nodeInfo, datas);\n    });\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setShowEmpty(!rows.length);\n      setLoadform(true);\n      setData(data);\n      setInit(true);\n    });\n\n    // 默认选中是树的第一个元素\n    var defaultSelectedFormData = (0, _menuTreeUtil.getTreeFirstFormNode)(rows);\n    if (formId) {\n      // 如果路由中存在formId信息，那么默认选中当前的form\n      defaultSelectedFormData = (0, _menuTreeUtil.getNodeByFormId)(rows, formId);\n    } else {\n      var _defaultSelectedFormD, _context4;\n      ((_defaultSelectedFormD = defaultSelectedFormData) === null || _defaultSelectedFormD === void 0 ? void 0 : _defaultSelectedFormD.formId) && navigate((0, _concat.default)(_context4 = \"/\".concat(appId, \"/home/\")).call(_context4, defaultSelectedFormData.formId), {\n        replace: true\n      });\n    }\n    saveSelectedFormData(defaultSelectedFormData);\n    var key = (_defaultSelectedFormD2 = defaultSelectedFormData) === null || _defaultSelectedFormD2 === void 0 ? void 0 : _defaultSelectedFormD2.key;\n    defaultSelectedFormData && setScrollToKey(key);\n    defaultSelectedFormData && setSelectedKey(key);\n  }, [appId, formId, istemplate]);\n  var loadFormList = (0, _react.useCallback)(function () {\n    return (0, _menuTreeUtil.getMenuTreeData)(appId, function (res) {\n      !!res[0] && !!res[1] && showMenuList(res);\n    }).catch(function (e) {\n      (0, _utils.showNotice)('error', (e === null || e === void 0 ? void 0 : e.message) || '请求失败');\n      setLoadform(false);\n    });\n  }, [appId, formId, showMenuList]);\n  (0, _react.useEffect)(function () {\n    loadFormList();\n  }, []);\n  var isGroupNode = function isGroupNode(formId) {\n    return !formId;\n  };\n  var getIcon = function getIcon(formId, icon, hasChild) {\n    var groupNode = isGroupNode(formId);\n    // 拖拽时icon格式化后会变为node，初始化时后端传过来是string\n    return groupNode ? hasChild ? '' : 'wenjianjiakai' : 'leaf';\n  };\n  var triggerElement = function triggerElement(svgData, image) {\n    var _svgData$colors, _svgData$svgs, _svgData$colors2, _svgData$svgs2;\n    var color = (0, _utils.getQueryString)('color', image); // 图标背景颜色\n    var svg = (0, _utils.getQueryString)('svg', image); // 图标样式\n    var colorIndex = color && color !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$colors = svgData.colors) === null || _svgData$colors === void 0 ? void 0 : (0, _findIndex.default)(_svgData$colors).call(_svgData$colors, function (item) {\n      return item.value === color || item.key === color;\n    }) : 0;\n    var iconIndex = svg && svg !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$svgs = svgData.svgs) === null || _svgData$svgs === void 0 ? void 0 : (0, _findIndex.default)(_svgData$svgs).call(_svgData$svgs, function (item) {\n      return item.label === svg;\n    }) : 0;\n    var svgFill = svgData === null || svgData === void 0 || (_svgData$colors2 = svgData.colors) === null || _svgData$colors2 === void 0 || (_svgData$colors2 = _svgData$colors2[colorIndex]) === null || _svgData$colors2 === void 0 ? void 0 : _svgData$colors2.value;\n    var content = svgData === null || svgData === void 0 || (_svgData$svgs2 = svgData.svgs) === null || _svgData$svgs2 === void 0 || (_svgData$svgs2 = _svgData$svgs2[iconIndex]) === null || _svgData$svgs2 === void 0 ? void 0 : _svgData$svgs2.content;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      ref: function ref(r) {\n        var _r$getElementsByTagNa;\n        r === null || r === void 0 || (_r$getElementsByTagNa = r.getElementsByTagName('path')) === null || _r$getElementsByTagNa === void 0 || (_r$getElementsByTagNa = _r$getElementsByTagNa[0]) === null || _r$getElementsByTagNa === void 0 || _r$getElementsByTagNa.setAttribute('style', \"fill:\".concat(svgFill, \" \"));\n      },\n      className: (0, _classnames.default)(_LeftLayout.default.avatar),\n      dangerouslySetInnerHTML: {\n        __html: (content === null || content === void 0 ? void 0 : (0, _replaceAll.default)(content).call(content, /<title>.*?<\\/title>/g, '')) || ''\n      }\n    });\n  };\n  var renderIcon = function renderIcon(nodeInfo, svgData) {\n    var formId = nodeInfo.formId,\n      image = nodeInfo.image,\n      hasChild = nodeInfo.hasChild,\n      key = nodeInfo.key;\n    var transformIcon = getIcon(formId, image, hasChild);\n    var iconType = transformIcon === 'leaf' ? image || _defaultIcon.DEFAULT_FORM_IMAGE : transformIcon;\n    return transformIcon && /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: (0, _classnames.default)((0, _defineProperty2.default)({}, _LeftLayout.default['leaf-icon-wrapper'], transformIcon === 'leaf'))\n    }, transformIcon === 'leaf'\n    // 渲染叶子节点图标\n    ? triggerElement(svgData, image || _defaultIcon.DEFAULT_FORM_IMAGE)\n    // KDTree不支持无子节点的node显示switch-icon，所以这里自己实现switch-icon\n    : /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      type: iconType,\n      prefix: \"nocodeplatformicon\",\n      className: (0, _classnames.default)((0, _defineProperty2.default)({}, _LeftLayout.default['empty-group'], transformIcon === 'wenjianjiakai' || transformIcon === 'wenjianguan'), _LeftLayout.default['switch-icon'])\n    }));\n  };\n  var onExpand = function onExpand(expandedKeys, info) {\n    setExpandedKeys(expandedKeys);\n  };\n  var filterTreeNode = (0, _react.useCallback)(function (node) {\n    var _node$name;\n    if ((_node$name = node.name) !== null && _node$name !== void 0 && (0, _includes.default)(_node$name).call(_node$name, value)) {\n      return true;\n    }\n    return false;\n  }, [value]);\n  var onSelect = (0, _react.useCallback)(function (keys, info) {\n    var selectedFormData = info.node;\n    if (selectedFormData) {\n      var _context5;\n      setSelectedKey(selectedFormData.key);\n      saveSelectedFormData(selectedFormData);\n      navigate((0, _concat.default)(_context5 = \"/\".concat(appId, \"/home/\")).call(_context5, selectedFormData.formId));\n    }\n  }, [navigate]);\n  var renderSwitcherIcon = function renderSwitcherIcon() {\n    return [/*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"wenjianjiaguan\",\n      className: _LeftLayout.default['switch-icon']\n    }), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"wenjianjiakai\",\n      className: _LeftLayout.default['switch-icon']\n    })];\n  };\n  var handleSearch = (0, _react.useCallback)(function (value) {\n    // const value = e.target.value\n    setValue(value);\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !init && /*#__PURE__*/_react.default.createElement(_WebUI.Skeleton, {\n    options: _LeftLayoutSkeleton.LeftLayoutSkeleton\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _LeftLayout.default.app_left\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _LeftLayout.default.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: handleSearch,\n    allowClear: true\n  })), showEmpty || !loadForm ? /*#__PURE__*/_react.default.createElement(_WebUI.EmptyData, null) : /*#__PURE__*/_react.default.createElement(_kdesign.Tree, {\n    name: \"Tree\",\n    treeData: data,\n    expandedKeys: expandedKeys,\n    defaultExpandRoot: true,\n    showIcon: true,\n    virtual: false,\n    checkStrictly: false,\n    checkable: false,\n    estimatedItemSize: 44,\n    onExpand: onExpand,\n    filterTreeNode: filterTreeNode,\n    filterValue: value,\n    selectedKeys: [selectedKey],\n    onSelect: onSelect,\n    className: _LeftLayout.default.tree,\n    setTreeNodeClassName: function setTreeNodeClassName(node) {\n      return node.formId ? '' : _LeftLayout.default['group-node-hover'];\n    },\n    scrollToKey: scrollTokey,\n    switcherIcon: renderSwitcherIcon()\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _LeftLayout.default.app_main\n  }, /*#__PURE__*/_react.default.createElement(_HomeContainer.default, {\n    className: _LeftLayout.default.app_main_bg\n  }, !showEmpty && formId && loadForm ? /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, {\n    context: {\n      selectedNode: state === null || state === void 0 ? void 0 : state.selectedFormData\n    }\n  }) : /*#__PURE__*/_react.default.createElement(_WebUI.EmptyData, {\n    src: _empty.default,\n    desc: \"\\u6682\\u65E0\\u6570\\u636E\",\n    imageWidth: 224,\n    imageHeight: 128,\n    textGap: 16\n  }))));\n};\nvar _default = exports[\"default\"] = AppsLeftLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/apps/LeftLayout.jsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = exports.Tab = void 0;\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _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 _BaseSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./BaseSettingLayout.less */ \"./src/web/layout/common/BaseSettingLayout.less\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _menuTableUtil = __webpack_require__(/*! @/utils/menuTableUtil */ \"./src/utils/menuTableUtil.js\");\nvar _GanttSettingLayout = _interopRequireWildcard(__webpack_require__(/*! ./GanttSettingLayout */ \"./src/web/layout/common/GanttSettingLayout.tsx\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar hiddenOptions = [{\n  value: 'none',\n  label: '不隐藏'\n}, {\n  value: 'all',\n  label: '全隐藏'\n}, {\n  value: 'pc',\n  label: '仅在PC端隐藏'\n}, {\n  value: 'mobile',\n  label: '仅在移动端隐藏'\n}];\nvar BaseSettingLayout = function BaseSettingLayout(props) {\n  var defaultName = props.name,\n    defaultAssignOrgs = props.assignOrgs,\n    defaultAssignUsers = props.assignUsers,\n    onApi = props.onApi,\n    defaultHiddenValue = props.hidden,\n    _props$schematype = props.schematype,\n    schematype = _props$schematype === void 0 ? _GanttSettingLayout.SchemaTypes.List : _props$schematype,\n    ganttconfig = props.ganttconfig,\n    _props$timemode = props.timemode,\n    timemode = _props$timemode === void 0 ? _GanttSettingLayout.TimeModeTypes.Day : _props$timemode,\n    fieldList = props.fieldList;\n  var _useState = (0, _react.useState)(defaultAssignOrgs || []),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    assignOrgs = _useState2[0],\n    setAssignOrgs = _useState2[1];\n  var _useState3 = (0, _react.useState)(defaultAssignUsers || []),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    assignUsers = _useState4[0],\n    setAssignUsers = _useState4[1];\n  var _useState5 = (0, _react.useState)(defaultName || ''),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    name = _useState6[0],\n    setName = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    showValidTip = _useState8[0],\n    setShowValidTip = _useState8[1];\n  var _useState9 = (0, _react.useState)(defaultHiddenValue || ''),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    hiddenValue = _useState10[0],\n    setHiddenValue = _useState10[1];\n  var _useState11 = (0, _react.useState)({\n      schematype: schematype,\n      ganttconfig: ganttconfig,\n      timemode: timemode\n    }),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    ganttSettingData = _useState12[0],\n    setGanttSettingData = _useState12[1];\n  var _Form$useForm = _kdesign.Form.useForm(),\n    _Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  (0, _react.useEffect)(function () {\n    setName(defaultName);\n  }, [defaultName]);\n  (0, _react.useEffect)(function () {\n    setHiddenValue(defaultHiddenValue);\n  }, [defaultHiddenValue]);\n  (0, _react.useEffect)(function () {\n    setGanttSettingData({\n      schematype: schematype,\n      ganttconfig: ganttconfig,\n      timemode: timemode\n    });\n  }, [schematype, ganttconfig, timemode]);\n  var handleNameChange = (0, _react.useCallback)(function (v) {\n    setName(v);\n    onValidName(!v);\n  }, []);\n  var onValidName = (0, _react.useCallback)(function (v) {\n    setShowValidTip(v);\n  }, []);\n  var handleNameBlur = (0, _react.useCallback)(function (e) {\n    onValidName(!e.target.value);\n  }, [onValidName]);\n  var handleOrgsChange = (0, _react.useCallback)(function (v) {\n    setAssignOrgs === null || setAssignOrgs === void 0 || setAssignOrgs(v);\n  }, []);\n  var handlePersonChange = (0, _react.useCallback)(function (v) {\n    setAssignUsers(v);\n  }, []);\n  var handleHiddenValueChange = (0, _react.useCallback)(function (v) {\n    setHiddenValue(v);\n  }, []);\n  (0, _react.useEffect)(function () {\n    onApi === null || onApi === void 0 || onApi({\n      getBase: function getBase() {\n        return _objectSpread({\n          name: name,\n          hidden: hiddenValue\n        }, ganttSettingData);\n      },\n      validateFields: function validateFields() {\n        form.validateFields();\n      }\n    });\n  }, [onApi, name, hiddenValue, assignOrgs, assignUsers, ganttSettingData, form]);\n  var handleGanttSettingChange = function handleGanttSettingChange(data) {\n    setGanttSettingData(data);\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.base\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Form, {\n    form: form\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.name_field\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.name\n  }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u540D\\u79F0\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _BaseSettingLayout.default.dot\n  }, \"*\")), /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    className: (0, _defineProperty2.default)({}, _BaseSettingLayout.default.input_error, showValidTip && !(name !== null && name !== void 0 && name.length)),\n    value: name,\n    onBlur: handleNameBlur,\n    onChange: handleNameChange,\n    borderType: \"bordered\",\n    maxLength: _menuTableUtil.VIEW_MAX_LENGTH\n  }), showValidTip && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.empty_tip\n  }, \"\\u8BF7\\u8F93\\u5165\\u540D\\u79F0\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.hidden_field\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.hidden_name\n  }, \"\\u4ECE\\u5BFC\\u822A\\u680F\\u9690\\u85CF\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default.hidden_wrapper\n  }, /*#__PURE__*/_react.default.createElement(Tab, {\n    onChange: handleHiddenValueChange,\n    value: hiddenValue || 'none',\n    options: hiddenOptions\n  }))), /*#__PURE__*/_react.default.createElement(_GanttSettingLayout.default, {\n    data: ganttSettingData,\n    fieldList: fieldList,\n    onChange: handleGanttSettingChange\n  })));\n};\nvar Tab = exports.Tab = function Tab(props) {\n  var onChange = props.onChange,\n    activeValue = props.value,\n    options = props.options;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout.default['tab-editor']\n  }, (0, _map.default)(options).call(options, function (item) {\n    var iconClassName = item.iconClassName,\n      iconTitle = item.iconTitle,\n      value = item.value,\n      label = item.label;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      key: value,\n      className: (0, _classnames.default)(_BaseSettingLayout.default['tab-editor-item'], (0, _defineProperty2.default)({}, _BaseSettingLayout.default['is-active'], activeValue === value)),\n      onClick: function onClick() {\n        return onChange(value);\n      },\n      title: iconClassName && iconTitle\n    }, label);\n  }));\n};\nvar _default = exports[\"default\"] = (0, _react.memo)(BaseSettingLayout);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/common/BaseSettingLayout.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _ColumnSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./ColumnSettingLayout.less */ \"./src/web/layout/common/ColumnSettingLayout.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 ColumnSettingLayout = function ColumnSettingLayout(props) {\n  var data = props.data,\n    checkedKeys = props.checkedKeys,\n    onConfirm = props.onConfirm,\n    onApi = props.onApi,\n    lockIndex = props.lockIndex,\n    onSyncCurrentColumnData = props.onSyncCurrentColumnData;\n  var handlerRef = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    onApi === null || onApi === void 0 || onApi({\n      getColumn: function getColumn() {\n        var _handlerRef$current, _handlerRef$current$g;\n        return (_handlerRef$current = handlerRef.current) === null || _handlerRef$current === void 0 || (_handlerRef$current$g = _handlerRef$current.getColumn) === null || _handlerRef$current$g === void 0 ? void 0 : _handlerRef$current$g.call(_handlerRef$current);\n      }\n    });\n  }, [onApi, handlerRef.current]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ColumnSettingLayout.default.layout\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ColumnSettingLayout.default.head\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ColumnSettingLayout.default.title\n  }, \"\\u914D\\u7F6E\\u5217\\u8868\\u9879\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    onClick: onSyncCurrentColumnData,\n    className: (0, _classnames.default)(_ColumnSettingLayout.default.btn),\n    text: \"\\u540C\\u6B65\\u5F53\\u524D\\u6761\\u4EF6\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'qiehuan'\n    }\n  })), /*#__PURE__*/_react.default.createElement(_WebUI.ListItemSetting, {\n    ref: handlerRef,\n    checkedKeys: checkedKeys,\n    onConfirm: onConfirm,\n    data: data\n    // columns={filterOperateColMemo}\n    ,\n    lockIndex: lockIndex\n    // showFooter={false}\n    ,\n    bodyClassName: _ColumnSettingLayout.default.body,\n    renderHeader: function renderHeader(titleEle, searchEle) {\n      return /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _ColumnSettingLayout.default.search\n      }, searchEle);\n    },\n    renderFooter: function renderFooter(selectAllEle, confirmButtonEle) {\n      return /*#__PURE__*/_react.default.createElement(Footer, {\n        selectAllEle: selectAllEle\n      });\n    }\n  }));\n};\nvar Footer = function Footer(props) {\n  var selectAllEle = props.selectAllEle;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ColumnSettingLayout.default.footer\n  }, selectAllEle);\n};\nvar _default = exports[\"default\"] = ColumnSettingLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vQ29sdW1uU2V0dGluZ0xheW91dC50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFLQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBSUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBSUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2NvbW1vbi9Db2x1bW5TZXR0aW5nTGF5b3V0LnRzeD9jMTBhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VFZmZlY3QsIHVzZVJlZiwgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBMaXN0SXRlbVNldHRpbmcsIEJ0bkZpZWxkIGFzIEJ1dHRvbiB9IGZyb20gJ25vY29kZV9jb21wb25lbnQvV2ViVUknXG5pbXBvcnQgY2xhc3NOYW1lcyBmcm9tICdjbGFzc25hbWVzJ1xuaW1wb3J0IHN0eWxlcyBmcm9tICcuL0NvbHVtblNldHRpbmdMYXlvdXQubGVzcydcblxudHlwZSBIYW5kbGVyVHlwZSA9IHtcbiAgZ2V0Q29sdW1uOiAoKSA9PiB2b2lkXG59XG5jb25zdCBDb2x1bW5TZXR0aW5nTGF5b3V0ID0gKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgZGF0YSwgY2hlY2tlZEtleXMsIG9uQ29uZmlybSwgb25BcGksIGxvY2tJbmRleCwgb25TeW5jQ3VycmVudENvbHVtbkRhdGEgfSA9IHByb3BzXG4gIGNvbnN0IGhhbmRsZXJSZWYgPSB1c2VSZWY8SGFuZGxlclR5cGU+KClcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIG9uQXBpPy4oe1xuICAgICAgZ2V0Q29sdW1uOiAoKSA9PiBoYW5kbGVyUmVmLmN1cnJlbnQ/LmdldENvbHVtbj8uKClcbiAgICB9KVxuICB9LCBbb25BcGksIGhhbmRsZXJSZWYuY3VycmVudF0pXG5cbiAgcmV0dXJuIDxkaXYgY2xhc3NOYW1lPXtzdHlsZXMubGF5b3V0fT5cbiAgICA8ZGl2IGNsYXNzTmFtZT17c3R5bGVzLmhlYWR9PlxuICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlcy50aXRsZX0+6YWN572u5YiX6KGo6aG5PC9kaXY+XG4gICAgICA8QnV0dG9uIHR5cGU9J3RleHQnIG9uQ2xpY2s9e29uU3luY0N1cnJlbnRDb2x1bW5EYXRhfSBjbGFzc05hbWU9e2NsYXNzTmFtZXMoc3R5bGVzLmJ0bil9IHRleHQ9J+WQjOatpeW9k+WJjeadoeS7ticgaWNvbj17eyBwcmVmaXg6ICdub2NvZGVwbGF0Zm9ybWljb24nLCB0eXBlOiAncWllaHVhbicgfX0gLz5cbiAgICA8L2Rpdj5cbiAgICA8TGlzdEl0ZW1TZXR0aW5nXG4gICAgICByZWY9e2hhbmRsZXJSZWZ9XG4gICAgICBjaGVja2VkS2V5cz17Y2hlY2tlZEtleXN9XG4gICAgICBvbkNvbmZpcm09e29uQ29uZmlybX1cbiAgICAgIGRhdGE9e2RhdGF9XG4gICAgICAvLyBjb2x1bW5zPXtmaWx0ZXJPcGVyYXRlQ29sTWVtb31cbiAgICAgIGxvY2tJbmRleD17bG9ja0luZGV4fVxuICAgICAgLy8gc2hvd0Zvb3Rlcj17ZmFsc2V9XG4gICAgICBib2R5Q2xhc3NOYW1lPXtzdHlsZXMuYm9keX1cbiAgICAgIHJlbmRlckhlYWRlcj17KHRpdGxlRWxlOiBSZWFjdE5vZGUsIHNlYXJjaEVsZTogUmVhY3ROb2RlKSA9PiB7XG4gICAgICAgIHJldHVybiA8ZGl2IGNsYXNzTmFtZT17c3R5bGVzLnNlYXJjaH0+e3NlYXJjaEVsZX08L2Rpdj5cbiAgICAgIH19XG4gICAgICByZW5kZXJGb290ZXI9eyhzZWxlY3RBbGxFbGU6IFJlYWN0Tm9kZSwgY29uZmlybUJ1dHRvbkVsZTogUmVhY3ROb2RlKSA9PiB7XG4gICAgICAgIHJldHVybiA8Rm9vdGVyXG4gICAgICAgICAgc2VsZWN0QWxsRWxlPXtzZWxlY3RBbGxFbGV9XG4gICAgICAgIC8+XG4gICAgICB9fVxuICAgIC8+XG4gIDwvZGl2PlxuXG59XG5jb25zdCBGb290ZXIgPSAocHJvcHMpID0+IHtcbiAgY29uc3QgeyBzZWxlY3RBbGxFbGUgfSA9IHByb3BzXG4gIHJldHVybiAoXG4gICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlcy5mb290ZXJ9PlxuICAgICAgeyBzZWxlY3RBbGxFbGUgfVxuICAgIDwvZGl2PlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IENvbHVtblNldHRpbmdMYXlvdXRcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/common/ColumnSettingLayout.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _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 _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useFilterRefBill = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFilterRefBill */ \"./src/hooks/useFilterRefBill.tsx\"));\nvar _FilterSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./FilterSettingLayout.less */ \"./src/web/layout/common/FilterSettingLayout.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-06-25 09:33:12\n * @LastEditTime: 2023-12-15 14:41:49\n * @Last Modified by: jianhang_he\n */\n\nvar FilterSettingLayout = (0, _react.forwardRef)(function (props, ref) {\n  var _handlerRef$current2, _handlerRef$current7;\n  var data = props.data,\n    _props$configuredFilt = props.configuredFilterItems,\n    configuredFilterItems = _props$configuredFilt === void 0 ? [] : _props$configuredFilt,\n    onApi = props.onApi,\n    onSyncCurrentFilterData = props.onSyncCurrentFilterData,\n    getEnumFilterValue = props.getEnumFilterValue;\n  var handlerRef = (0, _react.useRef)();\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    enumFilterValue = _useState2[0],\n    setEnumFilterValue = _useState2[1];\n  (0, _react.useImperativeHandle)(ref, function () {\n    var _handlerRef$current;\n    return {\n      updateVerifyAndGetMsg: (_handlerRef$current = handlerRef.current) === null || _handlerRef$current === void 0 ? void 0 : _handlerRef$current.updateVerifyAndGetMsg\n    };\n  }, [(_handlerRef$current2 = handlerRef.current) === null || _handlerRef$current2 === void 0 ? void 0 : _handlerRef$current2.updateVerifyAndGetMsg]);\n  var onColHeadFilterVisibleChange = (0, _react.useCallback)(function (v) {\n    getEnumFilterValue(v).then(function (data) {\n      setEnumFilterValue((0, _defineProperty2.default)({}, v === null || v === void 0 ? void 0 : v.fieldName, data));\n    });\n  }, []);\n  var onAdd = (0, _react.useCallback)(function (fieldName) {\n    var _handlerRef$current3, _handlerRef$current3$;\n    (_handlerRef$current3 = handlerRef.current) === null || _handlerRef$current3 === void 0 || (_handlerRef$current3$ = _handlerRef$current3.onFilterAdd) === null || _handlerRef$current3$ === void 0 || _handlerRef$current3$.call(_handlerRef$current3, fieldName);\n  }, []);\n  var handleClear = (0, _react.useCallback)(function () {\n    var _handlerRef$current4, _handlerRef$current4$;\n    (_handlerRef$current4 = handlerRef.current) === null || _handlerRef$current4 === void 0 || (_handlerRef$current4$ = _handlerRef$current4.onFilterClear) === null || _handlerRef$current4$ === void 0 || _handlerRef$current4$.call(_handlerRef$current4);\n  }, []);\n  (0, _react.useEffect)(function () {\n    onApi === null || onApi === void 0 || onApi({\n      getFilter: function getFilter() {\n        var _handlerRef$current5, _handlerRef$current5$;\n        return (_handlerRef$current5 = handlerRef.current) === null || _handlerRef$current5 === void 0 || (_handlerRef$current5$ = _handlerRef$current5.getFilter) === null || _handlerRef$current5$ === void 0 ? void 0 : _handlerRef$current5$.call(_handlerRef$current5);\n      }\n    });\n  }, [onApi, handlerRef.current]);\n  var refBillProps = (0, _useFilterRefBill.default)();\n\n  // 当前有筛选项\n  var hasFilter = (0, _react.useMemo)(function () {\n    var _handlerRef$current6, _handlerRef$current6$;\n    var curFilter = (handlerRef === null || handlerRef === void 0 || (_handlerRef$current6 = handlerRef.current) === null || _handlerRef$current6 === void 0 || (_handlerRef$current6$ = _handlerRef$current6.getFilter) === null || _handlerRef$current6$ === void 0 ? void 0 : _handlerRef$current6$.call(_handlerRef$current6)) || [];\n    return curFilter.length;\n  }, [handlerRef === null || handlerRef === void 0 || (_handlerRef$current7 = handlerRef.current) === null || _handlerRef$current7 === void 0 ? void 0 : _handlerRef$current7.getFilter]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FilterSettingLayout.default.layout\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FilterSettingLayout.default.head\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FilterSettingLayout.default.title\n  }, \"\\u914D\\u7F6E\\u7B5B\\u9009\\u6761\\u4EF6\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    onClick: onSyncCurrentFilterData,\n    className: (0, _classnames.default)(_FilterSettingLayout.default.btn),\n    text: \"\\u540C\\u6B65\\u5F53\\u524D\\u6761\\u4EF6\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'qiehuan'\n    }\n  })), /*#__PURE__*/_react.default.createElement(_WebUI.ListFilterSetting, {\n    ref: handlerRef,\n    valueRequired: true,\n    data: data,\n    configuredFilterItems: configuredFilterItems,\n    colHeadFilter: enumFilterValue,\n    onColHeadFilterVisibleChange: onColHeadFilterVisibleChange,\n    showFooter: false,\n    showEmpty: false,\n    showVarSelect: false,\n    bodyClassName: _FilterSettingLayout.default.body,\n    filterEditorClassName: (0, _classnames.default)(_FilterSettingLayout.default.filtereditor, (0, _defineProperty2.default)({}, _FilterSettingLayout.default.editor_bottom, hasFilter)),\n    refBillProps: refBillProps,\n    renderFooter: function renderFooter(addFilterEle, cleaButtonEle, confirmButtonEle) {\n      return /*#__PURE__*/_react.default.createElement(Footer, {\n        className: (0, _classnames.default)((0, _defineProperty2.default)({}, _FilterSettingLayout.default.with_filter_footer, hasFilter)),\n        filters: data,\n        onAdd: onAdd,\n        onClear: handleClear,\n        addFilterElement: addFilterEle\n      });\n    }\n  }));\n});\nvar Footer = function Footer(props) {\n  var onClear = props.onClear,\n    addFilterElement = props.addFilterElement,\n    className = props.className;\n  var handleClear = (0, _react.useCallback)(function () {\n    onClear === null || onClear === void 0 || onClear();\n  }, [onClear]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FilterSettingLayout.default.footer, className)\n  }, addFilterElement, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    size: \"small\",\n    type: \"text\",\n    className: _FilterSettingLayout.default.clear,\n    onClick: handleClear\n  }, \"\\u6E05\\u7A7A\"));\n};\nvar _default = exports[\"default\"] = FilterSettingLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/common/FilterSettingLayout.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.timeModeList = exports[\"default\"] = exports.colorList = exports.TimeModeTypes = exports.SchemaTypes = void 0;\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.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 _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _BaseSettingLayout = __webpack_require__(/*! ./BaseSettingLayout */ \"./src/web/layout/common/BaseSettingLayout.tsx\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _BaseSettingLayout2 = _interopRequireDefault(__webpack_require__(/*! ./BaseSettingLayout.less */ \"./src/web/layout/common/BaseSettingLayout.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; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /*\n * @Description: 甘特图配置\n * @Author: jianhang_he\n * @Date: 2024-03-01 14:53:12\n * @LastEditTime: 2024-08-08 10:38:04\n * @Last Modified by: jianhang_he\n */\nvar SchemaTypes = exports.SchemaTypes = /*#__PURE__*/function (SchemaTypes) {\n  SchemaTypes[\"List\"] = \"0\";\n  SchemaTypes[\"Gantt\"] = \"1\";\n  return SchemaTypes;\n}({});\nvar schemaTypeList = [{\n  value: SchemaTypes.List,\n  label: '列表'\n}, {\n  value: SchemaTypes.Gantt,\n  label: '甘特图'\n}];\nvar TimeModeTypes = exports.TimeModeTypes = /*#__PURE__*/function (TimeModeTypes) {\n  TimeModeTypes[\"Day\"] = \"0\";\n  TimeModeTypes[\"Week\"] = \"1\";\n  TimeModeTypes[\"Month\"] = \"2\";\n  TimeModeTypes[\"QuarterYear\"] = \"3\";\n  TimeModeTypes[\"Year\"] = \"4\";\n  return TimeModeTypes;\n}({});\nvar timeModeList = exports.timeModeList = [{\n  value: TimeModeTypes.Day,\n  label: '日'\n}, {\n  value: TimeModeTypes.Week,\n  label: '周'\n}, {\n  value: TimeModeTypes.Month,\n  label: '月'\n}, {\n  value: TimeModeTypes.QuarterYear,\n  label: '季'\n}, {\n  value: TimeModeTypes.Year,\n  label: '年'\n}];\nvar colorList = exports.colorList = ['#B3D5FF', '#A1ECFF', '#A1F5E8', '#A1E6B5', '#DDFF8F', '#FFEF8A', '#FFE0A6', '#FFCAA8', '#FFADB6', '#FE95AC', '#D4A8FF', '#99CCFF', '#D9D9D9', '#276FF5', '#16B0F1', '#16B8B1', '#1BA854', '#77C404', '#FDC200', '#FF991C', '#FF5F1F', '#FB2323', '#F90D58', '#701DF0', '#0E5FD8', '#999999'];\n\n// 获取随机颜色（随机深色且不重复）\nvar getRandomColor = function getRandomColor(colors) {\n  var existColors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n  // 确保传入的数组不为空\n  if (colors.length === 0) {\n    throw new Error('颜色不能为空');\n  }\n  var randomIndex = 0;\n  var color = '';\n  while (!color || (0, _includes.default)(existColors).call(existColors, color)) {\n    // 使用 Math.random() 生成一个随机索引\n    randomIndex = Math.floor(Math.random() * colors.length);\n    color = colors[randomIndex];\n  }\n\n  // 返回随机索引对应的色值\n  return color;\n};\nvar transformVariablesTree = function transformVariablesTree(fieldList, cb) {\n  if (!fieldList) {\n    return [];\n  }\n  var _tree = [];\n  fieldList.forEach(function (field) {\n    if (cb(field)) {\n      var _field$children;\n      var treeItem = _objectSpread(_objectSpread({}, field), {}, {\n        key: field.number,\n        title: field.name\n      });\n      if ((_field$children = field.children) !== null && _field$children !== void 0 && _field$children.length) {\n        treeItem.children = transformVariablesTree(field.children, cb);\n      }\n      _tree.push(treeItem);\n    }\n  });\n  return _tree;\n};\nvar filterTree = function filterTree(data) {\n  var _context;\n  if (!data) return false;\n\n  // 日期、日期范围、创建修改时间需要显示\n  return (0, _includes.default)(_context = ['nocodedaterangefield', 'nocodedatefield', 'nocodecreatedatefield', 'nocodemodifydatefield']).call(_context, data.type);\n};\nvar getValueDate = function getValueDate(data) {\n  if (!data) return;\n  if (data.type === 'value') {\n    return new Date(data.value);\n  }\n};\nvar limitCount = 5;\nvar GanttSettingLayout = (0, _react.memo)(function (_ref) {\n  var _ganttconfig;\n  var _ref$data = _ref.data,\n    data = _ref$data === void 0 ? {} : _ref$data,\n    fieldList = _ref.fieldList,\n    onChange = _ref.onChange;\n  var schematype = data.schematype,\n    _data$ganttconfig = data.ganttconfig,\n    ganttconfig = _data$ganttconfig === void 0 ? [] : _data$ganttconfig,\n    timemode = data.timemode;\n  var treeData = transformVariablesTree(fieldList, filterTree);\n  var handleChange = function handleChange(key, value) {\n    onChange === null || onChange === void 0 || onChange(_objectSpread(_objectSpread({}, data), {}, (0, _defineProperty2.default)({}, key, value)));\n  };\n  var handleChangeSchemaType = function handleChangeSchemaType(v) {\n    handleChange('schematype', v);\n  };\n  var handleChangeGantt = function handleChangeGantt(v) {\n    handleChange('ganttconfig', v);\n  };\n  var handleChangeTimeMode = function handleChangeTimeMode(v) {\n    handleChange('timemode', v);\n  };\n  var createNewGanttConfigItem = function createNewGanttConfigItem() {\n    var _data$ganttconfig2;\n    var existColors = data === null || data === void 0 || (_data$ganttconfig2 = data.ganttconfig) === null || _data$ganttconfig2 === void 0 ? void 0 : (0, _map.default)(_data$ganttconfig2).call(_data$ganttconfig2, function (item) {\n      return item.taskColor;\n    });\n    return {\n      taskId: (0, _utils.createUUid)(),\n      taskColor: getRandomColor(_WebUI.EditOptionList.darkColorList, existColors)\n    };\n  };\n  var handleAddGanttConfig = function handleAddGanttConfig() {\n    var _context2;\n    var ganttConfigLen = ganttconfig.length;\n    if (limitCount && ganttConfigLen >= limitCount) return;\n    var newItem = createNewGanttConfigItem();\n    var _ganttConfig = (0, _concat.default)(_context2 = []).call(_context2, (0, _toConsumableArray2.default)(ganttconfig), [newItem]);\n    handleChangeGantt(_ganttConfig);\n  };\n  var handleDateChange = function handleDateChange(key, option, value) {\n    var _ganttConfig = ganttconfig === null || ganttconfig === void 0 ? void 0 : (0, _map.default)(ganttconfig).call(ganttconfig, function (item) {\n      if (item.taskId === option.taskId) {\n        return _objectSpread(_objectSpread({}, item), {}, (0, _defineProperty2.default)({}, key, value ? {\n          value: value,\n          type: 'value'\n        } : undefined));\n      }\n      return item;\n    });\n    handleChangeGantt(_ganttConfig);\n  };\n  var handleVarSelectChange = function handleVarSelectChange(key, option, selectedKey) {\n    var _ganttConfig = ganttconfig === null || ganttconfig === void 0 ? void 0 : (0, _map.default)(ganttconfig).call(ganttconfig, function (item) {\n      if (item.taskId === option.taskId) {\n        return _objectSpread(_objectSpread({}, item), {}, (0, _defineProperty2.default)({}, key, {\n          value: selectedKey === null || selectedKey === void 0 ? void 0 : selectedKey[0],\n          type: 'field'\n        }));\n      }\n      return item;\n    });\n    handleChangeGantt(_ganttConfig);\n  };\n  var handleClear = function handleClear(key, option) {\n    var _ganttConfig = ganttconfig === null || ganttconfig === void 0 ? void 0 : (0, _map.default)(ganttconfig).call(ganttconfig, function (item) {\n      if (item.taskId === option.taskId) {\n        return _objectSpread(_objectSpread({}, item), {}, (0, _defineProperty2.default)({}, key, undefined));\n      }\n      return item;\n    });\n    handleChangeGantt(_ganttConfig);\n  };\n  var getVarSelectProps = (0, _react.useCallback)(function (key, option) {\n    var _option$key, _option$key2, _option$key3;\n    var timeValue = (_option$key = option[key]) === null || _option$key === void 0 ? void 0 : _option$key.value;\n    var selectedKeys = timeValue ? Array.isArray(timeValue) ? timeValue : [timeValue] : [];\n    return {\n      type: 'treeSelect',\n      data: treeData,\n      showSearch: true,\n      selectedKeys: selectedKeys,\n      varSelectActive: ((_option$key2 = option[key]) === null || _option$key2 === void 0 ? void 0 : _option$key2.type) === 'field',\n      isVar: ((_option$key3 = option[key]) === null || _option$key3 === void 0 ? void 0 : _option$key3.type) === 'field',\n      onSelect: function onSelect() {\n        var _context3;\n        for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n          params[_key] = arguments[_key];\n        }\n        return handleVarSelectChange.apply(void 0, (0, _concat.default)(_context3 = [key, option]).call(_context3, params));\n      },\n      onClear: function onClear() {\n        return handleClear(key, option);\n      }\n    };\n  }, [treeData]);\n  var renderOption = function renderOption(index, item, Component) {\n    var _item$start, _item$end;\n    var startTime = (_item$start = item.start) === null || _item$start === void 0 ? void 0 : _item$start.value;\n    var endTime = (_item$end = item.end) === null || _item$end === void 0 ? void 0 : _item$end.value;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BaseSettingLayout2.default.setting_option\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BaseSettingLayout2.default.setting_option_name\n    }, Component), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n      label: item.name,\n      name: item.taskId,\n      className: _BaseSettingLayout2.default.setting_option_timeitem_wrapper,\n      rules: [function (_ref2) {\n        var getFieldValue = _ref2.getFieldValue;\n        return {\n          validator: function validator(_, value) {\n            if (!item.start && !item.end) {\n              return _promise.default.reject(new Error('开始和结束时间不能同时为空'));\n            }\n            return _promise.default.resolve();\n          }\n        };\n      }]\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BaseSettingLayout2.default.setting_option_timeitem\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BaseSettingLayout2.default.setting_option_item\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.InputCombo, {\n      placeholder: \"\\u5F00\\u59CB\\u65F6\\u95F4\",\n      fieldType: \"datetime\",\n      value: getValueDate(item.start),\n      onChange: function onChange(value) {\n        return handleDateChange('start', item, value);\n      },\n      varSelectProps: getVarSelectProps('start', item)\n    })), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BaseSettingLayout2.default.setting_option_item\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.InputCombo, {\n      placeholder: \"\\u7ED3\\u675F\\u65F6\\u95F4\",\n      fieldType: \"datetime\",\n      value: getValueDate(item.end),\n      onChange: function onChange(value) {\n        return handleDateChange('end', item, value);\n      },\n      varSelectProps: getVarSelectProps('end', item)\n    })))));\n  };\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_field\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_name\n  }, \"\\u89C6\\u56FE\\u7C7B\\u578B\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_wrapper\n  }, /*#__PURE__*/_react.default.createElement(_BaseSettingLayout.Tab, {\n    onChange: handleChangeSchemaType,\n    value: schematype || SchemaTypes.List,\n    options: schemaTypeList\n  }))), schematype === SchemaTypes.Gantt && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_field\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_name\n  }, \"\\u5F00\\u59CB\\u65F6\\u95F4-\\u7ED3\\u675F\\u65F6\\u95F4\"), /*#__PURE__*/_react.default.createElement(_WebUI.EditOptionList, {\n    bgcolorChecked: true,\n    itemClassName: _BaseSettingLayout2.default.edit_item,\n    isNewOptionEdit: !((_ganttconfig = ganttconfig[(ganttconfig === null || ganttconfig === void 0 ? void 0 : ganttconfig.length) - 1 || 0]) !== null && _ganttconfig !== void 0 && _ganttconfig.name),\n    keyMap: {\n      id: 'taskId',\n      color: 'taskColor'\n    },\n    options: ganttconfig,\n    limitCount: limitCount,\n    onAdd: handleAddGanttConfig,\n    onChange: handleChangeGantt,\n    renderOption: renderOption\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_field\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_name\n  }, \"\\u65F6\\u95F4\\u5C3A\\u5EA6\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BaseSettingLayout2.default.hidden_wrapper\n  }, /*#__PURE__*/_react.default.createElement(_BaseSettingLayout.Tab, {\n    onChange: handleChangeTimeMode,\n    value: timemode || TimeModeTypes.Day,\n    options: timeModeList\n  })))));\n});\nGanttSettingLayout.displayName = 'GanttSettingLayout';\nvar _default = exports[\"default\"] = GanttSettingLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/common/GanttSettingLayout.tsx\n");

/***/ }),

/***/ "./src/web/layout/common/SiderMenu.tsx":
/*!*********************************************!*\
  !*** ./src/web/layout/common/SiderMenu.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.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 _SiderMenu = _interopRequireDefault(__webpack_require__(/*! ./SiderMenu.less */ \"./src/web/layout/common/SiderMenu.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 SiderMenu = _react.default.memo(function (props) {\n  var selectedKeyProps = props.selectedKey,\n    menu = props.menu,\n    width = props.width,\n    onSelectProps = props.onSelect;\n  var Sider = _kdesign.Layout.Sider;\n  var _useState = (0, _react.useState)(selectedKeyProps),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    selectKey = _useState2[0],\n    setSelectKey = _useState2[1];\n\n  // 切换菜单\n  var onSelect = (0, _react.useCallback)(function (_ref) {\n    var key = _ref.key,\n      item = _ref.item,\n      keyPath = _ref.keyPath;\n    setSelectKey(key);\n    onSelectProps === null || onSelectProps === void 0 || onSelectProps(key);\n  }, [onSelectProps]);\n  (0, _react.useEffect)(function () {\n    setSelectKey(selectedKeyProps);\n  }, [selectedKeyProps]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Sider, {\n    width: width,\n    className: _SiderMenu.default.side_bar\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Menu, {\n    mode: \"inline\",\n    theme: \"light\",\n    onClick: onSelect,\n    defaultSelectedKey: \"1\",\n    selectedKey: selectKey,\n    defaultOpenKeys: ['sub1'],\n    style: {\n      width: '100%',\n      height: '100%',\n      borderRight: 0\n    }\n  }, menu === null || menu === void 0 ? void 0 : (0, _map.default)(menu).call(menu, function (item) {\n    var key = item.key,\n      icon = item.icon,\n      title = item.title;\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Menu.Item, {\n      key: key,\n      icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n        prefix: \"nocodeplatformicon\",\n        type: icon\n      })\n    }, title);\n  }))));\n});\nSiderMenu.displayName = 'SiderMenu';\nvar _default = exports[\"default\"] = SiderMenu;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vU2lkZXJNZW51LnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQWVBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBOztBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFFQTtBQUVBO0FBQUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUlBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFNQTtBQUVBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9jb21tb24vU2lkZXJNZW51LnRzeD9lNWVlIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjaywgdXNlRWZmZWN0LCBGQywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IExheW91dCwgTWVudSwgSWNvbiB9IGZyb20gJ0BrZGNsb3VkanMva2Rlc2lnbidcbmltcG9ydCBzdHlsZSBmcm9tICcuL1NpZGVyTWVudS5sZXNzJ1xuXG5pbnRlcmZhY2UgU2lkZXJNZW51UHJvcHMge1xuICBzZWxlY3RlZEtleTogc3RyaW5nLFxuICBtZW51OiBBcnJheTxtZW51SXRlbT4sXG4gIHdpZHRoOiBudW1iZXIsXG4gIG9uU2VsZWN0OiAoa2V5OiBzdHJpbmcpID0+IHZvaWRcbn1cblxudHlwZSBtZW51SXRlbSA9IHtcbiAgdGl0bGU6IHN0cmluZyxcbiAgaWNvbjogc3RyaW5nLFxuICBrZXk6IHN0cmluZ1xufVxuXG5jb25zdCBTaWRlck1lbnU6IEZDPFNpZGVyTWVudVByb3BzPiA9IFJlYWN0Lm1lbW8oKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgc2VsZWN0ZWRLZXk6IHNlbGVjdGVkS2V5UHJvcHMsIG1lbnUsIHdpZHRoLCBvblNlbGVjdDogb25TZWxlY3RQcm9wcyB9ID0gcHJvcHNcbiAgY29uc3QgeyBTaWRlciB9ID0gTGF5b3V0XG4gIGNvbnN0IFtzZWxlY3RLZXksIHNldFNlbGVjdEtleV0gPSB1c2VTdGF0ZShzZWxlY3RlZEtleVByb3BzKVxuXG4gIC8vIOWIh+aNouiPnOWNlVxuICBjb25zdCBvblNlbGVjdCA9IHVzZUNhbGxiYWNrKCh7IGtleSwgaXRlbSwga2V5UGF0aCB9KSA9PiB7XG4gICAgc2V0U2VsZWN0S2V5KGtleSlcbiAgICBvblNlbGVjdFByb3BzPy4oa2V5KVxuICB9LCBbb25TZWxlY3RQcm9wc10pXG5cbiAgdXNlRWZmZWN0KCgpID0+IHtcbiAgICBzZXRTZWxlY3RLZXkoc2VsZWN0ZWRLZXlQcm9wcylcbiAgfSwgW3NlbGVjdGVkS2V5UHJvcHNdKVxuXG4gIHJldHVybiAoXG4gICAgPD5cbiAgICAgIDxTaWRlciB3aWR0aD17d2lkdGh9IGNsYXNzTmFtZT17c3R5bGUuc2lkZV9iYXJ9PlxuICAgICAgICA8TWVudVxuICAgICAgICAgIG1vZGU9J2lubGluZSdcbiAgICAgICAgICB0aGVtZT0nbGlnaHQnXG4gICAgICAgICAgb25DbGljaz17b25TZWxlY3R9XG4gICAgICAgICAgZGVmYXVsdFNlbGVjdGVkS2V5PScxJ1xuICAgICAgICAgIHNlbGVjdGVkS2V5PXtzZWxlY3RLZXl9XG4gICAgICAgICAgZGVmYXVsdE9wZW5LZXlzPXtbJ3N1YjEnXX1cbiAgICAgICAgICBzdHlsZT17eyB3aWR0aDogJzEwMCUnLCBoZWlnaHQ6ICcxMDAlJywgYm9yZGVyUmlnaHQ6IDAgfX1cbiAgICAgICAgPlxuICAgICAgICAgIHtcbiAgICAgICAgICAgIG1lbnU/Lm1hcChpdGVtID0+IHtcbiAgICAgICAgICAgICAgY29uc3QgeyBrZXksIGljb24sIHRpdGxlIH0gPSBpdGVtXG4gICAgICAgICAgICAgIHJldHVybiA8TWVudS5JdGVtIGtleT17a2V5fSBpY29uPXs8SWNvbiBwcmVmaXg9J25vY29kZXBsYXRmb3JtaWNvbicgdHlwZT17aWNvbn0gLz59Pnt0aXRsZX08L01lbnUuSXRlbT5cbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgfVxuICAgICAgICA8L01lbnU+XG4gICAgICA8L1NpZGVyPlxuICAgIDwvPlxuICApXG59KVxuXG5TaWRlck1lbnUuZGlzcGxheU5hbWUgPSAnU2lkZXJNZW51J1xuXG5leHBvcnQgZGVmYXVsdCBTaWRlck1lbnVcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/common/SiderMenu.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _SortSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./SortSettingLayout.less */ \"./src/web/layout/common/SortSettingLayout.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-06-25 09:33:12\n * @LastEditTime: 2023-07-17 09:54:31\n * @Last Modified by: jianhang_he\n */\n\nvar SortSettingLayout = function SortSettingLayout(props) {\n  var data = props.data,\n    configuredSortItems = props.configuredSortItems,\n    onApi = props.onApi,\n    onSyncCurrentSortData = props.onSyncCurrentSortData;\n  var handlerRef = (0, _react.useRef)();\n  var onAdd = (0, _react.useCallback)(function (fieldName) {\n    var _handlerRef$current, _handlerRef$current$o;\n    (_handlerRef$current = handlerRef.current) === null || _handlerRef$current === void 0 || (_handlerRef$current$o = _handlerRef$current.onSortAdd) === null || _handlerRef$current$o === void 0 || _handlerRef$current$o.call(_handlerRef$current, fieldName);\n  }, []);\n  var handleClear = (0, _react.useCallback)(function () {\n    var _handlerRef$current2, _handlerRef$current2$;\n    (_handlerRef$current2 = handlerRef.current) === null || _handlerRef$current2 === void 0 || (_handlerRef$current2$ = _handlerRef$current2.onSortClear) === null || _handlerRef$current2$ === void 0 || _handlerRef$current2$.call(_handlerRef$current2);\n  }, []);\n  (0, _react.useEffect)(function () {\n    onApi === null || onApi === void 0 || onApi({\n      getSort: function getSort() {\n        var _handlerRef$current3, _handlerRef$current3$;\n        return (_handlerRef$current3 = handlerRef.current) === null || _handlerRef$current3 === void 0 || (_handlerRef$current3$ = _handlerRef$current3.getSort) === null || _handlerRef$current3$ === void 0 ? void 0 : _handlerRef$current3$.call(_handlerRef$current3);\n      }\n    });\n  }, [onApi, handlerRef.current]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SortSettingLayout.default.layout\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SortSettingLayout.default.head\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SortSettingLayout.default.title\n  }, \"\\u914D\\u7F6E\\u6392\\u5E8F\\u6761\\u4EF6\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    onClick: onSyncCurrentSortData,\n    className: (0, _classnames.default)(_SortSettingLayout.default.btn),\n    text: \"\\u540C\\u6B65\\u5F53\\u524D\\u6761\\u4EF6\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'qiehuan'\n    }\n  })), /*#__PURE__*/_react.default.createElement(_WebUI.ListSort, {\n    ref: handlerRef,\n    data: data || [],\n    configuredSortItems: configuredSortItems,\n    showFooter: false,\n    showEmpty: false,\n    bodyClassName: _SortSettingLayout.default.body,\n    addText: '添加排序规则',\n    renderFooter: function renderFooter(addFilterEle, cleaButtonEle, confirmButtonEle) {\n      return /*#__PURE__*/_react.default.createElement(Footer, {\n        filters: data,\n        onAdd: onAdd,\n        onClear: handleClear,\n        addFilterElement: addFilterEle\n      });\n    }\n  }));\n};\nvar Footer = function Footer(props) {\n  var onClear = props.onClear,\n    addFilterElement = props.addFilterElement;\n  var handleClear = (0, _react.useCallback)(function () {\n    onClear === null || onClear === void 0 || onClear();\n  }, [onClear]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SortSettingLayout.default.footer\n  }, addFilterElement, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    size: \"small\",\n    type: \"text\",\n    className: _SortSettingLayout.default.clear,\n    onClick: handleClear\n  }, \"\\u6E05\\u7A7A\"));\n};\nvar _default = exports[\"default\"] = SortSettingLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vU29ydFNldHRpbmdMYXlvdXQudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBVkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBWUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBSUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBR0E7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2NvbW1vbi9Tb3J0U2V0dGluZ0xheW91dC50c3g/OTBlMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTA2LTI1IDA5OjMzOjEyXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTA3LTE3IDA5OjU0OjMxXG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IHVzZUVmZmVjdCwgdXNlQ2FsbGJhY2ssIHVzZVJlZiwgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBMaXN0U29ydCwgQnRuRmllbGQgYXMgQnV0dG9uIH0gZnJvbSAnbm9jb2RlX2NvbXBvbmVudC9XZWJVSSdcbmltcG9ydCBjbGFzc05hbWVzIGZyb20gJ2NsYXNzbmFtZXMnXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vU29ydFNldHRpbmdMYXlvdXQubGVzcydcblxudHlwZSBIYW5kbGVyVHlwZSA9IHtcbiAgb25Tb3J0QWRkOiAoKSA9PiB2b2lkLFxuICBvblNvcnRDbGVhcjogKCkgPT4gdm9pZCxcbiAgZ2V0U29ydDogKCkgPT4gdm9pZFxuICBnZXRTb3J0Q291bnQ6ICgpID0+IHZvaWRcbn1cbmNvbnN0IFNvcnRTZXR0aW5nTGF5b3V0ID0gKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgZGF0YSwgY29uZmlndXJlZFNvcnRJdGVtcywgb25BcGksIG9uU3luY0N1cnJlbnRTb3J0RGF0YSB9ID0gcHJvcHNcbiAgY29uc3QgaGFuZGxlclJlZiA9IHVzZVJlZjxIYW5kbGVyVHlwZT4oKVxuXG4gIGNvbnN0IG9uQWRkID0gdXNlQ2FsbGJhY2soKGZpZWxkTmFtZSkgPT4ge1xuICAgIGhhbmRsZXJSZWYuY3VycmVudD8ub25Tb3J0QWRkPy4oZmllbGROYW1lKVxuICB9LCBbXSlcblxuICBjb25zdCBoYW5kbGVDbGVhciA9IHVzZUNhbGxiYWNrKCgpID0+IHtcbiAgICBoYW5kbGVyUmVmLmN1cnJlbnQ/Lm9uU29ydENsZWFyPy4oKVxuICB9LCBbXSlcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIG9uQXBpPy4oe1xuICAgICAgZ2V0U29ydDogKCkgPT4gaGFuZGxlclJlZi5jdXJyZW50Py5nZXRTb3J0Py4oKVxuICAgIH0pXG4gIH0sIFtvbkFwaSwgaGFuZGxlclJlZi5jdXJyZW50XSlcblxuICByZXR1cm4gPGRpdiBjbGFzc05hbWU9e3N0eWxlcy5sYXlvdXR9PlxuICAgIDxkaXYgY2xhc3NOYW1lPXtzdHlsZXMuaGVhZH0+XG4gICAgICA8ZGl2IGNsYXNzTmFtZT17c3R5bGVzLnRpdGxlfT7phY3nva7mjpLluo/mnaHku7Y8L2Rpdj5cbiAgICAgIDxCdXR0b24gdHlwZT0ndGV4dCcgb25DbGljaz17b25TeW5jQ3VycmVudFNvcnREYXRhfSBjbGFzc05hbWU9e2NsYXNzTmFtZXMoc3R5bGVzLmJ0bil9IHRleHQ9J+WQjOatpeW9k+WJjeadoeS7ticgaWNvbj17eyBwcmVmaXg6ICdub2NvZGVwbGF0Zm9ybWljb24nLCB0eXBlOiAncWllaHVhbicgfX0gLz5cbiAgICA8L2Rpdj5cbiAgICA8TGlzdFNvcnRcbiAgICAgIHJlZj17aGFuZGxlclJlZn1cbiAgICAgIGRhdGE9e2RhdGEgfHwgW119XG4gICAgICBjb25maWd1cmVkU29ydEl0ZW1zPXtjb25maWd1cmVkU29ydEl0ZW1zfVxuICAgICAgc2hvd0Zvb3Rlcj17ZmFsc2V9XG4gICAgICBzaG93RW1wdHk9e2ZhbHNlfVxuICAgICAgYm9keUNsYXNzTmFtZT17c3R5bGVzLmJvZHl9XG4gICAgICBhZGRUZXh0PXsn5re75Yqg5o6S5bqP6KeE5YiZJ31cbiAgICAgIHJlbmRlckZvb3Rlcj17KGFkZEZpbHRlckVsZTogUmVhY3ROb2RlLCBjbGVhQnV0dG9uRWxlOiBSZWFjdE5vZGUsIGNvbmZpcm1CdXR0b25FbGU6IFJlYWN0Tm9kZSkgPT4ge1xuICAgICAgICByZXR1cm4gPEZvb3RlclxuICAgICAgICAgIGZpbHRlcnM9e2RhdGF9XG4gICAgICAgICAgb25BZGQ9e29uQWRkfVxuICAgICAgICAgIG9uQ2xlYXI9e2hhbmRsZUNsZWFyfVxuICAgICAgICAgIGFkZEZpbHRlckVsZW1lbnQ9e2FkZEZpbHRlckVsZX1cbiAgICAgICAgLz5cbiAgICAgIH19XG4gICAgLz5cbiAgPC9kaXY+XG5cbn1cbmNvbnN0IEZvb3RlciA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IG9uQ2xlYXIsIGFkZEZpbHRlckVsZW1lbnQgfSA9IHByb3BzXG4gIGNvbnN0IGhhbmRsZUNsZWFyID0gdXNlQ2FsbGJhY2soKCkgPT4ge1xuICAgIG9uQ2xlYXI/LigpXG4gIH0sIFtvbkNsZWFyXSlcblxuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtzdHlsZXMuZm9vdGVyfT5cbiAgICAgIHsgYWRkRmlsdGVyRWxlbWVudCB9XG4gICAgICA8QnV0dG9uIHNpemU9J3NtYWxsJyB0eXBlPSd0ZXh0JyAgY2xhc3NOYW1lPXtzdHlsZXMuY2xlYXJ9IG9uQ2xpY2s9e2hhbmRsZUNsZWFyfT7muIXnqbo8L0J1dHRvbj5cbiAgICA8L2Rpdj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBTb3J0U2V0dGluZ0xheW91dFxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/layout/common/SortSettingLayout.tsx\n");

/***/ }),

/***/ "./src/web/layout/common/StatisticSettingLayout.tsx":
/*!**********************************************************!*\
  !*** ./src/web/layout/common/StatisticSettingLayout.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.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 _StatisticSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./StatisticSettingLayout.less */ \"./src/web/layout/common/StatisticSettingLayout.less\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _immer = _interopRequireDefault(__webpack_require__(/*! kd_libs/immer */ \"webpack/container/remote/kd_libs/immer\"));\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 StatisticSettingLayout = function StatisticSettingLayout(props) {\n  var statCardsProps = props.statCards,\n    onApi = props.onApi;\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    statCards = _useState2[0],\n    setStatCards = _useState2[1];\n  // const result = useMemo(() => {\n  //   return data.map(item => {\n  //     return {\n  //         ...item,\n  //         display: value.includes(item.id)\n  //       }\n  //     })\n  // }, [data, value])\n\n  var options = (0, _react.useMemo)(function () {\n    return (0, _map.default)(statCards).call(statCards, function (item) {\n      var index = item.index,\n        display = item.display,\n        id = item.id,\n        cardId = item.cardId,\n        title = item.title;\n      return {\n        label: title,\n        value: id\n      };\n    });\n  }, [statCards]);\n  (0, _react.useEffect)(function () {\n    setStatCards(statCardsProps);\n  }, [statCardsProps]);\n  (0, _react.useEffect)(function () {\n    onApi === null || onApi === void 0 || onApi({\n      getStatistic: function getStatistic() {\n        return statCards;\n      }\n    });\n  }, [onApi, statCards]);\n  var handleChange = (0, _react.useCallback)(function (id) {\n    setStatCards((0, _immer.default)(function (draft) {\n      draft.forEach(function (item) {\n        item.display = Array.isArray(id) ? (0, _includes.default)(id).call(id, item.id) : item.id === id;\n      });\n    }));\n  }, []);\n  var checkBoxValue = (0, _react.useMemo)(function () {\n    var _statCards$filter;\n    return (_statCards$filter = (0, _filter.default)(statCards).call(statCards, function (item) {\n      return item.display;\n    })) === null || _statCards$filter === void 0 ? void 0 : (0, _map.default)(_statCards$filter).call(_statCards$filter, function (item) {\n      return item.id;\n    });\n  }, [statCards]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _StatisticSettingLayout.default.layout\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _StatisticSettingLayout.default.title\n  }, \"\\u914D\\u7F6E\\u7EDF\\u8BA1\\u5361\\u7247\"), /*#__PURE__*/_react.default.createElement(_WebUI.Checkbox, {\n    value: checkBoxValue,\n    options: options,\n    onChange: handleChange\n  }));\n};\nvar _default = exports[\"default\"] = StatisticSettingLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9jb21tb24vU3RhdGlzdGljU2V0dGluZ0xheW91dC50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFJQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvY29tbW9uL1N0YXRpc3RpY1NldHRpbmdMYXlvdXQudHN4P2M3ODUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZVN0YXRlLCB1c2VFZmZlY3QsIHVzZU1lbW8sIHVzZUNhbGxiYWNrIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vU3RhdGlzdGljU2V0dGluZ0xheW91dC5sZXNzJ1xuaW1wb3J0IHsgQ2hlY2tib3ggYXMgQ2hlY2tib3hHcm91cCB9IGZyb20gJ25vY29kZV9jb21wb25lbnQvV2ViVUknXG5pbXBvcnQgcHJvZHVjZSBmcm9tICdpbW1lcidcblxuY29uc3QgU3RhdGlzdGljU2V0dGluZ0xheW91dCA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IHN0YXRDYXJkczogc3RhdENhcmRzUHJvcHMsIG9uQXBpIH0gPSBwcm9wc1xuICBjb25zdCBbc3RhdENhcmRzLCBzZXRTdGF0Q2FyZHNdID0gdXNlU3RhdGUoW10pXG4gIC8vIGNvbnN0IHJlc3VsdCA9IHVzZU1lbW8oKCkgPT4ge1xuICAvLyAgIHJldHVybiBkYXRhLm1hcChpdGVtID0+IHtcbiAgLy8gICAgIHJldHVybiB7XG4gIC8vICAgICAgICAgLi4uaXRlbSxcbiAgLy8gICAgICAgICBkaXNwbGF5OiB2YWx1ZS5pbmNsdWRlcyhpdGVtLmlkKVxuICAvLyAgICAgICB9XG4gIC8vICAgICB9KVxuICAvLyB9LCBbZGF0YSwgdmFsdWVdKVxuXG4gIGNvbnN0IG9wdGlvbnMgPSB1c2VNZW1vKCgpID0+IHtcbiAgICByZXR1cm4gc3RhdENhcmRzLm1hcCgoaXRlbSkgPT4ge1xuICAgICAgY29uc3Qge1xuICAgICAgICBpbmRleCxcbiAgICAgICAgZGlzcGxheSxcbiAgICAgICAgaWQsXG4gICAgICAgIGNhcmRJZCxcbiAgICAgICAgdGl0bGVcbiAgICAgfSA9IGl0ZW1cbiAgICAgcmV0dXJuIHtcbiAgICAgICBsYWJlbDogdGl0bGUsXG4gICAgICAgdmFsdWU6IGlkXG4gICAgIH1cbiAgICB9KVxuICB9LCBbc3RhdENhcmRzXSlcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIHNldFN0YXRDYXJkcyhzdGF0Q2FyZHNQcm9wcylcbiAgfSwgW3N0YXRDYXJkc1Byb3BzXSlcblxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIG9uQXBpPy4oe1xuICAgICAgZ2V0U3RhdGlzdGljOiAoKSA9PiBzdGF0Q2FyZHNcbiAgICB9KVxuICB9LCBbb25BcGksIHN0YXRDYXJkc10pXG5cbiAgY29uc3QgaGFuZGxlQ2hhbmdlID0gdXNlQ2FsbGJhY2soKGlkKSA9PiB7XG4gICAgc2V0U3RhdENhcmRzKHByb2R1Y2UoZHJhZnQgPT4ge1xuICAgICAgZHJhZnQuZm9yRWFjaChpdGVtID0+IHtcbiAgICAgICAgaXRlbS5kaXNwbGF5ID0gQXJyYXkuaXNBcnJheShpZCkgPyBpZC5pbmNsdWRlcyhpdGVtLmlkKSA6IGl0ZW0uaWQgPT09IGlkXG4gICAgICB9KVxuICAgIH0pKVxuICB9LCBbXSlcbiAgY29uc3QgY2hlY2tCb3hWYWx1ZSA9IHVzZU1lbW8oKCkgPT4ge1xuICAgIHJldHVybiBzdGF0Q2FyZHMuZmlsdGVyKGl0ZW0gPT4ge1xuICAgICAgcmV0dXJuIGl0ZW0uZGlzcGxheVxuICAgIH0pPy5tYXAoaXRlbSA9PiBpdGVtLmlkKVxuICB9LCBbc3RhdENhcmRzXSlcblxuICByZXR1cm4gPGRpdiBjbGFzc05hbWU9e3N0eWxlcy5sYXlvdXR9PlxuICAgIDxkaXYgY2xhc3NOYW1lPXtzdHlsZXMudGl0bGV9PumFjee9rue7n+iuoeWNoeeJhzwvZGl2PlxuICAgIDxDaGVja2JveEdyb3VwXG4gICAgICB2YWx1ZT17Y2hlY2tCb3hWYWx1ZX1cbiAgICAgIG9wdGlvbnM9e29wdGlvbnN9XG4gICAgICBvbkNoYW5nZT17aGFuZGxlQ2hhbmdlfVxuICAgIC8+XG4gIDwvZGl2PlxuXG59XG5cbmV4cG9ydCBkZWZhdWx0IFN0YXRpc3RpY1NldHRpbmdMYXlvdXRcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/common/StatisticSettingLayout.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.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 _filter2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _sort2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/sort */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.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 _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _TableSchemeConfigPopLayout = _interopRequireDefault(__webpack_require__(/*! ./TableSchemeConfigPopLayout.less */ \"./src/web/layout/common/TableSchemeConfigPopLayout.less\"));\nvar _SiderMenu = _interopRequireDefault(__webpack_require__(/*! ./SiderMenu */ \"./src/web/layout/common/SiderMenu.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _BaseSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./BaseSettingLayout */ \"./src/web/layout/common/BaseSettingLayout.tsx\"));\nvar _FilterSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./FilterSettingLayout */ \"./src/web/layout/common/FilterSettingLayout.tsx\"));\nvar _ColumnSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./ColumnSettingLayout */ \"./src/web/layout/common/ColumnSettingLayout.tsx\"));\nvar _SortSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./SortSettingLayout */ \"./src/web/layout/common/SortSettingLayout.tsx\"));\nvar _StatisticSettingLayout = _interopRequireDefault(__webpack_require__(/*! ./StatisticSettingLayout */ \"./src/web/layout/common/StatisticSettingLayout.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _listFilterUtil = __webpack_require__(/*! @/utils/listFilterUtil */ \"./src/utils/listFilterUtil.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _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 MenuKey = /*#__PURE__*/function (MenuKey) {\n  MenuKey[\"base\"] = \"base\";\n  MenuKey[\"filter\"] = \"filter\";\n  MenuKey[\"sort\"] = \"sort\";\n  MenuKey[\"column\"] = \"column\";\n  MenuKey[\"statistic\"] = \"statistic\";\n  return MenuKey;\n}(MenuKey || {});\nvar menu = [{\n  key: MenuKey.base,\n  title: '基础',\n  icon: 'jichushezhi'\n}, {\n  key: (0, _filter2.default)(MenuKey),\n  title: '筛选',\n  icon: 'shaixuan'\n}, {\n  key: (0, _sort2.default)(MenuKey),\n  title: '排序',\n  icon: 'paixu3'\n}, {\n  key: MenuKey.column,\n  title: '列设置',\n  icon: 'lieshezhi'\n}, {\n  key: MenuKey.statistic,\n  title: '统计',\n  icon: 'xinjianbaobiao'\n}];\nvar TableSchemeConfigPopLayout = function TableSchemeConfigPopLayout(props) {\n  var visible = props.visible,\n    onClose = props.onClose,\n    base = props.base,\n    filter = (0, _filter2.default)(props),\n    sort = (0, _sort2.default)(props),\n    column = props.column,\n    statistic = props.statistic,\n    createUiActionDataStr = props.createUiActionDataStr,\n    onConfirm = props.onConfirm;\n  var _useState = (0, _react.useState)(menu[0].key),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    selectedKey = _useState2[0],\n    setSelectedKey = _useState2[1];\n  var dataApiRef = (0, _react.useRef)();\n  var mainViewRef = (0, _react.useRef)();\n  var _useState3 = (0, _react.useState)({}),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    baseData = _useState4[0],\n    setBaseData = _useState4[1];\n  var _useState5 = (0, _react.useState)({}),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    filterData = _useState6[0],\n    setFilterData = _useState6[1];\n  var _useState7 = (0, _react.useState)({}),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    sortData = _useState8[0],\n    setSortData = _useState8[1];\n  var _useState9 = (0, _react.useState)({}),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    columnData = _useState10[0],\n    setColumnData = _useState10[1];\n  var _useState11 = (0, _react.useState)([]),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    statCards = _useState12[0],\n    setStatCards = _useState12[1];\n  var _useState13 = (0, _react.useState)(false),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    modalVisible = _useState14[0],\n    setModalVisible = _useState14[1];\n  var bosFocus = (0, _react.useRef)(false);\n  (0, _react.useEffect)(function () {\n    visible && setSelectedKey(menu[0].key);\n  }, [visible]);\n  (0, _react.useEffect)(function () {\n    setBaseData(base);\n  }, [base]);\n  (0, _react.useEffect)(function () {\n    setFilterData(filter.configuredFilterItems);\n  }, [filter.configuredFilterItems]);\n  (0, _react.useEffect)(function () {\n    setSortData(sort.configuredSortItems);\n  }, [sort.configuredSortItems]);\n  (0, _react.useEffect)(function () {\n    var lockIndex = column.lockIndex,\n      checkedKeys = column.checkedKeys,\n      data = column.data;\n    setColumnData({\n      lockIndex: lockIndex,\n      checkedKeys: checkedKeys,\n      data: data\n    });\n    // 直接以column为依赖的话，有别的属性更新会把新编辑的值刷掉\n  }, [column.lockIndex, column.checkedKeys, column.data]);\n  (0, _react.useEffect)(function () {\n    setStatCards(statistic.data);\n  }, [statistic]);\n  var onApi = (0, _react.useCallback)(function (getApi) {\n    // 采用api直接获取内部状态，省得外面再维护一套state\n    dataApiRef.current = _objectSpread(_objectSpread({}, dataApiRef.current), getApi);\n  }, [dataApiRef.current]);\n  var mainViewMap = (0, _react.useMemo)(function () {\n    return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, MenuKey.base, _BaseSettingLayout.default), (0, _filter2.default)(MenuKey), _FilterSettingLayout.default), (0, _sort2.default)(MenuKey), _SortSettingLayout.default), MenuKey.column, _ColumnSettingLayout.default), MenuKey.statistic, _StatisticSettingLayout.default);\n  }, []);\n  var mainViewPropsMap = (0, _react.useMemo)(function () {\n    return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, MenuKey.base, _objectSpread(_objectSpread({}, baseData), {}, {\n      fieldList: filter.data,\n      onApi: onApi\n    })), (0, _filter2.default)(MenuKey), _objectSpread(_objectSpread({}, filter), {}, {\n      configuredFilterItems: filterData,\n      onApi: onApi\n    })), (0, _sort2.default)(MenuKey), _objectSpread(_objectSpread({}, sort), {}, {\n      configuredSortItems: sortData,\n      onApi: onApi\n    })), MenuKey.column, _objectSpread(_objectSpread(_objectSpread({}, column), columnData), {}, {\n      onApi: onApi\n    })), MenuKey.statistic, {\n      statCards: statCards,\n      onApi: onApi\n    });\n  }, [baseData, filter, filterData, sort, sortData, columnData, statCards, onApi]);\n  var updateStateKeyChange = (0, _react.useCallback)(function (selectedKey) {\n    var _dataApiRef$current$g, _dataApiRef$current, _dataApiRef$current$g2, _dataApiRef$current2, _dataApiRef$current$g3, _dataApiRef$current3, _dataApiRef$current$g4, _dataApiRef$current4, _dataApiRef$current$g5, _dataApiRef$current5;\n    switch (selectedKey) {\n      case MenuKey.base:\n        var _base = (_dataApiRef$current$g = (_dataApiRef$current = dataApiRef.current).getBase) === null || _dataApiRef$current$g === void 0 ? void 0 : _dataApiRef$current$g.call(_dataApiRef$current);\n        setBaseData(_base);\n        break;\n      case (0, _filter2.default)(MenuKey):\n        var _filter = (_dataApiRef$current$g2 = (_dataApiRef$current2 = dataApiRef.current).getFilter) === null || _dataApiRef$current$g2 === void 0 ? void 0 : _dataApiRef$current$g2.call(_dataApiRef$current2);\n        setFilterData(_filter);\n        break;\n      case (0, _sort2.default)(MenuKey):\n        var _sort = (_dataApiRef$current$g3 = (_dataApiRef$current3 = dataApiRef.current).getSort) === null || _dataApiRef$current$g3 === void 0 ? void 0 : _dataApiRef$current$g3.call(_dataApiRef$current3);\n        setSortData(_sort);\n        break;\n      case MenuKey.column:\n        var _ref3 = ((_dataApiRef$current$g4 = (_dataApiRef$current4 = dataApiRef.current).getColumn) === null || _dataApiRef$current$g4 === void 0 ? void 0 : _dataApiRef$current$g4.call(_dataApiRef$current4)) || {},\n          lockIndex = _ref3.lockIndex,\n          checkedKeys = _ref3.checkedKeys,\n          listData = _ref3.listData;\n        setColumnData({\n          lockIndex: lockIndex,\n          checkedKeys: checkedKeys,\n          data: listData\n        });\n        break;\n      case MenuKey.statistic:\n        var newStatCards = (_dataApiRef$current$g5 = (_dataApiRef$current5 = dataApiRef.current).getStatistic) === null || _dataApiRef$current$g5 === void 0 ? void 0 : _dataApiRef$current$g5.call(_dataApiRef$current5);\n        setStatCards(newStatCards);\n        break;\n      default:\n        break;\n    }\n  }, [selectedKey]);\n  var onSelect = (0, _react.useCallback)(function (key) {\n    setSelectedKey(key);\n    updateStateKeyChange(selectedKey);\n  }, [selectedKey, updateStateKeyChange]);\n  var MainView = (0, _react.useMemo)(function () {\n    return mainViewMap[selectedKey];\n  }, [mainViewMap, selectedKey]);\n  var mainViewProps = (0, _react.useMemo)(function () {\n    return mainViewPropsMap[selectedKey];\n  }, [mainViewPropsMap, selectedKey]);\n  var getUpdatedState = (0, _react.useCallback)(function (selectedKey) {\n    var _dataApiRef$current$g6, _dataApiRef$current6, _dataApiRef$current$g7, _dataApiRef$current7, _dataApiRef$current$g8, _dataApiRef$current8, _dataApiRef$current$g9, _dataApiRef$current9, _dataApiRef$current$g10, _dataApiRef$current10;\n    var newData = {};\n    switch (selectedKey) {\n      case MenuKey.base:\n        var newBase = (_dataApiRef$current$g6 = (_dataApiRef$current6 = dataApiRef.current).getBase) === null || _dataApiRef$current$g6 === void 0 ? void 0 : _dataApiRef$current$g6.call(_dataApiRef$current6);\n        newData = {\n          name: newBase.name,\n          hidden: newBase.hidden\n        };\n        break;\n      case (0, _filter2.default)(MenuKey):\n        var newFilter = (_dataApiRef$current$g7 = (_dataApiRef$current7 = dataApiRef.current).getFilter) === null || _dataApiRef$current$g7 === void 0 ? void 0 : _dataApiRef$current$g7.call(_dataApiRef$current7);\n        newData = {\n          configuredFilterItems: newFilter\n        };\n        break;\n      case (0, _sort2.default)(MenuKey):\n        var newSort = (_dataApiRef$current$g8 = (_dataApiRef$current8 = dataApiRef.current).getSort) === null || _dataApiRef$current$g8 === void 0 ? void 0 : _dataApiRef$current$g8.call(_dataApiRef$current8);\n        newData = {\n          configuredSortItems: newSort\n        };\n        break;\n      case MenuKey.column:\n        var newColumn = (_dataApiRef$current$g9 = (_dataApiRef$current9 = dataApiRef.current).getColumn) === null || _dataApiRef$current$g9 === void 0 ? void 0 : _dataApiRef$current$g9.call(_dataApiRef$current9);\n        newData = {\n          lockIndex: newColumn.lockIndex,\n          checkedKeys: newColumn.checkedKeys,\n          listData: newColumn.data\n        };\n        break;\n      case MenuKey.statistic:\n        var newStatistic = (_dataApiRef$current$g10 = (_dataApiRef$current10 = dataApiRef.current).getStatistic) === null || _dataApiRef$current$g10 === void 0 ? void 0 : _dataApiRef$current$g10.call(_dataApiRef$current10);\n        newData = {\n          statCards: newStatistic\n        };\n        break;\n      default:\n        break;\n    }\n    return _objectSpread({\n      name: baseData.name,\n      hidden: baseData.hidden,\n      configuredFilterItems: filterData,\n      configuredSortItems: sortData,\n      statCards: statCards,\n      lockIndex: columnData.lockIndex,\n      checkedKeys: columnData.checkedKeys,\n      listData: columnData.data\n    }, newData);\n  }, [baseData, filterData, sortData, columnData, statCards]);\n  var getAllState = (0, _react.useCallback)(function () {\n    var _dataApiRef$current$g11, _dataApiRef$current11, _dataApiRef$current$g12, _dataApiRef$current12, _dataApiRef$current$g13, _dataApiRef$current13, _dataApiRef$current$g14, _dataApiRef$current14, _dataApiRef$current$g15, _dataApiRef$current15;\n    var newBase = (_dataApiRef$current$g11 = (_dataApiRef$current11 = dataApiRef.current).getBase) === null || _dataApiRef$current$g11 === void 0 ? void 0 : _dataApiRef$current$g11.call(_dataApiRef$current11);\n    var newFilter = (_dataApiRef$current$g12 = (_dataApiRef$current12 = dataApiRef.current).getFilter) === null || _dataApiRef$current$g12 === void 0 ? void 0 : _dataApiRef$current$g12.call(_dataApiRef$current12);\n    var newSort = (_dataApiRef$current$g13 = (_dataApiRef$current13 = dataApiRef.current).getSort) === null || _dataApiRef$current$g13 === void 0 ? void 0 : _dataApiRef$current$g13.call(_dataApiRef$current13);\n    var newColumn = (_dataApiRef$current$g14 = (_dataApiRef$current14 = dataApiRef.current).getColumn) === null || _dataApiRef$current$g14 === void 0 ? void 0 : _dataApiRef$current$g14.call(_dataApiRef$current14);\n    var newStatistic = (_dataApiRef$current$g15 = (_dataApiRef$current15 = dataApiRef.current).getStatistic) === null || _dataApiRef$current$g15 === void 0 ? void 0 : _dataApiRef$current$g15.call(_dataApiRef$current15);\n    var newLockIndex = newColumn === null || newColumn === void 0 ? void 0 : newColumn.lockIndex;\n    var newData = {\n      name: (newBase === null || newBase === void 0 ? void 0 : newBase.name) || baseData.name,\n      hidden: (newBase === null || newBase === void 0 ? void 0 : newBase.hidden) || baseData.hidden,\n      schematype: (newBase === null || newBase === void 0 ? void 0 : newBase.schematype) || baseData.schematype || '0',\n      ganttconfig: (newBase === null || newBase === void 0 ? void 0 : newBase.ganttconfig) || baseData.ganttconfig || [],\n      timemode: (newBase === null || newBase === void 0 ? void 0 : newBase.timemode) || baseData.timemode || '0',\n      configuredFilterItems: newFilter || filterData,\n      configuredSortItems: newSort || sortData,\n      statCards: newStatistic || statCards,\n      // 解决lockIndex为0时会一直用旧的lockIndex(undefined)\n      lockIndex: newLockIndex === 0 ? newLockIndex : newLockIndex || columnData.lockIndex,\n      checkedKeys: (newColumn === null || newColumn === void 0 ? void 0 : newColumn.checkedKeys) || columnData.checkedKeys,\n      listData: (newColumn === null || newColumn === void 0 ? void 0 : newColumn.listData) || columnData.data\n    };\n    return newData;\n  }, [baseData, filterData, sortData, columnData, statCards]);\n  var handleConfirm = (0, _react.useCallback)(function () {\n    var _dataApiRef$current16, _dataApiRef$current17, _mainViewRef$current, _mainViewRef$current$;\n    var result = getAllState();\n    var newBase = (_dataApiRef$current16 = dataApiRef.current) === null || _dataApiRef$current16 === void 0 || (_dataApiRef$current17 = _dataApiRef$current16.getBase) === null || _dataApiRef$current17 === void 0 ? void 0 : _dataApiRef$current17.call(_dataApiRef$current16);\n    if (newBase) {\n      if (!newBase.name) {\n        (0, _utils.showNotice)('warnning', '请输入视图名称');\n        return;\n      }\n      if (newBase.schematype === '1') {\n        var _newBase$ganttconfig, _dataApiRef$current18, _newBase$ganttconfig2;\n        if (!newBase.ganttconfig || !((_newBase$ganttconfig = newBase.ganttconfig) !== null && _newBase$ganttconfig !== void 0 && _newBase$ganttconfig.length)) {\n          (0, _utils.showNotice)('warnning', '请配置甘特图开始时间-结束时间');\n          return;\n        }\n\n        // 用于校验\n        (_dataApiRef$current18 = dataApiRef.current) === null || _dataApiRef$current18 === void 0 || _dataApiRef$current18.validateFields();\n        // 用于拦截\n        var emptyStartEndTimeConfig = (_newBase$ganttconfig2 = newBase.ganttconfig) === null || _newBase$ganttconfig2 === void 0 ? void 0 : (0, _find.default)(_newBase$ganttconfig2).call(_newBase$ganttconfig2, function (item) {\n          return !item.start && !item.end;\n        });\n        if (emptyStartEndTimeConfig) {\n          return;\n        }\n      }\n    }\n    var filterEmptyInfo = mainViewRef === null || mainViewRef === void 0 || (_mainViewRef$current = mainViewRef.current) === null || _mainViewRef$current === void 0 || (_mainViewRef$current$ = _mainViewRef$current.updateVerifyAndGetMsg) === null || _mainViewRef$current$ === void 0 ? void 0 : _mainViewRef$current$.call(_mainViewRef$current);\n    if (selectedKey === (0, _filter2.default)(MenuKey)) {\n      if (filterEmptyInfo !== null && filterEmptyInfo !== void 0 && filterEmptyInfo.length) {\n        // 内部组件筛选值校验信息\n        (0, _utils.showNotice)('warnning', '筛选值不能为空');\n        return;\n      }\n    } else {\n      // 遍历筛选项是否存在空值\n      var verifyStatus = false;\n      result.configuredFilterItems.forEach(function (item) {\n        var compareType = item.compareType,\n          value = item.value;\n        if (!(0, _includes.default)(_listFilterUtil.VALUE_EMPTY_COMPARE_TYPE).call(_listFilterUtil.VALUE_EMPTY_COMPARE_TYPE, compareType) && !value.length) {\n          (0, _utils.showNotice)('warnning', '筛选值不能为空');\n          verifyStatus = true;\n        }\n      });\n      if (verifyStatus) return;\n    }\n    onConfirm === null || onConfirm === void 0 || onConfirm(result);\n  }, [selectedKey, onConfirm, getAllState]);\n  var handleClose = (0, _react.useCallback)(function () {\n    bosFocus.current ? setModalVisible(true) : onClose === null || onClose === void 0 ? void 0 : onClose();\n  }, [onClose]);\n  var onModalAction = (0, _react.useCallback)(function (key) {\n    switch (key) {\n      case 'ok':\n        setModalVisible(false);\n        handleConfirm();\n        break;\n      case 'cancel':\n        setModalVisible(false);\n        onClose === null || onClose === void 0 || onClose();\n        break;\n    }\n  }, [handleConfirm, onClose]);\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Drawer, {\n    placement: \"right\",\n    visible: visible,\n    onClose: handleClose,\n    title: '视图配置',\n    width: 800,\n    className: _TableSchemeConfigPopLayout.default.view_config,\n    maskStyle: {\n      opacity: 0\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TableSchemeConfigPopLayout.default.config_body,\n    onFocusCapture: function onFocusCapture() {\n      bosFocus.current = true;\n    }\n  }, /*#__PURE__*/_react.default.createElement(_SiderMenu.default, {\n    width: 160,\n    menu: menu,\n    selectedKey: menu[0].key,\n    onSelect: onSelect\n  }), /*#__PURE__*/_react.default.createElement(MainView, (0, _extends2.default)({\n    ref: mainViewRef\n  }, mainViewProps))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TableSchemeConfigPopLayout.default.footer\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    text: \"\\u53D6\\u6D88\",\n    size: \"small\",\n    onClick: handleClose\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"primary\",\n    text: \"\\u786E\\u5B9A\",\n    size: \"small\",\n    \"data-nc-action\": createUiActionDataStr('au_lo_cview_vs_comf'),\n    onClick: handleConfirm\n  })), modalVisible && /*#__PURE__*/_react.default.createElement(_WebUI.ConfirmModal, {\n    type: \"warning\",\n    visible: modalVisible,\n    title: \"\\u5B58\\u5728\\u672A\\u4FDD\\u5B58\\u5185\\u5BB9\\uFF0C\\u662F\\u5426\\u4FDD\\u5B58\\uFF1F\",\n    actions: [{\n      key: 'cancel',\n      text: '取消'\n    }, {\n      key: 'ok',\n      text: '保存'\n    }],\n    onAction: onModalAction\n  }));\n};\nvar _default = exports[\"default\"] = TableSchemeConfigPopLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/common/TableSchemeConfigPopLayout.tsx\n");

/***/ }),

/***/ "./src/web/pages/apps/home/AppHomePage.tsx":
/*!*************************************************!*\
  !*** ./src/web/pages/apps/home/AppHomePage.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 _Symbol = __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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\"));\nvar _setTimeout2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.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 _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _replaceAll = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js\"));\nvar _map2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\"));\nvar _stringify = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\"));\nvar _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js\"));\nvar _values2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactDom = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _AppHomePage = _interopRequireDefault(__webpack_require__(/*! ./AppHomePage.less */ \"./src/web/pages/apps/home/AppHomePage.less\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _PopBill = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/PopBill */ \"./src/web/component/apps/PopBill.tsx\"));\nvar _ImportButton = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/Import/ImportButton */ \"./src/web/component/apps/Import/ImportButton.jsx\"));\nvar _BatchEditModal = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/BatchEditModal */ \"./src/web/component/apps/BatchEditModal.tsx\"));\nvar _ExportButton = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/ExportButton */ \"./src/web/component/apps/ExportButton.jsx\"));\nvar _useFormDataList3 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFormDataList */ \"./src/hooks/useFormDataList.ts\"));\nvar _env = __webpack_require__(/*! @/constants/env */ \"./src/constants/env.js\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _listSettingUtil = __webpack_require__(/*! @/utils/listSettingUtil */ \"./src/utils/listSettingUtil.js\");\nvar _menuTableUtil = __webpack_require__(/*! @/utils/menuTableUtil */ \"./src/utils/menuTableUtil.js\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _Statistic = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/Statistic */ \"./src/web/component/apps/Statistic/index.tsx\"));\nvar _empty = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/empty.png */ \"./assets/img/empty.png\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _SearchInput = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/SearchInput */ \"./src/web/component/common/SearchInput.tsx\"));\nvar _menuTableActions = _interopRequireWildcard(__webpack_require__(/*! @/utils/menuTableActions */ \"./src/utils/menuTableActions.ts\"));\nvar menuTableActions = _menuTableActions;\nvar _FormDataListAuthProvider = __webpack_require__(/*! @/web/component/common/FormDataListAuthProvider */ \"./src/web/component/common/FormDataListAuthProvider.tsx\");\nvar _TableSchemeConfigPopLayout = _interopRequireDefault(__webpack_require__(/*! @/web/layout/common/TableSchemeConfigPopLayout */ \"./src/web/layout/common/TableSchemeConfigPopLayout.tsx\"));\nvar _SwitchViewPanel = _interopRequireDefault(__webpack_require__(/*! @/web/component/home/SwitchViewPanel */ \"./src/web/component/home/SwitchViewPanel.tsx\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _auth = __webpack_require__(/*! @/actions/auth */ \"./src/actions/auth.js\");\nvar menuTableAppActions = _interopRequireWildcard(__webpack_require__(/*! @/utils/menuTableAppActions */ \"./src/utils/menuTableAppActions.ts\"));\nvar _immer = _interopRequireDefault(__webpack_require__(/*! kd_libs/immer */ \"webpack/container/remote/kd_libs/immer\"));\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _custom = _interopRequireDefault(__webpack_require__(/*! ../../../component/custom */ \"./src/web/component/custom/index.tsx\"));\nvar _ListFilterSetting = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/ListFilterSetting */ \"./src/web/component/common/ListFilterSetting.tsx\"));\nvar _useFilterRefBill = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFilterRefBill */ \"./src/hooks/useFilterRefBill.tsx\"));\nvar _batchOperationsUtil = __webpack_require__(/*! @/utils/batchOperationsUtil */ \"./src/utils/batchOperationsUtil.ts\");\nvar _ExportAttachBtn = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/ExportAttachBtn */ \"./src/web/component/apps/ExportAttachBtn.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 _Symbol !== \"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 _context27; if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context27 = Object.prototype.toString.call(o)).call(_context27, 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; }\n// import Gantt from '@/web/component/gantt'\n\nvar Gantt = (0, _react.lazy)(function () {\n  return Promise.all(/*! import() | gantt-vendor */[__webpack_require__.e(3428), __webpack_require__.e(7808)]).then(__webpack_require__.t.bind(__webpack_require__, /*! @/web/component/gantt */ \"./src/web/component/gantt/index.tsx\", 23));\n});\nvar PopBillOpeartions = {\n  delete: 'delete'\n};\nvar getErrData = function getErrData(delRes) {\n  return (delRes === null || delRes === void 0 ? void 0 : (0, _filter.default)(delRes).call(delRes, function (item) {\n    return !item.billStatus;\n  })) || [];\n};\n/**\n * 应用首页\n */\nvar AppFormList = (0, _react.memo)(function (props) {\n  var _state$rootConfig;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    statVisible = _useState2[0],\n    setStatVisible = _useState2[1];\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    t = _useTranslation.t;\n  // const [defaultFormId] = useDefaultFormId('admin')\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId,\n    formId = _useParams.targetFormId; // 应用ID\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var userInfo = state.userInfo,\n    _state$appsList = state.appsList,\n    appsList = _state$appsList === void 0 ? {} : _state$appsList,\n    _state$compareTypes = state.compareTypes,\n    compareTypes = _state$compareTypes === void 0 ? {} : _state$compareTypes;\n  var _ref = userInfo || {},\n    userId = _ref.id; // 存在userInfo值为null，在解构处赋默认值无效\n  var appInfo = appsList[appId];\n  var _ref2 = appInfo || {},\n    istemplate = _ref2.istemplate;\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    modalVisible = _useState4[0],\n    setModalVisible = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    viewConfigVi = _useState6[0],\n    setViewConfigVi = _useState6[1];\n  // const [params, setParams] = useState({ page_size: 10, page_no: 1 })\n  var _useState7 = (0, _react.useState)({\n      formId: formId,\n      pkId: ''\n    }),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    popBillConfig = _useState8[0],\n    setPopBillConfig = _useState8[1];\n  var _useState9 = (0, _react.useState)('edit'),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    view = _useState10[0],\n    setView = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    fullSreen = _useState12[0],\n    setFullScreen = _useState12[1];\n  var _useState13 = (0, _react.useState)(0),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    fullSreenWidth = _useState14[0],\n    setFullSreenWidth = _useState14[1];\n  var authContext = (0, _react.useContext)(_FormDataListAuthProvider.AuthorizeContext) || {};\n  var authList = authContext.authList,\n    pending = authContext.pending,\n    setPending = authContext.setPending,\n    authFormId = authContext.formId;\n  var hasGetCurFormAuth = !pending && authFormId === formId;\n  var _useState15 = (0, _react.useState)([]),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    viewInfo = _useState16[0],\n    setViewInfo = _useState16[1];\n  var _useState17 = (0, _react.useState)(false),\n    _useState18 = (0, _slicedToArray2.default)(_useState17, 2),\n    viewVisible = _useState18[0],\n    setViewVisible = _useState18[1];\n  var _useState19 = (0, _react.useState)(''),\n    _useState20 = (0, _slicedToArray2.default)(_useState19, 2),\n    editViewId = _useState20[0],\n    setEditViewId = _useState20[1];\n  var _useState21 = (0, _react.useState)({}),\n    _useState22 = (0, _slicedToArray2.default)(_useState21, 2),\n    schemaSettingInfo = _useState22[0],\n    setSchemaSettingInfo = _useState22[1];\n  var _useState23 = (0, _react.useState)(false),\n    _useState24 = (0, _slicedToArray2.default)(_useState23, 2),\n    refreshLoading = _useState24[0],\n    setRefreshLoading = _useState24[1];\n  var _useState25 = (0, _react.useState)({}),\n    _useState26 = (0, _slicedToArray2.default)(_useState25, 2),\n    svgData = _useState26[0],\n    setSvgData = _useState26[1];\n  var _useState27 = (0, _react.useState)(false),\n    _useState28 = (0, _slicedToArray2.default)(_useState27, 2),\n    batchEditModalVisible = _useState28[0],\n    setBatchEditModalVisible = _useState28[1];\n  var _useState29 = (0, _react.useState)(false),\n    _useState30 = (0, _slicedToArray2.default)(_useState29, 2),\n    isLoading = _useState30[0],\n    setIsLoading = _useState30[1];\n  var vasWidth = props.vasWidth,\n    btnWidth = props.btnWidth;\n  var _ref3 = authList || {},\n    viewAuth = _ref3.viewAuth,\n    editAuth = _ref3.editAuth,\n    deleteAuth = _ref3.deleteAuth,\n    importAuth = _ref3.importAuth,\n    exportAuth = _ref3.exportAuth,\n    inputAuth = _ref3.inputAuth,\n    printAuth = _ref3.printAuth,\n    statisticAuth = _ref3.statisticAuth,\n    detailShareReqireLoginAuth = _ref3.detailShareReqireLoginAuth,\n    detailShareNotReqireLoginAuth = _ref3.detailShareNotReqireLoginAuth,\n    editShareAuth = _ref3.editShareAuth,\n    inputShareReqireLoginAuth = _ref3.inputShareReqireLoginAuth,\n    inputShareNotReqireLoginAuth = _ref3.inputShareNotReqireLoginAuth;\n  var activeSchema = (0, _react.useMemo)(function () {\n    return (0, _find.default)(viewInfo).call(viewInfo, function (item) {\n      return item.active;\n    });\n  }, [viewInfo]);\n  console.log('activeSchema', activeSchema);\n  var activeSchemaId = (0, _react.useMemo)(function () {\n    return activeSchema === null || activeSchema === void 0 ? void 0 : activeSchema.id;\n  }, [activeSchema]);\n  var createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context, _context2;\n    return (0, _concat.default)(_context = (0, _concat.default)(_context2 = \"\".concat(appId, \"|\")).call(_context2, formId, \"|\")).call(_context, actionName);\n  }, [appId, formId]);\n  var sendUserEvent = function sendUserEvent(action) {\n    (0, _PageEventService.publishClickUserEvent)({\n      appId: appId,\n      formId: formId,\n      action: action\n    });\n  };\n\n  // 打开右侧弹窗，Bill\n  var openBillModalWithPkId = (0, _react.useCallback)(function (formId, pkId, view) {\n    document.body.style.overflow = 'hidden';\n    if (view === 'view') {\n      sendUserEvent('au_fo_detail');\n    } else if (view === 'edit') {\n      sendUserEvent('au_fo_edit');\n    }\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setView(view);\n      setPopBillConfig({\n        formId: formId,\n        pkId: pkId\n      });\n      setModalVisible(true);\n    });\n  }, [sendUserEvent, setPopBillConfig, setView]);\n  var openBillModal = (0, _react.useCallback)(function () {\n    document.body.style.overflow = 'hidden';\n    setModalVisible(true);\n    setPopBillConfig({\n      formId: formId,\n      pkId: ''\n    });\n    setView('addNew');\n  }, [formId]);\n  // const getColOperationsByAuths = useCallback(() => {\n  //   const op = []\n  //   deleteAuth && op.push(APP_HOME_PAGE_AUTH_TYPE.delete)\n  //   viewAuth && op.push(APP_HOME_PAGE_AUTH_TYPE.view)\n  //   editAuth && op.push(APP_HOME_PAGE_AUTH_TYPE.edit)\n  //   return op\n  // }, [viewAuth, deleteAuth, editAuth])\n\n  // const colOpCount = useMemo(() => {\n  //   return getColOperationsByAuths().length\n  // }, [getColOperationsByAuths])\n\n  // const colOpWidth = useMemo(() => {\n  //   return colOpCount ? colOpCount * 50 + 54 : 0\n  // }, [colOpCount])\n\n  var options = (0, _react.useMemo)(function () {\n    return {\n      loadMore: false,\n      loadData: false,\n      updateFooter: true,\n      isMob: false,\n      operateCol: {\n        needOperateCol: true,\n        width: 200,\n        disabled: false\n      }\n    };\n  }, []);\n  var _useFormDataList = (0, _useFormDataList3.default)({\n      appId: appId,\n      formId: formId,\n      env: _env.ENV_APP,\n      viewAuth: viewAuth,\n      pending: pending,\n      setPending: setPending\n    }, options, _objectSpread(_objectSpread({}, menuTableActions), menuTableAppActions)),\n    _useFormDataList2 = (0, _slicedToArray2.default)(_useFormDataList, 3),\n    formDataListState = _useFormDataList2[0],\n    actions = _useFormDataList2[1],\n    TableContext = _useFormDataList2[2];\n  var formName = formDataListState.formName,\n    dataSource = formDataListState.dataSource,\n    footerDataSource = formDataListState.footerDataSource,\n    pageNo = formDataListState.pageNo,\n    pageSize = formDataListState.pageSize,\n    totalCount = formDataListState.totalCount,\n    visibleColumnKeys = formDataListState.visibleColumnKeys,\n    columns = formDataListState.columns,\n    showListSettingPop = formDataListState.showListSettingPop,\n    showFilterSettingPop = formDataListState.showFilterSettingPop,\n    showSortSettingPop = formDataListState.showSortSettingPop,\n    listFilterConfig = formDataListState.listFilterConfig,\n    listItemConfig = formDataListState.listItemConfig,\n    listTreeConfig = formDataListState.listTreeConfig,\n    configuredFilterItems = formDataListState.configuredFilterItems,\n    schemaConfiguredFilterItems = formDataListState.schemaConfiguredFilterItems,\n    listFilters = formDataListState.listFilters,\n    searchKeywords = formDataListState.searchKeywords,\n    colHeadFilters = formDataListState.colHeadFilters,\n    loading = formDataListState.loading,\n    orderInfo = formDataListState.orderInfo,\n    colHeadFilter = formDataListState.colHeadFilter,\n    enumFilterValue = formDataListState.enumFilterValue,\n    stateInfo = formDataListState.stateInfo,\n    orderBy = formDataListState.orderBy,\n    bizButtons = formDataListState.bizButtons,\n    selectedIds = formDataListState.selectedIds,\n    selectedCount = formDataListState.selectedCount;\n  var onAfterAddRows = actions.onAfterAddRows,\n    onPaginationChange = actions.onPaginationChange,\n    onListSettingConfirm = actions.onListSettingConfirm,\n    onFilterItemDelete = actions.onFilterItemDelete,\n    onFilterConfirm = actions.onFilterConfirm,\n    onAfterSave = actions.onAfterSave,\n    onRefreshWithSetting = actions.onRefreshWithSetting,\n    onSearch = actions.onSearch,\n    onChangeFilters = actions.onChangeFilters,\n    onSetShowFilterSettingPop = actions.onSetShowFilterSettingPop,\n    onSetShowListSettingPop = actions.onSetShowListSettingPop,\n    onSetShowSortSettingPop = actions.onSetShowSortSettingPop,\n    onAggCellChange = actions.onAggCellChange,\n    getEnumFilterValue = actions.getEnumFilterValue,\n    onGetEnumFilterValue = actions.onGetEnumFilterValue,\n    _onAggVisibleChange = actions.onAggVisibleChange,\n    onColFilterConfirm = actions.onColFilterConfirm,\n    onColHeadFilterVisibleChange = actions.onColHeadFilterVisibleChange,\n    onRowDelete = actions.onRowDelete,\n    onColSort = actions.onColSort,\n    onLoadInitData = actions.onLoadInitData,\n    setFormDataListState = actions.setFormDataListState,\n    onAfterDeleteRows = actions.onAfterDeleteRows,\n    onSelectChange = actions.onSelectChange,\n    onBatchDelete = actions.onBatchDelete,\n    getSelectedQueryString = actions.getSelectedQueryString,\n    keepErrSelect = actions.keepErrSelect;\n  (0, _react.useEffect)(function () {\n    window.addEventListener('resize', getBizButtonListWidth);\n    return function () {\n      window.removeEventListener('resize', getBizButtonListWidth);\n    };\n  });\n  var getBizButtonListWidth = function getBizButtonListWidth() {\n    var _document$getElementB;\n    var fullSreenWidth = ((_document$getElementB = document.getElementById(\"home_action_form\")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.clientWidth) - vasWidth - btnWidth - 169;\n    setFullSreenWidth(fullSreenWidth);\n  };\n  (0, _react.useEffect)(function () {\n    // 初始化''会触发刷新，导致合计行被置空，null能跳过刷新\n    onSearch(null);\n  }, [formId]);\n  var onViewChange = function onViewChange(info, formId, viewAuth) {\n    var _info$find;\n    setViewInfo(info);\n    var activeSchemaId = (_info$find = (0, _find.default)(info).call(info, function (item) {\n      return item.active;\n    })) === null || _info$find === void 0 ? void 0 : _info$find.id;\n    return onLoadInitData(appId, formId, _env.ENV_APP, viewAuth, activeSchemaId);\n  };\n  (0, _react.useEffect)(function () {\n    var fetchData = /*#__PURE__*/function () {\n      var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n        var res;\n        return _regenerator.default.wrap(function _callee$(_context3) {\n          while (1) switch (_context3.prev = _context3.next) {\n            case 0:\n              _context3.prev = 0;\n              if (!hasGetCurFormAuth) {\n                _context3.next = 6;\n                break;\n              }\n              _context3.next = 4;\n              return (0, _apps.getViewData)(formId);\n            case 4:\n              res = _context3.sent;\n              onViewChange(res.rows || [], formId, viewAuth);\n            case 6:\n              _context3.next = 11;\n              break;\n            case 8:\n              _context3.prev = 8;\n              _context3.t0 = _context3[\"catch\"](0);\n              setFormDataListState({\n                dataSource: [],\n                footerDataSource: [],\n                pageNo: 1,\n                pageSize: 20,\n                totalCount: 0,\n                lastPage: true,\n                formName: '',\n                loading: false,\n                listItemConfig: [],\n                listFilterConfig: [],\n                listStatInfo: [],\n                configuredFilterItems: [],\n                listFilters: []\n              });\n            case 11:\n            case \"end\":\n              return _context3.stop();\n          }\n        }, _callee, null, [[0, 8]]);\n      }));\n      return function fetchData() {\n        return _ref4.apply(this, arguments);\n      };\n    }();\n    var fetchSvgData = /*#__PURE__*/function () {\n      var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n        var res;\n        return _regenerator.default.wrap(function _callee2$(_context4) {\n          while (1) switch (_context4.prev = _context4.next) {\n            case 0:\n              _context4.prev = 0;\n              _context4.next = 3;\n              return (0, _home.getLineIconAndColor)();\n            case 3:\n              res = _context4.sent;\n              res && setSvgData(res.row || {});\n              _context4.next = 10;\n              break;\n            case 7:\n              _context4.prev = 7;\n              _context4.t0 = _context4[\"catch\"](0);\n              console.log(_context4.t0);\n            case 10:\n            case \"end\":\n              return _context4.stop();\n          }\n        }, _callee2, null, [[0, 7]]);\n      }));\n      return function fetchSvgData() {\n        return _ref5.apply(this, arguments);\n      };\n    }();\n    fetchData();\n    fetchSvgData();\n  }, [formId, hasGetCurFormAuth, viewAuth]);\n  var handleRowDelete = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(pkId) {\n      return _regenerator.default.wrap(function _callee3$(_context5) {\n        while (1) switch (_context5.prev = _context5.next) {\n          case 0:\n            onRowDelete === null || onRowDelete === void 0 || onRowDelete(pkId);\n          case 1:\n          case \"end\":\n            return _context5.stop();\n        }\n      }, _callee3);\n    }));\n    return function (_x) {\n      return _ref6.apply(this, arguments);\n    };\n  }(), [onRowDelete]);\n\n  // 查询具体某个功能权限项有无权限\n  var getFormAuthByKey = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(pkId, key) {\n      var _res$rows, res, auth, _context6;\n      return _regenerator.default.wrap(function _callee4$(_context7) {\n        while (1) switch (_context7.prev = _context7.next) {\n          case 0:\n            _context7.prev = 0;\n            _context7.next = 3;\n            return (0, _auth.getFormAuth)(appId, formId, pkId);\n          case 3:\n            res = _context7.sent;\n            auth = (res === null || res === void 0 || (_res$rows = res.rows) === null || _res$rows === void 0 ? void 0 : _res$rows[0]) || {};\n            if (!auth[key]) {\n              _context7.next = 9;\n              break;\n            }\n            return _context7.abrupt(\"return\", _promise.default.resolve());\n          case 9:\n            (0, _utils.showNotice)('error', '权限不足');\n            return _context7.abrupt(\"return\", _promise.default.reject((0, _concat.default)(_context6 = \"\".concat(pkId, \" has not \")).call(_context6, key, \" auth\")));\n          case 11:\n            _context7.next = 16;\n            break;\n          case 13:\n            _context7.prev = 13;\n            _context7.t0 = _context7[\"catch\"](0);\n            return _context7.abrupt(\"return\", _promise.default.reject(_context7.t0 === null || _context7.t0 === void 0 ? void 0 : _context7.t0.message));\n          case 16:\n          case \"end\":\n            return _context7.stop();\n        }\n      }, _callee4, null, [[0, 13]]);\n    }));\n    return function (_x2, _x3) {\n      return _ref7.apply(this, arguments);\n    };\n  }(), [appId, formId]);\n  var colOperations = (0, _react.useMemo)(function () {\n    return [{\n      name: '详情',\n      major: true,\n      onClick: function onClick(record, formId) {\n        openBillModalWithPkId === null || openBillModalWithPkId === void 0 || openBillModalWithPkId(formId, record.id, 'view');\n      },\n      // visible: viewAuth,\n      disabled: !viewAuth\n    }, {\n      name: '编辑',\n      major: true,\n      onClick: function () {\n        var _onClick = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(record, formId) {\n          return _regenerator.default.wrap(function _callee5$(_context8) {\n            while (1) switch (_context8.prev = _context8.next) {\n              case 0:\n                _context8.prev = 0;\n                _context8.next = 3;\n                return getFormAuthByKey(record.id, 'edit');\n              case 3:\n                openBillModalWithPkId === null || openBillModalWithPkId === void 0 || openBillModalWithPkId(formId, record.id, 'edit');\n                _context8.next = 9;\n                break;\n              case 6:\n                _context8.prev = 6;\n                _context8.t0 = _context8[\"catch\"](0);\n                console.log(_context8.t0);\n              case 9:\n              case \"end\":\n                return _context8.stop();\n            }\n          }, _callee5, null, [[0, 6]]);\n        }));\n        function onClick(_x4, _x5) {\n          return _onClick.apply(this, arguments);\n        }\n        return onClick;\n      }(),\n      // visible: editAuth,\n      disabled: !editAuth\n    }, {\n      name: '删除',\n      danger: true,\n      onClick: function () {\n        var _onClick2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(record) {\n          return _regenerator.default.wrap(function _callee6$(_context9) {\n            while (1) switch (_context9.prev = _context9.next) {\n              case 0:\n                if (!istemplate) {\n                  _context9.next = 2;\n                  break;\n                }\n                return _context9.abrupt(\"return\", showIsTemplateNotice());\n              case 2:\n                _context9.prev = 2;\n                _context9.next = 5;\n                return getFormAuthByKey(record.id, 'delete');\n              case 5:\n                handleRowDelete === null || handleRowDelete === void 0 || handleRowDelete(record.id);\n                _context9.next = 11;\n                break;\n              case 8:\n                _context9.prev = 8;\n                _context9.t0 = _context9[\"catch\"](2);\n                console.log(_context9.t0);\n              case 11:\n              case \"end\":\n                return _context9.stop();\n            }\n          }, _callee6, null, [[2, 8]]);\n        }));\n        function onClick(_x6) {\n          return _onClick2.apply(this, arguments);\n        }\n        return onClick;\n      }(),\n      // visible: deleteAuth,\n      disabled: !deleteAuth\n    }];\n  }, [openBillModalWithPkId, handleRowDelete, deleteAuth, editAuth, viewAuth, istemplate, getFormAuthByKey]);\n  var hiddenModal = (0, _react.useCallback)(function () {\n    setModalVisible(false);\n  }, []);\n  var onChange = function onChange(pageNo, pageSize) {\n    onPaginationChange === null || onPaginationChange === void 0 || onPaginationChange(pageNo, pageSize);\n  };\n  var handleCloseListSetting = (0, _react.useCallback)(function () {\n    onSetShowListSettingPop(false);\n  }, []);\n  var handleConfirm = (0, _react.useCallback)(function (keys, lockIndex, listData) {\n    sendUserEvent('au_lo_cs_comf');\n    onListSettingConfirm === null || onListSettingConfirm === void 0 || onListSettingConfirm(keys, lockIndex, listData);\n  }, [onListSettingConfirm]);\n  var handleFilterConfirm = (0, _react.useCallback)(function (values) {\n    sendUserEvent('au_lo_fil_comf');\n    onFilterConfirm === null || onFilterConfirm === void 0 || onFilterConfirm(values);\n  }, [onFilterConfirm, sendUserEvent]);\n  var handleFilterClear = (0, _react.useCallback)(function (values) {\n    sendUserEvent('au_lo_fil_clear');\n  }, [sendUserEvent]);\n  var handleCloseFilterSetting = (0, _react.useCallback)(function () {\n    onSetShowFilterSettingPop(false);\n  }, []);\n  var handleCloseSortSetting = (0, _react.useCallback)(function () {\n    onSetShowSortSettingPop(false);\n  }, []);\n  var handleSortConfirm = (0, _react.useCallback)(function (values) {\n    sendUserEvent('au_lo_sort_comf');\n    onSetShowSortSettingPop(false);\n    onColSort === null || onColSort === void 0 || onColSort(values);\n  }, [onColSort, onSetShowSortSettingPop]);\n  var handleSortClear = (0, _react.useCallback)(function (values) {\n    sendUserEvent('au_lo_sort_clear');\n  }, [sendUserEvent]);\n  var handleClickStat = (0, _react.useCallback)(function () {\n    setStatVisible(true);\n  }, []);\n  var handleClickFilterSetting = (0, _react.useCallback)(function (values) {\n    onSetShowFilterSettingPop(true);\n  }, []);\n  var onDelete = (0, _react.useCallback)(function (i) {\n    onFilterItemDelete === null || onFilterItemDelete === void 0 || onFilterItemDelete(i);\n  }, [onFilterItemDelete]);\n  var handleFullScreen = (0, _react.useCallback)(function () {\n    setFullScreen(!fullSreen);\n    (0, _setTimeout2.default)(getBizButtonListWidth, 100);\n  }, [fullSreen]);\n  var filterOperateColMemo = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.filterOperateCol)(columns);\n  }, [columns]);\n  var lockIndex = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.getLockedIndex)(filterOperateColMemo);\n  }, [filterOperateColMemo]);\n  var columnData = (0, _react.useMemo)(function () {\n    return (0, _listSettingUtil.getListItemSettingData)(filterOperateColMemo);\n  }, [filterOperateColMemo]);\n  var filters = (0, _react.useMemo)(function () {\n    return (0, _listSettingUtil.getTransferFilters)((0, _listSettingUtil.getFilters)(configuredFilterItems, listFilterConfig));\n  }, [configuredFilterItems, listFilterConfig]);\n  var onRefresh = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {\n    var res;\n    return _regenerator.default.wrap(function _callee7$(_context10) {\n      while (1) switch (_context10.prev = _context10.next) {\n        case 0:\n          _context10.next = 2;\n          return (0, _apps.getViewData)(formId);\n        case 2:\n          res = _context10.sent;\n          onViewChange(res.rows || [], formId, viewAuth).then(function () {\n            (0, _utils.showNotice)('success', '刷新成功');\n          });\n        case 4:\n        case \"end\":\n          return _context10.stop();\n      }\n    }, _callee7);\n  })), [appId, formId, viewAuth, onViewChange]);\n  var handleSearch = (0, _react.useCallback)(function (value) {\n    onSearch === null || onSearch === void 0 || onSearch(value);\n    (0, _PageEventService.publishSearchUserEvent)({\n      appId: appId,\n      formId: formId,\n      action: 'au_lo_srh'\n    });\n  }, [onSearch, appId, formId]);\n  var handleDebounceSearch = (0, _useDebounce.default)(handleSearch);\n  var showIsTemplateNotice = function showIsTemplateNotice() {\n    (0, _utils.showNotice)('error', '预览时无法使用此功能');\n  };\n  var beforeOperate = function beforeOperate(fn) {\n    return istemplate ? showIsTemplateNotice : fn;\n  };\n\n  // const handleAfterAddRow = useCallback(() => {\n  //   onAfterAddRows?.(1) // 暂时无法做到新增跳转翻页，因为保存和新增保存都可以新增，但是修改数据时也是点击的保存，此时不能自动跳转\n  // }, [onAfterAddRows])\n\n  var handleSort = (0, _react.useCallback)(function (number, nextOrder) {\n    var isAsc = (0, _menuTableUtil.orderToIsAsc)(nextOrder);\n    var newSorts = [{\n      number: number,\n      isAsc: isAsc\n    }];\n    onColSort === null || onColSort === void 0 || onColSort(isAsc !== undefined ? newSorts : []);\n  }, [onColSort]);\n  var refBillProps = (0, _useFilterRefBill.default)({\n    appId: appId\n  });\n\n  /**\n   * 渲染筛选tab\n   */\n  var renderFilterTabElement = (0, _react.useCallback)(function (key, element) {\n    var actionName = '';\n    switch (key) {\n      case 'name':\n        actionName = createUiActionDataStr('au_ch_fil_name');\n        break;\n      case 'count':\n        actionName = createUiActionDataStr('au_ch_fil_count');\n        break;\n      default:\n    }\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      \"data-nc-action\": actionName,\n      className: _AppHomePage.default.head_filter_tab_header\n    }, element);\n  }, []);\n  var onFilterClear = (0, _react.useCallback)(function () {\n    // sendUserEvent('au_ch_fil_clear')\n  }, []);\n  var tableContextValueMemo = (0, _react.useMemo)(function () {\n    return {\n      onAggCellChange: onAggCellChange,\n      onAggVisibleChange: function onAggVisibleChange(v, fieldName) {\n        return v && _onAggVisibleChange(fieldName);\n      },\n      colOperations: colOperations,\n      stateInfo: stateInfo,\n      onRowDelete: beforeOperate(onRowDelete),\n      sort: {\n        sorts: orderInfo,\n        onSort: handleSort\n      },\n      filter: {\n        filters: colHeadFilters,\n        colHeadFilter: colHeadFilter,\n        onFilterClear: onFilterClear,\n        onFilterConfirm: onColFilterConfirm,\n        onFilterShow: onColHeadFilterVisibleChange,\n        getFilterActive: _menuTableUtil.getFilterActive,\n        refBillProps: refBillProps,\n        renderTabElement: renderFilterTabElement\n      }\n    };\n  }, [handleSort, colHeadFilter, onAggCellChange, _onAggVisibleChange, onColHeadFilterVisibleChange, onColFilterConfirm, onRowDelete, istemplate, colHeadFilters, orderInfo, colOperations, stateInfo, refBillProps, renderFilterTabElement, onFilterClear]);\n  var columnsMemo = (0, _react.useMemo)(function () {\n    var _context11;\n    var newColumns = (0, _menuTableUtil.getShowColumns)(columns, visibleColumnKeys);\n    var SEQ_COLUMN = {\n      align: 'center',\n      name: '序号',\n      title: /*#__PURE__*/_react.default.createElement(_WebUI.TableTitle, {\n        title: \"\\u5E8F\\u53F7\",\n        type: \"serial\"\n      }),\n      code: 'seq',\n      width: 54,\n      lock: true,\n      // 如果第一个锁定，序号列也锁定\n      render: function render(value, record, rowIndex) {\n        if (record.isAgg) return;\n        var curSerial = (pageNo - 1) * pageSize + rowIndex + 1;\n        return /*#__PURE__*/_react.default.createElement(\"div\", {\n          title: curSerial\n        }, curSerial);\n      }\n    };\n    return (0, _concat.default)(_context11 = [SEQ_COLUMN]).call(_context11, newColumns);\n  }, [columns, visibleColumnKeys, pageNo, pageSize]);\n  var listSortConfig = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.getListSortConfig)(listTreeConfig);\n  }, [listTreeConfig]);\n  var configuredSortItems = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.getConfiguredSortItems)(listSortConfig, orderInfo);\n  }, [listSortConfig, orderInfo]);\n  var handleViewConfigClose = (0, _react.useCallback)(function () {\n    setViewConfigVi(false);\n  }, []);\n  var handleViewConfigShow = (0, _react.useCallback)(function () {\n    setViewConfigVi(true);\n  }, []);\n  var handleDropDownItemClick = function handleDropDownItemClick(item, key) {\n    // 模板预览时禁用视图复制、删除、编辑\n    if (istemplate) return showIsTemplateNotice();\n    switch (key) {\n      case 'copy':\n        sendUserEvent('au_lo_cview_copy');\n        handleViewCopy(item);\n        break;\n      case 'edit':\n        sendUserEvent('au_lo_cview_edit');\n        handleViewEdit(item);\n        break;\n      case 'delete':\n        sendUserEvent('au_lo_cview_del');\n        handleViewDelete(item);\n        break;\n    }\n  };\n  var handleViewDelete = /*#__PURE__*/function () {\n    var _ref9 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(info) {\n      return _regenerator.default.wrap(function _callee9$(_context13) {\n        while (1) switch (_context13.prev = _context13.next) {\n          case 0:\n            (0, _utils.showDeleteConfirmModal)({\n              title: '',\n              message: '确定要删除该视图吗？',\n              detail: '',\n              onOk: function () {\n                var _onOk = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {\n                  var views, activeItem, newViewInfo, _e$data;\n                  return _regenerator.default.wrap(function _callee8$(_context12) {\n                    while (1) switch (_context12.prev = _context12.next) {\n                      case 0:\n                        _context12.prev = 0;\n                        sendUserEvent('au_lo_cview_del_comf');\n                        _context12.next = 4;\n                        return (0, _apps.deleteView)(info.id);\n                      case 4:\n                        views = (0, _filter.default)(viewInfo).call(viewInfo, function (item) {\n                          return item.id !== info.id;\n                        });\n                        activeItem = (0, _find.default)(views).call(views, function (item) {\n                          return item.active;\n                        }); // if (!activeItem && views[0]) views[0].active = true\n                        newViewInfo = (0, _immer.default)(views, function (viewInfo) {\n                          if (!activeItem && viewInfo[0]) viewInfo[0].active = true;\n                        });\n                        onViewChange(newViewInfo || [], formId, viewAuth);\n                        _context12.next = 13;\n                        break;\n                      case 10:\n                        _context12.prev = 10;\n                        _context12.t0 = _context12[\"catch\"](0);\n                        (0, _utils.showNotice)('error', (_context12.t0 === null || _context12.t0 === void 0 ? void 0 : _context12.t0.message) || (_context12.t0 === null || _context12.t0 === void 0 || (_e$data = _context12.t0.data) === null || _e$data === void 0 || (_e$data = _e$data.result[0]) === null || _e$data === void 0 ? void 0 : _e$data.errors[0]));\n                      case 13:\n                      case \"end\":\n                        return _context12.stop();\n                    }\n                  }, _callee8, null, [[0, 10]]);\n                }));\n                function onOk() {\n                  return _onOk.apply(this, arguments);\n                }\n                return onOk;\n              }(),\n              onCancel: function onCancel() {}\n            });\n          case 1:\n          case \"end\":\n            return _context13.stop();\n        }\n      }, _callee9);\n    }));\n    return function handleViewDelete(_x7) {\n      return _ref9.apply(this, arguments);\n    };\n  }();\n  var handleViewCopy = /*#__PURE__*/function () {\n    var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(info) {\n      var viewName, _menuTableAppActions$, copyRes, schemaId, data, _configuredFilterItems, _listFilterConfig, _listItemConfig, _listTreeConfig, name, hidden, statCards, _orderInfo, ganttconfig, schematype, timemode, newViewInfo;\n      return _regenerator.default.wrap(function _callee10$(_context14) {\n        while (1) switch (_context14.prev = _context14.next) {\n          case 0:\n            setViewVisible(false);\n            viewName = info.name;\n            _context14.prev = 2;\n            _context14.next = 5;\n            return (0, _apps.copyView)({\n              name: viewName,\n              copySchemaId: info.id\n            });\n          case 5:\n            copyRes = _context14.sent;\n            schemaId = copyRes === null || copyRes === void 0 ? void 0 : copyRes.result[0].id;\n            _context14.next = 9;\n            return (_menuTableAppActions$ = menuTableAppActions.getFormDataListSetting) === null || _menuTableAppActions$ === void 0 ? void 0 : _menuTableAppActions$.call(menuTableAppActions, {\n              appId: appId,\n              formId: formId,\n              env: _env.ENV_APP,\n              schemaId: schemaId,\n              compareTypes: compareTypes\n            });\n          case 9:\n            data = _context14.sent;\n            _configuredFilterItems = data.configuredFilterItems, _listFilterConfig = data.listFilterConfig, _listItemConfig = data.listItemConfig, _listTreeConfig = data.listTreeConfig, name = data.name, hidden = data.hidden, statCards = data.statCards, _orderInfo = data.orderInfo, ganttconfig = data.ganttconfig, schematype = data.schematype, timemode = data.timemode;\n            setEditViewId(schemaId);\n            newViewInfo = (0, _immer.default)(viewInfo, function (draft) {\n              draft.forEach(function (item) {\n                item.active = false;\n              });\n              draft.push({\n                userid: userId,\n                hidden: 'none',\n                id: schemaId,\n                name: viewName,\n                active: true,\n                index: Math.max(viewInfo.length - 1, 0),\n                ganttconfig: ganttconfig,\n                schematype: schematype,\n                timemode: timemode\n              });\n            });\n            onViewChange(newViewInfo || [], formId, viewAuth);\n            setViewConfigVi(true);\n            setSchemaSettingInfo(_objectSpread(_objectSpread({}, schemaSettingInfo), {}, (0, _defineProperty2.default)({}, schemaId, {\n              name: name,\n              hidden: hidden,\n              configuredFilterItems: _configuredFilterItems,\n              listFilterConfig: _listFilterConfig,\n              listItemConfig: _listItemConfig,\n              listTreeConfig: _listTreeConfig,\n              visibleColumnKeys: (0, _menuTableUtil.getVisibleColumnKeys)(_listItemConfig),\n              // columns,\n              statCards: statCards,\n              orderInfo: _orderInfo,\n              ganttconfig: ganttconfig,\n              schematype: schematype,\n              timemode: timemode\n            })));\n            _context14.next = 21;\n            break;\n          case 18:\n            _context14.prev = 18;\n            _context14.t0 = _context14[\"catch\"](2);\n            (0, _utils.showNotice)('error', _context14.t0.message);\n          case 21:\n          case \"end\":\n            return _context14.stop();\n        }\n      }, _callee10, null, [[2, 18]]);\n    }));\n    return function handleViewCopy(_x8) {\n      return _ref10.apply(this, arguments);\n    };\n  }();\n  var handleViewEdit = function handleViewEdit(info) {\n    var _menuTableAppActions$2;\n    setViewConfigVi(true);\n    setViewVisible(false);\n    (_menuTableAppActions$2 = menuTableAppActions.getFormDataListSetting) === null || _menuTableAppActions$2 === void 0 || _menuTableAppActions$2.call(menuTableAppActions, {\n      appId: appId,\n      formId: formId,\n      env: _env.ENV_APP,\n      schemaId: info.id,\n      compareTypes: compareTypes\n    }).then(function (data) {\n      var configuredFilterItems = data.configuredFilterItems,\n        listFilterConfig = data.listFilterConfig,\n        listItemConfig = data.listItemConfig,\n        listTreeConfig = data.listTreeConfig,\n        name = data.name,\n        hidden = data.hidden,\n        statCards = data.statCards,\n        orderInfo = data.orderInfo,\n        ganttconfig = data.ganttconfig,\n        timemode = data.timemode,\n        schematype = data.schematype;\n      setEditViewId(info.id);\n      setSchemaSettingInfo(_objectSpread(_objectSpread({}, schemaSettingInfo), {}, (0, _defineProperty2.default)({}, info.id, {\n        name: name,\n        hidden: hidden,\n        configuredFilterItems: configuredFilterItems,\n        listFilterConfig: listFilterConfig,\n        listItemConfig: listItemConfig,\n        listTreeConfig: listTreeConfig,\n        visibleColumnKeys: (0, _menuTableUtil.getVisibleColumnKeys)(listItemConfig),\n        // columns,\n        statCards: statCards,\n        orderInfo: orderInfo,\n        ganttconfig: ganttconfig,\n        timemode: timemode,\n        schematype: schematype\n      })));\n    });\n  };\n  var handleViewDrop = /*#__PURE__*/function () {\n    var _ref11 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(viewInfo) {\n      var schemaIds, params;\n      return _regenerator.default.wrap(function _callee11$(_context15) {\n        while (1) switch (_context15.prev = _context15.next) {\n          case 0:\n            onViewChange(viewInfo || [], formId, viewAuth);\n            schemaIds = (0, _map.default)(viewInfo).call(viewInfo, function (item) {\n              return item.id;\n            });\n            params = {\n              formId: formId,\n              schemaIds: schemaIds\n            };\n            _context15.prev = 3;\n            _context15.next = 6;\n            return (0, _apps.sortView)(params);\n          case 6:\n            _context15.next = 11;\n            break;\n          case 8:\n            _context15.prev = 8;\n            _context15.t0 = _context15[\"catch\"](3);\n            console.error(_context15.t0);\n          case 11:\n          case \"end\":\n            return _context15.stop();\n        }\n      }, _callee11, null, [[3, 8]]);\n    }));\n    return function handleViewDrop(_x9) {\n      return _ref11.apply(this, arguments);\n    };\n  }();\n  var handleViewAdd = /*#__PURE__*/function () {\n    var _ref12 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {\n      var addRes, schemaId, newData, newViewInfo, newSchemaSetting, _configuredFilterItems2, _listFilterConfig2, _listItemConfig2, _listTreeConfig2, statCards, _orderInfo2;\n      return _regenerator.default.wrap(function _callee12$(_context16) {\n        while (1) switch (_context16.prev = _context16.next) {\n          case 0:\n            if (!istemplate) {\n              _context16.next = 2;\n              break;\n            }\n            return _context16.abrupt(\"return\", showIsTemplateNotice());\n          case 2:\n            sendUserEvent('au_lo_cview_add');\n            setViewVisible(false);\n            _context16.prev = 4;\n            _context16.next = 7;\n            return (0, _apps.modifyView)({\n              name: '未命名视图',\n              formId: formId\n            });\n          case 7:\n            addRes = _context16.sent;\n            schemaId = addRes.result[0].id;\n            setEditViewId(schemaId);\n            newData = {\n              userid: userId,\n              hidden: 'none',\n              id: schemaId,\n              name: '未命名视图',\n              active: true,\n              index: Math.max((viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.length) - 1, 0)\n            };\n            newViewInfo = (0, _immer.default)(viewInfo, function (draft) {\n              draft.forEach(function (item) {\n                item.active = false;\n              });\n              draft.push(newData);\n            });\n            _context16.next = 14;\n            return onViewChange(newViewInfo || [], formId, viewAuth);\n          case 14:\n            newSchemaSetting = _context16.sent;\n            _configuredFilterItems2 = newSchemaSetting.configuredFilterItems, _listFilterConfig2 = newSchemaSetting.listFilterConfig, _listItemConfig2 = newSchemaSetting.listItemConfig, _listTreeConfig2 = newSchemaSetting.listTreeConfig, statCards = newSchemaSetting.statCards, _orderInfo2 = newSchemaSetting.orderInfo;\n            setSchemaSettingInfo(_objectSpread(_objectSpread({}, schemaSettingInfo), {}, (0, _defineProperty2.default)({}, schemaId, {\n              name: newData.name,\n              hidden: newData.hidden,\n              configuredFilterItems: _configuredFilterItems2,\n              listFilterConfig: _listFilterConfig2,\n              listItemConfig: _listItemConfig2,\n              listTreeConfig: _listTreeConfig2,\n              visibleColumnKeys: (0, _menuTableUtil.getVisibleColumnKeys)(_listItemConfig2),\n              // columns,\n              statCards: statCards,\n              orderInfo: _orderInfo2\n            })));\n            setViewConfigVi(true);\n            _context16.next = 23;\n            break;\n          case 20:\n            _context16.prev = 20;\n            _context16.t0 = _context16[\"catch\"](4);\n            (0, _utils.showNotice)('error', _context16.t0.message);\n          case 23:\n          case \"end\":\n            return _context16.stop();\n        }\n      }, _callee12, null, [[4, 20]]);\n    }));\n    return function handleViewAdd() {\n      return _ref12.apply(this, arguments);\n    };\n  }();\n  var toolbar = (0, _react.useMemo)(function () {\n    var canDelete = (viewInfo === null || viewInfo === void 0 ? void 0 : viewInfo.length) > 1;\n    var dropDownInfo = [{\n      key: 'edit',\n      label: '编辑'\n    }, {\n      key: 'copy',\n      label: '复制'\n    }];\n    canDelete && dropDownInfo.push({\n      key: 'delete',\n      label: '删除'\n    });\n    return [{\n      prefix: 'nocodeplatformicon',\n      type: 'gengduo3',\n      dropDownInfo: dropDownInfo,\n      handleItemClick: handleDropDownItemClick\n    }];\n  }, [viewInfo]);\n  var handleTabViewChange = function handleTabViewChange(id) {\n    sendUserEvent('au_lo_cview_open');\n    var newViewInfo = (0, _immer.default)(viewInfo, function (draft) {\n      draft.forEach(function (item) {\n        item.active = item.id === id;\n      });\n    });\n    onViewChange(newViewInfo || [], formId, viewAuth);\n  };\n  var handleViewChange = function handleViewChange(info) {\n    handleTabViewChange(info.id);\n    setViewVisible(false);\n  };\n  var onGetCurrentData = function onGetCurrentData(key) {\n    var map = {\n      filter: {\n        data: listFilterConfig,\n        configuredFilterItems: configuredFilterItems || []\n      },\n      sort: {\n        data: listSortConfig || [],\n        configuredSortItems: configuredSortItems || []\n      },\n      column: {\n        checkedKeys: visibleColumnKeys || [],\n        data: (0, _listSettingUtil.getListItemSettingData)(filterOperateColMemo) || [],\n        // columns={filterOperateColMemo}\n        lockIndex: (0, _menuTableUtil.getLockedIndex)(filterOperateColMemo)\n      }\n    };\n    return map[key];\n  };\n  var handleViewVisibleChange = function handleViewVisibleChange(vi) {\n    setViewVisible(vi);\n  };\n  var schemaSetting = (0, _react.useMemo)(function () {\n    return schemaSettingInfo[editViewId] || {};\n  }, [schemaSettingInfo, editViewId]);\n  var onSyncCurrentSortData = function onSyncCurrentSortData() {\n    setSchemaSettingInfo(function (schemaSettingInfo) {\n      return _objectSpread(_objectSpread({}, schemaSettingInfo), {}, (0, _defineProperty2.default)({}, editViewId, _objectSpread(_objectSpread({}, schemaSettingInfo[editViewId]), {}, {\n        orderInfo: orderInfo\n      })));\n    });\n  };\n  var onSyncCurrentColumnData = function onSyncCurrentColumnData() {\n    setSchemaSettingInfo(function (schemaSettingInfo) {\n      return _objectSpread(_objectSpread({}, schemaSettingInfo), {}, (0, _defineProperty2.default)({}, editViewId, _objectSpread(_objectSpread({}, schemaSettingInfo[editViewId]), {}, {\n        lockIndex: lockIndex,\n        visibleColumnKeys: (0, _menuTableUtil.copyArray)(visibleColumnKeys),\n        listItemConfig: (0, _menuTableUtil.copyArray)(listItemConfig) // 直接传进去不会触发更新\n      })));\n    });\n  };\n  var onSyncCurrentFilterData = function onSyncCurrentFilterData() {\n    setSchemaSettingInfo(function (schemaSettingInfo) {\n      return _objectSpread(_objectSpread({}, schemaSettingInfo), {}, (0, _defineProperty2.default)({}, editViewId, _objectSpread(_objectSpread({}, schemaSettingInfo[editViewId]), {}, {\n        configuredFilterItems: (0, _menuTableUtil.copyArray)(configuredFilterItems) // 直接传进去不会触发更新\n      })));\n    });\n  };\n  var editSchemaListSortConfig = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.getListSortConfig)((schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.listTreeConfig) || []);\n  }, [schemaSetting]);\n  var editSchemaConfiguredSortItems = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.getConfiguredSortItems)(editSchemaListSortConfig, schemaSetting.orderInfo);\n  }, [schemaSetting, editSchemaListSortConfig]);\n  var editSchemaColumns = (0, _react.useMemo)(function () {\n    return (0, _listSettingUtil.getListItemSettingData)((schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.listItemConfig) || []);\n  }, [schemaSetting]);\n  var editSchemaLockIndex = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.getLockedIndex)((schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.listItemConfig) || []);\n  }, [schemaSetting]);\n  var editSchemaStatCards = (0, _react.useMemo)(function () {\n    var _schemaSetting$statCa;\n    return schemaSetting === null || schemaSetting === void 0 || (_schemaSetting$statCa = schemaSetting.statCards) === null || _schemaSetting$statCa === void 0 ? void 0 : (0, _filter.default)(_schemaSetting$statCa).call(_schemaSetting$statCa, function (item) {\n      return item.display;\n    });\n  }, [schemaSetting]);\n  var onGetEnumFilterValueBySchema = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref13 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(v) {\n      return _regenerator.default.wrap(function _callee13$(_context17) {\n        while (1) switch (_context17.prev = _context17.next) {\n          case 0:\n            _context17.next = 2;\n            return (0, _menuTableActions.getEnumFilterValue)(appId, formId, _env.ENV_APP, schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.configuredFilterItems, schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.listFilterConfig, {\n              fieldName: v === null || v === void 0 ? void 0 : v.fieldName,\n              compareType: v === null || v === void 0 ? void 0 : v.compareType,\n              value: v === null || v === void 0 ? void 0 : v.value\n            }, 'schemaConfig');\n          case 2:\n            return _context17.abrupt(\"return\", _context17.sent);\n          case 3:\n          case \"end\":\n            return _context17.stop();\n        }\n      }, _callee13);\n    }));\n    return function (_x10) {\n      return _ref13.apply(this, arguments);\n    };\n  }(), [appId, formId, schemaSetting]);\n  var handleSaveViewSetting = /*#__PURE__*/function () {\n    var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(data) {\n      var name, hidden, configuredFilterItems, configuredSortItems, statCards, lockIndex, checkedKeys, listData, ganttconfig, timemode, schematype, result, newViewInfo;\n      return _regenerator.default.wrap(function _callee14$(_context18) {\n        while (1) switch (_context18.prev = _context18.next) {\n          case 0:\n            name = data.name, hidden = data.hidden, configuredFilterItems = data.configuredFilterItems, configuredSortItems = data.configuredSortItems, statCards = data.statCards, lockIndex = data.lockIndex, checkedKeys = data.checkedKeys, listData = data.listData, ganttconfig = data.ganttconfig, timemode = data.timemode, schematype = data.schematype;\n            result = {\n              id: editViewId,\n              name: name,\n              hidden: hidden,\n              filterRows: configuredFilterItems,\n              // listFilterConfig: filter.listFilterConfig,\n              orderInfo: configuredSortItems,\n              // listSortConfig: sort.listSortConfig,\n              listItems: (0, _menuTableUtil.convertToListItemConfig)(checkedKeys, listData, lockIndex, schemaSetting.listItemConfig),\n              statCards: statCards,\n              ganttconfig: ganttconfig,\n              timemode: timemode,\n              schematype: schematype\n              // pageSize\n            };\n            handleViewConfigClose();\n            _context18.prev = 3;\n            newViewInfo = (0, _immer.default)(viewInfo, function (draft) {\n              var view = (0, _find.default)(draft).call(draft, function (item) {\n                return item.id === editViewId;\n              });\n              if (view) {\n                view.name = name;\n                view.hidden = hidden;\n                view.ganttconfig = ganttconfig;\n                view.timemode = timemode;\n                view.schematype = schematype;\n              }\n            });\n            _context18.next = 7;\n            return (0, _apps.modifyView)(result);\n          case 7:\n            onViewChange(newViewInfo || [], formId, viewAuth);\n            _context18.next = 12;\n            break;\n          case 10:\n            _context18.prev = 10;\n            _context18.t0 = _context18[\"catch\"](3);\n          case 12:\n          case \"end\":\n            return _context18.stop();\n        }\n      }, _callee14, null, [[3, 10]]);\n    }));\n    return function handleSaveViewSetting(_x11) {\n      return _ref14.apply(this, arguments);\n    };\n  }();\n  var tabInfo = (0, _react.useMemo)(function () {\n    return (0, _filter.default)(viewInfo).call(viewInfo, function (item) {\n      return !(0, _includes.default)(_menuTableUtil.VIEW_PC_HIDDEN).call(_menuTableUtil.VIEW_PC_HIDDEN, item.hidden);\n    });\n  }, [viewInfo]);\n  var handleSelectedRows = (0, _react.useCallback)(function (next, key, keys, action) {\n    var s = '0';\n    if (!fullSreen) {\n      s = '1';\n    }\n    delete fullSreenWidth[s];\n    setFullSreenWidth(fullSreenWidth);\n    onSelectChange({\n      next: next,\n      key: key,\n      action: action\n    });\n  }, [fullSreenWidth, onSelectChange]);\n  var tableView = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppHomePage.default.table_list\n    }, /*#__PURE__*/_react.default.createElement(TableContext.Provider, {\n      value: tableContextValueMemo\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.DataGrid, {\n      dataSource: dataSource,\n      columns: columnsMemo,\n      primaryKey: \"id\",\n      footerDataSource: footerDataSource,\n      useVirtual: true,\n      columnResize: true,\n      rowSelection: {\n        type: 'checkbox',\n        value: selectedIds || [],\n        highlightRowWhenSelected: true,\n        column: {\n          lock: true\n        },\n        onChange: handleSelectedRows,\n        clickArea: 'row',\n        stopClickEventPropagation: true\n      }\n    })));\n  }, [tableContextValueMemo, dataSource, columnsMemo, footerDataSource, selectedIds, handleSelectedRows]);\n  var selectedQueryString = (0, _react.useMemo)(function () {\n    return getSelectedQueryString();\n  }, [getSelectedQueryString]);\n  var showBatchDelConfirm = function showBatchDelConfirm() {\n    (0, _utils.showConfirmModal)({\n      type: 'delete',\n      title: \"\\u786E\\u5B9A\\u5220\\u9664\\u9009\\u4E2D\\u7684\".concat(selectedCount, \"\\u6761\\u8BB0\\u5F55\\u5417\\uFF1F\"),\n      onAction: function onAction(key) {\n        switch (key) {\n          case 'ok':\n            onBatchDelete().then(function (res) {\n              var successCount = res.successCount;\n              (0, _utils.showNotice)('success', (0, _batchOperationsUtil.getErrTips)(successCount, 0, '删除'));\n            }).catch(function (err) {\n              (0, _batchOperationsUtil.showBatchErrNotice)(err, '删除');\n            });\n        }\n      }\n    });\n  };\n  var showBatchEditConfirm = function showBatchEditConfirm() {\n    setBatchEditModalVisible(true);\n  };\n  var closeBatchEditModal = function closeBatchEditModal() {\n    setBatchEditModalVisible(false);\n  };\n\n  // 选中行在PopBill中被删除后，已选条数更新\n  var delSelectedRow = (0, _react.useCallback)(function (pkId) {\n    onAfterDeleteRows(pkId, (0, _menuTableUtil.filterData)(pkId, dataSource), true).catch(function (err) {\n      (0, _utils.showNotice)('error', err.message || '删除失败');\n    });\n  }, [formId, dataSource, onAfterDeleteRows]);\n  var handlePopBillSave = (0, _react.useCallback)(function (operation) {\n    if (operation) {\n      var type = operation.type,\n        params = operation.params;\n      if (type === PopBillOpeartions.delete) {\n        var _ref15 = params || {},\n          pkId = _ref15.pkId;\n        delSelectedRow(pkId);\n      }\n    } else {\n      onAfterSave === null || onAfterSave === void 0 || onAfterSave();\n    }\n  }, [delSelectedRow, onAfterSave]);\n  var invokeHandleAction = function invokeHandleAction(key, name) {\n    var param = {\n      filter: selectedQueryString,\n      schemaId: activeSchemaId,\n      orderBy: orderBy,\n      operation: key\n    };\n    if (listFilters) {\n      param.queryFilter = listFilters[0];\n    }\n    if (searchKeywords) {\n      param[\"search\"] = searchKeywords;\n    }\n    (0, _apps.batchEditFormDataListItemWithFilter)(appId, formId, param).then(function (res) {\n      var totalCount = res.totalCount,\n        successCount = res.successCount,\n        failCount = res.failCount;\n      if (failCount === \"0\") {\n        var _context19;\n        (0, _utils.showNotice)('success', (0, _concat.default)(_context19 = \"\".concat(successCount, \"\\u6761\\u8BB0\\u5F55\")).call(_context19, name, \"\\u6210\\u529F\"));\n        onRefresh();\n      } else {\n        var _context20, _context21, _context22, _res$data;\n        (0, _utils.showNotice)('warning', (0, _concat.default)(_context20 = (0, _concat.default)(_context21 = (0, _concat.default)(_context22 = \"\".concat(successCount, \"\\u6761\\u8BB0\\u5F55\")).call(_context22, name, \"\\u6210\\u529F\\uFF0C\")).call(_context21, failCount, \"\\u6761\\u8BB0\\u5F55\")).call(_context20, name, \"\\u5931\\u8D25\"));\n        // 保持未成功条目的选中\n        var errInfo = getErrData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.result);\n        onRefresh();\n      }\n      setIsLoading(false);\n    }).catch(function (err) {\n      var _err$data, _err$data2;\n      var errInfo = getErrData(err === null || err === void 0 || (_err$data = err.data) === null || _err$data === void 0 ? void 0 : _err$data.result);\n      var successCount = err === null || err === void 0 || (_err$data2 = err.data) === null || _err$data2 === void 0 ? void 0 : _err$data2.successCount;\n      var errordata = '';\n      (0, _map.default)(errInfo).call(errInfo, function (item) {\n        var _item$errors;\n        if (errordata !== '') {\n          errordata += '；';\n        }\n        errordata += '第' + (item === null || item === void 0 ? void 0 : item.billIndex) + '条表单记录：' + (item === null || item === void 0 || (_item$errors = item.errors) === null || _item$errors === void 0 ? void 0 : _item$errors[0]);\n      });\n      if (successCount && successCount != '0') {\n        errordata += '；' + successCount + '条记录' + name + '成功';\n      }\n      (0, _utils.showNotice)('error', errordata || (err === null || err === void 0 ? void 0 : err.message) || \"\".concat(name, \"\\u5931\\u8D25\"));\n      setIsLoading(false);\n    });\n  };\n  var showBatchOpConfirm = function showBatchOpConfirm(id, name, secondConfirm) {\n    setIsLoading(true);\n    if (secondConfirm) {\n      (0, _utils.showConfirmModal)({\n        title: \"\\u786E\\u5B9A\\u5BF9\\u8BB0\\u5F55\\u6267\\u884C\".concat(name, \"\\u64CD\\u4F5C\\u5417\\uFF1F\"),\n        actions: [{\n          text: '取消',\n          key: 'cancel'\n        }, {\n          text: '确定',\n          key: 'confirm'\n        }],\n        onAction: function onAction(key) {\n          if (key === 'confirm') {\n            invokeHandleAction(id, name);\n          } else {\n            setIsLoading(false);\n          }\n        },\n        type: 'prompt'\n      });\n    } else {\n      invokeHandleAction(id, name);\n    }\n  };\n  var getRestBizButton = function getRestBizButton(restBizButton) {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, null, (0, _map.default)(restBizButton).call(restBizButton, function (item) {\n      return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n        key: item.key,\n        disabled: isLoading,\n        onClick: function onClick(key, name) {\n          showBatchOpConfirm(item.key, item.name, item.secondConfirm);\n        }\n      }, item.name);\n    }));\n  };\n  var triggerElement = function triggerElement(svgData, image) {\n    var _svgData$svgs, _svgData$svgs2;\n    var svg = (0, _utils.getQueryString)('svg', image); // 图标样式\n    var iconIndex = svg && svg !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$svgs = svgData.svgs) === null || _svgData$svgs === void 0 ? void 0 : (0, _findIndex.default)(_svgData$svgs).call(_svgData$svgs, function (item) {\n      return item.label === svg;\n    }) : 0;\n    var svgFill = isLoading ? '#cccccc' : '#666666';\n    var content = svgData === null || svgData === void 0 || (_svgData$svgs2 = svgData.svgs) === null || _svgData$svgs2 === void 0 || (_svgData$svgs2 = _svgData$svgs2[iconIndex]) === null || _svgData$svgs2 === void 0 ? void 0 : _svgData$svgs2.content;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      ref: function ref(r) {\n        var _r$getElementsByTagNa;\n        r === null || r === void 0 || (_r$getElementsByTagNa = r.getElementsByTagName('path')) === null || _r$getElementsByTagNa === void 0 || (_r$getElementsByTagNa = _r$getElementsByTagNa[0]) === null || _r$getElementsByTagNa === void 0 || _r$getElementsByTagNa.setAttribute('style', \"fill:\".concat(svgFill, \" \"));\n      },\n      disabled: isLoading,\n      className: (0, _classnames.default)(_AppHomePage.default.svgIcon),\n      dangerouslySetInnerHTML: {\n        __html: (0, _replaceAll.default)(content).call(content, /<title>.*?<\\/title>/g, '') || ''\n      }\n    });\n  };\n  var getBizButtonList = function getBizButtonList() {\n    var curwidth = fullSreenWidth;\n    if (curwidth === 0 || curwidth !== curwidth) {\n      var _document$getElementB2;\n      curwidth = ((_document$getElementB2 = document.getElementById(\"home_action_form\")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.clientWidth) - vasWidth - btnWidth - 169;\n    }\n    var zw = 0;\n    var restBizButton = [];\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppHomePage.default.toolbarItem\n    }, (0, _map.default)(bizButtons).call(bizButtons, function (item, index) {\n      zw += 40 + item.name.length * 15;\n      if (zw < curwidth) {\n        return /*#__PURE__*/_react.default.createElement(\"div\", {\n          className: _AppHomePage.default.toolbarIcon\n        }, triggerElement(svgData, item.icon), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n          type: \"text\",\n          text: item.name,\n          disabled: isLoading,\n          onClick: istemplate ? showIsTemplateNotice : function (key, name) {\n            showBatchOpConfirm(item.key, item.name, item.secondConfirm);\n          }\n        }));\n      } else {\n        restBizButton.push(item);\n      }\n    }), restBizButton.length > 0 && /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n      menu: getRestBizButton(restBizButton)\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _AppHomePage.default.dropdown\n    }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n      type: \"text\",\n      text: \"\\u66F4\\u591A\"\n    }), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      type: \"arrow-down\"\n    }))));\n  };\n  var onConfirmEdit = (0, _react.useCallback)(function (res) {\n    // 要保留筛选项、勾选项刷新\n    onAfterSave();\n  }, [onAfterSave, keepErrSelect]);\n\n  // 统计卡片：同步列表筛选条件。需要将视图和列表两个地方配置的筛选条件进行合并\n  var syncStatCardConfiguredFilterItems = function syncStatCardConfiguredFilterItems() {\n    var _context23, _context24, _context25, _context26;\n    var valueEqualFieldName = (0, _map.default)(_context23 = (0, _filter.default)(_context24 = configuredFilterItems || []).call(_context24, function (item) {\n      var compareType = item.compareType;\n      return compareType === '001';\n    })).call(_context23, function (item) {\n      return item.fieldName;\n    });\n    //将视图配置的筛选项和列表配置的筛选项合并\n    var map = new _map2.default((0, _filter.default)(_context25 = (0, _map.default)(_context26 = schemaConfiguredFilterItems || []).call(_context26, function (item) {\n      var compareType = item.compareType,\n        fieldName = item.fieldName;\n      if (compareType === '001' && (0, _includes.default)(valueEqualFieldName).call(valueEqualFieldName, fieldName)) return null;\n      return [(0, _stringify.default)(item), item];\n    })).call(_context25, Boolean));\n    var _iterator = _createForOfIteratorHelper(configuredFilterItems || []),\n      _step;\n    try {\n      for (_iterator.s(); !(_step = _iterator.n()).done;) {\n        var item = _step.value;\n        var itemKey = (0, _stringify.default)(item);\n        if (!map.has(itemKey)) {\n          map.set(itemKey, item);\n        }\n      }\n    } catch (err) {\n      _iterator.e(err);\n    } finally {\n      _iterator.f();\n    }\n    return (0, _toConsumableArray2.default)((0, _values.default)(map).call(map));\n  };\n  var getEnumValueWithSchemaId = (0, _react.useCallback)(function (v, configuredFilterItems) {\n    onGetEnumFilterValue(v, configuredFilterItems, true);\n  }, [onGetEnumFilterValue]);\n  var openBatchEdit = function openBatchEdit() {\n    if (istemplate) {\n      showIsTemplateNotice();\n    } else {\n      setBatchEditModalVisible(true);\n    }\n  };\n  var isGantt = (0, _react.useMemo)(function () {\n    return (activeSchema === null || activeSchema === void 0 ? void 0 : activeSchema.schematype) === '1';\n  }, [activeSchema]);\n  var modalEle = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_AppHomePage.default.container)\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.actions,\n    id: \"home_action_form\"\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.buttons\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    id: \"home_action_form_button\",\n    className: _AppHomePage.default.buttonsChild\n  }, inputAuth && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"primary\",\n    text: \"\\u5F55\\u5165\",\n    \"data-nc-action\": createUiActionDataStr('au_lo_fill'),\n    onClick: openBillModal\n  }), importAuth && /*#__PURE__*/_react.default.createElement(_ImportButton.default, {\n    \"data-nc-action\": createUiActionDataStr('au_lo_ip'),\n    refresh: onRefresh,\n    onClick: istemplate ? showIsTemplateNotice : undefined\n  }), exportAuth && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ExportButton.default, {\n    selectedRows: selectedIds || [],\n    tableDataSource: dataSource,\n    searchKeyWord: searchKeywords,\n    totalCount: totalCount,\n    createUiActionDataStr: createUiActionDataStr,\n    onClick: istemplate ? showIsTemplateNotice : undefined,\n    activeSchemaId: activeSchemaId,\n    selectedQueryString: selectedQueryString,\n    filters: listFilters === null || listFilters === void 0 ? void 0 : listFilters[0],\n    selectedCount: selectedCount\n  }), /*#__PURE__*/_react.default.createElement(_ExportAttachBtn.default, {\n    formId: formId,\n    activeSchemaId: activeSchemaId,\n    searchKeyWord: searchKeywords,\n    selectedQueryString: selectedQueryString,\n    filters: listFilters === null || listFilters === void 0 ? void 0 : listFilters[0],\n    selectedCount: selectedCount,\n    totalCount: totalCount,\n    onItemClick: beforeOperate()\n  })), editAuth && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    disabled: selectedCount === 0,\n    type: \"text\",\n    text: \"\\u6279\\u91CF\\u7F16\\u8F91\",\n    icon: {\n      type: 'bianji',\n      prefix: 'nocodeplatformicon'\n    },\n    \"data-nc-action\": createUiActionDataStr('au_lo_be'),\n    onClick: openBatchEdit\n  }), batchEditModalVisible && /*#__PURE__*/_react.default.createElement(_BatchEditModal.default, {\n    visible: batchEditModalVisible,\n    setVisible: setBatchEditModalVisible,\n    appId: appId,\n    formId: formId,\n    activeSchemaId: activeSchemaId,\n    searchKeywords: searchKeywords,\n    refBillProps: refBillProps,\n    listFilterConfig: listFilterConfig,\n    listFilters: listFilters,\n    listItemConfig: listItemConfig,\n    onColHeadFilterVisibleChange: onGetEnumFilterValue,\n    colHeadFilter: enumFilterValue,\n    orderBy: orderBy,\n    onConfirmEdit: onConfirmEdit,\n    selectedQueryString: selectedQueryString\n  })), deleteAuth && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    text: \"\\u5220\\u9664\",\n    icon: {\n      type: 'shanchu2',\n      prefix: 'nocodeplatformicon'\n    },\n    \"data-nc-action\": createUiActionDataStr('au_lo_del'),\n    disabled: selectedCount === 0,\n    onClick: istemplate ? showIsTemplateNotice : showBatchDelConfirm\n  })), selectedCount > 0 && bizButtons.length > 0 && getBizButtonList()), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.vas_action,\n    id: \"home_vas_action_form\"\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.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: handleDebounceSearch,\n    value: searchKeywords,\n    allowClear: true\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.split_line\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    className: _AppHomePage.default.refresh,\n    \"data-nc-action\": createUiActionDataStr('au_lo_ref'),\n    onClick: onRefreshWithSetting,\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'shuaxin'\n    }\n    // icon={ refreshLoading ? { type: 'loadding-circle', spin: true } : { prefix: 'nocodeplatformicon', type: 'shuaxin' }}\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    className: _AppHomePage.default.fullscreen,\n    type: \"text\",\n    \"data-nc-action\": createUiActionDataStr(fullSreen ? 'au_lo_exitfull' : 'au_lo_full'),\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: fullSreen ? 'suoxiao' : 'fangda'\n    },\n    onClick: handleFullScreen\n  }))), (columns === null || columns === void 0 ? void 0 : columns.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.list\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.nav\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Tooltip, (0, _defineProperty2.default)({\n    visible: viewVisible,\n    arrow: false,\n    placement: \"topLeft\",\n    trigger: \"click\",\n    onVisibleChange: handleViewVisibleChange,\n    tip: /*#__PURE__*/_react.default.createElement(_SwitchViewPanel.default, {\n      data: viewInfo,\n      handleItemClick: handleViewChange,\n      toolbar: toolbar,\n      handleViewAdd: handleViewAdd,\n      draggable: true,\n      onDrop: handleViewDrop\n    }),\n    popperStyle: {\n      padding: 0,\n      zIndex: 1049\n    }\n  }, \"trigger\", \"click\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    className: (0, _classnames.default)(_AppHomePage.default.btn, (0, _defineProperty2.default)({}, _AppHomePage.default['btn-active'], viewVisible)),\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'shitu'\n    }\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Tabs, {\n    type: \"card\",\n    showScrollArrow: true,\n    defaultActiveKey: activeSchemaId,\n    className: _AppHomePage.default.tab,\n    onChange: handleTabViewChange\n  }, (0, _map.default)(tabInfo).call(tabInfo, function (v) {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Tabs.TabPane, {\n      key: v.id,\n      tab: /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppHomePage.default.tab_name\n      }, v.name)\n    });\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.setting\n  }, /*#__PURE__*/_react.default.createElement(_ListFilterSetting.default, {\n    title: \"\\u7B5B\\u9009\",\n    onClose: handleCloseFilterSetting,\n    onConfirm: handleFilterConfirm,\n    onClear: handleFilterClear,\n    data: listFilterConfig || [],\n    configuredFilterItems: configuredFilterItems,\n    style: {\n      width: '640px',\n      height: '332px'\n    },\n    maskClosable: true,\n    maskStyle: {\n      opacity: 0\n    },\n    draggable: true,\n    showClearAll: true,\n    refBillProps: refBillProps,\n    onColHeadFilterVisibleChange: getEnumValueWithSchemaId,\n    colHeadFilter: enumFilterValue,\n    visible: showFilterSettingPop,\n    onVisibleChange: onSetShowFilterSettingPop\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    title: \"\\u7B5B\\u9009\",\n    className: (0, _classnames.default)(_AppHomePage.default.btn, (0, _defineProperty2.default)({}, _AppHomePage.default['btn-active'], showFilterSettingPop || (configuredFilterItems === null || configuredFilterItems === void 0 ? void 0 : configuredFilterItems.length) > 0)),\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'shaixuan'\n    }\n  })), /*#__PURE__*/_react.default.createElement(_WebUI.ListSortDropdown, {\n    title: \"\\u6392\\u5E8F\",\n    onClose: handleCloseSortSetting,\n    onConfirm: handleSortConfirm,\n    onClear: handleSortClear,\n    data: listSortConfig || [],\n    configuredSortItems: configuredSortItems,\n    style: {\n      width: '480px',\n      height: '480px'\n    },\n    maskClosable: true,\n    maskStyle: {\n      opacity: 0\n    },\n    draggable: true,\n    showClearAll: true,\n    visible: showSortSettingPop,\n    onVisibleChange: function onVisibleChange(v) {\n      onSetShowSortSettingPop(v);\n    }\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    title: \"\\u6392\\u5E8F\",\n    className: (0, _classnames.default)(_AppHomePage.default.btn, (0, _defineProperty2.default)({}, _AppHomePage.default['btn-active'], showSortSettingPop || (orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.length) > 0)),\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'paixu3'\n    }\n  })), /*#__PURE__*/_react.default.createElement(_WebUI.ListItemSettingDropdown, {\n    title: \"\\u5217\\u8BBE\\u7F6E\",\n    onClose: handleCloseListSetting,\n    checkedKeys: visibleColumnKeys,\n    onConfirm: handleConfirm,\n    data: columnData || []\n    // columns={filterOperateColMemo}\n    ,\n    lockIndex: lockIndex,\n    height: 480,\n    maskClosable: true,\n    maskStyle: {\n      opacity: 0\n    },\n    okProps: {\n      'data-nc-action': createUiActionDataStr('au_lo_cs_comf')\n    },\n    onVisibleChange: function onVisibleChange(v) {\n      onSetShowListSettingPop(v);\n    },\n    visible: showListSettingPop,\n    showLock: !isGantt,\n    draggable: true\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    title: \"\\u5217\\u8BBE\\u7F6E\",\n    className: (0, _classnames.default)(_AppHomePage.default.btn, _AppHomePage.default['row-setting'], (0, _defineProperty2.default)({}, _AppHomePage.default['btn-active'], showListSettingPop)),\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'lieshezhi'\n    }\n  })), statisticAuth && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: handleClickStat,\n    title: \"\\u7EDF\\u8BA1\",\n    type: \"text\",\n    className: _AppHomePage.default.btn,\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'xinjianbaobiao'\n    },\n    \"data-nc-action\": createUiActionDataStr('au_lo_analy')\n  }))), isGantt ? /*#__PURE__*/_react.default.createElement(Gantt, {\n    activeSchema: activeSchema,\n    dataSource: dataSource,\n    columns: columnsMemo,\n    viewMode: activeSchema.timemode\n  }) : tableView), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default.page\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppHomePage.default.page_total\n  }, \"\\u5DF2\\u9009\", selectedCount, \"\\u6761\"), /*#__PURE__*/_react.default.createElement(_kdesign.Pagination, {\n    showSizeChanger: true,\n    showQuickJumper: false,\n    defaultCurrent: pageNo,\n    current: pageNo,\n    total: totalCount,\n    pageSize: pageSize,\n    onChange: onChange,\n    pageType: \"nicety\"\n  }))) : loading ? null : _WebUI.EmptyData && /*#__PURE__*/_react.default.createElement(_WebUI.EmptyData, {\n    src: _empty.default,\n    desc: \"\\u6682\\u65E0\\u6570\\u636E\",\n    imageWidth: 224,\n    imageHeight: 128,\n    textGap: 16\n  }))), statisticAuth && /*#__PURE__*/_react.default.createElement(_Statistic.default, {\n    env: _env.ENV_APP,\n    visible: statVisible,\n    formName: formName,\n    setVisible: setStatVisible,\n    listFilterConfig: listFilterConfig,\n    configuredFilterItems: configuredFilterItems,\n    getConfiguredFilterItems: syncStatCardConfiguredFilterItems,\n    getEnumFilterValue: getEnumFilterValue,\n    viewInfo: viewInfo,\n    activeSchemaId: activeSchemaId,\n    disabled: istemplate,\n    disabledAction: showIsTemplateNotice\n  }), modalVisible && (editAuth || view) && /*#__PURE__*/_react.default.createElement(_PopBill.default, {\n    visible: modalVisible,\n    billList: dataSource,\n    config: {\n      formId: 'bos_nocode_bill',\n      appId: appId,\n      targetFormId: popBillConfig.formId,\n      pkId: popBillConfig.pkId,\n      Status: view,\n      rootPageId: (_state$rootConfig = state.rootConfig) === null || _state$rootConfig === void 0 ? void 0 : _state$rootConfig.pageId\n    },\n    onRefresh: handlePopBillSave,\n    close: hiddenModal,\n    disabled: istemplate,\n    disabledMsg: \"\\u9884\\u89C8\\u65F6\\u65E0\\u6CD5\\u4F7F\\u7528\\u6B64\\u529F\\u80FD\",\n    showDelete: deleteAuth,\n    showEdit: editAuth,\n    showCopy: inputAuth,\n    viewAuth: viewAuth,\n    detailShareReqireLogin: detailShareReqireLoginAuth,\n    detailShareNotReqireLogin: detailShareNotReqireLoginAuth,\n    editShare: editShareAuth,\n    inputShareReqireLogin: inputShareReqireLoginAuth,\n    inputShareNotReqireLogin: inputShareNotReqireLoginAuth\n  }), viewConfigVi && /*#__PURE__*/_react.default.createElement(_TableSchemeConfigPopLayout.default, {\n    visible: viewConfigVi,\n    onClose: handleViewConfigClose,\n    onConfirm: handleSaveViewSetting,\n    onGetCurrentData: onGetCurrentData,\n    base: {\n      name: schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.name,\n      hidden: schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.hidden,\n      schematype: schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.schematype,\n      ganttconfig: schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.ganttconfig,\n      timemode: schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.timemode\n    },\n    filter: {\n      data: (schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.listFilterConfig) || [],\n      configuredFilterItems: (schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.configuredFilterItems) || [],\n      getEnumFilterValue: onGetEnumFilterValueBySchema,\n      onSyncCurrentFilterData: onSyncCurrentFilterData\n      // onColHeadFilterVisibleChange: onGetEnumFilterValue,\n      // colHeadFilter: enumFilterValue\n    },\n    sort: {\n      data: editSchemaListSortConfig || [],\n      configuredSortItems: editSchemaConfiguredSortItems || [],\n      onSyncCurrentSortData: onSyncCurrentSortData\n    },\n    column: {\n      checkedKeys: (schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.visibleColumnKeys) || [],\n      data: editSchemaColumns || [],\n      // columns={filterOperateColMemo}\n      lockIndex: editSchemaLockIndex,\n      onSyncCurrentColumnData: onSyncCurrentColumnData\n    },\n    statistic: {\n      data: (schemaSetting === null || schemaSetting === void 0 ? void 0 : schemaSetting.statCards) || []\n      // value: editSchemaStatCards || []\n    },\n    createUiActionDataStr: createUiActionDataStr\n  }));\n  return fullSreen ? _reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppHomePage.default['container-full-screen']\n  }, modalEle), document.body) : modalEle;\n});\nAppFormList.displayName = 'AppFormList';\nvar AppHomePage = function AppHomePage() {\n  var _document$getElementB3, _document$getElementB4;\n  var para = (0, _reactRouterDom.useParams)();\n  var formId = para.targetFormId,\n    appId = para.appId;\n  var context = (0, _reactRouterDom.useOutletContext)();\n  var selectedNode = context.selectedNode;\n  var authContext = (0, _react.useContext)(_FormDataListAuthProvider.AuthorizeContext) || {};\n  var authList = authContext.authList,\n    pending = authContext.pending,\n    authFormId = authContext.formId;\n  var hasGetCurFormAuth = !pending && authFormId === formId;\n  var vasWidth = (_document$getElementB3 = document.getElementById(\"home_vas_action_form\")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.clientWidth;\n  var btnWidth = (_document$getElementB4 = document.getElementById(\"home_action_form_button\")) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.clientWidth;\n\n  // 所有功能权限项都返回false，则跳转无权限\n  if (hasGetCurFormAuth && (0, _values2.default)(authList).every(function (auth) {\n    return auth === false;\n  })) return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Navigate, {\n    to: \"/noPermission\",\n    replace: true\n  });\n  if (!selectedNode) {\n    return null;\n  }\n  if ((0, _utils.isCustomPage)(selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.type)) {\n    return /*#__PURE__*/_react.default.createElement(_custom.default, {\n      pageId: selectedNode.formId,\n      appId: appId,\n      readonly: true\n    });\n  }\n  return /*#__PURE__*/_react.default.createElement(AppFormList, {\n    vasWidth: vasWidth,\n    btnWidth: btnWidth\n  });\n};\nAppHomePage.displayName = 'AppHomePage';\nvar _default = exports[\"default\"] = AppHomePage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/apps/home/AppHomePage.tsx\n");

/***/ })

}]);