PageSourceSearch

https://www.ukcinemaparty.com/js/977.bolt.js?v=6896a467e9bd928393ff

js ukcinemaparty.com collected 2026-10-09 00:02:51 UTC 187,214 bytes, 2 lines download raw bytes

1"use strict";(("undefined"!=typeof self?self:this).webpackChunkthundr=("undefined"!=typeof self?self:this).webpackChunkthundr||[]).push([[977],{9977:(e,t,i)=>{i.r(t),i.d(t,{default:()=>vi});var s={};i.r(s),i.d(s,{getGMaps:()=>Ue,mount:()=>je});var o={};i.r(o),i.d(o,{getMapTiler:()=>hi,mount:()=>di});var a=i(7154),r=i.n(a),n=i(9713),l=i.n(n),h=(i(3948),i(5306),i(1934)),c=i(8993),d=i.n(c),p=i(890),u=i(6917),m=i(6395);const g=(e,t)=>e&&t&&(0,u.vr)(Object.keys(e),Object.keys(t)).every((i=>e[i]===t[i])),_=()=>{var e,t,i,s,o,a;let r=p.Z.get(),n=r.activePage;const l=null===(e=r.appData)||void 0===e||null===(t=e.pages)||void 0===t||null===(i=t[n])||void 0===i?void 0:i.type,h="showtimes"===l||"filmPage"===l?n:"boltShowtimes";let c=(null===(s=r.appData)||void 0===s||null===(o=s.pages)||void 0===o||null===(a=o[h])||void 0===a?void 0:a.data)||{};var d,u,m,g;"filmPage"===l&&(c=(null===(d=Object.values(null===(u=r.appData)||void 0===u||null===(m=u.pages)||void 0===m||null===(g=m[n])||void 0===g?void 0:g.data).find((e=>"showtimes"===e.type)))||void 0===d?void 0:d.data)||{});return c};function v(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}p.Z.on("USER_LOCATION_UPDATED",(function(){let e=((0,u.RK)(p.Z.get(),"client.geo.countryCode")||"").toUpperCase(),t=(0,m.l)();t&&!t.includes(e)||(p.Z.get().showtimes.set({loading:!0}),_().useV2?p.Z.emit("SHOWTIMES_REFRESH"):p.Z.emit("FILTERS_REFRESH",{forceShowtimesRefresh:!0}))})),p.Z.on("SHOWTIMES_REFRESH",(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};await m.vO(e),e.onLoad?e.onLoad():(p.Z.get().showtimes.set({loading:!1}),_().useV2||p.Z.emit("GET_NEARBY_SHOWTIMES_LOCATIONS"))})),p.Z.on("UPDATE_SHOWTIMES_ACTIVE_TAB",((e,t)=>{p.Z.get().showtimes.set({groupBookingsTabActive:"Group Bookings"===e}),t&&p.Z.emit("SHOWTIMES_REFRESH")})),p.Z.on("GET_NEARBY_CINEMAS_FROM_CHAIN",(async e=>{const t={theater_id:e.id,lat:e.lat,lon:e.lon};let i;p.Z.get().showtimes.nearby.chain.set({loading:!0,error:!1});try{i=await m.hT(t)}catch(e){let t=e&&e.message||e;return void p.Z.get().showtimes.nearby.chain.set({error:t,loading:!1})}let s=i.response,o=(0,u.RK)(i.response,"meta.more",!1);s.forEach((t=>{t.chain=e.chain,m.iA(t)})),p.Z.get().showtimes.nearby.chain.set({data:s,loading:!1,more:o})})),p.Z.on("GET_NEARBY_SHOWTIMES_LOCATIONS",(async()=>{let e;p.Z.get().showtimes.nearby.locations.set({loading:!0,error:!1});try{e=await m.UN()}catch(e){let t=e&&e.message||e;return void p.Z.get().showtimes.nearby.locations.set({error:t,loading:!1})}let t=e.response,i=(0,u.RK)(e.response,"meta.more",!1);p.Z.get().showtimes.nearby.locations.set({data:t,loading:!1,more:i})})),p.Z.on("SHOWTIMES_SHOW_MORE",(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p.Z.get().showtimes.set({loadingMore:!0,error:!1}),await m.JJ(e),p.Z.get().showtimes.set({loadingMore:!1})})),p.Z.on("FILTERS_REFRESH",(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=p.Z.get().showtimes.filters;t.set({loading:!0}).now();let i=await m.xp(e);"function"==typeof e.callback?e.callback():i||e.forceShowtimesRefresh?p.Z.emit("SHOWTIMES_REFRESH",e):e.onNoSelectedFiltersChange&&e.onNoSelectedFiltersChange()})),p.Z.on("GET_THEATERS_AVAILABLE_DATES",(async e=>{await m.U4({api:{theaters_included:e}})})),p.Z.on("FILTERS_RESET",(()=>{let e=p.Z.get().showtimes.filters;if(!e||!e.selected)return;let t=e.selected,i=e.available||{};Object.keys(t).forEach((s=>{let o=[];if("date"===s){let t=(new Date).toISOString().slice(0,10);if(i.date&&i.date.length){let i=e.available.date;i=i.filter((e=>e>=t)).sort(),o.push(i[0])}else o.push(t)}t=t.set(s,o)}))})),p.Z.on("FILTER_RESET_SINGLE",(e=>{let t=p.Z.get().showtimes.filters;t&&t.selected&&e&&t.selected.set(e,[])})),p.Z.on("FILTER_SET",((e,t,i)=>{let s=p.Z.get().showtimes.filters;if(null==s||!s.selected)return;let o=Array.isArray(t)?t:[t];if(i){let t=s.selected[e]||[];o.length===t.length&&(0,u.cO)([...o].sort(),[...t].sort())&&(o=[])}s.selected.set(e,o),"date"===e&&p.Z.get().showtimes.filters.set("userSelectedDate",!0),p.Z.emit("FILTER_UPDATED",e,o)})),p.Z.on("FILTER_RESET",(e=>
1p.Z.emit("FILTER_SET",e,[]))),p.Z.on("REVERT_FILTERS",(e=>{if(!e)return;const t=Object.assign({},{date:[],time:[],format:[]},e);p.Z.get().showtimes.filters.selected.set(t)})),p.Z.on("FILTER_TOGGLE",((e,t,i)=>{let s=p.Z.get().showtimes.filters;if(!s||!s.selected)return;let o=s.selected[e]?s.selected[e].toJS():[];if(Array.isArray(t)||(t=[t]),null==i){var a;let r=m.TP(o,null===(a=s.available)||void 0===a?void 0:a[e]);i="combinedLanguage"===e?!t.some((e=>r.find((t=>g(t,e))))):!t.some((e=>r.includes(e)))}o="combinedLanguage"===e?o.filter((e=>!t.find((t=>g(t,e))))):o.filter((e=>!t.includes(e))),i?o.push(...t):o=o.filter((i=>{if("combinedLanguage"===e)return!t.find((e=>g(e,i)));if(!i.includes("*"))return!0;let s=new RegExp("^"+i.split("*").map(v).join("(.*)")+"$","i");return!t.some((e=>s.test(e)))})),s.selected.set(e,o),p.Z.emit("FILTER_UPDATED",e,o)})),p.Z.on("FILTER_ADD",((e,t)=>p.Z.emit("FILTER_TOGGLE",e,t,!0))),p.Z.on("FILTER_REMOVE",((e,t)=>p.Z.emit("FILTER_TOGGLE",e,t,!1))),p.Z.on("OPEN_PROVIDER_INTERSTITIAL",(e=>{p.Z.get().showtimes.set({providerInterstitialOpen:!0,selectedScreening:e.screening,selectedTheater:e.theater}),p.Z.emit("TOGGLE_INTERSTITIAL_OPEN",!0)})),p.Z.on("CLOSE_MOVIES_DROPDOWN",(e=>{p.Z.get().showtimes.set({movieFilterClosed:e})})),p.Z.on("CLOSE_PROVIDER_INTERSTITIAL",(()=>{p.Z.get().showtimes.set({providerInterstitialOpen:!1,selectedScreening:{},selectedTheater:{}}),p.Z.emit("TOGGLE_INTERSTITIAL_OPEN",!1)})),p.Z.on("SET_SHOWTIMES_BTN_ACTIONS",(e=>{e&&e.action&&p.Z.get().showtimes.actions.push(e)})),p.Z.on("SET_FILTERS_SELECTED_MOVIE_ID",(e=>{p.Z.get().showtimes.filters.selected.set({movie:e||[]})})),p.Z.on("POP_SHOWTIMES_BTN_ACTION",(()=>{var e,t;null===(e=p.Z.get().showtimes)||void 0===e||null===(t=e.actions)||void 0===t||t.pop()})),p.Z.on("REMOVE_SHOWTIMES_BTN_ACTIONS",(e=>{let t=p.Z.get().showtimes,i=t.actions.filter((t=>t.tag!==e));t.set({actions:i})})),p.Z.on("IN_CINEMA_DETAIL_VIEW",(e=>{p.Z.get().showtimes.set({inCinemaDetailView:null==e?void 0:e.id})})),p.Z.on("EXIT_CINEMA_DETAIL_VIEW",(()=>{p.Z.get().showtimes.set({inCinemaDetailView:!1})})),p.Z.on("SHOWTIMES_MESSAGE_PLAYLIST_LOADED",(e=>{p.Z.get().showtimes.set({videos:e,videosLoading:!1,activeVideo:e[0]})})),p.Z.on("SHOWTIMES_MESSAGE_VIDEOS_LOADING",(e=>{p.Z.get().showtimes.set({videosLoading:e})})),p.Z.on("SHOWTIMES_MESSAGE_UPDATE_VIDEO",(e=>{p.Z.get().showtimes.set({activeVideo:e})}));var y=i(7159),b=i(8389),f="screening__container__XqbWb",S="screening__noLink__PDdo1",w="screening__link__zaClI button__container__Vgkga button__time__Ndxk6",T="screening__previewPanel__sTZkZ";class C extends h.wA{constructor(e){super(e),this.openInterstitial=this.openInterstitial.bind(this),this.linkClick=this.linkClick.bind(this)}getLinks(){let e=this.props,t=(0,u.RK)(e,"showtimesAppData.cta.comingSoonShowDeeplink",!1),i=e.screening,s=(e.theater.country||"").toLowerCase(),o=(0,u.RK)(e,"showtimesAppData.providers",{});if(o.disableLinksForCtas){let e=(0,m.Ox)(o,"disableLinksForCtas"),t=e[s]||e.base||null;if(null!==t&&("string"==typeof t&&(t=t.split(",")),t=t.map((e=>+e.trim())).filter((e=>0!==e)),-1!==t.indexOf(i.cta)))return[]}if(2===i.cta&&!t){let t=[];return e.theater.url&&t.push({provider:"direct",link:e.theater.url}),t}let a=i&&i.link;return Object.keys(a).map((e=>({provider:e,link:a[e]}))).filter((e=>e.link))}openInterstitial(){const{screening:e,theater:t,mode:i,isPreviewPanelScreening:s}=this.props;if(s)return this.trackTimeSelection(),p.Z.emit("OPEN_PREVIEW_PANEL_PROVIDER_INTERSTITIAL",{screening:e,theater:t});this.trackTimeSelection(),p.Z.emit("OPEN_PROVIDER_INTERSTITIAL",{screening:e,theater:t,mode:i})}linkClick(e){this.trackTimeSelection();let t=this.props;t.trackConversion&&t.trackConversion(t.theater,t.screening,e.currentTarget.getAttribute("data-provider"),t.mode,e.currentTarget.href)}trackTimeSelection(){p.Z.emit("SELECT_TIME",{screening:this.props.screening,theater:this.props.theater,mode:this.props.mode,ticketType:this.props.ticketType},this.props.isPreviewPanelScreening?"previewpanel":"tickets")}getScreeningCta(){return this.props.screening.cta}render(e){let t=e.screening.time;const{isPreviewPanelScreening:i}=e,s=this.getScreeningCta(),o=p.Z.get(),a=(0,u.RK)(o,"appData.styling.fontVariables"),r=(0,u.RK)(o,"appData.copy.baseCopy"),n=(0,u.RK)(o,"appData.copy.accessibilityCopy",{}),l=(0,u.RK)(e,"showtimesAppData.cta");let c;"12"===e.showtimesAppData.clockFormat&&(t=(0,m.wE)(t)),c=n.$SCREENING_BTN_ARIA.replace("<time>",t),1!==s&&l&&l[s]&&(t=r[l[s]]||l[s],c=t);let d=this.getLinks(),g=(0,u.RK)(e,"showtimesAppData.providers.priorityProvi
1der","");"focusfeatures"===(0,u.RK)(o,"appData.meta.studio.slug","")&&(g="fandango");let _=d.find((e=>e.provider===g));return 1===d.length?(0,h.h)(b.Z,{class:(0,u.WM)(f,w,a.showtimesTheaterShowtimes,i&&T),href:d[0].link,target:"_blank",rel:"noopener noreferrer",ariaLabel:c,"data-provider":d[0].provider,onClick:this.linkClick},t):d.length&&g&&_?(0,h.h)(b.Z,{class:(0,u.WM)(f,w,a.showtimesTheaterShowtimes),href:_.link,target:"_blank",rel:"noopener noreferrer",ariaLabel:c,"data-provider":_.provider,onClick:this.linkClick},t):(0,h.h)(y.Z,{type:"time",class:(0,u.WM)(f,a.showtimesTheaterShowtimes,!d.length&&S),trigger:!!d.length&&this.openInterstitial,disabled:!d.length,ariaLabel:c},t)}}function k(e,t,i,s){const o=(s||"").replace("<lang>",i[t]);return e+=e.length?" (".concat(o,")"):o}function E(e){var t,i,s,o,a,r,n;let l="";const h=(null===(t=p.Z.get())||void 0===t?void 0:t.appData)||{},c=(null===(i=h.copy)||void 0===i?void 0:i.baseCopy)||{},d=c.languages||{},u=null===(s=h.meta)||void 0===s||null===(o=s.region)||void 0===o?void 0:o.language,m=(null===(a=h.pages)||void 0===a||null===(r=a.boltShowtimes)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.alwaysShowOriginalLanguage)||!1||e.originalLanguage!==u;if(e.originalLanguage&&m){l+=(c.$ORIGINAL_LANGUAGE||"").replace("<lang>",d[e.originalLanguage])}return e.dubbing&&(l=k(l,e.dubbing,d,c.$LANGUAGE_DUB)),e.subtitles&&(l=k(l,e.subtitles,d,c.$LANGUAGE_SUB)),e.overVoice&&(l=k(l,e.overVoice,d,c.$LANGUAGE_OV)),l}var I=i(8551),D=i.n(I);var M=function(){if("undefined"==typeof window||!window.requestAnimationFrame){let e=()=>{};return()=>({start:e,stop:e,remove:e})}let e,t=[];function i(){for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.active)continue;let s=i.props,o=i.values;for(let e=s.length;e--;){let t=s[e],a=i.obj[t],r=o[t];r!==a&&(i.cb(t,r,a),o[t]=a)}}e&&(e=requestAnimationFrame(i))}return function(s,o,a,r){let n={active:!r,obj:s,props:o=Array.isArray(o)?o.slice():[o],values:{},cb:a};return t.push(n),e||(e=requestAnimationFrame(i)),{start:()=>n.active=!0,stop:()=>n.active=!1,remove:()=>{let i=t.indexOf(n);-1!==i&&(t.splice(i,1),t.length||(cancelAnimationFrame(e),e=null))}}}}(),R=i(6181),A={scroller:"scrollBox__scroller__TDIDo",mobile:"scrollBox__mobile__SmKrg",dirX:"scrollBox__dirX__YP0BF",dirY:"scrollBox__dirY__Xj8Lu",hideBar:"scrollBox__hideBar__Aqd9y"};function L(){L=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(i){t.forEach((function(t){t.kind===i&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var i=e.prototype;["method","field"].forEach((function(s){t.forEach((function(t){var o=t.placement;if(t.kind===s&&("static"===o||"prototype"===o)){var a="static"===o?e:i;this.defineClassElement(a,t)}}),this)}),this)},defineClassElement:function(e,t){var i=t.descriptor;if("field"===t.kind){var s=t.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:void 0===s?void 0:s.call(e)}}Object.defineProperty(e,t.key,i)},decorateClass:function(e,t){var i=[],s=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!B(e))return i.push(e);var t=this.decorateElement(e,o);i.push(t.element),i.push.apply(i,t.extras),s.push.apply(s,t.finishers)}),this),!t)return{elements:i,finishers:s};var a=this.decorateConstructor(i,t);return s.push.apply(s,a.finishers),a.finishers=s,a},addElementPlacement:function(e,t,i){var s=t[e.placement];if(!i&&-1!==s.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");s.push(e.key)},decorateElement:function(e,t){for(var i=[],s=[],o=e.decorators,a=o.length-1;a>=0;a--){var r=t[e.placement];r.splice(r.indexOf(e.key),1);var n=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[a])(n)||n);e=l.element,this.addElementPlacement(e,t),l.finisher&&s.push(l.finisher);var h=l.extras;if(h){for(var c=0;c<h.length;c++)this.addElementPlacement(h[c],t);i.push.apply(i,h)}}return{element:e,finishers:s,extras:i}},decorateConstructor:function(e,t){for(var i=[],s=t.length-1;s>=0;s--){var o=this.fromClassDescriptor(e),a=this.toClassDescriptor((0,t[s])(o)||o);if(void 0!==a.finisher&&i.push(a.finisher),void 0!==a.elements){e=a.elements;for(var r=0;r<e.length-1;r++)for(var n=r+1;n<e.length;n++)if(e[r].key===e[n].key&&e[r].placement===e[n].placement)throw new TypeError("Duplicated element ("+e[r].key+")")}}return{elements:e,finishers:i}},fromElementDescriptor:function(e){var t={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(t.initializer=e.initializer),t},toElementDescriptors:function(e){if(void 0!==e)return D()(e).map((function(e){var t=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),t}),this)},toElementDescriptor:function(e){var t=String(e.kind);if("method"!==t&&"field"!==t)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "f
1ield", but a decorator created an element descriptor with .kind "'+t+'"');var i=Z(e.key),s=String(e.placement);if("static"!==s&&"prototype"!==s&&"own"!==s)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+s+'"');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var a={kind:t,key:i,placement:s,descriptor:Object.assign({},o)};return"field"!==t?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),a.initializer=e.initializer),a},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:F(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var t={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(t,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),t},toClassDescriptor:function(e){var t=String(e.kind);if("class"!==t)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+t+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var i=F(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:i}},runClassFinishers:function(e,t){for(var i=0;i<t.length;i++){var s=(0,t[i])(e);if(void 0!==s){if("function"!=typeof s)throw new TypeError("Finishers must return a constructor.");e=s}}return e},disallowProperty:function(e,t,i){if(void 0!==e[t])throw new TypeError(i+" can't have a ."+t+" property.")}};return e}function O(e){var t,i=Z(e.key);"method"===e.kind?t={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?t={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?t={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(t={configurable:!0,writable:!0,enumerable:!0});var s={kind:"field"===e.kind?"field":"method",key:i,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:t};return e.decorators&&(s.decorators=e.decorators),"field"===e.kind&&(s.initializer=e.value),s}function N(e,t){void 0!==e.descriptor.get?t.descriptor.get=e.descriptor.get:t.descriptor.set=e.descriptor.set}function B(e){return e.decorators&&e.decorators.length}function x(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function F(e,t){var i=e[t];if(void 0!==i&&"function"!=typeof i)throw new TypeError("Expected '"+t+"' to be a function");return i}function Z(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function P(e){return e.touches&&e.touches.length&&(e=e.touches[0]),void 0===e.clientX?[void 0,void 0]:[e.clientX,e.clientY]}let H=function(e,t,i,s){var o=L();if(s)for(var a=0;a<s.length;a++)o=s[a](o);var r=t((function(e){o.initializeInstanceElements(e,n.elements)}),i),n=o.decorateClass(function(e){for(var t=[],i=function(e){return"method"===e.kind&&e.key===a.key&&e.placement===a.placement},s=0;s<e.length;s++){var o,a=e[s];if("method"===a.kind&&(o=t.find(i)))if(x(a.descriptor)||x(o.descriptor)){if(B(a)||B(o))throw new ReferenceError("Duplicated methods ("+a.key+") can't be decorated.");o.descriptor=a.descriptor}else{if(B(a)){if(B(o))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+a.key+").");o.decorators=a.decorators}N(a,o)}else t.push(a)}return t}(r.d.map(O)),e);return o.initializeClassElements(r.F,n.elements),o.runClassFinishers(r.F,n.finishers)}([R.Z],(function(e,t){return{F:class extends t{constructor(t){super(),e(this),this.data={minDist:+t.slop||3,trigger:null==t.trigger?20:+t.trigger,grabbed:!1,init:0,moved:!1,speed:0},this.grab=this.grab.bind(this),this.move=this.move.bind(this),this.release=this.release.bind(this),this.click=this.click.bind(this),this.checkScrollPos=this.checkScrollPos.bind(this),this.momentum=this.momentum.bind(this)}},d:[{kind:"method",key:"componentDidMount",value:function(){this.registerHandlers()}},{kind:"method",key:"componentDidUpdate",value:function(){this.registerHandlers()}},{kind:"method",key:"componentWillUnmount",value:function(){this.clearHandlers()}},{kind:"method",key:"getDirection",value:function(){return(this.props.direction||"X").toUpperCase()}},{kind:"method",key:"updateSpeed",value:function(e){const t=this.data;t.lastEvent=Date.now(),t.speed=t.lastPos-e,t.lastPos=e}},{kind:"get",key:"scroll",value:function(){return this.base["Y"===this.getDirection()?"scrollTop":"scrollLeft"]}},{kind:"set",key:"scroll",value:function(e){this.base["Y"===this.getDirection()?"scrollTop":"scrollLeft"]=e}},{kind:"method",key:"momentum",value:function(){const e=this.data;if(cancelAnimationFrame(null==e?void 0:e.timer),!this.base||!e)return;e.speed*=.9,e.lastPos+=e.speed;const t="Y"===this.getDirection();this.base[t?"scrollTop":"scrollLeft"]=e.lastPos,Math.abs(e.speed)>.1&&(e.timer=requestAnimationFrame(this.momentum))}},{kind:"method",key:"stopMomentum",value:function(){const e=this.data||{};cancelAnimationFrame(e.timer)}},{kind:"method",key:"grab",value:function(e){if(void 0!==e.button&&0!==e.button)return;const t="Y"===this.getDirection();if(!this.props.alwaysHandleDrag&&this.base[t?"scrollHeight":"scrollWidth"]<=this.base[t?"clientHeight":"clientWidth"])return;const i=this.data;this.stopMomentum(),e.touches||e.preventDefault(),i.lastPos=i.grabbed=P(e)[t?1:0],i.init=this.base[t?"scrollTop":"scrollLeft"],this.updateSpeed(i.grabbed),i.moved=!1}},{kind:"method",key:"move",value:function(e){const t=this.data;if(!1===t.grabbed||!e.cancelable)return;const i="Y"===this.getDirection(),s=P(e)[i?1:0],o=t.grabbed-s;!t.moved&&Math.abs(o)<t.minDist||(t.moved=!0,e.preventDefault(),this.base[i?"scrollTop":"scrollLeft"]=t.init+o,this.updateSpeed(s))}},{kind:"method",key:"release",value:function(){const e=this.data;if(!1===e.grabbed)return;if(e.grabbed=!1,!e.moved)return;e.speed*=Math.max(0,1-(Date.now()-e.lastEvent)/200);const t="Y"===this.getDirection();e.lastPos=this.base[t?"scrollTop":"scrollLeft"],e.timer=requestAnimationFrame((()=>
1this.momentum()))}},{kind:"method",key:"click",value:function(e){this.data.moved&&(e.preventDefault(),e.stopPropagation())}},{kind:"method",key:"addForce",value:function(e){const t=this.data;if(!this.base||!t)return;cancelAnimationFrame(t.timer);const i="Y"===this.getDirection();t.lastPos=this.base[i?"scrollTop":"scrollLeft"],t.speed+=e,t.timer=requestAnimationFrame((()=>this.momentum()))}},{kind:"method",key:"checkScrollPos",value:function(){const e="Y"===this.getDirection(),t=this.props,i=t[e?"scrollableTopClass":"scrollableLeftClass"],s=t[e?"scrollableBottomClass":"scrollableRightClass"];if(!i&&!s)return;const o=this.base;let a=o[e?"scrollTop":"scrollLeft"];!e&&this.props.isRTL&&(a=Math.abs(a));const r=o[e?"scrollHeight":"scrollWidth"]-o[e?"clientHeight":"clientWidth"]-a,n=a>=this.data.trigger,l=r>=this.data.trigger;i&&n!==(0,u.pv)(o,i)&&(n?u.cn:u.IV)(o,i),s&&l!==(0,u.pv)(o,s)&&(l?u.cn:u.IV)(o,s)}},{kind:"method",key:"clearHandlers",value:function(){this.handlersRegistered&&(this.handlersRegistered=!1,document.removeEventListener("mousemove",this.move),document.removeEventListener("mouseup",this.release),this.scrollWatch&&(this.scrollWatch.remove(),this.scrollWatch=null),this.base.removeEventListener("scroll",this.checkScrollPos))}},{kind:"method",key:"registerHandlers",value:function(){if(!this.handlersRegistered)if(this.handlersRegistered=!0,document.addEventListener("mousemove",this.move),document.addEventListener("mouseup",this.release),this.props.useSimpleEventListeners)this.base.addEventListener("scroll",this.checkScrollPos);else{let e=["scrollLeft","scrollWidth"];"Y"===this.getDirection()&&(e=["scrollTop","scrollHeight"]),this.scrollWatch=M(this.base,e,this.checkScrollPos)}}},{kind:"method",key:"render",value:function(e){let{children:t,direction:i,scrollableLeftClass:s,scrollableRightClass:o,scrollableTopClass:a,scrollableBottomClass:n,hideScrollerBar:l,device:c,trigger:d,slop:m,alwaysHandleDrag:g,..._}=e;c||(c=(0,u.RK)(p.Z.get(),"client.device")||"desktop");const v="desktop"!==c;return(0,h.h)("div",r()({},_,{class:(0,u.WM)(A.scroller,A["dir"+this.getDirection()],v&&A.mobile,_.class,l&&A.hideBar),onMouseDown:this.grab,onClickCapture:this.click,ref:e=>this.$scroller=e}),t)}}]}}),h.wA);var $=i(1921),W=i(5058),K=i(9791),V={container:"dateScroller__container__cnZcW",sticked:"dateScroller__sticked__RarvZ",dates:"dateScroller__dates__kNF3O",date:"dateScroller__date__eetXS",filler:"dateScroller__filler__cGaeq",content:"dateScroller__content__MSdG8",resetButton:"dateScroller__resetButton__PKExf",buttonCopy:"dateScroller__buttonCopy__u_Z2A",rtlButtonCopy:"dateScroller__rtlButtonCopy__BAzn4",more:"dateScroller__more__OOF6N",left:"dateScroller__left__Nkcm6",right:"dateScroller__right__MYFus",hasMoreLeft:"dateScroller__hasMoreLeft__B8t0H",scrollButtonContainer:"dateScroller__scrollButtonContainer__RlW5i",hasMoreRight:"dateScroller__hasMoreRight__sZGuW",showScrollBtnsOnMobile:"dateScroller__showScrollBtnsOnMobile__QkTnm",headerContainer:"dateScroller__headerContainer__opwAh",title:"dateScroller__title__e6tka",active:"dateScroller__active__LzhMB",dateButton:"dateScroller__dateButton__LFIjp",selected:"dateScroller__selected__F75DX",month:"dateScroller__month__rg3_8",dom:"dateScroller__dom__CGVT8",day:"dateScroller__day__Y_jSt",otherFilters:"dateScroller__otherFilters__XmfP2",empty:"dateScroller__empty__jCggF large",options:"dateScroller__options__kPMFM",separator:"dateScroller__separator__F3o1v",selectedTheaterView:"dateScroller__selectedTheaterView__EgqZn",buttonsWrapper:"dateScroller__buttonsWrapper__rHLFk",alternate:"dateScroller__alternate__ksQNJ"};class G extends h.wA{constructor(e){super(e),this.dateClickHandlers={},this.datesKeyDown=this.datesKeyDown.bind(this),this.scrollRight=this.scrollRight.bind(this),this.scrollLeft=this.scrollLeft.bind(this),this.today=(0,W.Z)(new Date,"yyyy-MM-dd"),this.scrollSelectedDateToView=this.scrollSelectedDateToView.bind(this),this.textDirection=(0,u.RK)(e,"appData.styling.fontVariables.textDirection",""),this.$dateElems=[]}componentDidMount(){this.setDatesInScroller(this.props.displayedDates)}componentDidUpdate(e,t){var i;const{selected:s,active:o,available:a,loading:r}=this.props.displayedDates,n=e.displayedDates,l=!(0,u.cO)(a,n.available)||!(0,u.cO)(s,n.selected)||o&&!(0,u.cO)(o,n.active)||r!==n.loading&&(!1===n.loading||void 0),h=this.props.showtimesMode!==e.showtimesMode||this.props.mapMode!==e.mapMode,c="collapsed"===this.props.mapMode&&"map"===this.props.showtimesMode,d="list"===this.props.showtimesMode&&"map"===e.showtimesMode;this.props.theaterDateScroller&&"list"!==this.props.showtimesMode&&this.scrollSelectedDateToView(),(h||l)&&(this.setDatesInScroller(this.props.displayedDates),this.props.theaterDateScroller||!c&&!d||this.scrollSelectedDateToView()),this.state.selectedDate!==t.selectedDate&&(this.updateSelectedDateElement(),this.mayNeedScroll&&(this.scrollSelectedDateToView(),this.mayNeedScroll=!1)),a!==(null===(i=e.displayedDates)||void 0===i?void 0:i.available)&&(this.mayNeedScroll=!0,this.updateSelectedDateElement(),this.scrollSelectedDateToView())}setDatesInScroller(e){let t=e.available.filter((e=>e>=this.today)).sort();t=e.active?t.map((t=>[t,-1!==e.selected.indexOf(t)||-1!==e.active.indexOf(t)])):t.map((e=>[e,!0])),this.props.hideInactive&&(t=t.filter((e=>{let[t,i]=e;return i}))),this.setState({datesInScroller:t,loading:e.loading,selectedDate:e.selected})}updateSelectedDateElement(){const{selectedDate:e}=this.state;
1this.$selectedDate=document.querySelector("#date-".concat(e))}scrollSelectedDateToView(){this.updateSelectedDateElement();const{$dates:e}=this,{$scroller:t}=e||{};if(t&&this.$selectedDate){const e=this.$selectedDate.getBoundingClientRect(),i=t.getBoundingClientRect();(e.x<i.x||e.x>i.x+i.width)&&(0,$.GZ)(t,this.$selectedDate,0,{direction:"hor",offset:8})}}focus(){this.$dates&&this.$dates.base&&this.$dates.base.focus()}dateClicked(e){if(p.Z.emit("FILTER_SET","date",e),setTimeout((()=>{this.props.onChange(e)}),0),this.props.theaterDateScroller)return;this.state.datesInScroller.find((t=>{let[i,s]=t;return i===e&&!s}))&&(0,$.GZ)(this.props.scrollElem||{})}getDateClickHandler(e){return this.dateClickHandlers[e]||(this.dateClickHandlers[e]=this.dateClicked.bind(this,e)),this.dateClickHandlers[e]}datesKeyDown(e){let t=0;if("ArrowRight"===e.key&&(t=1),"ArrowLeft"===e.key&&(t=-1),t){e.preventDefault();let i=this.state.datesInScroller,s=this.state.datesInScroller.indexOf(this.state.selectedDate[0]),o=s+t;-1!==s&&o>=0&&o<i.length&&p.Z.emit("FILTER_SET","date",i[o])}}isDefault(){var e,t;let i=this.props.filters,s=i.selected;if(!s)return!0;let o=null===(e=i.available)||void 0===e||null===(t=e.date)||void 0===t?void 0:t[0];return Object.keys(s).every((e=>{let t=s[e];return!t||!t.length||"date"===e&&1===t.length&&(t[0]===o||t[0]===this.today)}))}getDisplayedFilters(e){return Object.keys(e).filter((t=>"date"!==t&&"exhibitor"!==t&&e[t]&&e[t].length))}renderDates(){const{selectedTheater:e,showtimesMode:t}=this.props;let i=(0,u.RK)(this.props,"appData.copy.baseCopy.$DATETIME_LOCALE");const s=(0,u.RK)(this.props,"appData.copy.accessibilityCopy",{}),o=(0,u.RK)(this.props,"appData.styling.fontVariables"),a=(0,u.RK)(p.Z.get(),"showtimes.theatersDates",{}),r=this.state.datesInScroller||[],n=this.state.selectedDate||[];return r.filter((i=>{let[s,o]=i;return!(!(0,u.Qr)(a)&&"list"!==t)||(!!a[e.id].includes(s)||void 0)})).map(((e,t)=>{let[a,r]=e,l=a.split("-"),c=new Date(+l[0],l[1]-1,+l[2]),d=n.includes(a);return(0,h.h)("div",{key:a,id:"date-".concat(a),className:(0,u.WM)(V.date,r&&V.active),ref:e=>this.$dateElems[t]=e},(0,h.h)(y.Z,{disabled:d,class:(0,u.WM)({s:V,dateButton:!0,selected:d,active:r}),trigger:this.getDateClickHandler(a),tabIndex:"-1",ariaLabel:s.$DATE_SELECTION_ARIA.replace("<option>",a)},(0,h.h)("span",{class:(0,u.WM)(V.month,d&&V.selected,o.filterMenuMonth)},(0,W.Z)(c,"MMM",i)),(0,h.h)("span",{class:(0,u.WM)(V.dom,d&&V.selected,o.filterMenuDate)},(0,W.Z)(c,"dd",i)),(0,h.h)("span",{class:(0,u.WM)(V.day,d&&V.selected,o.filterMenuDayActive)},(0,W.Z)(c,"ddd",i))))}))}scrollRight(){const{$dates:e}=this,{$scroller:t}=e||{};if(t){const e=t.scrollLeft+80;(0,$.GZ)(t,e,300,{direction:"hor"})}}scrollLeft(){const{$dates:e}=this,{$scroller:t}=e||{};if(t){const e=t.scrollLeft-80;(0,$.GZ)(t,e,300,{direction:"hor"})}}render(e){const t=(0,u.RK)(e,"appData.copy.accessibilityCopy",{}),i=(0,u.RK)(e,"appData.styling.fontVariables"),s=(0,u.RK)(e.showtimesAppData,"showScrollBtnsOnMobile",!1),o="rtl"===i.textDirection;return(0,h.h)("div",{ref:e=>this.$container=e,class:(0,u.WM)(V.container,(this.props.isSticked||"map"===this.props.showtimesMode)&&V.sticked,this.props.theaterDateScroller&&V.selectedTheaterView,this.props.class)},(0,h.h)("div",{class:V.content},(0,h.h)(H,{class:(0,u.WM)(V.dates,s&&V.showScrollBtnsOnMobile),device:"mobile",tabIndex:"0",onKeyDown:this.datesKeyDown,ref:e=>this.$dates=e,hideScrollerBar:!0,scrollableLeftClass:o?V.hasMoreRight:V.hasMoreLeft,scrollableRightClass:o?V.hasMoreLeft:V.hasMoreRight,isRTL:o},this.renderDates(),(0,h.h)("div",{className:V.filler})),(0,h.h)("div",{class:(0,u.WM)(V.scrollButtonContainer,s&&V.showScrollBtnsOnMobile)},(0,h.h)("div",{class:(0,u.WM)(V.more,V.left),onClick:this.scrollLeft,role:"button",ariaLabel:t.$LEFT_ARROW_DATES_ARIA},(0,h.h)(K.Z,{ariaLabel:t.$LEFT_ARROW_DATES_ARIA})),(0,h.h)("div",{className:V.separator}),(0,h.h)("div",{class:(0,u.WM)(V.more,V.right),onClick:this.scrollRight,role:"button",ariaLabel:t.$RIGHT_ARROW_DATES_ARIA},(0,h.h)(K.Z,{ariaLabel:t.$RIGHT_ARROW_DATES_ARIA})))))}}var q=i(4328),z={tooltip:"tooltip__tooltip__k8dOH",trigger:"tooltip__trigger__YEgIl",bubble:"tooltip__bubble__hi3CI",message:"tooltip__message__vrDoi",title:"tooltip__title__Gugm_",content:"tooltip__content__Mpka1",mobileTooltip:"tooltip__mobileTooltip__ymm1l",topRight:"tooltip__topRight__bhRTj",top:"tooltip__top__v0mBe",topLeft:"tooltip__topLeft__JvP04",bottom:"tooltip__bottom__XD6MP",left:"tooltip__left__vEFWB",right:"tooltip__right__UUeDQ",overlay:"tooltip__overlay__wjva5"};class U extends h.wA{constructor(e){super(e),this.toggleTooltip=this.toggleTooltip.bind(this),this.debouncedHideTooltip=(0,u.Ds)(this.debouncedHideTooltip.bind(this),e.selfHideMilliseconds),this.state={displayTooltip:!!this.props.isOpen}}debouncedHideTooltip(){this.setState({displayTooltip:!1})}toggleTooltip(){const e=this.state.displayTooltip;void 0!==this.props.showCondition&&this.props.selfHideMilliseconds&&this.debouncedHideTooltip(),!0===e&&void 0!==this.props.showCondition?!0===this.props.showCondition&&(this.shouldHide?this.shouldHide=!1:this.$bubble.style.display="block"):!1===e&&void 0!==this.props.showCondition?!0===this.props.showCondition&&(this.shouldHide||this.setState({displayTooltip:!0}),this.shouldHide=!1):this.setState({displayTooltip:!e}),e&&this.props.onHide&&this.props.onHide(),!e&&this.props.onShow&&this.props.onShow()}componentDidUpdate(e){const t=this.props.stageIndex,i=e.stageIndex;t&&t!==i&&(this.shouldHide=!0)}componentWillUpdate(e){const t=this.props.showCondition,i=e.showCondition,s=this.props.stageIndex,o=e.stageIndex;s&&s!==o&&this.$bubble&&(this.$bubble.style.display="none"),void 0!==t&&t!==i&&!0===t&&this.$bubble&&this.$bubble&&(this.$bubble.style.display="none")}render(){const{data:e,position:t,class:i,isMobile:s,id:o,icon:a}=this.props,{title:r,content:n,buttonTooltip:l}=e,c=this.state.displayTooltip;return(0,h.h)("div",null,c&&s&&(0,h.h)("div",{className:z.overlay}),(0,h.h)("div",{id:o,className:(0,u.WM)(z.tooltip,s&&z.mobileTooltip)},this.state.displayTooltip&&(0,h.h)("div",{className:(0,u.WM)(z.bubble,z[t]),ref:e=>this.$bubble=e,style:{}},(0,h.h)("div",{className:(0,u.WM)(z.message,i&&i)},a&&(0,h.h)("div",{className:z.icon},a),r&&(0,h.h)(q.Z,{tag:"div",markdown:!0,class:z.title,style:{marginBottom:n?"16px":"0"},content:r}),n&&(0,h.h)(q.Z,{tag:"div",markdown:!0,class:z.content,style:{marginBottom:l?"16px":"0"},content:n}),s&&l&&(0,h.h)("button",{className:z.close,onClick:this.toggleTooltip},l))),(0,h.h)("span",{className:z.trigger,onClick:this.toggleTooltip},this.props.children)))}}var j="groupBooking__container___Y6nv",Y="groupBooking__theaterExpanded__w2Dik",X="groupBooking__booking__PueMg",J="groupBooking__label__q7n97",Q="groupBooking__rental__Sukqb",ee="groupBooking__inner__bN9g8",te="groupBooking__info__OyVdR",ie="groupBooking__infoIcon__puayh";const se=(0,h.h)("svg",{class:ie,width:"2",height:"10",viewBox:"0 0 2 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,h.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.999713 0.20166C0.553313 0.20166 0.191017 0.563956 0.191017 1.01036C0.191017 1.45676 0.553313 1.81905 0.999713 1.81905C1.44611 1.81905 1.80841 1.45676 1.80841 1.01036C1.80841 0.563956 1.44611 0.20166 0.999713 0.20166Z"}),(0,h.h)("path",{d:"M0.190918 3.84036C0.190918 3.39373 0.552984 3.03166 0.999614 3.03166C1.44624 3.03166 1.80831 3.39373 1.80831 3.84036V8.69253C1.80831 9.13916 1.44624 9.50123 0.999614 9.50123C0.552984 9.50123 0.190918 9.13916 0.190918 8.69253V3.84036Z"}));class oe extends h.wA{constructor(e){super(e),l()(this,"onTooltipHide",(e=>{if(e){const e=document.querySelector("#scrollSearch");e&&(e.style.zIndex="4");document.querySelector("#scrollDates")&&(e.style.zIndex="3")}})),l()(this,"onTooltipShow",(e=>{if(e){const e=document.querySelector("#scrollSearch");e&&(e.style.zIndex="2");const t=document.querySelector("#scrollDates");t&&(t.style.zIndex="2")}}));const t=e.theater.chain.slug,i=(0,m.ku)();this.showPrivateTheaterRental=(0,u.RK)(i,"groupBookings.privateRentalChains.".concat(t),!1)}render(e){const{copy:t,screenings:i,theater:s,mode:o,trackConversion:a,showtimesAppData:r,client:n,eventInquiryTrigger:l}=e,{groupBookings:c}=r,d="mobile"===n.deviceSize;let p=s.screenings.filter((e=>"PTR"===e.format));return 0===p.length&&(this.showPrivateTheaterRental=!1,p=i),(0,h.h)("div",{className:(0,u.WM)(j,"expanded"===o&&Y)},(0,h.h)("div",{className:X},(0,h.h)("div",{className:J},t.baseCopy.$THEATER_GROUP_BOOKING_LABEL),(0,h.h)(y.Z,{type:"time",trigger:()=>{l()},ariaLabel:t.baseCopy.$THEATER_GROUP_BOOKING_BUTTON},t.baseCopy.$THEATER_GROUP_BOOKING_BUTTON)),this.showPrivateTheaterRental&&(0,h.h)("div",{className:Q},(0,h.h)("div",{className:ee},(0,h.h)("div",{className:J},t.baseCopy.$THEATER_PRIVATE_RENTAL),(0,h.h)("div",{className:te},(0,h.h)(U,{ref:e=>this.$tooltip=null==e?void 0:e.base,data:null==c?void 0:c.privateTheaterRentalTooltip,isMobile:d,position:"topRight",onHide:()=>this.onTooltipHide(d),onShow:()=>this.onTooltipShow(d)},se))),p.sort(((e,t)=>e.time.localeCompare(t.time))).map((e=>(0,h.h)(C,{screening:e,theater:s,showtimesAppData:r,mode:o,trackConversion:a,isPreviewPanelScreening:"film"===o})))))}}var ae=i(1381);class re{static kmToMiles(e){return e*re.MILES_FACTOR}static milesToKm(e){return e/re.MILES_FACTOR}setGoogleLatLng(){return"undefined"!=typeof window&&window.google&&window.google.maps&&(this.googleLatLng=new window.google.maps.LatLng(this.lat,this.lon)),this.googleLatLng}toGoogleLatLng(){return this.googleLatLng||this.setGoogleLatLng()}constructor(e){let{lat:t,lon:i,countryCode:s,city:o,src:a}=e;this.lat=t,this.lon=i,this.city=o,this.countryCode=(s||"").toLowerCase(),this.src=a,this.setGoogleLatLng()}update(e){let{lat:t,lon:i}=e;this.lat=t,this.lon=i,this.setGoogleLatLng()}toString(){return JSON.stringify({lat:this.lat,lon:this.lon,city:this.city,countryCode:this.countryCode})}equals(e){if(e instanceof re)return e.lat===this.lat&&e.lon===this.lon}quickDistIndicator(e){let t=e.lat-this.lat,i=e.lon-this.lon;return t*t+i*i}distanceFrom(e,t,i){if(!e||void 0===e.lat||void 0===e.lon)return;let s=Math.PI/180,o=e.lat*s,a=this.lat*s,r=a-o,n=(this.lon-e.lon)*s,l=Math.sin(r/2),h=Math.sin(n/2),c=l*l+Math.cos(o)*Math.cos(a)*h*h,d=6371*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)));if("mi"===t&&(d=re.kmToMiles(d)),null!=i){let e=Math.pow(10,~~i);d=Math.round(d*e)/e}return d}}l()(re,"MILES_FACTOR",.621371192);var ne="screeningDetails__container__fVLUx",le="screeningDetails__isNotFirstCategory__DKkqW",he="screeningDetails__categoryDivider__ILqh8",ce="screeningDetails__heroLogo__zPgYF",de
1="screeningDetails__heroName__zyjgH",pe="screeningDetails__label__RazoZ";class ue extends h.wA{constructor(e){super(e),this.fontStyles=(0,u.RK)(p.Z.get(),"appData.styling.fontVariables"),this.isRTL="rtl"===this.fontStyles.textDirection}render(e){let{heroOption:t,category:i,index:s,getDetails:o,getHeroDetails:a}=e;const{heroName:r,heroImage:n}=a(i.format,i,t),l=o(i),c=s>0;return(0,h.h)("div",{class:(0,u.WM)(ne,this.fontStyles.showtimesTheaterFormats,c&&le)},c&&(0,h.h)("div",{class:he}),n?(0,h.h)("img",{class:ce,src:n,alt:r}):(0,h.h)("span",{class:de},r),l.length>0&&(0,h.h)("div",{class:pe},l.map((e=>(0,h.h)("span",{key:e},e)))))}}var me={container:"theater__container__Ns0z1",collapsed:"theater__collapsed__SUygy",header:"theater__header__oDb7V",icon:"theater__icon__RJgQ5",rtlIcon:"theater__rtlIcon__IomlW",dummyScreening:"theater__dummyScreening__JWs5n",details:"theater__details__kODS2",name:"theater__name__XzFUu",theaterAdditionalText:"theater__theaterAdditionalText__Izh0J",location:"theater__location__hNCAM",rtlLocation:"theater__rtlLocation__Eq1Pm",distance:"theater__distance__OhhFT",address:"theater__address__QFbvI",expand:"theater__expand__qtygP",button:"theater__button__T88aS",allScreenings:"theater__allScreenings__FYLG3",category:"theater__category__VRjkI",dummyCat:"theater__dummyCat__ABNLW",label:"theater__label__opevS",viewShowtimesContainer:"theater__viewShowtimesContainer__OsYnd",viewShowtimes:"theater__viewShowtimes__LdINN",expanded:"theater__expanded__z5Vwu",rtlLabel:"theater__rtlLabel__CSmXK",logo:"theater__logo__AEgrr",dummyButton:"theater__dummyButton__o_bEv",dummyViewShowtimesContainer:"theater__dummyViewShowtimesContainer__SkRtT",loadingContainer:"theater__loadingContainer__wA8RZ",separator:"theater__separator__kj2gu",mobileSeparator:"theater__mobileSeparator__KUK8c",dateScrollerContainer:"theater__dateScrollerContainer__W23F8",imaxIcon:"theater__imaxIcon__kG1pN",imax3dIcon:"theater__imax3dIcon__AepAN",realDIcon:"theater__realDIcon__lEAlg",loadingIcon:"theater__loadingIcon__tmAtF",partialLoadingIcon:"theater__partialLoadingIcon__IjzQu",loading:"theater__loading__a7mXt",animateExpansion:"theater__animateExpansion__HxCPA",screeningsCollapse:"theater__screeningsCollapse__ozTkM",screeningsExpand:"theater__screeningsExpand__gh7NE",theaterExpanded:"theater__theaterExpanded__dnj6Q",screenings:"theater__screenings__H1Ldm",additionalText:"theater__additionalText__KBHXG",film:"theater__film__xijTK",hasMessage:"theater__hasMessage__W05Zy",scrollDates:"theater__scrollDates__XovBS",groupBookings:"theater__groupBookings__QvB2p",divideScreeningsByAttributes:"theater__divideScreeningsByAttributes__XIJGm"};class ge extends h.wA{constructor(e){super(e),this.renderScreeningsCategory=this.renderScreeningsCategory.bind(this),this.getDetails=this.getDetails.bind(this),this.getHeroDetails=this.getHeroDetails.bind(this)}getHeroDetails(e,t,i){const{sharedImageRoot:s,logoShade:o}=this.props;let a,r;switch(i){case"language":a=null==t?void 0:t.langLabel;break;case"movieId":a=null==t?void 0:t.movieTitle;break;case"format":r=function(e,t,i,s,o){var a,r,n;const l="light"===o?"dark":"light",h=null===(a=(null==t?void 0:t.format)||e||"")||void 0===a?void 0:a.toLowerCase(),c=e=>h.includes(e),d=e=>"".concat(s,"/logos/formats/").concat(l,"/").concat(e,".png");if(c("d-box 3d"))return d("dbox3d");if(c("d-box"))return d("dbox");let p=null==t||null===(r=t.audioDetails)||void 0===r?void 0:r.some((e=>e.toLowerCase().includes("dolby"))),u="amc-theatres"===(null==i||null===(n=i.chain)||void 0===n?void 0:n.slug);return p&&u?d("dolby_amc"):c("prime")&&c("amc")?d("prime_amc"):c("reald")&&c("3d")?d("reald3d"):c("reald")?d("reald"):c("imax")&&c("3d")?d("imax3d"):c("imax")?d("imax"):c("4dx")?d("4dx"):c("atmos")?d("atmos"):c("avx")?d("avx"):c("screenx")?d("screenx"):c("4dxscreen")||c("4dx-screen")?d("4dxscreen"):c("vip")?d("vip"):void 0}(e,t,this.props.theater,s,o),a=e}return{heroName:a,heroImage:r}}getDetails(e){var t,i,s;const{showtimesAppData:o,copy:a}=this.props,r=(null==o||null===(t=o.screeningCategories)||void 0===t?void 0:t.hero)||"format",{format:n,langLabel:l,attributes:h,movieTitle:c}=e,d=[],p=(null===(i=this.props.showtimesAppData)||void 0===i||null===(s=i.screeningCategories)||void 0===s?void 0:s.exclusions)||{};if(c&&"movieId"!==r&&!p.movieId&&d.push(null==c?void 0:c.toUpperCase()),n&&"format"!==r&&d.push(n),l&&"language"!==r&&!p.language&&d.push(l),(null==h?void 0:h.length)>0){var u,m;const e=(null==a||null===(u=a.baseCopy)||void 0===u||null===(m=u.filters)||void 0===m?void 0:m.attributes)||{};h.forEach((t=>{d.push(e[t]||t)}))}return d}handleScreeningCategoryLogo(e){var t;let i=null,s=null;"object"==typeof e?(i=e.format,s=e):(i=e,s=null);const{showtimesAppData:o}=this.props,a=(null==o||null===(t=o.screeningCategories)||void 0===t?void 0:t.hero)||"format",{heroName:r,heroImage:n}=this.getHeroDetails(i,s,a),l=s?this.getDetails(s):null,c=(0,u.RK)(p.Z.get(),"appData.styling.fontVariables"),d="rtl"===c.textDirection;return(0,h.h)("div",{class:(0,u.WM)(me.label,c.showtimesTheaterFormats,d&&me.rtlLabel)},n?(0,h.h)("img",{class:me.logo,src:n}):r," ",l)}useLocalOrIntl(e,t,i){return"area"!==e.theaterLocalisation?e.theaterLocalisation||"local":(null==t?void 0:t.countryCode)===i?"local":"intl"}renderScreeningsCategory(e,t){var i,s,o;const{theater:a,showtimesAppData:r,copy:n,mode:l,showtimesMode:c,trackConversion:d,divideScreeningsByAttributes:m,additionalText:g,additionalTextOnClick:_,groupBookings:v}=this.props,y=(null==r||null===(i=r.screeningCategories)||void 0===i?void 0:i.hero)||"format",b=p.Z.get().client,f=(null===(s=this.props.showtimesAppData)||void 0===s||null===(o=s.screeningCategories)||void 0===o?void 0:o.exclusions)||{},S=0===["language","attributes","movieId"].filter((e=>!f[e])).length,w=m&&!S;return(0,h.h)("div",{class:(0,u.WM)(me.category,w&&me.divideScreeningsByAttributes,(null==v?void 0:v.isEnabled)&&me.groupBookings),key:e.name},"map"===c?this.handleScreeningCategoryLogo(e):w?(0,h.h)(ue,{heroOption:y,getDetails:this.getDetails,getHeroDetails:this.getHeroDetails,category:e,sharedImageRoot:this.props.sharedImageRoot,logoShade:this.props.logoShade,copy:n,index:t}):!(null!=v&&v.isEnabled)&&this.handleScreeningCategoryLogo(e),null!=v&&v.isEnabled?(0,h.h)(oe,{copy:n,screenings:e.screenings,theater:a,showtimesAppData:r,mode:l,client:b,trackConversion:d,eventInquiryTrigger:this.props.eventInquiryTrigger,isPreviewPanelScreening:"film"===this.props.mode}):(0,h.h)("div",{class:me.screenings},e.screenings.sort(((e,t)=>e.time.localeCompare(t.time))).map((e=>(0,h.h)(C,{screening:e,theater:a,showtimesAppData:r,mode:l,trackConversion:d,isPreviewPanelScreening:"film"===this.props.mode,ticketType:this.props.ticketType})))))}
1renderLoadingState(){const{copy:e}=this.props;return(0,h.h)("div",{class:(0,u.WM)(me.category,me.dummyCat)},(0,h.h)("div",{class:me.loadingContainer},(0,h.h)("div",{class:me.label},e.baseCopy.$LOADING_SHOWTIMES||"Loading showtimes"),(0,h.h)("div",{class:me.loadingIcon})),(0,h.h)("div",{class:me.screenings},(0,h.h)("div",{class:me.dummyScreening}),(0,h.h)("div",{class:me.dummyScreening}),(0,h.h)("div",{class:me.dummyScreening}),(0,h.h)("div",{class:me.dummyScreening})))}renderErrorState(e){const t=this.props.copy;return(0,h.h)(ae.Z,{class:e,message:t.baseCopy.$ERROR_SHOWTIMES,cta:t.baseCopy.$ERROR_SHOWTIMES_CTA,buttonCopy:t.baseCopy.$REFRESH||"Refresh",buttonTrigger:()=>p.Z.emit("SHOWTIMES_REFRESH")})}renderEmptyState(e){const t=this.props.copy;return(0,h.h)(ae.Z,{class:e,message:t.baseCopy.$NO_SHOWTIMES,cta:t.baseCopy.$NO_SHOWTIMES_CTA,buttonCopy:t.baseCopy.$FILTERS||"Filters",buttonTrigger:this.props.showFilterSelection})}renderViewButtonState(){const{theater:e,mode:t,onExpandClick:i,isDesktopSize:s}=this.props;if("list"!==t&&"function"==typeof i&&!s)return!e||e.loading?(0,h.h)("div",null,"expanded"!==t?(0,h.h)("div",{class:me.dummyButton}):(0,h.h)("div",{class:(0,u.WM)(me.viewShowtimesContainer,me.dummyViewShowtimesContainer)},(0,h.h)("div",{class:me.dummyLabel},this.props.copy.baseCopy.$LOADING_SHOWTIMES||"Loading showtimes"),(0,h.h)("div",{class:me.loadingIcon}))):e.error?this.renderErrorState(me.mobileSeparator):e.screenings&&e.screenings.length?(0,h.h)("div",{class:me.viewShowtimesContainer},(0,h.h)(y.Z,{type:"primary",class:me.viewShowtimes,trigger:i},this.props.copy.baseCopy.$VIEW_SHOWTIMES||"View Showtimes")):this.renderEmptyState(me.mobileSeparator)}renderScreenings(){var e,t;const{showtimesAppData:i}=this.props,s=(null==i||null===(e=i.screeningCategories)||void 0===e?void 0:e.hero)||"format",o=(0,m.Gg)(s);let a=(this.props.theater.screenings||[]).reduce(((e,t)=>{var i,s;const o=(null===(i=this.props.showtimesAppData)||void 0===i||null===(s=i.screeningCategories)||void 0===s?void 0:s.exclusions)||{},a=o.format?"":t.format||"2D",r=o.language?"":E(t)||"",n=o.movieId?null:t.movieId,l=o.audioDetails?null:t.audioDetails,h=(0,m.g4)(n);let c=[];o.attributes||(c=(t.attributes||[]).filter((e=>!o[e])));let d=[a,l,n,r,c.sort().join("")].filter((e=>e)).join("~~");return e[d]||(e[d]={name:d,format:a,audioDetails:l,langLabel:r,attributes:c,screenings:[],movieTitle:h,movieId:n}),e[d].screenings.push(t),e}),{}),r=Object.values(a).filter((e=>e&&e.screenings.length)).sort(((e,t)=>{if(o.length){const i=o.indexOf(e[s]),a=o.indexOf(t[s]);if(i>-1||a>-1)return a-i}return"movieId"===s?e.movieTitle.localeCompare(t.movieTitle):e.name.localeCompare(t.name)}));return null!==(t=this.props.groupBookings)&&void 0!==t&&t.isEnabled?this.renderScreeningsCategory(r[0],0):r.map(this.renderScreeningsCategory)}renderVisualState(){const{additionalText:e,additionalTextOnClick:t,theater:i,mode:s}=this.props;
1let o,a=i.error,r=!i.screenings||!i.screenings.length,n="expanded"===s,l=i.loading&&"list"===s||a||r;return o=i.loading?this.renderLoadingState():a?this.renderErrorState():"list"!==s&&r?this.renderEmptyState():this.renderScreenings(),(0,h.h)("div",{class:(0,u.WM)(me.allScreenings,l&&me.separator,n&&me.theaterExpanded),key:"screenings"},o,e&&(0,h.h)("div",{class:(0,u.WM)(me.additionalText,"medium"),onClick:t},e),this.props.loading&&this.props.theater&&!this.props.theater.loading&&(0,h.h)("div",{class:me.partialLoadingIcon}))}renderDateScroller(){const{displayedDates:e,mode:t,loading:i,theater:s}=this.props;if(this.props.displayedDates&&"expanded"===t&&!s[i])return(0,h.h)("div",{class:me.dateScrollerContainer,key:"dateScrollerContainer"},(0,h.h)(G,{ref:e=>this.$filterDate=e,appData:p.Z.get().appData,showtimesAppData:this.props.showtimesAppData,client:p.Z.get().client,displayedDates:e,onChange:this.props.onDateChange,hideInactive:!0,backAction:this.props.backAction,theaterDateScroller:!0,selectedTheater:this.props.selectedTheater,showtimesMode:this.props.showtimesMode,mapMode:this.props.mode}))}renderTheaterAdditionalText(){var e,t;const{theater:i,showtimesAppData:s}=this.props,o=s.theaterAdditionalText||{},a=(null===(e=o[i.id])||void 0===e?void 0:e.text)||(null===(t=o[i.screenings[0].id])||void 0===t?void 0:t.text),r=(0,u.RK)(p.Z.get(),"appData.styling.fontVariables");return(0,h.h)("div",{class:(0,u.WM)(me.theaterAdditionalText,r.showtimesTheaterName)},(0,h.h)(q.Z,{markdown:!0,content:a}))}renderHeader(){var e,t,i,s,o;const{theater:a,clientGeo:r,mode:n,onExpandClick:l,sharedImageRoot:c,logoShade:d,showtimesAppData:m,geoFromIP:g}=this.props,_=null===(e=a.address)||void 0===e||null===(t=e.intl)||void 0===t||null===(i=t.country)||void 0===i?void 0:i.toLowerCase(),v=this.useLocalOrIntl(m,g,_),b=e=>{var t,i,s,o;return(null===(t=a.address)||void 0===t||null===(i=t[v])||void 0===i?void 0:i[e])||(null===(s=a.address)||void 0===s||null===(o=s.intl)||void 0===o?void 0:o[e])},f=b("name")||a.name,S=b("street")||"",w=b("city")||"",T=!!m.showPostcodes,C=new re({lat:a.lat,lon:a.lon}
1),k=r&&new re({lat:r.lat,lon:r.lon}),E=m.theaterDistanceUnit||"km",I=C.distanceFrom(k,E,1),D=(0,u.RK)(a,"chain.logo")||"default.png",M="".concat(c,"/logos/").concat(d,"/").concat(D),R=(0,u.RK)(p.Z.get(),"appData.styling.fontVariables"),A=(0,u.RK)(p.Z.get(),"appData.copy.accessibilityCopy",{}),L=(null===(s=a.chain)||void 0===s||null===(o=s.name)||void 0===o?void 0:o.replace(/\..*/,""))||"",O="rtl"===R.textDirection,N=[S,T&&b("postcode"),w].filter((e=>e)).join(", "),B="expanded"!==n&&"function"==typeof l,x=(0,h.h)("div",{ref:e=>this.header=e,class:me.header},(0,h.h)("div",{class:(0,u.WM)(me.icon,O&&me.rtlIcon)},(0,h.h)("img",{src:M,alt:A.$CINEMA_LOGO_ALT.replace("<chain>",L)})),(0,h.h)("div",{class:me.details},(0,h.h)("div",{class:(0,u.WM)(me.name,R.showtimesTheaterName)},f),(0,h.h)("div",{class:(0,u.WM)(me.location,O&&me.rtlLocation)},(0,h.h)("span",{class:(0,u.WM)(me.distance,R.showtimesTheaterDistance)},I+E),(0,h.h)("span",{class:(0,u.WM)(me.address,R.showtimesTheaterAddress)},N))),B&&(0,h.h)("div",{class:me.expand}));return B?(0,h.h)(y.Z,{class:me.button,trigger:l,ariaLabel:A.$EXPAND_CINEMA_ARIA},x):x}render(e){let{theater:t,loading:i}
1=e,s=!(i||t.loading)&&(t.error||!t.screenings||!t.screenings.length);return(0,h.h)("div",{class:(0,u.WM)({s:me,container:!0,animateExpansion:e.animateExpansion,hasMessage:s},me[e.mode],this.props.class)},this.renderHeader(),this.renderTheaterAdditionalText(),this.renderDateScroller(),this.renderViewButtonState(),this.renderVisualState())}}var _e={input:"input__input__RzEzk",errorMessage:"input__errorMessage__QsCkO",error:"input__error__oxtbg"};class ve extends h.wA{constructor(e){super(e),this.onInput=this.onInput.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.state.value=e.value||"",this.state.focused=!1}componentDidMount(){}get value(){return this.state.value}set value(e){this.setState({value:e})}focus(){this.$input&&this.$input.focus()}blur(){this.$input&&this.$input.blur()}onInput(e){let t=e.target.value;this.setState({value:t}),"function"==typeof this.props.onInput&&this.props.onInput({value:t})}onFocus(){this.blurring=!1,this.state.focused||(this.setState({focused:!0}),"function"==typeof this.props.onFocus&&this.props.onFocus())}onBlur(){this.blurring=!0,setTimeout((()=>{this.blurring&&this.state.focused&&(this.setState({focused:!1}),"function"==typeof this.props.onBlur&&this.props.onBlur())}),0)}render(e){return(0,h.h)("label",{class:(0,u.WM)(e.containerClass,{s:_e,container:!0,error:e.error},this.state.focused&&"focused"),onFocusIn:this.onFocus,onFocusOut:this.onBlur,onMouseDown:e.onMouseDown},(0,h.h)("input",{ref:e=>this.$input=e,class:(0,u.WM)(_e.input,e.class,e.inputStyle),placeholder:e.placeholder,disabled:e.disabled,value:this.state.value,onInput:this.onInput,onKeyDown:e.onKeyDown,"aria-label":e.ariaLabel,role:e.role}),(0,h.h)("div",{class:_e.errorMessage},e.error),e.children)}}var ye=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",{d:"M11.5 4a1.5 1.5 0 10.001 3.001A1.5 1.5 0 0011.5 4zm0-1a2.5 2.5 0 012.45 2.001L15.5 5a.5.5 0 010 1h-1.55a2.502 2.502 0 01-4.9 0H.5a.5.5 0 010-1l8.55.001A2.5 2.5 0 0111.5 3zm-7 6a1.5 1.5 0 10.001 3.001A1.5 1.5 0 004.5 9zm0-1a2.5 2.5 0 012.45 2.001L15.5 10a.5.5 0 010 1H6.95a2.502 2.502 0 01-4.9 0H.5a.5.5 0 010-1l1.55.001A2.5 2.5 0 014.5 8z","fill-rule":"evenodd","clip-rule":"evenodd"}));function be(e,t,i){return fe(e,t,i,0)}function fe(e,t,i,s){if(!e||!t)return e;if(++s>20)return e;var o;t=(o=t)instanceof RegExp?o:new RegExp((o+"").replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g");let a=i;if("function"!=typeof i&&(a=()=>i),Array.isArray(e))return e.reduce(((e,o)=>e.concat(fe(o,t,i,s))),[]);if("object"==typeof e&&e.children)return e.children=e.children.reduce(((e,o)=>e.concat(fe(o,t,i,s))),[]),e;e+="";let r,n=[],l=0;for(;(r=t.exec(e))&&(n.push(e.slice(l,r.index),a(r)),l=r.index+r[0].length,t.global););return n.length?(n.push(e.slice(l)),n):e}var Se=i(4297),we=i(7628);var Te=e=>(0,h.h)("svg",r()({viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",r()({},e,{d:"M8,1 C6.464,1 4.929,1.565 3.757,2.697 C1.414,4.959 1.414,8.627 3.757,10.89 C3.762,10.894 3.766,10.898 3.771,10.902 L3.771,10.917 L8,15 L12.191,10.953 L12.191,10.938 C12.208,10.922 12.226,10.906 12.242,10.89 C14.586,8.627 14.586,4.959 12.242,2.697 C11.071,1.565 9.535,1 8,1 M8,2 C9.342,2 10.603,2.503 11.548,3.416 C12.484,4.32 13,5.52 13,6.793 C13,8.067 12.484,9.266 11.548,10.17 L11.505,10.211 L11.191,10.521 L11.191,10.529 L8,13.61 L4.758,10.479 L4.757,10.465 L4.452,10.17 C3.516,9.266 3,8.067 3,6.793 C3,5.52 3.516,4.32 4.452,3.416 C5.398,2.503 6.658,2 8,2",id:"Pin",fill:"#FFFFFF"})),(0,h.h)("path",r()({},e,{d:"M8,5 C7.448,5 7,5.448 7,6 C7,6.552 7.448,7 8,7 C8.552,7 9,6.552 9,6 C9,5.448 8.552,5 8,5",id:"Dot",fill:"#FFFFFF"}))),Ce={container:"locationSearch2__container__iOvGC",input:"locationSearch2__input__wsSxr",mobileOverlay:"locationSearch2__mobileOverlay__s3exC",pinSpan:"locationSearch2__pinSpan__iUFYg",emptyPin:"locationSearch2__emptyPin__LvO57",placeholder:"locationSearch2__placeholder__ofQPT",extra:"locationSearch2__extra__jCb8L",loader:"locationSearch2__loader__tPoe7",rotate:"locationSearch2__rotate__YiS4W",filled:"locationSearch2__filled__CMzsu",icon:"locationSearch2__icon__dzpsp",filtersIcon:"locationSearch2__filtersIcon__Ym9bm",filtersNum:"locationSearch2__filtersNum__iJrJi",active:"locationSearch2__active__B9Bip",rtlIcon:"locationSearch2__rtlIcon__gGppP",suggestions:"locationSearch2__suggestions__FDI7w large",suggestionsLoading:"locationSearch2__suggestionsLoading__Ny1Tk",noSuggestions:"locationSearch2__noSuggestions__QdAaQ",suggestion:"locationSearch2__suggestion__xYz27",highlighted:"locationSearch2__highlighted__XUZ0q",scrollable:"locationSearch2__scrollable__HiXpY",loading:"locationSearch2__loading__e_yYS",loadingCopy:"locationSearch2__loadingCopy__l4w3t",useLocation:"locationSearch2__useL
1ocation__kBeAv",suggestionIcon:"locationSearch2__suggestionIcon__SoL5s",loadingIcon:"locationSearch2__loadingIcon__QHLxp",geoLoading:"locationSearch2__geoLoading__YJ2TJ",overlayHeader:"locationSearch2__overlayHeader__diye5"};class ke extends h.wA{constructor(e){super(e),this.updateCitySuggestions=(0,u.Ds)(this.updateCitySuggestions,300),this.iconClick=this.iconClick.bind(this),this.onInput=this.onInput.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.search=this.search.bind(this),this.focusHandler=this.focusHandler.bind(this),this.loadingClickHandler=this.loadingClickHandler.bind(this),this.state.filled=!1,this.state.citySuggestions=[],this.state.highlightedSuggestion=0,this.updateCitySuggestionsId=0,this.fontStyles={}}componentDidUpdate(e,t){e.geo.loading&&!this.props.geo.loading&&this.setState({value:""})}componentDidMount(){this.props.autofocus&&this.focus()}transformNearbyLocation(e){return{city:e.city,state:e.state,countryCode:e.countryCode||e.country,lat:e.lat,lon:e.lon}}async updateCitySuggestions(){if(!this.$input)return;let e=this.$input.value;if(!e)return;let t=++this.updateCitySuggestionsId,i=[];try{i=await(0,we.AN)({search:e})}catch(e){}if(t!==this.updateCitySuggestionsId)return;let s=i.slice(0,10);if(this.props.nearbyLocations){let t=e.toLowerCase(),i=this.props.nearbyLocations.filter((e=>(e.city||"").toLowerCase().includes(t))).map(this.transformNearbyLocation);s=s.concat(i)}this.setState({citySuggestions:s,highlightedSuggestion:0,suggestionsLoading:!1})}removeLocationQueryParameter(){let e=(0,Se.Z)();if(e.location){delete e.location;let t=location.pathname+(0,u.UK)(e)+location.hash;history.replaceState({activePage:p.Z.get().activePage},"",t)}}async search(){let e=this.$input&&this.$input.value;e&&("function"==typeof this.props.onSearch&&this.props.onSearch(e),this.removeLocationQueryParameter(),p.Z.emit("SET_USER_LOCATION",(()=>(0,we.HH)({search:e})),"search",this.props.ticketType),this.reset(),this.blur())}select(e){e.city||(e.city=e.label),"function"==typeof this.props.onSelect&&this.props.onSelect(e),this.removeLocationQueryParameter();let t=this.props.nearbyLocations&&this.props.nearbyLocations.includes(e)?"nearby":"suggestion";p.Z.emit("SET_USER_LOCATION",{...e},t,this.props.ticketType),p.Z.emit("SHOWTIMES_SEARCH_OVERLAY_HIDE"),this.reset(),this.blur()}reset(){this.$input&&(this.$input.value="",this.setState({value:"",filled:!1}))}focus(){this.$input&&this.$input.focus()}blur(){this.$input&&this.$input.blur()}iconClick(){this.reset(),this.focus()}onInput(){let e=this.$input.value;this.setState({value:e});let t=!!e;this.state.filled!==t&&this.setState({filled:t}),this.state.suggestionsLoading||this.setState({suggestionsLoading:!0,highlightedSuggestion:0}),this.updateCitySuggestions()}onMouseDown(){clearTimeout(this.mouseDownTimer),this.mouseDown=!0,this.mouseDownTimer=setTimeout((()=>this.mouseDown=!1),16)}onFocus(){"function"==typeof this.props.onFocus&&this.props.onFocus()}onBlur(){if(!this.props.isMobile&&this.mouseDown)return this.focus();"function"==typeof this.props.onBlur&&this.props.onBlur(),this.reset()}onKeyDown(e){let t=this.state;switch(e.key){case"Down":case"ArrowDown":e.preventDefault();let i=t.highlightedSuggestion+1;i>=t.citySuggestions.length&&(i=0),this.setState({highlightedSuggestion:i});break;case"Up":case"ArrowUp":e.preventDefault();let s=t.highlightedSuggestion-1;s<0&&(s=t.citySuggestions.length-1),this.setState({highlightedSuggestion:s});break;case"Enter":e.preventDefault();let o=t.citySuggestions[t.highlightedSuggestion];o&&this.select(o);break;case"Esc":case"Escape":e.preventDefault(),this.reset()}}loadingClickHandler(){this.setState({loadingClicked:!0})}renderSuggestions(){const e=(0,u.RK)(p.Z.get(),"appData.copy.baseCopy");let t=this.state;if(t.suggestionsLoading&&t.filled)return(0,h.h)("div",{class:Ce.suggestionsLoading,key:"loading",onMouseDown:this.loadingClickHandler},(0,h.h)("div",{class:Ce.loadingIcon}),(0,h.h)("div",{class:Ce.loadingCopy},e.$LOADING_SEARCH_SUGGESTIONS||"Loading..."));let i=t.filled?t.citySuggestions:[];return!t.filled&&this.props.nearbyLocations&&(i=i.concat(this.props.nearbyLocations.map(this.transformNearbyLocation))),!i.length&&this.props.mobileOverlayActive?(0,h.h)("div",{class:Ce.noSuggestions,key:"empty"},e.$NO_SEARCH_SUGGESTIONS||"No suggestions"):i.map(((e,i)=>{let s=[e.countryCode,e.city,e.state,e.countryCode,e.label].filter((e=>e)).join(),o=e.label;o||(o=[e.city,"US"===e.countryCode&&e.state,e.countryCode].filter((e=>e)).join(", "));let a=be((0,h.h)("span",null,o),e.city,(0,h.h)("strong",null,e.city));return(0,h.h)(y.Z,{class:(0,u.WM)({s:Ce,suggestion:!0,highlighted:i===t.highlightedSuggestion}),key:s,trigger:()=>this.select(e),onMouseEnter:()=>this.setState({highlightedSuggestion:i}),tabIndex:"-1"},(0,h.h)("span",{class:Ce.pinSpan},(0,h.h)(Te,{class:(0,u.WM)(Ce.suggestionIcon,Ce.emptyPin)})),a)}))}renderPlaceholder(){let e=this.props.geo;const{value:t}=this.state,i=(0,u.RK)(p.Z.get(),"appData.copy.baseCopy.$SEARCH_PLACEHOLDER");return e?e.loading?(0,h.h)("div",{class:Ce.placeholder},(0,h.h)("span",{class:Ce.extra},t),(0,h.h)("span",{class:Ce.extra},i||"showtimes")):e.city?(0,h.h)("div",{class:Ce.placeholder},(0,h.h)("span",{class:Ce.name},e.city),(0,h.h)("span",{class:Ce.extra},i||"showtimes")):(0,h.h)("div",{class:Ce.placeholder}):(0,h.h)("div",{class:Ce.placeholder})}focusHandler(){this.props.mobileOverlayActive||(this.setState({mobileOverlayActive:!0}),p.Z.emit("SET_HEADER_ACTION",{icon:"back",action:()=>this.setState({mobileOverlayActive:!1})}
1))}render(e){let t=this.state.filled;const i=Object.values(e.selectedFilters).filter((e=>null==e?void 0:e.length)).length-1,s=this.props.geo.loading,{mobileOverlayActive:o}=this.props,a=p.Z.get();this.fontStyles=(0,u.RK)(a,"appData.styling.fontVariables");const r="rtl"===this.fontStyles.textDirection,n=(0,u.RK)(a,"appData.copy.accessibilityCopy",{}),l=(0,u.RK)(a,"appData.copy.baseCopy.$SEARCH","Search"),c=t?n.$CLEAR_SEARCH_ARIA:n.$SEARCH_MAG_GLASS_ARIA,d=(0,u.RK)(a,"appData.copy.baseCopy.$FILTERS")||"Filters",m=(0,h.h)(ve,{disabled:e.disabled,ref:e=>this.$input=e,containerClass:(0,u.WM)(e.class,this.fontStyles.showtimesSearch,{s:Ce,container:!0,filled:t,geoLoading:s}),class:Ce.input,placeholder:l,inputStyle:this.fontStyles.showtimesSearch,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,ariaLabel:n[e.showtimesAppData.searchInputAriaLabel]||e.showtimesAppData.searchInputAriaLabel||"Search location",role:"search"},this.renderPlaceholder(),(0,h.h)(y.Z,{class:(0,u.WM)(Ce.icon,r&&Ce.rtlIcon),trigger:this.iconClick,tabIndex:t?0:-1,ariaLabel:c}),(0,h.h)("div",{className:(0,u.WM)(Ce.filtersNum,i>0&&Ce.active)},i),(0,h.h)(y.Z,{class:(0,u.WM)(Ce.filtersIcon),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()},trigger:e=>{e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),this.props.showFilterSelection(e)}},(0,h.h)("span",null,d),(0,h.h)(ye,null)),!o&&(0,h.h)("div",{class:Ce.suggestions},this.renderSuggestions()));return o?(0,h.h)("div",{class:Ce.mobileOverlay},(0,h.h)("div",{class:(0,u.WM)({s:Ce,overlayHeader:!0,filled:this.state.filled})},m),(0,h.h)("div",{class:(0,u.WM)(Ce.filled,Ce.scrollable)},(0,h.h)("div",{class:Ce.suggestions,"body-scroll-lock-ignore":!0},this.renderSuggestions()))):m}}i(9244);var Ee=i(9811),Ie={wrapper:"filterSelection2__wrapper__Dg6lm",open:"filterSelection2__open__WCYYq",container:"filterSelection2__container__pLmbk",shadow:"filterSelection2__shadow__Ubz7j",scroller:"filterSelection2__scroller__kImvh",content:"filterSelection2__content__KIkdB",header:"filterSelection2__header__KIKVD",close:"filterSelection2__close__pe5oe",title:"filterSelection2__title__ndpAn",filters:"filterSelection2__filters___1mRU",empty:"filterSelection2__empty__oRlMg",options:"filterSelection2__options__Qk9aC",option:"filterSelection2__option__K9cdL",active:"filterSelection2__active__mRXSc",name:"filterSelection2__name__Pvu7M",footer:"filterSelection2__footer__pUVSP",submit:"filterSelection2__submit__JWd1e"};class De extends h.wA{constructor(e){super(e),this.today=(0,W.Z)(new Date,"yyyy-MM-dd"),this.onCancel=this.onCancel.bind(this)}onCancel(){this.props.onCancel()}isDefault(){let e=this.props.filters,t=e.selected;if(!t)return!0;let i=e.available&&e.available.date&&e.available.date[0];return Object.keys(t).every((e=>{let s=t[e];return!s||!s.length||"date"===e&&1===s.length&&(s[0]===i||s[0]===this.today)}))}getDisplayedFilters(e){let t=Object.keys(e);return t.sort(((e,t)=>"movie"===e?-1:"movie"===t?1:0)),t.filter((t=>{var i;return"date"!==t&&"exhibitor"!==t&&(null===(i=e[t])||void 0===i?void 0:i.length)})).map((e=>"audioDetails"===e?{filter:e,mergeWith:"format"}:{filter:e}))}getFilterName(e,t){var i,s,o;const a=(null===(i=this.props.appData.copy)||void 0===i||null===(s=i.baseCopy)||void 0===s||null===(o=s.filters)||void 0===o?void 0:o[e])||{},r=a.useLangOptions?this.props.appData.copy.baseCopy.languages:a;return"movie"===e?(0,m.g4)(t):r[t]||t}renderFilters(){var e,t,i,s,o;let{filters:a,appData:r}=this.props;const n=r.styling.fontVariables,l=r.copy.accessibilityCopy,c=r.copy.baseCopy.$FILTERS_NONE_AVAILABLE||"No filters available",d=null===(e=r.pages)||void 0===e||null===(t=e.boltShowtimes)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.hideFilterOptionTime;if(a.loading||!a.available)return;let g=null===(s=this.getDisplayedFilters(a.available))||void 0===s||null===(o=s.map((e=>"string"==typeof e?{filter:e}:e)))||void 0===o?void 0:o.filter((e=>e));if(null==g||!g.length)return(0,h.h)("div",{class:Ie.empty},c);let _=(()=>{let e={};return t=>{var i,s;return e[t]||(e[t]=(0,m.TP)((null===(i=a.selected)||void 0===i?void 0:i[t])||[],null===(s=a.available)||void 0===s?void 0:s[t]))}})();return g.map((e=>{var t,i,s,o,c;let{filter:v,mergeWith:b}=e;if(b&&g.some((e=>e.filter===b)))return;let f=a.available[v],S=g.filter((e=>(null==e?void 0:e.mergeWith)===v));S.length&&(f=[v,...S.map((e=>e.filter))].flatMap((e=>{var t;return null===(t=a.available[e])||void 0===t?void 0:t.map((t=>({value:t,filter:e})))})));let w="";if("time"===v){if(d)return;w=l.$TIME_SELECTION_ARIA;f=["morning","afternoon","evening","late"].filter((e=>{var t;return null===(t=f)||void 0===t?void 0:t.includes(e)}))}if(!f.length||f.length<=1)return;let T=Object.values(f.reduce(((e,t)=>{"string"==typeof t&&(t={value:t});let i=t.filter||v,s=this.getFilterName(i,t.value),o=_(i).includes(t.value);return e[s]||(e[s]={name:s,active:o,source:[],filter:i}
1),e[s].source.push(t.value),e[s].active=e[s].active||o,e}),{}));"format"===v&&(w=l.$FORMAT_SELECTION_ARIA),"format"!==v&&"movie"!==v||(T=T.sort(((e,t)=>{const i=(0,m.Gg)("format"===v?"format":"movieId");if(i.length){const s=i.indexOf(e.source[0]),o=i.indexOf(t.source[0]);if(s>-1||o>-1)return o-s}return e.name.localeCompare(t.name)}))),T.unshift({active:0===_(v).length,name:(null==r||null===(t=r.copy)||void 0===t||null===(i=t.baseCopy)||void 0===i?void 0:i.$ALL)||"All",source:"all"});const C=(null===(s=r.copy)||void 0===s||null===(o=s.baseCopy)||void 0===o||null===(c=o.filters)||void 0===c?void 0:c[v])||{},k=(null==C?void 0:C._name)||v;return(0,h.h)("div",{class:Ie.filter,key:v},(0,h.h)("div",{class:(0,u.WM)(Ie.name,n.filterOverlayFilterTitle)},(0,h.h)("span",null,k)),(0,h.h)("div",{class:Ie.options},T.map((e=>(0,h.h)(y.Z,{type:"tag",class:(0,u.WM)(Ie.option,e.active&&Ie.active,n.filterMenuFilter),active:e.active,trigger:()=>{"all"===e.source?p.Z.emit("FILTER_RESET_SINGLE",v):p.Z.emit("FILTER_TOGGLE",e.filter||v,e.source),p.Z.emit("FILTER_SCROLL_INTO_VIEW",e.source)},ariaLabel:w.replace("<option>",e.name)},e.name)))))}))}render(e){var t,i,s,o,a,r,n;const{open:l,appData:c,filters:d}=e,p=(null===(t=c.copy)||void 0===t||null===(i=t.baseCopy)||void 0===i?void 0:i.$FILTERS)||"Filters",m=(null===(s=c.copy)||void 0===s||null===(o=s.baseCopy)||void 0===o?void 0:o.$FILTERS_CLOSE)||"Close",g=c.copy.accessibilityCopy||{},_=null===(a=c.styling)||void 0===a?void 0:a.fontVariables,v="rtl"===_.textDirection;let b=(null===(r=c.copy)||void 0===r||null===(n=r.baseCopy)||void 0===n?void 0:n.$VIEW_SHOWTIMES)||"View Showtimes";return d.loading||this.getDisplayedFilters(d.available).length||(b=m),(0,h.h)("div",{class:(0,u.WM)(Ie.wrapper,l&&Ie.open)},(0,h.h)("div",{class:Ie.shadow,onClick:this.onCancel}),(0,h.h)("div",{class:Ie.container},(0,h.h)("div",{class:Ie.scroller},(0,h.h)("div",{class:Ie.content},(0,h.h)("div",{class:Ie.header},(0,h.h)("h4",{class:(0,u.WM)(Ie.title,_.filterOverlayTitle)},p),(0,h.h)(Ee.Z,{class:Ie.close,onClick:this.onCancel})),(0,h.h)("div",{class:Ie.filters},this.renderFilters()),(0,h.h)("div",{class:(0,u.WM)(Ie.footer,v&&Ie.rtlFooter)},(0,h.h)(y.Z,{type:"primary",class:(0,u.WM)(Ie.submit,_.filterMenuViewShowtimes),trigger:e.onSubmit,ariaLabel:g.$VIEW_SHOWTIMES_ARIA},b))))))}}var Me=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,h.h)("path",{d:"M4 3.5h12v1H4zM0 3.5h2v1H0zM4 7.5h12v1H4zM0 7.5h2v1H0zM4 11.5h12v1H4zM0 11.5h2v1H0z"})),Re=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,h.h)("path",{d:"M16 1l-4.001.933-8-.933L0 1.933V15l3.999-.933 8 .933L16 13.133V1zM4.5 13.118V2.066l7 .816v11.053l-7-.817zM1 2.727l2.5-.583v11.012L1 13.74V2.727zm11.5.117l2.5-.583v10.236l-2.5 1.167V2.844z","fill-rule":"evenodd"}));var Ae=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",{class:"st0",d:"M8.164,1c0.644,0,1.167,0.522,1.167,1.167c0,0.644-0.522,1.167-1.167,1.167c-0.644,0-1.167-0.522-1.167-1.167 C6.998,1.522,7.52,1,8.164,1z M7.817,3.722c0.471,0,0.877,0.262,1.092,0.646c0.117,0.126,1.302,2.593,1.302,2.593 c0.028,0.007,1.69,0.314,1.69,0.314c0.287,0.037,0.513,0.273,0.51,0.572c0,0.323-0.261,0.585-0.585,0.585 c-0.026,0-1.361-0.259-2.027-0.395c-0.242-0.049-0.446-0.205-0.56-0.423L8.734,6.646l-0.38,1.851l1.736,1.737 c0.145,0.153,0.226,0.356,0.226,0.567l0.002,3.504l-0.006,0.094C10.266,14.739,9.975,15,9.623,15c-0.384,0-0.695-0.311-0.695-0.695 c0-0.001,0-1.25,0.001-2.12v-0.819L7.15,9.587c0,0-0.31,1.867-0.338,2.012s-0.076,0.255-0.262,0.475 c-0.167,0.198-2.2,2.684-2.2,2.684c-0.128,0.145-0.309,0.241-0.517,0.241c-0.384,0-0.695-0.311-0.695-0.696 c0-0.174,0.071-0.329,0.177-0.451l1.838-2.309l0.537-3.06c0,0,0.53-2.584,0.572-2.708L5.683,6.099L4.751,7.843 c-0.1,0.181-0.285,0.31-0.507,0.31c-0.323,0-0.585-0.262-0.585-0.585c0-0.082,0.018-0.16,0.049-0.232l1.005-1.892 c0.074-0.14,0.183-0.253,0.321-0.331c0.587-0.329,2.185-1.24,2.185-1.24C7.404,3.78,7.602,3.722,7.817,3.722z"}));var Le=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",{class:"st0",d:"M11.75,10.25C11.336,10.25,11,9.914,11,9.5s0.336-0.75,0.75-0.75S12.5,9.086,12.5,9.5S12.164,10.25,11.75,10.25 z M4.25,7.25L5,2.75h6l0.75,4.5H4.25z M4.25,10.25c-0.414,0-0.75-0.336-0.75-0.75s0.336-0.75,0.75-0.75S5,9.086,5,9.5 S4.664,10.25,4.25,10.25z M13.25,7.25H12.5l-0.75-4.5C11.75,2.336,11.414,2,11,2H5C4.586,2,4.25,2.336,4.25,2.75L3.5,7.25H2.75 C2.336,7.25,2,7.586,2,8v3.75c0,0.414,0.336,0.75,0.75,0.75H3.5v0.75C3.5,13.664,3.836,14,4.25,14S5,13.664,5,13.25V12.5h6v0.75 c0,0.414,0.336,0.75,0.75,0.75s0.75-0.336,0.75-0.75V12.5h0.75c0.414,0,0.75-0.336,0.75-0.75V8C14,7.586,13.664,7.25,13.25,7.25z"}));var Oe=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",{class:"st0",d:"M5.046,13.6l1.477-1.4h2.954l1.477,1.4H5.046z M6.523,9.4c0,0.386-0.331,0.7-0.738,0.7 c-0.408,0-0.738-0.314-0.738-0.7s0.331-0.7,0.738-0.7C6.192,8.7,6.523,9.014,6.523,9.4z M4.677,7.3V2.4h6.646v4.9H4.677z M10.215,10.1c-0.408,0-0.738-0.314-0.738-0.7s0.331-0.7,0.738-0.7s0.738,0.314,0.738,0.7S10.623,10.1,10.215,10.1z M10.954,12.2 L10.954,12.2c0.816,0,1.477-0.627,1.477-1.4V1.7c0-0.386-0.331-0.7-0.738-0.7H4.308C3.9,1,3.569,1.314,3.569,1.7v9.1 c0,0.773,0.661,1.4,1.477,1.4L2.092,15h1.477l0.738-0.7h7.385l0.738,0.7h1.477L10.954,12.2z"}));var Ne=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",{d:"M13 14H3c-.551 0-1-.449-1-1V7h12v6c0 .551-.449 1-1 1zM3 3h1v.5a.5.5 0 0 0 1 0V3h6v.5a.5.5 0 0 0 1 0V3h1c.551 0 1 .449 1 1v2H2V4c0-.551.449-1 1-1zm10-1h-1v-.5a.5.5 0 0 0-1 0V2H5v-.5a.5.5 0 0 0-1 0V2H3a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z","fill-rule":"evenodd","clip-rule":"evenodd"}));var Be=e=>(0,h.h)("svg",r()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",role:"img"},e),(0,h.h)("path",{d:"M8 1C4.14 1 1 4.14 1 8c0 3.859 3.14 7 7 7 3.859 0 7-3.141 7-7 0-3.86-3.141-7-7-7zm0 13c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6z"}),(0,h.h)("path",{d:"M11 7.5H8.5V4a.5.5 0 0 0-1 0v4a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 0-1z"}
1)),xe=i(844),Fe={wrapper:"providerInterstitial__wrapper__s56X8",slideUp:"providerInterstitial__slideUp__qdLLv",fade:"providerInterstitial__fade__MbJOy",slideDown:"providerInterstitial__slideDown__bSN13",fadeOut:"providerInterstitial__fadeOut__DsTNe",container:"providerInterstitial__container__gGjdu",shadow:"providerInterstitial__shadow__VAEPD",closing:"providerInterstitial__closing__X5twe",scroller:"providerInterstitial__scroller__UUGje",content:"providerInterstitial__content__j9DZ8",header:"providerInterstitial__header__kdcdX",headerContent:"providerInterstitial__headerContent__ZbMOZ",close:"providerInterstitial__close__pVynO",screeningDetails:"providerInterstitial__screeningDetails__GD5OM",theaterName:"providerInterstitial__theaterName__jZT8j",mainDetails:"providerInterstitial__mainDetails__ygPWh",date:"providerInterstitial__date__dyqll",time:"providerInterstitial__time___xCY9",format:"providerInterstitial__format__OyhP8",attributes:"providerInterstitial__attributes__GKvVw",providers:"providerInterstitial__providers__aZXi6",hasHighlightedProvider:"providerInterstitial__hasHighlightedProvider__IFqHR",provider:"providerInterstitial__provider__zr3pQ",isHighlighted:"providerInterstitial__isHighlighted__iz6zT",dark:"providerInterstitial__dark__ogvek",light:"providerInterstitial__light__U9Hhv",isNonHighlighted:"providerInterstitial__isNonHighlighted__cILXq",providerLogo:"providerInterstitial__providerLogo__VkVoG",providerName:"providerInterstitial__providerName__WIhTK",providerLink:"providerInterstitial__providerLink__KZ0xS",slideIn:"providerInterstitial__slideIn__uQZI5",slideOut:"providerInterstitial__slideOut__tsY_O",cutout:"providerInterstitial__cutout__mzBT8"};const Ze={movietickets:"MovieTickets"};class Pe extends h.wA{constructor(e){super(e),this.onClose=this.onClose.bind(this),this.onShadowClick=this.onShadowClick.bind(this),this.links=e.selectedScreening.link,this.providers=(0,m.Ne)(Object.keys(this.links))}async onClose(){this.setState({closing:!0}),await new Promise((e=>setTimeout(e,500))),p.Z.emit(this.props.isPreviewPanel?"CLOSE_PREVIEW_PANEL_PROVIDER_INTERSTITIAL":"CLOSE_PROVIDER_INTERSTITIAL"),this.setState({closing:!1})}onShadowClick(e){(null==e?void 0:e.target)===this.$shadow&&this.onClose()}trackConversion(e,t){const{trackConversion:i,selectedTheater:s,selectedScreening:o,mode:a}=this.props;null==i||i(s,o,t,a,e)}renderHeader(){var e,t,i;const{copy:s}=this.props,{appData:o,client:a}=p.Z.get(),r=(null==s||null===(e=s.baseCopy)||void 0===e?void 0:e.$WHERE_TO_BUY)||"Where to buy?",n=(null==s||null===(t=s.accessibilityCopy)||void 0===t?void 0:t.$BACK_BTN_SHOWTIMES_ARIA)||"Return to previous view",l=null===(i=o.styling)||void 0===i?void 0:i.fontVariables,c=a.isDesktopSize;return(0,h.h)("div",{class:Fe.header},c&&(0,h.h)("svg",{class:Fe.cutout,viewBox:"0 0 10 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,h.h)("path",{d:"M10,0 L10,100 L0,100 L0.000674999097,61.3169386 C4.66109189,59.6694024 8,55.2246231 8,50 C8,44.7753769 4.66109189,40.3305976 0.000674999097,38.6830614 L0,0 L10,0 Z","fill-rule":"evenodd"})),(0,h.h)("div",{class:Fe.headerContent},(0,h.h)("h4",{class:(0,u.WM)(null==l?void 0:l.providerInterstitialTitle,Fe.title)},r),(0,h.h)(Ee.Z,{class:Fe.close,onClick:this.onClose,role:"button",ariaLabel:n})))}renderTheaterLogo(){const e=(0,u.RK)(p.Z.get(),"appData.copy.accessibilityCopy.$CINEMA_LOGO_ALT","<chain>"),t=(0,u.RK)(this.props,"selectedTheater.chain.logo")||"default.png",i="".concat(this.props.sharedImageRoot,"/logos/").concat(this.props.logoShade,"/").concat(t),s=this.props.selectedTheater.chain&&this.props.selectedTheater.chain.name.replace(/\..*/,"");return(0,h.h)("div",{class:Fe.theaterLogo},(0,h.h)("img",{src:i,alt:e.replace("<chain>",s)}))}renderScreeningDetails(){var e,t,i,s,o,a;const{selectedScreening:r,copy:n,selectedTheater:l}=this.props,c=l.name||"Cinema";let{date:d,time:g,format:_,attributes:v}=r;const{appData:y}=p.Z.get(),b=null===(e=y.styling)||void 0===e?void 0:e.fontVariables,f=d.split("-");let S=new Date(+f[0],f[1]-1,+f[2]);S=(0,W.Z)(S,"ddd dd MMM");const w=[...v],T=(null==n||null===(t=n.baseCopy)||void 0===t||null===(i=t.filters)||void 0===i?void 0:i.attributes)||{};return"12"===((null===(s=y.pages)||void 0===s||null===(o=s.boltShowtimes)||void 0===o||null===(a=o.data)||void 0===a?void 0:a.clockFormat)||"24")&&(g=(0,m.wE)(g)),(0,h.h)("div",{class:Fe.screeningDetails},(0,h.h)("div",{class:(0,u.WM)(b.providerInterstitialTheaterName,Fe.theaterName)},(0,h.h)("span",null,c)),(0,h.h)("div",{class:Fe.mainDetails},(0,h.h)("div",{class:Fe.date},(0,h.h)(Ne,{ariaLabel:"Calendar"}),(0,h.h)("span",{class:b.providerDateTimeFormat},S)),(0,h.h)("div",{class:Fe.time},(0,h.h)(Be,{ariaLabel:"Clock"}),(0,h.h)("span",{class:b.providerDateTimeFormat},g)),(0,h.h)("div",{class:Fe.format},(0,h.h)(xe.Z,{ariaLabel:"Reel"}),(0,h.h)("span",{class:b.providerDateTimeFormat},_||"2D"))),(0,h.h)("div",{class:(0,u.WM)(Fe.attributes,b.providerInterstitialAttribute)},w.map((e=>(0,h.h)("span",null,T[e]||e)))))}renderProviderOptions(){var e;const t=(0,m.ku)(),i=null==t||null===(e=t.providers)||void 0===e?void 0:e.highlightedTicketProvider;return(0,h.h)("div",{class:(0,u.WM)(Fe.providers,i&&Fe.hasHighlightedProvider)},this.providers.map((e=>this.renderProvider(e))))}renderProvider(e){var t,i,s;const{sharedImageRoot:o,logoShade:a,copy:r,selectedTheater:n}=this.props,{appData:l}=p.Z.get(),c=(null==n||null===(t=n.chain)||void 0===t?void 0:t.logo)||"default.png",d="".concat(o,"/logos/").concat(a,"/").concat(c),g=null===(i=l.styling)||void 0===i?void 0:i.fontVariables,_=(0,m.ku)(),v=null==_||null===(s=_.providers)||void 0===s?void 0:s.highlightedTicketProvider,y=e===v,f=v&&this.providers.includes(v)&&!y,S="direct"===e?d:"".concat(o,"/logos/ticketproviders/").concat(a,"/").concat(e,".png"),w="direct"===e?r.baseCopy.$DIRECT_FROM_CINEMA||"Direct from cinema":Ze[e]||e.charAt(0).toUpperCase()+e.slice(1),T=r.accessibilityCopy.$PROVIDER_OPTION_ARIA.replace("direct"===e?n.name:e),C=r.baseCopy.$GO_TO_SITE||"Go to Site";return(0,h.h)("div",{class:(0,u.WM)(Fe.provider,g.providerDirect,y&&Fe.isHighlighted,f&&Fe.isNonHighlighted,Fe[a]),ariaLabel:T},(0,h.h)("div",{class:Fe.providerLogo},(0,h.h)("img",{src:S})),(0,h.h)("div",{class:(0,u.WM)(Fe.providerName,g.providerName)},w),(0,h.h)(b.Z,{class:(0,u.WM)(Fe.providerLink,g.providerLink),target:"_blank",href:this.links[e],onClick:()=>this.trackConversion(this.links[e],e),ariaLabel:T,rel:"noopener noreferrer"},C))}render(e,t){const{closing:i}=t;return(0,h.h)("div",{class:(0,u.WM)(Fe.wrapper,i&&Fe.closing)},(0,h.h)("div",{class:Fe.shadow,ref:e=>this.$shadow=e,onClick:this.onShadowClick}),(0,h.h)("div",{class:Fe.container},(0,h.h)("div",{class:Fe.scroller},(0,h.h)("div",{class:Fe.content},this.renderHeader(),this.renderScreeningDetails(),this.renderProviderOptions()))))}}
1var He=i(6091),$e=i(8744),We=i(7042),Ke=i(9022),Ve=i(9699),Ge=i(6363),qe=i(4626),ze=i(7653);const Ue=(0,ze.Z)((async()=>{if("undefined"!=typeof window)return window.google&&window.google.maps?window.google.maps:new Promise(((e,t)=>{window.googleMapsLoaded=()=>e(window.google.maps);const i=(0,u.RK)(p.Z.get(),"appData.doc.mapStyling.gmaps")||{},s={key:i.key||(0,u.RK)(p.Z.get(),"appData.apis.gmaps.key"),libraries:["places","geometry"],callback:"googleMapsLoaded"};i.language&&(s.language=i.language);const o="?"+Object.keys(s).reduce(((e,t)=>(null!=s[t]&&e.push(t+"="+s[t]),e)),[]).join("&"),a=document.createElement("script");a.onerror=t,a.src="https://maps.googleapis.com/maps/api/js"+o,document.head.appendChild(a)}))})),je=async(e,t)=>{if(!e)return;let i=await Ue();const s=Object.assign({center:{lat:51.5074,lon:-.1278},zoom:12,clickableIcons:!1,controlSize:32,disableDefaultUI:!0,mapTypeId:i.MapTypeId.ROADMAP,mapTypeControlOptions:{mapTypeIds:[i.MapTypeId.ROADMAP,"map_style"]},zoomControl:!0,zoomControlOptions:{position:i.ControlPosition.LEFT_BOTTOM},gestureHandling:"greedy"},t);s.center=new i.LatLng(s.center.lat,s.center.lon);const o=new google.maps.Map(e,s);let a=function(){let e=(0,u.RK)(p.Z.get(),"appData.doc.mapStyling.gmaps.mapStyles",[]);return(Array.isArray(e)?e:Object.values(e)).filter((e=>e))}();if(a){const e=new google.maps.StyledMapType(a,{name:"Styled Map"});o.mapTypes.set("map_style",e),o.setMapTypeId("map_style")}return o};var Ye="mapMarker__marker__QdgoJ",Xe="mapMarker__active__APGVS";const Je=()=>{const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg"),i=document.createElementNS(e,"path");return t.setAttributeNS(null,"viewBox","0 0 16 16"),i.setAttributeNS(null,"d","M8 1a6.09 6.09 0 0 0-4.243 1.697 5.654 5.654 0 0 0 0 8.193l.014.012v.015L8 15l4.191-4.047v-.015l.051-.048a5.652 5.652 0 0 0 0-8.193A6.087 6.087 0 0 0 8 1"),t.appendChild(i),t},Qe=(0,ze.Z)((async()=>{let e=await Ue();const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{position:i,activeLogoLink:s,inactiveLogoLink:o,onClick:a,isActive:r}=t;if(!i)throw new Error("A Marker cannot be created without a position");this.isActive=r,this.activeLogoLink=s,this.inactiveLogoLink=o,i instanceof e.LatLng||(i=new e.LatLng(i.lat,i.lon)),this.position=i,this.container=document.createElement("div"),this.container.classList.add(Ye),t.class&&this.container.classList.add(t.class),r&&this.container.classList.add(Xe),this.pin=Je(),this.container.appendChild(this.pin),this.logo=document.createElement("img"),this.logo.src=r?s:o,this.container.appendChild(this.logo),this.container.onclick=()=>a(this),e.OverlayView.preventMapHitsFrom(this.container)};return(t.prototype=Object.create(e.OverlayView.prototype)).onAdd=function(){this.getPanes().floatPane.appendChild(this.container)},t.prototype.onRemove=function(){this.container.parentElement&&this.container.parentElement.removeChild(this.container)},t.prototype.makeInactive=function(){this.container.classList.remove(Xe),this.logo.src=this.inactiveLogoLink,this.isActive=!1},t.prototype.makeActive=function(){this.container.classList.add(Xe),this.logo.src=this.activeLogoLink,this.isActive=!0},t.prototype.draw=function(){let e=this.getProjection().fromLatLngToDivPixel(this.position),t=Math.abs(e.x)<4e3&&Math.abs(e.y)<4e3?"block":"none";"block"===t&&(this.container.style.left=e.x+"px",this.container.style.top=e.y+8+"px"),this.container.style.display!==t&&(this.container.style.display=t)},t})),et=async(e,t)=>{let i=new(await Qe())(e);return t&&i.setMap(t),i},tt=()=>{const e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg"),i=document.createElementNS(e,"path");return t.setAttributeNS(null,"viewBox","0 0 16 16"),i.setAttributeNS(null,"d","M8 1a6.09 6.09 0 0 0-4.243 1.697 5.654 5.654 0 0 0 0 8.193l.014.012v.015L8 15l4.191-4.047v-.015l.051-.048a5.652 5.652 0 0 0 0-8.193A6.087 6.087 0 0 0 8 1"),t.appendChild(i),t},it=(0,ze.Z)((async()=>class{constructor(e){let{position:t,activeLogoLink:i,inactiveLogoLink:s,onClick:o,isActive:a,anchor:r,noPin:n,extraComp:l}=e;if(this.isActive=a,this.activeLogoLink=i,this.inactiveLogoLink=s,this.pin=tt(),this.position=t,this.container=document.createElement("div"),this.container.classList.add(Ye),e.class&&this.container.classList.add(e.class),a&&this.container.classList.add(Xe),n||(this.pin=tt(),this.container.appendChild(this.pin)),l){const e=h.ZP.render((0,h.h)(l));this.container.appendChild(e)}this.logo=document.createElement("img"),this.logo.src=a?i:s,this.container.appendChild(this.logo),this.container.onclick=()=>o(this),this.marker=new window.mapboxgl.Marker({element:this.container,anchor:r||"bottom"}).setLngLat(t)}setMap(e){e?this.marker.addTo(e):this.marker.remove()}makeInactive(){this.container.classList.remove(Xe),this.logo.src=this.inactiveLogoLink,this.isActive=!1}makeActive(){this.container.classList.add(Xe),this.logo.src=this.activeLogoLink,this.isActive=!0}})),st=async(e,t)=>{let i=new(await it())(e,t);return t&&i.setMap(t),i};var ot=JSON.parse('[{"elementType":"labels","featureType":"administrative.land_parcel","stylers":[{"visibility":"off"}]},{"elementType":"labels.text","featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","stylers":[{"visibility":"off"}]},{"elementType":"labels.text","featureType":"poi.park","stylers":[{"visibility":"off"}]}
1,{"elementType":"labels.icon","featureType":"road.highway","stylers":[{"visibility":"off"}]},{"elementType":"labels","featureType":"road.local","stylers":[{"visibility":"simplified"}]}]'),at="quickFilters__container__fvYJK",rt="quickFilters__bubbles__y3e7N",nt="quickFilters__peekHorizontal__YhAyH",lt="quickFilters__peekVertical__vDWXd",ht="quickFilters__bubble__Ltdtp",ct="quickFilters__title__T0Lx0",dt="quickFilters__scrollBoxContainer__QswuY",pt="quickFilters__active__c3gFM",ut="quickFilters__wrappedView__QiyXR",mt="quickFilters__sticky__rYRL8";const gt=(e,t)=>e&&t&&(0,u.vr)(Object.keys(e),Object.keys(t)).every((i=>e[i]===t[i]));class _t extends h.wA{constructor(e){super(e),l()(this,"updateFilters",((e,t)=>{"all"===t?p.Z.emit("FILTERS_RESET"):p.Z.emit("FILTER_TOGGLE",e,t)})),l()(this,"isActive",((e,t)=>{var i;const s=this.props.filters.selected;let o;if("all"===t)return o=this.checkFiltersEmpty(s),!!o;var a;(o=null==s||null===(i=s[e])||void 0===i?void 0:i.includes(t),"combinedLanguage"===e)&&(o=null==s||null===(a=s[e])||void 0===a?void 0:a.find((e=>gt(e,t))));return!!o})),l()(this,"renderBubbles",(e=>{var t,i,s,o;const a=(0,m.mU)(this.props.possibleOptions),r={name:(null===(t=this.props)||void 0===t||null===(i=t.appData)||void 0===i||null===(s=i.copy)||void 0===s||null===(o=s.baseCopy)||void 0===o?void 0:o.$ALL)||"All",value:"all"},n=a.reduce(((e,t)=>{var i,s;if("movie"===t.name&&"all"===(null===(i=t.allowedValues)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.toLowerCase())){const e=Object.values(this.props.allMovies||{}).map((e=>e.id));t.allowedValues=this.sortMovies(e)}if("combinedLanguage"===t.name){var o;(null===(o=t.allowedValues)||void 0===o?void 0:o.filter((e=>{let t=!0;return Object.keys(e).forEach((i=>{var s;null!==(s=this.props.filters.available[i])&&void 0!==s&&s.includes(e[i])||(t=!1)})),t}))).forEach((t=>{e.push({name:"combinedLanguage",value:t})}))}else{let i=this.props.filters.available[t.name];if(!i)return e;t.allowedValues&&(i=t.allowedValues.filter((e=>-1!==i.indexOf(e))));for(let s=0;s<i.length;s+=1)e.push({name:t.name,value:i[s]})}return e}),[r]),l=null==n?void 0:n.map((e=>{var t,i,s;let{name:o,value:a}=e,r=a;const n=(null===(t=this.props)||void 0===t||null===(i=t.appData)||void 0===i||null===(s=i.copy)||void 0===s?void 0:s.baseCopy)||{},l=n.filters||{},c=n.languages||{};return r="combinedLanguage"===o?E(a):"originalLanguage"===o?n.$ORIGINAL_LANGUAGE:"subtitles"===o?n.$LANGUAGE_SUB:"dubbing"===o?n.$LANGUAGE_DUB:"overVoice"===o?n.$LANGUAGE_OV:"movie"===o?(0,m.g4)(a):"all"===a?o:l[o]&&l[o][a],r=r?r.replace("<lang>",c[a]):a,(0,h.h)("button",{key:"".concat(o,"-").concat(a),id:a,onClick:()=>{this.updateFilters(o,a),this.scrollBubbleIntoView(a)},className:(0,u.WM)(ht,this.isActive(o,a)&&pt)},r)}));return e&&l.unshift((0,h.h)("div",{className:ct},e)),l.length!==this.state.numBubbles&&this.setState({numBubbles:l.length}),(0,h.h)("div",{className:rt,ref:e=>this.$bubbles=e},l)})),this.state={numBubbles:0}}componentDidUpdate(e,t){var i;const s=null==e||null===(i=e.filters)||void 0===i?void 0:i.selected;var o;(this.filtersChanged(s,this.props.filters.selected)&&(p.Z.emit("TRACK_FILTERS_CHANGE",this.props.filters.selected),p.Z.emit("SHOWTIMES_REFRESH"),p.Z.on("FILTER_SCROLL_INTO_VIEW",(e=>{this.scrollBubbleIntoView(e)}))),this.props.enablePeeking&&t.numBubbles!==this.state.numBubbles)&&((null===(o=this.$scrollBox)||void 0===o?void 0:o.$scroller.clientWidth)<this.$bubbles.clientWidth&&this.$bubbles.classList.add(nt),this.$bubbles.clientHeight>this.$container.clientHeight&&this.$bubbles.classList.add(lt))}filtersChanged(e,t){return e!==t&&Object.keys(t).some((i=>{var s,o,a;return!("date"===i&&!e.date&&t.date[0]===(null===(s=this.props.filters)||void 0===s||null===(o=s.available)||void 0===o||null===(a=o.date)||void 0===a?void 0:a[0]))&&!gt(e[i],t[i])}))}checkFiltersEmpty(e){return Object.keys(e).every((t=>"date"===t||!Array.isArray(e[t])||!e[t].length))}sortMovies(e){const t=(0,m.Gg)("movieId");return e.sort(((e,i)=>{if(t.length){const s=t.indexOf(e),o=t.indexOf(i);if(s>-1||o>-1)return o-s}return(0,m.g4)(e).localeCompare((0,m.g4)(i))}))}scrollBubbleIntoView(e){const t=document.getElementById(e);(0,$.GZ)(this.$scrollBox.base,t,200,{direction:"hor",relativeTo:"view",offsetStart:25,offsetEnd:25})}render(){const{isRTL:e,isSticky:t,title:i,wrappedView:s}=this.props;return(0,h.h)("div",{className:(0,u.WM)(at,t&&mt,s&&ut),ref:e=>this.$container=e},(0,h.h)(H,{class:(0,u.WM)(dt),device:"mobile",tabIndex:"0",onKeyDown:this.filtersKeyDown,ref:e=>this.$scrollBox=e,hideScrollerBar:!0,isRTL:e},this.renderBubbles(i)))}}var vt=i(7201),yt="recaptcha__wrapper__PzY1U",bt="recaptcha__loader__gXFp5",ft="recaptcha__notesText__T1WZp";class St extends h.wA{constructor(e){super(e),this.loadScript=this.loadScript.bind(this),this.renderGrecaptcha=this.renderGrecaptcha.bind(this),this.isReady=this.isReady.bind(this),this.reset=this.reset.bind(this),this.state={ready:this.isReady(),widget:null},this.readyCheck=null,this.state.ready||"undefined"==typeof window||(this.readyCheck=setInterval(this.updateReadyState.bind(this),1e3))}componentDidMount(){this.loadScript("https://www.google.com/recaptcha/api.js","reCaptcha"),this.state.ready&&this.renderGrecaptcha()}componentDidUpdate(e,t){const{onLoad:i}=this.props;i&&this.state.ready&&!t.ready&&this.renderGrecaptcha()}componentWillUnmount(){var e;clearInterval(this.readyCheck),null===(e=this.$captcha)||void 0===e||e.remove(),this.props.onUnmount()}loadScript(e,t){return new Promise(((i,s)=>{let o=document.createElement("script");o.onload=i,o.onerror=s,o.src=e,o.id=t,document.body.appendChild(o)}))}renderGrecaptcha(){this.state.widget=window.grecaptcha.render(this.$captcha,{sitekey:this.props.siteKey,callback:this.props.onSuccess?this.props.onSuccess:void 0,theme:this.props.theme,type:this.props.type,size:this.props.size,tabindex:this.props.tabindex,hl:this.props.hl,badge:this.props.badge,"expired-callback":this.props.onFailed?this.props.onFailed:void 0}),this.props.onLoad&&this.props.onLoad()}updateReadyState(){this.isReady()&&(this.setState({ready:!0}),clearInterval(this.readyCheck))}isReady(){return"undefined"!=typeof window&&void 0!==window.grecaptcha&&"function"==typeof window.grecaptcha.render}reset(){const{ready:e,widget:t}=this.state;e&&null!==t&&window.grecaptcha.reset(t)}render(e){const{type:t}=e;return this.state.ready?"v2-tickbox"===t?(0,h.h)("div",{className:yt},(0,h.h)("div",{ref:e=>this.$captcha=e}),(0,h.h)("div",{className:ft},(0,h.h)("div",null,"reCAPTCHA helps prevent automated form spam. "),(0,h.h)("div",null,"The submit button will be disabled until you complete the CAPTCHA."))):void 0:(0,h.h)("div",{className:yt},(0,h.h)("div",{className:bt},"reCAPTCHA"))}}var wt="field__wrapper___Kkd1",Tt="field__selected__Qri5u",Ct="field__timepicker__GHjRA",kt="field__noBg__MvIoU",Et="field__errorText__Wt0d6",It="field__notesText__rAHgA",Dt="field__labelAlike__w6pw6",Mt="field__plainText__daoT8",Rt="field__paragraph__lsv13",At="field__value__h0_mt",Lt="field__label__s5WVY",Ot="field__iconRight__USO0W",Nt="field__selectWrapper__nn8kU";class Bt extends h.wA{constructor(e){super(e),l()(this,"onValueChange",(()=>{const{id:e,onInput:t}=this.props,i=this.$element,s=i.value,o=this.getValidationMessage("select"),a=new RegExp(this.props.regex);s&&a&&a.test(s)?(i.style.color="black",this.clearClues(i)):this.showClues(i,o),null==t||t(e,s)})),l()(this,"getValidationMessage",(e=>{const t=this.props.validationMessage;return t||("input"===e?"Please insert a value":"select"===e?"Please select a value":"Please check this field first")})),l()(this,"onPaste",(e=>{this.setState({errorMessage:"Pasting is not allowed"}),e.preventDefault()})),l()(this,"onTimePickerValueChange",((e,t)=>
1{var i,s,o,a,r,n,l,h,c;const{id:d,onInput:p}=this.props;switch(t){case"hour":this.$selectHour.style.color="black",this.$selectHour.style.outline="",(null===(i=this.$selectHour)||void 0===i?void 0:i.value)&&(null===(s=this.$selectMinute)||void 0===s?void 0:s.value)&&(null===(o=this.$selectMeridian)||void 0===o?void 0:o.value)&&this.setState({errorMessage:""}),null==p||p(d,{hour:e,minute:this.$selectMinute.value,meridian:this.$selectMeridian.value});break;case"minute":this.$selectMinute.style.color="black",this.$selectMinute.style.outline="",(null===(a=this.$selectHour)||void 0===a?void 0:a.value)&&(null===(r=this.$selectMinute)||void 0===r?void 0:r.value)&&(null===(n=this.$selectMeridian)||void 0===n?void 0:n.value)&&this.setState({errorMessage:""}),null==p||p(d,{hour:this.$selectHour.value,minute:e,meridian:this.$selectMeridian.value});break;case"meridian":this.$selectMeridian.style.color="black",this.$selectMeridian.style.outline="",(null===(l=this.$selectHour)||void 0===l?void 0:l.value)&&(null===(h=this.$selectMinute)||void 0===h?void 0:h.value)&&(null===(c=this.$selectMeridian)||void 0===c?void 0:c.value)&&this.setState({errorMessage:""}),null==p||p(d,{hour:this.$selectHour.value,minute:this.$selectMinute.value,meridian:e})}})),l()(this,"showClues",((e,t)=>{e.style.outline="2px solid red",e.style.outlineOffset="-2px",this.setState({errorMessage:t})})),l()(this,"clearClues",(e=>{e&&(e.style.outline="",this.setState({errorMessage:""}))})),l()(this,"renderTimepicker",(e=>{var t;const{nameHour:i,nameMinutes:s,nameMeridian:o,required:a,value:r,wrapperClass:n}=this.props,{errorMessage:l}=this.state,c=null===(t=this.props)||void 0===t?void 0:t.notes,d=null==r?void 0:r.hour,p=null==r?void 0:r.minute,m=null==r?void 0:r.meridian;return(0,h.h)("div",{id:e,class:(0,u.WM)(wt,n&&n)},(0,h.h)("div",{className:Ct},(0,h.h)("select",{className:d&&Tt,required:a,name:i,ref:e=>this.$selectHour=e,onInput:e=>this.onTimePickerValueChange(e.target.value,"hour")},(0,h.h)("option",{value:"",disabled:!0,selected:!d},"Hour"),(0,h.h)("option",{value:"1",selected:"1"===d},"1"),(0,h.h)("option",{value:"2",selected:"2"===d},"2"),(0,h.h)("option",{value:"3",selected:"3"===d},"3"),(0,h.h)("option",{value:"4",selected:"4"===d},"4"),(0,h.h)("option",{value:"5",selected:"5"===d},"5"),(0,h.h)("option",{value:"6",selected:"6"===d},"6"),(0,h.h)("option",{value:"7",selected:"7"===d},"7"),(0,h.h)("option",{value:"8",selected:"8"===d},"8"),(0,h.h)("option",{value:"9",selected:"9"===d},"9"),(0,h.h)("option",{value:"10",selected:"10"===d},"10"),(0,h.h)("option",{value:"11",selected:"11"===d},"11"),(0,h.h)("option",{value:"12",selected:"12"===d},"12")),(0,h.h)("select",{className:p&&Tt,required:a,name:s,ref:e=>this.$selectMinute=e,onInput:e=>this.onTimePickerValueChange(e.target.value,"minute")},(0,h.h)("option",{value:"",disabled:!0,selected:!p},"Minute"),(0,h.h)("option",{value:"00",selected:"00"===p},"00"),(0,h.h)("option",{value:"15",selected:"15"===p},"15"),(0,h.h)("option",{value:"30",selected:"30"===p},"30"),(0,h.h)("option",{value:"45",selected:"45"===p},"45")),(0,h.h)("select",{className:m&&Tt,required:a,name:o,ref:e=>this.$selectMeridian=e,onInput:e=>this.onTimePickerValueChange(e.target.value,"meridian")},(0,h.h)("option",{disabled:!0,selected:!m,value:""},"AM/PM"),(0,h.h)("option",{selected:"AM"===m,value:"AM"},"AM"),(0,h.h)("option",{selected:"PM"===m,value:"PM"},"PM"))),l&&(0,h.h)("div",{className:Et},l),c&&(0,h.h)("div",{className:It},c))})),l()(this,"renderDatepicker",(()=>{var e;const{id:t,value:i,placeholder:s,required:o,disabled:a,class:r,wrapperClass:n,noBg:l,onInput:c}=this.props,{errorMessage:d}=this.state,p=null===(e=this.props)||void 0===e?void 0:e.notes;return(0,h.h)("div",{className:(0,u.WM)(wt,n&&n)},(0,h.h)("input",{id:t,value:i,className:(0,u.WM)(r,i&&Tt,l&&kt),type:"date",required:o,placeholder:s,disabled:a,ref:e=>this.$element=e,onKeyDown:e=>this.props.onKeyDown&&this.onKeyDown(e,"input"),onPaste:e=>this.onPaste(e),onInput:c&&this.onValueChange}),d&&(0,h.h)("div",{className:Et},d),p&&(0,h.h)("div",{className:It},p))})),this.onKeyDown=(0,u.Ds)(this.onKeyDown.bind(this),500),this.state={errorMessage:""},this.validateSelect=this.validateSelect.bind(this),this.validateInput=this.validateInput.bind(this),this.validateTimepicker=this.validateTimepicker.bind(this)}onKeyDown(e,t){const{id:i,onInput:s}=this.props,o=this.$element.value,a=this.getValidationMessage("input"),r=new RegExp(this.props.regex);if(t){if("number"===t){["-","e","+","E"].some((e=>o.includes(e)))||Number(o)<2||Number(o)>40?(e.preventDefault(),this.showClues(this.$element,a),null==s||s(i,"")):(this.clearClues(this.$element),null==s||s(i,o)),o||(this.$element.value="",this.showClues(this.$element,a))}}else o&&r&&!r.test(o)?this.showClues(this.$element,a):this.clearClues(this.$element),null==s||s(i,o)}validateSelect(){const e=this.getValidationMessage("select");!this.$element.value&&this.props.required&&this.showClues(this.$element,e)}validateTimepicker(){var e,t,i;const s=this.getValidationMessage("timepicker"),o=null===(e=this.$selectMeridian)||void 0===e?void 0:e.value,a=null===(t=this.$selectHour)||void 0===t?void 0:t.value,r=null===(i=this.$selectMinute)||void 0===i?void 0:i.value;!o&&(this.props.required||a||r)&&this.showClues(this.$selectMeridian,s),!a&&(this.props.required||o||r)&&this.showClues(this.$selectHour,s),!r&&(this.props.required||o||a)&&this.showClues(this.$selectMinute,s)}validateInput(){const e=this.getValidationMessage(),t=new RegExp(this.props.regex);!this.$element.value&&this.props.required&&this.showClues(this.$element,e),this.$element.value&&t&&!t.test(this.$element.value)&&this.showClues(this.$element,e)}render(){var e;const{id:t,name:i,options:s,value:o,placeholder:a,type:r,subtype:n,required:l,disabled:c,label:d,class:p,wrapperClass:m,noBg:g,labelAlike:_,onInput:v,plainText:y}=this.props,{errorMessage:b}=this.state,f=null===(e=this.props)||void 0===e?void 0:e.notes;return"select"===r?(0,h.h)("div",{class:(0,u.WM)(wt,Nt,m&&m)},(0,h.h)("select",{id:t,required:l,name:i,ref:e=>this.$element=e,onInput:this.onValueChange,className:o&&Tt},(0,h.h)("option",{value:"",disabled:!0,selected:!o},a),s.map((e=>{let t=e;if("regal-cinemas"===this.props.formId&&"StateName"===this.props.name){t=/\(([^)]+)\)/.exec(e)[1]}return(0,h.h)("option",{value:t,selected:o===e},e)}))),b&&(0,h.h)("div",{className:Et},b),f&&(0,h.h)("div",{className:It},f)):"datepicker"===r?this.renderDatepicker(t):"timepicker"===r?this.renderTimepicker(t):"textarea"===r?(0,h.h)("div",{className:(0,u.WM)(wt,m&&m)},(0,h.h)("textarea",{id:t,ref:e=>this.$element=e,value:o,className:o&&Tt,type:n,required:l,onPaste:this.onPaste,placeholder:a,disabled:c,name:i,onKeyDown:e=>this.onKeyDown(e,n)}),b&&(0,h.h)("div",{className:Et},b),f&&(0,h.h)("div",{className:It},f)):"paragraph"===r?(0,h.h)("div",{class:(0,u.WM)(wt,Rt,_&&Dt,y&&Mt,m&&m)},(0,h.h)("p",null,(0,h.h)("span",{className:Lt},d),(0,h.h)("span",{className:At},o),this.props.icon&&(0,h.h)("span",{className:Ot},this.props.icon))):(0,h.h)("div",{className:(0,u.WM)(wt,m&&m)},(0,h.h)("input",{id:t,name:i,value:o,className:(0,u.WM)(p,o&&Tt,g&&kt),type:n,required:l,placeholder:a,disabled:c,ref:e=>this.$element=e,onKeyDown:e=>this.props.onKeyDown&&this.onKeyDown(e,n),onPaste:e=>this.onPaste(e),onInput:v&&this.onValueChange}),b&&(0,h.h)("div",{className:Et},b),f&&(0,h.h)("div",{className:It},f))}}var xt="form__groupBookingForm__MqUDr",Ft="form__withLabelField__tIEVz",Zt="form__flexWidth__rNyjd",Pt="form__visibleFormFields__JftjT",Ht="form__hiddenFormFields__NwDIv",$t="form__visible__VG0oo",Wt="form__hidden__CfOf2",Kt="form__notEditableField___WzpR";class Vt extends h.wA{constructor(e){super(e),l()(this,"validateCaptcha",(()=>{this.$captcha&&this.$captcha.validateInput()})),l()(this,"onRecaptchaSuccess",(()=>this.props.onChange("captcha",!0))),l()(this,"onRecaptchaFailed",(()=>this.props.onChange("captcha",""))),l()(this,"onRecaptchaLoad",(()=>this.props.onChange("captcha",""))),l()(this,"getFieldObjects",(()=>{const{fields:e,data:t}=this.props;return e.map((e=>
1{const{stage:i,id:s,placeholder:o,validation:a}=e,r=e.selectOptions?e.selectOptions.split(",").map((e=>e.trim())):void 0,n=()=>{if(e.renderCondition)return e.renderCondition.split(",").map((e=>t[e.trim()])).every((e=>{if(e)return e.hour||e.minute||e.meridian?this.props.isValidTime(e):e}))};return{stage:i,id:s,name:e.name,type:e.type,renderCondition:void 0===n()||n(),...e.flexBasis&&{flexBasis:"calc(".concat(e.flexBasis," - 10px)")},...e.flexWidth&&{flexWidth:e.flexWidth},hasLabel:e.hasLabel,...e.notes&&{notes:e.notes},...e.hidden&&{hidden:e.hidden},...!e.hidden&&{label:e.label||o,placeholder:o||"",overwritePlaceholder:e.overwritePlaceholder||"",regex:a.regex,validationMessage:a.message,..."select"===e.type&&{options:r||["Please add the select options for field id: ".concat(s)]},..."timepicker"===e.type&&{nameHour:e.nameHour,nameMinutes:e.nameMinutes,nameMeridian:e.nameMeridian},...e.required&&{required:!0}}}}))})),l()(this,"renderFormFields",(e=>{const{onChange:t,formId:i,data:s,currentStage:o}=this.props;return e.map((e=>{const{stage:a,id:r,name:n,type:l,required:c,label:d,regex:p,validationMessage:m,renderCondition:g,hasLabel:_}=e,v=null==e?void 0:e.notes,y=a===o?$t:Wt,b=null==e?void 0:e.flexBasis,f=null==e?void 0:e.flexWidth,S=(null==e?void 0:e.placeholder)||d,w=null==e?void 0:e.options,T=null==e?void 0:e.nameHour,C=null==e?void 0:e.nameMeridian,k=null==e?void 0:e.nameMinutes;return(0,h.h)("div",{className:(0,u.WM)(_&&Ft,f&&Zt),style:{flexBasis:b||""}},g&&_&&(0,h.h)(Bt,{type:"paragraph",label:d,labelAlike:!0,wrapperClass:y}),g&&(0,h.h)(Bt,{formId:i,ref:e=>this["$".concat(r)]=e,id:r,name:n,value:s[r],type:l,options:w,label:d,placeholder:S,onInput:t,nameHour:T,nameMinutes:k,nameMeridian:C,regex:p,validationMessage:m,notes:v,wrapperClass:y,required:c}))}))})),l()(this,"renderConfirmationFields",(e=>{const{data:t,currentStage:i,hasRecaptcha:s,formId:o}=this.props,a=new Date(this.props.data.formDate),r=e.filter((e=>"formDate"!==e.id&&"date"!==e.id&&t[e.id])).map((e=>{const i=t[e.id],s="timepicker"===e.type&&i?"".concat(null==i?void 0:i.hour,":").concat(null==i?void 0:i.minute," ").concat(null==i?void 0:i.meridian):i,o=null==e?void 0:e.flexBasis,a=null==e?void 0:e.flexWidth,r=null==e?void 0:e.hasLabel,n=(0,h.h)(Bt,{type:"paragraph",value:s||"N/A",wrapperClass:Kt,plainText:!0});return(0,h.h)("div",{className:(0,u.WM)(r&&Ft,a&&Zt),style:{flexBasis:o||"",marginTop:"0"}},r&&(0,h.h)(Bt,{type:"paragraph",label:e.label,labelAlike:!0}),n)}));return(0,h.h)("div",{className:i===this.props.finalStage?Pt:Ht},(0,h.h)("div",{className:Ft},(0,h.h)(Bt,{type:"paragraph",label:"Date*",labelAlike:!0}),(0,h.h)(Bt,{type:"paragraph",value:new Intl.DateTimeFormat("en-US",{dateStyle:"full"}).format(a),wrapperClass:Kt,plainText:!0})),r,this.renderCustomInput(),s&&i===this.props.finalStage&&("amc-theatres"!==o||this.shouldRenderCaptcha)&&this.renderCaptcha())})),this.validateAll=this.validateAll.bind(this),this.renderHiddenFields=this.renderHiddenFields.bind(this),this.renderCaptcha=this.renderCaptcha.bind(this),this.renderCustomInput=this.renderCustomInput.bind(this),this.onFormSubmit=this.onFormSubmit.bind(this),this.state={}}validateAll(){const{currentStage:e}=this.props,t=this.getFieldObjects().filter((t=>t.stage===e));t.forEach((e=>{const{id:t}=e;if(!t)return;const i=this["$".concat(t)];"input"===e.type||"textarea"===e.type?i&&i.validateInput():"select"===e.type?i&&i.validateSelect():"timepicker"===e.type&&i&&i.validateTimepicker()}))}renderCaptcha(){return(0,h.h)(St,{type:"v2-tickbox",siteKey:this.props.recaptchaKey,onSuccess:this.onRecaptchaSuccess,onFailed:this.onRecaptchaFailed,onLoad:this.onRecaptchaLoad,onUnmount:this.onRecaptchaFailed})}renderCustomInput(){}componentWillUnmount(){this.props.onChange("captcha","")}renderHiddenFields(){const e=this.props.data.formDate,{selectedTheaterName:t,movieTitle:i}=this.props;return(0,h.h)("div",{id:"hidden-fields"},(0,h.h)("input",{type:"hidden",name:"Theatre",value:t}),(0,h.h)("input",{type:"hidden",name:"Date",value:new Intl.DateTimeFormat("en-US").format(new Date(e))}),(0,h.h)("input",{type:"hidden",name:"Movie",value:i}),(0,h.h)("input",{type:"hidden",name:"SourceName",value:"Powster"}))}componentDidUpdate(e,t){const{formId:i,currentStage:s}=this.props;if(s&&s!==e.currentStage){const t=document.querySelector("#".concat(i));(0,$.GZ)(t);const s=this.getFieldObjects().filter((t=>t.stage===e.currentStage));
1s.forEach((e=>{const{id:t}=e;if(!t)return;const i=this["$".concat(t)];i&&i.$element&&i.clearClues(i.$element)}))}}onFormSubmit(e){var t,i;this.props.htmlSubmit?null===(t=(i=this.props).setFormSubmitted)||void 0===t||t.call(i):e.preventDefault()}render(){const{formId:e,currentStage:t,htmlSubmit:i,submitUrl:s,submitToNewTab:o}=this.props,a=this.getFieldObjects();let r;return i&&o&&(r="_blank"),(0,h.h)("form",{id:e,className:xt,acceptCharset:"utf-8",autoComplete:"on",noValidate:"true",action:i&&s,method:i&&"POST",target:r,onSubmit:this.onFormSubmit},this.renderHiddenFields(),(0,h.h)("div",{ref:e=>this.$formFieldsContainer=e,className:t===this.props.finalStage?Ht:Pt},this.renderFormFields(a)),this.renderConfirmationFields(a))}}class Gt extends Vt{constructor(e){super(e),this.shouldRenderCaptcha=!0}onFormSubmit(e){var t,i;this.props.htmlSubmit?null===(t=(i=this.props).setFormSubmitted)||void 0===t||t.call(i):e.preventDefault()}}class qt extends Vt{renderHiddenFields(){const e=new Date(this.props.data.formDate),{selectedTheaterName:t,movieTitle:i}=this.props;return(0,h.h)("div",{id:"hidden-fields"},(0,h.h)("input",{type:"hidden",name:"Theatre",value:t}),(0,h.h)("input",{type:"hidden",name:"Date",value:new Intl.DateTimeFormat("en-US").format(new Date(e))}),(0,h.h)("input",{type:"hidden",name:"Movie",value:i}),(0,h.h)("input",{type:"hidden",name:"ReferralDetails",value:"Powster"}),(0,h.h)("input",{type:"hidden",name:"LeadSourceDetails",value:"Powster"}),(0,h.h)("input",{type:"hidden",name:"EventProductName",value:"Meeting & Movie"}),(0,h.h)("input",{type:"hidden",name:"Owner",value:"32071894-71e7-e911-a83e-000d3a192483"}),(0,h.h)("input",{type:"hidden",name:"OwnerIsTeam",value:"True"}),(0,h.h)("input",{type:"hidden",name:"EventType",value:"Business Event"}))}}var zt="form__wrapper__hjiKg",Ut="form__container__sPuLG",jt="form__loader__U77HI",Yt="form__captcha__CtOGq",Xt="form__disclaimer__J_nGu",Jt="form__inputContainer__Ww1S7",Qt="form__notesText__v7u2s",ei="form__filler__AyOQ2";class ti extends Vt{constructor(e){super(e),l()(this,"renderJotCaptcha",(()=>{const{formId:e,data:t}=this.props;return(0,h.h)("div",{className:zt,id:"customJotCaptcha"},(0,h.h)("p",{className:Xt},"AMC will never share your personal data. ",(0,h.h)("a",{href:"https://www.amctheatres.com/privacy-policy",target:"_blank",rel:"nofollow"},"Privacy Policy"),"."),(0,h.h)("div",{className:Qt},(0,h.h)("div",null,"By submitting this form I understand this form is only a request. A Special Events Consultant will be in touch within 3-5 business days. Your event is not confirmed until payment has been remitted. You will receive a submission confirmation email. If you don't receive, please check your SPAM or JUNK folders.")),(0,h.h)("div",{className:Ut},(0,h.h)("img",{id:"customJotCaptcha_captcha",className:jt}),(0,h.h)("div",{className:Jt},(0,h.h)(Bt,{formId:e,ref:e=>this.$captcha=e,id:"captcha",name:"captcha",value:t.captcha,type:"input",onInput:this.props.onChange,regex:"[^\\n]+",validationMessage:"Please complete the captcha first",wrapperClass:Yt,required:!0}),(0,h.h)("input",{type:"hidden",id:"input_81_captcha_id",name:"captcha_id",required:!0}),(0,h.h)("div",{className:ei}),(0,h.h)("img",{src:"https://cdn.jotfor.ms/images/reload.png",height:20,alt:"Reload",onClick:this.reloadJotCaptcha}))))})),l()(this,"reloadJotCaptcha",(e=>{e.preventDefault(),window.JotForm&&window.JotForm.reloadCaptcha("customJotCaptcha")})),l()(this,"renderHiddenFields",(()=>{const{movieTitle:e,amcName:t}=this.props,i=new Date(this.props.data.formDate);return(0,h.h)("div",{id:"hidden-fields"},(0,h.h)("input",{type:"hidden",name:"formID",value:"230295261872054"}),(0,h.h)("input",{type:"hidden",id:"JWTContainer",value:""}),(0,h.h)("input",{type:"hidden",id:"cardinalOrderNumber",value:""}),(0,h.h)("input",{type:"hidden",name:"q13_desiredLocation",value:t}),(0,h.h)("input",{type:"hidden",name:"q16_desiredOpen",value:t}),(0,h.h)("input",{type:"hidden",name:"q17_btLocation",value:t}),(0,h.h)("input",{type:"hidden",name:"q85_btTitle",value:e}),(0,h.h)("input",{type:"hidden",name:"q27_btDate[month]",value:null==i?void 0:i.getMonth()}),(0,h.h)("input",{type:"hidden",name:"q27_btDate[day]",value:null==i?void 0:i.getDay()}),(0,h.h)("input",{type:"hidden",name:"q27_btDate[year]",value:null==i?void 0:i.getFullYear()}),(0,h.h)("input",{type:"hidden",name:"q3_eventType",value:"Current/Future Release"}),(0,h.h)("input",{type:"hidden",name:"q98_filmPackage",value:"Group Sale Buyout"}),(0,h.h)("input",{type:"hidden",name:"q21_teamhidden",value:"Group Sale"}),(0,h.h)("input",{type:"hidden",name:"q80_teamEmail",value:"[email protected]"}))})),this.shouldRenderCaptcha=!0}async componentDidMount(){await(0,u.ve)("https://cdn01.jotfor.ms/static/prototype.forms.js?3.3.35637"),await(0,u.ve)("https://cdn02.jotfor.ms/static/jotform.forms.js?3.3.35637")}renderCustomInput(){return this.renderJotCaptcha()}renderCaptcha(){!0===this.shouldRenderCaptcha&&(this.shouldRenderCaptcha=!1,window.JotForm&&window.JotForm.initCaptcha("customJotCaptcha"))}}class ii extends Vt{renderHiddenFields(){const e=this.props.data.formDate,{selectedTheaterName:t,movieTitle:i,selectedTheaterCity:s}=this.props;return(0,h.h)("div",{id:"hidden-fields"},(0,h.h)("input",{type:"hidden",name:"cmEventType",value:"Private Screening"}),(0,h.h)("input",{type:"hidden",name:"cmLeadSource",value:"Partner"}),(0,h.h)("input",{type:"hidden",name:"cmMovieSource",value:i}),(0,h.h)("input",{type:"hidden",name:"cmTheatreName",value:t}),(0,h.h)("input",{type:"hidden",name:"cmTheatreCity",value:s}),(0,h.h)("input",{type:"hidden",name:"cmRequestedEventDate",value:new Intl.DateTimeFormat("en-US").format(new Date(e))}))}}var si={eventInquiryContainer:"groupBookingsInquiry__eventInquiryContainer__Tjc4E",stageSelection:"groupBookingsInquiry__stageSelection__WhzAA",stage:"groupBookingsInquiry__stage__lF7zf",currentStage:"groupBookingsInquiry__currentStage__rBRat",pannels:"groupBookingsInquiry__pannels__HQzDl",mainPannel:"groupBookingsInquiry__mainPannel__jNpHK",title:"groupBookingsInquiry__title__WsY3B",description:"groupBookingsInquiry__description__HwqEq",dontForget:"groupBookingsInquiry__dontForget__jYtsy",mainContent:"groupBookingsInquiry__mainContent__aOREE",bottomBar:"groupBookingsInquiry__bottomBar__Qic7P",movieDetails:"groupBookingsInquiry__movieDetails__w9vbZ",icon:"groupBookingsInquiry__icon__v8l08",rtlIcon:"groupBookingsInquiry__rtlIcon__I91s9",header:"groupBookingsInquiry__header__Fy_c5",details:"groupBookingsInquiry__details__VIW3h",movieTitle:"groupBookingsInquiry__movieTitle__DG0nu",theaterName:"groupBookingsInquiry__theaterName__gjvmd",disabledButton:"groupBookingsInquiry__disabledButton__n_H5e",formSubmissionIcon:"groupBookingsInquiry__formSubmissionIcon__oFvd5",secondaryIcon:"groupBookingsInquiry__secondaryIcon__K0Fzp",submissionErrorIcon:"groupBookingsInquiry__submissionErrorIcon__ckiKa",submittedOverlay:"groupBookingsInquiry__submittedOverlay__g3XHg",completeFieldsFirst:"groupBookingsInquiry__completeFieldsFirst___8HwS",outerContainer:"groupBookingsInquiry__outerContainer__Faghv",unsupported:"groupBookingsInquiry__unsupported__ugWkh",filler:"groupBookingsInquiry__filler__V2RQy",noBg:"groupBookingsInquiry__noBg__UjBVc",submitButton:"groupBookingsInquiry__submitButton__uE_0J",spinner:"groupBookingsInquiry__spinner__Q1WM5"};class oi extends h.wA{constructor(e){var t,i,s,o,a,r,n,c,d,g,_,v,y,b,f,S,w,T,C,k,E,I,D,M;super(e),l()(this,"navigateStages",(e=>{const{formData:t}=this.props,i=t.currentStage||this.initialStage,s=this.currentStageComplete(),o=this.stages.findIndex((e=>e===i));p.Z.emit("GROUP_BOOKINGS_NAVIGATE_STAGES",e||"next"),"previous"!==e?s?this.props.onChange("currentStage",this.stages[o+1]):this.$form.validateAll():this.props.onChange("currentStage",this.stages[o-1])})),l()(this,"handleFormSubmission",(async e=>{e.preventDefault();
1if(this.currentStageComplete())if(p.Z.emit("GROUP_BOOKINGS_SUBMIT",this.props.selectedTheater),this.setState({submissionLoading:!0}),this.htmlSubmit){var t;let e=null===(t=this.$form)||void 0===t?void 0:t.base;null!=e&&e.requestSubmit?e.requestSubmit():null==e||e.submit(),this.setState({submissionLoading:!1})}else{var i;const e=new FormData(null===(i=this.$form)||void 0===i?void 0:i.base);let t={};for(let i of e.keys())t[i]=e.get(i);const{movieTitle:s,theaterName:o}=this.getMovieTitleAndTheater();if(t.startTime="".concat(t.hour,":").concat(t.minute," ").concat(t.meridian),t.date=(new Date).toISOString().slice(0,10),t.chainId=this.props.chainId,t.film=s,t.theaterLocation=o,delete t["g-recaptcha-response"],delete t.currentStage,"email_form"===this.groupBookingFormType){const e=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.movieId","");t.movieId=e}const a=new Headers;a.append("Content-type","application/json");const r=new Request(this.submitUrl,{headers:a,body:JSON.stringify(t),method:"POST",mode:"cors"}),n=await fetch(r);this.setState({submissionLoading:!1}),n.ok?200!==n.status&&201!==n.status||this.setFormSubmitted():this.setState({renderFormError:!0})}else this.$form.validateCaptcha()})),l()(this,"renderFormSubmitted",(()=>{var e,t;const i=p.Z.get(),s=(null==i||null===(e=i.appData)||void 0===e||null===(t=e.copy)||void 0===t?void 0:t.baseCopy)||{},o={content:s.$FORM_SUBMITTED_CONFIRMATION||"The theater will be in touch soon!",title:s.$INQUIRY_SENT||"Inquiry Sent",buttonTooltip:s.$BACK_TO_THEATER||"Back to theater listing"};return(0,h.h)(U,{ref:e=>this.$tooltip=null==e?void 0:e.base,class:si.submittedOverlay,data:o,isMobile:!0,isOpen:!0,position:"topRight",onHide:()=>{const e="mobile"===(0,u.RK)(p.Z.get(),"client.deviceSize",{})?"POP_HEADER_ACTION":"POP_SHOWTIMES_BTN_ACTION";p.Z.emit(e),this.props.goBack()},icon:(0,h.h)("div",{className:si.formSubmissionIcon},(0,h.h)("svg",{width:"35",height:"33",viewBox:"0 0 35 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,h.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.89 30H5C4.33696 30 3.70107 29.7366 3.23223 29.2678C2.76339 28.7989 2.5 28.163 2.5 27.5V11.5H32.5V16.39C33.4386 16.9378 34.2828 17.6334 35 18.45V5C35 3.67392 34.4732 2.40215 33.5355 1.46447C32.5979 0.526784 31.3261 0 30 0L5 0C3.67392 0 2.40215 0.526784 1.46447 1.46447C0.526784 2.40215 0 3.67392 0 5L0 27.5C0 28.8261 0.526784 30.0979 1.46447 31.0355C2.40215 31.9732 3.67392 32.5 5 32.5H21C20.1656 31.7867 19.4529 30.9424 18.89 30ZM10 2.5H30C30.663 2.5 31.2989 2.76339 31.7678 3.23223C32.2366 3.70107 32.5 4.33696 32.5 5V9H2.5V5C2.5 4.33696 2.76339 3.70107 3.23223 3.23223C3.70107 2.76339 4.33696 2.5 5 2.5H10Z",fill:"black","fill-opacity":"0.3"})),(0,h.h)("svg",{className:si.secondaryIcon,width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,h.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.59958 8.79067L1.19877 6.26339C0.933745 5.98406 0.933745 5.53141 1.19877 5.25274C1.46379 4.97342 1.89382 4.97342 2.15884 5.25274L4.07962 7.27604L9.84069 1.2095C10.1063 0.930168 10.5364 0.930168 10.8008 1.2095C11.0664 1.48882 11.0664 1.94281 10.8008 2.22147L4.55965 8.79067C4.42714 8.93 4.25338 9 4.07962 9C3.90585 9 3.73209 8.93 3.59958 8.79067Z",fill:"black"}),(0,h.h)("path",{d:"M3.59958 8.79067L1.19877 6.26339C0.933745 5.98406 0.933745 5.53141 1.19877 5.25274C1.46379 4.97342 1.89382 4.97342 2.15884 5.25274L4.07962 7.27604L9.84069 1.2095C10.1063 0.930168 10.5364 0.930168 10.8008 1.2095C11.0664 1.48882 11.0664 1.94281 10.8008 2.22147L4.55965 8.79067C4.42714 8.93 4.25338 9 4.07962 9C3.90585 9 3.73209 8.93 3.59958 8.79067",stroke:"black"})))})})),l()(this,"renderFormError",(()=>{var e,t;const i=p.Z.get(),s=(null==i||null===(e=i.appData)||void 0===e||null===(t=e.copy)||void 0===t?void 0:t.baseCopy)||{},o={content:s.$GROUP_BOOKINGS_TRY_AGAIN||"Try going back to listings to resolve the issue (data is not lost).",title:s.$GROUP_BOOKINGS_FORM_ERROR||"Oh no! Looks like you encountered an error.",buttonTooltip:s.$BACK_TO_LISTINGS||"Back to Listings"};return(0,h.h)(U,{ref:e=>this.$tooltip=null==e?void 0:e.base,class:si.submittedOverlay,data:o,isMobile:!0,isOpen:!0,position:"topRight",onHide:()=>{const e="mobile"===(0,u.RK)(p.Z.get(),"client.deviceSize",{})?"POP_HEADER_ACTION":"POP_SHOWTIMES_BTN_ACTION";p.Z.emit(e),this.props.goBack("preserveData")},icon:(0,h.h)("div",{className:si.formSubmissionIcon},(0,h.h)(vt.Z,{className:si.submissionErrorIcon}))})})),l()(this,"getMovieTitleAndTheater",(()=>{var e;const{selectedTheater:t}
1=this.props,i=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.movieId","");return{movieTitle:(0,m.g4)(i),chainId:null==t?void 0:t.chainId,theaterName:null==t?void 0:t.name,amcName:null==t||null===(e=t.meta)||void 0===e?void 0:e.amcName}})),l()(this,"renderTheaterIcon",(()=>{const{selectedTheater:e,logoShade:t}=this.props,i=(0,u.RK)(this.props,"store.appData.urls.roots.sharedImages")||"",s=(0,u.RK)(e,"chain.logo")||"default.png",o="".concat(i,"/logos/").concat(t,"/").concat(s),a=(0,u.RK)(this.props,"store.appData.copy.accessibilityCopy",{}),r=(null==e?void 0:e.chain)&&(null==e?void 0:e.chain.name.replace(/\..*/,"")),n="rtl"===(0,u.RK)(this.props,"store.appData.styling.fontVariables.textDirection");return(0,h.h)("div",{class:(0,u.WM)(si.icon,n&&si.rtlIcon)},(0,h.h)("img",{src:o,alt:a.$CINEMA_LOGO_ALT.replace("<chain>",r)}))})),l()(this,"renderMovieInfo",(()=>{const{client:e,formData:t}=this.props,{movieTitle:i,theaterName:s}=this.getMovieTitleAndTheater(),o=t.currentStage||this.initialStage,a=this.stages.indexOf(o),r=this.stageTitles[a];return(0,h.h)("div",null,(0,h.h)("div",{className:si.title},!e.isDesktopSize&&"Group Booking -"," ",r),(0,h.h)("div",{className:si.movieDetails},(0,h.h)("div",{class:si.header},this.renderTheaterIcon(),(0,h.h)("div",{class:si.details},(0,h.h)("div",{className:si.movieTitle},i),(0,h.h)("div",{className:si.theaterName},s)))))})),l()(this,"renderFormDescription",(()=>{const{formData:e}=this.props,t=e.currentStage||this.initialStage;return(0,h.h)("div",null,t!==this.finalStage&&(0,h.h)(q.Z,{class:si.description,content:this.descriptionText,markdown:!0}),t===this.finalStage&&(0,h.h)(q.Z,{class:si.description,content:this.confirmationText,markdown:!0}))})),l()(this,"renderForm",(()=>{var e,t,i,s,o;const{movieTitle:a,theaterName:r,chainId:n,amcName:l}=this.getMovieTitleAndTheater(),c=null===(e=this.props.selectedTheater)||void 0===e||null===(t=e.address)||void 0===t||null===(i=t.intl)||void 0===i?void 0:i.city,{formData:d}=this.props,u=d.currentStage||this.initialStage,m=p.Z.get(),g=(null==m||null===(s=m.appData)||void 0===s||null===(o=s.copy)||void 0===o?void 0:o.baseCopy)||{};let _={"amc-theatres":ti,"regal-cinemas":qt,"cinemark-theatres":ii,"email-form":Gt}[this.groupBookingFormType];return _?(0,h.h)("div",{className:si.outerContainer},this.renderFormDescription(),(0,h.h)("div",{className:si.mainContent},(0,h.h)(_,{formId:this.chainSlug,ref:e=>this.$form=e,fields:this.fields,data:this.props.formData,currentStage:u,finalStage:this.finalStage,movieTitle:a,chainId:n,selectedTheaterCity:c,selectedTheaterName:r,submitUrl:this.submitUrl,submitToNewTab:this.submitToNewTab,onChange:this.props.onChange,isValidTime:this.isValidTime,hasRecaptcha:this.hasRecaptcha,recaptchaKey:this.recaptchaKey,htmlSubmit:this.htmlSubmit,setFormSubmitted:this.setFormSubmitted,amcName:l}),this.renderBottomNavigationBar())):(0,h.h)(q.Z,{class:si.unsupported,content:g.$GROUP_BOOKINGS_UNSUPPORTED||"Group Bookings is not supported yet by this chain/theatre, please come back later.",markdown:!0})})),l()(this,"renderStages",(()=>{const{formData:e}=this.props,t=e.currentStage||this.initialStage;return(0,h.h)("div",{className:si.stageSelection},this.stages.map((e=>{const i=this.stages.indexOf(t),s=this.stages.indexOf(e);let o;o=s>i?this.isStageComplete(t):this.isStageComplete(e);const a=e===this.finalStage?this.allStagesComplete({navigationClick:!0}):o;return(0,h.h)("div",{className:(0,u.WM)(si.stage,t===e&&si.currentStage,a&&si.active)},this.stageTitles[s])})))})),l()(this,"isValidTime",(e=>{if(!e)return;const t=["AM","PM"];return e.hour&&e.minute&&e.meridian?Number(e.hour)!==isNaN()&&Number(e.minute)!==isNaN()&&t.includes(e.meridian):void 0})),l()(this,"currentStageComplete",(()=>{const{formData:e}=this.props,t=e.currentStage||this.initialStage;if(t===this.finalStage)return!this.hasRecaptcha||!(null==e||!e.captcha);const i=this.fields.filter((e=>e.stage===t)).map((t=>{const i=e[t.id],s=new RegExp(t.validation.regex).test(i),o=this.isValidTime(i)&&s;return t.required?i&&("timepicker"===t.type?o:s):!i||("timepicker"===t.type?o:s)}));return i.every((e=>!0===e))})),l()(this,"isStageComplete",(e=>{const{formData:t}=this.props;if(e===this.finalStage)return!0;const i=this.fields.filter((t=>t.stage===e)).map((e=>{const i=t[e.id],s=new RegExp(e.validation.regex).test(i),o=this.isValidTime(i)&&s;return e.required?i&&("timepicker"===e.type?o:s):!i||("timepicker"===e.type?o:s)}));return i.every((e=>!0===e))})),l()(this,"allStagesComplete",(e=>{const{formData:t}=this.props,i=null==e?void 0:e.navigationClick,s=this.fields.map((e=>e.required?t[e.id]&&new RegExp(e.validation.regex).test(t[e.id]):!t[e.id]||new RegExp(e.validation.regex).test(t[e.id])));return i?s.every((e=>!0===e)):this.hasRecaptcha?s.every((e=>!0===e))&&t.captcha:s.every((e=>!0===e))})),l()(this,"renderBottomNavigationBar",(()=>{const{client:e,formData:t}=this.props,i=t.currentStage||this.initialStage,s=this.currentStageComplete(),o=this.allStagesComplete(),a=this.fields.findIndex((e=>e.stage===i));return(0,h.h)("div",{className:si.bottomBar},0!==a&&(0,h.h)("button",{onClick:()=>this.navigateStages("previous")},e.isDesktopSize?"Previous Page":"Back"),(0,h.h)("div",{className:(0,u.WM)(si.filler,si.noBg),key:"filler"}),i!==this.finalStage&&(0,h.h)(U,{ref:e=>this.$completeFieldsTooltip=null==e?void 0:e.base,class:si.completeFieldsFirst,data:{content:"Please complete the required fields first"},selfHideMilliseconds:this.invalidNextTimer,showCondition:!s,stageIndex:a,position:"topLeft"},(0,h.h)("button",{id:"nextButton",ref:e=>this.$nextButton=e,class:!s&&si.disabledButton,onClick:()=>this.navigateStages()},e.isDesktopSize?"Next Page":"Next")),i===this.finalStage&&(0,h.h)(U,{ref:e=>this.$completeFieldsTooltip=null==e?void 0:e.base,class:si.completeFieldsFirst,data:{content:"Please complete the captcha first"},selfHideMilliseconds:this.invalidNextTimer,showCondition:!s,stageIndex:a,position:"topLeft"},(0,h.h)("button",{form:this.chainSlug,type:"submit",onClick:e=>this.handleFormSubmission(e),disabled:this.state.submissionLoading,className:(0,u.WM)(si.submitButton,(!o||this.state.submissionLoading)&&si.disabledButton,this.state.submissionLoading&&si.spinner)},!this.state.submissionLoading&&"Submit")))}));const R=(0,m.ku)()||{};this.setFormSubmitted=this.setFormSubmitted.bind(this),this.chainSlug=this.props.selectedTheater.chain.slug,this.groupBookingFormType=this.getGroupBookingFormType(),this.hasRecaptcha=null===(t=R.groupBookings)||void 0===t?void 0:t.enableFormRecaptcha,this.recaptchaKey=(null===(i=R.groupBookings)||void 0===i?void 0:i.recaptchaKey)||"6LconT4hAAAAAKKHhv6UlG5RbqAdqXtJvVD3yY0O",this.htmlSubmit=null===(s=R.groupBookings)||void 0===s||null===(o=s.forms)||void 0===o||null===(a=o["".concat(this.groupBookingFormType)])||void 0===a?void 0:a.htmlSubmit,this.submitUrl=(null===(r=R.groupBookings)||void 0===r||null===(n=r.forms)||void 0===n||null===(c=n["".concat(this.groupBookingFormType)])||void 0===c?void 0:c.submitUrl)||{},this.submitToNewTab=(null===(d=R.groupBookings)||void 0===d||null===(g=d.forms)||void 0===g||null===(_=g["".concat(this.groupBookingFormType)])||void 0===_?void 0:_.submitToNewTab)||{};const A=(0,u.FZ)((null===(v=R.groupBookings)||void 0===v||null===(y=v.forms)||void 0===y||null===(b=y["".concat(this.groupBookingFormType)])||void 0===b?void 0:b.stages)||{},((e,t)=>({...e,key:t}
1))),L=A.map((e=>e.key)),O=A.map((e=>e.title));this.finalStage=(null===(f=R.groupBookings)||void 0===f||null===(S=f.forms)||void 0===S||null===(w=S["".concat(this.groupBookingFormType)])||void 0===w?void 0:w.finalStage)||"Check Your Details";let N={};L.forEach((e=>{var t,i,s,o,a;const r=(null===(t=R.groupBookings)||void 0===t||null===(i=t.forms)||void 0===i||null===(s=i["".concat(this.groupBookingFormType)])||void 0===s||null===(o=s.stages)||void 0===o||null===(a=o[e])||void 0===a?void 0:a.fields)||{},n={};Object.keys(r).forEach((t=>{n[t]={...r[t],stage:e}})),N={...N,...n}})),this.fields=(0,u.FZ)(N),this.stages=[...L,this.finalStage],this.stageTitles=[...O,this.finalStage],this.descriptionText=(null===(T=R.groupBookings)||void 0===T||null===(C=T.forms)||void 0===C||null===(k=C["".concat(this.groupBookingFormType)])||void 0===k?void 0:k.formDescriptionText)||{},this.confirmationText=(null===(E=R.groupBookings)||void 0===E||null===(I=E.forms)||void 0===I||null===(D=I["".concat(this.groupBookingFormType)])||void 0===D?void 0:D.formConfirmationText)||{},this.invalidNextTimer=(null===(M=R.groupBookings)||void 0===M?void 0:M.invalidNextTimer)||"",this.initialStage=this.stages[0]}getGroupBookingFormType(){var e,t,i,s,o,a,r,n,l;const h=(0,m.ku)()||{};var c;if(null!==(e=h.groupBookings)&&void 0!==e&&e.preselectedForm)return null===(c=h.groupBookings)||void 0===c?void 0:c.preselectedForm;const d=(null==h||null===(t=h.groupBookings)||void 0===t?void 0:t.formsForTheater)||{},p=(null==h||null===(i=h.groupBookings)||void 0===i?void 0:i.formsForChain)||{},u=null===(s=this.props)||void 0===s||null===(o=s.selectedTheater)||void 0===o?void 0:o.id;if(u&&d[u])return d[u];return null===(l=p[null===(a=this.props)||void 0===a||null===(r=a.selectedTheater)||void 0===r||null===(n=r.chain)||void 0===n?void 0:n.id])||void 0===l?void 0:l.form}componentDidUpdate(e){var t,i,s,o;(null===(t=this.props.formData)||void 0===t?void 0:t.currentStage)!==(null===(i=e.formData)||void 0===i?void 0:i.currentStage)&&(null===(s=this.base)||void 0===s||null===(o=s.querySelector("[class*=field__wrapper]:not([class*=hidden]) :is(input:not([type=hidden]), select, textarea, button):not([disabled])"))||void 0===o||o.focus())}setFormSubmitted(){this.setState({renderFormSubmitted:!0})}render(){const{client:e}=this.props;if(this.fields)return(0,h.h)("div",{className:si.eventInquiryContainer},e.isDesktopSize&&this.renderStages(),(0,h.h)("div",{className:si.pannels},(0,h.h)("div",{className:si.mainPannel},this.renderMovieInfo(),this.renderForm(),this.state.renderFormSubmitted&&this.renderFormSubmitted(),this.state.renderFormError&&this.renderFormError(),";")))}}function ai(e){if("string"==typeof e&&(e=function(e){var t;if(!e||"string"!=typeof e)return{r:0,g:0,b:0};let i;var s,o,a;i=e.startsWith("#")?null===(s=e.match(/([\da-f]{1,2})([\da-f]{1,2})([\da-f]{1,2})/i))||void 0===s||null===(o=s.slice(1))||void 0===o?void 0:o.map((e=>parseInt(1===e.length?e+e:e,16))):null===(a=e.match(/-?[\d.]+/g))||void 0===a?void 0:a.map(Number);const[r=0,n=0,l=0]=(null===(t=i)||void 0===t?void 0:t.map((e=>e/255)))||[];return{r,g:n,b:l}}(e)),!e)return 0;const{r:t=0,g:i=0,b:s=0}=e;return.2126*t+.7152*i+.0722*s}var ri=i(4927),ni=i(9655);const li=e=>new Promise(((t,i)=>{let s=document.createElement("script");s.onload=t,s.onerror=i,s.src=e,document.head.appendChild(s)})),hi=(0,ze.Z)((async()=>{var e;if("undefined"!=typeof window)return window.mapboxgl?window.mapboxgl:Promise.all([(e="https://cdn.maptiler.com/mapbox-gl-js/v1.11.1/mapbox-gl.css",new Promise(((t,i)=>{let s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.onload=t,s.onerror=i,s.href=e,document.head.appendChild(s)}))),li("https://cdn.maptiler.com/mapbox-gl-js/v1.11.1/mapbox-gl.js")])})),ci=(0,ze.Z)((async()=>{if("undefined"!=typeof window)return li("https://cdn.klokantech.com/openmaptiles-language/v1.0/openmaptiles-language.js")})),di=async(e,t)=>{if(!e)return;const i=p.Z.get(),s=(0,u.RK)(i,"appData.doc.mapStyling.mapTiler")||{},{id:o,key:a,language:r}=s;await hi(),r&&await ci();const n=(0,u.RK)(i,"client.geo",{}),l=[n.lon||51.5074,n.lat||-.1278],h=Object.assign({container:e,style:"https://api.maptiler.com/maps/".concat(o,"/style.json?key=").concat(a),center:l,zoom:10.6},t),c=new window.mapboxgl.Map(h);return c.addControl(new window.mapboxgl.NavigationControl,"bottom-left"),r&&c.setLanguage(r),c};var pi={container:"showtimes2__container__NuyRW",animate:"showtimes2__animate__dl73T",sonyHeader:"showtimes2__sonyHeader__YejUN",showtimesOnlyIframed:"showtimes2__showtimesOnlyIframed__tF4OD",scroller:"showtimes2__scroller__hKnC9",content:"showtimes2__content__VgzEK",location:"showtimes2__location__SmxKI",wrapper:"showtimes2__wrapper__PR4UR",exitContainer:"showtimes2__exitContainer__kdDR6",theaterScroller:"showtimes2__theaterScroller__R09hR",snappy:"showtimes2__snappy__cRxKM",list:"showtimes2__list__irzUk",accomodateBookingTabs:"showtimes2__accomodateBookingTabs__elOTE",eventInquiryContent:"showtimes2__eventInquiryContent__ck7Ty",hideSuggestions:"showtimes2__hideSuggestions__ZcQ1T",movieDetails:"showtimes2__movieDetails__rIvCT",blur:"showtimes2__blur__gTFFB",confirmationOverlay:"showtimes2__confirmationOverlay__kmz6z",scrollDates:"showtimes2__scrollDates__orZ0R",scrollPadding:"showtimes2__scrollPadding__qKKav",mobileSearchOverlay:"showtimes2__mobileSearchOverlay__HXtqr",scrollSearch:"showtimes2__scrollSearch__yIRDM",dualMenu:"showtimes2__dualMenu__m3z7q",mobileGroupBookingsLayout:"showtimes2__mobileGroupBookingsLayout__VuP7l",filters:"showtimes2__filters__yQZIA",hidden:"showtimes2__hidden__OFP9Z",filter:"showtimes2__filter__Yl2rP small",rtlFilter:"showtimes2__rtlFilter__y1apx",modeWrapper:"showtimes2__modeWrapper__XUPM9",spacer:"showtimes2__spacer__ElrbV",filterSelectionContainer:"showtimes2__filterSelectionContainer__PRHsH",filterSelectionActive:"showtimes2__filterSelectionActive__WP84o",mapModeContainer:"showtimes2__mapModeContainer__F1T8L",filterIcon:"showtimes2__filterIcon__gSlUb",mode:"showtimes2__mode__qUzCM",cta:"showtimes2__cta__p3aP6",listIcon:"showtimes2__listIcon__Ktbqo",mapIcon:"showtimes2__mapIcon__PupNC",customMapIcon:"showtimes2__customMapIcon__DPN6d",custom:"showtimes2__custom__d1W44",active:"showtimes2__active__MuZGZ",mapModeVisible:"showtimes2__mapModeVisible__WiirL",icons:"showtimes2__icons__nKixt",listView:"showtimes2__listView__Vv8Zg",mainContentIn:"showtimes2__mainContentIn__OmEqE",theater:"showtimes2__theater__mnJn0",loading:"showtimes2__loading__zweZ6",dummy:"showtimes2__dummy__zaXWq",icon:"showtimes2__icon__idQOL",title:"showtimes2__title__Pliex",screenings:"showtimes2__screenings__hSX4t",screening:"showtimes2__screening__TboQV",mapView:"showtimes2__mapView__Wgbgv",theaterContainer:"showtimes2__theaterContainer__G206T",suggestions:"showtimes2__suggestions__pi1AM",more:"showtimes2__more__Pkz8c",loadingMore:"showtimes2__loadingMore__g4Lt0",moreButton:"showtimes2__moreButton__tpyJE",loadingMoreIcon:"showtimes2__loadingMoreIcon__uZ090",map:"showtimes2__map__fOa9B",mobileMapExpanded:"showtimes2__mobileMapExpanded__cZZfY",stretched:"showtimes2__stretched__IjD2m",mapOverlay:"showtimes2__mapOverlay__JYAbJ",visible:"showtimes2__visible__fz8tp",mapElement:"showtimes2__mapElement__N6HII",directions:"showtimes2__directions__YLEUm",directionsType:"showtimes2__directionsType__qHDlu",mapTheaterExpanded:"showtimes2__mapTheaterExpanded__DkblY",collapseHeader:"showtimes2__collapseHeader__r8OAm",panelFrame:"showtimes2__panelFrame__vitSt","mode-map":"showtimes2__mode-map__BtFOx",listModeContainer:"showtimes2__listModeContainer__sf4oA",animateTheaterExpansion:"showtimes2__animateTheaterExpansion__Q3TNl",attribution:"showtimes2__attribution__sAYs2",showtimesBy:"showtimes2__showtimesBy__SB5kW",logo:"showtimes2__logo__zE1nU",filler:"showtimes2__filler__y_spi",nearbyList:"showtimes2__nearbyList__ZZzXV",nearbyTheater:"showtimes2__nearbyTheater__oGW9G",nearbyName:"showtimes2__nearbyName__GLysZ",nearbyTheaterDummy:"showtimes2__nearbyTheaterDummy__mwmcP",mapMessage:"showtimes2__mapMessage__DC6ig",selectTitleBtnContainer:"showtimes2__selectTitleBtnContainer__Tzv1Q",selectTitleBtn:"showtimes2__selectTitleBtn__JR7f2",noBottomMargin:"showtimes2__noBottomMargin__Tn1VD",desktopSelectTitle:"showtimes2__desktopSelectTitle__bf814",widget:"showtimes2__widget__oYGXg",tabsContainer:"showtimes2__tabsContainer__RUM91",tab:"showtimes2__tab__XS2NG",selected:"showtimes2__selected__FzBcl",mobileContainer:"showtimes2__mobileContainer__PRuaL",mapModeScroll:"showtimes2__mapModeScroll__ZhwTI",displayed:"showtimes2__displayed__JgXh5",sticky:"showtimes2__sticky__TgA9c",stretchedTheaterScroller:"showtimes2__stretchedTheaterScroller__XSlbb"};const ui={list:"listings_view",expanded:"cinema_view",collapsed:"map_view"};let mi=bi(ge),gi=bi(He.Z),_i=bi($e.Z);class vi extends h.wA{constructor(e){var t,i,s,o,a,r;super(e),l()(this,"renderFormSubmitted",(()=>(0,h.h)(U,{ref:e=>this.$tooltip=null==e?void 0:e.base,class:(0,u.WM)(pi.submittedOverlay,pi.confirmationOverlay),data:{content:"The theater will be in touch soon!",title:"Inquiry Sent",buttonTooltip:"Back to theater listing"},isMobile:!0,isOpen:!0,position:"topRight",onHide:()=>{(0,Se.Z)().groupBookingsSubmitted&&window.history.replaceState("","",window.location.origin+window.location.pathname)},icon:(0,h.h)("div",{class:pi.formSubmissionIcon},(0,h.h)("svg",{width:"35",height:"33",viewBox:"0 0 35 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,h.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.89 30H5C4.33696 30 3.70107 29.7366 3.23223 29.2678C2.76339 28.7989 2.5 28.163 2.5 27.5V11.5H32.5V16.39C33.4386 16.9378 34.2828 17.6334 35 18.45V5C35 3.67392 34.4732 2.40215 33.5355 1.46447C32.5979 0.526784 31.3261 0 30 0L5 0C3.67392 0 2.40215 0.526784 1.46447 1.46447C0.526784 2.40215 0 3.67392 0 5L0 27.5C0 28.8261 0.526784 30.0979 1.46447 31.0355C2.40215 31.9732 3.67392 32.5 5 32.5H21C20.1656 31.7867 19.4529 30.9424 18.89 30ZM10 2.5H30C30.663 2.5 31.2989 2.76339 31.7678 3.23223C32.2366 3.70107 32.5 4.33696 32.5 5V9H2.5V5C2.5 4.33696 2.76339 3.70107 3.23223 3.23223C3.70107 2.76339 4.33696 2.5 5 2.5H10Z",fill:"black","fill-opacity":"0.3"})),(0,h.h)("svg",{class:pi.secondaryIcon,width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,h.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.59958 8.79067L1.19877 6.26339C0.933745 5.98406 0.933745 5.53141 1.19877 5.25274C1.46379 4.97342 1.89382 4.97342 2.15884 5.25274L4.07962 7.27604L9.84069 1.2095C10.1063 0.930168 10.5364 0.930168 10.8008 1.2095C11.0664 1.48882 11.0664 1.94281 10.8008 2.22147L4.55965 8.79067C4.42714 8.93 4.25338 9 4.07962 9C3.90585 9 3.73209 8.93 3.59958 8.79067Z",fill:"black"}),(0,h.h)("path",{d:"M3.59958 8.79067L1.19877 6.26339C0.933745 5.98406 0.933745 5.53141 1.19877 5.25274C1.46379 4.97342 1.89382 4.97342 2.15884 5.25274L4.07962 7.27604L9.84069 1.2095C10.1063 0.930168 10.5364 0.930168 10.8008 1.2095C11.0664 1.48882 11.0664 1.94281 10.8008 2.22147L4.55965 8.79067C4.42714 8.93 4.25338 9 4.07962 9C3.90585 9 3.73209 8.93 3.59958 8.79067",stroke:"black"})))}))),l()(this,"updateGroupBookingsFormData",((e,t)=>
1{this.setState((i=>(i.formData={...i.formData,[e]:t},i)))})),l()(this,"exitEventInquiry",(e=>{const t=this.state.formData;if("preserveData"===e){const e={...t,currentStage:""};return this.setState({formData:e,mode:"list"}),void p.Z.get().set({groupBookingsShowtimes:!1})}this.setState({formData:this.useGroupBookingsDummyFormData?t:{...this.initialFormData},mode:"list"})})),this.showFilterSelection=this.showFilterSelection.bind(this),this.cancelFilterSelection=this.cancelFilterSelection.bind(this),this.filtersChange=this.filtersChange.bind(this),this.setListMode=this.setListMode.bind(this),this.setMapMode=this.setMapMode.bind(this),this.setMapModeButton=this.setMapModeButton.bind(this),this.expandCurrentMapTheater=this.expandTheater.bind(this,null),this.selectNearby=this.selectNearby.bind(this),this.selectNearbyFromChain=this.selectNearbyFromChain.bind(this),this.hideShowtimes=this.hideShowtimes.bind(this),this.showMore=this.showMore.bind(this),this.updateMapMarkers=this.updateMapMarkers.bind(this),this.triggerShowtimesBtn=this.triggerShowtimesBtn.bind(this),this.trigger=this.trigger.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onCHTouchStart=this.onCHTouchStart.bind(this),this.onCHTouchMove=this.onCHTouchMove.bind(this),this.scrollerClick=this.scrollerClick.bind(this),this.disableMobileOverlay=this.toggleMobileOverlayActive.bind(this,!1),this.enableMobileOverlay=this.toggleMobileOverlayActive.bind(this,!0),this.toggleMobileOverlayActive=this.toggleMobileOverlayActive.bind(this),this.handleFilterOverlayClick=this.handleFilterOverlayClick.bind(this),this.safariMobileBlur=this.safariMobileBlur.bind(this),this.safariMobileFocus=this.safariMobileFocus.bind(this),this.exitCinemaExpandedView=this.exitCinemaExpandedView.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleLimitInterstetial=this.handleLimitInterstetial.bind(this),this.renderSelectTitleButton=this.renderSelectTitleButton.bind(this),this.setGeo=this.setGeo.bind(this),this.stickAndScale=this.stickAndScale.bind(this),this.applyQueryStringMovieFilter=this.applyQueryStringMovieFilter.bind(this),this.setEventInquiry=this.setEventInquiry.bind(this),this.stickedElementsRefs={},this.trackConversion=this.trackConversion.bind(this),this.filtersList=["date","time","format"],this.defaultChainLogo="default.png",this.$theaterElements=[];let n=(0,u.RK)(this.props,"store.appData.pages",{});this.noHome=!Object.keys(n).includes("boltHome"),this.boundingRegions=(0,m.l)(),this.today=(0,W.Z)(new Date,"dd MMM");const c=(0,u.RK)(this.props,"store.appData.doc.mapStyling.mapTiler")||{};this.useMapTiler=c.id&&c.key,this.userCountry=((0,u.RK)(this.props,"store.client.geo.countryCode")||"").toUpperCase(),this.quickFiltersData=this.getPageData().quickFilters||{};const d=null===(t=this.props.store)||void 0===t||null===(i=t.appData)||void 0===i?void 0:i.styling;this.logoShade=(0,u.RK)(this.props,"store.appData.styling.logoShade",null),this.useGroupBookingsDummyFormData=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings.dummyFormData",!1)&&!1;const g=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings.preselectedTab","Book Now"),_=(0,Se.Z)(),v=_.groupbookings?"Group Bookings":_.booknow?"Book Now":g,y=new Date((null===(s=p.Z.get().showtimes.filters)||void 0===s||null===(o=s.selected)||void 0===o||null===(a=o.date)||void 0===a?void 0:a[0])||new Date(1685112619e3)).toISOString().split("T")[0];if("Group Bookings"===v?p.Z.get().set({groupBookingsShowtimes:!0}):p.Z.get().set({groupBookingsShowtimes:!1}),!this.logoShade){var b;const e=(null==d||null===(b=d.variables)||void 0===b?void 0:b.secondaryTextColor)||"#000";this.logoShade=ai(e)<.5?"light":"dark"}this.initialFormData=this.useGroupBookingsDummyFormData?(0,m.sm)(y):{formDate:y},this.state={mode:"list",mapTop:0,mapBottom:0,mapSelectedTheater:null,mapTheaterExpanded:!1,animateTheaterExpansion:!1,mobileOverlayActive:!1,socialInterstitial:null===(r=this.props.store)||void 0===r?void 0:r.limitExceeded,validCountry:"",ttVisible:!0,selectedTab:v,formData:{...this.initialFormData}},p.Z.emit("UPDATE_SHOWTIMES_ACTIVE_TAB",v),p.Z.on("STICK_AND_SCALE",this.stickAndScale)}componentDidMount(){p.Z.on("LIMIT_EXCEEDED",this.handleLimitInterstetial);const e=(0,u.RK)(this.props,"store.client.geo.countryCode","").toUpperCase(),t=!this.boundingRegions||this.boundingRegions.includes(e);if(this.state.validCountry||t)this.setState({validCountry:t}),this.updateShowtimes();else{const t="Group Bookings"===this.state.selectedTab?"groupbookings":"tickets";p.Z.emit("WRONG_REGION",e,t)}document.addEventListener("mousedown",this.onMouseDown),window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>
1this.resizeMap()))),this.preventClose="#no-clicks-out"==window.location.hash,this.createObservers();(0,Se.Z)().groupBookingsSubmitted&&this.setState({groupBookingsSubmitted:!0,formData:{}})}componentWillUnmount(){var e,t;document.removeEventListener("mousedown",this.onMouseDown),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(t=this.state.observerTheaters)||void 0===t||t.destroy(),p.Z.off("LIMIT_EXCEEDED",this.handleLimitInterstetial),p.Z.off("STICK_AND_SCALE",this.stickAndScale)}componentWillReceiveProps(e){if(e.store.showtimes.data!==this.props.store.showtimes.data){let n=null;var t,i,s,o,a,r;if(this.state.mapSelectedTheater)n=null===(t=e.store)||void 0===t||null===(i=t.showtimes)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.find((e=>e.id===this.state.mapSelectedTheater.id));if(!n)n=null===(o=e.store)||void 0===o||null===(a=o.showtimes)||void 0===a||null===(r=a.data)||void 0===r?void 0:r[0];n?this.setState({mapSelectedTheater:n}):this.setState({mode:"list",mapSelectedTheater:null})}this.isDesktop()&&this.state.mobileOverlayActive&&this.toggleMobileOverlayActive(!1)}componentDidUpdate(e,t){var i,s;if((null===(i=e.store.client.geo)||void 0===i?void 0:i.countryCode)!==(null===(s=this.props.store.client.geo)||void 0===s?void 0:s.countryCode)){const e=this.props.store.client.geo.countryCode;this.setState({validCountry:!this.boundingRegions||this.boundingRegions.includes(e),userCountry:e})}e.store.showtimes.show&&!this.props.store.showtimes.show&&this.setState({mode:"list"}),!e.store.showtimes.show&&this.props.store.showtimes.show&&this.applyQueryStringMovieFilter();const{mode:o,mapTheaterExpanded:a,selectedDate:r}=this.state,n=o!==t.mode||a!==t.mapTheaterExpanded||r!==t.selectedDate;if(n&&"map"===o&&!1===a&&(this.setHeaderExitCinemaExpanded("map"),this.updateMapMarkers()),n&&"map"===o&&!0===a&&this.setHeaderExitCinemaExpanded("list"),"list"===this.state.mode&&"map"===t.mode){const e="mobile"===(0,u.RK)(p.Z.get(),"client.deviceSize",{})?"POP_HEADER_ACTION":"POP_SHOWTIMES_BTN_ACTION";p.Z.emit(e)}n&&"eventInquiry"===o&&this.setHeaderExitInquiryMode(t.mode);const l=(0,u.RK)(this.props,"store.client.geo")||{},h=(0,u.RK)(e,"store.client.geo")||{},c=l.countryCode,d=h.countryCode,m="Group Bookings"===this.state.selectedTab?"groupbookings":"tickets";if(c&&c!==d){const e=!this.boundingRegions||this.boundingRegions.includes(c.toUpperCase());e!==this.state.validCountry&&this.setState({validCountry:e}),e||p.Z.emit("WRONG_REGION",c,m)}this.$bgVideo&&this.state.bgVideo!==t.bgVideo&&(this.$bgVideo.src=this.state.bgVideo),this.state.filterSelection!==t.filterSelection&&this.handleScroll(),this.props.displayed&&e.displayed,this.state.mobileOverlayActive&&!t.mobileOverlayActive&&this.focus();const g=(0,u.RK)(e,"store.showtimes.loading"),_=(0,u.RK)(this.props,"store.showtimes.loading"),v=(0,u.RK)(e,"store.showtimes.error"),y=(0,u.RK)(this.props,"store.showtimes.error");
1if("map"===this.state.mode){const e=(0,u.RK)(this.props,"store.client.geo.lat"),i=(0,u.RK)(this.props,"store.client.geo.lon"),s=(0,u.RK)(this.state,"mapSelectedTheater.lat"),o=(0,u.RK)(this.state,"mapSelectedTheater.lon"),a=o&&s?s:e,r=o&&s?o:i,n=!this.state.mapTheaterExpanded,l={styles:ot,center:{lat:+a,lon:+r},zoomControl:n};var b,f,S;if(this.mountGoogleMaps(l),g&&!_&&this.updateMapMarkers(),"map"!==t.mode)(0,$.GZ)((null===(b=this.stickedElementsRefs)||void 0===b||null===(f=b.filtersDate)||void 0===f||null===(S=f.el)||void 0===S?void 0:S.offsetTop)||0,100,100)}else if(l.lat!==h.lat||l.lon!==h.lon||!e.store.showtimes.loading&&this.props.store.showtimes.loading){const e="visible"!==getComputedStyle(this.$listView).overflow?this.$listView:this.$scroller;(0,$.GZ)(e,0,100)}y&&v!==y&&p.Z.emit("SHOWTIMES_ERROR",m);let w=(0,u.RK)(this.props,"store.showtimes.data"),T=(0,u.RK)(e,"store.showtimes.data");w!==T&&(this.updateMapMarkers(T),w&&!w.length&&p.Z.emit("SHOWTIMES_EMPTY",(0,u.RK)(this.props,"store.client.geo",{}),m)),this.createObservers()}getPageId(){var e,t,i,s,o;if(this.props.pageId)return this.props.pageId;let a=null===(e=this.props.store)||void 0===e?void 0:e.activePage;return"showtimes"===(null===(t=this.props.store)||void 0===t||null===(i=t.appData)||void 0===i||null===(s=i.pages)||void 0===s||null===(o=s[a])||void 0===o?void 0:o.type)?a:"boltShowtimes"}getPageData(){return this.props.showtimesPageData||(0,u.RK)(this.props,"store.appData.pages.".concat(this.getPageId(),".data"))||{}}onStickedElementRef(e,t,i){this.stickedElementsRefs[t]={el:(null==e?void 0:e.base)||e,onlyOnDesktop:i}}getStickedElements(){let{client:e}=p.Z.get();const t=Object.values(this.stickedElementsRefs).filter((t=>{let{el:i,onlyOnDesktop:s}=t;return!!i&&(!s||e.isDesktopSize)&&"absolute"!==getComputedStyle(i).position})).map((e=>{let{el:t}=e;return t}));return t.sort(((e,t)=>e.getBoundingClientRect().y-t.getBoundingClientRect().y)),t}calculateStickedElementsHeight(){return this.getStickedElements().reduce(((e,t)=>e+t.getBoundingClientRect().height),0)}calculateMinDistanceToStick(){if(!this.$container)return 0;let e=this.getStickedElements(),t=this.$container.getBoundingClientRect().top;return Math.min(...e.map((e=>e.getBoundingClientRect().top-t)))}calculateMapPosition(){if(!this.$container)return 0;if(this.state.mapSelectedTheater&&this.state.mapTheaterExpanded)return-1*this.$container.getBoundingClientRect().top;if(!this.$modeSelector)return 0;let e=this.$modeSelector.getBoundingClientRect();return e.height?e.top+e.height-this.$container.getBoundingClientRect().top:this.calculateStickedElementsHeight()}createObservers(){var e;this.$container&&this.$container!==this.$prevContainer&&(null===(e=this.state.observerTheaters)||void 0===e||e.destroy(),this.setState({observerTheaters:this.createObserverTheaters()}),this.$prevContainer=this.$container)}createObserverTheaters(){return new yi(((e,t)=>{var i;if("list"!==this.state.mode||!this.$scroller)return;const s=this.calculateStickedElementsHeight()+this.$scroller.getBoundingClientRect().top,[o,a]=t.getClosestToY(s),[r]=t.getLastVisible(),n=o&&(0,u.pv)(o,pi.theater),l=this.$scroller.scrollTop>0,h=this.$scroller.scrollTop>=this.$scroller.scrollHeight-this.$scroller.clientHeight;let c=l&&(a&&n||h);!!this.state.dateScrollerSticked!==c&&this.setState({dateScrollerSticked:c}),null!==(i=this.quickFiltersData)&&void 0!==i&&i.isSticky&&!!this.state.quickFiltersSticky!=!!a&&this.setState({quickFiltersSticky:!!a}),this.setSelectedTheater((null==a?void 0:a.theater)||null);a&&a.theater&&r!==o?(0,u.cn)(this.$scroller,pi.snappy):(0,u.IV)(this.$scroller,pi.snappy)}),{threshold:.1,repeat:{max:10,every:100}})}onMouseDown(e){const{interactivity:t}=e,{id:i,classList:s}=e.target,o="disney-explicit-consent-prompt"===i||s.contains("close_btn_thick"),a="sonyCreditButton"===i,r=(0,u.RK)(this.props,"store.trailerOverlay.overlayOpen",!1),n=s.contains("mc-closeModal")||s.contains("mc-layout__modalContent");if(!this.props.store.showtimes.show||this.base.contains(e.target)||o||0!==e.button||a||this.preventClose||r||n)return;let l=e.target.closest("input, button, a"),h=this.isDesktop();t||l||!h||this.hideShowtimes()}isDesktop(){return p.Z.get().client.isDesktopSize}onCHTouchStart(e){this.xDown=(e&&e.touches&&e.touches[0]||e).clientX,this.yDown=(e&&e.touches&&e.touches[0]||e).clientY}onCHTouchMove(e){if(!this.xDown||!this.yDown)return;let t=e.touches[0].clientX,i=e.touches[0].clientY,s=this.xDown-t,o=this.yDown-i;Math.sqrt(s*s+o*o)>10&&(Math.abs(o)>Math.abs(s)&&o<=0&&this.hideShowtimes(),this.xDown=null,this.yDown=null)}scrollerClick(e){let t=p.Z.get().client.isDesktopSize;e.target===this.$scroller&&t&&this.hideShowtimes()}focus(){let e=this.state.mobileOverlayActive?this.$overlayLocationSearch:this.$locationSearch;e&&e.focus()}setListMode(){"list"!==this.state.mode&&this.setState({mode:"list"})}handleFilterOverlayClick(e){e.target===this.$filterSelection.base||this.$filterSelection.base.contains(e.target)||this.cancelFilterSelection()}handleScroll(e){var t;const i=((null==e||null===(t=e.target)||void 0===t?void 0:t.scrollTop)||0)<=window.innerWidth/16*9/2,{ttVisible:s}=this.state;i!==s&&this.setState({ttVisible:i})}toggleMobileOverlayActive(e){"boolean"!=typeof e&&(e=!this.state.mobileOverlayActive),e!==this.state.mobileOverlayActive&&(this.setState({mobileOverlayActive:e}
1),e?(p.Z.emit("SHOWTIMES_SEARCH_OVERLAY_SHOW"),p.Z.emit("SET_HEADER_ACTION",{icon:"back",action:()=>{this.setState({mobileOverlayActive:!this.state.mobileOverlayActive}),p.Z.emit("SHOWTIMES_SEARCH_OVERLAY_HIDE")},tag:"hideShowtimesSearchOverlay"})):p.Z.emit("REMOVE_HEADER_ACTIONS","hideShowtimesSearchOverlay"))}exitCinemaExpandedView(e){const t=e||this.state.mode;this.exitCinemaDetailView(t)}trackConversion(e,t,i,s,o){var a,r,n;if(!e||!t)return;let l=""===t.format.trim()?"absent":t.format,h=null===(a=t.movie)||void 0===a||null===(r=a.regions)||void 0===r?void 0:r.find((e=>"INTL"===e.country));const c=null===(n=p.Z.get().appData.options)||void 0===n?void 0:n.movieNameInTicketConversion;let d=[e.name,(0,u.RK)(e,"chain.name"),t.date,t.time,l,i,c&&(null==h?void 0:h.slug)].filter((e=>e)).join("_");d.split("").length>150&&(d=[e.name.substring(0,50),(0,u.RK)(e,"chain.name"),t.date,t.time,l,i,c&&(null==h?void 0:h.slug)].filter((e=>e)).join("_").slice(0,150)),p.Z.emit("TICKET_CONVERSION",{screening:t,theater:e,date:t.date,time:t.time,format:l,provider:i,conversion:d,source:ui[s]||"listings_view",theaterName:e.name,day:(0,W.Z)((0,u.sG)(t.date),"dddd"),url:o,movieTitle:null==h?void 0:h.title,movieSlug:null==h?void 0:h.slug,ticketType:"Group Bookings"===this.state.selectedTab?"groupbookings":"tickets"})}setMapMode(){if("map"===this.state.mode)return;if(!this.$content||!this.$scroller)return;let e=0;if(!this.isDesktop()){e=this.calculateMinDistanceToStick()+this.$scroller.scrollTop,this.$scroller.style.maxHeight="".concat(this.calculateStickedElementsHeight(),"px")}e&&(this.$scroller.scrollTop=e),(()=>{this.setState({mode:"map"})})()}setEventInquiry(){"eventInquiry"!==this.state.mode&&this.setState({mode:"eventInquiry"})}setMapModeButton(){let e=this.state;
1"map"!==e.mode&&(e.mapSelectedTheater&&this.setSelectedTheater(e.mapSelectedTheater),this.setState({mapTheaterExpanded:!1,animateTheaterExpansion:!1}),this.setMapMode(),this.updateMapMarkers())}showFilterSelection(){const e=this.isDesktop();this.setState({filterSelection:!0}),p.Z.emit("TOGGLE_INTERSTITIAL_OPEN",!0),this.$collapseHeader&&this.$content&&this.$filterSelection&&!e&&this.$scroller.scrollTop<156&&(this.$scroller.scrollTop=156)}hideFilterSelection(){p.Z.emit("TOGGLE_INTERSTITIAL_OPEN",!1),this.setState({filterSelection:!1})}cancelFilterSelection(){let e={...(0,u.RK)(this.props,"store.showtimes.filters.selected")||{}};p.Z.emit("REVERT_FILTERS",e),this.hideFilterSelection()}getDefaultAction(){let e=this.state.mode;return{icon:"back",action:()=>{this.setState({mapTheaterExpanded:"list"!==e&&"map"!==e,mode:e}),this.updateMapOptions({zoomControl:!0})}}}getCurrentShowtimesBtnAction(){const e=(0,u.RK)(p.Z.get(),"showtimes.actions");return e[e.length-1]||this.getDefaultAction()}getCurrentHeaderAction(){const e=(0,u.RK)(p.Z.get(),"header.actions");return e[e.length-1]||this.getDefaultAction()}setHeaderExitInquiryMode(){const e=(0,u.RK)(p.Z.get(),"showtimes.actions",{});if(e[0]&&"back"===e[0].icon)return;const t="mobile"===(0,u.RK)(p.Z.get(),"client.deviceSize",{})?"SET_HEADER_ACTION":"SET_SHOWTIMES_BTN_ACTIONS";p.Z.emit(t,{icon:"close",action:()=>this.exitEventInquiry()})}setHeaderExitCinemaExpanded(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=(0,u.RK)(p.Z.get(),"showtimes.actions",{});if(t[0]&&"back"===t[0].icon)return;const i="mobile"===(0,u.RK)(p.Z.get(),"client.deviceSize",{})?"SET_HEADER_ACTION":"SET_SHOWTIMES_BTN_ACTIONS";p.Z.emit(i,{icon:"back",action:()=>this.exitCinemaExpandedView(e)})}triggerShowtimesBtn(){if(!this.state.mapTheaterExpanded)return;p.Z.emit("POP_SHOWTIMES_BTN_ACTION");let e=this.getCurrentShowtimesBtnAction();"function"==typeof e.action?e.action():"string"==typeof e.action&&p.Z.emit(e.action)}trigger(){p.Z.emit("POP_HEADER_ACTION");let e=this.getCurrentHeaderAction();"function"==typeof e.action?e.action():"string"==typeof e.action&&p.Z.emit(e.action)}setSelectedTheater(e){let t=this.props.store.showtimes.theatersDates||{};
1e&&t[e.id],this.setState({selectedTheater:e})}getTheaterScrollerDisplayedDates(){var e;const t=((null===(e=this.state.selectedTheater)||void 0===e?void 0:e.screeningsDates)||[]).map((e=>(0,W.Z)(new Date(e),"yyyy-MM-dd")));let i=[(0,W.Z)(new Date,"yyyy-MM-dd")];return{available:t,selected:(0,u.RK)(this.props.store.showtimes,"filters.selected.date",i)}}getDisplayedDates(){var e,t;let i=[(0,W.Z)(new Date,"yyyy-MM-dd")],s=this.state.selectedTheater,o=this.props.store.showtimes.filters,a=(0,u.RK)(this.props.store.showtimes,"filters.selected.date",i),r=this.props.store.showtimes.theatersDates||{};if(!o||o.loading)return{available:i,selected:a,loading:!0};if(null===(e=o.available)||void 0===e||null===(t=e.date)||void 0===t||!t.length)return{available:i,selected:a};if(!s||!this.state.dateScrollerSticked)return{available:o.available.date,selected:a};let n=r[s.id]&&Array.isArray(r[s.id])?r[s.id]:null;return{available:o.available.date,active:n,loading:!n,selected:a}}expandTheater(e){p.Z.emit("UPDATE_API_KEY"),p.Z.emit("GET_NEARBY_CINEMAS_FROM_CHAIN",e||this.state.mapSelectedTheater),p.Z.emit("IN_CINEMA_DETAIL_VIEW",e);let t=this.state.mode;const i=e||this.state.mapSelectedTheater,s="Group Bookings"===this.state.selectedTab?"groupbookings":"tickets";p.Z.emit("SELECT_THEATER",i,t,s),this.setSelectedTheater(i);let o={mapTheaterExpanded:!0,animateTheaterExpansion:"map"===t};e&&(o.mapSelectedTheater=e),this.setState(o),this.setMapMode(),this.updateMapMarkers(),this.updateMapOptions({zoomControl:!1})}expandTheaterEventInquiry(e){const t=e;p.Z.emit("GROUP_BOOKINGS_INQUIRE",t),this.setSelectedTheater(t),this.setEventInquiry()}exitCinemaDetailView(e){this.setState({mapTheaterExpanded:"list"===e||"map"===e,mode:e}),this.updateMapMarkers(),this.updateMapOptions({zoomControl:!0}),p.Z.emit("EXIT_CINEMA_DETAIL_VIEW")}filtersChange(e){this.setState({selectedDate:e}),p.Z.emit("UPDATE_API_KEY"),this.hideFilterSelection();let t=(0,u.RK)(this.props,"store.showtimes.filters.selected")||{},i=(0,u.RK)(this.props,"store.showtimes.filterSnapshot")||{},s=(0,Se.Z)(),o=Object.keys(t).map((e=>{if(!s[e]||"string"!=typeof s[e])return;let i=t[e];Array.isArray(i)||(i=[i]);let o=s[e].split(",").map((e=>e.trim())).filter((e=>e&&i.includes(e))).join(",");return o!==s[e]?(s[e]=o||null,!0):void 0}));if(o.some((e=>e))){let e=location.pathname+(0,u.UK)(s)+location.hash;history.replaceState({activePage:p.Z.get().activePage},"",e)}const a=!d()((t.date||[]).sort(),(i.date||[]).sort()),r=!d()((t.time||[]).sort(),(i.time||[]).sort()),n=!d()((t.format||[]).sort(),(i.format||[]).sort());var l;JSON.stringify(t)!==JSON.stringify(i)&&(p.Z.emit("SET_FILTERS_SELECTED_MOVIE_ID",null!==(l=t.movie)&&void 0!==l&&l.length?t.movie:[]),p.Z.emit("SHOWTIMES_REFRESH"),p.Z.emit("TRACK_FILTERS_CHANGE",t));const h="Group Bookings"===this.state.selectedTab?"groupbookings":"tickets";a&&(p.Z.emit("FILTER_SELECTED_DAY",t.date[0],h),"groupbookings"===h&&this.updateGroupBookingsFormData("formDate",t.date[0])),r&&p.Z.emit("FILTER_SELECTED_TIME",t.time.join(","),h),n&&p.Z.emit("FILTER_SELECTED_FORMAT",t.format.join(","),h);this.isDesktop()?p.Z.emit("POP_SHOWTIMES_BTN_ACTION"):p.Z.emit("POP_HEADER_ACTION")}renderDummyElements(e){if(this.state.validCountry)return[...Array(e)].map(((e,t)=>(0,h.h)("div",{class:pi.dummy,key:t},(0,h.h)("div",{class:pi.titleLine},(0,h.h)("div",{class:pi.icon}),(0,h.h)("div",{class:pi.title})),(0,h.h)("div",{class:pi.screenings},(0,h.h)("div",{class:pi.screening}),(0,h.h)("div",{class:pi.screening}),(0,h.h)("div",{class:pi.screening}),(0,h.h)("div",{class:pi.screening})))))}filterValue(e,t){if("date"===e){let e=t.split("-"),i=new Date(+e[0],e[1]-1,+e[2]);const s=(0,u.RK)(this.props,"store.appData.copy.baseCopy.$DATETIME_LOCALE");let o=(0,W.Z)(i,"dd MMM",s);if(o===this.today){const e=(0,u.RK)(this.props,"store.appData.copy.baseCopy.$TODAY","today");return e.charAt(0).toUpperCase()+e.slice(1)}return o}return(0,u.RK)(this.props,["store","appData","copy","baseCopy","filters",e,t])||t}mountGoogleMaps(e){if(this.gmap||!this.$mapElement)return;const t=this.useMapTiler?o:s;this.gmap=t.mount(this.$mapElement,e),this.resizeObserver&&this.resizeObserver.observe(this.$mapElement),this.updateMapMarkers()}async resizeMap(){const e=await this.gmap;e.resize&&e.resize()}hideShowtimes(){const e=(0,ni.fx)();if(this.noHome||e)return;(this.isDesktop()?this.triggerShowtimesBtn:this.trigger)(),this.hideFilterSelection(),this.setState({mode:"list"}),p.Z.emit("SHOWTIMES_HIDE",!0,!0)}showMore(){p.Z.emit("SHOWTIMES_SHOW_MORE")}async updateMapOptions(e){if(!this.gmap&&"object"==typeof e)return;let t=await this.gmap;t.setOptions&&t.setOptions(e)}
1async updateMapMarkers(e){if(!this.gmap)return;const t=(0,u.RK)(this.props,"store.appData.urls.roots.sharedImages"),i=this.state.mapTheaterExpanded;let s=await this.gmap,o=(0,u.RK)(this.props,"store.showtimes.data")||[];if(!e&&o!==e){this.mapMarkers&&this.mapMarkers.forEach((e=>e.setMap(null))),i&&(o=o.filter((e=>this.state.mapSelectedTheater.id===e.id)));let e="light";(0,u.RK)(this.props,"store.appData.styling.variables.white")===(0,u.RK)(this.props,"store.appData.styling.variables.screeningBtnTxtColor")&&(e="dark");const a=(0,u.RK)(this.props,"store.appData.styling.variables.activeMapMarkerShade",e),r=this.useMapTiler?st:et;this.mapMarkers=await Promise.all(o.map((e=>{const i=this.state.mapSelectedTheater.id===e.id,o=e.chain.logo||this.defaultChainLogo,n="".concat(t,"/logos/").concat(a,"/").concat(o),l="".concat(t,"/logos/dark/").concat(o);return r({position:{lat:e.lat,lon:e.lon},activeLogoLink:n,inactiveLogoLink:l,onClick:t=>this.updateMapSelectedTheater(e,t),isActive:i},s)})));const n={},{geo:l}=p.Z.get().client;this.state.mapSelectedTheater?(n.lat=(0,u.RK)(this.state,"mapSelectedTheater.lat"),n.lng=(0,u.RK)(this.state,"mapSelectedTheater.lon")):l&&(n.lat=(0,u.RK)(l,"lat"),n.lng=(0,u.RK)(l,"lon")),Object.keys(n).length&&s.setCenter(n)}}selectNearby(e){const t="Group Bookings"===this.state.selectedTab?"groupbookings":"tickets";p.Z.emit("SET_USER_LOCATION",e,"nearby",t)}selectNearbyFromChain(e){this.expandTheater(e)}setDirections(e){const{mapSelectedTheater:t}=this.state,i=t.lat,s=t.lon;if(i&&s){const t="https://www.google.com/maps/dir/?api=1&destination=".concat(i,",").concat(s,"&travelmode=").concat(e.toLowerCase());p.Z.emit("MAP_REQUEST_DIRECTIONS",e),window.open(t)}}updateMapSelectedTheater(e,t){this.setState({mapSelectedTheater:e}),this.mapMarkers.forEach((e=>{e.isActive&&e.makeInactive()})),t.makeActive(),this.updateMapMarkers()}async setGeo(){const e=await(0,we.vW)(),t="Group Bookings"===this.state.selectedTab?"groupbookings":"tickets";p.Z.emit("GEO_FROM_IP",e,t),this.setState({geoFromIP:e})}handleLimitInterstetial(e){this.state.socialInterstitial!==e&&this.setState({socialInterstitial:e})}applyQueryStringMovieFilter(){const e=(0,Se.Z)(location.search);if(!e.m)return;const t=e.m.replace(/\s+/g,"").replace("%20","").split(",");p.Z.emit("SET_FILTERS_SELECTED_MOVIE_ID",t),p.Z.emit("SHOWTIMES_REFRESH"),history.replaceState&&history.replaceState(null,"",location.pathname)}async updateShowtimes(){await this.setGeo(),this.getPageData().useV2?p.Z.emit("SHOWTIMES_REFRESH"):p.Z.emit("FILTERS_REFRESH",{forceShowtimesRefresh:!0}),this.applyQueryStringMovieFilter()}stickAndScale(e){const{onesheetDisabled:t,isWidget:i}=this.props,{isDesktopSize:s}=this.props.store.client,o=(0,ri.Y9)(this.props.pages);if(s){const i=(t?0:609*window.innerHeight/900)*e;this.$container.style.left=i+"px",this.$container.style.top="0px"}else{const t=64*e;this.$container.style.left="0px",this.$container.style.top=t+"px",this.$content.style.top=(o?0:16-16*e)+"px",this.$container.style.borderRadius="".concat(20-20*e,"px"),this.$container.style.overflow="hidden"}}renderCurrentFilters(){const{validCountry:e}=this.state,t=(0,u.RK)(this.props,"store.appData.copy.accessibilityCopy",{}),i="rtl"===(0,u.RK)(this.props,"store.appData.styling.fontVariables.textDirection");let s=(0,u.RK)(this.props,"store.showtimes.loading")||!1,o=((0,u.RK)(this.props,"store.showtimes.filters")||{}).selected||{},a=this.filtersList.map((e=>{let a,r,n=o[e]||[];if(a=n.length?n.map((t=>this.filterValue(e,t))).join(", "):(0,u.RK)(this.props,["store","appData","copy","baseCopy","filters",e,"_all"]),a)return"date"===e&&(r=t.$DAY_FILTER_ARIA),"time"===e&&(r=t.$TIME_FILTER_ARIA),"format"===e&&(r=t.$FORMAT_FILTER_ARIA),(0,h.h)(y.Z,{class:(0,u.WM)(pi.filter,pi[e],i&&pi.rtlFilter),trigger:this.showFilterSelection,disabled:s,ariaLabel:r.replace("<option>",a)},a)})),r=!e||this.state.socialInterstitial||this.noFiltersAvailable;return(0,h.h)("div",{class:(0,u.WM)(pi.filters,r&&pi.hidden),ref:e=>this.$filters=e,key:"currentFilters"},(0,h.h)(y.Z,{class:(0,u.WM)(pi.filter,pi.toggle,i&&pi.rtlFilter),trigger:this.show
1FilterSelection,disabled:s,ariaLabel:t.$OPEN_FILTER_OPTIONS_ARIA},(0,h.h)(ye,{class:pi.filterIcon,ariaLabel:t.$OPEN_FILTER_OPTIONS_ARIA})),a,(0,h.h)("div",{class:pi.spacer}))}renderModeSelector(e){var t,i,s,o,a,r,n,l,c;const d=(0,u.RK)(this.props,"store.showtimes.loading"),p=(0,u.RK)(this.props,"store.appData.styling.fontVariables"),{mode:g,mapSelectedTheater:_,mapTheaterExpanded:v}=this.state;let b=(0,u.RK)(this.props,"store.appData.copy",{}),f=(0,h.h)(We.Z,null);if(!d){let e=this.setListMode;v&&_&&(e=void 0);const t=(0,u.RK)(this.props,"store.appData.styling.imageVariables.showtimesMapViewIcon","");f=[(0,h.h)(y.Z,{class:(0,u.WM)({s:pi,listIcon:!0,active:"list"===g&&!1===d}),trigger:e,ariaLabel:b.accessibilityCopy.$LIST_VIEW_ARIA},(0,h.h)(Me,null)),(0,h.h)(y.Z,{class:(0,u.WM)({s:pi,mapIcon:!0,active:"map"===g,custom:t}),trigger:this.setMapModeButton,ariaLabel:b.accessibilityCopy.$MAP_VIEW_ARIA},t?(0,h.h)("div",{class:pi.customMapIcon,style:"-webkit-mask: url(".concat(t,") no-repeat center;")}):(0,h.h)(Re,null))]}let S=b.baseCopy.$SELECT_A_SHOWTIME;d?S=b.baseCopy.$LOADING_CINEMAS:((0,u.RK)(this.props,"store.showtimes.data")||[]).length?"map"===g&&(S=b.baseCopy.$SELECT_A_CINEMA):S="";const w=((0,m.ku)()||{}).quotesCarousel,T=((null==w?void 0:w.regions)||"").split(",").map((e=>e.trim())).filter((e=>e)),C=null===(t=this.props.store)||void 0===t||null===(i=t.client)||void 0===i||null===(s=i.geo)||void 0===s?void 0:s.countryCode,k=w&&(T.length<1||T.includes(C)),E="Group Bookings"!==this.state.selectedTab;return(0,h.h)("div",{class:pi.modeWrapper},E&&(0,h.h)(gi,{isShowtimes:!0,region:null===(o=this.props.store)||void 0===o||null===(a=o.client)||void 0===a||null===(r=a.geo)||void 0===r?void 0:r.countryCode,movies:null===(n=this.props.store)||void 0===n||null===(l=n.showtimes)||void 0===l?void 0:l.movies,intersectionObserver:this.state.observerTheaters,listOrMapMode:g,inListOrMapView:e}),k&&(0,h.h)(_i,{data:w,client:null===(c=this.props.store)||void 0===c?void 0:c.client,isShowtimes:!0}),(0,h.h)("div",{class:pi.mode},(0,h.h)("div",{class:(0,u.WM)(pi.cta,p.showtimesLoading)},S),(0,h.h)("div",{class:pi.icons},f)))}renderElements(){const e=this.state;if(!e.validCountry)return;const t=(0,u.RK)(this.props,"store.showtimes.data",[]),i=this.getPageData(),s=(0,u.RK)(this.props,"store.showtimes.more",!1),o=(0,u.RK)(this.props,"store.showtimes.loadingMore")||!1,a=(0,u.RK)(this.props,"store.appData.copy"),r=(0,u.RK)(this.props,"store.client.geo",{}),n=(0,u.RK)(this.props,"store.appData.urls.roots.sharedImages",""),l=(0,u.RK)(this.props,"store.appData.styling.fontVariables"),c=(0,u.RK)(this.props,"store.showtimes.filters"),d=(0,u.RK)(this.props,"store.showtimes.theatersDates",{}),p=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings",{}),m=(0,Se.Z)(),g=m.groupbookings?"Group Bookings":m.booknow?"Book Now":null==e?void 0:e.selectedTab,_=t.map(((t,s)=>(0,h.h)(mi,{class:pi.theater,theater:t,showtimesFilters:c,mode:"list",clientGeo:r,geoFromIP:e.geoFromIP||{},onExpandClick:()=>this.expandTheater(t),eventInquiryTrigger:()=>this.expandTheaterEventInquiry(t),sharedImageRoot:n,logoShade:this.logoShade,copy:a,showtimesAppData:i,key:"theater-"+t.id+s,showFilterSelection:this.showFilterSelection,trackConversion:this.trackConversion,intersectionObserver:this.state.observerTheaters,loading:"loading"===d[t.id],divideScreeningsByAttributes:!0,groupBookings:"Group Bookings"===g?p:{},ticketType:"Group Bookings"===this.state.selectedTab?"groupbookings":"tickets"})));return s&&_.push((0,h.h)("div",{class:pi.more,key:"more"},(0,h.h)(y.Z,{class:(0,u.WM)(pi.moreButton,o&&pi.loadingMore,l.showtimesShowMore),trigger:this.showMore,ariaLabel:a.accessibilityCopy.$MORE_CINEMAS_BTN_ARIA},o?(0,h.h)(We.Z,{class:pi.loadingMoreIcon}):a.baseCopy.$SHOW_MORE_CINEMAS))),_}renderNearby(e,t,i,s,o,a){const{data:r,loading:n,error:l}=e,c=(0,u.RK)(this.props,"store.appData.styling.fontVariables"),d=(0,u.RK)(this.props,"store.client.geo",{}),p=d&&new re({lat:d.lat,lon:d.lon}),m=this.getPageData().theaterDistanceUnit||"km";if(!this.state.validCountry||l||!n&&!r.length)return;let g;return g=n?Array(6).fill((0,h.h)("div",{class:pi.nearbyTheaterDummy})):r.slice(0,a).map((e=>{const t=p.distanceFrom(e,m,1);return(0,h.h)(y.Z,{class:pi.nearbyTheater,trigger:()=>o(e),ariaLabel:s.replace("<cinema>",e.name).replace("<city>",e.city),key:e.id},(0,h.h)("span",{class:pi.nearbyName},e[i]),(0,h.h)("span",{class:pi.nearbyDistance},"".concat(t).concat(m)))})),(0,h.h)("div",{class:pi.nearby},(0,h.h)("div",{class:(0,u.WM)(pi.cta,c.moreShowtimes)},t),(0,h.h)("div",{class:pi.nearbyList},g))}renderNearbyFromChain(){let e=(0,u.RK)(this.props,"store.showtimes.nearby.chain")||{}
1,t=(0,u.RK)(this.props,"store.appData.copy.baseCopy.$MORE_SHOWTIMES_CINEMAS")||"More cinemas from the same chain",i=(0,u.RK)(this.props,"store.appData.copy.accessibilityCopy.$CINEMAS_SAME_CHAIN_BTN_ARIA")||"";return this.renderNearby(e,t,"name",i,this.selectNearbyFromChain,10)}renderNearbyScreeningsLocations(){let e=(0,u.RK)(this.props,"store.showtimes.nearby.locations")||{},t=(0,u.RK)(this.props,"store.appData.copy.baseCopy.$MORE_SHOWTIMES_LOCATIONS")||"More showtimes found in these locations",i=(0,u.RK)(this.props,"store.appData.copy.accessibilityCopy.$OTHER_LOCATIONS_BTN_ARIA")||"";return this.renderNearby(e,t,"city",i,this.selectNearby,void 0)}renderMap(){let e,t=this.state,i=this.renderVisualState(pi.mapMessage,!0);const s=this.getPageData(),o=(0,u.RK)(this.props,"store.appData.copy"),a=(0,u.RK)(this.props,"store.client.geo",{}),r=(0,u.RK)(this.props,"store.showtimes.loading")||!1,n=this.isDesktop(),l=(0,u.RK)(this.props,"store.appData.urls.roots.sharedImages")||"",c=(0,u.RK)(this.props,"store.showtimes.filters"),d=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings",{}),p=(0,Se.Z)(),m=p.groupbookings?"Group Bookings":p.booknow?"Book Now":null==t?void 0:t.selectedTab;t.mapSelectedTheater&&(i=(0,h.h)("div",{class:pi.theaterContainer,key:"theaterContainer"},(0,h.h)(ge,{ref:e=>this.$theater=e,onDateChange:this.filtersChange,displayedDates:this.getTheaterScrollerDisplayedDates(),theater:t.mapSelectedTheater,showtimesFilters:c,filtersChange:this.filtersChange,mode:t.mapTheaterExpanded?"expanded":"collapsed",onExpandClick:()=>this.expandCurrentMapTheater(),eventInquiryTrigger:()=>this.expandTheaterEventInquiry(t.selectedTheater),animateExpansion:t.animateTheaterExpansion,clientGeo:a,geoFromIP:t.geoFromIP,isDesktopSize:n,sharedImageRoot:l,logoShade:this.logoShade,copy:o,showtimesAppData:s,showFilterSelection:this.showFilterSelection,trackConversion:this.trackConversion,loading:r,backAction:this.exitCinemaExpandedView,selectedTheater:t.selectedTheater,showtimesMode:t.mode,divideScreeningsByAttributes:!0,groupBookings:"Group Bookings"===m?d:{},ticketType:"Group Bookings"===this.state.selectedTab?"groupbookings":"tickets"})),e=(0,h.h)("div",{class:pi.directions,key:"directions"},(0,h.h)(y.Z,{class:(0,u.WM)(pi.directionsType,pi.walking),trigger:()=>this.setDirections("WALKING"),ariaLabel:o.accessibilityCopy.$WALKING_BTN_ARIA},(0,h.h)(Ae,{ariaLabel:o.accessibilityCopy.$WALKING_BTN_ARIA})),(0,h.h)(y.Z,{class:(0,u.WM)(pi.directionsType,pi.driving),trigger:()=>this.setDirections("DRIVING"),ariaLabel:o.accessibilityCopy.$CAR_BTN_ARIA},(0,h.h)(Le,{ariaLabel:o.accessibilityCopy.$CAR_BTN_ARIA})),(0,h.h)(y.Z,{class:(0,u.WM)(pi.directionsType,pi.publicTransports),trigger:()=>this.setDirections("TRANSIT"),ariaLabel:o.accessibilityCopy.$TRANSPORT_BTN_ARIA},(0,h.h)(Oe,{ariaLabel:o.accessibilityCopy.$TRANSPORT_BTN_ARIA})))),r&&(e=null);let g=t.mapSelectedTheater&&n?this.triggerShowtimesBtn:this.trigger;const _=t.mapTheaterExpanded,v=(0,u.RK)(this.props,"store.appData.styling.variables.tertiaryColor"),b=!t.mapTheaterExpanded&&"list"!==t.mode,f=t.mapTheaterExpanded&&"list"!==t.mode&&!n,S=(0,ri.Y9)(this.props.pages);return(0,h.h)("div",{class:pi.mapView,style:{top:this.calculateMapPosition()+"px",bottom:t.mapBottom+"px"}},(0,h.h)("div",{style:{display:b?"flex":""},class:(0,u.WM)(pi.theaterScroller,b&&pi.stretchedTheaterScroller,S&&pi.dualMenu),ref:e=>this.$theaterScroller=e},(0,h.h)(y.Z,{class:(0,u.WM)(pi.map,_&&pi.mapDisabled,b&&pi.stretched,f&&pi.mobileMapExpanded),trigger:g,key:"map",ariaLabel:o.accessibilityCopy.$MAP_ARIA},(0,h.h)("div",{class:pi.mapElement,ref:e=>this.$mapElement=e,key:"mapElement"}),e,(0,h.h)("div",{class:(0,u.WM)(pi.mapOverlay,_&&pi.visible)})),i,(0,h.h)("div",{class:(0,u.WM)(pi.suggestions,b&&pi.hideSuggestions)},this.renderNearbyFromChain(t.mapSelectedTheater)),_&&!this.props.isWidget&&(0,h.h)(Ke.Z,{data:this.props.store.appData.footer,parent:"showtimes",scrollElem:this.$theaterScroller,fallBackColor:v,key:"footer",store:this.props.store})))}renderProviderInterstitial(){const{mode:e,mapTheaterExpanded:t}=this.state;if(!(0,u.RK)(this.props,"store.showtimes.providerInterstitialOpen",!1))return;const i=(0,u.RK)(this.props,"store.showtimes.selectedTheater",{}),s=(0,u.RK)(this.props,"store.showtimes.selectedScreening",{}
1),o=(0,u.RK)(this.props,"store.appData.urls.roots.sharedImages"),a=this.isDesktop(),r=(0,u.RK)(this.props,"store.appData.copy");let n=e;return"map"===n&&(n=t?"expanded":"collapsed"),(0,h.h)(Pe,{selectedTheater:i,selectedScreening:s,sharedImageRoot:o,logoShade:this.logoShade,isDesktopSize:a,copy:r,mode:n,trackConversion:this.trackConversion,key:"provider-interstitial"})}renderVisualState(e,t){var i,s,o,a,r,n,l,c,d;const{data:u,error:m,loading:g,activeVideo:_={},videosLoading:v,videos:y=[]}=(null===(i=this.props.store)||void 0===i?void 0:i.showtimes)||{},b=(null===(s=this.props.store)||void 0===s||null===(o=s.appData)||void 0===o?void 0:o.copy)||{},f=null===(a=this.props.store)||void 0===a||null===(r=a.client)||void 0===r?void 0:r.deviceSize,{noShowtimes:S,preferNoShowtimesMessage:w}=this.getPageData(),{validCountry:T}=this.state,C=((null===(n=this.props)||void 0===n||null===(l=n.store)||void 0===l||null===(c=l.client)||void 0===c||null===(d=c.geo)||void 0===d?void 0:d.countryCode)||"").toLowerCase(),k=null==S?void 0:S.localisations;let E;k&&(E=Object.values(k).find((e=>{if(!e.regions)return!1;return e.regions.toLowerCase().split(",").map((e=>e.trim())).filter((e=>e)).includes(C)})));let I=w&&E;if(!T&&!g&&!I){var D,M;const i=this.props.store.client.geo.city;let s=this.props.store.appData.meta.region,o=s.countryName,a=(s.slug||"").toUpperCase();if((null===(D=this.boundingRegions)||void 0===D?void 0:D.length)>1||(null===(M=this.boundingRegions)||void 0===M?void 0:M[0])!==a){var R;let e=null===(R=this.boundingRegions)||void 0===R?void 0:R.slice().sort(((e,t)=>e===a?-1:t===a?1:0));o=null==e?void 0:e.join(", ")}let r=b.baseCopy.$ERROR_SHOWTIMES_LOCATION_CTA||"Change your search location for new results",n=b.baseCopy.$ERROR_SHOWTIMES_LOCATION||"It looks like you’re in %USER_CITY%, and this page is for users in %APP_REGION%";return(0,h.h)(ae.Z,{class:e,deviceSize:f,isMap:t,icon:"calendar-empty",cta:r,message:n.replace("%USER_CITY%",i).replace("%APP_REGION%",o),key:"message-bounding-region"})}if(this.state.socialInterstitial){const i=this.props.store.client.geo.city;let s=b.baseCopy.$SOCIAL_INTERSTITIAL_SHOWTIMES_INSTRUCTION||"It looks like you're located in the %USER_CITY%<br>Click the button below to display showtimes around you";return s=s.replace("%USER_CITY%",i),(0,h.h)(ae.Z,{class:e,deviceSize:f,isMap:t,message:s,buttonCopy:b.baseCopy.$SOCIAL_INTERSTITIAL_SHOWTIMES_CTA||"Display Showtimes",buttonTrigger:()=>{p.Z.emit("UPDATE_API_KEY"),p.Z.emit("LIMIT_EXCEEDED",!1),p.Z.emit("SHOWTIMES_REFRESH")},key:"message-error",icon:"location"})}if(m)return(0,h.h)(ae.Z,{class:e,deviceSize:f,isMap:t,message:b.baseCopy.$ERROR_SHOWTIMES,cta:b.baseCopy.$ERROR_SHOWTIMES_CTA,buttonCopy:b.baseCopy.$REFRESH||"Refresh",buttonTrigger:()=>p.Z.emit("SHOWTIMES_REFRESH"),key:"message-error",icon:"calendar-empty"});if(!g&&(u&&!u.length||I)){var A,L,O,N,B,x;let i=b.baseCopy.$NO_SHOWTIMES,s=b.baseCopy.$NO_SHOWTIMES_CTA,o={};return null!==(A=E)&&void 0!==A&&A.title&&(i=b.baseCopy[E.title]||E.title),null!==(L=E)&&void 0!==L&&L.text&&(s=b.baseCopy[E.text]||E.text),void 0!==(null===(O=E)||void 0===O||null===(N=O.buttons)||void 0===N?void 0:N.filtersButton)&&(o.filtersButton=E.buttons.filtersButton),null!==(B=E)&&void 0!==B&&null!==(x=B.buttons)&&void 0!==x&&x.extraButton&&(o.extraButton=E.buttons.extraButton),(0,h.h)(ae.Z,{class:e,deviceSize:f,isMap:t,message:i,cta:s,copy:b,buttonCopy:b.baseCopy.$FILTERS||"Filters",buttonTrigger:this.showFilterSelection,noShowtimes:!t&&S,regionButtonsOverride:o,noFiltersAvailable:this.noFiltersAvailable,activeVideo:_,videosLoading:v,showtimesVideos:y,icon:"coming-soon",key:"message-empty"})}}getTTPosition(){let e=this.getPageData().tt||{};return e.titleTreatmentPosition&&(e.titleTreatmentPosition.desktop||e.titleTreatmentPosition.tablet||e.titleTreatmentPosition.mobile)||(e=(0,u.RK)(this.props,"store.appData.pages.boltHome.data.tt",{})),(0,ri.mt)(e.titleTreatmentPosition)}safariMobileBlur(){(0,u.RK)(this.props.store,"client.isIOS")&&p.Z.emit("SAFARI_MOBILE_LOCATION_SEARCH_BLUR")}safariMobileFocus(){(0,u.RK)(this.props.store,"client.isIOS")&&p.Z.emit("SAFARI_MOBILE_LOCATION_
1SEARCH_FOCUS")}renderLocationSearch(e){var t,i;const s=this.props,o=s.store.client||{},a=s.store.showtimes||{},n=this.getPageData(),l=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings.isEnabled",!1);let c={};e&&(c={mobileOverlayActive:!0,onBlur:()=>p.Z.emit("SAFARI_MOBILE_LOCATION_SEARCH_BLUR")});return(0,h.h)(ke,r()({class:(0,u.WM)(pi.location,l&&!o.isDesktopSize&&pi.mobileGroupBookingsLayout),ref:t=>this[e?"$overlayLocationSearch":"$locationSearch"]=t,disabled:a.loading,geo:o.geo,showtimesAppData:n,nearbyLocations:null===(t=a.nearby)||void 0===t||null===(i=t.locations)||void 0===i?void 0:i.data,isMobile:!o.isDesktopSize,onFocus:()=>{p.Z.emit("UPDATE_API_KEY"),o.isDesktopSize||(e?this.props.isWidget||p.Z.emit("SAFARI_MOBILE_LOCATION_SEARCH_FOCUS"):this.enableMobileOverlay())},onSelect:()=>{p.Z.emit("LIMIT_EXCEEDED",!1),this.disableMobileOverlay()},onSearch:this.disableMobileOverlay,showFilterSelection:this.showFilterSelection,selectedFilters:a.filters.selected,movieId:null==a?void 0:a.movieFilterId},c,{key:"location-search",ticketType:"Group Bookings"===this.state.selectedTab?"groupbookings":"tickets"}))}renderSelectTitleButton(){const e=(0,u.RK)(this.props,"store.appData.styling.fontVariables"),t=(0,u.RK)(this.props,"store.appData.copy.baseCopy.$MULTIMOVIE_SELECT_TITLE");return(0,h.h)("div",{class:pi.selectTitleBtnContainer},(0,h.h)(y.Z,{class:(0,u.WM)(pi.selectTitleBtn,null==e?void 0:e.headerCta),trigger:this.showFilterSelection,type:"floating",ariaLabel:t,key:"selectTitleButton"},t))}renderAttribution(){var e,t,i,s,o,a,r,n;let l=null===(e=this.props.store)||void 0===e?void 0:e.appData,c=this.getPageData(),d=(null==c||null===(t=c.providers)||void 0===t||null===(i=t.deeplink)||void 0===i||null===(s=i.split(","))||void 0===s?void 0:s.map((e=>e.trim())))||[];const p=((null===(o=this.props)||void 0===o||null===(a=o.store)||void 0===a||null===(r=a.client)||void 0===r||null===(n=r.geo)||void 0===n?void 0:n.countryCode)||"").toLowerCase();if(d.includes("cinergy")&&"ch"===p){var m,g,_,v;let e=null==l||null===(m=l.urls)||void 0===m||null===(g=m.roots)||void 0===g?void 0:g.sharedImages,t="".concat(e,"/data_providers/").concat(this.logoShade,"/cineman_").concat(this.logoShade,".png"),i=null==l||null===(_=l.copy)||void 0===_||null===(v=_.baseCopy)||void 0===v?void 0:v.$SHOWTIMES_BY_CINEMAN;return(0,h.h)("div",{class:(0,u.WM)(pi.attribution,pi.cineman)},(0,h.h)("span",{class:pi.showtimesBy},i),(0,h.h)(b.Z,{href:"https://www.cineman.ch/",target:"_blank",key:"cinergy"},(0,h.h)("img",{class:pi.logo,src:t,alt:"Cineman Logo",height:"24"})))}}replaceGroupBookingsQueryString(e){return e.replace(/([?&])(?:booknow|groupbookings)(?:=[^&#]*)?(&|$)/i,((e,t,i)=>i?t:""))}render(e){var t,i,s,o,a,r;const n=(0,ni.Ty)();let l=(0,u.RK)(e,"store.showtimes.filters.available")||{};const c=(0,u.RK)(this.props,"store.showtimes.allMovies",{}),d=(null===(t=(this.getPageData().movieId||"").trim().split(",").filter((e=>e)).map((e=>e.trim())))||void 0===t?void 0:t.length)>1;this.noFiltersAvailable=!Object.values(l).some((e=>Array.isArray(e)&&e.length));let m=this.state;const{store:g,isWidget:_,contentDisabled:v}=e;let{showtimes:y,client:b,appData:f}=g;const{copy:S}=f,w=(0,Se.Z)(),T=w.groupbookings?"Group Bookings":w.booknow?"Book Now":null==m?void 0:m.selectedTab;let C=this.getPageData();const k=b.isDesktopSize?this.$listView:this.$scroller,E=(0,u.RK)(e,"store.cookies")||{},I=!n&&(0,u.RK)(f,"options.sonyFeatures.sonyHeader",!1),D="rtl"===(0,u.RK)(this.props,"store.appData.styling.fontVariables.textDirection"),M=(0,u.RK)(g,"evidon.bannerOpen"),R=M||(0,u.RK)(E,"pushDown",!1)&&(0,u.RK)(E,"cookieBannerOpen",!1);let A={};if(R||M){let e=M?(0,u.RK)(g,"evidon.height"):(0,u.RK)(E,"height");A.top=e+"px",A.height="calc(var(--windowHeight) - "+e+"px)"}const L=(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings.isEnabled",!1),O=!(0,u.RK)(this.props,"store.appData.pages.boltShowtimes.data.groupBookings.hideBookNow",!1);let N=y.show,B=y.loading,x=void 0===y.loading||y.loading;const F=(0,u.RK)(e,"store.appData.styling.variables.tertiaryColor"),Z=(0,ri.Y9)(this.props.pages);let P;m.mobileOverlayActive&&(P=(0,h.h)("div",{class:pi.mobileSearchOverlay,key:"mobileOverlay"},this.renderLocationSearch(!0)));
1let H=[(0,h.h)("div",{style:{top:this.calculateStickedElementsHeight()+"px"},ref:e=>this.$modeSelector=e,class:(0,u.WM)(pi.mapModeContainer,"map"===m.mode&&!m.mapTheaterExpanded&&pi.mapModeVisible),key:"map-mode"},this.renderModeSelector("map")),this.renderMap()];const $="Group Bookings"!==m.selectedTab&&(b.isDesktopSize&&this.quickFiltersData.visibleDesktop||!b.isDesktopSize&&this.quickFiltersData.visibleMobile),W="Group Bookings"!==m.selectedTab&&(b.isDesktopSize&&this.quickFiltersData.wrappedDesktop||!b.isDesktopSize&&this.quickFiltersData.wrappedMobile),K="all"===(null===(i=this.quickFiltersData)||void 0===i||null===(s=i.displayOptions)||void 0===s||null===(o=s.movie)||void 0===o?void 0:o.trim().toLowerCase()),V=(0,h.h)(_t,{appData:f,isRTL:D,isSticky:this.quickFiltersData.isSticky,filters:y.filters,title:this.quickFiltersData.title,possibleOptions:this.quickFiltersData.displayOptions,allMovies:c,wrappedView:W,enablePeeking:this.quickFiltersData.enablePeekingAnimation});return(0,h.h)("div",{class:(0,u.WM)(pi.wrapper,_&&pi.widget),style:A,key:"wrapper"},P||(0,h.h)(Ve.Z,{type:"showtimes",tt:C.tt,bg:C.bg,buttons:C.buttons,visible:_||e.store.showtimes.show&&m.ttVisible,hide:!m.ttVisible,copy:S,appData:f,cookieMode:R,class:(0,u.WM)(pi.movieDetails,!b.isDesktopSize&&this.state.dateScrollerSticked&&pi.blur),sonyHeaderEnabled:I,key:"movieDetails",dualViewEnabled:Z,isWidget:_}),"eventInquiry"!==this.state.mode?(0,h.h)("div",{class:(0,u.WM)({s:pi,container:!0,animate:y.animate,sonyHeader:I,showtimesOnlyIframed:n,displayed:N,loading:B,filterSelectionActive:m.filterSelection,animateTheaterExpansion:m.animateTheaterExpansion},pi["mode-"+m.mode]),ref:e=>this.$container=e,key:"container",style:{pointerEvents:v?"none":"all"}},L&&b.isDesktopSize&&(0,h.h)("div",{class:pi.tabsContainer},O&&(0,h.h)("div",{class:(0,u.WM)(pi.tab,"Book Now"===T&&pi.selected),onClick:()=>{var e,t;null===(e=(t=history).replaceState)||void 0===e||e.call(t,null,"",location.pathname+this.replaceGroupBookingsQueryString(location.search)+location.hash),p.Z.emit("UPDATE_SHOWTIMES_ACTIVE_TAB","Book Now",!0),this.setState({selectedTab:"Book Now"})}},(0,h.h)("span",null,S.baseCopy.$BOOK_NOW_TAB)),(0,h.h)("div",{class:(0,u.WM)(pi.tab,"Group Bookings"===T&&pi.selected),onClick:()=>{var e,t;null===(e=(t=history).replaceState)||void 0===e||e.call(t,null,"",location.pathname+this.replaceGroupBookingsQueryString(location.search)+location.hash),p.Z.emit("UPDATE_SHOWTIMES_ACTIVE_TAB","Group Bookings",!0),this.setState({selectedTab:"Group Bookings"})}},(0,h.h)("span",null,S.baseCopy.$GROUP_BOOKINGS_TAB))),(0,h.h)("div",{class:(0,u.WM)(pi.filterSelectionContainer,!this.state.sameCountry&&pi.disableFilters),onClick:this.handleFilterOverlayClick,key:"filters"},(0,h.h)(De,{appData:f,client:b,filters:y.filters,onSubmit:this.filtersChange,allShowtimesMovies:c,ref:e=>this.$filterSelection=e,open:m.filterSelection,onCancel:this.cancelFilterSelection})),this.renderProviderInterstitial(),(0,h.h)("div",{id:"showtimesScroller",class:(0,u.WM)(pi.scroller,"map"!==m.mode&&pi.list,this.state.dateScrollerSticked&&pi.sticked,"map"!==m.mode&&L&&b.isDesktopSize&&pi.accomodateBookingTabs),style:{scrollPadding:"".concat(this.calculateStickedElementsHeight(),"px 0px 0px 0px")},ref:e=>this.$scroller=e,"data-section":"scroller",onClick:this.scrollerClick,onScroll:this.handleScroll,key:"scroller"},"map"!==m.mode&&!n&&(0,h.h)(Ge.Z,{fallbackClickHandler:_?this.props.exitWidget:this.hideShowtimes,isWidget:_,dualViewEnabled:Z}),(0,h.h)("div",{class:pi.content,ref:e=>this.$content=e,key:"content"},L&&!b.isDesktopSize&&(0,h.h)("div",{class:(0,u.WM)(pi.tabsContainer,pi.mobileContainer)},O&&(0,h.h)("div",{class:(0,u.WM)(pi.tab,"Book Now"===m.selectedTab&&pi.selected),onClick:()=>{p.Z.emit("UPDATE_SHOWTIMES_ACTIVE_TAB","Book Now",!0),this.setState({selectedTab:"Book Now"})}},(0,h.h)("span",null,S.baseCopy.$BOOK_NOW_TAB)),(0,h.h)("div",{class:(0,u.WM)(pi.tab,"Group Bookings"===m.selectedTab&&pi.selected),onClick:()=>{p.Z.emit("UPDATE_SHOWTIMES_ACTIVE_TAB","Group Bookings",!0),this.setState({selectedTab:"Group Bookings"})}},(0,h.h)("span",null,S.baseCopy.$GROUP_BOOKINGS_TAB))),Z&&(0,h.h)(qe.Z,{key:"dualMenu",ref:e=>this.onStickedElementRef(e,"dualMenu",!0),isWidget:_&&"showtimes",widgetData:e.widgetData}),(0,h.h)("div",{id:"scrollSearch",class:(0,u.WM)(pi.scrollSearch,Z&&pi.dualMenu),ref:e=>this.onStickedElementRef(e,"location",!0),onTouchStart:this.onCHTouchStart,onTouchMove:this.onCHTouchMove,key:"header"},this.renderLocationSearch()),(0,h.h)("div",{id:"scrollDates",class:(0,u.WM)(pi.scrollDates,this.state.dateScrollerSticked&&pi.sticked),ref:e=>this.onStickedElementRef(e,"filtersDate")},(0,h.h)(G,{ref:e=>this.$filterDate=e,appData:f,showtimesAppData:C,client:b,isSticked:this.state.dateScrollerSticked,displayedDates:this.getDisplayedDates(),scrollElem:k,onChange:this.filtersChange,selectedTheater:this.state.selectedTheater,showtimesMode:this.state.mode,mapMode:m.mapTheaterExpanded?"expanded":"collapsed"}),d&&!K&&this.renderSelectTitleButton(),$&&this.quickFiltersData.isSticky&&V),$&&!this.quickFiltersData.isSticky&&V,!$&&!d&&
1(0,h.h)("div",{class:(0,u.WM)(pi.scrollPadding),ref:e=>this.onStickedElementRef(e,"scrollPadding",!0)}),(0,h.h)("div",{id:"showtimesList",class:pi.listView,ref:e=>this.$listView=e,key:"list",onScroll:e=>this.props.handleWidgetScroll&&this.props.handleWidgetScroll(e)},(0,h.h)("div",null,(0,h.h)("div",{class:pi.listModeContainer,key:"selector"},this.renderModeSelector("list")),this.renderVisualState(),x?this.renderDummyElements(8):this.renderElements(),(0,h.h)("div",{class:pi.suggestions,key:"suggestions"},this.renderNearbyScreeningsLocations())),this.renderAttribution(),(0,h.h)("div",{class:pi.filler,key:"filler"}),!_&&(0,h.h)(Ke.Z,{data:e.store.appData.footer,parent:"showtimes",scrollElem:k,fallBackColor:F,key:"footer",store:e.store}))),b.isDesktopSize&&H,this.state.groupBookingsSubmitted&&this.renderFormSubmitted()),!b.isDesktopSize&&H):(0,h.h)("div",{class:(0,u.WM)({s:pi,container:!0,animate:y.animate,sonyHeader:I,showtimesOnlyIframed:n,displayed:N,loading:B,filterSelectionActive:m.filterSelection,animateTheaterExpansion:m.animateTheaterExpansion},pi["mode-"+m.mode]),ref:e=>this.$container=e,key:"eventInquiry",style:{pointerEvents:v?"none":"all",top:b.isDesktopSize?"":"85px"}},(0,h.h)(oi,{key:null===(a=this.state.selectedTheater)||void 0===a?void 0:a.id,client:b,chainId:null===(r=this.state.selectedTheater)||void 0===r?void 0:r.chainId,formData:this.state.formData,logoShade:this.logoShade,store:g,selectedTheater:this.state.selectedTheater,onChange:this.updateGroupBookingsFormData,goBack:this.exitEventInquiry})))}}class yi{constructor(e,t){t.repeat&&(this.repeatMax=t.repeat.max,this.repeatEvery=t.repeat.every,delete t.repeat),this.fn=e,this.onResult=this.onResult.bind(this),this.elementToProps=[],this.observer=new IntersectionObserver(this.onResult,t)}onResult(e,t){this.enchanceOnResult(e,t)}enchanceOnResult(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;window.clearTimeout(this.repeatTimeout),this.fn(e,this),i<this.repeatMax&&(this.repeatTimeout=window.setTimeout((()=>this.enchanceOnResult(e,t,i+1)),this.repeatEvery))}destroy(){this.elementToProps.forEach((e=>this.unobserve(e[0])))}observe(e,t){return this.elementToProps.push([e,t]),this.observer.observe(e)}unobserve(e){return this.elementToProps=this.elementToProps.filter((t=>{let[i]=t;return i!==e})),this.observer.unobserve(e)}getProps(e){return(this.elementToProps.find((t=>{let[i]=t;return i===e}))||[])[1]||{}}getClosestToY(e){const t=this.elementToProps.map((e=>{let t=e[0].getBoundingClientRect();return t.top||t.bottom||(t=Object.assign({},t,{top:1/0})),[...e,t]}));return t.find(((t,i)=>{let[,,s]=t;return s.top<=e}))?t.reduce(((t,i,s)=>{const[,,o]=i,a=o.top+o.height>=e,r=Math.abs(o.top-e);return a&&r<t.distanceToTop&&(t.distanceToTop=r,t.result=i),t}),{distanceToTop:1/0,result:null}).result||[]:[null,null]}getLastVisible(){const e=this.elementToProps.map((e=>{let t=e[0].getBoundingClientRect();return t.top||t.bottom||(t=Object.assign({},t,{top:1/0})),[...e,t]}));return e.find(((e,t)=>{let[,,i]=e;return i.top<1/0}))?e.reduce(((e,t,i)=>{const[,,s]=t,o=s.top;return o<1/0&&o>e.lastTop&&(e.lastTop=o,e.result=t),e}),{lastTop:0,result:null}).result||[]:[null,null]}}function bi(e){class t extends h.wA{constructor(e){super(e),this.$el={}}componentDidMount(){this.props.intersectionObserver&&(this.intersectionObserver=this.props.intersectionObserver,this.observe())}observe(){this.intersectionObserver&&this.$el&&this.$el.base instanceof window.Element&&(this.prevEl=this.$el.base,this.intersectionObserver.observe(this.$el.base,this.props))}unobserve(){this.intersectionObserver&&this.prevEl&&this.intersectionObserver.unobserve(this.prevEl)}componentDidUpdate(e){this.props.intersectionObserver!==this.intersectionObserver?(this.unobserve(),this.intersectionObserver=this.props.intersectionObserver,this.observe()):this.$el.base!==this.prevEl&&(this.unobserve(),this.observe())}componentWillUnmount(){this.unobserve(),this.intersectionObserver=null,p.Z.get().set({groupBookingsShowtimes:!1})}render(){return(0,h.h)(e,r()({ref:e=>this.$el=e},this.props,{intersectionObserver:null}))}}return t}}}]);
2//# sourceMappingURL=977.bolt.js.map?v=6896a467e9bd928393ff

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.