diff --git a/custom_components/houseplan/const.py b/custom_components/houseplan/const.py index 88d9b454..827f47bf 100755 --- a/custom_components/houseplan/const.py +++ b/custom_components/houseplan/const.py @@ -51,7 +51,7 @@ SCHEDULED_GRACE_S = 30 * 24 * 3600 FILES_DIR = "houseplan/files" ASSETS_DIR = "houseplan/assets" CONF_ADMIN_ONLY = "admin_only" -VERSION = "1.72.0-beta.2" +VERSION = "1.72.0-beta.3" DECOR_ASSETS_API_VERSION = 1 # #43: the support transport is deliberately not configurable. A user supplied diff --git a/custom_components/houseplan/frontend/houseplan-assets.json b/custom_components/houseplan/frontend/houseplan-assets.json index b344cb35..a447d46e 100644 --- a/custom_components/houseplan/frontend/houseplan-assets.json +++ b/custom_components/houseplan/frontend/houseplan-assets.json @@ -1,182 +1,182 @@ { "schema": 1, - "fingerprint": "71049c6ab3188a66c7112a997ed0f56cdd5e60d90668049e62f53c7c7e022ae7", + "fingerprint": "e7c2adf422d4fedfe2d4b29c74727ae74dd46823436e7da9250a4777b1ba7418", "entry": "houseplan-card.js", "initialViewFiles": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js", + "houseplan-assets/houseplan-card-Dzad_CGf.js", "houseplan-card.js" ], - "initialViewGzipBytes": 296722, + "initialViewGzipBytes": 296719, "lazyFiles": [ - "houseplan-assets/backdrop-pick-CEZBr4qx.js", - "houseplan-assets/de-DR62x0IQ.js", - "houseplan-assets/editor-BVOuJXsz.js", - "houseplan-assets/fr-D4YIJQhT.js", - "houseplan-assets/houseplan-editor-runtime-C5_zNXOu.js", - "houseplan-assets/houseplan-onboarding-runtime-C0Zl7v7b.js", - "houseplan-assets/hp-zigbee-topology-overlay-CnCZWJj6.js", - "houseplan-assets/live-interaction-runtime-C2JvTP_O.js", - "houseplan-assets/zigbee-topology-D9L1ESh4.js", - "houseplan-assets/zigbee-topology-runtime-DUxfg4Z9.js" + "houseplan-assets/backdrop-pick-DMkLFHkR.js", + "houseplan-assets/de-Cr-89HP-.js", + "houseplan-assets/editor-CJNTjUIy.js", + "houseplan-assets/fr-DKZ8hWr9.js", + "houseplan-assets/houseplan-editor-runtime-CVoz67fJ.js", + "houseplan-assets/houseplan-onboarding-runtime-D3aymMlw.js", + "houseplan-assets/hp-zigbee-topology-overlay-DzOph_RS.js", + "houseplan-assets/live-interaction-runtime-eQAnQ-sE.js", + "houseplan-assets/zigbee-topology-c40qIaLR.js", + "houseplan-assets/zigbee-topology-runtime-fETRrPi1.js" ], - "lazyGzipBytes": 240676, + "lazyGzipBytes": 240647, "lazyEditorFiles": [ - "houseplan-assets/backdrop-pick-CEZBr4qx.js", - "houseplan-assets/editor-BVOuJXsz.js", - "houseplan-assets/houseplan-editor-runtime-C5_zNXOu.js", - "houseplan-assets/zigbee-topology-D9L1ESh4.js" + "houseplan-assets/backdrop-pick-DMkLFHkR.js", + "houseplan-assets/editor-CJNTjUIy.js", + "houseplan-assets/houseplan-editor-runtime-CVoz67fJ.js", + "houseplan-assets/zigbee-topology-c40qIaLR.js" ], - "lazyEditorGzipBytes": 178334, + "lazyEditorGzipBytes": 178325, "lazyOnboardingFiles": [ - "houseplan-assets/backdrop-pick-CEZBr4qx.js", - "houseplan-assets/houseplan-onboarding-runtime-C0Zl7v7b.js" + "houseplan-assets/backdrop-pick-DMkLFHkR.js", + "houseplan-assets/houseplan-onboarding-runtime-D3aymMlw.js" ], "lazyOnboardingGzipBytes": 14241, "lazyLocaleFiles": [ - "houseplan-assets/de-DR62x0IQ.js", - "houseplan-assets/fr-D4YIJQhT.js" + "houseplan-assets/de-Cr-89HP-.js", + "houseplan-assets/fr-DKZ8hWr9.js" ], - "lazyLocaleGzipBytes": 49115, + "lazyLocaleGzipBytes": 49104, "files": [ { - "path": "houseplan-assets/backdrop-pick-CEZBr4qx.js", - "sha256": "709ac3421f7630a539c5c1c27248b39f76e6d9d2b54b75057abb0b4af70bc844", + "path": "houseplan-assets/backdrop-pick-DMkLFHkR.js", + "sha256": "384450870956f8ca5a72cf2d8d07dc88d87f92c6881ae7e88dc18695d0aca575", "rawBytes": 21417, - "gzipBytes": 7282, + "gzipBytes": 7281, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/de-DR62x0IQ.js", - "sha256": "0377277d00b6e025e587aa7404a3cecea12c56d873fa9741680a4ab246914d09", + "path": "houseplan-assets/de-Cr-89HP-.js", + "sha256": "3424417404f8b253837205e5b78c734c9bfd5730d0f6c69b117a8412503ea256", "rawBytes": 82182, - "gzipBytes": 24827, + "gzipBytes": 24821, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/editor-BVOuJXsz.js", - "sha256": "efde2f9d2f8bc1f5fb961bb3c57feb8a291018f2871c4c068ab60bae58106446", + "path": "houseplan-assets/editor-CJNTjUIy.js", + "sha256": "ca584266dd1a4c030504fdfbf3b6e5fa685fd16843fcb3102d4ec43ac8e76a59", "rawBytes": 3831, - "gzipBytes": 1583, + "gzipBytes": 1581, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/fr-D4YIJQhT.js", - "sha256": "e5c0ff025e2826a8a43b53e6af22c7314a5b72effd2b41d7cfd38a128f998925", + "path": "houseplan-assets/fr-DKZ8hWr9.js", + "sha256": "9e978437d010589c9f0c29889f27077bc2ac39501d955e0f455eccfc1fcc35b4", "rawBytes": 84312, - "gzipBytes": 24288, + "gzipBytes": 24283, "isEntry": false, "imports": [], "dynamicImports": [] }, { - "path": "houseplan-assets/houseplan-card-Csq_DR2Y.js", - "sha256": "2751d48b52d10030532b2de87f0f0c7f38c283223bae57c8728b2717b115c353", + "path": "houseplan-assets/houseplan-card-Dzad_CGf.js", + "sha256": "97483ed191736bdd71f6f7969afac2ce35cd8b9fdc11b7de453e0d5c135994df", "rawBytes": 1053904, - "gzipBytes": 295925, + "gzipBytes": 295926, "isEntry": false, "imports": [], "dynamicImports": [ - "houseplan-assets/de-DR62x0IQ.js", - "houseplan-assets/editor-BVOuJXsz.js", - "houseplan-assets/fr-D4YIJQhT.js", - "houseplan-assets/houseplan-editor-runtime-C5_zNXOu.js", - "houseplan-assets/houseplan-onboarding-runtime-C0Zl7v7b.js", - "houseplan-assets/hp-zigbee-topology-overlay-CnCZWJj6.js", - "houseplan-assets/live-interaction-runtime-C2JvTP_O.js" + "houseplan-assets/de-Cr-89HP-.js", + "houseplan-assets/editor-CJNTjUIy.js", + "houseplan-assets/fr-DKZ8hWr9.js", + "houseplan-assets/houseplan-editor-runtime-CVoz67fJ.js", + "houseplan-assets/houseplan-onboarding-runtime-D3aymMlw.js", + "houseplan-assets/hp-zigbee-topology-overlay-DzOph_RS.js", + "houseplan-assets/live-interaction-runtime-eQAnQ-sE.js" ] }, { - "path": "houseplan-assets/houseplan-editor-runtime-C5_zNXOu.js", - "sha256": "db3ca36d567fb682fb633555bdfa963db0d2f5e9682c1532bdf6ef81c17591fc", + "path": "houseplan-assets/houseplan-editor-runtime-CVoz67fJ.js", + "sha256": "46fc38e58a35df471132386af3898a558d0f02e1c0350d2997edcdcdd0e32183", "rawBytes": 622491, - "gzipBytes": 164622, + "gzipBytes": 164620, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-CEZBr4qx.js", - "houseplan-assets/houseplan-card-Csq_DR2Y.js", - "houseplan-assets/zigbee-topology-D9L1ESh4.js" + "houseplan-assets/backdrop-pick-DMkLFHkR.js", + "houseplan-assets/houseplan-card-Dzad_CGf.js", + "houseplan-assets/zigbee-topology-c40qIaLR.js" ], "dynamicImports": [ - "houseplan-assets/zigbee-topology-runtime-DUxfg4Z9.js" + "houseplan-assets/zigbee-topology-runtime-fETRrPi1.js" ] }, { - "path": "houseplan-assets/houseplan-onboarding-runtime-C0Zl7v7b.js", - "sha256": "bb156e1a1244328a728875141ddf47d2ebe0d1e12e763eb1336e2f72837bcfaf", + "path": "houseplan-assets/houseplan-onboarding-runtime-D3aymMlw.js", + "sha256": "85dfe77718c0ae7b1f8d9e23facc0f7d2670303237b4489af0b3455ce4fbdea8", "rawBytes": 28088, - "gzipBytes": 6959, + "gzipBytes": 6960, "isEntry": false, "imports": [ - "houseplan-assets/backdrop-pick-CEZBr4qx.js", - "houseplan-assets/houseplan-card-Csq_DR2Y.js" + "houseplan-assets/backdrop-pick-DMkLFHkR.js", + "houseplan-assets/houseplan-card-Dzad_CGf.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/hp-zigbee-topology-overlay-CnCZWJj6.js", - "sha256": "aac582f8d2e0586aeed749ff9581f1fb7d11bb15493cc939bd37b61f903c05aa", + "path": "houseplan-assets/hp-zigbee-topology-overlay-DzOph_RS.js", + "sha256": "44b33d85c3783c1317469c33979c9546f4b819065859a5e0bd95ac6a9ff5b4a0", "rawBytes": 6006, - "gzipBytes": 2376, + "gzipBytes": 2371, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js", - "houseplan-assets/zigbee-topology-D9L1ESh4.js", - "houseplan-assets/zigbee-topology-runtime-DUxfg4Z9.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js", + "houseplan-assets/zigbee-topology-c40qIaLR.js", + "houseplan-assets/zigbee-topology-runtime-fETRrPi1.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/live-interaction-runtime-C2JvTP_O.js", - "sha256": "91e8a03ebb3fb35b89c974e2bcf3ee1eff8523f9d9cb1ac93a061c3f751706d1", + "path": "houseplan-assets/live-interaction-runtime-eQAnQ-sE.js", + "sha256": "20b7763e70a6839fc11ad95edae4032c6f6159d0fa408d7a5bfa50dfbd0ca1eb", "rawBytes": 5196, - "gzipBytes": 2128, + "gzipBytes": 2126, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/zigbee-topology-D9L1ESh4.js", - "sha256": "817e5b42008db12cdf922275098eb06a536408dbd01f464859dccee434c2451b", + "path": "houseplan-assets/zigbee-topology-c40qIaLR.js", + "sha256": "6d9b329b0e56a525638ba11f388638ad583c94e61c361484d4ba6f85ad6c2732", "rawBytes": 12382, - "gzipBytes": 4847, + "gzipBytes": 4843, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js" ], "dynamicImports": [] }, { - "path": "houseplan-assets/zigbee-topology-runtime-DUxfg4Z9.js", - "sha256": "8197d48ba2f6eb615024f0cabca6ff12c10a3442fa19ebcd536bd5d3d5586c34", + "path": "houseplan-assets/zigbee-topology-runtime-fETRrPi1.js", + "sha256": "1c93cc0b92ad7a44c9cbd6c9bab9fded6f21fbb4d6e194befe260eed3fb4c466", "rawBytes": 3941, - "gzipBytes": 1764, + "gzipBytes": 1761, "isEntry": false, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js", - "houseplan-assets/zigbee-topology-D9L1ESh4.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js", + "houseplan-assets/zigbee-topology-c40qIaLR.js" ], "dynamicImports": [] }, { "path": "houseplan-card.js", - "sha256": "dbba45693954cf08e2165d88bdcb9e5c295d3782fe5fae9943e079e22135e22c", + "sha256": "26075a61cfd33425279f0906c3e9d2d4a6ca5992ebb58da65f7a83aa79ac79b1", "rawBytes": 1183, - "gzipBytes": 797, + "gzipBytes": 793, "isEntry": true, "imports": [ - "houseplan-assets/houseplan-card-Csq_DR2Y.js" + "houseplan-assets/houseplan-card-Dzad_CGf.js" ], "dynamicImports": [] } diff --git a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CEZBr4qx.js b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DMkLFHkR.js similarity index 94% rename from custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CEZBr4qx.js rename to custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DMkLFHkR.js index 3e82be4e..c905da47 100644 --- a/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-CEZBr4qx.js +++ b/custom_components/houseplan/frontend/houseplan-assets/backdrop-pick-DMkLFHkR.js @@ -1,6 +1,6 @@ -globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="71049c6ab3188a66c7112a997ed0f56cdd5e60d90668049e62f53c7c7e022ae7";import{D as e,c as t,A as i,u as o,v as n,ds as r}from"./houseplan-card-Csq_DR2Y.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),c=Math.max(0,l-s),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(r,p),Math.max(r,a-d));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(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 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`