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

/***/ "./src/web/component/common/ShareModal.less":
/*!**************************************************!*\
  !*** ./src/web/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\":\"_1LNk5w1O_sharemodal\",\"sharemodal_footer\":\"axPFi-co_sharemodal_footer\",\"sharemodal_footer_action_btn\":\"gr6v8Ojp_sharemodal_footer_action_btn\",\"sharemodal_body\":\"+3K4jlN2_sharemodal_body\",\"sharemodal_body_item\":\"fOVhw4SQ_sharemodal_body_item\",\"sharemodal_body_item_name\":\"n8Mi7rcc_sharemodal_body_item_name\",\"sharemodal_body_item_input\":\"BsEO50yZ_sharemodal_body_item_input\",\"sharemodal_body_item_content\":\"_5PkuYdVv_sharemodal_body_item_content\",\"poster_wrapper\":\"+OJTo7-8_poster_wrapper\",\"poster_img\":\"XH0BSZAz_poster_img\",\"poster_img_qrcode\":\"Lcyx6tSh_poster_img_qrcode\",\"poster_img_qrcode_content\":\"sS9zePAb_poster_img_qrcode_content\",\"qrcode_icon\":\"_4Dqcd+j8_qrcode_icon\",\"poster_element\":\"jrFuvcjb_poster_element\",\"poster_element_logo\":\"DPGVB7X9_poster_element_logo\",\"poster_element_content\":\"pkj-AFVp_poster_element_content\",\"poster_element_content_title\":\"_8Ojrz3JW_poster_element_content_title\",\"poster_element_content_detail\":\"+ib9mFDt_poster_element_content_detail\",\"name\":\"iv2NHCiB_name\",\"sharemodal_body_item_btnlist\":\"y853JyMR_sharemodal_body_item_btnlist\",\"sharemodal_body_item_btn\":\"_0JVjB0JM_sharemodal_body_item_btn\",\"sharemodal_body_item_datepicker\":\"_2Bo+h9n9_sharemodal_body_item_datepicker\",\"sharemodal_body_inline\":\"AkzbBbQQ_sharemodal_body_inline\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9jb21tb24vU2hhcmVNb2RhbC5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvY29tbW9uL1NoYXJlTW9kYWwubGVzcz9kNjgxIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wic2hhcmVtb2RhbFwiOlwiXzFMTms1dzFPX3NoYXJlbW9kYWxcIixcInNoYXJlbW9kYWxfZm9vdGVyXCI6XCJheFBGaS1jb19zaGFyZW1vZGFsX2Zvb3RlclwiLFwic2hhcmVtb2RhbF9mb290ZXJfYWN0aW9uX2J0blwiOlwiZ3I2djhPanBfc2hhcmVtb2RhbF9mb290ZXJfYWN0aW9uX2J0blwiLFwic2hhcmVtb2RhbF9ib2R5XCI6XCIrM0s0amxOMl9zaGFyZW1vZGFsX2JvZHlcIixcInNoYXJlbW9kYWxfYm9keV9pdGVtXCI6XCJmT1ZodzRTUV9zaGFyZW1vZGFsX2JvZHlfaXRlbVwiLFwic2hhcmVtb2RhbF9ib2R5X2l0ZW1fbmFtZVwiOlwibjhNaTdyY2Nfc2hhcmVtb2RhbF9ib2R5X2l0ZW1fbmFtZVwiLFwic2hhcmVtb2RhbF9ib2R5X2l0ZW1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ic2hhcmVtb2RhbF9ib2R5X2l0ZW1fYnRuXCI6XCJfMEpWakIwSk1fc2hhcmVtb2RhbF9ib2R5X2l0ZW1fYnRuXCIsXCJzaGFyZW1vZGFsX2JvZHlfaXRlbV9kYXRlcGlja2VyXCI6XCJfMkJvK2g5bjlfc2hhcmVtb2RhbF9ib2R5X2l0ZW1fZGF0ZXBpY2tlclwiLFwic2hhcmVtb2RhbF9ib2R5X2lubGluZVwiOlwiQWt6YkJiUVFfc2hhcmVtb2RhbF9ib2R5X2lubGluZVwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/common/ShareModal.less\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/*\n * @Description: 从storage中获取表单meta\n * @Author: xiaoman_xie\n * @Date: 2023-04-26 16:14:10\n * @LastEditTime: 2023-04-26 16:37:39\n * @Last Modified by: xiaoman_xie\n */\n\nvar useFormMeta = function useFormMeta(targetFormId) {\n  var _useState = (0, _react.useState)({}),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    meta = _useState2[0],\n    setMeta = _useState2[1];\n  var getMeta = (0, _react.useCallback)(function () {\n    var _JSON$parse;\n    if (!targetFormId) return;\n    var storage = window.localStorage.getItem('bos-core-' + targetFormId);\n    var formMeta = ((_JSON$parse = JSON.parse(storage)) === null || _JSON$parse === void 0 || (_JSON$parse = _JSON$parse.items) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) || {};\n    setMeta(formMeta);\n  }, [targetFormId]);\n\n  // 监听storage变化,重新设置背景\n  (0, _react.useLayoutEffect)(function () {\n    window.addEventListener('storage', function () {\n      return getMeta();\n    }, false);\n    return function () {\n      window.removeEventListener('storage', function () {});\n    };\n  }, []);\n  (0, _react.useEffect)(function () {\n    getMeta();\n  }, [targetFormId]);\n  return meta;\n};\nvar _default = exports[\"default\"] = useFormMeta;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlRm9ybU1ldGEudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBT0E7QUFQQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFHQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUFBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL2hvb2tzL3VzZUZvcm1NZXRhLnRzP2E1YTEiXSwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIEBEZXNjcmlwdGlvbjog5LuOc3RvcmFnZeS4reiOt+WPluihqOWNlW1ldGFcbiAqIEBBdXRob3I6IHhpYW9tYW5feGllXG4gKiBARGF0ZTogMjAyMy0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m1JZF0pXG5cbiAgcmV0dXJuIG1ldGFcbn1cblxuZXhwb3J0IGRlZmF1bHQgdXNlRm9ybU1ldGEiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/hooks/useFormMeta.ts\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\nvar _reactRouterDom = __webpack_require__(/*! react-router-dom */ \"../../node_modules/react-router-dom/index.js\");\nvar _urlUtil = __webpack_require__(/*! @/utils/urlUtil */ \"./src/utils/urlUtil.ts\");\nvar useNocodeNavigate = function useNocodeNavigate() {\n  var navigate = (0, _reactRouterDom.useNavigate)();\n  var location = (0, _reactRouterDom.useLocation)();\n  var search = location.search;\n  var nocodeNavigate = (0, _react.useCallback)(function (url, options) {\n    url = (0, _urlUtil.urlParamWithDebug)(url, search);\n    navigate(url, options);\n  }, [search, navigate]);\n  return nocodeNavigate;\n};\nvar _default = exports[\"default\"] = useNocodeNavigate;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvcm91dGUvdXNlTm9jb2RlTmF2aWdhdGUudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvcm91dGUvdXNlTm9jb2RlTmF2aWdhdGUudHM/M2E4YSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgdXNlTmF2aWdhdGUsIHVzZUxvY2F0aW9uIH0gZnJvbSAncmVhY3Qtcm91dGVyLWRvbSdcbmltcG9ydCB7IHVybFBhcmFtV2l0aERlYnVnIH0gZnJvbSAnQC91dGlscy91cmxVdGlsJ1xuXG5jb25zdCB1c2VOb2NvZGVOYXZpZ2F0ZSA9ICgpID0+IHtcbiAgY29uc3QgbmF2aWdhdGUgPSB1c2VOYXZpZ2F0ZSgpXG4gIGNvbnN0IGxvY2F0aW9uID0gdXNlTG9jYXRpb24oKVxuICBjb25zdCB7IHNlYXJjaCB9ID0gbG9jYXRpb25cblxuICBjb25zdCBub2NvZGVOYXZpZ2F0ZSA9IHVzZUNhbGxiYWNrKCh1cmwsIG9wdGlvbnM/OiBhbnkpID0+IHtcbiAgICB1cmwgPSB1cmxQYXJhbVdpdGhEZWJ1Zyh1cmwsIHNlYXJjaClcbiAgICBuYXZpZ2F0ZSh1cmwsIG9wdGlvbnMpXG4gIH0sIFtzZWFyY2gsIG5hdmlnYXRlXSlcbiAgcmV0dXJuIG5vY29kZU5hdmlnYXRlXG59XG5cbmV4cG9ydCBkZWZhdWx0IHVzZU5vY29kZU5hdmlnYXRlXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/route/useNocodeNavigate.ts\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.copy2Clipboard = copy2Clipboard;\nexports.copyDataToClipboard = copyDataToClipboard;\nvar _copyToClipboard = _interopRequireDefault(__webpack_require__(/*! copy-to-clipboard */ \"../../node_modules/copy-to-clipboard/index.js\"));\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-09-21 17:12:47\n * @LastEditTime: 2022-12-06 17:24:16\n * @Last Modified by: jianhang_he\n */\n/*\n * 剪贴板操作工具类\n * 依赖第三方库'copy-to-clipboard'(由北京研发引入)\n */\n\n/*\n * 复制内容到剪贴板\n */\nfunction copy2Clipboard(content, callback) {\n  try {\n    (0, _copyToClipboard.default)(content);\n    if (callback) {\n      callback();\n    }\n  } catch (e) {\n    console.error(e);\n  }\n}\n\n// 'copy-to-clipboard'库复制功能的实现用的是span标签，span标签会会过滤掉换行符'\\r\\n'中的\\r,导致粘贴到Excel表格中不会换行\n//  这里重新用textarea实现一个\nfunction copyDataToClipboard(data) {\n  executeOnTempElement(function (element) {\n    element.value = data;\n    element.select();\n    element.focus();\n    var result = document.execCommand('copy');\n    if (!result) {\n      console.warn('Browser did not allow document.execCommand(\\'copy\\')');\n    }\n  });\n}\nfunction executeOnTempElement(callback) {\n  var eTempInput = document.createElement('textarea');\n  eTempInput.style.width = '1px';\n  eTempInput.style.height = '1px';\n  eTempInput.style.top = '0px';\n  eTempInput.style.left = '0px';\n  eTempInput.style.position = 'absolute';\n  eTempInput.style.opacity = '0.0';\n  document.body.appendChild(eTempInput);\n  try {\n    callback(eTempInput);\n  } catch (err) {\n    console.warn('Browser does not support document.execCommand(\\'copy\\') for clipboard operations');\n  }\n  document.body.removeChild(eTempInput);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64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bGUuaGVpZ2h0ID0gJzFweCdcbiAgZVRlbXBJbnB1dC5zdHlsZS50b3AgPSAnMHB4J1xuICBlVGVtcElucHV0LnN0eWxlLmxlZnQgPSAnMHB4J1xuICBlVGVtcElucHV0LnN0eWxlLnBvc2l0aW9uID0gJ2Fic29sdXRlJ1xuICBlVGVtcElucHV0LnN0eWxlLm9wYWNpdHkgPSAnMC4wJ1xuXG4gIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoZVRlbXBJbnB1dClcblxuICB0cnkge1xuICAgIGNhbGxiYWNrKGVUZW1wSW5wdXQpXG4gIH0gY2F0Y2ggKGVycikge1xuICAgIGNvbnNvbGUud2FybignQnJvd3NlciBkb2VzIG5vdCBzdXBwb3J0IGRvY3VtZW50LmV4ZWNDb21tYW5kKFxcJ2NvcHlcXCcpIGZvciBjbGlwYm9hcmQgb3BlcmF0aW9ucycpXG4gIH1cblxuICBkb2N1bWVudC5ib2R5LnJlbW92ZUNoaWxkKGVUZW1wSW5wdXQpXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/clipboardUtil.js\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.encryptByBase64 = exports.encrypt = exports.decryptByBase64 = exports.decrypt = exports.KEY = exports.IV = void 0;\nexports.encryptUserActionData = encryptUserActionData;\nexports.getEncodeValue = exports.getDecodeValue = void 0;\nvar _stringify = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/json/stringify */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js\"));\nvar _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.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 _cryptoJs = _interopRequireDefault(__webpack_require__(/*! kd_libs/crypto-js */ \"webpack/container/remote/kd_libs/crypto-js\"));\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-06-26 10:39:12\n * @LastEditTime: 2023-06-26 10:39:58\n * @Last Modified by: jianhang_he\n */\n/**\n * 传输内容加密\n * npm install crypto-js\n */\n\n// import sha256 from 'crypto-js/sha256'\n// import { List, Map } from 'immutable'\n\nvar ALGONAME = 'AES'; // 加密算法\nvar KEY = exports.KEY = '091A126D76A4B595'; // 十六位十六进制的密钥，与后端约定好的\nvar IV = exports.IV = 'B5EFEB5E3226D81A'; // 十六位十六进制的偏移量，与后端约定好的\n\n// 加密是字符串,对象\\数组暂不支持\n// key十六位十六进制数作为密钥\n// iv十六位十六进制数作为偏移量\nvar encrypt = exports.encrypt = function encrypt(data, key, iv) {\n  key = _cryptoJs.default.enc.Utf8.parse(key);\n  iv = _cryptoJs.default.enc.Utf8.parse(iv);\n  // data = typeof data === \"object\" ? JSON.stringify(data) : data\n  data = _cryptoJs.default.enc.Utf8.parse(data);\n  var cfg = {\n    iv: iv,\n    mode: _cryptoJs.default.mode.CBC,\n    padding: _cryptoJs.default.pad.Pkcs7\n  };\n  var encrypted = _cryptoJs.default[ALGONAME].encrypt(data, key, cfg);\n  var decryptedStr = encrypted.ciphertext.toString().toUpperCase();\n  var hexStr = _cryptoJs.default.enc.Hex.parse(decryptedStr);\n  var base64Str = _cryptoJs.default.enc.Base64.stringify(hexStr);\n  return base64Str;\n};\n\n// 解密data 是字符串, 仅测试使用，前端不需要提供解密\nvar decrypt = exports.decrypt = function decrypt(data, key, iv) {\n  key = _cryptoJs.default.enc.Utf8.parse(key);\n  iv = _cryptoJs.default.enc.Utf8.parse(iv);\n  var cfg = {\n    iv: iv,\n    mode: _cryptoJs.default.mode.CBC,\n    padding: _cryptoJs.default.pad.Pkcs7\n  };\n  var decrypt = _cryptoJs.default[ALGONAME].decrypt(data, key, cfg);\n  var decryptedStr = decrypt.toString(_cryptoJs.default.enc.Utf8);\n  // decryptedStr = isObject ? JSON.parse(decryptedStr) : decryptedStr\n  var value = decryptedStr.toString();\n  return value;\n};\nvar getDecodeValue = exports.getDecodeValue = function getDecodeValue(value) {\n  if (!value) return value;\n  return decrypt(value, KEY, IV);\n};\nvar getEncodeValue = exports.getEncodeValue = function getEncodeValue(value) {\n  if (!value) return value;\n  return encrypt(value, KEY, IV);\n};\n\n// base64编码\nvar encryptByBase64 = exports.encryptByBase64 = function encryptByBase64(value) {\n  var valueStr = value;\n  if (Array.isArray(valueStr) || Object.prototype.toString.call(valueStr) === '[object Object]') {\n    valueStr = (0, _stringify.default)(valueStr);\n  }\n  var wordArray = _cryptoJs.default.enc.Utf8.parse(valueStr);\n  var base64Str = _cryptoJs.default.enc.Base64.stringify(wordArray);\n  return base64Str;\n};\n\n// base64解码\nvar decryptByBase64 = exports.decryptByBase64 = function decryptByBase64(value) {\n  var parsedWordArray = _cryptoJs.default.enc.Base64.parse(value);\n  var parsedStr = parsedWordArray.toString(_cryptoJs.default.enc.Utf8);\n  return parsedStr;\n};\n\n/**\n * 生成埋点数据签名\n * @des project 项目名\n * @des store 仓库名\n * @des time 时间戳\n * @des nonce 唯一标识\n * @des ce 加密码\n * @returns Promise\n */\nfunction encryptUserActionData(data) {\n  return new _promise.default(function (resolve, reject) {\n    try {\n      var _context, _context2, _context3;\n      var _ref = data || {},\n        time = _ref.time,\n        nonce = _ref.nonce,\n        ce = _ref.ce,\n        project = _ref.project,\n        store = _ref.store;\n      var srcStr = (0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = \"POST\\n%2Fladdercs%2Fladderlog\\nproject=\".concat(project, \"&store=\")).call(_context3, store, \"\\nx-api-nonce:\")).call(_context2, nonce, \"\\nx-api-timestamp:\")).call(_context, time, \"\\n\");\n      var sha256 = _cryptoJs.default.HmacSHA256(srcStr, ce); // hmac sha256加密\n      var hex = _cryptoJs.default.enc.Hex.stringify(sha256); // 转16进制\n      var signature = _cryptoJs.default.enc.Base64.stringify(_cryptoJs.default.enc.Utf8.parse(hex)); // 转base64\n      resolve({\n        nonce: nonce,\n        encrypt: signature\n      });\n    } catch (error) {\n      reject(error);\n    }\n  });\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/utils/crypto.ts\n");

/***/ }),

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

