-- App locals
local _, app = ...;
local L = app.L;
local DESCRIPTION_SEPARATOR = app.DESCRIPTION_SEPARATOR;

-- Global locals
local tinsert = tinsert;

-- Implementation
app:CreateWindow("Sourceless", {
	Commands = { "attunsourced", "attsourceless" },
	HideFromSettings = true,
	Preload = true,
	OnInit = function(self)
		self:SetData(app.CreateRawText(app.Modules.Color.Colorize(L.SOURCELESS, app.Colors.TooltipWarning), {
			icon = app.asset("WindowIcon_Unsorted"),
			description = L.NEVER_IMPLEMENTED_DESC,
			title = L.SOURCELESS .. DESCRIPTION_SEPARATOR .. app.Version,
			font = "GameFontNormalLarge",
			_nosearch = true,
			_unsorted = true,
			_missing = true,
			visible = true,
			_nyi = true,
		}));
		self:AddEventHandler("OnHiddenDataCached", function(self, categories)
			self.data.g = categories.Sourceless;
			app.CacheFields(self.data, true);
			self:AssignChildren();
		end);
	end,
	VisibilityFilter = app.ReturnTrue,
});
