eli-video-interview 1.2.37-beta.3 → 1.2.37

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.
Files changed (69) hide show
  1. package/esm/components/BigBallSvg/styled.d.ts +2 -2
  2. package/esm/components/ScoreBigBall/styled.d.ts +1 -1
  3. package/esm/components/ScrollDialogContent/index.d.ts +1 -1
  4. package/esm/components/VideoPreview/styled.d.ts +3 -3
  5. package/esm/constants/ai-question.d.ts +0 -17
  6. package/esm/constants/ai-question.js +0 -19
  7. package/esm/modules/ai-ability/styled.d.ts +2 -2
  8. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +1 -1
  9. package/esm/modules/ai-question/Root.js +9 -3
  10. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
  11. package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
  12. package/esm/modules/ai-question/components/BootVideo/index.js +22 -45
  13. package/esm/modules/ai-question/components/BootVideo/styled.d.ts +4 -4
  14. package/esm/modules/ai-question/components/QuestionModel/Interactive.d.ts +5 -2
  15. package/esm/modules/ai-question/components/QuestionModel/Interactive.js +10 -12
  16. package/esm/modules/ai-question/components/QuestionModel/index.js +1 -5
  17. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +1 -4
  18. package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
  19. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  20. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +1 -1
  21. package/esm/modules/ai-question/components/QuestionUpdate/index.js +2 -0
  22. package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +5 -5
  23. package/esm/modules/ai-question/interface.d.ts +0 -17
  24. package/esm/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
  25. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +4 -4
  26. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +6 -6
  27. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +3 -3
  28. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +9 -9
  29. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
  30. package/esm/services/ai-question.d.ts +0 -1
  31. package/esm/services/ai-question.js +1 -3
  32. package/lib/components/BigBallSvg/styled.d.ts +2 -2
  33. package/lib/components/ScoreBigBall/styled.d.ts +1 -1
  34. package/lib/components/ScrollDialogContent/index.d.ts +1 -1
  35. package/lib/components/VideoPreview/styled.d.ts +3 -3
  36. package/lib/constants/ai-question.d.ts +0 -17
  37. package/lib/constants/ai-question.js +1 -20
  38. package/lib/modules/ai-ability/styled.d.ts +2 -2
  39. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +1 -1
  40. package/lib/modules/ai-ability-select/components/AiAbilityList/styled.d.ts +0 -0
  41. package/lib/modules/ai-ability-select/components/AiAbilityList/styled.js +1 -0
  42. package/lib/modules/ai-question/Root.js +9 -3
  43. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
  44. package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
  45. package/lib/modules/ai-question/components/BootVideo/index.js +19 -42
  46. package/lib/modules/ai-question/components/BootVideo/styled.d.ts +4 -4
  47. package/lib/modules/ai-question/components/QuestionModel/Interactive.d.ts +5 -2
  48. package/lib/modules/ai-question/components/QuestionModel/Interactive.js +8 -10
  49. package/lib/modules/ai-question/components/QuestionModel/index.js +1 -5
  50. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +1 -4
  51. package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
  52. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
  53. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +1 -1
  54. package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -0
  55. package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +5 -5
  56. package/lib/modules/ai-question/interface.d.ts +0 -17
  57. package/lib/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
  58. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +4 -4
  59. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +6 -6
  60. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +3 -3
  61. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +9 -9
  62. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
  63. package/lib/services/ai-question.d.ts +0 -1
  64. package/lib/services/ai-question.js +1 -4
  65. package/package.json +2 -2
  66. package/esm/store/ai-question/interview-room-store.d.ts +0 -20
  67. package/esm/store/ai-question/interview-room-store.js +0 -21
  68. package/lib/store/ai-question/interview-room-store.d.ts +0 -20
  69. package/lib/store/ai-question/interview-room-store.js +0 -24
@@ -10,7 +10,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
10
10
  thumbSizeSmall?: string | undefined;
11
11
  }) | undefined;
12
12
  size?: "small" | "medium" | undefined;
13
- sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
13
+ sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
14
14
  } & {
15
15
  'aria-label'?: string | undefined;
16
16
  'aria-labelledby'?: string | undefined;
@@ -56,16 +56,16 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
56
56
  valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
57
57
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
58
58
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
59
- }, "name" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
59
+ }, "name" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
60
60
  export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
61
61
  children?: import("react").ReactNode;
62
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
62
+ } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
63
63
  export declare const QuestionDesc: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
