local l_script_FirstAncestor_0 = script:FindFirstAncestor("Toolbox");
local l_BrowserService_0 = game:GetService("BrowserService");
local l_Packages_0 = l_script_FirstAncestor_0.Packages;
local v3 = require(l_Packages_0.Cryo);
local v4 = require(l_Packages_0.Framework);
local v5 = require(l_Packages_0.Roact);
local v6 = require(l_Packages_0.RoactRodux);
local v7 = require(l_Packages_0.UGCValidation);
local l_ContextServices_0 = v4.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_Util_0 = l_script_FirstAncestor_0.Core.Util;
local v11 = require(l_Util_0.Analytics.Analytics);
local v12 = require(l_Util_0.AssetConfigUtil);
local v13 = require(l_Util_0.fixUpPreValidation);
local v14 = require(l_Util_0.Constants);
local v15 = require(l_Util_0.DebugFlags);
local v16 = require(l_Util_0.Images);
local v17 = require(l_script_FirstAncestor_0.Core.Flags.getFFlagAvatarPreviewerAutoSetupDisablePublish);
local v18 = require(l_Util_0.SharedFlags.getFFlagUGCBundleValidationFullBodyErrors);
local v19 = require(l_script_FirstAncestor_0.Core.Util.SharedFlags.getFFlagEnableUGCToolboxFixAccessories);
local v20 = require(l_Util_0.SharedFlags.getFFlagEnableUGCUploadingDataSharing);
local v21 = require(l_Util_0.getAllowedAssetTypeEnums);
local v22 = require(l_script_FirstAncestor_0.Core.Localization.getLocalizedAssetTextMap);
local l_LayoutOrderIterator_0 = v4.Util.LayoutOrderIterator;
local l_UI_0 = v4.UI;
local l_Pane_0 = l_UI_0.Pane;
local l_RadioButtonList_0 = l_UI_0.RadioButtonList;
local l_TextLabel_0 = l_UI_0.TextLabel;
local l_TextWithLinks_0 = l_UI_0.TextWithLinks;
local v29 = require(l_script_FirstAncestor_0.Core.Actions.SetUploadAssetType);
local v30 = require(l_script_FirstAncestor_0.Core.Actions.SetUploadAssetValidationStatus);
local v31 = require(l_script_FirstAncestor_0.Core.Components.DropdownMenu);
local v32 = require(l_script_FirstAncestor_0.Core.Components.MessageBox.MessageBox);
local l_AssetConfiguration_0 = l_script_FirstAncestor_0.Core.Components.AssetConfiguration;
local v34 = require(l_AssetConfiguration_0.ConfigSectionWrapper);
local v35 = require(l_AssetConfiguration_0.UGCBundleValidation);
local v36 = require(l_AssetConfiguration_0.ValidationStatus);
local v37 = require(l_Util_0.AssetConfigConstants);
local v38 = if not v20() then nil else require(l_AssetConfiguration_0.DataConsentToggle);
game:DefineFastFlag("BodyFirstInAssetsCategory", false);
local v39 = game:DefineFastFlag("DisableSubmitButtonForValidationInInit", false);
local v40 = require(l_Util_0.SharedFlags.getFFlagEnableUGCMissingPartsMessage);
local l_EnableUGCBundleUnknownMeshPartFiltering_0 = game:GetFastFlag("EnableUGCBundleUnknownMeshPartFiltering");
local v42 = require(l_Util_0.SharedFlags.getFFlagEnableUGCUploadFlowAnalytics);
local v43 = require(l_Util_0.SharedFlags.getFFlagEnableUGCForAllChecks);
local v44 = game:DefineFastString("ToolboxConfigAssetTypeAgeIDVerificationLink", "https://en.help.roblox.com/hc/en-us/articles/4407282410644-Age-ID-Verification");
local v45 = game:DefineFastString("ToolboxConfigAssetTypePremiumLink", "https://www.roblox.com/premium/membership");
local v46 = game:DefineFastFlag("ToolboxFixUGCBundleValidationCryoThingy1", false);
local v47 = v5.PureComponent:extend("ConfigAssetType");
local v48 = (v40() or l_EnableUGCBundleUnknownMeshPartFiltering_0) and 18 or nil;
local v49 = not v43() and 0 or 10;
local v50 = not v43() and 24 or 72;
local v51 = {};
if game:GetFastFlag("BodyFirstInAssetsCategory") then
    v51 = {
        v37.UGCBundleTypes.Body,
        v37.UGCBundleTypes.DynamicHead
    };
end;
local v52 = {
    NONE = "None",
    BEGIN = "Begin",
    VALIDATING = "Validating",
    SUCCESS = "Success",
    FAILURE = "Failure"
};
local function _(v53)
    return v12.isCatalogAsset(v53) or v12.isUGCBundleType(v53);
end;
local _ = function(v55)
    if v55 then
        local _ = nil;
        if type(v55) == "table" then
            return (table.concat(v55, "\n"));
        else
            return (tostring(v55));
        end;
    else
        return nil;
    end;
end;
v47.init = function(v58, v59)
    v58.dropdownItems = {};
    local v60, v61 = v58:selectedRadioButtonKeyFor(v59.assetTypeEnum);
    v58.state = {
        currentSelectedRadioButtonKey = v60,
        currentAssetType = v59.assetTypeEnum,
        dropdownAvatarCategoryIndex = if v60 == "AvatarItem" then v61 else 0,
        dropdownDevelopmentCategoryIndex = if v60 == "DevelopmentItem" then v61 else 0,
        validationState = v52.NONE,
        validationFailureReasons = {},
        displayValidationErrorMessages = false
    };
    v58.setAssetCategoryIndex = function(v62)
        if v58.state.currentSelectedRadioButtonKey == "AvatarItem" then
            v58:setState(function()
                return {
                    dropdownAvatarCategoryIndex = v62
                };
            end);
            return ;
        else
            v58:setState(function()
                return {
                    dropdownDevelopmentCategoryIndex = v62
                };
            end);
            return ;
        end;
    end;
    v58.onRadioButtonClicked = function(v63)
        v58:setState(function()
            return {
                currentSelectedRadioButtonKey = v63
            };
        end);
    end;
    v58.openValidationErrorMessageBox = function()
        v58:setState(function()
            return {
                displayValidationErrorMessages = true
            };
        end);
    end;
    v58.onValidationErrorMessageBoxClosed = function()
        v58:setState(function()
            return {
                displayValidationErrorMessages = false
            };
        end);
    end;
    v58.validationCallback = function(v64, v65)
        local l_state_0 = v58.state;
        local l_props_0 = v58.props;
        local v68 = nil;
        if v42() then
            v68 = v12.getAvatarAssetTypeAsString(l_state_0.currentAssetType);
        end;
        if v15.shouldDebugWarnings() then
            assert(l_state_0.validationState == v52.VALIDATING, "Validation state is expected to be `Validating`.");
        end;
        if not v64 then
            if #v65 > 0 then
                warn(l_props_0.Localization:getText("AssetConfig", "AssetConfigOutputErrorHeading", {
                    errorCount = #v65
                }), v65);
            end;
            local v69 = if #v65 > 0 then v65 else {
                l_props_0.Localization:getText("AssetConfig", "ValidationErrorUnknown")
            };
            v58:setState(function()
                return {
                    validationState = v52.FAILURE,
                    validationFailureReasons = v69
                };
            end);
            if v42() then
                local l_UGCBundleValidationEvent_0 = v11.UGCBundleValidationEvent;
                local l_Failure_0 = v11.Status.Failure;
                local l_v68_0 = v68;
                local v73;
                if v69 then
                    local _ = nil;
                    v73 = if type(v69) == "table" then table.concat(v69, "\n") else tostring(v69);
                else
                    v73 = nil;
                end;
                l_UGCBundleValidationEvent_0(l_Failure_0, l_v68_0, v73);
            end;
        else
            v58:setState(function()
                return {
                    validationState = v52.SUCCESS,
                    validationFailureReasons = {}
                };
            end);
            if v42() then
                v11.UGCBundleValidationEvent(v11.Status.Success, v68);
            end;
        end;
        if l_props_0.onAssetValidationResultChanged then
            l_props_0.onAssetValidationResultChanged(v64);
        end;
    end;
    if v59.assetTypeEnum ~= nil then
        local l_assetTypeEnum_0 = v59.assetTypeEnum;
        if v12.isCatalogAsset(l_assetTypeEnum_0) or v12.isUGCBundleType(l_assetTypeEnum_0) then
            if not (not v39 or not v59.onAssetValidationResultChanged) then
                v59.onAssetValidationResultChanged(false);
            end;
            task.defer(function()
                v58:setState({
                    validationState = v52.BEGIN
                });
            end);
        end;
    end;
end;
v47.getAvatarItemCategoryErrorsPrimaryText = function(v76)
    local l_props_1 = v76.props;
    local v78 = #v76.state.validationFailureReasons;
    if v78 == 1 then
        return l_props_1.Localization:getText("AssetConfig", "AvatarItemsErrorTextSingular", {
            errorCount = v78
        });
    else
        return l_props_1.Localization:getText("AssetConfig", "AvatarItemsErrorTextPlural", {
            errorCount = v78
        });
    end;
end;
v47.getAvatarItemCategoryErrors = function(v79)
    local l_state_1 = v79.state;
    local v81 = "";
    for _, v83 in l_state_1.validationFailureReasons, nil, nil do
        v81 = table.concat({
            v81,
            v83,
            "\n\n"
        });
    end;
    return v81;
end;
v47.selectedRadioButtonKeyFor = function(v84, v85)
    for _, v87 in {
        "AvatarItem",
        "DevelopmentItem"
    }, nil, nil do
        for v88, v89 in v84:getDropdownItemsFor(v87) do
            if v89.type == v85 then
                return v87, v88;
            end;
        end;
    end;
    return "DevelopmentItem", 0;
end;
v47.isAvatarItemCategorySelected = function(v90)
    return v90.state.currentSelectedRadioButtonKey == "AvatarItem";
end;
v47.onAssetTypeChanged = function(v91)
    local l_props_2 = v91.props;
    local v93 = v91:getAssetCategoryIndex();
    if v93 then
        local v94 = v91.dropdownItems[v93];
        if v94 and v94.type then
            if v94.type ~= v91.state.currentAssetType then
                v91:resetValidation();
            end;
            if l_props_2.onAssetValidationResultChanged then
                l_props_2.onAssetValidationResultChanged(false);
            end;
            v91:setState(function()
                return {
                    currentAssetType = v94.type
                };
            end);
            if l_props_2.onAssetTypeSelected then
                l_props_2.onAssetTypeSelected(v94.type);
            end;
            if not (not v43() or not l_props_2.onCategoryChange) then
                l_props_2.onCategoryChange(v91.state.currentSelectedRadioButtonKey);
            end;
            local l_type_0 = v94.type;
            if v12.isCatalogAsset(l_type_0) or v12.isUGCBundleType(l_type_0) then
                v91:setState(function()
                    return {
                        validationState = v52.BEGIN
                    };
                end);
                return ;
            else
                v91:resetValidation();
                return ;
            end;
        else
            v91:resetValidation();
            v91:setState(function()
                return {
                    currentAssetType = v3.None
                };
            end);
            if l_props_2.onAssetTypeSelected then
                l_props_2.onAssetTypeSelected(v3.None);
            end;
            return ;
        end;
    else
        v91:resetValidation();
        v91:setState(function()
            return {
                currentAssetType = v3.None
            };
        end);
        if l_props_2.onAssetTypeSelected then
            l_props_2.onAssetTypeSelected(v3.None);
        end;
        return ;
    end;
