diff --git a/index.html b/index.html index 18982e433c..18a8a7455c 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/umi.e07f292e.js b/umi.24561270.js similarity index 99% rename from umi.e07f292e.js rename to umi.24561270.js index fdacace4ff..7cb89a7233 100644 --- a/umi.e07f292e.js +++ b/umi.24561270.js @@ -95,7 +95,7 @@ Try polyfilling it using "@formatjs/intl-displaynames" \u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002 http://j.mp/37Fkd5Q - `),vr=!1),Jn||zr(Jr()),Jn.formatMessage($e,ft)),Qn=()=>Object.keys(It)},24327:function(d,g,e){"use strict";e.d(g,{y:function(){return o}});var r=e(43418),i=e(95237),l=e(43604),c=e(59049),f=e(59301);const o=h=>new Promise((u,a)=>{if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return a("WebRTC not supported by browser");let x=new RTCPeerConnection,p=[];x.createDataChannel(""),x.createOffer().then(y=>x.setLocalDescription(y)).catch(y=>a(y)),x.onicecandidate=y=>{console.log("event:",y);const m=[];if(!y||!y.candidate){if(console.log("ips",p),p.length==0||!(0,c.t)(p[0])){const H=r.default.info({title:f.createElement(i.Z,null,f.createElement(l.Z,{flex:"1"},"\u63D0\u793A"),f.createElement(l.Z,null,f.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>H.destroy()}))),icon:null,width:500,className:"custom-modal-divider",content:f.createElement(i.Z,null,f.createElement(l.Z,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(h.ip_limit==="inner"||h.ip_bind)&&f.createElement(f.Fragment,null,f.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),f.createElement("br",null),f.createElement(Button,{onClick:showInstallWebRtcDoc,type:"link"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return a("WebRTC disabled or restricted by browser")}const G=p.filter(H=>(0,c.t)(H));return!G||!G.length?a("IP\u83B7\u53D6\u5931\u8D25"):u(G.join(""))}let b=y.candidate.candidate.split(" "),[A,k,R,S,I,M,,B,...N]=b,K=["rtp","rtpc"];if(console.log("event:",y),p.some(G=>G==I)||p.push(I),console.log(" candidate: "+A.split(":")[1]),console.log(" component: "+K[k-1]),console.log(" protocol: "+R),console.log(" priority: "+S),console.log(" ip: "+I),console.log(" port: "+M),console.log(" type: "+B),N.length){console.log("attributes: ");for(let G=0;G "+N[G]+": "+N[G+1])}}})},21692:function(d,g,e){"use strict";var r=e(59301),i=e(4977),l=e(3113),c=e(90115),f=e(39587),o=Object.defineProperty,h=Object.defineProperties,u=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,y=(k,R,S)=>R in k?o(k,R,{enumerable:!0,configurable:!0,writable:!0,value:S}):k[R]=S,m=(k,R)=>{for(var S in R||(R={}))x.call(R,S)&&y(k,S,R[S]);if(a)for(var S of a(R))p.call(R,S)&&y(k,S,R[S]);return k},b=(k,R)=>h(k,u(R));const A=({img:k,buttonProps:R={},styles:S={},customText:I,ButtonText:M,ButtonClick:B,Buttonclass:N,ButtonTwo:K,imgStyles:G,loading:H=!1,className:ae="",globalSetting:ie})=>{const ue=(0,r.useMemo)(()=>{var Y;if(k)return k;switch(Number((Y=ie==null?void 0:ie.setting)==null?void 0:Y.theme)){case f.Fy.THEMEONE:return e(56022);case f.Fy.THEMETWO:return e(58478);case f.Fy.THEMETHREE:return e(26551);case f.Fy.DEFAULT:default:return i}},[ie,k]),X=(0,r.useMemo)(()=>{var Y;switch(Number((Y=ie==null?void 0:ie.setting)==null?void 0:Y.theme)){case f.Fy.THEMETHREE:return"#03A092";case f.Fy.DEFAULT:default:return"#999"}},[ie]);return r.createElement("section",{className:`tc animated fadeIn ${ae}`,style:m({color:"#999",margin:"100px auto",visibility:H?"hidden":"visible"},S)},r.createElement("img",{src:ue,style:b(m({},G),{pointerEvents:"none",userSelect:"none"})}),r.createElement("p",{className:"mt20 font14",style:{color:X}},I||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),M&&r.createElement(l.ZP,m({className:N,onClick:B},R),M),K&&K)};g.Z=(0,c.connect)(({globalSetting:k})=>({globalSetting:k}))(A)},48909:function(d,g,e){"use strict";e.d(g,{Z:function(){return ae}});var r=e(59301),i={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},l=e(3113),c=e(54476),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},o=f,h=e(7657),u=function(ue,X){return r.createElement(h.Z,(0,c.Z)({},ue,{ref:X,icon:o}))},a=r.forwardRef(u),x=a,p=e(58466),y=e(6848),m=e(22566),b=e(6455),A=e(21692),k=e(11662),R=e(90700),S=e(59301),I=Object.defineProperty,M=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,K=(ie,ue,X)=>ue in ie?I(ie,ue,{enumerable:!0,configurable:!0,writable:!0,value:X}):ie[ue]=X,G=(ie,ue)=>{for(var X in ue||(ue={}))B.call(ue,X)&&K(ie,X,ue[X]);if(M)for(var X of M(ue))N.call(ue,X)&&K(ie,X,ue[X]);return ie},H=(ie,ue,X)=>new Promise((Y,$)=>{var se=le=>{try{J(X.next(le))}catch(Z){$(Z)}},ee=le=>{try{J(X.throw(le))}catch(Z){$(Z)}},J=le=>le.done?Y(le.value):Promise.resolve(le.value).then(se,ee);J((X=X.apply(ie,ue)).next())}),ae=({editOffice:ie="view",data:ue,theme:X,type:Y,filename:$,monacoEditor:se,className:ee,style:J,close:le,onClose:Z,hasMask:U,disabledDownload:ne,onImgDimensions:me,showNodata:we,recordInfo:Pe})=>{const[We,Fe]=(0,r.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Lt,pt]=(0,r.useState)(""),[Et,Gt]=(0,r.useState)(),Ft=window.ENV==="build"?"/react/build":"",nr=location.host.startsWith("localhost")?k.Z.PROXY_SERVER:k.Z.API_SERVER,ht=10*(1024*1024),Rt=(0,r.useRef)();ue!=null&&ue.startsWith("/api")&&Y!=="txt"&&(ue=k.Z.API_SERVER+ue);const Je=ze=>ze.substring(ze.lastIndexOf("/")+1).split(".").pop();$&&se&&(se.filename=$),(0,r.useEffect)(()=>{var ze,ye;const Oe=(ye=(ze=document.cookie)==null?void 0:ze.replace(/\s/g,""))==null?void 0:ye.split(";");Oe==null||Oe.map(Ge=>{let et=Ge.split("=");et[0]==="_educoder_session"&&pt(et[1])})},[]),(0,r.useEffect)(()=>{Y==="office"&&(ue.indexOf("bigfilescdn.")>-1||ue.indexOf("bigfiles1")>-1?Gt({url:ue,fileType:Je(ue),model:ue.indexOf("model=edit")?"edit":"view"}):ct())},[Y,ue]);const ct=()=>H(void 0,null,function*(){console.log("data:",ue);let ze=ue;ue.startsWith("http")||(ze=location.origin+ze);let ye=new URL(ze).pathname.split("/").pop();const Oe=yield(0,b.gJ)({attachment_id:ye});Oe.url=nr+Oe.url,Gt(Oe)}),at=()=>{if(ue.startsWith("http")||ue.startsWith("blob:")){Xe();return}(0,m.Nd)($||"educoder",decodeURIComponent(ue))},Xe=()=>{Pe&&(0,R.fc)({id:Pe==null?void 0:Pe.id,watch_type:1,course_id:Pe==null?void 0:Pe.course_id}),(0,m.Nd)($||"educoder",decodeURIComponent(ue))};return console.log(ue,"data"),S.createElement("div",{style:G({},J||{}),className:`${U&&i.bgBlack} ${Y?i.wrp:"hide"}`},le&&S.createElement("div",{className:i.close,ref:Rt},!!me&&S.createElement(y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Rt.current},S.createElement("span",{onClick:()=>{Z(),me()}},S.createElement("i",{className:"icon-yulanpizhu"}))),!ne&&S.createElement(y.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Rt.current},S.createElement("span",{onClick:Xe},S.createElement("i",{className:"icon-quxiaozhiding"}))),S.createElement(y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Rt.current},S.createElement("span",{className:"",onClick:Z},S.createElement("i",{className:"icon-guanbi1"})))),S.createElement("div",{className:`${i[ee]} ${ee} ${i.monaco} ${Y==="txt"?"show":"hide"}`},Y==="txt"&&S.createElement(S.Fragment,null,S.createElement(p.ZP,G({},se)))),Y==="audio"&&S.createElement("audio",{src:(ue==null?void 0:ue.indexOf("http"))>-1||ue!=null&&ue.startsWith("/api")?ue:`data:image/png;base64,${ue}`,autoPlay:!0}),Y==="video"&&S.createElement(S.Fragment,null,(ue==null?void 0:ue.indexOf("http"))>-1||ue!=null&&ue.startsWith("/api")?S.createElement("video",{controls:!0,src:`${ue}`,autoPlay:!0}):S.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ue}`,autoPlay:!0})),Y==="office"&&Et&&S.createElement("iframe",{src:`${Ft}/office.html?key=${Et.key}&url=${btoa(Et.url)}&callbackUrl=${nr+(Et.callbackUrl||"")}&fileType=${Et.fileType}&title=${Et.title||""}&model=${ie}&officeServer=${k.Z.ONLYOFFICE}&disabledDownload=${!!ne}`}),Y==="html"&&S.createElement("iframe",{src:ue+"&disposition=inline"}),Y==="pdf"&&S.createElement("iframe",{src:`${Ft}/js/pdfview/index.html?filename=${$||"educoder.pdf"}&url=${encodeURIComponent(ue)}&disabledDownload=${!!ne}`}),Y==="image"&&S.createElement("img",{src:(ue==null?void 0:ue.indexOf("http"))>-1||ue!=null&&ue.startsWith("/api")?ue:`data:image/png;base64,${ue}`}),(Y==="other"||Y==="download")&&S.createElement(S.Fragment,null,we?S.createElement(A.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:S.createElement(l.ZP,{icon:S.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:at,disabled:ne},"\u4E0B\u8F7D")}):S.createElement(l.ZP,{type:"primary",size:"middle",onClick:at,disabled:ne},S.createElement(x,null),"\u70B9\u51FB\u4E0B\u8F7D")),Y==="flowChart"&&S.createElement("div",{className:"embed"},S.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ue||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},9200:function(d,g,e){"use strict";e.d(g,{z:function(){return ie},Z:function(){return ue}});var r=e(59301),i=e(10939),l=e(63295),c=e(64018),f=e(16471),o=e(11662),h=e(22566),u=e(15342),a=e(81327),x=e(3113),p=e(1012),y=e(48909),m=e(59301),A=({html:X})=>{const Y=(0,r.useRef)(null),$=(0,r.useRef)(null),se=`.markdown-body p { + `),vr=!1),Jn||zr(Jr()),Jn.formatMessage($e,ft)),Qn=()=>Object.keys(It)},24327:function(d,g,e){"use strict";e.d(g,{y:function(){return o}});var r=e(43418),i=e(95237),l=e(43604),c=e(59049),f=e(59301);const o=h=>new Promise((u,a)=>{if(window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,typeof window.RTCPeerConnection=="undefined")return a("WebRTC not supported by browser");let x=new RTCPeerConnection,p=[];x.createDataChannel(""),x.createOffer().then(y=>x.setLocalDescription(y)).catch(y=>a(y)),x.onicecandidate=y=>{console.log("event:",y);const m=[];if(!y||!y.candidate){if(console.log("ips",p),p.length==0||!(0,c.t)(p[0])){const H=r.default.info({title:f.createElement(i.Z,null,f.createElement(l.Z,{flex:"1"},"\u63D0\u793A"),f.createElement(l.Z,null,f.createElement("span",{className:"iconfont icon-yiguanbi1 current c-grey-c",onClick:()=>H.destroy()}))),icon:null,width:500,className:"custom-modal-divider",content:f.createElement(i.Z,null,f.createElement(l.Z,null,"\u5F53\u524D\u8003\u8BD5\u5DF2\u542F\u7528\u9650\u5236\u8003\u8BD5\u8BBF\u95EEIP\uFF08\u9650\u5236\u516C\u5171IP+\u5185\u7F51IP\uFF09\u3002",(h.ip_limit==="inner"||h.ip_bind)&&f.createElement(f.Fragment,null,f.createElement("span",{className:"c-red"},"\uFF08\u53EA\u5141\u8BB8\u5728Chrome\u8C37\u6B4C\u6D4F\u89C8\u5668\u4F5C\u7B54\uFF0C\u5E76\u4E14\u9700\u8981\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6\uFF09"),f.createElement("br",null),f.createElement(Button,{onClick:showInstallWebRtcDoc,type:"link"},"\u5982\u4F55\u5B89\u88C5WebRTC Leak Prevent\u63D2\u4EF6?"))))});return a("WebRTC disabled or restricted by browser")}const G=p.filter(H=>(0,c.t)(H));return!G||!G.length?a("IP\u83B7\u53D6\u5931\u8D25"):u(G.join(""))}let b=y.candidate.candidate.split(" "),[A,k,R,S,I,M,,B,...N]=b,K=["rtp","rtpc"];if(console.log("event:",y),p.some(G=>G==I)||p.push(I),console.log(" candidate: "+A.split(":")[1]),console.log(" component: "+K[k-1]),console.log(" protocol: "+R),console.log(" priority: "+S),console.log(" ip: "+I),console.log(" port: "+M),console.log(" type: "+B),N.length){console.log("attributes: ");for(let G=0;G "+N[G]+": "+N[G+1])}}})},21692:function(d,g,e){"use strict";var r=e(59301),i=e(4977),l=e(3113),c=e(90115),f=e(39587),o=Object.defineProperty,h=Object.defineProperties,u=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,y=(k,R,S)=>R in k?o(k,R,{enumerable:!0,configurable:!0,writable:!0,value:S}):k[R]=S,m=(k,R)=>{for(var S in R||(R={}))x.call(R,S)&&y(k,S,R[S]);if(a)for(var S of a(R))p.call(R,S)&&y(k,S,R[S]);return k},b=(k,R)=>h(k,u(R));const A=({img:k,buttonProps:R={},styles:S={},customText:I,ButtonText:M,ButtonClick:B,Buttonclass:N,ButtonTwo:K,imgStyles:G,loading:H=!1,className:ae="",globalSetting:ie})=>{const ue=(0,r.useMemo)(()=>{var Y;if(k)return k;switch(Number((Y=ie==null?void 0:ie.setting)==null?void 0:Y.theme)){case f.Fy.THEMEONE:return e(56022);case f.Fy.THEMETWO:return e(58478);case f.Fy.THEMETHREE:return e(26551);case f.Fy.DEFAULT:default:return i}},[ie,k]),X=(0,r.useMemo)(()=>{var Y;switch(Number((Y=ie==null?void 0:ie.setting)==null?void 0:Y.theme)){case f.Fy.THEMETHREE:return"#03A092";case f.Fy.DEFAULT:default:return"#999"}},[ie]);return r.createElement("section",{className:`tc animated fadeIn ${ae}`,style:m({color:"#999",margin:"100px auto",visibility:H?"hidden":"visible"},S)},r.createElement("img",{src:ue,style:b(m({},G),{pointerEvents:"none",userSelect:"none"})}),r.createElement("p",{className:"mt20 font14",style:{color:X}},I||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),M&&r.createElement(l.ZP,m({className:N,onClick:B},R),M),K&&K)};g.Z=(0,c.connect)(({globalSetting:k})=>({globalSetting:k}))(A)},48909:function(d,g,e){"use strict";e.d(g,{Z:function(){return ae}});var r=e(59301),i={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},l=e(3113),c=e(54476),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},o=f,h=e(7657),u=function(ue,X){return r.createElement(h.Z,(0,c.Z)({},ue,{ref:X,icon:o}))},a=r.forwardRef(u),x=a,p=e(58466),y=e(6848),m=e(22566),b=e(6455),A=e(21692),k=e(11662),R=e(90700),S=e(59301),I=Object.defineProperty,M=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,K=(ie,ue,X)=>ue in ie?I(ie,ue,{enumerable:!0,configurable:!0,writable:!0,value:X}):ie[ue]=X,G=(ie,ue)=>{for(var X in ue||(ue={}))B.call(ue,X)&&K(ie,X,ue[X]);if(M)for(var X of M(ue))N.call(ue,X)&&K(ie,X,ue[X]);return ie},H=(ie,ue,X)=>new Promise((Y,$)=>{var se=le=>{try{J(X.next(le))}catch(Z){$(Z)}},ee=le=>{try{J(X.throw(le))}catch(Z){$(Z)}},J=le=>le.done?Y(le.value):Promise.resolve(le.value).then(se,ee);J((X=X.apply(ie,ue)).next())}),ae=({editOffice:ie="view",data:ue,theme:X,type:Y,filename:$,monacoEditor:se,className:ee,style:J,close:le,onClose:Z,hasMask:U,disabledDownload:ne,onImgDimensions:me,showNodata:we,recordInfo:Pe})=>{const[We,Fe]=(0,r.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Lt,pt]=(0,r.useState)(""),[Et,Gt]=(0,r.useState)(),Ft=window.ENV==="build"?"/react/build":"",nr=location.host.startsWith("localhost")?k.Z.PROXY_SERVER:k.Z.API_SERVER,ht=10*(1024*1024),Rt=(0,r.useRef)();ue!=null&&ue.startsWith("/api")&&Y!=="txt"&&(ue=k.Z.API_SERVER+ue);const Je=ze=>ze.substring(ze.lastIndexOf("/")+1).split(".").pop();$&&se&&(se.filename=$),(0,r.useEffect)(()=>{var ze,ye;const Oe=(ye=(ze=document.cookie)==null?void 0:ze.replace(/\s/g,""))==null?void 0:ye.split(";");Oe==null||Oe.map(Ge=>{let et=Ge.split("=");et[0]==="_educoder_session"&&pt(et[1])})},[]),(0,r.useEffect)(()=>{Y==="office"&&(ue.indexOf("bigfilescdn.")>-1||ue.indexOf("bigfiles1")>-1?Gt({url:ue,fileType:Je(ue),model:ue.indexOf("model=edit")?"edit":"view"}):ct())},[Y,ue]);const ct=()=>H(void 0,null,function*(){console.log("data:",ue);let ze=ue;ue.startsWith("http")||(ze=location.origin+ze);let ye=new URL(ze).pathname.split("/").pop();const Oe=yield(0,b.gJ)({attachment_id:ye});Oe.url=nr+Oe.url,Gt(Oe)}),at=()=>{if(ue.startsWith("http")||ue.startsWith("blob:")){Xe();return}(0,m.Nd)($||"educoder",decodeURIComponent(ue))},Xe=()=>{Pe&&(0,R.fc)({id:Pe==null?void 0:Pe.id,watch_type:1,course_id:Pe==null?void 0:Pe.course_id}),(0,m.Nd)($||"educoder",decodeURIComponent(ue))};return console.log(ue,"data"),S.createElement("div",{style:G({},J||{}),className:`${U&&i.bgBlack} ${Y?i.wrp:"hide"}`},le&&S.createElement("div",{className:i.close,ref:Rt},!!me&&S.createElement(y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Rt.current},S.createElement("span",{onClick:()=>{Z(),me()}},S.createElement("i",{className:"icon-yulanpizhu"}))),!ne&&S.createElement(y.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Rt.current},S.createElement("span",{onClick:Xe},S.createElement("i",{className:"icon-quxiaozhiding"}))),S.createElement(y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Rt.current},S.createElement("span",{className:"",onClick:Z},S.createElement("i",{className:"icon-guanbi1"})))),S.createElement("div",{className:`${i[ee]} ${ee} ${i.monaco} ${Y==="txt"?"show":"hide"}`},Y==="txt"&&S.createElement(S.Fragment,null,S.createElement(p.ZP,G({},se)))),Y==="audio"&&S.createElement("audio",{src:(ue==null?void 0:ue.indexOf("http"))>-1||ue!=null&&ue.startsWith("/api")?ue:`data:image/png;base64,${ue}`,autoPlay:!0}),Y==="video"&&S.createElement(S.Fragment,null,(ue==null?void 0:ue.indexOf("http"))>-1||ue!=null&&ue.startsWith("/api")?S.createElement("video",{controls:!0,src:`${ue}`,autoPlay:!0}):S.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ue}`,autoPlay:!0})),Y==="office"&&Et&&S.createElement("iframe",{src:`${Ft}/office.html?key=${Et.key}&url=${btoa(Et.url)}&callbackUrl=${nr+(Et.callbackUrl||"")}&fileType=${Et.fileType}&title=${Et.title||""}&model=${ie}&officeServer=${k.Z.ONLYOFFICE}&disabledDownload=${!!ne}`}),Y==="html"&&S.createElement("iframe",{src:ue+"&disposition=inline"}),Y==="pdf"&&S.createElement("iframe",{src:`${Ft}/js/pdfview/index.html?filename=${$||"educoder.pdf"}&url=${encodeURIComponent(ue)}&disabledDownload=${!!ne}`}),Y==="image"&&S.createElement("img",{src:(ue==null?void 0:ue.indexOf("http"))>-1||ue!=null&&ue.startsWith("/api")?ue:`data:image/png;base64,${ue}`}),(Y==="other"||Y==="download")&&S.createElement(S.Fragment,null,we?S.createElement(A.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:S.createElement(l.ZP,{icon:S.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:at,disabled:ne},"\u4E0B\u8F7D")}):S.createElement(l.ZP,{type:"primary",size:"middle",onClick:at,disabled:ne},S.createElement(x,null),"\u70B9\u51FB\u4E0B\u8F7D")),Y==="flowChart"&&S.createElement("div",{className:"embed"},S.createElement("iframe",{src:`${Ft}/drawio/src/main/webapp/viewer.html?id=${ue||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},9200:function(d,g,e){"use strict";e.d(g,{z:function(){return ie},Z:function(){return ue}});var r=e(59301),i=e(10939),l=e(63295),c=e(64018),f=e(16471),o=e(11662),h=e(22566),u=e(15342),a=e(81327),x=e(3113),p=e(1012),y=e(48909),m=e(59301),A=({html:X})=>{const Y=(0,r.useRef)(null),$=(0,r.useRef)(null),se=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap;