/*! phoscon-app 2024-08-14 */

import{ButtonEvents}from"./state-constants.js";export const ApOverwriteHandlerView=Backbone.View.extend({template:_.template(document.getElementById("ap-overwrite-template").innerHTML),id:"apOverwrite",className:"sub-view",initialize:function(){this.el.innerHTML=this.template(app.wifi),app.apStateElement.appendChild(this.el),this.render()},events:{"click .btn-overwrite":function(){app.stateEventHandler(ButtonEvents.CONFIGURE_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")}});