diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index f1e8fbe1..c162e8dc 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,169 +1,169 @@ { "schema": 1, - "fingerprint": "53ac71b2f6ce21ea7cf23cc2a1d9d4f35897a012eca18d4aac6ace3994022019", + "fingerprint": "52a75e5740b591637a556059ea0d3b3ea19aac829c41ddd98f5f72e2b1850058", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js", + "houseplan-assets/houseplan-card-Dg1o5W_M.js", "houseplan-card.js" ], - "initialViewGzipBytes": 295066, + "initialViewGzipBytes": 295746, "lazyFiles": [ - "houseplan-assets/backdrop-pick-DA2OhjB4.js", - "houseplan-assets/de-DYVDL4UZ.js", - "houseplan-assets/editor-gOvMD27j.js", - "houseplan-assets/fr-BQuWNyOh.js", - "houseplan-assets/houseplan-editor-runtime-BObeFI2c.js", - "houseplan-assets/houseplan-onboarding-runtime-CBT0JFO5.js", - "houseplan-assets/hp-zigbee-topology-overlay-Dp23y7v4.js", - "houseplan-assets/zigbee-topology-Dm2vd-Wv.js", - "houseplan-assets/zigbee-topology-runtime-CZFgtAgE.js" + "houseplan-assets/backdrop-pick-CO-P9KOR.js", + "houseplan-assets/de-CDxD1mvz.js", + "houseplan-assets/editor-BdlOZvO6.js", + "houseplan-assets/fr-B4UVnKv2.js", + "houseplan-assets/houseplan-editor-runtime-C4Gpz24h.js", + "houseplan-assets/houseplan-onboarding-runtime-BezN-1Mc.js", + "houseplan-assets/hp-zigbee-topology-overlay-Dx_574i6.js", + "houseplan-assets/zigbee-topology-WGhz1cR8.js", + "houseplan-assets/zigbee-topology-runtime-CLcP1GJY.js" ], - "lazyGzipBytes": 234149, + "lazyGzipBytes": 234181, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-DA2OhjB4.js", - "houseplan-assets/editor-gOvMD27j.js", - "houseplan-assets/houseplan-editor-runtime-BObeFI2c.js", - "houseplan-assets/zigbee-topology-Dm2vd-Wv.js" + "houseplan-assets/backdrop-pick-CO-P9KOR.js", + "houseplan-assets/editor-BdlOZvO6.js", + "houseplan-assets/houseplan-editor-runtime-C4Gpz24h.js", + "houseplan-assets/zigbee-topology-WGhz1cR8.js" ], - "lazyEditorGzipBytes": 173953, + "lazyEditorGzipBytes": 173965, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-DA2OhjB4.js", - "houseplan-assets/houseplan-onboarding-runtime-CBT0JFO5.js" + "houseplan-assets/backdrop-pick-CO-P9KOR.js", + "houseplan-assets/houseplan-onboarding-runtime-BezN-1Mc.js" ], - "lazyOnboardingGzipBytes": 14235, + "lazyOnboardingGzipBytes": 14238, "lazyLocaleFiles": [ - "houseplan-assets/de-DYVDL4UZ.js", - "houseplan-assets/fr-BQuWNyOh.js" + "houseplan-assets/de-CDxD1mvz.js", + "houseplan-assets/fr-B4UVnKv2.js" ], - "lazyLocaleGzipBytes": 49100, + "lazyLocaleGzipBytes": 49115, "files": [ { - "path": "houseplan-assets/backdrop-pick-DA2OhjB4.js", - "sha256": "311e9077a8c1df7a1e141916b32b8d41f1f89ab89c7dcb28da442b653b72b014", + "path": "houseplan-assets/backdrop-pick-CO-P9KOR.js", + "sha256": "b741e13a8f9d7afaf2efd018bfe6225bbb56d737b4041b69377773a78472538e", "rawBytes": 21418, - "gzipBytes": 7281, + "gzipBytes": 7283, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js" + "houseplan-assets/houseplan-card-Dg1o5W_M.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-DYVDL4UZ.js", - "sha256": "16ab3d88b362b395401ca37a85dc1e5eb2df459db43754d9a9669fe381ccd68a", + "path": "houseplan-assets/de-CDxD1mvz.js", + "sha256": "d627b38cfb99f2e3625af0badbcc43b203ca3bb53685f9dfc85a89b3a56e5932", "rawBytes": 82182, - "gzipBytes": 24820, + "gzipBytes": 24827, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-gOvMD27j.js", - "sha256": "dd0ead80dc7fb402a56e8a4f63cd2bd1c483673616d45bf2c30234b20c7fedef", + "path": "houseplan-assets/editor-BdlOZvO6.js", + "sha256": "f29820769600c9041d98241b6c0565f6aa24a9269bcb51218361cb071cccf844", "rawBytes": 3826, - "gzipBytes": 1580, + "gzipBytes": 1582, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js" + "houseplan-assets/houseplan-card-Dg1o5W_M.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-BQuWNyOh.js", - "sha256": "d25b21cf34fda70e65edea471a4643343591ca36fe273878423fd74969a17649", + "path": "houseplan-assets/fr-B4UVnKv2.js", + "sha256": "e15a8eb3f3d12b035b19dcea887d7b5b5731feaa5c65bf4733faac15984ee0b4", "rawBytes": 84312, - "gzipBytes": 24280, + "gzipBytes": 24288, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-BgNWi9NC.js", - "sha256": "1c1e542ec2eed4382b3b9cc5e1f7bf36e5289273fa3c4b78b1dc49243d31336e", - "rawBytes": 1047873, - "gzipBytes": 294272, + "path": "houseplan-assets/houseplan-card-Dg1o5W_M.js", + "sha256": "fd593b84875a6508eed196ef1318972ff11d35dbb230a7219f13000e3afcdf84", + "rawBytes": 1050357, + "gzipBytes": 294951, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-DYVDL4UZ.js", - "houseplan-assets/editor-gOvMD27j.js", - "houseplan-assets/fr-BQuWNyOh.js", - "houseplan-assets/houseplan-editor-runtime-BObeFI2c.js", - "houseplan-assets/houseplan-onboarding-runtime-CBT0JFO5.js", - "houseplan-assets/hp-zigbee-topology-overlay-Dp23y7v4.js" + "houseplan-assets/de-CDxD1mvz.js", + "houseplan-assets/editor-BdlOZvO6.js", + "houseplan-assets/fr-B4UVnKv2.js", + "houseplan-assets/houseplan-editor-runtime-C4Gpz24h.js", + "houseplan-assets/houseplan-onboarding-runtime-BezN-1Mc.js", + "houseplan-assets/hp-zigbee-topology-overlay-Dx_574i6.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-BObeFI2c.js", - "sha256": "de43beb5ec24ab5477cf8aed38574a8625e2b79cb44a10269a6235f2573f7fdd", + "path": "houseplan-assets/houseplan-editor-runtime-C4Gpz24h.js", + "sha256": "57cdfc9ce12ddd23fb3def8c68ccd0ae550cf7b951e594a691716c4310da18b4", "rawBytes": 608951, - "gzipBytes": 160248, + "gzipBytes": 160254, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-DA2OhjB4.js", - "houseplan-assets/houseplan-card-BgNWi9NC.js", - "houseplan-assets/zigbee-topology-Dm2vd-Wv.js" + "houseplan-assets/backdrop-pick-CO-P9KOR.js", + "houseplan-assets/houseplan-card-Dg1o5W_M.js", + "houseplan-assets/zigbee-topology-WGhz1cR8.js" ], "dynamicImports": [ - "houseplan-assets/zigbee-topology-runtime-CZFgtAgE.js" + "houseplan-assets/zigbee-topology-runtime-CLcP1GJY.js" ] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-CBT0JFO5.js", - "sha256": "040689090c5232b0fda016cf5866a21d0203523015dac062b6b7d072b9c7f188", + "path": "houseplan-assets/houseplan-onboarding-runtime-BezN-1Mc.js", + "sha256": "aa333f591a24f64bbe1672b6347a56814ca20a48b0ace5842981d59a002e3259", "rawBytes": 28088, - "gzipBytes": 6954, + "gzipBytes": 6955, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-DA2OhjB4.js", - "houseplan-assets/houseplan-card-BgNWi9NC.js" + "houseplan-assets/backdrop-pick-CO-P9KOR.js", + "houseplan-assets/houseplan-card-Dg1o5W_M.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/hp-zigbee-topology-overlay-Dp23y7v4.js", - "sha256": "ee382f9dc514051bc974bde8d0c2238c137a2713f7fbad1a46f9660f78140242", + "path": "houseplan-assets/hp-zigbee-topology-overlay-Dx_574i6.js", + "sha256": "f8119056352e129700d9f8effb2c338a1cff65d7a194bc0ab73c2e830b017683", "rawBytes": 6012, - "gzipBytes": 2381, + "gzipBytes": 2382, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js", - "houseplan-assets/zigbee-topology-Dm2vd-Wv.js", - "houseplan-assets/zigbee-topology-runtime-CZFgtAgE.js" + "houseplan-assets/houseplan-card-Dg1o5W_M.js", + "houseplan-assets/zigbee-topology-WGhz1cR8.js", + "houseplan-assets/zigbee-topology-runtime-CLcP1GJY.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/zigbee-topology-Dm2vd-Wv.js", - "sha256": "ef26620e3d4ee2fe40f461498ec074996a602445b14d5d3d7dd635edfa69efa0", - "rawBytes": 12382, - "gzipBytes": 4844, - "isEntry": false, - "imports": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js" - ], - "dynamicImports": [] - }, - { - "path": "houseplan-assets/zigbee-topology-runtime-CZFgtAgE.js", - "sha256": "f5d307d2c163f7e26c2540ffa8345cd1f0b5395d210c71a59649f4a493c5aacf", + "path": "houseplan-assets/zigbee-topology-runtime-CLcP1GJY.js", + "sha256": "abdbe0aab2176a32849923f9cca34642e779089dd28c94b43d2fd2bb38e3ede4", "rawBytes": 3941, - "gzipBytes": 1761, + "gzipBytes": 1764, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js", - "houseplan-assets/zigbee-topology-Dm2vd-Wv.js" + "houseplan-assets/houseplan-card-Dg1o5W_M.js", + "houseplan-assets/zigbee-topology-WGhz1cR8.js" + ], + "dynamicImports": [] + }, + { + "path": "houseplan-assets/zigbee-topology-WGhz1cR8.js", + "sha256": "db192bd1ecedbaf3e3c74b0af05589a79ae7ab5eb3c8eb9203cb03a5c6cf99f3", + "rawBytes": 12382, + "gzipBytes": 4846, + "isEntry": false, + "imports": [ + "houseplan-assets/houseplan-card-Dg1o5W_M.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "b8beb25d0d36a897e2a7a773d7a062a79aa8f8ef92ff145334f4ac4655e237a1", + "sha256": "78db48af41431b81f5180610c49f766fac7408b2d652577406dd22486baf7e7c", "rawBytes": 1183, - "gzipBytes": 794, + "gzipBytes": 795, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-BgNWi9NC.js" + "houseplan-assets/houseplan-card-Dg1o5W_M.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DA2OhjB4.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CO-P9KOR.js similarity index 94% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DA2OhjB4.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CO-P9KOR.js index 265edabf..66f07522 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DA2OhjB4.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CO-P9KOR.js @@ -1,6 +1,6 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="53ac71b2f6ce21ea7cf23cc2a1d9d4f35897a012eca18d4aac6ace3994022019";import{dn as e,c as t,A as i,j as o,k as n,dp as r}from"./houseplan-card-BgNWi9NC.js";function s(e){const t=e.visualViewport;return t&&Number.isFinite(t.width)&&Number.isFinite(t.height)?{left:Number(t.offsetLeft)||0,top:Number(t.offsetTop)||0,width:Math.max(0,Number(t.width)||0),height:Math.max(0,Number(t.height)||0)}:{left:0,top:0,width:e.innerWidth,height:e.innerHeight}}function a(e,t,i,o=7,n=8){const r=i.left+n,s=i.top+n,a=Math.max(r,i.left+i.width-n),l=Math.max(s,i.top+i.height-n),h=Math.max(0,a-r),c=Math.max(0,l-s),d=Math.min(Math.max(0,t.width),h),u=Math.min(Math.max(0,t.height),c);let p=e.left;p+d>a&&(p=e.right-d),p=Math.min(Math.max(r,p),Math.max(r,a-d));const g=e.bottom+o,_=e.top-o-u;let m="bottom",f=g;return g+u>l&&_>=s?(m="top",f=Math.min(Math.max(s,_),Math.max(s,l-u))):f=Math.min(Math.max(s,g),Math.max(s,l-u)),{left:Math.round(p),top:Math.round(f),side:m,maxWidth:Math.round(h),maxHeight:Math.round(c)}}class l{constructor(e,t,i){this.owner=e,this.name=t,this.keydown=i,this.host=null,this.root=null}window(){return this.owner.ownerDocument.defaultView}dialog(){return this.owner.closest("hp-dialog")}usesPopover(e=!1){const t=this.window();return!e&&!!t&&function(e){const t=e.HTMLElement?.prototype;return"function"==typeof t?.showPopover&&"function"==typeof t?.hidePopover}(t)}get hasFallback(){return!!this.host}containsPath(e){return e.includes(this.owner)||!!this.host&&e.includes(this.host)}ownsActiveElement(){let e=this.owner.ownerDocument.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return!(!e||e!==this.owner&&!this.owner.shadowRoot?.contains(e)&&!this.root?.contains(e))}renderFallback(i,o){const n=this.ensureFallback();return n?(e(t`${i}`,n),n):null}surface(e,t){return t?this.owner.shadowRoot?.querySelector(e)||null:this.root?.querySelector(e)||null}destroy(){this.root&&e(i,this.root),this.host?.remove(),this.host=null,this.root=null}ensureFallback(){if(this.root?.isConnected)return this.root;const e=this.dialog()?.overlayPortal()||this.owner.ownerDocument.body;if(!e)return null;const t=this.owner.ownerDocument.createElement("div");return t.dataset.hpOverlay=this.name,t.style.display="contents",this.keydown&&t.addEventListener("keydown",this.keydown,!0),e.append(t),this.host=t,this.root=t.attachShadow({mode:"open"}),this.root}}let h=0;class c extends n{constructor(){super(...arguments),this.text="",this.ariaLabel="",this.pointerHover=!1,this._open=!1,this._openTimer=0,this._closeTimer=0,this._positionRaf=0,this._forceFallback=!1,this._hoverOwned=!1,this._overlayDispose=null,this._scrollDialog=null,this._descriptionId="hp-help-description-"+ ++h,this._surfacePointerEnter=()=>{const e=this._window();this._closeTimer&&e?.clearTimeout(this._closeTimer),this._closeTimer=0},this._surfacePointerLeave=()=>{this._scheduleClose()},this._outsidePointerDown=e=>{if(!this._open)return;const t=e.composedPath();this._floating.containsPath(t)||this._closeHelp(!1,"outside")},this._dialogScroll=e=>{const t=this._floating.containsPath(e.composedPath()),i=e.target,o=this._dialog(),n=i instanceof Node&&(i===o||i instanceof Element&&i.contains(this));var r;this._open&&(r=n,!t&&r)&&this._closeHelp(!1,"scroll")},this._keyDown=e=>{if(!this._open||e.defaultPrevented)return;if("Escape"===e.key)return e.preventDefault(),e.stopImmediatePropagation(),void this._closeHelp(this._floating.ownsActiveElement(),"escape");const t=this.renderRoot.querySelector(".trigger");if(!t||!e.composedPath().includes(t))return;const i=this._surface();if(!i||i.scrollHeight<=i.clientHeight)return;const o=Math.max(40,.8*i.clientHeight),n={ArrowDown:40,ArrowUp:-40,PageDown:o,PageUp:-o};if("Home"===e.key)i.scrollTop=0;else if("End"===e.key)i.scrollTop=i.scrollHeight;else{if(!(e.key in n))return;i.scrollBy({top:n[e.key],behavior:"auto"})}e.preventDefault(),e.stopImmediatePropagation()},this._floating=new l(this,"help",this._keyDown),this._queuePosition=()=>{if(!this._open||this._positionRaf)return;const e=this._window();e&&(this._positionRaf=e.requestAnimationFrame(()=>{this._positionRaf=0,this._position()||this._closeHelp()}))}}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._keyDown,!0)}willUpdate(){this.toggleAttribute("data-has-content",this._hasContent())}disconnectedCallback(){const e=this.ownerDocument.defaultView;this._unsubscribeOpenListeners(),this.removeEventListener("keydown",this._keyDown,!0),this._clearTimers(),this._positionRaf&&e?.cancelAnimationFrame(this._positionRaf),this._positionRaf=0,this._closeHelp(!1,"disconnect"),super.disconnectedCallback()}updated(e){if(e.has("pointerHover")&&!this.pointerHover){const e=this._window();this._openTimer&&e?.clearTimeout(this._openTimer),this._openTimer=0,this._hoverOwned&&this._closeHelp(!1,"outside")}this._hasContent()||!this._open?this._open&&e.has("text")&&(this._usesPopover()||this._renderFallback(),this._queuePosition()):this._closeHelp()}_window(){return this._floating.window()}_dialog(){return this._floating.dialog()}_usesPopover(){return this._floating.usesPopover(this._forceFallback)}_hasContent(){return e=this.text,t=this.ariaLabel,"string"==typeof e&&e.trim().length>0&&"string"==typeof t&&t.trim().length>0;var e,t}_clearTimers(){const e=this._window();this._openTimer&&e?.clearTimeout(this._openTimer),this._closeTimer&&e?.clearTimeout(this._closeTimer),this._openTimer=0,this._closeTimer=0}_scheduleOpen(){const e=this._window();this.pointerHover&&e&&!this._open&&!this._openTimer&&(this._closeTimer&&e.clearTimeout(this._closeTimer),this._closeTimer=0,this._openTimer=e.setTimeout(()=>{this._openTimer=0,this.isConnected&&(this._hoverOwned=!0,this._openHelp())},300))}_scheduleClose(){const e=this._window(),t=this.renderRoot.querySelector(".trigger");e&&!t?.matches(":focus-visible")&&(this._openTimer&&e.clearTimeout(this._openTimer),this._closeTimer&&e.clearTimeout(this._closeTimer),this._openTimer=0,this._closeTimer=e.setTimeout(()=>{this._closeTimer=0,this.isConnected&&this._closeHelp()},150))}_triggerPointerEnter(e){this.pointerHover&&"mouse"===e.pointerType&&this._scheduleOpen()}_triggerPointerLeave(e){"mouse"===e.pointerType&&this._scheduleClose()}_triggerFocus(){queueMicrotask(()=>{const e=this.renderRoot.querySelector(".trigger");e?.matches(":focus-visible")&&(this._hoverOwned=!1,this._openHelp())})}_triggerBlur(){this._scheduleClose()}_triggerClick(){this._open?this._closeHelp():(this._hoverOwned=!1,this._openHelp())}_subscribeOpenListeners(){this.ownerDocument.addEventListener("pointerdown",this._outsidePointerDown,!0),this.ownerDocument.addEventListener("keydown",this._keyDown,!0);const e=this._window();e?.addEventListener("resize",this._queuePosition),e?.addEventListener("orientationchange",this._queuePosition),e?.visualViewport?.addEventListener("resize",this._queuePosition),e?.visualViewport?.addEventListener("scroll",this._queuePosition),this._scrollDialog=this._dialog(),this._scrollDialog?.addEventListener("scroll",this._dialogScroll,!0)}_unsubscribeOpenListeners(){this.ownerDocument.removeEventListener("pointerdown",this._outsidePointerDown,!0),this.ownerDocument.removeEventListener("keydown",this._keyDown,!0);const e=this._window();e?.removeEventListener("resize",this._queuePosition),e?.removeEventListener("orientationchange",this._queuePosition),e?.visualViewport?.removeEventListener("resize",this._queuePosition),e?.visualViewport?.removeEventListener("scroll",this._queuePosition),this._scrollDialog?.removeEventListener("scroll",this._dialogScroll,!0),this._scrollDialog=null}async _openHelp(){!this._open&&this._hasContent()&&(this._clearTimers(),this._forceFallback=!1,this._open=!0,this._subscribeOpenListeners(),await this.updateComplete,this._open&&(this._usesPopover()||this._renderFallback(),this._position()?this._overlayDispose=this._dialog()?.registerOverlay({owner:this,group:"transient",close:e=>this._closeHelp("escape"===e&&this._floating.ownsActiveElement(),e)})||null:this._closeHelp()))}_closeHelp(e=!1,t="exclusive"){if(!this._open&&!this._floating.hasFallback)return;this._clearTimers();const i=this._overlayDispose;this._overlayDispose=null,i?.();const o=this.renderRoot.querySelector(".tooltip");if(o?.hidePopover)try{o.matches(":popover-open")&&o.hidePopover()}catch{}this._open=!1,this._hoverOwned=!1,this._unsubscribeOpenListeners(),this._floating.destroy(),e&&this.updateComplete.then(()=>this.renderRoot.querySelector(".trigger")?.focus())}_tooltipTemplate(e){return t`