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

/***/ "./src/actions/designer.js":
/*!*********************************!*\
  !*** ./src/actions/designer.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.getFormData = getFormData;\nexports.getFormMetaData = getFormMetaData;\nexports.setFormData = setFormData;\nvar _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/regenerator */ \"../../node_modules/@babel/runtime-corejs3/regenerator/index.js\"));\nvar _concat = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\"));\nvar _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/asyncToGenerator */ \"../../node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js\"));\nvar _index = __webpack_require__(/*! ../ajax/index */ \"./src/ajax/index.js\");\n/**\n * @description 获取表单相关的信息（包括所在的应用）\n * @template http://172.19.111.52:8081/docs/api-list/#query-with-id-1\n * @param {appId: string, targetFormId: string} appId 应用id targetFormId 实际表单id\n * @returns promise\n */\nfunction getFormData(_x) {\n  return _getFormData.apply(this, arguments);\n}\n/**\n * @description 修改表单相关的信息\n * @param {appId: string, targetFormId: string, params} appId：应用id targetFormId：实际表单id params：要修改的表单数据[{id: xxx, name: xxx}]\n * @returns promise\n */\nfunction _getFormData() {\n  _getFormData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {\n    var _context;\n    var appId, targetFormId, url, res;\n    return _regenerator.default.wrap(function _callee$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          appId = _ref.appId, targetFormId = _ref.targetFormId;\n          url = (0, _concat.default)(_context = \"nocode/v2/\".concat(appId, \"/form/\")).call(_context, targetFormId);\n          _context2.next = 4;\n          return (0, _index.get)(url, {});\n        case 4:\n          res = _context2.sent;\n          return _context2.abrupt(\"return\", res);\n        case 6:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee);\n  }));\n  return _getFormData.apply(this, arguments);\n}\nfunction setFormData(_x2) {\n  return _setFormData.apply(this, arguments);\n}\n/**\n *\n * @param {*} param 获取表单设计时元数据\n * @returns\n */\nfunction _setFormData() {\n  _setFormData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref2) {\n    var _context3;\n    var appId, targetFormId, params, url, res;\n    return _regenerator.default.wrap(function _callee2$(_context4) {\n      while (1) switch (_context4.prev = _context4.next) {\n        case 0:\n          appId = _ref2.appId, targetFormId = _ref2.targetFormId, params = _ref2.params;\n          url = (0, _concat.default)(_context3 = \"nocode/v2/\".concat(appId, \"/\")).call(_context3, targetFormId);\n          _context4.next = 4;\n          return (0, _index.post)(url, {\n            data: params\n          });\n        case 4:\n          res = _context4.sent;\n          return _context4.abrupt(\"return\", res);\n        case 6:\n        case \"end\":\n          return _context4.stop();\n      }\n    }, _callee2);\n  }));\n  return _setFormData.apply(this, arguments);\n}\nfunction getFormMetaData(_x3) {\n  return _getFormMetaData.apply(this, arguments);\n}\nfunction _getFormMetaData() {\n  _getFormMetaData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(_ref3) {\n    var _context5;\n    var appId, targetFormId, url, res;\n    return _regenerator.default.wrap(function _callee3$(_context6) {\n      while (1) switch (_context6.prev = _context6.next) {\n        case 0:\n          appId = _ref3.appId, targetFormId = _ref3.targetFormId;\n          url = (0, _concat.default)(_context5 = \"nocode/v2/\".concat(appId, \"/form/\")).call(_context5, targetFormId, \"?metadata=true\");\n          _context6.next = 4;\n          return (0, _index.get)(url, {});\n        case 4:\n          res = _context6.sent;\n          return _context6.abrupt(\"return\", res);\n        case 6:\n        case \"end\":\n          return _context6.stop();\n      }\n    }, _callee3);\n  }));\n  return _getFormMetaData.apply(this, arguments);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYWN0aW9ucy9kZXNpZ25lci5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFMQTtBQU1BO0FBQUE7QUFNQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFBQTtBQU5BO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQU9BO0FBQUE7QUFRQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFBQTtBQVJBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUVBO0FBQ0E7QUFBQTtBQUZBO0FBQUE7QUFHQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFPQTtBQUFBO0FBQUE7QUFBQT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JnZXRGb3JtSWTvvJrlrp7pmYXooajljZVpZCBwYXJhbXPvvJropoHkv67mlLnnmoTooajljZXmlbDmja5be2lkOiB4eHgsIG5hbWU6IHh4eH1dXG4gKiBAcmV0dXJucyBwcm9taXNlXG4gKi9cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBzZXRGb3JtRGF0YSAoeyBhcHBJZCwgdGFyZ2V0Rm9ybUlkLCBwYXJhbXMgfSkge1xuICBjb25zdCB1cmwgPSBgbm9jb2RlL3YyLyR7YXBwSWR9LyR7dGFyZ2V0Rm9ybUlkfWBcbiAgY29uc3QgcmVzID0gYXdhaXQgcG9zdCh1cmwsIHtcbiAgICBkYXRhOiBwYXJhbXNcbiAgfSlcbiAgcmV0dXJuIHJlc1xufVxuXG4vKipcbiAqXG4gKiBAcGFyYW0geyp9IHBhcmFtIOiOt+WPluihqOWNleiuvuiuoeaXtuWFg+aVsOaNrlxuICogQHJldHVybnNcbiAqL1xuZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIGdldEZvcm1NZXRhRGF0YSAoeyBhcHBJZCwgdGFyZ2V0Rm9ybUlkIH0pIHtcbiAgY29uc3QgdXJsID0gYG5vY29kZS92Mi8ke2FwcElkfS9mb3JtLyR7dGFyZ2V0Rm9ybUlkfT9tZXRhZGF0YT10cnVlYFxuICBjb25zdCByZXMgPSBhd2FpdCBnZXQodXJsLCB7fSlcbiAgcmV0dXJuIHJlc1xufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/actions/designer.js\n");

