PageSourceSearch

https://www.rareobjectsfilm.com/js/boltHome.bolt.js?v=38aedd66dd681efaff19

js rareobjectsfilm.com collected 2026-10-02 22:29:02 UTC 17,145 bytes, 2 lines download raw bytes

1"use strict";(("undefined"!=typeof self?self:this).webpackChunkthundr=("undefined"!=typeof self?self:this).webpackChunkthundr||[]).push([[273],{6529:(e,t,o)=>{o.r(t),o.d(t,{default:()=>F});var i=o(7462),s=(o(3948),o(1934)),n=o(890),a=o(7159),r=o(6803),l=o(8971),d=o(6917),h=o(4927),p=o(4981),c=o(3842),m={ring:"spinner__ring__uDHs4",spin:"spinner__spin__vCJfU",tt:"spinner__tt__eXsWy"};class u extends s.wA{constructor(e){super(e)}render(e,t){let{ttLoaded:o}=t;const{appData:i,onlySpinner:n,class:a}=e,r=(i?i.copy:{}).accessibilityCopy||{},l=(0,d.RK)(this.props,"appData.header.powsterHeader.tt",null),u=(0,d.RK)(this.props,i.header.alternativeImageFormat||"png");return(0,s.h)("div",{class:(0,d.WM)(a,m.container,n&&m.centered)},!n&&(0,s.h)(c.t,{style:{display:o?"block":"none"},class:m.tt,key:"tt",alt:r,src:l&&(0,p.i)((0,h.mt)(l)),fallbackFormat:u,onLoad:()=>this.setState({ttLoaded:!0})}),(0,s.h)("div",{class:m.ring,key:"spinner"}))}}var _="sectionLoader__loading__qojkE";class g extends s.wA{constructor(e){super(e),this.load=this.load.bind(this),this.determineLoad=this.determineLoad.bind(this),this.loadSectionEvent=this.loadSectionEvent.bind(this)}componentDidMount(){if((n.Z.emit("GET_REQUESTED_SECTIONS")||[]).includes(this.props.id))return this.load();n.Z.on("LOAD_SECTION",this.loadSectionEvent),window.addEventListener("scroll",this.determineLoad,!0),this.determineLoad()}componentWillUnmount(){n.Z.off("LOAD_SECTION",this.loadSectionEvent),window.removeEventListener("scroll",this.determineLoad,!0)}componentDidUpdate(){!this.emitted&&this.$component&&(this.emitted=!0,n.Z.emit("SECTION_LOADED",this.props.id,this.$component.base||this.$component))}loadSectionEvent(e){e===this.props.id&&(this.load(),n.Z.off("LOAD_SECTION",this.loadSectionEvent))}determineLoad(){this.base.getBoundingClientRect().top<=window.innerHeight+100&&(window.removeEventListener("scroll",this.determineLoad,!0),this.load())}async load(){if(this.loadStarted)return;this.loadStarted=!0;const{getter:e}=this.props;this.component=await("function"==typeof e?e():e),this.setState({showComponent:!0})}render(e){if(!this.state.showComponent)return(0,s.h)("div",{class:_},(0,s.h)(u,{appData:e.appData}));const t=this.component.default,{getter:o,singlePage:n,...a}=e;return(0,s.h)(t,(0,i.Z)({},a,{class:(0,d.WM)({fullPage:n}),ref:e=>this.$component=e}))}}var v=o(1829),S=o(4328),w=o(8967),b=o(4297),y=o(4592),E="password__wrapper__aTBth",f="password__section__FTB_O",C="password__formWrapper__FuZJ6",A="password__tt__spO9A",D="password__form__uus9F",k="password__inputBox__mRhzt",R="password__submitButton__efG0C",O="password__formInstructions__tNzue",I="password__errorMessage__fYwvF";class P extends s.wA{constructor(e){var t,o;super(e);const i=null==e||null===(t=e.appData)||void 0===t?void 0:t.copy.baseCopy,s=i.$PASSWORD_ERROR_MESSAGE||"Invalid submission",
1n=i.$PASSWORD_INPUT_PLACEHOLDER||"Password",a=i.$PASSWORD_SUBMIT_CTA||"Submit",r=i.$PASSWORD_INSTRUCTIONS||"Enter password";this.pageData=null===(o=this.props.appData)||void 0===o?void 0:o.pages[this.props.id].data,this.handleSubmit=this.handleSubmit.bind(this),this.handleChange=this.handleChange.bind(this),this.clearInput=this.clearInput.bind(this),this.checkFailedAttempts=this.checkFailedAttempts.bind(this),this.dropFailedAttemptCookie=this.dropFailedAttemptCookie.bind(this),this.state={value:"",showError:!1,errorMessage:s,passwordInputPlaceholder:n,submitButtonCta:a,passwordFormInstructions:r,lockedOut:!1}}componentDidMount(){const e=(0,b.Z)();if(this.checkFailedAttempts(e),e.target){var t,o;let i=decodeURIComponent(e.target);this.destination=null===(t=Object.values((null===(o=this.props.appData)||void 0===o?void 0:o.pages)||{}).find((e=>(null==e?void 0:e.path)===i||(null==e?void 0:e.path)===i+"/")))||void 0===t?void 0:t.id,delete e.target;const s=(0,d.UK)(e),{origin:n,pathname:a}=window.location,r=n+a+s;window.history.pushState({},{},r)}}getFinalValue(){return this.state.value}async handleSubmit(e){var t,o,i,s,a;e.preventDefault();const r=window.location.origin,l=Object.values((null===(t=this.props.appData)||void 0===t?void 0:t.pages)||{}).filter((e=>e)).find((e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.passwordGatewayPageId})),d=(null===(o=this.props.appData)||void 0===o||null===(i=o.pages)||void 0===i||null===(s=i[null==l||null===(a=l.data)||void 0===a?void 0:a.passwordGatewayPageId])||void 0===s?void 0:s.path)||"/password";let h=this.destination||l.id;const p=this.getFinalValue();try{let e=await fetch(r+d+"api-password",{headers:{"x-pow-password":p}}),t=await e.json();return null!=t&&t.success?void(this.props.isSection?n.Z.emit("PASSWORD_ACCEPTED",this.props.sectionId):h&&n.Z.emit("CLOSE_AND_NAVIGATE",h)):(this.dropFailedAttemptCookie(),this.clearInput(),this.setState({showError:!0}))}catch(e){this.dropFailedAttemptCookie(),this.clearInput(),this.setState({showError:!0})}}handleChange(e){this.setState({value:e.target.value,showError:"Enter"===e.key})}clearInput(){window.setTimeout((()=>{this.input&&(this.input.value="")}),0)}checkFailedAttempts(e){var t,o;const i=Object.values((null===(t=this.props.appData)||void 0===t?void 0:t.pages)||{}).filter((e=>e)).find((e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.passwordGatewayPageId}));this.destination||i.id;const s=(0,y.e)("pow-password");if(this.props.isSection&&s){const e=s.split(".")[0];JSON.parse(e).path.includes(this.props.sectionPath)&&n.Z.emit("PASSWORD_ACCEPTED",this.props.sectionId)}const a=this.pageData.lockout;if(!a)return;this.failedAttempts=parseInt((0,y.e)("pow-password-attempts"))||0;const r=(null===(o=this.pageData.lockout)||void 0===o?void 0:o.attemptsAllowed)||3;if(this.failedAttempts>=r){const e=a.lockoutMessage;this.setState({lockedOut:!0,errorMessage:e})}}dropFailedAttemptCookie(){this.failedAttempts+=1;const e=3600*this.pageData.expirationInSeconds,t=(new Date).getTime()+1e3*e;document.cookie="pow-password-attempts="+this.failedAttempts+"; Max-Age="+e+"; Expires="+new Date(t).toUTCString()+"; Same-Site=Strict; Path=/",this.checkFailedAttempts()}render(e,t){var o;const{value:i,showError:n,errorMessage:a,passwordInputPlaceholder:r,submitButtonCta:l,passwordFormInstructions:p,lockedOut:c}=t;return(0,s.h)("div",{class:(0,d.WM)(E,e.isSection&&f),"data-section-id":e.sectionId},this.pageData.bg&&(0,s.h)(w.Z,{data:this.pageData.bg}),(0,s.h)("div",{class:C},this.pageData.tt&&(0,s.h)("img",{class:A,src:(0,h.mt)(this.pageData.tt,e.client),alt:null===(o=this.pageData.tt)||void 0===o?void 0:o.alt}),!c&&(0,s.h)(S.Z,{class:(0,d.WM)(O,"xlarge"),key:"instructions"},p),!c&&(0,s.h)("form",{class:D,onSubmit:this.handleSubmit,key:"form"},(0,s.h)("label",{key:"label"},(0,s.h)("input",{ref:e=>this.input=e,type:"password",placeholder:r,class:(0,d.WM)(k,"medium"),value:i,onKeyUp:this.handleChange})),n&&(0,s.h)("div",{class:(0,d.WM)(I,"medium"),key:"error"},a),(0,s.h)("input",{type:"submit",class:(0,d.WM)(R,"mediumB"),value:l,key:"submit"})),c&&(0,s.h)("div",{class:(0,d.WM)(I,"medium"),key:"error"},a)))}}var T=o(6778);n.Z.on("UPDATE_HOME_ACTIVE_PERCENTAGE",(()=>{let e=document.querySelector("[data-section=boltHome]"),t=(0,T.wf)(e),o=n.Z.get();if(void 0===t)return o.set({homeActivePercentage:0});o.set({homeActivePercentage:t})})),n.Z.on("UPDATE_SCROLL_CONTAINER_HEIGHT",(e=>{let t=n.Z.get();t.scrollerTallerThanWindow!==e&&t.set({scrollerTallerThanWindow:e})})),n.Z.on("UPDATE_VISIBILITY_PERCENTAGES",(()=>n.Z.emit("UPDATE_HOME_ACTIVE_PERCENTAGE"))),n.Z.on("PASSWORD_ACCEPTED",(e=>{const t=n.Z.get().unlockSections||[];-1===t.indexOf(e)&&t.push(e),n.Z.get().set({unlockedSections:t})}));var M=o(1921),L=o(2902),B=o(2558),Z={wrapper:"home__wrapper__ldmPE",container:"home__container__yJHZ8",stickyFooter:"home__stickyFooter__HJNxX",innerContainer:"home__innerContainer__O1yRM",scrollFade:"home__scrollFade__FH7Gt",inner:"home__inner__QTaha",fullPage:"home__fullPage__Aef6K",top:"home__top__t7kPZ",bottom:"home__bottom__nli6O",left:"home__left__pzuTT",right:"home__right__X9_gb",arrowBtn:"home__arrowBtn__Yxeln",arrowDown:"home__arrowDown__oRmUP",hide
1Shadow:"home__hideShadow__JKDTt",socials:"home__socials__xe05I",socialsStickyFooter:"home__socialsStickyFooter__u7izt",filmDetails:"home__filmDetails__tHMck",hide:"home__hide__kRCvW",homeScrolledALittleBit:"home__homeScrolledALittleBit__QRdR4",showtimesButton:"home__showtimesButton__VyXlq",sidePanelShowing:"home__sidePanelShowing__SZ48q",fadeIn:"home__fadeIn__Jqtmr",row:"home__row__WS0IP",grow:"home__grow__BoAgw"};class F extends s.wA{constructor(e){super(e),this.onScroll=this.onScroll.bind(this),this.showShowtimes=this.showShowtimes.bind(this),this.scrollToNext=this.scrollToNext.bind(this),this.openSynopsis=this.openSynopsis.bind(this)}componentWillMount(){this.isCalendarRemindMode=!(0,h.nO)()}componentDidMount(){window.addEventListener("scroll",this.onScroll,!0),n.Z.emit("UPDATE_HOME_ACTIVE_PERCENTAGE"),this.resizeObserver=new ResizeObserver((e=>{var t,o,i,s;null!==(t=e[0])&&void 0!==t&&null!==(o=t.contentRect)&&void 0!==o&&o.height&&n.Z.emit("UPDATE_SCROLL_CONTAINER_HEIGHT",(null===(i=e[0])||void 0===i||null===(s=i.contentRect)||void 0===s?void 0:s.height)>=window.innerHeight-64)})),this.innerContainer&&this.resizeObserver.observe(this.innerContainer)}componentWillUnmount(){window.removeEventListener("scroll",this.onScroll,!0),this.resizeObserver&&this.innerContainer&&this.resizeObserver.unobserve(this.innerContainer)}onScroll(){var e,t,o,i,s;let a=n.Z.get();if(null!=a&&a.ignoreScroll)return;const r=null==a||null===(e=a.header)||void 0===e?void 0:e.showtimesOverlay,l=null==a||null===(t=a.header)||void 0===t?void 0:t.homeEntOverlay,d=null==a||null===(o=a.header)||void 0===o?void 0:o.pressKitOverlay,h=null==a||null===(i=a.header)||void 0===i?void 0:i.videoOverlayOpen;if(r||l||d||h)return;let p=null===(s=this.props.store)||void 0===s?void 0:s.activePage;if(p)try{let e=["boltHome",...B.NS.map((e=>e.id))].find((e=>(0,T.vL)(this.base.querySelector('[data-section="'.concat(e,'"]'))))),t=["boltHome",...B.NS.map((e=>e.id))].find((e=>(0,T.M2)(this.base.querySelector('[data-section="'.concat(e,'"]')))));e&&e!==p&&n.Z.emit("SET_ACTIVE_PAGE",e),t&&n.Z.emit("SET_SECTION_UNDER_HEADER",t)}catch(e){}}showShowtimes(){n.Z.emit("SHOWTIMES_SHOW")}openSynopsis(){n.Z.emit("CLOSE_ALL_OVERLAYS",{animate:!0})}scrollToNext(e,t,o){let i=document.getElementById("mainScroll"),s=document.querySelector("."+Z.container).nextElementSibling;const n=(0,d.RK)(this.props,"store.client.isDesktopSize",!1),a=(0,d.RK)(this.props,"store.appData.options.sonyFeatures.sonyHeader",!1),r=n?a?34:0:a?58:(0,h.CF)();(0,M.GZ)(i,s,t||300,{offset:r,force:o})}getBottomGap(){var e,t;const{store:o}=this.props,i=null===(e=o.showtimes)||void 0===e?void 0:e.show,s=null===(t=o.homeEnt)||void 0===t?void 0:t.show;if(i||s)return 0;return("mobile"===(0,d.RK)(o,"client.deviceSize","mobile")?32:40)+(o.footer.coveredScreenSize||0)}determineHomeHeight(){if("undefined"==typeof window)return;const{store:e}=this.props,t=e.cookies||{},o=e.evidon||{};let i=window.innerHeight-this.getBottomGap();return(t.cookieBannerOpen||o.bannerOpen)&&(i-=t.height||0),{maxHeight:i?i+"px":"",marginTop:"0px"}}getCopyFindCinemasOrRemind(){const e=(0,d.RK)(this.props,"store.appData.copy.baseCopy.$FIND_CINEMAS","Find Cinemas"),t=(0,d.RK)(this.props,"store.appData.copy.baseCopy.$REMIND_ME","Save to Calendar");return this.isCalendarRemindMode?t:e}triggerFindCinemasOrRemind(){this.isCalendarRemindMode?n.Z.emit("SHOW_CAL_REMIND"):n.Z.emit("SHOWTIMES_SHOW")}renderExtraStuff(){}renderExtraTopSection(){}renderScrollArrow(e,t,o,i,n,l){return(0,s.h)(a.Z,{class:(0,d.WM)(Z.arrowBtn,t&&Z.stickyFooter,o&&i&&Z.hide,n&&Z.hasMiniGallery),trigger:this.scrollToNext,style:{marginBottom:this.getBottomGap()+"px"},key:"arrow",ariaLabel:e.accessibilityCopy.$SCROLL_ARROW_ARIA},(0,s.h)(r.Z,{class:(0,d.WM)(Z.arrowDown,l&&Z.hideShadow),"aria-hidden":!0}))}renderHomeSection(e){let t=this.props;if(!(0,d.RK)(t,"store.appData.pages.boltHome"))return;let o=t.store,i=o.client,n=o.appData,r=n.copy,p=(0,d.RK)(n,"styling.fontVariables")||{},c=(0,d.RK)(n,"pages.boltHome.data")||{};const m=(0,d.RK)(o,"header.activeSection"),u=(0,d.RK)(o,"homeActivePercentage",1),_=u<=.8,g=!m||"boltHome"===m||u>.3,S="fixed"===((0,d.RK)(n,"footer.defaultFooter.position")||"fixed"),{socialIconsMobile:w}=c;let b=(0,d.RK)(o,"showtimes.show");const y=(0,d.RK)(o,"homeEnt.show");let E=b||(0,d.RK)(o,"homeEnt.show"),f=(0,d.RK)(o,"showtimes.animate")||(0,d.RK)(o,"homeEnt.animate");const C=(0,d.RK)(o,"evidon.bannerOpen"),A=(C?(0,d.RK)(o,"evidon.height"):(0,d.RK)(o,"cookies.height"))||0,D=C||(0,d.RK)(o,"cookies.cookieBannerOpen"),k=!i.isDesktopSize,R=k&&w||!k&&!S,O=(0,d.RK)(n,"options.paramountFeatures.toutCarousel.contentCarousel",!1),I=(0,L.bA)(u,.8,.3,0,.7,!0),P=(0,d.RK)(this.props,"appData.styling.variables.black",""),T=(0,d.RK)(this.props,"appData.styling.variables.homeScrollArrow","")===P,M=(0,h._m)(B.NS);return(0,s.h)("div",{class:(0,d.WM)({s:Z,container:!0,sidePanelShowing:E,homeScrolledALittleBit:_,homeInactive:!g,stickyFooter:S,animateSidePanel:f}
1),style:this.determineHomeHeight(),"data-section":"boltHome",key:"home"},e,M.length>0&&(0,s.h)("div",{class:Z.scrollFade,style:{opacity:I}}),(0,s.h)(v.Z,{type:"home",visible:u>=.8&&!b&&!y,hide:u<.8&&!b&&!y,tt:c.tt,buttons:[c.button1,c.button2],copy:r,appData:n,cookieHeight:A,cookieBannerOpen:D,buttonLayout:c.btnLayout,client:this.props.client}),M.length>0&&this.renderScrollArrow(r,S,k,C,O,T),(0,s.h)(a.Z,{class:(0,d.WM)(Z.filmDetails,p.showtimesOnesheetCTA),trigger:this.openSynopsis,key:"synopsis"},r.baseCopy.$FILM_DETAILS),this.renderExtraStuff(),R&&(0,s.h)(l.Z,{class:(0,d.WM)(Z.socials,S&&Z.socialsStickyFooter,O&&Z.hasMiniGallery,T&&Z.hideShadow),socials:(0,d.RK)(n,"header.powsterHeader.follow"),key:"socials"}))}render(e){const{store:t={},bgRender:o}=e,{appData:n,client:a,unlockedSections:r}=t;let l=(0,d.RK)(t,"appData.pages.boltHome");const h=1===B.NS.length&&!l;return(0,s.h)("div",{class:Z.wrapper},this.renderHomeSection(o),(0,s.h)("div",{ref:e=>this.innerContainer=e,class:(0,d.WM)(h&&Z.fullPage,Z.innerContainer),style:"--home-bottom-gap: ".concat(this.getBottomGap(),"px;"),key:"sections"},this.renderExtraTopSection(),B.NS.map((e=>{var o,d;const p={store:t,appData:n,client:a,id:e.id,getter:e.getter,[e.component]:t[e.component],toggleOneSheet:this.toggleOneSheet,isSection:!0,isLoneSection:1===B.NS.length&&l,sectionFullPage:h},c=null===(o=n.pages[e.id])||void 0===o||null===(d=o.data)||void 0===d?void 0:d.passwordGatewayPageId,m=n.pages[e.id].path;return!c||r&&-1!==r.indexOf(e.id)?e.isPreloaded?(0,s.h)(e.component,p):(0,s.h)(g,(0,i.Z)({},p,{key:e.id})):(0,s.h)(P,{appData:n,id:c,isSection:!0,sectionId:e.id,sectionPath:m})}))))}}},8967:(e,t,o)=>{o.d(t,{Z:()=>_});o(3948),o(5306);var i=o(1934),s=o(4927),n=o(6917),a=o(7393),r=o(3842),l=o(4981),d=o(890),h="sectionBackground__wrapper__p3w2S",p="sectionBackground__tiled__BUHba",c="sectionBackground__bgVideo__RrFE4",m="sectionBackground__video__lAduZ",u="sectionBackground__hide__saZRO";class _ extends i.wA{constructor(e){super(e),this.state={posterVisible:!0},this.playVideo=this.playVideo.bind(this),this.removeBgVideo=this.removeBgVideo.bind(this),this.hidePoster=this.hidePoster.bind(this);const t=(0,s.mt)(this.props.data);if(t.tiled&&!t.tileSize){const e=new Image;e.onload=()=>{this.tileSize=e.naturalWidth},e.src=t.asset}}componentDidMount(){this.playVideo()}playVideo(){(0,a.Z)(this.video).then(this.hidePoster).catch(this.removeBgVideo)}removeBgVideo(){this.setState({removeBgVideo:!0})}hidePoster(){this.setState({posterVisible:!1,removeBgVideo:!1})}getBgValue(e){const{data:t}=this.props;if(!t||!t.desktop&&!t.tablet&&!t.mobile)return;let o={};return Object.entries(t).map((t=>{let[i,s]=t;o[i]=s[e]})),(0,l.i)((0,s.mt)(o))}forceBgSize(e){var t,o;let{height:i}=e;!i||"auto"===i||null!==(t=(o=i).endsWith)&&void 0!==t&&t.call(o,"px")||(i+="px"),this.wrapper.style.height=i||""}renderBgVideo(e){var t;const{removeBgVideo:o,posterVisible:s}=this.state,a=this.getBgValue("preLoadImg"),l=(null===(t=this.props.data)||void 0===t?void 0:t.alternativeImageFormat)||"jpg";return(0,i.h)("div",{class:c},(0,i.h)("video",{ref:e=>this.video=e,class:(0,n.WM)(m,o&&u),style:{objectPosition:e.bgPosition||"center"},poster:a,autoPlay:!0,muted:!0,playsInline:!0,loop:!e.disableLoop,onCanPlay:this.playVideo},e.asset.endsWith(".webm")&&(0,i.h)("source",{src:e.asset,type:"video/webm"}),(0,i.h)("source",{src:e.asset.replace(/\.[^./]+$/,".mp4"),type:"video/mp4"})),s&&a&&(0,i.h)(r.t,{src:a,alt:"",fallbackFormat:l}))}render(e){let{data:t}=e;const o=(0,s.mt)(t);let a;const r={};if(null!=o&&o.asset){const e=o.asset.trim();a=e.endsWith("webm")||e.endsWith("mp4"),r.backgroundImage="url(".concat(a?o.fallbackImg:o.asset,")"),r.backgroundPosition=o.bgPosition||"center"}if(o.tiled&&(r.backgroundSize=o.tileSize||this.tileSize||"cover"),o.backgroundColor){const e=d.Z.get().appData.styling.variables;r.backgroundColor=e[o.backgroundColor.substring(1)]||o.backgroundColor}return(0,i.h)("div",{ref:e=>this.wrapper=e,class:(0,n.WM)(h,o.tiled&&p),style:r},a&&this.renderBgVideo(o))}}}}]);
2//# sourceMappingURL=boltHome.bolt.js.map?v=38aedd66dd681efaff19

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.