<.live_component module={WandererAppWeb.MapLoader} id="map-loader" />
<.live_component :if={not is_nil(assigns |> Map.get(:map_slug))} module={WandererAppWeb.MapPicker} id="map-picker" notify_to={self()} current_user={@current_user} map_slug={@map_slug} event_name="change_map" /> <.live_component :if={not is_nil(assigns |> Map.get(:map_slug)) && @map_subscriptions_enabled} module={WandererAppWeb.MapSubscription} id="map-subscription" notify_to={self()} current_user={@current_user} map_slug={@map_slug} event_name="show_topup" /> <.link :if={(@user_permissions || %{}) |> Map.get(:delete_map, false)} id={"map-audit-#{@map_slug}"} navigate={~p"/#{@map_slug}/audit?period=1H&activity=all"} > <.link :if={(@user_permissions || %{}) |> Map.get(:delete_map, false)} id={"map-characters-#{@map_slug}"} navigate={~p"/#{@map_slug}/characters"} > <.modal :if={@show_topup} title="Map Subscription Info" class="!min-w-[700px] !z-[10000]" id="map-topup-modal" show on_cancel={JS.navigate(~p"/#{@map_slug}")} >
<.live_component :if={ @active_subscription_tab == "balance" && not is_nil(assigns |> Map.get(:map_id)) } module={WandererAppWeb.Maps.MapBalanceComponent} id="map-balance-component" map_id={@map_id} notify_to={self()} event_name="balance_event" current_user={@current_user} /> <.live_component :if={@active_subscription_tab == "subscription"} module={WandererAppWeb.Maps.MapSubscriptionsComponent} id="map-subscriptions-component" map_id={@map_id} notify_to={self()} event_name="subscriptions_event" current_user={@current_user} readonly={ (@user_permissions || %{}) |> Map.get(:delete_map, false) |> Kernel.not() } /> <.live_component :if={ @active_subscription_tab == "top_donators" && not is_nil(assigns |> Map.get(:map_id)) } module={WandererAppWeb.Maps.MapTopDonatorsComponent} id="map-top-donators-component" map_id={@map_id} notify_to={self()} event_name="top_donators_event" current_user={@current_user} />