/***/ }),

/***/ "./src/hooks/useDebounce.tsx":
/*!***********************************!*\
  !*** ./src/hooks/useDebounce.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\"] = useDebounce;\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 _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-09-18 13:43:02\n * @LastEditTime: 2023-11-27 10:35:23\n * @Last Modified by: jianhang_he\n */\n\n/**\n * 防抖hook\n * 为什么要这个hook?原因：\n * 在react内部直接调用debounce函数是无效的，一旦react内部重新渲染了，对应函数也会重新渲染，内部的timer又会重新生成\n * 所以是一直不起作用\n * @param {*} fn 传入的函数\n * @param {*} delay 延时时间\n * @param {*} dep 依赖数组\n * @returns\n */\n\nfunction useDebounce(fn) {\n  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n  var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n  var _useRef = (0, _react.useRef)({\n      fn: fn,\n      timer: null\n    }),\n    current = _useRef.current;\n  var isFirstCallRef = (0, _react.useRef)(true);\n  (0, _react.useEffect)(function () {\n    // 这里用ref存储fn，不然存在闭包问题\n    current.fn = fn;\n  }, [fn]);\n  return (0, _react.useCallback)(function () {\n    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n      args[_key] = arguments[_key];\n    }\n    if (current.timer) {\n      clearTimeout(current.timer);\n    }\n    if (immediate && isFirstCallRef.current) {\n      isFirstCallRef.current = false;\n      current.fn.apply(current, args);\n    }\n    current.timer = (0, _setTimeout2.default)(function () {\n      current.fn.apply(current, args);\n    }, delay);\n  }, [fn]);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,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IH0sIFtmbl0pXG59Il0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/hooks/useDebounce.tsx\n");

/***/ }),

/***/ "./src/service/PageEventService.ts":
/*!*****************************************!*\
  !*** ./src/service/PageEventService.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.init = init;\nexports.publishUserEvent = exports.publishSearchUserEvent = exports.publishClickUserEvent = void 0;\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _constants = __webpack_require__(/*! @/constants */ \"./src/constants/index.ts\");\nvar _useEventEmit = __webpack_require__(/*! @/hooks/useEventEmit */ \"./src/hooks/useEventEmit.ts\");\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-08-24 16:44:43\n * @LastEditTime: 2023-09-12 20:25:52\n * @Last Modified by: jianhang_he\n */\n/**\n * 发布用户事件\n * @param data\n */\nvar publishUserEvent = exports.publishUserEvent = function publishUserEvent(data) {\n  (0, _useEventEmit.publishEvent)(_constants.USER_ACTION_EVENT, data);\n};\n\n/**\n * 发布点击事件\n * @param data\n */\nvar publishClickUserEvent = exports.publishClickUserEvent = function publishClickUserEvent(data) {\n  var clickData = _objectSpread({\n    page: window.location.pathname,\n    prepage: window.document.referrer,\n    eventName: 'click',\n    controlName: '',\n    controlType: '',\n    type: '',\n    controlId: ''\n  }, data);\n  (0, _useEventEmit.publishEvent)(_constants.USER_ACTION_EVENT, clickData);\n};\n\n/**\n * 发布搜索事件\n * @param data\n */\nvar publishSearchUserEvent = exports.publishSearchUserEvent = function publishSearchUserEvent(data) {\n  var searchData = _objectSpread({\n    eventName: 'search'\n  }, data);\n  (0, _useEventEmit.publishEvent)(_constants.USER_ACTION_EVENT, searchData);\n};\n\n/**\n * 页面点击监听\n * 从底部开始向上获取data-info自定义属性的值\n * @param e 点击事件\n * {\n  //   appId: '',\n  //   formId: '',\n  //   eventName: 'click',\n  //   page: window.location.href,\n  //   prePage: document.referrer || '',\n  //   controlId: '',\n  //   controlName: '收藏',\n  //   controlType: 'icon',\n  //   type: 'click',\n  //   action: 'setCollect'\n  // }\n */\nfunction clickEvent(e) {\n  var getInfo = function getInfo(dom) {\n    var _dom$dataset;\n    if (!dom || (dom === null || dom === void 0 ? void 0 : dom.tagName) === 'BODY') return; // 在body时中断\n    var info = dom === null || dom === void 0 || (_dom$dataset = dom.dataset) === null || _dom$dataset === void 0 ? void 0 : _dom$dataset.ncAction;\n    if (info) {\n      // 有控件名属性时，以防其它其它自定义属性污染\n      var _info$split = info.split('|'),\n        _info$split2 = (0, _slicedToArray2.default)(_info$split, 3),\n        appId = _info$split2[0],\n        formId = _info$split2[1],\n        action = _info$split2[2];\n      publishClickUserEvent({\n        appId: appId,\n        formId: formId,\n        action: action\n      });\n    } else {\n      var parent = dom.parentNode;\n      getInfo(parent);\n    }\n  };\n  getInfo(e.target);\n}\nfunction init() {\n  var _window$document$quer;\n  // 监听所有body下的click事件，上报自定义属性里的内容\n  (_window$document$quer = window.document.querySelector('body')) === null || _window$document$quer === void 0 || _window$document$quer.addEventListener('click', clickEvent);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2VydmljZS9QYWdlRXZlbnRTZXJ2aWNlLnRzIiwibWFwc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q5a6a5LmJ5bGe5oCn5rGh5p+TXG4gICAgICBjb25zdCBbYXBwSWQsIGZvcm1JZCwgYWN0aW9uXSA9IGluZm8uc3BsaXQoJ3wnKVxuICAgICAgcHVibGlzaENsaWNrVXNlckV2ZW50KHsgYXBwSWQsIGZvcm1JZCwgYWN0aW9uIH0pXG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbnN0IHBhcmVudCA9IGRvbS5wYXJlbnROb2RlXG4gICAgICBnZXRJbmZvKHBhcmVudClcbiAgICB9XG4gIH1cbiAgZ2V0SW5mbyhlLnRhcmdldClcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGluaXQgKCkge1xuICAvLyDnm5HlkKzmiYDmnIlib2R55LiL55qEY2xpY2vkuovku7bvvIzkuIrmiqXoh6rlrprkuYnlsZ7mgKfph4znmoTlhoXlrrlcbiAgd2luZG93LmRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJ2JvZHknKT8uYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCBjbGlja0V2ZW50KVxufVxuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/service/PageEventService.ts\n");

/***/ }),

/***/ "./src/utils/reducer.ts":
/*!******************************!*\
  !*** ./src/utils/reducer.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.assignDataReducer = void 0;\nvar _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.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; }\nvar assignDataReducer = exports.assignDataReducer = function assignDataReducer(state, newData) {\n  return _objectSpread(_objectSpread({}, state), newData);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvdXRpbHMvcmVkdWNlci50cyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy91dGlscy9yZWR1Y2VyLnRzP2Y2YjYiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGFzc2lnbkRhdGFSZWR1Y2VyID0gKHN0YXRlOiBhbnksIG5ld0RhdGE6IGFueSkgPT4ge1xyXG4gIHJldHVybiB7IC4uLnN0YXRlLCAuLi5uZXdEYXRhIH1cclxufVxyXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/utils/reducer.ts\n");

/***/ })

}]);