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,7 @@
/*! For license information please see 7468.ff47869764fc7b7d.js.LICENSE.txt */
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["7468"],{52158:function(e,t,i){var a=i(73577),d=(i(71695),i(47021),i(4918)),n=i(6394),l=i(57243),r=i(50778),o=i(35359),s=i(11297);let c,h,u=e=>e;(0,a.Z)([(0,r.Mo)("ha-formfield")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,r.Cb)({type:Boolean,reflect:!0})],key:"disabled",value(){return!1}},{kind:"method",key:"render",value:function(){const e={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,l.dy)(c||(c=u` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" @click="${0}"> <slot name="label">${0}</slot> </label> </div>`),(0,o.$)(e),this._labelClick,this.label)}},{kind:"method",key:"_labelClick",value:function(){const e=this.input;if(e&&(e.focus(),!e.disabled))switch(e.tagName){case"HA-CHECKBOX":e.checked=!e.checked,(0,s.B)(e,"change");break;case"HA-RADIO":e.checked=!0,(0,s.B)(e,"change");break;default:e.click()}}},{kind:"field",static:!0,key:"styles",value(){return[n.W,(0,l.iv)(h||(h=u`:host(:not([alignEnd])) ::slotted(ha-switch){margin-right:10px;margin-inline-end:10px;margin-inline-start:inline}.mdc-form-field{align-items:var(--ha-formfield-align-items,center);gap:4px}.mdc-form-field>label{direction:var(--direction);margin-inline-start:0;margin-inline-end:auto;padding:0}:host([disabled]) label{color:var(--disabled-text-color)}`))]}}]}}),d.a)},61631:function(e,t,i){var a=i(73577),d=(i(71695),i(47021),i(5601)),n=i(81577),l=i(57243),r=i(50778);let o,s=e=>e;(0,a.Z)([(0,r.Mo)("ha-radio")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",static:!0,key:"styles",value(){return[n.W,(0,l.iv)(o||(o=s`:host{--mdc-theme-secondary:var(--primary-color)}`))]}}]}}),d.J)},7826:function(e,t,i){i.a(e,(async function(e,a){try{i.r(t),i.d(t,{HaImageSelector:function(){return v}});var d=i(73577),n=i(72621),l=(i(71695),i(88044),i(47021),i(57243)),r=i(50778),o=i(11297),s=(i(59897),i(54993),i(70596),i(10581)),c=(i(61631),i(52158),i(18727)),h=e([s]);s=(h.then?(await h)():h)[0];let u,p,f,m,x=e=>e,v=(0,d.Z)([(0,r.Mo)("ha-selector-image")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"name",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"placeholder",value:void 0},{kind:"field",decorators:[(0,r.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"selector",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"required",value(){return!0}},{kind:"field",decorators:[(0,r.SB)()],key:"showUpload",value(){return!1}},{kind:"method",key:"firstUpdated",value:function(e){(0,n.Z)(i,"firstUpdated",this,3)([e]),this.value&&!this.value.startsWith(c.JS)||(this.showUpload=!0)}},{kind:"method",key:"render",value:function(){var e,t,i;return(0,l.dy)(u||(u=x` <div> <label> ${0} <ha-formfield .label="${0}"> <ha-radio name="mode" value="upload" .checked="${0}" @change="${0}"></ha-radio> </ha-formfield> <ha-formfield .label="${0}"> <ha-radio name="mode" value="url" .checked="${0}" @change="${0}"></ha-radio> </ha-formfield> </label> ${0} </div> `),this.hass.localize("ui.components.selectors.image.select_image_with_label",{label:this.label||this.hass.localize("ui.components.selectors.image.image")}),this.hass.localize("ui.components.selectors.image.upload"),this.showUpload,this._radioGroupPicked,this.hass.localize("ui.components.selectors.image.url"),!this.showUpload,this._radioGroupPicked,this.showUpload?(0,l.dy)(f||(f=x` <ha-picture-upload .hass="${0}" .value="${0}" .original="${0}" .cropOptions="${0}" select-media @change="${0}"></ha-picture-upload> `),this.hass,null!==(e=this.value)&&void 0!==e&&e.startsWith(c.JS)?this.value:null,null===(t=this.selector.image)||void 0===t?void 0:t.original,null===(i=this.selector.image)||void 0===i?void 0:i.crop,this._pictureChanged):(0,l.dy)(p||(p=x` <ha-textfield .name="${0}" .value="${0}" .placeholder="${0}" .helper="${0}" helperPersistent .disabled="${0}" @input="${0}" .label="${0}" .required="${0}"></ha-textfield> `),this.name,this.value||"",this.placeholder||"",this.helper,this.disabled,this._handleChange,this.label||"",this.required))}},{kind:"method",key:"_radioGroupPicked",value:function(e){this.showUpload="upload"===e.target.value}},{kind:"method",key:"_pictureChanged",value:function(e){const t=e.target.value;(0,o.B)(this,"value-changed",{value:null!=t?t:void 0})}},{kind:"method",key:"_handleChange",value:function(e){let t=e.target.value;this.value!==t&&(""!==t||this.requireLine truncated
--mdc-typography-subtitle1-letter-spacing,
.009375em
);visibility:hidden;white-space:pre-wrap}:host([autogrow]) .mdc-text-field__input{position:absolute;height:calc(100% - 32px)}:host([autogrow]) .mdc-text-field.mdc-text-field--no-label:after{margin-top:16px;margin-bottom:16px}.mdc-floating-label{inset-inline-start:16px!important;inset-inline-end:initial!important;transform-origin:var(--float-start) top}@media only screen and (min-width:459px){:host([mobile-multiline]) .mdc-text-field__input{white-space:nowrap;max-height:16px}}`))]}}]}}),n.O)},70596:function(e,t,i){var a=i(73577),d=i(72621),n=(i(71695),i(47021),i(1105)),l=i(33990),r=i(57243),o=i(50778),s=i(13089);let c,h,u,p,f=e=>e;(0,a.Z)([(0,o.Mo)("ha-textfield")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"invalid",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:"error-message"})],key:"errorMessage",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"icon",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"iconTrailing",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)()],key:"autocomplete",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"autocorrect",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:"input-spellcheck"})],key:"inputSpellcheck",value:void 0},{kind:"field",decorators:[(0,o.IO)("input")],key:"formElement",value:void 0},{kind:"method",key:"updated",value:function(e){(0,d.Z)(i,"updated",this,3)([e]),(e.has("invalid")||e.has("errorMessage"))&&(this.setCustomValidity(this.invalid?this.errorMessage||this.validationMessage||"Invalid":""),(this.invalid||this.validateOnInitialRender||e.has("invalid")&&void 0!==e.get("invalid"))&&this.reportValidity()),e.has("autocomplete")&&(this.autocomplete?this.formElement.setAttribute("autocomplete",this.autocomplete):this.formElement.removeAttribute("autocomplete")),e.has("autocorrect")&&(this.autocorrect?this.formElement.setAttribute("autocorrect",this.autocorrect):this.formElement.removeAttribute("autocorrect")),e.has("inputSpellcheck")&&(this.inputSpellcheck?this.formElement.setAttribute("spellcheck",this.inputSpellcheck):this.formElement.removeAttribute("spellcheck"))}},{kind:"method",key:"renderIcon",value:function(e,t=!1){const i=t?"trailing":"leading";return(0,r.dy)(c||(c=f` <span class="mdc-text-field__icon mdc-text-field__icon--${0}" tabindex="${0}"> <slot name="${0}Icon"></slot> </span> `),i,t?1:-1,i)}},{kind:"field",static:!0,key:"styles",value(){return[l.W,(0,r.iv)(h||(h=f`.mdc-text-field__input{width:var(--ha-textfield-input-width,100%)}.mdc-text-field:not(.mdc-text-field--with-leading-icon){padding:var(--text-field-padding,0px 16px)}.mdc-text-field__affix--suffix{padding-left:var(--text-field-suffix-padding-left,12px);padding-right:var(--text-field-suffix-padding-right,0px);padding-inline-start:var(--text-field-suffix-padding-left,12px);padding-inline-end:var(--text-field-suffix-padding-right,0px);direction:ltr}.mdc-text-field--with-leading-icon{padding-inline-start:var(--text-field-suffix-padding-left,0px);padding-inline-end:var(--text-field-suffix-padding-right,16px);direction:var(--direction)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:var(--text-field-suffix-padding-left,0px);padding-right:var(--text-field-suffix-padding-right,0px);padding-inline-start:var(--text-field-suffix-padding-left,0px);padding-inline-end:var(--text-field-suffix-padding-right,0px)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:var(--secondary-text-color)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon{color:var(--secondary-text-color)}.mdc-text-field__icon--leading{margin-inline-start:16px;margin-inline-end:8px;direction:var(--direction)}.mdc-text-field__icon--trailing{padding:var(--textfield-icon-trailing-padding,12px)}.mdc-floating-label:not(.mdc-floating-label--float-above){text-overflow:ellipsis;width:inherit;padding-right:30px;padding-inline-end:30px;padding-inline-start:initial;box-sizing:border-box;direction:var(--direction)}input{text-align:var(--text-field-text-align,start)}::-ms-reveal{display:none}:host([no-spinner]) input::-webkit-inner-spin-button,:host([no-spinner]) input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host([no-spinner]) input[type=number]{-moz-appearance:textfield}.mdc-text-field__ripple{overflow:hidden}.mdc-text-field{overflow:var(--text-field-overflow)}.mdc-floating-label{inset-inline-start:16px!important;inset-inline-end:initial!important;transform-origin:var(--float-start);direction:var(--direction);text-align:var(--float-start)}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px - var(--text-field-suffix-padding-left,0px));inset-inline-start:calc(48px + var(--text-field-suffix-padding-left,0px))!important;inset-inline-end:initial!important;direction:var(--direction)}.mdc-text-field__input[typLine truncated
</textarea>`),(0,o.o)(e),(0,s.a)(this.value),this.rows,this.cols,this.disabled,this.placeholder,this.required,this.readOnly,(0,o.o)(t),(0,o.o)(i),(0,o.o)(""===this.name?void 0:this.name),(0,o.o)(this.inputMode),(0,o.o)(a),this.handleInputChange,this.onInputBlur)}}(0,a.gn)([(0,l.IO)("textarea")],f.prototype,"formElement",void 0),(0,a.gn)([(0,l.Cb)({type:Number})],f.prototype,"rows",void 0),(0,a.gn)([(0,l.Cb)({type:Number})],f.prototype,"cols",void 0),(0,a.gn)([(0,l.Cb)({converter:p})],f.prototype,"charCounter",void 0)},88540:function(e,t,i){i.d(t,{W:function(){return d}});let a;const d=(0,i(57243).iv)(a||(a=(e=>e)`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`))},96526:function(e,t,i){var a=i(1569),d=i(29660),n=i(72878),l=i(72616),r=i(36888).trim,o=i(91430),s=n("".charAt),c=a.parseFloat,h=a.Symbol,u=h&&h.iterator,p=1/c(o+"-0")!=-1/0||u&&!d((function(){c(Object(u))}));e.exports=p?function(e){var t=r(l(e)),i=c(t);return 0===i&&"-"===s(t,0)?-0:i}:c},95078:function(e,t,i){var a=i(40810),d=i(96526);a({global:!0,forced:parseFloat!==d},{parseFloat:d})}}]);
//# sourceMappingURL=7468.ff47869764fc7b7d.js.map