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

import{ButtonEvents}from"./state-constants.js";export const ClientOverwriteHandlerView=Backbone.View.extend({template:_.template(document.getElementById("client-overwrite-template").innerHTML),id:"clientOverwrite",className:"sub-view",initialize:function(){this.el.innerHTML=this.template(),app.clientStateElement.appendChild(this.el)},events:{"click .btn-overwrite":function(){app.stateEventHandler(ButtonEvents.OVERWRITE_AP_PRESSED)}},render:function(){return this},show:function(){this.el.querySelector("q").textContent=app.wifi.get("workingname"),this.el.classList.add("active-view")},hide:function(){this.el.classList.remove("active-view")}});