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

/***/ "./src/web/component/fieldPermission/DesignerPermissionView.less":
/*!***********************************************************************!*\
  !*** ./src/web/component/fieldPermission/DesignerPermissionView.less ***!
  \***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"loading-wrapper\":\"eZ4cHM3T_loading-wrapper\",\"nocode-designer-wrapper\":\"xeYy+Eyr_nocode-designer-wrapper\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9maWVsZFBlcm1pc3Npb24vRGVzaWduZXJQZXJtaXNzaW9uVmlldy5sZXNzIiwibWFwcGluZ3MiOiI7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL3dlYi9jb21wb25lbnQvZmllbGRQZXJtaXNzaW9uL0Rlc2lnbmVyUGVybWlzc2lvblZpZXcubGVzcz85ZDg3Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIGV4dHJhY3RlZCBieSBtaW5pLWNzcy1leHRyYWN0LXBsdWdpblxuZXhwb3J0IGRlZmF1bHQge1wibG9hZGluZy13cmFwcGVyXCI6XCJlWjRjSE0zVF9sb2FkaW5nLXdyYXBwZXJcIixcIm5vY29kZS1kZXNpZ25lci13cmFwcGVyXCI6XCJ4ZVl5K0V5cl9ub2NvZGUtZGVzaWduZXItd3JhcHBlclwifTsiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/web/component/fieldPermission/DesignerPermissionView.less\n");

/***/ }),

/***/ "./src/web/component/fieldPermission/index.less":
/*!******************************************************!*\
  !*** ./src/web/component/fieldPermission/index.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\"] = ({\"drawer\":\"E2JRONYS_drawer\",\"title\":\"Pbs3HJKx_title\",\"title-desc\":\"gBxXL6nm_title-desc\",\"add\":\"paclbU17_add\",\"icon\":\"l6rsexmB_icon\",\"drawer_content\":\"+t8iy6KC_drawer_content\",\"drawer_footer\":\"KH4-AS7r_drawer_footer\"});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvd2ViL2NvbXBvbmVudC9maWVsZFBlcm1pc3Npb24vaW5kZXgubGVzcyIsIm1hcHBpbmdzIjoiO0FBQUE7QUFDQSIsInNvdXJjZXMiOlsid2VicGFjazovL25vY29kZS1wbGF0Zm9ybS8uL3NyYy93ZWIvY29tcG9uZW50L2ZpZWxkUGVybWlzc2lvbi9pbmRleC5sZXNzP2IyOGMiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQgZGVmYXVsdCB7XCJkcmF3ZXJcIjpcIkUySlJPTllTX2RyYXdlclwiLFwidGl0bGVcIjpcIlBiczNISkt4X3RpdGxlXCIsXCJ0aXRsZS1kZXNjXCI6XCJnQnhYTDZubV90aXRsZS1kZXNjXCIsXCJhZGRcIjpcInBhY2xiVTE3X2FkZFwiLFwiaWNvblwiOlwibDZyc2V4bUJfaWNvblwiLFwiZHJhd2VyX2NvbnRlbnRcIjpcIit0OGl5NktDX2RyYXdlcl9jb250ZW50XCIsXCJkcmF3ZXJfZm9vdGVyXCI6XCJLSDQtQVM3cl9kcmF3ZXJfZm9vdGVyXCJ9OyJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/web/component/fieldPermission/index.less\n");

/***/ }),

