1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d7cd-71aa-7d41-9807-eca21095199d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[826],{645:(e,t,r)=>{r.d(t,{EL:()=>l,Lg:()=>o,RT:()=>i,XV:()=>s});var a=r(43463);function n(e,t){if(void 0===e)throw Error(t);return e}let i=n("production","Missing environment variable: NEXT_PUBLIC_WEBSITE_SANITY_DATASET"),o=n("nmd0pjan","Missing environment variable: NEXT_PUBLIC_WEBSITE_SANITY_PROJECT_ID"),s=a.env.NEXT_PUBLIC_SANITY_API_VERSION||"2024-02-28",l="/studio"},39595:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(66821);let n={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};n.node;let i=(0,a.A)(n)},53166:(e,t,r)=>{let a;r.d(t,{A9:()=>u,Ay:()=>p,O4:()=>o,Ub:()=>s,Y4:()=>f,YR:()=>d,nq:()=>l,zc:()=>c});var n=r(74385),i=r(58009);let o="u"<typeof document?[]:(a=p("country")||i.q,n.mnu.flatMap(e=>[{id:e.countryCode.toLowerCase(),title:e.name,isDefault:e.countryCode.toLowerCase()===a.toLowerCase()},{id:`${e.countryCode.toLowerCase()}_en`,title:`${e.countryCode} - English`,isDefault:e.countryCode.toLowerCase()===a.toLowerCase()}]).sort(e=>e.isDefault?-1:1)),s=n.mnu.flatMap(e=>{let t=e.countryCode.toLowerCase(),r=e.defaultLanguage.name;return[{id:t,title:`${r.charAt(0).toUpperCase()}${r.slice(1)} (${e.name})`},{id:`${t}_en`,title:`English (${e.name})`}]}),l="fi",u=s.map(({id:e,title:t})=>({title:t,value:e})),d=s.filter(({id:e})=>e!==l);function f(e){return s.find(({id:t})=>t===e)?.title??e}let c={aiAssist:{translateAction:!0}};function p(e){if("u"<typeof document)return null;let t=document.cookie.match(`(^|;)\\s*${e}=([^;]+)`);return t?t[2]:null}},69667:(e,t,r)=>{r.d(t,{C:()=>c,IM:()=>g,T4:()=>h,iz:()=>w});let a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/_key\s*==\s*['"](.*)['"]/,i=/^\d*:\d*$/;function o(e){return"number"==typeof e||"string"==typeof e&&/^\[\d+\]$/.test(e)}function s(e){return"string"==typeof e?n.test(e.trim()):"object"==typeof e&&"_key"in e}function l(e){if("string"==typeof e&&i.test(e))return!0;if(!Array.isArray(e)||2!==e.length)return!1;let[t,r]=e;return("number"==typeof t||""===t)&&("number"==typeof r||""===r)}function u(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,r)=>{let a=typeof t;if("number"===a)return`${e}[${t}]`;if("string"===a)return`${e}${0===r?"":"."}${t}`;if(s(t)&&t._key)return`${e}[_key=="${t._key}"]`;if(Array.isArray(t)){let[r,a]=t;return`${e}[${r}:${a}]`}throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function d(e){if("string"!=typeof e)throw Error("Path is not a string");let t=e.match(a);if(!t)throw Error("Invalid path string");return t.map(f)}function f(e){return o(e)?Number(e.replace(/[^\d]/g,"")):s(e)?{_key:e.match(n)[1]}:l(e)?function(e){let[t,r]=e.split(":").map(e=>""===e?e:Number(e));return[t,r]}(e):e}var c=Object.freeze({__proto__:null,fromString:d,get:function(e,t,r){let a="string"==typeof t?d(t):t;if(!Array.isArray(a))throw Error("Path must be an array or a string");let n=e;for(let e=0;e<a.length;e++){let t=a[e];if(o(t)){if(!Array.isArray(n))return r;n=n[t]}if(s(t)){if(!Array.isArray(n))return r;n=n.find(e=>e._key===t._key)}if("string"==typeof t&&(n="object"==typeof n&&null!==n?n[t]:void 0),typeof n>"u")return r}return n},isIndexSegment:o,isIndexTuple:l,isKeySegment:s,reKeySegment:n,toString:u});let p="drafts.";function m(e){return e.startsWith(p)}function y(e){return e.startsWith("versions.")}function h(e){return y(e)?p+g(e):m(e)?e:p+e}function g(e){return y(e)?e.split(".").slice(2).join("."):m(e)?e.slice(p.length):e}function w(e){let{baseUrl:t,workspace:r="default",tool:a="default",id:n,type:i,path:o,projectId:s,dataset:l}=e;if(!t)throw Error("baseUrl is required");if(!o)throw Error("path is required");if(!n)throw Error("id is required");if("/"!==t&&t.endsWith("/"))throw Error("baseUrl must not end with a slash");let d="default"===r?void 0:r,f="default"===a?void 0:a,c=g(n),p=Array.isArray(o)?u(o.map(e=>{if("string"==typeof e||"number"==typeof e)return e;if(""!==e._key)return{_key:e._key};if(-1!==e._index)return e._index;throw Error(`invalid segment:${JSON.stringify(e)}`)})):o,h=new URLSearchParams({baseUrl:t,id:c,type:i,path:p});if(d&&h.set("workspace",d),f&&h.set("tool",f),s&&h.set("projectId",s),l&&h.set("dataset",l),m(n)||y(n)){if(y(n)){let e=function(e){if(!y(e))return;let[t,r]=e.split(".");return r}(n);h.set("perspective",e)}}else h.set("perspective","published");let w=["/"===t?"":t];d&&w.push(d);let b=["mode=presentation",`id=${c}`,`type=${i}`,`path=${encodeURIComponent(p)}`];return f&&b.push(`tool=${f}`),w.push("intent","edit",`${b.join(";")}?${h}`),w.join("/")}},70826:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});
1var a=r(39754),n=r(87580),i=r(76674),o=r(50052),s=r(39595),l=r(21777);let u=o.bL;o.l9;let d=o.ZL;o.bm;let f=i.forwardRef(({className:e,...t},r)=>(0,a.jsx)(o.hJ,{ref:r,className:(0,l.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}));f.displayName=o.hJ.displayName;let c=i.forwardRef(({className:e,children:t,...r},n)=>(0,a.jsxs)(d,{children:[(0,a.jsx)(f,{}),(0,a.jsxs)(o.UC,{ref:n,className:(0,l.cn)("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg",e),...r,children:[t,(0,a.jsxs)(o.bm,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,a.jsx)(s.A,{className:"h-6 w-6"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));c.displayName=o.UC.displayName;let p=({className:e,...t})=>(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5",e),...t});p.displayName="DialogHeader";let m=i.forwardRef(({className:e,...t},r)=>(0,a.jsx)(o.hE,{ref:r,className:(0,l.cn)("text-h4 tracking-tight",e),...t}));m.displayName=o.hE.displayName;let y=i.forwardRef(({className:e,...t},r)=>(0,a.jsx)(o.VY,{ref:r,className:(0,l.cn)("text-body text-muted-foreground",e),...t}));y.displayName=o.VY.displayName;let h=i.forwardRef(({className:e,...t},r)=>(0,a.jsx)(o.VY,{ref:r,className:(0,l.cn)("mx-auto text-meta text-muted-foreground",e),...t}));h.displayName="Dialog CTA";var g=r(88616),w=r(71109);let b=({data:e})=>{let[t,r]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=localStorage.getItem("leadDialogSeen"),t=e?new Date(e):null,a=new Date;if(!t||a>t||"true"===e){let e=setTimeout(()=>{r(!0);let e=new Date;e.setDate(a.getDate()+14),localStorage.setItem("leadDialogSeen",e.toISOString())},4e3);return()=>clearTimeout(e)}},[]);let o=e?.popupCTALink||e?.ctaLink,s=(0,g.ij)(e?.popupImage)?.height(600).width(1060).url();return(0,a.jsx)(u,{open:t,onOpenChange:r,children:(0,a.jsx)(c,{onPointerDownOutside:e=>e.preventDefault(),onFocusOutside:e=>e.preventDefault(),onEscapeKeyDown:e=>e.preventDefault(),children:(0,a.jsxs)(p,{children:[(0,a.jsx)(m,{children:e?.title}),(0,a.jsx)(y,{className:"my-8!",children:e?.popupDescription??e?.description}),s&&(0,a.jsx)(n.default,{src:s,alt:e?.popupImage?.alt??"",loading:"eager",priority:!0,height:300,width:530,className:"h-auto max-h-[50vh] w-full object-contain"}),(0,a.jsx)(h,{className:"mt-8!",children:!!o&&(0,a.jsx)(w.default,{text:e.ctaText,url:o,parentComponent:"leadDialog",className:"inline-flex items-center justify-center whitespace-nowrap rounded-full! bg-primary px-4 font-display text-ui text-white normal-case tracking-wide ring-offset-white hover:bg-primary-dark focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-green-800 focus-visible:ring-offset-2 active:bg-primary-dark disabled:pointer-events-none disabled:opacity-50 max-sm:w-full sm:h-full md:rounded-2xl md:px-8"})})]})})})}},88616:(e,t,r)=>{r.d(t,{F4:()=>c,IA:()=>x,Kr:()=>b,d$:()=>g,ij:()=>f,jn:()=>_});var a=r(51014),n=r(69667),i=r(45340),o=r(58009),s=r(645),l=r(53166);let u={projectId:s.Lg||"",dataset:s.RT||""},d=(0,i.OX)({...u}),f=e=>{if(e?.asset?._ref)return d?.image(e).auto("format").fit("max")};async function c(e,t){let r=e?.current?.trim(),a=t.document;if(!r||!a)return!0;let i=(t.path??[]).filter(e=>"string"==typeof e);if(2!==i.length)return!0;let o=t.getClient({apiVersion:s.XV}),l=await o.fetch(`*[_type == $type && ${i.join(".")}.current == $slug]._id`,{type:a._type,slug:r},{perspective:"raw"}),u=(0,n.IM)(a._id);return!l.some(e=>(0,n.IM)(e)!==u)||`Another ${a._type} already uses this URL path.`}let p=(0,l.Ay)("country")??o.q,m=o.q,y=e=>"object"==typeof e&&null!==e,h=e=>{if(!y(e)||!y(e.asset))return;let t=e.asset._ref;return"string"==typeof t&&t.startsWith("image-")?e:void 0},g=e=>h(e?.[p])??h(e?.[m]),w=(e,t)=>{if(!y(e))return;let r=g(e);
1if(r||0===t)return r;for(let r of Object.values(e)){let e=w(r,t-1);if(e)return e}},b=e=>Array.isArray(e)?w(e,4):void 0,x=(e,t=8)=>{let r=e?.[p]??e?.[m];if(!r?.length)return;let n=(0,a.bo)(r).split(/\s+/).filter(Boolean);if(n.length)return n.length>t?`${n.slice(0,t).join(" ")}â¦`:n.join(" ")},_=(e,t,r="localeTitle")=>{let a=t?`${t} - `:"";if(!e.localeTitle)return a+"draft";let n=e?.[r]?.[p]||e?.[r]?.[m]||"draft";return"object"==typeof n&&"current"in n?a+n.current:a+n}}}]); 2//# chunkId=01a0d7cd-71aa-7d41-9807-eca21095199d
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.