export const __rspack_esm_id="76420";export const __rspack_esm_ids=["76420"];export const __webpack_modules__={53812(t,e,a){a.d(e,{G5:()=>o,Rz:()=>c,TW:()=>n,YC:()=>i,Yx:()=>r,kg:()=>h});var s=a(91926);const i=t=>t.callWS({type:"zone/list"}),n=(t,e)=>t.callWS({type:"zone/create",...e}),o=(t,e,a)=>t.callWS({type:"zone/update",zone_id:e,...a}),r=(t,e)=>t.callWS({type:"zone/delete",zone_id:e});let l;const c=t=>{l=t,(0,s.o)("/config/zone/new")},h=()=>{const t=l;return l=void 0,t}},68047(t,e,a){a.a(t,async function(t,s){try{a.r(e);var i=a(62826),n=a(96196),o=a(97735),r=a(22786),l=a(1087),c=a(18350),h=a(22273),d=a(53812),p=t([c,h]);[c,h]=p.then?(await p)():p;class u extends n.WF{render(){return this.hass&&this.stateObj?n.qy` ${this.stateObj.attributes.latitude&&this.stateObj.attributes.longitude?n.qy` <ha-map .hass="${this.hass}" .entities="${this._entityArray(this.stateObj.entity_id)}" auto-fit></ha-map> `:""} ${this.hass.user?.is_admin&&this.stateObj.attributes.latitude&&this.stateObj.attributes.longitude?n.qy` <div class="actions"> <ha-button appearance="plain" size="small" @click="${this._handleAction}"> ${this.hass.localize("ui.dialogs.more_info_control.person.create_zone")} </ha-button> </div> `:""} `:n.s6}_handleAction(){(0,d.Rz)({latitude:this.stateObj.attributes.latitude,longitude:this.stateObj.attributes.longitude}),(0,l.r)(this,"hass-more-info",{entityId:null})}constructor(...t){super(...t),this._entityArray=(0,r.A)(t=>[t])}}u.styles=n.AH`.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,i.Cg)([(0,o.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,i.Cg)([(0,o.MZ)({attribute:!1})],u.prototype,"stateObj",void 0),u=(0,i.Cg)([(0,o.EM)("more-info-person")],u),s()}catch(t){s(t)}})}};
//# sourceMappingURL=76420.1ac823cc57d9b614.js.map