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

/***/ "./src/mobile/component/common/FooterBtns.less":
/*!*****************************************************!*\
  !*** ./src/mobile/component/common/FooterBtns.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\"] = ({\"footerbtns\":\"P4JiD7Lg_footerbtns\",\"button\":\"KSTYsSPi_button\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vRm9vdGVyQnRucy5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL21vYmlsZS9jb21wb25lbnQvY29tbW9uL0Zvb3RlckJ0bnMubGVzcz9iZjg0Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wiZm9vdGVyYnRuc1wiOlwiUDRKaUQ3TGdfZm9vdGVyYnRuc1wiLFwiYnV0dG9uXCI6XCJLU1RZc1NQaV9idXR0b25cIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/mobile/component/common/FooterBtns.less\n");

/***/ }),

/***/ "./src/mobile/component/common/Modal.less":
/*!************************************************!*\
  !*** ./src/mobile/component/common/Modal.less ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"modal\":\"ZL0DkNTK_modal\",\"modal_content\":\"wAB3h9mZ_modal_content\",\"model_abs\":\"mHqH2Si5_model_abs\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vTW9kYWwubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9tb2JpbGUvY29tcG9uZW50L2NvbW1vbi9Nb2RhbC5sZXNzPzk1NTMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJtb2RhbFwiOlwiWkwwRGtOVEtfbW9kYWxcIixcIm1vZGFsX2NvbnRlbnRcIjpcIndBQjNoOW1aX21vZGFsX2NvbnRlbnRcIixcIm1vZGVsX2Fic1wiOlwibUhxSDJTaTVfbW9kZWxfYWJzXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/mobile/component/common/Modal.less\n");

/***/ }),

/***/ "./src/mobile/component/common/ShareButton.less":
/*!******************************************************!*\
  !*** ./src/mobile/component/common/ShareButton.less ***!
  \******************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"share_button\":\"DHzbpUGb_share_button\",\"with_background_img\":\"hxraoRYV_with_background_img\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vU2hhcmVCdXR0b24ubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9tb2JpbGUvY29tcG9uZW50L2NvbW1vbi9TaGFyZUJ1dHRvbi5sZXNzPzVjMmEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJzaGFyZV9idXR0b25cIjpcIkRIemJwVUdiX3NoYXJlX2J1dHRvblwiLFwid2l0aF9iYWNrZ3JvdW5kX2ltZ1wiOlwiaHhyYW9SWVZfd2l0aF9iYWNrZ3JvdW5kX2ltZ1wifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/mobile/component/common/ShareButton.less\n");

/***/ }),

/***/ "./src/mobile/component/common/ShareModal.less":
/*!*****************************************************!*\
  !*** ./src/mobile/component/common/ShareModal.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\"] = ({\"shareModal\":\"x7UMSaHx_shareModal\",\"shareModal_body\":\"YAT8e0Zi_shareModal_body\",\"fieldItem\":\"GZqdIVpL_fieldItem\",\"radio\":\"CNfkRPgV_radio\",\"datePicker\":\"_1ydgkl+X_datePicker\",\"content\":\"f+4DeF24_content\",\"header\":\"u1njDPh-_header\",\"backgroundImg\":\"lj8bPiCR_backgroundImg\",\"QRCodeBox\":\"XpcL6+oX_QRCodeBox\",\"appInfo\":\"QRz66C7h_appInfo\",\"appImg\":\"+dFIXB+H_appImg\",\"appDesc\":\"aGr1uZlL_appDesc\",\"appName\":\"_3GMznPQf_appName\",\"helpWords\":\"WZbj8hM0_helpWords\",\"bottom_toobar\":\"TCLc9o1W_bottom_toobar\",\"shareItems_box\":\"ZciSo0Q0_shareItems_box\",\"shareItem\":\"_4jT5ay24_shareItem\",\"iconBox\":\"_5shteH1h_iconBox\",\"icon\":\"q5A2e7Fv_icon\",\"share_text\":\"_39DpVkUF_share_text\",\"toobar_cancel\":\"_8c4S6HCQ_toobar_cancel\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vU2hhcmVNb2RhbC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL21vYmlsZS9jb21wb25lbnQvY29tbW9uL1NoYXJlTW9kYWwubGVzcz9lOTZmIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wic2hhcmVNb2RhbFwiOlwieDdVTVNhSHhfc2hhcmVNb2RhbFwiLFwic2hhcmVNb2RhbF9ib2R5XCI6XCJZQVQ4ZTBaaV9zaGFyZU1vZGFsX2JvZHlcIixcImZpZWxkSXRlbVwiOlwiR1pxZElWcExfZmllbGRJdGVtXCIsXCJyYWRpb1wiOlwiQ05ma1JQZ1ZfcmFkaW9cIixcImRhdGVQaWNrZXJcIjpcIl8xeWRna2wrWF9kYXRlUGlja2VyXCIsXCJjb250ZW50XCI6XCJmKzREZUYyNF9jb250ZW50XCIsXCJoZWFkZXJcIjpcInUxbmpEUGgtX2hlYWRlclwiLFwiYmFja2dyb3VuZEltZ1wiOlwibGo4YlBpQ1JfYmFja2dyb3VuZEltZ1wiLFwiUVJDb2RlQm94XCI6XCJYcGNMNitvWF9RUkNvZGVCb3hcIixcImFwcEluZm9cIjpcIlFSejY2QzdoX2FwcEluZm9cIixcImFwcEltZ1wiOlwiK2RGSVhCK0hfYXBwSW1nXCIsXCJhcHBEZXNjXCI6XCJhR3IxdVpsTF9hcHBEZXNjXCIsXCJhcHBOYW1lXCI6XCJfM0dNem5QUWZfYXBwTmFtZVwiLFwiaGVscFdvcmRzXCI6XCJXWmJqOGhNMF9oZWxwV29yZHNcIixcImJvdHRvbV90b29iYXJcIjpcIlRDTGM5bzFXX2JvdHRvbV90b29iYXJcIixcInNoYXJlSXRlbXNfYm94XCI6XCJaY2lTbzBRMF9zaGFyZUl0ZW1zX2JveFwiLFwic2hhcmVJdGVtXCI6XCJfNGpUNWF5MjRfc2hhcmVJdGVtXCIsXCJpY29uQm94XCI6XCJfNXNodGVIMWhfaWNvbkJveFwiLFwiaWNvblwiOlwicTVBMmU3RnZfaWNvblwiLFwic2hhcmVfdGV4dFwiOlwiXzM5RHBWa1VGX3NoYXJlX3RleHRcIixcInRvb2Jhcl9jYW5jZWxcIjpcIl84YzRTNkhDUV90b29iYXJfY2FuY2VsXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/mobile/component/common/ShareModal.less\n");

/***/ }),

/***/ "./src/mobile/layout/apps/detail/FlowPopLayout.less":
/*!**********************************************************!*\
  !*** ./src/mobile/layout/apps/detail/FlowPopLayout.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\"] = ({\"flow_pop\":\"rgzi6rPV_flow_pop\",\"process_item\":\"t0P75obP_process_item\",\"tag\":\"-w7GUqea_tag\",\"success\":\"rn9zLWin_success\",\"error\":\"xTl3lHIg_error\",\"warning\":\"ucWNRW4V_warning\",\"going\":\"LuDWXsMN_going\",\"reject\":\"YWgJILMn_reject\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2xheW91dC9hcHBzL2RldGFpbC9GbG93UG9wTGF5b3V0Lmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvbW9iaWxlL2xheW91dC9hcHBzL2RldGFpbC9GbG93UG9wTGF5b3V0Lmxlc3M/ZTAwMyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImZsb3dfcG9wXCI6XCJyZ3ppNnJQVl9mbG93X3BvcFwiLFwicHJvY2Vzc19pdGVtXCI6XCJ0MFA3NW9iUF9wcm9jZXNzX2l0ZW1cIixcInRhZ1wiOlwiLXc3R1VxZWFfdGFnXCIsXCJzdWNjZXNzXCI6XCJybjl6TFdpbl9zdWNjZXNzXCIsXCJlcnJvclwiOlwieFRsM2xISWdfZXJyb3JcIixcIndhcm5pbmdcIjpcInVjV05SVzRWX3dhcm5pbmdcIixcImdvaW5nXCI6XCJMdURXWHNNTl9nb2luZ1wiLFwicmVqZWN0XCI6XCJZV2dKSUxNbl9yZWplY3RcIn07Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/mobile/layout/apps/detail/FlowPopLayout.less\n");

/***/ }),

/***/ "./src/mobile/layout/apps/detail/MobileFormDetailFooter.less":
/*!*******************************************************************!*\
  !*** ./src/mobile/layout/apps/detail/MobileFormDetailFooter.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\"] = ({\"footer\":\"XQatMAc8_footer\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2xheW91dC9hcHBzL2RldGFpbC9Nb2JpbGVGb3JtRGV0YWlsRm9vdGVyLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvbW9iaWxlL2xheW91dC9hcHBzL2RldGFpbC9Nb2JpbGVGb3JtRGV0YWlsRm9vdGVyLmxlc3M/ZDAyZSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcImZvb3RlclwiOlwiWFFhdE1BYzhfZm9vdGVyXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/mobile/layout/apps/detail/MobileFormDetailFooter.less\n");

/***/ }),

/***/ "./src/mobile/pages/apps/detail/MobileDetailPage.less":
/*!************************************************************!*\
  !*** ./src/mobile/pages/apps/detail/MobileDetailPage.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\"] = ({\"flow_btn\":\"ow7EE-RU_flow_btn\",\"container\":\"T+o-EPHA_container\",\"title\":\"M7bNehME_title\",\"main\":\"uONZ4Sr7_main\",\"shareButton\":\"vOsy-7UN_shareButton\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL3BhZ2VzL2FwcHMvZGV0YWlsL01vYmlsZURldGFpbFBhZ2UubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9tb2JpbGUvcGFnZXMvYXBwcy9kZXRhaWwvTW9iaWxlRGV0YWlsUGFnZS5sZXNzPzA2MDEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJmbG93X2J0blwiOlwib3c3RUUtUlVfZmxvd19idG5cIixcImNvbnRhaW5lclwiOlwiVCtvLUVQSEFfY29udGFpbmVyXCIsXCJ0aXRsZVwiOlwiTTdiTmVoTUVfdGl0bGVcIixcIm1haW5cIjpcInVPTlo0U3I3X21haW5cIixcInNoYXJlQnV0dG9uXCI6XCJ2T3N5LTdVTl9zaGFyZUJ1dHRvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/mobile/pages/apps/detail/MobileDetailPage.less\n");

/***/ }),

