import { r as registerInstance, h, H as Host } from './index-b7735e0d.js';
import { d as dvnCardListViewI18nDefault } from './i18n-7978f1c0.js';

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

export { DvnCardListView as dvn_card_list_view };
