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

/***/ "./src/web/component/admin/CreateForm.less":
/*!*************************************************!*\
  !*** ./src/web/component/admin/CreateForm.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\"] = ({\"create_form\":\"iHfoJxgS_create_form\",\"item\":\"Y4Z8QopK_item\",\"des\":\"k1lnKbxv_des\",\"blue\":\"AbbMn7tr_blue\",\"title\":\"_5edZYFEo_title\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtLmxlc3M/ZmQ5ZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImNyZWF0ZV9mb3JtXCI6XCJpSGZvSnhnU19jcmVhdGVfZm9ybVwiLFwiaXRlbVwiOlwiWTRaOFFvcEtfaXRlbVwiLFwiZGVzXCI6XCJrMWxuS2J4dl9kZXNcIixcImJsdWVcIjpcIkFiYk1uN3RyX2JsdWVcIixcInRpdGxlXCI6XCJfNWVkWllGRW9fdGl0bGVcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateForm.less\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByImport/ImportSetting.less":
/*!***********************************************************************!*\
  !*** ./src/web/component/admin/CreateFormByImport/ImportSetting.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\"] = ({\"importdatasetting\":\"R89Ntd7K_importdatasetting\",\"importdatasetting_fieldlist\":\"aJHy0drE_importdatasetting_fieldlist\",\"importdatasetting_pd24\":\"bNxBKx8i_importdatasetting_pd24\",\"fieldsetting\":\"+1F+YWg3_fieldsetting\",\"fieldsetting_name\":\"UcnvQoal_fieldsetting_name\",\"fieldsetting_select\":\"_5pFeJpZw_fieldsetting_select\",\"fieldsetting_item\":\"WgTTkksQ_fieldsetting_item\",\"fieldsetting_config\":\"GG8J2CL6_fieldsetting_config\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtQnlJbXBvcnQvSW1wb3J0U2V0dGluZy5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvYWRtaW4vQ3JlYXRlRm9ybUJ5SW1wb3J0L0ltcG9ydFNldHRpbmcubGVzcz9mZTBiIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiaW1wb3J0ZGF0YXNldHRpbmdcIjpcIlI4OU50ZDdLX2ltcG9ydGRhdGFzZXR0aW5nXCIsXCJpbXBvcnRkYXRhc2V0dGluZ19maWVsZGxpc3RcIjpcImFKSHkwZHJFX2ltcG9ydGRhdGFzZXR0aW5nX2ZpZWxkbGlzdFwiLFwiaW1wb3J0ZGF0YXNldHRpbmdfcGQyNFwiOlwiYk54Qkt4OGlfaW1wb3J0ZGF0YXNldHRpbmdfcGQyNFwiLFwiZmllbGRzZXR0aW5nXCI6XCIrMUYrWVdnM19maWVsZHNldHRpbmdcIixcImZpZWxkc2V0dGluZ19uYW1lXCI6XCJVY252UW9hbF9maWVsZHNldHRpbmdfbmFtZVwiLFwiZmllbGRzZXR0aW5nX3NlbGVjdFwiOlwiXzVwRmVKcFp3X2ZpZWxkc2V0dGluZ19zZWxlY3RcIixcImZpZWxkc2V0dGluZ19pdGVtXCI6XCJXZ1RUa2tzUV9maWVsZHNldHRpbmdfaXRlbVwiLFwiZmllbGRzZXR0aW5nX2NvbmZpZ1wiOlwiR0c4SjJDTDZfZmllbGRzZXR0aW5nX2NvbmZpZ1wifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByImport/ImportSetting.less\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByImport/index.less":
/*!***************************************************************!*\
  !*** ./src/web/component/admin/CreateFormByImport/index.less ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"create_form_by_import\":\"stdGwyZ0_create_form_by_import\",\"create_form_by_import_body\":\"akeVxmJp_create_form_by_import_body\",\"create_form_by_import_body_step1\":\"vQ60TONX_create_form_by_import_body_step1\",\"create_form_by_import_body_step2\":\"ISfZBw8C_create_form_by_import_body_step2\",\"create_form_by_import_body_step3\":\"wTwXRpce_create_form_by_import_body_step3\",\"upload\":\"DzFbarra_upload\",\"upload_add\":\"TvchrIPI_upload_add\",\"upload_text\":\"lgMOz6RL_upload_text\",\"upload_tips\":\"mUXH-CKy_upload_tips\",\"upload_tips_text\":\"jR4iKfTA_upload_tips_text\",\"upload_tips_template\":\"_4JsQ+mAe_upload_tips_template\",\"upload_progress\":\"_6M5eqEoJ_upload_progress\",\"upload_progress_text\":\"IlAcT2dJ_upload_progress_text\",\"import\":\"iF-27cep_import\",\"import_msg\":\"_3KL10ghf_import_msg\",\"import_img\":\"_4NyLdzuy_import_img\",\"create_form_by_import_body_uploadtext\":\"TJynCu8o_create_form_by_import_body_uploadtext\",\"create_form_by_import_footer\":\"UA6muATA_create_form_by_import_footer\",\"create_form_by_import_footer_btn\":\"AaZj35sm_create_form_by_import_footer_btn\",\"pre\":\"ldd6Xf2B_pre\",\"pt24\":\"HsyquD4R_pt24\",\"form\":\"uDXS3Hzm_form\",\"form_item\":\"oTDmOiTN_form_item\",\"title\":\"pE50PWBq_title\",\"require\":\"_8MxGeSFr_require\",\"list\":\"kY7c+Yva_list\",\"spin_container\":\"eXB40mx0_spin_container\",\"spin_container_content\":\"AOovXC6k_spin_container_content\",\"text\":\"II9dl6sA_text\",\"inline\":\"sREEoKpX_inline\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtQnlJbXBvcnQvaW5kZXgubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2FkbWluL0NyZWF0ZUZvcm1CeUltcG9ydC9pbmRleC5sZXNzPzkzZmIiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJjcmVhdGVfZm9ybV9ieV9pbXBvcnRcIjpcInN0ZEd3eVowX2NyZWF0ZV9mb3JtX2J5X2ltcG9ydFwiLFwiY3JlYXRlX2Zvcm1fYnlfaW1wb3J0X2JvZHlcIjpcImFrZVZ4bUpwX2NyZWF0ZV9mb3JtX2J5X2ltcG9ydF9ib2R5XCIsXCJjcmVhdGVfZm9ybV9ieV9pbXBvcnRfYm9keV9zdGVwMVwiOlwidlE2MFRPTlhfY3JlYXRlX2Zvcm1fYnlfaW1wb3J0X2JvZHlfc3RlcDFcIixcImNyZWF0ZV9mb3JtX2J5X2ltcG9ydF9ib2R5X3N0ZXAyXCI6XCJJU2ZaQnc4Q19jcmVhdGVfZm9ybV9ieV9pbXBvcnRfYm9keV9zdGVwMlwiLFwiY3JlYXRlX2Zvcm1fYnlfaW1wb3J0X2JvZHlfc3RlcDNcIjpcIndUd1hScGNlX2NyZWF0ZV9mb3JtX2J5X2ltcG9ydF9ib2R5X3N0ZXAzXCIsXCJ1cGxvYWRcIjpcIkR6RmJhcnJhX3VwbG9hZFwiLFwidXBsb2FkX2FkZFwiOlwiVHZjaHJJUElfdXBsb2FkX2FkZFwiLFwidXBsb2FkX3RleHRcIjpcImxnTU96NlJMX3VwbG9hZF90ZXh0XCIsXCJ1cGxvYWRfdGlwc1wiOlwibVVYSC1DS3lfdXBsb2FkX3RpcHNcIixcInVwbG9hZF90aXBzX3RleHRcIjpcImpSNGlLZlRBX3VwbG9hZF90aXBzX3RleHRcIixcInVwbG9hZF90aXBzX3RlbXBsYXRlXCI6XCJfNEpzUSttQWVfdXBsb2FkX3RpcHNfdGVtcGxhdGVcIixcInVwbG9hZF9wcm9ncmVzc1wiOlwiXzZNNWVxRW9KX3VwbG9hZF9wcm9ncmVzc1wiLFwidXBsb2FkX3Byb2dyZXNzX3RleHRcIjpcIklsQWNUMmRKX3VwbG9hZF9wcm9ncmVzc190ZXh0XCIsXCJpbXBvcnRcIjpcImlGLTI3Y2VwX2ltcG9ydFwiLFwiaW1wb3J0X21zZ1wiOlwiXzNLTDEwZ2hmX2ltcG9ydF9tc2dcIixcImltcG9ydF9pbWdcIjpcIl80TnlMZHp1eV9pbXBvcnRfaW1nXCIsXCJjcmVhdGVfZm9ybV9ieV9pbXBvcnRfYm9keV91cGxvYWR0ZXh0XCI6XCJUSnluQ3U4b19jcmVhdGVfZm9ybV9ieV9pbXBvcnRfYm9keV91cGxvYWR0ZXh0XCIsXCJjcmVhdGVfZm9ybV9ieV9pbXBvcnRfZm9vdGVyXCI6XCJVQTZtdUFUQV9jcmVhdGVfZm9ybV9ieV9pbXBvcnRfZm9vdGVyXCIsXCJjcmVhdGVfZm9ybV9ieV9pbXBvcnRfZm9vdGVyX2J0blwiOlwiQWFaajM1c21fY3JlYXRlX2Zvcm1fYnlfaW1wb3J0X2Zvb3Rlcl9idG5cIixcInByZVwiOlwibGRkNlhmMkJfcHJlXCIsXCJwdDI0XCI6XCJIc3lxdUQ0Ul9wdDI0XCIsXCJmb3JtXCI6XCJ1RFhTM0h6bV9mb3JtXCIsXCJmb3JtX2l0ZW1cIjpcIm9URG1PaVROX2Zvcm1faXRlbVwiLFwidGl0bGVcIjpcInBFNTBQV0JxX3RpdGxlXCIsXCJyZXF1aXJlXCI6XCJfOE14R2VTRnJfcmVxdWlyZVwiLFwibGlzdFwiOlwia1k3YytZdmFfbGlzdFwiLFwic3Bpbl9jb250YWluZXJcIjpcImVYQjQwbXgwX3NwaW5fY29udGFpbmVyXCIsXCJzcGluX2NvbnRhaW5lcl9jb250ZW50XCI6XCJBT292WEM2a19zcGluX2NvbnRhaW5lcl9jb250ZW50XCIsXCJ0ZXh0XCI6XCJJSTlkbDZzQV90ZXh0XCIsXCJpbmxpbmVcIjpcInNSRUVvS3BYX2lubGluZVwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByImport/index.less\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByTemplate.less":
/*!***********************************************************!*\
  !*** ./src/web/component/admin/CreateFormByTemplate.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\"] = ({\"create-form-by-template\":\"mayBmmVn_create-form-by-template\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtQnlUZW1wbGF0ZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvYWRtaW4vQ3JlYXRlRm9ybUJ5VGVtcGxhdGUubGVzcz84MTM3Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiY3JlYXRlLWZvcm0tYnktdGVtcGxhdGVcIjpcIm1heUJtbVZuX2NyZWF0ZS1mb3JtLWJ5LXRlbXBsYXRlXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByTemplate.less\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormModal.less":
/*!******************************************************!*\
  !*** ./src/web/component/admin/CreateFormModal.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\"] = ({\"createformmodal\":\"_3a1OixDM_createformmodal\",\"createformmodal_body\":\"BztYJjKL_createformmodal_body\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtTW9kYWwubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2FkbWluL0NyZWF0ZUZvcm1Nb2RhbC5sZXNzPzU1MDciXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJjcmVhdGVmb3JtbW9kYWxcIjpcIl8zYTFPaXhETV9jcmVhdGVmb3JtbW9kYWxcIixcImNyZWF0ZWZvcm1tb2RhbF9ib2R5XCI6XCJCenRZSmpLTF9jcmVhdGVmb3JtbW9kYWxfYm9keVwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormModal.less\n");

/***/ }),

/***/ "./src/web/component/admin/CreateGroupModal.less":
/*!*******************************************************!*\
  !*** ./src/web/component/admin/CreateGroupModal.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\":\"yjvXQ6J0_modal\",\"name\":\"lejXCuup_name\",\"dot\":\"d8hZPXyr_dot\",\"select-group\":\"V5NP6+E8_select-group\",\"select-group-title\":\"_9zNpPVP8_select-group-title\",\"footer\":\"_1FzaNkfw_footer\",\"cancel\":\"tFzwK3pR_cancel\",\"confirm\":\"eEQLb3mU_confirm\",\"select-dropdown\":\"piaLigaw_select-dropdown\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVHcm91cE1vZGFsLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVHcm91cE1vZGFsLmxlc3M/NjA0ZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcIm1vZGFsXCI6XCJ5anZYUTZKMF9tb2RhbFwiLFwibmFtZVwiOlwibGVqWEN1dXBfbmFtZVwiLFwiZG90XCI6XCJkOGhaUFh5cl9kb3RcIixcInNlbGVjdC1ncm91cFwiOlwiVjVOUDYrRThfc2VsZWN0LWdyb3VwXCIsXCJzZWxlY3QtZ3JvdXAtdGl0bGVcIjpcIl85ek5wUFZQOF9zZWxlY3QtZ3JvdXAtdGl0bGVcIixcImZvb3RlclwiOlwiXzFGemFOa2Z3X2Zvb3RlclwiLFwiY2FuY2VsXCI6XCJ0Rnp3SzNwUl9jYW5jZWxcIixcImNvbmZpcm1cIjpcImVFUUxiM21VX2NvbmZpcm1cIixcInNlbGVjdC1kcm9wZG93blwiOlwicGlhTGlnYXdfc2VsZWN0LWRyb3Bkb3duXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateGroupModal.less\n");

/***/ }),

/***/ "./src/web/component/home/HomeContainer.less":
/*!***************************************************!*\
  !*** ./src/web/component/home/HomeContainer.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\":\"_3sh2aIe2_container\",\"bg_img\":\"_4vGEjwUM_bg_img\",\"main\":\"xaeIbVYZ_main\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9ob21lL0hvbWVDb250YWluZXIubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2hvbWUvSG9tZUNvbnRhaW5lci5sZXNzPzQzMmYiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJjb250YWluZXJcIjpcIl8zc2gyYUllMl9jb250YWluZXJcIixcImJnX2ltZ1wiOlwiXzR2R0Vqd1VNX2JnX2ltZ1wiLFwibWFpblwiOlwieGFlSWJWWVpfbWFpblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/home/HomeContainer.less\n");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"app_header\":\"ypMqJPrN_app_header\",\"logo\":\"nnYBdrY9_logo\",\"title\":\"kCl6oAcZ_title\",\"status\":\"OkeiRbnv_status\",\"nav\":\"cxjwIGbX_nav\",\"curr\":\"mZ+9-3iP_curr\",\"user\":\"etsDi7os_user\",\"text_btn\":\"STq4VsI2_text_btn\",\"avatar\":\"_5jpm4q0W_avatar\",\"ask\":\"_3kw76UzU_ask\",\"app_container\":\"qxU6hRZ2_app_container\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hZG1pbi9IZWFkZXJMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2FkbWluL0hlYWRlckxheW91dC5sZXNzPzNkNzQiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJhcHBfaGVhZGVyXCI6XCJ5cE1xSlByTl9hcHBfaGVhZGVyXCIsXCJsb2dvXCI6XCJubllCZHJZOV9sb2dvXCIsXCJ0aXRsZVwiOlwia0NsNm9BY1pfdGl0bGVcIixcInN0YXR1c1wiOlwiT2tlaVJibnZfc3RhdHVzXCIsXCJuYXZcIjpcImN4andJR2JYX25hdlwiLFwiY3VyclwiOlwibVorOS0zaVBfY3VyclwiLFwidXNlclwiOlwiZXRzRGk3b3NfdXNlclwiLFwidGV4dF9idG5cIjpcIlNUcTRWc0kyX3RleHRfYnRuXCIsXCJhdmF0YXJcIjpcIl81anBtNHEwV19hdmF0YXJcIixcImFza1wiOlwiXzNrdzc2VXpVX2Fza1wiLFwiYXBwX2NvbnRhaW5lclwiOlwicXhVNmhSWjJfYXBwX2NvbnRhaW5lclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/admin/HeaderLayout.less\n");

/***/ }),

/***/ "./src/web/layout/admin/LeftLayout.less":
/*!**********************************************!*\
  !*** ./src/web/layout/admin/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\":\"_57jPVadL_app_left\",\"leaf-icon-wrapper\":\"FcXr6TBd_leaf-icon-wrapper\",\"readonly\":\"kCUW2oaP_readonly\",\"empty-group\":\"QglRQQuJ_empty-group\",\"search\":\"o4j3JSDs_search\",\"group-node-hover\":\"Lwk2ENrk_group-node-hover\",\"switch-icon\":\"ShMQTMQE_switch-icon\",\"new_page_item\":\"azFMGKjY_new_page_item\",\"pop_form\":\"X5SA-wMQ_pop_form\",\"item\":\"FaK9jDG4_item\",\"item_custom\":\"Zz-pQ2Im_item_custom\",\"title\":\"AaTaraTz_title\",\"pop_group\":\"_6NgGN0W7_pop_group\",\"app_main\":\"oxYiW2YY_app_main\",\"app_main_bg\":\"VDIltrVN_app_main_bg\",\"new\":\"_1Q3+irjw_new\",\"guide\":\"KbKKHxTP_guide\",\"guide-title\":\"_3y-RZnkD_guide-title\",\"guide-tips\":\"t4mpEzJA_guide-tips\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hZG1pbi9MZWZ0TGF5b3V0Lmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9hZG1pbi9MZWZ0TGF5b3V0Lmxlc3M/NDUxYiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImFwcF9sZWZ0XCI6XCJfNTdqUFZhZExfYXBwX2xlZnRcIixcImxlYWYtaWNvbi13cmFwcGVyXCI6XCJGY1hyNlRCZF9sZWFmLWljb24td3JhcHBlclwiLFwicmVhZG9ubHlcIjpcImtDVVcyb2FQX3JlYWRvbmx5XCIsXCJlbXB0eS1ncm91cFwiOlwiUWdsUlFRdUpfZW1wdHktZ3JvdXBcIixcInNlYXJjaFwiOlwibzRqM0pTRHNfc2VhcmNoXCIsXCJncm91cC1ub2RlLWhvdmVyXCI6XCJMd2syRU5ya19ncm91cC1ub2RlLWhvdmVyXCIsXCJzd2l0Y2gtaWNvblwiOlwiU2hNUVRNUUVfc3dpdGNoLWljb25cIixcIm5ld19wYWdlX2l0ZW1cIjpcImF6Rk1HS2pZX25ld19wYWdlX2l0ZW1cIixcInBvcF9mb3JtXCI6XCJYNVNBLXdNUV9wb3BfZm9ybVwiLFwiaXRlbVwiOlwiRmFLOWpERzRfaXRlbVwiLFwiaXRlbV9jdXN0b21cIjpcIlp6LXBRMkltX2l0ZW1fY3VzdG9tXCIsXCJ0aXRsZVwiOlwiQWFUYXJhVHpfdGl0bGVcIixcInBvcF9ncm91cFwiOlwiXzZOZ0dOMFc3X3BvcF9ncm91cFwiLFwiYXBwX21haW5cIjpcIm94WWlXMllZX2FwcF9tYWluXCIsXCJhcHBfbWFpbl9iZ1wiOlwiVkRJbHRyVk5fYXBwX21haW5fYmdcIixcIm5ld1wiOlwiXzFRMytpcmp3X25ld1wiLFwiZ3VpZGVcIjpcIktiS0tIeFRQX2d1aWRlXCIsXCJndWlkZS10aXRsZVwiOlwiXzN5LVJabmtEX2d1aWRlLXRpdGxlXCIsXCJndWlkZS10aXBzXCI6XCJ0NG1wRXpKQV9ndWlkZS10aXBzXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/admin/LeftLayout.less\n");

/***/ }),

/***/ "./src/web/layout/admin/PublishSider.less":
/*!************************************************!*\
  !*** ./src/web/layout/admin/PublishSider.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\":\"GxLnVG3A_side_bar\",\"app_publish_container\":\"_2qWyNAov_app_publish_container\",\"bg\":\"N7tEabeB_bg\",\"bg_main\":\"_5HzUI0fk_bg_main\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hZG1pbi9QdWJsaXNoU2lkZXIubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2FkbWluL1B1Ymxpc2hTaWRlci5sZXNzPzRmODYiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJzaWRlX2JhclwiOlwiR3hMblZHM0Ffc2lkZV9iYXJcIixcImFwcF9wdWJsaXNoX2NvbnRhaW5lclwiOlwiXzJxV3lOQW92X2FwcF9wdWJsaXNoX2NvbnRhaW5lclwiLFwiYmdcIjpcIk43dEVhYmVCX2JnXCIsXCJiZ19tYWluXCI6XCJfNUh6VUkwZmtfYmdfbWFpblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/admin/PublishSider.less\n");

/***/ }),

/***/ "./src/web/layout/admin/SettingSider.less":
/*!************************************************!*\
  !*** ./src/web/layout/admin/SettingSider.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\":\"modXk9Ug_side_bar\",\"container\":\"YNOY81Za_container\",\"bg\":\"Z28cNgFR_bg\",\"bg_main\":\"G9m2LmFP_bg_main\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hZG1pbi9TZXR0aW5nU2lkZXIubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2FkbWluL1NldHRpbmdTaWRlci5sZXNzPzg1MmEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJzaWRlX2JhclwiOlwibW9kWGs5VWdfc2lkZV9iYXJcIixcImNvbnRhaW5lclwiOlwiWU5PWTgxWmFfY29udGFpbmVyXCIsXCJiZ1wiOlwiWjI4Y05nRlJfYmdcIixcImJnX21haW5cIjpcIkc5bTJMbUZQX2JnX21haW5cIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/layout/admin/SettingSider.less\n");

/***/ }),

/***/ "./src/web/pages/admin/home/AdminHomePage.less":
/*!*****************************************************!*\
  !*** ./src/web/pages/admin/home/AdminHomePage.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\":\"QVvtFZnP_container\",\"main\":\"IC+GJ-Lw_main\",\"actions\":\"_0ZrHVjOz_actions\",\"buttons\":\"m9udkGxJ_buttons\",\"list\":\"_61yZEqLQ_list\",\"nav\":\"QQK54Ac6_nav\",\"search\":\"kRO1PywT_search\",\"setting\":\"NOauA-Ue_setting\",\"table_list\":\"f9b8e7wW_table_list\",\"page\":\"ewA-OhM9_page\",\"side_bar\":\"RDjw5ShE_side_bar\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FkbWluL2hvbWUvQWRtaW5Ib21lUGFnZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9wYWdlcy9hZG1pbi9ob21lL0FkbWluSG9tZVBhZ2UubGVzcz85ZDM3Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiY29udGFpbmVyXCI6XCJRVnZ0RlpuUF9jb250YWluZXJcIixcIm1haW5cIjpcIklDK0dKLUx3X21haW5cIixcImFjdGlvbnNcIjpcIl8wWnJIVmpPel9hY3Rpb25zXCIsXCJidXR0b25zXCI6XCJtOXVka0d4Sl9idXR0b25zXCIsXCJsaXN0XCI6XCJfNjF5WkVxTFFfbGlzdFwiLFwibmF2XCI6XCJRUUs1NEFjNl9uYXZcIixcInNlYXJjaFwiOlwia1JPMVB5d1Rfc2VhcmNoXCIsXCJzZXR0aW5nXCI6XCJOT2F1QS1VZV9zZXR0aW5nXCIsXCJ0YWJsZV9saXN0XCI6XCJmOWI4ZTd3V190YWJsZV9saXN0XCIsXCJwYWdlXCI6XCJld0EtT2hNOV9wYWdlXCIsXCJzaWRlX2JhclwiOlwiUkRqdzVTaEVfc2lkZV9iYXJcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/pages/admin/home/AdminHomePage.less\n");

/***/ }),

/***/ "./src/web/pages/admin/publish/AdminPublishPage.less":
/*!***********************************************************!*\
  !*** ./src/web/pages/admin/publish/AdminPublishPage.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\"] = ({\"main\":\"QVhpavm+_main\",\"item\":\"hbR45nMs_item\",\"title\":\"_14YFPr1s_title\",\"gray\":\"_3aSv-QkL_gray\",\"inputs\":\"cZrbCeeQ_inputs\",\"mr12\":\"Uxj-SiRq_mr12\",\"mb8\":\"DtiTqmxw_mb8\",\"label\":\"T3zhwyTs_label\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FkbWluL3B1Ymxpc2gvQWRtaW5QdWJsaXNoUGFnZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9wYWdlcy9hZG1pbi9wdWJsaXNoL0FkbWluUHVibGlzaFBhZ2UubGVzcz80NTJhIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibWFpblwiOlwiUVZocGF2bStfbWFpblwiLFwiaXRlbVwiOlwiaGJSNDVuTXNfaXRlbVwiLFwidGl0bGVcIjpcIl8xNFlGUHIxc190aXRsZVwiLFwiZ3JheVwiOlwiXzNhU3YtUWtMX2dyYXlcIixcImlucHV0c1wiOlwiY1pyYkNlZVFfaW5wdXRzXCIsXCJtcjEyXCI6XCJVeGotU2lScV9tcjEyXCIsXCJtYjhcIjpcIkR0aVRxbXh3X21iOFwiLFwibGFiZWxcIjpcIlQzemh3eVRzX2xhYmVsXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/pages/admin/publish/AdminPublishPage.less\n");

/***/ }),

/***/ "./src/web/pages/admin/publish/ShareManagePage.less":
/*!**********************************************************!*\
  !*** ./src/web/pages/admin/publish/ShareManagePage.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\"] = ({\"share_manage\":\"azVaaxFd_share_manage\",\"page\":\"tUr50+YU_page\",\"page_total\":\"E73n8W2n_page_total\",\"sharemodal\":\"VXArd+q7_sharemodal\",\"sharemodal_body\":\"dXcZFzAL_sharemodal_body\",\"sharemodal_footer\":\"aoraBhBh_sharemodal_footer\",\"sharemodal_footer_action_btn\":\"ka+hGbbh_sharemodal_footer_action_btn\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FkbWluL3B1Ymxpc2gvU2hhcmVNYW5hZ2VQYWdlLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL3BhZ2VzL2FkbWluL3B1Ymxpc2gvU2hhcmVNYW5hZ2VQYWdlLmxlc3M/MTYzMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInNoYXJlX21hbmFnZVwiOlwiYXpWYWF4RmRfc2hhcmVfbWFuYWdlXCIsXCJwYWdlXCI6XCJ0VXI1MCtZVV9wYWdlXCIsXCJwYWdlX3RvdGFsXCI6XCJFNzNuOFcybl9wYWdlX3RvdGFsXCIsXCJzaGFyZW1vZGFsXCI6XCJWWEFyZCtxN19zaGFyZW1vZGFsXCIsXCJzaGFyZW1vZGFsX2JvZHlcIjpcImRYY1pGekFMX3NoYXJlbW9kYWxfYm9keVwiLFwic2hhcmVtb2RhbF9mb290ZXJcIjpcImFvcmFCaEJoX3NoYXJlbW9kYWxfZm9vdGVyXCIsXCJzaGFyZW1vZGFsX2Zvb3Rlcl9hY3Rpb25fYnRuXCI6XCJrYStoR2JiaF9zaGFyZW1vZGFsX2Zvb3Rlcl9hY3Rpb25fYnRuXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/pages/admin/publish/ShareManagePage.less\n");

/***/ }),