/***/ "./src/mobile/pages/apps/detail/MobileDetailTurnPage.less":
/*!****************************************************************!*\
  !*** ./src/mobile/pages/apps/detail/MobileDetailTurnPage.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\"] = ({\"turnpage\":\"MFLFqEHz_turnpage\",\"turnpage_btn\":\"D3yGHU7a_turnpage_btn\",\"turnpage_btn_icon\":\"bmmadA6y_turnpage_btn_icon\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL3BhZ2VzL2FwcHMvZGV0YWlsL01vYmlsZURldGFpbFR1cm5QYWdlLmxlc3MiLCJtYXBwaW5ncyI6IjtBQUFBO0FBQ0EiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvbW9iaWxlL3BhZ2VzL2FwcHMvZGV0YWlsL01vYmlsZURldGFpbFR1cm5QYWdlLmxlc3M/MGU3OCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCBkZWZhdWx0IHtcInR1cm5wYWdlXCI6XCJNRkxGcUVIel90dXJucGFnZVwiLFwidHVybnBhZ2VfYnRuXCI6XCJEM3lHSFU3YV90dXJucGFnZV9idG5cIixcInR1cm5wYWdlX2J0bl9pY29uXCI6XCJibW1hZEE2eV90dXJucGFnZV9idG5faWNvblwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/mobile/pages/apps/detail/MobileDetailTurnPage.less\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _react = _interopRequireDefault(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _FooterBtns = _interopRequireDefault(__webpack_require__(/*! ./FooterBtns.less */ \"./src/mobile/component/common/FooterBtns.less\"));\nvar _kdesignm = __webpack_require__(/*! kd_libs/kdesignm1 */ \"webpack/container/remote/kd_libs/kdesignm1\");\nvar FooterBtns = function FooterBtns(props) {\n  var className = props.className,\n    btns = props.btns;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)(_FooterBtns.default.footerbtns, className)\n  }, (0, _map.default)(btns).call(btns, function (item, index) {\n    var text = item.text,\n      handleClick = item.handleClick;\n    return /*#__PURE__*/_react.default.createElement(_kdesignm.Button, {\n      className: _FooterBtns.default.button,\n      onClick: handleClick,\n      type: index < btns.length - 1 ? 'second' : 'primary'\n    }, text);\n  }));\n};\nvar _default = exports[\"default\"] = FooterBtns;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vRm9vdGVyQnRucy50c3giLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFXQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQUE7QUFHQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBSUE7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9tb2JpbGUvY29tcG9uZW50L2NvbW1vbi9Gb290ZXJCdG5zLnRzeD9mOTNhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCdcbmltcG9ydCBjbGFzc05hbWVzIGZyb20gJ2NsYXNzbmFtZXMnXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vRm9vdGVyQnRucy5sZXNzJ1xuaW1wb3J0IHsgQnV0dG9uIH0gZnJvbSAna2Rlc2lnbi1tb2JpbGUnXG5cbmludGVyZmFjZSBCdG5UeXBlIHtcbiAgdGV4dDogc3RyaW5nLFxuICBoYW5kbGVDbGljazogKCkgPT4gdm9pZFxufVxuXG5pbnRlcmZhY2UgRm9vdGVyVHlwZSB7XG4gIGNsYXNzTmFtZT86IHN0cmluZyxcbiAgYnRuczogQXJyYXk8QnRuVHlwZT5cbn1cbmNvbnN0IEZvb3RlckJ0bnM6IFJlYWN0LkZDPEZvb3RlclR5cGU+ID0gKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBidG5zIH0gPSBwcm9wc1xuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtjbGFzc05hbWVzKHN0eWxlcy5mb290ZXJidG5zLCBjbGFzc05hbWUpfT5cbiAgICAgIHtcbiAgICAgICAgYnRucy5tYXAoIChpdGVtLCBpbmRleCkgPT4ge1xuICAgICAgICAgIGNvbnN0IHsgdGV4dCwgaGFuZGxlQ2xpY2sgfSA9IGl0ZW1cbiAgICAgICAgICByZXR1cm4gPEJ1dHRvbiBjbGFzc05hbWU9e3N0eWxlcy5idXR0b259IG9uQ2xpY2s9e2hhbmRsZUNsaWNrfSB0eXBlPXtpbmRleCA8IGJ0bnMubGVuZ3RoIC0gMSA/ICdzZWNvbmQnIDogJ3ByaW1hcnknfT57dGV4dH08L0J1dHRvbj5cbiAgICAgICAgfSlcbiAgICAgIH1cbiAgICA8L2Rpdj5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBGb290ZXJCdG5zIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/mobile/component/common/FooterBtns.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactDom = _interopRequireDefault(__webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\"));\nvar _kdesignm = __webpack_require__(/*! kd_libs/kdesignm1 */ \"webpack/container/remote/kd_libs/kdesignm1\");\nvar _Modal = _interopRequireDefault(__webpack_require__(/*! ./Modal.less */ \"./src/mobile/component/common/Modal.less\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n* 移动端-空白模态框\n*/\n\nvar Modal = function Modal(props) {\n  var visible = props.visible,\n    setVisible = props.setVisible,\n    _props$mask = props.mask,\n    mask = _props$mask === void 0 ? true : _props$mask,\n    width = props.width,\n    height = props.height,\n    top = props.top,\n    handleMaskClick = props.handleMaskClick,\n    children = props.children;\n  var handleClick = (0, _react.useCallback)(function () {\n    setVisible && setVisible(false);\n    handleMaskClick && handleMaskClick();\n  }, [handleMaskClick]);\n  return visible ? _reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _Modal.default.modal\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _Modal.default.modal_content, true), _Modal.default.model_abs, Boolean(top))),\n    style: {\n      width: width,\n      height: height,\n      top: top\n    }\n  }, children), /*#__PURE__*/_react.default.createElement(_kdesignm.Mask, {\n    visible: mask,\n    onMaskClick: handleClick\n  })), document.body) : null;\n};\nvar _default = exports[\"default\"] = Modal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vTW9kYWwudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBOztBQVdBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUdBO0FBQUE7QUFBQTtBQUtBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vTW9kYWwudHN4P2QxNDIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IFJlYWN0RE9NIGZyb20gJ3JlYWN0LWRvbSdcbmltcG9ydCB7IE1hc2sgfSBmcm9tICdrZGVzaWduLW1vYmlsZSdcbmltcG9ydCBzdHlsZXMgZnJvbSAnLi9Nb2RhbC5sZXNzJ1xuaW1wb3J0IGNsYXNzTmFtZXMgZnJvbSAnY2xhc3NuYW1lcydcbi8qXG4qIOenu+WKqOerry3nqbrnmb3mqKHmgIHmoYZcbiovXG5pbnRlcmZhY2UgTW9kYWxUeXBlIHtcbiAgdmlzaWJsZTogYm9vbGVhbixcbiAgc2V0VmlzaWJsZTogKHY6IGJvb2xlYW4pID0+IHZvaWQsXG4gIG1hc2s/OiBib29sZWFuLCAvLyDmmK/lkKbluKbpga7nvalcbiAgaGVpZ2h0PzogbnVtYmVyLFxuICB3aWR0aD86IG51bWJlcixcbiAgdG9wPzogbnVtYmVyLCAvLyDot53pobbpq5jluqbvvIzkuI3kvKDliJnpu5jorqTlsYXkuK3luIPlsYBcbiAgaGFuZGxlTWFza0NsaWNrPzogKCkgPT4gdm9pZCxcbiAgY2hpbGRyZW46IFJlYWN0LlJlYWN0Tm9kZSAvLyDkuLvkvZPlhoXlrrnvvIzmj5Lmp73lvI/lhpnlhaVcbn1cbmNvbnN0IE1vZGFsOiBSZWFjdC5GQzxNb2RhbFR5cGU+ID0gKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgdmlzaWJsZSwgc2V0VmlzaWJsZSwgbWFzayA9IHRydWUsIHdpZHRoLCBoZWlnaHQsIHRvcCwgaGFuZGxlTWFza0NsaWNrLCBjaGlsZHJlbiB9ID0gcHJvcHNcbiAgY29uc3QgaGFuZGxlQ2xpY2sgPSB1c2VDYWxsYmFjaygoKSA9PiB7XG4gICAgc2V0VmlzaWJsZSAmJiBzZXRWaXNpYmxlKGZhbHNlKVxuICAgIGhhbmRsZU1hc2tDbGljayAmJiBoYW5kbGVNYXNrQ2xpY2soKVxuICB9LCBbaGFuZGxlTWFza0NsaWNrXSlcbiAgcmV0dXJuIChcbiAgICB2aXNpYmxlID8gUmVhY3RET00uY3JlYXRlUG9ydGFsKFxuICAgICAgPGRpdiBjbGFzc05hbWU9e3N0eWxlcy5tb2RhbH0+XG4gICAgICAgIDxkaXYgY2xhc3NOYW1lPXtjbGFzc05hbWVzKHtbc3R5bGVzLm1vZGFsX2NvbnRlbnRdOiB0cnVlLCBbc3R5bGVzLm1vZGVsX2Fic106IEJvb2xlYW4odG9wKX0pfSBzdHlsZT17eyB3aWR0aCwgaGVpZ2h0LCB0b3AgfX0+XG4gICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPE1hc2sgdmlzaWJsZT17bWFza30gb25NYXNrQ2xpY2s9e2hhbmRsZUNsaWNrfSAvPlxuICAgICAgPC9kaXY+XG4gICAgICAsIGRvY3VtZW50LmJvZHkpXG4gICAgOiBudWxsXG4gIClcbn1cblxuZXhwb3J0IGRlZmF1bHQgTW9kYWwiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/mobile/component/common/Modal.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _reactI18next = __webpack_require__(/*! react-i18next */ \"../../node_modules/react-i18next/dist/es/index.js\");\nvar _ShareButton = _interopRequireDefault(__webpack_require__(/*! ./ShareButton.less */ \"./src/mobile/component/common/ShareButton.less\"));\nvar _ShareModal = _interopRequireDefault(__webpack_require__(/*! ./ShareModal */ \"./src/mobile/component/common/ShareModal.tsx\"));\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar ShareButton = function ShareButton(props) {\n  var _context;\n  var style = props.style,\n    className = props.className,\n    withCustomBg = props.withCustomBg,\n    shareReqireLogin = props.shareReqireLogin,\n    shareNotReqireLogin = props.shareNotReqireLogin,\n    config = props.config;\n  var appId = config.appId,\n    targetFormId = config.targetFormId;\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    visible = _useState2[0],\n    setVisible = _useState2[1];\n  var _useTranslation = (0, _reactI18next.useTranslation)(),\n    translate = _useTranslation.t;\n  var handleClickShare = (0, _react.useCallback)(function () {\n    setVisible(true);\n  }, []);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"text\",\n    \"data-nc-action\": (0, _concat.default)(_context = \"\".concat(appId, \"|\")).call(_context, targetFormId, \"|m_fu_tb_share\"),\n    style: style,\n    onClick: handleClickShare,\n    className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, className, true), _ShareButton.default.share_button, true), _ShareButton.default.with_background_img, withCustomBg)),\n    text: translate('apps.share'),\n    icon: {\n      prefix: 'nocodeplatformicon',\n      type: 'fenxiang'\n    }\n  }), /*#__PURE__*/_react.default.createElement(_ShareModal.default, (0, _extends2.default)({\n    visible: visible,\n    setVisible: setVisible,\n    shareReqireLogin: shareReqireLogin,\n    shareNotReqireLogin: shareNotReqireLogin\n  }, props)));\n};\nvar _default = exports[\"default\"] = ShareButton;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2NvbXBvbmVudC9jb21tb24vU2hhcmVCdXR0b24udHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFnQkE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBS0E7QUFBQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy9tb2JpbGUvY29tcG9uZW50L2NvbW1vbi9TaGFyZUJ1dHRvbi50c3g/Y2JmNCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgdXNlQ2FsbGJhY2ssIHVzZUVmZmVjdCwgdXNlU3RhdGUsIG1lbW8sIHVzZVJlZiwgdXNlTWVtbyB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tICdyZWFjdC1pMThuZXh0J1xuaW1wb3J0IHN0eWxlcyBmcm9tICcuL1NoYXJlQnV0dG9uLmxlc3MnXG5pbXBvcnQgU2hhcmVNb2RhbCBmcm9tICcuL1NoYXJlTW9kYWwnXG5pbXBvcnQgeyBCdG5GaWVsZCBhcyBCdXR0b24gfSBmcm9tICdub2NvZGVfY29tcG9uZW50L1dlYlVJJ1xuaW1wb3J0IGNsYXNzTmFtZXMgZnJvbSAnY2xhc3NuYW1lcydcbmludGVyZmFjZSBTaGFyZUJ1dHRvblR5cGUge1xuICB0b3A6IG51bWJlclxuICBzdHlsZT86IHt9XG4gIGNvbmZpZz86IGFueVxuICBjbGFzc05hbWU/OiBzdHJpbmdcbiAgc2hhcmVUaXRsZTogc3RyaW5nXG4gIG5lZWRMb2dpbkxpbms6IHN0cmluZ1xuICBzaGFyZUJ5UGVvcGxlOiBzdHJpbmdcbiAgc2hhcmVBcHBJbWFnZTogc3RyaW5nXG4gIGJhY2tncm91bmRJbWc6IHN0cmluZ1xuICBoYXNOb0xvZ2luZ1NldHRpbmc6IGJvb2xlYW5cbiAgdGFyZ2V0Rm9ybUlkOiBzdHJpbmdcbiAgd2l0aEN1c3RvbUJnOiBib29sZWFuXG59XG5cbmNvbnN0IFNoYXJlQnV0dG9uOiBSZWFjdC5GQzxTaGFyZUJ1dHRvblR5cGU+ID0gKHByb3BzKSA9PiB7XG4gIGNvbnN0IHsgc3R5bGUsIGNsYXNzTmFtZSwgd2l0aEN1c3RvbUJnLCBzaGFyZVJlcWlyZUxvZ2luLCBzaGFyZU5vdFJlcWlyZUxvZ2luLCBjb25maWcgfSA9IHByb3BzXG4gIGNvbnN0IHthcHBJZCwgdGFyZ2V0Rm9ybUlkfSA9IGNvbmZpZ1xuICBjb25zdCBbdmlzaWJsZSwgc2V0VmlzaWJsZV0gPSB1c2VTdGF0ZShmYWxzZSlcbiAgY29uc3QgeyB0OiB0cmFuc2xhdGUgfSA9IHVzZVRyYW5zbGF0aW9uKClcbiAgY29uc3QgaGFuZGxlQ2xpY2tTaGFyZSA9IHVzZUNhbGxiYWNrKCgpID0+IHtcbiAgICBzZXRWaXNpYmxlKHRydWUpXG4gIH0sIFtdKVxuICByZXR1cm4gKFxuICAgIDw+XG4gICAgICA8QnV0dG9uIHR5cGU9J3RleHQnIGRhdGEtbmMtYWN0aW9uPXtgJHthcHBJZH18JHt0YXJnZXRGb3JtSWR9fG1fZnVfdGJfc2hhcmVgfSBzdHlsZT17c3R5bGV9IG9uQ2xpY2s9e2hhbmRsZUNsaWNrU2hhcmV9IGNsYXNzTmFtZT17Y2xhc3NOYW1lcyh7W2NsYXNzTmFtZV06IHRydWUsIFtzdHlsZXMuc2hhcmVfYnV0dG9uXTogdHJ1ZSwgW3N0eWxlcy53aXRoX2JhY2tncm91bmRfaW1nXTogd2l0aEN1c3RvbUJnfSl9IHRleHQ9e3RyYW5zbGF0ZSgnYXBwcy5zaGFyZScpfSBpY29uPXt7IHByZWZpeDogJ25vY29kZXBsYXRmb3JtaWNvbicsIHR5cGU6ICdmZW54aWFuZycgfX0+PC9CdXR0b24+XG4gICAgICA8U2hhcmVNb2RhbFxuICAgICAgICB2aXNpYmxlPXt2aXNpYmxlfVxuICAgICAgICBzZXRWaXNpYmxlPXtzZXRWaXNpYmxlfVxuICAgICAgICBzaGFyZVJlcWlyZUxvZ2luPXtzaGFyZVJlcWlyZUxvZ2lufVxuICAgICAgICBzaGFyZU5vdFJlcWlyZUxvZ2luPXtzaGFyZU5vdFJlcWlyZUxvZ2lufVxuICAgICAgICB7Li4ucHJvcHN9XG4gICAgICAvPlxuICAgIDwvPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFNoYXJlQnV0dG9uXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/mobile/component/common/ShareButton.tsx\n");

