/* 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 id="${ifDefined(context._id)}" class="ui5-step-input-root" @keydown="${context._onkeydown}" @focusin="${context._onfocusin}" @focusout="${context._onfocusout}">${ !context.readonly ? block1(context, tags, suffix) : undefined }<${scopeTag("ui5-input", tags, suffix)} id="${ifDefined(context._id)}-inner" class="ui5-step-input-input" placeholder="${ifDefined(context.placeholder)}" type="${ifDefined(context.type)}" value="${ifDefined(context._valuePrecisioned)}" ?disabled="${context.disabled}" ?required="${context.required}" ?readonly="${context.readonly}" value-state="${ifDefined(context.valueState)}" data-sap-focus-ref ._inputAccInfo ="${ifDefined(context.accInfo)}" ._nativeInputAttributes="${ifDefined(context.inputAttributes)}" @ui5-change="${ifDefined(context._onInputChange)}" @focusout="${context._onInputFocusOut}" @focusin="${context._onInputFocusIn}">${ context.valueStateMessage.length ? block2(context, tags, suffix) : undefined }</${scopeTag("ui5-input", tags, suffix)}>${ !context.readonly ? block3(context, tags, suffix) : undefined }<slot name="formSupport"></slot></div>` : html`<div id="${ifDefined(context._id)}" class="ui5-step-input-root" @keydown="${context._onkeydown}" @focusin="${context._onfocusin}" @focusout="${context._onfocusout}">${ !context.readonly ? block1(context, tags, suffix) : undefined }<ui5-input id="${ifDefined(context._id)}-inner" class="ui5-step-input-input" placeholder="${ifDefined(context.placeholder)}" type="${ifDefined(context.type)}" value="${ifDefined(context._valuePrecisioned)}" ?disabled="${context.disabled}" ?required="${context.required}" ?readonly="${context.readonly}" value-state="${ifDefined(context.valueState)}" data-sap-focus-ref ._inputAccInfo ="${ifDefined(context.accInfo)}" ._nativeInputAttributes="${ifDefined(context.inputAttributes)}" @ui5-change="${ifDefined(context._onInputChange)}" @focusout="${context._onInputFocusOut}" @focusin="${context._onInputFocusIn}">${ context.valueStateMessage.length ? block2(context, tags, suffix) : undefined }</ui5-input>${ !context.readonly ? block3(context, tags, suffix) : undefined }<slot name="formSupport"></slot></div>`;
const block1 = (context, tags, suffix) => suffix ? html`<div class="ui5-step-icon ui5-step-dec" title="${ifDefined(context.decIconTitle)}"><${scopeTag("ui5-icon", tags, suffix)} id="${ifDefined(context._id)}-dec" name="${ifDefined(context.decIconName)}" tabindex="-1" accessible-name="${ifDefined(context.decIconTitle)}" @click="${context._decValue}" @focusout="${context._onButtonFocusOut}" @mousedown="${context._decSpin}" @mouseup="${context._resetSpin}" @mouseout="${context._resetSpinOut}" input-icon show-tooltip ?clickable="${context._decIconClickable}"></${scopeTag("ui5-icon", tags, suffix)}></div>` : html`<div class="ui5-step-icon ui5-step-dec" title="${ifDefined(context.decIconTitle)}"><ui5-icon id="${ifDefined(context._id)}-dec" name="${ifDefined(context.decIconName)}" tabindex="-1" accessible-name="${ifDefined(context.decIconTitle)}" @click="${context._decValue}" @focusout="${context._onButtonFocusOut}" @mousedown="${context._decSpin}" @mouseup="${context._resetSpin}" @mouseout="${context._resetSpinOut}" input-icon show-tooltip ?clickable="${context._decIconClickable}"></ui5-icon></div>`;
const block2 = (context, tags, suffix) => html`<slot name="valueStateMessage" slot="valueStateMessage"></slot>`;
const block3 = (context, tags, suffix) => suffix ? html`<div class="ui5-step-icon ui5-step-inc" title="${ifDefined(context.incIconTitle)}"><${scopeTag("ui5-icon", tags, suffix)} id="${ifDefined(context._id)}-inc" name="${ifDefined(context.incIconName)}" tabindex="-1" accessible-name="${ifDefined(context.incIconTitle)}" @click="${context._incValue}" @focusout="${context._onButtonFocusOut}" @mousedown="${context._incSpin}" @mouseup="${context._resetSpin}" @mouseout="${context._resetSpinOut}" input-icon show-tooltip ?clickable="${context._incIconClickable}"></${scopeTag("ui5-icon", tags, suffix)}></div>` : html`<div class="ui5-step-icon ui5-step-inc" title="${ifDefined(context.incIconTitle)}"><ui5-icon id="${ifDefined(context._id)}-inc" name="${ifDefined(context.incIconName)}" tabindex="-1" accessible-name="${ifDefined(context.incIconTitle)}" @click="${context._incValue}" @focusout="${context._onButtonFocusOut}" @mousedown="${context._incSpin}" @mouseup="${context._resetSpin}" @mouseout="${context._resetSpinOut}" input-icon show-tooltip ?clickable="${context._incIconClickable}"></ui5-icon></div>`;


export default block0;