/***/ "./src/web/pages/admin/setting/AdminSettingPage.less":
/*!***********************************************************!*\
  !*** ./src/web/pages/admin/setting/AdminSettingPage.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\"] = ({\"main\":\"Yj3hJT0A_main\",\"mt24\":\"HZKuTcJT_mt24\",\"warnning\":\"_7845CF9Q_warnning\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FkbWluL3NldHRpbmcvQWRtaW5TZXR0aW5nUGFnZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9wYWdlcy9hZG1pbi9zZXR0aW5nL0FkbWluU2V0dGluZ1BhZ2UubGVzcz83YjlmIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibWFpblwiOlwiWWozaEpUMEFfbWFpblwiLFwibXQyNFwiOlwiSFpLdVRjSlRfbXQyNFwiLFwid2Fybm5pbmdcIjpcIl83ODQ1Q0Y5UV93YXJubmluZ1wifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/pages/admin/setting/AdminSettingPage.less\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.createFlow = createFlow;\nexports.deleteFlow = deleteFlow;\nexports.getFlowData = getFlowData;\nexports.getFlowList = getFlowList;\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 _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 _index = __webpack_require__(/*! ../ajax/index */ \"./src/ajax/index.js\");\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-08 09:19:10\n * @LastEditTime: 2023-08-17 17:29:51\n * @Last Modified by: jianhang_he\n */\n/**\n * 创建flow\n * @param {*} id 应用ID(appId)\n * @param {*} params 应用信息({ \"name\": \"问卷题5\" })\n * @returns Promise\n */\nfunction createFlow(_x, _x2) {\n  return _createFlow.apply(this, arguments);\n}\n/**\n * @description 获取流程相关的信息（包括所在的应用）\n * @param {appId: string, targetFormId: string} appId 应用id targetFormId 实际表单id\n * @returns promise\n */\nfunction _createFlow() {\n  _createFlow = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(id, params) {\n    var url, data, res;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          url = \"nocode/v2/\".concat(encodeURIComponent(id), \"/wfmodel\");\n          data = {\n            data: params\n          };\n          _context.next = 4;\n          return (0, _index.post)(url, data);\n        case 4:\n          res = _context.sent;\n          return _context.abrupt(\"return\", res);\n        case 6:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  }));\n  return _createFlow.apply(this, arguments);\n}\nfunction getFlowData(_x3) {\n  return _getFlowData.apply(this, arguments);\n} // nocode_sys/wf_manage/process_menu?appId=1594934267660669952\n/**\n * 获取app下的form列表数据\n * @param {Number} id app id\n * @returns\n */\nfunction _getFlowData() {\n  _getFlowData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref) {\n    var _context2;\n    var appId, flowId, url, res;\n    return _regenerator.default.wrap(function _callee2$(_context3) {\n      while (1) switch (_context3.prev = _context3.next) {\n        case 0:\n          appId = _ref.appId, flowId = _ref.flowId;\n          url = (0, _concat.default)(_context2 = \"nocode/v2/\".concat(appId, \"/wfmodel/\")).call(_context2, flowId);\n          _context3.next = 4;\n          return (0, _index.get)(url, {});\n        case 4:\n          res = _context3.sent;\n          return _context3.abrupt(\"return\", res);\n        case 6:\n        case \"end\":\n          return _context3.stop();\n      }\n    }, _callee2);\n  }));\n  return _getFlowData.apply(this, arguments);\n}\nfunction getFlowList(_x4, _x5) {\n  return _getFlowList.apply(this, arguments);\n}\n/**\n * /ierp/nocode/v2/{appid}/wfmodel/delete/{modelId}\n * 按flowId删除单条记录\n * @param {Number} id app id\n * @returns\n */\nfunction _getFlowList() {\n  _getFlowList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(appId, params) {\n    var url, res;\n    return _regenerator.default.wrap(function _callee3$(_context4) {\n      while (1) switch (_context4.prev = _context4.next) {\n        case 0:\n          url = \"nocode/v2/nocode_sys/wf_manage/process_menu?appId=\".concat(appId);\n          _context4.next = 3;\n          return (0, _index.get)(url, params);\n        case 3:\n          res = _context4.sent;\n          return _context4.abrupt(\"return\", res);\n        case 5:\n        case \"end\":\n          return _context4.stop();\n      }\n    }, _callee3);\n  }));\n  return _getFlowList.apply(this, arguments);\n}\nfunction deleteFlow(_x6, _x7, _x8) {\n  return _deleteFlow.apply(this, arguments);\n}\nfunction _deleteFlow() {\n  _deleteFlow = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(appId, flowId, params) {\n    var _context5;\n    var url, res;\n    return _regenerator.default.wrap(function _callee4$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          url = (0, _concat.default)(_context5 = \"nocode/v2/\".concat(appId, \"/wfmodel/delete/\")).call(_context5, flowId);\n          _context6.next = 3;\n          return (0, _index.post)(url, params);\n        case 3:\n          res = _context6.sent;\n          return _context6.abrupt(\"return\", res);\n        case 5:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee4);\n  }));\n  return _deleteFlow.apply(this, arguments);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWN0aW9ucy9mbG93LnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBT0E7QUFQQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUxBO0FBTUE7QUFBQTtBQU9BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUFBO0FBUEE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFPQTtBQUFBO0FBT0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBQUE7QUFQQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFRQTtBQUFBO0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTEE7QUFBQTtBQU5BO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBUUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9hY3Rpb25zL2Zsb3cudHM/ZGQ3NyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTAzLTA4IDA5OjE5OjEwXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTA4LTE3IDE3OjI5OjUxXG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IHsgZ2V0LCBwb3N0IH0gZnJvbSAnLi4vYWpheC9pbmRleCdcbi8qKlxuICog5Yib5bu6Zmxvd1xuICogQHBhcmFtIHsqfSBpZCDlupTnlKhJRChhcHBJZClcbiAqIEBwYXJhbSB7Kn0gcGFyYW1zIOW6lOeUqOS/oeaBryh7IFwibmFtZVwiOiBcIumXruWNt+mimDVcIiB9KVxuICogQHJldHVybnMgUHJvbWlzZVxuICovXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gY3JlYXRlRmxvdyAoaWQ6IHN0cmluZyB8IG51bWJlciwgcGFyYW1zPzogYW55KSB7XG4gIGNvbnN0IHVybCA9IGBub2NvZGUvdjIvJHtlbmNvZGVVUklDb21wb25lbnQoaWQpfS93Zm1vZGVsYFxuICBjb25zdCBkYXRhID0geyBkYXRhOiBwYXJhbXMgfVxuICBjb25zdCByZXMgPSBhd2FpdCBwb3N0KHVybCwgZGF0YSlcbiAgcmV0dXJuIHJlc1xufVxuXG4vKipcbiAqIEBkZXNjcmlwdGlvbiDojrflj5bmtYHnqIvnm7jlhbPnmoTkv6Hmga/vvIjljIXmi6zmiYDlnKjnmoTlupTnlKjvvIlcbiAqIEBwYXJhbSB7YXBwSWQ6IHN0cmluZywgdGFyZ2V0Rm9ybUlkOiBzdHJpbmd9IGFwcElkIOW6lOeUqGlkIHRhcmdldEZvcm1JZCDlrp7pmYXooajljZVpZFxuICogQHJldHVybnMgcHJvbWlzZVxuICovXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gZ2V0Rmxvd0RhdGEgKHsgYXBwSWQsIGZsb3dJZCB9KSB7XG4gIGNvbnN0IHVybCA9IGBub2NvZGUvdjIvJHthcHBJZH0vd2Ztb2RlbC8ke2Zsb3dJZH1gXG4gIGNvbnN0IHJlcyA9IGF3YWl0IGdldCh1cmwsIHt9KVxuICByZXR1cm4gcmVzXG59XG5cbi8vIG5vY29kZV9zeXMvd2ZfbWFuYWdlL3Byb2Nlc3NfbWVudT9hcHBJZD0xNTk0OTM0MjY3NjYwNjY5OTUyXG4vKipcbiAqIOiOt+WPlmFwcOS4i+eahGZvcm3liJfooajmlbDmja5cbiAqIEBwYXJhbSB7TnVtYmVyfSBpZCBhcHAgaWRcbiAqIEByZXR1cm5zXG4gKi9cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRGbG93TGlzdCAoYXBwSWQ6IHN0cmluZywgcGFyYW1zPzogYW55KSB7XG4gIGNvbnN0IHVybCA9IGBub2NvZGUvdjIvbm9jb2RlX3N5cy93Zl9tYW5hZ2UvcHJvY2Vzc19tZW51P2FwcElkPSR7YXBwSWR9YFxuICBjb25zdCByZXMgPSBhd2FpdCBnZXQodXJsLCBwYXJhbXMpXG4gIHJldHVybiByZXNcbn1cblxuLyoqXG4gKiAvaWVycC9ub2NvZGUvdjIve2FwcGlkfS93Zm1vZGVsL2RlbGV0ZS97bW9kZWxJZH1cbiAqIOaMiWZsb3dJZOWIoOmZpOWNleadoeiusOW9lVxuICogQHBhcmFtIHtOdW1iZXJ9IGlkIGFwcCBpZFxuICogQHJldHVybnNcbiAqL1xuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGRlbGV0ZUZsb3cgKGFwcElkOiBzdHJpbmcsIGZsb3dJZDogc3RyaW5nLCBwYXJhbXM/OiBhbnkpIHtcbiAgY29uc3QgdXJsID0gYG5vY29kZS92Mi8ke2FwcElkfS93Zm1vZGVsL2RlbGV0ZS8ke2Zsb3dJZH1gXG4gIGNvbnN0IHJlcyA9IGF3YWl0IHBvc3QodXJsLCBwYXJhbXMpXG4gIHJldHVybiByZXNcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/actions/flow.ts\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.getShareListData = exports.doRevokeShare = 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 _index = __webpack_require__(/*! ../ajax/index */ \"./src/ajax/index.js\");\n/*\n * @Description:\n * @Author: xiaoman_xie\n * @Date: 2023-08-31 15:20:19\n * @LastEditTime: 2023-09-01 16:31:04\n * @Last Modified by: xiaoman_xie\n */\n\n/* 免登分享列表 */\nvar getShareListData = exports.getShareListData = /*#__PURE__*/function () {\n  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(params) {\n    var appId, pageNo, pageSize, pageData, url, res;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          appId = params.appId, pageNo = params.pageNo, pageSize = params.pageSize;\n          pageData = {\n            page_no: pageNo,\n            page_size: pageSize\n          };\n          url = \"nocode/v2/nocode_sys/common/share/list/\".concat(appId);\n          _context.next = 5;\n          return (0, _index.get)(url, pageData);\n        case 5:\n          res = _context.sent;\n          return _context.abrupt(\"return\", res);\n        case 7:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  }));\n  return function getShareListData(_x) {\n    return _ref.apply(this, arguments);\n  };\n}();\n\n/* 取消分享 */\nvar doRevokeShare = exports.doRevokeShare = /*#__PURE__*/function () {\n  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(id) {\n    var url, res;\n    return _regenerator.default.wrap(function _callee2$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          url = \"nocode/v2/nocode_sys/common/share/revoke/\".concat(id);\n          _context2.next = 3;\n          return (0, _index.post)(url);\n        case 3:\n          res = _context2.sent;\n          return _context2.abrupt(\"return\", res);\n        case 5:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee2);\n  }));\n  return function doRevokeShare(_x2) {\n    return _ref2.apply(this, arguments);\n  };\n}();//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWN0aW9ucy9wdWJsaXNoLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFPQTtBQVBBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUlBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBTkE7QUFBQTtBQUFBOztBQVFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFKQTtBQUFBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvYWN0aW9ucy9wdWJsaXNoLnRzPzg1MWIiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IHhpYW9tYW5feGllXG4gKiBARGF0ZTogMjAyMy0wOC0zMSAxNToyMDoxOVxuICogQExhc3RFZGl0VGltZTogMjAyMy0wOS0wMSAxNjozMTowNFxuICogQExhc3QgTW9kaWZpZWQgYnk6IHhpYW9tYW5feGllXG4gKi9cbmltcG9ydCB7IGdldCwgcG9zdCB9IGZyb20gJy4uL2FqYXgvaW5kZXgnXG5pbXBvcnQgeyBDb25maWdBcGkgfSBmcm9tICdAL3V0aWxzL3NoYXJlTWFuYWdlVXRpbHMnXG5cbi8qIOWFjeeZu+WIhuS6q+WIl+ihqCAqL1xuZXhwb3J0IGNvbnN0IGdldFNoYXJlTGlzdERhdGEgPSBhc3luYyAocGFyYW1zOiBDb25maWdBcGkpID0+IHtcbiAgY29uc3QgeyBhcHBJZCwgcGFnZU5vLCBwYWdlU2l6ZSB9ID0gcGFyYW1zXG4gIGNvbnN0IHBhZ2VEYXRhID0geyBwYWdlX25vOiBwYWdlTm8sIHBhZ2Vfc2l6ZTogcGFnZVNpemUgfVxuICBjb25zdCB1cmwgPSBgbm9jb2RlL3YyL25vY29kZV9zeXMvY29tbW9uL3NoYXJlL2xpc3QvJHthcHBJZH1gXG4gIGNvbnN0IHJlcyA9IGF3YWl0IGdldCh1cmwsIHBhZ2VEYXRhKVxuICByZXR1cm4gcmVzXG59XG5cbi8qIOWPlua2iOWIhuS6qyAqL1xuZXhwb3J0IGNvbnN0IGRvUmV2b2tlU2hhcmUgPSBhc3luYyAoaWQ6IHN0cmluZykgPT4ge1xuICBjb25zdCB1cmwgPSBgbm9jb2RlL3YyL25vY29kZV9zeXMvY29tbW9uL3NoYXJlL3Jldm9rZS8ke2lkfWBcbiAgY29uc3QgcmVzID0gYXdhaXQgcG9zdCh1cmwpXG4gIHJldHVybiByZXNcbn1cbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/actions/publish.ts\n");

/***/ }),

/***/ "./src/hooks/useMenuGroup.js":
/*!***********************************!*\
  !*** ./src/hooks/useMenuGroup.js ***!
  \***********************************/
/***/ (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.useCreateMenuGroup = exports[\"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 _admin = __webpack_require__(/*! @/actions/admin */ \"./src/actions/admin.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; }\nvar useCount = function useCount() {\n  var _useState = (0, _react.useState)(0),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    count = _useState2[0],\n    setCount = _useState2[1];\n  var addCount = (0, _react.useCallback)(function () {\n    setCount(count + 1);\n  }, [count]);\n  return [count, addCount];\n};\nvar _default = exports[\"default\"] = useCount;\nvar useCreateMenuGroup = exports.useCreateMenuGroup = function useCreateMenuGroup(appId) {\n  var createGroup = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(name, parentId, seq) {\n      var _res$result$;\n      var params, res, id;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            params = {\n              // id: '',\n              // formId,\n              name: name || '新建分组',\n              parentId: parentId,\n              seq: seq\n            }; // 创建菜单\n            _context.next = 3;\n            return (0, _admin.createMenu)(appId, [params]);\n          case 3:\n            res = _context.sent;\n            id = res === null || res === void 0 || (_res$result$ = res.result[0]) === null || _res$result$ === void 0 ? void 0 : _res$result$.id;\n            return _context.abrupt(\"return\", {\n              id: id,\n              name: name,\n              parentId: parentId || appId\n            });\n          case 6:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee);\n    }));\n    return function (_x, _x2, _x3) {\n      return _ref.apply(this, arguments);\n    };\n  }(), [appId]);\n  var updateGroup = (0, _react.useCallback)(function (params) {\n    (0, _admin.createMenu)(appId, params).then(function (res) {\n      // navigate(`/${appId}/designer/${number}`)\n    });\n  }, [appId]);\n  return [createGroup, updateGroup];\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlTWVudUdyb3VwLmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBSUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBRUE7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL2hvb2tzL3VzZU1lbnVHcm91cC5qcz8xMWI3Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VDYWxsYmFjaywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IGNyZWF0ZU1lbnUgfSBmcm9tICdAL2FjdGlvbnMvYWRtaW4nXG5jb25zdCB1c2VDb3VudCA9ICgpID0+IHtcbiAgY29uc3QgW2NvdW50LCBzZXRDb3VudF0gPSB1c2VTdGF0ZSgwKVxuICBjb25zdCBhZGRDb3VudCA9IHVzZUNhbGxiYWNrKCgpID0+IHtcbiAgICBzZXRDb3VudChjb3VudCArIDEpXG4gIH0sIFtjb3VudF0pXG4gIHJldHVybiBbY291bnQsIGFkZENvdW50XVxufVxuXG5leHBvcnQgZGVmYXVsdCB1c2VDb3VudFxuXG5leHBvcnQgY29uc3QgdXNlQ3JlYXRlTWVudUdyb3VwID0gKGFwcElkKSA9PiB7XG4gIGNvbnN0IGNyZWF0ZUdyb3VwID0gdXNlQ2FsbGJhY2soYXN5bmMgKG5hbWUsIHBhcmVudElkLCBzZXEpID0+IHtcbiAgICBjb25zdCBwYXJhbXMgPSB7XG4gICAgICAvLyBpZDogJycsXG4gICAgICAvLyBmb3JtSWQsXG4gICAgICBuYW1lOiBuYW1lIHx8ICfmlrDlu7rliIbnu4QnLFxuICAgICAgcGFyZW50SWQsXG4gICAgICBzZXFcbiAgICB9XG4gICAgLy8g5Yib5bu66I+c5Y2VXG4gICAgY29uc3QgcmVzID0gYXdhaXQgY3JlYXRlTWVudShhcHBJZCwgW3BhcmFtc10pXG4gICAgY29uc3QgaWQgPSByZXM/LnJlc3VsdFswXT8uaWRcbiAgICByZXR1cm4geyBpZCwgbmFtZSwgcGFyZW50SWQ6IHBhcmVudElkIHx8IGFwcElkIH1cbiAgICAvLyBjcmVhdGVNZW51KClcbiAgfSwgW2FwcElkXSlcbiAgY29uc3QgdXBkYXRlR3JvdXAgPSB1c2VDYWxsYmFjaygocGFyYW1zKSA9PiB7XG4gICAgY3JlYXRlTWVudShhcHBJZCwgcGFyYW1zKS50aGVuKHJlcyA9PiB7XG4gICAgICAvLyBuYXZpZ2F0ZShgLyR7YXBwSWR9L2Rlc2lnbmVyLyR7bnVtYmVyfWApXG4gICAgfSlcbiAgfSwgW2FwcElkXSlcbiAgcmV0dXJuIFtjcmVhdGVHcm91cCwgdXBkYXRlR3JvdXBdXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/hooks/useMenuGroup.js\n");

/***/ }),

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

eval("\n\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.loadFormListWithParams = exports.handleCancelShare = exports.getInitFormDataList = exports.getFullBackgroudImg = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\"));\nvar _publish = __webpack_require__(/*! @/actions/publish */ \"./src/actions/publish.ts\");\nvar _ = __webpack_require__(/*! . */ \"./src/utils/index.tsx\");\nvar _excluded = [\"rows\", \"extra\"];\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: xiaoman_xie\n * @Date: 2023-08-31 15:20:19\n * @LastEditTime: 2023-10-07 14:59:44\n * @Last Modified by: xiaoman_xie\n */\nvar unvalidValue = {\n  bgc: \"#E5E5E5\",\n  name: {\n    zh_CN: \"已失效\"\n  },\n  value: false\n};\nvar getValidValue = function getValidValue(validTime) {\n  return {\n    bgc: \" #C7E5FF\",\n    name: {\n      zh_CN: \"\".concat(validTime, \"\\u5929\\u540E\\u8FC7\\u671F\")\n    },\n    value: true\n  };\n};\n\n// 转换状态值\nvar handleStatusValue = function handleStatusValue(data) {\n  return (0, _map.default)(data).call(data, function (item) {\n    var expireTime = item.expireTime,\n      valid = item.valid;\n    var validTime = (0, _.getDayByMillisecond)((0, _.getTimeDiff)(expireTime));\n    var value = valid ? getValidValue(validTime) : unvalidValue;\n    return _objectSpread(_objectSpread({}, item), {}, {\n      status: [value]\n    });\n  });\n};\nvar loadFormListWithParams = exports.loadFormListWithParams = /*#__PURE__*/function () {\n  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(config) {\n    var appId, pageNo, pageSize, listData, data, extra, pageData, dataSource;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          appId = config.appId, pageNo = config.pageNo, pageSize = config.pageSize;\n          _context.next = 3;\n          return (0, _publish.getShareListData)({\n            appId: appId,\n            pageNo: pageNo,\n            pageSize: pageSize\n          });\n        case 3:\n          listData = _context.sent;\n          data = listData.rows, extra = listData.extra, pageData = (0, _objectWithoutProperties2.default)(listData, _excluded);\n          dataSource = handleStatusValue(data);\n          return _context.abrupt(\"return\", _objectSpread({\n            dataSource: dataSource\n          }, pageData));\n        case 7:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  }));\n  return function loadFormListWithParams(_x) {\n    return _ref.apply(this, arguments);\n  };\n}();\n\n// 免登分享管理列表-列配置信息写死\nvar listItemConfig = [{\n  name: '免登分享标题',\n  number: 'title',\n  type: 'nocodetextfield',\n  display: true\n}, {\n  name: '分享人',\n  number: 'creator',\n  type: 'nocodetextfield',\n  display: true\n}, {\n  name: '分享时间',\n  number: 'shareTime',\n  type: 'nocodetextfield',\n  display: true\n}, {\n  name: '状态',\n  number: 'status',\n  type: 'nocodeselectitemfield',\n  items: [{\n    bgc: \" #E0EFFF\",\n    name: {\n      zh_CN: \"\\u5929\\u540E\\u8FC7\\u671F\"\n    },\n    value: true\n  }, {\n    bgc: \"#F5F5F5\",\n    name: {\n      zh_CN: \"已失效\"\n    },\n    value: false\n  }],\n  display: true\n}];\nvar getInitFormDataList = exports.getInitFormDataList = /*#__PURE__*/function () {\n  var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(config) {\n    var appId, data;\n    return _regenerator.default.wrap(function _callee2$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          appId = config.appId;\n          _context2.next = 3;\n          return loadFormListWithParams({\n            appId: appId,\n            pageNo: 1,\n            pageSize: 10\n          });\n        case 3:\n          data = _context2.sent;\n          return _context2.abrupt(\"return\", _objectSpread(_objectSpread({}, data), {}, {\n            listItemConfig: listItemConfig\n          }));\n        case 5:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee2);\n  }));\n  return function getInitFormDataList(_x2) {\n    return _ref2.apply(this, arguments);\n  };\n}();\nvar handleCancelShare = exports.handleCancelShare = function handleCancelShare(id, data) {\n  return (0, _map.default)(data).call(data, function (item) {\n    if (item.id === id) {\n      item.status = unvalidValue;\n    }\n    return item;\n  });\n};\nvar getFullBackgroudImg = exports.getFullBackgroudImg = function getFullBackgroudImg(backgroundImg) {\n  return backgroundImg ? (0, _.getFullUrl)((0, _slice.default)(backgroundImg).call(backgroundImg, 1, backgroundImg.length)) : '';\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/utils/shareManageUtils.ts\n");

/***/ }),

/***/ "./src/web/component/admin/CreateForm.tsx":
/*!************************************************!*\
  !*** ./src/web/component/admin/CreateForm.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.createMenuInfo = exports.CREAT_BY_TEMPLATE = exports.CREAT_BY_IMPORT_EXCEL = exports.CREAT_BY_BLANK = exports.CREATE_WAY_LIST = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.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 _CreateFormByImport = _interopRequireDefault(__webpack_require__(/*! ./CreateFormByImport */ \"./src/web/component/admin/CreateFormByImport/index.tsx\"));\nvar _CreateFormByTemplate = _interopRequireDefault(__webpack_require__(/*! ./CreateFormByTemplate */ \"./src/web/component/admin/CreateFormByTemplate.jsx\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _admin = __webpack_require__(/*! @/actions/admin */ \"./src/actions/admin.js\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _create_by_blank = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/create_by_blank.png */ \"./assets/img/create_by_blank.png\"));\nvar _create_by_template = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/create_by_template.png */ \"./assets/img/create_by_template.png\"));\nvar _create_by_import_excel = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/create_by_import_excel.png */ \"./assets/img/create_by_import_excel.png\"));\nvar _CreateForm = _interopRequireDefault(__webpack_require__(/*! ./CreateForm.less */ \"./src/web/component/admin/CreateForm.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: 2023-03-02 15:43:35\n * @LastEditTime: 2024-08-02 11:11:11\n * @Last Modified by: jianhang_he\n */\nvar CREAT_BY_BLANK = exports.CREAT_BY_BLANK = 'createByBlack'; // 从空白表单新建\nvar CREAT_BY_TEMPLATE = exports.CREAT_BY_TEMPLATE = 'createByTemplate'; // 从模版新建\nvar CREAT_BY_IMPORT_EXCEL = exports.CREAT_BY_IMPORT_EXCEL = 'createByImportExcel'; // 导入Excel新建\n\nvar CREATE_WAY_LIST = exports.CREATE_WAY_LIST = [{\n  key: CREAT_BY_BLANK,\n  title: '从空白表单新建',\n  desc: '基于空白画布从零开始搭建',\n  img: _create_by_blank.default,\n  useActionName: 'sa_fm_cbf'\n}, {\n  key: CREAT_BY_TEMPLATE,\n  title: '从模板新建',\n  desc: '选择合适的模板开始搭建',\n  img: _create_by_template.default,\n  useActionName: 'sa_fm_ctf'\n}, {\n  key: CREAT_BY_IMPORT_EXCEL,\n  title: '导入Excel新建',\n  desc: '导入数据表格开始搭建',\n  img: _create_by_import_excel.default,\n  useActionName: 'sa_fm_cbe'\n}];\nvar generateRandomIndex = function generateRandomIndex(data) {\n  var length = (data === null || data === void 0 ? void 0 : data.length) || 0;\n  return Math.floor(Math.random() * length);\n};\n\n// 创建表单菜单相关的信息\nvar createMenuInfo = exports.createMenuInfo = function createMenuInfo(info) {\n  return _objectSpread({\n    parentId: '',\n    // 默认只在根目录添加新表单\n    image: _defaultIcon.DEFAULT_FORM_IMAGE\n  }, info);\n};\n\n/**\n * 选择创建表单方式 - Modal UI\n * @param {{visible: Boolean, setVisible: Function}} props\n * @param visible 显示隐藏\n * @param setVisible 显示隐藏函数\n * @returns\n */\nvar CreateForm = function CreateForm(_ref) {\n  var className = _ref.className,\n    data = _ref.data,\n    onClose = _ref.onClose;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId; // 应用ID\n  var navigate = (0, _useNocodeNavigate.default)(); // 导航\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    svgData = _useState2[0],\n    setSvgData = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    importModalVisible = _useState4[0],\n    setImportModalVisible = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    tempModalVisible = _useState6[0],\n    setTempModalVisible = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    creating = _useState8[0],\n    setCreating = _useState8[1];\n  var createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context;\n    return (0, _concat.default)(_context = \"\".concat(appId || '', \"||\")).call(_context, actionName);\n  }, [appId]);\n\n  // 表单菜单信息\n  var formMenuInfo = (0, _react.useMemo)(function () {\n    return createMenuInfo({\n      seq: data.length\n    });\n  }, [data]);\n  var generateRandomIcon = (0, _react.useCallback)(function () {\n    var _svgData$colors$color, _svgData$svgs$iconInd, _context2;\n    var colorIndex = generateRandomIndex(svgData.colors);\n    var iconIndex = generateRandomIndex(svgData.svgs);\n    var color = encodeURIComponent(svgData === null || svgData === void 0 || (_svgData$colors$color = svgData.colors[colorIndex]) === null || _svgData$colors$color === void 0 ? void 0 : _svgData$colors$color.value);\n    var icon = (svgData === null || svgData === void 0 || (_svgData$svgs$iconInd = svgData.svgs[iconIndex]) === null || _svgData$svgs$iconInd === void 0 ? void 0 : _svgData$svgs$iconInd.label) || '';\n    return (0, _concat.default)(_context2 = \"nocode/v2/nocode_sys/common/svgs/create_svg_line?color=\".concat(color, \"&svg=\")).call(_context2, icon);\n  }, [svgData]);\n\n  /**\n   * 创建空白表单，成功之后需要创建菜单\n   */\n  var onCreateBlank = (0, _react.useCallback)(function () {\n    // 拦截快速点击导致创建多个表单（防抖没用）\n    if (creating) return;\n    setCreating(true);\n    var closeMessage = (0, _utils.showLoadingMessage)('正在创建表单，请稍候...');\n    onClose === null || onClose === void 0 || onClose();\n    var image = generateRandomIcon();\n    // 创建表单\n    var params = [{\n      name: '未命名表单',\n      menuInfo: _objectSpread(_objectSpread({}, formMenuInfo), {}, {\n        image: image\n      })\n    }];\n    (0, _admin.createForm)(appId, params).then(function (res) {\n      var _context3;\n      var number = res.result[0].number;\n      navigate((0, _concat.default)(_context3 = \"/\".concat(appId, \"/designer/\")).call(_context3, number));\n      closeMessage({\n        type: 'success',\n        content: '创建表单成功'\n      });\n      setCreating(false);\n    }).catch(function (e) {\n      var message = e.message;\n      closeMessage({\n        type: 'error',\n        content: message\n      });\n    });\n  }, [data, appId, generateRandomIcon, creating]);\n\n  // const debounceOnCreateBlank = useDebounce(onCreateBlank)\n\n  // 显示模板选择弹窗\n  var showTemplatesModal = (0, _react.useCallback)(function () {\n    setTempModalVisible(true);\n  }, [setTempModalVisible]);\n\n  // 基于模板创建表单\n  var onCreateFormByTemplate = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref2) {\n      var templateId, icon, closeMessage, _context4, params, res, number, message;\n      return _regenerator.default.wrap(function _callee$(_context5) {\n        while (1) switch (_context5.prev = _context5.next) {\n          case 0:\n            templateId = _ref2.id, icon = _ref2.icon;\n            closeMessage = (0, _utils.showLoadingMessage)('正在创建表单，请稍候...');\n            onClose === null || onClose === void 0 || onClose();\n            _context5.prev = 3;\n            params = [{\n              name: '未命名表单',\n              templateId: templateId,\n              menuInfo: _objectSpread(_objectSpread({}, formMenuInfo), {}, {\n                image: icon\n              })\n            }];\n            _context5.next = 7;\n            return (0, _admin.createForm)(appId, params);\n          case 7:\n            res = _context5.sent;\n            number = res.result[0].number;\n            closeMessage({\n              type: 'success',\n              content: '创建表单成功'\n            });\n            navigate((0, _concat.default)(_context4 = \"/\".concat(appId, \"/designer/\")).call(_context4, number));\n            _context5.next = 18;\n            break;\n          case 13:\n            _context5.prev = 13;\n            _context5.t0 = _context5[\"catch\"](3);\n            console.log(_context5.t0);\n            message = _context5.t0.message;\n            closeMessage({\n              type: 'error',\n              content: message\n            });\n          case 18:\n          case \"end\":\n            return _context5.stop();\n        }\n      }, _callee, null, [[3, 13]]);\n    }));\n    return function (_x) {\n      return _ref3.apply(this, arguments);\n    };\n  }(), [data, appId, generateRandomIcon]);\n\n  // 导入Excel创建\n  var onClickCreateFormByImport = (0, _react.useCallback)(function () {\n    setImportModalVisible(true);\n  }, []);\n\n  // 关闭导入弹窗\n  var handleCloseImportModal = (0, _react.useCallback)(function () {\n    setImportModalVisible(false);\n  }, []);\n\n  // 创建方式点击\n  var handleItemClick = function handleItemClick(key) {\n    switch (key) {\n      case CREAT_BY_BLANK:\n        // 从空白表单新建\n        onCreateBlank();\n        break;\n      case CREAT_BY_TEMPLATE:\n        // 从模板新建\n        showTemplatesModal();\n        break;\n      case CREAT_BY_IMPORT_EXCEL:\n        // 导入excel新建\n        onClickCreateFormByImport();\n        // 需要关闭当前弹窗\n        onClose === null || onClose === void 0 || onClose();\n        break;\n      default:\n        break;\n    }\n  };\n  var fetchSvgData = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n      var _yield$getLineIconAnd, _yield$getLineIconAnd2, row;\n      return _regenerator.default.wrap(function _callee2$(_context6) {\n        while (1) switch (_context6.prev = _context6.next) {\n          case 0:\n            _context6.prev = 0;\n            _context6.next = 3;\n            return (0, _home.getLineIconAndColor)();\n          case 3:\n            _yield$getLineIconAnd = _context6.sent;\n            _yield$getLineIconAnd2 = _yield$getLineIconAnd.row;\n            row = _yield$getLineIconAnd2 === void 0 ? {} : _yield$getLineIconAnd2;\n            setSvgData(row);\n            _context6.next = 12;\n            break;\n          case 9:\n            _context6.prev = 9;\n            _context6.t0 = _context6[\"catch\"](0);\n            console.log(_context6.t0);\n          case 12:\n          case \"end\":\n            return _context6.stop();\n        }\n      }, _callee2, null, [[0, 9]]);\n    }));\n    return function fetchSvgData() {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  (0, _react.useEffect)(function () {\n    fetchSvgData();\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(className, _CreateForm.default.create_form)\n  }, (0, _map.default)(CREATE_WAY_LIST).call(CREATE_WAY_LIST, function (_ref5) {\n    var key = _ref5.key,\n      img = _ref5.img,\n      title = _ref5.title,\n      desc = _ref5.desc,\n      useActionName = _ref5.useActionName;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      key: key,\n      className: _CreateForm.default.item,\n      onClick: function onClick() {\n        return handleItemClick(key);\n      },\n      \"data-nc-action\": createUiActionDataStr(useActionName)\n    }, /*#__PURE__*/_react.default.createElement(\"img\", {\n      src: img,\n      alt: \"\"\n    }), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _CreateForm.default.title\n    }, title), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _CreateForm.default.des\n    }, desc), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _CreateForm.default.blue\n    }, \"\\u70B9\\u51FB\\u65B0\\u5EFA\", /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"jinru\"\n    })));\n  })), /*#__PURE__*/_react.default.createElement(_CreateFormByImport.default, {\n    visible: importModalVisible,\n    onClose: handleCloseImportModal,\n    formMenuInfo: formMenuInfo,\n    appId: appId,\n    getIcon: generateRandomIcon\n  }), /*#__PURE__*/_react.default.createElement(_CreateFormByTemplate.default, {\n    visible: tempModalVisible,\n    onClose: function onClose() {\n      return setTempModalVisible(false);\n    },\n    onTemplateChoose: onCreateFormByTemplate\n  }));\n};\nvar _default = exports[\"default\"] = _react.default.memo(CreateForm);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateForm.tsx\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByImport/ChooseExcel.tsx":