/***/ "./src/hooks/remote.config.js":
/*!************************************!*\
  !*** ./src/hooks/remote.config.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[\"default\"] = void 0;\nvar _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\"));\nvar _slice = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\"));\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-02-23 18:03:27\n * @LastEditTime: 2023-02-26 21:05:25\n * @Last Modified by: jianhang_he\n */\nvar HOST = window.__kd_cdnPath__ || window.__domainurl__;\nvar config = {\n  nocode: {\n    url: \"\".concat(HOST + \"ncp\", \"/nocode-designer/nocodeRemoteEntry.js\"),\n    scope: 'nocode_designer'\n  },\n  components: {\n    url: \"\".concat(HOST + \"ncp\", \"/nocode-component/nocodeComponentEntry.js\"),\n    scope: 'nocode_component'\n  },\n  base: {\n    url: \"\".concat(HOST, \"public/designer-base/designerBaseRemoteEntry.js\"),\n    scope: 'designer_base'\n  },\n  nocodeflow: {\n    url: \"\".concat(HOST + \"ncp\", \"/nocode-flow/nocodeFlowRemoteEntry.js\"),\n    scope: 'nocode_flow'\n  }\n};\nif (true) {\n  (0, _keys.default)(config).forEach(function (key) {\n    var _context, _context2;\n    var _config = config[key];\n    _config.url = (0, _slice.default)(_context = _config.url).call(_context, 0, -3) + '.dev' + (0, _slice.default)(_context2 = _config.url).call(_context2, -3);\n  });\n}\nvar _default = exports[\"default\"] = config;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvcmVtb3RlLmNvbmZpZy5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9ub2NvZGUtcGxhdGZvcm0vLi9zcmMvaG9va3MvcmVtb3RlLmNvbmZpZy5qcz80MzFiIl0sInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBARGVzY3JpcHRpb246XG4gKiBAQXV0aG9yOiBqaWFuaGFuZ19oZVxuICogQERhdGU6IDIwMjMtMDItMjMgMTg6MDM6MjdcbiAqIEBMYXN0RWRpdFRpbWU6IDIwMjMtMDItMjYgMjE6MDU6MjVcbiAqIEBMYXN0IE1vZGlmaWVkIGJ5OiBqaWFuaGFuZ19oZVxuICovXG5jb25zdCBIT1NUID0gd2luZG93Ll9fa2RfY2RuUGF0aF9fIHx8IHdpbmRvdy5fX2RvbWFpbnVybF9fXG5jb25zdCBjb25maWcgPSB7XG4gIG5vY29kZToge1xuICAgIHVybDogYCR7SE9TVCArIERJU1RfTkFNRX0vbm9jb2RlLWRlc2lnbmVyL25vY29kZVJlbW90ZUVudHJ5LmpzYCxcbiAgICBzY29wZTogJ25vY29kZV9kZXNpZ25lcidcbiAgfSxcbiAgY29tcG9uZW50czoge1xuICAgIHVybDogYCR7SE9TVCArIERJU1RfTkFNRX0vbm9jb2RlLWNvbXBvbmVudC9ub2NvZGVDb21wb25lbnRFbnRyeS5qc2AsXG4gICAgc2NvcGU6ICdub2NvZGVfY29tcG9uZW50J1xuICB9LFxuICBiYXNlOiB7XG4gICAgdXJsOiBgJHtIT1NUfXB1YmxpYy9kZXNpZ25lci1iYXNlL2Rlc2lnbmVyQmFzZVJlbW90ZUVudHJ5LmpzYCxcbiAgICBzY29wZTogJ2Rlc2lnbmVyX2Jhc2UnXG4gIH0sXG4gIG5vY29kZWZsb3c6IHtcbiAgICB1cmw6IGAke0hPU1QgKyBESVNUX05BTUV9L25vY29kZS1mbG93L25vY29kZUZsb3dSZW1vdGVFbnRyeS5qc2AsXG4gICAgc2NvcGU6ICdub2NvZGVfZmxvdydcbiAgfVxuXG59XG5pZiAocHJvY2Vzcy5lbnYuTk9ERV9FTlYgIT09ICdwcm9kdWN0aW9uJykge1xuICBPYmplY3Qua2V5cyhjb25maWcpLmZvckVhY2goa2V5ID0+IHtcbiAgICBjb25zdCBfY29uZmlnID0gY29uZmlnW2tleV1cbiAgICBfY29uZmlnLnVybCA9IF9jb25maWcudXJsLnNsaWNlKDAsIC0zKSArICcuZGV2JyArIF9jb25maWcudXJsLnNsaWNlKC0zKVxuICB9KVxufVxuZXhwb3J0IGRlZmF1bHQgY29uZmlnXG4iXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/hooks/remote.config.js\n");

/***/ }),

