1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3708],{63708:(e,t,n)=>{n.r(t),n.d(t,{Floater:()=>d});var r=n(6029),l=n(82003),s=n(72422),c=n(80679),i=n(71033),o=n(55729),u=n(32988),a=n.n(u);let d=e=>{let t=(0,i.Zu)(),{postInfo:n,block:u={attrs:{className:void 0,triggerId:void 0,disableOnBreakpoint:void 0,zIndex:void 0},innerBlocks:[]},extraProps:d,children:f=[],innerStyle:g={},top:p=null,intersectProps:v={rootMargin:"0px"},handleStickyCondition:k}=e,{attrs:w,innerBlocks:h}=u,{className:E,triggerId:m,disableOnBreakpoint:x,zIndex:b}=w,R=null,y=(0,i.mS)("CONTEXT");if(y){let{state:e}=(0,o.useContext)(y);R=e.currentBreakpoint}let S=(0,i.tU)().USE_STORE;S&&(R=S(e=>e.currentBreakpoint));let[B,C]=(0,o.useState)(null),[N,O]=(0,o.useState)(0),T=(0,s.s)(e=>{e&&O(e.offsetHeight)},200),_=(0,o.useRef)(null),j=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=null,t=!1;if(m){let n=document.querySelector(".trigger-".concat(m));n?C(e=n):t=!0}else t=!0;if(t)try{if(!e){let t=document.getElementsByTagName("footer");e=t[t.length-1],C(e)}}catch(e){}j.current&&O(j.current.offsetHeight);let n=()=>T(j.current);window.addEventListener("resize",n);let r=()=>{if(!e||!_.current)return;let{top:n}=_.current.getBoundingClientRect(),r=e.getBoundingClientRect().top,l=t?0:e.offsetHeight;_.current.style.height="".concat(r+l-n,"px")};return r(),window.addEventListener("scroll",r),()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",r)}},[_,_.current,R]);let I=(0,o.useRef)(null),[L,z]=(e=>{let{root:t=null,rootMargin:n="0px",threshold:r=0,additionalIntersectDependencies:l=[]}=e,[s,c]=(0,o.useState)({}),[i,u]=(0,o.useState)(null),a=(0,o.useRef)(null);return(0,o.useEffect)(()=>{a.current&&a.current.disconnect(),a.current=new window.IntersectionObserver(e=>{let[t]=e;return c(t)},{root:t,rootMargin:n,threshold:r});let{current:e}=a;return i&&e.observe(i),()=>e.disconnect()},[i,t,n,r].concat(l)),[u,s]})(v);I&&(0,o.useEffect)(()=>{I.current&&L(I.current)},[I.current]),(0,o.useEffect)(()=>{if(z&&"boundingClientRect"in z){let e=(0,l.s)(),{boundingClientRect:t}=z,{top:n}=t;(null==I?void 0:I.current)&&(I.current.classList.toggle("is-sticky",z.intersectionRatio<1&&e>n),k&&k(z.intersectionRatio<1&&e>n))}},[z]);let[H,U]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=!x||1===(0,c._)(R,x);H!==e&&U(e)},[x,R]);let q=H?{position:"sticky",top:p||"15rem"}:{};return g&&Object.assign(q,g),b&&(q.zIndex=b),(0,r.jsx)("div",{ref:I,className:a()("wp-block-kaktus-blocks-floater",E),style:{height:"".concat(N,"px")},children:(0,r.jsx)("div",{ref:_,children:(0,r.jsxs)("div",{ref:j,style:q,className:"sticky",children:[h&&h.map((e,l)=>(0,r.jsx)(t,{postInfo:n,block:e,extraProps:d},l)),f]})})})}},82003:(e,t,n)=>{n.d(t,{s:()=>r});let r=()=>(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}}]);
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.