// Module ID: 13408 // Function ID: 13409 // Name: useGuildSettingsPickerFeature // Dependencies: [32, 19, 4024, 13409, 13410, 1236, 589, 2] // Exports: useGuildSettingsPickerFeature // Module 13408 (useGuildSettingsPickerFeature) import initialize from "initialize" /* 589 */; import getSystemLocale from "getSystemLocale" /* 1236 */; import _modDef13409 from "module_13409" /* 13409 */; import _modDef13410 from "module_13410" /* 13410 */; import closure_2 from "_slicedToArray" /* 32 */; import closure_3 from "noop" /* 19 */; import closure_4 from "getUncachedChannelPermissions" /* 4024 */; require = arg1; let obj = { "server-subscriptions-onboarding": _modDef13409, "server-subscriptions-create-tier-from-template": _modDef13410 }; let closure_6 = { title() { const intl = getSystemLocale.intl; return intl.string(getSystemLocale.t.V42OaH); }, description() { const intl = getSystemLocale.intl; return intl.string(getSystemLocale.t["7dJ16X"]); }, selectGuildCta() { const intl = getSystemLocale.intl; return intl.string(getSystemLocale.t.LhlgY9); }, createGuildDescription() { const intl = getSystemLocale.intl; return intl.string(getSystemLocale.t.anOisx); }, createGuildCta() { const intl = getSystemLocale.intl; return intl.string(getSystemLocale.t.B44MTm); }, canCreateGuild: true, useIsGuildSupported() { const items = [closure_4]; return initialize.useStateFromStores(items, () => (guild) => closure_4.canAccessGuildSettings(guild), [], initialize.statesWillNeverBeEqual); } }; const result = require("set").fileFinishedImporting("modules/guild_settings_picker/GuildSettingsPickerFeatures.tsx"); export const useGuildSettingsPickerFeature = function useGuildSettingsPickerFeature(feature) { let tmp2; if (null != feature) { tmp2 = obj[feature]; } let first = callback(React.useState(tmp2), 1)[0]; closure_0 = closure_6.useIsGuildSupported(); let isGuildSupported; if (first != null) { const useIsGuildSupported = first.useIsGuildSupported; if (useIsGuildSupported != null) { isGuildSupported = useIsGuildSupported(); } } obj = {}; const merged = Object.assign(closure_6); if (first == null) { first = {}; } const merged1 = Object.assign(first); obj = { title: obj.title(), description: obj.description(), selectGuildCta: obj.selectGuildCta(), createGuildDescription: obj.createGuildDescription(), createGuildCta: obj.createGuildCta(), canCreateGuild: obj.canCreateGuild, isGuildSupported(arg0, arg1) { let tmp = callback(arg0, arg1); if (tmp) { let tmp3; if (isGuildSupported != null) { tmp3 = isGuildSupported(arg0, arg1); } tmp = false !== tmp3; } return tmp; } }; return obj; };