/***/ "./src/hooks/useDynamicScript.js":
/*!***************************************!*\
  !*** ./src/hooks/useDynamicScript.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[\"default\"] = void 0;\nvar _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js\"));\nvar _set = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/set */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/set.js\"));\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/map.js\"));\nvar _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/*\n * @Author: cxf\n * @Email: jinrui_fang@kingdee.com\n * @Date: 2022-02-18 09:37:31\n * @Last Modified by: fjr\n * @LastEditTime: 2022-02-18 14:19:40\n * @Description: ...\n */\n\n// 将远程入口文件注入到html头部\nvar urlCache = new _set.default(); // url地址缓存\nvar resolveUrlCache = new _set.default(); // url地址缓存\nvar resolveUrlCallbacksMap = new _map.default();\nvar useDynamicScript = function useDynamicScript(url, scope) {\n  var _useState = (0, _react.useState)(false),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    ready = _useState2[0],\n    setReady = _useState2[1];\n  var _useState3 = (0, _react.useState)(false),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    errorLoading = _useState4[0],\n    setErrorLoading = _useState4[1];\n  // console.log(url,scope)\n  (0, _react.useEffect)(function () {\n    if (!url) return;\n    if (resolveUrlCache.has(url) || window[scope]) {\n      // 如果已缓存，直接返回\n      setReady(true);\n      setErrorLoading(false);\n      return;\n    }\n    if (urlCache.has(url)) {\n      if (!resolveUrlCallbacksMap.has(url)) {\n        resolveUrlCallbacksMap.set(url, []);\n      }\n      var callbacks = resolveUrlCallbacksMap.get(url);\n      callbacks.push([function () {\n        setReady(true);\n      }, function () {\n        setReady(false);\n        setErrorLoading(true);\n      }]);\n      return;\n    }\n    // 在这个位置存地址，异步同时引入多个组件的时候，可能还未ready\n    urlCache.add(url);\n    setReady(false);\n    setErrorLoading(false);\n    var element = document.createElement('script');\n    element.src = url;\n    element.type = 'text/javascript';\n    element.async = true;\n    element.onload = function () {\n      // urlCache.add(url); // 在这个位置存地址，会引发多次插入脚本问题\n      resolveUrlCache.add(url); // 在这个位置存地址，异步同时引入多个组件的时候，可能还未ready\n      setReady(true);\n      if (resolveUrlCallbacksMap.has(url)) {\n        var _callbacks = resolveUrlCallbacksMap.get(url);\n        _callbacks.forEach(function (_ref) {\n          var _ref2 = (0, _slicedToArray2.default)(_ref, 1),\n            resolveCallback = _ref2[0];\n          return resolveCallback();\n        });\n        resolveUrlCallbacksMap.delete(url);\n      }\n    };\n    document.head.appendChild(element);\n    element.onerror = function () {\n      setReady(false);\n      setErrorLoading(true);\n      if (resolveUrlCallbacksMap.has(url)) {\n        var _callbacks2 = resolveUrlCallbacksMap.get(url);\n        _callbacks2.forEach(function (_ref3) {\n          var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),\n            _c = _ref4[0],\n            rejectCallback = _ref4[1];\n          return rejectCallback();\n        });\n        resolveUrlCallbacksMap.delete(url);\n      }\n    };\n    return function () {\n      urlCache.delete(url);\n      resolveUrlCallbacksMap.delete(url);\n      document.head.removeChild(element);\n    };\n  }, [url]);\n  return {\n    errorLoading: errorLoading,\n    ready: ready\n  };\n};\nvar _default = exports[\"default\"] = useDynamicScript;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/hooks/useDynamicScript.js\n");

/***/ }),

