"use strict";
/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file 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_component"] = self["webpackChunknocode_component"] || []).push([[880],{

/***/ "./src/control/mobile/Grid/index.less":
/*!********************************************!*\
  !*** ./src/control/mobile/Grid/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\"] = ({\"rootgridpanel\":\"R7QMsLKT_rootgridpanel\",\"rootgridpanel_content\":\"VPCz+oTj_rootgridpanel_content\"});\n\n//# sourceURL=webpack://nocode-component/./src/control/mobile/Grid/index.less?");

/***/ }),

/***/ "./src/control/hooks/useGroupContainerState.ts":
/*!*****************************************************!*\
  !*** ./src/control/hooks/useGroupContainerState.ts ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _utils_componentUtil__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/componentUtil */ \"./src/utils/componentUtil.ts\");\n/* harmony import */ var _constants_sysActionName__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/constants/sysActionName */ \"./src/constants/sysActionName.js\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2024-04-18 14:03:08\n * @LastEditTime: 2024-04-18 14:35:28\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n// 根据Status获取分组控件的状态：编辑、禁用等\nvar useGroupContainerState = function useGroupContainerState(groupControls) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_8__.KDContext),\n    model = _useContext.model;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useState)(function () {\n      var _hiddenIds = [];\n      groupControls === null || groupControls === void 0 || groupControls.forEach(function (item) {\n        var id = item.id,\n          status = item.Status;\n        if ((0,_utils_componentUtil__WEBPACK_IMPORTED_MODULE_6__.getControlStatus)(status).hidden) {\n          _hiddenIds.push(id);\n        }\n      });\n      return _hiddenIds;\n    }),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_useState, 2),\n    hiddenIds = _useState2[0],\n    setHiddenIds = _useState2[1];\n  var actionHandle = function actionHandle(_ref) {\n    var v = _ref.v,\n      key = _ref.k;\n    var _getControlStatus = (0,_utils_componentUtil__WEBPACK_IMPORTED_MODULE_6__.getControlStatus)(v),\n      hidden = _getControlStatus.hidden;\n    setHiddenIds(function (oldState) {\n      var newState = (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(oldState);\n      if (hidden) {\n        newState.push(key);\n      } else {\n        newState = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_2___default()(newState).call(newState, function (k) {\n          return k !== key;\n        });\n      }\n      return newState;\n    });\n  };\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {\n    var removeActionLists = [];\n    groupControls.forEach(function (item) {\n      var meta = item;\n      if ((0,kd_libs_react__WEBPACK_IMPORTED_MODULE_5__.isValidElement)(item)) {\n        var _item$props;\n        meta = (item === null || item === void 0 || (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.meta) || {};\n      }\n      var _meta = meta,\n        pageId = _meta.pageId,\n        id = _meta.id;\n      removeActionLists.push(model.addControlAction(_constants_sysActionName__WEBPACK_IMPORTED_MODULE_7__.SET_CONTROL_STATUS, pageId, id, actionHandle));\n    });\n    return function () {\n      removeActionLists.length && removeActionLists.forEach(function (removeAction) {\n        return removeAction();\n      });\n    };\n  }, [groupControls]);\n  return hiddenIds;\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (useGroupContainerState);\n\n//# sourceURL=webpack://nocode-component/./src/control/hooks/useGroupContainerState.ts?");

/***/ }),

/***/ "./src/control/mobile/BillForm/index.tsx":
/*!***********************************************!*\
  !*** ./src/control/mobile/BillForm/index.tsx ***!
  \***********************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/ComponentFactory */ \"./src/utils/ComponentFactory.tsx\");\n/* harmony import */ var _base_mobile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/base/mobile */ \"./src/base/mobile/index.ts\");\n\n\n\n\nfunction KDBillForm(props) {\n  var _controlMeta$h;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_1__.KDContext),\n    meta = _useContext.meta;\n  var controlMeta = props.controlMeta;\n  // console.log('kd bill form', controlMeta)\n  var styleObj = {\n    alignItems: controlMeta.ai,\n    // 副轴对齐方式\n    flexDirection: controlMeta.dr,\n    // 排列方式\n    justifyContent: controlMeta.jc,\n    // 主转对齐方式\n    flexGrow: controlMeta.gr,\n    // 扩展\n    flexWrap: controlMeta.wr,\n    // 是否换行\n    height: ((_controlMeta$h = controlMeta.h) === null || _controlMeta$h === void 0 ? void 0 : _controlMeta$h.zh_CN) || '' // 高度\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_base_mobile__WEBPACK_IMPORTED_MODULE_3__.BillForm, {\n    style: styleObj\n  }, _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_2__[\"default\"].getChildren(controlMeta, meta));\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().memo(KDBillForm));\n\n//# sourceURL=webpack://nocode-component/./src/control/mobile/BillForm/index.tsx?");

