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

/***/ "./src/web/component/admin/AppConfigItem.less":
/*!****************************************************!*\
  !*** ./src/web/component/admin/AppConfigItem.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_app_body\":\"LFBvFp4v_create_app_body\",\"item\":\"qHz08nSc_item\",\"red\":\"PaNhx5ey_red\",\"edit_avatar\":\"tR8zBJkw_edit_avatar\",\"avatar\":\"PqRRypwX_avatar\",\"edit\":\"zkdtwKjZ_edit\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9BcHBDb25maWdJdGVtLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9hZG1pbi9BcHBDb25maWdJdGVtLmxlc3M/ZmY5NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImNyZWF0ZV9hcHBfYm9keVwiOlwiTEZCdkZwNHZfY3JlYXRlX2FwcF9ib2R5XCIsXCJpdGVtXCI6XCJxSHowOG5TY19pdGVtXCIsXCJyZWRcIjpcIlBhTmh4NWV5X3JlZFwiLFwiZWRpdF9hdmF0YXJcIjpcInRSOHpCSmt3X2VkaXRfYXZhdGFyXCIsXCJhdmF0YXJcIjpcIlBxUlJ5cHdYX2F2YXRhclwiLFwiZWRpdFwiOlwiemtkdHdLalpfZWRpdFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/admin/AppConfigItem.less\n");

/***/ }),

/***/ "./src/web/component/common/IconSelect.less":
/*!**************************************************!*\
  !*** ./src/web/component/common/IconSelect.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\"] = ({\"edit_avatar\":\"hMv-Mxl6_edit_avatar\",\"avatar\":\"n4FmMikB_avatar\",\"edit\":\"lZfT9sX9_edit\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vSWNvblNlbGVjdC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL0ljb25TZWxlY3QubGVzcz8xOTExIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiZWRpdF9hdmF0YXJcIjpcImhNdi1NeGw2X2VkaXRfYXZhdGFyXCIsXCJhdmF0YXJcIjpcIm40Rm1NaWtCX2F2YXRhclwiLFwiZWRpdFwiOlwibFpmVDlzWDlfZWRpdFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/IconSelect.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/AppImageUpload.less":
/*!****************************************************************!*\
  !*** ./src/web/component/common/templates/AppImageUpload.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\"] = ({\"wrapper\":\"A-x2qx-v_wrapper\",\"desc\":\"tGNwtg-4_desc\",\"upload\":\"qcVX43-T_upload\",\"upload-handler\":\"hPbgQoyX_upload-handler\",\"layer\":\"gg6Oc2ui_layer\",\"show\":\"tfJbYtf5_show\",\"add-icon\":\"mQtbKtC5_add-icon\",\"btn-text\":\"KvsnEvFV_btn-text\",\"image-cropper\":\"jcbgxXWx_image-cropper\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0FwcEltYWdlVXBsb2FkLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0FwcEltYWdlVXBsb2FkLmxlc3M/OTI0OSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcIndyYXBwZXJcIjpcIkEteDJxeC12X3dyYXBwZXJcIixcImRlc2NcIjpcInRHTnd0Zy00X2Rlc2NcIixcInVwbG9hZFwiOlwicWNWWDQzLVRfdXBsb2FkXCIsXCJ1cGxvYWQtaGFuZGxlclwiOlwiaFBiZ1FveVhfdXBsb2FkLWhhbmRsZXJcIixcImxheWVyXCI6XCJnZzZPYzJ1aV9sYXllclwiLFwic2hvd1wiOlwidGZKYll0ZjVfc2hvd1wiLFwiYWRkLWljb25cIjpcIm1RdGJLdEM1X2FkZC1pY29uXCIsXCJidG4tdGV4dFwiOlwiS3ZzbkV2RlZfYnRuLXRleHRcIixcImltYWdlLWNyb3BwZXJcIjpcImpjYmd4WFd4X2ltYWdlLWNyb3BwZXJcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppImageUpload.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/AppPreview.less":
/*!************************************************************!*\
  !*** ./src/web/component/common/templates/AppPreview.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-preview\":\"_7vn6o+Dz_app-preview\",\"preview_footer\":\"zzIcWQQQ_preview_footer\",\"tips\":\"WVDyo4uO_tips\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0FwcFByZXZpZXcubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2NvbW1vbi90ZW1wbGF0ZXMvQXBwUHJldmlldy5sZXNzPzljY2MiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJhcHAtcHJldmlld1wiOlwiXzd2bjZvK0R6X2FwcC1wcmV2aWV3XCIsXCJwcmV2aWV3X2Zvb3RlclwiOlwienpJY1dRUVFfcHJldmlld19mb290ZXJcIixcInRpcHNcIjpcIldWRHlvNHVPX3RpcHNcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppPreview.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/AppTemplateDetail.less":
/*!*******************************************************************!*\
  !*** ./src/web/component/common/templates/AppTemplateDetail.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\"] = ({\"template-detail\":\"VoO4mPdW_template-detail\",\"appPreview\":\"IZJpqe3b_appPreview\",\"preview-mode\":\"-yoYbS1y_preview-mode\",\"iframe-area\":\"_28ap+YZg_iframe-area\",\"layer\":\"BvwRKJBV_layer\",\"preview_footer\":\"OczO7cKe_preview_footer\",\"tips\":\"HMgpcart_tips\",\"spin-wrapper\":\"_17lT4ODu_spin-wrapper\",\"show\":\"u5vP9JvW_show\",\"preview-btn\":\"lADi6fxs_preview-btn\",\"wrapper\":\"vE5qf2Mj_wrapper\",\"main\":\"_2TPgcrUm_main\",\"main-left\":\"PMUfJmpP_main-left\",\"main-right\":\"X0QSQb3x_main-right\",\"block\":\"JtTMQhCv_block\",\"title\":\"_8sPXvmNv_title\",\"desc\":\"Lzmyuj6Y_desc\",\"collapse\":\"CfK1Pn7-_collapse\",\"left-top\":\"OxiTIsQH_left-top\",\"app-icon\":\"brLphXiK_app-icon\",\"detail\":\"DRbig3Nc_detail\",\"name-area\":\"Row5q+ot_name-area\",\"name\":\"ohm3UPJZ_name\",\"btns\":\"qrKPuGfq_btns\",\"use-info\":\"bxp56Wbn_use-info\",\"rate\":\"AWBeKMTT_rate\",\"score\":\"n6J2187H_score\",\"count\":\"P7MLQQhn_count\",\"tag-wrapper\":\"YiWlKBK3_tag-wrapper\",\"tag\":\"kyQdEIJ+_tag\",\"role-list\":\"PHZclOrx_role-list\",\"role-item\":\"Uqt8LnZf_role-item\",\"role-pre\":\"GZ5DHoj0_role-pre\",\"role-name\":\"UHWcj2By_role-name\",\"form-list\":\"RsGqcyvE_form-list\",\"form-item\":\"_368rK2ob_form-item\",\"form-icon\":\"q95Tgono_form-icon\",\"form-name\":\"lgQRqHuG_form-name\",\"info-item\":\"_1oWlFpPl_info-item\",\"info-title\":\"qNr9Zvjg_info-title\",\"info-content\":\"y9LdhYwW_info-content\",\"comment-list\":\"RifjlRqk_comment-list\",\"load-more\":\"BWSIF9Za_load-more\",\"no-more\":\"yumPt9yr_no-more\",\"no-comments\":\"c66gCY4g_no-comments\",\"comment-item\":\"O0Xe5e+a_comment-item\",\"avatar\":\"fUUxqUww_avatar\",\"comment-detail\":\"ey5h8Uib_comment-detail\",\"create\":\"eX61+fwK_create\",\"create-name\":\"WcV45Zeh_create-name\",\"create-date\":\"F1860G6L_create-date\",\"score-detail\":\"_5TNbAKnB_score-detail\",\"comment-content\":\"uIritY7E_comment-content\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0FwcFRlbXBsYXRlRGV0YWlsLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0FwcFRlbXBsYXRlRGV0YWlsLmxlc3M/NWMxMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInRlbXBsYXRlLWRldGFpbFwiOlwiVm9PNG1QZFdfdGVtcGxhdGUtZGV0YWlsXCIsXCJhcHBQcmV2aWV3XCI6XCJJWkpwcWUzYl9hcHBQcmV2aWV3XCIsXCJwcmV2aWV3LW1vZGVcIjpcIi15b1liUzF5X3ByZXZpZXctbW9kZVwiLFwiaWZyYW1lLWFyZWFcIjpcIl8yOGFwK1laZ19pZnJhbWUtYXJlYVwiLFwibGF5ZXJcIjpcIkJ2d1JLSkJWX2xheWVyXCIsXCJwcmV2aWV3X2Zvb3RlclwiOlwiT2N6TzdjS2VfcHJldmlld19mb290ZXJcIixcInRpcHNcIjpcIkhNZ3BjYXJ0X3RpcHNcIixcInNwaW4td3JhcHBlclwiOlwiXzE3bFQ0T0R1X3NwaW4td3JhcHBlclwiLFwic2hvd1wiOlwidTV2UDlKdldfc2hvd1wiLFwicHJldmlldy1idG5cIjpcImxBRGk2ZnhzX3ByZXZpZXctYnRuXCIsXCJ3cmFwcGVyXCI6XCJ2RTVxZjJNal93cmFwcGVyXCIsXCJtYWluXCI6XCJfMlRQZ2NyVW1fbWFpblwiLFwibWFpbi1sZWZ0XCI6XCJQTVVmSm1wUF9tYWluLWxlZnRcIixcIm1haW4tcmlnaHRcIjpcIlgwUVNRYjN4X21haW4tcmlnaHRcIixcImJsb2NrXCI6XCJKdFRNUWhDdl9ibG9ja1wiLFwidGl0bGVcIjpcIl84c1BYdm1Odl90aXRsZVwiLFwiZGVzY1wiOlwiTHpteXVqNllfZGVzY1wiLFwiY29sbGFwc2VcIjpcIkNmSzFQbjctX2NvbGxhcHNlXCIsXCJsZWZ0LXRvcFwiOlwiT3hpVElzUUhfbGVmdC10b3BcIixcImFwcC1pY29uXCI6XCJickxwaFhpS19hcHAtaWNvblwiLFwiZGV0YWlsXCI6XCJEUmJpZzNOY19kZXRhaWxcIixcIm5hbWUtYXJlYVwiOlwiUm93NXErb3RfbmFtZS1hcmVhXCIsXCJuYW1lXCI6XCJvaG0zVVBKWl9uYW1lXCIsXCJidG5zXCI6XCJxcktQdUdmcV9idG5zXCIsXCJ1c2UtaW5mb1wiOlwiYnhwNTZXYm5fdXNlLWluZm9cIixcInJhdGVcIjpcIkFXQmVLTVRUX3JhdGVcIixcInNjb3JlXCI6XCJuNkoyMTg3SF9zY29yZVwiLFwiY291bnRcIjpcIlA3TUxRUWhuX2NvdW50XCIsXCJ0YWctd3JhcHBlclwiOlwiWWlXbEtCSzNfdGFnLXdyYXBwZXJcIixcInRhZ1wiOlwia3lRZEVJSitfdGFnXCIsXCJyb2xlLWxpc3RcIjpcIlBIWmNsT3J4X3JvbGUtbGlzdFwiLFwicm9sZS1pdGVtXCI6XCJVcXQ4TG5aZl9yb2xlLWl0ZW1cIixcInJvbGUtcHJlXCI6XCJHWjVESG9qMF9yb2xlLXByZVwiLFwicm9sZS1uYW1lXCI6XCJVSFdjajJCeV9yb2xlLW5hbWVcIixcImZvcm0tbGlzdFwiOlwiUnNHcWN5dkVfZm9ybS1saXN0XCIsXCJmb3JtLWl0ZW1cIjpcIl8zNjhySzJvYl9mb3JtLWl0ZW1cIixcImZvcm0taWNvblwiOlwicTk1VGdvbm9fZm9ybS1pY29uXCIsXCJmb3JtLW5hbWVcIjpcImxnUVJxSHVHX2Zvcm0tbmFtZVwiLFwiaW5mby1pdGVtXCI6XCJfMW9XbEZwUGxfaW5mby1pdGVtXCIsXCJpbmZvLXRpdGxlXCI6XCJxTnI5WnZqZ19pbmZvLXRpdGxlXCIsXCJpbmZvLWNvbnRlbnRcIjpcInk5TGRoWXdXX2luZm8tY29udGVudFwiLFwiY29tbWVudC1saXN0XCI6XCJSaWZqbFJxa19jb21tZW50LWxpc3RcIixcImxvYWQtbW9yZVwiOlwiQldTSUY5WmFfbG9hZC1tb3JlXCIsXCJuby1tb3JlXCI6XCJ5dW1QdDl5cl9uby1tb3JlXCIsXCJuby1jb21tZW50c1wiOlwiYzY2Z0NZNGdfbm8tY29tbWVudHNcIixcImNvbW1lbnQtaXRlbVwiOlwiTzBYZTVlK2FfY29tbWVudC1pdGVtXCIsXCJhdmF0YXJcIjpcImZVVXhxVXd3X2F2YXRhclwiLFwiY29tbWVudC1kZXRhaWxcIjpcImV5NWg4VWliX2NvbW1lbnQtZGV0YWlsXCIsXCJjcmVhdGVcIjpcImVYNjErZndLX2NyZWF0ZVwiLFwiY3JlYXRlLW5hbWVcIjpcIldjVjQ1WmVoX2NyZWF0ZS1uYW1lXCIsXCJjcmVhdGUtZGF0ZVwiOlwiRjE4NjBHNkxfY3JlYXRlLWRhdGVcIixcInNjb3JlLWRldGFpbFwiOlwiXzVUTmJBS25CX3Njb3JlLWRldGFpbFwiLFwiY29tbWVudC1jb250ZW50XCI6XCJ1SXJpdFk3RV9jb21tZW50LWNvbnRlbnRcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppTemplateDetail.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/AppTemplates.less":
/*!**************************************************************!*\
  !*** ./src/web/component/common/templates/AppTemplates.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_templates\":\"lI9F9CJA_app_templates\",\"card\":\"EyU1v+JZ_card\",\"template_item\":\"gS05dWWn_template_item\",\"more\":\"_8NhEq77C_more\",\"pop-active\":\"E2WnsalD_pop-active\",\"template_btns\":\"fQa0Qc9H_template_btns\",\"template_creator\":\"WErV5ovr_template_creator\",\"template_domains\":\"rUG4FbMN_template_domains\",\"tag\":\"vkovVlXu_tag\",\"canHover\":\"EQV4Bx-N_canHover\",\"template_item_detail\":\"p029KDgt_template_item_detail\",\"template_item_info\":\"d9zWmq8i_template_item_info\",\"template_item_name\":\"vxMK+dRg_template_item_name\",\"template_item_desc\":\"_9I5S+cf-_template_item_desc\",\"template_item_imagewrapper\":\"mr3W1blI_template_item_imagewrapper\",\"template_item_footer\":\"VE+aQ1J5_template_item_footer\",\"banner\":\"lQ-bZOas_banner\",\"banner-item\":\"-OC04795_banner-item\",\"left-area\":\"k+Dx6Lmo_left-area\",\"title\":\"bhGp8lqf_title\",\"desc\":\"mP1E0MkO_desc\",\"go-detail\":\"vUCn+9Nw_go-detail\",\"right-area\":\"Pqh7X97c_right-area\",\"bg-image\":\"iwOxxXZF_bg-image\",\"linear-bg\":\"iexq2soc_linear-bg\",\"popper\":\"MAerB7wo_popper\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0FwcFRlbXBsYXRlcy5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9BcHBUZW1wbGF0ZXMubGVzcz9iZjRhIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiYXBwX3RlbXBsYXRlc1wiOlwibEk5RjlDSkFfYXBwX3RlbXBsYXRlc1wiLFwiY2FyZFwiOlwiRXlVMXYrSlpfY2FyZFwiLFwidGVtcGxhdGVfaXRlbVwiOlwiZ1MwNWRXV25fdGVtcGxhdGVfaXRlbVwiLFwibW9yZVwiOlwiXzhOaEVxNzdDX21vcmVcIixcInBvcC1hY3RpdmVcIjpcIkUyV25zYWxEX3BvcC1hY3RpdmVcIixcInRlbXBsYXRlX2J0bnNcIjpcImZRYTBRYzlIX3RlbXBsYXRlX2J0bnNcIixcInRlbXBsYXRlX2NyZWF0b3JcIjpcIldFclY1b3ZyX3RlbXBsYXRlX2NyZWF0b3JcIixcInRlbXBsYXRlX2RvbWFpbnNcIjpcInJVRzRGYk1OX3RlbXBsYXRlX2RvbWFpbnNcIixcInRhZ1wiOlwidmtvdlZsWHVfdGFnXCIsXCJjYW5Ib3ZlclwiOlwiRVFWNEJ4LU5fY2FuSG92ZXJcIixcInRlbXBsYXRlX2l0ZW1fZGV0YWlsXCI6XCJwMDI5S0RndF90ZW1wbGF0ZV9pdGVtX2RldGFpbFwiLFwidGVtcGxhdGVfaXRlbV9pbmZvXCI6XCJkOXpXbXE4aV90ZW1wbGF0ZV9pdGVtX2luZm9cIixcInRlbXBsYXRlX2l0ZW1fbmFtZVwiOlwidnhNSytkUmdfdGVtcGxhdGVfaXRlbV9uYW1lXCIsXCJ0ZW1wbGF0ZV9pdGVtX2Rlc2NcIjpcIl85STVTK2NmLV90ZW1wbGF0ZV9pdGVtX2Rlc2NcIixcInRlbXBsYXRlX2l0ZW1faW1hZ2V3cmFwcGVyXCI6XCJtcjNXMWJsSV90ZW1wbGF0ZV9pdGVtX2ltYWdld3JhcHBlclwiLFwidGVtcGxhdGVfaXRlbV9mb290ZXJcIjpcIlZFK2FRMUo1X3RlbXBsYXRlX2l0ZW1fZm9vdGVyXCIsXCJiYW5uZXJcIjpcImxRLWJaT2FzX2Jhbm5lclwiLFwiYmFubmVyLWl0ZW1cIjpcIi1PQzA0Nzk1X2Jhbm5lci1pdGVtXCIsXCJsZWZ0LWFyZWFcIjpcImsrRHg2TG1vX2xlZnQtYXJlYVwiLFwidGl0bGVcIjpcImJoR3A4bHFmX3RpdGxlXCIsXCJkZXNjXCI6XCJtUDFFME1rT19kZXNjXCIsXCJnby1kZXRhaWxcIjpcInZVQ24rOU53X2dvLWRldGFpbFwiLFwicmlnaHQtYXJlYVwiOlwiUHFoN1g5N2NfcmlnaHQtYXJlYVwiLFwiYmctaW1hZ2VcIjpcIml3T3h4WFpGX2JnLWltYWdlXCIsXCJsaW5lYXItYmdcIjpcImlleHEyc29jX2xpbmVhci1iZ1wiLFwicG9wcGVyXCI6XCJNQWVyQjd3b19wb3BwZXJcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppTemplates.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/BillTemplateDetail.less":
/*!********************************************************************!*\
  !*** ./src/web/component/common/templates/BillTemplateDetail.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\"] = ({\"template-detail\":\"grZdes5Z_template-detail\",\"wrapper\":\"jJBYTDm9_wrapper\",\"preview-area\":\"faE9nT2n_preview-area\",\"bill\":\"_2M-I8xNN_bill\",\"bill-main\":\"s65MIoJm_bill-main\",\"prev-btn\":\"TaTyWyjU_prev-btn\",\"next-btn\":\"_81wsb4XO_next-btn\",\"preview-footer\":\"Aelf3bzc_preview-footer\",\"tips\":\"DOPBkO-b_tips\",\"btns\":\"IsFcoyUK_btns\",\"main\":\"_8Y5JCsDQ_main\",\"template-info\":\"_972UXbGe_template-info\",\"form-icon\":\"CwewQvEc_form-icon\",\"info-right\":\"V4-0t2Pp_info-right\",\"name\":\"KwT-buO5_name\",\"use-info\":\"uM7QyKQZ_use-info\",\"rate\":\"hTIFyTc3_rate\",\"score\":\"z2IFtwD6_score\",\"count\":\"z4fvPKDH_count\",\"tag-wrapper\":\"_1jukznq6_tag-wrapper\",\"tag\":\"RfR56l6N_tag\",\"block\":\"CtVUc+fD_block\",\"title\":\"+k7KZc7o_title\",\"desc\":\"nwudby1P_desc\",\"info-item\":\"PBfSp4Sl_info-item\",\"info-title\":\"Wi-kGURO_info-title\",\"info-content\":\"nojCKQ2P_info-content\",\"comment-list\":\"dN9g3jBY_comment-list\",\"load-more\":\"zjk74YLG_load-more\",\"no-more\":\"pkmLRXbI_no-more\",\"no-comments\":\"MgfoPzLa_no-comments\",\"comment-item\":\"KwztahrR_comment-item\",\"avatar\":\"if8YFSGk_avatar\",\"comment-detail\":\"HdGBXwCK_comment-detail\",\"create\":\"z0jhz+v8_create\",\"create-name\":\"PLNOrbaT_create-name\",\"create-date\":\"sF2j2EuK_create-date\",\"score-detail\":\"puCmKHlK_score-detail\",\"comment-content\":\"sa6FgOBP_comment-content\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0JpbGxUZW1wbGF0ZURldGFpbC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9CaWxsVGVtcGxhdGVEZXRhaWwubGVzcz82OTA4Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1widGVtcGxhdGUtZGV0YWlsXCI6XCJnclpkZXM1Wl90ZW1wbGF0ZS1kZXRhaWxcIixcIndyYXBwZXJcIjpcImpKQllURG05X3dyYXBwZXJcIixcInByZXZpZXctYXJlYVwiOlwiZmFFOW5UMm5fcHJldmlldy1hcmVhXCIsXCJiaWxsXCI6XCJfMk0tSTh4Tk5fYmlsbFwiLFwiYmlsbC1tYWluXCI6XCJzNjVNSW9KbV9iaWxsLW1haW5cIixcInByZXYtYnRuXCI6XCJUYVR5V3lqVV9wcmV2LWJ0blwiLFwibmV4dC1idG5cIjpcIl84MXdzYjRYT19uZXh0LWJ0blwiLFwicHJldmlldy1mb290ZXJcIjpcIkFlbGYzYnpjX3ByZXZpZXctZm9vdGVyXCIsXCJ0aXBzXCI6XCJET1BCa08tYl90aXBzXCIsXCJidG5zXCI6XCJJc0Zjb3lVS19idG5zXCIsXCJtYWluXCI6XCJfOFk1SkNzRFFfbWFpblwiLFwidGVtcGxhdGUtaW5mb1wiOlwiXzk3MlVYYkdlX3RlbXBsYXRlLWluZm9cIixcImZvcm0taWNvblwiOlwiQ3dld1F2RWNfZm9ybS1pY29uXCIsXCJpbmZvLXJpZ2h0XCI6XCJWNC0wdDJQcF9pbmZvLXJpZ2h0XCIsXCJuYW1lXCI6XCJLd1QtYnVPNV9uYW1lXCIsXCJ1c2UtaW5mb1wiOlwidU03UXlLUVpfdXNlLWluZm9cIixcInJhdGVcIjpcImhUSUZ5VGMzX3JhdGVcIixcInNjb3JlXCI6XCJ6MklGdHdENl9zY29yZVwiLFwiY291bnRcIjpcIno0ZnZQS0RIX2NvdW50XCIsXCJ0YWctd3JhcHBlclwiOlwiXzFqdWt6bnE2X3RhZy13cmFwcGVyXCIsXCJ0YWdcIjpcIlJmUjU2bDZOX3RhZ1wiLFwiYmxvY2tcIjpcIkN0VlVjK2ZEX2Jsb2NrXCIsXCJ0aXRsZVwiOlwiK2s3S1pjN29fdGl0bGVcIixcImRlc2NcIjpcIm53dWRieTFQX2Rlc2NcIixcImluZm8taXRlbVwiOlwiUEJmU3A0U2xfaW5mby1pdGVtXCIsXCJpbmZvLXRpdGxlXCI6XCJXaS1rR1VST19pbmZvLXRpdGxlXCIsXCJpbmZvLWNvbnRlbnRcIjpcIm5vakNLUTJQX2luZm8tY29udGVudFwiLFwiY29tbWVudC1saXN0XCI6XCJkTjlnM2pCWV9jb21tZW50LWxpc3RcIixcImxvYWQtbW9yZVwiOlwiemprNzRZTEdfbG9hZC1tb3JlXCIsXCJuby1tb3JlXCI6XCJwa21MUlhiSV9uby1tb3JlXCIsXCJuby1jb21tZW50c1wiOlwiTWdmb1B6TGFfbm8tY29tbWVudHNcIixcImNvbW1lbnQtaXRlbVwiOlwiS3d6dGFoclJfY29tbWVudC1pdGVtXCIsXCJhdmF0YXJcIjpcImlmOFlGU0drX2F2YXRhclwiLFwiY29tbWVudC1kZXRhaWxcIjpcIkhkR0JYd0NLX2NvbW1lbnQtZGV0YWlsXCIsXCJjcmVhdGVcIjpcInowamh6K3Y4X2NyZWF0ZVwiLFwiY3JlYXRlLW5hbWVcIjpcIlBMTk9yYmFUX2NyZWF0ZS1uYW1lXCIsXCJjcmVhdGUtZGF0ZVwiOlwic0YyajJFdUtfY3JlYXRlLWRhdGVcIixcInNjb3JlLWRldGFpbFwiOlwicHVDbUtIbEtfc2NvcmUtZGV0YWlsXCIsXCJjb21tZW50LWNvbnRlbnRcIjpcInNhNkZnT0JQX2NvbW1lbnQtY29udGVudFwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/BillTemplateDetail.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/BillTemplates.less":
/*!***************************************************************!*\
  !*** ./src/web/component/common/templates/BillTemplates.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\"] = ({\"bill_templates\":\"U4Z1pXOF_bill_templates\",\"template_item\":\"C5munfN0_template_item\",\"template_item_name\":\"bTxBYF6D_template_item_name\",\"more\":\"tejjKvBC_more\",\"pop-active\":\"_46K1AMOT_pop-active\",\"template_btns\":\"q+OAFSgo_template_btns\",\"template_creator\":\"wvixSXCT_template_creator\",\"template_item_preview\":\"cgqC5zCs_template_item_preview\",\"template_item_imagewrapper\":\"-sdESNWi_template_item_imagewrapper\",\"template_item_info\":\"oBLJM+QL_template_item_info\",\"creator_name\":\"uJKWxYlO_creator_name\",\"popper\":\"j19bwX74_popper\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0JpbGxUZW1wbGF0ZXMubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2NvbW1vbi90ZW1wbGF0ZXMvQmlsbFRlbXBsYXRlcy5sZXNzPzMwNzUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJiaWxsX3RlbXBsYXRlc1wiOlwiVTRaMXBYT0ZfYmlsbF90ZW1wbGF0ZXNcIixcInRlbXBsYXRlX2l0ZW1cIjpcIkM1bXVuZk4wX3RlbXBsYXRlX2l0ZW1cIixcInRlbXBsYXRlX2l0ZW1fbmFtZVwiOlwiYlR4QllGNkRfdGVtcGxhdGVfaXRlbV9uYW1lXCIsXCJtb3JlXCI6XCJ0ZWpqS3ZCQ19tb3JlXCIsXCJwb3AtYWN0aXZlXCI6XCJfNDZLMUFNT1RfcG9wLWFjdGl2ZVwiLFwidGVtcGxhdGVfYnRuc1wiOlwicStPQUZTZ29fdGVtcGxhdGVfYnRuc1wiLFwidGVtcGxhdGVfY3JlYXRvclwiOlwid3ZpeFNYQ1RfdGVtcGxhdGVfY3JlYXRvclwiLFwidGVtcGxhdGVfaXRlbV9wcmV2aWV3XCI6XCJjZ3FDNXpDc190ZW1wbGF0ZV9pdGVtX3ByZXZpZXdcIixcInRlbXBsYXRlX2l0ZW1faW1hZ2V3cmFwcGVyXCI6XCItc2RFU05XaV90ZW1wbGF0ZV9pdGVtX2ltYWdld3JhcHBlclwiLFwidGVtcGxhdGVfaXRlbV9pbmZvXCI6XCJvQkxKTStRTF90ZW1wbGF0ZV9pdGVtX2luZm9cIixcImNyZWF0b3JfbmFtZVwiOlwidUpLV3hZbE9fY3JlYXRvcl9uYW1lXCIsXCJwb3BwZXJcIjpcImoxOWJ3WDc0X3BvcHBlclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/BillTemplates.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/CreateAppModal.less":
/*!****************************************************************!*\
  !*** ./src/web/component/common/templates/CreateAppModal.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-app-modal\":\"TRunv9xH_create-app-modal\",\"create-app-modal-body\":\"l+orzU5v_create-app-modal-body\",\"create-app-modal-form-item-checkbox\":\"QTylZms-_create-app-modal-form-item-checkbox\",\"create-app-modal-footer\":\"zEaQfPuj_create-app-modal-footer\",\"footer-checkbox\":\"QLY90lLI_footer-checkbox\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0NyZWF0ZUFwcE1vZGFsLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0NyZWF0ZUFwcE1vZGFsLmxlc3M/ZDFjMiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImNyZWF0ZS1hcHAtbW9kYWxcIjpcIlRSdW52OXhIX2NyZWF0ZS1hcHAtbW9kYWxcIixcImNyZWF0ZS1hcHAtbW9kYWwtYm9keVwiOlwibCtvcnpVNXZfY3JlYXRlLWFwcC1tb2RhbC1ib2R5XCIsXCJjcmVhdGUtYXBwLW1vZGFsLWZvcm0taXRlbS1jaGVja2JveFwiOlwiUVR5bFptcy1fY3JlYXRlLWFwcC1tb2RhbC1mb3JtLWl0ZW0tY2hlY2tib3hcIixcImNyZWF0ZS1hcHAtbW9kYWwtZm9vdGVyXCI6XCJ6RWFRZlB1al9jcmVhdGUtYXBwLW1vZGFsLWZvb3RlclwiLFwiZm9vdGVyLWNoZWNrYm94XCI6XCJRTFk5MGxMSV9mb290ZXItY2hlY2tib3hcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/CreateAppModal.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/Header.less":
/*!********************************************************!*\
  !*** ./src/web/component/common/templates/Header.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\"] = ({\"template_filter\":\"XP58APYg_template_filter\",\"tab\":\"icIRykOp_tab\",\"tab_item\":\"wD8Krs1z_tab_item\",\"is-active\":\"jopsY8JE_is-active\",\"searcher\":\"IZa7p9m0_searcher\",\"search_select\":\"LwKistEu_search_select\",\"search_box\":\"_7+tf8aPT_search_box\",\"filter_wrapper\":\"_3hQZoJAr_filter_wrapper\",\"main\":\"VM207gCG_main\",\"content\":\"_71Q2ac6R_content\",\"select-app-popper\":\"_1Qh-jel0_select-app-popper\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL0hlYWRlci5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9IZWFkZXIubGVzcz83YjA4Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1widGVtcGxhdGVfZmlsdGVyXCI6XCJYUDU4QVBZZ190ZW1wbGF0ZV9maWx0ZXJcIixcInRhYlwiOlwiaWNJUnlrT3BfdGFiXCIsXCJ0YWJfaXRlbVwiOlwid0Q4S3JzMXpfdGFiX2l0ZW1cIixcImlzLWFjdGl2ZVwiOlwiam9wc1k4SkVfaXMtYWN0aXZlXCIsXCJzZWFyY2hlclwiOlwiSVphN3A5bTBfc2VhcmNoZXJcIixcInNlYXJjaF9zZWxlY3RcIjpcIkx3S2lzdEV1X3NlYXJjaF9zZWxlY3RcIixcInNlYXJjaF9ib3hcIjpcIl83K3RmOGFQVF9zZWFyY2hfYm94XCIsXCJmaWx0ZXJfd3JhcHBlclwiOlwiXzNoUVpvSkFyX2ZpbHRlcl93cmFwcGVyXCIsXCJtYWluXCI6XCJWTTIwN2dDR19tYWluXCIsXCJjb250ZW50XCI6XCJfNzFRMmFjNlJfY29udGVudFwiLFwic2VsZWN0LWFwcC1wb3BwZXJcIjpcIl8xUWgtamVsMF9zZWxlY3QtYXBwLXBvcHBlclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/Header.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/NoData.less":
/*!********************************************************!*\
  !*** ./src/web/component/common/templates/NoData.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\"] = ({\"template_empty\":\"GyY6vKX1_template_empty\",\"template_empty_text\":\"l9C8g9lQ_template_empty_text\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL05vRGF0YS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9Ob0RhdGEubGVzcz84MjFhIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1widGVtcGxhdGVfZW1wdHlcIjpcIkd5WTZ2S1gxX3RlbXBsYXRlX2VtcHR5XCIsXCJ0ZW1wbGF0ZV9lbXB0eV90ZXh0XCI6XCJsOUM4ZzlsUV90ZW1wbGF0ZV9lbXB0eV90ZXh0XCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/NoData.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/SaveAppTemplate.less":
/*!*****************************************************************!*\
  !*** ./src/web/component/common/templates/SaveAppTemplate.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\"] = ({\"save-app-template-modal\":\"GxOdXOx2_save-app-template-modal\",\"save-app-template-modal-form-item-checkbox\":\"MyPjMGqm_save-app-template-modal-form-item-checkbox\",\"save-app-template-modal-footer\":\"+KWW9xiZ_save-app-template-modal-footer\",\"save-app-template-modal-body\":\"ovjyezdb_save-app-template-modal-body\",\"switch-image\":\"N2qCa2BV_switch-image\",\"save-app-template-upload-wrapper\":\"WTlPONz1_save-app-template-upload-wrapper\",\"save-app-template-upload-desc\":\"G0gpHJ6g_save-app-template-upload-desc\",\"footer-checkbox\":\"FV2hitRk_footer-checkbox\",\"save-app-template-navigate\":\"wKgKs0h0_save-app-template-navigate\",\"nav-item\":\"rdXzO0rL_nav-item\",\"save-app-template-form\":\"uqStkJxU_save-app-template-form\",\"save-app-template-preview\":\"XraGAU7h_save-app-template-preview\",\"preview-desc\":\"HsvlSEZ3_preview-desc\",\"checkbox-group\":\"puY-DBIz_checkbox-group\",\"checkbox\":\"k6KWbOr4_checkbox\",\"anchor-locator\":\"wITfWgs2_anchor-locator\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL1NhdmVBcHBUZW1wbGF0ZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9TYXZlQXBwVGVtcGxhdGUubGVzcz81ZmViIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wic2F2ZS1hcHAtdGVtcGxhdGUtbW9kYWxcIjpcIkd4T2RYT3gyX3NhdmUtYXBwLXRlbXBsYXRlLW1vZGFsXCIsXCJzYXZlLWFwcC10ZW1wbGF0ZS1tb2RhbC1mb3JtLWl0ZW0tY2hlY2tib3hcIjpcIk15UGpNR3FtX3NhdmUtYXBwLXRlbXBsYXRlLW1vZGFsLWZvcm0taXRlbS1jaGVja2JveFwiLFwic2F2ZS1hcHAtdGVtcGxhdGUtbW9kYWwtZm9vdGVyXCI6XCIrS1dXOXhpWl9zYXZlLWFwcC10ZW1wbGF0ZS1tb2RhbC1mb290ZXJcIixcInNhdmUtYXBwLXRlbXBsYXRlLW1vZGFsLWJvZHlcIjpcIm92anllemRiX3NhdmUtYXBwLXRlbXBsYXRlLW1vZGFsLWJvZHlcIixcInN3aXRjaC1pbWFnZVwiOlwiTjJxQ2EyQlZfc3dpdGNoLWltYWdlXCIsXCJzYXZlLWFwcC10ZW1wbGF0ZS11cGxvYWQtd3JhcHBlclwiOlwiV1RsUE9OejFfc2F2ZS1hcHAtdGVtcGxhdGUtdXBsb2FkLXdyYXBwZXJcIixcInNhdmUtYXBwLXRlbXBsYXRlLXVwbG9hZC1kZXNjXCI6XCJHMGdwSEo2Z19zYXZlLWFwcC10ZW1wbGF0ZS11cGxvYWQtZGVzY1wiLFwiZm9vdGVyLWNoZWNrYm94XCI6XCJGVjJoaXRSa19mb290ZXItY2hlY2tib3hcIixcInNhdmUtYXBwLXRlbXBsYXRlLW5hdmlnYXRlXCI6XCJ3S2dLczBoMF9zYXZlLWFwcC10ZW1wbGF0ZS1uYXZpZ2F0ZVwiLFwibmF2LWl0ZW1cIjpcInJkWHpPMHJMX25hdi1pdGVtXCIsXCJzYXZlLWFwcC10ZW1wbGF0ZS1mb3JtXCI6XCJ1cVN0a0p4VV9zYXZlLWFwcC10ZW1wbGF0ZS1mb3JtXCIsXCJzYXZlLWFwcC10ZW1wbGF0ZS1wcmV2aWV3XCI6XCJYcmFHQVU3aF9zYXZlLWFwcC10ZW1wbGF0ZS1wcmV2aWV3XCIsXCJwcmV2aWV3LWRlc2NcIjpcIkhzdmxTRVozX3ByZXZpZXctZGVzY1wiLFwiY2hlY2tib3gtZ3JvdXBcIjpcInB1WS1EQkl6X2NoZWNrYm94LWdyb3VwXCIsXCJjaGVja2JveFwiOlwiazZLV2JPcjRfY2hlY2tib3hcIixcImFuY2hvci1sb2NhdG9yXCI6XCJ3SVRmV2dzMl9hbmNob3ItbG9jYXRvclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/SaveAppTemplate.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/SelectApp.less":
/*!***********************************************************!*\
  !*** ./src/web/component/common/templates/SelectApp.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\"] = ({\"select-app-modal\":\"wpv9EboF_select-app-modal\",\"main\":\"_9uoI6xwI_main\",\"loading-wrapper\":\"Bf1LbM7T_loading-wrapper\",\"apps\":\"Q-eTLAXa_apps\",\"app_item\":\"iTrjCsBn_app_item\",\"template_btns\":\"dYXU2irn_template_btns\",\"template_creator\":\"oI3hMM+r_template_creator\",\"app_item_detail\":\"+hw5UB1r_app_item_detail\",\"app_item_info\":\"FnDHRjHq_app_item_info\",\"app_item_name\":\"IAhLqyC5_app_item_name\",\"app_item_desc\":\"fVa7Nx8F_app_item_desc\",\"app_item_icon\":\"PUEePYqN_app_item_icon\",\"empty\":\"ohikhKrk_empty\",\"loadMore\":\"u2iRIQfk_loadMore\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL1NlbGVjdEFwcC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9TZWxlY3RBcHAubGVzcz80Nzg4Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wic2VsZWN0LWFwcC1tb2RhbFwiOlwid3B2OUVib0Zfc2VsZWN0LWFwcC1tb2RhbFwiLFwibWFpblwiOlwiXzl1b0k2eHdJX21haW5cIixcImxvYWRpbmctd3JhcHBlclwiOlwiQmYxTGJNN1RfbG9hZGluZy13cmFwcGVyXCIsXCJhcHBzXCI6XCJRLWVUTEFYYV9hcHBzXCIsXCJhcHBfaXRlbVwiOlwiaVRyakNzQm5fYXBwX2l0ZW1cIixcInRlbXBsYXRlX2J0bnNcIjpcImRZWFUyaXJuX3RlbXBsYXRlX2J0bnNcIixcInRlbXBsYXRlX2NyZWF0b3JcIjpcIm9JM2hNTStyX3RlbXBsYXRlX2NyZWF0b3JcIixcImFwcF9pdGVtX2RldGFpbFwiOlwiK2h3NVVCMXJfYXBwX2l0ZW1fZGV0YWlsXCIsXCJhcHBfaXRlbV9pbmZvXCI6XCJGbkRIUmpIcV9hcHBfaXRlbV9pbmZvXCIsXCJhcHBfaXRlbV9uYW1lXCI6XCJJQWhMcXlDNV9hcHBfaXRlbV9uYW1lXCIsXCJhcHBfaXRlbV9kZXNjXCI6XCJmVmE3Tng4Rl9hcHBfaXRlbV9kZXNjXCIsXCJhcHBfaXRlbV9pY29uXCI6XCJQVUVlUFlxTl9hcHBfaXRlbV9pY29uXCIsXCJlbXB0eVwiOlwib2hpa2hLcmtfZW1wdHlcIixcImxvYWRNb3JlXCI6XCJ1MmlSSVFma19sb2FkTW9yZVwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/SelectApp.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/TabFilter.less":
/*!***********************************************************!*\
  !*** ./src/web/component/common/templates/TabFilter.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\"] = ({\"filter\":\"uR8NMKSw_filter\",\"filter_title\":\"d4AYdrYA_filter_title\",\"filter_options\":\"IiFQ1vfw_filter_options\",\"filter_options_item\":\"Ecc2bY6Y_filter_options_item\",\"is-active\":\"t4J5wO0G_is-active\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL1RhYkZpbHRlci5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9UYWJGaWx0ZXIubGVzcz9jZmE5Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiZmlsdGVyXCI6XCJ1UjhOTUtTd19maWx0ZXJcIixcImZpbHRlcl90aXRsZVwiOlwiZDRBWWRyWUFfZmlsdGVyX3RpdGxlXCIsXCJmaWx0ZXJfb3B0aW9uc1wiOlwiSWlGUTF2ZndfZmlsdGVyX29wdGlvbnNcIixcImZpbHRlcl9vcHRpb25zX2l0ZW1cIjpcIkVjYzJiWTZZX2ZpbHRlcl9vcHRpb25zX2l0ZW1cIixcImlzLWFjdGl2ZVwiOlwidDRKNXdPMEdfaXMtYWN0aXZlXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/TabFilter.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/TemplateCard.less":
/*!**************************************************************!*\
  !*** ./src/web/component/common/templates/TemplateCard.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-template-card\":\"jnAKdBeZ_app-template-card\",\"banner\":\"FKY4GCCF_banner\",\"banner-image\":\"DTcOm-dv_banner-image\",\"banner-bg\":\"_78ViwkU+_banner-bg\",\"hot\":\"Ad51IqHF_hot\",\"new\":\"PCFrUmES_new\",\"title\":\"rwnzKRFX_title\",\"desc\":\"UzxG1BY6_desc\",\"tag-wrapper\":\"xsdtmQ2A_tag-wrapper\",\"footer\":\"midFCdUe_footer\",\"footer-left\":\"o6VSSVkz_footer-left\",\"footer-right\":\"s4UxZJmG_footer-right\",\"tag\":\"_0Q+uB7h+_tag\",\"hidden\":\"qBQu1w5g_hidden\",\"bill-template-card\":\"e8GhkV3e_bill-template-card\",\"main\":\"Q16PJNxh_main\",\"main-right\":\"Q04y9-+J_main-right\",\"form-icon\":\"yoD9J4Ik_form-icon\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL1RlbXBsYXRlQ2FyZC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9UZW1wbGF0ZUNhcmQubGVzcz8yOGQzIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiYXBwLXRlbXBsYXRlLWNhcmRcIjpcImpuQUtkQmVaX2FwcC10ZW1wbGF0ZS1jYXJkXCIsXCJiYW5uZXJcIjpcIkZLWTRHQ0NGX2Jhbm5lclwiLFwiYmFubmVyLWltYWdlXCI6XCJEVGNPbS1kdl9iYW5uZXItaW1hZ2VcIixcImJhbm5lci1iZ1wiOlwiXzc4Vml3a1UrX2Jhbm5lci1iZ1wiLFwiaG90XCI6XCJBZDUxSXFIRl9ob3RcIixcIm5ld1wiOlwiUENGclVtRVNfbmV3XCIsXCJ0aXRsZVwiOlwicnduektSRlhfdGl0bGVcIixcImRlc2NcIjpcIlV6eEcxQlk2X2Rlc2NcIixcInRhZy13cmFwcGVyXCI6XCJ4c2R0bVEyQV90YWctd3JhcHBlclwiLFwiZm9vdGVyXCI6XCJtaWRGQ2RVZV9mb290ZXJcIixcImZvb3Rlci1sZWZ0XCI6XCJvNlZTU1Zrel9mb290ZXItbGVmdFwiLFwiZm9vdGVyLXJpZ2h0XCI6XCJzNFV4WkptR19mb290ZXItcmlnaHRcIixcInRhZ1wiOlwiXzBRK3VCN2grX3RhZ1wiLFwiaGlkZGVuXCI6XCJxQlF1MXc1Z19oaWRkZW5cIixcImJpbGwtdGVtcGxhdGUtY2FyZFwiOlwiZThHaGtWM2VfYmlsbC10ZW1wbGF0ZS1jYXJkXCIsXCJtYWluXCI6XCJRMTZQSk54aF9tYWluXCIsXCJtYWluLXJpZ2h0XCI6XCJRMDR5OS0rSl9tYWluLXJpZ2h0XCIsXCJmb3JtLWljb25cIjpcInlvRDlKNElrX2Zvcm0taWNvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/TemplateCard.less\n");

/***/ }),

