PageSourceSearch

https://davidyarrow.photography/_next/static/chunks/pages/news-media-b470db91d60ec8f5.js

js davidyarrow.photography collected 2026-10-02 09:54:11 UTC 6,866 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1674],{42288:(e,_,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/news-media",function(){return r(54451)}])},54451:(e,_,r)=>{"use strict";r.r(_),r.d(_,{__N_SSG:()=>j,default:()=>v});var a=r(37876),s=r(14232),t=r(79750),i=r(17506),n=r(89596),d=r(70407),l=r.n(d);r(47331);var c=r(96941),o=r(26276),w=r(10841),m=r.n(w),f=r(59722),g=r(54587),h=r.n(g),p=r(81727),u=r(77328),M=r.n(u),x=r(76988),j=!0;let v=e=>{let{data:_,pageDescriptionsData:r}=e,d=(0,s.useRef)([]),w=(0,s.useRef)(null),g=(0,s.useRef)(null),u=(0,s.useRef)(null),[j,v]=(0,s.useState)(0),[N,C]=(0,s.useState)("all"),[y,k]=(0,s.useState)(!1),T=(0,f.a)();(0,s.useEffect)(()=>{w.current&&v(w.current.offsetHeight)},[w]);let E=["press","events","podcasts","videos"];function S(e){C(e),localStorage.setItem("newsMedia_filter",e)}return c.os.registerPlugin(o.ScrollTrigger),(0,s.useEffect)(()=>{_&&d.current.forEach((e,_)=>{c.os.fromTo(e,{opacity:0},{opacity:1,duration:.5,ease:"linear",delay:.2*(0!==_),scrollTrigger:{trigger:e,markers:!1,start:"top 85%"}}),c.os.fromTo(e,{yPercent:10},{yPercent:0,duration:1,ease:"power1.inOut",delay:.2*(0!==_),scrollTrigger:{trigger:e,markers:!1,start:"top 85%"}})})},[_,N,d]),(0,s.useEffect)(()=>{u.current&&g.current&&o.ScrollTrigger.create({trigger:g.current,start:"top 15%",endTrigger:u.current,end:"bottom 43%",pin:!0,markers:!1})},[N,d]),(0,s.useEffect)(()=>{window.scrollTo(0,0)},[N]),(0,s.useEffect)(()=>{localStorage.newsMedia_filter&&C(localStorage.newsMedia_filter)},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(M(),{children:[(0,a.jsx)("title",{children:"News & Media | David Yarrow"}),(0,a.jsx)("meta",{name:"description",content:"David Yarrow Photography"})]}),(0,a.jsx)(x.GoogleAnalytics,{gaId:"G-FT7H0XC6WK"}),(0,a.jsx)(t.A,{}),(0,a.jsxs)("div",{className:l().newsMedia,style:{marginBottom:T?0:"".concat(j,"px")},ref:u,children:[(0,a.jsxs)("div",{className:l().newsMedia__header,children:[(0,a.jsx)("h1",{children:"News & Media"}),r.map((e,_)=>"News & Media"===e.title?(0,a.jsx)("div",{children:(0,a.jsx)(p.RK,{value:e.content})},_):void 0)]}),(0,a.jsxs)("div",{className:l().newsMedia__filters,ref:g,children:[(0,a.jsx)("h6",{className:"all"===N?"".concat(l().newsMedia__filters__item," ").concat(l().newsMedia__filters__item__active):l().newsMedia__filters__item,onClick:()=>S("all"),children:"All"}),E.map((e,_)=>(0,a.jsx)("h6",{className:N===e?"".concat(l().newsMedia__filters__item," ").concat(l().newsMedia__filters__item__active):l().newsMedia__filters__item,onClick:()=>S(e),children:e},_))]}),(0,a.jsxs)("div",{className:l().newsMedia__filters__dropdown,onClick:()=>k(!y),children:[(0,a.jsxs)("div",{className:l().newsMedia__filters__dropdown__title,children:[(0,a.jsx)("h6",{children:"all"!==N?N:"Select type"}),(0,a.jsx)("div",{style:{transform:y?"rotate(180deg)":"unset"},children:(0,a.jsx)(h(),{src:"/arrow-down.svg",fill:!0,alt:"arrow down",sizes:"1vw"})})]}),(0,a.jsxs)("div",{className:y?"".concat(l().newsMedia__filters__dropdown__list," ").concat(l().newsMedia__filters__dropdown__list__open):l().newsMedia__filters__dropdown__list,children:[E.map((e,_)=>(0,a.jsx)("h6",{onClick:()=>S(e),children:e},_)),(0,a.jsx)("h6",{onClick:()=>S("all"),children:"Show all"})]})]}),(0,a.jsx)("div",{className:l().newsMedia__grid,children:_&&_.map((e,_)=>{var r;if(r=e.category,"all"===N||N===r||0)return(0,a.jsx)(n.A,{title:e.title,showTag:!0,tagContent:e.category,image:e.coverImage?e.coverImage:"/bts5.jpeg",date:m()(e.date).format("MMM, YYYY"),longDescription:e.content,linkUrl:e.slug?"/news-media/".concat(e.slug):e.externalLink,linkText:"podcasts"===e.category?"Listen":"Read more",horizontal:!0,cardRef:e=>d.current[_]=e},e.title)})})]}),(0,a.jsx)(i.A,{footerRef:w})]})}},70407:e=>{e.exports={newsMedia:"newsMedia_newsMedia__caO37",newsMedia__header:"newsMedia_newsMedia__header__Yc_Sy",newsMedia__filters:"newsMedia_newsMedia__filters__UfVCp",newsMedia__filters__item:"newsMedia_newsMedia__filters__item__x126c",newsMedia__filters__item__active:"newsMedia_newsMedia__filters__item__active__vA2fE",newsMedia__filters__dropdown:"newsMedia_newsMedia__filters__dropdown__pPwd1",newsMedia__grid:"newsMedia_newsMedia__grid__jeB_O",newsMedia__filters__dropdown__title:"newsMedia_newsMedia__filters__dropdown__title__q1mOv",newsMedia__filters__dropdown__list:"newsMedia_newsMedia__filters__dropdown__list__5v7NC",newsMedia__filters__dropdown__list__open:"newsMedia_newsMedia__filters__dropdown__list__open___NbrT"}},82261:e=>{e.exports={card:"Card_card__dA3pU",card__horizontal:"Card_card__horizontal__yApyH",card__image:"Card_card__image__pOczs",card__image__main:"Card_card__image__main__zBRUf",card__image__tag:"Card_card__image__tag__817mm",card__content:"Card_card__content__mobEh",card__content__date:"Card_card__content__date__0cI97",card__content__longDescription:"Card_card__content__longDescription__6_mxJ",card__smaller:"Card_card__smaller__t66wi",card__content__address:"Card_card__content__address__z25j9"}},89596:(e,_,r)=>{"use strict";r.d(_,{A:()=>w});var a=r(37876),s=r(14232),t=r(82261),i=r.n(t),n=r(96941),d=r(26276),l=r(81727),c=r(54587),o=r.n(c);let w=e=>{let{title:_,showTag:r,tagContent:t,image:c,description:w,longDescription:m,galleryCity:f,address:g,addressLink:h,linkUrl:p,linkText:u,externalLink:M,calendarTag:x,cardRef:j,horizontal:v,date:N,borderColor:C,smallerCard:y}=e,k=(0,s.useRef)(null),T=(0,s.useRef)(null);return n.os.registerPlugin(d.ScrollTrigger),(0,s.useEffect)(()=>{n.os.to(T.current,{yPercent:20,ease:"none",scrollTrigger:{trigger:k.current,markers:!1,start:"top bottom",scrub:!0,end:"bottom top"}})},[]),(0,a.jsxs)("div",{className:"".concat(i().card," ").concat(v&&i().card__horizontal," ").concat(y&&i().card__smaller),ref:j,style:{borderBottomColor:C&&C},children:[(0,a.jsxs)("div",{className:i().card__image,ref:k,children:[r&&t&&(0,a.jsxs)("div",{className:i().card__image__tag,children:[x&&(0,a.jsx)("img",{src:"/calendar-icon.svg",alt:"calendar icon"}),t]}),(0,a.jsx)("div",{className:i().card__image__main,ref:T,children:(0,a.jsx)(o(),{src:c,alt:_,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"})})]}),(0,a.jsxs)("div",{className:i().card__content,style:{borderBottomColor:C&&C},children:[N&&(0,a.jsxs)("div",{className:i().card__content__date,children:[(0,a.jsx)("img",{src:"/calendar-icon.svg",alt:"calendar icon"}),N]}),(0,a.jsx)("h4",{children:_}),f&&(0,a.jsx)("h5",{children:f}),g&&(0,a.jsx)("a",{href:h,className:i().card__content__address,children:g}),w&&(0,a.jsx)("p",{className:i().card__content__description,children:w}),m&&(0,a.jsx)("div",{className:i().card__content__longDescription,children:(0,a.jsx)(l.RK,{value:m})}),p&&(0,a.jsx)("a",{href:p,target:M?"_blank":"",children:(0,a.jsx)("h6",{children:u})})]})]})}}},e=>{e.O(0,[6742,3716,9859,5092,1727,5456,636,6593,8792],()=>e(e.s=42288)),_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.