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__Lists__LiveV...

1 line
27 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[67878],{77984:function(e,t,n){"use strict";var o=n(82242),s=n.n(o),a=(n(59301),n(93314)),r=n(3113),l=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,o=void 0===n?{}:n,i=e.styles,c=void 0===i?{}:i,d=e.customText,u=e.ButtonText,p=e.ButtonClick,m=e.Buttonclass,f=e.ButtonTwo,y=e.imgStyles,h=e.loading,x=void 0!==h&&h;return(0,l.jsxs)("section",{className:"tc animated fadeIn",style:s()(s()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),c),children:[(0,l.jsx)("img",{src:t||a,style:s()(s()({},y),{},{pointerEvents:"none",userSelect:"none"})}),(0,l.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,l.jsx)(r.ZP,s()(s()({className:m,onClick:p},o),{},{children:u})),f&&f]})}},15371:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var o=n(82242),s=n.n(o),a=n(79800),r=n.n(a),l=n(39647),i=n.n(l),c=n(59301),d=n(46681),u=n(20834),p=n(44e3),m=n(95237),f=n(43604),y=n(3113),h=n(53864),x=n(64330),j=n(41282),v=n(77984),g=n(7557),b=n.n(g),C=n(41498),Z=n.n(C),w=n(43418),O=n(8591),_=n(90694),N=n(37712),k=(0,d.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,d.useParams)(),s=t.actionTabs;return o.id=o.coursesId,(0,N.jsx)(w.Z,{centered:!0,title:"提示",open:"删除"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:Z()(b()().mark((function e(){return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/live_links/".concat(s.data.id,".json"),{method:"delete"});case 2:0===e.sent.status&&(O.ZP.success("删除成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getLiveVideoList",payload:{id:o.id}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,N.jsx)("p",{children:"是否确认删除?"})})})),T=n(85573),P=n.n(T),L=n(98228),S=n(57809),E=n(78241),D=n(98135),I=n(84291),A=n(99232),H=n.n(A),z={form:"form___eXJya"},B=(L.Z.TreeNode,S.default.Option),M=(0,d.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),o=(0,d.useParams)();o.id=o.coursesId;t.detailAttendancesDetail,t.actionTabs;var a=E.Z.useForm(),l=r()(a,1)[0],i=(0,c.useState)("直播链接"),u=r()(i,2),p=u[0],y=u[1];return(0,N.jsx)(w.Z,{centered:!0,title:"添加直播",open:"添加直播"===t.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:Z()(b()().mark((function e(){var t;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=s(),e.t1={},e.next=4,l.validateFields();case 4:return e.t2=e.sent,t=(0,e.t0)(e.t1,e.t2),e.next=8,(0,_.ZP)("/api/courses/".concat(o.id,"/live_links.json"),{method:"post",body:s()({},t)});case 8:0===e.sent.status&&((0,j.L9)(["教学课堂","直播","添加直播"]),O.ZP.success("添加成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getLiveVideoList",payload:{id:o.id}}));case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,N.jsxs)(E.Z,{form:l,initialValues:P()(P()({},"platform","腾讯课堂"),"link",""),children:[(0,N.jsx)(E.Z.Item,{label:"直播课程",name:"course_name",rules:[{required:!0,message:"请输入课程名称"}],children:(0,N.jsx)(D.Z,{placeholder:"请输入课程名称",maxLength:60})}),(0,N.jsx)(E.Z.Item,{label:"直播平台",name:"platform",rules:[{required:!0,message:"请选择直播平台!"}],children:(0,N.jsxs)(S.default,{showSearch:!0,placeholder:"请选择平台",defaultValue:"腾讯课堂",onChange:function(e){y("威佰通"===e||"zoom"===e?"会议号":"直播链接")},optionFilterProp:"children",children:[(0,N.jsx)(B,{value:"腾讯课堂",children:"腾讯课堂"}),(0,N.jsx)(B,{value:"斗鱼直播",children:"斗鱼直播"}),(0,N.jsx)(B,{value:"Bilibili",children:"Bilibili"}),(0,N.jsx)(B,{value:"威佰通",children:"威佰通"}),(0,N.jsx)(B,{value:"zoom",children:"zoom"})]})}),(0,N.jsx)(E.Z.Item,{label:p,name:"url",children:(0,N.jsx)(D.Z,{placeholder:"请输入第三方直播链接 如:腾讯课堂播放链接等"})}),(0,N.jsxs)(m.Z,{justify:"space-between",children:[(0,N.jsx)(f.Z,{span:11,children:(0,N.jsx)(E.Z.Item,{label:"开播时间",name:"live_time",children:(0,N.jsx)(I.default,{disabledDate:function(e){return e&&e<H()().startOf("day")},format:"YYYY-MM-DD HH:mm",minuteStep:30,placeholder:"如2020/02/02 12:00",defaultValue:H()(H()(new Date((0,j.qd)())).add(7,"days").format("YYYY-MM-DD HH:mm")),showTime:{format:"HH:mm",defaultValue:H()((0,j.U6)(),"HH:mm")}})})}),(0,N.jsx)(f.Z,{span:11,className:z.timer,children:(0,N.jsxs)(m.Z,{justify:"center",align:"middle",style:{flexFlow:"row"},children:[(0,N.jsx)(f.Z,{flex:8,children:(0,N.jsx)(E.Z.Item,{label:"直播预计时长",name:"duration",children:(0,N.jsx)(D.Z,{placeholder:"请输入直播时长"})})}),(0,N.jsx)(f.Z,{flex:"40px",children:(0,N.jsx)("span",{className:"ml5",children:"分钟"})})]})})]}),(0,N.jsx)(E.Z.Item,{label:"直播说明",name:"description",children:(0,N.jsx)(D.Z.TextArea,{placeholder:"可在此介绍开播具体事项,如开播时间安排等。"})})]})})})),R=n(56102),V=(L.Z.TreeNode,S.default.Option,(0,d.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),o=(0,d.useParams)();o.id=o.coursesId;t.detailAttendancesDetail;var s=t.actionTabs,a=E.Z.useForm();r()(a,1)[0];return(0,N.jsx)(w.Z,{centered:!0,title:"提示",open:"进入"===t.actionTabs.key,okText:"完成",cancelText:"取消",width:700,bodyStyle:{minHeight:200},onOk:Z()(b()().mark((function e(){return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:s.data&&(0,N.jsxs)("div",{style:{margin:"0 80px"},children:[(0,N.jsx)(m.Z,{justify:"center",align:"middle",className:"mt40",children:(0,N.jsxs)(f.Z,{className:"font16 tc",children:["打开",s.data.platform,"客户端,输入直播链接即可进入直播"]})}),(0,N.jsx)(m.Z,{className:"mt20",justify:"center",children:(0,N.jsxs)(f.Z,{className:"tc",flex:1,children:["直播链接:",s.data.url&&""!==s.data.url?s.data.url:(0,N.jsx)("span",{className:"c-red",children:"等待开播"}),s.data.url&&""!==s.data.url&&(0,N.jsx)(R.CopyToClipboard,{text:s.data.url,onCopy:function(){return O.ZP.success("复制成功")},children:(0,N.jsx)("span",{className:"c-blue ml30",children:"复制直播链接"})})]})})]})})}))),Y=(L.Z.TreeNode,S.default.Option),F=(0,d.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),o=(0,d.useParams)();o.id=o.coursesId;t.detailAttendancesDetail;var a=t.actionTabs,l=E.Z.useForm(),i=r()(l,1)[0];return(0,c.useEffect)((function(){var e,t,n,o,s,r,l;i.setFieldsValue({platform:null==a||null===(e=a.data)||void 0===e?void 0:e.platform,course_name:null==a||null===(t=a.data)||void 0===t?void 0:t.course_name,live_time:null!=a&&null!==(n=a.data)&&void 0!==n&&n.live_time?H()(null==a||null===(o=a.data)||void 0===o?void 0:o.live_time):null,url:null==a||null===(s=a.data)||void 0===s?void 0:s.url,duration:null==a||null===(r=a.data)||void 0===r?void 0:r.duration,description:null==a||null===(l=a.data)||void 0===l?void 0:l.description})}),[a]),(0,N.jsx)(w.Z,{centered:!0,title:"编辑直播",open:"编辑"===t.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:Z()(b()().mark((function e(){var t;return b()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=s(),e.t1={},e.next=4,i.validateFields();case 4:return e.t2=e.sent,(t=(0,e.t0)(e.t1,e.t2)).live_time&&(t.live_time=H()(t.live_time).format("YYYY-MM-DD HH:mm")),e.next=9,(0,_.ZP)("/api/live_links/".concat(a.data.id,".json"),{method:"put",body:s()({},t)});case 9:0===e.sent.status&&(O.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getLiveVideoList",payload:{id:o.id}}));case 11:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:a.data&&(0,N.jsxs)(E.Z,{form:i,initialValues:P()(P()(P()(P()(P()(P()({},"platform",a.data.platform),"course_name",a.data.course_name),"live_time",a.data.live_time?H()(a.data.live_time):null),"url",a.data.url),"duration",a.data.duration),"description",a.data.description),children:[(0,N.jsx)(E.Z.Item,{label:"直播课程",name:"course_name",rules:[{required:!0,message:"请输入!"}],children:(0,N.jsx)(D.Z,{maxLength:60})}),(0,N.jsxs)(E.Z.Item,{label:"直播平台",name:"platform",rules:[{required:!0,message:"请选择平台!"}],children:[(0,N.jsxs)(S.default,{showSearch:!0,style:{width:200},placeholder:"请选择平台",defaultValue:"腾讯课堂",optionFilterProp:"children",children:[(0,N.jsx)(Y,{value:"腾讯课堂",children:"腾讯课堂"}),(0,N.jsx)(Y,{value:"斗鱼直播",children:"斗鱼直播"}),(0,N.jsx)(Y,{value:"Bilibili",children:"Bilibili"}),(0,N.jsx)(Y,{value:"威佰通",children:"威佰通"}),(0,N.jsx)(Y,{value:"zoom",children:"zoom"})]}),","]}),(0,N.jsxs)(m.Z,{justify:"space-between",children:[(0,N.jsx)(f.Z,{span:11,children:(0,N.jsx)(E.Z.Item,{label:"开播时间",name:"live_time",children:(0,N.jsx)(I.default,{disabledDate:function(e){return e&&e<H()().startOf("day")},format:"YYYY-MM-DD HH:mm",minuteStep:30,showTime:{format:"HH:mm",defaultValue:H()((0,j.U6)(),"HH:mm")}})})}),(0,N.jsx)(f.Z,{span:11,className:z.timer,children:(0,N.jsxs)(m.Z,{justify:"center",align:"middle",style:{flexFlow:"row"},children:[(0,N.jsx)(f.Z,{flex:8,children:(0,N.jsx)(E.Z.Item,{label:"直播预计时长",name:"duration",children:(0,N.jsx)(D.Z,{})})}),(0,N.jsx)(f.Z,{flex:"40px",children:(0,N.jsx)("span",{className:"ml5",children:"分钟"})})]})})]}),(0,N.jsx)(E.Z.Item,{label:"会议号",name:"url",rules:[{required:!0,message:"请选择平台!"}],children:(0,N.jsx)(D.Z,{})}),(0,N.jsx)(E.Z.Item,{label:"直播说明",name:"description",children:(0,N.jsx)(D.Z.TextArea,{placeholder:"可在此介绍开播具体事项,如开播时间安排等。"})})]})})})),$=n(58520),U="card___qCDxO",q="supportPlatform___gN3jm",G=n(74343),J=["classroomList","globalSetting","loading","dispatch"],K=(u.Z.SubMenu,p.Z.Content,p.Z.Sider,(0,d.connect)((function(e){var t=e.classroomList,n=e.loading;return{classroomList:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.classroomList,n=(e.globalSetting,e.loading,e.dispatch),o=(i()(e,J),(0,c.useState)(s()({},(0,d.useParams)()))),a=r()(o,2),l=a[0],u=(a[1],(0,d.useLocation)(),t.detailLiveVideoList),p=(0,c.useState)({}),g=r()(p,2);g[0],g[1];l.id=l.coursesId,l.limit=15,0!=l.categoryId&&(l.category_id=l.categoryId),(0,c.useEffect)((function(){n({type:"classroomList/getLiveVideoList",payload:s()({},l)})}),[l.categoryId]),(0,c.useEffect)((function(){"目录重命名成功"===t.actionTabs.key&&n({type:"classroomList/getLiveVideoList",payload:s()({},l)})}),[t.actionTabs.key]);var b=[{name:"视频",id:"all",total:null==u?void 0:u.videos_count},{name:"直播",id:1,total:null==u?void 0:u.lives_count}];return(0,N.jsxs)("section",{children:[(0,N.jsx)($.Z,{isLoading:!1,tabDataSource:b,isAdmin:(0,x.GJ)(),onTabMenuClick:function(e){"all"==e.key?d.history.push("/classrooms/".concat(l.id,"/video")):d.history.push("/classrooms/".concat(l.id,"/live_video"))},defaultSelectedKeys:["1"],showControlButton:(0,x.GJ)(),buttonText:"添加直播",onButtonClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"添加直播",params:l}})}}),(0,N.jsxs)("aside",{className:q,children:[(0,N.jsx)("h1",{children:"EduCoder支持所有第三方直播平台特别推荐"}),(0,N.jsxs)("div",{children:[(0,N.jsxs)("dl",{children:[(0,N.jsxs)("dt",{children:[(0,N.jsx)("img",{src:G.d6}),"腾讯课堂"]}),(0,N.jsx)("dd",{children:(0,N.jsx)("a",{href:"/files/tencent_manual.pdf",target:"go-to",children:"(简明手册)"})})]}),(0,N.jsxs)("dl",{children:[(0,N.jsxs)("dt",{children:[(0,N.jsx)("img",{src:G.AG})," 哔哩哔哩"]}),(0,N.jsx)("dd",{children:(0,N.jsx)("a",{href:"https://www.bilibili.com/blackboard/live/broadcast-intro.html#/",target:"go-to",children:"(简明手册)"})})]}),(0,N.jsxs)("dl",{children:[(0,N.jsxs)("dt",{children:[(0,N.jsx)("img",{src:G.BO})," 斗鱼"]}),(0,N.jsx)("dd",{children:(0,N.jsx)("a",{href:"https://www.douyu.com/special/guide/anchor",target:"go-to",children:"(简明手册)"})})]}),(0,N.jsxs)("dl",{children:[(0,N.jsxs)("dt",{children:[(0,N.jsx)("img",{src:G.j1}),"威佰通"]}),(0,N.jsx)("dd",{children:(0,N.jsx)("a",{href:"https://www.educoder.net/forums/3734",target:"go-to",children:"(简明手册)"})})]}),(0,N.jsxs)("dl",{children:[(0,N.jsxs)("dt",{children:[(0,N.jsx)("img",{src:G.g4})," zoom"]}),(0,N.jsx)("dd",{children:(0,N.jsx)("a",{href:"https://support.zoom.us/hc/zh-cn/articles/201362033-Windows%E5%92%8CMAC%E5%85%A5%E9%97%A8%E6%8C%87%E5%8D%97",target:"go-to",children:"(简明手册)"})})]})]})]}),0===(null==u?void 0:u.lives_count)&&(0,N.jsx)(v.Z,{}),(0,N.jsx)("div",{className:U,children:u.lives&&u.lives.map((function(e,t){return(0,N.jsxs)(m.Z,{children:[(0,N.jsxs)(f.Z,{span:24,children:[e.course_name,(0,N.jsx)(j.VV,{status:[e.on_status?"已开播":"未开播"]})]}),(0,N.jsx)(f.Z,{span:24,children:(0,N.jsxs)(m.Z,{children:[(0,N.jsx)(f.Z,{flex:1,children:e.description}),(0,N.jsx)(f.Z,{children:(0,N.jsx)(y.ZP,{style:{padding:"0 20px"},size:"middle",type:"primary",onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"进入",params:l,data:e}})},children:"进入"})})]})}),(0,N.jsx)(f.Z,{span:24,children:(0,N.jsxs)(m.Z,{className:"c-light-black",children:[(0,N.jsxs)(f.Z,{flex:1,className:"font12",children:[(0,N.jsxs)("span",{children:[(0,N.jsx)("img",{src:"".concat(e.author_img),alt:"",className:"mr20"}),e.author_name]}),e.platform&&(0,N.jsxs)("span",{className:"ml40",children:["直播平台:",e.platform]}),e.live_time&&(0,N.jsxs)("span",{className:"ml40",children:["开播时间:",e.live_time]}),e.duration&&(0,N.jsxs)("span",{className:"ml40",children:["直播预计时长:",e.duration,"分钟"]})]}),(0,x.GJ)()&&(0,N.jsxs)(f.Z,{children:[(0,N.jsx)("span",{style:{cursor:"pointer"},onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"编辑",params:l,data:e}})},children:"编辑"}),(0,N.jsx)("span",{style:{cursor:"pointer"},className:"ml25",onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"删除",params:l,data:e}})},children:"删除"})]})]})})]})}))}),(0,N.jsx)("aside",{className:"tc mb50 mt30",children:(0,N.jsx)(h.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){l.page=e,n({type:"classroomList/getLiveVideoList",payload:s()({},l)})},pageSize:15,current:l.page||1,defaultCurrent:1,total:u.total_count})}),(0,N.jsx)(k,{}),(0,N.jsx)(F,{}),(0,N.jsx)(M,{}),(0,N.jsx)(V,{})]})})))},58520:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});n(59301);var o=n(95237),s=n(43604),a=n(20834),r=n(38854),l={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI"},i=n(46681),c=n(37712),d=function(e){var t=e.isLoading,n=e.addText,d=e.tabDataSource,u=e.isAdmin,p=e.dispatch,m=e.type,f=e.isExercise,y=e.defaultSelectedKeys,h=e.onTabMenuClick,x=e.getDropdownMenu,j=e.showControlButton,v=e.buttonText,g=e.buttonIcon,b=void 0===g?"icon-tianjiadaohang":g,C=e.extraNode,Z=e.onButtonClick,w=void 0===Z?function(){}:Z,O=(0,i.useParams)();return(0,c.jsx)("div",{className:l.tabMenuContainer,children:(0,c.jsxs)(o.Z,{children:[(0,c.jsx)(s.Z,{flex:"1",children:(0,c.jsx)(a.Z,{onSelect:function(e){return t?{}:h(e)},mode:"horizontal",selectedKeys:y,children:d.map((function(e){return(0,c.jsxs)(a.Z.Item,{children:[(0,c.jsx)("span",{className:"c-grey-666",children:e.name}),void 0!==e.total&&u&&(0,c.jsx)("span",{className:"c-grey-999 ml20",children:e.total||0})]},"number"==typeof e.index?e.index:e.id)}))})}),u&&(0,c.jsxs)(s.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[f&&(0,c.jsx)(r.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,c.jsxs)(a.Z,{children:[(0,c.jsx)(a.Z.Item,{onClick:function(){p({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:m,exportType:"exercise",category_id:O.categoryId}})},children:"学生成绩"},1),(0,c.jsx)(a.Z.Item,{onClick:function(){i.history.push("/classrooms/".concat(null==O?void 0:O.coursesId,"/exportlist/exercise_score,export_exercise_users"))},children:"历史导出"},3)]})},children:(0,c.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,c.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,c.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),(0,c.jsxs)("div",{className:l.control,children:[(0,c.jsx)("div",{className:l.extra,children:C}),j&&(0,c.jsxs)("span",{onClick:w,style:{cursor:"pointer"},className:l.selectBtn,children:[(0,c.jsx)("span",{children:(0,c.jsx)("i",{className:"iconfont ".concat(b)})}),(0,c.jsx)("span",{children:v})]}),!!x&&(0,c.jsx)(r.Z,{className:"ml10",dropdownRender:x,children:(0,c.jsxs)("span",{className:l.selectBtn,children:[(0,c.jsx)("span",{children:(0,c.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,c.jsx)("span",{children:n||"创建试卷"})]})})]})]})]})})}},38854:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var o=n(91857),s=n(92310),a=n.n(s),r=n(59301),l=n(75197),i=n(3113),c=n(36355),d=n(81327),u=n(33234),p=n(47211),m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]])}return n};const f=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:s}=r.useContext(c.E_),{prefixCls:f,type:y="default",danger:h,disabled:x,loading:j,onClick:v,htmlType:g,children:b,className:C,menu:Z,arrow:w,autoFocus:O,overlay:_,trigger:N,align:k,open:T,onOpenChange:P,placement:L,getPopupContainer:S,href:E,icon:D=r.createElement(l.Z,null),title:I,buttonsRender:A=(e=>e),mouseEnterDelay:H,mouseLeaveDelay:z,overlayClassName:B,overlayStyle:M,destroyPopupOnHide:R,dropdownRender:V}=e,Y=m(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),F=n("dropdown",f),$=`${F}-button`,[U,q]=(0,p.Z)(F),G={menu:Z,arrow:w,autoFocus:O,align:k,disabled:x,trigger:x?[]:N,onOpenChange:P,getPopupContainer:S||t,mouseEnterDelay:H,mouseLeaveDelay:z,overlayClassName:B,overlayStyle:M,destroyPopupOnHide:R,dropdownRender:V},{compactSize:J,compactItemClassnames:K}=(0,u.ri)(F,s),W=a()($,K,C,q);"overlay"in e&&(G.overlay=_),"open"in e&&(G.open=T),G.placement="placement"in e?L:"rtl"===s?"bottomLeft":"bottomRight";const X=r.createElement(i.ZP,{type:y,danger:h,disabled:x,loading:j,onClick:v,htmlType:g,href:E,title:I},b),Q=r.createElement(i.ZP,{type:y,danger:h,icon:D}),[ee,te]=A([X,Q]);return U(r.createElement(d.Z.Compact,Object.assign({className:W,size:J,block:!0},Y),ee,r.createElement(o.Z,Object.assign({},G),te)))};f.__ANT_BUTTON=!0;var y=f;const h=o.Z;h.Button=y;var x=h},44e3:function(e,t,n){"use strict";var o=n(84966),s=n(10711);const a=o.ZP;a.Header=o.h4,a.Footer=o.$_,a.Content=o.VY,a.Sider=s.Z,t.Z=a},81327:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var o=n(59301),s=n(92310),a=n.n(s),r=n(29541),l=n(36355),i=n(33234);const c=o.createContext({latestIndex:0}),d=c.Provider;var u=e=>{let{className:t,index:n,children:s,split:a,style:r}=e;const{latestIndex:l}=o.useContext(c);return null==s?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:r},s),n<l&&a&&o.createElement("span",{className:`${t}-split`},a))},p=n(2856);function m(e){return["small","middle","large"].includes(e)}function f(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}var y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]])}return n};const h=o.forwardRef(((e,t)=>{var n,s;const{getPrefixCls:i,space:c,direction:h}=o.useContext(l.E_),{size:x=(null==c?void 0:c.size)||"small",align:j,className:v,rootClassName:g,children:b,direction:C="horizontal",prefixCls:Z,split:w,style:O,wrap:_=!1,classNames:N,styles:k}=e,T=y(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[P,L]=Array.isArray(x)?x:[x,x],S=m(L),E=m(P),D=f(L),I=f(P),A=(0,r.Z)(b,{keepEmpty:!0}),H=void 0===j&&"horizontal"===C?"center":j,z=i("space",Z),[B,M]=(0,p.Z)(z),R=a()(z,null==c?void 0:c.className,M,`${z}-${C}`,{[`${z}-rtl`]:"rtl"===h,[`${z}-align-${H}`]:H,[`${z}-gap-row-${L}`]:S,[`${z}-gap-col-${P}`]:E},v,g),V=a()(`${z}-item`,null!==(n=null==N?void 0:N.item)&&void 0!==n?n:null===(s=null==c?void 0:c.classNames)||void 0===s?void 0:s.item);let Y=0;const F=A.map(((e,t)=>{var n,s;null!=e&&(Y=t);const a=e&&e.key||`${V}-${t}`;return o.createElement(u,{className:V,key:a,index:t,split:w,style:null!==(n=null==k?void 0:k.item)&&void 0!==n?n:null===(s=null==c?void 0:c.styles)||void 0===s?void 0:s.item},e)})),$=o.useMemo((()=>({latestIndex:Y})),[Y]);if(0===A.length)return null;const U={};return _&&(U.flexWrap="wrap"),!E&&I&&(U.columnGap=P),!S&&D&&(U.rowGap=L),B(o.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},U),null==c?void 0:c.style),O)},T),o.createElement(d,{value:$},F)))}));const x=h;x.Compact=i.ZP;var j=x},25769:function(e,t,n){"use strict";var o=n(98040),s={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,r,l,i,c,d=!1;t||(t={}),n=t.debug||!1;try{if(r=o(),l=document.createRange(),i=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=s[t.format]||s.default;window.clipboardData.setData(a,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),i.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(l):i.removeAllRanges()),c&&document.body.removeChild(c),r()}return d}},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=a(n(59301)),s=a(n(25769));function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e,t){if(null==e)return{};var n,o,s=function(e,t){if(null==e)return{};var n,o,s={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(s[n]=e[n]);return s}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?m(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e){function t(){var e,n;c(this,t);for(var a=arguments.length,r=new Array(a),l=0;l<a;l++)r[l]=arguments[l];return y(m(n=u(this,(e=p(t)).call.apply(e,[this].concat(r)))),"onClick",(function(e){var t=n.props,a=t.text,r=t.onCopy,l=t.children,i=t.options,c=o.default.Children.only(l),d=(0,s.default)(a,i);r&&r(a,d),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),n}var n,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,a=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=i(e,["text","onCopy","options","children"]),s=o.default.Children.only(t);return o.default.cloneElement(s,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}],a&&d(n.prototype,a),r&&d(n,r),t}(o.default.PureComponent);t.CopyToClipboard=h,y(h,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,t,n){"use strict";var o=n(83145).CopyToClipboard;o.CopyToClipboard=o,e.exports=o},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);