/***/ "./src/web/component/common/templates/index.less":
/*!*******************************************************!*\
  !*** ./src/web/component/common/templates/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\"] = ({\"template\":\"XL92k+8X_template\",\"template_main\":\"_0Ah9AtH3_template_main\",\"hidden\":\"PPWvWtXk_hidden\",\"skeleton\":\"xNP-xwje_skeleton\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL2luZGV4Lmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL2luZGV4Lmxlc3M/ZTA4MyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInRlbXBsYXRlXCI6XCJYTDkyays4WF90ZW1wbGF0ZVwiLFwidGVtcGxhdGVfbWFpblwiOlwiXzBBaDlBdEgzX3RlbXBsYXRlX21haW5cIixcImhpZGRlblwiOlwiUFBXdld0WGtfaGlkZGVuXCIsXCJza2VsZXRvblwiOlwieE5QLXh3amVfc2tlbGV0b25cIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/index.less\n");

/***/ }),

/***/ "./src/web/component/home/ExportApp.less":
/*!***********************************************!*\
  !*** ./src/web/component/home/ExportApp.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\"] = ({\"export-setting-modal\":\"UQv4jp+2_export-setting-modal\",\"export-setting-modal-footer\":\"h--U+50k_export-setting-modal-footer\",\"footer-checkbox\":\"udSu7e9E_footer-checkbox\",\"app\":\"_59EJfa1c_app\",\"app_detail\":\"Bh1f6QVI_app_detail\",\"app_info\":\"_9GJqA6BQ_app_info\",\"app_name\":\"AlRA+N3Y_app_name\",\"app_desc\":\"MAgbTwCs_app_desc\",\"app_icon\":\"gnr3uhqX_app_icon\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9ob21lL0V4cG9ydEFwcC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvaG9tZS9FeHBvcnRBcHAubGVzcz85YmQxIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiZXhwb3J0LXNldHRpbmctbW9kYWxcIjpcIlVRdjRqcCsyX2V4cG9ydC1zZXR0aW5nLW1vZGFsXCIsXCJleHBvcnQtc2V0dGluZy1tb2RhbC1mb290ZXJcIjpcImgtLVUrNTBrX2V4cG9ydC1zZXR0aW5nLW1vZGFsLWZvb3RlclwiLFwiZm9vdGVyLWNoZWNrYm94XCI6XCJ1ZFN1N2U5RV9mb290ZXItY2hlY2tib3hcIixcImFwcFwiOlwiXzU5RUpmYTFjX2FwcFwiLFwiYXBwX2RldGFpbFwiOlwiQmgxZjZRVklfYXBwX2RldGFpbFwiLFwiYXBwX2luZm9cIjpcIl85R0pxQTZCUV9hcHBfaW5mb1wiLFwiYXBwX25hbWVcIjpcIkFsUkErTjNZX2FwcF9uYW1lXCIsXCJhcHBfZGVzY1wiOlwiTUFnYlR3Q3NfYXBwX2Rlc2NcIixcImFwcF9pY29uXCI6XCJnbnIzdWhxWF9hcHBfaWNvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/home/ExportApp.less\n");

/***/ }),

/***/ "./src/web/component/home/SelectIconPop.less":
/*!***************************************************!*\
  !*** ./src/web/component/home/SelectIconPop.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\"] = ({\"pop\":\"-zvfG8Wu_pop\",\"avatar\":\"vC2nJF0S_avatar\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9ob21lL1NlbGVjdEljb25Qb3AubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2hvbWUvU2VsZWN0SWNvblBvcC5sZXNzP2Y2ODkiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJwb3BcIjpcIi16dmZHOFd1X3BvcFwiLFwiYXZhdGFyXCI6XCJ2QzJuSkYwU19hdmF0YXJcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/home/SelectIconPop.less\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.commentTemplate = commentTemplate;\nexports.getTemplateComments = getTemplateComments;\nexports.getTemplateScore = getTemplateScore;\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/**\r\n * 对模板进行评论\r\n * @param\r\n * @returns\r\n */\nfunction commentTemplate(_x) {\n  return _commentTemplate.apply(this, arguments);\n}\n/**\r\n * 查询模板评论列表\r\n * @param\r\n * @returns\r\n */\nfunction _commentTemplate() {\n  _commentTemplate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(postData) {\n    var params, url, res;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          params = {\n            data: [postData]\n          };\n          url = 'nocode/v2/nocode_sys/common/template/comment';\n          _context.next = 4;\n          return (0, _index.post)(url, params);\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 _commentTemplate.apply(this, arguments);\n}\nfunction getTemplateComments(_x2, _x3) {\n  return _getTemplateComments.apply(this, arguments);\n}\n/**\r\n * 查询模板评分\r\n * @param\r\n * @returns\r\n */\nfunction _getTemplateComments() {\n  _getTemplateComments = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(id, params) {\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/template/comment/\".concat(id);\n          _context2.next = 3;\n          return (0, _index.get)(url, params);\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 _getTemplateComments.apply(this, arguments);\n}\nfunction getTemplateScore(_x4, _x5) {\n  return _getTemplateScore.apply(this, arguments);\n}\nfunction _getTemplateScore() {\n  _getTemplateScore = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id, params) {\n    var url, res;\n    return _regenerator.default.wrap(function _callee3$(_context3) {\n      while (1) switch (_context3.prev = _context3.next) {\n        case 0:\n          url = \"nocode/v2/nocode_sys/common/template/view/\".concat(id);\n          _context3.next = 3;\n          return (0, _index.get)(url, params);\n        case 3:\n          res = _context3.sent;\n          return _context3.abrupt(\"return\", res);\n        case 5:\n        case \"end\":\n          return _context3.stop();\n      }\n    }, _callee3);\n  }));\n  return _getTemplateScore.apply(this, arguments);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWN0aW9ucy90ZW1wbGF0ZS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUtBO0FBQUE7QUFPQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFBQTtBQVBBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBT0E7QUFBQTtBQU1BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUFBO0FBTkE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFPQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9hY3Rpb25zL3RlbXBsYXRlLmpzP2E3Y2QiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZ2V0LCBwb3N0IH0gZnJvbSAnLi4vYWpheC9pbmRleCdcclxuXHJcbi8qKlxyXG4gKiDlr7nmqKHmnb/ov5vooYzor4TorrpcclxuICogQHBhcmFtXHJcbiAqIEByZXR1cm5zXHJcbiAqL1xyXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gY29tbWVudFRlbXBsYXRlIChwb3N0RGF0YSkge1xyXG4gIGNvbnN0IHBhcmFtcyA9IHsgZGF0YTogW3Bvc3REYXRhXSB9XHJcbiAgY29uc3QgdXJsID0gJ25vY29kZS92Mi9ub2NvZGVfc3lzL2NvbW1vbi90ZW1wbGF0ZS9jb21tZW50J1xyXG4gIGNvbnN0IHJlcyA9IGF3YWl0IHBvc3QodXJsLCBwYXJhbXMpXHJcbiAgcmV0dXJuIHJlc1xyXG59XHJcblxyXG4vKipcclxuICog5p+l6K+i5qih5p2/6K+E6K665YiX6KGoXHJcbiAqIEBwYXJhbVxyXG4gKiBAcmV0dXJuc1xyXG4gKi9cclxuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGdldFRlbXBsYXRlQ29tbWVudHMgKGlkLCBwYXJhbXMpIHtcclxuICBjb25zdCB1cmwgPSBgbm9jb2RlL3YyL25vY29kZV9zeXMvY29tbW9uL3RlbXBsYXRlL2NvbW1lbnQvJHtpZH1gXHJcbiAgY29uc3QgcmVzID0gYXdhaXQgZ2V0KHVybCwgcGFyYW1zKVxyXG4gIHJldHVybiByZXNcclxufVxyXG5cclxuLyoqXHJcbiAqIOafpeivouaooeadv+ivhOWIhlxyXG4gKiBAcGFyYW1cclxuICogQHJldHVybnNcclxuICovXHJcbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBnZXRUZW1wbGF0ZVNjb3JlIChpZCwgcGFyYW1zKSB7XHJcbiAgY29uc3QgdXJsID0gYG5vY29kZS92Mi9ub2NvZGVfc3lzL2NvbW1vbi90ZW1wbGF0ZS92aWV3LyR7aWR9YFxyXG4gIGNvbnN0IHJlcyA9IGF3YWl0IGdldCh1cmwsIHBhcmFtcylcclxuICByZXR1cm4gcmVzXHJcbn1cclxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/actions/template.js\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _parseInt2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.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 _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/classCallCheck */ \"../../node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js\"));\nvar _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/createClass */ \"../../node_modules/@babel/runtime-corejs3/helpers/createClass.js\"));\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\nvar FakeLoading = /*#__PURE__*/function () {\n  // 回调 - 当前进度百分比\n  function FakeLoading(props) {\n    var _this = this;\n    (0, _classCallCheck2.default)(this, FakeLoading);\n    this.initTime = 5;\n    // 初始化时间 （ 真实时间为 initTime - initTime * 2  ）\n    this.isOK = false;\n    // 是否ok\n    this.timeOut = 50;\n    // 循环时间\n    this.num = 0;\n    // 假进度时间\n    this.half = 0;\n    // 折半的剩余进度\n    this.count = 0;\n    /**\r\n     * 开始动作\r\n     */\n    this.begin = function () {\n      //  1. 初始化数据\n      _this.num = (0, _parseInt2.default)(_this.initTime * Math.random() + \"\") + _this.initTime;\n      _this.half = _this.num / 2;\n      _this.count = 0;\n      // this.timeOut = 200;\n      _this.isOK = false;\n      //  2. 触发回调\n      _this._setSchedule(0);\n      _this._setLoading(true);\n      //  3. 循环函数入口\n      _this.circulationSubCount();\n    };\n    /**\r\n     * 结束动作\r\n     */\n    this.over = function () {\n      // 1. 强制更新状态、以及触发回调\n      _this.isOK = true;\n      _this._setSchedule(100);\n      (0, _setTimeout2.default)(function () {\n        _this._setLoading(false);\n      }, 200);\n    };\n    // 1. 接受外界定义的世界 - 覆盖默认时间\n    this.initTime = (props === null || props === void 0 ? void 0 : props.initTime) || this.initTime;\n    this.timeOut = (props === null || props === void 0 ? void 0 : props.timeOut) || this.timeOut;\n    // 2. 接受外界传进来的回调函数到我们内部函数\n    this._setLoading = function (bl) {\n      var _props$setLoading;\n      props === null || props === void 0 || (_props$setLoading = props.setLoading) === null || _props$setLoading === void 0 || _props$setLoading.call(props, bl);\n    };\n    this._setSchedule = function (num) {\n      var _props$setSchedule;\n      props === null || props === void 0 || (_props$setSchedule = props.setSchedule) === null || _props$setSchedule === void 0 || _props$setSchedule.call(props, num);\n    };\n  }\n  (0, _createClass2.default)(FakeLoading, [{\n    key: \"_setLoading\",\n    value:\n    // 进行进度\n    function _setLoading(_bl) {} // 回调 - 当前是否处于加载中\n  }, {\n    key: \"_setSchedule\",\n    value: function _setSchedule(_num) {}\n  }, {\n    key: \"computedSpeed\",\n    value:\n    /**\r\n    * 计算增加进度的速度(翻倍)\r\n    */\n    function computedSpeed() {\n      if (this.count >= this.half) {\n        this.timeOut = this.timeOut * 2;\n        this.half += this.half / 2;\n      }\n    }\n    /**\r\n     * 自调用延时增加进度\r\n     */\n  }, {\n    key: \"circulationSubCount\",\n    value: function circulationSubCount() {\n      var _this2 = this;\n      // 1. setTimeout 根据定义的时间自调用\n      (0, _setTimeout2.default)(function () {\n        if (_this2.isOK) {\n          return;\n        }\n        // 2. 计算当前进度 - 每超过一半就改变触发时间 computedSpeed\n        _this2.computedSpeed();\n        _this2.count += 0.1;\n        // 3. 判断是否到达临界值（99），强行指正不在递增\n        if (_this2.count >= _this2.num) {\n          _this2._setSchedule(99);\n        } else {\n          // 4. 计算当前进度百分比值\n          _this2._setSchedule(_this2.count / _this2.num * 100);\n        }\n        // 5. 自调用\n        _this2.circulationSubCount();\n      }, this.timeOut);\n    }\n  }]);\n  return FakeLoading;\n}();\nvar useFakeLoading = function useFakeLoading(params) {\n  var _ref = params || {},\n    beginCallBack = _ref.beginCallBack,\n    overCallBack = _ref.overCallBack,\n    _ref$timeOut = _ref.timeOut,\n    timeOut = _ref$timeOut === void 0 ? 50 : _ref$timeOut;\n  var _useState = (0, _react.useState)(0),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    schedule = _useState2[0],\n    setSchedule = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    loading = _useState4[0],\n    setLoading = _useState4[1];\n  var LoadingObj = (0, _react.useRef)({});\n  (0, _react.useEffect)(function () {\n    LoadingObj.current = new FakeLoading({\n      setSchedule: setSchedule,\n      setLoading: setLoading,\n      timeOut: timeOut\n    });\n  }, []);\n  return {\n    begin: function begin() {\n      var _LoadingObj$current, _LoadingObj$current$b;\n      beginCallBack === null || beginCallBack === void 0 || beginCallBack();\n      (_LoadingObj$current = LoadingObj.current) === null || _LoadingObj$current === void 0 || (_LoadingObj$current$b = _LoadingObj$current.begin) === null || _LoadingObj$current$b === void 0 || _LoadingObj$current$b.call(_LoadingObj$current);\n    },\n    over: function over() {\n      var _LoadingObj$current2, _LoadingObj$current2$;\n      (_LoadingObj$current2 = LoadingObj.current) === null || _LoadingObj$current2 === void 0 || (_LoadingObj$current2$ = _LoadingObj$current2.over) === null || _LoadingObj$current2$ === void 0 || _LoadingObj$current2$.call(_LoadingObj$current2);\n      overCallBack === null || overCallBack === void 0 || overCallBack();\n    },\n    loading: loading,\n    setLoading: setLoading,\n    schedule: (0, _parseInt2.default)(schedule + \"\")\n  };\n};\nvar _default = exports[\"default\"] = useFakeLoading;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/hooks/useFakeLoading.ts\n");

/***/ }),

