You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__ClassicCases...

9 lines
14 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1674],{33165:function(se,H,g){g.r(H),g.d(H,{default:function(){return U}});var c=g(59301),d=g(89070),o=g(61621),C={flex_box_center:"flex_box_center___fU5fA",flex_space_between:"flex_space_between___EIetH",flex_box_vertical_center:"flex_box_vertical_center___VNuWc",flex_box_center_end:"flex_box_center_end___Z9MLS",flex_box_column:"flex_box_column___bTB9Z",example:"example___EbLbG",bg:"bg___j1Yg6",banner:"banner___ZzbyF",link:"link___HwmfE",name:"name___O7e_c",case:"case___wOZUd",li:"li___RmgBA",des:"des___c3pU0"},$=g.p+"static/a.031649c1.png",Q=g(99064),y=g(3294),z=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,W=(m,S)=>{var B={};for(var p in m)Z.call(m,p)&&S.indexOf(p)<0&&(B[p]=m[p]);if(m!=null&&z)for(var p of z(m))S.indexOf(p)<0&&G.call(m,p)&&(B[p]=m[p]);return B},N=(m,S,B)=>new Promise((p,w)=>{var O=F=>{try{P(B.next(F))}catch(E){w(E)}},D=F=>{try{P(B.throw(F))}catch(E){w(E)}},P=F=>F.done?p(F.value):Promise.resolve(F.value).then(O,D);P((B=B.apply(m,S)).next())});const k=m=>{var S=m,{user:B}=S,p=W(S,["user"]);const[w,O]=(0,c.useState)(!0),[D,P]=(0,c.useState)(0),[F,E]=(0,c.useState)([]);(0,c.useEffect)(()=>{q()},[]);const q=()=>N(void 0,null,function*(){O(!0);const x=yield(0,Q.ZP)("/api/home/base_case.json",{method:"get"});x.status===0&&E((x==null?void 0:x.cases)||[]),O(!1)}),ee=[{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"},{img:$,title:"\u8BA1\u7B97\u673A\u53D1\u5C55\u53F2",intro:"\u901A\u8FC7\u5C55\u5385\u6A21\u62DF\uFF0C\u8BA9\u5B66\u751F\u4E86\u89E3\u975E\u7535\u5B50\u8BA1\u7B97\u88C5\u7F6E\u7684\u53D1\u5C55\u5386\u53F2"}];return c.createElement("section",{className:C.example},c.createElement(o.Z,{loading:w,active:!0,paragraph:{rows:5}},c.createElement("div",{className:C.bg},c.createElement("div",{className:C.banner},c.createElement("div",{className:C.link},c.createElement("span",{className:"current",onClick:()=>d.history.push("/")},"\u9996\u9875"),">\u6C89\u6D78\u5F0F\u6559\u5B66\u73AF\u5883"),c.createElement("div",{className:C.name},"\u6C89\u6D78\u5F0F\u6559\u5B66\u73AF\u5883"))),c.createElement("div",{className:C.case},c.createElement("div",{className:C.name},c.createElement("span",null,"\u5178\u578B\u6848\u4F8B"),c.createElement("span",null,"CLASSIC CASE")),c.createElement("aside",null,F.map((x,V)=>c.createElement("a",{href:x.url,target:"_blank",className:C.li,key:V},c.createElement("img",{src:`${y.Z.IMG_SERVER}${x.pic_url}`}),c.createElement("div",{className:C.des},c.createElement("h4",null,x.title),c.createElement("h6",null,x.sub_title))))))))};var U=(0,d.connect)(({user:m})=>({user:m}))(k)},61621:function(se,H,g){g.d(H,{Z:function(){return Fe}});var c=g(92310),d=g.n(c),o=g(59301),C=g(36355),$=g(2738),y=e=>{const{prefixCls:t,className:n,style:s,size:a,shape:r}=e,u=d()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),i=d()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),l=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:d()(t,u,i,n),style:Object.assign(Object.assign({},l),s)})},z=g(93083),Z=g(83116),G=g(37613);const W=new z.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),N=e=>({height:e,lineHeight:`${e}px`}),k=e=>Object.assign({width:e},N(e)),U=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:W,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=e=>Object.assign({width:e*5,minWidth:e*5},N(e)),S=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},k(s)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},k(a)),[`${t}${t}-sm`]:Object.assign({},k(r))}},B=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:u}=e;return{[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u,borderRadius:n},m(t)),[`${s}-lg`]:Object.assign({},m(a)),[`${s}-sm`]:Object.assign({},m(r))}},p=e=>Object.assign({width:e},N(e)),w=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:s,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:s,borderRadius:a},p(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},p(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},O=(e,t,n)=>{const{skeletonButtonCls:s}=e;return{[`${n}${s}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${s}-round`]:{borderRadius:t}}},D=e=>Object.assign({width:e*2,minWidth:e*2},N(e)),P=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:u}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u,borderRadius:t,width:s*2,minWidth:s*2},D(s))},O(e,s,n)),{[`${n}-lg`]:Object.assign({},D(a))}),O(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},D(r))}),O(e,r,`${n}-sm`))},F=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:s,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:u,skeletonImageCls:i,controlHeight:l,controlHeightLG:h,controlHeightSM:v,gradientFromColor:f,padding:A,marginSM:K,borderRadius:j,titleHeight:b,blockRadius:M,paragraphLiHeight:Y,controlHeightXS:_,paragraphMarginTop:R}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:A,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},k(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},k(h)),[`${n}-sm`]:Object.assign({},k(v))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${s}`]:{width:"100%",height:b,background:f,borderRadius:M,[`+ ${a}`]:{marginBlockStart:v}},[`${a}`]:{padding:0,"> li":{width:"100%",height:Y,listStyle:"none",background:f,borderRadius:M,"+ li":{marginBlockStart:_}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${s}, ${a} > li`]:{borderRadius:j}}},[`${t}-with-avatar ${t}-content`]:{[`${s}`]:{marginBlockStart:K,[`+ ${a}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},P(e)),S(e)),B(e)),w(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${u}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
${s},
${a} > li,
${n},
${r},
${u},
${i}
`]:Object.assign({},U(e))}}};var E=(0,Z.Z)("Skeleton",e=>{const{componentCls:t}=e,n=(0,G.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[F(n)]},e=>{const{colorFillContent:t,colorFill:n}=e,s=t,a=n;return{color:s,colorGradientEnd:a,gradientFromColor:s,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ee=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,shape:r="circle",size:u="default"}=e,{getPrefixCls:i}=o.useContext(C.E_),l=i("skeleton",t),[h,v]=E(l),f=(0,$.Z)(e,["prefixCls","className"]),A=d()(l,`${l}-element`,{[`${l}-active`]:a},n,s,v);return h(o.createElement("div",{className:A},o.createElement(y,Object.assign({prefixCls:`${l}-avatar`,shape:r,size:u},f))))},V=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r=!1,size:u="default"}=e,{getPrefixCls:i}=o.useContext(C.E_),l=i("skeleton",t),[h,v]=E(l),f=(0,$.Z)(e,["prefixCls"]),A=d()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,v);return h(o.createElement("div",{className:A},o.createElement(y,Object.assign({prefixCls:`${l}-button`,size:u},f))))};const le="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var oe=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r}=e,{getPrefixCls:u}=o.useContext(C.E_),i=u("skeleton",t),[l,h]=E(i),v=d()(i,`${i}-element`,{[`${i}-active`]:r},n,s,h);return l(o.createElement("div",{className:v},o.createElement("div",{className:d()(`${i}-image`,n),style:a},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${i}-image-svg`},o.createElement("path",{d:le,className:`${i}-image-path`})))))},re=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r,size:u="default"}=e,{getPrefixCls:i}=o.useContext(C.E_),l=i("skeleton",t),[h,v]=E(l),f=(0,$.Z)(e,["prefixCls"]),A=d()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,v);return h(o.createElement("div",{className:A},o.createElement(y,Object.assign({prefixCls:`${l}-input`,size:u},f))))},ie=g(96663),ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ce=ue,ge=g(7657),me=function(t,n){return o.createElement(ge.Z,(0,ie.Z)({},t,{ref:n,icon:ce}))},de=o.forwardRef(me),Ce=de,he=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r,children:u}=e,{getPrefixCls:i}=o.useContext(C.E_),l=i("skeleton",t),[h,v]=E(l),f=d()(l,`${l}-element`,{[`${l}-active`]:r},v,n,s),A=u!=null?u:o.createElement(Ce,null);return h(o.createElement("div",{className:f},o.createElement("div",{className:d()(`${l}-image`,n),style:a},A)))},pe=g(19127),ve=e=>{const t=i=>{const{width:l,rows:h=2}=e;if(Array.isArray(l))return l[i];if(h-1===i)return l},{prefixCls:n,className:s,style:a,rows:r}=e,u=(0,pe.Z)(Array(r)).map((i,l)=>o.createElement("li",{key:l,style:{width:t(l)}}));return o.createElement("ul",{className:d()(n,s),style:a},u)},fe=e=>{let{prefixCls:t,className:n,width:s,style:a}=e;return o.createElement("h3",{className:d()(t,n),style:Object.assign({width:s},a)})};function X(e){return e&&typeof e=="object"?e:{}}function be(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $e(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Ee(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const I=e=>{const{prefixCls:t,loading:n,className:s,rootClassName:a,style:r,children:u,avatar:i=!1,title:l=!0,paragraph:h=!0,active:v,round:f}=e,{getPrefixCls:A,direction:K,skeleton:j}=o.useContext(C.E_),b=A("skeleton",t),[M,Y]=E(b);if(n||!("loading"in e)){const _=!!i,R=!!l,L=!!h;let te;if(_){const T=Object.assign(Object.assign({prefixCls:`${b}-avatar`},be(R,L)),X(i));te=o.createElement("div",{className:`${b}-header`},o.createElement(y,Object.assign({},T)))}let ne;if(R||L){let T;if(R){const J=Object.assign(Object.assign({prefixCls:`${b}-title`},$e(_,L)),X(l));T=o.createElement(fe,Object.assign({},J))}let ae;if(L){const J=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},Ee(_,R)),X(h));ae=o.createElement(ve,Object.assign({},J))}ne=o.createElement("div",{className:`${b}-content`},T,ae)}const Ae=d()(b,{[`${b}-with-avatar`]:_,[`${b}-active`]:v,[`${b}-rtl`]:K==="rtl",[`${b}-round`]:f},j==null?void 0:j.className,s,a,Y);return M(o.createElement("div",{className:Ae,style:Object.assign(Object.assign({},j==null?void 0:j.style),r)},te,ne))}return typeof u!="undefined"?u:null};I.Button=V,I.Avatar=ee,I.Input=re,I.Image=oe,I.Node=he;var Be=I,Fe=Be}}]);