PageSourceSearch

https://sinc-eh.web.app/18-es2015.4fd8351250d0db5dd988.js

js sinc-eh.web.app collected 2026-10-03 12:36:02 UTC 66,209 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{"1I5t":function(e,o,t){"use strict";t.d(o,"a",(function(){return a}));var n=t("LRne"),i=t("lJxs"),s=t("X+KH"),r=t("fXoL"),c=t("tk/3");let a=(()=>{class e{constructor(e,o){this.http=e,this.user=o}load(){return this.data?Object(n.a)(this.data):this.http.get("assets/data/data.json").pipe(Object(i.a)(this.processData,this))}processData(e){return this.data=e,this.data.schedule.forEach(e=>{e.groups.forEach(e=>{e.sessions.forEach(e=>{e.speakers=[],e.speakerNames&&e.speakerNames.forEach(o=>{const t=this.data.speakers.find(e=>e.name===o);t&&(e.speakers.push(t),t.sessions=t.sessions||[],t.sessions.push(e))})})})}),this.data}getTimeline(e,o="",t=[],n="all"){return this.load().pipe(Object(i.a)(i=>{const s=i.schedule[e];s.shownSessions=0;const r=(o=o.toLowerCase().replace(/,|\.|-/g," ")).split(" ").filter(e=>!!e.trim().length);return s.groups.forEach(e=>{e.hide=!0,e.sessions.forEach(o=>{this.filterSession(o,r,t,n),o.hide||(e.hide=!1,s.shownSessions++)})}),s}))}filterSession(e,o,t,n){let i=!1;o.length?o.forEach(o=>{e.name.toLowerCase().indexOf(o)>-1&&(i=!0)}):i=!0;let s=!1;e.tracks.forEach(e=>{-1===t.indexOf(e)&&(s=!0)});let r=!1;"favorites"===n?this.user.hasFavorite(e.name)&&(r=!0):r=!0,e.hide=!(i&&s&&r)}getSpeakers(){return this.load().pipe(Object(i.a)(e=>e.speakers.sort((e,o)=>{const t=e.name.split(" ").pop(),n=o.name.split(" ").pop();return t.localeCompare(n)})))}getTracks(){return this.load().pipe(Object(i.a)(e=>e.tracks.sort()))}getMap(){return this.load().pipe(Object(i.a)(e=>e.map))}}return e.\u0275fac=function(o){return new(o||e)(r.Qb(c.a),r.Qb(s.a))},e.\u0275prov=r.Fb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},"862v":function(e,o,t){"use strict";t.r(o),t.d(o,"MapModule",(function(){return h}));var n=t("ofXK"),i=t("TEn/"),s=t("tyNb"),r=t("mrSG"),c=t("1I5t");const a=[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}];var l=t("fXoL");const b=["mapCanvas"],u=[{path:"",component:(()=>{class e{constructor(e,o,t){this.doc=e,this.confData=o,this.platform=t}ngAfterViewInit(){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.doc.querySelector("ion-app");let o=!1,t=[];e.classList.contains("dark-theme")&&(t=a);const n=yield function(e){const o=window,t=o.google;return t&&t.maps?Promise.resolve(t.maps):new Promise((e,t)=>{const n=document.createElement("script");n.src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB8pf6ZdFQj5qw7rc_HSGrhUwQKfIe9ICw&v=3.31",n.async=!0,n.defer=!0,document.body.appendChild(n),n.onload=()=>{const n=o.google;n&&n.maps?e(n.maps):t("google maps not available")}})}();let i;this.confData.getMap().subscribe(e=>{const o=this.mapElement.nativeElement;i=new n.Map(o,{center:e.find(e=>e.center),zoom:16,styles:t}
1),e.forEach(e=>{const o=new n.InfoWindow({content:`<h5>${e.name}</h5>`}),t=new n.Marker({position:e,map:i,title:e.name});t.addListener("click",()=>{o.open(i,t)})}),n.event.addListenerOnce(i,"idle",()=>{o.classList.add("show-map")})}),new MutationObserver(e=>{e.forEach(e=>{"class"===e.attributeName&&(o=e.target.classList.contains("dark-theme"),i&&o?i.setOptions({styles:a}):i&&i.setOptions({styles:[]}))})}).observe(e,{attributes:!0})}))}}return e.\u0275fac=function(o){return new(o||e)(l.Jb(n.c),l.Jb(c.a),l.Jb(i.nb))},e.\u0275cmp=l.Db({type:e,selectors:[["page-map"]],viewQuery:function(e,o){var t;1&e&&l.kc(b,!0),2&e&&l.fc(t=l.Vb())&&(o.mapElement=t.first)},decls:9,vars:0,consts:[["slot","start"],[1,"map-canvas"],["mapCanvas",""]],template:function(e,o){1&e&&(l.Mb(0,"ion-header"),l.Mb(1,"ion-toolbar"),l.Mb(2,"ion-buttons",0),l.Kb(3,"ion-menu-button"),l.Lb(),l.Mb(4,"ion-title"),l.mc(5,"Map"),l.Lb(),l.Lb(),l.Lb(),l.Mb(6,"ion-content"),l.Kb(7,"div",1,2),l.Lb())},directives:[i.y,i.hb,i.j,i.L,i.fb,i.s],styles:[".map-canvas[_ngcontent-%COMP%]{position:absolute;height:100%;width:100%;background-color:transparent;opacity:0;transition:opacity .15s ease-in}.show-map[_ngcontent-%COMP%]{opacity:1}"]}),e})()}];let d=(()=>{class e{}return e.\u0275mod=l.Hb({type:e}),e.\u0275inj=l.Gb({factory:function(o){return new(o||e)},imports:[[s.h.forChild(u)],s.h]}),e})(),h=(()=>{class e{}return e.\u0275mod=l.Hb({type:e}),e.\u0275inj=l.Gb({factory:function(o){return new(o||e)},imports:[[n.b,i.ib,d]]}),e})()},CjGA:function(e,o,t){"use strict";t.r(o),t.d(o,"TabsModule",(function(){return G}));var n=t("ofXK"),i=t("TEn/"),s=t("tyNb"),r=t("fXoL");let c=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=r.Db({type:e,selectors:[["ng-component"]],decls:12,vars:0,consts:[["slot","top"],[2,"max-width","55px"],["autoHide","\u201dfalse\u201d"],["tab","courses","color","primary"],["name","school"],["tab","course-search","color","primary"],["name","search-outline"]],template:function(e,o){1&e&&(r.Mb(0,"ion-tabs"),r.Mb(1,"ion-tab-bar",0),r.Mb(2,"ion-tab-button",1),r.Kb(3,"ion-menu-button",2),r.Lb(),r.Mb(4,"ion-tab-button",3),r.Kb(5,"ion-icon",4),r.Mb(6,"ion-label"),r.mc(7,"Meus cursos"),r.Lb(),r.Lb(),r.Mb(8,"ion-tab-button",5),r.Kb(9,"ion-icon",6),r.Mb(10,"ion-label"),r.mc(11,"Pesquisar cursos"),r.Lb(),r.Lb(),r.Lb(),r.Lb())},directives:[i.db,i.bb,i.cb,i.L,i.z,i.H],encapsulation:2}),e})();var a=t("mrSG"),l=t("1I5t"),b=t("3Pt+");function u(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-button",8),r.Ub("click",(function(){return r.hc(e),r.Wb().dismiss()})),r.mc(1,"Cancel"),r.Lb()}}function d(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-button",8),r.Ub("click",(function(){return r.hc(e),r.Wb().selectAll(!1)})),r.mc(1,"Reset"),r.Lb()}}function h(e,o){if(1&e&&r.Kb(0,"ion-icon",11),2&e){const e=r.Wb().$implicit;r.bc("name",e.icon)}}function m(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-item"),r.Xb(1,"lowercase"),r.lc(2,h,1,1,"ion-icon",9),r.Mb(3,"ion-label"),r.mc(4),r.Lb(),r.Mb(5,"ion-checkbox",10),r.Ub("ngModelChange",(function(t){return r.hc(e),o.$implicit.isChecked=t})),r.Lb(),r.Lb()}if(2&e){const e=o.$implicit,t=r.Wb();r.zb("track",r.Yb(1,4,e.name)),r.yb(2),r.bc("ngIf",t.ios),r.yb(2),r.nc(e.name),r.yb(1),r.bc("ngModel",e.isChecked)}}function p(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-footer",0),r.Mb(1,"ion-toolbar"),r.Mb(2,"ion-buttons",1),r.Mb(3,"ion-button",8),r.Ub("click",(function(){return r.hc(e),r.Wb().selectAll(!1)})),r.mc(4,"Deselect All"),r.Lb(),r.Lb(),r.Mb(5,"ion-buttons",3),r.Mb(6,"ion-button",8),r.Ub("click",(function(){return r.hc(e),r.Wb().selectAll(!0)})),r.mc(7,"Select All"),r.Lb(),r.Lb(),r.Lb(),r.Lb()}}let g=(()=>{class e{constructor(e,o,t,n){this.confData=e,this.config=o,this.modalCtrl=t,this.navParams=n,this.tracks=[]}ionViewWillEnter(){this.ios="ios"===this.config.get("mode");const e=this.navParams.get("excludedTracks");this.confData.getTracks().subscribe(o=>{o.forEach(o=>{this.tracks.push({name:o.name,icon:o.icon,isChecked:-1===e.indexOf(o.name)})})})}selectAll(e){this.tracks.forEach(o=>{o.isChecked=e})}applyFilters(){const e=this.tracks.filter(e=>!e.isChecked).map(e=>e.name);this.dismiss(e)}dismiss(e){this.modalCtrl.dismiss(e)}}return e.\u0275fac=function(o){return new(o||e)(r.Jb(l.a),r.Jb(i.d),r.Jb(i.lb),r.Jb(i.mb))},e.\u0275cmp=r.Db({type:e,selectors:[["page-schedule-filter"]],decls:16,vars:5,consts:[["translucent","true"],["slot","start"],[3,"click",4,"ngIf"],["slot","end"],["strong","",3,"click"],[3,"lines"],[4,"ngFor","ngForOf"],["translucent","true",4,"ngIf"],[3,"click"],["slot","start","color","medium",3,"name",4,"ngIf"],[3,"ngModel","ngModelChange"],["slot","start","color","medium",3,"name"]],template:function(e,o){1&e&&(r.Mb(0,"ion-header",0),r.Mb(1,"ion-toolbar"),r.Mb(2,"ion-buttons",1),r.lc(3,u,2,0,"ion-button",2),r.lc(4,d,2,0,"ion-button",2),r.Lb(),r.Mb(5,"ion-title"),r.mc(6," Filter Sessions "),r.Lb(),r.Mb(7,"ion-buttons",3),r.Mb(8,"ion-button",4),r.Ub("click",(function(){return o.applyFilters()})),r.mc(9,"Done"),r.Lb(),r.Lb(),r.Lb(),r.Lb(),r.Mb(10,"ion-content"),r.Mb(11,"ion-list",5),r.Mb(12,"ion-list-header"),r.mc(13,"Tracks"),r.Lb(),r.lc(14,m,6,6,"ion-item",6),r.Lb(),r.Lb(),r.lc(15,p,8,0,"ion-footer",7)),2&e&&(r.yb(3),r.bc("ngIf",o.ios),r.yb(1),r.bc("ngIf",!o.ios),r.yb(7),r.bc("lines",o.ios?"inset":"full"),r.yb(3),r.bc("ngForOf",o.tracks),r.yb(1),r.bc("ngIf",o.ios))},directives:[i.y,i.hb,i.j,n.j,i.fb,i.i,i.s,i.I,i.J,n.i,i.B,i.H,i.p,i.c,b.e,b.h,i.z,i.w],pipes:[n.h],styles:[".md[_ngcontent-%COMP%]   ion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{text-transform:capitalize;letter-spacing:0}.md[_ngcontent-%COMP%]   ion-checkbox[_ngcontent-%COMP%]{--background-checked:transparent;--border-color:transparent;--border-color-checked:transparent;--checkmark-color:var(--ion-color-primary)}.md[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{background:inherit}.ios[_ngcontent-%COMP%]   ion-list-header[_ngcontent-%COMP%]{margin-top:10px}.ios[_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{color:var(--ion-color-primary)}"]}),e})();var f=t("X+KH");const M=["scheduleList"];function y(e,o){1&e&&(r.Mb(0,"ion-buttons",26),r.Kb(1,"ion-menu-button"),r.Lb())}function C(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-segment",27),r.Ub("ngModelChange",(function(o){return r.hc(e),r.Wb().segment=o}))("ionChange",(function(){return r.hc(e),r.Wb().updateSchedule()})),r.Mb(1,"ion-segment-button",28),r.mc(2," All "),r.Lb(),r.Mb(3,"ion-segment-button",29),r.mc(4," Favorites "),r.Lb(),r.Lb()}if(2&e){const e=r.Wb();r.bc("ngModel",e.segment)}}function k(e,o){1&e&&(r.Mb(0,"ion-title"),r.mc(1,"Schedule"),r.Lb())}function L(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-searchbar",30),r.Ub("ngModelChange",(function(o){return r.hc(e),r.Wb().queryText=o}))("ionChange",(function(){return r.hc(e),r.Wb().updateSchedule()}))("ionCancel",(function(){return r.hc(e),r.Wb().showSearchbar=!1})),r.Lb()}if(2&e){const e=r.Wb();r.bc("ngModel",e.queryText)}}function v(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-button",31),r.Ub("click",(function(){return r.hc(e),r.Wb().showSearchbar=!0})),r.Kb(1,"ion-icon",32),r.Lb()}}function _(e,o){1&e&&(r.Mb(0,"span"),r.mc(1,"Filter"),r.Lb())}function w(e,o){1&e&&(r.Mb(0,"span"),r.Kb(1,"ion-icon",33),r.Lb())}function P(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-button",31),r.Ub("click",(function(){return r.hc(e),r.Wb().presentFilter()})),r.lc(1,_,2,0,"span",3),r.lc(2,w,2,0,"span",3),r.Lb()}if(2&e){const e=r.Wb();r.yb(1),r.bc("ngIf",e.ios),r.yb(1),r.bc("ngIf",!e.ios)}}function O(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-toolbar"),r.Mb(1,"ion-segment",27),r.Ub("ngModelChange",(function(o){return r.hc(e),r.Wb().segment=o}))("ionChange",(function(){return r.hc(e),r.Wb().updateSchedule()})),r.Mb(2,"ion-segment-button",28),r.mc(3," All "),r.Lb(),r.Mb(4,"ion-segment-button",29),r.mc(5," Favorites "),r.Lb(),r.Lb(),r.Lb()}if(2&e){const e=r.Wb();r.yb(1),r.bc("ngModel",e.segment)}}function x(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-item-option",39),r.Ub("click",(function(){r.hc(e);const o=r.Wb().$implicit,t=r.gc(1);return r.Wb(2).addFavorite(t,o)})),r.mc(1," Favorite "),r.Lb()}}function I(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-item-option",40),r.Ub("click",(function(){r.hc(e);const o=r.Wb().$implicit,t=r.gc(1);return r.Wb(2).removeFavorite(t,o,"Remove Favorite")})),r.mc(1," Remove "),r.Lb()}}function S(e,o){if(1&e&&(r.Mb(0,"ion-item-sliding",11,35),r.Xb(2,"lowercase"),r.Mb(3,"ion-item",36),r.Mb(4,"ion-label"),r.Mb(5,"h3"),r.mc(6),r.Lb(),r.Mb(7,"p"),r.mc(8),r.Lb(),r.Lb(),r.Lb(),r.Mb(9,"ion-item-options"),r.lc(10,x,2,0,"ion-item-option",37),r.lc(11,I,2,0,"ion-item-option",38),r.Lb(),r.Lb()),2&e){const e=o.$implicit,t=r.Wb(2);r.bc("hidden",e.hide),r.zb("track",r.Yb(2,9,e.tracks[0])),r.yb(3),r.dc("routerLink","/app/tabs/schedule/session/",e.id,""),r.yb(3),r.nc(e.name),r.yb(2),r.qc(" ",e.timeStart," \u2014 ",e.timeEnd,": ",e.location," "),r.yb(2),r.bc("ngIf","all"===t.segment),r.yb(1),r.bc("ngIf","favorites"===t.segment)}}function E(e,o){if(1&e&&(r.Mb(0,"ion-item-group",11),r.Mb(1,"ion-item-divider",34),r.Mb(2,"ion-label"),r.mc(3),r.Lb(),r.Lb(),r.lc(4,S,12,11,"ion-item-sliding",13),r.Lb()),2&e){const e=o.$implicit;r.bc("hidden",e.hide),r.yb(3),r.oc(" ",e.time," "),r.yb(1),r.bc("ngForOf",e.sessions)}}let T=(()=>{class e{constructor(e,o,t,n,i,s,r,c,a){this.alertCtrl=e,this.confData=o,this.loadingCtrl=t,this.modalCtrl=n,this.router=i,this.routerOutlet=s,this.toastCtrl=r,this.user=c,this.config=a,this.dayIndex=0,this.queryText="",this.segment="all",this.excludeTracks=[],this.shownSessions=[],this.groups=[]}ngOnInit(){this.updateSchedule(),this.ios="ios"===this.config.get("mode")}updateSchedule(){this.scheduleList&&this.scheduleList.closeSlidingItems(),this.confData.getTimeline(this.dayIndex,this.queryText,this.excludeTracks,this.segment).subscribe(e=>{this.shownSessions=e.shownSessions,this.groups=e.groups})}presentFilter(){return Object(a.a)(this,void 0,void 0,(function*(){const e=yield this.modalCtrl.create({component:g,swipeToClose:!0,presentingElement:this.routerOutlet.nativeEl,componentProps:{excludedTracks:this.excludeTracks}});yield e.present();const{data:o}=yield e.onWillDismiss();o&&(this.excludeTracks=o,this.updateSchedule())}))}addFavorite(e,o){return Object(a.a)(this,void 0,void 0,(function*(){if(this.user.hasFavorite(o.name))this.removeFavorite(e,o,"Favorite already added");else{this.user.addFavorite(o.name),e.close();const t=yield this.toastCtrl.create({header:o.name+" was successfully added as a favorite.",duration:3e3,buttons:[{text:"Close",role:"cancel"}]});yield t.present()}}))}removeFavorite(e,o,t){return Object(a.a)(this,void 0,void 0,(function*(){const n=yield this.alertCtrl.create({header:t,message:"Would you like to remove this session from your favorites?",buttons:[{text:"Cancel",handler:()=>{e.close()}},{text:"Remove",handler:()=>{this.user.removeFavorite(o.name),this.updateSchedule(),e.close()}}]});yield n.present()}
1))}openSocial(e,o){return Object(a.a)(this,void 0,void 0,(function*(){const t=yield this.loadingCtrl.create({message:"Posting to "+e,duration:1e3*Math.random()+500});yield t.present(),yield t.onWillDismiss(),o.close()}))}}return e.\u0275fac=function(o){return new(o||e)(r.Jb(i.b),r.Jb(l.a),r.Jb(i.jb),r.Jb(i.lb),r.Jb(s.e),r.Jb(i.Q),r.Jb(i.sb),r.Jb(f.a),r.Jb(i.d))},e.\u0275cmp=r.Db({type:e,selectors:[["page-schedule"]],viewQuery:function(e,o){var t;1&e&&r.kc(M,!0),2&e&&r.fc(t=r.Vb())&&(o.scheduleList=t.first)},decls:35,vars:11,consts:[["translucent","true"],["slot","start",4,"ngIf"],[3,"ngModel","ngModelChange","ionChange",4,"ngIf"],[4,"ngIf"],["showCancelButton","always","placeholder","Search",3,"ngModel","ngModelChange","ionChange","ionCancel",4,"ngIf"],["slot","end"],[3,"click",4,"ngIf"],["fullscreen","true"],["collapse","condense"],["size","large"],["placeholder","Search",3,"ngModel","ngModelChange","ionChange"],[3,"hidden"],["scheduleList",""],[3,"hidden",4,"ngFor","ngForOf"],["slot","fixed","vertical","bottom","horizontal","end"],["fab",""],["name","share-social"],["side","top"],["color","vimeo",3,"click"],["name","logo-vimeo"],["color","instagram",3,"click"],["name","logo-instagram"],["color","twitter",3,"click"],["name","logo-twitter"],["color","facebook",3,"click"],["name","logo-facebook"],["slot","start"],[3,"ngModel","ngModelChange","ionChange"],["value","all"],["value","favorites"],["showCancelButton","always","placeholder","Search",3,"ngModel","ngModelChange","ionChange","ionCancel"],[3,"click"],["slot","icon-only","name","search"],["slot","icon-only","name","options"],["sticky",""],["slidingItem",""],[3,"routerLink"],["color","favorite",3,"click",4,"ngIf"],["color","danger",3,"click",4,"ngIf"],["color","favorite",3,"click"],["color","danger",3,"click"]],template:function(e,o){if(1&e){const e=r.Nb();r.Mb(0,"ion-header",0),r.Mb(1,"ion-toolbar"),r.lc(2,y,2,0,"ion-buttons",1),r.lc(3,C,5,1,"ion-segment",2),r.lc(4,k,2,0,"ion-title",3),r.lc(5,L,1,1,"ion-searchbar",4),r.Mb(6,"ion-buttons",5),r.lc(7,v,2,0,"ion-button",6),r.lc(8,P,3,2,"ion-button",6),r.Lb(),r.Lb(),r.lc(9,O,6,1,"ion-toolbar",3),r.Lb(),r.Mb(10,"ion-content",7),r.Mb(11,"ion-header",8),r.Mb(12,"ion-toolbar"),r.Mb(13,"ion-title",9),r.mc(14,"Programa\xe7\xe3o"),r.Lb(),r.Lb(),r.Mb(15,"ion-toolbar"),r.Mb(16,"ion-searchbar",10),r.Ub("ngModelChange",(function(e){return o.queryText=e}))("ionChange",(function(){return o.updateSchedule()})),r.Lb(),r.Lb(),r.Lb(),r.Mb(17,"ion-list",11,12),r.lc(19,E,5,3,"ion-item-group",13),r.Lb(),r.Mb(20,"ion-list-header",11),r.mc(21," No Sessions Found "),r.Lb(),r.Mb(22,"ion-fab",14,15),r.Mb(24,"ion-fab-button"),r.Kb(25,"ion-icon",16),r.Lb(),r.Mb(26,"ion-fab-list",17),r.Mb(27,"ion-fab-button",18),r.Ub("click",(function(){r.hc(e);const t=r.gc(23);return o.openSocial("Vimeo",t)})),r.Kb(28,"ion-icon",19),r.Lb(),r.Mb(29,"ion-fab-button",20),r.Ub("click",(function(){r.hc(e);const t=r.gc(23);return o.openSocial("Instagram",t)})),r.Kb(30,"ion-icon",21),r.Lb(),r.Mb(31,"ion-fab-button",22),r.Ub("click",(function(){r.hc(e);const t=r.gc(23);return o.openSocial("Twitter",t)})),r.Kb(32,"ion-icon",23),r.Lb(),r.Mb(33,"ion-fab-button",24),r.Ub("click",(function(){r.hc(e);const t=r.gc(23);return o.openSocial("Facebook",t)})),r.Kb(34,"ion-icon",25),r.Lb(),r.Lb(),r.Lb(),r.Lb()}2&e&&(r.yb(2),r.bc("ngIf",!o.showSearchbar),r.yb(1),r.bc("ngIf",o.ios),r.yb(1),r.bc("ngIf",!o.ios&&!o.showSearchbar),r.yb(1),r.bc("ngIf",o.showSearchbar),r.yb(2),r.bc("ngIf",!o.ios&&!o.showSearchbar),r.yb(1),r.bc("ngIf",!o.showSearchbar),r.yb(1),r.bc("ngIf",!o.ios),r.yb(7),r.bc("ngModel",o.queryText),r.yb(1),r.bc("hidden",0===o.shownSessions),r.yb(2),r.bc("ngForOf",o.groups),r.yb(1),r.bc("hidden",o.shownSessions>0))},directives:[i.y,i.hb,n.j,i.j,i.s,i.fb,i.S,i.rb,b.e,b.h,i.I,n.i,i.J,i.t,i.u,i.z,i.v,i.L,i.T,i.qb,i.U,i.i,i.D,i.C,i.H,i.G,i.B,i.pb,s.f,i.F,i.E],pipes:[n.h],styles:["ion-fab-button[_ngcontent-%COMP%]{--background:var(--ion-color-step-150,#fff);--background-hover:var(--ion-color-step-200,#f2f2f2);--background-focused:var(--ion-color-step-250,#d9d9d9);--color:var(--ion-color-primary,#3880ff)}.ios[_ngcontent-%COMP%]   ion-fab-button[_ngcontent-%COMP%]{--background-activated:var(--ion-color-step-250,#d9d9d9)}ion-item-sliding[track=ionic][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid var(--ion-color-primary);padding-left:10px}ion-item-sliding[track=angular][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #ac282b;padding-left:10px}ion-item-sliding[track=communication][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #8e8d93;padding-left:10px}ion-item-sliding[track=tooling][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #fe4c52;padding-left:10px}ion-item-sliding[track=services][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #fd8b2d;padding-left:10px}ion-item-sliding[track=design][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #fed035;padding-left:10px}
1ion-item-sliding[track=workshop][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #69bb7b;padding-left:10px}ion-item-sliding[track=food][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #3bc7c4;padding-left:10px}ion-item-sliding[track=documentation][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #b16be3;padding-left:10px}ion-item-sliding[track=navigation][_ngcontent-%COMP%]   ion-label[_ngcontent-%COMP%]{border-left:2px solid #60c;padding-left:10px}"]}),e})();const z=[{path:"tabs",component:c,children:[{path:"schedule",children:[{path:"",component:T},{path:"session/:sessionId",loadChildren:()=>Promise.resolve().then(t.bind(null,"GuVW")).then(e=>e.SessionDetailModule)}]},{path:"courses",children:[{path:"",loadChildren:()=>Promise.resolve().then(t.bind(null,"mkLO")).then(e=>e.CourseListModule)},{path:"about/:courseId",loadChildren:()=>Promise.resolve().then(t.bind(null,"UoYK")).then(e=>e.AboutModule)},{path:"speaker-details/:speakerId",loadChildren:()=>Promise.resolve().then(t.bind(null,"NC21")).then(e=>e.SpeakerDetailModule)}],canActivate:[t("2G5R").a]},{path:"map",children:[{path:"",loadChildren:()=>Promise.resolve().then(t.bind(null,"862v")).then(e=>e.MapModule)}]},{path:"about",children:[{path:"",loadChildren:()=>Promise.resolve().then(t.bind(null,"UoYK")).then(e=>e.AboutModule)}]},{path:"course-search",children:[{path:"",loadChildren:()=>Promise.resolve().then(t.bind(null,"8Kan")).then(e=>e.CourseSearchPageModule)}]},{path:"",redirectTo:"courses",pathMatch:"full"}]}];let U=(()=>{class e{}return e.\u0275mod=r.Hb({type:e}),e.\u0275inj=r.Gb({factory:function(o){return new(o||e)},imports:[[s.h.forChild(z)],s.h]}),e})();var K=t("UoYK"),j=t("862v");const A=[{path:"",component:T}];let W=(()=>{class e{}return e.\u0275mod=r.Hb({type:e}),e.\u0275inj=r.Gb({factory:function(o){return new(o||e)},imports:[[s.h.forChild(A)],s.h]}),e})(),F=(()=>{class e{}return e.\u0275mod=r.Hb({type:e}),e.\u0275inj=r.Gb({factory:function(o){return new(o||e)},imports:[[n.b,b.a,i.ib,W]]}),e})();var N=t("GuVW"),J=t("NC21"),D=t("mkLO"),H=t("8Kan");let G=(()=>{class e{}return e.\u0275mod=r.Hb({type:e}),e.\u0275inj=r.Gb({factory:function(o){return new(o||e)},imports:[[K.AboutModule,n.b,i.ib,j.MapModule,F,N.SessionDetailModule,J.SpeakerDetailModule,H.CourseSearchPageModule,D.CourseListModule,U]]}),e})()},GuVW:function(e,o,t){"use strict";t.r(o),t.d(o,"SessionDetailModule",(function(){return p}));var n=t("ofXK"),i=t("tyNb"),s=t("1I5t"),r=t("X+KH"),c=t("fXoL"),a=t("TEn/");function l(e,o){1&e&&c.Kb(0,"ion-icon",11)}function b(e,o){1&e&&c.Kb(0,"ion-icon",12)}function u(e,o){if(1&e&&(c.Mb(0,"span"),c.mc(1),c.Lb()),2&e){const e=o.$implicit;c.Ab("session-track-"+e.toLowerCase()),c.yb(1),c.nc(e)}}function d(e,o){if(1&e&&(c.Mb(0,"div",13),c.Mb(1,"h1"),c.mc(2),c.Lb(),c.lc(3,u,2,3,"span",14),c.Mb(4,"p"),c.mc(5),c.Lb(),c.Mb(6,"ion-text",15),c.mc(7),c.Kb(8,"br"),c.mc(9),c.Lb(),c.Lb()),2&e){const e=c.Wb();c.yb(2),c.nc(e.session.name),c.yb(1),c.bc("ngForOf",null==e.session?null:e.session.tracks),c.yb(2),c.nc(e.session.description),c.yb(2),c.pc(" ",e.session.timeStart," \u2013 ",e.session.timeEnd," "),c.yb(2),c.oc(" ",e.session.location," ")}}const h=[{path:"",component:(()=>{class e{constructor(e,o,t){this.dataProvider=e,this.userProvider=o,this.route=t,this.isFavorite=!1,this.defaultHref=""}ionViewWillEnter(){this.dataProvider.load().subscribe(e=>{if(e&&e.schedule&&e.schedule[0]&&e.schedule[0].groups){const o=this.route.snapshot.paramMap.get("sessionId");for(const t of e.schedule[0].groups)if(t&&t.sessions)for(const e of t.sessions)if(e&&e.id===o){this.session=e,this.isFavorite=this.userProvider.hasFavorite(this.session.name);break}}})}ionViewDidEnter(){this.defaultHref="/app/tabs/schedule"}sessionClick(e){console.log("Clicked",e)}toggleFavorite(){this.userProvider.hasFavorite(this.session.name)?(this.userProvider.removeFavorite(this.session.name),this.isFavorite=!1):(this.userProvider.addFavorite(this.session.name),this.isFavorite=!0)}shareSession(){console.log("Clicked share session")}}return e.\u0275fac=function(o){return new(o||e)(c.Jb(s.a),c.Jb(r.a),c.Jb(i.a))},e.\u0275cmp=c.Db({type:e,selectors:[["page-session-detail"]],decls:29,vars:4,consts:[["slot","start"],[3,"defaultHref"],["slot","end"],[3,"click"],["slot","icon-only","name","star-outline",4,"ngIf"],["slot","icon-only","name","star",4,"ngIf"],["slot","icon-only","name","share"],["class","ion-padding",4,"ngIf"],["button","",3,"click"],["color","primary"],["slot","end","color","primary","size","small","name","cloud-download"],["slot","icon-only","name","star-outline"],["slot","icon-only","name","star"],[1,"ion-padding"],[3,"class",4,"ngFor","ngForOf"],["color","medium"]],template:function(e,o){1&e&&(c.Mb(0,"ion-header"),c.Mb(1,"ion-toolbar"),c.Mb(2,"ion-buttons",0),c.Kb(3,"ion-back-button",1),c.Lb(),c.Mb(4,"ion-buttons",2),c.Mb(5,"ion-button",3),c.Ub("click",(function(){return o.toggleFavorite()})),c.lc(6,l,1,0,"ion-icon",4),c.lc(7,b,1,0,"ion-icon",5),c.Lb(),c.Mb(8,"ion-button",3),c.Ub("click",(function(){return o.shareSession()})),c.Kb(9,"ion-icon",6),c.Lb(),c.Lb(),c.Lb(),c.Lb(),c.Mb(10,"ion-content"),c.lc(11,d,10,6,"div",7),c.Mb(12,"ion-list"),c.Mb(13,"ion-item",8),c.Ub("click",(function(){return o.sessionClick("watch")})),c.Mb(14,"ion-label",9),c.mc(15,"Watch"),c.Lb(),c.Lb(),c.Mb(16,"i
1on-item",8),c.Ub("click",(function(){return o.sessionClick("add to calendar")})),c.Mb(17,"ion-label",9),c.mc(18,"Add to Calendar"),c.Lb(),c.Lb(),c.Mb(19,"ion-item",8),c.Ub("click",(function(){return o.sessionClick("mark as unwatched")})),c.Mb(20,"ion-label",9),c.mc(21,"Mark as Unwatched"),c.Lb(),c.Lb(),c.Mb(22,"ion-item",8),c.Ub("click",(function(){return o.sessionClick("download video")})),c.Mb(23,"ion-label",9),c.mc(24,"Download Video"),c.Lb(),c.Kb(25,"ion-icon",10),c.Lb(),c.Mb(26,"ion-item",8),c.Ub("click",(function(){return o.sessionClick("leave feedback")})),c.Mb(27,"ion-label",9),c.mc(28,"Leave Feedback"),c.Lb(),c.Lb(),c.Lb(),c.Lb()),2&e&&(c.yb(3),c.bc("defaultHref",o.defaultHref),c.yb(3),c.bc("ngIf",!o.isFavorite),c.yb(1),c.bc("ngIf",o.isFavorite),c.yb(4),c.bc("ngIf",o.session))},directives:[a.y,a.hb,a.j,a.g,a.h,a.i,n.j,a.z,a.s,a.I,a.B,a.H,n.i,a.eb],styles:[".session-track-ionic[_ngcontent-%COMP%]{color:var(--ion-color-primary)}.session-track-angular[_ngcontent-%COMP%]{color:var(--ion-color-angular)}.session-track-communication[_ngcontent-%COMP%]{color:var(--ion-color-communication)}.session-track-tooling[_ngcontent-%COMP%]{color:var(--ion-color-tooling)}.session-track-services[_ngcontent-%COMP%]{color:var(--ion-color-services)}.session-track-design[_ngcontent-%COMP%]{color:var(--ion-color-design)}.session-track-workshop[_ngcontent-%COMP%]{color:var(--ion-color-workshop)}.session-track-food[_ngcontent-%COMP%]{color:var(--ion-color-food)}.session-track-documentation[_ngcontent-%COMP%]{color:var(--ion-color-documentation)}.session-track-navigation[_ngcontent-%COMP%]{color:var(--ion-color-navigation)}.show-favorite[_ngcontent-%COMP%]{position:relative}.icon-heart[_ngcontent-%COMP%], .icon-heart-empty[_ngcontent-%COMP%]{--border-radius:50%;--padding-start:0;--padding-end:0;position:absolute;top:5px;right:5px;width:48px;height:48px;font-size:16px;transition:transform .3s ease}.icon-heart-empty[_ngcontent-%COMP%]{transform:scale(1)}.icon-heart[_ngcontent-%COMP%]{transform:scale(0)}.show-favorite[_ngcontent-%COMP%]   .icon-heart[_ngcontent-%COMP%]{transform:scale(1)}.show-favorite[_ngcontent-%COMP%]   .icon-heart-empty[_ngcontent-%COMP%]{transform:scale(0)}h1[_ngcontent-%COMP%]{margin:0}"]}),e})()}];let m=(()=>{class e{}return e.\u0275mod=c.Hb({type:e}),e.\u0275inj=c.Gb({factory:function(o){return new(o||e)},imports:[[i.h.forChild(h)],i.h]}),e})(),p=(()=>{class e{}return e.\u0275mod=c.Hb({type:e}),e.\u0275inj=c.Gb({factory:function(o){return new(o||e)},imports:[[n.b,a.ib,m]]}),e})()},NC21:function(e,o,t){"use strict";t.r(o),t.d(o,"SpeakerDetailModule",(function(){return h}));var n=t("ofXK"),i=t("tyNb"),s=t("mrSG"),r=t("1I5t"),c=t("9B/o"),a=t("fXoL"),l=t("TEn/");function b(e,o){if(1&e){const e=a.Nb();a.Mb(0,"ion-buttons",14),a.Mb(1,"ion-button",15),a.Ub("click",(function(){a.hc(e);const o=a.Wb();return o.openContact(o.speaker)})),a.Kb(2,"ion-icon",16),a.Lb(),a.Mb(3,"ion-button",15),a.Ub("click",(function(){a.hc(e);const o=a.Wb();return o.openSpeakerShare(o.speaker)})),a.Kb(4,"ion-icon",17),a.Lb(),a.Lb()}}const u=[{path:"",component:(()=>{class e{constructor(e,o,t,n,i){this.dataProvider=e,this.route=o,this.actionSheetCtrl=t,this.confData=n,this.inAppBrowser=i}ionViewWillEnter(){this.dataProvider.load().subscribe(e=>{const o=this.route.snapshot.paramMap.get("speakerId");if(e&&e.speakers)for(const t of e.speakers)if(t&&t.id===o){this.speaker=t;break}})}openExternalUrl(e){this.inAppBrowser.create(e,"_blank")}openSpeakerShare(e){return Object(s.a)(this,void 0,void 0,(function*(){const o=yield this.actionSheetCtrl.create({header:"Share "+e.name,buttons:[{text:"Copy Link",handler:()=>{console.log("Copy link clicked on https://twitter.com/"+e.twitter),window.cordova&&window.cordova.plugins.clipboard&&window.cordova.plugins.clipboard.copy("https://twitter.com/"+e.twitter)}},{text:"Share via ..."},{text:"Cancel",role:"cancel"}]});yield o.present()}))}openContact(e){return Object(s.a)(this,void 0,void 0,(function*(){const o=yield this.actionSheetCtrl.create({header:"Contact "+e.name,buttons:[{text:`Email ( ${e.email} )`,icon:null,handler:()=>{window.open("mailto:"+e.email)}},{text:`Call ( ${e.phone} )`,icon:null,handler:()=>{window.open("tel:"+e.phone)}},{text:"Cancel",role:"cancel"}]});yield o.present()}
1))}}return e.\u0275fac=function(o){return new(o||e)(a.Jb(r.a),a.Jb(i.a),a.Jb(l.a),a.Jb(r.a),a.Jb(c.a))},e.\u0275cmp=a.Db({type:e,selectors:[["page-speaker-detail"]],decls:26,vars:5,consts:[[1,"speaker-detail"],[1,"ion-no-border"],["slot","start"],["defaultHref","/app/tabs/courses"],["slot","end",4,"ngIf"],[1,"speaker-background"],[3,"src","alt"],[1,"ion-padding","speaker-detail"],["color","twitter","button","",3,"click"],["name","logo-twitter"],["color","dark","button","",3,"click"],["name","logo-github"],["color","instagram","button","",3,"click"],["name","logo-instagram"],["slot","end"],[3,"click"],["slot","icon-only","ios","call-outline","md","call-sharp"],["slot","icon-only","ios","share-outline","md","share-sharp"]],template:function(e,o){1&e&&(a.Mb(0,"ion-content",0),a.Mb(1,"ion-header",1),a.Mb(2,"ion-toolbar"),a.Mb(3,"ion-buttons",2),a.Kb(4,"ion-back-button",3),a.Lb(),a.lc(5,b,5,0,"ion-buttons",4),a.Lb(),a.Lb(),a.Mb(6,"div",5),a.Kb(7,"img",6),a.Mb(8,"h2"),a.mc(9),a.Lb(),a.Lb(),a.Mb(10,"div",7),a.Mb(11,"p"),a.mc(12),a.Lb(),a.Kb(13,"hr"),a.Mb(14,"ion-chip",8),a.Ub("click",(function(){return o.openExternalUrl("https://twitter.com/"+o.speaker.twitter)}
1)),a.Kb(15,"ion-icon",9),a.Mb(16,"ion-label"),a.mc(17,"Twitter"),a.Lb(),a.Lb(),a.Mb(18,"ion-chip",10),a.Ub("click",(function(){return o.openExternalUrl("https://github.com/ionic-team/ionic")})),a.Kb(19,"ion-icon",11),a.Mb(20,"ion-label"),a.mc(21,"GitHub"),a.Lb(),a.Lb(),a.Mb(22,"ion-chip",12),a.Ub("click",(function(){return o.openExternalUrl("https://instagram.com/ionicframework")})),a.Kb(23,"ion-icon",13),a.Mb(24,"ion-label"),a.mc(25,"Instagram"),a.Lb(),a.Lb(),a.Lb(),a.Lb()),2&e&&(a.yb(5),a.bc("ngIf",o.speaker),a.yb(2),a.bc("src",null==o.speaker?null:o.speaker.profilePic,a.ic)("alt",null==o.speaker?null:o.speaker.name),a.yb(2),a.nc(null==o.speaker?null:o.speaker.name),a.yb(3),a.oc("",null==o.speaker?null:o.speaker.about," Say hello on social media!"))},directives:[l.s,l.y,l.hb,l.j,l.g,l.h,n.j,l.q,l.z,l.H,l.i],styles:["ion-toolbar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;--background:transparent}ion-toolbar[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   ion-back-button[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   ion-menu-button[_ngcontent-%COMP%]{--color:#fff}.speaker-background[_ngcontent-%COMP%]{position:relative;display:flex;padding-top:var(--ion-safe-area-top);align-items:center;justify-content:center;flex-direction:column;height:calc(250px + var(--ion-safe-area-top));background:50%/cover url(/assets/img/speaker-background.png) no-repeat}.speaker-background[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70px;border-radius:50%;margin-top:calc(-1 * var(--ion-safe-area-top))}.speaker-background[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{position:absolute;bottom:10px;color:#fff}.md[_ngcontent-%COMP%]   .speaker-background[_ngcontent-%COMP%]{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.ios[_ngcontent-%COMP%]   .speaker-background[_ngcontent-%COMP%]{box-shadow:0 4px 16px rgba(0,0,0,.12)}.speaker-detail[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-left:6px;margin-right:6px}.speaker-detail[_ngcontent-%COMP%]   hr[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px;background:var(--ion-color-step-150,#d7d8da)}"]}),e})()}];let d=(()=>{class e{}return e.\u0275mod=a.Hb({type:e}),e.\u0275inj=a.Gb({factory:function(o){return new(o||e)},imports:[[i.h.forChild(u)],i.h]}),e})(),h=(()=>{class e{}return e.\u0275mod=a.Hb({type:e}),e.\u0275inj=a.Gb({factory:function(o){return new(o||e)},imports:[[n.b,l.ib,d]]}),e})()},UoYK:function(e,o,t){"use strict";t.r(o),t.d(o,"AboutModule",(function(){return F}));var n=t("ofXK"),i=t("3Pt+"),s=t("TEn/"),r=t("mrSG"),c=t("FAH8"),a=t("Iab2"),l=t("i680"),b=t("cLAn"),u=t.n(b),d=t("Tj/N"),h=t("3lxF"),m=t("fXoL"),p=t("tyNb"),g=t("e8h1");const f=["slides"];function M(e,o){if(1&e){const e=m.Nb();m.Mb(0,"ion-button",3),m.Ub("click",(function(){return m.hc(e),m.Wb().next()})),m.mc(1,"P\xe1g. 1/2 "),m.Kb(2,"ion-icon",17),m.Lb()}}function y(e,o){if(1&e){const e=m.Nb();m.Mb(0,"ion-button",3),m.Ub("click",(function(){return m.hc(e),m.Wb().next()})),m.mc(1,"P\xe1g. 2/2 "),m.Kb(2,"ion-icon",18),m.Lb()}}function C(e,o){1&e&&m.Kb(0,"ion-progress-bar",19)}function k(e,o){if(1&e&&(m.Mb(0,"div",20),m.mc(1),m.Lb()),2&e){const e=m.Wb();m.yb(1),m.oc(" ",e.user_name," ")}}function L(e,o){if(1&e&&(m.Mb(0,"div",21),m.mc(1),m.Lb()),2&e){const e=m.Wb();m.yb(1),m.oc(" ",e.user_name," ")}}let v=(()=>{class e{constructor(e,o,t,n,i,s){this.menu=e,this.modalCtrl=o,this.router=t,this.toastController=n,this.storage=i,this.file=s,this.showSkip=!0,this.slidePage=1,this.loading=!1,this.user=new d.a,this.loading=!1,this.mobile=window.screen.width<768||window.screen.width<900}next(){1==this.slidePage?(this.slides.slideNext(),this.slidePage=2):(this.slides.slidePrev(),this.slidePage=1)}ngOnInit(){this.storage.get("user").then(e=>{this.user=e}),this.user_name=this.user_name.toUpperCase()}getCertificatePath(){let e="assets/img/certificates/",o=this.course.section.trim();return o=o.includes("Docentes")?"p":"g",this.course.section.toUpperCase().includes("BA")&&(e=e+"eh-cer-ba-"+o+"/"),this.course.section.toUpperCase().includes("MA")&&(e=e+"eh-cer-ma-"+o+"/"),this.course.section.includes("S\xe3o Jos\xe9 dos Campos")&&(e=e+"eh-cer-sjc-"+o+"/"),this.course.section.includes("Jijoca")&&(e=e+"eh-cer-jijoca-"+o+"/"),this.course.section.includes("Itacar\xe9")&&(e=e+"eh-cer-itacare-"+o+"/"),this.course.section.includes("Embu")&&(e=e+"eh-cer-embu-"+
1o+"/"),this.course.section.includes("Nova Odessa")&&(e=e+"eh-cer-no-"+o+"/"),this.course.section.includes("Olinda")&&(e=e+"eh-cer-olinda-"+o+"/"),e}onSlideChangeStart(e){e.target.isEnd().then(e=>{this.showSkip=!e})}dismiss(){return this.modalCtrl.dismiss({dismissed:!0}).then(()=>{})}exportPdf(){this.loading=!0,this.presentToast("Seu certificado est\xe1 sendo gerado, aguarde o download.");const e=document.getElementById("slide1"),o=new l.a("l");o.internal.pageSize.getWidth(),o.internal.pageSize.getHeight();const t=1800/e.offsetWidth,n={height:e.offsetHeight*t,width:e.offsetWidth*t,style:{transform:"scale("+t+")",transformOrigin:"top left",width:e.offsetWidth+"px",height:e.offsetHeight+"px"}};u.a.toPng(e,n).then(e=>{const t=o.getImageProperties(e),i=o.internal.pageSize.getWidth(),s=t.height*i/t.width;o.addImage(e,"PNG",0,0,i,s);const r=document.getElementById("slide2");u.a.toPng(r,n).then(e=>{o.addPage().addImage(e,"PNG",0,0,i,s),this.toastController.dismiss();const t="EHNaPR\xe1tica-Certificado.pdf";let n=o.output("blob"),r=[];r.push(n),window.open(window.URL.createObjectURL(new Blob(r,{type:"application/pdf"}))),/iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(Object(a.saveAs)(n,t),console.log("ios detected")):o.save(t),this.loading=!1,this.modalCtrl.dismiss()})})}convertImageToCanvas(e){var o=document.createElement("canvas");return o.width=e.width,o.height=e.height,o.getContext("2d").drawImage(e,0,0),o}convertCanvasToImage(e){var o=new Image;return o.src=e.toDataURL("image/png"),o}presentToast(e){return Object(r.a)(this,void 0,void 0,(function*(){const o=yield this.toastController.create({message:e});return o.present(),o}))}}return e.\u0275fac=function(o){return new(o||e)(m.Jb(s.kb),m.Jb(s.lb),m.Jb(p.e),m.Jb(s.sb),m.Jb(g.b),m.Jb(c.a))},e.\u0275cmp=m.Db({type:e,selectors:[["app-certificate"]],viewQuery:function(e,o){var t;1&e&&m.kc(f,!0),2&e&&m.fc(t=m.Vb())&&(o.slides=t.first)},inputs:{view:"view",user_name:"user_name",course:"course"},decls:22,vars:7,consts:[["no-border",""],["fill","clear","color","primary",3,"click",4,"ngIf"],["slot","end"],["fill","clear","color","primary",3,"click"],["slot","end","name","arrow-down"],["color","primary",3,"click"],["color","primary","type","indeterminate",4,"ngIf"],["fullscreen","true"],["pager","true","id","mySlides",3,"ionSlideWillChange"],["slides",""],["id","slide1"],[1,"container"],[3,"src"],["class","centered",4,"ngIf"],["class","centeredMobile",4,"ngIf"],["id","slide2"],[1,"slide-image",3,"src"],["slot","end","name","chevron-forward-outline"],["slot","end","name","chevron-back-outline"],["color","primary","type","indeterminate"],[1,"centered"],[1,"centeredMobile"]],template:function(e,o){1&e&&(m.Mb(0,"ion-header",0),m.Mb(1,"ion-toolbar"),m.Mb(2,"ion-buttons"),m.lc(3,M,3,0,"ion-button",1),m.lc(4,y,3,0,"ion-button",1),m.Lb(),m.Mb(5,"ion-buttons",2),m.Mb(6,"ion-button",3),m.Ub("click",(function(){return o.exportPdf()})),m.mc(7,"Download "),m.Kb(8,"ion-icon",4),m.Lb(),m.Mb(9,"ion-button",5),m.Ub("click",(function(){return o.dismiss()})),m.mc(10,"Cancelar"),m.Lb(),m.Lb(),m.Lb(),m.lc(11,C,1,0,"ion-progress-bar",6),m.Lb(),m.Mb(12,"ion-content",7),m.Mb(13,"ion-slides",8,9),m.Ub("ionSlideWillChange",(function(e){return o.onSlideChangeStart(e)})),m.Mb(15,"ion-slide",10),m.Mb(16,"div",11),m.Kb(17,"img",12),m.lc(18,k,2,1,"div",13),m.lc(19,L,2,1,"div",14),m.Lb(),m.Lb(),m.Mb(20,"ion-slide",15),m.Kb(21,"img",16),m.Lb(),m.Lb(),m.Lb()),2&e&&(m.yb(3),m.bc("ngIf",1==o.slidePage),m.yb(1),m.bc("ngIf",2==o.slidePage),m.yb(7),m.bc("ngIf",o.loading),m.yb(6),m.bc("src",o.getCertificatePath()+"000.png",m.ic),m.yb(1),m.bc("ngIf",!o.mobile),m.yb(1),m.bc("ngIf",o.mobile),m.yb(2),m.bc("src",o.getCertificatePath()+"001.png",m.ic))},directives:[s.y,s.hb,s.j,n.j,s.i,s.z,s.s,s.Y,s.X,s.N],styles:[".container[_ngcontent-%COMP%]{position:relative;text-align:center;color:#0d384c}.bottom-left[_ngcontent-%COMP%]{bottom:8px}.bottom-left[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%]{position:absolute;left:16px}.top-left[_ngcontent-%COMP%]{top:8px}.top-right[_ngcontent-%COMP%]{top:8px}.bottom-right[_ngcontent-%COMP%], .top-right[_ngcontent-%COMP%]{position:absolute;right:16px}.bottom-right[_ngcontent-%COMP%]{bottom:8px}.centered[_ngcontent-%COMP%]{font-size:40px!important}.centered[_ngcontent-%COMP%], .centeredMobile[_ngcontent-%COMP%]{position:absolute;overflow:hidden;white-space:nowrap;margin-left:0;margin-right:0;top:54%;left:50%;transform:translate(-50%,-50%);color:#0d384c!important}.centeredMobile[_ngcontent-%COMP%]{font-size:15px!important}"]}),e})();var _=t("ZG7z");let w=(()=>{class e{constructor(e){this.popoverCtrl=e}support(){this.popoverCtrl.dismiss()}close(e){window.open(e,"_blank"),this.popoverCtrl.dismiss()}}return e.\u0275fac=function(o){return new(o||e)(m.Jb(s.ob))},e.\u0275cmp=m.Db({type:e,selectors:[["ng-component"]],decls:16,vars:0,consts:[["button","",3,"click"]],template:function(e,o){1&e&&(m.Mb(0,"ion-list"),m.Mb(1,"ion-item",0),m.Ub("click",(function(){return o.close("https://ionicframework.com/getting-started")})),m.Mb(2,"ion-label"),m.mc(3,"Learn Ionic"),m.Lb(),m.Lb(),m.Mb(4,"ion-item",0),m.Ub("click",(function(){return o.close("https://ionicframework.com/docs/")})),m.Mb(5,"ion-label"),m.mc(6,"Documentation"),m.Lb(),m.Lb(),m.Mb(7,"ion-item",0),m.Ub("click",(function(){return o.close("https://showcase.ionicframework.com")})),m.Mb(8,"ion-label"),m.mc(9,"Showcase"),m.Lb(),m.Lb(),m.Mb(10,"ion-item",0),m.Ub("click",(function(){return o.close("https://github.com/ionic-team/ionic")})),m.Mb(11,"ion-label"),m.mc(12,"GitHub Repo"),m.Lb(),m.Lb(),m.Mb(13,"ion-item",0),m.Ub("click",(function(){return o.support()}
1)),m.Mb(14,"ion-label"),m.mc(15,"Support"),m.Lb(),m.Lb(),m.Lb())},directives:[s.I,s.B,s.H],encapsulation:2}),e})();var P=t("0QMb");class O{constructor(){}}function x(e,o){1&e&&(m.Mb(0,"div",4),m.Mb(1,"ion-item"),m.Mb(2,"ion-label",5),m.Kb(3,"ion-spinner",6),m.Lb(),m.Lb(),m.Lb())}function I(e,o){1&e&&(m.Mb(0,"ion-chip",29),m.Mb(1,"ion-label"),m.mc(2," Conclu\xeddo "),m.Lb(),m.Kb(3,"ion-icon",30),m.Lb())}function S(e,o){1&e&&(m.Mb(0,"ion-chip",31),m.Mb(1,"ion-label"),m.mc(2," Em andamento "),m.Lb(),m.Kb(3,"ion-icon",32),m.Lb())}function E(e,o){1&e&&(m.Mb(0,"ion-chip",33),m.Mb(1,"ion-label"),m.mc(2," N\xe3o iniciado "),m.Lb(),m.Kb(3,"ion-icon",34),m.Lb())}function T(e,o){if(1&e&&(m.Mb(0,"ion-item"),m.Mb(1,"ion-label"),m.Mb(2,"h2"),m.mc(3),m.Lb(),m.Mb(4,"p"),m.mc(5),m.Lb(),m.Lb(),m.lc(6,I,4,0,"ion-chip",26),m.lc(7,S,4,0,"ion-chip",27),m.lc(8,E,4,0,"ion-chip",28),m.Lb()),2&e){const e=o.$implicit;m.yb(3),m.nc(e.nome_modulo),m.yb(2),m.oc(" ",e.descricao," "),m.yb(1),m.bc("ngIf","Conclu\xeddo"==e.status),m.yb(1),m.bc("ngIf","Em andamento"==e.status),m.yb(1),m.bc("ngIf","N\xe3o iniciado"==e.status)}}function z(e,o){if(1&e){const e=m.Nb();m.Mb(0,"ion-col",18),m.Mb(1,"ion-list",35),m.Mb(2,"ion-list-header"),m.Mb(3,"h3",21),m.Kb(4,"ion-icon",36),m.Mb(5,"b"),m.mc(6,"Meu certificado"),m.Lb(),m.Lb(),m.Lb(),m.Mb(7,"ul",21),m.Mb(8,"li"),m.Mb(9,"b"),m.mc(10,"Retire seu certificado aqui."),m.Lb(),m.mc(11," Para habilitar a certifica\xe7\xe3o, \xe9 necess\xe1rio ter feito mais de 75% do curso."),m.Lb(),m.Mb(12,"li"),m.mc(13,'Para alterar o nome que aparece no certificado, altere na aba "Meu perfil".'),m.Lb(),m.Lb(),m.Mb(14,"div",37),m.Mb(15,"ion-button",38),m.Ub("click",(function(){return m.hc(e),m.Wb(2).presentModal()})),m.mc(16,"Download do certificado"),m.Lb(),m.Lb(),m.Mb(17,"ion-item"),m.Mb(18,"ion-label",39),m.Mb(19,"p"),m.mc(20,"Tem d\xfavida sobre o seu progresso ou sobre a certifica\xe7\xe3o? Criamos um manual para te ajudar."),m.Lb(),m.Lb(),m.Lb(),m.Mb(21,"ion-item"),m.Mb(22,"ion-button",40),m.mc(23," Acesse o manual aqui "),m.Lb(),m.Lb(),m.Lb(),m.Lb()}if(2&e){const e=m.Wb(2);m.yb(15),m.bc("disabled",e.getUserProgressValue()<75)}}function U(e,o){if(1&e){const e=m.Nb();m.Mb(0,"div",4),m.Kb(1,"div",7),m.Mb(2,"ion-grid"),m.Mb(3,"ion-row"),m.Mb(4,"ion-col",8),m.Kb(5,"ion-icon",9),m.Mb(6,"ion-item",10),m.Mb(7,"ion-label",11),m.Mb(8,"h1"),m.Mb(9,"b"),m.mc(10),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Mb(11,"ion-chip",12),m.Mb(12,"ion-label",13),m.Mb(13,"b"),m.mc(14,"S
1ala:"),m.Lb(),m.mc(15),m.Lb(),m.Lb(),m.Lb(),m.Mb(16,"ion-col",14),m.Mb(17,"ion-button",15),m.Ub("click",(function(){return m.hc(e),m.Wb().back()})),m.mc(18,"Voltar "),m.Kb(19,"ion-icon",16),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Mb(20,"ion-grid"),m.Mb(21,"ion-row"),m.Mb(22,"ion-col",17),m.Mb(23,"ion-list-header"),m.Mb(24,"ion-label",7),m.Mb(25,"h1"),m.mc(26," Conte\xfados "),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Mb(27,"ion-grid"),m.Mb(28,"ion-row"),m.Mb(29,"ion-col",18),m.Mb(30,"ion-list",19),m.Mb(31,"ion-list-header"),m.Mb(32,"ion-grid"),m.Mb(33,"ion-row"),m.Mb(34,"ion-col",20),m.Mb(35,"h3",21),m.Kb(36,"ion-icon",22),m.Mb(37,"b"),m.mc(38,"Meu progresso"),m.Lb(),m.Lb(),m.Lb(),m.Mb(39,"ion-col",20),m.Mb(40,"h1",23),m.Mb(41,"b"),m.mc(42),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.Lb(),m.lc(43,T,9,5,"ion-item",24),m.Lb(),m.Lb(),m.lc(44,z,24,1,"ion-col",25),m.Lb(),m.Lb(),m.Lb()}if(2&e){const e=m.Wb();m.yb(10),m.nc(e.course.section),m.yb(5),m.oc(" ",e.course.room,""),m.yb(27),m.oc("",e.getUserProgressValue(),"% "),m.yb(1),m.bc("ngForOf",e.modulosContents),m.yb(1),m.bc("ngIf",!e.course.section.includes("Cachoeira do Sul"))}}const K=function(){return{opacity:"1"}};let j=(()=>{class e{constructor(e,o,t,n,i,s,r,c){this.userProgressService=e,this.popoverCtrl=o,this.courseService=t,this.modalController=n,this.storage=i,this.router=s,this.route=r,this.toastController=c,this.location="madison",this.conferenceDate="2047-05-17",this.selectOptions={header:"Select a Location"},this.modulosContents=[{nome_modulo:"Introdu\xe7\xe3o",index_modulo:1,descricao:"M\xf3dulo 1",status:"N\xe3o iniciado",link_professor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-docentes/1-introdu\xe7\xe3o",link_gestor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-gestores/1-introdu\xe7\xe3o",avaliacao:0},{nome_modulo:"Entendimento",index_modulo:2,descricao:"M\xf3dulo 2",status:"N\xe3o iniciado",link_professor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-docentes/2-entendimento",link_gestor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-gestores/2-entendimento",avaliacao:0},{nome_modulo:"Organiza\xe7\xe3o",index_modulo:3,descricao:"M\xf3dulo 3",status:"N\xe3o iniciado",link_professor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-docentes/3-organiza\xe7\xe3o",link_gestor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-gestores/3-organiza\xe7\xe3o",avaliacao:0},{nome_modulo:"Planejamento",index_modulo:4,descricao:"M\xf3dulo 4",status:"N\xe3o iniciado",link_professor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-docentes/4-planejamento",link_gestor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-gestores/4-planejamento",avaliacao:0},{nome_modulo:"Implementa\xe7\xe3o",index_modulo:5,descricao:"M\xf3dulo 5",status:"N\xe3o iniciado",link_professor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-docentes/5-implementa\xe7\xe3o",link_gestor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-gestores/5-implementa\xe7\xe3o",avaliacao:0},{nome_modulo:"Transforma\xe7\xe3o",index_modulo:6,descricao:"M\xf3dulo 6",status:"N\xe3o iniciado",link_professor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-docentes/6-transforma\xe7\xe3o",link_gestor:"https://sites.google.com/sincronizaeducacao.com.br/sincroniza-cursoeh-gestores/6-transforma\xe7\xe3o",avaliacao:0}],this.items=[],this.avaliacao="",this.loading=!1,this.disableCertificateButton=!1,this.disableCertificateButton=window.screen.width<700,this.courseId=this.route.snapshot.paramMap.get("courseId"),this.course=new h.a,this.storage.get("user").then(e=>{this.user=e}),this.myProgress=new Array,this.loading=!0}ionViewDidEnter(){console.log(this.courseId),this.courseService.get(this.courseId).then(e=>{this.course=e.data(),this.loadModules()})}getUserProgressValue(){let e=0;return this.modulosContents.forEach(o=>{"Conclu\xeddo"==o.status&&e++}),Math.ceil(e/6*100)}loadModules(){this.myProgress=new Array,this.loading=!0,console.log("Carregando m\xf3dulos"),this.userProgressService.getUsersProgressByUserIdAndCourseId(this.user.key,this.courseId).then(e=>{if(e.size>
10)e.forEach(e=>{this.myProgress.push(e.data())}),this.modulosContents=this.modulosContents.map(e=>{let o=this.myProgress.find(o=>o.index_modulo==e.index_modulo);return o?"conclu\xeddo"==o.status?(e.status="Conclu\xeddo",e.avaliacao=o.module_evaluation):e.status="Em andamento":e.status="N\xe3o iniciado",e}),this.loading=!1;else if(this.user.city.includes("Cachoeira do Sul"))this.loading=!1;else{let e=new O;e.user_id=this.user.key,e.course_id=this.courseId,e.index_modulo=1,e.key=this.user.key+this.courseId+"1",e.module_evaluation=2,e.modulo="Avalia\xe7\xe3o do m\xf3dulo - Introdu\xe7\xe3o",e.status="conclu\xeddo",e.date=new Date,this.userProgressService.set(e).then(()=>{this.loadModules()})}}).catch(e=>{this.loading=!1})}registraRedirecionamento(e){if("Conclu\xeddo"!=e.status){let o=new O;o.user_id=this.user.key,o.course_id=this.courseId,o.index_modulo=e.index_modulo,o.key=this.user.key+this.courseId+e.index_modulo,o.modulo="Avalia\xe7\xe3o do m\xf3dulo - "+e.nome_modulo,o.status="em andamento",o.date=new Date,this.userProgressService.set(o).then(()=>{this.course.section.includes("Gestores")?(window.location.assign(e.link_gestor),this.loadModules()):(window.location.assign(e.link_professor),this.loadModules())})}else this.course.section.includes("Gestores")?(window.location.assign(e.link_gestor),this.loadModules()):(window.location.assign(e.link_professor),this.loadModules())}marcaPresenca(e){let o=new O;o.user_id=this.user.key,o.course_id=this.courseId,o.index_modulo=e.index_modulo,o.key=this.user.key+this.courseId+e.index_modulo,o.modulo="Avalia\xe7\xe3o do m\xf3dulo - "+e.nome_modulo,o.module_evaluation=e.avaliacao,o.status="conclu\xeddo",o.date=new Date,this.userProgressService.set(o).then(()=>{this.presentToast("M\xf3dulo concluido com sucesso!","Voc\xea j\xe1 pode avan\xe7ar para o pr\xf3ximo m\xf3dulo :)").then(()=>{this.loadModules()})})}expandItem(e){e.expanded?e.expanded=!1:this.items.map(o=>(o.expanded=e==o&&!o.expanded,o))}presentPopover(e){return Object(r.a)(this,void 0,void 0,(function*(){const o=yield this.popoverCtrl.create({component:w,event:e});yield o.present()}))}presentToast(e,o){return Object(r.a)(this,void 0,void 0,(function*(){(yield this.toastController.create({header:e,message:o,color:"tertiary",duration:4e3,position:"top"})).present()}))}presentToastWithOptionsToRedirect(e,o,t){return Object(r.a)(this,void 0,void 0,(function*(){const n=yield this.toastController.create({header:e,color:"tertiary",message:o,position:"top",duration:3e3});return n.present(),n.onDidDismiss().then(()=>{window.open(t,"_blank"),this.loadModules()}),n}))}presentModal(){return Object(r.a)(this,void 0,void 0,(function*(){const e=yield this.modalController.create({component:v,componentProps:{view:"ABOUT",user_name:this.user.name,course:this.course},cssClass:"my-modal"});return yield e.present()}))}back(){this.router.navigateByUrl("app/tabs/courses")}}return e.\u0275fac=function(o){return new(o||e)(m.Jb(P.a),m.Jb(s.ob),m.Jb(_.a),m.Jb(s.lb),m.Jb(g.b),m.Jb(p.e),m.Jb(p.a),m.Jb(s.sb))},e.\u0275cmp=m.Db({type:e,selectors:[["page-about"]],decls:7,vars:4,consts:[[1,"ion-no-border"],[1,"about-header"],[1,"about-image","sincroniza",3,"ngStyle"],["class","about-info",4,"ngIf"],[1,"about-info"],[1,"ion-padding-top","ion-text-center"],["name","crescent"],["color","primary"],["size","10","size-md","10"],["name","school-outline","slot","start"],["lines","none"],["color","secondary",1,"ion-text-wrap"],["color","tertiary",2,"margin-left","1%"],["color","dark"],["size","2","size-md","2"],["fill","clear","color","primary",3,"click"],["slot","start","name","arrow-back"],["size","12","size-md","12"],["size","12","size-md","6"],[2,"margin-right","3%"],["size","6","size-md","6"],[2,"color","#0D384C"],["name","bar-chart-outline","slot","start","color","primary"],[2,"color","#0D384C","margin-top","8%"],[4,"ngFor","ngForOf"],["size","12","size-md","6",4,"ngIf"],["color","success",4,"ngIf"],["color","warning",4,"ngIf"],["color","danger",4,"ngIf"],["color","success"],["name","checkmark-circle",2,"margin-right","2px"],["color","warning"],["name","ellipsis-horizontal-circle-outline",2,"margin-right","2px"],["color","danger"],["name","alert-circle-outline",2,"margin-right","2px"],["lines","none",2,"margin-right","3%"],["name","document-text-outline","slot","start"],[2,"margin-left","3%","margin-top","5%"],["expand","round","color","primary",3,"disabled","click"],["color","primary",1,"ion-text-wrap"],["color","secondary","href","https://drive.google.com/file/d/1AxIx2ZNcKOGUUclEpZNLswSk639fBt8R/view?usp=sharing","target","_blank"]],template:function(e,o){1&e&&(m.Mb(0,"ion-content"),m.Mb(1,"ion-header",0),m.Kb(2,"ion-toolbar"),m.Lb(),m.Mb(3,"div",1),m.Kb(4,"div",2),m.Lb(),m.lc(5,x,4,0,"div",3),m.lc(6,U,45,5,"div",3),m.Lb()),2&e&&(m.yb(4),m.bc("ngStyle",m.ec(3,
1K)),m.yb(1),m.bc("ngIf",o.loading),m.yb(1),m.bc("ngIf",!o.loading))},directives:[s.s,s.y,s.hb,n.k,n.j,s.B,s.H,s.Z,s.x,s.R,s.r,s.z,s.q,s.i,s.J,s.I,n.i],styles:["ion-toolbar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;--background:transparent}ion-toolbar[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   ion-back-button[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%], ion-toolbar[_ngcontent-%COMP%]   ion-menu-button[_ngcontent-%COMP%]{--color:#fff}.about-header[_ngcontent-%COMP%]{position:relative;width:100%;height:30%}.about-header[_ngcontent-%COMP%]   .about-image[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:0;right:0;background-position:50%;background-size:cover;background-repeat:no-repeat;opacity:0;transition:opacity .5s ease-in-out}.about-header[_ngcontent-%COMP%]   .madison[_ngcontent-%COMP%]{background-image:url(/assets/img/about/madison.jpg)}.about-header[_ngcontent-%COMP%]   .austin[_ngcontent-%COMP%]{background-image:url(/assets/img/about/austin.jpg)}.about-header[_ngcontent-%COMP%]   .chicago[_ngcontent-%COMP%]{background-image:url(/assets/img/about/chicago.jpg)}.about-header[_ngcontent-%COMP%]   .seattle[_ngcontent-%COMP%]{background-image:url(/assets/img/about/seattle.jpg)}.about-header[_ngcontent-%COMP%]   .sincroniza[_ngcontent-%COMP%]{background-image:url(/assets/img/curso_eh.png)}.about-info[_ngcontent-%COMP%]{position:absolute;align-self:center;width:100%;margin-right:0;margin-left:0;margin-top:-10px;border-radius:20px;background:var(--ion-background-color,#fff)}.about-info[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:0}.about-info[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .about-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:0;margin-left:2%}.about-info[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{padding-top:0}.about-info[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{-webkit-margin-end:32px;margin-inline-end:32px}.ios[_ngcontent-%COMP%]   .about-info[_ngcontent-%COMP%]{--ion-padding:19px}.ios[_ngcontent-%COMP%]   .about-info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:700}"]}),e})();const A=[{path:"",component:j}];let W=(()=>{class e{}return e.\u0275mod=m.Hb({type:e}),e.\u0275inj=m.Gb({factory:function(o){return new(o||e)},imports:[[p.h.forChild(A)],p.h]}),e})(),F=(()=>{class e{}return e.\u0275mod=m.Hb({type:e,bootstrap:[j]}),e.\u0275inj=m.Gb({factory:function(o){return new(o||e)},imports:[[n.b,i.a,s.ib,W]]}),e})()},mkLO:function(e,o,t){"use strict";t.r(o),t.d(o,"CourseListModule",(function(){return S}));var n=t("ofXK"),i=t("TEn/"),s=t("tyNb"),r=t("mrSG"),c=t("1I5t"),a=t("Tj/N"),l=t("k+EF"),b=t("ZG7z"),u=t("tk/3"),d=t("o+k2"),h=t("c9j/"),m=t
1("ZMzB"),p=t("fXoL"),g=t("e8h1");function f(e,o){1&e&&p.Kb(0,"ion-progress-bar",7)}function M(e,o){1&e&&(p.Mb(0,"ion-grid"),p.Mb(1,"ion-row"),p.Mb(2,"ion-col",8),p.Mb(3,"ion-item",9),p.Mb(4,"ion-label",10),p.Kb(5,"ion-icon",11),p.Lb(),p.Lb(),p.Mb(6,"ion-item",9),p.Mb(7,"ion-label",12),p.mc(8," Voc\xea ainda n\xe3o est\xe1 matriculado em nenhum curso. "),p.Lb(),p.Lb(),p.Mb(9,"ion-item",9),p.Mb(10,"ion-label",12),p.mc(11," Para verificar novos cursos dispon\xedveis para voc\xea, clique em "),p.Kb(12,"ion-icon",13),p.Mb(13,"b"),p.mc(14," Pesquisar cursos"),p.Lb(),p.mc(15," no menu acima. "),p.Lb(),p.Lb(),p.Lb(),p.Lb(),p.Lb())}function y(e,o){if(1&e&&(p.Mb(0,"ion-text"),p.Mb(1,"ion-chip",21),p.Kb(2,"ion-icon",22),p.Mb(3,"ion-label"),p.mc(4),p.Lb(),p.Lb(),p.Lb()),2&e){const e=p.Wb().$implicit;p.yb(4),p.oc("",e.enrollment_status_txt," ")}}function C(e,o){if(1&e&&(p.Mb(0,"ion-text"),p.Mb(1,"ion-chip",21),p.Kb(2,"ion-icon",22),p.Mb(3,"ion-label"),p.mc(4),p.Lb(),p.Lb(),p.Lb()),2&e){const e=p.Wb().$implicit;p.yb(4),p.oc("",e.enrollment_status_txt," ** ")}}function k(e,o){if(1&e&&(p.Mb(0,"ion-text"),p.Mb(1,"ion-chip",23),p.Kb(2,"ion-icon",24),p.Mb(3,"ion-label"),p.mc(4),p.Lb(),p.Lb(),p.Kb(5,"br"),p.Mb(6,"ion-chip",23),p.Kb(7,"ion-icon",24),p.Mb(8,"ion-label"),p.mc(9," Se j\xe1 aceitou o convite, recarregue a p\xe1gina"),p.Lb(),p.Lb(),p.Kb(10,"br"),p.Lb()),2&e){const e=p.Wb().$implicit;p.yb(4),p.oc("",e.enrollment_status_txt," ")}}function L(e,o){if(1&e){const e=p.Nb();p.Mb(0,"ion-item",25),p.Ub("click",(function(){p.hc(e);const o=p.Wb().$implicit;return p.Wb(2).presentModal(o.course.alternateLink+"?cjc="+o.course.enrollmentCode)})),p.Kb(1,"ion-icon",26),p.Mb(2,"ion-label"),p.mc(3,"Clique aqui para confirmar matr\xedcula"),p.Lb(),p.Lb()}}function v(e,o){if(1&e){const e=p.Nb();p.Mb(0,"ion-button",27),p.Ub("click",(function(){p.hc(e);const o=p.Wb().$implicit;return p.Wb(2).aboutCourse(o.course)})),p.Mb(1,"ion-label",28),p.mc(2," Meu progresso e conte\xfados "),p.Lb(),p.Lb()}}function _(e,o){if(1&e&&(p.Mb(0,"ion-button",30),p.Mb(1,"ion-label",31),p.mc(2," Acessar no Google Sala de Aula"),p.Lb(),p.Lb()),2&e){const e=p.Wb(2).$implicit;p.bc("href",e.course.alternateLink+"?cjc="+e.course.enrollmentCode)}}function w(e,o){if(1&e&&(p.Mb(0,"ion-col",8),p.lc(1,_,3,1,"ion-button",29),p.Lb()),2&e){const e=p.Wb().$implicit;p.yb(1),p.bc("ngIf","ACTIVE"==e.enrollment_status||"ACTIVE_"==e.enrollment_status)}}function P(e,o){if(1&e&&(p.Mb(0,"ion-col",16),p.Mb(1,"ion-card"),p.Kb(2,"img",17),p.Mb(3,"ion-card-header"),p.Mb(4,"ion-card-subtitle"),p.mc(5),p.Lb(),p.Mb(6,"ion-card-title"),p.mc(7),p.Lb(),p.Lb(),p.Mb(8,"ion-card-content"),p.lc(9,y,5,1,"ion-text",5),p.lc(10,C,5,1,"ion-text",5),p.lc(11,k,11,1,"ion-text",5),p.Lb(),p.lc(12,L,4,0,"ion-item",18),p.Mb(13,"ion-grid"),p.Mb(14,"ion-row"),p.Mb(15,"ion-col",8),p.lc(16,v,3,0,"ion-button",19),p.Lb(),p.lc(17,w,2,1,"ion-col",20),p.Lb(),p.Lb(),p.Lb(),p.Lb()),2&e){const e=o.$implicit,t=p.Wb(2);p.yb(5),p.oc("",e.course.section," "),p.yb(2),p.oc("",e.course.name," "),p.yb(2),p.bc("ngIf","ACTIVE"==e.enrollment_status),p.yb(1),p.bc("ngIf","ACTIVE_"==e.enrollment_status),p.yb(1),p.bc("ngIf","INVITED"==e.enrollment_status),p.yb(1),p.bc("ngIf","INVITED"==e.enrollment_status),p.yb(4),p.bc("ngIf","ACTIVE"==e.enrollment_status||"ACTIVE_"==e.enrollment_status),p.yb(1),p.bc("ngIf",!t.user.city.includes("Cachoeira do Sul"))}}function O(e,o){if(1&e&&(p.Mb(0,"ion-grid",14),p.Mb(1,"ion-row"),p.Mb(2,"ion-col",8),p.Mb(3,"ion-item",9),p.Mb(4,"ion-label",12),p.mc(5," Para verificar se h\xe1 outros cursos dispon\xedveis para voc\xea, clique em "),p.Kb(6,"ion-icon",13),p.Mb(7,"b"),p.mc(8," Pesquisar cursos"),p.Lb(),p.mc(9," no menu acima. "),p.Lb(),p.Lb(),p.Lb(),p.lc(10,P,18,8,"ion-col",15),p.Lb(),p.Lb()),2&e){const e=p.Wb();p.yb(10),p.bc("ngForOf",e.coursesEnrollments)}}const x=[{path:"",component:(()=>{class e{constructor(e,o,t,n,i,s,r,c){this.confData=e,this.storage=o,this.http=t,this.coursesService=n,this.enrollmentService=i,this.modalController=s,this.router=r,this.userService=c,this.speakers=[],this.hasCourses=!0,this.courses=new Array,this.coursesEnrollments=new Array,this.userEnrollments=new Array,this.user=new a.a,this.loading=!0,this.hasCourses=!0,this.listenForEnrollmentEvent()}listenForEnrollmentEvent(){window.addEventListener("user:newEnrollment",()=>{this.ionViewWillEnter()})}ionViewWillEnter(){this.loading=!0,this.storage.get("uid").then(e=>{this.userService.get(e).then(e=>{this.user=e.data(),this.getUserEnrollments(this.user.key)})})}getUserEnrollments(e){this.coursesEnrollments=new Array,this.userEnrollments=new Array,this.classroomCourses=new Array,this.enrollmentService.getEnrollmentsByUserId(e).then(e=>{if(e.size>0){this.hasCourses=!0;let o=new Array;
1e.forEach(e=>{o.push(e.data())}),o.find(e=>"INVITED"==e.status||"ACTIVE_"==e.status)?(console.log("Matr\xedcula inativa"),this.getUserClassroomCourses(this.user.email).then(e=>{console.log("Cursos do classroom"),this.getUserCourseEnrollments()}).catch(e=>{console.log("Erro ao buscar no classroom"),console.log("No enrollment for this user"),this.loading=!1,this.hasCourses=!1})):this.getUserCourseEnrollments()}else this.getUserClassroomCourses(this.user.email).then(e=>{if(e){let o=[];e.forEach(e=>{let t=e,n=new d.a;n.course_key=t.id,n.user_key=this.user.key,n.status="ACTIVE",n.register_date=new Date,n.key=this.user.key+t.id,n.invitation_id=this.user.key+t.id,console.log("Finded unmmaped enrollments for user"),o.push(this.enrollmentService.set(n))}),Promise.all(o).then(()=>{this.getUserEnrollments(this.user.key)})}else console.log("No enrollment for this user"),this.loading=!1,this.hasCourses=!1}).catch(()=>{console.log("No enrollment for this user"),this.loading=!1,this.hasCourses=!1})})}getUserCourseEnrollments(){this.enrollmentService.getEnrollmentsByUserId(this.user.key).then(e=>{e.size>0&&(e.forEach(e=>{let o=e.data();console.log("Buscando curso da matricula"),o.course_key&&this.coursesService.get(o.course_key).then(e=>{"INVITED"==o.status&&(o.status="ACTIVE_"),e.data()&&this.coursesEnrollments.push({enrollment_status:o.status,enrollment_status_txt:"ACTIVE"==o.status||"ACTIVE_"==o.status?"Matr\xedcula ativa":"Clique no bot\xe3o abaixo para confirmar a matr\xedcula.",course:e.data()})})}),this.loading=!1,this.hasCourses=!0)})}getUserClassroomCourses(e){this.courses=new Array;let o=(new u.c).set("Authorization","wlqf475g0MZbBX1IlrsbKhO6wKk2");return this.http.get("https://sincroniza-educacao.firebaseapp.com/api/v1/classroomCourses/",{headers:o,params:{user_email:this.user.email}}).toPromise()}aboutCourse(e){this.router.navigate(["/app/tabs/courses/about",e.id])}doRefresh(e){this.loading=!0,setTimeout(()=>{console.log("Async operation has ended"),e.target.complete()},2e3),this.ionViewWillEnter()}presentModal(e){return Object(r.a)(this,void 0,void 0,(function*(){const o=yield this.modalController.create({component:m.a,componentProps:{redirect_link:e,view:"MY_COURSES"}});return yield o.present()}))}}return e.\u0275fac=function(o){return new(o||e)(p.Jb(c.a),p.Jb(g.b),p.Jb(u.a),p.Jb(b.a),p.Jb(h.a),p.Jb(i.lb),p.Jb(s.e),p.Jb(l.a))},e.\u0275cmp=p.Db({type:e,selectors:[["page-course-list"]],decls:10,vars:3,consts:[["fullscreen","true"],["slot","fixed",3,"ionRefresh"],["color","primary","type","indeterminate",4,"ngIf"],["collapse","condense"],["size","large"],[4,"ngIf"],["fixed","",4,"ngIf"],["color","primary","type","indeterminate"],["size","12","size-md","12"],["lines","none"],[1,"ion-text-center"],["color","primary","slot","icon-only","name","sad-outline","size","large",1,"ion-icon-large"],["color","primary",1,"ion-text-wrap","ion-text-center"],["color","primary","name","search-outline","slot","start",2,"vertical-align","middle !important"],["fixed",""],["size","12","size-md","6",4,"ngFor","ngForOf"],["size","12","size-md","6"],["src","https://lh3.googleusercontent.com/-PJZoBNJDgUc/X1LCIIWJZrI/AAAAAAAAATg/wbL_pPgTFvEuNv2fIEifhvqQmSAzIGdxgCLcBGAsYHQ/s1280-fcrop64=1,33333275ffffffff/000.png",2,"width","100%","height","30%"],["button","true","lines","none","color","secondary",3,"click",4,"ngIf"],["fill","solid","shape","round","button","true","class","ion-text-wrap ion-text-center","lines","none","color","secondary","expand","full",3,"click",4,"ngIf"],["size","12","size-md","12",4,"ngIf"],["color","success"],["name","checkmark-circle"],["color","warning"],["name","alert-outline"],["button","true","lines","none","color","secondary",3,"click"],["name","log-in-outline","slot","start"],["fill","solid","shape","round","button","true","lines","none","color","secondary","expand","full",1,"ion-text-wrap","ion-text-center",3,"click"],[1,"ion-text-wrap"],["shape","round","button","true","expand","full","class","ion-text-wrap ion-text-center","lines","none","target","_blank","color","secondary",3,"href",4,"ngIf"],["shape","round","button","true","expand","full","lines","none","target","_blank","color","secondary",1,"ion-text-wrap","ion-text-center",3,"href"],[1,"ion-text-wrap",2,"margin","20p
1x"]],template:function(e,o){1&e&&(p.Mb(0,"ion-content",0),p.Mb(1,"ion-refresher",1),p.Ub("ionRefresh",(function(e){return o.doRefresh(e)})),p.Kb(2,"ion-refresher-content"),p.Lb(),p.lc(3,f,1,0,"ion-progress-bar",2),p.Mb(4,"ion-header",3),p.Mb(5,"ion-toolbar"),p.Mb(6,"ion-title",4),p.mc(7,"Meus cursos"),p.Lb(),p.Lb(),p.Lb(),p.lc(8,M,16,0,"ion-grid",5),p.lc(9,O,11,1,"ion-grid",6),p.Lb()),2&e&&(p.yb(3),p.bc("ngIf",0==o.coursesEnrollments.length&&o.loading),p.yb(5),p.bc("ngIf",!o.hasCourses&&!o.loading),p.yb(1),p.bc("ngIf",o.coursesEnrollments.length>0&&!o.loading))},directives:[i.s,i.O,i.P,n.j,i.y,i.hb,i.fb,i.N,i.x,i.R,i.r,i.B,i.H,i.z,n.i,i.k,i.m,i.n,i.o,i.l,i.eb,i.q,i.i],styles:[".speaker-card[_ngcontent-%COMP%]{display:flex;flex-direction:column}ion-col[_ngcontent-%COMP%]:not(:last-of-type)   .speaker-card[_ngcontent-%COMP%]{margin-bottom:0}.speaker-card[_ngcontent-%COMP%]   .speaker-item[_ngcontent-%COMP%]{--min-height:85px}.speaker-card[_ngcontent-%COMP%]   .speaker-item[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;font-weight:500;letter-spacing:.02em}.speaker-card[_ngcontent-%COMP%]   .speaker-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:13px;letter-spacing:.02em}.speaker-card[_ngcontent-%COMP%]   ion-card-header[_ngcontent-%COMP%]{padding:0}.speaker-card[_ngcontent-%COMP%]   ion-card-content[_ngcontent-%COMP%]{flex:1 1 auto;padding:0}.ios[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{margin-bottom:10px}.md[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{border-top:1px solid var(--ion-color-step-150,#d7d8da);padding:0}.ion-item-border[_ngcontent-%COMP%]{border-radius:20px!important;padding:5px 10px}"]}),e})()}];let I=(()=>{class e{}return e.\u0275mod=p.Hb({type:e}),e.\u0275inj=p.Gb({factory:function(o){return new(o||e)},imports:[[s.h.forChild(x)],s.h]}),e})(),S=(()=>{class e{}return e.\u0275mod=p.Hb({type:e}),e.\u0275inj=p.Gb({factory:function(o){return new(o||e)},imports:[[n.b,i.ib,I]]}),e})()}}]);

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.