"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[34800],{94594:function(e,n,t){t.r(n),t.d(n,{default:function(){return R}});var r=t(42122),a=t.n(r),o=t(17061),i=t.n(o),l=t(17156),c=t.n(l),s=t(27424),u=t.n(s),d=t(67294),f="wrap___R200H",v="tabWarp___mqv7U",p="control___DRROw",h="label___uGfKS",b="table___QYxOF",m="head___j0vM3",_="row___LHb1i",g=t(88275),y=t(84519),x=t(96486),j=t(96101),C=t(71577),k=t(36182),$=t(57953),w=t(83062),Z=t(84567),S=t(32983),O=t(29427),E=t(59758),N=t(69555),P=t(32337),I=t(85893),R=(0,g.connect)((function(e){return{user:e.user}}))((function(e){var n,t,r,o,l,s,R,M,D,z=e.user,V=e.dispatch,B=(0,d.useState)({tab:"1",ec_major_school_id:null,ec_year_id:null}),H=u()(B,2),L=H[0],T=H[1],W=(0,d.useState)([]),q=u()(W,2),F=q[0],G=q[1],A=(0,d.useState)([]),X=u()(A,2),K=X[0],U=X[1],Y=(0,d.useState)([]),Q=u()(Y,2),J=Q[0],ee=Q[1],ne=(0,d.useState)(!0),te=u()(ne,2),re=te[0],ae=te[1],oe=(0,d.useState)(!1),ie=u()(oe,2),le=ie[0],ce=ie[1],se=(0,d.useState)(!1),ue=u()(se,2),de=ue[0],fe=ue[1],ve=(0,g.useLocation)();(0,d.useEffect)((function(){var e;return null!=z&&null!==(e=z.userInfo)&&void 0!==e&&e.school_id&&be(),function(){V({type:"engineering/setMatrixVerify",payload:{key:!1,params:{}}})}}),[null==z||null===(n=z.userInfo)||void 0===n?void 0:n.school_id]);var pe=function(){var e=c()(i()().mark((function e(n,t){var r,a,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(0,x.cloneDeep)(n),N.U.setItem(null==z||null===(r=z.userInfo)||void 0===r?void 0:r.login,[null==a?void 0:a.ec_major_school_id,null==a?void 0:a.ec_year_id]),delete a.tab,t||ae(!0),e.next=6,(0,y.ZP)("/api/ec_years/".concat(L.ec_year_id,"/").concat("1"===(null==n?void 0:n.tab)?"requirement_support_objectives":"subitem_support_standards",".json"),{method:"get",params:a});case 6:null!=(o=e.sent)&&o.data&&(null!=o&&o.standards&&(o.training_subitems=null==o?void 0:o.standards),ee(o||[]),he((null==o?void 0:o.data)||[])),ae(!1);case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),he=function(e){for(var n=!1,t=0;tn||e},84567:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(94184),a=t.n(r),o=t(95860),i=t(67294),l=t(53124),c=t(98866),s=t(65223);var u=i.createContext(null),d=t(63185),f=t(45353),v=t(17415),p=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:r,className:h,rootClassName:b,children:m,indeterminate:_=!1,style:g,onMouseEnter:y,onMouseLeave:x,skipGroup:j=!1,disabled:C}=e,k=p(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:$,direction:w,checkbox:Z}=i.useContext(l.E_),S=i.useContext(u),{isFormItemInput:O}=i.useContext(s.aM),E=i.useContext(c.Z),N=null!==(t=(null==S?void 0:S.disabled)||C)&&void 0!==t?t:E,P=i.useRef(k.value);i.useEffect((()=>{null==S||S.registerValue(k.value)}),[]),i.useEffect((()=>{if(!j)return k.value!==P.current&&(null==S||S.cancelValue(P.current),null==S||S.registerValue(k.value),P.current=k.value),()=>null==S?void 0:S.cancelValue(k.value)}),[k.value]);const I=$("checkbox",r),[R,M]=(0,d.ZP)(I),D=Object.assign({},k);S&&!j&&(D.onChange=function(){k.onChange&&k.onChange.apply(k,arguments),S.toggleOption&&S.toggleOption({label:m,value:k.value})},D.name=S.name,D.checked=S.value.includes(k.value));const z=a()(`${I}-wrapper`,{[`${I}-rtl`]:"rtl"===w,[`${I}-wrapper-checked`]:D.checked,[`${I}-wrapper-disabled`]:N,[`${I}-wrapper-in-form-item`]:O},null==Z?void 0:Z.className,h,b,M),V=a()({[`${I}-indeterminate`]:_},v.A,M),B=_?"mixed":void 0;return R(i.createElement(f.Z,{component:"Checkbox",disabled:N},i.createElement("label",{className:z,style:Object.assign(Object.assign({},null==Z?void 0:Z.style),g),onMouseEnter:y,onMouseLeave:x},i.createElement(o.Z,Object.assign({"aria-checked":B},D,{prefixCls:I,className:V,disabled:N,ref:n})),void 0!==m&&i.createElement("span",null,m))))};var b=i.forwardRef(h),m=t(74902),_=t(10366),g=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{const{defaultValue:t,children:r,options:o=[],prefixCls:c,className:s,rootClassName:f,style:v,onChange:p}=e,h=g(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:y,direction:x}=i.useContext(l.E_),[j,C]=i.useState(h.value||t||[]),[k,$]=i.useState([]);i.useEffect((()=>{"value"in h&&C(h.value||[])}),[h.value]);const w=i.useMemo((()=>o.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[o]),Z=y("checkbox",c),S=`${Z}-group`,[O,E]=(0,d.ZP)(Z),N=(0,_.Z)(h,["value","disabled"]),P=o.length?w.map((e=>i.createElement(b,{prefixCls:Z,key:e.value.toString(),disabled:"disabled"in e?e.disabled:h.disabled,value:e.value,checked:j.includes(e.value),onChange:e.onChange,className:`${S}-item`,style:e.style,title:e.title},e.label))):r,I={toggleOption:e=>{const n=j.indexOf(e.value),t=(0,m.Z)(j);-1===n?t.push(e.value):t.splice(n,1),"value"in h||C(t),null==p||p(t.filter((e=>k.includes(e))).sort(((e,n)=>w.findIndex((n=>n.value===e))-w.findIndex((e=>e.value===n)))))},value:j,disabled:h.disabled,name:h.name,registerValue:e=>{$((n=>[].concat((0,m.Z)(n),[e])))},cancelValue:e=>{$((n=>n.filter((n=>n!==e))))}},R=a()(S,{[`${S}-rtl`]:"rtl"===x},s,f,E);return O(i.createElement("div",Object.assign({className:R,style:v},N,{ref:n}),i.createElement(u.Provider,{value:I},P)))},x=i.forwardRef(y);var j=i.memo(x);const C=b;C.Group=j,C.__ANT_CHECKBOX=!0;var k=C},63185:function(e,n,t){t.d(n,{C2:function(){return l}});var r=t(14747),a=t(45503),o=t(67968);const i=e=>{const{checkboxCls:n}=e,t=`${n}-wrapper`;return[{[`${n}-group`]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${t}`]:{marginInlineStart:0},[`&${t}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Object.assign({},(0,r.oN)(e))},[`${n}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${t}:not(${t}-disabled),\n ${n}:not(${n}-disabled)\n `]:{[`&:hover ${n}-inner`]:{borderColor:e.colorPrimary}},[`${t}:not(${t}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${t}-checked:not(${t}-disabled),\n ${n}-checked:not(${n}-disabled)\n `]:{[`&:hover ${n}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{[`${n}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${t}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:e.colorTextDisabled}}}]};function l(e,n){const t=(0,a.TS)(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize});return[i(t)]}n.ZP=(0,o.Z)("Checkbox",((e,n)=>{let{prefixCls:t}=n;return[l(t,e)]}))},42480:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(87462),a=t(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},i=t(44327),l=function(e,n){return a.createElement(i.Z,(0,r.Z)({},e,{ref:n,icon:o}))};var c=a.forwardRef(l)},95860:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(87462),a=t(1413),o=t(4942),i=t(97685),l=t(45987),c=t(94184),s=t.n(c),u=t(67294);function d(e){var n=u.useRef();n.current=e;var t=u.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),a=0;a