/*! phoscon-app 2024-02-26 */

import{ButtonEvents}from"./state-constants.js";export const ClientConfiguredHandlerView=Backbone.View.extend({template:_.template(document.getElementById("client-configured-template").innerHTML),id:"clientConfigured",className:"sub-view",initialize:function(){this.el.innerHTML=this.template(app.wifi),app.clientStateElement.appendChild(this.el),this.ListElem=this.el.querySelector("#wifiListConf"),this.EmptyElem=this.el.querySelector("#wifiListEmptyConf"),this.InfoElem=this.el.querySelector("#connectedInfoConf")},events:{"click .btn-deactivate":function(){app.stateEventHandler(ButtonEvents.DEACTIVATE_CLIENT_PRESSED)}},render:function(){return this},show:function(){this.el.classList.add("active-view")},showList:function(){this.ListElem.classList.add("active-elem"),this.InfoElem.classList.add("active-elem"),this.EmptyElem.classList.remove("active-elem")},showEmpty:function(){this.EmptyElem.classList.add("active-elem"),this.ListElem.classList.remove("active-elem"),this.InfoElem.classList.remove("active-elem")},hide:function(){this.el.classList.remove("active-view"),this.ListElem.classList.remove("active-elem"),this.InfoElem.classList.remove("active-elem"),this.EmptyElem.classList.remove("active-elem")}});