return function(s)return s.widget(function()local Q=s.useInstance(function(Q)local a=s.useStyle()local i=Instance.new("\070\114\097\109\101")i.BackgroundColor3=a.bg2 i.Position=UDim2.new(.5,0,.5,0)i.AnchorPoint=Vector2.new(.5,.5)i.Size=UDim2.new(0,50,0,40)i.Visible=false i.AutoLocalize=false local q=Instance.new("\085\073\067\111\114\110\101\114")q.Parent=i local U=Instance.new("\085\073\080\097\100\100\105\110\103")U.PaddingBottom=UDim.new(0,10)U.PaddingLeft=UDim.new(0,10)U.PaddingRight=UDim.new(0,10)U.PaddingTop=UDim.new(0,10)U.Parent=i local z=Instance.new("\085\073\083\116\114\111\107\101")z.Parent=i local u=Instance.new("\085\073\076\105\115\116\076\097\121\111\117\116")u.SortOrder=Enum.SortOrder.LayoutOrder u.Parent=i local N=#i:GetChildren()s.automaticSize(i)local function b()i.Visible=#i:GetChildren()>N end i.ChildAdded:Connect(b)i.ChildRemoved:Connect(b)Q.frame=i return i end)return Q.frame end)end
return function(Plasma)
	return Plasma.widget(function()
		local refs = Plasma.useInstance(function(ref)
			local style = Plasma.useStyle()

			local Frame = Instance.new("Frame")
			Frame.BackgroundColor3 = style.bg2
			Frame.Position = UDim2.new(0.5, 0, 0.5, 0)
			Frame.AnchorPoint = Vector2.new(0.5, 0.5)
			Frame.Size = UDim2.new(0, 50, 0, 40)
			Frame.Visible = false
			Frame.AutoLocalize = false

			local UICorner = Instance.new("UICorner")
			UICorner.Parent = Frame

			local UIPadding = Instance.new("UIPadding")
			UIPadding.PaddingBottom = UDim.new(0, 10)
			UIPadding.PaddingLeft = UDim.new(0, 10)
			UIPadding.PaddingRight = UDim.new(0, 10)
			UIPadding.PaddingTop = UDim.new(0, 10)
			UIPadding.Parent = Frame

			local UIStroke = Instance.new("UIStroke")
			UIStroke.Parent = Frame

			local UIListLayout = Instance.new("UIListLayout")
			UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
			UIListLayout.Parent = Frame

			local numChildren = #Frame:GetChildren()

			Plasma.automaticSize(Frame)

			local function updateVisibility()
				Frame.Visible = #Frame:GetChildren() > numChildren
			end

			Frame.ChildAdded:Connect(updateVisibility)
			Frame.ChildRemoved:Connect(updateVisibility)

			ref.frame = Frame

			return Frame
		end)

		return refs.frame
	end)
end
