System.register(["./p-5b6828db.system.js","./p-44a51600.system.js","./p-fd018a28.system.js","./p-ff628133.system.js","./p-23628d1c.system.js","./p-fa32c614.system.js","./p-58f2f536.system.js"],(function(e){"use strict";var i,a,r,o,d,t,l,n,c;return{setters:[function(e){i=e.r;a=e.h;r=e.H;o=e.c},function(e){d=e.a},function(e){t=e.T;l=e.I},function(e){n=e.f},function(e){c=e.a},function(){},function(){}],execute:function(){var s=e("dvn_card_list_view",function(){function e(e){i(this,e);this.fields=[];this.items=[]}e.prototype.render=function(){var e=this,i=e.config,o=e.fields,d=e.items;return a(r,{class:"row"},d.map((function(e){return a("div",{class:"col-sm-12 col-md-6 col-lg-6 col-xl-6"},a("dvn-card-view",{key:"card-view-"+e._id,config:i.main.cardViewConfig,fields:o,item:e,overrideStyle:{margin:"0 0 30px 0"}}))})))};return e}());var v=undefined&&undefined.__rest||function(e,i){var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&i.indexOf(r)<0)a[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++){if(i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o]))a[r[o]]=e[r[o]]}return a};function h(e,i,a){var r,o,d,s,h,f,u,m,g,p,y,S,w,P,b,I;var j=((r=e.header)===null||r===void 0?void 0:r.title)&&c(a,n(i,e.header.title.fieldId),e.header.title.fieldId);var T=((o=e.header)===null||o===void 0?void 0:o.title)?e.header.title.position:t.BelowCover;var O=((s=(d=e.header)===null||d===void 0?void 0:d.cover)===null||s===void 0?void 0:s.fieldId)&&a[n(i,e.header.cover.fieldId).id];var R=((h=e.header)===null||h===void 0?void 0:h.cover)&&e.header.cover.size;var z=((f=e.header)===null||f===void 0?void 0:f.cover)&&e.header.cover.aspectRatio;var V=((u=e.header)===null||u===void 0?void 0:u.cover)&&e.header.cover.placeholder;var _=((m=e.header)===null||m===void 0?void 0:m.image)&&c(a,n(i,e.header.image.fieldId),e.header.image.fieldId);var x=((g=e.header)===null||g===void 0?void 0:g.image)&&e.header.image.placeholderFieldId&&c(a,n(i,e.header.image.placeholderFieldId),e.header.image.placeholderFieldId);var A=((p=e.header)===null||p===void 0?void 0:p.image)?e.header.image.placeholderType:"text";var C=((y=e.header)===null||y===void 0?void 0:y.image)&&e.header.image.size;var F=((S=e.header)===null||S===void 0?void 0:S.image)?e.header.image.shape:"circle";var D=((w=e.header)===null||w===void 0?void 0:w.image)?e.header.image.position:l.Center;var k=(((P=e.body)===null||P===void 0?void 0:P.fields)||[]).map((function(e){var r=e.fieldId,o=e.fieldDisplay,d=e.customViewTag,t=v(e,["fieldId","fieldDisplay","customViewTag"]);if(d){return{customViewTag:d,field:undefined,label:"",value:"",meta:t}}var l=o||n(i,r);if(!l){console.error("Field with id "+r+" not found. Available fields are "+i.map((function(e){return e.id})).join(", "))}return{field:l,label:l.title,value:c(a,l),meta:t}}));return{header:{title:j,titlePosition:T,coverSrc:O,coverPlaceholder:V,coverSize:R,coverAspectRatio:z,imageSrc:_,imagePlaceholderValue:x,imagePlaceholderType:A,imageSize:C,imageShape:F,imagePosition:D,actions:((b=e.header)===null||b===void 0?void 0:b.actions)||[]},body:{fields:k},footer:{actions:((I=e.footer)===null||I===void 0?void 0:I.actions)||[]}}}var f=e("dvn_card_view",function(){function e(e){i(this,e);this.action=o(this,"action",7);this.leaned=false}e.prototype.render=function(){var e=this;var i=this,o=i.fields,t=i.item,l=i.config,n=i.overrideStyle;var c=h(l,o,t);var s=!!l.header&&!!(l.header.image||l.header.cover);var v=!!l.header&&!!l.header.image;var f=!!l.header&&(l.header.title||v);return a(r,{style:this.overrideStyle},a("dvn-card",{cornerRadius:this.cornerRadius,elevation:0,leaned:this.leaned,style:n},f&&a("dvn-card-header",{title:c.header.title,titlePosition:c.header.titlePosition,slot:"header",showCover:s,coverSrc:c.header.coverSrc,coverPlaceholder:c.header.coverPlaceholder,coverSize:c.header.coverSize,coverAspectRatio:c.header.coverAspectRatio,showImage:v,imageSrc:c.header.imageSrc,imageSize:c.header.imageSize,imageShape:c.header.imageShape,imagePlaceholder:c.header.imagePlaceholderValue,imagePlaceholderType:c.header.imagePlaceholderType,imagePosition:c.header.imagePosition,cornerRadius:this.cornerRadius},c.header.actions.length>0&&a("div",{class:"header-actions-container",slot:"action"},c.header.actions.map((function(i,a){return d(a,{},t,e.action,i)})))),c.body.fields.map((function(e){if(e.customViewTag){var i=e.customViewTag;return a(i,{item:t})}else{return a("dvn-field-display",{infoTitle:e.label,field:e.field,value:e.value,meta:e.meta})}})),c.footer.actions.length>0&&a("dvn-card-footer",{slot:"footer",alignRight:true},c.footer.actions.map((function(i,a){return d(a,{},t,e.action,i)})))))};return e}())}}}));