formatting/remove js files

This commit is contained in:
trevor hobenshield
2023-04-16 17:44:13 -07:00
parent 0550fa3152
commit 72e3d2b024
83 changed files with 0 additions and 26302 deletions

View File

@@ -1,305 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.AaProxy"],
{
94529: (t, e, n) => {
n.r(e), n.d(e, { default: () => r });
n(6886);
var o = n(18619);
const a = (0, n(58955).Z)([
"US",
"IE",
"GB",
"CA",
"ZA",
"IL",
"ES",
"FR",
"JP",
"BE",
"LU",
"NL",
"IT",
"AR",
"CL",
"CO",
"EC",
"GT",
"MX",
"PE",
"AU",
"NZ",
"SG",
"PA",
"DK",
"FI",
"NO",
"SE",
"DE",
"AT",
"CH",
"LI",
"ID",
"BR",
"AF",
"AL",
"DZ",
"AS",
"AD",
"AO",
"AI",
"AQ",
"AG",
"AM",
"AW",
"AZ",
"BS",
"BH",
"BD",
"BB",
"BY",
"BZ",
"BJ",
"BM",
"BT",
"BQ",
"IO",
"VG",
"BN",
"BG",
"BF",
"BI",
"KH",
"CM",
"CV",
"KY",
"CF",
"TD",
"CX",
"CC",
"KM",
"CK",
"CR",
"CI",
"HR",
"CW",
"CY",
"CZ",
"CD",
"DM",
"DO",
"EG",
"SV",
"ER",
"EE",
"ET",
"FK",
"FO",
"FJ",
"GF",
"TF",
"GA",
"GM",
"GE",
"GI",
"GR",
"GL",
"GD",
"GP",
"GU",
"GG",
"GN",
"GW",
"GY",
"HT",
"HM",
"HN",
"HK",
"HU",
"IS",
"IN",
"IQ",
"IM",
"JM",
"JE",
"JO",
"KZ",
"KE",
"KI",
"KW",
"LA",
"LV",
"LB",
"LR",
"LY",
"LI",
"LT",
"MO",
"MK",
"MG",
"MW",
"MY",
"MV",
"ML",
"MT",
"MH",
"MQ",
"MR",
"YT",
"MD",
"MC",
"MN",
"ME",
"MS",
"MZ",
"NA",
"NR",
"NP",
"NC",
"NI",
"NE",
"NG",
"NU",
"NF",
"MP",
"PK",
"PW",
"PS",
"PG",
"PY",
"PH",
"PN",
"PL",
"PT",
"QA",
"CG",
"RE",
"RO",
"RW",
"BL",
"SH",
"KN",
"LC",
"PM",
"VC",
"WS",
"SM",
"ST",
"SA",
"SN",
"RS",
"SC",
"SL",
"SB",
"SO",
"GS",
"LK",
"SR",
"SJ",
"SZ",
"TJ",
"TZ",
"TH",
"TL",
"TG",
"TK",
"TO",
"TT",
"TR",
"TM",
"TC",
"TV",
"UG",
"UA",
"AE",
"UM",
"UY",
"UZ",
"VU",
"VA",
"VE",
"VI",
"WF",
"EH",
"YE",
"ZM",
"ZW",
]),
i = "https://aa.twitter.com",
r = ({ apiClient: t, featureSwitches: e }) => ({
getTargetableLocations: ({
countryCode: e,
lang: n,
locationType: r,
}) =>
t
.getUnversioned(
"/12/targeting_criteria/locations",
{ location_type: r, lang: (0, o.Z)(n), country_code: e },
{},
i
)
.then((t) => t.data)
.then((t) => t.filter((t) => a.has(t.country_code))),
getQueriedTargetableLocations: ({
countryCode: e,
lang: n,
locationType: r,
query: c,
}) =>
t
.getUnversioned(
"/12/targeting_criteria/locations",
{ q: c, location_type: r, lang: (0, o.Z)(n), country_code: e },
{},
i
)
.then((t) => t.data)
.then(([t]) => [
{
...t,
locations: t.locations.filter((t) => a.has(t.country_code)),
},
]),
});
},
18619: (t, e, n) => {
n.d(e, { Z: () => i, d: () => o });
const o = (t, e) => ({
REQUEST: `${t}/${e}/REQUEST`,
SUCCESS: `${t}/${e}/SUCCESS`,
FAILURE: `${t}/${e}/FAILURE`,
}),
a = [
"ar",
"da",
"de",
"en",
"es",
"fi",
"fil",
"fr",
"id",
"it",
"ja",
"ko",
"nl",
"no",
"pt",
"ru",
"sv",
"th",
"tr",
"zh-cn",
"zh-tw",
];
function i(t) {
const e = t.toLowerCase();
if (a.includes(e)) return e;
return a.find((t) => t.includes(e) || e.includes(t)) || "en";
}
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.AaProxy.8577b5ba.js.map

View File

@@ -1,22 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Account"],
{
14287: (t, e, s) => {
s.r(e), s.d(e, { default: () => a });
const a = ({ apiClient: t, featureSwitches: e }) => ({
disassociateAccount: (e = {}, s = {}) =>
t.post(
"account/not_my_account/disassociate",
e,
{},
{ ...s, "content-type": "application/json" }
),
getMaskedData: (e = {}, s = {}) =>
t.get("account/not_my_account/get_masked_data", e, s),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Account.cd57e96a.js.map

View File

@@ -1,780 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.AccountTaxonomy", "endpoints.Graphql"],
{
29848: (e) => {
e.exports = {
queryId: "h52d1F7dumWGE1tJAhQBpg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
57274: (e) => {
e.exports = {
queryId: "8w-D2OhT0jmGzXaNY--UQA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
2216: (e) => {
e.exports = {
queryId: "8LDNeOEm0kA98uoDsqXvMg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
29297: (e) => {
e.exports = {
queryId: "_ckHEj05gan2VfNHG6thBA",
operationName: "DisableUserAccountLabel",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
41839: (e) => {
e.exports = {
queryId: "JpFFCTBPxYVlDqMUr9twzQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97621: (e) => {
e.exports = {
queryId: "RvojYJJB90VwJ0rdVhbjMQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
87669: (e) => {
e.exports = {
queryId: "b22I8WSfQ8H4Ev8486xAlQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
75840: (e) => {
e.exports = {
queryId: "LZfAdxTdNolKXw6ZkoY_kA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
50931: (e) => {
e.exports = {
queryId: "hnaqw2Vok5OETdBVa_uexw",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
59113: (e) => {
e.exports = {
queryId: "-G9eXTmseyiSenbqjrEG6w",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
26491: (e) => {
e.exports = {
queryId: "o0YtPFnd4Lk_pOQb9alCvA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
51659: (e) => {
e.exports = {
queryId: "rD5gLxVmMvtdtYU1UHWlFQ",
operationName: "UserAccountLabel",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
16221: (e) => {
e.exports = {
queryId: "D8mVcJSVv66_3NcR7fOf6g",
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",
],
},
};
},
95901: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => b,
isDisableUserAccountLabelFail: () => p,
isFetchFail: () => d,
});
var n = t(72599),
i = t(17360),
a = t(29297),
r = t.n(a),
l = t(51659),
o = t.n(l),
s = t(97534);
const d = (e, _) => {
var t;
return (
(null == _ || null == (t = _.user) ? void 0 : t.result) ||
(0, n.ZP)(
"GQL AccountTaxonomy: Failed to load User Account Label",
{ extra: (0, s.errorBreadcrumb)(e) }
),
(0, i.jB)(e)
);
},
p = (e, _) => (
(null == _ ? void 0 : _.disable_user_account_label) ||
(0, n.ZP)(
"GQL AccountTaxonomy: Failed to load Disable User Account Status",
{ extra: (0, s.errorBreadcrumb)(e) }
),
(0, i.jB)(e)
),
b = ({ apiClient: e, featureSwitches: _ }) => ({
fetchUserAccountLabel: ({ userId: _ }) =>
e.graphQL(o(), { rest_id: _ }, d),
disableUserAccountLabel: () => e.graphQL(r(), {}, p),
});
},
97534: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => M,
errorBreadcrumb: () => Z,
isFatalGenericTimelineError: () => V,
isFatalModeratedTimelineError: () => j,
isFatalTeamsResponseError: () => E,
isFatalUserScopedFollowTimelineError: () => N,
isFatalViewerScopedFollowTimelineError: () => C,
parseUserScopedTimeline: () => z,
parseViewerScopedTimeline: () => P,
});
var n = t(58955),
i = t(79363),
a = t(72599),
r = t(32091),
l = t(17360),
o = 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),
h = t.n(m),
v = t(41839),
f = t.n(v),
g = t(97621),
y = t.n(g),
q = t(87669),
x = t.n(q),
A = t(75840),
k = t.n(A),
T = t(50931),
B = t.n(T),
F = t(59113),
I = t.n(F),
L = t(26491),
G = t.n(L),
Q = t(16221),
S = t.n(Q),
U = t(82249);
const z = (e) => {
var _;
let t = U.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) ||
U.cY);
return t;
},
Z = (e) => {
var _;
return { code: null == (_ = e[0]) ? void 0 : _.code };
},
P = (e) => {
let _ = U.cY;
var t;
null != e &&
e.viewer &&
(_ =
(null == (t = e.viewer.timeline) ? void 0 : t.timeline) || U.cY);
return _;
},
E = (e) =>
Array.isArray(e) &&
!(0, i.Z)(
e,
(e) =>
Array.isArray(e.path) &&
/^viewer.teams.act_as.\d+(.|$)/.test(e.path.join("."))
),
N = (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, l.jB)(e)
);
},
C = (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, l.jB)(e)
);
},
Y = (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, l.jB)(e)
);
},
j = (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, l.jB)(e)
);
},
V = (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, l.jB)(e)
);
};
function H(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 ? h() : e === r.kH.AutoBlock ? w() : c()),
({ count: r, cursor: s }) =>
_.graphQL(
n,
{
count: r,
cursor: s,
includePromotedContent: !1,
...(0, o.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, l.jB)(_)
);
}
).then((e) => i(e) || U.cY)
);
}
const M = ({ apiClient: e, featureSwitches: _ }) => ({
fetchBlockedAccountsImportedGraphql: H(r.kH.Imported, e, _),
fetchBlockedAccountsAllGraphql: H(r.kH.All, e, _),
fetchBlockedAccountsAutoBlockGraphql: H(r.kH.AutoBlock, e, _),
fetchFollowers: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
f(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
N
)
.then(z),
fetchFollowersYouKnow: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
y(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
N
)
.then(z),
fetchFollowing: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
x(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
N
)
.then(z),
fetchSuperFollowers: ({ count: t, cursor: n }) =>
e
.graphQL(
G(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
C
)
.then(P),
fetchViewerTeams: () =>
e
.graphQLFullResponse(S(), { ...(0, o.S)(_) }, E)
.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(
B(),
{
rootTweetId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
j
)
.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) || U.cY
);
}
return U.cY;
}),
fetchMutedAccounts: ({ count: t, cursor: n }) =>
e
.graphQL(
I(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
Y
)
.then((e) => {
var _, t;
return (
(null == (_ = e.viewer) || null == (t = _.muting_timeline)
? void 0
: t.timeline) || U.cY
);
}),
fetchGenericTimelineById: ({ count: t, cursor: n, timelineId: i }) =>
e
.graphQL(
k(),
{
timelineId: i,
count: t,
cursor: n,
withQuickPromoteEligibilityTweetFields: !0,
...(0, o.d)(_),
},
V
)
.then((e) => {
var _;
return (null == (_ = e.timeline) ? void 0 : _.timeline) || U.cY;
}),
});
},
49890: (e, _, t) => {
"use strict";
t.d(_, { B: () => r, Z: () => l });
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,
}
),
l = new n.fK.Array(r);
},
32091: (e, _, t) => {
"use strict";
t.d(_, { Gm: () => o, ZH: () => s, kH: () => l });
var n = t(78772),
i = t(52612),
a = t(57659),
r = t(62104);
const l = { All: "any", AutoBlock: "autoblock", Imported: "imported" },
o = (e) =>
(0, r.Z)({
timelineId: `blockedAccountsGraphQL-${e}`,
network: {
getEndpoint: (_) =>
e === l.Imported
? _.Graphql.fetchBlockedAccountsImportedGraphql
: e === l.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.AccountTaxonomy.27bb991a.js.map

View File

@@ -1,42 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.AccountVerification"],
{
91976: (e, t, n) => {
n.r(t), n.d(t, { default: () => i });
const i = ({ apiClient: e, featureSwitches: t }) => ({
fetchAccess: (t = {}, n = {}) =>
e.getUnversioned("/verify/1.0/access", t, n),
fetchAccountEligibility: (t = {}, n = {}) =>
e.getUnversioned("/verify/1.0/account-eligibility", t, n),
fetchAccountViolations: (t = {}, n = {}) =>
e.getUnversioned("/verify/1.0/badge-violation/violations", t, n),
fetchAuthenticationResult: (t = {}, n = {}) =>
e.getUnversioned("/verify/1.0/id-document", t, n),
fetchBadgeViolations: (t = {}, n = {}) =>
e.getUnversioned("/verify/1.0/badge-violation", t, n),
fetchDocumentFormats: (t = {}, n = {}) =>
e.getUnversioned("/verify/1.0/document-formats", t, n),
verifyAccount: (t, n = {}) =>
e.postUnversioned("/verify/1.0/intake", t, {
...n,
"content-type": "application/json",
}),
verifyIdDocument(t, n = {}) {
const i = { ...n, "content-type": "multipart/form-data" },
{ backImage: o, country: c, frontImage: r, idType: a } = t,
s = new FormData();
return (
a && s.append("id_type", a),
c && s.append("country", c),
o && s.append("back", o),
r && s.append("front", r),
e.postUnversioned("/verify/1.0/id-document", s, i)
);
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.AccountVerification.8eac276a.js.map

View File

@@ -1,22 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Ads"],
{
9060: (e, t, s) => {
s.r(t), s.d(t, { default: () => a });
const a = ({ apiClient: e, featureSwitches: t }) => ({
createLocalId: (t) =>
e
.postUnversioned(
"/12/measurement/dcm_local_id",
t,
{},
"https://ads-api.twitter.com"
)
.then((e) => e.data),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Ads.c4fc22ea.js.map

View File

@@ -1,28 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.ArticleDomains"],
{
79676: (e) => {
e.exports = {
queryId: "88Bu08U2ddaVVjKmmXjVYg",
operationName: "articleNudgeDomains",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
65660: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => n });
var a = r(79676),
i = r.n(a);
const n = ({ apiClient: e, featureSwitches: t }) => ({
fetchArticleDomainsGraphQL: () =>
e.graphQL(i(), {}).then((e) => {
var t;
return null == (t = e.viewer) ? void 0 : t.article_nudge_domains;
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.ArticleDomains.3b7fc81a.js.map

View File

@@ -1,385 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.AudioSpaces"],
{
78111: (e) => {
e.exports = {
queryId: "QB5okPsUwVP3TefHBFItnw",
operationName: "AudioSpaceById",
operationType: "query",
metadata: {
featureSwitches: [
"spaces_2022_h2_clipping",
"spaces_2022_h2_spaces_communities",
"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",
"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",
"responsive_web_graphql_timeline_navigation_enabled",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
52546: (e) => {
e.exports = {
queryId: "NTq79TuSz6fHj8lQaferJw",
operationName: "AudioSpaceSearch",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
28119: (e) => {
e.exports = {
queryId: "Sxn4YOlaAwEKjnjWV0h7Mw",
operationName: "SubscribeToScheduledSpace",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
88997: (e) => {
e.exports = {
queryId: "Zevhh76Msw574ZSs2NQHGQ",
operationName: "UnsubscribeFromScheduledSpace",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
27260: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => I });
r(71372), r(6886);
var s = r(72599),
i = r(83175),
n = (r(36728), r(14983)),
a = r.n(n),
o = r(59124),
l = r(90968),
u = r(36002),
_ = r(38269),
c = r(26178),
d = r(12006);
function p(e) {
var t, r, s, i;
a()(e, "audioSpace is required");
const { metadata: n, participants: l, sharings: d, ...p } = e;
a()(n, "metadata is required");
const { rest_id: f, state: b } = n;
a()(f, "rest_id is required"), a()(b, "state is required");
const y = (function (e) {
if (e && e.result && "Community" === e.result.__typename) {
const { __typename: t, rest_id: r, ...s } = e.result,
{ custom_theme: i, default_theme: n, name: a } = s,
l = o.Z.getCommunityTheme(i || n),
u = o.Z.getCommunityBackgroundColor(l),
c = (0, _.Wb)(s),
d = (0, _.TB)(s),
p = c || d;
return {
rest_id: r,
color: u,
name: a,
image_url: null == p ? void 0 : p.url,
};
}
})(n.community_results),
v = (function (e, t) {
const r = null == e ? void 0 : e.total,
s = h(null == e ? void 0 : e.admins, t),
i = h(null == e ? void 0 : e.speakers, t),
n = h(null == e ? void 0 : e.listeners, t);
return { total: r, admins: s, speakers: i, listeners: n };
})(l, y),
w = (function (e) {
if (!e) return [];
return e.items
.map((e) => {
var t;
const r = m(null == (t = e.user_results) ? void 0 : t.result),
s = e.shared_item;
if ("AudioSpaceSharedTweet" === s.__typename) {
var i, n;
if (
"Tweet" ===
(null == (i = s.tweet_results) || null == (n = i.result)
? void 0
: n.__typename)
) {
var a;
const { __typename: t, ...i } =
(null == (a = s.tweet_results) ? void 0 : a.result) ||
{},
n = (0, c.y9)(i);
if (n) {
const { cards: t, tweets: s, users: i } = n.entities,
a = (0, u.F)(s, t, i, n.result);
if (a) return { id: e.sharing_id, user: r, tweet: a };
}
}
return null;
}
return null;
})
.filter(Boolean);
})(d),
g = m(null == (t = n.creator_results) ? void 0 : t.result),
S = null == g ? void 0 : g.screen_name,
q =
null == g || null == (r = g.profile_image_extensions_media_color)
? void 0
: r.palette,
{ cohosts: T, host: I } = (function (e, t) {
let r;
const s = [];
t
? e.admins.forEach((e) => {
e.twitter_screen_name === t ? (r = e) : s.push(e);
})
: (r = e.admins[0]);
return { host: r, cohosts: s };
})(v, S);
return (
a()(I, "host is required"),
{
...p,
...n,
rest_id: f,
state: b,
host: I,
hostPalette: q,
cohosts: T,
participants: v,
sharings: w,
ended_at: n.ended_at ? parseInt(n.ended_at, 10) : void 0,
total_live_listeners: null != (s = n.total_live_listeners) ? s : 0,
total_replay_watched: null != (i = n.total_replay_watched) ? i : 0,
community: y,
}
);
}
function h(e, t) {
return e
? e.map(({ user_results: e, ...r }) => {
const s = {
...r,
user_id: null == e ? void 0 : e.rest_id,
community: void 0,
has_nft_avatar: void 0,
is_blue_verified: void 0,
verified_type: void 0,
highlightedLabel: void 0,
};
if (t) {
const e = t.color,
i = Boolean(
r.community_role && r.community_role !== l.WW.NonMember
);
s.community = { color: e, isMember: i };
}
var i, n;
null != e &&
e.result &&
"User" === e.result.__typename &&
((s.is_blue_verified = e.result.is_blue_verified),
(s.has_nft_avatar = e.result.has_nft_avatar),
(s.is_blue_verified = e.result.is_blue_verified),
(s.verified_type =
null == (i = e.result.legacy) ? void 0 : i.verified_type),
(s.highlightedLabel = (0, d.H)(
null ==
(n = e.result.identity_profile_labels_highlighted_label)
? void 0
: n.label
)));
return s;
})
: [];
}
function m(e) {
if (e && "User" === e.__typename) {
const { __typename: t, ...r } = e,
s = (0, c.Hy)(r);
if (s) return s.entities.users[s.result];
}
return null;
}
var f = r(78111),
b = r.n(f),
y = r(52546),
v = r.n(y),
w = r(28119),
g = r.n(w),
S = r(88997),
q = r.n(S),
T = r(67560);
const I = ({ apiClient: e, featureSwitches: t }) => ({
spacebar: () =>
e.getUnversioned("/fleets/v1/fleetline", { only_spaces: !0 }, {}),
byId(r, s = {}) {
const n = "byId",
a = s.isMetatagsQuery || !1;
return e
.graphQL(
b(),
{
id: r,
isMetatagsQuery: a,
...(0, i.d)(t),
withReplays: t.isTrue("voice_rooms_replay_consumption"),
},
Q(n, r, () => !0)
)
.catch((e) => {
if (
!(function (e) {
if (!e) return !1;
const [t] = e.errors || [];
return (
(null == t ? void 0 : t.code) === T.Z.DuplicateRequest
);
})(e)
)
throw e;
})
.then((e) => {
if (e)
try {
return p(null == e ? void 0 : e.audioSpace);
} catch (e) {
throw new Error(L(n, e.message));
}
});
},
subscribeToScheduledSpaceById(t) {
const r = "subscribeToScheduledSpaceById";
return e.graphQL(g(), { id: t }, Q(r, t)).catch(x(r)).then(A(r));
},
unsubscribeFromScheduledSpaceById(t) {
const r = "unsubscribeFromScheduledSpaceById";
return e.graphQL(q(), { id: t }, Q(r, t)).catch(x(r)).then(A(r));
},
search(t, r) {
const s = "spacesSearch";
return e
.graphQL(v(), { query: t, filter: r }, Q(s, t))
.catch(x(s))
.then((e) => {
var t, r;
return null != e &&
null != (t = e.search_by_raw_query) &&
t.audio_spaces_grouped_by_section
? (function (e) {
if (!Array.isArray(e.sections)) return { sections: [] };
const t = { sections: [] };
return (
e.sections.forEach((e) => {
const { destination: r, name: s } = e;
if (Array.isArray(e.items)) {
const i = [];
e.items.forEach((e) => {
var t;
null != e &&
null != (t = e.space) &&
t.rest_id &&
i.push(e.space.rest_id);
}),
s &&
r &&
t.sections.push({
name: s,
destination: r,
items: i,
});
}
}),
t
);
})(
null == e || null == (r = e.search_by_raw_query)
? void 0
: r.audio_spaces_grouped_by_section
)
: { sections: [] };
});
},
}),
L = (e, t) => `GQL: AudioSpaces.${e} [${t}]`;
function x(e) {
return (t) => {
if (t) throw new Error(L(e, t.message));
};
}
function A(e) {
return (t) => {
if (t) return t;
throw new Error(L(e, "404"));
};
}
const B = (e, t) => !1;
function Q(e, t, r = B) {
return function (i, n) {
let a = !1;
if (i.length) {
const [r] = i,
{ code: n, message: o, path: l } = r;
let u;
const _ = C.find(({ matches: e }) => e(o));
if (null != _ && _.message) u = L(e, _.message);
else if (Array.isArray(l)) {
const t = l.map(k).join(".");
u = L(e, t);
} else u = L(e, o || "isFatalError");
(0, s.ZP)(u, { extra: { code: n, id: t, message: o, path: l } }),
(a = !0);
}
return !r(i, n) && a;
};
}
function k(e) {
return "number" == typeof e ? "#" : e;
}
const C = ["Overcapacity: Unspecified", "Timeout: Unspecified"].map(
(e) => ({
matches: (t) => t && e.toLowerCase() === t.toLowerCase(),
message: e,
})
);
},
12006: (e, t, r) => {
"use strict";
r.d(t, { H: () => i });
var s = r(3760);
function i(e) {
if (!e) return;
const {
badge: t,
description: r,
url: i,
userLabelDisplayType: n,
userLabelType: a,
} = e;
return {
badge: t,
description: r,
userLabelType: a,
userLabelDisplayType: n,
url: i && (0, s.Z)(i),
};
}
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.AudioSpaces.4551fcfa.js.map

View File

@@ -1,87 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
[
"endpoints.AudioSpacesPresence",
"shared~loader.Typeahead~loader.AppModules~bundle.Birdwatch~bundle.Communities~bundle.Compose~bundle.Settings~",
],
{
18484: (e, s, t) => {
t.r(s), t.d(s, { default: () => a });
var n = t(49461),
r = t(86928);
const a = ({ apiClient: e, featureSwitches: s }) => ({
fetchPresence: (s, t = {}) => {
const { userIds: a } = s,
c = { user_ids: a.join(","), only_spaces: !0 };
return e
.getUnversioned("/fleets/v1/avatar_content", c, t)
.then((e) => {
const { users: s, refresh_delay_secs: t = r.vj } = e,
c = 0 === t ? r.vj : t,
i = Date.now() + 1e3 * c,
o = Object.fromEntries(
a.map((e) => [
e,
{ expiry: i, spaces: void 0, refresh_delay_secs: c },
])
),
d =
s &&
(0, n.Z)(s, (e, s) => ({
...e,
expiry: i,
refresh_delay_secs: c,
}));
return (d || o) && { entities: { userPresence: { ...o, ...d } } };
});
},
});
},
86928: (e, s, t) => {
t.d(s, { ZP: () => _, cY: () => u, vj: () => c });
t(6886), t(36728), t(2784), t(92028);
var n = t(94668),
r = t(29122),
a = t(91191);
const c = 30,
i = (0, r.ZP)({
namespace: "userPresence",
entityIsComplete: (e) => e.expiry > Date.now(),
}),
o = (0, r.tb)(i, {
context: "FETCH_USER_PRESENCE",
endpoint: (e) => e.AudioSpacesPresence.fetchPresence,
params: (e) => ({ userIds: e }),
}),
d = (0, r.Nr)(i, {
context: "FETCH_USER_PRESENCE",
endpoint: (e) => e.AudioSpacesPresence.fetchPresence,
params: (e) => ({ userIds: e }),
}),
p = { ...i, ...o, ...d },
u = (e, s) => {
const t = p.select(e, s),
r = t ? t.spaces : void 0;
return (
r && {
presenceRingType: "space",
link: {
pathname: (0, n.e)(r.live_content.audiospace.broadcast_id),
state: { origin: "audiospace_ring" },
},
spaceId: r.live_content.audiospace.broadcast_id,
}
);
};
const _ = a.Z.register(p);
},
94668: (e, s, t) => {
function n(e) {
return `/i/spaces/${e}/peek`;
}
t.d(s, { e: () => n });
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.AudioSpacesPresence.40fa84ca.js.map

View File

@@ -1,17 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.BadgeCount"],
{
21918: (e, t, n) => {
n.r(t), n.d(t, { default: () => i });
const s = { supports_ntab_urt: 1 },
u = { "x-twitter-polling": "true" },
i = ({ apiClient: e, featureSwitches: t }) => ({
fetchBadgeCount: (t, n) =>
e.getURT("badge_count/badge_count", { ...s, ...t }, { ...u, ...n }),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.BadgeCount.bb77295a.js.map

View File

@@ -1,536 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Birdwatch"],
{
4733: (e) => {
e.exports = {
queryId: "3ss48WFwGokBH_gj8t_8aQ",
operationName: "BirdwatchAliasSelect",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
59070: (e) => {
e.exports = {
queryId: "t6r3Wq7wripUW9gB3FQNBw",
operationName: "BirdwatchFetchContributorNotesSlice",
operationType: "query",
metadata: {
featureSwitches: [
"responsive_web_graphql_timeline_navigation_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_rich_text_read_enabled",
"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_enhance_cards_enabled",
],
},
};
},
47266: (e) => {
e.exports = {
queryId: "TKdL0YFsX4DMOpMKeneLvA",
operationName: "BirdwatchCreateAppeal",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
46222: (e) => {
e.exports = {
queryId: "36EUZZyaciVmNrq4CRZcmw",
operationName: "BirdwatchCreateNote",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_graphql_timeline_navigation_enabled",
"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",
],
},
};
},
64544: (e) => {
e.exports = {
queryId: "bD3AEK9BMCSpRods_ng2fA",
operationName: "BirdwatchCreateRating",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
68885: (e) => {
e.exports = {
queryId: "IKS_qrShkDyor6Ri1ahd9g",
operationName: "BirdwatchDeleteNote",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
43142: (e) => {
e.exports = {
queryId: "OpvCOyOoQClUND66zDzrnA",
operationName: "BirdwatchDeleteRating",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
46294: (e) => {
e.exports = {
queryId: "FLgLReVIssXjB_ui3wcrRQ",
operationName: "BirdwatchEditNotificationSettings",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
83101: (e) => {
e.exports = {
queryId: "szoXMke8AZOErso908iglw",
operationName: "BirdwatchFetchAliasSelfSelectOptions",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
65655: (e) => {
e.exports = {
queryId: "LUEdtkcpBlGktUtms4BvwA",
operationName: "BirdwatchFetchAliasSelfSelectStatus",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
39406: (e) => {
e.exports = {
queryId: "pMbW6Y4LuS5MzlSOEqERJQ",
operationName: "BirdwatchFetchAuthenticatedUserProfile",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
5963: (e) => {
e.exports = {
queryId: "btgGtchypc3D491MJ7XXWA",
operationName: "BirdwatchFetchBirdwatchProfile",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
74535: (e) => {
e.exports = {
queryId: "L3LftPt6fhYqoQ5Vnxm7UQ",
operationName: "BirdwatchFetchGlobalTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
69499: (e) => {
e.exports = {
queryId: "ZGMhf1M7kPKMOhEk1nz0Yw",
operationName: "BirdwatchFetchNotes",
operationType: "query",
metadata: {
featureSwitches: [
"responsive_web_graphql_timeline_navigation_enabled",
"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",
],
},
};
},
39452: (e) => {
e.exports = {
queryId: "GO8BR2MM2WZB63cdOoC7lw",
operationName: "BirdwatchFetchOneNote",
operationType: "query",
metadata: {
featureSwitches: [
"responsive_web_graphql_timeline_navigation_enabled",
"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",
],
},
};
},
79758: (e) => {
e.exports = {
queryId: "9bDdJ6AL26RLkcUShEcF-A",
operationName: "BirdwatchFetchPublicData",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
99759: (e) => {
e.exports = {
queryId: "cED9wJy8Nd1kZCCYuIq9zQ",
operationName: "BirdwatchProfileAcknowledgeEarnOut",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
10695: (e, t, a) => {
"use strict";
a.r(t),
a.d(t, {
default: () => te,
isFatalBirdwatchGlobalTimelineError: () => H,
});
var i = a(6899),
r = a(69114),
n = a(72599),
_ = a(17360),
o = a(83175),
s = a(46395),
l = a(28962),
d = a(30669),
c = a(85364);
const p = (e, t, a) => {
if (null == t || !t.data_v1) return null;
const i = t.data_v1.summary,
{ tweet_results: r, ...n } = t;
return {
...n,
data_v1: { ...n.data_v1, summary: i && (0, l.Z)(e, i) },
tombstone: t.tombstone && (0, l.Z)(e, t.tombstone),
tweet: null == r ? void 0 : r.result,
tweetId: a,
};
},
h = new i.fK.Entity(
"birdwatchNotes",
{},
{
idAttribute: (e) => e.tweet_id,
processStrategy: (e) => {
const t = (0, d.$)(),
a = {};
if (e.misleading_birdwatch_notes) {
const i = e.misleading_birdwatch_notes.notes.map((e) =>
p(t, e)
);
a.misleading_ids = i.filter(Boolean);
}
if (e.not_misleading_birdwatch_notes) {
const i = e.not_misleading_birdwatch_notes.notes.map((e) =>
p(t, e)
);
a.not_misleading_ids = i.filter(Boolean);
}
return (
e.self_birdwatch_note &&
(a.ownNoteId = e.self_birdwatch_note.rest_id),
a
);
},
}
),
u = new i.fK.Entity(
"birdwatchNotes",
{},
{
idAttribute: (e) => e.alias,
processStrategy: (e) => {
const t = (0, d.$)(),
{ notes_slice: a, ...i } = e;
return (
a && (i.notes = a.notes.map((e) => p(t, e)).filter(Boolean)), i
);
},
}
),
b = new i.fK.Entity(
"birdwatchContributorNotes",
{},
{
idAttribute: "rest_id",
processStrategy: (e, t, a) => {
var i, r;
const { tweet_results: n, ..._ } = e,
o = { ..._ },
l = (0, d.$)(),
c =
null != n && null != (i = n.result) && i.tweet
? null == n || null == (r = n.result)
? void 0
: r.tweet
: null == n
? void 0
: n.result,
h = p(l, o, c) || {};
return (0, s.Z)(h, t, a);
},
}
);
b.define({ tweetId: c.Z });
const w = new i.fK.Entity(
"birdwatchNotes",
{},
{
idAttribute: (e) => e.rest_id,
processStrategy: (e) => p((0, d.$)(), e),
}
);
var f = a(4733),
m = a.n(f),
v = a(59070),
g = a.n(v),
y = a(47266),
q = a.n(y),
S = a(46222),
B = a.n(S),
N = a(64544),
x = a.n(N),
L = a(68885),
Q = a.n(L),
A = a(43142),
F = a.n(A),
I = a(46294),
T = a.n(I),
k = a(83101),
E = a.n(k),
C = a(65655),
O = a.n(C),
D = a(39406),
R = a.n(D),
Z = a(5963),
G = a.n(Z),
M = a(74535),
P = a.n(M),
z = a(69499),
U = a.n(z),
K = a(39452),
W = a.n(K),
j = a(79758),
X = a.n(j),
Y = a(99759),
J = a.n(Y),
$ = a(82249);
const V = { result: [], entities: {}, slice_info: {} },
H = (e, t) => {
var a, i;
const r =
null == t ||
null == (a = t.viewer) ||
null == (i = a.birdwatch_home_page)
? void 0
: i.body;
return (
r ||
(0, n.ZP)("GQL URT: Failed to render Birdwatch Global timeline"),
!r && (0, _.jB)(e)
);
},
ee = (e, t) =>
e.graphQL(E(), {}).then((a) => {
const { options: i, retry_in_millis: n } =
a.authenticated_user_birdwatch_alias_self_select_options || {};
return n && t < 5 ? (0, r.Z)(n).then(() => ee(e, t + 1)) : i;
}),
te = ({ apiClient: e, featureSwitches: t }) => ({
acknowledgeEarnOut: () => e.graphQL(J(), {}),
createAppeal: (t) => e.graphQL(q(), { note_id: t.note_id }),
createNote: (a) =>
e
.graphQL(B(), {
tweet_id: a.tweet_id,
is_media_note: a.is_media_note,
data_v1: a.data,
...(0, o.S)(t),
})
.then((e) => {
var t, a, r;
if (
"BirdwatchError" ===
(null == (t = e.birdwatchnote_create_v2) ? void 0 : t.type)
)
return {
error: "BirdwatchError",
reason:
null == (a = e.birdwatchnote_create_v2)
? void 0
: a.reason,
error_code:
null == (r = e.birdwatchnote_create_v2)
? void 0
: r.error_code,
};
const n = { ...e.birdwatchnote_create_v2 };
return n && (0, i.Fv)(n, w);
}),
createRating(a) {
const { data: i, note_id: r, tweet_id: n } = a,
_ = t.isTrue("responsive_web_birdwatch_ratings_v2_enabled")
? { note_id: r, tweet_id: n, data_v2: i }
: { note_id: r, data_v1: i };
return e.graphQL(x(), _).then((e) => {
var t, a;
return "BirdwatchError" ===
(null == (t = e.birdwatchnote_rate_v3) ? void 0 : t.type)
? {
error: "BirdwatchError",
error_code:
null == (a = e.birdwatchnote_rate_v3)
? void 0
: a.error_code,
}
: { ...e.birdwatchnote_rate_v3 };
});
},
deleteNote: (t) => e.graphQL(Q(), { note_id: t.note_id }),
deleteRating: (t) => e.graphQL(F(), { note_id: t.note_id }),
editNotificationSettings: (t) =>
e.graphQL(T(), { settings: t.settings }),
fetchOneNote: (a) =>
e.graphQL(W(), { note_id: a.note_id, ...(0, o.S)(t) }).then((e) => {
const t = { ...e.birdwatch_note_by_rest_id };
return t && (0, i.Fv)(t, w);
}),
fetchNotes(a) {
const { tweet_id: r } = a;
return e.graphQL(U(), { tweet_id: r, ...(0, o.S)(t) }).then((e) => {
const t = e.tweet_result_by_rest_id.result,
a = { ...(null != t && t.tweet ? t.tweet : t), tweet_id: r };
return a && (0, i.Fv)(a, h);
});
},
fetchBirdwatchProfile: (t) =>
e.graphQL(G(), { alias: t.alias }).then((e) => {
const t = { ...e.birdwatch_profile_by_alias };
return t && (0, i.Fv)(t, u);
}),
fetchBirdwatchContributorNotesSlice: (a) =>
a
? e
.graphQL(
g(),
{ count: 10, ...a, ...(0, o.S)(t) },
(0, _.kj)((e) => {
var t;
return !(
null != e &&
null != (t = e.birdwatch_profile_by_alias) &&
t.notes_slice
);
}, "GQL Birdwatch: Failed to fetch Contributor Notes Slice")
)
.then((e) => {
var t;
const a =
null == e || null == (t = e.birdwatch_profile_by_alias)
? void 0
: t.notes_slice;
if (a) {
const { entities: e, result: t } = (0, i.Fv)(a.notes, [
b,
]);
return {
result: t,
entities: e,
slice_info: a.slice_info,
};
}
return V;
})
: Promise.resolve(V),
fetchBirdwatchContributorDeletedNotesSlice: (a) =>
a
? e
.graphQL(
g(),
{ count: 10, ...a, ...(0, o.S)(t) },
(0, _.kj)((e) => {
var t;
return !(
null != e &&
null != (t = e.birdwatch_profile_by_alias) &&
t.deleted_notes_slice
);
}, "GQL Birdwatch: Failed to fetch Contributor Notes Slice")
)
.then((e) => {
var t;
const a =
null == e || null == (t = e.birdwatch_profile_by_alias)
? void 0
: t.deleted_notes_slice;
if (a) {
const { entities: e, result: t } = (0, i.Fv)(a.notes, [
b,
]);
return {
result: t,
entities: e,
slice_info: a.slice_info,
};
}
return V;
})
: Promise.resolve(V),
fetchAuthenticatedUserProfile: () =>
e
.graphQL(R(), {})
.then((e) => e.authenticated_user_birdwatch_profile),
fetchAliasSelfSelectStatus: () =>
e
.graphQL(O(), {})
.then(
(e) => e.authenticated_user_birdwatch_alias_self_select_status
),
fetchAliasSelfSelectOptions: () => ee(e, 0),
selectAlias: (t) => e.graphQL(m(), { alias: t.alias }),
fetchPublicData: () =>
e
.graphQL(X(), {})
.then((e) => ({ ...e.birdwatch_latest_public_data_file_bundle })),
fetchGlobalTimeline: () =>
e.graphQL(P(), { ...(0, o.d)(t) }, H).then((e) => {
var t;
const a =
null == e || null == (t = e.viewer)
? void 0
: t.birdwatch_home_page;
return null != a && a.body ? a : $.ln;
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Birdwatch.ae95011a.js.map

View File

@@ -1,39 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.BizProfiles"],
{
64256: (e) => {
e.exports = {
queryId: "6OFpJ3TH3p8JpwOSgfgyhg",
operationName: "BizProfileFetchUser",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
48342: (e, s, r) => {
"use strict";
r.r(s), r.d(s, { default: () => u });
var t = r(64256),
i = r.n(t);
const u = ({ apiClient: e, featureSwitches: s }) => ({
fetchUserBizProfile: (s) =>
e.graphQL(i(), { rest_id: s.rest_id }).then((e) => {
var s, r, t, i;
return {
business:
(null == (s = e.user_result_by_rest_id) ||
null == (r = s.result)
? void 0
: r.business) || void 0,
professional:
(null == (t = e.user_result_by_rest_id) ||
null == (i = t.result)
? void 0
: i.professional) || void 0,
};
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.BizProfiles.1e307eda.js.map

View File

@@ -1,16 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.BonusFollows"],
{
49935: (e, t, s) => {
s.r(t), s.d(t, { default: () => l });
const o = { user_id: "", template_name: "bonus_follow" },
l = ({ apiClient: e, featureSwitches: t }) => ({
fetch: (t = o, s = {}) =>
e.get("people_discovery/profile_follow", t, s),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.BonusFollows.255992da.js.map

View File

@@ -1,307 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Bookmarks"],
{
60992: (e) => {
e.exports = {
queryId: "13H7EUATwethsj-XxX5ohw",
operationName: "BookmarkFolderTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
17305: (e) => {
e.exports = {
queryId: "i78YDd0Tza-dV4SYs58kRg",
operationName: "BookmarkFoldersSlice",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
85419: (e) => {
e.exports = {
queryId: "4KHZvvNbHNf07bsgnL9gWA",
operationName: "bookmarkTweetToFolder",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
2061: (e) => {
e.exports = {
queryId: "tmd4ifV8RHltzn8ymGg1aw",
operationName: "Bookmarks",
operationType: "query",
metadata: {
featureSwitches: [
"graphql_timeline_v2_bookmark_timeline",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
5509: (e) => {
e.exports = {
queryId: "6Xxqpq8TM_CREYiuof_h5w",
operationName: "createBookmarkFolder",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
1258: (e) => {
e.exports = {
queryId: "skiACZKC1GDYli-M8RzEPQ",
operationName: "BookmarksAllDelete",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
86558: (e) => {
e.exports = {
queryId: "2UTTsO-6zs93XqlEUZPsSg",
operationName: "DeleteBookmarkFolder",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
51792: (e) => {
e.exports = {
queryId: "a6kPp1cS1Dgbsjhapz1PNw",
operationName: "EditBookmarkFolder",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
68831: (e) => {
e.exports = {
queryId: "2Qbj9XZvtUvyJB4gFwWfaA",
operationName: "RemoveTweetFromBookmarkFolder",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
5929: (e, o, t) => {
"use strict";
t.r(o), t.d(o, { default: () => I, isFatalBookmarksAllDelete: () => Q });
var r = t(6899),
a = t(72599),
i = t(17360),
n = t(83175);
const l = new r.fK.Entity("bookmarkFolders", {});
var _ = t(17305),
s = t.n(_),
d = t(60992),
m = t.n(d),
k = t(2061),
p = t.n(k),
u = t(85419),
b = t.n(u),
c = t(5509),
w = t.n(c),
v = t(1258),
h = t.n(v),
f = t(86558),
g = t.n(f),
y = t(51792),
F = t.n(y),
B = t(68831),
q = t.n(B),
T = t(82249);
const x = { result: [], entities: {}, slice_info: {} },
Q = (e, o) => {
const t = "Done" === (null == o ? void 0 : o.bookmark_all_delete);
return (
t || (0, a.ZP)("GQL Bookmarks: Failed to delete all bookmarks"),
(0, i.jB)(e) || !t
);
},
L = (e, o) => {
var t, r, n;
const l =
null == o ||
null == (t = o.viewer) ||
null == (r = t.user_results)
? void 0
: r.result,
_ = "User" === (null == l ? void 0 : l.__typename) ? l : void 0,
s =
null == _ || null == (n = _.bookmark_collections_slice)
? void 0
: n.items;
return (
s ||
(0, a.ZP)(
"GQL Bookmark Folders: Failed to render Bookmark Folders timeline"
),
!s && (0, i.jB)(e)
);
},
S = (e, o) => {
var t;
const r =
null == o || null == (t = o.bookmark_collection_timeline)
? void 0
: t.timeline;
return (
r ||
(0, a.ZP)(
"GQL Bookmark Folders: Failed to render Bookmark Folders timeline"
),
!r && (0, i.jB)(e)
);
},
I = ({ apiClient: e, featureSwitches: o }) => ({
bookmarkTweetToFolder: (o) =>
e.graphQL(
b(),
{ ...o },
(0, i.kj)(
(e) => !e.bookmark_collection_tweet_put,
"GQL Bookmark Folders: failed to Add Tweet to Bookmark Folder"
)
),
createBookmarkFolder: (o) =>
e.graphQL(
w(),
{ ...o },
(0, i.kj)(
(e) => !e.bookmark_collection_create,
"GQL Bookmark Folders: failed to Create Bookmark Folder"
)
),
deleteAll: () => e.graphQL(h(), {}, Q).then((e) => e),
deleteBookmarkFolder(o) {
const { bookmarkFolderId: t } = o;
return e.graphQL(g(), { bookmark_collection_id: t });
},
editBookmarkFolder(o) {
const { bookmarkFolderId: t, name: r } = o;
return e.graphQL(F(), { bookmark_collection_id: t, name: r });
},
removeTweetFromBookmarkFolder(o) {
const { bookmarkFolderId: t, tweetId: r } = o;
return e.graphQL(q(), { bookmark_collection_id: t, tweet_id: r });
},
fetchBookmarksTimeline: ({ count: t, cursor: r }) =>
e
.graphQL(
p(),
{
count: t,
cursor: r,
includePromotedContent: !0,
...(0, n.d)(o),
},
(e, o) => {
var t, r;
return !(
(null != o &&
null != (t = o.bookmark_timeline) &&
t.timeline) ||
(null != o &&
null != (r = o.bookmark_timeline_v2) &&
r.timeline)
);
}
)
.then((e) => {
var o, t;
return (
(null == e || null == (o = e.bookmark_timeline_v2)
? void 0
: o.timeline) ||
(null == e || null == (t = e.bookmark_timeline)
? void 0
: t.timeline) ||
T.cY
);
}),
fetchBookmarkFolderTimeline: ({
bookmark_collection_id: t,
cursor: r,
}) =>
e
.graphQL(
m(),
{
bookmark_collection_id: t,
cursor: r,
includePromotedContent: !0,
...(0, n.d)(o),
},
S
)
.then((e) => {
var o;
return (
(null == e || null == (o = e.bookmark_collection_timeline)
? void 0
: o.timeline) || T.cY
);
}),
fetchBookmarkFoldersSlice: (o) =>
o
? e.graphQL(s(), o, L).then((e) => {
var o, t;
const a =
null == e ||
null == (o = e.viewer) ||
null == (t = o.user_results)
? void 0
: t.result,
i =
"User" === (null == a ? void 0 : a.__typename)
? a
: void 0,
n = null == i ? void 0 : i.bookmark_collections_slice;
if (n) {
const { entities: e, result: o } = (0, r.Fv)(n.items, [l]);
return { entities: e, result: o, slice_info: n.slice_info };
}
return x;
})
: Promise.resolve(x),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Bookmarks.cdbe2e6a.js.map

View File

@@ -1,22 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.BounceOcfFlow"],
{
25449: (e, t, n) => {
n.r(t), n.d(t, { default: () => o });
const o = ({ apiClient: e, featureSwitches: t }) => ({
task(t, n) {
const { flow_name: o, test_country_code: s, ...c } = t;
return e.post(
"onboarding/bounce",
c,
{ flow_name: o, test_country_code: s },
{ ...n, "content-type": "application/json" }
);
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.BounceOcfFlow.3a4f94ea.js.map

View File

@@ -1,22 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Branch"],
{
65237: (t, e, n) => {
n.r(e), n.d(e, { default: () => i });
const i = ({ apiClient: t, featureSwitches: e }) => ({
initSdk: () =>
t.post("branch/init", {}, {}, { "content-type": "application/json" }),
callback: (e) =>
t.post(
"branch/callback",
{ cross_platform_id: e },
{},
{ "content-type": "application/json" }
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Branch.1e28b37a.js.map

View File

@@ -1,94 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Broadcasts"],
{
45205: (s, e, t) => {
t.r(e), t.d(e, { default: () => i });
var a = t(6899),
r = t(88701),
o = t(63174),
n = t(63140);
const c = { include_events: !0 },
i = ({ apiClient: s, featureSwitches: e }) => ({
fetchBroadcast: (e, t = {}) => {
const i = { ...c, ...e, ids: e.ids.join(",") };
return s.get("broadcasts/show", i, t).then((s) => {
const { entities: c, result: i } = (0, a.Fv)(s, r.j);
if (
e.ids.every(
(s) =>
!(
c.broadcasts &&
c.broadcasts[s] &&
c.broadcasts[s].broadcast_id
)
)
)
return Promise.reject(
new o.Z(
"fetchBroadcast URL",
404,
s.headers,
[{ code: n.ZP.GenericNotFound }],
t
)
);
const d = {
result: { broadcasts: i.broadcasts },
entities: { broadcasts: { ...c.broadcasts } },
};
if (
(i.events &&
d.result.broadcasts.forEach((s) => {
const e = i.events && i.events[s],
t = d.entities.broadcasts[s];
if (e && t) {
const s = e.map((s) => c.liveEvents[s]);
t.liveEvents = s;
}
}),
"object" == typeof e.broadcastVersionMap)
)
for (const s in e.broadcastVersionMap) {
var b;
const t = e.broadcastVersionMap[s];
(null == (b = d.entities.broadcasts[s])
? void 0
: b.version) <= t &&
((d.result.broadcasts = d.result.broadcasts.filter(
(e) => e !== s
)),
delete d.entities.broadcasts[s]);
}
return d;
});
},
});
},
88701: (s, e, t) => {
t.d(e, { j: () => l, u: () => v });
var a = t(6899),
r = t(50445),
o = t(13239),
n = t(46395);
const c = new a.fK.Entity("broadcasts", {}, { processStrategy: n.Z }),
i = new a.fK.Entity("audiospaces", {}, { processStrategy: n.Z }),
d = new a.fK.Entity("liveEvents", {}, { processStrategy: n.Z }),
b = new a.fK.Entity("slates", {}, { processStrategy: n.Z }),
u = new a.fK.Values([d]),
v = new a.fK.Object({
twitter_objects: {
audiospaces: [i],
broadcasts: [c],
live_events: [d],
slates: [b],
tweets: [r.Z],
users: [o.Z],
},
}),
l = new a.fK.Object({ broadcasts: [c], events: u });
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Broadcasts.0956aa1a.js.map

View File

@@ -1,35 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.ClientEducationFlags"],
{
27824: (t) => {
t.exports = {
queryId: "IjQ-egg0uPkY11NyPMfRMQ",
operationName: "PutClientEducationFlag",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
68877: (t, e, a) => {
"use strict";
a.r(e), a.d(e, { default: () => s, isFatal: () => o });
var i = a(72599),
n = a(17360),
l = a(27824),
u = a.n(l);
const o = (t, e) => {
const a =
"Done" === (null == e ? void 0 : e.add_client_education_flag_put);
return (
a || (0, i.ZP)("GQL Client Education Flag: Failed to add"),
!a && (0, n.jB)(t)
);
},
s = ({ apiClient: t, featureSwitches: e }) => ({
putClientEducationFlag: ({ flag: e }) =>
t.graphQL(u(), { flag: e }, o),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.ClientEducationFlags.03a9d05a.js.map

View File

@@ -1,51 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Collections"],
{
53225: (e, t, s) => {
s.r(t), s.d(t, { default: () => f });
var n = s(6899),
l = (s(85940), s(50445)),
i = s(13239),
c = s(46395);
const o = /^[^-]+-/,
a = new n.fK.Entity(
"collections",
{},
{ idAttribute: (e, t, s) => s.replace(o, ""), processStrategy: c.Z }
),
r = {
objects: {
timelines: new n.fK.Values(a),
tweets: new n.fK.Values(l.Z),
users: new n.fK.Values(i.Z),
},
};
var u = s(87233),
w = s(55371);
const f = ({ apiClient: e, featureSwitches: t }) => ({
fetchCollection(s, l = {}) {
const { id: i } = s;
return e
.get(
"collections/entries",
Object.assign(
{},
((e) => ({
...w.getGlobalDefaults(e),
...u.getGlobalDefaults(e),
count: 5,
}))(t),
s,
{ id: `custom-${i}` }
),
l
)
.then((e) => (0, n.Fv)(e, r));
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Collections.6dd079ca.js.map

View File

@@ -1,72 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Commerce"],
{
99313: (e) => {
e.exports = {
queryId: "-lnNX56S2YrZYrLzbccFAQ",
operationName: "LiveCommerceItemsSlice",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
54556: (e, t, i) => {
"use strict";
i.r(t), i.d(t, { default: () => m, isFatal: () => _ });
var r = i(6899),
s = i(72599),
c = i(17360);
const n = new r.fK.Entity(
"commerceItems",
{},
{
idAttribute: (e) => {
var t, i;
return null !=
(t =
null == (i = e.product_core_data)
? void 0
: i.product_metadata.product_key)
? t
: "";
},
}
);
var o = i(99313),
l = i.n(o);
const _ = (e, t) => {
var i;
const r =
null == t || null == (i = t.live_event_by_rest_id)
? void 0
: i.shop_grid_commerce_item_slice;
return (
r ||
(0, s.ZP)(
"GQL Live Commerce: Failed to fetch Live Commerce Slice"
),
!r && (0, c.jB)(e)
);
},
a = { result: [], entities: {}, slice_info: {} },
m = ({ apiClient: e, featureSwitches: t }) => ({
fetchLiveCommerceItemsSlice: (t) =>
t
? e.graphQL(l(), t, _).then((e) => {
var t;
const i =
null == e || null == (t = e.live_event_by_rest_id)
? void 0
: t.shop_grid_commerce_item_slice;
if (i) {
const { entities: e, result: t } = (0, r.Fv)(i.items, [n]);
return { result: t, entities: e, slice_info: i.slice_info };
}
return a;
})
: Promise.resolve(a),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Commerce.a4648afa.js.map

File diff suppressed because it is too large Load Diff

View File

@@ -1,310 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.CommunitiesTools"],
{
98515: (e) => {
e.exports = {
queryId: "dShPoN6voXRusgxC1uvGog",
operationName: "CommunityCreateRule",
operationType: "mutation",
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",
],
},
};
},
84551: (e) => {
e.exports = {
queryId: "KVkZwp8Q6xy6iyhlQE5d7Q",
operationName: "CommunityEditBannerMedia",
operationType: "mutation",
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",
],
},
};
},
28753: (e) => {
e.exports = {
queryId: "SKToKhvm3Z4Rir8ENCJ3YQ",
operationName: "CommunityEditName",
operationType: "mutation",
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",
],
},
};
},
54185: (e) => {
e.exports = {
queryId: "eMat-u2kx6KocreGTAt-hA",
operationName: "CommunityEditPurpose",
operationType: "mutation",
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",
],
},
};
},
42624: (e) => {
e.exports = {
queryId: "9nEl5bNcdteuPGbGCdvEFA",
operationName: "CommunityEditRule",
operationType: "mutation",
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",
],
},
};
},
9758: (e) => {
e.exports = {
queryId: "4OhW6gWJwiu-JTAgBPsU1w",
operationName: "CommunityEditTheme",
operationType: "mutation",
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",
],
},
};
},
43103: (e) => {
e.exports = {
queryId: "lSdK1v30qVhm37rDTgHq0Q",
operationName: "CommunityRemoveBannerMedia",
operationType: "mutation",
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",
],
},
};
},
99812: (e) => {
e.exports = {
queryId: "EI_g43Ss_Ixg0EC4K7nzlQ",
operationName: "CommunityRemoveRule",
operationType: "mutation",
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",
],
},
};
},
56299: (e) => {
e.exports = {
queryId: "VwluNMGnl5uaNZ3LnlCQ_A",
operationName: "CommunityReorderRules",
operationType: "mutation",
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",
],
},
};
},
40873: (e, i, n) => {
"use strict";
n.r(i), n.d(i, { default: () => x });
var _ = n(6899),
t = n(17360),
a = n(83175),
o = n(38269),
m = n(98515),
r = n.n(m),
u = n(84551),
l = n.n(u),
s = n(28753),
d = n.n(s),
p = n(54185),
b = n.n(p),
c = n(42624),
h = n.n(c),
v = n(9758),
y = n.n(v),
g = n(43103),
w = n.n(g),
f = n(99812),
q = n.n(f),
C = n(56299),
I = n.n(C);
const x = ({ apiClient: e, featureSwitches: i }) => ({
editCommunityName: (n) =>
e
.graphQL(
d(),
{ communityId: n.communityId, name: n.name, ...(0, a.S)(i) },
(0, t.kj)((e) => {
var i;
return !(null != (i = e.community_name_put) && i.name);
}, "GQL Communities: Failed to edit community name")
)
.then((e) => (0, _.Fv)(e.community_name_put, o.ZP)),
editCommunityPurpose: (n) =>
e
.graphQL(
b(),
{
communityId: n.communityId,
description: n.purpose,
...(0, a.S)(i),
},
(0, t.kj)((e) => {
var i;
return !(
null != (i = e.community_description_put) && i.description
);
}, "GQL Communities: Failed to edit community purpose")
)
.then((e) => (0, _.Fv)(e.community_description_put, o.ZP)),
editCommunityTheme: (n) =>
e
.graphQL(
y(),
{ communityId: n.communityId, theme: n.theme, ...(0, a.S)(i) },
(0, t.kj)((e) => {
var i;
return !(
null != (i = e.community_custom_theme_put) && i.custom_theme
);
}, "GQL Communities: Failed to edit community theme")
)
.then((e) => (0, _.Fv)(e.community_custom_theme_put, o.ZP)),
editCommunityRule: (n) =>
e
.graphQL(
h(),
{
communityId: n.communityId,
ruleId: n.ruleId,
name: n.name,
description: n.description,
...(0, a.S)(i),
},
(0, t.kj)(
(e) => !(null != e && e.community_rule_update),
"GQL Communities: Failed to edit community rule"
)
)
.then((e) => (0, _.Fv)(e.community_rule_update, o.ZP)),
createCommunityRule: (n) =>
e
.graphQL(
r(),
{
communityId: n.communityId,
name: n.name,
description: n.description,
...(0, a.S)(i),
},
(0, t.kj)(
(e) => !(null != e && e.community_rule_create),
"GQL Communities: Failed to create community rule"
)
)
.then((e) => (0, _.Fv)(e.community_rule_create, o.ZP)),
removeCommunityRule: (n) =>
e
.graphQL(
q(),
{ communityId: n.communityId, ruleId: n.ruleId, ...(0, a.S)(i) },
(0, t.kj)(
(e) => !(null != e && e.community_rule_remove),
"GQL Communities: Failed to remove community rule"
)
)
.then((e) => (0, _.Fv)(e.community_rule_remove, o.ZP)),
reorderCommunityRules: (n) =>
e
.graphQL(
I(),
{
communityId: n.communityId,
ruleIds: n.ruleIds,
...(0, a.S)(i),
},
(0, t.kj)(
(e) => !(null != e && e.community_rules_reorder),
"GQL Communities: Failed to reorder community rules"
)
)
.then((e) => (0, _.Fv)(e.community_rules_reorder, o.ZP)),
editCommunityBannerMedia: (n) =>
e
.graphQL(
l(),
{
communityId: n.communityId,
mediaId: n.mediaId,
...(0, a.S)(i),
},
(0, t.kj)((e) => {
var i;
return !(
null != (i = e.community_custom_banner_media_put) &&
i.custom_banner_media
);
}, "GQL Communities: Failed to edit community banner media")
)
.then((e) => (0, _.Fv)(e.community_custom_banner_media_put, o.ZP)),
removeCommunityBannerMedia: (n) =>
e
.graphQL(
w(),
{ communityId: n.communityId, ...(0, a.S)(i) },
(0, t.kj)(
(e) => !e.community_custom_banner_media_delete,
"GQL Communities: Failed to remove community banner media"
)
)
.then((e) =>
(0, _.Fv)(e.community_custom_banner_media_delete, o.ZP)
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.CommunitiesTools.2de2665a.js.map

View File

@@ -1,383 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Contacts"],
{
78527: (t, r, e) => {
"use strict";
e.r(r), e.d(r, { default: () => c });
e(36728), e(6886);
var n = e(6899),
s = e(65188),
i = e(44171),
o = e.n(i),
a = e(46395);
const u = (t, r, e) => {
const n = (0, a.Z)(t, r, e);
if (t && "string" == typeof n.vcard) {
const t = o().parse(n.vcard),
r = (t && t[0]) || null;
return { ...n, vcard: r };
}
return n;
},
h = new n.fK.Entity(
"vcards",
{},
{
idAttribute: (t) => ((0, s.Z)(t.id) ? t.id : t.id_str),
processStrategy: u,
}
),
p = { count: 100 },
c = ({ apiClient: t, featureSwitches: r }) => ({
fetchAddressBook: (r, e = {}) =>
t
.get("contacts/addressbook", { ...p, ...r }, e)
.then((t) => (0, n.Fv)(t, { contacts: [h] })),
uploadAddressBook(r, e) {
const { contacts: n, ...s } = r,
i = [];
for (let t = 0; t < n.length; t += 100) i.push(n.slice(t, t + 100));
return Promise.all(
i.map((r) =>
t.post(
"contacts/upload_v2",
{ ...s, contacts: r },
{},
{ ...e, "content-type": "application/json" }
)
)
);
},
});
},
49874: (t) => {
t.exports = function (t, r, e) {
if (((t = t.replace(/\r?\n/g, "")), null != r && r < 5))
throw new Error("Maximum length must not be less than 5");
if (((r = null != r ? r : 78), t.length <= r)) return t;
r -= 4;
var n = [],
s = t.length,
i = 0,
o = 0;
if (!e)
for (; ~(i = t.lastIndexOf(" ", r + o)) && !(i <= o); )
t.slice(o).length > r
? (n.push((o ? " " : "") + t.slice(o, i)), (o = i + 1))
: (n.push((o ? " " : "") + t.slice(o)), (o = s));
for (r++; o < s; ) n.push(t.slice(o, (o += r)));
return n.join("\r\n ");
};
},
19858: (t, r, e) => {
var n = e(91925),
s = e(21681);
function i(t, r, e) {
Array.isArray(t[r])
? t[r].push(e)
: null != t[r]
? (t[r] = [t[r], e])
: (t[r] = e);
}
function o(t, r) {
var e = r.split("="),
s = n(e[0]),
o = e[1];
return (
(null != o && "" !== o) || ((o = e[0]), (s = "type")),
"type" === s
? (o
.toLowerCase()
.split(",")
.forEach(function (r) {
i(t, s, r);
}),
t)
: (i(t, s, o), t)
);
}
t.exports = function (t) {
for (
var r = {},
e = null,
a = /^([^;:]+)((?:;(?:[^;:]+))*)(?:\:(.+))?$/i,
u = t.length - 1,
h = 1;
h < u;
h++
) {
e = t[h];
var p = a.exec(e);
if (p) {
var c = p[1].split("."),
l = c.pop(),
d = c.pop(),
f = p[3],
v = (p[2] ? p[2].replace(/^;|;$/g, "").split(";") : []).reduce(
o,
d ? { group: d } : {}
),
y = n(l);
i(r, y, new s(y, f, v));
}
}
return r;
};
},
21681: (t) => {
function r(t, e, n) {
if (!(this instanceof r)) return new r(e);
null != n && Object.assign(this, n),
(this._field = t),
(this._data = e),
Object.defineProperty(this, "_field", { enumerable: !1 }),
Object.defineProperty(this, "_data", { enumerable: !1 });
}
function e(t) {
return t.replace(/([A-Z])/g, "-$1").toUpperCase();
}
(r.fromJSON = function (t) {
var e = t[0],
n = t[1];
return (
/text/i.test(t[2]) || (n.value = t[2]),
new r(e, Array.isArray(t[3]) ? t[3].join(";") : t[3], n)
);
}),
(r.prototype = {
constructor: r,
is: function (t) {
return (
(t = (t + "").toLowerCase()),
Array.isArray(this.type) ? this.type.indexOf(t) : this.type === t
);
},
isEmpty: function () {
return null == this._data && 0 === Object.keys(this).length;
},
clone: function () {
return new r(this._field, this._data, this);
},
toString: function (t) {
for (
var r = (this.group ? this.group + "." : "") + e(this._field),
n = Object.keys(this),
s = [],
i = 0;
i < n.length;
i++
)
"group" !== n[i] && s.push(e(n[i]) + "=" + this[n[i]]);
return (
r +
(s.length ? ";" + s.join(";") : s) +
":" +
(Array.isArray(this._data) ? this._data.join(";") : this._data)
);
},
valueOf: function () {
return this._data;
},
toJSON: function () {
var t = Object.assign({}, this);
"text" === t.value && ((t.value = void 0), delete t.value);
var r = [this._field, t, this.value || "text"];
switch (this._field) {
default:
r.push(this._data);
break;
case "adr":
case "n":
r.push(this._data.split(";"));
}
return r;
},
}),
(t.exports = r);
},
44171: (t, r, e) => {
function n() {
if (!(this instanceof n)) return new n();
(this.version = n.versions[n.versions.length - 1]), (this.data = {});
}
(n.mimeType = "text/vcard"),
(n.extension = ".vcf"),
(n.versions = ["2.1", "3.0", "4.0"]),
(n.foldLine = e(49874)),
(n.normalize = function (t) {
return (t + "")
.replace(/^[\s\r\n]+|[\s\r\n]+$/g, "")
.replace(/(\r?\n)\s*(\r?\n)|$/g, "$1")
.replace(/\r?\n[\x20\x09]+/g, "");
}),
(n.isSupported = function (t) {
return /^\d\.\d$/.test(t) && -1 !== n.versions.indexOf(t);
}),
(n.parse = function (t) {
for (
var r = (t + "").split(/(?=BEGIN\:VCARD)/gi), e = [], s = 0;
s < r.length;
s++
)
e.push(new n().parse(r[s]));
return e;
}),
(n.parseLines = e(19858)),
(n.fromJSON = function (t) {
if (
null == (t = "string" == typeof t ? JSON.parse(t) : t) ||
!Array.isArray(t)
)
return new n();
if (!/vcard/i.test(t[0]))
throw new Error("Object not in jCard format");
var r = new n();
return (
t[1].forEach(function (t) {
r.addProperty(n.Property.fromJSON(t));
}),
r
);
}),
(n.format = function (t, r) {
if (
((r = r || t.version || n.versions[n.versions.length - 1]),
!n.isSupported(r))
)
throw new Error('Unsupported vCard version "' + r + '"');
var e = [];
e.push("BEGIN:VCARD"), e.push("VERSION:" + r);
for (var s = Object.keys(t.data), i = "", o = 0; o < s.length; o++)
if ("version" !== s[o])
if (((i = t.data[s[o]]), Array.isArray(i)))
for (var a = 0; a < i.length; a++)
i[a].isEmpty() || e.push(n.foldLine(i[a].toString(r), 75));
else i.isEmpty() || e.push(n.foldLine(i.toString(r), 75));
return e.push("END:VCARD"), e.join("\n");
}),
(n.Property = e(21681)),
(n.prototype = {
constructor: n,
get: function (t) {
return null == this.data[t]
? this.data[t]
: Array.isArray(this.data[t])
? this.data[t].map(function (t) {
return t.clone();
})
: this.data[t].clone();
},
set: function (t, r, e) {
return this.setProperty(new n.Property(t, r, e));
},
add: function (t, r, e) {
var s = new n.Property(t, r, e);
return this.addProperty(s), this;
},
setProperty: function (t) {
return (this.data[t._field] = t), this;
},
addProperty: function (t) {
var r = t._field;
return (
Array.isArray(this.data[r])
? this.data[r].push(t)
: null != this.data[r]
? (this.data[r] = [this.data[r], t])
: (this.data[r] = t),
this
);
},
parse: function (t) {
var r = n.normalize(t).split(/\r?\n/g),
e = r[0],
s = r[1],
i = r[r.length - 1];
if (!/BEGIN:VCARD/i.test(e))
throw new SyntaxError(
'Invalid vCard: Expected "BEGIN:VCARD" but found "' + e + '"'
);
if (!/END:VCARD/i.test(i))
throw new SyntaxError(
'Invalid vCard: Expected "END:VCARD" but found "' + i + '"'
);
if (!/VERSION:\d\.\d/i.test(s))
throw new SyntaxError(
'Invalid vCard: Expected "VERSION:\\d.\\d" but found "' +
s +
'"'
);
if (
((this.version = s.substring(8, 11)),
!n.isSupported(this.version))
)
throw new Error('Unsupported version "' + this.version + '"');
return (this.data = n.parseLines(r)), this;
},
toString: function (t, r) {
return (t = t || this.version), n.format(this, t);
},
toJCard: function (t) {
t = t || "4.0";
for (
var r = Object.keys(this.data),
e = [["version", {}, "text", t]],
n = null,
s = 0;
s < r.length;
s++
)
if ("version" !== r[s])
if (((n = this.data[r[s]]), Array.isArray(n)))
for (var i = 0; i < n.length; i++) e.push(n[i].toJSON());
else e.push(n.toJSON());
return ["vcard", e];
},
toJSON: function () {
return this.toJCard(this.version);
},
}),
(t.exports = n);
},
91925: (t) => {
"use strict";
function r(t) {
for (var r = !1, e = 0; e < t.length; e++) {
var n = t.charAt(e);
r && /[a-zA-Z]/.test(n) && n.toUpperCase() === n
? ((t = t.substr(0, e) + "-" + t.substr(e)), (r = !1), e++)
: (r = n.toLowerCase() === n);
}
return t;
}
t.exports = function () {
var t = [].map
.call(arguments, function (t) {
return t.trim();
})
.filter(function (t) {
return t.length;
})
.join("-");
return t.length
? 1 === t.length
? t.toLowerCase()
: /[_.\- ]+/.test(t)
? (t = r(t))
.replace(/^[_.\- ]+/, "")
.toLowerCase()
.replace(/[_.\- ]+(\w|$)/g, function (t, r) {
return r.toUpperCase();
})
: t === t.toUpperCase()
? t.toLowerCase()
: t[0] !== t[0].toLowerCase()
? t[0].toLowerCase() + t.slice(1)
: t
: "";
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Contacts.1131c5aa.js.map

View File

@@ -1,101 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Conversation"],
{
77561: (e) => {
e.exports = {
queryId: "wNNG8DBB8EaXw1lq4vFWGA",
operationName: "TweetDetail",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
33071: (e, t, i) => {
"use strict";
i.r(t),
i.d(t, { default: () => c, isFatalTweetDetailTimelineError: () => d });
var _ = i(72599),
n = i(17360),
r = i(83175),
a = i(77561),
o = i.n(a),
s = i(63140),
l = i(82249);
const d = (e, t) => {
const i =
!(null == t || !t.threaded_conversation_with_injections) ||
!(null == t || !t.threaded_conversation_with_injections_v2);
if (!i) {
(1 === e.length && e[0].code === s.ZP.StatusNotFound) ||
(0, _.ZP)("GQL URT: Failed to render TweetDetail timeline");
}
return !i && (0, n.jB)(e);
},
c = ({ apiClient: e, featureSwitches: t }) => ({
fetchTweetDetail: ({
controller_data: i,
cursor: _,
focalTweetId: n,
isReaderMode: a,
referrer: s,
rux_context: c,
with_rux_injections: w,
}) =>
e
.graphQL(
o(),
{
focalTweetId: n,
cursor: _,
referrer: s,
controller_data: i,
rux_context: c,
with_rux_injections: w,
includePromotedContent: !0,
withCommunity: t.isTrue("c9s_enabled"),
withQuickPromoteEligibilityTweetFields: !0,
withBirdwatchNotes: t.isTrue(
"responsive_web_birdwatch_consumption_enabled"
),
...(0, r.d)(t),
withVoice: t.isTrue("voice_consumption_enabled"),
withV2Timeline: t.isTrue(
"graphql_timeline_v2_query_threaded_conversation_with_injections"
),
isReaderMode: a,
},
d
)
.then(
(e) =>
e.threaded_conversation_with_injections ||
e.threaded_conversation_with_injections_v2 ||
l.cY
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Conversation.f200f18a.js.map

View File

@@ -1,43 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Devices"],
{
47876: (e, s, t) => {
t.r(s), t.d(s, { default: () => n });
const n = ({ apiClient: e, featureSwitches: s }) => ({
fetchDevicePermissionsState(s) {
const { deviceId: t, permissionName: n, userId: o, ...i } = s;
return o
? e.get(
`strato/column/None/${o},${encodeURIComponent(
t
)},${n}/clients/permissionsState`,
i,
{ "content-type": "application/json" },
""
)
: Promise.resolve(new Response());
},
fetchInfo: (s) => e.get("users/email_phone_info", s, {}),
resendConfirmationEmail: () =>
e.post("account/resend_confirmation_email", {}, {}, {}),
removeDevice: (s) => e.post("device/unregister", s, {}, {}),
updateDevicePermissionsState(s) {
const { deviceId: t, permissionName: n, userId: o } = s;
return o
? e.put(
`strato/column/None/${o},${encodeURIComponent(
t
)},${n}/clients/permissionsState`,
s,
{ "content-type": "application/json" },
""
)
: Promise.resolve(new Response());
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Devices.422f010a.js.map

View File

@@ -1,764 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.DirectMessagesGraphQL"],
{
23221: (e) => {
e.exports = {
queryId: "9qd2xqJkMURKSyXVJ33xBw",
operationName: "DmAllSearchSlice",
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",
],
},
};
},
52864: (e) => {
e.exports = {
queryId: "5zpY1dCR-8NyxQJS_CFJoQ",
operationName: "DmGroupSearchSlice",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
74907: (e) => {
e.exports = {
queryId: "lrcWa13oyrQc7L33wRdLAQ",
operationName: "DmMutedTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
10776: (e) => {
e.exports = {
queryId: "xYSm8m5kJnzm_gFCn5GH-w",
operationName: "DmPeopleSearchSlice",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
30310: (e, i, t) => {
"use strict";
t.r(i), t.d(i, { default: () => f, isFatalDMSearchError: () => h });
var n = t(6899),
l = t(17360),
r = t(83175),
a = t(5189),
_ = t(23221),
s = t.n(_),
o = t(52864),
d = t.n(o),
u = t(74907),
c = t.n(u),
m = t(10776),
v = t.n(m),
g = t(82249);
const h = (e, i) => {
let t = !1;
var n, r;
if (null != i && i.dmPeopleSearchSlice)
t = !(
null == i ||
null == (n = i.dmPeopleSearchSlice) ||
null == (r = n.items) ||
!r.length
);
else if (null != i && i.dmGroupSearchSlice) {
var a, _;
t = !(
null == i ||
null == (a = i.dmGroupSearchSlice) ||
null == (_ = a.items) ||
!_.length
);
} else if (null != i && i.dmMessageSearchSlice) {
if (
"DMMessageSlice" !==
(null == i ? void 0 : i.dmMessageSearchSlice.__typename)
)
return !0;
var s, o;
t = !(
null == i ||
null == (s = i.dmMessageSearchSlice) ||
null == (o = s.items) ||
!o.length
);
}
return !t && (0, l.jB)(e);
},
p = (e) => {
var i;
const t =
null == (i = e.items)
? void 0
: i.map((e) => (null == e ? void 0 : e.dm_convo_search));
return (0, n.Fv)(t, [a.ZP]);
},
f = ({ apiClient: e, featureSwitches: i }) => ({
fetchDMAllSearch: (t) =>
t
? e
.graphQL(
s(),
{
count: null == t ? void 0 : t.count,
query: t.query,
withAttachments:
i.isTrue(
"dm_inbox_search_message_attachment_previews_enabled"
) &&
i.isTrue("dm_inbox_search_message_results_enabled") &&
i.isTrue("direct_messages_incremental_holdback_2022h1"),
withConversationQueryHighlights:
i.isTrue(
"dm_inbox_search_query_highlighting_conversation_results_enabled"
) &&
i.isTrue("direct_messages_incremental_holdback_2022h1"),
withMessageQueryHighlights:
i.isTrue(
"dm_inbox_search_query_highlighting_message_results_enabled"
) &&
i.isTrue("dm_inbox_search_message_results_enabled") &&
i.isTrue("direct_messages_incremental_holdback_2022h1"),
withMessages:
i.isTrue("dm_inbox_search_message_results_enabled") &&
i.isTrue("direct_messages_incremental_holdback_2022h1"),
withSafetyModeUserFields: i.isTrue(
"rito_safety_mode_blocked_profile_enabled"
),
},
h
)
.then((e) => {
const i = null == e ? void 0 : e.dmGroupSearchSlice,
t = null == e ? void 0 : e.dmMessageSearchSlice,
l = null == e ? void 0 : e.dmPeopleSearchSlice;
let r = g.d;
if (i) {
var _, s, o;
const { entities: e, result: t } = p(i),
n =
(null == (_ = i.items)
? void 0
: _.find((e) => {
var i;
return null == e || null == (i = e.highlighting)
? void 0
: i.query_tokens;
})) &&
(null == (s = i.items)
? void 0
: s.map((e) => {
var i;
return null == e || null == (i = e.highlighting)
? void 0
: i.query_tokens;
}));
r = {
result:
null == (o = r)
? void 0
: o.result.concat({
groupData: { result: t, highlightingTokens: n },
}),
entities: e,
};
}
if (l) {
var d, u, c, m;
const { entities: e, result: i } = p(l),
t =
(null == (d = l.items)
? void 0
: d.find((e) => {
var i;
return null == e || null == (i = e.highlighting)
? void 0
: i.query_tokens;
})) &&
(null == (u = l.items)
? void 0
: u.map((e) => {
var i;
return null == e || null == (i = e.highlighting)
? void 0
: i.query_tokens;
}));
r = {
...r,
result:
null == (c = r)
? void 0
: c.result.concat({
peopleData: {
result: i,
highlightingTokens: t,
},
}),
entities: {
...(null == (m = r) ? void 0 : m.entities),
...e,
},
};
}
if (
t &&
"DMMessageSlice" === (null == t ? void 0 : t.__typename)
) {
var v, h, f, b;
const e = null == t ? void 0 : t.items,
i = (0, n.Fv)(e, [a.JJ]),
l =
null == e
? void 0
: e.map((e) => {
var i, t;
return null == e ||
null == (i = e.dm_event) ||
null == (t = i.legacy)
? void 0
: t.conversation;
}),
_ =
(null == e
? void 0
: e.find((e) => {
var i;
return null == e || null == (i = e.highlighting)
? void 0
: i.query_tokens;
})) &&
(null == e
? void 0
: e.map((e) => {
var i;
return null == e || null == (i = e.highlighting)
? void 0
: i.query_tokens;
})),
{ entities: s, result: o } = (0, n.Fv)(l, [a.ZP]);
r = {
...r,
result:
null == (v = r) || null == (h = v.result)
? void 0
: h.concat({
messageData: {
conversationIds: o,
entryIds: null == i ? void 0 : i.result,
highlightingTokens: _,
},
}),
entities: {
...(null == i ? void 0 : i.entities),
conversations: {
...(null == (f = r) || null == (b = f.entities)
? void 0
: b.conversations),
...(null == s ? void 0 : s.conversations),
},
},
};
}
return r;
})
: Promise.resolve(g.d),
fetchDMGroupSearch: (t) =>
t
? e
.graphQL(
d(),
{
...t,
withConversationQueryHighlights:
i.isTrue(
"dm_inbox_search_query_highlighting_conversation_results_enabled"
) &&
i.isTrue("direct_messages_incremental_holdback_2022h1"),
},
h
)
.then((e) => {
const i = null == e ? void 0 : e.dmGroupSearchSlice;
if (i) {
const { entities: e, result: t } = p(i);
return {
result: t,
entities: e,
slice_info: i.sliceInfo,
};
}
return g.d;
})
: Promise.resolve(g.d),
fetchDMPeopleSearch: (t) =>
t
? e
.graphQL(
v(),
{
...t,
withConversationQueryHighlights:
i.isTrue(
"dm_inbox_search_query_highlighting_conversation_results_enabled"
) &&
i.isTrue("direct_messages_incremental_holdback_2022h1"),
},
h
)
.then((e) => {
const i = null == e ? void 0 : e.dmPeopleSearchSlice;
if (i) {
const { entities: e, result: t } = p(i);
return {
result: t,
entities: e,
slice_info: i.sliceInfo,
};
}
return g.d;
})
: Promise.resolve(g.d),
fetchDMMutedUsers: ({ count: t, cursor: n }) =>
e
.graphQL(
c(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, r.d)(i),
},
(0, l.kj)((e) => {
var i, t;
return !(
null != e &&
null != (i = e.viewer) &&
null != (t = i.dm_muting_timeline) &&
t.timeline
);
}, "GQL URT: Failed to render DM Muting timeline")
)
.then((e) => {
var i, t;
return (
(null == (i = e.viewer) || null == (t = i.dm_muting_timeline)
? void 0
: t.timeline) || g.cY
);
}),
});
},
5189: (e, i, t) => {
"use strict";
t.d(i, { JJ: () => u, ZP: () => m });
t(6886), t(36728);
var n = t(6899),
l = t(29086),
r = t(22167),
a = t(46395),
_ = t(15804),
s = t(85364);
const o = Object.freeze({
GROUP: "GroupDm",
ONE_TO_ONE: "OneToOneDm",
UNKNOWN: "Unknown",
}),
d = Object.freeze({
MessageCreate: r.Cr.MESSAGE,
ParticipantsJoin: r.Cr.PARTICIPANTS_JOIN,
ParticipantsLeave: r.Cr.PARTICIPANTS_LEAVE,
ConversationNameUpdate: r.Cr.CONVERSATION_NAME_UPDATE,
JoinConversation: r.Cr.JOIN_CONVERSATION,
}),
u = new n.fK.Entity(
"entries",
{
message_data: { attachment: { card: _.Z, tweet: { status: s.Z } } },
},
{
processStrategy: (e, i, t) => {
var n, r, _, s, o, u, c;
const { legacy: m, rest_id: v } =
(null == e ? void 0 : e.dm_event) || {},
g = null == m ? void 0 : m.event_type,
{ affects_sort: h, request_id: p } = m || {};
let f,
b,
y = "Unknown";
g in d && (y = d[g]);
const S =
null == m || null == (n = m.conversation)
? void 0
: n.rest_id,
E = null == m || null == (r = m.event_detail) ? void 0 : r.dm,
A = null == m ? void 0 : m.created_at_millis,
{
card: T,
media: N,
tweet_results: O,
urls_entity: w,
} = (null == E || null == (_ = E.attachments)
? void 0
: _[0]) || {};
if (
(null != T && T.legacy && (f = { card: T }),
null != w &&
w.length &&
E.text &&
w.forEach((e) => {
null != e &&
e.indices[0] &&
(b = E.text
.slice(0, null == e ? void 0 : e.indices[0])
.concat(E.text.slice(e.indices[1])));
}),
"Tweet" ===
(null == O || null == (s = O.result) ? void 0 : s.__typename))
) {
var I, x, D, M, R, C, P, k, q;
const e =
null == O || null == (I = O.result) || null == (x = I.legacy)
? void 0
: x.entities;
let i;
null != e && null != (D = e.media) && D.length
? (i = null == e ? void 0 : e.media[0])
: null != e &&
null != (M = e.urls) &&
M.length &&
(i = null == e ? void 0 : e.urls[0]);
const {
display_url: t,
expanded_url: n,
id_str: l,
indices: r,
url: a,
} = i || {},
{ extended_entities: _ } =
(null == O || null == (R = O.result) ? void 0 : R.legacy) ||
{},
s =
null == _ || null == (C = _.media)
? void 0
: C.map((e) => {
if (null != e && e.video_info) {
var i;
const t =
null == e || null == (i = e.video_info)
? void 0
: i.variants;
return {
...e,
video_info: {
...(null == e ? void 0 : e.video_info),
variants: t,
},
};
}
return e;
}),
o = {
...(null == O ||
null == (P = O.result) ||
null == (k = P.legacy)
? void 0
: k.extended_entities),
media: s,
};
f = {
tweet: {
status: {
...(null == O ? void 0 : O.result),
legacy: {
...(null == O || null == (q = O.result)
? void 0
: q.legacy),
extended_entities: o,
},
},
display_url: t,
expanded_url: n,
indices: r,
url: a,
id: l,
},
};
}
const G = N ? (0, l.m)(N) : null;
G &&
G.type &&
("photo" === G.type
? (f = { photo: G })
: "video" === G.type
? (f = { video: G })
: "animated_gif" === G.type && (f = { animated_gif: G }));
const L = {
affects_sort: h,
request_id: p,
time: A,
type: y,
conversation_id: S,
message_data: {
id: v,
text: b || (null == E ? void 0 : E.text),
entities: null == E ? void 0 : E.entities,
recipient_id:
null == E ||
null == (o = E.recipient_results) ||
null == (u = o.result)
? void 0
: u.rest_id,
sender_id:
null == E || null == (c = E.sender_results)
? void 0
: c.result.rest_id,
attachment: f,
},
id: v,
};
return (0, a.Z)(L, i, t);
},
idAttribute: (e) => {
var i;
return null == e || null == (i = e.dm_event) ? void 0 : i.rest_id;
},
}
),
c = new n.fK.Entity(
"conversations",
{},
{
processStrategy: (e, i, t) => {
var n, l, _;
const {
id: s,
labels: d,
legacy: u,
perspectival_conversation_metadata: c,
rest_id: m,
} = e || {},
v = {},
g = [];
for (const e of (null == u ? void 0 : u.participants_metadata) ||
[]) {
var h;
const i =
null == e || null == (h = e.user_results) ? void 0 : h.result;
if (!i || !i.legacy) continue;
const t = {
description: i.legacy.description,
id_str: i.legacy.id_str,
name: i.legacy.name,
profile_image_url_https:
i.legacy.profile_image_url_https || "",
screen_name: i.legacy.screen_name,
};
(v[i.rest_id] = t), g.push({ user: t, user_id: i.rest_id });
}
let p = null == u || null == (n = u.metadata) ? void 0 : n.avatar;
const f = null == (l = p) ? void 0 : l.media_info,
b = null == e ? void 0 : e.last_readable_event_id;
if (f) {
const {
original_img_height: e,
original_img_url: i,
original_img_width: t,
} = f || {};
p = {
image: { original_info: { height: e, width: t, url: i } },
};
}
const y =
(null == u || null == (_ = u.metadata)
? void 0
: _.conversation_type) === o.GROUP
? r.eD.GROUP
: r.eD.ONE_TO_ONE,
S = {
...(null == u
? void 0
: u.perspectival_conversation_metadata),
...(null == u ? void 0 : u.metadata),
...c,
id: s,
conversation_id: m,
avatar: p,
labels: d,
last_readable_event_id: b,
type: y,
participants: g,
users: v,
};
return (0, a.Z)(S, i, t);
},
idAttribute: (e) => {
var i;
return null == e || null == (i = e.legacy)
? void 0
: i.conversation_id;
},
}
);
c.define({ entities: u });
const m = c;
},
29086: (e, i, t) => {
"use strict";
t.d(i, { m: () => n });
const n = (e) => {
const i = null == e ? void 0 : e.media_info;
if ("ApiImage" === (null == i ? void 0 : i.__typename)) {
var t;
return {
altText: i.alt_text,
display_url: i.original_img_url,
expanded_url: i.original_img_url,
ext_alt_text: i.alt_text,
...((null == (t = i.color_info) ? void 0 : t.palette) && {
ext_media_color: { palette: i.color_info.palette },
}),
id: r(e.media_id),
id_str: e.media_id || "",
media_key: e.media_key,
media_url: i.original_img_url,
media_url_https: i.original_img_url,
original_info: {
height: i.original_img_height,
width: i.original_img_width,
},
sizes: {
original: {
h: i.original_img_height,
resize: "fit",
w: i.original_img_width,
},
},
type: "photo",
};
}
if ("ApiVideo" === (null == i ? void 0 : i.__typename)) {
const { __typename: t, ...n } = i;
return l(n, e.media_id, null == i ? void 0 : i.__typename);
}
if ("ApiGif" === (null == i ? void 0 : i.__typename)) {
const { __typename: t, ...n } = i;
return l(n, e.media_id, null == i ? void 0 : i.__typename);
}
},
l = (e, i, t) => {
var n;
const l = "ApiGif" === t ? "animated_gif" : "video",
a = e.preview_image;
return {
type: l,
id: r(i),
id_str: i || "",
ext_alt_text: null == a ? void 0 : a.alt_text,
ext_media_color: {
palette:
(null == a || null == (n = a.color_info)
? void 0
: n.palette) || [],
},
media_url: (null == a ? void 0 : a.original_img_url) || "",
media_url_https: (null == a ? void 0 : a.original_img_url) || "",
url: (null == a ? void 0 : a.original_img_url) || "",
display_url: (null == a ? void 0 : a.original_img_url) || "",
expanded_url: (null == a ? void 0 : a.original_img_url) || "",
original_info: {
height: (null == a ? void 0 : a.original_img_height) || 0,
width: (null == a ? void 0 : a.original_img_width) || 0,
},
sizes: {
original: {
h: (null == a ? void 0 : a.original_img_height) || 0,
resize: "fit",
w: (null == a ? void 0 : a.original_img_width) || 0,
},
},
video_info: {
aspect_ratio: [
e.aspect_ratio.numerator,
e.aspect_ratio.denominator,
],
...(e.duration_millis && { duration_millis: e.duration_millis }),
variants: e.variants.map((e) => ({
bitrate: e.bit_rate,
content_type: e.content_type,
url: e.url,
})),
},
};
},
r = (e) => {
const i = parseInt(e, 10);
return Number.isNaN(i) ? 0 : i;
};
},
22167: (e, i, t) => {
"use strict";
t.d(i, { Cr: () => r, To: () => l, UN: () => a, eD: () => n });
const n = Object.freeze({ ONE_TO_ONE: "ONE_TO_ONE", GROUP: "GROUP_DM" }),
l = Object.freeze({ AT_END: "AT_END", HAS_MORE: "HAS_MORE" }),
r = Object.freeze({
CONVERSATION_AVATAR_UPDATE: "conversation_avatar_update",
CONVERSATION_NAME_UPDATE: "conversation_name_update",
CONVERSATION_PROFILE_INFO_HEADER: "conversation_profile_info_header",
CONVERSATION_READ: "conversation_read",
CONVO_METADATA_UPDATE: "convo_metadata_update",
DELEGATE_ALERT_BANNER: "delegate_alert_banner",
DISABLE_NOTIFICATIONS: "disable_notifications",
ENABLE_NOTIFICATIONS: "enable_notifications",
JOIN_CONVERSATION: "join_conversation",
LOADING_INDICATOR: "loading_indicator",
MARK_ALL_AS_READ: "mark_all_as_read",
MENTION_NOTIFICATIONS_UPDATE: "mention_notifications_setting_update",
MESSAGE: "message",
MESSAGE_DELETE: "message_delete",
MESSAGE_MARK_AS_NOT_SPAM: "message_unmark_as_spam",
MESSAGE_MARK_AS_SPAM: "message_mark_as_spam",
NEW_MESSAGES_DIVIDER: "new_messages_divider",
PARTICIPANTS_JOIN: "participants_join",
PARTICIPANTS_LEAVE: "participants_leave",
REACTION_CREATE: "reaction_create",
REACTION_DELETE: "reaction_delete",
READ_ONLY_INDICATOR: "read_only_indicator",
REMOVE_CONVERSATION: "remove_conversation",
TRUST_CONVERSATION: "trust_conversation",
TYPING_INDICATOR: "typing_indicator",
WELCOME_MESSAGE: "welcome_message_create",
}),
a = Object.freeze({ MUTUAL_FRIENDS: "mutual_friends" });
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.DirectMessagesGraphQL.3a87188a.js.map

View File

@@ -1,45 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.DismissRitoSuggestedAction"],
{
5737: (e) => {
e.exports = {
queryId: "jYvwa61cv3NwNP24iUru6g",
operationName: "DismissRitoSuggestedAction",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
4913: (e, t, s) => {
"use strict";
s.r(t),
s.d(t, {
default: () => a,
isFatalDismissRitoSuggestedAction: () => u,
});
var i = s(72599),
o = s(17360),
n = s(5737),
r = s.n(n);
const u = (e, t) => {
const s =
"Done" ===
(null == t ? void 0 : t.user_dismiss_rito_suggested_action);
return (
s ||
(0, i.ZP)(
"GQL DismissRitoSuggestedAction: Failed to remove flagged account"
),
!s && (0, o.jB)(e)
);
},
a = ({ apiClient: e, featureSwitches: t }) => ({
dismissRitoSuggestedAction(t) {
const { userId: s } = t;
return e.graphQL(r(), { userId: s }, u);
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.DismissRitoSuggestedAction.f5afb42a.js.map

View File

@@ -1,118 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Drafts"],
{
12632: (e) => {
e.exports = {
queryId: "cH9HZWz_EW9gnswvA4ZRiQ",
operationName: "CreateDraftTweet",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
71173: (e) => {
e.exports = {
queryId: "bkh9G3FGgTldS9iTKWWYYw",
operationName: "DeleteDraftTweet",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
81539: (e) => {
e.exports = {
queryId: "JIeXE-I6BZXHfxsgOkyHYQ",
operationName: "EditDraftTweet",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
66043: (e) => {
e.exports = {
queryId: "ZkqIq_xRhiUme0PBJNpRtg",
operationName: "FetchDraftTweets",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
49498: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => _ });
var a = r(12632),
i = r.n(a),
s = r(71173),
d = r.n(s),
n = r(81539),
o = r.n(n),
u = r(66043),
w = r.n(u),
p = r(98671);
const _ = ({ apiClient: e, featureSwitches: t }) => ({
createDraftTweet: (t) =>
e.graphQL(i(), { post_tweet_request: (0, p.y)(t) }).then((e) => {
var t;
return null == (t = e.tweet) ? void 0 : t.rest_id;
}),
deleteDraftTweet(t) {
const { draftTweetId: r } = t;
return e.graphQL(d(), { draft_tweet_id: r });
},
editDraftTweet(t) {
const { draftTweetId: r, ...a } = t;
return e
.graphQL(o(), {
draft_tweet_id: r,
post_tweet_request: (0, p.y)(a),
})
.then(() => r);
},
fetchDraftTweets(t) {
const r = {
ascending: !1,
limit: void 0,
max_id: void 0,
min_id: void 0,
};
return e.graphQL(w(), { ...r, ...t }, (0, p.F)("Draft")).then((e) => {
var t, r;
return (
(null == (t = e.viewer) || null == (r = t.draft_list)
? void 0
: r.response_data) || []
);
});
},
});
},
98671: (e, t, r) => {
"use strict";
r.d(t, { F: () => d, y: () => s });
var a = r(72599),
i = r(17360);
function s({ exclude_reply_user_ids: e, media_ids: t, ...r }) {
return {
...r,
exclude_reply_user_ids: e ? e.split(",") : [],
media_ids: t ? t.split(",") : [],
};
}
const d = (e) => (t, r) => {
const s =
r &&
r.viewer &&
r.viewer.draft_list &&
r.viewer.draft_list.response_data,
d =
r &&
r.viewer &&
!!r.viewer.scheduled_tweet_list &&
r.viewer.scheduled_tweet_list;
return (
!s &&
!d &&
((0, a.ZP)(`GQL: Failed to render ${e} Tweets List`), (0, i.jB)(t))
);
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Drafts.2aa71e7a.js.map

View File

@@ -1,56 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.EmailNotificationSettings"],
{
88900: (e) => {
e.exports = {
queryId: "2qKKYFQift8p5-J1k6kqxQ",
operationName: "WriteEmailNotificationSettings",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
44408: (e) => {
e.exports = {
queryId: "JpjlNgn4sLGvS6tgpTzYBg",
operationName: "ViewerEmailSettings",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
6382: (e, t, i) => {
"use strict";
i.r(t), i.d(t, { default: () => u });
var n = i(72599),
r = i(88900),
s = i.n(r),
a = i(44408),
o = i.n(a);
const u = ({ apiClient: e, featureSwitches: t }) => ({
fetch: () =>
e.graphQL(o(), {}).then((e) => {
let t;
if (e.viewer) {
var i;
const { user_results: n } = e.viewer;
"User" ===
(null == n || null == (i = n.result) ? void 0 : i.__typename) &&
(t = n.result.notifications_email_notifications);
}
return (
t ||
(0, n.ZP)(
"GraphQL email notification settings query returned no settings object."
),
t || {}
);
}),
update(t) {
const { settings: i, userId: n } = t;
return e.graphQL(s(), { userId: n, settings: i });
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.EmailNotificationSettings.b07029ca.js.map

View File

@@ -1,78 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Explore"],
{
52055: (e) => {
e.exports = {
queryId: "UGQD_VslAJBJ4XzigsBYAA",
operationName: "ImmersiveMedia",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
93490: (e, _, i) => {
"use strict";
i.r(_),
i.d(_, { default: () => o, isImmersiveMediaTimelineError: () => d });
var n = i(72599),
t = i(17360),
a = i(83175),
r = i(52055),
s = i.n(r),
l = i(82249);
const d = (e, _) => {
var i;
const a =
null == _ || null == (i = _.immersiveMedia) ? void 0 : i.timeline;
return (
a || (0, n.ZP)("GQL failed to query for Immersive Media timeline"),
!a && (0, t.jB)(e)
);
},
o = ({ apiClient: e, featureSwitches: _ }) => ({
fetchImmersiveMedia: (i) =>
e
.graphQL(
s(),
{
pinned_tweet_id: null == i ? void 0 : i.pinned_tweet_id,
page_name: null == i ? void 0 : i.page_name,
...(0, a.d)(_),
},
d
)
.then((e) => {
var _;
return (
(null == e || null == (_ = e.immersiveMedia)
? void 0
: _.timeline) || l.cY
);
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Explore.9b2e28ea.js.map

View File

@@ -1,19 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.FeatureSwitch"],
{
36162: (e, t, s) => {
s.r(t),
s.d(t, { REQUEST_FEATURE_SWITCHES_PATH: () => i, default: () => a });
const i = "help/settings",
n = { include_zero_rate: !0 },
a = ({ apiClient: e, featureSwitches: t }) => ({
fetch: (t, s = {}) => e.get(i, { ...n, ...t }, s),
fetchLanguages: (t, s = {}) =>
e.get("help/languages", { ...n, ...t }, s),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.FeatureSwitch.1373e1ea.js.map

View File

@@ -1,38 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Friendships"],
{
31149: (e, s, t) => {
t.r(s), t.d(s, { default: () => d });
var i = t(6899);
const n = { users: [t(13239).Z] };
var r = t(55371);
const o = (e) => ({ ...r.getGlobalDefaults(e), cursor: -1 }),
l = (e) => (0, i.Fv)(e, n),
d = ({ apiClient: e, featureSwitches: s }) => ({
fetchFollowersYouFollow: (t, i) =>
e.get("friends/following/list", { ...o(s), ...t }, i || {}).then(l),
fetchPendingFollowers(t, i) {
const n = { ...o(s), ...t, stringify_ids: !0, count: 100 };
return e.get("friendships/incoming", n, i || {}).then(l);
},
fetchFollowing(t, i) {
const n = Array.isArray(t) ? void 0 : t;
return e.get("friends/list", { ...o(s), ...n }, i || {}).then(l);
},
acceptPendingFollower: (t, i) =>
e.post("friendships/accept", { ...o(s), ...t }, {}, i || {}),
declinePendingFollower: (t, i) =>
e.post("friendships/deny", { ...o(s), ...t }, {}, i || {}),
updateFriendship: (t, i) =>
e.post("friendships/update", { ...o(s), ...t }, {}, i || {}),
createAllFriendships: (t, i) =>
e.post("friendships/create_all", { ...o(s), ...t }, {}, i || {}),
destroyAllFriendships: (t, i) =>
e.post("friendships/destroy_all", { ...o(s), ...t }, {}, i || {}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Friendships.48d5d37a.js.map

View File

@@ -1,19 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.GifSearch"],
{
95264: (e, t, s) => {
s.r(t), s.d(t, { default: () => r });
const r = ({ apiClient: e, featureSwitches: t }) => ({
categories: (t, s) => e.get("foundmedia/categories", t, s),
category(t, s) {
const { category: r, ...a } = t;
return e.get(`foundmedia/categories/${r}`, a, s);
},
search: (t, s) => e.get("foundmedia/search", t, s),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.GifSearch.d5998b3a.js.map

View File

@@ -1,24 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.GraphQLErrors"],
{
91121: (e) => {
e.exports = {
queryId: "2V2W3HIBuMW83vEMtfo_Rg",
operationName: "GraphQLError",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
54143: (e, r, t) => {
"use strict";
t.r(r), t.d(r, { default: () => o });
var a = t(91121),
s = t.n(a);
const o = ({ apiClient: e, featureSwitches: r }) => ({
throwError: () => e.graphQL(s(), {}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.GraphQLErrors.aaf12c0a.js.map

View File

@@ -1,724 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Graphql"],
{
29848: (e) => {
e.exports = {
queryId: "h52d1F7dumWGE1tJAhQBpg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
57274: (e) => {
e.exports = {
queryId: "8w-D2OhT0jmGzXaNY--UQA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
2216: (e) => {
e.exports = {
queryId: "8LDNeOEm0kA98uoDsqXvMg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
41839: (e) => {
e.exports = {
queryId: "JpFFCTBPxYVlDqMUr9twzQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97621: (e) => {
e.exports = {
queryId: "RvojYJJB90VwJ0rdVhbjMQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
87669: (e) => {
e.exports = {
queryId: "b22I8WSfQ8H4Ev8486xAlQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
75840: (e) => {
e.exports = {
queryId: "LZfAdxTdNolKXw6ZkoY_kA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
50931: (e) => {
e.exports = {
queryId: "hnaqw2Vok5OETdBVa_uexw",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
59113: (e) => {
e.exports = {
queryId: "-G9eXTmseyiSenbqjrEG6w",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
26491: (e) => {
e.exports = {
queryId: "o0YtPFnd4Lk_pOQb9alCvA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
16221: (e) => {
e.exports = {
queryId: "D8mVcJSVv66_3NcR7fOf6g",
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",
],
},
};
},
97534: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => V,
errorBreadcrumb: () => P,
isFatalGenericTimelineError: () => M,
isFatalModeratedTimelineError: () => j,
isFatalTeamsResponseError: () => C,
isFatalUserScopedFollowTimelineError: () => N,
isFatalViewerScopedFollowTimelineError: () => U,
parseUserScopedTimeline: () => Z,
parseViewerScopedTimeline: () => E,
});
var n = t(58955),
i = t(79363),
r = t(72599),
a = t(32091),
l = t(17360),
o = 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),
f = t.n(h),
g = t(97621),
y = t.n(g),
q = t(87669),
x = t.n(q),
k = t(75840),
T = t.n(k),
A = t(50931),
I = t.n(A),
B = t(59113),
F = t.n(B),
G = t(26491),
S = t.n(G),
Q = t(16221),
z = t.n(Q),
L = t(82249);
const Z = (e) => {
var _;
let t = L.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) ||
L.cY);
return t;
},
P = (e) => {
var _;
return { code: null == (_ = e[0]) ? void 0 : _.code };
},
E = (e) => {
let _ = L.cY;
var t;
null != e &&
e.viewer &&
(_ =
(null == (t = e.viewer.timeline) ? void 0 : t.timeline) || L.cY);
return _;
},
C = (e) =>
Array.isArray(e) &&
!(0, i.Z)(
e,
(e) =>
Array.isArray(e.path) &&
/^viewer.teams.act_as.\d+(.|$)/.test(e.path.join("."))
),
N = (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, r.ZP)("GQL URT: Failed to render Follow timeline", {
extra: P(e),
}),
!i && (0, l.jB)(e)
);
},
U = (e, _) => {
var t;
const n = null == _ || null == (t = _.viewer) ? void 0 : t.timeline;
return (
n ||
(0, r.ZP)("GQL URT: Failed to render Subscriptions timeline", {
extra: P(e),
}),
!n && (0, l.jB)(e)
);
},
Y = (e, _) => {
var t, n;
const i =
null == _ ||
null == (t = _.viewer) ||
null == (n = t.muting_timeline)
? void 0
: n.timeline;
return (
i ||
(0, r.ZP)("GQL URT: Failed to render Muting timeline", {
extra: P(e),
}),
!i && (0, l.jB)(e)
);
},
j = (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, r.ZP)(
"GQL URT: Failed to render ModeratedTimeline timeline",
{ extra: P(e) }
),
!i && (0, l.jB)(e)
);
},
M = (e, _) => {
var t;
const n = null == _ || null == (t = _.timeline) ? void 0 : t.timeline;
return (
n ||
(0, r.ZP)("GQL URT: Failed to render GenericTimelineById", {
extra: P(e),
}),
!n && (0, l.jB)(e)
);
};
function R(e, _, t) {
let n;
function i(e) {
return (
e &&
e.viewer &&
e.viewer &&
e.viewer.timeline &&
e.viewer.timeline.timeline
);
}
return (
(n = e === a.kH.Imported ? v() : e === a.kH.AutoBlock ? w() : c()),
({ count: a, cursor: s }) =>
_.graphQL(
n,
{
count: a,
cursor: s,
includePromotedContent: !1,
...(0, o.d)(t),
withSafetyModeUserFields: t.isTrue(
"rito_safety_mode_features_enabled"
),
},
(_, t) => {
const n = i(t);
return (
n ||
(0, r.ZP)(
`GQL URT: Failed to query for Blocked Accounts [${e}]`,
{ extra: P(_) }
),
!n && (0, l.jB)(_)
);
}
).then((e) => i(e) || L.cY)
);
}
const V = ({ apiClient: e, featureSwitches: _ }) => ({
fetchBlockedAccountsImportedGraphql: R(a.kH.Imported, e, _),
fetchBlockedAccountsAllGraphql: R(a.kH.All, e, _),
fetchBlockedAccountsAutoBlockGraphql: R(a.kH.AutoBlock, e, _),
fetchFollowers: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
f(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
N
)
.then(Z),
fetchFollowersYouKnow: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
y(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
N
)
.then(Z),
fetchFollowing: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
x(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
N
)
.then(Z),
fetchSuperFollowers: ({ count: t, cursor: n }) =>
e
.graphQL(
S(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
U
)
.then(E),
fetchViewerTeams: () =>
e
.graphQLFullResponse(z(), { ...(0, o.S)(_) }, C)
.then(({ data: e, errors: _ }) => {
const { viewer: t } = e,
i = (t && t.teams && t.teams.act_as) || [];
if (!_ || !_.length) return i;
const r = (0, n.Z)(_.map((e) => e.path && e.path[3]));
return i.filter((e, _) => !r.has(_));
})
.then(p),
fetchModeratedTimeline: ({ count: t, cursor: n, rootTweetId: i }) =>
e
.graphQL(
I(),
{
rootTweetId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
j
)
.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) || L.cY
);
}
return L.cY;
}),
fetchMutedAccounts: ({ count: t, cursor: n }) =>
e
.graphQL(
F(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
Y
)
.then((e) => {
var _, t;
return (
(null == (_ = e.viewer) || null == (t = _.muting_timeline)
? void 0
: t.timeline) || L.cY
);
}),
fetchGenericTimelineById: ({ count: t, cursor: n, timelineId: i }) =>
e
.graphQL(
T(),
{
timelineId: i,
count: t,
cursor: n,
withQuickPromoteEligibilityTweetFields: !0,
...(0, o.d)(_),
},
M
)
.then((e) => {
var _;
return (null == (_ = e.timeline) ? void 0 : _.timeline) || L.cY;
}),
});
},
49890: (e, _, t) => {
"use strict";
t.d(_, { B: () => a, Z: () => l });
var n = t(6899),
i = t(46395),
r = t(90650);
const a = new n.fK.Entity(
"teams",
{ user: r.Z },
{
idAttribute: ({ user: e }) => e[r.Z.idAttribute] || e,
processStrategy: i.Z,
}
),
l = new n.fK.Array(a);
},
32091: (e, _, t) => {
"use strict";
t.d(_, { Gm: () => o, ZH: () => s, kH: () => l });
var n = t(78772),
i = t(52612),
r = t(57659),
a = t(62104);
const l = { All: "any", AutoBlock: "autoblock", Imported: "imported" },
o = (e) =>
(0, a.Z)({
timelineId: `blockedAccountsGraphQL-${e}`,
network: {
getEndpoint: (_) =>
e === l.Imported
? _.Graphql.fetchBlockedAccountsImportedGraphql
: e === l.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 = r.ZP.select(n, _);
return t && !t.blocking;
})
.map((_) => e.removeEntry(_.entryId))
);
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Graphql.997f355a.js.map

View File

@@ -1,24 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Guest"],
{
61041: (e, t, s) => {
s.r(t), s.d(t, { default: () => n });
const n = ({ apiClient: e, featureSwitches: t }) => ({
fetchGuestSegment(s, n = {}) {
const r = t.getValueWithoutScribeImpression(
"responsive_web_logged_out_gating_non_impressing_member_segments"
);
return Array.isArray(r) && r.length > 0
? e.get("rux/logged_out/segmentations", s, n).then(
(e) => e.segmentation,
(e) => {}
)
: Promise.resolve();
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Guest.4193f5aa.js.map

View File

@@ -1,224 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Home"],
{
85302: (e) => {
e.exports = {
queryId: "zhX91JE87mWvfprhYE97xA",
operationName: "HomeLatestTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
74612: (e) => {
e.exports = {
queryId: "HCosKfLNW1AcOo3la3mMgg",
operationName: "HomeTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
27602: (e, t, n) => {
"use strict";
n.r(t), n.d(t, { default: () => p, isFatalHomeTimelineError: () => u });
var _ = n(72599),
i = n(51573),
o = n(27479),
r = n(17360),
s = n(83175),
a = n(85302),
l = n.n(a),
d = n(74612),
c = n.n(d),
m = n(82249);
const u = (e, t) => {
var n;
const i =
null == t || null == (n = t.home) ? void 0 : n.home_timeline_urt;
return (
i || (0, _.ZP)("GQL Home: Failed to query for Home timeline"),
!i && (0, r.jB)(e)
);
},
p = ({ apiClient: e, featureSwitches: t }) => ({
fetchHome: ({ count: n, cursor: _, requestContext: r, timeout: a }) =>
(0, i.o)("homeTimeline", () => {
const i = o.m.get(),
l = !!(i && i.getTweets().length > 0),
d = {
count: n,
cursor: _,
includePromotedContent: !0,
latestControlAvailable: !0,
requestContext: r,
withCommunity: t.isTrue("c9s_enabled"),
...(0, s.d)(t),
};
return e
.graphQL(
c(),
l ? { ...d, seenTweetIds: l ? i && i.getTweets() : [] } : d,
u,
{ forcePost: l, timeout: a }
)
.then((e) => {
var t;
l && i && i.clearTweets();
return (
(null == e || null == (t = e.home)
? void 0
: t.home_timeline_urt) || m.cY
);
});
}),
fetchHomeLatest: ({
count: n,
cursor: _,
requestContext: r,
timeout: a,
}) =>
(0, i.o)("homeLatestTimeline", () => {
const i = o.m.getLatest(),
d = !!(i && i.getTweets().length > 0),
c = {
count: n,
cursor: _,
includePromotedContent: !0,
latestControlAvailable: !0,
requestContext: r,
...(0, s.d)(t),
};
return e
.graphQL(
l(),
d ? { ...c, seenTweetIds: d ? i && i.getTweets() : [] } : c,
u,
{ forcePost: d, timeout: a }
)
.then((e) => {
var t;
d && i && i.clearTweets();
return (
(null == e || null == (t = e.home)
? void 0
: t.home_timeline_urt) || m.cY
);
});
}),
});
},
51573: (e, t, n) => {
"use strict";
n.d(t, { o: () => l });
n(21515), n(6886);
var _ = n(72599);
const i = new (class {
constructor() {
this.promise = new Promise((e, t) => {
(this.reject = t), (this.resolve = e);
});
}
})(),
o = i.promise;
if ("undefined" != typeof document) {
let e;
document.addEventListener("DOMContentLoaded", () => {
i.resolve(), null != e && clearTimeout(e);
});
const t = () => {
"loading" !== document.readyState
? i.resolve()
: (e = setTimeout(() => {
t();
}, 500));
};
t();
}
var r = n(86916),
s = n(79150),
a = n(25943);
function l(e, t, n) {
const i =
"undefined" != typeof window ? window.__PREFETCH_DATA__ : void 0;
if (!i) return t();
const l = Date.now(),
d = i.timestamp || l;
if (Math.max(0, l - d) >= 3e5)
return delete window.__PREFETCH_DATA__, t();
const c = i.items[e];
if (!c) return t();
return (n ? n(c.meta) : Promise.resolve(!0)).then(
(n) =>
n
? ((a.q.didPrefetch[e] = !0),
Promise.race([c.promise, o])
.then(
(n) =>
n
? r.i(n, s.AK)
: ((0, _.ZP)(
`DOM loaded but prefetch data was not present for ${e}`
),
t()),
() => ((a.q.prefetchPromiseRejected[e] = !0), t())
)
.finally(() => {
delete i.items[e];
}))
: t(),
() => t()
);
}
},
25943: (e, t, n) => {
"use strict";
n.d(t, { q: () => _ });
const _ = { didPrefetch: {}, prefetchPromiseRejected: {} };
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Home.f3e5f1aa.js.map

View File

@@ -1,18 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Jot"],
{
49135: (e, t, r) => {
r.r(t), r.d(t, { default: () => o });
const o = ({ apiClient: e, featureSwitches: t }) => ({
clientEvent: (t, r = !1, o = {}) =>
e.post("jot/client_event", t, { keepalive: r }, o, ".json"),
errorLog: (t, r = {}) => e.post("jot/error_log", t, {}, r, ".json"),
externalReferer: (t, r = {}) =>
e.post("jot/external_referer", t, {}, r, ".json"),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Jot.5281b88a.js.map

View File

@@ -1,53 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.KeyRegistry"],
{
98420: (e, t, s) => {
s.r(t), s.d(t, { default: () => i });
s(6886), s(67694);
const i = ({ apiClient: e, featureSwitches: t }) => ({
register: ({ device_id: s, ...i }) =>
e.post(
"keyregistry/register",
i,
{
dm_secret_conversations_enabled: t.isTrue(
"dm_secret_conversations_enabled"
),
krs_registration_enabled: t.isTrue("krs_registration_enabled"),
},
{ "X-Client-UUID": s, "content-type": "application/json" },
""
),
extractPublicKeys: (s = []) =>
Promise.all(
s.map((s) =>
e
.get(
`keyregistry/extract_public_keys/${s}`,
{
dm_secret_conversations_enabled: t.isTrue(
"dm_secret_conversations_enabled"
),
krs_registration_enabled: t.isTrue(
"krs_registration_enabled"
),
},
{},
""
)
.then(({ public_keys: e = [] }) =>
e.map(({ identity_key: e, ...t }) => ({
user_id: s,
identity_key: e,
...t,
}))
)
)
).then((e) => e.flat()),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.KeyRegistry.c9073cea.js.map

View File

@@ -1,101 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.LegacyAndUnifiedCards"],
{
6123: (e) => {
e.exports = {
queryId: "jnwTSDR-Eo_HWlSkXPcMGA",
operationName: "CardPreviewByTweetText",
operationType: "query",
metadata: {
featureSwitches: [
"responsive_web_enhance_cards_enabled",
"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",
],
},
};
},
50269: (e, r, a) => {
"use strict";
a.r(r), a.d(r, { default: () => u });
a(71372);
var t = a(6899),
i = a(69114),
n = a(62707),
d = a(46395),
s = a(15804),
_ = a(90650);
const c = new t.fK.Entity(
"legacyAndUnifiedCards",
{},
{
processStrategy: (e, r, a) => {
var t, i;
const _ = {};
if (
("HasCard" ===
(null == (t = e.unified_card) ? void 0 : t.card_fetch_state) &&
(_.unifiedCard = (0, d.Z)(e.unified_card, r, a)),
null != (i = e.card) && i.legacy)
) {
const t = (0, s.n)(e.card.legacy);
_.legacyCard = (0, n.Z)(t, r, a);
}
return _;
},
idAttribute: "id",
}
);
c.define({ users: new t.fK.Values(_.Z) });
const o = c;
var l = a(6123),
p = a.n(l);
function w(e, r, a, n) {
const { url: d } = r,
{ retryDelay: s, retryMax: _ } = n;
return a >= _
? Promise.reject(
new Error(
`retry limit of ${_} reached when fetching card preview for ${d} from graphql`
)
)
: e
.graphQL(p(), { tweetText: d })
.then((_) =>
_.card_preview
? "Crawling" === _.card_preview.state
? (0, i.Z)(s).then(() => w(e, r, a + 1, n))
: "CardNotFound" === _.card_preview.state
? Promise.resolve({ result: !1 })
: _.card_preview.state
? Promise.reject(
new Error(
`received state of ${_.card_preview.state} when fetching card preview for ${d}`
)
)
: (0, t.Fv)({ ..._.card_preview, id: d }, o)
: Promise.reject(
new Error(
`received undefined card_preview payload when fetching a card preview for ${d}`
)
)
);
}
const u = ({ apiClient: e, featureSwitches: r }) => ({
fetchCardPreview: (a, t) =>
w(e, a, 0, {
retryDelay: r.getNumberValue(
"card_compose_preview_retry_after_ms",
3e3
),
retryMax: r.getNumberValue("card_compose_preview_retry_max", 5),
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.LegacyAndUnifiedCards.2c74e4fa.js.map

File diff suppressed because it is too large Load Diff

View File

@@ -1,67 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.LiveEvent"],
{
98930: (e, t, s) => {
s.r(t), s.d(t, { default: () => v });
var n = s(6899),
a = s(93333),
r = s(88701),
i = s(6623),
c = s(87233),
o = s(55371);
const u = (e) => ({
...o.getGlobalDefaults(e),
...c.getGlobalDefaults(e),
}),
v = ({ apiClient: e, featureSwitches: t }) => ({
fetchLiveEventMetadata(s, c) {
const { eventId: o, teamUserId: v } = s,
l = Object.assign({}, c, (0, i.c)(), (0, a.Z)(v));
return e
.get(
`live_event/1/${o}/timeline`,
{ ...u(t), count: 0, urt: !0, ext: "mediaColor" },
l
)
.then((e) => (0, n.Fv)(e, r.u));
},
updateRemindMeSubscription(t, s) {
const { eventId: n, params: a } = t;
return e.post(`live_event/1/${n}/subscription`, {}, a, s);
},
});
},
88701: (e, t, s) => {
s.d(t, { j: () => p, u: () => d });
var n = s(6899),
a = s(50445),
r = s(13239),
i = s(46395);
const c = new n.fK.Entity("broadcasts", {}, { processStrategy: i.Z }),
o = new n.fK.Entity("audiospaces", {}, { processStrategy: i.Z }),
u = new n.fK.Entity("liveEvents", {}, { processStrategy: i.Z }),
v = new n.fK.Entity("slates", {}, { processStrategy: i.Z }),
l = new n.fK.Values([u]),
d = new n.fK.Object({
twitter_objects: {
audiospaces: [o],
broadcasts: [c],
live_events: [u],
slates: [v],
tweets: [a.Z],
users: [r.Z],
},
}),
p = new n.fK.Object({ broadcasts: [c], events: l });
},
93333: (e, t, s) => {
function n(e) {
return e ? { "x-act-as-user-id": e } : {};
}
s.d(t, { Z: () => n });
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.LiveEvent.6258c53a.js.map

View File

@@ -1,19 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.LivePipeline"],
{
53346: (e, s, i) => {
i.r(s), i.d(s, { default: () => t });
const t = ({ apiClient: e, featureSwitches: s }) => ({
updateSubscriptions(s, i) {
const { sessionId: t, toSubscribe: n, toUnsubscribe: p } = s,
o = { sub_topics: n.join(","), unsub_topics: p.join(",") },
u = { ...i, "LivePipeline-Session": t };
return e.post("live_pipeline/update_subscriptions", o, {}, u, "");
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.LivePipeline.24e2d3fa.js.map

View File

@@ -1,756 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.LoggedOutNotifications", "endpoints.Graphql"],
{
29848: (e) => {
e.exports = {
queryId: "h52d1F7dumWGE1tJAhQBpg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
57274: (e) => {
e.exports = {
queryId: "8w-D2OhT0jmGzXaNY--UQA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
2216: (e) => {
e.exports = {
queryId: "8LDNeOEm0kA98uoDsqXvMg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
33823: (e) => {
e.exports = {
queryId: "BqIHKmwZKtiUBPi07jKctg",
operationName: "EnableLoggedOutWebNotifications",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
41839: (e) => {
e.exports = {
queryId: "JpFFCTBPxYVlDqMUr9twzQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97621: (e) => {
e.exports = {
queryId: "RvojYJJB90VwJ0rdVhbjMQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
87669: (e) => {
e.exports = {
queryId: "b22I8WSfQ8H4Ev8486xAlQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
75840: (e) => {
e.exports = {
queryId: "LZfAdxTdNolKXw6ZkoY_kA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
50931: (e) => {
e.exports = {
queryId: "hnaqw2Vok5OETdBVa_uexw",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
59113: (e) => {
e.exports = {
queryId: "-G9eXTmseyiSenbqjrEG6w",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
26491: (e) => {
e.exports = {
queryId: "o0YtPFnd4Lk_pOQb9alCvA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
16221: (e) => {
e.exports = {
queryId: "D8mVcJSVv66_3NcR7fOf6g",
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",
],
},
};
},
97534: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => R,
errorBreadcrumb: () => Z,
isFatalGenericTimelineError: () => O,
isFatalModeratedTimelineError: () => j,
isFatalTeamsResponseError: () => P,
isFatalUserScopedFollowTimelineError: () => U,
isFatalViewerScopedFollowTimelineError: () => C,
parseUserScopedTimeline: () => z,
parseViewerScopedTimeline: () => E,
});
var n = t(58955),
i = t(79363),
a = t(72599),
r = t(32091),
l = t(17360),
o = 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),
h = t.n(m),
v = t(41839),
g = t.n(v),
f = t(97621),
y = t.n(f),
q = t(87669),
x = t.n(q),
k = t(75840),
T = t.n(k),
A = t(50931),
B = t.n(A),
I = t(59113),
F = t.n(I),
L = t(26491),
G = t.n(L),
S = t(16221),
Q = t.n(S),
N = t(82249);
const z = (e) => {
var _;
let t = N.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) ||
N.cY);
return t;
},
Z = (e) => {
var _;
return { code: null == (_ = e[0]) ? void 0 : _.code };
},
E = (e) => {
let _ = N.cY;
var t;
null != e &&
e.viewer &&
(_ =
(null == (t = e.viewer.timeline) ? void 0 : t.timeline) || N.cY);
return _;
},
P = (e) =>
Array.isArray(e) &&
!(0, i.Z)(
e,
(e) =>
Array.isArray(e.path) &&
/^viewer.teams.act_as.\d+(.|$)/.test(e.path.join("."))
),
U = (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, l.jB)(e)
);
},
C = (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, l.jB)(e)
);
},
Y = (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, l.jB)(e)
);
},
j = (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, l.jB)(e)
);
},
O = (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, l.jB)(e)
);
};
function M(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 ? h() : e === r.kH.AutoBlock ? w() : c()),
({ count: r, cursor: s }) =>
_.graphQL(
n,
{
count: r,
cursor: s,
includePromotedContent: !1,
...(0, o.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, l.jB)(_)
);
}
).then((e) => i(e) || N.cY)
);
}
const R = ({ apiClient: e, featureSwitches: _ }) => ({
fetchBlockedAccountsImportedGraphql: M(r.kH.Imported, e, _),
fetchBlockedAccountsAllGraphql: M(r.kH.All, e, _),
fetchBlockedAccountsAutoBlockGraphql: M(r.kH.AutoBlock, e, _),
fetchFollowers: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
g(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
U
)
.then(z),
fetchFollowersYouKnow: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
y(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
U
)
.then(z),
fetchFollowing: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
x(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
U
)
.then(z),
fetchSuperFollowers: ({ count: t, cursor: n }) =>
e
.graphQL(
G(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
C
)
.then(E),
fetchViewerTeams: () =>
e
.graphQLFullResponse(Q(), { ...(0, o.S)(_) }, P)
.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(
B(),
{
rootTweetId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
j
)
.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) || N.cY
);
}
return N.cY;
}),
fetchMutedAccounts: ({ count: t, cursor: n }) =>
e
.graphQL(
F(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, o.d)(_),
},
Y
)
.then((e) => {
var _, t;
return (
(null == (_ = e.viewer) || null == (t = _.muting_timeline)
? void 0
: t.timeline) || N.cY
);
}),
fetchGenericTimelineById: ({ count: t, cursor: n, timelineId: i }) =>
e
.graphQL(
T(),
{
timelineId: i,
count: t,
cursor: n,
withQuickPromoteEligibilityTweetFields: !0,
...(0, o.d)(_),
},
O
)
.then((e) => {
var _;
return (null == (_ = e.timeline) ? void 0 : _.timeline) || N.cY;
}),
});
},
54874: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => s,
isEnableLoggedOutWebUsersNotificationsFail: () => o,
});
var n = t(72599),
i = t(17360),
a = t(33823),
r = t.n(a),
l = t(97534);
const o = (e, _) => (
(null == _ ? void 0 : _.enable_logged_out_web_notifications) ||
(0, n.ZP)(
"GQL LoggedOutNotifications: Failed to execute EnableLoggedOutWebNotifications",
{ extra: (0, l.errorBreadcrumb)(e) }
),
(0, i.jB)(e)
),
s = ({ apiClient: e, featureSwitches: _ }) => ({
enableLoggedOutWebNotifications: (_) => e.graphQL(r(), _, o),
});
},
49890: (e, _, t) => {
"use strict";
t.d(_, { B: () => r, Z: () => l });
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,
}
),
l = new n.fK.Array(r);
},
32091: (e, _, t) => {
"use strict";
t.d(_, { Gm: () => o, ZH: () => s, kH: () => l });
var n = t(78772),
i = t(52612),
a = t(57659),
r = t(62104);
const l = { All: "any", AutoBlock: "autoblock", Imported: "imported" },
o = (e) =>
(0, r.Z)({
timelineId: `blockedAccountsGraphQL-${e}`,
network: {
getEndpoint: (_) =>
e === l.Imported
? _.Graphql.fetchBlockedAccountsImportedGraphql
: e === l.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.LoggedOutNotifications.ab7dbbea.js.map

View File

@@ -1,39 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Media"],
{
73114: (e, t, a) => {
a.r(t), a.d(t, { default: () => i });
const i = ({ apiClient: e, featureSwitches: t }) => ({
metadataCreate: (t, a) =>
e.post(
"media/metadata/create",
t,
{},
{ ...a, "content-type": "application/json" }
),
attachSubtitles: (t, a) =>
e.post(
"media/subtitles/create",
{
media_id: t.videoMediaUploadId,
media_category: t.videoMediaCategory,
subtitle_info: {
subtitles: [
{
media_id: t.subtitlesMediaUploadId,
language_code: t.subtitlesLang,
display_name: t.subtitlesDisplayName,
},
],
},
},
{},
{ ...a, "content-type": "application/json" }
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Media.43a166aa.js.map

View File

@@ -1,137 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Moments"],
{
61821: (e, t, n) => {
n.r(t), n.d(t, { default: () => p });
var a = n(6899),
o = n(63752),
s = n(93333),
m = n(36364),
d = n(6623);
const p = ({ apiClient: e, featureSwitches: t }) => ({
create: (t, n) =>
e
.post(
"moments/create",
t,
{},
{
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
}
)
.then((e) => e && e.created_moment && e.created_moment.moment),
updateMetadata: (t, n) =>
e
.post(
`moments/update/${t.id}`,
t,
{},
{
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
}
)
.then((e) => e && e.updated_moment && e.updated_moment.moment),
curateTimeline: (t, n) =>
e
.post(
`moments/curate/${t.id}`,
t,
{},
{
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
}
)
.then((e) => e && e.updated_moment && e.updated_moment.moment),
publish: (t, n) =>
e
.post(
`moments/publish/${t.id}`,
{},
{},
{
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
}
)
.then((e) => e && e.updated_moment && e.updated_moment.moment),
delete: (t, n) =>
e.post(
`moments/delete/${t.moment_id}`,
{},
{},
{
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
}
),
curateTweetMetadata(t, n) {
const a = { updates: [t.promotedMedia], use_staging_timeline: !0 };
return e
.post(
`moments/curate_metadata/${t.id}`,
a,
{},
{
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
}
)
.then((e) => {
var t;
return null == e || null == (t = e.updated_moment)
? void 0
: t.moment;
});
},
fetchMoment(t, n) {
const p = {
bypass_cache: !0,
cards_platform: o.i5,
dedupe_pages: !0,
get_annotations: !0,
hydration_count: 100,
include_cards: 1,
staging: !0,
tweet_mode: "extended",
v: 1473704494,
};
return e
.get(`moments/capsule/${t.id}`, p, {
...n,
...(0, d.c)(),
...(0, s.Z)(t.teamUserId),
"content-type": "application/json",
})
.then((e) => {
const t = { ...e.moment, pages: e.pages, tweets: e.tweets };
return (0, a.Fv)(t, m.Z);
});
},
});
},
93333: (e, t, n) => {
function a(e) {
return e ? { "x-act-as-user-id": e } : {};
}
n.d(t, { Z: () => a });
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Moments.bc1ed29a.js.map

View File

@@ -1,20 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.MuteKeywordSettings"],
{
64477: (e, t, s) => {
s.r(t), s.d(t, { default: () => d });
const d = ({ apiClient: e, featureSwitches: t }) => ({
fetchMutedKeywords: (t, s) => e.get("mutes/keywords/list", t, s),
fetchDiscouragedKeywords: (t, s) =>
e.get("mutes/keywords/discouraged", t, s),
addMutedKeyword: (t, s) => e.post("mutes/keywords/create", t, {}, s),
deleteMutedKeyword: (t, s) =>
e.post("mutes/keywords/destroy", t, {}, s),
updateMutedKeyword: (t, s) => e.post("mutes/keywords/update", t, {}, s),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.MuteKeywordSettings.8b3eee2a.js.map

View File

@@ -1,73 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.NotificationSettings"],
{
93886: (t, e, n) => {
n.r(e), n.d(e, { default: () => l });
n(6886);
var i = n(60917),
o = n.n(i),
s = n(58314),
c = n(59975);
const a = { "content-type": "application/json" },
p = () => {
const { clientAppId: t } = (0, s.Z)();
return { client_application_id: parseInt(t, 10) };
},
r = ({
locale: t,
subscription: e,
templateChecksum: n,
transport: i,
}) => {
const o = {
...(0, c.lX)(),
checksum: n,
env: 3,
locale: t,
protocol_version: 1,
};
return (
e &&
((o.token = e.endpoint),
e.keys &&
((o.encryption_key1 = e.keys.p256dh),
(o.encryption_key2 = e.keys.auth))),
o
);
},
f = (t) => ({
[`${t.transport}_device_info`]: r(t),
...(window.apkInterface ? p() : o()),
}),
l = ({ apiClient: t, featureSwitches: e }) => ({
getNotificationSettingsLogin: (e, n) =>
t.post("notifications/settings/login", f(e), {}, { ...a, ...n }),
getNotificationSettings: (e, n) =>
t.post("notifications/settings/checkin", f(e), {}, { ...a, ...n }),
updateNotificationSettings(e, n) {
const { settings: i, transport: o, ...s } = e,
c = f({ transport: o, ...s });
return t.post(
"notifications/settings/save",
{
...c,
[`${o}_device_info`]: { ...c[`${o}_device_info`], settings: i },
},
{},
{ ...a, ...n }
);
},
removePushDevices: (e, n) =>
t.post(
"notifications/settings/logout",
{ ...r(e), ...(window.apkInterface ? p() : o()) },
{},
{ ...a, ...n }
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.NotificationSettings.0fd1aafa.js.map

View File

@@ -1,15 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.OAuth"],
{
96814: (e, t, s) => {
s.r(t), s.d(t, { default: () => i });
const i = ({ apiClient: e, featureSwitches: t }) => ({
fetch: (t, s = {}) => e.getUnversioned("/2/oauth2/authorize", t, s),
post: (t) => e.postUnversioned("/2/oauth2/authorize", t, {}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.OAuth.e9a32f5a.js.map

View File

@@ -1,95 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Ocf"],
{
66660: (t, n, o) => {
o.r(n), o.d(n, { default: () => a });
o(6886), o(14121), o(60523);
var e = o(56642);
const a = ({ apiClient: t, featureSwitches: n }) => ({
task(n = {}, o = {}) {
const { flow_name: e, test_country_code: a, ...s } = n;
return t.post(
"onboarding/task",
s,
{ flow_name: e, test_country_code: a },
{ ...o, "content-type": "application/json" }
);
},
syncContacts(n) {
const { callback_url: o, ...e } = n;
return t.post(
"onboarding/contacts_authorize",
{ callback_url: o, import_params: e },
{},
{ "content-type": "application/json" }
);
},
getContactsImportStatus: (n) =>
t.get(
"onboarding/contacts_import_status",
{ options: n },
{ "content-type": "application/json" }
),
getVerificationStatus: (n) =>
t.get("onboarding/verification_status", n, {
"content-type": "application/json",
}),
callInteractiveSpinnerPath: (n) =>
t.get(`${n}`, {}, { "content-type": "application/json" }, ""),
callOnboardingPath(n, o) {
const a = new URL(n, "https://twitter.com"),
s = a.pathname.substring(1),
i = e.parse(a.searchParams.toString());
return t.post(
`onboarding/${s}`,
{ ...i, ...o },
{},
{ "content-type": "application/json" },
""
);
},
referer: (n) =>
t.post(
"onboarding/referrer",
n,
{},
{ "content-type": "application/json" }
),
removeContacts: (n) => t.post("contacts/destroy/all", n, {}, {}),
setUserPwaLaunched(n) {
const { userId: o } = n;
return t.put(
`strato/column/User/${o}/onboarding/hasLaunchedPWA`,
"true",
{ "content-type": "application/json" },
""
);
},
verifyUserIdentifier: (n) =>
t.post(
"onboarding/begin_verification",
n,
{},
{ "content-type": "application/json" }
),
verificationLink: (n = {}) =>
t.post(
"onboarding/verify",
n,
{},
{ "content-type": "application/json" }
),
getBrowsableNuxRecommendations: (n) =>
t.post(
"onboarding/fetch_user_recommendations",
n,
{},
{ "content-type": "application/json" }
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Ocf.9b63375a.js.map

View File

@@ -1,35 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Personalization"],
{
21721: (e, t, n) => {
n.r(t), n.d(t, { default: () => a });
const a = ({ apiClient: e, featureSwitches: t }) => ({
fetchPreferences: (t, n) =>
e.get("account/personalization/p13n_preferences", t, n),
updatePreferences: (t, n) =>
e.post(
"account/personalization/p13n_preferences",
t,
{},
{ ...n, "content-type": "application/json" }
),
fetchData: (t, n) => e.get("account/personalization/p13n_data", t, n),
fetchTwitterInterests: (t, n) =>
e.get("account/personalization/twitter_interests", t, n),
fetchPartnerInterests: (t, n) =>
e.get("account/personalization/partner_interests", t, n),
createAudienceDownload: (t, n) =>
e.post("account/personalization/email_advertiser_list", t, {}, n),
createDataDownload: (t, n) =>
e.post("account/personalization/email_your_data", t, {}, n),
updateCookies: (t, n) =>
e.get("account/personalization/set_optout_cookies", t, n),
syncSettings: (t, n) =>
e.post("account/personalization/sync_optout_settings", t, {}, n),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Personalization.4e57acea.js.map

View File

@@ -1,59 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.PinnedReplies"],
{
33875: (e) => {
e.exports = {
queryId: "GA2_1uKP9b_GyR4MVAQXAw",
operationName: "PinReply",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
93563: (e) => {
e.exports = {
queryId: "iRe6ig5OV1EzOtldNIuGDQ",
operationName: "UnpinReply",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
45808: (e, t, n) => {
"use strict";
n.r(t), n.d(t, { default: () => u });
var i = n(33875),
s = n.n(i),
a = n(93563),
r = n.n(a);
const u = ({ apiClient: e, featureSwitches: t }) => ({
pin: (t) =>
e.graphQL(s(), t).then((e) => {
var t, n;
return {
success:
null !=
(t =
null == e ||
null == (n = e.create_conversation_pinned_tweet)
? void 0
: n.success) && t,
};
}),
unpin: (t) =>
e.graphQL(r(), t).then((e) => {
var t, n;
return {
success:
null !=
(t =
null == e ||
null == (n = e.delete_conversation_pinned_tweet)
? void 0
: n.success) && t,
};
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.PinnedReplies.ae3eac6a.js.map

View File

@@ -1,49 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Places"],
{
90330: (e, t, s) => {
s.r(t), s.d(t, { default: () => c });
s(6886);
var n = s(6899),
r = s(46395);
const a = new n.fK.Entity(
"places",
{},
{
processStrategy: function (e, t, s) {
const { vendor_info: n, ...a } = (0, r.Z)(e, t, s);
if (n) {
const e = Object.keys(n)[0];
a.vendor_info = { data: n[e], vendor: e };
}
return a;
},
}
),
c = ({ apiClient: e, featureSwitches: t }) => ({
fetchPlace: ({ id: t, ...s }, r = {}) =>
e.get(`geo/id/${t}`, s, r).then((e) => (0, n.Fv)(e, a)),
search: (t, s = {}) =>
e.get("geo/places", t, s).then((e) => {
var t;
const s = new Set();
return (
null == (t = e.attributions) ||
t.forEach((e) => Object.keys(e).forEach((e) => s.add(e))),
{
...e,
attributions: s,
places: e.places.map((t) => ({
...t,
geo_search_request_id: e.geo_search_request_id,
})),
}
);
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Places.1cc954ca.js.map

View File

@@ -1,36 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Prerolls"],
{
50591: (e, t, r) => {
r.r(t), r.d(t, { default: () => n });
var i = r(48086);
function s(e) {
const t = { tweet_id: e.id_str },
r = e.promoted_content && e.promoted_content.impression_id;
return (
r && (t.impression_id = r),
e.card &&
e.card.name === i.Z.CardNames.LIVE_EVENT &&
(t.live_event_id = i.Z.getBindingValue(
e.card.binding_values,
"event_id"
)),
t
);
}
const n = ({ apiClient: e, featureSwitches: t }) => ({
fetch: (t) => {
const r = { tweets: t.eligibleTweets.map(s) };
t.trigger_preroll && (r.trigger_preroll = t.trigger_preroll),
t.prerollDisplayLocation &&
(r.display_location = t.prerollDisplayLocation);
const i = { tweets: JSON.stringify(r) };
return e.post("videoads/v2/prerolls", i, {}, {});
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Prerolls.7cbb2cea.js.map

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.PromotedContent"],
{
73842: (e, t, n) => {
n.r(t), n.d(t, { default: () => i });
var s = n(85586),
o = n(63140);
const r = [o.ZP.CurrentUserSuspended, o.ZP.AccessDeniedByBouncer];
function c(e) {
if (!(0, s.Z)(r, (t) => (0, o.VZ)(e, t))) throw e;
}
const i = ({ apiClient: e, featureSwitches: t }) => ({
log: (t, n = {}) => e.post("promoted_content/log", t, {}, n).catch(c),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.PromotedContent.5193e53a.js.map

View File

@@ -1,356 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.QuickPromote"],
{
5093: (e) => {
e.exports = {
queryId: "QEMLEzEMzoPNbeauKCCLbg",
operationName: "SetDefault",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
35920: (e) => {
e.exports = {
queryId: "VaaLGwK5KNLoc7wsOmp4uw",
operationName: "DeletePaymentMethod",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
58257: (e) => {
e.exports = {
queryId: "mPF_G9okpbZuLcD6mN8K9g",
operationName: "PaymentMethods",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
1592: (e) => {
e.exports = {
queryId: "a8KxGfFQAmm3WxqemuqSRA",
operationName: "AdAccounts",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
21436: (e) => {
e.exports = {
queryId: "1LYVUabJBYkPlUAWRabB3g",
operationName: "AudienceEstimate",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
56628: (e) => {
e.exports = {
queryId: "mbK3oSQotwcJXyQIBE3uYw",
operationName: "Budgets",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
84700: (e) => {
e.exports = {
queryId: "R1h43jnAl2bsDoUkgZb7NQ",
operationName: "Coupons",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
74648: (e) => {
e.exports = {
queryId: "oDSoVgHhJxnd5IkckgPZdg",
operationName: "CreateQuickPromotion",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
95713: (e) => {
e.exports = {
queryId: "LtpCXh66W-uXh7u7XSRA8Q",
operationName: "QuickPromoteEligibility",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
54096: (e) => {
e.exports = {
queryId: "SOyGmNGaEXcvk15s5bqDrA",
operationName: "EnrollCoupon",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
81019: (e, t, o) => {
"use strict";
o.r(t), o.d(t, { default: () => x });
o(6886), o(36728);
var n = o(24797),
a = o(17360),
u = o(5093),
i = o.n(u),
l = o(35920),
r = o.n(l),
_ = o(58257),
d = o.n(_),
c = o(1592),
p = o.n(c),
s = o(21436),
m = o.n(s),
y = o(56628),
v = o.n(y),
g = o(84700),
b = o.n(g),
h = o(74648),
w = o.n(h),
f = o(95713),
k = o.n(f),
q = o(54096),
C = o.n(q);
const x = ({ apiClient: e, featureSwitches: t }) => ({
getQuickPromoteEligibility: (t) =>
e.graphQL(k(), t).then((e) => {
var t;
const o =
null == (t = e.tweet_result_by_rest_id) ? void 0 : t.result;
var n, a;
return "Tweet" === (null == o ? void 0 : o.__typename)
? null == (n = o.quick_promote_eligibility)
? void 0
: n.eligibility
: "TweetWithVisibilityResults" ===
(null == o ? void 0 : o.__typename)
? null == (a = o.tweet.quick_promote_eligibility)
? void 0
: a.eligibility
: void 0;
}),
getCoupons: (t) =>
e.graphQL(b(), t).then((e) => {
var t, o, n;
const a =
null == (t = e.viewer) || null == (o = t.user_results)
? void 0
: o.result,
u =
"User" === (null == a ? void 0 : a.__typename)
? null == (n = a.professional)
? void 0
: n.quick_promote_coupons_v2
: void 0,
i = (function (e) {
var t, o, n, a;
const u =
null == (t = e.viewer) || null == (o = t.user_results)
? void 0
: o.result,
i =
"User" === (null == u ? void 0 : u.__typename)
? null == (n = u.professional)
? void 0
: n.quick_promote_coupons_v2
: void 0;
let l;
if (null != i && i.eligible_coupon_v2)
switch (i.eligible_coupon_v2.__typename) {
case "QuickPromoteConditionalCoupon":
l = {
type: "ConditionalCoupon",
currency_code: i.eligible_coupon_v2.currency_code,
credit_amount: i.eligible_coupon_v2.credit_amount,
spend_amount: i.eligible_coupon_v2.spend_amount,
};
break;
case "QuickPromoteStandardCoupon":
l = {
type: "StandardCoupon",
currency_code: i.eligible_coupon_v2.currency_code,
total_amount: i.eligible_coupon_v2.total_amount,
};
break;
default:
i.eligible_coupon_v2.__typename;
}
else
null != i &&
null != (a = i.eligible_coupon) &&
a.total_amount &&
null != i &&
i.eligible_coupon.currency_code &&
(l = {
type: "StandardCoupon",
currency_code: i.eligible_coupon.currency_code,
total_amount: i.eligible_coupon.total_amount,
});
return l;
})(e),
l = (function (e) {
var t, o, n;
const a =
null == (t = e.viewer) || null == (o = t.user_results)
? void 0
: o.result,
u =
"User" === (null == a ? void 0 : a.__typename)
? null == (n = a.professional)
? void 0
: n.quick_promote_coupons_v2
: void 0,
i =
(null == u ? void 0 : u.pending_coupons) &&
(null == u ? void 0 : u.pending_coupons[0]);
return (
i && {
type: "ConditionalCoupon",
credit_amount: i.credit_amount,
spend_amount: i.spend_amount,
currency_code: i.currency_code,
}
);
})(e);
null != i &&
i.total_amount &&
(i.total_amount = i.total_amount / 1e6),
null != i &&
i.credit_amount &&
(i.credit_amount = i.credit_amount / 1e6),
null != i &&
i.spend_amount &&
(i.spend_amount = i.spend_amount / 1e6),
null != l &&
l.credit_amount &&
(l.credit_amount = l.credit_amount / 1e6),
null != l &&
l.spend_amount &&
(l.spend_amount = l.spend_amount / 1e6),
null != u &&
u.existing_balance &&
(u.existing_balance = u.existing_balance.map(
({ currency_code: e, total_amount: t }) => ({
currency_code: e,
total_amount: t ? t / 1e6 : 0,
})
));
const r =
null != u && u.experiment_end_timestamp
? new Date(u.experiment_end_timestamp)
: void 0;
return (
u && {
eligible_coupon: i,
pending_coupon: l,
existing_balance: u.existing_balance,
eligible_coupon_experiment: u.eligible_coupon_experiment,
experiment_end_date: r,
}
);
}),
getBudgets: (t) =>
e.graphQL(v(), t).then((e) => {
var t;
const o =
null == (t = e.viewer)
? void 0
: t.quick_promote_budget_by_country;
return o
? {
budgets: o.values.map((e) => parseInt(e, 10) / 1e6),
currencyCode: o.currency_code,
defaultBudget: parseInt(o.default_budget, 10) / 1e6,
}
: S;
}),
getAudienceEstimate: (t) =>
e.graphQL(m(), t).then((e) => {
var t;
const o =
null == (t = e.quick_promote_audience_estimation_v2)
? void 0
: t.impressions;
return o && o.low && o.high
? {
estimatedImpressions: {
low: parseInt(o.low, 10),
high: parseInt(o.high, 10),
},
}
: { estimatedImpressions: void 0 };
}),
getPaymentMethods: (t) =>
e.graphQL(d(), t).then((e) => {
const t = e.payment_methods,
o = ["Active", "New", "Invalid"],
a = [];
return (
null == t ||
t.forEach((e) => {
"CreditCard" === e.payment_method_type &&
!(0, n.Z)(e.details) &&
e.details.card_status &&
o.includes(e.details.card_status) &&
a.push({
id: e.id,
cardStatus: e.details.is_expired
? "Expired"
: "Active" === e.details.card_status
? "Active"
: "Invalid",
lastFourDigits: e.details.last_four_digits,
fullName: e.details.full_name,
isDefault: e.is_default,
imgSrcUrl: e.details.CreditCardImgSrcUrl,
});
}),
a
);
}),
deletePaymentMethod: (t) => e.graphQL(r(), t),
setDefaultPaymentMethod: (t) => e.graphQL(i(), t),
createPromotion: (t) => e.graphQL(w(), t),
enrollCoupon: (t) =>
e.graphQL(C(), t).then((e) => {
const t = e.quick_promote_enroll_coupons;
return (
null != t &&
t.available_balance &&
(t.available_balance = t.available_balance.map(
({ currency_code: e, total_amount: t }) => ({
currency_code: e,
total_amount: t ? t / 1e6 : 0,
})
)),
null != t &&
t.enrolled_coupon &&
t.enrolled_coupon.total_amount &&
(t.enrolled_coupon.total_amount =
t.enrolled_coupon.total_amount / 1e6),
null != t &&
t.enrolled_coupon_v2 &&
t.enrolled_coupon_v2.spend_amount &&
(t.enrolled_coupon_v2.spend_amount =
t.enrolled_coupon_v2.spend_amount / 1e6),
null != t &&
t.enrolled_coupon_v2 &&
t.enrolled_coupon_v2.credit_amount &&
(t.enrolled_coupon_v2.credit_amount =
t.enrolled_coupon_v2.credit_amount / 1e6),
e
);
}),
getAdAccounts: (t) =>
e.graphQL(
p(),
t,
(0, a.kj)(() => !1, "GQL AdAccounts: Failed to fetch ad accounts")
),
}),
S = {
budgets: [50, 100, 250, 500, 1e3, 2500, 5e3],
currencyCode: "USD",
defaultBudget: 100,
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.QuickPromote.f9840a2a.js.map

View File

@@ -1,34 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Recommendations"],
{
40886: (e, t, s) => {
s.r(t), s.d(t, { default: () => c });
var n = s(6899),
r = s(13239);
const i = new n.fK.Entity(
"recommendations",
{ user: r.Z },
{
idAttribute: (e) => {
var t;
return null == (t = e.user) ? void 0 : t.id_str;
},
}
);
var u = s(6623),
o = s(55371);
const a = (e) => ({ ...o.getGlobalDefaults(e), excluded: [], pc: !0 }),
c = ({ apiClient: e, featureSwitches: t }) => ({
fetch(s, r = {}) {
const o = { ...a(t), ...s, ...(0, u.Y)(t) };
return e
.get("users/recommendations", o, r)
.then((e) => (0, n.Fv)(e, [i]));
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Recommendations.e61abcea.js.map

View File

@@ -1,22 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.ReportFlow"],
{
67151: (e, t, o) => {
o.r(t), o.d(t, { default: () => n });
const n = ({ apiClient: e, featureSwitches: t }) => ({
task(t, o) {
const { flow_name: n, test_country_code: s, ...r } = t;
return e.post(
"report/flow",
r,
{ flow_name: n, test_country_code: s },
{ ...o, "content-type": "application/json" }
);
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.ReportFlow.c6789fea.js.map

View File

@@ -1,96 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.RitoActionedTweets"],
{
69108: (e) => {
e.exports = {
queryId: "px9Zbs48D-YdQPEROK6-nA",
operationName: "RitoActionedTweetsTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
56563: (e, t, _) => {
"use strict";
_.r(t),
_.d(t, {
default: () => d,
isFatalRitoActionedTweetsTimelineError: () => o,
});
var i = _(72599),
n = _(17360),
s = _(83175),
r = _(69108),
a = _.n(r),
l = _(82249);
const o = (e, t) => {
var _;
const s =
null == t || null == (_ = t.user_result_by_rest_id)
? void 0
: _.result;
return (
s ||
(0, i.ZP)(
"GQL RitoActionedTweets: Failed to query for Rito Actioned Tweets timeline"
),
!s && (0, n.jB)(e)
);
},
d = ({ apiClient: e, featureSwitches: t }) => ({
fetchRitoActionedTweets: ({ cursor: _, userId: i }) =>
e
.graphQL(
a(),
{
cursor: _,
rest_id: i,
...(0, s.d)(t),
withSafetyModeUserFields: t.isTrue(
"rito_safety_mode_blocked_profile_enabled"
),
},
o
)
.then((e) => {
var t;
const _ =
null == e || null == (t = e.user_result_by_rest_id)
? void 0
: t.result;
let i = l.cY;
var n;
"User" === (null == _ ? void 0 : _.__typename) &&
(i =
null == (n = _.rito_actioned_tweets_timeline)
? void 0
: n.timeline);
return i || l.cY;
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.RitoActionedTweets.38eab9fa.js.map

View File

@@ -1,92 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.RitoFlaggedAccounts"],
{
81396: (e) => {
e.exports = {
queryId: "lMzaBZHIbD6GuPqJJQubMg",
operationName: "RitoFlaggedAccountsTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
88466: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => d,
isFatalRitoFlaggedAccountsTimelineError: () => o,
});
var i = t(72599),
n = t(17360),
a = t(83175),
l = t(81396),
r = t.n(l),
s = t(82249);
const o = (e, _) => {
var t, a;
const l =
null == _ ||
null == (t = _.viewer_v2) ||
null == (a = t.rito_flagged_accounts_timeline)
? void 0
: a.timeline;
return (
l ||
(0, i.ZP)(
"GQL RitoFlaggedAccounts: Failed to query for Rito Flagged Accounts timeline"
),
!l && (0, n.jB)(e)
);
},
d = ({ apiClient: e, featureSwitches: _ }) => ({
fetchRitoFlaggedAccounts: ({ cursor: t }) =>
e
.graphQL(
r(),
{
cursor: t,
...(0, a.d)(_),
withSafetyModeUserFields: _.isTrue(
"rito_safety_mode_blocked_profile_enabled"
),
},
o
)
.then((e) => {
var _, t;
return (
(null == e ||
null == (_ = e.viewer_v2) ||
null == (t = _.rito_flagged_accounts_timeline)
? void 0
: t.timeline) || s.cY
);
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.RitoFlaggedAccounts.7c9ceb5a.js.map

View File

@@ -1,96 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.RitoFlaggedTweets"],
{
4149: (e) => {
e.exports = {
queryId: "iCuXMibh6yj9AelyjKXDeA",
operationName: "RitoFlaggedTweetsTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
89910: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => d,
isFatalRitoFlaggedTweetsTimelineError: () => o,
});
var i = t(72599),
n = t(17360),
r = t(83175),
s = t(4149),
a = t.n(s),
l = t(82249);
const o = (e, _) => {
var t;
const r =
null == _ || null == (t = _.user_result_by_rest_id)
? void 0
: t.result;
return (
r ||
(0, i.ZP)(
"GQL RitoFlaggedTweets: Failed to query for Rito Flagged Tweets timeline"
),
!r && (0, n.jB)(e)
);
},
d = ({ apiClient: e, featureSwitches: _ }) => ({
fetchRitoFlaggedTweets: ({ cursor: t, userId: i }) =>
e
.graphQL(
a(),
{
cursor: t,
rest_id: i,
...(0, r.d)(_),
withSafetyModeUserFields: _.isTrue(
"rito_safety_mode_blocked_profile_enabled"
),
},
o
)
.then((e) => {
var _;
const t =
null == e || null == (_ = e.user_result_by_rest_id)
? void 0
: _.result;
let i = l.cY;
var n;
"User" === (null == t ? void 0 : t.__typename) &&
(i =
null == (n = t.rito_flagged_tweets_timeline)
? void 0
: n.timeline);
return i || l.cY;
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.RitoFlaggedTweets.8586e06a.js.map

View File

@@ -1,40 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.RitoSuggestedActions"],
{
22276: (t) => {
t.exports = {
queryId: "2njnYoE69O2jdUM7KMEnDw",
operationName: "ConvertRitoSuggestedActions",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
95885: (t, e, o) => {
"use strict";
o.r(e),
o.d(e, {
default: () => u,
isFatalConvertRitoSuggestedActionsError: () => a,
});
var n = o(72599),
s = o(17360),
i = o(22276),
r = o.n(i);
const a = (t, e) => {
const o = null == e ? void 0 : e.convert_rito_suggested_actions;
return (
o ||
(0, n.ZP)(
"GQL ConvertRitoSuggestedActions: Failed to query for Convert Rito Suggested Actions"
),
!o && (0, s.jB)(t)
);
},
u = ({ apiClient: t, featureSwitches: e }) => ({
callConvertRitoSuggestedActions: (e) => t.graphQL(r(), { ...e }, a),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.RitoSuggestedActions.9ec7c11a.js.map

View File

@@ -1,58 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.RitoSuggestedActionsFacePile"],
{
90159: (e) => {
e.exports = {
queryId: "GnQKeEdL1LyeK3dTQCS1yw",
operationName: "RitoSuggestedActionsFacePile",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
55104: (e, t, i) => {
"use strict";
i.r(t),
i.d(t, {
default: () => n,
isFatalRitoSuggestedActionsFacePileError: () => l,
});
var s = i(72599),
r = i(17360),
u = i(90159),
o = i.n(u);
const l = (e, t) => {
var i, u;
const o =
(null == t || null == (i = t.user.result)
? void 0
: i.rito_suggested_actions_face_pile) &&
(null == t || null == (u = t.user.result)
? void 0
: u.rito_suggested_actions_face_pile);
return (
o ||
(0, s.ZP)(
"GQL RitoSuggestedActionsFacePile: Failed to query for Rito Suggested Actions facepile"
),
!o && (0, r.jB)(e)
);
},
n = ({ apiClient: e, featureSwitches: t }) => ({
fetchRitoSuggestedActionsFacePile: (t) =>
e.graphQL(o(), { ...t }, l).then((e) => {
var t, i;
return (
(null == e || null == (t = e.user.result)
? void 0
: t.rito_suggested_actions_face_pile) &&
(null == e || null == (i = e.user.result)
? void 0
: i.rito_suggested_actions_face_pile)
);
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.RitoSuggestedActionsFacePile.8cdec91a.js.map

View File

@@ -1,34 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.SafeSearch"],
{
98178: (e, t, s) => {
s.r(t), s.d(t, { default: () => a });
var r = s(60917),
n = s.n(r);
const a = ({ apiClient: e, featureSwitches: t }) => ({
fetch(t, s = {}) {
const { userId: r } = t;
return e.get(
`strato/column/User/${r}/search/searchSafetyReadonly`,
n(),
s,
""
);
},
set(t, s = {}) {
const { userId: r, ...a } = t;
return e.post(
`strato/column/User/${r}/search/searchSafety`,
a,
n(),
{ ...s, "content-type": "application/json" },
""
);
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.SafeSearch.ce1a9f9a.js.map

View File

@@ -1,17 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.SavedSearches"],
{
41517: (e, s, t) => {
t.r(s), t.d(s, { default: () => a });
const a = ({ apiClient: e, featureSwitches: s }) => ({
fetch: (s = {}, t = {}) => e.get("saved_searches/list", s, t),
create: (s, t = {}) => e.post("saved_searches/create", s, {}, t),
destroy: (s, t = {}) =>
e.post(`saved_searches/destroy/${s.id}`, s, {}, t),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.SavedSearches.3aded56a.js.map

View File

@@ -1,126 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Scheduling"],
{
97475: (e) => {
e.exports = {
queryId: "LCVzRQGxOaGnOnYH01NQXg",
operationName: "CreateScheduledTweet",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
6107: (e) => {
e.exports = {
queryId: "CTOVqej0JBXAZSwkp1US0g",
operationName: "DeleteScheduledTweet",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
8735: (e) => {
e.exports = {
queryId: "_mHkQ5LHpRRjSXKOcG6eZw",
operationName: "EditScheduledTweet",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
66150: (e) => {
e.exports = {
queryId: "ITtjAzvlZni2wWXwf295Qg",
operationName: "FetchScheduledTweets",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
3754: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => _ });
const d = (e) => {
var t;
return (
(null == e || null == (t = e.viewer)
? void 0
: t.scheduled_tweet_list) || []
);
};
var i = r(97475),
s = r.n(i),
a = r(6107),
u = r.n(a),
n = r(8735),
o = r.n(n),
c = r(66150),
l = r.n(c),
w = r(98671);
function p(e) {
return Math.floor(e.getTime() / 1e3);
}
const _ = ({ apiClient: e, featureSwitches: t }) => ({
scheduleTweet(t) {
const { executeAt: r, ...d } = t,
i = (0, w.y)(d);
return e
.graphQL(s(), { post_tweet_request: i, execute_at: p(r) })
.then((e) => {
var t;
return null == (t = e.tweet) ? void 0 : t.rest_id;
});
},
fetchScheduledTweets(t) {
const r = {
ascending: !0,
limit: void 0,
max_id: void 0,
min_id: void 0,
};
return e.graphQL(l(), { ...r, ...t }, (0, w.F)("Scheduled")).then(d);
},
deleteScheduledTweet: (t) => e.graphQL(u(), t),
editScheduledTweet(t) {
const { executeAt: r, scheduledTweetId: d, ...i } = t,
s = (0, w.y)(i);
return e
.graphQL(o(), {
scheduled_tweet_id: d,
post_tweet_request: s,
execute_at: p(r),
})
.then(() => d);
},
});
},
98671: (e, t, r) => {
"use strict";
r.d(t, { F: () => a, y: () => s });
var d = r(72599),
i = r(17360);
function s({ exclude_reply_user_ids: e, media_ids: t, ...r }) {
return {
...r,
exclude_reply_user_ids: e ? e.split(",") : [],
media_ids: t ? t.split(",") : [],
};
}
const a = (e) => (t, r) => {
const s =
r &&
r.viewer &&
r.viewer.draft_list &&
r.viewer.draft_list.response_data,
a =
r &&
r.viewer &&
!!r.viewer.scheduled_tweet_list &&
r.viewer.scheduled_tweet_list;
return (
!s &&
!a &&
((0, d.ZP)(`GQL: Failed to render ${e} Tweets List`), (0, i.jB)(t))
);
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Scheduling.a63742fa.js.map

View File

@@ -1,223 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Settings"],
{
22001: (e) => {
e.exports = {
queryId: "g2m0pAOamawNtVIfjXNMJg",
operationName: "DisableVerifiedPhoneLabel",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
67065: (e) => {
e.exports = {
queryId: "C3RJFfMsb_KcEytpKmRRkw",
operationName: "EnableVerifiedPhoneLabel",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
19874: (e) => {
e.exports = {
queryId: "5kUWP8C1hcd6omvg6HXXTQ",
operationName: "ProfileUserPhoneState",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
58043: (e) => {
e.exports = {
queryId: "vJ-XatpmQSG8bDch8-t9Jw",
operationName: "UserSessionsList",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
98084: (e, t, o) => {
"use strict";
o.r(t), o.d(t, { default: () => g });
var a = o(6899),
s = o(22001),
n = o.n(s),
i = o(67065),
r = o.n(i),
c = o(19874),
l = o.n(c),
u = o(58043),
p = o.n(u);
const _ = new a.fK.Entity("applications", {}, { idAttribute: "token" });
var d = o(13239),
f = o(55371);
const h = {
include_mention_filter: !0,
include_nsfw_user_flag: !0,
include_nsfw_admin_flag: !0,
include_ranked_timeline: !0,
include_alt_text_compose: !0,
},
g = ({ apiClient: e, featureSwitches: t }) => ({
fetch(o, a) {
const s = t.isTrue(
"voice_rooms_sharing_listening_data_with_followers_setting_enabled"
)
? {
include_ext_sharing_audiospaces_listening_data_with_followers:
!0,
}
: {},
n = t.isTrue("toxic_reply_filter_inline_callout_enabled")
? { include_ext_reply_filter_setting: !0 }
: {},
i = {
ext: "ssoConnections",
include_country_code: !0,
include_ext_dm_nsfw_media_filter: !0,
},
r = Object.assign({}, h, i, s, n, o);
return e.get("account/settings", r, a);
},
fetchRateLimits: (t, o) =>
e.get("application/rate_limit_status", t, o || {}),
fetchHashflags: () => e.get("hashflags", {}, {}),
update(t, o) {
const a = Object.assign({}, h, t);
return e.post("account/settings", a, {}, o);
},
deleteSSOConnection(t, o) {
const { ssoProvider: a } = t;
return e.post(
"sso/delete_connection",
{ sso_provider: a },
{},
o,
""
);
},
deleteLocationData: (t, o) =>
e.post("geo/delete_location_data", t, {}, o),
deleteContacts: (t, o) => e.post("contacts/destroy/all", t, {}, o),
fetchNotificationFilters: (t, o) =>
e.get("mutes/advanced_filters", t, o || {}),
updateNotificationFilters: (t, o) =>
e.post("mutes/advanced_filters", t, {}, o || {}),
updateProfile: (t, o) =>
e
.post("account/update_profile", t, {}, o)
.then((e) => (0, a.Fv)(e, d.Z)),
removeProfileBanner(o, a) {
const s = Object.assign(
{},
f.getGlobalDefaults(t),
{ return_user: !0 },
o
);
return e.post("account/remove_profile_banner", s, {}, a);
},
updateProfileAvatar(o, a) {
const s = Object.assign(
{},
f.getGlobalDefaults(t),
{ return_user: !0 },
o
);
return e.post("account/update_profile_image", s, {}, a);
},
updateProfileBanner(o, a) {
const s = Object.assign(
{},
f.getGlobalDefaults(t),
{ return_user: !0 },
o
);
return e.post("account/update_profile_banner", s, {}, a);
},
fetchPlaceTrendSettings: (t, o) =>
e.getURT("guide/get_explore_settings", t, o || {}),
updatePlaceTrendSettings: (t, o) =>
e.postURT("guide/set_explore_settings", { ...t }, {}, o || {}),
usernameAvailable: (t, o) =>
e.dispatch({
path: "/i/users/username_available.json",
method: "GET",
params: t,
headers: o || {},
}),
fetchApplications: (t, o) =>
e
.get("oauth/list", t, o)
.then((e) => (0, a.Fv)(e, { applications: [_] })),
revokeApplication: (t, o) => e.post("oauth/revoke", t, {}, o),
revokeOauth2Token: (t, o) =>
e.postUnversioned("/2/oauth2/revoke_token_hash", t, o),
changePassword: (t, o) =>
e.postI("account/change_password", t, o || {}),
deactivate(t, o) {
const { deactivation_timespan: a, password: s } = t;
return e.post(
"account/deactivate",
{ current_password: s, deactivation_timespan: a },
{},
o
);
},
fetchWoeTrendsLocations: (t, o) =>
e.get("trends/available", t, o || {}),
fetchPlaceTrendsLocations: (t, o) =>
e.getURT("guide/explore_locations_with_auto_complete", t, o || {}),
fetchLoginVerificationSettings(t, o) {
const { userId: a, ...s } = t;
return a
? e.get(
`strato/column/User/${a}/account-security/twoFactorAuthSettings2`,
s,
o || {},
""
)
: Promise.resolve(new Response());
},
fetchBackupCode: (t, o) => e.get("account/backup_code", t, o || {}),
fetchNewBackupCode: (t, o) =>
e.post("account/backup_code", t, {}, o || {}),
fetchTemporaryPassword: (t, o) =>
e.post(
"account/login_verification/temporary_password",
t,
{},
o || {}
),
fetchSessions: (t, o) => e.graphQL(p(), {}),
enableVerifiedPhoneLabel: () =>
t.isTrue("verified_phone_label_enabled")
? e.graphQL(r(), {})
: Promise.resolve(),
disableVerifiedPhoneLabel: (o, a) =>
t.isTrue("verified_phone_label_enabled")
? e.graphQL(n(), {})
: Promise.resolve(),
fetchUserProfilePhoneState: (t, o) => e.graphQL(l(), {}),
revokeSession: (t, o) =>
e.postUnversioned("/account/sessions/revoke", t, o),
revokeAllSessions: (t, o) =>
e.postUnversioned("/account/sessions/revoke_all", t, o),
enrollIn2FA: (t, o) => e.post("bouncer/opt_in", t, {}, o || {}),
disable2FA: (t, o) =>
e.delete("account/login_verification_enrollment", t, o || {}),
disable2FAMethod: (t, o) =>
e.post("account/login_verification/remove_method", t, {}, o || {}),
rename2FASecurityKey: (t, o) =>
e.post(
"account/login_verification/rename_security_key_method",
t,
{},
o
),
verifyPassword(t, o) {
const { password: a } = t;
return e.post("account/verify_password", { password: a }, {}, o);
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Settings.266bdcaa.js.map

View File

@@ -1,301 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.SettingsGraphQL"],
{
33816: (e) => {
e.exports = {
queryId: "PFIxTk8owMoZgiMccP0r4g",
operationName: "getAltTextPromptPreference",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
41264: (e) => {
e.exports = {
queryId: "aQKrduk_DA46XfOQDkcEng",
operationName: "updateAltTextPromptPreference",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
95915: (e) => {
e.exports = {
queryId: "BwgMOGpOViDS0ri7VUgglg",
operationName: "getCaptionsAlwaysDisplayPreference",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
22502: (e) => {
e.exports = {
queryId: "uCUQhvZ5sJ9qHinRp6CFlQ",
operationName: "updateCaptionsAlwaysDisplayPreference",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
65769: (e) => {
e.exports = {
queryId: "xF6sXnKJfS2AOylzxRjf6A",
operationName: "DataSaverMode",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
35032: (e) => {
e.exports = {
queryId: "H03etWvZGz41YASxAU2YPg",
operationName: "WriteDataSaverPreferences",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
76389: (e) => {
e.exports = {
queryId: "of_N6O33zfyD4qsFJMYFxA",
operationName: "DmNsfwMediaFilterUpdate",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
78985: (e) => {
e.exports = {
queryId: "AhxTX0lkbIos4WG53xwzSA",
operationName: "GetSafetyModeSettings",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
34628: (e) => {
e.exports = {
queryId: "qSJIPIpf4gA7Wn21bT3D4w",
operationName: "SetSafetyModeSettings",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
68408: (e) => {
e.exports = {
queryId: "5h0kNbk3ii97rmfY6CdgAA",
operationName: "SharingAudiospacesListeningDataWithFollowersUpdate",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
88541: (e, t, a) => {
"use strict";
a.r(t),
a.d(t, {
default: () => M,
isFatalSafetyModeSettingsPutError: () => q,
});
var r = a(10264),
s = a(35494),
n = a(72599),
o = a(51573),
i = a(17360),
d = a(33816),
p = a.n(d),
u = a(41264),
c = a.n(u),
l = a(95915),
f = a.n(l),
m = a(22502),
y = a.n(m),
h = a(65769),
g = a.n(h),
w = a(35032),
_ = a.n(w),
S = a(76389),
v = a.n(S),
P = a(78985),
A = a.n(P),
T = a(34628),
N = a.n(T),
x = a(68408),
D = a.n(x),
I = a(63140);
const q = (e, t) => {
const a = null == t ? void 0 : t.user_safety_mode_settings_put;
if (!a) {
1 === e.length &&
e[0].code === I.ZP.GenericAccessDenied &&
(0, n.ZP)(
"GQL Safety Mode Settings Update: user does not have access to Safety Mode"
);
}
return !a && (0, i.jB)(e);
},
M = ({ apiClient: e, featureSwitches: t }) => ({
fetchAltTextPromptPreference: () =>
e
.graphQL(p(), {})
.then(({ authenticated_user_alt_text_prompt_preference: e }) => {
const t = e || r.f.None;
return { altTextNudgeType: r.f[t] };
}),
updateAltTextPromptPreference({ altTextNudgeType: t }) {
const a = t || r.f.None;
return e.graphQL(c(), { promptType: a });
},
fetchCaptionsAlwaysDisplayPreference: () =>
e
.graphQL(f(), {})
.then(
({
authenticated_user_captions_always_display_preference: e,
}) => {
const t = e || s.P.None;
return { displayType: s.P[t] };
}
),
updateCaptionsAlwaysDisplayPreference({ displayType: t }) {
const a = t || s.P.None;
return e.graphQL(y(), { displayPreference: a });
},
fetchDataUsageSettings: ({ deviceId: t }) =>
(0, o.o)("dataUsageSettings", () =>
e.graphQL(g(), { device_id: t }, void 0).then((e) => {
var t;
return null != (t = e.viewer) && t.dataUsageSettings
? e.viewer.dataUsageSettings
: { dataSaverMode: !1, videoAutoplay: void 0 };
})
),
updateDataUsageSettings: ({
dataSaverMode: t,
deviceId: a,
videoAutoplay: r,
}) =>
e.graphQL(_(), {
dataSaverEnabled: t,
deviceId: a,
videoAutoplay: r,
}),
updateDmNsfwMediaFilter: ({ dmNsfwMediaFilter: t, userId: a }) =>
e.graphQL(v(), { userId: a, dmNsfwMediaFilter: t }),
updateSharingAudiospacesListeningDataWithFollowers: ({
sharingAudiospacesListeningDataWithFollowers: t,
userId: a,
}) =>
e.graphQL(D(), {
userId: a,
sharingAudiospacesListeningDataWithFollowers: t,
}),
fetchSafetyModeSettings: () =>
e.graphQL(A(), {}).then((e) => {
var t, a, r;
return null != (t = e.viewer) &&
null != (a = t.user_results) &&
null != (r = a.result) &&
r.safety_mode_settings
? {
enabled:
e.viewer.user_results.result.safety_mode_settings.enabled,
duration:
e.viewer.user_results.result.safety_mode_settings
.duration || "none",
expiration:
e.viewer.user_results.result.safety_mode_settings
.expiration,
}
: Object.freeze({});
}),
updateSafetyModeSettings: ({ duration: t, userId: a }) =>
e.graphQL(
N(),
{
userId: a,
enabled: "none" !== t,
duration: "none" === t ? void 0 : t,
},
q
),
});
},
10264: (e, t, a) => {
"use strict";
a.d(t, { f: () => r });
const r = Object.freeze({
None: "None",
Nudge: "Nudge",
Prompt: "Prompt",
Require: "Require",
});
},
35494: (e, t, a) => {
"use strict";
a.d(t, { P: () => r });
const r = Object.freeze({ Enabled: "Enabled", None: "None" });
},
51573: (e, t, a) => {
"use strict";
a.d(t, { o: () => p });
a(21515), a(6886);
var r = a(72599);
const s = new (class {
constructor() {
this.promise = new Promise((e, t) => {
(this.reject = t), (this.resolve = e);
});
}
})(),
n = s.promise;
if ("undefined" != typeof document) {
let e;
document.addEventListener("DOMContentLoaded", () => {
s.resolve(), null != e && clearTimeout(e);
});
const t = () => {
"loading" !== document.readyState
? s.resolve()
: (e = setTimeout(() => {
t();
}, 500));
};
t();
}
var o = a(86916),
i = a(79150),
d = a(25943);
function p(e, t, a) {
const s =
"undefined" != typeof window ? window.__PREFETCH_DATA__ : void 0;
if (!s) return t();
const p = Date.now(),
u = s.timestamp || p;
if (Math.max(0, p - u) >= 3e5)
return delete window.__PREFETCH_DATA__, t();
const c = s.items[e];
if (!c) return t();
return (a ? a(c.meta) : Promise.resolve(!0)).then(
(a) =>
a
? ((d.q.didPrefetch[e] = !0),
Promise.race([c.promise, n])
.then(
(a) =>
a
? o.i(a, i.AK)
: ((0, r.ZP)(
`DOM loaded but prefetch data was not present for ${e}`
),
t()),
() => ((d.q.prefetchPromiseRejected[e] = !0), t())
)
.finally(() => {
delete s.items[e];
}))
: t(),
() => t()
);
}
},
25943: (e, t, a) => {
"use strict";
a.d(t, { q: () => r });
const r = { didPrefetch: {}, prefetchPromiseRejected: {} };
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.SettingsGraphQL.8a5300fa.js.map

View File

@@ -1,42 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Subscription"],
{
61827: (e) => {
e.exports = {
queryId: "lFi3xnx0auUUnyG4YwpCNw",
operationName: "GetUserClaims",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
14424: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => n });
r(53985);
const s = (e) => {
var t, r, s;
return {
userClaims: (null !=
(t =
null == e || null == (r = e.viewer_v2) || null == (s = r.claims)
? void 0
: s.flatMap(({ resources: e }) => (null != e ? e : [])))
? t
: []
)
.map(({ rest_id: e }) => {
if (e) return { rest_id: e };
})
.filter(Boolean),
};
};
var i = r(61827),
a = r.n(i);
const n = ({ apiClient: e, featureSwitches: t }) => ({
fetchUserClaims: () => e.graphQL(a(), {}).then(s),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Subscription.00cc311a.js.map

View File

@@ -1,76 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.SubscriptionPayments"],
{
67033: (e) => {
e.exports = {
queryId: "2LHXrd1uYeaMWhciZgPZFw",
operationName: "CreateCustomerPortalSession",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
35161: (e) => {
e.exports = {
queryId: "wwdBYgScze0_Jnan79jEUw",
operationName: "ListProductSubscriptions",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
53145: (e) => {
e.exports = {
queryId: "hKfOOObQr5JmfmxW0YtPvg",
operationName: "SubscriptionCheckoutUrlWithEligibility",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
92966: (e) => {
e.exports = {
queryId: "f0dExZDmFWFSWMCPQSAemQ",
operationName: "SubscriptionProductDetails",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
15404: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => d });
var i = r(67033),
o = r.n(i),
s = r(35161),
a = r.n(s),
u = r(53145),
n = r.n(u),
c = r(92966),
p = r.n(c);
const d = ({ apiClient: e, featureSwitches: t }) => ({
fetchSubscriptionProductDetails: (t) =>
e.graphQL(p(), t).then((e) => e.web_subscription_product_details),
fetchSubscriptionProductCheckoutUrl: (t) =>
e.graphQL(n(), t).then((e) => {
var t;
return null == (t = e.subscriptioncheckoutsession_create_for_blue)
? void 0
: t.session_url;
}),
fetchProductSubscriptions: (t) =>
e.graphQL(a(), t).then((e) => {
var t;
return null == (t = e.viewer_v2)
? void 0
: t.list_product_subscriptions;
}),
fetchSubscriptionProductCustomerPortalUrl: (t) =>
e.graphQL(o(), t).then((e) => {
var t;
return null == (t = e.customerportalsession_create)
? void 0
: t.customer_portal_session_url;
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.SubscriptionPayments.340b00ca.js.map

View File

@@ -1,55 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.SubscriptionProductFeatures"],
{
25106: (e) => {
e.exports = {
queryId: "-btar_vkBwWA7s3YWfp_9g",
operationName: "FeatureSettingsUpdate",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
73816: (e) => {
e.exports = {
queryId: "Me2CVcAXxvK2WMr-Nh_Qqg",
operationName: "SubscriptionProductFeaturesFetch",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
25465: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => o });
const i = (e) => {
var t;
return (
(null == e || null == (t = e.viewer)
? void 0
: t.subscription_product_features_for_client) || []
).reduce(
(e, t) => (
t[t.rest_id]
? (e[t.rest_id] = {
rest_id: t.rest_id,
...t.config,
settings: t[t.rest_id],
})
: (e[t.rest_id] = { rest_id: t.rest_id, ...t.config }),
e
),
{}
);
};
var s = r(25106),
a = r.n(s),
u = r(73816),
n = r.n(u);
const o = ({ apiClient: e, featureSwitches: t }) => ({
fetchSubscriptionProductFeatures: () => e.graphQL(n(), {}).then(i),
updateFeatureSettings: (t) => e.graphQL(a(), t),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.SubscriptionProductFeatures.1745034a.js.map

View File

@@ -1,147 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.TopArticles"],
{
39296: (e) => {
e.exports = {
queryId: "o9FyvnC-xg8mVBXqL4g-rg",
operationName: "ArticleTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
33278: (e) => {
e.exports = {
queryId: "x4ywSpvg6BesoDszkfbFQg",
operationName: "ArticleTweetsTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
15823: (e, i, _) => {
"use strict";
_.r(i),
_.d(i, {
default: () => w,
isFatalArticleTimelineError: () => c,
isFatalArticleTweetsTimelineError: () => b,
});
var t = _(72599),
n = _(27024),
l = _(17360),
r = _(83175),
a = _(39296),
s = _.n(a),
o = _(33278),
d = _.n(o),
p = _(82249);
const b = (e, i) => {
var _, n;
const r =
null == i ||
null == (_ = i.article_by_rest_id) ||
null == (n = _.tweets_timeline)
? void 0
: n.timeline;
return (
r ||
(0, t.ZP)(
"GQL Top Articles: Failed query for article Tweets timeline"
),
!r && (0, l.jB)(e)
);
},
c = (e, i) => {
var _;
const n =
null == i || null == (_ = i.article_timeline) ? void 0 : _.timeline;
return (
n ||
(0, t.ZP)("GQL Top Articles: Failed query for article timeline"),
!n && (0, l.jB)(e)
);
},
w = ({ apiClient: e, featureSwitches: i }) => ({
fetchArticleTweetsTimeline(_) {
const t =
_.articleListSeedType === n.v.FRIENDS_OF_FRIENDS
? "FriendsOfFriends"
: "FollowingList";
return e
.graphQL(d(), { ..._, ...(0, r.d)(i), articleListSeedType: t }, b)
.then((e) => {
var i, _;
return (
(null == e ||
null == (i = e.article_by_rest_id) ||
null == (_ = i.tweets_timeline)
? void 0
: _.timeline) || p.cY
);
});
},
fetchArticleTimeline(_) {
const t =
_.articleListSeedType === n.v.FRIENDS_OF_FRIENDS
? "FriendsOfFriends"
: "FollowingList";
return e
.graphQL(s(), { ..._, ...(0, r.d)(i), articleListSeedType: t }, c)
.then((e) => {
var i;
return (
(null == e || null == (i = e.article_timeline)
? void 0
: i.timeline) || p.cY
);
});
},
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.TopArticles.8517a34a.js.map

File diff suppressed because it is too large Load Diff

View File

@@ -1,57 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.TrustedFriends"],
{
31903: (e) => {
e.exports = {
queryId: "QjN8ZdavFDqxUjNn3r9cig",
operationName: "AuthenticatedUserTFLists",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
20708: (e) => {
e.exports = {
queryId: "2tP8XUYeLHKjq5RHvuvpZw",
operationName: "CreateTrustedFriendsList",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
75323: (e, t, s) => {
"use strict";
s.r(t), s.d(t, { default: () => u });
var r = s(17360),
i = s(31903),
a = s.n(i),
n = s(20708),
d = s.n(n);
const u = ({ apiClient: e, featureSwitches: t }) => ({
fetchAuthenticatedUserTFLists: () =>
e
.graphQL(
a(),
{},
(0, r.kj)(
(e) =>
!(null != e && e.authenticated_user_trusted_friends_lists),
"GQL Trusted Friends: Failed to fetch trusted friends lists"
)
)
.then((e) => e),
createTrustedFriendsList: () =>
e
.graphQL(
d(),
{},
(0, r.kj)(
(e) => !(null != e && e.trusted_friends_list_create),
"GQL Trusted Friends: Failed to create trusted friends list"
)
)
.then((e) => e),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.TrustedFriends.18a5636a.js.map

View File

@@ -1,199 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.TweetActivity"],
{
64728: (e) => {
e.exports = {
queryId: "4UCAqbA6K7LRYlwSiuImIw",
operationName: "Favoriters",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
12505: (e) => {
e.exports = {
queryId: "yTkZT3ynT87umyc8KzYYxQ",
operationName: "Retweeters",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
79115: (e) => {
e.exports = {
queryId: "8eaWKjHszkS-G_hprUd9AA",
operationName: "TweetEditHistory",
operationType: "query",
metadata: {
featureSwitches: [
"freedom_of_speech_not_reach_fetch_enabled",
"standardized_nudges_misinfo",
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_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",
"interactive_text_enabled",
"responsive_web_text_conversations_enabled",
"longform_notetweets_rich_text_read_enabled",
"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",
"responsive_web_enhance_cards_enabled",
],
},
};
},
4972: (e, _, t) => {
"use strict";
t.r(_), t.d(_, { default: () => b });
var i = t(83175),
n = t(64728),
r = t.n(n),
a = t(12505),
l = t.n(a),
s = t(79115),
o = t.n(s),
d = t(82249);
const b = ({ apiClient: e, featureSwitches: _ }) => ({
fetchLikedBy: ({ count: t, cursor: n, tweetId: a }) =>
e
.graphQL(
r(),
{
tweetId: a,
count: t,
cursor: n,
includePromotedContent: !0,
...(0, i.d)(_),
},
(e, _) => {
var t;
return !(
null != _ &&
null != (t = _.favoriters_timeline) &&
t.timeline
);
}
)
.then((e) => {
var _;
return (
(null == e || null == (_ = e.favoriters_timeline)
? void 0
: _.timeline) || d.cY
);
}),
fetchRetweetedBy: ({ count: t, cursor: n, tweetId: r }) =>
e
.graphQL(
l(),
{
tweetId: r,
count: t,
cursor: n,
includePromotedContent: !0,
...(0, i.d)(_),
},
(e, _) => {
var t;
return !(
null != _ &&
null != (t = _.retweeters_timeline) &&
t.timeline
);
}
)
.then((e) => {
var _;
return (
(null == e || null == (_ = e.retweeters_timeline)
? void 0
: _.timeline) || d.cY
);
}),
fetchEditHistory: ({ tweetId: t }) =>
e
.graphQL(
o(),
{
tweetId: t,
...(0, i.d)(_),
withQuickPromoteEligibilityTweetFields: !0,
},
(e, _) => {
var t;
return !(
null != _ &&
null != (t = _.tweet_result_by_rest_id) &&
t.result
);
}
)
.then((e) => {
var _, t;
return (
((null == e || null == (_ = e.tweet_result_by_rest_id)
? void 0
: _.result) &&
e.tweet_result_by_rest_id.result.edit_history_timeline &&
(null ==
(t = e.tweet_result_by_rest_id.result.edit_history_timeline)
? void 0
: t.timeline)) ||
d.cY
);
}),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.TweetActivity.7e0afbaa.js.map

View File

@@ -1,768 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.TweetStats", "endpoints.Graphql"],
{
29848: (e) => {
e.exports = {
queryId: "h52d1F7dumWGE1tJAhQBpg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
57274: (e) => {
e.exports = {
queryId: "8w-D2OhT0jmGzXaNY--UQA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
2216: (e) => {
e.exports = {
queryId: "8LDNeOEm0kA98uoDsqXvMg",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
41839: (e) => {
e.exports = {
queryId: "JpFFCTBPxYVlDqMUr9twzQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97621: (e) => {
e.exports = {
queryId: "RvojYJJB90VwJ0rdVhbjMQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
87669: (e) => {
e.exports = {
queryId: "b22I8WSfQ8H4Ev8486xAlQ",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
75840: (e) => {
e.exports = {
queryId: "LZfAdxTdNolKXw6ZkoY_kA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
50931: (e) => {
e.exports = {
queryId: "hnaqw2Vok5OETdBVa_uexw",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
59113: (e) => {
e.exports = {
queryId: "-G9eXTmseyiSenbqjrEG6w",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
26491: (e) => {
e.exports = {
queryId: "o0YtPFnd4Lk_pOQb9alCvA",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
21760: (e) => {
e.exports = {
queryId: "EvbTkPDT-xQCfupPu0rWMA",
operationName: "TweetStats",
operationType: "query",
metadata: {
featureSwitches: [
"profile_foundations_tweet_stats_enabled",
"profile_foundations_tweet_stats_tweet_frequency",
],
},
};
},
16221: (e) => {
e.exports = {
queryId: "D8mVcJSVv66_3NcR7fOf6g",
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",
],
},
};
},
97534: (e, _, t) => {
"use strict";
t.r(_),
t.d(_, {
default: () => V,
errorBreadcrumb: () => Z,
isFatalGenericTimelineError: () => M,
isFatalModeratedTimelineError: () => j,
isFatalTeamsResponseError: () => C,
isFatalUserScopedFollowTimelineError: () => U,
isFatalViewerScopedFollowTimelineError: () => N,
parseUserScopedTimeline: () => P,
parseViewerScopedTimeline: () => E,
});
var n = t(58955),
i = t(79363),
r = t(72599),
a = t(32091),
l = t(17360),
s = t(83175),
o = 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, o.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),
f = t.n(h),
g = t(97621),
y = t.n(g),
q = t(87669),
x = t.n(q),
T = t(75840),
k = t.n(T),
A = t(50931),
B = t.n(A),
I = t(59113),
F = t.n(I),
S = t(26491),
G = t.n(S),
Q = t(16221),
L = t.n(Q),
z = t(82249);
const P = (e) => {
var _;
let t = z.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) ||
z.cY);
return t;
},
Z = (e) => {
var _;
return { code: null == (_ = e[0]) ? void 0 : _.code };
},
E = (e) => {
let _ = z.cY;
var t;
null != e &&
e.viewer &&
(_ =
(null == (t = e.viewer.timeline) ? void 0 : t.timeline) || z.cY);
return _;
},
C = (e) =>
Array.isArray(e) &&
!(0, i.Z)(
e,
(e) =>
Array.isArray(e.path) &&
/^viewer.teams.act_as.\d+(.|$)/.test(e.path.join("."))
),
U = (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, r.ZP)("GQL URT: Failed to render Follow timeline", {
extra: Z(e),
}),
!i && (0, l.jB)(e)
);
},
N = (e, _) => {
var t;
const n = null == _ || null == (t = _.viewer) ? void 0 : t.timeline;
return (
n ||
(0, r.ZP)("GQL URT: Failed to render Subscriptions timeline", {
extra: Z(e),
}),
!n && (0, l.jB)(e)
);
},
Y = (e, _) => {
var t, n;
const i =
null == _ ||
null == (t = _.viewer) ||
null == (n = t.muting_timeline)
? void 0
: n.timeline;
return (
i ||
(0, r.ZP)("GQL URT: Failed to render Muting timeline", {
extra: Z(e),
}),
!i && (0, l.jB)(e)
);
},
j = (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, r.ZP)(
"GQL URT: Failed to render ModeratedTimeline timeline",
{ extra: Z(e) }
),
!i && (0, l.jB)(e)
);
},
M = (e, _) => {
var t;
const n = null == _ || null == (t = _.timeline) ? void 0 : t.timeline;
return (
n ||
(0, r.ZP)("GQL URT: Failed to render GenericTimelineById", {
extra: Z(e),
}),
!n && (0, l.jB)(e)
);
};
function R(e, _, t) {
let n;
function i(e) {
return (
e &&
e.viewer &&
e.viewer &&
e.viewer.timeline &&
e.viewer.timeline.timeline
);
}
return (
(n = e === a.kH.Imported ? v() : e === a.kH.AutoBlock ? w() : c()),
({ count: a, cursor: o }) =>
_.graphQL(
n,
{
count: a,
cursor: o,
includePromotedContent: !1,
...(0, s.d)(t),
withSafetyModeUserFields: t.isTrue(
"rito_safety_mode_features_enabled"
),
},
(_, t) => {
const n = i(t);
return (
n ||
(0, r.ZP)(
`GQL URT: Failed to query for Blocked Accounts [${e}]`,
{ extra: Z(_) }
),
!n && (0, l.jB)(_)
);
}
).then((e) => i(e) || z.cY)
);
}
const V = ({ apiClient: e, featureSwitches: _ }) => ({
fetchBlockedAccountsImportedGraphql: R(a.kH.Imported, e, _),
fetchBlockedAccountsAllGraphql: R(a.kH.All, e, _),
fetchBlockedAccountsAutoBlockGraphql: R(a.kH.AutoBlock, e, _),
fetchFollowers: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
f(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, s.d)(_),
},
U
)
.then(P),
fetchFollowersYouKnow: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
y(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, s.d)(_),
},
U
)
.then(P),
fetchFollowing: ({ count: t, cursor: n, userId: i }) =>
e
.graphQL(
x(),
{
userId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, s.d)(_),
},
U
)
.then(P),
fetchSuperFollowers: ({ count: t, cursor: n }) =>
e
.graphQL(
G(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, s.d)(_),
},
N
)
.then(E),
fetchViewerTeams: () =>
e
.graphQLFullResponse(L(), { ...(0, s.S)(_) }, C)
.then(({ data: e, errors: _ }) => {
const { viewer: t } = e,
i = (t && t.teams && t.teams.act_as) || [];
if (!_ || !_.length) return i;
const r = (0, n.Z)(_.map((e) => e.path && e.path[3]));
return i.filter((e, _) => !r.has(_));
})
.then(p),
fetchModeratedTimeline: ({ count: t, cursor: n, rootTweetId: i }) =>
e
.graphQL(
B(),
{
rootTweetId: i,
count: t,
cursor: n,
includePromotedContent: !1,
...(0, s.d)(_),
},
j
)
.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) || z.cY
);
}
return z.cY;
}),
fetchMutedAccounts: ({ count: t, cursor: n }) =>
e
.graphQL(
F(),
{
count: t,
cursor: n,
includePromotedContent: !1,
...(0, s.d)(_),
},
Y
)
.then((e) => {
var _, t;
return (
(null == (_ = e.viewer) || null == (t = _.muting_timeline)
? void 0
: t.timeline) || z.cY
);
}),
fetchGenericTimelineById: ({ count: t, cursor: n, timelineId: i }) =>
e
.graphQL(
k(),
{
timelineId: i,
count: t,
cursor: n,
withQuickPromoteEligibilityTweetFields: !0,
...(0, s.d)(_),
},
M
)
.then((e) => {
var _;
return (null == (_ = e.timeline) ? void 0 : _.timeline) || z.cY;
}),
});
},
77421: (e, _, t) => {
"use strict";
t.r(_), t.d(_, { default: () => o, isFetchFail: () => s });
var n = t(72599),
i = t(17360),
r = t(21760),
a = t.n(r),
l = t(97534);
const s = (e, _) => {
var t;
return (
(null == _ || null == (t = _.result) ? void 0 : t.user) ||
(0, n.ZP)("GQL TweetStats: Failed to load User Tweet Stats", {
extra: (0, l.errorBreadcrumb)(e),
}),
(0, i.jB)(e)
);
},
o = ({ apiClient: e, featureSwitches: _ }) => ({
fetchUserTweetStats: ({ user_id: _ }) =>
e.graphQL(a(), { rest_id: _ }, s).then((e) => {
var t, n;
return {
tweet_stats: (null == (t = e.result) || null == (n = t.user)
? void 0
: n.tweet_stats) || { tweet_frequency: void 0 },
user_id: _,
};
}),
});
},
49890: (e, _, t) => {
"use strict";
t.d(_, { B: () => a, Z: () => l });
var n = t(6899),
i = t(46395),
r = t(90650);
const a = new n.fK.Entity(
"teams",
{ user: r.Z },
{
idAttribute: ({ user: e }) => e[r.Z.idAttribute] || e,
processStrategy: i.Z,
}
),
l = new n.fK.Array(a);
},
32091: (e, _, t) => {
"use strict";
t.d(_, { Gm: () => s, ZH: () => o, kH: () => l });
var n = t(78772),
i = t(52612),
r = t(57659),
a = t(62104);
const l = { All: "any", AutoBlock: "autoblock", Imported: "imported" },
s = (e) =>
(0, a.Z)({
timelineId: `blockedAccountsGraphQL-${e}`,
network: {
getEndpoint: (_) =>
e === l.Imported
? _.Graphql.fetchBlockedAccountsImportedGraphql
: e === l.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,
}),
o = (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 = r.ZP.select(n, _);
return t && !t.blocking;
})
.map((_) => e.removeEntry(_.entryId))
);
};
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.TweetStats.4c3b05da.js.map

View File

@@ -1,406 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.TwitterArticles"],
{
44967: (e) => {
e.exports = {
queryId: "aV-sm-IkvwplcxdYDoLZHQ",
operationName: "TwitterArticleCreate",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
97989: (e) => {
e.exports = {
queryId: "6st-stMDc7KBqLT8KvWhHg",
operationName: "TwitterArticleDelete",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
27730: (e) => {
e.exports = {
queryId: "hwrvh-Qt24lcprL-BDfqRA",
operationName: "TwitterArticleByRestId",
operationType: "query",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
62170: (e) => {
e.exports = {
queryId: "fpcVRSAsjvkwmCiN1HheqQ",
operationName: "TwitterArticleUpdateCoverImage",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
32952: (e) => {
e.exports = {
queryId: "XpBTYp_QXwyZ0XT0JXCBJw",
operationName: "TwitterArticleUpdateData",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
34957: (e) => {
e.exports = {
queryId: "3ojmmegfBC_oHyrmPhxj-g",
operationName: "TwitterArticleUpdateMedia",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
4224: (e) => {
e.exports = {
queryId: "dvH6Ql989I4e5jWEV7HfaQ",
operationName: "TwitterArticleUpdateTitle",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
87139: (e) => {
e.exports = {
queryId: "8M35gHyfpcy3S4UXejUGfA",
operationName: "TwitterArticleUpdateVisibility",
operationType: "mutation",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
63711: (e) => {
e.exports = {
queryId: "UUPSi_aS8_kHDFTWqSBPUA",
operationName: "TwitterArticlesSlice",
operationType: "query",
metadata: {
featureSwitches: [
"responsive_web_twitter_article_data_v2_enabled",
"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",
"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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
11896: (e, t, _) => {
"use strict";
_.r(t), _.d(t, { default: () => k });
var i = _(6899),
a = _(17360),
n = _(83175);
const r = new i.fK.Entity(
"twitterArticles",
{},
{ idAttribute: "rest_id" }
);
var l = _(46395);
const s = new i.fK.Entity(
"twitterArticles",
{},
{
processStrategy: (e, t, _) => {
const { twitter_article: i } = e;
return (0, l.Z)({ ...i }, t, _);
},
idAttribute: (e) => {
var t;
return null == e || null == (t = e.twitter_article)
? void 0
: t.rest_id;
},
}
);
var o = _(44967),
d = _.n(o),
p = _(97989),
b = _.n(p),
w = _(27730),
c = _.n(w),
v = _(63711),
h = _.n(v),
u = _(62170),
m = _.n(u),
g = _(32952),
f = _.n(g),
y = _(34957),
q = _.n(y),
x = _(4224),
A = _.n(x),
T = _(87139),
I = _.n(T),
S = _(82249);
const k = ({ apiClient: e, featureSwitches: t }) => ({
fetchTwitterArticle(_) {
const { twitterArticleId: l } = _;
return e
.graphQL(
c(),
{ twitterArticleId: l, ...(0, n.d)(t) },
(0, a.kj)(
(e) => !(null != e && e.twitterArticle),
"GQL TwitterArticles: Failed to fetch Twitter Article"
)
)
.then((e) => (0, i.Fv)(e.twitterArticle, r));
},
createTwitterArticle(_) {
const { contentStateJson: a } = _;
return e
.graphQL(d(), { data: { content_state_json: a }, ...(0, n.d)(t) })
.then((e) => (0, i.Fv)(e.create_twitter_article, r));
},
deleteTwitterArticle(t) {
const { twitterArticleId: _ } = t;
return e
.graphQL(b(), { twitterArticleId: _ })
.then((e) => e.delete_twitter_article);
},
updateTwitterArticleCoverImage(_) {
const { mediaId: a, twitterArticleId: l } = _;
return e
.graphQL(m(), { twitterArticleId: l, mediaId: a, ...(0, n.d)(t) })
.then((e) => (0, i.Fv)(e.update_twitter_article_cover_image, r));
},
updateTwitterArticleData(_) {
const {
contentStateJson: a,
plaintext: l,
twitterArticleId: s,
wordCount: o,
} = _;
return e
.graphQL(f(), {
twitterArticleId: s,
data: { content_state_json: a, plaintext: l, word_count: o },
...(0, n.d)(t),
})
.then((e) => (0, i.Fv)(e.update_twitter_article, r));
},
updateTwitterArticleMedia(_) {
const { mediaKeys: a, twitterArticleId: l } = _;
return e
.graphQL(q(), { twitterArticleId: l, mediaKeys: a, ...(0, n.d)(t) })
.then((e) => (0, i.Fv)(e.update_twitter_article_media, r));
},
updateTwitterArticleTitle(_) {
const { title: a, twitterArticleId: l } = _;
return e
.graphQL(A(), { twitterArticleId: l, title: a, ...(0, n.d)(t) })
.then((e) => (0, i.Fv)(e.update_twitter_article_title, r));
},
updateTwitterArticleVisibility(_) {
const { twitterArticleId: a, visibility: l } = _;
return e
.graphQL(I(), {
twitterArticleId: a,
visibility: l,
...(0, n.d)(t),
})
.then((e) => (0, i.Fv)(e.update_twitter_article_visibility, r));
},
fetchTwitterArticlesSlice: (_) =>
_ && t.isTrue("responsive_web_twitter_article_view_enabled")
? e
.graphQL(
h(),
{ ..._, ...(0, n.d)(t) },
(0, a.kj)(
(e) => !1,
"GQL TwitterArticles: Failed to fetch Twitter Articles Slice"
)
)
.then((e) => {
const t = ((e) => {
const t = null == e ? void 0 : e.user.result;
if ("User" === (null == t ? void 0 : t.__typename))
return null == t ? void 0 : t.twitter_articles_slice;
})(e);
if (t) {
const { items: e, slice_info: _ } = t,
{ entities: a, result: n } = (0, i.Fv)(e, [s]);
return { entities: a, result: n, slice_info: _ };
}
return S.d;
})
: Promise.resolve(S.d),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.TwitterArticles.993c8cea.js.map

View File

@@ -1,311 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Typeahead"],
{
17883: (e) => {
e.exports = {
queryId: "NEwac2-8ONgf0756ne8oXA",
operationName: "CommunityMemberRelationshipTypeahead",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
56667: (e) => {
e.exports = {
queryId: "gi_UGcUurYp6N6p2BaLJqQ",
operationName: "CommunityUserRelationshipTypeahead",
operationType: "query",
metadata: { featureSwitches: [] },
};
},
29337: (e) => {
e.exports = {
queryId: "RRnOwHttRGscWKC1zY9VRA",
operationName: "TrustedFriendsTypeahead",
operationType: "query",
metadata: {
featureSwitches: [
"blue_business_profile_image_shape_enabled",
"responsive_web_graphql_timeline_navigation_enabled",
],
},
};
},
43524: (e, t, r) => {
"use strict";
r.r(t), r.d(t, { default: () => v });
var i = r(6899),
s = r(70151),
n = r(90968),
_ = r(95212),
a = r(45611);
function u(e) {
const {
community_results: { rest_id: t },
role: r,
user_results: { result: i },
} = e;
if (!i || "User" !== i.__typename || !e) return;
const { id: s, legacy: n, rest_id: _ } = i,
a = null == n ? void 0 : n.screen_name;
return a
? { id_str: `${t}_${_}`, role: r, user: { id: s, screen_name: a } }
: void 0;
}
const l = new i.fK.Entity(a.L, {}, { idAttribute: "id_str" });
var o = r(12006),
d = r(17883),
m = r.n(d),
c = r(56667),
p = r.n(c),
y = r(29337),
f = r.n(y);
const h = (e) =>
e
.map((e) => {
const { result: t } = e.user_results;
if ("User" === (null == t ? void 0 : t.__typename) && t.legacy) {
const e = t.legacy;
return {
id_str: t.rest_id,
is_blue_verified: t.is_blue_verified,
profile_image_url_https: e.profile_image_url_https || "",
can_dm: e.can_dm || !1,
can_media_tag: e.can_media_tag || !1,
protected: e.protected || !1,
verified: e.verified || !1,
name: e.name || "",
screen_name: e.screen_name || "",
};
}
})
.filter(Boolean),
v = ({ apiClient: e, featureSwitches: t }) => ({
fetch(r, i = {}) {
const n = t.isTrue("blue_business_consumption_api_enabled"),
_ = t.isTrue("blue_business_profile_image_shape_enabled"),
a = {
include_ext_is_blue_verified: 1,
...(0, s.Z)(n ? { include_ext_verified_type: 1 } : null),
...(0, s.Z)(_ ? { include_ext_profile_image_shape: 1 } : null),
...r,
};
return e.get("search/typeahead", a, i);
},
fetchTrustedFriendsSuggestions: (t) =>
e
.graphQL(f(), {
trustedFriendsId: t.trustedFriendsId,
prefix: t.prefix,
})
.then((e) => ({
events: [],
lists: [],
ordered_sections: [],
topics: [],
users:
e.trusted_friends_list_by_rest_id.recommended_members_typeahead_results
.map((e) => {
const { result: t } = e;
if (
"User" === (null == t ? void 0 : t.__typename) &&
t.legacy
) {
var r, i, s;
const e = t.legacy;
return {
id_str: t.rest_id,
is_trusted_friends_list_member:
t.is_trusted_friends_list_member,
profile_image_url_https:
e.profile_image_url_https || "",
can_dm: e.can_dm || !1,
can_media_tag: e.can_media_tag || !1,
protected: e.protected || !1,
verified: e.verified || !1,
is_blue_verified:
null != (r = t.is_blue_verified) && r,
verified_type:
null != (i = t.legacy.verified_type) ? i : void 0,
name: e.name || "",
screen_name: e.screen_name || "",
highlightedLabel: (0, o.H)(
null ==
(s = t.identity_profile_labels_highlighted_label)
? void 0
: s.label
),
profile_image_shape: t.profile_image_shape,
};
}
})
.filter(Boolean),
})),
fetchCommunityInviteUsers: (t) =>
e
.graphQL(p(), { communityId: t.communityId, prefix: t.prefix })
.then((e) => {
var t;
const r =
"Community" ===
(null == (t = e.communityResults.result)
? void 0
: t.__typename) && e.communityResults.result;
if (!r)
return {
events: [],
lists: [],
ordered_sections: [],
topics: [],
users: [],
invite_action_results: { result: [] },
};
const s = r.user_relationship_typeahead,
n = h(s),
a = s.map(_.W).filter(Boolean);
return {
events: [],
lists: [],
ordered_sections: [],
topics: [],
users: n,
invite_action_results: (0, i.Fv)(a, [_.Z]),
};
}),
fetchCommunityMembers: (t) =>
e
.graphQL(m(), { communityId: t.communityId, prefix: t.prefix })
.then((e) => {
var t;
const r =
"Community" ===
(null == (t = e.communityResults.result)
? void 0
: t.__typename) && e.communityResults.result;
if (!r)
return {
events: [],
lists: [],
ordered_sections: [],
topics: [],
users: [],
user_community_relationships: { result: [] },
};
const s = r.member_relationship_typeahead.filter(
(e) => e.role !== n.WW.NonMember
),
_ = h(s).filter((e) => !!e.screen_name),
a = s.map(u).filter(Boolean);
return {
events: [],
lists: [],
ordered_sections: [],
topics: [],
users: _,
user_community_relationships: (0, i.Fv)(a, [l]),
};
}),
prefetchUsers(r, i = {}) {
const n = t.isTrue("blue_business_consumption_api_enabled"),
_ = t.isTrue("blue_business_profile_image_shape_enabled"),
a = {
prefetch: !0,
media_tagging_in_prefetch: !0,
result_type: "users",
include_ext_is_blue_verified: 1,
...(0, s.Z)(n ? { include_ext_verified_type: 1 } : null),
...(0, s.Z)(_ ? { include_ext_profile_image_shape: 1 } : null),
...r,
};
return e.get("search/typeahead", a, i);
},
});
},
12006: (e, t, r) => {
"use strict";
r.d(t, { H: () => s });
var i = r(3760);
function s(e) {
if (!e) return;
const {
badge: t,
description: r,
url: s,
userLabelDisplayType: n,
userLabelType: _,
} = e;
return {
badge: t,
description: r,
userLabelType: _,
userLabelDisplayType: n,
url: s && (0, i.Z)(s),
};
}
},
45611: (e, t, r) => {
"use strict";
r.d(t, { L: () => l, Z: () => c });
r(6886);
var i = r(15729),
s = r(90968),
n = r(36325),
_ = r(23006),
a = r(29122),
u = r(91191);
const l = "userCommunityRoleRelationship",
o = (0, a.ZP)({ namespace: l }),
d = {
markUserAsRemovedFromCommunity: (0, a.Tx)(
o,
"markUserAsRemovedFromCommunity",
{
getMeta: (e) => {
const [t, r] = e.split("_");
return { communityId: t, entityId: e, userId: r };
},
reducer: (e, t) => {
const { entityId: r } = t.meta;
return r
? (0, i.ZP)(e, (e) => {
e.entities[r] && (e.entities[r].role = s.WW.NonMember);
})
: e;
},
relayStoreUpdater: (e, t) => {
var r;
const { communityId: i, userId: s } = t,
a = e.get((0, n.WG)("Community", i)),
u = (0, _.h)(a),
l =
null == u ||
null == (r = u.getLinkedRecords("items_results"))
? void 0
: r.filter((e) => {
var t;
return (
(null == e ||
null == (t = e.getLinkedRecord("result"))
? void 0
: t.getValue("rest_id")) !== s
);
});
l && (null == u || u.setLinkedRecords(l, "items_results"));
},
context: "MARK_USER_AS_REMOVED_FROM_COMMUNITY",
}
),
},
m = { ...o, ...d },
c = u.Z.register(m);
},
23006: (e, t, r) => {
"use strict";
r.d(t, { h: () => s });
var i = r(23555);
const s = (e) =>
e && (0, i.$R)(e, "CommunityMembers_Query_members_slice");
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Typeahead.da6cc00a.js.map

View File

@@ -1,415 +0,0 @@
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.URT"],
{
58274: (e) => {
e.exports = {
queryId: "lq02A-gEzbLefqTgD_PFzQ",
operationName: "ConnectTabTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
34758: (e) => {
e.exports = {
queryId: "fkypGKlR9Xz9kLvUZDLoXw",
operationName: "ExplorePage",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
43847: (e) => {
e.exports = {
queryId: "gkjsKepM6gl_HmFWoWKfgg",
operationName: "SearchTimeline",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
31063: (e) => {
e.exports = {
queryId: "vfVbgvTPTQ-dF_PQ5lD1WQ",
operationName: "timelinesFeedback",
operationType: "mutation",
metadata: { featureSwitches: [] },
};
},
83230: (e) => {
e.exports = {
queryId: "I_0j1mjMwv94SdS66S4pqw",
operationName: "UrtFixtures",
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_rich_text_read_enabled",
"responsive_web_enhance_cards_enabled",
],
},
};
},
7276: (e, t, n) => {
"use strict";
n.r(t), n.d(t, { default: () => T, getDefaults: () => x });
var _ = n(98209),
i = n(93333),
a = n(17360),
r = n(83175),
s = n(58274),
o = n.n(s),
l = n(34758),
d = n.n(l),
c = n(43847),
p = n.n(c),
b = n(31063),
u = n.n(b),
m = n(83230),
h = n.n(m),
w = n(6623),
g = n(82249),
v = n(87233),
f = n(55371);
const x = (e) => ({
...f.getGlobalDefaults(e),
...v.getGlobalDefaults(e),
include_entities: !0,
include_user_entities: !0,
include_ext_media_color: !0,
include_ext_media_availability: !0,
include_ext_sensitive_media_warning: !0,
include_ext_trusted_friends_metadata: !0,
send_error_codes: !0,
simple_quoted_tweet: !0,
}),
y = { pc: 1, spelling_corrections: 1 },
T = ({ apiClient: e, featureSwitches: t }) => ({
fetchNotifications(n, _ = {}) {
const { type: i, ...a } = n;
return e.getURT(
`notifications/${i}`,
Object.assign({}, x(t), a, (0, w.Y)(t)),
_
);
},
fetchNotificationsUnreadCount(t, n = {}) {
const { type: _, ...i } = t;
return e.getURT(
`notifications/${_}/unread_count`,
{ ...i, include_tweet_replies: !0 },
n
);
},
updateNotificationsLastSeenCursor(t, n = {}) {
const { type: _, ...i } = t;
return e.postURT(`notifications/${_}/last_seen_cursor`, i, {}, n);
},
fetchSearch: (n, i = {}) =>
e.getURT(
"search/adaptive",
Object.assign(
{},
x(t),
n,
y,
{
include_ext_edit_control: t.isTrue(
"responsive_web_edit_tweet_api_enabled"
),
},
(0, w.Y)(t),
((e) =>
_.Z.shouldDisablePromotedContentFromRequests(e)
? { pc: "0" }
: {})(t),
{}
),
i
),
fetchSearchGraphQL: ({
count: n,
cursor: _,
product: i,
querySource: s,
rawQuery: o,
}) =>
e
.graphQL(
p(),
{
rawQuery: o || "",
count: n,
cursor: _,
querySource: s,
product: i,
...(0, r.d)(t),
},
(0, a.kj)((e) => {
var t, n;
return !(
null != e &&
null != (t = e.search_by_raw_query) &&
null != (n = t.search_timeline) &&
n.timeline
);
}, "GQL URT: Failed to render SearchTimeline")
)
.then((e) => {
var t, n;
return (
(null == (t = e.search_by_raw_query) ||
null == (n = t.search_timeline)
? void 0
: n.timeline) || g.cY
);
}),
fetchGeneric(n, _ = {}) {
const { endpointUrl: i, ...a } = n;
return e.getUnversioned(
i,
Object.assign({}, x(t), a, (0, w.Y)(t)),
{ ..._, ...(0, w.c)() }
);
},
fetchReactiveInstructions(n, _ = {}) {
const { timeout: i, ...a } = n;
return e.getURT(
"timeline/reactive",
Object.assign({}, x(t), a, (0, w.Y)(t)),
_,
".json",
i
);
},
fetchTestFixtures: (n, _) =>
e.getURT("timeline/fixture", Object.assign({}, x(t), n), {
..._,
...(0, w.c)(),
}),
fetchTestGraphqlFixtures: (n, _) =>
e
.graphQL(
h(),
{ includePromotedContent: !0, ...(0, r.d)(t) },
(e, t) => {
var n, _;
return !(
null != t &&
null != (n = t.viewer) &&
null != (_ = n.urt_fixture) &&
_.timeline
);
}
)
.then((e) => {
var t, n;
return null == e ||
null == (t = e.viewer) ||
null == (n = t.urt_fixture)
? void 0
: n.timeline;
}),
fetchExplore: (n, _) =>
e.getURT("guide", Object.assign({}, x(t), n, (0, w.Y)(t)), {
..._,
...(0, w.c)(),
}),
fetchExploreGraphQL: ({ context: n, cursor: _ }) =>
e
.graphQL(
d(),
{ cursor: _ ? _.toString() : "", context: n, ...(0, r.d)(t) },
(0, a.kj)(
(e) => !(null != e && e.explore_page),
"GQL URT: Failed to render Explore GraphQL"
)
)
.then((e) => e.explore_page || g.ln),
fetchUserMoments(n, _) {
const a = {
..._,
...(0, i.Z)(n.activeTeamId),
...(0, w.c)(),
"content-type": "application/json",
},
{ includeCapsuleContents: r, ...s } = n;
return e.getURT(
"moments/list_user_moments",
Object.assign({}, x(t), s, { include_capsule_contents: r }),
a
);
},
postCustomEndpoint(t, n = {}) {
const { endpoint: _, ...i } = t;
return e.postUnversioned(_, i, n);
},
fetchLiveEventTimeline(n, _) {
const { eventId: i, ...a } = n;
return e.getURT(
`live_event/timeline/${i}`,
Object.assign({}, x(t), a, (0, w.Y)(t), {
urt: !0,
get_annotations: t.isTrue("moment_annotations_enabled"),
}),
{ ..._, ...(0, w.c)() }
);
},
fetchExploreTopic: (n, _ = {}) =>
e.getURT("guide/topic", Object.assign({}, x(t), n, (0, w.Y)(t)), _),
fetchNewsLandingTimeline: (n, _ = {}) =>
e.getURT("rux", Object.assign({}, x(t), n, (0, w.Y)(t)), _),
fetchRichConnectTimeline: (n, _ = {}) =>
e.getURT(
"people_discovery/modules_urt",
Object.assign({}, x(t), n, (0, w.Y)(t)),
_
),
fetchRichSuggestedTimeline: (n, _ = {}) =>
e.getURT(
"people_discovery/modules_urt",
Object.assign({}, x(t), n, (0, w.Y)(t)),
_
),
fetchNUXUserRecommendations: (n, _ = {}) =>
e.getURT(
"onboarding/fetch_user_recommendations_urt",
Object.assign({}, x(t), n, (0, w.Y)(t)),
_
),
submitTimelinesFeedback: (t) => e.graphQL(u(), { ...t }),
fetchRichConnectTimelineGraphql: ({
context: n,
count: _,
cursor: i,
}) =>
e
.graphQL(
o(),
{ count: _, cursor: i, context: n, ...(0, r.d)(t) },
(0, a.kj)((e) => {
var t;
return !(
null != e &&
null != (t = e.connect_tab_timeline) &&
t.timeline
);
}, "GQL URT: Failed to render ConnectTabTimeline")
)
.then((e) => {
var t;
return (
(null == (t = e.connect_tab_timeline)
? void 0
: t.timeline) || g.cY
);
}),
});
},
98209: (e, t, n) => {
"use strict";
n.d(t, { Z: () => _ });
const _ = (() => {
let e = !1;
return {
recordAdBlockerPresence: () => {
e = !0;
},
shouldHidePromotedTweets: (t) =>
e && t.isTrue("responsive_web_extension_compatibility_hide"),
shouldDisablePromotedContentFromRequests: (t) =>
e &&
t.isTrue("responsive_web_extension_compatibility_override_param"),
};
})();
},
93333: (e, t, n) => {
"use strict";
function _(e) {
return e ? { "x-act-as-user-id": e } : {};
}
n.d(t, { Z: () => _ });
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.URT.cf027bba.js.map

View File

@@ -1,29 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.UserData"],
{
22866: (t, e, a) => {
a.r(e), a.d(e, { default: () => n });
const n = ({ apiClient: t, featureSwitches: e }) => ({
fetchDownloads: (e, a) => t.get("account/user_twitter_data", e, a, ""),
createDataDownload: (e, a) =>
t.post(
"account/user_twitter_data",
e,
{},
{ ...a, "content-type": "application/json" },
""
),
markDataAsDownloaded: (e, a) =>
t.put(
"account/user_twitter_data",
e,
{ ...a, "content-type": "application/json" },
""
),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.UserData.4a13bf3a.js.map

File diff suppressed because it is too large Load Diff

View File

@@ -1,63 +0,0 @@
"use strict";
(self.webpackChunk_twitter_responsive_web =
self.webpackChunk_twitter_responsive_web || []).push([
["endpoints.Validity"],
{
10134: (e, a, s) => {
s.r(a), s.d(a, { default: () => u });
var i = s(6899),
t = s(73228),
l = s.n(t);
const r = l().d5568440,
n = l().d0511fe6,
d = l().cd24fe60,
o = new i.fK.Entity(
"emailValidity",
{},
{
processStrategy: (e) => ({
valid: e.valid,
errorMessage: e.valid ? "" : e.msg,
}),
}
),
p = new i.fK.Entity(
"passwordValidity",
{},
{
processStrategy: (e) => ({
valid: e.pass,
errorMessage: e.pass ? "" : r,
}),
}
),
v = new i.fK.Entity(
"phoneNumberValidity",
{},
{
processStrategy: (e) => ({
valid: e.valid && e.available,
errorMessage: e.valid ? (e.available ? "" : n) : d,
}),
}
),
u = ({ apiClient: e, featureSwitches: a }) => ({
fetchPasswordStrength: (a, s) =>
e
.post("account/password_strength", a, {}, null != s ? s : {})
.then((e) => ((e) => (0, i.Fv)(e, p))({ ...e, id: a.password })),
isPhoneNumberAvailable: (a, s) =>
e
.get("users/phone_number_available", a, null != s ? s : {})
.then((e) =>
((e) => (0, i.Fv)(e, v))({ ...e, id: a.raw_phone_number })
),
isEmailAvailable: (a, s) =>
e
.getI("users/email_available", a, null != s ? s : {})
.then((e) => ((e) => (0, i.Fv)(e, o))({ ...e, id: a.email })),
});
},
},
]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.Validity.82b4706a.js.map

View File

@@ -183,8 +183,6 @@ scraper.download_media([456, 567, 678])
#### Get user/tweet data (no auth)
![](assets/scrape.gif)
```python
from twitter.noauth.scraper import Scraper