end;
v47.startUGCBundleValidation = function(v96)
    local l_props_3 = v96.props;
    local l_state_2 = v96.state;
    local v99 = nil;
    if v42() then
        v99 = v12.getAvatarAssetTypeAsString(l_state_2.currentAssetType);
        v11.UGCBundleValidationEvent(v11.Status.Start, v99);
    end;
    if #l_props_3.instances ~= 1 then
        v96:setState(function()
            return {
                validationState = v52.FAILURE,
                validationFailureReasons = {
                    l_props_3.Localization:getText("AssetConfig", "ValidationErrorBadSelectionCount")
                }
            };
        end);
        if v42() then
            v11.UGCBundleValidationEvent(v11.Status.Failure, v99, "Bad Selection Count");
        end;
        return ;
    else
        local v100 = nil;
        if v18() then
            v100 = v96.props.instances[1]:Clone();
            v12.sanitizeForValidation(v100);
        end;
        local function v102(v101)
            if v101.error.type == "message" then
                return v101.error.message;
            elseif v101.error.type == "notFound" then
                return (l_props_3.Localization:getText("AssetConfig", "ValidationErrorItemNotDetected", {
                    itemName = v22(l_props_3.Localization)[v101.assetType]
                }));
            else
                return (error((("Unknown error type: %*"):format(v101.error.type))));
            end;
        end;
        v96.validationPromise = v7.validateBundleReadyForUpload(l_props_3.instances[1], l_props_3.allowedBundleTypeSettings, l_state_2.currentAssetType.rawValue(), function(v103)
            local v104 = {};
            local v105 = {};
            local v106 = {};
            for _, v108 in v103.errors, nil, nil do
                if not v18() then
                    if v108.assetType ~= nil then
                        if v105[v108.assetType] == nil then
                            v105[v108.assetType] = {};
                        end;
                        table.insert(v105[v108.assetType], (v102(v108)));
                    end;
                else
                    local v109 = v102(v108);
                    if v108.assetType == nil then
                        table.insert(v106, v109);
                    else
                        if v105[v108.assetType] == nil then
                            v105[v108.assetType] = {};
                        end;
                        table.insert(v105[v108.assetType], v109);
                    end;
                end;
            end;
            for _, v111 in v103.pieces, nil, nil do
                local v112 = v105[v111.assetType] or {};
                table.insert(v104, {
                    assetType = v111.assetType,
                    instance = v111.instance,
                    required = v111.settings.minimumQuantity > 0,
                    errors = v112,
                    type = if #v112 > 0 then v36.error else if v111.status == "finished" then v36.success else v36.pending
                });
            end;
            if v18() then
                table.insert(v104, {
                    assetType = nil,
                    instance = v100,
                    required = true,
                    errors = v106,
                    type = if #v106 > 0 then v36.error else v36.pending
                });
            end;
            v96:setState({
                ugcBundleValidationResults = v104
            });
        end):andThen(function(v113)
            if v18() then
                v96:setState(function(v114)
                    if not (v114.ugcBundleValidationResults ~= nil) or v46 and v114.ugcBundleValidationResults == v3.None then
                        return {};
                    else
                        local v115 = table.clone(v114.ugcBundleValidationResults);
                        local v116 = table.clone(v115[#v115]);
                        assert(v116.assetType == nil, "Expected last validation result to not have an asset type (full body)");
                        if #v116.errors == 0 then
                            v116.type = v36.success;
                        end;
                        v115[#v115] = v116;
                        return {
                            ugcBundleValidationResults = v115
                        };
                    end;
                end);
            end;
            local v117 = {};
            for _, v119 in v113.errors, nil, nil do
                table.insert(v117, (v102(v119)));
            end;
            v96.validationCallback(#v117 == 0, v117);
        end);
        return ;
    end;
end;
v47.resetValidation = function(v120)
    local l_props_4 = v120.props;
    v120:cancelValidationTasks();
    v120:setState(function()
        return {
            validationState = v52.NONE,
            validationFailureReasons = {},
            ugcBundleValidationResults = v3.None
        };
    end);
    if l_props_4.onAssetValidationResultChanged then
        l_props_4.onAssetValidationResultChanged(false);
    end;
end;
v47.cancelValidationTasks = function(v122)
    if v122.validationTask ~= nil then
        task.cancel(v122.validationTask);
        v122.validationTask = nil;
    end;
    if v122.validationPromise ~= nil then
        v122.validationPromise:cancel();
        v122.validationPromise = nil;
    end;
end;
v47.getErrorMessageWithCount = function(v123, v124)
    local l_props_5 = v123.props;
    if v124 == 1 then
        return l_props_5.Localization:getText("AssetConfig", "ValidationErrorSingular", {
            errorCount = v124
        });
    else
        return l_props_5.Localization:getText("AssetConfig", "ValidationErrorPlural", {
            errorCount = v124
        });
    end;
end;
v47.getValidationStatusMessage = function(v126)
    local l_props_6 = v126.props;
    local l_state_3 = v126.state;
    if l_state_3.validationState == v52.VALIDATING then
        return l_props_6.Localization:getText("AssetConfig", "ValidatingInProgress");
    elseif l_state_3.validationState == v52.SUCCESS then
        return l_props_6.Localization:getText("AssetConfig", "ValidationSuccess");
    elseif l_state_3.validationState == v52.FAILURE then
        local v129 = #l_state_3.validationFailureReasons;
        if v129 > 0 then
            return v126:getErrorMessageWithCount(v129);
        else
            return l_props_6.Localization:getText("AssetConfig", "ValidationErrorUnknown");
        end;
    else
        return "";
    end;
end;
v47.getValidationStatusColor = function(v130, v131)
    local l_state_4 = v130.state;
    if l_state_4.validationState == v52.SUCCESS then
        return v131.typeValidation.successResultColor;
    elseif l_state_4.validationState == v52.FAILURE then
        return v131.typeValidation.failureResultColor;
    else
        return v131.TextColor;
    end;
end;
v47.getAssetCategoryIndex = function(v133)
    local l_state_5 = v133.state;
    if l_state_5.currentSelectedRadioButtonKey == "AvatarItem" then
        return l_state_5.dropdownAvatarCategoryIndex;
    else
        return l_state_5.dropdownDevelopmentCategoryIndex;
    end;
end;
v47.getDropdownItemsFor = function(v135, v136, v137)
    local l_props_7 = v135.props;
    local v139 = {};
    if v136 == "AvatarItem" then
        if l_props_7.allowedBundleTypeSettings ~= nil then
            for v140 in l_props_7.allowedBundleTypeSettings, nil, nil do
                local v141 = v12.getUGCBundleTypeFromString(v140);
                table.insert(v139, {
                    name = not v137 and "" or v12.getLocalizedUGCBundleName(v141, v137),
                    selectable = true,
                    type = v141
                });
            end;
            if game:GetFastFlag("BodyFirstInAssetsCategory") then
                table.sort(v139, function(v142, v143)
                    return (table.find(v51, v142.type) or math.huge) < (table.find(v51, v143.type) or math.huge);
                end);
            end;
        end;
        local v144 = v21(l_props_7.allowedAssetTypesForRelease);
        if #v144 > 0 then
            for _, v146 in v144, nil, nil do
                table.insert(v139, {
                    name = not v137 and "" or v22(v137)[v146],
                    selectable = true,
                    type = v146
                });
            end;
            return v139;
        end;
    else
        local v147 = not v137 and "" or v137:getText("General", "AssetTypeModel");
        local v148 = not v137 and "" or v137:getText("General", "AssetTypeAnimation");
        table.insert(v139, {
            name = v147,
            selectable = true,
            type = Enum.AssetType.Model
        });
        table.insert(v139, {
            name = v148,
            selectable = true,
            type = Enum.AssetType.Animation
        });
    end;
    return v139;
end;
v47.getDropdownItems = function(v149, v150)
    v149.dropdownItems = v149:getDropdownItemsFor(v149.state.currentSelectedRadioButtonKey, v150);
    return v149.dropdownItems;
end;
if v40() then
    v47.getMissingOptionalPartsMessage = function(v151, v152, v153, v154, v155)
        local l_props_8 = v151.props;
        if v12.isUGCBundleType(v154) then
            local v157 = v12.getOptionalBodyPartsNotFound(v152, v153, v154);
            if not v157 or #v157 <= 0 then
                return nil;
            else
                local v158 = {};
                local v159 = l_LayoutOrderIterator_0.new();
                v158.OptionalPartsMessage = v5.createElement(l_TextLabel_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    BackgroundTransparency = 1,
                    Font = v14.FONT,
                    LayoutOrder = v159:getNextOrder(),
                    Size = UDim2.fromScale(1, 0),
                    Text = l_props_8.Localization:getText("AssetConfig", "UGCMissingOptionalPartsMessage"),
                    TextColor = v155.assetConfig.labelTextColor,
                    TextSize = v14.FONT_SIZE_TITLE,
                    TextWrapped = true,
                    TextXAlignment = Enum.TextXAlignment.Left,
                    TextYAlignment = Enum.TextYAlignment.Center
                });
                for _, v161 in v157, nil, nil do
                    local v162 = v22(l_props_8.Localization)[v161];
                    if v162 ~= nil then
                        v158[v161.Name] = v5.createElement(l_TextLabel_0, {
                            AutomaticSize = Enum.AutomaticSize.Y,
                            BackgroundTransparency = 1,
                            Font = v14.FONT,
                            LayoutOrder = v159:getNextOrder(),
                            Size = UDim2.fromScale(1, 0),
                            Text = v162,
                            TextColor = v155.assetConfig.labelTextColor,
                            TextSize = v14.FONT_SIZE_TITLE,
                            TextWrapped = true,
                            TextXAlignment = Enum.TextXAlignment.Left,
                            TextYAlignment = Enum.TextYAlignment.Center
                        });
                    end;
                end;
                return v158;
            end;
        else
            return nil;
        end;
    end;
end;
if l_EnableUGCBundleUnknownMeshPartFiltering_0 then
    v47.getUnknownMeshPartMessage = function(v163, v164, v165, v166)
        local l_props_9 = v163.props;
        if v12.isUGCBundleType(v165) then
            local v168 = v12.getUnknownMeshPartNames(v164);
            if not v168 or #v168 <= 0 then
                return nil;
            else
                local v169 = {};
                local v170 = l_LayoutOrderIterator_0.new();
                v169.OptionalPartsMessage = v5.createElement(l_TextLabel_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    BackgroundTransparency = 1,
                    Font = v14.FONT,
                    LayoutOrder = v170:getNextOrder(),
                    Size = UDim2.fromScale(1, 0),
                    Text = l_props_9.Localization:getText("AssetConfig", "UGCUnknownMeshPartsMessage"),
                    TextColor = v166.assetConfig.labelTextColor,
                    TextSize = v14.FONT_SIZE_TITLE,
                    TextWrapped = true,
                    TextXAlignment = Enum.TextXAlignment.Left,
                    TextYAlignment = Enum.TextYAlignment.Center
                });
                for _, v172 in v168, nil, nil do
                    v169[v172] = v5.createElement(l_TextLabel_0, {
                        AutomaticSize = Enum.AutomaticSize.Y,
                        BackgroundTransparency = 1,
                        Font = v14.FONT,
                        LayoutOrder = v170:getNextOrder(),
                        Size = UDim2.fromScale(1, 0),
                        Text = v172,
                        TextColor = v166.assetConfig.labelTextColor,
                        TextSize = v14.FONT_SIZE_TITLE,
                        TextWrapped = true,
                        TextXAlignment = Enum.TextXAlignment.Left,
                        TextYAlignment = Enum.TextYAlignment.Center
                    });
                end;
                return v169;
            end;
        else
            return nil;
        end;
    end;
end;
if v43() then
    v47.getUgcRestrictionsWarningText = function(v173, v174, v175)
        local l_props_10 = v173.props;
        local l_Localization_0 = l_props_10.Localization;
        local v178 = nil;
        local v179 = {};
        local l_canUploadWithUgcRestrictions_0 = l_props_10.canUploadWithUgcRestrictions;
        local l_canUploadWithUgcRestrictionsDenyReason_0 = l_props_10.canUploadWithUgcRestrictionsDenyReason;
        if not v173:isAvatarItemCategorySelected() then
            if not v174 then
                if v175 then
                    v178 = l_Localization_0:getText("AssetConfig", "ModelPublishWarning");
                end;
            else
                return l_Localization_0:getText("AssetConfig", "InsufficientRobuxWarning"), v179;
            end;
        elseif l_canUploadWithUgcRestrictions_0 ~= nil and l_canUploadWithUgcRestrictions_0 == false then
            return if l_canUploadWithUgcRestrictionsDenyReason_0 == "MissingIdVerification" then l_Localization_0:getText("AssetConfig", "UploadDenied_MissingIdVerification_Text") else if l_canUploadWithUgcRestrictionsDenyReason_0 == "MissingPremiumSubscriptionTier" then l_Localization_0:getText("AssetConfig", "UploadDenied_MissingPremiumSubscriptionTier_Text") else l_Localization_0:getText("AssetConfig", "UploadDenied_UnknownError", {
                errorCode = l_canUploadWithUgcRestrictionsDenyReason_0
            }), {
                ["[Age_Verified]"] = {
                    LinkText = l_Localization_0:getText("AssetConfig", "UploadDenied_MissingIdVerification_Link"),
                    LinkCallback = function()
                        l_BrowserService_0:OpenBrowserWindow(v44);
                    end
                },
                ["[Premium_1000_Or_2200_Subscription]"] = {
                    LinkText = l_Localization_0:getText("AssetConfig", "UploadDenied_MissingPremiumSubscriptionTier_Link"),
                    LinkCallback = function()
                        l_BrowserService_0:OpenBrowserWindow(v45);
                    end
                }
            };
        end;
        return v178, v179;
    end;
end;
v47.didUpdate = function(v182, _, v184)
    local l_props_11 = v182.props;
    local l_state_6 = v182.state;
    if not (l_state_6.currentSelectedRadioButtonKey == v184.currentSelectedRadioButtonKey and l_state_6.dropdownAvatarCategoryIndex == v184.dropdownAvatarCategoryIndex) or l_state_6.dropdownDevelopmentCategoryIndex ~= v184.dropdownDevelopmentCategoryIndex then
        v182:onAssetTypeChanged();
    end;
    if l_state_6.validationState ~= v184.validationState then
        if l_state_6.validationState == v52.BEGIN then
            v182:setState(function()
                return {
                    validationState = v52.VALIDATING
                };
            end);
            return ;
        elseif l_state_6.validationState == v52.VALIDATING then
            if not v12.isUGCBundleType(l_state_6.currentAssetType) then
                v182.validationTask = task.spawn(function()
                    local v193, v194 = v7.validate(if not v19() then l_props_11.instances else (function(v187)
                        local v188 = {};
                        local v189 = v187 or {};
                        for v190, v191 in v189, nil, nil do
                            local v192 = v191:Clone();
                            v13(v192);
                            v188[v190] = v192;
                        end;
                        return v188;
                    end)(l_props_11.instances), l_state_6.currentAssetType);
                    v182.validationCallback(v193, v194);
                end);
            else
                v182:startUGCBundleValidation();
                return ;
            end;
        end;
    end;
end;
v47.willUnmount = function(v195)
    v195:cancelValidationTasks();
end;
v47.render = function(v196)
    local l_props_12 = v196.props;
    local l_state_7 = v196.state;
    local l_Localization_1 = l_props_12.Localization;
    local l_Stylizer_0 = l_props_12.Stylizer;
    local v201 = l_LayoutOrderIterator_0.new();
    local v202 = l_state_7.validationState == v52.FAILURE;
    local v203 = not v202 and 0 or 24;
    local l_FONT_SIZE_TITLE_0 = v14.FONT_SIZE_TITLE;
    local l_currentAssetType_0 = l_state_7.currentAssetType;
    local v206 = l_currentAssetType_0 == Enum.AssetType.Model;
    local v207 = v12.isUGCBundleType(l_currentAssetType_0);
    local v208 = l_Localization_1:getText("AssetConfig", "AvatarItemsErrorTitle");
    local v209 = l_Localization_1:getText("Common", "Close");
    local v210 = l_Localization_1:getText("General", "ContentType");
    local v211 = not not v17() and not not l_props_12.instances[1]:GetAttribute("RBX_AutoSetupped");
    local v212 = l_Localization_1:getText("AssetConfig", "DevelopmentItem");
    local v213 = if not v17() then l_Localization_1:getText("AssetConfig", "AvatarItem") else l_Localization_1:getText("AssetConfig", not v211 and "AvatarItem" or "AvatarItem_AvatarSetupDisabled");
    local v214 = l_Localization_1:getText("General", "AssetCategory");
    local v215 = nil;
    if not (v43() or not v206) then
        v215 = l_Localization_1:getText("AssetConfig", "ModelPublishWarning");
    end;
    local v216 = if l_props_12.uploadFee > 0 then not l_props_12.canAffordUploadFee else false;
    local v217 = nil;
    if not (v43() or not v216) then
        v217 = l_Localization_1:getText("AssetConfig", "InsufficientRobuxWarning");
    end;
    local l_displayValidationErrorMessages_0 = l_state_7.displayValidationErrorMessages;
    local v219 = l_Localization_1:getText("General", "BodyValidation");
    local v220 = if not v40() then nil else v196:getMissingOptionalPartsMessage(l_props_12.instances[1], l_props_12.allowedBundleTypeSettings, l_currentAssetType_0, l_Stylizer_0);
    local v221 = if not l_EnableUGCBundleUnknownMeshPartFiltering_0 then nil else v196:getUnknownMeshPartMessage(l_props_12.instances[1], l_currentAssetType_0, l_Stylizer_0);
    local v222 = nil;
    local v223 = {};
    if v43() then
        local v224, v225 = v196:getUgcRestrictionsWarningText(v216, v206);
        v222 = v224;
        v223 = v225;
    end;
    return v5.createElement(l_Pane_0, {
        AutomaticSize = Enum.AutomaticSize.XY,
        BackgroundColor3 = l_Stylizer_0.typeSelection.background,
        BackgroundTransparency = 1,
        HorizontalAlignment = Enum.HorizontalAlignment.Left,
        Layout = Enum.FillDirection.Vertical,
        LayoutOrder = l_props_12.LayoutOrder,
        Padding = {
            Bottom = 32
        },
        Spacing = 30,
        VerticalAlignment = Enum.VerticalAlignment.Top
    }, {
        ValidationErrorMessageBox = if not l_displayValidationErrorMessages_0 then nil else v5.createElement(v32, {
            buttons = {
                {
                    Text = v209,
                    Font = l_Stylizer_0.Font,
                    TextSize = l_Stylizer_0.TextSize,
                    action = "yes"
                }
            },
            Icon = "rbxasset://textures/ui/ErrorIcon.png",
            InformativeText = v196:getAvatarItemCategoryErrors(),
            onButtonClicked = v196.onValidationErrorMessageBoxClosed,
            onClose = v196.onValidationErrorMessageBoxClosed,
            Text = v196:getAvatarItemCategoryErrorsPrimaryText(),
            Title = v208
        }),
        ContentTypeRadioButtons = v5.createElement(v34, {
            AutomaticSize = Enum.AutomaticSize.XY,
            LayoutOrder = v201:getNextOrder(),
            Title = v210
        }, {
            UIListLayout = v5.createElement("UIListLayout", {
                FillDirection = Enum.FillDirection.Vertical,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                Padding = UDim.new(0, 8),
                SortOrder = Enum.SortOrder.LayoutOrder,
                VerticalAlignment = Enum.VerticalAlignment.Top
            }),
            RadioButtons = v5.createElement(l_RadioButtonList_0, {
                Buttons = {
                    {
                        Key = "DevelopmentItem",
                        Text = v212,
                        Disabled = false
                    },
                    {
                        Key = "AvatarItem",
                        Text = v213,
                        Disabled = not not v17() and v211
                    }
                },
                FillDirection = Enum.FillDirection.Horizontal,
                LayoutOrder = 1,
                OnClick = v196.onRadioButtonClicked,
                SelectedKey = l_state_7.currentSelectedRadioButtonKey
            }),
            WarningMessageFrame = if not v43() then nil else v5.createElement(l_Pane_0, {
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                Layout = Enum.FillDirection.Horizontal,
                LayoutOrder = 2,
                Size = UDim2.new(1, 0, 0, v50),
                Spacing = v49,
                VerticalAlignment = Enum.VerticalAlignment.Center
            }, {
                WarningMessageIcon = if v222 ~= nil then v5.createElement("ImageLabel", {
                    BackgroundTransparency = 1,
                    Image = v16.WARNING_ICON,
                    ImageColor3 = l_Stylizer_0.assetConfig.warningColor,
                    LayoutOrder = 1,
                    Size = UDim2.fromOffset(24, 24)
                }) else nil,
                WarningMessageText = if v222 ~= nil then v5.createElement(l_TextWithLinks_0, {
                    BackgroundTransparency = 1,
                    HorizontalAlignment = Enum.HorizontalAlignment.Left,
                    LayoutOrder = 2,
                    LinkMap = v223,
                    Size = UDim2.fromScale(1, 1),
                    Text = v222,
                    TextColor3 = l_Stylizer_0.assetConfig.warningColor,
                    TextProps = {
                        Font = v14.FONT,
                        TextSize = 24
                    },
                    TextXAlignment = Enum.TextXAlignment.Left,
                    TextYAlignment = Enum.TextYAlignment.Top
                }) else nil
            }),
            WarningFrame = if v43() then nil else v5.createElement(l_Pane_0, {
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                Layout = Enum.FillDirection.Horizontal,
                LayoutOrder = 2,
                Size = UDim2.new(1, 0, 0, v50),
                Spacing = v49,
                VerticalAlignment = Enum.VerticalAlignment.Top
            }, {
                Icon = if v206 or v216 then v5.createElement("ImageLabel", {
                    BackgroundTransparency = 1,
                    Image = v16.WARNING_ICON,
                    ImageColor3 = l_Stylizer_0.assetConfig.warningColor,
                    LayoutOrder = 1,
                    Size = UDim2.fromOffset(24, 24)
                }) else nil,
                ModelWarningText = if not v206 then nil else v5.createElement("TextLabel", {
                    AutomaticSize = Enum.AutomaticSize.XY,
                    BackgroundTransparency = 1,
                    Font = v14.FONT,
                    LayoutOrder = 2,
                    Size = UDim2.new(1, 0, 1, 0),
                    Text = v215,
                    TextColor3 = l_Stylizer_0.assetConfig.warningColor,
                    TextSize = 24,
                    TextWrapped = true,
                    TextXAlignment = Enum.TextXAlignment.Left,
                    TextYAlignment = Enum.TextYAlignment.Center
                }),
                InsufficientRobuxWarningText = if not v216 then nil else v5.createElement("TextLabel", {
                    AutomaticSize = Enum.AutomaticSize.XY,
                    BackgroundTransparency = 1,
                    Font = v14.FONT,
                    LayoutOrder = 2,
                    Size = UDim2.new(1, 0, 1, 0),
                    Text = v217,
                    TextColor3 = l_Stylizer_0.assetConfig.warningColor,
                    TextSize = 24,
                    TextWrapped = true,
                    TextXAlignment = Enum.TextXAlignment.Left,
                    TextYAlignment = Enum.TextYAlignment.Center
                })
            })
        }),
        AssetCategoryDropDown = v5.createElement(v34, {
            AutomaticSize = Enum.AutomaticSize.XY,
            LayoutOrder = v201:getNextOrder(),
            Title = v214
        }, {
            Dropdown = v5.createElement(v31, {
                fontSize = 20,
                items = v196:getDropdownItems(l_Localization_1),
                onItemClicked = v196.setAssetCategoryIndex,
                rowHeight = 24,
                selectedDropDownIndex = v196:getAssetCategoryIndex(),
                Size = UDim2.new(0, 400, 0, 40),
                visibleDropDownCount = 6
            }),
            ValidationResult = if v202 then nil else v5.createElement(l_TextLabel_0, {
                AutomaticSize = Enum.AutomaticSize.XY,
                Position = UDim2.new(0, (400 + v203) + 16, 0, (40 - l_FONT_SIZE_TITLE_0) / 2),
                Text = v196:getValidationStatusMessage(),
                TextColor = v196:getValidationStatusColor(l_Stylizer_0),
                TextWrapped = true,
                TextXAlignment = Enum.TextXAlignment.Left,
                TextYAlignment = Enum.TextYAlignment.Center
            }),
            ErrorIconButton = if not v202 then nil else v5.createElement("ImageButton", {
                AutoButtonColor = false,
                BackgroundTransparency = 1,
                Image = "rbxasset://textures/ui/ErrorIcon.png",
                ImageColor3 = v196:getValidationStatusColor(l_Stylizer_0),
                Position = UDim2.new(0, 408, 0, 8),
                Size = UDim2.fromOffset(24, 24),
                [v5.Event.Activated] = v196.openValidationErrorMessageBox
            }),
            ErrorMessageTextButton = if not v202 then nil else v5.createElement("TextButton", {
                AutomaticSize = Enum.AutomaticSize.XY,
                BackgroundTransparency = 1,
                Font = l_Stylizer_0.Font,
                Position = UDim2.new(0, (400 + v203) + 16, 0, (40 - l_FONT_SIZE_TITLE_0) / 2),
                Text = v196:getValidationStatusMessage(),
                TextColor3 = v196:getValidationStatusColor(l_Stylizer_0),
                TextSize = v14.FONT_SIZE_TITLE,
                TextXAlignment = Enum.TextXAlignment.Left,
                TextYAlignment = Enum.TextYAlignment.Center,
                [v5.Event.Activated] = v196.openValidationErrorMessageBox
            })
        }),
        ContentTypeBodyValidation = if not not v207 and v196.state.ugcBundleValidationResults ~= v3.None then v5.createElement(v34, {
            AutomaticSize = Enum.AutomaticSize.XY,
            LayoutOrder = v201:getNextOrder(),
            Title = v219
        }, {
            ValidationPane = if v40() or l_EnableUGCBundleUnknownMeshPartFiltering_0 then v5.createElement(l_Pane_0, {
                AutomaticSize = Enum.AutomaticSize.Y,
                Layout = Enum.FillDirection.Vertical,
                LayoutOrder = 1,
                Size = UDim2.fromScale(1, 0),
                Spacing = v48
            }, {
                UGCBundleValidation = v5.createElement(v35, {
                    LayoutOrder = 1,
                    onClickError = v196.openValidationErrorMessageBox,
                    validationResults = v196.state.ugcBundleValidationResults
                }),
                MissingOptionalAccessoriesMsg = if not v220 then nil else v5.createElement(l_Pane_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    Layout = Enum.FillDirection.Vertical,
                    LayoutOrder = 2,
                    Size = UDim2.fromScale(1, 0)
                }, v220),
                UnknownMeshPartsMsgChildren = if not v221 then nil else v5.createElement(l_Pane_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    Layout = Enum.FillDirection.Vertical,
                    LayoutOrder = 3,
                    Size = UDim2.fromScale(1, 0)
                }, v221)
            }) else v5.createElement(v35, {
                onClickError = v196.openValidationErrorMessageBox,
                validationResults = v196.state.ugcBundleValidationResults
            })
        }) else nil,
        DataSharingConsent = if (not not v20() and l_props_12.dataSharingEnabled) and v207 then v5.createElement(v38, {
            LayoutOrder = v201:getNextOrder(),
            dataSharingToggled = l_props_12.dataSharingToggled,
            onDataConsentToggleClick = l_props_12.onDataConsentToggleClick
        }) else nil
    });
