PageSourceSearch

https://www.packeta.com/_nuxt/lo2DHBTD.js

js packeta.com collected 2026-09-24 10:06:09 UTC 3,600 bytes, 2 lines download raw bytes

1import{o as D,aR as F,Q as S,B as l,a1 as q,a4 as Q,p as c,u as h,q as d,t as N,x as L,af as P,D as W,T as b,y as E,aS as x,r as U,G as R,C as z,_ as J}from"./CqfRb7S0.js";import{M as u}from"./Spz6_S_2.js";import{M as X}from"./D4HbfhmZ.js";const Y={key:0,class:"tooltip-wrapper"},Z=["onKeydown"],ee={key:1,class:"icon-wrapper d-flex align-items-center justify-content-center"},te=["innerHTML"],le={key:1,class:"icon-wrapper d-flex align-items-center justify-content-center"},ae=D({__name:"MoleculeTooltip",props:{description:{},iconName:{},nudge:{},darkSmall:{type:Boolean},defaultPosition:{}},setup(A){const $=F(),f=A,I=S(()=>f.description&&Object.keys(f.description).length>0),B=S(()=>!!$.content),_=l(null),v=l(null),a=l(null),H=S(()=>!!$.activator),C=l(null),i=l(null),o=l(null),p=l(!1),k=()=>{p.value=!p.value},j=()=>{p.value=!1},G=()=>{const e=_.value;if(!e)return;const s=C.value;v.value=e.clientWidth,a.value=e.clientHeight,i.value=(s==null?void 0:s.clientWidth)||null,o.value=(s==null?void 0:s.clientHeight)||null},O=()=>{if(!v.value||!a.value||!o.value||!i.value)return;const e=_.value;if(!e)return;const{left:s,right:T}=e.getBoundingClientRect(),{innerWidth:w}=window;switch(r.value){case u.LEFT:s-i.value<0&&(r.value=u.BOTTOM);break;case u.RIGHT:T+i.value>w&&(r.value=u.BOTTOM);break}const m=-(((f.darkSmall?i.value:300)-v.value)/2),g=i.value/2-v.value/2,V=i.value/2-8,M=f.nudge||5;switch(r.value){case"left":a.value===o.value?n.value=0:a.value>=o.value?n.value=(a.value-o.value)/2:n.value=-(o.value-a.value)/2,t.value=-i.value-M;break;case"top":n.value=-o.value-M,t.value=m;break;case"right":a.value===o.value?n.value=0:a.value>=o.value?n.value=(a.value-o.value)/2:n.value=-(o.value-a.value)/2,t.value=v.value+M;break;default:T+g>w?(t.value=m-(T+g-w)-25,y.value=`${V+(m-(m-(T+g-w)-25))}px`):g>=(t.value||0)?(t.value=-(t.value||0),y.value=`${t.value+v.value/2}px`):(t.value=m,y.value=void 0),n.value=a.value+M}},r=l(u.BOTTOM),n=l(null),t=l(null),K=l(),y=l();return q(()=>{r.value=f.defaultPosition||u.BOTTOM,setTimeout(()=>{G(),O(),window.addEventListener("resize",O)},100)}),Q(()=>{window.removeEventListener("resize",O)}),(e,s)=>I.value||B.value?(d(),c("div",Y,[N("div",{class:"d-none d-sm-block position-relative",onMouseenter:k,onMouseleave:k,onKeydown:[P(W(k,["exact","prevent"]),["enter"]),P(W(k,["exact","prevent"]),["esc"])]},[N("div",{ref_key:"activatorRef",ref:_,class:"activator",tabindex:"0",onBlur:j},[H.value?b(e.$slots,"activator",{key:0},void 0,!0):(d(),c("div",ee,[L(E,{name:e.iconName||"status-icon-circle-info",class:"icon"},null,8,["name"])]))],544),p.value||n.value===null||t.value===null?(d(),c("div",{key:0,ref_key:"tooltipRef",ref:C,class:U(["tooltip-box",{visible:p.value,rendering:n.value===null||t.value===null,left:r.value===R(u).LEFT,top:r.value===R(u).TOP,right:r.value===R(u).RIGHT,"dark-small":e.darkSmall,"p-16":!e.darkSmall}]),style:x({top:`${n.value}px`,left:`${t.value}px`})},[e.darkSmall?h("",!0):(d(),c("span",{key:0,class:"arrow",style:x({top:K.value,left:y.value})},null,4)),B.value?b(e.$slots,"content",{key:1},void 0,!0):e.description?(d(),c("div",{key:2,innerHTML:e.$renderStoryblokRichtext(e.description)},null,8,te)):h("",!0)],6)):h("",!0)],40,Z),L(X,{"use-only-mobile-version":""},{activator:z(()=>[H.value?b(e.$slots,"activator",{key:0},void 0,!0):(d(),c("div",le,[L(E,{name:e.iconName||"status-icon-circle-info",class:"icon"},null,8,["name"])]))]),content:z(()=>[B.value?b(e.$slots,"content",{key:0},void 0,!0):h("",!0)]),_:3})])):h("",!0)}}),ue=J(ae,[["__scopeId","data-v-5f2040e8"]]);export{ue as M};
2//# sourceMappingURL=lo2DHBTD.js.map

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.