"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["76420"],{53812:function(t,e,a){a.d(e,{G5:function(){return o},Rz:function(){return c},TW:function(){return i},YC:function(){return n},Yx:function(){return r},kg:function(){return l}});var s=a(91926);const n=t=>t.callWS({type:"zone/list"}),i=(t,e)=>t.callWS(Object.assign({type:"zone/create"},e)),o=(t,e,a)=>t.callWS(Object.assign({type:"zone/update",zone_id:e},a)),r=(t,e)=>t.callWS({type:"zone/delete",zone_id:e});let u;const c=t=>{u=t,(0,s.o)("/config/zone/new")},l=()=>{const t=u;return u=void 0,t}},68047:function(t,e,a){a.a(t,async function(t,s){try{a.r(e);a(62953);var n=a(40445),i=a(96196),o=a(77845),r=a(22786),u=a(1087),c=a(18350),l=a(22273),h=a(53812),d=t([c,l]);[c,l]=d.then?(await d)():d;let p,b,f,y,g=t=>t;class _ extends i.WF{render(){var t;return this.hass&&this.stateObj?(0,i.qy)(p||(p=g` ${0} ${0} `),this.stateObj.attributes.latitude&&this.stateObj.attributes.longitude?(0,i.qy)(b||(b=g` <ha-map .hass="${0}" .entities="${0}" auto-fit></ha-map> `),this.hass,this._entityArray(this.stateObj.entity_id)):"",null!==(t=this.hass.user)&&void 0!==t&&t.is_admin&&this.stateObj.attributes.latitude&&this.stateObj.attributes.longitude?(0,i.qy)(f||(f=g` <div class="actions"> <ha-button appearance="plain" size="small" @click="${0}"> ${0} </ha-button> </div> `),this._handleAction,this.hass.localize("ui.dialogs.more_info_control.person.create_zone")):""):i.s6}_handleAction(){(0,h.Rz)({latitude:this.stateObj.attributes.latitude,longitude:this.stateObj.attributes.longitude}),(0,u.r)(this,"hass-more-info",{entityId:null})}constructor(...t){super(...t),this._entityArray=(0,r.A)(t=>[t])}}_.styles=(0,i.AH)(y||(y=g`.flex{display:flex;justify-content:space-between}.actions{margin:var(--ha-space-2) 0;text-align:right}ha-map{margin-top:var(--ha-space-4);margin-bottom:var(--ha-space-4)}`)),(0,n.Cg)([(0,o.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,n.Cg)([(0,o.MZ)({attribute:!1})],_.prototype,"stateObj",void 0),_=(0,n.Cg)([(0,o.EM)("more-info-person")],_),s()}catch(p){s(p)}})}}]);
//# sourceMappingURL=76420.844712896449d8e6.js.map