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

/***/ "./src/control/web/Checkbox/index.less":
/*!*********************************************!*\
  !*** ./src/control/web/Checkbox/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\"] = ({\"checkbox_disabled\":\"TPA-RSf8_checkbox_disabled\"});\n\n//# sourceURL=webpack://nocode-component/./src/control/web/Checkbox/index.less?");

/***/ }),

/***/ "./src/control/web/Radio/index.less":
/*!******************************************!*\
  !*** ./src/control/web/Radio/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\"] = ({\"radio_disabled\":\"J7xCrG12_radio_disabled\"});\n\n//# sourceURL=webpack://nocode-component/./src/control/web/Radio/index.less?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __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\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __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\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __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\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_10__ = __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_concat__WEBPACK_IMPORTED_MODULE_11__ = __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_11___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _base_web__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/base/web */ \"./src/base/web/index.ts\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _utils_componentUtil__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/utils/componentUtil */ \"./src/utils/componentUtil.ts\");\n/* harmony import */ var _control_hooks_useControlState__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @/control/hooks/useControlState */ \"./src/control/hooks/useControlState.ts\");\n/* harmony import */ var _base_hooks_useDebounce__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/base/hooks/useDebounce */ \"./src/base/hooks/useDebounce.ts\");\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(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,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-10-14 17:50:31\n * @LastEditTime: 2022-11-01 13:41:01\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\nvar FORM_STATUS = {\n  addNew: 0,\n  edit: 1,\n  view: 2\n};\n/**\n * 按钮控件KD层 -- pc\n * @param props\n * @returns\n */\nvar KDButton = function KDButton(props) {\n  var _context, _context2, _context3;\n  console.log('KDButton', props);\n  var meta = props.controlMeta;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_14__.KDContext),\n    model = _useContext.model;\n  var batchInvoke = model.batchInvoke,\n    getControlText = model.getControlText;\n  var pageId = meta.pageId,\n    s = meta.s,\n    id = meta.id,\n    vi = meta.vi;\n  var styleObj = {\n    // backgroundColor: meta.bc,\n    // borderColor: meta.bc,\n    // color: meta.fc,\n    // borderRadias: meta.rd,\n    margin: _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_11___default()(_context3 = \"\".concat((s === null || s === void 0 ? void 0 : s.m.t) || 0, \" \")).call(_context3, (s === null || s === void 0 ? void 0 : s.m.r) || 0, \" \")).call(_context2, (s === null || s === void 0 ? void 0 : s.m.b) || 0, \" \")).call(_context, (s === null || s === void 0 ? void 0 : s.m.l) || 0)\n  };\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(_useState, 2),\n    btnLoading = _useState2[0],\n    setBtnLoading = _useState2[1];\n  // const isDisabled = getFormStatus(pageId) === 'view'\n  var newMeta = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useMemo)(function () {\n    var config = model.getConfig(pageId);\n    var formStatus = typeof config.status === 'string' ? FORM_STATUS[config.status] : config.status;\n    var visible = (0,_utils_componentUtil__WEBPACK_IMPORTED_MODULE_15__.getMetaVisible)(vi, formStatus);\n    return visible ? _objectSpread({}, meta) : _objectSpread(_objectSpread({}, meta), {}, {\n      Status: '4'\n    });\n  }, [pageId, vi, meta]);\n  var clickEvn = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_12__.useCallback)(function () {\n    setBtnLoading(true);\n    batchInvoke('click', pageId, id, undefined, undefined, function () {\n      setBtnLoading(false);\n    });\n  }, [batchInvoke, pageId, id, setBtnLoading]);\n  var debounceClickEvn = (0,_base_hooks_useDebounce__WEBPACK_IMPORTED_MODULE_17__[\"default\"])(clickEvn);\n  var _useControlState = (0,_control_hooks_useControlState__WEBPACK_IMPORTED_MODULE_16__[\"default\"])(newMeta),\n    disabled = _useControlState.disabled,\n    hidden = _useControlState.hidden;\n\n  // followTheme 苍穹平台是用于主题颜色配置按钮，这里主要用于区分主要按钮与普通按钮\n  var type = meta !== null && meta !== void 0 && meta.followTheme ? 'primary' : 'second';\n  console.log('kdbutton', hidden, newMeta);\n  return !hidden && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().createElement(_base_web__WEBPACK_IMPORTED_MODULE_13__.BtnField, {\n    style: styleObj,\n    type: type,\n    loading: btnLoading,\n    onClick: debounceClickEvn,\n    disabled: disabled,\n    text: getControlText(meta.text)\n  });\n};\nKDButton.displayName = 'KDButton';\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_12___default().memo(KDButton));\n\n//# sourceURL=webpack://nocode-component/./src/control/web/Button/index.tsx?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __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_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__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_web__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/base/web */ \"./src/base/web/index.ts\");\n/* harmony import */ var _control_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/control/common */ \"./src/control/common/index.ts\");\n/* harmony import */ var _FieldItemWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../FieldItemWrapper */ \"./src/control/web/FieldItemWrapper/index.tsx\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _control_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/control/hooks */ \"./src/control/hooks/index.ts\");\n/* harmony import */ var _constants_sysActionName__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/constants/sysActionName */ \"./src/constants/sysActionName.js\");\n/* harmony import */ var _utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/utils/selectUtil */ \"./src/utils/selectUtil.ts\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./index.less */ \"./src/control/web/Checkbox/index.less\");\n\n\n\n\nvar _excluded = [\"hidden\", \"required\", \"rules\"];\n\n\n\n/*\n * @Description: 多选按钮\n * @Author: jianhang_he\n * @Date: 2022-08-23 09:57:18\n * @LastEditTime: 2024-03-21 15:49:25\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n\n/** 1\n * 多选按钮 - kd层\n * @param props 属性\n * @returns\n */\nfunction KDCheckbox(_ref) {\n  var controlMeta = _ref.controlMeta;\n  var id = controlMeta.id,\n    pageId = controlMeta.pageId,\n    ops = controlMeta.ops,\n    customContent = controlMeta.customContent,\n    tileTypePc = controlMeta.tileTypePc;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_11__.KDContext),\n    model = _useContext.model;\n  var initOptions = (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__.getCurrLangOptions)(ops || (customContent === null || customContent === void 0 ? void 0 : customContent.ops), model);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useState)([]),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var _useFieldProps = (0,_control_hooks__WEBPACK_IMPORTED_MODULE_12__.useFieldProps)(controlMeta),\n    hidden = _useFieldProps.hidden,\n    required = _useFieldProps.required,\n    rules = _useFieldProps.rules,\n    fieldProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useFieldProps, _excluded);\n  var _getShowAllOptionStat = (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__.getShowAllOptionStatus)(controlMeta, fieldProps),\n    isAllScopeOfView = _getShowAllOptionStat.isAllScopeOfView,\n    showAllOptionOfView = _getShowAllOptionStat.showAllOptionOfView;\n\n  // 选项value列表\n  var optionValueList = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_4___default()(initOptions).call(initOptions, function (item) {\n      return item.value;\n    });\n  }, [initOptions]);\n\n  // 更新数据\n  var updataValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function (args) {\n    var value = args.v === '' ? [] : (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__.toArrayValue)(args.v);\n    setValue(value);\n  }, []);\n  // 注册侦听指令逻辑\n  (0,_control_hooks__WEBPACK_IMPORTED_MODULE_12__.useListenControlAction)(_constants_sysActionName__WEBPACK_IMPORTED_MODULE_13__.UPDATE_CONTROL_STATES, controlMeta, updataValue);\n\n  // 值改变\n  var handleChange = function handleChange(value) {\n    // const newValue = clone(value)\n    setValue(value);\n\n    // 产品确认不在选项中的value要在编辑的时候清除\n    var newValue = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_5___default()(value).call(value, function (item) {\n      return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_6___default()(optionValueList).call(optionValueList, item);\n    });\n    var data = {\n      k: id,\n      r: 0,\n      v: (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__.toStringValue)(newValue)\n    };\n    model.batchInvoke('updateValue', pageId, '', [], [{}, [data]]);\n  };\n  var _options = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_7__.useMemo)(function () {\n    return (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__.getAllOptionFromAllScope)(initOptions, showAllOptionOfView, value);\n  }, [initOptions, showAllOptionOfView, value]);\n  var className = classnames__WEBPACK_IMPORTED_MODULE_15___default()((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, _index_less__WEBPACK_IMPORTED_MODULE_16__[\"default\"].checkbox_disabled, showAllOptionOfView));\n  if (hidden) return null;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(_FieldItemWrapper__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n    controlMeta: controlMeta,\n    required: required,\n    rules: rules\n  }, fieldProps.readonly && !isAllScopeOfView ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(_control_common__WEBPACK_IMPORTED_MODULE_9__.ReadonlyTag, {\n    value: (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_14__.getOptionsByValue)(initOptions, value)\n  }) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().createElement(_base_web__WEBPACK_IMPORTED_MODULE_8__.Checkbox, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    defaultValue: value,\n    value: value,\n    options: _options,\n    className: className,\n    onChange: handleChange,\n    vertical: tileTypePc == 0,\n    showBgcBlock: customContent === null || customContent === void 0 ? void 0 : customContent.bgcSwitch\n  }, fieldProps)));\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_7___default().memo(KDCheckbox));\n\n//# sourceURL=webpack://nocode-component/./src/control/web/Checkbox/index.tsx?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__ = __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\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__ = __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\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__ = __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\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-properties */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _base_web__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/base/web */ \"./src/base/web/index.ts\");\n/* harmony import */ var _control_hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/control/hooks */ \"./src/control/hooks/index.ts\");\n/* harmony import */ var _constants_sysActionName__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/constants/sysActionName */ \"./src/constants/sysActionName.js\");\n/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../index */ \"./src/control/web/index.ts\");\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(e, r) { var t = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_2___default()(e); if ((_babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default())) { var o = _babel_runtime_corejs3_core_js_stable_object_get_own_property_symbols__WEBPACK_IMPORTED_MODULE_3___default()(e); r && (o = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_4___default()(o).call(o, function (r) { return _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(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,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(e, r, t[r]); }) : (_babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()) ? _babel_runtime_corejs3_core_js_stable_object_define_properties__WEBPACK_IMPORTED_MODULE_7___default()(e, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_6___default()(t)) : ownKeys(Object(t)).forEach(function (r) { _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_8___default()(e, r, _babel_runtime_corejs3_core_js_stable_object_get_own_property_descriptor__WEBPACK_IMPORTED_MODULE_5___default()(t, r)); }); } return e; }\n\n\n\n\n\nfunction KDFieldCon(props) {\n  // const { meta } = useContext(KDContext)\n  var controlMeta = props.controlMeta;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useState)({\n      v: ''\n    }),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_10__[\"default\"])(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  // 更新数据\n  var updataValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_11__.useCallback)(function (args) {\n    return setValue(args);\n  }, []);\n  var Element = _index__WEBPACK_IMPORTED_MODULE_15__[controlMeta.item.type] || controlMeta.item.type;\n  var meta = _objectSpread(_objectSpread({}, controlMeta), controlMeta.item);\n  delete meta.item;\n  // 注册侦听指令逻辑\n  (0,_control_hooks__WEBPACK_IMPORTED_MODULE_13__.useListenControlAction)(_constants_sysActionName__WEBPACK_IMPORTED_MODULE_14__.UPDATE_CONTROL_STATES, controlMeta, updataValue);\n\n  // console.log('KDFieldCon', controlMeta.id)\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(_base_web__WEBPACK_IMPORTED_MODULE_12__.FlexPanel, null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().createElement(Element, {\n    controlMeta: meta,\n    value: value\n  }));\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_11___default().memo(KDFieldCon));\n\n//# sourceURL=webpack://nocode-component/./src/control/web/FieldCon/index.tsx?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js\");\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_web_FieldItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/base/web/FieldItem */ \"./src/base/web/FieldItem/index.tsx\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _utils_componentUtil__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/componentUtil */ \"./src/utils/componentUtil.ts\");\n/* harmony import */ var _constants_serverproperties__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/constants/serverproperties */ \"./src/constants/serverproperties.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n\n\nvar _excluded = [\"controlMeta\", \"children\", \"tipsTrigger\"];\n/*\n * @Description:\n * @Author: jianhang_he\n * @Date: 2022-08-23 17:28:40\n * @LastEditTime: 2024-01-17 15:11:05\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\nvar FieldItemWrapper = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.forwardRef)(function (_ref, ref) {\n  var controlMeta = _ref.controlMeta,\n    children = _ref.children,\n    tipsTrigger = _ref.tipsTrigger,\n    others = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(_ref, _excluded);\n  var fieldItemRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_4__.KDContext),\n    model = _useContext.model;\n  var caption = controlMeta.caption,\n    LabelWidth = controlMeta.LabelWidth,\n    ShowTitle = controlMeta.ShowTitle,\n    TitleArea = controlMeta.TitleArea,\n    helpTips = controlMeta.helpTips,\n    required = controlMeta.mi,\n    rules = controlMeta.rules,\n    Status = controlMeta.Status;\n  var showTitle = !(0,_utils__WEBPACK_IMPORTED_MODULE_7__.isHideTitleArea)(TitleArea);\n  var labelStyle = {\n    width: LabelWidth\n  };\n  var labelText = model.getControlText(caption);\n  var isReadonly = Status === _constants_serverproperties__WEBPACK_IMPORTED_MODULE_6__.TEXT_STATUS_ENUM.READONLY;\n  var pageStatus = model.getFormStatus();\n  var tips = helpTips || controlMeta.HelpTips;\n  var id = controlMeta === null || controlMeta === void 0 ? void 0 : controlMeta.id;\n  // 只读态和查看太的文字间距是4px\n  // 查看态\n  if ((0,_utils_componentUtil__WEBPACK_IMPORTED_MODULE_5__.isPageViewStatus)(pageStatus)) {\n    labelStyle = (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(labelStyle, {\n      color: '#666666',\n      marginBottom: '4px'\n    });\n  }\n  // 只读态\n  if (isReadonly) {\n    labelStyle = (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(labelStyle, {\n      marginBottom: '4px'\n    });\n  }\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useImperativeHandle)(ref, function () {\n    var _fieldItemRef$current, _fieldItemRef$current2;\n    return {\n      setValidateMessage: (_fieldItemRef$current = fieldItemRef.current) === null || _fieldItemRef$current === void 0 ? void 0 : _fieldItemRef$current.setValidateMessage,\n      validateFields: (_fieldItemRef$current2 = fieldItemRef.current) === null || _fieldItemRef$current2 === void 0 ? void 0 : _fieldItemRef$current2.validateFields\n    };\n  });\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_base_web_FieldItem__WEBPACK_IMPORTED_MODULE_3__[\"default\"], (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    ref: fieldItemRef,\n    labelText: labelText,\n    required: !isReadonly && required // 只读态时不存在必录的情况\n    ,\n    labelStyle: labelStyle,\n    showTitle: showTitle,\n    tips: tips,\n    tipsTrigger: tipsTrigger,\n    rules: rules\n  }, others, {\n    id: id,\n    labelWrap: true\n  }), children);\n});\nFieldItemWrapper.displayName = 'FieldItemWrapper';\n/* harmony default export */ __webpack_exports__[\"default\"] = (FieldItemWrapper);\n\n//# sourceURL=webpack://nocode-component/./src/control/web/FieldItemWrapper/index.tsx?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __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_concat__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__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_web__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/base/web */ \"./src/base/web/index.ts\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _control_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/control/hooks */ \"./src/control/hooks/index.ts\");\n/* harmony import */ var _constants_sysActionName__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/constants/sysActionName */ \"./src/constants/sysActionName.js\");\n\n\n\n\n\n\n\nvar KDLabel = function KDLabel(props) {\n  var _context, _context2, _context3;\n  var controlMeta = props.controlMeta;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_4__.KDContext),\n    model = _useContext.model;\n  var getControlText = model.getControlText,\n    batchInvoke = model.batchInvoke;\n  var caption = controlMeta.caption,\n    s = controlMeta.s,\n    fs = controlMeta.fs,\n    fc = controlMeta.fc,\n    id = controlMeta.id,\n    pageId = controlMeta.pageId;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useState)(getControlText(caption)),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    text = _useState2[0],\n    setText = _useState2[1];\n  var style = {\n    color: fc,\n    fontSize: fs,\n    margin: s ? _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context2 = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context3 = \"\".concat(s === null || s === void 0 ? void 0 : s.m.t, \" \")).call(_context3, s === null || s === void 0 ? void 0 : s.m.r, \" \")).call(_context2, s === null || s === void 0 ? void 0 : s.m.b, \" \")).call(_context, s === null || s === void 0 ? void 0 : s.m.l) : ''\n  };\n\n  // 更新数据\n  var updataValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (args) {\n    return setText(args.text);\n  }, []);\n  // 注册侦听指令逻辑\n  (0,_control_hooks__WEBPACK_IMPORTED_MODULE_5__.useListenControlAction)(_constants_sysActionName__WEBPACK_IMPORTED_MODULE_6__.UPDATE_CONTROL_STATES, controlMeta, updataValue);\n  // console.log('KDLabel', id, text)\n\n  var clickEvn = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function () {\n    console.log('KDLabel click', pageId, id);\n    batchInvoke('click', pageId, id);\n  }, []);\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_base_web__WEBPACK_IMPORTED_MODULE_3__.Label, {\n    style: style,\n    onClick: clickEvn,\n    text: text\n  });\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,kd_libs_react__WEBPACK_IMPORTED_MODULE_2__.memo)(KDLabel));\n\n//# sourceURL=webpack://nocode-component/./src/control/web/Label/index.tsx?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectWithoutProperties */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/objectWithoutProperties.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _base_web__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/base/web */ \"./src/base/web/index.ts\");\n/* harmony import */ var _control_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/control/common */ \"./src/control/common/index.ts\");\n/* harmony import */ var _FieldItemWrapper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../FieldItemWrapper */ \"./src/control/web/FieldItemWrapper/index.tsx\");\n/* harmony import */ var _utils_context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/context */ \"./src/utils/context.ts\");\n/* harmony import */ var _control_hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/control/hooks */ \"./src/control/hooks/index.ts\");\n/* harmony import */ var _constants_sysActionName__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/constants/sysActionName */ \"./src/constants/sysActionName.js\");\n/* harmony import */ var _utils_selectUtil__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/selectUtil */ \"./src/utils/selectUtil.ts\");\n/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./index.less */ \"./src/control/web/Radio/index.less\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_13__);\n\n\n\n\nvar _excluded = [\"hidden\", \"required\", \"rules\"];\n/*\n * @Description: 单选按钮\n * @Author: jianhang_he\n * @Date: 2022-08-23 09:57:18\n * @LastEditTime: 2024-03-29 15:53:37\n * @Last Modified by: jianhang_he\n */\n\n\n\n\n\n\n\n\n\n\n\n/**\n * 单选按钮 - kd层\n * @param props 属性\n * @returns\n */\nfunction KDRadio(_ref) {\n  var controlMeta = _ref.controlMeta;\n  var id = controlMeta.id,\n    pageId = controlMeta.pageId,\n    ops = controlMeta.ops,\n    customContent = controlMeta.customContent,\n    tileTypePc = controlMeta.tileTypePc,\n    _controlMeta$scopeOfV = controlMeta.scopeOfView,\n    scopeOfView = _controlMeta$scopeOfV === void 0 ? 1 : _controlMeta$scopeOfV;\n  var _useContext = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useContext)(_utils_context__WEBPACK_IMPORTED_MODULE_8__.KDContext),\n    model = _useContext.model;\n  var initOptions = (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_11__.getCurrLangOptions)(ops || (customContent === null || customContent === void 0 ? void 0 : customContent.ops), model);\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useState)(''),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(_useState, 2),\n    value = _useState2[0],\n    setValue = _useState2[1];\n  var _useFieldProps = (0,_control_hooks__WEBPACK_IMPORTED_MODULE_9__.useFieldProps)(controlMeta),\n    hidden = _useFieldProps.hidden,\n    required = _useFieldProps.required,\n    rules = _useFieldProps.rules,\n    fieldProps = (0,_babel_runtime_corejs3_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_useFieldProps, _excluded);\n  var _getShowAllOptionStat = (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_11__.getShowAllOptionStatus)(controlMeta, fieldProps),\n    isAllScopeOfView = _getShowAllOptionStat.isAllScopeOfView,\n    showAllOptionOfView = _getShowAllOptionStat.showAllOptionOfView;\n\n  // 更新数据\n  var updataValue = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(function (args) {\n    var value = args.v;\n    setValue(value);\n  }, []);\n  // 注册侦听指令逻辑\n  (0,_control_hooks__WEBPACK_IMPORTED_MODULE_9__.useListenControlAction)(_constants_sysActionName__WEBPACK_IMPORTED_MODULE_10__.UPDATE_CONTROL_STATES, controlMeta, updataValue);\n\n  // 值改变\n  var handleChange = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useCallback)(function (value) {\n    setValue(value);\n    var data = {\n      k: id,\n      r: 0,\n      v: (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_11__.toStringValue)(value)\n    };\n    model.batchInvoke('updateValue', pageId, '', [], [{}, [data]]);\n    // model.setPostData(pageId, id, toStringValue(value))\n  }, []);\n  var _options = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useMemo)(function () {\n    return (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_11__.getAllOptionFromAllScope)(initOptions, showAllOptionOfView, value);\n  }, [initOptions, showAllOptionOfView, value]);\n  var className = classnames__WEBPACK_IMPORTED_MODULE_13___default()((0,_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({}, _index_less__WEBPACK_IMPORTED_MODULE_12__[\"default\"].radio_disabled, showAllOptionOfView && !fieldProps.disabled));\n  if (hidden) return null;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_FieldItemWrapper__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n    controlMeta: controlMeta,\n    required: required,\n    rules: rules\n  }, fieldProps.readonly && !isAllScopeOfView ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_control_common__WEBPACK_IMPORTED_MODULE_6__.ReadonlyTag, {\n    value: (0,_utils_selectUtil__WEBPACK_IMPORTED_MODULE_11__.getOptionsByValue)(initOptions, value)\n  }) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_base_web__WEBPACK_IMPORTED_MODULE_5__.Radio, (0,_babel_runtime_corejs3_helpers_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n    defaultValue: value,\n    value: value,\n    options: _options,\n    onChange: handleChange,\n    vertical: +tileTypePc === 0,\n    showBgcBlock: customContent === null || customContent === void 0 ? void 0 : customContent.bgcSwitch,\n    className: className\n  }, fieldProps)));\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().memo(KDRadio));\n\n//# sourceURL=webpack://nocode-component/./src/control/web/Radio/index.tsx?");

/***/ })

}]);