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

/***/ "./src/web/component/common/FormWrapper.less":
/*!***************************************************!*\
  !*** ./src/web/component/common/FormWrapper.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\"] = ({\"formheader\":\"N5mQvldk_formheader\",\"formheader_mb\":\"GmLA48Qs_formheader_mb\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vRm9ybVdyYXBwZXIubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2NvbW1vbi9Gb3JtV3JhcHBlci5sZXNzPzhmM2MiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJmb3JtaGVhZGVyXCI6XCJONW1Rdmxka19mb3JtaGVhZGVyXCIsXCJmb3JtaGVhZGVyX21iXCI6XCJHbUxBNDhRc19mb3JtaGVhZGVyX21iXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/FormWrapper.less\n");

/***/ }),

/***/ "./src/web/layout/designer/HeaderFormName.less":
/*!*****************************************************!*\
  !*** ./src/web/layout/designer/HeaderFormName.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\"] = ({\"header_formname\":\"-l8F5Byn_header_formname\",\"header_formname_input\":\"jZHRzDD-_header_formname_input\",\"header_formname_editicon\":\"oSIYjYRW_header_formname_editicon\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9IZWFkZXJGb3JtTmFtZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvZGVzaWduZXIvSGVhZGVyRm9ybU5hbWUubGVzcz9jMDk5Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiaGVhZGVyX2Zvcm1uYW1lXCI6XCItbDhGNUJ5bl9oZWFkZXJfZm9ybW5hbWVcIixcImhlYWRlcl9mb3JtbmFtZV9pbnB1dFwiOlwialpIUnpERC1faGVhZGVyX2Zvcm1uYW1lX2lucHV0XCIsXCJoZWFkZXJfZm9ybW5hbWVfZWRpdGljb25cIjpcIm9TSVlqWVJXX2hlYWRlcl9mb3JtbmFtZV9lZGl0aWNvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderFormName.less\n");

/***/ }),

/***/ "./src/web/layout/designer/HeaderIconMenu.less":
/*!*****************************************************!*\
  !*** ./src/web/layout/designer/HeaderIconMenu.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\"] = ({\"header_iconmenu\":\"V9HBm0UE_header_iconmenu\",\"header_iconmenu_item\":\"WO+6Ug6l_header_iconmenu_item\",\"txt\":\"nsfAJW4N_txt\",\"dropDownContent\":\"C5KkiAWE_dropDownContent\",\"dropDownContent_shortcut\":\"EpVGicOG_dropDownContent_shortcut\",\"dropDownContent_shortcut_name\":\"cmX7B94h_dropDownContent_shortcut_name\",\"dropDownContent_shortcut_key\":\"_0ksj9FgZ_dropDownContent_shortcut_key\",\"text_block\":\"k+rVwe4x_text_block\",\"dropDownContent_setting\":\"Hf5BtD3p_dropDownContent_setting\",\"dropDownContent_setting_header\":\"_7Xxo4SvG_dropDownContent_setting_header\",\"title\":\"vRsI11hv_title\",\"dropDownContent_setting_list\":\"l0PfQVKU_dropDownContent_setting_list\",\"pd16\":\"G74MOBrN_pd16\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9IZWFkZXJJY29uTWVudS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9sYXlvdXQvZGVzaWduZXIvSGVhZGVySWNvbk1lbnUubGVzcz81N2JkIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiaGVhZGVyX2ljb25tZW51XCI6XCJWOUhCbTBVRV9oZWFkZXJfaWNvbm1lbnVcIixcImhlYWRlcl9pY29ubWVudV9pdGVtXCI6XCJXTys2VWc2bF9oZWFkZXJfaWNvbm1lbnVfaXRlbVwiLFwidHh0XCI6XCJuc2ZBSlc0Tl90eHRcIixcImRyb3BEb3duQ29udGVudFwiOlwiQzVLa2lBV0VfZHJvcERvd25Db250ZW50XCIsXCJkcm9wRG93bkNvbnRlbnRfc2hvcnRjdXRcIjpcIkVwVkdpY09HX2Ryb3BEb3duQ29udGVudF9zaG9ydGN1dFwiLFwiZHJvcERvd25Db250ZW50X3Nob3J0Y3V0X25hbWVcIjpcImNtWDdCOTRoX2Ryb3BEb3duQ29udGVudF9zaG9ydGN1dF9uYW1lXCIsXCJkcm9wRG93bkNvbnRlbnRfc2hvcnRjdXRfa2V5XCI6XCJfMGtzajlGZ1pfZHJvcERvd25Db250ZW50X3Nob3J0Y3V0X2tleVwiLFwidGV4dF9ibG9ja1wiOlwiaytyVndlNHhfdGV4dF9ibG9ja1wiLFwiZHJvcERvd25Db250ZW50X3NldHRpbmdcIjpcIkhmNUJ0RDNwX2Ryb3BEb3duQ29udGVudF9zZXR0aW5nXCIsXCJkcm9wRG93bkNvbnRlbnRfc2V0dGluZ19oZWFkZXJcIjpcIl83WHhvNFN2R19kcm9wRG93bkNvbnRlbnRfc2V0dGluZ19oZWFkZXJcIixcInRpdGxlXCI6XCJ2UnNJMTFodl90aXRsZVwiLFwiZHJvcERvd25Db250ZW50X3NldHRpbmdfbGlzdFwiOlwibDBQZlFWS1VfZHJvcERvd25Db250ZW50X3NldHRpbmdfbGlzdFwiLFwicGQxNlwiOlwiRzc0TU9Cck5fcGQxNlwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderIconMenu.less\n");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"wrapper\":\"na4XqVfP_wrapper\",\"designer_header\":\"q+luMOLg_designer_header\",\"ml-4\":\"xLOoFh52_ml-4\",\"leftnav\":\"tkM9+f8q_leftnav\",\"leftnav_container\":\"Yr1O64De_leftnav_container\",\"leftnav_container_appname\":\"-XxwKOZ3_leftnav_container_appname\",\"leftnav_container_input\":\"Oqryz4GH_leftnav_container_input\",\"leftnav_container_editicon\":\"+ngLHrAs_leftnav_container_editicon\",\"mainnav\":\"M-KJn5yB_mainnav\",\"selected\":\"dm+wQr7m_selected\",\"rightnav\":\"ScBmty+p_rightnav\",\"btn_group\":\"_1DtOJstv_btn_group\",\"save_btn\":\"E4afXEha_save_btn\",\"seperator\":\"_6re2UJq0_seperator\",\"btn_dropdown\":\"caHLk9ty_btn_dropdown\",\"isOpen\":\"nV9jktt2_isOpen\",\"rightnav-preview\":\"_9JpLHwHh_rightnav-preview\",\"rightnav-save\":\"kduHZi+K_rightnav-save\",\"designer_container\":\"_91NWTgXR_designer_container\",\"dropdown_panel\":\"+vamI9FO_dropdown_panel\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9IZWFkZXJMYXlvdXQubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvbGF5b3V0L2Rlc2lnbmVyL0hlYWRlckxheW91dC5sZXNzP2RhMGIiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJ3cmFwcGVyXCI6XCJuYTRYcVZmUF93cmFwcGVyXCIsXCJkZXNpZ25lcl9oZWFkZXJcIjpcInErbHVNT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1JOUZPX2Ryb3Bkb3duX3BhbmVsXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderLayout.less\n");

/***/ }),

/***/ "./src/web/layout/designer/PreviewDrawer.less":
/*!****************************************************!*\
  !*** ./src/web/layout/designer/PreviewDrawer.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\"] = ({\"previewDrawer\":\"xa+JxNkw_previewDrawer\",\"previewDrawer_header\":\"_0Y00Uccl_previewDrawer_header\",\"previewDrawer_header_left\":\"_94E5LyOR_previewDrawer_header_left\",\"previewDrawer_header_right\":\"iLn3TLma_previewDrawer_header_right\",\"previewDrawer_header_right_item\":\"f0MFwGxo_previewDrawer_header_right_item\",\"previewDrawer_body\":\"OwMLJETf_previewDrawer_body\",\"previewDrawer_body_main\":\"_7NfsrbFG_previewDrawer_body_main\",\"mobile\":\"_3tjLCE0q_mobile\",\"previewDrawer_body_main_header\":\"_9H-iaskn_previewDrawer_body_main_header\",\"previewDrawer_body_main_qrcode\":\"l5S1-9Q8_previewDrawer_body_main_qrcode\",\"mask\":\"_0InI0WoP_mask\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9QcmV2aWV3RHJhd2VyLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9QcmV2aWV3RHJhd2VyLmxlc3M/MWViMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInByZXZpZXdEcmF3ZXJcIjpcInhhK0p4Tmt3X3ByZXZpZXdEcmF3ZXJcIixcInByZXZpZXdEcmF3ZXJfaGVhZGVyXCI6XCJfMFkwMFVjY2xfcHJldmlld0RyYXdlcl9oZWFkZXJcIixcInByZXZpZXdEcmF3ZXJfaGVhZGVyX2xlZnRcIjpcIl85NEU1THlPUl9wcmV2aWV3RHJhd2VyX2hlYWRlcl9sZWZ0XCIsXCJwcmV2aWV3RHJhd2VyX2hlYWRlcl9yaWdodFwiOlwiaUxuM1RMbWFfcHJldmlld0RyYXdlcl9oZWFkZXJfcmlnaHRcIixcInByZXZpZXdEcmF3ZXJfaGVhZGVyX3JpZ2h0X2l0ZW1cIjpcImYwTUZ3R3hvX3ByZXZpZXdEcmF3ZXJfaGVhZGVyX3JpZ2h0X2l0ZW1cIixcInByZXZpZXdEcmF3ZXJfYm9keVwiOlwiT3dNTEpFVGZfcHJldmlld0RyYXdlcl9ib2R5XCIsXCJwcmV2aWV3RHJhd2VyX2JvZHlfbWFpblwiOlwiXzdOZnNyYkZHX3ByZXZpZXdEcmF3ZXJfYm9keV9tYWluXCIsXCJtb2JpbGVcIjpcIl8zdGpMQ0UwcV9tb2JpbGVcIixcInByZXZpZXdEcmF3ZXJfYm9keV9tYWluX2hlYWRlclwiOlwiXzlILWlhc2tuX3ByZXZpZXdEcmF3ZXJfYm9keV9tYWluX2hlYWRlclwiLFwicHJldmlld0RyYXdlcl9ib2R5X21haW5fcXJjb2RlXCI6XCJsNVMxLTlROF9wcmV2aWV3RHJhd2VyX2JvZHlfbWFpbl9xcmNvZGVcIixcIm1hc2tcIjpcIl8wSW5JMFdvUF9tYXNrXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/designer/PreviewDrawer.less\n");

/***/ }),

