1"use strict";(self.webpackChunkoto_courses=self.webpackChunkoto_courses||[]).push([["src_app_modules_Student_conversation-club_conversation-club_module_ts"],{7930:(M,a,i)=>{i.r(a),i.d(a,{ConversationClubModule:()=>P});var g=i(6119),r=i(8096),p=i(3130),t=i(2560),_=i(2340),b=i(8987);let u=(()=>{class n{constructor(o){this.http=o}GetAllClubs(){return this.http.get(`${_.N.ApiUrl}/student/meetings/conversations`)}static#t=this.\u0275fac=function(e){return new(e||n)(t.LFG(b.eN))};static#n=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})();var l=i(4666),v=i(1659),d=i(8054),m=i(9475),f=i(8394);function h(n,s){if(1&n){const o=t.EpF();t.TgZ(0,"section",1)(1,"div",2)(2,"div",3)(3,"div",4),t._UZ(4,"img",5),t.ALo(5,"imgDefault"),t.qZA()(),t.TgZ(6,"div",6)(7,"div",7)(8,"div",8)(9,"h3"),t._uU(10),t.qZA()(),t.TgZ(11,"div",9)(12,"p"),t._uU(13),t.qZA()(),t.TgZ(14,"div",10)(15,"div",11)(16,"p",12),t._uU(17,"Type"),t.qZA(),t.TgZ(18,"h5",13),t._uU(19),t.qZA()(),t.TgZ(20,"div",11)(21,"p",12),t._uU(22,"Starts At"),t.qZA(),t.TgZ(23,"h5",14),t._uU(24),t.qZA()(),t.TgZ(25,"div",11)(26,"p",12),t._uU(27,"Ends At"),t.qZA(),t.TgZ(28,"h5",14),t._uU(29),t.qZA()(),t.TgZ(30,"div",11)(31,"p",12),t._uU(32,"Expires At"),t.qZA(),t.TgZ(33,"h5",14),t._uU(34),t.qZA()()()()(),t.TgZ(35,"div",15)(36,"button",16),t.NdJ("click",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.enter())}),t._uU(37," Start Club "),t.qZA()()()()}if(2&n){const o=t.oxw();t.xp6(4),t.Q6J("alt",o.club.teacher.name)("lazyLoad",t.xi3(5,11,o.club.teacher.image,"./assets/images/man-avatar.svg")),t.xp6(6),t.Oqu(o.club.title),t.xp6(3),t.hij(" ",o.club.description," "),t.xp6(6),t.Oqu(o.club.type),t.xp6(5),t.hij(" ",o.club.starts_at," "),t.xp6(5),t.hij(" ",o.club.ends_at," "),t.xp6(5),t.hij(" ",o.club.expires_at," "),t.xp6(2),t.ekj("disabled",!o.isAllowedToEnter),t.Q6J("disabled",!o.isAllowedToEnter)}}let C=(()=>{class n{constructor(o){this.platformId=o,this.club=void 0,this.isAllowedToEnter=!1}ngOnInit(){if(this.club){const o=(0,d.hh)(this.club.starts_at).getTime(),e=(0,d.hh)(this.club.ends_at).getTime(),c=(new Date).getTime();this.isAllowedToEnter=c>=o&&c<=e}}enter(){(0,l.NF)(this.platformId)&&window.open(this.club?.url,"_blank")}static#t=this.\u0275fac=function(e){return new(e||n)(t.Y36(t.Lbi))};static#n=this.\u0275cmp=t.Xpm({type:n,selectors:[["app-single-club"]],inputs:{club:"club"},decls:1,vars:1,consts:[["class","club club__container",4,"ngIf"],[1,"club","club__container"],[1,"row"],[1,"col-3","col-md-2"],[1,"club__image"],[3,"alt","lazyLoad"],[1,"col-9","col-md-10"],[1,"card__content"],[1,"club__title"],[1,"club__desc"],[1,"club__extras","row","mb-2"],[1,"club__stats","col-6"],[1,"club__stats__title"],[1,""],[1,"club__stats__info"],[1,"col-12"],[1,"club__cta",3,"disabled","click"]],template:function(e,c){1&e&&t.YNc(0,h,38,14,"section",0),2&e&&t.Q6J("ngIf",c.club)},dependencies:[l.O5,m.z1,f.E],styles:[".club__container[_ngcontent-%COMP%]{position:relative;padding:1rem;transition:.2s ease;color:var(--foregroundColor);border-radius:10px;background:var(--color-white);box-shadow:0 3px 15px #3333}.club__image[_ngcontent-%COMP%]{width:65px;height:65px;padding:3px;border-radius:50%;background:var(--secOto)}.club__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;object-fit:cover}.club__desc[_ngcontent-%COMP%]{display:-webkit-box;overflow:hidden;height:60px;margin-bottom:0;color:var(--fontColor);-webkit-box-orient:vertical;-webkit-line-clamp:3}.club__extras[_ngcontent-%COMP%] .club__stats__title[_ngcontent-%COMP%]{font-size:16px;margin-bottom:.4rem;text-transform:uppercase;color:var(--font-color)}.club__extras[_ngcontent-%COMP%] .club__stats__info[_ngcontent-%COMP%]{font-size:1rem;white-space:break-spaces}.club__cta[_ngcontent-%COMP%]{width:100%;padding:1rem;transition:.2s ease;color:var(--color-white);border:none;border-radius:6px;background:var(--secOto);text-shadow:0 1px 2px rgba(0,0,0,.1)}.club__cta[_ngcontent-%COMP%]:hover{background:var(--color-reading)}.club__cta.disabled[_ngcontent-%COMP%]{pointer-events:none;color:var(--color-gray-6);background:var(--semi-gray)}"],changeDetection:0})}return n})();function x(n,s){1&n&&(t.TgZ(0,"div",3)(1,"div",4),t._UZ(2,"app-content-loader",5),t.qZA()())}function Z(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",12),t._UZ(2,"app-single-club",13),t.qZA(),t.BQk()),2&n){const o=s.$implicit;t.xp6(2),t.Q6J("club",o)}}
1function A(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Z,3,1,"ng-container",11),t.BQk()),2&n){const o=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",o.AllClubs)}}function T(n,s){1&n&&(t.TgZ(0,"div",14),t._uU(1," No Conversation Clubs yet "),t.qZA())}function w(n,s){if(1&n&&(t.TgZ(0,"div",6)(1,"div",7)(2,"div",8),t._uU(3," Conversation Club "),t.qZA()(),t.YNc(4,A,2,1,"ng-container",9),t.YNc(5,T,2,0,"ng-template",null,10,t.W1O),t.qZA()),2&n){const o=t.MAs(6),e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.AllClubs.length>0)("ngIfElse",o)}}const y=[{path:"",component:(()=>{class n{constructor(o){this.conversationClubService=o,this.loading=!0,this.AllClubs=[]}ngOnInit(){this.conversationClubService.GetAllClubs().subscribe(o=>{this.AllClubs=o.data,this.loading=!1})}static#t=this.\u0275fac=function(e){return new(e||n)(t.Y36(u))};static#n=this.\u0275cmp=t.Xpm({type:n,selectors:[["app-conversation-club-page"]],decls:3,vars:2,consts:[[1,"club__container","container"],["class","row justify-content-center",4,"ngIf"],["class","row g-5",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-12","col-md-8"],["type","teachers-cards"],[1,"row","g-5"],[1,"col-12"],[1,"page__title"],[4,"ngIf","ngIfElse"],["elseBlock",""],[4,"ngFor","ngForOf"],[1,"col-12","col-md-6"],[3,"club"],[1,"badge-content",2,"font-size","13px"]],template:function(e,c){1&e&&(t.TgZ(0,"section",0),t.YNc(1,x,3,0,"div",1),t.YNc(2,w,7,2,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",c.loading),t.xp6(1),t.Q6J("ngIf",!c.loading))},dependencies:[l.sg,l.O5,v.H,C],styles:[".club__container[_ngcontent-%COMP%]{margin:1rem auto;padding:1rem}.badge-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-flow:row;flex-wrap:nowrap;font-size:var(--font-size-22);font-weight:var(--fw-bold);color:var(--color-writing)}"]})}return n})(),pathMatch:"full"},{path:"**",component:p.w}];let O=(()=>{class n{static#t=this.\u0275fac=function(e){return new(e||n)};static#n=this.\u0275mod=t.oAB({type:n});static#o=this.\u0275inj=t.cJS({imports:[r.Bz.forChild(y),r.Bz]})}return n})(),P=(()=>{class n{static#t=this.\u0275fac=function(e){return new(e||n)};static#n=this.\u0275mod=t.oAB({type:n});static#o=this.\u0275inj=t.cJS({providers:[u],imports:[O,g.m]})}return n})()}}]); 2//# sourceMappingURL=src_app_modules_Student_conversation-club_conversation-club_module_ts.81a29d9d0395e3c5.js.map
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.