local c=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 c.Start(e)if e.IsVersionOutdated()then if e.Mode=="\080\108\117\103\105\110"then(Cheer(View.PluginUpdateNotification)).Start(c.AdjustLayout)elseif e.Mode=="\084\111\111\108"then(Cheer(View.ToolUpdateNotification)).Start(c.AdjustLayout)end end if not e.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(c.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()e.Disabling:Wait()View:Destroy()end)return c end function c.AdjustLayout()View.UIListLayout:ApplyLayout()end return c

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;
