UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

51 lines 40.1 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[87352],{50248:function(e,t,a){a.d(t,{n:function(){return o}});const o=(e=document)=>{var t;return null!==(t=e.activeElement)&&void 0!==t&&null!==(t=t.shadowRoot)&&void 0!==t&&t.activeElement?o(e.activeElement.shadowRoot):e.activeElement}},57237:function(e,t,a){a.d(t,{d:function(){return o}});const o=e=>e.stopPropagation()},65522:function(e,t,a){a.d(t,{A:function(){return o}});a(42762);const o=e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.trim()}},37981:function(e,t,a){a.d(t,{xn:function(){return r},T:function(){return n},Kh:function(){return l}});a(18111),a(22489),a(61701),a(42762),a(62953);var o=a(22786);a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698);var i=a(28978);const r=e=>{var t;return null===(t=e.name_by_user||e.name)||void 0===t?void 0:t.trim()},n=(e,t,a,o)=>r(e)||o&&s(a,o)||t("ui.panel.config.devices.unnamed_device",{type:t(`ui.panel.config.devices.type.${e.entry_type||"device"}`)}),s=(e,t)=>{for(const a of t||[]){const t=e["string"==typeof a?a:a.entity_id];if(t)return(0,i.u)(t)}},l=(0,o.A)(e=>function(e){const t=new Set,a=new Set;for(const o of e)a.has(o)?t.add(o):a.add(o);return t}(Object.values(e).map(e=>r(e)).filter(e=>void 0!==e)))},55931:function(e,t,a){a.d(t,{X:function(){return o}});a(42762);const o=e=>{var t;return null===(t=e.name)||void 0===t?void 0:t.trim()}},28455:function(e,t,a){a.d(t,{EX:function(){return i},jI:function(){return r},ln:function(){return o}});const o=(e,t,a,o,i)=>{const n=t[e.entity_id];return n?r(n,t,a,o,i):{entity:null,device:null,area:null,floor:null}},i=(e,t,a)=>{const o=t[e];if(!o)return;const i=o.device_id,r=i?a[i]:void 0;return o.area_id||(null==r?void 0:r.area_id)||void 0},r=(e,t,a,o,i)=>{const r=t[e.entity_id],n=null==e?void 0:e.device_id,s=n?a[n]:void 0,l=(null==e?void 0:e.area_id)||(null==s?void 0:s.area_id),d=l?o[l]:void 0,c=null==d?void 0:d.floor_id;return{entity:r,device:s||null,area:d||null,floor:(c?i[c]:void 0)||null}}},67258:function(e,t,a){a.d(t,{d:function(){return o}});const o=e=>{switch(e.language){case"cs":case"de":case"fi":case"fr":case"sk":case"sv":return" ";default:return""}}},8549:function(e,t,a){a.d(t,{A:function(){return i}});var o=a(67258);const i=(e,t)=>"°"===e?"":t&&"%"===e?(0,o.d)(t):" "},63130:function(e,t,a){a.d(t,{l:function(){return i}});a(3362);var o=a(50248);const i=async(e,t)=>{var a;if(navigator.clipboard)try{return void(await navigator.clipboard.writeText(e))}catch(n){}const i=t||(null===(a=(0,o.n)())||void 0===a?void 0:a.getRootNode())||document.body,r=document.createElement("textarea");r.value=e,r.setAttribute("readonly",""),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.opacity="0",i.appendChild(r),r.select(),document.execCommand("copy"),i.removeChild(r)}},19459:function(e,t,a){a.d(t,{b:function(){return o}});a(45367),a(92731),a(84864),a(57465),a(27495),a(69479),a(17642),a(58004),a(33853),a(45876),a(32475),a(15024),a(31698),a(62953);const o=(e,t,a)=>{if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;let i,r;if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;0!==i--;)if(!o(e[i],t[i],a))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!o(i[1],t.get(i[0]),a))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!==t.length)return!1;for(i=r;0!==i--;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e);if(r=n.length,r!==Object.keys(t).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;0!==i--;){const r=n[i];if(!o(e[r],t[r],a))return!1}if(null!=a&&a.compareSymbols){const i=Object.getOwnPropertySymbols(e),r=Object.getOwnPropertySymbols(t);if(i.length!==r.length)return!1;for(const n of i){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!o(e[n],t[n],a))return!1}}return!0}return e!=e&&t!=t}},7553:function(e,t,a){a.d(t,{h:function(){return i}});a(16280),a(3362),a(62953);class o extends Error{constructor(e,...t){super(...t),Error.captureStackTrace&&Error.captureStackTrace(this,o),this.name="TimeoutError",this.timeout=e,this.message=`Timed out in ${e} ms.`}}const i=(e,t)=>{const a=new Promise((t,a)=>{setTimeout(()=>{a(new o(e))},e)});return Promise.race([t,a])}},47680:function(e,t,a){a.r(t),a.d(t,{HaIcon:function(){return j}});a(74423),a(3362),a(62953);var o=a(40445),i=a(5124),r=a(67576),n=a(1087),s=a(9899),l=a(700),d=(a(44114),a(18111),a(7588),a(96167),a(95192)),c=a(7553);const h=JSON.parse('{"version":"7.4.47","parts":[{"file":"7a7139d465f1f41cb26ab851a17caa21a9331234"},{"start":"account-supervisor-circle-","file":"9561286c4c1021d46b9006596812178190a7cc1c"},{"start":"alpha-r-c","file":"eb466b7087fb2b4d23376ea9bc86693c45c500fa"},{"start":"arrow-decision-o","file":"4b3c01b7e0723b702940c5ac46fb9e555646972b"},{"start":"baby-f","file":"2611401d85450b95ab448ad1d02c1a432b409ed2"},{"start":"battery-hi","file":"89bcd31855b34cd9d31ac693fb073277e74f1f6a"},{"start":"blur-r","file":"373709cd5d7e688c2addc9a6c5d26c2d57c02c48"},{"start":"briefcase-account-","file":"a75956cf812ee90ee4f656274426aafac81e1053"},{"start":"calendar-question-","file":"3253f2529b5ebdd110b411917bacfacb5b7063e6"},{"start":"car-lig","file":"74566af3501ad6ae58ad13a8b6921b3cc2ef879d"},{"start":"cellphone-co","file":"7677f1cfb2dd4f5562a2aa6d3ae43a2e6997b21a"},{"start":"circle-slice-2","file":"70d08c50ec4522dd75d11338db57846588263ee2"},{"start":"cloud-co","file":"141d2bfa55ca4c83f4bae2812a5da59a84fec4ff"},{"start":"cog-s","file":"5a640365f8e47c609005d5e098e0e8104286d120"},{"start":"cookie-l","file":"dd85b8eb8581b176d3acf75d1bd82e61ca1ba2fc"},{"start":"currency-eur-","file":"15362279f4ebfc3620ae55f79d2830ad86d5213e"},{"start":"delete-o","file":"239434ab8df61237277d7599ebe066c55806c274"},{"start":"draw-","file":"5605918a592070803ba2ad05a5aba06263da0d70"},{"start":"emoticon-po","file":"a838cfcec34323946237a9f18e66945f55260f78"},{"start":"fan","file":"effd56103b37a8c7f332e22de8e4d67a69b70db7"},{"start":"file-question-","file":"b2424b50bd465ae192593f1c3d086c5eec893af8"},{"start":"flask-off-","file":"3b76295cde006a18f0301dd98eed8c57e1d5a425"},{"start":"food-s","file":"1c6941474cbeb1755faaaf5771440577f4f1f9c6"},{"start":"gamepad-u","file":"c6efe18db6bc9654ae3540c7dee83218a5450263"},{"start":"google-f","file":"df341afe6ad4437457cf188499cb8d2df8ac7b9e"},{"start":"head-c","file":"282121c9e45ed67f033edcc1eafd279334c00f46"},{"start":"home-pl","file":"27e8e38fc7adcacf2a210802f27d841b49c8c508"},{"start":"inbox-","file":"0f0316ec7b1b7f7ce3eaabce26c9ef619b5a1694"},{"start":"key-v","file":"ea33462be7b953ff1eafc5dac2d166b210685a60"},{"start":"leaf-circle-","file":"33db9bbd66ce48a2db3e987fdbd37fb0482145a4"},{"start":"lock-p","file":"b89e27ed39e9d10c44259362a4b57f3c579d3ec8"},{"start":"message-s","file":"7b5ab5a5cadbe06e3113ec148f044aa701eac53a"},{"start":"moti","file":"01024d78c248d36805b565e343dd98033cc3bcaf"},{"start":"newspaper-variant-o","file":"22a6ec4a4fdd0a7c0acaf805f6127b38723c9189"},{"start":"on","file":"c73d55b412f394e64632e2011a59aa05e5a1f50d"},{"start":"paw-ou","file":"3f669bf26d16752dc4a9ea349492df93a13dcfbf"},{"start":"pigg","file":"0c24edb27eb1c90b6e33fc05f34ef3118fa94256"},{"start":"printer-pos-sy","file":"41a55cda866f90b99a64395c3bb18c14983dcf0a"},{"start":"read","file":"c7ed91552a3a64c9be88c85e807404cf705b7edf"},{"start":"robot-vacuum-variant-o","file":"917d2a35d7268c0ea9ad9ecab2778060e19d90e0"},{"start":"sees","file":"6e82d9861d8fac30102bafa212021b819f303bdb"},{"start":"shoe-f","file":"e2fe7ce02b5472301418cc90a0e631f187b9f238"},{"start":"snowflake-m","file":"a28ba9f5309090c8b49a27ca20ff582a944f6e71"},{"start":"st","file":"7e92d03f095ec27e137b708b879dfd273bd735ab"},{"start":"su","file":"61c74913720f9de59a379bdca37f1d2f0dc1f9db"},{"start":"tag-plus-","file":"8f3184156a4f38549cf4c4fffba73a6a941166ae"},{"start":"timer-a","file":"baab470d11cfb3a3cd3b063ee6503a77d12a80d0"},{"start":"transit-d","file":"8561c0d9b1ac03fab360fd8fe9729c96e8693239"},{"start":"vector-arrange-b","file":"c9a3439257d4bab33d3355f1f2e11842e8171141"},{"start":"water-ou","file":"02dbccfb8ca35f39b99f5a085b095fc1275005a0"},{"start":"webc","file":"57bafd4b97341f4f2ac20a609d023719f23a619c"},{"start":"zip","file":"65ae094e8263236fa50486584a08c03497a38d93"}]}');let u;const f=()=>(u||(u=p().catch(e=>{throw u=void 0,e})),u),p=async()=>{const e=(0,d.y$)("hass-icon-db","mdi-icon-store"),t=await(0,d.Jt)("_version",e);return t?t!==h.version&&(await(0,d.IU)(e),(0,d.hZ)("_version",h.version,e)):(0,d.hZ)("_version",h.version,e),e},m=["mdi","hass","hassio","hademo"];let v=[];a(67094);let b,g,y,w=e=>e;const x={},_={},C=(0,s.s)(()=>(async e=>{const t=Object.keys(e),a=await Promise.allSettled(Object.values(e));(await f())("readwrite",o=>{a.forEach((a,i)=>{"fulfilled"===a.status&&Object.entries(a.value).forEach(([e,t])=>{o.put(t,e)}),delete e[t[i]]})})})(_),2e3),$={},k={"home-assistant":()=>a.e(58781).then(a.bind(a,53580)).then(e=>e.mdiHomeAssistant),"music-assistant":()=>a.e(56009).then(a.bind(a,10576)).then(e=>e.mdiMusicAssistant),esphome:()=>a.e(88800).then(a.bind(a,45091)).then(e=>e.mdiEsphomeLogo)};class j extends i.WF{willUpdate(e){super.willUpdate(e),e.has("icon")&&(this._path=void 0,this._secondaryPath=void 0,this._viewBox=void 0,this._loadIcon())}render(){return this.icon?this._legacy?(0,i.qy)(b||(b=w` <iron-icon .icon="${0}"></iron-icon>`),this.icon):(0,i.qy)(g||(g=w`<ha-svg-icon .path="${0}" .secondaryPath="${0}" .viewBox="${0}"></ha-svg-icon>`),this._path,this._secondaryPath,this._viewBox):i.s6}async _loadIcon(){if(!this.icon)return;const e=this.icon,[t,a]=this.icon.split(":",2);let o,i=a;if(!t||!i)return;if(!m.includes(t)){const a=l.y[t];return a?void(a&&"function"==typeof a.getIcon&&this._setCustomPath(a.getIcon(i),e)):void(this._legacy=!0)}if(this._legacy=!1,i in x){const e=x[i];let a;e.newName?(a=`Icon ${t}:${i} was renamed to ${t}:${e.newName}, please change your config, it will be removed in version ${e.removeIn}.`,i=e.newName):a=`Icon ${t}:${i} was removed from MDI, please replace this icon with an other icon in your config, it will be removed in version ${e.removeIn}.`,console.warn(a),(0,n.r)(this,"write_log",{level:"warning",message:a})}if(i in $)return void(this._path=$[i]);if(i in k){const t=await k[i]();return this.icon===e&&(this._path=t),void($[i]=t)}try{o=await(e=>new Promise((t,a)=>{if(v.push([e,t,a]),v.length>1)return;const o=f();(0,c.h)(1e3,(async()=>{(await o)("readonly",e=>{for(const[t,a,o]of v)(0,d.Yd)(e.get(t)).then(e=>a(e)).catch(e=>o(e));v=[]})})()).catch(e=>{for(const[,,t]of v)t(e);v=[]})}))(i)}catch(u){o=void 0}if(o)return this.icon===e&&(this._path=o),void($[i]=o);const r=(e=>{let t;for(const a of h.parts){if(void 0!==a.start&&e<a.start)break;t=a}return t.file})(i);if(r in _)return void this._setPath(_[r],i,e);const s=fetch(`/static/mdi/${r}.json`).then(e=>e.json());_[r]=s,this._setPath(s,i,e),s.catch(()=>{delete _[r]}),C()}async _setCustomPath(e,t){const a=await e;this.icon===t&&(this._path=a.path,this._secondaryPath=a.secondaryPath,this._viewBox=a.viewBox)}async _setPath(e,t,a){try{const o=await e;this.icon===a&&(this._path=o[t]),$[t]=o[t]}catch(o){}}constructor(...e){super(...e),this._legacy=!1}}j.styles=(0,i.AH)(y||(y=w`:host{fill:currentcolor}`)),(0,o.Cg)([(0,r.MZ)()],j.prototype,"icon",void 0),(0,o.Cg)([(0,r.wk)()],j.prototype,"_path",void 0),(0,o.Cg)([(0,r.wk)()],j.prototype,"_secondaryPath",void 0),(0,o.Cg)([(0,r.wk)()],j.prototype,"_viewBox",void 0),(0,o.Cg)([(0,r.wk)()],j.prototype,"_legacy",void 0),j=(0,o.Cg)([(0,r.EM)("ha-icon")],j)},3449:function(e,t,a){a(62953);var o=a(40445),i=a(5124),r=a(67576);let n,s,l=e=>e;class d extends i.WF{render(){return(0,i.qy)(n||(n=l`<slot></slot>`))}constructor(...e){super(...e),this.disabled=!1}}d.styles=(0,i.AH)(s||(s=l`:host{display:block;color:var(--mdc-text-field-label-ink-color,rgba(0,0,0,.6));font-size:var(--ha-font-size-s);padding-left:16px;padding-right:16px;padding-inline-start:16px;padding-inline-end:16px;letter-spacing:var( --mdc-typography-caption-letter-spacing, .0333333333em );line-height:normal}:host([disabled]){color:var(--mdc-text-field-disabled-ink-color,rgba(0,0,0,.6))}`)),(0,o.Cg)([(0,r.MZ)({type:Boolean,reflect:!0})],d.prototype,"disabled",void 0),d=(0,o.Cg)([(0,r.EM)("ha-input-helper-text")],d)},2846:function(e,t,a){a.d(t,{G:function(){return u},J:function(){return h}});var o=a(40445),i=a(58168),r=a(82553),n=a(5124),s=a(67576);a(54276);let l,d,c=e=>e;const h=[r.R,(0,n.AH)(l||(l=c`:host{--ha-icon-display:block;--md-sys-color-primary:var(--primary-text-color);--md-sys-color-secondary:var(--secondary-text-color);--md-sys-color-surface:var(--card-background-color);--md-sys-color-on-surface:var(--primary-text-color);--md-sys-color-on-surface-variant:var(--secondary-text-color)}md-item{overflow:var(--md-item-overflow,hidden);align-items:var(--md-item-align-items,center);gap:var(--ha-md-list-item-gap,16px)}`))];class u extends i.n{renderRipple(){return"text"===this.type?n.s6:(0,n.qy)(d||(d=c`<ha-ripple part="ripple" for="item" ?disabled="${0}"></ha-ripple>`),this.disabled&&"link"!==this.type)}}u.styles=h,u=(0,o.Cg)([(0,s.EM)("ha-md-list-item")],u)},17308:function(e,t,a){var o=a(40445),i=a(49838),r=a(11245),n=a(5124),s=a(67576);let l;class d extends i.B{}d.styles=[r.R,(0,n.AH)(l||(l=(e=>e)`:host{--md-sys-color-surface:var(--card-background-color)}`))],d=(0,o.Cg)([(0,s.EM)("ha-md-list")],d)},54276:function(e,t,a){a(62953);var o=a(40445),i=a(76482),r=a(91382),n=a(96245),s=a(5124),l=a(67576);let d;class c extends r.n{attach(e){super.attach(e),this.attachableTouchController.attach(e)}disconnectedCallback(){super.disconnectedCallback(),this.hovered=!1,this.pressed=!1}detach(){super.detach(),this.attachableTouchController.detach()}_onTouchControlChange(e,t){null==e||e.removeEventListener("touchend",this._handleTouchEnd),null==t||t.addEventListener("touchend",this._handleTouchEnd)}constructor(...e){super(...e),this.attachableTouchController=new i.i(this,this._onTouchControlChange.bind(this)),this._handleTouchEnd=()=>{this.disabled||super.endPressAnimation()}}}c.styles=[n.R,(0,s.AH)(d||(d=(e=>e)`: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)) )}`))],c=(0,o.Cg)([(0,l.EM)("ha-ripple")],c)},97951:function(e,t,a){a.a(e,async function(e,o){try{a.r(t),a.d(t,{HaObjectSelector:function(){return A}});a(89463),a(44114),a(18111),a(22489),a(61701),a(3362),a(62953);var i=a(40445),r=a(5124),n=a(67576),s=a(22786),l=a(44537),d=a(1087),c=a(93387),h=a(1135),u=(a(3449),a(17308),a(2846),a(85938),a(10763)),f=a(19459),p=e([u]);u=(p.then?(await p)():p)[0];let m,v,b,g,y,w,x,_,C,$,k,j,M=e=>e;const S="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",E="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",z="M21 11H3V9H21V11M21 13H3V15H21V13Z",O="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z";class A extends r.WF{_renderItem(e,t){var a;const o=this.selector.object.fields,i=this.selector.object.label_field,n=i&&i in o?(0,c.C)(this.hass,e[i],null===(a=o[i])||void 0===a?void 0:a.selector):Object.entries(o).map(([t,a])=>(0,c.C)(this.hass,e[t],a.selector)).filter(Boolean).join(" · ");let s="";const l=this.selector.object.description_field;if(l&&l in o){var d;const t=null===(d=o[l])||void 0===d?void 0:d.selector;s=t?(0,c.C)(this.hass,e[l],t):""}const h=this.selector.object.multiple||!1,u=this.selector.object.multiple||!1;return(0,r.qy)(m||(m=M` <ha-md-list-item class="item"> ${0} <div slot="headline" class="label">${0}</div> ${0} <ha-icon-button slot="end" .item="${0}" .index="${0}" .label="${0}" .path="${0}" @click="${0}"></ha-icon-button> <ha-icon-button slot="end" .index="${0}" .label="${0}" .path="${0}" @click="${0}"></ha-icon-button> </ha-md-list-item> `),h?(0,r.qy)(v||(v=M` <ha-svg-icon class="handle" .path="${0}" slot="start"></ha-svg-icon> `),z):r.s6,n,s?(0,r.qy)(b||(b=M`<div slot="supporting-text" class="description"> ${0} </div>`),s):r.s6,e,t,this.hass.localize("ui.common.edit"),O,this._editItem,t,this.hass.localize("ui.common.delete"),u?E:S,this._deleteItem)}render(){var e;if(null!==(e=this.selector.object)&&void 0!==e&&e.fields){if(this.selector.object.multiple){var t;const e=(0,l.e)(null!==(t=this.value)&&void 0!==t?t:[]);return(0,r.qy)(g||(g=M` ${0} <div class="items-container"> <ha-sortable handle-selector=".handle" draggable-selector=".item" @item-moved="${0}"> <ha-md-list> ${0} </ha-md-list> </ha-sortable> <ha-button appearance="filled" @click="${0}"> ${0} </ha-button> </div> `),this.label?(0,r.qy)(y||(y=M`<label>${0}</label>`),this.label):r.s6,this._itemMoved,e.map((e,t)=>this._renderItem(e,t)),this._addItem,this.hass.localize("ui.common.add"))}return(0,r.qy)(w||(w=M` ${0} <div class="items-container"> ${0} </div> `),this.label?(0,r.qy)(x||(x=M`<label>${0}</label>`),this.label):r.s6,this.value?(0,r.qy)(_||(_=M`<ha-md-list> ${0} </ha-md-list>`),this._renderItem(this.value,0)):(0,r.qy)(C||(C=M` <ha-button appearance="filled" @click="${0}"> ${0} </ha-button> `),this._addItem,this.hass.localize("ui.common.add")))}return(0,r.qy)($||($=M`<ha-yaml-editor .readonly="${0}" .label="${0}" .required="${0}" .placeholder="${0}" .defaultValue="${0}" @value-changed="${0}"></ha-yaml-editor> ${0} `),this.disabled,this.label,this.required,this.placeholder,this.value,this._handleChange,this.helper?(0,r.qy)(k||(k=M`<ha-input-helper-text .disabled="${0}">${0}</ha-input-helper-text>`),this.disabled,this.helper):"")}_itemMoved(e){var t;e.stopPropagation();const a=e.detail.newIndex,o=e.detail.oldIndex;if(!this.selector.object.multiple)return;const i=(0,l.e)(null!==(t=this.value)&&void 0!==t?t:[]).concat(),r=i.splice(o,1)[0];i.splice(a,0,r),(0,d.r)(this,"value-changed",{value:i})}async _addItem(e){var t;e.stopPropagation();const a=await(0,h.O)(this,{title:this.hass.localize("ui.common.add"),schema:this._schema(this.selector),data:{},computeLabel:this._computeLabel,computeHelper:this._computeHelper,submitText:this.hass.localize("ui.common.add")});if(null===a)return;if(!this.selector.object.multiple)return void(0,d.r)(this,"value-changed",{value:a});const o=(0,l.e)(null!==(t=this.value)&&void 0!==t?t:[]).concat();o.push(a),(0,d.r)(this,"value-changed",{value:o})}async _editItem(e){var t;e.stopPropagation();const a=e.currentTarget.item,o=e.currentTarget.index,i=await(0,h.O)(this,{title:this.hass.localize("ui.common.edit"),schema:this._schema(this.selector),data:a,computeLabel:this._computeLabel,computeHelper:this._computeHelper,submitText:this.hass.localize("ui.common.save")});if(null===i)return;if(!this.selector.object.multiple)return void(0,d.r)(this,"value-changed",{value:i});const r=(0,l.e)(null!==(t=this.value)&&void 0!==t?t:[]).concat();r[o]=i,(0,d.r)(this,"value-changed",{value:r})}_deleteItem(e){var t;e.stopPropagation();const a=e.currentTarget.index;if(!this.selector.object.multiple)return void(0,d.r)(this,"value-changed",{value:void 0});const o=(0,l.e)(null!==(t=this.value)&&void 0!==t?t:[]).concat();o.splice(a,1),(0,d.r)(this,"value-changed",{value:o})}updated(e){super.updated(e),e.has("value")&&!this._valueChangedFromChild&&this._yamlEditor&&!(0,f.b)(this.value,e.get("value"))&&this._yamlEditor.setValue(this.value),this._valueChangedFromChild=!1}_handleChange(e){e.stopPropagation(),this._valueChangedFromChild=!0;const t=e.target.value;e.target.isValid&&this.value!==t&&(0,d.r)(this,"value-changed",{value:t})}static get styles(){return[(0,r.AH)(j||(j=M`ha-md-list{gap:var(--ha-space-2)}ha-md-list-item{border:1px solid var(--divider-color);border-radius:var(--ha-border-radius-md);--ha-md-list-item-gap:0;--md-list-item-top-space:0;--md-list-item-bottom-space:0;--md-list-item-leading-space:12px;--md-list-item-trailing-space:4px;--md-list-item-two-line-container-height:48px;--md-list-item-one-line-container-height:48px}.handle{cursor:move;padding:8px;margin-inline-start:-8px}label{margin-bottom:8px;display:block}ha-md-list-item .description,ha-md-list-item .label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}`))]}constructor(...e){super(...e),this.disabled=!1,this.required=!0,this._valueChangedFromChild=!1,this._computeLabel=e=>{var t,a;const o=null===(t=this.selector.object)||void 0===t?void 0:t.translation_key;if(this.localizeValue&&o){const t=this.localizeValue(`${o}.fields.${e.name}.name`)||this.localizeValue(`${o}.fields.${e.name}`);if(t)return t}return(null===(a=this.selector.object)||void 0===a||null===(a=a.fields)||void 0===a||null===(a=a[e.name])||void 0===a?void 0:a.label)||e.name},this._computeHelper=e=>{var t,a;const o=null===(t=this.selector.object)||void 0===t?void 0:t.translation_key;if(this.localizeValue&&o){const t=this.localizeValue(`${o}.fields.${e.name}.description`);if(t)return t}return(null===(a=this.selector.object)||void 0===a||null===(a=a.fields)||void 0===a||null===(a=a[e.name])||void 0===a?void 0:a.description)||""},this._schema=(0,s.A)(e=>e.object&&e.object.fields?Object.entries(e.object.fields).map(([e,t])=>{var a;return{name:e,selector:t.selector,required:null!==(a=t.required)&&void 0!==a&&a}}):[])}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],A.prototype,"selector",void 0),(0,i.Cg)([(0,n.MZ)()],A.prototype,"value",void 0),(0,i.Cg)([(0,n.MZ)()],A.prototype,"label",void 0),(0,i.Cg)([(0,n.MZ)()],A.prototype,"helper",void 0),(0,i.Cg)([(0,n.MZ)()],A.prototype,"placeholder",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],A.prototype,"disabled",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean})],A.prototype,"required",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],A.prototype,"localizeValue",void 0),(0,i.Cg)([(0,n.P)("ha-yaml-editor",!0)],A.prototype,"_yamlEditor",void 0),A=(0,i.Cg)([(0,n.EM)("ha-selector-object")],A),o()}catch(m){o(m)}})},85938:function(e,t,a){a(18111),a(22489),a(3362),a(46058),a(62953);var o=a(40445),i=a(5124),r=a(67576),n=a(1087);let s,l=e=>e;class d extends i.WF{updated(e){e.has("disabled")&&(this.disabled?this._destroySortable():this._createSortable())}disconnectedCallback(){super.disconnectedCallback(),this._shouldBeDestroy=!0,setTimeout(()=>{this._shouldBeDestroy&&(this._destroySortable(),this._shouldBeDestroy=!1)},1)}connectedCallback(){super.connectedCallback(),this._shouldBeDestroy=!1,this.hasUpdated&&!this.disabled&&this._createSortable()}createRenderRoot(){return this}render(){return this.noStyle?i.s6:(0,i.qy)(s||(s=l` <style>.sortable-fallback{display:none!important}.sortable-ghost{box-shadow:0 0 0 2px var(--primary-color);background:rgba(var(--rgb-primary-color),.25);border-radius:var(--ha-border-radius-sm);opacity:.4}.sortable-drag{border-radius:var(--ha-border-radius-sm);opacity:1;background:var(--card-background-color);box-shadow:0px 4px 8px 3px #00000026;cursor:grabbing}</style> `))}async _createSortable(){if(this._sortable)return;const e=this.children[0];if(!e)return;const t=(await Promise.all([a.e(85283),a.e(70322)]).then(a.bind(a,80745))).default,o=Object.assign(Object.assign({scroll:!0,forceAutoScrollFallback:!0,scrollSpeed:20,animation:150},this.options),{},{onChoose:this._handleChoose,onStart:this._handleStart,onEnd:this._handleEnd,onUpdate:this._handleUpdate,onAdd:this._handleAdd,onRemove:this._handleRemove});this.draggableSelector&&(o.draggable=this.draggableSelector),this.handleSelector&&(o.handle=this.handleSelector),void 0!==this.invertSwap&&(o.invertSwap=this.invertSwap),this.group&&(o.group=this.group),this.filter&&(o.filter=this.filter),this._sortable=new t(e,o)}_destroySortable(){this._sortable&&(this._sortable.destroy(),this._sortable=void 0)}constructor(...e){super(...e),this.disabled=!1,this.noStyle=!1,this.invertSwap=!1,this.rollback=!0,this._shouldBeDestroy=!1,this._handleUpdate=e=>{(0,n.r)(this,"item-moved",{newIndex:e.newIndex,oldIndex:e.oldIndex})},this._handleAdd=e=>{(0,n.r)(this,"item-added",{index:e.newIndex,data:e.item.sortableData,item:e.item})},this._handleRemove=e=>{(0,n.r)(this,"item-removed",{index:e.oldIndex})},this._handleEnd=async e=>{(0,n.r)(this,"drag-end"),this.rollback&&e.item.placeholder&&(e.item.placeholder.replaceWith(e.item),delete e.item.placeholder)},this._handleStart=()=>{(0,n.r)(this,"drag-start")},this._handleChoose=e=>{this.rollback&&(e.item.placeholder=document.createComment("sort-placeholder"),e.item.after(e.item.placeholder))}}}(0,o.Cg)([(0,r.MZ)({type:Boolean})],d.prototype,"disabled",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,attribute:"no-style"})],d.prototype,"noStyle",void 0),(0,o.Cg)([(0,r.MZ)({type:String,attribute:"draggable-selector"})],d.prototype,"draggableSelector",void 0),(0,o.Cg)([(0,r.MZ)({type:String,attribute:"handle-selector"})],d.prototype,"handleSelector",void 0),(0,o.Cg)([(0,r.MZ)({type:String,attribute:"filter"})],d.prototype,"filter",void 0),(0,o.Cg)([(0,r.MZ)({type:String})],d.prototype,"group",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean,attribute:"invert-swap"})],d.prototype,"invertSwap",void 0),(0,o.Cg)([(0,r.MZ)({attribute:!1})],d.prototype,"options",void 0),(0,o.Cg)([(0,r.MZ)({type:Boolean})],d.prototype,"rollback",void 0),d=(0,o.Cg)([(0,r.EM)("ha-sortable")],d)},34127:function(e,t,a){a.a(e,async function(e,t){try{a(62953);var o=a(40445),i=a(52630),r=a(5124),n=a(67576),s=e([i]);i=(s.then?(await s)():s)[0];let l,d=e=>e;class c extends i.A{static get styles(){return[i.A.styles,(0,r.AH)(l||(l=d`: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(...e){super(...e),this.showDelay=350,this.hideDelay=150}}(0,o.Cg)([(0,n.MZ)({attribute:"show-delay",type:Number})],c.prototype,"showDelay",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"hide-delay",type:Number})],c.prototype,"hideDelay",void 0),c=(0,o.Cg)([(0,n.EM)("ha-tooltip")],c),t()}catch(l){t(l)}})},10763:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953);var o=a(40445),i=a(53289),r=a(5124),n=a(67576),s=a(35211),l=a(1087),d=a(63130),c=a(14503),h=a(81619),u=a(18350),f=a(15717),p=a(22792),m=e([u,f]);[u,f]=m.then?(await m)():m;let v,b,g,y,w,x=e=>e;const _=e=>{if("object"!=typeof e||null===e)return!1;for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0};class C extends r.WF{setValue(e){try{this._yaml=_(e)?"":(0,i.dump)(e,{schema:this.yamlSchema,quotingType:'"',noRefs:!0})}catch(t){console.error(t,e),alert(`There was an error converting to YAML: ${t}`)}}firstUpdated(){void 0!==this.defaultValue&&this.setValue(this.defaultValue)}willUpdate(e){super.willUpdate(e),this.autoUpdate&&e.has("value")&&this.setValue(this.value)}focus(){var e,t;null!==(e=this._codeEditor)&&void 0!==e&&e.codemirror&&(null===(t=this._codeEditor)||void 0===t||t.codemirror.focus())}disableCodeEditorFullscreen(){this.disableFullscreen=!0,this._codeEditor&&(this._codeEditor.disableFullscreen=!0)}render(){return void 0===this._yaml?r.s6:(0,r.qy)(v||(v=x` ${0} <ha-code-editor .value="${0}" .readOnly="${0}" .disableFullscreen="${0}" .inDialog="${0}" mode="yaml" lint autocomplete-entities autocomplete-icons .error="${0}" @value-changed="${0}" @editor-save="${0}" dir="ltr"></ha-code-editor> ${0} `),this.label?(0,r.qy)(b||(b=x`<p>${0}${0}</p>`),this.label,this.required?" *":""):r.s6,this._yaml,this.readOnly,this.disableFullscreen,this.inDialog,!1===this.isValid,this._onChange,this._onEditorSave,this.copyClipboard||this.hasExtraActions?(0,r.qy)(g||(g=x` <div class="card-actions"> ${0} <slot name="extra-actions"></slot> </div> `),this.copyClipboard?(0,r.qy)(y||(y=x` <ha-button appearance="plain" @click="${0}"> ${0} </ha-button> `),this._copyYaml,this._i18n.localize("ui.components.yaml-editor.copy_to_clipboard")):r.s6):r.s6)}_onChange(e){var t;let a;e.stopPropagation(),this._yaml=e.detail.value;let o,r=!0,n=null;if(this._yaml)try{a=(0,i.Hh)(this._yaml,{schema:this.yamlSchema})}catch(s){r=!1,n=s,o=`${this._i18n.localize("ui.components.yaml-editor.error",{reason:s.reason})}${s.mark?` (${this._i18n.localize("ui.components.yaml-editor.error_location",{line:s.mark.line+1,column:s.mark.column+1})})`:""}`}else a={};null===(t=this._codeEditor)||void 0===t||t.setYamlError(n),this.value=a,this.isValid=r,(0,l.r)(this,"value-changed",{value:a,isValid:r,errorMsg:o})}get yaml(){return this._yaml}get codemirror(){var e;return null===(e=this._codeEditor)||void 0===e?void 0:e.codemirror}get hasComments(){var e,t;return null!==(e=null===(t=this._codeEditor)||void 0===t?void 0:t.hasComments)&&void 0!==e&&e}_onEditorSave(e){(0,l.r)(this,"editor-save"),e.stopPropagation()}async _copyYaml(){this.yaml&&(await(0,d.l)(this.yaml),(0,h.P)(this,{message:this._i18n.localize("ui.common.copied_clipboard")}))}static get styles(){return[c.RF,(0,r.AH)(w||(w=x`.card-actions{border-radius:var(--actions-border-radius,var(--ha-border-radius-square) var(--ha-border-radius-square) var(--ha-card-border-radius,var(--ha-border-radius-lg)) var(--ha-card-border-radius,var(--ha-border-radius-lg)));border:1px solid var(--divider-color);padding:5px 16px}ha-code-editor{flex-grow:1;min-height:0}`))]}constructor(...e){super(...e),this.yamlSchema=i.my,this.isValid=!0,this.autoUpdate=!1,this.readOnly=!1,this.disableFullscreen=!1,this.inDialog=!1,this.required=!1,this.copyClipboard=!1,this.hasExtraActions=!1,this._yaml=""}}(0,o.Cg)([(0,n.MZ)()],C.prototype,"value",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],C.prototype,"yamlSchema",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],C.prototype,"defaultValue",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"is-valid",type:Boolean})],C.prototype,"isValid",void 0),(0,o.Cg)([(0,n.MZ)()],C.prototype,"label",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"auto-update",type:Boolean})],C.prototype,"autoUpdate",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"read-only",type:Boolean})],C.prototype,"readOnly",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"disable-fullscreen"})],C.prototype,"disableFullscreen",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean,attribute:"in-dialog"})],C.prototype,"inDialog",void 0),(0,o.Cg)([(0,n.MZ)({type:Boolean})],C.prototype,"required",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"copy-clipboard",type:Boolean})],C.prototype,"copyClipboard",void 0),(0,o.Cg)([(0,n.MZ)({attribute:"has-extra-actions",type:Boolean})],C.prototype,"hasExtraActions",void 0),(0,o.Cg)([(0,n.wk)()],C.prototype,"_yaml",void 0),(0,o.Cg)([(0,n.wk)(),(0,s.Fg)({context:p.D5,subscribe:!0})],C.prototype,"_i18n",void 0),(0,o.Cg)([(0,n.P)("ha-code-editor")],C.prototype,"_codeEditor",void 0),C=(0,o.Cg)([(0,n.EM)("ha-yaml-editor")],C),t()}catch(v){t(v)}})},700:function(e,t,a){a.d(t,{y:function(){return n}});const o=window;"customIconsets"in o||(o.customIconsets={});const i=o.customIconsets,r=window;"customIcons"in r||(r.customIcons={});const n=new Proxy(r.customIcons,{get:(e,t)=>{var a;return null!==(a=e[t])&&void 0!==a?a:i[t]?{getIcon:i[t]}:void 0}})},93387:function(e,t,a){a.d(t,{C:function(){return n}});a(18111),a(22489),a(61701),a(33110),a(62953);var o=a(44537),i=a(65522),r=a(8549);const n=(e,t,a)=>{if(null==t)return"";if(!a)return(0,o.e)(t).join(", ");if("text"in a){const{prefix:e,suffix:i}=a.text||{};return(0,o.e)(t).map(t=>`${e||""}${t}${i||""}`).join(", ")}if("number"in a){const{unit_of_measurement:i}=a.number||{};return(0,o.e)(t).map(t=>{const a=Number(t);return isNaN(a)?t:i?`${a}${(0,r.A)(i,e.locale)}${i}`:a.toString()}).join(", ")}if("floor"in a){return(0,o.e)(t).map(t=>{const a=e.floors[t];return a&&a.name||t}).join(", ")}if("area"in a){return(0,o.e)(t).map(t=>{const a=e.areas[t];return a?(0,i.A)(a):t}).join(", ")}if("entity"in a){return(0,o.e)(t).map(t=>{const a=e.states[t];if(!a)return t;return e.formatEntityName(a,[{type:"device"},{type:"entity"}])||t}).join(", ")}if("device"in a){return(0,o.e)(t).map(t=>{const a=e.devices[t];return a&&a.name||t}).join(", ")}if("object"in a){var s;const{fields:i}=null!==(s=a.object)&&void 0!==s?s:{};return(0,o.e)(t).map(t=>null==t||"object"!=typeof t?String(t):i?Object.entries(i).filter(([e])=>e in t&&null!=t[e]).map(([a,o])=>n(e,t[a],o.selector)).join(" = "):JSON.stringify(t)).join(", ")}return(0,o.e)(t).map(e=>null!=e&&"object"==typeof e?JSON.stringify(e):String(e)).join(", ")}},1135:function(e,t,a){a.d(t,{O:function(){return i}});a(3362),a(62953);var o=a(1087);const i=(e,t)=>new Promise(i=>{const r=t.cancel,n=t.submit;(0,o.r)(e,"show-dialog",{dialogTag:"dialog-form",dialogImport:()=>Promise.all([a.e(4158),a.e(45654)]).then(a.bind(a,87285)),dialogParams:Object.assign(Object.assign({},t),{},{cancel:()=>{i(null),r&&r()},submit:e=>{i(e),n&&n(e)}})})})},69235:function(e,t,a){a.a(e,async function(e,t){try{a(3362),a(62953);"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await a.e(71055).then(a.bind(a,52370))).default),t()}catch(o){t(o)}},1)},14503:function(e,t,a){a.d(t,{RF:function(){return u},dp:function(){return m},kO:function(){return p},nA:function(){return f},og:function(){return h}});var o=a(5124);let i,r,n,s,l,d,c=e=>e;const h=(0,o.AH)(i||(i=c`button.link{background:0 0;color:inherit;border:none;padding:0;font:inherit;text-align:left;text-decoration:underline;cursor:pointer;outline:0}`)),u=(0,o.AH)(r||(r=c`: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}.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;overflow:hidden;text-overflow:ellipsis;font-size:var(--ha-font-size-xl);font-weight:var(--ha-font-weight-medium);line-height:var(--ha-line-height-normal)}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{color:var(--error-color)}.warning{color:var(--error-color)}${0} .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-center,.layout.center-justified{justify-content:center}.flex{flex:1;flex-basis:0.000000001px}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.layout.justified{justify-content:space-between}`),h),f=(0,o.AH)(n||(n=c`ha-adaptive-dialog,ha-dialog{--mdc-dialog-min-width:400px;--mdc-dialog-max-width:600px;--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-adaptive-dialog .form,ha-dialog .form{color:var(--primary-text-color)}a{color:var(--primary-color)}@media all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--mdc-dialog-min-width:100vw;--mdc-dialog-max-width:100vw;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--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)}`)),p=(0,o.AH)(s||(s=c`ha-adaptive-dialog,ha-dialog{--vertical-align-dialog:flex-start;--dialog-surface-margin-top:var(--ha-space-10);--mdc-dialog-max-height:calc( 100vh - var(--dialog-surface-margin-top) - var(--ha-space-2) - var( --safe-area-inset-y, 0px ) );--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( 100vh - 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 all and (max-width:450px),all and (max-height:500px){ha-adaptive-dialog,ha-dialog{--dialog-surface-margin-top:0px;--mdc-dialog-min-height:100vh;--mdc-dialog-min-height:100svh;--mdc-dialog-max-height:100vh;--mdc-dialog-max-height:100svh;--ha-dialog-max-height:100vh;--ha-dialog-max-height:100svh}}`)),m=(0,o.AH)(l||(l=c`.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{overflow-y:auto;scrollbar-color:var(--scrollbar-thumb-color) transparent;scrollbar-width:thin}`));(0,o.AH)(d||(d=c`body{background-color:var(--primary-background-color);color:var(--primary-text-color);height:calc(100vh - 32px);width:100vw}`))},36918:function(e,t,a){a.d(t,{o:function(){return o}});const o=(e,t)=>`https://www.iobroker.net/#${e.language&&e.language.split("-")[0]||"en"}/adapters/adapterref/iobroker.lovelace/README.md#`}}]);