end;
return v6.connect(function(v226)
    v226 = v226 or {};
    return {
        allowedAssetTypesForRelease = v226.allowedAssetTypesForRelease,
        allowedBundleTypeSettings = v226.allowedBundleTypeSettings,
        assetTypeEnum = v226.assetTypeEnum,
        canAffordUploadFee = v226.canAffordUploadFee or false,
        instances = v226.instances,
        uploadFee = v226.uploadFee or 0
    };
end, function(v227)
    return {
        onAssetTypeSelected = function(v228)
            v227(v29(v228));
        end,
        onAssetValidationResultChanged = function(v229)
            v227(v30(v229));
        end
    };
end)((l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer,
    Localization = l_ContextServices_0.Localization
})(v47)));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local l_ContextServices_0 = require(l_Packages_0.Framework).ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_Util_0 = l_Parent_0.Core.Util;
local v6 = require(l_Util_0.Constants);
local v7 = require(l_Util_0.AssetConfigConstants);
local l_ToggleButton_0 = require(l_Packages_0.Framework).UI.ToggleButton;
local v9 = v2.PureComponent:extend("ConfigComment");
v9.init = function(v10, _)
    v10.toggleCallback = function()
        local l_props_0 = v10.props;
        l_props_0.ToggleCallback(not l_props_0.CommentOn);
    end;
