PageSourceSearch

https://app.globalias.in/static/js/78.6c61567d.chunk.js

js globalias.in collected 2026-09-27 05:56:51 UTC 27,591 bytes, 1 lines download raw bytes

1(this["webpackJsonpclassplus-web-react"]=this["webpackJsonpclassplus-web-react"]||[]).push([[78],{1046:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a(1),i=a.n(n),s=a(47);function r(e){const{imageDetails:t,heading:a,subHeading:n,action:r,style:o,disabled:c}=e;return i.a.createElement(s.k,{centered:!0,style:{margin:"0 auto",...o}},a&&i.a.createElement(s.k.Row,{centered:!0,textAlign:"center"},i.a.createElement("img",{style:{...t.style,display:"block",margin:"0 auto"},src:t.src,alt:t.alt||"Empty Screen"})),a&&i.a.createElement(s.k.Row,null,i.a.createElement("h1",{style:{...a.style,color:"#000000",textAlign:"center"}},a.text)),n&&i.a.createElement(s.k.Row,{style:{padding:"0px"}},i.a.createElement("p",{style:{...n.style,height:"3em",width:"554px",color:"#524E4E",lineHeight:"1.5",textAlign:"center",margin:"0 auto"}},n.text)),r&&i.a.createElement(s.k.Row,{style:{marginTop:"2%"}},i.a.createElement(s.b,{disabled:c,basic:!0,color:c?"grey":"blue",onClick:r.handler},r.text)))}},1084:function(e,t,a){e.exports=a.p+"static/media/crossBtn.87697518.svg"},1178:function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return s})),a.d(t,"c",(function(){return r})),a.d(t,"f",(function(){return o})),a.d(t,"e",(function(){return c})),a.d(t,"b",(function(){return l})),a.d(t,"g",(function(){return h}));var n=a(171);function i(e){return{type:n.a,payload:e}}function s(e){return{type:n.c,students:e}}function r(e){return{type:n.d,studentRequests:e}}function o(e){return{type:n.g,addStudentModeModalStatus:e}}function c(e){return{type:n.h,addStudentManuallyModalStatus:e}}function l(e){return{type:n.b,students:e}}function h(e){return{type:n.f,fetchingStudentsStatus:e}}},1270:function(e,t,a){"use strict";var n=a(1),i=a.n(n),s=a(140),r=(a(115),a(1385)),o=a(459),c=a(1275),l=(a(1818),a(47)),h=a(1819),d=a.n(h);var p=e=>i.a.createElement("div",null,i.a.createElement(l.u,{size:"mini",open:e.openExpiryNotification,closeOnEscape:!1,closeOnDimmerClick:!1,dimmer:!0},i.a.createElement(l.u.Content,{style:{marginTop:0,padding:"1rem"}},i.a.createElement(l.k,{stretched:!0,style:{padding:0}},i.a.createElement("img",{src:d.a,style:{padding:0,width:"100%"}}),i.a.createElement("br",null),i.a.createElement(l.k,{style:{padding:"2rem"}},i.a.createElement("p",{style:{fontSize:"20px",fontWeight:"600"}}," ","Notification sent!"," "),i.a.createElement("br",null),i.a.createElement("p",null,"We have sent a notification on your institute\u2019s application on your mobile phone.",i.a.createElement("br",null),"Please tap on the notification to instantly renew your subscription."),i.a.createElement(l.k.Row,null,i.a.createElement(l.k.Column,{style:{textAlign:"center"}},i.a.createElement(l.k.Row,null,i.a.createElement(l.b,{style:{width:"100%",borderRadius:"18px",margin:"0px"},primary:!0,onClick:()=>e.showExpiryNotificationModal(!1)},"Got it")))))))));class u extends n.Component{constructor(e){super(e),this.onClickOfClose=this.onClickOfClose.bind(this),this.onClickOfContactSales=this.onClickOfContactSales.bind(this),this.onHelpAndSupportClick=this.onHelpAndSupportClick.bind(this)}onClickOfContactSales(e){e.preventDefault(),this.props.sendNotification(!0),this.props.showPremiumExpiryModal(!1)}onHelpAndSupportClick(e){e.preventDefault(),this.props.showPremiumExpiryModal(!1),this.props.openConnectModal(!0)}onClickOfClose(e){e.preventDefault(),this.props.showPremiumExpiryModal(!1)}render(){var e,t;const a=this.props.premiumExpireModal&&this.props.premiumExpireModal.modalOpen,{premiumStatus:n,premiumType:s,upgradeToPro:o}=this.props;let c,l,h,d;return 0==n&&"premium"==s&&(c=o&&o.imageUrl,l=o&&o.title,h=o&&o.description,d=o&&o.cta),i.a.createElement(i.a.Fragment,null,i.a.createElement(r.a,Object.assign({openModal:a,onClickOfContactSales:this.onClickOfContactSales,onCancelClick:this.onClickOfClose},this.props,{upgradeToProImage:c,headingText:l,descriptionText:h,upgradeToProCTA:d,onHelpAndSupportClick:this.onHelpAndSupportClick})),i.a.createElement(p,{showPremiumExpiryModal:this.props.showPremiumExpiryModal,openExpiryNotification:null===(e=this.props)||void 0===e||null===(t=e.premiumExpireModal)||void 0===t?void 0:t.openExpiryNotification,showExpiryNotificationModal:this.props.showExpiryNotificationModal}))}}t.a=Object(s.connect)((function(e){let{premiumExpireModal:t,persistedData:a}=e;return{premiumExpireModal:t,upgradeToPro:a&&a.upgradeToPro,premiumType:a&&a.premiumType,premiumStatus:a&&a.premiumStatus}}
1),{showPremiumExpiryModal:o.c,openConnectModal:c.b,showExpiryNotificationModal:o.b,sendNotification:o.a})(u)},1384:function(e,t,a){"use strict";var n=a(1),i=a.n(n),s=a(8),r=a.n(s),o=a(106),c=a.n(o),l=a(230),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e};function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}var u=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},m=function(e){function t(){var a,n;d(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return a=n=p(this,e.call.apply(e,[this].concat(s))),n.handleClick=function(e){if(n.props.onClick&&n.props.onClick(e),!e.defaultPrevented&&0===e.button&&!n.props.target&&!u(e)){e.preventDefault();var t=n.context.router.history,a=n.props,i=a.replace,s=a.to;i?t.replace(s):t.push(s)}},p(n,a)}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),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),a=e.innerRef,n=function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(e,["replace","to","innerRef"]);c()(this.context.router,"You should not use <Link> outside a <Router>"),c()(void 0!==t,'You must specify the "to" property');var s=this.context.router.history,r="string"===typeof t?Object(l.b)(t,null,null,s.location):t,o=s.createHref(r);return i.a.createElement("a",h({},n,{onClick:this.handleClick,href:o,ref:a}))},t}(i.a.Component);m.propTypes={onClick:r.a.func,target:r.a.string,replace:r.a.bool,to:r.a.oneOfType([r.a.string,r.a.object]).isRequired,innerRef:r.a.oneOfType([r.a.string,r.a.func])},m.defaultProps={replace:!1},m.contextTypes={router:r.a.shape({history:r.a.shape({push:r.a.func.isRequired,replace:r.a.func.isRequired,createHref:r.a.func.isRequired}).isRequired}).isRequired},t.a=m},1385:function(e,t,a){"use strict";var n=a(1),i=a.n(n),s=a(47),r=a(1416),o=a.n(r),c=a(1084),l=a.n(c);const h={position:"absolute",top:"16px",right:"4px",zIndex:"1",cursor:"pointer"};t.a=e=>{let{headingText:t,buttonTitle:a,onHelpAndSupportClick:n,onClickOfContactSales:r,openModal:c,upgradeToProImage:d,upgradeToProCTA:p,showPremiumExpiryModal:u}=e;return i.a.createElement("div",null,i.a.createElement(s.u,{size:"mini",open:c,closeOnEscape:!1,closeOnDimmerClick:!0},i.a.createElement(s.u.Content,{style:{marginTop:0,padding:"1rem"}},i.a.createElement(s.k,{stretched:!0,style:{padding:0,position:"relative"}},i.a.createElement("img",{src:l.a,alt:"",style:h,onClick:()=>{u(!1)}}),i.a.createElement(s.o,{wrapped:!0,size:"huge",src:d||o.a,style:{padding:0}}),i.a.createElement("br",null),i.a.createElement(s.k,{style:{padding:"2rem"}},i.a.createElement("h1",null," ",t||"Oops!"," "),i.a.createElement("br",null),i.a.createElement("p",null,"Your app subscription has expired.",i.a.createElement("br",null),"Extend your subscription to access your app features smoothly.",i.a.createElement("br",null),"Click on the notify me button and we will assist you to renew the subscription."),i.a.createElement(s.k.Row,null,i.a.createElement(s.k.Column,{style:{textAlign:"center"}},i.a.createElement(s.k.Row,null,i.a.createElement(s.b,{primary:!0,onClick:r,style:{width:"100%",borderRadius:"18px",margin:"0px"}}," ",a||p&&p.cta&&p.cta.text||"Notify Me"," ")),i.a.createElement(s.k.Row,null,i.a.createElement("br",null),i.a.createElement("a",{style:{textDecorationLine:"underline",color:"#009AE0",fontSize:"14px",fontWeight:"500",cursor:"pointer"},onClick:n},"Contact Help & Support"," ")))))))))}},1416:function(e,t,a){e.exports=a.p+"static/media/premiumExpire.8254e920.png"},2494:function(e,t,a){},2495:function(e,t,a){e.exports=a.p+"static/media/batches.d08f2ef2.svg"},2496:function(e,t,a){e.exports=a.p+"static/media/sortBatch.95760469.svg"},2670:function(e,t,a){"use strict";var n=a(1),i=a.n(n),s=a(47),r=a(225),o=a.n(r),c=a(2796),l=a(140),h=a(1384),d=a(456),p=a(1178),u=a(2249);var m=Object(c.a)(Object(l.connect)(void 0,{manageAddStudentModeModal:p.f})(e=>{let{batchCode:t,students:a,studentRequests:n,history:r,currentStudentsCount:o,batchId:c}=e;const{t:l}=Object(u.a)();return i.a.createElement("div",{style:{paddingTop:"2%",display:"flex",alignItems:"flex-start",flexDirection:"column",width:"100%",justifyContent:"center"}},i.a.createElement("div",null,i.a.createElement("p",{style:n>=1?{visibility:"visible",fontSize:"0.9rem",marginBottom:"10%"}:{visibility:"hidden",fontSize:"0.9rem",marginBottom:"10%"}},i.a.createElement(h.a,{to:`/batches/${c}/${t}/overview`},n," ",l("components.batchListHolder.batchCard.tutorBatchMetaData.asked","asked to join")))),a.length?i.a.createElement("div",{style:{display:"flex",alignItems:"center"}},a[0]&&i.a.createElement(d.a,{user:{name:a[0].name,imageUrl:a[0].imageUrl||!1}}),a[1]&&i.a.createElement(d.a,{user:{name:a[1].name,imageUrl:a[1].imageUrl||!1},collection:!0}
1),a[2]&&i.a.createElement(d.a,{user:{name:a[2].name,imageUrl:a[2].imageUrl||!1},collection:!0}),i.a.createElement("p",{style:{display:"inline-block",color:"grey"},className:"ml-2"},o>0?o:null,o>1?l("components.batchListHolder.batchCard.tutorBatchMetaData.students"," students"):null,1===o?l("components.batchListHolder.batchCard.tutorBatchMetaData.singleStudent"," student"):null)):i.a.createElement(i.a.Fragment,null,i.a.createElement("a",{href:"javascript:;",onClick:()=>{r.push(`/batches/${c}/${t}/overview`)}},a.length?"":i.a.createElement(s.b,{icon:"plus",circular:!0}),a.length?"":i.a.createElement("span",{style:{color:"grey"}}," ",l("components.batchListHolder.batchCard.tutorBatchMetaData.add","Add Students")))))}));var b=e=>{let{owner:t}=e;return i.a.createElement("div",null,i.a.createElement(d.a,{user:t}),i.a.createElement("span",{style:{color:"grey"}},"\xa0\xa0",t.name))};a(2494);var f=Object(c.a)(e=>{let{batch:t,userType:a,onBatchCardClick:n,archivedBatchTag:r}=e;const{name:o,batchCode:c,ownerName:l,courseName:h,subjectName:d,students:p,requestedStudentsCount:f,tutorImageUrl:g,batchType:y,currentStudentsCount:C,batchId:E}=t,{t:S}=Object(u.a)(),v={name:l,imageUrl:g};return i.a.createElement("div",{style:{margin:"3px"}},i.a.createElement(s.c,{raised:!0,style:{width:"100%",margin:"0 0 32px 0",minHeight:"200px",position:"relative",boxShadow:"rgba(0, 0, 0, 0.12) 0px 1px 4px",borderRadius:"2px",padding:"24px"},onClick:()=>n(t)},i.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:"12px",width:"100%"},className:"ToolTip"},i.a.createElement("p",{className:r?"batch-heading-archived":"batch-heading"},o),r&&o.length>18||o.length>18?i.a.createElement("span",{className:"ToolTipText"},o):null,r?i.a.createElement("div",{className:"tag_archived"},S("components.batchListHolder.batchCard.archiveHeading","ARCHIVED")):null),i.a.createElement(s.c.Meta,null,i.a.createElement("div",{className:"batch-card-subheading"},i.a.createElement("div",{className:"courseName"},i.a.createElement("span",null,a&&3===a?h||S("components.batchListHolder.batchCard.noCourse","No Course"):h||null)),i.a.createElement("div",{className:"subjectName",style:{paddingTop:"10px "}},i.a.createElement("span",null,a&&3===a?d||S("components.batchListHolder.batchCard.noSubject","No Subject"):d||null)),d&&d.length>22?i.a.createElement("span",{className:"ToolTipSubject"},d):null)),i.a.createElement(s.c.Content,{style:{padding:"12px 0 0 0",border:"0",display:"flex",alignItems:"flex-end"}},a&&3===a?i.a.createElement(m,{batchCode:""+c,batchType:y,students:p||[],courseName:h,studentRequests:f||[],currentStudentsCount:C,batchId:E}):!a||2!=a&&1!=a?null:i.a.createElement(b,{owner:v}))))}),g=a(1046),y=a(2495),C=a.n(y),E=a(49),S=a(1023),v=a.n(S);t.a=Object(c.a)(e=>{let{batchList:t,user:a,searching:n,searchLoader:r,isLoading:c,searchWord:l,push:h,onBatchCardClick:d,batchImageUrls:p,fetchBatchDetails:m,noMore:b,archivedBatchTag:y,oneTimeBasicScreen:S,...x}=e;const{t:B}=Object(u.a)();if(n&&a){if(!(r||t&&t.length))return i.a.createElement(g.a,{imageDetails:{src:C.a,alt:"no batches",style:{}},heading:{text:B("components.batchListHolder.text","You don't have any batches to display here"),style:{}},subHeading:a.type===E.t.tutor&&{text:B("components.batchListHolder.subheading","It's a little lonely around here. Why not add some batches?"),style:{}},action:a.type===E.t.tutor&&!x.match.path.split("/").includes("archiveBatches")&&{handler:()=>h("/batches/new"),text:B("components.batchListHolder.actionText","Create a new batch for")`${l}`}});if(n&&r)return i.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"80vh",width:"100%"}},i.a.createElement(s.r,{active:!0,inline:"centered",content:B("components.batchListHolder.fetchingBatch","Fetching batches")}))}else{if(!(n||c||t&&t.length))return i.a.createElement(g.a,{style:{marginTop:"60px"},imageDetails:{src:C.a,alt:"no batches",style:{width:"120px"}},heading:{text:B("components.batchListHolder.emptyText","You don't have any batches to display here"),style:{fontStyle:"normal",fontWeight:"500",fontSize:"24px",lineHeight:"24px",opacity:"0.87"}}});if(!n&&c)return i.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"80vh",width:"100%"}},i.a.createElement(s.r,{active:!0,inline:"centered",content:B("components.batchListHolder.loading","Fetching batches")}))}return i.a.createElement("div",{style:S?{width:"80%"}:{width:"100%"}},i.a.createElement(v.a,{next:m,hasMore:!b,loader:i.a.createElement(s.k,{centered:!0},i.a.createElement(s.k.Column,{stretched:!0,width:10},!c&&i.a.createElement(s.r,{active:!0,inline:"centered"}
1))),style:{overflow:"hidden",width:"100%"}},i.a.createElement("div",{style:{display:"grid",gridTemplateColumns:""+(S?"repeat(3,31.2%)":"repeat(4,23.2%)"),width:"100%",gridColumnGap:"2.4%",paddingBottom:"100px"}},t.map(e=>{const t=o.a.get(p,""+e.batchId,null);return i.a.createElement(f,{archivedBatchTag:y,batchImageUrl:t,onBatchCardClick:d,key:e.batchCode,userType:a&&a.type,batch:e})}))))})},2958:function(e,t,a){},3438:function(e,t,a){"use strict";a.r(t);var n=a(1),i=a.n(n),s=a(47),r=a(2796),o=a(1028),c=a(140),l=a(151),h=a(1037),d=a(225),p=a.n(d),u=a(2670),m=a(5),b=a(1021),f=a(2249);var g=function(e){let{isLoading:t,isOpen:a,closeJoinBatchModal:n,disableSubmit:r,handleChange:o,handleSubmit:c}=e;const{t:l}=Object(f.a)();return i.a.createElement("div",null,i.a.createElement(b.a,{open:a,size:"tiny",style:{paddingBottom:"1em"},onClose:n},i.a.createElement(s.u.Header,{style:{borderRadius:"4px 4px 0"}},l("components.JoinBatchModal.joinABatch","Join a batch")),i.a.createElement(s.u.Content,null,i.a.createElement("span",{style:{display:"block",marginBottom:"4px",fontSize:".92857143em",fontWeight:"700"}},l("components.JoinBatchModal.batchCode","Batch Code")),i.a.createElement(s.p,{fluid:!0,size:"mini",placeholder:l("components.JoinBatchModal.example","e.g")+" Phy12345",onChange:o}),i.a.createElement("p",{style:{fontSize:".8em",color:"#000000",opacity:"0.6",paddingTop:"8px",marginBottom:"40px"}},l("components.JoinBatchModal.dontHaveABatchCode","Don't have a batch code? Ask your tutor for the same")),i.a.createElement(s.b,{style:{display:"flex",alignItems:"center",fontSize:"14px"},primary:!0,size:"mini",floated:"right",loading:t,disabled:r,onClick:c},l("components.JoinBatchModal.reqToJoin","Request to Join")))))},y=a(249);function C(e){return{type:y.e,payload:e}}var E=a(67),S=a(38),v=(a(254),a(2780));class x extends n.Component{constructor(e){super(e),this.handleInputChange=this.handleInputChange.bind(this),this.onAPICallSuccess=this.onAPICallSuccess.bind(this),this.handleBatchRequest=this.handleBatchRequest.bind(this)}onAPICallSuccess(){const{t:e}=this.props;this.props.closeAndClearModal(),m.toastr.success(e("Containers.Joinnewbatch.index.toastr.RequestSent","Request Sent"),e("Containers.Joinnewbatch.index.toastr.success","You have successfully requested for batch"))}handleInputChange(e){const{value:t}=e.target;!/^[a-z0-9]+$/i.test(t)||t.length<4?this.props.enableSubmit(!1):(this.props.setBatchValue(t),this.props.enableSubmit(!0))}handleBatchRequest(e){Object(E.a)(S.db),e.preventDefault();const t=this.props.batchCode,{t:a}=this.props;return/^[a-z0-9]+$/i.test(t)?t.length<4?m.toastr.warning(a("Containers.Joinnewbatch.index.toastr.InvalidBatchCode","Invalid Batch Code"),a("Containers.Joinnewbatch.index.toastr.WarningMinChar","Batch code should be minimum 4 chars long")):(this.props.showLoading(!0),void this.props.makeApiCall(`/students/batches/${t}/requests`,"POST",void 0,e=>{this.onAPICallSuccess()},e=>{this.props.showLoading(!1),m.toastr.error(a("Containers.Joinnewbatch.index.toastr.Error","Error"),e.data.message)},!0)):m.toastr.warning(a("Containers.Joinnewbatch.index.toastr.InvalidBatchCode","Invalid Batch Code"),a("Containers.Joinnewbatch.index.toastr.WarningAlphanumeric","Batch code should be alphanumeric"))}render(){const{isLoading:e,isOpen:t,disableSubmitBtn:a}=this.props;return i.a.createElement(g,{isLoading:e,isOpen:t,closeJoinBatchModal:this.props.closeAndClearModal,disableSubmit:a,handleChange:this.handleInputChange,handleSubmit:this.handleBatchRequest})}}var B=Object(c.connect)((function(e){let{joinNewBatch:t}=e;return{isLoading:t.isLoading,isOpen:t.isOpen,disableSubmitBtn:t.disableSubmitBtn,batchCode:t.batchCode}}),{showModal:C,showLoading:function(e){return{type:y.d,payload:e}},enableSubmit:function(e){return{type:y.b,payload:e}},closeAndClearModal:function(){return{type:y.a}},setBatchValue:function(e){return{type:y.c,payload:e}},makeApiCall:l.b})(Object(v.a)()(x)),w=a(438);var k=a(4),T=a(459),O=a(1270),M=a(2496),L=a.n(M),A=a(1024),N=a.n(A),I=(a(2958),a(2292)),D=a(83),j=a(68);class R extends n.Component{constructor(e){super(e),this.container=i.a.createRef(),this.handleClickOutsideSort=e=>{this.container.current&&!this.container.current.contains(e.target)&&this.setState({batchListSortClicked:!1})}
1,this.onBatchCardClick=e=>{const{history:t}=this.props;Object(E.a)(S.Q,{batchId:e.batchId,batchCode:e.batchCode,batchName:e.name}),t.push(`/batches/${e.batchId}/${e.batchCode}/overview`)},this.handleSearchOnChange=e=>{this.state.searchingTimeout&&clearTimeout(this.state.searchingTimeout),this.setState({searchState:!0,searchWord:e.target.value,searching:!0,searchLoader:!0,allBatches:[],offset:0,searchingTimeout:setTimeout(()=>{this.fetchBatchDetails()},500)})},this.isStoreEnabled=()=>!!p.a.get(this.props,"persistedData.organization.isStoreEnabled",!1),this.fetchOnlineBatchImageUrls=e=>{const t=this.isStoreEnabled();if(!e.length||!t)return;const a=k.o;this.props.makeApiCall(a,"POST",{batchIds:e},e=>{this.setState({onlineBatchImageUrls:e.data})},void 0,!1,{appendStudentId:!0})},this.handleSortClick=()=>{this.setState({offset:0,searching:!0,searchLoader:!0,allBatches:[]},()=>{this.fetchBatchDetails()})},this.handleSearch=()=>{this.fetchBatchDetails()},this.handleBatchListSort=()=>{this.setState({batchListSortClicked:!this.state.batchListSortClicked})},this.clearSearchBox=()=>{this.setState({searchWord:"",searching:!0,searchLoader:!0,allBatches:[],offset:0,searchingTimeout:setTimeout(()=>{this.fetchBatchDetails()},500)})},this.handleCoachMark=e=>{this.setState({coachMarkId:e})},this.state={isLoading:!0,baseUrl:"",searchWord:"",searching:!1,batchListSortClicked:!1,onlineBatchImageUrls:[],limit:20,offset:0,noMore:!1,allBatches:[],searchingTimeout:0,sortBy:"createdAt",totalBatchesCount:"",archivedBatchesCount:0,searchState:!1,batchModal:!1,create:!1,duplicate:!1,subjectModal:!1,isSetup:!0,coachMarkId:1},this.fetchBatchDetails=this.fetchBatchDetails.bind(this),this.dataSuccessHandle=this.dataSuccessHandle.bind(this),this.setUserSpecificURL=this.setUserSpecificURL.bind(this),this.handleSearchOnChange=this.handleSearchOnChange.bind(this),this.handleCreateNewBatch=this.handleCreateNewBatch.bind(this),this.handleJoinNewBatch=this.handleJoinNewBatch.bind(this)}componentWillMount(){this.setUserSpecificURL()}componentDidMount(){this.fetchBatchDetails(),localStorage.removeItem("courseTab"),localStorage.removeItem("freeStudyMaterial"),document.addEventListener("mousedown",this.handleClickOutsideSort)}componentWillUnmount(){document.removeEventListener("mousedown",this.handleClickOutsideSort)}componentDidUpdate(e){var t,a;const n=this.props.selectStudentFromDropDown,i=e.selectStudentFromDropDown,s=n&&n.defaultSelected,r=i&&i.defaultSelected;i&&n&&null!==(t=this.props)&&void 0!==t&&null!==(a=t.persistedData)&&void 0!==a&&a.token&&s!==r&&this.setState({offset:0,totalBatchesCount:"",archivedBatchesCount:0,allBatches:[],noMore:!1},()=>this.fetchBatchDetails())}setUserSpecificURL(){let e=k.k;this.setState({baseUrl:e})}dataSuccessHandle(e){this.setState(t=>{if(e.data.totalBatches){let a=[...t.allBatches,...e.data.totalBatches];return{offset:t.offset+t.limit,totalBatchesCount:e.data.batchesCount,archivedBatchesCount:e.data.archivedBatchesCount,allBatches:a,searching:!1,isLoading:!1,noMore:e.data.batchesCount===a.length}}{let a=[...e.data];return{offset:t.offset+t.limit,totalBatchesCount:e.data.length,archivedBatchesCount:e.data.archivedBatchesCount,allBatches:a,searching:!1,isLoading:!1,noMore:!0}}},()=>{this.props.saveAllBatches(p.a.orderBy(this.state.allBatches,[e=>e.name.toLowerCase()],["asc"]))})}fetchBatchDetails(e){if(e){let{limit:t,offset:a}=this.state,n=`?limit=${t}&offset=${a}`;this.props.makeApiCall(e+n,"GET",void 0,e=>{this.dataSuccessHandle(e)},void 0,!1,{appendStudentId:!0})}else{const{limit:e,offset:t,searchWord:a,baseUrl:n,sortBy:i}=this.state;let s=`?limit=${e}&offset=${t}`;a&&(s+="&search="+a),i&&(s=s+"&sortBy="+i),this.props.makeApiCall(n+s,"GET",void 0,e=>{this.dataSuccessHandle(e)},void 0,!1,{appendStudentId:!0})}}handleCreateNewBatch(){Object(E.a)(S.J),Object(D.b)(j.R);const{persistedData:e}=this.props;return e&&e.premiumStatus?this.props.history.push({pathname:"/batches/new",state:{totalBatchesCount:this.state.totalBatchesCount}}):this.props.showPremiumExpiryModal(!0)}handleJoinNewBatch(){Object(E.a)(S.cb),this.props.showModal(!0)}render(){const{isLoading:e,searching:t,searchWord:a,allBatches:n,searchState:r}=this.state,{persistedData:o,t:c}=this.props,l=o&&o.user||null,d=n;return o&&e?i.a.createElement(s.k,{verticalAlign:"middle",style:{height:"90vh"}},i.a.createElement(s.k.Column,{stretched:!0,width:16},i.a.createElement(s.r,{active:!0,inline:"centered",content:c("containers.AllBatches.fetchingBatches","Fetching Batches")}))):i.a.createElement("div",null,i.a.createElement(h.Helmet,null,i.a.createElement("meta",{charSet:"utf-8"}),i.a.createElement("title",null,c("containers.AllBatches.title","All Batches")," ")),i.a.createElement(B,null),i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:" flexrow BorderBatch",style:{margin:"0 10%"}},i.a.createElement("div",{className:"flexrow alignCenter",style:{marginTop:"60px",width:"100%","justify-content":"space-between"},ref:e=>{this.batchRef=e}},i.a.createElement("span",{"data-cy":"batch_listing",style:{fontWeight:"500",fontSize:"1.1rem"}},c("containers.AllBatches.batches","BATCHES")," ","(",this.state.totalBatchesCount,")"),i.a.createElement("div",{style:{display:"flex",alignItems:"center"}},i.a.createElement(s.p,{transparent:!0,icon:"search",value:a,onChange:this.handleSearchOnChange,iconPosition:"left",placeholder:c("containers.AllBatches.searchForBatches","Search for Batches"),style:{"font-size":"14px","line-height":"17px",color:"#989898"},disabled:d&&d.batches&&0===d.batches.length}),!0===r&&""!==a?i.a.createElement("img",{src:N.a,alt:"ClearIcon",style:{margin:"0em",curs
1or:"pointer",opacity:.7},onClick:this.clearSearchBox}):""),i.a.createElement("div",{style:{display:"flex",width:"25%",justifyContent:"flex-end"}},i.a.createElement(s.h,{item:!0,icon:i.a.createElement("div",{style:{display:"flex",alignItems:"center",padding:"10px 20px",background:"white",border:"1px solid #E5E5E5",boxSizing:"border-box",borderRadius:"4px",whiteSpace:"nowrap"},ref:this.container},i.a.createElement("img",{src:L.a}),i.a.createElement("p",{style:{marginLeft:"10px"}},c("containers.AllBatches.sort","Sort"))),style:{display:"flex"}},i.a.createElement(s.h.Menu,null,i.a.createElement("div",{className:"batchListSort_option",onClick:()=>this.setState({sortBy:"createdAt"},()=>{this.handleSortClick()})},i.a.createElement("input",{type:"radio",checked:"createdAt"===this.state.sortBy,className:"batchListSort_radio"}),i.a.createElement("p",{className:"batchListSortText"},l&&3==l.type?c("containers.AllBatches.recentlyCreated","Recently Created"):c("containers.AllBatches.recentlyAdded","Recently Added"))),i.a.createElement("div",{className:"batchListSort_option",onClick:()=>this.setState({sortBy:"batchName"},()=>{this.handleSortClick()})},i.a.createElement("input",{type:"radio",value:this.state.sortBy,checked:"batchName"===this.state.sortBy,className:"batchListSort_radio"}),i.a.createElement("p",{className:"batchListSortText"},c("containers.AllBatches.batchName","Batch Name"))))),l&&3===l.type&&"premium"===(null===o||void 0===o?void 0:o.premiumType)&&i.a.createElement("div",{style:{marginLeft:"24px",display:"flex",alignItems:"center",whiteSpace:"nowrap"},onClick:this.handleCreateNewBatch,className:"btn btn-primary"},"+"," ",c("containers.AllBatches.createBatch","Create Batch")),l&&1===l.type&&i.a.createElement("div",{style:{marginLeft:"24px",display:"flex",alignItems:"center"},className:"btn btn-primary",onClick:this.handleJoinNewBatch},c("containers.AllBatches.requestToJoin","Request To Join"))))),i.a.createElement("div",{style:{display:"flex",justifyContent:"center",flexDirection:"column",margin:"24px 10%"}},i.a.createElement("div",{style:{display:"flex",flexDirection:"row-reverse"}},this.props.oneTimeBasicScreen&&i.a.createElement("div",null,i.a.createElement(I.a,{isSetup:this.props.oneTimeBasicScreen})),i.a.createElement(u.a,{oneTimeBasicScreen:this.props.oneTimeBasicScreen,batchList:d,user:l,searching:t,searchWord:a,push:this.props.history.push,onBatchCardClick:this.onBatchCardClick,fetchBatchDetails:this.fetchBatchDetails,noMore:this.state.noMore,searchLoader:this.state.searchLoader,isLoading:e}))),i.a.createElement("div",{style:{marginTop:"10vh"}},i.a.createElement(O.a,null))))}}t.default=Object(r.a)(Object(c.connect)((function(e){let{persistedData:t,batches:a,selectStudentFromDropDown:n,batchSettings:i,tutorOnBoardingReducer:s}=e;return{persistedData:t,batches:a,selectStudentFromDropDown:n,premiumStatus:t&&t.premiumStatus,permissions:i&&i.permissions,oneTimeBasicScreen:s&&s.mainOnboarding&&s.mainOnboarding.oneTimeBasicScreen}}),{makeApiCall:l.b,saveAllBatches:function(e){return{type:w.b,payload:e}},showModal:C,showPremiumExpiryModal:T.c})(Object(o.a)(Object(v.a)()(R))))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.