PageSourceSearch

https://www.ecfa.org/Static/dist/js/StandardsTeaserBlock-RWnVOQ1X.js

js ecfa.org collected 2026-10-02 03:24:55 UTC 5,146 bytes, 1 lines download raw bytes

1import{a3 as n,a1 as m,a2 as r,v as o,a4 as l,a7 as C,a5 as S,n as f,o as h,Z as v,R as $,ab as k,M as T}from"./vue-Bcht3WmS.js";import{_ as y}from"./layout-blocks-p7YuLNBd.js";import{k as p,l as B,t as L,j as w}from"./vuetify-B03qaPhT.js";import{c as I}from"./colors-DQzgBoGk.js";import"./vendor-DKkamBbG.js";const x={name:"StandardsTeaserImagesBlock",provide:{className:"grid-image",contain:!0},props:{className:{type:String,default:""}},mounted(){this.distributeImages()},updated(){this.distributeImages()},methods:{distributeImages(){const e=this.$el.querySelector(".standards-teaser-images-block__col-1"),i=this.$el.querySelector(".standards-teaser-images-block__col-2"),a=this.$el.querySelector(".standards-teaser-images-block__col-3");if(!e||!i||!a)return;const u=Array.from(e.children),t=Array.from(i.children),s=Array.from(a.children),c=u.length,d=Math.ceil(c/3),b=Math.ceil(c*2/3);u.forEach((g,_)=>{g.style.display=_<d?"":"none"}),t.forEach((g,_)=>{g.style.display=_>=d&&_<b?"":"none"}),s.forEach((g,_)=>{g.style.display=_>=b?"":"none"})}}},N={class:"standards-teaser-images-block__grid"},V={class:"standards-teaser-images-block__col-1"},A={class:"standards-teaser-images-block__col-2"},M={class:"standards-teaser-images-block__col-3"};function E(e,i,a,u,t,s){return n(),m(p,{class:"standards-teaser-images-block"},{default:r(()=>[o("div",N,[o("div",V,[l(e.$slots,"default",{},void 0,!0)]),o("div",A,[l(e.$slots,"default",{},void 0,!0)]),o("div",M,[l(e.$slots,"default",{},void 0,!0)])])]),_:3})}const O=y(x,[["render",E],["__scopeId","data-v-6c3b1d22"]]),q={name:"TwoColumnTeaserImagesBlock",provide:{className:"grid-image",contain:!0},props:{className:{type:String,default:""}},mounted(){this.distributeImages()},updated(){this.distributeImages()},methods:{distributeImages(){const e=this.$el.querySelector(".standards-teaser-images-block__col-1"),i=this.$el.querySelector(".standards-teaser-images-block__col-2");if(!e||!i)return;const a=Array.from(e.children),u=Array.from(i.children),t=a.length,s=Math.ceil(t/2);a.forEach((c,d)=>{c.style.display=d<s?"":"none"}),u.forEach((c,d)=>{c.style.display=d>=s?"":"none"})}}},D={class:"standards-teaser-images-block__grid"},z={class:"standards-teaser-images-block__col-1"},J={class:"standards-teaser-images-block__col-2"};function P(e,i,a,u,t,s){return n(),m(p,{class:"standards-teaser-images-block"},{default:r(()=>[o("div",D,[o("div",z,[l(e.$slots,"default",{},void 0,!0)]),o("div",J,[l(e.$slots,"default",{},void 0,!0)])])]),_:3})}const R=y(q,[["render",P],["__scopeId","data-v-dbab5bcd"]]),j={name:"StandardsTeaserBlock",components:{StandardsTeaserImagesBlock:O,TwoColumnTeaserImagesBlock:R},mixins:[I],props:{dataPrimaryLink:{type:String,default:"{}"},dataSecondaryLink:{type:String,default:"{}"},contentOrientation:{type:String,default:"left"},renderMode:{type:String,default:""}},data(){return{primaryLink:JSON.parse(this.dataPrimaryLink),secondaryLink:JSON.parse(this.dataSecondaryLink)}},computed:{images(){var e;return(e=this.$slots.images)!=null?e:[]},headingColor(){return this.backgroundColor&&this.isBackgroundDark(this.backgroundColor)?"text-white":"text-gray90"},textColor(){return this.backgroundColor&&this.isBackgroundDark(this.backgroundColor)?"text-white":"text-gray70"},backgroundStyles(){return this.backgroundColor?`background-color: ${this.backgroundColor}`:""},hasCTA(){return!!this.primaryLink.url||!!this.secondaryLink.url},isTwoColumn(){return this.renderMode==="twoColumns"}}},Z=["data-align"],F={class:"teaser-block__description"},G={key:0,class:"teaser-block__actions"};function H(e,i,a,u,t,s){const c=C("two-column-teaser-images-block"),d=C("standards-teaser-images-block");return n(),S("section",{class:h([[s.textColor,{"standards-teaser-block--two-column":s.isTwoColumn}],"standards-teaser-block"]),"data-align":a.contentOrientation,style:T(s.backgroundStyles)},[f(p,{class:"teaser-block__inner"},{default:r(()=>[f(B,{"no-gutters":"",class:h(["align-center",{"flex-row-reverse":a.contentOrientation==="left"}])},{default:r(()=>[f(L,{md:"6",cols:"12"},{default:r(()=>[o("div",{class:h(["standards-teaser-block__content",{"standards-teaser-block__content--left":a.contentOrientation==="left"}])},[o("div",{class:h([s.headingColor,"teaser-block__header"])},[l(e.$slots,"title")],2),o("div",F,[l(e.$slots,"description")]),s.hasCTA?(n(),S("div",G,[t.primaryLink.url?(n(),m(w,{key:0,href:t.primaryLink.url,title:t.primaryLink.title,target:t.primaryLink.target,variant:"flat",color:"primary"},{default:r(()=>[v($(t.primaryLink.text),1)]),_:1},8,["href","title","target"])):k("",!0),t.secondaryLink.url?(n(),m(w,{key:1,href:t.secondaryLink.url,title:t.secondaryLink.title,target:t.secondaryLink.target,variant:"flat",color:"secondary"},{default:r(()=>[v($(t.secondaryLink.text),1)]),_:1},8,["href","title","target"])):k("",!0)])):k("",!0)],2)]),_:3}),e.hasSlot("images")?(n(),m(L,{key:0,md:"6",cols:"12"},{default:r(()=>[s.isTwoColumn?(n(),m(c,{key:0},{default:r(()=>[l(e.$slots,"images")]),_:3})):(n(),m(d,{key:1},{default:r(()=>[l(e.$slots,"images")]),_:3}))]),_:3})):k("",!0)]),_:3},8,["class"])]),_:3})],14,Z)}const Y=y(j,[["render",H]]);
1export{Y 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.