PageSourceSearch

https://skanska-citygate.netlify.app/_next/static/chunks/6494.a7ec36a30c8f3b2c.js

js skanska-citygate.netlify.app collected 2026-10-03 11:25:14 UTC 9,399 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6494],{77300:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(85893),o=n(90455),a=n(21167),i=n(2151);function l(e){let{text:t,className:n}=e;return(0,r.jsx)("div",{className:(0,a.cn)("rich-text flex flex-col",n),children:(0,o.sY)(t,{defaultBlokResolver:(e,t)=>(0,r.jsx)(i.Z,{block:{component:e,...t}})})})}},36780:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(85893),o=n(92161),a=n(61111);let i="sthlmnew"===(0,a.gh)(),l="solnalink"===(0,a.gh)(),s="olivin"===(0,a.gh)();function c(e){let{blok:t,updateChecked:n,checked:a,inFooter:c}=e;return(0,r.jsxs)("label",{className:"checkbox flex items-center py-4 ".concat(i?"".concat(c?"hover:text-black":"text-form-main hover:text-form-hover"):l?"text-black":s?"".concat(c?"text-primary-text":"text-secondary-text"):"text-blue-dark"," ").concat(l?"text-solna-link-xs font-semibold":"text-lg lg:text-xl"),children:[(0,r.jsxs)("div",{className:"relative h-7 w-7 min-w-7",children:[(0,r.jsx)("input",{type:"checkbox",id:t.name,className:"absolute top-0 left-0 h-full w-full cursor-pointer opacity-0",checked:a,onChange:e=>n(e)}),(0,r.jsx)("div",{className:"border-current pointer-events-none absolute top-0 left-0 flex h-full w-full items-center justify-center border-3 rounded-sm",children:(0,r.jsx)("div",{className:"".concat(i?"bg-white w-7 h-7 -m-1 border-[7px] border-sthlm-red":l?"bg-black rounded-sm w-7 h-7 -m-1 border-[7px] border-primary":s?"bg-grey w-7 h-7 -m-1 border-[7px] border-light-green":"bg-blue-dark h-4 w-4"," ").concat(a?"block":"hidden")})})]}),t.link?(0,r.jsxs)("a",{href:(0,o.Uw)(t.link),className:" ml-6 hover:underline ".concat(s?"".concat(c?"text-primary-text":"text-secondary-text"," text-olivin-sm-2"):i?" ".concat(c?"text-black text-sthlm-d":""):"text-primary-text"),children:[(0,r.jsx)(r.Fragment,{children:t.label}),t.required&&(0,r.jsx)("span",{children:"*"})]}):(0,r.jsxs)("span",{className:"ml-6 cursor-pointer",children:[t.label,t.required&&(0,r.jsx)("span",{children:"*"})]})]})}},37781:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(85893),o=n(40002),a=n(61111),i=n(67294);let l="sthlmnew"===(0,a.gh)(),s="solnalink"===(0,a.gh)(),c="olivin"===(0,a.gh)(),u=l?"border-form-main hover:border-form-hover focus-within:border-form-hover":"border-blue-dark";function d(e){let{blok:t,onUpdateField:n,value:a}=e,[d,m]=(0,i.useState)(!1),f=e=>{n(e)};return(0,r.jsxs)(o.Z,{block:t,className:"form-input ".concat(l?"text-form-main text-lg lg:text-xl":s?"text-solna-link-xs font-semibold":c?"text-secondary-text olivin-3xl":"text-lg lg:text-xl"),children:[(0,r.jsx)("div",{className:"relative border-b-2 ".concat(u," ").concat(l?"":s?"":"pt-8"),children:(0,r.jsxs)("label",{children:[(0,r.jsx)("span",{className:"".concat(c?"text-olivin-sm-2":""," pointer-events-none absolute bottom-4 left-0 transform transition-all duration-200 ease-in ").concat(d||a.length>0?"origin-top-left -translate-y-2/3 scale-50":""),children:null==t?void 0:t.label}),(0,r.jsx)("input",{onFocus:()=>m(!0),onBlur:()=>m(!1),className:"bg-transparent w-full pb-4 ".concat(l&&"text-white"||c&&"text-secondary-text"),type:t&&t.type&&t.type.toLowerCase(),name:null==t?void 0:t.name,onChange:e=>f(e)})]})}),(0,r.jsx)("div",{className:"mt-1 text-base",children:(null==t?void 0:t.validation_pattern)===""||""===a||new RegExp((null==t?void 0:t.validation_pattern)||"").test((null==t?void 0:t.value)||"")?"":t.validation_error_message})]})}},40002:function(e,t,n){let r,o,a,i;n.d(t,{Z:function(){return k}});var l=n(85893),s=n(12777);let c=new Map,u=new Set,d=e=>{var t;null===(t=e.animation)||void 0===t||t.cancel(),e.animation=void 0,e.element.style.opacity="1",e.element.style.transform="none"},m=e=>{u.delete(e.element),null==a||a.unobserve(e.element),c.delete(e.element)},f=e=>{d(e),m(e)},h=(e,t)=>{let{delay:n,duration:r,startOpacity:o,startY:i}=t;null==a||a.unobserve(e.element),e.animation=e.element.animate([{opacity:o,transform:"translateY(".concat(i,"px)")},{opacity:1,transform:"translateY(0)"}],{duration:r,delay:n,easing:"cubic-bezier(0, 0, 0.2, 1)",fill:"both"}),e.animation.onfinish=()=>f(e)},x=()=>(null!=a||(a=new IntersectionObserver(e=>
1{e.forEach(e=>{if(!e.isIntersecting)return;let t=c.get(e.target);t&&h(t,{delay:1e3*t.delay,duration:1e3,startOpacity:0,startY:30})})},{rootMargin:"0px"})),a),p=e=>{e.matches&&c.forEach(f)},g=()=>(i||(i=window.matchMedia("(prefers-reduced-motion: reduce)")).addEventListener("change",p),i),v=()=>{o=void 0;let e=g().matches,t=Array.from(u).map(e=>{let t=c.get(e);if(!t)return;let n=e.getBoundingClientRect();return{registration:t,startsInViewport:n.top<window.innerHeight&&n.bottom>0}}).filter(e=>!!e);u.clear(),t.forEach(t=>{let{registration:n,startsInViewport:r}=t;if(e){f(n);return}if(r){n.animateInInitialViewport?h(n,{delay:0,duration:n.initialViewportDuration,startOpacity:.3,startY:n.initialViewportY}):f(n);return}n.element.style.opacity="0",n.element.style.transform="translateY(30px)",x().observe(n.element)})},b=()=>{void 0===r&&void 0===o&&(r=requestAnimationFrame(()=>{r=void 0,o=requestAnimationFrame(v)}))},w=function(e){let{animateInInitialViewport:t=!1,delay:n=0,initialViewportDuration:r=1e3,initialViewportY:o=30}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c.set(e,{animateInInitialViewport:t,element:e,delay:n,initialViewportDuration:r,initialViewportY:o}),u.add(e),b(),()=>{let t=c.get(e);t&&(d(t),m(t))}};var y=n(67294);let j=(0,y.createContext)(0);function k(e){let{block:t,className:n="",children:r,animate:o=!0,delay:a=0}=e,i=null==t?void 0:t.component,c=(0,y.useRef)(null),u=(0,y.useContext)(j),d=o&&0===u;return(0,y.useEffect)(()=>{let e=c.current;if(o&&e)return w(e,{animateInInitialViewport:d,delay:a})},[o,d,a]),(0,l.jsx)(j.Provider,{value:u+(o?1:0),children:(0,l.jsx)("div",{ref:c,className:"block ".concat(i," ").concat(n," ").concat(d?"initial-viewport-entry-animation":""),...(0,s.LF)(t),children:r})})}},2151:function(e,t,n){var r=n(85893),o=n(12777),a=n(52706);let i=e=>e.component&&e.component in a.Z?a.Z[e.component]:null;t.Z=e=>{let{block:t,...n}=e,a=t.component||"UnknownComponent";return i(t)?(0,r.jsx)(o.Xj,{blok:t,...n}):(0,r.jsx)("div",{className:"bg-yellow-100 flex flex-1 flex-row items-center justify-center p-4 text-center text-sm",children:(0,r.jsxs)("p",{children:["Can not find a definition for component ",(0,r.jsx)("b",{children:a}),". Will you create it for me?"]})})}},41921:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(85893),o=n(18522),a=n(3632),i=n(64033),l=n(61111),s=n(67294),c=n(21167),u=n(43833);let d="sthlmnew"===(0,l.gh)(),m="solnalink"===(0,l.gh)(),f="olivin"===(0,l.gh)();function h(e){let{className:t="",caption:n="Skicka",inFooter:l=!1}=e,[h,x]=(0,s.useState)(!1);return(0,r.jsxs)("button",{onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),className:"relative block max-w-max cursor-pointer active:bg-primary overflow-hidden ".concat(d?"sthlm-button":m?"transition-all focus:outline-2 outline-offset-[0px] focus:outline duration-100 group bg-primary hover:bg-lightest-green focus:bg-lightest-green py-3.5 pl-5 pr-3.5 rounded-sm":f?"transition-all focus:outline-2 outline-offset-[0px] focus:outline duration-100 group bg-light-green focus:bg-lightest-green py-3.5 pl-5 pr-3.5 rounded-sm ".concat(l?"":"hover:bg-grey"):""," ").concat(t),type:"submit",children:[(0,r.jsxs)("div",{className:(0,c.cn)("flex items-center gap-6 ".concat(m||f?"gap-1 ":"")),children:[(0,r.jsx)("span",{className:(0,c.cn)(" ".concat(m||f?"font-bold text-solna-link-xs":"text-lg font-medium lg:text-xl"," ").concat(m&&h||f&&h?"underline underline-offset-8":"")),children:n}),(0,r.jsx)(u.Z,{type:d||m?"sthlmArrow":f?"olivinArrow":"arrowRight",className:"".concat(m?"transition-transform w-6 h-6":f?"transition-transform w-5 h-5":"h-7 w-7 lg:h-8 lg:w-8"," ").concat(m&&h||f&&h?"translate-x-1":"")})]}),d||m||f?null:(0,r.jsx)(o.X,{strict:!0,features:i.Z,children:(0,r.jsx)(a.m.div,{className:"flex border-t-2",animate:h?"hover":"noHover",variants:{hover:{x:0},noHover:{x:"100%",transitionEnd:{x:"-101%"}}},transition:{ease:"easeInOut"}})})]})}},99394:function(e,t,n){async function r(e){let t=await fetch("/api/press?pagination="+e);return await t.json()}async function o(e){let t=await fetch("/api/news?pagination="+e);return await t.json()}async function a(){let e=await fetch("/api/user/content",{});return await e.json()}async function i(e,t,n){let r=await fetch("/api/email",{method:"POST",body:JSON.stringify({form_name:e,body:t,email_recipient:n})});return{data:await r.json(),status:r.status}}async function l(e,t,n){let r=await fetch("/api/resend-email",{method:"POST",body:JSON.stringify({form_name:e,body:t,email_recipient:n})});return{data:await r.json(),status:r.status}}n.d(t,{PI:function(){return r},Xe:function(){return i},gf:function(){return o},l8:function(){return a},oW:function(){return l}})},64033:function(e,t,n){t.Z=()=>Promise.all([n.e(3030),n.e(7897),n.e(6432),n.e(6791),n.e(308)]).then(n.bind(n,60308)).then(e=>e.default)},92161:function(e,t,n){n.d(t,{Uw:function(){return o}});let r=e=>{let t="/".concat(e);return e.startsWith("pages")&&(t=e.replace("pages","")),t},o=e=>"story"===e.linktype?r(e&&e.cached_url||""):e.url||""},21167:function(e,t,n){n.d(t,{cn:function(){return a}});var r=n(90512),o=n(98388);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.m6)((0,r.Z)(t))}}}]);

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.