eval("\n\nvar _Object$keys = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\nvar _Object$getOwnPropertySymbols = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js\");\nvar _filterInstanceProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _Object$getOwnPropertyDescriptors = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js\");\nvar _Object$defineProperties = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.convertDomToImage = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _promise = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/promise */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/promise.js\"));\nfunction ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-12-07 14:05:21\n * @LastEditTime: 2023-03-31 16:58:06\n * @Last Modified by: jianhang_he\n */\n// import html2canvas from 'html2canvas'\n\n/**\n   * @description 转换dom为图片\n   */\nvar convertDomToImage = exports.convertDomToImage = function convertDomToImage(element) {\n  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n  return new _promise.default(function (resolve, reject) {\n    // 设置放大倍数\n    var canvas = document.createElement('canvas'); // 创建一个canvas节点\n    var context = canvas.getContext('2d');\n\n    // context.mozImageSmoothingEnabled = false\n    // context.webkitImageSmoothingEnabled = false\n    // context.msImageSmoothingEnabled = false\n\n    // 传入节点原始宽高\n    var _width = element.offsetWidth;\n    var _height = element.offsetHeight;\n    var width = options.width,\n      height = options.height,\n      scale = options.scale;\n    width = width || _width;\n    height = height || _height;\n    scale = scale || window.devicePixelRatio; // 定义任意放大倍数 支持小数\n    context.scale(scale, scale);\n    canvas.width = width * scale; // 定义canvas 宽度 * 缩放\n    canvas.height = height * scale; // 定义canvas高度 *缩放\n\n    // html2canvas配置项\n    var ops = _objectSpread({\n      scale: scale,\n      width: width,\n      height: height,\n      useCORS: true,\n      allowTaint: false,\n      dpi: 300\n    }, options);\n    __webpack_require__.e(/*! import() */ 5440).then(__webpack_require__.t.bind(__webpack_require__, /*! html2canvas */ \"../../node_modules/html2canvas/dist/html2canvas.js\", 23)).then(function (html2canvas) {\n      html2canvas.default(element, ops).then(function (canvas) {\n        // 返回图片的二进制数据\n        resolve(canvas.toDataURL('image/png'));\n      });\n    }).catch(function () {\n      console.error('加载html2canvas组件失败');\n    });\n  });\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvaHRtbFRvQ2FudmFzLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUN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hbnZhcycpLnRoZW4oKGh0bWwyY2FudmFzKSA9PiB7XG4gICAgICBodG1sMmNhbnZhcy5kZWZhdWx0KGVsZW1lbnQsIG9wcykudGhlbihjYW52YXMgPT4ge1xuICAgICAgICAvLyDov5Tlm57lm77niYfnmoTkuozov5vliLbmlbDmja5cbiAgICAgICAgcmVzb2x2ZShjYW52YXMudG9EYXRhVVJMKCdpbWFnZS9wbmcnKSlcbiAgICAgIH0pXG4gICAgfSkuY2F0Y2goKCkgPT4ge1xuICAgICAgY29uc29sZS5lcnJvcign5Yqg6L29aHRtbDJjYW52YXPnu4Tku7blpLHotKUnKVxuICAgIH0pXG4gIH0pXG59XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/htmlToCanvas.ts\n");

