PageSourceSearch

https://deephow.ai/assets/EditorQuiz-DuBQhXdi.js

js deephow.ai collected 2026-10-05 11:59:30 UTC 4,897 bytes, 1 lines download raw bytes

1import{w as o,cr as a,z as m,u as f}from"./index-B2_rrUWa.js";import g from"./QuizLeftSide-CXMmXvOe.js";import{T as _}from"./TranslationEditor-D0W6XJjs.js";import{_ as w}from"./MixinTranslation-B1qzkufX.js";import{M as k}from"./MixinQuizPublish-DLC_OdR3.js";import{b as n,m as C,d}from"./vendor-vue-Dc2LPUoF.js";import{du as S,aE as l,c as E,f as v,K as u,i as c}from"./vendor-others-Cb-_CJoS.js";import{b as z}from"./buildNewEditorAiContentSources-BOPM4q7a.js";import{u as Q}from"./useDerivedHash-CmzTQf6N.js";import{u as A}from"./ChangeSpeedSegmentsOverlayTrack-CqOucaod.js";import{u as T}from"./useDerivedOutdated-DOV_fR62.js";import{_ as D}from"./vendor-emoji-mart-vue-fast-D_gb4wpv.js";import"./vendor-firebase-WYpYyPUs.js";import"./vendor-hls-DyG050JZ.js";import"./vendor-ali-oss-CxNDuD8w.js";import"./vendor-d3-Cl55k9wj.js";import"./vendor-fabric-BxHRdrKk.js";import"./vendor-fontawesome--uth9-aG.js";import"./vendor-aggrid-DzY6H3DO.js";import"./vendor-vuetify-CzUHjbwx.js";import"./vendor-element-plus-C4_3ySuy.js";import"./DActivateSwitch-Du--3IsY.js";import"./d-auto-resize-Btpt9GCg.js";import"./useWordPreviewTooltip-9CXIHt2z.js";import"./wizardEditor-DcdOWrEV.js";import"./resolveWorkflowSourceVideoDuration-u0s_c-N8.js";import"./segmentTime-CXEMVm2i.js";import"./image-maps-server-C-dveMM4.js";import"./addons-DNe8whWa.js";import"./translations-BObjPR9Y.js";import"./logQuizHistory-EPAToqfV.js";import"./useDraggableHandle-BaPw27SQ.js";import"./timeRangeUtils-Bh8noy9t.js";import"./useMapMutations-CPd50PBj.js";import"./useSummaryLanguageSupport-CUFYvelj.js";const y={name:"EditorQuiz",mixins:[w,k],inject:["resetMenu","startSaving","finishSaving"],components:{QuizLeftSide:g,TranslationEditor:_},data(){return{}},setup(){const{updateDerivedHashForQuiz:e}=Q(),{isQuizOutdated:t}=T(),{isEditMode:r}=A();return{updateDerivedHashForQuiz:e,isEditMode:r,isQuizOutdated:t}},computed:{...d("aiQuizEditor",["isUserChangeLocalData"]),...d("editorAdvance",["sourceWorkflow","workflowForm","transcriptionIdByLanguage","workflowTitleByLanguage"]),...S(f,["userOrganization"]),...C("editorAdvance",["getter_adjusted_steps","getter_adjusted_steps_with_import","getter_adjusted_sentences","getter_clip_items","getter_needs_word_spacing","getter_source_sentences_array"]),steps(){return this.getter_adjusted_steps},workflow(){return this.sourceWorkflow},originalStepTitles(){return this.steps.map(e=>e.title)},quizContentSources(){return z({steps:this.getter_adjusted_steps_with_import,clipItems:this.getter_clip_items,sentences:this.getter_adjusted_sentences,needsWordSpacing:this.getter_needs_word_spacing})},isNewEditorWorkflow(){return this.$route.name===m.EDITOR_ADVANCED}},methods:{...n("editorAdvance",["setIsStateChanged"]),...n("aiQuizEditor",["resetQuizData"]),async handleSwitchQuizStatus(e){this.startSaving();const{ok:t}=await this.handleClickHeaderButton({isPublished:e,toggleActive:!0});return this.finishSaving(),t},async handleSaveClick({resolve:e}){const{ok:t}=await this.handleClickHeaderButton({isPublished:this.isQuizPublished,toggleActive:!1});t&&this.isNewEditorWorkflow&&await this.updateDerivedHashForQuiz(),e({ok:t,showDefaultError:!1})},handleMarkAsCurrentClick(){this.isEditMode&&this.updateDerivedHashForQuiz()},handleClosePopup(){this.resetMenu()}},created(){o.on(a.SAVE_NEW_EDITOR,this.handleSaveClick)},beforeUnmount(){this.setIsStateChanged(!1),o.off(a.SAVE_NEW_EDITOR,this.handleSaveClick)},watch:{isUserChangeLocalData(e){this.setIsStateChanged(e)}}},M={class:"editor-quiz"},N={class:"py-6 flex-[3] overflow-hidden"};function b(e,t,r,s,I,i){const p=l("QuizLeftSide"),h=l("TranslationEditor");return v(),E("div",M,[u("div",N,[c(p,{class:"overflow-hidden h-full","is-edit-mode":s.isEditMode,"is-out-of-sync":s.isQuizOutdated,workflow:e.sourceWorkflow,"content-sources":i.quizContentSources,"on-after-ai-generate-success":s.updateDerivedHashForQuiz,"switch-quiz-status-function":i.handleSwitchQuizStatus,onClose:i.handleClosePopup,onMarkAsCurrent:i.handleMarkAsCurrentClick}
1,null,8,["is-edit-mode","is-out-of-sync","workflow","content-sources","on-after-ai-generate-success","switch-quiz-status-function","onClose","onMarkAsCurrent"])]),t[0]||(t[0]=u("div",{class:"w-[1px] h-full bg-gray-3"},null,-1)),c(h,{ref:"originalTranslationEditor",type:"original","container-class":"flex-[2]",language:e.sourceWorkflow.languageCode,"workflow-title":e.workflowForm.title,"step-titles":i.originalStepTitles,"sentences-array":e.getter_source_sentences_array,"highlighted-step":e.clickStepNum,"highlighted-sentence":e.clickSentenceNum,onClickTitle:e.handleClickTitle,onClickStep:e.handleClickStep,onClickSentence:e.handleClickSentence},null,8,["language","workflow-title","step-titles","sentences-array","highlighted-step","highlighted-sentence","onClickTitle","onClickStep","onClickSentence"])])}const fe=D(y,[["render",b],["__scopeId","data-v-ef3ec482"]]);export{fe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.