'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-420e0ca1.js');

const eclDateBlockEcCss = ".ecl-u-sr-only.sc-ecl-date-block-ec{border:0!important;clip:rect(0,0,0,0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.ecl-u-sr-only--focusable.sc-ecl-date-block-ec:active,.ecl-u-sr-only--focusable.sc-ecl-date-block-ec:focus{clip:auto!important;-webkit-clip-path:none!important;clip-path:none!important;height:auto!important;overflow:visible!important;position:static!important;white-space:normal!important;width:auto!important}.ecl-date-block.sc-ecl-date-block-ec{background-color:#004494;border-radius:0;box-shadow:none;box-sizing:border-box;display:inline-flex;flex-direction:column;margin:0;overflow:hidden;position:relative;text-align:center;width:5rem}.ecl-date-block.sc-ecl-date-block-ec:before{left:.75rem}.ecl-date-block.sc-ecl-date-block-ec:after,.ecl-date-block.sc-ecl-date-block-ec:before{background-color:#fff;border-radius:50%;box-shadow:none;box-sizing:content-box;content:\"\";display:block;height:10px;position:absolute;top:-5px;width:10px}.ecl-date-block.sc-ecl-date-block-ec:after{right:.75rem}.ecl-date-block__day.sc-ecl-date-block-ec{color:#fff;font:normal normal 400 1.5rem/1.75rem arial,sans-serif;font-weight:700;padding:.5rem .25rem 0 .5rem}.ecl-date-block__month.sc-ecl-date-block-ec{color:#fff;font:normal normal 400 1rem/1.25rem arial,sans-serif;padding:0 .25rem .25rem;text-decoration:none!important;text-transform:uppercase}.ecl-date-block__year.sc-ecl-date-block-ec{background-color:#ebebeb;border-top:1px solid #cfcfcf;color:#404040;font:normal normal 400 .875rem/1rem arial,sans-serif;padding:.25rem}@media (min-width:996px){.ecl-date-block.sc-ecl-date-block-ec{width:6.3rem}.ecl-date-block__day.sc-ecl-date-block-ec{padding:.5rem .25rem 0}.ecl-date-block__month.sc-ecl-date-block-ec{padding:0 .25rem .5rem}.ecl-date-block__year.sc-ecl-date-block-ec{padding:.5rem .25rem}}.ecl-date-block__daytime.sc-ecl-date-block-ec{border:0!important;clip:rect(0,0,0,0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.ecl-date-block--ongoing.sc-ecl-date-block-ec{background-color:#ffd617}.ecl-date-block--ongoing.sc-ecl-date-block-ec .ecl-date-block__day.sc-ecl-date-block-ec,.ecl-date-block--ongoing.sc-ecl-date-block-ec .ecl-date-block__month.sc-ecl-date-block-ec{color:#404040}.ecl-date-block--cancelled.sc-ecl-date-block-ec{background-color:#ebebeb}.ecl-date-block--cancelled.sc-ecl-date-block-ec .ecl-date-block__day.sc-ecl-date-block-ec,.ecl-date-block--cancelled.sc-ecl-date-block-ec .ecl-date-block__month.sc-ecl-date-block-ec{color:#404040}.ecl-date-block--past.sc-ecl-date-block-ec{background-color:#fff;outline:1px solid #ebebeb;outline-offset:-1px}.ecl-date-block--past.sc-ecl-date-block-ec:after,.ecl-date-block--past.sc-ecl-date-block-ec:before{border:1px solid #ebebeb}.ecl-date-block--past.sc-ecl-date-block-ec .ecl-date-block__day.sc-ecl-date-block-ec,.ecl-date-block--past.sc-ecl-date-block-ec .ecl-date-block__month.sc-ecl-date-block-ec{color:#404040}.ecl-date-block--past.sc-ecl-date-block-ec .ecl-date-block__year.sc-ecl-date-block-ec{border-top-color:#ebebeb}";