/***/ "./src/web/layout/designer/PreviewQRCode.less":
/*!****************************************************!*\
  !*** ./src/web/layout/designer/PreviewQRCode.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\"] = ({\"previewQRcode\":\"_1X2dT0lb_previewQRcode\",\"previewQRcode_title\":\"cvQ9OGf6_previewQRcode_title\",\"previewQRcode_main\":\"_0eShNd7R_previewQRcode_main\",\"previewQRcode_main_icon\":\"L9kGpJZb_previewQRcode_main_icon\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9QcmV2aWV3UVJDb2RlLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL2xheW91dC9kZXNpZ25lci9QcmV2aWV3UVJDb2RlLmxlc3M/YTBjMSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInByZXZpZXdRUmNvZGVcIjpcIl8xWDJkVDBsYl9wcmV2aWV3UVJjb2RlXCIsXCJwcmV2aWV3UVJjb2RlX3RpdGxlXCI6XCJjdlE5T0dmNl9wcmV2aWV3UVJjb2RlX3RpdGxlXCIsXCJwcmV2aWV3UVJjb2RlX21haW5cIjpcIl8wZVNoTmQ3Ul9wcmV2aWV3UVJjb2RlX21haW5cIixcInByZXZpZXdRUmNvZGVfbWFpbl9pY29uXCI6XCJMOWtHcEpaYl9wcmV2aWV3UVJjb2RlX21haW5faWNvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/layout/designer/PreviewQRCode.less\n");

/***/ }),

/***/ "./src/web/pages/designer/home/DesignerHomePage.less":
/*!***********************************************************!*\
  !*** ./src/web/pages/designer/home/DesignerHomePage.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\"] = ({\"loading_wrapper\":\"-Wi07ZPx_loading_wrapper\",\"hidden\":\"f6VImrSN_hidden\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2Rlc2lnbmVyL2hvbWUvRGVzaWduZXJIb21lUGFnZS5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9wYWdlcy9kZXNpZ25lci9ob21lL0Rlc2lnbmVySG9tZVBhZ2UubGVzcz9jZjZmIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibG9hZGluZ193cmFwcGVyXCI6XCItV2kwN1pQeF9sb2FkaW5nX3dyYXBwZXJcIixcImhpZGRlblwiOlwiZjZWSW1yU05faGlkZGVuXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/pages/designer/home/DesignerHomePage.less\n");

/***/ }),

/***/ "./src/constants/defaultIcon.ts":
/*!**************************************!*\
  !*** ./src/constants/defaultIcon.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.DEFAULT_FORM_IMAGE = exports.DEFAULT_APP_IMAGE = void 0;\nvar DEFAULT_APP_IMAGE = exports.DEFAULT_APP_IMAGE = 'nocode/v2/nocode_sys/common/svgs/create_svg?color=%233987ED&svg=svg18'; // 默认应用图标\nvar DEFAULT_FORM_IMAGE = exports.DEFAULT_FORM_IMAGE = 'nocode/v2/nocode_sys/common/svgs/create_svg_line?color=%233987ED&svg=svg64'; // 默认表单图标//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29uc3RhbnRzL2RlZmF1bHRJY29uLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL2NvbnN0YW50cy9kZWZhdWx0SWNvbi50cz9jM2ZjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBERUZBVUxUX0FQUF9JTUFHRSA9ICdub2NvZGUvdjIvbm9jb2RlX3N5cy9jb21tb24vc3Zncy9jcmVhdGVfc3ZnP2NvbG9yPSUyMzM5ODdFRCZzdmc9c3ZnMTgnIC8vIOm7mOiupOW6lOeUqOWbvuagh1xuZXhwb3J0IGNvbnN0IERFRkFVTFRfRk9STV9JTUFHRSA9ICdub2NvZGUvdjIvbm9jb2RlX3N5cy9jb21tb24vc3Zncy9jcmVhdGVfc3ZnX2xpbmU/Y29sb3I9JTIzMzk4N0VEJnN2Zz1zdmc2NCcgLy8g6buY6K6k6KGo5Y2V5Zu+5qCHXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/constants/defaultIcon.ts\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.useWindowSize = useWindowSize;\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\nvar _index = __webpack_require__(/*! ../utils/index */ \"./src/utils/index.tsx\");\nfunction useWindowSize() {\n  var _useState = (0, _react.useState)(function () {\n      var _window = window,\n        innerWidth = _window.innerWidth,\n        innerHeight = _window.innerHeight;\n      return {\n        width: innerWidth,\n        height: innerHeight\n      };\n    }),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    windowSize = _useState2[0],\n    setWindowSize = _useState2[1];\n  var updateSize = function updateSize(_ref) {\n    var width = _ref.width,\n      height = _ref.height;\n    setWindowSize({\n      width: width,\n      height: height\n    });\n  };\n  (0, _react.useEffect)(function () {\n    var resizeObserver = (0, _index.addResizeObserve)(document.body, updateSize);\n    return function () {\n      resizeObserver && resizeObserver.removeResizeObserve();\n    };\n  }, []);\n  return windowSize;\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlV2luZG93U2l6ZS50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTtBQUNBO0FBT0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFB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iAgICByZXR1cm4gKCkgPT4ge1xyXG4gICAgICByZXNpemVPYnNlcnZlciAmJiByZXNpemVPYnNlcnZlci5yZW1vdmVSZXNpemVPYnNlcnZlKClcclxuICAgIH1cclxuICB9LCBbXSlcclxuXHJcbiAgcmV0dXJuIHdpbmRvd1NpemVcclxufVxyXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/hooks/useWindowSize.ts\n");

/***/ }),

/***/ "./src/route/useNocodeNavigate.ts":
/*!****************************************!*\
  !*** ./src/route/useNocodeNavigate.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[\"default\"] = void 0;\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _urlUtil = __webpack_require__(/*! @/utils/urlUtil */ \"./src/utils/urlUtil.ts\");\nvar useNocodeNavigate = function useNocodeNavigate() {\n  var navigate = (0, _reactRouterDom.useNavigate)();\n  var location = (0, _reactRouterDom.useLocation)();\n  var search = location.search;\n  var nocodeNavigate = (0, _react.useCallback)(function (url, options) {\n    url = (0, _urlUtil.urlParamWithDebug)(url, search);\n    navigate(url, options);\n  }, [search, navigate]);\n  return nocodeNavigate;\n};\nvar _default = exports[\"default\"] = useNocodeNavigate;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcm91dGUvdXNlTm9jb2RlTmF2aWdhdGUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvcm91dGUvdXNlTm9jb2RlTmF2aWdhdGUudHM/M2E4YSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgdXNlTmF2aWdhdGUsIHVzZUxvY2F0aW9uIH0gZnJvbSAncmVhY3Qtcm91dGVyLWRvbSdcbmltcG9ydCB7IHVybFBhcmFtV2l0aERlYnVnIH0gZnJvbSAnQC91dGlscy91cmxVdGlsJ1xuXG5jb25zdCB1c2VOb2NvZGVOYXZpZ2F0ZSA9ICgpID0+IHtcbiAgY29uc3QgbmF2aWdhdGUgPSB1c2VOYXZpZ2F0ZSgpXG4gIGNvbnN0IGxvY2F0aW9uID0gdXNlTG9jYXRpb24oKVxuICBjb25zdCB7IHNlYXJjaCB9ID0gbG9jYXRpb25cblxuICBjb25zdCBub2NvZGVOYXZpZ2F0ZSA9IHVzZUNhbGxiYWNrKCh1cmwsIG9wdGlvbnM/OiBhbnkpID0+IHtcbiAgICB1cmwgPSB1cmxQYXJhbVdpdGhEZWJ1Zyh1cmwsIHNlYXJjaClcbiAgICBuYXZpZ2F0ZSh1cmwsIG9wdGlvbnMpXG4gIH0sIFtzZWFyY2gsIG5hdmlnYXRlXSlcbiAgcmV0dXJuIG5vY29kZU5hdmlnYXRlXG59XG5cbmV4cG9ydCBkZWZhdWx0IHVzZU5vY29kZU5hdmlnYXRlXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/route/useNocodeNavigate.ts\n");

/***/ }),

