homeassistant/custom_components/hacs/hacs_frontend_experimental/frontend_latest/7371.WgLVfICljd4.js

8 lines
76 KiB
JavaScript
Raw Permalink Normal View History

2025-01-10 21:08:35 -08:00
export const id=7371;export const ids=[7371,3216];export const modules={52996:(e,t,i)=>{i.d(t,{p:()=>a});const a=(e,t)=>e&&e.config.components.includes(t)},18007:(e,t,i)=>{i.a(e,(async(e,a)=>{try{i.d(t,{Bt:()=>d});var o=i(22075),l=i(50345),n=i(23216),r=e([n]);n=(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,o.L)(e.language)%7:s.includes(e.first_weekday)?s.indexOf(e.first_weekday):1;a()}catch(e){a(e)}}))},76950:(e,t,i)=>{i.a(e,(async(e,a)=>{try{i.d(t,{G:()=>d});var o=i(14516),l=i(23216),n=i(94844),r=e([l,n]);[l,n]=r.then?(await r)():r;const s=(0,o.Z)((e=>new Intl.RelativeTimeFormat(e.language,{numeric:"auto"}))),d=(e,t,i,a=!0)=>{const o=(0,n.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(e){a(e)}}))},3747:(e,t,i)=>{i.d(t,{t:()=>l});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(e){}finally{this._listeners[e]&&this._listeners[e].forEach((e=>e(i,t)))}}}const o={},l=e=>t=>{const i=e.storage||"localStorage";let l;i&&i in o?l=o[i]:(l=new a(window[i]),o[i]=l);const n=String(t.key),r=e.key||String(t.key),s=t.initializer?t.initializer():void 0;l.addFromStorage(r);const d=!1!==e.subscribe?e=>l.subscribeChanges(r,((i,a)=>{e.requestUpdate(t.key,i)})):void 0,c=()=>l.hasKey(r)?l.getValue(r):s;return{kind:"method",placement:"prototype",key:t.key,descriptor:{set(i){((i,a)=>{let o;e.state&&(o=c()),l.setValue(r,a),e.state&&i.requestUpdate(t.key,o)})(this,i)},get:()=>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${n}`]=null==d?void 0:d(this)},i.prototype.disconnectedCallback=function(){var e;t.call(this),null===(e=this[`__unbsubLocalStorage${n}`])||void 0===e||e.call(this),this[`__unbsubLocalStorage${n}`]=void 0}}e.state&&i.createProperty(t.key,{noAccessor:!0,...e.stateOptions})}}}},94844:(e,t,i)=>{i.a(e,(async(e,a)=>{try{i.d(t,{W:()=>u});var o=i(62308),l=i(59401),n=i(27296),r=i(18007),s=e([r]);r=(s.then?(await s)():s)[0];const d=1e3,c=60,h=60*c;function u(e,t=Date.now(),i,a={}){const s={...v,...a||{}},u=(+e-+t)/d;if(Math.abs(u)<s.second)return{value:Math.round(u),unit:"second"};const b=u/c;if(Math.abs(b)<s.minute)return{value:Math.round(b),unit:"minute"};const p=u/h;if(Math.abs(p)<s.hour)return{value:Math.round(p),unit:"hour"};const m=new Date(e),f=new Date(t);m.setHours(0,0,0,0),f.setHours(0,0,0,0);const k=(0,o.Z)(m,f);if(0===k)return{value:Math.round(p),unit:"hour"};if(Math.abs(k)<s.day)return{value:k,unit:"day"};const y=(0,r.Bt)(i),_=(0,l.Z)(m,{weekStartsOn:y}),g=(0,l.Z)(f,{weekStartsOn:y}),w=(0,n.Z)(_,g);if(0===w)return{value:k,unit:"day"};if(Math.abs(w)<s.week)return{value:w,unit:"week"};const x=m.getFullYear()-f.getFullYear(),C=12*x+m.getMonth()-f.getMonth();return 0===C?{value:w,unit:"week"}:Math.abs(C)<s.month||0===x?{value:C,
.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;width:100%;border-bottom:1px solid var(--divider-color);overflow-x:auto}.mdc-data-table__header-row::-webkit-scrollbar{display:none}.mdc-data-table__cell,.mdc-data-table__header-cell{padding-right:16px;padding-left:16px;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;width:60px}:host([dir=rtl]) .mdc-data-table__cell--checkbox,:host([dir=rtl]) .mdc-data-table__header-cell--checkbox{padding-left:0;padding-right:16px}.mdc-data-table__table{height:100%;width:100%;border:0;white-space:nowrap}.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}.mdc-data-table__cell a{color:inherit;text-decoration:none}.mdc-data-table__cell--numeric{text-align:right}:host([dir=rtl]) .mdc-data-table__cell--numeric{text-align:left}.mdc-data-table__cell--icon{color:var(--secondary-text-color);text-align:center}.mdc-data-table__cell--icon,.mdc-data-table__header-cell--icon{width:54px}.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:left}:host([dir=rtl]) .mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:hover,:host([dir=rtl]) .mdc-data-table__header-cell.sortable.mdc-data-table__header-cell--icon:not(
.not-sorted
){text-align:right}.mdc-data-table__cell--icon:first-child ha-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}:host([dir=rtl]) .mdc-data-table__cell--icon:first-child ha-icon,:host([dir=rtl]) .mdc-data-table__cell--icon:first-child ha-state-icon,:host([dir=rtl]) .mdc-data-table__cell--icon:first-child ha-svg-icon :host([dir=rtl]) .mdc-data-table__cell--icon:first-child img{margin-left:auto;margin-right:8px}.mdc-data-table__cell--icon:first-child state-badge{margin-right:-8px}:host([dir=rtl]) .mdc-data-table__cell--icon:first-child state-badge{margin-right:auto;margin-left:-8px}.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{padding:8px}.mdc-data-table__cell--icon-button,.mdc-data-table__header-cell--icon-button{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}:host([dir=rtl]) .mdc-data-table__cell--overflow-menu:first-child,:host([dir=rtl]) .mdc-data-table__header-cell--overflow-menu:first-child{padding-left:8px;padding-right:16px}.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}:host([dir=rtl]) .mdc-data-table__cell--icon-button:last-child,:host([dir=rtl]) .mdc-data-table__cell--overflow-menu:last-child,:host([dir=rtl]) .mdc-data-table__header-cell--icon-button:last-child,:host([dir=rtl]) .mdc-data-table__header-cell--overflow-menu:last-child{padding-right:8px;padding-left:16px}.mdc-data-table__cell--overflow-menu,.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:left}:host([dir=rtl]) .mdc-data-table__header-cell{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}.mdc-data-table__header-cell--numeric.sortable:hover,.mdc-data-table__header-cell--numeric.sortable:not(.not-sorted){text-align:left}:host([dir=rtl]) .mdc-data-table__header-cell--numeric{text-align:left}:host([dir=rtl]) .mdc-data-table__header-cell--numeric.sortable:hover,:host([dir=rtl]) .mdc-data-table__header-cell--numeric.sortable:not(.not-sorted){text-align:right}: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}:host([dir=rtl]) .mdc-data-table__header-cell span{left:auto;right:0px}.mdc-data-table__header-cell.sortable{cursor:pointer}.mdc-data-table__header-cell>*{transition:left .2s ease}:host([dir=rtl]) .mdc-data-table__header-cell>*{transition:right .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}:host([dir=rtl]) .mdc-data-table__header-cell.not-sorted ha-svg-icon{right:-20px}.mdc-data-table__header-cell.sortable.not-sorted:hover span,.mdc-data-table__header-cell.sortable:not(.not-sorted) span{left:24px}:host([dir=rtl]) .mdc-data-table__header-cell.sortable.not-sorted:hover span,:host([dir=rtl]) .mdc-data-
//# sourceMappingURL=7371.WgLVfICljd4.js.map