64
64
  children?: import("react").ReactNode;
65
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
65
+ } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
66
66
  export declare const AiScoreRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
67
67
  children?: import("react").ReactNode;
68
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
68
+ } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
69
69
  export declare const RankingRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
70
70
  children?: import("react").ReactNode;
71
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
71
+ } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -10,7 +10,7 @@ export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComp
10
10
  thumbSizeSmall?: string | undefined;
11
11
  }) | undefined;
12
12
  size?: "small" | "medium" | undefined;
13
- sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
13
+ sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
14
14
  } & {
15
15
  'aria-label'?: string | undefined;
16
16
  'aria-labelledby'?: string | undefined;
@@ -56,7 +56,7 @@ export declare const WorkplaceStyledSlider: import("@emotion/styled").StyledComp
56
56
  valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
57
57
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
58
58
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
59
- }, "name" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
59
+ }, "name" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
60
60
  export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
61
61
  children?: import("react").ReactNode;
62
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
62
+ } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -6,32 +6,32 @@ export declare const AddIconRoot: import("@emotion/styled").StyledComponent<{
6
6
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
7
7
  htmlColor?: string | undefined;
8
8
  shapeRendering?: string | undefined;
9
- sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
9
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
10
10
  titleAccess?: string | undefined;
11
11
  viewBox?: string | undefined;
12
12
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "filter" | "fill" | "values" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "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" | "children" | "spacing" | "path" | "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" | "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" | "end" | "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" | "seed" | "slope" | "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
  }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
15
15
  children?: import("react").ReactNode;
16
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
16
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
17
17
  export declare const ListRow: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
18
18
  children?: import("react").ReactNode;
19
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
19
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
20
20
  export declare const ListCol: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
21
21
  children?: import("react").ReactNode;
22
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
22
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
23
23
  export declare const ListItem: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
24
24
  children?: import("react").ReactNode;
25
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
25
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
26
26
  export declare const ListItemTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
27
27
  children?: import("react").ReactNode;
28
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
28
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
29
29
  export declare const ListItemSubTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
30
30
  children?: import("react").ReactNode;
31
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
31
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
32
32
  export declare const ListItemBody: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
33
33
  children?: import("react").ReactNode;
34
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
34
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
35
35
  export declare const ListItemOperation: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
36
36
  children?: import("react").ReactNode;
37
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
37
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const TemplateMenuList: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/mui").MenuListProps & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
2
+ export declare const TemplateMenuList: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/mui").MenuListProps & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
3
3
  export declare const TemplateMenuItem: import("@emotion/styled").StyledComponent<{
4
4
  autoFocus?: boolean | undefined;
5
5
  classes?: Partial<import("fbm-ui/lib/mui").MenuItemClasses> | undefined;
@@ -8,7 +8,7 @@ export declare const TemplateMenuItem: import("@emotion/styled").StyledComponent
8
8
  disableGutters?: boolean | undefined;
9
9
  divider?: boolean | undefined;
10
10
  selected?: boolean | undefined;
11
- sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
11
+ sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
12
12
  } & Omit<{
13
13
  action?: import("react").Ref<import("fbm-ui/lib/mui").ButtonBaseActions> | undefined;
14
14
  centerRipple?: boolean | undefined;
@@ -21,9 +21,9 @@ export declare const TemplateMenuItem: import("@emotion/styled").StyledComponent
21
21
  focusVisibleClassName?: string | undefined;
22
22
  LinkComponent?: import("react").ElementType<any> | undefined;
23
23
  onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
24
- sx?: import("@mui/system/styleFunctionSx").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
24
+ sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
25
25
  tabIndex?: number | undefined;
26
26
  TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
27
27
  }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "key" | keyof import("react").LiHTMLAttributes<HTMLLIElement>> & {
28
28
  ref?: ((instance: HTMLLIElement | null) => void) | import("react").RefObject<HTMLLIElement> | null | undefined;
29
- }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "divider" | "sx" | "tabIndex" | "autoFocus" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "dense" | "disableGutters"> & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
29
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "children" | "divider" | "sx" | "tabIndex" | "autoFocus" | "disabled" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "dense" | "disableGutters"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -4,7 +4,6 @@ export declare const PostAiModels: <R>() => import("axios").AxiosPromise<R>;
4
4
  export declare const PostAiModelDetails: <R>(token: string) => import("axios").AxiosPromise<R>;
