iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 43.4 kB
JavaScript
/*! For license information please see 21677.3d28e65485aac36c.js.LICENSE.txt */
export const __webpack_ids__=["21677"];export const __webpack_modules__={23129:function(e,t,i){var l=i(44249),a=i(72621),o=i(9065),r=(i(48884),i(15093)),d=i(79840),n=i(57243);const s=n.iv`:host{--_active-indicator-color:var(--md-filled-text-field-active-indicator-color, var(--md-sys-color-on-surface-variant, #49454f));--_active-indicator-height:var(--md-filled-text-field-active-indicator-height, 1px);--_caret-color:var(--md-filled-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_container-color:var(--md-filled-text-field-container-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_disabled-active-indicator-color:var(--md-filled-text-field-disabled-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-active-indicator-height:var(--md-filled-text-field-disabled-active-indicator-height, 1px);--_disabled-active-indicator-opacity:var(--md-filled-text-field-disabled-active-indicator-opacity, 0.38);--_disabled-container-color:var(--md-filled-text-field-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-opacity:var(--md-filled-text-field-disabled-container-opacity, 0.04);--_disabled-input-text-color:var(--md-filled-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity:var(--md-filled-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color:var(--md-filled-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity:var(--md-filled-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color:var(--md-filled-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity:var(--md-filled-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-supporting-text-color:var(--md-filled-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity:var(--md-filled-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color:var(--md-filled-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity:var(--md-filled-text-field-disabled-trailing-icon-opacity, 0.38);--_error-active-indicator-color:var(--md-filled-text-field-error-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-active-indicator-color:var(--md-filled-text-field-error-focus-active-indicator-color, var(--md-sys-color-error, #b3261e));--_error-focus-caret-color:var(--md-filled-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color:var(--md-filled-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color:var(--md-filled-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color:var(--md-filled-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-supporting-text-color:var(--md-filled-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color:var(--md-filled-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-active-indicator-color:var(--md-filled-text-field-error-hover-active-indicator-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-input-text-color:var(--md-filled-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color:var(--md-filled-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color:var(--md-filled-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-state-layer-color:var(--md-filled-text-field-error-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-state-layer-opacity:var(--md-filled-text-field-error-hover-state-layer-opacity, 0.08);--_error-hover-supporting-text-color:var(--md-filled-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color:var(--md-filled-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color:var(--md-filled-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color:var(--md-filled-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color:var(--md-filled-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-supporting-text-color:var(--md-filled-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color:var(--md-filled-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-active-indicator-color:var(--md-filled-text-field-focus-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_focus-active-indicator-height:var(--md-filled-text-field-focus-active-indicator-height, 3px);--_focus-input-text-color:var(--md-filled-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color:var(--md-filled-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color:var(--md-filled-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-supporting-text-color:var(--md-filled-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color:var(--md-filled-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-active-indicator-color:var(--md-filled-text-field-hover-active-indicator-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-active-indicator-height:var(--md-filled-text-field-hover-active-indicator-height, 1px);--_hover-input-text-color:var(--md-filled-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color:var(--md-filled-text-field-hover-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-leading-icon-color:var(--md-filled-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color:var(--md-filled-text-field-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity:var(--md-filled-text-field-hover-state-layer-opacity, 0.08);--_hover-supporting-text-color:var(--md-filled-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color:var(--md-filled-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color:var(--md-filled-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font:var(--md-filled-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height:var(--md-filled-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color:var(--md-filled-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color:var(--md-filled-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size:var(--md-filled-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color:var(--md-filled-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight:var(--md-filled-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color:var(--md-filled-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font:var(--md-filled-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height:var(--md-filled-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height:var(--md-filled-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size:var(--md-filled-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size:var(--md-filled-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight:var(--md-filled-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color:var(--md-filled-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size:var(--md-filled-text-field-leading-icon-size, 24px);--_supporting-text-color:var(--md-filled-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font:var(--md-filled-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height:var(--md-filled-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size:var(--md-filled-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight:var(--md-filled-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color:var(--md-filled-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size:var(--md-filled-text-field-trailing-icon-size, 24px);--_container-shape-start-start:var(--md-filled-text-field-container-shape-start-start, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end:var(--md-filled-text-field-container-shape-start-end, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end:var(--md-filled-text-field-container-shape-end-end, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_container-shape-end-start:var(--md-filled-text-field-container-shape-end-start, var(--md-filled-text-field-container-shape, var(--md-sys-shape-corner-none, 0px)));--_icon-input-space:var(--md-filled-text-field-icon-input-space, 16px);--_leading-space:var(--md-filled-text-field-leading-space, 16px);--_trailing-space:var(--md-filled-text-field-trailing-space, 16px);--_top-space:var(--md-filled-text-field-top-space, 16px);--_bottom-space:var(--md-filled-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space:var(--md-filled-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space:var(--md-filled-text-field-input-text-suffix-leading-space, 2px);--_with-label-top-space:var(--md-filled-text-field-with-label-top-space, 8px);--_with-label-bottom-space:var(--md-filled-text-field-with-label-bottom-space, 8px);--_focus-caret-color:var(--md-filled-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space:var(--md-filled-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space:var(--md-filled-text-field-with-trailing-icon-trailing-space, 12px);--md-filled-field-active-indicator-color:var(--_active-indicator-color);--md-filled-field-active-indicator-height:var(--_active-indicator-height);--md-filled-field-bottom-space:var(--_bottom-space);--md-filled-field-container-color:var(--_container-color);--md-filled-field-container-shape-end-end:var(--_container-shape-end-end);--md-filled-field-container-shape-end-start:var(--_container-shape-end-start);--md-filled-field-container-shape-start-end:var(--_container-shape-start-end);--md-filled-field-container-shape-start-start:var(--_container-shape-start-start);--md-filled-field-content-color:var(--_input-text-color);--md-filled-field-content-font:var(--_input-text-font);--md-filled-field-content-line-height:var(--_input-text-line-height);--md-filled-field-content-size:var(--_input-text-size);--md-filled-field-content-space:var(--_icon-input-space);--md-filled-field-content-weight:var(--_input-text-weight);--md-filled-field-disabled-active-indicator-color:var(--_disabled-active-indicator-color);--md-filled-field-disabled-active-indicator-height:var(--_disabled-active-indicator-height);--md-filled-field-disabled-active-indicator-opacity:var(--_disabled-active-indicator-opacity);--md-filled-field-disabled-container-color:var(--_disabled-container-color);--md-filled-field-disabled-container-opacity:var(--_disabled-container-opacity);--md-filled-field-disabled-content-color:var(--_disabled-input-text-color);--md-filled-field-disabled-content-opacity:var(--_disabled-input-text-opacity);--md-filled-field-disabled-label-text-color:var(--_disabled-label-text-color);--md-filled-field-disabled-label-text-opacity:var(--_disabled-label-text-opacity);--md-filled-field-disabled-leading-content-color:var(--_disabled-leading-icon-color);--md-filled-field-disabled-leading-content-opacity:var(--_disabled-leading-icon-opacity);--md-filled-field-disabled-supporting-text-color:var(--_disabled-supporting-text-color);--md-filled-field-disabled-supporting-text-opacity:var(--_disabled-supporting-text-opacity);--md-filled-field-disabled-trailing-content-color:var(--_disabled-trailing-icon-color);--md-filled-field-disabled-trailing-content-opacity:var(--_disabled-trailing-icon-opacity);--md-filled-field-error-active-indicator-color:var(--_error-active-indicator-color);--md-filled-field-error-content-color:var(--_error-input-text-color);--md-filled-field-error-focus-active-indicator-color:var(--_error-focus-active-indicator-color);--md-filled-field-error-focus-content-color:var(--_error-focus-input-text-color);--md-filled-field-error-focus-label-text-color:var(--_error-focus-label-text-color);--md-filled-field-error-focus-leading-content-color:var(--_error-focus-leading-icon-color);--md-filled-field-error-focus-supporting-text-color:var(--_error-focus-supporting-text-color);--md-filled-field-error-focus-trailing-content-color:var(--_error-focus-trailing-icon-color);--md-filled-field-error-hover-active-indicator-color:var(--_error-hover-active-indicator-color);--md-filled-field-error-hover-content-color:var(--_error-hover-input-text-color);--md-filled-field-error-hover-label-text-color:var(--_error-hover-label-text-color);--md-filled-field-error-hover-leading-content-color:var(--_error-hover-leading-icon-color);--md-filled-field-error-hover-state-layer-color:var(--_error-hover-state-layer-color);--md-filled-field-error-hover-state-layer-opacity:var(--_error-hover-state-layer-opacity);--md-filled-field-error-hover-supporting-text-color:var(--_error-hover-supporting-text-color);--md-filled-field-error-hover-trailing-content-color:var(--_error-hover-trailing-icon-color);--md-filled-field-error-label-text-color:var(--_error-label-text-color);--md-filled-field-error-leading-content-color:var(--_error-leading-icon-color);--md-filled-field-error-supporting-text-color:var(--_error-supporting-text-color);--md-filled-field-error-trailing-content-color:var(--_error-trailing-icon-color);--md-filled-field-focus-active-indicator-color:var(--_focus-active-indicator-color);--md-filled-field-focus-active-indicator-height:var(--_focus-active-indicator-height);--md-filled-field-focus-content-color:var(--_focus-input-text-color);--md-filled-field-focus-label-text-color:var(--_focus-label-text-color);--md-filled-field-focus-leading-content-color:var(--_focus-leading-icon-color);--md-filled-field-focus-supporting-text-color:var(--_focus-supporting-text-color);--md-filled-field-focus-trailing-content-color:var(--_focus-trailing-icon-color);--md-filled-field-hover-active-indicator-color:var(--_hover-active-indicator-color);--md-filled-field-hover-active-indicator-height:var(--_hover-active-indicator-height);--md-filled-field-hover-content-color:var(--_hover-input-text-color);--md-filled-field-hover-label-text-color:var(--_hover-label-text-color);--md-filled-field-hover-leading-content-color:var(--_hover-leading-icon-color);--md-filled-field-hover-state-layer-color:var(--_hover-state-layer-color);--md-filled-field-hover-state-layer-opacity:var(--_hover-state-layer-opacity);--md-filled-field-hover-supporting-text-color:var(--_hover-supporting-text-color);--md-filled-field-hover-trailing-content-color:var(--_hover-trailing-icon-color);--md-filled-field-label-text-color:var(--_label-text-color);--md-filled-field-label-text-font:var(--_label-text-font);--md-filled-field-label-text-line-height:var(--_label-text-line-height);--md-filled-field-label-text-populated-line-height:var(--_label-text-populated-line-height);--md-filled-field-label-text-populated-size:var(--_label-text-populated-size);--md-filled-field-label-text-size:var(--_label-text-size);--md-filled-field-label-text-weight:var(--_label-text-weight);--md-filled-field-leading-content-color:var(--_leading-icon-color);--md-filled-field-leading-space:var(--_leading-space);--md-filled-field-supporting-text-color:var(--_supporting-text-color);--md-filled-field-supporting-text-font:var(--_supporting-text-font);--md-filled-field-supporting-text-line-height:var(--_supporting-text-line-height);--md-filled-field-supporting-text-size:var(--_supporting-text-size);--md-filled-field-supporting-text-weight:var(--_supporting-text-weight);--md-filled-field-top-space:var(--_top-space);--md-filled-field-trailing-content-color:var(--_trailing-icon-color);--md-filled-field-trailing-space:var(--_trailing-space);--md-filled-field-with-label-bottom-space:var(--_with-label-bottom-space);--md-filled-field-with-label-top-space:var(--_with-label-top-space);--md-filled-field-with-leading-content-leading-space:var(--_with-leading-icon-leading-space);--md-filled-field-with-trailing-content-trailing-space:var(--_with-trailing-icon-trailing-space)}`;var c=i(5060);class u extends c.n{constructor(){super(...arguments),this.fieldTag=d.i0`md-filled-field`}}var f=i(1853);let h=class extends u{constructor(){super(...arguments),this.fieldTag=d.i0`md-filled-field`}};h.styles=[f.W,s],h=(0,o.__decorate)([(0,r.Mo)("md-filled-text-field")],h);(0,l.Z)([(0,r.Mo)("ha-md-textfield")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",static:!0,key:"styles",value(){return[...(0,a.Z)(i,"styles",this),n.iv`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface-variant:var(--secondary-text-color);--md-sys-color-surface-container-highest:var(--input-fill-color);--md-sys-color-on-surface:var(--input-ink-color);--md-sys-color-surface-container:var(--input-fill-color);--md-sys-color-secondary-container:var(--input-fill-color)}`]}}]}}),h)},34326:function(e,t,i){var l=i(44249),a=i(57243),o=i(15093);i(23334),i(83166);(0,l.Z)([(0,o.Mo)("ha-password-field")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{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:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"iconTrailing",value:()=>!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.Cb)({type:String})],key:"value",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"placeholder",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"label",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,reflect:!0})],key:"disabled",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"required",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Number})],key:"minLength",value:()=>-1},{kind:"field",decorators:[(0,o.Cb)({type:Number})],key:"maxLength",value:()=>-1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,reflect:!0})],key:"outlined",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"helper",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"validateOnInitialRender",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"validationMessage",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"autoValidate",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"pattern",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:Number})],key:"size",value:()=>null},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"helperPersistent",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"charCounter",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"endAligned",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"prefix",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"suffix",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"name",value:()=>""},{kind:"field",decorators:[(0,o.Cb)({type:String,attribute:"input-mode"})],key:"inputMode",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"readOnly",value:()=>!1},{kind:"field",decorators:[(0,o.Cb)({attribute:!1,type:String})],key:"autocapitalize",value:()=>""},{kind:"field",decorators:[(0,o.SB)()],key:"_unmaskedPassword",value:()=>!1},{kind:"field",decorators:[(0,o.IO)("ha-textfield")],key:"_textField",value:void 0},{kind:"method",key:"render",value:function(){return a.dy`<ha-textfield .invalid="${this.invalid}" .errorMessage="${this.errorMessage}" .icon="${this.icon}" .iconTrailing="${this.iconTrailing}" .autocomplete="${this.autocomplete}" .autocorrect="${this.autocorrect}" .inputSpellcheck="${this.inputSpellcheck}" .value="${this.value}" .placeholder="${this.placeholder}" .label="${this.label}" .disabled="${this.disabled}" .required="${this.required}" .minLength="${this.minLength}" .maxLength="${this.maxLength}" .outlined="${this.outlined}" .helper="${this.helper}" .validateOnInitialRender="${this.validateOnInitialRender}" .validationMessage="${this.validationMessage}" .autoValidate="${this.autoValidate}" .pattern="${this.pattern}" .size="${this.size}" .helperPersistent="${this.helperPersistent}" .charCounter="${this.charCounter}" .endAligned="${this.endAligned}" .prefix="${this.prefix}" .name="${this.name}" .inputMode="${this.inputMode}" .readOnly="${this.readOnly}" .autocapitalize="${this.autocapitalize}" .type="${this._unmaskedPassword?"text":"password"}" .suffix="${a.dy`<div style="width:24px"></div>`}" ="${this._handleInputEvent}" ="${this._handleChangeEvent}"></ha-textfield> <ha-icon-button .label="${this.hass?.localize(this._unmaskedPassword?"ui.components.selectors.text.hide_password":"ui.components.selectors.text.show_password")||(this._unmaskedPassword?"Hide password":"Show password")}" ="${this._toggleUnmaskedPassword}" .path="${this._unmaskedPassword?"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z":"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}"></ha-icon-button>`}},{kind:"method",key:"focus",value:function(){this._textField.focus()}},{kind:"method",key:"checkValidity",value:function(){return this._textField.checkValidity()}},{kind:"method",key:"reportValidity",value:function(){return this._textField.reportValidity()}},{kind:"method",key:"setCustomValidity",value:function(e){return this._textField.setCustomValidity(e)}},{kind:"method",key:"layout",value:function(){return this._textField.layout()}},{kind:"method",key:"_toggleUnmaskedPassword",value:function(){this._unmaskedPassword=!this._unmaskedPassword}},{kind:"method",decorators:[(0,o.hO)({passive:!0})],key:"_handleInputEvent",value:function(e){this.value=e.target.value}},{kind:"method",decorators:[(0,o.hO)({passive:!0})],key:"_handleChangeEvent",value:function(e){this.value=e.target.value,this._reDispatchEvent(e)}},{kind:"method",key:"_reDispatchEvent",value:function(e){const t=new Event(e.type,e);this.dispatchEvent(t)}},{kind:"field",static:!0,key:"styles",value:()=>a.iv`:host{display:block;position:relative}ha-textfield{width:100%}ha-icon-button{position:absolute;top:8px;right:8px;inset-inline-start:initial;inset-inline-end:8px;--mdc-icon-button-size:40px;--mdc-icon-size:20px;color:var(--secondary-text-color);direction:var(--direction)}`}]}}),a.oi)},95076:function(e,t,i){var l=i(44249),a=i(57243),o=i(15093);i(37583);(0,l.Z)([(0,o.Mo)("ha-tip")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"method",key:"render",value:function(){return this.hass?a.dy` <ha-svg-icon .path="${"M12,2A7,7 0 0,1 19,9C19,11.38 17.81,13.47 16,14.74V17A1,1 0 0,1 15,18H9A1,1 0 0,1 8,17V14.74C6.19,13.47 5,11.38 5,9A7,7 0 0,1 12,2M9,21V20H15V21A1,1 0 0,1 14,22H10A1,1 0 0,1 9,21M12,4A5,5 0 0,0 7,9C7,11.05 8.23,12.81 10,13.58V16H14V13.58C15.77,12.81 17,11.05 17,9A5,5 0 0,0 12,4Z"}"></ha-svg-icon> <span class="prefix">${this.hass.localize("ui.panel.config.tips.tip")}</span> <span class="text"><slot></slot></span> `:a.Ld}},{kind:"field",static:!0,key:"styles",value:()=>a.iv`:host{display:block;text-align:center}.text{direction:var(--direction);margin-left:2px;margin-inline-start:2px;margin-inline-end:initial;color:var(--secondary-text-color)}.prefix{font-weight:500}`}]}}),a.oi)},68545:function(e,t,i){i.a(e,(async function(e,t){try{var l=i(44249),a=(i(9359),i(56475),i(70104),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(57243)),o=i(15093),r=i(27486),d=i(36522),n=i(73850),s=i(83523),c=(i(23334),i(19993),i(74633),i(37583),i(1888),i(26779)),u=i(88238),f=e([c]);c=(f.then?(await f)():f)[0];const h="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",p="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",v="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z",m="M4,5C2.89,5 2,5.89 2,7V17C2,18.11 2.89,19 4,19H20C21.11,19 22,18.11 22,17V7C22,5.89 21.11,5 20,5H4M4.5,7A1,1 0 0,1 5.5,8A1,1 0 0,1 4.5,9A1,1 0 0,1 3.5,8A1,1 0 0,1 4.5,7M7,7H20V17H7V7M8,8V16H11V8H8M12,8V16H15V8H12M16,8V16H19V8H16M9,9H10V10H9V9M13,9H14V10H13V9M17,9H18V10H17V9Z",g=[];(0,l.Z)([(0,o.Mo)("ha-backup-config-agents")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"cloudStatus",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"agents",value:()=>[]},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"agentsConfig",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,attribute:"show-settings"})],key:"showSettings",value:()=>!1},{kind:"field",decorators:[(0,o.SB)()],key:"value",value:void 0},{kind:"get",key:"_value",value:function(){return this.value??g}},{kind:"method",key:"_description",value:function(e){if(e===c.$u)return this.cloudStatus.logged_in&&!this.cloudStatus.active_subscription?this.hass.localize("ui.panel.config.backup.agents.cloud_agent_no_subcription"):this.hass.localize("ui.panel.config.backup.agents.cloud_agent_description");return!1===this.agentsConfig?.[e]?.protected?a.dy` <span class="dot warning"></span> <span> ${this.hass.localize("ui.panel.config.backup.agents.encryption_turned_off")} </span> `:(0,c.BR)(e)?this.hass.localize("ui.panel.config.backup.agents.network_mount_agent_description"):""}},{kind:"field",key:"_availableAgents",value:()=>(0,r.Z)(((e,t)=>e.filter((e=>e.agent_id!==c.$u||t.logged_in))))},{kind:"field",key:"_unavailableAgents",value(){return(0,r.Z)(((e,t,i)=>{const l=this._availableAgents(e,t).map((e=>e.agent_id));return i.filter((e=>!l.includes(e))).map((e=>({agent_id:e,name:e.split(".")[1]||e})))}))}},{kind:"method",key:"_renderAgentIcon",value:function(e){if((0,c.V1)(e))return a.dy` <ha-svg-icon .path="${v}" slot="start"></ha-svg-icon> `;if((0,c.BR)(e))return a.dy`<ha-svg-icon .path="${m}" slot="start"></ha-svg-icon>`;const t=(0,n.M)(e);return a.dy` <img .src="${(0,u.X1)({domain:t,type:"icon",useFallback:!0,darkOptimized:this.hass.themes?.darkMode})}" crossorigin="anonymous" referrerpolicy="no-referrer" alt="" slot="start"> `}},{kind:"method",key:"render",value:function(){const e=this._availableAgents(this.agents,this.cloudStatus),t=this._unavailableAgents(this.agents,this.cloudStatus,this._value),i=[...e,...t];return a.dy` ${i.length>0?a.dy` <ha-md-list> ${e.map((e=>{const t=e.agent_id,l=(0,c.Sw)(this.hass.localize,t,i),o=this._description(t),r=t===c.$u&&this.cloudStatus.logged_in&&!this.cloudStatus.active_subscription;return a.dy` <ha-md-list-item> ${this._renderAgentIcon(t)} <div slot="headline" class="name">${l}</div> ${o?a.dy`<div slot="supporting-text">${o}</div>`:a.Ld} ${this.showSettings?a.dy` <ha-icon-button id="${t}" slot="end" path="${h}" ="${this._showAgentSettings}"></ha-icon-button> `:a.Ld} <ha-switch slot="end" id="${t}" .checked="${this._value.includes(t)}" .disabled="${r&&!this._value.includes(t)}" ="${this._agentToggled}"></ha-switch> </ha-md-list-item> `}))} ${t.length>0&&this.showSettings?a.dy` <p class="heading"> ${this.hass.localize("ui.panel.config.backup.agents.unavailable_agents")} </p> ${t.map((e=>{const t=e.agent_id,l=(0,c.Sw)(this.hass.localize,t,i);return a.dy` <ha-md-list-item> ${this._renderAgentIcon(t)} <div slot="headline" class="name">${l}</div> <ha-icon-button id="${t}" slot="end" path="${p}" ="${this._deleteAgent}"></ha-icon-button> </ha-md-list-item> `}))} `:a.Ld} </ha-md-list> `:a.dy` <p> ${this.hass.localize("ui.panel.config.backup.agents.no_agents")} </p> `} `}},{kind:"method",key:"_showAgentSettings",value:function(e){const t=e.currentTarget.id;(0,s.c)(`/config/backup/location/${t}`)}},{kind:"method",key:"_deleteAgent",value:function(e){e.stopPropagation();const t=e.currentTarget.id;this.value=this._value.filter((e=>e!==t)),(0,d.B)(this,"value-changed",{value:this.value})}},{kind:"method",key:"_agentToggled",value:function(e){e.stopPropagation();const t=e.currentTarget.checked,i=e.currentTarget.id;this.value=t?[...this._value,i]:this._value.filter((e=>e!==i)),this.value=[...new Set(this.value)],(0,d.B)(this,"value-changed",{value:this.value})}},{kind:"field",static:!0,key:"styles",value:()=>a.iv`ha-md-list{background:0 0;--md-list-item-leading-space:0;--md-list-item-trailing-space:0}ha-md-list-item{--md-item-overflow:visible}ha-md-list-item .name{word-break:break-word}ha-md-list-item img{width:48px}ha-md-list-item ha-svg-icon[slot=start]{--mdc-icon-size:48px;color:var(--primary-text-color)}ha-md-list-item [slot=supporting-text]{display:flex;align-items:center;flex-direction:row;gap:8px;line-height:normal}.dot{display:block;position:relative;width:8px;height:8px;background-color:var(--disabled-color);border-radius:50%;flex:none}.dot.warning{background-color:var(--warning-color)}`}]}}),a.oi);t()}catch(e){t(e)}}))},6384:function(e,t,i){i.a(e,(async function(e,t){try{var l=i(44249),a=(i(92745),i(9359),i(70104),i(57243)),o=i(15093),r=i(27486),d=i(36522),n=i(34593),s=(i(19993),i(74633),i(67846),i(18049),i(23129),i(1888),i(26779)),c=(i(49653),i(95076),i(41307),i(83456),i(55486),i(33570)),u=i(73192),f=e([c,s]);[c,s]=f.then?(await f)():f;const v=1,m=50;var h=function(e){return e.COPIES_3="copies_3",e.FOREVER="forever",e.CUSTOM="custom",e}(h||{}),p=function(e){return e.DEFAULT="default",e.CUSTOM="custom",e}(p||{});const g={copies_3:{type:"copies",value:3},forever:{type:"forever",value:0}},y=[s.wy.NEVER,s.wy.DAILY,s.wy.CUSTOM_DAYS],x=[h.COPIES_3,h.FOREVER,h.CUSTOM],_=[p.DEFAULT,p.CUSTOM],b=e=>{for(const[t,i]of Object.entries(g))if(i.type===e.type&&(i.type===h.FOREVER||i.value===e.value))return t;return h.CUSTOM},k={recurrence:s.wy.NEVER,time_option:p.DEFAULT,days:[],retention:{type:"copies",value:3}};(0,l.Z)([(0,o.Mo)("ha-backup-config-schedule")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"value",value:void 0},{kind:"field",decorators:[(0,o.SB)()],key:"_retentionPreset",value:void 0},{kind:"method",key:"willUpdate",value:function(e){if(e.has("value")&&this._retentionPreset!==h.CUSTOM){const e=this._getData(this.value);this._retentionPreset=b(e.retention)}}},{kind:"field",key:"_getData",value:()=>(0,r.Z)((e=>{if(!e)return k;const t=e;return{recurrence:t.schedule.recurrence,time_option:t.schedule.time?p.CUSTOM:p.DEFAULT,time:t.schedule.time,days:t.schedule.recurrence===s.wy.CUSTOM_DAYS?t.schedule.days:[],retention:{type:null===t.retention.days&&null===t.retention.copies?"forever":null!=t.retention.days?"days":"copies",value:t.retention.days??t.retention.copies??3}}}))},{kind:"method",key:"_setData",value:function(e){this.value={...this.value,schedule:{recurrence:e.recurrence,time:e.time_option===p.CUSTOM?e.time:null,days:e.recurrence===s.wy.CUSTOM_DAYS?e.days:[]},retention:"forever"===e.retention.type?{days:null,copies:null}:"days"===e.retention.type?{days:e.retention.value,copies:null}:{copies:e.retention.value,days:null}},(0,d.B)(this,"value-changed",{value:this.value})}},{kind:"method",key:"render",value:function(){const e=this._getData(this.value);return a.dy` <ha-md-list> <ha-md-list-item> <span slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.schedule")}</span> <span slot="supporting-text"> ${this.hass.localize("ui.panel.config.backup.schedule.schedule_description")} </span> <ha-md-select slot="end" ="${this._scheduleChanged}" .value="${e.recurrence}"> ${y.map((e=>a.dy` <ha-md-select-option .value="${e}"> <div slot="headline"> ${this.hass.localize(`ui.panel.config.backup.schedule.schedule_options.${e}`)} </div> </ha-md-select-option> `))} </ha-md-select> </ha-md-list-item> ${e.recurrence===s.wy.CUSTOM_DAYS?a.dy`<ha-expansion-panel expanded .header="${this.hass.localize("ui.panel.config.backup.schedule.custom_schedule")}" outlined> <ha-md-list-item class="days"> <span slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.backup_every")} </span> <div slot="end"> ${s.AG.map((t=>a.dy` <div> <ha-formfield .label="${this.hass.localize(`ui.panel.config.backup.overview.settings.weekdays.${t}`)}"> <ha-checkbox ="${this._daysChanged}" .checked="${e.days.includes(t)}" .value="${t}"> </ha-checkbox> </ha-formfield> </div> `))} </div> </ha-md-list-item> </ha-expansion-panel>`:a.Ld} ${e.recurrence===s.wy.DAILY||e.recurrence===s.wy.CUSTOM_DAYS&&e.days.length>0?a.dy` <ha-md-list-item> <span slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.time")}</span> <span slot="supporting-text"> ${this.hass.localize("ui.panel.config.backup.schedule.schedule_time_description",{time_range_start:(0,c.mr)(s.cF,this.hass.locale,this.hass.config),time_range_end:(0,c.mr)(s.Y6,this.hass.locale,this.hass.config)})} </span> <ha-md-select slot="end" ="${this._scheduleTimeChanged}" .value="${e.time_option}"> ${_.map((e=>a.dy` <ha-md-select-option .value="${e}"> <div slot="headline"> ${this.hass.localize(`ui.panel.config.backup.schedule.time_options.${e}`)} </div> </ha-md-select-option> `))} </ha-md-select> </ha-md-list-item> ${e.time_option===p.CUSTOM?a.dy`<ha-expansion-panel expanded .header="${this.hass.localize("ui.panel.config.backup.schedule.custom_time")}" outlined> <ha-md-list-item> <span slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.custom_time_label")} </span> <span slot="supporting-text"> ${this.hass.localize("ui.panel.config.backup.schedule.custom_time_description",{time:(0,c.mr)(s.cF,this.hass.locale,this.hass.config)})} </span> <ha-time-input slot="end" -changed="${this._timeChanged}" .value="${e.time??void 0}" .locale="${this.hass.locale}"> </ha-time-input> </ha-md-list-item> </ha-expansion-panel>`:a.Ld} `:a.Ld} <ha-md-list-item> <span slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.retention")} </span> <span slot="supporting-text"> ${this.hass.localize("ui.panel.config.backup.schedule.retention_description")} </span> <ha-md-select slot="end" ="${this._retentionPresetChanged}" .value="${this._retentionPreset??""}"> ${x.map((e=>a.dy` <ha-md-select-option .value="${e}"> <div slot="headline"> ${this.hass.localize(`ui.panel.config.backup.schedule.retention_presets.${e}`)} </div> </ha-md-select-option> `))} </ha-md-select> </ha-md-list-item> ${this._retentionPreset===h.CUSTOM?a.dy`<ha-expansion-panel expanded .header="${this.hass.localize("ui.panel.config.backup.schedule.custom_retention")}" outlined> <ha-md-list-item> <span slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.custom_retention_label")} </span> <ha-md-textfield slot="end" ="${this._retentionValueChanged}" .value="${e.retention.value.toString()}" id="value" type="number" .min="${v.toString()}" .max="${m.toString()}" step="1"> </ha-md-textfield> <ha-md-select slot="end" ="${this._retentionTypeChanged}" .value="${e.retention.type}" id="type"> <ha-md-select-option value="days"> <div slot="headline"> ${this.hass.localize("ui.panel.config.backup.schedule.retention_units.days")} </div> </ha-md-select-option> <ha-md-select-option value="copies"> ${this.hass.localize("ui.panel.config.backup.schedule.retention_units.copies")} </ha-md-select-option> </ha-md-select> </ha-md-list-item></ha-expansion-panel> `:a.Ld} <ha-tip .hass="${this.hass}">${this.hass.localize("ui.panel.config.backup.schedule.tip",{backup_create:a.dy`<a href="${(0,u.R)(this.hass,"/integrations/backup/#action-backupcreate_automatic")}" target="_blank" rel="noopener noreferrer">backup.create_automatic</a>`})}</ha-tip> </ha-md-list> `}},{kind:"method",key:"_scheduleChanged",value:function(e){e.stopPropagation();const t=e.currentTarget,i=this._getData(this.value);let l=[...i.days];t.value===s.wy.CUSTOM_DAYS&&0===i.days.length&&(l=[...s.AG]),this._setData({...i,recurrence:t.value,days:l})}},{kind:"method",key:"_scheduleTimeChanged",value:function(e){e.stopPropagation();const t=e.currentTarget,i=this._getData(this.value);this._setData({...i,time_option:t.value,time:t.value===p.CUSTOM?"04:45:00":void 0})}},{kind:"method",key:"_timeChanged",value:function(e){e.stopPropagation();const t=this._getData(this.value);this._setData({...t,time:e.detail.value})}},{kind:"method",key:"_daysChanged",value:function(e){e.stopPropagation();const t=e.currentTarget,i=t.value,l=this._getData(this.value),a=[...l.days];t.checked&&!l.days.includes(i)?a.push(i):!t.checked&&l.days.includes(i)&&a.splice(a.indexOf(i),1),(0,s.rI)(a),this._setData({...l,days:a})}},{kind:"method",key:"_retentionPresetChanged",value:function(e){e.stopPropagation();let t=e.currentTarget.value;if(t===h.CUSTOM&&this._retentionPreset===h.FOREVER?(this._retentionPreset=t,t=h.COPIES_3):this._retentionPreset=t,t!==h.CUSTOM){const e=this._getData(this.value),i=g[t];t!==h.FOREVER&&(i.value=Math.max(i.value,1)),this._setData({...e,retention:i})}}},{kind:"method",key:"_retentionValueChanged",value:function(e){e.stopPropagation();const t=e.currentTarget,i=parseInt(t.value),l=(0,n.u)(i,v,m),a=this._getData(this.value);t.value=l.toString(),this._setData({...a,retention:{...a.retention,value:l}})}},{kind:"method",key:"_retentionTypeChanged",value:function(e){e.stopPropagation();const t=e.currentTarget.value,i=this._getData(this.value);this._setData({...i,retention:{...i.retention,type:t}})}},{kind:"field",static:!0,key:"styles",value:()=>a.iv`ha-md-list{background:0 0;--md-list-item-leading-space:0;--md-list-item-trailing-space:0}ha-md-list-item{--md-item-overflow:visible}ha-md-select{min-width:210px}ha-time-input{min-width:194px;--time-input-flex:1} all and (max-width:450px){ha-md-select{min-width:160px;width:160px;--md-filled-field-content-space:0}ha-time-input{min-width:145px;width:145px}}ha-md-textfield#value{min-width:70px}ha-md-select#type{min-width:100px} all and (max-width:450px){ha-md-textfield#value{min-width:60px;margin:0 -8px}ha-md-select#type{min-width:120px;width:120px}}ha-expansion-panel{--expansion-panel-summary-padding:0 16px;--expansion-panel-content-padding:0 16px;margin-bottom:16px}ha-tip{text-align:unset;margin:16px 0}ha-md-list-item.days{--md-item-align-items:flex-start}a{color:var(--primary-color)}`}]}}),a.oi);t()}catch(e){t(e)}}))},73192:function(e,t,i){i.d(t,{R:()=>l});const l=(e,t)=>`https://www.iobroker.net/#${e.language&&e.language.split("-")[0]||"en"}/adapters/adapterref/iobroker.lovelace/README.md#`}};
//# sourceMappingURL=21677.3d28e65485aac36c.js.map