end;
v9.render = function(v13)
    local l_props_1 = v13.props;
    local l_Title_0 = l_props_1.Title;
    local l_LayoutOrder_0 = l_props_1.LayoutOrder;
    local l_TotalHeight_0 = l_props_1.TotalHeight;
    local l_CommentOn_0 = l_props_1.CommentOn;
    local l_CommentEnabled_0 = l_props_1.CommentEnabled;
    local _ = l_props_1.ToggleCallback;
    return v2.createElement("Frame", {
        Size = UDim2.new(1, 0, 0, l_TotalHeight_0),
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        LayoutOrder = l_LayoutOrder_0
    }, {
        UIListLayout = v2.createElement("UIListLayout", {
            FillDirection = Enum.FillDirection.Horizontal,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            VerticalAlignment = Enum.VerticalAlignment.Top,
            SortOrder = Enum.SortOrder.LayoutOrder,
            Padding = UDim.new(0, 0)
        }),
        Title = v2.createElement("TextLabel", {
            Size = UDim2.new(0, v7.TITLE_GUTTER_WIDTH, 1, 0),
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            Text = l_Title_0,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Top,
            TextSize = v6.FONT_SIZE_TITLE,
            TextColor3 = v13.props.Stylizer.publishAsset.titleTextColor,
            Font = v6.FONT,
            LayoutOrder = 1
        }),
        ToggleButton = v2.createElement(l_ToggleButton_0, {
            Disabled = not l_CommentEnabled_0,
            LayoutOrder = 2,
            OnClick = v13.toggleCallback,
            Selected = l_CommentOn_0,
            Size = UDim2.new(0, 40, 0, 24)
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v9));


local l_script_FirstAncestor_0 = script:FindFirstAncestor("Toolbox");
local l_Packages_0 = l_script_FirstAncestor_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local l_ContextServices_0 = v3.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_Util_0 = l_script_FirstAncestor_0.Core.Util;
local v7 = require(l_Util_0.Constants);
local v8 = require(l_Util_0.AssetConfigConstants);
local v9 = require(l_Util_0.LayoutOrderIterator);
local l_UI_0 = v3.UI;
local l_ToggleButton_0 = l_UI_0.ToggleButton;
local l_TextLabel_0 = l_UI_0.TextLabel;
local l_StyleModifier_0 = v3.Util.StyleModifier;
local v14 = v2.PureComponent:extend("ConfigDeleteLocal");
v14.init = function(v15, _)
    v15.toggleCallback = function()
        local l_props_0 = v15.props;
        l_props_0.ToggleCallback(not l_props_0.DeleteLocal);
    end;
end;
v14.render = function(v18)
    local l_props_1 = v18.props;
    local l_Title_0 = l_props_1.Title;
    local l_LayoutOrder_0 = l_props_1.LayoutOrder;
    local l_TotalHeight_0 = l_props_1.TotalHeight;
    local l_DeleteLocal_0 = l_props_1.DeleteLocal;
    local l_publishAsset_0 = v18.props.Stylizer.publishAsset;
    local v25 = l_props_1.Localization:getText("AssetConfigDeleteLocal", "InformationText");
    local v26 = v9.new();
    local v27 = v9.new();
    return v2.createElement("Frame", {
        Size = UDim2.new(1, 0, 0, l_TotalHeight_0),
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        LayoutOrder = l_LayoutOrder_0
    }, {
        UIListLayout = v2.createElement("UIListLayout", {
            FillDirection = Enum.FillDirection.Horizontal,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            VerticalAlignment = Enum.VerticalAlignment.Top,
            SortOrder = Enum.SortOrder.LayoutOrder,
            Padding = UDim.new(0, 0)
        }),
        Title = v2.createElement("TextLabel", {
            Size = UDim2.new(0, v8.TITLE_GUTTER_WIDTH, 1, 0),
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            Text = l_Title_0,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Top,
            TextSize = v7.FONT_SIZE_TITLE,
            TextColor3 = l_publishAsset_0.titleTextColor,
            Font = v7.FONT,
            LayoutOrder = v26:getNextOrder()
        }),
        RightFrame = v2.createElement("Frame", {
            AutomaticSize = Enum.AutomaticSize.Y,
            BackgroundTransparency = 1,
            Size = UDim2.new(1, -v8.TITLE_GUTTER_WIDTH, 0, 0),
            LayoutOrder = v26:getNextOrder()
        }, {
            UIPadding = v2.createElement("UIPadding", {
                PaddingBottom = UDim.new(0, 25),
                PaddingLeft = UDim.new(0, 0),
                PaddingRight = UDim.new(0, 0),
                PaddingTop = UDim.new(0, 0)
            }),
            UIListLayout = v2.createElement("UIListLayout", {
                SortOrder = Enum.SortOrder.LayoutOrder,
                FillDirection = Enum.FillDirection.Vertical,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                VerticalAlignment = Enum.VerticalAlignment.Top,
                Padding = UDim.new(0, 0)
            }),
            ToggleButton = v2.createElement(l_ToggleButton_0, {
                OnClick = v18.toggleCallback,
                Selected = l_DeleteLocal_0,
                Size = UDim2.new(0, 40, 0, 24),
                LayoutOrder = v27:getNextOrder()
            }),
            TipsLabel = v2.createElement(l_TextLabel_0, {
                AutomaticSize = Enum.AutomaticSize.Y,
                Size = UDim2.new(1, 0, 0, 0),
                Text = v25,
                StyleModifier = l_StyleModifier_0.Disabled,
                TextWrapped = true,
                TextXAlignment = Enum.TextXAlignment.Left,
                TextYAlignment = Enum.TextYAlignment.Center,
                TextSize = v7.FONT_SIZE_LARGE,
                LayoutOrder = v27:getNextOrder()
            })
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer,
    Localization = l_ContextServices_0.Localization
})(v14));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local v4 = require(l_Parent_0.Core.Components.DropdownMenu);
local l_Util_0 = l_Parent_0.Core.Util;
local v6 = require(l_Util_0.Constants);
local v7 = require(l_Util_0.AssetConfigConstants);
local v8 = require(l_Util_0.AssetConfigUtil);
local l_ContextServices_0 = v3.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_withForwardRef_0 = v3.Wrappers.withForwardRef;
local v12 = v2.PureComponent:extend("ConfigGenre");
v12.render = function(v13)
    local l_props_0 = v13.props;
    local _ = v13.state;
    return v2.createElement("Frame", {
        Size = UDim2.new(1, 0, 0, l_props_0.TotalHeight),
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        LayoutOrder = l_props_0.LayoutOrder,
        [v2.Ref] = l_props_0.ForwardRef
    }, {
        UIListLayout = v2.createElement("UIListLayout", {
            FillDirection = Enum.FillDirection.Horizontal,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            VerticalAlignment = Enum.VerticalAlignment.Top,
            SortOrder = Enum.SortOrder.LayoutOrder,
            Padding = UDim.new(0, 0)
        }),
        Title = v2.createElement("TextLabel", {
            Size = UDim2.new(0, v7.TITLE_GUTTER_WIDTH, 1, 0),
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            Text = l_props_0.Title,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Top,
            TextSize = v6.FONT_SIZE_TITLE,
            TextColor3 = l_props_0.Stylizer.publishAsset.titleTextColor,
            Font = v6.FONT,
            LayoutOrder = 1
        }),
        DropDown = v2.createElement(v4, {
            Size = UDim2.new(0, 220, 0, 38),
            visibleDropDownCount = 5,
            selectedDropDownIndex = v8.getGenreIndex((l_props_0.genres or {})[1]),
            items = v8.getGenreTypes(),
            fontSize = v6.FONT_SIZE_LARGE,
            onItemClicked = l_props_0.onDropDownSelect,
            setDropdownHeight = l_props_0.setDropdownHeight,
            LayoutOrder = 2
        })
    });
end;
return (l_withForwardRef_0((l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v12))));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local l_ContextServices_0 = require(l_Packages_0.Framework).ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_Util_0 = l_Parent_0.Core.Util;
local v7 = require(l_Util_0.Constants);
local v8 = require(l_Util_0.AssetConfigConstants);
local l_UI_0 = v3.UI;
local l_ToggleButton_0 = l_UI_0.ToggleButton;
local l_TextLabel_0 = l_UI_0.TextLabel;
local l_StyleModifier_0 = v3.Util.StyleModifier;
local l_Pane_0 = l_UI_0.Pane;
local v14 = v2.PureComponent:extend("ConfigPackage");
v14.init = function(v15, _)
    v15.toggleCallback = function()
        local l_props_0 = v15.props;
        l_props_0.ToggleCallback(not l_props_0.PackageOn);
    end;
end;
v14.render = function(v18)
    local l_props_1 = v18.props;
    local l_Title_0 = l_props_1.Title;
    local l_LayoutOrder_0 = l_props_1.LayoutOrder;
    local l_TotalHeight_0 = l_props_1.TotalHeight;
    local l_PackageOn_0 = l_props_1.PackageOn;
    local l_PackageEnabled_0 = l_props_1.PackageEnabled;
    local l_PackageWarningText_0 = l_props_1.PackageWarningText;
    local _ = l_props_1.ToggleCallback;
    local l_Stylizer_0 = v18.props.Stylizer;
    local l_publishAsset_0 = l_Stylizer_0.publishAsset;
    local l_Localization_0 = l_props_1.Localization;
    return v2.createElement("Frame", {
        AutomaticSize = Enum.AutomaticSize.Y,
        Size = UDim2.new(1, 0, 0, l_TotalHeight_0),
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        LayoutOrder = l_LayoutOrder_0
    }, {
        UIListLayout = v2.createElement("UIListLayout", {
            FillDirection = Enum.FillDirection.Horizontal,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            VerticalAlignment = Enum.VerticalAlignment.Top,
            SortOrder = Enum.SortOrder.LayoutOrder,
            Padding = UDim.new(0, 0)
        }),
        Title = v2.createElement(l_TextLabel_0, {
            Size = UDim2.new(0, v8.TITLE_GUTTER_WIDTH, 0, 0),
            AutomaticSize = Enum.AutomaticSize.Y,
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            Text = l_Title_0,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Top,
            TextSize = v7.FONT_SIZE_TITLE,
            TextColor = l_publishAsset_0.titleTextColor,
            Font = v7.FONT,
            LayoutOrder = 1
        }),
        RightFrame = v2.createElement("Frame", {
            AutomaticSize = Enum.AutomaticSize.Y,
            Size = UDim2.new(1, -v8.TITLE_GUTTER_WIDTH, 0, 0),
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            LayoutOrder = 2
        }, {
            UIListLayout = v2.createElement("UIListLayout", {
                SortOrder = Enum.SortOrder.LayoutOrder,
                FillDirection = Enum.FillDirection.Vertical,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                VerticalAlignment = Enum.VerticalAlignment.Top,
                Padding = UDim.new(0, 5)
            }),
            ToggleButtonContainer = v2.createElement(l_Pane_0, {
                BackgroundTransparency = 1,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                Layout = Enum.FillDirection.Horizontal,
                LayoutOrder = 2,
                Size = UDim2.new(1, 0, 0, 34),
                Padding = {
                    Bottom = 10
                },
                Spacing = 10,
                VerticalAlignment = Enum.VerticalAlignment.Top,
                AutomaticSize = Enum.AutomaticSize.Y
            }, {
                ToggleButton = v2.createElement(l_ToggleButton_0, {
                    Disabled = not l_PackageEnabled_0,
                    LayoutOrder = 1,
                    OnClick = v18.toggleCallback,
                    Selected = l_PackageOn_0,
                    Size = UDim2.new(0, 40, 0, 24)
                }),
                ErrorText = if not (l_props_1.PackageWarningText ~= nil) then nil else v2.createElement(l_TextLabel_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    LayoutOrder = 2,
                    BackgroundTransparency = 1,
                    Font = v7.FONT,
                    Size = UDim2.new(1, -50, 0, 0),
                    Text = l_PackageWarningText_0,
                    TextWrapped = true,
                    TextColor = if l_PackageWarningText_0 == l_Localization_0:getText("AssetConfigPackage", "Non3DRoot3DDescendentsWarning") then l_Stylizer_0.assetConfig.warningColor else l_Stylizer_0.assetConfig.errorColor,
                    TextXAlignment = Enum.TextXAlignment.Left,
                    TextYAlignment = Enum.TextYAlignment.Center,
                    TextSize = v7.FONT_SIZE_LARGE
                })
            }),
            TipsLabel = v2.createElement(l_TextLabel_0, {
                AutomaticSize = Enum.AutomaticSize.Y,
                Size = UDim2.new(1, 0, 0, 0),
                BorderSizePixel = 0,
                LayoutOrder = 3,
                Text = l_Localization_0:getText("AssetConfigPackage", "HelpTextV2"),
                StyleModifier = l_StyleModifier_0.Disabled,
                TextWrapped = true,
                TextXAlignment = Enum.TextXAlignment.Left,
                TextYAlignment = Enum.TextYAlignment.Center,
                TextSize = v7.FONT_SIZE_LARGE
            })
        })
    });
end;
return (l_withContext_0({
    Localization = l_ContextServices_0.Localization,
    Stylizer = l_ContextServices_0.Stylizer
})(v14));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local l_Pane_0 = v3.UI.Pane;
local l_TextLabel_0 = v3.UI.TextLabel;
local l_Util_0 = l_Parent_0.Core.Util;
local v7 = require(l_Util_0.Constants);
local v8 = require(l_Util_0.AssetConfigConstants);
local l_LayoutOrderIterator_0 = v3.Util.LayoutOrderIterator;
local l_ContextServices_0 = v3.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_withForwardRef_0 = v3.Wrappers.withForwardRef;
local v13 = v2.PureComponent:extend("ConfigureSectionWrapper");
v13.defaultProps = {
    Size = UDim2.new(1, 0, 0, 0)
};
v13.render = function(v14)
    local l_props_0 = v14.props;
    local l_publishAsset_0 = l_props_0.Stylizer.publishAsset;
    local v17 = l_LayoutOrderIterator_0.new();
    return v2.createElement(l_Pane_0, {
        AutomaticSize = Enum.AutomaticSize.Y,
        HorizontalAlignment = Enum.HorizontalAlignment.Left,
        Layout = Enum.FillDirection.Horizontal,
        LayoutOrder = l_props_0.LayoutOrder,
        Size = l_props_0.Size,
        VerticalAlignment = Enum.VerticalAlignment.Top,
        [v2.Ref] = l_props_0.ForwardRef
    }, {
        Title = v2.createElement(l_TextLabel_0, {
            AutomaticSize = Enum.AutomaticSize.Y,
            LayoutOrder = v17:getNextOrder(),
            Size = UDim2.new(0, v8.TITLE_GUTTER_WIDTH, 0, 0),
            Text = l_props_0.Title,
            TextColor = l_publishAsset_0.titleTextColor,
            TextSize = v7.FONT_SIZE_TITLE,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Top
        }),
        Contents = v2.createElement(l_Pane_0, {
            AutomaticSize = Enum.AutomaticSize.Y,
            LayoutOrder = v17:getNextOrder(),
            Size = UDim2.new(1, -v8.TITLE_GUTTER_WIDTH, 0, v7.FONT_SIZE_TITLE)
        }, l_props_0[v2.Children])
    });
end;
return (l_withForwardRef_0((l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v13))));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local l_ContextServices_0 = v3.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_Util_0 = l_Parent_0.Core.Util;
local _ = require(l_Util_0.Constants);
local _ = require(l_Util_0.AssetConfigConstants);
local l_LayoutOrderIterator_0 = v3.Util.LayoutOrderIterator;
local l_StyleModifier_0 = v3.Util.StyleModifier;
local l_UI_0 = v3.UI;
local l_Pane_0 = l_UI_0.Pane;
local l_TextInput_0 = l_UI_0.TextInput;
local l_TextLabel_0 = l_UI_0.TextLabel;
local v15 = require(l_Parent_0.Core.Components.AssetConfiguration.ConfigSectionWrapper);
local v16 = v2.PureComponent:extend("ConfigTextField");
v16.init = function(v17, _)
    v17.state = {};
    v17.hasError = false;
    v17.onTextChanged = function(v19)
        v17:setState({
            currentContent = v19
        });
        v17.props.TextChangeCallBack(v19);
    end;