/***/ "./src/utils/urlUtil.ts":
/*!******************************!*\
  !*** ./src/utils/urlUtil.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.urlParamWithDebug = void 0;\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar keepSearchKeys = ['kdweb_debug', 'kdweb_cdn', 'kdcdc'];\nvar urlParamWithDebug = exports.urlParamWithDebug = function urlParamWithDebug(url, search) {\n  for (var i = 0; i < keepSearchKeys.length; i++) {\n    if (search !== null && search !== void 0 && (0, _includes.default)(search).call(search, keepSearchKeys[i])) {\n      return (0, _concat.default)(url).call(url, search);\n    }\n  }\n  return url;\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvdXJsVXRpbC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3V0aWxzL3VybFV0aWwudHM/N2E0ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBrZWVwU2VhcmNoS2V5cyA9IFsna2R3ZWJfZGVidWcnLCAna2R3ZWJfY2RuJywgJ2tkY2RjJ11cbmNvbnN0IHVybFBhcmFtV2l0aERlYnVnID0gKHVybCwgc2VhcmNoKSA9PiB7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwga2VlcFNlYXJjaEtleXMubGVuZ3RoOyBpKyspIHtcbiAgICBpZiAoc2VhcmNoPy5pbmNsdWRlcyhrZWVwU2VhcmNoS2V5c1tpXSkpIHtcbiAgICAgIHJldHVybiB1cmwuY29uY2F0KHNlYXJjaClcbiAgICB9XG4gIH1cbiAgcmV0dXJuIHVybFxufVxuXG5leHBvcnQgeyB1cmxQYXJhbVdpdGhEZWJ1ZyB9XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/urlUtil.ts\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _designer = __webpack_require__(/*! @/actions/designer */ \"./src/actions/designer.js\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _FormWrapper = _interopRequireDefault(__webpack_require__(/*! ./FormWrapper.less */ \"./src/web/component/common/FormWrapper.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-11-29 17:28:01\n * @LastEditTime: 2022-12-13 11:12:12\n * @Last Modified by: jianhang_he\n */\n\nvar FormWrapper = function FormWrapper(_ref) {\n  var title = _ref.title,\n    children = _ref.children,\n    isMb = _ref.isMb;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    targetFormId = _useParams.targetFormId,\n    appId = _useParams.appId;\n  var _useState = (0, _react.useState)(title),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    formName = _useState2[0],\n    setFormName = _useState2[1];\n  (0, _react.useEffect)(function () {\n    if ((0, _lodash.isUndefined)(title)) {\n      // 获取表单信息\n      (0, _designer.getFormData)({\n        appId: appId,\n        targetFormId: targetFormId\n      }).then(function (res) {\n        var _res$rows;\n        var data = (res === null || res === void 0 || (_res$rows = res.rows) === null || _res$rows === void 0 ? void 0 : _res$rows[0]) || {};\n        setFormName(data.name);\n      }).catch(function (err) {\n        console.error('出错了', err);\n      });\n    }\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FormWrapper.default.formheader, (0, _defineProperty2.default)({}, _FormWrapper.default.formheader_mb, isMb))\n  }, formName), children);\n};\nvar _default = exports[\"default\"] = FormWrapper;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vRm9ybVdyYXBwZXIudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFPQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFBQTtBQUFBO0FBYkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBU0E7QUFJQTtBQUZBO0FBQ0E7QUFFQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBRUE7QUFFQTtBQU1BO0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Br1xuICAgICAgcXVlcnlGb3JtRGF0YSh7XG4gICAgICAgIGFwcElkLFxuICAgICAgICB0YXJnZXRGb3JtSWRcbiAgICAgIH0pLnRoZW4ocmVzID0+IHtcbiAgICAgICAgY29uc3QgZGF0YSA9IHJlcz8ucm93cz8uWzBdIHx8IHsgfVxuICAgICAgICBzZXRGb3JtTmFtZShkYXRhLm5hbWUpXG4gICAgICB9KS5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmVycm9yKCflh7rplJnkuoYnLCBlcnIpXG4gICAgICB9KVxuICAgIH1cbiAgfSwgW10pXG5cbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPGRpdiBjbGFzc05hbWU9e2NsYXNzTmFtZXMoc3R5bGVzLmZvcm1oZWFkZXIsIHtcbiAgICAgICAgW3N0eWxlcy5mb3JtaGVhZGVyX21iXTogaXNNYlxuICAgICAgfSl9XG4gICAgICA+e2Zvcm1OYW1lfVxuICAgICAgPC9kaXY+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC8+XG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgRm9ybVdyYXBwZXJcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/common/FormWrapper.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _qrcode = _interopRequireDefault(__webpack_require__(/*! qrcode.react */ \"../../node_modules/qrcode.react/lib/esm/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; }\n/*\n * @Description: 无代码二维码组件，后续如果qrcode.react被其他的库替换了，直接更改这里即可\n * @Author: jianhang_he\n * @Date: 2022-12-13 10:26:31\n * @LastEditTime: 2022-12-13 17:59:08\n * @Last Modified by: jianhang_he\n */\n\nvar QRCode = (0, _react.memo)(function (props) {\n  return /*#__PURE__*/_react.default.createElement(_qrcode.default, props);\n});\nQRCode.displayName = 'QRCode';\nvar _default = exports[\"default\"] = QRCode;//# sourceURL=[module]\n//#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XSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/web/component/common/QRCode.tsx\n");

/***/ }),

/***/ "./src/web/component/skeleton/DesignerSkeleton.ts":
/*!********************************************************!*\
  !*** ./src/web/component/skeleton/DesignerSkeleton.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.DesignerSkeleton = void 0;\n/*\n * @Description: 表单设计器-骨架屏\n * @Author: john_xin_gu\n * @Date: 2023-07-26 19:12:56\n * @LastEditTime: 2023-09-07 14:55:39\n * @Last Modified by: john_xin_gu\n */\n\nvar DesignerSkeleton = exports.DesignerSkeleton = [{\n  width: '100%',\n  height: '100%',\n  background: '#ECEEF2',\n  child: [{\n    width: '280px',\n    height: '100%',\n    type: 'MENU',\n    child: [{\n      width: '216px',\n      height: '28px',\n      margin: '12px',\n      type: 'INPUT'\n    }, {\n      width: '64px',\n      height: '20px',\n      margin: '16px 12px 12px 12px',\n      type: 'INPUT'\n    }, {\n      width: 'auto',\n      height: 'auto',\n      flexWrap: 'wrap',\n      margin: '0px 0px 0px 12px',\n      child: [{\n        width: '80px',\n        height: '72px',\n        margin: '0px 8px 8px 0px',\n        type: 'INPUT',\n        repeat: 12\n      }]\n    }, {\n      width: '64px',\n      height: '20px',\n      margin: '20px 12px 12px 12px',\n      type: 'INPUT'\n    }, {\n      width: 'auto',\n      height: 'auto',\n      flexWrap: 'wrap',\n      margin: '0px 0px 0px 12px',\n      child: [{\n        width: '80px',\n        height: '72px',\n        margin: '0px 8px 8px 0px',\n        type: 'INPUT',\n        repeat: 12\n      }]\n    }, {\n      width: '64px',\n      height: '20px',\n      margin: '20px 12px 12px 12px',\n      type: 'INPUT'\n    }, {\n      width: 'auto',\n      height: 'auto',\n      flexWrap: 'wrap',\n      margin: '0px 0px 0px 12px',\n      child: [{\n        width: '80px',\n        height: '72px',\n        margin: '0px 8px 8px 0px',\n        type: 'INPUT',\n        repeat: 3\n      }]\n    }]\n  }, {\n    width: 'calc(100vw - 600px)',\n    height: 'auto',\n    type: 'CONCENT',\n    margin: '20px',\n    child: [{\n      width: '100%',\n      height: 'auto',\n      margin: '1px 0px',\n      flexDirection: 'row',\n      flexWrap: 'wrap',\n      child: [{\n        width: '50%',\n        height: 'auto',\n        flexDirection: 'column',\n        repeat: 3,\n        child: [{\n          width: '48px',\n          height: '16px',\n          type: 'INPUT',\n          margin: '0px 0px 12px 12px'\n        }, {\n          width: 'calc(100% - 24px)',\n          height: '36px',\n          type: 'INPUT',\n          margin: '0px 0px 24px 12px'\n        }]\n      }, {\n        width: '50%',\n        height: 'auto',\n        flexDirection: 'column',\n        child: [{\n          width: '48px',\n          height: '16px',\n          type: 'INPUT',\n          margin: '0px 0px 12px 12px'\n        }, {\n          width: '50%',\n          height: '36px',\n          flexDirection: 'row',\n          child: [{\n            width: '120px',\n            height: '36px',\n            type: 'INPUT',\n            margin: '0px 4px 0px 12px',\n            repeat: 2\n          }]\n        }]\n      }, {\n        width: '100%',\n        height: 'auto',\n        flexDirection: 'column',\n        child: [{\n          width: '48px',\n          height: '16px',\n          type: 'INPUT',\n          margin: '0px 0px 12px 12px'\n        }, {\n          width: 'calc(100% - 24px)',\n          height: '76px',\n          type: 'INPUT',\n          margin: '0px 0px 24px 12px'\n        }]\n      }, {\n        width: '100%',\n        height: 'auto',\n        flexDirection: 'column',\n        child: [{\n          width: '48px',\n          height: '16px',\n          type: 'INPUT',\n          margin: '0px 0px 12px 12px'\n        }, {\n          width: 'calc(100% - 24px)',\n          height: '88px',\n          type: 'INPUT',\n          margin: '0px 0px 8px 12px'\n        }]\n      }, {\n        width: '100%',\n        height: 'auto',\n        type: 'HEAD',\n        child: [{\n          width: '92px',\n          height: '28px',\n          type: 'INPUT'\n        }, {\n          width: '280px',\n          height: '28px',\n          type: 'INPUT',\n          margin: '0px 12px 24px 12px'\n        }]\n      }]\n    }]\n  }, {\n    width: '280px',\n    height: 'auto',\n    type: 'MENU',\n    child: [{\n      width: '32px',\n      height: '20px',\n      type: 'INPUT',\n      margin: '24px 12px'\n    }, {\n      width: '48px',\n      height: '26px',\n      type: 'INPUT',\n      margin: '0px 12px'\n    }, {\n      width: '256px',\n      height: '36px',\n      type: 'INPUT',\n      margin: '12px'\n    }, {\n      width: '256px',\n      height: '16px',\n      margin: '12px',\n      type: 'HEAD',\n      child: [{\n        width: '48px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px'\n      }, {\n        width: '31px',\n        height: '16px',\n        type: 'INPUT'\n      }]\n    }, {\n      width: '48px',\n      height: '16px',\n      type: 'INPUT',\n      margin: '12px'\n    }, {\n      width: '256px',\n      height: '36px',\n      type: 'INPUT',\n      margin: '0px 12px 24px 12px'\n    }, {\n      width: '48px',\n      height: '16px',\n      type: 'INPUT',\n      margin: '0px 12px 12px 12px'\n    }, {\n      width: '100%',\n      height: 'auto',\n      flexDirection: 'row',\n      flexWrap: 'wrap',\n      child: [{\n        width: '80px',\n        height: '16px',\n        type: 'INPUT',\n        repeat: 6,\n        margin: '0px 42px 12px 12px'\n      }]\n    }, {\n      width: '100%',\n      height: '1px',\n      type: 'INPUT',\n      margin: '24px 0px'\n    }, {\n      width: '32px',\n      height: '20px',\n      type: 'INPUT'\n    }, {\n      width: '48px',\n      height: '16px',\n      type: 'INPUT',\n      margin: '24px 0px 0px 12px'\n    }, {\n      width: '256px',\n      height: '36px',\n      type: 'INPUT',\n      margin: '12px'\n    }, {\n      width: '48px',\n      height: '16px',\n      type: 'INPUT',\n      margin: '12px'\n    }, {\n      width: '256px',\n      height: '36px',\n      type: 'INPUT',\n      margin: '0px 12px 12px 12px'\n    }, {\n      width: '256px',\n      height: '16px',\n      margin: '12px',\n      repeat: 2,\n      type: 'HEAD',\n      flexDirection: 'row',\n      child: [{\n        width: '48px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px'\n      }, {\n        width: '31px',\n        height: '16px',\n        type: 'INPUT'\n      }]\n    }, {\n      width: '256px',\n      height: '28px',\n      type: 'INPUT',\n      margin: '0px 12px 12px 12px'\n    }, {\n      width: '256px',\n      height: '36px',\n      margin: '12px',\n      type: 'HEAD',\n      flexDirection: 'row',\n      child: [{\n        width: '48px',\n        height: '16px',\n        type: 'INPUT',\n        margin: '0px'\n      }, {\n        width: '31px',\n        height: '16px',\n        type: 'INPUT'\n      }]\n    }]\n  }]\n}];//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/skeleton/DesignerSkeleton.ts\n");

