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],{77287:function(ae,H,g){g.r(H),g.d(H,{default:function(){return U}});var c=g(59301),m=g(65582),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(38147),N=g(74128),z=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,W=(d,x)=>{var B={};for(var p in d)Z.call(d,p)&&x.indexOf(p)<0&&(B[p]=d[p]);if(d!=null&&z)for(var p of z(d))x.indexOf(p)<0&&G.call(d,p)&&(B[p]=d[p]);return B},w=(d,x,B)=>new Promise((p,R)=>{var y=A=>{try{D(B.next(A))}catch(E){R(E)}},O=A=>{try{D(B.throw(A))}catch(E){R(E)}},D=A=>A.done?p(A.value):Promise.resolve(A.value).then(y,O);D((B=B.apply(d,x)).next())});const k=d=>{var x=d,{user:B}=x,p=W(x,["user"]);const R=(0,m.useIntl)(),[y,O]=(0,c.useState)(!0),[D,A]=(0,c.useState)(0),[E,ee]=(0,c.useState)([]);(0,c.useEffect)(()=>{V()},[]);const V=()=>w(void 0,null,function*(){O(!0);const S=yield(0,q.ZP)("/api/home/base_case.json",{method:"get"});S.status===0&&ee((S==null?void 0:S.cases)||[]),O(!1)}),le=[{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:y,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:()=>m.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,E.map((S,X)=>c.createElement("a",{href:S.url,target:"_blank",className:C.li,key:X},c.createElement("img",{src:`${N.Z.IMG_SERVER}${S.pic_url}`}),c.createElement("div",{className:C.des},c.createElement("h4",null,S.title),c.createElement("h6",null,S.sub_title))))))))};var U=(0,m.connect)(({user:d})=>({user:d}))(k)},61621:function(ae,H,g){g.d(H,{Z:function(){return Fe}});var c=g(92310),m=g.n(c),o=g(59301),C=g(36355),$=g(2738),N=e=>{const{prefixCls:t,className:n,style:a,size:s,shape:r}=e,u=m()({[`${t}-lg`]:s==="large",[`${t}-sm`]:s==="small"}),i=m()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),l=o.useMemo(()=>typeof s=="number"?{width:s,height:s,lineHeight:`${s}px`}:{},[s]);return o.createElement("span",{className:m()(t,u,i,n),style:Object.assign(Object.assign({},l),a)})},z=g(36237),Z=g(83116),G=g(37613);const W=new z.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),w=e=>({height:e,lineHeight:`${e}px`}),k=e=>Object.assign({width:e},w(e)),U=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:W,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),d=e=>Object.assign({width:e*5,minWidth:e*5},w(e)),x=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:a,controlHeightLG:s,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},k(a)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},k(s)),[`${t}${t}-sm`]:Object.assign({},k(r))}},B=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:a,controlHeightLG:s,controlHeightSM:r,gradientFromColor:u}=e;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u,borderRadius:n},d(t)),[`${a}-lg`]:Object.assign({},d(s)),[`${a}-sm`]:Object.assign({},d(r))}},p=e=>Object.assign({width:e},w(e)),R=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:a,borderRadiusSM:s}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:a,borderRadius:s},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%"}}},y=(e,t,n)=>{const{skeletonButtonCls:a}=e;return{[`${n}${a}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${a}-round`]:{borderRadius:t}}},O=e=>Object.assign({width:e*2,minWidth:e*2},w(e)),D=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:a,controlHeightLG:s,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:a*2,minWidth:a*2},O(a))},y(e,a,n)),{[`${n}-lg`]:Object.assign({},O(s))}),y(e,s,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},O(r))}),y(e,r,`${n}-sm`))},A=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:a,skeletonParagraphCls:s,skeletonButtonCls:r,skeletonInputCls:u,skeletonImageCls:i,controlHeight:l,controlHeightLG:h,controlHeightSM:v,gradientFromColor:f,padding:F,marginSM:Y,borderRadius:j,titleHeight:b,blockRadius:M,paragraphLiHeight:J,controlHeightXS:I,paragraphMarginTop:_}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:F,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",[`${a}`]:{width:"100%",height:b,background:f,borderRadius:M,[`+ ${s}`]:{marginBlockStart:v}},[`${s}`]:{padding:0,"> li":{width:"100%",height:J,listStyle:"none",background:f,borderRadius:M,"+ li":{marginBlockStart:I}}},[`${s}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${a}, ${s} > li`]:{borderRadius:j}}},[`${t}-with-avatar ${t}-content`]:{[`${a}`]:{marginBlockStart:Y,[`+ ${s}`]:{marginBlockStart:_}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},D(e)),x(e)),B(e)),R(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${u}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
${a},
${s} > 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[A(n)]},e=>{const{colorFillContent:t,colorFill:n}=e,a=t,s=n;return{color:a,colorGradientEnd:s,gradientFromColor:a,gradientToColor:s,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),V=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,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"]),F=m()(l,`${l}-element`,{[`${l}-active`]:s},n,a,v);return h(o.createElement("div",{className:F},o.createElement(N,Object.assign({prefixCls:`${l}-avatar`,shape:r,size:u},f))))},S=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,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"]),F=m()(l,`${l}-element`,{[`${l}-active`]:s,[`${l}-block`]:r},n,a,v);return h(o.createElement("div",{className:F},o.createElement(N,Object.assign({prefixCls:`${l}-button`,size:u},f))))};const X="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:a,style:s,active:r}=e,{getPrefixCls:u}=o.useContext(C.E_),i=u("skeleton",t),[l,h]=E(i),v=m()(i,`${i}-element`,{[`${i}-active`]:r},n,a,h);return l(o.createElement("div",{className:v},o.createElement("div",{className:m()(`${i}-image`,n),style:s},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${i}-image-svg`},o.createElement("path",{d:X,className:`${i}-image-path`})))))},re=e=>{const{prefixCls:t,className:n,rootClassName:a,active:s,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"]),F=m()(l,`${l}-element`,{[`${l}-active`]:s,[`${l}-block`]:r},n,a,v);return h(o.createElement("div",{className:F},o.createElement(N,Object.assign({prefixCls:`${l}-input`,size:u},f))))},ie=g(54476),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:a,style:s,active:r,children:u}=e,{getPrefixCls:i}=o.useContext(C.E_),l=i("skeleton",t),[h,v]=E(l),f=m()(l,`${l}-element`,{[`${l}-active`]:r},v,n,a),F=u!=null?u:o.createElement(Ce,null);return h(o.createElement("div",{className:f},o.createElement("div",{className:m()(`${l}-image`,n),style:s},F)))},pe=g(94480),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:a,style:s,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:m()(n,a),style:s},u)},fe=e=>{let{prefixCls:t,className:n,width:a,style:s}=e;return o.createElement("h3",{className:m()(t,n),style:Object.assign({width:a},s)})};function K(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 P=e=>{const{prefixCls:t,loading:n,className:a,rootClassName:s,style:r,children:u,avatar:i=!1,title:l=!0,paragraph:h=!0,active:v,round:f}=e,{getPrefixCls:F,direction:Y,skeleton:j}=o.useContext(C.E_),b=F("skeleton",t),[M,J]=E(b);if(n||!("loading"in e)){const I=!!i,_=!!l,L=!!h;let te;if(I){const T=Object.assign(Object.assign({prefixCls:`${b}-avatar`},be(_,L)),K(i));te=o.createElement("div",{className:`${b}-header`},o.createElement(N,Object.assign({},T)))}let ne;if(_||L){let T;if(_){const Q=Object.assign(Object.assign({prefixCls:`${b}-title`},$e(I,L)),K(l));T=o.createElement(fe,Object.assign({},Q))}let se;if(L){const Q=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},Ee(I,_)),K(h));se=o.createElement(ve,Object.assign({},Q))}ne=o.createElement("div",{className:`${b}-content`},T,se)}const Ae=m()(b,{[`${b}-with-avatar`]:I,[`${b}-active`]:v,[`${b}-rtl`]:Y==="rtl",[`${b}-round`]:f},j==null?void 0:j.className,a,s,J);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};P.Button=S,P.Avatar=V,P.Input=re,P.Image=oe,P.Node=he;var Be=P,Fe=Be}}]);