"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[45950],{53774:function(e,t,n){n.r(t);var o=n(31468),a=n.n(o),r=n(82242),i=n.n(r),c=n(79800),s=n.n(c),u=n(59301),l=n(49389),p=n(78241),d=n(37712);t.default=(0,l.connect)((function(e){var t=e.user,n=e.loading,o=e.globalSetting,a=e.coreCurriculum;return{user:t,loading:n.effects,globalSetting:o,coreCurriculum:a}}))((function(e){var t,n=e.coreCurriculum,o=e.dispatch,r=(e.loading,e.user,e.globalSetting),c=(n.CoreSubjects,p.Z.useForm()),l=(s()(c,1)[0],(0,u.useState)(!1)),g=s()(l,2),f=(g[0],g[1],(0,u.useState)("")),m=s()(f,2),h=m[0],v=(m[1],(0,u.useState)({page:1,limit:12})),w=s()(v,2),S=w[0];w[1];(0,u.useEffect)((function(){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i()(i()({},S),{},{keyword:h});o({type:"coreCurriculum/getCoreSubjects",payload:i()({},e)})}()}),[S]),(0,u.useEffect)((function(){return o({type:"globalSetting/footerToggle",payload:!1}),function(){o({type:"globalSetting/footerToggle",payload:!0})}}),[]);var y=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=function(e){var t=y.current;if(t&&t.src){var n=e.data;if(e.source===t.contentWindow&&"string"==typeof n)try{console.log("eventData: ",n);var o=JSON.parse(n);if("object"===a()(o)){var r=o.courseId,i=o.type,c=o.nodeUid,s=o.path,u=o.tab,l=o.graphType,p=new URLSearchParams;r&&p.append("courseId",r),i&&p.append("type",i),u&&p.append("tab",u),c&&p.append("nodeUid",c),s&&p.append("path",s),l&&p.append("graphType",l),window.location.search!=="?".concat(p.toString())&&(console.log("newQueryParams.toString(): ",p.toString()),window.history.replaceState({},"",window.location.pathname+"?".concat(p.toString())))}}catch(e){console.error("解析消息数据出错:",e)}}};return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}}),[]),(0,u.useEffect)((function(){y.current&&function(){var e=y.current;if(e&&e.src){var t=new URLSearchParams(window.location.search),n=t.get("courseId"),o=t.get("path"),a=t.get("tab"),r=t.get("nodeUid"),i=t.get("graphType"),c=new URL(null==e?void 0:e.src);o&&(c.pathname="/"+o),n&&c.searchParams.append("mapUid",n),a&&c.searchParams.append("tab",a),r&&c.searchParams.append("nodeUid",r),["systemEditMap","knowledgeRelation","referencedList","contentSource","teachingOperating","commonMapDetailForce","graphFullScreen","questionSystem","courseEdit","addAndEditProblem","mapSourceFullScreen"].includes(o)&&(c.pathname="/"+o+"/"+n),i&&c.searchParams.append("graphType",i),e.src=c.toString()}}()}),[y.current]),(0,d.jsx)("section",{children:(0,d.jsx)("iframe",{src:null==r||null===(t=r.setting)||void 0===t?void 0:t.core_subject_url,ref:y,style:{position:"absolute",top:"70px",left:0,width:"100%",height:"calc(-70px + 100vh)",border:0}})})}))},8378:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})}}]);