(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1478],{15441:function(e,l,n){"use strict";n.r(l),n.d(l,{default:function(){return c}});var t=n(26705),a=n(21868),r=n(74462),i=n(16581),s=n(87138);function o(e){let{data:l}=e,{footer:n}=null!=l?l:{},{contact:a,footerText:o,links:c}=null!=n?n:{};return(0,t.jsxs)("footer",{style:{backgroundColor:"#F5E4E4"},id:"footer",className:"bottom-0 mt-16 flex w-full flex-col px-8  pb-8 pt-16 lg:mt-32 lg:px",children:[(0,t.jsxs)("div",{className:"grid space-y-8 lg:grid-cols-[auto_1fr_auto] lg:space-x-4 lg:space-y-0",children:[(0,t.jsx)("div",{className:"col-span-full flex flex-col items-start justify-between space-y-8 lg:col-span-1  lg:space-y-0",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h2",{className:"font-sans-medium text-ingress",children:"Teknobyen"}),o&&(0,t.jsx)(r.s,{paragraphClasses:"max-w-[33ch] text-balance",value:o})]})}),(0,t.jsx)("div",{className:"col-span-full flex flex-col text-ingress lg:col-span-1 lg:items-center",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-5 lg:items-start",children:[(0,t.jsx)("h2",{className:"font-sans-medium ",children:"Snarveier"}),c&&c.length>0&&c.map(e=>(0,t.jsx)(s.default,{href:e.slug,className:"nav-text w-fit border-b border-black",children:e.title},e._key))]})}),(0,t.jsxs)("div",{className:"col-span-full flex flex-col items-start space-y-4 lg:col-span-1",children:[(0,t.jsx)("h2",{className:"font-sans-medium text-ingress ",children:"Kontakt"}),a&&a.map(e=>e.body&&(0,t.jsx)("div",{className:"flex flex-col",children:(0,t.jsx)(r.s,{value:e.body})},e._key))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"col-span-1 mt-32 lg:mt-0",children:(0,t.jsx)(s.default,{"aria-label":"Link til KLP eiendom Trondheim",href:"https://www.klpeiendom.no/trondheim",children:(0,t.jsx)(i.ef,{})})}),(0,t.jsxs)("div",{className:"col-span-full mt-16 grid  space-y-4 border-t border-black pt-4 lg:mt-32 lg:grid-cols-[auto_1fr_auto] lg:space-x-8 lg:space-y-0",children:[(0,t.jsx)("h3",{className:"col-span-1 lg:text-right",children:"\xa9 2024 KLP Eiendom. Alle rettigheter reservert."}),(0,t.jsx)("div",{className:"col-span-1 flex flex-col items-start lg:flex-row lg:items-center lg:justify-end",children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)("a",{"aria-label":"G\xe5 til linkedin",href:"https://www.linkedin.com/company/teknobyen/posts/?feedView=all",target:"_blank",children:(0,t.jsx)(i.yh,{})}),(0,t.jsx)("a",{"aria-label":"G\xe5 til Facebook",href:"https://www.facebook.com/TeknobyenTrondheim",target:"_blank",children:(0,t.jsx)(i.s1,{})}),(0,t.jsx)("a",{"aria-label":"G\xe5 til Instagram",target:"_blank",href:"https://instagram.com/teknobyen",children:(0,t.jsx)(i.mr,{})})]})})]})]})]})}function c(e){let{data:l}=(0,a.r)(e.initial);return(0,t.jsx)(o,{data:l})}},25598:function(e,l,n){"use strict";n.d(l,{default:function(){return M}});var t=n(26705),a=n(87138),r=n(20955),i=n(47723),s=n(99052);function o(e){let{className:l}=e,[n,a]=(0,r.useState)(i);function i(){let e=new Date;return new Intl.DateTimeFormat("no-NO",{timeZone:"Europe/Oslo",hour:"2-digit",minute:"2-digit",hour12:!1}).format(e)}return(0,r.useEffect)(()=>{function e(){a(i())}e();let l=setTimeout(()=>{e(),setInterval(e,6e4)},1e3*(60-new Date().getSeconds()));return()=>{clearTimeout(l),clearInterval(setInterval(()=>{},6e4))}},[]),(0,t.jsxs)("div",{className:(0,s.cn)("flex items-center gap-2 ",l),children:[(0,t.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.65264 19.0029C7.23546 20.0605 9.09636 20.625 11 20.625C13.5527 20.625 16.0009 19.6109 17.8059 17.8059C19.6109 16.0009 20.625 13.5527 20.625 11C20.625 9.09636 20.0605 7.23546 19.0029 5.65264C17.9453 4.06982 16.4421 2.83616 14.6833 2.10766C12.9246 1.37917 10.9893 1.18856 9.12226 1.55995C7.25519 1.93133 5.54018 2.84802 4.1941 4.1941C2.84802 5.54018 1.93133 7.25519 1.55995 9.12226C1.18856 10.9893 1.37917 12.9246 2.10766 14.6833C2.83616 16.4421 4.06982 17.9453 5.65264 19.0029ZM6.41655 4.14038C7.77326 3.23386 9.36831 2.75 11 2.75C13.188 2.75 15.2865 3.6192 16.8336 5.16637C18.3808 6.71355 19.25 8.81197 19.25 11C19.25 12.6317 18.7661 14.2268 17.8596 15.5835C16.9531 16.9402 15.6646 17.9976 14.1571 18.622C12.6497 19.2464 10.9909 19.4098 9.39051 19.0915C7.79017 18.7732 6.32016 17.9874 5.16637 16.8336C4.01259 15.6799 3.22685 14.2098 2.90853 12.6095C2.5902 11.0092 2.75358 9.35036 3.378 7.84287C4.00242 6.33538 5.05984 5.0469 6.41655 4.14038ZM10.3125 11.2819L14.1556 15.125L15.125 14.1556L11.6875 10.7113V4.8125H10.3125V11.2819Z",fill:"#101010"})}),(0,t.jsx)("p",{className:"text-button-small lg:text-button",children:n})]})}let c=()=>(0,t.jsxs)("svg",{width:"202",height:"40",viewBox:"0 0 202 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1010_3298)",children:[(0,t.jsx)("path",{d:"M23.4564 8.17529L18.7982 8.17529L18.7982 13.4333L15.3029 13.4333L15.3029 17.5216L18.7982 17.5216L18.7982 26.7932C18.7982 31.4291 20.6168 32.7071 24.4773 32.7071L28.7012 32.7071L28.7012 28.6188L25.461 28.6188C23.4953 28.6188 23.4581 28.4357 23.4581 26.3186L23.4581 17.5216L28.7012 17.5216L28.7012 13.4333L23.4581 13.4333L23.4581 8.17529L23.4564 8.17529Z",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M34.8875 21.0253C35.359 18.7269 36.7061 16.937 39.8736 16.937C42.5678 16.937 43.9503 18.6896 44.1329 21.0253L34.8875 21.0253ZM39.7282 13.1401C33.8684 13.1401 30.155 17.0472 30.155 23.0695C30.155 29.0918 33.5759 32.9988 39.8009 32.9988C44.9358 32.9988 47.6283 29.9681 48.4649 25.99L43.7323 25.99C43.1864 27.7053 42.0591 28.9105 39.8381 28.9105C36.9259 28.9105 35.0329 27.1578 34.705 24.2391L48.6829 24.2391C48.7556 23.6916 48.791 23.3254 48.791 22.8153C48.791 15.8064 44.1683 13.1401 39.7265 13.1401",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M68.5946 13.4317L62.7701 13.4317L55.4533 21.3169C55.3434 21.4271 55.1254 21.6457 54.8347 21.4271C54.6167 21.244 54.6893 20.988 54.8347 20.8067C55.4178 20.0761 55.7812 19.4558 55.7812 17.9218L55.7812 6.42285L51.1231 6.42285L51.1231 32.7073L55.7812 32.7073L55.7812 26.3171L57.4562 24.6391L63.3533 32.7073L69.1777 32.7073L60.5882 21.4999L68.5963 13.4317L68.5946 13.4317Z",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M82.0642 13.1401C78.7142 13.1401 76.5304 15.842 75.6566 17.776C75.513 18.0693 75.4031 18.2879 75.1107 18.215C74.6374 18.1048 74.8572 17.5946 75.0025 17.2658C75.3659 16.4997 75.5839 15.8064 75.5839 14.6386L75.5839 13.4334L70.9258 13.4334L70.9258 32.7073L75.5839 32.7073L75.5839 24.8577C75.5839 20.4049 78.0601 17.376 80.7525 17.376C83.1933 17.376 84.3206 18.5812 84.3206 22.9237L84.3206 32.7073L88.9805 32.7073L88.9805 21.3186C88.9805 15.842 86.2136 13.1419 82.0642 13.1419",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M122.615 28.7647C119.557 28.7647 117.519 26.1375 117.519 23.0695C117.519 20.0015 119.557 17.3743 122.615 17.3743C125.89 17.3743 127.42 20.0015 127.42 23.0695C127.42 26.1375 125.89 28.7647 122.615 28.7647ZM123.707 13.1402C120.722 13.1402 118.791 14.6742 117.627 16.7184C117.554 16.8641 117.336 17.3387 116.973 17.1556C116.608 16.9725 116.863 16.5353 117.008 16.1709C117.336 15.5132 117.519 14.9284 117.519 14.1623L117.519 6.42285L112.859 6.42285L112.859 32.7055L117.519 32.7055L117.519 31.8665C117.519 31.136 117.336 30.5529 117.008 29.8953C116.826 29.5309 116.68 29.1647 117.081 29.0189C117.409 28.9087 117.554 29.2731 117.627 29.3833C118.791 31.5004 120.794 32.9971 123.707 32.9971C128.693 32.9971 132.078 28.6172 132.078 23.0677C132.078 17.5183 128.693 13.1384 123.707 13.1384",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M143.109 25.8796C142.856 26.6457 142.781 27.3763 142.781 28.0695C142.781 28.361 142.746 28.6899 142.345 28.6899C141.945 28.6899 141.907 28.3255 141.907 28.0695C141.907 27.3389 141.872 26.6439 141.615 25.8796L137.32 13.4315L132.37 13.4315L139.869 32.9613L139.468 34.1291C138.958 35.6258 138.414 35.6258 135.645 35.6258L134.045 35.6258L134.045 39.7142L137.538 39.7142C140.888 39.7142 142.709 38.3632 144.018 34.9326L152.172 13.4297L147.221 13.4297L143.107 25.8778L143.109 25.8796Z",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M156.907 21.0253C157.379 18.7269 158.726 16.937 161.893 16.937C164.587 16.937 165.97 18.6896 166.152 21.0253L156.907 21.0253ZM161.748 13.1401C155.888 13.1401 152.174 17.0472 152.174 23.0695C152.174 29.0918 155.595 32.9988 161.82 32.9988C166.955 32.9988 169.648 29.9681 170.484 25.99L165.754 25.99C165.206 27.7053 164.079 28.9105 161.858 28.9105C158.945 28.9105 157.052 27.1578 156.725 24.2391L170.702 24.2391C170.775 23.6916 170.811 23.3254 170.811 22.8153C170.811 15.8064 166.188 13.1401 161.746 13.1401",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M184.283 13.1401C180.933 13.1401 178.749 15.842 177.875 17.776C177.732 18.0693 177.622 18.2879 177.329 18.215C176.856 18.1048 177.076 17.5946 177.221 17.2658C177.585 16.4997 177.803 15.8064 177.803 14.6386L177.803 13.4334L173.145 13.4334L173.145 32.7073L177.803 32.7073L177.803 24.8577C177.803 20.4049 180.279 17.376 182.971 17.376C185.412 17.376 186.539 18.5812 186.539 22.9237L186.539 32.7073L191.199 32.7073L191.199 21.3186C191.199 15.842 188.432 13.1419 184.283 13.1419",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M100.919 13.1401C95.3765 13.1401 91.018 17.5111 91.018 23.0695C91.018 28.6278 95.3765 32.9988 100.919 32.9988C106.462 32.9988 110.82 28.6829 110.82 23.0695C110.82 17.456 106.462 13.1401 100.919 13.1401Z",fill:"#4B261E"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1010_3298",children:(0,t.jsx)("rect",{width:"40",height:"201.5",fill:"white",transform:"translate(201.75) rotate(90)"})})})]});var d=n(62847),u=n(12218),f=n(37440);let x=r.forwardRef((e,l)=>{let{className:n,children:a,...r}=e;return(0,t.jsxs)(d.fC,{ref:l,className:(0,f.cn)("relative z-10",n),...r,children:[a,(0,t.jsx)(v,{})]})});x.displayName=d.fC.displayName;let h=r.forwardRef((e,l)=>{let{className:n,...a}=e;return(0,t.jsx)(d.aV,{ref:l,className:(0,f.cn)("group flex flex-1 list-none items-center justify-center space-x-4",n),...a})});h.displayName=d.aV.displayName;let p=d.ck,m=(0,u.j)("group  inline-flex  w-max items-center   justify-center    transition-colors  focus:outline-none disabled:pointer-events-none disabled:opacity-50 "),b=(0,u.j)("group  inline-flex  w-max items-center justify-center rounded-lg transition-colors  focus:outline-none disabled:pointer-events-none disabled:opacity-50 "),g=r.forwardRef((e,l)=>{let{className:n,children:a,...r}=e;return(0,t.jsxs)(d.xz,{ref:l,className:(0,f.cn)(m(),"group",n),...r,children:[a," "]})});g.displayName=d.xz.displayName;let C=r.forwardRef((e,l)=>{let{className:n,...a}=e;return(0,t.jsx)(d.VY,{ref:l,className:(0,f.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52  data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52  lg:absolute lg:w-screen",n),...a})});C.displayName=d.VY.displayName;let j=d.rU,v=r.forwardRef((e,l)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{className:(0,f.cn)("absolute left-0 top-0 -z-40 flex justify-center  "),children:(0,t.jsx)(d.l_,{className:(0,f.cn)("origin-top-center relative h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden   border-b border-gray-200 bg-white bg-opacity-10 drop-shadow-sm backdrop-blur-2xl duration-75 data-[state=closed]:fade-out data-[state=open]:fade-in lg:w-[var(--radix-navigation-menu-viewport-width)]",n),ref:l,...a})})});v.displayName=d.l_.displayName,r.forwardRef((e,l)=>{let{className:n,...a}=e;return(0,t.jsx)(d.z$,{ref:l,className:(0,f.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in ",n),...a,children:(0,t.jsx)("div",{className:" relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-lg"})})}).displayName=d.z$.displayName;var y=n(62936),k=n(75597),L=n(75883),w=n(95127),N=n(75730),T=n(16463);function Z(){return(0,t.jsxs)("svg",{width:"106",height:"30",viewBox:"0 0 106 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1041_2195)",children:[(0,t.jsx)("path",{d:"M4.84516 6.94531L2.32596 6.94531L2.32596 9.7889L0.435616 9.7889L0.435616 11.9999L2.32596 11.9999L2.32596 17.0142C2.32596 19.5213 3.30949 20.2125 5.39731 20.2125L7.68164 20.2125L7.68164 18.0015L5.92933 18.0015C4.86625 18.0015 4.84612 17.9025 4.84612 16.7575L4.84612 11.9999L7.68164 11.9999L7.68164 9.7889L4.84612 9.7889L4.84612 6.94531L4.84516 6.94531Z",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M11.0276 13.8943C11.2826 12.6513 12.0112 11.6833 13.7242 11.6833C15.1812 11.6833 15.9289 12.6311 16.0277 13.8943L11.0276 13.8943ZM13.6456 9.62988C10.4765 9.62988 8.46819 11.7429 8.46819 14.9998C8.46819 18.2568 10.3183 20.3698 13.6849 20.3698C16.4619 20.3698 17.918 18.7307 18.3705 16.5793L15.811 16.5793C15.5158 17.507 14.9061 18.1587 13.705 18.1587C12.13 18.1587 11.1062 17.2109 10.9289 15.6324L18.4884 15.6324C18.5277 15.3363 18.5469 15.1383 18.5469 14.8624C18.5469 11.0719 16.0469 9.62988 13.6446 9.62988",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M29.2569 9.78756L26.1069 9.78756L22.1499 14.052C22.0904 14.1116 21.9725 14.2298 21.8153 14.1116C21.6974 14.0126 21.7367 13.8741 21.8153 13.7761C22.1307 13.381 22.3272 13.0455 22.3272 12.2159L22.3272 5.99707L19.808 5.99707L19.808 20.2121L22.3272 20.2121L22.3272 16.7562L23.2331 15.8487L26.4223 20.2121L29.5723 20.2121L24.9269 14.151L29.2578 9.78756L29.2569 9.78756Z",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M36.5428 9.62988C34.731 9.62988 33.55 11.0911 33.0774 12.137C32.9998 12.2956 32.9404 12.4139 32.7822 12.3745C32.5262 12.3149 32.6451 12.039 32.7237 11.8611C32.9202 11.4468 33.0381 11.0719 33.0381 10.4403L33.0381 9.7885L30.5189 9.7885L30.5189 20.2121L33.0381 20.2121L33.0381 15.9669C33.0381 13.5588 34.3773 11.9207 35.8334 11.9207C37.1534 11.9207 37.7631 12.5725 37.7631 14.921L37.7631 20.2121L40.2832 20.2121L40.2832 14.0529C40.2832 11.0911 38.7868 9.63084 36.5428 9.63084",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M58.4719 18.0799C56.8183 18.0799 55.7159 16.6591 55.7159 14.9999C55.7159 13.3406 56.8183 11.9198 58.4719 11.9198C60.2434 11.9198 61.0707 13.3406 61.0707 14.9999C61.0707 16.6591 60.2434 18.0799 58.4719 18.0799ZM59.0624 9.62991C57.4481 9.62991 56.4042 10.4595 55.7744 11.565C55.7351 11.6439 55.6172 11.9005 55.4207 11.8015C55.2232 11.7025 55.3613 11.466 55.4399 11.269C55.6172 10.9133 55.7159 10.597 55.7159 10.1827L55.7159 5.99707L53.1958 5.99707L53.1958 20.2112L55.7159 20.2112L55.7159 19.7574C55.7159 19.3623 55.6172 19.047 55.4399 18.6913C55.3411 18.4943 55.2625 18.2962 55.4792 18.2174C55.6565 18.1578 55.7351 18.3549 55.7744 18.4145C56.4042 19.5594 57.4874 20.3688 59.0624 20.3688C61.7589 20.3688 63.5898 18.0001 63.5898 14.9989C63.5898 11.9976 61.7589 9.62895 59.0624 9.62894",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M69.5557 16.5197C69.4186 16.9341 69.3784 17.3292 69.3784 17.7041C69.3784 17.8617 69.3592 18.0396 69.1426 18.0396C68.9259 18.0396 68.9058 17.8425 68.9058 17.7041C68.9058 17.309 68.8866 16.9331 68.7476 16.5197L66.425 9.78758L63.7476 9.78758L67.8034 20.3496L67.5868 20.9812C67.3107 21.7907 67.0164 21.7906 65.5191 21.7906L64.6535 21.7906L64.6535 24.0017L66.5429 24.0017C68.3546 24.0017 69.3391 23.2711 70.0475 21.4157L74.457 9.78662L71.7797 9.78662L69.5548 16.5188L69.5557 16.5197Z",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M77.0179 13.8943C77.2729 12.6513 78.0014 11.6833 79.7144 11.6833C81.1715 11.6833 81.9192 12.6311 82.0179 13.8943L77.0179 13.8943ZM79.6358 9.62988C76.4667 9.62988 74.4584 11.7429 74.4584 14.9998C74.4584 18.2568 76.3085 20.3698 79.6751 20.3698C82.4522 20.3698 83.9083 18.7307 84.3607 16.5793L81.8022 16.5793C81.506 17.507 80.8964 18.1587 79.6952 18.1587C78.1203 18.1587 77.0965 17.2109 76.9191 15.6324L84.4786 15.6324C84.5179 15.3363 84.5371 15.1383 84.5371 14.8624C84.5371 11.0719 82.0371 9.62988 79.6348 9.62988",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M91.824 9.62988C90.0123 9.62988 88.8313 11.0911 88.3587 12.137C88.281 12.2956 88.2216 12.4139 88.0634 12.3745C87.8075 12.3149 87.9264 12.039 88.005 11.8611C88.2015 11.4468 88.3194 11.0719 88.3194 10.4403L88.3194 9.7885L85.8002 9.7885L85.8002 20.2121L88.3194 20.2121L88.3194 15.9669C88.3194 13.5588 89.6585 11.9207 91.1146 11.9207C92.4346 11.9207 93.0443 12.5725 93.0443 14.921L93.0443 20.2121L95.5645 20.2121L95.5645 14.0529C95.5645 11.0911 94.0681 9.63084 91.824 9.63084",fill:"#4B261E"}),(0,t.jsx)("path",{d:"M46.739 9.62988C43.7415 9.62988 41.3843 11.9938 41.3843 14.9998C41.3843 18.0059 43.7415 20.3698 46.739 20.3698C49.7366 20.3698 52.0937 18.0357 52.0937 14.9998C52.0937 11.964 49.7366 9.62988 46.739 9.62988Z",fill:"#4B261E"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1041_2195",children:(0,t.jsx)("rect",{width:"28.1974",height:"106",fill:"white",transform:"translate(106 0.901367) rotate(90)"})})})]})}var _=n(51366),E=e=>{let{navItems:l}=e,[n,s]=(0,k.n)(!1,!0),c=(0,T.usePathname)(),d=(0,r.useRef)(c),[u,f]=(0,k.n)(!1,!0),[x,h]=(0,r.useState)(null);(0,r.useEffect)(()=>{d.current!==c&&n&&s(),d.current=c},[c,n,s]);let p=e=>{h(l=>l===e?null:e)};return(0,t.jsxs)("nav",{style:{zIndex:9999},className:" sticky inset-x-0 top-0  z-10 mt-4  flex h-12 w-full  lg:hidden",children:["/"!==c&&(0,t.jsx)(a.default,{className:"px pt-[.65rem]",href:"/",children:(0,t.jsx)(Z,{})}),(0,t.jsxs)("div",{className:"flex w-full items-center justify-end gap-4 pr-4",children:[(0,t.jsxs)(r.Suspense,{children:[(0,t.jsx)(o,{className:"z-10"})," "]}),(0,t.jsx)(a.default,{href:"/kontakt",className:"z-10","aria-label":"Kontakt oss",children:(0,t.jsx)(_.Z,{name:"TeknobyenChatTalkForumConversation"})}),(0,t.jsxs)(L.E.button,{"aria-label":"open and close mobile navigation",animate:n?"open":"closed",className:"relative z-10 flex flex-col space-y-1",onClick:()=>{s(),h(null)},children:[(0,t.jsx)(L.E.span,{variants:{closed:{rotate:0,y:0},open:{rotate:45,y:6}},className:"block h-[2px] w-6 bg-black"}),(0,t.jsx)(L.E.span,{variants:{closed:{opacity:1},open:{opacity:0}},className:"block h-[2px] w-6 bg-black"}),(0,t.jsx)(L.E.span,{variants:{closed:{rotate:0,y:0},open:{rotate:-45,y:-6}},className:"block h-[2px] w-6 bg-black"})]})]}),(0,t.jsx)(w.M,{children:n&&(0,t.jsx)(N.A,{transition:{type:"spring",bounce:".08"},children:(0,t.jsxs)(L.E.div,{variants:{open:{y:"0%"},closed:{y:"-100%"}},initial:"closed",animate:"open",exit:"closed",className:"fixed inset-0 h-fit  flex-col space-y-8  border-b border-gray-200 bg-white  bg-opacity-10 p px-4 pt-[1.65rem] drop-shadow-sm backdrop-blur-2xl",children:[(0,t.jsx)(a.default,{href:"/",children:(0,t.jsx)(Z,{})}),(0,t.jsx)("div",{className:"flex flex-col gap-4",children:Array.isArray(l)&&(null==l?void 0:l.map(e=>{var l;let n=x===e._key;return(0,t.jsxs)("button",{className:"flex flex-col gap-4",onClick:()=>p(e._key),children:[(0,t.jsx)("h2",{className:"font-serif text-ingress-serif underline underline-offset-2",children:e.title}),(0,t.jsx)(w.M,{children:n&&(0,t.jsxs)(L.E.ul,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.15},className:"flex flex-col items-start space-y-3",children:[null===(l=e.links)||void 0===l?void 0:l.map(e=>e.children.map(e=>{let l=(0,y.o7)(e);return l?(0,t.jsx)("li",{children:(0,t.jsxs)(a.default,{className:"flex items-center gap-2",href:l,children:[(0,t.jsx)(_.Z,{name:e.icon?e.icon:"TeknobyenBarWineDrink"}),(0,t.jsx)("h3",{className:"",children:null==e?void 0:e.title})]})},e._key):null})),e.media&&(0,t.jsx)(L.E.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.08},children:(0,t.jsx)(i.default,{imageClass:"aspect-video",wrapperClass:"rounded-lg max-h-[250px]",data:null==e?void 0:e.media[0]})})]},e._key)})]},e._key)}))})]},"mobile-nav")})})]})},B=n(90094);function M(e){let{data:l,encodeDataAttribute:n}=e,d=(null==l?void 0:l.mainNav)||[],[u,f]=(0,r.useState)(null),m=(0,r.useRef)(null),v=(0,T.usePathname)(),k=(0,r.useCallback)(e=>{f(e?e[0]:null)},[]);return(0,t.jsxs)("header",{style:{zIndex:9999},className:(0,s.cn)("fixed z-50 flex w-full justify-between font-sans @container"),children:[(0,t.jsx)(E,{navItems:d}),(0,t.jsx)("div",{id:"navigation-background",className:(0,s.cn)("absolute left-0 top-0  h-[4.5rem] w-full border-b  border-gray-200/60 bg-white/10 drop-shadow-sm backdrop-blur-2xl transition-all duration-75 ease-in-out ")}),(0,t.jsxs)(x,{ref:m,className:"group-[nav] fixed left-0 top-0 hidden w-full items-center justify-between  py-4 lg:flex",children:[(0,t.jsxs)(h,{className:"items-center px text-ingress",children:[(0,t.jsx)(a.default,{href:"/",className:(0,s.cn)("z-20  flex items-center  justify-center gap-2 rounded-full border border-black p-1 font-sans  transition-colors duration-300  ease-in-out hover:bg-brown hover:text-white"),children:(0,t.jsx)(_.Z,{name:"TeknobyenHome"})}),Array.isArray(d)&&(null==d?void 0:d.map(e=>{var l;let o=e.slug;return(0,t.jsxs)(p,{onMouseEnter:()=>k(e.media),children:[e.showInHeader&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(g,{"data-sanity":null==n?void 0:n(["navigationSection",e._key,"slug"]),children:(0,t.jsx)(a.default,{href:o||"#",className:"nav-text border-b border-black font-serif ",children:e.title})})}),(0,t.jsx)(C,{children:(0,t.jsx)("ul",{className:(0,s.cn)("grid grid-rows-1  space-x-12 border-b bg-white/10 px pb-8  pt-20 drop-shadow-2xl backdrop-blur-2xl"),children:null===(l=e.links)||void 0===l?void 0:l.map(l=>(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("li",{className:"col-span-1",children:(0,t.jsx)(j,{asChild:!0,className:b(),children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:"mb-4 text-caption uppercase text-black/60",children:l.title}),(0,t.jsx)("ul",{className:"col-span-1 flex flex-col justify-center gap-2",children:l.children&&l.children.map(e=>{let l=(0,y.o7)(e);return l?(0,t.jsx)("li",{onMouseEnter:()=>k(e.media),children:(0,t.jsx)(j,{asChild:!0,children:(0,t.jsxs)(a.default,{href:l,className:"flex items-center gap-2",children:[" ",(0,t.jsx)(_.Z,{name:e.icon?e.icon:"TeknobyenBarWineDrink"}),(0,t.jsx)("h4",{className:" ",children:e.title})]},e._key)})},e._key):null})})]})})},l._key),e.media?(0,t.jsx)(i.default,{index:0,videoWrapperClass:"col-start-7 self-end row-start-1",videoClass:"h-auto aspect-nav",parentClass:"col-start-8  self-end row-start-1",wrapperClass:" rounded-lg h-[214px] w-auto  object-cover",imageClass:"aspect-nav ",data:u||e.media[0]}):null]},l._key))})})]},e._key)}))]}),"/"!==v&&(0,t.jsx)(a.default,{className:"absolute left-1/2 top-1/2 hidden -translate-x-1/2 -translate-y-1/2 transform @[1460px]:block",href:"/",children:(0,t.jsx)(c,{})}),(0,t.jsxs)("div",{className:"flex items-center space-x-8 pr",children:[(0,t.jsxs)(r.Suspense,{children:[(0,t.jsx)(o,{})," "]}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(B.Z,{largeText:!0,linksObject:{links:[{buttonTitle:"Kontakt",slug:"/kontakt",icon:"TeknobyenChatTalkForumConversation",iconPosition:"inside",type:"internal"}],selectLinkType:"regular"},typeOfLink:"internal",variant:"secondary"})})]})]})]})}},31457:function(e,l,n){"use strict";n.r(l),n.d(l,{default:function(){return i}});var t=n(26705),a=n(21868),r=n(25598);function i(e){let{data:l}=(0,a.r)(e.initial);return(0,t.jsx)(r.default,{data:l})}},14448:function(e,l,n){"use strict";n.d(l,{Z:function(){return d}});var t=n(26705),a=n(99052),r=n(87138);n(20955);var i=n(51366),s=n(2926),o=n(82276);let c=(0,a.cn)("outline-none ring-green focus-visible:ring-4 focus:scale-[0.98] transition-transform duration-50 ease-in-out");function d(e){var l,n,d,u;let f,{children:x,data:h,backgroundColor:p,buttonColor:m,customColors:b,typeOfLink:g,arrowColor:C,variant:j,iconPosition:v,href:y,largeText:k=!1,onClick:L,arrow:w,setCustomColors:N,customIcons:T}=e,{blank:Z,buttonTitle:_,slug:E,type:B}=null!=h?h:{},M=(0,a.cn)("card"!==g&&"group","disabled"===j&&"touch-none select-none opacity-10 text-gray cursor-not-allowed","relative flex w-full max-w-fit  touch-none select-none items-center gap-1 overflow-hidden rounded-full   transition-all delay-50 duration-300 ease-in-out",k?"":"text-caption"),P=(0,s.N)(null==h?void 0:h.icon),z=()=>{if("primary"===j)return{bgColor:null!=m?m:"bg-brown",textColor:p?"text-".concat(p):"text-white",hoverColor:null!=m?m:"bg-brown",arrowHover:p?"group-hover:text-".concat(p):"group-hover:text-white text-brown"};if("secondary"===j){let e,l,n;return b?(e="border border-brown",l="text-black hover:text-blue",n="bg-brown "):(e="border border-brown",l=p?"group-hover:text-".concat(p,"  hover:text-").concat(p):"group-hover:text-white text-black",n="bg-brown"),{bgColor:e,textColor:l,hoverColor:n,arrowHover:p?"text-".concat(p):"text-black"}}if("disabled"===j)return{bgColor:"bg-black",textColor:"text-white",hoverColor:"bg-gray",arrowHover:"text-white"}},R=()=>E||(null!=y?y:"/");switch(w){case"right":default:f="TeknobyenArrowRight";break;case"down":f="TeknobyenArrowDown";break;case"external":f="TeknobyenCurvedArrowRight"}let D=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,a.cn)("absolute left-0 top-0  z-10 h-full w-0 rounded-full transition-all duration-300 ease-in-out group-hover:w-full",w&&(null===(l=z())||void 0===l?void 0:l.hoverColor),"secondary"===j&&(null===(n=z())||void 0===n?void 0:n.hoverColor))}),w&&(0,t.jsx)(i.Z,{name:f,classNames:(0,a.cn)("absolute right-0 top-0 z-40 opacity-0 group-hover:opacity-100  rounded-full border border-brown transition-color duration-200 ease-in delay-50 p-[.3rem]"," ".concat(C?"border-".concat(C," text-").concat(C):"border-brown"),p&&"text-".concat(p))}),(0,t.jsxs)("span",{className:(0,a.cn)("z-20  flex  items-center justify-center gap-2 rounded-full px-3 py-1.5 font-sans  transition-colors duration-300  ease-in-out",null===(d=z())||void 0===d?void 0:d.bgColor,null===(u=z())||void 0===u?void 0:u.textColor),children:["inside"===v&&(0,t.jsx)(i.Z,{name:P||(T&&T[0]?T[0]:"TeknobyenBarWineDrink"),isFilled:"primary"===j}),(0,t.jsx)(()=>_||(null!=x?x:"Button primary"),{})]}),w&&(0,t.jsx)(i.Z,{name:f,classNames:(0,a.cn)("z-20  rounded-full border  p-[.3rem]",C?"border-".concat(C):"border-brown")})]});if(null!=g?g:E)switch(g||(E?B:g)){case"internal":if("outside"===v)return(0,t.jsxs)(r.default,{href:R(),className:(0,a.cn)("grid  w-fit grid-cols-[auto_auto] gap-1 rounded-full",c),children:[(0,t.jsx)(i.Z,{classNames:"rounded-full border border-brown p-[.35rem] ",name:P||(T&&T[0]?T[0]:"TeknobyenBarWineDrink")}),(0,t.jsx)("span",{className:(0,a.cn)(M),children:D})]});return(0,t.jsx)(r.default,{className:(0,a.cn)(M,c),href:R(),children:D});case"external":return(0,t.jsx)("a",{className:(0,a.cn)(M,c),href:R(),target:E?Z?"_blank":"_self":"_blank",rel:"noreferrer",children:D});case"card":return(0,t.jsx)("span",{className:(0,a.cn)(M),children:D});case"button":return(0,t.jsx)(o.default,{className:(0,a.cn)(M,c),onClick:L,children:D})}}},82276:function(e,l,n){"use strict";n.d(l,{default:function(){return r}});var t=n(26705),a=n(99052);function r(e){let{children:l,className:n,onClick:r}=e;return(0,t.jsx)("button",{onClick:r,className:(0,a.cn)(n),children:l})}n(20955)},90094:function(e,l,n){"use strict";n.d(l,{Z:function(){return i}});var t=n(26705);n(20955);var a=n(14448),r=n(44654);function i(e){let{colors:l,linksObject:n,setCustomColors:i,variant:s,typeOfLink:o,arrow:c=!1,largeText:d,customColors:u,onClick:f}=e,{links:x=[],selectLinkType:h}=null!=n?n:{};if(!x.length)return null;switch(h){case"regular":return(0,t.jsx)(a.Z,{typeOfLink:o,iconPosition:x[0].iconPosition,variant:s||"primary",arrow:c,backgroundColor:l,data:x[0],largeText:d});case"withTag":return(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,t.jsx)(r.Z,{data:x[0],type:"tagIcon",isWithButton:!0}),(0,t.jsx)(a.Z,{typeOfLink:o,iconPosition:x[0].iconPosition,variant:s||"primary",arrow:c,backgroundColor:l,data:x[0]})]});case"double":return(0,t.jsxs)("div",{className:"grid grid-rows-2 gap-1 lg:grid-cols-[auto_auto]",children:[(0,t.jsx)(a.Z,{typeOfLink:o,iconPosition:x[0].iconPosition,variant:"primary",arrow:!1,backgroundColor:l,data:x[0]}),(0,t.jsx)(a.Z,{typeOfLink:o,iconPosition:x[1].iconPosition,variant:"secondary",setCustomColors:i,customColors:u,arrow:c,backgroundColor:l,data:x[1]})]});case"button":return(0,t.jsxs)("div",{className:"grid grid-cols-[auto_auto] gap-1",children:[(0,t.jsx)(a.Z,{typeOfLink:o,iconPosition:x[0].iconPosition,variant:"primary",arrow:!1,backgroundColor:l,data:x[0]}),(0,t.jsx)(a.Z,{typeOfLink:"button",iconPosition:x[1].iconPosition,variant:s||"secondary",arrow:"down",backgroundColor:l,data:x[1],onClick:f})]})}}},44654:function(e,l,n){"use strict";n.d(l,{Z:function(){return o}});var t=n(26705);n(20955);var a=n(51366),r=n(2926),i=n(99052),s=n(79871);function o(e){let{data:l,type:n,customColor:o,filled:c,isWithButton:d=!1,bgHasColor:u=!1}=e,f=(0,r.N)(null==l?void 0:l.tags);if(!f)return null;let x=function(e){let l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.map(e=>{let n=s.r.find(l=>l.label===e.label&&l.value===e.value);if(n){let t=l?o?"bg-".concat(o,"-dark"):"".concat(n.color,"-dark"):n.color;return{...e,color:t,icon:n.icon,filled:void 0!==n.filled&&n.filled}}return e})}(f,u);switch(n){case"icon":return(0,t.jsx)(a.Z,{classNames:"border border-black p-1 rounded-sm",name:"TeknobyenEventsGroupPeople"});case"tagIcon":var h;return(0,t.jsxs)("div",{className:"flex gap-1 font-sans text-caption",children:[(0,t.jsx)(a.Z,{classNames:"border border-black p-1 rounded-sm",name:null!==(h=x[0].icon)&&void 0!==h?h:"TeknobyenEventsGroupPeople"}),x.slice(0,d?1:3).map((e,l)=>(0,t.jsx)("p",{"data-tag":e.value,className:(0,i.cn)("flex items-center justify-center rounded-sm px-2 pb-1 pt-1",u&&"text-".concat(o),e.filled&&e.color,!e.filled&&"ring-1 ring-inset ring-black",!e.color&&"ring-1 ring-inset ring-black"),children:e.label},e._key))]})}}},79871:function(e,l,n){"use strict";n.d(l,{r:function(){return a}});var t=n(17245);let a=[{label:"Spise",value:"spise",color:"bg-green",icon:"TeknobyenFoodRiceRamenNoodleBowl",filled:!0},{label:"Drikke",value:"drikke",color:"bg-green",icon:"TeknobyenBarWineDrink",filled:!0},{label:"Mat & Drikke",value:"matdrikke",color:"bg-green",icon:"TeknobyenFoodRiceRamenNoodleBowl",filled:!0},{label:"Jobb",value:"jobb",color:"bg-blue",icon:"TeknobyenOfficeChair",filled:!0},{label:"Studere",value:"studere",color:"bg-blue",filled:!0,icon:"TeknobyenDesk"},{label:"Shopping",value:"shopping",filled:!0,color:"bg-blue",icon:"TeknobyenShoppingBagShopCheckout"},{label:"Trening",value:"trening",filled:!0,color:"bg-green",icon:"TeknobyenTrainingGymDumbbell"},{label:"Underholdning",value:"underholdning",filled:!0,color:"bg-green",icon:"TeknobyenBarWineDrink"},{label:"Kultur",value:"kultur",color:"bg-green",filled:!0,icon:"TeknobyenForestOutdoorsTree"},{label:"Natur",value:"natur",color:"bg-green",icon:"TeknobyenBirds",filled:!0},{label:"Helse",value:"helse",filled:!0,color:"bg-green",icon:"TeknobyenHeartFavoriteLike"},{label:"Transport",value:"transport",filled:!0,color:"bg-blue",icon:"TeknobyenBusShuttle"},{label:"Tjenester",value:"tjenester",filled:!0,color:"bg-blue",icon:"TeknobyenDocumentLicence"},{label:"Arrangement",value:"arrangement",filled:!0,color:"bg-green",icon:"TeknobyenEventsGroupPeople"},{label:"Overnatting",value:"overnatting",color:"bg-green",filled:!0,icon:"TeknobyenHome"},{label:"Historie",value:"historie",filled:!0,color:"bg-green",icon:"TeknobyenDocumentResult"},{label:"Teknologi",value:"teknologi",filled:!0,color:"bg-blue",icon:"TeknobyenGlobalWorldwideWikiEarthGlobe"},{label:"Innovasjon",value:"innovasjon",filled:!0,color:"bg-blue",icon:"TeknobyenLaunch"},{label:"Milj\xf8",value:"milj\xf8",filled:!0,color:"bg-green",icon:"TeknobyenPileaPlantGarden"}];l.Z=(0,t.fe)({name:"tagsObject",type:"object",fields:[(0,t.Z2)({name:"teknoTags",title:"Hovedtags",options:{predefinedTags:[...a],allowCreate:!1},type:"tags"})]})},40052:function(){}}]);