PageSourceSearch

https://www.fazergroup.com/dist/assets/CategoryNavigationBlock.Caw9I0lH.js

js fazergroup.com collected 2026-10-02 11:05:24 UTC 2,663 bytes, 1 lines download raw bytes

1import{d as C,u as B,B as E,r as S,a as t,e as l,b as n,f as x,g as f,h as p,i as o,_ as w,w as h,c as j,j as e,S as I,N as L,P as N,K as A,A as P,k as V,l as $,m as D,n as M,p as T,s as z,q as K}from"./main.DfDvl5jK.js";const q={key:0,class:"lg:flex lg:w-full lg:flex-col lg:items-center"},F={class:"pt-4xl pb-2xl px-xl md:py-4xl lg:px-none gap-xl flex flex-wrap justify-center lg:w-[992px] xl:w-[1140px]"},O={key:0,class:"flex w-full justify-center"},R={key:1,class:"w-full"},G={class:"mt-lg mx-auto flex w-[120px] items-center justify-between md:w-[134px]"},H=["title"],J=["title"],W=C({__name:"CategoryNavigationBlock",props:{model:{},theme:{}},setup(r){const y=r,{currentPageModel:d}=K(),{t:u}=B(),i=T(()=>y.model?.categoryCarouselItems?.length||0),b=Math.min(i.value,4),g=Math.min(i.value,5),k={0:{slidesPerView:b,spaceBetween:16},[E.TABLET]:{slidesPerView:g,spaceBetween:40}},v=s=>{s.el.addEventListener("focusin",()=>s.keyboard.enable()),s.el.addEventListener("focusout",()=>s.keyboard.disable())},_=()=>{z(d.value?.url,d.value?.metadata?.currentLanguage)};return(s,Q)=>{const m=S("opti-edit");return r.model?.categoryCarouselItems?.length?(t(),l("div",q,[n("div",F,[i.value<=3?(t(),l("div",O,[(t(!0),l(x,null,f(r.model.categoryCarouselItems,(a,c)=>(t(),l("div",{key:`category-carousel-item-${a.anonymousId}-${c}`,class:"mr-[40px] flex h-full min-w-0 items-stretch justify-center"},[p(o(w,{blocks:[a],class:"flex max-w-[192px]"},null,8,["blocks"]),[[m,"CategoryCarouselItemBlock"]])]))),128))])):(t(),l("div",R,[o(e(V),{modules:[e(L),e(N),e(A),e(P)],breakpoints:k,navigation:{nextEl:".nextEl",prevEl:".prevEl"},keyboard:!1,class:"w-full",onSwiper:v,onSlideChange:_},{default:h(()=>[(t(!0),l(x,null,f(r.model.categoryCarouselItems,(a,c)=>(t(),j(e(I),{key:`category-carousel-item-${a.anonymousId}-${c}`,class:"flex h-full items-stretch justify-center"},{default:h(()=>[p(o(w,{blocks:[a],class:"flex max-w-[192px] [&_.block-wrap]:w-full"},null,8,["blocks"]),[[m,"CategoryCarouselItemBlock"]])]),_:2},1024))),128))]),_:1},8,["modules"]),n("div",G,[n("button",{title:e(u)("/common/slider/previous-label"),class:"prevEl border-fazer-blue text-brand-primary h-4xl md:h-5xl flex w-4xl cursor-pointer items-center justify-center rounded-full border md:w-5xl"},[o(e($),{class:"h-xl md:h-2xl w-xl stroke-2 md:w-2xl md:stroke-[1.5]"})],8,H),n("button",{title:e(u)("/common/slider/next-label"),class:"nextEl border-fazer-blue text-brand-primary h-4xl md:h-5xl flex w-4xl cursor-pointer items-center justify-center rounded-full border md:w-5xl"},[o(e(D),{class:"h-xl md:h-2xl w-xl stroke-2 md:w-2xl md:stroke-[1.5]"})],8,J)])]))])])):M("",!0)}}});export{W 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.