/* 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-slider-root ${classMap(context.classes.root)}" @mousedown="${context._onmousedown}" @touchstart="${context._ontouchstart}" @mouseover="${context._onmouseover}" @mouseout="${context._onmouseout}" @keydown="${context._onkeydown}" @keyup="${context._onkeyup}" dir="${ifDefined(context.effectiveDir)}"><div class="ui5-slider-inner">${ context.step ? block1(context, tags, suffix) : undefined }<div class="ui5-slider-progress-container" aria-hidden="true" part="progress-container"><div class="ui5-slider-progress" style="${styleMap(context.styles.progress)}" @focusout="${context._onfocusout}" @focusin="${context._onfocusin}" tabindex="-1" part="progress-bar"></div></div><div class="ui5-slider-handle" style="${styleMap(context.styles.handle)}" @focusout="${context._onfocusout}" @focusin="${context._onfocusin}" role="slider" tabindex="${ifDefined(context.tabIndex)}" aria-orientation="horizontal" aria-valuemin="${ifDefined(context.min)}" aria-valuemax="${ifDefined(context.max)}" aria-valuenow="${ifDefined(context.value)}" aria-labelledby="${ifDefined(context._id)}-sliderDesc" aria-disabled="${ifDefined(context._ariaDisabled)}" data-sap-focus-ref part="handle"><${scopeTag("ui5-icon", tags, suffix)} name="source-code" part="icon-slider" slider-icon></${scopeTag("ui5-icon", tags, suffix)}>${ context.showTooltip ? block5(context, tags, suffix) : undefined }</div></div><span id="${ifDefined(context._id)}-sliderDesc" class="ui5-hidden-text">${ifDefined(context._ariaLabelledByText)}</span></div>` : html`<div class="ui5-slider-root ${classMap(context.classes.root)}" @mousedown="${context._onmousedown}" @touchstart="${context._ontouchstart}" @mouseover="${context._onmouseover}" @mouseout="${context._onmouseout}" @keydown="${context._onkeydown}" @keyup="${context._onkeyup}" dir="${ifDefined(context.effectiveDir)}"><div class="ui5-slider-inner">${ context.step ? block1(context, tags, suffix) : undefined }<div class="ui5-slider-progress-container" aria-hidden="true" part="progress-container"><div class="ui5-slider-progress" style="${styleMap(context.styles.progress)}" @focusout="${context._onfocusout}" @focusin="${context._onfocusin}" tabindex="-1" part="progress-bar"></div></div><div class="ui5-slider-handle" style="${styleMap(context.styles.handle)}" @focusout="${context._onfocusout}" @focusin="${context._onfocusin}" role="slider" tabindex="${ifDefined(context.tabIndex)}" aria-orientation="horizontal" aria-valuemin="${ifDefined(context.min)}" aria-valuemax="${ifDefined(context.max)}" aria-valuenow="${ifDefined(context.value)}" aria-labelledby="${ifDefined(context._id)}-sliderDesc" aria-disabled="${ifDefined(context._ariaDisabled)}" data-sap-focus-ref part="handle"><ui5-icon name="source-code" part="icon-slider" slider-icon></ui5-icon>${ context.showTooltip ? block5(context, tags, suffix) : undefined }</div></div><span id="${ifDefined(context._id)}-sliderDesc" class="ui5-hidden-text">${ifDefined(context._ariaLabelledByText)}</span></div>`;
const block1 = (context, tags, suffix) => html`${ context.showTickmarks ? block2(context, tags, suffix) : undefined }`;
const block2 = (context, tags, suffix) => html`<div class="ui5-slider-tickmarks" style="${styleMap(context.styles.tickmarks)}"></div>${ context.labelInterval ? block3(context, tags, suffix) : undefined }`;
const block3 = (context, tags, suffix) => html`<ul class="ui5-slider-labels ${classMap(context.classes.labelContainer)}" style="${styleMap(context.styles.labelContainer)}">${ repeat(context._labels, (item, index) => item._id || index, (item, index) => block4(item, index, context, tags, suffix)) }</ul>`;
const block4 = (item, index, context, tags, suffix) => html`<li style="${styleMap(context.styles.label)}">${ifDefined(item)}</li>`;
const block5 = (context, tags, suffix) => html`<div class="ui5-slider-tooltip" style="${styleMap(context.styles.tooltip)}"><span class="ui5-slider-tooltip-value">${ifDefined(context.tooltipValue)}</span></div>`;


export default block0;