diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index 887064d3..28b33c40 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,125 +1,125 @@ { "schema": 1, - "fingerprint": "f5efceeeb4e6dc4bcc5007b22002220bf68b69fc77f6a42c5063001c23fe514f", + "fingerprint": "d90076d3f49d110c3959a6c08a86895a6b98ca810fe122b37b76e22adc38ad73", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-CqPFzxrj.js", + "houseplan-assets/houseplan-card-HIu1PXGU.js", "houseplan-card.js" ], - "initialViewGzipBytes": 290377, + "initialViewGzipBytes": 290460, "lazyFiles": [ - "houseplan-assets/backdrop-pick-yqQ-XytP.js", - "houseplan-assets/de-BZ8DJxmg.js", - "houseplan-assets/editor-C1k2VegW.js", - "houseplan-assets/fr-Bfx7FDK1.js", - "houseplan-assets/houseplan-editor-runtime-NGqI-hdQ.js", - "houseplan-assets/houseplan-onboarding-runtime-BcQpo6pu.js" + "houseplan-assets/backdrop-pick-CI0weKTj.js", + "houseplan-assets/de-Db5jQSzb.js", + "houseplan-assets/editor-DrFXz_Hr.js", + "houseplan-assets/fr-gYskL0hZ.js", + "houseplan-assets/houseplan-editor-runtime-BHxJWPq7.js", + "houseplan-assets/houseplan-onboarding-runtime-CXZ19w7L.js" ], - "lazyGzipBytes": 205802, + "lazyGzipBytes": 205822, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-yqQ-XytP.js", - "houseplan-assets/editor-C1k2VegW.js", - "houseplan-assets/houseplan-editor-runtime-NGqI-hdQ.js" + "houseplan-assets/backdrop-pick-CI0weKTj.js", + "houseplan-assets/editor-DrFXz_Hr.js", + "houseplan-assets/houseplan-editor-runtime-BHxJWPq7.js" ], - "lazyEditorGzipBytes": 148707, + "lazyEditorGzipBytes": 148716, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-yqQ-XytP.js", - "houseplan-assets/houseplan-onboarding-runtime-BcQpo6pu.js" + "houseplan-assets/backdrop-pick-CI0weKTj.js", + "houseplan-assets/houseplan-onboarding-runtime-CXZ19w7L.js" ], - "lazyOnboardingGzipBytes": 14026, + "lazyOnboardingGzipBytes": 14032, "lazyLocaleFiles": [ - "houseplan-assets/de-BZ8DJxmg.js", - "houseplan-assets/fr-Bfx7FDK1.js" + "houseplan-assets/de-Db5jQSzb.js", + "houseplan-assets/fr-gYskL0hZ.js" ], - "lazyLocaleGzipBytes": 50139, + "lazyLocaleGzipBytes": 50146, "files": [ { - "path": "houseplan-assets/backdrop-pick-yqQ-XytP.js", - "sha256": "4fc16219ca920754cf06c5c3ae4eeae3ed4d0d4c7083ef50ef45c1f785dc31d8", + "path": "houseplan-assets/backdrop-pick-CI0weKTj.js", + "sha256": "36f0fbfeccd0ac6981be68fc7446f7b548a5cb40a542b48e07331f2791e7f555", "rawBytes": 20636, - "gzipBytes": 7070, + "gzipBytes": 7072, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-CqPFzxrj.js" + "houseplan-assets/houseplan-card-HIu1PXGU.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-BZ8DJxmg.js", - "sha256": "351183289a7409a334fdadb6d76362e46314f01e288d91963e28bbe8dd8663a6", + "path": "houseplan-assets/de-Db5jQSzb.js", + "sha256": "412aaaff8a26a9d7fd6d5e4335711e821ea5ad38cc095b61a3ae56ece4c0a7e9", "rawBytes": 83981, - "gzipBytes": 25341, + "gzipBytes": 25344, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-C1k2VegW.js", - "sha256": "a07f442468fbc8d9581a67586ead9e17aa93e2dc51c302fd1f84fcd6dbf8d6f7", + "path": "houseplan-assets/editor-DrFXz_Hr.js", + "sha256": "cba3f4d097d84c823946d966677f02fcae841233c3a683e2deda6c7084f1f7f2", "rawBytes": 3826, - "gzipBytes": 1579, + "gzipBytes": 1582, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-CqPFzxrj.js" + "houseplan-assets/houseplan-card-HIu1PXGU.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-Bfx7FDK1.js", - "sha256": "f5cddc6163a0ad69c95b017b5784e83246d5bfb9d62e42ee904d257b5b93ecd9", + "path": "houseplan-assets/fr-gYskL0hZ.js", + "sha256": "6fe8d00dfa1f3b29b669aa81b205547f49778c86441e5723ab3982b970af09b0", "rawBytes": 86212, - "gzipBytes": 24798, + "gzipBytes": 24802, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-CqPFzxrj.js", - "sha256": "cfe289dae1528f5747ac849ff6908a2510e8c6051d4427b281d7d5794483f446", - "rawBytes": 1032333, - "gzipBytes": 289581, + "path": "houseplan-assets/houseplan-card-HIu1PXGU.js", + "sha256": "d43a961780a297835fa6b3d8b3ff534897b8376128afa9e7c1db7829dee74ee4", + "rawBytes": 1032568, + "gzipBytes": 289663, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-BZ8DJxmg.js", - "houseplan-assets/editor-C1k2VegW.js", - "houseplan-assets/fr-Bfx7FDK1.js", - "houseplan-assets/houseplan-editor-runtime-NGqI-hdQ.js", - "houseplan-assets/houseplan-onboarding-runtime-BcQpo6pu.js" + "houseplan-assets/de-Db5jQSzb.js", + "houseplan-assets/editor-DrFXz_Hr.js", + "houseplan-assets/fr-gYskL0hZ.js", + "houseplan-assets/houseplan-editor-runtime-BHxJWPq7.js", + "houseplan-assets/houseplan-onboarding-runtime-CXZ19w7L.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-NGqI-hdQ.js", - "sha256": "52c7a264ce85adc41430e15c1e732dfc3efa1ab69669c6b37b493ab6a24e2461", + "path": "houseplan-assets/houseplan-editor-runtime-BHxJWPq7.js", + "sha256": "df085c635b6b02fa11c1b0b5d9f8e87fc56309ed905de32f6eaee5b8e7c10af4", "rawBytes": 543265, - "gzipBytes": 140058, + "gzipBytes": 140062, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-yqQ-XytP.js", - "houseplan-assets/houseplan-card-CqPFzxrj.js" + "houseplan-assets/backdrop-pick-CI0weKTj.js", + "houseplan-assets/houseplan-card-HIu1PXGU.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-BcQpo6pu.js", - "sha256": "361af59cb2aae503e55ca84b4ee6fd0abea727f9a347a7e650a2a9a1fdb29951", + "path": "houseplan-assets/houseplan-onboarding-runtime-CXZ19w7L.js", + "sha256": "0a7828064aa00462836ba7d7fd7bd975b9a0751894d5546aa5c1bad60b987702", "rawBytes": 28088, - "gzipBytes": 6956, + "gzipBytes": 6960, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-yqQ-XytP.js", - "houseplan-assets/houseplan-card-CqPFzxrj.js" + "houseplan-assets/backdrop-pick-CI0weKTj.js", + "houseplan-assets/houseplan-card-HIu1PXGU.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "ff2ab3744132b6369ee4b6798860166db78f3f685484fcedc8c2876ce67c579a", + "sha256": "0ac5ff1feac770dfe96547960ca7e5816d4f501fc37cdaf47f5e6cd93d3e427b", "rawBytes": 1183, - "gzipBytes": 796, + "gzipBytes": 797, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-CqPFzxrj.js" + "houseplan-assets/houseplan-card-HIu1PXGU.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-yqQ-XytP.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CI0weKTj.js similarity index 99% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-yqQ-XytP.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CI0weKTj.js index a52c40d4..43792093 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-yqQ-XytP.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CI0weKTj.js @@ -1,4 +1,4 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f5efceeeb4e6dc4bcc5007b22002220bf68b69fc77f6a42c5063001c23fe514f";import{d6 as e,c as t,A as i,a as o,b as n,d7 as s}from"./houseplan-card-CqPFzxrj.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`