const eclDateBlockEuCss = ".ecl-u-sr-only.sc-ecl-date-block-eu{border:0!important;clip:rect(0,0,0,0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.ecl-u-sr-only--focusable.sc-ecl-date-block-eu:active,.ecl-u-sr-only--focusable.sc-ecl-date-block-eu:focus{clip:auto!important;-webkit-clip-path:none!important;clip-path:none!important;height:auto!important;overflow:visible!important;position:static!important;white-space:normal!important;width:auto!important}.ecl-date-block.sc-ecl-date-block-eu{background-color:#0e47cb;border-radius:8px;box-shadow:0 2px 4px rgba(9,49,142,.08),0 0 10px rgba(9,49,142,.04),0 4px 5px rgba(9,49,142,.04),0 -4px 4px rgba(9,49,142,.04);box-sizing:border-box;display:inline-flex;flex-direction:column;margin:0;overflow:hidden;position:relative;text-align:center;width:5rem}.ecl-date-block.sc-ecl-date-block-eu:before{left:.75rem}.ecl-date-block.sc-ecl-date-block-eu:after,.ecl-date-block.sc-ecl-date-block-eu:before{background-color:#fff;border-radius:50%;box-shadow:inset 0 2px 4px rgba(9,49,142,.08),inset 0 0 10px rgba(9,49,142,.04),inset 0 4px 5px rgba(9,49,142,.04),inset 0 -4px 4px rgba(9,49,142,.04);box-sizing:content-box;content:\"\";display:block;height:10px;position:absolute;top:-5px;width:10px}.ecl-date-block.sc-ecl-date-block-eu:after{right:.75rem}.ecl-date-block__day.sc-ecl-date-block-eu{color:#fff;font:normal normal 400 1.5rem/1.75rem arial,sans-serif;font-weight:700;padding:.5rem .25rem 0 .5rem}.ecl-date-block__month.sc-ecl-date-block-eu{color:#fff;font:normal normal 400 1rem/1.25rem arial,sans-serif;padding:0 .25rem .25rem;text-decoration:none!important;text-transform:uppercase}.ecl-date-block__year.sc-ecl-date-block-eu{background-color:#fff;border-top:1px solid transparent;color:#171a22;font:normal normal 400 .875rem/1rem arial,sans-serif;padding:.25rem}@media (min-width:996px){.ecl-date-block.sc-ecl-date-block-eu{width:6.3rem}.ecl-date-block__day.sc-ecl-date-block-eu{padding:.5rem .25rem 0}.ecl-date-block__month.sc-ecl-date-block-eu{padding:0 .25rem .5rem}.ecl-date-block__year.sc-ecl-date-block-eu{padding:.5rem .25rem}}.ecl-date-block__daytime.sc-ecl-date-block-eu{border:0!important;clip:rect(0,0,0,0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.ecl-date-block--ongoing.sc-ecl-date-block-eu{background-color:#fc0}.ecl-date-block--ongoing.sc-ecl-date-block-eu .ecl-date-block__day.sc-ecl-date-block-eu,.ecl-date-block--ongoing.sc-ecl-date-block-eu .ecl-date-block__month.sc-ecl-date-block-eu{color:#171a22}.ecl-date-block--cancelled.sc-ecl-date-block-eu{background-color:#d4d5d7}.ecl-date-block--cancelled.sc-ecl-date-block-eu .ecl-date-block__day.sc-ecl-date-block-eu,.ecl-date-block--cancelled.sc-ecl-date-block-eu .ecl-date-block__month.sc-ecl-date-block-eu{color:#171a22}.ecl-date-block--past.sc-ecl-date-block-eu{background-color:#fff;outline:1px solid transparent;outline-offset:-1px}.ecl-date-block--past.sc-ecl-date-block-eu:after,.ecl-date-block--past.sc-ecl-date-block-eu:before{border:1px solid transparent}.ecl-date-block--past.sc-ecl-date-block-eu .ecl-date-block__day.sc-ecl-date-block-eu,.ecl-date-block--past.sc-ecl-date-block-eu .ecl-date-block__month.sc-ecl-date-block-eu{color:#171a22}.ecl-date-block--past.sc-ecl-date-block-eu .ecl-date-block__year.sc-ecl-date-block-eu{border-top-color:#cfdaf5}";

const EclDateBlock = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.styleClass = '';
        this.variant = 'default';
        this.theme = 'ec';
        this.day = undefined;
        this.month = undefined;
        this.year = undefined;
        this.monthFull = undefined;
        this.dateTime = undefined;
    }
    getClass() {
        return [
            `ecl-date-block`,
            `ecl-date-block--${this.variant}`,
            this.styleClass
        ].join(' ');
    }
    render() {
        return (index.h("time", { class: this.getClass() }, this.dateTime ?
            index.h("span", { class: "ecl-date-block__daytime" }, this.dateTime) : '', this.day ?
            index.h("span", { class: "ecl-date-block__day", "aria-hidden": "true" }, this.day) : '', this.month ?
            index.h("abbr", { title: this.monthFull, class: "ecl-date-block__month", "aria-hidden": "true" }, this.month) : '', this.year ?
            index.h("span", { class: "ecl-date-block__year", "aria-hidden": "true" }, this.year) : ''));
    }
};
EclDateBlock.style = {
    ec: eclDateBlockEcCss,
    eu: eclDateBlockEuCss
};

exports.ecl_date_block = EclDateBlock;

//# sourceMappingURL=ecl-date-block.cjs.entry.js.map