@if (setting) { @if ( { name: ('name' | thingTranslate: setting | titlecase), desc: ('description' | thingTranslate: setting | titlecase) }; as vals ) { {{ vals.name }} @if (compactView) { } } @if (!compactView) { {{ 'description' | thingTranslate: setting | titlecase }} } @if (isVisible) {
@switch (setting.inputType) { @case ('number') { } @case ('text') { } @case ('password') { } @case ('single choice') { @if (typeOf(setting.defaultValue) === 'boolean') { } @if (typeOf(setting.defaultValue) !== 'boolean') { @for (val of setting.values; track val; let i = $index) { @if (typeOf(val) !== 'number') {
{{ $any(('values' | thingTranslate: setting)?.[i]) | titlecase }}
} @if (typeOf(val) === 'number') {
{{ val }}
}
}
}
} @case ('multiple choice') { @for (val of setting.values; track val; let i = $index) { @if (typeOf(val) !== 'number') {
{{ $any(('values' | thingTranslate: setting)?.[i]) | titlecase }}
} @if (typeOf(val) === 'number') {
{{ val }}
}
}
} }
}
}