diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index 40d1aaa8..f127b8b5 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,182 +1,182 @@ { "schema": 1, - "fingerprint": "05ce2842760e7918081d8de1db20b0c2687438b9316a6dcdd9591094c2efb298", + "fingerprint": "9cba40b372f43cfad12eb432d5b2ee7847cb3f00f6d91e154ffada6f31df2fd4", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js", + "houseplan-assets/houseplan-card-ClTiXI3p.js", "houseplan-card.js" ], - "initialViewGzipBytes": 296492, + "initialViewGzipBytes": 296711, "lazyFiles": [ - "houseplan-assets/backdrop-pick-Rc7DbOnh.js", - "houseplan-assets/de-BsO3XZz2.js", - "houseplan-assets/editor-B5aKTgBM.js", - "houseplan-assets/fr-BND5clgi.js", - "houseplan-assets/houseplan-editor-runtime-Byj_OtmL.js", - "houseplan-assets/houseplan-onboarding-runtime-BPeqwGUM.js", - "houseplan-assets/hp-zigbee-topology-overlay-B4dxvXzw.js", - "houseplan-assets/live-interaction-runtime-BKpy4fJl.js", - "houseplan-assets/zigbee-topology-C9RnitZl.js", - "houseplan-assets/zigbee-topology-runtime-Cjou-8UI.js" + "houseplan-assets/backdrop-pick-DxIrP2TG.js", + "houseplan-assets/de-DrM43PtS.js", + "houseplan-assets/editor-DF8nDJsl.js", + "houseplan-assets/fr-BUknt1Ee.js", + "houseplan-assets/houseplan-editor-runtime-CEjxcGHj.js", + "houseplan-assets/houseplan-onboarding-runtime-CDcvp0Jc.js", + "houseplan-assets/hp-zigbee-topology-overlay-BclGSBEr.js", + "houseplan-assets/live-interaction-runtime-Cm2wMojA.js", + "houseplan-assets/zigbee-topology-Di0_F8nQ.js", + "houseplan-assets/zigbee-topology-runtime-B9aBn1Rm.js" ], - "lazyGzipBytes": 238059, + "lazyGzipBytes": 239429, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-Rc7DbOnh.js", - "houseplan-assets/editor-B5aKTgBM.js", - "houseplan-assets/houseplan-editor-runtime-Byj_OtmL.js", - "houseplan-assets/zigbee-topology-C9RnitZl.js" + "houseplan-assets/backdrop-pick-DxIrP2TG.js", + "houseplan-assets/editor-DF8nDJsl.js", + "houseplan-assets/houseplan-editor-runtime-CEjxcGHj.js", + "houseplan-assets/zigbee-topology-Di0_F8nQ.js" ], - "lazyEditorGzipBytes": 175720, + "lazyEditorGzipBytes": 177118, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-Rc7DbOnh.js", - "houseplan-assets/houseplan-onboarding-runtime-BPeqwGUM.js" + "houseplan-assets/backdrop-pick-DxIrP2TG.js", + "houseplan-assets/houseplan-onboarding-runtime-CDcvp0Jc.js" ], - "lazyOnboardingGzipBytes": 14239, + "lazyOnboardingGzipBytes": 14237, "lazyLocaleFiles": [ - "houseplan-assets/de-BsO3XZz2.js", - "houseplan-assets/fr-BND5clgi.js" + "houseplan-assets/de-DrM43PtS.js", + "houseplan-assets/fr-BUknt1Ee.js" ], - "lazyLocaleGzipBytes": 49117, + "lazyLocaleGzipBytes": 49095, "files": [ { - "path": "houseplan-assets/backdrop-pick-Rc7DbOnh.js", - "sha256": "49133ce5325444f6d1a288db1d559409a1cbf148530b57b36c3e3b35422b563f", + "path": "houseplan-assets/backdrop-pick-DxIrP2TG.js", + "sha256": "40a2b20a1d2895882f9f5253c23012c4082ff794f59d69d16906cdbd0ef0b81b", "rawBytes": 21417, - "gzipBytes": 7283, + "gzipBytes": 7279, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-BsO3XZz2.js", - "sha256": "ea45e6e4b85447b9d64cebd3e178d2b8d0e956e2b210c540ea0157838848b348", + "path": "houseplan-assets/de-DrM43PtS.js", + "sha256": "8eef78c8bb65d4dd600c779a6d9ab39f8edc2b05dec690624cff32734181f102", "rawBytes": 82182, - "gzipBytes": 24828, + "gzipBytes": 24817, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-B5aKTgBM.js", - "sha256": "760d90c44a967cb14af4c6eb947cf70460bf2ef5173d7c77874b49f2b10f170b", - "rawBytes": 3826, - "gzipBytes": 1581, + "path": "houseplan-assets/editor-DF8nDJsl.js", + "sha256": "abb853b6f918c548c0cb09101dc9186340fccc5e252a04f28e7ca113e43d04c2", + "rawBytes": 3831, + "gzipBytes": 1580, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-BND5clgi.js", - "sha256": "18685ca59a983d0c8bda581f53aed49123fa8f88e450c9e04b387e11427aa761", + "path": "houseplan-assets/fr-BUknt1Ee.js", + "sha256": "54ea601d94848dca21dc418c66be5dd3efed711ddbd167e1b3803aa4eca34816", "rawBytes": 84312, - "gzipBytes": 24289, + "gzipBytes": 24278, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-Cue_bp_z.js", - "sha256": "8861c1b21b3bfd68b283d1f207924bc8cb24989b32214379afa78afbf848df7d", - "rawBytes": 1053264, - "gzipBytes": 295697, + "path": "houseplan-assets/houseplan-card-ClTiXI3p.js", + "sha256": "23062c58e7a572faeaceaf8690447cf3efc26a35394ca616f95b942fb4ff342a", + "rawBytes": 1053904, + "gzipBytes": 295917, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-BsO3XZz2.js", - "houseplan-assets/editor-B5aKTgBM.js", - "houseplan-assets/fr-BND5clgi.js", - "houseplan-assets/houseplan-editor-runtime-Byj_OtmL.js", - "houseplan-assets/houseplan-onboarding-runtime-BPeqwGUM.js", - "houseplan-assets/hp-zigbee-topology-overlay-B4dxvXzw.js", - "houseplan-assets/live-interaction-runtime-BKpy4fJl.js" + "houseplan-assets/de-DrM43PtS.js", + "houseplan-assets/editor-DF8nDJsl.js", + "houseplan-assets/fr-BUknt1Ee.js", + "houseplan-assets/houseplan-editor-runtime-CEjxcGHj.js", + "houseplan-assets/houseplan-onboarding-runtime-CDcvp0Jc.js", + "houseplan-assets/hp-zigbee-topology-overlay-BclGSBEr.js", + "houseplan-assets/live-interaction-runtime-Cm2wMojA.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-Byj_OtmL.js", - "sha256": "39626dfebe5420ddfafa29bbbce1a50ffc014a638d1dbe808d068ff2b6713f50", - "rawBytes": 614348, - "gzipBytes": 162012, + "path": "houseplan-assets/houseplan-editor-runtime-CEjxcGHj.js", + "sha256": "edd71327a1d38a9175f85f1f4caede3a5ec75cb0e1ee76e02153051149b08296", + "rawBytes": 618575, + "gzipBytes": 163415, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-Rc7DbOnh.js", - "houseplan-assets/houseplan-card-Cue_bp_z.js", - "houseplan-assets/zigbee-topology-C9RnitZl.js" + "houseplan-assets/backdrop-pick-DxIrP2TG.js", + "houseplan-assets/houseplan-card-ClTiXI3p.js", + "houseplan-assets/zigbee-topology-Di0_F8nQ.js" ], "dynamicImports": [ - "houseplan-assets/zigbee-topology-runtime-Cjou-8UI.js" + "houseplan-assets/zigbee-topology-runtime-B9aBn1Rm.js" ] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-BPeqwGUM.js", - "sha256": "81d4372e2cdd3cafb7d7ae201c7678d4b72b56bfe241b5e35a64f9197f2c9768", + "path": "houseplan-assets/houseplan-onboarding-runtime-CDcvp0Jc.js", + "sha256": "8b98688fdb1c1b0ef8c2e1bdba4e776922a12dad06694df686406d237ddae545", "rawBytes": 28088, - "gzipBytes": 6956, + "gzipBytes": 6958, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-Rc7DbOnh.js", - "houseplan-assets/houseplan-card-Cue_bp_z.js" + "houseplan-assets/backdrop-pick-DxIrP2TG.js", + "houseplan-assets/houseplan-card-ClTiXI3p.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/hp-zigbee-topology-overlay-B4dxvXzw.js", - "sha256": "e2cd2c36ce28369920428b8aa19975c8cbf91749f52da7fd5a9a1fcc09938e07", + "path": "houseplan-assets/hp-zigbee-topology-overlay-BclGSBEr.js", + "sha256": "b16af400fa662e3f8b583655654a4a51d97e17632ce2609070546049995e9f4e", "rawBytes": 6006, - "gzipBytes": 2377, + "gzipBytes": 2373, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js", - "houseplan-assets/zigbee-topology-C9RnitZl.js", - "houseplan-assets/zigbee-topology-runtime-Cjou-8UI.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js", + "houseplan-assets/zigbee-topology-Di0_F8nQ.js", + "houseplan-assets/zigbee-topology-runtime-B9aBn1Rm.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/live-interaction-runtime-BKpy4fJl.js", - "sha256": "d06b3e2c1784f55e36581863a3c06d2bcd64e238499e81417afb6cbfdd8e58f9", + "path": "houseplan-assets/live-interaction-runtime-Cm2wMojA.js", + "sha256": "864dbac45c561ca96bd101ad7d02609daca27f2786250607a0f030fdc53c5e12", "rawBytes": 5196, - "gzipBytes": 2127, + "gzipBytes": 2124, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/zigbee-topology-C9RnitZl.js", - "sha256": "423c2ae23cd2e688411935ace0924868e3cb7654c382614411dd97e548e01bd3", + "path": "houseplan-assets/zigbee-topology-Di0_F8nQ.js", + "sha256": "b2d2fc995f582cc9e11f6b8ee33deff93879bbafaf96900e8ac7ef090f5148a8", "rawBytes": 12382, "gzipBytes": 4844, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/zigbee-topology-runtime-Cjou-8UI.js", - "sha256": "40c1b1e0b1367c51296177653b264fd1a1cfb26b4b98eb9d83db216ee626774f", + "path": "houseplan-assets/zigbee-topology-runtime-B9aBn1Rm.js", + "sha256": "7bf47628bde723081c132b9af5172b93f340baf5efb969cb40381d1af2345fce", "rawBytes": 3941, - "gzipBytes": 1762, + "gzipBytes": 1761, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js", - "houseplan-assets/zigbee-topology-C9RnitZl.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js", + "houseplan-assets/zigbee-topology-Di0_F8nQ.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "93b3e318550fa784c9487b41b67302d6259e44bea8f2407613f9373d1354da61", + "sha256": "ba2206bd6eca725fd19155de72b02ba441ea0aa9f51891f0f7080f7141e9e61c", "rawBytes": 1183, - "gzipBytes": 795, + "gzipBytes": 794, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-Cue_bp_z.js" + "houseplan-assets/houseplan-card-ClTiXI3p.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Rc7DbOnh.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DxIrP2TG.js similarity index 99% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Rc7DbOnh.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DxIrP2TG.js index dd268591..698a9678 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Rc7DbOnh.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DxIrP2TG.js @@ -1,4 +1,4 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="05ce2842760e7918081d8de1db20b0c2687438b9316a6dcdd9591094c2efb298";import{D as e,c as t,A as i,j as o,k as n,dp as r}from"./houseplan-card-Cue_bp_z.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),d=Math.max(0,l-s),c=Math.min(Math.max(0,t.width),h),u=Math.min(Math.max(0,t.height),d);let p=e.left;p+c>a&&(p=e.right-c),p=Math.min(Math.max(r,p),Math.max(r,a-c));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(d)}}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 d 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`