/* eslint no-unused-vars: 0 */
import { html, svg, repeat, classMap, styleMap, ifDefined, unsafeHTML, scopeTag } from "@gsmlg/ui5-webcomponents-base/dist/renderer/LitRenderer.js";

const block0 = (context, tags, suffix) => suffix ? html`<div class="ui5-calheader-root" dir="${ifDefined(context.effectiveDir)}"><div data-ui5-cal-header-btn-prev class="${classMap(context.classes.prevButton)}" @mousedown=${context.onPrevButtonClick} title="${ifDefined(context._prevButtonText)}"><${scopeTag("ui5-icon", tags, suffix)} class="ui5-calheader-arrowicon" name="slim-arrow-left"></${scopeTag("ui5-icon", tags, suffix)}></div><div class="ui5-calheader-midcontainer"><div data-ui5-cal-header-btn-month class="ui5-calheader-arrowbtn ui5-calheader-middlebtn" ?hidden="${context.isMonthButtonHidden}" tabindex="0" aria-label="${ifDefined(context.accInfo.ariaLabelMonthButton)}" @click=${context.onMonthButtonClick} @keydown=${context.onMonthButtonKeyDown} @keyup=${context.onMonthButtonKeyUp}><span>${ifDefined(context._monthButtonText)}</span>${ context.hasSecondaryCalendarType ? block1(context, tags, suffix) : undefined }</div><div data-ui5-cal-header-btn-year class="ui5-calheader-arrowbtn ui5-calheader-middlebtn" ?hidden="${context.isYearButtonHidden}" tabindex="0" @click=${context.onYearButtonClick} @keydown=${context.onYearButtonKeyDown} @keyup=${context.onYearButtonKeyUp}><span>${ifDefined(context._yearButtonText)}</span>${ context.hasSecondaryCalendarType ? block2(context, tags, suffix) : undefined }</div></div><div data-ui5-cal-header-btn-next class="${classMap(context.classes.nextButton)}" @mousedown=${context.onNextButtonClick} title=${ifDefined(context._nextButtonText)}><${scopeTag("ui5-icon", tags, suffix)} class="ui5-calheader-arrowicon" name="slim-arrow-right"></${scopeTag("ui5-icon", tags, suffix)}></div></div>` : html`<div class="ui5-calheader-root" dir="${ifDefined(context.effectiveDir)}"><div data-ui5-cal-header-btn-prev class="${classMap(context.classes.prevButton)}" @mousedown=${context.onPrevButtonClick} title="${ifDefined(context._prevButtonText)}"><ui5-icon class="ui5-calheader-arrowicon" name="slim-arrow-left"></ui5-icon></div><div class="ui5-calheader-midcontainer"><div data-ui5-cal-header-btn-month class="ui5-calheader-arrowbtn ui5-calheader-middlebtn" ?hidden="${context.isMonthButtonHidden}" tabindex="0" aria-label="${ifDefined(context.accInfo.ariaLabelMonthButton)}" @click=${context.onMonthButtonClick} @keydown=${context.onMonthButtonKeyDown} @keyup=${context.onMonthButtonKeyUp}><span>${ifDefined(context._monthButtonText)}</span>${ context.hasSecondaryCalendarType ? block1(context, tags, suffix) : undefined }</div><div data-ui5-cal-header-btn-year class="ui5-calheader-arrowbtn ui5-calheader-middlebtn" ?hidden="${context.isYearButtonHidden}" tabindex="0" @click=${context.onYearButtonClick} @keydown=${context.onYearButtonKeyDown} @keyup=${context.onYearButtonKeyUp}><span>${ifDefined(context._yearButtonText)}</span>${ context.hasSecondaryCalendarType ? block2(context, tags, suffix) : undefined }</div></div><div data-ui5-cal-header-btn-next class="${classMap(context.classes.nextButton)}" @mousedown=${context.onNextButtonClick} title=${ifDefined(context._nextButtonText)}><ui5-icon class="ui5-calheader-arrowicon" name="slim-arrow-right"></ui5-icon></div></div>`;
const block1 = (context, tags, suffix) => html`<span class="ui5-calheader-btn-sectext">${ifDefined(context._secondMonthButtonText)}</span>`;
const block2 = (context, tags, suffix) => html`<span class="ui5-calheader-btn-sectext">${ifDefined(context._secondYearButtonText)}</span>`;


export default block0;