PageSourceSearch

https://core-marine.com/_next/static/chunks/pages/%5B...urlPaths%5D-31960aeec8a2d375.js

js core-marine.com collected 2026-10-02 06:57:45 UTC 13,047 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{8880:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...urlPaths]",function(){return t(7978)}])},7978:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSG:function(){return X},default:function(){return G}});var i=t(5893),a=t(5396),n=t(6397),o=t(3344);let r=()=>(0,i.jsx)("div",{children:(0,i.jsx)("svg",{className:"text-navy h-20 w-20 animate-spin",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,i.jsx)("circle",{cx:"50",cy:"50",r:"32",strokeWidth:"8",stroke:"currentColor",strokeDasharray:"50.26548245743669 50.26548245743669",fill:"none",strokeLinecap:"round"})})});var s=t(8923),d=t(7294);let c=()=>{setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},100)},u=e=>{let{pages:l,currentPage:t,handlePageChange:a,handleNextPage:n}=e;return(0,i.jsxs)("div",{className:"to-lg:mt-24 my-[6.25rem] flex justify-between",children:[l>1&&(0,i.jsx)("div",{className:"flex flex-row gap-1",children:Array.from(Array(l).keys()).map((e,l)=>(0,i.jsx)("button",{className:"".concat(e+1===t?"bg-navy text-beige h-9 w-9 rounded-full":"text-navy border-3 border-navy h-9 w-9 rounded-full bg-transparent"),onClick:()=>{a(e+1),c()},children:e+1},l))}),l>1&&(0,i.jsx)("button",{className:"tag-pill border-3 disabled:cursor-not-allowed disabled:opacity-50",disabled:l===t,onClick:()=>{n(),c()},children:"Next page"})]})};var g=t(9805),v=t(2706),m=t(1163);let p=e=>{let{children:l}=e;return(0,i.jsx)("div",{className:"container mb-20",children:l})},x=e=>{let{children:l}=e;return(0,i.jsx)("div",{className:"mt-7 flex flex-wrap gap-2 lg:gap-[0.625rem]",children:l})},h=e=>{let{children:l}=e;return(0,i.jsx)("div",{className:"mt-24 grid gap-10 gap-y-24 lg:mt-48 lg:grid-cols-3 lg:gap-y-48",children:l})},j=e=>{var l,t,a,n;let{data:d}=e,c=(0,m.useRouter)(),{data:j,loading:f}=(0,v.Dg)({variables:{page:c.query.page?parseInt(c.query.page):1,perPage:12,tags:c.query.tag?c.query.tag:void 0}}),b=f?[]:null==j?void 0:null===(l=j.newsPages)||void 0===l?void 0:l.items,w=null==j?void 0:null===(t=j.newsPages)||void 0===t?void 0:null===(a=t.pagination)||void 0===a?void 0:a.total,N=c.query.page?parseInt(c.query.page):1,y=c.query.tag,k=e=>{(0,g.ey)("?page=".concat(e),c)},P=e=>{(0,g.ey)(e?"?tag=".concat(e):void 0,c)},_=()=>{let e=c.query.page?parseInt(c.query.page)+1:2;k(e)};return(0,i.jsxs)(p,{children:[(0,i.jsx)(s.Z,{title:d.title}),(0,i.jsxs)(x,{children:[(0,i.jsx)("button",{className:y?"tag-pill":"tag-pill-reversed",onClick:()=>P(),children:"View all"}),null===(n=d.tags)||void 0===n?void 0:n.map((e,l)=>(0,i.jsx)("button",{className:y===(null==e?void 0:e.slug)?"tag-pill-reversed":"tag-pill",onClick:()=>P(null==e?void 0:e.slug),children:null==e?void 0:e.name},l))]}),(0,i.jsxs)(h,{children:[f&&(0,i.jsx)(r,{}),null==b?void 0:b.map(e=>{var l,t,a,n,r,s;return(0,i.jsx)(o.Z,{imageSrc:null==e?void 0:null===(l=e.heroImage)||void 0===l?void 0:null===(t=l.rendition)||void 0===t?void 0:t.url,imageAlt:null==e?void 0:null===(a=e.heroImage)||void 0===a?void 0:null===(n=a.rendition)||void 0===n?void 0:null===(r=n.image)||void 0===r?void 0:r.title,title:null==e?void 0:e.title,tags:null===(s=e.tags)||void 0===s?void 0:s.map(e=>({name:null==e?void 0:e.name,slug:d.slug+"?tag="+(null==e?void 0:e.slug)})),linkHref:(0,g.OQ)(e.urlPath),linkText:"View article"},null==e?void 0:e.id)})]}),(0,i.jsx)(u,{pages:Math.ceil(w/12),currentPage:N,handlePageChange:k,handleNextPage:_})]})};var f=t(5675),b=t.n(f),w=t(1664),N=t.n(w),y=t(7022);let k=e=>{var l,t,a,n;let{title:o,content:r,image:s,link:d,linkText:c,container:u=!1,i:g}=e;return(0,i.jsxs)("section",{className:"to-lg:border-l-3 border-pink group even:flex-row-reverse lg:flex gap-8".concat(u?"to-lg:ml-3 container lg:my-[4vw] 2xl:my-32":"to-lg:pl-3"),children:[s&&d?(0,i.jsx)(N(),{href:d,className:"overflow-hidden lg:w-2/3",children:(0,i.jsx)(b(),{className:"w-full duration-500 group-hover:scale-105",src:null==s?void 0:null===(l=s.rendition)||void 0===l?void 0:l.url,width:615,height:600,alt:null===(t=s.rendition)||void 0===t?void 0:t.image.t
1itle})}):(0,i.jsx)("div",{className:"overflow-hidden lg:w-2/3",children:(0,i.jsx)(b(),{className:"w-full",src:null==s?void 0:null===(a=s.rendition)||void 0===a?void 0:a.url,width:615,height:600,alt:null==s?void 0:null===(n=s.rendition)||void 0===n?void 0:n.image.title})}),(0,i.jsxs)("div",{className:"to-lg:mt-4 flex flex-col lg:mr-12 lg:w-1/3",children:[(0,i.jsx)("h2",{className:"-mt-2.5 text-lg lg:text-xl",children:o}),(0,i.jsx)("div",{className:"prose mt-1 text-base lg:mt-4",dangerouslySetInnerHTML:{__html:r}}),d&&c&&(0,i.jsx)(y.Z,{className:"mt-12 lg:mt-auto",href:d,text:c})]}),(0,i.jsx)("div",{className:"to-lg:hidden bg-pink w-[3px] self-stretch"})]})},P=e=>{var l,t;let{data:a}=e,n=(0,m.useRouter)(),{data:o,loading:d}=(0,v.GC)({variables:{page:n.query.page?parseInt(n.query.page):1,perPage:4}}),c=null==o?void 0:o.projectPages,x=null==c?void 0:null===(l=c.pagination)||void 0===l?void 0:l.total,h=n.query.page?parseInt(n.query.page):1,j=e=>{(0,g.ey)("?page=".concat(e),n)},f=()=>{let e=n.query.page?parseInt(n.query.page)+1:2;j(e)};return(0,i.jsxs)(p,{children:[(0,i.jsx)(s.Z,{title:a.title}),d&&(0,i.jsx)("div",{className:"mt-16 flex justify-center",children:(0,i.jsx)(r,{})}),(0,i.jsx)("div",{className:"mt-36 grid gap-24 lg:gap-48",children:null==c?void 0:null===(t=c.items)||void 0===t?void 0:t.filter(e=>null!==e).map((e,l)=>(0,i.jsx)(k,{title:null==e?void 0:e.title,content:null==e?void 0:e.description,image:null==e?void 0:e.heroImage,link:(0,g.OQ)(null==e?void 0:e.urlPath),linkText:"View project"},l))}),(0,i.jsx)(u,{currentPage:h,pages:Math.ceil(x/4),handlePageChange:j,handleNextPage:f})]})};var _=t(1526),I=t(3495);let q=e=>{var l;let{data:t}=e,[a,n]=(0,d.useState)(t.people),r=null===(l=t.people)||void 0===l?void 0:l.flatMap(e=>{var l;return null==e?void 0:null===(l=e.location)||void 0===l?void 0:l.flatMap(e=>null==e?void 0:e.name)}),c=Array.from(new Set(r)),u=(0,m.useRouter)(),g=u.query.location,v=e=>{let l=u.query.urlPaths,t=l instanceof Array?l:[l];"all"!==e&&t.push("?location=".concat(e));let i=t.join("/");u.push(i,void 0,{shallow:!0})};return(0,d.useEffect)(()=>{if(g){var e;n(null===(e=t.people)||void 0===e?void 0:e.filter(e=>{var l;return null==e?void 0:null===(l=e.location)||void 0===l?void 0:l.some(e=>(null==e?void 0:e.name)===g)}))}else n(t.people)},[g]),(0,i.jsxs)(p,{children:[(0,i.jsx)(s.Z,{title:t.title}),(0,i.jsxs)(x,{children:[(0,i.jsx)("button",{className:g?"tag-pill":"tag-pill-reversed",onClick:()=>v("all"),children:"View all"}),null==c?void 0:c.map((e,l)=>(0,i.jsx)("button",{className:g===e?"tag-pill-reversed":"tag-pill",onClick:()=>v(e),children:e},l))]}),(0,i.jsx)(h,{children:(0,i.jsx)(_.M,{mode:"popLayout",children:null==a?void 0:a.map(e=>{var l,t,a,n,r,s;return(0,i.jsx)(I.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{type:"spring"},children:(0,i.jsx)(o.Z,{imageSrc:null==e?void 0:null===(l=e.image)||void 0===l?void 0:null===(t=l.rendition)||void 0===t?void 0:t.url,imageAlt:null==e?void 0:null===(a=e.image)||void 0===a?void 0:null===(n=a.rendition)||void 0===n?void 0:null===(r=n.image)||void 0===r?void 0:r.title,title:null==e?void 0:e.name,subtitle:null==e?void 0:e.title,tags:null==e?void 0:null===(s=e.location)||void 0===s?void 0:s.map(e=>({name:null==e?void 0:e.name})),linkHref:null==e?void 0:e.linkedin,linkText:"LinkedIn",teamCard:!0})},null==e?void 0:e.id)})})})]})};var C=t(7493);let H=e=>{var l,t,a,n;let{block:o}=e;return(0,i.jsxs)("div",{className:"container grid-cols-3 lg:grid",children:[(0,i.jsx)(b(),{className:"col-span-2 w-full",src:null===(l=o.image)||void 0===l?void 0:null===(t=l.rendition)||void 0===t?void 0:t.url,alt:null===(a=o.image)||void 0===a?void 0:null===(n=a.rendition)||void 0===n?void 0:n.image.title,width:615,height:600}),o.caption&&(0,i.jsx)("div",{className:"caption col-span-2 row-start-2 mt-2 text-sm leading-tight lg:mt-3",dangerouslySetInnerHTML:{__html:o.caption}})]})},T=e=>{let{block:l}=e;return(0,i.jsx)("div",{className:"container",children:(0,i.jsx)("div",{className:"responsive-object aspect-video",dangerouslySetInnerHTML:{__html:l.embed}})})},E=e=>{let{block:l}=e,t=l.blocks.find(e=>"quote"===e.field),a=l.blocks.find(e=>"attribution"===e.field);return(0,i.jsx)("div",{className:"container",children:(0,i.jsxs)("figure",{className:"border-l-3 border-pink pl-5 lg:pl-8",children:[(0,i.jsx)("blockquote",{className:"text-lg italic lg:text-2xl",children:null==t?void 0:t.rawValue}),(null==a?void 0:a.rawValue)&&(0,i.jsxs)("figcaption",{children:["- ",null==a?void 0:a.rawValue]})]})})},L=e=>{let{block:l}=e;return(0,i.jsx)("article",{className:"container grid-cols-3 lg:grid",children:(0,i.jsx)("div",{className:"prose col-span-2 max-w-none lg:text-lg",dangerouslySetInnerHTML:{__html:l.value}})})},M=e=>{let{item:l}=e;return(0,i.jsxs)("li",{className:2==l.indentationLevel?"ml-4":"",children:["– ",l.text]})},S=e=>{var l,t;let{block:a}=e;return(0,i.jsxs)("div",{className:"container gap-x-12 sm:grid sm:grid-cols-2 md:grid-cols-3",children:[a.heading&&(0,i.jsx)("h3",{className:"col-span-2 mb-7 text-lg md:col-span-3 lg:text-2xl",children:a.heading}),(0,i.jsx)("ul",{children:null===(l=a.columnOne)||void 0===l?void 0:l.map((e,l)=>(0,i.jsx)(M,{item:e},l))}),(0,i.jsx)("ul",{children:null===(t=a.columnTwo)||void 0===t?void 0:t.map((e,l)=>(0,i.jsx)(M,{item:e},l))})]})},Z=e=>{var l,t;switch(null===(l=e.block)||void 0===l?void 0:l.__typename){case"RichTextBlock":return(0,i.jsx)(L,{block:e.block});case"FeaturedContentBlock":return(0,i.jsx)(k,{...e.block,container:!0});case"CaptionedImageBlock":return(0,i.jsx)(H,{block:e.block});case"QuoteBlock":return(0,i.jsx)(E,{block:e.block});case"EmbedBlock":return(0,i.jsx)(T,{block:e.block});case"DoubleListBlock":return(0,i.jsx)(S,{block:e.block});default:throw Error("Unknown Block Type - ".concat(null===(t=e.block)||void 0===t?void 0:t.__typename))}},z=e=>{var l,t,a,n,o,r;let{data:d}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"container grid-cols-3 lg:grid",children:(0,i.jsx)(s.Z,{title:d.title,subtitle:d.subtitle})}),d.heroImage&&(0,i.jsx)(C.Z,{src:(null===(l=d.heroImage)||void 0===l?void 0:null===(t=l.rendition)||void 0===t?void 0:t.url)||"",alt:null===(a=d.heroImage)||void 0===a?void 0:null===(n=a.rendition)||void 0===n?void 0:null===(o=n.image)||void 0===o?void 0:o.title,caption:null==d?void 0:d.heroCaption}),null===(r=d.body)||void 0===r?void 0:r.map((e,l)=>(0,i.jsx)(Z,{block:e},l))]})},B=e=>{var l,t;let{data:a}=e;switch(null==a?void 0:null===(l=a.page)||void 0===l?void 0:l.__typename){case"ContentPage":case"ProjectPage":case"NewsPage":return(0,i.jsx)(z,{data:a.page});case"TeamPage":return(0,i.jsx)(q,{data:a.page});case"NewsIndex":return(0,i.jsx)(j,{data:a.page});case"ProjectListingPage":return(0,i.jsx)(P,{data:a.page});default:throw Error("Unknown Page Type - ".concat(null==a?void 0:null===(t=a.page)||void 0===t?void 0:t.__typename))}};var A=t(2075),V=t(3047);let F=e=>{var l,t,a;let{data:o}=e,[r,{height:s}]=(0,V.Z)(),{pageType:d}=o.page;return(0,i.jsxs)(A.Z,{mainRef:r,mainElementClasses:"flex flex-col gap-20 overflow-hidden ".concat("ContentPage"===d?"lg:pb-64":""),script:null===(l=o.analyticsSettings)||void 0===l?void 0:l.script,children:[(0,i.jsx)(n.q,{children:(0,n.D)(null===(t=o.page.searchImage)||void 0===t?void 0:null===(a=t.rendition)||void 0===a?void 0:a.url,o.page.seoTitle||o.page.title," | ".concat(o.sites[0].siteName),o.page.searchDescription,o.sites[0].siteName,o.sites[0].hostname)}),(0,i.jsx)(B,{data:o}),(()=>{switch(d){case"ContentPage":case"ProjectPage":case"NewsPage":default:return(0,i.jsx)(R,{mainHeight:s});case"TeamPage":return(0,i.jsx)(D,{mainHeight:s});case"ProjectListingPage":return(0,i.jsx)(O,{mainHeight:s});case"NewsIndex":return(0,i.jsx)(Q,{mainHeight:s})}})()]})},R=e=>{let{mainHeight:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.H,{className:"absolute left-0 top-[6.5rem] -z-20 lg:top-12",from:90,to:0}),l>1500&&(0,i.jsx)(a.H,{className:"absolute bottom-0 left-0 -z-20",from:-180,to:-90})]})},D=e=>{let{mainHeight:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.H,{className:"absolute left-0 top-[6.5rem] -z-20 lg:top-12",from:90,to:0}),l>1500&&(0,i.jsx)(a.H,{className:"absolute bottom-0 right-0 -z-20 lg:hidden",from:-90,to:-180})]})},O=e=>{let{mainHeight:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.H,{className:"absolute left-0 top-[6.5rem] -z-20 lg:top-12",from:90,to:0}),l>1500&&(0,i.jsx)(a.H,{className:"absolute bottom-0 right-0 -z-20",from:-90,to:-180})]})},Q=e=>{let{mainHeight:l}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.H,{className:"absolute left-0 top-[6.5rem] -z-20 lg:top-12",from:90,to:0}),l>1500&&(0,i.jsx)(a.H,{className:"absolute bottom-0 right-0 -z-20 lg:hidden",from:-90,to:-180})]})};var X=!0,G=F}},function(e){e.O(0,[664,540,318,774,888,179],function(){return e(e.s=8880)}),_N_E=e.O()}]);
2//# sourceMappingURL=[...urlPaths]-31960aeec8a2d375.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.