PageSourceSearch

https://www.city-park.ro/_next/static/chunks/pages/cinema/[slug]-1624c0f08233d20d.js

js city-park.ro collected 2026-10-08 16:30:02 UTC 9,831 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6930],{25944:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/cinema/[slug]",function(){return c(56881)}])},56881:function(d,b,a){"use strict";a.r(b),a.d(b,{"__N_SSP":function(){return q},"default":function(){return r}});var e=a(85893),f=a(15254),g=a(11163),h=a(67294),c=a(30381),i=a.n(c),j=a(7371),k=a(30719),l=a(48418),m=a(93463);function n(a){var u=a.handleSwipe,r=a.activeDay,s=(0,g.useRouter)(),v=(0,f.$G)().t,t=String(s.locale),b=(0,j.tu)(t),c=null==a?void 0:a.movieData,w=null==c?void 0:c.sessions,d=(0,h.useState)(),x=d[0],y=d[1],n=(0,h.useState)(),z=n[0],A=n[1],o=(0,h.useState)(),B=o[0],C=o[1],p=(0,h.useState)(),q=p[0],D=p[1];return(0,h.useEffect)(function(){var a=(0,l.n)(null==window?void 0:window.innerWidth);D((0,j.CP)(a))},[]),(0,h.useEffect)(function(){var a=i()(r,"dddd, D MMMM").format("YYYY-MM-DD");y(null==w?void 0:w.filter(function(b){return i()(a).isSame(i().parseZone(null==b?void 0:b.showtime).format("YYYY-MM-DD"),"day")}).sort(function(a,b){var c=i().parseZone(a.showtime).format("HH:mm"),d=i().parseZone(b.showtime).format("HH:mm");return c>d?1:-1}))},[r]),(0,e.jsxs)("section",{id:"watch-slider",className:"w-full pt-12",children:[(0,e.jsx)("div",{className:"select-none text-white flex gap-24 text-gray.100 justify-center text-sm p-10",children:q&&(0,e.jsx)(m.Z,{slidesPerView:q,spaceBetween:24,className:"mySwiper",onSwiper:function(a){return A(a)},children:null==b?void 0:b.map(function(a,b){return(0,e.jsx)(k.o5,{className:"".concat(r==a&&"text-white border-b border-white"," p-2 cursor-pointer capitalize hover:text-white transition-all transform ease-in duration-300"),children:function(d){var c,f=d.isActive;return(0,e.jsxs)("div",{children:[f&&u(a),(0,e.jsx)("span",{onClick:function(){z.slideToLoop(b),B.slideToLoop(b)},children:null===(c=null==a?void 0:a.split(","))|| void 0===c?void 0:c.at(0)})]})}},b)})})}),(0,e.jsx)("div",{className:"h-fit w-full",children:(0,e.jsx)(m.Z,{slidesPerView:1,spaceBetween:24,className:"mySwiper",onSwiper:function(a){return C(a)},loop:!0,children:b.map(function(b,a){return(0,e.jsx)(k.o5,{className:" h-36 flex flex-col",children:function(a){var c=a.isActive;return(0,e.jsxs)("div",{className:"w-full h-full opacity-transition",children:[c&&u(b),(0,e.jsx)("h1",{className:"text-white text-center text-xl capitalize",children:r==i()().format("dddd, D MMMM")?v("whatYouCanWatchToday"):r}),(null==x?void 0:x.length)>0?(0,e.jsx)("ul",{className:"flex flex-wrap lg:gap-14 p-4 gap-8 relative justify-center my-12 lg:my-16 opacity-transition",children:null==x?void 0:x.map(function(a,b){var c=i()(a.showtime).isBefore(i()());return a.purchase_ticket_link?(0,e.jsx)("li",{className:"text-white text-sm",children:(0,e.jsx)("a",{href:a.purchase_ticket_link,className:"border p-2 ".concat(c?"pointer-events-none border-white opacity-40":"border-gray.100 hover:border-white"),target:"_blank",rel:"noreferrer",children:i().parseZone(a.showtime).format("HH:mm")})},b):(0,e.jsx)("li",{className:"text-white text-sm",children:(0,e.jsx)("span",{className:"border p-2 ".concat(c?"pointer-events-none border-white opacity-40":"border-gray.100"),children:i().parseZone(a.showtime).format("HH:mm")})},b)})}):(0,e.jsx)("div",{className:"text-white text-center py-24",children:v("noMoviesToWatch")})]})}},a)})})})]})}var o=a(11250),p=a(27044),q=!0,r=function(b){var l,m,q,r,s,t,u,k=(0,f.$G)().t,v=(0,g.useRouter)(),x=null==v?void 0:v.locale;i().locale(x);var a=null==b?void 0:null===(l=b.movieData)|| void 0===l?void 0:l.data,c=null==b?void 0:null===(m=b.staticData)|| void 0===m?void 0:null===(q=m.seoData)|| void 0===q?void 0:q.seo,d=null==b?void 0:null===(r=b.cinemaPageData)|| void 0===r?void 0:null===(s=r.data)|| void 0===s?void 0:s.seo,w=(0,h.useState)(i()().format("dddd, D MMMM")),y=w[0],z=w[1];return(0,e.jsxs)("section",{className:"h-full bg-black pb-16",children:[(0,e.jsx)(o.Z,{title:a.name+" | "+((null==d?void 0:d.metaTitle)||(null==c?void 0:c.metaTitle)),description:(null==d?void 0:d.metaDescription)||(null==c?void 0:c.metaDescription),keywords:(null==d?void 0:d.keywords)||(null==c?void 0:c.keywords)}),(0,e.jsxs)("div",{className:"",children:[(0,e.jsxs)("div",{className:"flex flex-col items-center",children:[(0,e.jsxs)("div",{className:"relative px-4 md:px-12 py-12 flex flex-col md:flex-row w-full justify-center items-center max-w-7xl flex-wrap",children:[(0,e.jsxs)("div",{className:"flex flex-col w-fit lg:py-48 py-12 md:w-[56%] justify-center items-center md:items-start w-full items-left gap-2",children:[(0,e.jsx)("h1",{className:"text-white text-4xl text-center lg:text-left",children:a.name}),(0,e.jsx)("div",{className:"text-gray.100 uppercase w-full gap-2 flex flex-col lg:flex-row items-left text-lg mt-1 text-center",children:(0,e.jsxs)("div",{children:[a.duration_text," ",k("minutes").replace(".","")," \u2022"," ",null==a?void 0:a.genre," \u2022 ",null==a?void 0:a.rating_text]})})]}),(0,e.jsx)("div",{className:"h-[26.6rem] w-[18rem] flex justify-center max-w-full",children:(0,e.jsx)(p.Z,{className:"h-[26.6rem]",url:null==a?void 0:null===(t=a.cover)|| void 0===t?void 0:t.hash,ext:null==a?void 0:null===(u=a.cover)|| void 0===u?void 0:u.ext,priority:!0})})]}),(0,e.jsx)("div",{className:"border-y border-gray.100 h-fit w-full flex justify-center text-gray.100 text-md",children:(0,e.jsxs)("div",{className:"lg:px-24 w-full max-w-6xl flex text-center",children:[(0,e.jsx)("button",{onClick:function(){return(0,j.of)("trailer")},className:"w-full border-r border-gray.100 py-4 inline-block hover:text-white ease-in tranition-all duration-300 cursor-pointer",children:k("watchTrailer")}),(0,e.jsx)("a",{target:"_blank",rel:"noreferrer",href:"".concat((null==a?void 0:a.purchase_ticket_link)?null==a?void 0:a.purchase_ticket_link:""),onClick:function(b){(null==a?void 0:a.purchase_ticket_link)||(b.preventDefault(),(0,j.of)("watch-slider"))},className:"w-full py-4 inline-block hover:text-white ease-in tranition-all duration-300 cursor-pointer",children:k("reserve")})]})}),(0,e.jsxs)("div",{className:"relative px-4 md:px-12 py-12 flex flex-col md:flex-row w-full gap-6 lg:gap-12 justify-center max-w-7xl flex-wrap",children:[(a.cast_text||a.production_team_text)&&(0,e.jsxs)("div",{className:"w-full lg:w-1/3 text-white flex flex-col gap-6 py-4 lg:px-4",children:[(0,e.jsx)("div",{className:"text-ju
1stify",dangerouslySetInnerHTML:{__html:a.cast_text}}),(0,e.jsx)("div",{className:"text-justify",dangerouslySetInnerHTML:{__html:a.production_team_text}})]}),(0,e.jsx)("div",{className:"text-justify text-gray.100 w-full ".concat(a.cast_text||a.production_team_text?"lg:w-1/2":"lg:w-3/5"," py-4"),dangerouslySetInnerHTML:{__html:null==a?void 0:a.description}})]}),(null==a?void 0:a.trailer_link)&&(0,e.jsx)("div",{id:"trailer",className:"max-w-7xl w-full pt-4 h-[24rem] lg:h-[44rem] lg:pt-24 md:w-[80%]",children:(0,e.jsx)("iframe",{title:"trailer",src:"".concat((null==a?void 0:a.trailer_link)?null==a?void 0:a.trailer_link:""),className:"w-full h-full"})})]}),(0,e.jsx)(n,{movieData:a,activeDay:y,handleSwipe:function(a){z(a)}})]}),!!(null==a?void 0:a.purchase_ticket_link)&&(0,e.jsx)("div",{className:"w-full flex justify-center",children:(0,e.jsx)("a",{href:null==a?void 0:a.purchase_ticket_link,target:"_blank",rel:"noreferrer",className:"text-white py-4 px-12 border border-white text-white ease-in duration-200 hover:text-black hover:bg-white",children:k("reserve")})})]})}},11250:function(c,b,a){"use strict";var d=a(85893),e=a(2962),f=a(7371);b.Z=function(a){var b=a.title,c=a.description,g=a.keywords,h=a.frontEndUrl;return b&&(0,d.jsx)(e.PB,{title:(0,f.zb)(b),description:(0,f.zb)(c),openGraph:{title:"".concat((0,f.zb)(b)),description:"".concat((0,f.zb)(c)),url:"".concat((0,f.zb)(h)),type:"website",locale:(0,f.zb)("ro-RO"),images:[]},additionalMetaTags:[{name:"keywords",content:g},]})}},93463:function(c,b,a){"use strict";var d=a(85893),e=a(67294),f=a(30719),g=a(7371);function h(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function i(){return(i=Object.assign||function(d){for(var a=1;a<arguments.length;a++){var b=arguments[a];for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(d[c]=b[c])}return d}).apply(this,arguments)}function j(d){for(var a=1;a<arguments.length;a++){var c=null!=arguments[a]?arguments[a]:{},b=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(b=b.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),b.forEach(function(a){h(d,a,c[a])})}return d}a(21082),a(36797),a(21669),b.Z=function(c){var a=c.children,k=function(a,d){if(null==a)return{};var b,c,e=function(c,f){if(null==c)return{};var a,b,d={},e=Object.keys(c);for(b=0;b<e.length;b++)a=e[b],f.indexOf(a)>=0||(d[a]=c[a]);return d}(a,d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(c=0;c<f.length;c++)b=f[c],!(d.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(a,b)&&(e[b]=a[b])}return e}(c,["children"]),h=(0,e.useState)([]),l=h[0],m=h[1],n=null,b=Array.isArray(a)?a:[a];b=b.map(function(a,c){if(a){var b=a.props.children;return"function"==typeof b&&(b=function(b){var d=i({},b);return a.props.children(j({preload:l.includes(c)},d))}),e.cloneElement(a,{children:b})}});var o=function(){n&&setTimeout(function(){m((0,g.iG)(n))},50)};return(0,e.useEffect)(function(){return function(){window.removeEventListener("load",o)}},[]),(0,d.jsx)(f.tq,j({},k,{onSwiper:function(a){n=a,"complete"===document.readyState?o():window.addEventListener("load",o),(null==k?void 0:k.onSwiper)&&k.onSwiper(a)},onSlideChange:function(a){m((0,g.iG)(a)),(null==k?void 0:k.onSlideChange)&&k.onSlideChange(a)},children:b}))}}},function(a){a.O(0,[2962,9240,9774,2888,179],function(){return a(a.s=25944)}),_N_E=a.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.