\n \n \n\n \n \n\n \n\n \n \n\n \n \n\n \n \n\n \n \n \n \n \n \n ',"\n \n
\n ","\n \n \n "])),(function(t){return t.stopPropagation()}),Rn("source.".concat(a))||a,o.map((function(e,a){return ot(Gn||(Gn=n(["\n \n ","\n \n "])),r===a,e,(function(e){return t.handleSpeed(e)}),Rn("source.".concat(e))||e)})))}},{key:"renderBattery",value:function(){var t=this,e=this.getAttributes(this.entity),a=e.battery_level,o=e.battery_icon;return ot(Wn||(Wn=n(['\n \n \n ',"%\n
\n "])),(function(){return t.handleMore()}),o,a)}},{key:"renderMapOrImage",value:function(t){var e=this;if(this.compactView)return rt;if(this.map){var a=this.hass.states[this.config.map];return a&&a.attributes.entity_picture?ot(Jn||(Jn=n(['\n
\n "])),a.attributes.entity_picture,Date.now(),(function(){return e.handleMore(e.config.map)})):rt}return this.image?ot(Yn||(Yn=n(['\n
\n '])),t,this.image,(function(){return e.handleMore()})):rt}},{key:"renderStats",value:function(t){var e=this,a=this.config.stats,o=void 0===a?{}:a;return(o[t]||o.default||[]).map((function(t){var a=t.entity_id,o=t.attribute,r=t.value_template,i=t.unit,s=t.subtitle;if(!a&&!o&&!r)return rt;var l=a?e.hass.states[a].state:we(e.entity.attributes,o),c=ot(Xn||(Xn=n(["\n \n "])),e.hass,r,l,{value:l});return ot(Qn||(Qn=n(['\n \n "])),(function(){return e.handleMore(a)}),c,i,s)}))}},{key:"renderName",value:function(){var t=this.getAttributes(this.entity).friendly_name;return this.showName?ot(tr||(tr=n(['\n \n ',"\n
\n "])),t):rt}},{key:"renderStatus",value:function(){var t=this.getAttributes(this.entity).status,e=Rn("status.".concat(t))||t;return this.showStatus?ot(er||(er=n(['\n \n \n
\n '])),e,e,this.requestInProgress):rt}},{key:"renderToolbar",value:function(t){var e=this;if(!this.showToolbar)return rt;switch(t){case"on":case"auto":case"spot":case"edge":case"single_room":case"cleaning":return ot(ar||(ar=n(['\n \n "])),this.handleAction("pause"),Rn("common.pause"),this.handleAction("stop"),Rn("common.stop"),this.handleAction("return_to_base"),Rn("common.return_to_base"));case"paused":return ot(or||(or=n(['\n \n "])),this.handleAction("resume",{defaultService:"start"}),Rn("common.continue"),this.handleAction("return_to_base"),Rn("common.return_to_base"));case"returning":return ot(nr||(nr=n(['\n \n "])),this.handleAction("resume",{defaultService:"start"}),Rn("common.continue"),this.handleAction("pause"),Rn("common.pause"));case"docked":case"idle":default:var a=this.config.shortcuts,o=(void 0===a?[]:a).map((function(t){var a=t.name,o=t.service,r=t.icon,i=t.service_data;return ot(rr||(rr=n(['\n \n \n \n '])),a,(function(){e.callAction({service:o,service_data:i})}),r)})),r=ot(ir||(ir=n(['\n \n \n '])),Rn("common.return_to_base"),this.handleAction("return_to_base"));return ot(sr||(sr=n(['\n \n "])),Rn("common.start"),this.handleAction("start"),Rn("common.locate"),this.handleAction("locate",{isRequest:!1}),"idle"===t?r:"",o)}}},{key:"render",value:function(){var t=this;if(!this.entity)return ot(lr||(lr=n(['\n \n