local V=Cheer.CreateComponent("\066\084\078\111\116\105\102\105\099\097\116\105\111\110\115\077\097\110\097\103\101\114",View)function V.Start(L)if L.IsVersionOutdated()then if L.Mode=="\080\108\117\103\105\110"then(Cheer(View.PluginUpdateNotification)).Start(V.AdjustLayout)elseif L.Mode=="\084\111\111\108"then(Cheer(View.ToolUpdateNotification)).Start(V.AdjustLayout)end end if not L.SyncAPI:Invoke("\073\115\072\116\116\112\083\101\114\118\105\099\101\069\110\097\098\108\101\100")then(Cheer(View.HttpDisabledWarning)).Start(V.AdjustLayout)end View.UIListLayout:ApplyLayout()View.Position=UDim2.new(.5,0,1.5,0)View.Visible=true View:TweenPosition(UDim2.new(.5,0,.5,0),nil,nil,.2)spawn(function()L.Disabling:Wait()View:Destroy()end)return V end function V.AdjustLayout()View.UIListLayout:ApplyLayout()end return V
-- Create component
local Component = Cheer.CreateComponent("BTNotificationsManager", View)

function Component.Start(Core)
	-- Display update notification if tool is outdated
	if Core.IsVersionOutdated() then
		if Core.Mode == "Plugin" then
			Cheer(View.PluginUpdateNotification).Start(Component.AdjustLayout)
		elseif Core.Mode == "Tool" then
			Cheer(View.ToolUpdateNotification).Start(Component.AdjustLayout)
		end
	end

	-- Display HttpEnabled warning if HttpService is disabled
	if not Core.SyncAPI:Invoke("IsHttpServiceEnabled") then
		Cheer(View.HttpDisabledWarning).Start(Component.AdjustLayout)
	end

	-- Adjust layout
	View.UIListLayout:ApplyLayout()

	-- Animate opening
	View.Position = UDim2.new(0.5, 0, 1.5, 0)
	View.Visible = true
	View:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), nil, nil, 0.2)

	-- Destroy notifications container on tool unequip
	spawn(function()
		Core.Disabling:Wait()
		View:Destroy()
	end)

	-- Return component for chaining
	return Component
end

function Component.AdjustLayout()
	View.UIListLayout:ApplyLayout()
end

return Component
