'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-ce58ddc5.js');
const i18n = require('./i18n-a565202d.js');

let DvnCardListView = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.fields = [];
    this.items = [];
    this.strings = i18n.dvnCardListViewI18nDefault;
  }
  render() {
    const { config, fields, items, strings } = this;
    if (items.length === 0) {
      return (index.h(index.Host, { class: "d-flex justify-content-center p-3" }, strings.noItemInList));
    }
    return (index.h(index.Host, { class: "row" }, items.map(item => (index.h("div", { class: "col-sm-12 col-md-6 col-lg-6 col-xl-6" }, index.h("dvn-card-view", { key: `card-view-${item._id}`, config: config.main.cardViewConfig, fields: fields, item: item, overrideStyle: { margin: '0 0 30px 0' } }))))));
  }
};

exports.dvn_card_list_view = DvnCardListView;