/***/ "./src/hooks/useFederationModule.js":
/*!******************************************!*\
  !*** ./src/hooks/useFederationModule.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.useFederatedModule = void 0;\nvar _map = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/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 _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 _react = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\nvar _useDynamicScript2 = _interopRequireDefault(__webpack_require__(/*! ./useDynamicScript.js */ \"./src/hooks/useDynamicScript.js\"));\nvar _remoteConfig = _interopRequireDefault(__webpack_require__(/*! ./remote.config.js */ \"./src/hooks/remote.config.js\"));\n/**\n *\n * @param {*} scope\n * @param {*} module\n * @returns Module\n */\nfunction loadModule(configKey, module) {\n  var scope = _remoteConfig.default[configKey].scope;\n  return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n    var container, factory, Module;\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 __webpack_require__.I(\"default\");\n        case 3:\n          container = window[scope]; // or get the container somewhere else\n          // Initialize the container, it may provide shared modules\n          _context.next = 6;\n          return container.init(__webpack_require__.S.default);\n        case 6:\n          _context.next = 11;\n          break;\n        case 8:\n          _context.prev = 8;\n          _context.t0 = _context[\"catch\"](0);\n          console.log(_context.t0);\n        case 11:\n          _context.next = 13;\n          return window[scope].get(module);\n        case 13:\n          factory = _context.sent;\n          Module = factory();\n          return _context.abrupt(\"return\", Module);\n        case 16:\n        case \"end\":\n          return _context.stop();\n      }\n    }, _callee, null, [[0, 8]]);\n  }));\n}\nvar componentCache = new _map.default();\nvar useFederatedModule = exports.useFederatedModule = function useFederatedModule(configKey) {\n  var _context2, _context3;\n  var module = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"./Main\";\n  var _remoteConfig$configK = _remoteConfig.default[configKey],\n    url = _remoteConfig$configK.url,\n    scope = _remoteConfig$configK.scope;\n  var key = (0, _concat.default)(_context2 = (0, _concat.default)(_context3 = \"\".concat(url, \"-\")).call(_context3, scope, \"-\")).call(_context2, module);\n  var _useState = (0, _react.useState)(function () {\n      return componentCache.get(key) || null;\n    }),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    Component = _useState2[0],\n    setComponent = _useState2[1];\n  var _useDynamicScript = (0, _useDynamicScript2.default)(url, scope),\n    ready = _useDynamicScript.ready,\n    errorLoading = _useDynamicScript.errorLoading;\n  var isMountRef = (0, _react.useRef)(false);\n  (0, _react.useEffect)(function () {\n    if (!isMountRef.current) {\n      isMountRef.current = true;\n      return;\n    }\n    if (Component) setComponent(null);\n    // Only recalculate when key changes\n  }, [key]);\n  // console.log('useFederatedModule',module,Component)\n  (0, _react.useEffect)(function () {\n    if (ready && !Component) {\n      loadModule(configKey, module)().then(function (resolveModule) {\n        var Comp = resolveModule;\n        componentCache.set(key, Comp);\n        setComponent(Comp);\n      });\n    }\n    // key includes all dependencies (scope/module)\n  }, [Component, ready, key]);\n  return {\n    errorLoading: errorLoading,\n    Component: Component\n  };\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaG9va3MvdXNlRmVkZXJhdGlvbk1vZHVsZS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFHQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRUE7QUFBQTtBQUFBO0FBQUE7QUFFQTtBQUFBO0FBQ0E7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUVBO0FBRUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUNBO0FBRkE7QUFBQTtBQUdBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUNBIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vbm9jb2RlLXBsYXRmb3JtLy4vc3JjL2hvb2tzL3VzZUZlZGVyYXRpb25Nb2R1bGUuanM/ZTQ0MyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VFZmZlY3QsIHVzZVN0YXRlLCBsYXp5LCB1c2VSZWYgfSBmcm9tIFwicmVhY3RcIjtcbmltcG9ydCB1c2VEeW5hbWljU2NyaXB0IGZyb20gXCIuL3VzZUR5bmFtaWNTY3JpcHQuanNcIjtcbmltcG9ydCByZW1vdGVDb25maWcgZnJvbSBcIi4vcmVtb3RlLmNvbmZpZy5qc1wiO1xuLyoqXG4gKlxuICogQHBhcmFtIHsqfSBzY29wZVxuICogQHBhcmFtIHsqfSBtb2R1bGVcbiAqIEByZXR1cm5zIE1vZHVsZVxuICovXG5mdW5jdGlvbiBsb2FkTW9kdWxlKGNvbmZpZ0tleSwgbW9kdWxlKSB7XG4gIGNvbnN0IHsgc2NvcGUgfSA9IHJlbW90ZUNvbmZpZ1tjb25maWdLZXldO1xuICByZXR1cm4gYXN5bmMgKCkgPT4ge1xuICAgIHRyeSB7XG4gICAgICAvLyBJbml0aWFsaXplcyB0aGUgc2hhcmUgc2NvcGUuIFRoaXMgZmlsbHMgaXQgd2l0aCBrbm93biBwcm92aWRlZCBtb2R1bGVzIGZyb20gdGhpcyBidWlsZCBhbmQgYWxsIHJlbW90ZXNcbiAgICAgIGF3YWl0IF9fd2VicGFja19pbml0X3NoYXJpbmdfXyhcImRlZmF1bHRcIik7XG4gICAgICBjb25zdCBjb250YWluZXIgPSB3aW5kb3dbc2NvcGVdOyAvLyBvciBnZXQgdGhlIGNvbnRhaW5lciBzb21ld2hlcmUgZWxzZVxuICAgICAgLy8gSW5pdGlhbGl6ZSB0aGUgY29udGFpbmVyLCBpdCBtYXkgcHJvdmlkZSBzaGFyZWQgbW9kdWxlc1xuICAgICAgYXdhaXQgY29udGFpbmVyLmluaXQoX193ZWJwYWNrX3NoYXJlX3Njb3Blc19fLmRlZmF1bHQpO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIGNvbnNvbGUubG9nKGUpO1xuICAgIH1cbiAgICBjb25zdCBmYWN0b3J5ID0gYXdhaXQgd2luZG93W3Njb3BlXS5nZXQobW9kdWxlKTtcbiAgICBjb25zdCBNb2R1bGUgPSBmYWN0b3J5KCk7XG4gICAgcmV0dXJuIE1vZHVsZTtcbiAgfTtcbn1cblxuY29uc3QgY29tcG9uZW50Q2FjaGUgPSBuZXcgTWFwKCk7XG5leHBvcnQgY29uc3QgdXNlRmVkZXJhdGVkTW9kdWxlID0gKGNvbmZpZ0tleSwgbW9kdWxlID0gXCIuL01haW5cIikgPT4ge1xuICBjb25zdCB7IHVybCwgc2NvcGUgfSA9IHJlbW90ZUNvbmZpZ1tjb25maWdLZXldO1xuICBjb25zdCBrZXkgPSBgJHt1cmx9LSR7c2NvcGV9LSR7bW9kdWxlfWA7XG4gIGNvbnN0IFtDb21wb25lbnQsIHNldENvbXBvbmVudF0gPSB1c2VTdGF0ZShcbiAgICAoKSA9PiBjb21wb25lbnRDYWNoZS5nZXQoa2V5KSB8fCBudWxsXG4gICk7XG4gIGNvbnN0IHsgcmVhZHksIGVycm9yTG9hZGluZyB9ID0gdXNlRHluYW1pY1NjcmlwdCh1cmwsIHNjb3BlKTtcbiAgY29uc3QgaXNNb3VudFJlZiA9IHVzZVJlZihmYWxzZSk7XG4gIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgaWYgKCFpc01vdW50UmVmLmN1cnJlbnQpIHtcbiAgICAgIGlzTW91bnRSZWYuY3VycmVudCA9IHRydWU7XG4gICAgICByZXR1cm47XG4gICAgfVxuICAgIGlmIChDb21wb25lbnQpIHNldENvbXBvbmVudChudWxsKTtcbiAgICAvLyBPbmx5IHJlY2FsY3VsYXRlIHdoZW4ga2V5IGNoYW5nZXNcbiAgfSwgW2tleV0pO1xuICAvLyBjb25zb2xlLmxvZygndXNlRmVkZXJhdGVkTW9kdWxlJyxtb2R1bGUsQ29tcG9uZW50KVxuICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIGlmIChyZWFkeSAmJiAhQ29tcG9uZW50KSB7XG4gICAgICBsb2FkTW9kdWxlKGNvbmZpZ0tleSwgbW9kdWxlKSgpLnRoZW4oKHJlc29sdmVNb2R1bGUpID0+IHtcbiAgICAgICAgY29uc3QgQ29tcCA9IHJlc29sdmVNb2R1bGU7XG4gICAgICAgIGNvbXBvbmVudENhY2hlLnNldChrZXksIENvbXApO1xuICAgICAgICBzZXRDb21wb25lbnQoQ29tcCk7XG4gICAgICB9KTtcbiAgICB9XG4gICAgLy8ga2V5IGluY2x1ZGVzIGFsbCBkZXBlbmRlbmNpZXMgKHNjb3BlL21vZHVsZSlcbiAgfSwgW0NvbXBvbmVudCwgcmVhZHksIGtleV0pO1xuICByZXR1cm4geyBlcnJvckxvYWRpbmcsIENvbXBvbmVudCB9O1xufTtcbiJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/hooks/useFederationModule.js\n");

