{{/* [ .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.RefundPlatform }} {{- $selectedShopID = $formSelections.RefundShopID }} {{- end }} {{- $listings := .Listings }} {{- if $selectedShopID }} {{ $listings = .Accounts.GetMockListingsForShop $acctID $selectedPlatform $selectedShopID }} {{- end }} {{/* REFUNDS */}} {{- define "refund-accordion-header" }}

Refund

{{ end }} {{- define "refund-accordion-body" }} {{ $acctID := .Identity.Account.AccountID }} {{ $selectedPlatform := .SelectedPlatform }} {{ $selectedShopID := .SelectedShopID }} {{ $listings := .Listings }} {{/* form updater*/}}
{{ component "button" "Text" "Submit" "Background" true "Class" "m-0" }}
{{ end }} {{ component "accordion" "Name" "simulate" "Shops" $shops "SelectedPlatform" $selectedPlatform "SelectedShopID" $selectedShopID "Listings" $listings "Class" ` mx-[1em] mb-[1em] ` "#accordion-header" "refund-accordion-header" "#accordion-body" "refund-accordion-body" }}