/***/ }),

/***/ "./src/mobile/component/common/ShareModal.tsx":
/*!****************************************************!*\
  !*** ./src/mobile/component/common/ShareModal.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\"] = exports.ShareContentModal = exports.BottomToolBar = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\"));\nvar _replaceAll = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _ShareModal = _interopRequireDefault(__webpack_require__(/*! ./ShareModal.less */ \"./src/mobile/component/common/ShareModal.less\"));\nvar _kdesignm = __webpack_require__(/*! kd_libs/kdesignm1 */ \"webpack/container/remote/kd_libs/kdesignm1\");\nvar _MobUI = __webpack_require__(/*! nocode_component/MobUI */ \"webpack/container/remote/nocode_component/MobUI\");\nvar _FooterBtns = _interopRequireDefault(__webpack_require__(/*! @/mobile/component/common/FooterBtns */ \"./src/mobile/component/common/FooterBtns.tsx\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _Modal = _interopRequireDefault(__webpack_require__(/*! @/mobile/component/common/Modal */ \"./src/mobile/component/common/Modal.tsx\"));\nvar _qrcode = _interopRequireDefault(__webpack_require__(/*! qrcode.react */ \"../../node_modules/qrcode.react/lib/esm/index.js\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _htmlToCanvas = __webpack_require__(/*! @/utils/htmlToCanvas */ \"./src/utils/htmlToCanvas.ts\");\nvar _ShareModal2 = __webpack_require__(/*! @/web/component/common/ShareModal */ \"./src/web/component/common/ShareModal.tsx\");\nvar _clipboardUtil = __webpack_require__(/*! @/utils/clipboardUtil */ \"./src/utils/clipboardUtil.js\");\nvar _share_default_bg = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/share_default_bg.png */ \"./assets/img/share_default_bg.png\"));\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _crypto = __webpack_require__(/*! @/utils/crypto */ \"./src/utils/crypto.ts\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar ShareContentModal = exports.ShareContentModal = function ShareContentModal(props) {\n  var _props$appName = props.appName,\n    appName = _props$appName === void 0 ? '标题' : _props$appName,\n    backgroundImg = props.backgroundImg,\n    appImg = props.appImg,\n    sharePeople = props.sharePeople,\n    validateTime = props.validateTime,\n    link = props.link;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.content\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.header\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.backgroundImg\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: (0, _utils.getUrlWithDataCenter)((0, _utils.getFullUrl)(backgroundImg)) || _share_default_bg.default\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.QRCodeBox\n  }, /*#__PURE__*/_react.default.createElement(_qrcode.default, {\n    className: _ShareModal.default.QRCode,\n    value: link,\n    size: 48\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appInfo\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appImg\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: (0, _utils.getUrlWithDataCenter)(appImg)\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appDesc\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appName\n  }, appName), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.helpWords\n  }, \"\\u5206\\u4EAB\\u4EBA\\uFF1A\", sharePeople), validateTime && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.helpWords\n  }, \"\\u4E8C\\u7EF4\\u7801\\u6709\\u6548\\u671F\\u81F3\\uFF1A\", validateTime))));\n};\nvar BottomToolBar = exports.BottomToolBar = function BottomToolBar(props) {\n  var className = props.className,\n    visible = props.visible,\n    onClose = props.onClose,\n    iconInfo = props.iconInfo;\n  return /*#__PURE__*/_react.default.createElement(_kdesignm.Popup, {\n    className: (0, _classnames.default)(_ShareModal.default.bottom_toobar, className),\n    placement: \"bottom\",\n    visible: visible,\n    destroyOnClose: true,\n    radius: true,\n    title: null,\n    onMaskClick: onClose\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.shareItems_box\n  }, (0, _map.default)(iconInfo).call(iconInfo, function (info) {\n    var _info$icon = info.icon,\n      icon = _info$icon === void 0 ? {} : _info$icon,\n      text = info.text,\n      handleClick = info.handleClick;\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.shareItem\n    }, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.iconBox,\n      onClick: handleClick\n    }, /*#__PURE__*/_react.default.createElement(_kdesignm.Icon, (0, _extends2.default)({\n      className: _ShareModal.default.icon\n    }, icon))), /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.share_text\n    }, text));\n  })), /*#__PURE__*/_react.default.createElement(\"button\", {\n    className: _ShareModal.default.toobar_cancel,\n    onClick: onClose\n  }, \"\\u53D6\\u6D88\"));\n};\nvar timeOptions = [{\n  label: '1天',\n  value: 1\n}, {\n  label: '3天',\n  value: 3\n}, {\n  label: '7天',\n  value: 7\n}, {\n  label: '自定义',\n  value: -1\n}];\nvar ShareModal = function ShareModal(_ref) {\n  var className = _ref.className,\n    needLoginLink = _ref.needLoginLink,\n    _ref$shareTitle = _ref.shareTitle,\n    shareTitle = _ref$shareTitle === void 0 ? '' : _ref$shareTitle,\n    shareByPeople = _ref.shareByPeople,\n    shareAppImage = _ref.shareAppImage,\n    backgroundImg = _ref.backgroundImg,\n    visible = _ref.visible,\n    setVisible = _ref.setVisible,\n    hasNoLogingSetting = _ref.hasNoLogingSetting,\n    shareReqireLogin = _ref.shareReqireLogin,\n    shareNotReqireLogin = _ref.shareNotReqireLogin,\n    config = _ref.config;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    _useAppContext$state = _useAppContext.state,\n    state = _useAppContext$state === void 0 ? {} : _useAppContext$state;\n  var _useState = (0, _react.useState)(''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    title = _useState2[0],\n    setTitle = _useState2[1];\n  var _useState3 = (0, _react.useState)('noLogin'),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    needLogin = _useState4[0],\n    setNeedLogin = _useState4[1];\n  var _useState5 = (0, _react.useState)(1),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    time = _useState6[0],\n    setTime = _useState6[1];\n  var defaultExactTime = (0, _utils.getTimeAfterDay)(1);\n  var _useState7 = (0, _react.useState)(defaultExactTime),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    exactTime = _useState8[0],\n    setExactTime = _useState8[1];\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    settingVisible = _useState10[0],\n    setSettingVisible = _useState10[1];\n  var _useState11 = (0, _react.useState)(false),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    toolbarVisible = _useState12[0],\n    setToolbarVisible = _useState12[1];\n  var _useState13 = (0, _react.useState)({}),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    shareData = _useState14[0],\n    setShareData = _useState14[1];\n  var _useState15 = (0, _react.useState)('0'),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    inputMode = _useState16[0],\n    setInputMode = _useState16[1]; // 录入时的分享模式，默认是【允许多次填写】\n  var posterElementRef = (0, _react.useRef)();\n  var urlParamsRef = (0, _react.useRef)('');\n  var curNewTimeRef = (0, _react.useRef)(0);\n  var fileServer = state.fileServer || {};\n  var loginOptions = [{\n    label: '免登录',\n    value: 'noLogin',\n    disabled: !shareNotReqireLogin\n  }, {\n    label: '需要登录',\n    value: 'needLogin',\n    disabled: !shareReqireLogin\n  }];\n  var fullShareLink = (0, _react.useMemo)(function () {\n    var _context;\n    var url = window.location.origin + (0, _utils.getFullUrl)(shareData.url || needLoginLink);\n    if ((0, _includes.default)(url).call(url, '?')) {\n      return url;\n    }\n\n    // 拼接回params\n    return (0, _concat.default)(_context = \"\".concat(url)).call(_context, urlParamsRef.current ? '?' + urlParamsRef.current : '');\n  }, [shareData.url, needLoginLink]);\n  var appId = config.appId,\n    targetFormId = config.targetFormId,\n    Status = config.Status;\n  var initShareTitle = (0, _react.useCallback)(function () {\n    setTitle((0, _slice.default)(shareTitle).call(shareTitle, 0, 50));\n  }, [shareTitle]);\n  (0, _react.useEffect)(function () {\n    initShareTitle();\n  }, [shareTitle]);\n  (0, _react.useEffect)(function () {\n    if (visible) {\n      hasNoLogingSetting ? setSettingVisible(hasNoLogingSetting) : setToolbarVisible(!hasNoLogingSetting);\n    } else {\n      // 关闭之后要初始化\n      initShareTitle();\n      setNeedLogin('noLogin');\n      setTime(1);\n      setShareData({});\n      setExactTime(defaultExactTime);\n    }\n  }, [visible]);\n  (0, _react.useEffect)(function () {\n    if (time === -1) {\n      curNewTimeRef.current = new Date();\n    }\n  }, [time]);\n  var handleTitleChange = (0, _react.useCallback)(function (value) {\n    setTitle(value);\n  }, []);\n  var handleLoginChange = (0, _react.useCallback)(function (e) {\n    if (e !== null && e !== void 0 && e.target) {\n      setNeedLogin(e.target.value);\n    }\n  }, []);\n  var handleTimeChange = function handleTimeChange(e) {\n    var _e$target;\n    var day = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;\n    if (day) {\n      setTime(Number(day));\n      setExactTime((0, _utils.getTimeAfterDay)(Math.abs(day)));\n    }\n  };\n  var handleInputModeChange = function handleInputModeChange(e) {\n    var value = e.target.value;\n    setInputMode(value);\n  };\n  var handleExactTimeChange = function handleExactTimeChange(value) {\n    setExactTime(value);\n  };\n  var onCloseSetting = (0, _react.useCallback)(function () {\n    (0, _reactDom.unstable_batchedUpdates)(function () {\n      setTime(1);\n      setNeedLogin('noLogin');\n      setExactTime(defaultExactTime);\n      setSettingVisible(false);\n      setVisible(false);\n    });\n  }, []);\n  var onCloseModal = (0, _react.useCallback)(function () {\n    setToolbarVisible(false);\n    setVisible(false);\n  }, []);\n  var openLinkModal = (0, _react.useCallback)(function () {\n    setSettingVisible(false);\n    setToolbarVisible(true);\n  }, []);\n  var generateLink = function generateLink() {\n    if (needLogin === 'needLogin') {\n      setShareData({\n        url: needLoginLink\n      });\n      openLinkModal();\n    } else {\n      var _needLoginLink;\n      if (time === -1) {\n        if (+exactTime < +curNewTimeRef.current) {\n          (0, _utils.showNotice)('error', '自定义有效期不能早于当前时间');\n          return;\n        }\n      }\n\n      // 安全需要加密\n      var encryptByBase64ValidTime = (0, _crypto.encryptByBase64)((0, _utils.getTimeDiff)(exactTime) + '');\n\n      // 有？的情况时候，添加shareId会导致直接复制地址打不开，因此先切割出来\n      if ((_needLoginLink = needLoginLink) !== null && _needLoginLink !== void 0 && (0, _includes.default)(_needLoginLink).call(_needLoginLink, '?')) {\n        var urlPathList = needLoginLink.split('?');\n        needLoginLink = urlPathList[0];\n        urlParamsRef.current = urlPathList[1];\n      }\n      var params = {\n        title: title,\n        // 免登分享管理用数据\n        bgImage: backgroundImg,\n        // 免登分享管理用数据\n        icon: shareAppImage,\n        // 免登分享管理用数据\n        url: needLoginLink,\n        validTime: encryptByBase64ValidTime,\n        // 需要使用字符串\n        appId: appId,\n        formId: targetFormId,\n        type: Status\n      };\n      if (needLogin === 'noLogin' && (0, _utils.isAddStatus)(Status)) {\n        params.inputMode = inputMode;\n      }\n      (0, _apps.sendShareData)(params).then(function (data) {\n        setShareData(data === null || data === void 0 ? void 0 : data.row);\n        openLinkModal();\n      }).catch(function (error) {\n        var errorCode = error.errorCode,\n          message = error.message;\n        if (errorCode || message) {\n          var _context2;\n          (0, _utils.showNotice)('error', (0, _concat.default)(_context2 = \"\\u751F\\u6210\\u94FE\\u63A5\\u5931\\u8D25: \".concat(errorCode, \",\")).call(_context2, message));\n        } else {\n          console.warn('生成链接失败', error);\n        }\n      });\n    }\n  };\n  var copyShareContent = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var shareContent;\n      return _regenerator.default.wrap(function _callee$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            try {\n              shareContent = (0, _ShareModal2.getShareContent)({\n                shareLink: fullShareLink,\n                shareTitle: title,\n                shareByPeople: shareByPeople,\n                expiration: shareData.validTime\n              });\n              (0, _clipboardUtil.copy2Clipboard)(shareContent, function () {\n                (0, _utils.showNotice)('success', '已复制链接到剪贴板');\n              });\n            } catch (error) {\n              (0, _utils.showNotice)('error', '复制链接到剪贴板失败');\n              console.error('[复制链接到剪贴板失败]', error);\n            }\n          case 1:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee);\n    }));\n    return function copyShareContent() {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n  var uploadImg = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n      var fileName, imgBlobData;\n      return _regenerator.default.wrap(function _callee2$(_context4) {\n        while (1) switch (_context4.prev = _context4.next) {\n          case 0:\n            fileName = (shareTitle === null || shareTitle === void 0 ? void 0 : (0, _replaceAll.default)(shareTitle).call(shareTitle, '.', '')) || '表单分享海报';\n            _context4.next = 3;\n            return (0, _htmlToCanvas.convertDomToImage)(posterElementRef.current);\n          case 3:\n            imgBlobData = _context4.sent;\n            (0, _utils.download)(imgBlobData, fileName);\n          case 5:\n          case \"end\":\n            return _context4.stop();\n        }\n      }, _callee2);\n    }));\n    return function uploadImg() {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n  var footerBtns = (0, _react.useMemo)(function () {\n    return [{\n      text: '取消',\n      handleClick: onCloseSetting\n    }, {\n      text: '生成链接',\n      handleClick: generateLink\n    }];\n  }, [onCloseSetting, generateLink]);\n  var iconInfo = (0, _react.useMemo)(function () {\n    return [{\n      icon: {\n        prefix: 'ncicon',\n        type: 'weishibiefujian'\n      },\n      text: '复制链接',\n      handleClick: copyShareContent\n    }\n    // { app中不支持下载图片，7.0先隐藏入口\n    //   icon: {\n    //     prefix: 'nocodeplatformicon',\n    //     type: 'xiazai'\n    //   },\n    //   text: t('nocode.platform.00144'),\n    //   handleClick: uploadImg\n    // }\n    ];\n  }, [copyShareContent, uploadImg]);\n  var backImageUrl = (0, _react.useMemo)(function () {\n    return (0, _utils.getBackImageUrl)(fileServer.imageUrl, backgroundImg);\n  }, [fileServer.imageUrl, backgroundImg]);\n  var readOnly = time !== -1;\n  return visible && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesignm.Popup, {\n    className: (0, _classnames.default)(_ShareModal.default.shareModal, className),\n    placement: \"bottom\",\n    visible: settingVisible,\n    onClose: onCloseSetting,\n    radius: true,\n    title: \"\\u5206\\u4EAB\\u8BBE\\u7F6E\"\n  }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.shareModal_body\n  }, /*#__PURE__*/_react.default.createElement(_MobUI.FieldItem, {\n    className: _ShareModal.default.fieldItem,\n    labelText: \"\\u6807\\u9898\",\n    showTitle: true\n  }, /*#__PURE__*/_react.default.createElement(_MobUI.Text, {\n    placeholder: \"\\u8BF7\\u8F93\\u5165\",\n    value: title,\n    onChange: handleTitleChange,\n    maxLength: 50\n  })), /*#__PURE__*/_react.default.createElement(_MobUI.FieldItem, {\n    className: _ShareModal.default.fieldItem,\n    labelText: \"\\u5141\\u8BB8\\u514D\\u767B\\u5F55\",\n    showTitle: true,\n    required: true\n  }, /*#__PURE__*/_react.default.createElement(_kdesignm.Radio.Group, {\n    defaultValue: shareNotReqireLogin ? 'noLogin' : 'needLogin',\n    className: _ShareModal.default.radio,\n    size: \"middle\",\n    options: loginOptions,\n    vertical: false,\n    onChange: handleLoginChange\n  })), needLogin === 'noLogin' && /*#__PURE__*/_react.default.createElement(_MobUI.FieldItem, {\n    className: _ShareModal.default.fieldItem,\n    labelText: \"\\u6709\\u6548\\u671F\",\n    showTitle: true,\n    required: true\n  }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_kdesignm.Radio.Group, {\n    value: time,\n    className: _ShareModal.default.radio,\n    size: \"middle\",\n    options: _constants.SHARE_TIME_OPTIONS,\n    vertical: false,\n    onChange: handleTimeChange\n  }), /*#__PURE__*/_react.default.createElement(_MobUI.DatePicker, {\n    placeholder: \"\\u8BF7\\u9009\\u62E9\\u65F6\\u95F4\",\n    value: exactTime,\n    readOnly: readOnly,\n    disabled: readOnly,\n    className: _ShareModal.default.datePicker,\n    icon: {\n      prefix: 'kdicon',\n      type: 'date'\n    },\n    allowClear: true,\n    picker: \"second\",\n    onConfirm: handleExactTimeChange\n  }))),\n  // 只有录入+免登的时候允许出现这个选项配置\n  needLogin === 'noLogin' && (0, _utils.isAddStatus)(Status) && /*#__PURE__*/_react.default.createElement(_MobUI.FieldItem, {\n    className: _ShareModal.default.fieldItem,\n    labelText: \"\\u540C\\u4E00\\u8BBE\\u5907\\uFF08\\u624B\\u673A\\u3001\\u7535\\u8111\\uFF09\",\n    showTitle: true\n  }, /*#__PURE__*/_react.default.createElement(_kdesignm.Radio.Group, {\n    value: inputMode,\n    size: \"middle\",\n    onChange: handleInputModeChange\n  }, /*#__PURE__*/_react.default.createElement(_kdesignm.Radio, {\n    value: \"0\"\n  }, \"\\u5141\\u8BB8\\u591A\\u6B21\\u586B\\u5199\"), /*#__PURE__*/_react.default.createElement(_kdesignm.Radio, {\n    value: \"1\"\n  }, \"\\u53EA\\u80FD\\u586B\\u5199\\u4E00\\u6B21\"), /*#__PURE__*/_react.default.createElement(_kdesignm.Radio, {\n    value: \"2\"\n  }, \"\\u53EA\\u80FD\\u586B\\u5199\\u4E00\\u6B21\\uFF0C\\u4F46\\u5141\\u8BB8\\u4FEE\\u6539\")))), /*#__PURE__*/_react.default.createElement(_FooterBtns.default, {\n    btns: footerBtns\n  }))), /*#__PURE__*/_react.default.createElement(_Modal.default, {\n    mask: false,\n    top: 233,\n    visible: toolbarVisible\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.content,\n    ref: posterElementRef\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.header\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.backgroundImg\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: backImageUrl || _share_default_bg.default\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.QRCodeBox\n  }, /*#__PURE__*/_react.default.createElement(_qrcode.default, {\n    className: _ShareModal.default.QRCode,\n    value: fullShareLink,\n    size: 48\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appInfo\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appImg\n  }, /*#__PURE__*/_react.default.createElement(\"img\", {\n    src: (0, _utils.getUrlWithDataCenter)(window.location.origin + (0, _utils.getFullUrl)(shareAppImage))\n  })), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appDesc\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.appName\n  }, title), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.helpWords\n  }, \"\\u5206\\u4EAB\\u4EBA\\uFF1A\", shareByPeople || '用户'), shareData.validTime && /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.helpWords\n  }, \"\\u4E8C\\u7EF4\\u7801\\u6709\\u6548\\u671F\\u81F3\\uFF1A\", shareData.validTime))))), /*#__PURE__*/_react.default.createElement(BottomToolBar, {\n    visible: toolbarVisible,\n    onClose: onCloseModal,\n    iconInfo: iconInfo\n  }));\n};\nvar _default = exports[\"default\"] = ShareModal;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/mobile/component/common/ShareModal.tsx\n");

