1"use strict";(self.webpackChunkiko=self.webpackChunkiko||[]).push([[4076],{44076:(x,d,i)=>{i.r(d),i.d(d,{SchoolRecreationalBookingsModule:()=>G});var r=i(65056),c=i(24424),h=i(33464),t=i(34896),u=i(93072),v=i(5892),g=i(72584),m=i(80592),p=i(30624),R=i(89852);function k(e,a){1&e&&(t.I0R(0,"div",2),t.OEk(1,"No bookings yet"),t.C$Y())}function C(e,a){if(1&e){const o=t.KQA();t.I0R(0,"tr",15)(1,"td",16)(2,"div"),t.OEk(3),t.C$Y(),t.I0R(4,"div")(5,"a",17),t.OEk(6),t.C$Y()(),t.I0R(7,"div")(8,"a",17),t.OEk(9),t.C$Y()()(),t.I0R(10,"td")(11,"div"),t.OEk(12),t.C$Y(),t.I0R(13,"div",18),t.OEk(14),t.C$Y(),t.I0R(15,"div",19),t.OEk(16),t.C$Y()(),t.I0R(17,"td"),t.OEk(18),t.wVc(19,"i18nDate"),t.C$Y(),t.I0R(20,"td",20)(21,"a",21),t.qCj("click",function(){const l=t.usT(o).$implicit,Y=t.GaO(3);return t.CGJ(Y.openCertForm(l.uid,l.nid,l.id))}),t.OEk(22," Certify Student "),t.C$Y()()()}if(2&e){const o=a.$implicit;t.yG2(3),t.MjK("",o.field_first_name," ",o.field_surname," (",o.uid,")"),t.yG2(2),t.E7m("href","mailto:"+o.mail,t.K6U),t.yG2(),t.oRS(" ",o.mail," "),t.yG2(2),t.E7m("href","https://api.whatsapp.com/send/?phone="+o.field_phone.replace("+",""),t.K6U),t.yG2(),t.oRS(" ",o.field_phone," "),t.yG2(3),t.oRS(" ",o.title," "),t.yG2(2),t.oRS(" ",o.field_course_duration," "),t.yG2(2),t.CAO(" ",o.field_course_template_variation,": ",o.field_class_size," "),t.yG2(2),t.oRS(" ",t.g7$(19,12,o.created,"dd MMMM yyyy")," ")}}function y(e,a){if(1&e&&(t.I0R(0,"div",10)(1,"table",11)(2,"thead",12)(3,"tr")(4,"th",13),t.OEk(5,"Student"),t.C$Y(),t.I0R(6,"th",13),t.OEk(7,"Booked course"),t.C$Y(),t.I0R(8,"th",13),t.OEk(9,"Booked Date"),t.C$Y(),t.I0R(10,"th",2),t.OEk(11,"Actions"),t.C$Y()()(),t.I0R(12,"tbody"),t.yuY(13,C,23,15,"tr",14),t.C$Y()()()),2&e){const o=t.GaO(2);t.yG2(13),t.E7m("ngForOf",o.recreationalBookings)}}function I(e,a){1&e&&(t.I0R(0,"div",22),t.wR5(1,"circular-spinner",23),t.C$Y())}function S(e,a){if(1&e&&(t.I0R(0,"div",1)(1,"h1",2),t.OEk(2,"Recreational Courses"),t.C$Y(),t.I0R(3,"div",3)(4,"a",4),t.OEk(5,"Packages"),t.C$Y()(),t.I0R(6,"div",5),t.OEk(7," These are booking inquiries sent to you through the IKO website but do not guarantee a final reservation. Please contact your prospect(s) with the information provided in your recreational courses dashboard to confirm the booking as soon as possible. "),t.C$Y(),t.wR5(8,"div",6),t.yuY(9,k,2,0,"div",7)(10,y,14,1,"div",8)(11,I,2,0,"div",9),t.C$Y()),2&e){const o=t.GaO();t.yG2(9),t.E7m("ngIf",0===(null==o.recreationalBookings?null:o.recreationalBookings.length)),t.yG2(),t.E7m("ngIf",(null==o.recreationalBookings?null:o.recreationalBookings.length)>0),t.yG2(),t.E7m("ngIf",o.isLoading)}}const f=[{path:"",component:(()=>{class e{constructor(o,n){this.viewService=o,this.navDataService=n,this.rolesService=(0,t.uUt)(u.q4),this.isLoading=!1}ngOnInit(){const o=this.rolesService.isSchool&&this.rolesService.userHasRole(["suspended","pending"],!0);this.rolesService.userHasRole(["admin","office"],!0)||o?this.navDataService.navigate("/dashboard"):this.getRecreationalBookings()}getRecreationalBookings(){this.isLoading=!0,this.viewService.get("/api/v1/school_recreational_bookings.json").subscribe(o=>{this.recreationalBookings=o,this.isLoading=!1})}openCertForm(o,n,s){this.navDataService.navigate("/students/certification-form",!1,{queryParams:{uid:o,nid:n,bookingId:s}})}static{this.\u0275fac=function(n){return new(n||e)(t.GI1(v._M),t.GI1(u.G0))}}static{this.\u0275cmp=t.In1({type:e,selectors:[["app-school-recreational-bookings"]],decls:1,vars:1,consts:[["class","container-fluid",4,"ngIf"],[1,"container-fluid"],["translate",""],[1,"text-end"],["routerLink","/account/training","translate","",1,"btn","btn-success"],["translate","",1,"fw-bold"],[1,"my-3","divider","gray"],["translate","",4,"ngIf"],["class","no-more-tables",4,"ngIf"],["class","container-fluid p-0 overflow-scroll d-flex flex-column align-items-center justify-content-center",4,"ngIf"],[1,"no-more-tables"],[1,"mb-0","table","table-bordered","table-striped","table-condensed","cf"],[1,"cf"],["translate","",1,"border-end"],["class","small",4,"ngFor","ngForOf"],[1,"small"],["data-title","Student"],[3,"href"],[1,"text-info"],[1,"text-success"],["data-title","Actions",1,"d-flex","flex-column"],["translate","",1,"btn","btn-success","my-2",3,"click"],[1,"container-fluid","p-0","overflow-scroll","d-flex","flex-column","align-items-center","justify-content-center"],["iconClass","icon-64 text-success"]],template:function(n,s){1&n&&t.yuY(0,S,12,3,"div",0),2&n&&t.E7m("ngIf",!s.isLoading)},dependencies:[r.ay,r.u_,g.eM,m.J,p.I,c.ER,R.R]})}}return e})(),data:{discriminantPathKey:"SCHOOL_RECREATIONAL_BOOKING"}}];let O=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=t.a4G({type:e})}static{this.\u0275inj=t.s3X({imports:[c.qQ.forChild(f),h.Yv.forChild(f),c.qQ]})}}return e})();var E=i(10716),B=i(37960);let G=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=t.a4G({type:e})}static{this.\u0275inj=t.s3X({imports:[r.MD,E.kT,O,B.y]})}}return e})()}}]); 2//# sourceMappingURL=4076.12da7cec436b5e64.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.