|
|
(self.webpackChunk=self.webpackChunk||[]).push([[67878,28247,19807,83403,52643,28195],{89136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(4751),a=n(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},r=n(68475),l=function(e,t){return a.createElement(r.Z,(0,o.Z)({},e,{ref:t,icon:s}))};var i=a.forwardRef(l)},22845:function(e,t,n){"use strict";var o=n(82242),a=n.n(o),s=(n(59301),n(19779)),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:a()(a()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),c),children:[(0,l.jsx)("img",{src:t||s,style:a()({width:288,height:200},y)}),(0,l.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,l.jsx)(r.ZP,a()(a()({className:m,onClick:p},o),{},{children:u})),f&&f]})}},25562:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var o=n(82242),a=n.n(o),s=n(79800),r=n.n(s),l=n(39647),i=n.n(l),c=n(59301),d=n(96707),u=n(20834),p=n(44e3),m=n(95237),f=n(43604),y=n(3113),h=n(53864),x=n(22961),v=n(76279),b=n(22845),g=n(7557),j=n.n(g),C=n(41498),w=n.n(C),Z=n(43418),O=n(8591),P=n(51836),_=n(37712),N=(0,d.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,d.useParams)(),a=t.actionTabs;return o.id=o.coursesId,(0,_.jsx)(Z.Z,{centered:!0,title:"提示",open:"删除"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:w()(j()().mark((function e(){return j()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,P.ZP)("/api/live_links/".concat(a.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,_.jsx)("p",{children:"是否确认删除?"})})})),k=n(85573),E=n.n(k),T=n(98228),L=n(57809),S=n(78241),D=n(98135),A=n(84291),z=n(99232),I=n.n(z),M={form:"form___eXJya"},R=(T.Z.TreeNode,L.default.Option),B=(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 s=S.Z.useForm(),l=r()(s,1)[0],i=(0,c.useState)("直播链接"),u=r()(i,2),p=u[0],y=u[1];return(0,_.jsx)(Z.Z,{centered:!0,title:"添加直播",open:"添加直播"===t.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:w()(j()().mark((function e(){var t;return j()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a(),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,P.ZP)("/api/courses/".concat(o.id,"/live_links.json"),{method:"post",body:a()({},t)});case 8:0===e.sent.status&&((0,v.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,_.jsxs)(S.Z,{form:l,initialValues:E()(E()({},"platform","腾讯课堂"),"link",""),children:[(0,_.jsx)(S.Z.Item,{label:"直播课程",name:"course_name",rules:[{required:!0,message:"请输入课程名称"}],children:(0,_.jsx)(D.Z,{placeholder:"请输入课程名称",maxLength:60})}),(0,_.jsx)(S.Z.Item,{label:"直播平台",name:"platform",rules:[{required:!0,message:"请选择直播平台!"}],children:(0,_.jsxs)(L.default,{showSearch:!0,placeholder:"请选择平台",defaultValue:"腾讯课堂",onChange:function(e){y("威佰通"===e||"zoom"===e?"会议号":"直播链接")},optionFilterProp:"children",children:[(0,_.jsx)(R,{value:"腾讯课堂",children:"腾讯课堂"}),(0,_.jsx)(R,{value:"斗鱼直播",children:"斗鱼直播"}),(0,_.jsx)(R,{value:"Bilibili",children:"Bilibili"}),(0,_.jsx)(R,{value:"威佰通",children:"威佰通"}),(0,_.jsx)(R,{value:"zoom",children:"zoom"})]})}),(0,_.jsx)(S.Z.Item,{label:p,name:"url",children:(0,_.jsx)(D.Z,{placeholder:"请输入第三方直播链接 如:腾讯课堂播放链接等"})}),(0,_.jsxs)(m.Z,{justify:"space-between",children:[(0,_.jsx)(f.Z,{span:11,children:(0,_.jsx)(S.Z.Item,{label:"开播时间",name:"live_time",children:(0,_.jsx)(A.default,{disabledDate:function(e){return e&&e<I()().startOf("day")},format:"YYYY-MM-DD HH:mm",minuteStep:30,placeholder:"如:2020/02/02 12:00",defaultValue:I()(I()(new Date((0,v.qd)())).add(7,"days").format("YYYY-MM-DD HH:mm")),showTime:{format:"HH:mm",defaultValue:I()((0,v.U6)(),"HH:mm")}})})}),(0,_.jsx)(f.Z,{span:11,className:M.timer,children:(0,_.jsxs)(m.Z,{justify:"center",align:"middle",style:{flexFlow:"row"},children:[(0,_.jsx)(f.Z,{flex:8,children:(0,_.jsx)(S.Z.Item,{label:"直播预计时长",name:"duration",children:(0,_.jsx)(D.Z,{placeholder:"请输入直播时长"})})}),(0,_.jsx)(f.Z,{flex:"40px",children:(0,_.jsx)("span",{className:"ml5",children:"分钟"})})]})})]}),(0,_.jsx)(S.Z.Item,{label:"直播说明",name:"description",children:(0,_.jsx)(D.Z.TextArea,{placeholder:"可在此介绍开播具体事项,如开播时间安排等。"})})]})})})),$=n(56102),H=(T.Z.TreeNode,L.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 a=t.actionTabs,s=S.Z.useForm();r()(s,1)[0];return(0,_.jsx)(Z.Z,{centered:!0,title:"提示",open:"进入"===t.actionTabs.key,okText:"完成",cancelText:"取消",width:700,bodyStyle:{minHeight:200},onOk:w()(j()().mark((function e(){return j()().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:a.data&&(0,_.jsxs)("div",{style:{margin:"0 80px"},children:[(0,_.jsx)(m.Z,{justify:"center",align:"middle",className:"mt40",children:(0,_.jsxs)(f.Z,{className:"font16 tc",children:["打开",a.data.platform,"客户端,输入直播链接即可进入直播"]})}),(0,_.jsx)(m.Z,{className:"mt20",justify:"center",children:(0,_.jsxs)(f.Z,{className:"tc",flex:1,children:["直播链接:",a.data.url&&""!==a.data.url?a.data.url:(0,_.jsx)("span",{className:"c-red",children:"等待开播"}),a.data.url&&""!==a.data.url&&(0,_.jsx)($.CopyToClipboard,{text:a.data.url,onCopy:function(){return O.ZP.success("复制成功")},children:(0,_.jsx)("span",{className:"c-blue ml30",children:"复制直播链接"})})]})})]})})}))),V=(T.Z.TreeNode,L.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 s=t.actionTabs,l=S.Z.useForm(),i=r()(l,1)[0];return(0,c.useEffect)((function(){var e,t,n,o,a,r,l;i.setFieldsValue({platform:null==s||null===(e=s.data)||void 0===e?void 0:e.platform,course_name:null==s||null===(t=s.data)||void 0===t?void 0:t.course_name,live_time:null!=s&&null!==(n=s.data)&&void 0!==n&&n.live_time?I()(null==s||null===(o=s.data)||void 0===o?void 0:o.live_time):null,url:null==s||null===(a=s.data)||void 0===a?void 0:a.url,duration:null==s||null===(r=s.data)||void 0===r?void 0:r.duration,description:null==s||null===(l=s.data)||void 0===l?void 0:l.description})}),[s]),(0,_.jsx)(Z.Z,{centered:!0,title:"编辑直播",open:"编辑"===t.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:w()(j()().mark((function e(){var t;return j()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a(),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=I()(t.live_time).format("YYYY-MM-DD HH:mm")),e.next=9,(0,P.ZP)("/api/live_links/".concat(s.data.id,".json"),{method:"put",body:a()({},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:s.data&&(0,_.jsxs)(S.Z,{form:i,initialValues:E()(E()(E()(E()(E()(E()({},"platform",s.data.platform),"course_name",s.data.course_name),"live_time",s.data.live_time?I()(s.data.live_time):null),"url",s.data.url),"duration",s.data.duration),"description",s.data.description),children:[(0,_.jsx)(S.Z.Item,{label:"直播课程",name:"course_name",rules:[{required:!0,message:"请输入!"}],children:(0,_.jsx)(D.Z,{maxLength:60})}),(0,_.jsxs)(S.Z.Item,{label:"直播平台",name:"platform",rules:[{required:!0,message:"请选择平台!"}],children:[(0,_.jsxs)(L.default,{showSearch:!0,style:{width:200},placeholder:"请选择平台",defaultValue:"腾讯课堂",optionFilterProp:"children",children:[(0,_.jsx)(V,{value:"腾讯课堂",children:"腾讯课堂"}),(0,_.jsx)(V,{value:"斗鱼直播",children:"斗鱼直播"}),(0,_.jsx)(V,{value:"Bilibili",children:"Bilibili"}),(0,_.jsx)(V,{value:"威佰通",children:"威佰通"}),(0,_.jsx)(V,{value:"zoom",children:"zoom"})]}),","]}),(0,_.jsxs)(m.Z,{justify:"space-between",children:[(0,_.jsx)(f.Z,{span:11,children:(0,_.jsx)(S.Z.Item,{label:"开播时间",name:"live_time",children:(0,_.jsx)(A.default,{disabledDate:function(e){return e&&e<I()().startOf("day")},format:"YYYY-MM-DD HH:mm",minuteStep:30,showTime:{format:"HH:mm",defaultValue:I()((0,v.U6)(),"HH:mm")}})})}),(0,_.jsx)(f.Z,{span:11,className:M.timer,children:(0,_.jsxs)(m.Z,{justify:"center",align:"middle",style:{flexFlow:"row"},children:[(0,_.jsx)(f.Z,{flex:8,children:(0,_.jsx)(S.Z.Item,{label:"直播预计时长",name:"duration",children:(0,_.jsx)(D.Z,{})})}),(0,_.jsx)(f.Z,{flex:"40px",children:(0,_.jsx)("span",{className:"ml5",children:"分钟"})})]})})]}),(0,_.jsx)(S.Z.Item,{label:"会议号",name:"url",rules:[{required:!0,message:"请选择平台!"}],children:(0,_.jsx)(D.Z,{})}),(0,_.jsx)(S.Z.Item,{label:"直播说明",name:"description",children:(0,_.jsx)(D.Z.TextArea,{placeholder:"可在此介绍开播具体事项,如开播时间安排等。"})})]})})})),Y=n(53799),q="card___qCDxO",U="supportPlatform___gN3jm",G=n(68339),Q=n(7276),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)(a()({},(0,d.useParams)()))),s=r()(o,2),l=s[0],u=(s[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:a()({},l)})}),[l.categoryId]),(0,c.useEffect)((function(){"目录重命名成功"===t.actionTabs.key&&n({type:"classroomList/getLiveVideoList",payload:a()({},l)})}),[t.actionTabs.key]);var j=[{name:"视频",id:"all",total:null==u?void 0:u.videos_count},{name:"直播",id:1,total:null==u?void 0:u.lives_count}];return(0,_.jsxs)("section",{children:[(0,_.jsx)(Y.Z,{isLoading:!1,tabDataSource:j,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,_.jsxs)("aside",{className:U,children:[(0,_.jsx)("h1",{children:"EduCoder支持所有第三方直播平台,特别推荐:"}),(0,_.jsxs)("div",{children:[(0,_.jsxs)("dl",{children:[(0,_.jsxs)("dt",{children:[(0,_.jsx)("img",{src:Q.d6}),"腾讯课堂"]}),(0,_.jsx)("dd",{children:(0,_.jsx)("a",{href:"".concat(G.Z.API_SERVER,"/pdf/tencent_manual.pdf"),target:"go-to",children:"(简明手册)"})})]}),(0,_.jsxs)("dl",{children:[(0,_.jsxs)("dt",{children:[(0,_.jsx)("img",{src:Q.AG})," 哔哩哔哩"]}),(0,_.jsx)("dd",{children:(0,_.jsx)("a",{href:"https://www.bilibili.com/blackboard/live/broadcast-intro.html#/",target:"go-to",children:"(简明手册)"})})]}),(0,_.jsxs)("dl",{children:[(0,_.jsxs)("dt",{children:[(0,_.jsx)("img",{src:Q.BO})," 斗鱼"]}),(0,_.jsx)("dd",{children:(0,_.jsx)("a",{href:"https://www.douyu.com/special/guide/anchor",target:"go-to",children:"(简明手册)"})})]}),(0,_.jsxs)("dl",{children:[(0,_.jsxs)("dt",{children:[(0,_.jsx)("img",{src:Q.j1}),"威佰通"]}),(0,_.jsx)("dd",{children:(0,_.jsx)("a",{href:"https://www.educoder.net/forums/3734",target:"go-to",children:"(简明手册)"})})]}),(0,_.jsxs)("dl",{children:[(0,_.jsxs)("dt",{children:[(0,_.jsx)("img",{src:Q.g4})," zoom"]}),(0,_.jsx)("dd",{children:(0,_.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,_.jsx)(b.Z,{}),(0,_.jsx)("div",{className:q,children:u.lives&&u.lives.map((function(e,t){return(0,_.jsxs)(m.Z,{children:[(0,_.jsxs)(f.Z,{span:24,children:[e.course_name,(0,_.jsx)(v.VV,{status:[e.on_status?"已开播":"未开播"]})]}),(0,_.jsx)(f.Z,{span:24,children:(0,_.jsxs)(m.Z,{children:[(0,_.jsx)(f.Z,{flex:1,children:e.description}),(0,_.jsx)(f.Z,{children:(0,_.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,_.jsx)(f.Z,{span:24,children:(0,_.jsxs)(m.Z,{className:"c-light-black",children:[(0,_.jsxs)(f.Z,{flex:1,className:"font12",children:[(0,_.jsxs)("span",{children:[(0,_.jsx)("img",{src:"".concat(e.author_img),alt:"",className:"mr20"}),e.author_name]}),e.platform&&(0,_.jsxs)("span",{className:"ml40",children:["直播平台:",e.platform]}),e.live_time&&(0,_.jsxs)("span",{className:"ml40",children:["开播时间:",e.live_time]}),e.duration&&(0,_.jsxs)("span",{className:"ml40",children:["直播预计时长:",e.duration,"分钟"]})]}),(0,x.GJ)()&&(0,_.jsxs)(f.Z,{children:[(0,_.jsx)("span",{style:{cursor:"pointer"},onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"编辑",params:l,data:e}})},children:"编辑"}),(0,_.jsx)("span",{style:{cursor:"pointer"},className:"ml25",onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"删除",params:l,data:e}})},children:"删除"})]})]})})]})}))}),(0,_.jsx)("aside",{className:"tc mb50 mt30",children:(0,_.jsx)(h.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){l.page=e,n({type:"classroomList/getLiveVideoList",payload:a()({},l)})},pageSize:15,current:l.page||1,defaultCurrent:1,total:u.total_count})}),(0,_.jsx)(N,{}),(0,_.jsx)(F,{}),(0,_.jsx)(B,{}),(0,_.jsx)(H,{})]})})))},53799:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});n(59301);var o=n(95237),a=n(43604),s=n(20834),r=n(38854),l={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI"},i=n(37712),c=function(e){var t=e.isLoading,n=e.addText,c=e.tabDataSource,d=e.isAdmin,u=e.defaultSelectedKeys,p=e.onTabMenuClick,m=e.getDropdownMenu,f=e.showControlButton,y=e.buttonText,h=e.buttonIcon,x=void 0===h?"icon-tianjiadaohang":h,v=e.extraNode,b=e.onButtonClick,g=void 0===b?function(){}:b;return(0,i.jsx)("div",{className:l.tabMenuContainer,children:(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(a.Z,{flex:"1",children:(0,i.jsx)(s.Z,{onSelect:function(e){return t?{}:p(e)},mode:"horizontal",selectedKeys:u,children:c.map((function(e){return(0,i.jsxs)(s.Z.Item,{children:[(0,i.jsx)("span",{className:"c-grey-666",children:e.name}),void 0!==e.total&&d&&(0,i.jsx)("span",{className:"c-grey-999 ml20",children:e.total||0})]},"number"==typeof e.index?e.index:e.id)}))})}),d&&(0,i.jsx)(a.Z,{className:"mr20",children:(0,i.jsxs)("div",{className:l.control,children:[(0,i.jsx)("div",{className:l.extra,children:v}),f&&(0,i.jsxs)("span",{onClick:g,style:{cursor:"pointer"},className:l.selectBtn,children:[(0,i.jsx)("span",{children:(0,i.jsx)("i",{className:"iconfont ".concat(x)})}),(0,i.jsx)("span",{children:y})]}),!!m&&(0,i.jsx)(r.Z,{className:"ml10",dropdownRender:m,children:(0,i.jsxs)("span",{className:l.selectBtn,children:[(0,i.jsx)("span",{children:(0,i.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,i.jsx)("span",{children:n||"创建试卷"})]})})]})})]})})}},38854:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var o=n(91857),a=n(92310),s=n.n(a),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 a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const f=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:a}=r.useContext(c.E_),{prefixCls:f,type:y="default",danger:h,disabled:x,loading:v,onClick:b,htmlType:g,children:j,className:C,menu:w,arrow:Z,autoFocus:O,overlay:P,trigger:_,align:N,open:k,onOpenChange:E,placement:T,getPopupContainer:L,href:S,icon:D=r.createElement(l.Z,null),title:A,buttonsRender:z=(e=>e),mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:R,overlayStyle:B,destroyPopupOnHide:$,dropdownRender:H}=e,V=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),Y=`${F}-button`,[q,U]=(0,p.Z)(F),G={menu:w,arrow:Z,autoFocus:O,align:N,disabled:x,trigger:x?[]:_,onOpenChange:E,getPopupContainer:L||t,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:R,overlayStyle:B,destroyPopupOnHide:$,dropdownRender:H},{compactSize:Q,compactItemClassnames:J}=(0,u.ri)(F,a),K=s()(Y,J,C,U);"overlay"in e&&(G.overlay=P),"open"in e&&(G.open=k),G.placement="placement"in e?T:"rtl"===a?"bottomLeft":"bottomRight";const W=r.createElement(i.ZP,{type:y,danger:h,disabled:x,loading:v,onClick:b,htmlType:g,href:S,title:A},j),X=r.createElement(i.ZP,{type:y,danger:h,icon:D}),[ee,te]=z([W,X]);return q(r.createElement(d.Z.Compact,Object.assign({className:K,size:Q,block:!0},V),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},98135:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(92310),a=n.n(o),s=n(59301),r=n(36355),l=n(32441),i=n(9937);var c=e=>{const{getPrefixCls:t,direction:n}=(0,s.useContext)(r.E_),{prefixCls:o,className:c}=e,d=t("input-group",o),u=t("input"),[p,m]=(0,i.ZP)(u),f=a()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===n},m,c),y=(0,s.useContext)(l.aM),h=(0,s.useMemo)((()=>Object.assign(Object.assign({},y),{isFormItemInput:!1})),[y]);return p(s.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(l.aM.Provider,{value:h},e.children)))},d=n(9432),u=n(4751),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},m=n(68475),f=function(e,t){return s.createElement(m.Z,(0,u.Z)({},e,{ref:t,icon:p}))};var y=s.forwardRef(f),h=n(89136),x=n(54798),v=n(29255),b=n(59412),g=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 a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const j=e=>e?s.createElement(h.Z,null):s.createElement(y,null),C={click:"onClick",hover:"onMouseOver"};var w=s.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,o="object"==typeof n&&void 0!==n.visible,[l,i]=(0,s.useState)((()=>!!o&&n.visible)),c=(0,s.useRef)(null);s.useEffect((()=>{o&&i(n.visible)}),[o,n]);const u=(0,b.Z)(c),p=()=>{const{disabled:t}=e;t||(l&&u(),i((e=>{var t;const o=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,o)),o})))},{className:m,prefixCls:f,inputPrefixCls:y,size:h}=e,w=g(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Z}=s.useContext(r.E_),O=Z("input",y),P=Z("input-password",f),_=n&&(t=>{const{action:n="click",iconRender:o=j}=e,a=C[n]||"",r=o(l),i={[a]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return s.cloneElement(s.isValidElement(r)?r:s.createElement("span",null,r),i)})(P),N=a()(P,m,{[`${P}-${h}`]:!!h}),k=Object.assign(Object.assign({},(0,x.Z)(w,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:N,prefixCls:O,suffix:_});return h&&(k.size=h),s.createElement(d.Z,Object.assign({ref:(0,v.sQ)(t,c)},k))})),Z=n(11013),O=n(92343),P=n(3113),_=n(19716),N=n(33234),k=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 a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};var E=s.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:o,className:l,size:i,suffix:c,enterButton:u=!1,addonAfter:p,loading:m,disabled:f,onSearch:y,onChange:h,onCompositionStart:x,onCompositionEnd:b}=e,g=k(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:j,direction:C}=s.useContext(r.E_),w=s.useRef(!1),E=j("input-search",n),T=j("input",o),{compactSize:L}=(0,N.ri)(E,C),S=(0,_.Z)((e=>{var t;return null!==(t=null!=i?i:L)&&void 0!==t?t:e})),D=s.useRef(null),A=e=>{var t;document.activeElement===(null===(t=D.current)||void 0===t?void 0:t.input)&&e.preventDefault()},z=e=>{var t,n;y&&y(null===(n=null===(t=D.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},I="boolean"==typeof u?s.createElement(Z.Z,null):null,M=`${E}-button`;let R;const B=u||{},$=B.type&&!0===B.type.__ANT_BUTTON;R=$||"button"===B.type?(0,O.Tm)(B,Object.assign({onMouseDown:A,onClick:e=>{var t,n;null===(n=null===(t=null==B?void 0:B.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),z(e)},key:"enterButton"},$?{className:M,size:S}:{})):s.createElement(P.ZP,{className:M,type:u?"primary":void 0,size:S,disabled:f,key:"enterButton",onMouseDown:A,onClick:z,loading:m,icon:I},u),p&&(R=[R,(0,O.Tm)(p,{key:"addonAfter"})]);const H=a()(E,{[`${E}-rtl`]:"rtl"===C,[`${E}-${S}`]:!!S,[`${E}-with-button`]:!!u},l);return s.createElement(d.Z,Object.assign({ref:(0,v.sQ)(D,t),onPressEnter:e=>{w.current||m||z(e)}},g,{size:S,onCompositionStart:e=>{w.current=!0,null==x||x(e)},onCompositionEnd:e=>{w.current=!1,null==b||b(e)},prefixCls:T,addonAfter:R,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&y&&y(e.target.value,e,{source:"clear"}),h&&h(e)},className:H,disabled:f}))})),T=n(1643);const L=d.Z;L.Group=c,L.Search=E,L.TextArea=T.Z,L.Password=w;var S=L},44e3:function(e,t,n){"use strict";var o=n(84966),a=n(10711);const s=o.ZP;s.Header=o.h4,s.Footer=o.$_,s.Content=o.VY,s.Sider=a.Z,t.Z=s},81327:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var o=n(59301),a=n(92310),s=n.n(a),r=n(89616),l=n(36355),i=n(33234);const c=o.createContext({latestIndex:0}),d=c.Provider;var u=e=>{let{className:t,index:n,children:a,split:s,style:r}=e;const{latestIndex:l}=o.useContext(c);return null==a?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:r},a),n<l&&s&&o.createElement("span",{className:`${t}-split`},s))},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 a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]])}return n};const h=o.forwardRef(((e,t)=>{var n,a;const{getPrefixCls:i,space:c,direction:h}=o.useContext(l.E_),{size:x=(null==c?void 0:c.size)||"small",align:v,className:b,rootClassName:g,children:j,direction:C="horizontal",prefixCls:w,split:Z,style:O,wrap:P=!1,classNames:_,styles:N}=e,k=y(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,T]=Array.isArray(x)?x:[x,x],L=m(T),S=m(E),D=f(T),A=f(E),z=(0,r.Z)(j,{keepEmpty:!0}),I=void 0===v&&"horizontal"===C?"center":v,M=i("space",w),[R,B]=(0,p.Z)(M),$=s()(M,null==c?void 0:c.className,B,`${M}-${C}`,{[`${M}-rtl`]:"rtl"===h,[`${M}-align-${I}`]:I,[`${M}-gap-row-${T}`]:L,[`${M}-gap-col-${E}`]:S},b,g),H=s()(`${M}-item`,null!==(n=null==_?void 0:_.item)&&void 0!==n?n:null===(a=null==c?void 0:c.classNames)||void 0===a?void 0:a.item);let V=0;const F=z.map(((e,t)=>{var n,a;null!=e&&(V=t);const s=e&&e.key||`${H}-${t}`;return o.createElement(u,{className:H,key:s,index:t,split:Z,style:null!==(n=null==N?void 0:N.item)&&void 0!==n?n:null===(a=null==c?void 0:c.styles)||void 0===a?void 0:a.item},e)})),Y=o.useMemo((()=>({latestIndex:V})),[V]);if(0===z.length)return null;const q={};return P&&(q.flexWrap="wrap"),!S&&A&&(q.columnGap=E),!L&&D&&(q.rowGap=T),R(o.createElement("div",Object.assign({ref:t,className:$,style:Object.assign(Object.assign(Object.assign({},q),null==c?void 0:c.style),O)},k),o.createElement(d,{value:Y},F)))}));const x=h;x.Compact=i.ZP;var v=x},25769:function(e,t,n){"use strict";var o=n(98040),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,s,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 s=a[t.format]||a.default;window.clipboardData.setData(s,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"),s=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(s,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=s(n(59301)),a=s(n(25769));function s(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,a=function(e,t){if(null==e)return{};var n,o,a={},s=Object.keys(e);for(o=0;o<s.length;o++)n=s[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}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 s=arguments.length,r=new Array(s),l=0;l<s;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,s=t.text,r=t.onCopy,l=t.children,i=t.options,c=o.default.Children.only(l),d=(0,a.default)(s,i);r&&r(s,d),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),n}var n,s,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,s=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=i(e,["text","onCopy","options","children"]),a=o.default.Children.only(t);return o.default.cloneElement(a,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}))}}],s&&d(n.prototype,s),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()}}}}]); |