(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [7649], { 20308: (e, t, n) => { "use strict"; n.r(t), n.d(t, { default: () => c }); var a = n(25771), i = n(41377), r = n(38557), s = n(87163), o = n(85151), l = n(25781); let d = e => { let { children: t } = e, { t: n } = (0, o.Bd)(), [i, d] = (0, s.useState)("waiting_for_token"); return ((0, s.useEffect)(() => { let e = new URLSearchParams(window.location.search).get("presetId") || "", t = t => { if (t.source !== window.parent || "null" === t.origin || !t.data || "object" != typeof t.data || Array.isArray(t.data)) return; let { type: n, token: a } = t.data; if (n !== r.tA || "string" != typeof a) return; let i = (0, r.qC)(a, e); if (!i) { var s; return void(s = t.origin, (0, r.ho)(), d("auth_failed"), window.parent.postMessage({ type: r.Vv }, s)) }(0, r.GX)(a, t.origin, i.businessUserId), l.kH.setState({ userInfo: { accountId: i.accountId, nickname: i.nickname, email: "", userAvatar: i.avatarUrl, needsInvitation: !1, userLevel: null, isHomeWhitelist: !1, loading: !1, error: null }, initPromise: Promise.resolve() }), d("authenticated") }, n = () => d("auth_failed"); return window.addEventListener("message", t), window.addEventListener(r.Cf, n), window.parent.postMessage({ type: r.yt }, "*"), () => { window.removeEventListener("message", t), window.removeEventListener(r.Cf, n), (0, r.ho)() } }, []), "authenticated" === i) ? t : (0, a.jsx)("main", { className: "flex min-h-screen items-center justify-center bg-black px-6 text-center text-white", children: (0, a.jsx)("p", { role: "auth_failed" === i ? "alert" : "status", "aria-live": "polite", children: n("auth_failed" === i ? "components.live.embedAuthFailed" : "components.live.embedWaiting") }) }) }, u = (0, i.default)(() => Promise.all([n.e(1764), n.e(4100), n.e(5390), n.e(6953), n.e(2699), n.e(3), n.e(1573), n.e(7173), n.e(5833), n.e(2728), n.e(5588), n.e(4611), n.e(1981), n.e(109), n.e(4617), n.e(445), n.e(4397), n.e(4233), n.e(7027), n.e(3474), n.e(1298), n.e(2321), n.e(7956), n.e(8917), n.e(1459), n.e(824), n.e(5278), n.e(7328), n.e(3809), n.e(4823), n.e(8948), n.e(314), n.e(3144), n.e(2241), n.e(5094), n.e(8858), n.e(8605), n.e(4042), n.e(5855)]).then(n.bind(n, 17938)).then(e => e.LivePageClient), { loadableGenerated: { webpack: () => [17938] }, ssr: !1 }); function c() { return (0, r.P5)() ? (0, a.jsx)(d, { children: (0, a.jsx)(u, {}) }) : (0, a.jsx)(u, {}) } }, 67029: (e, t, n) => { Promise.resolve().then(n.bind(n, 20308)) } }, e => { e.O(0, [7399, 8140, 411, 8484, 5719, 8886, 5065, 7827, 5745, 9168, 9454, 7002, 1803, 8413, 4965, 504, 6953, 2699, 3, 1573, 980, 5182, 7173, 5833, 2728, 5588, 4611, 1981, 109, 4617, 445, 4397, 4233, 7027, 3474, 1298, 2321, 7956, 8917, 1459, 824, 5278, 7328, 3809, 4823, 8948, 314, 3144, 2241, 9571, 6136, 1373, 7358], () => e(e.s = 67029)), _N_E = e.O() } ]);