/*! phoscon-app 2024-10-07 */

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(){const name=this.el.querySelector("q");name&&(name.textContent=app.wifi.get("workingname")),this.el.classList.add("active-view")},hide:function(){this.el.classList.remove("active-view")}});