/***/ }),

/***/ "./src/web/layout/designer/HeaderFormName.jsx":
/*!****************************************************!*\
  !*** ./src/web/layout/designer/HeaderFormName.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 _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 _HeaderFormName = _interopRequireDefault(__webpack_require__(/*! ./HeaderFormName.less */ \"./src/web/layout/designer/HeaderFormName.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-09-27 15:22:40\n * @LastEditTime: 2023-05-05 15:46:13\n * @Last Modified by: jianhang_he\n */\n\nvar DEFAULT_FORM_NAME = '未命名表单';\nvar DOUBLE_CLICK = 'doubleClick';\n\n/**\n * @description 表单名称区域\n * @param {formName, updateFormName} formName 表单名称 updateFormName 更新表单名称（回传给上层）\n * @returns\n */\nvar HeaderFormName = function HeaderFormName(_ref) {\n  var formName = _ref.formName,\n    updateFormName = _ref.updateFormName,\n    _ref$placeholder = _ref.placeholder,\n    placeholder = _ref$placeholder === void 0 ? '请输入表单名称' : _ref$placeholder,\n    _ref$tips = _ref.tips,\n    tips = _ref$tips === void 0 ? '点击修改表单名称' : _ref$tips,\n    _ref$doubleClickTips = _ref.doubleClickTips,\n    doubleClickTips = _ref$doubleClickTips === void 0 ? '双击修改表单名称' : _ref$doubleClickTips,\n    _ref$defaultName = _ref.defaultName,\n    defaultName = _ref$defaultName === void 0 ? DEFAULT_FORM_NAME : _ref$defaultName;\n  var inputRef = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(formName === defaultName),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    formNameEditStatus = _useState2[0],\n    setEditFormNameEditStatus = _useState2[1]; // 表单名称编辑状态\n  var _useState3 = (0, _react.useState)(formName),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    name = _useState4[0],\n    setName = _useState4[1]; // 表单名称\n\n  (0, _react.useEffect)(function () {\n    setName(formName);\n    setEditFormNameEditStatus(formName === defaultName);\n  }, [formName]);\n  (0, _react.useEffect)(function () {\n    if (inputRef.current && formNameEditStatus) {\n      // 初始化的时候表单名称和默认名称一致时，需要选中修改\n      inputRef.current.select();\n    }\n  }, []);\n  (0, _react.useEffect)(function () {\n    if (formNameEditStatus === DOUBLE_CLICK) {\n      inputRef.current.select();\n      return;\n    }\n    if (formNameEditStatus) {\n      // 输入框显示的时候默认聚焦\n      inputRef.current.focus();\n    }\n  }, [formNameEditStatus]);\n\n  // 输入框改变\n  var handleChangeFormName = function handleChangeFormName(e) {\n    var value = e.target.value;\n    setName(value);\n  };\n\n  // 回车\n  var onPressEnterFormName = function onPressEnterFormName(inputValue) {\n    updataFormNameAndHideInput(inputValue || defaultName);\n  };\n\n  // 回传formName和隐藏输入框\n  var updataFormNameAndHideInput = (0, _react.useCallback)(function (value) {\n    updateFormName(value);\n    setDocumentTitle(value);\n    setName(value);\n    setEditFormNameEditStatus(false);\n  }, []);\n\n  // 设置当前页面title\n  var setDocumentTitle = function setDocumentTitle(title) {\n    document.title = \"\\u914D\\u7F6E\\uFF1A\".concat(title);\n  };\n\n  // 双击修改\n  var handleDoubleClickFormName = function handleDoubleClickFormName() {\n    setEditFormNameEditStatus(DOUBLE_CLICK);\n  };\n  var handleBlurFormName = function handleBlurFormName(e) {\n    var value = e.target.value;\n    updataFormNameAndHideInput(value || formName || defaultName);\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderFormName.default.header_formname\n  }, formNameEditStatus ? /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    allowClear: true,\n    defaultValue: name,\n    value: name,\n    onChange: handleChangeFormName,\n    onBlur: handleBlurFormName,\n    onPressEnter: onPressEnterFormName,\n    maxLength: 50,\n    ref: inputRef,\n    className: _HeaderFormName.default.header_formname_input,\n    placeholder: placeholder,\n    borderType: \"bordered\"\n  }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"p\", {\n    title: doubleClickTips,\n    onDoubleClick: handleDoubleClickFormName\n  }, name), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    title: tips,\n    className: _HeaderFormName.default.header_formname_editicon,\n    type: \"bianji\",\n    onClick: function onClick() {\n      return setEditFormNameEditStatus(true);\n    }\n  })));\n};\nvar _default = exports[\"default\"] = HeaderFormName;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderFormName.jsx\n");

/***/ }),

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