/***/ }),

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

eval("\n\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.urlParamWithDebug = void 0;\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar keepSearchKeys = ['kdweb_debug', 'kdweb_cdn', 'kdcdc'];\nvar urlParamWithDebug = exports.urlParamWithDebug = function urlParamWithDebug(url, search) {\n  for (var i = 0; i < keepSearchKeys.length; i++) {\n    if (search !== null && search !== void 0 && (0, _includes.default)(search).call(search, keepSearchKeys[i])) {\n      return (0, _concat.default)(url).call(url, search);\n    }\n  }\n  return url;\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvdXJsVXRpbC50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3V0aWxzL3VybFV0aWwudHM/N2E0ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBrZWVwU2VhcmNoS2V5cyA9IFsna2R3ZWJfZGVidWcnLCAna2R3ZWJfY2RuJywgJ2tkY2RjJ11cbmNvbnN0IHVybFBhcmFtV2l0aERlYnVnID0gKHVybCwgc2VhcmNoKSA9PiB7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwga2VlcFNlYXJjaEtleXMubGVuZ3RoOyBpKyspIHtcbiAgICBpZiAoc2VhcmNoPy5pbmNsdWRlcyhrZWVwU2VhcmNoS2V5c1tpXSkpIHtcbiAgICAgIHJldHVybiB1cmwuY29uY2F0KHNlYXJjaClcbiAgICB9XG4gIH1cbiAgcmV0dXJuIHVybFxufVxuXG5leHBvcnQgeyB1cmxQYXJhbVdpdGhEZWJ1ZyB9XG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/urlUtil.ts\n");

