iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 47.4 kB
JavaScript
/*! For license information please see 21677.054b18307091e814.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["21677"],{23129:function(e,t,i){var l=i(61701),a=i(72621),o=(i(71695),i(47021),i(9065)),r=(i(48884),i(50778)),d=i(79840),n=i(57243);let s;const c=(0,n.iv)(s||(s=(e=>e)`: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 u=i(5060);let h,f=e=>e;class p extends u.n{constructor(){super(...arguments),this.fieldTag=(0,d.i0)(h||(h=f`md-filled-field`))}}var v=i(1853);let m,g=e=>e,y=class extends p{constructor(){super(...arguments),this.fieldTag=(0,d.i0)(m||(m=g`md-filled-field`))}};y.styles=[v.W,c],y=(0,o.__decorate)([(0,r.Mo)("md-filled-text-field")],y);let x,b=e=>e;(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),(0,n.iv)(x||(x=b`: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)}`))]}}]}}),y)},34326:function(e,t,i){var l=i(61701),a=(i(71695),i(47021),i(57243)),o=i(50778);i(23334),i(83166);let r,d,n,s=e=>e;(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(){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.Cb)({type:String})],key:"value",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"placeholder",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"label",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,reflect:!0})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"required",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Number})],key:"minLength",value(){return-1}},{kind:"field",decorators:[(0,o.Cb)({type:Number})],key:"maxLength",value(){return-1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,reflect:!0})],key:"outlined",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"helper",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"validateOnInitialRender",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"validationMessage",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"autoValidate",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"pattern",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:Number})],key:"size",value(){return null}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"helperPersistent",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"charCounter",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"endAligned",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"prefix",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"suffix",value(){return""}},{kind:"field",decorators:[(0,o.Cb)({type:String})],key:"name",value(){return""}},{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(){return!1}},{kind:"field",decorators:[(0,o.Cb)({attribute:!1,type:String})],key:"autocapitalize",value(){return""}},{kind:"field",decorators:[(0,o.SB)()],key:"_unmaskedPassword",value(){return!1}},{kind:"field",decorators:[(0,o.IO)("ha-textfield")],key:"_textField",value:void 0},{kind:"method",key:"render",value:function(){var e;return(0,a.dy)(r||(r=s`<ha-textfield .invalid="${0}" .errorMessage="${0}" .icon="${0}" .iconTrailing="${0}" .autocomplete="${0}" .autocorrect="${0}" .inputSpellcheck="${0}" .value="${0}" .placeholder="${0}" .label="${0}" .disabled="${0}" .required="${0}" .minLength="${0}" .maxLength="${0}" .outlined="${0}" .helper="${0}" .validateOnInitialRender="${0}" .validationMessage="${0}" .autoValidate="${0}" .pattern="${0}" .size="${0}" .helperPersistent="${0}" .charCounter="${0}" .endAligned="${0}" .prefix="${0}" .name="${0}" .inputMode="${0}" .readOnly="${0}" .autocapitalize="${0}" .type="${0}" .suffix="${0}" ="${0}" ="${0}"></ha-textfield> <ha-icon-button .label="${0}" ="${0}" .path="${0}"></ha-icon-button>`),this.invalid,this.errorMessage,this.icon,this.iconTrailing,this.autocomplete,this.autocorrect,this.inputSpellcheck,this.value,this.placeholder,this.label,this.disabled,this.required,this.minLength,this.maxLength,this.outlined,this.helper,this.validateOnInitialRender,this.validationMessage,this.autoValidate,this.pattern,this.size,this.helperPersistent,this.charCounter,this.endAligned,this.prefix,this.name,this.inputMode,this.readOnly,this.autocapitalize,this._unmaskedPassword?"text":"password",(0,a.dy)(d||(d=s`<div style="width:24px"></div>`)),this._handleInputEvent,this._handleChangeEvent,(null===(e=this.hass)||void 0===e?void 0:e.localize(this._unmaskedPassword?"ui.components.selectors.text.hide_password":"ui.components.selectors.text.show_password"))||(this._unmaskedPassword?"Hide password":"Show password"),this._toggleUnmaskedPassword,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")}},{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(){return(0,a.iv)(n||(n=s`: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)},49653:function(e,t,i){var l=i(61701),a=(i(71695),i(11740),i(47021),i(57243)),o=i(50778),r=i(16922),d=i(36522);i(97828);let n,s=e=>e;(0,l.Z)([(0,o.Mo)("ha-time-input")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,o.Cb)({attribute:!1})],key:"locale",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"value",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"label",value:void 0},{kind:"field",decorators:[(0,o.Cb)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"disabled",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean})],key:"required",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,attribute:"enable-second"})],key:"enableSecond",value(){return!1}},{kind:"field",decorators:[(0,o.Cb)({type:Boolean,reflect:!0})],key:"clearable",value:void 0},{kind:"method",key:"render",value:function(){var e;const t=(0,r.y)(this.locale),i=(null===(e=this.value)||void 0===e?void 0:e.split(":"))||[];let l=i[0];const o=Number(i[0]);return o&&t&&o>12&&o<24&&(l=String(o-12).padStart(2,"0")),t&&0===o&&(l="12"),(0,a.dy)(n||(n=s` <ha-base-time-input .label="${0}" .hours="${0}" .minutes="${0}" .seconds="${0}" .format="${0}" .amPm="${0}" .disabled="${0}" -changed="${0}" .enableSecond="${0}" .required="${0}" .clearable="${0}" .helper="${0}"></ha-base-time-input> `),this.label,Number(l),Number(i[1]),Number(i[2]),t?12:24,t&&o>=12?"PM":"AM",this.disabled,this._timeChanged,this.enableSecond,this.required,this.clearable&&void 0!==this.value,this.helper)}},{kind:"method",key:"_timeChanged",value:function(e){e.stopPropagation();const t=e.detail.value,i=(0,r.y)(this.locale);let l;if(!(void 0===t||isNaN(t.hours)&&isNaN(t.minutes)&&isNaN(t.seconds))){let e=t.hours||0;t&&i&&("PM"===t.amPm&&e<12&&(e+=12),"AM"===t.amPm&&12===e&&(e=0)),l=`${e.toString().padStart(2,"0")}:${t.minutes?t.minutes.toString().padStart(2,"0"):"00"}:${t.seconds?t.seconds.toString().padStart(2,"0"):"00"}`}l!==this.value&&(this.value=l,(0,d.B)(this,"change"),(0,d.B)(this,"value-changed",{value:l}))}}]}}),a.oi)},95076:function(e,t,i){var l=i(61701),a=(i(71695),i(47021),i(57243)),o=i(50778);i(37583);let r,d,n=e=>e;(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?(0,a.dy)(r||(r=n` <ha-svg-icon .path="${0}"></ha-svg-icon> <span class="prefix">${0}</span> <span class="text"><slot></slot></span> `),"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",this.hass.localize("ui.panel.config.tips.tip")):a.Ld}},{kind:"field",static:!0,key:"styles",value(){return(0,a.iv)(d||(d=n`: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(61701),a=(i(19083),i(71695),i(9359),i(56475),i(70104),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(61006),i(47021),i(57243)),o=i(50778),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),h=e([c]);c=(h.then?(await h)():h)[0];let f,p,v,m,g,y,x,b,_,k,C,$,w,A=e=>e;const S="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",M="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",z="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",O="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",L=[];(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(){return[]}},{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(){return!1}},{kind:"field",decorators:[(0,o.SB)()],key:"value",value:void 0},{kind:"get",key:"_value",value:function(){var e;return null!==(e=this.value)&&void 0!==e?e:L}},{kind:"method",key:"_description",value:function(e){var t;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===(null===(t=this.agentsConfig)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.protected)?(0,a.dy)(f||(f=A` <span class="dot warning"></span> <span> ${0} </span> `),this.hass.localize("ui.panel.config.backup.agents.encryption_turned_off")):(0,c.BR)(e)?this.hass.localize("ui.panel.config.backup.agents.network_mount_agent_description"):""}},{kind:"field",key:"_availableAgents",value(){return(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){var t;if((0,c.V1)(e))return(0,a.dy)(p||(p=A` <ha-svg-icon .path="${0}" slot="start"></ha-svg-icon> `),z);if((0,c.BR)(e))return(0,a.dy)(v||(v=A`<ha-svg-icon .path="${0}" slot="start"></ha-svg-icon>`),O);const i=(0,n.M)(e);return(0,a.dy)(m||(m=A` <img .src="${0}" crossorigin="anonymous" referrerpolicy="no-referrer" alt="" slot="start"> `),(0,u.X1)({domain:i,type:"icon",useFallback:!0,darkOptimized:null===(t=this.hass.themes)||void 0===t?void 0:t.darkMode}))}},{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(0,a.dy)(g||(g=A` ${0} `),i.length>0?(0,a.dy)(y||(y=A` <ha-md-list> ${0} ${0} </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(0,a.dy)(x||(x=A` <ha-md-list-item> ${0} <div slot="headline" class="name">${0}</div> ${0} ${0} <ha-switch slot="end" id="${0}" .checked="${0}" .disabled="${0}" ="${0}"></ha-switch> </ha-md-list-item> `),this._renderAgentIcon(t),l,o?(0,a.dy)(b||(b=A`<div slot="supporting-text">${0}</div>`),o):a.Ld,this.showSettings?(0,a.dy)(_||(_=A` <ha-icon-button id="${0}" slot="end" path="${0}" ="${0}"></ha-icon-button> `),t,S,this._showAgentSettings):a.Ld,t,this._value.includes(t),r&&!this._value.includes(t),this._agentToggled)})),t.length>0&&this.showSettings?(0,a.dy)(k||(k=A` <p class="heading"> ${0} </p> ${0} `),this.hass.localize("ui.panel.config.backup.agents.unavailable_agents"),t.map((e=>{const t=e.agent_id,l=(0,c.Sw)(this.hass.localize,t,i);return(0,a.dy)(C||(C=A` <ha-md-list-item> ${0} <div slot="headline" class="name">${0}</div> <ha-icon-button id="${0}" slot="end" path="${0}" ="${0}"></ha-icon-button> </ha-md-list-item> `),this._renderAgentIcon(t),l,t,M,this._deleteAgent)}))):a.Ld):(0,a.dy)($||($=A` <p> ${0} </p> `),this.hass.localize("ui.panel.config.backup.agents.no_agents")))}},{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(){return(0,a.iv)(w||(w=A`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(f){t(f)}}))},6384:function(e,t,i){i.a(e,(async function(e,t){try{var l=i(61701),a=(i(19083),i(71695),i(92745),i(9359),i(70104),i(19423),i(23669),i(11740),i(61006),i(47021),i(57243)),o=i(50778),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),h=e([c,s]);[c,s]=h.then?(await h)():h;let v,m,g,y,x,b,_,k,C,$,w,A=e=>e;const S=1,M=50;var f=function(e){return e.COPIES_3="copies_3",e.FOREVER="forever",e.CUSTOM="custom",e}(f||{}),p=function(e){return e.DEFAULT="default",e.CUSTOM="custom",e}(p||{});const z={copies_3:{type:"copies",value:3},forever:{type:"forever",value:0}},O=[s.wy.NEVER,s.wy.DAILY,s.wy.CUSTOM_DAYS],L=[f.COPIES_3,f.FOREVER,f.CUSTOM],V=[p.DEFAULT,p.CUSTOM],T=e=>{for(const[t,i]of Object.entries(z))if(i.type===e.type&&(i.type===f.FOREVER||i.value===e.value))return t;return f.CUSTOM},P={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!==f.CUSTOM){const e=this._getData(this.value);this._retentionPreset=T(e.retention)}}},{kind:"field",key:"_getData",value(){return(0,r.Z)((e=>{var t,i;if(!e)return P;const l=e;return{recurrence:l.schedule.recurrence,time_option:l.schedule.time?p.CUSTOM:p.DEFAULT,time:l.schedule.time,days:l.schedule.recurrence===s.wy.CUSTOM_DAYS?l.schedule.days:[],retention:{type:null===l.retention.days&&null===l.retention.copies?"forever":null!=l.retention.days?"days":"copies",value:null!==(t=null!==(i=l.retention.days)&&void 0!==i?i:l.retention.copies)&&void 0!==t?t:3}}}))}},{kind:"method",key:"_setData",value:function(e){this.value=Object.assign(Object.assign({},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(){var e,t;const i=this._getData(this.value);return(0,a.dy)(v||(v=A` <ha-md-list> <ha-md-list-item> <span slot="headline"> ${0}</span> <span slot="supporting-text"> ${0} </span> <ha-md-select slot="end" ="${0}" .value="${0}"> ${0} </ha-md-select> </ha-md-list-item> ${0} ${0} <ha-md-list-item> <span slot="headline"> ${0} </span> <span slot="supporting-text"> ${0} </span> <ha-md-select slot="end" ="${0}" .value="${0}"> ${0} </ha-md-select> </ha-md-list-item> ${0} <ha-tip .hass="${0}">${0}</ha-tip> </ha-md-list> `),this.hass.localize("ui.panel.config.backup.schedule.schedule"),this.hass.localize("ui.panel.config.backup.schedule.schedule_description"),this._scheduleChanged,i.recurrence,O.map((e=>(0,a.dy)(m||(m=A` <ha-md-select-option .value="${0}"> <div slot="headline"> ${0} </div> </ha-md-select-option> `),e,this.hass.localize(`ui.panel.config.backup.schedule.schedule_options.${e}`)))),i.recurrence===s.wy.CUSTOM_DAYS?(0,a.dy)(g||(g=A`<ha-expansion-panel expanded .header="${0}" outlined> <ha-md-list-item class="days"> <span slot="headline"> ${0} </span> <div slot="end"> ${0} </div> </ha-md-list-item> </ha-expansion-panel>`),this.hass.localize("ui.panel.config.backup.schedule.custom_schedule"),this.hass.localize("ui.panel.config.backup.schedule.backup_every"),s.AG.map((e=>(0,a.dy)(y||(y=A` <div> <ha-formfield .label="${0}"> <ha-checkbox ="${0}" .checked="${0}" .value="${0}"> </ha-checkbox> </ha-formfield> </div> `),this.hass.localize(`ui.panel.config.backup.overview.settings.weekdays.${e}`),this._daysChanged,i.days.includes(e),e)))):a.Ld,i.recurrence===s.wy.DAILY||i.recurrence===s.wy.CUSTOM_DAYS&&i.days.length>0?(0,a.dy)(x||(x=A` <ha-md-list-item> <span slot="headline"> ${0}</span> <span slot="supporting-text"> ${0} </span> <ha-md-select slot="end" ="${0}" .value="${0}"> ${0} </ha-md-select> </ha-md-list-item> ${0} `),this.hass.localize("ui.panel.config.backup.schedule.time"),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)}),this._scheduleTimeChanged,i.time_option,V.map((e=>(0,a.dy)(b||(b=A` <ha-md-select-option .value="${0}"> <div slot="headline"> ${0} </div> </ha-md-select-option> `),e,this.hass.localize(`ui.panel.config.backup.schedule.time_options.${e}`)))),i.time_option===p.CUSTOM?(0,a.dy)(_||(_=A`<ha-expansion-panel expanded .header="${0}" outlined> <ha-md-list-item> <span slot="headline"> ${0} </span> <span slot="supporting-text"> ${0} </span> <ha-time-input slot="end" -changed="${0}" .value="${0}" .locale="${0}"> </ha-time-input> </ha-md-list-item> </ha-expansion-panel>`),this.hass.localize("ui.panel.config.backup.schedule.custom_time"),this.hass.localize("ui.panel.config.backup.schedule.custom_time_label"),this.hass.localize("ui.panel.config.backup.schedule.custom_time_description",{time:(0,c.mr)(s.cF,this.hass.locale,this.hass.config)}),this._timeChanged,null!==(e=i.time)&&void 0!==e?e:void 0,this.hass.locale):a.Ld):a.Ld,this.hass.localize("ui.panel.config.backup.schedule.retention"),this.hass.localize("ui.panel.config.backup.schedule.retention_description"),this._retentionPresetChanged,null!==(t=this._retentionPreset)&&void 0!==t?t:"",L.map((e=>(0,a.dy)(k||(k=A` <ha-md-select-option .value="${0}"> <div slot="headline"> ${0} </div> </ha-md-select-option> `),e,this.hass.localize(`ui.panel.config.backup.schedule.retention_presets.${e}`)))),this._retentionPreset===f.CUSTOM?(0,a.dy)(C||(C=A`<ha-expansion-panel expanded .header="${0}" outlined> <ha-md-list-item> <span slot="headline"> ${0} </span> <ha-md-textfield slot="end" ="${0}" .value="${0}" id="value" type="number" .min="${0}" .max="${0}" step="1"> </ha-md-textfield> <ha-md-select slot="end" ="${0}" .value="${0}" id="type"> <ha-md-select-option value="days"> <div slot="headline"> ${0} </div> </ha-md-select-option> <ha-md-select-option value="copies"> ${0} </ha-md-select-option> </ha-md-select> </ha-md-list-item></ha-expansion-panel> `),this.hass.localize("ui.panel.config.backup.schedule.custom_retention"),this.hass.localize("ui.panel.config.backup.schedule.custom_retention_label"),this._retentionValueChanged,i.retention.value.toString(),S.toString(),M.toString(),this._retentionTypeChanged,i.retention.type,this.hass.localize("ui.panel.config.backup.schedule.retention_units.days"),this.hass.localize("ui.panel.config.backup.schedule.retention_units.copies")):a.Ld,this.hass,this.hass.localize("ui.panel.config.backup.schedule.tip",{backup_create:(0,a.dy)($||($=A`<a href="${0}" target="_blank" rel="noopener noreferrer">backup.create_automatic</a>`),(0,u.R)(this.hass,"/integrations/backup/#action-backupcreate_automatic"))}))}},{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(Object.assign(Object.assign({},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(Object.assign(Object.assign({},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(Object.assign(Object.assign({},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(Object.assign(Object.assign({},l),{},{days:a}))}},{kind:"method",key:"_retentionPresetChanged",value:function(e){e.stopPropagation();let t=e.currentTarget.value;if(t===f.CUSTOM&&this._retentionPreset===f.FOREVER?(this._retentionPreset=t,t=f.COPIES_3):this._retentionPreset=t,t!==f.CUSTOM){const e=this._getData(this.value),i=z[t];t!==f.FOREVER&&(i.value=Math.max(i.value,1)),this._setData(Object.assign(Object.assign({},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,S,M),a=this._getData(this.value);t.value=l.toString(),this._setData(Object.assign(Object.assign({},a),{},{retention:Object.assign(Object.assign({},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(Object.assign(Object.assign({},i),{},{retention:Object.assign(Object.assign({},i.retention),{},{type:t})}))}},{kind:"field",static:!0,key:"styles",value(){return(0,a.iv)(w||(w=A`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(v){t(v)}}))},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.054b18307091e814.js.map