PageSourceSearch

https://static.truckdown.com/listings/compjs/7.1.35474-comp-locations-listing-photos.min.js

js truckdown.com collected 2026-10-08 08:02:13 UTC 2,851 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklocationsComponents=self.webpackChunklocationsComponents||[]).push([[2580],{5418(e,t,o){o.r(t),o.d(t,{default:()=>v});var n=o(2508);const a={class:"images"},l={class:"carousel-container"},i=["title"],c=["src"],s={key:2,class:"carousel-indicators"},r=["onClick"],d=["src"];const m=(0,n.defineComponent)({props:{title:String,photos:Array},emits:[],setup:function(e,t){let o={activeIndex:(0,n.ref)(0),shownImage:(0,n.ref)()},a=function(e,t){return{previous:function(e){t.activeIndex.value>0&&(t.activeIndex.value=t.activeIndex.value-1)},next:function(o){t.activeIndex.value<e.photos.length-1&&(t.activeIndex.value=t.activeIndex.value+1)},open:function(e){t.shownImage.value=t.activeIndex.value},close:function(e){t.shownImage.value=void 0},goToSlide:function(o){o<=e.photos.length-1&&(t.activeIndex.value=o)}}}(e,o);return Object.assign(Object.assign({},o),a)}});const v=(0,o(6262).A)(m,[["render",function(e,t,o,m,v,p){const u=(0,n.resolveComponent)("icon"),h=(0,n.resolveComponent)("modal");return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,[(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("a",{href:"#",title:e.title,onClick:t[0]||(t[0]=(0,n.withModifiers)((...t)=>e.open&&e.open(...t),["prevent"]))},[(0,n.createElementVNode)("img",{class:"active",src:e.photos[e.activeIndex],alt:"Listing Image"},null,8,c)],8,i)]),e.photos.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"arrow arrow-left",onClick:t[1]||(t[1]=(0,n.withModifiers)((...t)=>e.previous&&e.previous(...t),["prevent"]))},[(0,n.createVNode)(u,{name:"faCaretLeft",type:"solid","aria-hidden":"true"})])):(0,n.createCommentVNode)("v-if",!0),e.photos.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"arrow arrow-right",onClick:t[2]||(t[2]=(0,n.withModifiers)((...t)=>e.next&&e.next(...t),["prevent"]))},[(0,n.createVNode)(u,{name:"faCaretRight",type:"solid","aria-hidden":"true"})])):(0,n.createCommentVNode)("v-if",!0),e.photos.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",s,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.photos,(t,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:o,onClick:(0,n.withModifiers)(t=>e.goToSlide(o),["prevent"]),class:(0,n.normalizeClass)({active:o===e.activeIndex})},null,10,r))),128))])):(0,n.createCommentVNode)("v-if",!0),(0,n.createVNode)(n.Transition,{name:"modal"},{default:(0,n.withCtx)(()=>[e.shownImage>=0?((0,n.openBlock)(),(0,n.createBlock)(h,{key:0,onClose:e.close,"hide-footer":"",class:"images-modal"},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("img",{class:"active-modal",src:e.photos[e.shownImage],alt:"Listing Image"},null,8,d)]),_:1},8,["onClose"])):(0,n.createCommentVNode)("v-if",!0)]),_:1})])}]])}}]);
2//# sourceMappingURL=7.1.35474-comp-locations-listing-photos.min.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.