import { Component } from '@angular/core' ; import { Session } from '../../../services/session' ; import { AttachmentService } from '../../../services/attachment' ; import { ACCESS } from '../../../services/list-options' ; @ Component ( { selector : 'minds-card-blog' , inputs : [ '_blog : object' ] , templateUrl : 'card.html' , } ) export class BlogCard { minds ; blog ; access = ACCESS ; constructor ( public session , public attachment ) { } set _blog ( value ) { if ( ! value . thumbnail_src || ! value . header_bg ) value . thumbnail_src = 'assets/videos/earth-1/earth-1.png' ; this . blog = value ; } }