/***/ }),

/***/ "./src/web/component/fieldPermission/DesignerPermissionView.tsx":
/*!**********************************************************************!*\
  !*** ./src/web/component/fieldPermission/DesignerPermissionView.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 _filterInstanceProperty2 = __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 _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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\"));\nvar _reduce = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/reduce */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.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 _filter = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\"));\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _classnames = _interopRequireDefault(__webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\"));\nvar _useFederationModule = __webpack_require__(/*! @/hooks/useFederationModule.js */ \"./src/hooks/useFederationModule.js\");\nvar _Tools = __webpack_require__(/*! bos_core/Tools */ \"webpack/container/remote/bos_core/Tools\");\nvar _utils = __webpack_require__(/*! @/utils */ \"./src/utils/index.tsx\");\nvar _useAppContext2 = _interopRequireDefault(__webpack_require__(/*! @/hooks/useAppContext */ \"./src/hooks/useAppContext.js\"));\nvar _designer = __webpack_require__(/*! @/actions/designer */ \"./src/actions/designer.js\");\nvar _reactDom = __webpack_require__(/*! kd_libs/react-dom */ \"webpack/container/remote/kd_libs/react-dom\");\nvar _DesignerPermissionView = _interopRequireDefault(__webpack_require__(/*! ./DesignerPermissionView.less */ \"./src/web/component/fieldPermission/DesignerPermissionView.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 = _filterInstanceProperty2(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-03-07 19:57:59\n * @LastEditTime: 2024-04-03 17:10:43\n * @Last Modified by: jianhang_he\n */\nvar FORMMETA_SYSTEM = [{\n  ParentId: '1807354269337556992',\n  _Type_: 'NoCodeSystemAp',\n  FieldId: 'ZkkM8aSPDj',\n  Index: 1,\n  Id: 'ZkkM8aSPDj',\n  Key: 'nocodecreatorfield',\n  Name: '创建人',\n  FieldType: 'NoCodeCreatorField'\n}, {\n  ParentId: '1807354269337556992',\n  _Type_: 'NoCodeSystemAp',\n  FieldId: 'Adb5iWON2Y',\n  Features: '{\"_Type_\":\"Features\",\"Copyable\":false}',\n  Id: 'Adb5iWON2Y',\n  Key: 'nocodecreatedatefield',\n  Name: '创建日期',\n  FieldType: 'NoCodeCreateDateField'\n}, {\n  ParentId: '1807354269337556992',\n  _Type_: 'NoCodeSystemAp',\n  FieldId: 'd70tu1iLBS',\n  Index: 3,\n  Id: 'd70tu1iLBS',\n  Key: 'nocodemodifierfield',\n  Name: '修改人',\n  FieldType: 'NoCodeModifierField'\n}, {\n  ParentId: '1807354269337556992',\n  _Type_: 'NoCodeSystemAp',\n  FieldId: 'S78gWsEw5e',\n  Index: 2,\n  Features: '{\"_Type_\":\"Features\",\"Copyable\":false}',\n  Id: 'S78gWsEw5e',\n  Key: 'nocodemodifydatefield',\n  Name: '修改日期',\n  FieldType: 'NoCodeModifyDateField'\n}];\nvar ENTITYMETA_SYSTEM = [{\n  _Type_: 'NoCodeCreatorField',\n  BillEntityId: '68bde9ca00000eac',\n  BillEntityIdEx: '68bde9ca00000eac',\n  Features: {\n    _Type_: 'Features',\n    Ver: 1,\n    Copyable: false\n  },\n  DataRange: {\n    _Type_: 'NoCodeDataRangeField',\n    min: '0',\n    max: '3'\n  },\n  PropsDisplay: 'name,number,gender,phone,email',\n  Id: 'ZkkM8aSPDj',\n  LableHyperlink: false,\n  FieldName: 'f1807354271661201409',\n  Key: 'nocodecreatorfield',\n  Name: '创建人'\n}, {\n  _Type_: 'NoCodeCreateDateField',\n  Features: {\n    _Type_: 'Features',\n    Ver: 1,\n    Copyable: false\n  },\n  Id: 'Adb5iWON2Y',\n  FieldName: 'f1807354271662465026',\n  Key: 'nocodecreatedatefield',\n  Name: '创建日期'\n}, {\n  _Type_: 'NoCodeModifierField',\n  BillEntityId: '68bde9ca00000eac',\n  BillEntityIdEx: '68bde9ca00000eac',\n  Features: {\n    _Type_: 'Features',\n    Ver: 1,\n    Copyable: false\n  },\n  DataRange: {\n    _Type_: 'NoCodeDataRangeField',\n    min: '0',\n    max: '3'\n  },\n  PropsDisplay: 'name,number,gender,phone,email',\n  Id: 'd70tu1iLBS',\n  LableHyperlink: false,\n  FieldName: 'f1807354271661201410',\n  Key: 'nocodemodifierfield',\n  Name: '修改人'\n}, {\n  _Type_: 'NoCodeModifyDateField',\n  Features: {\n    _Type_: 'Features',\n    Ver: 1,\n    Copyable: false\n  },\n  Id: 'S78gWsEw5e',\n  FieldName: 'f1807354271662465027',\n  Key: 'nocodemodifydatefield',\n  Name: '修改日期'\n}];\nvar SYSTEM_FIELD_TYPES = ['NoCodeCreatorField', 'NoCodeCreateDateField', 'NoCodeModifierField', 'NoCodeModifyDateField'];\nvar TransformMetaData = function TransformMetaData(metadata, formId) {\n  var _context;\n  var needSystemField = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n  var formmeta = metadata.formmeta,\n    entitymeta = metadata.entitymeta;\n  var formMetaItems = formmeta.Items;\n  var entityMetaItems = entitymeta.Items;\n  // 过滤出已存在的系统字段\n  var exsitSystemFieldTypes = (0, _reduce.default)(formMetaItems).call(formMetaItems, function (res, item) {\n    var FieldType = item.FieldType;\n    if ((0, _includes.default)(SYSTEM_FIELD_TYPES).call(SYSTEM_FIELD_TYPES, FieldType)) return (0, _concat.default)(res).call(res, FieldType);\n    return res;\n  }, []);\n  // 篡改formmeta\n  var appendFormMetaItems = needSystemField ? (0, _reduce.default)(FORMMETA_SYSTEM).call(FORMMETA_SYSTEM, function (res, item) {\n    var FieldType = item.FieldType;\n    if (!(0, _includes.default)(exsitSystemFieldTypes).call(exsitSystemFieldTypes, FieldType)) {\n      return (0, _concat.default)(res).call(res, _objectSpread(_objectSpread({}, item), {}, {\n        ParentId: formId\n      }));\n    }\n    return res;\n  }, []) : [];\n  metadata.formmeta = _objectSpread(_objectSpread({}, formmeta), {}, {\n    Items: (0, _concat.default)(_context = (0, _filter.default)(formMetaItems).call(formMetaItems, function (item) {\n      var _context2;\n      var controlType = item._Type_;\n      return !(0, _includes.default)(_context2 = ['BizBtnFlexPanelAp', 'NoCodeBizButtonAp']).call(_context2, controlType);\n    })).call(_context, appendFormMetaItems)\n  });\n  // 篡改entitymeta\n  var appendEntityMetaItems = (0, _reduce.default)(ENTITYMETA_SYSTEM).call(ENTITYMETA_SYSTEM, function (res, item) {\n    var _Type_ = item._Type_;\n    if (!(0, _includes.default)(exsitSystemFieldTypes).call(exsitSystemFieldTypes, _Type_)) {\n      return (0, _concat.default)(res).call(res, item);\n    }\n    return res;\n  }, []);\n  metadata.entitymeta = _objectSpread(_objectSpread({}, entitymeta), {}, {\n    Items: (0, _concat.default)(entityMetaItems).call(entityMetaItems, appendEntityMetaItems)\n  });\n  return metadata;\n};\nvar DesignerPermissionView = (0, _react.forwardRef)(function (_ref, ref) {\n  var formId = _ref.formId,\n    appId = _ref.appId,\n    value = _ref.value,\n    floatMenu = _ref.floatMenu,\n    fieldStatusSettingMode = _ref.fieldStatusSettingMode,\n    fieldStatusSettingOptions = _ref.fieldStatusSettingOptions,\n    needSystemField = _ref.needSystemField;\n  var _useState = (0, _react.useState)(),\n    _useState2 = (0, _slicedToArray2.default)(_useState, 2),\n    meta = _useState2[0],\n    setMeta = _useState2[1];\n  var _useState3 = (0, _react.useState)(),\n    _useState4 = (0, _slicedToArray2.default)(_useState3, 2),\n    data = _useState4[0],\n    setData = _useState4[1];\n  var _useState5 = (0, _react.useState)([]),\n    _useState6 = (0, _slicedToArray2.default)(_useState5, 2),\n    tableMetas = _useState6[0],\n    setTableMetas = _useState6[1];\n  var _useFederatedModule = (0, _useFederationModule.useFederatedModule)('nocode'),\n    module = _useFederatedModule.Component; // 请求组件\n  var _ref2 = module || {},\n    NoCodeDesigner = _ref2.NoCodeDesigner;\n  var _useAppContext = (0, _useAppContext2.default)(),\n    state = _useAppContext.state;\n  var _state$fileServer = state.fileServer,\n    _state$fileServer$ima = _state$fileServer.imageUrl,\n    imageUrl = _state$fileServer$ima === void 0 ? '' : _state$fileServer$ima,\n    _state$fileServer$att = _state$fileServer.attachmentUrl,\n    attachmentUrl = _state$fileServer$att === void 0 ? '' : _state$fileServer$att;\n  var designerRef = (0, _react.useRef)();\n\n  // 请求model数据\n  var fetchDomainModel = (0, _react.useCallback)(function (modelType) {\n    (0, _Tools.fetchData)('', 'nocode/getDomainModel.do', {\n      modelType: modelType,\n      targetFormId: formId\n    }).then(function (res) {\n      return setMeta(res.data);\n    });\n  }, []);\n  var fetchFormMetaData = /*#__PURE__*/function () {\n    var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {\n      var _rows$, _yield$getFormMetaDat, _yield$getFormMetaDat2, rows, _data, message;\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, _designer.getFormMetaData)({\n              appId: appId,\n              targetFormId: formId\n            });\n          case 3:\n            _yield$getFormMetaDat = _context3.sent;\n            _yield$getFormMetaDat2 = _yield$getFormMetaDat.rows;\n            rows = _yield$getFormMetaDat2 === void 0 ? [] : _yield$getFormMetaDat2;\n            _data = ((_rows$ = rows[0]) === null || _rows$ === void 0 ? void 0 : _rows$.metadata) || {};\n            (0, _reactDom.unstable_batchedUpdates)(function () {\n              var _rows$2;\n              setData(TransformMetaData(_data, formId, needSystemField));\n              setTableMetas(((_rows$2 = rows[0]) === null || _rows$2 === void 0 ? void 0 : _rows$2.tableMetas) || []);\n            });\n            _context3.next = 15;\n            break;\n          case 10:\n            _context3.prev = 10;\n            _context3.t0 = _context3[\"catch\"](0);\n            console.log(_context3.t0);\n            message = _context3.t0.message;\n            (0, _utils.showNotice)('error', message);\n          case 15:\n          case \"end\":\n            return _context3.stop();\n        }\n      }, _callee, null, [[0, 10]]);\n    }));\n    return function fetchFormMetaData() {\n      return _ref3.apply(this, arguments);\n    };\n  }();\n  var onApi = (0, _react.useCallback)(function (designerApi) {\n    designerRef.current = _objectSpread({}, designerApi);\n  }, []);\n  (0, _react.useEffect)(function () {\n    fetchDomainModel('NoCodeModel');\n    fetchFormMetaData();\n  }, []);\n  (0, _react.useImperativeHandle)(ref, function () {\n    return {\n      getDesignerRef: function getDesignerRef() {\n        return designerRef.current;\n      }\n    };\n  });\n  var designerWrapperClass = (0, _classnames.default)((0, _defineProperty2.default)({}, _DesignerPermissionView.default['nocode-designer-wrapper'], true));\n  if (meta && data && NoCodeDesigner) {\n    return /*#__PURE__*/_react.default.createElement(\"div\", {\n      className: designerWrapperClass\n    }, /*#__PURE__*/_react.default.createElement(NoCodeDesigner, {\n      meta: meta,\n      data: data,\n      tableMetas: tableMetas,\n      onApi: onApi,\n      settingData: null,\n      floatMenu: floatMenu,\n      defaultFieldStatusMap: value,\n      fieldStatusSettingMode: fieldStatusSettingMode,\n      fieldStatusSettingOptions: fieldStatusSettingOptions,\n      baseUrl: {\n        attachment: attachmentUrl,\n        picture: imageUrl\n      }\n    }));\n  }\n  return null;\n});\nDesignerPermissionView.displayName = 'DesignerPermissionView';\nvar _default = exports[\"default\"] = DesignerPermissionView;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/fieldPermission/DesignerPermissionView.tsx\n");