/***/ "./src/web/component/admin/AppConfigItem.tsx":
/*!***************************************************!*\
  !*** ./src/web/component/admin/AppConfigItem.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 _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _AppConfigItem = _interopRequireDefault(__webpack_require__(/*! ./AppConfigItem.less */ \"./src/web/component/admin/AppConfigItem.less\"));\nvar _SelectIconPop = _interopRequireDefault(__webpack_require__(/*! @/web/component/home/SelectIconPop */ \"./src/web/component/home/SelectIconPop.tsx\"));\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _PersonAuthorize = _interopRequireDefault(__webpack_require__(/*! ../permission/PersonAuthorize */ \"./src/web/component/permission/PersonAuthorize.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } // import { getIconAndColor } from '@/actions/home'\n// import { getQueryString } from '@/utils'\n\n/**\n * 配置APP信息内容\n * @param {Object} data 应用信息\n * @param {}\n */\n\nvar AppConfigItem = function AppConfigItem(_ref) {\n  var data = _ref.data,\n    update = _ref.update,\n    onApi = _ref.onApi,\n    showCreater = _ref.showCreater,\n    hideTransformBtn = _ref.hideTransformBtn;\n  var _useState = (0, _react.useState)(''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    inputName = _useState2[0],\n    setInputName = _useState2[1]; // 应用名称\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    desContent = _useState4[0],\n    setDesContent = _useState4[1]; // 应用名称\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    error = _useState6[0],\n    setError = _useState6[1];\n  var dataRef = (0, _react.useRef)(data || {}); // 图标\n\n  (0, _react.useEffect)(function () {\n    dataRef.current = data;\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setInputName((data === null || data === void 0 ? void 0 : data.name) || '');\n      setDesContent((data === null || data === void 0 ? void 0 : data.description) || '');\n    });\n  }, [data]);\n\n  // 更新到父组件\n  var updateData = (0, _react.useCallback)(function (type, value) {\n    dataRef.current = _objectSpread(_objectSpread({}, dataRef.current), {}, (0, _defineProperty2.default)({}, type, value || ''));\n    update(dataRef.current);\n  }, [update]);\n\n  // 校验格式\n  var check = (0, _react.useCallback)(function (value) {\n    if (!value || !(0, _trim.default)(value).call(value)) {\n      setError(true);\n      return;\n    }\n    setError(false);\n  }, []);\n\n  // input, texterea失焦，校验 => 更新到父节点\n  var _onBlur = (0, _react.useCallback)(function (type, value, needCheck) {\n    needCheck && check(value);\n    dataRef.current[type] !== value && updateData(type, (0, _trim.default)(value).call(value));\n  }, [check]);\n\n  // 弹窗选择图标 ==> 更新到父节点\n  var handleChange = (0, _react.useCallback)(function (url) {\n    dataRef.current.image !== url && updateData('image', url);\n  }, [updateData]);\n  var changeUserHandle = (0, _react.useCallback)(function (info) {\n    var _info$, _dataRef$current;\n    console.log('changeUserHandle', info);\n    if (!(info !== null && info !== void 0 && info.length) || ((_info$ = info[0]) === null || _info$ === void 0 ? void 0 : _info$.id) === ((_dataRef$current = dataRef.current) === null || _dataRef$current === void 0 || (_dataRef$current = _dataRef$current.creater) === null || _dataRef$current === void 0 ? void 0 : _dataRef$current.id)) return;\n    update(_objectSpread(_objectSpread({}, dataRef.current), {}, {\n      creater: info[0]\n    }), 'creater');\n  }, [update]);\n  (0, _react.useEffect)(function () {\n    onApi && onApi({\n      setError: setError\n    });\n  }, []);\n  console.log('appconfigitem', data, inputName);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.create_app_body\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.item,\n    style: {\n      height: 88,\n      marginBottom: 0\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    title: \"\\u5E94\\u7528\\u7684\\u540D\\u79F0\"\n  }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u540D\\u79F0\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppConfigItem.default.red\n  }, \"*\")), /*#__PURE__*/_react.default.createElement(_WebUI.Text, {\n    value: inputName,\n    onBlur: function onBlur() {\n      return _onBlur('name', inputName, true);\n    },\n    onChange: setInputName,\n    borderType: \"bordered\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u5E94\\u7528\\u540D\\u79F0\",\n    maxLength: 50\n  }), error && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.red\n  }, \"\\u8BF7\\u8F93\\u5165\\u5E94\\u7528\\u540D\\u79F0\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.item\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    title: \"\\u5E94\\u7528\\u7684\\u56FE\\u6807\"\n  }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u56FE\\u6807\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppConfigItem.default.red\n  }, \"*\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.edit_avatar\n  }, /*#__PURE__*/_react.default.createElement(_SelectIconPop.default, {\n    onChange: handleChange,\n    svgStr: data === null || data === void 0 ? void 0 : data.image,\n    triggerClassName: _AppConfigItem.default.avatar\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.edit\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"bianji\"\n  }))))), showCreater && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.item\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    title: \"\\u66F4\\u6362\"\n  }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u79FB\\u4EA4\\u521B\\u5EFA\\u4EBA\")), /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(_PersonAuthorize.default, {\n    value: [data === null || data === void 0 ? void 0 : data.creater] || 0,\n    isMulti: false,\n    onChange: changeUserHandle,\n    withScope: false,\n    buttonOption: {\n      text: '移交',\n      icon: 'qiehuan',\n      hide: hideTransformBtn\n    }\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppConfigItem.default.item\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    title: \"\\u5E94\\u7528\\u7684\\u8BF4\\u660E\"\n  }, \"\\u8BF4\\u660E\"), /*#__PURE__*/_react.default.createElement(_WebUI.Textarea, {\n    showCount: true,\n    value: desContent,\n    countPosition: \"inner\",\n    onChange: function onChange(v) {\n      return setDesContent(v);\n    },\n    onBlur: function onBlur() {\n      return _onBlur('description', desContent, false);\n    },\n    autoSize: {\n      minRows: 3,\n      maxRows: 3\n    },\n    maxLength: 255,\n    borderType: \"bordered\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u5E94\\u7528\\u8BF4\\u660E\"\n  }))));\n};\nvar _default = exports[\"default\"] = _react.default.memo(AppConfigItem);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/admin/AppConfigItem.tsx\n");

/***/ }),

/***/ "./src/web/component/common/IconSelect.tsx":
/*!*************************************************!*\
  !*** ./src/web/component/common/IconSelect.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 _SelectIconPop = _interopRequireDefault(__webpack_require__(/*! @/web/component/home/SelectIconPop */ \"./src/web/component/home/SelectIconPop.tsx\"));\nvar _IconSelect = _interopRequireDefault(__webpack_require__(/*! ./IconSelect.less */ \"./src/web/component/common/IconSelect.less\"));\nvar IconSelect = function IconSelect(_ref) {\n  var value = _ref.value,\n    handleChange = _ref.onChange;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _IconSelect.default.edit_avatar\n  }, /*#__PURE__*/_react.default.createElement(_SelectIconPop.default, {\n    onChange: handleChange,\n    svgStr: value,\n    triggerClassName: _IconSelect.default.avatar\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _IconSelect.default.edit\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"bianji\"\n  }))));\n};\nvar _default = exports[\"default\"] = IconSelect;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vSWNvblNlbGVjdC50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQU9BO0FBR0E7QUFEQTtBQUVBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUlBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vSWNvblNlbGVjdC50c3g/ZWU4MyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXHJcbmltcG9ydCB7IEljb24gfSBmcm9tICdAa2RjbG91ZGpzL2tkZXNpZ24nXHJcbmltcG9ydCBTZWxlY3RJY29uUG9wIGZyb20gJ0Avd2ViL2NvbXBvbmVudC9ob21lL1NlbGVjdEljb25Qb3AnXHJcbmltcG9ydCBzdHlsZXMgZnJvbSAnLi9JY29uU2VsZWN0Lmxlc3MnXHJcblxyXG5pbnRlcmZhY2UgSWNvblNlbGVjdFByb3BzIHtcclxuICB2YWx1ZTogc3RyaW5nO1xyXG4gIG9uQ2hhbmdlOiAodXJsOiBzdHJpbmcpID0+IHZvaWQ7XHJcbn1cclxuXHJcbmNvbnN0IEljb25TZWxlY3Q6IFJlYWN0LkZDPEljb25TZWxlY3RQcm9wcz4gPSAoe1xyXG4gIHZhbHVlLFxyXG4gIG9uQ2hhbmdlOiBoYW5kbGVDaGFuZ2VcclxufSkgPT4ge1xyXG4gIHJldHVybiAoXHJcbiAgICA8ZGl2IGNsYXNzTmFtZT17c3R5bGVzLmVkaXRfYXZhdGFyfT5cclxuICAgICAgPFNlbGVjdEljb25Qb3Agb25DaGFuZ2U9e2hhbmRsZUNoYW5nZX0gc3ZnU3RyPXt2YWx1ZX0gdHJpZ2dlckNsYXNzTmFtZT17c3R5bGVzLmF2YXRhcn0+XHJcbiAgICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlcy5lZGl0fT48SWNvbiBwcmVmaXg9J25vY29kZXBsYXRmb3JtaWNvbicgdHlwZT0nYmlhbmppJyAvPjwvZGl2PlxyXG4gICAgICA8L1NlbGVjdEljb25Qb3A+XHJcbiAgICA8L2Rpdj5cclxuICApXHJcbn1cclxuXHJcbmV4cG9ydCBkZWZhdWx0IEljb25TZWxlY3RcclxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/IconSelect.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _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 _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _url2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/url */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/url.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 _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _AppImageUpload = _interopRequireDefault(__webpack_require__(/*! ./AppImageUpload.less */ \"./src/web/component/common/templates/AppImageUpload.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 ACTION = (0, _utils.getUrlWithDataCenter)('nocode/v2/nocode_sys/image');\nvar ACCEPT_IMG_TYPE = ['image/jpg', 'image/jpeg', 'image/png'];\nvar UPLOAD_IMAGE_URL = (0, _utils.getUrlWithDataCenter)((0, _utils.getFullUrl)('nocode/v2/nocode_sys/image'));\nvar imageToBase64 = function imageToBase64(file, callback) {\n  var reader = new FileReader();\n  reader.readAsDataURL(file); // 文件转base64\n  reader.addEventListener('load', function (e) {\n    callback && callback(e.target.result);\n  });\n};\nvar base64ToFile = function base64ToFile(dataurl) {\n  var _context;\n  // 将base64转换为文件\n  var arr = dataurl.split(',');\n  var mime = arr[0].match(/:(.*?);/)[1];\n  var bstr = atob(arr[1]);\n  var n = bstr.length;\n  var u8arr = new Uint8Array(n);\n  while (n--) {\n    u8arr[n] = bstr.charCodeAt(n);\n  }\n  return new File([u8arr], \"\".concat((0, _slice.default)(_context = Math.random().toString(36)).call(_context, -8), \".png\"), {\n    type: mime\n  });\n};\nvar compress = function compress(originalImage) {\n  var compressRatio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n  var callback = arguments.length > 2 ? arguments[2] : undefined;\n  var image = new Image();\n  image.src = originalImage;\n  // document.body.appendChild(image); // 原图预览\n\n  /* 监听图片的load事件 */\n  image.addEventListener('load', function () {\n    var sizeRatio = 0,\n      maxWidth = 1920,\n      maxHeight = 1920; // 图片压缩宽高比例和最大宽高\n    var _ref = [this.naturalWidth, this.naturalHeight],\n      imageWidth = _ref[0],\n      imageHeight = _ref[1]; // 图片实际宽高\n    var compressFlag = false; // 图片是否需要压缩\n\n    // 如果图片宽度大于最大宽度就等比压缩图片的高度\n    if (imageWidth > maxWidth) {\n      compressFlag = true;\n      sizeRatio = imageWidth / maxWidth;\n      maxHeight = imageHeight / sizeRatio;\n    }\n\n    // 如果图片高度大于最大高度就等比压缩图片的宽度\n    if (imageHeight > maxHeight) {\n      compressFlag = true;\n      sizeRatio = imageHeight / maxHeight;\n      maxWidth = imageWidth / sizeRatio;\n    }\n\n    // 如果不需要压缩\n    if (!compressFlag) {\n      maxWidth = imageWidth;\n      maxHeight = imageHeight;\n    }\n\n    // 使用canvas压缩图片\n    var canvas = document.createElement('canvas');\n    var ctx = canvas.getContext('2d');\n    canvas.setAttribute('id', 'canvas');\n    canvas.width = maxWidth;\n    canvas.height = maxHeight;\n    // document.body.appendChild(canvas); // canvas预览\n    ctx.clearRect(0, 0, maxWidth, maxHeight); // 清除画布内所有像素\n    ctx.drawImage(image, 0, 0, maxWidth, maxHeight); // canvas绘制当前图片\n    var compressImage = canvas.toDataURL('image/png', compressRatio); // 设置压缩类型和压缩比例获取压缩后的文件\n\n    callback && callback(compressImage);\n  });\n};\nvar uploadImage = function uploadImage(file) {\n  return new _promise.default(function (resolve, reject) {\n    var formData = new FormData();\n    formData.append('file', file);\n    formData.append('action', 'upload');\n    formData.append('tempstorage', 'true');\n    var request = new XMLHttpRequest();\n    request.open('POST', UPLOAD_IMAGE_URL);\n    request.onload = function (e) {\n      if (this.status === 200 && e.target.response) {\n        resolve(JSON.parse(e.target.response));\n      } else {\n        reject(e);\n      }\n    };\n    request.send(formData);\n  });\n};\nvar AppImageUpload = function AppImageUpload(_ref2) {\n  var value = _ref2.value,\n    desc = _ref2.desc,\n    imageFileserver = _ref2.imageFileserver,\n    onChange = _ref2.onChange;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var _useState3 = (0, _react.useState)(''),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    src = _useState4[0],\n    setSrc = _useState4[1];\n  var _useState5 = (0, _react.useState)((0, _utils.getTemplateImageUrl)(imageFileserver, value)),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    imageUrl = _useState6[0],\n    setImageUrl = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    layerShow = _useState8[0],\n    setLayerShow = _useState8[1];\n  (0, _react.useEffect)(function () {\n    var newImgUrl = (0, _utils.getTemplateImageUrl)(imageFileserver, value);\n    if (imageUrl !== newImgUrl) {\n      setImageUrl(newImgUrl);\n    }\n  }, [value]);\n  var beforeUpload = function beforeUpload(file) {\n    var size = file.size,\n      type = file.type;\n    var isOverSize = size / 1024 / 1024 > 20;\n    if (isOverSize) {\n      // 限制图片不能大于20M\n      (0, _utils.showNotice)('error', '上传失败，图片大小不能超过20M');\n      return false;\n    }\n    if (!(0, _includes.default)(ACCEPT_IMG_TYPE).call(ACCEPT_IMG_TYPE, type)) {\n      (0, _utils.showNotice)('error', \"\\u4E0A\\u4F20\\u5931\\u8D25\\uFF0C\".concat(file.name, \" \\u4E0D\\u662F jpg\\u3001jpeg\\u3001png \\u7C7B\\u578B\\u7684\\u6587\\u4EF6\"));\n      return false;\n    }\n    if (src) {\n      _url2.default.revokeObjectURL(src);\n    }\n    var str = _url2.default.createObjectURL(file);\n    setSrc(str);\n    setVisible(true);\n    return false;\n  };\n  var handleClose = function handleClose() {\n    setVisible(false);\n  };\n  var handleSuccess = function handleSuccess(file) {\n    imageToBase64(file, function (originImg) {\n      compress(originImg, 1, function (outputImg) {\n        uploadImage(base64ToFile(outputImg)).then(function (_ref3) {\n          var data = _ref3.data,\n            errorCode = _ref3.errorCode;\n          if (errorCode === '0') {\n            var _ref4 = data || {},\n              _url = _ref4.url;\n            if (!_url) return;\n            var fullImageUrl = (0, _utils.getTemplateImageUrl)(imageFileserver, _url);\n            setImageUrl(fullImageUrl);\n            onChange(_url);\n          }\n        }).finally(function () {\n          return setVisible(false);\n        });\n      });\n    });\n  };\n  var handleUploadChange = function handleUploadChange(_ref5) {\n    var file = _ref5.file;\n  } // if (file.status === 'done' && file.response.status) {\n  //   const { response } = file\n  //   handleChange(response.data.url)\n  //   setImageUrl(baseUrl.picture + response.data.url)\n  // }\n  ;\n  var uploadButton = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    className: _AppImageUpload.default['add-icon'],\n    type: \"add\"\n  }), /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _AppImageUpload.default['btn-text']\n  }, \"\\u4E0A\\u4F20\\u56FE\\u7247\"));\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppImageUpload.default.wrapper\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Upload, {\n    className: _AppImageUpload.default.upload,\n    data: {\n      action: 'upload',\n      tempstorage: true\n    },\n    name: \"file\",\n    action: ACTION,\n    showUploadList: false,\n    accept: \".jpg,.jpeg,.png\",\n    onChange: handleUploadChange,\n    beforeUpload: beforeUpload\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppImageUpload.default['upload-handler'],\n    onMouseOver: function onMouseOver() {\n      return setLayerShow(true);\n    },\n    onMouseLeave: function onMouseLeave() {\n      return setLayerShow(false);\n    }\n  }, imageUrl ? /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: (0, _utils.getUrlWithDataCenter)(imageUrl),\n    alt: \"avatar\"\n  }) : uploadButton, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_AppImageUpload.default.layer, (0, _defineProperty2.default)({}, _AppImageUpload.default.show, layerShow))\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"bianji\"\n  })))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppImageUpload.default.desc\n  }, desc), /*#__PURE__*/_react.default.createElement(_kdesign.ImageCropper, {\n    autoCropArea: 1,\n    imageMaxSize: 20,\n    containerWidth: 800,\n    containerHeight: 588,\n    aspectRatio: 2.5,\n    visible: visible,\n    title: \"\\u56FE\\u7247\\u88C1\\u526A\",\n    image: src,\n    onClose: handleClose,\n    onCropSuccess: handleSuccess,\n    dragMode: \"move\",\n    cropBoxMovable: false,\n    className: _AppImageUpload.default['image-cropper'],\n    okText: \"\\u786E\\u5B9A\\u88C1\\u526A\"\n  }));\n};\nvar _default = exports[\"default\"] = AppImageUpload;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppImageUpload.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/AppPreview.tsx":