end;
v16.render = function(v20)
    local l_Stylizer_0 = v20.props.Stylizer;
    local l_props_0 = v20.props;
    local l_state_0 = v20.state;
    local l_Title_0 = l_props_0.Title;
    local l_TotalHeight_0 = l_props_0.TotalHeight;
    local l_LayoutOrder_0 = l_props_0.LayoutOrder;
    local l_MaxCount_0 = l_props_0.MaxCount;
    local v28 = l_state_0.currentContent or (l_props_0.TextContent or "");
    if v20.props.ErrorCallback then
        if v20.props.MaxCount < #v28 then
            if not v20.hasError then
                v20.hasError = true;
                v20.props.ErrorCallback(v20.hasError);
            end;
        elseif v20.hasError then
            v20.hasError = false;
            v20.props.ErrorCallback(v20.hasError);
        end;
    end;
    local _ = l_Stylizer_0.publishAsset;
    local v30 = utf8.len(v28);
    local v31 = l_MaxCount_0 and l_MaxCount_0 < v30;
    local v32 = not not l_MaxCount_0 and v30 .. "/" .. l_MaxCount_0 or "";
    local v33 = l_MaxCount_0 and l_MaxCount_0 > 50;
    local v34 = l_LayoutOrderIterator_0.new();
    local l_inputBottomText_0 = l_Stylizer_0.assetConfig.inputBottomText;
    return v2.createElement(v15, {
        LayoutOrder = l_LayoutOrder_0,
        Title = l_Title_0
    }, {
        TextFieldWrapper = v2.createElement(l_Pane_0, {
            AutomaticSize = Enum.AutomaticSize.XY,
            LayoutOrder = v34:getNextOrder(),
            Size = UDim2.new(1, 0, 0, l_TotalHeight_0),
            Spacing = l_inputBottomText_0.bottomTextSpacing
        }, {
            UIListLayout = v2.createElement("UIListLayout", {
                FillDirection = Enum.FillDirection.Vertical,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                VerticalAlignment = Enum.VerticalAlignment.Top,
                SortOrder = Enum.SortOrder.LayoutOrder
            }),
            TextField = v2.createElement(l_TextInput_0, {
                BottomText = if not l_props_0.BottomRightText then v32 else nil,
                LayoutOrder = v34:getNextOrder(),
                MultiLine = v33,
                OnTextChanged = v20.onTextChanged,
                Size = UDim2.new(1, 0, 0, (l_TotalHeight_0 - 40) - 20),
                StyleModifier = if not v31 then nil else l_StyleModifier_0.Error,
                Text = v28
            }),
            BottomTextWrapper = if not l_props_0.BottomRightText then nil else v2.createElement(l_Pane_0, {
                AutomaticSize = Enum.AutomaticSize.XY,
                LayoutOrder = v34:getNextOrder(),
                Size = UDim2.new(1, 0, 0, 0)
            }, {
                CounterText = v2.createElement(l_TextLabel_0, {
                    AutomaticSize = Enum.AutomaticSize.XY,
                    LayoutOrder = v34:getNextOrder(),
                    Size = UDim2.new(1, 0, 0, 0),
                    TextXAlignment = Enum.TextXAlignment.Left,
                    Text = v32,
                    TextColor = if not v31 then l_inputBottomText_0.textColor else l_inputBottomText_0.textErrorColor,
                    TextSize = l_inputBottomText_0.textSize
                }),
                BottomText = v2.createElement(l_TextLabel_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    LayoutOrder = v34:getNextOrder(),
                    Size = UDim2.new(1, 0, 0, 0),
                    Text = l_props_0.BottomRightText,
                    TextColor = l_inputBottomText_0.textColor,
                    TextSize = l_inputBottomText_0.textSize,
                    TextXAlignment = Enum.TextXAlignment.Right
                })
            })
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v16));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_StudioService_0 = game:GetService("StudioService");
local l_Packages_0 = l_Parent_0.Packages;
local v3 = require(l_Packages_0.Roact);
local v4 = require(l_Parent_0.Core.Util.Constants);
local l_ContextServices_0 = require(l_Packages_0.Framework).ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local v7 = v3.PureComponent:extend("CopyID");
v7.init = function(v8)
    v8.state = {
        copied = false
    };
    v8.onCopyClicked = function(_)
        l_StudioService_0:CopyToClipboard((tostring(v8.props.AssetId)));
        v8:setState({
            copied = true
        });
    end;
end;
v7.render = function(v10)
    local l_props_0 = v10.props;
    local l_state_0 = v10.state;
    local l_Stylizer_0 = l_props_0.Stylizer;
    return v3.createElement("Frame", {
        BackgroundTransparency = 1,
        Position = UDim2.new(0.5, 0, 0, l_props_0.YPos),
        AnchorPoint = Vector2.new(0.5, 0),
        Size = UDim2.new(0, 111, 0, 24)
    }, {
        LayoutContainer = v3.createElement("Frame", {
            BackgroundTransparency = 1,
            Size = UDim2.new(1, 0, 1, 0)
        }, {
            UIListLayout = v3.createElement("UIListLayout", {
                FillDirection = Enum.FillDirection.Horizontal,
                HorizontalAlignment = Enum.HorizontalAlignment.Center,
                VerticalAlignment = Enum.VerticalAlignment.Center,
                SortOrder = Enum.SortOrder.LayoutOrder,
                Padding = UDim.new(0, 5)
            }),
            IDLabel = v3.createElement("TextLabel", {
                BackgroundTransparency = 1,
                Font = v4.FONT,
                Text = "ID: " .. l_props_0.AssetId,
                TextColor3 = l_Stylizer_0.uploadResult.idText,
                TextSize = v4.FONT_SIZE_MEDIUM,
                Size = UDim2.new(0, 86, 1, 0),
                TextYAlignment = Enum.TextYAlignment.Center,
                TextXAlignment = Enum.TextXAlignment.Center,
                LayoutOrder = 1
            }),
            CopyButton = v3.createElement("ImageButton", {
                Size = UDim2.new(0, 20, 0, 20),
                Image = "rbxasset://textures/StudioToolbox/AssetConfig/copy_2x.png",
                ImageColor3 = l_Stylizer_0.uploadResult.buttonColor,
                BackgroundTransparency = 1,
                LayoutOrder = 2,
                [v3.Event.MouseButton1Click] = v10.onCopyClicked
            })
        }),
        CopiedLabel = l_state_0.copied and v3.createElement("TextLabel", {
            BackgroundTransparency = 1,
            Font = v4.FONT,
            Text = l_props_0.Localization:getText("AssetConfigUpload", "IDCopied"),
            TextColor3 = l_Stylizer_0.uploadResult.greenText,
            TextSize = v4.FONT_SIZE_MEDIUM,
            Size = UDim2.new(0, 64, 1, 0),
            AnchorPoint = Vector2.new(0, 0.5),
            Position = UDim2.new(0, 116, 0.5, 0),
            TextYAlignment = Enum.TextYAlignment.Center,
            TextXAlignment = Enum.TextXAlignment.Center
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer,
    Localization = l_ContextServices_0.Localization
})(v7));


local l_script_FirstAncestor_0 = script:FindFirstAncestor("Toolbox");
local l_Packages_0 = l_script_FirstAncestor_0.Packages;
local v2 = require(l_Packages_0.Dash);
local v3 = require(l_Packages_0.Framework);
local v4 = require(l_Packages_0.React);
local l_Util_0 = l_script_FirstAncestor_0.Core.Util;
local _ = require(l_Util_0.Constants);
local _ = require(l_Util_0.AssetConfigConstants);
local v8 = require(l_script_FirstAncestor_0.Libs.Http.Url);
local l_ContextServices_0 = v3.ContextServices;
local l_BrowserService_0 = game:GetService("BrowserService");
local l_UI_0 = v3.UI;
local l_Pane_0 = l_UI_0.Pane;
local l_TextLabel_0 = l_UI_0.TextLabel;
local l_TextWithLinks_0 = l_UI_0.TextWithLinks;
local l_ToggleButton_0 = l_UI_0.ToggleButton;
local l_LayoutOrderIterator_0 = v3.Util.LayoutOrderIterator;
local _ = v3.Util.StyleModifier;
local v18 = require(l_script_FirstAncestor_0.Core.Components.AssetConfiguration.ConfigSectionWrapper);
local v19 = game:DefineFastString("DataSharing_PreferencesUrlSuffix", "settings/data-collection?tab=avatar-items");
local v20 = game:DefineFastString("DataSharing_TermsUrlSuffix", "docs/ai-data-sharing");
return function(v21)
    local v22 = l_ContextServices_0.Stylizer:use();
    local v23 = l_ContextServices_0.Localization:use();
    local v24 = l_LayoutOrderIterator_0.new();
    local v25 = {
        Font = v22.Font,
        Style = "Body",
        TextSize = 16,
        TextXAlignment = Enum.TextXAlignment.Left
    };
    return v4.createElement(v18, {
        AutomaticSize = Enum.AutomaticSize.XY,
        LayoutOrder = v21.LayoutOrder,
        Title = v23:getText("AssetConfig", "ShareDataHeader")
    }, {
        DescriptionPane = v4.createElement(l_Pane_0, {
            AutomaticSize = Enum.AutomaticSize.Y,
            LayoutOrder = v24:getNextOrder(),
            Layout = Enum.FillDirection.Vertical,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            Spacing = v22.toggle.verticalListPadding
        }, {
            ToggleButton = v4.createElement(l_ToggleButton_0, {
                LayoutOrder = v24:getNextOrder(),
                OnClick = v21.onDataConsentToggleClick,
                Selected = v21.dataSharingToggled,
                Size = UDim2.new(0, v22.toggle.buttonWidth, 0, v22.toggle.buttonHeight)
            }),
            DescriptionTextPane = v4.createElement(l_Pane_0, {
                AutomaticSize = Enum.AutomaticSize.Y,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                Layout = Enum.FillDirection.Vertical,
                LayoutOrder = v24:getNextOrder(),
                Spacing = v22.toggle.verticalTextSpacing
            }, {
                DescriptionText = v4.createElement(l_TextLabel_0, v2.join({
                    Text = v23:getText("AssetConfig", "ShareDataDescriptionText"),
                    AutomaticSize = Enum.AutomaticSize.XY,
                    HorizontalAlignment = Enum.HorizontalAlignment.Left,
                    LayoutOrder = v24:getNextOrder(),
                    MaxWidth = v22.MaxWidth,
                    TextWrapped = true
                }, v25)),
                LinkText = v4.createElement(l_TextWithLinks_0, {
                    AutomaticSize = Enum.AutomaticSize.Y,
                    HorizontalAlignment = Enum.HorizontalAlignment.Left,
                    LayoutOrder = v24:getNextOrder(),
                    LinkMap = {
                        ["[link1]"] = {
                            LinkText = v23:getText("AssetConfig", "ShareDataDescriptionLinkPreferences"),
                            LinkCallback = function()
                                l_BrowserService_0:OpenBrowserWindow(v8.CREATE_URL .. v19);
                            end
                        },
                        ["[link2]"] = {
                            LinkText = v23:getText("AssetConfig", "ShareDataDescriptionLinkLearnMore"),
                            LinkCallback = function()
                                l_BrowserService_0:OpenBrowserWindow(v8.CREATE_URL .. v20);
                            end
                        }
                    },
                    Text = v23:getText("AssetConfig", "ShareDataDescriptionLinks"),
                    TextProps = v25,
                    TextWrapped = true
                })
            })
        })
    });
end;


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.RoactRodux);
local v4 = require(l_Packages_0.Framework);
local v5 = require(l_Parent_0.Core.Util.Constants);
local l_ContextServices_0 = v4.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local v8 = require(l_Parent_0.Core.Components.RoundFrame);
local v9 = require(l_Parent_0.Core.Components.ImageWithDefault);
local v10 = v2.PureComponent:extend("DefaultThumbnailPreview");
v10.getName = function(v11)
    if v11.props.instances and #v11.props.instances > 0 then
        return v11.props.instances[1].Name;
    else
        return "";
    end;
end;
v10.render = function(v12)
    local l_props_0 = v12.props;
    local l_Stylizer_0 = l_props_0.Stylizer;
    local v15 = l_props_0.title or v12:getName();
    local v16 = true;
    if l_props_0.ShowTitle ~= nil then
        v16 = l_props_0.showTitle;
    end;
    local v17 = l_props_0.Position or UDim2.new(1, 0, 1, 0);
    local v18 = l_props_0.titleHeight or 24;
    return v2.createElement("Frame", {
        BackgroundTransparency = 1,
        Size = l_props_0.Size,
        Position = v17,
        LayoutOrder = l_props_0.LayoutOrder or 1
    }, {
        PreviewFrame = v2.createElement(v8, {
            BackgroundColor3 = l_Stylizer_0.thumbnailPreview.background,
            BorderColor3 = l_Stylizer_0.thumbnailPreview.border,
            Size = not not v16 and UDim2.new(1, 0, 1, -(v18 + (l_props_0.titlePadding or 12))) or UDim2.new(1, 0, 1, 0)
        }, {
            Thumbnail = v2.createElement(v9, {
                Size = UDim2.new(1, 0, 1, 0),
                BackgroundTransparency = 1,
                Image = "rbxasset://textures/StudioToolbox/Animation.png",
                defaultImage = ""
            })
        }),
        Title = v16 and v2.createElement("TextLabel", {
            Text = v15,
            Font = v5.FONT,
            TextSize = v5.FONT_SIZE_MEDIUM,
            TextColor3 = l_Stylizer_0.thumbnailPreview.text,
            Position = UDim2.new(0, 0, 1, -v18),
            Size = UDim2.new(1, 0, 0, v18),
            BackgroundTransparency = 1
        })
    });
end;
return v3.connect(function(v19, _)
    return {
        instances = (v19 or {}).instances
    };
end)((l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v10)));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local l_ContextServices_0 = require(l_Packages_0.Framework).ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local v5 = require(l_Parent_0.Core.Util.Constants);
local v6 = v2.PureComponent:extend("Header");
v6.render = function(v7)
    local l_props_0 = v7.props;
    return v2.createElement("Frame", {
        BackgroundTransparency = 1,
        Size = UDim2.new(1, 0, 0, 45)
    }, {
        UIPadding = v2.createElement("UIPadding", {
            PaddingLeft = UDim.new(0, -5)
        }),
        Header = v2.createElement("TextLabel", {
            BackgroundTransparency = 1,
            Font = v5.FONT,
            LayoutOrder = l_props_0.LayoutOrder or 1,
            Text = l_props_0.Title,
            TextColor3 = l_props_0.Stylizer.publishAsset.textColor,
            TextSize = 24,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Top,
            Size = UDim2.new(0, 0, 0, 45)
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v6));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local l_Util_0 = l_Parent_0.Core.Util;
local v5 = require(l_Util_0.Images);
local v6 = require(l_Util_0.Constants);
local v7 = require(l_Util_0.Urls);
local v8 = require(l_Util_0.Colors);
local l_ContextServices_0 = v3.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local v11 = v2.PureComponent:extend("ImagePicker");
local l_FONT_SIZE_MEDIUM_0 = v6.FONT_SIZE_MEDIUM;
local v13 = Vector2.new(512, 256);
v11.init = function(v14, _)
    v14.state = {
        hovered = false
    };
    v14.onMouseEnter = function(_, _, _)
        if v14.props.ChooseThumbnail then
            v14:setState({
                hovered = true
            });
        end;
    end;
    v14.onMouseLeave = function(_, _, _)
        v14:setState({
            hovered = false
        });
    end;
end;
v11.getStatus = function(v22)
    local l_state_0 = v22.state;
    local l_props_0 = v22.props;
    local l_IconFile_0 = l_props_0.IconFile;
    local l_ThumbnailStatus_0 = l_props_0.ThumbnailStatus;
    local l_hovered_0 = l_state_0.hovered;
    local _ = nil;
    local v29 = true;
    if l_ThumbnailStatus_0 ~= "Completed" then
        v29 = l_ThumbnailStatus_0 == nil;
    end;
    return if not l_IconFile_0 then if l_ThumbnailStatus_0 then l_props_0.Localization:getText("ThumbnailStatus", l_ThumbnailStatus_0) else "" else l_props_0.Localization:getText("AssetConfigPreview", "Preview"), not (l_hovered_0 or v29 and l_IconFile_0 == nil);
end;
v11.render = function(v30)
    local l_props_1 = v30.props;
    local l_state_1 = v30.state;
    local l_Size_0 = l_props_1.Size;
    local l_Position_0 = l_props_1.Position;
    local l_LayoutOrder_0 = l_props_1.LayoutOrder;
    local l_IconFile_1 = l_props_1.IconFile;
    local l_AssetId_0 = l_props_1.AssetId;
    local l_ChooseThumbnail_0 = l_props_1.ChooseThumbnail;
    local l_hovered_1 = l_state_1.hovered;
    local v40, v41 = v30:getStatus(l_props_1.Localization);
    local l_PLUGIN_TEMP_0 = v5.PLUGIN_TEMP;
    if not l_IconFile_1 then
        if l_AssetId_0 then
            l_PLUGIN_TEMP_0 = v7.constructAssetThumbnailUrl(l_AssetId_0, v6.ASSET_THUMBNAIL_REQUESTED_IMAGE_SIZE, v6.ASSET_THUMBNAIL_REQUESTED_IMAGE_SIZE);
        end;
    else
        l_PLUGIN_TEMP_0 = l_IconFile_1:GetTemporaryId();
    end;
    return v2.createElement("ImageButton", {
        Position = l_Position_0,
        Size = l_Size_0,
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        ClipsDescendants = true,
        Image = l_PLUGIN_TEMP_0,
        [v2.Event.Activated] = l_ChooseThumbnail_0,
        [v2.Event.MouseEnter] = v30.onMouseEnter,
        [v2.Event.mouseLeave] = v30.onMouseLeave,
        LayoutOrder = l_LayoutOrder_0
    }, {
        ChangeIndication = v2.createElement("ImageLabel", {
            Visible = l_hovered_1,
            AnchorPoint = Vector2.new(0, 1),
            Position = UDim2.new(0, 0, 1, 0),
            Size = UDim2.new(1, 0, 1.5, 0),
            Image = v5.GRADIENT,
            ImageColor3 = Color3.new(0, 0, 0),
            BackgroundTransparency = 1,
            ImageRectSize = v13
        }),
        StatusFrame = v41 and v2.createElement("Frame", {
            Position = UDim2.new(0, 0, 1, -40),
            Size = UDim2.new(1, 0, 0, 40),
            BackgroundColor3 = Color3.new(0, 0, 0),
            BackgroundTransparency = 0.5
        }, {
            Status = v2.createElement("TextLabel", {
                AnchorPoint = Vector2.new(0.5, 0.5),
                Size = UDim2.new(1, 0, 1, 0),
                Position = UDim2.new(0.5, 0, 0.5, 0),
                Text = v40,
                TextColor3 = v8.WHITE,
                TextSize = l_FONT_SIZE_MEDIUM_0,
                Font = v6.FONT,
                BackgroundTransparency = 1
            })
        }),
        ChangeLabel = l_hovered_1 and v2.createElement("TextLabel", {
            AnchorPoint = Vector2.new(0, 1),
            Position = UDim2.new(0, 0, 1, -15),
            Size = UDim2.new(1, 0, 0, 30),
            BackgroundTransparency = 1,
            Text = l_props_1.Localization:getText("AssetConfigPreview", "Change"),
            TextColor3 = v8.WHITE,
            TextSize = l_FONT_SIZE_MEDIUM_0,
            Font = v6.FONT,
            ZIndex = 2
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer,
    Localization = l_ContextServices_0.Localization
})(v11));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.Framework);
local v4 = require(l_Parent_0.Core.Util.Constants);
local l_ContextServices_0 = v3.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local l_GetTextSize_0 = v3.Util.GetTextSize;
local v8 = v2.PureComponent:extend("LinkButton");
v8.init = function(v9, v10)
    v9.state = {
        hovered = false
    };
    v9.onMouseEnter = function(_, _, _)
        v9:setState({
            hovered = true
        });
    end;
    v9.onMouseLeave = function(_, _, _)
        v9:setState({
            hovered = false
        });
    end;
    v9.onActivated = function(_)
        if v10.onActivated then
            v10.onActivated();
        end;
    end;
end;
v8.render = function(v18)
    local l_props_0 = v18.props;
    local l_state_0 = v18.state;
    local l_linkButton_0 = l_props_0.Stylizer.linkButton;
    local v22 = l_GetTextSize_0(l_props_0.Text, nil, nil, Vector2.new(9999, 9999));
    return v2.createElement("Frame", {
        Size = l_props_0.Size,
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        LayoutOrder = l_props_0.LayoutOrder
    }, {
        Link = v2.createElement("TextButton", {
            Size = UDim2.new(0, v22.X, 0, v22.Y),
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            Text = l_props_0.Text,
            TextSize = l_props_0.TextSize,
            Font = v4.FONT,
            TextScaled = true,
            TextColor3 = l_linkButton_0.textColor,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Center,
            [v2.Event.MouseEnter] = v18.onMouseEnter,
            [v2.Event.MouseLeave] = v18.onMouseLeave,
            [v2.Event.Activated] = v18.onActivated
        }, {
            UnderLine = l_state_0.hovered and v2.createElement("Frame", {
                AnchorPoint = Vector2.new(0, 1),
                Position = UDim2.new(0, 0, 1, 0),
                Size = UDim2.new(0, v22.X, 0, 1),
                BackgroundColor3 = l_linkButton_0.textColor,
                BorderSizePixel = 0
            })
        })
    });
end;
return (l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v8));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_RunService_0 = game:GetService("RunService");
local l_Packages_0 = l_Parent_0.Packages;
local v3 = require(l_Packages_0.Roact);
local l_UI_0 = require(l_Packages_0.Framework).UI;
local l_TextLabel_0 = l_UI_0.TextLabel;
local l_LoadingBar_0 = l_UI_0.LoadingBar;
local v7 = v3.Component:extend("LoadingBarWrapper");
v7.init = function(v8, _)
    v8:setState({
        progress = 0,
        time = 0
    });
end;
v7.loadUntil = function(v10, v11)
    while v10.state.progress < v11 do
        local v12 = l_RunService_0.RenderStepped:Wait();
        if v10.isMounted then
            local v13 = v10.state.time + v12;
            v10:setState({
                time = v13,
                progress = v13 / v10.props.loadingTime
            });
        else
            break;
        end;
    end;
end;
v7.didMount = function(v14)
    v14.isMounted = true;
    spawn(function()
        v14:loadUntil(v14.props.holdPercent);
        while v14.isMounted and v14.props.onFinish == nil do
            l_RunService_0.RenderStepped:Wait();
        end;
        v14:loadUntil(1);
        v14:loadUntil(1.5);
        if v14.isMounted then
            v14.props.onFinish();
        end;
    end);
end;
v7.willUnmount = function(v15)
    v15.isMounted = false;
end;
v7.render = function(v16)
    local l_props_0 = v16.props;
    local v18 = math.min(math.max(v16.state.progress, 0), 1);
    return v3.createElement("Frame", {
        BackgroundTransparency = 1,
        Size = l_props_0.Size,
        Position = l_props_0.Position
    }, {
        LoadingTitle = v3.createElement(l_TextLabel_0, {
            Position = UDim2.new(0, 0, 0, -30),
            Size = UDim2.new(1, 0, 0, 20),
            Text = l_props_0.loadingText .. " ( " .. math.floor(v18 * 100 + 0.5) .. "% )",
            TextXAlignment = Enum.TextXAlignment.Center,
            TextYAlignment = Enum.TextYAlignment.Center
        }),
        LoadingBar = v3.createElement(l_LoadingBar_0, {
            Progress = v18,
            Size = UDim2.new(1, 0, 1, 0)
        })
    });
end;
return v7;


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.RoactRodux);
local v4 = require(l_Parent_0.Core.Components.AssetConfiguration.OverrideAssetView);
local v5 = require(l_Parent_0.Core.Components.DropdownMenu);
local l_Util_0 = l_Parent_0.Core.Util;
local v7 = require(l_Util_0.Constants);
local v8 = require(l_Util_0.AssetConfigUtil);
local v9 = require(l_Util_0.getUserId);
local v10 = require(l_Util_0.AssetConfigConstants);
local v11 = require(l_Packages_0.Framework);
local l_DEPRECATED_TextInput_0 = v11.UI.DEPRECATED_TextInput;
local l_ContextServices_0 = v11.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local v15 = require(l_Parent_0.Core.ContextServices.NetworkContext);
local l_Requests_0 = l_Parent_0.Core.Networking.Requests;
local v17 = require(l_Requests_0.GetOverrideAssetRequest);
local v18 = require(l_Requests_0.GetAssetConfigManageableGroupsRequest);
local v19 = require(l_Parent_0.Core.Actions.UpdateAssetConfigStore);
local v20 = v2.PureComponent:extend("OverrideAsset");
v20.init = function(v21, _)
    v21.dropdownContent = {
        {
            name = "Me",
            creatorType = "User",
            creatorId = v9()
        }
    };
    v21.groupAdded = false;
    v21.state = {
        selectIndex = 1,
        selectItem = v21.dropdownContent[1],
        filterID = ""
    };
    v21.onFilterIDChanged = function(v23)
        v21:setState({
            filterID = v23
        });
    end;
    v21.onDropDownSelect = function(v24)
        local v25 = v21.dropdownContent[v24];
        v21.props.updateStore({
            fetchedAll = false,
            loadingPage = 0,
            overrideCursor = ""
        });
        v21.props.getOverrideAssets(v21.props.Network.networkInterface, v21.props.assetTypeEnum, v25.creatorType, v25.creatorId, 1);
        v21:setState({
            selectIndex = v24,
            selectItem = v25
        });
    end;
    v21.getOverrideAssetsFunc = function(v26)
        local l_selectItem_0 = v21.state.selectItem;
        v21.props.getOverrideAssets(v21.props.Network.networkInterface, v21.props.assetTypeEnum, l_selectItem_0.creatorType, l_selectItem_0.creatorId, v26);
    end;
