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

/***/ "./src/hooks/useAppContext.js":
/*!************************************!*\
  !*** ./src/hooks/useAppContext.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\");\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 _app = __webpack_require__(/*! @/app */ \"./src/app.jsx\");\n/**\n * 封装一层，减少每次引入多个，context是高频使用的，能少写一行是一行\n */\n\nvar useAppContext = function useAppContext() {\n  var _useContext = (0, _react.useContext)(_app.Context),\n    state = _useContext.state,\n    dispatch = _useContext.dispatch,\n    sendUiData = _useContext.sendUiData;\n  return {\n    state: state,\n    dispatch: dispatch,\n    sendUiData: sendUiData\n  };\n};\nvar _default = exports[\"default\"] = useAppContext;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlQXBwQ29udGV4dC5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7O0FBR0E7QUFDQTtBQUpBO0FBQ0E7QUFDQTs7QUFHQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvaG9va3MvdXNlQXBwQ29udGV4dC5qcz84NTRkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICog5bCB6KOF5LiA5bGC77yM5YeP5bCR5q+P5qyh5byV5YWl5aSa5Liq77yMY29udGV4dOaYr+mrmOmikeS9v+eUqOeahO+8jOiDveWwkeWGmeS4gOihjOaYr+S4gOihjFxuICovXG5pbXBvcnQgeyB1c2VDb250ZXh0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBDb250ZXh0IH0gZnJvbSAnQC9hcHAnXG5jb25zdCB1c2VBcHBDb250ZXh0ID0gKCkgPT4ge1xuICBjb25zdCB7IHN0YXRlLCBkaXNwYXRjaCwgc2VuZFVpRGF0YSB9ID0gdXNlQ29udGV4dChDb250ZXh0KVxuICByZXR1cm4geyBzdGF0ZSwgZGlzcGF0Y2gsIHNlbmRVaURhdGEgfVxufVxuZXhwb3J0IGRlZmF1bHQgdXNlQXBwQ29udGV4dFxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/hooks/useAppContext.js\n");

/***/ }),

/***/ "./src/web/pages/designer/preview/index.jsx":
/*!**************************************************!*\
  !*** ./src/web/pages/designer/preview/index.jsx ***!
  \**************************************************/
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _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 _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; }\n/**\n * 移动端预览界面\n * */\n\nvar NocodeBill = (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 PreviewPage = function PreviewPage() {\n  var _useParams = (0, _reactRouterDom.useParams)(),\n    targetFormId = _useParams.targetFormId,\n    _useParams$device = _useParams.device,\n    device = _useParams$device === void 0 ? 'pc' : _useParams$device;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var rootConfig = state.rootConfig;\n  if (!(rootConfig !== null && rootConfig !== void 0 && rootConfig.pageId)) return null;\n  return /*#__PURE__*/_react.default.createElement(_react.Suspense, {\n    fallback: /*#__PURE__*/_react.default.createElement(\"div\", null)\n  }, /*#__PURE__*/_react.default.createElement(NocodeBill, {\n    config: {\n      formId: 'bos_nocode_preview',\n      targetFormId: targetFormId,\n      rootPageId: state.rootConfig.pageId\n    },\n    device: device,\n    options: {\n      rootConfig: rootConfig\n    }\n  }));\n};\nvar _default = exports[\"default\"] = PreviewPage;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL3BhZ2VzL2Rlc2lnbmVyL3ByZXZpZXcvaW5kZXguanN4IiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBR0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUxBO0FBQ0E7QUFDQTs7QUFLQTtBQUFBO0FBQUE7QUFFQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBRUE7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUdBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvd2ViL3BhZ2VzL2Rlc2lnbmVyL3ByZXZpZXcvaW5kZXguanN4PzQ4Y2IiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiDnp7vliqjnq6/pooTop4jnlYzpnaJcbiAqICovXG5pbXBvcnQgUmVhY3QsIHsgU3VzcGVuc2UsIGxhenkgfSBmcm9tICdyZWFjdCdcbmltcG9ydCB7IHVzZVBhcmFtcyB9IGZyb20gJ3JlYWN0LXJvdXRlci1kb20nXG5pbXBvcnQgdXNlQXBwQ29udGV4dCBmcm9tICdAL2hvb2tzL3VzZUFwcENvbnRleHQnXG5cbmNvbnN0IE5vY29kZUJpbGwgPSBsYXp5KCgpID0+IGltcG9ydCgnYm9zX2NvcmUvTWFpbicpKVxuXG5jb25zdCBQcmV2aWV3UGFnZSA9ICgpID0+IHtcbiAgY29uc3QgeyB0YXJnZXRGb3JtSWQsIGRldmljZSA9ICdwYycgfSA9IHVzZVBhcmFtcygpXG4gIGNvbnN0IHsgc3RhdGUgfSA9IHVzZUFwcENvbnRleHQoKVxuICBjb25zdCB7IHJvb3RDb25maWcgfSA9IHN0YXRlXG5cbiAgaWYgKCFyb290Q29uZmlnPy5wYWdlSWQpIHJldHVybiBudWxsXG4gIHJldHVybiAoXG4gICAgPFN1c3BlbnNlIGZhbGxiYWNrPXs8ZGl2IC8+fT5cbiAgICAgIDxOb2NvZGVCaWxsIGNvbmZpZz17eyBmb3JtSWQ6ICdib3Nfbm9jb2RlX3ByZXZpZXcnLCB0YXJnZXRGb3JtSWQsIHJvb3RQYWdlSWQ6IHN0YXRlLnJvb3RDb25maWcucGFnZUlkIH19IGRldmljZT17ZGV2aWNlfSBvcHRpb25zPXt7IHJvb3RDb25maWcgfX0gLz5cbiAgICA8L1N1c3BlbnNlPlxuICApXG59XG5cbmV4cG9ydCBkZWZhdWx0IFByZXZpZXdQYWdlXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/pages/designer/preview/index.jsx\n");

/***/ })

}]);