5
5
  export declare const PostAiAbilities: <R>() => import("axios").AxiosPromise<R>;
6
6
  export declare const PostAiModelUpsert: <R>(data: any) => import("axios").AxiosPromise<R>;
7
- export declare const GetAiInterviewerProfileList: <R>() => import("axios").AxiosPromise<R>;
8
7
  interface PostAiInterviewData {
9
8
  aiModelToken: string;
10
9
  orderTokens: string[];
@@ -1,4 +1,4 @@
1
- import { GET, POST } from "../utils/request";
1
+ import { POST } from "../utils/request";
2
2
  // 公共上传
3
3
  export var PostCommonUpload = function (data) { return POST({ url: '/common/upload', data: data }); };
4
4
  // 题库模版列表
@@ -11,7 +11,5 @@ export var PostAiModelDetails = function (token) { return POST({ url: "/standard
11
11
  export var PostAiAbilities = function () { return POST({ url: "/standard/b/aiAbilities" }); };
12
12
  // 创建或修改AI模型
13
13
  export var PostAiModelUpsert = function (data) { return POST({ url: '/standard/b/aiModel/upsert', data: data }); };
14
- // 获取虚拟人列表
15
- export var GetAiInterviewerProfileList = function () { return GET({ url: "/standard/b/examPapers/commonInfo" }); };
16
14
  // 创建面试
17
15
  export var PostAiInterview = function (data) { return POST({ url: '/standard/b/aiInterview', data: data }); };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const SvgRoot: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGSVGElement>, {}>;
3
- export declare const SvgGRoot: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGGElement>, {}>;
2
+ export declare const SvgRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGSVGElement>, {}>;
3
+ export declare const SvgGRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGGElement>, {}>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ScoreBigBallRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const ScrollDialogContent: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export default ScrollDialogContent;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const VideoPreviewRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const PageTurningRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const FaceAnalysisRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -20,23 +20,6 @@ export declare const DEFAULT_GUIDE_VIDEO: {
20
20
  videoUrl: string;
21
21
  frameUrl: string;
22
22
  }[];
23
- export declare const DEFAULT_VITUAL_HUMAN_LIST: {
24
- name: string;
25
- humanToken: string;
26
- humanType: number;
27
- virtualHumanAvatar: string;
28
- virtualPreviewMedia: string;
29
- }[];
30
- export declare const InteractiveModes: {
31
- 1: string;
32
- 2: string;
33
- };
34
- export declare const AiVideoStatus: {
35
- 0: string;
36
- 1: string;
37
- 2: string;
38
- 3: string;
39
- };
40
23
  export declare const MAX_UPLOAD_FILE_SIZE: number;
41
24
  export declare const MAX_UPLOAD_VIDEO_FILE_SIZE: number;
42
25
  export declare const TEST_TYPE_READONLY: number[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.IS_AI_ANALYSIS = exports.DISABLED_REPEAT_TYPE = exports.TEST_TYPE_READONLY = exports.MAX_UPLOAD_VIDEO_FILE_SIZE = exports.MAX_UPLOAD_FILE_SIZE = exports.AiVideoStatus = exports.InteractiveModes = exports.DEFAULT_VITUAL_HUMAN_LIST = exports.DEFAULT_GUIDE_VIDEO = exports.DEFAULT_GUIDE_VIDEO_THUMB_URL = exports.DEFAULT_GUIDE_VIDEO_URL = exports.QUESTION_TYPE_MAPPING_LABEL = exports.ADD_QUESTION_TYPE_LIST = void 0;
4
+ exports.IS_AI_ANALYSIS = exports.DISABLED_REPEAT_TYPE = exports.TEST_TYPE_READONLY = exports.MAX_UPLOAD_VIDEO_FILE_SIZE = exports.MAX_UPLOAD_FILE_SIZE = exports.DEFAULT_GUIDE_VIDEO = exports.DEFAULT_GUIDE_VIDEO_THUMB_URL = exports.DEFAULT_GUIDE_VIDEO_URL = exports.QUESTION_TYPE_MAPPING_LABEL = exports.ADD_QUESTION_TYPE_LIST = void 0;
5
5
  var ai_question_1 = require("../enum/ai-question");
6
6
  var FREE = ai_question_1.ADD_QUESTION_TYPE.FREE, LANGUAGE = ai_question_1.ADD_QUESTION_TYPE.LANGUAGE;
7
7
  var QA = ai_question_1.QUESTION_TYPE.QA, COLOR_BLINDNESS = ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS, ALPHABETIC_DICTATION = ai_question_1.QUESTION_TYPE.ALPHABETIC_DICTATION, AI_ANALYSIS = ai_question_1.QUESTION_TYPE.AI_ANALYSIS, POLICY_DECISION_GAME = ai_question_1.QUESTION_TYPE.POLICY_DECISION_GAME, MEMORY_GAME = ai_question_1.QUESTION_TYPE.MEMORY_GAME, EMOTION_GAME = ai_question_1.QUESTION_TYPE.EMOTION_GAME;
@@ -34,25 +34,6 @@ exports.DEFAULT_GUIDE_VIDEO = [
34
34
  frameUrl: exports.DEFAULT_GUIDE_VIDEO_THUMB_URL,
35
35
  },
36
36
  ];
37
- exports.DEFAULT_VITUAL_HUMAN_LIST = [
38
- {
39
- name: 'xuanxuan',
40
- humanToken: '71c932a2db9e420ab8782d68861ad0ff',
41
- humanType: 2,
42
- virtualHumanAvatar: 'https://alicdn.fbmms.cn/virtual-human-20230720-112709.png',
43
- virtualPreviewMedia: 'https://demo1-landing-page.oss-cn-beijing.aliyuncs.com/d5bcc15e-f42f-4bad-bde9-2d6c300bf9ca.mp4',
44
- },
45
- ];
46
- exports.InteractiveModes = {
47
- 1: '传统读题模式',
48
- 2: 'AI面试官对话模式',
49
- };
50
- exports.AiVideoStatus = {
51
- 0: '播报视频生成中...',
52
- 1: '播报视频生成中...',
53
- 2: '播报视频已生成',
54
- 3: '播报视频生成中...',
55
- };
56
37
  exports.MAX_UPLOAD_FILE_SIZE = 1024 * 1024 * 20;
57
38
  exports.MAX_UPLOAD_VIDEO_FILE_SIZE = 1024 * 1024 * 500;
58
39
  exports.TEST_TYPE_READONLY = [2, 3, 4, 7, 8, 9, 10, 11, 12];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const AbilityRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const AbilityDrawer: import("@emotion/styled").StyledComponent<import("fbm-ui").DrawerProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const NewBadge: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
2
+ export declare const NewBadge: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -60,7 +60,6 @@ var ai_question_1 = require("../../services/ai-question");
60
60
  var ai_analysis_store_1 = require("../../store/ai-question/ai-analysis-store");
61
61
  var boot_video_store_1 = require("../../store/ai-question/boot-video-store");
62
62
  var global_store_1 = require("../../store/ai-question/global-store");
63
- var interview_room_store_1 = require("../../store/ai-question/interview-room-store");
64
63
  var question_model_store_1 = require("../../store/ai-question/question-model-store");
65
64
  var question_model_store_2 = require("../../store/ai-question/question-model-store");
66
65
  var fbm_ui_1 = require("fbm-ui");
@@ -68,7 +67,6 @@ var react_1 = require("react");
68
67
  var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
69
68
  var updateState = (0, global_store_1.useAiQuestionStore)().updateState;
70
69
  var updateBootVideo = (0, boot_video_store_1.useBootVideoStore)().updateBootVideo;
71
- var interviewRoomState = (0, interview_room_store_1.useInterviewRoomStore)().interviewRoomState;
72
70
  var addModel = (0, question_model_store_2.useQuestionModelStore)(function (store) { return [store.addModel]; }).addModel;
73
71
  var selctedAbilitys = (0, question_ability_store_1.useAiAbilityListStore)().selctedAbilitys;
74
72
  var handleValues = function () { return __awaiter(void 0, void 0, void 0, function () {
@@ -111,7 +109,15 @@ var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
111
109
  _d.label = 2;
112
110
  case 2:
113
111
  _d.trys.push([2, 4, , 5]);
114
- return [4 /*yield*/, (0, ai_question_1.PostAiModelUpsert)(__assign(__assign({ name: name, thirdToken: '' }, interviewRoomState), { introductoryVideoSetting: {}, selectAbilities: selctedAbilitys, token: token, questions: questions }))];
112
+ return [4 /*yield*/, (0, ai_question_1.PostAiModelUpsert)({
113
+ name: name,
114
+ thirdToken: '',
115
+ interactType: 1,
116
+ introductoryVideoSetting: {},
117
+ selectAbilities: selctedAbilitys,
118
+ token: token,
119
+ questions: questions,
120
+ })];
115
121
  case 3:
116
122
  data = (_d.sent()).data;
117
123
  return [2 /*return*/, Promise.resolve({
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ListItem: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const AccordionRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const AccordionTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const AccordionSubTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -30,22 +30,17 @@ var SvgIcon_1 = __importDefault(require("../../../../components/SvgIcon"));
30
30
  var ai_question_1 = require("../../../../constants/ai-question");
31
31
  var ai_question_2 = require("../../../../services/ai-question");
32
32
  var boot_video_store_1 = require("../../../../store/ai-question/boot-video-store");
33
- var interview_room_store_1 = require("../../../../store/ai-question/interview-room-store");
34
33
  var utils_1 = require("../../../../utils/utils");
35
34
  var ahooks_1 = require("ahooks");
36
35
  var fbm_ui_1 = require("fbm-ui");
37
36
  var mui_1 = require("fbm-ui/lib/mui");
38
37
  var react_1 = require("react");
39
38
  var BootVideo = function (props) {
40
- var _a;
41
39
  var open = props.open, onClose = props.onClose;
42
- var _b = (0, interview_room_store_1.useInterviewRoomStore)(), interactType = _b.interactType, aiInterviewerProfile = _b.aiInterviewerProfile, updateInterviewRoom = _b.updateInterviewRoom;
43
- var _c = (0, react_1.useState)({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile }), interviewRoomState = _c[0], setInterviewRoomState = _c[1];
44
- var _d = (0, react_1.useState)(ai_question_1.DEFAULT_VITUAL_HUMAN_LIST), virtualManList = _d[0], setVirtualManList = _d[1];
45
- var _e = (0, boot_video_store_1.useBootVideoStore)(), mediaUrl = _e.mediaUrl, thumbUrl = _e.thumbUrl, updateBootVideo = _e.updateBootVideo;
46
- var _f = (0, react_1.useState)(ai_question_1.DEFAULT_GUIDE_VIDEO), mediaList = _f[0], setMediaList = _f[1];
47
- var _g = (0, ahooks_1.useSetState)({ mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: false }), mediaState = _g[0], setMediaState = _g[1];
48
- var _h = (0, ahooks_1.useRequest)(ai_question_2.PostCommonUpload, {
40
+ var _a = (0, boot_video_store_1.useBootVideoStore)(), mediaUrl = _a.mediaUrl, thumbUrl = _a.thumbUrl, updateBootVideo = _a.updateBootVideo;
41
+ var _b = (0, react_1.useState)(ai_question_1.DEFAULT_GUIDE_VIDEO), mediaList = _b[0], setMediaList = _b[1];
42
+ var _c = (0, ahooks_1.useSetState)({ mediaUrl: mediaUrl, thumbUrl: thumbUrl, appliedAllPosition: false }), mediaState = _c[0], setMediaState = _c[1];
43
+ var _d = (0, ahooks_1.useRequest)(ai_question_2.PostCommonUpload, {
49
44
  manual: true,
50
45
  onSuccess: function (_a) {
51
46
  var data = _a.data;
@@ -60,37 +55,13 @@ var BootVideo = function (props) {
60
55
  ]);
61
56
  setMediaState({ mediaUrl: item.url, thumbUrl: item.mineExtra.firstFrameUrl });
62
57
  },
63
- }), loading = _h.loading, postCommonUpload = _h.run;
64
- var getAiInterviewerProfileList = (0, ahooks_1.useRequest)(ai_question_2.GetAiInterviewerProfileList, {
65
- manual: true,
66
- onSuccess: function (_a) {
67
- var list = _a.data.list;
68
- setVirtualManList(list);
69
- },
70
- }).run;
58
+ }), loading = _d.loading, postCommonUpload = _d.run;
71
59
  var handleSelectVideo = (0, react_1.useCallback)(function (mediaUrl, thumbUrl) {
72
60
  setMediaState({ mediaUrl: mediaUrl, thumbUrl: thumbUrl });
73
61
  }, [setMediaState]);
74
- var handleInteractTypeChange = (0, react_1.useCallback)(function (e) {
75
- var _a;
76
- var value = Number(e.target.value);
77
- if (value === 1) {
78
- setInterviewRoomState({ interactType: value });
79
- }
80
- else {
81
- setInterviewRoomState({
82
- interactType: value,
83
- aiInterviewerProfile: ((_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanType) ? interviewRoomState.aiInterviewerProfile : virtualManList[0],
84
- });
85
- }
86
- }, [setInterviewRoomState, interviewRoomState, virtualManList]);
87
- var handleSelectHumanType = (0, react_1.useCallback)(function (value) {
88
- setInterviewRoomState({ interactType: interviewRoomState.interactType, aiInterviewerProfile: value });
89
- }, [setInterviewRoomState, interviewRoomState]);
90
62
  var handleOk = function () {
91
63
  console.log(mediaState);
92
64
  updateBootVideo(mediaState);
93
- updateInterviewRoom(interviewRoomState);
94
65
  onClose();
95
66
  };
96
67
  var uploadProps = {
@@ -110,10 +81,19 @@ var BootVideo = function (props) {
110
81
  postCommonUpload(formData);
111
82
  }
112
83
  },
84
+ // onChange: ({ file }: any) => {
85
+ // console.log('onChange', file);
86
+ // if (isExceedMaxVideoFileSize(file.size)) {
87
+ // Message.error('视频大小超过500M,请重新上传!');
88
+ // } else {
89
+ // const formData = new FormData();
90
+ // formData.append('files', file.originFileObj);
91
+ // postCommonUpload(formData);
92
+ // }
93
+ // },
113
94
  };
114
95
  (0, react_1.useEffect)(function () {
115
96
  if (open) {
116
- getAiInterviewerProfileList();
117
97
  setMediaState({ mediaUrl: mediaUrl, thumbUrl: thumbUrl });
118
98
  if (mediaUrl && thumbUrl && mediaUrl !== mediaList[0].videoUrl) {
119
99
  setMediaList(__spreadArray(__spreadArray([], mediaList, true), [
@@ -130,12 +110,9 @@ var BootVideo = function (props) {
130
110
  }
131
111
  // eslint-disable-next-line react-hooks/exhaustive-deps
132
112
  }, [open]);
133
- return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u4FDD\u5B58", onClose: onClose, onOk: handleOk, width: 768 }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 2, label: "AI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F" })] })), interviewRoomState.interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u9762\u8BD5\u5B98\u5F62\u8C61" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: virtualManList.map(function (human) {
134
- var _a;
135
- return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: { borderColor: ((_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) === human.humanToken ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken));
136
- }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 462, color: "disabled", mb: 1 }, { children: "\u8BF4\u660E\uFF1A\u6B65\u9AA4\u4E0B\u7684\u6240\u6709\u9898\u76EE\u7684\u865A\u62DF\u4EBA\u64AD\u653E\u89C6\u9891\u5747\u751F\u6210\u540E\uFF0C\u624D\u80FD\u751F\u6548\u865A\u62DF\u4EBA\u6548\u679C\u3002\u5426\u5219\uFF0C\u5C06\u4EE5\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F\u8FDB\u884C\u4EA4\u4E92\u3002" }))] })), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
137
- var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
138
- return ((0, jsx_runtime_1.jsx)("img", { src: frameUrl, style: { borderColor: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) === videoUrl ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectVideo(videoUrl, frameUrl); } }, videoUrl));
139
- }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 462, color: "text.disabled", mb: 1 }, { children: "\u5EFA\u8BAE\u4E0A\u4F20mp4\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC7500M\uFF0C\u6700\u591A\u652F\u6301\u4E0A\u4F205\u4E2A\uFF0C\u652F\u6301\u89C6\u9891\u683C\u5F0F\uFF1Amp4\u3001mov\u3001m4v\u30013gp\u3001avi\u3001webm" })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.CustomUploadButtonRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })) })) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ ml: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { checked: mediaState.appliedAllPosition, label: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: "\u5E94\u7528\u5230\u6240\u6709AI\u89C6\u9891" })), onChange: function (e, checked) { return setMediaState({ appliedAllPosition: checked }); } }) }))] }))] }))] }), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { maxHeight: 'calc(100vh - 150px)', overflow: 'auto', flexGrow: 1 } }, { children: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) || loading ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: loading, sx: { width: 160, height: 286, margin: 'auto', cursor: 'pointer' } }, { children: (0, jsx_runtime_1.jsx)("video", { width: 160, height: 286, src: mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl, controls: true }) }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsxs)(styled_1.CustomUploadCardRoot, { children: [(0, jsx_runtime_1.jsxs)(styled_1.CustomUploadCardTitle, { children: [(0, jsx_runtime_1.jsx)(SvgIcon_1.default, { name: "video" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", color: "secondary" }, { children: "\u4E0A\u4F20\u89C6\u9891" }))] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "disabled", sx: { mt: 1 } }, { children: "\u62D6\u62FD\u89C6\u9891\u5230\u6B64\u5904\u4E5F\u53EF\u4E0A\u4F20" }))] }) }))) }))), interviewRoomState.interactType === 2 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { maxHeight: 'calc(100vh - 150px)', overflow: 'auto', flexGrow: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { width: 160, height: 286, margin: 'auto', cursor: 'pointer' } }, { children: (0, jsx_runtime_1.jsx)("video", { width: 160, height: 286, src: (_a = interviewRoomState.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.virtualPreviewMedia, controls: true }) })) })))] })) }) })));
113
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u4FDD\u5B58", onClose: onClose, onOk: handleOk, width: 768 }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between' } }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.RadioGroup, __assign({ defaultValue: "outlined", value: 1 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: "1", label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500, mt: 3, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
114
+ var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
115
+ return ((0, jsx_runtime_1.jsx)("img", { src: frameUrl, style: { borderColor: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) === videoUrl ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectVideo(videoUrl, frameUrl); } }, videoUrl));
116
+ }) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", flexWrap: "wrap", width: 344, color: "text.disabled", mb: 1 }, { children: "\u5EFA\u8BAE\u4E0A\u4F20mp4\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8981\u8D85\u8FC7500M\uFF0C\u6700\u591A\u652F\u6301\u4E0A\u4F205\u4E2A\uFF0C\u652F\u6301\u89C6\u9891\u683C\u5F0F\uFF1Amp4\u3001mov\u3001m4v\u30013gp\u3001avi\u3001webm" })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(styled_1.CustomUploadButtonRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })) })) }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ ml: 2 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox, { checked: mediaState.appliedAllPosition, label: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: "\u5E94\u7528\u5230\u6240\u6709AI\u89C6\u9891" })), onChange: function (e, checked) { return setMediaState({ appliedAllPosition: checked }); } }) }))] }))] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { maxHeight: 'calc(100vh - 150px)', overflow: 'auto', flexGrow: 1 } }, { children: (mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl) || loading ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ loading: loading, sx: { width: 160, height: 286, margin: 'auto', cursor: 'pointer' } }, { children: (0, jsx_runtime_1.jsx)("video", { width: 160, height: 286, src: mediaState === null || mediaState === void 0 ? void 0 : mediaState.mediaUrl, controls: true }) }))) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsxs)(styled_1.CustomUploadCardRoot, { children: [(0, jsx_runtime_1.jsxs)(styled_1.CustomUploadCardTitle, { children: [(0, jsx_runtime_1.jsx)(SvgIcon_1.default, { name: "video" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", color: "secondary" }, { children: "\u4E0A\u4F20\u89C6\u9891" }))] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "disabled", sx: { mt: 1 } }, { children: "\u62D6\u62FD\u89C6\u9891\u5230\u6B64\u5904\u4E5F\u53EF\u4E0A\u4F20" }))] }) }))) }))] })) }) })));
140
117
  };
