@hcflgov/vue-html-wrapper
Version:
A Vue.js plugin
1 lines • 2.2 kB
JavaScript
(("undefined"!==typeof self?self:this)["webpackJsonpHcHtmlWrapper"]=("undefined"!==typeof self?self:this)["webpackJsonpHcHtmlWrapper"]||[]).push([[8],{2602:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card h-100"},[t.hideImg?s("span",{staticClass:"gradient-diag-info pt-1"}):s("a",{staticClass:"card-img-top d-flex flex-column justify-content-end",attrs:{href:t.url}},[s("div",{staticClass:"gradient-diag-info position-absolute px-2 text-white small text-truncate"},[s("span",{class:t.icon,attrs:{"aria-hidden":"true"}}),t._v("\n "+t._s(t.category)+"\n ")]),s("img",{staticClass:"img-fluid",attrs:{src:t.imgSrc,alt:""}})]),s("div",{staticClass:"card-body"},[s("h4",{staticClass:"text-secondary"},[t._v("\n "+t._s(t.heading)+"\n ")]),s("div",{staticClass:"lead font-italic small"},[t._v("\n "+t._s(t.subHeading)+"\n ")]),s("div",{},[t._v("\n "+t._s(t.excerpt)+"\n ")]),s("span",{staticClass:"text-muted small"},[t._v("Posted "+t._s(t.publishDate.toLocaleString())+" in "+t._s(t.category))])]),s("a",{staticClass:"card-footer text-right bg-white border-0",attrs:{href:t.url}},[t._v("Read More »")])])},n=[],a=s("da8a"),r={name:"hc-card-news",mixins:[a["a"]],props:{hideImg:{type:Boolean,default:!1}}},c=r,o=s("2877"),u=Object(o["a"])(c,i,n,!1,null,null,null);e["default"]=u.exports},da8a:function(t,e,s){"use strict";e["a"]={props:{sitecoreItem:{type:Object,required:!0},date:{type:Date}},computed:{heading:function(){return this.sitecoreItem["Heading"]},subHeading:function(){return this.sitecoreItem["SubHeading"]},publishDate:function(){return this.date?this.date:this.sitecoreItem["PublishDate"]},body:function(){return this.sitecoreItem["Body"]},excerpt:function(){return this.sitecoreItem["Excerpt"]},image:function(){return this.sitecoreItem["Image"]},imgSrc:function(){return this.image["Src"]},url:function(){return this.sitecoreItem["DestinationUrl"]},icon:function(){return this.sitecoreItem["Icon"]},category:function(){return this.sitecoreItem["Category"]},tags:function(){return this.sitecoreItem["Tags"]},keywords:function(){return this.sitecoreItem["Keywords"]}}}}}]);