/*!***********************************************************!*\
  !*** ./src/web/component/common/templates/AppPreview.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 _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 _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _CreateAppModal = _interopRequireDefault(__webpack_require__(/*! ./CreateAppModal */ \"./src/web/component/common/templates/CreateAppModal.tsx\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _AppPreview = _interopRequireDefault(__webpack_require__(/*! ./AppPreview.less */ \"./src/web/component/common/templates/AppPreview.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; }\nvar INIT_ADD_TEMP = {\n  visible: false,\n  id: '',\n  info: {}\n};\nvar AppPreview = function AppPreview(_ref) {\n  var _context, _context2, _context3;\n  var visible = _ref.visible,\n    setVisible = _ref.setVisible,\n    _ref$templateInfo = _ref.templateInfo,\n    templateInfo = _ref$templateInfo === void 0 ? {} : _ref$templateInfo,\n    onClose = _ref.onClose;\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_ADD_TEMP),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    addTemp = _useReducer2[0],\n    dispatchAddTemp = _useReducer2[1];\n  var appid = templateInfo.appid,\n    id = templateInfo.id;\n  var search = window.location.search;\n  var previewAppUrl = (0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = \"\".concat(window.__domainurl__)).call(_context3, \"nocode\", \"/\")).call(_context2, appid)).call(_context, search);\n  var handleAdd = (0, _react.useCallback)(function () {\n    var icon = templateInfo.icon,\n      name = templateInfo.name,\n      desc = templateInfo.desc;\n    dispatchAddTemp({\n      visible: true,\n      id: id,\n      info: {\n        icon: icon,\n        name: name,\n        desc: desc\n      }\n    });\n  }, [templateInfo, dispatchAddTemp]);\n  var handleCreateApp = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {\n      var id, res, appInfo, message;\n      return _regenerator.default.wrap(function _callee$(_context4) {\n        while (1) switch (_context4.prev = _context4.next) {\n          case 0:\n            id = addTemp.id;\n            _context4.prev = 1;\n            _context4.next = 4;\n            return (0, _home.configApp)(_objectSpread({\n              templateId: id\n            }, data));\n          case 4:\n            res = _context4.sent;\n            appInfo = res.result[0];\n            if (appInfo) {\n              (0, _utils.openner)(\"/\".concat(appInfo.id, \"/home\"));\n            }\n            _context4.next = 14;\n            break;\n          case 9:\n            _context4.prev = 9;\n            _context4.t0 = _context4[\"catch\"](1);\n            console.log(_context4.t0);\n            message = _context4.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 14:\n          case \"end\":\n            return _context4.stop();\n        }\n      }, _callee, null, [[1, 9]]);\n    }));\n    return function (_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }(), [addTemp]);\n  var debounceCreateApp = (0, _useDebounce.default)(handleCreateApp, 500);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Drawer, {\n    className: _AppPreview.default['app-preview'],\n    height: \"100%\",\n    placement: \"bottom\",\n    keyboard: false,\n    visible: visible,\n    onClose: onClose,\n    title: \"\\u9884\\u89C8\\u5E94\\u7528\"\n  }, /*#__PURE__*/_react.default.createElement(\"iframe\", {\n    src: previewAppUrl,\n    frameBorder: \"0\",\n    width: \"100%\",\n    height: \"100%\"\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppPreview.default.preview_footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppPreview.default.tips\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"tishi\"\n  }), \"\\u5F53\\u524D\\u4E3A\\u6A21\\u677F\\u9884\\u89C8\\u6A21\\u5F0F\\uFF0C\\u5B8C\\u6574\\u529F\\u80FD\\u8BF7\\u4F7F\\u7528\\u6A21\\u677F\\u521B\\u5EFA\\u5E94\\u7528\\u3002\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppPreview.default.btns\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    onClick: function onClick() {\n      return setVisible === null || setVisible === void 0 ? void 0 : setVisible(false);\n    },\n    style: {\n      marginRight: '12px'\n    }\n  }, \"\\u9000\\u51FA\\u9884\\u89C8\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"primary\",\n    onClick: handleAdd\n  }, \"\\u4F7F\\u7528\")))), /*#__PURE__*/_react.default.createElement(_CreateAppModal.default, {\n    value: addTemp.info,\n    visible: addTemp.visible,\n    setVisible: function setVisible(vi) {\n      return dispatchAddTemp({\n        visible: vi\n      });\n    },\n    onConfirm: debounceCreateApp\n  }));\n};\nvar _default = exports[\"default\"] = AppPreview;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppPreview.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\"));\nvar _from = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.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 _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _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 _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _common = __webpack_require__(/*! @/actions/common */ \"./src/actions/common.js\");\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _template = __webpack_require__(/*! @/actions/template */ \"./src/actions/template.js\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _AppTemplateDetail = _interopRequireDefault(__webpack_require__(/*! ./AppTemplateDetail.less */ \"./src/web/component/common/templates/AppTemplateDetail.less\"));\nvar _SaveAppTemplate = _interopRequireDefault(__webpack_require__(/*! ./SaveAppTemplate */ \"./src/web/component/common/templates/SaveAppTemplate.tsx\"));\nvar _AppPreview = _interopRequireDefault(__webpack_require__(/*! ./AppPreview */ \"./src/web/component/common/templates/AppPreview.tsx\"));\nvar _CreateAppModal = _interopRequireDefault(__webpack_require__(/*! ./CreateAppModal */ \"./src/web/component/common/templates/CreateAppModal.tsx\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar INIT_PREVIEW_INFO = {\n  visible: false,\n  appId: '',\n  templateId: ''\n};\nvar INIT_CONFIRM_INFO = {\n  name: '',\n  id: '',\n  showConfirm: false\n};\nvar INIT_EDIT_TEMP = {\n  showModal: false,\n  // 编辑弹窗显示、隐藏\n  id: '',\n  // 编辑的id\n  info: {} // 模板详细信息\n};\nvar INIT_ADD_TEMP = {\n  visible: false,\n  id: '',\n  info: {}\n};\nvar INIT_COMMENTS_INFO = {\n  total: 0,\n  comments: [],\n  hasMore: false\n};\nfunction getNameMaxDisplay(name) {\n  var maxCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;\n  return name.length > maxCount ? \"\".concat(name.substr(0, maxCount - 1), \"...\") : name;\n}\nvar AppTemplateDetail = function AppTemplateDetail(_ref) {\n  var _context, _context2, _context3, _tempOtherInfo$forms, _context13, _tempOtherInfo$roles, _context15, _tempOtherInfo$flows, _context17;\n  var visible = _ref.visible,\n    setVisible = _ref.setVisible,\n    _ref$value = _ref.value,\n    value = _ref$value === void 0 ? {} : _ref$value,\n    _ref$canEdit = _ref.canEdit,\n    canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit,\n    onClose = _ref.onClose,\n    createApp = _ref.createApp,\n    imageFileserver = _ref.imageFileserver,\n    refreshTemplates = _ref.refreshTemplates;\n  var _useState = (0, _react.useState)(),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    svgData = _useState2[0],\n    setSvgData = _useState2[1];\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_COMMENTS_INFO),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    commentsInfo = _useReducer2[0],\n    dispatchCommentsInfo = _useReducer2[1];\n  var _useState3 = (0, _react.useState)({}),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    tempOtherInfo = _useState4[0],\n    setTempOtherInfo = _useState4[1];\n  var _useReducer3 = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_CONFIRM_INFO),\n    _useReducer4 = (0, _slicedToArray2.default)(_useReducer3, 2),\n    confirmInfo = _useReducer4[0],\n    dispatchConfirmInfo = _useReducer4[1]; // 删除确认信息\n  var _useReducer5 = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_EDIT_TEMP),\n    _useReducer6 = (0, _slicedToArray2.default)(_useReducer5, 2),\n    editTemp = _useReducer6[0],\n    dispatchEditTemp = _useReducer6[1]; // 编辑模板\n  var _useReducer7 = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_PREVIEW_INFO),\n    _useReducer8 = (0, _slicedToArray2.default)(_useReducer7, 2),\n    previewInfo = _useReducer8[0],\n    dispatchPreviewInfo = _useReducer8[1];\n  var _useReducer9 = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_ADD_TEMP),\n    _useReducer10 = (0, _slicedToArray2.default)(_useReducer9, 2),\n    addTemp = _useReducer10[0],\n    dispatchAddTemp = _useReducer10[1];\n  var _useState5 = (0, _react.useState)(true),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    loadingShow = _useState6[0],\n    setLoadingShow = _useState6[1];\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    previewBtnShow = _useState8[0],\n    setPreviewBtnShow = _useState8[1];\n  var _useReducer11 = (0, _react.useReducer)(_reducer.assignDataReducer, value),\n    _useReducer12 = (0, _slicedToArray2.default)(_useReducer11, 2),\n    templateInfo = _useReducer12[0],\n    dispatchTemplateInfo = _useReducer12[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    previewMode = _useState10[0],\n    setPreviewMode = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    deleteDisabled = _useState12[0],\n    setDeleteDisabled = _useState12[1];\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var userInfo = state.userInfo,\n    rootConfig = state.rootConfig;\n  var _ref2 = userInfo || {},\n    isAdminUser = _ref2.isAdminUser,\n    allowCreateApp = _ref2.createApp;\n  var pageParamRef = (0, _react.useRef)({\n    page_size: 5,\n    page_no: 1\n  }); // 页码\n  var _ref3 = templateInfo || {},\n    id = _ref3.id,\n    appid = _ref3.appid,\n    icon = _ref3.icon,\n    image = _ref3.image,\n    name = _ref3.name,\n    _ref3$domains = _ref3.domains,\n    domains = _ref3$domains === void 0 ? [] : _ref3$domains,\n    _ref3$trades = _ref3.trades,\n    trades = _ref3$trades === void 0 ? [] : _ref3$trades,\n    customTag = _ref3.tag,\n    desc = _ref3.desc,\n    frequency = _ref3.frequency,\n    _ref3$users = _ref3.users,\n    users = _ref3$users === void 0 ? [] : _ref3$users,\n    _ref3$orgs = _ref3.orgs,\n    orgs = _ref3$orgs === void 0 ? [] : _ref3$orgs,\n    _ref3$createdate = _ref3.createdate,\n    createdate = _ref3$createdate === void 0 ? '-' : _ref3$createdate,\n    org = _ref3.org;\n  var color = (0, _utils.getQueryString)('color', icon);\n  var search = window.location.search;\n  var previewAppUrl = (0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = \"\".concat(window.__domainurl__)).call(_context3, \"nocode\", \"/\")).call(_context2, appid)).call(_context, search);\n  var bgColor = {\n    backgroundColor: color\n  };\n  var tags = (0, _react.useMemo)(function () {\n    var _context4, _context5;\n    var tag = (customTag === null || customTag === void 0 ? void 0 : customTag.split(' ')) || [];\n    tag = (0, _filter.default)(_context4 = (0, _map.default)(tag).call(tag, function (text) {\n      var newStr = (text === null || text === void 0 ? void 0 : (0, _trim.default)(text).call(text)) || '';\n      return (0, _from.default)(newStr).length > 8 ? (0, _slice.default)(newStr).call(newStr, 0, 8) : newStr;\n    })).call(_context4, Boolean);\n    var tagList = (0, _concat.default)(_context5 = []).call(_context5, (0, _toConsumableArray2.default)(tag), (0, _toConsumableArray2.default)((0, _map.default)(domains).call(domains, function (item) {\n      return item.name;\n    })), (0, _toConsumableArray2.default)((0, _map.default)(trades).call(trades, function (item) {\n      return item.name;\n    })));\n    if (!(tagList !== null && tagList !== void 0 && tagList.length)) return ['暂无标签'];\n    return tagList;\n  }, [customTag, domains, trades]);\n  var setConfirmVisible = (0, _react.useCallback)(function (flag) {\n    dispatchConfirmInfo({\n      showConfirm: flag\n    });\n  }, [dispatchConfirmInfo]);\n  var handleDelete = (0, _react.useCallback)(function () {\n    dispatchConfirmInfo({\n      id: id,\n      name: name,\n      showConfirm: true\n    });\n  }, [dispatchConfirmInfo, id, name]);\n  var handleConfirmAction = function handleConfirmAction(key) {\n    switch (key) {\n      case 'ok':\n        doDeleteTemplate();\n        break;\n      case 'cancel':\n        setConfirmVisible(false);\n        break;\n      default:\n        break;\n    }\n  };\n\n  // 删除模板\n  var doDeleteTemplate = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var id, closeMessage, _yield$deleteTemplate, result, message;\n    return _regenerator.default.wrap(function _callee$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          id = confirmInfo.id;\n          if (id) {\n            _context6.next = 3;\n            break;\n          }\n          return _context6.abrupt(\"return\");\n        case 3:\n          if (!deleteDisabled) {\n            _context6.next = 5;\n            break;\n          }\n          return _context6.abrupt(\"return\");\n        case 5:\n          setDeleteDisabled(true);\n          closeMessage = (0, _utils.showLoadingMessage)('正在删除模板，请稍候...');\n          _context6.prev = 7;\n          _context6.next = 10;\n          return (0, _common.deleteTemplateById)(id);\n        case 10:\n          _yield$deleteTemplate = _context6.sent;\n          result = _yield$deleteTemplate.result;\n          if (result) {\n            closeMessage({\n              type: 'success',\n              content: '删除成功'\n            });\n            // 刷新模板列表\n            refreshTemplates();\n            setConfirmVisible(false);\n            setVisible(false);\n          }\n          _context6.next = 20;\n          break;\n        case 15:\n          _context6.prev = 15;\n          _context6.t0 = _context6[\"catch\"](7);\n          console.log(_context6.t0);\n          message = _context6.t0.message;\n          closeMessage({\n            type: 'error',\n            content: message\n          });\n        case 20:\n          setDeleteDisabled(false);\n        case 21:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee, null, [[7, 15]]);\n  })), [confirmInfo, setConfirmVisible, refreshTemplates, deleteDisabled]);\n  var handleEdit = (0, _react.useCallback)(function () {\n    dispatchEditTemp({\n      showModal: true,\n      id: id,\n      info: {\n        appid: appid,\n        name: name,\n        trades: (0, _map.default)(trades).call(trades, function (item) {\n          return item.id;\n        }),\n        domains: (0, _map.default)(domains).call(domains, function (item) {\n          return item.id;\n        }),\n        desc: desc,\n        icon: icon,\n        image: image,\n        tag: customTag,\n        org: org\n        // users, orgs\n      }\n    });\n  }, [dispatchEditTemp, templateInfo]);\n  var handleTemplateEditConfirm = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(templateConfig) {\n      var id, param, res, message;\n      return _regenerator.default.wrap(function _callee2$(_context7) {\n        while (1) switch (_context7.prev = _context7.next) {\n          case 0:\n            id = editTemp.id;\n            param = _objectSpread({\n              id: id,\n              type: '1'\n            }, templateConfig);\n            _context7.prev = 2;\n            _context7.next = 5;\n            return (0, _apps.modifyTemp)(param);\n          case 5:\n            res = _context7.sent;\n            if (res) {\n              (0, _utils.showNotice)('success', '修改成功');\n              dispatchEditTemp({\n                showModal: false\n              });\n              refreshTemplates(function (templates) {\n                var newTemplateInfo = (0, _find.default)(templates).call(templates, function (temp) {\n                  return temp.id === id;\n                });\n                dispatchTemplateInfo(newTemplateInfo || {});\n              });\n            }\n            _context7.next = 14;\n            break;\n          case 9:\n            _context7.prev = 9;\n            _context7.t0 = _context7[\"catch\"](2);\n            console.log(_context7.t0);\n            message = _context7.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 14:\n          case \"end\":\n            return _context7.stop();\n        }\n      }, _callee2, null, [[2, 9]]);\n    }));\n    return function (_x) {\n      return _ref5.apply(this, arguments);\n    };\n  }(), [editTemp, refreshTemplates, dispatchTemplateInfo]);\n  var debounceHandleEditTempConfirm = (0, _useDebounce.default)(handleTemplateEditConfirm, 300);\n  var handlePreview = (0, _react.useCallback)(function () {\n    dispatchPreviewInfo({\n      visible: true,\n      appId: appid,\n      templateId: id\n    });\n  }, [dispatchPreviewInfo, templateInfo]);\n  var onPreviewClose = (0, _react.useCallback)(function () {\n    dispatchPreviewInfo({\n      visible: false\n    });\n  }, [dispatchPreviewInfo, templateInfo]);\n  var handleAdd = (0, _react.useCallback)(function () {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    dispatchAddTemp({\n      visible: true,\n      id: id,\n      info: {\n        icon: icon,\n        name: name,\n        description: desc\n      }\n    });\n  }, [templateInfo, dispatchAddTemp, rootConfig]);\n  var handleCreateApp = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(data) {\n      var closeMessage, id, res, appInfo, message;\n      return _regenerator.default.wrap(function _callee3$(_context8) {\n        while (1) switch (_context8.prev = _context8.next) {\n          case 0:\n            closeMessage = (0, _utils.showLoadingMessage)('正在创建应用，请稍候...');\n            id = addTemp.id;\n            _context8.prev = 2;\n            _context8.next = 5;\n            return (0, _home.configApp)(_objectSpread({\n              templateId: id\n            }, data));\n          case 5:\n            res = _context8.sent;\n            appInfo = res.result[0];\n            if (appInfo) {\n              closeMessage({\n                type: 'success',\n                content: '创建应用成功'\n              });\n              (0, _utils.openner)(\"/\".concat(appInfo.id, \"/home\"));\n            }\n            _context8.next = 15;\n            break;\n          case 10:\n            _context8.prev = 10;\n            _context8.t0 = _context8[\"catch\"](2);\n            console.log(_context8.t0);\n            message = _context8.t0.message;\n            closeMessage({\n              type: 'error',\n              content: message\n            });\n          case 15:\n          case \"end\":\n            return _context8.stop();\n        }\n      }, _callee3, null, [[2, 10]]);\n    }));\n    return function (_x2) {\n      return _ref6.apply(this, arguments);\n    };\n  }(), [addTemp]);\n  var getSvgData = /*#__PURE__*/function () {\n    var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {\n      var _yield$getLineIconAnd, _data, message;\n      return _regenerator.default.wrap(function _callee4$(_context9) {\n        while (1) switch (_context9.prev = _context9.next) {\n          case 0:\n            _context9.prev = 0;\n            _context9.next = 3;\n            return (0, _home.getLineIconAndColor)();\n          case 3:\n            _yield$getLineIconAnd = _context9.sent;\n            _data = _yield$getLineIconAnd.row;\n            setSvgData(_data);\n            _context9.next = 13;\n            break;\n          case 8:\n            _context9.prev = 8;\n            _context9.t0 = _context9[\"catch\"](0);\n            console.log(_context9.t0);\n            message = _context9.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 13:\n          case \"end\":\n            return _context9.stop();\n        }\n      }, _callee4, null, [[0, 8]]);\n    }));\n    return function getSvgData() {\n      return _ref7.apply(this, arguments);\n    };\n  }();\n\n  // 查询模板评分、表单、查看数量等信息\n  var fetchTemplateScore = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {\n    var params,\n      _yield$getTemplateSco,\n      _yield$getTemplateSco2,\n      _data2,\n      message,\n      _args5 = arguments;\n    return _regenerator.default.wrap(function _callee5$(_context10) {\n      while (1) switch (_context10.prev = _context10.next) {\n        case 0:\n          params = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {};\n          _context10.prev = 1;\n          _context10.next = 4;\n          return (0, _template.getTemplateScore)(id, params);\n        case 4:\n          _yield$getTemplateSco = _context10.sent;\n          _yield$getTemplateSco2 = _yield$getTemplateSco.row;\n          _data2 = _yield$getTemplateSco2 === void 0 ? {} : _yield$getTemplateSco2;\n          console.log('data----', _data2);\n          setTempOtherInfo(_data2);\n          _context10.next = 16;\n          break;\n        case 11:\n          _context10.prev = 11;\n          _context10.t0 = _context10[\"catch\"](1);\n          console.log(_context10.t0);\n          message = _context10.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 16:\n        case \"end\":\n          return _context10.stop();\n      }\n    }, _callee5, null, [[1, 11]]);\n  })), [id, setTempOtherInfo]);\n  var fetchComments = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {\n    var loadMoreMode,\n      params,\n      res,\n      _context11,\n      rows,\n      lastPage,\n      totalCount,\n      _data3,\n      message,\n      _args6 = arguments;\n    return _regenerator.default.wrap(function _callee6$(_context12) {\n      while (1) switch (_context12.prev = _context12.next) {\n        case 0:\n          loadMoreMode = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : false;\n          params = _objectSpread({}, pageParamRef.current);\n          _context12.prev = 2;\n          _context12.next = 5;\n          return (0, _template.getTemplateComments)(id, params);\n        case 5:\n          res = _context12.sent;\n          if (res) {\n            rows = res.rows, lastPage = res.lastPage, totalCount = res.totalCount;\n            _data3 = loadMoreMode ? (0, _concat.default)(_context11 = commentsInfo.comments || []).call(_context11, rows) : rows;\n            dispatchCommentsInfo({\n              hasMore: !lastPage,\n              comments: _data3,\n              total: totalCount\n            });\n          }\n          _context12.next = 14;\n          break;\n        case 9:\n          _context12.prev = 9;\n          _context12.t0 = _context12[\"catch\"](2);\n          console.log(_context12.t0);\n          message = _context12.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 14:\n        case \"end\":\n          return _context12.stop();\n      }\n    }, _callee6, null, [[2, 9]]);\n  })), [id, commentsInfo, dispatchCommentsInfo]);\n  var handleAfterCommentSubmit = function handleAfterCommentSubmit() {\n    var _pageParamRef$current = pageParamRef.current,\n      page_no = _pageParamRef$current.page_no,\n      page_size = _pageParamRef$current.page_size;\n    pageParamRef.current.page_no = 1;\n    pageParamRef.current.page_size = page_no * page_size;\n    fetchTemplateScore({\n      view: false\n    });\n    fetchComments();\n  };\n  var loadMoreComments = function loadMoreComments() {\n    var _pageParamRef$current2 = pageParamRef.current,\n      page_no = _pageParamRef$current2.page_no,\n      page_size = _pageParamRef$current2.page_size;\n    if (page_no === 1 && page_size > 5) {\n      pageParamRef.current = {\n        page_no: page_size / 5 + 1,\n        page_size: 5\n      };\n    } else {\n      pageParamRef.current = {\n        page_no: page_no + 1,\n        page_size: page_size\n      };\n    }\n    fetchComments(true);\n  };\n  var handleClosePreview = function handleClosePreview() {\n    setPreviewMode(false);\n    setPreviewBtnShow(false);\n  };\n  var debounceCreateApp = (0, _useDebounce.default)(handleCreateApp, 500);\n  (0, _react.useEffect)(function () {\n    if (visible) {\n      setLoadingShow(true);\n    }\n  }, [visible]);\n  (0, _react.useEffect)(function () {\n    if (!(0, _lodash.isEqual)(value, templateInfo)) {\n      dispatchTemplateInfo(value);\n    }\n  }, [value]);\n  (0, _react.useEffect)(function () {\n    getSvgData();\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (visible) {\n      fetchTemplateScore();\n      fetchComments();\n    }\n  }, [id]);\n  var renderFormIcon = function renderFormIcon(image) {\n    var _svgData$colors, _svgData$svgs, _svgData$colors2, _svgData$svgs2;\n    if (!svgData) return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['form-icon']\n    });\n    var color = (0, _utils.getQueryString)('color', image); // 图标背景颜色\n    var svg = (0, _utils.getQueryString)('svg', image); // 图标样式\n    var colorIndex = color && color !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$colors = svgData.colors) === null || _svgData$colors === void 0 ? void 0 : (0, _findIndex.default)(_svgData$colors).call(_svgData$colors, function (item) {\n      return item.value === color || item.key === color;\n    }) : 0;\n    var iconIndex = svg && svg !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$svgs = svgData.svgs) === null || _svgData$svgs === void 0 ? void 0 : (0, _findIndex.default)(_svgData$svgs).call(_svgData$svgs, function (item) {\n      return item.label === svg;\n    }) : 0;\n    var svgFill = svgData === null || svgData === void 0 || (_svgData$colors2 = svgData.colors) === null || _svgData$colors2 === void 0 || (_svgData$colors2 = _svgData$colors2[colorIndex]) === null || _svgData$colors2 === void 0 ? void 0 : _svgData$colors2.value;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      ref: function ref(r) {\n        var _r$getElementsByTagNa;\n        r === null || r === void 0 || (_r$getElementsByTagNa = r.getElementsByTagName('path')) === null || _r$getElementsByTagNa === void 0 || (_r$getElementsByTagNa = _r$getElementsByTagNa[0]) === null || _r$getElementsByTagNa === void 0 || _r$getElementsByTagNa.setAttribute('style', \"fill:\".concat(svgFill, \" \"));\n      },\n      className: (0, _classnames.default)(_AppTemplateDetail.default['form-icon']),\n      dangerouslySetInnerHTML: {\n        __html: (svgData === null || svgData === void 0 || (_svgData$svgs2 = svgData.svgs) === null || _svgData$svgs2 === void 0 || (_svgData$svgs2 = _svgData$svgs2[iconIndex]) === null || _svgData$svgs2 === void 0 ? void 0 : _svgData$svgs2.content) || ''\n      }\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Drawer, {\n    className: _AppTemplateDetail.default['template-detail'],\n    height: \"100%\",\n    placement: \"bottom\",\n    keyboard: false,\n    visible: visible,\n    onClose: onClose,\n    title: \"\\u6A21\\u677F\\u8BE6\\u60C5\"\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_AppTemplateDetail.default.appPreview, (0, _defineProperty2.default)({}, _AppTemplateDetail.default['preview-mode'], previewMode)),\n    style: bgColor\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['iframe-area'],\n    onMouseOver: function onMouseOver() {\n      return setPreviewBtnShow(true);\n    },\n    onMouseLeave: function onMouseLeave() {\n      return setPreviewBtnShow(false);\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"iframe\", {\n    src: previewAppUrl,\n    frameBorder: \"0\",\n    width: \"100%\",\n    height: \"720px\",\n    onLoad: function onLoad() {\n      return setLoadingShow(false);\n    }\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_AppTemplateDetail.default.layer, (0, _defineProperty2.default)({}, _AppTemplateDetail.default.show, !loadingShow)),\n    onClick: function onClick() {\n      return setPreviewMode(true);\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['preview-btn'],\n    \"data-nc-action\": \"root-template||ts_at_tp_pv\"\n  }, \"\\u70B9\\u51FB\\u9884\\u89C8\")), loadingShow && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['spin-wrapper']\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Spin, {\n    name: \"spin\"\n  })), previewMode && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.preview_footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.tips\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"tishi\"\n  }), \"\\u5F53\\u524D\\u4E3A\\u6A21\\u677F\\u9884\\u89C8\\u6A21\\u5F0F\\uFF0C\\u5B8C\\u6574\\u529F\\u80FD\\u8BF7\\u4F7F\\u7528\\u6A21\\u677F\\u521B\\u5EFA\\u5E94\\u7528\\u3002\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.btns\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    onClick: handleClosePreview,\n    style: {\n      marginRight: '12px'\n    }\n  }, \"\\u9000\\u51FA\\u9884\\u89C8\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"primary\",\n    onClick: handleAdd,\n    disabled: !allowCreateApp,\n    \"data-nc-action\": \"root-template||ts_at_pvg_use_bn\"\n  }, \"\\u4F7F\\u7528\"))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.wrapper\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['main-left']\n  }, /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _AppTemplateDetail.default['left-top']\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: (0, _utils.getUrlWithDataCenter)((0, _utils.getFullUrl)(icon)),\n    alt: \" \",\n    className: _AppTemplateDetail.default['app-icon']\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.detail\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['name-area']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.name\n  }, name), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.btns\n  }, isAdminUser && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"text\",\n    size: \"small\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"shanchu2\"\n    }),\n    onClick: handleDelete\n  }, \"\\u5220\\u9664\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"text\",\n    size: \"small\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"bianji\"\n    }),\n    onClick: handleEdit,\n    \"data-nc-action\": \"root-template||ts_at_tp_edit\"\n  }, \"\\u7F16\\u8F91\")), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"primary\",\n    onClick: handleAdd,\n    disabled: !allowCreateApp,\n    \"data-nc-action\": \"root-template||ts_at_tp_use\"\n  }, \"\\u4F7F\\u7528\"))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['use-info']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.count\n  }, \"\\u5DF2\\u4F7F\\u7528\\xA0\", frequency), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.count\n  }, \"\\u5DF2\\u67E5\\u770B\\xA0\", (tempOtherInfo === null || tempOtherInfo === void 0 ? void 0 : tempOtherInfo.view) || 0)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['tag-wrapper']\n  }, (0, _map.default)(tags).call(tags, function (tagName, index) {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default.tag,\n      key: index\n    }, tagName);\n  })))), /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _AppTemplateDetail.default.block,\n    style: {\n      marginTop: '40px'\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.title\n  }, \"\\u5E94\\u7528\\u8BF4\\u660E\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.desc\n  }, desc || '暂无描述')), /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _AppTemplateDetail.default.block\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.title\n  }, \"\\u5E94\\u7528\\u5185\\u5BB9\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.collapse\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Collapse, {\n    name: \"app_template_collapse\"\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Collapse.Panel, {\n    header: \"\\u8868\\u5355\\uFF08\".concat(((_tempOtherInfo$forms = tempOtherInfo.forms) === null || _tempOtherInfo$forms === void 0 ? void 0 : _tempOtherInfo$forms.length) || 0, \"\\uFF09\"),\n    panelKey: \"form-list\"\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['form-list']\n  }, (0, _map.default)(_context13 = tempOtherInfo.forms || []).call(_context13, function (_ref10, index) {\n    var _context14;\n    var name = _ref10.name,\n      icon = _ref10.icon;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['form-item'],\n      key: (0, _concat.default)(_context14 = \"template_\".concat(id, \"_forms_\")).call(_context14, index),\n      title: name\n    }, renderFormIcon(icon || _defaultIcon.DEFAULT_FORM_IMAGE), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['form-name']\n    }, name));\n  }))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.collapse\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Collapse, {\n    name: \"app_template_collapse\"\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Collapse.Panel, {\n    header: \"\\u89D2\\u8272\\uFF08\".concat(((_tempOtherInfo$roles = tempOtherInfo.roles) === null || _tempOtherInfo$roles === void 0 ? void 0 : _tempOtherInfo$roles.length) || 0, \"\\uFF09\"),\n    panelKey: \"role-list\"\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['role-list']\n  }, (0, _map.default)(_context15 = tempOtherInfo.roles || []).call(_context15, function (name, index) {\n    var _context16;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['role-item'],\n      key: (0, _concat.default)(_context16 = \"template_\".concat(id, \"_roles_\")).call(_context16, index),\n      title: name\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _AppTemplateDetail.default['role-pre']\n    }), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['role-name']\n    }, name));\n  }))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.collapse\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Collapse, {\n    name: \"app_template_collapse\"\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Collapse.Panel, {\n    header: \"\\u6D41\\u7A0B\\uFF08\".concat(((_tempOtherInfo$flows = tempOtherInfo.flows) === null || _tempOtherInfo$flows === void 0 ? void 0 : _tempOtherInfo$flows.length) || 0, \"\\uFF09\"),\n    panelKey: \"role-list\"\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['role-list']\n  }, (0, _map.default)(_context17 = tempOtherInfo.flows || []).call(_context17, function (name, index) {\n    var _context18;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['role-item'],\n      key: (0, _concat.default)(_context18 = \"template_\".concat(id, \"_flows_\")).call(_context18, index),\n      title: name\n    }, /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _AppTemplateDetail.default['role-pre']\n    }), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplateDetail.default['role-name']\n    }, name));\n  }))))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['main-right']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.block,\n    style: {\n      marginTop: '24px'\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default.title\n  }, \"\\u5F00\\u53D1\\u8005\\u4FE1\\u606F\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['create-info']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['info-item']\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppTemplateDetail.default['info-title']\n  }, \"\\u53D1\\u5E03\\u6765\\u6E90\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppTemplateDetail.default['info-content']\n  }, org || '-')), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _AppTemplateDetail.default['info-item']\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppTemplateDetail.default['info-title']\n  }, \"\\u53D1\\u5E03\\u65F6\\u95F4\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _AppTemplateDetail.default['info-content']\n  }, createdate)))))))), /*#__PURE__*/_react.default.createElement(_WebUI.ConfirmModal, {\n    type: \"delete\",\n    visible: confirmInfo.showConfirm,\n    title: \"\\u5220\\u9664\\u6A21\\u677F\",\n    content: \"\\u786E\\u8BA4\\u5220\\u9664\\u3010\".concat(getNameMaxDisplay(confirmInfo.name), \"\\u3011\\u6A21\\u677F\\u5417\\uFF1F\\u4E00\\u65E6\\u5220\\u9664\\uFF0C\\u4E0D\\u53EF\\u6062\\u590D\"),\n    onAction: handleConfirmAction\n  }), /*#__PURE__*/_react.default.createElement(_SaveAppTemplate.default, {\n    title: \"\\u4FDD\\u5B58\\u4E3A\\u5E94\\u7528\\u6A21\\u677F\",\n    value: editTemp.info,\n    visible: editTemp.showModal,\n    imageFileserver: imageFileserver,\n    isEdit: true,\n    setVisible: function setVisible(vi) {\n      return dispatchEditTemp({\n        showModal: vi\n      });\n    },\n    onConfirm: debounceHandleEditTempConfirm,\n    confirmBtnProps: {\n      'data-nc-action': 'root-template||sat_comf'\n    }\n  }), /*#__PURE__*/_react.default.createElement(_AppPreview.default, {\n    visible: previewInfo.visible,\n    templateInfo: templateInfo,\n    setVisible: function setVisible(vi) {\n      return dispatchPreviewInfo({\n        visible: vi\n      });\n    },\n    onClose: onPreviewClose,\n    createApp: createApp\n  }), /*#__PURE__*/_react.default.createElement(_CreateAppModal.default, {\n    value: addTemp.info,\n    visible: addTemp.visible,\n    setVisible: function setVisible(vi) {\n      return dispatchAddTemp({\n        visible: vi\n      });\n    },\n    onConfirm: debounceCreateApp\n  }));\n};\nvar _default = exports[\"default\"] = AppTemplateDetail;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppTemplateDetail.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/AppTemplates.tsx":
/*!*************************************************************!*\
  !*** ./src/web/component/common/templates/AppTemplates.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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _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 _NoData = _interopRequireDefault(__webpack_require__(/*! ./NoData */ \"./src/web/component/common/templates/NoData.tsx\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _common = __webpack_require__(/*! @/actions/common */ \"./src/actions/common.js\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _AppTemplateDetail = _interopRequireDefault(__webpack_require__(/*! ./AppTemplateDetail */ \"./src/web/component/common/templates/AppTemplateDetail.tsx\"));\nvar _TemplateCard = __webpack_require__(/*! ./TemplateCard */ \"./src/web/component/common/templates/TemplateCard.tsx\");\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _Ellipsis = _interopRequireDefault(__webpack_require__(/*! ../Ellipsis */ \"./src/web/component/common/Ellipsis.tsx\"));\nvar _AppTemplates = _interopRequireDefault(__webpack_require__(/*! ./AppTemplates.less */ \"./src/web/component/common/templates/AppTemplates.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 * 应用模板\n */\n\nvar INIT_APP_DETAIL = {\n  visible: false,\n  templateInfo: {},\n  canEdit: false\n};\nvar AppTemplates = function AppTemplates(_ref) {\n  var _state$userInfo;\n  var filterConfig = _ref.filterConfig,\n    loaded = _ref.loaded,\n    handleLoaded = _ref.handleLoaded;\n  var domain = filterConfig.domain,\n    trade = filterConfig.trade,\n    keyword = filterConfig.keyword,\n    templateFilter = filterConfig.templateFilter;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    templates = _useState2[0],\n    setTemplates = _useState2[1]; // 模板列表\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_APP_DETAIL),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    detailInfo = _useReducer2[0],\n    dispatchDetailInfo = _useReducer2[1];\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state;\n  var currentUserId = ((_state$userInfo = state.userInfo) === null || _state$userInfo === void 0 ? void 0 : _state$userInfo.id) || '';\n  var _useAppContext = (0, _useAppContext2.default)(),\n    appState = _useAppContext.state;\n  var _appState$fileServer$ = appState.fileServer.imageUrl,\n    imageFileserver = _appState$fileServer$ === void 0 ? '' : _appState$fileServer$;\n\n  // 查询表单模板\n  var getTemplates = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(callback) {\n      var _context;\n      var filterStr, data, _yield$getFormTemplat, _yield$getFormTemplat2, _templates, message;\n      return _regenerator.default.wrap(function _callee$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            filterStr = (0, _filter.default)(_context = ['type EQ 1', domain ? \"domains.fbasedataid.id IN \".concat(domain) : '', trade ? \"trades.fbasedataid.id IN \".concat(trade) : '', keyword ? \"name CS '\".concat(keyword, \"'\") : '']).call(_context, Boolean).join(' and ');\n            data = filterStr ? {\n              filter: filterStr\n            } : {};\n            if (templateFilter !== '0') {\n              data.template_filter = templateFilter;\n            }\n            _context2.prev = 3;\n            _context2.next = 6;\n            return (0, _common.getFormTemplates)(data);\n          case 6:\n            _yield$getFormTemplat = _context2.sent;\n            _yield$getFormTemplat2 = _yield$getFormTemplat.rows;\n            _templates = _yield$getFormTemplat2 === void 0 ? [] : _yield$getFormTemplat2;\n            setTemplates(_templates);\n            callback === null || callback === void 0 || callback(_templates);\n            _context2.next = 19;\n            break;\n          case 13:\n            _context2.prev = 13;\n            _context2.t0 = _context2[\"catch\"](3);\n            console.log(_context2.t0);\n            setTemplates([]);\n            message = _context2.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 19:\n            handleLoaded(true);\n          case 20:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee, null, [[3, 13]]);\n    }));\n    return function (_x) {\n      return _ref2.apply(this, arguments);\n    };\n  }(), [domain, trade, keyword, templateFilter]);\n\n  // 使用模板\n  var createApp = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(templateId) {\n      var res, appInfo, message;\n      return _regenerator.default.wrap(function _callee2$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.prev = 0;\n            _context3.next = 3;\n            return (0, _home.configApp)({\n              templateId: templateId\n            });\n          case 3:\n            res = _context3.sent;\n            appInfo = res.result[0];\n            if (appInfo) {\n              (0, _utils.openner)(\"/\".concat(appInfo.id, \"/home\"));\n            }\n            _context3.next = 13;\n            break;\n          case 8:\n            _context3.prev = 8;\n            _context3.t0 = _context3[\"catch\"](0);\n            console.log(_context3.t0);\n            message = _context3.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 13:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee2, null, [[0, 8]]);\n    }));\n    return function (_x2) {\n      return _ref3.apply(this, arguments);\n    };\n  }(), []);\n  var onDetailClose = (0, _react.useCallback)(function () {\n    dispatchDetailInfo({\n      visible: false\n    });\n  }, [dispatchDetailInfo]);\n  var handleCheckTemplateDetail = (0, _react.useCallback)(function (data) {\n    var _data$creator;\n    var creatorId = ((_data$creator = data.creator) === null || _data$creator === void 0 ? void 0 : _data$creator.id) || '';\n    dispatchDetailInfo({\n      visible: true,\n      templateInfo: data,\n      canEdit: currentUserId === creatorId\n    });\n  }, [dispatchDetailInfo, currentUserId]);\n  (0, _react.useEffect)(function () {\n    getTemplates();\n  }, [getTemplates]);\n  var bannerArea = (0, _react.useMemo)(function () {\n    // 如果存在筛选条件，则不渲染\n    if (domain || trade || keyword.length > 0 || templateFilter !== '0') return null;\n    if (!(templates !== null && templates !== void 0 && templates.length)) return null;\n    var topTemplates = (0, _slice.default)(templates).call(templates, 0, 4);\n    var carouselKey = (0, _map.default)(topTemplates).call(topTemplates, function (item) {\n      return item.id;\n    }).join('-');\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _AppTemplates.default.banner,\n      key: carouselKey,\n      \"data-nc-action\": \"root-template||ts_at_bnr\"\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Carousel, {\n      name: \"Carousel\",\n      autoplay: true\n    }, (0, _map.default)(topTemplates).call(topTemplates, function (temp) {\n      var image = temp.image,\n        icon = temp.icon,\n        id = temp.id,\n        name = temp.name,\n        desc = temp.desc;\n      var fullImageUrl = (0, _utils.getTemplateImageUrl)(imageFileserver, image);\n      var color = (0, _utils.getQueryString)('color', icon);\n      var bgStyle = {\n        backgroundColor: \"\".concat(color)\n      };\n      var linearBgStyle = {\n        backgroundImage: \"linear-gradient(270deg, transparent 0%, \".concat(color, \" 100%)\")\n      };\n      return /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default['banner-item'],\n        key: id,\n        onClick: function onClick() {\n          return handleCheckTemplateDetail(temp);\n        }\n      }, /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default['left-area'],\n        style: bgStyle\n      }, /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default.title\n      }, name), /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default.desc,\n        title: desc || '暂无描述'\n      }, /*#__PURE__*/_react.default.createElement(_Ellipsis.default, {\n        rows: 2,\n        content: (0, _TemplateCard.getDescFormat)(desc)\n      })), /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default['go-detail'],\n        style: {\n          color: \"\".concat(color)\n        }\n      }, \"\\u67E5\\u770B\\u8BE6\\u60C5\")), /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default['right-area']\n      }, /*#__PURE__*/_react.default.createElement(\"img\", {\n        src: fullImageUrl,\n        className: _AppTemplates.default['bg-image'],\n        alt: \"\\u56FE\\u7247\"\n      }), /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _AppTemplates.default['linear-bg'],\n        style: linearBgStyle\n      })));\n    })));\n  }, [templates, domain, trade, templateFilter]);\n  var templateNodes = (0, _react.useMemo)(function () {\n    if (!(templates !== null && templates !== void 0 && templates.length)) return null;\n    var hotNum = Math.max.apply(Math, (0, _toConsumableArray2.default)((0, _map.default)(templates).call(templates, function (item) {\n      return item.frequency || 0;\n    })));\n    return /*#__PURE__*/_react.default.createElement(\"ul\", {\n      className: _AppTemplates.default.app_templates\n    }, (0, _map.default)(templates).call(templates, function (temp) {\n      var id = temp.id,\n        creator = temp.creator,\n        name = temp.name,\n        desc = temp.desc,\n        org = temp.org,\n        tag = temp.tag,\n        domains = temp.domains,\n        trades = temp.trades,\n        frequency = temp.frequency,\n        image = temp.image,\n        icon = temp.icon,\n        createdate = temp.createdate;\n      var domainNames = (0, _map.default)(domains).call(domains, function (item) {\n        return item.name;\n      });\n      var tradeNames = (0, _map.default)(trades).call(trades, function (item) {\n        return item.name;\n      });\n      var isNew = (Date.now() - new Date(createdate.replace(/-/g, '/')).getTime()) / 86400000 < 30;\n      return /*#__PURE__*/_react.default.createElement(_TemplateCard.AppTemplateCard, {\n        key: id,\n        className: _AppTemplates.default.card,\n        name: name,\n        desc: desc,\n        org: org,\n        tag: tag,\n        domains: domainNames,\n        trades: tradeNames,\n        frequency: frequency,\n        image: image,\n        icon: icon,\n        imageFileserver: imageFileserver,\n        isHot: !!hotNum && frequency === hotNum,\n        isNew: isNew,\n        onClick: function onClick() {\n          return handleCheckTemplateDetail(temp);\n        },\n        style: {\n          cursor: 'pointer'\n        },\n        \"data-nc-action\": \"root-template||ts_at\"\n      });\n    }));\n  }, [templates, imageFileserver, currentUserId, handleCheckTemplateDetail]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, bannerArea, loaded && templates && (templates.length ? templateNodes : /*#__PURE__*/_react.default.createElement(_NoData.default, {\n    text: \"\\u6682\\u65E0\\u5E94\\u7528\\u6A21\\u677F\"\n  })), /*#__PURE__*/_react.default.createElement(_AppTemplateDetail.default, {\n    visible: detailInfo.visible,\n    imageFileserver: imageFileserver,\n    value: detailInfo.templateInfo,\n    canEdit: detailInfo.canEdit,\n    setVisible: function setVisible(vi) {\n      return dispatchDetailInfo({\n        visible: vi\n      });\n    },\n    onClose: onDetailClose,\n    createApp: createApp,\n    refreshTemplates: getTemplates\n  }));\n};\nvar _default = exports[\"default\"] = AppTemplates;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/AppTemplates.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/BillTemplateDetail.tsx":
