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

1 line
39 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([[61713],{7406:function(e,t,n){"use strict";var i=n(82242),s=n.n(i),r=(n(59301),n(93314)),l=n(3113),a=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,o=e.styles,c=void 0===o?{}:o,u=e.customText,d=e.ButtonText,p=e.ButtonClick,m=e.Buttonclass,h=e.ButtonTwo,f=e.imgStyles,v=e.loading,x=void 0!==v&&v;return(0,a.jsxs)("section",{className:"tc animated fadeIn",style:s()(s()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),c),children:[(0,a.jsx)("img",{src:t||r,style:s()(s()({},f),{},{pointerEvents:"none",userSelect:"none"})}),(0,a.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,a.jsx)(l.ZP,s()(s()({className:m,onClick:p},i),{},{children:d})),h&&h]})}},22704:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ee}});var i=n(7557),s=n.n(i),r=n(41498),l=n.n(r),a=n(79800),o=n.n(a),c=n(59301),u=n(51136),d="wrap___dX7Vx",p=n(82242),m=n.n(p),h=n(39647),f=n.n(h),v=n(78241),x=n(8591),_=n(8772),g=n(5112),y=n(21068),j=n(95237),b=n(24905),w=n(6848),S=n(3113),k={flex_box_center:"flex_box_center___y1YZJ",flex_space_between:"flex_space_between___wTOwl",flex_box_vertical_center:"flex_box_vertical_center___XmLwW",flex_box_center_end:"flex_box_center_end___gWVqd",flex_box_column:"flex_box_column___PjZDS",form:"form___JA0Ze",text:"text___cCcOQ",img:"img___ht1lh",title:"title___mljGY",list:"list___isVFT",btn:"btn___IUjb1"},Z=n(27065),L=n(70481),P=n(7880),C=n(90963),N=n(37712),I=["globalSetting","virtualSpaces","dispatch"],T=["key","name"],E=(0,P.connect)((function(e){return{globalSetting:e.globalSetting,virtualSpaces:e.virtualSpaces}}))((function(e){e.globalSetting;var t,n,i=e.virtualSpaces,r=e.dispatch,a=(f()(e,I),(0,P.useParams)()),d=i.virtualSpacesDetails,p=i.menus,h=(0,c.useState)(!1),E=o()(h,2),O=E[0],M=E[1],R=(0,c.useState)(!0),V=o()(R,2),D=(V[0],V[1],v.Z.useForm()),z=o()(D,1)[0],H=(0,c.useState)([]),F=o()(H,2),Y=F[0],A=F[1],W=(0,c.useState)([]),B=o()(W,2),U=B[0],q=B[1],G=(0,c.useState)(!1),X=o()(G,2),J=X[0],$=X[1],Q={homepage:"该模块为虚拟社区主页可编辑展示本虚拟社区的基本介绍支持markdown编辑器编辑展示内容",workplace:"该模块为虚拟社区个人工作台,可统计社区数据、通知公告、教研活动等内容",announcement:"该模块为通知公告模块,可以发布、编辑和删除通知公告内容",lesson:"该模块为好课展示模块,支持添加好课和添加好课链接",survey:"该模块为课程调研模块,可以对相关调研文件进行上传、查看、下载、删除操作",knowledge:"该模块为知识体系模块,主要分为四个子模块:课程定位与目标、课程知识点、知识图谱描述、知识图谱。",plan:"该模块为课程教案模块,支持以文件夹的形式管理课程相关的教案文件",material:"该模块为课程教材模块,主要分为两个子模块:主教材、实践教材",experiment:"该模块为实验体系模块,支持老师从实践项目和实践课程中选用实验加入",discussion:"该模块为交流研讨模块,支持发布交流研讨的信息和上传相关附件视频。",resources:"该模块为教学资源模块,支持上传对应教材的教学资源和添加外链资源",settings:"该模块为社区设置模块,支持对社区名称、社区类型、标识、封面图、详情顶部背景和模块展示控制、人员管理进行设置",digtal:"该模块为数字课堂模块,支持添加数字课堂的标题、链接和封面"};(0,c.useEffect)((function(){if(null!=d&&d.id&&null!=p&&p.length){var e,t,n,i;z.setFieldsValue({name:null==d?void 0:d.name,vs_type:null==d?void 0:d.vs_type,identifier:null==d?void 0:d.identifier,settings:p.map((function(e){return m()(m()({},e),{},{checked:!e.hidden})}))});var s=null!=d&&null!==(e=d.cover_url)&&void 0!==e&&e.includes("attachments")?[{response:{id:null==d||null===(t=d.cover_url)||void 0===t?void 0:t.split("/")[3]}}]:[],r=null!=d&&null!==(n=d.backbground_image_url)&&void 0!==n&&n.includes("attachments")?[{response:{id:null==d||null===(i=d.backbground_image_url)||void 0===i?void 0:i.split("/")[3]}}]:[];A(s),q(r)}}),[d,p]);var K=function(){var e=l()(s()().mark((function e(t){var n,i,l,o,c;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),o={name:null==t?void 0:t.name,vs_type:null==t?void 0:t.vs_type,identifier:null==t?void 0:t.identifier,cover_id:(null==Y||null===(n=Y[0])||void 0===n||null===(n=n.response)||void 0===n?void 0:n.id)||"",backbground_image_id:(null==U||null===(i=U[0])||void 0===i||null===(i=i.response)||void 0===i?void 0:i.id)||"",modules_list:null==t||null===(l=t.settings)||void 0===l?void 0:l.map((function(e){return m()(m()({},e),{},{hidden:!e.checked})}))},e.next=4,(0,u.ZP)("/api/virtual_classrooms/".concat(a.virtual_spacesId,".json"),{method:"put",body:o});case 4:-1!==(null==(c=e.sent)?void 0:c.status)&&(x.ZP.success("修改成功"),r({type:"virtualSpaces/getVirtualSpacesMenus",payload:{id:null==t?void 0:t.identifier}}),r({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:null==t?void 0:t.identifier}}),P.history.replace("/".concat("classroom"===(null==t?void 0:t.vs_type)?"vtrs":"101","/").concat(null==t?void 0:t.identifier,"/settings?leftMenuId=").concat(window.localStorage.getItem("vtrsModuleId")))),-3===(null==c?void 0:c.status)&&z.setFields([{name:"identifier",errors:["该标识已存在,请更换"]}]),M(!1);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ee=function(e,t){["uploading","done","removed"].includes(e.file.status)&&("uploading"===e.file.status&&$(!0),"done"===e.file.status&&$(!1),1===t?A(e.fileList):q(e.fileList))},te=function(e,t){1===t?A([]):q([])},ne=function(e,t){if(!("image/jpeg"===e.type||"image/png"===e.type))return x.ZP.warning("请上传jpg或png的图片!"),!1;var n=e.size/1024>200,i=e.size/1024/1024>1;return n&&1===t?(x.ZP.warning("文件大小必须小于200KB"),!1):i&&2===t?(x.ZP.warning("文件大小必须小于1MB"),!1):(1===t?A([]):q([]),!0)},ie=function(e){var t,n;return(0,N.jsxs)("div",{className:k.img,children:[(0,N.jsx)("img",{src:Z.Z.API_SERVER+"/api/attachments/"+(1===e?null==Y||null===(t=Y[0])||void 0===t||null===(t=t.response)||void 0===t?void 0:t.id:null==U||null===(n=U[0])||void 0===n||null===(n=n.response)||void 0===n?void 0:n.id),alt:"avatar",style:{width:"100%"}}),(0,N.jsx)("div",{children:(0,N.jsx)(L.Z,{onClick:function(){1===e?A([]):q([])},style:{fontSize:"16px",color:"red"}})})]})},se="",re=function e(t,n){return p.find((function(e){return e.name==t+"("+n+")"}))?e(t,n+1):se=t+"("+n+")",se};return(0,N.jsxs)(v.Z,{form:z,colon:!1,onFinish:K,className:k.form,children:[(0,N.jsx)(v.Z.Item,{label:"社区名称",name:"name",rules:[{required:!0,message:"请输入社区名称"},{whitespace:!0,message:"请输入社区名称"},{max:60,message:"只能输入60个字符"}],children:(0,N.jsx)(_.Z,{style:{width:516},maxLength:60,placeholder:"请输入社区名称"})}),(0,N.jsx)(v.Z.Item,{label:"社区类型",initialValue:"classroom",name:"vs_type",rules:[{required:!0,message:"请输入社区类型"}],children:(0,N.jsxs)(g.ZP.Group,{children:[(0,N.jsx)(g.ZP,{value:"classroom",children:"虚拟教研室"}),(0,N.jsx)(g.ZP,{className:"ml20",value:"plan",children:"101计划"})]})}),(0,N.jsx)(v.Z.Item,{label:(0,N.jsx)("span",{style:{width:66},children:"标识"}),name:"identifier",rules:[{pattern:/^[a-zA-Z0-9]+$/,message:"仅支持填写英文和数字"}],children:(0,N.jsx)(_.Z,{style:{width:516},maxLength:15})}),(0,N.jsx)(v.Z.Item,{name:"cover_id",label:"封面图",className:"mt30",children:(0,N.jsxs)("div",{className:k.upload,children:[null!=Y&&null!==(t=Y[0])&&void 0!==t&&null!==(t=t.response)&&void 0!==t&&t.id?ie(1):(0,N.jsx)(y.Z,{fileList:Y,action:"".concat(Z.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){return ee(e,1)},onRemove:function(e){return te(0,1)},beforeUpload:function(e){return ne(e,1)},withCredentials:!0,accept:"image/*",children:(0,N.jsx)(C.op,{className:"radius2",children:"上传图片"})}),(0,N.jsx)("aside",{className:k.text,children:"仅支持上传jpg/png格式文件文件大小不能超过200KB建议使用282*228像素如不上传默认使用系统图片。"})]})}),(0,N.jsx)(v.Z.Item,{name:"backbground_image_id",label:"详情顶部背景",className:"mt30",children:(0,N.jsxs)("div",{className:k.upload,children:[null!=U&&null!==(n=U[0])&&void 0!==n&&null!==(n=n.response)&&void 0!==n&&n.id?ie(2):(0,N.jsx)(y.Z,{fileList:U,action:"".concat(Z.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){return ee(e,2)},onRemove:function(e){return te(0,2)},beforeUpload:function(e){return ne(e,2)},withCredentials:!0,accept:"image/*",children:(0,N.jsx)(C.op,{className:"radius2",children:"上传图片"})}),(0,N.jsx)("aside",{className:k.text,children:"仅支持上传jpg/png格式文件文件大小不能超过1MB建议使用3840*148像素如不上传默认使用系统图片。"})]})}),(0,N.jsxs)("div",{className:k.title,children:[(0,N.jsx)("b",{}),(0,N.jsx)("span",{children:"模块展示控制"})]}),(0,N.jsx)("div",{className:k.list,children:(0,N.jsx)(v.Z.List,{name:"settings",children:function(e,t){var n=t.add,i=(t.remove,t.move);return(0,N.jsx)(N.Fragment,{children:e.map((function(t,s){t.key;var r,l,a,o,c=t.name,u=f()(t,T);return(0,N.jsx)("div",{children:(0,N.jsxs)(j.Z,{align:"top",children:[(0,N.jsx)(v.Z.Item,m()(m()({},u),{},{className:"mr20",valuePropName:"checked",name:[c,"checked"],children:(0,N.jsx)(b.Z,{disabled:null===(r=p[c])||void 0===r?void 0:r.disabled})})),(0,N.jsx)(v.Z.Item,m()(m()({},u),{},{style:{flex:1},name:[c,"name"],rules:[{required:!0,validator:function(e,t){var n;return(null==t||null===(n=t.replaceAll(" ",""))||void 0===n?void 0:n.length)<=14?Promise.resolve():Promise.reject("字数限制在14个字以内")}}],children:(0,N.jsx)(_.Z,{})})),(0,N.jsxs)("div",{className:"ml20",style:{width:60,display:"flex",alignItems:"center",justifyContent:"left",paddingTop:6},children:[(0,N.jsx)("div",{className:"mr10",children:(0,N.jsx)(w.Z,{placement:"right",title:Q[null==p||null===(l=p[c])||void 0===l?void 0:l.icon_type],children:(0,N.jsx)("i",{className:"iconfont icon-tishixiaowenhao",style:{color:"#3061D0"}})})}),0!==s&&s<=e.length-2&&(0,N.jsx)("div",{onClick:function(){var t;i(s,s-1);var n=null===(t=z.getFieldValue("settings"))||void 0===t?void 0:t.map((function(t,n){return e.map((function(e,i){n===i&&(t.position=Number(e.name)+1)})),t}));z.setFieldValue("settings",n)},children:(0,N.jsx)("i",{className:"iconfont icon-shangyi3",style:{transform:"translateY(2px)"}})}),s<e.length-2&&(0,N.jsx)("div",{onClick:function(){var t;i(s,s+1);var n=null===(t=z.getFieldValue("settings"))||void 0===t?void 0:t.map((function(t,n){return e.map((function(e,i){n===i&&(t.position=Number(e.name)+1)})),t}));z.setFieldValue("settings",n)},className:0===s?"":"ml10",style:{transform:"rotate(180deg) translateY(1px)"},children:(0,N.jsx)("i",{className:"iconfont icon-shangyi3"})}),s<e.length-1&&"announcement"!=(null===(a=p[null==t?void 0:t.name])||void 0===a?void 0:a.icon_type)&&"workplace"!=(null===(o=p[null==t?void 0:t.name])||void 0===o?void 0:o.icon_type)&&(0,N.jsx)(w.Z,{placement:"bottom",title:"复制",children:(0,N.jsx)("i",{className:"iconfont icon-fuzhi8 current",style:{marginLeft:10,marginTop:"-2px"},onClick:function(){var e,i,s,r,l,a,o,u,d,m,h,f,v,x=re(null===(e=p[null==t?void 0:t.name])||void 0===e?void 0:e.name,1);n({name:x,position:null===(i=p[null==t?void 0:t.name])||void 0===i?void 0:i.position,icon_type:null===(s=p[null==t?void 0:t.name])||void 0===s?void 0:s.icon_type,module_url:null===(r=p[null==t?void 0:t.name])||void 0===r?void 0:r.module_url,hidden:null===(l=p[null==t?void 0:t.name])||void 0===l?void 0:l.hidden,disabled:null===(a=p[null==t?void 0:t.name])||void 0===a?void 0:a.disabled,children:null===(o=p[null==t?void 0:t.name])||void 0===o?void 0:o.children},c+1),p.splice(c+1,0,{name:x,position:null===(u=p[null==t?void 0:t.name])||void 0===u?void 0:u.position,icon_type:null===(d=p[null==t?void 0:t.name])||void 0===d?void 0:d.icon_type,module_url:null===(m=p[null==t?void 0:t.name])||void 0===m?void 0:m.module_url,hidden:null===(h=p[null==t?void 0:t.name])||void 0===h?void 0:h.hidden,disabled:null===(f=p[null==t?void 0:t.name])||void 0===f?void 0:f.disabled,children:null===(v=p[null==t?void 0:t.name])||void 0===v?void 0:v.children})}})})]})]})},c)}))})}})}),(0,N.jsx)(S.ZP,{disabled:J,loading:O,type:"primary",className:k.btn,onClick:function(){z.submit()},children:"确认修改"})]})})),O=n(43418),M=n(88590),R=n(7406),V={flex_box_center:"flex_box_center____FAUe",flex_space_between:"flex_space_between___JShCL",flex_box_vertical_center:"flex_box_vertical_center___YhLcd",flex_box_center_end:"flex_box_center_end___yfXIw",flex_box_column:"flex_box_column___zPH_W",warp:"warp____XM76",Content:"Content___dD_y0",imgstyle:"imgstyle___d5fnu",cardstyle:"cardstyle___uUh0g",paddingcard:"paddingcard___uEvZt",titlefont:"titlefont___HssVh",flexEnd:"flexEnd___Hl39R",modalinput:"modalinput___Vs9yI",items:"items___Gh25j",adminsstyle:"adminsstyle___dby7X",upadmin:"upadmin___JBDfN",yes:"yes___VIGe0",no:"no___e0VYU"},D=n(37205),z=n.n(D),H=n(88522),F=n(52306),Y=n(26724),A=n.n(Y),W=n(99232),B=n.n(W),U=n(64887),q=n(69363),G=n(14386),X=(0,P.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,i=e.classroomList,r=(e.loading,e.dispatch),a=(0,P.useParams)(),u=i.actionTabs,d=(0,c.useState)([]),p=o()(d,2),h=p[0],f=p[1],g=(0,c.useState)(!0),y=o()(g,2),j=y[0],k=y[1],Z=(0,c.useState)(!1),L=o()(Z,2),C=L[0],I=L[1],T=v.Z.useForm(),E=o()(T,1)[0],M=(0,c.useState)([]),R=o()(M,2),V=R[0],D=R[1],Y=(0,c.useState)(0),W=o()(Y,2),X=W[0],J=W[1],$=(0,c.useState)([]),Q=o()($,2),K=Q[0],ee=Q[1],te=(0,c.useState)(!0),ne=o()(te,2),ie=ne[0],se=ne[1],re=(0,c.useRef)();(0,c.useEffect)((function(){"添加老师"===i.actionTabs.key&&(se(!0),le())}),[i.actionTabs.key]);var le=function(){var e=l()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"classroomList/getSchoolList",payload:{}});case 2:t=e.sent,f(t.map((function(e){return{value:e}})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=l()(s()().mark((function e(){var t,n,i,r,l=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=l.length>0&&void 0!==l[0]&&l[0])&&!j||C){e.next=11;break}return i=E.getFieldValue(),I(!0),J(t?1:X+1),e.next=7,(0,q.nQ)({page:t?1:X+1,container_id:a.virtual_spacesId,container_type:5,school_name:null==i?void 0:i.school_name,keyword:null==i?void 0:i.keyword});case 7:r=e.sent,D(t?z()(r.users):[].concat(z()(V),z()(r.users))),I(!1),(null===(n=r.users)||void 0===n?void 0:n.length)<10&&k(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=K){e.next=4;break}x.ZP.error("请选择人数"),e.next=8;break;case 4:return e.next=6,(0,U.MM)(m()(m()({},a),{},{user_ids:K}));case 6:0===e.sent.status&&(x.ZP.success("添加成功"),r({type:"classroomList/setActionTabs",payload:{key:"刷新数据"}}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ce=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(e,t){return(0,N.jsx)(b.Z,{value:t.numid,checked:K.includes(String(t.numid)),disabled:!!e})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"username",render:function(e,t){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)(P.Link,{className:"bold c-black",to:"/users/".concat(t.login),target:"_blank",children:e||"--"})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"邮箱",dataIndex:"email",width:100,ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_number",ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school_name",ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"院系/部门",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"实名认证",dataIndex:"school_name",width:100,render:function(e){return e?"是":"否"}},{title:"最后登录时间",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:B()(e).format("YYYY-MM-DD HH:mm")})})}},{title:"状态",dataIndex:"added",width:80,render:function(e){return 1===e?(0,N.jsx)("span",{className:"c-green",children:"已添加"}):(0,N.jsx)("span",{children:"未添加"})}}];return(0,N.jsxs)(O.Z,{centered:!0,title:"添加成员",open:"添加成员"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:oe();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){ee([]),r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,N.jsxs)(v.Z,{layout:"inline",form:E,initialValues:{school_name:"",keyword:""},className:"mt10",children:[(0,N.jsx)(v.Z.Item,{name:"keyword",label:"姓名:",children:(0,N.jsx)(_.Z,{allowClear:!0,style:{width:370},size:"middle",defaultValue:(null===(t=u.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=u.selectArrs)||void 0===n?void 0:n.name)})}),(0,N.jsx)(v.Z.Item,{name:"school_name",label:"单位:",children:(0,N.jsx)("div",{ref:re,children:(0,N.jsx)(H.Z,{options:h,style:{width:400},size:"middle",placeholder:"请输入单位名称",filterOption:function(e,t){return-1!==t.value.toUpperCase().indexOf(e.toUpperCase())}})})}),(0,N.jsx)(v.Z.Item,{children:(0,N.jsx)(S.ZP,{htmlType:"submit",type:"primary",size:"middle",onClick:function(){return function(){var e;if(""===(null===(e=E.getFieldValue())||void 0===e?void 0:e.keyword))return D([]),void x.ZP.error("请输入姓名");se(!1),k(!0),I(!1),ee([]),setTimeout((function(){ae(!0)}),200)}()},children:"搜索"})})]}),ie&&(0,N.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,N.jsx)("img",{src:G.RL,width:"100",alt:""}),(0,N.jsx)("br",{}),(0,N.jsx)("p",{className:"mt20",children:"请搜索要添加的人员"})]}),!ie&&""==V&&!C&&(0,N.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,N.jsx)("img",{src:G.z3,width:"100",alt:""}),(0,N.jsx)("br",{}),(0,N.jsx)("p",{className:"mt20",children:"暂时还没有相关数据哦!"})]}),(!ie&&""!=V||C)&&(0,N.jsxs)("section",{children:[(0,N.jsx)("div",{className:"flexd-table-header mt20",children:(0,N.jsx)(F.Z,{pagination:!1,dataSource:[],columns:ce})}),(0,N.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,N.jsx)(A(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){ae()},hasMore:j,useWindow:!1,children:(0,N.jsx)(F.Z,{loading:C,showHeader:!1,pagination:!1,dataSource:V,columns:ce,onRow:function(e){return{onClick:function(e){e.currentTarget.querySelector("input").disabled||function(e){e=String(e);var t=K.indexOf(e);t<0?K.push(e):K.splice(t,1),ee(z()(K))}(e.currentTarget.querySelector("input").value)}}}})})})]})]})})),J=(0,P.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,i=e.classroomList,r=(e.loading,e.dispatch),a=(0,P.useParams)(),u=i.actionTabs,d=(0,c.useState)([]),p=o()(d,2),h=p[0],f=p[1],y=(0,c.useState)(!0),j=o()(y,2),b=j[0],k=j[1],Z=(0,c.useState)(!1),L=o()(Z,2),C=L[0],I=L[1],T=v.Z.useForm(),E=o()(T,1)[0],M=(0,c.useState)([]),R=o()(M,2),V=R[0],D=R[1],Y=(0,c.useState)(0),W=o()(Y,2),X=W[0],J=W[1],$=(0,c.useState)(),Q=o()($,2),K=Q[0],ee=Q[1],te=(0,c.useState)(!0),ne=o()(te,2),ie=ne[0],se=ne[1],re=(0,c.useRef)();(0,c.useEffect)((function(){"更换管理员"===i.actionTabs.key&&(se(!0),le())}),[i.actionTabs.key]);var le=function(){var e=l()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"classroomList/getSchoolList",payload:{}});case 2:t=e.sent,f(t.map((function(e){return{value:e}}))),se(!1),k(!0),I(!1),ee(""),setTimeout((function(){ae(!0)}),200);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=l()(s()().mark((function e(){var t,n,i,r,l=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=l.length>0&&void 0!==l[0]&&l[0])&&!b||C){e.next=11;break}return i=E.getFieldValue(),I(!0),J(t?1:X+1),e.next=7,(0,q.nQ)({page:t?1:X+1,container_id:a.virtual_spacesId,container_type:5,source:"virtual_classroom",school_name:null==i?void 0:i.school_name,keyword:null==i?void 0:i.keyword});case 7:r=e.sent,D(t?z()(r.users):[].concat(z()(V),z()(r.users))),I(!1),(null===(n=r.users)||void 0===n?void 0:n.length)<10&&k(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),oe=function(){var e=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!=K){e.next=4;break}x.ZP.error("请选择成员"),e.next=8;break;case 4:return e.next=6,(0,U.xt)(m()(m()({},a),{},{id:K,virtual_classroom_id:a.virtual_spacesId}));case 6:0===e.sent.status&&(x.ZP.success("更换成功"),r({type:"classroomList/setActionTabs",payload:{key:"刷新数据"}}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ce=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(e,t){return(0,N.jsx)(g.ZP,{value:t.numid,checked:K===String(t.numid)})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"username",render:function(e,t){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)(P.Link,{className:"bold c-black",to:"/users/".concat(t.login),target:"_blank",children:e||"--"})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"邮箱",dataIndex:"email",width:100,ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_number",ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school_name",ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"院系/部门",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:e||"--"})})}},{title:"实名认证",dataIndex:"school_name",width:100,render:function(e){return e?"是":"否"}},{title:"最后登录时间",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(e){return(0,N.jsx)(w.Z,{placement:"bottom",title:e,children:(0,N.jsx)("span",{children:B()(e).format("YYYY-MM-DD HH:mm")})})}}];return(0,N.jsxs)(O.Z,{centered:!0,title:"更换管理员",open:"更换管理员"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:oe();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){ee(""),r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,N.jsxs)(v.Z,{layout:"inline",form:E,initialValues:{school_name:"",keyword:""},className:"mt10",children:[(0,N.jsx)(v.Z.Item,{name:"keyword",label:"姓名:",children:(0,N.jsx)(_.Z,{allowClear:!0,style:{width:370},size:"middle",defaultValue:(null===(t=u.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=u.selectArrs)||void 0===n?void 0:n.name)})}),(0,N.jsx)(v.Z.Item,{name:"school_name",label:"单位:",children:(0,N.jsx)("div",{ref:re,children:(0,N.jsx)(H.Z,{options:h,style:{width:400},size:"middle",placeholder:"请输入单位名称",filterOption:function(e,t){return-1!==t.value.toUpperCase().indexOf(e.toUpperCase())}})})}),(0,N.jsx)(v.Z.Item,{children:(0,N.jsx)(S.ZP,{htmlType:"submit",type:"primary",size:"middle",onClick:function(){return function(){var e;if(""===(null===(e=E.getFieldValue())||void 0===e?void 0:e.keyword))return D([]),void x.ZP.error("请输入姓名");se(!1),k(!0),I(!1),ee(""),setTimeout((function(){ae(!0)}),200)}()},children:"搜索"})})]}),ie&&(0,N.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,N.jsx)("img",{src:G.RL,width:"100",alt:""}),(0,N.jsx)("br",{}),(0,N.jsx)("p",{className:"mt20",children:"请搜索要添加的人员"})]}),!ie&&""==V&&!C&&(0,N.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,N.jsx)("img",{src:G.z3,width:"100",alt:""}),(0,N.jsx)("br",{}),(0,N.jsx)("p",{className:"mt20",children:"暂时还没有相关数据哦!"})]}),(!ie&&""!=V||C)&&(0,N.jsxs)("section",{children:[(0,N.jsx)("div",{className:"flexd-table-header mt20",children:(0,N.jsx)(F.Z,{pagination:!1,dataSource:[],columns:ce})}),(0,N.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,N.jsx)(A(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){ae()},hasMore:b,useWindow:!1,children:(0,N.jsx)(F.Z,{loading:C,showHeader:!1,pagination:!1,dataSource:V,columns:ce,onRow:function(e){return{onClick:function(e){var t;e.currentTarget.querySelector("input").disabled||(t=e.currentTarget.querySelector("input").value,t=String(t),ee(t))}}}})})})]})]})})),$=n(89918),Q=["classroomList","globalSetting","virtualSpaces","user","loading","dispatch"],K=(0,P.connect)((function(e){var t=e.classroomList,n=e.loading,i=e.globalSetting,s=e.virtualSpaces,r=e.user;return{classroomList:t,globalSetting:i,loading:n.effects,virtualSpaces:s,user:r}}))((function(e){var t,n=e.classroomList,i=(e.globalSetting,e.virtualSpaces),r=e.user,a=(e.loading,e.dispatch),d=(f()(e,Q),(0,c.useState)([])),p=o()(d,2),m=p[0],h=p[1],v=(0,c.useState)(!1),x=o()(v,2),_=(x[0],x[1],i.virtualSpacesDetails,(0,c.useState)("1")),g=o()(_,2),y=g[0],j=g[1],b=(0,P.useParams)(),w=(0,c.useState)({page:1,limit:16,search:"",virtual_classroom_id:b.virtual_spacesId,module_id:i.actionTabs.module_id}),S=o()(w,2),k=S[0];S[1];function L(){return C.apply(this,arguments)}function C(){return(C=l()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ZP)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/members.json"),{method:"get",params:k});case 2:t=e.sent,h(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){return T.apply(this,arguments)}function T(){return(T=l()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ZP)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/appling_member_list.json"),{method:"get",params:k});case 2:t=e.sent,h(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,c.useEffect)((function(){L()}),[]),(0,c.useEffect)((function(){"刷新数据"===n.actionTabs.key&&(L(),j("1"),a({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:b.virtual_spacesId}}))}),[n.actionTabs.key]),(0,N.jsxs)("div",{className:V.warp,children:[(0,N.jsxs)("div",{className:V.Content,children:[(null==m?void 0:m.total_count)<=0&&(0,N.jsx)(R.Z,{Buttonclass:V.buttonstyle,customText:"此项目还没有成员,立即添加它们吧~"}),null==m||null===(t=m.members)||void 0===t?void 0:t.map((function(e,t){return(0,N.jsxs)("div",{className:V.items,onClick:function(){window.open("/users/".concat(e.login))},children:[(0,N.jsxs)("div",{style:{display:"flex"},children:[(0,N.jsx)("img",{src:Z.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url)}),(0,N.jsxs)("div",{children:[(0,N.jsxs)("div",{style:{fontSize:"16px",display:"flex",fontWeight:600},children:[null==e?void 0:e.name,(null==e?void 0:e.is_creator)&&(0,N.jsx)("div",{className:V.adminsstyle,children:"管理员"})]}),(0,N.jsxs)("div",{style:{fontSize:"14px",color:"#7D8592",marginTop:"7px"},children:[e.school,e.school&&e.department_name&&"-",e.department_name]})]})]}),(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:[((null==e?void 0:e.is_creator)&&r.userInfo.user_id===e.user_id||(0,$.Ny)())&&0===t&&"1"===y&&(null==e?void 0:e.is_creator)&&(0,N.jsxs)("span",{onClick:function(e){e.stopPropagation(),e.preventDefault(),a({type:"classroomList/setActionTabs",payload:{key:"更换管理员",params:k}})},className:V.upadmin,children:[(0,N.jsx)("i",{className:"iconfont icon-genghuanguanliyuan mr5 font14"}),"更换管理员"]}),(null==e?void 0:e.can_remove)&&"1"===y&&(0,N.jsxs)("span",{className:"font14",onClick:function(t){var n;t.stopPropagation(),t.preventDefault(),O.Z.confirm({title:"移除成员",content:"确认将成员《".concat(e.name,"》移出虚拟社区吗?"),okText:"确认",cancelText:"取消",onOk:(n=l()(s()().mark((function t(){return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,u.ZP)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/members/").concat(e.user_id,".json"),{method:"Delete"});case 2:0===t.sent.status&&(L(),a({type:"virtualSpaces/getVirtualSpacesDetails",payload:{id:b.virtual_spacesId}}));case 4:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})})},style:{color:"#3061D0",cursor:"pointer"},children:[(0,N.jsx)("i",{className:"iconfont icon-piliangshanchubeifen mr5 font14"}),"删除成员"]}),!(null!=e&&e.is_creator)&&"2"===y&&(0,N.jsxs)("div",{style:{cursor:"pointer"},children:[(0,N.jsx)("span",{onClick:function(){var t=l()(s()().mark((function t(n){return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.stopPropagation(),n.preventDefault(),t.next=4,(0,u.ZP)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/agree.json"),{method:"post",body:{apply_id:e.source_id}});case 4:0===t.sent.status&&I();case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),className:V.yes,children:"同意"}),(0,N.jsx)("span",{onClick:function(){var t=l()(s()().mark((function t(n){return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.stopPropagation(),n.preventDefault(),t.next=4,(0,u.ZP)("/api/virtual_classrooms/".concat(b.virtual_spacesId,"/refuse.json"),{method:"post",body:{apply_id:e.source_id}});case 4:0===t.sent.status&&I();case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),className:V.no,children:"拒绝"})]})]})]})}))]}),(0,N.jsx)(X,{}),(0,N.jsx)(J,{}),(0,N.jsx)(M.Z,{current:k.page,total:null==m?void 0:m.total_count,style:{textAlign:"end",marginBottom:"20px"},pageSize:k.limit,hideOnSinglePage:!0,onChange:function(e){k.page=e,"1"===y?L():I()}})]})})),ee=(0,P.connect)((function(e){return{globalSetting:e.globalSetting,virtualSpaces:e.virtualSpaces}}))((function(e){var t,n=e.dispatch,i=e.virtualSpaces,r=(0,P.useParams)().virtual_spacesId,a=(0,c.useState)("1"),p=o()(a,2),m=p[0],h=p[1],f=(0,c.useState)(!1),v=o()(f,2),x=v[0],_=v[1];(0,c.useEffect)((function(){g()}),[]);var g=function(){var e=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.ZP)("/api/virtual_classrooms/".concat(r,"/settings_auth.json"),{method:"get"});case 2:0===e.sent.status&&_(!0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=[{id:"1",name:"模块设置"},{id:"2",name:"成员设置",total:null==i||null===(t=i.virtualSpacesDetails)||void 0===t?void 0:t.members_count}];return x?(0,N.jsxs)("div",{className:d,children:[(0,N.jsx)(C.YG,{value:m,onChange:function(e){h(e)},dataSource:y,tabBarExtraContent:"2"===m&&(0,N.jsx)(C.op,{onClick:function(){n({type:"classroomList/setActionTabs",payload:{key:"添加成员",params:{}}})},children:"添加成员"})}),"1"===m&&(0,N.jsx)(E,{}),"2"===m&&(0,N.jsx)(K,{})]}):(0,N.jsx)(N.Fragment,{})}))},88522:function(e,t,n){"use strict";var i=n(92310),s=n.n(i),r=n(47783),l=n(62805),a=n(59301),o=n(53487),c=n(92343),u=n(36355),d=n(57809);const{Option:p}=d.default;function m(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const h=(e,t)=>{const{prefixCls:n,className:i,popupClassName:o,dropdownClassName:h,children:f,dataSource:v}=e,x=(0,r.Z)(f);let _;1===x.length&&(0,c.l$)(x[0])&&!m(x[0])&&([_]=x);const g=_?()=>_:void 0;let y;y=x.length&&m(x[0])?f:v?v.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return a.createElement(p,{key:e,value:e},e);case"object":{const{value:t}=e;return a.createElement(p,{key:t,value:t},e.text)}default:return}})):[];const{getPrefixCls:j}=a.useContext(u.E_),b=j("select",n);return a.createElement(d.default,Object.assign({ref:t,suffixIcon:null},(0,l.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:b,popupClassName:o||h,className:s()(`${b}-auto-complete`,i),mode:d.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:g}),y)},f=a.forwardRef(h),v=(0,o.Z)(f);f.Option=p,f._InternalPanelDoNotUseOrYouWillBeFired=v,t.Z=f},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(59301),r=a(s),l=a(n(12708));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),i=void 0;if(this.props.useWindow){var s=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:s.scrollTop;i=this.props.isReverse?r:this.calculateOffset(e,r)}else i=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;i<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,i=t.element,s=t.hasMore,l=(t.initialLoad,t.isReverse),a=t.loader,o=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,o&&o(t)};var u=[n];return s&&(a?l?u.unshift(a):u.push(a):this.defaultLoader&&(l?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(i,c,u)}}]),t}(s.Component);o.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},o.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=o,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)}}]);