PageSourceSearch

https://www.ahk.de/build/assets/member-tooltip-CjZUaAMM.js

js ahk.de collected 2026-09-24 08:50:21 UTC 3,117 bytes, 1 lines download raw bytes

1import{G as w,H as k,I as P,J as B,w as L,K as S,L as y,M as $,d as g,u as H,B as D,D as R,v as W,c as j,E as x,i as F,A as N,N as q,r as b}from"./app-BQ-43nIL.js";import{_ as G}from"./element-with-tooltip.scss_vue_type_style_index_0_src_true_lang-P7BBrpmz.js";const I=B?window:void 0;function _(s){var r;const o=y(s);return(r=o?.$el)!=null?r:o}function A(...s){let r,o,t,a;if(typeof s[0]=="string"||Array.isArray(s[0])?([o,t,a]=s,r=I):[r,o,t,a]=s,!r)return k;Array.isArray(o)||(o=[o]),Array.isArray(t)||(t=[t]);const f=[],p=()=>{f.forEach(l=>l()),f.length=0},u=(l,c,d,h)=>(l.addEventListener(c,d,h),()=>l.removeEventListener(c,d,h)),m=L(()=>[_(r),y(a)],([l,c])=>{if(p(),!l)return;const d=S(c)?{...c}:c;f.push(...o.flatMap(h=>t.map(M=>u(l,h,M,d))))},{immediate:!0,flush:"post"}),v=()=>{m(),p()};return $(v),v}let T=!1;function C(s,r,o={}){const{window:t=I,ignore:a=[],capture:f=!0,detectIframe:p=!1}=o;if(!t)return k;P&&!T&&(T=!0,Array.from(t.document.body.children).forEach(e=>e.addEventListener("click",k)),t.document.documentElement.addEventListener("click",k));let u=!0;const m=e=>y(a).some(n=>{if(typeof n=="string")return Array.from(t.document.querySelectorAll(n)).some(i=>i===e.target||e.composedPath().includes(i));{const i=_(n);return i&&(e.target===i||e.composedPath().includes(i))}});function v(e){const n=y(e);return n&&n.$.subTree.shapeFlag===16}function l(e,n){const i=y(e),E=i.$.subTree&&i.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(O=>O.el===n.target||n.composedPath().includes(O.el))}const c=e=>{const n=_(s);if(e.target!=null&&!(!(n instanceof Element)&&v(s)&&l(s,e))&&!(!n||n===e.target||e.composedPath().includes(n))){if(e.detail===0&&(u=!m(e)),!u){u=!0;return}r(e)}};let d=!1;const h=[A(t,"click",e=>{d||(d=!0,setTimeout(()=>{d=!1},0),c(e))},{passive:!0,capture:f}),A(t,"pointerdown",e=>{const n=_(s);u=!m(e)&&!!(n&&!e.composedPath().includes(n))},{passive:!0}),p&&A(t,"blur",e=>{setTimeout(()=>{var n;const i=_(s);((n=t.document.activeElement)==null?void 0:n.tagName)==="IFRAME"&&!i?.contains(t.document.activeElement)&&r(e)},0)})].filter(Boolean);return()=>h.forEach(e=>e())}const J={[w.mounted](s,r){const o=!r.modifiers.bubble;if(typeof r.value=="function")s.__onClickOutside_stop=C(s,r.value,{capture:o});else{const[t,a]=r.value;s.__onClickOutside_stop=C(s,t,Object.assign({capture:o},a))}},[w.unmounted](s){s.__onClickOutside_stop()}},z=g({__name:"member-tooltip",setup(s){const r=b(!1),o=b(!1),t=b("top-end"),a=H(D.MD);a.value&&(t.value="top-end"),L(a,l=>{l?t.value="top-end":t.value="top-start"});const f=l=>{r.value=l,u()},p=()=>{o.value=!1},u=()=>{r.value||p()},m=()=>{o.value=!0},v=()=>{o.value=!o.value,o.value||p()};return(l,c)=>R((j(),x(G,{type:"button",class:"u-reset-button",element:"button",role:"status","tooltip-offset":0,visible:o.value,"light-layout":!0,"tooltip-placement":t.value,"tooltip-is-hovered":r.value,onOnTooltipIsHover:f,onTouchstart:q(v,["prevent"]),onMouseover:m,onMouseleave:u},{"tooltip-content":F(()=>[N(l.$slots,"tooltip-custom-layout")]),_:3},8,["visible","tooltip-placement","tooltip-is-hovered"])),[[W(J),p]])}});export{z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.