/*!********************************************************************!*\
  !*** ./src/web/component/admin/CreateFormByImport/ChooseExcel.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 _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.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 _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 _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _index = __webpack_require__(/*! ./index */ \"./src/web/component/admin/CreateFormByImport/index.tsx\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _admin = __webpack_require__(/*! @/actions/admin */ \"./src/actions/admin.js\");\nvar _UploadContainer = _interopRequireDefault(__webpack_require__(/*! ../../apps/Import/UploadContainer */ \"./src/web/component/apps/Import/UploadContainer.jsx\"));\nvar _index2 = _interopRequireDefault(__webpack_require__(/*! ./index.less */ \"./src/web/component/admin/CreateFormByImport/index.less\"));\nvar _Import = __webpack_require__(/*! ../../apps/Import/Import */ \"./src/web/component/apps/Import/Import.tsx\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-07-19 16:24:06\n * @LastEditTime: 2024-08-29 16:48:28\n * @Last Modified by: jianhang_he\n */\n\n// 可允许上传的excel类型\nvar ACCEPT_EXCEL_TYPE_LIST = ['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n// .xlsx\n'application/vnd.ms-excel' // .xls\n];\n\n// 上传状态\nvar UPLOADING = 'uploading'; // 上传中\nvar UPLOAD_SUCCESS = 'done'; // 上传成功\n\nvar acceptList = ['xlsx'];\nvar accept = (0, _Import.getAccept)(acceptList);\nvar ChooseExcel = (0, _react.memo)(function (_ref) {\n  var appId = _ref.appId;\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    t = _useTranslation.t;\n  var _useContext = (0, _react.useContext)(_index.CreateFormByImportContext),\n    dispatch = _useContext.dispatch;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    isUploading = _useState2[0],\n    setIsUploading = _useState2[1];\n\n  /**\n   * 上传文件之前的钩子，参数为上传的文件\n   */\n  var beforeUpload = function beforeUpload(file) {\n    if (!file) return _promise.default.reject(file);\n    var name = file.name;\n    if (!(0, _includes.default)(acceptList).call(acceptList, (0, _utils.getFileType)(name))) {\n      (0, _utils.showNotice)('warnning', '上传文件不是xlsx文件，请重新选择');\n      return false;\n    }\n    var isLt2M = file.size / 1024 / 1024 < 2;\n    if (!isLt2M) {\n      (0, _utils.showNotice)('warnning', '上传文件需要小于2M，请重新选择');\n      return false;\n    }\n\n    // startProcess()\n    return _promise.default.resolve(file);\n  };\n\n  /**\n   * 上传成功后，开始导入\n   */\n  var startUpload = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(fileUrl) {\n      var res, _res$rows, _ref3, importFieldTypes, sheetData, groups;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            if (fileUrl) {\n              _context.next = 3;\n              break;\n            }\n            (0, _utils.showNotice)('warning', '导入地址不存在');\n            return _context.abrupt(\"return\");\n          case 3:\n            _context.prev = 3;\n            _context.next = 6;\n            return (0, _admin.createFormByImportPreview)({\n              appId: appId,\n              filter: '',\n              fileUrl: fileUrl\n            });\n          case 6:\n            res = _context.sent;\n            if (res) {\n              _ref3 = ((_res$rows = res.rows) === null || _res$rows === void 0 ? void 0 : _res$rows[0]) || {}, importFieldTypes = _ref3.importFieldTypes, sheetData = _ref3.sheetData, groups = _ref3.groups;\n              dispatch({\n                importFieldTypes: importFieldTypes,\n                sheetData: sheetData,\n                groups: groups\n              });\n              setIsUploading(false);\n            }\n            _context.next = 14;\n            break;\n          case 10:\n            _context.prev = 10;\n            _context.t0 = _context[\"catch\"](3);\n            (0, _utils.showNotice)('warning', '上传文件失败');\n            console.log('上传文件失败', _context.t0);\n          case 14:\n            _context.prev = 14;\n            setIsUploading(false);\n            return _context.finish(14);\n          case 17:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee, null, [[3, 10, 14, 17]]);\n    }));\n    return function startUpload(_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * 上传文件中\n   * @param {*} file 上传文件信息\n   */\n  var onUploading = function onUploading(file) {\n    setIsUploading(true);\n  };\n\n  /**\n   * 上传文件成功\n   * @param {*} file 上传文件信息\n   */\n  var onUploadSuccess = function onUploadSuccess(file) {\n    var _filename$split;\n    var _ref4 = (file === null || file === void 0 ? void 0 : file.response) || {},\n      data = _ref4.data;\n    var _ref5 = data || {},\n      url = _ref5.url,\n      filename = _ref5.filename;\n    dispatch({\n      formName: (filename === null || filename === void 0 || (_filename$split = filename.split('.')) === null || _filename$split === void 0 ? void 0 : _filename$split[0]) || '',\n      //  默认为excel名称\n      fileUrl: url,\n      stepData: {\n        curIndex: _index.Step.EXCEL_PREVIEW\n      }\n    });\n    // startUpload(url)\n  };\n  var onUploadChange = function onUploadChange(_ref6) {\n    var _ref6$file = _ref6.file,\n      file = _ref6$file === void 0 ? {} : _ref6$file;\n    var status = file.status;\n    switch (status) {\n      case UPLOADING:\n        // 上传中\n        onUploading(file);\n        break;\n      case UPLOAD_SUCCESS:\n        // 上传完成\n        onUploadSuccess(file);\n        break;\n      default:\n        (0, _utils.showNotice)('error', '上传文件失败');\n        // setIsUploading(false)\n        // setUploadData(null)\n        // stopProcess()\n        console.error(\"\\u672A\\u77E5\\u4E0A\\u4F20\\u72B6\\u6001 \".concat(status, \" \"));\n        break;\n    }\n  };\n\n  // if (isUploading) {\n  //   return (\n  //     <LoadingProcess text='文件上传中，请耐心等待' />\n  //   )\n  // }\n\n  return /*#__PURE__*/_react.default.createElement(_UploadContainer.default, {\n    accept: accept,\n    beforeUpload: beforeUpload,\n    onChange: onUploadChange,\n    renderUploadText: function renderUploadText() {\n      return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"p\", {\n        className: _index2.default.create_form_by_import_body_uploadtext\n      }, t('admin.key0012')), /*#__PURE__*/_react.default.createElement(\"p\", {\n        className: _index2.default.create_form_by_import_body_uploadtext\n      }, t('admin.key0013')));\n    }\n  });\n});\nChooseExcel.displayName = 'ChooseExcel';\nvar _default = exports[\"default\"] = ChooseExcel;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByImport/ChooseExcel.tsx\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByImport/FieldSetting.tsx":
/*!*********************************************************************!*\
  !*** ./src/web/component/admin/CreateFormByImport/FieldSetting.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 _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 _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.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 _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 _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _ImportSetting = __webpack_require__(/*! ./ImportSetting */ \"./src/web/component/admin/CreateFormByImport/ImportSetting.tsx\");\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _ImportSetting2 = _interopRequireDefault(__webpack_require__(/*! ./ImportSetting.less */ \"./src/web/component/admin/CreateFormByImport/ImportSetting.less\"));\nvar _ImportSetting3 = __webpack_require__(/*! ../../apps/Import/ImportSetting */ \"./src/web/component/apps/Import/ImportSetting.tsx\");\nvar _excluded = [\"id\", \"type\", \"split\", \"mode\", \"formatType\", \"billEntityIdEx\", \"propsDisplay\", \"onChange\"];\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 NORMAL_FIELDTYPES = ['nocodetextfield', 'nocodetextareafield', 'nocodedecimalfield'];\nvar DATE_FORMAT_OPTIONS = [{\n  value: '0',\n  label: '年-月-日 时:分:秒',\n  disabled: false\n}, {\n  value: '1',\n  label: '年-月-日',\n  disabled: false\n}, {\n  value: '2',\n  label: '年-月',\n  disabled: false\n}, {\n  value: '3',\n  label: '年',\n  disabled: false\n}];\nvar transformToTree = function transformToTree(options) {\n  var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  if (!options) return options;\n  return (0, _map.default)(options).call(options, function (item) {\n    var label = item.label,\n      value = item.value,\n      children = item.children,\n      icon = item.icon;\n    var itemData = _objectSpread({\n      key: value,\n      title: label\n    }, prop);\n    if (icon) {\n      itemData.icon = icon;\n    }\n    if (children) {\n      if (children.length) {\n        itemData.children = transformToTree(children);\n      }\n      // 还有种children为[]空数组的情况，这种情况需要异步请求数据\n      itemData.checkable = false;\n      itemData.selectable = false;\n    } else {\n      // isLeaf代表不需要请求异步数据\n      itemData.isLeaf = true;\n    }\n    return itemData;\n  });\n};\nvar transformDispProps = function transformDispProps(data) {\n  return (0, _map.default)(data).call(data, function (_ref) {\n    var caption = _ref.caption,\n      id = _ref.id;\n    return {\n      value: id,\n      label: caption\n    };\n  });\n};\nvar FieldSetting = function FieldSetting(_ref2) {\n  var id = _ref2.id,\n    type = _ref2.type,\n    split = _ref2.split,\n    mode = _ref2.mode,\n    formatType = _ref2.formatType,\n    billEntityIdEx = _ref2.billEntityIdEx,\n    propsDisplay = _ref2.propsDisplay,\n    onChange = _ref2.onChange,\n    otherProps = (0, _objectWithoutProperties2.default)(_ref2, _excluded);\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId;\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    refBillTreeData = _useState2[0],\n    setRefBillTreeData = _useState2[1];\n  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    displayProps = _useState4[0],\n    setDisplayProps = _useState4[1];\n  var multiName = (0, _ImportSetting.isRefBill)(type) ? _ImportSetting.KEY_REFBILL_MULTI : _ImportSetting.KEY_SELECT_MULTI;\n\n  /**\n   * 更新关联表单下拉树的数据\n   */\n  var setFormOptions = (0, _react.useCallback)(function (treeRoot) {\n    var _treeRoot$children = treeRoot.children,\n      children = _treeRoot$children === void 0 ? [] : _treeRoot$children;\n    children[0].icon = /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"gerenzhongxin\",\n      style: {\n        color: '#3987ED'\n      }\n    });\n    children[1].icon = /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"zuzhi\",\n      style: {\n        color: '#3987ED'\n      }\n    });\n    setRefBillTreeData(transformToTree(children));\n  }, []);\n  var queryRefbill = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var _res$rows, res, _res$rows2, _ref4, treeData;\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 (0, _apps.getRefBillTreeData)(appId);\n          case 3:\n            res = _context.sent;\n            if (res !== null && res !== void 0 && (_res$rows = res.rows) !== null && _res$rows !== void 0 && _res$rows[0]) {\n              _ref4 = (res === null || res === void 0 || (_res$rows2 = res.rows) === null || _res$rows2 === void 0 ? void 0 : _res$rows2[0]) || {}, treeData = _ref4.treeData;\n              setFormOptions(treeData || {});\n            }\n            _context.next = 9;\n            break;\n          case 7:\n            _context.prev = 7;\n            _context.t0 = _context[\"catch\"](0);\n          case 9:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee, null, [[0, 7]]);\n    }));\n    return function queryRefbill() {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n  (0, _react.useEffect)(function () {\n    if ((0, _ImportSetting.isRefBill)(type) && !refBillTreeData.length) {\n      queryRefbill();\n    }\n  }, [type, refBillTreeData]);\n  (0, _react.useEffect)(function () {\n    if (billEntityIdEx) {\n      querygetRefBillDispProps(billEntityIdEx);\n    }\n  }, [billEntityIdEx]);\n  var querygetRefBillDispProps = /*#__PURE__*/function () {\n    var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(formId) {\n      var _res$rows3, res, _res$rows4, _ref6, _displayProps, data;\n      return _regenerator.default.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            _context2.prev = 0;\n            _context2.next = 3;\n            return (0, _apps.getRefBillDispProps)(formId);\n          case 3:\n            res = _context2.sent;\n            if (res !== null && res !== void 0 && (_res$rows3 = res.rows) !== null && _res$rows3 !== void 0 && _res$rows3[0]) {\n              _ref6 = (res === null || res === void 0 || (_res$rows4 = res.rows) === null || _res$rows4 === void 0 ? void 0 : _res$rows4[0]) || {}, _displayProps = _ref6.displayProps;\n              data = transformDispProps(_displayProps);\n              setDisplayProps(data || []);\n              if (data !== null && data !== void 0 && data[0]) {\n                onChange({\n                  propsDisplay: data[0].value\n                });\n              }\n            }\n            _context2.next = 9;\n            break;\n          case 7:\n            _context2.prev = 7;\n            _context2.t0 = _context2[\"catch\"](0);\n          case 9:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2, null, [[0, 7]]);\n    }));\n    return function querygetRefBillDispProps(_x) {\n      return _ref5.apply(this, arguments);\n    };\n  }();\n  var handleChangeMulti = function handleChangeMulti(value) {\n    // 切换为单选的时候，需要把分隔符置空\n    if (value === _ImportSetting.SINGLE_VALUE) {\n      onChange((0, _defineProperty2.default)((0, _defineProperty2.default)({}, multiName, value), \"split\", undefined));\n    } else {\n      onChange((0, _defineProperty2.default)({}, multiName, value));\n    }\n  };\n\n  // useEffect(() => {\n  //   if (isRefBill(type) || isSelect(type)) {\n  //     handleChangeMulti('0')\n  //   }\n  // }, [type])\n\n  var handleSplitChange = function handleSplitChange(e) {\n    var value = e.target.value;\n    onChange({\n      split: value\n    });\n  };\n\n  /**\n   * 关联属性选择\n   */\n  var handleSelectRefbillDispProps = function handleSelectRefbillDispProps(value) {\n    onChange({\n      propsDisplay: value\n    });\n  };\n\n  /**\n   * 清空关联熟悉\n   */\n  var handleClearRefbillDispProps = function handleClearRefbillDispProps() {\n    onChange({\n      propsDisplay: ''\n    });\n    setDisplayProps([]);\n  };\n  var handleSelectRefbill = function handleSelectRefbill(newVal, nodes) {\n    if (newVal !== billEntityIdEx) {\n      onChange({\n        billEntityIdEx: newVal\n      });\n    }\n    if (newVal === '') {\n      handleClearRefbillDispProps();\n    }\n  };\n\n  /**\n   * 日期格式选择\n   * @param value 日期类型\n   */\n  var handleFormatTypeChange = function handleFormatTypeChange(value) {\n    onChange({\n      formatType: value\n    });\n  };\n  if ((0, _includes.default)(NORMAL_FIELDTYPES).call(NORMAL_FIELDTYPES, type)) {\n    return null;\n  }\n\n  // name后缀\n  var nameSuffix = _ImportSetting3.connector + id;\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _ImportSetting.isRefBill)(type) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    required: true,\n    label: \"\\u5173\\u8054\\u5176\\u4ED6\\u8868\\u5355\",\n    name: (0, _ImportSetting.getFormFieldName)('billEntityIdEx', id),\n    className: _ImportSetting2.default.fieldsetting_item\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.KDTreeSelect, {\n    placeholder: \"\\u8BF7\\u9009\\u62E9\\u5173\\u8054\\u5176\\u4ED6\\u8868\\u5355\",\n    allowClear: true,\n    value: billEntityIdEx,\n    treeData: refBillTreeData,\n    showTreeIcon: true,\n    treeIcon: function treeIcon(props) {\n      return props.icon;\n    },\n    onChange: handleSelectRefbill\n    // treeLoadData={onLoadData}\n    // treeDefaultExpandedKeys={SelectBillPid}\n    ,\n    treeDefaultExpandAll: true\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    required: true,\n    label: \"\\u9009\\u62E9\\u5339\\u914D\\u5185\\u5BB9\",\n    name: (0, _ImportSetting.getFormFieldName)('propsDisplay', id),\n    className: _ImportSetting2.default.fieldsetting_item\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Select, {\n    placeholder: \"\\u8BF7\\u9009\\u62E9\\u5339\\u914D\\u5185\\u5BB9\",\n    borderType: \"bordered\",\n    className: _ImportSetting2.default.fieldsetting_select,\n    options: displayProps,\n    value: propsDisplay,\n    onChange: handleSelectRefbillDispProps,\n    onClear: handleClearRefbillDispProps\n  }))), ((0, _ImportSetting.isRefBill)(type) || (0, _ImportSetting.isSelect)(type)) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: (0, _ImportSetting.isRefBill)(type) ? '关联表单记录' : '选择模式',\n    name: (0, _ImportSetting.getFormFieldName)(multiName, id),\n    className: _ImportSetting2.default.fieldsetting_item\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Sectioner, {\n    defaultValue: _ImportSetting.SINGLE_VALUE,\n    value: otherProps[multiName],\n    options: [{\n      label: '单选',\n      value: _ImportSetting.SINGLE_VALUE\n    }, {\n      label: '多选',\n      value: _ImportSetting.MULTI_VALUE\n    }],\n    onChange: handleChangeMulti\n  })), otherProps[multiName] === _ImportSetting.MULTI_VALUE && /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u8BBE\\u7F6E\\u5206\\u9694\\u7B26\",\n    name: \"split\".concat(nameSuffix),\n    className: _ImportSetting2.default.fieldsetting_item\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    borderType: \"bordered\",\n    value: split,\n    onChange: handleSplitChange\n  }))), (0, _ImportSetting.isDate)(type) && /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u65E5\\u671F\\u683C\\u5F0F\",\n    name: \"formatType\".concat(nameSuffix),\n    className: _ImportSetting2.default.fieldsetting_item\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Select, {\n    placeholder: \"\\u8BF7\\u9009\\u62E9\\u65E5\\u671F\\u683C\\u5F0F\",\n    borderType: \"bordered\",\n    className: _ImportSetting2.default.fieldsetting_select,\n    options: DATE_FORMAT_OPTIONS,\n    value: formatType,\n    onChange: handleFormatTypeChange\n  })));\n};\nFieldSetting.displayName = 'FieldSetting';\nvar _default = exports[\"default\"] = FieldSetting;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByImport/FieldSetting.tsx\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByImport/ImportSetting.tsx":
