PageSourceSearch

https://85mm.co.uk/frontend_latest/90977.c6040ffe9e5dd6a5.js

js 85mm.co.uk collected 2026-10-06 12:42:36 UTC 71,692 bytes, 2 lines download raw bytes

1export const __rspack_esm_id=90977;export const __rspack_esm_ids=[90977];export const __webpack_modules__={90608(t,e,a){a.a(t,async function(t,o){try{var i=a(92684),r=a(47749),s=a(53104),n=t([i,s]);[i,s]=n.then?(await n)():n;const l=(0,r.A)((t,e)=>new Intl.RelativeTimeFormat(t.language,{numeric:"auto",style:e})),h=(t,e,a,o=!0,i="long")=>{const r=(0,s.x)(t,a,e);return o?l(e,i).format(r.value,r.unit):Intl.NumberFormat(e.language,{style:"unit",unit:r.unit,unitDisplay:i}).format(Math.abs(r.value))};a.d(e,{},{K:h}),o()}catch(t){o(t)}})},7346(t,e,a){var o=a(63018),i=a(78813),r=a(44146),s=a(34619);const n=(t,e)=>{let a=t;for(const t of e){if(null==a)return;a=a[t]}return a},l=(t,e)=>{if(!t)return e;const a=Object.keys(e);if(Object.keys(t).length!==a.length)return e;for(const o of a)if(t[o]!==e[o])return e;return t};class h{hostConnected(){this._host.dispatchEvent(new o.O2(this._context,this._host,this._callback,!0))}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=void 0}constructor(t,e,a){this._host=t,this._context=e,this._assign=a,this._callback=(t,e)=>{this._unsubscribe&&this._unsubscribe!==e&&this._unsubscribe(),this._unsubscribe=e,this._assign(t)},this._host.addController(this)}}const d=t=>(e,a)=>{e.constructor.addInitializer(e=>{new h(e,t,t=>{e[a]=t})})},c=(t,e,a)=>{const o=(0,s.p)({transformer:function(t){return a.call(this,t)},watch:e?[e]:[]}),i=d(t);return(t,e)=>{o(t,e),i(t,e)}};a.d(e,{},{IW:()=>c(i.D5,void 0,({localize:t})=>t),dH:t=>c(i.X1,t.entityIdPath[0],function(e){const a=n(this,t.entityIdPath);return"string"==typeof a?e?.[a]:void 0}),fI:t=>c(i.iN,t.entityIdPath[0],function(e){const a=n(this,t.entityIdPath);return"string"==typeof a?e?.[a]:void 0}),gu:l,oF:t=>{const e=t.entityIdPath[0],a=function(e){const a=(0,r.e)(n(this,t.entityIdPath));if(!a||!e)return;const o={};for(const t of a){if("string"!=typeof t)continue;const a=e[t];void 0!==a&&(o[t]=a)}return o};return(t,o)=>{const r=String(o),n=(0,s.p)({transformer:function(t){const e=a.call(this,t);if(void 0===e)return;const o=this[`__transform_${r}`];return l(o,e)},watch:e?[e]:[]}),h=d(i.iN);n(t,o),h(t,o)}}})},25807(t,e,a){var o=a(38563);const i=(0,a(91129).n)(t=>{(0,o.zd)({scrollPosition:t})},300);function r(t){return(e,a)=>{if("object"==typeof a)throw new Error("This decorator does not support this compilation type.");const r=e.connectedCallback;e.connectedCallback=function(){r.call(this);const e=this[a];e&&this.updateComplete.then(()=>{const a=this.renderRoot.querySelector(t);a&&setTimeout(()=>{a.scrollTop=e},0)})};const s=Object.getOwnPropertyDescriptor(e,a);let n;if(void 0===s)n={get(){return this[`__${String(a)}`]||(0,o.GL)()?.scrollPosition},set(t){i(t),this[`__${String(a)}`]=t},configurable:!0,enumerable:!0};else{const t=s.set;n={...s,set(e){i(e),this[`__${String(a)}`]=e,t?.call(this,e)}}}Object.defineProperty(e,a,n)}}a.d(e,{a:()=>r})},34619(t,e,a){a(18111),a(7588),a(45367),a(92731),a(17642),a(15024),a(31698);function o(t){return(e,a)=>{if("object"==typeof a)throw new Error("This decorator does not support this compilation type.");const o=String(a),i=e;if(i._transformers){if(!i.hasOwnProperty("_transformers")){const t=i._transformers;i._transformers=new Map,t.forEach((t,e)=>i._transformers.set(e,t))}}else{i._transformers=new Map,i._watching=new Map;const t=i.willUpdate;i.willUpdate=function(e){t.call(this,e);const a=new Set;e.forEach((t,e)=>{const o=this._watching.get(e);void 0!==o&&o.forEach(t=>a.add(t))}),a.forEach(t=>{this[t]=this[`__original_${String(t)}`]})}}i._transformers.set(a,t.transformer),t.watch&&t.watch.forEach(t=>{let e=i._watching.get(t);e||(e=new Set,i._watching.set(t,e)),e.add(a)});const r=Object.getOwnPropertyDescriptor(e,a);let s;if(void 0===r)s={get(){return this[`__transform_${o}`]},set(t){const e=this[`__transform_${o}`],a=this._transformers.get(o);this[`__transform_${o}`]=a?a.call(this,t):t,this[`__original_${o}`]=t,this.requestUpdate(o,e)},configurable:!0,enumerable:!0};else{const t=r.set;s={...r,set(e){const a=this[`__transform_${o}`],i=this._transformers.get(o);this[`__transform_${o}`]=i?i.call(this,e):e,this[`__original_${o}`]=e,this.requestUpdate(o,a),t?.call(this,e)}}}Object.defineProperty(e,a,s)}}a.d(e,{p:()=>o})},15752(t,e,a){a.d(e,{},{Z:t=>t.charAt(0).toUpperCase()+t.slice(1)})},53104(t,e,a){a.a(t,async function(t,o){try{var i=a(65719),r=a(86451),s=a(55099),n=a(59955);const l=1e3,h=60,d=60*h;function c(t,e=Date.now(),a,o={}){const c={...p,...o||{}},u=(+t-+e)/l;if(Math.abs(u)<c.second)return{value:Math.round(u),unit:"second"};const g=u/h;if(Math.abs(g)<c.minute)return{value:Math.round(g),unit:"minute"};const v=u/d;
1if(Math.abs(v)<c.hour)return{value:Math.round(v),unit:"hour"};const b=new Date(t),f=new Date(e);b.setHours(0,0,0,0),f.setHours(0,0,0,0);const m=(0,i.c)(b,f);if(0===m)return{value:Math.round(v),unit:"hour"};if(Math.abs(m)<c.day)return{value:m,unit:"day"};const y=(0,n.P)(a),w=(0,r.k)(b,{weekStartsOn:y}),_=(0,r.k)(f,{weekStartsOn:y}),x=(0,s.I)(w,_);if(0===x)return{value:m,unit:"day"};if(Math.abs(x)<c.week)return{value:x,unit:"week"};const C=b.getFullYear()-f.getFullYear(),k=12*C+b.getMonth()-f.getMonth();return 0===k?{value:x,unit:"week"}:Math.abs(k)<c.month||0===C?{value:k,unit:"month"}:{value:Math.round(C),unit:"year"}}const p={second:59,minute:59,hour:22,day:5,week:4,month:11};a.d(e,{x:()=>c}),o()}catch(u){o(u)}})},91129(t,e,a){a.d(e,{},{n:(t,e,a=!0,o=!0)=>{let i,r=0;const s=(...s)=>{const n=()=>{r=!1===a?0:Date.now(),i=void 0,t(...s)},l=Date.now();r||!1!==a||(r=l);const h=e-(l-r);h<=0||h>e?(i&&(clearTimeout(i),i=void 0),r=l,t(...s)):i||!1===o||(i=window.setTimeout(n,h))};return s.cancel=()=>{clearTimeout(i),i=void 0,r=0},s}})},80570(t,e,a){a(64979);let o=!1;try{o="true"===window.localStorage.getItem("disableViewTransition")}catch{}const i=t=>{if(!(t=>(t instanceof DOMException||t instanceof Error)&&"AbortError"===t.name)(t))throw t};a.d(e,{},{D:t=>{o=t},J:t=>{if(!document.startViewTransition||o)return t(!1),Promise.resolve();let e=!1;try{const a=document.startViewTransition(()=>{e=!0,t(!0)});return a.ready.catch(i),a.finished.catch(i)}catch(a){return console.warn("View transition failed, falling back to direct execution.",a),e?Promise.reject(a):(t(!1),Promise.resolve())}}})},8799(t,e,a){var o=a(28861),i=a(30746),r=a(78870),s=a(10920),n=a(34849),l=a(11467),h=a(82476);class d extends i.k{renderOutline(){return this.filled?l.qy`<span class="filled"></span>`:super.renderOutline()}getContainerClasses(){return{...super.getContainerClasses(),active:this.active}}renderPrimaryContent(){return l.qy` <span class="leading icon" aria-hidden="true"> ${this.renderLeadingIcon()} </span> <span class="label">${this.label}</span> <span class="touch"></span> <span class="trailing leading icon" aria-hidden="true"> ${this.renderTrailingIcon()} </span> `}renderTrailingIcon(){return l.qy`<slot name="trailing-icon"></slot>`}constructor(...t){super(...t),this.filled=!1,this.active=!1}}d.styles=[s.R,n.R,r.R,l.AH`:host{--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-surface:var(--primary-text-color);--md-assist-chip-container-shape:var(--ha-assist-chip-container-shape,16px);--md-assist-chip-outline-color:var(--outline-color);--md-assist-chip-label-text-weight:400}.filled{pointer-events:none;border-radius:inherit;background-color:var(--ha-assist-chip-filled-container-color);display:flex;position:absolute;inset:0}::slotted([slot=icon]),::slotted([slot=trailing-icon]){--mdc-icon-size:var(--md-input-chip-icon-size,18px);display:flex;font-size:var(--_label-text-size)!important}.trailing.icon ::slotted(*),.trailing.icon svg{margin-inline-start:var(--_icon-label-space);margin-inline-end:unset}:before{background:var(--ha-assist-chip-container-color,transparent);opacity:var(--ha-assist-chip-container-opacity,1)}:where(.active):before{background:var(--ha-assist-chip-active-container-color);opacity:var(--ha-assist-chip-active-container-opacity)}.label{font-family:var(--ha-font-family-body)}`],(0,o.Cg)([(0,h.MZ)({type:Boolean,reflect:!0})],d.prototype,"filled",void 0),(0,o.Cg)([(0,h.MZ)({type:Boolean})],d.prototype,"active",void 0),d=(0,o.Cg)([(0,h.EM)("ha-assist-chip")],d)},50878(t,e,a){a.a(t,async function(t,o){try{var i=a(28861),r=a(63018),s=a(11467),n=a(82476),l=a(85152),h=a(78813),d=a(17414),c=(a(60721),a(96007)),p=a(25395),u=t([d,c,p]);[d,c,p]=u.then?(await u)():u;const g="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",v="(max-width: 870px), (max-height: 500px)";class b extends s.WF{connectedCallback(){super.connectedCallback(),this._unsubMediaQuery=(0,l.m)(v,t=>{this._modeSet&&!this.allowModeChange||(this.mode=t?"bottom-sheet":"dialog",this._modeSet=!0)})}get _defaultAriaLabelledBy(){return this.ariaLabelledBy||(void 0!==this.headerTitle?"ha-dialog-title":void 0)}_renderCloseButton(t){return this.hideCloseButton?s.qy`<span slot=${t}></span>`:s.qy` <slot name="headerNavigationIcon" slot=${t}> <ha-icon-button data-dialog="close" .label=${this._i18n?.localize?.("ui.common.close")??"Close"} .path=${g}></ha-icon-button> </slot> `}_renderHeaderContent(){return s.qy` <ha-dialog-header .subtitlePosition=${this.headerSubtitlePosition}> ${this._renderCloseButton("navigationIcon")} ${void 0!==this.headerTitle?s.qy`<span slot="title" class="title" id="ha-dialog-title"> ${this.headerTitle} </span>`:s.qy`<slot name="headerTitle" slot="title"></slot>`} ${void 0!==this.headerSubtitle?s.qy`<span slot="subtitle">${this.headerSubtitle}</span>`:s.qy`<slot name="headerSubtitle" slot="subtitle"></slot>`} <slot name="headerActionItems" slot="actionItems"></slot> </ha-dialog-header> `}disconnectedCallback(){super.disconnectedCallback(),this._unsubMediaQuery?.(),this._unsubMediaQuery=void 0,this._modeSet=!1}render(){return"bottom-sheet"===this.mode?s.qy` <ha-bottom-sheet .ariaLabelledBy=${this._defaultAr
1iaLabelledBy} .ariaDescribedBy=${this.ariaDescribedBy} .flexContent=${this.flexContent} .open=${this.open} .preventScrimClose=${this.preventScrimClose}> ${this.withoutHeader?s.s6:s.qy` <slot name="header" slot="header">${this._renderHeaderContent()}</slot> `} <slot></slot> <slot name="footer" slot="footer"></slot> </ha-bottom-sheet> `:s.qy` <ha-dialog .open=${this.open} .type=${this.type} .width=${this.width} .preventScrimClose=${this.preventScrimClose} .ariaLabelledBy=${this.ariaLabelledBy} .ariaDescribedBy=${this.ariaDescribedBy} .headerTitle=${this.headerTitle} .headerSubtitle=${this.headerSubtitle} .headerSubtitlePosition=${this.headerSubtitlePosition} .flexContent=${this.flexContent} .withoutHeader=${this.withoutHeader}> ${this._renderCloseButton("headerNavigationIcon")} <slot name="headerTitle" slot="headerTitle"></slot> <slot name="headerSubtitle" slot="headerSubtitle"></slot> <slot name="headerActionItems" slot="headerActionItems"></slot> <slot></slot> <slot name="footer" slot="footer"></slot> </ha-dialog> `}static get styles(){return[s.AH`ha-bottom-sheet{--ha-bottom-sheet-border-radius:var(--ha-border-radius-2xl);--ha-bottom-sheet-surface-background:var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default)));--ha-bottom-sheet-padding:0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left);--ha-bottom-sheet-content-padding:var(--dialog-content-padding,0 var(--ha-space-6) var(--ha-space-6) var(--ha-space-6))}`]}constructor(...t){super(...t),this.open=!1,this.type="standard",this.width="medium",this.preventScrimClose=!1,this.headerSubtitlePosition="below",this.allowModeChange=!1,this.withoutHeader=!1,this.hideCloseButton=!1,this.flexContent=!1,this.mode="dialog",this._modeSet=!1}}(0,i.Cg)([(0,n.MZ)({attribute:"aria-labelledby"})],b.prototype,"ariaLabelledBy",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"aria-describedby"})],b.prototype,"ariaDescribedBy",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],b.prototype,"open",void 0),(0,i.Cg)([(0,n.MZ)({reflect:!0})],b.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,reflect:!0,attribute:"width"})],b.prototype,"width",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],b.prototype,"preventScrimClose",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"header-title"})],b.prototype,"headerTitle",void 0),(0,i.Cg)([(0,n.MZ)({attribute:"header-subtitle"})],b.prototype,"headerSubtitle",void 0),(0,i.Cg)([(0,n.MZ)({type:String,attribute:"header-subtitle-position"})],b.prototype,"headerSubtitlePosition",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"allow-mode-change"})],b.prototype,"allowModeChange",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"without-header"})],b.prototype,"withoutHeader",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,attribute:"hide-close-button"})],b.prototype,"hideCloseButton",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],b.prototype,"flexContent",void 0),(0,i.Cg)([(0,n.wk)()],b.prototype,"mode",void 0),(0,i.Cg)([(0,n.wk)(),(0,r.Fg)({context:h.D5,subscribe:!0})],b.prototype,"_i18n",void 0),b=(0,i.Cg)([(0,n.EM)("ha-adaptive-dialog")],b),a.d(e,{r:()=>b}),o()}catch(t){o(t)}})},17414(t,e,a){a.a(t,async function(t,e){try{a(18111),a(13579),a(17642),a(15024),a(31698);var o=a(28861),i=a(91409),r=a(63018),s=a(11467),n=a(82476),l=a(62228),h=a(62944),d=a(78813),c=a(96309),p=a(7578),u=a(20455),g=t([i]);i=(g.then?(await g)():g)[0];const v=300,b=new Set(["ha-control-slider","ha-slider","ha-control-switch","ha-control-circular-slider","ha-hs-color-picker","ha-map","ha-more-info-control-select-container","ha-filter-chip"]),f=new Set(["volume-slider-container","forecast"]);class m extends((0,c.V)(s.WF)){get scrollableElement(){return this._bodyElement}connectedCallback(){super.connectedCallback(),this.addEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.addEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0})}updated(t){super.updated(t),t.has("open")&&(this._drawerOpen=this.open)}render(){return s.qy` <wa-drawer id="drawer" placement="bottom" .open=${this._drawerOpen} .lightDismiss=${!this.preventScrimClose} .ariaLabelledby=${this.ariaLabelledBy} .ariaDescribedby=${this.ariaDescribedBy} @keydown=${this._handleKeyDown} @wa-show=${this._handleShow} @wa-after-show=${this._handleAfterShow} @wa-hide=${this._handleHide} @wa-after-hide=${this._handleAfterHide} @click=${this._handleCloseAction} without-header @touchstart=${this._handleTouchStart}> <div class="handle-wrapper" aria-hidden="true"> <div class="handle"></div> </div> <slot name="header"></slot> <div class="content-wrapper"> <div id="body" class="body ha-scrollbar"> <slot></slot> </div> ${this.renderScrollableFades()} </div> <slot name="footer"></slot> </wa-drawer> `}_startResizing(t){document.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),document.addEventListener("touchend",this._handleTouchEnd),document.addEventListener("touchcancel",this._handleTouchEnd),this._gestureRecognizer.start(t)}_animateSnapBack(){this.style.setProperty("--dialog-transition",`transform ${v}ms ease-out`),this.style.removeProperty("--dialog-transform"),setTimeout(()=>{this.style.removeProperty("--dialog-transition")},v)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("slider-interaction-start",this._handleSliderInteractionStart,{capture:!0}),this.removeEventListener("slider-interaction-stop",this._handleSliderInteractionStop,{capture:!0}),this._unregisterResizeHandlers(),this._isDragging=!1}static get styles(){return[...super.styles,p.dp,s.AH`wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height,auto);--show-duration:${v}ms;--hide-duration:${v}ms}
1wa-drawer::part(dialog){max-height:min(var(--ha-bottom-sheet-max-height,90vh), calc(100vh - max(var(--safe-area-inset-top), 48px)));max-height:min(var(--ha-bottom-sheet-max-height,90dvh), calc(100dvh - max(var(--safe-area-inset-top), 48px)));transform:var(--dialog-transform);transition:var(--dialog-transition);align-items:center}@media (prefers-reduced-motion:reduce){wa-drawer{--wa-color-surface-raised:transparent;--spacing:0;--size:var(--ha-bottom-sheet-height,auto);--show-duration:1ms;--hide-duration:1ms}wa-drawer::part(dialog){transition:all 1ms}}wa-drawer::part(dialog)::backdrop{backdrop-filter:var(--ha-bottom-sheet-scrim-backdrop-filter,var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none)));background-color:var(--ha-bottom-sheet-scrim-color,var(--mdc-dialog-scrim-color,none))}wa-drawer::part(body){max-width:var(--ha-bottom-sheet-max-width);border-top-left-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));border-top-right-radius:var(--ha-bottom-sheet-border-radius,var(--ha-dialog-border-radius,var(--ha-border-radius-2xl)));background-color:var(--ha-bottom-sheet-surface-background,var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default))));width:100%;backdrop-filter:var(--ha-bottom-sheet-surface-backdrop-filter,var(--ha-dialog-surface-backdrop-filter,none));padding:var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left));position:relative}:host([flexcontent]) wa-drawer::part(body){flex-direction:column;display:flex}:host([prevent-scrim-close]) .handle-wrapper{display:none}.handle-wrapper{top:0;pointer-events:none;z-index:1;justify-content:center;align-items:center;width:100%;padding-bottom:2px;display:flex;position:absolute;inset-inline-start:0}.handle-wrapper .handle{justify-content:center;align-items:center;width:200px;height:16px;display:flex}.handle-wrapper .handle:after{content:"";border-radius:var(--ha-border-radius-md);
1background:var(--ha-bottom-sheet-handle-color,var(--divider-color));width:40px;height:4px}.content-wrapper{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.body{padding:var(--ha-bottom-sheet-content-padding,0);box-sizing:border-box}:host([flexcontent]) .body{max-width:100%;padding:var(--ha-bottom-sheet-content-padding,var(--ha-bottom-sheet-padding,0 var(--safe-area-inset-right) var(--safe-area-inset-bottom) var(--safe-area-inset-left)));box-sizing:border-box;flex-direction:column;flex:1;display:flex}slot[name=footer]{padding:0;display:block}::slotted([slot=footer]){padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4);gap:var(--ha-space-3);box-sizing:border-box;justify-content:flex-end;align-items:center;width:100%;display:flex}:host([flexcontent]) slot[name=footer]{flex-shrink:0}`]}constructor(...t){super(...t),this.open=!1,this.flexContent=!1,this.preventScrimClose=!1,this._drawerOpen=!1,this._sliderInteractionActive=!1,this._gestureRecognizer=new h.u,this._isDragging=!1,this._escapePressed=!1,this._handleShow=async()=>{this._drawerOpen=!0,this.open=!0,(0,l.r)(this,"opened"),await this.updateComplete,requestAnimationFrame(()=>{const t=this._autofocusElement;this._hassConfig?.auth.external&&(0,u.V)(this._hassConfig.auth.external)?t&&(t.id||(t.id="ha-bottom-sheet-autofocus"),this._hassConfig.auth.external.fireMessage({type:"focus_element",payload:{element_id:t.id}})):t?.focus()})},this._handleAfterShow=()=>{(0,l.r)(this,"after-show")},this._handleSliderInteractionStart=()=>{this._sliderInteractionActive=!0},this._handleSliderInteractionStop=()=>{this._sliderInteractionActive=!1},this._handleAfterHide=t=>{if(this._sliderInteractionActive)return this._drawerOpen=!0,void(this.open=!0);t.eventPhase===Event.AT_TARGET&&(this.open=!1,this._drawerOpen=!1,(0,l.r)(this,"closed"))},this._handleHide=t=>{if(t.eventPhase!==Event.AT_TARGET)return;const e=t.detail.source===t.target.drawer;if(this._sliderInteractionActive)return t.preventDefault(),this._drawerOpen=!0,this.open=!0,void(this._escapePressed=!1);this.preventScrimClose&&this._escapePressed&&e&&t.preventDefault(),this._escapePressed=!1},this._handleKeyDown=t=>{"Escape"===t.key&&(this._escapePressed=!0,this.preventScrimClose&&t.preventDefault(),t.stopPropagation(),t.currentTarget.open=!1)},this._handleCloseAction=t=>{t.composedPath().some(t=>t instanceof HTMLElement&&("close"===t.getAttribute("data-dialog")||"close"===t.getAttribute("data-drawer")))&&(this._drawerOpen=!1)},this._handleTouchStart=t=>{if(this.preventScrimClose)return;const e=t.composedPath();for(const t of e){if(t===this._drawer)break;if(t instanceof HTMLElement&&(t.scrollTop>0||b.has(t.localName)||Array.from(t.classList).some(t=>f.has(t))))return}t.stopPropagation(),this._startResizing(t.touches[0].clientY)},this._handleTouchMove=t=>{const e=t.touches[0].clientY,a=this._gestureRecognizer.move(e);a<0&&(t.preventDefault(),this._isDragging=!0,requestAnimationFrame(()=>{this._isDragging&&this.style.setProperty("--dialog-transform",`translateY(${-1*a}px)`)}))},this._handleTouchEnd=()=>{this._unregisterResizeHandlers(),this._isDragging=!1;const t=this._gestureRecognizer.end();if(t.isSwipe)return void(t.isDownwardSwipe?this._drawerOpen=!1:this._animateSnapBack());const e=this._drawer.shadowRoot?.querySelector('[part="body"]'),a=e?.offsetHeight||0;a>0&&t.delta<0&&Math.abs(t.delta)>.5*a?this._drawerOpen=!1:this._animateSnapBack()},this._unregisterResizeHandlers=()=>{document.removeEventListener("touchmove",this._handleTouchMove),document.removeEventListener("touchend",this._handleTouchEnd),document.removeEventListener("touchcancel",this._handleTouchEnd)}}}(0,o.Cg)([(0,n.MZ)({attribute:"aria-labelledby"})],m.prototype,"ariaLabelledBy",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"aria-describedby"})],m.prototype,"ariaDescribedBy",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],m.prototype,"open",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],m.prototype,"flexContent",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],m.prototype,"preventScrimClose",void 0),(0,o.Cg)([(0,n.wk)()],m.prototype,"_drawerOpen",void 0),(0,o.Cg)([(0,n.wk)()],m.prototype,"_sliderInteractionActive",void 0),(0,o.Cg)([(0,n.wk)(),(0,r.Fg)({context:d.WF,subscribe:!0})],m.prototype,"_hassConfig",void 0),(0,o.Cg)([(0,n.P)("#drawer")],m.prototype,"_drawer",void 0),(0,o.Cg)([(0,n.P)("#body")],m.prototype,"_bodyElement",void 0),(0,o.Cg)([(0,n.P)("[autofocus]")],m.prototype,"_autofocusElement",void 0),m=(0,o.Cg)([(0,n.EM)("ha-bottom-sheet")],m),e()}catch(t){e(t)}})},85150(t,e,a){var o=a(28861),i=a(5992),r=a(11467),s=a(82476);
1class n extends i.A{get value(){return this._value??null}set value(t){this._value=t}static get styles(){return[i.A.styles,r.AH`:host{--wa-form-control-toggle-size:var(--ha-checkbox-size,20px);--wa-form-control-border-color:var(--ha-checkbox-border-color,var(--ha-color-border-neutral-normal));--wa-form-control-background-color:var(--ha-checkbox-background-color,var(--wa-form-control-background-color));--checked-icon-color:var(--ha-checkbox-checked-icon-color,var(--wa-color-brand-on-loud));--wa-form-control-activated-color:var(--ha-checkbox-checked-background-color,var(--ha-color-fill-primary-loud-resting));-webkit-tap-highlight-color:transparent;--checked-icon-scale:var(--ha-checkbox-checked-icon-scale,.9);--wa-form-control-required-content:var(--ha-checkbox-required-marker,var(--ha-input-required-marker,"*"));--wa-form-control-required-content-offset:var(--ha-checkbox-required-marker-offset,.1rem)}[part~=base]{align-items:center;gap:var(--ha-space-2)}[part~=control]{border-radius:var(--ha-checkbox-border-radius,var(--ha-border-radius-sm));border-width:var(--ha-checkbox-border-width,var(--ha-border-width-md));margin-inline-end:0}[part~=label]{line-height:1}#hint{font-size:var(--ha-font-size-xs);color:var(--ha-color-text-secondary)}label:has(input:not(:disabled)):hover{--wa-form-control-border-color:var(--ha-checkbox-border-color-hover,var(--ha-checkbox-border-color,var(--ha-color-border-neutral-loud)))}label:has(input:not(:disabled)):hover [part~=control]{background-color:var(--ha-checkbox-background-color-hover,var(--ha-color-form-background-hover))}label:has(input:checked:not(:disabled)):hover [part~=control],label:has(input:indeterminate:not(:disabled)):hover [part~=control]{background-color:var(--ha-checkbox-checked-background-color-hover,var(--ha-color-fill-primary-loud-hover));border-color:var(--ha-checkbox-checked-background-color-hover,var(--ha-color-fill-primary-loud-hover))}`]}}n=(0,o.Cg)([(0,s.EM)("ha-checkbox")],n)},35883(t,e,a){var o=a(28861),i=a(11467),r=a(82476);class s extends i.WF{render(){return i.qy` <footer> <slot name="secondaryAction"></slot> <slot name="primaryAction"></slot> </footer> `}static get styles(){return[i.AH`footer{gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%;display:flex}`]}}s=(0,o.Cg)([(0,r.EM)("ha-dialog-footer")],s)},60721(t,e,a){var o=a(28861),i=a(11467),r=a(82476);class s extends i.WF{render(){const t=i.qy`<div class="header-title"> <slot name="title"></slot> </div>`,e=i.qy`<div class="header-subtitle"> <slot name="subtitle"></slot> </div>`;return i.qy` <header class="header"> <div class="header-bar"> <section class="header-navigation-icon"> <slot name="navigationIcon"></slot> </section> <section class="header-content"> ${"above"===this.subtitlePosition?i.qy`${e}${t}`:i.qy`${t}${e}`} </section> <section class="header-action-items"> <slot name="actionItems"></slot> </section> </div> <slot></slot> </header> `}static get styles(){return[i.AH`:host{display:block}:host([show-border]){border-bottom:1px solid var(--mdc-dialog-scroll-divider-color,#0000001f)}.header-bar{padding:0 var(--ha-space-1);box-sizing:border-box;flex-direction:row;align-items:center;display:flex}.header-content{padding:10px var(--ha-space-1);min-height:var(--ha-space-12);text-overflow:ellipsis;white-space:nowrap;flex-direction:column;flex:1;justify-content:center;min-width:0;display:flex;overflow:hidden}.header-title{height:var(--ha-dialog-header-title-height,calc(var(--ha-font-size-xl) + var(--ha-space-1)));font-size:var(--ha-font-size-xl);line-height:var(--ha-line-height-condensed);font-weight:var(--ha-font-weight-medium);color:var(--ha-dialog-header-title-color,var(--primary-text-color))}.header-subtitle{font-size:var(--ha-font-size-m);line-height:var(--ha-line-height-normal);color:var(--ha-dialog-header-subtitle-color,var(--secondary-text-color))}@media (width>=450px) and (height>=500px){.header-bar{padding:0 var(--ha-space-2)}}.header-navigation-icon,.header-action-items{min-width:var(--ha-space-2);flex-direction:row;flex:none;height:100%;display:flex}`]}constructor(...t){super(...t),this.subtitlePosition="below",this.showBorder=!1}}(0,o.Cg)([(0,r.MZ)({type:String,attribute:"subtitle-position"})],s.prototype,"subtitlePosition",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0,attribute:"show-border"})],s.prototype,"showBorder",void 0),s=(0,o.Cg)([(0,r.EM)("ha-dialog-header")],s)},25395(t,e,a){a.a(t,async function(t,e){try{var o=a(28861),i=a(82471),r=a(63018),s=a(11467),n=a(82476),l=a(16635),h=a(62228),d=a(80570),c=a(78813),p=a(96309),u=a(7578),g=a(20455),v=(a(60721),a(96007)),b=t([i,v]);[i,v]=b.then?(await b)():b;const f="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";class m extends((0,p.V)(s.WF)){connectedCallback(){super.connectedCallback(),this.addEventListener("dialog-set-fullscreen",this._handleFullscreenChanged)}get scrollableElement(){return this.bodyContainer}updated(t){super.updated(t),t.has("open")&&(this._open=this.open)}render(){return s.qy` <wa-dialog .open=${this._open} .lightDismiss=${!this.preventScrimClose} without-header aria-labelledby=${(0,l.J)(this.ariaLabelledBy||(void 0!==this.headerTitle?"ha-dialog-title":void 0))} aria-describedby=${(0,l.J)(this.ariaDescribedBy)} @keydown=${this._handleKeyDown} @wa-hide=${this._handleHide} @wa-show=${this._handleShow} @wa-after-show=${this._handleAfterShow} @wa-after-hide=${this._handleAfterHide}> ${this.withoutHeader?s.s6:s.qy`<slot name="header"> <ha-dialog-header .subtitlePosition=${this.headerSubtitlePosition} .showBorder=${this._bodyScrolled}> <slot name="headerNavigationIcon" slot="navigationIcon"> <ha-icon-button data-dialog="close" .label=${this._i18n?.localize?.("ui.common.close")??"Close"} .path=${f}></ha-icon-button> </slot> ${void 0!==this.headerTitle?s.qy`<span slot="title" class="title" id="ha-dialog-title"> ${this.headerTitle} </span>`:s.qy`<slot name="headerTitle" slot="title"></slot>`} ${void 0!==this.headerSubtitle?s.qy`<span slot="subtitle">${this.headerSubtitle}</span>`:s.qy`<slot name="headerSubtitle" slot="subtitle"></slot>`} <slot name="headerActionItems" slot="actionItems"></slot> </ha-dialog-header> </slot>`} <div class="content-wrapper"> <div class="body ha-scrollbar" @scroll=${this._handleBodyScroll}> <slot></slot> </div> ${this.renderScrollableFades()} </div> <slot name="footer" slot="footer"></slot> </wa-dialog> `}disconnectedCallback(){this.removeEventListener("dialog-set-fullscreen",this._handleFullscreenChanged),this._setFullscreen(!1),super.disconnectedCallback(),this._open=!1}_handleFullscreenChanged(t){this._open?(0,d.J)(()=>{this._setFullscreen(t.detail)}):this._setFullscreen(t.detail)}_setFullscreen(t){this.toggleAttribute("fullscreen",t)}_handleBodyScroll(t){this._bodyScrolled=t.target.scrollTop>0}_handleKeyDown(t){"Escape"===t.key&&(this.preventScrimClose&&t.preventDefault(),t.stopPropagation(),t.currentTarget.open=!1)}_handleHide(t){if(t.eventPhase!==Event.AT_TARGET)return;const e=t.detail?.source===t.target.dialog;this.preventScrimClose&&e&&this.open&&t.preventDefault()}static get styles(){return[...super.styles,u.dp,s.AH`wa-dialog{--full-width:var(--ha-dialog-width-full,min(95vw, var(--safe-width)));
1--width:min(var(--ha-dialog-width-md,580px), var(--full-width));--spacing:var(--dialog-content-padding,var(--ha-space-6));--show-duration:var(--ha-dialog-show-duration,.2s);--hide-duration:var(--ha-dialog-hide-duration,.2s);--wa-color-surface-raised:var(--ha-dialog-surface-background,var(--card-background-color,var(--ha-color-surface-default)));--wa-panel-border-radius:var(--ha-dialog-border-radius,var(--ha-border-radius-3xl));max-width:var(--ha-dialog-max-width,var(--safe-width))}@media (prefers-reduced-motion:reduce){wa-dialog{--show-duration:0s;--hide-duration:0s}}:host([width=small]) wa-dialog{--width:min(var(--ha-dialog-width-sm,320px), var(--full-width))}:host([width=large]) wa-dialog{--width:min(var(--ha-dialog-width-lg,1024px), var(--full-width))}:host([width=full]) wa-dialog,:host([fullscreen]) wa-dialog{--width:var(--full-width)}:host([fullscreen]) wa-dialog::part(dialog){min-height:var(--safe-height);max-height:var(--safe-height);margin-top:0;transform:none}:host([fullscreen]) .content-wrapper{overflow:hidden}:host([fullscreen]) .body{padding:0;overflow:hidden}wa-dialog::part(dialog){backdrop-filter:var(--ha-dialog-surface-backdrop-filter,none);box-shadow:var(--dialog-box-shadow,var(--wa-shadow-l));color:var(--primary-text-color);min-width:var(--width,var(--full-width));max-width:var(--width,var(--full-width));max-height:var(--ha-dialog-max-height,calc(var(--safe-height) - var(--ha-space-20)));min-height:var(--ha-dialog-min-height);margin-top:var(--dialog-surface-margin-top,auto);transform:translate(calc(var(--safe-area-offset-left,0px) - var(--safe-area-offset-right,0px)), calc(var(--safe-area-offset-top,0px) - var(--safe-area-offset-bottom,0px)));flex-direction:column;display:flex;overflow:hidden}wa-dialog::part(dialog)::backdrop{backdrop-filter:var(--ha-dialog-scrim-backdrop-filter,var(--dialog-backdrop-filter,none));background-color:var(--mdc-dialog-scrim-color,none)}@media (width<=450px),(height<=500px){:host([type=standard]){--ha-dialog-border-radius:0}:host([type=standard]) wa-dialog{--full-width:var(--ha-dialog-width-full,100vw);--width:var(--full-width)}:host([type=standard]) wa-dialog::part(dialog){min-height:var(--ha-dialog-min-height,100vh);min-height:var(--ha-dialog-min-height,100dvh);max-height:var(--ha-dialog-max-height,100vh);max-height:var(--ha-dialog-max-height,100dvh);padding-top:var(--safe-area-inset-top);padding-bottom:var(--safe-area-inset-bottom);padding-left:var(--safe-area-inset-left);padding-right:var(--safe-area-inset-right);margin-top:0;margin-bottom:0;transform:none}}.header-title-container{align-items:center;display:flex}.header-title{color:var(--ha-dialog-header-title-color,var(--primary-text-color));font-size:var(--ha-dialog-header-title-font-size,var(--ha-font-size-2xl));line-height:var(--ha-dialog-header-title-line-height,var(--ha-line-height-condensed));font-weight:var(--ha-dialog-header-title-font-weight,var(--ha-font-weight-normal));text-overflow:ellipsis;white-space:nowrap;margin:0;margin-right:var(--ha-space-3);overflow:hidden}wa-dialog::part(body){flex-direction:column;max-width:100%;padding:0;display:flex;overflow:hidden}.content-wrapper{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.body{position:var(--dialog-content-position,relative);padding:var(--dialog-content-padding,0 var(--ha-space-6) var(--ha-space-6) var(--ha-space-6));flex-grow:1;overflow:auto}:host([flexcontent]) .body{flex-direction:column;flex:1;max-width:100%;display:flex}wa-dialog::part(footer){padding:0}::slotted([slot=footer]){padding:var(--ha-space-3) var(--ha-space-4) var(--ha-space-4) var(--ha-space-4);gap:var(--ha-space-3);justify-content:flex-end;align-items:center;width:100%;display:flex}`]}constructor(...t){super(...t),this.open=!1,this.type="standard",this.width="medium",this.preventScrimClose=!1,this.headerSubtitlePosition="below",this.flexContent=!1,this.withoutHeader=!1,this._open=!1,this._bodyScrolled=!1,this._handleShow=async t=>{t.eventPhase===Event.AT_TARGET&&(this._open=!0,(0,h.r)(this,"opened"),await this.updateComplete,requestAnimationFrame(()=>{if(this._hassConfig?.auth.external&&(0,g.V)(this._hassConfig.auth.external)){const t=this.querySelector("[autofocus]");return void(null!==t&&(t.id||(t.id="ha-dialog-autofocus"),this._hassConfig.auth.external.fireMessage({type:"focus_element",payload:{element_id:t.id}})))}this.querySelector("[autofocus]")?.focus()}))},this._handleAfterShow=t=>{t.eventPhase===Event.AT_TARGET&&(0,h.r)(this,"after-show")},this._handleAfterHide=t=>{t.eventPhase===Event.AT_TARGET&&(this._open=!1,this._setFullscreen(!1),(0,h.r)(this,"closed"))}}}(0,o.Cg)([(0,n.MZ)({attribute:"aria-labelledby"})],m.prototype,"ariaLabelledBy",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"aria-describedby"})],m.prototype,"ariaDescribedBy",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,reflect:!0})],m.prototype,"open",void 0),(0,o.Cg)([(0,n.MZ)({reflect:!0})],m.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:String,reflect:!0,attribute:"width"})],m.prototype,"width",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"prevent-scrim-close"})],m.prototype,"preventScrimClose",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"header-title"})],m.prototype,"headerTitle",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"header-subtitle"})],m.prototype,"headerSubtitle",void 0),(0,o.Cg)([(0,n.MZ)({type:String,attribute:"header-subtitle-position"})],m.prototype,"headerSubtitlePosition",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,reflect:!0,attribute:"flexcontent"})],m.prototype,"flexContent",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"without-header"})],m.prototype,"withoutHeader",void 0),(0,o.Cg)([(0,n.wk)()],m.prototype,"_open",void 0),(0,o.Cg)([(0,n.P)(".body")],m.prototype,"bodyContainer",void 0),(0,o.Cg)([(0,n.wk)(),(0,r.Fg)({context:c.D5,subscribe:!0})],m.prototype,"_i18n",void 0),(0,o.Cg)([(0,n.wk)(),(0,r.Fg)({context:c.WF,subscribe:!0})],m.prototype,"_hassConfig",void 0),(0,o.Cg)([(0,n.wk)()],m.prototype,"_bodyScrolled",void 0),(0,o.Cg)([(0,n.Ls)({passive:!0})],m.prototype,"_handleBodyScroll",null),m=(0,o.Cg)([(0,n.EM)("ha-dialog")],m),e()}catch(t){e(t)}})},26e3(t,e,a){var o=a(28861),i=a(97710),r=(a(5928),a(11467)),s=a(82476);a(47551);
1class n extends i.A{renderCheckboxIcon(){return r.qy` <ha-svg-icon id="check" part="checkmark" .path=${this.checked?"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z":"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}></ha-svg-icon> `}static get styles(){return[i.A.styles,r.AH`:host{min-height:var(--ha-space-10)}#check{visibility:visible;flex-shrink:0}#icon ::slotted(*){color:var(--ha-color-on-neutral-normal)}:host([variant=danger]) #icon ::slotted(*){color:var(--ha-color-on-danger-quiet)}:host([selected]){font-weight:var(--ha-font-weight-medium);color:var(--primary-color);background-color:var(--ha-color-fill-primary-quiet-resting);--icon-primary-color:var(--primary-color)}:host([selected]:hover){background-color:var(--ha-color-fill-primary-quiet-hover)}`]}constructor(...t){super(...t),this.selected=!1}}(0,o.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],n.prototype,"selected",void 0),n=(0,o.Cg)([(0,s.EM)("ha-dropdown-item")],n)},6162(t,e,a){a.a(t,async function(t,e){try{var o=a(28861),i=a(51161),r=a(11467),s=a(82476),n=t([i]);i=(n.then?(await n)():n)[0];class l extends i.A{get anchorElement(){return this.popup?.anchor}set anchorElement(t){this.popup&&(this.popup.anchor&&"ha-icon-button"===this.popup.anchor.localName&&(this.popup.anchor.selected=!1),this.popup.anchor=t)}getTrigger(){return this.anchorElement?this.anchorElement:super.getTrigger()}async showMenu(){await super.showMenu();const t=this.getTrigger();t&&"ha-icon-button"===t.localName&&(t.selected=!0)}async hideMenu(){const t=this.getTrigger();t&&"ha-icon-button"===t.localName&&(t.selected=!1),await super.hideMenu()}static get styles(){return[i.A.styles,r.AH`:host{font-size:var(--ha-dropdown-font-size,var(--ha-font-size-m));--wa-color-surface-raised:var(--card-background-color,var(--ha-dialog-surface-background,var(--mdc-theme-surface,#fff)),)}#menu{padding:var(--ha-space-1)}wa-popup::part(popup){z-index:200}`]}constructor(...t){super(...t),this.dropdownTag="ha-dropdown",this.dropdownItemTag="ha-dropdown-item"}}(0,o.Cg)([(0,s.MZ)({attribute:!1})],l.prototype,"dropdownTag",void 0),(0,o.Cg)([(0,s.MZ)({attribute:!1})],l.prototype,"dropdownItemTag",void 0),l=(0,o.Cg)([(0,s.EM)("ha-dropdown")],l),e()}catch(t){e(t)}})},89907(t,e,a){var o=a(28861),i=a(11467),r=a(82476);a(8799),a(47551);class s extends i.WF{render(){return i.qy` <ha-assist-chip .label=${this.label} .active=${this.active} .disabled=${this.disabled}> ${this.path?i.qy`<ha-svg-icon slot="icon" .path=${this.path}></ha-svg-icon>`:i.s6} </ha-assist-chip> ${this.count?i.qy`<div class="badge">${this.count}</div>`:i.s6} `}constructor(...t){super(...t),this.label="",this.count=0,this.active=!1,this.disabled=!1}}s.styles=i.AH`:host{--ha-assist-chip-container-shape:10px;display:inline-block;position:relative}.badge{top:-4px;right:-4px;box-sizing:border-box;border-radius:var(--ha-border-radius-circle);min-width:16px;font-size:var(--ha-font-size-xs);font-weight:var(--ha-font-weight-normal);background-color:var(--primary-color);line-height:var(--ha-line-height-normal);text-align:center;color:var(--text-primary-color);pointer-events:none;padding:0 2px;position:absolute;inset-inline-start:initial;inset-inline-end:-4px}`,(0,o.Cg)([(0,r.MZ)()],s.prototype,"label",void 0),(0,o.Cg)([(0,r.MZ)()],s.prototype,"path",void 0),(0,o.Cg)([(0,r.MZ)({type:Number})],s.prototype,"count",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean})],s.prototype,"active",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean})],s.prototype,"disabled",void 0),s=(0,o.Cg)([(0,r.EM)("ha-filter-pane-chip")],s)},79689(t,e,a){a.a(t,async function(t,o){try{a.r(e);var i=a(28861),r=a(11467),s=a(82476),n=a(66970),l=a(96007),h=a(7346),d=t([l]);l=(d.then?(await d)():d)[0];const c="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",p="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";class u extends r.WF{render(){return r.qy` <ha-icon-button .disabled=${this.disabled} .label=${this.label||this._localize("ui.common.back")||"Back"} .path=${this._icon} .href=${this.href} .target=${this.target} .rel=${this.rel} .download=${this.download}></ha-icon-button> `}constructor(...t){super(...t),this.disabled=!1,this._icon="rtl"===n.G.document.dir?p:c}}(0,i.Cg)([(0,s.MZ)({type:Boolean})],u.prototype,"disabled",void 0),(0,i.Cg)([(0,s.MZ)()],u.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)()],u.prototype,"href",void 0),(0,i.Cg)([(0,s.MZ)()],u.prototype,"target",void 0),(0,i.Cg)([(0,s.MZ)()],u.prototype,"rel",void 0),(0,i.Cg)([(0,s.MZ)()],u.prototype,"download",void 0),(0,i.Cg)([(0,s.wk)()],u.prototype,"_icon",void 0),(0,i.Cg)([(0,s.wk)(),(0,h.IW)()],u.prototype,"_localize",void 0),u=(0,i.Cg)([(0,s.EM)("ha-icon-button-arrow-prev")],u),a.d(e,{HaIconButtonArrowPrev:()=>u}),o()}catch(t){o(t)}})},96007(t,e,a){a.a(t,async function(t,o){try{a.r(e);var i=a(28861),r=a(11467),s=a(82476),n=a(16635),l=a(69595),h=(a(47551),t([l]));l=(h.then?(await h)():h)[0];class d extends r.WF{render(){return r.qy` <ha-button appearance="plain" variant="neutral" aria-label=${(0,n.J)(this.label)} title=${(0,n.J)(this.hideTitle?void 0:this.label)} aria-haspopup=${(0,n.J)(this.ariaHasPopup)} .disabled=${this.disabled} .iconTag=${this.path?"ha-svg-icon":"span"} .href=${this.href} .target=${this.target} .rel=${this.rel} .download=${this.download}> ${this.path?r.qy`<ha-svg-icon aria-hidden="true" .path=${this.path}></ha-svg-icon>`:r.qy`<span><slot></slot></span>`} </ha-button>
1 `}constructor(...t){super(...t),this.disabled=!1,this.hideTitle=!1,this.selected=!1}}d.shadowRootOptions={mode:"open",delegatesFocus:!0},d.styles=r.AH`:host{--ha-button-height:var(--ha-icon-button-size,48px);outline:none;display:inline-block}ha-button{isolation:isolate;--wa-form-control-padding-inline:var(--ha-icon-button-padding-inline,--ha-space-2);--wa-color-on-normal:currentColor;--wa-color-fill-quiet:transparent;--ha-button-label-overflow:visible;position:relative}ha-button:after{content:"";z-index:-1;opacity:0;pointer-events:none;background-color:currentColor;border-radius:50%;position:absolute;inset:0}ha-button::part(base){width:var(--wa-form-control-height);aspect-ratio:1;outline-offset:-4px}ha-button::part(label){display:flex}:host([selected]) ha-button:after{opacity:.1}@media (hover:hover){:host(:hover:not([disabled])) ha-button:after{opacity:.1}}`,(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],d.prototype,"path",void 0),(0,i.Cg)([(0,s.MZ)({type:String})],d.prototype,"label",void 0),(0,i.Cg)([(0,s.MZ)({type:String,attribute:"aria-haspopup"})],d.prototype,"ariaHasPopup",void 0),(0,i.Cg)([(0,s.MZ)({attribute:"hide-title",type:Boolean})],d.prototype,"hideTitle",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,reflect:!0})],d.prototype,"selected",void 0),(0,i.Cg)([(0,s.MZ)()],d.prototype,"href",void 0),(0,i.Cg)([(0,s.MZ)()],d.prototype,"target",void 0),(0,i.Cg)([(0,s.MZ)()],d.prototype,"rel",void 0),(0,i.Cg)([(0,s.MZ)()],d.prototype,"download",void 0),d=(0,i.Cg)([(0,s.EM)("ha-icon-button")],d),a.d(e,{HaIconButton:()=>d}),o()}catch(t){o(t)}})},50933(t,e,a){a.a(t,async function(t,o){try{a.r(e);a(18111),a(61701);var i=a(28861),r=(a(27712),a(11467)),s=a(82476),n=a(7346),l=a(59926),h=a(7578),d=a(6162),c=(a(26e3),a(96007)),p=(a(47551),a(37208)),u=t([d,c,p]);[d,c,p]=u.then?(await u)():u;const g="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z";class v extends r.WF{render(){return 0===this.items.length?r.s6:r.qy` ${this.narrow?r.qy` <ha-dropdown @wa-show=${this._handleIconOverflowMenuOpened} @click=${l.d}> <ha-icon-button .label=${this._localize("ui.common.overflow_menu")} .path=${g} slot="trigger"></ha-icon-button> ${this.items.map(t=>t.divider?r.qy`<wa-divider></wa-divider>`:r.qy`<ha-dropdown-item ?disabled=${t.disabled} @click=${t.action} variant=${t.warning?"danger":"default"}> <ha-svg-icon slot="icon" .path=${t.path}></ha-svg-icon> ${t.label} </ha-dropdown-item>`)} </ha-dropdown>`:r.qy` ${this.items.map(t=>t.narrowOnly?r.s6:t.divider?r.qy`<div role="separator"></div>`:r.qy`<ha-tooltip .disabled=${!t.tooltip} .for="icon-button-${t.label}">${t.tooltip??""} </ha-tooltip><ha-icon-button .id="icon-button-${t.label}" @click=${t.action} .label=${t.label} .path=${t.path} ?disabled=${t.disabled}></ha-icon-button> `)} `} `}_handleIconOverflowMenuOpened(t){t.stopPropagation()}static get styles(){return[h.RF,r.AH`:host{cursor:initial;justify-content:flex-end;display:flex}div[role=separator]{border-right:1px solid var(--divider-color);width:1px}`]}constructor(...t){super(...t),this.items=[],this.narrow=!1}}(0,i.Cg)([(0,s.wk)(),(0,n.IW)()],v.prototype,"_localize",void 0),(0,i.Cg)([(0,s.MZ)({type:Array})],v.prototype,"items",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],v.prototype,"narrow",void 0),v=(0,i.Cg)([(0,s.EM)("ha-icon-overflow-menu")],v),a.d(e,{HaIconOverflowMenu:()=>v}),o()}catch(t){o(t)}})},79778(t,e,a){a.a(t,async function(t,e){try{var o=a(28861),i=a(63018),r=a(11467),s=a(82476),n=a(62228),l=a(78813),h=a(65304),d=a(96007),c=a(7346),p=t([d]);d=(p.then?(await p)():p)[0];const u="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";class g extends r.WF{connectedCallback(){super.connectedCallback(),this._attachNotifOnConnect&&this._connection&&(this._attachNotifOnConnect=!1,this._subscribeNotifications())}disconnectedCallback(){super.disconnectedCallback(),this._unsubNotifications&&(this._attachNotifOnConnect=!0,this._unsubNotifications(),this._unsubNotifications=void 0)}
1render(){if(!this._show||!this._ui)return r.s6;const t=this._hasNotifications&&(this._narrow||"always_hidden"===this._ui.dockedSidebar);return r.qy` <ha-icon-button .label=${this._localize("ui.sidebar.sidebar_toggle")} .path=${u} @click=${this._toggleMenu}></ha-icon-button> ${t?r.qy`<div class="dot"></div>`:""} `}willUpdate(t){if(super.willUpdate(t),!t.has("_narrow")&&!t.has("_ui")&&!t.has("_connection"))return;t.has("_connection")&&this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0);const e=!1===this._ui?.kioskMode&&(this._narrow||"always_hidden"===this._ui.dockedSidebar);this._show=e||this._alwaysVisible,e?!this._unsubNotifications&&this._connection&&(this._attachNotifOnConnect=!1,this._subscribeNotifications()):this._unsubNotifications&&(this._unsubNotifications(),this._unsubNotifications=void 0)}_subscribeNotifications(){if(this._unsubNotifications)throw new Error("Already subscribed");this._unsubNotifications=(0,h.V)(this._connection.connection,t=>{this._hasNotifications=t.length>0})}_toggleMenu(){(0,n.r)(this,"hass-toggle-menu")}constructor(...t){super(...t),this._narrow=!1,this._hasNotifications=!1,this._show=!1,this._alwaysVisible=!1,this._attachNotifOnConnect=!1}}g.styles=r.AH`:host{position:relative}.dot{pointer-events:none;background-color:var(--accent-color);top:9px;right:7px;width:12px;height:12px;border-radius:var(--ha-border-radius-circle);border:2px solid var(--app-header-background-color);position:absolute;inset-inline-start:initial;inset-inline-end:7px}`,(0,o.Cg)([(0,s.wk)(),(0,i.Fg)({context:l.Wq,subscribe:!0})],g.prototype,"_connection",void 0),(0,o.Cg)([(0,c.IW)()],g.prototype,"_localize",void 0),(0,o.Cg)([(0,s.wk)(),(0,i.Fg)({context:l.B7,subscribe:!0})],g.prototype,"_narrow",void 0),(0,o.Cg)([(0,s.wk)(),(0,i.Fg)({context:l.EK,subscribe:!0})],g.prototype,"_ui",void 0),(0,o.Cg)([(0,s.wk)()],g.prototype,"_hasNotifications",void 0),(0,o.Cg)([(0,s.wk)()],g.prototype,"_show",void 0),g=(0,o.Cg)([(0,s.EM)("ha-menu-button")],g),e()}catch(t){e(t)}})},32213(t,e,a){a.a(t,async function(t,e){try{var o=a(28861),i=a(63018),r=a(24408),s=a(11467),n=a(82476),l=a(90608),h=a(15752),d=a(78813),c=t([l]);l=(c.then?(await c)():c)[0];class p extends s.mN{disconnectedCallback(){super.disconnectedCallback(),this._clearTimeout()}connectedCallback(){super.connectedCallback(),this._updateRelative()}createRenderRoot(){return this}update(t){super.update(t),this._updateRelative()}_clearTimeout(){this._timeout&&(window.clearTimeout(this._timeout),this._timeout=void 0)}_updateRelative(){if(this._clearTimeout(),!this._i18n)return;if(!this.datetime)return void(this.textContent=this._i18n.localize("ui.components.relative_time.never"));const t="string"==typeof this.datetime?(0,r.H)(this.datetime):this.datetime,e=(0,l.K)(t,this._i18n.locale,void 0,!0,this.format);this.textContent=this.capitalize?(0,h.Z)(e):e;const a=Math.abs(Date.now()-t.getTime())/1e3;this._timeout=window.setTimeout(()=>this._updateRelative(),a<60?1e3:6e4)}constructor(...t){super(...t),this.format="long",this.capitalize=!1}}(0,o.Cg)([(0,n.MZ)({attribute:!1})],p.prototype,"datetime",void 0),(0,o.Cg)([(0,n.MZ)()],p.prototype,"format",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],p.prototype,"capitalize",void 0),(0,o.Cg)([(0,n.wk)(),(0,i.Fg)({context:d.D5,subscribe:!0})],p.prototype,"_i18n",void 0),p=(0,o.Cg)([(0,n.EM)("ha-relative-time")],p),e()}catch(t){e(t)}})},38753(t,e,a){var o=a(28861),i=a(67627),r=a(47197),s=a(5892),n=a(11467),l=a(82476);class h extends r.n{attach(t){super.attach(t),this.attachableTouchController.attach(t)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(t,e){t?.removeEventListener("touchend",this._handleTouchEnd),e?.addEventListener("touchend",this._handleTouchEnd)}constructor(...t){super(...t),this.attachableTouchController=new i.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}h.styles=[s.R,n.AH`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity,.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity,.12);--md-ripple-hover-color:var(--ha-ripple-hover-color,var(--ha-ripple-color,var(--secondary-text-color)));--md-ripple-pressed-color:var(--ha-ripple-pressed-color,var(--ha-ripple-color,var(--secondary-text-color)))}
1`],h=(0,o.Cg)([(0,l.EM)("ha-ripple")],h)},47551(t,e,a){a.r(e);var o=a(28861),i=a(11467),r=a(82476);class s extends i.WF{render(){return i.JW` <svg viewBox=${this.viewBox||"0 0 24 24"} preserveAspectRatio="xMidYMid meet" focusable="false" role="img" aria-hidden="true"> <g> ${this.path?i.JW`<path class="primary-path" d=${this.path}></path>`:i.s6} ${this.secondaryPath?i.JW`<path class="secondary-path" d=${this.secondaryPath}></path>`:i.s6} </g> </svg>`}}s.styles=i.AH`:host{display:var(--ha-icon-display,inline-flex);vertical-align:middle;fill:var(--icon-primary-color,currentcolor);width:var(--mdc-icon-size,24px);height:var(--mdc-icon-size,24px);justify-content:center;align-items:center;position:relative}svg{pointer-events:none;width:100%;height:100%;display:block}path.primary-path{opacity:var(--icon-primary-opactity,1)}path.secondary-path{fill:var(--icon-secondary-color,currentcolor);opacity:var(--icon-secondary-opactity,.5)}`,(0,o.Cg)([(0,r.MZ)()],s.prototype,"path",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],s.prototype,"secondaryPath",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],s.prototype,"viewBox",void 0),s=(0,o.Cg)([(0,r.EM)("ha-svg-icon")],s),a.d(e,{HaSvgIcon:()=>s})},37208(t,e,a){a.a(t,async function(t,e){try{var o=a(28861),i=a(79881),r=a(11467),s=a(82476),n=t([i]);i=(n.then?(await n)():n)[0];class l extends i.A{static get styles(){return[i.A.styles,r.AH`:host{--wa-tooltip-background-color:var(--ha-tooltip-background-color,var(--ha-color-surface-default));--wa-tooltip-content-color:var(--ha-tooltip-text-color,var(--primary-text-color));--wa-tooltip-font-family:var(--ha-tooltip-font-family,var(--ha-font-family-body));--wa-tooltip-font-size:var(--ha-tooltip-font-size,var(--ha-font-size-m));--wa-tooltip-font-weight:var(--ha-tooltip-font-weight,var(--ha-font-weight-medium));--wa-tooltip-line-height:var(--ha-tooltip-line-height,var(--ha-line-height-condensed));--wa-tooltip-padding:var(--ha-tooltip-padding,var(--ha-space-2));--wa-tooltip-border-radius:var(--ha-tooltip-border-radius,var(--ha-border-radius-md));--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size,0px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}.tooltip::part(popup){animation-duration:var(--ha-tooltip-animation-duration,0)}.body{box-shadow:var(--ha-tooltip-box-shadow,var(--ha-box-shadow-m))}`]}constructor(...t){super(...t),this.showDelay=350,this.hideDelay=150}}(0,o.Cg)([(0,s.MZ)({attribute:"show-delay",type:Number})],l.prototype,"showDelay",void 0),(0,o.Cg)([(0,s.MZ)({attribute:"hide-delay",type:Number})],l.prototype,"hideDelay",void 0),l=(0,o.Cg)([(0,s.EM)("ha-tooltip")],l),e()}catch(t){e(t)}})},63543(t,e,a){a.a(t,async function(t,e){try{var o=a(28861),i=a(11467),r=a(82476),s=a(70366),n=t([s]);s=(n.then?(await n)():n)[0];const l="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z";class h extends s.U{willUpdate(t){super.willUpdate(t),this.label||this.placeholder||this.hasUpdated&&!t.has("_i18n")||(this.placeholder=this.i18n?.localize?.("ui.common.search")||"Search")}renderStartDefault(){return i.qy`<ha-svg-icon slot="start" .path=${l}></ha-svg-icon>`}constructor(){super(),this.withClear=!0,this.autocomplete=this.autocomplete||"off"}}h.styles=[...s.U.styles,i.AH`:host([appearance=outlined]) wa-input.no-label::part(base){height:var(--ha-input-search-height,40px);border-radius:var(--ha-input-search-border-radius,var(--ha-border-radius-md))}`],h=(0,o.Cg)([(0,r.EM)("ha-input-search")],h),e()}catch(t){e(t)}})},65304(t,e,a){class o{processMessage(t){if("removed"===t.type)for(const e of Object.keys(t.notifications))delete this.notifications[e];else this.notifications={...this.notifications,...t.notifications};return Object.values(this.notifications)}constructor(){this.notifications={}}}a.d(e,{},{V:(t,e)=>{const a=new o,i=t.subscribeMessage(t=>e(a.processMessage(t)),{type:"persistent_notification/subscribe"});return()=>{i.then(t=>t?.())}}})},88405(t,e,a){a.d(e,{},{Gw:async(t,e,a)=>t.callWS({...a,type:"tag/update",tag_id:e}),PC:"tag_scanned",VZ:async(t,e,a)=>t.callWS({type:"tag/create",tag_id:a,...e}),_R:async(t,e)=>t.callWS({type:"tag/delete",tag_id:e}),un:async t=>t.callWS({type:"tag/list"})})},64108(t,e,a){var o=a(30835),i=a(38563),r=a(84336);a.d(e,{},{E:(t,e,a)=>{const s=(0,r.H)(e);s&&!(0,o.d)(t)||(a?a():(0,i.OE)(s))}})},96309(t,e,a){var o=a(28861),i=a(73885),r=a(11467),s=a(5633),n=a(82476);a.d(e,{},{V:t=>{class e extends t{get scrollableElement(){return e.DEFAULT_SCROLLABLE_ELEMENT}firstUpdated(t){super.firstUpdated?.(t),this.scrollableElement&&this._updateScrollableState(this.scrollableElement),this._attachScrollableElement()}updated(t){super.updated?.(t),this._attachScrollableElement()}disconnectedCallback(){this._detachScrollableElement(),this._contentScrolled=!1,this._contentScrollable=!1,super.disconnectedCallback()}renderScrollableFades(t=!1){return r.qy` <div class=${(0,s.H)({"fade-top":!0,rounded:t,visible:this._contentScrolled})}></div> <div class=${(0,s.H)({"fade-bottom":!0,rounded:t,visible:this._contentScrollable})}></div> `}static get styles(){const t=Object.getPrototypeOf(this);var e;return[...void 0===(e=t?.styles??[])?[]:Array.isArray(e)?e:[e],r.AH`.fade-top,.fade-bottom{height:var(--ha-space-2);pointer-events:none;border-radius:var(--ha-border-radius-square);opacity:0;background:linear-gradient(to bottom, var(--ha-color-shadow-scrollable-fade), transparent);transition:opacity .18s ease-in-out;position:absolute;
1left:0;right:0}.fade-top{top:0}.fade-bottom{bottom:0;transform:rotate(180deg)}.fade-top.visible,.fade-bottom.visible{opacity:1}.fade-top.rounded,.fade-bottom.rounded{border-radius:var(--ha-card-border-radius,var(--ha-border-radius-lg));border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}.fade-top.rounded{border-top-left-radius:var(--ha-border-radius-square);border-top-right-radius:var(--ha-border-radius-square)}.fade-bottom.rounded{border-bottom-left-radius:var(--ha-border-radius-square);border-bottom-right-radius:var(--ha-border-radius-square)}`]}_attachScrollableElement(){const t=this.scrollableElement;t!==this._scrollTarget&&(this._detachScrollableElement(),t&&(this._scrollTarget=t,t.addEventListener("scroll",this._onScroll,{passive:!0}),this._resize.observe(t),this._updateScrollableState(t)))}_detachScrollableElement(){this._scrollTarget&&(this._scrollTarget.removeEventListener("scroll",this._onScroll),this._resize.unobserve?.(this._scrollTarget),this._scrollTarget=void 0)}_updateScrollableState(t){const e=parseFloat(getComputedStyle(t).getPropertyValue("--safe-area-inset-bottom"))||0,{scrollHeight:a=0,clientHeight:o=0,scrollTop:i=0}=t;this._contentScrollable=a-o>i+e+this.scrollFadeSafeAreaPadding}constructor(...t){super(...t),this._contentScrolled=!1,this._contentScrollable=!1,this._onScroll=t=>{const e=t.currentTarget;this._contentScrolled=(e.scrollTop??0)>this.scrollFadeThreshold,this._updateScrollableState(e)},this._resize=new i.P(this,{target:null,callback:t=>{const e=t[0]?.target;e&&this._updateScrollableState(e)}}),this.scrollFadeSafeAreaPadding=4,this.scrollFadeThreshold=4}}return e.DEFAULT_SCROLLABLE_ELEMENT=null,(0,o.Cg)([(0,n.wk)()],e.prototype,"_contentScrolled",void 0),(0,o.Cg)([(0,n.wk)()],e.prototype,"_contentScrollable",void 0),e}})},967(t,e,a){a(74423),a(18111),a(13579);var o=a(28861),i=a(82476);a.d(e,{},{E:t=>{class e extends t{connectedCallback(){super.connectedCallback(),this._checkSubscribed()}disconnectedCallback(){if(super.disconnectedCallback(),this.__unsubs){for(;this.__unsubs.length;){const t=this.__unsubs.pop();t instanceof Promise?t.then(t=>t()):t()}this.__unsubs=void 0}}updated(t){if(super.updated(t),t.has("hass"))this._checkSubscribed();else if(this.hassSubscribeRequiredHostProps)for(const e of t.keys())if(this.hassSubscribeRequiredHostProps.includes(e))return void this._checkSubscribed()}hassSubscribe(){return[]}_checkSubscribed(){void 0===this.__unsubs&&this.isConnected&&void 0!==this.hass&&!this.hassSubscribeRequiredHostProps?.some(t=>void 0===this[t])&&(this.__unsubs=this.hassSubscribe())}}return(0,o.Cg)([(0,i.MZ)({attribute:!1})],e.prototype,"hass",void 0),e}})},50797(t,e,a){a.a(t,async function(t,o){try{a.r(e);a(18111),a(22489),a(20116),a(61701);var i=a(28861),r=a(11467),s=a(82476),n=a(47749),l=a(49302),h=a(69595),d=a(96007),c=a(50933),p=a(32213),u=a(53290),g=a(88405),v=a(24936),b=a(83408),f=a(967),m=a(88999),y=a(68304),w=a(49094),_=(a(39915),t([h,d,c,p,b]));[h,d,c,p,b]=_.then?(await _)():_;const x="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",C="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z",k="M19 19V15H17V19H15L18 22L21 19H19M12.1 19H11V21H9V19H7C5.9 19 5 18.1 5 17V15H3V13H5V11H3V9H5V7C5 5.9 5.9 5 7 5H9V3H11V5H13V3H15V5H17C18.1 5 19 5.9 19 7V9H21V11H19V12.1C18.7 12 18.3 12 18 12S17.3 12 17 12.1V7H7V17H12.1C12 17.3 12 17.7 12 18S12 18.7 12.1 19M9 15H12.8C13.3 14.1 14.1 13.3 15 12.8V9H9V15M11 11H13V13H11V11Z",M="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",$="M12,2A2,2 0 0,1 14,4C14,4.74 13.6,5.39 13,5.73V7H14A7,7 0 0,1 21,14H22A1,1 0 0,1 23,15V18A1,1 0 0,1 22,19H21V20A2,2 0 0,1 19,22H5A2,2 0 0,1 3,20V19H2A1,1 0 0,1 1,18V15A1,1 0 0,1 2,14H3A7,7 0 0,1 10,7H11V5.73C10.4,5.39 10,4.74 10,4A2,2 0 0,1 12,2M7.5,13A2.5,2.5 0 0,0 5,15.5A2.5,2.5 0 0,0 7.5,18A2.5,2.5 0 0,0 10,15.5A2.5,2.5 0 0,0 7.5,13M16.5,13A2.5,2.5 0 0,0 14,15.5A2.5,2.5 0 0,0 16.5,18A2.5,2.5 0 0,0 19,15.5A2.5,2.5 0 0,0 16.5,13Z";class S extends((0,f.E)(r.WF)){get _canWriteTags(){return this.hass.auth.external?.config.canWriteTag}firstUpdated(t){super.firstUpdated(t),this._fetchTags()}hassSubscribe(){return[this.hass.connection.subscribeEvents(t=>{const e=this._tags.find(e=>e.id===t.data.tag_id);e?(e.last_scanned=t.time_fired,this._tags=[...this._tags]):this._fetchTags()},g.PC)]}render(){return r.qy` <hass-tabs-subpage-data-table .hass=${this.hass} .narrow=${this.narrow} back-path="/config/connectivity" .route=${this.route} .tabs=${y.B.tags} .columns=${this._columns(this.hass.localize)} .data=${this._data(this._tags)} .noDataText=${this.hass.localize("ui.panel.config.tag.no_tags")} .filter=${this._filter}
1 @search-changed=${this._handleSearchChange} has-fab clickable @row-click=${this._editTag} id="id"> <ha-icon-button slot="toolbar-icon" @click=${this._showHelp} .label=${this.hass.localize("ui.common.help")} .path=${C}></ha-icon-button> <ha-button slot="fab" size="l" @click=${this._addTag}> <ha-svg-icon slot="start" .path=${M}></ha-svg-icon> ${this.hass.localize("ui.panel.config.tag.add_tag")} </ha-button> </hass-tabs-subpage-data-table> `}_showHelp(){(0,v.showAlertDialog)(this,{title:this.hass.localize("ui.panel.config.tag.caption"),text:r.qy` <p> ${this.hass.localize("ui.panel.config.tag.detail.usage",{companion_link:r.qy`<a href="https://companion.home-assistant.io/" target="_blank" rel="noreferrer">${this.hass.localize("ui.panel.config.tag.detail.companion_apps")}</a>`})} </p> <p> <a href=${(0,m.o)(this.hass,"/integrations/tag/")} target="_blank" rel="noreferrer"> ${this.hass.localize("ui.panel.config.tag.learn_more")} </a> </p> `})}async _fetchTags(){this._tags=await(0,g.un)(this.hass)}_openWrite(t){this.hass.auth.external.fireMessage({type:"tag/write",payload:{name:t.name||null,tag:t.id}})}_addTag(){this._openDialog()}_openDialog(t){(0,w.p)(this,{entry:t,openWrite:this._canWriteTags?t=>this._openWrite(t):void 0,createEntry:(t,e)=>this._createTag(t,e),updateEntry:t?e=>this._updateTag(t,e):void 0,removeEntry:t?()=>this._removeTag(t):void 0})}async _createTag(t,e){const a=await(0,g.VZ)(this.hass,t,e);return this._tags=[...this._tags,a],a}async _updateTag(t,e){const a=await(0,g.Gw)(this.hass,t.id,e);return this._tags=this._tags.map(e=>e.id===t.id?a:e),a}async _removeTag(t){if(!await(0,v.dk)(this,{title:this.hass.localize("ui.panel.config.tag.confirm_delete_title"),text:this.hass.localize("ui.panel.config.tag.confirm_delete",{tag:t.name||t.id}),dismissText:this.hass.localize("ui.common.cancel"),confirmText:this.hass.localize("ui.common.delete"),destructive:!0}))return!1;try{return await(0,g._R)(this.hass,t.id),this._tags=this._tags.filter(e=>e.id!==t.id),!0}catch(t){return!1}}_handleSearchChange(t){this._filter=t.detail.value}constructor(...t){super(...t),this.isWide=!1,this.narrow=!1,this._tags=[],this._filter="",this._columns=(0,n.A)(t=>{const e={icon:{title:"",moveable:!1,showNarrow:!0,label:t("ui.panel.config.tag.headers.icon"),type:"icon",template:t=>r.qy`<tag-image .tag=${t}></tag-image>`},display_name:{title:t("ui.panel.config.tag.headers.name"),main:!0,sortable:!0,filterable:!0,flex:2},id:{title:t("ui.panel.config.tag.headers.tag_id"),sortable:!0,filterable:!0,defaultHidden:!0},last_scanned_datetime:{title:t("ui.panel.config.tag.headers.last_scanned"),sortable:!0,direction:"desc",template:t=>r.qy` ${t.last_scanned_datetime?r.qy`<ha-relative-time .datetime=${t.last_scanned_datetime} capitalize></ha-relative-time>`:this.hass.localize("ui.panel.config.tag.never_scanned")} `}};return this._canWriteTags&&(e.write={title:"",label:t("ui.panel.config.tag.headers.write"),type:"icon-button",showNarrow:!0,template:t=>r.qy`<ha-icon-button .tag=${t} @click=${this._handleWriteClick} .label=${this.hass.localize("ui.panel.config.tag.write")} .path=${k}></ha-icon-button>`}),e.actions={title:"",label:t("ui.panel.config.generic.headers.actions"),showNarrow:!0,moveable:!1,hideable:!1,type:"overflow-menu",template:t=>r.qy` <ha-icon-overflow-menu narrow .items=${[{label:this.hass.localize("ui.panel.config.tag.create_automation"),path:$,action:()=>this._createAutomation(t)},{label:this.hass.localize("ui.common.delete"),path:x,action:()=>this._removeTag(t),warning:!0}]}> </ha-icon-overflow-menu> `},e}),this._data=(0,n.A)(t=>t.map(t=>({...t,display_name:t.name||t.id,last_scanned_datetime:t.last_scanned?new Date(t.last_scanned):null}))),this._handleWriteClick=t=>this._openWrite(t.currentTarget.tag),this._createAutomation=t=>{const e={alias:this.hass.localize("ui.panel.config.tag.automation_title",{name:t.name||t.id}),trigger:[{trigger:"tag",tag_id:t.id}]};(0,u.mX)(e)},this._editTag=t=>{const e=this._tags.find(e=>e.id===t.detail.id);this._openDialog(e)}}}(0,i.Cg)([(0,s.MZ)({attribute:!1})],S.prototype,"hass",void 0),(0,i.Cg)([(0,s.MZ)({attribute:"is-wide",type:Boolean})],S.prototype,"isWide",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean})],S.prototype,"narrow",void 0),(0,i.Cg)([(0,s.MZ)({attribute:!1})],S.prototype,"route",void 0),(0,i.Cg)([(0,s.wk)()],S.prototype,"_tags",void 0),(0,i.Cg)([(0,s.wk)(),(0,l.I)({storage:"sessionStorage",key:"tags-table-search",state:!0,subscribe:!1})],S.prototype,"_filter",void 0),S=(0,i.Cg)([(0,s.EM)("ha-config-tags")],S),a.d(e,{HaConfigTags:()=>S}),o()}catch(t){o(t)}})},49094(t,e,a){var o=a(62228);const i=()=>Promise.all([a.e(71446),a.e(16959)]).then(a.bind(a,27202));a.d(e,{},{p:(t,e)=>{(0,o.r)(t,"show-dialog",{dialogTag:"dialog-tag-detail",dialogImport:i,dialogParams:e})}})},39915(t,e,a){var o=a(28861),i=a(11467),r=a(82476);a(47551);class s extends i.WF{updated(){const t=this.tag?.last_scanned_datetime?(new Date).getTime()-this.tag.last_scanned_datetime.getTime():void 0;t&&t<1e3?(this._timeout?(clearTimeout(this._timeout),this._timeout=void 0,this.classList.remove("just-scanned"),requestAnimationFrame(()=>this.classList.add("just-scanned"))):this.classList.add("just-scanned"),this._timeout=window.setTimeout(()=>{this.classList.remove("just-scanned"),this._timeout=void 0},1e4)):(!t||t>1e4)&&(clearTimeout(this._timeout),this._timeout=void 0,this.classList.remove("just-scanned"))}render(){return this.tag?i.qy`<div class="container"> <div class="image"> <ha-svg-icon .path=${"M18,6H13A2,2 0 0,0 11,8V10.28C10.41,10.62 10,11.26 10,12A2,2 0 0,0 12,14C13.11,14 14,13.1 14,12C14,11.26 13.6,10.62 13,10.28V8H16V16H8V8H10V6H8L6,6V18H18M20,20H4V4H20M20,2H4A2,2 0 0,0 2,4V20A2,2 0 0,0 4,22H20C21.11,22 22,21.1 22,20V4C22,2.89 21.11,2 20,2Z"}></ha-svg-icon> </div> </div>`:i.s6}}s.styles=i.AH`.image{border-radius:var(--ha-border-radius-circle);background-size:cover;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.container{border-radius:var(--ha-border-radius-circle);width:40px;height:40px}:host(.just-scanned) .container{animation:10s glow}@keyframes glow{0%{box-shadow:0px 0px 24px 0px rgba(var(--rgb-primary-color), 0)}10%{box-shadow:0px 0px 24px 0px rgba(var(--rgb-primary-color), 1)}to{box-shadow:0px 0px 24px 0px rgba(var(--rgb-primary-color), 0)}}`,(0,o.Cg)([(0,r.MZ)({attribute:!1})],s.prototype,"tag",void 0),s=(0,o.Cg)([(0,r.EM)("tag-image")],s)},7578(t,e,a){var o=a(11467);const i=o.AH`button.link{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;outline:none;padding:0;text-decoration:underline}`,r=o.AH`:host{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-m);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}app-header div[sticky]{height:48px}app-toolbar [main-title]{margin-left:20px;margin-inline-start:20px;margin-inline-end:initial}
1.header{transition:box-shadow .2s linear, width var(--ha-animation-duration-normal) ease, padding-left var(--ha-animation-duration-normal) ease, padding-right var(--ha-animation-duration-normal) ease}@media (prefers-reduced-motion:reduce){.header{transition:box-shadow .2s linear}}h1{font-family:var(--ha-font-family-heading);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-2xl);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-condensed)}h2{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);white-space:nowrap;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal);overflow:hidden}h3{font-family:var(--ha-font-family-body);-webkit-font-smoothing:var(--ha-font-smoothing);-moz-osx-font-smoothing:var(--ha-moz-osx-font-smoothing);font-size:var(--ha-font-size-l);font-weight:var(--ha-font-weight-normal);line-height:var(--ha-line-height-normal)}a{color:var(--primary-color)}.secondary{color:var(--secondary-text-color)}.error,.warning{color:var(--error-color)}${i} .card-actions a{text-decoration: none;}.card-actions .warning{--mdc-theme-primary:var(--error-color)}.layout.horizontal,.layout.vertical{display:flex}.layout.inline{display:inline-flex}.layout.horizontal{flex-direction:row}.layout.vertical{flex-direction:column}.layout.wrap{flex-wrap:wrap}.layout.no-wrap{flex-wrap:nowrap}.layout.center,.layout.center-center{align-items:center}.layout.bottom{align-items:flex-end}.layout.center-justified,.layout.center-center{justify-content:center}.flex{flex:1e-9px}.flex-auto{flex:auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`,s=o.AH`ha-dialog,ha-adaptive-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:min(600px, 95vw);--justify-action-buttons:space-between;--dialog-container-padding:var(--safe-area-inset-top,0) var(--safe-area-inset-right,0) var(--safe-area-inset-bottom,0) var(--safe-area-inset-left,0);--dialog-surface-padding:0px}ha-dialog .form,ha-adaptive-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media (width<=450px),(height<=500px){ha-dialog,ha-adaptive-dialog{--mdc-dialog-min-width:100vw;--mdc-dialog-max-width:100vw;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100svh;--dialog-container-padding:0px;--dialog-surface-padding:var(--safe-area-inset-top,0) var(--safe-area-inset-right,0) var(--safe-area-inset-bottom,0) var(--safe-area-inset-left,0);--vertical-align-dialog:flex-end}ha-dialog{--ha-dialog-border-radius:var(--ha-border-radius-square)}}.error{color:var(--error-color)}`,n=o.AH`ha-dialog,ha-adaptive-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc(100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(--safe-area-inset-y,0px));--ha-dialog-max-height:calc(100svh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var(--safe-area-inset-y,0px))}@media (width<=450px),(height<=500px){ha-dialog,ha-adaptive-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100svh;--ha-dialog-max-height:100svh}}`,l=o.AH`.ha-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.ha-scrollbar::-webkit-scrollbar-thumb{border-radius:var(--ha-border-radius-sm);background:var(--scrollbar-thumb-color)}.ha-scrollbar{scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin;overflow-y:auto}`;o.AH`body{background-color:var(--primary-background-color);color:var(--primary-text-color);width:100vw;height:calc(100vh - 32px)}`;a.d(e,{},{RF:r,dp:l,kO:n,nA:s,og:i})},95921(t,e,a){a.d(e,{},{i:async()=>{await Promise.all([a.e(69306),a.e(52396)]).then(a.bind(a,77921))}})},88999(t,e,a){a(74423);a.d(e,{},{o:(t,e)=>`https://${t.config.version.includes("b")?"rc":t.config.version.includes("dev")?"next":"www"}.home-assistant.io${e}`})},20455(t,e,a){var o=a(37184);a.d(e,{},{V:t=>!!t&&o.n})},37184(t,e,a){const o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);a.d(e,{},{n:o})}};
2//# sourceMappingURL=90977.c6040ffe9e5dd6a5.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.