1import{_ as z}from"./Dd8MLRCN.js";import{cl as D,eC as W,et as N,hb as R,bP as C,bM as B,ev as u,gf as a,t as M,f2 as O,bN as _,ha as y,bO as E,gV as P,eY as c,bH as i,aZ as A,f7 as Y,eF as s,c2 as x,gs as $,aY as F,b1 as H}from"#entry";import{u as j}from"./DUqswEDR.js";import{u as Z,I as q}from"./D_LQZ3Gb.js";import"./DKWClPlB.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"production-292223752"};var l=new o.Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="5d6d7e74-3fa3-4629-a841-5d9a93b1ce98",o._sentryDebugIdIdentifier="sentry-dbid-5d6d7e74-3fa3-4629-a841-5d9a93b1ce98")}catch{}})();const G={class:"card-carousel-block"},J={class:"card-carousel-block__wrapper"},K=D({__name:"CardCarouselBlock",props:{blok:{}},setup(o){$(t=>({v9b03cdd2:t.blok.text_color?.color,v699ebdf6:t.blok.font_size,v6fc05b08:t.blok.font_weight}));const l=o,e=P("scrollElement"),f=c(!1),b=j("screenreaderhelper"),I=i(()=>b.get("scroll_left")),L=i(()=>b.get("scroll_right")),d=c(!1),k=c(!0),v=c(!1),m=i(()=>e.value?e.value.scrollWidth>e.value.clientWidth:!1),p=()=>{e.value&&(k.value=Math.floor(e.value.scrollLeft)===0,v.value=Math.ceil(e.value.scrollLeft)>=e.value.scrollWidth-e.value.clientWidth)},h=t=>{if(!e.value)return;const r=e.value.firstElementChild?.clientWidth??0;t==="right"&&(e.value.scrollLeft+=r),t==="left"&&(e.value.scrollLeft-=r)};W(()=>{e.value&&(e.value.scrollLeft=0,N().then(()=>{p()}),d.value||(d.value=!0),f.value=!0)}),Z(e,()=>{!e.value||!d.value||(e.value.scrollLeft=0)},q.RunOnce);const S=i(()=>l.blok.items?.map(t=>({...t,text_color:l.blok.text_color,font_weight:l.blok.font_weight,font_size:l.blok.font_size,global_gradient_color:l.blok.gradient_color,global_gradient_position:l.blok.gradient_position}))||[]);return(t,r)=>{const T=z,g=F,w=A,V=Y("editable");return R((s(),C("div",G,[B("div",J,[B("div",{ref:"scrollElement",class:u(["card-carousel-block__margin",{"card-carousel-block--snap":a(f)}]),onScroll:p},[(s(!0),C(M,null,O(a(S),n=>(s(),_(T,{key:n._uid,class:"card-carousel-block__item",blok:n},null,8,["blok"]))),128))],34),a(m)?(s(),_(w,{key:0,tabindex:"-1","aria-label":a(I),class:u(["card-carousel-block__arrow-left",{"card-carousel-block__arrow-left--hidden":a(k)}]),onClick:r[0]||(r[0]=n=>h("left"))},{default:y(()=>[x(g,{name:"arrow-icon-black-solid",size:42})]),_:1},8,["aria-label","class"])):E("",!0),a(m)?(s(),_(w,{key:1,tabindex:"-1","aria-label":a(L),class:u(["card-carousel-block__arrow-right",{"card-carousel-block__arrow-right--hidden":a(v)}]),onClick:r[1]||(r[1]=n=>h("right"))},{default:y(()=>[x(g,{name:"arrow-icon-black-solid",size:42})]),_:1},8,["aria-label","class"])):E("",!0)])])),[[V,o.blok]])}}}),te=Object.assign(H(K,[["__scopeId","data-v-806e7314"]]),{__name:"CardCarouselBlock"});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.