import { BoxrecCommonLinks } from "../../boxrec-common-tables/boxrec-common-links" ; import { BoxrecCommonTablesColumnsClass } from "../../boxrec-common-tables/boxrec-common-tables-columns.class" ; import { DateGetter , DateInterface } from "../../decorators/date.decorator" ; import { MetadataGetter , MetadataInterface } from "../../decorators/metadata.decorator" ; import { BoxrecCommonTableHeader , getColumnDataByColumnHeader } from "../../helpers" ; import { BoxrecLocation } from "../boxrec.constants" ; import { BoxrecPageEventCommonRow } from "../location/event/boxrec.page.event.common.row" ; import { BoxrecProfileEventLinks } from "./boxrec.profile.constants" ; @ DateGetter ( ) @ MetadataGetter ( ) export class BoxrecPageProfileEventRow extends BoxrecPageEventCommonRow implements DateInterface , MetadataInterface { date : string ; metadata : string | null ; get links ( ) : BoxrecProfileEventLinks { const linksStr = `<div>${ getColumnDataByColumnHeader ( this . $ , this . headerColumns , BoxrecCommonTableHeader . links ) }</div>` ; return BoxrecCommonLinks . parseLinkInformation < BoxrecProfileEventLinks > ( this . $ ( linksStr ) , { event : null , } ) ; } get location ( ) : BoxrecLocation { return BoxrecCommonTablesColumnsClass . parseLocationLink ( getColumnDataByColumnHeader ( this . $ , this . headerColumns , BoxrecCommonTableHeader . location ) ) ; } }