/*!**********************************************************************!*\
  !*** ./src/web/component/admin/CreateFormByImport/ImportSetting.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.isSelect = exports.isRefBill = exports.isDate = exports.getFormFieldName = exports[\"default\"] = exports.SINGLE_VALUE = exports.MULTI_VALUE = exports.KEY_SELECT_MULTI = exports.KEY_REFBILL_MULTI = exports.ImportFieldItemSetting = 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 _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 _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.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 _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 _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _ImportModalFooter = _interopRequireWildcard(__webpack_require__(/*! ../../apps/Import/ImportModalFooter */ \"./src/web/component/apps/Import/ImportModalFooter.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _ImportDataLoading = __webpack_require__(/*! ../../apps/Import/ImportDataLoading */ \"./src/web/component/apps/Import/ImportDataLoading.tsx\");\nvar _index = __webpack_require__(/*! ./index */ \"./src/web/component/admin/CreateFormByImport/index.tsx\");\nvar _ImportSetting = __webpack_require__(/*! ../../apps/Import/ImportSetting */ \"./src/web/component/apps/Import/ImportSetting.tsx\");\nvar _ImportSetting2 = _interopRequireDefault(__webpack_require__(/*! ./ImportSetting.less */ \"./src/web/component/admin/CreateFormByImport/ImportSetting.less\"));\nvar _index2 = _interopRequireDefault(__webpack_require__(/*! ./index.less */ \"./src/web/component/admin/CreateFormByImport/index.less\"));\nvar _FieldSetting = _interopRequireDefault(__webpack_require__(/*! ./FieldSetting */ \"./src/web/component/admin/CreateFormByImport/FieldSetting.tsx\"));\nvar _excluded = [\"id\", \"name\", \"type\", \"importFieldTypes\", \"onChange\"];\n/*\n * @Description: 导入-数据预览\n * @Author: jianhang_he\n * @Date: 2023-07-05 13:35:41\n * @LastEditTime: 2024-08-16 17:21:36\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; }\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 isRefBill = exports.isRefBill = function isRefBill(type) {\n  var _context;\n  return (0, _includes.default)(_context = ['nocodemulrefbillfield']).call(_context, type);\n};\nvar isSelect = exports.isSelect = function isSelect(type) {\n  var _context2;\n  return (0, _includes.default)(_context2 = ['nocodeselectitemfield']).call(_context2, type);\n};\nvar isDate = exports.isDate = function isDate(type) {\n  var _context3;\n  return (0, _includes.default)(_context3 = ['nocodedatefield']).call(_context3, type);\n};\nvar DEFAULT_DATE_FORMAT = '1'; // 默认日期格式\n\n// const dfs = (tree: any[], nodeKey: string): any => {\n//   for (const node of tree) {\n//     if (node.key === nodeKey) {\n//       return node\n//     }\n//     if (node.children) {\n//       const ret = dfs(node.children, nodeKey)\n//       if (ret) return ret\n//     }\n//   }\n// }\n\n// 获取form 的name，因为都是同一个form，字段name不能一致，故加id区分\nvar getFormFieldName = exports.getFormFieldName = function getFormFieldName(fieldKey, id) {\n  return fieldKey + _ImportSetting.connector + id;\n};\nvar SINGLE_VALUE = exports.SINGLE_VALUE = 0; // 单选\nvar MULTI_VALUE = exports.MULTI_VALUE = 1; // 多选\nvar KEY_REFBILL_MULTI = exports.KEY_REFBILL_MULTI = 'multi'; // 关联表单多选\nvar KEY_SELECT_MULTI = exports.KEY_SELECT_MULTI = 'selectItemType'; // 选项多选\n\nvar ImportFieldItemSetting = exports.ImportFieldItemSetting = (0, _react.memo)(function (_ref) {\n  var id = _ref.id,\n    name = _ref.name,\n    type = _ref.type,\n    importFieldTypes = _ref.importFieldTypes,\n    onChange = _ref.onChange,\n    otherProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);\n  var Option = _kdesign.Select.Option;\n\n  // 初始化字段设置\n  var initFieldSetting = function initFieldSetting(type) {\n    var data = {};\n    // 这里做一些初始化的操作\n    if (isRefBill(type) || isSelect(type)) {\n      data[isRefBill(type) ? KEY_REFBILL_MULTI : KEY_SELECT_MULTI] = SINGLE_VALUE;\n      if (isSelect(type)) {\n        data.dataAutoOptions = true;\n      }\n    } else if (isDate(type)) {\n      data.formatType = DEFAULT_DATE_FORMAT;\n    }\n    return data;\n  };\n\n  // 切换类型\n  var handleChangeType = function handleChangeType(value) {\n    onChange(_objectSpread({\n      type: value\n    }, initFieldSetting(value)));\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ImportSetting2.default.fieldsetting,\n    id: id\n  }, /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _ImportSetting2.default.fieldsetting_name\n  }, name), /*#__PURE__*/_react.default.createElement(_kdesign.Select, {\n    borderType: \"bordered\",\n    placeholder: \"\\u8BF7\\u9009\\u62E9\\u5B57\\u6BB5\\u7C7B\\u578B\",\n    className: _ImportSetting2.default.fieldsetting_select,\n    value: type,\n    onChange: handleChangeType\n  }, (0, _map.default)(importFieldTypes).call(importFieldTypes, function (_ref2) {\n    var name = _ref2.name,\n      type = _ref2.type;\n    return /*#__PURE__*/_react.default.createElement(Option, {\n      key: type,\n      value: type\n    }, name);\n  })), /*#__PURE__*/_react.default.createElement(_FieldSetting.default, (0, _extends2.default)({\n    id: id,\n    type: type,\n    onChange: onChange\n  }, otherProps)));\n});\nImportFieldItemSetting.displayName = 'ImportFieldItemSetting';\nvar ImportSetting = (0, _react.memo)(function (_ref3) {\n  var importState = _ref3.importState,\n    dispatchImportState = _ref3.dispatchImportState,\n    formMenuInfo = _ref3.formMenuInfo,\n    getIcon = _ref3.getIcon;\n  var Option = _kdesign.Select.Option;\n  var stepData = importState.stepData,\n    sheetName = importState.sheetName,\n    col = importState.col,\n    row = importState.row,\n    fileUrl = importState.fileUrl,\n    newFormData = importState.newFormData,\n    formName = importState.formName,\n    groups = importState.groups,\n    groupId = importState.groupId,\n    importFieldTypes = importState.importFieldTypes,\n    _importState$excelHea = importState.excelHeadList,\n    excelHeadList = _importState$excelHea === void 0 ? [] : _importState$excelHea,\n    _importState$fields = importState.fields,\n    fields = _importState$fields === void 0 ? [] : _importState$fields,\n    _importState$isUpdate = importState.isUpdate,\n    isUpdate = _importState$isUpdate === void 0 ? true : _importState$isUpdate,\n    _importState$initFiel = importState.initFields,\n    initFields = _importState$initFiel === void 0 ? [] : _importState$initFiel;\n  var curIndex = stepData.curIndex;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    formId = _useParams.targetFormId,\n    appId = _useParams.appId;\n  // const [innerFields, setInnerFields] = useState<FieldItemApi[]>([])\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    isLoading = _useState2[0],\n    setIsLoading = _useState2[1];\n  var _useState3 = (0, _react.useState)(!(fields !== null && fields !== void 0 && fields.length)),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    disableNextStep = _useState4[0],\n    setDisableNextStep = _useState4[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    if (!isLoading && curIndex === 2 && form) {\n      form.setFieldValue('formName', formName);\n    }\n  }, [curIndex, formName, isLoading]);\n  var queryImportExcelCreateSetting = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var res, _ref5, _importFieldTypes, _groups, sheetData, _ref6, headRows, newFields;\n      return _regenerator.default.wrap(function _callee$(_context4) {\n        while (1) switch (_context4.prev = _context4.next) {\n          case 0:\n            _context4.prev = 0;\n            _context4.next = 3;\n            return (0, _apps.getImportExcelCreateSetting)({\n              sheetName: sheetName,\n              col: col,\n              row: row,\n              fileUrl: fileUrl,\n              filter: '',\n              appId: appId\n            });\n          case 3:\n            res = _context4.sent;\n            if (res !== null && res !== void 0 && res.rows) {\n              _ref5 = res.rows[0] || {}, _importFieldTypes = _ref5.importFieldTypes, _groups = _ref5.groups, sheetData = _ref5.sheetData;\n              _ref6 = sheetData[0] || {}, headRows = _ref6.headRows;\n              if (headRows !== null && headRows !== void 0 && headRows.length) {\n                setDisableNextStep(false);\n              }\n              newFields = (headRows === null || headRows === void 0 ? void 0 : (0, _map.default)(headRows).call(headRows, function (item, index) {\n                var field = fields[index];\n                if (field && field.number === item.number) {\n                  return _objectSpread(_objectSpread({}, item), field);\n                }\n                if (isDate(item.type)) {\n                  return _objectSpread(_objectSpread({}, item), {}, {\n                    formatType: DEFAULT_DATE_FORMAT\n                  });\n                }\n                return item;\n              })) || [];\n              dispatchImportState({\n                importFieldTypes: _importFieldTypes,\n                sheetData: sheetData,\n                fields: newFields,\n                initFields: headRows,\n                groups: _groups\n              });\n              // setInnerFields(headRows)\n            }\n            _context4.next = 10;\n            break;\n          case 7:\n            _context4.prev = 7;\n            _context4.t0 = _context4[\"catch\"](0);\n            if (_context4.t0 !== null && _context4.t0 !== void 0 && _context4.t0.message) {\n              (0, _utils.showNotice)('error', _context4.t0 === null || _context4.t0 === void 0 ? void 0 : _context4.t0.message);\n            }\n          case 10:\n          case \"end\":\n            return _context4.stop();\n        }\n      }, _callee, null, [[0, 7]]);\n    }));\n    return function queryImportExcelCreateSetting() {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  (0, _react.useEffect)(function () {\n    // 初始的时候没有formid的时候才需要去请求，不能作为依赖项添加\n    if (!(newFormData !== null && newFormData !== void 0 && newFormData.number)) {\n      queryImportExcelCreateSetting();\n    }\n  }, []);\n  var handleChangeFormName = (0, _react.useCallback)(function (e) {\n    var name = e.target.value;\n    dispatchImportState({\n      formName: name\n    });\n  }, []);\n  var handleChangeFieldItemSetting = function handleChangeFieldItemSetting(index, data) {\n    var _fields$index;\n    if (data.type && data.type !== ((_fields$index = fields[index]) === null || _fields$index === void 0 ? void 0 : _fields$index.type)) {\n      // 如果是切换组件类型的时候，那么需要重新\n      fields[index] = _objectSpread(_objectSpread({}, initFields[index]), data);\n    } else {\n      fields[index] = _objectSpread(_objectSpread({}, fields[index]), data);\n    }\n    dispatchImportState({\n      fields: fields\n    });\n  };\n\n  // 重设表单的字段\n  var resetFormField = function resetFormField() {\n    if (!form) return;\n    fields === null || fields === void 0 || fields.forEach(function (field) {\n      var billEntityIdEx = field.billEntityIdEx,\n        propsDisplay = field.propsDisplay,\n        multi = field.multi,\n        selectItemType = field.selectItemType,\n        formatType = field.formatType,\n        id = field.id;\n      if (billEntityIdEx) {\n        form.setFieldValue(getFormFieldName('billEntityIdEx', id), billEntityIdEx);\n      }\n      if (propsDisplay) {\n        form.setFieldValue(getFormFieldName('propsDisplay', id), propsDisplay);\n      }\n      if (formatType) {\n        form.setFieldValue(getFormFieldName('formatType', id), formatType);\n      }\n      if (typeof multi !== 'undefined') {\n        form.setFieldValue(getFormFieldName('multi', id), multi);\n      }\n      if (typeof selectItemType !== 'undefined') {\n        form.setFieldValue(getFormFieldName('selectItemType', id), selectItemType);\n      }\n    });\n  };\n\n  /**\n   * 请求导入预览数据\n   */\n  var queryImportPreviewData = /*#__PURE__*/function () {\n    var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(data) {\n      var newConfig, postData, res;\n      return _regenerator.default.wrap(function _callee2$(_context5) {\n        while (1) switch (_context5.prev = _context5.next) {\n          case 0:\n            newConfig = (0, _index.transformFieldConfig)(fields);\n            postData = _objectSpread({\n              fileUrl: fileUrl,\n              sheetName: sheetName,\n              col: col,\n              row: row,\n              isUpdate: false,\n              updateCond: [],\n              config: newConfig,\n              isNeedMsg: true,\n              pageSize: '10',\n              pageNo: '1'\n            }, data);\n            _context5.prev = 2;\n            _context5.next = 5;\n            return (0, _apps.getImportPreviewData)(postData);\n          case 5:\n            res = _context5.sent;\n            dispatchImportState({\n              previewData: res,\n              stepData: {\n                curIndex: curIndex + 1\n              }\n            });\n            _context5.next = 12;\n            break;\n          case 9:\n            _context5.prev = 9;\n            _context5.t0 = _context5[\"catch\"](2);\n            if (_context5.t0 !== null && _context5.t0 !== void 0 && _context5.t0.message) {\n              (0, _utils.showNotice)('error', _context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.message);\n            }\n          case 12:\n            _context5.prev = 12;\n            setIsLoading(false);\n            return _context5.finish(12);\n          case 15:\n          case \"end\":\n            return _context5.stop();\n        }\n      }, _callee2, null, [[2, 9, 12, 15]]);\n    }));\n    return function queryImportPreviewData(_x) {\n      return _ref7.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * 请求导入预览数据\n   */\n  var saveImportCreateSetting = /*#__PURE__*/function () {\n    var _ref8 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data) {\n      var postData, res, _data;\n      return _regenerator.default.wrap(function _callee3$(_context6) {\n        while (1) switch (_context6.prev = _context6.next) {\n          case 0:\n            postData = [{\n              name: formName,\n              fields: fields,\n              menuInfo: _objectSpread(_objectSpread({}, formMenuInfo), {}, {\n                parentId: groupId,\n                image: getIcon()\n              }),\n              appId: appId,\n              fileUrl: fileUrl,\n              sheetName: sheetName,\n              col: col,\n              row: row\n            }];\n            if (newFormData !== null && newFormData !== void 0 && newFormData.number) {\n              postData[0].formId = newFormData.number;\n            }\n            _context6.prev = 2;\n            _context6.next = 5;\n            return (0, _apps.saveImportExcelCreateSetting)(postData);\n          case 5:\n            res = _context6.sent;\n            if (res !== null && res !== void 0 && res.result) {\n              _data = (res === null || res === void 0 ? void 0 : res.result[0]) || {};\n              dispatchImportState({\n                newFormData: _data\n              });\n              queryImportPreviewData({\n                formId: _data.number\n              });\n            }\n            _context6.next = 14;\n            break;\n          case 9:\n            _context6.prev = 9;\n            _context6.t0 = _context6[\"catch\"](2);\n            setIsLoading(false);\n            console.error(_context6.t0);\n            if (_context6.t0 !== null && _context6.t0 !== void 0 && _context6.t0.message) {\n              (0, _utils.showNotice)('error', _context6.t0 === null || _context6.t0 === void 0 ? void 0 : _context6.t0.message);\n            }\n          case 14:\n          case \"end\":\n            return _context6.stop();\n        }\n      }, _callee3, null, [[2, 9]]);\n    }));\n    return function saveImportCreateSetting(_x2) {\n      return _ref8.apply(this, arguments);\n    };\n  }();\n  var actions = (0, _react.useMemo)(function () {\n    return [{\n      key: _ImportModalFooter.PRE_STEP,\n      // 'data-nc-action': `${appId}|${formId}|au_ip_is_back`,\n      text: 'apps.preStep',\n      size: 'small'\n    }, {\n      key: _ImportModalFooter.NEXT_STEP,\n      text: 'apps.nextStep',\n      size: 'small',\n      type: 'primary',\n      disabled: disableNextStep\n    }];\n  }, [disableNextStep]);\n\n  /**\n   * 点击底部按钮\n   */\n  var handleClickFooterBtn = (0, _react.useCallback)(function (type) {\n    switch (type) {\n      case _ImportModalFooter.PRE_STEP:\n        dispatchImportState({\n          stepData: {\n            curIndex: curIndex - 1\n          }\n        });\n        break;\n      case _ImportModalFooter.NEXT_STEP:\n        form.validateFields().then(function (res) {\n          setIsLoading(true);\n          resetFormField();\n          saveImportCreateSetting();\n        }).catch(function (e) {\n          console.log('error:', e);\n          var _ref9 = e || {},\n            errors = _ref9.errors;\n          if (errors && errors[0]) {\n            var _ref10 = errors[0] || {},\n              field = _ref10.field,\n              message = _ref10.message;\n            var fieldId = field.split(_ImportSetting.connector)[1];\n            if (fieldId) {\n              (0, _ImportSetting.scrollIntoFieldView)(fieldId);\n            }\n            (0, _utils.showNotice)('error', message);\n          }\n        });\n        break;\n      default:\n        break;\n    }\n  }, [curIndex, form, fields, saveImportCreateSetting]);\n  var handleSelectGroup = function handleSelectGroup(selectedKeys) {\n    if ((selectedKeys === null || selectedKeys === void 0 ? void 0 : selectedKeys.length) > 0) {\n      dispatchImportState({\n        groupId: selectedKeys[0]\n      });\n    } else {\n      dispatchImportState({\n        groupId: ''\n      });\n    }\n  };\n  return isLoading ? /*#__PURE__*/_react.default.createElement(_ImportDataLoading.LoadingProcess, {\n    text: \"\\u9884\\u89C8\\u6570\\u636E\\u51C6\\u5907\\u4E2D\\uFF0C\\u8BF7\\u8010\\u5FC3\\u7B49\\u5019\"\n  }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ImportSetting2.default.importdatasetting\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Form, {\n    form: form,\n    className: _ImportSetting2.default.importdatasetting_pd24\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index2.default.inline\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    required: true,\n    label: \"\\u8868\\u5355\\u540D\\u79F0\",\n    name: \"formName\"\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    borderType: \"bordered\",\n    value: formName,\n    onChange: handleChangeFormName\n  })), (groups === null || groups === void 0 ? void 0 : groups.length) > 0 && /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u5206\\u7EC4\",\n    name: \"updateCond\"\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.KDTreeSelect, {\n    placeholder: \"\\u8BF7\\u9009\\u62E9\",\n    borderType: \"bordered\",\n    treeData: groups,\n    selectedKeys: groupId ? [groupId] : [],\n    defaultExpandAll: true,\n    expandOnClickNode: false,\n    onVisibleChange: function onVisibleChange() {},\n    onSelect: handleSelectGroup\n  })))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ImportSetting2.default.importdatasetting_fieldlist\n  }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_kdesign.Form, {\n    className: _ImportSetting2.default.fieldsetting_config,\n    form: form\n  }, (0, _map.default)(fields).call(fields, function (item, index) {\n    var id = item.number;\n    return /*#__PURE__*/_react.default.createElement(ImportFieldItemSetting, (0, _extends2.default)({\n      key: id\n    }, item, {\n      importFieldTypes: importFieldTypes\n      // excelHeadList={excelHeadList}\n      // fieldConfig={importFieldTypes[index]}\n      ,\n      onChange: function onChange(data) {\n        return handleChangeFieldItemSetting(index, data);\n      }\n    }));\n  }))))), /*#__PURE__*/_react.default.createElement(_ImportModalFooter.default, {\n    actions: actions,\n    onClick: handleClickFooterBtn\n  }));\n});\nImportSetting.displayName = 'ImportSetting';\nvar _default = exports[\"default\"] = ImportSetting;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByImport/ImportSetting.tsx\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByImport/index.tsx":
/*!**************************************************************!*\
  !*** ./src/web/component/admin/CreateFormByImport/index.tsx ***!
  \**************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _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.transformFieldConfig = exports[\"default\"] = exports.Step = exports.Loading = exports.CreateFormByImportContext = 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 _setTimeout2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _ImportExportModal = _interopRequireDefault(__webpack_require__(/*! ../../apps/ImportExportModal */ \"./src/web/component/apps/ImportExportModal.jsx\"));\nvar _Import = __webpack_require__(/*! ../../apps/Import/Import */ \"./src/web/component/apps/Import/Import.tsx\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _ChooseExcel = _interopRequireDefault(__webpack_require__(/*! ./ChooseExcel */ \"./src/web/component/admin/CreateFormByImport/ChooseExcel.tsx\"));\nvar _ImportExcelPreview = _interopRequireDefault(__webpack_require__(/*! ../../apps/Import/ImportExcelPreview */ \"./src/web/component/apps/Import/ImportExcelPreview.tsx\"));\nvar _ImportPreview = _interopRequireDefault(__webpack_require__(/*! ../../apps/Import/ImportPreview */ \"./src/web/component/apps/Import/ImportPreview.tsx\"));\nvar _ImportDataLoading = _interopRequireDefault(__webpack_require__(/*! ../../apps/Import/ImportDataLoading */ \"./src/web/component/apps/Import/ImportDataLoading.tsx\"));\nvar _useWindowSize2 = __webpack_require__(/*! @/hooks/useWindowSize */ \"./src/hooks/useWindowSize.ts\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _ImportSetting = _interopRequireDefault(__webpack_require__(/*! ./ImportSetting */ \"./src/web/component/admin/CreateFormByImport/ImportSetting.tsx\"));\nvar _index = _interopRequireDefault(__webpack_require__(/*! ./index.less */ \"./src/web/component/admin/CreateFormByImport/index.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: 2023-04-03 19:41:20\n * @LastEditTime: 2023-08-09 14:54:47\n * @Last Modified by: jianhang_he\n */\nvar transformFieldConfig = exports.transformFieldConfig = function transformFieldConfig(fields) {\n  var fieldConfig = {};\n  fields.forEach(function (item) {\n    var number = item.number,\n      index = item.index;\n    fieldConfig[number] = _objectSpread({\n      seq: index + ''\n    }, item);\n    if (item.propsDisplay) {\n      fieldConfig[number].billMatchCond = item.propsDisplay;\n    }\n  });\n  return fieldConfig;\n};\nvar Step = exports.Step = /*#__PURE__*/function (Step) {\n  Step[Step[\"CHOOSE_EXCEL\"] = 0] = \"CHOOSE_EXCEL\";\n  Step[Step[\"EXCEL_PREVIEW\"] = 1] = \"EXCEL_PREVIEW\";\n  Step[Step[\"IMPORT_SETTING\"] = 2] = \"IMPORT_SETTING\";\n  Step[Step[\"IMPORT_PREVIEW\"] = 3] = \"IMPORT_PREVIEW\";\n  Step[Step[\"IMPORT_DATA\"] = 4] = \"IMPORT_DATA\";\n  return Step;\n}({});\nvar STEP_MODAL_HEIGHT = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, Step.CHOOSE_EXCEL, 520), Step.EXCEL_PREVIEW, 'auto'), Step.IMPORT_SETTING, 'auto'), Step.IMPORT_PREVIEW, 'auto'), Step.IMPORT_DATA, 520);\n\n// 当前步骤相关的信息\nvar INIT_IMPORT_DATA = {\n  curStepIndex: Step.CHOOSE_EXCEL,\n  importFieldTypes: [],\n  sheetData: [],\n  sheetValue: 0,\n  formName: '',\n  groupId: '',\n  fileUrl: '',\n  col: '1',\n  row: '1',\n  stepData: {\n    curIndex: 0,\n    curStatus: ''\n  },\n  // 当前步骤\n  sheetName: null,\n  newFormData: null,\n  fields: [],\n  insertDefaultSelectItem: 'true',\n  initFields: [],\n  previewExcel: null,\n  previewData: null,\n  sheetNameList: [],\n  previewPageData: {\n    totalCount: 0,\n    pageSize: 10,\n    pageNo: 1\n  }\n};\nvar Loading = exports.Loading = function Loading(_ref) {\n  var text = _ref.text;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index.default.spin_container\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index.default.spin_container_content\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Spin, {\n    name: \"Spin\",\n    type: \"component\"\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index.default.text\n  }, text)));\n};\nvar CreateFormByImportContext = exports.CreateFormByImportContext = (0, _react.createContext)({});\nvar CreateFormByImportModal = (0, _react.memo)(function (_ref2) {\n  var visible = _ref2.visible,\n    onClose = _ref2.onClose,\n    formMenuInfo = _ref2.formMenuInfo,\n    appId = _ref2.appId,\n    getIcon = _ref2.getIcon;\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    t = _useTranslation.t;\n  var navigate = (0, _useNocodeNavigate.default)(); // 导航\n\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_IMPORT_DATA),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    state = _useReducer2[0],\n    dispatch = _useReducer2[1];\n  var formName = state.formName,\n    _state$sheetData = state.sheetData,\n    sheetData = _state$sheetData === void 0 ? [] : _state$sheetData,\n    _state$sheetValue = state.sheetValue,\n    sheetValue = _state$sheetValue === void 0 ? 0 : _state$sheetValue,\n    groupId = state.groupId,\n    stepData = state.stepData,\n    newFormData = state.newFormData,\n    col = state.col,\n    row = state.row;\n  var curStepIndex = stepData.curIndex;\n  var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),\n    height = _useWindowSize.height;\n  var _useState = (0, _react.useState)(height - 112),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    modalHeight = _useState2[0],\n    setModalHeight = _useState2[1];\n  var debounceSetModalHeight = (0, _useDebounce.default)(setModalHeight);\n\n  // const bodyRef = useModalBodyRef(null)\n\n  (0, _react.useEffect)(function () {\n    var newModalHeight = height - 112;\n    // 这里主要确保弹窗的高度为偶数，为奇数的话transform(-50%, -50%)会导致里面的字体变糊\n    if (newModalHeight % 2 !== 0) {\n      debounceSetModalHeight(newModalHeight - 1);\n    }\n  }, [height]);\n  var STEP_INFO = (0, _react.useMemo)(function () {\n    return [{\n      title: t('admin.key0008') // 选择Excel表\n    }, {\n      title: t('admin.key0009') // 数据预览\n    }, {\n      title: t('admin.key0010') // 导入设置\n    }, {\n      title: t('admin.key0023') // 导入预览\n    }, {\n      title: t('admin.key0011') // 导入数据\n    }];\n  }, []);\n  var onRefresh = function onRefresh() {\n    if (newFormData) {\n      var _context;\n      var formId = newFormData.id;\n      navigate((0, _concat.default)(_context = \"/\".concat(appId, \"/admin/\")).call(_context, formId || ''));\n      (0, _setTimeout2.default)(function () {\n        _eventEmit.default.emit(_constants.REFRESH_APP_ADMIN_MENU_LIST, formId); // 刷新列表\n      });\n    }\n  };\n\n  // 清空状态\n  var clearStore = function clearStore() {\n    var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n    dispatch(_objectSpread(_objectSpread({}, INIT_IMPORT_DATA), data));\n  };\n\n  // 返回第一步的时候，需要清空数据\n  (0, _react.useEffect)(function () {\n    if (stepData.curIndex === 0) {\n      clearStore();\n    }\n  }, [stepData.curIndex]);\n\n  // 如果修改过行号列号，sheet名，那么需要清空已经存在的表单信息\n  (0, _react.useEffect)(function () {\n    dispatch({\n      newFormData: null,\n      fields: [],\n      initFields: []\n    });\n  }, [col, row, sheetValue]);\n\n  // 关闭弹窗\n  var handleCloseModal = function handleCloseModal() {\n    clearStore();\n    onClose === null || onClose === void 0 || onClose();\n  };\n\n  // 上传\n  var renderUploadContainer = (0, _react.useCallback)(function () {\n    return /*#__PURE__*/_react.default.createElement(_ChooseExcel.default, {\n      appId: appId\n    });\n  }, [appId]);\n\n  // 数据预览\n  var renderDataPreviewContainer = (0, _react.useCallback)(function () {\n    return /*#__PURE__*/_react.default.createElement(_ImportExcelPreview.default, {\n      importState: state,\n      dispatchImportState: dispatch\n    });\n  }, [state]);\n\n  // 表单设置\n  var renderFormSettingContainer = (0, _react.useCallback)(function () {\n    return /*#__PURE__*/_react.default.createElement(_ImportSetting.default, {\n      importState: state,\n      dispatchImportState: dispatch,\n      formMenuInfo: formMenuInfo,\n      getIcon: getIcon\n    });\n  }, [state]);\n\n  // 导入数据预览\n  var renderImportDataPreviewContainer = (0, _react.useCallback)(function () {\n    var newFormData = state.newFormData,\n      fields = state.fields;\n    var fieldConfig = transformFieldConfig(fields);\n    return /*#__PURE__*/_react.default.createElement(_ImportPreview.default, {\n      importState: state,\n      dispatchImportState: dispatch,\n      fieldConfig: fieldConfig,\n      formId: newFormData === null || newFormData === void 0 ? void 0 : newFormData.number\n    });\n  }, [state]);\n\n  // 导入数据\n  var renderImportDataLoadingContainer = (0, _react.useCallback)(function () {\n    var newFormData = state.newFormData;\n    return /*#__PURE__*/_react.default.createElement(_ImportDataLoading.default, {\n      importState: state,\n      dispatchImportState: dispatch,\n      formId: newFormData === null || newFormData === void 0 ? void 0 : newFormData.number,\n      onClose: handleCloseModal,\n      refresh: onRefresh\n    });\n  }, [state, handleCloseModal, onRefresh]);\n\n  // 步骤对应的内容\n  var ImportStepContent = (0, _react.useMemo)(function () {\n    if (curStepIndex === Step.CHOOSE_EXCEL) {\n      return renderUploadContainer();\n    } else if (curStepIndex === Step.EXCEL_PREVIEW) {\n      return renderDataPreviewContainer();\n    } else if (curStepIndex === Step.IMPORT_SETTING) {\n      return renderFormSettingContainer();\n    } else if (curStepIndex === Step.IMPORT_PREVIEW) {\n      return renderImportDataPreviewContainer();\n    } else if (curStepIndex === Step.IMPORT_DATA) {\n      return renderImportDataLoadingContainer();\n    }\n  }, [curStepIndex, renderDataPreviewContainer, renderFormSettingContainer, renderImportDataLoadingContainer]);\n  var body = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      style: {\n        maxHeight: modalHeight\n      },\n      className: (0, _classnames.default)(_index.default.create_form_by_import_body, (0, _defineProperty2.default)({}, _index.default[\"create_form_by_import_body_step\".concat(curStepIndex)], true))\n      // ref={bodyRef}\n    }, /*#__PURE__*/_react.default.createElement(_Import.ImportStep, {\n      currentData: {\n        curIndex: curStepIndex\n      },\n      stepInfo: STEP_INFO\n    }), ImportStepContent);\n  }, [state]);\n  return /*#__PURE__*/_react.default.createElement(CreateFormByImportContext.Provider, {\n    value: {\n      state: state,\n      dispatch: dispatch\n    }\n  }, /*#__PURE__*/_react.default.createElement(_ImportExportModal.default, {\n    bodyStyle: {\n      maxHeight: modalHeight\n    },\n    className: _index.default.create_form_by_import,\n    title: t('admin.key0007'),\n    titleTips: t('admin.key0007'),\n    height: STEP_MODAL_HEIGHT[curStepIndex],\n    body: body,\n    visible: visible,\n    onClose: handleCloseModal,\n    renderFooter: null\n  }));\n});\nCreateFormByImportModal.displayName = 'CreateFormByImportModal';\nvar _default = exports[\"default\"] = CreateFormByImportModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByImport/index.tsx\n");

/***/ }),

