1"use strict";(self.webpackChunkpublic_web_patternlibrary=self.webpackChunkpublic_web_patternlibrary||[]).push([[168],{196(t,e,o){function n(t,e){const o=document.createElement("div"),n=document.createElement("div"),i=document.body||document.documentElement;n.classList.add("pw-tooltip__arrow"),o.classList.add("pw-tooltip"),o.setAttribute("role","tooltip"),o.innerText=e,o.id="pw-tooltip"+function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}(),o.appendChild(n);const r=()=>{const e=window.pageYOffset||i.scrollTop,n=window.pageXOffset||i.scrollLeft,r=i.clientTop||0,s=i.clientLeft||0,d=Math.round(t.getBoundingClientRect().left),l=Math.round(t.getBoundingClientRect().top+e-r),u=d+t.offsetWidth/2,a=o.offsetWidth/2;let c=0;var f;console.log(Math.round(t.getBoundingClientRect().left),n,s,t.offsetLeft+t.offsetWidth/2),o.setAttribute("style",`width: ${o.offsetWidth}px; top: ${l-6}px; right: auto; left: ${u-a}px`),u-a<=0&&(c=u-a-5,o.style.right="auto",o.style.left="5px"),u+a>=document.body.clientWidth&&(c=-(document.body.clientWidth-(u+a+5)),o.style.right="5px",o.style.left="auto"),f=c,o.querySelector(".pw-tooltip__arrow").setAttribute("style",`transform: translateX(${f}px);`)};t.after(o),t.setAttribute("aria-describedby",o.id),t.setAttribute("tabindex",0),r(),window.addEventListener("resize",t=>r()),t.addEventListener("touchstart",e=>{t.focus(),setTimeout(()=>{document.addEventListener("touchstart",function e(o){o.target!==t&&(t.blur(),document.removeEventListener("touchstart",e))},500)})})}o.d(e,{applyOnElement:()=>n})}}]);
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.