/*!*******************************************************************!*\
  !*** ./src/web/component/common/templates/BillTemplateDetail.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _replaceAll = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js\"));\nvar _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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _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 _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _common = __webpack_require__(/*! @/actions/common */ \"./src/actions/common.js\");\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _template = __webpack_require__(/*! @/actions/template */ \"./src/actions/template.js\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _BillTemplateDetail = _interopRequireDefault(__webpack_require__(/*! ./BillTemplateDetail.less */ \"./src/web/component/common/templates/BillTemplateDetail.less\"));\nvar _SelectApp = _interopRequireDefault(__webpack_require__(/*! ./SelectApp */ \"./src/web/component/common/templates/SelectApp.tsx\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _NocodeEntry = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/NocodeEntry */ \"./src/web/component/common/NocodeEntry.tsx\"));\nvar _SaveTemplateModal = _interopRequireDefault(__webpack_require__(/*! @/web/layout/designer/SaveTemplateModal */ \"./src/web/layout/designer/SaveTemplateModal.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; }\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 INIT_CONFIRM_INFO = {\n  name: '',\n  id: '',\n  showConfirm: false\n};\nvar INIT_EDIT_TEMP = {\n  showModal: false,\n  // 编辑弹窗显示、隐藏\n  id: '',\n  // 编辑的id\n  info: {} // 模板详细信息\n};\nvar INIT_COMMENTS_INFO = {\n  total: 0,\n  comments: [],\n  hasMore: false\n};\nfunction getNameMaxDisplay(name) {\n  var maxCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;\n  return name.length > maxCount ? \"\".concat(name.substr(0, maxCount - 1), \"...\") : name;\n}\nvar BillTemplateDetail = function BillTemplateDetail(_ref) {\n  var visible = _ref.visible,\n    setVisible = _ref.setVisible,\n    _ref$value = _ref.value,\n    value = _ref$value === void 0 ? {} : _ref$value,\n    _ref$canEdit = _ref.canEdit,\n    canEdit = _ref$canEdit === void 0 ? false : _ref$canEdit,\n    svgData = _ref.svgData,\n    refreshTemplates = _ref.refreshTemplates,\n    canJumpPrev = _ref.canJumpPrev,\n    canJumpNext = _ref.canJumpNext,\n    jumpTo = _ref.jumpTo,\n    onUseTemplate = _ref.onUseTemplate;\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_COMMENTS_INFO),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    commentsInfo = _useReducer2[0],\n    dispatchCommentsInfo = _useReducer2[1];\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    tempOtherInfo = _useState2[0],\n    setTempOtherInfo = _useState2[1];\n  var _useReducer3 = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_CONFIRM_INFO),\n    _useReducer4 = (0, _slicedToArray2.default)(_useReducer3, 2),\n    confirmInfo = _useReducer4[0],\n    dispatchConfirmInfo = _useReducer4[1]; // 删除确认信息\n  var _useReducer5 = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_EDIT_TEMP),\n    _useReducer6 = (0, _slicedToArray2.default)(_useReducer5, 2),\n    editTemp = _useReducer6[0],\n    dispatchEditTemp = _useReducer6[1]; // 编辑模板\n  var _useReducer7 = (0, _react.useReducer)(_reducer.assignDataReducer, value),\n    _useReducer8 = (0, _slicedToArray2.default)(_useReducer7, 2),\n    templateInfo = _useReducer8[0],\n    dispatchTemplateInfo = _useReducer8[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    deleteDisabled = _useState4[0],\n    setDeleteDisabled = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    selectAppVisible = _useState6[0],\n    setSelectAppVisible = _useState6[1];\n  var _useState7 = (0, _react.useState)(null),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    bosApi = _useState8[0],\n    setBosApi = _useState8[1];\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var rootConfig = state.rootConfig;\n  var pageParamRef = (0, _react.useRef)({\n    page_size: 5,\n    page_no: 1\n  }); // 页码\n  var _ref2 = templateInfo || {},\n    id = _ref2.id,\n    appid = _ref2.appid,\n    icon = _ref2.icon,\n    name = _ref2.name,\n    _ref2$domains = _ref2.domains,\n    domains = _ref2$domains === void 0 ? [] : _ref2$domains,\n    _ref2$trades = _ref2.trades,\n    trades = _ref2$trades === void 0 ? [] : _ref2$trades,\n    desc = _ref2.desc,\n    frequency = _ref2.frequency,\n    _ref2$createdate = _ref2.createdate,\n    createdate = _ref2$createdate === void 0 ? '-' : _ref2$createdate,\n    org = _ref2.org,\n    formid = _ref2.formid;\n  var bosConfig = (0, _react.useMemo)(function () {\n    return {\n      formId: 'bos_nocode_bill',\n      targetFormId: formid,\n      Status: 'addNew',\n      pkId: '',\n      appId: appid\n    };\n  }, [appid, formid]);\n  var tags = (0, _react.useMemo)(function () {\n    var _context;\n    var tagList = (0, _concat.default)(_context = []).call(_context, (0, _toConsumableArray2.default)((0, _map.default)(domains).call(domains, function (item) {\n      return item.name;\n    })), (0, _toConsumableArray2.default)((0, _map.default)(trades).call(trades, function (item) {\n      return item.name;\n    })));\n    if (!(tagList !== null && tagList !== void 0 && tagList.length)) return ['暂无标签'];\n    return tagList;\n  }, [domains, trades]);\n  var onRef = (0, _react.useCallback)(function (handle) {\n    if (handle) {\n      setBosApi(handle);\n    }\n  }, []);\n  var options = (0, _react.useMemo)(function () {\n    return {\n      rootConfig: rootConfig\n    };\n  }, [rootConfig]);\n  var setConfirmVisible = (0, _react.useCallback)(function (flag) {\n    dispatchConfirmInfo({\n      showConfirm: flag\n    });\n  }, [dispatchConfirmInfo]);\n  var handleDelete = (0, _react.useCallback)(function () {\n    dispatchConfirmInfo({\n      id: id,\n      name: name,\n      showConfirm: true\n    });\n  }, [dispatchConfirmInfo, id, name]);\n  var handleConfirmAction = function handleConfirmAction(key) {\n    switch (key) {\n      case 'ok':\n        doDeleteTemplate();\n        break;\n      case 'cancel':\n        setConfirmVisible(false);\n        break;\n      default:\n        break;\n    }\n  };\n\n  // 删除模板\n  var doDeleteTemplate = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var id, closeMessage, _yield$deleteTemplate, result, message;\n    return _regenerator.default.wrap(function _callee$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          id = confirmInfo.id;\n          if (id) {\n            _context2.next = 3;\n            break;\n          }\n          return _context2.abrupt(\"return\");\n        case 3:\n          if (!deleteDisabled) {\n            _context2.next = 5;\n            break;\n          }\n          return _context2.abrupt(\"return\");\n        case 5:\n          setDeleteDisabled(true);\n          closeMessage = (0, _utils.showLoadingMessage)('正在删除模板，请稍候...');\n          _context2.prev = 7;\n          _context2.next = 10;\n          return (0, _common.deleteTemplateById)(id);\n        case 10:\n          _yield$deleteTemplate = _context2.sent;\n          result = _yield$deleteTemplate.result;\n          if (result) {\n            closeMessage({\n              type: 'success',\n              content: '删除成功'\n            });\n            // 刷新模板列表\n            refreshTemplates();\n            setConfirmVisible(false);\n            setVisible(false);\n          }\n          _context2.next = 20;\n          break;\n        case 15:\n          _context2.prev = 15;\n          _context2.t0 = _context2[\"catch\"](7);\n          console.log(_context2.t0);\n          message = _context2.t0.message;\n          closeMessage({\n            type: 'error',\n            content: message\n          });\n        case 20:\n          setDeleteDisabled(false);\n        case 21:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee, null, [[7, 15]]);\n  })), [confirmInfo, setConfirmVisible, refreshTemplates, deleteDisabled]);\n  var handleEdit = (0, _react.useCallback)(function () {\n    dispatchEditTemp({\n      showModal: true,\n      id: id,\n      info: {\n        name: name,\n        trades: (0, _map.default)(trades).call(trades, function (item) {\n          return item.id;\n        }),\n        domains: (0, _map.default)(domains).call(domains, function (item) {\n          return item.id;\n        }),\n        desc: desc,\n        icon: icon\n      }\n    });\n  }, [dispatchEditTemp, templateInfo]);\n  var handleTemplateEditConfirm = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(templateConfig) {\n      var id, param, res, message;\n      return _regenerator.default.wrap(function _callee2$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            id = editTemp.id;\n            param = _objectSpread({\n              id: id,\n              type: '0'\n            }, templateConfig);\n            _context3.prev = 2;\n            _context3.next = 5;\n            return (0, _apps.modifyTemp)(param);\n          case 5:\n            res = _context3.sent;\n            if (res) {\n              (0, _utils.showNotice)('success', '修改成功');\n              dispatchEditTemp({\n                showModal: false\n              });\n              refreshTemplates(function (templates) {\n                var newTemplateInfo = (0, _find.default)(templates).call(templates, function (temp) {\n                  return temp.id === id;\n                });\n                dispatchTemplateInfo(newTemplateInfo || {});\n              });\n            }\n            _context3.next = 14;\n            break;\n          case 9:\n            _context3.prev = 9;\n            _context3.t0 = _context3[\"catch\"](2);\n            console.log(_context3.t0);\n            message = _context3.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 14:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee2, null, [[2, 9]]);\n    }));\n    return function (_x) {\n      return _ref4.apply(this, arguments);\n    };\n  }(), [editTemp, refreshTemplates, dispatchTemplateInfo]);\n  var debounceHandleEditTempConfirm = (0, _useDebounce.default)(handleTemplateEditConfirm, 300);\n  var debounceJumpTo = (0, _useDebounce.default)(jumpTo);\n\n  // 查询模板评分、表单、查看数量等信息\n  var fetchTemplateScore = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {\n    var params,\n      _yield$getTemplateSco,\n      _yield$getTemplateSco2,\n      _data,\n      message,\n      _args3 = arguments;\n    return _regenerator.default.wrap(function _callee3$(_context4) {\n      while (1) switch (_context4.prev = _context4.next) {\n        case 0:\n          params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};\n          _context4.prev = 1;\n          _context4.next = 4;\n          return (0, _template.getTemplateScore)(id, params);\n        case 4:\n          _yield$getTemplateSco = _context4.sent;\n          _yield$getTemplateSco2 = _yield$getTemplateSco.row;\n          _data = _yield$getTemplateSco2 === void 0 ? {} : _yield$getTemplateSco2;\n          console.log('data----', _data);\n          setTempOtherInfo(_data);\n          _context4.next = 16;\n          break;\n        case 11:\n          _context4.prev = 11;\n          _context4.t0 = _context4[\"catch\"](1);\n          console.log(_context4.t0);\n          message = _context4.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 16:\n        case \"end\":\n          return _context4.stop();\n      }\n    }, _callee3, null, [[1, 11]]);\n  })), [id, setTempOtherInfo]);\n  var fetchComments = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {\n    var loadMoreMode,\n      params,\n      res,\n      _context5,\n      rows,\n      lastPage,\n      totalCount,\n      _data2,\n      message,\n      _args4 = arguments;\n    return _regenerator.default.wrap(function _callee4$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          loadMoreMode = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : false;\n          params = _objectSpread({}, pageParamRef.current);\n          _context6.prev = 2;\n          _context6.next = 5;\n          return (0, _template.getTemplateComments)(id, params);\n        case 5:\n          res = _context6.sent;\n          if (res) {\n            rows = res.rows, lastPage = res.lastPage, totalCount = res.totalCount;\n            _data2 = loadMoreMode ? (0, _concat.default)(_context5 = commentsInfo.comments || []).call(_context5, rows) : rows;\n            dispatchCommentsInfo({\n              hasMore: !lastPage,\n              comments: _data2,\n              total: totalCount\n            });\n          }\n          _context6.next = 14;\n          break;\n        case 9:\n          _context6.prev = 9;\n          _context6.t0 = _context6[\"catch\"](2);\n          console.log(_context6.t0);\n          message = _context6.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 14:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee4, null, [[2, 9]]);\n  })), [id, commentsInfo, dispatchCommentsInfo]);\n  var handleAfterCommentSubmit = function handleAfterCommentSubmit() {\n    var _pageParamRef$current = pageParamRef.current,\n      page_no = _pageParamRef$current.page_no,\n      page_size = _pageParamRef$current.page_size;\n    pageParamRef.current.page_no = 1;\n    pageParamRef.current.page_size = page_no * page_size;\n    fetchTemplateScore({\n      view: false\n    });\n    fetchComments();\n  };\n  var loadMoreComments = function loadMoreComments() {\n    var _pageParamRef$current2 = pageParamRef.current,\n      page_no = _pageParamRef$current2.page_no,\n      page_size = _pageParamRef$current2.page_size;\n    if (page_no === 1 && page_size > 5) {\n      pageParamRef.current = {\n        page_no: page_size / 5 + 1,\n        page_size: 5\n      };\n    } else {\n      pageParamRef.current = {\n        page_no: page_no + 1,\n        page_size: page_size\n      };\n    }\n    fetchComments(true);\n  };\n  var handleClickUseTemplate = (0, _react.useCallback)(function () {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    if (onUseTemplate) {\n      // 外部调用（应用管理页-使用模板创建表单）\n      return onUseTemplate({\n        id: id,\n        icon: icon || _defaultIcon.DEFAULT_FORM_IMAGE\n      });\n    }\n    setSelectAppVisible(true);\n  }, [setSelectAppVisible, onUseTemplate, id, rootConfig]);\n  (0, _react.useEffect)(function () {\n    if (!(0, _lodash.isEqual)(value, templateInfo)) {\n      dispatchTemplateInfo(value);\n    }\n  }, [value]);\n  (0, _react.useEffect)(function () {\n    if (visible) {\n      fetchTemplateScore();\n      fetchComments();\n    }\n  }, [id]);\n  (0, _react.useEffect)(function () {\n    if (bosApi) {\n      bosApi === null || bosApi === void 0 || bosApi.cleanPage();\n      bosApi === null || bosApi === void 0 || bosApi.loadPage(bosConfig);\n    }\n  }, [bosConfig, bosApi]);\n\n  // 加载成功BOS，添加unload监听指令，释放表单\n  (0, _react.useEffect)(function () {\n    if (bosApi) (0, _utils.addUnloadListener)(bosApi);\n  }, [bosApi]);\n  var renderFormIcon = function renderFormIcon(url) {\n    var _svgData$colors, _svgData$svgs, _svgData$colors2, _svgData$svgs2;\n    if (!svgData) return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BillTemplateDetail.default['form-icon']\n    });\n    var color = (0, _utils.getQueryString)('color', url); // 图标背景颜色\n    var svg = (0, _utils.getQueryString)('svg', url); // 图标样式\n    var colorIndex = color && color !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$colors = svgData.colors) === null || _svgData$colors === void 0 ? void 0 : (0, _findIndex.default)(_svgData$colors).call(_svgData$colors, function (item) {\n      return item.value === color || item.key === color;\n    }) : 0;\n    var iconIndex = svg && svg !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$svgs = svgData.svgs) === null || _svgData$svgs === void 0 ? void 0 : (0, _findIndex.default)(_svgData$svgs).call(_svgData$svgs, function (item) {\n      return item.label === svg;\n    }) : 0;\n    var svgFill = svgData === null || svgData === void 0 || (_svgData$colors2 = svgData.colors) === null || _svgData$colors2 === void 0 || (_svgData$colors2 = _svgData$colors2[colorIndex]) === null || _svgData$colors2 === void 0 ? void 0 : _svgData$colors2.value;\n    var content = svgData === null || svgData === void 0 || (_svgData$svgs2 = svgData.svgs) === null || _svgData$svgs2 === void 0 || (_svgData$svgs2 = _svgData$svgs2[iconIndex]) === null || _svgData$svgs2 === void 0 ? void 0 : _svgData$svgs2.content;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      ref: function ref(r) {\n        var _r$getElementsByTagNa;\n        r === null || r === void 0 || (_r$getElementsByTagNa = r.getElementsByTagName('path')) === null || _r$getElementsByTagNa === void 0 || (_r$getElementsByTagNa = _r$getElementsByTagNa[0]) === null || _r$getElementsByTagNa === void 0 || _r$getElementsByTagNa.setAttribute('style', \"fill:\".concat(svgFill, \" \"));\n      },\n      className: (0, _classnames.default)(_BillTemplateDetail.default['form-icon']),\n      dangerouslySetInnerHTML: {\n        __html: (content === null || content === void 0 ? void 0 : (0, _replaceAll.default)(content).call(content, /<title>.*?<\\/title>/g, '')) || ''\n      }\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Drawer, {\n    className: _BillTemplateDetail.default['template-detail'],\n    height: \"100%\",\n    placement: \"bottom\",\n    keyboard: false,\n    visible: visible,\n    onClose: function onClose() {\n      return setVisible(false);\n    },\n    title: \"\\u6A21\\u677F\\u8BE6\\u60C5\",\n    destroyOnClose: true\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.wrapper\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['preview-area']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.bill\n  }, canJumpPrev && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['prev-btn'],\n    onClick: function onClick() {\n      return debounceJumpTo('prev');\n    }\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"fangxiangzuo\"\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['bill-main']\n  }, /*#__PURE__*/_react.default.createElement(_NocodeEntry.default, {\n    onRef: onRef,\n    config: null,\n    options: options\n  })), canJumpNext && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['next-btn'],\n    onClick: function onClick() {\n      return debounceJumpTo('next');\n    }\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"fangxiangyou\"\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['preview-footer']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.tips\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"tishi\"\n  }), \"\\u5F53\\u524D\\u4E3A\\u6A21\\u677F\\u9884\\u89C8\\u6A21\\u5F0F\\uFF0C\\u5B8C\\u6574\\u529F\\u80FD\\u8BF7\\u4F7F\\u7528\\u6A21\\u677F\\u521B\\u5EFA\\u8868\\u5355\\u3002\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.btns\n  }, canEdit && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"text\",\n    size: \"small\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"shanchu2\"\n    }),\n    onClick: handleDelete\n  }, \"\\u5220\\u9664\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"text\",\n    size: \"small\",\n    icon: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"bianji\"\n    }),\n    onClick: handleEdit\n  }, \"\\u7F16\\u8F91\")), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"primary\",\n    onClick: handleClickUseTemplate,\n    \"data-nc-action\": \"root-template||ts_ft_use\"\n  }, \"\\u4F7F\\u7528\")))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _BillTemplateDetail.default['template-info']\n  }, renderFormIcon(icon || _defaultIcon.DEFAULT_FORM_IMAGE), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['info-right']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.name,\n    title: name || '-'\n  }, name || '-'), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['use-info']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.count\n  }, \"\\u5DF2\\u4F7F\\u7528\\xA0\", frequency), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.count\n  }, \"\\u5DF2\\u67E5\\u770B\\xA0\", (tempOtherInfo === null || tempOtherInfo === void 0 ? void 0 : tempOtherInfo.view) || 0)), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['tag-wrapper']\n  }, (0, _map.default)(tags).call(tags, function (tagName, index) {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _BillTemplateDetail.default.tag,\n      key: index\n    }, tagName);\n  })))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.block\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.title\n  }, \"\\u8868\\u5355\\u8BF4\\u660E\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.desc,\n    title: desc || '暂无描述'\n  }, desc || '暂无描述')), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.block,\n    style: {\n      marginTop: '24px'\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default.title\n  }, \"\\u5F00\\u53D1\\u8005\\u4FE1\\u606F\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['create-info']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['info-item']\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _BillTemplateDetail.default['info-title']\n  }, \"\\u53D1\\u5E03\\u6765\\u6E90\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _BillTemplateDetail.default['info-content']\n  }, org || '-')), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _BillTemplateDetail.default['info-item']\n  }, /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _BillTemplateDetail.default['info-title']\n  }, \"\\u53D1\\u5E03\\u65F6\\u95F4\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n    className: _BillTemplateDetail.default['info-content']\n  }, createdate))))))), /*#__PURE__*/_react.default.createElement(_WebUI.ConfirmModal, {\n    type: \"delete\",\n    visible: confirmInfo.showConfirm,\n    title: \"\\u5220\\u9664\\u6A21\\u677F\",\n    content: \"\\u786E\\u8BA4\\u5220\\u9664\\u3010\".concat(getNameMaxDisplay(confirmInfo.name), \"\\u3011\\u6A21\\u677F\\u5417\\uFF1F\\u4E00\\u65E6\\u5220\\u9664\\uFF0C\\u4E0D\\u53EF\\u6062\\u590D\"),\n    onAction: handleConfirmAction\n  }), /*#__PURE__*/_react.default.createElement(_SaveTemplateModal.default, {\n    title: \"\\u4FDD\\u5B58\\u4E3A\\u8868\\u5355\\u6A21\\u677F\",\n    value: editTemp.info,\n    visible: editTemp.showModal,\n    setVisible: function setVisible() {\n      return dispatchEditTemp({\n        showModal: false\n      });\n    },\n    onConfirm: debounceHandleEditTempConfirm\n  }), /*#__PURE__*/_react.default.createElement(_SelectApp.default, {\n    visible: selectAppVisible,\n    setVisible: setSelectAppVisible,\n    templateId: id,\n    formIcon: icon || _defaultIcon.DEFAULT_FORM_IMAGE\n  }));\n};\nvar _default = exports[\"default\"] = BillTemplateDetail;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/BillTemplateDetail.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/BillTemplates.tsx":
/*!**************************************************************!*\
  !*** ./src/web/component/common/templates/BillTemplates.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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _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 _common = __webpack_require__(/*! @/actions/common */ \"./src/actions/common.js\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _NoData = _interopRequireDefault(__webpack_require__(/*! ./NoData */ \"./src/web/component/common/templates/NoData.tsx\"));\nvar _BillTemplateDetail = _interopRequireDefault(__webpack_require__(/*! ./BillTemplateDetail */ \"./src/web/component/common/templates/BillTemplateDetail.tsx\"));\nvar _TemplateCard = __webpack_require__(/*! ./TemplateCard */ \"./src/web/component/common/templates/TemplateCard.tsx\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _BillTemplates = _interopRequireDefault(__webpack_require__(/*! ./BillTemplates.less */ \"./src/web/component/common/templates/BillTemplates.less\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar INIT_TEMPLATE_DETAIL = {\n  visible: false,\n  templateInfo: {},\n  canEdit: false\n};\nvar BillTemplates = function BillTemplates(_ref) {\n  var filterConfig = _ref.filterConfig,\n    loaded = _ref.loaded,\n    handleLoaded = _ref.handleLoaded,\n    onUseTemplate = _ref.onUseTemplate;\n  var domain = filterConfig.domain,\n    trade = filterConfig.trade,\n    keyword = filterConfig.keyword,\n    templateFilter = filterConfig.templateFilter;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    templates = _useState2[0],\n    setTemplates = _useState2[1]; // 模板列表\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_TEMPLATE_DETAIL),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    detailInfo = _useReducer2[0],\n    dispatchDetailInfo = _useReducer2[1];\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state;\n  var _ref2 = state.userInfo || {},\n    _ref2$id = _ref2.id,\n    currentUserId = _ref2$id === void 0 ? '' : _ref2$id;\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    svgData = _useState4[0],\n    setSvgData = _useState4[1];\n\n  // 查询表单模板\n  var getTemplates = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(callback) {\n      var _context;\n      var filterStr, data, _yield$getFormTemplat, _yield$getFormTemplat2, _templates, message;\n      return _regenerator.default.wrap(function _callee$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            filterStr = (0, _filter.default)(_context = ['type EQ 0', domain ? \"domains.fbasedataid.id IN \".concat(domain) : '', trade ? \"trades.fbasedataid.id IN \".concat(trade) : '', keyword ? \"name CS '\".concat(keyword, \"'\") : '']).call(_context, Boolean).join(' and ');\n            data = filterStr ? {\n              filter: filterStr\n            } : {};\n            if (templateFilter !== '0') {\n              data.template_filter = templateFilter;\n            }\n            _context2.prev = 3;\n            _context2.next = 6;\n            return (0, _common.getFormTemplates)(data);\n          case 6:\n            _yield$getFormTemplat = _context2.sent;\n            _yield$getFormTemplat2 = _yield$getFormTemplat.rows;\n            _templates = _yield$getFormTemplat2 === void 0 ? [] : _yield$getFormTemplat2;\n            setTemplates(_templates);\n            callback === null || callback === void 0 || callback(_templates);\n            _context2.next = 19;\n            break;\n          case 13:\n            _context2.prev = 13;\n            _context2.t0 = _context2[\"catch\"](3);\n            console.log(_context2.t0);\n            setTemplates([]);\n            message = _context2.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 19:\n            handleLoaded(true);\n          case 20:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee, null, [[3, 13]]);\n    }));\n    return function (_x) {\n      return _ref3.apply(this, arguments);\n    };\n  }(), [domain, trade, keyword, templateFilter, setTemplates]);\n  var handleCheckTemplateDetail = (0, _react.useCallback)(function (data) {\n    var _data$creator;\n    var creatorId = ((_data$creator = data.creator) === null || _data$creator === void 0 ? void 0 : _data$creator.id) || '';\n    dispatchDetailInfo({\n      visible: true,\n      templateInfo: data,\n      canEdit: currentUserId === creatorId\n    });\n  }, [dispatchDetailInfo, currentUserId]);\n\n  // 当前模板索引\n  var curTemplateIndex = (0, _react.useMemo)(function () {\n    var templateInfo = detailInfo.templateInfo;\n    var id = templateInfo.id;\n    return (templates === null || templates === void 0 ? void 0 : (0, _findIndex.default)(templates).call(templates, function (temp) {\n      return temp.id === id;\n    })) || 0;\n  }, [detailInfo, templates]);\n\n  // 是否可切换【上一个】\n  var canJumpPrev = !!(templates !== null && templates !== void 0 && templates.length) && curTemplateIndex !== 0;\n\n  // 是否可切换【下一个】\n  var canJumpNext = !!(templates !== null && templates !== void 0 && templates.length) && curTemplateIndex !== (templates === null || templates === void 0 ? void 0 : templates.length) - 1;\n  var jumpTo = (0, _react.useCallback)(function (type) {\n    // 取出新索引\n    var targetIndex = type === 'prev' ? curTemplateIndex - 1 : curTemplateIndex + 1;\n    var targetTemplate = templates === null || templates === void 0 ? void 0 : (0, _find.default)(templates).call(templates, function (temp, idx) {\n      return idx === targetIndex;\n    });\n    if (targetTemplate) {\n      var _targetTemplate$creat;\n      var creatorId = (targetTemplate === null || targetTemplate === void 0 || (_targetTemplate$creat = targetTemplate.creator) === null || _targetTemplate$creat === void 0 ? void 0 : _targetTemplate$creat.id) || '';\n      // 更新模板信息\n      dispatchDetailInfo({\n        templateInfo: targetTemplate,\n        canEdit: currentUserId === creatorId\n      });\n    }\n  }, [curTemplateIndex, currentUserId]);\n  var debounceJumpTo = (0, _useDebounce.default)(jumpTo);\n  var getSvgData = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n      var _yield$getLineIconAnd, data, message;\n      return _regenerator.default.wrap(function _callee2$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.prev = 0;\n            _context3.next = 3;\n            return (0, _home.getLineIconAndColor)();\n          case 3:\n            _yield$getLineIconAnd = _context3.sent;\n            data = _yield$getLineIconAnd.row;\n            setSvgData(data);\n            _context3.next = 13;\n            break;\n          case 8:\n            _context3.prev = 8;\n            _context3.t0 = _context3[\"catch\"](0);\n            console.log(_context3.t0);\n            message = _context3.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 13:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee2, null, [[0, 8]]);\n    }));\n    return function getSvgData() {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  (0, _react.useEffect)(function () {\n    getTemplates();\n  }, [getTemplates]);\n  (0, _react.useEffect)(function () {\n    getSvgData();\n  }, []);\n  var templateNodes = (0, _react.useMemo)(function () {\n    if (!(templates !== null && templates !== void 0 && templates.length)) return null;\n    var hotNum = Math.max.apply(Math, (0, _toConsumableArray2.default)((0, _map.default)(templates).call(templates, function (item) {\n      return item.frequency || 0;\n    })));\n    return /*#__PURE__*/_react.default.createElement(\"ul\", {\n      className: _BillTemplates.default.bill_templates\n    }, (0, _map.default)(templates).call(templates, function (temp) {\n      var id = temp.id,\n        creator = temp.creator,\n        name = temp.name,\n        desc = temp.desc,\n        org = temp.org,\n        tag = temp.tag,\n        domains = temp.domains,\n        trades = temp.trades,\n        frequency = temp.frequency,\n        image = temp.image,\n        icon = temp.icon,\n        createdate = temp.createdate;\n      var domainNames = (0, _map.default)(domains).call(domains, function (item) {\n        return item.name;\n      });\n      var tradeNames = (0, _map.default)(trades).call(trades, function (item) {\n        return item.name;\n      });\n      var isNew = (Date.now() - new Date(createdate.replace(/-/g, '/')).getTime()) / 86400000 < 30;\n      return /*#__PURE__*/_react.default.createElement(_TemplateCard.BillTemplateCard, {\n        key: id,\n        className: _BillTemplates.default.card,\n        name: name,\n        desc: desc,\n        org: org,\n        tag: tag,\n        domains: domainNames,\n        trades: tradeNames,\n        frequency: frequency,\n        image: image,\n        icon: icon,\n        isHot: !!hotNum && frequency === hotNum,\n        isNew: isNew,\n        svgData: svgData,\n        onClick: function onClick() {\n          return handleCheckTemplateDetail(temp);\n        }\n      });\n    }));\n  }, [templates, currentUserId, handleCheckTemplateDetail, svgData]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, loaded && templates && (templates !== null && templates !== void 0 && templates.length ? templateNodes : /*#__PURE__*/_react.default.createElement(_NoData.default, {\n    text: \"\\u6682\\u65E0\\u8868\\u5355\\u6A21\\u677F\"\n  })), /*#__PURE__*/_react.default.createElement(_BillTemplateDetail.default, {\n    visible: detailInfo.visible,\n    value: detailInfo.templateInfo,\n    canEdit: detailInfo.canEdit,\n    svgData: svgData,\n    setVisible: function setVisible(vi) {\n      return dispatchDetailInfo({\n        visible: vi\n      });\n    },\n    refreshTemplates: getTemplates,\n    canJumpPrev: canJumpPrev,\n    canJumpNext: canJumpNext,\n    jumpTo: debounceJumpTo,\n    onUseTemplate: onUseTemplate\n  }));\n};\nvar _default = exports[\"default\"] = BillTemplates;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/BillTemplates.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/CreateAppModal.tsx":
