Auto Submit

dev_local_v9_haijunshiguan_net
autosubmit 2 years ago
parent e7918f37f5
commit 38f06842a9

@ -48,6 +48,7 @@ var MdEditorInForm = function MdEditorInForm(_ref) {
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
@ -66,7 +67,8 @@ var RegularInput = function RegularInput(_ref2) {
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'
@ -540,9 +542,8 @@ var SingleEditor = function SingleEditor(_ref, ref) {
}, index)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
flex: "1",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span", {
className: "c-black font14",
children: item.answer_text
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
value: item.answer_text
})
})]
});
@ -557,9 +558,8 @@ var SingleEditor = function SingleEditor(_ref, ref) {
}, index)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
flex: "1",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span", {
className: "c-black font14",
children: item
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
value: item
})
})]
});
@ -1224,9 +1224,8 @@ var SingleEditor = function SingleEditor(_ref, ref) {
}, index)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
flex: "1",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span", {
className: "c-black font14",
children: item.answer_text
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
value: item.answer_text
})
})]
});
@ -1241,9 +1240,8 @@ var SingleEditor = function SingleEditor(_ref, ref) {
}, index)
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
flex: "1",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span", {
className: "c-black font14",
children: item
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
value: item
})
})]
});

@ -310,6 +310,7 @@ var MdEditorInForm = function MdEditorInForm(_ref) {
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
@ -328,7 +329,8 @@ var RegularInput = function RegularInput(_ref2) {
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'

@ -1697,6 +1697,7 @@ var MdEditorInForm = function MdEditorInForm(_ref) {
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
@ -1715,7 +1716,8 @@ var RegularInput = function RegularInput(_ref2) {
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[36244],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56337,73336,88178,14161,70122,98255],{
/***/ 22596:
/*!***********************************************************************************************************!*\
@ -46,51 +46,6 @@ if (false) {}
/***/ }),
/***/ 43501:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_DownOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.24.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(4751);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/DownOutlined.js
// This icon file is generated automatically.
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
/* harmony default export */ var asn_DownOutlined = (DownOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(68475);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DownOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownOutlined_DownOutlined = function DownOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_DownOutlined
}));
};
/**![down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NCAyNTZoLTc1Yy01LjEgMC05LjkgMi41LTEyLjkgNi42TDUxMiA2NTQuMiAyMjcuOSAyNjIuNmMtMy00LjEtNy44LTYuNi0xMi45LTYuNmgtNzVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDM1Mi42IDQ4Ni4xYzEyLjggMTcuNiAzOSAxNy42IDUxLjcgMGwzNTIuNi00ODYuMWMzLjktNS4zLjEtMTIuNy02LjQtMTIuN3oiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined);
if (false) {}
/* harmony default export */ var icons_DownOutlined = (RefIcon);
/***/ }),
/***/ 89136:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
@ -1672,177 +1627,221 @@ Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
/***/ }),
/***/ 92899:
/*!***************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
\***************************************************************/
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
/* harmony export */ });
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 18353);
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
"use client";
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
'0%': {
transform: 'translate3d(0, 100%, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(0, 100%, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
'0%': {
transform: 'translate3d(-100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(-100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
'0%': {
transform: 'translate3d(100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
'0%': {
transform: 'translate3d(0, -100%, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(0, -100%, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveMotion = {
'move-up': {
inKeyframes: moveUpIn,
outKeyframes: moveUpOut
},
'move-down': {
inKeyframes: moveDownIn,
outKeyframes: moveDownOut
},
'move-left': {
inKeyframes: moveLeftIn,
outKeyframes: moveLeftOut
},
'move-right': {
inKeyframes: moveRightIn,
outKeyframes: moveRightOut
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const initMoveMotion = (token, motionName) => {
const {
antCls
} = token;
const motionCls = `${antCls}-${motionName}`;
const {
inKeyframes,
outKeyframes
} = moveMotion[motionName];
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
[`
${motionCls}-enter,
${motionCls}-appear
`]: {
opacity: 0,
animationTimingFunction: token.motionEaseOutCirc
},
[`${motionCls}-leave`]: {
animationTimingFunction: token.motionEaseInOutCirc
}
}];
};
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
/***/ }),
/***/ 6774:
/*!*************************************************************************************************************!*\
!*** ./node_modules/_scroll-into-view-if-needed@3.1.0@scroll-into-view-if-needed/dist/index.js + 1 modules ***!
\*************************************************************************************************************/
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ dist_e; }
});
;// CONCATENATED MODULE: ./node_modules/_compute-scroll-into-view@3.1.0@compute-scroll-into-view/dist/index.js
const t=t=>"object"==typeof t&&null!=t&&1===t.nodeType,e=(t,e)=>(!e||"hidden"!==t)&&("visible"!==t&&"clip"!==t),n=(t,n)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){const o=getComputedStyle(t,null);return e(o.overflowY,n)||e(o.overflowX,n)||(t=>{const e=(t=>{if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}})(t);return!!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)})(t)}return!1},o=(t,e,n,o,l,r,i,s)=>r<t&&i>e||r>t&&i<e?0:r<=t&&s<=n||i>=e&&s>=n?r-t-o:i>e&&s<n||r<t&&s>n?i-e+l:0,l=t=>{const e=t.parentElement;return null==e?t.getRootNode().host||null:e},dist_r=(e,r)=>{var i,s,d,h;if("undefined"==typeof document)return[];const{scrollMode:c,block:f,inline:u,boundary:a,skipOverflowHiddenElements:g}=r,p="function"==typeof a?a:t=>t!==a;if(!t(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,w=[];let W=e;for(;t(W)&&p(W);){if(W=l(W),W===m){w.push(W);break}null!=W&&W===document.body&&n(W)&&!n(document.documentElement)||null!=W&&n(W,g)&&w.push(W)}const b=null!=(s=null==(i=window.visualViewport)?void 0:i.width)?s:innerWidth,H=null!=(h=null==(d=window.visualViewport)?void 0:d.height)?h:innerHeight,{scrollX:y,scrollY:M}=window,{height:v,width:E,top:x,right:C,bottom:I,left:R}=e.getBoundingClientRect(),{top:T,right:B,bottom:F,left:V}=(t=>{const e=window.getComputedStyle(t);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(e);let k="start"===f||"nearest"===f?x-T:"end"===f?I+F:x+v/2-T+F,D="center"===u?R+E/2-V+B:"end"===u?C+B:R-V;const L=[];for(let t=0;t<w.length;t++){const e=w[t],{height:n,width:l,top:r,right:i,bottom:s,left:d}=e.getBoundingClientRect();if("if-needed"===c&&x>=0&&R>=0&&I<=H&&C<=b&&x>=r&&I<=s&&R>=d&&C<=i)return L;const h=getComputedStyle(e),a=parseInt(h.borderLeftWidth,10),g=parseInt(h.borderTopWidth,10),p=parseInt(h.borderRightWidth,10),W=parseInt(h.borderBottomWidth,10);let T=0,B=0;const F="offsetWidth"in e?e.offsetWidth-e.clientWidth-a-p:0,V="offsetHeight"in e?e.offsetHeight-e.clientHeight-g-W:0,S="offsetWidth"in e?0===e.offsetWidth?0:l/e.offsetWidth:0,X="offsetHeight"in e?0===e.offsetHeight?0:n/e.offsetHeight:0;if(m===e)T="start"===f?k:"end"===f?k-H:"nearest"===f?o(M,M+H,H,g,W,M+k,M+k+v,v):k-H/2,B="start"===u?D:"center"===u?D-b/2:"end"===u?D-b:o(y,y+b,b,a,p,y+D,y+D+E,E),T=Math.max(0,T+M),B=Math.max(0,B+y);else{T="start"===f?k-r-g:"end"===f?k-s+W+V:"nearest"===f?o(r,s,n,g,W+V,k,k+v,v):k-(r+n/2)+V/2,B="start"===u?D-d-a:"center"===u?D-(d+l/2)+F/2:"end"===u?D-i+p+F:o(d,i,l,a,p+F,D,D+E,E);const{scrollLeft:t,scrollTop:h}=e;T=0===X?0:Math.max(0,Math.min(h+T/X,e.scrollHeight-n/X+V)),B=0===S?0:Math.max(0,Math.min(t+B/S,e.scrollWidth-l/S+F)),k+=h-T,D+=t-B}L.push({el:e,top:T,left:B})}return L};//# sourceMappingURL=index.js.map
;// CONCATENATED MODULE: ./node_modules/_scroll-into-view-if-needed@3.1.0@scroll-into-view-if-needed/dist/index.js
const dist_o=t=>!1===t?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&0!==Object.keys(t).length)(t)?t:{block:"start",inline:"nearest"};function dist_e(e,r){if(!e.isConnected||!(t=>{let o=t;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(t=>{const o=window.getComputedStyle(t);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((t=>"object"==typeof t&&"function"==typeof t.behavior)(r))return r.behavior(dist_r(e,r));const l="boolean"==typeof r||null==r?void 0:r.behavior;for(const{el:a,top:i,left:s}of dist_r(e,dist_o(r))){const t=i-n.top+n.bottom,o=s-n.left+n.right;a.scroll({top:t,left:o,behavior:l})}}//# sourceMappingURL=index.js.map
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const InternalSelect = (_a, ref) => {
var _b;
var {
prefixCls: customizePrefixCls,
bordered = true,
className,
rootClassName,
getPopupContainer,
popupClassName,
dropdownClassName,
listHeight = 256,
placement,
listItemHeight = 24,
size: customizeSize,
disabled: customDisabled,
notFoundContent,
status: customStatus,
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
style,
allowClear
} = _a,
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
select
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
const {
compactSize,
compactItemClassnames
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
const {
mode: m
} = props;
if (m === 'combobox') {
return undefined;
}
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
return 'combobox';
}
return m;
}, [props.mode]);
const isMultiple = mode === 'multiple' || mode === 'tags';
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
// ===================== Form Status =====================
const {
status: contextStatus,
hasFeedback,
isFormItemInput,
feedbackIcon
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
// ===================== Empty =====================
let mergedNotFound;
if (notFoundContent !== undefined) {
mergedNotFound = notFoundContent;
} else if (mode === 'combobox') {
mergedNotFound = null;
} else {
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
componentName: "Select"
});
}
// ===================== Icons =====================
const {
suffixIcon,
itemIcon,
removeIcon,
clearIcon
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
multiple: isMultiple,
hasFeedback,
feedbackIcon,
showSuffixIcon,
prefixCls,
showArrow: props.showArrow,
componentName: 'Select'
}));
const mergedAllowClear = allowClear === true ? {
clearIcon
} : allowClear;
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
}, rootClassName, hashId);
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
// ===================== Disabled =====================
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-lg`]: mergedSize === 'large',
[`${prefixCls}-sm`]: mergedSize === 'small',
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered,
[`${prefixCls}-in-form-item`]: isFormItemInput
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
// ===================== Placement =====================
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
if (placement !== undefined) {
return placement;
}
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
}, [placement, direction]);
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
// ====================== Warning ======================
if (false) {}
// ====================== Render =======================
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
ref: ref,
virtual: virtual,
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
}, selectProps, {
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
builtinPlacements: mergedBuiltinPlacements,
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
listHeight: listHeight,
listItemHeight: listItemHeight,
mode: mode,
prefixCls: prefixCls,
placement: memoPlacement,
direction: direction,
suffixIcon: suffixIcon,
menuItemSelectedIcon: itemIcon,
removeIcon: removeIcon,
allowClear: mergedAllowClear,
notFoundContent: mergedNotFound,
className: mergedClassName,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: rcSelectRtlDropdownClassName,
disabled: mergedDisabled
})));
};
if (false) {}
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ })

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.ae025634.js"></script>
<script src="/react/build/umi.49154cba.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -48,6 +48,7 @@ var MdEditorInForm = function MdEditorInForm(_ref) {
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
@ -66,7 +67,8 @@ var RegularInput = function RegularInput(_ref2) {
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'

@ -48,6 +48,7 @@ var MdEditorInForm = function MdEditorInForm(_ref) {
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
@ -66,7 +67,8 @@ var RegularInput = function RegularInput(_ref2) {
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'

@ -258,4 +258,197 @@
flex-direction: row;
align-items: center;
}
.startAnswer___OxB2F {
width: 100%;
height: 50px;
line-height: 50px;
padding-left: 20px;
background: #ffffff;
border-radius: 6px;
border: 1px solid #ccccc0;
cursor: pointer;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.2.11@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.2.11@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.wrap___ilWvf div[class~='ant-form-item'] {
margin-bottom: 0;
}
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
display: none;
}
.wrap___ilWvf .deleteIcon___JBDG8 {
color: #E30000;
font-size: 14px;
}
.wrap___ilWvf .keywordTag___iieCb {
padding: 10px 10px 10px 8px;
font-size: 14px;
font-weight: 400;
color: #000000;
}
.questionTitleEditorWrap___MHB5s {
margin-bottom: 18px;
}
.choiceWrap___QFkTc {
margin-bottom: 20px;
}
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
display: flex;
flex: 0 0 auto;
justify-content: center;
align-items: center;
width: 46px;
height: 46px;
border-radius: 23px;
border: 1px solid #DCDCDC;
font-size: 16px;
font-weight: 400;
color: #464F66;
cursor: pointer;
}
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
border-radius: 2px;
}
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
border-radius: 2px;
border: 1px solid #DCDCDC;
font-size: 14px;
font-weight: 400;
color: #9096A3;
height: 46px;
display: flex;
align-items: center;
padding: 0 16px;
cursor: pointer;
}
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
background-color: #37AD83;
border-color: #37AD83;
color: #fff;
}
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
background-color: #ebf6f2;
border-color: #37AD83;
color: #37AD83;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
display: flex;
align-items: center;
justify-content: flex-end;
margin: auto 0 auto 20px;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
color: #2FA34F;
font-size: 14px;
}
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
color: #E30000;
font-size: 14px;
margin-left: 20px;
}
.inputBorder___Q5tRE {
border-radius: 2px;
border: 1px solid #DCDCDC;
padding: 8px 12px;
font-size: 14px;
min-height: 46px;
display: flex;
align-items: center;
}
.placeholder___p9sFY {
font-size: 14px;
font-weight: 400;
color: #9096A3;
}
.blankWrapper___nC45e {
display: flex;
align-items: center;
}
.blankWrapper___nC45e .blankInput___pEHsx {
border-radius: 2px;
border: 1px solid #DCDCDC;
height: 46px;
font-size: 14px;
}
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
line-height: 46px;
}
.blankInputNumberWrapper___uEHb0 [class~="ant-row"] {
align-items: center !important;
}
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
font-size: 14px;
height: 46px;
}
.addBtn___WR5ZI {
display: flex;
justify-content: center;
align-items: center;
width: 80px;
height: 32px;
background: #3061D0;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 16px;
cursor: pointer;
font-weight: 400;
color: #FFFFFF;
font-size: 12px;
}
.blankIndex___x9Pny {
font-size: 14px;
font-weight: 400;
color: #666666;
}
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
line-height: 56px;
}
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
font-size: 14px;
}
div[class~='ant-collapse-borderless'] {
background-color: #fff;
}
.collapseWrapper___ZTysU {
margin-bottom: 30px;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
margin-bottom: 20px;
border: none;
box-shadow: 0px 2px 4px 0px #EAEEF4;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
padding: 0 20px !important;
height: 64px !important;
background-color: #F6F7F8;
align-items: center !important;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
background-color: #fff !important;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
padding: 20px 40px !important;
}
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
background-color: #eaeffa !important;
}
.collapseWrapper___ZTysU .panelHeader___QSN9g {
font-size: 14px;
font-weight: 400;
color: #000000;
}
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
color: #666666;
}
.collapseWrapper___ZTysU .open___B6FU9 {
color: #165DFF;
transform: rotateZ(90deg);
}
.collapseWrapper___ZTysU .close___QX19r {
color: #82A8FF;
}
.hide___mn25n {
display: none;
}

@ -1,6 +1,91 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[65148],{
/***/ 81092:
/*!**********************************************************!*\
!*** ./src/components/QuestionEditor/MdEditorInForm.tsx ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ h: function() { return /* binding */ MdEditorInForm; },
/* harmony export */ x: function() { return /* binding */ RegularInput; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/markdown-editor */ 2233);
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less?modules */ 53115);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 12297);
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
var _excluded = ["value", "onChange", "scrollId"];
var MdEditorInForm = function MdEditorInForm(_ref) {
var value = _ref.value,
_onChange = _ref.onChange,
scrollId = _ref.scrollId,
props = _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
id: scrollId || '',
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test1_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
// hidetoolBar
defaultValue: value,
onChange: function onChange(a, b) {
console.log("a:", a, b);
if (!!(b !== null && b !== void 0 && b.length)) _onChange(a, b);else _onChange(a);
}
}))
});
};
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
isEdit = _ref2.isEdit,
_ref2$disabled = _ref2.disabled,
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
return disabled ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.placeholder),
style: {
cursor: 'not-allowed'
},
children: placeholder
}) : isEdit ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
watch: true,
isFocus: true,
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'
},
children: value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder,
value: value
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.placeholder),
children: placeholder
})
});
};
/***/ }),
/***/ 21772:
/*!***********************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Polls/Answer/index.tsx + 4 modules ***!
@ -57,17 +142,19 @@ var es_button = __webpack_require__(3113);
var ArrowLeftOutlined = __webpack_require__(22596);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Answer/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Answermodules = ({"flex_box_center":"flex_box_center___iNvBA","flex_space_between":"flex_space_between___btrNY","flex_box_vertical_center":"flex_box_vertical_center___jNwqd","flex_box_center_end":"flex_box_center_end___yhhzS","flex_box_column":"flex_box_column___XCG9Z","bg":"bg___pkT5R","title":"title___txwwg","questionIcons":"questionIcons___bUmrp","green":"green___pU_n6","orange":"orange___WqPTj","greenTip":"greenTip___xA46L","redTip":"redTip___cLZrd","orangeTip":"orangeTip___IYw_9","pollDesc":"pollDesc___k8j8U","answered":"answered___Wv6LV","unanswer":"unanswer___HFr5V","anchor":"anchor___wiaGO","answerFlag":"answerFlag___Son3q","answerActive":"answerActive___vadIk","redactivie":"redactivie___lv5Yx","questionItem":"questionItem___eheF5","itemType":"itemType___cTyzU","itemFlag":"itemFlag____JLv3","answerWrap":"answerWrap___q0vMa","answerSubjective":"answerSubjective___g0GxR","otherInput":"otherInput___lNi1t","submitButton":"submitButton___Kwl_S","flexRow":"flexRow___CzS9_"});
/* harmony default export */ var Answermodules = ({"flex_box_center":"flex_box_center___iNvBA","flex_space_between":"flex_space_between___btrNY","flex_box_vertical_center":"flex_box_vertical_center___jNwqd","flex_box_center_end":"flex_box_center_end___yhhzS","flex_box_column":"flex_box_column___XCG9Z","bg":"bg___pkT5R","title":"title___txwwg","questionIcons":"questionIcons___bUmrp","green":"green___pU_n6","orange":"orange___WqPTj","greenTip":"greenTip___xA46L","redTip":"redTip___cLZrd","orangeTip":"orangeTip___IYw_9","pollDesc":"pollDesc___k8j8U","answered":"answered___Wv6LV","unanswer":"unanswer___HFr5V","anchor":"anchor___wiaGO","answerFlag":"answerFlag___Son3q","answerActive":"answerActive___vadIk","redactivie":"redactivie___lv5Yx","questionItem":"questionItem___eheF5","itemType":"itemType___cTyzU","itemFlag":"itemFlag____JLv3","answerWrap":"answerWrap___q0vMa","answerSubjective":"answerSubjective___g0GxR","otherInput":"otherInput___lNi1t","submitButton":"submitButton___Kwl_S","flexRow":"flexRow___CzS9_","startAnswer":"startAnswer___OxB2F"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(76279);
// EXTERNAL MODULE: ./src/service/classrooms.ts
var classrooms = __webpack_require__(39324);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(22961);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12297);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
var es_radio = __webpack_require__(5112);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(98135);
// EXTERNAL MODULE: ./src/components/QuestionEditor/MdEditorInForm.tsx
var MdEditorInForm = __webpack_require__(81092);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Answer/components/Single.tsx
@ -79,8 +166,10 @@ var jsx_runtime = __webpack_require__(37712);
var Single = function Single(_ref) {
var _itemData$question2, _itemData$question4, _itemData$question6, _answerData$poll;
var _itemData$question2, _itemData$question4, _itemData$question6, _itemData$question7, _answerData$poll;
var itemData = _ref.itemData,
answerData = _ref.answerData,
_ref$onSave = _ref.onSave,
@ -97,6 +186,14 @@ var Single = function Single(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
otherData = _useState6[0],
setOtherData = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
showEditor = _useState8[0],
setShowEditor = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
isFocus = _useState10[0],
setIsFocus = _useState10[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _itemData$question;
setData((itemData === null || itemData === void 0 || (_itemData$question = itemData.question) === null || _itemData$question === void 0 ? void 0 : _itemData$question.answers) || []);
@ -135,32 +232,70 @@ var Single = function Single(_ref) {
onSave(id, checkedData, '');
}
};
console.log("checkedData", checkedData);
console.log("itemData--", itemData === null || itemData === void 0 || (_itemData$question7 = itemData.question) === null || _itemData$question7 === void 0 ? void 0 : _itemData$question7.poll_vote_texts);
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default.Group */.ZP.Group, {
disabled: (0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$poll = answerData.poll) === null || _answerData$poll === void 0 ? void 0 : _answerData$poll.user_poll_status) === 1,
value: checkedData,
onChange: function onChange(e) {
var _itemData$question7;
handerChangeSingle(e.target.value, itemData === null || itemData === void 0 || (_itemData$question7 = itemData.question) === null || _itemData$question7 === void 0 ? void 0 : _itemData$question7.id);
var _itemData$question8;
handerChangeSingle(e.target.value, itemData === null || itemData === void 0 || (_itemData$question8 = itemData.question) === null || _itemData$question8 === void 0 ? void 0 : _itemData$question8.id);
},
children: data.map(function (answer, index) {
var _answerData$poll2, _itemData$question9;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(Answermodules.answerWrap, " ").concat(Answermodules.flexRow),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
value: answer === null || answer === void 0 ? void 0 : answer.answer_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "font14",
children: answer === null || answer === void 0 ? void 0 : answer.answer_text
}), checkedOtherName(answer === null || answer === void 0 ? void 0 : answer.answer_text) && /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: Answermodules.otherInput,
value: otherData,
onChange: function onChange(e) {
return setOtherData(e.target.value);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: answer === null || answer === void 0 ? void 0 : answer.answer_text
}), checkedOtherName(answer === null || answer === void 0 ? void 0 : answer.answer_text) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flex: 1
},
onBlur: function onBlur(e) {
var _itemData$question8;
return handleBlurOhter(itemData === null || itemData === void 0 || (_itemData$question8 = itemData.question) === null || _itemData$question8 === void 0 ? void 0 : _itemData$question8.id);
}
})]
children: (answerData === null || answerData === void 0 || (_answerData$poll2 = answerData.poll) === null || _answerData$poll2 === void 0 ? void 0 : _answerData$poll2.user_poll_status) === 1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Answermodules.simpleText,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: itemData === null || itemData === void 0 || (_itemData$question9 = itemData.question) === null || _itemData$question9 === void 0 ? void 0 : _itemData$question9.poll_vote_texts
})
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginLeft: '10px'
},
onClick: function onClick() {
setShowEditor(true);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* RegularInput */.x, {
height: 155,
placeholder: '',
isEdit: showEditor,
value: otherData,
onChange: function onChange(e) {
setOtherData(e);
setIsFocus(true);
},
onBlur: function onBlur() {
var _itemData$question10;
handleBlurOhter(itemData === null || itemData === void 0 || (_itemData$question10 = itemData.question) === null || _itemData$question10 === void 0 ? void 0 : _itemData$question10.id);
// setTimeout(() => {
// onBlur(value.current);
// }, 200)
// clearInterval(timeRef.current);
setIsFocus(false);
// setShowEditor(false)
}
})
})
})
// <Input
// className={styles.otherInput}
// value={otherData}
// onChange={e => setOtherData(e.target.value)}
// onBlur={e => handleBlurOhter(itemData?.question?.id)}
// />
]
}, index);
})
});
@ -177,6 +312,8 @@ var es_checkbox = __webpack_require__(24905);
var Multiple = function Multiple(_ref) {
var _itemData$question2, _itemData$question4, _itemData$question6, _answerData$poll;
var itemData = _ref.itemData,
@ -195,6 +332,14 @@ var Multiple = function Multiple(_ref) {
_useState6 = slicedToArray_default()(_useState5, 2),
otherData = _useState6[0],
setOtherData = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
showEditor = _useState8[0],
setShowEditor = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)(false),
_useState10 = slicedToArray_default()(_useState9, 2),
isFocus = _useState10[0],
setIsFocus = _useState10[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _itemData$question;
setData((itemData === null || itemData === void 0 || (_itemData$question = itemData.question) === null || _itemData$question === void 0 ? void 0 : _itemData$question.answers) || []);
@ -241,35 +386,88 @@ var Multiple = function Multiple(_ref) {
handerChangeMultiple(value, itemData === null || itemData === void 0 || (_itemData$question7 = itemData.question) === null || _itemData$question7 === void 0 ? void 0 : _itemData$question7.id);
},
children: data === null || data === void 0 ? void 0 : data.map(function (answer, index) {
var _answerData$poll2, _itemData$question8;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(Answermodules.answerWrap, " ").concat(Answermodules.flexRow),
style: {
width: checkedOtherName(answer === null || answer === void 0 ? void 0 : answer.answer_text) ? '100%' : ''
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
value: answer === null || answer === void 0 ? void 0 : answer.answer_id
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "font14",
children: answer === null || answer === void 0 ? void 0 : answer.answer_text
}), checkedOtherName(answer === null || answer === void 0 ? void 0 : answer.answer_text) && /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
className: Answermodules.otherInput,
value: otherData,
onChange: function onChange(e) {
return setOtherData(e.target.value);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: answer === null || answer === void 0 ? void 0 : answer.answer_text
}), checkedOtherName(answer === null || answer === void 0 ? void 0 : answer.answer_text) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
flex: 1
},
onBlur: function onBlur(e) {
var _itemData$question8;
return handleBlurOhter(itemData === null || itemData === void 0 || (_itemData$question8 = itemData.question) === null || _itemData$question8 === void 0 ? void 0 : _itemData$question8.id);
}
})]
children: (answerData === null || answerData === void 0 || (_answerData$poll2 = answerData.poll) === null || _answerData$poll2 === void 0 ? void 0 : _answerData$poll2.user_poll_status) === 1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Answermodules.simpleText,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: itemData === null || itemData === void 0 || (_itemData$question8 = itemData.question) === null || _itemData$question8 === void 0 ? void 0 : _itemData$question8.poll_vote_texts
})
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
marginLeft: '10px'
},
onClick: function onClick() {
setShowEditor(true);
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MdEditorInForm/* RegularInput */.x, {
height: 155,
placeholder: '',
isEdit: showEditor,
value: otherData,
onChange: function onChange(e) {
setOtherData(e);
setIsFocus(true);
},
onBlur: function onBlur() {
var _itemData$question9;
handleBlurOhter(itemData === null || itemData === void 0 || (_itemData$question9 = itemData.question) === null || _itemData$question9 === void 0 ? void 0 : _itemData$question9.id);
// setTimeout(() => {
// onBlur(value.current);
// }, 200)
// clearInterval(timeRef.current);
setIsFocus(false);
// setShowEditor(false)
}
})
})
})
// <RegularInput
// height={155}
// placeholder={''}
// isEdit={true}
// // disabled={item.disabled ? true : false}
// value={otherData}
// onChange={(e) => {
// setOtherData(e)
// }}
// onBlur={e => handleBlurOhter(itemData?.question?.id)}
// />
// <Input
// className={styles.otherInput}
// value={otherData}
// onChange={e => setOtherData(e.target.value)}
// onBlur={e => handleBlurOhter(itemData?.question?.id)}
// />
]
});
})
});
};
/* harmony default export */ var components_Multiple = (Multiple);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 11 modules
var markdown_editor = __webpack_require__(2233);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Answer/components/Subjective.tsx
var Subjective = function Subjective(_ref) {
var _itemData$question2, _answerData$poll;
var itemData = _ref.itemData,
@ -280,29 +478,62 @@ var Subjective = function Subjective(_ref) {
_useState2 = slicedToArray_default()(_useState, 2),
otherData = _useState2[0],
setOtherData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
showEditor = _useState4[0],
setShowEditor = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(false),
_useState6 = slicedToArray_default()(_useState5, 2),
isFocus = _useState6[0],
setIsFocus = _useState6[1];
(0,_react_17_0_2_react.useEffect)(function () {
var _itemData$question;
setOtherData(itemData === null || itemData === void 0 || (_itemData$question = itemData.question) === null || _itemData$question === void 0 ? void 0 : _itemData$question.poll_vote_texts);
}, [itemData === null || itemData === void 0 || (_itemData$question2 = itemData.question) === null || _itemData$question2 === void 0 ? void 0 : _itemData$question2.poll_vote_texts]);
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("textarea", {
className: Answermodules.answerSubjective,
placeholder: "\u5728\u6B64\u586B\u5165\u7B54\u6848",
disabled: (0,authority/* isAdmin */.GJ)() || (0,authority/* isStudent */.dE)() && (answerData === null || answerData === void 0 || (_answerData$poll = answerData.poll) === null || _answerData$poll === void 0 ? void 0 : _answerData$poll.user_poll_status) === 1,
value: otherData,
onChange: function onChange(e) {
return setOtherData(e.target.value);
},
onBlur: function onBlur(e) {
var _itemData$question3;
return onSave(itemData === null || itemData === void 0 || (_itemData$question3 = itemData.question) === null || _itemData$question3 === void 0 ? void 0 : _itemData$question3.id, null, otherData);
}
children: (answerData === null || answerData === void 0 || (_answerData$poll = answerData.poll) === null || _answerData$poll === void 0 ? void 0 : _answerData$poll.user_poll_status) === 1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "mb20",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Answermodules.simpleText,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: otherData
})
})
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: showEditor ? /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
isFocus: true,
defaultValue: otherData,
id: 'mutiple',
className: "mt20",
onChange: function onChange(v) {
setOtherData(v);
setIsFocus(true);
},
onBlur: function onBlur() {
var _itemData$question3;
onSave(itemData === null || itemData === void 0 || (_itemData$question3 = itemData.question) === null || _itemData$question3 === void 0 ? void 0 : _itemData$question3.id, null, otherData);
// setTimeout(() => {
// onBlur(value.current);
// }, 200)
// clearInterval(timeRef.current);
setIsFocus(false);
}
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
onClick: function onClick() {
// sign.current = true;
setShowEditor(true);
},
className: Answermodules.startAnswer,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "c-blue",
children: "\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54"
})
})
})
});
};
/* harmony default export */ var components_Subjective = (Subjective);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 1 modules
var RenderHtml = __webpack_require__(12297);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Answer/index.tsx
@ -572,8 +803,8 @@ var Answer = function Answer(_ref) {
}), item.question.question_type == 2 && item.question.min_choices && item.question.max_choices && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: item.question.min_choices == item.question.max_choices ? "可选" + item.question.max_choices + "项" : "可选" + item.question.min_choices + "-" + item.question.max_choices + "项"
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
children: item.question.question_title
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: item.question.question_title
}),
// 单选项
item.question.question_type == 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(components_Single, {
@ -697,6 +928,17 @@ var Answer = function Answer(_ref) {
};
})(Answer));
/***/ }),
/***/ 53115:
/*!**********************************************************!*\
!*** ./src/components/QuestionEditor/index.less?modules ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__) {
// extracted by mini-css-extract-plugin
/* harmony default export */ __webpack_exports__.Z = ({"wrap":"wrap___ilWvf","deleteIcon":"deleteIcon___JBDG8","keywordTag":"keywordTag___iieCb","questionTitleEditorWrap":"questionTitleEditorWrap___MHB5s","choiceWrap":"choiceWrap___QFkTc","choiceIndex":"choiceIndex___Mr2YO","judgementIndex":"judgementIndex___fUVWK","setAnswerBtn":"setAnswerBtn___Whox5","activeAnswer":"activeAnswer___fGU6Y","activeJudgementAnswer":"activeJudgementAnswer___wJv8P","actionWrapper":"actionWrapper___ERQ7k","addIcon":"addIcon___L9TE0","inputBorder":"inputBorder___Q5tRE","placeholder":"placeholder___p9sFY","blankWrapper":"blankWrapper___nC45e","blankInput":"blankInput___pEHsx","blankInputNumberWrapper":"blankInputNumberWrapper___uEHb0","addBtn":"addBtn___WR5ZI","blankIndex":"blankIndex___x9Pny","baseInputWrapper":"baseInputWrapper___eVsG7","collapseWrapper":"collapseWrapper___ZTysU","panelHeader":"panelHeader___QSN9g","open":"open___B6FU9","close":"close___QX19r","hide":"hide___mn25n"});
/***/ })
}]);

@ -1866,9 +1866,8 @@ var SingleEditor = function SingleEditor(_ref, ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
disabled: true,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-black font14",
children: item.answer_text
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: item.answer_text
})
}, index)
})
@ -2371,9 +2370,8 @@ var SingleEditor_SingleEditor = function SingleEditor(_ref, ref) {
}, index)
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "c-black font14",
children: item.answer_text
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: item.answer_text
})
})]
});

@ -423,6 +423,7 @@ var MdEditorInForm = function MdEditorInForm(_ref) {
var RegularInput = function RegularInput(_ref2) {
var value = _ref2.value,
onChange = _ref2.onChange,
onBlur = _ref2.onBlur,
placeholder = _ref2.placeholder,
_ref2$height = _ref2.height,
height = _ref2$height === void 0 ? 140 : _ref2$height,
@ -441,7 +442,8 @@ var RegularInput = function RegularInput(_ref2) {
height: height,
placeholder: placeholder,
defaultValue: value,
onChange: onChange
onChange: onChange,
onBlur: onBlur
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
style: {
cursor: 'pointer'

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save