PageSourceSearch

https://www.ru.is/_next/static/chunks/3062.e102d47035b2c282.js

js ru.is collected 2026-09-24 08:47:10 UTC 20,452 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3062,3708,6366],{13062:(e,t,n)=>{n.r(t),n.d(t,{ProgramHero:()=>p});var r=n(6029),l=n(32988),o=n.n(l),s=n(58633),i=n(57852),a=n(71033),c=n(46366),u=n(7658);let d=e=>{let{breadcrumbs:t}=e;return(0,r.jsxs)("div",{className:"program-hero__breadcrumbs",children:[(0,r.jsx)(u.$,{slug:"home"}),t.map((e,n)=>{let{title:l,link:i}=e,a=n+1===t.length,c=(null==l?void 0:l.length)?l.charAt(0).toUpperCase()+l.slice(1):l;return(0,r.jsx)("div",{className:o()({"is-last":a},"program-hero__breadcrumbs__link"),children:a?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("a",{className:"program-hero__breadcrumbs__link__label",disabled:!0,children:(0,r.jsx)("span",{className:"program-hero__breadcrumbs__link__text",children:c})})}):(0,r.jsx)(s.A,{href:i,prefetch:!1,className:"program-hero__breadcrumbs__link__label",children:(0,r.jsx)("span",{className:"program-hero__breadcrumbs__link__text",children:c})})},n)})]})},p=e=>{let t=(0,a.mS)("ANCHORS"),{postInfo:n,block:l}=e,{attrs:u}=l,{className:p,postType:h,postID:m,splitAfterCharacter:f,splitRemoveHyphen:g,color:v,backgroundImageStyle:b,blendMode:_,focalPoint:x,useCustomTitle:y,customTitle:k,customSubtitle:w}=u,{breadcrumbs:j,title_raw:S,department:E}=n,N=(null==j?void 0:j.length)-1,M={title:null==E?void 0:E.title,link:null==E?void 0:E.link,slug:""},L=E?[...j.slice(0,N),M,...j.slice(N)]:j,C=x?JSON.parse(x):null,T=b?{background:b,backgroundBlendMode:_,backgroundPosition:C?"".concat(100*C.x,"% ").concat(100*C.y,"%"):void 0}:{},P=y?k||"":S,D=y&&w?w:null,R=f>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:[P.substring(0,f),g?"":"-"]}),(0,r.jsx)("div",{children:P.substring(f)})]}):P;return(0,r.jsxs)("div",{className:o()("hr-render-program-hero",p),children:[(0,r.jsxs)("div",{className:"program-hero",children:[(0,r.jsx)("div",{className:"program-hero__background",style:T}),(0,r.jsx)("div",{className:"container",style:{height:"100%"},children:(0,r.jsxs)("div",{className:"program-hero__content-container",children:[(0,r.jsx)(d,{breadcrumbs:L}),(0,r.jsxs)("div",{className:"program-hero__text-container",children:["program"===h&&n.department?(0,r.jsx)(s.A,{href:n.department.link,className:"program-hero__department",children:n.department.title}):null,(0,r.jsx)("h1",{className:"program-hero__program",children:R}),D&&(0,r.jsx)("h2",{className:"program-hero__subtitle",children:D})]}),(0,r.jsx)("div",{className:"program-hero__inner-blocks",children:(0,r.jsx)(c.ProgramCard,{postInfo:n,block:{attrs:{postType:h,postID:m}},colorEditor:v,relatedPrograms:n.programs,excludeUsefulLinks:!0})})]})})]}),(0,r.jsx)(i.J,{anchors:t,colorSlug:v,showArrows:!0})]})}},46141:(e,t,n)=>{n.d(t,{Q:()=>r});let r=e=>{try{let t=JSON.parse(e);return{input1Value:t.input1,input2Value:t.input2,mediaValue:t.media,mediaIdValue:t.mediaId,mediaFocal:t.mediaFocal}}catch(t){return l(e)}},l=e=>{let t=null,n=null,r=null,l=null,o=e.split("[input2]=");if(1===o.length){let[e,n]=o[0].split("[media]=");if(t=e,n){let[e,t]=n.split("[mediaId]=");r=e,l=t||null}}else{t=o[0];let[e,s]=o[1].split("[media]=");if(n=e,s){let[e,t]=s.split("[mediaId]=");r=e,l=t||null}}return{input1Value:t,input2Value:n,mediaValue:r,mediaIdValue:l,mediaFocal:null}}},46366:(e,t,n)=>{n.r(t),n.d(t,{ProgramCard:()=>p});var r=n(6029),l=n(32988),o=n.n(l),s=n(55729),i=n(81278),a=n(46141);let c=e=>{let{label:t,links:n,className:l}=e;if(!n||!n.length)return null;let s=n.slice().sort((e,t)=>e.title.localeCompare(t.title));return(0,r.jsxs)("div",{className:o()("department-column__rowblock",l),children:[(0,r.jsx)("div",{className:"department-column__label",children:(0,r.jsx)("div",{children:t})}),s.map((e,t)=>(0,r.jsx)("a",{href:e.url,className:"department-column__value",children:e.title},t))]})},u=e=>{let{custom:t,programs:n,usefulLinks:l}=e,{locale:o}=(0,i.useRouter)(),s=e=>n.filter(t=>t&&t.meta&&t.meta.level_meta===e),u=s("undergraduate"),d=s("micro"),p=s("postgraduate"),h=s("doctor"),m=s("diploma"),f=s("base"),g=l.map(e=>{let{input1Value:t,input2Value:n}=(0,a.Q)(e);return{title:t,url:n}});return(0,r.jsxs)("div",{className:"department-column",children:[("is"===o?[{label:"Grunnn\xe1m",values:u},{label:"\xd6rn\xe1m",values:d},{label:"Meistaran\xe1m",values:p},{label:"Doktorsn\xe1m",values:h},{label:"Dipl\xf3man\xe1m",values:m},{label:"H\xe1sk\xf3lagrunnur",values:f}]:[{label:"Undergraduate",values:u},{label:"Micro",values:d},{label:"Postgraduate",values:p},{label:"Doctorate",values:h},{label:"Diploma",values:m},{label:"Preliminary studies",values:f}]).map((e,t)=>{var n;let l=null==e||null==(n=e.values)?void 0:n.map(e=>({title:e.title_raw,url:e.link}));return(0,r.jsx)(c,{label:e.label,links:l},t)}),(0,r.jsx)(c,{label:"is"===o?"Gagnlegir tenglar":"Useful links",links:g})]})},d=e=>{let{custom:t,usefulLinks:n}=e,{locale:l}=(0,i.useRouter)(),o=((e,t)=>{let{length_meta:n,credits_meta:r,degree_meta:l,certification_meta:o,internship_meta:s,distance_meta:i}=e,{years:a,yes:c,no:u}={en:{years:"years",yes:"Yes",no:"No"},is:{years:"\xe1r",yes:"J\xe1",no:"Nei"}}[t],d="is"===t?{length:"N\xe1mst\xedmi",credits:"Einingar",degree:"Pr\xf3fgr\xe1\xf0a",certification:"L\xf6gvernda\xf0 starfsheiti",internship:"Skiptin\xe1m m\xf6gulegt",distance:"Fjarn\xe1m m\xf6gulegt"}:{length:"Duration",credits:"Credits",degree:"Degree",certification:"Certification",internship:"Internship possible",distance:"Distance learning possible"};return[{name:"length",label:d.length,value:n?"".concat(n.toString().replace(".",",")," ").concat(a):""},{name:"credits",label:d.credits,value:r?/^\d+$/.test(r)?"".concat(r,' <span style="font-weight:bold;">ECTS</span>'):r:""},{name:"degree",label:d.degree,value:l},{name:"certification",label:d.certification,value:o},{name:"internship",label:d.internship,value:s?c:u},{name:"distance",label:d.distance,value:i?c:u}].filter(e=>e.value)})(t,l),s=n.map(e=>
1{let{input1Value:t,input2Value:n}=(0,a.Q)(e);return{title:t,url:n}});return(0,r.jsxs)("div",{className:"program-columns",children:[o.map((e,t)=>{let{label:n,value:l}=e;return l?(0,r.jsxs)("div",{className:"program-columns__row",children:[(0,r.jsx)("div",{className:"program-columns__row__label",children:(0,r.jsx)("div",{children:n})}),(0,r.jsx)("div",{className:"program-columns__row__value",dangerouslySetInnerHTML:{__html:l}})]},t):null}),(0,r.jsx)(c,{className:"useful-links",label:"is"===l?"Gagnlegir tenglar":"Useful links",links:s})]})},p=e=>{var t,n,l;let{postInfo:i,block:a,colorEditor:c,relatedPrograms:p,excludeUsefulLinks:h=!1}=e,{attrs:m}=a,{className:f,postType:g,postID:v,shouldScroll:b,buttonColor:_}=m,x=(null==i||null==(l=i.special)||null==(n=l.parent)||null==(t=n.program)?void 0:t.meta)?i.special.parent.program.meta:i.meta,y=p||i.programs,k=!h&&(null==x?void 0:x.useful_links)?JSON.parse(x.useful_links):[],w=null;return b&&(w=(0,s.useCallback)(e=>{},[])),(0,r.jsxs)("div",{ref:w,className:o()("hr-render-program-card",c?"is-style-".concat(c):"",f),children:["program"===g&&(0,r.jsx)(d,{custom:x,usefulLinks:k}),"department"===g&&(0,r.jsx)(u,{custom:x,programs:y,usefulLinks:k})]})}},48348:(e,t,n)=>{n.d(t,{A:()=>u});var r,l=n(55729),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},s=(function(e){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var l=arguments[r];if(l){var o=typeof l;if("string"===o||"number"===o)e.push(l);else if(Array.isArray(l)&&l.length){var s=n.apply(null,l);s&&e.push(s)}else if("object"===o)for(var i in l)t.call(l,i)&&l[i]&&e.push(i)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}(r={path:void 0,exports:{},require:function(e,t){throw null==t&&r.path,Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},r.exports),r.exports);function i(e,t,n){function r(){var c=Date.now()-i;c<t&&c>=0?l=setTimeout(r,t-c):(l=null,n||(a=e.apply(s,o),s=o=null))}null==t&&(t=100);var l,o,s,i,a,c=function(){s=this,o=arguments,i=Date.now();var c=n&&!l;return l||(l=setTimeout(r,t)),c&&(a=e.apply(s,o),s=o=null),a};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(a=e.apply(s,o),s=o=null,clearTimeout(l),l=null)},c}i.debounce=i,!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}(".indiana-scroll-container {\n  overflow: auto; }\n  .indiana-scroll-container--dragging {\n    scroll-behavior: auto !important; }\n    .indiana-scroll-container--dragging > * {\n      pointer-events: none;\n      cursor: -webkit-grab;\n      cursor: grab; }\n  .indiana-scroll-container--hide-scrollbars {\n    overflow: hidden;\n    overflow: -moz-scrollbars-none;\n    -ms-overflow-style: none;\n    scrollbar-width: none; }\n    .indiana-scroll-container--hide-scrollbars::-webkit-scrollbar {\n      display: none !important;\n      height: 0 !important;\n      width: 0 !important;\n      background: transparent !important;\n      -webkit-appearance: none !important; }\n  .indiana-scroll-container--native-scroll {\n    overflow: auto; }\n\n.indiana-dragging {\n  cursor: -webkit-grab;\n  cursor: grab; }\n");var a,c=(a="indiana-scroll-container",function(e,t){if(!e)return a;"string"==typeof e?n=e:t=e;var n,r=a;return n&&(r+="__"+n),r+(t?Object.keys(t).reduce(function(e,n){var l=t[n];return l&&(e+=" "+("boolean"==typeof l?r+"--"+n:r+"--"+n+"_"+l)),e},""):"")});let u=function(e){function t(t){var n=e.call(this,t)||this;return n.onEndScroll=function(){n.scrolling=!1,!n.pressed&&n.started&&n.processEnd()},n.onScroll=function(e){var t=n.container.current;t.scrollLeft===n.scrollLeft&&t.scrollTop===n.scrollTop||(n.scrolling=!0,n.processScroll(e),n.onEndScroll())},n.onTouchStart=function(e){var t=n.props.nativeMobileScroll;if(n.isDraggable(e.target))if(n.internal=!0,t&&n.scrolling)n.pressed=!0;else{var r=e.touches[0];n.processClick(e,r.clientX,r.clientY),!t&&n.props.stopPropagation&&e.stopPropagation()}},n.onTouchEnd=function(e){var t=n.props.nativeMobileScroll;n.pressed&&(!n.started||n.scrolling&&t?n.pressed=!1:n.processEnd(),n.forceUpdate())},n.onTouchMove=function(e){var t=n.props.nativeMobileScroll;if(n.pressed&&(!t||!n.isMobile)){var r=e.touches[0];r&&n.processMove(e,r.clientX,r.clientY),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation()}},n.onMouseDown=function(e){n.isDraggable(e.target)&&n.isScrollable()&&(n.internal=!0,-1!==n.props.buttons.indexOf(e.button)&&(n.processClick(e,e.clientX,e.clientY),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation()))},n.onMouseMove=function(e){n.pressed&&(n.processMove(e,e.clientX,e.clientY),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation())},n.onMouseUp=function(e){n.pressed&&(n.started?n.processEnd():(n.internal=!1,n.pressed=!1,n.forceUpdate(),n.props.onClick&&n.props.onClick(e)),e.preventDefault(),n.props.stopPropagation&&e.stopPropagation())},n.container=l.createRef(),n.onEndScroll=i(n.onEndScroll,300),n.scrolling=!1,n.started=!1,n.pressed=!1,n.internal=!1,n.getRef=n.getRef.bind(n),n}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){var e=this.props.nativeMobileScroll,t=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),t.addEventListener("touchstart",this.onTouchStart,{passive:!1}),t.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},t.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},t.prototype.getElement=function(){return this.container.current},t.prototype.isMobileDevice=function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")},t.prototype.isDraggable=function(e){var t=this.props.ignoreElements;if(t){var n=e.closest(t);return null===n||n.contains(this.getElement())}return!0},t.prototype.isScrollable=function(){var e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)},t.prototype.processClick=function(e,t,n){var r=this.container.current;this.scrollLeft=r.scrollLeft,this.scrollTop=r.scrollTop,this.clientX=t,this.clientY=n,this.pressed=!0},t.prototype.processStart=function(e){void 0===e&&(e=!0);var t=this.props.onStartScroll;this.started=!0,e&&document.body.classList.add("indiana-dragging"),t&&t({external:!this.internal}),this.forceUpdate()},t.prototype.processScroll=function(e){if(this.started){var t=this.props.onScroll;t&&t({external:!this.internal})}else this.processStart(!1)},t.prototype.processMove=function(e,t,n){var r=this.props,l=r.horizontal,o=r.vertical,s=r.activationDistance,i=r.onScroll,a=this.container.current;this.started?(l&&(a.scrollLeft-=t-this.clientX),o&&(a.scrollTop-=n-this.clientY),i&&i({external:!this.internal}),this.clientX=t,this.clientY=n,this.scrollLeft=a.scrollLeft,this.scrollTop=a.scrollTop):(l&&Math.abs(t-this.clientX)>s||o&&Math.abs(n-this.clientY)>s)&&(this.clientX=t,this.clientY=n,this.processStart())},t.prototype.processEnd=function(){var e=this.props.onEndScroll;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},t.prototype.getRef=function(e){[this.container,this.props.innerRef].forEach(function(t){t&&("function"==typeof t?t(e):t.current=e)})},t.prototype.render=function(){var e=this.props,t=e.children,n=e.draggingClassName,r=e.className,o=e.style,i=e.hideScrollbars,a=e.component;return l.createElement(a,{className:s(r,this.pressed&&n,c({dragging:this.pressed,"hide-scrollbars":i,"native-scroll":this.isMobile})),style:o,ref:this.getRef,onScroll:this.onScroll},t)},t.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},t}(l.PureComponent)}
1,57852:(e,t,n)=>{n.d(t,{J:()=>p,g:()=>d});var r=n(6029),l=n(39283),o=n(7658),s=n(63708),i=n(32988),a=n.n(i),c=n(55729),u=n(48348);let d=(e,t,n,r)=>{let l={};t.forEach(e=>{l[e.getBoundingClientRect().top]=e});let o=window.innerHeight/2,s=Object.keys(l).map(Number);if(!s.length)return;let i=s.reduce(function(e,t){return Math.abs(t-0)<Math.abs(e-0)&&t<o?t:e});i in l&&l[i]!==n&&r(l[i])},p=e=>{var t,n;let{anchors:i,colorSlug:p,colorClass:h,showArrows:m,disableColorWhenScrolling:f=!1}=e;if(!i)return null;let g=i.filter(e=>!e.startsWith("--")&&!e.startsWith("_")),[v,b]=(0,c.useState)(!1),[_,x]=(0,c.useState)(0),y=(0,c.useRef)(null),[k,w]=(0,c.useState)([]),[j,S]=(0,c.useState)(),E=j?g.findIndex(e=>(0,l.jw)(e)===j.id):-1,[N,M]=(0,c.useState)(!1),[L,C]=(0,c.useState)(!1),[T,P]=(0,c.useState)(!1),[D,R]=(0,c.useState)(null),O=(0,c.useRef)(null);(0,c.useEffect)(()=>{R(g.map(()=>O))},[i]),(0,c.useEffect)(()=>{let e=[];g.forEach(t=>{if(null==t?void 0:t.length){let n=document.querySelector("#".concat(CSS.escape((0,l.jw)(t)),".anchor"));n&&e.push(n)}}),w(e)},[i]);let I=null==y||null==(n=y.current)||null==(t=n.container)?void 0:t.current;(0,c.useEffect)(()=>{let e=document.getElementById("special-bar"),t=getComputedStyle(document.body),n=e=>parseInt(t.getPropertyValue(e));x(e?n("--kaktus--header-height-mobile")+50:n("--kaktus--header-height-mobile"))},[]),(0,c.useEffect)(()=>{let e=()=>{if(I&&I.scrollWidth>I.clientWidth){let{clientWidth:e,scrollLeft:t,scrollWidth:n}=I,r=e+t===n;r&&L&&C(!1),r||L||C(!0);let l=t>0&&n>e;l&&!N&&M(!0),!l&&N&&M(!1)}},t=t=>{d(t,k,j,S),e()};return e(),window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[k,N,L,v]),(0,c.useEffect)(()=>{if(j&&(null==D?void 0:D.length)){let e=j.id,t=D.find(t=>t.current&&t.current.getAttribute("href")==="#".concat(e));(null==t?void 0:t.current)&&t.current.focus()}},[j,D]);let U=(null==I?void 0:I.offsetHeight)?_+I.offsetHeight:0;return(0,r.jsx)(s.Floater,{top:"".concat(U,"px"),intersectProps:{rootMargin:"".concat(-U,"px"),additionalIntersectDependencies:[j]},innerStyle:{zIndex:9},handleStickyCondition:e=>{T!==e&&P(e)},children:(0,r.jsx)("div",{className:"anchor-links",children:(0,r.jsx)("div",{className:"anchor-links__absolute",children:(0,r.jsxs)("div",{className:"anchor-links__container container",children:[(0,r.jsx)(u.A,{ref:y,style:v?{cursor:"move",scrollBehavior:"smooth"}:{cursor:"grab",scrollBehavior:"smooth"},onStartScroll:()=>b(!0),onEndScroll:()=>b(!1),children:D&&g.map((e,t)=>{let n=(0,l.jw)(e);return(0,r.jsx)("a",{ref:D[t],href:"#".concat(n),className:a()({[h]:!!h&&!(f&&T),["color-slug-".concat(p)]:!!p&&!(f&&T),"anchor-link-selected":t===E}),children:e},t)})}),m&&N&&(0,r.jsx)("div",{className:"anchor-links__container__chevron anchor-links__container__chevron-left",onClick:()=>{I&&(I.scrollLeft=I.scrollLeft-200)},children:(0,r.jsx)(o.$,{slug:"chevron-left"})}),m&&L&&(0,r.jsx)("div",{className:"anchor-links__container__chevron anchor-links__container__chevron-right",onClick:()=>{I&&(I.scrollLeft=I.scrollLeft+200)},children:(0,r.jsx)(o.$,{slug:"chevron-right"})})]})})})})}},63708:(e,t,n)=>{n.r(t),n.d(t,{Floater:()=>d});var r=n(6029),l=n(82003),o=n(72422),s=n(80679),i=n(71033),a=n(55729),c=n(32988),u=n.n(c);let d=e=>{let t=(0,i.Zu)(),{postInfo:n,block:c={attrs:{className:void 0,triggerId:void 0,disableOnBreakpoint:void 0,zIndex:void 0},innerBlocks:[]},extraProps:d,children:p=[],innerStyle:h={},top:m=null,intersectProps:f={rootMargin:"0px"},handleStickyCondition:g}=e,{attrs:v,innerBlocks:b}=c,{className:_,triggerId:x,disableOnBreakpoint:y,zIndex:k}=v,w=null,j=(0,i.mS)("CONTEXT");if(j){let{state:e}=(0,a.useContext)(j);w=e.currentBreakpoint}let S=(0,i.tU)().USE_STORE;S&&(w=S(e=>e.currentBreakpoint));let[E,N]=(0,a.useState)(null),[M,L]=(0,a.useState)(0),C=(0,o.s)(e=>{e&&L(e.offsetHeight)},200),T=(0,a.useRef)(null),P=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=null,t=!1;if(x){let n=document.querySelector(".trigger-".concat(x));n?N(e=n):t=!0}else t=!0;if(t)try{if(!e){let t=document.getElementsByTagName("footer");e=t[t.length-1],N(e)}}catch(e){}P.current&&L(P.current.offsetHeight);let n=()=>C(P.current);window.addEventListener("resize",n);let r=()=>{if(!e||!T.current)return;let{top:n}=T.current.getBoundingClientRect(),r=e.getBoundingClientRect().top,l=t?0:e.offsetHeight;T.current.style.height="".concat(r+l-n,"px")};return r(),window.addEventListener("scroll",r),()=>{window.removeEventListener("resize",n),window.removeEventListener("scroll",r)}},[T,T.current,w]);let D=(0,a.useRef)(null),[R,O]=(e=>{let{root:t=null,rootMargin:n="0px",threshold:r=0,additionalIntersectDependencies:l=[]}=e,[o,s]=(0,a.useState)({}),[i,c]=(0,a.useState)(null),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>
1{u.current&&u.current.disconnect(),u.current=new window.IntersectionObserver(e=>{let[t]=e;return s(t)},{root:t,rootMargin:n,threshold:r});let{current:e}=u;return i&&e.observe(i),()=>e.disconnect()},[i,t,n,r].concat(l)),[c,o]})(f);D&&(0,a.useEffect)(()=>{D.current&&R(D.current)},[D.current]),(0,a.useEffect)(()=>{if(O&&"boundingClientRect"in O){let e=(0,l.s)(),{boundingClientRect:t}=O,{top:n}=t;(null==D?void 0:D.current)&&(D.current.classList.toggle("is-sticky",O.intersectionRatio<1&&e>n),g&&g(O.intersectionRatio<1&&e>n))}},[O]);let[I,U]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=!y||1===(0,s._)(w,y);I!==e&&U(e)},[y,w]);let B=I?{position:"sticky",top:m||"15rem"}:{};return h&&Object.assign(B,h),k&&(B.zIndex=k),(0,r.jsx)("div",{ref:D,className:u()("wp-block-kaktus-blocks-floater",_),style:{height:"".concat(M,"px")},children:(0,r.jsx)("div",{ref:T,children:(0,r.jsxs)("div",{ref:P,style:B,className:"sticky",children:[b&&b.map((e,l)=>(0,r.jsx)(t,{postInfo:n,block:e,extraProps:d},l)),p]})})})}},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.