/***/ "./src/web/component/admin/CreateFormByTemplate.jsx":
/*!**********************************************************!*\
  !*** ./src/web/component/admin/CreateFormByTemplate.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 _react = _interopRequireDefault(__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 _CreateFormByTemplate = _interopRequireDefault(__webpack_require__(/*! ./CreateFormByTemplate.less */ \"./src/web/component/admin/CreateFormByTemplate.less\"));\nvar _templates = _interopRequireWildcard(__webpack_require__(/*! ../common/templates */ \"./src/web/component/common/templates/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; }\nvar CreateFormByTemplate = function CreateFormByTemplate(_ref) {\n  var visible = _ref.visible,\n    onClose = _ref.onClose,\n    onTemplateChoose = _ref.onTemplateChoose;\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Drawer, {\n    className: _CreateFormByTemplate.default['create-form-by-template'],\n    placement: \"bottom\",\n    keyboard: false,\n    visible: visible,\n    onClose: onClose,\n    title: \"\\u4ECE\\u6A21\\u677F\\u521B\\u5EFA\"\n  }, /*#__PURE__*/_react.default.createElement(_templates.default, {\n    type: _templates.TEMPLATE_TYPE_BILL,\n    showTab: false,\n    onUseBillTemplate: onTemplateChoose\n  }));\n};\nvar _default = exports[\"default\"] = CreateFormByTemplate;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtQnlUZW1wbGF0ZS5qc3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFFQTtBQUlBO0FBRkE7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUlBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtQnlUZW1wbGF0ZS5qc3g/OWEwMSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXHJcbmltcG9ydCB7IERyYXdlciB9IGZyb20gJ0BrZGNsb3VkanMva2Rlc2lnbidcclxuaW1wb3J0IHN0eWxlcyBmcm9tICcuL0NyZWF0ZUZvcm1CeVRlbXBsYXRlLmxlc3MnXHJcbmltcG9ydCBUZW1wbGF0ZXMsIHsgVEVNUExBVEVfVFlQRV9CSUxMIH0gZnJvbSAnLi4vY29tbW9uL3RlbXBsYXRlcydcclxuXHJcbmNvbnN0IENyZWF0ZUZvcm1CeVRlbXBsYXRlID0gKHtcclxuICB2aXNpYmxlLFxyXG4gIG9uQ2xvc2UsXHJcbiAgb25UZW1wbGF0ZUNob29zZVxyXG59KSA9PiB7XHJcbiAgcmV0dXJuIChcclxuICAgIDxEcmF3ZXIgY2xhc3NOYW1lPXtzdHlsZXNbJ2NyZWF0ZS1mb3JtLWJ5LXRlbXBsYXRlJ119IHBsYWNlbWVudD0nYm90dG9tJyBrZXlib2FyZD17ZmFsc2V9IHZpc2libGU9e3Zpc2libGV9IG9uQ2xvc2U9e29uQ2xvc2V9IHRpdGxlPSfku47mqKHmnb/liJvlu7onPlxyXG4gICAgICA8VGVtcGxhdGVzXHJcbiAgICAgICAgdHlwZT17VEVNUExBVEVfVFlQRV9CSUxMfVxyXG4gICAgICAgIHNob3dUYWI9e2ZhbHNlfVxyXG4gICAgICAgIG9uVXNlQmlsbFRlbXBsYXRlPXtvblRlbXBsYXRlQ2hvb3NlfVxyXG4gICAgICAvPlxyXG4gICAgPC9EcmF3ZXI+XHJcbiAgKVxyXG59XHJcblxyXG5leHBvcnQgZGVmYXVsdCBDcmVhdGVGb3JtQnlUZW1wbGF0ZVxyXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormByTemplate.jsx\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireDefault(__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 _CreateForm = _interopRequireDefault(__webpack_require__(/*! ./CreateForm */ \"./src/web/component/admin/CreateForm.tsx\"));\nvar _CreateFormModal = _interopRequireDefault(__webpack_require__(/*! ./CreateFormModal.less */ \"./src/web/component/admin/CreateFormModal.less\"));\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-03-02 15:43:35\n * @LastEditTime: 2023-04-04 15:51:29\n * @Last Modified by: jianhang_he\n */\n\n/**\n * 选择创建表单方式 - Modal UI\n * @param {{visible: Boolean, setVisible: Function}} props\n * @param visible 显示隐藏\n * @param setVisible 显示隐藏函数\n * @returns\n */\nvar CreateFormModal = function CreateFormModal(_ref) {\n  var visible = _ref.visible,\n    onClose = _ref.onClose,\n    data = _ref.data;\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    title: \"\\u65B0\\u5EFA\\u8868\\u5355\",\n    bodyStyle: {\n      padding: 24\n    },\n    width: 704,\n    height: 332,\n    closable: true,\n    maskClosable: false,\n    footer: null,\n    className: _CreateFormModal.default.createformmodal,\n    visible: visible,\n    keyboard: false,\n    onCancel: onClose,\n    body: /*#__PURE__*/_react.default.createElement(_CreateForm.default, {\n      className: _CreateFormModal.default.createformmodal_body,\n      data: data,\n      onClose: onClose\n    })\n  });\n};\nvar _default = exports[\"default\"] = _react.default.memo(CreateFormModal);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtTW9kYWwudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBT0E7QUFDQTtBQUNBO0FBRUE7QUFYQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSUE7QUFGQTtBQUNBO0FBRUE7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUdBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9DcmVhdGVGb3JtTW9kYWwudHN4P2ZmZTUiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjpcbiAqIEBBdXRob3I6IGppYW5oYW5nX2hlXG4gKiBARGF0ZTogMjAyMy0wMy0wMiAxNTo0MzozNVxuICogQExhc3RFZGl0VGltZTogMjAyMy0wNC0wNCAxNTo1MToyOVxuICogQExhc3QgTW9kaWZpZWQgYnk6IGppYW5oYW5nX2hlXG4gKi9cbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCB7IE1vZGFsIH0gZnJvbSAnQGtkY2xvdWRqcy9rZGVzaWduJ1xuaW1wb3J0IENyZWF0ZUZvcm0gZnJvbSAnLi9DcmVhdGVGb3JtJ1xuXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vQ3JlYXRlRm9ybU1vZGFsLmxlc3MnXG4vKipcbiAqIOmAieaLqeWIm+W7uuihqOWNleaWueW8jyAtIE1vZGFsIFVJXG4gKiBAcGFyYW0ge3t2aXNpYmxlOiBCb29sZWFuLCBzZXRWaXNpYmxlOiBGdW5jdGlvbn19IHByb3BzXG4gKiBAcGFyYW0gdmlzaWJsZSDmmL7npLrpmpDol49cbiAqIEBwYXJhbSBzZXRWaXNpYmxlIOaYvuekuumakOiXj+WHveaVsFxuICogQHJldHVybnNcbiAqL1xuY29uc3QgQ3JlYXRlRm9ybU1vZGFsID0gKHtcbiAgdmlzaWJsZSxcbiAgb25DbG9zZSxcbiAgZGF0YVxufSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxNb2RhbFxuICAgICAgdGl0bGU9J+aWsOW7uuihqOWNlSdcbiAgICAgIGJvZHlTdHlsZT17eyBwYWRkaW5nOiAyNCB9fVxuICAgICAgd2lkdGg9ezcwNH1cbiAgICAgIGhlaWdodD17MzMyfVxuICAgICAgY2xvc2FibGVcbiAgICAgIG1hc2tDbG9zYWJsZT17ZmFsc2V9XG4gICAgICBmb290ZXI9e251bGx9XG4gICAgICBjbGFzc05hbWU9e3N0eWxlcy5jcmVhdGVmb3JtbW9kYWx9XG4gICAgICB2aXNpYmxlPXt2aXNpYmxlfVxuICAgICAga2V5Ym9hcmQ9e2ZhbHNlfVxuICAgICAgb25DYW5jZWw9e29uQ2xvc2V9XG4gICAgICBib2R5PXtcbiAgICAgICAgPENyZWF0ZUZvcm0gY2xhc3NOYW1lPXtzdHlsZXMuY3JlYXRlZm9ybW1vZGFsX2JvZHl9IGRhdGE9e2RhdGF9IG9uQ2xvc2U9e29uQ2xvc2V9IC8+XG4gICAgICB9XG4gICAgLz5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBSZWFjdC5tZW1vKENyZWF0ZUZvcm1Nb2RhbClcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateFormModal.tsx\n");

/***/ }),

/***/ "./src/web/component/admin/CreateGroupModal.jsx":
/*!******************************************************!*\
  !*** ./src/web/component/admin/CreateGroupModal.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 _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _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 _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 _CreateGroupModal = _interopRequireDefault(__webpack_require__(/*! ./CreateGroupModal.less */ \"./src/web/component/admin/CreateGroupModal.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar CreateGroupModal = function CreateGroupModal(props) {\n  var _style$height, _style$width;\n  var title = props.title,\n    draggable = props.draggable,\n    className = props.className,\n    style = props.style,\n    mask = props.mask,\n    onClose = props.onClose,\n    onConfirm = props.onConfirm,\n    groupData = props.groupData,\n    confirmBtnProps = props.confirmBtnProps,\n    parentGroupKeyProps = props.parentGroupKey,\n    _props$selectable = props.selectable,\n    selectable = _props$selectable === void 0 ? true : _props$selectable;\n  var _useState = (0, _react.useState)(''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    name = _useState2[0],\n    setName = _useState2[1];\n  var _useState3 = (0, _react.useState)(parentGroupKeyProps),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    parentGroupKey = _useState4[0],\n    setParentGroupKey = _useState4[1];\n  (0, _react.useEffect)(function () {\n    setParentGroupKey(parentGroupKeyProps);\n  }, [parentGroupKeyProps]);\n  var handleConfirm = function handleConfirm() {\n    onConfirm === null || onConfirm === void 0 || onConfirm(name, parentGroupKey);\n  };\n  var handleClose = function handleClose() {\n    onClose === null || onClose === void 0 || onClose();\n  };\n  var handleGroupChange = function handleGroupChange(key) {\n    setParentGroupKey(key);\n  };\n  var renderFooter = function renderFooter() {\n    return /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n      size: \"small\",\n      onClick: handleClose,\n      className: _CreateGroupModal.default.cancel\n    }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, (0, _extends2.default)({\n      size: \"small\",\n      type: \"primary\",\n      onClick: handleConfirm,\n      className: _CreateGroupModal.default.confirm\n    }, confirmBtnProps), \"\\u786E\\u5B9A\"));\n  };\n  var handleNameChange = function handleNameChange(e) {\n    var _context;\n    setName((0, _trim.default)(_context = e.target.value).call(_context));\n  };\n  var renderBody = function renderBody(groupData) {\n    var getOptions = function getOptions(groupData) {\n      return groupData === null || groupData === void 0 ? void 0 : (0, _map.default)(groupData).call(groupData, function (item) {\n        return {\n          label: item.name,\n          value: item.key\n        };\n      });\n    };\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _CreateGroupModal.default.name\n    }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u5206\\u7EC4\\u540D\\u79F0\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _CreateGroupModal.default.dot\n    }, \"*\")), /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n      onChange: handleNameChange,\n      value: name,\n      borderType: \"bordered\",\n      size: \"large\",\n      maxLength: 50\n    })), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _CreateGroupModal.default['select-group']\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _CreateGroupModal.default['select-group-title']\n    }, \"\\u9009\\u62E9\\u5206\\u7EC4\"), /*#__PURE__*/_react.default.createElement(_kdesign.Select, {\n      options: getOptions(groupData),\n      onChange: handleGroupChange,\n      dropdownClassName: _CreateGroupModal.default['select-dropdown'],\n      placeholder: \"\\u8BF7\\u9009\\u62E9\",\n      className: _CreateGroupModal.default['select-group-options'],\n      borderType: \"bordered\",\n      size: \"large\",\n      disabled: !selectable,\n      value: parentGroupKey,\n      allowClear: true\n    })));\n  };\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({\n    body: renderBody(groupData),\n    type: \"normal\",\n    className: (0, _classnames.default)(_CreateGroupModal.default.modal, className),\n    closable: true,\n    mask: true,\n    draggable: draggable !== null && draggable !== void 0 ? draggable : true,\n    height: (_style$height = style === null || style === void 0 ? void 0 : style.height) !== null && _style$height !== void 0 ? _style$height : 300,\n    width: (_style$width = style === null || style === void 0 ? void 0 : style.width) !== null && _style$width !== void 0 ? _style$width : 480,\n    destroyOnClose: true\n    // visible={visible}\n  }, \"mask\", mask !== null && mask !== void 0 ? mask : true), \"maskClosable\", false), \"footer\", renderFooter()), \"onCancel\", onClose), \"title\", title), \"draggable\", draggable), \"keyboard\", false), \"footerClassName\", _CreateGroupModal.default.footer));\n};\nvar _default = exports[\"default\"] = CreateGroupModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/CreateGroupModal.jsx\n");

/***/ }),

/***/ "./src/web/component/home/HomeContainer.tsx":
/*!**************************************************!*\
  !*** ./src/web/component/home/HomeContainer.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 _container_bg_img = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/container_bg_img.png */ \"./assets/img/container_bg_img.png\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _HomeContainer = _interopRequireDefault(__webpack_require__(/*! ./HomeContainer.less */ \"./src/web/component/home/HomeContainer.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 Container = (0, _react.memo)(function (_ref) {\n  var children = _ref.children,\n    className = _ref.className,\n    mainClassName = _ref.mainClassName;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(className, _HomeContainer.default.container)\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: _container_bg_img.default,\n    className: _HomeContainer.default.bg_img,\n    width: \"100%\",\n    height: 520\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(mainClassName, _HomeContainer.default.main)\n  }, children));\n});\nContainer.displayName = 'BgContainer';\nvar _default = exports[\"default\"] = Container;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9ob21lL0hvbWVDb250YWluZXIudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBUUE7QUFJQTtBQUZBO0FBQ0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUtBO0FBRUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2hvbWUvSG9tZUNvbnRhaW5lci50c3g/ZmE3ZSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgbWVtbywgRkMgfSBmcm9tICdyZWFjdCdcbmltcG9ydCBjb250YWluZXJCZ0ltYWdlIGZyb20gJ0BAL2Fzc2V0cy9pbWcvY29udGFpbmVyX2JnX2ltZy5wbmcnXG5pbXBvcnQgY2xhc3NOYW1lcyBmcm9tICdjbGFzc25hbWVzJ1xuaW1wb3J0IHN0eWxlcyBmcm9tICcuL0hvbWVDb250YWluZXIubGVzcydcblxuaW50ZXJmYWNlIENvbnRhaW5lckFwaSB7XG4gIGNoaWxkcmVuOiBSZWFjdC5SZWFjdE5vZGUsXG4gIGNsYXNzTmFtZT86IHN0cmluZyxcbiAgbWFpbkNsYXNzTmFtZT86IHN0cmluZ1xufVxuXG5jb25zdCBDb250YWluZXI6IEZDPENvbnRhaW5lckFwaT4gPSBtZW1vKCh7XG4gIGNoaWxkcmVuLFxuICBjbGFzc05hbWUsXG4gIG1haW5DbGFzc05hbWVcbn0pID0+IHtcbiAgcmV0dXJuIChcbiAgICA8ZGl2IGNsYXNzTmFtZT17Y2xhc3NOYW1lcyhjbGFzc05hbWUsIHN0eWxlcy5jb250YWluZXIpfT5cbiAgICAgIDxpbWcgc3JjPXtjb250YWluZXJCZ0ltYWdlfSBjbGFzc05hbWU9e3N0eWxlcy5iZ19pbWd9IHdpZHRoPScxMDAlJyBoZWlnaHQ9ezUyMH0gLz5cbiAgICAgIDxkaXYgY2xhc3NOYW1lPXtjbGFzc05hbWVzKG1haW5DbGFzc05hbWUsIHN0eWxlcy5tYWluKX0+XG4gICAgICAgIHtjaGlsZHJlbn1cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuICApXG59KVxuXG5Db250YWluZXIuZGlzcGxheU5hbWUgPSAnQmdDb250YWluZXInXG5cbmV4cG9ydCBkZWZhdWx0IENvbnRhaW5lclxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/home/HomeContainer.tsx\n");

/***/ }),