/***/ }),

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

eval("\n\nvar _typeof = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"../../node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\nvar _WeakMap = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/weak-map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/weak-map.js\");\nvar _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\nvar _Object$getOwnPropertyDescriptor = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js\");\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs3/helpers/interopRequireDefault */ \"../../node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js\");\n_Object$defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports[\"default\"] = void 0;\nvar _react = _interopRequireWildcard(__webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\"));\nvar _kdesign = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\nvar _DesignerPermissionView = _interopRequireDefault(__webpack_require__(/*! ./DesignerPermissionView */ \"./src/web/component/fieldPermission/DesignerPermissionView.tsx\"));\nvar _index = _interopRequireDefault(__webpack_require__(/*! ./index.less */ \"./src/web/component/fieldPermission/index.less\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2023-06-25 09:33:12\n * @LastEditTime: 2023-08-24 17:12:00\n * @Last Modified by: jianhang_he\n */\n/**\n * 抽屉-配置字段权限\n */\n\nvar FieldPermission = function FieldPermission(_ref) {\n  var formId = _ref.formId,\n    appId = _ref.appId,\n    visible = _ref.visible,\n    value = _ref.value,\n    title = _ref.title,\n    fieldPermissionMenu = _ref.fieldPermissionMenu,\n    _ref$fieldStatusSetti = _ref.fieldStatusSettingMode,\n    fieldStatusSettingMode = _ref$fieldStatusSetti === void 0 ? 'default' : _ref$fieldStatusSetti,\n    fieldStatusSettingOptions = _ref.fieldStatusSettingOptions,\n    needSystemField = _ref.needSystemField,\n    setVisible = _ref.setVisible,\n    onChange = _ref.onChange;\n  var permissionViewRef = (0, _react.useRef)(null);\n  var handleConfirm = function handleConfirm() {\n    var _ref2 = permissionViewRef.current || {},\n      getDesignerRef = _ref2.getDesignerRef;\n    var _ref3 = (getDesignerRef === null || getDesignerRef === void 0 ? void 0 : getDesignerRef()) || {},\n      fieldStatusMap = _ref3.fieldStatusMap;\n    onChange === null || onChange === void 0 || onChange(fieldStatusMap, {\n      getDesignerRef: getDesignerRef\n    });\n    setVisible(false);\n  };\n  return /*#__PURE__*/_react.default.createElement(_kdesign.Drawer, {\n    mask: true,\n    maskStyle: {\n      opacity: 0\n    },\n    visible: visible,\n    onClose: function onClose() {\n      return setVisible(false);\n    },\n    getContainer: function getContainer() {\n      return document.body;\n    },\n    width: 960,\n    keyboard: false,\n    className: _index.default.drawer,\n    title: title,\n    maskClosable: true,\n    destroyOnClose: true\n  }, /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index.default.drawer_content\n  }, /*#__PURE__*/_react.default.createElement(_DesignerPermissionView.default, {\n    formId: formId,\n    appId: appId,\n    value: value,\n    floatMenu: fieldPermissionMenu,\n    fieldStatusSettingMode: fieldStatusSettingMode,\n    fieldStatusSettingOptions: fieldStatusSettingOptions,\n    ref: permissionViewRef,\n    needSystemField: needSystemField\n  }), /*#__PURE__*/_react.default.createElement(\"div\", {\n    className: _index.default.drawer_footer\n  }, /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    onClick: function onClick() {\n      return setVisible(false);\n    },\n    style: {\n      marginRight: '12px'\n    }\n  }, \"\\u53D6\\u6D88\"), /*#__PURE__*/_react.default.createElement(_kdesign.Button, {\n    type: \"primary\",\n    onClick: handleConfirm\n  }, \"\\u786E\\u5B9A\"))));\n};\nvar _default = exports[\"default\"] = FieldPermission;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/web/component/fieldPermission/index.tsx\n");

/***/ })

}]);