/***/ }),

/***/ "./src/control/mobile/FlexPanel/index.tsx":
/*!************************************************!*\
  !*** ./src/control/mobile/FlexPanel/index.tsx ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _base_mobile_FlexPanel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/base/mobile/FlexPanel */ \"./src/base/mobile/FlexPanel/index.tsx\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/ComponentFactory */ \"./src/utils/ComponentFactory.tsx\");\n\n\n\n\n\nfunction KDFlexPanel(props) {\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_3__.KDContext),\n    meta = _useContext.meta,\n    model = _useContext.model;\n  var controlMeta = props.controlMeta;\n  console.log('kd flex panel', controlMeta);\n  var s = controlMeta.s,\n    id = controlMeta.id,\n    ai = controlMeta.ai,\n    dr = controlMeta.dr,\n    jc = controlMeta.jc,\n    gr = controlMeta.gr,\n    sk = controlMeta.sk,\n    wr = controlMeta.wr,\n    h = controlMeta.h;\n  var styleObj = {\n    alignItems: ai,\n    // 副轴对齐方式\n    flexDirection: dr,\n    // 排列方式\n    justifyContent: jc,\n    // 主转对齐方式\n    flexGrow: gr,\n    // 扩展\n    flexShrink: sk,\n    // 收缩\n    flexWrap: wr,\n    // 是否换行\n    height: model.getControlText(h) || undefined // 高度\n  };\n  if (s !== null && s !== void 0 && s.p) {\n    var _context, _context2, _context3;\n    styleObj.padding = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context3 = \"\".concat((s === null || s === void 0 ? void 0 : s.p.t) || 0, \" \")).call(_context3, (s === null || s === void 0 ? void 0 : s.p.r) || 0, \" \")).call(_context2, (s === null || s === void 0 ? void 0 : s.p.b) || 0, \" \")).call(_context, (s === null || s === void 0 ? void 0 : s.p.l) || 0);\n  }\n  if (s !== null && s !== void 0 && s.m) {\n    var _context4, _context5, _context6;\n    styleObj.margin = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context4 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context5 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_0___default()(_context6 = \"\".concat((s === null || s === void 0 ? void 0 : s.m.t) || 0, \" \")).call(_context6, (s === null || s === void 0 ? void 0 : s.m.r) || 0, \" \")).call(_context5, (s === null || s === void 0 ? void 0 : s.m.b) || 0, \" \")).call(_context4, (s === null || s === void 0 ? void 0 : s.m.l) || 0);\n  }\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_base_mobile_FlexPanel__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n    style: styleObj,\n    id: id\n  }, _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_4__[\"default\"].getChildren(controlMeta, meta));\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_1___default().memo(KDFlexPanel));\n\n//# sourceURL=webpack://nocode-component/./src/control/mobile/FlexPanel/index.tsx?");

/***/ }),