/***/ "./src/web/component/skeleton/AdminLeftLayoutSkeleton.ts":
/*!***************************************************************!*\
  !*** ./src/web/component/skeleton/AdminLeftLayoutSkeleton.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.AdminLeftLayoutSkeleton = void 0;\n/*\n * @Description: 应用设计页-骨架屏\n * @Author: john_xin_gu\n * @Date: 2023-07-26 19:12:56\n * @LastEditTime: 2023-09-07 14:52:25\n * @Last Modified by: john_xin_gu\n */\n\nvar AdminLeftLayoutSkeleton = exports.AdminLeftLayoutSkeleton = [{\n  width: '100%',\n  height: '100%',\n  child: [{\n    width: '240px',\n    height: '100%',\n    type: 'MENU',\n    child: [{\n      width: 'auto',\n      height: 'auto',\n      margin: '12px 12px 8px 0px',\n      child: [{\n        width: '180px',\n        height: '28px',\n        type: 'INPUT'\n      }, {\n        width: '28px',\n        height: '28px',\n        margin: '0px 0px 0px 8px',\n        type: 'INPUT'\n      }]\n    }, {\n      width: 'auto',\n      height: 'auto',\n      margin: '16px 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: '102px',\n        height: '36px',\n        type: 'INPUT',\n        repeat: 2\n      }, {\n        width: '88px',\n        height: '36px',\n        type: 'INPUT'\n      }]\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/AdminLeftLayoutSkeleton.ts\n");

/***/ }),

/***/ "./src/web/layout/admin/FlowSider.tsx":
/*!********************************************!*\
  !*** ./src/web/layout/admin/FlowSider.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 _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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _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 _flow = __webpack_require__(/*! @/actions/flow */ \"./src/actions/flow.ts\");\nvar _admin = __webpack_require__(/*! @/actions/admin */ \"./src/actions/admin.js\");\nvar _menuTreeUtil = __webpack_require__(/*! @/utils/menuTreeUtil */ \"./src/utils/menuTreeUtil.js\");\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\"));\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 _TreeLeafIconSelector = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/TreeLeafIconSelector */ \"./src/web/component/common/TreeLeafIconSelector.tsx\"));\nvar _Loading = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Loading */ \"./src/web/component/common/Loading.tsx\"));\nvar _useLoadData3 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useLoadData */ \"./src/hooks/useLoadData.js\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _empty = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/empty.png */ \"./assets/img/empty.png\"));\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\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 _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _actionNames = __webpack_require__(/*! @/reducer/actionNames */ \"./src/reducer/actionNames.js\");\nvar _HomeContainer = _interopRequireDefault(__webpack_require__(/*! ../../component/home/HomeContainer */ \"./src/web/component/home/HomeContainer.tsx\"));\nvar _LeftLayout = _interopRequireDefault(__webpack_require__(/*! ./LeftLayout.less */ \"./src/web/layout/admin/LeftLayout.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 * 应用管理左侧UI\n * @returns jsx\n */\nvar MAX_GROUP_DEPTH = 2; // 分组最大层级\nvar FlowSider = (0, _react.memo)(function (props) {\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state,\n    dispatch = _useAppContext.dispatch;\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId,\n    formId = _useParams.targetFormId,\n    flowId = _useParams.flowId; // 应用ID\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  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    data = _useState2[0],\n    setData = _useState2[1]; // 菜单树数据\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    value = _useState4[0],\n    setValue = _useState4[1];\n  var _useState5 = (0, _react.useState)(''),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    selectedKey = _useState6[0],\n    setSelectedKey = _useState6[1];\n  var navigate = (0, _useNocodeNavigate.default)(); // 导航\n  var _useState7 = (0, _react.useState)(''),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    scrollTokey = _useState8[0],\n    setScrollToKey = _useState8[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    showEmpty = _useState10[0],\n    setShowEmpty = _useState10[1];\n  var _useState11 = (0, _react.useState)(),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    svgData = _useState12[0],\n    setSvgData = _useState12[1];\n  var rootConfig = state.rootConfig;\n  var dataRef = (0, _react.useRef)();\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\n  /**\n   * 保存选中的流程信息\n   * @param {*} data 流程信息\n   */\n  var saveSelectedFlowData = function saveSelectedFlowData(data) {\n    dispatch({\n      type: _actionNames.SET_SELECTED_FLOW,\n      payload: data\n    });\n  };\n  (0, _react.useEffect)(function () {\n    dataRef.current = data;\n  }, [data]);\n\n  // 点击树节点展开\n  var onExpand = function onExpand(expandedKeys, info) {\n    setExpandedKeys(expandedKeys);\n  };\n\n  /**\n   * 删除\n   * @param nodekey\n   * @param formId\n   * @param svgData\n   */\n  var _onDelete = function onDelete(nodekey, formId, svgData) {\n    (0, _utils.showDeleteConfirmModal)({\n      title: '',\n      message: '确定要删除该流程吗？',\n      detail: '删除后所有相关的流程记录将被删除',\n      onOk: function onOk() {\n        (0, _flow.deleteFlow)(appId, nodekey).then(function (res) {\n          var _ref = res || {},\n            successCount = _ref.successCount,\n            totalCount = _ref.totalCount;\n          if (successCount === totalCount) {\n            (0, _utils.showNotice)('success', '流程删除成功');\n            loadFlowList();\n          }\n        }).catch(function (err) {\n          (0, _utils.showNotice)('error', err.message);\n        });\n      },\n      onCancel: function onCancel() {}\n    });\n  };\n  var isGroupNode = function isGroupNode(formId) {\n    return !formId;\n  };\n  var renderTitle = function renderTitle(titleInfo, svgData) {\n    var name = titleInfo.name,\n      nodeKey = titleInfo.key,\n      formId = titleInfo.formId,\n      canAddChildGroup = titleInfo.canAddChildGroup;\n    return /*#__PURE__*/_react.default.createElement(_TreeNodeTitle.TreeNodeTitle\n    // hideMore\n    , {\n      hideDrag: true,\n      title: name,\n      nodeKey: nodeKey,\n      formId: formId,\n      appId: appId,\n      isGroupNode: false,\n      onDelete: function onDelete() {\n        return _onDelete(nodeKey, formId, svgData);\n      }\n      // onEditName={onEditName}\n      // onAddChildGroup={onAddChildGroup}\n      // onCopy={onCopy}\n      // canAddChildGroup={canAddChildGroup}\n    });\n  };\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 getIcon = function getIcon(formId, icon, hasChild) {\n    // const groupNode = isGroupNode(formId)\n    // 拖拽时icon格式化后会变为node，初始化时后端传过来是string\n    return 'leaf';\n  };\n  var handleIconChange = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(url, nodeInfo, svgData) {\n      var id, formId, name, parentId, seq, loop, newData, data;\n      return _regenerator.default.wrap(function _callee$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            id = nodeInfo.id, formId = nodeInfo.formId, name = nodeInfo.name, parentId = nodeInfo.parentId, seq = nodeInfo.seq;\n            loop = function loop(data) {\n              data.forEach(function (node) {\n                if (node.key === nodeInfo.key) {\n                  node.image = url;\n                } else if (node.children) {\n                  loop(node.children);\n                }\n              });\n            };\n            newData = _lodash.default.cloneDeep(dataRef.current);\n            loop(newData);\n            data = [{\n              id: id,\n              formId: formId,\n              name: name,\n              parentId: parentId,\n              seq: seq,\n              image: url\n            }];\n            _context3.next = 7;\n            return (0, _admin.updateMenu)(appId, data);\n          case 7:\n            setData((0, _menuTreeUtil.transformTreeData)(newData, function (titleInfo) {\n              return renderTitle(titleInfo, svgData);\n            }, function (nodeIfo) {\n              return renderIcon(nodeIfo, svgData);\n            }, MAX_GROUP_DEPTH));\n          case 8:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee);\n    }));\n    return function handleIconChange(_x, _x2, _x3) {\n      return _ref2.apply(this, arguments);\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    return transformIcon && /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _LeftLayout.default['leaf-icon-wrapper'], transformIcon === 'leaf'), _LeftLayout.default.readonly, true))\n    }, transformIcon === 'leaf'\n    // 渲染叶子节点图标\n    ? /*#__PURE__*/_react.default.createElement(_TreeLeafIconSelector.default, {\n      readonly: true,\n      isLineIconStyle: true,\n      placement: \"bottomLeft\",\n      svgData: svgData,\n      image: image || _defaultIcon.DEFAULT_FORM_IMAGE,\n      onChange: function onChange(url) {\n        return handleIconChange(url, nodeInfo, svgData);\n      }\n    })\n    // KDTree不支持无子节点的node显示switch-icon，所以这里自己实现switch-icon\n    : /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      type: transformIcon,\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 jumpDefaultFlow = function jumpDefaultFlow(appId, defaultFlow) {\n    var _context4;\n    navigate((0, _concat.default)(_context4 = \"/\".concat(appId, \"/admin/flow/\")).call(_context4, (defaultFlow === null || defaultFlow === void 0 ? void 0 : defaultFlow.id) || ''), {\n      replace: true\n    });\n  };\n\n  // 加载流程列表\n  var loadFlowList = function loadFlowList() {\n    // 获取树列表\n    return (0, _home.getLineIconAndColor)().then(function (res) {\n      var datas = (res === null || res === void 0 ? void 0 : res.row) || {\n        colors: [],\n        svgs: []\n      }; // 背景颜色及SVG\n      setSvgData(datas);\n      return (0, _flow.getFlowList)(appId).then(function (res) {\n        var _defaultSelectedFlowD;\n        var flowData = (res === null || res === void 0 ? void 0 : res.rows) || [];\n        if (flowData.length <= 0) {\n          setShowEmpty(true);\n        }\n        var data = (0, _menuTreeUtil.transformTreeData)(flowData, function (titleInfo) {\n          return renderTitle(titleInfo, svgData);\n        }, function (nodeInfo) {\n          return renderIcon(nodeInfo, datas);\n        }, MAX_GROUP_DEPTH, 0, function () {\n          return true;\n        });\n        setData(data);\n\n        // 默认选中是树的第一个元素\n        var defaultSelectedFlowData = data[0];\n        if (flowId) {\n          // 如果路由中存在formId信息，那么默认选中当前的form\n          var selectedFlowData = (0, _menuTreeUtil.getNodeById)(flowData, flowId);\n          if (selectedFlowData) {\n            defaultSelectedFlowData = selectedFlowData;\n          } else {\n            jumpDefaultFlow(appId, defaultSelectedFlowData);\n          }\n        } else {\n          jumpDefaultFlow(appId, defaultSelectedFlowData);\n        }\n        saveSelectedFlowData(defaultSelectedFlowData);\n        var key = (_defaultSelectedFlowD = defaultSelectedFlowData) === null || _defaultSelectedFlowD === void 0 ? void 0 : _defaultSelectedFlowD.id;\n        defaultSelectedFlowData && setScrollToKey(key);\n        defaultSelectedFlowData && setSelectedKey(key);\n      });\n    });\n  };\n  var _useLoadData = (0, _useLoadData3.default)(loadFlowList, 200),\n    _useLoadData2 = (0, _slicedToArray2.default)(_useLoadData, 2),\n    loading = _useLoadData2[0],\n    init = _useLoadData2[1];\n  var filterTreeNode = (0, _react.useCallback)(function (node) {\n    var _context5;\n    if ((0, _includes.default)(_context5 = node.name).call(_context5, value)) {\n      return true;\n    }\n    return false;\n  }, [value]);\n  var onSelect = (0, _react.useCallback)(function (keys, info) {\n    var _info$node, _context6;\n    setSelectedKey((_info$node = info.node) === null || _info$node === void 0 ? void 0 : _info$node.key);\n    // setDefaultFormId(info.node.formId)\n    saveSelectedFlowData(info.node);\n    navigate((0, _concat.default)(_context6 = \"/\".concat(appId, \"/admin/flow/\")).call(_context6, info.node.id));\n  }, [navigate]);\n\n  // 搜索\n  var handleSearch = (0, _react.useCallback)(function (value) {\n    setValue(value);\n  }, []);\n\n  // 点击创建流程\n  var handleClickAddFlow = function handleClickAddFlow() {\n    if (!appId) {\n      (0, _utils.showNotice)('error', 'appId不存在');\n      return;\n    }\n    if (window.isIE) {\n      var title = '该功能暂不支持IE浏览器，\\n请尝试使用其他浏览器（推荐Chrome）。';\n      (0, _utils.showConfirm)(title, '', 4);\n      return;\n    }\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    (0, _flow.createFlow)(appId, [{\n      name: '未命名流程'\n    }]).then(function (res) {\n      var data = res.result[0];\n      if (data) {\n        var _context7;\n        navigate((0, _concat.default)(_context7 = \"/\".concat(appId, \"/flow/\")).call(_context7, data.id));\n      }\n    }).catch(function (e) {\n      var message = e.message;\n      (0, _utils.showNotice)('error', message);\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, init ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__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  }), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    title: \"\\u70B9\\u51FB\\u521B\\u5EFA\\u6D41\\u7A0B\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"jia4\"\n    }),\n    type: \"primary\",\n    \"data-nc-action\": createUiActionDataStr('sa_fg_cf'),\n    onClick: handleClickAddFlow\n  })), showEmpty ? /*#__PURE__*/_react.default.createElement(_WebUI.EmptyData, {\n    desc: \"\\u6682\\u65E0\\u6D41\\u7A0B\"\n  }) : /*#__PURE__*/_react.default.createElement(_kdesign.Tree, {\n    name: \"Tree\",\n    treeData: data,\n    expandedKeys: expandedKeys,\n    virtual: false,\n    defaultExpandRoot: true,\n    showIcon: true,\n    checkStrictly: true,\n    checkable: false,\n    estimatedItemSize: 44,\n    onExpand: onExpand,\n    filterTreeNode: filterTreeNode,\n    filterValue: value,\n    onSelect: onSelect,\n    selectedKeys: [selectedKey],\n    switcherIcon: renderSwitcherIcon(),\n    defaultExpandParent: true,\n    setTreeNodeClassName: function setTreeNodeClassName(node) {\n      return node.formId ? '' : _LeftLayout.default['group-node-hover'];\n    },\n    scrollToKey: scrollTokey\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 && flowId ? /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null) : /*#__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  })))) : loading ? /*#__PURE__*/_react.default.createElement(_Loading.default, null) : null);\n});\nFlowSider.displayName = 'FlowSider';\nvar _default = exports[\"default\"] = FlowSider;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/admin/FlowSider.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _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 _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.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 _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 _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 _HeaderLayout = _interopRequireDefault(__webpack_require__(/*! ./HeaderLayout.less */ \"./src/web/layout/admin/HeaderLayout.less\"));\nvar _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _HeaderNavDropDown = _interopRequireDefault(__webpack_require__(/*! ../designer/HeaderNavDropDown */ \"./src/web/layout/designer/HeaderNavDropDown.tsx\"));\nvar _Header = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Header */ \"./src/web/component/common/Header.jsx\"));\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _SaveAppTemplate = _interopRequireWildcard(__webpack_require__(/*! @/web/component/common/templates/SaveAppTemplate */ \"./src/web/component/common/templates/SaveAppTemplate.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _NocodeLink = _interopRequireDefault(__webpack_require__(/*! @/route/NocodeLink */ \"./src/route/NocodeLink.tsx\"));\nvar _actionNames = __webpack_require__(/*! @/reducer/actionNames */ \"./src/reducer/actionNames.js\");\nvar _useFetchHook = __webpack_require__(/*! @/hooks/useFetchHook */ \"./src/hooks/useFetchHook.ts\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _storageTools = __webpack_require__(/*! @/utils/storageTools */ \"./src/utils/storageTools.ts\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-15 15:43:38\n * @LastEditTime: 2024-05-14 10:53:46\n * @Last Modified by: jianhang_he\n */\nvar INIT_TEMP_INFO = {\n  visible: false,\n  value: _SaveAppTemplate.INIT_TEMPLATE_VALUE\n};\nvar generateRandomImageNo = function generateRandomImageNo() {\n  var num = Math.floor(20 * Math.random() + 1);\n  return num < 10 ? \"0\".concat(num) : num;\n};\n\n/**\n * 零代码应用管理头部模块\n * @returns jsx\n */\nvar AdminHeaderLayout = function AdminHeaderLayout(props) {\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    t = _useTranslation.t;\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId,\n    targetFormId = _useParams.targetFormId;\n  var _useLocation = (0, _reactRouterDom.useLocation)(),\n    pathname = _useLocation.pathname,\n    locationState = _useLocation.state;\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state,\n    dispatch = _useContext.dispatch;\n  var appInfo = state.appsList[appId];\n  var userInfo = state.userInfo;\n  var _state$fileServer$ima = state.fileServer.imageUrl,\n    imageFileserver = _state$fileServer$ima === void 0 ? '' : _state$fileServer$ima,\n    rootConfig = state.rootConfig;\n  var _ref = userInfo || {},\n    isAdminUser = _ref.isAdminUser,\n    orgs = _ref.orgs,\n    _ref$templateEnabled = _ref.templateEnabled,\n    templateEnabled = _ref$templateEnabled === void 0 ? false : _ref$templateEnabled;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    modalVisible = _useState2[0],\n    setModalVisible = _useState2[1];\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_TEMP_INFO),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    templateInfo = _useReducer2[0],\n    dispatchTemplateInfo = _useReducer2[1];\n  var navigate = (0, _useNocodeNavigate.default)();\n  var createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context, _context2;\n    return (0, _concat.default)(_context = (0, _concat.default)(_context2 = \"\".concat(appId, \"|\")).call(_context2, targetFormId, \"|\")).call(_context, actionName);\n  }, [appId, targetFormId]);\n  var isFormAdmin = (0, _react.useMemo)(function () {\n    return !/setting/.test(pathname) && !/publish/.test(pathname) && !/permission/.test(pathname) && !/flow/.test(pathname);\n  }, [pathname]);\n  var isFlow = (0, _react.useMemo)(function () {\n    return /flow/.test(pathname);\n  }, [pathname]);\n  var isSetting = (0, _react.useMemo)(function () {\n    return /setting/.test(pathname);\n  }, [pathname]);\n  var isPublish = (0, _react.useMemo)(function () {\n    return /publish/.test(pathname);\n  }, [pathname]);\n  var isPermission = (0, _react.useMemo)(function () {\n    return /permission/.test(pathname);\n  }, [pathname]);\n  var titlePrefix = (0, _react.useMemo)(function () {\n    if (isFlow) {\n      return '流程管理';\n    } else if (isSetting) {\n      return '应用设置';\n    } else if (isPublish) {\n      return '应用发布';\n    } else if (isPermission) {\n      return '权限设置';\n    } else {\n      return '配置';\n    }\n  }, [isFlow, isSetting, isPublish, isPermission]);\n  (0, _react.useEffect)(function () {\n    var _context3;\n    if (!appInfo) {\n      // 使用SWR先从缓存内获取数据\n      var url = \"nocode/v2/nocode_sys/app/\".concat(appId);\n      (0, _storageTools.getWithPriority)((0, _useFetchHook.getStoreData)(url, ''), (0, _home.getAppInfoById)(appId).then(function (res) {\n        (0, _useFetchHook.setStoreData)(url, '', res);\n        return res;\n      }), function (res) {\n        res && dispatch({\n          type: _actionNames.UPDATE_APP_INFO_BY_ID,\n          payload: {\n            id: appId,\n            value: res.rows[0]\n          }\n        });\n      });\n    }\n    document.title = (0, _concat.default)(_context3 = \"\".concat(titlePrefix, \"\\uFF1A\")).call(_context3, appInfo === null || appInfo === void 0 ? void 0 : appInfo.name) || '';\n  }, [appInfo, state.userInfo, titlePrefix]);\n  var handleOpenUserPage = (0, _react.useCallback)(function () {\n    var _context4;\n    targetFormId ? (0, _utils.openner)((0, _concat.default)(_context4 = \"/\".concat(appId, \"/home/\")).call(_context4, targetFormId)) : (0, _utils.openner)(\"/\".concat(appId, \"/home\"));\n  }, [appId, targetFormId]);\n\n  // 弹出保存为应用模板\n  var showTemplateModal = (0, _react.useCallback)(function () {\n    var _orgs$;\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    var _ref2 = appInfo || {},\n      _ref2$name = _ref2.name,\n      name = _ref2$name === void 0 ? '' : _ref2$name,\n      _ref2$description = _ref2.description,\n      description = _ref2$description === void 0 ? '' : _ref2$description,\n      icon = _ref2.image;\n    var org = isAdminUser ? '金蝶官方' : orgs === null || orgs === void 0 || (_orgs$ = orgs[0]) === null || _orgs$ === void 0 ? void 0 : _orgs$.orgName;\n    var randomImage = \"/ncp/images/app_template_image_\".concat(generateRandomImageNo(), \".png\");\n    dispatchTemplateInfo({\n      visible: true,\n      value: _objectSpread(_objectSpread({}, _SaveAppTemplate.INIT_TEMPLATE_VALUE), {}, {\n        name: name,\n        desc: description,\n        icon: icon,\n        image: randomImage,\n        org: org\n      })\n    });\n  }, [setModalVisible, appInfo, imageFileserver, userInfo, rootConfig]);\n\n  // 保存模板点击确定\n  var handleConfirm = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(templateConfig) {\n      var closeLoadingMessage, param, res, message;\n      return _regenerator.default.wrap(function _callee$(_context5) {\n        while (1) switch (_context5.prev = _context5.next) {\n          case 0:\n            closeLoadingMessage = (0, _utils.showLoadingMessage)('模板保存中，请稍候...');\n            param = {\n              id: appId,\n              saveAsTemplate: true,\n              templateConfig: templateConfig\n            };\n            _context5.prev = 2;\n            _context5.next = 5;\n            return (0, _home.configApp)(param);\n          case 5:\n            res = _context5.sent;\n            if (res) {\n              closeLoadingMessage({\n                type: 'success',\n                content: '保存成功'\n              });\n            }\n            _context5.next = 14;\n            break;\n          case 9:\n            _context5.prev = 9;\n            _context5.t0 = _context5[\"catch\"](2);\n            console.log(_context5.t0);\n            message = _context5.t0.message;\n            message && closeLoadingMessage({\n              content: message,\n              type: 'error'\n            });\n          case 14:\n          case \"end\":\n            return _context5.stop();\n        }\n      }, _callee, null, [[2, 9]]);\n    }));\n    return function (_x) {\n      return _ref3.apply(this, arguments);\n    };\n  }(), []);\n  var debounceHandleTemplateConfirm = (0, _useDebounce.default)(handleConfirm, 300);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Header.default, {\n    className: _HeaderLayout.default.app_header\n  }, /*#__PURE__*/_react.default.createElement(_Header.default.Left, {\n    className: _HeaderLayout.default.logo\n  }, /*#__PURE__*/_react.default.createElement(_HeaderNavDropDown.default, null), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.title\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, \"\\u914D\\u7F6E\\uFF1A\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    title: appInfo === null || appInfo === void 0 ? void 0 : appInfo.name\n  }, appInfo === null || appInfo === void 0 ? void 0 : appInfo.name))), /*#__PURE__*/_react.default.createElement(_Header.default.Main, {\n    className: _HeaderLayout.default.nav\n  }, /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: isFormAdmin ? pathname : \"/\".concat(appId, \"/admin\"),\n    className: isFormAdmin ? _HeaderLayout.default.curr : '',\n    \"data-nc-action\": createUiActionDataStr('tb_fm_tab')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, t('admin.key0002'))), /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: isFlow ? pathname : \"/\".concat(appId, \"/admin/flow\"),\n    className: isFlow ? _HeaderLayout.default.curr : '',\n    \"data-nc-action\": createUiActionDataStr('tb_fg_tab')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, t('admin.key0006'))), /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: isPermission ? pathname : \"/\".concat(appId, \"/admin/permission\"),\n    className: isPermission ? _HeaderLayout.default.curr : '',\n    \"data-nc-action\": createUiActionDataStr('tb_pm_tab')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, t('admin.key0005'))), /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: isSetting ? pathname : \"/\".concat(appId, \"/admin/setting\"),\n    className: isSetting ? _HeaderLayout.default.curr : '',\n    \"data-nc-action\": createUiActionDataStr('tb_am_tab')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, t('admin.key0003'))), /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: isPublish ? pathname : \"/\".concat(appId, \"/admin/publish\"),\n    className: isPublish ? _HeaderLayout.default.curr : '',\n    \"data-nc-action\": createUiActionDataStr('tb_ps_tab')\n  }, /*#__PURE__*/_react.default.createElement(\"p\", null, t('admin.key0004')))), /*#__PURE__*/_react.default.createElement(_Header.default.Right, {\n    className: _HeaderLayout.default.user\n  }, templateEnabled && isAdminUser && /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: showTemplateModal,\n    size: \"small\",\n    type: \"text\",\n    className: _HeaderLayout.default.text_btn,\n    \"data-nc-action\": createUiActionDataStr('tb_sat'),\n    text: \"\\u4FDD\\u5B58\\u4E3A\\u6A21\\u677F\",\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'baocunweimoban'\n    }\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    className: _HeaderLayout.default.ask,\n    size: \"small\",\n    onClick: handleOpenUserPage,\n    \"data-nc-action\": createUiActionDataStr('tb_access')\n  }, \"\\u8BBF\\u95EE\"))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.app_container\n  }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null)), /*#__PURE__*/_react.default.createElement(_SaveAppTemplate.default, {\n    title: \"\\u4FDD\\u5B58\\u4E3A\\u5E94\\u7528\\u6A21\\u677F\",\n    value: templateInfo.value,\n    visible: templateInfo.visible,\n    imageFileserver: imageFileserver,\n    setVisible: function setVisible(vi) {\n      return dispatchTemplateInfo({\n        visible: vi\n      });\n    },\n    onConfirm: debounceHandleTemplateConfirm,\n    confirmBtnProps: {\n      'data-nc-action': createUiActionDataStr('sat_comf')\n    },\n    copyDataProps: {\n      appId: appId,\n      formId: targetFormId,\n      action: 'sat_ke'\n    }\n  }));\n};\nvar _default = exports[\"default\"] = AdminHeaderLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/admin/HeaderLayout.tsx\n");

/***/ }),

/***/ "./src/web/layout/admin/LeftLayout.tsx":
/*!*********************************************!*\
  !*** ./src/web/layout/admin/LeftLayout.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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/objectWithoutProperties.js\"));\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.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 _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\"));\nvar _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\"));\nvar _splice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/splice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _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 _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _LeftLayout = _interopRequireDefault(__webpack_require__(/*! ./LeftLayout.less */ \"./src/web/layout/admin/LeftLayout.less\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _admin = __webpack_require__(/*! @/actions/admin */ \"./src/actions/admin.js\");\nvar _CreateFormModal = _interopRequireDefault(__webpack_require__(/*! @/web/component/admin/CreateFormModal */ \"./src/web/component/admin/CreateFormModal.tsx\"));\nvar _CreateForm = _interopRequireWildcard(__webpack_require__(/*! @/web/component/admin/CreateForm */ \"./src/web/component/admin/CreateForm.tsx\"));\nvar _menuTreeUtil = __webpack_require__(/*! @/utils/menuTreeUtil */ \"./src/utils/menuTreeUtil.js\");\nvar _lodash = _interopRequireDefault(__webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\"));\nvar _useMenuGroup = __webpack_require__(/*! @/hooks/useMenuGroup */ \"./src/hooks/useMenuGroup.js\");\nvar _TreeNodeTitle = __webpack_require__(/*! @/web/component/common/TreeNodeTitle */ \"./src/web/component/common/TreeNodeTitle.tsx\");\nvar _CreateGroupModal = _interopRequireDefault(__webpack_require__(/*! @/web/component/admin/CreateGroupModal */ \"./src/web/component/admin/CreateGroupModal.jsx\"));\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 _TreeLeafIconSelector = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/TreeLeafIconSelector */ \"./src/web/component/common/TreeLeafIconSelector.tsx\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _empty = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/empty.png */ \"./assets/img/empty.png\"));\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 _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _AdminLeftLayoutSkeleton = __webpack_require__(/*! @/web/component/skeleton/AdminLeftLayoutSkeleton */ \"./src/web/component/skeleton/AdminLeftLayoutSkeleton.ts\");\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _HomeContainer = _interopRequireDefault(__webpack_require__(/*! ../../component/home/HomeContainer */ \"./src/web/component/home/HomeContainer.tsx\"));\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _excluded = [\"name\", \"key\", \"formId\", \"canAddChildGroup\", \"type\"];\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; } // import useDefaultFormId from '@/web/layout/common/useDefaultFormId'\n/**\n * 应用管理左侧UI\n * @returns jsx\n */\nvar MAX_GROUP_DEPTH = 2; // 分组最大层级\nvar AppLeftLayout = function AppLeftLayout(props) {\n  // const [defaultFormId, setDefaultFormId] = useDefaultFormId('admin')\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId,\n    formId = _useParams.targetFormId; // 应用ID\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    modalVisible = _useState2[0],\n    setModalVisible = _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  var _useState3 = (0, _react.useState)([]),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    data = _useState4[0],\n    setData = _useState4[1]; // 菜单树数据\n  var _useState5 = (0, _react.useState)(''),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    value = _useState6[0],\n    setValue = _useState6[1];\n  var _useCreateMenuGroup = (0, _useMenuGroup.useCreateMenuGroup)(appId),\n    _useCreateMenuGroup2 = (0, _slicedToArray2.default)(_useCreateMenuGroup, 2),\n    createGroup = _useCreateMenuGroup2[0],\n    updateGroup = _useCreateMenuGroup2[1];\n  var _useState7 = (0, _react.useState)({}),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    selectedNode = _useState8[0],\n    setSelectedNode = _useState8[1];\n  var navigate = (0, _useNocodeNavigate.default)(); // 导航\n  var _useState9 = (0, _react.useState)(''),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    scrollTokey = _useState10[0],\n    setScrollToKey = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    showCreateGroupModal = _useState12[0],\n    setShowCreateGroupModal = _useState12[1];\n  var _useState13 = (0, _react.useState)(false),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    showCreateChildGroupModal = _useState14[0],\n    setShowCreateChildGroupModal = _useState14[1];\n  var _useState15 = (0, _react.useState)(''),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    parentGroupKey = _useState16[0],\n    setParentGroupKey = _useState16[1];\n  var _useState17 = (0, _react.useState)(false),\n    _useState18 = (0, _slicedToArray2.default)(_useState17, 2),\n    showEmpty = _useState18[0],\n    setShowEmpty = _useState18[1];\n  var _useState19 = (0, _react.useState)(),\n    _useState20 = (0, _slicedToArray2.default)(_useState19, 2),\n    svgData = _useState20[0],\n    setSvgData = _useState20[1];\n  var _useState21 = (0, _react.useState)(false),\n    _useState22 = (0, _slicedToArray2.default)(_useState21, 2),\n    loadForm = _useState22[0],\n    setLoadform = _useState22[1];\n  var _useState23 = (0, _react.useState)(true),\n    _useState24 = (0, _slicedToArray2.default)(_useState23, 2),\n    dragAble = _useState24[0],\n    setDragAble = _useState24[1];\n  var _useState25 = (0, _react.useState)(false),\n    _useState26 = (0, _slicedToArray2.default)(_useState25, 2),\n    init = _useState26[0],\n    setInit = _useState26[1];\n  var _useAppContext = (0, _useAppContext2.default)(),\n    dispatch = _useAppContext.dispatch,\n    state = _useAppContext.state;\n  var rootConfig = state.rootConfig;\n  var dataRef = (0, _react.useRef)();\n  var svgRef = (0, _react.useRef)();\n  (0, _react.useEffect)(function () {\n    dataRef.current = data;\n  }, [data]);\n  (0, _react.useEffect)(function () {\n    svgRef.current = svgData;\n  }, [svgData]);\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\n  // 点击树节点\n  var onExpand = function onExpand(expandedKeys, info) {\n    setExpandedKeys(expandedKeys);\n  };\n  // 创建表单\n  var onNewForm = (0, _react.useCallback)(function () {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    setModalVisible(true);\n  }, [rootConfig]);\n  // 创建组\n  var handleShowCreateGroupModal = (0, _react.useCallback)(function () {\n    setShowCreateGroupModal(true);\n  }, []);\n  var handleCreateNewGroup = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(name) {\n      var parentId,\n        treeData,\n        length,\n        _node$children,\n        node,\n        _yield$createGroup,\n        id,\n        newGroup,\n        _args = arguments;\n      return _regenerator.default.wrap(function _callee$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            parentId = _args.length > 1 && _args[1] !== undefined ? _args[1] : '';\n            if (name) {\n              _context3.next = 4;\n              break;\n            }\n            (0, _utils.showNotice)('error', '分组名称不能为空');\n            return _context3.abrupt(\"return\");\n          case 4:\n            treeData = _lodash.default.cloneDeep(data);\n            length = treeData.length;\n            if (parentId) {\n              node = (0, _menuTreeUtil.getNodeById)(treeData, parentId);\n              length = (node === null || node === void 0 || (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children.length) || 0;\n            }\n            setShowCreateGroupModal(false);\n            setShowCreateChildGroupModal(false);\n            _context3.next = 11;\n            return createGroup(name, parentId, length);\n          case 11:\n            _yield$createGroup = _context3.sent;\n            id = _yield$createGroup.id;\n            setExpandedKeys((0, _concat.default)(expandedKeys).call(expandedKeys, parentId));\n            newGroup = {\n              // title: renderTitle(name, id, ''),\n              // icon: renderIcon('', '', '', false),\n              parentId: parentId,\n              key: id,\n              id: id,\n              seq: length,\n              formId: '',\n              formNumber: '',\n              selectable: false,\n              name: name\n            };\n            if (treeData.length <= 0 || parentId === '') {\n              setData((0, _menuTreeUtil.transformTreeData)((0, _concat.default)(treeData).call(treeData, newGroup), function (titleInfo) {\n                return renderTitle(titleInfo, svgData);\n              }, function (nodeIfo) {\n                return renderIcon(nodeIfo, svgData);\n              }, MAX_GROUP_DEPTH));\n            } else {\n              (0, _menuTreeUtil.loopAddMenu)(treeData, parentId, newGroup);\n              setData((0, _menuTreeUtil.transformTreeData)(treeData, function (titleInfo) {\n                return renderTitle(titleInfo, svgData);\n              }, function (nodeIfo) {\n                return renderIcon(nodeIfo, svgData);\n              }, MAX_GROUP_DEPTH));\n            }\n            setShowEmpty(false);\n          case 17:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee);\n    }));\n    return function (_x) {\n      return _ref.apply(this, arguments);\n    };\n  }(), [data, selectedNode, createGroup, formId, expandedKeys, svgData]);\n\n  // 表单菜单信息\n  var formMenuInfo = (0, _react.useMemo)(function () {\n    var _data$slice = (0, _slice.default)(data).call(data, -1),\n      _data$slice2 = (0, _slicedToArray2.default)(_data$slice, 1),\n      lastMenu = _data$slice2[0];\n    var maxSeq = lastMenu ? lastMenu.seq + 1 : 0;\n    return (0, _CreateForm.createMenuInfo)({\n      seq: maxSeq\n    });\n  }, [data]);\n\n  // withCache：ture时先取缓存数据（首屏优化），false时直接请求（刷新用）\n  var loadFormList = (0, _react.useCallback)(function (id) {\n    var withCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n    // 传递过来的优先，支持根据id去选中，导入excel创建表单的时候会用到\n    var selectFormId = id || formId;\n    var handleData = function handleData(values) {\n      var _values$, _values$2;\n      var datas = ((_values$ = values[0]) === null || _values$ === void 0 ? void 0 : _values$.row) || {}; // 背景颜色及SVG\n      var rows = ((_values$2 = values[1]) === null || _values$2 === void 0 ? void 0 : _values$2.rows) || [];\n      (0, _reactDom.unstable_batchedUpdates)(function () {\n        setSvgData(datas);\n        setShowEmpty(rows.length <= 0);\n        setLoadform(true);\n        var data = (0, _menuTreeUtil.transformTreeData)(rows, function (titleInfo) {\n          return renderTitle(titleInfo, datas);\n        }, function (nodeInfo) {\n          return renderIcon(nodeInfo, datas);\n        }, MAX_GROUP_DEPTH);\n        setData(data);\n        setInit(true);\n        if (!selectFormId) {\n          var _context4;\n          var treeFirstFormNode = (0, _menuTreeUtil.getTreeFirstFormNode)(rows);\n          setSelectedNode(treeFirstFormNode);\n          var key = treeFirstFormNode.key;\n          setScrollToKey(key);\n          treeFirstFormNode.formId && navigate((0, _concat.default)(_context4 = \"/\".concat(appId, \"/admin/\")).call(_context4, treeFirstFormNode.formId));\n        } else {\n          var node = (0, _menuTreeUtil.getNodeByFormId)(rows, selectFormId);\n          setSelectedNode(node);\n          var _key = node === null || node === void 0 ? void 0 : node.key;\n          setScrollToKey(_key);\n          if (selectFormId !== formId) {\n            var _context5;\n            navigate((0, _concat.default)(_context5 = \"/\".concat(appId, \"/admin/\")).call(_context5, selectFormId));\n          }\n        }\n      });\n      // 下述代码selectFormId存在的时候，还是会去拿一次首节点\n      // const treeFirstFormNode = getTreeFirstFormNode(res.rows)\n      // const key = selectFormId ? getNodeKeyByFormId(res.rows, selectFormId) : treeFirstFormNode.key\n      // setScrollToKey(key)\n      // setSelectedNode(key)\n      // !selectFormId && treeFirstFormNode.formId && navigate(`/${appId}/admin/${treeFirstFormNode.formId}`)\n    };\n    var promise = withCache ? (0, _menuTreeUtil.getMenuTreeData)(appId, handleData) : _promise.default.all([(0, _home.getLineIconAndColor)(), (0, _apps.getFormList)(appId)]).then(handleData);\n    // 获取树列表\n    return promise.catch(function (e) {\n      (0, _utils.showNotice)('error', e.message);\n      setLoadform(false);\n      return _promise.default.reject(e);\n    });\n  }, [appId, formId]);\n  var refreshAppAdminList = (0, _react.useCallback)(function (formId) {\n    loadFormList(formId, false);\n  }, [loadFormList]);\n\n  // 初始化\n  (0, _react.useEffect)(function () {\n    loadFormList(formId);\n  }, []);\n  (0, _react.useEffect)(function () {\n    _eventEmit.default.on(_constants.REFRESH_APP_ADMIN_MENU_LIST, refreshAppAdminList);\n    return function () {\n      _eventEmit.default.off(_constants.REFRESH_APP_ADMIN_MENU_LIST, refreshAppAdminList);\n    };\n  }, [refreshAppAdminList]);\n  var handleClickNewCustomPage = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n    var closeMessage, image, params;\n    return _regenerator.default.wrap(function _callee2$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          if ((0, _utils.isCNLanguage)(rootConfig)) {\n            _context6.next = 2;\n            break;\n          }\n          return _context6.abrupt(\"return\", (0, _utils.showNotice)('warnning', _constants.LANG_INVALID));\n        case 2:\n          closeMessage = (0, _utils.showLoadingMessage)('正在创建卡片看板，请稍候...');\n          image = 'nocode/v2/nocode_sys/common/svgs/create_svg_line?color=%23FF991C&svg=svg90'; // 创建表单\n          params = [{\n            name: '卡片看板',\n            type: 'custom',\n            menuInfo: _objectSpread(_objectSpread({}, formMenuInfo), {}, {\n              image: image\n            })\n          }];\n          (0, _admin.createForm)(appId, params).then(function (res) {\n            var number = res.result[0].number;\n            // navigate(`/${appId}/admin/${number}`)\n            refreshAppAdminList(number);\n            closeMessage({\n              type: 'success',\n              content: '创建卡片看板成功'\n            });\n          }).catch(function (e) {\n            var message = e.message;\n            closeMessage({\n              type: 'error',\n              content: message\n            });\n          });\n        case 6:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee2);\n  })), [data, appId, formId, refreshAppAdminList, formMenuInfo, rootConfig]);\n\n  /**\n  * 创建FORM菜单, UI\n  */\n  var DropMenu = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, null, /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n      onClick: onNewForm,\n      className: _LeftLayout.default.new_page_item,\n      \"data-nc-action\": createUiActionDataStr('sa_fm_cf')\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _LeftLayout.default.pop_form\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _LeftLayout.default.item\n    }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"danju\"\n    })), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _LeftLayout.default.title\n    }, \"\\u65B0\\u5EFA\\u8868\\u5355\"), /*#__PURE__*/_react.default.createElement(\"p\", null, \"\\u6570\\u636E\\u6536\\u96C6\\u3001\\u4E8B\\u4EF6\\u8DDF\\u8FDB\"))))), /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n      onClick: handleClickNewCustomPage,\n      className: _LeftLayout.default.new_page_item,\n      \"data-nc-action\": createUiActionDataStr('sa_fm_cf')\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _LeftLayout.default.pop_form\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _LeftLayout.default.item\n    }, /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      className: _LeftLayout.default.item_custom,\n      prefix: \"nocodeplatformicon\",\n      type: \"moban2\"\n    })), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _LeftLayout.default.title\n    }, \"\\u65B0\\u5EFA\\u5361\\u7247\\u770B\\u677F\"), /*#__PURE__*/_react.default.createElement(\"p\", null, \"\\u7EDF\\u8BA1\\u5206\\u6790\\u3001\\u5FEB\\u901F\\u64CD\\u4F5C\"))))), /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n      className: _LeftLayout.default.pop_group,\n      onClick: handleShowCreateGroupModal,\n      \"data-nc-action\": createUiActionDataStr('sa_fm_cg')\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"zengjia-yuan\"\n    }), /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u65B0\\u5EFA\\u5206\\u7EC4\")));\n  }, [onNewForm, handleClickNewCustomPage, handleShowCreateGroupModal]);\n  var _onDelete = function onDelete(nodekey, formId, svgData, type) {\n    // todo 删除分组时要查找所有子表单然后逐个删除\n    var afterDeleteTreeNode = function afterDeleteTreeNode(nodekey) {\n      var treeData = _lodash.default.cloneDeep(dataRef.current);\n      loopDelete(treeData, nodekey);\n      var newData = (0, _menuTreeUtil.transformTreeData)(treeData, function (titleInfo) {\n        return renderTitle(titleInfo, svgData);\n      }, function (nodeIfo) {\n        return renderIcon(nodeIfo, svgData);\n      }, MAX_GROUP_DEPTH);\n      (0, _reactDom.unstable_batchedUpdates)(function () {\n        var _context7;\n        setData(newData);\n        if (treeData.length <= 0) {\n          setShowEmpty(true);\n        }\n        var treeFirstFormNode = (0, _menuTreeUtil.getTreeFirstFormNode)(newData);\n        var key = treeFirstFormNode.key;\n        setScrollToKey(key);\n        setSelectedNode(treeFirstFormNode);\n        navigate((0, _concat.default)(_context7 = \"/\".concat(appId, \"/admin/\")).call(_context7, treeFirstFormNode.formId || ''));\n      });\n    };\n    if (!formId) {\n      (0, _utils.showDeleteConfirmModal)({\n        title: '',\n        message: '确定要删除该分组吗？',\n        detail: '',\n        onOk: function onOk() {\n          (0, _admin.deleteMenu)(appId, nodekey).then(function (res) {\n            afterDeleteTreeNode(nodekey);\n            (0, _utils.showNotice)('success', '删除成功');\n          }).catch(function (err) {\n            (0, _utils.showNotice)('error', err.message);\n          });\n        },\n        onCancel: function onCancel() {}\n      });\n    } else {\n      var isCustom = (0, _utils.isCustomPage)(type);\n      (0, _utils.showDeleteConfirmModal)({\n        title: '',\n        message: \"\\u786E\\u5B9A\\u8981\\u5220\\u9664\\u8BE5\".concat(isCustom ? '卡片看板' : '表单', \"\\u5417\\uFF1F\"),\n        detail: \"\\u5220\\u9664\\u540E\".concat(isCustom ? '卡片看板中的所有卡片' : '所有相关的表单记录', \"\\u5C06\\u88AB\\u5220\\u9664\"),\n        onOk: function onOk() {\n          (0, _admin.deleteMenu)(appId, nodekey).then(function (res) {\n            afterDeleteTreeNode(nodekey);\n            (0, _utils.showNotice)('success', '删除成功');\n          }).catch(function (err) {\n            (0, _utils.showNotice)('error', err.message);\n          });\n        },\n        onCancel: function onCancel() {}\n      });\n    }\n    var loopDelete = function loopDelete(data, nodekey) {\n      for (var i = 0; i < data.length; i++) {\n        if (data[i].key === nodekey) {\n          (0, _splice.default)(data).call(data, i, 1);\n        } else {\n          data[i].children && loopDelete(data[i].children, nodekey);\n        }\n      }\n    };\n  };\n  var isGroupNode = function isGroupNode(formId) {\n    return !formId;\n  };\n  var onEditName = function onEditName(formId, nodeKey, value) {\n    var loop = function loop(data) {\n      data.forEach(function (node) {\n        if (node.key === nodeKey) {\n          node.name = value;\n        } else if (node.children) {\n          loop(node.children);\n        }\n      });\n    };\n    var newData = _lodash.default.cloneDeep(dataRef.current);\n    loop(newData);\n    setData((0, _menuTreeUtil.transformTreeData)(newData, function (titleInfo) {\n      return renderTitle(titleInfo, svgRef.current);\n    }, function (nodeIfo) {\n      return renderIcon(nodeIfo, svgRef.current);\n    }, MAX_GROUP_DEPTH));\n  };\n  var onAddChildGroup = function onAddChildGroup(menuId) {\n    setShowCreateChildGroupModal(true);\n    setParentGroupKey(menuId);\n  };\n  var onCopy = function onCopy(info) {\n    var formId = info.formId,\n      name = info.name,\n      parentId = info.parentId,\n      seq = info.seq,\n      image = info.image;\n    var closeMessage = (0, _utils.showLoadingMessage)('复制中，请稍候...');\n    var params = {\n      appId: appId,\n      data: [{\n        sourceFormId: formId,\n        name: name + '-复制',\n        menuInfo: {\n          parentId: parentId,\n          image: image,\n          seq: seq\n        }\n      }]\n    };\n    (0, _admin.copyForm)(params).then(function (res) {\n      var _res$result$ = res === null || res === void 0 ? void 0 : res.result[0],\n        id = _res$result$.id,\n        number = _res$result$.number,\n        menuId = _res$result$.extra.menuId;\n      var newFormData = _objectSpread(_objectSpread({}, info), {}, {\n        id: menuId,\n        name: name + '-复制',\n        formId: id,\n        formNumber: number\n      });\n      var treeData = _lodash.default.cloneDeep(dataRef.current);\n      // 处理没有分组的情况\n      var hasAdd = (0, _menuTreeUtil.loopAddMenu)(treeData, parentId, newFormData, formId);\n      !hasAdd && treeData.push(newFormData);\n      setData((0, _menuTreeUtil.transformTreeData)(treeData, function (titleInfo) {\n        return renderTitle(titleInfo, svgRef.current);\n      }, function (nodeIfo) {\n        return renderIcon(nodeIfo, svgRef.current);\n      }, MAX_GROUP_DEPTH));\n      closeMessage({\n        type: 'success',\n        content: '复制成功'\n      });\n    }).catch(function (err) {\n      closeMessage({\n        type: 'error',\n        content: err.message\n      });\n    });\n  };\n  var onSave = function onSave(data) {\n    return (0, _admin.updateMenu)(appId, [data]).then(function () {\n      var treeData = _lodash.default.cloneDeep(dataRef.current);\n      (0, _menuTreeUtil.loopEditName)(treeData, data.id, data.name);\n      setData((0, _menuTreeUtil.transformTreeData)(treeData, function (titleInfo) {\n        return renderTitle(titleInfo, svgRef.current);\n      }, function (nodeIfo) {\n        return renderIcon(nodeIfo, svgRef.current);\n      }, MAX_GROUP_DEPTH));\n      return true;\n    });\n  };\n  var handleEditing = (0, _react.useCallback)(function (editing) {\n    setDragAble(!editing);\n  }, []);\n  var renderTitle = function renderTitle(titleInfo, svgData) {\n    var name = titleInfo.name,\n      nodeKey = titleInfo.key,\n      formId = titleInfo.formId,\n      canAddChildGroup = titleInfo.canAddChildGroup,\n      type = titleInfo.type,\n      others = (0, _objectWithoutProperties2.default)(titleInfo, _excluded);\n    return /*#__PURE__*/_react.default.createElement(_TreeNodeTitle.TreeNodeTitle, (0, _extends2.default)({\n      title: name,\n      nodeKey: nodeKey,\n      formId: formId,\n      appId: appId,\n      isGroupNode: isGroupNode(formId),\n      onDelete: function onDelete() {\n        return _onDelete(nodeKey, formId, svgData, type);\n      },\n      onEditName: onEditName,\n      onAddChildGroup: onAddChildGroup,\n      onCopy: onCopy,\n      onSave: onSave,\n      canAddChildGroup: canAddChildGroup,\n      handleEditing: handleEditing,\n      type: type\n    }, others));\n  };\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 getIcon = function getIcon(formId, icon, hasChild) {\n    var groupNode = isGroupNode(formId);\n    // 拖拽时icon格式化后会变为node，初始化时后端传过来是string\n    return groupNode ? hasChild ? '' : 'wenjianjiakai' : 'leaf';\n  };\n  var handleIconChange = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(url, nodeInfo, svgData) {\n      var id, formId, name, parentId, seq, loop, newData, data;\n      return _regenerator.default.wrap(function _callee3$(_context8) {\n        while (1) switch (_context8.prev = _context8.next) {\n          case 0:\n            id = nodeInfo.id, formId = nodeInfo.formId, name = nodeInfo.name, parentId = nodeInfo.parentId, seq = nodeInfo.seq;\n            loop = function loop(data) {\n              data.forEach(function (node) {\n                if (node.key === nodeInfo.key) {\n                  node.image = url;\n                } else if (node.children) {\n                  loop(node.children);\n                }\n              });\n            };\n            newData = _lodash.default.cloneDeep(dataRef.current);\n            loop(newData);\n            data = [{\n              id: id,\n              formId: formId,\n              name: name,\n              parentId: parentId,\n              seq: seq,\n              image: url\n            }];\n            _context8.next = 7;\n            return (0, _admin.updateMenu)(appId, data);\n          case 7:\n            setData((0, _menuTreeUtil.transformTreeData)(newData, function (titleInfo) {\n              return renderTitle(titleInfo, svgData);\n            }, function (nodeIfo) {\n              return renderIcon(nodeIfo, svgData);\n            }, MAX_GROUP_DEPTH));\n            (0, _PageEventService.publishClickUserEvent)({\n              appId: appId,\n              formId: formId,\n              action: 'sa_fm_fi'\n            });\n          case 9:\n          case \"end\":\n            return _context8.stop();\n        }\n      }, _callee3);\n    }));\n    return function handleIconChange(_x2, _x3, _x4) {\n      return _ref3.apply(this, arguments);\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    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    ? /*#__PURE__*/_react.default.createElement(_TreeLeafIconSelector.default, {\n      isLineIconStyle: true,\n      placement: \"bottomLeft\",\n      svgData: svgData,\n      image: image || _defaultIcon.DEFAULT_FORM_IMAGE,\n      onChange: function onChange(url) {\n        return handleIconChange(url, nodeInfo, svgData);\n      }\n    })\n    // KDTree不支持无子节点的node显示switch-icon，所以这里自己实现switch-icon\n    : /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      type: transformIcon,\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\n  // const [loading, init] = useLoadData(loadFormList, 200)\n\n  var hasGroudNodeChild = function hasGroudNodeChild(node) {\n    var _node$children2;\n    return !!((_node$children2 = node.children) !== null && _node$children2 !== void 0 && (0, _find.default)(_node$children2).call(_node$children2, function (n) {\n      return isGroupNode(n === null || n === void 0 ? void 0 : n.formId);\n    }));\n  };\n  var onDrop = (0, _react.useCallback)(function (info) {\n    var node = info.node,\n      dragNode = info.dragNode,\n      dragNodesKeys = info.dragNodesKeys,\n      dropPosition = info.dropPosition;\n    var dropKey = node.key;\n    var dragKey = dragNode.key;\n    if ((0, _includes.default)(dragNodesKeys).call(dragNodesKeys, dropKey)) {\n      return;\n    }\n    var isDragGroupNode = isGroupNode(dragNode.formId);\n    if (dropPosition === 0) {\n      // 有子分组的节点 | 分组插进子分组（根的level为0）\n      if (hasGroudNodeChild(dragNode) || node.level + 1 >= MAX_GROUP_DEPTH && isDragGroupNode) {\n        return;\n      }\n    } else {\n      // 落点阶层大于1时不能再插入分组\n      if (node.level > 1 && isDragGroupNode) return;\n    }\n    var dragObject;\n    // 递归删除和添加，都需要重新处理操作层级的seq\n    // 增删会产生相同节点的update信息，经过loopAdd计算完的才是最终结果(looAdd中set会覆盖更新loopDelete中updateGroupValue的seq)\n    var batchUpdateGroupValue = new _map.default();\n    if (dropKey === dragKey) return;\n    var loopDelete = function loopDelete(data, dropKey, dragKey) {\n      for (var i = 0; i < data.length; i++) {\n        if (data[i].key === dragKey) {\n          dragObject = data[i];\n          (0, _splice.default)(data).call(data, i, 1); // 删除节点后，要调整当前层级 该元素后面的元素的seq\n          for (var j = i; j < data.length; j++) {\n            var _data$j = data[j],\n              id = _data$j.id,\n              name = _data$j.name,\n              _formId = _data$j.formId,\n              image = _data$j.image,\n              parentId = _data$j.parentId;\n            var updateGroupValue = {\n              parentId: parentId,\n              seq: j,\n              id: id,\n              name: name,\n              formId: _formId,\n              image: image\n            };\n            batchUpdateGroupValue.set(id, updateGroupValue);\n          }\n        } else {\n          data[i].children && loopDelete(data[i].children, dropKey, dragKey);\n        }\n      }\n    };\n    var loopAdd = function loopAdd(data, dropKey, dragKey) {\n      var index;\n      for (var i = 0; i < data.length; i++) {\n        if (data[i].key === dropKey) {\n          index = i + dropPosition;\n          // dropPosition 指的是被拖拽节点被 drop 的位置，如插入在节点前则为 -1，在节点后则为 1，落在其上则为 0\n          if (dropPosition === -1) {\n            dragObject.parentId = node.parentId;\n            // 插入节点\n            (0, _splice.default)(data).call(data, i, 0, dragObject);\n            // 再排序seq\n            for (var j = 0; j < data.length; j++) {\n              if (index <= j) {\n                var _data$j2 = data[j],\n                  id = _data$j2.id,\n                  name = _data$j2.name,\n                  _formId2 = _data$j2.formId,\n                  image = _data$j2.image;\n                var updateGroupValue = {\n                  parentId: node.parentId,\n                  seq: j,\n                  id: id,\n                  name: name,\n                  formId: _formId2,\n                  image: image\n                };\n                batchUpdateGroupValue.set(id, updateGroupValue);\n              }\n            }\n          } else if (dropPosition === 1) {\n            dragObject.parentId = node.parentId;\n            (0, _splice.default)(data).call(data, i + 1, 0, dragObject);\n            for (var _j = 0; _j < data.length; _j++) {\n              if (index <= _j) {\n                var _data$_j = data[_j],\n                  _id = _data$_j.id,\n                  _name = _data$_j.name,\n                  _formId3 = _data$_j.formId,\n                  _image = _data$_j.image;\n                var _updateGroupValue = {\n                  parentId: node.parentId,\n                  seq: _j,\n                  id: _id,\n                  name: _name,\n                  formId: _formId3,\n                  image: _image\n                };\n                batchUpdateGroupValue.set(_id, _updateGroupValue);\n              }\n            }\n          } else {\n            data[i].children = data[i].children || [];\n            dragObject.parentId = dropKey;\n            data[i].children.push(dragObject);\n            var children = data[i].children;\n            var length = children.length;\n            var _children = children[length - 1],\n              _id2 = _children.id,\n              _name2 = _children.name,\n              _formId4 = _children.formId,\n              _image2 = _children.image;\n            var _updateGroupValue2 = {\n              parentId: dropKey,\n              seq: length - 1,\n              id: _id2,\n              name: _name2,\n              formId: _formId4,\n              image: _image2\n            };\n            batchUpdateGroupValue.set(_id2, _updateGroupValue2);\n          }\n          break;\n        } else {\n          data[i].children && loopAdd(data[i].children, dropKey, dragKey);\n        }\n      }\n    };\n    // 分组才允许放置节点\n    if (dropPosition === 0 && node.formId) {\n      return;\n    }\n    var treeData = _lodash.default.cloneDeep(data);\n    loopDelete(treeData, dropKey, dragKey);\n    loopAdd(treeData, dropKey, dragKey);\n    setData((0, _menuTreeUtil.transformTreeData)(treeData, function (titleInfo) {\n      return renderTitle(titleInfo, svgData);\n    }, function (nodeInfo) {\n      return renderIcon(nodeInfo, svgData);\n    }, MAX_GROUP_DEPTH));\n    updateGroup((0, _toConsumableArray2.default)((0, _values.default)(batchUpdateGroupValue).call(batchUpdateGroupValue)));\n  }, [data, appId, updateGroup, svgData]);\n  var onDragOver = (0, _react.useCallback)(function (info) {\n    // console.log(info.event.currentTarget)\n  }, []);\n  var filterTreeNode = (0, _react.useCallback)(function (node) {\n    var _context9;\n    if ((0, _includes.default)(_context9 = node.name).call(_context9, value)) {\n      return true;\n    }\n    return false;\n  }, [value]);\n  var onSelect = (0, _react.useCallback)(function (keys, info) {\n    var _context10;\n    setSelectedNode(info.node);\n    // setDefaultFormId(info.node.formId)\n    navigate((0, _concat.default)(_context10 = \"/\".concat(appId, \"/admin/\")).call(_context10, info.node.formId));\n  }, [navigate]);\n  var handleCloseCreateGroupModal = function handleCloseCreateGroupModal() {\n    setShowCreateGroupModal(false);\n  };\n  var handleCloseCreateChildGroupModal = function handleCloseCreateChildGroupModal() {\n    setShowCreateChildGroupModal(false);\n  };\n  var groupNodes = (0, _react.useMemo)(function () {\n    return (0, _menuTreeUtil.getGroupNodes)(data, MAX_GROUP_DEPTH);\n  }, [data]);\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: _AdminLeftLayoutSkeleton.AdminLeftLayoutSkeleton\n  }), showEmpty ? /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _LeftLayout.default.guide\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _LeftLayout.default['guide-title']\n  }, \"\\u4ECE\\u6DFB\\u52A0\\u7B2C\\u4E00\\u4E2A\\u8868\\u5355\\u5185\\u5BB9\\u5F00\\u59CB\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _LeftLayout.default['guide-tips']\n  }, \"\\u9009\\u62E9\\u4F60\\u8981\\u521B\\u5EFA\\u8868\\u5355\\u7684\\u65B9\\u5F0F\"), /*#__PURE__*/_react.default.createElement(_CreateForm.default, {\n    data: data,\n    onClose: function onClose() {\n      return setModalVisible(false);\n    }\n  })) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__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  }), /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n    trigger: \"click\",\n    menu: DropMenu,\n    popperClassName: _LeftLayout.default.new\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"jia4\"\n    }),\n    type: \"primary\"\n  }))), !loadForm ? /*#__PURE__*/_react.default.createElement(_WebUI.EmptyData, null) : /*#__PURE__*/_react.default.createElement(_kdesign.Tree, {\n    name: \"Tree\",\n    treeData: data,\n    expandedKeys: expandedKeys,\n    virtual: false,\n    defaultExpandRoot: true,\n    showIcon: true,\n    checkStrictly: true,\n    checkable: false,\n    estimatedItemSize: 44,\n    onExpand: onExpand,\n    filterTreeNode: filterTreeNode,\n    draggable: dragAble,\n    onDrop: onDrop,\n    onDragOver: onDragOver,\n    filterValue: value,\n    onSelect: onSelect,\n    selectedKeys: [selectedNode === null || selectedNode === void 0 ? void 0 : selectedNode.key],\n    switcherIcon: renderSwitcherIcon(),\n    defaultExpandParent: true,\n    setTreeNodeClassName: function setTreeNodeClassName(node) {\n      return node.formId ? '' : _LeftLayout.default['group-node-hover'];\n    },\n    scrollToKey: scrollTokey\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: selectedNode\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  })))), /*#__PURE__*/_react.default.createElement(_CreateFormModal.default, {\n    visible: modalVisible,\n    onClose: function onClose() {\n      return setModalVisible(false);\n    },\n    data: data\n  }), showCreateGroupModal && /*#__PURE__*/_react.default.createElement(_CreateGroupModal.default, {\n    title: \"\\u65B0\\u5EFA\\u5206\\u7EC4\",\n    draggable: true,\n    key: \"newGroup\"\n    // visible={showCreateGroupModal}\n    // className\n    // style\n    ,\n    selectable: groupNodes.length !== 0,\n    groupData: groupNodes,\n    mask: true,\n    onClose: handleCloseCreateGroupModal,\n    onConfirm: handleCreateNewGroup,\n    confirmBtnProps: {\n      'data-nc-action': createUiActionDataStr('sa_fm_cg_comf')\n    }\n  }), showCreateChildGroupModal && /*#__PURE__*/_react.default.createElement(_CreateGroupModal.default, {\n    title: \"\\u65B0\\u5EFA\\u5B50\\u5206\\u7EC4\",\n    draggable: true,\n    key: \"newChildGroup\"\n    // className\n    ,\n    selectable: false\n    // visible={showCreateChildGroupModal}\n    // style\n    ,\n    groupData: groupNodes,\n    mask: true,\n    onClose: handleCloseCreateChildGroupModal,\n    onConfirm: handleCreateNewGroup,\n    parentGroupKey: parentGroupKey\n    // confirmBtnProps={{ 'data-nc-action': createUiActionDataStr('sa_fm_csg') }}\n  }));\n};\nvar _default = exports[\"default\"] = _react.default.memo(AppLeftLayout);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/admin/LeftLayout.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _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 _PublishSider = _interopRequireDefault(__webpack_require__(/*! ./PublishSider.less */ \"./src/web/layout/admin/PublishSider.less\"));\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _HomeContainer = _interopRequireDefault(__webpack_require__(/*! ../../component/home/HomeContainer */ \"./src/web/component/home/HomeContainer.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-10-17 19:59:30\n * @LastEditTime: 2023-10-31 17:40:59\n * @Last Modified by: jianhang_he\n */\n\nvar AdminPublishSider = function AdminPublishSider(props) {\n  var Sider = _kdesign.Layout.Sider;\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId;\n  var navigate = (0, _useNocodeNavigate.default)();\n  var _useState = (0, _react.useState)('shareManage'),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    selectedKey = _useState2[0],\n    setSelectKey = _useState2[1];\n  var jump = (0, _react.useCallback)(function (_ref) {\n    var _context;\n    var key = _ref.key;\n    setSelectKey(key);\n    navigate((0, _concat.default)(_context = \"/\".concat(appId, \"/admin/publish/\")).call(_context, key));\n  }, [navigate]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Sider, {\n    width: 240,\n    className: _PublishSider.default.side_bar\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Menu, {\n    mode: \"inline\",\n    theme: \"light\",\n    defaultSelectedKey: \"1\",\n    onClick: jump,\n    selectedKey: selectedKey,\n    defaultOpenKeys: ['sub1'],\n    style: {\n      width: '100%',\n      height: '100%',\n      borderRight: 0\n    }\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Menu.Item, {\n    key: \"shareManage\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"danju-xian\"\n    })\n  }, \"\\u514D\\u767B\\u5206\\u4EAB\\u8BB0\\u5F55\"))), /*#__PURE__*/_react.default.createElement(_HomeContainer.default, {\n    className: _PublishSider.default.bg,\n    mainClassName: _PublishSider.default.bg_main\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Layout, {\n    className: _PublishSider.default.app_publish_container\n  }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null))));\n};\nvar _default = exports[\"default\"] = AdminPublishSider;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9hZG1pbi9QdWJsaXNoU2lkZXIudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFPQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBWkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBUUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFJQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFHQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBTUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2FkbWluL1B1Ymxpc2hTaWRlci50c3g/NDRlMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogQERlc2NyaXB0aW9uOlxuICogQEF1dGhvcjogamlhbmhhbmdfaGVcbiAqIEBEYXRlOiAyMDIzLTEwLTE3IDE5OjU5OjMwXG4gKiBATGFzdEVkaXRUaW1lOiAyMDIzLTEwLTMxIDE3OjQwOjU5XG4gKiBATGFzdCBNb2RpZmllZCBieTogamlhbmhhbmdfaGVcbiAqL1xuaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgT3V0bGV0LCB1c2VQYXJhbXMgfSBmcm9tICdyZWFjdC1yb3V0ZXItZG9tJ1xuaW1wb3J0IHsgTGF5b3V0LCBNZW51LCBJY29uIH0gZnJvbSAnQGtkY2xvdWRqcy9rZGVzaWduJ1xuaW1wb3J0IHN0eWxlIGZyb20gJy4vUHVibGlzaFNpZGVyLmxlc3MnXG5pbXBvcnQgdXNlTmF2aWdhdGUgZnJvbSAnQC9yb3V0ZS91c2VOb2NvZGVOYXZpZ2F0ZSdcbmltcG9ydCBCZ0NvbnRhaW5lciBmcm9tICcuLi8uLi9jb21wb25lbnQvaG9tZS9Ib21lQ29udGFpbmVyJ1xuXG5jb25zdCBBZG1pblB1Ymxpc2hTaWRlciA9IChwcm9wczphbnkpID0+IHtcbiAgY29uc3QgeyBTaWRlciB9ID0gTGF5b3V0XG4gIGNvbnN0IHsgYXBwSWQgfSA9IHVzZVBhcmFtcyhwcm9wcylcbiAgY29uc3QgbmF2aWdhdGUgPSB1c2VOYXZpZ2F0ZSgpXG4gIGNvbnN0IFtzZWxlY3RlZEtleSwgc2V0U2VsZWN0S2V5XSA9IHVzZVN0YXRlKCdzaGFyZU1hbmFnZScpXG4gIGNvbnN0IGp1bXAgPSB1c2VDYWxsYmFjaygoeyBrZXkgfSkgPT4ge1xuICAgIHNldFNlbGVjdEtleShrZXkpXG4gICAgbmF2aWdhdGUoYC8ke2FwcElkfS9hZG1pbi9wdWJsaXNoLyR7a2V5fWApXG4gIH0sIFtuYXZpZ2F0ZV0pXG4gIHJldHVybiAoXG4gICAgPD5cbiAgICAgIDxTaWRlciB3aWR0aD17MjQwfSBjbGFzc05hbWU9e3N0eWxlLnNpZGVfYmFyfT5cbiAgICAgICAgPE1lbnVcbiAgICAgICAgICBtb2RlPSdpbmxpbmUnXG4gICAgICAgICAgdGhlbWU9J2xpZ2h0J1xuICAgICAgICAgIGRlZmF1bHRTZWxlY3RlZEtleT0nMSdcbiAgICAgICAgICBvbkNsaWNrPXtqdW1wfVxuICAgICAgICAgIHNlbGVjdGVkS2V5PXtzZWxlY3RlZEtleX1cbiAgICAgICAgICBkZWZhdWx0T3BlbktleXM9e1snc3ViMSddfVxuICAgICAgICAgIHN0eWxlPXt7IHdpZHRoOiAnMTAwJScsIGhlaWdodDogJzEwMCUnLCBib3JkZXJSaWdodDogMCB9fVxuICAgICAgICA+XG4gICAgICAgICAgey8qIDxNZW51Lkl0ZW0ga2V5PSdiYXNlJyBpY29uPXs8SWNvbiBwcmVmaXg9J25vY29kZXBsYXRmb3JtaWNvbicgdHlwZT0nZmFidXNoZXpoaScgLz59PuWPkeW4g+iuvue9rjwvTWVudS5JdGVtPlxuICAgICAgICAgIDxNZW51Lkl0ZW0ga2V5PSdjaGFubmVscycgaWNvbj17PEljb24gcHJlZml4PSdub2NvZGVwbGF0Zm9ybWljb24nIHR5cGU9J2ZhYnVxdWRhbycgLz59PuWPkeW4g+a4oOmBkzwvTWVudS5JdGVtPiAqL31cbiAgICAgICAgICA8TWVudS5JdGVtIGtleT0nc2hhcmVNYW5hZ2UnIGljb249ezxJY29uIHByZWZpeD0nbm9jb2RlcGxhdGZvcm1pY29uJyB0eXBlPSdkYW5qdS14aWFuJyAvPn0+5YWN55m75YiG5Lqr6K6w5b2VPC9NZW51Lkl0ZW0+XG4gICAgICAgIDwvTWVudT5cbiAgICAgIDwvU2lkZXI+XG4gICAgICA8QmdDb250YWluZXIgY2xhc3NOYW1lPXtzdHlsZS5iZ30gbWFpbkNsYXNzTmFtZT17c3R5bGUuYmdfbWFpbn0+XG4gICAgICAgIDxMYXlvdXQgY2xhc3NOYW1lPXtzdHlsZS5hcHBfcHVibGlzaF9jb250YWluZXJ9PlxuICAgICAgICAgIDxPdXRsZXQgLz5cbiAgICAgICAgPC9MYXlvdXQ+XG4gICAgICA8L0JnQ29udGFpbmVyPlxuICAgIDwvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFkbWluUHVibGlzaFNpZGVyXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/admin/PublishSider.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _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 _SettingSider = _interopRequireDefault(__webpack_require__(/*! ./SettingSider.less */ \"./src/web/layout/admin/SettingSider.less\"));\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _HomeContainer = _interopRequireDefault(__webpack_require__(/*! ../../component/home/HomeContainer */ \"./src/web/component/home/HomeContainer.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-10-17 19:59:30\n * @LastEditTime: 2024-07-17 10:15:00\n * @Last Modified by: jianhang_he\n */\n\n/**\n * 应用设计时--应用设置左侧菜单\n * @param {Object} props\n * @returns\n */\nvar AdminSettingSider = function AdminSettingSider(props) {\n  var Sider = _kdesign.Layout.Sider;\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId;\n  var location = (0, _reactRouterDom.useLocation)();\n  var _useState = (0, _react.useState)('base'),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    selectKey = _useState2[0],\n    setSelectKey = _useState2[1];\n  var key = (0, _react.useMemo)(function () {\n    var _location$pathname$sp;\n    return (_location$pathname$sp = location.pathname.split(\"/\".concat(appId, \"/admin/setting/\"))) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[1];\n  }, [location]);\n  var navigate = (0, _useNocodeNavigate.default)();\n  // 切换菜单\n  var jump = (0, _react.useCallback)(function (_ref) {\n    var _context;\n    var key = _ref.key,\n      item = _ref.item,\n      keyPath = _ref.keyPath;\n    console.log(key, item, keyPath);\n    setSelectKey(key);\n    navigate((0, _concat.default)(_context = \"/\".concat(appId, \"/admin/setting/\")).call(_context, key));\n  }, [navigate]);\n  (0, _react.useEffect)(function () {\n    setSelectKey(key);\n  }, [key]);\n  var appPerm = JSON.parse(window.localStorage.getItem('NOCODE_APP_PERM') || '');\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Sider, {\n    width: 240,\n    className: _SettingSider.default.side_bar\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Menu, {\n    mode: \"inline\",\n    theme: \"light\",\n    onClick: jump,\n    defaultSelectedKey: \"1\",\n    selectedKey: selectKey,\n    defaultOpenKeys: ['sub1'],\n    style: {\n      width: '100%',\n      height: '100%',\n      borderRight: 0\n    }\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Menu.Item, {\n    key: \"base\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"jichushezhi\"\n    })\n  }, \"\\u57FA\\u7840\\u8BBE\\u7F6E\"), /*#__PURE__*/_react.default.createElement(_kdesign.Menu.Item, {\n    key: \"get\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"yingyongquanxian\"\n    })\n  }, \"\\u83B7\\u53D6\\u8868\\u5355\\u6743\\u9650\"), /*#__PURE__*/_react.default.createElement(_kdesign.Menu.Item, {\n    key: \"set\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"danju-xian\"\n    })\n  }, \"\\u6388\\u4E88\\u8868\\u5355\\u6743\\u9650\"), (appPerm === null || appPerm === void 0 ? void 0 : appPerm.apiEnabled) && /*#__PURE__*/_react.default.createElement(_kdesign.Menu.Item, {\n    key: \"api\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"APIqingqiu2\"\n    })\n  }, \"API\\u6587\\u6863\"))), /*#__PURE__*/_react.default.createElement(_HomeContainer.default, {\n    className: _SettingSider.default.bg,\n    mainClassName: _SettingSider.default.bg_main\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Layout, {\n    className: _SettingSider.default.container\n  }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null))));\n};\nvar _default = exports[\"default\"] = _react.default.memo(AdminSettingSider);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/admin/SettingSider.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _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 _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _AdminHomePage = _interopRequireDefault(__webpack_require__(/*! ./AdminHomePage.less */ \"./src/web/pages/admin/home/AdminHomePage.less\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _env = __webpack_require__(/*! @/constants/env */ \"./src/constants/env.js\");\nvar _listSettingUtil = __webpack_require__(/*! @/utils/listSettingUtil */ \"./src/utils/listSettingUtil.js\");\nvar _menuTableUtil = __webpack_require__(/*! @/utils/menuTableUtil */ \"./src/utils/menuTableUtil.js\");\nvar _empty = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/empty.png */ \"./assets/img/empty.png\"));\nvar _useFormDataList3 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFormDataList */ \"./src/hooks/useFormDataList.ts\"));\nvar _Statistic = _interopRequireDefault(__webpack_require__(/*! @/web/component/apps/Statistic */ \"./src/web/component/apps/Statistic/index.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar menuTableActions = _interopRequireWildcard(__webpack_require__(/*! @/utils/menuTableActions */ \"./src/utils/menuTableActions.ts\"));\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _custom = _interopRequireDefault(__webpack_require__(/*! ../../../component/custom */ \"./src/web/component/custom/index.tsx\"));\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// import StatDrawer from '@/web/component/apps/StatDrawer'\n\nvar options = {\n  loadMore: false,\n  updateFooter: true,\n  isMob: false,\n  operateCol: {\n    needOperateCol: true,\n    width: 200,\n    disabled: true\n  }\n};\nvar colOperations = [{\n  name: '详情',\n  major: true\n}, {\n  name: '编辑',\n  major: true\n}, {\n  name: '删除',\n  danger: true\n}];\nvar AdminFormList = (0, _react.memo)(function (props) {\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    t = _useTranslation.t;\n  var para = (0, _reactRouterDom.useParams)(props);\n  var appId = para.appId,\n    formId = para.targetFormId;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    statVisible = _useState2[0],\n    setStatVisible = _useState2[1];\n  var navigate = (0, _useNocodeNavigate.default)();\n  var _useFormDataList = (0, _useFormDataList3.default)({\n      appId: appId,\n      formId: formId,\n      env: _env.ENV_ADMIN\n    }, options, menuTableActions),\n    _useFormDataList2 = (0, _slicedToArray2.default)(_useFormDataList, 3),\n    formDataListState = _useFormDataList2[0],\n    actions = _useFormDataList2[1],\n    TableContext = _useFormDataList2[2];\n  var 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    listFilterConfig = formDataListState.listFilterConfig,\n    listItemConfig = formDataListState.listItemConfig,\n    configuredFilterItems = formDataListState.configuredFilterItems,\n    listFilters = formDataListState.listFilters,\n    colHeadFilters = formDataListState.colHeadFilters,\n    formName = formDataListState.formName,\n    loading = formDataListState.loading,\n    orderInfo = formDataListState.orderInfo,\n    colHeadFilter = formDataListState.colHeadFilter,\n    enumFilterValue = formDataListState.enumFilterValue,\n    stateInfo = formDataListState.stateInfo;\n  var onAfterAddRows = actions.onAfterAddRows,\n    onPaginationChange = actions.onPaginationChange,\n    onListSettingConfirm = actions.onListSettingConfirm,\n    onFilterItemDelete = actions.onFilterItemDelete,\n    onFilterConfirm = actions.onFilterConfirm,\n    onRefresh = actions.onRefresh,\n    onSearch = actions.onSearch,\n    onChangeFilters = actions.onChangeFilters,\n    onSetShowFilterSettingPop = actions.onSetShowFilterSettingPop,\n    onSetShowListSettingPop = actions.onSetShowListSettingPop,\n    onAggCellChange = actions.onAggCellChange,\n    getEnumFilterValue = actions.getEnumFilterValue,\n    _onAggVisibleChange = actions.onAggVisibleChange,\n    onColFilterConfirm = actions.onColFilterConfirm,\n    onRowDelete = actions.onRowDelete,\n    onColSort = actions.onColSort,\n    onColHeadFilterVisibleChange = actions.onColHeadFilterVisibleChange,\n    onGetEnumFilterValue = actions.onGetEnumFilterValue;\n  var onChange = function onChange(pageNo, pageSize) {\n    onPaginationChange === null || onPaginationChange === void 0 || onPaginationChange(pageNo, pageSize);\n  };\n  var handleClickListSetting = (0, _react.useCallback)(function () {\n    onSetShowListSettingPop(true);\n  }, [onSetShowListSettingPop]);\n  var handleCloseListSetting = (0, _react.useCallback)(function () {\n    onSetShowListSettingPop(false);\n  }, [onSetShowListSettingPop]);\n  var handleClickFilterSetting = (0, _react.useCallback)(function () {\n    onSetShowFilterSettingPop(true);\n  }, [onSetShowFilterSettingPop]);\n  var handleCloseFilterSetting = (0, _react.useCallback)(function () {\n    onSetShowFilterSettingPop(false);\n  }, [onSetShowFilterSettingPop]);\n  var handleClickStat = (0, _react.useCallback)(function () {\n    setStatVisible(true);\n  }, []);\n  var filterOperateColMemo = (0, _react.useMemo)(function () {\n    return (0, _menuTableUtil.filterOperateCol)(columns);\n  }, [columns]);\n  var handleListSettingConfirm = (0, _react.useCallback)(function (keys, lockIndex, listData) {\n    // listData排序后的数据\n    onListSettingConfirm === null || onListSettingConfirm === void 0 || onListSettingConfirm(keys, lockIndex, listData);\n  }, [onListSettingConfirm]);\n  var handleFilterConfirm = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(values) {\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            onFilterConfirm === null || onFilterConfirm === void 0 || onFilterConfirm(values);\n          case 1:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee);\n    }));\n    return function (_x) {\n      return _ref.apply(this, arguments);\n    };\n  }(), [onFilterConfirm]);\n  var onDelete = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(i) {\n      return _regenerator.default.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            onFilterItemDelete === null || onFilterItemDelete === void 0 || onFilterItemDelete(i);\n          case 1:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2);\n    }));\n    return function (_x2) {\n      return _ref2.apply(this, arguments);\n    };\n  }(), [onFilterItemDelete]);\n  var handleOpen = (0, _react.useCallback)(function () {\n    var _context3;\n    (0, _utils.openner)((0, _concat.default)(_context3 = \"/\".concat(appId, \"/designer/\")).call(_context3, formId));\n  }, [appId, formId]);\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 createUiActionDataStr = (0, _react.useCallback)(function (actionName) {\n    var _context4, _context5;\n    return (0, _concat.default)(_context4 = (0, _concat.default)(_context5 = \"\".concat(appId, \"|\")).call(_context5, formId, \"|\")).call(_context4, actionName);\n  }, [appId, formId]);\n  var columnsMemo = (0, _react.useMemo)(function () {\n    var _context6;\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      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)(_context6 = [SEQ_COLUMN]).call(_context6, (0, _menuTableUtil.getShowColumns)(columns, visibleColumnKeys));\n  }, [columns, visibleColumnKeys, pageNo, pageSize]);\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      onColFilterConfirm: onColFilterConfirm,\n      onRowDelete: onRowDelete,\n      colOperations: colOperations,\n      stateInfo: stateInfo,\n      sort: {\n        sorts: orderInfo,\n        onSort: handleSort\n      },\n      filter: {\n        filters: colHeadFilters,\n        colHeadFilter: colHeadFilter,\n        onFilterConfirm: onColFilterConfirm,\n        onFilterShow: onColHeadFilterVisibleChange,\n        getFilterActive: _menuTableUtil.getFilterActive\n      }\n    };\n  }, [onAggCellChange, _onAggVisibleChange, onColFilterConfirm, onRowDelete, colHeadFilters, handleSort, orderInfo, colOperations, colHeadFilter, onColHeadFilterVisibleChange, stateInfo]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminHomePage.default.container\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminHomePage.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminHomePage.default.actions\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminHomePage.default.buttons\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"primary\",\n    onClick: handleOpen,\n    \"data-nc-action\": createUiActionDataStr('sa_fm_set')\n  }, \"\\u914D\\u7F6E\"))), (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: _AdminHomePage.default.list\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminHomePage.default.table_list\n  }, /*#__PURE__*/_react.default.createElement(TableContext.Provider, {\n    value: tableContextValueMemo\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.DataGrid, {\n    dataSource: dataSource,\n    useVirtual: true,\n    columnResize: true,\n    columns: columnsMemo,\n    footerDataSource: footerDataSource,\n    filter: {\n      filters: colHeadFilters,\n      keepDataSource: true,\n      // 这三个属性存在才显示筛选是激活状态\n      // filters: [{ code:'nocodetextfield',filter:'AP-202009-00001',filterCondition:'contain' }] || colHeadFilters,\n      onChangeFilters: onChangeFilters,\n      filterIcon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n        prefix: \"nocodeplatformicon\",\n        type: \"shaixuan\"\n      }),\n      hideFilterPopupHeader: true\n    }\n  })))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminHomePage.default.page\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Pagination, {\n    showSizeChanger: true,\n    defaultCurrent: pageNo,\n    total: totalCount,\n    pageSize: pageSize,\n    onChange: onChange,\n    pageType: \"nicety\",\n    showQuickJumper: false\n  }))) : loading ? null : /*#__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  }))), /*#__PURE__*/_react.default.createElement(_Statistic.default, {\n    env: _env.ENV_ADMIN,\n    visible: statVisible,\n    formName: formName,\n    setVisible: setStatVisible,\n    listFilterConfig: listFilterConfig,\n    configuredFilterItems: configuredFilterItems,\n    getEnumFilterValue: getEnumFilterValue\n  }), showListSettingPop && /*#__PURE__*/_react.default.createElement(_WebUI.ListItemSettingPop, {\n    title: \"\\u914D\\u7F6E\\u5217\\u8868\\u9879\\uFF08\\u9ED8\\u8BA4\\uFF09\",\n    onClose: handleCloseListSetting,\n    checkedKeys: visibleColumnKeys,\n    onConfirm: handleListSettingConfirm,\n    data: (0, _listSettingUtil.getListItemSettingData)(filterOperateColMemo) || []\n    // columns={columns}\n    ,\n    lockIndex: (0, _menuTableUtil.getLockedIndex)(filterOperateColMemo),\n    draggable: true\n  }), showFilterSettingPop && /*#__PURE__*/_react.default.createElement(_WebUI.ListFilterSettingPop, {\n    title: \"\\u914D\\u7F6E\\u7B5B\\u9009\\u9879\\uFF08\\u9ED8\\u8BA4\\uFF09\",\n    onClose: handleCloseFilterSetting,\n    onConfirm: handleFilterConfirm,\n    data: listFilterConfig || [],\n    configuredFilterItems: configuredFilterItems,\n    draggable: true,\n    onDelete: onDelete,\n    onColHeadFilterVisibleChange: onGetEnumFilterValue,\n    colHeadFilter: enumFilterValue\n  }));\n});\nAdminFormList.displayName = 'AdminFormList';\nvar AdminHomePage = (0, _react.memo)(function () {\n  var context = (0, _reactRouterDom.useOutletContext)();\n  var selectedNode = context.selectedNode;\n  if (!selectedNode) return null;\n  if ((0, _utils.isCustomPage)(selectedNode.type)) {\n    return /*#__PURE__*/_react.default.createElement(_custom.default, {\n      pageId: selectedNode.formId\n    });\n  }\n  return /*#__PURE__*/_react.default.createElement(AdminFormList, null);\n});\nAdminHomePage.displayName = 'AdminHomePage';\nvar _default = exports[\"default\"] = AdminHomePage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/admin/home/AdminHomePage.tsx\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireDefault(__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 _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _AdminPublishPage = _interopRequireDefault(__webpack_require__(/*! ./AdminPublishPage.less */ \"./src/web/pages/admin/publish/AdminPublishPage.less\"));\nvar AdminPublishPage = function AdminPublishPage() {\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.item\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.title\n  }, \"\\u5E94\\u7528\\u5BFC\\u822A\\u94FE\\u63A5\\u8BBE\\u7F6E\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_AdminPublishPage.default.mb8, _AdminPublishPage.default.label)\n  }, \"\\u9996\\u9875\\u94FE\\u63A5\\u5730\\u5740\"), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    disabled: true,\n    placeholder: \"https://www.kingdee.com\",\n    borderType: \"bordered\"\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.item\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.title\n  }, \"\\u8BBF\\u95EE\\u5730\\u5740\\u8BBE\\u7F6E\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_AdminPublishPage.default.mb8, _AdminPublishPage.default.label)\n  }, \"\\u81EA\\u5B9A\\u4E49\\u5E94\\u7528\\u8BBF\\u95EE\\u5730\\u5740\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.inputs\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    className: _AdminPublishPage.default.mr12,\n    disabled: true,\n    placeholder: \"https://www.kingdee.com\",\n    borderType: \"bordered\"\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    className: _AdminPublishPage.default.mr12,\n    placeholder: \"\\u8BF7\\u8F93\\u5165\",\n    borderType: \"bordered\"\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"fuzhi\"\n    })\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminPublishPage.default.gray\n  }, \"\\u81EA\\u5B9A\\u4E49\\u8BBF\\u95EE\\u5730\\u5740\\uFF0C\\u4FBF\\u4E8E\\u63A8\\u5E7F\\u548C\\u5206\\u4EAB\"))));\n};\nvar _default = exports[\"default\"] = AdminPublishPage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2FkbWluL3B1Ymxpc2gvQWRtaW5QdWJsaXNoUGFnZS50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQVFBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL3BhZ2VzL2FkbWluL3B1Ymxpc2gvQWRtaW5QdWJsaXNoUGFnZS50c3g/MjVhYSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBJY29uIH0gZnJvbSAnQGtkY2xvdWRqcy9rZGVzaWduJ1xuaW1wb3J0IHsgQnRuRmllbGQgYXMgQnV0dG9uLCBUZXh0IGFzIElucHV0IH0gZnJvbSAnbm9jb2RlX2NvbXBvbmVudC9XZWJVSSdcbmltcG9ydCBjbGFzc05hbWVzIGZyb20gJ2NsYXNzbmFtZXMnXG5pbXBvcnQgc3R5bGUgZnJvbSAnLi9BZG1pblB1Ymxpc2hQYWdlLmxlc3MnXG5cbmNvbnN0IEFkbWluUHVibGlzaFBhZ2UgPSAoKSA9PiB7XG4gIHJldHVybiAoXG4gICAgPD5cbiAgICAgIDxkaXYgY2xhc3NOYW1lPXtzdHlsZS5tYWlufT5cbiAgICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlLml0ZW19PlxuICAgICAgICAgIDxkaXYgY2xhc3NOYW1lPXtzdHlsZS50aXRsZX0+5bqU55So5a+86Iiq6ZO+5o6l6K6+572uPC9kaXY+XG4gICAgICAgICAgPGRpdiBjbGFzc05hbWU9e2NsYXNzTmFtZXMoc3R5bGUubWI4LCBzdHlsZS5sYWJlbCl9PummlumhtemTvuaOpeWcsOWdgDwvZGl2PlxuICAgICAgICAgIDxkaXY+PElucHV0IGRpc2FibGVkIHBsYWNlaG9sZGVyPSdodHRwczovL3d3dy5raW5nZGVlLmNvbScgYm9yZGVyVHlwZT0nYm9yZGVyZWQnIC8+PC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8ZGl2IGNsYXNzTmFtZT17c3R5bGUuaXRlbX0+XG4gICAgICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlLnRpdGxlfT7orr/pl67lnLDlnYDorr7nva48L2Rpdj5cbiAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT17Y2xhc3NOYW1lcyhzdHlsZS5tYjgsIHN0eWxlLmxhYmVsKX0+6Ieq5a6a5LmJ5bqU55So6K6/6Zeu5Zyw5Z2APC9kaXY+XG4gICAgICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlLmlucHV0c30+XG4gICAgICAgICAgICA8SW5wdXQgY2xhc3NOYW1lPXtzdHlsZS5tcjEyfSBkaXNhYmxlZCBwbGFjZWhvbGRlcj0naHR0cHM6Ly93d3cua2luZ2RlZS5jb20nIGJvcmRlclR5cGU9J2JvcmRlcmVkJyAvPlxuICAgICAgICAgICAgPElucHV0IGNsYXNzTmFtZT17c3R5bGUubXIxMn0gcGxhY2Vob2xkZXI9J+ivt+i+k+WFpScgYm9yZGVyVHlwZT0nYm9yZGVyZWQnIC8+XG4gICAgICAgICAgICA8QnV0dG9uIGljb249ezxJY29uIHByZWZpeD0nbm9jb2RlcGxhdGZvcm1pY29uJyB0eXBlPSdmdXpoaScgLz59IC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlLmdyYXl9PuiHquWumuS5ieiuv+mXruWcsOWdgO+8jOS+v+S6juaOqOW5v+WSjOWIhuS6qzwvZGl2PlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgey8qIDxkaXY+XG4gICAgICAgICAgPEJ1dHRvbiBzaXplPSdzbWFsbCcgdHlwZT0ncHJpbWFyeSc+5L+d5a2YPC9CdXR0b24+XG4gICAgICAgIDwvZGl2PiAqL31cbiAgICAgIDwvZGl2PlxuICAgIDwvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IEFkbWluUHVibGlzaFBhZ2VcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/pages/admin/publish/AdminPublishPage.tsx\n");

