@if (_infoWindowContent?.clusterData) { @if (_infoWindowContent?.selectedClusterItemData) {
@if (_infoWindowContent?.selectedClusterItemData?.mainContentTemplate) { } @else { @for ( item of _infoWindowContent?.selectedClusterItemData .mainContent; let i = $index; track i ) { } }
@if (_infoWindowContent?.selectedClusterItemData?.expandedContentTemplate) { } @else { @for ( item of _infoWindowContent?.selectedClusterItemData .expandedContent; let i = $index; track i ) { } }
@if ( _infoWindowContent?.selectedClusterItemData?.expandedContentTemplate || _infoWindowContent?.expandedContentTemplate || _infoWindowContent?.expandedContent?.length ) { }
} @else {
@for ( item of _infoWindowContent?.clusterData; let i = $index; track i ) { }
} } @else {
@if (_infoWindowContent?.mainContentTemplate) { } @else { @for ( item of _infoWindowContent?.mainContent; let i = $index; track i ) { } }
@if (_infoWindowContent?.expandedContentTemplate) { } @else { @for ( item of _infoWindowContent?.expandedContent; let i = $index; track i ) { } }
@if ( _infoWindowContent?.expandedContentTemplate || _infoWindowContent?.expandedContent?.length ) { }
} @let item = content | mapDropdownClusterContentType; @if (item) {
@if (item.isClosed) { }
{{ item.name }}
@if (item.favourite) { }
}
@let item = content | mapDropdownContentType; @if (item) { @if (!item.sideBySideInfo) { } @else {
@if (item.sideBySideInfo.leftSide) {
} @if (item.sideBySideInfo.rightSide) {
}
} }
@let item = content | mapDropdownContentType; @if (item) { @switch (item?.template) { @case (eMapDropdownString.HEADER_TITLE) {
@if (item.hasBackButton) {
} {{ data | mapDropdownValue: item }}
} @case (eMapDropdownString.RATING_REVIEW) {
{{ data[item.field].likeCount }}
{{ data[item.field].dislikeCount }}
{{ data[item.field].reviewCount ?? 0 }}
} @case (eMapDropdownString.DIVIDER) {
} @case (eMapDropdownString.REPAIR_SHOP_SERVICES) {
@for ( service of data[item.field]; let i = $index; track i ) {
}
} @case (eMapDropdownString.ICON_TEXT) {
@if (item.url) {
} {{ item.isDate ? (data[item.field] | date: 'MM/dd/yy') : (data | mapDropdownValue: item) }}
} @case (eMapDropdownString.TITLE) {
{{ data | mapDropdownValue: item }}
} @case (eMapDropdownString.TITLE_COUNT) {
{{ item.title }}
{{ item.isDuration ? (data[item.field] | formatDuration) : (data | mapDropdownValue: item) }}
} @case (eMapDropdownString.MONEY_TEXT) {
{{ data?.[item.field] !== '' ? (data[item.field] | formatCurrency) : '$0' }}
{{ item.title }}
} @case (eMapDropdownString.OPEN_HOURS) {
{{ item.title }}
@if ( data[item.field]?.openHoursToday && !isShowAllDaysActive ) {
{{ data[item.field].openHoursToday.status }}
{{ data[item.field].openHoursToday.info }}
} @if (data[item.field]?.openHours?.length) { @if (isShowAllDaysActive) { @for ( day of data[item.field].openHours; let i = $index; track i ) {
{{ day.dayOfWeek }}
{{ day.startTime + ' - ' + day.endTime }}
} }
{{ isShowAllDaysActive ? 'Show today' : 'Show all days' }}
}
} @case (eMapDropdownString.TEXT_COUNT) {
{{ item.title }}
{{ data | mapDropdownValue: item }}
} @case (eMapDropdownString.SUBTITLE) {
{{ item.title }}
} @case (eMapDropdownString.TEXT) {
{{ item.isDate ? (data[item.field] | date: 'MM/dd/yy hh:mm a') : (data | mapDropdownValue: item) }}
} @case (eMapDropdownString.SMALL_SUBTITLE) {
{{ item.title }}
} @case (eMapDropdownString.DATE) {
{{ data[item.field] | date }}
} @case (eMapDropdownString.FUEL_PRICE_RANGE) { @if (fuelPriceRangeData) {
{{ fuelPriceRangeData.pricePerGallon | formatCurrency }}
{{ fuelPriceRangeData.dieselLastUsed | dateFromStringPipe: 'time-ago' }}
} } @case (eMapDropdownString.STOP_TYPE) {
{{ data | mapDropdownValue: item }} @if (data.businessName) { - {{ data.businessName }} }
} @case (eMapDropdownString.TRAVEL_TIME) {
{{ { days: 0, hours: data[item.field], minutes: data[item.secondField!], seconds: 0, } | formatDuration }}
} } }