PageSourceSearch

https://pindstrup.com/_next/static/chunks/881651572eb3d3fd.js

js pindstrup.com collected 2026-09-26 18:16:39 UTC 39,649 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79575,e=>{"use strict";e.i(47167);var t=e.i(43476),r=e.i(22016),n=e.i(11488),a=e.i(68757),l=e.i(71645),s=e.i(74080),o=e.i(18566),i=e.i(1999),c=e.i(37108),u=e.i(46915);class d{items;culture;includeHidden;constructor(e,t={}){this.items=e,this.culture=t.culture||i.DEFAULT_LOCALE,this.includeHidden=t.includeHidden||!1}build(){let e=this.filterMenuItems(),t=this.enrichItems(e);return this.buildTree(t).filter(e=>1===e.depth)}enrichItems(e){return e.map((e,t)=>({...e,_depth:this.calculatePathDepth(e.route.path),_originalIndex:t}))}buildTree(e){let t=new Map,r=[];for(let n of e){if(n._depth>=4)continue;let e={id:n.id,contentType:n.contentType,name:n.name,title:n.properties?.title||n.name,navigationName:n.properties?.navigationName,categoryName:n.properties?.categoryName,url:this.getUrl(n),path:n.route.path,depth:n._depth,children:[],cultures:n.cultures,_originalIndex:n._originalIndex};t.set(n.route.path,e),r.push(e)}for(let e of r){for(let t of r)t.path!==e.path&&this.isDirectChild(t.path,e.path)&&(e.children||(e.children=[]),e.children.push(t));e.children&&e.children.length>0&&e.children.sort((e,t)=>(e._originalIndex||0)-(t._originalIndex||0))}return r}isDirectChild(e,t){if(!e.startsWith(t))return!1;let r=this.calculatePathDepth(t);return this.calculatePathDepth(e)===r+1}calculatePathDepth(e){return this.getPathSegments(e).length}getPathSegments(e){let t=e.replace(/\/$/,"").split("/").filter(Boolean),r=/^[a-z]{2,3}(?:-[a-zA-Z]{2,4})?$/;return t.filter((e,t)=>0!==t||!r.test(e))}filterMenuItems(){return this.items.filter(e=>(!!this.includeHidden||e.properties?.hideFromTopNavigation!==!0&&e.properties?.umbracoNaviHide!==!0)&&(this.hasMenuCategory(e)||this.isChildOfMenuItem(e)))}hasMenuCategory(e){return"content"===e.contentType||"home"===e.contentType||"headerCateogryLabel"===e.contentType||("contentItem"===e.contentType||"contentSubItem"===e.contentType)&&(1===this.calculatePathDepth(e.route.path)||e.properties?.categories?.some(e=>"Menu"===e.name)||!1)}isChildOfMenuItem(e){let t=this.getParentPath(e.route.path);if(!t)return!1;let r=this.items.find(e=>e.route.path===t);return!!r&&(this.hasMenuCategory(r)||this.isChildOfMenuItem(r))}getParentPath(e){let t=this.getPathSegments(e);if(t.length<=1)return null;let r=t.slice(0,-1),n=e.match(/^\/([a-z]{2,3}(?:-[a-zA-Z]{2,4})?)\//);return"/"+(n?n[1]:i.DEFAULT_LOCALE)+"/"+r.join("/")+"/"}getUrl(e){let t=e.cultures?.[this.culture]?.path;if(t)return t;let r=(0,u.generateLocaleCode)(this.culture),n=Object.entries(e.cultures??{}).find(([e])=>(0,u.generateLocaleCode)(e)===r);return n?.[1]?.path||e.route.path}}function h(e){return"headerCateogryLabel"===e.contentType?e.categoryName||e.name:null}var m=e.i(81949),p=e.i(59574),g=e.i(47355),f=e.i(42379);async function v(e,t,r=1,n=100,a){let l=function(e){let t=(0,p.extractLocaleFromUrl)(window.location.pathname),r=e||t,n=window.location.hostname;if(n){let e=(0,g.getLocaleFromDomain)(n);if(e)return r&&!(0,g.hasLocaleDomain)(r)?r:e}return r||(0,p.getCurrentLocale)()}(t),s=(0,u.normalizeCulture)((0,p.getUmbracoCulture)(l)),o=e.trim().normalize("NFC"),i=`https://umbraco.pindstrup.com/api/search-pages?query=${encodeURIComponent(o)}&page=${r}&pageSize=${n}&culture=${s}`;try{let e=(await m.default.get(i,f.AxiosConfigService.create({culture:s,timeout:1e4,normalize:!1}))).data,t=[];e&&Array.isArray(e.results)&&(t=e.results.map(e=>({pageName:e.pageName,title:e.title,description:e.description,imageUrl:e.imageUrl,dateUpdate:e.dateUpdate,sequence:0,url:e.pageURL,pagePriorityInSearchResults:e.pagePriorityInSearchResults,contentLabel:e.contentLabel})));let r=e.totalItems??e.totalResults??t.length,n=[e.correctedQuery,e.correctedTerm,e.suggestedQuery,e.suggestedTerm,e.spellCorrectedQuery,e.spellCorrection,e.query].find(e=>"string"==typeof e&&e.trim().length>0)||o;return{results:t,totalResults:r,query:n,totalPages:e.totalPages||0,currentPage:e.page||1}}catch(e){throw e}}var x=e.i(45534),C=e.i(99493),b=e.i(56316),N=e.i(79797),y=e.i(20175),w=e.i(49457);let j=["local","test","staging","production"];function L(e){let t="production";return{env:t&&j.includes(t)?t:"production",config:(0,w.buildConfigFromSiteUrl)("https://pindstrup.com")}}function S(e,t){let r=e.replace(/\/$/,"");return t===i.DEFAULT_LOCALE?r:`${r}/${t}`}let $="home",k={logoSrc:"/358 x 64 Logo.png",name:"Pindstrup"},I={gb:{logoSrc:"/bulrush-logo.png",name:"Bulrush"}},E=b.default,T=(e,t)=>
1{if(!t)return!1;let r=e=>e.toLowerCase().replace(/^www\./,"");try{return r(new URL(e).hostname)===r(t)}catch{return!1}},P=(e,t,r)=>e.localeCode?e.localeCode===r:T(e.url,t),A=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),M=()=>[...(0,i.getSupportedLocaleCodes)().map(A),"[a-z]{2,3}(?:-[a-z]{2,4})?"].join("|"),R=e=>{let t=M();return e?.match(RegExp(`^/(${t})(?=/|$)`))},F=e=>[...e].sort((e,t)=>(e.pagePriorityInSearchResults??Number.MAX_SAFE_INTEGER)-(t.pagePriorityInSearchResults??Number.MAX_SAFE_INTEGER)),U=new Set(["。","!","?"]),D=(e,t)=>{let r=e[t];if(U.has(r)||"!"===r||"?"===r)return!0;if("."!==r||"."===e[t-1]||"."===e[t+1]||/\d/.test(e[t-1]??"")&&/\d/.test(e[t+1]??""))return!1;let n=e.slice(0,t).match(/([A-Za-z]+)$/)?.[1]??"",a=n.toLocaleLowerCase();if(new Set(["dr","e","etc","g","i","jr","mr","mrs","ms","prof","sr","st","vs"]).has(a)||/^[A-Z]$/.test(n))return!1;let l=e.slice(t+1).match(/\S/)?.[0];return!l||!/[a-z]/.test(l)},_=e=>{let t=(e??"").replace(/\s+/g," ").trim();if(!t)return{firstSentence:"",secondSentence:""};let r=(e=>{let t=[],r=0;for(let n=0;n<e.length;n+=1){if(!D(e,n))continue;let a=n+1;for(;/["')\]]/.test(e[a]??"");)a+=1;let l=e.slice(r,a).trim();for(l&&t.push(l),r=a;/\s/.test(e[r]??"");)r+=1;if(t.length>=2)break}return t})(t);return{firstSentence:r[0]||t.replace(/\s*(?:\.{3}|…)\s*$/,"").trim(),secondSentence:r[1]||""}},H=e=>e.trim().normalize("NFC").toLocaleLowerCase().replace(/[^\p{L}\p{N}]+/gu,""),O=e=>1===e.trim().split(/\s+/).filter(Boolean).length,W=({template:e,query:r,className:n,valueTag:a="span",onQueryClick:s})=>{let o=e.split("{query}");return 1===o.length?(0,t.jsx)(t.Fragment,{children:(0,x.interpolate)(e,{query:r})}):(0,t.jsx)(t.Fragment,{children:o.map((e,i)=>(0,t.jsxs)(l.Fragment,{children:[e,i<o.length-1&&(s?(0,t.jsx)("button",{type:"button",className:`${n} searchSpellCorrectionQueryButton`,onClick:e=>{e.stopPropagation(),s()},children:r}):(0,t.jsx)(a,{className:n,children:r}))]},`${e}-${i}`))})},z=({description:e})=>{let r=(0,l.useRef)(null),{firstSentence:n,secondSentence:a}=(0,l.useMemo)(()=>_(e),[e]),s=a?`${n} ${a}`:n,[o,i]=(0,l.useState)(n);return((0,l.useEffect)(()=>{i(n)},[n]),(0,l.useLayoutEffect)(()=>{let e=r.current;if(!e||!a)return void i(n);let t=()=>{let t=Number.parseFloat(window.getComputedStyle(e).lineHeight)||24;i(e.scrollHeight<=3*t+.5?s:n)};if(t(),"undefined"==typeof ResizeObserver)return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t);let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[n,a,s]),o)?(0,t.jsxs)(t.Fragment,{children:[a&&(0,t.jsx)("p",{ref:r,className:"searchResultDescription searchResultDescriptionMeasure","aria-hidden":"true",children:s}),(0,t.jsx)("p",{className:"searchResultDescription",children:o})]}):null};e.s(["MainNavigation",0,e=>{let m,p,f,b,w,j,{previewNavItem:A,pageCultures:U}=(0,y.usePageSettings)(),[D,_]=(0,l.useState)(!1),[B,q]=(0,l.useState)(!1),[G,Q]=(0,l.useState)(!1),[K,Z]=(0,l.useState)([]),[X,V]=(0,l.useState)(!1),[Y,J]=(0,l.useState)(!1),[ee,et]=(0,l.useState)(null),[er,en]=(0,l.useState)(null),[ea,el]=(0,l.useState)(null);(0,l.useEffect)(()=>{J(!0);let e=window.location.hostname;et(e),en(window.location.origin),el((0,g.getLocaleFromDomain)(e))},[]),(0,l.useEffect)(()=>{e.availableCultures&&e.availableCultures.length>0&&c.localeCache.setContentLocales("navigation",e.availableCultures)},[]),(0,l.useEffect)(()=>{let e=()=>{V(window.innerWidth<1200)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,l.useEffect)(()=>()=>{eq.current&&clearTimeout(eq.current),eG.current&&clearTimeout(eG.current),eQ.current&&clearTimeout(eQ.current),eK.current&&clearTimeout(eK.current)},[]);let[es,eo]=(0,l.useState)(null),[ei,ec]=(0,l.useState)(e.availableCultures??[]),[eu,ed]=(0,l.useState)(null),[eh,em]=(0,l.useState)(null),[ep,eg]=(0,l.useState)(!1),[ef,ev]=(0,l.useState)(!1),[ex,eC]=(0,l.useState)(""),[eb,eN]=(0,l.useState)([]),[ey,ew]=(0,l.useState)(!1),[ej,eL]=(0,l.useState)(0),[eS,e$]=(0,l.useState)(1),[ek,eI]=(0,l.useState)(!1),[eE,eT]=(0,l.useState)(!1),[eP,eA]=(0,l.useState)(""),[eM,eR]=(0,l.useState)(""),[eF,eU]=(0,l.useState)(new Set),[eD,e_]=(0,l.useState)(new Set),[eH,eO]=(0,l.useState)(null),eW=(0,l.useRef)(null),ez=(0,l.useRef)(null),eB=(0,l.useRef)(new Map),eq=(0,l.useRef)(null),eG=(0,l.useRef)(null),eQ=(0,l.useRef)(null);(0,l.useRef)(null);let eK=(0,l.useRef)(null),eZ=(0,l.useRef)(null),[eX,eV]=(0,l.useState)(new Set),eY=(0,o.usePathname)(),[eJ,e0]=(0,l.useState)(e.locale||i.DEFAULT_LOCALE),e1=I[eJ]??k,[e4,e7]=(0,l.useState)(()=>{let e=R(eY);return e?eY.replace(e[0],"")||"/":eY||"/"}),e2=(0,l.useMemo)(()=>{let{env:e,config:t}=L(ee),r=!function(e){if(!e)return!1;let t=e.toLowerCase().replace(/^\[|\]$/g,"");return"localhost"===t||"127.0.0.1"===t||"::1"===t}(ee)?null:er,n=new Map(ei.map(e=>[e.code,e])),a=n.size>0,l=e=>!a||e===eJ||!!e&&n.has(e),s=(e,t)=>r?S(r,t):e,o=(e,t)=>{let r=s(e,t),n=(0,c.buildLanguageUrl)(t,{cultures:U},e4),a=t===i.DEFAULT_LOCALE?"":`/${t}`,l=n;return a&&n.startsWith(a)&&(l=n.slice(a.length)||"/"),l.startsWith("/")||(l="/"+l),"/"===l?r:r+l},d=(e,t,r)=>{try{let t=new URL(e),n=t.pathname&&"/"!==t.pathname?t.pathname.replace(/\/$/,""):"";return t.host+(r??n)}catch{return t}},h=(e,n,a)=>{let l,s=(l=t.locales.find(e=>e.code===i.DEFAULT_LOCALE),S(r??l?.url??er??"",e));return{...a??{},name:n,domain:d(s,ee??""),url:o(s,e),localeCode:e}},m=e=>ei.filter(t=>!e.has(t.code)).map(e=>{let t=(0,u.getLanguageName)(e.culture),r=(0,u.getRegionName)(e.culture),n=r?`${t} (${r})`:t||e.label;return h(e.code,n)});if("production"!==e&&"staging"!==e){let e=new Set(t.locales.map(e=>e.code)),r=t.locales.filter(e=>l(e.code)).map(e=>({name:e.label,domain:d(s(e.url,e.code),e.hostname,e.pathPrefix),url:o(e.url,e.code),localeCode:e.code})),n=new Set(r.map(e=>e.localeCode).filter(e=>!!e));return[...r,...E.flatMap(t=>{let r=(0,g.getLocaleFromDomain)(t.domain);return!r||e.has(r)||!l(r)?[]:(n.add(r),[h(r,t.name,t)])}),...m(n)]}let p=new Map(t.locales.map(e=>[e.code,e])),f=new Set;return[...E.flatMap(e=>{let t=(0,g.getLocaleFromDomain)(e.domain);if(t&&!l(t))return[];let r=t?p.get(t):void 0;return r?(f.add(r.code),{...e,domain:d(s(r.url,r.code),r.hostname,r.pathPrefix),url:o(r.url,r.code),localeCode:r.code}):t?(f.add(t),h(t,e.name,e)):{...e,localeCode:void 0}}),...m(f)]},[ei,ee,er,e4,eJ,U]),e5=(0,l.useMemo)(()=>{let e=e2.findIndex(e=>P(e,ee,eJ));if(e<=0)return e2;let t=[...e2],[r]=t.splice(e,1);return[r,...t]},[ee,eJ,e2]),e3=(0,l.useMemo)(()=>{let{config:e}=L(ee),t=e.locales.find(e=>e.code===eJ);if(t)return t.label;let r=e2.find(e=>e.localeCode===eJ);if(r)return r.name;let n=ee?e2.find(e=>{try{return new URL(e.url).hostname===ee}catch{return!1}}):void 0;return n?.name??e.locales[0].label},[ee,eJ,e2]);(0,l.useEffect)(()=>
1{if(ep){let e=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden",()=>{document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",window.scrollTo(0,e)}}},[ep]),(0,l.useEffect)(()=>{let e=R(eY);e&&(0,i.getSupportedLocaleCodes)().includes(e[1])?(e0(e[1]),e7(eY.replace(e[0],"")||"/")):e7(eY)},[eY]),(0,l.useEffect)(()=>{_(!1),q(!1),Q(!1),ed(null),em(null),e_(new Set),eU(new Set),eK.current&&(clearTimeout(eK.current),eK.current=null);let e=document.querySelector(".navbarContainer");e&&e.classList.remove("mobile-menu-open")},[eY]),e.availableCultures&&e.availableCultures.length>0&&(0,i.initializeLocalesFromApi)(e.availableCultures),(0,l.useEffect)(()=>{let t=e.navigation??[];if(Z(t),!e.availableCultures?.length){let e,r,n=(e=new Map,t.forEach(t=>{t.cultures&&"object"==typeof t.cultures&&Object.entries(t.cultures).forEach(([t,r])=>{let n=(0,u.cultureToLocaleInfo)(t);r&&r.path&&!e.has(n.culture)&&e.set(n.culture,{code:n.code,label:n.label,culture:n.culture,path:r.path,isAvailable:!0})})}),(r=Array.from(e.values())).sort((e,t)=>"en"===e.code?-1:"en"===t.code?1:e.label.localeCompare(t.label)),r);n.length>0&&(ec(n),c.localeCache.setContentLocales("navigation",n))}},[e.navigation,e.availableCultures]),(0,l.useEffect)(()=>{eZ.current&&(eZ.current=null)},[eF]),(0,l.useEffect)(()=>{let t=()=>{if(e.availableCultures?.length)return;let t=c.localeCache.getGlobalLocales();t.length>0?ec(t):0===ei.length&&ec((0,i.getSupportedLocaleCodes)().map(e=>{let t=(0,i.getLocaleConfig)(e);return{code:e,label:t?.culture||t?.label||e.toUpperCase(),culture:t?.culture||`${e}-${e.toUpperCase()}`,path:`/${e}`,isAvailable:!0}}))};t();let r=setInterval(t,1e4);return()=>clearInterval(r)},[ei.length]);let e9=(0,l.useCallback)(e=>{if(eJ===i.DEFAULT_LOCALE||ea===eJ)return e&&e.replace(RegExp(`^/(${M()})(?=/|$)`),"")||"/";if(!e)return`/${eJ}`;if(e===`/${eJ}`||e.startsWith(`/${eJ}/`))return e;let t=e.replace(RegExp(`^/(${M()})(?=/|$)`),"");return`/${eJ}${t.startsWith("/")?t:`/${t}`}`},[eJ,ea]);(0,l.useCallback)(()=>{let e=e4?.match(RegExp(`^/(${M()})(.*)$`));if(!e)return{currentLocale:eJ,remainingPath:"",isHomePage:!0,pathSegments:[]};let[,t,r]=e,n=r||"",a=!n||"/"===n||""===n,l=n.split("/").filter(Boolean);return{currentLocale:t,remainingPath:n,isHomePage:a,pathSegments:l,mainSegment:l[0]||null}},[e4,eJ]);let e6=async e=>{let t=(e??ex).trim();if(t){ew(!0),eT(!1),e$(1),eL(0),eI(!1),eA(t),eR("");try{let e=await v(t,void 0,1,10,e4),r=F(e.results),n=e.totalResults??r.length,a=e.query?.trim()??t,l=r.length>0?((e,t,r)=>{if(t&&H(t)!==H(e))return t;if(!O(e)||1!==r.length)return"";let n=(r[0].title||r[0].pageName||"").trim();if(!n||!O(n))return"";let a=H(e),l=H(n);if(!a||!l||a===l||l.length<4)return"";let s=l.length<=6?1:2;return((e,t)=>{let r=e.length,n=t.length,a=Array.from({length:r+1},(e,t)=>[t]);for(let e=1;e<=n;e+=1)a[0][e]=e;for(let l=1;l<=r;l+=1)for(let r=1;r<=n;r+=1){let n=+(e[l-1]!==t[r-1]);a[l][r]=Math.min(a[l-1][r]+1,a[l][r-1]+1,a[l-1][r-1]+n)}return a[r][n]})(a,l)<=s?n:""})(t,a,r):"";eN(r),eL(n),e$(e.currentPage||1),eI(r.length>0&&r.length<n),eR(l),ev(!0)}catch(e){}finally{ew(!1)}}},e8=async()=>{let e=eP||ex.trim();if(!e||eE||!ek)return;let t=eS+1,r=eb.length+1;eT(!0);try{let n=await v(e,void 0,t,10,e4),a=F(n.results),l=n.totalResults??ej,s=eb.length+a.length;eN(e=>[...e,...a]),eL(l),e$(n.currentPage||t),eI(a.length>0&&s<l),setTimeout(()=>{if(eW.current){let e=eW.current.querySelector(`.searchResultItem:nth-child(${r})`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest"})}},100)}catch(e){}finally{eT(!1)}};(0,l.useCallback)(e=>{let t=ei.find(t=>t.code===e);if(t)return t.culture||t.label;let r=(0,i.getLocaleConfig)(e);return r?.culture||r?.label||e.toUpperCase()},[ei]);let te=(0,l.useMemo)(()=>{let t=K.length>0?K:e.navigation||[];if(!t||0===t.length)return e.homePage?[{name:e.homePage.name?.toUpperCase()||"HOME",path:e.homePage.route?.path||(eJ===i.DEFAULT_LOCALE?"/":`/${eJ}`),key:e.homePage.id||"home-fallback",contentType:$,dropdownItems:void 0,cultures:e.homePage.cultures}]:[];let r=new d(t,{culture:(0,i.getLocaleConfig)(eJ)?.culture||eJ}).build().map(e=>{let t=[];return e.children&&e.children.length>
10&&e.children.forEach(e=>{if("headerCateogryLabel"===e.contentType||!e.url&&e.children&&e.children.length>0)t.push({title:h(e)||e.name,url:void 0,isCategoryHeader:!0});else{let r=[];e.children&&e.children.length>0&&e.children.forEach(e=>{"headerCateogryLabel"===e.contentType?r.push({title:h(e)||e.name,url:void 0,isCategoryHeader:!0}):r.push({title:e.navigationName||e.title||e.name,url:e.url,isCategoryHeader:!1,isNested:!1})}),t.push({title:e.navigationName||e.title||e.name,url:e.url,isCategoryHeader:!1,isNested:!1,nestedItems:r.length>0?r:void 0,hasNestedItems:r.length>0})}}),{name:(e.navigationName||e.name).toUpperCase(),path:e.url,key:e.id,contentType:e.contentType,dropdownItems:t.length>0?t:void 0,cultures:e.cultures}});if(e.homePage&&!r.some(t=>t.contentType===$||t.key===e.homePage?.id)){let t={name:e.homePage.name?.toUpperCase()||"HOME",path:e.homePage.route?.path||(eJ===i.DEFAULT_LOCALE?"/":`/${eJ}`),key:e.homePage.id||"home",contentType:$,dropdownItems:void 0,cultures:e.homePage.cultures};r.unshift(t)}if(A?.path){let e=A.path.replace(/\/+$/,"").toLowerCase();if(!r.some(t=>t.path?.replace(/\/+$/,"").toLowerCase()===e||t.dropdownItems?.some(t=>t.url?.replace(/\/+$/,"").toLowerCase()===e||t.nestedItems?.some(t=>t.url?.replace(/\/+$/,"").toLowerCase()===e)))){let t="/"+e.split("/").filter(Boolean).slice(0,-1).join("/")+"/",n=r.find(e=>e.path?.replace(/\/+$/,"").toLowerCase()+"/"===t.toLowerCase()||e.dropdownItems?.some(e=>e.url?.replace(/\/+$/,"").toLowerCase()+"/"===t.toLowerCase()));if(n){let e={title:A.navigationName||A.name,url:A.path,isCategoryHeader:!1,isNested:!1},r=n.dropdownItems?.find(e=>e.url?.replace(/\/+$/,"").toLowerCase()+"/"===t.toLowerCase());r&&r.nestedItems?r.nestedItems.push(e):r?(r.nestedItems=[e],r.hasNestedItems=!0):(n.dropdownItems||(n.dropdownItems=[]),n.dropdownItems.push(e))}}}return r.sort((e,t)=>e.contentType===$||"home"===e.contentType?-1:+(t.contentType===$||"home"===t.contentType)),r},[K,e.navigation,e.homePage,eJ,A]),tt=(0,l.useCallback)(()=>{let e,t=e=>{if(!e)return"";let t=M(),r=e.replace(RegExp(`^/(${t})(?=/|$)`),"");return`/${r.replace(/^\//,"").replace(/\/$/,"")}`},r=t(e4),n=te.find(e=>t(e.path)===r);if(n)return n.key;let a=te.filter(e=>{if(!e.path||e.contentType===$)return!1;let n=t(e.path);return("/"!==n||"/"===r)&&(r.startsWith(n+"/")||r===n)});return a.length>0?(a.sort((e,r)=>t(r.path).length-t(e.path).length),a[0].key):(e=M(),"/"===e4||e4===`/${eJ}`||e4===`/${eJ}/`||e4.match(RegExp(`^/(${e})/?$`)))?te.find(e=>e.contentType===$)?.key||te[0]?.key:void 0},[e4,te,eJ]),tr=(0,l.useCallback)(e=>{eo(e),setTimeout(()=>{eo(null)},300)},[]),tn=(0,l.useCallback)(()=>{let e=!D;_(e),e&&(eg(!1),ev(!1));let t=document.querySelector(".navbarContainer");t&&(e?t.classList.add("mobile-menu-open"):t.classList.remove("mobile-menu-open"))},[D]),ta=(0,l.useCallback)(()=>{q(!B)},[B]),tl=(0,l.useCallback)(()=>{Q(!G)},[G]),ts=(0,l.useCallback)(e=>{eK.current&&(clearTimeout(eK.current),eK.current=null),null===e?eK.current=setTimeout(()=>{ed(null)},3e3):ed(e)},[]),to=(0,l.useCallback)(e=>{em(eh===e?null:e)},[eh]),ti=(0,l.useCallback)(e=>{e_(t=>t.has(e)?new Set:new Set([e]))},[]),tc=(0,l.useMemo)(()=>tt(),[tt,e4]);(0,l.useEffect)(()=>{let e=document.querySelector(".navbarContainer");return e&&(D?e.classList.add("mobile-menu-open"):e.classList.remove("mobile-menu-open")),()=>{let e=document.querySelector(".navbarContainer");e&&e.classList.remove("mobile-menu-open")}},[D]),(0,l.useEffect)(()=>{let e=e=>
1{let t=e.target,r=t.closest(".languageDropdown"),n=t.closest(".navItem");!r&&G&&Q(!1),n||ed(null)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[G]);let tu=(0,l.useCallback)(e=>{let t=eB.current.get(e);if(t){let r=t.scrollHeight>t.clientHeight,n=t.scrollTop+t.clientHeight<t.scrollHeight-5;eV(t=>{let a=new Set(t);return r&&n?a.add(e):a.delete(e),a})}},[]),td=(0,l.useCallback)(e=>{tu(e)},[tu]);if((0,l.useEffect)(()=>{let e=X?eh:eu;e&&requestAnimationFrame(()=>{tu(e)})},[eu,eh,X,tu,eF,eD]),(0,l.useEffect)(()=>{let e=X?eh:eu;if(!e)return;let t=te.find(t=>t.key===e);if(!t?.dropdownItems)return;let r=e=>{if(!e)return"";let t=M(),r=e.replace(RegExp(`^/(${t})(?=/|$)`),"");return`/${r.replace(/^\//,"").replace(/\/$/,"")}`},n=r(e4),a=null,l=null,s=null;t.dropdownItems.forEach((t,o)=>{t.isCategoryHeader?s=t.title:(t.url&&r(t.url)===n&&(a=s),t.nestedItems&&t.nestedItems.forEach(t=>{t.url&&r(t.url)===n&&(a=s,l=X?`${e}-nested-${o}`:`${e}-dropdown-${o}`)}))});let o=new Set;a&&o.add(a),l&&X&&o.add(l),o.size>0&&eU(o),l&&!X&&e_(new Set([l]))},[eu,eh,te,e4,X]),(0,l.useEffect)(()=>{let e=e=>{(navigator.platform.toUpperCase().includes("MAC")?e.metaKey:e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),ep?(eg(!1),ev(!1),eN([]),eC(""),eL(0),e$(1),eI(!1),eT(!1),eA(""),eR(""),ew(!1)):(eg(!0),ev(!1),_(!1),em(null),eU(new Set))),"Escape"===e.key&&ep&&(eg(!1),ev(!1),eN([]),eC(""),eL(0),e$(1),eI(!1),eT(!1),eA(""),eR(""),ew(!1))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[ep]),!Y)return null;let th=()=>{eg(!0),ev(!1),_(!1),em(null),eU(new Set)},tm=()=>{eg(!1),ev(!1),eN([]),eC(""),eL(0),e$(1),eI(!1),eT(!1),eA(""),eR(""),ew(!1)},tp=(e=!1)=>(ei.map(e=>({code:e.code,name:(0,u.getLanguageName)(e.culture),region:(0,u.getRegionName)(e.culture),culture:e.culture})),(0,t.jsxs)("div",{className:"languageDropdown",children:[(0,t.jsxs)("div",{className:"languageControl",onClick:e?ta:tl,children:[(0,t.jsx)("img",{src:"/Language.svg",alt:"Language",title:"Language",className:e?"brandLogo":"languageIcon"}),(0,t.jsx)("span",{className:"languageText",children:e3}),(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faChevronRight,className:`languageArrow ${(e?B:G)?"languageArrowOpen":""}`,width:12,height:12})]}),(0,t.jsx)("div",{className:`languageDropdownMenu ${(e?B:G)?"visible":""}`,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"dropdownSectionHeader",children:(0,C.getGlobalTranslation)(eJ,"chooseLocalSite")}),(0,t.jsx)("div",{className:"localSitesList",children:e5.map(e=>{let r=T(e.url,ee),l=P(e,ee,eJ);return(0,t.jsxs)("a",{href:e.url,target:r?void 0:"_blank",rel:r?void 0:"noopener noreferrer",className:"localSiteItem","aria-current":l?"page":void 0,children:[(0,t.jsxs)("div",{className:"localSiteInfo",children:[(0,t.jsx)("span",{className:"localSiteName",children:e.name}),(0,t.jsx)("span",{className:"localSiteDomain",children:e.domain})]}),l?(0,t.jsx)("span",{className:"languageOptionCheck",children:"✓"}):(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faUpRightFromSquare,className:"localSiteIcon",width:11,height:11})]},e.url)})})]})})]})),tg=e=>{let t=Array.from(eF)[0];!X&&t&&t!==e?eZ.current=t:eZ.current=null,eU(t=>t.has(e)?new Set:new Set([e]))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("nav",{className:"mainNav",id:"mainNav",style:{position:"fixed",top:0,left:0,width:"100%",zIndex:1e3,backgroundColor:"var(--nav-bg-color, #013220)"},children:(0,t.jsxs)("div",{className:"navbarContainer",children:[(0,t.jsx)(r.default,{className:"navbarBrand",href:e9(e.homePage?.route?.path),children:(0,t.jsx)("img",{src:e1.logoSrc,alt:e1.name,title:e1.name,className:"brandLogo"})}),(0,t.jsx)("div",{className:"navbarNavContainer",children:(0,t.jsxs)("ul",{ref:ez,className:`navbarNav ${D?"open":""}`,children:[(0,t.jsx)(t.Fragment,{children:te.slice(1,5).map(e=>{var l,s;let o,i,c,u,d,h,m;return(0,t.jsxs)("li",{className:"navItem",onClick:()=>{X&&e.dropdownItems&&to(e.key)},onMouseEnter:()=>{e.dropdownItems?ts(e.key):(eK.current&&(clearTimeout(eK.current),eK.current=null),ed(null))},onMouseLeave:()=>e.dropdownItems?ts(null):null,children:[e.dropdownItems&&X?(0,t.jsxs)("div",{className:"navLinkWithArrow",children:[(0,t.jsx)(r.default,{className:`navLink ${e.key===tc?"active":""} ${es===e.key?"clicked":""}`,href:e9(e.path),onClick:t=>{t.stopPropagation(),tr(e.key)},title:e.name,children:e.name}),(0,t.jsx)("button",{className:"navArrowBtn",onClick:t=>{t.preventDefault(),t.stopPropagation(),to(e.key)},type:"button","aria-label":(0,C.getGlobalTranslation)(eJ,eh===e.ke
1y?"closeSubmenu":"openSubmenu"),children:(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faChevronRight,className:`dropdownArrow ${eh===e.key?"expanded":""}`})})]}):(0,t.jsxs)(r.default,{className:`navLink ${e.key===tc?"active":""} ${es===e.key?"clicked":""}`,href:e9(e.path),onClick:()=>{tr(e.key)},title:e.name,children:[e.name,e.dropdownItems&&(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faChevronRight,className:"dropdownArrow navLinkChevron"})]}),e.dropdownItems&&(l=e.dropdownItems,s=e.key,e.name,e.path,o=[],i=null,c=[],l.forEach((e,t)=>{e.isCategoryHeader?((c.length>0||null!==i)&&o.push({category:i,items:c}),i=e.title,c=[]):c.push({item:e,index:t})}),(c.length>0||null!==i)&&o.push({category:i,items:c}),u=X?eh===s:eu===s,h=(d=e=>{if(!e)return"";let t=M(),r=e.replace(RegExp(`^/(${t})(?=/|$)`),"");return`/${r.replace(/^\//,"").replace(/\/$/,"")}`})(e4),m=eX.has(s),(0,t.jsxs)("div",{className:`mainDropdownMenu ${u?"visible":""} ${m?"has-scroll":""}`,ref:e=>{e?eB.current.set(s,e):eB.current.delete(s)},onClick:e=>e.stopPropagation(),onScroll:()=>td(s),onMouseEnter:()=>{eq.current&&(clearTimeout(eq.current),eq.current=null)},onMouseLeave:()=>{eG.current&&(clearTimeout(eG.current),eG.current=null),X||(eq.current=setTimeout(()=>{eO(null),e_(new Set)},3e3))},children:[X&&(0,t.jsx)("button",{className:"submenuCloseBtn",onClick:e=>{e.preventDefault(),e.stopPropagation(),em(null)},"aria-label":(0,C.getGlobalTranslation)(eJ,"closeSubmenu"),type:"button",children:"×"}),(0,t.jsx)("div",{className:"categoriesScrollContainer",children:o.map((e,l)=>(0,t.jsxs)("div",{className:"categoryGroup",children:[e.category&&(0,t.jsxs)("button",{className:`dropdownCategoryHeader collapsible ${eF.has(e.category)?"expanded":""}`,onClick:t=>{t.preventDefault(),t.stopPropagation(),tg(e.category)},type:"button",children:[(0,t.jsx)("span",{children:e.category}),e.items.length>0&&(0,t.jsx)(n.FontAwesomeIcon,{icon:eF.has(e.category)?a.faMinus:a.faChevronRight,className:"categoryChevron"})]}),(0,t.jsx)("div",{className:`categoryItems ${!e.category||eF.has(e.category)?"expanded":"collapsed"}${eZ.current===e.category?" no-transition":""}`,children:e.items.map(({item:e,index:l})=>{let o=d(e.url),i=e.url&&o===h,c=e.nestedItems&&e.nestedItems.length>0,u=`${s}-nested-${l}`;if(c&&X&&e.nestedItems){let s=eF.has(u),o=e.nestedItems.some(e=>{let t=d(e.url);return e.url&&t===h});return(0,t.jsxs)("div",{className:"dropdownMenuItemWrapper",children:[(0,t.jsxs)("div",{className:"dropdownMenuItemWithArrow",onClick:()=>tg(u),children:[(0,t.jsx)(r.default,{href:e9(e.url),className:`dropdownMenuItem ${o?"hasNestedSubmenu":""} ${e.isNested?"dropdownMenuItemNested":""} ${i?"active":""}`,onClick:e=>{e.stopPropagation(),tr(`${u}-parent`)},children:e.title}),(0,t.jsx)("button",{className:"dropdownArrowBtn",onClick:e=>{e.preventDefault(),e.stopPropagation(),tg(u)},type:"button","aria-label":(0,C.getGlobalTranslation)(eJ,s?"collapseSubmenu":"expandSubmenu"),children:(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faChevronDown,className:`dropdownArrow ${s?"expanded":""}`})})]}),e.nestedItems&&(0,t.jsx)("div",{className:`nestedItemsContainer ${s?"expanded":"collapsed"}`,children:e.nestedItems.map((e,n)=>{let a=d(e.url),l=e.url&&a===h;return(0,t.jsx)(r.default,{href:e9(e.url),className:`dropdownMenuItem dropdownMenuItemNested ${l?"active":""}`,onClick:()=>tr(`${u}-item-${n}`),children:e.title},n)})})]},l)}if(c&&!X&&e.nestedItems){let o=e.nestedItems.some(e=>{let t=d(e.url);return e.url&&t===h}),c=`${s}-dropdown-${l}`,u=eD.has(c);return(0,t.jsxs)("div",{className:"dropdownMenuItemContainer",onMouseEnter:()=>{eq.current&&(clearTimeout(eq.current),eq.current=null),eO(c)},onMouseLeave:()=>{eO(null)},children:[(0,t.jsxs)("div",{className:`dropdownMenuItemWrapper ${o?"active":""} ${u?"expanded":""}`,onClick:()=>{e.hasNestedItems&&ti(c)},children:[(0,t.jsx)(r.default,{href:e9(e.url),className:`dropdownMenuItem ${o?"hasNestedSubmenu":""} ${e.isNested?"dropdownMenuItemNested":""} ${i?"active":""}`,onClick:e=>{e.stopPropagation(),tr(c)},children:e.title}),(0,t.jsx)("button",{className:"chevronToggle",onClick:e=>{e.preventDefault(),e.stopPropagation(),ti(c)},onMouseEnter:e=>{e.stopPropagation()},onMouseLeave:e=>{e.stopPropagation()},"aria-expanded":u?"true":"false","aria-label":(0,C.getGlobalTranslation)(eJ,u?"collapseSection":"expandSection"),type:"button",children:(0,t.jsx)(n.FontAwesomeIcon,{icon:u?a.faChevronDown:a.faChevronRight,className:"dropdownChevron"})})]}),u&&e.nestedItems.map((e,n)=>
1{let a=d(e.url),o=e.url&&a===h;return(0,t.jsx)(r.default,{href:e9(e.url),className:`dropdownMenuItem dropdownMenuItemLevel3 ${o?"active":""}`,onClick:()=>tr(`${s}-dropdown-${l}-${n}`),onMouseEnter:()=>{eq.current&&(clearTimeout(eq.current),eq.current=null)},children:e.title},`${l}-nested-${n}`)})]},l)}return(0,t.jsx)(r.default,{href:e9(e.url),className:`dropdownMenuItem ${e.isNested?"dropdownMenuItemNested":""} ${i?"active":""}`,onClick:()=>tr(`${s}-dropdown-${l}`),children:e.title},l)})})]},l))})]}))]},e.key)})}),D&&(0,t.jsx)("li",{className:"mobileOnlyItem",children:(0,t.jsxs)("div",{className:"mobileLanguageSection",children:[(0,t.jsx)("div",{className:"mobileLanguageDivider"}),(0,t.jsx)("div",{className:"mobileLanguageContainer",children:tp(!0)}),(0,t.jsx)("div",{className:"mobileLanguageDivider"})]})})]})}),(0,t.jsxs)("div",{className:"rightIcons",children:[(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faSearch,className:"searchIcon",onClick:()=>th(),style:{cursor:"pointer"}}),tp()]}),(0,t.jsxs)("div",{className:"mobileRightIcons",children:[(0,t.jsx)("div",{className:"mobileIconsContainer",children:(0,t.jsx)("div",{className:"mobileIconItem",children:(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faSearch,className:"searchIcon",onClick:()=>th(),style:{cursor:"pointer"}})})}),(0,t.jsx)("button",{className:"mobileMenuToggle",onClick:tn,"aria-label":(0,C.getGlobalTranslation)(eJ,"toggleMenu"),children:D?(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faTimes,className:"closeIcon"}):(0,t.jsxs)("span",{className:"hamburgerIcon",children:[(0,t.jsx)("span",{className:"hamburgerLine"}),(0,t.jsx)("span",{className:"hamburgerLine"}),(0,t.jsx)("span",{className:"hamburgerLine"})]})})]})]})}),"undefined"!=typeof document&&ep&&(0,s.createPortal)((m=ef&&eb.length>0,p=e=>(0,x.getSearchTranslation)(eJ,e),f=1===ej?"resultsHeaderSingular":"resultsHeader",b=(0,x.interpolate)(p(f),{count:ej}),w=eP||ex.trim(),j=(0,x.interpolate)(p("noResults"),{query:w}),ep&&(0,t.jsxs)("div",{className:`searchPopupOverlay ${!m?"searchPopupOverlayEmpty":""}`,children:[(0,t.jsx)("div",{className:"searchHeaderTopBar",onClick:e=>e.stopPropagation(),children:(0,t.jsxs)("div",{className:"searchHeaderNavContainer",children:[(0,t.jsx)(r.default,{className:"logoOnSearch",href:e9(e.homePage?.route?.path),children:(0,t.jsx)("img",{src:e1.logoSrc,alt:e1.name,title:e1.name,className:"brandLogo"})}),(0,t.jsx)("button",{className:"closeSearchPopup",onClick:()=>tm(),children:(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faTimes})})]})}),(0,t.jsxs)("div",{className:`searchCenterWrapper ${m?"searchCenterWrapperActive":""}`,children:[(0,t.jsx)("div",{className:"searchPopupHeader",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"searchHeaderContent",children:(0,t.jsxs)("div",{className:"searchBoxCentered",children:[(0,t.jsxs)("div",{className:"searchInputWrapper",children:[(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faSearch,className:"searchInputIcon"}),(0,t.jsx)("input",{type:"text",className:"searchInput",placeholder:p("placeholder"),value:ex,onChange:e=>{var t;eC(t=e.target.value),ef&&0===eb.length&&eP&&!ey&&t!==eP&&(ev(!1),eN([]),eL(0),e$(1),eI(!1),eT(!1),eA(""),eR(""))},onKeyDown:e=>{"Enter"===e.key&&!ey&&ex.trim()&&e6()},disabled:ey,autoFocus:!0})]}),(0,t.jsxs)("button",{className:"searchButton",onClick:()=>e6(),disabled:ey||!ex.trim(),children:[ey&&(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faSpinner,className:"searchSpinner",spin:!0}),ey?p("searching"):p("searchButton")]})]})})}),ef&&!ey&&0===eb.length&&w&&ex.trim()===eP&&(0,t.jsx)("div",{className:"searchNoResults",children:(0,t.jsx)("p",{children:j})})]}),ey&&(0,t.jsx)("div",{className:"searchLoadingOverlay",children:(0,t.jsxs)("div",{className:"searchLoadingSpinner",children:[(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faSpinner,spin:!0,size:"2x",className:"loadingSpinnerIcon"}),(0,t.jsx)("p",{className:"loadingText",children:p("loadingText")})]})}),ef&&!ey&&eb.length>0&&(0,t.jsxs)("div",{className:"searchResultsWrapper",children:[eM&&eP&&(0,t.jsxs)("div",{className:"searchSpellCorrection",children:[(0,t.jsx)("p",{className:"searchSpellCorrectionPrimary",children:(0,t.jsx)(W,{template:p("showingResultsFor"),query:eM,className:"searchSpellCorrectionQueryShow",valueTag:"strong",onQueryClick:()=>{let e=eM.trim();e&&(eC(e),e6(e))}})}),(0,t.jsx)("p",{className:"searchSpellCorrectionSecondary",children:(0,t.jsx)(W,{template:p("spellCorrectionNoResults"),query:eP,className:"searchSpellCorrectionQuery"})})]}),(0,t.jsx)("div",{className:"searchResultsHeader",children:(0,t.jsx)("h2",{children:b})}),(0,t.jsx)("div",{className:"searchResultsContainer",ref:eW,onClick:e=>e.stopPropagation(),children:eb.map((e,n)=>{let a=e.url?(0,N.toCurrentDomainHref)(e.url):"",l=!!a&&(0,N.isExternalUrl)(a),s=(e=>{let t=e?.trim();if(!t||["Umbraco.Cms.Core.Models","Umbraco.Cms.Web.Common","MediaWithCrops","PublishedModels","`1[","]["].some(e=>t.includes(e)))return null;let r=t?.trim();if(!r)return"";let n="https://umbraco.pindstrup.com".replace(/\/$/,"");if(/^https?:\/\//i.test(r))return r;if(r.startsWith("//"))return`https:${r}`;let a=r.startsWith("/")?r:`/${r}`;return n?`${n}${a}`:a})(e.imageUrl??"")??"",o=(0,x.getContentLabelText)(e.contentLabel,eJ),i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`searchResultImage${!s?" searchResultImage--empty":""}`,children:s&&(0,t.jsx)("img",{src:s,alt:"",width:160,height:91,style:{objectFit:"cover",display:"block"}})}),(0,t.jsxs)("div",{className:"searchResultContent",children:[o&&(0,t.jsx)("span",{className:"searchResultLabel",children:o}),(0,t.jsx)("h3",{className:"searchResultTitle",children:e.title||e.pageName||p("pageNameFallback")}),(0,t.jsx)(z,{description:e.description})]})]});return l?(0,t.jsx)("a",{className:"searchResultItem",href:a,target:"_blank",rel:"noopener noreferrer",onClick:()=>tm(),children:i},e.url||e.title||e.pageName||n):(0,t.jsx)(r.default,{className:"searchResultItem",href:a,onClick:t=>
1{e.url?tm():t.preventDefault()},children:i},e.url||e.title||e.pageName||n)})}),ek&&(0,t.jsx)("div",{className:"showMoreContainer",children:(0,t.jsx)("button",{className:"showMoreButton",onClick:e8,disabled:eE,children:eE?p("loadingText"):p("showMore")})})]})]})),document.body)]})},"getSearchDescriptionSentences",0,_,"normalizeSearchCorrectionTerm",0,H],79575)},17841,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(72696),a=e.i(79797),l=e.i(20175),s=e.i(22016),o=e.i(1999);e.s(["Footer",0,e=>{let{aiAssistedVisibility:i}=(0,l.usePageSettings)(),[c,u]=(0,r.useState)(new Set),d=e=>{u(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},h=e.homePage?.properties?.footerGraphic?.[0]?.url?`https://umbraco.pindstrup.com${e.homePage.properties.footerGraphic[0].url}`:"/title-footer.svg",m=e.homePage?.properties?.footerLinksGroup?.items||[],p=e.homePage?.properties?.copyrightNotice||"Copyright © 2025 Pindstrup Mosebrug A/S",g=t=>{let r=t?.trim()||"",n=`/${o.DEFAULT_LOCALE}`;return e.locale===o.DEFAULT_LOCALE&&r.startsWith(`${n}/`)?r=r.replace(RegExp(`^/${o.DEFAULT_LOCALE}(/|$)`),"/"):e.locale===o.DEFAULT_LOCALE&&r===n&&(r="/"),r},f=e.homePage?.properties?.termAndConditionUrl?.items?.[0]?.content?.properties?.label||"Terms & Conditions",v=e.homePage?.properties?.privacyPolicyUrl?.items?.[0]?.content?.properties?.label||"Privacy Policy",x=p.replace(f,"").replace(v,"").trim(),C=(0,a.resolveUrlLinkButtonWithMeta)(e.homePage?.properties?.termAndConditionUrl?.items?.[0]?.content?.properties?.urlFooterLink),b=(0,a.resolveUrlLinkButtonWithMeta)(e.homePage?.properties?.privacyPolicyUrl?.items?.[0]?.content?.properties?.urlFooterLink),N=(0,a.resolveUrlLinkButtonWithMeta)(e.homePage?.properties?.whistleblower?.items?.[0]?.content?.properties?.urlFooterLink),y=e.homePage?.properties?.whistleblower?.items?.[0]?.content?.properties?.label||"Whistleblower";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FooterDividerColorController,{}),(0,t.jsx)("div",{className:"pindstrup-footer-bg organic-divider-top organic-divider-dynamic",children:(0,t.jsx)("div",{className:"pindstrup-footer-wrapper",children:(0,t.jsxs)("footer",{className:"pindstrup-footer",children:[(0,t.jsxs)("div",{className:"footer-top",children:[(0,t.jsx)("div",{className:"footer-brand",children:(0,t.jsx)("span",{className:"footer-slogan",children:(0,t.jsx)("img",{src:h,alt:"Growing a responsible world",title:"Growing a responsible world",width:180,height:54})})}),(0,t.jsx)("div",{className:"footer-links",children:m.map((e,r)=>{let n,l,o;return(0,t.jsxs)("div",{className:`link-column ${c.has(r)?"expanded":""}`,children:[(n=(0,a.resolveUrlLinkButtonWithMeta)(e.content?.properties?.titleToUrl),l=e.content?.properties?.groupTitle||`Link Container ${r+1}`,(o=g(n?.href))&&"/en"!==o&&"/"!==o?(0,t.jsx)("div",{className:"footer-heading-shell",onClick:()=>d(r),children:n?.isExternal?(0,t.jsx)("a",{href:o,className:"footer-heading footer-link",target:"_blank",rel:"noopener noreferrer",children:l}):(0,t.jsx)(s.default,{href:o,className:"footer-heading footer-link",children:l})}):(0,t.jsx)("div",{className:"footer-heading-shell",children:(0,t.jsx)("button",{type:"button",className:"footer-heading","aria-expanded":c.has(r),onClick:()=>d(r),children:l})})),(0,t.jsx)("ul",{children:e.content?.properties?.linkItems?.items?.map((e,r)=>{let n=(0,a.resolveUrlLinkButtonWithMeta)(e.content?.properties?.urlFooterLink),l=e.content?.properties?.label||"Link",o=g(n?.href);return(0,t.jsx)("li",{children:n?.isExternal&&o?(0,t.jsx)("a",{href:o,className:"footer-link",target:"_blank",rel:"noopener noreferrer",children:l}):o?(0,t.jsx)(s.default,{href:o,className:"footer-link",children:l}):(0,t.jsx)("span",{className:"footer-link",children:l})},r)})})]},r)})})]}),(0,t.jsxs)("div",{className:"footer-blog",children:[i&&(0,t.jsxs)("div",{className:"footer-ai-badge",children:[(0,t.jsx)("div",{className:"text-badge",children:(0,t.jsx)("span",{children:"AI-assisted content"})}),(0,t.jsx)("img",{src:"/translated-AI.png",alt:"AI-assisted content",width:160,height:40})]}),(0,t.jsx)("div",{className:"footer-copyright",children:(0,t.jsx)("div",{className:"link-column-copyright",children:(0,t.jsx)("ul",{children:(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"footer-copyright-content",children:[(0,t.jsx)("span",{className:"copyright-text",children:x}),C?.href?C.isExternal?(0,t.jsx)("a",{href:g(C.href),className:"footer-link-conditions",target:"_blank",rel:"noopener noreferrer",children:f}):(0,t.jsx)(s.default,{href:g(C.href),className:"footer-link-conditions",children:f}):(0,t.jsx)("span",{className:"footer-link-conditions",children:f}),b?.href?b.isExternal?(0,t.jsx)("a",{href:g(b.href),className:"footer-link-privacy",target:"_blank",rel:"noopener noreferrer",children:v}):(0,t.jsx)(s.default,{href:g(b.href),className:"footer-link-privacy",children:v}):(0,t.jsx)("span",{className:"footer-link-privacy",children:v}),N?.href?N.isExternal?(0,t.jsx)("a",{href:g(N.href),className:"footer-link-whistleblower",target:"_blank",rel:"noopener noreferrer",children:y}):(0,t.jsx)(s.default,{href:g(N.href),className:"footer-link-whistleblower",children:y}):(0,t.jsx)("span",{className:"footer-link-whistleblower",children:y}),e.icpRegistration&&(e.icpRegistration.linkable?(0,t.jsx)("a",{href:e.icpRegistration.href,className:"footer-link-icp",target:"_blank",rel:"noopener noreferrer",children:e.icpRegistration.number}):(0,t.jsx)("span",{className:"footer-link-icp",children:e.icpRegistration.number}))]})})})})})]})]})})})]})}])}]);

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.