{{/* [ .Shops, .SelectedPlatform, .SelectedShopID, .Listings ] */}} {{- $acctID := .Identity.Account.AccountID -}} {{- $shops := .Shops }} {{- if not $shops }} {{- $shops = .Accounts.GetMockShops $acctID -}} {{- end }} {{- $selectedPlatform := .SelectedPlatform }} {{- $selectedShopID := .SelectedShopID }} {{- if not $selectedPlatform | or (not $selectedShopID) }} {{- $formSelections := .Accounts.GetMockEventFormValues $acctID }} {{- $selectedPlatform = $formSelections.SalePlatform }} {{- $selectedShopID = $formSelections.SaleShopID }} {{- end }} {{- $listings := .Listings }} {{- if $selectedShopID }} {{ $listings = .Accounts.GetMockListingsForShop $acctID $selectedPlatform $selectedShopID }} {{- end }} {{/* SALES */}} {{- define "sale-accordion-header" }}