${glyph}
${sign} ${this.period}
${dateLabel ? html`
${dateLabel}
` : nothing}
${
energy !== null
? html`
Energy ${energy}/10
`
: nothing
}
${d.overview ? html`${d.overview}
` : nothing}
${
d.love
? html`
`
: nothing
}
${
d.career
? html`
`
: nothing
}
${
d.health
? html`
`
: nothing
}
${
d.finance
? html`
`
: nothing
}
${
'advice' in d && d.advice
? html`
`
: nothing
}
${(() => {
const luckyNumber =
'luckyNumber' in d && d.luckyNumber !== undefined
? d.luckyNumber
: undefined;
const luckyColor =
'luckyColor' in d && d.luckyColor ? d.luckyColor : '';
const luckyNumbers =
'luckyNumbers' in d && d.luckyNumbers ? d.luckyNumbers : [];
const luckyDays = 'luckyDays' in d && d.luckyDays ? d.luckyDays : [];
const compatibleSigns = d.compatibleSigns ?? [];
if (
luckyNumber === undefined &&
!luckyColor &&
luckyNumbers.length === 0 &&
luckyDays.length === 0 &&
compatibleSigns.length === 0
)
return nothing;
return html`
${
luckyNumber !== undefined
? html`Lucky number ${luckyNumber}`
: nothing
}
${
luckyColor
? html`Lucky color ${luckyColor}`
: nothing
}
${
luckyNumbers.length
? html`Lucky numbers
${luckyNumbers.join(', ')}`
: nothing
}
${
luckyDays.length
? html`Lucky days ${luckyDays.join(', ')}`
: nothing
}
${
compatibleSigns.length
? html`
Best with
${compatibleSigns.map(
(s) => html`${s}`,
)}
`
: nothing
}
`;
})()}
`;
}
}
declare global {
interface HTMLElementTagNameMap {
'roxy-horoscope-card': RoxyHoroscopeCard;
}
}