/***/ }),

/***/ "./src/web/pages/admin/publish/ShareManagePage.tsx":
/*!*********************************************************!*\
  !*** ./src/web/pages/admin/publish/ShareManagePage.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 _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.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 _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _useFormDataList3 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFormDataList */ \"./src/hooks/useFormDataList.ts\"));\nvar _menuTableUtil = __webpack_require__(/*! @/utils/menuTableUtil */ \"./src/utils/menuTableUtil.js\");\nvar _shareManageUtils = __webpack_require__(/*! @/utils/shareManageUtils */ \"./src/utils/shareManageUtils.ts\");\nvar _ShareModal = __webpack_require__(/*! @/web/component/common/ShareModal */ \"./src/web/component/common/ShareModal.tsx\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _publish = __webpack_require__(/*! @/actions/publish */ \"./src/actions/publish.ts\");\nvar _ShareManagePage = _interopRequireDefault(__webpack_require__(/*! ./ShareManagePage.less */ \"./src/web/pages/admin/publish/ShareManagePage.less\"));\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar TableActions = {\n  loadFormListWithParams: _shareManageUtils.loadFormListWithParams,\n  getInitFormDataList: _shareManageUtils.getInitFormDataList\n};\nvar options = {\n  loadMore: false,\n  updateFooter: false,\n  isMob: false,\n  operateCol: {\n    needOperateCol: true,\n    width: 140,\n    disabled: false\n  }\n};\nvar ShareManagePage = function ShareManagePage() {\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    detailsVisible = _useState2[0],\n    setDetailsVisible = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    shareInfo = _useState4[0],\n    setShareInfo = _useState4[1];\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state;\n  var fileServer = state.fileServer;\n  var openDetails = (0, _react.useCallback)(function (details) {\n    (0, _PageEventService.publishClickUserEvent)({\n      appId: appId,\n      formId: '',\n      action: 'sa_ap_detail'\n    });\n    setShareInfo(details);\n    setDetailsVisible(true);\n  }, [appId]);\n  var _useFormDataList = (0, _useFormDataList3.default)({\n      appId: appId\n    }, options, TableActions),\n    _useFormDataList2 = (0, _slicedToArray2.default)(_useFormDataList, 3),\n    formDataListState = _useFormDataList2[0],\n    actions = _useFormDataList2[1],\n    TableContext = _useFormDataList2[2];\n  var dataSource = formDataListState.dataSource,\n    pageNo = formDataListState.pageNo,\n    pageSize = formDataListState.pageSize,\n    totalCount = formDataListState.totalCount,\n    visibleColumnKeys = formDataListState.visibleColumnKeys,\n    columns = formDataListState.columns;\n  var onRefresh = actions.onRefresh,\n    onPaginationChange = actions.onPaginationChange;\n  var revokeShare = (0, _react.useCallback)(function (details) {\n    var id = details.id;\n    _WebUI.WebMsg.showConfirmModal({\n      type: 'delete',\n      title: '确定要取消此分享吗？',\n      onAction: function onAction(key) {\n        if (key === 'ok') {\n          (0, _publish.doRevokeShare)(id).then(function (res) {\n            (0, _PageEventService.publishClickUserEvent)({\n              appId: appId,\n              formId: '',\n              action: 'sa_ap_cshare'\n            });\n            onRefresh();\n            (0, _utils.showNotice)('success', '取消成功');\n          });\n        }\n      }\n    });\n  }, [appId]);\n  var colOperations = (0, _react.useMemo)(function () {\n    return [{\n      name: '详情',\n      major: true,\n      onClick: openDetails,\n      disabled: false // 需权限控制时再改动\n    }, {\n      name: '取消分享',\n      major: true,\n      onClick: revokeShare,\n      visible: function visible(record) {\n        return record.valid;\n      } // 需权限控制时再改动\n    }];\n  }, []);\n  var onCancel = (0, _react.useCallback)(function () {\n    setDetailsVisible(false);\n  }, []);\n  var onChange = (0, _react.useCallback)(function (pageNo, pageSize) {\n    onPaginationChange === null || onPaginationChange === void 0 || onPaginationChange(pageNo || 1, pageSize);\n  }, [onPaginationChange]);\n  var ShareModalBody = (0, _react.useMemo)(function () {\n    var _ref = shareInfo || {},\n      _ref$url = _ref.url,\n      url = _ref$url === void 0 ? '' : _ref$url,\n      title = _ref.title,\n      creator = _ref.creator,\n      expireTime = _ref.expireTime,\n      _ref$bgImage = _ref.bgImage,\n      bgImage = _ref$bgImage === void 0 ? '' : _ref$bgImage,\n      icon = _ref.icon;\n    return /*#__PURE__*/_react.default.createElement(_ShareModal.ShareContent, {\n      fullShareLink: window.location.origin + (0, _utils.getFullUrl)(url[0] === '/' ? (0, _slice.default)(url).call(url, 1) : url),\n      shareTitle: title,\n      shareByPeople: creator,\n      validTime: expireTime,\n      bgImage: (0, _utils.getBackImageUrl)(fileServer.imageUrl, bgImage),\n      shareAppImage: icon\n    });\n  }, [shareInfo, fileServer]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareManagePage.default.share_manage\n  }, /*#__PURE__*/_react.default.createElement(TableContext.Provider, {\n    value: {\n      colOperations: colOperations\n    }\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.DataGrid, {\n    rowSelection: false,\n    useVirtual: true,\n    columns: (0, _menuTableUtil.getShowColumns)(columns, visibleColumnKeys),\n    dataSource: dataSource,\n    style: {\n      height: '100%'\n    }\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareManagePage.default.page\n  }, /*#__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  }))), detailsVisible && /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    maskClosable: false,\n    width: 640,\n    height: 436,\n    body: ShareModalBody\n    // bodyStyle={bodyStyle}\n    ,\n    bodyClassName: _ShareManagePage.default.sharemodal_body,\n    title: \"\\u5206\\u4EAB\\u8BE6\\u60C5\",\n    onCancel: onCancel,\n    mask: true,\n    keyboard: false,\n    visible: detailsVisible,\n    footer: null,\n    showline: false,\n    className: _ShareManagePage.default.sharemodal\n  }));\n};\nvar _default = exports[\"default\"] = ShareManagePage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/admin/publish/ShareManagePage.tsx\n");

