PageSourceSearch

https://safmagazine.com/_next/static/chunks/pages/articles/%5Bslug%5D-baaad97cd825a2f6.js

js safmagazine.com collected 2026-09-29 09:20:00 UTC 4,844 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5850],{7860:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/articles/[slug]",function(){return t(2516)}])},2516:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return C},default:function(){return S}});var l=t(5893),i=t(8641),r=t(1469),s=t(7484),o=t.n(s),a=t(7294),d=t(1059),c=t(9653),u=t(3887),x=t(3826),h=t(7741),j=t(155);function g(e){var n,t,r;let{images:s}=e,{isOpen:o,onOpen:d,onClose:h}=(0,c.qY)(),[g,v]=(0,a.useState)(0);return(0,l.jsxs)(i.xu,{float:{base:"none",md:"right"},ml:{base:0,md:4},mb:4,maxW:{base:"100%",md:"35%"},maxH:"90vh",children:[(0,l.jsxs)(i.gC,{flexDir:{base:"column-reverse",md:"column"},children:[(0,l.jsx)(i.rj,{gridTemplateColumns:"1fr 1fr 1fr 1fr",w:"100%",gridGap:2,children:s.length>1&&s.map((e,n)=>{var t,r,s;return(0,l.jsx)(i.oM,{minW:"50px",ratio:1,children:(0,l.jsx)(u.Ee,{src:null!==(s=null===(r=e.formats)||void 0===r?void 0:null===(t=r.thumbnail)||void 0===t?void 0:t.url)&&void 0!==s?s:e.url,alt:e.alternateiveText,objectFit:"cover",cursor:"pointer",onClick:()=>v(n)})},n)})}),(0,l.jsxs)(i.xu,{pb:2,children:[(0,l.jsx)(u.Ee,{src:null!==(r=null===(t=s[g].formats)||void 0===t?void 0:null===(n=t.small)||void 0===n?void 0:n.url)&&void 0!==r?r:s[g].url,alt:s[g].alternateiveText,cursor:"pointer",onClick:d}),(0,l.jsx)(i.xv,{textAlign:"center",children:s[g].caption&&s[g].caption})]})]}),(0,l.jsxs)(x.u_,{isOpen:o,onClose:h,scrollBehavior:"inside",children:[(0,l.jsx)(x.ZA,{}),(0,l.jsxs)(x.hz,{minW:"fit-content",children:[(0,l.jsx)(x.xB,{}),(0,l.jsx)(x.ol,{}),(0,l.jsx)(x.fe,{children:(0,l.jsxs)(i.rj,{position:"relative",templateColumns:"auto 1fr auto",alignItems:"center",gap:{base:2,lg:4},children:[(0,l.jsx)(m,{right:"3",onClick:()=>{v(((g-1)%s.length+s.length)%s.length)},icon:(0,l.jsx)(j.$Ku,{}),"aria-label":"Previous Slide"}),(0,l.jsxs)(i.xu,{children:[(0,l.jsx)(u.Ee,{h:"100%",src:s[g].url,alt:s[g].alternateiveText}),s[g].caption&&s[g].caption]}),(0,l.jsx)(m,{left:"3",onClick:()=>{v((g+1)%s.length)},icon:(0,l.jsx)(j.nQU,{}),"aria-label":"Next Slide"})]})})]})]})]})}let m=e=>(0,l.jsx)(h.hU,{fontSize:"50px",color:"white",boxShadow:"base",borderRadius:"0",py:"50px",bg:"brandSecondaryLight",_hover:{bg:"brandSecondary"},_active:{bg:"brandSecondaryLight"},_focus:{boxShadow:"inerhit"},_focusVisible:{boxShadow:"outline"},...e});var v=t(4e3),b=t(1964),p=t(7754),f=t(4279),_=t(3766),C=!0;function S(e){var n,t,s,c;let{article:u,tags:x,publication:h,publications:j}=e,[m,C]=(0,a.useState)(""),[S,w]=(0,a.useState)(""),[k,y]=(0,a.useState)("");function Z(){return(0,l.jsx)(i.P4,{backgroundColor:"white",py:5,children:(0,l.jsxs)(i.Ug,{justifyContent:"space-around",children:[(0,l.jsx)(v.Z,{zoneId:h.adZoneIds.DefaultMedRectAdZ
1one}),(0,l.jsx)(r.di,{above:"md",children:(0,l.jsx)(v.Z,{zoneId:h.adZoneIds.DefaultMedRectAdZone})})]})})}return(0,a.useEffect)(()=>{let e=u.body.split(/(<\/p>)/g);if(e.length<15){let n=e.slice(0,e.length/2+1);C(n.join("")),w(e.slice(e.length/2+1).join(""))}else{let n=e.length/3-1,t=2*n;C(e.slice(0,n).join("")),w(e.slice(n,t).join("")),y(e.slice(t).join(""))}},[u.body]),(0,l.jsxs)(p.Z,{tags:x,publication:h,publications:j,templateColumns:{base:"1fr",lg:"2fr 1fr"},pageTitle:u.title,metaDescription:u.summary,metaImageUrl:null!==(c=null===(t=u.images)||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.url)&&void 0!==c?c:void 0,children:[(0,l.jsxs)(i.P4,{pt:16,zIndex:"5",backgroundColor:"white",mb:{base:"100vh",md:"0"},minH:{base:"100vh",md:"0"},children:[(0,l.jsx)(f.Z,{removeTopPadding:!0,title:u.title}),u.images&&(0,l.jsx)(g,{images:u.images}),(0,l.jsxs)(i.Ug,{spacing:4,children:[(0,l.jsx)(i.xv,{variant:"textLightBlueCaps",textColor:"brandSecondary",children:o()(u.publishedAt).format("MMMM D, YYYY")}),(null===(s=u.author)||void 0===s?void 0:s.name)&&(0,l.jsx)(i.xv,{variant:"textLightBlueCaps",children:"BY ".concat(u.author.name)})]}),(0,l.jsx)(i.xu,{backgroundColor:"white",className:"content",dangerouslySetInnerHTML:{__html:m}}),(0,l.jsx)(Z,{}),(0,l.jsx)(i.xu,{backgroundColor:"white",className:"content",dangerouslySetInnerHTML:{__html:S}}),(0,l.jsx)(Z,{}),k&&(0,l.jsx)(i.xu,{backgroundColor:"white",className:"content",dangerouslySetInnerHTML:{__html:k}}),u.relatedArticles&&u.relatedArticles.length>0&&(0,l.jsxs)(i.xu,{backgroundColor:"white",my:0,children:[(0,l.jsx)(f.Z,{title:"Related Stories",removeTopPadding:!0}),u.relatedArticles.map((e,n)=>(0,l.jsx)(i.P4,{pb:8,children:(0,l.jsx)(d.Z,{article:e},n)},n))]}),u.relatedEvents&&u.relatedEvents.length>0&&(0,l.jsx)(b.Z,{events:u.relatedEvents})]}),(0,l.jsx)(r.di,{above:"lg",children:(0,l.jsx)(i.P4,{gridColumn:"2/-1",children:(0,l.jsx)(_.Z,{publication:h})})})]})}}},function(e){e.O(0,[3415,1778,5445,1228,8941,260,8641,7396,4310,4490,9653,7754,7496,9774,2888,179],function(){return e(e.s=7860)}),_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.