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AAKK,EAAEwB,QAAQ3B,WAAWyB,EAAEvB,UAAUH,IAAI6B,EAAET,QAAQO,GAAEG,IAAInB,EAAEmB,EAAC,IAAIzB,EAAEuB,QAAQC,IAAG,CAACH,EAAE1B,IAAIqB,GAAE,kBAAE,KAAK,IAAIM,EAAEtB,EAAEuB,QAAQC,EAAE3B,EAAE0B,QAAQC,GAAGF,GAAGL,UAAUO,GAAGxB,EAAEuB,QAAQ,OAAM,IAA4E,MAAM,EAA5E,kBAAED,IAAIN,IAAInB,EAAE0B,QAAQD,EAAEf,GAAE,GAAG,CAACA,EAAES,IAAiD,CAACU,MAAMvB,EAAEwB,SAApD,kBAAEL,IAAIN,IAAIjB,EAAEwB,QAAQD,EAAEf,GAAE,GAAG,CAACA,EAAES,KAAiC,CAAiEY,CAAErC,GAAGM,IAAIF,EAAE+B,OAAOG,gBAAgB9B,EAAEC,IAAG,cAAEH,GAAG,OAAOA,IAAIE,GAAGC,GAAE,GAAI,CAACqB,EAAE,IAAI1B,EAAEmC,UAAUjC,EAAEkC,eAAehC,GAAG,C","sources":["webpack://Kristiania.Web/./node_modules/react-intersection-observer-hook/dist/index.mjs"],"sourcesContent":["import{useCallback as O,useRef as u,useState as R}from\"react\";function p(){let i=new Map;function l({root:s,rootMargin:t,threshold:c}){let r=i.get(s);r||(r=new Map,i.set(s,r));let v=JSON.stringify({rootMargin:t,threshold:c}),o=r.get(v);if(!o){let e=new Map;o={observer:new IntersectionObserver(y=>{y.forEach(k=>{e.get(k.target)?.(k)})},{root:s,rootMargin:t,threshold:c}),entryCallbacks:e},r.set(v,o)}return{observe:(e,b)=>{o.entryCallbacks.set(e,b),o.observer.observe(e)},unobserve:e=>{o.entryCallbacks.delete(e),o.observer.unobserve(e)}}}return{getObserver:l}}var C=\"0px\",d=[0],H=p();function E(i){let l=i?.rootMargin??C,s=i?.threshold??d,t=u(null),c=u(null),r=u(null),[v,o]=R(),e=O(()=>{let n=t.current;if(!n){o(void 0);return}let a=H.getObserver({root:c.current,rootMargin:l,threshold:s});a.observe(n,f=>{o(f)}),r.current=a},[l,s]),b=O(()=>{let n=r.current,a=t.current;a&&n?.unobserve(a),r.current=null},[]),y=O(n=>{b(),t.current=n,e()},[e,b]),k=O(n=>{b(),c.current=n,e()},[e,b]);return[y,{entry:v,rootRef:k}]}var I=E;import{useState as m}from\"react\";function h(i){let[l,s]=I(i),t=!!s.entry?.isIntersecting,[c,r]=m(t);return t&&!c&&r(!0),[l,{...s,isVisible:t,wasEverVisible:c}]}var g=h;export{I as useIntersectionObserver,g as useTrackVisibility};\n"],"names":["d","H","i","Map","getObserver","root","s","rootMargin","t","threshold","c","r","get","set","v","JSON","stringify","o","e","observer","IntersectionObserver","y","forEach","k","target","entryCallbacks","observe","b","unobserve","delete","p","g","l","n","current","a","f","entry","rootRef","I","isIntersecting","isVisible","wasEverVisible"],"sourceRoot":""}