eval("\n\nvar _typeof3 = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.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 _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.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 _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _lodash = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _HeaderIconMenu = _interopRequireDefault(__webpack_require__(/*! ./HeaderIconMenu.less */ \"./src/web/layout/designer/HeaderIconMenu.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\" != _typeof3(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 shortcutList = [{\n  key: 'quickNew',\n  name: '快速新建',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Enter'\n  }]\n}, {\n  key: 'delete',\n  name: '删除',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Delete'\n  }, '或', {\n    type: 'block',\n    value: 'Backspace'\n  }]\n}, {\n  key: 'copy',\n  name: '复制',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: 'C'\n  }]\n}, {\n  key: 'paste',\n  name: '粘贴',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: 'V'\n  }]\n}, {\n  key: 'shearCut',\n  name: '剪切',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: 'X'\n  }]\n}, {\n  key: 'repeat',\n  name: '重复',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: 'D'\n  }]\n}, {\n  key: 'multiSelect',\n  name: '多选或取消多选',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: '鼠标点击'\n  }]\n}, {\n  key: 'cancel',\n  name: '撤销',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: 'Z'\n  }]\n}, {\n  key: 'renew',\n  name: '恢复',\n  shortcutDataList: [{\n    type: 'block',\n    value: 'Ctrl'\n  }, '+', {\n    type: 'block',\n    value: 'Y'\n  }]\n}];\n\n/**\n * 快捷键下拉面板内容\n */\nvar renderShortcutContent = function renderShortcutContent() {\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, {\n    className: (0, _classnames.default)(_HeaderIconMenu.default.dropDownContent, _HeaderIconMenu.default.pd16)\n  }, (0, _map.default)(shortcutList).call(shortcutList, function (_ref, index) {\n    var name = _ref.name,\n      shortcutDataList = _ref.shortcutDataList;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      key: index,\n      className: _HeaderIconMenu.default.dropDownContent_shortcut\n    }, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _HeaderIconMenu.default.dropDownContent_shortcut_name\n    }, name), /*#__PURE__*/_react.default.createElement(\"ul\", {\n      className: _HeaderIconMenu.default.dropDownContent_shortcut_key\n    }, /*#__PURE__*/_react.default.createElement(\"li\", null, (0, _map.default)(shortcutDataList).call(shortcutDataList, function (shortcut) {\n      if ((0, _typeof2.default)(shortcut) === 'object') {\n        return /*#__PURE__*/_react.default.createElement(\"span\", {\n          key: shortcut.value,\n          className: _HeaderIconMenu.default.text_block\n        }, shortcut.value);\n      } else {\n        return /*#__PURE__*/_react.default.createElement(\"span\", {\n          key: shortcut\n        }, \"\\xA0\", shortcut, \"\\xA0\");\n      }\n    }))));\n  }));\n};\n\n/**\n * 设计器设置下拉面板内容\n */\nvar renderSettingContent = function renderSettingContent(_ref2) {\n  var _context;\n  var appId = _ref2.appId,\n    formId = _ref2.formId,\n    settingData = _ref2.settingData,\n    setSettingData = _ref2.setSettingData;\n  // 上报埋点\n  var pubUIAction = function pubUIAction(key, checked) {\n    var eventMapping = {\n      Categories: {\n        true: 'tb_ds_lib_open',\n        false: 'tb_ds_lib_close'\n      },\n      CategoryArrangement: {\n        true: 'tb_ds_lay_open',\n        false: 'tb_ds_lay_close'\n      },\n      CategoryDisplayContent: {\n        true: 'tb_ds_dc_open',\n        false: 'tb_ds_dc_close'\n      },\n      CategoryGeneralContent: {\n        true: 'tb_ds_gc_open',\n        false: 'tb_ds_gc_close'\n      },\n      CategoryOperation: {\n        true: 'tb_ds_opi_open',\n        false: 'tb_ds_opi_close'\n      },\n      CategorySystem: {\n        true: 'tb_ds_sysf_open',\n        false: 'tb_ds_sysf_close'\n      },\n      Property: {\n        true: 'tb_ds_al_open',\n        false: 'tb_ds_al_close'\n      },\n      Outline: {\n        true: 'tb_ds_ol_open',\n        false: 'tb_ds_ol_close'\n      }\n    };\n    var action = {\n      appId: appId,\n      formId: formId,\n      eventName: 'click',\n      event: eventMapping[key][String(checked)]\n    };\n    (0, _PageEventService.publishUserEvent)(action);\n  };\n\n  /**\n   * @description 切换视图的开关\n   * @param {string} key 控件视图/属性视图的key值（Categories | Property）\n   * @param {boolean} checked 是否选中\n   */\n  var handleChange = function handleChange(key, checked) {\n    settingData[key].value = checked;\n    setSettingData((0, _lodash.cloneDeep)(settingData));\n    pubUIAction(key, checked);\n  };\n\n  /**\n   * @description 切换子视图的开关\n   * @param {string} key 控件视图/属性视图的key值（Categories | Property）\n   * @param {string} itemKey 子视图的key值（展示内容/排列方式等）\n   * @param {boolean} checked 是否选中\n   */\n  var handleItemChange = function handleItemChange(key, itemKey, checked) {\n    settingData[key].items[itemKey].value = checked;\n    setSettingData((0, _lodash.cloneDeep)(settingData));\n    pubUIAction(itemKey, checked);\n  };\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, {\n    className: _HeaderIconMenu.default.dropDownContent\n  }, settingData && (0, _map.default)(_context = (0, _keys.default)(settingData)).call(_context, function (settingKey) {\n    var _context2;\n    var _settingData$settingK = settingData[settingKey],\n      title = _settingData$settingK.title,\n      items = _settingData$settingK.items,\n      value = _settingData$settingK.value;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _HeaderIconMenu.default.dropDownContent_setting,\n      key: settingKey\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _HeaderIconMenu.default.dropDownContent_setting_header\n    }, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _HeaderIconMenu.default.title\n    }, title), /*#__PURE__*/_react.default.createElement(_kdesign.Switch, {\n      checked: value,\n      onChange: function onChange(checked) {\n        return handleChange(settingKey, checked);\n      }\n    })), value && items && /*#__PURE__*/_react.default.createElement(\"ul\", {\n      className: _HeaderIconMenu.default.dropDownContent_setting_list\n    }, (0, _map.default)(_context2 = (0, _keys.default)(items)).call(_context2, function (itemKey) {\n      var _items$itemKey = items[itemKey],\n        name = _items$itemKey.name,\n        itemValue = _items$itemKey.value;\n      return /*#__PURE__*/_react.default.createElement(\"li\", {\n        key: itemKey\n      }, /*#__PURE__*/_react.default.createElement(\"p\", null, name), /*#__PURE__*/_react.default.createElement(_kdesign.Switch, {\n        checked: itemValue,\n        onChange: function onChange(checked) {\n          return handleItemChange(settingKey, itemKey, checked);\n        }\n      }));\n    })));\n  }));\n};\n\n/**\n * 设计器顶部图标菜单（快捷键、帮助、设计器配置、智能完善、保存为模板）\n * setSettingData 设置配置数据\n * settingData 配置数据\n * handleMenuItemClick 点击图标菜单栏\n */\nvar HeaderIconMenu = function HeaderIconMenu(_ref3) {\n  var _context3, _context4, _context5;\n  var appId = _ref3.appId,\n    formId = _ref3.formId,\n    setSettingData = _ref3.setSettingData,\n    settingData = _ref3.settingData,\n    handleMenuItemClick = _ref3.handleMenuItemClick,\n    _ref3$hideText = _ref3.hideText,\n    hideText = _ref3$hideText === void 0 ? false : _ref3$hideText,\n    _ref3$canSaveTemplate = _ref3.canSaveTemplate,\n    canSaveTemplate = _ref3$canSaveTemplate === void 0 ? false : _ref3$canSaveTemplate;\n  var iconMenuList = [{\n    title: '快捷键',\n    icon: 'kuaijiejian',\n    key: 'shortcut',\n    dropDownContent: renderShortcutContent(),\n    action: (0, _concat.default)(_context3 = \"\".concat(appId, \"|\")).call(_context3, formId, \"|tb_shortcut\")\n  },\n  // {\n  //   title: '帮助',\n  //   icon: 'bangzhu',\n  //   key: 'help'\n  // },\n  {\n    title: '设计器配置',\n    icon: 'shezhi',\n    key: 'designerSetting',\n    dropDownContent: renderSettingContent({\n      appId: appId,\n      formId: formId,\n      setSettingData: setSettingData,\n      settingData: settingData\n    })\n  },\n  // {\n  //   title: '智能完善',\n  //   icon: 'zhinengwanshan',\n  //   key: 'intelligencePerfection'\n  // },\n  canSaveTemplate && {\n    title: '保存为模板',\n    icon: 'baocunweimoban',\n    key: 'saveTemplate',\n    action: (0, _concat.default)(_context4 = \"\".concat(appId, \"|\")).call(_context4, formId, \"|tb_sft\")\n  }];\n\n  // 点击图标菜单栏项\n  var handleClick = function handleClick(key) {\n    console.log(key);\n    handleMenuItemClick === null || handleMenuItemClick === void 0 || handleMenuItemClick(key);\n  };\n  return /*#__PURE__*/_react.default.createElement(\"ul\", {\n    className: _HeaderIconMenu.default.header_iconmenu\n  }, (0, _map.default)(_context5 = (0, _filter.default)(iconMenuList).call(iconMenuList, Boolean)).call(_context5, function (_ref4, index) {\n    var title = _ref4.title,\n      icon = _ref4.icon,\n      dropDownContent = _ref4.dropDownContent,\n      action = _ref4.action,\n      key = _ref4.key;\n    var dataNcAction = action ? {\n      'data-nc-action': action\n    } : {};\n    var trigger = /*#__PURE__*/_react.default.createElement(\"li\", (0, _extends2.default)({\n      key: key,\n      className: _HeaderIconMenu.default.header_iconmenu_item,\n      title: title,\n      onClick: function onClick() {\n        return handleClick(key);\n      }\n    }, dataNcAction), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n      prefix: \"nocodeplatformicon\",\n      className: _HeaderIconMenu.default.header_iconmenu_item_icon,\n      type: icon\n    }), !hideText && /*#__PURE__*/_react.default.createElement(\"span\", {\n      className: _HeaderIconMenu.default.txt\n    }, title));\n    return dropDownContent ? /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n      key: index,\n      gap: 0,\n      placement: \"topRight\",\n      menu: dropDownContent,\n      trigger: \"click\"\n    }, trigger) : trigger;\n  }));\n};\nvar _default = exports[\"default\"] = HeaderIconMenu;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderIconMenu.jsx\n");

/***/ }),