end;
v20.didMount = function(v28)
    local v29 = v28.dropdownContent[1];
    v28.props.getOverrideAssets(v28.props.Network.networkInterface, v28.props.assetTypeEnum, v29.creatorType, v29.creatorId, 1);
    v28.props.getManageableGroups(v28.props.Network.networkInterface);
end;
v20.render = function(v30)
    local l_props_0 = v30.props;
    local l_state_0 = v30.state;
    local l_assetConfig_0 = l_props_0.Stylizer.assetConfig;
    local l_LayoutOrder_0 = l_props_0.LayoutOrder;
    local l_Size_0 = l_props_0.Size;
    local l_assetTypeEnum_0 = l_props_0.assetTypeEnum;
    local l_instances_0 = l_props_0.instances;
    local l_onOverrideAssetSelected_0 = l_props_0.onOverrideAssetSelected;
    local l_resultsArray_0 = l_props_0.resultsArray;
    local l_selectIndex_0 = l_state_0.selectIndex;
    v30.dropdownContent = v8.getOwnerDropDownContent(l_props_0.manageableGroups, l_props_0.Localization);
    local v41 = l_assetTypeEnum_0 == Enum.AssetType.Animation;
    local v42 = v41 and v10.FLOW_TYPE.DOWNLOAD_FLOW == l_props_0.screenFlowType;
    local l_filterID_0 = l_state_0.filterID;
    local v44 = false;
    if l_filterID_0 then
        v44 = utf8.len(l_filterID_0) > 10;
    end;
    return v2.createElement("Frame", {
        Size = l_Size_0,
        BackgroundTransparency = 1,
        BorderSizePixel = 0,
        LayoutOrder = l_LayoutOrder_0
    }, {
        UIPadding = v2.createElement("UIPadding", {
            PaddingBottom = UDim.new(0, 46),
            PaddingLeft = UDim.new(0, 24),
            PaddingRight = UDim.new(0, 24),
            PaddingTop = UDim.new(0, 46)
        }),
        UIListLayout = v2.createElement("UIListLayout", {
            FillDirection = Enum.FillDirection.Vertical,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            VerticalAlignment = Enum.VerticalAlignment.Top,
            SortOrder = Enum.SortOrder.LayoutOrder,
            Padding = UDim.new(0, 20)
        }),
        Title = v2.createElement("TextLabel", {
            Size = UDim2.new(1, 0, 0, 30),
            BackgroundTransparency = 1,
            BorderSizePixel = 0,
            Text = if not v42 then l_props_0.Localization:getText("AssetConfigFooter", "OverrideTitle") else l_props_0.Localization:getText("AssetConfigFooter", "ImportTitle"),
            Font = v7.FONT,
            TextSize = v7.FONT_SIZE_LARGE,
            TextColor3 = l_assetConfig_0.textColor,
            TextXAlignment = Enum.TextXAlignment.Left,
            TextYAlignment = Enum.TextYAlignment.Center,
            LayoutOrder = 1
        }),
        DropdownAndAnimationIdContainer = v41 and v2.createElement("Frame", {
            LayoutOrder = 2,
            BackgroundTransparency = 1,
            Size = UDim2.new(1, -20, 0, 40)
        }, {
            UIListLayout = v2.createElement("UIListLayout", {
                FillDirection = Enum.FillDirection.Horizontal,
                HorizontalAlignment = Enum.HorizontalAlignment.Left,
                VerticalAlignment = Enum.VerticalAlignment.Top,
                SortOrder = Enum.SortOrder.LayoutOrder,
                Padding = UDim.new(0, 20)
            }),
            DropdownMenu = v2.createElement(v5, {
                Size = UDim2.new(0, 336, 0, 40),
                selectedDropDownIndex = l_selectIndex_0,
                rowHeight = 40,
                items = v30.dropdownContent,
                onItemClicked = v30.onDropDownSelect,
                LayoutOrder = 1
            }),
            AnimationIdFilter = not v42 and v2.createElement("Frame", {
                Size = UDim2.new(1, -336, 0, 90),
                BackgroundTransparency = 1,
                BorderSizePixel = 0,
                LayoutOrder = 2
            }, {
                TextField = v2.createElement(l_DEPRECATED_TextInput_0, {
                    OnTextChanged = v30.onFilterIDChanged,
                    PlaceholderText = l_props_0.Localization:getText("AssetConfigAnimation", "FilterID"),
                    Size = UDim2.new(1, -v10.TITLE_GUTTER_WIDTH, 0, 40),
                    Style = not v44 and "FilledRoundedBorder" or "FilledRoundedRedBorder",
                    Text = l_filterID_0
                })
            })
        }),
        DropdownMenu = not v41 and v2.createElement(v5, {
            Size = UDim2.new(0, 336, 0, 40),
            selectedDropDownIndex = l_selectIndex_0,
            rowHeight = 40,
            items = v30.dropdownContent,
            onItemClicked = v30.onDropDownSelect,
            LayoutOrder = 2
        }),
        ScrollingItems = v2.createElement(v4, {
            Size = UDim2.new(1, 0, 1, -70),
            assetTypeEnum = l_assetTypeEnum_0,
            instances = l_instances_0,
            resultsArray = l_resultsArray_0,
            onOverrideAssetSelected = l_onOverrideAssetSelected_0,
            getOverrideAssets = v30.getOverrideAssetsFunc,
            filterID = l_state_0.filterID,
            LayoutOrder = 3
        })
    });