/*!***************************************************************!*\
  !*** ./src/web/component/common/templates/CreateAppModal.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 _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.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 _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _IconSelect = _interopRequireDefault(__webpack_require__(/*! ../IconSelect */ \"./src/web/component/common/IconSelect.tsx\"));\nvar _CreateAppModal = _interopRequireDefault(__webpack_require__(/*! ./CreateAppModal.less */ \"./src/web/component/common/templates/CreateAppModal.less\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\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 PREFIX_CLS = 'create-app';\nvar ModalBody = (0, _react.forwardRef)(function (_ref, ref) {\n  var prefixCls = _ref.prefixCls,\n    value = _ref.value;\n  var _Form$useForm = _kdesign.Form.useForm(),\n    _Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, value || {}),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    formData = _useReducer2[0],\n    dispatchFormData = _useReducer2[1];\n  (0, _react.useImperativeHandle)(ref, function () {\n    return {\n      validateFields: validateFields\n    };\n  });\n  var validateFields = function validateFields() {\n    return new _promise.default(function (resolve, reject) {\n      form.validateFields().then(function (_ref2) {\n        var values = (0, _values.default)(_ref2);\n        resolve(values);\n      }).catch(function (e) {\n        return reject(e);\n      });\n    });\n  };\n  (0, _react.useEffect)(function () {\n    // 初始值回填\n    if (!(0, _lodash.isEqual)(value, formData)) {\n      var icon = value.icon,\n        name = value.name,\n        description = value.description;\n      form.setFieldsValue({\n        icon: icon,\n        name: name,\n        description: description\n      });\n      dispatchFormData(value);\n    }\n  }, [value]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _CreateAppModal.default[\"\".concat(prefixCls, \"-modal-body\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Form, {\n    layout: \"vertical\",\n    form: form,\n    labelWidth: \"100%\",\n    wrapperWidth: \"100%\"\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u540D\\u79F0\",\n    name: \"name\",\n    required: true,\n    validateTrigger: \"onBlur\",\n    rules: [{\n      required: true,\n      message: '请输入应用名称'\n    }, {\n      type: 'string',\n      validator: function validator(rule, value, callback, source, options) {\n        if (!(value !== null && value !== void 0 && (0, _trim.default)(value).call(value))) {\n          return [new Error('请输入应用名称')];\n        } else {\n          return [];\n        }\n      }\n    }]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    type: \"text\",\n    borderType: \"bordered\",\n    size: \"large\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u5E94\\u7528\\u540D\\u79F0\",\n    maxLength: 50,\n    value: formData.name,\n    onChange: function onChange(e) {\n      return dispatchFormData({\n        name: e.target.value\n      });\n    }\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u56FE\\u6807\",\n    name: \"icon\",\n    required: true,\n    validateTrigger: \"onBlur\"\n  }, /*#__PURE__*/_react.default.createElement(_IconSelect.default, {\n    value: formData.icon,\n    onChange: function onChange(url) {\n      return dispatchFormData({\n        icon: url\n      });\n    }\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u8BF4\\u660E\",\n    name: \"description\",\n    validateTrigger: \"onBlur\"\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Textarea, {\n    size: \"large\",\n    showCount: true,\n    autoSize: {\n      minRows: 3,\n      maxRows: 3\n    },\n    borderType: \"bordered\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u5E94\\u7528\\u8BF4\\u660E\",\n    maxLength: 255,\n    value: formData.description,\n    onChange: function onChange(v) {\n      return dispatchFormData({\n        description: v\n      });\n    }\n  }))));\n});\nvar ModalFooter = function ModalFooter(_ref3) {\n  var prefixCls = _ref3.prefixCls,\n    onCancel = _ref3.onCancel,\n    onConfirm = _ref3.onConfirm;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _CreateAppModal.default[\"\".concat(prefixCls, \"-modal-footer\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    onClick: onCancel,\n    type: \"second\",\n    size: \"small\",\n    className: _CreateAppModal.default[\"\".concat(prefixCls, \"-modal-cancel-btn\")]\n  }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"primary\",\n    size: \"small\",\n    style: {\n      marginLeft: '12px'\n    },\n    onClick: onConfirm,\n    className: _CreateAppModal.default[\"\".concat(prefixCls, \"-modal-ok-btn\")]\n  }, \"\\u786E\\u5B9A\"));\n};\nvar CreateAppModal = function CreateAppModal(_ref4) {\n  var _ref4$title = _ref4.title,\n    title = _ref4$title === void 0 ? '从模版创建应用' : _ref4$title,\n    _ref4$showFooterCheck = _ref4.showFooterCheckbox,\n    showFooterCheckbox = _ref4$showFooterCheck === void 0 ? true : _ref4$showFooterCheck,\n    _ref4$footerCheckBoxP = _ref4.footerCheckBoxProps,\n    footerCheckBoxProps = _ref4$footerCheckBoxP === void 0 ? {\n      dataKey: 'copyData',\n      text: '保留示例数据'\n    } : _ref4$footerCheckBoxP,\n    value = _ref4.value,\n    visible = _ref4.visible,\n    setVisible = _ref4.setVisible,\n    onConfirm = _ref4.onConfirm;\n  var _ref5 = footerCheckBoxProps || {},\n    dataKey = _ref5.dataKey,\n    text = _ref5.text;\n  var modalBodyRef = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(true),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    checkboxValue = _useState2[0],\n    setCheckboxValue = _useState2[1];\n\n  // 点击确定\n  var handleConfirm = function handleConfirm() {\n    var validateFields = modalBodyRef.current.validateFields;\n    validateFields().then(function (formData) {\n      var _formData = formData,\n        name = _formData.name;\n      formData = _objectSpread(_objectSpread({}, formData), {}, (0, _defineProperty2.default)({\n        name: (0, _trim.default)(name).call(name)\n      }, dataKey, checkboxValue));\n      setVisible(false);\n      // 外部需要传回调，则以外部回调为准\n      onConfirm === null || onConfirm === void 0 || onConfirm(formData);\n    }).catch(function (e) {\n      console.warn(e);\n    });\n  };\n  var handleCheckboxChange = function handleCheckboxChange(e) {\n    setCheckboxValue(e.target.checked);\n  };\n\n  // 点击取消\n  var handleCancel = function handleCancel() {\n    setVisible(false);\n  };\n  (0, _react.useEffect)(function () {\n    if (!visible && !checkboxValue) {\n      setCheckboxValue(true);\n    }\n  }, [visible]);\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    mask: true,\n    visible: visible,\n    body: /*#__PURE__*/_react.default.createElement(ModalBody, {\n      prefixCls: PREFIX_CLS,\n      ref: modalBodyRef,\n      value: value\n    }),\n    titleIcon: null,\n    className: _CreateAppModal.default[\"\".concat(PREFIX_CLS, \"-modal\")],\n    footer: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _CreateAppModal.default['footer-checkbox']\n    }, showFooterCheckbox && /*#__PURE__*/_react.default.createElement(_kdesign.Checkbox, {\n      checked: checkboxValue,\n      onChange: handleCheckboxChange\n    }, text)), /*#__PURE__*/_react.default.createElement(ModalFooter, {\n      prefixCls: PREFIX_CLS,\n      onConfirm: handleConfirm,\n      onCancel: handleCancel\n    })),\n    maskClosable: false,\n    width: 480,\n    height: 436,\n    title: title,\n    closable: true,\n    draggable: false,\n    destroyOnClose: true,\n    keyboard: false,\n    onCancel: handleCancel,\n    onOk: handleConfirm\n  });\n};\nvar _default = exports[\"default\"] = CreateAppModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/CreateAppModal.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/Header.jsx":
/*!*******************************************************!*\
  !*** ./src/web/component/common/templates/Header.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 _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _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 _common = __webpack_require__(/*! @/actions/common */ \"./src/actions/common.js\");\nvar _TabFilter = _interopRequireDefault(__webpack_require__(/*! ./TabFilter */ \"./src/web/component/common/templates/TabFilter.tsx\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _Header = _interopRequireDefault(__webpack_require__(/*! ./Header.less */ \"./src/web/component/common/templates/Header.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 * 模板中心头部（包含页换类型、筛选等功能）\n */\n\nvar TEMP_TYPE_OPIONS = [{\n  value: '0',\n  label: '应用模板'\n}, {\n  value: '1',\n  label: '表单模板'\n}];\nvar APP_TEMPLATE_OPTIONS = [{\n  value: '0',\n  label: '全部应用'\n}, {\n  value: '1',\n  label: '我创建的'\n}];\nvar BILL_TEMPLATE_OPTIONS = [{\n  value: '0',\n  label: '全部表单'\n}, {\n  value: '1',\n  label: '我创建的'\n}];\nvar INIT_FILTER_OPTIONS = {\n  domains: [],\n  trades: []\n};\nvar TemplateHeader = function TemplateHeader(_ref) {\n  var value = _ref.value,\n    showTab = _ref.showTab,\n    handleChange = _ref.onChange,\n    children = _ref.children;\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_FILTER_OPTIONS),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    filterOptions = _useReducer2[0],\n    dispatchFilterOptions = _useReducer2[1];\n  var _useReducer3 = (0, _react.useReducer)(_reducer.assignDataReducer, value),\n    _useReducer4 = (0, _slicedToArray2.default)(_useReducer3, 2),\n    config = _useReducer4[0],\n    dispatchConfig = _useReducer4[1];\n  var currentType = config.currentType,\n    keyword = config.keyword,\n    domain = config.domain,\n    trade = config.trade,\n    templateFilter = config.templateFilter;\n  var debounceHandleChange = (0, _useDebounce.default)(handleChange, 500);\n\n  // 获取行业和领域列表\n  var initTradeAndDomainOptions = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var _yield$getTradesAndDo, _yield$getTradesAndDo2, rows, _ref3, _ref3$domains, domains, _ref4, _ref4$trades, trades, message;\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, _common.getTradesAndDomains)();\n        case 3:\n          _yield$getTradesAndDo = _context.sent;\n          _yield$getTradesAndDo2 = _yield$getTradesAndDo.rows;\n          rows = _yield$getTradesAndDo2 === void 0 ? [] : _yield$getTradesAndDo2;\n          _ref3 = rows[0] || {}, _ref3$domains = _ref3.domains, domains = _ref3$domains === void 0 ? [] : _ref3$domains;\n          _ref4 = rows[1] || {}, _ref4$trades = _ref4.trades, trades = _ref4$trades === void 0 ? [] : _ref4$trades;\n          domains.unshift({\n            name: '全部领域',\n            id: ''\n          });\n          trades.unshift({\n            name: '全部行业',\n            id: ''\n          });\n          dispatchFilterOptions({\n            domains: domains,\n            trades: trades\n          });\n          _context.next = 18;\n          break;\n        case 13:\n          _context.prev = 13;\n          _context.t0 = _context[\"catch\"](0);\n          console.log(_context.t0);\n          message = _context.t0.message;\n          (0, _utils.showNotice)('error', message);\n        case 18:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee, null, [[0, 13]]);\n  })), [dispatchFilterOptions]);\n  var onDomainChange = (0, _react.useCallback)(function (val) {\n    dispatchConfig({\n      domain: val\n    });\n    handleChange({\n      domain: val\n    });\n  }, [dispatchConfig, handleChange]);\n  var onTradeChange = (0, _react.useCallback)(function (val) {\n    dispatchConfig({\n      trade: val\n    });\n    handleChange({\n      trade: val\n    });\n  }, [dispatchConfig, handleChange]);\n  var pubUIAction = (0, _react.useCallback)(function () {\n    var action = {\n      appId: 'root-template',\n      formId: '',\n      eventName: 'search',\n      event: \"\".concat(currentType === '0' ? 'ts_at_srh' : 'ts_ft_srh')\n    };\n    (0, _PageEventService.publishUserEvent)(action);\n  }, [currentType]);\n  var debouncePubUIAction = (0, _useDebounce.default)(pubUIAction);\n  var onInputChange = (0, _react.useCallback)(function (e) {\n    var val = e.target.value;\n    dispatchConfig({\n      keyword: val\n    });\n    debounceHandleChange({\n      keyword: val\n    });\n    debouncePubUIAction();\n  }, [dispatchConfig, debounceHandleChange, debouncePubUIAction]);\n  var handleTabChange = (0, _react.useCallback)(function (newVal) {\n    if (newVal !== currentType) {\n      dispatchConfig({\n        currentType: newVal,\n        domain: '',\n        trade: '',\n        keyword: ''\n      });\n      handleChange({\n        currentType: newVal,\n        domain: '',\n        trade: '',\n        keyword: ''\n      });\n    }\n  }, [currentType, dispatchConfig, handleChange]);\n  var handleTemplateFilterChange = (0, _react.useCallback)(function (newVal) {\n    (0, _PageEventService.publishUserEvent)({\n      appId: 'root-template',\n      formId: '',\n      action: newVal === '0' ? \"\".concat(currentType === '0' ? 'ts_at_as' : 'ts_ft_as') : \"\".concat(currentType === '0' ? 'ts_at_mc' : 'ts_ft_mc')\n    });\n    if (newVal !== templateFilter) {\n      dispatchConfig({\n        templateFilter: newVal\n      });\n      handleChange({\n        templateFilter: newVal\n      });\n    }\n  }, [templateFilter, dispatchConfig, handleChange]);\n  (0, _react.useEffect)(function () {\n    initTradeAndDomainOptions();\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (!(0, _lodash.isEqual)(value, config)) {\n      dispatchConfig(value);\n    }\n  }, [value]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Header.default.template_filter\n  }, /*#__PURE__*/_react.default.createElement(\"header\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Header.default.tab\n  }, showTab && (0, _map.default)(TEMP_TYPE_OPIONS).call(TEMP_TYPE_OPIONS, function (_ref5) {\n    var tabKey = _ref5.value,\n      label = _ref5.label;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: (0, _classnames.default)([_Header.default.tab_item, (0, _defineProperty2.default)({}, _Header.default['is-active'], currentType === tabKey)]),\n      key: tabKey,\n      onClick: function onClick() {\n        return handleTabChange(tabKey);\n      },\n      \"data-nc-action\": \"root-template||\".concat(currentType === '0' ? 'ts_at_tab' : 'ts_ft_tab')\n    }, label);\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Header.default.searcher\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    className: _Header.default.search_box,\n    value: keyword,\n    prefix: /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"sousuo\"\n    }),\n    onChange: onInputChange,\n    placeholder: \"\\u5173\\u952E\\u8BCD\\u641C\\u7D22\".concat(currentType === '0' ? '应用' : '表单', \"\\u6A21\\u677F\"),\n    borderType: \"bordered\"\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Select, {\n    placeholder: \"\\u8BF7\\u9009\\u62E9\",\n    className: _Header.default.search_select,\n    borderType: \"bordered\",\n    value: templateFilter,\n    options: currentType === '0' ? APP_TEMPLATE_OPTIONS : BILL_TEMPLATE_OPTIONS,\n    onChange: handleTemplateFilterChange,\n    popperClassName: _Header.default['select-app-popper']\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Header.default.main\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Header.default.content\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Header.default.filter_wrapper\n  }, /*#__PURE__*/_react.default.createElement(_TabFilter.default, {\n    title: \"\\u9886\\xA0\\u57DF\\uFF1A\",\n    value: domain,\n    options: filterOptions.domains,\n    onChange: onDomainChange,\n    itemProps: {\n      'data-nc-action': \"root-template||\".concat(currentType === '0' ? 'ts_at_dom' : 'ts_ft_dom')\n    }\n  }), /*#__PURE__*/_react.default.createElement(_TabFilter.default, {\n    title: \"\\u884C\\xA0\\u4E1A\\uFF1A\",\n    value: trade,\n    options: filterOptions.trades,\n    onChange: onTradeChange,\n    itemProps: {\n      'data-nc-action': \"root-template||\".concat(currentType === '0' ? 'ts_at_dom' : 'ts_ft_dom')\n    }\n  })), children)));\n};\nvar _default = exports[\"default\"] = TemplateHeader;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/Header.jsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/NoData.tsx":
