PageSourceSearch

https://deadbydaylight.com/component---src-templates-chapter-js-d481d4ce576f4f4a426b.js

js deadbydaylight.com collected 2026-09-24 17:57:44 UTC 14,862 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_base=self.webpackChunkgatsby_base||[]).push([[239],{2110:function(e,t,a){a.r(t),a.d(t,{Head:function(){return K.F},default:function(){return N}});var l=a(7294),A=a(2108),n=a(8414),c=a(2204),o=a(9810),r=a(2008),s=a(9715),i=a(2018),g=a(8639),m=a(7748),p=a(8889),d=a(4587),u=a(9923),b=a(498),h=a(3723),E=a(9672),x=a(1262),w=a(4533),f=a(2668);var y=e=>{let{data:t,strings:A,directory:n,pageContext:c}=e;const{theme:r}=(0,l.useContext)(x.N),[s,i]=r,{0:g,1:m}=(0,l.useState)(null);let p=!1;try{p="undefined"!=typeof window&&window.localStorage&&!0}catch(d){}return(0,l.useEffect)((()=>{const e=!!p&&localStorage.getItem("DbDCustomTheme");if(e){const t=!(!e||"true"!==e);i(t),m(t)}}),[]),(0,l.useEffect)((()=>{m(s)}),[s]),l.createElement("section",{className:"chapter-related relative overflow-hidden"},l.createElement(E.M,null,g&&l.createElement(o.E.div,{initial:{opacity:0,filter:"blur(30px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0},transition:{duration:.5},className:"pointer-events-none absolute top-0 z-0 h-full w-full bg-black"},l.createElement(h.S,{src:"../../../assets/img/hauntedbydaylight-2022/section-background-halloween.jpg",alt:"",placeholder:"blurred",className:"mask-bottom w-full",__imageData:a(5919)}))),l.createElement(E.M,null,!g&&l.createElement(o.E.div,{initial:{opacity:0,filter:"blur(30px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0},transition:{duration:.5},className:"chapter-related-background pointer-events-none absolute top-0 z-0 h-full w-full bg-black"},l.createElement(h.S,{src:"../../../assets/img/section-background.jpg",alt:"",placeholder:"blurred",className:"mask-bottom w-full",__imageData:a(7883)}))),l.createElement("div",{className:"mx-auto flex w-full flex-col px-10 pb-24 pt-16 lg:w-11/12 lg:px-0 lg:pb-16 xxl:w-3/4 xxxl:w-1200"},l.createElement(w.Z,{className:"relative z-10"},l.createElement("h2",{className:"h4 mb-16 text-center text-white"},A.titlesAndCTA.youMayAlsoLike)),l.createElement("div",{className:"flex w-full flex-col space-y-12 lg:flex-row lg:space-x-12 lg:space-y-0"},t.map((e=>l.createElement(w.Z,{className:"w-full lg:w-1/3"},l.createElement(f.Z,{post:e,strings:A,layout:"compact",directory:n})))))))},C=a(8020);var v=e=>{let{data:t,strings:a}=e;const{0:A,1:n}=(0,l.useState)(null);return(0,l.useEffect)((()=>{!async function(){new Promise((e=>{e(function(){let e=[];return null!==t&&t.nodes.forEach((t=>{e.push(t)})),e}())})).then((function(e){n(e)}))}()}),[]),l.createElement("section",{className:"maps-wrapper relative flex justify-center overflow-hidden"},null!==A&&l.createElement("div",{className:"w-full"},A.map((e=>l.createElement(l.Fragment,null,l.createElement(w.Z,{className:"text-white w-full lg:w-11/12 xxl:w-3/4 xxxl:w-1200 mx-auto pt-16 lg:pt-28 pb-12 lg:pb-20 px-8 lg:px-0"},l.createElement("h2",{className:"text-1xl lg:text-3xl xxl:text-4xl font-bold leading-none"},a.slugs.mapsTitle)),l.createElement(w.Z,null,null!==e.medias&&l.createElement(C.Z,{images:e.medias,strings:a}),l.createElement("div",{className:"text-white w-full lg:w-11/12 xxl:w-3/4 xxxl:w-1200 mx-auto pb-12 py-0 lg:py-24"},l.createElement("div",{className:"bg-grayDarker lg:bg-transparent px-10 lg:px-0 pb-4 pt-3 lg:py-0 mb-8 lg:mb-0"},l.createElement("h3",{className:"selection-visible relative font-bold text-lg lg:text-2xl leading-tight lg:leading-none lg:mb-12"},e.title)),l.createElement("p",{className:"markdown text-p-base px-10 lg:px-0"},l.createElement(r.Z,{children:e.description})))))))))};var B=e=>{var t,a,A,n,c,h,E;let{data:x,globalData:w,pageContext:f,characters:C,maps:B,images:k}=e;const Q=w.stringsAll,D=(Q.character,Q.slugs);let K="dbd-main-game";if(x.chapterNumber&&null!==x.chapterNumber){let e=x.slug.replaceAll("-"," ");K=`ch${x.chapterNumber} ${e}`}let N=!0;!1===x.released&&(N=!1);let M=!0;!1===x.displayCharacters&&(M=!1);let T=!0;!1===x.displayMaps&&(T=!1);const j=x.customReleaseDate&&null!==x.customReleaseDate?x.customReleaseDate:x.releaseDate,Z=(0,g.cU)(j,f.locale,"long");let S="";return null==w||null===(t=w.gameData)||void 0===t||null===(a=t.packLinks)||void 0===a||a.forEach((e=>{var t;e.enabled&&(null===(t=e.chapters)||void 0===t||t.forEach((t=>{t.chapterNumber===x.chapterNumber&&(S=e)})))}
1)),l.createElement(l.Fragment,null,l.createElement(o.E.section,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5,delay:.5},className:`hero-chapter ${x.chapterClasses?x.chapterClasses:""} ${!1!==N||x.releaseDate&&null!==x.releaseDate?"":"hero-chapter-preannouncement"}  ${!1===N&&x.releaseDate&&null!==x.releaseDate?"hero-chapter-prerelease":""} gradient-overlay relative flex justify-center overflow-hidden bg-primary`},(x.animatedKeyart||x.keyart)&&l.createElement("div",{className:`hero-keyart-wrapper ${!1===N?"h-screen-nav-mobile lg:h-screen-nav":"h-full"} mt-20 h-full w-full lg:mt-32`},l.createElement(m.Z,{offset:-50,stiffness:500,key:"parallax-1",className:"h-full w-full"},l.createElement(i.Z,{media:x.animatedKeyart?x.animatedKeyart:x.keyart,bgLoop:!0,autoplay:!0,loading:"lazy",loop:!0,muted:!0,aboveFold:!0,className:"video w-full",pauseEnabled:!0,player:"self",poster:x.keyart?x.keyart.url:""}))),l.createElement("div",{className:"hero-chapter-content absolute bottom-0 flex h-full w-full flex-col px-8 text-center lg:w-11/12 xxl:w-3/4 xxxl:w-991 "+("centerTop"===x.logoPosition?"justify-between":"justify-end")},l.createElement("div",{className:""+("centerTop"===x.logoPosition?"mt-64":"")},x.logo&&!x.customLogo&&l.createElement(i.Z,{media:x.logo,className:"chapter-logo w-3/4 lg:w-auto "+(j&&null!==j?"mb-12 max-w-lg lg:mb-24 lg:max-w-4xl":"mb-12 max-w-lg lg:max-w-2xl")}),x.customLogo&&l.createElement(i.Z,{media:x.customLogo,className:"chapter-logo w-3/4 lg:w-auto "+(j&&null!==j?"mb-12 max-w-lg lg:mb-24 lg:max-w-4xl":"mb-12 max-w-lg lg:max-w-2xl")})),!1===N&&(j&&null!==j?l.createElement(l.Fragment,null,l.createElement(u.Z,{strings:Q.dates,statDate:x.announcementDate?x.announcementDate:null,releaseDate:j,theme:"small"}),l.createElement("h2",{className:"h3 my-12 font-bold leading-none text-white"},l.createElement("span",{className:"block md:inline-block"},Q.titlesAndCTA.releaseDate)," ",Z)):l.createElement("h2",{className:"h3 my-12 font-bold leading-none text-white"},x.contentOverview)),l.createElement("div",{className:"hero-chapter-buttons mb-14 flex flex-col justify-center space-x-0 space-y-8 md:flex-row md:space-x-8 md:space-y-0 lg:space-x-20"},!1!==N&&l.createElement(l.Fragment,null,S?l.createElement(s.Z,{trigger:"buyModal",link:null===(A=S)||void 0===A?void 0:A.gameId,style:"secondary",key:"chapterButton1",size:"lg",pageContext:f,eventCategory:"buy",eventAction:"buy chapter intent",eventType:"chapter",eventElement:"chapterHero",modalContent:{media:null!==(n=S)&&void 0!==n&&n.keyart?null===(c=S)||void 0===c?void 0:c.keyart:w.gameData.buyPopup.baseKeyart,title:w.gameData.buyPopup.popupTitle,legacy:!0,storeLayout:"list",eventCategory:"buy",eventAction:"buy chapter",eventType:"purchaseFlow",eventElement:"chapterHero"}},l.createElement("span",null,Q.actions.buyChapter)):l.createElement(s.Z,{trigger:"buyModal",link:K&&null!==K?K:null,style:"secondary",key:"chapterButton1",size:"lg",pageContext:f,eventCategory:"buy",eventAction:"buy chapter intent",eventType:"chapter",eventElement:"chapterHero",modalContent:{media:x.keyart?x.keyart:w.gameData.buyPopup.baseKeyart,logo:x.logo?x.logo:w.gameData.buyPopup.baseLogo,title:w.gameData.buyPopup.popupTitle,logoPosition:x.logoPosition?x.logoPosition:null,legacy:!0,eventCategory:"buy",eventAction:"buy chapter",eventType:"purchaseFlow",eventElement:"chapterHero"}},l.createElement("span",null,Q.actions.buyChapter)),x.trailer&&l.createElement(s.Z,{link:x.trailer,trigger:"videoModal",style:"outline_primary",key:"chapterButton2",size:"lg",pageContext:f,ratingTimeBuffer:x.videoDelay?x.videoDelay:3e3},l.createElement("span",null,Q.actions.watchTrailer))),!1===N&&l.createElement(l.Fragment,null,x.setReminder&&j&&null!==j&&l.createElement(s.Z,{trigger:"eventModal",style:"secondary",title:`${x.title} | Dead by Daylight | ${Q.titlesAndCTA.release}`,image:x.logo,description:"",date:j,size:"sm",pageContext:f},l.createElement("span",null,Q.actions.setReminder)),!x.setReminder&&null!==x.blogpostLink&&l.createElement(s.Z,{trigger:"internalLink",style:"secondary",title:`${x.title} | Dead by Daylight | ${null===(h=Q.actions)||void 0===h?void 0:h.learnMore}`,image:x.logo,description:"",date:j,size:"sm",link:x.blogpostLink,pageContext:f},l.createElement("span",null,null===(E=Q.actions)||void 0===E?void 0:E.learnMore)),x.trailer&&l.createElement(s.Z,{link:x.trailer,trigger:"videoModal",style:"outline_primary",key:"chapterButton2",size:"sm",pageContext:f,ratingTimeBuffer:x.videoDelay?x.videoDelay:3e3},l.createElement("span",null,Q.actions.watchTrailer)))),S&&S.disclaimer&&l.createElement("span",{className:"hero-chapter-disclaimer mb-8 flex justify-center text-xs text-white"},S.disclaimer))),!1!==M&&l.createElement(b.Z,{slug:x.slug,locale:f.locale,data:C,strings:Q,pageContext:f}),x.contentSections&&l.createElement(p.Z,{pageContext:f,globalData:w,postsData:x,blocks:x.contentSections,images:k}
1),!1!==T&&l.createElement(v,{slug:x.slug,data:B,strings:Q}),x.screenshotGallery&&x.screenshotGallery.images.length>=1&&l.createElement(d.Z,{data:x.screenshotGallery,title:Q.titlesAndCTA.screenshotGalery,layout:"base"}),x.legalContent&&null!==x.legalContent&&l.createElement("div",{className:"bg-black px-16 py-8 text-center text-white lg:py-8"},l.createElement("p",{className:"text-xs"},l.createElement(r.Z,{children:x.legalContent.text}))),x.affiliates_chapters&&x.affiliates_chapters.length>=1&&l.createElement(y,{data:x.affiliates_chapters,strings:Q,pageContext:f,directory:D.chapters}))},k=a(3804),Q=a(8208),D=a(1793),K=a(1865);var N=e=>{var t,a;let{pageContext:o,data:r}=e;const s=(0,Q.e)(o,r),i=s.pageContext,g=s.globalData,m=s.modalData,p=r.allStrapiCharacters,d=r.allStrapiMaps,u=g.stringsSlugs,b=r.pageData;let h="";null!==b.fields&&(h=b.fields.images);const E=[{slug:u.games,shortName:u.gameTitle},{slug:u.chapters,shortName:u.chaptersTitle}];let x="";null==g||null===(t=g.gameData)||void 0===t||null===(a=t.packLinks)||void 0===a||a.forEach((e=>{var t;e.enabled&&(null===(t=e.chapters)||void 0===t||t.forEach((t=>{t.chapterNumber===b.chapterNumber&&(x=e)})))}));const{modalCont:w}=(0,l.useContext)(n.z),[f,y]=w;return l.createElement(c.Z,{pageContext:i,modalData:m,breadcrumbs:{enableGlobalBreadcrumbs:g.seoData.enableBreadcrumbs,disablePageBreadcrumbs:!1,postTitle:b.title,postParent:E,backIcon:D.Z,strings:{back:g.stringsActions.back,home:g.stringsSlugs.homeTitle}},modalBuyComponent:()=>l.createElement(k.Z,{pageContext:o,modalData:m,product:f.data&&f.data.link?f.data.link:"dbd-main-game",content:f.data.modalContent,location:f.data.eventElement,className:x?`modal-preview-pack ${x.gameId}`:""})},l.createElement(A.Z,null,l.createElement(B,{pageContext:i,globalData:g,data:b,images:h,characters:p,maps:d})))}},7883:function(e){e.exports=JSON.parse('{"layout":"constrained","placeholder":{"fallback":"data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wgARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAECAwf/xAAUAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAHMFEG8Qn//xAAXEAEBAQEAAAAAAAAAAAAAAAABEBEC/9oACAEBAAEFAl2HJl//xAAWEQEBAQAAAAAAAAAAAAAAAAABEBH/2gAIAQMBAT8BHJ//xAAUEQEAAAAAAAAAAAAAAAAAAAAQ/9oACAECAQE/AT//xAAWEAADAAAAAAAAAAAAAAAAAAAQICH/2gAIAQEABj8CFT//xAAbEAACAQUAAAAAAAAAAAAAAAAAASEQETFRYf/aAAgBAQABPyHUgvB2FFkTZ//aAAwDAQACAAMAAAAQWA//xAAWEQADAAAAAAAAAAAAAAAAAAABEDH/2gAIAQMBAT8QJC//xAAWEQEBAQAAAAAAAAAAAAAAAAABEBH/2gAIAQIBAT8QTZ//xAAZEAEBAAMBAAAAAAAAAAAAAAABABEhMWH/2gAIAQEAAT8QJAAHkA4JgTlbsy0sLt//2Q=="},"backgroundColor":"transparent","images":{"fallback":{"src":"/static/a4118672c860e90c03bd11b4da4ae5c2/7cd80/section-background.jpg","srcSet":"/static/a4118672c860e90c03bd11b4da4ae5c2/5df24/section-background.jpg 750w,\\n/static/a4118672c860e90c03bd11b4da4ae5c2/4ea4f/section-background.jpg 1080w,\\n/static/a4118672c860e90c03bd11b4da4ae5c2/a4bb0/section-background.jpg 1366w,\\n/static/a4118672c860e90c03bd11b4da4ae5c2/7cd80/section-background.jpg 1920w","sizes":"(min-width: 1920px) 1920px, 100vw"},"sources":[{"srcSet":"/static/a4118672c860e90c03bd11b4da4ae5c2/3ac44/section-background.webp 750w,\\n/static/a4118672c860e90c03bd11b4da4ae5c2/a3fb2/section-background.webp 1080w,\\n/static/a4118672c860e90c03bd11b4da4ae5c2/0b1ee/section-background.webp 1366w,\\n/static/a4118672c860e90c03bd11b4da4ae5c2/e82e6/section-background.webp 1920w","type":"image/webp","sizes":"(min-width: 1920px) 1920px, 100vw"}]},"width":1920,"height":1090}')},5919:function(e){e.exports=JSON.parse('{"layout":"constrained","placeholder":{"fallback":"data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wgARCAALABQDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAMEAQf/xAAUAQEAAAAAAAAAAAAAAAAAAAAB/9oADAMBAAIQAxAAAAHmDZtGgWJ//8QAGBABAQEBAQAAAAAAAAAAAAAAAREAAhD/2gAIAQEAAQUCW47gBPLv/8QAFhEBAQEAAAAAAAAAAAAAAAAAARAR/9oACAEDAQE/ARyf/8QAFhEBAQEAAAAAAAAAAAAAAAAAARAR/9oACAECAQE/AU2f/8QAFhAAAwAAAAAAAAAAAAAAAAAAECAh/9oACAEBAAY/AhU//8QAGRAAAwEBAQAAAAAAAAAAAAAAAAExERBh/9oACAEBAAE/IdnhBpMa+KiY/9oADAMBAAIAAwAAABBkz//EABYRAAMAAAAAAAAAAAAAAAAAAAEQMf/aAAgBAwEBPxA8r//EABYRAAMAAAAAAAAAAAAAAAAAAAEQMf/aAAgBAgEBPxAFL//EABgQAQADAQAAAAAAAAAAAAAAAAEAESEx/9oACAEBAAE/EKDCnCAiDFGTYJdVlsTSUOz/2Q=="},"backgroundColor":"transparent","images":{"fallback":{"src":"/static/39759eb2af398cb0eef44ac8e493c507/d49dc/section-background-halloween.jpg","srcSet":"/static/39759eb2af398cb0eef44ac8e493c507/5df24/section-background-halloween.jpg 750w,\\n/static/39759eb2af398cb0eef44ac8e493c507/1e0e4/section-background-halloween.jpg 1080w,\\n/static/39759eb2af398cb0eef44ac8e493c507/4faf9/section-background-halloween.jpg 1366w,\\n/static/39759eb2af398cb0eef44ac8e493c507/ee637/section-background-halloween.jpg 1920w,\\n/static/39759eb2af398cb0eef44ac8e493c507/d49dc/section-background-halloween.jpg 2597w","sizes":"(min-width: 2597px) 2597px, 100vw"},"sources":[{"srcSet":"/static/39759eb2af398cb0eef44ac8e493c507/3ac44/section-background-halloween.webp 750w,\\n/static/39759eb2af398cb0eef44ac8e493c507/3b191/section-background-halloween.webp 1080w,\\n/static/39759eb2af398cb0eef44ac8e493c507/c3679/section-background-halloween.webp 1366w,\\n/static/39759eb2af398cb0eef44ac8e493c507/2f492/section-background-halloween.webp 1920w,\\n/static/39759eb2af398cb0eef44ac8e493c507/a0c84/section-background-halloween.webp 2597w","type":"image/webp","sizes":"(min-width: 2597px) 2597px, 100vw"}]},"width":2597,"height":1476}')}}]);

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.