/***/ "./src/web/layout/designer/HeaderLayout.jsx":
/*!**************************************************!*\
  !*** ./src/web/layout/designer/HeaderLayout.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 _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 _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 _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 _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _designer = __webpack_require__(/*! @/actions/designer */ \"./src/actions/designer.js\");\nvar _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _Header = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/Header */ \"./src/web/component/common/Header.jsx\"));\nvar _HeaderNavDropDown = _interopRequireDefault(__webpack_require__(/*! ./HeaderNavDropDown */ \"./src/web/layout/designer/HeaderNavDropDown.tsx\"));\nvar _HeaderIconMenu = _interopRequireDefault(__webpack_require__(/*! ./HeaderIconMenu */ \"./src/web/layout/designer/HeaderIconMenu.jsx\"));\nvar _HeaderFormName = _interopRequireDefault(__webpack_require__(/*! ./HeaderFormName */ \"./src/web/layout/designer/HeaderFormName.jsx\"));\nvar _SaveTemplateModal = _interopRequireWildcard(__webpack_require__(/*! ./SaveTemplateModal */ \"./src/web/layout/designer/SaveTemplateModal.jsx\"));\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _useWindowSize2 = __webpack_require__(/*! ../../../hooks/useWindowSize */ \"./src/hooks/useWindowSize.ts\");\nvar _HeaderLayout = _interopRequireDefault(__webpack_require__(/*! ./HeaderLayout.less */ \"./src/web/layout/designer/HeaderLayout.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _NocodeLink = _interopRequireDefault(__webpack_require__(/*! @/route/NocodeLink */ \"./src/route/NocodeLink.tsx\"));\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _theme = __webpack_require__(/*! @/theme */ \"./src/theme/index.tsx\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.ts\");\nvar _defaultIcon = __webpack_require__(/*! @/constants/defaultIcon */ \"./src/constants/defaultIcon.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar BTN_KEY_SAVE_AND_VISIT = 'SAVE_AND_VISIT';\nvar INIT_TEMP_INFO = {\n  visible: false,\n  value: _SaveTemplateModal.INIT_TEMPLATE_VALUE\n};\n\n/**\n * @description 设计器顶部栏\n * @returns\n */\nvar DesignerHeaderLayout = function DesignerHeaderLayout() {\n  var _context, _context2, _context3, _context4, _context5, _formData$app, _formData$app2, _context6, _context7, _context8;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    targetFormId = _useParams.targetFormId,\n    appId = _useParams.appId;\n  var _useLocation = (0, _reactRouterDom.useLocation)(),\n    pathname = _useLocation.pathname;\n  var formNameRef = (0, _react.useRef)(null);\n  var _useState = (0, _react.useState)(null),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    formData = _useState2[0],\n    setFormData = _useState2[1]; // 表单相关信息\n  var _useState3 = (0, _react.useState)(null),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    save = _useState4[0],\n    setSave = _useState4[1]; // 表单相关信息\n  var _useState5 = (0, _react.useState)(null),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    saveAndVisit = _useState6[0],\n    setSaveAndVisit = _useState6[1]; // 保存并发布\n  var _useState7 = (0, _react.useState)(false),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    isLoading = _useState8[0],\n    setIsLoading = _useState8[1];\n  var _useState9 = (0, _react.useState)(null),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    preview = _useState10[0],\n    setPreview = _useState10[1]; // 表单相关信息\n  var _useState11 = (0, _react.useState)(null),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    formTitle = _useState12[0],\n    setFormTitle = _useState12[1]; // 表单相关信息\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_TEMP_INFO),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    templateInfo = _useReducer2[0],\n    dispatchTemplateInfo = _useReducer2[1];\n  var _useState13 = (0, _react.useState)(false),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    templateModalVisible = _useState14[0],\n    setTemplateModalVisible = _useState14[1];\n  var _useState15 = (0, _react.useState)(false),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    saveMenuVisible = _useState16[0],\n    setSaveMenuVisible = _useState16[1];\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state;\n  var userInfo = state.userInfo,\n    rootConfig = state.rootConfig;\n  var _ref = userInfo || {},\n    isAdminUser = _ref.isAdminUser,\n    _ref$templateEnabled = _ref.templateEnabled,\n    templateEnabled = _ref$templateEnabled === void 0 ? false : _ref$templateEnabled;\n  var wrapperRef = (0, _react.useRef)(null);\n  var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),\n    width = _useWindowSize.width;\n  // 当屏幕宽度小于1366时，右侧菜单只显示图标\n  var hideRightNavText = width < 1366;\n  (0, _react.useEffect)(function () {\n    // 获取表单信息\n    (0, _designer.getFormData)({\n      appId: appId,\n      targetFormId: targetFormId\n    }).then(function (res) {\n      var _res$rows;\n      var data = (res === null || res === void 0 || (_res$rows = res.rows) === null || _res$rows === void 0 ? void 0 : _res$rows[0]) || {};\n      setFormData(data);\n      setFormTitle(data.name);\n    }).catch(function (err) {\n      console.error('出错了', err);\n    });\n  }, []);\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    t = _useTranslation.t;\n  var handleSetSettingData = function handleSetSettingData(setting) {\n    setFormData(function (data) {\n      return _objectSpread(_objectSpread({}, data), {}, {\n        setting: setting\n      });\n    });\n  };\n  var closeLoadingMessage = function closeLoadingMessage(type) {\n    var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '发布中...';\n    var c = (0, _utils.showLoadingMessage)(msg);\n    if (type === 0) {\n      c();\n    }\n  };\n\n  // 设计器保存/发布\n  var onSave = (0, _react.useCallback)(function () {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    // doMethod(SAVE_NOCODE_DESIGNER)\n    setIsLoading(true);\n    closeLoadingMessage(-1);\n    setSave(Date.now());\n  }, [rootConfig]);\n\n  // 设计器预览\n  var onPreview = (0, _react.useCallback)(function () {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    // doMethod(PREVIEW_NOCODE_DESIGNER)\n    setPreview(Date.now());\n    closeLoadingMessage(-1);\n  }, [rootConfig]);\n  var debounceOnSave = (0, _useDebounce.default)(onSave);\n  var debounceOnPreview = (0, _useDebounce.default)(onPreview);\n\n  // const doMethod = useCallback((methodname, args = []) => {\n  //   const store = window.store.getState().toJS()\n  //   const { rootPageId: pageId } = store\n\n  //   window.spyApi.doPostActions(pageId, INVOKE_CONTROL_METHOD, [{\n  //     methodname,\n  //     key: NOCODE_DESIGNER_KEY,\n  //     args\n  //   }])\n  // }, [])\n\n  // 更新表单名称\n  var updateFormName = (0, _react.useCallback)(function (formName) {\n    // 表单名称不一致的时候才需要修改\n    setFormTitle(formName);\n    _eventEmit.default.emit(_constants.UPDATE_FORMNAME, formName);\n    // doMethod(UPDATE_NOCODE_DESIGNER, [UPDATE_FROMNAME, formNameRef.current])\n  }, [formData]);\n  var showSaveTemplateModal = (0, _react.useCallback)(function () {\n    if (!(0, _utils.isCNLanguage)(rootConfig)) {\n      return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n    }\n    var _ref2 = formData || {},\n      _ref2$name = _ref2.name,\n      name = _ref2$name === void 0 ? '' : _ref2$name,\n      _ref2$image = _ref2.image,\n      icon = _ref2$image === void 0 ? _defaultIcon.DEFAULT_FORM_IMAGE : _ref2$image;\n    dispatchTemplateInfo({\n      visible: true,\n      value: _objectSpread(_objectSpread({}, _SaveTemplateModal.INIT_TEMPLATE_VALUE), {}, {\n        name: name,\n        icon: icon\n      })\n    });\n  }, [dispatchTemplateInfo, formData, rootConfig]);\n\n  // 顶部菜单（快捷键|设计器配置|保存为模板）点击\n  var handleMenuItemClick = (0, _react.useCallback)(function (key) {\n    switch (key) {\n      case 'saveTemplate':\n        showSaveTemplateModal();\n        break;\n      default:\n        break;\n    }\n  }, [showSaveTemplateModal]);\n\n  // 保存模板点击确定\n  var handleSaveTemplateConfirm = (0, _react.useCallback)(function (formData) {\n    setIsLoading(true);\n    closeLoadingMessage(-1, '模板保存中，请稍候...');\n    _eventEmit.default.emit(_constants.SAVE_AS_TEMPLATE, formData);\n  }, []);\n\n  // 顶部链接栏\n  var linkList = [{\n    name: t('designer.key0001'),\n    // 表单设计\n    link: (0, _concat.default)(_context = \"/\".concat(appId, \"/designer/\")).call(_context, targetFormId)\n  },\n  // {\n  //   name: t('designer.key0002'), // 流程设计\n  //   link: `/${appId}/designer/${targetFormId}/processdesign`\n  // },\n  {\n    name: t('designer.key0003'),\n    // 表单设置\n    link: (0, _concat.default)(_context2 = \"/\".concat(appId, \"/designer/\")).call(_context2, targetFormId, \"/formsetting\")\n  }];\n  var handleItemClick = function handleItemClick(key) {\n    if (key === BTN_KEY_SAVE_AND_VISIT) {\n      if (!(0, _utils.isCNLanguage)(rootConfig)) {\n        return (0, _utils.showNotice)('warnning', _constants.LANG_INVALID);\n      }\n      setSaveAndVisit(Date.now());\n      closeLoadingMessage(-1);\n    }\n    // kui在点击菜单项时，onVisibleChange不会触发，这里先临时判断下\n    if (saveMenuVisible) {\n      setSaveMenuVisible(false);\n    }\n  };\n  var saveStatus = (0, _react.useCallback)(function () {\n    closeLoadingMessage(0);\n    setIsLoading(false);\n  }, []);\n  var outletCtxValue = (0, _react.useMemo)(function () {\n    return {\n      settingData: formData === null || formData === void 0 ? void 0 : formData.setting,\n      save: save,\n      saveAndVisit: saveAndVisit,\n      preview: preview,\n      formTitle: formTitle,\n      saveStatus: saveStatus\n    };\n  }, [formData, save, saveAndVisit, preview, formTitle, saveStatus]);\n  var menu = /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, null, /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n    key: BTN_KEY_SAVE_AND_VISIT,\n    \"data-nc-action\": (0, _concat.default)(_context3 = \"\".concat(appId, \"|\")).call(_context3, targetFormId, \"|tb_pa\")\n  }, \"\\u53D1\\u5E03\\u5E76\\u8BBF\\u95EE\"));\n  return /*#__PURE__*/_react.default.createElement(_theme.ThemeContextProvider, {\n    useDefault: true\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.wrapper,\n    ref: wrapperRef\n  }, /*#__PURE__*/_react.default.createElement(_Header.default, {\n    className: _HeaderLayout.default.designer_header\n  }, /*#__PURE__*/_react.default.createElement(_Header.default.Left, {\n    className: _HeaderLayout.default.leftnav\n  }, /*#__PURE__*/_react.default.createElement(_HeaderNavDropDown.default, {\n    appId: appId,\n    formId: targetFormId\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.leftnav_container\n  }, \"\\u914D\\u7F6E\\uFF1A\", /*#__PURE__*/_react.default.createElement(_NocodeLink.default, {\n    to: (0, _concat.default)(_context4 = \"/\".concat(appId, \"/admin/\")).call(_context4, targetFormId),\n    className: _HeaderLayout.default.leftnav_container_appname,\n    \"data-nc-action\": (0, _concat.default)(_context5 = \"\".concat(appId, \"|\")).call(_context5, targetFormId, \"|tb_crumb_fl\")\n  }, formData === null || formData === void 0 || (_formData$app = formData.app) === null || _formData$app === void 0 ? void 0 : _formData$app.name), (formData === null || formData === void 0 || (_formData$app2 = formData.app) === null || _formData$app2 === void 0 ? void 0 : _formData$app2.name) && formTitle && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    type: \"fangxiangyou\"\n  }), /*#__PURE__*/_react.default.createElement(_HeaderFormName.default, {\n    formName: formTitle,\n    updateFormName: updateFormName\n  })))), /*#__PURE__*/_react.default.createElement(_Header.default.Right, {\n    className: _HeaderLayout.default.rightnav\n  }, /*#__PURE__*/_react.default.createElement(_HeaderIconMenu.default, {\n    appId: appId,\n    formId: targetFormId,\n    settingData: formData === null || formData === void 0 ? void 0 : formData.setting,\n    setSettingData: handleSetSettingData,\n    hideText: hideRightNavText,\n    canSaveTemplate: templateEnabled && isAdminUser,\n    handleMenuItemClick: handleMenuItemClick\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    className: _HeaderLayout.default['rightnav-preview'],\n    onClick: debounceOnPreview,\n    \"data-nc-action\": (0, _concat.default)(_context6 = \"\".concat(appId, \"|\")).call(_context6, targetFormId, \"|tb_pv\")\n  }, \"\\u9884\\u89C8\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.btn_group\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    className: _HeaderLayout.default.save_btn,\n    type: \"primary\",\n    loading: isLoading,\n    onClick: debounceOnSave,\n    \"data-nc-action\": (0, _concat.default)(_context7 = \"\".concat(appId, \"|\")).call(_context7, targetFormId, \"|tb_publish\")\n  }, \"\\u53D1\\u5E03\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.seperator\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n    menu: menu,\n    onItemClick: handleItemClick,\n    onVisibleChange: setSaveMenuVisible,\n    popperClassName: _HeaderLayout.default.dropdown_panel\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    className: _HeaderLayout.default.btn_dropdown,\n    type: \"primary\"\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    type: \"arrow-down\",\n    style: {\n      lineHeight: 1\n    },\n    className: (0, _classnames.default)((0, _defineProperty2.default)({}, _HeaderLayout.default.isOpen, saveMenuVisible))\n  })))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _HeaderLayout.default.designer_container\n  }, /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, {\n    context: outletCtxValue\n  })), /*#__PURE__*/_react.default.createElement(_SaveTemplateModal.default, {\n    value: templateInfo.value,\n    visible: templateInfo.visible,\n    setVisible: function setVisible(vi) {\n      return dispatchTemplateInfo({\n        visible: vi\n      });\n    },\n    onConfirm: handleSaveTemplateConfirm,\n    confirmBtnProps: {\n      'data-nc-action': (0, _concat.default)(_context8 = \"\".concat(appId, \"|\")).call(_context8, targetFormId, \"|sft_comf\")\n    }\n  })));\n};\nvar _default = exports[\"default\"] = DesignerHeaderLayout;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/designer/HeaderLayout.jsx\n");

