local e=script.Parent.Parent local F=require(e.Modules.Creator)local w=F.New return function(e,s)local i={}i.Layout=w("\085\073\076\105\115\116\076\097\121\111\117\116",{Padding=UDim.new(0,5)})i.Container=w("\070\114\097\109\101",{Size=UDim2.new(1,0,0,26),Position=UDim2.fromOffset(0,24);BackgroundTransparency=1},{i.Layout})i.Root=w("\070\114\097\109\101",{BackgroundTransparency=1,Size=UDim2.new(1,0,0,26);LayoutOrder=7;Parent=s},{w("\084\101\120\116\076\097\098\101\108",{RichText=true,Text=e,TextTransparency=0;FontFace=Font.new("\114\098\120\097\115\115\101\116\105\100\058\047\047\049\050\049\056\055\051\054\053\051\054\052",Enum.FontWeight.SemiBold,Enum.FontStyle.Normal);TextSize=18;TextXAlignment="\076\101\102\116";TextYAlignment="\067\101\110\116\101\114",Size=UDim2.new(1,-16,0,18);Position=UDim2.fromOffset(0,2);ThemeTag={TextColor3="\084\101\120\116"}}),i.Container})F.AddSignal(i.Layout:GetPropertyChangedSignal("\065\098\115\111\108\117\116\101\067\111\110\116\101\110\116\083\105\122\101"),function()if i.Container.Size~=UDim2.new(1,0,0,i.Layout.AbsoluteContentSize.Y)or i.Root.Size~=UDim2.new(1,0,0,i.Layout.AbsoluteContentSize.Y+25)then i.Container.Size=UDim2.new(1,0,0,i.Layout.AbsoluteContentSize.Y)i.Root.Size=UDim2.new(1,0,0,i.Layout.AbsoluteContentSize.Y+25)end end)return i end
local Root = script.Parent.Parent
local Creator = require(Root.Modules.Creator)

local New = Creator.New

return function(Title, Parent)
	local Section = {}

	Section.Layout = New("UIListLayout", {
		Padding = UDim.new(0, 5),
	})

	Section.Container = New("Frame", {
		Size = UDim2.new(1, 0, 0, 26),
		Position = UDim2.fromOffset(0, 24),
		BackgroundTransparency = 1,
	}, {
		Section.Layout,
	})

	Section.Root = New("Frame", {
		BackgroundTransparency = 1,
		Size = UDim2.new(1, 0, 0, 26),
		LayoutOrder = 7,
		Parent = Parent,
	}, {
		New("TextLabel", {
			RichText = true,
			Text = Title,
			TextTransparency = 0,
			FontFace = Font.new("rbxassetid://12187365364", Enum.FontWeight.SemiBold, Enum.FontStyle.Normal),
			TextSize = 18,
			TextXAlignment = "Left",
			TextYAlignment = "Center",
			Size = UDim2.new(1, -16, 0, 18),
			Position = UDim2.fromOffset(0, 2),
			ThemeTag = {
				TextColor3 = "Text",
			},
		}),
		Section.Container,
	})

	Creator.AddSignal(Section.Layout:GetPropertyChangedSignal("AbsoluteContentSize"), function()
		if Section.Container.Size ~= UDim2.new(1, 0, 0, Section.Layout.AbsoluteContentSize.Y) or Section.Root.Size ~= UDim2.new(1, 0, 0, Section.Layout.AbsoluteContentSize.Y + 25) then
			Section.Container.Size = UDim2.new(1, 0, 0, Section.Layout.AbsoluteContentSize.Y)
			Section.Root.Size = UDim2.new(1, 0, 0, Section.Layout.AbsoluteContentSize.Y + 25)
		end
	end)

	return Section
end