/*!*******************************************************!*\
  !*** ./src/web/component/common/templates/NoData.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 _empty = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/empty.png */ \"./assets/img/empty.png\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _NoData = _interopRequireDefault(__webpack_require__(/*! ./NoData.less */ \"./src/web/component/common/templates/NoData.less\"));\nvar NoData = function NoData(_ref) {\n  var className = _ref.className,\n    _ref$text = _ref.text,\n    text = _ref$text === void 0 ? '暂无数据' : _ref$text;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_NoData.default.template_empty, className)\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: _empty.default,\n    alt: text,\n    width: 224,\n    height: 128\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _NoData.default.template_empty_text\n  }, text));\n};\nvar _default = exports[\"default\"] = NoData;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL05vRGF0YS50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQU9BO0FBR0E7QUFGQTtBQUNBO0FBRUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFHQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9Ob0RhdGEudHN4PzlkNzUiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IE5vRGF0YUltZyBmcm9tICdAQC9hc3NldHMvaW1nL2VtcHR5LnBuZydcbmltcG9ydCBjbGFzc05hbWVzIGZyb20gJ2NsYXNzbmFtZXMnXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vTm9EYXRhLmxlc3MnXG5cbmludGVyZmFjZSBOb0RhdGFQcm9wcyB7XG4gIGNsYXNzTmFtZT86IHN0cmluZztcbiAgdGV4dD86IHN0cmluZztcbn1cblxuY29uc3QgTm9EYXRhOiBSZWFjdC5GQzxOb0RhdGFQcm9wcz4gPSAoe1xuICBjbGFzc05hbWUsXG4gIHRleHQgPSAn5pqC5peg5pWw5o2uJ1xufSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtjbGFzc05hbWVzKHN0eWxlcy50ZW1wbGF0ZV9lbXB0eSwgY2xhc3NOYW1lKX0+XG4gICAgICA8aW1nIHNyYz17Tm9EYXRhSW1nfSBhbHQ9e3RleHR9IHdpZHRoPXsyMjR9IGhlaWdodD17MTI4fSAvPlxuICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlcy50ZW1wbGF0ZV9lbXB0eV90ZXh0fT57dGV4dH08L2Rpdj5cbiAgICA8L2Rpdj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBOb0RhdGFcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/NoData.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty2 = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = exports.INIT_TEMPLATE_VALUE = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.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 _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _set = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\"));\nvar _values = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/values */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js\"));\nvar _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\"));\nvar _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 _common = __webpack_require__(/*! @/actions/common */ \"./src/actions/common.js\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _SaveAppTemplate = _interopRequireDefault(__webpack_require__(/*! ./SaveAppTemplate.less */ \"./src/web/component/common/templates/SaveAppTemplate.less\"));\nvar _IconSelect = _interopRequireDefault(__webpack_require__(/*! ../IconSelect */ \"./src/web/component/common/IconSelect.tsx\"));\nvar _AppImageUpload = _interopRequireDefault(__webpack_require__(/*! ./AppImageUpload */ \"./src/web/component/common/templates/AppImageUpload.tsx\"));\nvar _TemplateCard = __webpack_require__(/*! ./TemplateCard */ \"./src/web/component/common/templates/TemplateCard.tsx\");\nvar _useWindowSize2 = __webpack_require__(/*! @/hooks/useWindowSize */ \"./src/hooks/useWindowSize.ts\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty2(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } // import PersonAuthorize from '@/web/component/permission/PersonAuthorize'\n// import OrgAuthorize from '@/web/component/permission/OrgAuthorize'\n// import { getFullUrl } from '@/utils'\n// const ACTION = getFullUrl('nocode/v2/nocode_sys/image')\nvar PREFIX_CLS = 'save-app-template';\nvar INIT_CHECKBOX_OPTIONS = {\n  domains: [],\n  trades: []\n};\n\n// const ANCHOR_IDS = ['app-template-form_basic', 'app-template-form_tags', 'app-template-form_permission']\n\nvar getNames = function getNames(list, ids) {\n  var _context;\n  return (0, _map.default)(_context = (0, _filter.default)(list).call(list, function (item) {\n    return (0, _includes.default)(ids).call(ids, item.id);\n  })).call(_context, function (item) {\n    return item.name;\n  });\n};\nvar generateRandomImageNo = function generateRandomImageNo() {\n  var num = Math.floor(20 * Math.random() + 1);\n  return num < 10 ? \"0\".concat(num) : \"\".concat(num);\n};\nvar CheckBoxGroupWithSelectAll = function CheckBoxGroupWithSelectAll(_ref) {\n  var value = _ref.value,\n    onChange = _ref.onChange,\n    options = _ref.options;\n  // const [checkAll, setCheckAll] = useState([])\n\n  var handleCheckAll = function handleCheckAll(e) {\n    console.log('onChangeAll checked', e.target.checked);\n    var newValue;\n    if (e.target.checked) {\n      newValue = (0, _map.default)(options).call(options, function (domain) {\n        return domain.id;\n      });\n    } else {\n      newValue = [];\n    }\n    onChange === null || onChange === void 0 || onChange(newValue);\n  };\n  var handleCheck = function handleCheck(e, id) {\n    var _context2;\n    var checked = e.target.checked;\n    var newValue = checked ? (0, _toConsumableArray2.default)(new _set.default((0, _concat.default)(_context2 = []).call(_context2, (0, _toConsumableArray2.default)(value), [id]))) : (0, _filter.default)(value).call(value, function (k) {\n      return k !== id;\n    });\n    onChange === null || onChange === void 0 || onChange(newValue);\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SaveAppTemplate.default['checkbox-group']\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Checkbox, {\n    className: _SaveAppTemplate.default.checkbox,\n    checked: value.length === options.length,\n    value: \"all\",\n    key: \"all\",\n    onChange: handleCheckAll\n  }, \"\\u5168\\u90E8\"), (0, _map.default)(options).call(options, function (op) {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Checkbox, {\n      className: _SaveAppTemplate.default.checkbox,\n      value: op.id,\n      key: op.id,\n      checked: (0, _includes.default)(value).call(value, op.id),\n      onChange: function onChange(e) {\n        return handleCheck(e, op.id);\n      }\n    }, op.name);\n  }));\n};\n\n// 锚点定位的dom\nvar AnchorLocator = function AnchorLocator(_ref2) {\n  var id = _ref2.id,\n    title = _ref2.title,\n    _ref2$showTitle = _ref2.showTitle,\n    showTitle = _ref2$showTitle === void 0 ? true : _ref2$showTitle;\n  if (!showTitle) {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      id: id\n    });\n  }\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SaveAppTemplate.default['anchor-locator'],\n    id: id\n  }, title);\n};\nvar INIT_TEMPLATE_VALUE = exports.INIT_TEMPLATE_VALUE = {\n  name: '',\n  desc: '',\n  icon: '',\n  image: '',\n  tag: '',\n  domains: [],\n  trades: []\n  // users: [],\n  // orgs: []\n};\nvar ModalBody = (0, _react.forwardRef)(function (_ref3, ref) {\n  var prefixCls = _ref3.prefixCls,\n    value = _ref3.value,\n    imageFileserver = _ref3.imageFileserver;\n  var _Form$useForm = _kdesign.Form.useForm(),\n    _Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),\n    form = _Form$useForm2[0];\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_CHECKBOX_OPTIONS),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    checkboxOptions = _useReducer2[0],\n    dispatchCheckboxOptions = _useReducer2[1];\n  var _useReducer3 = (0, _react.useReducer)(_reducer.assignDataReducer, value || INIT_TEMPLATE_VALUE),\n    _useReducer4 = (0, _slicedToArray2.default)(_useReducer3, 2),\n    formData = _useReducer4[0],\n    dispatchFormData = _useReducer4[1];\n  var wrapperRef = (0, _react.useRef)(null);\n  (0, _react.useEffect)(function () {\n    initTradeAndDomainOptions();\n  }, []);\n\n  // 获取行业和领域数据\n  var initTradeAndDomainOptions = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var _yield$getTradesAndDo, _yield$getTradesAndDo2, rows, _ref5, _ref5$domains, domains, _ref6, _ref6$trades, trades;\n    return _regenerator.default.wrap(function _callee$(_context3) {\n      while (1) switch (_context3.prev = _context3.next) {\n        case 0:\n          _context3.prev = 0;\n          _context3.next = 3;\n          return (0, _common.getTradesAndDomains)();\n        case 3:\n          _yield$getTradesAndDo = _context3.sent;\n          _yield$getTradesAndDo2 = _yield$getTradesAndDo.rows;\n          rows = _yield$getTradesAndDo2 === void 0 ? [] : _yield$getTradesAndDo2;\n          _ref5 = rows[0] || {}, _ref5$domains = _ref5.domains, domains = _ref5$domains === void 0 ? [] : _ref5$domains;\n          _ref6 = rows[1] || {}, _ref6$trades = _ref6.trades, trades = _ref6$trades === void 0 ? [] : _ref6$trades;\n          dispatchCheckboxOptions({\n            domains: domains,\n            trades: trades\n          });\n          _context3.next = 14;\n          break;\n        case 11:\n          _context3.prev = 11;\n          _context3.t0 = _context3[\"catch\"](0);\n          console.log(_context3.t0);\n        case 14:\n        case \"end\":\n          return _context3.stop();\n      }\n    }, _callee, null, [[0, 11]]);\n  })), [dispatchCheckboxOptions]);\n  (0, _react.useImperativeHandle)(ref, function () {\n    return {\n      validateFields: validateFields\n    };\n  });\n\n  // 重新随机生成一张图片\n  var reGenerateImage = function reGenerateImage() {\n    var image = formData.image;\n    var randomNo = generateRandomImageNo();\n    if (/\\/ncp\\/images\\/app_template_image_/g.test(image)) {\n      var oldNo = image.replace(/app_template_image_(\\S+)/g, '$1');\n      while (randomNo === oldNo) {\n        randomNo = generateRandomImageNo();\n      }\n    }\n    var newImage = \"/ncp/images/app_template_image_\".concat(randomNo, \".png\");\n    dispatchFormData({\n      image: newImage\n    });\n    form.setFieldValue('image', newImage);\n  };\n  var validateFields = function validateFields() {\n    return new _promise.default(function (resolve, reject) {\n      form.validateFields().then(function (_ref7) {\n        var values = (0, _values.default)(_ref7);\n        resolve(values);\n      }).catch(function (e) {\n        return reject(e);\n      });\n    });\n  };\n  (0, _react.useEffect)(function () {\n    // 初始值回填\n    if (value) {\n      var image = value.image,\n        name = value.name,\n        trades = value.trades,\n        domains = value.domains,\n        desc = value.desc,\n        icon = value.icon,\n        _value$tag = value.tag,\n        tag = _value$tag === void 0 ? '' : _value$tag;\n      form.setFieldsValue({\n        image: image,\n        name: name,\n        trades: trades,\n        domains: domains,\n        desc: desc,\n        icon: icon,\n        tag: tag\n      });\n    }\n  }, []);\n  var cardPreviewParam = (0, _react.useMemo)(function () {\n    var name = formData.name,\n      desc = formData.desc,\n      icon = formData.icon,\n      image = formData.image,\n      tag = formData.tag,\n      domains = formData.domains,\n      trades = formData.trades,\n      _formData$org = formData.org,\n      org = _formData$org === void 0 ? '金蝶官方' : _formData$org;\n    var domainNameList = checkboxOptions.domains,\n      tradeNameList = checkboxOptions.trades;\n    var domainNames = getNames(domainNameList, domains);\n    var tradeNames = getNames(tradeNameList, trades);\n    return {\n      name: name,\n      desc: desc,\n      icon: icon,\n      image: image,\n      tag: tag,\n      frequency: 0,\n      org: org,\n      domains: domainNames,\n      trades: tradeNames\n    };\n  }, [formData, checkboxOptions, imageFileserver]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-modal-body\")]\n  }, /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-navigate\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Anchor, {\n    affix: false,\n    getContainer: function getContainer() {\n      return wrapperRef.current;\n    },\n    offsetTop: 350\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Anchor.Link, {\n    href: \"#app-template-form_basic\",\n    title: /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SaveAppTemplate.default['nav-item']\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"jichushezhi\"\n    }), \"\\u57FA\\u7840\")\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Anchor.Link, {\n    href: \"#app-template-form_tags\",\n    title: /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SaveAppTemplate.default['nav-item']\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      type: \"biaoqian\"\n    }), \"\\u6807\\u7B7E\")\n  }))), /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-form\")],\n    ref: wrapperRef\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Form, {\n    layout: \"vertical\",\n    form: form,\n    labelWidth: \"100%\",\n    wrapperWidth: \"100%\"\n  }, /*#__PURE__*/_react.default.createElement(AnchorLocator, {\n    showTitle: false,\n    id: \"app-template-form_basic\"\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u540D\\u79F0\",\n    name: \"name\",\n    required: true,\n    validateTrigger: \"onBlur\",\n    rules: [{\n      required: true,\n      message: '请输入模板名称'\n    }, {\n      type: 'string',\n      validator: function validator(rule, value, callback, source, options) {\n        if (!(value !== null && value !== void 0 && (0, _trim.default)(value).call(value))) {\n          return [new Error('请输入模板名称')];\n        } else {\n          return [];\n        }\n      }\n    }]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    type: \"text\",\n    value: formData.name,\n    borderType: \"bordered\",\n    size: \"large\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u6A21\\u677F\\u540D\\u79F0\",\n    maxLength: 50,\n    onChange: function onChange(e) {\n      dispatchFormData({\n        name: e.target.value\n      });\n    }\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u56FE\\u6807\",\n    name: \"icon\",\n    required: true,\n    validateTrigger: \"onBlur\"\n  }, /*#__PURE__*/_react.default.createElement(_IconSelect.default, {\n    value: formData.icon,\n    onChange: function onChange(url) {\n      return dispatchFormData({\n        icon: url\n      });\n    }\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SaveAppTemplate.default['switch-image']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    onClick: reGenerateImage\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"qiehuan\"\n  }), \"\\u5207\\u6362\\u968F\\u673A\\u56FE\\u7247\")), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u573A\\u666F\\u56FE\\u7247\",\n    name: \"image\",\n    rules: [{\n      required: true,\n      message: '请上传图片'\n    }]\n  }, /*#__PURE__*/_react.default.createElement(_AppImageUpload.default, {\n    value: formData.image,\n    desc: \"\\u8BF7\\u4E0A\\u4F20\\u5C0F\\u4E8E20M\\u7684 jpg\\u3001jpeg\\u3001png\\u6587\\u4EF6\",\n    imageFileserver: imageFileserver,\n    onChange: function onChange(v) {\n      return dispatchFormData({\n        image: v\n      });\n    }\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    label: \"\\u8BF4\\u660E\",\n    name: \"desc\",\n    validateTrigger: \"onBlur\"\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Textarea, {\n    size: \"large\",\n    value: formData.desc,\n    autoSize: {\n      minRows: 3,\n      maxRows: 3\n    },\n    borderType: \"bordered\",\n    placeholder: \"\\u8BF7\\u8F93\\u5165\\u6A21\\u677F\\u63CF\\u8FF0\",\n    onChange: function onChange(v) {\n      return dispatchFormData({\n        desc: v\n      });\n    },\n    maxLength: 255,\n    showCount: true\n  })), /*#__PURE__*/_react.default.createElement(AnchorLocator, {\n    title: \"\\u6807\\u7B7E\",\n    id: \"app-template-form_tags\"\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-modal-form-item-checkbox\")],\n    label: \"\\u9886\\u57DF\",\n    name: \"domains\",\n    rules: [{\n      required: true,\n      message: '请选择领域'\n    }]\n  }, /*#__PURE__*/_react.default.createElement(CheckBoxGroupWithSelectAll, {\n    value: formData.domains,\n    options: checkboxOptions.domains,\n    onChange: function onChange(value) {\n      dispatchFormData({\n        domains: value\n      });\n      form.setFieldValue('domains', value);\n    }\n  })), /*#__PURE__*/_react.default.createElement(_kdesign.Form.Item, {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-modal-form-item-checkbox\")],\n    label: \"\\u884C\\u4E1A\",\n    name: \"trades\",\n    rules: [{\n      required: true,\n      message: '请选择行业'\n    }]\n  }, /*#__PURE__*/_react.default.createElement(CheckBoxGroupWithSelectAll, {\n    value: formData.trades,\n    options: checkboxOptions.trades,\n    onChange: function onChange(value) {\n      dispatchFormData({\n        trades: value\n      });\n      form.setFieldValue('trades', value);\n    }\n  })))), /*#__PURE__*/_react.default.createElement(\"section\", {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-preview\")]\n  }, /*#__PURE__*/_react.default.createElement(_TemplateCard.AppTemplateCard, (0, _extends2.default)({}, cardPreviewParam, {\n    imageFileserver: imageFileserver,\n    style: {\n      margin: 0\n    }\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SaveAppTemplate.default['preview-desc']\n  }, \"\\u6A21\\u7248\\u4E2D\\u5FC3\\u5361\\u7247\\u9884\\u89C8\")));\n});\nvar ModalFooter = function ModalFooter(_ref8) {\n  var prefixCls = _ref8.prefixCls,\n    onCancel = _ref8.onCancel,\n    onConfirm = _ref8.onConfirm,\n    _ref8$confirmBtnProps = _ref8.confirmBtnProps,\n    confirmBtnProps = _ref8$confirmBtnProps === void 0 ? {} : _ref8$confirmBtnProps;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-modal-footer\")]\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    onClick: onCancel,\n    type: \"second\",\n    size: \"small\",\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-modal-cancel-btn\")]\n  }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, (0, _extends2.default)({\n    type: \"primary\",\n    size: \"small\",\n    style: {\n      marginLeft: '12px'\n    },\n    onClick: onConfirm,\n    className: _SaveAppTemplate.default[\"\".concat(prefixCls, \"-modal-ok-btn\")]\n  }, confirmBtnProps), \"\\u786E\\u5B9A\"));\n};\nvar SaveTemplateModal = function SaveTemplateModal(_ref9) {\n  var title = _ref9.title,\n    value = _ref9.value,\n    _ref9$isEdit = _ref9.isEdit,\n    isEdit = _ref9$isEdit === void 0 ? false : _ref9$isEdit,\n    imageFileserver = _ref9.imageFileserver,\n    visible = _ref9.visible,\n    setVisible = _ref9.setVisible,\n    onConfirm = _ref9.onConfirm,\n    _ref9$confirmBtnProps = _ref9.confirmBtnProps,\n    confirmBtnProps = _ref9$confirmBtnProps === void 0 ? {} : _ref9$confirmBtnProps,\n    _ref9$copyDataProps = _ref9.copyDataProps,\n    copyDataProps = _ref9$copyDataProps === void 0 ? {} : _ref9$copyDataProps;\n  var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),\n    height = _useWindowSize.height;\n  var _useState = (0, _react.useState)(height - 64),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    modalHeight = _useState2[0],\n    setModalHeight = _useState2[1];\n  var modalBodyRef = (0, _react.useRef)(null);\n  var _useState3 = (0, _react.useState)(true),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    copyData = _useState4[0],\n    setCopyData = _useState4[1];\n  var debounceSetModalHeight = (0, _useDebounce.default)(setModalHeight);\n\n  // 点击确定\n  var handleConfirm = function handleConfirm() {\n    var validateFields = modalBodyRef.current.validateFields;\n    validateFields().then(function (formData) {\n      var _formData = formData,\n        name = _formData.name;\n      formData = _objectSpread(_objectSpread({}, formData), {}, {\n        name: (0, _trim.default)(name).call(name)\n      });\n      if (!isEdit) {\n        formData.copyData = copyData;\n      }\n      setVisible(false);\n      // 外部需要传回调，则以外部回调为准\n      onConfirm === null || onConfirm === void 0 || onConfirm(formData);\n    }).catch(function (e) {\n      console.warn(e);\n    });\n  };\n  var handleCopyDataChange = function handleCopyDataChange(e) {\n    (0, _PageEventService.publishClickUserEvent)(copyDataProps);\n    setCopyData(e.target.checked);\n  };\n\n  // 点击取消\n  var handleCancel = function handleCancel() {\n    setVisible(false);\n  };\n  (0, _react.useEffect)(function () {\n    var newModalHeight = height - 64;\n    // 这里主要确保弹窗的高度为偶数，为奇数的话transform(-50%, -50%)会导致里面的字体变糊\n    if (newModalHeight % 2 !== 0) {\n      debounceSetModalHeight(newModalHeight - 1);\n    }\n  }, [height]);\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    mask: true,\n    keyboard: false,\n    visible: visible,\n    body: /*#__PURE__*/_react.default.createElement(ModalBody, {\n      prefixCls: PREFIX_CLS,\n      ref: modalBodyRef,\n      value: value,\n      imageFileserver: imageFileserver\n    }),\n    titleIcon: null,\n    className: _SaveAppTemplate.default[\"\".concat(PREFIX_CLS, \"-modal\")],\n    footer: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isEdit && /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SaveAppTemplate.default['footer-checkbox']\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Checkbox, {\n      checked: copyData,\n      onChange: handleCopyDataChange\n    }, \"\\u4FDD\\u7559\\u793A\\u4F8B\\u6570\\u636E\")), /*#__PURE__*/_react.default.createElement(ModalFooter, {\n      prefixCls: PREFIX_CLS,\n      confirmBtnProps: confirmBtnProps,\n      onConfirm: handleConfirm,\n      onCancel: handleCancel\n    })),\n    maskClosable: false,\n    width: 960,\n    height: modalHeight,\n    title: title || '保存为模板',\n    closable: true,\n    draggable: false,\n    destroyOnClose: true,\n    onCancel: handleCancel,\n    onOk: handleConfirm\n  });\n};\nvar _default = exports[\"default\"] = SaveTemplateModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/SaveAppTemplate.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/SelectApp.tsx":
/*!**********************************************************!*\
  !*** ./src/web/component/common/templates/SelectApp.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 _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 _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\nvar _admin = __webpack_require__(/*! @/actions/admin */ \"./src/actions/admin.js\");\nvar _NoData = _interopRequireDefault(__webpack_require__(/*! ./NoData */ \"./src/web/component/common/templates/NoData.tsx\"));\nvar _Ellipsis = _interopRequireDefault(__webpack_require__(/*! ../Ellipsis */ \"./src/web/component/common/Ellipsis.tsx\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _SelectApp = _interopRequireDefault(__webpack_require__(/*! ./SelectApp.less */ \"./src/web/component/common/templates/SelectApp.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 * 选择表单所在应用\n */\nvar ModalBody = function ModalBody(_ref) {\n  var templateId = _ref.templateId,\n    formIcon = _ref.formIcon,\n    onClose = _ref.onClose;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    apps = _useState2[0],\n    setApps = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    loading = _useState4[0],\n    setLoading = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    noMore = _useState6[0],\n    setNoMore = _useState6[1];\n  var loadMoreRef = (0, _react.useRef)(null);\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    createFormDisabled = _useState8[0],\n    setCreateFormDisabled = _useState8[1];\n  var pageParam = (0, _react.useRef)({\n    page_size: 40,\n    page_no: 1\n  }); // 页码\n\n  var fetchAppsData = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var loadMore,\n      param,\n      _args = arguments;\n    return _regenerator.default.wrap(function _callee$(_context) {\n      while (1) switch (_context.prev = _context.next) {\n        case 0:\n          loadMore = _args.length > 0 && _args[0] !== undefined ? _args[0] : false;\n          if (!(loadMore && noMore)) {\n            _context.next = 3;\n            break;\n          }\n          return _context.abrupt(\"return\");\n        case 3:\n          param = _objectSpread({\n            app_filter: '0'\n          }, pageParam.current);\n          (0, _home.getAppList)(param, function () {}).then(function (res) {\n            if (res) {\n              if (loading) {\n                setLoading(false);\n              }\n              var rows = res.rows,\n                lastPage = res.lastPage;\n              var data = loadMore ? (0, _concat.default)(apps).call(apps, rows) : rows;\n              setNoMore(lastPage);\n              setApps(data);\n            } else {\n              setNoMore(true);\n              setApps([]);\n            }\n          });\n        case 5:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee);\n  })), [noMore, setNoMore, setApps, loading, apps]);\n  var loadMoreApps = (0, _react.useCallback)(function () {\n    pageParam.current.page_no += 1;\n    fetchAppsData(true);\n  }, [fetchAppsData]);\n  var onCreateFormByTemplate = (0, _react.useCallback)( /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(appId) {\n      var closeMessage, _context2, menuInfo, res, number, message;\n      return _regenerator.default.wrap(function _callee2$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            if (!createFormDisabled) {\n              _context3.next = 2;\n              break;\n            }\n            return _context3.abrupt(\"return\");\n          case 2:\n            setCreateFormDisabled(true);\n            closeMessage = (0, _utils.showLoadingMessage)('正在创建表单，请稍候...');\n            _context3.prev = 4;\n            menuInfo = {\n              image: formIcon\n            };\n            _context3.next = 8;\n            return (0, _admin.createForm)(appId, [{\n              name: '',\n              templateId: templateId,\n              menuInfo: menuInfo\n            }]);\n          case 8:\n            res = _context3.sent;\n            number = res.result[0].number;\n            closeMessage({\n              type: 'success',\n              content: '创建表单成功'\n            });\n            onClose();\n            (0, _utils.openner)((0, _concat.default)(_context2 = \"/\".concat(appId, \"/designer/\")).call(_context2, number));\n            _context3.next = 21;\n            break;\n          case 15:\n            _context3.prev = 15;\n            _context3.t0 = _context3[\"catch\"](4);\n            console.log(_context3.t0);\n            message = _context3.t0.message;\n            closeMessage({\n              type: 'error',\n              content: message\n            });\n            (0, _utils.showNotice)('error', message);\n          case 21:\n            setCreateFormDisabled(false);\n          case 22:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee2, null, [[4, 15]]);\n    }));\n    return function (_x) {\n      return _ref3.apply(this, arguments);\n    };\n  }(), [templateId, onClose, formIcon, createFormDisabled, setCreateFormDisabled]);\n  var debounceCreateForm = (0, _useDebounce.default)(onCreateFormByTemplate, 500);\n\n  // 检测是否需要loadMore\n  var observeLoadMore = (0, _react.useCallback)(function () {\n    if (!loadMoreRef.current) return;\n    var callback = function callback(entries) {\n      if (entries[0].intersectionRatio <= 0) return;\n      loadMoreApps();\n    };\n    var observer = new window.IntersectionObserver(callback);\n    observer.observe(loadMoreRef.current);\n    return observer;\n  }, [loadMoreApps, loadMoreRef.current]);\n  (0, _react.useEffect)(function () {\n    if (loading) {\n      fetchAppsData();\n    }\n  }, [loading]);\n  (0, _react.useEffect)(function () {\n    var observer = observeLoadMore();\n    return function () {\n      observer && observer.disconnect();\n    };\n  }, [observeLoadMore]);\n  (0, _react.useEffect)(function () {\n    setLoading(true);\n  }, []);\n  if (loading) {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SelectApp.default['loading-wrapper']\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Spin, {\n      name: \"Spin\"\n    }));\n  }\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _SelectApp.default.main\n  }, apps && apps.length ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"ul\", {\n    className: _SelectApp.default.apps\n  }, (0, _map.default)(apps).call(apps, function (temp) {\n    var name = temp.name,\n      id = temp.id,\n      src = temp.image,\n      description = temp.description;\n    // 兼容IE\n    var backgroundColor = (0, _utils.getQueryString)('color', src) || '';\n    return /*#__PURE__*/_react.default.createElement(\"li\", {\n      className: _SelectApp.default.app_item,\n      key: id,\n      onClick: function onClick() {\n        return debounceCreateForm(id);\n      }\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SelectApp.default.app_item_detail\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SelectApp.default.app_item_icon\n    }, /*#__PURE__*/_react.default.createElement(\"img\", {\n      src: (0, _utils.getUrlWithDataCenter)((0, _utils.getFullUrl)(src)),\n      alt: name,\n      style: {\n        backgroundColor: backgroundColor\n      }\n    })), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SelectApp.default.app_item_info\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SelectApp.default.app_item_name\n    }, name), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _SelectApp.default.app_item_desc,\n      title: description\n    }, /*#__PURE__*/_react.default.createElement(_Ellipsis.default, {\n      rows: 3,\n      content: description || '暂无描述'\n    })))));\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    ref: loadMoreRef,\n    className: _SelectApp.default.loadMore,\n    style: {\n      display: noMore ? 'none' : 'block'\n    }\n  }, \"\\u52A0\\u8F7D\\u4E2D...\")) : /*#__PURE__*/_react.default.createElement(_NoData.default, {\n    text: \"\\u6682\\u65E0\\u5E94\\u7528\\uFF0C\\u8BF7\\u5148\\u521B\\u5EFA\\u5E94\\u7528\",\n    className: _SelectApp.default.empty\n  }));\n};\nvar SelectApp = (0, _react.memo)(function (_ref4) {\n  var templateId = _ref4.templateId,\n    formIcon = _ref4.formIcon,\n    visible = _ref4.visible,\n    setVisible = _ref4.setVisible;\n  // 点击取消\n  var onClose = (0, _react.useCallback)(function () {\n    setVisible(false);\n  }, [setVisible]);\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    mask: true,\n    visible: visible,\n    keyboard: false,\n    body: /*#__PURE__*/_react.default.createElement(ModalBody, {\n      templateId: templateId,\n      formIcon: formIcon,\n      onClose: onClose\n    }),\n    titleIcon: null,\n    className: _SelectApp.default['select-app-modal'],\n    footer: null,\n    maskClosable: false,\n    width: 1220,\n    height: \"calc(100% - 64px)\",\n    title: \"\\u8BF7\\u9009\\u62E9\\u8868\\u5355\\u6240\\u5C5E\\u7684\\u5E94\\u7528\",\n    closable: true,\n    destroyOnClose: true,\n    onCancel: onClose\n  });\n});\nSelectApp.displayName = 'SelectApp';\nvar _default = exports[\"default\"] = SelectApp;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/SelectApp.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/TabFilter.tsx":
/*!**********************************************************!*\
  !*** ./src/web/component/common/templates/TabFilter.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 _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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _react = _interopRequireDefault(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _TabFilter = _interopRequireDefault(__webpack_require__(/*! ./TabFilter.less */ \"./src/web/component/common/templates/TabFilter.less\"));\n/**\r\n * 页签切换筛选（用于领域、行业）\r\n */\n\nvar TabFilter = function TabFilter(_ref) {\n  var className = _ref.className,\n    style = _ref.style,\n    title = _ref.title,\n    _ref$options = _ref.options,\n    options = _ref$options === void 0 ? [] : _ref$options,\n    value = _ref.value,\n    onChange = _ref.onChange,\n    _ref$itemProps = _ref.itemProps,\n    itemProps = _ref$itemProps === void 0 ? {} : _ref$itemProps;\n  var wrapperClassName = (0, _classnames.default)([(0, _filter.default)(_TabFilter.default), className]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: wrapperClassName,\n    style: style\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TabFilter.default.filter_title\n  }, title), /*#__PURE__*/_react.default.createElement(\"ul\", {\n    className: _TabFilter.default.filter_options\n  }, (0, _map.default)(options).call(options, function (_ref2) {\n    var name = _ref2.name,\n      id = _ref2.id;\n    return /*#__PURE__*/_react.default.createElement(\"li\", (0, _extends2.default)({\n      key: id,\n      className: (0, _classnames.default)([_TabFilter.default.filter_options_item, (0, _defineProperty2.default)({}, _TabFilter.default['is-active'], value === id)]),\n      onClick: function onClick() {\n        return onChange === null || onChange === void 0 ? void 0 : onChange(id);\n      }\n    }, itemProps), name);\n  })));\n};\nvar _default = exports[\"default\"] = TabFilter;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vdGVtcGxhdGVzL1RhYkZpbHRlci50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBR0E7QUFDQTtBQUNBO0FBTEE7QUFDQTtBQUNBOztBQWVBO0FBUUE7QUFOQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBTUE7QUFJQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL3RlbXBsYXRlcy9UYWJGaWx0ZXIudHN4PzkyOTAiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXHJcbiAqIOmhteetvuWIh+aNouetm+mAie+8iOeUqOS6jumihuWfn+OAgeihjOS4mu+8iVxyXG4gKi9cclxuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xyXG5pbXBvcnQgY2xhc3NOYW1lcyBmcm9tICdjbGFzc25hbWVzJ1xyXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vVGFiRmlsdGVyLmxlc3MnXHJcblxyXG5pbnRlcmZhY2UgVGFiRmlsdGVyUHJvcHMge1xyXG4gIGNsYXNzTmFtZT86IHN0cmluZztcclxuICBzdHlsZT86IFJlYWN0LkNTU1Byb3BlcnRpZXM7XHJcbiAgdGl0bGU/OiBzdHJpbmc7XHJcbiAgb3B0aW9uczogYW55W107XHJcbiAgdmFsdWU6IHN0cmluZztcclxuICBvbkNoYW5nZTogKGlkOiBzdHJpbmcpID0+IHZvaWQ7XHJcbiAgaXRlbVByb3BzOiBhbnk7XHJcbn1cclxuXHJcbmNvbnN0IFRhYkZpbHRlcjogUmVhY3QuRkM8VGFiRmlsdGVyUHJvcHM+ID0gKHtcclxuICBjbGFzc05hbWUsXHJcbiAgc3R5bGUsXHJcbiAgdGl0bGUsXHJcbiAgb3B0aW9ucyA9IFtdLFxyXG4gIHZhbHVlLFxyXG4gIG9uQ2hhbmdlLFxyXG4gIGl0ZW1Qcm9wcyA9IHt9XHJcbn0pID0+IHtcclxuICBjb25zdCB3cmFwcGVyQ2xhc3NOYW1lID0gY2xhc3NOYW1lcyhbc3R5bGVzLmZpbHRlciwgY2xhc3NOYW1lXSlcclxuICByZXR1cm4gKFxyXG4gICAgPGRpdiBjbGFzc05hbWU9e3dyYXBwZXJDbGFzc05hbWV9IHN0eWxlPXtzdHlsZX0+XHJcbiAgICAgIDxkaXYgY2xhc3NOYW1lPXtzdHlsZXMuZmlsdGVyX3RpdGxlfT57dGl0bGV9PC9kaXY+XHJcbiAgICAgIDx1bCBjbGFzc05hbWU9e3N0eWxlcy5maWx0ZXJfb3B0aW9uc30+XHJcbiAgICAgICAge29wdGlvbnMubWFwKCh7IG5hbWUsIGlkIH0pID0+IHtcclxuICAgICAgICAgIHJldHVybiAoXHJcbiAgICAgICAgICAgIDxsaVxyXG4gICAgICAgICAgICAgIGtleT17aWR9XHJcbiAgICAgICAgICAgICAgY2xhc3NOYW1lPXtjbGFzc05hbWVzKFtzdHlsZXMuZmlsdGVyX29wdGlvbnNfaXRlbSwgeyBbc3R5bGVzWydpcy1hY3RpdmUnXV06IHZhbHVlID09PSBpZCB9XSl9XHJcbiAgICAgICAgICAgICAgb25DbGljaz17KCkgPT4gb25DaGFuZ2U/LihpZCl9XHJcbiAgICAgICAgICAgICAgey4uLml0ZW1Qcm9wc31cclxuICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgIHtuYW1lfVxyXG4gICAgICAgICAgICA8L2xpPlxyXG4gICAgICAgICAgKVxyXG4gICAgICAgIH0pfVxyXG4gICAgICA8L3VsPlxyXG4gICAgPC9kaXY+XHJcbiAgKVxyXG59XHJcblxyXG5leHBvcnQgZGVmYXVsdCBUYWJGaWx0ZXJcclxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/templates/TabFilter.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/TemplateCard.tsx":
