text: sap.ui.define(["abapconf/web/abapconf/controller/BaseController","abapconf/web/abapconf/model/models","sap/ui/core/Fragment"],function(e,t,a){"use strict";return e.extend("abapconf.web.abapconf.controller.agenda.Agenda",{onInit:function(){if(typeof _paq!=="undefined"){window.addEventListener("hashchange",function(){_paq.push(["setCustomUrl","/#/agenda"+window.location.hash.substr(1)]);_paq.push(["setDocumentTitle","Agenda"]);_paq.push(["trackPageView"])})}this.setModel(t.createAgendaViewModel(),"agendaView")},openSession:function(e,a){console.log(a);var r=this.getModel("speakers").getProperty("/"+a);var s=t.createSessionDetailModel(r);console.log(s);this.openQuickView(e,s)},openQuickView:function(e,t){var r=e.getSource(),s=this.getView();if(!this._pQuickView){this._pQuickView=a.load({id:s.getId(),name:"abapconf.web.abapconf.view.agenda.Details",controller:this}).then(function(e){s.addDependent(e);return e})}this._pQuickView.then(function(e){e.setModel(t);e.openBy(r)})},changeAgendaLanguage:function(e){var t=e.getParameter("selectedItem").getKey();var a=this.getView().getModel("agendaView");switch(t){case"de":a.setProperty("/showEnglish",true);a.setProperty("/showGerman",false);break;case"en":a.setProperty("/showEnglish",false);a.setProperty("/showGerman",true);break;default:a.setProperty("/showEnglish",false);a.setProperty("/showGerman",false);break}},changeAgendaTracks:function(e){var t=e.getParameter("selectedItem").getKey();var a=this.getView().getModel("agendaView");var r=this.getModel("device").getProperty("/system/phone");switch(t){case"track1":a.setProperty("/showTrack1",true);a.setProperty("/showTrack2",false);a.setProperty("/showTrack3",false);a.setProperty("/showTableChannel3",false);if(r){a.setProperty("/hideTableChannel12",false)}break;case"track2":a.setProperty("/showTrack1",false);a.setProperty("/showTrack2",true);a.setProperty("/showTrack3",false);a.setProperty("/showTableChannel3",false);if(r){a.setProperty("/hideTableChannel12",false)}break;case"track3":a.setProperty("/showTrack1",false);a.setProperty("/showTrack2",false);a.setProperty("/showTrack3",true);a.setProperty("/showTableChannel3",true);if(r){a.setProperty("/hideTableChannel12",true)}break;default:a.setProperty("/showTrack1",true);a.setProperty("/showTrack2",true);a.setProperty("/showTrack3",true);a.setProperty("/showTableChannel3",true);if(r){a.setProperty("/hideTableChannel12",false)}break}},openSpeaker:function(e,t){this.getRouter().navTo("SpeakerDetail",{id:t})}})});