import { html, nothing, unsafeCSS, css } from "lit"; import { customElement } from "lit/decorators.js"; import { TemsObjectHandler } from "@helpers"; import type { Sentiment } from "@src/rdf"; import { msg } from "@lit/localize"; import MediaTrendExplorerContentStyle from "@styles/orbit/mediatrendexplorer/tems-mediatrendexplorer-content.scss?inline"; import "~icons/ic/outline-place"; @customElement("tems-mediatrendexplorer-content") export class TemsMediatrendexplorerContent extends TemsObjectHandler { object?: Sentiment; static styles = css` ${unsafeCSS(MediaTrendExplorerContentStyle)} `; render() { if (!this.object) { return nothing; } return html` ${this.object.keyword} ${this.object.providers ?.filter((provider) => provider.image) .map( (provider) => html`` )} ${this.object.location?.country ? html` ${this.object.location?.country} ` : nothing} ${this.object.topics && this.object.topics.length > 0 ? html` ${msg("Related Topics")} ${this.object.topics?.map( (topic) => html`` )} ` : nothing} `; } }
${this.object.location?.country}