/*!*************************************************************!*\
  !*** ./src/web/component/common/templates/TemplateCard.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.getDescFormat = exports.BillTemplateCard = exports.AppTemplateCard = void 0;\nvar _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _trim = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/trim */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js\"));\nvar _from = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/array/from */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/array/from.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 _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _replaceAll = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.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 _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 _Ellipsis = _interopRequireDefault(__webpack_require__(/*! ../Ellipsis */ \"./src/web/component/common/Ellipsis.tsx\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _NEW = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/NEW.png */ \"./assets/img/NEW.png\"));\nvar _HOT = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/HOT.png */ \"./assets/img/HOT.png\"));\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nvar _TemplateCard = _interopRequireDefault(__webpack_require__(/*! ./TemplateCard.less */ \"./src/web/component/common/templates/TemplateCard.less\"));\nvar _excluded = [\"name\", \"className\", \"desc\", \"image\", \"icon\", \"domains\", \"trades\", \"tag\", \"imageFileserver\", \"isHot\", \"isNew\", \"onClick\", \"org\", \"frequency\", \"style\"],\n  _excluded2 = [\"name\", \"className\", \"desc\", \"icon\", \"domains\", \"trades\", \"isHot\", \"isNew\", \"onClick\", \"org\", \"frequency\", \"svgData\"];\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 getDescFormat = exports.getDescFormat = function getDescFormat(text) {\n  if (!text) return '暂无描述';\n  return text.replace(/(\\n)+/g, ' ');\n};\nvar Tag = function Tag(_ref) {\n  var name = _ref.name,\n    list = _ref.list,\n    _ref$containerWidth = _ref.containerWidth,\n    containerWidth = _ref$containerWidth === void 0 ? 248 : _ref$containerWidth;\n  var ref = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    hidden = _useState2[0],\n    setHidden = _useState2[1];\n  (0, _react.useLayoutEffect)(function () {\n    var _ref$current = ref.current,\n      offsetLeft = _ref$current.offsetLeft,\n      clientWidth = _ref$current.clientWidth;\n    // 248为父容器的宽度，固定\n    if (offsetLeft + clientWidth > containerWidth) {\n      setHidden(true);\n    } else {\n      setHidden(false);\n    }\n  }, [list, name, containerWidth]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_TemplateCard.default.tag, (0, _defineProperty2.default)({}, _TemplateCard.default.hidden, hidden)),\n    ref: ref\n  }, name);\n};\nvar AppTemplateCard = exports.AppTemplateCard = function AppTemplateCard(_ref2) {\n  var _ref2$name = _ref2.name,\n    name = _ref2$name === void 0 ? '标题' : _ref2$name,\n    className = _ref2.className,\n    desc = _ref2.desc,\n    image = _ref2.image,\n    icon = _ref2.icon,\n    domains = _ref2.domains,\n    trades = _ref2.trades,\n    customTag = _ref2.tag,\n    imageFileserver = _ref2.imageFileserver,\n    _ref2$isHot = _ref2.isHot,\n    isHot = _ref2$isHot === void 0 ? false : _ref2$isHot,\n    _ref2$isNew = _ref2.isNew,\n    isNew = _ref2$isNew === void 0 ? false : _ref2$isNew,\n    onClick = _ref2.onClick,\n    org = _ref2.org,\n    frequency = _ref2.frequency,\n    style = _ref2.style,\n    others = (0, _objectWithoutProperties2.default)(_ref2, _excluded);\n  var color = (0, _utils.getQueryString)('color', icon);\n  var fullImageUrl = (0, _utils.getTemplateImageUrl)(imageFileserver, image);\n  var bgStyle = (0, _react.useMemo)(function () {\n    if (!color) return {};\n    return {\n      backgroundImage: \"linear-gradient(270deg, transparent 0%, \".concat(color, \" 100%)\")\n    };\n  }, [color]);\n  var tags = (0, _react.useMemo)(function () {\n    var _context, _context2;\n    var tag = (customTag === null || customTag === void 0 ? void 0 : customTag.split(' ')) || [];\n    tag = (0, _filter.default)(_context = (0, _map.default)(tag).call(tag, function (text) {\n      var newStr = (text === null || text === void 0 ? void 0 : (0, _trim.default)(text).call(text)) || '';\n      return (0, _from.default)(newStr).length > 8 ? (0, _slice.default)(newStr).call(newStr, 0, 8) : newStr;\n    })).call(_context, Boolean);\n    var tagList = (0, _concat.default)(_context2 = []).call(_context2, (0, _toConsumableArray2.default)(tag), (0, _toConsumableArray2.default)(domains), (0, _toConsumableArray2.default)(trades));\n    if (!(tagList !== null && tagList !== void 0 && tagList.length)) return ['暂无标签'];\n    return tagList;\n  }, [customTag, domains, trades]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", (0, _extends2.default)({\n    className: (0, _classnames.default)(className, _TemplateCard.default['app-template-card']),\n    style: style,\n    onClick: onClick\n  }, others), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.banner\n  }, image && /*#__PURE__*/_react.default.createElement(\"img\", {\n    className: _TemplateCard.default['banner-image'],\n    src: (0, _utils.getUrlWithDataCenter)(fullImageUrl),\n    alt: \" \"\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['banner-bg'],\n    style: bgStyle\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.title\n  }, name || '名称'), isNew && /*#__PURE__*/_react.default.createElement(\"img\", {\n    className: _TemplateCard.default.new,\n    src: _NEW.default,\n    alt: \"new\",\n    width: 48,\n    height: 48\n  }), isHot && /*#__PURE__*/_react.default.createElement(\"img\", {\n    className: _TemplateCard.default.hot,\n    src: _HOT.default,\n    alt: \"hot\",\n    width: 48,\n    height: 48\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.desc,\n    title: desc || '暂无描述'\n  }, /*#__PURE__*/_react.default.createElement(_Ellipsis.default, {\n    rows: 2,\n    content: getDescFormat(desc)\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['tag-wrapper']\n  }, (0, _map.default)(tags).call(tags, function (tagName, index) {\n    return /*#__PURE__*/_react.default.createElement(Tag, {\n      key: index,\n      name: tagName,\n      list: tags\n    });\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['footer-left']\n  }, \"\\u6765\\u81EA\", org || '金蝶官方'), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['footer-right']\n  }, \"\\u5DF2\\u4F7F\\u7528\\xA0\", frequency || 0)));\n};\nvar BillTemplateCard = exports.BillTemplateCard = function BillTemplateCard(_ref3) {\n  var _ref3$name = _ref3.name,\n    name = _ref3$name === void 0 ? '标题' : _ref3$name,\n    className = _ref3.className,\n    desc = _ref3.desc,\n    icon = _ref3.icon,\n    domains = _ref3.domains,\n    trades = _ref3.trades,\n    _ref3$isHot = _ref3.isHot,\n    isHot = _ref3$isHot === void 0 ? false : _ref3$isHot,\n    _ref3$isNew = _ref3.isNew,\n    isNew = _ref3$isNew === void 0 ? false : _ref3$isNew,\n    onClick = _ref3.onClick,\n    org = _ref3.org,\n    frequency = _ref3.frequency,\n    svgData = _ref3.svgData,\n    others = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);\n  var tags = (0, _react.useMemo)(function () {\n    var _context3;\n    var tagList = (0, _concat.default)(_context3 = []).call(_context3, (0, _toConsumableArray2.default)(domains), (0, _toConsumableArray2.default)(trades));\n    if (!(tagList !== null && tagList !== void 0 && tagList.length)) return ['暂无标签'];\n    return tagList;\n  }, [domains, trades]);\n  var renderFormIcon = function renderFormIcon(image) {\n    var _svgData$colors, _svgData$svgs, _svgData$colors2, _svgData$svgs2;\n    if (!svgData) return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _TemplateCard.default['form-icon']\n    });\n    var color = (0, _utils.getQueryString)('color', image); // 图标背景颜色\n    var svg = (0, _utils.getQueryString)('svg', image); // 图标样式\n    var colorIndex = color && color !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$colors = svgData.colors) === null || _svgData$colors === void 0 ? void 0 : (0, _findIndex.default)(_svgData$colors).call(_svgData$colors, function (item) {\n      return item.value === color || item.key === color;\n    }) : 0;\n    var iconIndex = svg && svg !== 'undefined' ? svgData === null || svgData === void 0 || (_svgData$svgs = svgData.svgs) === null || _svgData$svgs === void 0 ? void 0 : (0, _findIndex.default)(_svgData$svgs).call(_svgData$svgs, function (item) {\n      return item.label === svg;\n    }) : 0;\n    var svgFill = svgData === null || svgData === void 0 || (_svgData$colors2 = svgData.colors) === null || _svgData$colors2 === void 0 || (_svgData$colors2 = _svgData$colors2[colorIndex]) === null || _svgData$colors2 === void 0 ? void 0 : _svgData$colors2.value;\n    var content = svgData === null || svgData === void 0 || (_svgData$svgs2 = svgData.svgs) === null || _svgData$svgs2 === void 0 || (_svgData$svgs2 = _svgData$svgs2[iconIndex]) === null || _svgData$svgs2 === void 0 ? void 0 : _svgData$svgs2.content;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      ref: function ref(r) {\n        var _r$getElementsByTagNa;\n        r === null || r === void 0 || (_r$getElementsByTagNa = r.getElementsByTagName('path')) === null || _r$getElementsByTagNa === void 0 || (_r$getElementsByTagNa = _r$getElementsByTagNa[0]) === null || _r$getElementsByTagNa === void 0 || _r$getElementsByTagNa.setAttribute('style', \"fill:\".concat(svgFill, \" \"));\n      },\n      className: (0, _classnames.default)(_TemplateCard.default['form-icon']),\n      dangerouslySetInnerHTML: {\n        __html: (content === null || content === void 0 ? void 0 : (0, _replaceAll.default)(content).call(content, /<title>.*?<\\/title>/g, '')) || ''\n      }\n    });\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", (0, _extends2.default)({\n    className: (0, _classnames.default)(className, _TemplateCard.default['bill-template-card']),\n    onClick: onClick\n  }, others), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.main\n  }, renderFormIcon(icon || _defaultIcon.DEFAULT_FORM_IMAGE), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['main-right']\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.title,\n    title: name || '-'\n  }, name || '-'), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.desc,\n    title: desc || '暂无描述'\n  }, /*#__PURE__*/_react.default.createElement(_Ellipsis.default, {\n    rows: 2,\n    content: getDescFormat(desc)\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['tag-wrapper']\n  }, (0, _map.default)(tags).call(tags, function (tagName, index) {\n    return /*#__PURE__*/_react.default.createElement(Tag, {\n      key: index,\n      name: tagName,\n      list: tags,\n      containerWidth: 220\n    });\n  })), isNew && /*#__PURE__*/_react.default.createElement(\"img\", {\n    className: _TemplateCard.default.new,\n    src: _NEW.default,\n    alt: \"new\",\n    width: 48,\n    height: 48\n  }), isHot && /*#__PURE__*/_react.default.createElement(\"img\", {\n    className: _TemplateCard.default.hot,\n    src: _HOT.default,\n    alt: \"hot\",\n    width: 48,\n    height: 48\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default.footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['footer-left']\n  }, \"\\u6765\\u81EA\", org || '金蝶官方'), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _TemplateCard.default['footer-right']\n  }, \"\\u5DF2\\u4F7F\\u7528\\xA0\", frequency || 0)));\n};\nBillTemplateCard.displayName = 'BillTemplateCard';//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/TemplateCard.tsx\n");

/***/ }),

/***/ "./src/web/component/common/templates/index.tsx":
/*!******************************************************!*\
  !*** ./src/web/component/common/templates/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[\"default\"] = exports.TEMPLATE_TYPE_BILL = exports.TEMPLATE_TYPE_APP = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _index = _interopRequireDefault(__webpack_require__(/*! ./index.less */ \"./src/web/component/common/templates/index.less\"));\nvar _Header = _interopRequireDefault(__webpack_require__(/*! ./Header */ \"./src/web/component/common/templates/Header.jsx\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _BillTemplates = _interopRequireDefault(__webpack_require__(/*! ./BillTemplates */ \"./src/web/component/common/templates/BillTemplates.tsx\"));\nvar _AppTemplates = _interopRequireDefault(__webpack_require__(/*! ./AppTemplates */ \"./src/web/component/common/templates/AppTemplates.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _TemplateSkeleton = __webpack_require__(/*! @/web/component/skeleton/TemplateSkeleton */ \"./src/web/component/skeleton/TemplateSkeleton.ts\");\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; }\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 * 模板中心\n */\nvar TEMPLATE_TYPE_APP = exports.TEMPLATE_TYPE_APP = '0';\nvar TEMPLATE_TYPE_BILL = exports.TEMPLATE_TYPE_BILL = '1';\nvar TemplateTypes = /*#__PURE__*/function (TemplateTypes) {\n  TemplateTypes[\"TEMPLATE_TYPE_APP\"] = \"0\";\n  TemplateTypes[\"TEMPLATE_TYPE_BILL\"] = \"1\";\n  return TemplateTypes;\n}(TemplateTypes || {});\nvar INIT_FILTER_CONFIG = {\n  currentType: '0',\n  // 0：应用模板 1：表单模板\n  templateFilter: '0',\n  // 0：所有 1：我创建的\n  domain: '',\n  trade: '',\n  keyword: ''\n};\nvar Templates = (0, _react.memo)(function (_ref) {\n  var _ref$type = _ref.type,\n    type = _ref$type === void 0 ? '0' : _ref$type,\n    _ref$showTab = _ref.showTab,\n    showTab = _ref$showTab === void 0 ? true : _ref$showTab,\n    onUseBillTemplate = _ref.onUseBillTemplate;\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, _objectSpread(_objectSpread({}, INIT_FILTER_CONFIG), {}, {\n      currentType: type\n    })),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    filterConfig = _useReducer2[0],\n    dispatchFilterConfig = _useReducer2[1];\n  var currentType = filterConfig.currentType;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    loaded = _useState2[0],\n    setLoaded = _useState2[1];\n  var setLoad = function setLoad(bool) {\n    setLoaded(bool);\n  };\n\n  // 筛选条件变化时触发\n  var handleFilterConfigChange = (0, _react.useCallback)(function (newVal) {\n    dispatchFilterConfig(newVal);\n  }, [dispatchFilterConfig]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_index.default[loaded ? 'hidden' : 'skeleton'], _index.default.template)\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Skeleton, {\n    options: _TemplateSkeleton.TemplateSkeleton\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)((0, _defineProperty2.default)({}, _index.default.hidden, !loaded), _index.default.template)\n  }, /*#__PURE__*/_react.default.createElement(_Header.default, {\n    value: filterConfig,\n    showTab: showTab,\n    onChange: handleFilterConfigChange\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index.default.template_main\n  }, currentType === '0' && /*#__PURE__*/_react.default.createElement(_AppTemplates.default, {\n    filterConfig: filterConfig,\n    handleLoaded: setLoad,\n    loaded: loaded\n  }), currentType === '1' && /*#__PURE__*/_react.default.createElement(_BillTemplates.default, {\n    filterConfig: filterConfig,\n    onUseTemplate: onUseBillTemplate,\n    handleLoaded: setLoad,\n    loaded: loaded\n  })))));\n});\nTemplates.displayName = 'Templates';\nvar _default = exports[\"default\"] = Templates;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/templates/index.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _ImportExportModal = _interopRequireDefault(__webpack_require__(/*! ../apps/ImportExportModal */ \"./src/web/component/apps/ImportExportModal.jsx\"));\nvar _CircleProgress = _interopRequireDefault(__webpack_require__(/*! ../apps/CircleProgress */ \"./src/web/component/apps/CircleProgress.jsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _axios = __webpack_require__(/*! @/ajax/axios */ \"./src/ajax/axios.js\");\nvar _Import = __webpack_require__(/*! ../apps/Import/Import */ \"./src/web/component/apps/Import/Import.tsx\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _Ellipsis = _interopRequireDefault(__webpack_require__(/*! ../common/Ellipsis */ \"./src/web/component/common/Ellipsis.tsx\"));\nvar _useFakeLoading2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFakeLoading */ \"./src/hooks/useFakeLoading.ts\"));\nvar _axios2 = _interopRequireDefault(__webpack_require__(/*! kd_libs/axios */ \"webpack/container/remote/kd_libs/axios\"));\nvar _ExportApp = _interopRequireDefault(__webpack_require__(/*! ./ExportApp.less */ \"./src/web/component/home/ExportApp.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n// 导出设置（勾选“是否携带数据”）\nvar ExportSetting = function ExportSetting(_ref) {\n  var data = _ref.data,\n    visible = _ref.visible,\n    onClose = _ref.onClose,\n    onConfirm = _ref.onConfirm;\n  var name = data.name,\n    src = data.image,\n    description = data.description;\n  var _useState = (0, _react.useState)(true),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    withData = _useState2[0],\n    setWithData = _useState2[1];\n\n  // 点击确定\n  var handleConfirm = function handleConfirm() {\n    onClose();\n    // 外部需要传回调，则以外部回调为准\n    onConfirm === null || onConfirm === void 0 || onConfirm(withData);\n  };\n  var handleCheckboxChange = function handleCheckboxChange(e) {\n    setWithData(e.target.checked);\n  };\n\n  // 点击取消\n  var handleCancel = function handleCancel() {\n    onClose();\n  };\n  var bodyNode = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default.app_detail\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default.app_icon\n    }, /*#__PURE__*/_react.default.createElement(\"img\", {\n      src: (0, _utils.getUrlWithDataCenter)((0, _utils.getFullUrl)(src)),\n      alt: name\n    })), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default.app_info\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default.app_name\n    }, name), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default.app_desc,\n      title: description\n    }, /*#__PURE__*/_react.default.createElement(_Ellipsis.default, {\n      rows: 3,\n      content: description || '暂无描述'\n    }))));\n  }, [name, src, description]);\n  (0, _react.useEffect)(function () {\n    if (!visible && !withData) {\n      setWithData(true);\n    }\n  }, [visible]);\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    mask: true,\n    visible: visible,\n    body: bodyNode,\n    titleIcon: null,\n    className: _ExportApp.default['export-setting-modal'],\n    footer: /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default['export-setting-modal-footer']\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ExportApp.default['footer-checkbox']\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Checkbox, {\n      checked: withData,\n      onChange: handleCheckboxChange\n    }, \"\\u5BFC\\u51FA\\u8868\\u5355\\u8BB0\\u5F55\")), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n      type: \"primary\",\n      size: \"small\",\n      style: {\n        marginLeft: '12px'\n      },\n      onClick: handleConfirm,\n      className: _ExportApp.default['export-setting-modal-ok-btn']\n    }, \"\\u5BFC\\u51FA\")),\n    maskClosable: false,\n    width: 480,\n    height: 232,\n    title: \"\\u5BFC\\u51FA\\u5E94\\u7528\",\n    closable: true,\n    draggable: false,\n    destroyOnClose: true,\n    keyboard: false,\n    onCancel: handleCancel,\n    onOk: handleConfirm\n  });\n};\nvar CancelToken = _axios2.default.CancelToken;\n\n// 导出应用\nvar ExportApp = (0, _react.memo)(function (_ref2) {\n  var visible = _ref2.visible,\n    _ref2$appInfo = _ref2.appInfo,\n    appInfo = _ref2$appInfo === void 0 ? {} : _ref2$appInfo,\n    closeModal = _ref2.onClose;\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    exportPendingVisible = _useState4[0],\n    setExportPendingVisible = _useState4[1];\n  var cancelExportRef = (0, _react.useRef)(null); // 取消导出ajax请求\n\n  var fakeLoadingBegin = function fakeLoadingBegin() {\n    setExportPendingVisible(true);\n  };\n  var fakeLoadingOver = function fakeLoadingOver() {\n    setExportPendingVisible(false);\n  };\n  var _useFakeLoading = (0, _useFakeLoading2.default)({\n      timeOut: 10,\n      beginCallBack: fakeLoadingBegin,\n      overCallBack: fakeLoadingOver\n    }),\n    begin = _useFakeLoading.begin,\n    schedule = _useFakeLoading.schedule,\n    over = _useFakeLoading.over;\n\n  // 取消导出 & 关闭弹窗\n  var onCancel = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var _cancelExportRef$curr;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            (_cancelExportRef$curr = cancelExportRef.current) === null || _cancelExportRef$curr === void 0 || _cancelExportRef$curr.call(cancelExportRef);\n            over();\n          case 2:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee);\n    }));\n    return function onCancel() {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n  var bodyNode = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      style: {\n        paddingTop: 122\n      }\n    }, /*#__PURE__*/_react.default.createElement(_CircleProgress.default, {\n      percent: schedule,\n      textMap: ['应用导出中，请耐心等待']\n    }));\n  }, [schedule]);\n\n  // 点击【导出】\n  var handleExportApp = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(withData) {\n      var appId, message, code;\n      return _regenerator.default.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            appId = appInfo.id;\n            begin();\n            _context2.prev = 2;\n            _context2.next = 5;\n            return (0, _axios.downloadFile)((0, _utils.getUrlWithDataCenter)('/nocode/v2/nocode_sys/common/app_export'), {\n              params: {\n                appId: appId,\n                withData: withData\n              },\n              cancelToken: new CancelToken(function (fn) {\n                // 参数 fn是个函数\n                cancelExportRef.current = fn;\n              })\n            });\n          case 5:\n            over();\n            _WebUI.WebMsg.showConfirmModal({\n              type: 'success',\n              title: '导出成功',\n              actions: [{\n                text: '我知道了',\n                key: 'ok'\n              }]\n            });\n            _context2.next = 14;\n            break;\n          case 9:\n            _context2.prev = 9;\n            _context2.t0 = _context2[\"catch\"](2);\n            message = _context2.t0.message, code = _context2.t0.code;\n            over();\n            if (code === 'ERR_CANCELED') {\n              (0, _utils.showNotice)('warnning', '已取消导出');\n            } else {\n              (0, _utils.showNotice)('error', message);\n            }\n          case 14:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2, null, [[2, 9]]);\n    }));\n    return function handleExportApp(_x) {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(ExportSetting, {\n    data: appInfo,\n    visible: visible,\n    onClose: closeModal,\n    onConfirm: handleExportApp\n  }), /*#__PURE__*/_react.default.createElement(_ImportExportModal.default, {\n    visible: exportPendingVisible,\n    title: \"\\u5BFC\\u51FA\\u5E94\\u7528\",\n    titleTips: \"\",\n    body: bodyNode,\n    onCancel: onCancel,\n    onClose: function onClose() {\n      return setExportPendingVisible(false);\n    },\n    cancelText: \"\\u53D6\\u6D88\",\n    renderFooter: function renderFooter() {\n      return /*#__PURE__*/_react.default.createElement(_Import.ImportExportModalFooter, {\n        cancelText: \"\\u53D6\\u6D88\",\n        onCancel: onCancel\n      });\n    }\n  }));\n});\nExportApp.displayName = 'ExportApp';\nvar _default = exports[\"default\"] = ExportApp;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/home/ExportApp.tsx\n");

/***/ }),

/***/ "./src/web/component/home/SelectIconPop.tsx":
/*!**************************************************!*\
  !*** ./src/web/component/home/SelectIconPop.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 _findIndex = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find-index */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find-index.js\"));\nvar _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 _SelectIconPop = _interopRequireDefault(__webpack_require__(/*! ./SelectIconPop.less */ \"./src/web/component/home/SelectIconPop.less\"));\nvar _IconGenerator = _interopRequireDefault(__webpack_require__(/*! ../common/IconGenerator */ \"./src/web/component/common/IconGenerator.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _home = __webpack_require__(/*! @/actions/home */ \"./src/actions/home.js\");\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 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 * 选择图标弹窗\n * @param {*} props\n * @param data {Object} 图标数据{colors,svgs}\n * @param current {Object} 当前选中的是哪一个{iconIndex, colorIndex}\n * @param update {Function} 用户选择完后的回调函数\n * */\nvar SelectIconPop = function SelectIconPop(props) {\n  var onChange = props.onChange,\n    svgStr = props.svgStr,\n    placement = props.placement,\n    triggerClassName = props.triggerClassName,\n    popperClassName = props.popperClassName,\n    children = props.children;\n  var _useState = (0, _react.useState)(null),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    svgData = _useState2[0],\n    setSvgData = _useState2[1]; // svg图标数据\n  var _useState3 = (0, _react.useState)({\n      colorIndex: 0,\n      iconIndex: 0\n    }),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    currentIcon = _useState4[0],\n    setCurrentIcon = _useState4[1]; // 当前图标数据\n  var iconComponent = (0, _react.useRef)(null); // 图标\n\n  var backgroundColor = (0, _react.useMemo)(function () {\n    var _svgData$colors;\n    return (svgData === null || svgData === void 0 || (_svgData$colors = svgData.colors) === null || _svgData$colors === void 0 || (_svgData$colors = _svgData$colors[currentIcon.colorIndex]) === null || _svgData$colors === void 0 ? void 0 : _svgData$colors.value) || '';\n  }, [svgData, currentIcon.colorIndex]);\n  (0, _react.useEffect)(function () {\n    svgStr && svgData && setIndex(svgStr, svgData);\n  }, [svgStr, svgData]);\n\n  // 点击图标动作\n  (0, _react.useEffect)(function () {\n    // 请求图标及颜色列表\n    (0, _home.getIconAndColor)().then(function (res) {\n      var datas = res.row; // 背景颜色及SVG\n      setSvgData(datas);\n      if (svgStr) {\n        setIndex(svgStr, datas);\n      } else {\n        var _datas$colors, _context;\n        // 不存在svgStr，则随机创建一个\n        var colorIndex = generateRandomIndex(datas.colors);\n        var iconIndex = generateRandomIndex(datas.svgs);\n        setCurrentIcon({\n          colorIndex: colorIndex,\n          iconIndex: iconIndex\n        });\n        var color = encodeURIComponent(datas === null || datas === void 0 || (_datas$colors = datas.colors) === null || _datas$colors === void 0 || (_datas$colors = _datas$colors[colorIndex]) === null || _datas$colors === void 0 ? void 0 : _datas$colors.value);\n        var icon = datas === null || datas === void 0 ? void 0 : datas.svgs[iconIndex].label;\n        onChange === null || onChange === void 0 || onChange((0, _concat.default)(_context = \"nocode/v2/nocode_sys/common/svgs/create_svg?color=\".concat(color, \"&svg=\")).call(_context, icon));\n      }\n    });\n  }, []);\n\n  // 确定当前应用图标位置\n  var setIndex = (0, _react.useCallback)(function (svgStr, datas) {\n    var _context2, _context3;\n    var color = (0, _utils.getQueryString)('color', svgStr); // 图标背景颜色\n    var svg = (0, _utils.getQueryString)('svg', svgStr); // 图标样式\n    var colorIndex = color && color !== 'undefined' ? (0, _findIndex.default)(_context2 = datas.colors).call(_context2, function (item) {\n      return item.value === color || item.key === color;\n    }) : 0;\n    var iconIndex = svg && svg !== 'undefined' ? (0, _findIndex.default)(_context3 = datas.svgs).call(_context3, function (item) {\n      return item.label === svg;\n    }) : 0;\n    setCurrentIcon({\n      colorIndex: colorIndex,\n      iconIndex: iconIndex\n    });\n  }, []);\n  var handleSelect = (0, _react.useCallback)(function (colorIndex, iconIndex) {\n    setCurrentIcon({\n      colorIndex: colorIndex,\n      iconIndex: iconIndex\n    });\n  }, []);\n\n  // SVG图标改成白色，改为使用样式修改\n  // useLayoutEffect(() => {\n  //   if (svgData && iconComponent.current) {\n  //     iconComponent.current.getElementsByTagName('path')[0].setAttribute('style', 'fill:#fff')\n  //     // handleVisibleChange(false)\n  //   }\n  // }, [svgData, currentIcon, iconComponent.current])\n\n  var handleUpdateIcon = (0, _react.useCallback)(function () {\n    var _svgData$colors$curre, _svgData$svgs, _context4;\n    if (!svgData) return;\n    var color = encodeURIComponent(svgData === null || svgData === void 0 || (_svgData$colors$curre = svgData.colors[currentIcon.colorIndex]) === null || _svgData$colors$curre === void 0 ? void 0 : _svgData$colors$curre.value);\n    var icon = svgData === null || svgData === void 0 || (_svgData$svgs = svgData.svgs) === null || _svgData$svgs === void 0 ? void 0 : _svgData$svgs[currentIcon.iconIndex].label;\n    return (0, _concat.default)(_context4 = \"nocode/v2/nocode_sys/common/svgs/create_svg?color=\".concat(color, \"&svg=\")).call(_context4, icon);\n  }, [currentIcon, svgData]);\n\n  // 弹窗选择图标 ==> 更新到父节点\n  var handleVisibleChange = (0, _react.useCallback)(function (visible) {\n    if (visible) return;\n    var url = handleUpdateIcon();\n    if (url !== svgStr) onChange === null || onChange === void 0 || onChange(url);\n  }, [handleUpdateIcon, onChange, svgStr]);\n  var tip = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(_IconGenerator.default, {\n      data: svgData,\n      iconIndex: currentIcon.iconIndex,\n      colorIndex: currentIcon.colorIndex,\n      onSelect: handleSelect\n    });\n  }, [svgData, currentIcon]);\n\n  // 应用图标组件\n  var triggerElement = (0, _react.useMemo)(function () {\n    var _svgData$svgs2;\n    var icon = (svgData === null || svgData === void 0 || (_svgData$svgs2 = svgData.svgs) === null || _svgData$svgs2 === void 0 || (_svgData$svgs2 = _svgData$svgs2[currentIcon.iconIndex]) === null || _svgData$svgs2 === void 0 ? void 0 : _svgData$svgs2.content) || '';\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      ref: iconComponent,\n      className: (0, _classnames.default)(_SelectIconPop.default.avatar, triggerClassName),\n      style: {\n        backgroundColor: backgroundColor\n      },\n      dangerouslySetInnerHTML: {\n        __html: icon\n      }\n    });\n  }, [svgData, currentIcon]);\n  console.log('iconpop', currentIcon);\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Tooltip, {\n    placement: \"rightTop\",\n    arrow: false,\n    popperClassName: (0, _classnames.default)(_SelectIconPop.default.pop, popperClassName),\n    tip: tip,\n    trigger: \"click\",\n    onVisibleChange: handleVisibleChange\n  }, triggerElement, children);\n};\nvar _default = exports[\"default\"] = _react.default.memo(SelectIconPop);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/home/SelectIconPop.tsx\n");

/***/ }),

/***/ "./src/web/component/skeleton/TemplateSkeleton.ts":
/*!********************************************************!*\
  !*** ./src/web/component/skeleton/TemplateSkeleton.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.TemplateSkeleton = void 0;\n/*\n * @Description: 模板市场-骨架屏\n * @Author: john_xin_gu\n * @Date: 2023-07-26 19:12:56\n * @LastEditTime: 2023-09-22 14:31:35\n * @Last Modified by: john_xin_gu\n */\n\nvar TemplateSkeleton = exports.TemplateSkeleton = [{\n  width: '1180px',\n  height: '100%',\n  margin: '0 auto',\n  flexDirection: 'column',\n  child: [{\n    width: '100%',\n    height: '36px',\n    type: 'HEAD',\n    child: [{\n      width: 'auto',\n      height: '36px',\n      child: [{\n        width: '64px',\n        height: '36px',\n        repeat: 3,\n        type: 'INPUT',\n        margin: '0px 24px 0px 0px'\n      }]\n    }, {\n      width: 'auto',\n      height: '36px',\n      child: [{\n        width: '250px',\n        height: '36px',\n        type: 'INPUT'\n      }, {\n        width: '120px',\n        height: '36px',\n        type: 'INPUT'\n      }]\n    }]\n  }, {\n    width: '470px',\n    height: '35px',\n    type: 'INPUT',\n    margin: '16px 0px 3px 0px'\n  }, {\n    width: '100%',\n    height: '28px',\n    type: 'INPUT',\n    margin: '16px 0px 16px 0px'\n  }, {\n    width: '408px',\n    height: '16px',\n    type: 'INPUT',\n    margin: '0px 0px 26px 0px'\n  }, {\n    width: '100%',\n    height: '196px',\n    type: 'INPUT',\n    margin: '0px 0px 20px 0px'\n  }, {\n    width: '100%',\n    height: 'auto',\n    flexWrap: 'wrap',\n    child: [{\n      width: '280px',\n      height: '236px',\n      type: 'CARD',\n      repeat: 8,\n      child: [{\n        width: '100%',\n        height: '100%',\n        flexDirection: 'column',\n        child: [{\n          width: '280px',\n          height: '112px',\n          margin: '0px',\n          type: 'INPUT'\n        }, {\n          width: '248px',\n          height: '16px',\n          type: 'INPUT',\n          margin: '12px 0px 8px 16px'\n        }, {\n          width: '200px',\n          height: '16px',\n          margin: '0px 0px 12px 16px',\n          type: 'INPUT'\n        }, {\n          width: 'auto',\n          height: '20px',\n          flexDirection: 'row',\n          margin: '0px 0px 16px 4px',\n          child: [{\n            width: '52px',\n            height: '20px',\n            repeat: 2,\n            type: 'INPUT'\n          }]\n        }, {\n          width: '260px',\n          height: '12px',\n          type: 'HEAD',\n          margin: '0px 0px 0px 4px',\n          child: [{\n            width: '72px',\n            height: '12px',\n            type: 'INPUT'\n          }, {\n            width: '64px',\n            height: '12px',\n            type: 'INPUT',\n            margin: '0px'\n          }]\n        }]\n      }]\n    }]\n  }]\n}];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/skeleton/TemplateSkeleton.ts\n");

/***/ }),

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

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

/***/ }),

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

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

/***/ })

}]);