export const __rspack_esm_id="29472";export const __rspack_esm_ids=["29472"];export const __webpack_modules__={63376(e,t,a){a.r(t),a.d(t,{HuiImageElementEditor:()=>_});var i=a(62826),o=a(22786),c=a(96196),l=a(44457),n=a(63533),s=a(1087),r=(a(52763),a(91408));const m=(0,n.Ik)({type:(0,n.eu)("image"),entity:(0,n.lq)((0,n.Yj)()),image:(0,n.lq)((0,n.KC)([(0,n.Yj)(),(0,n.Ik)()])),style:(0,n.lq)((0,n.bz)()),title:(0,n.lq)((0,n.Yj)()),tap_action:(0,n.lq)(r.kn),hold_action:(0,n.lq)(r.kn),double_tap_action:(0,n.lq)(r.kn),camera_image:(0,n.lq)((0,n.Yj)()),camera_view:(0,n.lq)((0,n.Yj)()),state_image:(0,n.lq)((0,n.bz)()),filter:(0,n.lq)((0,n.Yj)()),state_filter:(0,n.lq)((0,n.bz)()),aspect_ratio:(0,n.lq)((0,n.Yj)())});class _ extends c.WF{setConfig(e){(0,n.vA)(e,m),this._config=e}render(){return this.hass&&this._config?c.qy` <ha-form .hass="${this.hass}" .data="${this._processData(this._config)}" .schema="${this._schema(this.hass.localize)}" .computeLabel="${this._computeLabelCallback}" @value-changed="${this._valueChanged}"></ha-form> `:c.s6}_valueChanged(e){(0,s.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._schema=(0,o.A)(e=>[{name:"entity",selector:{entity:{}}},{name:"title",selector:{text:{}}},{name:"interactions",type:"expandable",flatten:!0,iconPath:"M10,9A1,1 0 0,1 11,8A1,1 0 0,1 12,9V13.47L13.21,13.6L18.15,15.79C18.68,16.03 19,16.56 19,17.14V21.5C18.97,22.32 18.32,22.97 17.5,23H11C10.62,23 10.26,22.85 10,22.57L5.1,18.37L5.84,17.6C6.03,17.39 6.3,17.28 6.58,17.28H6.8L10,19V9M11,5A4,4 0 0,1 15,9C15,10.5 14.2,11.77 13,12.46V11.24C13.61,10.69 14,9.89 14,9A3,3 0 0,0 11,6A3,3 0 0,0 8,9C8,9.89 8.39,10.69 9,11.24V12.46C7.8,11.77 7,10.5 7,9A4,4 0 0,1 11,5Z",schema:[{name:"tap_action",selector:{ui_action:{default_action:"more-info"}}},{name:"hold_action",selector:{ui_action:{default_action:"more-info"}}},{name:"",type:"optional_actions",flatten:!0,schema:[{name:"double_tap_action",selector:{ui_action:{default_action:"none"}}}]}]},{name:"image",selector:{media:{accept:["image/*"],clearable:!0,image_upload:!0,hide_content_type:!0,content_id_helper:e("ui.panel.lovelace.editor.card.picture.content_id_helper")}}},{name:"camera_image",selector:{entity:{domain:"camera"}}},{name:"camera_view",selector:{select:{options:["auto","live"].map(t=>({value:t,label:e(`ui.panel.lovelace.editor.card.generic.camera_view_options.${t}`)})),mode:"dropdown"}}},{name:"state_image",selector:{object:{}}},{name:"filter",selector:{text:{}}},{name:"state_filter",selector:{object:{}}},{name:"aspect_ratio",selector:{text:{}}},{name:"style",selector:{object:{}}}]),this._processData=(0,o.A)(e=>({...e,..."string"==typeof e.image?{image:{media_content_id:e.image}}:{}})),this._computeLabelCallback=e=>this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`)||this.hass.localize(`ui.panel.lovelace.editor.elements.${e.name}`)||e.name}}(0,i.Cg)([(0,l.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,i.Cg)([(0,l.wk)()],_.prototype,"_config",void 0),_=(0,i.Cg)([(0,l.EM)("hui-image-element-editor")],_)}};
//# sourceMappingURL=29472.fca20a2f04d7a091.js.map