diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index f0a5e95a..a7d75d8b 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,125 +1,125 @@ { "schema": 1, - "fingerprint": "bf79a021a18658bfd1b1f010c5950a4037a1877b70c83a58d2199426ae87b13e", + "fingerprint": "bea7a66e32ddb16ddf86373a31f7f7187c77087e60cd40b1af83bc4dc63b84ee", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-Cw4CTirO.js", + "houseplan-assets/houseplan-card-CAJGhl9a.js", "houseplan-card.js" ], - "initialViewGzipBytes": 294864, + "initialViewGzipBytes": 294862, "lazyFiles": [ - "houseplan-assets/backdrop-pick-BsKPnSSu.js", - "houseplan-assets/de-Dy-ghnPP.js", - "houseplan-assets/editor-DKGwV_h8.js", - "houseplan-assets/fr-BSTEK8M3.js", - "houseplan-assets/houseplan-editor-runtime-CpIoaI71.js", - "houseplan-assets/houseplan-onboarding-runtime-BS6H8IN7.js" + "houseplan-assets/backdrop-pick-DKi7O-33.js", + "houseplan-assets/de-sKrd9mey.js", + "houseplan-assets/editor-DJpGQNMT.js", + "houseplan-assets/fr-pbogmEhD.js", + "houseplan-assets/houseplan-editor-runtime-CqfpB4F2.js", + "houseplan-assets/houseplan-onboarding-runtime-DFYoQZvw.js" ], - "lazyGzipBytes": 223587, + "lazyGzipBytes": 223565, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-BsKPnSSu.js", - "houseplan-assets/editor-DKGwV_h8.js", - "houseplan-assets/houseplan-editor-runtime-CpIoaI71.js" + "houseplan-assets/backdrop-pick-DKi7O-33.js", + "houseplan-assets/editor-DJpGQNMT.js", + "houseplan-assets/houseplan-editor-runtime-CqfpB4F2.js" ], - "lazyEditorGzipBytes": 167513, + "lazyEditorGzipBytes": 167511, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-BsKPnSSu.js", - "houseplan-assets/houseplan-onboarding-runtime-BS6H8IN7.js" + "houseplan-assets/backdrop-pick-DKi7O-33.js", + "houseplan-assets/houseplan-onboarding-runtime-DFYoQZvw.js" ], - "lazyOnboardingGzipBytes": 14235, + "lazyOnboardingGzipBytes": 14236, "lazyLocaleFiles": [ - "houseplan-assets/de-Dy-ghnPP.js", - "houseplan-assets/fr-BSTEK8M3.js" + "houseplan-assets/de-sKrd9mey.js", + "houseplan-assets/fr-pbogmEhD.js" ], - "lazyLocaleGzipBytes": 49119, + "lazyLocaleGzipBytes": 49099, "files": [ { - "path": "houseplan-assets/backdrop-pick-BsKPnSSu.js", - "sha256": "d2e57428067c095214eae8abd98cb3c68692539bc237b71f905b48fb20f91964", + "path": "houseplan-assets/backdrop-pick-DKi7O-33.js", + "sha256": "c2cd0abaf7601b7f5785d3a56b2496c3567ebd6163493cceee90ba606c73d777", "rawBytes": 21418, - "gzipBytes": 7280, + "gzipBytes": 7281, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cw4CTirO.js" + "houseplan-assets/houseplan-card-CAJGhl9a.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-Dy-ghnPP.js", - "sha256": "aff9984ed069b9bd33d529810f0f9200c020d1a0b5808e8cab2c049c94a87e4d", + "path": "houseplan-assets/de-sKrd9mey.js", + "sha256": "89db148dfa494553b7ee47577bbf6005b9b7cf7797a1d7b5f54dbe454023dd8e", "rawBytes": 82182, - "gzipBytes": 24829, + "gzipBytes": 24819, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-DKGwV_h8.js", - "sha256": "7ab6b6d6374f1caeb71e7bd513b463d7c9a4a2d677f73988788f8e1a9c51a034", + "path": "houseplan-assets/editor-DJpGQNMT.js", + "sha256": "cb758f3991f6a7fe4aa3927c8e99be63f6ac065869be54fb13e62d03af53a3de", "rawBytes": 3826, - "gzipBytes": 1582, + "gzipBytes": 1580, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Cw4CTirO.js" + "houseplan-assets/houseplan-card-CAJGhl9a.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-BSTEK8M3.js", - "sha256": "9e194ccb92dd69798216b38ed5812172f4364de498f902c35e03aedbd7a43899", + "path": "houseplan-assets/fr-pbogmEhD.js", + "sha256": "5c67654a7ad4eb826242f463267d3d825c6de87634e5e49c8131fedd8bf79dc0", "rawBytes": 84312, - "gzipBytes": 24290, + "gzipBytes": 24280, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-Cw4CTirO.js", - "sha256": "94c5d6ad187335493fd09af247fddfa638ed9ead59be92111adc82814545c9a2", - "rawBytes": 1047221, + "path": "houseplan-assets/houseplan-card-CAJGhl9a.js", + "sha256": "5aa26a1b0c9563d7f3333fe73285882c8ffb92473092defc93896930a45b1b63", + "rawBytes": 1047324, "gzipBytes": 294068, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-Dy-ghnPP.js", - "houseplan-assets/editor-DKGwV_h8.js", - "houseplan-assets/fr-BSTEK8M3.js", - "houseplan-assets/houseplan-editor-runtime-CpIoaI71.js", - "houseplan-assets/houseplan-onboarding-runtime-BS6H8IN7.js" + "houseplan-assets/de-sKrd9mey.js", + "houseplan-assets/editor-DJpGQNMT.js", + "houseplan-assets/fr-pbogmEhD.js", + "houseplan-assets/houseplan-editor-runtime-CqfpB4F2.js", + "houseplan-assets/houseplan-onboarding-runtime-DFYoQZvw.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-CpIoaI71.js", - "sha256": "a68f1bb0e2d490e2c0184c8431b72c616c91b9227d41051a576efd1b288fba2d", + "path": "houseplan-assets/houseplan-editor-runtime-CqfpB4F2.js", + "sha256": "757ffb370808136785f422f87700ba503df72c574a089262821a5936bc90e52e", "rawBytes": 601994, - "gzipBytes": 158651, + "gzipBytes": 158650, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-BsKPnSSu.js", - "houseplan-assets/houseplan-card-Cw4CTirO.js" + "houseplan-assets/backdrop-pick-DKi7O-33.js", + "houseplan-assets/houseplan-card-CAJGhl9a.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-BS6H8IN7.js", - "sha256": "1742bc46e8eec52ff6425bbd2b99514622afec9aaf6c56a838bdf08ad0564a78", + "path": "houseplan-assets/houseplan-onboarding-runtime-DFYoQZvw.js", + "sha256": "1109e83ac014dadd2fbc28bcc2d3006249daf3511bbb2a04674f4060788f3bb4", "rawBytes": 28088, "gzipBytes": 6955, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-BsKPnSSu.js", - "houseplan-assets/houseplan-card-Cw4CTirO.js" + "houseplan-assets/backdrop-pick-DKi7O-33.js", + "houseplan-assets/houseplan-card-CAJGhl9a.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "bd0967766ba0f04b0d8326c37f693ff627eff4e4b5a2e9164ddcd1ceacdcd3f8", + "sha256": "5af9f9b23349cdc8bc2369aa0c48c61c3552381b895c59df683385835789290b", "rawBytes": 1183, - "gzipBytes": 796, + "gzipBytes": 794, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-Cw4CTirO.js" + "houseplan-assets/houseplan-card-CAJGhl9a.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-BsKPnSSu.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DKi7O-33.js similarity index 99% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-BsKPnSSu.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DKi7O-33.js index a15a0922..6d938dd8 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-BsKPnSSu.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DKi7O-33.js @@ -1,4 +1,4 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="bf79a021a18658bfd1b1f010c5950a4037a1877b70c83a58d2199426ae87b13e";import{dk as e,c as t,A as i,j as o,k as n,dl as r}from"./houseplan-card-Cw4CTirO.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`