(self.webpackChunkfecommons=self.webpackChunkfecommons||[]).push([[177],{"./app-study/views/home/AsyncComponents.tsx":(e,t,o)=>{"use strict";o.d(t,{N:()=>d,L:()=>n});o("./node_modules/core-js/modules/es.promise.js");var a,s=o("./correct-common/LoadComponent/index.tsx");e=o.hmd(e),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;const d=[{path:"/taskList",component:"TaskList",exact:!0,key:"9"},{path:"/taskDetail/:taskId/:id/:role/:score",component:"TaskDetail",exact:!0,key:"2"},{path:"/taskStudentList/:taskId/:id",component:"TaskStudentList",exact:!0,key:"3"},{path:"/taskSubmit/:taskId/:id/:records",component:"TaskSubmit",exact:!0,key:"4"},{path:"/toShowCorrect/:taskId/:id/:taskStudentId/:role",component:"ToShowCorrect",exact:!0,key:"5"},{path:"/classList/:taskId/:id",component:"ClassList",exact:!0,key:"6"},{path:"/stuList/:classId/:taskId/:id",component:"StuList",exact:!0,key:"7"}],n={TaskList:(0,s.Z)((()=>Promise.all([o.e(441),o.e(900),o.e(456)]).then(o.bind(o,"./app-study/views/taskList/index.tsx")))),TaskDetail:(0,s.Z)((()=>Promise.all([o.e(441),o.e(723),o.e(514),o.e(256)]).then(o.bind(o,"./app-study/views/taskDetail/index.tsx")))),TaskStudentList:(0,s.Z)((()=>Promise.all([o.e(441),o.e(723),o.e(514),o.e(812),o.e(398)]).then(o.bind(o,"./app-study/views/taskStudentList/index.tsx")))),TaskSubmit:(0,s.Z)((()=>Promise.all([o.e(441),o.e(723),o.e(514),o.e(823),o.e(33),o.e(111),o.e(584)]).then(o.bind(o,"./app-study/views/taskSubmit/index.tsx")))),ToShowCorrect:(0,s.Z)((()=>Promise.all([o.e(441),o.e(723),o.e(514),o.e(823),o.e(33),o.e(711),o.e(824)]).then(o.bind(o,"./app-study/views/toShowCorrect/index.tsx")))),ClassList:(0,s.Z)((()=>Promise.all([o.e(441),o.e(723),o.e(872)]).then(o.bind(o,"./app-study/views/classList/index.tsx")))),StuList:(0,s.Z)((()=>Promise.all([o.e(441),o.e(723),o.e(514),o.e(823),o.e(921)]).then(o.bind(o,"./app-study/views/stuList/index.tsx"))))};var r,i;(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(r.register(d,"router","/data/jenkins/.jenkins/workspace/iwrite_study_front_prod/app-study/views/home/AsyncComponents.tsx"),r.register(n,"asyncComponents","/data/jenkins/.jenkins/workspace/iwrite_study_front_prod/app-study/views/home/AsyncComponents.tsx")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)},"./app-study/views/home/bridge.js":(e,t,o)=>{"use strict";var a;o.d(t,{Z:()=>n}),e=o.hmd(e),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&a(e);var s,d;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function n(e){if(/android/i.test(navigator.userAgent))window.WebViewJavascriptBridge?e(WebViewJavascriptBridge):document.addEventListener("WebViewJavascriptBridgeReady",(function(){e(WebViewJavascriptBridge)}),!1);else{if(window.WebViewJavascriptBridge)return e(WebViewJavascriptBridge);if(window.WVJBCallbacks)return window.WVJBCallbacks.push(e);window.WVJBCallbacks=[e];var t=document.createElement("iframe");t.style.display="none",t.src="https://__bridge_loaded__",document.documentElement.appendChild(t),setTimeout((function(){document.documentElement.removeChild(t)}),0)}}(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&s.register(n,"setupWebViewJavascriptBridge","/data/jenkins/.jenkins/workspace/iwrite_study_front_prod/app-study/views/home/bridge.js"),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)},"./app-study/views/home/index.js":(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>b});o("./node_modules/core-js/modules/es.array.index-of.js"),o("./node_modules/core-js/modules/es.array.map.js"),o("./node_modules/antd/es/message/style/index.js");var a=o("./node_modules/antd/es/message/index.js"),s=o("./node_modules/react/index.js"),d=o("./node_modules/react-redux/es/index.js"),n=o("./node_modules/connected-react-router/esm/actions.js"),r=o("./node_modules/unipus-logger/src/logger.js"),i=o("./node_modules/react-router/esm/react-router.js"),l=o("./correct-common/Error/index.jsx");const c="content-2IIgF";var u,p=o("./correct-data/utils/cookieUtils.js"),m=o("./app-study/utils/constants.ts"),k=o("./app-study/views/home/AsyncComponents.tsx"),y=o("./app-study/views/home/bridge.js");function f(e){const t=(0,d.I0)();return(0,s.useEffect)((()=>{(0,y.Z)((function(e){window.bridge=e,e.callHandler("observeSignal",{name:"iwrite-photo-uploaded",callback:"onPhotoUploaded"}),e.registerHandler("onPhotoUploaded",(e=>{e="string"==typeof e?JSON.parse(e):e,(0,p.d8)("imgPath",e.url);const o=(0,p.ej)("taskId"),a=(0,p.ej)("workId"),s=JSON.stringify({classId:(0,p.ej)(m.y$.CLASSID),taskId:o,studentId:(0,p.ej)(m.y$.ID),imgPath:e.url}),d={platform:"iwrite-study",openId:(0,p.ej)(m.y$.TOKENID),category:"h5-stu",code:"1",infoMsg:s,env:"prod"};(0,r._)(d);const i=window.location.href,l=e.exist_records;-1!=i.indexOf("taskSubmit")?window.location.reload():t((0,n.VF)(`/taskSubmit/${o}/${a}/${l}`))})),e.callHandler("observeSignal",{name:"iwrite-answer-records",callback:"gotoTaskStuList"}),e.registerHandler&&e.registerHandler("gotoTaskStuList",(()=>{console.log("收到iwrite-answer-records");const e=(0,p.ej)("taskId"),o=(0,p.ej)("workId");t((0,n.VF)(`/taskStudentList/${e}/${o}`))}))})),a.ZP.config({top:50})}),[]),s.createElement("div",{className:c},s.createElement(i.rs,null,k.N.map((e=>{if(!e.path)return null;const t=e.component?k.L[e.component]:null;return s.createElement(i.AW,{key:e.key,exact:e.exact,path:e.path,component:t})})),s.createElement(i.AW,{path:"/empty",component:null,key:"empty"}),s.createElement(i.l_,{from:"/",to:"/taskList",key:"1"}),s.createElement(i.AW,{component:l.Z,key:"errir"})))}e=o.hmd(e),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&u(e),("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e})(f,"useDispatch{dispatch}\nuseEffect{}",(()=>[d.I0]));const w=f,b=w;var h,v;(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(f,"Home","/data/jenkins/.jenkins/workspace/iwrite_study_front_prod/app-study/views/home/index.js"),h.register(w,"default","/data/jenkins/.jenkins/workspace/iwrite_study_front_prod/app-study/views/home/index.js")),(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&v(e)},"?542f":()=>{}}]); //# sourceMappingURL=home.177.202d75379fe166dc3778.js.map