/*! phoscon-app 2023-07-31 */

export const getMainView=c=>{return new(Backbone.View.extend({el:".body-content",initialize:function(){this.backBtn=document.querySelector("#menu-btn"),this.service=null,this.c=c},setActiveViewClass:function(cl){this.el.classList.remove("view-left"),this.el.classList.remove("view-middle"),this.el.classList.remove("view-right"),this.el.classList.add(cl);let span=this.backBtn.querySelector("span"),svgUse=this.backBtn.querySelector("svg use");if(screenMax(SCREEN_MAX_WIDTH_PHONE_PORTRAIT))if("view-middle"===cl)span.innerText=translate("text_switch"),svgUse.setAttribute("xlink:href","#back-icon-sm");else if("view-right"===cl){let sw=app.switches.get(app.session.swid);span.innerText=sw.get("name"),svgUse.setAttribute("xlink:href","#back-icon-sm")}else span.innerText="",svgUse.setAttribute("xlink:href","#icon-hamburger-sm")}}))};