/***/ "./src/control/mobile/Grid/index.tsx":
/*!*******************************************!*\
  !*** ./src/control/mobile/Grid/index.tsx ***!
  \*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _base_mobile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/base/mobile */ \"./src/base/mobile/index.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/ComponentFactory */ \"./src/utils/ComponentFactory.tsx\");\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index.less */ \"./src/control/mobile/Grid/index.less\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-08-23 09:57:18\n * @LastEditTime: 2024-02-23 15:04:31\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\nfunction KDGrid(props) {\n  var _controlMeta$h, _context;\n  console.log('kd gridmobile', props);\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_5__.KDContext),\n    meta = _useContext.meta,\n    model = _useContext.model;\n  var controlMeta = props.controlMeta;\n  var backImage = controlMeta.backImage,\n    bc = controlMeta.bc,\n    caption = controlMeta.caption,\n    customStyle = controlMeta.customStyle;\n  var pictureUrl = model.getFileServer('picture');\n  var styleObj = {\n    alignItems: controlMeta.ai,\n    // 副轴对齐方式\n    flexDirection: controlMeta.dr,\n    // 排列方式\n    justifyContent: controlMeta.jc,\n    // 主转对齐方式\n    flexGrow: controlMeta.gr,\n    // 扩展\n    flexWrap: controlMeta.wr,\n    // 是否换行\n    height: ((_controlMeta$h = controlMeta.h) === null || _controlMeta$h === void 0 ? void 0 : _controlMeta$h.zh_CN) || '',\n    // 高度\n    padding: '12px'\n  };\n  var children = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_1___default()(_context = _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_6__[\"default\"].getChildren(controlMeta, meta)).call(_context, function (item) {\n    var _ref = (item === null || item === void 0 ? void 0 : item.props) || {},\n      meta = _ref.meta;\n\n    // 需要过滤分组\n    if (meta.type === 'groupcontainer' && meta.GroupIndex !== undefined && Number(meta.GroupIndex) !== 0) {\n      return false;\n    }\n    return meta.Visibility !== 'pc';\n  });\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(_index_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"].rootgridpanel, 'kd-nc-grid-pannel')\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(\"div\", {\n    className: _index_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"].rootgridpanel_content\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_base_mobile__WEBPACK_IMPORTED_MODULE_3__.FormBanner, {\n    image: customStyle && (0,_utils__WEBPACK_IMPORTED_MODULE_4__.getBackImageUrl)(pictureUrl, backImage),\n    title: caption === null || caption === void 0 ? void 0 : caption.zh_CN\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_base_mobile__WEBPACK_IMPORTED_MODULE_3__.GridPanel, {\n    column: controlMeta.columns,\n    gutter: controlMeta.gutter || [24, 24],\n    style: styleObj\n  }, children)));\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().memo(KDGrid));\n\n//# sourceURL=webpack://nocode-component/./src/control/mobile/Grid/index.tsx?");

/***/ }),