141
118
  exports.default = BootVideo;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CustomUploadCardRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const CustomUploadCardTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const CustomUploadButtonRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
11
11
  export declare const CustomUploadedImgRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
12
12
  children?: import("react").ReactNode;
13
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,3 +1,6 @@
1
- import { FC } from 'react';
2
- declare const Interactive: FC;
1
+ /// <reference types="react" />
2
+ interface InteractiveProps {
3
+ mode: 'Traditional' | 'Chat';
4
+ }
5
+ declare const Interactive: React.FC<InteractiveProps>;
3
6
  export default Interactive;
@@ -16,18 +16,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var jsx_runtime_1 = require("react/jsx-runtime");
18
18
  var BootVideo_1 = __importDefault(require("../BootVideo"));
19
- var ai_question_1 = require("../../../../constants/ai-question");
20
- var interview_room_store_1 = require("../../../../store/ai-question/interview-room-store");
21
- var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
22
19
  var fbm_ui_1 = require("fbm-ui");
23
20
  var mui_1 = require("fbm-ui/lib/mui");
24
21
  var react_1 = require("react");
25
- var Interactive = function () {
26
- var _a, _b;
27
- var questionModelData = (0, question_model_store_1.useQuestionModelStore)().questionModelData;
28
- var _c = (0, interview_room_store_1.useInterviewRoomStore)(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
29
- var _d = (0, react_1.useState)(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
30
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [bootVideoOpen && (0, jsx_runtime_1.jsx)(BootVideo_1.default, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", component: mui_1.Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(ai_question_1.InteractiveModes[interactType]), interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
31
- (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken) && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: ai_question_1.AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
22
+ var InteractiveModes = {
23
+ Traditional: '传统读题模式',
24
+ Chat: 'AI面试官对话模式',
25
+ };
26
+ var Interactive = function (_a) {
27
+ var mode = _a.mode;
28
+ var _b = (0, react_1.useState)(false), bootVideoOpen = _b[0], setBootVideoOpen = _b[1];
29
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(BootVideo_1.default, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", component: mui_1.Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[mode]) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
32
30
  };
33
31
  exports.default = Interactive;
@@ -24,7 +24,6 @@ var styled_1 = require("./styled");
24
24
  var question_ability_store_1 = require("../../../../store/ai-ability-select/question-ability-store");
25
25
  var ai_question_1 = require("../../../../services/ai-question");
26
26
  var global_store_1 = require("../../../../store/ai-question/global-store");
27
- var interview_room_store_1 = require("../../../../store/ai-question/interview-room-store");
28
27
  var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
29
28
  var question_template_store_1 = require("../../../../store/ai-question/question-template-store");
30
29
  var ahooks_1 = require("ahooks");
@@ -33,7 +32,6 @@ var Question = function () {
33
32
  var isDefaultAdded = (0, react_1.useRef)(false);
34
33
  var _a = (0, global_store_1.useAiQuestionStore)(function (store) { return [store.token, store.name, store.templateList]; }), token = _a.token, name = _a.name, templateList = _a.templateList, onLoad = _a.onLoad;
35
34
  var aiEvaluationData = (0, question_template_store_1.useQuestionTemplateStore)(function (store) { return [store.aiEvaluationData]; }).aiEvaluationData;
36
- var updateInterviewRoom = (0, interview_room_store_1.useInterviewRoomStore)().updateInterviewRoom;
37
35
  var _b = (0, question_model_store_1.useQuestionModelStore)(function (store) { return [store.questionModelData]; }), questionModelData = _b.questionModelData, updateModel = _b.updateModel, addModel = _b.addModel;
38
36
  var setSelctedAbilitys = (0, question_ability_store_1.useAiAbilityListStore)().setSelctedAbilitys;
39
37
  var _c = (0, ahooks_1.useRequest)(function () { return (0, ai_question_1.PostAiModelDetails)(token); }, {
@@ -41,8 +39,6 @@ var Question = function () {
41
39
  onSuccess: function (_a) {
42
40
  var data = _a.data;
43
41
  updateModel(data);
44
- var _b = data.interactType, interactType = _b === void 0 ? 1 : _b, aiInterviewerProfile = data.aiInterviewerProfile, aiVideoStatus = data.aiVideoStatus;
45
- updateInterviewRoom({ interactType: interactType, aiInterviewerProfile: aiInterviewerProfile, aiVideoStatus: interactType === 1 ? 0 : aiVideoStatus });
46
42
  setSelctedAbilitys((data === null || data === void 0 ? void 0 : data.selectAbilities) || []);
47
43
  onLoad === null || onLoad === void 0 ? void 0 : onLoad(data.steps);
48
44
  },
@@ -79,6 +75,6 @@ var Question = function () {
79
75
  }
80
76
  }
81
77
  }, [token, aiEvaluationData, questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.steps, templateList, addModel]);
82
- return ((0, jsx_runtime_1.jsx)(styled_1.QuestionModelRoot, { children: loading ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, {})) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Header_1.default, {}), (0, jsx_runtime_1.jsx)(Interactive_1.default, {}), (0, jsx_runtime_1.jsx)(List_1.default, {})] })) }));
78
+ return ((0, jsx_runtime_1.jsx)(styled_1.QuestionModelRoot, { children: loading ? ((0, jsx_runtime_1.jsx)(Skeleton_1.default, {})) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Header_1.default, {}), (0, jsx_runtime_1.jsx)(Interactive_1.default, { mode: "Traditional" }), (0, jsx_runtime_1.jsx)(List_1.default, {})] })) }));
83
79
  };
84
80
  exports.default = Question;