local z=script.Parent.Parent return function(a)local m=require(z.Bundles)local x=m.data local g=m.themeSystem local M=m.Fusion local W=M.New local A=M.Children local S=M.Value local l=M.Observer local h=require(z.utilities)local R=h.get local j=h.animate local T=x.find("\115\101\108\101\099\116\101\100\084\097\098")local d=x.add(a)local H=a.Parent local o=S(R(T.string)==(R(d.tab)).uid);(l(T.string)):onChange(function()o:set(R(T.string)==(R(d.tab)).uid)end)local G=j(function()return R(o)and 0 or 1 end,40,1);(W("\070\114\097\109\101"))({Parent=H,Size=UDim2.new(1,0,0,16);BackgroundTransparency=1;[A]={(W("\070\114\097\109\101"))({Size=UDim2.new(1,0,0,2),AnchorPoint=Vector2.new(.5,.5),Position=UDim2.fromScale(.5,.5),BackgroundColor3=g.text2;BackgroundTransparency=G})}})end
local darius = script.Parent.Parent
return function(property)
    local Bundles = require(darius.Bundles)
	local data = Bundles.data
	local theme = Bundles.themeSystem
	local Fusion = Bundles.Fusion
		local new = Fusion.New
		local children = Fusion.Children
		local value = Fusion.Value
		local observe = Fusion.Observer

	local utilities = require(darius.utilities)
	local get = utilities.get
	local animate = utilities.animate

    -- Data

	local selectedTab = data.find("selectedTab")
	local divider = data.add(property)

	-- Properties

	local _parent = property.Parent

	-- Variables

	local isSelected = value(get(selectedTab.string) == get(divider.tab).uid)
	observe(selectedTab.string):onChange(function()
		isSelected:set(get(selectedTab.string) == get(divider.tab).uid)
	end)
	local selectedAnimation = animate(function()
		return get(isSelected) and 0 or 1
	end, 40, 1)

    new "Frame" {
        Parent = _parent,
		Size = UDim2.new(1,0,0,16),
		BackgroundTransparency = 1,

        [children] = {
            new "Frame" {
                Size = UDim2.new(1,0,0,2),
                AnchorPoint = Vector2.new(0.5,0.5),
                Position = UDim2.fromScale(0.5,0.5),
                BackgroundColor3 = theme.text2,
                BackgroundTransparency = selectedAnimation
            }
        }
    }
end