local m=script.Parent.Parent return function(Y)local n=require(m.Bundles)local k=n.data local h=n.Fusion local P=h.New local A=h.Children local L=h.Computed local u=require(m.simpleElements)local K=u.UIListLayout local X=Enum.SortOrder local V=Enum.FillDirection local S=Enum.HorizontalAlignment local s=Enum.VerticalAlignment local g=(require(m.utilities)).get local p=k.find("\115\101\108\101\099\116\101\100\084\097\098")return(P("\083\099\114\111\108\108\105\110\103\070\114\097\109\101"))({ZIndex=L(function()return g(p.string)==Y.uid and 1 or 0 end);Name=Y.uid,Parent=Y.Parent;Size=UDim2.new(1,0,1,0);BackgroundTransparency=1,AutomaticCanvasSize=Enum.AutomaticSize.Y;ScrollBarThickness=0,ScrollingDirection=Enum.ScrollingDirection.Y,CanvasSize=UDim2.new(1,0,1,0),[A]={K(X.LayoutOrder,V.Vertical,S.Center,s.Top,UDim.new(0,4))}})end
local darius = script.Parent.Parent
return function(property)
    local Bundles = require(darius.Bundles)
    local data = Bundles.data
	local Fusion = Bundles.Fusion
		local new = Fusion.New
		local children = Fusion.Children
        local computed = Fusion.Computed

	local simpleElements = require(darius.simpleElements)
	local UIListLayout = simpleElements.UIListLayout
	local SO = Enum.SortOrder
	local FD = Enum.FillDirection
	local HA = Enum.HorizontalAlignment
	local VA = Enum.VerticalAlignment
    
    local get = require(darius.utilities).get

    local selectedTab = data.find("selectedTab")
    
    return new "ScrollingFrame" {
        ZIndex = computed(function()
            return (get(selectedTab.string) == property.uid) and 1 or 0
        end),
        Name = property.uid,
		Parent = property.Parent,
        Size = UDim2.new(1,0,1,0),
        BackgroundTransparency = 1,
        AutomaticCanvasSize = Enum.AutomaticSize.Y,
        ScrollBarThickness = 0,
        ScrollingDirection = Enum.ScrollingDirection.Y,
        CanvasSize = UDim2.new(1,0,1,0),

        [children] = {
            UIListLayout(SO.LayoutOrder, FD.Vertical,HA.Center,VA.Top,UDim.new(0,4)),
        }
    }
end