/*! phoscon-app 2024-01-19 */

export const getGroupModePageView=c=>Backbone.View.extend({el:"#pageGroupMode",template:_.template(document.getElementById("pageGroupMode-template").innerHTML),initialize:function(c){this.c=c,this.hf=this.c.helperFuncs,this.el.innerHTML=this.template(),this.service=null,this.headLine=this.el.querySelector("#bodyRightHead span"),this.nextBtn=this.el.querySelector(".subfunc-container > button.mq-phone"),this.modeContainer=this.el.querySelectorAll(".mode-container")},show:function(){this.el.classList.add("active-view")},hide:function(){this.el.classList.remove("active-view")},setMode:function(mode){this.modeContainer.forEach(container=>{container.getAttribute("data-mode")==mode?container.classList.add("active-mode"):container.classList.remove("active-mode")})},getMode:function(){let el=this.el.querySelector(".mode-container.active-mode");return el?el.getAttribute("data-mode"):"editor"}});export const getGroupModeInfoPageView=c=>Backbone.View.extend({el:"#pageGroupModeInfo",template:_.template(document.getElementById("pageGroupModeInfo-template").innerHTML),initialize:function(c){this.c=c,this.hf=this.c.helperFuncs,this.el.innerHTML=this.template(),this.service=null},show:function(){this.el.classList.add("active-view")},hide:function(){this.el.classList.remove("active-view")}});