/***/ }),

/***/ "./src/web/component/common/ShareModal.tsx":
/*!*************************************************!*\
  !*** ./src/web/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.getShareContent = exports[\"default\"] = exports.ShareContent = void 0;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.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 _replaceAll = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js/instance/replace-all */ \"../../node_modules/@babel/runtime-corejs3/core-js/instance/replace-all.js\"));\nvar _includes = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\"));\nvar _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _qrcode = _interopRequireDefault(__webpack_require__(/*! qrcode.react */ \"../../node_modules/qrcode.react/lib/esm/index.js\"));\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _clipboardUtil = __webpack_require__(/*! @/utils/clipboardUtil */ \"./src/utils/clipboardUtil.js\");\nvar _htmlToCanvas = __webpack_require__(/*! @/utils/htmlToCanvas */ \"./src/utils/htmlToCanvas.ts\");\nvar _WebUI = __webpack_require__(/*! nocode_component/WebUI */ \"webpack/container/remote/nocode_component/WebUI\");\nvar _share_default_bg = _interopRequireDefault(__webpack_require__(/*! @@/assets/img/share_default_bg.png */ \"./assets/img/share_default_bg.png\"));\nvar _apps = __webpack_require__(/*! @/actions/apps */ \"./src/actions/apps.ts\");\nvar _crypto = __webpack_require__(/*! @/utils/crypto */ \"./src/utils/crypto.ts\");\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _ShareModal = _interopRequireDefault(__webpack_require__(/*! ./ShareModal.less */ \"./src/web/component/common/ShareModal.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/**\n * 获取天数对应的毫秒级\n * @param day 天数\n * @returns\n */\nvar getMillisecond = function getMillisecond(day) {\n  // 86400000为一天的毫秒 24 * 60 * 60 * 1000\n  return +day * 86400000;\n};\n\n/**\n * 获取分享内容\n * 1、表单的详情页、编辑页、录入页才能够进行免登分享、分享弹窗分为两步操作\n * 2、其他页面的分享，去掉免登选项，可以直接查看分享链接和二维码图片\n * 3、免登录链接需要配置有效期、非免登分享不需要设置有效期\n * @param {*} param0\n * @returns\n */\nvar getShareContent = exports.getShareContent = function getShareContent(_ref) {\n  var _context, _context2, _context3;\n  var shareLink = _ref.shareLink,\n    shareTitle = _ref.shareTitle,\n    shareByPeople = _ref.shareByPeople,\n    expiration = _ref.expiration;\n  return (0, _concat.default)(_context = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = \"\".concat(shareLink || '', \"\\n\\u5206\\u4EAB\\u6807\\u9898\\uFF1A\")).call(_context3, shareTitle, \"\\n\\u5206\\u4EAB\\u4EBA\\uFF1A\")).call(_context2, shareByPeople, \"\\n\")).call(_context, expiration ? '链接有效期至：' + expiration : '');\n};\nvar ShareFooterBtn = function ShareFooterBtn(_ref2) {\n  var _context4;\n  var appId = _ref2.appId,\n    formId = _ref2.formId,\n    onCancel = _ref2.onCancel,\n    onOk = _ref2.onOk;\n  return /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_footer\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_footer_action\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: onCancel,\n    size: \"small\",\n    className: _ShareModal.default.sharemodal_footer_action_btn\n  }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    onClick: onOk,\n    \"data-nc-action\": (0, _concat.default)(_context4 = \"\".concat(appId, \"|\")).call(_context4, formId, \"|ss_gk\"),\n    size: \"small\",\n    type: \"primary\",\n    className: _ShareModal.default.sharemodal_footer_action_btn\n  }, \"\\u751F\\u6210\\u94FE\\u63A5\")));\n};\n/**\n * 渲染分享弹窗内容\n **/\nvar ShareContent = exports.ShareContent = function ShareContent(shareInfo) {\n  var _context7, _context8;\n  var fullShareLinkProps = shareInfo.fullShareLink,\n    shareTitle = shareInfo.shareTitle,\n    shareByPeople = shareInfo.shareByPeople,\n    validTime = shareInfo.validTime,\n    bgImage = shareInfo.bgImage,\n    shareAppImage = shareInfo.shareAppImage,\n    appId = shareInfo.appId,\n    formId = shareInfo.formId;\n  var posterElementRef = (0, _react.useRef)();\n  var fullShareLink = (0, _react.useMemo)(function () {\n    return (0, _utils.getUrlWithDataCenter)(fullShareLinkProps);\n  }, [fullShareLinkProps]);\n\n  /**\n  * 下载图片\n  */\n  var downloadPoster = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var fileName, imgBlobData;\n      return _regenerator.default.wrap(function _callee$(_context5) {\n        while (1) switch (_context5.prev = _context5.next) {\n          case 0:\n            // 这里需要把.去掉，要不会作为文件后缀名（产品确认）\n            fileName = (shareTitle === null || shareTitle === void 0 ? void 0 : (0, _replaceAll.default)(shareTitle).call(shareTitle, '.', '')) || '表单分享海报'; // 调用函数，取到截图的二进制数据，对图片进行处理（保存本地、展示等）\n            _context5.next = 3;\n            return (0, _htmlToCanvas.convertDomToImage)(posterElementRef.current, {\n              scale: 2\n            });\n          case 3:\n            imgBlobData = _context5.sent;\n            (0, _utils.download)(imgBlobData, fileName);\n          case 5:\n          case \"end\":\n            return _context5.stop();\n        }\n      }, _callee);\n    }));\n    return function downloadPoster() {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n\n  /**\n   * 复制链接到剪贴板\n  */\n  var copyShareContent = /*#__PURE__*/function () {\n    var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {\n      var shareContent;\n      return _regenerator.default.wrap(function _callee2$(_context6) {\n        while (1) switch (_context6.prev = _context6.next) {\n          case 0:\n            try {\n              shareContent = getShareContent({\n                shareLink: fullShareLink,\n                shareTitle: shareTitle,\n                shareByPeople: shareByPeople,\n                expiration: 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 _context6.stop();\n        }\n      }, _callee2);\n    }));\n    return function copyShareContent() {\n      return _ref4.apply(this, arguments);\n    };\n  }();\n\n  // 二维码移动端地址\n  var qrCodeMbUrl = (0, _react.useMemo)(function () {\n    // devtest的特殊\n    if ((0, _includes.default)(fullShareLink).call(fullShareLink, '/m')) return fullShareLink;\n    if ((0, _includes.default)(fullShareLink).call(fullShareLink, \"/nocode/\".concat(\"nocode\", \"/\"))) {\n      return fullShareLink.replace(\"/nocode/\".concat(\"nocode\", \"/\"), \"/nocode/\".concat(\"nocode\", \"/m\"));\n    }\n    return fullShareLink.replace(\"/\".concat(\"nocode\", \"/\"), \"/\".concat(\"nocode\", \"/m/\"));\n  }, [fullShareLink]);\n  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_body_item\n  }, /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _ShareModal.default.sharemodal_body_item_name\n  }, \"\\u901A\\u8FC7\\u94FE\\u63A5\\u5206\\u4EAB\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_body_item_content\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n    value: fullShareLink,\n    className: _ShareModal.default.sharemodal_body_item_input,\n    size: \"large\",\n    borderType: \"bordered\"\n    // onChange={handleShareTitleChange}\n    ,\n    disabled: true\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_body_item_btnlist\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"primary\",\n    onClick: copyShareContent,\n    className: _ShareModal.default.sharemodal_body_item_btn,\n    \"data-nc-action\": (0, _concat.default)(_context7 = \"\".concat(appId, \"|\")).call(_context7, formId, \"|sl_cl\")\n  }, \"\\u590D\\u5236\\u94FE\\u63A5\")))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_body_item\n  }, /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _ShareModal.default.sharemodal_body_item_name\n  }, \"\\u901A\\u8FC7\\u4E8C\\u7EF4\\u7801\\u5206\\u4EAB\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_body_item_content\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.poster_wrapper,\n    ref: posterElementRef\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.poster_img,\n    style: {\n      backgroundImage: \"url(\".concat(bgImage ? (0, _utils.getUrlWithDataCenter)(bgImage) : _share_default_bg.default, \")\")\n    }\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.poster_img_qrcode\n  }, /*#__PURE__*/_react.default.createElement(_qrcode.default, {\n    className: _ShareModal.default.poster_img_qrcode_content,\n    value: qrCodeMbUrl,\n    size: 96 // 实际上生成的是高清晰度的二维码，只是尺寸写了48，可以看样式poster_img_qrcode_content\n    ,\n    bgColor: \"#ffffff\",\n    fgColor: \"#000000\"\n  }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.poster_element\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.Image, {\n    className: _ShareModal.default.poster_element_logo,\n    src: shareAppImage ? (0, _utils.getUrlWithDataCenter)((0, _utils.getFullUrl)(shareAppImage)) : ''\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.poster_element_content\n  }, /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _ShareModal.default.poster_element_content_title,\n    title: shareTitle\n  }, shareTitle), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.poster_element_content_detail\n  }, /*#__PURE__*/_react.default.createElement(\"p\", {\n    className: _ShareModal.default.name,\n    title: shareByPeople\n  }, \"\\u5206\\u4EAB\\u4EBA: \", /*#__PURE__*/_react.default.createElement(\"span\", null, shareByPeople)), validTime && /*#__PURE__*/_react.default.createElement(\"span\", null, \"\\u4E8C\\u7EF4\\u7801\\u6709\\u6548\\u671F\\u81F3\\uFF1A\", validTime))))), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _ShareModal.default.sharemodal_body_item_btnlist\n  }, /*#__PURE__*/_react.default.createElement(_WebUI.BtnField, {\n    type: \"primary\",\n    onClick: downloadPoster,\n    className: _ShareModal.default.sharemodal_body_item_btn,\n    \"data-nc-action\": (0, _concat.default)(_context8 = \"\".concat(appId, \"|\")).call(_context8, formId, \"|sl_dp\")\n  }, \"\\u4E0B\\u8F7D\\u56FE\\u7247\")))));\n};\nvar ShareModal = function ShareModal(_ref5) {\n  var visible = _ref5.visible,\n    onCancel = _ref5.onCancel,\n    onOk = _ref5.onOk,\n    bodyStyle = _ref5.bodyStyle,\n    needLoginLink = _ref5.needLoginLink,\n    shareByPeople = _ref5.shareByPeople,\n    shareAppImage = _ref5.shareAppImage,\n    _ref5$expiration = _ref5.expiration,\n    expiration = _ref5$expiration === void 0 ? '' : _ref5$expiration,\n    defaultShareTitle = _ref5.shareTitle,\n    formid = _ref5.formid,\n    fileServer = _ref5.fileServer,\n    allowNoAuth = _ref5.allowNoAuth,\n    formData = _ref5.formData,\n    config = _ref5.config,\n    shareReqireLogin = _ref5.shareReqireLogin,\n    shareNotReqireLogin = _ref5.shareNotReqireLogin;\n  var _useState = (0, _react.useState)(defaultShareTitle),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    shareTitle = _useState2[0],\n    setShareTitle = _useState2[1]; // 链接名称\n  var _useState3 = (0, _react.useState)(!shareNotReqireLogin),\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    expireDay = _useState6[0],\n    setExpireDay = _useState6[1]; // 有效天数 默认是1天\n  var _useState7 = (0, _react.useState)({}),\n    _useState8 = (0, _slicedToArray2.default)(_useState7, 2),\n    shareData = _useState8[0],\n    setShareData = _useState8[1];\n  var _useState9 = (0, _react.useState)('0'),\n    _useState10 = (0, _slicedToArray2.default)(_useState9, 2),\n    inputMode = _useState10[0],\n    setInputMode = _useState10[1]; // 录入时的分享模式，默认是【允许多次填写】\n  var _useState11 = (0, _react.useState)(),\n    _useState12 = (0, _slicedToArray2.default)(_useState11, 2),\n    exactTime = _useState12[0],\n    setExactTime = _useState12[1];\n  var urlParamsRef = (0, _react.useRef)('');\n  var path = shareData.url || needLoginLink;\n  var fullShareLink = (0, _react.useMemo)(function () {\n    var _context9;\n    var url = window.location.origin + (0, _utils.getFullUrl)(path[0] === '/' ? (0, _slice.default)(path).call(path, 1) : path);\n    if ((0, _includes.default)(url).call(url, '?')) {\n      return url;\n    }\n\n    // 拼接回params\n    return (0, _concat.default)(_context9 = \"\".concat(url)).call(_context9, urlParamsRef.current ? '?' + urlParamsRef.current : '');\n  }, [path]);\n  var appId = config.appId,\n    targetFormId = config.targetFormId,\n    Status = config.Status;\n\n  // useEffect(() => {\n  //   setShareTitle(defaultShareTitle)\n  // }, [defaultShareTitle])\n\n  /**\n   * 创建海报blod\n   */\n  // const createPosterBlodFromDom = async () => {\n  //   const blobData = await convertDomToImage(posterElementRef.current)\n\n  //   setPosterBlodData(blobData)\n  // }\n\n  // useEffect(() => {\n  //   createPosterBlodFromDom()\n  // }, [shareTitle, shareLink])\n\n  /**\n   * @description 改变分享名称\n   */\n  var handleShareTitleChange = (0, _react.useCallback)(function (e) {\n    setShareTitle(e.target.value);\n  }, []);\n\n  /**\n   * @description 是否需要登录切换\n   */\n  var handleNeedLoginChange = function handleNeedLoginChange(e) {\n    var value = e.target.value;\n    setNeedLogin(value === 'needLogin');\n  };\n\n  /**\n   * @description 切换有效期\n   */\n  var handleExpireChange = function handleExpireChange(e) {\n    var value = e.target.value;\n    setExpireDay(Number(value));\n  };\n  var handleInputModeChange = function handleInputModeChange(e) {\n    var value = e.target.value;\n    setInputMode(value);\n  };\n  var backImageUrl = (0, _react.useMemo)(function () {\n    return (0, _utils.getBackImageUrl)(fileServer.imageUrl, formData.backImage);\n  }, [fileServer.imageUrl, formData.backImage]);\n  var handleClickCreateLink = function handleClickCreateLink() {\n    var _needLoginLink;\n    // 如果是需要登录的，那么直接就是当前地址url\n    if (needLogin) {\n      setShareData({\n        url: needLoginLink\n      });\n      return;\n    }\n    var validTime = (0, _utils.getTimeAfterDay)(Math.abs(expireDay));\n    if (expireDay === -1) {\n      if (!exactTime) {\n        (0, _utils.showNotice)('error', '请选择自定义有效期');\n        return;\n      } else if (exactTime < new Date()) {\n        (0, _utils.showNotice)('error', '自定义有效期不能早于当前时间');\n        return;\n      }\n      validTime = exactTime;\n    }\n\n    // 安全需要加密\n    var encryptByBase64ValidTime = (0, _crypto.encryptByBase64)((0, _utils.getTimeDiff)(validTime) + '');\n    console.log('encryptByBase64ValidTime', encryptByBase64ValidTime);\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: shareTitle,\n      // 免登分享管理用数据\n      bgImage: formData.backImage,\n      // 免登分享管理用数据\n      icon: shareAppImage,\n      // 免登分享管理用数据\n      url: needLoginLink,\n      validTime: encryptByBase64ValidTime,\n      // 需要使用字符串\n      formId: targetFormId,\n      appId: appId,\n      type: Status\n    };\n    if (!needLogin && (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    }).catch(function (error) {\n      var errorCode = error.errorCode,\n        message = error.message;\n      if (errorCode || message) {\n        var _context10;\n        (0, _utils.showNotice)('error', (0, _concat.default)(_context10 = \"\\u751F\\u6210\\u94FE\\u63A5\\u5931\\u8D25: \".concat(errorCode, \",\")).call(_context10, message));\n      } else {\n        console.warn('生成链接失败', error);\n      }\n    });\n  };\n  var handleExactTimeChange = function handleExactTimeChange(value) {\n    setExactTime(value);\n  };\n\n  /**\n   * 复制图片\n   */\n  // const copyPoster = async () => {\n  //   // 调用函数，取到截图的二进制数据，对图片进行处理（保存本地、展示等）\n  //   const imgBlobData = await convertDomToImage(posterElementRef.current)\n  //   console.log('imgBlobData', imgBlobData)\n  // const str = imgBlobData.replace(/data:image\\/png;base64,/, '')\n  // const file = convertBase64ToBlob(str, 'image/png')\n\n  // try {\n  //   await navigator.clipboard.write([\n  //     new window.ClipboardItem({\n  //       'image/png': file\n  //     })\n  //   ])\n  //   console.log('Fetched image copied.')\n  // } catch (err) {\n  //   console.error(err.name, err.message)\n  // }\n  // }\n\n  /**\n   * 渲染分享配置内容\n   * @returns\n   */\n  var renderShareSettingContent = function renderShareSettingContent() {\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.sharemodal_body_item\n    }, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _ShareModal.default.sharemodal_body_item_name\n    }, \"\\u6807\\u9898\"), /*#__PURE__*/_react.default.createElement(_kdesign.Input, {\n      maxLength: 50,\n      value: shareTitle,\n      className: _ShareModal.default.sharemodal_body_item_input,\n      size: \"large\",\n      borderType: \"bordered\",\n      onChange: handleShareTitleChange\n    })), allowNoAuth && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.sharemodal_body_item\n    }, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _ShareModal.default.sharemodal_body_item_name\n    }, \"\\u5141\\u8BB8\\u514D\\u767B\\u5F55\", /*#__PURE__*/_react.default.createElement(\"span\", null, \"*\")), /*#__PURE__*/_react.default.createElement(_kdesign.Radio.Group, {\n      defaultValue: shareNotReqireLogin ? 'noLogin' : 'needLogin',\n      onChange: handleNeedLoginChange\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Radio, {\n      value: \"noLogin\",\n      disabled: !shareNotReqireLogin\n    }, \"\\u514D\\u767B\\u5F55\"), /*#__PURE__*/_react.default.createElement(_kdesign.Radio, {\n      value: \"needLogin\",\n      disabled: !shareReqireLogin\n    }, \"\\u9700\\u8981\\u767B\\u5F55\"))), !needLogin && /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.sharemodal_body_item\n    }, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _ShareModal.default.sharemodal_body_item_name\n    }, \"\\u6709\\u6548\\u671F\", /*#__PURE__*/_react.default.createElement(\"span\", null, \"*\")), /*#__PURE__*/_react.default.createElement(_kdesign.Radio.Group, {\n      defaultValue: 1,\n      value: expireDay,\n      options: _constants.SHARE_TIME_OPTIONS,\n      onChange: handleExpireChange\n    }), expireDay === -1 && /*#__PURE__*/_react.default.createElement(_kdesign.DatePicker, {\n      placeholder: \"\\u8BF7\\u9009\\u62E9\\u65F6\\u95F4\",\n      borderType: \"bordered\",\n      className: _ShareModal.default.sharemodal_body_item_datepicker,\n      icon: {\n        prefix: 'kdicon',\n        type: 'date'\n      },\n      allowClear: true,\n      picker: \"date\",\n      showTime: true,\n      onChange: handleExactTimeChange,\n      disabledDate: function disabledDate(date) {\n        return date < new Date();\n      }\n    })),\n    // 只有录入+免登的时候允许出现这个选项配置\n    !needLogin && (0, _utils.isAddStatus)(Status) && /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: _ShareModal.default.sharemodal_body_item\n    }, /*#__PURE__*/_react.default.createElement(\"p\", {\n      className: _ShareModal.default.sharemodal_body_item_name\n    }, \"\\u540C\\u4E00\\u8BBE\\u5907\\uFF08\\u624B\\u673A\\u3001\\u7535\\u8111\\uFF09\"), /*#__PURE__*/_react.default.createElement(_kdesign.Radio.Group, {\n      value: inputMode,\n      onChange: handleInputModeChange\n    }, /*#__PURE__*/_react.default.createElement(_kdesign.Radio, {\n      value: \"0\"\n    }, \"\\u5141\\u8BB8\\u591A\\u6B21\\u586B\\u5199\"), /*#__PURE__*/_react.default.createElement(_kdesign.Radio, {\n      value: \"1\"\n    }, \"\\u53EA\\u80FD\\u586B\\u5199\\u4E00\\u6B21\"), /*#__PURE__*/_react.default.createElement(_kdesign.Radio, {\n      value: \"2\"\n    }, \"\\u53EA\\u80FD\\u586B\\u5199\\u4E00\\u6B21\\uFF0C\\u4F46\\u5141\\u8BB8\\u4FEE\\u6539\")))));\n  };\n  /**\n   * 渲染分享弹窗内容\n   **/\n  var renderShareContent = function renderShareContent() {\n    return /*#__PURE__*/_react.default.createElement(ShareContent, {\n      appId: appId,\n      formId: targetFormId,\n      fullShareLink: fullShareLink,\n      shareTitle: shareTitle,\n      shareByPeople: shareByPeople,\n      validTime: shareData.validTime,\n      bgImage: backImageUrl,\n      shareAppImage: shareAppImage\n    });\n  };\n  var ShareBody = function ShareBody() {\n    if (!allowNoAuth) {\n      return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, renderShareContent());\n    }\n    return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !shareData.url ? renderShareSettingContent() : renderShareContent());\n  };\n  var modalTitle = (0, _react.useMemo)(function () {\n    return !allowNoAuth ? '分享' : shareData.url ? '分享链接' : '分享设置';\n  }, [allowNoAuth, shareData.url]);\n  var renderModalFooter = function renderModalFooter() {\n    return !shareData.url && allowNoAuth ? /*#__PURE__*/_react.default.createElement(ShareFooterBtn, {\n      appId: appId,\n      formId: targetFormId,\n      onCancel: onCancel,\n      onOk: handleClickCreateLink\n    }) : null;\n  };\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Modal, {\n    maskClosable: false,\n    width: 640,\n    height: 360,\n    body: ShareBody(),\n    bodyStyle: bodyStyle,\n    bodyClassName: _ShareModal.default.sharemodal_body,\n    title: modalTitle,\n    onCancel: onCancel,\n    onOk: onOk,\n    mask: true,\n    keyboard: false,\n    visible: visible,\n    footer: renderModalFooter(),\n    showline: false,\n    className: _ShareModal.default.sharemodal\n  });\n};\nvar _default = exports[\"default\"] = (0, _react.memo)(ShareModal);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/common/ShareModal.tsx\n");

/***/ }),

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

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

/***/ })

}]);