1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{5112:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return r(5457)}])},5457:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return es},default:function(){return eo}});var n=r(2322),i=r(2505),a=r(8018),s=r(6873),o=r(7279),l=r(7519),d=r(1401),p=r(8388),c=r(792),x=r.n(c),m=r(7729),h=r.n(m),j=r(44),u=r(2811),g=r(6601),b=r(7532);let f=e=>{let{title:t,relatedContent:r}=e;if(!r||0===r.length)return(0,n.jsx)(n.Fragment,{});let i=r.map(e=>{let t,r,i,a,s;switch(e.contentType){case"video":{let n=e.properties;t=n?.heroVideo&&n.heroVideo[0],r="video",s="widescreen",i=t?.properties.duration?(0,b.L)(t?.properties.duration):void 0,a=e.properties.author;break}case"article":{let r=e.properties;t=r.heroImage&&r.heroImage[0],s="widescreen",a=r.duration?`${(0,b.i)(r.duration)} read`:void 0;break}case"podcast":{let n=e.properties,i=n.heroAudio&&n.heroAudio[0];t=i,r="podcast",s="square",a=i?.properties.duration?`${(0,b.i)(i?.properties.duration)} listen`:void 0}}return{title:e.properties.headline,bottomCaption:a,media:t?(0,n.jsx)(g.J,{data:t,alt:e.name,crop:s,container:{position:"relative",_before:{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",bg:"black",opacity:0,transition:"opacity 0.3s ease",zIndex:1}}}):(0,n.jsx)(j.o,{ratio:"widescreen"===s?16/9:1,children:(0,n.jsx)(d.x,{width:"100%",height:"100%",background:"secondary.600"})}),link:e.route?.path,variant:r,mediaDuration:t&&i}});return(0,n.jsx)(u.q,{title:t,items:i,itemsPerRow:4})};var y=r(195),w=r(9483),k=r(6080);r(2784);let v=e=>{let{...t}=e;return(0,n.jsx)(d.x,{w:"12px",h:"10px",animation:"ease-in-out",transition:"0.3s",_hover:{opacity:1},...t,children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,n.jsx)("path",{fill:"currentColor",d:"M12 4.667 7.333 0v2.667C2.667 3.333.667 6.667 0 10c1.667-2.333 4-3.4 7.333-3.4v2.733L12 4.667Z"})})})},C=e=>{let{topCaption:t,title:r,body:i,bottomCaption:a,buttons:s,share:o=!0}=e;return(0,n.jsxs)(y.k,{flexDirection:"column",gap:2.5,children:[t&&(0,n.jsx)(p.x,{textStyle:"textSm",children:t}),r&&(0,n.jsx)(w.X,{size:"lg",marginBlockEnd:2.5,children:r}),i&&(0,n.jsx)(p.x,{textStyle:"textLg",children:i}),a&&(0,n.jsx)(p.x,{textStyle:"textSm",children:a}),s&&(0,n.jsx)(y.k,{gap:2.5,marginBlockStart:2.5,children:s.map(e=>(0,n.jsx)(k.z,{children:(0,n.jsxs)(y.k,{alignItems:"center",gap:1,children:[e.title," ",(0,n.jsx)(v,{})]})},x()(e)))}),o&&(0,n.jsx)(d.x,{marginBlockStart:2.5,children:o})]})};var S=r(6811),_=r(4531);let z=(0,S.G)(({children:e,variant:t,...r},i)=>{let a=(0,_.m)("DataHighlight",{variant:t});return(0,n.jsx)(d.x,{ref:i,__css:a,...r,children:(0,n.jsx)(d.x,{className:"data",children:e})})});z.displayName="DataHighlight";let B=e=>{let{items:t,...r}=e;return t?(0,n.jsx)(y.k,{columnGap:5,rowGap:4,flexWrap:"wrap",...r,children:t.map(e=>(0,n.jsx)(z,{children:e},x()({item:e})))}):(0,n.jsx)(n.Fragment,{})};var E=r(4234),$=r(5375),P=r(825),D=r(2913),N=r(3523);let T=({children:e,...t})=>(0,n.jsx)(N.u_,{...t,children:e});T.displayName="Modal";var G=r(2479);let R=(0,S.G)(({children:e,...t},r)=>(0,n.jsx)(G.Z,{ref:r,...t,children:e}));R.displayName="ModalOverlay";var F=r(7737);let I=(0,S.G)(({children:e,...t},r)=>(0,n.jsx)(F.h,{ref:r,...t,children:e}));I.displayName="ModalContent";var L=r(1466);let M=(0,S.G)(({children:e,...t},r)=>(0,n.jsx)(L.x,{ref:r,...t,children:e}));M.displayName="ModalHeader";var A=r(4598);let Z=(0,S.G)(({children:e,...t},r)=>(0,n.jsx)(A.o,{ref:r,...t,children:e}));Z.displayName="ModalCloseButton";var O=r(676);let q=(0,S.G)(({children:e,...t},r)=>(0,n.jsx)(O.f,{ref:r,...t,children:e}));q.displayName="ModalBody";var U=r(5913);let V=(0,S.G)(({children:e,...t},r)=>(0,n.jsx)(U.m,{ref:r,...t,children:e}));V.displayName="ModalFooter";let X=e=>{let{isOpen:t,onClose:r,url:i}=e,a=(0,D.p)(),s=new URL("https://twitter.com/intent/tweet?");s.searchParams.append("url",i);let p=new URL("https://www.facebook.com/sharer/sharer.php");p.searchParams.append("u",i);let c=new URL("https://www.linkedin.com/sharing/share-offsite/?");c.searchParams.append("url",i);let x=e=>{navigator.clipboard.writeText(e),r(),a({position:"top",duration:4e3,render:()=>(0,n.jsx)(d.x,{bg:"secondary.600",padding:4,textAlign:"center",fontWeight:"bold",children:"Link copied to clipboard"})})};return(0,n.jsxs)(T,{isOpen:t,onClose:r,children:[(0,n.jsx)(R,{}),(0,n.jsxs)(I,{children:[(0,n.jsx)(M,{children:"Share link"}),(0,n.jsx)(Z,{}),(0,n.jsx)(q,{children:(0,n.jsxs)(o.r,{gridTemplateColumns:{base:"repeat(2, 1fr)"},gap:4,children:[(0,n.jsx)(l.P,{gridColumn:{base:"span 1"},children:(0,n.jsx)(k.z,{inlineSize:"100%",onClick:()=>{window.open(p,"_blank")?.focus()},children:(0,n.jsxs)(y.k,{alignItems:"center",gap:3,children:[(0,n.jsx)(v,{}),"Facebook"]})})}),(0,n.jsx)(l.P,{gridColumn:{base:"span 1"},children:(0,n.jsx)(k.z,{inlineSize:"100%",onClick:()=>{window.open(c,"_blank")?.focus()},children:"LinkedIn"})}),(0,n.jsx)(l.P,{gridColumn:{base:"span 1"},children:(0,n.jsx)(k.z,{inlineSize:"100%",onClick:()=>{window.open(s,"_blank")?.focus()},children:"X"})}),(0,n.jsx)(l.P,{gridColumn:{base:"span 1"},children:(0,n.jsx)(k.z,{inlineSize:"100%",children:"Email"})})]})}),(0,n.jsxs)(V,{justifyContent:"space-between",gap:4,children:[(0,n.jsx)(d.x,{maxWidth:"18em",overflow:"hidden",textOverflow:"ellipsis",children:i}),(0,n.jsx)(k.z,{variant:"outline",onClick:()=>x(i??"#"),children:"Copy link"})]})]})]})},H=e=>{let{title:t,text:r,url:i}=e,{isOpen:a,onOpen:s,onClose:o}=(0,P.q)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.k,{as:"button",onClick:()=>{navigator.share?navigator.share({title:t,text:r,url:i}).then(()=>{console.log("Thanks for sharing!")}).catch(console.error):s()},width:"fit-content",minBlockSize:"44px",minInlineSize:"44px","aria-label":"share",children:(0,n.jsx)(k.z,{as:"div",children:(0,n.jsxs)(y.k,{alignItems:"center",gap:1,children:[(0,n.jsx)(p.x,{textStyle:"caption",children:"Share"}),(0,n.jsx)(v,{})]})})}),(0,n.jsx)(X,{isOpen:a,onClose:o,url:i})]})};var W=r(4256),J=r(6090);let Y=(e,t)=>
1{let r="https://inside-saudi-webcms-aqa2fua9evhyf0d2.ukwest-01.azurewebsites.net",n=e?.[0]?.url,i=t?.[0]?.url;return n?`${r}${n}?width=1200&height=630&format=webp`:i?`${r}${i}?width=1200&height=630&format=webp`:`${(0,J.Z)()}/api/og`},K=e=>{let{properties:t}=e,{date:r,headline:i,standFirst:a,author:s,share:c,body:m,heroImage:j,heroImageCaption:u,tags:b,relatedTextArticles:y,relatedVideoArticles:w,relatedPodcastArticles:k,footerBlocks:v}=t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h(),{children:[(0,n.jsx)("meta",{property:"og:type",content:"article"}),(0,n.jsx)("meta",{property:"article:author",content:s||""}),(0,n.jsx)("meta",{property:"article:published_time",content:r||""}),b?.map((e,t)=>n.jsx("meta",{property:"article:tag",content:e},`${e}-${t}`)),(0,n.jsx)("meta",{name:"description",content:t?.metaDescription||a},"description"),(0,n.jsx)("meta",{property:"og:image",content:Y(t?.ogImage,j)}),(0,n.jsx)("meta",{property:"og:title",content:t?.ogTitle||i}),(0,n.jsx)("meta",{property:"og:description",content:t?.ogDescription||a})]}),(0,n.jsxs)(o.r,{gridTemplateColumns:{base:"repeat(2, 1fr)",md:"repeat(12, 1fr)"},columnGap:{base:4},paddingBlock:{base:4,md:10},paddingBlockEnd:{base:32,md:20},position:"relative",borderBlockStart:{base:"0.5px solid black"},children:[(0,n.jsx)(l.P,{gridColumn:{base:"1 / span 2",md:"1 / span 4"},position:{md:"sticky"},top:{md:16},height:"fit-content",paddingBlockEnd:{base:16,md:20},children:(0,n.jsx)(C,{topCaption:r?(0,E.p)(r):void 0,title:i,body:a,bottomCaption:s,share:c&&(0,n.jsx)(H,{title:"",text:"",url:""})})}),(0,n.jsxs)(l.P,{gridColumn:{base:"1 / span 2",md:"6 / span 6"},display:"flex",flexDirection:"column",gap:16,paddingBlockEnd:{md:20},children:[j&&j.map(e=>(0,n.jsxs)(d.x,{children:[(0,n.jsx)(g.J,{data:e,crop:"widescreen",priority:!0,sizes:"(max-width: 768px) 100vw, 50vw"}),(0,n.jsx)(p.x,{textStyle:"caption",marginBlockStart:2.5,children:u})]},x()(e))),(0,n.jsx)($.zg,{data:m}),(0,n.jsx)(B,{items:b})]})]}),(0,n.jsx)(f,{title:"Related Articles",relatedContent:y}),(0,n.jsx)(f,{title:"Related Videos",relatedContent:w}),(0,n.jsx)(f,{title:"Related Podcasts",relatedContent:k}),v?.items.map((e,t)=>n.jsx("div",{children:W.D(e)},`${e.content.contentType}-${t}`))]})};var Q=r(587);let ee=e=>{let{properties:t}=e,{date:r,headline:i,standFirst:a,author:s,share:d,body:p,heroVideo:c,tags:m,relatedTextArticles:j,relatedVideoArticles:u,relatedPodcastArticles:g,footerBlocks:b}=t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h(),{children:[(0,n.jsx)("meta",{property:"og:type",content:"article"}),(0,n.jsx)("meta",{property:"article:author",content:s||""}),(0,n.jsx)("meta",{property:"article:published_time",content:r||""}),m?.map((e,t)=>n.jsx("meta",{property:"article:tag",content:e},`${e}-${t}`)),(0,n.jsx)("meta",{property:"video.movie",content:i||""}),(0,n.jsx)("meta",{name:"description",content:t?.metaDescription||a||""},"description"),(0,n.jsx)("meta",{property:"og:video",content:c?.[0].properties.url||""}),(0,n.jsx)("meta",{property:"og:image",content:Y(t?.ogImage,c)}),(0,n.jsx)("meta",{property:"og:title",content:t?.ogTitle||i||""}),(0,n.jsx)("meta",{property:"og:description",content:t?.ogDescription||a||""})]}),(0,n.jsxs)(o.r,{gridTemplateColumns:{base:"repeat(2, 1fr)",md:"repeat(12, 1fr)"},columnGap:{base:4},paddingBlock:{base:4,md:10},paddingBlockEnd:{base:32,md:20},position:"relative",borderBlockStart:{base:"0.5px solid black"},children:[(0,n.jsx)(l.P,{gridColumn:{base:"1 / span 2",md:"1 / span 4"},position:{md:"sticky"},top:{md:16},height:"fit-content",paddingBlockEnd:{base:16,md:20},children:(0,n.jsx)(C,{topCaption:r?(0,E.p)(r):void 0,title:i,body:a,bottomCaption:s,share:d&&(0,n.jsx)(H,{title:"",text:"",url:""})})}),(0,n.jsxs)(l.P,{gridColumn:{base:"1 / span 2",md:"6 / span 6"},display:"flex",flexDirection:"column",gap:16,paddingBlockEnd:{md:20},children:[c&&c.map(e=>(0,n.jsx)(Q.Y,{url:e.properties.url,thumbnailUrl:`https://inside-saudi-webcms-aqa2fua9evhyf0d2.ukwest-01.azurewebsites.net${e.url}`},x()(e))),(0,n.jsx)($.zg,{data:p}),(0,n.jsx)(B,{items:m})]})]}),(0,n.jsx)(f,{title:"Related Articles",relatedContent:j}),(0,n.jsx)(f,{title:"Related Videos",relatedContent:u}),(0,n.jsx)(f,{title:"Related Podcasts",relatedContent:g}),b?.items.map((e,t)=>n.jsx("div",{children:W.D(e)},`${e.content.contentType}-${t}`))]})};var et=r(5167);let er=e=>{let{properties:t}=e,{date:r,headline:i,standFirst:a,author:s,share:d,body:p,heroAudio:c,tags:m,relatedTextArticles:j,relatedVideoArticles:u,relatedPodcastArticles:g,footerBlocks:b}=t;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h(),{children:[(0,n.jsx)("meta",{property:"og:type",content:"article"}),(0,n.jsx)("meta",{property:"article:author",content:s||""}),(0,n.jsx)("meta",{property:"article:published_time",content:r||""}),m?.map((e,t)=>n.jsx("meta",{property:"article:tag",content:e},`${e}-${t}`)),(0,n.jsx)("meta",{property:"music:song",content:i||""}),(0,n.jsx)("meta",{name:"description",content:t?.metaDescription||a||""},"description"),(0,n.jsx)("meta",{property:"og:audio",content:c?.[0].properties.url||""}),(0,n.jsx)("meta",{property:"og:image",content:Y(t?.ogImage,c)}),(0,n.jsx)("meta",{property:"og:title",content:t?.ogTitle||i||""}),(0,n.jsx)("meta",{property:"og:description",content:t?.ogDescription||a||""})]}),(0,n.jsxs)(o.r,{gridTemplateColumns:{base:"repeat(2, 1fr)",md:"repeat(12, 1fr)"},columnGap:{base:4},paddingBlock:{base:4,md:10},paddingBlockEnd:{base:32,md:20},position:"relative",borderBlockStart:{base:"0.5px solid black"},children:[(0,n.jsx)(l.P,{gridColumn:{base:"1 / span 2",md:"1 / span 4"},position:{md:"sticky"},top:{md:16},height:"fit-content",paddingBlockEnd:{base:16,md:20},children:(0,n.jsx)(C,{topCaption:r?(0,E.p)(r):void 0,title:i,body:a,bottomCaption:s,share:d&&(0,n.jsx)(H,{title:"",text:"",url:""})})}),(0,n.jsxs)(l.P,{gridColumn:{base:"1 / span 2",md:"6 / span 6"},display:"flex",flexDirection:"column",gap:16,paddingBlockEnd:{md:20},children:[c&&c.map(e=>(0,n.jsx)(et.t,{url:e.properties.url,image:e},x()(e))),(0,n.jsx)($.zg,{data:p}),(0,n.jsx)(B,{items:m})]})]}),(0,n.jsx)(f,{title:"Related Articles",relatedContent:j}),(0,n.jsx)(f,{title:"Related Videos",relatedContent:u}),(0,n.jsx)(f,{title:"Related Podcasts",relatedContent:g}),b?.items.map((e,t)=>n.jsx("div",{children:W.D(e)},`${e.content.contentType}-${t}`))]})};var en=r(4816);let ei=e=>{let{pageContent:t,draftMode:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z,{draftMode:r}),(0,n.jsx)(en.r,{}),(0,n.jsx)(a.Z,{children:(0,n.jsx)(ea,{...t})})]})},ea=e=>{let{contentType:t,...r}=e;switch(t){case"article":return(0,n.jsx)(K,{...r});case"podcast":return(0,n.jsx)(er,{...r});case"video":return(0,n.jsx)(ee,{...r});default:return(0,n.jsx)("h1",{children:"Not Found"})}};var es=!0,eo=ei;ei.getLayout=function(e){return(0,n.jsx)(s.A,{pageContent:e.props.pageContent,navContent:e.props.navContent,children:e})}},2505:function(e,t,r){"use strict";var n=r(2322),i=r(9097),a=r.n(i);t.Z=e=>{let{draftMode:t=!1}=e;return t?(0,n.jsx)("div",{style:{position:"fixed",bottom:0,left:0,zIndex:9999,fontSize:14,background:"red",color:"white",padding:"0.5rem 1rem"},children:(0,n.jsx)(a(),{prefetch:!1,href:"/api/exit-preview",children:"Exit preview"})}):null}},8018:function(e,t,r){"use strict";var n=r(2322),i=r(2784);class a extends i.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?(0,n.jsx)("h1",{children:"Sorry.. there was an error"}):(0,n.jsx)(n.Fragment,{children:this.props.children})}constructor(...e){super(...e),this.state={hasError:!1}}}t.Z=a}},function(e){e.O(0,[434,20,949,888,774,179],function(){return e(e.s=5112)}),_N_E=e.O()}]);
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.