/***/ }),

/***/ "./src/mobile/layout/apps/detail/DetailHeaderLayout.tsx":
/*!**************************************************************!*\
  !*** ./src/mobile/layout/apps/detail/DetailHeaderLayout.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\");\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 _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nvar DetailHeader = (0, _react.memo)(function () {\n  return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Outlet, null);\n});\nvar _default = exports[\"default\"] = DetailHeader;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvbW9iaWxlL2xheW91dC9hcHBzL2RldGFpbC9EZXRhaWxIZWFkZXJMYXlvdXQudHN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUVBO0FBQ0E7QUFDQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL21vYmlsZS9sYXlvdXQvYXBwcy9kZXRhaWwvRGV0YWlsSGVhZGVyTGF5b3V0LnRzeD82ZjQ2Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBtZW1vIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBPdXRsZXQgfSBmcm9tICdyZWFjdC1yb3V0ZXItZG9tJ1xuXG5jb25zdCBEZXRhaWxIZWFkZXIgPSBtZW1vKCgpID0+IHtcbiAgcmV0dXJuIDxPdXRsZXQgLz5cbn0pXG5cbmV4cG9ydCBkZWZhdWx0IERldGFpbEhlYWRlclxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/mobile/layout/apps/detail/DetailHeaderLayout.tsx\n");

/***/ }),

