PageSourceSearch

https://www.welocal.world/wp-content/themes/cmms-theme-welocal/assets/dist/1.38/Gallery.js

js welocal.world collected 2026-10-09 17:01:11 UTC 1,954 bytes, 1 lines download raw bytes

1import{C as h}from"./Thumbnail.js";import{E as w}from"./EditorSwiper.js";import{L as _}from"./LightBoxGallery.js";import{_ as y}from"./app.js";import"./swiper.js";const g={name:"SoylentGallery",components:{EditorSwiper:w,CmmsThumbnail:h},props:["element"],data:function(){return{photoSwipe:null}},computed:{galleryId(){return this.element?"gallery_"+this.element.data.gallery_id:""},items(){return this.element?this.element.data.items:[]}},methods:{initPhotoSwipeGallery:function(){const m={items:[]};this.element.data.items.forEach(t=>{const i=t.image;m.items.push({src:"".concat(window.cmms_thumbs_base,"f:jpg/").concat(i.media_id,".jpg"),desc:i.label,size:{width:i.width,height:i.height}})});const n=[];this.items.forEach(t=>{n.push(Object.assign({lightbox_description:t.lightbox_description},t.image))});let e=".pswp-gallery-item";this.element.data.layout==="slider"&&(e=".swiper-card"),new _(document.querySelectorAll("#"+this.galleryId+" "+e),n)}},mounted(){this.$nextTick(()=>{this.initPhotoSwipeGallery()})}},s=window.Vue.resolveComponent,l=window.Vue.openBlock,r=window.Vue.createBlock,p=window.Vue.createCommentVNode,f=window.Vue.renderList,b=window.Vue.Fragment,d=window.Vue.createElementBlock,k=window.Vue.normalizeClass,C=["id"];function V(m,n,e,t,i,a){const c=s("EditorSwiper"),u=s("CmmsThumbnail");return e.element.data.layout==="slider"?(l(),r(c,{key:0,className:["element","swiper",e.element.type,e.element.subtype],items:e.element.data.items,"item-type":"SwiperItemImage",fullsize:!0,"swiper-id":a.galleryId,id:a.galleryId},null,8,["className","items","swiper-id","id"])):(l(),d("div",{key:1,class:k(["element",e.element.type,e.element.subtype,e.element.data.layout]),id:a.galleryId},[e.element.data.layout!=="slider"?(l(!0),d(b,{key:0},f(e.element.data.items,o=>(l(),r(u,{fill:!0,key:o.image.media_id,image:o.image,class:"pswp-gallery-item"},null,8,["image"]))),128)):p("",!0)],10,C))}const G=y(g,[["render",V]]);export{G as default};

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.