(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[169],{30113:function(e,n,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/coming-soon",function(){return l(28)}])},16805:function(e,n,l){"use strict";var s=l(85893);l(67294);var i=l(12519);n.Z=function(e){let{children:n,isModalOpen:l=!1,setModalValue:a=null,setPlayingStatus:c=null}=e,o=()=>{a(!l),c(!1)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"modal ".concat(l?"is-open":""),onClick:o,children:(0,s.jsxs)("div",{className:"modal__inner",children:[(0,s.jsxs)("button",{className:"modal__button",onClick:o,children:[(0,i.Tw)(),(0,s.jsx)("span",{className:"screen-reader-text",children:"Close modal"})]}),(0,s.jsx)("div",{className:"modal__content",children:n})]})})})}},28:function(e,n,l){"use strict";l.r(n);var s=l(85893),i=l(67294),a=l(11163),c=l(41664),o=l.n(c),t=l(22004),r=l(62693),d=l.n(r),m=l(98522),_=l(16805),u=l(11445),g=l(10155),h=l(4533),x=l(12519),j=l(80008),v=l.n(j);l(83496);let N=e=>{let{cinema:n,locale:l}=e,[c,r]=(0,i.useState)([]),[m,j]=(0,i.useState)([]),[N,p]=(0,i.useState)(!0),[f,w]=(0,i.useState)(!1),[y,k]=(0,i.useState)(!1),[S,b]=(0,i.useState)(!1),C=(0,g.sh)(),{logo:E}=n.config2,M=(0,a.useRouter)();(0,i.useEffect)(()=>{!async function(){try{let e=await d().comingSoon();r(e);let n=await d().promos(),l=n.filter(e=>"active"===e.status);j(l),p(!1)}catch(s){}}()},[]);let Z=e=>{let n=(0,g.FT)(e);w(n),k(!y),b(!S)},T=e=>e.imageVerticalUrl?(0,s.jsx)("img",{src:e.imageVerticalUrl,alt:"".concat(null==l?void 0:l.movie_poster_for," ").concat(e.title),loading:"lazy"}):(0,s.jsx)("div",{className:"coming-soon__placeholder",children:(0,s.jsx)("img",{src:E,alt:"",loading:"lazy"})}),D=e=>{if(e)return v()(e,"D MMMM YYYY",null==l?void 0:l.locale).locale(null==l?void 0:l.locale).format(null==l?void 0:l.locale_date_string)};if(C){let P=window.location.search;return n?(window.location.replace("/".concat(n.cinemaUrl,"/coming-soon").concat(P)),null):(window.location.replace("/".concat(P)),null)}return"enabled"===n.config2.hideComingSoonPage?(M.push("/404"),null):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"coming-soon",children:[(0,s.jsx)("div",{className:"container container--small",children:(0,s.jsxs)("div",{className:"coming-soon__header",children:[(0,s.jsx)("h1",{className:"coming-soon__main-heading",children:null==l?void 0:l.coming_soon}),(0,s.jsx)("div",{className:"divider"})]})}),(0,s.jsx)("div",{className:"grid grid__container grid__container--small grid__container--10-slots@medium grid--gap",children:N?(()=>{let e=[];for(let n=0;n<15;n++)e.push((0,s.jsx)("div",{className:"grid__cell--6 grid__cell--3@small grid__cell--2@medium",children:(0,s.jsx)(h.rZ,{})},n));return e})():c.map((e,n)=>{let i=e.layoutData.releaseDateDisplay;return(0,s.jsx)("div",{className:"grid__cell--6 grid__cell--3@small grid__cell--2@medium",children:(0,s.jsxs)("article",{className:"coming-soon",children:[(0,s.jsxs)("div",{className:"coming-soon__media",children:[0!==e.sessionTimes.length&&(0,s.jsx)("span",{className:"coming-soon__on-sale",children:(0,s.jsx)("span",{className:"coming-soon__on-sale-inner",children:null==l?void 0:l.on_sale})}),(0,s.jsxs)("div",{className:"coming-soon__poster",children:[(0,s.jsx)(o(),{className:"coming-soon__link",href:"movie/".concat(e.url),children:T(e)}),e.trailer&&(0,s.jsx)("button",{className:"times-tickets-single-movie__trailer-triggger",onClick:()=>Z(e.trailer),children:(0,s.jsx)(x.IK,{})})]})]}),(0,s.jsx)(o(),{className:"coming-soon__link",href:"movie/".concat(e.url),children:(0,s.jsxs)("div",{className:"coming-soon__content",children:[(0,s.jsx)("h3",{className:"coming-soon__heading",children:e.title}),(0,s.jsx)("p",{className:"coming-soon__date",children:D(i)})]})})]})},n)})}),(0,s.jsx)(u.Z,{cinema:n,locale:l}),m.length>0?null:(0,s.jsx)("div",{className:"container container--small",children:(0,s.jsx)("div",{className:"divider divider--coming-soon"})})]}),(0,s.jsx)(_.Z,{isModalOpen:y,setModalValue:k,setPlayingStatus:b,children:(0,s.jsx)(t.Z,{playing:S,loop:!0,playsinline:!0,controls:!0,rel:0,url:"https://www.youtube.com/watch?v=".concat(f)})})]})};n.default=N,N.getLayout=function(e){return(0,s.jsx)(m.Z,{children:e})}}},function(e){e.O(0,[678,662,279,885,129,671,4,378,406,774,888,179],function(){return e(e.s=30113)}),_N_E=e.O()}]);