/***/ "./src/mobile/layout/apps/detail/FlowPopLayout.tsx":
/*!*********************************************************!*\
  !*** ./src/mobile/layout/apps/detail/FlowPopLayout.tsx ***!
  \*********************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesignm = __webpack_require__(/*! kd_libs/kdesignm1 */ \"webpack/container/remote/kd_libs/kdesignm1\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _MobileFlowList = _interopRequireDefault(__webpack_require__(/*! ./MobileFlowList */ \"./src/mobile/layout/apps/detail/MobileFlowList.tsx\"));\nvar _FlowPopLayout = _interopRequireDefault(__webpack_require__(/*! ./FlowPopLayout.less */ \"./src/mobile/layout/apps/detail/FlowPopLayout.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// import FlowStatusTag from '@/mobile/component/common/FlowStatusTag'\n// import classNames from 'classnames'\n\n// 流程状态样式\nvar classList = {\n  willApproval: _FlowPopLayout.default.warning,\n  // 待审批\n  approve: _FlowPopLayout.default.success,\n  // 同意\n  handled: _FlowPopLayout.default.success,\n  // (\"已完成\")\n  done: _FlowPopLayout.default.success,\n  // (\"已完成\")\n  end: _FlowPopLayout.default.success,\n  // (\"已完成\")\n  terminate: _FlowPopLayout.default.reject,\n  // 否决\n  withdraw: _FlowPopLayout.default.reject,\n  // (\"已撤回\")\n  exception_terminate: _FlowPopLayout.default.error,\n  // (\"异常终止\")\n  willHandled: _FlowPopLayout.default.going,\n  // (\"处理中\")\n  launch: _FlowPopLayout.default.going,\n  // (\"处理中\")\n  running: _FlowPopLayout.default.going // (\"处理中\")\n};\n\n// 流程节点\nvar ProcessItem = (0, _react.memo)(function (_ref) {\n  var _context;\n  var data = _ref.data,\n    onItemClick = _ref.onItemClick,\n    config = _ref.config;\n  console.log('ProcessItem', data);\n  var approvalInfo = data.approvalInfo,\n    processStatus = data.processStatus;\n  var appId = config.appId,\n    targetFormId = config.targetFormId;\n  var css = classList[processStatus.handleState];\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _FlowPopLayout.default.process_item,\n    \"data-nc-action\": (0, _concat.default)(_context = \"\".concat(appId, \"|\")).call(_context, targetFormId, \"|m_fu_fr_open\"),\n    onClick: onItemClick\n  }, /*#__PURE__*/_react.default.createElement(\"div\", null, data.processName), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: css\n  }, approvalInfo[0].handleStateDesc));\n});\n\n/**\n * 流程弹窗\n * @param { data, visible, config, onClose }\n * @returns ReactNode\n */\nvar FlowPopLayout = function FlowPopLayout(_ref2) {\n  var data = _ref2.data,\n    visible = _ref2.visible,\n    config = _ref2.config,\n    onClose = _ref2.onClose;\n  var procInstId = config.procInstId,\n    userTaskActivityId = config.userTaskActivityId,\n    userTaskBusinessKey = config.userTaskBusinessKey;\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    list = _useState2[0],\n    setList = _useState2[1];\n  var _useState3 = (0, _react.useState)({}),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    curNode = _useState4[0],\n    setCurNode = _useState4[1];\n  var navigator = (0, _useNocodeNavigate.default)();\n  var isFlowEdit = (0, _react.useMemo)(function () {\n    return !!userTaskActivityId && !!userTaskBusinessKey;\n  }, [userTaskActivityId, userTaskBusinessKey]);\n\n  // 点击流程\n  var _onItemClick = (0, _react.useCallback)(function (item) {\n    var _context2, _context3, _context4;\n    console.log('onitemclick', item);\n    var procInstId = item.procInstId,\n      businessKey = item.businessKey;\n    var appId = config.appId,\n      targetFormId = config.targetFormId;\n    navigator((0, _concat.default)(_context2 = (0, _concat.default)(_context3 = (0, _concat.default)(_context4 = \"/m/\".concat(appId, \"/detail/\")).call(_context4, targetFormId, \"/\")).call(_context3, businessKey, \"/view/flow/\")).call(_context2, procInstId));\n    onClose && onClose();\n  }, [onClose, config]);\n  (0, _react.useEffect)(function () {\n    if (isFlowEdit) {\n      var _list$approvalInfo;\n      var _list = (0, _find.default)(data).call(data, function (item) {\n        return item.procInstId === procInstId;\n      });\n      var cur = _list === null || _list === void 0 || (_list$approvalInfo = _list.approvalInfo) === null || _list$approvalInfo === void 0 ? void 0 : (0, _find.default)(_list$approvalInfo).call(_list$approvalInfo, function (node) {\n        return node.nodeBusinessKey === userTaskBusinessKey && node.nodeId === userTaskActivityId;\n      });\n      setList(_list || {});\n      setCurNode(cur || {});\n    }\n  }, [procInstId, data, isFlowEdit, userTaskBusinessKey, userTaskActivityId]);\n\n  // 抽屉属性\n  var props = {\n    visible: visible,\n    placement: 'bottom',\n    title: isFlowEdit ? '流程记录' : '请选择',\n    footer: null,\n    onClose: onClose\n  };\n  console.log('poplayout', data);\n  return /*#__PURE__*/_react.default.createElement(_kdesignm.Popup, (0, _extends2.default)({\n    className: _FlowPopLayout.default.flow_pop\n  }, props), isFlowEdit ? /*#__PURE__*/_react.default.createElement(_MobileFlowList.default, {\n    data: list,\n    curNode: curNode,\n    config: config\n  }) : (0, _map.default)(data).call(data, function (item) {\n    return /*#__PURE__*/_react.default.createElement(ProcessItem, {\n      key: item.procInstId,\n      data: item,\n      config: config,\n      onItemClick: function onItemClick() {\n        return _onItemClick(item);\n      }\n    });\n  }));\n};\nProcessItem.displayName = 'ProcessItem';\nFlowPopLayout.displayName = 'FlowPopLayout';\nvar _default = exports[\"default\"] = (0, _react.memo)(FlowPopLayout);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/mobile/layout/apps/detail/FlowPopLayout.tsx\n");

/***/ }),

/***/ "./src/mobile/layout/apps/detail/MobileBizButtonList.tsx":
/*!***************************************************************!*\
  !*** ./src/mobile/layout/apps/detail/MobileBizButtonList.tsx ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _find = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/find */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _MobUI = __webpack_require__(/*! nocode_component/MobUI */ \"webpack/container/remote/nocode_component/MobUI\");\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /*\n * @Description: 业务操作按钮运行时\n * @Author: jianhang_he\n * @Date: 2023-05-19 15:43:11\n * @LastEditTime: 2023-06-25 17:11:57\n * @Last Modified by: jianhang_he\n */\nvar TooltipWrapper = function TooltipWrapper(_ref) {\n  var tips = _ref.tips,\n    placement = _ref.placement,\n    children = _ref.children;\n  if (tips) {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Tooltip, {\n      tip: tips,\n      placement: placement\n    }, children);\n  }\n  return children;\n};\n// const MAX_WIDTH = 270\n\nvar MobileBizButtonList = (0, _react.memo)(function (_ref2) {\n  var pkId = _ref2.pkId,\n    formId = _ref2.formId,\n    appId = _ref2.appId,\n    bosApi = _ref2.bosApi,\n    className = _ref2.className;\n  // const [originBizButtonList, setOriginBizButtonList] = useState<BizButtonApi[]>([])\n  var _useState = (0, _react.useState)([]),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    bizButtonList = _useState2[0],\n    setBizButtonList = _useState2[1];\n  // const bizBtnsRef = useRef(null)\n  // const hasMoreBtnRef = useRef(false)\n\n  (0, _react.useEffect)(function () {\n    if (!pkId) {\n      console.warn('pkid不存在');\n      return;\n    }\n    (0, _apps.getBizButtonList)({\n      appId: appId,\n      formId: formId,\n      pkId: pkId\n    }).then(function (res) {\n      var rows = res.rows;\n      if (Array.isArray(rows)) {\n        setBizButtonList((0, _map.default)(rows).call(rows, function (item) {\n          // const curLangText = bosApi?.getControlText(item.text)\n\n          return _objectSpread(_objectSpread({}, item), {}, {\n            text: item.text.zh_CN\n          });\n        }));\n      } else {\n        console.error('业务按钮返回不是一个数组');\n      }\n    }).catch(function (error) {\n      console.error('获取业务按钮信息失败', error);\n    });\n  }, [pkId]);\n  var invokeHandleAction = (0, _react.useCallback)(function (key) {\n    bosApi.invokeHandle('click', key, [], []);\n  }, [bosApi]);\n\n  /**\n   * 点击业务按钮\n   */\n  var handleClickBizButton = (0, _react.useCallback)(function (item) {\n    var secondConfirm = item.SecondConfirm,\n      opk = item.opk,\n      text = item.text;\n    if (secondConfirm) {\n      // 需要二次确认\n      _MobUI.WebMsg.showModalConfirm({\n        title: \"\\u786E\\u5B9A\\u5BF9\\u8BB0\\u5F55\\u6267\\u884C\".concat(text, \"\\u64CD\\u4F5C\\u5417\\uFF1F\"),\n        actions: [{\n          text: '取消',\n          key: 'cancel'\n        }, {\n          text: '确定',\n          key: 'confirm',\n          primary: true\n        }],\n        onAction: function onAction(_ref3) {\n          var key = _ref3.key;\n          if (key === 'confirm') {\n            invokeHandleAction(opk);\n          }\n        },\n        type: 'prompt'\n      });\n    } else {\n      invokeHandleAction(opk);\n    }\n  }, [invokeHandleAction]);\n\n  //\n  var handleClickMoreBtnItem = function handleClickMoreBtnItem(key) {\n    var curClickItem = (0, _find.default)(bizButtonList).call(bizButtonList, function (item) {\n      return item.opk === key;\n    });\n    if (curClickItem) {\n      handleClickBizButton(curClickItem);\n    }\n  };\n  var moreBtnmenu = (0, _react.useMemo)(function () {\n    return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Menu, {\n      onClick: handleClickMoreBtnItem\n    }, (0, _map.default)(bizButtonList).call(bizButtonList, function (item, index) {\n      return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown.Item, {\n        key: item.opk\n      }, /*#__PURE__*/_react.default.createElement(TooltipWrapper, {\n        tips: item === null || item === void 0 ? void 0 : item.HelpTips,\n        placement: \"right\"\n      }, item.text));\n    }));\n  }, [bizButtonList, handleClickMoreBtnItem]);\n  if (!(bizButtonList !== null && bizButtonList !== void 0 && bizButtonList.length)) return null;\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Dropdown, {\n    menu: moreBtnmenu,\n    trigger: \"click\"\n  }, /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, null, \"\\u66F4\\u591A\"));\n});\nMobileBizButtonList.displayName = 'MobileBizButtonList';\nvar _default = exports[\"default\"] = MobileBizButtonList;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/mobile/layout/apps/detail/MobileBizButtonList.tsx\n");

/***/ }),

