Initial Commit

This commit is contained in:
francop committed 2026-06-11 11:50:50 -04:00
commit d4a69c41be
2748 files changed
+80489

No files matched your search

@@ -0,0 +1,3 @@
/*! For license information please see 1860.dba4c52605fe71b7.js.LICENSE.txt */
export const ids=["1860"];export const modules={2322:function(t,e,i){i.a(t,(async function(t,n){try{i.r(e),i.d(e,{HaIconSelector:function(){return u}});var s=i(44249),o=i(57243),r=i(50778),c=i(94571),a=i(11297),l=i(92014),d=i(13270),h=t([d,l]);[d,l]=h.then?(await h)():h;let u=(0,s.Z)([(0,r.Mo)("ha-selector-icon")],(function(t,e){return{F:class extends e{constructor(...e){super(...e),t(this)}},d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"selector",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"required",value:()=>!0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"context",value:void 0},{kind:"method",key:"render",value:function(){const t=this.context?.icon_entity,e=t?this.hass.states[t]:void 0,i=this.selector.icon?.placeholder||e?.attributes.icon||e&&(0,c.C)((0,l.gD)(this.hass,e));return o.dy` <ha-icon-picker .hass="${this.hass}" .label="${this.label}" .value="${this.value}" .required="${this.required}" .disabled="${this.disabled}" .helper="${this.helper}" .placeholder="${this.selector.icon?.placeholder??i}" @value-changed="${this._valueChanged}"> ${!i&&e?o.dy` <ha-state-icon slot="fallback" .hass="${this.hass}" .stateObj="${e}"></ha-state-icon> `:o.Ld} </ha-icon-picker> `}},{kind:"method",key:"_valueChanged",value:function(t){(0,a.B)(this,"value-changed",{value:t.detail.value})}}]}}),o.oi);n()}catch(t){n(t)}}))},13270:function(t,e,i){i.a(t,(async function(t,e){try{var n=i(44249),s=i(57243),o=i(50778),r=i(94571),c=i(43420),a=i(92014),l=(i(10508),t([a]));a=(l.then?(await l)():l)[0];(0,n.Z)([(0,o.Mo)("ha-state-icon")],(function(t,e){return{F:class extends e{constructor(...e){super(...e),t(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"stateObj",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"stateValue",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"icon",value:void 0},{kind:"method",key:"render",value:function(){const t=this.icon||this.stateObj&&this.hass?.entities[this.stateObj.entity_id]?.icon||this.stateObj?.attributes.icon;if(t)return s.dy`<ha-icon .icon="${t}"></ha-icon>`;if(!this.stateObj)return s.Ld;if(!this.hass)return this._renderFallback();const e=(0,a.gD)(this.hass,this.stateObj,this.stateValue).then((t=>t?s.dy`<ha-icon .icon="${t}"></ha-icon>`:this._renderFallback()));return s.dy`${(0,r.C)(e)}`}},{kind:"method",key:"_renderFallback",value:function(){const t=(0,c.N)(this.stateObj);return s.dy` <ha-svg-icon .path="${a.Ls[t]||a.Rb}"></ha-svg-icon> `}}]}}),s.oi);e()}catch(t){e(t)}}))},1714:function(t,e,i){i.d(e,{sR:function(){return h}});i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814);var n=i(53232),s=i(45779);const o=(t,e)=>{var i,n;const s=t._$AN;if(void 0===s)return!1;for(const t of s)null===(n=(i=t)._$AO)||void 0===n||n.call(i,e,!1),o(t,e);return!0},r=t=>{let e,i;do{if(void 0===(e=t._$AM))break;i=e._$AN,i.delete(t),t=e}while(0===(null==i?void 0:i.size))},c=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(void 0===i)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),d(e)}};function a(t){void 0!==this._$AN?(r(this),this._$AM=t,c(this)):this._$AM=t}function l(t,e=!1,i=0){const n=this._$AH,s=this._$AN;if(void 0!==s&&0!==s.size)if(e)if(Array.isArray(n))for(let t=i;t<n.length;t++)o(n[t],!1),r(n[t]);else null!=n&&(o(n,!1),r(n));else o(this,t)}const d=t=>{var e,i,n,o;t.type==s.pX.CHILD&&(null!==(e=(n=t)._$AP)&&void 0!==e||(n._$AP=l),null!==(i=(o=t)._$AQ)&&void 0!==i||(o._$AQ=a))};class h extends s.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,n;t!==this.isConnected&&(this.isConnected=t,t?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),e&&(o(this,t),r(this))}setValue(t){if((0,n.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}},53232:function(t,e,i){i.d(e,{E_:function(){return f},OR:function(){return a},_Y:function(){return d},dZ:function(){return c},fk:function(){return h},hN:function(){return r},hl:function(){return v},i9:function(){return $},pt:function(){return o},ws:function(){return _}});var n=i(2841);const{I:s}=n.Al,o=t=>null===t||"object"!=typeof t&&"function"!=typeof t,r=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,c=t=>{var e;return null!=(null===(e=null==t?void 0:t._$litType$)||void 0===e?void 0:e.h)},a=t=>void 0===t.strings,l=()=>document.createComment(""),d=(t,e,i)=>Line truncated
//# sourceMappingURL=1860.dba4c52605fe71b7.js.map