/***/ "./src/control/mobile/GroupContainer/index.tsx":
/*!*****************************************************!*\
  !*** ./src/control/mobile/GroupContainer/index.tsx ***!
  \*****************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/sort */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _base_mobile__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/base/mobile */ \"./src/base/mobile/index.ts\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/ComponentFactory */ \"./src/utils/ComponentFactory.tsx\");\n/* harmony import */ var _control_hooks_useGroupContainerState__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/control/hooks/useGroupContainerState */ \"./src/control/hooks/useGroupContainerState.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n\n\n\n\n\n\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-08-25 10:03:09\n * @LastEditTime: 2024-05-09 17:25:29\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\nvar GroupPanel = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.memo)(function (_ref) {\n  var controlId = _ref.controlId,\n    pageId = _ref.pageId,\n    groupParentId = _ref.groupParentId;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_9__.KDContext),\n    meta = _useContext.meta;\n  var subControls = _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getChildren({\n    pageId: pageId,\n    id: controlId\n  }, meta, function (item) {\n    if (groupParentId) {\n      // 需要过滤分组\n      if (item.type === 'groupcontainer' && item.GroupIndex !== undefined && Number(item.GroupIndex) !== 0) {\n        return false;\n      }\n      return item.Visibility !== 'pc';\n    }\n\n    // 兼容以前的情况\n    return !item.isTab && item.Visibility !== 'pc';\n  });\n\n  // 没激活的时候不能直接returnnull，会拿不到数据\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(_base_mobile__WEBPACK_IMPORTED_MODULE_8__.GridPanel, {\n    gutter: [24, 24]\n  }, subControls);\n});\nfunction KDGroupContainer(props) {\n  var _useContext2 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_9__.KDContext),\n    meta = _useContext2.meta,\n    model = _useContext2.model;\n  var controlMeta = props.controlMeta,\n    parentColumnSpan = props.columnSpan;\n  var TitleArea = controlMeta.TitleArea,\n    controlId = controlMeta.id,\n    tips = controlMeta.HelpTips,\n    pageId = controlMeta.pageId,\n    showCollapse = controlMeta.Collapse;\n  var name = model.getControlText(controlMeta.text);\n  var groupControls = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    var _groupControls = [];\n    if (!controlMeta.GroupParentId) {\n      _groupControls = _utils_ComponentFactory__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getChildren(controlMeta, meta, function (item) {\n        return item.isTab && item.Visibility !== 'pc';\n      });\n    } else {\n      meta.forEach(function (item) {\n        if (item.pageId === pageId && item.GroupParentId === controlMeta.GroupParentId && item.Visibility !== 'pc') {\n          _groupControls.push(item);\n        }\n      });\n      _groupControls = _babel_runtime_corejs3_core_js_stable_instance_sort__WEBPACK_IMPORTED_MODULE_1___default()(_groupControls).call(_groupControls, function (groupA, groupB) {\n        return Number(groupA.GroupIndex) - Number(groupB.GroupIndex);\n      });\n    }\n    return _groupControls;\n  }, [controlMeta, meta]);\n  var groupControlMetas = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    var _context;\n    return !controlMeta.GroupParentId ? _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = [controlMeta]).call(_context, (0,_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(groupControls)) : groupControls;\n  }, [groupControls]);\n  var hiddenIds = (0,_control_hooks_useGroupContainerState__WEBPACK_IMPORTED_MODULE_11__[\"default\"])(groupControlMetas);\n  var tabChildrenItems = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    var _tabChildrenItems = [];\n    var _groupControls = groupControls;\n    if (!controlMeta.GroupParentId) {\n      _tabChildrenItems.push({\n        id: controlId,\n        name: name,\n        tips: tips,\n        titleHidden: (0,_utils__WEBPACK_IMPORTED_MODULE_12__.isHideTitleArea)(TitleArea) || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3___default()(hiddenIds).call(hiddenIds, controlId),\n        hidden: _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3___default()(hiddenIds).call(hiddenIds, controlId),\n        key: controlId,\n        label: name,\n        children: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(GroupPanel, {\n          key: controlId,\n          controlId: controlId,\n          pageId: pageId,\n          parentColumn: parentColumnSpan,\n          isActive: true\n        })\n      });\n    }\n    _groupControls.forEach(function (item) {\n      var meta = item;\n      if ((0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.isValidElement)(item)) {\n        var _item$props;\n        meta = (item === null || item === void 0 || (_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.meta) || {};\n      }\n\n      // 分组里面的页签，并且显示标题的\n      var _meta = meta,\n        id = _meta.id,\n        text = _meta.text,\n        HelpTips = _meta.HelpTips,\n        TitleArea = _meta.TitleArea;\n\n      // 后端发过来的隐藏以及控件本身设置的隐藏\n      // if (!hiddenIds.includes(id)) {\n      _tabChildrenItems.push({\n        id: id,\n        name: model.getControlText(text),\n        tips: HelpTips,\n        titleHidden: (0,_utils__WEBPACK_IMPORTED_MODULE_12__.isHideTitleArea)(TitleArea) || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3___default()(hiddenIds).call(hiddenIds, id),\n        hidden: _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_3___default()(hiddenIds).call(hiddenIds, id),\n        key: id,\n        label: model.getControlText(text),\n        children: /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(GroupPanel, {\n          key: id,\n          controlId: id,\n          pageId: pageId,\n          parentColumn: parentColumnSpan,\n          groupParentId: controlMeta.GroupParentId,\n          isActive: true\n        })\n      });\n      // }\n    });\n    return _tabChildrenItems;\n  }, [controlId, controlMeta, groupControls, hiddenIds]);\n  var handleItemClick = function handleItemClick(id) {\n    // if (tabChildrenItems.length === 1 && showCollapse) {\n    //   setCollapse(collapse => !collapse)\n    //   return\n    // }\n  };\n  if (tabChildrenItems.length === 0) return null;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(_base_mobile__WEBPACK_IMPORTED_MODULE_8__.Tabs, {\n    allowCollapse: showCollapse,\n    onChange: handleItemClick,\n    items: tabChildrenItems\n  });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().memo(KDGroupContainer));\n\n//# sourceURL=webpack://nocode-component/./src/control/mobile/GroupContainer/index.tsx?");

/***/ })

}]);