/***/ "./src/mobile/layout/apps/detail/MobileFormDetailFooter.tsx":
/*!******************************************************************!*\
  !*** ./src/mobile/layout/apps/detail/MobileFormDetailFooter.tsx ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _setTimeout2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _MobUI = __webpack_require__(/*! nocode_component/MobUI */ \"webpack/container/remote/nocode_component/MobUI\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _MobileBizButtonList = _interopRequireDefault(__webpack_require__(/*! ./MobileBizButtonList */ \"./src/mobile/layout/apps/detail/MobileBizButtonList.tsx\"));\nvar _MobileFormDetailFooter = _interopRequireDefault(__webpack_require__(/*! ./MobileFormDetailFooter.less */ \"./src/mobile/layout/apps/detail/MobileFormDetailFooter.less\"));\nvar _PageEventService = __webpack_require__(/*! @/service/PageEventService */ \"./src/service/PageEventService.ts\");\nvar _useDebounce = _interopRequireDefault(__webpack_require__(/*! @/hooks/useDebounce */ \"./src/hooks/useDebounce.tsx\"));\nvar _reducer = __webpack_require__(/*! @/utils/reducer */ \"./src/utils/reducer.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; }\nvar INIT_BTN_LOADING_STATE = {\n  save: false,\n  // 保存\n  saveAndNew: false,\n  // 复制并新增\n  copy: false,\n  // 复制\n  delete: false,\n  // 删除\n  edit: false // 编辑\n};\nvar PAGE_STATUS = ['addNew', 'edit', 'view'];\nvar MobileFormDetailFooter = (0, _react.memo)(function (_ref) {\n  var status = _ref.status,\n    bosApi = _ref.bosApi,\n    authList = _ref.authList,\n    config = _ref.config,\n    isSharePage = _ref.isSharePage,\n    inputAuthFixed = _ref.inputAuthFixed,\n    formLock = _ref.formLock,\n    extraButton = _ref.extraButton,\n    setStatus = _ref.setStatus,\n    fetchFlowList = _ref.fetchFlowList;\n  var _ref2 = authList || {},\n    deleteAuth = _ref2.deleteAuth,\n    inputAuth = _ref2.inputAuth,\n    editAuth = _ref2.editAuth,\n    viewAuth = _ref2.viewAuth;\n  var _ref3 = config || {},\n    appId = _ref3.appId,\n    pkId = _ref3.pkId,\n    targetFormId = _ref3.targetFormId,\n    procInstId = _ref3.procInstId,\n    userTaskActivityId = _ref3.userTaskActivityId,\n    userTaskBusinessKey = _ref3.userTaskBusinessKey,\n    userTaskCurrentUserId = _ref3.userTaskCurrentUserId;\n  var navigate = (0, _useNocodeNavigate.default)();\n  var checkboxRef = (0, _react.useRef)(null);\n  var loading = (0, _react.useRef)(false);\n  var pageIdRef = (0, _react.useRef)('');\n  var pkIdRef = (0, _react.useRef)(pkId);\n  var isCopySave = (0, _react.useRef)(false);\n  var isFlowEnterForm = (0, _react.useRef)(Boolean(userTaskActivityId && userTaskBusinessKey && userTaskCurrentUserId)); // 流程录入表单\n  var _useReducer = (0, _react.useReducer)(_reducer.assignDataReducer, INIT_BTN_LOADING_STATE),\n    _useReducer2 = (0, _slicedToArray2.default)(_useReducer, 2),\n    btnLoadingState = _useReducer2[0],\n    dispatchBtnLoadingState = _useReducer2[1];\n\n  // 检查是否成功\n  var checkSuccess = (0, _react.useCallback)(function (res) {\n    var _actions$ShowNotifica;\n    var actions = (0, _utils.getBosActions)(res.data);\n    return (actions === null || actions === void 0 || (_actions$ShowNotifica = actions.ShowNotificationMsg) === null || _actions$ShowNotifica === void 0 ? void 0 : _actions$ShowNotifica[0].type) === 0;\n  }, []);\n\n  /**\n   * 点击保存并新增\n   */\n  var saveAndNewEvn = (0, _react.useCallback)(function () {\n    if (btnLoadingState.saveAndNew) return;\n    dispatchBtnLoadingState({\n      saveAndNew: true\n    });\n    var action = checkboxRef.current.checked ? 'btncopy' : 'btnnew';\n    (0, _PageEventService.publishClickUserEvent)({\n      appId: appId,\n      formId: targetFormId,\n      action: !checkboxRef.current.checked ? 'm_fu_fo_cfill' : 'm_fu_fo_kc'\n    });\n    bosApi.invokeHandle('click', action, [], [], function (res, pageId) {\n      dispatchBtnLoadingState({\n        saveAndNew: false\n      });\n    });\n    setStatus('addNew');\n  }, [bosApi, checkboxRef.current, appId, targetFormId, btnLoadingState.saveAndNew]);\n\n  // 复制\n  var copyHandle = (0, _react.useCallback)(function () {\n    // editHandle()\n    // setIsNew(true)\n    if (btnLoadingState.copy) return;\n    dispatchBtnLoadingState({\n      copy: true\n    });\n    bosApi.invokeHandle('click', 'btncopy', [], [], function (res, pageId) {\n      setStatus('addNew');\n      bosApi.setFormStatus('addNew', pageId);\n      dispatchBtnLoadingState({\n        copy: false\n      });\n    });\n    // copyCallback?.()\n  }, [bosApi, btnLoadingState.copy]);\n\n  // 删除\n  var deleteHandle = (0, _react.useCallback)(function () {\n    if (btnLoadingState.delete) return;\n    dispatchBtnLoadingState({\n      delete: true\n    });\n    (0, _PageEventService.publishClickUserEvent)({\n      appId: appId,\n      formId: targetFormId,\n      action: 'm_fu_fo_del_comf'\n    });\n    bosApi.invokeHandle('click', 'btndel', [], [], function (res) {\n      dispatchBtnLoadingState({\n        delete: false\n      });\n      checkSuccess(res) && goBack();\n    });\n  }, [bosApi, appId, targetFormId, btnLoadingState.delete]);\n\n  // 编辑\n  var editHandle = (0, _react.useCallback)(function () {\n    if (btnLoadingState.edit) return;\n    dispatchBtnLoadingState({\n      edit: true\n    });\n    bosApi.invokeHandle('click', 'btnedit', [], [], function (res) {\n      var _actions$setFormStatu;\n      dispatchBtnLoadingState({\n        edit: false\n      });\n      var actions = (0, _utils.getBosActions)(res.data);\n      // 根据后端的返回状态调整\n      (actions === null || actions === void 0 || (_actions$setFormStatu = actions.setFormStatus) === null || _actions$setFormStatu === void 0 ? void 0 : _actions$setFormStatu[0]) === 1 && setStatus('edit');\n    });\n  }, [setStatus, bosApi, btnLoadingState.edit]);\n  var saveAndNewAction = (0, _useDebounce.default)(saveAndNewEvn);\n  var editAction = (0, _useDebounce.default)(editHandle);\n  var copyAction = (0, _useDebounce.default)(copyHandle);\n\n  // 返回\n  var goBack = (0, _react.useCallback)(function () {\n    var _context;\n    // window.history.back()\n    navigate((0, _concat.default)(_context = \"/m/\".concat(appId, \"/home/\")).call(_context, targetFormId), {\n      replace: true\n    });\n  }, [appId, targetFormId]);\n\n  // 点击弹窗按钮事件\n  var onAction = (0, _react.useCallback)(function (action) {\n    switch (action.key) {\n      case 'view':\n        if (isCopySave.current) {\n          var path = ['m', appId, 'detail', targetFormId, pkIdRef.current, 'view'].join('/');\n          window.location.href = (0, _utils.getFullPathName)(path);\n        } else {\n          setStatus('view');\n          fetchFlowList === null || fetchFlowList === void 0 || fetchFlowList(pkIdRef.current);\n          bosApi.setFormStatus('view');\n        }\n        (0, _PageEventService.publishClickUserEvent)({\n          appId: appId,\n          formId: targetFormId,\n          action: 'm_fu_fo_detail'\n        });\n        break;\n      case 'continue':\n        saveAndNewAction();\n        break;\n      case 'back':\n        goBack();\n        break;\n      case 'delete':\n        deleteHandle();\n        break;\n    }\n  }, [saveAndNewAction, goBack, deleteHandle, setStatus, bosApi, fetchFlowList, appId, targetFormId]);\n\n  // 删除弹窗\n  var deleteModal = (0, _react.useCallback)(function () {\n    // console.log('deleteHandle')\n    _MobUI.WebMsg.showModalConfirm({\n      type: 3,\n      title: '确定删除该记录吗？',\n      actions: [{\n        key: 'cancle',\n        text: '取消'\n      }, {\n        key: 'delete',\n        text: '确定',\n        primary: true\n      }],\n      onAction: onAction\n    });\n  }, [onAction]);\n\n  /**\n   * 点击保存\n   */\n  var saveEvn = (0, _react.useCallback)(function () {\n    if (btnLoadingState.save) return;\n    dispatchBtnLoadingState({\n      save: true\n    });\n    bosApi.invokeHandle('click', 'btnsave', [], [], function (res, pageId) {\n      loading.current = false;\n      var _getBosActions = (0, _utils.getBosActions)(res.data),\n        mobSaveSuccess = _getBosActions.mobSaveSuccess,\n        setPkId = _getBosActions.setPkId;\n      pageIdRef.current = pageId;\n      if (mobSaveSuccess) {\n        if (isFlowEnterForm.current) {\n          // 流程录入界面时,返回上一级\n          (0, _setTimeout2.default)(function () {\n            return window.history.go(-1);\n          }, 2000);\n          return;\n        }\n        // 标记是否为复制记录\n        isCopySave.current = pkIdRef.current && setPkId[0] !== pkIdRef.current;\n        pkIdRef.current = setPkId[0];\n        // 产品确认，免登录入和编辑完了之后跳到详情页\n        if (isSharePage) {\n          _MobUI.WebMsg.showToast({\n            duration: 1000,\n            type: 0,\n            content: status === 'edit' ? '保存成功' : '提交成功',\n            afterClose: function afterClose() {\n              setStatus('view');\n              bosApi.setFormStatus('view', pageId);\n              dispatchBtnLoadingState({\n                save: false\n              });\n            }\n          });\n          return;\n        }\n        var params = {\n          type: 0,\n          onAction: onAction\n        };\n        if (status === 'edit') {\n          // 编辑\n          // 产品确认分享编辑页提交后直接进入详情页\n          params.title = '保存成功';\n          params.actions = [{\n            key: 'back',\n            text: '返回列表'\n          }, {\n            key: 'view',\n            text: '查看详情',\n            primary: true\n          }];\n        } else {\n          // 新增\n          params.title = '提交成功';\n          params.content = /*#__PURE__*/_react.default.createElement(_MobUI.Checkbox, {\n            ref: checkboxRef\n          }, \"\\u7EE7\\u7EED\\u5F55\\u5165\\u65F6\\uFF0C\\u4FDD\\u7559\\u672C\\u6B21\\u63D0\\u4EA4\\u5185\\u5BB9\");\n          params.actions = [{\n            key: 'view',\n            text: '查看详情'\n          }, {\n            key: 'continue',\n            text: '继续录入',\n            primary: true\n          }];\n        }\n        _MobUI.WebMsg.showModalConfirm(params);\n      }\n      dispatchBtnLoadingState({\n        save: false\n      });\n    });\n  }, [bosApi, status, onAction]);\n  (0, _react.useEffect)(function () {\n    if (pkId && pkId !== pkIdRef.current) {\n      pkIdRef.current = pkId;\n    }\n  }, [pkId]);\n  var saveAction = (0, _useDebounce.default)(saveEvn); // 保存防抖\n\n  // 编辑状态 edit\n  var editButton = (0, _react.useMemo)(function () {\n    if (!editAuth) return null;\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extraButton === null || extraButton === void 0 ? void 0 : extraButton(), /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, {\n      disabled: !bosApi,\n      type: \"primary\",\n      loading: btnLoadingState.save,\n      onClick: saveAction,\n      text: \"\\u4FDD\\u5B58\"\n    }));\n  }, [saveAction, bosApi, extraButton, editAuth, btnLoadingState.save]);\n\n  // 新增状态 addNew\n  var addNewButton = (0, _react.useMemo)(function () {\n    if (!inputAuth) return null;\n    return /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, {\n      disabled: !bosApi,\n      type: \"primary\",\n      loading: btnLoadingState.save,\n      onClick: saveAction,\n      text: \"\\u63D0\\u4EA4\"\n    });\n  }, [saveAction, bosApi, inputAuth, btnLoadingState.save]);\n\n  // 详情状态 view\n  // 支持左侧扩展按钮\n  var viewButton = (0, _react.useMemo)(function () {\n    var _context2, _context3, _context4;\n    if (!viewAuth) return null;\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, extraButton === null || extraButton === void 0 ? void 0 : extraButton(), /*#__PURE__*/_react.default.createElement(_MobileBizButtonList.default, {\n      bosApi: bosApi,\n      appId: appId,\n      formId: targetFormId,\n      pkId: pkIdRef.current\n    }), !formLock && deleteAuth && /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, {\n      \"data-nc-action\": (0, _concat.default)(_context2 = \"\".concat(appId, \"|\")).call(_context2, targetFormId, \"|m_fu_fo_del\"),\n      disabled: !bosApi,\n      loading: btnLoadingState.delete,\n      onClick: deleteModal\n    }, \"\\u5220\\u9664\"), !inputAuthFixed && inputAuth && /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, {\n      \"data-nc-action\": (0, _concat.default)(_context3 = \"\".concat(appId, \"|\")).call(_context3, targetFormId, \"|m_fu_fo_copy\"),\n      disabled: !bosApi,\n      loading: btnLoadingState.copy,\n      onClick: copyAction\n    }, \"\\u590D\\u5236\"), !formLock && editAuth && /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, {\n      \"data-nc-action\": (0, _concat.default)(_context4 = \"\".concat(appId, \"|\")).call(_context4, targetFormId, \"|m_fu_fo_edit\"),\n      disabled: !bosApi,\n      loading: btnLoadingState.edit,\n      type: \"primary\",\n      onClick: editAction\n    }, \"\\u7F16\\u8F91\"));\n  }, [deleteAuth, inputAuth, editAuth, formLock, viewAuth, pkId, pkIdRef.current, bosApi, deleteModal, copyAction, editAction, extraButton, btnLoadingState.delete, btnLoadingState.copy, btnLoadingState.edit]);\n\n  // 分享状态按钮列表\n  var footerNodeByShared = (0, _react.useMemo)(function () {\n    // 录入：提交；编辑：不能分享，不会进到这里来；查看：无按钮\n    if (status === 'addNew') {\n      return /*#__PURE__*/_react.default.createElement(_MobUI.BtnField, {\n        disabled: !bosApi,\n        type: \"primary\",\n        loading: btnLoadingState.save,\n        onClick: saveAction,\n        text: \"\\u63D0\\u4EA4\"\n      });\n    } else if (status === 'edit') {\n      return editButton;\n    } else if (status === 'view') {\n      return viewButton;\n    }\n    return null;\n  }, [status, bosApi, saveAction, btnLoadingState.save, editButton, viewButton]);\n\n  // 非分享状态按钮\n  var footerNodeByLogined = (0, _react.useMemo)(function () {\n    var buttons = {\n      view: viewButton,\n      edit: editButton,\n      copy: addNewButton,\n      addNew: addNewButton\n    };\n    return buttons[status || 'addNew'];\n  }, [status, viewButton, editButton, addNewButton]);\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _MobileFormDetailFooter.default.footer\n  }, !isSharePage ? footerNodeByLogined : footerNodeByShared);\n});\nvar _default = exports[\"default\"] = MobileFormDetailFooter;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/mobile/layout/apps/detail/MobileFormDetailFooter.tsx\n");

/***/ }),