end;
return v3.connect(function(v45, _)
    v45 = v45 or {};
    return {
        totalResults = v45.totalResults,
        resultsArray = v45.resultsArray,
        manageableGroups = v45.manageableGroups or {},
        assetTypeEnum = v45.assetTypeEnum,
        screenFlowType = v45.screenFlowType
    };
end, function(v47)
    return {
        getOverrideAssets = function(v48, v49, v50, v51, v52)
            v47(v17(v48, v49, v50, v51, v52));
        end,
        getManageableGroups = function(v53)
            v47(v18(v53));
        end,
        updateStore = function(v54)
            v47(v19(v54));
        end
    };
end)((l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer,
    Localization = l_ContextServices_0.Localization,
    Network = v15
})(v20)));


local l_Parent_0 = script.Parent.Parent.Parent.Parent;
local l_Packages_0 = l_Parent_0.Packages;
local v2 = require(l_Packages_0.Roact);
local v3 = require(l_Packages_0.RoactRodux);
local v4 = require(l_Packages_0.Framework);
local l_Tooltip_0 = v4.UI.Tooltip;
local v6 = require(l_Parent_0.Core.Networking.Requests.MakeChangeRequest);
local l_Util_0 = l_Parent_0.Core.Util;
local v8 = require(l_Util_0.Constants);
local v9 = require(l_Util_0.Urls);
local v10 = require(l_Util_0.Images);
local v11 = require(l_Util_0.Colors);
local v12 = require(l_Util_0.AssetConfigConstants);
local v13 = require(l_Parent_0.Core.Components.InfiniteScrollingFrame);
local l_ContextServices_0 = v4.ContextServices;
local l_withContext_0 = l_ContextServices_0.withContext;
local v16 = v2.PureComponent:extend("OverrideAssetView");
v16.init = function(v17, v18)
    v17.state = {
        selectedAssetId = 0,
        pageIndex = 1,
        layoutContentSize = Vector2.new()
    };
    v17.newAssetInfo = {
        assetTypeEnum = v18.assetTypeEnum,
        instances = v18.instances
    };
    v17.layouterRef = v2.createRef();
    v17.onLayoutContentSizeChange = function(v19)
        v17:setState({
            layoutContentSize = v19.AbsoluteContentSize
        });
    end;
    v17.onAssetActivated = function(v20)
        local l_Id_0 = v20.Asset.Id;
        if l_Id_0 == v17.state.selectedAssetId then
            return ;
        else
            v18.onOverrideAssetSelected(l_Id_0);
            v17.props.makeChangeRequest(v12.OVERRIDE_ASSET_ID, v17.state.selectedAssetId, l_Id_0);
            v17:setState({
                selectedAssetId = l_Id_0
            });
            return ;
        end;
    end;
    v17.requestOverrideAsset = function()
        v18.getOverrideAssets(v17.state.pageIndex);
        v17:setState({
            pageIndex = v17.state.pageIndex + 1
        });
    end;
    v17.DEPRECATED_requestOverrideAsset = function(v22)
        v18.getOverrideAssets(v22);
        if v17.state.pageIndex ~= v22 then
            v17:setState({
                pageIndex = v22
            });
        end;
    end;
