Initial Commit

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

No files matched your search

@@ -0,0 +1,19 @@
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["9452"],{49672:function(e,t,i){i.d(t,{p:function(){return a}});i(19083),i(61006);const a=(e,t)=>e&&e.config.components.includes(t)},47899:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{Bt:function(){return d}});i(19083);var o=i(16485),n=i(88977),l=i(50177),r=e([o]);o=(r.then?(await r)():r)[0];const s=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],d=e=>e.first_weekday===l.FS.language?"weekInfo"in Intl.Locale.prototype?new Intl.Locale(e.language).weekInfo.firstDay%7:(0,n.L)(e.language)%7:s.includes(e.first_weekday)?s.indexOf(e.first_weekday):1;a()}catch(s){a(s)}}))},52258:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{G:function(){return d}});var o=i(16485),n=i(27486),l=i(66045),r=e([o,l]);[o,l]=r.then?(await r)():r;const s=(0,n.Z)((e=>new Intl.RelativeTimeFormat(e.language,{numeric:"auto"}))),d=(e,t,i,a=!0)=>{const o=(0,l.W)(e,i,t);return a?s(t).format(o.value,o.unit):Intl.NumberFormat(t.language,{style:"unit",unit:o.unit,unitDisplay:"long"}).format(Math.abs(o.value))};a()}catch(s){a(s)}}))},90842:function(e,t,i){i.d(t,{t:function(){return n}});i(92745),i(77439),i(19423),i(39527),i(41360),i(88972);class a{constructor(e=window.localStorage){this.storage=void 0,this._storage={},this._listeners={},this.storage=e,e===window.localStorage&&window.addEventListener("storage",(e=>{e.key&&this.hasKey(e.key)&&(this._storage[e.key]=e.newValue?JSON.parse(e.newValue):e.newValue,this._listeners[e.key]&&this._listeners[e.key].forEach((t=>t(e.oldValue?JSON.parse(e.oldValue):e.oldValue,this._storage[e.key]))))}))}addFromStorage(e){if(!this._storage[e]){const t=this.storage.getItem(e);t&&(this._storage[e]=JSON.parse(t))}}subscribeChanges(e,t){return this._listeners[e]?this._listeners[e].push(t):this._listeners[e]=[t],()=>{this.unsubscribeChanges(e,t)}}unsubscribeChanges(e,t){if(!(e in this._listeners))return;const i=this._listeners[e].indexOf(t);-1!==i&&this._listeners[e].splice(i,1)}hasKey(e){return e in this._storage}getValue(e){return this._storage[e]}setValue(e,t){const i=this._storage[e];this._storage[e]=t;try{void 0===t?this.storage.removeItem(e):this.storage.setItem(e,JSON.stringify(t))}catch(a){}finally{this._listeners[e]&&this._listeners[e].forEach((e=>e(i,t)))}}}const o={},n=e=>t=>{const i=e.storage||"localStorage";let n;i&&i in o?n=o[i]:(n=new a(window[i]),o[i]=n);const l=String(t.key),r=e.key||String(t.key),s=t.initializer?t.initializer():void 0;n.addFromStorage(r);const d=!1!==e.subscribe?e=>n.subscribeChanges(r,((i,a)=>{e.requestUpdate(t.key,i)})):void 0,c=()=>n.hasKey(r)?e.deserializer?e.deserializer(n.getValue(r)):n.getValue(r):s;return{kind:"method",placement:"prototype",key:t.key,descriptor:{set(i){((i,a)=>{let o;e.state&&(o=c()),n.setValue(r,e.serializer?e.serializer(a):a),e.state&&i.requestUpdate(t.key,o)})(this,i)},get(){return c()},enumerable:!0,configurable:!0},finisher(i){if(e.state&&e.subscribe){const e=i.prototype.connectedCallback,t=i.prototype.disconnectedCallback;i.prototype.connectedCallback=function(){e.call(this),this[`__unbsubLocalStorage${l}`]=null==d?void 0:d(this)},i.prototype.disconnectedCallback=function(){var e;t.call(this),null===(e=this[`__unbsubLocalStorage${l}`])||void 0===e||e.call(this),this[`__unbsubLocalStorage${l}`]=void 0}}e.state&&i.createProperty(t.key,Object.assign({noAccessor:!0},e.stateOptions))}}}},66045:function(e,t,i){i.a(e,(async function(e,a){try{i.d(t,{W:function(){return p}});i(19423);var o=i(13809),n=i(29558),l=i(57829),r=i(47899),s=e([r]);r=(s.then?(await s)():s)[0];const c=1e3,h=60,u=60*h;function p(e,t=Date.now(),i,a={}){const s=Object.assign(Object.assign({},v),a||{}),d=(+e-+t)/c;if(Math.abs(d)<s.second)return{value:Math.round(d),unit:"second"};const p=d/h;if(Math.abs(p)<s.minute)return{value:Math.round(p),unit:"minute"};const m=d/u;if(Math.abs(m)<s.hour)return{value:Math.round(m),unit:"hour"};const b=new Date(e),f=new Date(t);b.setHours(0,0,0,0),f.setHours(0,0,0,0);const g=(0,o.j)(b,f);if(0===g)return{value:Math.round(m),unit:"hour"};if(Math.abs(g)<s.day)return{value:g,unit:"day"};const k=(0,r.Bt)(i),y=(0,n.z)(b,{weekStartsOn:k}),_=(0,n.z)(f,{weekStartsOn:k}),x=(0,l.p)(y,_);if(0===x)return{value:g,unit:"day"};if(Math.abs(x)<s.week)return{value:x,unit:"week"};const w=b.getFullYear()-f.getFullYear(),C=12*w+b.getMonth()-f.getMonth();return 0===C?{value:x,unit:"week"}:Math.abs(C)<s.month||0===w?{value:C,unit:"month"}:{value:Math.round(w),unit:"year"}}const v={second:45,minute:45,hour:22,day:5,week:4,month:11};a()}catch(d){a(d)}}))},6889:function(e,t,i){var a=i(73577),o=i(72621),n=(i(71695),i(47021),i(72629)),l=i(57243),r=i(50778);let s,d,c=e=>e;(0,a.Z)([(0,r.Mo)("ha-filter-chip")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({type:Boolean,reflect:!0,attribute:"no-leading-icon"})],key:"noLeadingIcon",value(){return!1}},{kind:"field",static:!0,key:"styles",value(){rLine truncated
var(--rgb-primary-text-color),
0.15
)}`))]}},{kind:"method",key:"renderLeadingIcon",value:function(){return this.noLeadingIcon?(0,l.dy)(d||(d=c``)):(0,o.Z)(i,"renderLeadingIcon",this,3)([])}}]}}),n.r)},26299:function(e,t,i){var a=i("73577"),o=i("72621"),n=(i("19083"),i("71695"),i("92745"),i("52805"),i("61893"),i("40251"),i("61006"),i("81804"),i("22139"),i("39527"),i("99790"),i("67670"),i("41360"),i("13334"),i("34595"),i("36993"),i("47021"),i("12582")),l=i("57243"),r=i("50778"),s=i("35359"),d=i("20552"),c=i("46799"),h=i("27486"),u=i("82283"),p=i("11297"),v=i("32770"),m=i("56587");const b=(e,t)=>{const i={};for(const a of e){const e=t(a);e in i?i[e].push(a):i[e]=[a]}return i};var f=i("66193"),g=i("8001"),k=(i("76418"),i("10508"),i("45930"),i("72700"),i("8038"),i("71513"),i("75656"),i("50100"),i("18084"),i("75351"));let y;const _=()=>(y||(y=(0,k.Ud)(new Worker(new URL(i.p+i.u("6522"),i.b)))),y);var x=i("30137");let w,C,$,L,M,A,H,V,S,O,B,z,F,T,R,Z,D,P=e=>e;const G="zzzzz_undefined";(0,a.Z)([(0,r.Mo)("ha-data-table")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"localizeFunc",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"narrow",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:Object})],key:"columns",value(){return{}}},{kind:"field",decorators:[(0,r.Cb)({type:Array})],key:"data",value(){return[]}},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"selectable",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:Boolean})],key:"clickable",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({attribute:"has-fab",type:Boolean})],key:"hasFab",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"appendRow",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean,attribute:"auto-height"})],key:"autoHeight",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:String})],key:"id",value(){return"id"}},{kind:"field",decorators:[(0,r.Cb)({attribute:!1,type:String})],key:"noDataText",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1,type:String})],key:"searchLabel",value:void 0},{kind:"field",decorators:[(0,r.Cb)({type:Boolean,attribute:"no-label-float"})],key:"noLabelFloat",value(){return!1}},{kind:"field",decorators:[(0,r.Cb)({type:String})],key:"filter",value(){return""}},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"groupColumn",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"groupOrder",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"sortColumn",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"sortDirection",value(){return null}},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"initialCollapsedGroups",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"hiddenColumns",value:void 0},{kind:"field",decorators:[(0,r.Cb)({attribute:!1})],key:"columnOrder",value:void 0},{kind:"field",decorators:[(0,r.SB)()],key:"_filterable",value(){return!1}},{kind:"field",decorators:[(0,r.SB)()],key:"_filter",value(){return""}},{kind:"field",decorators:[(0,r.SB)()],key:"_filteredData",value(){return[]}},{kind:"field",decorators:[(0,r.SB)()],key:"_headerHeight",value(){return 0}},{kind:"field",decorators:[(0,r.IO)("slot[name='header']")],key:"_header",value:void 0},{kind:"field",decorators:[(0,r.SB)()],key:"_collapsedGroups",value(){return[]}},{kind:"field",key:"_checkableRowsCount",value:void 0},{kind:"field",key:"_checkedRows",value(){return[]}},{kind:"field",key:"_sortColumns",value(){return{}}},{kind:"field",key:"_curRequest",value(){return 0}},{kind:"field",key:"_lastUpdate",value(){return 0}},{kind:"field",decorators:[(0,u.i)(".scroller")],key:"_savedScrollPos",value:void 0},{kind:"field",key:"_debounceSearch",value(){return(0,m.D)((e=>{this._filter=e}),100,!1)}},{kind:"method",key:"clearSelection",value:function(){this._checkedRows=[],this._checkedRowsChanged()}},{kind:"method",key:"selectAll",value:function(){this._checkedRows=this._filteredData.filter((e=>!1!==e.selectable)).map((e=>e[this.id])),this._checkedRowsChanged()}},{kind:"method",key:"select",value:function(e,t){t&&(this._checkedRows=[]),e.forEach((e=>{const t=this._filteredData.find((t=>t[this.id]===e));!1===(null==t?void 0:t.selectable)||this._checkedRows.includes(e)||this._checkedRows.push(e)})),this._checkedRowsChanged()}},{kind:"method",key:"unselect",value:function(e){e.forEach((e=>{const t=this._checkedRows.indexOf(e);t>-1&&this._checkedRows.splice(t,1)})),this._checkedRowsChanged()}},{kind:"method",key:"connectedCallback",value:function(){(0,o.Z)(i,"connectedCallback",this,3)([]),this._filteredData.length&&(this._filteredData=[...this._filteredData])}},{kind:"method",key:"firstUpdated",value:function(){this.updateComplete.then((()=>this._calcTableHeight()))}},{kind:"method",key:"updated",value:function(){const e=this.ren Line truncated
.mdc-data-table__row--selected
):hover{background-color:rgba(var(--rgb-primary-text-color),.04)}.mdc-data-table__header-cell{color:var(--primary-text-color)}.mdc-data-table__cell{color:var(--primary-text-color)}.mdc-data-table__header-row{height:56px;display:flex;border-bottom:1px solid var(--divider-color);overflow:auto}.mdc-data-table__header-row::-webkit-scrollbar{display:none}.mdc-data-table__header-row{-ms-overflow-style:none;scrollbar-width:none}.mdc-data-table__cell,.mdc-data-table__header-cell{padding-right:16px;padding-left:16px;min-width:150px;align-self:center;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;box-sizing:border-box}.mdc-data-table__cell.mdc-data-table__cell--flex{display:flex;overflow:initial}.mdc-data-table__cell.mdc-data-table__cell--icon{overflow:initial}.mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox{padding-left:16px;padding-right:0;padding-inline-start:16px;padding-inline-end:initial;width:60px;min-width:60px}.mdc-data-table__table{height:100%;width:100%;border:0;white-space:nowrap;position:relative}.mdc-data-table__cell{font-family:Roboto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:.875rem;line-height:1.25rem;font-weight:400;letter-spacing:.0178571429em;text-decoration:inherit;text-transform:inherit;flex-grow:0;flex-shrink:0}.mdc-data-table__cell a{color:inherit;text-decoration:none}.mdc-data-table__cell--numeric{text-align:var(--float-end)}.mdc-data-table__cell--icon{color:var(--secondary-text-color);text-align:center}.mdc-data-table__cell--icon,.mdc-data-table__header-cell--icon{min-width:64px;flex:0 0 64px!important}.mdc-data-table__cell--icon img{width:24px;height:24px}.mdc-data-table__header-cell.mdc-data-table__header-cell--icon{text-align:center}.mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:hover,.mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:not(
.not-sorted
){text-align:var(--float-start)}.mdc-data-table__cell--icon:first-child ha-domain-icon,.mdc-data-table__cell--icon:first-child ha-icon,.mdc-data-table__cell--icon:first-child ha-service-icon,.mdc-data-table__cell--icon:first-child ha-state-icon,.mdc-data-table__cell--icon:first-child ha-svg-icon,.mdc-data-table__cell--icon:first-child img{margin-left:8px;margin-inline-start:8px;margin-inline-end:initial}.mdc-data-table__cell--icon:first-child state-badge{margin-right:-8px;margin-inline-end:-8px;margin-inline-start:initial}.mdc-data-table__cell--icon-button,.mdc-data-table__cell--overflow-menu,.mdc-data-table__header-cell--icon-button,.mdc-data-table__header-cell--overflow-menu{min-width:64px;flex:0 0 64px!important;padding:8px}.mdc-data-table__cell--icon-button,.mdc-data-table__header-cell--icon-button{min-width:56px;width:56px}.mdc-data-table__cell--icon-button,.mdc-data-table__cell--overflow-menu{color:var(--secondary-text-color);text-overflow:clip}.mdc-data-table__cell--icon-button:first-child,.mdc-data-table__cell--icon-button:last-child,.mdc-data-table__header-cell--icon-button:first-child,.mdc-data-table__header-cell--icon-button:last-child{width:64px}.mdc-data-table__cell--icon-button:first-child,.mdc-data-table__cell--overflow-menu:first-child,.mdc-data-table__header-cell--icon-button:first-child,.mdc-data-table__header-cell--overflow-menu:first-child{padding-left:16px;padding-inline-start:16px;padding-inline-end:initial}.mdc-data-table__cell--icon-button:last-child,.mdc-data-table__cell--overflow-menu:last-child,.mdc-data-table__header-cell--icon-button:last-child,.mdc-data-table__header-cell--overflow-menu:last-child{padding-right:16px;padding-inline-end:16px;padding-inline-start:initial}.mdc-data-table__cell--overflow,.mdc-data-table__cell--overflow-menu,.mdc-data-table__header-cell--overflow,.mdc-data-table__header-cell--overflow-menu{overflow:initial}.mdc-data-table__cell--icon-button a{color:var(--secondary-text-color)}.mdc-data-table__header-cell{font-family:Roboto,sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:.875rem;line-height:1.375rem;font-weight:500;letter-spacing:.0071428571em;text-decoration:inherit;text-transform:inherit;text-align:var(--float-start)}.mdc-data-table__header-cell--numeric{text-align:var(--float-end)}.mdc-data-table__header-cell--numeric.sortable:hover,.mdc-data-table__header-cell--numeric.sortable:not(.not-sorted){text-align:var(--float-start)}.group-header{padding-top:12px;height:var(--data-table-row-height,52px);padding-left:12px;padding-inline-start:12px;padding-inline-end:initial;width:100%;font-weight:500;display:flex;align-items:center;cursor:pointer;background-color:var(--primary-background-color)}.group-header ha-icon-button{transition:transform .2s ease}.group-header ha-icon-button.collapsed{transform:rotate(180deg)}:host{display:block}.mdc-data-table{display:block;border-width:var(--data-table-border-width,1px);height:100%}.mdc-data-table__header-cell{overflow:hidden;position:relative}.mdc-data-table__header-cell span{position:relative;left:0px;inset-inline-start:0px;inset-inline-end:initial}.mdc-data-table__header-cell.sortable{cursor:pointer}.mdc-data-table__header-cell>*{transition:var(--float-start) .2s ease}.mdc-data-table__header-cell ha-svg-icon{top:-3px;position:absolute}.mdc-data-table__header-cell.not-sorted ha-svg-icon{left:-20px;inset-inline-start:-20px;inset-inline-end:initial}.mdc-data-table__header-cell.sortable.not-sorted:hover span,.mdc-data-table__header-cell.sortable:not(.not-sorted) span{left:24px;inset-inline-start:24px;inset-inline-end:initial}.mdc-data-table__header-cell.sortable:hover.not-sorted ha-svg-icon,.mdc-data-table__header-cell.sortable:not(.not-sorted) ha-svg-icon{left:12px;inset-inline-start:12px;inset-inline-end:initial}.table-header{border-bottom:1px solid var(--divider-color)}search-input{display:block;flex:1;--mdc-text-field-fill-color:var(--sidebar-background-color);--mdc-text-field-idle-line-color:transparent}slot[name=header]{display:block}.center{text-align:center}.secondary{color:var(--secondary-text-color)}.scroller{height:calc(100% - 57px);overflow:overlay!important}.mdc-data-table__table.auto-height .scroller{overflow-y:hidden!important}.grows{flex-grow:1;flex-shrink:1}.forceLTR{direction:ltr}.clickable{cursor:pointer}lit-virtualizer{contain:size layout!important;overscroll-behavior:contain}`))]}}]}}),l.oi)},90170:function(e,t,i){i.d(t,{m:function(){return n}});i(71695),i(40251),i(47021);var a=i(11297);const o=()=>i.e("6849").then(i.bind(i,62083)),n=(e,t)=>{(0,a.B)(e,"show-dialog",{dialogTag:"dialog-data-table-settings",dialogImport:o,dialogParams:t})}},17949:function(e,t,i){i.r(t);var a=i(73577),o=(i(71695),i(47021),i(57243)),n=i(50778),l=i(35359),r=i(11297);i(59897),i(10508);let s,d,c,h,u=e=>e;const p={info:"M11,9H13V7H11M12,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,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,1 Line truncated
100vw - env(safe-area-inset-right) - env(safe-area-inset-left)
);--mdc-dialog-max-width:calc(
100vw - env(safe-area-inset-right) - env(safe-area-inset-left)
);--mdc-dialog-min-height:100%;--mdc-dialog-max-height:100%;--vertical-align-dialog:flex-end;--ha-dialog-border-radius:0;--dialog-content-padding:0}.filter-dialog-content{height:calc(100vh - 1px - 61px - var(--header-height));display:flex;flex-direction:column}#group-by-anchor,#sort-by-anchor,ha-md-button-menu ha-assist-chip{--md-assist-chip-trailing-space:8px}`))}}]}}),(0,c.U)(n.oi));t()}catch(u){t(u)}}))},32422:function(e,t,i){var a=i("73577"),o=i("72621"),n=(i("19083"),i("71695"),i("61006"),i("39527"),i("99790"),i("67670"),i("13334"),i("47021"),i("57243")),l=i("50778"),r=i("35359"),s=i("27486"),d=i("82283"),c=(i("92500"),i("89654"),i("10508"),i("20552")),h=i("19799"),u=i("23111");let p,v,m,b,f=e=>e,g=((0,a.Z)([(0,l.Mo)("ha-ripple")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",key:"attachableTouchController",value(){return new h.J(this,this._onTouchControlChange.bind(this))}},{kind:"method",key:"attach",value:function(e){(0,o.Z)(i,"attach",this,3)([e]),this.attachableTouchController.attach(e)}},{kind:"method",key:"detach",value:function(){(0,o.Z)(i,"detach",this,3)([]),this.attachableTouchController.detach()}},{kind:"field",key:"_handleTouchEnd",value(){return()=>{this.disabled||(0,o.Z)(i,"endPressAnimation",this,3)([])}}},{kind:"method",key:"_onTouchControlChange",value:function(e,t){null==e||e.removeEventListener("touchend",this._handleTouchEnd),null==t||t.addEventListener("touchend",this._handleTouchEnd)}},{kind:"field",static:!0,key:"styles",value(){return[...(0,o.Z)(i,"styles",this),(0,n.iv)(p||(p=f`:host{--md-ripple-hover-opacity:var(--ha-ripple-hover-opacity, 0.08);--md-ripple-pressed-opacity:var(--ha-ripple-pressed-opacity, 0.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))
)}`))]}}]}}),u.M),e=>e);(0,a.Z)([(0,l.Mo)("ha-tab")],(function(e,t){return{F:class extends t{constructor(...t){super(...t),e(this)}},d:[{kind:"field",decorators:[(0,l.Cb)({type:Boolean,reflect:!0})],key:"active",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,reflect:!0})],key:"narrow",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)()],key:"name",value:void 0},{kind:"method",key:"render",value:function(){return(0,n.dy)(v||(v=g` <div tabindex="0" role="tab" aria-selected="${0}" aria-label="${0}" @keydown="${0}"> ${0} <span class="name">${0}</span> <ha-ripple></ha-ripple> </div> `),this.active,(0,c.o)(this.name),this._handleKeyDown,this.narrow?(0,n.dy)(m||(m=g`<slot name="icon"></slot>`)):"",this.name)}},{kind:"method",key:"_handleKeyDown",value:function(e){"Enter"===e.key&&e.target.click()}},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(b||(b=g`div{padding:0 32px;display:flex;flex-direction:column;text-align:center;box-sizing:border-box;align-items:center;justify-content:center;width:100%;height:var(--header-height);cursor:pointer;position:relative;outline:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host([active]){color:var(--primary-color)}:host(:not([narrow])[active]) div{border-bottom:2px solid var(--primary-color)}:host([narrow]){min-width:0;display:flex;justify-content:center;overflow:hidden}:host([narrow]) div{padding:0 4px}div:focus-visible:before{position:absolute;display:block;content:"";inset:0;background-color:var(--secondary-text-color);opacity:.08}`))}}]}}),n.oi);var k=i("66193"),y=(i("36993"),i("24785")),_=i("49672");const x=(e,t)=>!t.component||(0,y.r)(t.component).some((t=>(0,_.p)(e,t))),w=(e,t)=>!t.not_component||!(0,y.r)(t.not_component).some((t=>(0,_.p)(e,t))),C=e=>e.core,$=(e,t)=>(e=>e.advancedOnly)(t)&&!(e=>{var t;return null===(t=e.userData)||void 0===t?void 0:t.showAdvanced})(e);let L,M,A,H,V,S,O,B,z,F,T,R=e=>e;(0,a.Z)([(0,l.Mo)("hass-tabs-subpage")],(function(e,t){class i extends t{constructor(...t){super(...t),e(this)}}return{F:i,d:[{kind:"field",decorators:[(0,l.Cb)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,l.Cb)({type:Boolean})],key:"supervisor",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({attribute:!1})],key:"localizeFunc",value:void 0},{kind:"field",decorators:[(0,l.Cb)({type:String,attribute:"back-path"})],key:"backPath",value:void 0},{kind:"field",decorators:[(0,l.Cb)({attribute:!1})],key:"backCallback",value:void 0},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,attribute:"main-page"})],key:"mainPage",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({attribute:!1})],key:"route",value:void 0},{kind:"field",decorators:[(0,l.Cb)({attribute:!1})],key:"tabs",value:void 0},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,reflect:!0})],key:"narrow",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({type:Boolean,reflect:!0,attribute:"is-wide"})],key:"isWide",value(){return!1}},{kind:"field",decorators:[(0,l.Cb)({type:Boolean})],key:"pane",value(){return!1}},{kind:"field",decorators:[(0,l.SB)()],key:"_activeTab",value:void 0},{kind:"field",decorators:[(0,d.i)(".content")],key:"_savedScrollPos",value:void 0},{kind:"field",key:"_getTabs",value(){return(0,s.Z)(((e,t,i,a,o,l)=>{const r=e.filter((e=>((e,t)=>(C(t)||x(e,t))&&!$(e,t)&&w(e,t))(this.hass,e)));if(r.length<2){if(1===r.length){const e=r[0];return[e.translationKey?l(e.translationKey):e.name]}return[""]}return r.map((e=>(0,n.dy)(L||(L=R` <a href="${0}"> <ha-tab .hass="${0}" .active="${0}" .narrow="${0}" .name="${0}"> ${0} </ha-tab> </a> `),e.path,this.hass,e.path===(null==t?void 0:t.path),this.narrow,e.translationKey?l(e.translationKey):e.name,e.iconPath?(0,n.dy)(M||(M=R`<ha-svg-icon slot="icon" .path="${0}"></ha-svg-icon>`),e.iconPath):"")))}))}},{kind:"method",key:"willUpdate",value:function(e){e.has("route")&&(this._activeTab=this.tabs.find((e=>`${this.route.prefix}${this.route.path}`.includes(e.path)))),(0,o.Z)(i,"willUpdate",this,3)([e])}},{kind:"method",key:"render",value:function(){var e;const t=this._getTabs(this.tabs,this._activeTab,this.hass.config.components,this.hass.language,this.narrow,this.localizeFunc||this.hass.localize),i=t.length>1;return(0,n.dy)(A||(A=R` <div class="toolbar"> <slot name="toolbar"> <div class="toolbar-content"> ${0} ${0} ${0} <div id="toolbar-icon"> <slot name="toolbar-icon"></slot> </div> </div> </slot> ${0} </div> <div class="container"> ${0} <div class="content ha-scrollbar ${0}" @scroll="${0}"> <slot></slot> </div> </div> <div id="fab" class="${0}"> <slot name="fab"></slot> </div> `),this.mainPage||!this.backPath&&null!==(e=history.state)&&void 0!==e&&e.root?(0,n.dy)(H||(H=R` <ha-menu-button .hassio="${0}" .hass="${0}" .narrow="${0}"></ha-menu-button> `),this.supervisor,this.hass,this.narrow):this.backPath?(0,n.dy)(V||(V=R` <a href="${0}"> <ha-icon-button-arrow-prev .hass="${0}"></ha-icon-button-arrow-prev> </a> `),this.backPath,this.hass):(0,n.dy)(S||(Line truncated
//# sourceMappingURL=9452.545f7feca8221863.js.map