@if (viewType === 'desktop' || viewType === 'tablet') { } @if (viewType === 'mobile') { }
@for (element of elements; track element; let i = $index) { @if (_isRow(element) && element.type !== 'header' && !element._isPartOfToggleSection() && !element._isPartOfRowGroup()) { } @if (_isRowGroup(element) && !element._isPartOfToggleSection()) { } @if (_isToggleSection(element)) {
@for (elementOfSection of element.rows; track elementOfSection) { @if (_isRow(elementOfSection) && !elementOfSection._isPartOfRowGroup()) { } @if (_isRowGroup(elementOfSection)) { } }
} }

@if (_containsToggleSection()) {
@for (element of elements; track element; let i = $index) { @if (i !== 0 && i < _getMobileColumnCount()) { @if (_isRow(element) && !element._isPartOfToggleSection()) { @if (_isFirstInfoOfBlock(i)) { | } | } @if (_isToggleSection(element)) { | } } }
--- | --- | --- | ---
}
@for (element of elements; track element; let headerIndex = $index) { @if (_isRow(element) && !element._isPartOfToggleSection()) { @if (headerIndex > 0 && headerIndex < _getMobileColumnCount()) { @if (_isFirstInfoOfBlock(headerIndex)) { | } } } @if (_isToggleSection(element)) { | @for (row of element.rows; track row) { @if (_isRow(row)) { } } } }
@for (headerCell of _getHeaderCells(); track headerCell; let headerIndex = $index) { @if (_getPopularCell() && _getPopularCell().forColumn === headerIndex + 1) {
@for (element of elements; track element; let infoIndex = $index) { @if (_isRow(element) && !element._isPartOfToggleSection()) { @if (infoIndex > 0 && infoIndex < _getMobileColumnCount()) { @if (_isFirstInfoOfBlock(infoIndex)) { } @if (element.intersectionCell) {
} @if (element.cells.length > 0) { | } } } @if (_isToggleSection(element)) { | @for (row of element.rows; track row) { @if (_isRow(row)) { @if (row.intersectionCell) {
} @if (row.cells.length > 0) { | } } } } }
}
@for (element of elements; track element; let infoIndex = $index) { @if (_isRow(element) && !element._isPartOfToggleSection()) { @if (infoIndex > 0 && infoIndex < _getMobileColumnCount()) { @if (_isFirstInfoOfBlock(infoIndex)) { } @if (headerIndex === 0 && element.intersectionCell) { } @if (element.cells.length > 0) { } } } @if (_isToggleSection(element)) { | @for (row of element.rows; track row) { @if (_isRow(row)) { @if (headerIndex === 0 && row.intersectionCell) { } @if (row.cells.length > 0) { } } } } }
}