end;
v16.createAssets = function(v23, v24, v25)
    local l_assetConfig_0 = v25.assetConfig;
    local v27 = {
        UIPadding = v2.createElement("UIPadding", {
            PaddingBottom = UDim.new(0, 12),
            PaddingLeft = UDim.new(0, 1),
            PaddingRight = UDim.new(0, 1),
            PaddingTop = UDim.new(0, 12)
        }),
        UIGridLayout = v2.createElement("UIGridLayout", {
            FillDirection = Enum.FillDirection.Horizontal,
            HorizontalAlignment = Enum.HorizontalAlignment.Left,
            VerticalAlignment = Enum.VerticalAlignment.Top,
            SortOrder = Enum.SortOrder.LayoutOrder,
            CellPadding = UDim2.new(0, 24, 0, 26),
            CellSize = UDim2.new(0, 150, 0, 198),
            FillDirectionMaxCells = 4,
            StartCorner = Enum.StartCorner.TopLeft,
            [v2.Ref] = v23.layouterRef,
            [v2.Change.AbsoluteContentSize] = v23.onLayoutContentSizeChange
        })
    };
    local l_filterID_0 = v23.props.filterID;
    local l_selectedAssetId_0 = v23.state.selectedAssetId;
    for v30, v31 in pairs(v24) do
        local l_Id_1 = v31.Asset.Id;
        local v33 = v9.constructAssetThumbnailUrl(l_Id_1, v8.THUMBNAIL_SIZE_LARGE, v8.THUMBNAIL_SIZE_LARGE);
        local v34 = l_selectedAssetId_0 == l_Id_1;
        local _ = true;
        local v36 = true;
        if l_filterID_0 ~= "" then
            v36 = tostring(l_Id_1):find(l_filterID_0, 1, true);
        end;
        v27[l_Id_1] = v36 and v2.createElement("TextButton", {
            Size = v12.OverrideAssetItemSize,
            BorderSizePixel = 0,
            BackgroundTransparency = 1,
            Text = "",
            Font = v8.FONT,
            TextSize = v8.FONT_SIZE_MEDIUM,
            [v2.Event.Activated] = function(_)
                v23.onAssetActivated(v31);
            end,
            LayoutOrder = v30
        }, {
            UIListLayout = v2.createElement("UIListLayout"),
            Border = v2.createElement("Frame", {
                Size = UDim2.new(1, 0, 1, -48),
                BackgroundTransparency = 0,
                BackgroundColor3 = v11.WHITE,
                BorderSizePixel = 1,
                BorderColor3 = not not v34 and v11.BLUE_PRIMARY or v11.GRAY_3,
                LayoutOrder = 1
            }, {
                ThumbNail = v2.createElement("ImageLabel", {
                    Size = UDim2.new(1, 0, 1, 0),
                    Position = UDim2.new(0, 0, 0, 0),
                    BorderSizePixel = 1,
                    BackgroundTransparency = 1,
                    Image = v33
                }),
                CheckedIcon = v34 and v2.createElement("ImageLabel", {
                    Position = UDim2.new(0, 4, 0, 4),
                    Size = UDim2.new(0, 28, 0, 28),
                    BackgroundTransparency = 1,
                    BorderSizePixel = 0,
                    Image = v10.SELECTED_CHECK,
                    ImageColor3 = v11.BLUE_PRIMARY
                }),
                Tooltip = v2.createElement(l_Tooltip_0, {
                    Text = v31.Asset.Name
                }) or nil
            }),
            Title = v2.createElement("TextLabel", {
                Size = UDim2.new(1, 0, 0, 48),
                Text = v31.Asset.Name,
                Font = v8.FONT,
                TextColor3 = l_assetConfig_0.textColor,
                TextSize = v8.FONT_SIZE_MEDIUM,
                TextTruncate = Enum.TextTruncate.AtEnd,
                BorderSizePixel = 0,
                BackgroundTransparency = 1,
                LayoutOrder = 2
            }, {
                Tooltip = v2.createElement(l_Tooltip_0, {
                    Text = v31.Asset.Name
                }) or nil
            })
        });
    end;
    return v27;
end;
v16.render = function(v38)
    local l_props_0 = v38.props;
    local _ = v38.state;
    local l_Stylizer_0 = v38.props.Stylizer;
    return v2.createElement(v13, {
        Size = l_props_0.Size,
        BackgroundColor3 = l_Stylizer_0.publishAsset.backgroundColor,
        layouterRef = v38.layouterRef,
        nextPageFunc = v38.DEPRECATED_requestOverrideAsset,
        LayoutOrder = l_props_0.LayoutOrder
    }, (v38:createAssets(l_props_0.resultsArray or {}, l_Stylizer_0)));
end;
return v3.connect(nil, function(v42)
    return {
        makeChangeRequest = function(v43, v44, v45)
            v42(v6(v43, v44, v45));
        end
    };
end)((l_withContext_0({
    Stylizer = l_ContextServices_0.Stylizer
})(v16)));