PageSourceSearch

https://www.naturskyddsforeningen.se/_next/static/chunks/5796.0f720b1061d9c51f.js

js naturskyddsforeningen.se collected 2026-10-01 10:36:10 UTC 3,060 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5796],{14466:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var r=t(85893),s=t(67294),o=t(47360),a=t(36926),l=t(30706),c=t(19845),i=t.n(c),u=t(98714),d=t.n(u);function h(){let e=function(){let[e,n]=(0,s.useState)(null),[t,r]=(0,s.useState)(0),o=()=>{let e=window.scrollY;0===e&&n(null),e>116&&e>t?n("down"):e<t&&n("up"),r(e)};return(0,s.useEffect)(()=>(window.addEventListener("scroll",o),()=>{window.removeEventListener("scroll",o)})),e}(),n=i().bind(d()),t=(0,l.Tw)(),c=(0,s.useRef)(),u=(0,a.eG)(),h=(0,a.PQ)(),[m,f]=(0,s.useState)({wrapper:!0,hidden:"down"===e,"no-print":!0,"has-choices":t.selected.length>0});return(0,s.useEffect)(()=>{f({...m,"has-admin-bar":h})},[u]),(0,r.jsx)("div",{className:n(m),ref:c,children:(0,r.jsx)("div",{className:"inner-wrapper",children:(0,r.jsx)(o.Z,{data:t.object.search,autoload:!1})})})}},65796:function(e,n,t){"use strict";t.r(n),t.d(n,{Content:function(){return v},default:function(){return b}});var r=t(85893),s=t(52797),o=t(87515),a=t(14466),l=t(49457),c=t(33900),i=t(36926),u=t(30706),d=t(84279),h=t(19845),m=t.n(h),f=t(67294),p=t(2320),w=t.n(p);function b(){var e;let n=(0,i.eG)(),t=(0,i.bp)(),s=(0,i.gt)(),h=(0,d.Hn)(),p=(0,d.UI)(),b=null!==(e=s.searchPanel)&&void 0!==e&&e,j=m().bind(w()),x=(0,i.PQ)(),[g,Z]=(0,f.useState)({main:!0,white:(null==s?void 0:s.pageColor)==="white","summer-green":(null==s?void 0:s.pageColor)==="summer-green"}),[_,E]=(0,f.useState)({});return(0,f.useEffect)(()=>{var e;let n=null!==(e=null==s?void 0:s.pageColor)&&void 0!==e?e:"",t=n.startsWith("#");Z({main:!0,white:"white"===n,"summer-green":"summer-green"===n,"has-custom-bg-color":t,"no-hero":!p,"has-search":b,"has-admin-bar":x}),t?E({backgroundColor:n}):E({})},[n]),(0,r.jsxs)(l.Z,{className:j(g),style:_,children:[s.searchPanel&&(0,r.jsx)(u.KR,{context:"school",object:s,children:(0,r.jsx)(a.Z,{})}),!h&&!p&&(0,r.jsx)(o.Z,{crumbs:t.breadcrumbs,className:"mt-4 mb-5 lg:ml-0"}),(0,r.jsx)(v,{isArchive:null==s?void 0:s.isArchive,object:s,pathData:n}),(0,r.jsx)(c.Z,{})]})}function v(e){let{isArchive:n,object:t,pathData:o}=e;return n?(0,r.jsx)(u.KR,{context:"on-page",object:t,children:(0,r.jsx)(s.Z,{blocks:o.content})}):(0,r.jsx)(s.Z,{blocks:o.content})}},49457:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var r=t(85893),s=t(36926),o=t(67294);function a(e){let{className:n,children:t,style:a}=e,{mainElem:l}=(0,s.bp)(),{template:c,path:i}=(0,s.eG)(),u=0,d=e=>{u++;let n=0,t=document.getElementById(e.replace("#",""));if(u>10)return clearTimeout(n),null;t?(clearTimeout(n),t.scrollIntoView()):n=setTimeout(()=>{d(e)},10)};return(0,o.useEffect)(()=>{if(window.location.hash){d(window.location.hash);return}l.current&&setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},10)},[i]),(0,r.jsx)("main",{ref:l,className:n,"data-template":c,style:a,children:t})}},98714:function(e){e.exports={wrapper:"search-panel_wrapper__pwZ7C"}},2320:function(e){e.exports={main:"page_main__f0m9H"}}}]);
2//# sourceMappingURL=5796.0f720b1061d9c51f.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.