@amp-nova/dc-accelerators
Version:
Amplience DC Frontend modules
1 lines • 1.38 kB
JavaScript
this.AmpCa=this.AmpCa||{},this.AmpCa.templates=this.AmpCa.templates||{},this.AmpCa.templates["acc-template-cardList"]={1:function(a,n,e,l,r){var s;return"amp-dc-prod-"+a.escapeExpression(a.lambda(null!=(s=null!=n?n.cards:n)?s.length:s,n))+"-rows\n"},3:function(a,n,e,l,r){return"amp-dc-prod-3-rows"},5:function(a,n,e,l,r){return"amp-dc-cards-hero"},7:function(a,n,e,l,r){return a.escapeExpression((e.templateChooser||n&&n.templateChooser||e.helperMissing).call(null!=n?n:a.nullContext||{},n,r&&r.index,{name:"templateChooser",hash:{},data:r}))},compiler:[7,">= 4.0.0"],main:function(a,n,e,l,r){var s,t,i=null!=n?n:a.nullContext||{},p=e.helperMissing;return'<div class="amp-dc-card-list\n'+(null!=(s=(e.iff||n&&n.iff||p).call(i,null!=(s=null!=n?n.cards:n)?s.length:s,"<",6,{name:"iff",hash:{},fn:a.program(1,r,0),inverse:a.program(3,r,0),data:r}))?s:"")+"\n "+(null!=(s=e.if.call(i,null!=n?n.heroList:n,{name:"if",hash:{},fn:a.program(5,r,0),inverse:a.noop,data:r}))?s:"")+'\n">\n <div class="amp-dc-card-title">\n '+a.escapeExpression("function"==typeof(t=null!=(t=e.header||(null!=n?n.header:n))?t:p)?t.call(i,{name:"header",hash:{},data:r}):t)+'\n </div>\n\n <div class="amp-dc-card-list-wrap">\n '+(null!=(s=e.each.call(i,null!=n?n.cards:n,{name:"each",hash:{},fn:a.program(7,r,0),inverse:a.noop,data:r}))?s:"")+"\n </div>\n</div>"},useData:!0};