@if (state()) {

{{ state()!.title }}

@for (field of ungroupedFields(); track field.key) { } @for (group of fieldGroups(); track group.name) {
@if (isGroupOpen(group.name)) {
@for (field of group.fields; track field.key) { }
}
}
@if (isPreviewOnly()) { } @else { }
}
@switch (field.type) { @case ('display') {
{{ field.label }} @if (field.copyable) { }
{{ draft[field.key] }}
} @case ('textarea') { {{ field.label }} } @case ('select') { {{ field.label }} @for (option of field.options ?? []; track option.value) { {{ option.label }} } } @case ('checkbox') {
{{ field.label }}
} @case ('number') { {{ field.label }} } @default { {{ field.label }} @if (field.type === 'password') { } } }
@if (showUseDefault(field)) { }
@if (hasFieldMeta(field)) {
@if (fieldError(field); as error) { {{ error }} } @else if (defaultHint(field); as hint) { {{ hint }} }
} @if (field.tip) {

{{ field.tip }}

}