/***/ }),

/***/ "./src/web/layout/designer/PreviewDrawer.jsx":
/*!***************************************************!*\
  !*** ./src/web/layout/designer/PreviewDrawer.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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _FormWrapper = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/FormWrapper */ \"./src/web/component/common/FormWrapper.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _PreviewQRCode = _interopRequireDefault(__webpack_require__(/*! ./PreviewQRCode */ \"./src/web/layout/designer/PreviewQRCode.tsx\"));\nvar _classnames2 = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _PreviewDrawer = _interopRequireDefault(__webpack_require__(/*! ./PreviewDrawer.less */ \"./src/web/layout/designer/PreviewDrawer.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-08-04 17:19:48\n * @LastEditTime: 2023-02-23 14:24:38\n * @Last Modified by: jianhang_he\n */\n\nvar NocodeEntry = (0, _react.lazy)(function () {\n  return Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! bos_core/Main */ \"webpack/container/remote/bos_core/Main\", 23));\n});\n\n/**\n * 设计器预览抽屉\n */\nvar PreviewDrawer = function PreviewDrawer(_ref) {\n  var _context, _context2, _context3, _context4, _context5, _context10, _context11, _context12;\n  var formTitle = _ref.formTitle,\n    device = _ref.device,\n    visible = _ref.visible,\n    setVisible = _ref.setVisible;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    targetFormId = _useParams.targetFormId,\n    appId = _useParams.appId;\n  var _window$location = window.location,\n    pathname = _window$location.pathname,\n    search = _window$location.search,\n    origin = _window$location.origin;\n  var previewUrl = (0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = (0, _concat.default)(_context4 = (0, _concat.default)(_context5 = \"\".concat(window.__domainurl__)).call(_context5, \"nocode\", \"/\")).call(_context4, appId, \"/preview/\")).call(_context3, targetFormId, \"/\")).call(_context2, device)).call(_context, search);\n\n  /**\n   * 访问详情页\n   */\n  var handleClickVisitDetail = function handleClickVisitDetail() {\n    var _context6, _context7, _context8, _context9;\n    // 详情页\n    var detail_url = (0, _concat.default)(_context6 = (0, _concat.default)(_context7 = (0, _concat.default)(_context8 = (0, _concat.default)(_context9 = \"\".concat(window.__domainurl__)).call(_context9, \"nocode\", \"/\")).call(_context8, appId, \"/detail/\")).call(_context7, targetFormId)).call(_context6, search);\n    (0, _utils.openUrl)(detail_url);\n  };\n\n  /**\n   * 访问详情页\n   */\n  var handleClickOpenNewPage = function handleClickOpenNewPage() {\n    (0, _utils.openUrl)(previewUrl);\n  };\n\n  /**\n   *是否移动端\n   */\n  var isMb = (0, _react.useMemo)(function () {\n    return device === 'mobile';\n  }, []);\n  return _reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.previewDrawer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.previewDrawer_header\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.previewDrawer_header_left\n  }, \"\\u9884\\u89C8\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.previewDrawer_header_right\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    prefix: \"nocodeplatformicon\",\n    title: \"\\u5173\\u95ED\\u9884\\u89C8\",\n    type: \"guanbi\",\n    onClick: function onClick() {\n      return setVisible(false);\n    }\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.previewDrawer_body\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames2.default)(_PreviewDrawer.default.previewDrawer_body_main, (0, _defineProperty2.default)({}, _PreviewDrawer.default.mobile, isMb))\n  }, /*#__PURE__*/_react.default.createElement(\"iframe\", {\n    src: previewUrl,\n    frameBorder: \"0\",\n    width: \"100%\"\n  }), isMb && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.previewDrawer_body_main_qrcode\n  }, /*#__PURE__*/_react.default.createElement(_PreviewQRCode.default, {\n    url: (0, _concat.default)(_context10 = (0, _concat.default)(_context11 = (0, _concat.default)(_context12 = \"/\".concat(\"nocode\", \"/\")).call(_context12, appId, \"/preview/\")).call(_context11, targetFormId, \"/\")).call(_context10, device)\n  }))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewDrawer.default.mask,\n    onClick: function onClick() {\n      return setVisible(false);\n    }\n  })), document.body);\n};\nvar _default = exports[\"default\"] = PreviewDrawer;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/layout/designer/PreviewDrawer.jsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\"));\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _QRCode = _interopRequireDefault(__webpack_require__(/*! @/web/component/common/QRCode */ \"./src/web/component/common/QRCode.tsx\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _PreviewQRCode = _interopRequireDefault(__webpack_require__(/*! ./PreviewQRCode.less */ \"./src/web/layout/designer/PreviewQRCode.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-12-13 10:12:11\n * @LastEditTime: 2023-02-23 16:08:46\n * @Last Modified by: jianhang_he\n */\n\n/**\n * 预览二维码\n * @param param0\n * @returns\n */\nvar PreviewQrcode = (0, _react.memo)(function (_ref) {\n  var url = _ref.url,\n    _ref$title = _ref.title,\n    title = _ref$title === void 0 ? '手机扫码预览' : _ref$title;\n  var _useState = (0, _react.useState)(url),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    noLoginUrl = _useState2[0],\n    setNoLoginUrl = _useState2[1]; // 免登录地址（默认是一个需要登录的地址）\n  /**\n   * 获取免登录地址\n   */\n  var queryNoLoginUrl = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var _data$row, data, _data$row2;\n      return _regenerator.default.wrap(function _callee$(_context) {\n        while (1) switch (_context.prev = _context.next) {\n          case 0:\n            _context.prev = 0;\n            _context.next = 3;\n            return (0, _apps.sendShareData)({\n              url: url\n            });\n          case 3:\n            data = _context.sent;\n            if (data !== null && data !== void 0 && (_data$row = data.row) !== null && _data$row !== void 0 && _data$row.url) {\n              setNoLoginUrl(data === null || data === void 0 || (_data$row2 = data.row) === null || _data$row2 === void 0 ? void 0 : _data$row2.url);\n            } else {\n              console.log('获取免登陆地址失败', data === null || data === void 0 ? void 0 : data.row);\n            }\n            _context.next = 10;\n            break;\n          case 7:\n            _context.prev = 7;\n            _context.t0 = _context[\"catch\"](0);\n            console.log('获取免登陆地址失败', _context.t0);\n          case 10:\n          case \"end\":\n            return _context.stop();\n        }\n      }, _callee, null, [[0, 7]]);\n    }));\n    return function queryNoLoginUrl() {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  (0, _react.useEffect)(function () {\n    queryNoLoginUrl();\n  }, []);\n  var fullLink = window.location.origin + (0, _utils.getFullUrl)(noLoginUrl[0] === '/' ? (0, _slice.default)(noLoginUrl).call(noLoginUrl, 1) : noLoginUrl);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewQRCode.default.previewQRcode\n  }, /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _PreviewQRCode.default.previewQRcode_title\n  }, title), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _PreviewQRCode.default.previewQRcode_main\n  }, /*#__PURE__*/_react.default.createElement(_QRCode.default, {\n    value: (0, _utils.getUrlWithDataCenter)(fullLink),\n    size: 148,\n    bgColor: \"#ffffff\",\n    fgColor: \"#000000\"\n  }), /*#__PURE__*/_react.default.createElement(_kdesign.Icon, {\n    className: _PreviewQRCode.default.previewQRcode_main_icon,\n    prefix: \"nocodeplatformicon\",\n    type: \"danju\"\n  })));\n});\nPreviewQrcode.displayName = 'PreviewQrcode';\nvar _default = exports[\"default\"] = PreviewQrcode;//# s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XNzTmFtZT17c3R5bGVzLnByZXZpZXdRUmNvZGVfbWFpbl9pY29ufSBwcmVmaXg9J25vY29kZXBsYXRmb3JtaWNvbicgdHlwZT0nZGFuanUnIC8+XG4gICAgICA8L2Rpdj5cblxuICAgIDwvZGl2PlxuICApXG59KVxuXG5QcmV2aWV3UXJjb2RlLmRpc3BsYXlOYW1lID0gJ1ByZXZpZXdRcmNvZGUnXG5cbmV4cG9ydCBkZWZhdWx0IFByZXZpZXdRcmNvZGVcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/layout/designer/PreviewQRCode.tsx\n");

