eli-video-interview 1.2.35 → 1.2.36-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/modules/ai-question/Root.d.ts +1 -1
- package/esm/modules/ai-question/Root.js +6 -6
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -1
- package/esm/modules/ai-template/Root.js +29 -10
- package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +2 -2
- package/esm/modules/ai-template/components/QuestionList/Item.js +30 -7
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +2 -1
- package/esm/modules/ai-template/components/QuestionList/index.js +24 -4
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +7 -1
- package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +1 -1
- package/esm/modules/ai-template/index.js +2 -2
- package/esm/modules/ai-template/interface.d.ts +1 -0
- package/esm/store/ai-template/global-store.d.ts +3 -0
- package/esm/store/ai-template/global-store.js +3 -3
- package/lib/modules/ai-question/Root.d.ts +1 -1
- package/lib/modules/ai-question/Root.js +6 -6
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -1
- package/lib/modules/ai-template/Root.js +29 -10
- package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +2 -2
- package/lib/modules/ai-template/components/QuestionList/Item.js +29 -6
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +2 -1
- package/lib/modules/ai-template/components/QuestionList/index.js +24 -4
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +7 -1
- package/lib/modules/ai-template/components/TemplateList/index.js +4 -4
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +1 -1
- package/lib/modules/ai-template/index.js +2 -2
- package/lib/modules/ai-template/interface.d.ts +1 -0
- package/lib/store/ai-template/global-store.d.ts +3 -0
- package/lib/store/ai-template/global-store.js +3 -3
- package/package.json +1 -1
|
@@ -46,18 +46,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
49
|
-
import
|
|
50
|
-
import
|
|
49
|
+
import QuestionModel from './components/QuestionModel';
|
|
50
|
+
import QuestionPreview from './components/QuestionPreview';
|
|
51
|
+
import QuestionTemplate from './components/QuestionTemplate';
|
|
52
|
+
import QuestionUpdate from './components/QuestionUpdate';
|
|
51
53
|
import { PostAiModelUpsert } from "../../services/ai-question";
|
|
52
54
|
import { AiAnalysisStoreProvider } from "../../store/ai-question/ai-analysis-store";
|
|
53
55
|
import { getBootVideoStore, useBootVideoStore } from "../../store/ai-question/boot-video-store";
|
|
54
56
|
import { useAiQuestionStore } from "../../store/ai-question/global-store";
|
|
55
57
|
import { getQuestionModelStore } from "../../store/ai-question/question-model-store";
|
|
56
58
|
import { useQuestionModelStore } from "../../store/ai-question/question-model-store";
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import QuestionTemplate from './components/QuestionTemplate';
|
|
60
|
-
import QuestionUpdate from './components/QuestionUpdate';
|
|
59
|
+
import { Box, Message } from 'fbm-ui';
|
|
60
|
+
import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
|
|
61
61
|
var AiQuestionRoot = forwardRef(function (props, ref) {
|
|
62
62
|
var updateState = useAiQuestionStore().updateState;
|
|
63
63
|
var updateBootVideo = useBootVideoStore().updateBootVideo;
|
|
@@ -15,7 +15,7 @@ export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<
|
|
|
15
15
|
sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "type" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
20
|
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
@@ -10,15 +10,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { forwardRef, memo, useCallback, useEffect } from 'react';
|
|
14
|
-
import { Box, Button, Dialog, styled } from 'fbm-ui';
|
|
15
|
-
import ScrollDialogContent from "../../components/ScrollDialogContent";
|
|
16
|
-
import { useAiTemplateStore } from "../../store/ai-template/global-store";
|
|
17
13
|
import CapabilityModel from './components/CapabilityModel';
|
|
18
14
|
import QuestionList from './components/QuestionList';
|
|
19
15
|
import TemplateHeader from './components/TemplateHeader';
|
|
20
16
|
import TemplateList from './components/TemplateList';
|
|
21
17
|
import TemplateMenu from './components/TemplateMenu';
|
|
18
|
+
import ScrollDialogContent from "../../components/ScrollDialogContent";
|
|
19
|
+
import { useAiTemplateStore } from "../../store/ai-template/global-store";
|
|
20
|
+
import { Box, Button, Dialog, styled, Typography } from 'fbm-ui';
|
|
21
|
+
import { forwardRef, memo, useCallback, useEffect, useState } from 'react';
|
|
22
22
|
var AiTemplateDialog = styled(Dialog)({
|
|
23
23
|
'& .MuiPaper-root>.MuiBox-root>.MuiBox-root': {
|
|
24
24
|
marginBottom: 0,
|
|
@@ -26,23 +26,42 @@ var AiTemplateDialog = styled(Dialog)({
|
|
|
26
26
|
});
|
|
27
27
|
var AiTemplateRoot = forwardRef(function (props, ref) {
|
|
28
28
|
var _a = useAiTemplateStore(), open = _a.open, previewItem = _a.previewItem, updateProps = _a.updateProps, updateState = _a.updateState, handleIncrUse = _a.handleIncrUse;
|
|
29
|
+
var _b = useState([]), checkedQuestionList = _b[0], setCheckedQuestionList = _b[1];
|
|
29
30
|
var handleUseTemplate = useCallback(function () {
|
|
30
|
-
var _a;
|
|
31
|
-
(
|
|
31
|
+
var _a, _b;
|
|
32
|
+
if (checkedQuestionList === null || checkedQuestionList === void 0 ? void 0 : checkedQuestionList.length) {
|
|
33
|
+
(_a = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _a === void 0 ? void 0 : _a.call(props, checkedQuestionList);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
(_b = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _b === void 0 ? void 0 : _b.call(props, previewItem === null || previewItem === void 0 ? void 0 : previewItem.list);
|
|
32
37
|
if (previewItem === null || previewItem === void 0 ? void 0 : previewItem.token) {
|
|
33
38
|
handleIncrUse(previewItem === null || previewItem === void 0 ? void 0 : previewItem.token);
|
|
34
39
|
}
|
|
35
|
-
}, [handleIncrUse, previewItem, props]);
|
|
40
|
+
}, [handleIncrUse, previewItem, props, checkedQuestionList]);
|
|
41
|
+
var handleCheckedQuestionList = useCallback(function (list) {
|
|
42
|
+
setCheckedQuestionList(list);
|
|
43
|
+
updateProps(__assign(__assign({}, props), { currentCheckedQuestions: list }));
|
|
44
|
+
}, [props, updateProps]);
|
|
45
|
+
var handleCheckChange = useCallback(function (list) {
|
|
46
|
+
handleCheckedQuestionList(list);
|
|
47
|
+
}, [handleCheckedQuestionList]);
|
|
36
48
|
useEffect(function () {
|
|
37
49
|
if (!props.open) {
|
|
38
50
|
updateState({ previewItem: undefined });
|
|
51
|
+
handleCheckedQuestionList([]);
|
|
39
52
|
}
|
|
40
53
|
updateProps(props);
|
|
41
54
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
42
|
-
}, [props]);
|
|
55
|
+
}, [props, handleCheckedQuestionList]);
|
|
56
|
+
// 重置选择项
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
if (!previewItem) {
|
|
59
|
+
handleCheckedQuestionList([]);
|
|
60
|
+
}
|
|
61
|
+
}, [previewItem, handleCheckedQuestionList]);
|
|
43
62
|
return (_jsx(AiTemplateDialog, __assign({ open: open, size: "lg", header: function () { return (_jsx(TemplateHeader, { name: (previewItem === null || previewItem === void 0 ? void 0 : previewItem.positionName) || (previewItem === null || previewItem === void 0 ? void 0 : previewItem.name), onClose: props.onClose, onBack: function () { return updateState({ previewItem: undefined }); }, onSearch: function () { } })); }, footer: function () {
|
|
44
|
-
return previewItem ? (
|
|
45
|
-
}, onClose: props.onClose }, { children: _jsxs(ScrollDialogContent, { children: [_jsxs(Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [_jsx(CapabilityModel, {}), _jsx(QuestionList, {})] })), _jsxs(Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [_jsx(TemplateMenu, {}), _jsx(TemplateList, {})] }))] }) })));
|
|
63
|
+
return previewItem ? (_jsxs(Box, __assign({ display: "flex", justifyContent: checkedQuestionList.length > 0 ? 'space-between' : 'flex-end', alignItems: "center", padding: "12px 0 12px" }, { children: [checkedQuestionList.length > 0 && (_jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5DF2\u9009\u62E9", _jsx("span", __assign({ style: { color: '#4CAF50', margin: '0 3px', fontWeight: 500 } }, { children: checkedQuestionList.length })), "\u9898"] }))), _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [checkedQuestionList.length > 0 && (_jsx(Button, __assign({ color: "secondary", variant: "text", sx: { mr: 1, color: 'RGBA(0, 0, 0, 0.56)' }, onClick: function () { return handleCheckedQuestionList([]); } }, { children: "\u53D6\u6D88\u9009\u62E9" }))), _jsx(Button, __assign({ onClick: handleUseTemplate }, { children: checkedQuestionList.length ? '使用选择题目' : '使用该模版' }))] }))] }))) : null;
|
|
64
|
+
}, onClose: props.onClose }, { children: _jsxs(ScrollDialogContent, { children: [_jsxs(Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [_jsx(CapabilityModel, {}), _jsx(QuestionList, { checkedQuestionList: checkedQuestionList, onCheckChange: handleCheckChange })] })), _jsxs(Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [_jsx(TemplateMenu, {}), _jsx(TemplateList, {})] }))] }) })));
|
|
46
65
|
});
|
|
47
66
|
AiTemplateRoot.displayName = 'AiTemplateRoot';
|
|
48
67
|
export default memo(AiTemplateRoot);
|
|
@@ -10,10 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box, Typography } from 'fbm-ui';
|
|
14
13
|
import TemplatePieProps from "../../../../components/Charts/TemplatePie";
|
|
15
14
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
16
15
|
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
16
|
+
import { Box, Typography } from 'fbm-ui';
|
|
17
17
|
var CapabilityModel = function () {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
var _c = useAiTemplateStore(function (store) { return [store.menuId, store.previewItem]; }), menuId = _c.menuId, previewItem = _c.previewItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const QuestionItem: React.FC<
|
|
2
|
+
import { QuestionItemProps } from './interface';
|
|
3
|
+
declare const QuestionItem: React.FC<QuestionItemProps>;
|
|
4
4
|
export default QuestionItem;
|
|
@@ -9,16 +9,39 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
13
|
-
import { Box, Button, Chip, Typography } from 'fbm-ui';
|
|
14
|
-
import { Done } from '@mui/icons-material';
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
13
|
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
14
|
+
import { Box, Checkbox, Chip, styled, Typography } from 'fbm-ui';
|
|
15
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
16
16
|
var QuestionItem = function (_a) {
|
|
17
|
-
var item = _a.item, index = _a.index;
|
|
17
|
+
var item = _a.item, index = _a.index, _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange;
|
|
18
18
|
var name = item.name, desc = item.desc, category = item.category, weight = item.weight, originToken = item.originToken;
|
|
19
|
-
var
|
|
20
|
-
console.log(currentSteps);
|
|
19
|
+
var _c = useAiTemplateStore(function (store) { return [store.currentSteps]; }), currentSteps = _c.currentSteps, currentCheckedQuestions = _c.currentCheckedQuestions;
|
|
21
20
|
var isUsed = currentSteps === null || currentSteps === void 0 ? void 0 : currentSteps.find(function (step) { return step.originToken === originToken; });
|
|
22
|
-
|
|
21
|
+
var _d = useState(checked), curChecked = _d[0], setChecked = _d[1];
|
|
22
|
+
var UsedTag = styled(Box)(function () { return ({
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
right: -1,
|
|
25
|
+
top: -1,
|
|
26
|
+
borderRadius: '0px 4px 0px 12px',
|
|
27
|
+
backgroundColor: '#81C784',
|
|
28
|
+
width: 49,
|
|
29
|
+
height: 24,
|
|
30
|
+
textAlign: 'center',
|
|
31
|
+
color: '#fff',
|
|
32
|
+
fontFamily: 'AlibabaPuHuiTiR',
|
|
33
|
+
fontSize: 12,
|
|
34
|
+
lineHeight: '24px',
|
|
35
|
+
}); });
|
|
36
|
+
console.log('curChecked info:', item.token, index, curChecked, currentCheckedQuestions);
|
|
37
|
+
console.log('currentSteps: ', currentSteps);
|
|
38
|
+
var handleChange = useCallback(function (e) {
|
|
39
|
+
setChecked(e.target.checked);
|
|
40
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e, index);
|
|
41
|
+
}, [index, onChange]);
|
|
42
|
+
useEffect(function () {
|
|
43
|
+
setChecked(checked);
|
|
44
|
+
}, [checked]);
|
|
45
|
+
return (_jsxs(Box, __assign({ border: '1px solid rgba(0,0,0, 0.08)', borderRadius: "6px", mt: 2 }, { children: [_jsxs(Box, __assign({ borderBottom: "1px solid rgba(0,0,0, 0.08)", p: 2, display: "flex", alignItems: "center" }, { children: [_jsx(Checkbox, { checked: curChecked, value: originToken, onChange: handleChange }), _jsxs(Box, __assign({ ml: -1 }, { children: [_jsxs(Typography, __assign({ variant: "body1", weight: "500" }, { children: [index + 1, ".", name] })), _jsx(Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: desc }))] })), isUsed && (_jsx(UsedTag, { children: _jsx("span", { children: "\u5DF2\u4F7F\u7528" }) }))] })), _jsx(Box, __assign({ display: "flex", justifyContent: "space-between", padding: "8px 8px 8px 50px" }, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [category === null || category === void 0 ? void 0 : category.map(function (label) { return (_jsx(Chip, { color: "default", label: label }, label)); }), _jsxs(Typography, __assign({ variant: "body2", ml: 2 }, { children: ["\u6743\u91CD\u5360\u6BD4\uFF1A", weight, "%"] }))] })) }))] })));
|
|
23
46
|
};
|
|
24
47
|
export default QuestionItem;
|
|
@@ -9,12 +9,32 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Box, Typography } from 'fbm-ui';
|
|
14
|
-
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
15
22
|
import QuestionItem from './Item';
|
|
16
|
-
|
|
23
|
+
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
24
|
+
import { Box, Typography } from 'fbm-ui';
|
|
25
|
+
import { useCallback } from 'react';
|
|
26
|
+
var QuestionList = function (_a) {
|
|
27
|
+
var checkedQuestionList = _a.checkedQuestionList, onCheckChange = _a.onCheckChange;
|
|
17
28
|
var previewItem = useAiTemplateStore(function (store) { return [store.previewItem]; }).previewItem;
|
|
18
|
-
|
|
29
|
+
var handleChange = useCallback(function (e, index) {
|
|
30
|
+
var checked = e.target.checked;
|
|
31
|
+
var item = previewItem === null || previewItem === void 0 ? void 0 : previewItem.list[index];
|
|
32
|
+
if (!item)
|
|
33
|
+
return;
|
|
34
|
+
var RescheckedQuestionList = checked
|
|
35
|
+
? __spreadArray(__spreadArray(__spreadArray([], checkedQuestionList.slice(0, index), true), [item], false), checkedQuestionList.slice(index + 1), true) : __spreadArray(__spreadArray([], checkedQuestionList.slice(0, index), true), checkedQuestionList.slice(index + 1), true);
|
|
36
|
+
onCheckChange(RescheckedQuestionList);
|
|
37
|
+
}, [previewItem, onCheckChange, checkedQuestionList]);
|
|
38
|
+
return (_jsxs(Box, __assign({ display: "flex", flexDirection: "column", mt: 3, width: "760px" }, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(Typography, __assign({ variant: "body1", weight: "500" }, { children: "\u9898\u76EE\u5217\u8868" })) })), _jsx(Box, { children: previewItem === null || previewItem === void 0 ? void 0 : previewItem.list.map(function (item, index) { return (_jsx(QuestionItem, { checked: (checkedQuestionList === null || checkedQuestionList === void 0 ? void 0 : checkedQuestionList.findIndex(function (v) { return v.originToken === item.originToken; })) > -1, item: item, index: index, onChange: handleChange }, item.token)); }) })] })));
|
|
19
39
|
};
|
|
20
40
|
export default QuestionList;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { QuestionList } from '@/modules/ai-template/interface';
|
|
2
|
-
export interface
|
|
2
|
+
export interface QuestionItemProps {
|
|
3
3
|
item: QuestionList;
|
|
4
4
|
index: number;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onChange?: (e: any, index: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface QuestionListProps {
|
|
9
|
+
checkedQuestionList: QuestionList[];
|
|
10
|
+
onCheckChange: (list: QuestionList[]) => void;
|
|
5
11
|
}
|
|
@@ -10,14 +10,14 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import { Box, Button, Typography } from 'fbm-ui';
|
|
15
|
-
import { useRequest } from 'ahooks';
|
|
13
|
+
import { AddIconRoot, ListCol, ListItem, ListItemOperation, ListItemSubTitle, ListItemTitle, ListRow } from './styled';
|
|
16
14
|
import TemplatePie from "../../../../components/Charts/TemplatePie";
|
|
17
15
|
import ScoreBigBall from "../../../../components/ScoreBigBall";
|
|
18
16
|
import { PostAiTemplatesDetail, PostAiTemplatesList } from "../../../../services/ai-template";
|
|
19
17
|
import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
|
|
20
|
-
import {
|
|
18
|
+
import { useRequest } from 'ahooks';
|
|
19
|
+
import { Box, Button, Typography } from 'fbm-ui';
|
|
20
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
21
21
|
var TemplateList = function () {
|
|
22
22
|
var isPreview = useRef(false);
|
|
23
23
|
var _a = useState([]), list = _a[0], setList = _a[1];
|
|
@@ -9,7 +9,7 @@ export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
10
|
titleAccess?: string | undefined;
|
|
11
11
|
viewBox?: string | undefined;
|
|
12
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
12
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "type" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
13
13
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
14
14
|
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
15
15
|
children?: import("react").ReactNode;
|
|
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { forwardRef, memo } from 'react';
|
|
14
|
-
import RootProvider from "../../components/RootProvider";
|
|
15
13
|
import TemplateRoot from './Root';
|
|
14
|
+
import RootProvider from "../../components/RootProvider";
|
|
15
|
+
import { forwardRef, memo } from 'react';
|
|
16
16
|
var AiTemplate = forwardRef(function (props, ref) {
|
|
17
17
|
return (_jsx(RootProvider, { children: _jsx(TemplateRoot, __assign({ ref: ref }, props)) }));
|
|
18
18
|
});
|
|
@@ -8,6 +8,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
8
8
|
open: boolean;
|
|
9
9
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
10
10
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
12
|
onClose?: (() => void) | undefined;
|
|
12
13
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
13
14
|
}> | undefined) => {
|
|
@@ -19,6 +20,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
19
20
|
open: boolean;
|
|
20
21
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
21
22
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
23
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
22
24
|
onClose?: (() => void) | undefined;
|
|
23
25
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
24
26
|
}, getAiTemplateStore: () => {
|
|
@@ -30,6 +32,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
30
32
|
open: boolean;
|
|
31
33
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
32
34
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
35
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
33
36
|
onClose?: (() => void) | undefined;
|
|
34
37
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
35
38
|
} | undefined;
|
|
@@ -10,12 +10,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
var _a;
|
|
13
|
-
import {
|
|
13
|
+
import { PostAiTemplatesIncrUse } from "../../services/ai-template";
|
|
14
14
|
import { useRequest, useSetState } from 'ahooks';
|
|
15
15
|
import { createGlobalStore } from 'hox';
|
|
16
|
-
import {
|
|
16
|
+
import { useEffect } from 'react';
|
|
17
17
|
export var useAiTemplateStore = (_a = createGlobalStore(function () {
|
|
18
|
-
var _a = useSetState({ open: false, historyPatterns: [] }), props = _a[0], updateProps = _a[1];
|
|
18
|
+
var _a = useSetState({ open: false, historyPatterns: [], currentCheckedQuestions: [] }), props = _a[0], updateProps = _a[1];
|
|
19
19
|
var _b = useSetState({ menuId: '' }), state = _b[0], updateState = _b[1];
|
|
20
20
|
var handleIncrUse = useRequest(PostAiTemplatesIncrUse, { manual: true }).run;
|
|
21
21
|
useEffect(function () {
|
|
@@ -51,18 +51,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
53
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
54
|
-
var
|
|
55
|
-
var
|
|
54
|
+
var QuestionModel_1 = __importDefault(require("./components/QuestionModel"));
|
|
55
|
+
var QuestionPreview_1 = __importDefault(require("./components/QuestionPreview"));
|
|
56
|
+
var QuestionTemplate_1 = __importDefault(require("./components/QuestionTemplate"));
|
|
57
|
+
var QuestionUpdate_1 = __importDefault(require("./components/QuestionUpdate"));
|
|
56
58
|
var ai_question_1 = require("../../services/ai-question");
|
|
57
59
|
var ai_analysis_store_1 = require("../../store/ai-question/ai-analysis-store");
|
|
58
60
|
var boot_video_store_1 = require("../../store/ai-question/boot-video-store");
|
|
59
61
|
var global_store_1 = require("../../store/ai-question/global-store");
|
|
60
62
|
var question_model_store_1 = require("../../store/ai-question/question-model-store");
|
|
61
63
|
var question_model_store_2 = require("../../store/ai-question/question-model-store");
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var QuestionTemplate_1 = __importDefault(require("./components/QuestionTemplate"));
|
|
65
|
-
var QuestionUpdate_1 = __importDefault(require("./components/QuestionUpdate"));
|
|
64
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
65
|
+
var react_1 = require("react");
|
|
66
66
|
var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
67
67
|
var updateState = (0, global_store_1.useAiQuestionStore)().updateState;
|
|
68
68
|
var updateBootVideo = (0, boot_video_store_1.useBootVideoStore)().updateBootVideo;
|
|
@@ -15,7 +15,7 @@ export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<
|
|
|
15
15
|
sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
|
|
16
16
|
titleAccess?: string | undefined;
|
|
17
17
|
viewBox?: string | undefined;
|
|
18
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
18
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "type" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
19
19
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
20
20
|
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
@@ -15,15 +15,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var react_1 = require("react");
|
|
19
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
20
|
-
var ScrollDialogContent_1 = __importDefault(require("../../components/ScrollDialogContent"));
|
|
21
|
-
var global_store_1 = require("../../store/ai-template/global-store");
|
|
22
18
|
var CapabilityModel_1 = __importDefault(require("./components/CapabilityModel"));
|
|
23
19
|
var QuestionList_1 = __importDefault(require("./components/QuestionList"));
|
|
24
20
|
var TemplateHeader_1 = __importDefault(require("./components/TemplateHeader"));
|
|
25
21
|
var TemplateList_1 = __importDefault(require("./components/TemplateList"));
|
|
26
22
|
var TemplateMenu_1 = __importDefault(require("./components/TemplateMenu"));
|
|
23
|
+
var ScrollDialogContent_1 = __importDefault(require("../../components/ScrollDialogContent"));
|
|
24
|
+
var global_store_1 = require("../../store/ai-template/global-store");
|
|
25
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
26
|
+
var react_1 = require("react");
|
|
27
27
|
var AiTemplateDialog = (0, fbm_ui_1.styled)(fbm_ui_1.Dialog)({
|
|
28
28
|
'& .MuiPaper-root>.MuiBox-root>.MuiBox-root': {
|
|
29
29
|
marginBottom: 0,
|
|
@@ -31,23 +31,42 @@ var AiTemplateDialog = (0, fbm_ui_1.styled)(fbm_ui_1.Dialog)({
|
|
|
31
31
|
});
|
|
32
32
|
var AiTemplateRoot = (0, react_1.forwardRef)(function (props, ref) {
|
|
33
33
|
var _a = (0, global_store_1.useAiTemplateStore)(), open = _a.open, previewItem = _a.previewItem, updateProps = _a.updateProps, updateState = _a.updateState, handleIncrUse = _a.handleIncrUse;
|
|
34
|
+
var _b = (0, react_1.useState)([]), checkedQuestionList = _b[0], setCheckedQuestionList = _b[1];
|
|
34
35
|
var handleUseTemplate = (0, react_1.useCallback)(function () {
|
|
35
|
-
var _a;
|
|
36
|
-
(
|
|
36
|
+
var _a, _b;
|
|
37
|
+
if (checkedQuestionList === null || checkedQuestionList === void 0 ? void 0 : checkedQuestionList.length) {
|
|
38
|
+
(_a = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _a === void 0 ? void 0 : _a.call(props, checkedQuestionList);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
(_b = props === null || props === void 0 ? void 0 : props.onUseTemplate) === null || _b === void 0 ? void 0 : _b.call(props, previewItem === null || previewItem === void 0 ? void 0 : previewItem.list);
|
|
37
42
|
if (previewItem === null || previewItem === void 0 ? void 0 : previewItem.token) {
|
|
38
43
|
handleIncrUse(previewItem === null || previewItem === void 0 ? void 0 : previewItem.token);
|
|
39
44
|
}
|
|
40
|
-
}, [handleIncrUse, previewItem, props]);
|
|
45
|
+
}, [handleIncrUse, previewItem, props, checkedQuestionList]);
|
|
46
|
+
var handleCheckedQuestionList = (0, react_1.useCallback)(function (list) {
|
|
47
|
+
setCheckedQuestionList(list);
|
|
48
|
+
updateProps(__assign(__assign({}, props), { currentCheckedQuestions: list }));
|
|
49
|
+
}, [props, updateProps]);
|
|
50
|
+
var handleCheckChange = (0, react_1.useCallback)(function (list) {
|
|
51
|
+
handleCheckedQuestionList(list);
|
|
52
|
+
}, [handleCheckedQuestionList]);
|
|
41
53
|
(0, react_1.useEffect)(function () {
|
|
42
54
|
if (!props.open) {
|
|
43
55
|
updateState({ previewItem: undefined });
|
|
56
|
+
handleCheckedQuestionList([]);
|
|
44
57
|
}
|
|
45
58
|
updateProps(props);
|
|
46
59
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
47
|
-
}, [props]);
|
|
60
|
+
}, [props, handleCheckedQuestionList]);
|
|
61
|
+
// 重置选择项
|
|
62
|
+
(0, react_1.useEffect)(function () {
|
|
63
|
+
if (!previewItem) {
|
|
64
|
+
handleCheckedQuestionList([]);
|
|
65
|
+
}
|
|
66
|
+
}, [previewItem, handleCheckedQuestionList]);
|
|
48
67
|
return ((0, jsx_runtime_1.jsx)(AiTemplateDialog, __assign({ open: open, size: "lg", header: function () { return ((0, jsx_runtime_1.jsx)(TemplateHeader_1.default, { name: (previewItem === null || previewItem === void 0 ? void 0 : previewItem.positionName) || (previewItem === null || previewItem === void 0 ? void 0 : previewItem.name), onClose: props.onClose, onBack: function () { return updateState({ previewItem: undefined }); }, onSearch: function () { } })); }, footer: function () {
|
|
49
|
-
return previewItem ? ((0, jsx_runtime_1.
|
|
50
|
-
}, onClose: props.onClose }, { children: (0, jsx_runtime_1.jsxs)(ScrollDialogContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(CapabilityModel_1.default, {}), (0, jsx_runtime_1.jsx)(QuestionList_1.default, {})] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [(0, jsx_runtime_1.jsx)(TemplateMenu_1.default, {}), (0, jsx_runtime_1.jsx)(TemplateList_1.default, {})] }))] }) })));
|
|
68
|
+
return previewItem ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: checkedQuestionList.length > 0 ? 'space-between' : 'flex-end', alignItems: "center", padding: "12px 0 12px" }, { children: [checkedQuestionList.length > 0 && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: ["\u5DF2\u9009\u62E9", (0, jsx_runtime_1.jsx)("span", __assign({ style: { color: '#4CAF50', margin: '0 3px', fontWeight: 500 } }, { children: checkedQuestionList.length })), "\u9898"] }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [checkedQuestionList.length > 0 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ color: "secondary", variant: "text", sx: { mr: 1, color: 'RGBA(0, 0, 0, 0.56)' }, onClick: function () { return handleCheckedQuestionList([]); } }, { children: "\u53D6\u6D88\u9009\u62E9" }))), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ onClick: handleUseTemplate }, { children: checkedQuestionList.length ? '使用选择题目' : '使用该模版' }))] }))] }))) : null;
|
|
69
|
+
}, onClose: props.onClose }, { children: (0, jsx_runtime_1.jsxs)(ScrollDialogContent_1.default, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'flex' : 'none', flexDirection: "column" }, { children: [(0, jsx_runtime_1.jsx)(CapabilityModel_1.default, {}), (0, jsx_runtime_1.jsx)(QuestionList_1.default, { checkedQuestionList: checkedQuestionList, onCheckChange: handleCheckChange })] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: previewItem ? 'none' : 'flex' }, { children: [(0, jsx_runtime_1.jsx)(TemplateMenu_1.default, {}), (0, jsx_runtime_1.jsx)(TemplateList_1.default, {})] }))] }) })));
|
|
51
70
|
});
|
|
52
71
|
AiTemplateRoot.displayName = 'AiTemplateRoot';
|
|
53
72
|
exports.default = (0, react_1.memo)(AiTemplateRoot);
|
|
@@ -15,10 +15,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
19
18
|
var TemplatePie_1 = __importDefault(require("../../../../components/Charts/TemplatePie"));
|
|
20
19
|
var ScoreBigBall_1 = __importDefault(require("../../../../components/ScoreBigBall"));
|
|
21
20
|
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
21
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
22
22
|
var CapabilityModel = function () {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
var _c = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.menuId, store.previewItem]; }), menuId = _c.menuId, previewItem = _c.previewItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const QuestionItem: React.FC<
|
|
2
|
+
import { QuestionItemProps } from './interface';
|
|
3
|
+
declare const QuestionItem: React.FC<QuestionItemProps>;
|
|
4
4
|
export default QuestionItem;
|
|
@@ -12,15 +12,38 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
16
|
-
var icons_material_1 = require("@mui/icons-material");
|
|
17
15
|
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
16
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
17
|
+
var react_1 = require("react");
|
|
18
18
|
var QuestionItem = function (_a) {
|
|
19
|
-
var item = _a.item, index = _a.index;
|
|
19
|
+
var item = _a.item, index = _a.index, _b = _a.checked, checked = _b === void 0 ? false : _b, onChange = _a.onChange;
|
|
20
20
|
var name = item.name, desc = item.desc, category = item.category, weight = item.weight, originToken = item.originToken;
|
|
21
|
-
var
|
|
22
|
-
console.log(currentSteps);
|
|
21
|
+
var _c = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.currentSteps]; }), currentSteps = _c.currentSteps, currentCheckedQuestions = _c.currentCheckedQuestions;
|
|
23
22
|
var isUsed = currentSteps === null || currentSteps === void 0 ? void 0 : currentSteps.find(function (step) { return step.originToken === originToken; });
|
|
24
|
-
|
|
23
|
+
var _d = (0, react_1.useState)(checked), curChecked = _d[0], setChecked = _d[1];
|
|
24
|
+
var UsedTag = (0, fbm_ui_1.styled)(fbm_ui_1.Box)(function () { return ({
|
|
25
|
+
position: 'absolute',
|
|
26
|
+
right: -1,
|
|
27
|
+
top: -1,
|
|
28
|
+
borderRadius: '0px 4px 0px 12px',
|
|
29
|
+
backgroundColor: '#81C784',
|
|
30
|
+
width: 49,
|
|
31
|
+
height: 24,
|
|
32
|
+
textAlign: 'center',
|
|
33
|
+
color: '#fff',
|
|
34
|
+
fontFamily: 'AlibabaPuHuiTiR',
|
|
35
|
+
fontSize: 12,
|
|
36
|
+
lineHeight: '24px',
|
|
37
|
+
}); });
|
|
38
|
+
console.log('curChecked info:', item.token, index, curChecked, currentCheckedQuestions);
|
|
39
|
+
console.log('currentSteps: ', currentSteps);
|
|
40
|
+
var handleChange = (0, react_1.useCallback)(function (e) {
|
|
41
|
+
setChecked(e.target.checked);
|
|
42
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e, index);
|
|
43
|
+
}, [index, onChange]);
|
|
44
|
+
(0, react_1.useEffect)(function () {
|
|
45
|
+
setChecked(checked);
|
|
46
|
+
}, [checked]);
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ border: '1px solid rgba(0,0,0, 0.08)', borderRadius: "6px", mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ borderBottom: "1px solid rgba(0,0,0, 0.08)", p: 2, display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { checked: curChecked, value: originToken, onChange: handleChange }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ ml: -1 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: [index + 1, ".", name] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: desc }))] })), isUsed && ((0, jsx_runtime_1.jsx)(UsedTag, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u5DF2\u4F7F\u7528" }) }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "space-between", padding: "8px 8px 8px 50px" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [category === null || category === void 0 ? void 0 : category.map(function (label) { return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Chip, { color: "default", label: label }, label)); }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", ml: 2 }, { children: ["\u6743\u91CD\u5360\u6BD4\uFF1A", weight, "%"] }))] })) }))] })));
|
|
25
48
|
};
|
|
26
49
|
exports.default = QuestionItem;
|
|
@@ -10,16 +10,36 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
13
22
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
24
|
};
|
|
16
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
19
|
-
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
20
27
|
var Item_1 = __importDefault(require("./Item"));
|
|
21
|
-
var
|
|
28
|
+
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
29
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
30
|
+
var react_1 = require("react");
|
|
31
|
+
var QuestionList = function (_a) {
|
|
32
|
+
var checkedQuestionList = _a.checkedQuestionList, onCheckChange = _a.onCheckChange;
|
|
22
33
|
var previewItem = (0, global_store_1.useAiTemplateStore)(function (store) { return [store.previewItem]; }).previewItem;
|
|
23
|
-
|
|
34
|
+
var handleChange = (0, react_1.useCallback)(function (e, index) {
|
|
35
|
+
var checked = e.target.checked;
|
|
36
|
+
var item = previewItem === null || previewItem === void 0 ? void 0 : previewItem.list[index];
|
|
37
|
+
if (!item)
|
|
38
|
+
return;
|
|
39
|
+
var RescheckedQuestionList = checked
|
|
40
|
+
? __spreadArray(__spreadArray(__spreadArray([], checkedQuestionList.slice(0, index), true), [item], false), checkedQuestionList.slice(index + 1), true) : __spreadArray(__spreadArray([], checkedQuestionList.slice(0, index), true), checkedQuestionList.slice(index + 1), true);
|
|
41
|
+
onCheckChange(RescheckedQuestionList);
|
|
42
|
+
}, [previewItem, onCheckChange, checkedQuestionList]);
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", flexDirection: "column", mt: 3, width: "760px" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", weight: "500" }, { children: "\u9898\u76EE\u5217\u8868" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: previewItem === null || previewItem === void 0 ? void 0 : previewItem.list.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(Item_1.default, { checked: (checkedQuestionList === null || checkedQuestionList === void 0 ? void 0 : checkedQuestionList.findIndex(function (v) { return v.originToken === item.originToken; })) > -1, item: item, index: index, onChange: handleChange }, item.token)); }) })] })));
|
|
24
44
|
};
|
|
25
45
|
exports.default = QuestionList;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { QuestionList } from '@/modules/ai-template/interface';
|
|
2
|
-
export interface
|
|
2
|
+
export interface QuestionItemProps {
|
|
3
3
|
item: QuestionList;
|
|
4
4
|
index: number;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onChange?: (e: any, index: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export interface QuestionListProps {
|
|
9
|
+
checkedQuestionList: QuestionList[];
|
|
10
|
+
onCheckChange: (list: QuestionList[]) => void;
|
|
5
11
|
}
|
|
@@ -15,14 +15,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var
|
|
19
|
-
var fbm_ui_1 = require("fbm-ui");
|
|
20
|
-
var ahooks_1 = require("ahooks");
|
|
18
|
+
var styled_1 = require("./styled");
|
|
21
19
|
var TemplatePie_1 = __importDefault(require("../../../../components/Charts/TemplatePie"));
|
|
22
20
|
var ScoreBigBall_1 = __importDefault(require("../../../../components/ScoreBigBall"));
|
|
23
21
|
var ai_template_1 = require("../../../../services/ai-template");
|
|
24
22
|
var global_store_1 = require("../../../../store/ai-template/global-store");
|
|
25
|
-
var
|
|
23
|
+
var ahooks_1 = require("ahooks");
|
|
24
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
25
|
+
var react_1 = require("react");
|
|
26
26
|
var TemplateList = function () {
|
|
27
27
|
var isPreview = (0, react_1.useRef)(false);
|
|
28
28
|
var _a = (0, react_1.useState)([]), list = _a[0], setList = _a[1];
|
|
@@ -9,7 +9,7 @@ export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
|
|
|
9
9
|
sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
|
|
10
10
|
titleAccess?: string | undefined;
|
|
11
11
|
viewBox?: string | undefined;
|
|
12
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "
|
|
12
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "type" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
13
13
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
14
14
|
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
|
|
15
15
|
children?: import("react").ReactNode;
|
|
@@ -15,9 +15,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
-
var react_1 = require("react");
|
|
19
|
-
var RootProvider_1 = __importDefault(require("../../components/RootProvider"));
|
|
20
18
|
var Root_1 = __importDefault(require("./Root"));
|
|
19
|
+
var RootProvider_1 = __importDefault(require("../../components/RootProvider"));
|
|
20
|
+
var react_1 = require("react");
|
|
21
21
|
var AiTemplate = (0, react_1.forwardRef)(function (props, ref) {
|
|
22
22
|
return ((0, jsx_runtime_1.jsx)(RootProvider_1.default, { children: (0, jsx_runtime_1.jsx)(Root_1.default, __assign({ ref: ref }, props)) }));
|
|
23
23
|
});
|
|
@@ -8,6 +8,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
8
8
|
open: boolean;
|
|
9
9
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
10
10
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
11
12
|
onClose?: (() => void) | undefined;
|
|
12
13
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
13
14
|
}> | undefined) => {
|
|
@@ -19,6 +20,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
19
20
|
open: boolean;
|
|
20
21
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
21
22
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
23
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
22
24
|
onClose?: (() => void) | undefined;
|
|
23
25
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
24
26
|
}, getAiTemplateStore: () => {
|
|
@@ -30,6 +32,7 @@ export declare const useAiTemplateStore: (depsFn?: import("hox/es/types").DepsFn
|
|
|
30
32
|
open: boolean;
|
|
31
33
|
historyPatterns?: import("@/modules/ai-template/interface").HistoryPatterns[] | undefined;
|
|
32
34
|
currentSteps?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
35
|
+
currentCheckedQuestions?: import("@/modules/ai-template/interface").QuestionList[] | undefined;
|
|
33
36
|
onClose?: (() => void) | undefined;
|
|
34
37
|
onUseTemplate?: ((list?: import("@/modules/ai-template/interface").QuestionList[] | undefined) => void) | undefined;
|
|
35
38
|
} | undefined;
|
|
@@ -13,12 +13,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
var _a;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.getAiTemplateStore = exports.useAiTemplateStore = void 0;
|
|
16
|
-
var
|
|
16
|
+
var ai_template_1 = require("../../services/ai-template");
|
|
17
17
|
var ahooks_1 = require("ahooks");
|
|
18
18
|
var hox_1 = require("hox");
|
|
19
|
-
var
|
|
19
|
+
var react_1 = require("react");
|
|
20
20
|
exports.useAiTemplateStore = (_a = (0, hox_1.createGlobalStore)(function () {
|
|
21
|
-
var _a = (0, ahooks_1.useSetState)({ open: false, historyPatterns: [] }), props = _a[0], updateProps = _a[1];
|
|
21
|
+
var _a = (0, ahooks_1.useSetState)({ open: false, historyPatterns: [], currentCheckedQuestions: [] }), props = _a[0], updateProps = _a[1];
|
|
22
22
|
var _b = (0, ahooks_1.useSetState)({ menuId: '' }), state = _b[0], updateState = _b[1];
|
|
23
23
|
var handleIncrUse = (0, ahooks_1.useRequest)(ai_template_1.PostAiTemplatesIncrUse, { manual: true }).run;
|
|
24
24
|
(0, react_1.useEffect)(function () {
|