/***/ "./src/mobile/pages/apps/detail/MobileDetailPage.tsx":
/*!***********************************************************!*\
  !*** ./src/mobile/pages/apps/detail/MobileDetailPage.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 _setTimeout2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set-timeout */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.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 _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/extends.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _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 _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _MobileDetailTurnPage = _interopRequireDefault(__webpack_require__(/*! ./MobileDetailTurnPage */ \"./src/mobile/pages/apps/detail/MobileDetailTurnPage.tsx\"));\nvar _MobileDetailPage = _interopRequireDefault(__webpack_require__(/*! ./MobileDetailPage.less */ \"./src/mobile/pages/apps/detail/MobileDetailPage.less\"));\nvar _kdesignm = __webpack_require__(/*! kd_libs/kdesignm1 */ \"webpack/container/remote/kd_libs/kdesignm1\");\nvar _FlowPopLayout = _interopRequireDefault(__webpack_require__(/*! @/mobile/layout/apps/detail/FlowPopLayout */ \"./src/mobile/layout/apps/detail/FlowPopLayout.tsx\"));\nvar _ShareButton = _interopRequireDefault(__webpack_require__(/*! @/mobile/component/common/ShareButton */ \"./src/mobile/component/common/ShareButton.tsx\"));\nvar _useFormMeta2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useFormMeta */ \"./src/hooks/useFormMeta.ts\"));\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _MobileFormDetailFooter = _interopRequireDefault(__webpack_require__(/*! @/mobile/layout/apps/detail/MobileFormDetailFooter */ \"./src/mobile/layout/apps/detail/MobileFormDetailFooter.tsx\"));\nvar _auth = __webpack_require__(/*! @/actions/auth */ \"./src/actions/auth.js\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-08-29 15:48:49\n * @LastEditTime: 2024-05-16 16:08:36\n * @Last Modified by: xiaoman_xie\n */\n\n// import { isEditStatus, openner } from '@/utils'\n// import { Checkbox } from 'kdesign-mobile'\n// import { deleteFormDataListItem } from '@/actions/apps'\n\n// import { WebMsg, BtnField as Button, Checkbox } from 'nocode_component/MobUI'\n\n// import useNavigate from '@/route/useNocodeNavigate'\n\n// import { Context } from '@/app'\n\n// const PAGE_STATUS = ['addNew', 'edit', 'view']\n\n/**\n * 表单详情\n * config status = 'edit'|'view'\n */\nvar NocodeEntry = (0, _react.lazy)(function () {\n  return __webpack_require__.e(/*! import() */ 7168).then(__webpack_require__.t.bind(__webpack_require__, /*! bos_core/Main */ \"webpack/container/remote/bos_core/Main\", 23));\n});\nvar isAddStatus = function isAddStatus(status) {\n  return status === 'addNew';\n};\nvar isEditStatus = function isEditStatus(status) {\n  return status === 'edit';\n};\nvar isViewStatus = function isViewStatus(status) {\n  return status === 'view';\n};\nvar MobileDetailPage = function MobileDetailPage(props) {\n  var _useFormMeta;\n  var _useState = (0, _react.useState)(props.title || ''),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    title = _useState2[0],\n    setTitle = _useState2[1];\n  // const checkboxRef:any = useRef(null)\n  // Status去掉默认值addNew，以后端发回的状态为准\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    appId = _useParams.appId,\n    targetFormId = _useParams.targetFormId,\n    pkId = _useParams.pkId,\n    Status = _useParams.Status,\n    shareId = _useParams.shareId,\n    procInstId = _useParams.procInstId,\n    userTaskActivityId = _useParams.userTaskActivityId,\n    userTaskBusinessKey = _useParams.userTaskBusinessKey,\n    userTaskCurrentUserId = _useParams.userTaskCurrentUserId;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state,\n    sendUiData = _useAppContext.sendUiData;\n  var userInfo = state.userInfo,\n    rootConfig = state.rootConfig;\n  var _useState3 = (0, _react.useState)(Status),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    status = _useState4[0],\n    setStatus = _useState4[1];\n  var _useState5 = (0, _react.useState)(false),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    visible = _useState6[0],\n    setVisible = _useState6[1];\n  // const [isNew, setIsNew] = useState(!pkId)\n  var _useState7 = (0, _react.useState)([]),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    approvalData = _useState8[0],\n    setApprovalData = _useState8[1]; // 审批列表\n  var _useState9 = (0, _react.useState)(false),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    loadApprova = _useState10[0],\n    setLoadApprova = _useState10[1];\n  // const bosRef = useRef<any>(null)\n  var turnPageBtnRef = (0, _react.useRef)(null);\n  var detailPageRef = (0, _react.useRef)(null);\n  // const navigate = useNavigate()\n  var _useState11 = (0, _react.useState)({}),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    shareInfo = _useState12[0],\n    setShareInfo = _useState12[1];\n  var _useState13 = (0, _react.useState)({}),\n    _useState14 = (0, _slicedToArray2.default)(_useState13, 2),\n    bosApi = _useState14[0],\n    setBosApi = _useState14[1];\n  var _useState15 = (0, _react.useState)(false),\n    _useState16 = (0, _slicedToArray2.default)(_useState15, 2),\n    authPending = _useState16[0],\n    setAuthPending = _useState16[1];\n  var _useState17 = (0, _react.useState)({}),\n    _useState18 = (0, _slicedToArray2.default)(_useState17, 2),\n    formAuth = _useState18[0],\n    setFormAuth = _useState18[1];\n  var _formAuth$add = formAuth.add,\n    inputAuth = _formAuth$add === void 0 ? true : _formAuth$add,\n    _formAuth$edit = formAuth.edit,\n    editAuth = _formAuth$edit === void 0 ? true : _formAuth$edit,\n    _formAuth$view = formAuth.view,\n    viewAuth = _formAuth$view === void 0 ? true : _formAuth$view,\n    _formAuth$delete = formAuth.delete,\n    deleteAuth = _formAuth$delete === void 0 ? true : _formAuth$delete,\n    editShareAuth = formAuth['edit-001'],\n    detailShareReqireLoginAuth = formAuth['view-004'],\n    detailShareNotReqireLoginAuth = formAuth['view-005'],\n    inputShareReqireLoginAuth = formAuth['add-002'],\n    inputShareNotReqireLoginAuth = formAuth['add-003'],\n    _formAuth$add_fixed = formAuth.add_fixed,\n    inputAuthFixed = _formAuth$add_fixed === void 0 ? false : _formAuth$add_fixed;\n  // 是否显示流程列表\n  var showFlowList = approvalData.length > 0;\n  var isNew = (0, _react.useMemo)(function () {\n    return status === 'addNew' || status === 'copy';\n  }, [status]);\n  var isEdit = (0, _react.useMemo)(function () {\n    return status === 'edit' || status === 'addNew';\n  }, [status]);\n  var isView = (0, _react.useMemo)(function () {\n    return status === 'view';\n  }, [status]);\n  var formLock = (0, _react.useMemo)(function () {\n    var _approvalData$;\n    // 当前是否为锁定单据\n    return ((_approvalData$ = approvalData[0]) === null || _approvalData$ === void 0 ? void 0 : _approvalData$.lockStatus) === '1';\n  }, [approvalData]);\n\n  // 路由跳转切换的时候这个状态需要改变\n  (0, _react.useEffect)(function () {\n    setStatus(Status);\n  }, [Status]);\n\n  // 获取表单记录的权限\n  var getFormAuthFn = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var _yield$getFormAuth, _yield$getFormAuth$ro, rows;\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, _auth.getFormAuth)(appId, targetFormId, pkId, procInstId, userTaskActivityId, userTaskBusinessKey, userTaskCurrentUserId);\n        case 3:\n          _yield$getFormAuth = _context.sent;\n          _yield$getFormAuth$ro = _yield$getFormAuth.rows;\n          rows = _yield$getFormAuth$ro === void 0 ? [] : _yield$getFormAuth$ro;\n          setFormAuth(rows[0] || []);\n          setAuthPending(true);\n          _context.next = 13;\n          break;\n        case 10:\n          _context.prev = 10;\n          _context.t0 = _context[\"catch\"](0);\n          console.log(_context.t0);\n        case 13:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee, null, [[0, 10]]);\n  })), [appId, targetFormId, pkId, procInstId, userTaskActivityId, userTaskBusinessKey, userTaskCurrentUserId]);\n  (0, _react.useEffect)(function () {\n    getFormAuthFn();\n  }, [getFormAuthFn]);\n  var noPermission = (0, _react.useMemo)(function () {\n    if (authPending && bosApi && userInfo) {\n      if (!inputAuth && isAddStatus(status)) return true;\n      // 查看和编辑的，如果有流程记录，直接绕过权限体系，认为是有权限的\n      if (!viewAuth && isViewStatus(status) && !showFlowList && loadApprova) return true;\n      if (!editAuth && isEditStatus(status) && !showFlowList && loadApprova) return true;\n      return false;\n    }\n    return false;\n  }, [authPending, bosApi, userInfo, formAuth, showFlowList, loadApprova]);\n\n  /**\n   * 请求审批列表\n   * @param entityNumber targetFormId\n   * @param businessKey pkId\n   */\n  var fetchFlowList = (0, _react.useCallback)(function () {\n    var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : pkId;\n    setLoadApprova(false);\n    (0, _apps.getApprovalInfo)({\n      entityNumber: targetFormId,\n      businessKey: id\n    }).then(function (res) {\n      setApprovalData((res === null || res === void 0 ? void 0 : res.rows) || []);\n      setLoadApprova(true);\n    });\n  }, [targetFormId, pkId]);\n  (0, _react.useEffect)(function () {\n    if (targetFormId && pkId) {\n      fetchFlowList();\n    }\n  }, [targetFormId, pkId, fetchFlowList]);\n  (0, _react.useEffect)(function () {\n    if (!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        var name = data.name,\n          backImage = data.backImage,\n          image = data.image;\n        setTitle(name);\n        setShareInfo({\n          shareAppImage: image,\n          backgroundImg: backImage\n        });\n      }).catch(function (err) {\n        console.error('出错了', err);\n      });\n    }\n  }, []);\n\n  // 只读时显示右铡上一条下一条按钮\n  // 更新标题\n  (0, _react.useEffect)(function () {\n    document.title = status === 'view' ? '详情' : '录入';\n    if (turnPageBtnRef.current && status === 'view') {\n      var handleScroll = function handleScroll() {\n        // 滚动的时候隐藏\n        if (targetElement.style.display !== 'none') {\n          targetElement.style.display = 'none';\n        }\n        window.clearTimeout(scrollTimer);\n        scrollTimer = (0, _setTimeout2.default)(function () {\n          targetElement.style.display = 'flex';\n        }, 300);\n      };\n      var element = detailPageRef.current;\n      var targetElement = turnPageBtnRef.current;\n      var scrollTimer = null;\n      element === null || element === void 0 || element.addEventListener('scroll', handleScroll, true);\n      return function () {\n        element === null || element === void 0 || element.removeEventListener('scroll', handleScroll, true);\n      };\n    }\n  }, [status, detailPageRef.current, turnPageBtnRef.current]);\n\n  // BOS挂载上后, 获取表单状态\n  var onRef = (0, _react.useCallback)(function (handle) {\n    if (handle) {\n      setBosApi(handle);\n      var _status = handle === null || handle === void 0 ? void 0 : handle.getPageStatus();\n      _status && setStatus(_status);\n    }\n  }, []);\n\n  // 表单状态变化的回调函数\n  var onStatusChange = (0, _react.useCallback)(function (info) {\n    setStatus(info);\n  }, [setStatus]);\n  var needLoginLink = (0, _react.useMemo)(function () {\n    if (!pkId || status === 'addNew') {\n      var _context2;\n      return (0, _concat.default)(_context2 = \"/\".concat(appId, \"/detail/\")).call(_context2, targetFormId);\n    } else {\n      var _context6, _context7;\n      if (status) {\n        var _context3, _context4, _context5;\n        return (0, _concat.default)(_context3 = (0, _concat.default)(_context4 = (0, _concat.default)(_context5 = \"/\".concat(appId, \"/detail/\")).call(_context5, targetFormId, \"/\")).call(_context4, pkId, \"/\")).call(_context3, status);\n      }\n      return (0, _concat.default)(_context6 = (0, _concat.default)(_context7 = \"/\".concat(appId, \"/detail/\")).call(_context7, targetFormId, \"/\")).call(_context6, pkId);\n    }\n  }, [appId, targetFormId, pkId, status]);\n  var showShare = (0, _react.useMemo)(function () {\n    return isEdit ? isNew ? inputShareReqireLoginAuth || inputShareNotReqireLoginAuth : editShareAuth : detailShareReqireLoginAuth || detailShareNotReqireLoginAuth;\n  }, [status, detailShareReqireLoginAuth, detailShareNotReqireLoginAuth, inputShareNotReqireLoginAuth, inputShareReqireLoginAuth]);\n  var config = (0, _react.useMemo)(function () {\n    var initStatus = Status || 'addNew';\n    var option = {\n      formId: 'bos_nocode_bill',\n      targetFormId: targetFormId,\n      Status: initStatus,\n      pkId: pkId,\n      appId: appId,\n      procInstId: procInstId\n    };\n    if (userTaskActivityId && userTaskBusinessKey) {\n      option.userTaskActivityId = userTaskActivityId;\n      option.userTaskBusinessKey = userTaskBusinessKey;\n      option.userTaskCurrentUserId = userTaskCurrentUserId;\n    }\n    return option;\n  }, [pkId]);\n\n  // 翻阅下一条记录时，重新LOAD动态表单\n  (0, _react.useEffect)(function () {\n    var _bosApi$loadPage;\n    bosApi === null || bosApi === void 0 || (_bosApi$loadPage = bosApi.loadPage) === null || _bosApi$loadPage === void 0 || _bosApi$loadPage.call(bosApi, config);\n  }, [config]);\n  var customStyle = (_useFormMeta = (0, _useFormMeta2.default)(targetFormId)) === null || _useFormMeta === void 0 ? void 0 : _useFormMeta.customStyle;\n  var withCustomBg = customStyle && (shareInfo === null || shareInfo === void 0 ? void 0 : shareInfo.backgroundImg);\n\n  // console.log('Mobiledetailpage', status)\n  if (!(rootConfig !== null && rootConfig !== void 0 && rootConfig.pageId)) return null;\n  if (noPermission) return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Navigate, {\n    to: \"/noPermission\",\n    replace: true\n  });\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _MobileDetailPage.default.container,\n    ref: detailPageRef\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _MobileDetailPage.default.main\n  }, !shareId && showShare && /*#__PURE__*/_react.default.createElement(_ShareButton.default, (0, _extends2.default)({\n    style: {\n      top: withCustomBg ? 23 : 18\n    },\n    withCustomBg: withCustomBg,\n    targetFormId: targetFormId,\n    className: _MobileDetailPage.default.shareButton,\n    shareTitle: title,\n    shareByPeople: userInfo === null || userInfo === void 0 ? void 0 : userInfo.name,\n    needLoginLink: [\"nocode\", '/m', needLoginLink, window.location.search].join(''),\n    hasNoLogingSetting: !(status === 'edit' && !isNew && pkId),\n    shareReqireLogin: isEdit && !isNew ? editShareAuth : isView ? detailShareReqireLoginAuth : inputShareReqireLoginAuth,\n    shareNotReqireLogin: isEdit && !isNew ? editShareAuth : isView ? detailShareNotReqireLoginAuth : inputShareNotReqireLoginAuth,\n    config: {\n      appId: appId,\n      targetFormId: targetFormId,\n      Status: status || 'addNew'\n    }\n  }, shareInfo)), /*#__PURE__*/_react.default.createElement(_react.Suspense, {\n    fallback: /*#__PURE__*/_react.default.createElement(\"div\", null)\n  }, /*#__PURE__*/_react.default.createElement(NocodeEntry, {\n    onRef: onRef,\n    config: config,\n    device: \"mobile\",\n    options: {\n      onStatusChange: onStatusChange,\n      sendUiData: sendUiData,\n      rootConfig: rootConfig\n    }\n  }))), /*#__PURE__*/_react.default.createElement(_MobileFormDetailFooter.default, {\n    status: status,\n    bosApi: bosApi,\n    authList: {\n      deleteAuth: deleteAuth,\n      inputAuth: inputAuth,\n      editAuth: editAuth,\n      viewAuth: viewAuth\n    },\n    config: config,\n    isSharePage: !userInfo,\n    formLock: formLock,\n    inputAuthFixed: inputAuthFixed,\n    fetchFlowList: fetchFlowList,\n    extraButton: function extraButton() {\n      var _context8;\n      return !!approvalData.length && /*#__PURE__*/_react.default.createElement(\"div\", {\n        className: _MobileDetailPage.default.flow_btn,\n        \"data-nc-action\": (0, _concat.default)(_context8 = \"\".concat(appId, \"|\")).call(_context8, targetFormId, \"|m_fu_fr\"),\n        onClick: function onClick() {\n          return setVisible(true);\n        }\n      }, /*#__PURE__*/_react.default.createElement(_kdesignm.Badge, {\n        dot: true\n      }, /*#__PURE__*/_react.default.createElement(_kdesignm.Icon, {\n        type: \"liucheng\",\n        prefix: \"nocodeplatformicon\"\n      })), /*#__PURE__*/_react.default.createElement(\"p\", null, \"\\u6D41\\u7A0B\\u8BB0\\u5F55\"));\n    },\n    setStatus: setStatus\n  })), status === 'view' && /*#__PURE__*/_react.default.createElement(_MobileDetailTurnPage.default, {\n    ref: turnPageBtnRef,\n    viewAuth: viewAuth\n  }), !!approvalData.length && /*#__PURE__*/_react.default.createElement(_FlowPopLayout.default, {\n    data: approvalData,\n    visible: visible,\n    config: config,\n    onClose: function onClose() {\n      return setVisible(false);\n    }\n  }));\n};\nvar _default = exports[\"default\"] = MobileDetailPage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/mobile/pages/apps/detail/MobileDetailPage.tsx\n");

/***/ }),

