PageSourceSearch

https://www.thorlabs.com/assets/product-categories-block-DuBMkbMG.js

js thorlabs.com collected 2026-09-24 17:29:13 UTC 2,650 bytes, 2 lines download raw bytes

1import{ce as y,cC as m,aN as C}from"./index-DIgvfy8z.js";import{u as j}from"./useRowBlockBackground-r33XFdNF.js";import{_ as x}from"./base-link-block.vue_vue_type_script_setup_true_lang-ANnPETV5.js";import{af as N,x as _,bc as B,a_ as s,$ as o,Q as e,ci as n,bv as r,bm as f,X as M,ac as g,F as T,b9 as H,aO as V,aM as b}from"./vendor-DRTpc3dh.js";const z={class:"x-large-container flex flex-col items-start justify-between gap-9 px-4 md:p-0 lg:gap-[30px]"},D={class:"flex w-full flex-col gap-6 md:gap-[30px]"},R={class:"flex flex-col gap-2.5"},S=["innerHTML"],$={key:0,class:"text-base font-medium leading-6"},A=["innerHTML"],F={class:"flex justify-between gap-4 md:justify-start md:gap-6"},U={class:"w-full xl:mt-0"},E={class:"grid grid-cols-2 flex-wrap gap-4.5 md:grid-cols-3 lg:gap-y-9 xl:grid-cols-4 xl:gap-6"},J=["href"],G=N({__name:"product-categories-block",props:{block:{}},setup(k){const h=k,t=_(()=>h.block),{backgroundClass:v}=j(t),w=_(()=>{var i;return(i=y.cultureName)==null?void 0:i.startsWith("ja")});return(i,O)=>{const l=B("epi-edit");return s(),o("div",{class:b(["product-categories-block flex w-full justify-center border-b-[3px] border-[--color-primary-a1] py-6 lg:pb-[60px]",r(v)])},[e("div",z,[e("div",D,[e("div",R,[n(e("h2",{class:"m-0 text-[30px] font-bold md:text-[36px]",innerHTML:t.value.title},null,8,S),[[l,"Title"]]),r(m)?(s(),o("p",$,f(i.$t("shared.product.punchout_prohibited_homepage",[r(m).organizationName])),1)):M("",!0),n(e("p",{class:"text-xl font-medium leading-7 text-[--color-neutral-a2]",innerHTML:t.value.subtitle},null,8,A),[[l,"Subtitle"]])]),e("div",F,[n(g(x,{block:t.value.viewAllLink,class:"all-links"},null,8,["block"]),[[l,"ViewAllLink"]]),n(g(x,{block:t.value.customLink,class:"custom-link"},null,8,["block"]),[[l,"CustomLink"]])])]),n((s(),o("div",U,[e("ul",E,[(s(!0),o(T,null,H(t.value.categories,(a,L)=>{var c,d,p,u;return s(),o("li",{key:L,class:"bg-[--color-white]"},[e("a",{href:(c=a.contentLink.expanded)!=null&&c.url?r(C)(a.contentLink.expanded.url,t.value.categoryLinkRemainingUrl??""):void 0,class:b(["flex h-[65px] w-full items-center justify-center rounded-md border-2 border-[--color-neutral-a4] px-3 py-4 text-lg font-bold leading-6 !text-[--color-neutral-a1] shadow-[0px_4px_12px_0px_rgba(13,10,44,0.25)]",w.value?"whitespace-normal text-center":"whitespace-nowrap"]),style:V({borderColor:(d=a.contentLink.expanded)==null?void 0:d.labelColor})},f(((p=a.contentLink.expanded)==null?void 0:p.title)??((u=a.contentLink.expanded)==null?void 0:u.name)),15,J)])}),128))])])),[[l,"Categories"]])])],2)}}});export{G as default};
2//# sourceMappingURL=product-categories-block-DuBMkbMG.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.