/***/ }),

/***/ "./src/web/pages/admin/setting/AdminSettingPage.tsx":
/*!**********************************************************!*\
  !*** ./src/web/pages/admin/setting/AdminSettingPage.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 _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 _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 _AppConfigItem = _interopRequireDefault(__webpack_require__(/*! @/web/component/admin/AppConfigItem */ \"./src/web/component/admin/AppConfigItem.tsx\"));\nvar _AdminSettingPage = _interopRequireDefault(__webpack_require__(/*! ./AdminSettingPage.less */ \"./src/web/pages/admin/setting/AdminSettingPage.less\"));\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _actionNames = __webpack_require__(/*! @/reducer/actionNames */ \"./src/reducer/actionNames.js\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _ExportApp = _interopRequireDefault(__webpack_require__(/*! @/web/component/home/ExportApp */ \"./src/web/component/home/ExportApp.tsx\"));\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } // import { Button } from '@kdcloudjs/kdesign'\nvar INIT_EXPORT_INFO = {\n  visible: false,\n  appInfo: {}\n};\n\n// 更新应用请求参数\nvar appParam = {};\n/**\n * 应用设置页\n * @param {*} props\n * @returns\n */\nvar AdminSettingPage = function AdminSettingPage(props) {\n  var _appInfo$creater2, _state$userInfo;\n  var _useParams = (0, _reactRouterDom.useParams)(props),\n    appId = _useParams.appId;\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state,\n    dispatch = _useContext.dispatch;\n  var rootConfig = state.rootConfig;\n  var appInfo = state.appsList[appId];\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_EXPORT_INFO),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    exportInfo = _useReducer2[0],\n    dispatchExportInfo = _useReducer2[1];\n  var navigate = (0, _useNocodeNavigate.default)();\n  var upDate = (0, _react.useCallback)(function (params, type) {\n    var _params$creater, _appInfo$creater;\n    var newParams = type === 'creater' ? {\n      appId: params.id,\n      createrId: (params === null || params === void 0 || (_params$creater = params.creater) === null || _params$creater === void 0 ? void 0 : _params$creater.id) || '',\n      oldCreatorId: (appInfo === null || appInfo === void 0 || (_appInfo$creater = appInfo.creater) === null || _appInfo$creater === void 0 ? void 0 : _appInfo$creater.id) || ''\n    } : params;\n    (0, _home.configApp)(newParams).then(function (res) {\n      // 移交\n      if (type === 'creater') window.location.reload();\n      (0, _utils.showNotice)('success', '修改成功');\n      dispatch({\n        type: _actionNames.UPDATE_APP_INFO_BY_ID,\n        payload: {\n          id: appInfo.id,\n          value: _objectSpread(_objectSpread({}, appInfo), params)\n        }\n      });\n    }).catch(function (err) {\n      return (0, _utils.showNotice)('error', err.message);\n    });\n  }, [appInfo]);\n  var updateAppParam = (0, _react.useCallback)(function (data, type) {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    if (!type && (!data.name || !data.image)) return;\n    upDate(data, type);\n  }, [upDate, rootConfig]);\n\n  /**\n   * 删除应用\n   * @param {string} id 应用ID\n   */\n  var deleteApp = (0, _react.useCallback)(function () {\n    (0, _utils.showDeleteConfirmModal)({\n      title: '',\n      message: '确定要删除该应用吗？',\n      detail: '',\n      onOk: function () {\n        var _onOk = (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                (0, _PageEventService.publishClickUserEvent)({\n                  appId: appId,\n                  formId: '',\n                  action: 'sa_am_del_comf'\n                });\n                (0, _home.delApp)(appId).then(function (res) {\n                  if (res) {\n                    navigate('/home');\n                    (0, _utils.showNotice)('success', '删除成功');\n                  }\n                }).catch(function (err) {\n                  (0, _utils.showNotice)('error', err.message);\n                });\n              case 2:\n              case \"end\":\n                return _context.stop();\n            }\n          }, _callee);\n        }));\n        function onOk() {\n          return _onOk.apply(this, arguments);\n        }\n        return onOk;\n      }(),\n      onCancel: function onCancel() {}\n    });\n  }, [appId]);\n  var handleExportApp = function handleExportApp() {\n    dispatchExportInfo({\n      visible: true,\n      appInfo: appInfo\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminSettingPage.default.main\n  }, appInfo && /*#__PURE__*/_react.default.createElement(_AppConfigItem.default, {\n    data: appInfo,\n    update: updateAppParam,\n    hideTransformBtn: (appInfo === null || appInfo === void 0 || (_appInfo$creater2 = appInfo.creater) === null || _appInfo$creater2 === void 0 ? void 0 : _appInfo$creater2.id) !== (state === null || state === void 0 || (_state$userInfo = state.userInfo) === null || _state$userInfo === void 0 ? void 0 : _state$userInfo.id),\n    showCreater: true\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AdminSettingPage.default.mt24\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"primary\",\n    \"data-nc-action\": \"\".concat(appId, \"||sa_am_del\"),\n    onClick: deleteApp,\n    className: _AdminSettingPage.default.warnning,\n    text: \"\\u5220\\u9664\\u5E94\\u7528\"\n  }), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: handleExportApp,\n    style: {\n      marginLeft: '12px'\n    },\n    text: \"\\u5BFC\\u51FA\\u5E94\\u7528\"\n  }))), /*#__PURE__*/_react.default.createElement(_ExportApp.default, {\n    visible: exportInfo.visible,\n    appInfo: exportInfo.appInfo,\n    onClose: function onClose() {\n      return dispatchExportInfo({\n        visible: false\n      });\n    }\n  }));\n};\nvar _default = exports[\"default\"] = _react.default.memo(AdminSettingPage);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/admin/setting/AdminSettingPage.tsx\n");

/***/ }),

/***/ "./assets/img/container_bg_img.png":
/*!*****************************************!*\
  !*** ./assets/img/container_bg_img.png ***!
  \*****************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

module.exports = __webpack_require__.p + "ncp/nocode/images/141804a566a929dccb3e.png";

/***/ }),

/***/ "./assets/img/create_by_blank.png":
/*!****************************************!*\
  !*** ./assets/img/create_by_blank.png ***!
  \****************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

module.exports = __webpack_require__.p + "ncp/nocode/images/0090a6f755a6c211052b.png";

/***/ }),

/***/ "./assets/img/create_by_import_excel.png":
/*!***********************************************!*\
  !*** ./assets/img/create_by_import_excel.png ***!
  \***********************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

module.exports = __webpack_require__.p + "ncp/nocode/images/90f02a00ea961ec21d47.png";

/***/ }),

/***/ "./assets/img/create_by_template.png":
/*!*******************************************!*\
  !*** ./assets/img/create_by_template.png ***!
  \*******************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {

module.exports = __webpack_require__.p + "ncp/nocode/images/b839d4ca905f370d5c1b.png";

/***/ })

}]);