PageSourceSearch

https://www.diva-e.com/_nuxt/CardsBlock.90cc46e8.js

js diva-e.com collected 2026-10-01 11:57:48 UTC 2,253 bytes, 1 lines download raw bytes

1import{_ as v}from"./HeadingType.vue.1146a9d9.js";import b from"./CardsBlockItem.44584d1d.js";import{d as y,v as B,r as C,c as w,o as x,C as I,x as E,y as H,u as t,e as c,f as l,j as u,n as d,z as T,h,F as $,i as z,q as N}from"./swiper-vue.d06afa39.js";import{h as q}from"./entry.ad64c700.js";import"./ResponsiveImage.vue.262bdd56.js";import"./AnchorLink.vue.e3e3c86d.js";const L=["id"],V={class:"grid-column-container"},j=y({__name:"CardsBlock",props:{blok:{type:Object,required:!0}},setup(p){const g=p,{blok:e}=B(g),m=C(),k=w(()=>{let s="";return e.value.heading_type!=="dot-label"?s=`cards-block__tagline--${e.value.heading_alignment}`:s="",s});x(()=>{_(),window.addEventListener("resize",_)}),I(()=>{window.removeEventListener("resize",_)});function _(){if(window.innerWidth<=1023){m.value.forEach(a=>{const i=a.cardInfoTitle.$el??a.cardInfoTitle;i&&(i.style.minHeight="")});return}const s=m.value.filter(Boolean),f=3;for(let a=0;a<s.length;a+=f){const r=s.slice(a,a+f).map(o=>o.cardInfoTitle.$el??o.cardInfoTitle);if(r.forEach(o=>{o&&(o.style.minHeight="")}),r.some(o=>{var n;return(n=o.textContent)==null?void 0:n.trim()})){const o=Math.max(...r.map(n=>n.offsetHeight||0));r.forEach(n=>{n&&(n.style.minHeight=`${o}px`)})}}}return(s,f)=>{const a=v,i=b,r=E("editable");return H((c(),l("div",{id:t(e).anchor_id,class:d(["cards-block grid-container",[`cards-block--${t(e).theme}`,{"top-margin":!t(e).remove_top_margin},{"bottom-margin":!t(e).remove_bottom_margin}]])},[u("div",V,[t(e).tagline?(c(),l("div",{key:0,class:d(["cards-block__tagline",t(k)])},[T(a,{"heading-type":t(e).heading_type,heading:t(e).tagline,"class-name":t(e).heading_type==="dot-label"?"dot-blur--16 h6":"",class:d({"no-heading":!t(e).heading_type})},null,8,["heading-type","heading","class-name","class"])],2)):h("",!0),u("div",{ref:"cardsBlock",class:d(["cards-block__container",[t(e).columns,{"col--aligned":t(e).aligned}]])},[(c(!0),l($,null,z(t(e).cards,(o,n)=>(c(),l("div",{key:n,class:"cards-block__container-item"},[o?(c(),N(i,{key:0,ref_for:!0,ref_key:"cardItems",ref:m,blok:o,theme:t(e).theme,columns:t(e).columns},null,8,["blok","theme","columns"])):h("",!0)]))),128))],2)])],10,L)),[[r,t(e)]])}}});const U=q(j,[["__scopeId","data-v-22856eb4"]]);export{U 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.