diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index 6a98f15d..2fc11987 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,125 +1,125 @@ { "schema": 1, - "fingerprint": "4386b4e9f688f89cce5a1680c9f21b315933dd897345287b8c64700400b11c11", + "fingerprint": "06b8d96df0477e4fef9e7007a8c0b5bbd9a78793d1223008b04ef2b451a6e83e", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-qfwHeLJR.js", + "houseplan-assets/houseplan-card-BfnX2cmD.js", "houseplan-card.js" ], - "initialViewGzipBytes": 291041, + "initialViewGzipBytes": 291018, "lazyFiles": [ - "houseplan-assets/backdrop-pick-Di7bhm6e.js", - "houseplan-assets/de-Dc1N8boU.js", - "houseplan-assets/editor-DWFSXWYH.js", - "houseplan-assets/fr-Cw28JMxl.js", - "houseplan-assets/houseplan-editor-runtime-BQ2FUiZP.js", - "houseplan-assets/houseplan-onboarding-runtime-OhzyGbC7.js" + "houseplan-assets/backdrop-pick-Qwoc8608.js", + "houseplan-assets/de-C8CTJVIy.js", + "houseplan-assets/editor-6sdKa_hR.js", + "houseplan-assets/fr-BZ8kLYXx.js", + "houseplan-assets/houseplan-editor-runtime-Bn8Z-ZQm.js", + "houseplan-assets/houseplan-onboarding-runtime-Dd03IF7p.js" ], - "lazyGzipBytes": 213868, + "lazyGzipBytes": 213839, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-Di7bhm6e.js", - "houseplan-assets/editor-DWFSXWYH.js", - "houseplan-assets/houseplan-editor-runtime-BQ2FUiZP.js" + "houseplan-assets/backdrop-pick-Qwoc8608.js", + "houseplan-assets/editor-6sdKa_hR.js", + "houseplan-assets/houseplan-editor-runtime-Bn8Z-ZQm.js" ], - "lazyEditorGzipBytes": 158042, + "lazyEditorGzipBytes": 158033, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-Di7bhm6e.js", - "houseplan-assets/houseplan-onboarding-runtime-OhzyGbC7.js" + "houseplan-assets/backdrop-pick-Qwoc8608.js", + "houseplan-assets/houseplan-onboarding-runtime-Dd03IF7p.js" ], - "lazyOnboardingGzipBytes": 14131, + "lazyOnboardingGzipBytes": 14130, "lazyLocaleFiles": [ - "houseplan-assets/de-Dc1N8boU.js", - "houseplan-assets/fr-Cw28JMxl.js" + "houseplan-assets/de-C8CTJVIy.js", + "houseplan-assets/fr-BZ8kLYXx.js" ], - "lazyLocaleGzipBytes": 48871, + "lazyLocaleGzipBytes": 48851, "files": [ { - "path": "houseplan-assets/backdrop-pick-Di7bhm6e.js", - "sha256": "a166e065bb3b3d4905c6e8e46c5c5157c32d03d58b8ece49caa661d78a4bf4a9", + "path": "houseplan-assets/backdrop-pick-Qwoc8608.js", + "sha256": "a2c070ff6c9bc13468de7fd1186f0a8f6ed4c67a2c7e75f4fb3602fd7f9620a1", "rawBytes": 20974, - "gzipBytes": 7176, + "gzipBytes": 7175, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-qfwHeLJR.js" + "houseplan-assets/houseplan-card-BfnX2cmD.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-Dc1N8boU.js", - "sha256": "d5707d18ebb3f3f423037557e1692cf038337ac60655fa6684f3b596afbce5bf", + "path": "houseplan-assets/de-C8CTJVIy.js", + "sha256": "0ddb6891701ef4616cccc23c2bf0b4634d63f7c82e57eed66d4d0eba519392c5", "rawBytes": 81798, - "gzipBytes": 24707, + "gzipBytes": 24696, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-DWFSXWYH.js", - "sha256": "dcbb29ac4c28f8639044dee93688768b67d3044e6ec06dff59d028665a9e73e3", + "path": "houseplan-assets/editor-6sdKa_hR.js", + "sha256": "b9988877c92560342d183269001e88afd8576bb089edcd29a69726773a1b723a", "rawBytes": 3826, - "gzipBytes": 1584, + "gzipBytes": 1580, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-qfwHeLJR.js" + "houseplan-assets/houseplan-card-BfnX2cmD.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-Cw28JMxl.js", - "sha256": "8209da223a0b5fe0ea3681a1a8df7f6d2a28ea4d6376953b21be47a5b2257397", + "path": "houseplan-assets/fr-BZ8kLYXx.js", + "sha256": "5bfeec11b1ff21645dd420737053d7e1185d9db0638702fc19e6de5714b8d099", "rawBytes": 83973, - "gzipBytes": 24164, + "gzipBytes": 24155, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-qfwHeLJR.js", - "sha256": "2bd83b9350a1b4e702d28660cdc3b38a5daa3da16f9de47ddd5a839417443cbc", + "path": "houseplan-assets/houseplan-card-BfnX2cmD.js", + "sha256": "c8eae43582a4c434cc16f1509075cef72fe565ab7a8a368286e8f2323f549883", "rawBytes": 1033605, - "gzipBytes": 290242, + "gzipBytes": 290222, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-Dc1N8boU.js", - "houseplan-assets/editor-DWFSXWYH.js", - "houseplan-assets/fr-Cw28JMxl.js", - "houseplan-assets/houseplan-editor-runtime-BQ2FUiZP.js", - "houseplan-assets/houseplan-onboarding-runtime-OhzyGbC7.js" + "houseplan-assets/de-C8CTJVIy.js", + "houseplan-assets/editor-6sdKa_hR.js", + "houseplan-assets/fr-BZ8kLYXx.js", + "houseplan-assets/houseplan-editor-runtime-Bn8Z-ZQm.js", + "houseplan-assets/houseplan-onboarding-runtime-Dd03IF7p.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-BQ2FUiZP.js", - "sha256": "504fe0626f810cd221ba57a8b9807e0d4250da17545cd8ba0609d44bef967c88", + "path": "houseplan-assets/houseplan-editor-runtime-Bn8Z-ZQm.js", + "sha256": "7656326f1d919ec76f5aec377ade849f45ba632e7fe6c5831d8558907c6c9143", "rawBytes": 572919, - "gzipBytes": 149282, + "gzipBytes": 149278, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-Di7bhm6e.js", - "houseplan-assets/houseplan-card-qfwHeLJR.js" + "houseplan-assets/backdrop-pick-Qwoc8608.js", + "houseplan-assets/houseplan-card-BfnX2cmD.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-OhzyGbC7.js", - "sha256": "54105c7da5f96f26c7ee199726687ef046058bcb58f3ef27a2ff7b51e73c7415", + "path": "houseplan-assets/houseplan-onboarding-runtime-Dd03IF7p.js", + "sha256": "1ba3a9f473ac3952a9d4931d2d84b54dde6215221652a9913f18da04c63b3889", "rawBytes": 28088, "gzipBytes": 6955, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-Di7bhm6e.js", - "houseplan-assets/houseplan-card-qfwHeLJR.js" + "houseplan-assets/backdrop-pick-Qwoc8608.js", + "houseplan-assets/houseplan-card-BfnX2cmD.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "ea553cfdc707a127f7098a3302bf8a6037ba8378b6afa8d8e3f0ea9601f19e41", + "sha256": "8b826a7135d08125fcc826b462e82018cc8a9351f1728d3713cc15fcab1c158a", "rawBytes": 1183, - "gzipBytes": 799, + "gzipBytes": 796, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-qfwHeLJR.js" + "houseplan-assets/houseplan-card-BfnX2cmD.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Di7bhm6e.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Qwoc8608.js similarity index 94% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Di7bhm6e.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Qwoc8608.js index 1baad548..52cc39c0 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Di7bhm6e.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-Qwoc8608.js @@ -1,6 +1,6 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="4386b4e9f688f89cce5a1680c9f21b315933dd897345287b8c64700400b11c11";import{dd as e,c as t,A as i,a as o,b as n,de as s}from"./houseplan-card-qfwHeLJR.js";function r(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 s=i.left+n,r=i.top+n,a=Math.max(s,i.left+i.width-n),l=Math.max(r,i.top+i.height-n),h=Math.max(0,a-s),c=Math.max(0,l-r),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(s,p),Math.max(s,a-d));const _=e.bottom+o,g=e.top-o-u;let m="bottom",f=_;return _+u>l&&g>=r?(m="top",f=Math.min(Math.max(r,g),Math.max(r,l-u))):f=Math.min(Math.max(r,_),Math.max(r,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 s;this._open&&(s=n,!t&&s)&&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`