import{r as registerInstance,h,H as Host}from"./index-b7735e0d.js";import{d as dvnCardListViewI18nDefault}from"./i18n-7978f1c0.js";var DvnCardListView=function(){function i(i){registerInstance(this,i);this.fields=[];this.items=[];this.strings=dvnCardListViewI18nDefault}i.prototype.render=function(){var i=this,t=i.config,e=i.fields,n=i.items,s=i.strings;if(n.length===0){return h(Host,{class:"d-flex justify-content-center p-3"},s.noItemInList)}return h(Host,{class:"row"},n.map((function(i){return h("div",{class:"col-sm-12 col-md-6 col-lg-6 col-xl-6"},h("dvn-card-view",{key:"card-view-".concat(i._id),config:t.main.cardViewConfig,fields:e,item:i,overrideStyle:{margin:"0 0 30px 0"}}))})))};return i}();export{DvnCardListView as dvn_card_list_view};