PageSourceSearch

https://www.runningthebasesmovie.com/js/pressKitGalleryOverlay.bolt.js?v=e9ce40f7dfb73e5798df

js runningthebasesmovie.com collected 2026-10-02 20:03:29 UTC 7,563 bytes, 2 lines download raw bytes

1"use strict";(("undefined"!=typeof self?self:this).webpackChunkthundr=("undefined"!=typeof self?self:this).webpackChunkthundr||[]).push([[421],{5254:(e,t,s)=>{s.d(t,{Z:()=>r});var a=s(7462),i=s(1934);const r=e=>(0,i.h)("svg",(0,a.Z)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 0a.5.5 0 0 1 .5.5v8.793l1.646-1.647a.502.502 0 0 1 .708.708l-2.5 2.5a.502.502 0 0 1-.708 0l-2.5-2.5a.502.502 0 0 1 .708-.708L7.5 9.293V.5A.501.501 0 0 1 8 0z"}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5 11a.5.5 0 0 1 .5.5v3c0 .827-.673 1.5-1.5 1.5h-9c-.827 0-1.5-.673-1.5-1.5l.001-3a.5.5 0 0 1 1 0v3a.5.5 0 0 0 .499.5h9c.275 0 .5-.225.5-.5v-3a.5.5 0 0 1 .5-.5z"}))},7208:(e,t,s)=>{s.r(t),s.d(t,{default:()=>c});var a=s(1934),i=s(890),r=s(9811),l=s(180),o=s(5254),n=s(6803),d=s(4328),v=s(6917);var p=s(4927);const h={wrapper:"pressKitGalleryOverlay__wrapper__IbrwN",fadeIn:"pressKitGalleryOverlay__fadeIn__Smti2",fadeOut:"pressKitGalleryOverlay__fadeOut__g2fAj",container:"pressKitGalleryOverlay__container__M4QcG",gallery:"pressKitGalleryOverlay__gallery__W8ScP",preview:"pressKitGalleryOverlay__preview__sTtrW",close:"pressKitGalleryOverlay__close__jk_r0",info:"pressKitGalleryOverlay__info__xrAPe",breadcrumbs:"pressKitGalleryOverlay__breadcrumbs__aILJa",dot:"pressKitGalleryOverlay__dot__AHzjw",popBack:"pressKitGalleryOverlay__popBack__TiKot",fade:"pressKitGalleryOverlay__fade__TKwoj",pop:"pressKitGalleryOverlay__pop__q8ESR",active:"pressKitGalleryOverlay__active__v9riW",goingLeft:"pressKitGalleryOverlay__goingLeft__moTOk",isLast:"pressKitGalleryOverlay__isLast__q3UDr",goingRight:"pressKitGalleryOverlay__goingRight__UhszM",isFirst:"pressKitGalleryOverlay__isFirst__xjt77",icons:"pressKitGalleryOverlay__icons__vHFyz",icon:"pressKitGalleryOverlay__icon__wZOXu",arrows:"pressKitGalleryOverlay__arrows__PZ3PP",arrow:"pressKitGalleryOverlay__arrow__chFao",left:"pressKitGalleryOverlay__left__e9nIg",right:"pressKitGalleryOverlay__right__j5JL7"};class c extends a.wA{constructor(e){super(e),this.state={fadeOut:!1},this.onSwipe=this.onSwipe.bind(this),this.downloadImage=this.downloadImage.bind(this),this.closeOverlay=this.closeOverlay.bind(this),this.pageData={}}componentDidMount(){var e,t,s;const a=null===(e=this.props.store)||void 0===e?void 0:e.activePage;this.pageData=null===(t=this.props.store)||void 0===t||null===(s=t.appData)||void 0===s?void 0:s.pages[a].data}componentDidUpdate(e){var t,s,a,i,r,l,o,n,d;const v=null===(t=this.props.store)||void 0===t||null===(s=t.pressKit)||void 0===s?void 0:s.overlayOpen,p=null===(a=e.store)||void 0===a||null===(i=a.pressKit)||void 0===i?void 0:i.overlayOpen,h=(null===(r=this.props.store)||void 0===r||null===(l=r.client)||void 0===l||null===(o=l.dimensions)||void 0===o?void 0:o.width)>=1024,c=null===(n=this.props.store)||void 0===n?void 0:n.activePage,_=null===(d=e.store)||void 0===d?void 0:d.activePage;var u,g;(!v||p||h?!p||v||h||this.swipeDetect&&this.swipeDetect.remove():this.image&&(this.swipeDetect=function(e,t){let s,a,i,r,l,o,n,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},v=arguments.length>3?arguments[3]:void 0,p=e,h=100,c=500,_=600,u=50,g=t||function(){};const y=e=>{let t=e.changedTouches[0];s="none",a=t.pageX,i=t.pageY,n=(new Date).getTime()},w=e=>{let t=e.changedTouches[0];r=t.pageX-a,l=t.pageY-i,d(r,l)},O=e=>{let t=e.changedTouches[0];r=t.pageX-a,l=t.pageY-i,o=(new Date).getTime()-n,o<=_&&("horizontal"===v?Math.abs(r)>=h&&Math.abs(l)<=c&&(s=r<0?"left":"right"):Math.abs(l)>=h&&Math.abs(r)<=c&&(s=l<0?"up":"down")),s&&g(s)},m=e=>{e.deltaY>u?(s="horizontal"===v?"left":"up",g(s)):e.deltaY<-u&&(s="horizontal"===v?"right":"down",g(s))},f=e=>{"ArrowDown"===e.key?g("up"):"ArrowUp"===e.key&&g("down")};p.addEventListener("touchstart",y,!1),p.addEventListener("touchmove",w,!1),p.addEventListener("touchend",O,!1),p.addEventListener("wheel",m,!1),document.addEventListener("keydown",f,!1);return{remove:()=>{p.removeEventListener("wheel",m,!1),p.removeEventListener("touchstart",y,!1),p.removeEventListener("touchmove",w,!1),p.removeEventListener("touchend",O,!1),document.removeEventListener("keydown",f,!1)}}}(this.image,this.onSwipe,(()=>{}),"horizontal")),_!==c)&&(this.pageData=null===(u=this.props.store)||void 0===u||null===(g=u.appData)||void 0===g?void 0:g.pages[c].data)}onSwipe(e){var t;const s=(0,v.FZ)((null===(t=this.pageData)||void 0===t?void 0:t.assets)||{},((e,t)=>({...e,key:t}
1)));let a=s.findIndex((e=>{var t;return e.key===(null===(t=i.Z.get().pressKit)||void 0===t?void 0:t.overlayOpen)}))+("left"===e?1:-1);a<0?a=s.length-1:a>=s.length&&(a=0);const r=s[a];this.setState({direction:e}),this.updateActiveSlide(r.key)}async closeOverlay(){this.setState({fadeOut:!0}),await new Promise((e=>setTimeout(e,300))),i.Z.emit("TOGGLE_PRESSKIT_OVERLAY",null),this.setState({fadeOut:!1})}updateActiveSlide(e){i.Z.emit("TOGGLE_PRESSKIT_OVERLAY",e)}downloadImage(){var e,t;const s=((null===(e=this.pageData)||void 0===e?void 0:e.assets)||{})[null===(t=i.Z.get().pressKit)||void 0===t?void 0:t.overlayOpen]||{};if(s.assetLink)return(0,p.P8)(s.assetLink);i.Z.emit("DOWNLOAD_PRESSKIT_IMAGE",s)}async shareImage(){var e,t;const s=((null===(e=this.pageData)||void 0===e?void 0:e.assets)||{})[null===(t=i.Z.get().pressKit)||void 0===t?void 0:t.overlayOpen];i.Z.emit("SHARE_PRESSKIT_IMAGE",s)}renderGallery(){var e,t;const s=((null===(e=this.pageData)||void 0===e?void 0:e.assets)||{})[null===(t=i.Z.get().pressKit)||void 0===t?void 0:t.overlayOpen]||{},{preview:r,thumbnail:l,alt:o}=s;return(0,a.h)("div",{class:h.gallery,ref:e=>this.image=e},(0,a.h)("img",{class:h.preview,src:r||l,alt:o}),(0,a.h)("div",{class:h.arrows},(0,a.h)(n.Z,{class:(0,v.WM)(h.arrow,h.left),onClick:()=>this.onSwipe("right")}),(0,a.h)(n.Z,{class:(0,v.WM)(h.arrow,h.right),onClick:()=>this.onSwipe("left")})))}renderBreadcrumbs(){var e,t;const s=(0,v.FZ)((null===(e=this.pageData)||void 0===e?void 0:e.assets)||{},((e,t)=>({...e,key:t}))),r=null===(t=i.Z.get().pressKit)||void 0===t?void 0:t.overlayOpen,{direction:l}=this.state;return(0,a.h)("div",{class:h.breadcrumbs},s.map(((e,t)=>(0,a.h)("div",{class:(0,v.WM)(h.dot,e.key===r&&h.active,"right"===l?h.goingLeft:h.goingRight,0===t&&h.isFirst,t===s.length-1&&h.isLast),onClick:()=>this.updateActiveSlide(e.key)}))))}renderInfo(){var e;const{assets:t={},categories:s={}}=this.pageData,r=t[null===(e=i.Z.get().pressKit)||void 0===e?void 0:e.overlayOpen]||{},{category:l,label:o}=r,n=s[l];return(0,a.h)("div",{class:(0,v.WM)(h.info,"small")},(0,a.h)("span",null,(0,a.h)(d.Z,{markdown:!0,tag:"strong",class:h.categoryName},n),":"),(0,a.h)(d.Z,{tag:"span",markdown:!0},o))}renderIcons(){var e,t,s,i;const r=null===(e=this.props.store)||void 0===e||null===(t=e.pressKit)||void 0===t?void 0:t.canShareFile,n="desktop"===(null===(s=this.props.store)||void 0===s||null===(i=s.client)||void 0===i?void 0:i.device);return(0,a.h)("div",{class:h.icons},r&&!n&&(0,a.h)(l.Z,{class:h.icon}),(0,a.h)(o.Z,{class:h.icon,onClick:this.downloadImage}))}render(){var e,t;const s=null===(e=i.Z.get().pressKit)||void 0===e?void 0:e.overlayOpen,{fadeOut:l}=this.state,o=(null===(t=this.pageData)||void 0===t?void 0:t.assets)||{};return s&&o[s]?(0,a.h)("div",{class:(0,v.WM)(h.wrapper,l&&h.fadeOut)},(0,a.h)("div",{class:h.container},(0,a.h)(r.Z,{class:h.close,onClick:this.closeOverlay}),this.renderGallery(),this.renderBreadcrumbs(),this.renderIcons(),this.renderInfo())):(0,a.h)("div",null)}}}}]);
2//# sourceMappingURL=pressKitGalleryOverlay.bolt.js.map?v=e9ce40f7dfb73e5798df

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.