diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index c92a66f5..632d2fc0 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,125 +1,125 @@ { "schema": 1, - "fingerprint": "ffd36ef35f81a27598b236218bc3ea18d4b46ed77613c5fcb3197c5104fc232b", + "fingerprint": "bd405d5ce3531f7484e3d780d84bf9a6120e8bf7226acbfbcd15eb29ef573e40", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-gMOWmAJQ.js", + "houseplan-assets/houseplan-card-cmbllkdu.js", "houseplan-card.js" ], - "initialViewGzipBytes": 287386, + "initialViewGzipBytes": 287575, "lazyFiles": [ - "houseplan-assets/backdrop-pick-BmALn_WC.js", - "houseplan-assets/de-Drq02WaY.js", - "houseplan-assets/editor-BOsi41KI.js", - "houseplan-assets/fr-Cul7kCHo.js", - "houseplan-assets/houseplan-editor-runtime-DtAVtOU4.js", - "houseplan-assets/houseplan-onboarding-runtime-BtE_1V6_.js" + "houseplan-assets/backdrop-pick-D66Ner2L.js", + "houseplan-assets/de-C9HvYpJv.js", + "houseplan-assets/editor-CyKPZvNS.js", + "houseplan-assets/fr-BjAKtQwB.js", + "houseplan-assets/houseplan-editor-runtime-bwdFd5UE.js", + "houseplan-assets/houseplan-onboarding-runtime-B7KlxNo_.js" ], - "lazyGzipBytes": 199836, + "lazyGzipBytes": 199808, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-BmALn_WC.js", - "houseplan-assets/editor-BOsi41KI.js", - "houseplan-assets/houseplan-editor-runtime-DtAVtOU4.js" + "houseplan-assets/backdrop-pick-D66Ner2L.js", + "houseplan-assets/editor-CyKPZvNS.js", + "houseplan-assets/houseplan-editor-runtime-bwdFd5UE.js" ], - "lazyEditorGzipBytes": 144691, + "lazyEditorGzipBytes": 144676, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-BmALn_WC.js", - "houseplan-assets/houseplan-onboarding-runtime-BtE_1V6_.js" + "houseplan-assets/backdrop-pick-D66Ner2L.js", + "houseplan-assets/houseplan-onboarding-runtime-B7KlxNo_.js" ], - "lazyOnboardingGzipBytes": 14034, + "lazyOnboardingGzipBytes": 14024, "lazyLocaleFiles": [ - "houseplan-assets/de-Drq02WaY.js", - "houseplan-assets/fr-Cul7kCHo.js" + "houseplan-assets/de-C9HvYpJv.js", + "houseplan-assets/fr-BjAKtQwB.js" ], - "lazyLocaleGzipBytes": 48184, + "lazyLocaleGzipBytes": 48176, "files": [ { - "path": "houseplan-assets/backdrop-pick-BmALn_WC.js", - "sha256": "4dc555f222d405b87ad4ae04f3dc07126e48195c66f8eac9465a6bb3e771804c", + "path": "houseplan-assets/backdrop-pick-D66Ner2L.js", + "sha256": "6f8e893fe459b025f2f89ef3cf48afd07be82699a34489d446e6d2bbea1e0f44", "rawBytes": 20636, - "gzipBytes": 7073, + "gzipBytes": 7068, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-gMOWmAJQ.js" + "houseplan-assets/houseplan-card-cmbllkdu.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-Drq02WaY.js", - "sha256": "359a18eef16eab9a5856018014ac7b95a51d03a8c4ce3dc5fdcf1eb327f0e7a7", + "path": "houseplan-assets/de-C9HvYpJv.js", + "sha256": "c48bad47855be263551852c9e4350e6148c3bc0206ddd63136982d4414110c48", "rawBytes": 81096, - "gzipBytes": 24346, + "gzipBytes": 24342, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-BOsi41KI.js", - "sha256": "dc2cc78e84f8114cfd84adf29b45619a1d6e226d72c6831fbbeff722a25d81fc", + "path": "houseplan-assets/editor-CyKPZvNS.js", + "sha256": "f285f0141083e5ea3bb7069126474c1e9cfb7e9073f58cb8fed8963cc131848a", "rawBytes": 3826, - "gzipBytes": 1582, + "gzipBytes": 1578, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-gMOWmAJQ.js" + "houseplan-assets/houseplan-card-cmbllkdu.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-Cul7kCHo.js", - "sha256": "9e32a98d1f402f1fb02e62744d910c962c9e3d88b58bbe7795b08cbc53ec6285", + "path": "houseplan-assets/fr-BjAKtQwB.js", + "sha256": "b443ec61052a852b1f7d1982b402ee3cf85f9600382dd317b55caa0543da39e2", "rawBytes": 83283, - "gzipBytes": 23838, + "gzipBytes": 23834, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-gMOWmAJQ.js", - "sha256": "deb12ad2f9171e39418fa0aa90ae1f7e5509df3d7ac8ad8031914171ea4c817b", - "rawBytes": 1019048, - "gzipBytes": 286589, + "path": "houseplan-assets/houseplan-card-cmbllkdu.js", + "sha256": "1ac69d06e6d8717d0daa9634bb0ce911e4fded918904b06c34ac8290b3842d75", + "rawBytes": 1019911, + "gzipBytes": 286781, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-Drq02WaY.js", - "houseplan-assets/editor-BOsi41KI.js", - "houseplan-assets/fr-Cul7kCHo.js", - "houseplan-assets/houseplan-editor-runtime-DtAVtOU4.js", - "houseplan-assets/houseplan-onboarding-runtime-BtE_1V6_.js" + "houseplan-assets/de-C9HvYpJv.js", + "houseplan-assets/editor-CyKPZvNS.js", + "houseplan-assets/fr-BjAKtQwB.js", + "houseplan-assets/houseplan-editor-runtime-bwdFd5UE.js", + "houseplan-assets/houseplan-onboarding-runtime-B7KlxNo_.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-DtAVtOU4.js", - "sha256": "7a55d9593731d6feaf4a8ca11eb8b3d8a7eaf1c9760aa97f719002dbb5707d01", + "path": "houseplan-assets/houseplan-editor-runtime-bwdFd5UE.js", + "sha256": "01529edd319c84ce373d6086db952d6bdcad27d303c96c0dadb717bf16f9306e", "rawBytes": 527184, - "gzipBytes": 136036, + "gzipBytes": 136030, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-BmALn_WC.js", - "houseplan-assets/houseplan-card-gMOWmAJQ.js" + "houseplan-assets/backdrop-pick-D66Ner2L.js", + "houseplan-assets/houseplan-card-cmbllkdu.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-BtE_1V6_.js", - "sha256": "d55a2c25eed774e5af1db32e9a0b31e32eec9713eff91dc77156e8929f7d0042", + "path": "houseplan-assets/houseplan-onboarding-runtime-B7KlxNo_.js", + "sha256": "67bbf22592e7fcb3060012f104c0ff3ebe2b6ea29fa771e650d2fae8b4085ccd", "rawBytes": 28088, - "gzipBytes": 6961, + "gzipBytes": 6956, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-BmALn_WC.js", - "houseplan-assets/houseplan-card-gMOWmAJQ.js" + "houseplan-assets/backdrop-pick-D66Ner2L.js", + "houseplan-assets/houseplan-card-cmbllkdu.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "8329cbc9b7807d654eb773c7db7f5b63fd88ec99f6c3d00edcb1c880add37958", + "sha256": "46e873cfe52720c02c77556c3e39ec7f96b7171f7be332c59116216b49009691", "rawBytes": 1183, - "gzipBytes": 797, + "gzipBytes": 794, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-gMOWmAJQ.js" + "houseplan-assets/houseplan-card-cmbllkdu.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-BmALn_WC.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-D66Ner2L.js similarity index 99% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-BmALn_WC.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-D66Ner2L.js index 7db1e07b..786f81f6 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-BmALn_WC.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-D66Ner2L.js @@ -1,4 +1,4 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ffd36ef35f81a27598b236218bc3ea18d4b46ed77613c5fcb3197c5104fc232b";import{d6 as e,c as t,A as i,a as o,b as n,d7 as s}from"./houseplan-card-gMOWmAJQ.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`