1"use strict";(self.webpackChunkfeatures_web=self.webpackChunkfeatures_web||[]).push([[493],{3272:(e,n,t)=>{t.d(n,{_:()=>r});var o=t(76563),i=t(23490);const r=(e,n)=>{const{data:t}=(0,o.useQuery)([{queryKey:e}],()=>async function(){const{data:e}=await i.A.get(n);return e}());return{data:t}}},16590:(e,n,t)=>{t.d(n,{A:()=>i});t(2757);var o=t(76417);const i=e=>{let{children:n,anchorID:t,backgroundColor:i}=e;return(0,o.jsx)("div",{id:t,style:{minHeight:"calc(100vh - 300px)",backgroundColor:null!==i&&void 0!==i?i:"#eee",backgroundSize:"cover",padding:"1rem 0"},children:n})}},32774:(e,n,t)=>{t.d(n,{D:()=>i,b:()=>r});var o=t(76417);function i(){return(0,o.jsxs)("svg",{xmlns:"https://ocv-web-icons.s3.us-east-2.amazonaws.com/play.svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":"play button",children:[(0,o.jsx)("title",{children:"Click to Play"}),(0,o.jsx)("desc",{children:"Play Button"}),(0,o.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})]})}function r(){return(0,o.jsxs)("svg",{xmlns:"https://ocv-web-icons.s3.us-east-2.amazonaws.com/pause.svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",role:"img","aria-label":"pause button",children:[(0,o.jsx)("title",{children:"Click to Pause"}),(0,o.jsx)("desc",{children:"Pause Button"}),(0,o.jsx)("line",{x1:"8",y1:"5",x2:"8",y2:"19"}),(0,o.jsx)("line",{x1:"16",y1:"5",x2:"16",y2:"19"})]})}},72263:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var o=t(24107),i=t(13840),r=(t(14201),t(80565)),l=t(83732),a=t(3272),s=t(32774),d=t(16590),u=t(76417);function c(e){let{anchorID:n,link:t}=e;const{galleryRef:c}=(0,r.v)(),[h]=(0,l.U)("(max-width: 768px)"),{data:g}=(0,a._)("queryPhotoGallery-"+n,t),v=null===g||void 0===g?void 0:g.entries,x=(null===v||void 0===v?void 0:v.map(e=>{var n,t,o;return{original:null===(n=e.image)||void 0===n?void 0:n.large,originalAlt:e.title,fullscreen:null===(t=e.image)||void 0===t?void 0:t.large,originalTitle:"Click to view Fullscreen",thumbnail:null===(o=e.image)||void 0===o?void 0:o.small,thumbnailAlt:e.title,thumbnailTitle:"Click to View"}}))||[];function p(){return c.current?c.current.getCurrentIndex():null}return(0,u.jsx)(d.A,{anchorID:n,backgroundColor:"#eee",children:(0,u.jsx)("section",{id:n,"data-testid":n,style:{padding:h?"5px":"16px",backgroundColor:"#eee"},className:"ocvPhotoGallery",children:(0,u.jsx)(i.A,{ref:c,items:x.map(e=>(0,o.A)((0,o.A)({},e),{},{renderItem:()=>(0,u.jsx)("div",{style:{display:"block",width:"auto",height:h?"40dvh":"60dvh",margin:"auto",background:"none",border:"none",padding:0,cursor:"pointer"},children:(0,u.jsx)("img",{style:{width:"auto",maxHeight:"60dvh",margin:"auto"},src:e.original,alt:e.originalAlt,title:e.originalTitle})})})),showPlayButton:!0,showFullscreenButton:!1,lazyLoad:!0,slideInterval:3e3,slideOnThumbnailOver:!1,onClick:()=>{try{const n=p();if(null!==n&&void 0!==n){var e;const t=null===(e=x[n])||void 0===e?void 0:e.original;t&&window.open(t,"_blank")}}catch(n){console.error("Error handling click event:",n)}},autoPlay:!0,infinite:!1,thumbnailPosition:h?"bottom":"left",renderPlayPauseButton:(e,n)=>(0,u.jsx)("button",{onClick:t=>function(e,n,t){e(t);const o=p();null!==o&&void 0!==o&&(o!==x.length-1||n||c.current&&c.current.slideToIndex(0))}(e,n,t),style:{background:"none",border:"none",cursor:"pointer",marginLeft:h?"8px":"16px",width:h?"32px":"64px",height:h?"32px":"64px"},"aria-label":n?"Pause Slideshow":"Play Slideshow",children:n?(0,u.jsx)(s.b,{}):(0,u.jsx)(s.D,{})})})})})}}}]); 2//# sourceMappingURL=photoGallery.ad642c96.chunk.js.map
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.