PageSourceSearch

https://sidearmsports.com/SGalleryModal.es.cbaeb594.mjs

js sidearmsports.com collected 2026-10-01 06:51:10 UTC 2,956 bytes, 1 lines download raw bytes

1import{e as V,N as j,i as d,aF as z,l as A,j as E,o as s,A as B,w as n,m as H,a,y as S,b as v,z as c,aH as I,n as K,c as m,F as g,L,aI as M,M as y,aJ as $,a2 as C,G as u}from"./index.a8b11f73.mjs";import q from"./SBaseModal.es.63213eff.mjs";import{K as D}from"./SProgressIndicator.vue_vue_type_script_setup_true_lang.es.7e1a24a9.mjs";import"./_plugin-vue_export-helper.es.f875bd67.mjs";const J={"data-test-id":"s-gallery-modal__root",class:"s-gallery-modal"},O={class:"s-gallery-modal__slider"},T=["src"],R={"data-test-id":"s-gallery-modal__rotator-group",class:"flex justify-center pt-[16px] lg:pt-[32px]"},U={class:"s-gallery-modal__details flex flex-col space-y-[16px] pt-[16px] lg:pt-[32px]"},Q={key:0,"data-test-id":"s-gallery-modal__details-title",class:"s-gallery-modal__details-title s-text-title"},W={"data-test-id":"s-gallery-modal__details-description",class:"s-gallery-modal__details-description s-text-paragraph"},X={"data-test-id":"s-gallery-modal__details-filename",class:"s-gallery-modal__details-filename s-text-details"},Y={name:"SGalleryModal"},te=V({...Y,props:{...j(),gallery:{type:Object,required:!0},active:{required:!0,type:Boolean,default:!1},modalTitle:String,logo:{type:Boolean,default:!0},backdrop:Boolean},setup(o){const _=o,t=d(!0),N=z(),f=d(!1),r=d(),F=e=>{r.value=e},G=()=>{t.value=!t.value};A(()=>t.value,e=>{e?r.value.autoplay.start():r.value.autoplay.stop()});const l=d(_.gallery.images[0]),P=e=>{l.value=_.gallery.images[e.realIndex]};return E(async()=>{f.value=!0}),(e,i)=>(s(),B(q,{"modal-title":o.modalTitle,active:o.active,theme:e.theme,backdrop:o.backdrop},{footer:n(()=>[H(e.$slots,"footer")]),default:n(()=>{var x,h,k,w;return[a("div",J,[a("div",O,[S(v(c(I),{onSwiper:F,onActiveIndexChange:P,speed:300,autoplay:"",loop:"","auto-height":"",class:K(["w-full",c(N)]),navigation:{prevEl:".s-rotator-btn--arrow-prev",nextEl:".s-rotator-btn--arrow-next"},breakpoints:{0:{slidesPerView:1,slidesPerGroup:1}}},{default:n(()=>[(s(!0),m(g,null,L(o.gallery.images,(p,b)=>(s(),m(g,null,[f.value||b===0?(s(),B(c(M),{key:b,class:"s-gallery-modal__slider-item"},{default:n(()=>[a("div",null,[a("img",{src:p.large,class:"cover aspect-auto",alt:"","data-test-id":"s-gallery-modal__slider-item-image"},null,8,T)])]),_:2},1024)):y("",!0)],64))),256)),a("div",R,[v(c($),{"show-text":"",theme:e.theme,onPrev:i[0]||(i[0]=p=>t.value=!1),onNext:i[1]||(i[1]=p=>t.value=!1),playing:t.value,onPlay:G},null,8,["theme","playing"])])]),_:1},8,["class","navigation"]),[[C,r.value]]),S(v(D,{theme:"light-theme",size:"regular",indeterminate:"",type:"circular"},null,512),[[C,!r.value]])]),a("div",U,[l.value?(s(),m(g,{key:0},[l.value.title?(s(),m("div",Q,u((x=l.value)==null?void 0:x.title),1)):y("",!0),a("div",W,u((h=l.value)==null?void 0:h.caption),1),a("div",X,u((k=l.value)==null?void 0:k.id)+" / "+u((w=l.value)==null?void 0:w.filename),1)],64)):y("",!0)])])]}),_:3},8,["modal-title","active","theme","backdrop"]))}});export{te 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.