/***/ "./src/mobile/pages/apps/detail/MobileDetailTurnPage.tsx":
/*!***************************************************************!*\
  !*** ./src/mobile/pages/apps/detail/MobileDetailTurnPage.tsx ***!
  \***************************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _indexOf = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/index-of */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesignm = __webpack_require__(/*! kd_libs/kdesignm1 */ \"webpack/container/remote/kd_libs/kdesignm1\");\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _menuTableActions = __webpack_require__(/*! @/utils/menuTableActions */ \"./src/utils/menuTableActions.ts\");\nvar _env = __webpack_require__(/*! @/constants/env */ \"./src/constants/env.js\");\nvar _actionNames = __webpack_require__(/*! @/reducer/actionNames */ \"./src/reducer/actionNames.js\");\nvar _useNocodeNavigate = _interopRequireDefault(__webpack_require__(/*! @/route/useNocodeNavigate */ \"./src/route/useNocodeNavigate.ts\"));\nvar _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\nvar _MobileDetailTurnPage = _interopRequireDefault(__webpack_require__(/*! ./MobileDetailTurnPage.less */ \"./src/mobile/pages/apps/detail/MobileDetailTurnPage.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\nvar isUndefined = function isUndefined(value) {\n  return typeof value === 'undefined';\n};\nvar getItemIdList = function getItemIdList(list) {\n  if (!list || (list === null || list === void 0 ? void 0 : list.length) === 0) return [];\n  return (0, _map.default)(list).call(list, function (item) {\n    return item.id;\n  });\n};\n\n/**\n * 移动端翻页\n */\nvar MobileDetailTurnPage = (0, _react.memo)((0, _react.forwardRef)(function (_ref, ref) {\n  var _context4, _context5;\n  var viewAuth = _ref.viewAuth;\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    targetFormId = _useParams.targetFormId,\n    appId = _useParams.appId,\n    _useParams$pkId = _useParams.pkId,\n    pkId = _useParams$pkId === void 0 ? '' : _useParams$pkId; // 应用ID\n  var navigate = (0, _useNocodeNavigate.default)();\n  var _useContext = (0, _react.useContext)(_app.Context),\n    _useContext$state = _useContext.state,\n    state = _useContext$state === void 0 ? {} : _useContext$state,\n    dispatch = _useContext.dispatch;\n  var innerRef = ref || (0, _react.useRef)(null);\n  var _state$mobileAppHomeD = state.mobileAppHomeData,\n    mobileAppHomeData = _state$mobileAppHomeD === void 0 ? {} : _state$mobileAppHomeD;\n  var data = mobileAppHomeData.data,\n    pageNo = mobileAppHomeData.pageNo,\n    pageSize = mobileAppHomeData.pageSize,\n    lastPage = mobileAppHomeData.lastPage,\n    listItemConfig = mobileAppHomeData.listItemConfig,\n    listFilters = mobileAppHomeData.listFilters,\n    searchKeywords = mobileAppHomeData.searchKeywords;\n  var _useState = (0, _react.useState)(getItemIdList(data)),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    pkIdList = _useState2[0],\n    setPkIdList = _useState2[1];\n  var pkIdListLen = pkIdList.length;\n\n  // pkIdListLen为1那就是只有一条记录，不需要翻页\n  // 新增编辑，查看详情的时候没有pkId\n  if (!pkId || pkIdListLen <= 1 || isUndefined(data) && isUndefined(pageNo) && isUndefined(pageSize)) {\n    return null;\n  }\n\n  // 翻页使用路由跳转的方式\n  var jumpDetail = function jumpDetail(pkId) {\n    var _context, _context2;\n    navigate((0, _concat.default)(_context = (0, _concat.default)(_context2 = \"/m/\".concat(appId, \"/detail/\")).call(_context2, targetFormId, \"/\")).call(_context, pkId, \"/view\"), {\n      replace: true\n    });\n  };\n\n  // 请求更多的表单数据信息\n  var queryMoreFormList = /*#__PURE__*/function () {\n    var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var _yield$loadFormListWi, dataSource, newPageSize, newPageNo, newLastPage, newData, nextPkIdList;\n      return _regenerator.default.wrap(function _callee$(_context3) {\n        while (1) switch (_context3.prev = _context3.next) {\n          case 0:\n            _context3.prev = 0;\n            _context3.next = 3;\n            return (0, _menuTableActions.loadFormListWithParams)({\n              appId: appId,\n              formId: targetFormId,\n              env: _env.ENV_APP,\n              pageNo: pageNo + 1,\n              pageSize: pageSize,\n              listItemConfig: listItemConfig,\n              listFilters: listFilters,\n              searchKeywords: searchKeywords,\n              viewAuth: viewAuth\n            });\n          case 3:\n            _yield$loadFormListWi = _context3.sent;\n            dataSource = _yield$loadFormListWi.dataSource;\n            newPageSize = _yield$loadFormListWi.pageSize;\n            newPageNo = _yield$loadFormListWi.pageNo;\n            newLastPage = _yield$loadFormListWi.lastPage;\n            if (dataSource.length > 0) {\n              // 合并之前的数据\n              newData = (0, _concat.default)(data).call(data, dataSource);\n              dispatch({\n                type: _actionNames.UPDATE_MOBILE_APPHOMEDATA,\n                payload: _objectSpread(_objectSpread({}, mobileAppHomeData), {}, {\n                  pageNo: newPageNo + 1,\n                  pageSize: newPageSize,\n                  data: newData,\n                  lastPage: newLastPage\n                })\n              });\n              nextPkIdList = getItemIdList(dataSource);\n              jumpDetail(nextPkIdList[0]);\n              setPkIdList((0, _concat.default)(pkIdList).call(pkIdList, nextPkIdList));\n            }\n            _context3.next = 14;\n            break;\n          case 11:\n            _context3.prev = 11;\n            _context3.t0 = _context3[\"catch\"](0);\n            console.warn('queryMoreFormList 请求数据失败', _context3.t0);\n          case 14:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee, null, [[0, 11]]);\n    }));\n    return function queryMoreFormList() {\n      return _ref2.apply(this, arguments);\n    };\n  }();\n\n  // 上一页详情\n  var toPrePageDetail = function toPrePageDetail() {\n    if (pkIdListLen > 1) {\n      var curIndex = (0, _indexOf.default)(pkIdList).call(pkIdList, pkId);\n      var preIndex = curIndex - 1; // 上一个index\n      if (preIndex !== -1) {\n        jumpDetail(pkIdList[preIndex]);\n      }\n    }\n  };\n\n  // 下一页详情\n  var toNextPageDetail = function toNextPageDetail() {\n    if (pkIdListLen > 1) {\n      var curIndex = (0, _indexOf.default)(pkIdList).call(pkIdList, pkId);\n      var nextIndex = curIndex + 1; // 下一个index\n      if (nextIndex !== pkIdListLen) {\n        // 下一个index还在已知的表单列表内的，直接跳转\n        jumpDetail(pkIdList[nextIndex]);\n      } else {\n        // 下一个index不在已知的表单列表内的，并且当前页不是最后一页，需要请求数据拿到最新的\n        if (!lastPage) {\n          // 请求下一页数据\n          queryMoreFormList();\n        }\n      }\n    }\n  };\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _MobileDetailTurnPage.default.turnpage,\n    ref: innerRef\n  }, /*#__PURE__*/_react.default.createElement(_kdesignm.Button, {\n    disabled: (0, _indexOf.default)(pkIdList).call(pkIdList, pkId) === 0 // 第一条是没有上一页的\n    ,\n    onClick: toPrePageDetail,\n    className: _MobileDetailTurnPage.default.turnpage_btn,\n    size: \"large\",\n    type: \"primary\",\n    shape: \"circle\",\n    \"data-nc-action\": (0, _concat.default)(_context4 = \"\".concat(appId, \"|\")).call(_context4, targetFormId, \"|m_fu_fo_prev\")\n  }, /*#__PURE__*/_react.default.createElement(_kdesignm.Icon, {\n    className: _MobileDetailTurnPage.default.turnpage_btn_icon,\n    prefix: \"nocodeplatformicon\",\n    type: \"shuangjiantoushang\"\n  })), /*#__PURE__*/_react.default.createElement(_kdesignm.Button, {\n    disabled: lastPage && (0, _indexOf.default)(pkIdList).call(pkIdList, pkId) === pkIdListLen - 1,\n    onClick: toNextPageDetail,\n    className: _MobileDetailTurnPage.default.turnpage_btn,\n    size: \"large\",\n    type: \"primary\",\n    shape: \"circle\",\n    \"data-nc-action\": (0, _concat.default)(_context5 = \"\".concat(appId, \"|\")).call(_context5, targetFormId, \"|m_fu_fo_next\")\n  }, /*#__PURE__*/_react.default.createElement(_kdesignm.Icon, {\n    className: _MobileDetailTurnPage.default.turnpage_btn_icon,\n    prefix: \"nocodeplatformicon\",\n    type: \"shuangjiantouxia\"\n  })));\n}));\nMobileDetailTurnPage.displayName = 'MobileDetailTurnPage';\nvar _default = exports[\"default\"] = MobileDetailTurnPage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/mobile/pages/apps/detail/MobileDetailTurnPage.tsx\n");

/***/ })

}]);