PageSourceSearch

https://www.thorlabs.com/assets/mobile-lab-home-gallery-carousel-block-Bns2Db7V.js

js thorlabs.com collected 2026-10-02 02:53:40 UTC 2,293 bytes, 2 lines download raw bytes

1import{af as v,bb as k,bc as w,a_ as o,$ as s,Q as p,ci as g,ab as u,bm as _,ac as d,ch as L,F as B,b9 as V,bM as C,x as h}from"./vendor-Dqw9RJzC.js";import{a2 as T}from"./index-C-ujJ189.js";const z={class:"x-large-container flex flex-col p-0"},D={class:"flex flex-col items-start justify-between lg:flex-row lg:items-center"},j={class:"flex flex-col gap-3 text-left"},G={class:"m-0 text-[32px] font-bold leading-9"},N={class:"font-medium leading-6 text-[--color-neutral-a2]"},$={class:"gallery-scroll mt-10 flex gap-5 pb-4"},E=v({__name:"gallery-carousel-block",props:{block:{}},setup(i){const t=i;return(m,a)=>{var e,x,b,f;const r=k("VcButton"),c=k("VcImage"),l=w("epi-edit");return o(),s("div",z,[p("div",D,[p("div",j,[g((o(),s("h2",G,[u(_((e=t.block)==null?void 0:e.title),1)])),[[l,"Title"]]),g((o(),s("p",N,[u(_((x=t.block)==null?void 0:x.description),1)])),[[l,"Description"]])]),d(r,{"external-link":(b=t.block)==null?void 0:b.externalLink,class:"mt-5 h-[48px] !min-w-[160px] lg:mt-0",color:"secondary",variant:"outlineTL",size:"lg"},{default:L(()=>{var n;return[u(_((n=t.block)==null?void 0:n.buttonText),1)]}),_:1},8,["external-link"])]),p("div",$,[(o(!0),s(B,null,V((f=t.block)==null?void 0:f.images,(n,y)=>(o(),s("div",{key:y,class:"w-[calc(100%/1.5)] max-w-[430px] flex-none shrink-0 sm:w-[calc(100%/2)] lg:w-[calc(100%/2.5)]"},[d(c,{src:n.url,alt:"Gallery Image",class:"w-full rounded-md object-cover","width-size":430,"height-size":300,"multiple-dpr":"",lazy:""},null,8,["src"])]))),128))])])}}}),F=T(E,[["__scopeId","data-v-ec424580"]]),I={class:"flex w-full justify-center px-4 py-6 xl:px-0 xl:py-[50px]"},H=v({__name:"mobile-lab-home-gallery-carousel-block",props:{block:{}},setup(i){const t=i,{t:m}=C(),a=h(()=>t.block??{}),r=h(()=>{var c,l;return{title:a.value.title,description:a.value.description,images:(c=a.value.mobileLabEvents)==null?void 0:c.flatMap(e=>e.contentLink.expanded.galleryImagesArea).map(e=>({url:e==null?void 0:e.contentLink.expanded.image.url})).slice(0,6),buttonText:m("pages.mobile_labs.home_tab_gallery_carousel_button"),externalLink:(l=a.value)==null?void 0:l.galleryTabLink}});return(c,l)=>(o(),s("div",I,[d(F,{block:r.value},null,8,["block"])]))}});export{H as default};
2//# sourceMappingURL=mobile-lab-home-gallery-carousel-block-Bns2Db7V.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.