/***/ }),

/***/ "./src/web/pages/designer/home/DesignerHomePage.jsx":
/*!**********************************************************!*\
  !*** ./src/web/pages/designer/home/DesignerHomePage.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 _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 _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _PreviewDrawer = _interopRequireDefault(__webpack_require__(/*! @/web/layout/designer/PreviewDrawer */ \"./src/web/layout/designer/PreviewDrawer.jsx\"));\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _Main = _interopRequireDefault(__webpack_require__(/*! bos_core/Main */ \"webpack/container/remote/bos_core/Main\"));\nvar _DesignerHomePage = _interopRequireDefault(__webpack_require__(/*! ./DesignerHomePage.less */ \"./src/web/pages/designer/home/DesignerHomePage.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _eventEmit = _interopRequireDefault(__webpack_require__(/*! @/utils/eventEmit */ \"./src/utils/eventEmit.js\"));\nvar _useAppContext3 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _DesignerSkeleton = __webpack_require__(/*! @/web/component/skeleton/DesignerSkeleton */ \"./src/web/component/skeleton/DesignerSkeleton.ts\");\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; }\n/*\n * @Description: 无代码设计器页面\n * @Author: jianhang_he\n * @Date: 2022-08-05 14:06:42\n * @LastEditTime: 2023-10-17 15:19:55\n * @Last Modified by: jianhang_he\n */\n\n// const NocodeDesignerEntry = React.lazy(() => import('bos_platform/NocodeEntry'))\n// const NocodeDesignerEntry = React.lazy(() => import('bos_core/Main'))\n\n// 默认设计器表单id，这个不会存在两个的，因此先写死\nvar DEFULT_FORM_ID = 'bos_nocode_formdesign';\nvar NocodeEntryMemo = (0, _react.memo)(function (props) {\n  var _state$rootConfig;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    targetFormId = _useParams.targetFormId;\n  var _useAppContext = (0, _useAppContext3.default)(),\n    state = _useAppContext.state;\n  if (!(state !== null && state !== void 0 && (_state$rootConfig = state.rootConfig) !== null && _state$rootConfig !== void 0 && _state$rootConfig.pageId)) return null;\n  return /*#__PURE__*/_react.default.createElement(_react.Suspense, {\n    fallback: /*#__PURE__*/_react.default.createElement(\"div\", null)\n  }, /*#__PURE__*/_react.default.createElement(_Main.default, (0, _extends2.default)({\n    config: {\n      formId: DEFULT_FORM_ID,\n      targetFormId: targetFormId,\n      rootPageId: state.rootConfig.pageId\n    }\n  }, props)));\n});\nvar DesignerHomePage = function DesignerHomePage(props) {\n  var context = (0, _reactRouterDom.useOutletContext)();\n  var settingData = context.settingData,\n    save = context.save,\n    saveAndVisit = context.saveAndVisit,\n    preview = context.preview,\n    formTitle = context.formTitle,\n    saveStatus = context.saveStatus;\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)('pc'),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    device = _useState4[0],\n    setDevice = _useState4[1];\n  // const [newPageUrl, setNewPageUrl] = useState('')\n  var _useAppContext2 = (0, _useAppContext3.default)(),\n    state = _useAppContext2.state;\n  var _state$compareTypes = state.compareTypes,\n    compareTypes = _state$compareTypes === void 0 ? {} : _state$compareTypes,\n    rootConfig = state.rootConfig;\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    isMountDesigner = _useState6[0],\n    setIsMountDesigner = _useState6[1];\n  var _useState7 = (0, _react.useState)(),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    bosApi = _useState8[0],\n    onBosApi = _useState8[1];\n  (0, _react.useEffect)(function () {\n    console.log('designerhomepage', bosApi);\n    if (bosApi) {\n      bosApi.addEventListener(_constants.NOCODE_DESIGNER_PREVIEW_DEVICE, showPreviewDrawer);\n      bosApi.addEventListener(_constants.DESIGNER_MOUNT, updateDesignerMountFlag);\n      var updateFormTitle = function updateFormTitle(formTitle) {\n        bosApi === null || bosApi === void 0 || bosApi.publishEvent(_constants.NOCODE_DESIGNER_UPDATE, {\n          type: _constants.UPDATE_FORMNAME,\n          payload: formTitle\n        });\n      };\n      var saveAsTemplate = function saveAsTemplate(payload) {\n        bosApi === null || bosApi === void 0 || bosApi.publishEvent(_constants.NOCODE_DESIGNER_UPDATE, {\n          type: _constants.SAVE_AS_TEMPLATE,\n          payload: payload\n        });\n      };\n      _eventEmit.default.on(_constants.UPDATE_FORMNAME, updateFormTitle);\n      _eventEmit.default.on(_constants.SAVE_AS_TEMPLATE, saveAsTemplate);\n      return function () {\n        _eventEmit.default.off(_constants.UPDATE_FORMNAME, updateFormTitle);\n        _eventEmit.default.off(_constants.SAVE_AS_TEMPLATE, saveAsTemplate);\n      };\n    }\n  }, [bosApi]);\n  // 同步设置数据\n  (0, _react.useEffect)(function () {\n    if (settingData) bosApi === null || bosApi === void 0 || bosApi.publishEvent(_constants.NOCODE_DESIGNER_SETTING, settingData, true);\n  }, [settingData, bosApi]);\n  // 点击预览\n  (0, _react.useEffect)(function () {\n    preview && (bosApi === null || bosApi === void 0 ? void 0 : bosApi.publishEvent(_constants.NOCODE_DESIGNER_PREVIEW, preview));\n  }, [preview]);\n  // 点击保存\n  (0, _react.useEffect)(function () {\n    // console.log('save', save)\n    save && (bosApi === null || bosApi === void 0 ? void 0 : bosApi.publishEvent(_constants.NOCODE_DESIGNER_SAVE, save));\n  }, [save]);\n  // 发布并访问\n  (0, _react.useEffect)(function () {\n    saveAndVisit && (bosApi === null || bosApi === void 0 ? void 0 : bosApi.publishEvent(_constants.NOCODE_DESIGNER_SAVE_AND_VISIT, saveAndVisit));\n  }, [saveAndVisit]);\n  (0, _react.useEffect)(function () {\n    if (bosApi) {\n      bosApi === null || bosApi === void 0 || bosApi.publishEvent(_constants.SET_COMPARE_TYPES, compareTypes, true);\n    }\n  }, [compareTypes, bosApi]);\n  (0, _react.useEffect)(function () {\n    if (bosApi) {\n      bosApi.publishEvent(_constants.SET_NOCODE_PLATFORM_API, {\n        publishUserEvent: _PageEventService.publishUserEvent\n      }, true);\n    }\n  }, [bosApi]);\n  (0, _react.useEffect)(function () {\n    if (bosApi) {\n      bosApi.publishEvent(_constants.NOCODE_DESIGNER_SAVE_API, {\n        saveStatus: saveStatus\n      }, true);\n    }\n  }, [saveStatus, bosApi]);\n  var updateDesignerMountFlag = (0, _react.useCallback)(function () {\n    setIsMountDesigner(true);\n  }, []);\n\n  /**\n   * @description 显示预览抽屉\n   * @param {string[]} args 预览指令返回来的参数\n   */\n  var showPreviewDrawer = (0, _react.useCallback)(function (device) {\n    // if (args?.[0]) {\n    //   setNewPageUrl(args[0])\n    // }\n    setDevice(device);\n    setVisible(true);\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)((0, _defineProperty2.default)({}, _DesignerHomePage.default.hidden, !isMountDesigner), _DesignerHomePage.default.designer_main)\n  }, /*#__PURE__*/_react.default.createElement(NocodeEntryMemo, (0, _extends2.default)({\n    onRef: onBosApi,\n    showPreviewDrawer: showPreviewDrawer,\n    options: {\n      rootConfig: rootConfig\n    }\n  }, context)), visible && /*#__PURE__*/_react.default.createElement(_PreviewDrawer.default, {\n    formTitle: formTitle,\n    device: device,\n    visible: visible,\n    setVisible: setVisible\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)([_DesignerHomePage.default.loading_wrapper, (0, _defineProperty2.default)({}, _DesignerHomePage.default.hidden, isMountDesigner)])\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Skeleton, {\n    options: _DesignerSkeleton.DesignerSkeleton\n  })));\n};\nvar _default = exports[\"default\"] = DesignerHomePage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/pages/designer/home/DesignerHomePage.jsx\n");

/***/ })

}]);