@switch (view()) {
@case ('loading') {
Caricamento del configuratore…
}
@case ('error') {
Non è stato possibile caricare il configuratore.
}
@default {
Passo {{ currentNumber() }} di {{ totalSteps() }}
@if (position() === 'result') {
— Risultato
} @else if (step(); as s) {
— {{ s.title }}
}
@if (position() !== 'result') {
@if (step(); as s) {
}
} @else if (result(); as r) {
La soluzione consigliata
{{ r.solution.title }}
{{ r.solution.description }}
@if (r.size) {
Taglia indicativa: {{ r.size.label }}
}
@if (r.estimates.investmentCents !== null || r.estimates.annualSavingsCents !== null || r.estimates.paybackYears !== null) {
@if (r.estimates.investmentCents !== null) {
- Investimento indicativo
- {{ euro(r.estimates.investmentCents) }}
}
@if (r.estimates.annualSavingsCents !== null) {
- Risparmio annuo stimato
- {{ euro(r.estimates.annualSavingsCents) }}
}
@if (r.estimates.paybackYears !== null) {
- Tempo di rientro
- {{ decimal.format(r.estimates.paybackYears) }} {{ r.estimates.paybackYears === 1 ? 'anno' : 'anni' }}
}
}
@if (r.warnings.length) {
Da tenere presente
@for (w of r.warnings; track $index) {
- {{ w }}
}
}
@if (r.details.length) {
Come abbiamo calcolato
@for (d of r.details; track $index) {
- {{ d.label }}
- {{ d.value }}
}
}
Incentivi
{{ r.incentivesNote }}
{{ r.disclaimer }}
@if (r.products.length) {
}
Un nostro tecnico verifica la stima e ti ricontatta, senza impegno.
@if (submitError(); as message) {
{{ message }}
}
} @else {
Calcolo del risultato…
@if (formError(); as message) {
{{ message }}
}
}
}
}