1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7033],{27033:(e,l,n)=>{n.r(l),n.d(l,{default:()=>f});var t=n(95155),a=n(12115),r=n(13383),s=n(44107),c=n(37206),i=n(30936),o=n(50910),u=n(17898),p=n(76715),d=n(42486),h=n(71727),y=n(93093),A=n.n(y),b=n(59276),k=n(41165);let C=(0,c.default)(()=>n.e(1384).then(n.bind(n,91384)),{loadableGenerated:{webpack:()=>[91384]},ssr:!1});function f({imageIndex:e={current:0}}){let l=(0,o.c)(),n=(0,a.useRef)(null),{activeBreakpoints:c}=(0,r.A)(),y=!c.includes(s.SL.DESKTOP),m=(0,p.Ay)(e=>e.vehicle),v=m?.stockType==="Used",g=(0,a.useMemo)(()=>v?y?b.Ay.mobileCPO:b.Ay.panelDesktopCPO:y?b.Ay.mobile:b.Ay.panelDesktop,[v,y]),{currentOverlay:E,setCurrentOverlay:j}=(0,p.Ay)(e=>e.overlay),w=(0,a.useCallback)(()=>{let l=n.current.children;(0,i.zS)({action:i.jW,event:{modalName:`gallery|${e.current+1}/${l.length}`,modalState:"open"}}),e.current>=0&&e.current<l.length&&l[e.current].scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[e]),x=(0,a.useCallback)(()=>{j("")},[j]);return(0,t.jsx)(C,{variant:"full",title:l("vehicleDetails.galleryPanel.title"),headerContent:(0,t.jsx)(u.A,{locationInPage:"gallery|inventory-details-panel"}),isOpen:E===d.E.IMAGE_GALLERY,onClose:x,onOpen:w,children:(0,t.jsx)("section",{ref:n,className:(0,h.A)(A().panelGallery,v&&A().cpoGallery),children:g.map((e,l)=>(0,t.jsx)(k.A,{settings:e,upscale:y?4:1,isCpoCar:v,index:l},`${v?"cpo":"new"}-${e.shot}-${l}`))})})}}}]);
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.