PageSourceSearch

https://www.oldiewelle.com/wp-content/themes/cmms-theme-soylent-radio/assets/dist/1.169/Gallery.js

js oldiewelle.com collected 2026-10-07 01:46:55 UTC 2,247 bytes, 1 lines download raw bytes

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