Files
twitter-api-client/info/endpoints/endpoints.Topics.4ac8afea.js
Trevor Hobenshield 7ecd1f8fee update endpoints
2023-04-06 15:39:49 -07:00

1312 lines
46 KiB
JavaScript

(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Topics", "endpoints.Graphql"],
{
29848: (e) => {
e.exports = {
queryId: "G_SoES_bCGKA0vBP9wqbBA",
operationName: "BlockedAccountsAll",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
57274: (e) => {
e.exports = {
queryId: "NzkFGAxj1ta7VoS_GTvrVA",
operationName: "BlockedAccountsAutoBlock",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
2216: (e) => {
e.exports = {
queryId: "HIeW1copXiJKbmgJA5bqlw",
operationName: "BlockedAccountsImported",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
41839: (e) => {
e.exports = {
queryId: "xjJ7_nvN1nSB_z0VsPTG0Q",
operationName: "Followers",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97621: (e) => {
e.exports = {
queryId: "_k8HIrgtw_4dPtpby5UlpQ",
operationName: "FollowersYouKnow",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
87669: (e) => {
e.exports = {
queryId: "0C6NEkU0H0sw5Eyr6DBDfg",
operationName: "Following",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
75840: (e) => {
e.exports = {
queryId: "p_N1X293N-Yc4AaZxodghg",
operationName: "GenericTimelineById",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
50931: (e) => {
e.exports = {
queryId: "e4SHzfKKTiTlbIan4UmkVQ",
operationName: "ModeratedTimeline",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
59113: (e) => {
e.exports = {
queryId: "9PDaL6jFcBxn6BZ2ZgLVAw",
operationName: "MutedAccounts",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
67640: (e) => {
e.exports = {
queryId: "bHt6GL_e-1oKjqLABCx7NQ",
operationName: "NoteworthyAccountsPage",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
26491: (e) => {
e.exports = {
queryId: "t4U1Z1Jg1b7NXfqTJWdj_Q",
operationName: "SuperFollowers",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
80288: (e) => {
e.exports = {
queryId: "ElqSLWFmsPL4NlZI5e1Grg",
operationName: "TopicFollow",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
23523: (e) => {
e.exports = {
queryId: "PPbSAczT5QXVl1O1A4utYQ",
operationName: "TopicLandingPage",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
16909: (e) => {
e.exports = {
queryId: "cPCFdDAaqRjlMRYInZzoDA",
operationName: "TopicNotInterested",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
13153: (e) => {
e.exports = {
queryId: "4OUZZOonV2h60I0wdlQb_w",
operationName: "TopicByRestId",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
17326: (e) => {
e.exports = {
queryId: "dsH3d21Kv-GwI0myjSzMxw",
operationName: "TopicToFollowSidebar",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
65174: (e) => {
e.exports = {
queryId: "4tVnt6FoSxaX8L-mDDJo4Q",
operationName: "TopicUndoNotInterested",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
72338: (e) => {
e.exports = {
queryId: "srwjU6JM_ZKTj_QMfUGNcw",
operationName: "TopicUnfollow",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
60098: (e) => {
e.exports = {
queryId: "V26AriHWrgCrJoMf4osd9A",
operationName: "TopicsManagementPage",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
15454: (e) => {
e.exports = {
queryId: "d4lHCUxJCqQzusd-XsMcBw",
operationName: "TopicsPickerPage",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
46254: (e) => {
e.exports = {
queryId: "iegE4Bte-h3HMgdaOwrihw",
operationName: "TopicsPickerPageById",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
16221: (e) => {
e.exports = {
queryId: "za_brGx6mpNBSDSLaMPPqw",
operationName: "ViewerTeams",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
],
},
};
},
46131: (e) => {
e.exports = {
queryId: "iyatWXtZBW7-cV182iDz3g",
operationName: "ViewingOtherUsersTopicsPage",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_exclude_directive_enabled",
"verified_phone_label_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
"responsive_web_graphql_skip_user_profile_image_extensions_enabled",
"tweetypie_unmention_optimization_enabled",
"vibe_api_enabled",
"responsive_web_edit_tweet_api_enabled",
"graphql_is_translatable_rweb_tweet_is_translatable_enabled",
"view_counts_everywhere_api_enabled",
"longform_notetweets_consumption_enabled",
"tweet_awards_web_tipping_enabled",
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_richtext_consumption_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97534: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => Y,
errorBreadcrumb: () => z,
isFatalGenericTimelineError: () => H,
isFatalModeratedTimelineError: () => M,
isFatalTeamsResponseError: () => U,
isFatalUserScopedFollowTimelineError: () => E,
isFatalViewerScopedFollowTimelineError: () => j,
parseUserScopedTimeline: () => N,
parseViewerScopedTimeline: () => Z,
});
var n = t(58955),
i = t(79363),
a = t(72599),
r = t(32091),
o = t(17360),
l = t(83175),
s = t(6899),
d = t(49890);
const p = (e = []) => {
const _ = e.map(({ user_results: e, ..._ }) => {
var t;
let n;
if (
"User" ===
(null == e || null == (t = e.result) ? void 0 : t.__typename)
) {
const { __typename: _, ...t } = e.result;
n = t;
}
return { user: n, ..._ };
});
return (0, s.Fv)(_, d.Z);
};
var b = t(29848),
c = t.n(b),
u = t(57274),
w = t.n(u),
m = t(2216),
v = t.n(m),
h = t(41839),
g = t.n(h),
f = t(97621),
y = t.n(f),
q = t(87669),
x = t.n(q),
T = t(75840),
I = t.n(T),
k = t(50931),
P = t.n(k),
F = t(59113),
B = t.n(F),
L = t(26491),
Q = t.n(L),
A = t(16221),
S = t.n(A),
G = t(82249);
const N = (e) => {
var _;
let t = G.cY;
var n;
null != e &&
null != (_ = e.user) &&
_.result &&
"User" === e.user.result.__typename &&
(t =
(null == (n = e.user.result.timeline) ? void 0 : n.timeline) ||
G.cY);
return t;
},
z = (e) => {
var _;
return { code: null == (_ = e[0]) ? void 0 : _.code };
},
Z = (e) => {
let _ = G.cY;
var t;
null != e &&
e.viewer &&
(_ =
(null == (t = e.viewer.timeline) ? void 0 : t.timeline) || G.cY);
return _;
},
U = (e) =>
Array.isArray(e) &&
!(0, i.Z)(
e,
(e) =>
Array.isArray(e.path) &&
/^viewer.teams.act_as.\d+(.|$)/.test(e.path.join("."))
),
E = (e, _) => {
var t, n;
const i =
"User" ===
(null == _ || null == (t = _.user) || null == (n = t.result)
? void 0
: n.__typename) && _.user.result.timeline;
return (
i ||
(0, a.ZP)("GQL URT: Failed to render Follow timeline", {
extra: z(e),
}),
!i && (0, o.jB)(e)
);
},
j = (e, _) => {
var t;
const n = null == _ || null == (t = _.viewer) ? void 0 : t.timeline;
return (
n ||
(0, a.ZP)("GQL URT: Failed to render Subscriptions timeline", {
extra: z(e),
}),
!n && (0, o.jB)(e)
);
},
C = (e, _) => {
var t, n;
const i =
null == _ ||
null == (t = _.viewer) ||
null == (n = t.muting_timeline)
? void 0
: n.timeline;
return (
i ||
(0, a.ZP)("GQL URT: Failed to render Muting timeline", {
extra: z(e),
}),
!i && (0, o.jB)(e)
);
},
M = (e, _) => {
var t, n;
const i =
"Tweet" ===
(null == _ || null == (t = _.tweet.result)
? void 0
: t.__typename) &&
(null == (n = _.tweet.result.timeline_response)
? void 0
: n.timeline);
return (
i ||
(0, a.ZP)(
"GQL URT: Failed to render ModeratedTimeline timeline",
{ extra: z(e) }
),
!i && (0, o.jB)(e)
);
},
H = (e, _) => {
var t;
const n = null == _ || null == (t = _.timeline) ? void 0 : t.timeline;
return (
n ||
(0, a.ZP)("GQL URT: Failed to render GenericTimelineById", {
extra: z(e),
}),
!n && (0, o.jB)(e)
);
};
function V(e, _, t) {
let n;
function i(e) {
return (
e &&
e.viewer &&
e.viewer &&
e.viewer.timeline &&
e.viewer.timeline.timeline
);
}
return (
(n = e === r.kH.Imported ? v() : e === r.kH.AutoBlock ? w() : c()),
({ count: r, cursor: s }) =>
_.graphQL(
n,
{
count: r,
cursor: s,
includePromotedContent: !1,
...(0, l.d)(t),
withSafetyModeUserFields: t.isTrue(
"rito_safety_mode_features_enabled"
),
},
(_, t) => {
const n = i(t);
return (
n ||
(0, a.ZP)(
`GQL URT: Failed to query for Blocked Accounts [${e}]`,
{ extra: z(_) }
),
!n && (0, o.jB)(_)
);
}
).then((e) => i(e) || G.cY)
);
}
const Y = ({ apiClient: e, featureSwitches: _ }) => ({
fetchBlockedAccountsImportedGraphql: V(r.kH.Imported, e, _),
fetchBlockedAccountsAllGraphql: V(r.kH.All, e, _),
fetchBlockedAccountsAutoBlockGraphql: V(r.kH.AutoBlock, e, _),
fetchFollowers: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
g(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, l.d)(_),
},
E
)
.then(N),
fetchFollowersYouKnow: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
y(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, l.d)(_),
},
E
)
.then(N),
fetchFollowing: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
x(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, l.d)(_),
},
E
)
.then(N),
fetchSuperFollowers: ({ count: t, cursor: n }) =>
e
.graphQL(
Q(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, l.d)(_),
},
j
)
.then(Z),
fetchViewerTeams: () =>
e
.graphQLFullResponse(S(), { ...(0, l.S)(_) }, U)
.then(({ data: e, errors: _ }) => {
const { viewer: t } = e,
i = (t && t.teams && t.teams.act_as) || [];
if (!_ || !_.length) return i;
const a = (0, n.Z)(_.map((e) => e.path && e.path[3]));
return i.filter((e, _) => !a.has(_));
})
.then(p),
fetchModeratedTimeline: ({ count: t, cursor: n, rootTweetId: i }) =>
e
.graphQL(
P(),
{
rootTweetId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, l.d)(_),
},
M
)
.then((e) => {
var _;
if (
"Tweet" ===
(null == (_ = e.tweet.result) ? void 0 : _.__typename)
) {
var t, n;
return (
(null == (t = e.tweet.result) ||
null == (n = t.timeline_response)
? void 0
: n.timeline) || G.cY
);
}
return G.cY;
}),
fetchMutedAccounts: ({ count: t, cursor: n }) =>
e
.graphQL(
B(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, l.d)(_),
},
C
)
.then((e) => {
var _, t;
return (
(null == (_ = e.viewer) || null == (t = _.muting_timeline)
? void 0
: t.timeline) || G.cY
);
}),
fetchGenericTimelineById: ({ count: t, cursor: n, timelineId: i }) =>
e
.graphQL(
I(),
{
timelineId: i,
count: t,
cursor: n,
withQuickPromoteEligibilityTweetFields: !0,
...(0, l.d)(_),
},
H
)
.then((e) => {
var _;
return (null == (_ = e.timeline) ? void 0 : _.timeline) || G.cY;
}),
});
},
22836: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => K,
isFatalFetchOneTopicError: () => z,
isFatalFollowError: () => H,
isFatalNotInterestedError: () => G,
isFatalNoteworthyAccountsPageError: () => j,
isFatalTopicLandingPageError: () => C,
isFatalTopicsManagementPageError: () => Z,
isFatalTopicsPickerPageByIdError: () => E,
isFatalTopicsPickerPageError: () => U,
isFatalTopicsToFollowSidebarError: () => Y,
isFatalUndoNotInterestedError: () => N,
isFatalUnfollowError: () => V,
isFatalViewingOtherUsersTopicsPageError: () => M,
});
var n = t(6899),
i = t(72599),
a = t(17360),
r = t(83175),
o = t(67640),
l = t.n(o),
s = t(80288),
d = t.n(s),
p = t(23523),
b = t.n(p),
c = t(16909),
u = t.n(c),
w = t(13153),
m = t.n(w),
v = t(60098),
h = t.n(v),
g = t(15454),
f = t.n(g),
y = t(46254),
q = t.n(y),
x = t(17326),
T = t.n(x),
I = t(65174),
k = t.n(I),
P = t(72338),
F = t.n(P),
B = t(46131),
L = t.n(B),
Q = t(59990),
A = t(82249),
S = t(97534);
const G = (e, _) => {
var t;
const n = Boolean(
null == _ || null == (t = _.topic) ? void 0 : t.topic_id
);
return (
n || (0, i.ZP)("GQL Topic: Failed to set not_interested"),
!n && (0, a.jB)(e)
);
},
N = (e, _) => {
var t;
const n = Boolean(
null == _ || null == (t = _.topic) ? void 0 : t.topic_id
);
return (
n || (0, i.ZP)("GQL Topic: Failed to undo not_interested"),
!n && (0, a.jB)(e)
);
},
z = (e, _) => {
const t = null == _ ? void 0 : _.topic;
return (
t || (0, i.ZP)("GQL Topic: Failed to fetch Topic"),
!t && (0, a.jB)(e)
);
},
Z = (e, _) => {
var t, n;
const r =
null == _ ||
null == (t = _.viewer) ||
null == (n = t.topics_management_page)
? void 0
: n.body,
o =
(null == r ? void 0 : r.timeline) ||
((null == r ? void 0 : r.initialTimeline) &&
(null == r ? void 0 : r.initialTimeline.timeline.timeline));
return (
o ||
(0, i.ZP)(
"GQL Topic: Failed to query for Topics Management page"
),
!o && (0, a.jB)(e)
);
},
U = (e, _) => {
var t, n;
const r =
null == _ ||
null == (t = _.viewer) ||
null == (n = t.topics_picker_page)
? void 0
: n.body,
o =
(null == r ? void 0 : r.timeline) ||
((null == r ? void 0 : r.initialTimeline) &&
(null == r ? void 0 : r.initialTimeline.timeline.timeline));
return (
o || (0, i.ZP)("GQL Topic: Failed to query for Topics Picker page"),
!o && (0, a.jB)(e)
);
},
E = (e, _) => {
var t, n;
const r =
null == _ ||
null == (t = _.topic) ||
null == (n = t.topics_picker_page)
? void 0
: n.body,
o =
(null == r ? void 0 : r.timeline) ||
((null == r ? void 0 : r.initialTimeline) &&
(null == r ? void 0 : r.initialTimeline.timeline.timeline));
return (
o || (0, i.ZP)("GQL Topic: Failed to query for Topics Picker page"),
!o && (0, a.jB)(e)
);
},
j = (e, _) => {
var t, n;
const r =
null == _ ||
null == (t = _.topic_by_rest_id) ||
null == (n = t.noteworthy_accounts_page)
? void 0
: n.body,
o =
(null == r ? void 0 : r.timeline) ||
((null == r ? void 0 : r.initialTimeline) &&
(null == r ? void 0 : r.initialTimeline.timeline.timeline));
return (
o ||
(0, i.ZP)(
"GQL Topic: Failed to query for Noteworthy Accounts page"
),
!o && (0, a.jB)(e)
);
},
C = (e, _) => {
var t, n;
const r =
null == _ ||
null == (t = _.topic_by_rest_id) ||
null == (n = t.topic_page)
? void 0
: n.body,
o =
(null == r ? void 0 : r.timeline) ||
((null == r ? void 0 : r.initialTimeline) &&
(null == r ? void 0 : r.initialTimeline.timeline.timeline));
return (
o ||
(0, i.ZP)("GQL Topic: Failed to query for Topics Landing page"),
!o && (0, a.jB)(e)
);
},
M = (e, _) => {
var t, n;
const r =
"User" ===
(null == _ || null == (t = _.user) || null == (n = t.result)
? void 0
: n.__typename) &&
_.user.result.viewing_other_users_topics_page;
return (
r ||
(0, i.ZP)(
"GQL Topic: Failed to query for other users Topics Page"
),
!r && (0, a.jB)(e)
);
},
H = (e, _) => {
var t;
const n = Boolean(
null == _ || null == (t = _.topic) ? void 0 : t.topic_id
);
return (
n || (0, i.ZP)("GQL Topic: Failed to follow"), !n && (0, a.jB)(e)
);
},
V = (e, _) => {
var t;
const n = Boolean(
null == _ || null == (t = _.topic) ? void 0 : t.topic_id
);
return (
n || (0, i.ZP)("GQL Topic: Failed to unfollow"), !n && (0, a.jB)(e)
);
},
Y = (e, _) => {
const t =
_ &&
_.user &&
_.user.result &&
"User" === _.user.result.__typename &&
_.user.result.timeline;
return (
t ||
(0, i.ZP)("GQL URT: Failed to render Topic follow timeline", {
extra: (0, S.errorBreadcrumb)(e),
}),
!t && (0, a.jB)(e)
);
},
K = ({ apiClient: e, featureSwitches: _ }) => ({
fetchTopicLandingPage(t, n) {
const { cursor: i, data_lookup_id: a, topicId: o } = t;
return e
.graphQL(
b(),
{
rest_id: o,
cursor: i,
context: JSON.stringify({ data_lookup_id: a }),
...(0, r.d)(_),
},
C
)
.then((e) => {
var _;
const t =
null == e || null == (_ = e.topic_by_rest_id)
? void 0
: _.topic_page;
return null != t && t.body ? t : A.ln;
});
},
fetchTopicsManagementPage(t, n = {}) {
const { cursor: i } = t;
return e
.graphQL(h(), { cursor: i, ...(0, r.d)(_) }, Z)
.then((e) => {
var _;
const t =
null == e || null == (_ = e.viewer)
? void 0
: _.topics_management_page;
return null != t && t.body ? t : A.ln;
});
},
fetchOneTopic(_, t = {}) {
const { topicId: i } = _;
return e
.graphQL(m(), { topicId: i }, z)
.then((e) => (0, n.Fv)(e.topic, Q.Z));
},
fetchTopicsPickerPage(t, n = {}) {
const { topicId: i } = t;
return i && "home" !== i
? e.graphQL(q(), { topicId: i, ...(0, r.d)(_) }, E).then((e) => {
var _;
const t =
null == e || null == (_ = e.topic)
? void 0
: _.topics_picker_page;
return null != t && t.body ? t : A.ln;
})
: e.graphQL(f(), { ...(0, r.d)(_) }, U).then((e) => {
var _;
const t =
null == e || null == (_ = e.viewer)
? void 0
: _.topics_picker_page;
return null != t && t.body ? t : A.ln;
});
},
fetchViewingOtherUsersTopicsPagePage(t, n = {}) {
const { context: i, cursor: a, userId: o } = t;
return e
.graphQL(
L(),
{ userId: o, cursor: a, context: i, ...(0, r.d)(_) },
M
)
.then((e) => {
var _, t, n;
return "User" ===
(null == e || null == (_ = e.user) || null == (t = _.result)
? void 0
: t.__typename) &&
e.user.result.viewing_other_users_topics_page &&
null != (n = e.user.result.viewing_other_users_topics_page) &&
n.body
? e.user.result.viewing_other_users_topics_page
: A.ln;
});
},
fetchNoteworthyAccountsPage(t, n) {
const { cursor: i, topicId: a } = t;
return e
.graphQL(l(), { rest_id: a, cursor: i, ...(0, r.d)(_) }, j)
.then((e) => {
var _;
const t =
null == e || null == (_ = e.topic_by_rest_id)
? void 0
: _.noteworthy_accounts_page;
return null != t && t.body ? t : A.ln;
});
},
follow(_, t = {}) {
const { topicId: n } = _;
return e.graphQL(d(), { topicId: n }, H);
},
unfollow(_, t = {}) {
const { topicId: n } = _;
return e.graphQL(F(), { topicId: n }, V);
},
notInterested(_, t = {}) {
const { topicId: n } = _;
return e.graphQL(u(), { topicId: n }, G);
},
undoNotInterested(_, t = {}) {
const { topicId: n } = _;
return e.graphQL(k(), { topicId: n }, N);
},
fetchTopicsToFollowSidebar(t, n = {}) {
const { userId: i } = t;
return e
.graphQL(T(), { userId: i, ...(0, r.d)(_) }, Y)
.then(S.parseUserScopedTimeline);
},
});
},
49890: (e, _, t) => {
"use strict";
t.d(_, { B: () => r, Z: () => o });
var n = t(6899),
i = t(46395),
a = t(90650);
const r = new n.fK.Entity(
"teams",
{ user: a.Z },
{
idAttribute: ({ user: e }) => e[a.Z.idAttribute] || e,
processStrategy: i.Z,
}
),
o = new n.fK.Array(r);
},
32091: (e, _, t) => {
"use strict";
t.d(_, { Gm: () => l, ZH: () => s, kH: () => o });
var n = t(78772),
i = t(52612),
a = t(57659),
r = t(62104);
const o = { All: "any", AutoBlock: "autoblock", Imported: "imported" },
l = (e) =>
(0, r.Z)({
timelineId: `blockedAccountsGraphQL-${e}`,
network: {
getEndpoint: (_) =>
e === o.Imported
? _.Graphql.fetchBlockedAccountsImportedGraphql
: e === o.AutoBlock
? _.Graphql.fetchBlockedAccountsAutoBlockGraphql
: _.Graphql.fetchBlockedAccountsAllGraphql,
getEndpointParams: ({ count: e, cursor: _ }) => ({
count: e,
cursor: "string" == typeof _ ? _ : void 0,
}),
},
context: "FETCH_BLOCKED_ACCOUNTS",
perfKey: "blockedAccountsGraphQL",
formatResponse: n.Z,
}),
s = (e) => (_, t) => {
const n = t();
_(
e
.selectEntries(n)
.filter((e) => {
if (!e.content || e.type !== i.ZP.User) return !1;
const _ = e.content.id,
t = a.ZP.select(n, _);
return t && !t.blocking;
})
.map((_) => e.removeEntry(_.entryId))
);
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Topics.4ac8afea.js.map