local _, private = ...
if not private.isRetail then return end

--[[ Lua Globals ]]
-- luacheck: globals select

--[[ Core ]]
local Aurora = private.Aurora
local Skin = Aurora.Skin

--do --[[ AddOns\Blizzard_Soulbinds.lua ]]
--end

do --[[ AddOns\Blizzard_Soulbinds.xml ]]
    do --[[ Blizzard_SoulbindsConduitList.lua ]]
        function Skin.ConduitListSectionTemplate(Frame)
            Skin.FrameTypeButton(Frame.CategoryButton)
            local bg1, bg2 = Frame.CategoryButton.Container:GetRegions()
            bg1:SetAlpha(0)
            bg2:SetAlpha(0)
        end
        function Skin.ConduitListTemplate(Frame)
            Frame.BottomShadowContainer:Hide()
            Frame.ScrollBar.Track:Hide()
            Skin.FrameTypeScrollBarButton(Frame.ScrollBar.Decrease)
            Skin.FrameTypeScrollBarButton(Frame.ScrollBar.Increase)
            Skin.FrameTypeScrollBarButton(Frame.ScrollBar.Thumb)

            for i = 1, #Frame.ScrollBox.ScrollTarget.Lists do
                Skin.ConduitListSectionTemplate(Frame.ScrollBox.ScrollTarget.Lists[i])
            end
        end
    end

end

function private.AddOns.Blizzard_Soulbinds()
    ----====####$$$$%%%%$$$$####====----
    --     Blizzard_SoulbindsUtil     --
    ----====####$$$$%%%%$$$$####====----


    ----====####$$$$%%%%%$$$$####====----
    --   Blizzard_SoulbindsTemplates   --
    ----====####$$$$%%%%%$$$$####====----


    ----====####$$$$%%%%$$$$####====----
    -- Blizzard_SoulbindsSelectButton --
    ----====####$$$$%%%%$$$$####====----


    ----====####$$$$%%%%%$$$$####====----
    --  Blizzard_SoulbindsSelectGroup  --
    ----====####$$$$%%%%%$$$$####====----


    ----====####$$$$%%%%%$$$$####====----
    --    Blizzard_SoulbindsConduit    --
    ----====####$$$$%%%%%$$$$####====----


    ----====####$$$$%%%%%$$$$####====----
    --  Blizzard_SoulbindsConduitList  --
    ----====####$$$$%%%%%$$$$####====----


    ----====####$$$$%%%%$$$$####====----
    --     Blizzard_SoulbindsNode     --
    ----====####$$$$%%%%$$$$####====----


    ----====####$$$$%%%%$$$$####====----
    --   Blizzard_SoulbindsNodeLink   --
    ----====####$$$$%%%%$$$$####====----


    ----====####$$$$%%%%$$$$####====----
    --     Blizzard_SoulbindsTree     --
    ----====####$$$$%%%%$$$$####====----


    ----====####$$$$%%%%$$$$####====----
    --    Blizzard_SoulbindsViewer    --
    ----====####$$$$%%%%$$$$####====----
    local SoulbindViewer = _G.SoulbindViewer
    Skin.FrameTypeFrame(SoulbindViewer)
    SoulbindViewer:SetBackdropOption("offsets", {
        left = 25,
        right = 24,
        top = 24,
        bottom = 24
    })
    SoulbindViewer.Background:SetAlpha(0.5)
    SoulbindViewer.Background2:Hide()

    SoulbindViewer.ConduitPreview:Hide()

    SoulbindViewer.ShadowTop:Hide()
    SoulbindViewer.ShadowBottom:Hide()
    SoulbindViewer.ShadowLeft:Hide()
    SoulbindViewer.ShadowRight:Hide()

    local scrollBG = select(21, SoulbindViewer:GetRegions())
    scrollBG:Hide()

    local bg = SoulbindViewer:GetBackdropTexture("bg")
    SoulbindViewer.Border:Hide()
    Skin.UIPanelCloseButton(SoulbindViewer.CloseButton)
    SoulbindViewer.CloseButton:SetPoint("TOPRIGHT", bg, 5.6, 5)
    --Skin.SoulbindSelectGroupTemplate(SoulbindViewer.SelectGroup)
    --Skin.SoulbindTreeTemplate(SoulbindViewer.Tree)
    --Skin.ConduitListTemplate(SoulbindViewer.ConduitList)
    Skin.UIPanelButtonTemplate(SoulbindViewer.ActivateSoulbindButton)
    Skin.UIPanelButtonTemplate(SoulbindViewer.CommitConduitsButton)


    ----====####$$$$%%%%$$$$####====----
    --       Blizzard_Soulbinds       --
    ----====####$$$$%%%%$$$$####====----
end
