Skip to content

Instantly share code, notes, and snippets.

@comalex
Created October 27, 2024 05:52
Show Gist options
  • Save comalex/5de3623c71df6c7f81d8a875a3623e91 to your computer and use it in GitHub Desktop.
Save comalex/5de3623c71df6c7f81d8a875a3623e91 to your computer and use it in GitHub Desktop.
OFapp.js
This file has been truncated, but you can view the full file.
!function() {
var e = {
654574: function(e, t, s) {
"use strict";
s.d(t, {
A: function() {
return u
}
});
var r = function e() {
var t = this
, s = t._self._c;
return s("router-link", {
attrs: {
to: t.to,
custom: ""
},
scopedSlots: t._u([{
key: "default",
fn: function({href: e, isActive: r, isExactActive: a}) {
return [s("a", t._b({
class: {
[t.$attrs["active-class"]]: t.$attrs["active-class"] && r,
[t.$attrs["exact-active-class"]]: t.$attrs["exact-active-class"] && a
},
attrs: {
href: e
},
on: {
click: function(e) {
return e.preventDefault(),
t.clickHandler.apply(null, arguments)
}
}
}, "a", t.$attrs, !1), [t._t("default")], 2)]
}
}], null, !0)
})
}, a = [], n = s(944114), i = s(725440), o, c = {
name: "BaseLink",
props: {
to: {
type: Object,
required: !0
},
savePrevQuery: {
type: Boolean,
default: !1
}
},
methods: {
clickHandler() {
if (this.$route.name === this.to.name) {
const e = {
...this.to.query
}
, t = {
...this.to,
query: {
_: (new Date).getTime().toString()
}
};
void 0 !== this.$attrs.replace ? this.$router.replace(t) : this.$router.push(t);
const s = this.savePrevQuery ? e : {};
this.$router.replace({
...this.to,
query: {
...s
}
})
} else
void 0 !== this.$attrs.replace ? this.$router.replace({
...this.to
}) : this.$router.push({
...this.to
})
}
}
}, d, l, u = (0,
s(281656).A)(c, r, a, !1, null, null, null).exports
},
18188: function(e, t, s) {
"use strict";
s.d(t, {
CC: function() {
return d
},
F2: function() {
return u
},
HT: function() {
return o
},
dM: function() {
return a
},
jH: function() {
return n
},
jI: function() {
return m
},
jf: function() {
return i
},
rI: function() {
return c
},
tP: function() {
return l
},
x2: function() {
return f
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/trials/claim`, {
code: e
}).then((e => e.data))
, n = e => r.Ay.post(`${r.XV}/trials/check`, {
code: e,
reserve: !0
}).then((e => e.data))
, i = e => r.Ay.post(`${r.XV}/promotions/claim`, {
code: e,
strictAuthCheck: 1
}).then((e => e.data))
, o = e => r.Ay.get(`${r.XV}/promotions/offer/${e}`).then((e => e.data))
, c = e => r.Ay.post(`${r.XV}/users/restore-access`, {
code: e
}, {
"axios-retry": {
skip429Alert: !0
}
}).then((e => e.data))
, d = (e, t={}) => r.Ay.get(`${r.XV}/emails/confirm/${e}${(0,
r.Zq)(t)}`).then((e => e.data))
, l = e => r.Ay.post(`${r.XV}/users/clicks-stats`, e).then((e => e.data)).catch(( () => {}
))
, u = (e, t="view") => r.Ay.get(`${r.XV}/gdpr/${e}${(0,
r.Zq)({
op: t
})}`).then((e => e.data))
, m = e => r.Ay.post(`${r.XV}/address/stat`, e).then((e => e.data))
, f = e => r.Ay.post(`${r.XV}/accepted-cookies`, e).then((e => e.data))
},
494948: function(e, t, s) {
"use strict";
s.d(t, {
dV: function() {
return c
},
iD: function() {
return a
},
kz: function() {
return i
},
lZ: function() {
return d
},
sJ: function() {
return o
},
xu: function() {
return n
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/users/login`, e).then((e => e.data))
, n = () => r.Ay.post(`${r.XV}/users/logout`).then((e => e.data))
, i = e => r.Ay.post(`${r.XV}/users/register`, e).then((e => e.data))
, o = () => r.Ay.get(`${r.XV}/oauth/confirm`).then((e => e.data))
, c = () => r.Ay.get(`${r.XV}/webauthn/credentials`).then((e => e.data))
, d = e => r.Ay.delete(`${r.XV}/webauthn/credentials`, {
data: e
}).then((e => e.data))
},
644834: function(e, t, s) {
"use strict";
s.d(t, {
$k: function() {
return o
},
Ao: function() {
return v
},
H3: function() {
return a
},
Kj: function() {
return A
},
PJ: function() {
return b
},
QE: function() {
return d
},
Qd: function() {
return S
},
Tq: function() {
return i
},
ZV: function() {
return g
},
_R: function() {
return w
},
aS: function() {
return f
},
gH: function() {
return h
},
hf: function() {
return c
},
ij: function() {
return m
},
jN: function() {
return n
},
k5: function() {
return u
},
q2: function() {
return y
},
ql: function() {
return p
},
vn: function() {
return l
},
xR: function() {
return I
}
});
var r = s(977434);
const a = () => r.Ay.get(`${r.XV}/payouts/account`).then((e => e.data))
, n = e => r.Ay.post(`${r.XV}/payouts/account`, e).then((e => e.data))
, i = () => r.Ay.get(`${r.XV}/payouts/legal-form`).then((e => e.data))
, o = () => r.Ay.get(`${r.XV}/payouts/legal-info`).then((e => e.data))
, c = ({payload: e}) => r.Ay.post(`${r.XV}/payouts/legal`, e).then((e => e.data))
, d = e => r.Ay.post(`${r.XV}/payouts/legal/twitter`, e).then((e => e.data))
, l = e => r.Ay.post(`${r.XV}/payouts/legal/instagram`, e).then((e => e.data))
, u = (e={}, t) => r.Ay.get(`${r.XV}/payouts/bank${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, m = (e={}, t) => r.Ay.get(`${r.XV}/payouts/other/bank${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, f = e => r.Ay.post(`${r.XV}/payouts/bank`, e).then((e => e.data))
, h = e => r.Ay.patch(`${r.XV}/payouts/bank`, e).then((e => e.data))
, p = () => r.Ay.delete(`${r.XV}/payouts/bank`).then((e => e.data))
, g = () => r.Ay.get(`${r.XV}/payouts/stripe`).then((e => e.data))
, y = () => r.Ay.get(`${r.XV}/payouts/stripe/legal`).then((e => e.data))
, S = e => r.Ay.post(`${r.XV}/payouts/stripe/legal`, e).then((e => e.data))
, v = (e=!1) => r.Ay.get(`${r.XV}/payouts/stripe/account${e ? "-edit" : ""}`).then((e => e.data))
, w = e => r.Ay.post(`${r.XV}/payouts/stripe/account`, e).then((e => e.data))
, I = e => r.Ay.get(`${r.XV}/zip/${e}/state`).then((e => e.data))
, b = (e, t) => r.Ay.post(`${r.XV}/address`, e, {
cancelToken: t
}).then(( ({data: e}) => e))
, A = () => r.Ay.get(`${r.XV}/countries/payouts`).then((e => e.data))
},
204607: function(e, t, s) {
"use strict";
s.d(t, {
C7: function() {
return E
},
EE: function() {
return f
},
G_: function() {
return T
},
HC: function() {
return m
},
HI: function() {
return p
},
Ji: function() {
return h
},
N_: function() {
return A
},
PB: function() {
return i
},
Q8: function() {
return n
},
R_: function() {
return k
},
S: function() {
return L
},
Sl: function() {
return o
},
W9: function() {
return g
},
X9: function() {
return v
},
_5: function() {
return a
},
_e: function() {
return l
},
_z: function() {
return d
},
gQ: function() {
return u
},
jT: function() {
return w
},
lq: function() {
return C
},
mM: function() {
return S
},
oP: function() {
return V
},
po: function() {
return y
},
qe: function() {
return b
},
qm: function() {
return $
},
rS: function() {
return _
},
t8: function() {
return c
},
uo: function() {
return P
},
x8: function() {
return I
},
yP: function() {
return M
}
});
var r = s(977434);
const a = ({limit: e=r.Jg, offset: t=0, listId: s, ...a}={}, n) => r.Ay.get(`${r.XV}/chats${(0,
r.Zq)({
limit: e,
offset: t,
list_id: s,
skip_users: "all",
...a
})}`, {
cancelToken: n
}).then((e => e.data))
, n = ({limit: e=r.Jg, offset: t=0, skipUsers: s, ...a}, n) => r.Ay.get(`${r.XV}/chats/users${(0,
r.Zq)({
limit: e,
offset: t,
skip_users: s,
skip_users_dups: s ? void 0 : 1,
...a
})}`, {
cancelToken: n
}).then((e => e.data))
, i = e => r.Ay.get(`${r.XV}/chats/${encodeURIComponent(e)}?skip_users=all`).then((e => e.data))
, o = (e, {limit: t=r.Jg, groupId: s, skipUsers: a, order: n="desc", ...i}={}) => r.Ay.get(`${r.XV}/chats/${encodeURIComponent(e)}/messages${(0,
r.Zq)({
limit: t,
group_id: s,
order: n,
skip_users: a,
skip_users_dups: a ? void 0 : 1,
...i
})}`).then((e => e.data))
, c = (e, t={}) => r.Ay.get(`${r.XV}/chats/${encodeURIComponent(e)}/messages/search${(0,
r.Zq)(t)}`).then((e => e.data))
, d = (e, t) => r.Ay.post(`${r.XV}/chats/${e}/messages`, t).then((e => e.data))
, l = e => r.Ay.delete(`${r.XV}/chats/${e}`).then((e => e.data))
, u = (e, t=null) => r.Ay.delete(`${r.XV}/messages/${e}`, t ? {
data: {
withUserId: t
}
} : {}).then((e => e.data))
, m = e => r.Ay.get(`${r.XV}/messages/${e}`).then((e => e.data))
, f = () => r.Ay.get(`${r.XV}/messages/queue`).then((e => e.data))
, h = (e, t="scheduled", s) => r.Ay.get(`${r.XV}/messages/queue/${e}${(0,
r.Zq)({
format: t
})}`, {
cancelToken: s
}).then((e => e.data))
, p = e => r.Ay.post(`${r.XV}/messages/queue`, e).then((e => e.data))
, g = (e, t) => r.Ay.put(`${r.XV}/messages/queue/${t}`, e).then((e => e.data))
, y = e => r.Ay.delete(`${r.XV}/messages/queue/${e}`).then((e => e.data))
, S = e => r.Ay.post(`${r.XV}/chats/${e}/mark-as-read`).then((e => e.data))
, v = e => r.Ay.delete(`${r.XV}/chats/${e}/mark-as-read`).then((e => e.data))
, w = e => r.Ay.post(`${r.XV}/chats/mark-as-read`, e).then((e => e.data))
, I = ({messageId: e, withUserId: t}) => r.Ay.post(`${r.XV}/messages/${e}/like`, {
withUserId: t
}).then((e => e.data))
, b = ({messageId: e, withUserId: t}) => r.Ay.delete(`${r.XV}/messages/${e}/like`, {
data: {
withUserId: t
}
}).then((e => e.data))
, A = e => r.Ay.post(`${r.XV}/chats/${e}/hide`).then((e => e.data))
, P = e => r.Ay.post(`${r.XV}/chats/${e}/mute`).then((e => e.data))
, k = e => r.Ay.delete(`${r.XV}/chats/${e}/mute`).then((e => e.data))
, C = ({offset: e=0, limit: t=30, query: s, type: a}={}, n) => r.Ay.get(`${r.XV}/messages/queue/stats${(0,
r.Zq)({
offset: e,
limit: t,
query: s,
type: a,
format: "infinite"
})}`, {
cancelToken: n
}).then((e => e.data))
, L = e => r.Ay.post(`${r.XV}/messages/queue/size`, {
queueBuyers: e
}).then((e => e.data))
, T = ({userId: e, type: t="", opened: s, lastId: a, limit: n=20, signal: i}={}) => r.Ay.get(`${r.XV}/chats/${encodeURIComponent(e)}/media/${t}${(0,
r.Zq)({
opened: s,
last_id: a,
limit: n,
skip_users: "all"
})}`, {
signal: i
}).then((e => e.data))
, M = ({queueId: e, limit: t=r.Jg, offset: s=0, skipUsers: a, marker: n}) => r.Ay.get(`${r.XV}/messages/queue/${e}/buyers${(0,
r.Zq)({
limit: t,
offset: s,
skip_users: a,
skip_users_dups: a ? void 0 : 1,
marker: n
})}`).then((e => e.data))
, _ = (e, t) => r.Ay.post(`${r.XV}/messages/${e}/pin${t ? "/user/" + t : ""}`).then((e => e.data))
, $ = (e, t) => r.Ay.delete(`${r.XV}/messages/${e}/pin${t ? "/user/" + t : ""}`).then((e => e.data))
, E = e => r.Ay.delete(`${r.XV}/chats/${e}/messages/pin`).then((e => e.data))
, V = (e, t) => r.Ay.put(`${r.XV}/messages/${e}/hide`, t).then((e => e.data))
},
692492: function(e, t, s) {
"use strict";
s.d(t, {
Dt: function() {
return a
},
jl: function() {
return i
},
qp: function() {
return n
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/comments/${e}/like`).then((e => e.data))
, n = e => r.Ay.delete(`${r.XV}/comments/${e}/like`).then((e => e.data))
, i = e => r.Ay.delete(`${r.XV}/comments/${e}`).then((e => e.data))
},
542427: function(e, t, s) {
"use strict";
s.d(t, {
V: function() {
return a
}
});
var r = s(977434);
const a = ({category: e, q: t, limit: s, offset: a}={}) => r.Ay.get(`${r.XV}/giphy/proxy/${e}/${t ? "search" : "trending"}${(0,
r.Zq)({
limit: s,
offset: a,
q: t
})}`).then((e => e.data))
},
30976: function(e, t, s) {
"use strict";
s.d(t, {
$J: function() {
return i
},
Et: function() {
return c
},
Gj: function() {
return o
}
});
var r = s(501882)
, a = s.n(r)
, n = s(977434);
const i = () => n.Ay.get(`${n.XV}/init`, {
"axios-retry": {
forceRetry: !0
}
}).then((e => e.data))
, o = e => fetch(e).then((e => e.ok && a()(e.json) ? e.json() : {}))
, c = () => n.Ay.get(`${n.XV}/ip`).then((e => e.data))
},
448416: function(e, t, s) {
"use strict";
s.d(t, {
Am: function() {
return a
},
An: function() {
return n
},
E_: function() {
return c
},
hX: function() {
return i
},
yQ: function() {
return o
},
yt: function() {
return d
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/users/opensea/wallet`, e).then((e => e.data))
, n = () => r.Ay.delete(`${r.XV}/users/opensea/wallet`).then((e => e.data))
, i = ({offset: e=0, limit: t=r.Jg}) => r.Ay.get(`${r.XV}/users/opensea/assets${(0,
r.Zq)({
offset: e,
limit: t
})}`).then((e => e.data))
, o = ({offset: e=0, limit: t=r.Jg}) => r.Ay.get(`${r.XV}/users/opensea/assets/nft${(0,
r.Zq)({
offset: e,
limit: t
})}`).then((e => e.data))
, c = e => r.Ay.put(`${r.XV}/users/opensea/nft`, e).then((e => e.data))
, d = e => r.Ay.get(`${r.XV}/users${e ? `/${e}` : ""}/opensea/nft`).then((e => e.data))
},
381465: function(e, t, s) {
"use strict";
s.d(t, {
Eg: function() {
return u
},
GO: function() {
return b
},
GT: function() {
return M
},
Gt: function() {
return A
},
Hr: function() {
return g
},
Lo: function() {
return l
},
R8: function() {
return k
},
Zr: function() {
return P
},
cU: function() {
return T
},
dz: function() {
return L
},
k5: function() {
return o
},
ox: function() {
return c
},
r2: function() {
return h
},
sQ: function() {
return I
},
t4: function() {
return C
},
tZ: function() {
return w
},
xK: function() {
return f
},
yw: function() {
return p
}
});
var r = s(858156)
, a = s.n(r)
, n = s(977434)
, i = s(441153);
const o = e => n.Ay.get(`${n.XV}/payments/3ds-js${(0,
n.Zq)({
isExtendedVendorFormat: 1,
v: e
})}`).then((e => e.data))
, c = (e={}) => n.Ay.post(`${n.XV}/payments/pay`, e).then((e => e.data))
, d = e => request.post(`${apiVersion}/payments/cards`, e).then((e => e.data))
, l = (e, t) => n.Ay.put(`${n.XV}/payments/cards/${e}`, t).then((e => e.data))
, u = () => n.Ay.get(`${n.XV}/payments/cards`).then((e => e.data))
, m = e => request.get(`${apiVersion}/payments/cards-vat${buildQuery(e)}`).then((e => e.data))
, f = (e={}, t) => n.Ay.get(`${n.XV}/payments/methods-vat${(0,
n.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, h = ({limit: e=n.Jg, marker: t, type: s, dateFrom: r, dateTo: a}={}) => n.Ay.get(`${n.XV}/payments/all/transactions${(0,
n.Zq)({
limit: e,
marker: t,
type: s,
date_from: r,
date_to: a
})}`).then((e => e.data))
, p = () => n.Ay.get(`${n.XV}/payments/all/has-transactions`).then((e => e.data))
, g = (e={}) => n.Ay.get(`${n.XV}/payments/token/ccbill${(0,
n.Zq)(e)}`).then((e => e.data))
, y = () => request.get(`${apiVersion}/payments/token/optile`).then((e => e.data))
, S = e => {
const t = store.getters["init/getInit"]
, s = _get(t, "cards.inovio.proxyHost");
return request.post(`${s ? `https://${s}` : ""}${apiVersion}/payments/proxy/inovio`, e).then((e => e.data))
}
, v = e => request.post(`${apiVersion}/payments/proxy/emerchantpay`, e).then((e => e.data))
, w = (e, t) => n.Ay.post(e, t)
, I = e => n.Ay.put(`${n.XV}/payments/cards/${e}/default`).then((e => e.data))
, b = e => n.Ay.delete(`${n.XV}/payments/cards/${e}`).then((e => e.data))
, A = (e, t, s, r) => {
const a = new FormData;
return r ? a.append("fileBase64", r) : s && a.append("files[]", s, s.name),
n.Ay.post(`${e}payments/scan-card`, a, {
headers: {
post: {
Authorization: `Bearer ${t}`
}
}
}).then((e => e.data))
}
, P = () => n.Ay.get(`${n.XV}/alternative-payment-methods`).then((e => e.data))
, k = (e={}) => n.Ay.get(`${n.XV}/alternative-payment-methods/form${(0,
n.Zq)(e)}`).then((e => e.data))
, C = (e={}) => n.Ay.post(`${n.XV}/alternative-payment-methods/form`, e).then((e => e.data))
, L = e => n.Ay.post(`${n.XV}/alternative-payment-methods/pay`, e).then((e => e.data))
, T = e => n.Ay.delete(`${n.XV}/alternative-payment-methods`, {
data: {
id: e
}
}).then((e => e.data))
, M = (e, t={}) => n.Ay.post(`${n.XV}/payments/cards/${e}/verify`, t).then((e => e.data))
},
874727: function(e, t, s) {
"use strict";
s.d(t, {
At: function() {
return T
},
D7: function() {
return F
},
DH: function() {
return R
},
F_: function() {
return p
},
G9: function() {
return b
},
IN: function() {
return y
},
Is: function() {
return D
},
J3: function() {
return u
},
Oj: function() {
return k
},
Pd: function() {
return E
},
ZS: function() {
return _
},
ZX: function() {
return v
},
Zr: function() {
return w
},
_8: function() {
return c
},
aE: function() {
return d
},
ci: function() {
return m
},
dG: function() {
return L
},
eC: function() {
return g
},
fh: function() {
return C
},
ho: function() {
return V
},
jP: function() {
return P
},
jl: function() {
return M
},
ke: function() {
return h
},
ls: function() {
return I
},
nG: function() {
return f
},
ri: function() {
return U
},
s3: function() {
return $
},
ty: function() {
return S
},
uX: function() {
return O
},
xI: function() {
return A
},
yd: function() {
return l
}
});
var r = s(383488)
, a = s.n(r)
, n = s(971086)
, i = s.n(n)
, o = s(977434);
const c = ({limit: e=o.Jg, marker: t}={}) => o.Ay.get(`${o.XV}/payouts/transactions${(0,
o.Zq)({
limit: e,
marker: t
})}`).then((e => e.data))
, d = (e=!1) => o.Ay.get(`${o.XV}/payouts/balances${e ? "/stripe" : ""}`).then((e => e.data))
, l = (e, t, s) => o.Ay.get(`${o.XV}/payouts/stats${(0,
o.Zq)({
startDate: e,
endDate: t
})}`, {
cancelToken: s
}).then((e => e.data))
, u = (e={}) => o.Ay.get(`${o.XV}/payouts/requests${(0,
o.Zq)(e)}`).then((e => e.data))
, m = (e={}) => o.Ay.get(`${o.XV}/payouts/requests/stripe${(0,
o.Zq)(i()(e, a()))}`).then((e => e.data))
, f = ({withdrawalPeriod: e, isStripe: t=!1}={}) => o.Ay.patch(`${o.XV}/payouts/requests${t ? "/stripe" : ""}`, {
withdrawalPeriod: e
}).then((e => e.data))
, h = e => o.Ay.post(`${o.XV}/payouts/requests`, {
withdrawal_amount: e
}).then((e => e.data))
, p = ({data: e}) => o.Ay.post(`${o.XV}/payouts/w9`, e).then((e => e.data))
, g = ({payload: e}) => o.Ay.post(`${o.XV}/payouts/dac7`, e).then((e => e.data))
, y = () => o.Ay.get(`${o.XV}/payouts/dac7`).then((e => e.data))
, S = e => o.Ay.post(`${o.XV}/payouts/tin`, {
tin: e
}).then((e => e.data))
, v = (e={}) => o.Ay.post(`${o.XV}/payouts/w9/tincheck`, e).then((e => e.data))
, w = () => o.Ay.get(`${o.XV}/payouts/check-receive`).then((e => e.data))
, I = e => o.Ay.post(`${o.XV}/payouts/vat`, {
vat: e
}).then((e => e.data))
, b = ({payload: e}) => o.Ay.post(`${o.XV}/payouts/qst`, e).then((e => e.data))
, A = e => o.Ay.post(`${o.XV}/payouts/vat-requests`, {
...e
}).then((e => e.data))
, P = () => o.Ay.get(`${o.XV}/payouts/vat`).then((e => e.data))
, k = (e={}) => o.Ay.get(`${o.XV}/payouts/requests/vat-documents${(0,
o.Zq)(e)}`).then((e => e.data))
, C = e => o.Ay.get(`${o.XV}/payouts/requests/vat/${e}`).then((e => e.data))
, L = (e={}) => o.Ay.get(`${o.XV}/payouts/vat-invoice${(0,
o.Zq)(e)}`).then((e => e.data))
, T = ({year: e, month: t, amount: s}={}) => o.Ay.get(`${o.XV}/payouts/download/vat-invoice${(0,
o.Zq)({
invoiceYear: e,
invoiceMonth: t,
creatorVatAmount: s
})}`).then((e => e.data))
, M = e => o.Ay.get(`${o.XV}/payouts/download/vat/${e}`).then((e => e.data))
, _ = () => o.Ay.get(`${o.XV}/payouts/vats`).then((e => e.data))
, $ = () => o.Ay.delete(`${o.XV}/payouts/vat`).then((e => e.data))
, E = (e={}) => o.Ay.get(`${o.XV}/payouts/w9/address${(0,
o.Zq)(e)}`).then((e => e.data))
, V = e => o.Ay.post(`${o.XV}/payouts/w9/address`, e).then((e => e.data))
, D = () => o.Ay.get(`${o.XV}/payouts/can-add-vat-documents`).then((e => e.data))
, U = ({limit: e=o.Jg, cancelToken: t, ...s}={}) => o.Ay.get(`${o.XV}/payouts/chargebacks${(0,
o.Zq)({
limit: e,
...s
})}`, {
cancelToken: t
}).then((e => e.data))
, O = ({cancelToken: e, startDate: t, endDate: s}={}) => o.Ay.get(`${o.XV}/payouts/chargebacks/ratio${(0,
o.Zq)({
startDate: t,
endDate: s
})}`, {
cancelToken: e
}).then((e => e.data))
, R = e => o.Ay.get(`${o.XV}/iv/yoti-redirect-url/${e}`).then((e => e.data))
, F = (e, t) => o.Ay.get(`${o.XV}/iv/yoti-face-id-url/${e}/${t}`).then((e => e.data))
},
414709: function(e, t, s) {
"use strict";
s.d(t, {
LG: function() {
return o
},
S2: function() {
return a
},
Yl: function() {
return i
},
jO: function() {
return n
},
sA: function() {
return c
},
x7: function() {
return d
}
});
var r = s(977434);
const a = () => r.Ay.get(`${r.XV}/helpers`).then((e => e.data))
, n = e => r.Ay.get(`${r.XV}/helpers/${e}`).then((e => e.data))
, i = () => r.Ay.get(`${r.XV}/helpers/permissions`).then((e => e.data))
, o = (e, t=[]) => r.Ay.post(`${r.XV}/helpers/${e}`, {
permissions: t
}).then((e => e.data))
, c = e => r.Ay.post(`${r.XV}/users/login-as-helper/${e}`).then((e => e.data))
, d = () => r.Ay.post(`${r.XV}/users/helper-logout`).then((e => e.data))
},
458723: function(e, t, s) {
"use strict";
s.d(t, {
CL: function() {
return C
},
Hg: function() {
return y
},
K5: function() {
return a
},
OM: function() {
return P
},
R7: function() {
return w
},
T4: function() {
return f
},
UD: function() {
return k
},
VW: function() {
return M
},
Yu: function() {
return o
},
Zc: function() {
return b
},
c8: function() {
return h
},
dv: function() {
return L
},
f9: function() {
return n
},
gb: function() {
return c
},
h3: function() {
return $
},
hf: function() {
return A
},
iM: function() {
return I
},
j: function() {
return i
},
m5: function() {
return d
},
oU: function() {
return _
},
pD: function() {
return v
},
px: function() {
return u
},
rq: function() {
return m
},
sW: function() {
return g
},
tP: function() {
return p
},
tY: function() {
return l
},
yU: function() {
return T
},
ys: function() {
return S
}
});
var r = s(977434);
const a = ({offset: e, limit: t=r.Jg, query: s, cancelToken: a, beforePublishTime: n, afterPublishTime: i, headMarker: o, tailMarker: c, listId: d, listType: l, onlyCanView: u}={}) => {
const m = !(!d || l);
let f = {
limit: t,
["paid" !== d ? "query" : "user_id"]: "paid" === d ? s && encodeURIComponent(s) : s,
skip_users: "all",
format: "infinite",
list_id: m ? void 0 : d
};
return f = m ? {
...f,
offset: e
} : {
...f,
beforePublishTime: n,
afterPublishTime: i,
only_can_view: u
},
(o || c) && (delete f.offset,
f = {
...f,
headMarker: o,
tailMarker: c
}),
r.Ay.get(`${r.XV}/posts${m ? "/" + d : ""}${(0,
r.Zq)(f)}`, {
cancelToken: a
}).then((e => e.data))
}
, n = ({cancelToken: e}={}) => r.Ay.get(`${r.XV}/posts/paid/pinned${(0,
r.Zq)({
skip_users: "all"
})}`, {
cancelToken: e
}).then((e => e.data))
, i = ({id: e, chat_group_id: t}={}) => r.Ay.post(`${r.XV}/posts/paid/pin/${e}${(0,
r.Zq)({
chat_group_id: t
})}`).then((e => e.data))
, o = e => r.Ay.post(`${r.XV}/posts/paid/pin/sort`, e).then((e => e.data))
, c = ({listId: e, offset: t=0, limit: s=r.Jg, cancelToken: a, ...n}={}) => r.Ay.get(`${r.XV}/lists/${e}/posts${(0,
r.Zq)({
offset: t,
limit: s,
skip_users: "all",
...n
})}`, {
cancelToken: a
}).then((e => e.data))
, d = ({id: e, postType: t, limit: s=r.Jg, offset: a=0, format: n="infinite", ...i}={}, o) => {
let c = `${r.XV}/posts/bookmarks`;
return [e, t].some((e => "all" !== e)) && (c = `${c}/${t}/${e}`),
r.Ay.get(`${c}${(0,
r.Zq)({
format: n,
limit: s,
offset: a,
skip_users: "all",
...i
})}`, {
cancelToken: o
}).then((e => e.data))
}
, l = e => r.Ay.get(`${r.XV}/posts/${e}?skip_users=all`).then((e => e.data))
, u = (e, t) => r.Ay.put(`${r.XV}/posts/${e}`, t).then((e => e.data))
, m = ({id: e, limit: t=r.Jg, offset: s=0}) => r.Ay.get(`${r.XV}/posts/${e}/comments${(0,
r.Zq)({
limit: t,
offset: s,
sort: "desc",
skip_users: "all",
format: "infinite"
})}`).then((e => e.data))
, f = ({id: e, authorId: t}) => r.Ay.post(`${r.XV}/posts/${e}/favorites/${t}`).then((e => e.data))
, h = e => r.Ay.post(`${r.XV}/posts/${e}/pin?format=status`).then((e => e.data))
, p = ({id: e, ...t}) => r.Ay.post(`${r.XV}/posts/${e}/comments`, t).then((e => e.data))
, g = ({data: e, url: t}) => r.Ay.post(t, e, {
headers: {
"Content-Type": "multipart/form-data"
}
}).then((e => e.data))
, y = (e, t) => r.Ay.post(`${r.XV}/posts/${e}/vote`, {
optionId: t
}).then((e => e.data))
, S = e => r.Ay.delete(`${r.XV}/posts/${e}`).then((e => e.data))
, v = e => r.Ay.post(`${r.XV}/posts`, e).then((e => e.data))
, w = e => r.Ay.put(`${r.XV}/posts/${e}/hide`).then((e => e.data))
, I = ({postId: e, offset: t}) => r.Ay.get(`${r.XV}/posts/${e}/favorites${(0,
r.Zq)({
limit: r.Jg,
offset: t
})}`).then((e => e.data))
, b = ({postId: e, offset: t}) => r.Ay.get(`${r.XV}/posts/${e}/tips${(0,
r.Zq)({
limit: r.Jg,
offset: t
})}`).then((e => e.data))
, A = ({postId: e, add: t=!0, query: s={}}) => r.Ay.post(`${r.XV}/posts/${e}/${t ? "" : "un"}archive${(0,
r.Zq)(s)}`).then((e => e.data))
, P = (e, t) => r.Ay.post(`${r.XV}/posts/${e}/bookmarks/${t}`).then((e => e.data))
, k = e => r.Ay.delete(`${r.XV}/posts/${e}/bookmarks`).then((e => e.data))
, C = e => r.Ay.get(`${r.XV}/posts/${e}/fund-raising-contributors/count`).then((e => e.data))
, L = e => r.Ay.post(`${r.XV}/posts/stats-collect`, {
actions: e
}, {
"axios-retry": {
retries: 1
}
}).then((e => e.data))
, T = e => r.Ay.post(`${r.XV}/posts/pinned/sort?format=ids`, {
order: e
}).then((e => e.data))
, M = ({postId: e, offset: t}) => r.Ay.get(`${r.XV}/posts/${e}/buyers${(0,
r.Zq)({
limit: r.Jg,
offset: t
})}`).then((e => e.data))
, _ = ({postId: e, optionId: t, ...s}) => r.Ay.get(`${r.XV}/posts/${e}/voters${t ? `/${t}` : ""}${(0,
r.Zq)({
limit: r.Jg,
...s
})}`).then((e => e.data))
, $ = e => r.Ay.get(`${r.XV}/posts/login${(0,
r.Zq)({
...e,
skip_users: "all"
})}`).then((e => e.data))
},
732952: function(e, t, s) {
"use strict";
s.d(t, {
C8: function() {
return l
},
SM: function() {
return u
},
hR: function() {
return n
},
n9: function() {
return o
},
ou: function() {
return a
},
pC: function() {
return d
},
tD: function() {
return i
},
zC: function() {
return c
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/promotions`, e).then((e => e.data))
, n = e => r.Ay.post(`${r.XV}/promotions/${e}/finish`).then((e => e.data))
, i = e => r.Ay.delete(`${r.XV}/promotions/${e}`).then((e => e.data))
, o = e => r.Ay.post(`${r.XV}/promotions/invite`, e).then((e => e.data))
, c = ({limit: e=r.Jg, offset: t=0, cancelToken: s, ...a}={}) => r.Ay.get(`${r.XV}/promotions/offers${(0,
r.Zq)({
limit: e,
offset: t,
skip_users: "all",
...a
})}`, {
cancelToken: s
}).then((e => e.data))
, d = () => r.Ay.delete(`${r.XV}/promotions/offers`).then((e => e.data))
, l = e => r.Ay.delete(`${r.XV}/promotions/offer/${e}`).then((e => e.data))
, u = () => r.Ay.post(`${r.XV}/promotions/offers/hide`).then((e => e.data))
},
467522: function(e, t, s) {
"use strict";
s.d(t, {
A: function() {
return n
},
P: function() {
return a
}
});
var r = s(977434);
const a = () => r.Ay.get(`${r.XV}/payments/referrals/balance`).then((e => e.data))
, n = (e={}) => r.Ay.get(`${r.XV}/payouts/requests/referral${(0,
r.Zq)(e)}`).then((e => e.data))
},
783434: function(e, t, s) {
"use strict";
s.d(t, {
Cb: function() {
return g
},
Lr: function() {
return u
},
OM: function() {
return y
},
PG: function() {
return d
},
VN: function() {
return i
},
ZT: function() {
return m
},
a0: function() {
return p
},
fJ: function() {
return S
},
gr: function() {
return o
},
i9: function() {
return c
},
jd: function() {
return h
},
qN: function() {
return n
},
rx: function() {
return a
},
t3: function() {
return f
},
w6: function() {
return l
}
});
var r = s(977434);
const a = (e, t) => r.Ay.get(`${r.XV}/release-form-links/${e}${(0,
r.Zq)(t)}`).then((e => e.data))
, n = (e, t) => r.Ay.post(`${r.XV}/release-form-links/${e}/guest${(0,
r.Zq)(t)}`).then((e => e.data))
, i = e => r.Ay.post(`${r.XV}/release-form-links/${e}/start`).then((e => e.data))
, o = e => r.Ay.post(`${r.XV}/release-form-links/${e}/url`).then((e => e.data))
, c = e => r.Ay.post(`${r.XV}/release-form-documents`, e).then((e => e.data))
, d = e => r.Ay.post(`${r.XV}/release-forms/attach`, e).then((e => e.data))
, l = (e, t) => r.Ay.get(`${r.XV}/posts/tagged-friend-users${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, u = e => r.Ay.post(`${r.XV}/release-form-links`, e).then((e => e.data))
, m = (e, t) => r.Ay.get(`${r.XV}/release-forms${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, f = e => r.Ay.patch(`${r.XV}/release-forms/rename`, e).then((e => e.data))
, h = e => r.Ay.patch(`${r.XV}/release-forms/toggle-show`, e).then((e => e.data))
, p = (e={}, t) => {
const s = undefined;
return (t ? r.Ay.patch : r.Ay.post)(`${r.XV}/guests/${t || ""}`, e).then((e => e.data))
}
, g = e => r.Ay.post(`${r.XV}/guests/${e}/assign`).then((e => e.data))
, y = (e, t) => r.Ay.get(`${r.XV}/release-forms/mentions${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, S = e => r.Ay.get(`${r.XV}/guests/${e}`).then((e => e.data))
},
156591: function(e, t, s) {
"use strict";
s.d(t, {
DX: function() {
return n
},
HX: function() {
return o
},
J4: function() {
return c
},
t9: function() {
return a
},
uL: function() {
return i
}
});
var r = s(977434);
const a = () => r.Ay.get(`${r.XV}/reports/reasons`).then((e => e.data))
, n = () => r.Ay.get(`${r.XV}/reports/abuse-options`).then((e => e.data))
, i = ({id: e, type: t, data: s={}}={}) => r.Ay.post(`${r.XV}/${"story" === t ? "stories" : `${t}s`}/${e}/report`, s).then((e => e.data))
, o = () => r.Ay.get(`${r.XV}/unsubscribe/reasons`).then((e => e.data))
, c = (e={}) => r.Ay.post(`${r.XV}/users/appeal`, e).then((e => e.data))
},
409363: function(e, t, s) {
"use strict";
s.d(t, {
V9: function() {
return u
},
dP: function() {
return d
},
el: function() {
return l
},
kE: function() {
return f
},
oK: function() {
return c
},
zt: function() {
return m
}
});
var r = s(977434)
, a = s(974353)
, n = s.n(a)
, i = s(788569)
, o = s.n(i);
n().extend(o());
const c = ({params: e={}, cancelToken: t}) => r.Ay.get(`${r.XV}/schedules${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, d = ({params: e={}, cancelToken: t}) => r.Ay.get(`${r.XV}/schedules/counters${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, l = ({params: e={}}) => {
const {limit: t=30} = e;
return r.Ay.get(`${r.XV}/schedules/later${(0,
r.Zq)({
...e,
limit: t
})}`).then((e => e.data))
}
, u = e => r.Ay.put(`${r.XV}/schedules/${e}/publish`).then((e => e.data))
, m = () => r.Ay.get(`${r.XV}/schedules${(0,
r.Zq)({
"filter[type][0]": "stream",
limit: 1,
"filter[timeZone]": n()().format("Z")
})}`).then((e => e.data))
, f = (e={}) => r.Ay.get(`${r.XV}/streams/reminder${(0,
r.Zq)(e)}`).then((e => e.data))
},
610023: function(e, t, s) {
"use strict";
s.d(t, {
$Z: function() {
return c
},
Cj: function() {
return l
},
Fk: function() {
return n
},
HQ: function() {
return d
},
JF: function() {
return y
},
Jv: function() {
return g
},
K: function() {
return w
},
Mi: function() {
return I
},
Wl: function() {
return h
},
X6: function() {
return a
},
Yl: function() {
return v
},
_P: function() {
return f
},
f1: function() {
return S
},
hB: function() {
return m
},
mN: function() {
return i
},
t2: function() {
return u
},
tO: function() {
return o
},
y6: function() {
return p
}
});
var r = s(977434);
const a = () => r.Ay.get(`${r.XV}/countries?all=1`).then((e => e.data))
, n = e => r.Ay.get(`${r.XV}/countries/${e}/states`).then((e => e.data))
, i = e => r.Ay.get(`${r.XV}/iso/countries/${e}/states`).then((e => e.data))
, o = ({countryId: e, search: t="", state: s="", version: a="v2"}) => r.Ay.get(`${r.XV}/countries/${e}/address${(0,
r.Zq)({
search: t,
state: s,
version: a
})}`).then((e => e.data))
, c = ({countryId: e, addressId: t}) => r.Ay.post(`${r.XV}/countries/${e}/address/expand`, {
hash: t
}).then((e => e.data))
, d = () => r.Ay.post(`${r.XV}/users/me/settings/api-tokens`).then((e => e.data))
, l = e => r.Ay.delete(`${r.XV}/users/me/settings/api-tokens/${e}`).then((e => e.data))
, u = e => r.Ay.post(`${r.XV}/messages/templates/reply_on_subscribe`, e).then((e => e.data))
, m = () => r.Ay.get(`${r.XV}/messages/templates`).then((e => e.data))
, f = e => r.Ay.delete(`${r.XV}/messages/templates/${e}`).then((e => e.data))
, h = e => r.Ay.patch(`${r.XV}/users/me/settings/messages`, e).then((e => e.data))
, p = e => r.Ay.post(`${r.XV}/emails/change`, e).then((e => e.data))
, g = () => r.Ay.delete(`${r.XV}/emails/change`).then((e => e.data))
, y = e => r.Ay.get(`${r.XV}/users/settings/notifications/${e}?group=1`).then((e => e.data))
, S = e => r.Ay.delete(`${r.XV}/streams/obs/key${(0,
r.Zq)({
type: e
})}`).then((e => e.data))
, v = () => r.Ay.get(`${r.XV}/users/settings/notifications/transports`).then((e => e.data))
, w = (e={}) => r.Ay.get(`${r.XV}/logins`, e).then((e => e.data))
, I = e => r.Ay.delete(`${r.XV}/logins/${e}`).then((e => e.data))
},
25150: function(e, t, s) {
"use strict";
s.d(t, {
J: function() {
return n
},
JS: function() {
return u
},
R2: function() {
return c
},
X$: function() {
return a
},
_Z: function() {
return l
},
aI: function() {
return o
},
iu: function() {
return d
},
yA: function() {
return i
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/users/social/spotify`, e).then((e => e.data))
, n = e => r.Ay.get(`${r.XV}/users${e ? `/${e}` : ""}/social/spotify`).then((e => e.data))
, i = () => r.Ay.get(`${r.XV}/users/social/spotify/top`).then((e => e.data))
, o = () => r.Ay.get(`${r.XV}/users/social/spotify/top/artists`).then((e => e.data))
, c = e => r.Ay.put(`${r.XV}/users/social/spotify/artists`, {
topArtistsIds: e
}).then((e => e.data))
, d = () => r.Ay.get(`${r.XV}/users/social/spotify/top/tracks`).then((e => e.data))
, l = e => r.Ay.put(`${r.XV}/users/social/spotify/anthem`, {
anthemId: e
}).then((e => e.data))
, u = e => r.Ay.get(`${r.XV}/users/social/spotify/search${(0,
r.Zq)({
query: e
})}`).then((e => e.data))
},
502365: function(e, t, s) {
"use strict";
s.d(t, {
$W: function() {
return I
},
Cn: function() {
return u
},
En: function() {
return o
},
F1: function() {
return y
},
Hu: function() {
return m
},
JR: function() {
return A
},
NH: function() {
return k
},
OM: function() {
return g
},
U5: function() {
return i
},
X$: function() {
return w
},
YO: function() {
return c
},
cJ: function() {
return P
},
dP: function() {
return S
},
eL: function() {
return f
},
fj: function() {
return C
},
ko: function() {
return a
},
lI: function() {
return l
},
oP: function() {
return v
},
oi: function() {
return b
},
pz: function() {
return d
},
qr: function() {
return n
},
r9: function() {
return h
},
sG: function() {
return p
}
});
var r = s(977434);
const a = e => r.Ay.post(`${r.XV}/stories`, e).then((e => e.data))
, n = e => r.Ay.get(`${r.XV}/users/me/stories`, {
cancelToken: e
}).then((e => e.data))
, i = (e={}, t) => r.Ay.get(`${r.XV}/stories${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, o = e => r.Ay.get(`${r.XV}/stories/${e}`).then((e => e.data))
, c = ({marker: e, limit: t}) => r.Ay.get(`${r.XV}/stories/archive${(0,
r.Zq)({
limit: t,
marker: e
})}`).then((e => e.data))
, d = e => r.Ay.get(`${r.XV}/users/${e}/stories`).then((e => e.data))
, l = e => r.Ay.put(`${r.XV}/stories/${e}/watched`).then((e => e.data)).catch(( () => {}
))
, u = e => r.Ay.delete(`${r.XV}/stories/${e}`).then((e => e.data))
, m = e => r.Ay.post(`${r.XV}/stories/${e}/like`).then((e => e.data))
, f = e => r.Ay.delete(`${r.XV}/stories/${e}/like`).then((e => e.data))
, h = ({userId: e, offset: t=0, limit: s=10, storyIdToCheck: a=null, sort: n}) => r.Ay.get(`${r.XV}/users/${e}/stories/highlights${(0,
r.Zq)({
limit: s,
offset: t,
storyIdToCheck: a,
sort: n
})}`).then((e => e.data))
, p = (e, t) => r.Ay.get(`${r.XV}/stories/highlights/${e}`, {
cancelToken: t
}).then((e => e.data))
, g = e => r.Ay.delete(`${r.XV}/stories/highlights/${e}`).then((e => e.data))
, y = e => r.Ay.post(`${r.XV}/stories/highlights`, e).then((e => e.data))
, S = (e, t) => r.Ay.patch(`${r.XV}/stories/highlights/${e}`, t).then((e => e.data))
, v = e => r.Ay.put(`${r.XV}/stories/highlights/${e.id}`, e).then((e => e.data))
, w = ({storyId: e, highlightId: t}) => r.Ay.delete(`${r.XV}/stories/highlights/${t}/${e}`).then((e => e.data))
, I = () => r.Ay.get(`${r.XV}/stories/users/blocked`).then((e => e.data))
, b = e => r.Ay.post(`${r.XV}/stories/users/${e}/block`).then((e => e.data))
, A = e => r.Ay.delete(`${r.XV}/stories/users/${e}/block`).then((e => e.data))
, P = (e, t) => r.Ay.post(`${r.XV}/stories/${e}/answer`, t).then((e => e.data))
, k = ({storyId: e, offset: t=0, limit: s=8, cancelToken: a}) => r.Ay.get(`${r.XV}/stories/${e}/answer${(0,
r.Zq)({
limit: s,
offset: t
})}`, {
cancelToken: a
}).then((e => e.data))
, C = e => r.Ay.delete(`${r.XV}/stories/answer/${e}`).then((e => e.data))
},
565144: function(e, t, s) {
"use strict";
s.d(t, {
ED: function() {
return p
},
ET: function() {
return ae
},
EY: function() {
return K
},
Ez: function() {
return S
},
FI: function() {
return x
},
GT: function() {
return h
},
Hu: function() {
return k
},
IG: function() {
return te
},
JW: function() {
return M
},
K4: function() {
return C
},
MV: function() {
return F
},
O9: function() {
return H
},
Q8: function() {
return W
},
QF: function() {
return se
},
QM: function() {
return P
},
Qk: function() {
return $
},
U_: function() {
return T
},
Uz: function() {
return j
},
V4: function() {
return oe
},
Wo: function() {
return N
},
XI: function() {
return I
},
Xz: function() {
return D
},
aG: function() {
return J
},
c$: function() {
return re
},
dP: function() {
return V
},
dQ: function() {
return L
},
e4: function() {
return X
},
eD: function() {
return G
},
eq: function() {
return q
},
et: function() {
return B
},
gD: function() {
return ie
},
hU: function() {
return w
},
iT: function() {
return R
},
kq: function() {
return Z
},
l8: function() {
return g
},
nC: function() {
return y
},
ns: function() {
return E
},
o2: function() {
return z
},
r3: function() {
return Y
},
rF: function() {
return ee
},
sk: function() {
return _
},
vp: function() {
return ne
},
wM: function() {
return Q
},
wV: function() {
return U
},
wo: function() {
return O
},
x$: function() {
return A
},
yt: function() {
return b
}
});
var r = s(63560)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(16280)
, c = s.n(o)
, d = s(533110)
, l = s.n(d)
, u = s(977434)
, m = s(399411);
const f = () => {
if (window.streamModule)
try {
return {
width: window.streamModule.videoVars.track.getSettings().width,
height: window.streamModule.videoVars.track.getSettings().height
}
} catch (e) {
console.warn(e)
}
}
, h = async (e=[]) => {
const t = await u.Ay.get(`${u.XV}/streams/ms_service${(0,
u.Zq)({
data: JSON.stringify({
streamtype: e,
type: "get.streamer.server.list-all"
})
})}`);
return i()(t, "data.Message.ServerList", {})
}
, p = async (e=m.A.defaultStreamType.agora, t=[]) => {
const s = f();
window.preferredServer && (t = [window.preferredServer]);
const r = {
streamtype: e,
sbp: !0,
preferred_servers: t,
video_resolution: s
};
return "string" == typeof window.streamingTranscoderVersion && a()(r, "extra_stream_settings.transcoder_version", window.streamingTranscoderVersion),
u.Ay.get(`${u.XV}/streams/url${(0,
u.Zq)({
extension: JSON.stringify(r)
})}`)
}
, g = (e, t=m.A.defaultStreamType.agora, s=[]) => {
let r;
return "agora_direct" === t && (r = f()),
window.preferredServer && (s = [window.preferredServer]),
u.Ay.get(`${u.XV}/streams/${e}/url${(0,
u.Zq)({
extension: JSON.stringify({
streamtype: t,
sbp: !0,
preferred_servers: s,
video_resolution: r
})
})}`)
}
, y = (e, t="webrtc", s=[]) => {
if (!e)
throw new Error("getUserStreamServerData: userId is not defined");
window.preferredServer && (s = [window.preferredServer]);
const r = {
streamtype: t,
sbp: !0,
preferred_servers: s
};
return ["hls", "llhls"].includes(t) && window.viewModule[e] && (r.hls_player = viewModule[e].driver.isHlsNativeSupported() ? "hls.native" : "hls.js"),
"string" == typeof window.streamingTranscoderVersion && (r.extra_stream_settings = {
transcoder_version: window.streamingTranscoderVersion
}),
u.Ay.get(`${u.XV}/users/${e}/streams/active/url${(0,
u.Zq)({
extension: JSON.stringify(r)
})}`).then((e => e.data))
}
, S = (e, t=!1) => {
if (!e)
throw new Error("getUserStream: userId is not defined");
return u.Ay.get(`${u.XV}/users/${e}/streams/active${(0,
u.Zq)({
view: t ? "full_with_check" : "full"
})}`).then((e => e.data))
}
, v = e => {
if (!e)
throw new Error("getStream: streamId is not defined");
return request.get(`${apiVersion}/streams/${e}`).then((e => e.data))
}
, w = e => {
if (!e)
throw new Error("checkStreamActive: streamId is not defined");
return u.Ay.get(`${u.XV}/streams/${e}/active`).then((e => e.data))
}
, I = e => u.Ay.post(`${u.XV}/streams`, e).then((e => e.data))
, b = e => u.Ay.patch(`${u.XV}/streams/${e.id}`, e).then((e => e.data))
, A = e => u.Ay.post(`${u.XV}/streams`, e).then((e => e.data))
, P = (e, t) => {
if (!e)
throw new Error("finishStream: streamId is not defined");
return u.Ay.put(`${u.XV}/streams/${e}/finish`, t).then((e => e.data))
}
, k = () => u.Ay.delete(`${u.XV}/streams`).then((e => e.data))
, C = ({streamId: e, data: t}) => {
if (!e)
throw new Error("streamId is not defined");
return u.Ay.patch(`${u.XV}/streams/${e}`, t).then((e => e.data))
}
, L = ({streamId: e, optionId: t}) => u.Ay.post(`${u.XV}/streams/${e}/vote`, {
optionId: t
}).then((e => e.data))
, T = (e={}) => u.Ay.get(`${u.XV}/streams/active${(0,
u.Zq)(e)}`).then((e => e.data))
, M = () => u.Ay.get(`${u.XV}/streams/has-active`).then((e => e.data))
, _ = ({id: e, withChart: t=!0, countersOnly: s}, r) => {
if (!e)
throw new Error("getStreamStats: streamId is not defined");
const a = {
countersOnly: s,
withChart: t
};
return u.Ay.get(`${u.XV}/streams/${e}/stats${(0,
u.Zq)(a)}`, {
cancelToken: r
}).then((e => e.data))
}
, $ = ({streamId: e, ...t}) => {
if (!e)
throw new Error("saveStreamAsPost: streamId is not defined");
return u.Ay.put(`${u.XV}/streams/${e}/make-post`, {
id: e,
...t
}).then((e => e.data))
}
, E = e => {
if (!e)
throw new Error("fetchStreamCovers: streamId is not defined");
return u.Ay.get(`${u.XV}/streams/${e}/covers`, {
"axios-retry": {
forceRetry: !0,
httpStatus: [400]
}
}).then((e => e.data))
}
, V = (e, t) => {
if (!e)
throw new Error("saveStreamCover: streamId is not defined");
return u.Ay.put(`${u.XV}/streams/${e}/cover`, t).then((e => e.data))
}
, D = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("kickStreamViewer: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/kick`, {
userId: t
}).then((e => e.data))
}
, U = ({streamId: e, userId: t, isPermanent: s=!1}) => {
if (!e || !t)
throw new Error("blockStreamViewer: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/block`, {
userId: t,
isPermanent: s
}).then((e => e.data))
}
, O = ({username: e}) => {
if (!e)
throw new Error("blockStreamViewerByName: username is not defined");
return u.Ay.post(`${u.XV}/streams/users/${e}/block`).then((e => e.data))
}
, R = ({userId: e}) => {
if (!e)
throw new Error("unblockStreamViewerByUserId: userId is not defined");
return u.Ay.delete(`${u.XV}/streams/users/${e}/block`).then((e => e.data))
}
, F = ({limit: e=u.Jg, offset: t=0, query: s=""}={}) => {
const r = {
limit: e
};
return t && (r.offset = t),
s && (r.query = s),
u.Ay.get(`${u.XV}/streams/users/blocked${(0,
u.Zq)(r)}`).then((e => e.data))
}
, B = ({streamId: e, limit: t=u.Jg, offset: s=0, query: r="", order: a="asc", sort: n="name", tippedOver: i=0, subscribedOver: o=0, withFinishedViewers: c=!1, onlyCurrentStreamTips: d=!1}) => {
if (!e)
throw new Error("getStreamViewers: streamId is not defined");
const l = {
limit: t,
sort: n,
order: a
};
return s && (l.offset = s),
r && (l.query = r),
i && (l.tippedOver = i),
o && (l.subscribedOver = o),
c && (l.withFinishedViewers = !0),
d && (l.onlyCurrentStreamTips = !0),
u.Ay.get(`${u.XV}/streams/${e}/viewers${(0,
u.Zq)(l)}`).then((e => e.data))
}
, q = ({streamId: e, limit: t=u.Jg, offset: s=0, query: r="", order: a="asc", sort: n="name", optionId: i}) => {
if (!e)
throw new Error("getStreamVoters: streamId is not defined");
const o = {
limit: t,
sort: n,
order: a
};
return s && (o.offset = s),
r && (o.query = r),
u.Ay.get(`${u.XV}/streams/${e}/voters${i ? `/${i}` : ""}${(0,
u.Zq)(o)}`).then((e => e.data))
}
, x = ({streamId: e, limit: t=u.Jg, offset: s=0, query: r="", order: a="asc", sort: n="name", tippedOver: i=0, subscribedOver: o=0, onlyCurrentStreamTips: c=!1}) => {
if (!e)
throw new Error("getStreamTips: streamId is not defined");
const d = {
limit: t,
sort: n,
order: a
};
return s && (d.offset = s),
r && (d.query = r),
i && (d.tippedOver = i),
o && (d.subscribedOver = o),
c && (d.onlyCurrentStreamTips = c),
u.Ay.get(`${u.XV}/streams/${e}/tips${(0,
u.Zq)(d)}`).then((e => e.data))
}
, j = ({streamId: e}) => {
if (!e)
throw new Error("joinDualStreamRequest: streamId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/join`).then((e => e.data))
}
, N = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("acceptDualStreamRequest: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/users/${t}/accept`).then((e => e.data))
}
, X = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("declineDualStreamRequest: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/users/${t}/decline`).then((e => e.data))
}
, H = e => {
if (!e)
throw new Error("cancelDualStreamRequest: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/cancel`).then((e => e.data))
}
, G = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("inviteDualStream: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/users/${t}/invite`).then((e => e.data))
}
, Z = ({streamId: e}) => {
if (!e)
throw new Error("acceptDualStreamInvite: streamId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/accept`).then((e => e.data))
}
, Q = ({streamId: e}) => {
if (!e)
throw new Error("declineDualStreamInvite: streamId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/decline`).then((e => e.data))
}
, J = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("cancelDualStreamInvite: streamId or userId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/users/${t}/cancel`).then((e => e.data))
}
, W = e => {
if (!e)
throw new Error("streamLook: streamId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/look`).then((e => e.data))
}
, Y = e => {
if (!e)
throw new Error("streamUnlook: streamId is not defined");
return u.Ay.delete(`${u.XV}/streams/${e}/look`).then((e => e.data))
}
, z = (e, t) => {
if (!e)
throw new Error("streamLike: streamId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/like`, t).then((e => e.data))
}
, K = (e, t, s) => {
if (!e)
throw new Error("streamComment: streamId is not defined");
const r = {
...t
};
return s && (r.userId = s),
u.Ay.post(`${u.XV}/streams/${e}/comments`, r).then((e => e.data))
}
, ee = (e, {id: t, limit: s=u.Jg}={}) => {
if (!e)
throw new Error("getStreamComments: streamId is not defined");
return u.Ay.get(`${u.XV}/streams/${e}/comments${(0,
u.Zq)({
id: t,
limit: s
})}`).then((e => e.data))
}
, te = (e, t) => {
if (!e || !t)
throw new Error("removeComment: streamId or commentId is not defined");
return u.Ay.delete(`${u.XV}/streams/${e}/comments/${t}`).then((e => e.data))
}
, se = (e, t) => {
if (!e || !t)
throw new Error("removeComment: streamId or userId is not defined");
return u.Ay.delete(`${u.XV}/streams/${e}/user/${t}/comments`).then((e => e.data))
}
, re = ({includeUserListIds: e="", excludeUserListIds: t="", scheduledSubscribedOn: s="", subscribersIds: r="", excludedSubscribers: a=""}={}) => u.Ay.get(`${u.XV}/streams/users/count${(0,
u.Zq)({
includeUserListIds: e,
excludeUserListIds: t,
scheduledSubscribedOn: s,
subscribersIds: r,
excludedSubscribers: a
})}`).then((e => e.data))
, ae = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("addStreamHelper: streamId or userId is not defined");
return u.Ay.put(`${u.XV}/streams/${e}/users/${t}/helper`).then((e => e.data))
}
, ne = ({streamId: e, userId: t}) => {
if (!e || !t)
throw new Error("removeStreamHelper: streamId or userId is not defined");
return u.Ay.delete(`${u.XV}/streams/${e}/users/${t}/helper`).then((e => e.data))
}
, ie = ({streamId: e, tweetWithPreview: t, tweetWithStillPreview: s}) => {
if (!e)
throw new Error("sendStreamTweet: streamId is not defined");
return u.Ay.post(`${u.XV}/streams/${e}/tweet`, {
tweetWithPreview: t,
tweetWithStillPreview: s
}).then((e => e.data))
}
, oe = e => {
if (!e)
throw new Error("checkViewer: streamId is not defined");
return u.Ay.get(`${u.XV}/streams/${e}/is-viewer`).then((e => e.data))
}
},
622365: function(e, t, s) {
"use strict";
s.d(t, {
GQ: function() {
return a
},
OT: function() {
return o
},
PL: function() {
return c
},
RO: function() {
return d
},
_b: function() {
return n
},
xF: function() {
return i
},
yI: function() {
return l
}
});
var r = s(977434);
const a = (e={}, t) => r.Ay.get(`${r.XV}/streams/feed${(0,
r.Zq)({
limit: 10,
...e
})}`, {
cancelToken: t
}).then((e => e.data))
, n = ({streamId: e, timer: t}) => r.Ay.get(`${r.XV}/streams/${e}/events${(0,
r.Zq)({
timer: t
})}`).then((e => e.data))
, i = e => r.Ay.get(`${r.XV}/streams/${e}`).then((e => e.data))
, o = e => r.Ay.delete(`${r.XV}/streams/${e}`).then((e => e.data))
, c = e => r.Ay.post(`${r.XV}/streams/${e}/hide`).then((e => e.data))
, d = e => r.Ay.post(`${r.XV}/streams/${e}/reminder`).then((e => e.data))
, l = e => r.Ay.delete(`${r.XV}/streams/${e}/reminder`).then((e => e.data))
},
616150: function(e, t, s) {
"use strict";
s.d(t, {
Af: function() {
return C
},
G8: function() {
return M
},
GV: function() {
return c
},
I_: function() {
return b
},
K_: function() {
return v
},
Lo: function() {
return k
},
ME: function() {
return y
},
OJ: function() {
return A
},
OX: function() {
return d
},
PX: function() {
return l
},
Q_: function() {
return g
},
RY: function() {
return u
},
XH: function() {
return i
},
_W: function() {
return S
},
_h: function() {
return T
},
b2: function() {
return a
},
b3: function() {
return I
},
i8: function() {
return $
},
iF: function() {
return E
},
iS: function() {
return f
},
kH: function() {
return _
},
kZ: function() {
return L
},
lS: function() {
return w
},
qC: function() {
return n
},
qc: function() {
return o
},
rY: function() {
return P
},
sO: function() {
return m
},
x4: function() {
return p
},
xI: function() {
return h
}
});
var r = s(977434);
const a = ({id: e, connectedOfAccounts: t}) => r.Ay.post(`${r.XV}/users/${e}/restrict`, {
connectedOfAccounts: t
}).then((e => e.data))
, n = ({id: e}) => r.Ay.delete(`${r.XV}/users/${e}/restrict`).then((e => e.data))
, i = e => r.Ay.put(`${r.XV}/subscriptions/${e}/hide-posts`).then((e => e.data))
, o = e => r.Ay.delete(`${r.XV}/subscriptions/${e}/hide-posts`).then((e => e.data))
, c = (e={}, t) => (e.limit = e.limit || r.Jg,
e.offset = e.offset || 0,
e.format = "infinite",
r.Ay.get(`${r.XV}/subscriptions/subscribes${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data)))
, d = () => r.Ay.get(`${r.XV}/subscriptions/count/all`).then((e => e.data))
, l = (e, t) => r.Ay.get(`${r.XV}/subscriptions/subscribers/count${(0,
r.Zq)(e)}`, {
cancelToken: t
}).then((e => e.data))
, u = e => r.Ay.get(`${r.XV}/subscriptions/subscribes/count${(0,
r.Zq)(e)}`).then((e => e.data))
, m = ({limit: e=r.Jg, offset: t=0, ...s}={}, a) => r.Ay.get(`${r.XV}/subscriptions/subscribers${(0,
r.Zq)({
limit: e,
offset: t,
format: "infinite",
...s
})}`, {
cancelToken: a
}).then((e => e.data))
, f = ({limit: e=r.Jg, offset: t=0, filter: s}={}) => r.Ay.get(`${r.XV}/subscriptions/subscribers/awards${(0,
r.Zq)({
limit: e,
offset: t,
filter: s
})}`).then((e => e.data))
, h = ({id: e, discount: t=0, period: s=1}={}) => r.Ay.put(`${r.XV}/subscriptions/${e}/discount`, {
discount: t,
period: s
}).then((e => e.data))
, p = (e={}) => r.Ay.post(`${r.XV}/campaigns`, e).then((e => e.data))
, g = e => r.Ay.post(`${r.XV}/campaigns/transition`, e).then((e => e.data))
, y = ({limit: e=r.Jg, offset: t=0, ...s}={}) => r.Ay.get(`${r.XV}/campaigns${(0,
r.Zq)({
limit: e,
offset: t,
pagination: 1,
...s
})}`).then((e => e.data))
, S = ({filter: e={
clicks: "clicks",
claims: "claims"
}, ...t}={}) => r.Ay.get(`${r.XV}/campaigns/chart${(0,
r.Zq)({
filter: e,
...t
})}`).then((e => e.data))
, v = e => r.Ay.delete(`${r.XV}/campaigns/${e}`).then((e => e.data))
, w = ({id: e, ...t}) => r.Ay.get(`${r.XV}/campaigns/${e}/claimers${(0,
r.Zq)(t)}`).then((e => e.data))
, I = (e={}) => r.Ay.post(`${r.XV}/trials`, e).then((e => e.data))
, b = ({limit: e=r.Jg, offset: t=0, ...s}={}) => r.Ay.get(`${r.XV}/trials${(0,
r.Zq)({
limit: e,
offset: t,
pagination: 1,
...s
})}`).then((e => e.data))
, A = e => r.Ay.delete(`${r.XV}/trials/${e}`).then((e => e.data))
, P = ({id: e, on: t=!0, place: s}) => r.Ay[t ? "put" : "delete"](`${r.XV}/subscriptions/${e}/autoprolong`, s && t ? {
place: s
} : {}).then((e => e.data))
, k = (e, t={}) => r.Ay.put(`${r.XV}/subscriptions/${e}`, t).then((e => e.data))
, C = e => r.Ay.get(`${r.XV}/subscriptions/subscribers/awards/count${(0,
r.Zq)({
filter: e
})}`).then((e => e.data))
, L = e => r.Ay.delete(`${r.XV}/subscriptions/${e}/price-change-hint`).then((e => e.data))
, T = e => r.Ay.get(`${r.XV}/subscriptions/${e}/history?all=1`).then((e => e.data))
, M = () => r.Ay.get(`${r.XV}/subscriptions/subscribers/recent-expired?skip_users=all`).then((e => e.data))
, _ = ({userId: e, subscriberId: t, token: s}={}) => r.Ay.post(`${r.XV}/subscriptions/tokens${e && t ? `/${e}/${t}/${s}` : ""}/request`, {
token: s
}).then((e => e.data))
, $ = ({userId: e, subscriberId: t, token: s}={}) => r.Ay.post(`${r.XV}/subscriptions/tokens${e && t ? `/${e}/${t}/${s}` : ""}/confirm`, {
token: s
}).then((e => e.data))
, E = e => r.Ay.delete(`${r.XV}/subscriptions/${e}/attention`).then((e => e.data))
},
374268: function(e, t, s) {
"use strict";
s.d(t, {
$: function() {
return i
},
J8: function() {
return c
},
T2: function() {
return o
}
});
var r = s(501882)
, a = s.n(r)
, n = s(977434);
const i = (e, t) => n.Ay.post(`${n.XV}/texts/search`, {
code: e,
languages: t
}).then((e => e.data))
, o = ({code: e, text: t}) => n.Ay.put(`${n.XV}/texts/${e}`, {
text: t
}).then((e => e.data))
, c = e => fetch(`https://texts.onlyfans.com/texts_${e}.json?version=202410251315-8cb2352710`).then((e => a()(e.json) ? e.json() : {}))
},
202600: function(e, t, s) {
"use strict";
s.d(t, {
$: function() {
return ce
},
A6: function() {
return we
},
B1: function() {
return A
},
BD: function() {
return O
},
CI: function() {
return l
},
CY: function() {
return Te
},
Cd: function() {
return de
},
DB: function() {
return me
},
Dk: function() {
return fe
},
Fj: function() {
return Q
},
G1: function() {
return i
},
GP: function() {
return Se
},
Hs: function() {
return se
},
I0: function() {
return pe
},
Ir: function() {
return P
},
K2: function() {
return x
},
KP: function() {
return ie
},
KW: function() {
return $
},
KX: function() {
return he
},
Kb: function() {
return Ve
},
Ko: function() {
return _e
},
Kx: function() {
return ae
},
NA: function() {
return Z
},
O8: function() {
return D
},
PT: function() {
return Re
},
Pi: function() {
return xe
},
Ps: function() {
return Fe
},
Q9: function() {
return J
},
Qe: function() {
return Xe
},
Qp: function() {
return c
},
R0: function() {
return C
},
SV: function() {
return Ee
},
T6: function() {
return b
},
TM: function() {
return Je
},
TW: function() {
return y
},
Tr: function() {
return R
},
Ts: function() {
return j
},
Uf: function() {
return Ae
},
V0: function() {
return v
},
WK: function() {
return oe
},
X4: function() {
return De
},
X8: function() {
return w
},
YB: function() {
return ee
},
YW: function() {
return Ge
},
Yn: function() {
return te
},
Zp: function() {
return G
},
_: function() {
return Pe
},
_1: function() {
return $e
},
a7: function() {
return Ie
},
ae: function() {
return T
},
al: function() {
return k
},
bB: function() {
return qe
},
bE: function() {
return F
},
bJ: function() {
return Ce
},
c4: function() {
return Le
},
dG: function() {
return He
},
dK: function() {
return h
},
dk: function() {
return Ue
},
ec: function() {
return N
},
fR: function() {
return U
},
fj: function() {
return We
},
fq: function() {
return le
},
fx: function() {
return K
},
gJ: function() {
return Qe
},
h1: function() {
return Be
},
h_: function() {
return u
},
hp: function() {
return Oe
},
i6: function() {
return S
},
iZ: function() {
return ue
},
jB: function() {
return ve
},
jl: function() {
return V
},
kV: function() {
return Y
},
k_: function() {
return re
},
m3: function() {
return I
},
mQ: function() {
return ge
},
nl: function() {
return H
},
oD: function() {
return B
},
oJ: function() {
return ne
},
pG: function() {
return Me
},
pg: function() {
return q
},
pk: function() {
return f
},
q7: function() {
return d
},
qG: function() {
return o
},
qx: function() {
return Ne
},
r2: function() {
return Ze
},
rn: function() {
return W
},
s5: function() {
return p
},
sH: function() {
return M
},
tR: function() {
return ye
},
tf: function() {
return L
},
u6: function() {
return je
},
vt: function() {
return ke
},
w9: function() {
return E
},
wz: function() {
return m
},
x5: function() {
return _
},
xq: function() {
return be
},
zJ: function() {
return g
},
zw: function() {
return z
}
});
var r = s(977434)
, a = s(163295)
, n = s(463670);
const i = () => r.Ay.get(`${r.XV}/users/me`, {
"axios-retry": {
forceRetry: !0
}
}).then((e => e.data))
, o = e => r.Ay.put(`${r.XV}/users/me`, e).then((e => e.data))
, c = e => r.Ay.patch(`${r.XV}/users/me`, e).then((e => e.data))
, d = (e, t) => r.Ay.put(`${r.XV}/users/me/settings/${t}`, e).then((e => e.data))
, l = (e, t) => r.Ay.patch(`${r.XV}/users/me/settings/${t}`, e).then((e => e.data))
, u = () => r.Ay.get(`${r.XV}/users/me/settings`).then((e => e.data))
, m = (e, t={}) => r.Ay.get(`${r.XV}/users/${encodeURIComponent(e)}${(0,
r.Zq)(t)}`).then((e => e.data))
, f = (e, t) => r.Ay.get(`${r.XV}/users/${e}/posts/on-this-day`, {
cancelToken: t
}).then((e => e.data))
, h = ({id: e, limit: t=r.Jg, type: s, order: n="publish_date_desc", onlyCanView: i, cancelToken: o, ...c}={}) => r.Ay.get(`${r.XV}/users/${e}/posts${"posts" !== s ? `/${(0,
a.f)(s)}` : ""}${(0,
r.Zq)({
limit: t,
order: n,
skip_users: "all",
only_can_view: i,
format: "infinite",
...c
})}`, {
cancelToken: o
}).then((e => e.data))
, p = ({id: e, cancelToken: t}={}) => r.Ay.get(`${r.XV}/users/${e}/posts${(0,
r.Zq)({
skip_users: "all",
pinned: 1,
counters: 0,
format: "infinite"
})}`, {
cancelToken: t
}).then((e => e.data))
, g = () => r.Ay.get(`${r.XV}/users/otp/code`).then((e => e.data))
, y = e => r.Ay.put(`${r.XV}/users/otp`, {
code: e
}).then((e => e.data))
, S = e => r.Ay.post(`${r.XV}/users/otp/check`, e).then((e => e.data))
, v = () => r.Ay.put(`${r.XV}/users/otp/phone`).then((e => e.data))
, w = e => r.Ay.delete(`${r.XV}/users/otp`, {
data: {
code: e
}
}).then((e => e.data))
, I = () => r.Ay.put(`${r.XV}/users/otp/alternative`).then((e => e.data))
, b = e => r.Ay.post(`${r.XV}/users/exists`, {
username: e
}, {
"axios-retry": {
skip429Alert: !0
}
}).then((e => e.data))
, A = (e, t={}) => r.Ay.post(`${r.XV}/users/${e}/subscribe`, t).then((e => e.data))
, P = (e, t={}) => r.Ay.post(`${r.XV}/users/${e}/resubscribe`, t).then((e => e.data))
, k = (e, {reasonId: t}) => r.Ay.delete(`${r.XV}/users/${e}/subscribe`, {
data: {
reason: t
}
}).then((e => e.data))
, C = ({network: e="twitter"}={}) => r.Ay.delete(`${r.XV}/users/social/${e}`).then((e => e.data))
, L = e => r.Ay.get(`${r.XV}/users/alert`, {
cancelToken: e
}).then((e => e.data))
, T = e => r.Ay.delete(`${r.XV}/users/alert/${e}`).then((e => e.data))
, M = e => r.Ay.delete(`${r.XV}/users/mass-alert/${e}`).then((e => e.data))
, _ = ({offset: e=0}) => r.Ay.get(`${r.XV}/users/hints${(0,
r.Zq)({
offset: e
})}`).then((e => e.data))
, $ = e => r.Ay.delete(`${r.XV}/users/hints/${e}`).then((e => e.data))
, E = e => r.Ay.delete(`${r.XV}/users/mass-hints/${e}`).then((e => e.data))
, V = e => r.Ay.delete(`${r.XV}/users/recommends/${e}`).then((e => e.data))
, D = e => r.Ay.get(`${r.XV}/users/recommends${(0,
r.Zq)({
...e,
skip_users: "all"
})}`).then((e => e.data))
, U = () => r.Ay.get(`${r.XV}/users/promotions`).then((e => e.data))
, O = e => r.Ay.post(`${r.XV}/users/forgot-password`, e).then((e => e.data))
, R = ({limit: e=r.Jg, fromId: t=null, type: s, relatedUser: a, cancelToken: n, skipUsers: i}={}) => r.Ay.get(`${r.XV}/users/notifications${(0,
r.Zq)({
limit: e,
fromId: t,
type: s,
related_user: a,
skip_users: i,
skip_users_dups: i ? void 0 : 1,
format: "infinite"
})}`, {
cancelToken: n
}).then((e => e.data))
, F = ({limit: e=r.Jg, offset: t=0, ...s}={}, a) => r.Ay.get(`${r.XV}/users/notifications/users${(0,
r.Zq)({
limit: e,
offset: t,
...s
})}`, {
cancelToken: a
}).then((e => e.data))
, B = e => r.Ay.post(`${r.XV}/users/notifications/read${e ? `/${e}` : ""}`).then((e => e.data))
, q = e => r.Ay.post(`${r.XV}/users/notifications/${e}/read/`).then((e => e.data))
, x = e => r.Ay.patch(`${r.XV}/users/settings/notifications`, e).then((e => e.data))
, j = e => r.Ay.put(`${r.XV}/users/push-token/pwa`, e).then((e => e.data))
, N = e => r.Ay.post(`${r.XV}/users/change-password`, e).then((e => e.data))
, X = e => request.delete(`${apiVersion}/users/${e}/friend`).then((e => e.data))
, H = e => r.Ay.post(`${r.XV}/users/delete/request`, {
captchaCode: e
}).then((e => e.data))
, G = () => r.Ay.delete(`${r.XV}/users/delete/request`).then((e => e.data))
, Z = e => r.Ay.post(`${r.XV}/phones/change`, e).then((e => e.data))
, Q = e => r.Ay.delete(`${r.XV}/phones/change`, e).then((e => e.data))
, J = () => r.Ay.get(`${r.XV}/users/telegram-link`).then((e => e.data))
, W = ({userId: e, connectedOfAccounts: t}) => r.Ay.post(`${r.XV}/users/${e}/block`, {
connectedOfAccounts: t
}).then((e => e.data))
, Y = ({userId: e}) => r.Ay.delete(`${r.XV}/users/${e}/block`).then((e => e.data))
, z = ({limit: e=r.Jg, offset: t=0, cancelToken: s, ...a}={}) => r.Ay.get(`${r.XV}/users/blocked${(0,
r.Zq)({
limit: e,
offset: t,
format: "infinite",
...a
})}`, {
cancelToken: s
}).then((e => e.data))
, K = ({limit: e=r.Jg, offset: t=0, query: s, allUsers: a, view: n="se"}={}) => r.Ay.get(`${r.XV}/users${(0,
r.Zq)({
limit: e,
offset: t,
query: s,
all_users: a,
view: n
})}`).then((e => e.data))
, ee = () => r.Ay.get(`${r.XV}/users/settings/post`).then((e => e.data))
, te = e => r.Ay.patch(`${r.XV}/users/settings/post`, {
periodPublishLaterPost: e
}).then((e => e.data))
, se = () => r.Ay.get(`${r.XV}/users/settings/story`).then((e => e.data))
, re = (e={}) => r.Ay.patch(`${r.XV}/users/settings/story`, e).then((e => e.data))
, ae = () => r.Ay.get(`${r.XV}/users/settings/streams`).then((e => e.data))
, ne = ({userId: e, limit: t=r.Jg, offset: s=0, query: a}={}, n) => r.Ay.get(`${r.XV}/users/${e}/friends${(0,
r.Zq)({
limit: t,
offset: s,
query: a
})}`, {
cancelToken: n
}).then((e => e.data))
, ie = ({userId: e}={}, t) => r.Ay.get(`${r.XV}/users/${e}/friends/pinned`, {
cancelToken: t
}).then((e => e.data))
, oe = e => r.Ay.post(`${r.XV}/users/connect`, e).then((e => e.data))
, ce = e => r.Ay.post(`${r.XV}/users/get-auth-token`, e).then((e => e.data))
, de = e => r.Ay.post(`${r.XV}/users/get-otp-token`, e).then((e => e.data))
, le = e => r.Ay.delete(`${r.XV}/users/connect/${e}`).then((e => e.data))
, ue = e => r.Ay.post(`${r.XV}/users/switch/${e}`).then((e => e.data))
, me = (e, t) => {
const {limit: s=r.Jg, offset: a=0, query: n, format: i} = e || {};
return r.Ay.get(`${r.XV}/users/mention${(0,
r.Zq)({
limit: s,
offset: a,
query: n,
format: i
})}`, {
cancelToken: t
}).then((e => e.data))
}
, fe = e => r.Ay.post(`${r.XV}/users/profile/stats-collect`, e, {
"axios-retry": {
retries: 1
}
}).then((e => e.data))
, he = e => r.Ay.post(`${r.XV}/users/profile/visit`, e).then((e => e.data))
, pe = e => r.Ay.get(`${r.XV}/users/list${(0,
r.Zq)(e)}`).then((e => e.data))
, ge = ({userId: e, limit: t=8, offset: s=0}={}) => r.Ay.get(`${r.XV}/users/${e}/streams${(0,
r.Zq)({
limit: t,
offset: s,
skip_users: "all"
})}`).then((e => e.data))
, ye = ({userId: e, limit: t=8, offset: s=0}={}) => r.Ay.get(`${r.XV}/users/${e}/streams/scheduled${(0,
r.Zq)({
limit: t,
offset: s
})}`).then((e => e.data))
, Se = ({limit: e=r.Jg, offset: t=0, cancelToken: s, ...a}={}) => r.Ay.get(`${r.XV}/users/tickets${(0,
r.Zq)({
limit: e,
offset: t,
...a
})}`, {
cancelToken: s
}).then((e => e.data))
, ve = ({id: e}={}) => r.Ay.get(`${r.XV}/users/tickets/${e}`).then((e => e.data))
, we = (e={}) => r.Ay.post(`${r.XV}/users/tickets`, e).then((e => e.data))
, Ie = (e, t={}) => r.Ay.post(`${r.XV}/users/tickets/${e}/reply`, t).then((e => e.data))
, be = ({id: e, limit: t=r.Jg, offset: s=0}) => r.Ay.get(`${r.XV}/users/tickets/${e}/comments${(0,
r.Zq)({
limit: t,
offset: s,
html: 1
})}`).then((e => e.data))
, Ae = e => r.Ay.post(`${r.XV}/users/tickets/${e}/solve`).then((e => e.data))
, Pe = ({id: e, data: t}) => r.Ay.put(`${r.XV}/users/tickets/${e}/reopen`, t).then((e => e.data))
, ke = (e={}) => r.Ay.post(`${r.XV}/users/tickets/allowed`, e).then((e => e.data))
, Ce = (e={}) => r.Ay.get(`${r.XV}/users/me/strong_otp_codes`, e).then((e => e.data))
, Le = (e={}) => r.Ay.get(`${r.XV}/users/me/auth-token`, e).then((e => e.data))
, Te = () => r.Ay.get(`${r.XV}/users/links`).then((e => e.data))
, Me = e => r.Ay.get(`${r.XV}/users/${e}/links`).then((e => e.data))
, _e = (e={}) => r.Ay.post(`${r.XV}/users/links`, e).then((e => e.data))
, $e = e => r.Ay.put(`${r.XV}/users/links`, {
link: e
}).then((e => e.data))
, Ee = e => r.Ay.delete(`${r.XV}/users/links/${e}`).then((e => e.data))
, Ve = ({limit: e=r.Jg, offset: t=0, cancelToken: s, ...a}={}) => r.Ay.get(`${r.XV}/users/restrict${(0,
r.Zq)({
limit: e,
offset: t,
...a
})}`, {
cancelToken: s
}).then((e => e.data))
, De = (e={}) => r.Ay.post(`${r.XV}/iv/start`, e).then((e => e.data))
, Ue = () => r.Ay.post(`${r.XV}/age-verifier/start`).then((e => e.data))
, Oe = (e={}) => r.Ay.post(`${r.XV}/face-id/start`, e).then((e => e.data))
, Re = () => r.Ay.post(`${r.XV}/face-id/postpone`).then((e => e.data))
, Fe = () => r.Ay.get(`${r.XV}/users/me/profile/views/qr`).then((e => e.data))
, Be = () => r.Ay.get(`${r.XV}/users/me/id`).then((e => e.data))
, qe = () => r.Ay.get(`${r.XV}/users/notifications/count`).then((e => e.data))
, xe = () => r.Ay.get(`${r.XV}/users/notifications/settings/tabs-order`).then((e => e.data))
, je = e => r.Ay.post(`${r.XV}/users/notifications/settings/tabs-order`, e).then((e => e.data))
, Ne = (e, t={}) => r.Ay.post(`${r.XV}/users/${encodeURIComponent(e)}/stat`, t).then((e => e.data))
, Xe = () => r.Ay.get(`${r.XV}/users/me/start-date-model`).then((e => e.data))
, He = () => r.Ay.get(`${r.XV}/users/ws-auth`).then((e => e.data))
, Ge = () => r.Ay.post(`${r.XV}/users/terms/confirm`).then((e => e.data))
, Ze = e => r.Ay.post(`${r.XV}/users/license_form`, e).then((e => e.data))
, Qe = ({mediaId: e, entityId: t=0, entityType: s=n.Tj.OWN_MEDIA, drmType: a}) => {
const i = s !== n.Tj.OWN_MEDIA ? `${s}/${t}` : "";
return `${r.XV}/users/media/${e}/drm/${i}${(0,
r.Zq)({
type: a
})}`
}
, Je = () => r.Ay.get(`${r.XV}/users/media/drm/certificate`).then((e => e.data))
, We = e => r.Ay.post(`${r.XV}/users/me/validate-data`, e).then((e => e.data))
},
551564: function(e, t, s) {
"use strict";
s.d(t, {
BV: function() {
return p
},
F8: function() {
return f
},
GV: function() {
return i
},
Lg: function() {
return h
},
Rt: function() {
return l
},
VY: function() {
return o
},
YM: function() {
return m
},
Yb: function() {
return u
},
fd: function() {
return d
},
j1: function() {
return S
},
jM: function() {
return a
},
q0: function() {
return y
},
sJ: function() {
return g
},
sc: function() {
return c
},
w6: function() {
return n
}
});
var r = s(977434);
const a = ({limit: e=r.Jg, offset: t=0, cancelToken: s, ...a}) => r.Ay.get(`${r.XV}/vault/media${(0,
r.Zq)({
limit: e,
offset: t,
...a
})}`, {
cancelToken: s
}).then((e => e.data))
, n = ({mediaId: e, cancelToken: t, ...s}) => r.Ay.get(`${r.XV}/vault/media/${e}/posts${(0,
r.Zq)(s)}`, {
cancelToken: t
}).then((e => e.data))
, i = (e={}) => r.Ay.get(`${r.XV}/vault/media/hash${(0,
r.Zq)(e)}`).then((e => e.data))
, o = ({ids: e}) => r.Ay.put(`${r.XV}/vault/media/hidden`, {
mediaIds: e
}).then((e => e.data))
, c = (e={}) => r.Ay.get(`${r.XV}/vault/lists${(0,
r.Zq)(e)}`).then((e => e.data))
, d = e => r.Ay.get(`${r.XV}/vault/lists/${e}`).then((e => e.data))
, l = e => r.Ay.post(`${r.XV}/vault/lists`, {
name: e
}).then((e => e.data))
, u = ({id: e, name: t}) => r.Ay.patch(`${r.XV}/vault/lists/${e}`, {
name: t
}).then((e => e.data))
, m = (e, t) => r.Ay.delete(`${r.XV}/vault/lists/${e}`, {
data: {
clearMedia: t
}
}).then((e => e.data))
, f = (e, t) => r.Ay.post(`${r.XV}/vault/lists/${t}/media`, {
mediaIds: e
}).then((e => e.data))
, h = (e, t) => r.Ay.delete(`${r.XV}/vault/lists/${t}/media`, {
data: {
mediaIds: e
}
}).then((e => e.data))
, p = e => r.Ay.post(`${r.XV}/vault/lists/sort`, e).then((e => e.data))
, g = () => r.Ay.get(`${r.XV}/vault/media/types`).then((e => e.data))
, y = ({mediaId: e}) => r.Ay.get(`${r.XV}/vault/media/${e}`).then((e => e.data))
, S = (e, t) => r.Ay.put(`${r.XV}/vault/media/${e}/attach`, t).then((e => e.data))
},
263601: function(e, t, s) {
"use strict";
s.d(t, {
AS: function() {
return C
},
Dl: function() {
return _
},
Ko: function() {
return M
},
Lq: function() {
return y
},
TR: function() {
return J
},
Ti: function() {
return Q
},
Vv: function() {
return Z
},
Zx: function() {
return R
},
_D: function() {
return W
},
c8: function() {
return F
},
eP: function() {
return x
},
h_: function() {
return V
},
kc: function() {
return U
},
lU: function() {
return $
},
nb: function() {
return H
},
oO: function() {
return B
},
q_: function() {
return G
},
tf: function() {
return j
},
vn: function() {
return q
}
});
var r = s(962953)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(198023)
, c = s.n(o)
, d = s(414415)
, l = s(974353)
, u = s.n(l)
, m = s(631126)
, f = s(826489)
, h = s.n(f)
, p = s(646827)
, g = s(82169);
p.t1.register(...p.$L);
const y = "#fff"
, S = "rgba(138,150,163,0.25)"
, v = "#f1f2f4"
, w = "#242529"
, I = "#d0d5db"
, b = 50
, A = "m[m] s[s]"
, P = "H[h] m[m]"
, k = "D[d] H[h]"
, C = 12;
function L(e) {
return e ? S : v
}
function T(e) {
return e ? y : w
}
const M = (e, t) => `${e}${Math.floor(255 * t).toString(16).padStart(2, 0)}`
, _ = {
clip: !1,
borderWidth: 2,
pointBorderColor: "transparent",
pointRadius: 0,
pointHoverRadius: 4,
pointHoverBorderWidth: 2,
pointHoverBorderColor: "#fff",
pointHitRadius: f.isMobile ? 12 : 6
};
function $(e) {
if (!c()(e) || 0 === e)
return A;
let t;
const s = [{
label: "d",
value: Math.floor(e / 86400),
format: k
}, {
label: "h",
value: Math.floor(e % 86400 / 3600),
format: P
}, {
label: "m",
value: Math.floor(e % 3600 / 60),
format: A
}, {
label: "s",
value: e % 60,
format: A
}].find(( ({value: e}) => e > 0));
return (null == s ? void 0 : s.format) || A
}
function E(e, t=!1) {
return !e && t ? "" : u().duration(e, "seconds").format($(e))
}
function V(e, t=!1, s=!1) {
return !e && t ? "" : `$${(0,
m.Hi)(s ? e.toFixed(2) : e)}`
}
function D(e, t, s="", r=null) {
return {
hover: {
animationDuration: 0
},
interaction: {
mode: "index",
axis: "xy"
},
responsive: !0,
plugins: {
legend: {
display: !1
},
tooltip: {
external(e) {
"function" == typeof t && t({
tooltip: e,
chart: this
})
},
callbacks: {
title: t => Array.isArray(e[t[0].dataIndex]) ? e[t[0].dataIndex].join() : e[t[0].dataIndex],
label: e => {
let t = e.dataset.data[e.dataIndex];
if (c()(t)) {
let[e,s] = t.toString().split(".");
e && s && s.length > 2 && (t = parseFloat(t.toFixed(2)))
}
return {
title: e.dataset.label,
value: t,
sumValue: i()(e, `sumData[${e.index}]`, null),
prefix: s,
ticksCallback: r
}
}
},
mode: "index",
position: "average",
usePointStyle: !0,
intersect: !0,
enabled: !1
}
}
}
}
const U = {
responsive: !0,
maintainAspectRatio: !1,
plugins: {
legend: {
display: !1
}
},
scales: {
x: {
display: !1,
grid: {
display: !1
}
},
y: {
display: !1,
grid: {
display: !1
},
beginAtZero: !0
}
},
elements: {
point: {
radius: 0,
hitRadius: 0
}
},
layout: {
padding: 1
},
tooltip: {
enabled: !1
}
};
function O({labelsToShow: e}) {
return {
responsive: !0,
maintainAspectRatio: !1,
scales: {
x: {
display: !0,
border: {
dash: [4, 2]
},
grid: {
color: e.map((e => e ? "rgba(237,238,241,0.68)" : "transparent")),
display: !0,
zeroLineColor: "transparent"
},
beginAtZero: !1,
ticks: {
font: {
size: 11,
color: "#fff"
},
autoSkip: !1,
padding: 4,
fontSize: 11,
maxRotation: 0,
labelOffset: 2,
crossAlign: "center",
zeroLineColor: "transparent"
}
},
y: {
display: !0,
border: {
dash: [4, 2]
},
grid: {
color: "rgba(237,238,241,0.68)",
display: !0
},
beginAtZero: !0,
ticks: {
display: !1
}
}
},
elements: {
point: {
radius: 0,
hitRadius: 0
}
},
layout: {
padding: 1
},
tooltip: {
enabled: !1
},
hover: {
animationDuration: 0
},
interaction: {
mode: "index",
axis: "xy"
},
plugins: {
legend: {
display: !1
}
}
}
}
function R({onComplete: e, darkMode: t}) {
const s = L(t)
, r = T(t);
return {
interaction: {
intersect: !1,
axis: "x"
},
responsive: !0,
maintainAspectRatio: !1,
scales: {
x: {
display: !1,
border: {
dash: [4, 2]
},
grid: {
color: s,
display: !0,
zeroLineColor: "transparent"
},
beginAtZero: !1,
ticks: {
autoSkip: !1,
padding: 4,
font: {
size: 11,
color: r
},
color: r,
maxRotation: 0,
labelOffset: 2,
crossAlign: "center",
zeroLineColor: "transparent"
}
},
y: {
ticks: {
color: "transparent"
},
border: {
dash: [4, 2]
},
grid: {
color: s,
display: !0
},
font: {
size: 11,
color: r
},
color: r,
drawOnChartArea: !1,
beginAtZero: !0,
afterFit: e => {
e.width = 45,
e.minWidth = 45,
e.maxWidth = 45
}
,
position: "right"
}
},
elements: {
point: {
radius: 0,
hitRadius: 0
}
},
layout: {
padding: 1
},
tooltip: {
enabled: !1
},
animation: {
duration: 0,
onComplete: e
},
...D([]),
clip: !1
}
}
function F({data: e, labelsToShow: t, currentLabels: s, onToolTipUpdate: r, hideLabels: a=!0, prefix: n="", stepCoff: i=3, ticksCallback: o=null, tooltipCallback: c=null, maxChartTextWidth: d=b, darkMode: l}) {
const u = 10 ** (Math.max(...e).toString().length - 1)
, m = L(l)
, f = T(l);
return {
responsive: !0,
maintainAspectRatio: !1,
scales: {
x: {
grid: {
display: !0,
color: t.map(( (e, s) => e || s === t.length - 1 ? m : "transparent")),
drawTicks: !a
},
beginAtZero: !0,
ticks: {
autoSkip: !1,
padding: 0,
font: {
size: 11,
color: f
},
color: f,
maxRotation: 0,
crossAlign: "near",
labelOffset: 20,
display: !a
}
},
y: {
display: !0,
grid: {
display: !0,
color: e => 0 === e.index ? I : m
},
border: {
width: 0
},
align: "center",
autoSkip: !0,
beginAtZero: !0,
afterFit: e => {
const t = d < b ? b : d;
e.width = t,
e.minWidth = t,
e.maxWidth = t
}
,
position: "right",
ticks: {
stepSize: Math.round(Math.max(...e) / i / u) * u,
callback(e) {
return o ? o(e, !0) : e ? `${n}${e}` : ""
},
font: {
size: 12,
color: f
},
color: f,
maxTicksLimit: i + 1,
fontSize: 11,
maxRotation: 0,
drawOnChartArea: !1,
labelOffset: 8,
padding: 0
}
}
},
elements: {
point: {
radius: 4,
borderWidth: 1
}
},
layout: {
padding: {
left: 0,
top: 4,
right: 0,
bottom: 0
},
autoPadding: !1
},
...D(s, r, n, c || o)
}
}
function B({data: e, label: t, color: s}) {
return [{
..._,
label: t,
data: e,
tension: 0,
fill: !0,
backgroundColor: M(s, .14),
borderColor: s,
pointBackgroundColor: s
}]
}
function q({data: e, label: t, borderColor: s}) {
return {
label: t,
data: e,
borderColor: s,
fill: !1,
tension: 0,
borderWidth: 2
}
}
function x(e, t) {
const s = undefined
, r = document.createElement("canvas").getContext("2d");
r.globalCompositeOperation = "destination-out";
const a = r.createLinearGradient(0, 0, 0, t);
return e.forEach((e => {
a.addColorStop(e.value, e.color)
}
)),
a
}
function j({data: e, labelsToShow: t, detailedStats: s, currentLabels: r, stepCoff: a, precision: n, onToolTipUpdate: i, darkMode: o, height: c, borderDash: d, tooltipCallback: l}) {
const u = L(o)
, m = T(o)
, f = x([{
value: 1,
color: I
}, {
value: .8,
color: I
}, {
value: .79,
color: "rgba(0, 0, 0, 0)"
}, {
value: 1,
color: "rgba(0, 0, 0, 0)"
}], c);
return {
responsive: !0,
maintainAspectRatio: !1,
scales: {
x: {
display: !0,
grid: {
color: t.map((e => e ? f : "transparent")),
zeroLineColor: u
},
beginAtZero: !0,
afterFit: e => {
e.paddingLeft -= 4,
e.paddingRight -= 4
}
,
ticks: {
autoSkip: !1,
padding: 10,
fontSize: 11,
maxRotation: 0,
labelOffset: 6,
crossAlign: "left",
font: {
size: 11,
color: m
},
color: m
}
},
y: {
display: !0,
grid: {
display: !0,
color: e => 0 === e.index ? I : u
},
border: {
...d ? {
dash: [8, 4]
} : {},
color: u,
width: s ? 0 : 1
},
beginAtZero: !0,
afterFit: e => {
e.width = 0,
e.minWidth = 0,
e.maxWidth = 0
}
,
position: "right",
backgroundColor: "red",
ticks: {
stepSize: e.length ? Math.round(Math.max(...e) / a / n) * n : 0,
callback() {
return ""
},
font: {
size: 11,
color: m
},
color: m,
maxTicksLimit: a + 1,
maxRotation: 0,
offset: 20,
drawOnChartArea: !1,
labelOffset: 8,
showLabelBackdrop: !1,
crossAlign: "center"
}
}
},
elements: {
point: {
radius: 0,
hoverRadius: 4,
pointHitRadius: 20,
borderWidth: 2,
hoverBorderColor: "#fff"
}
},
layout: {
padding: {
left: 0,
right: 0,
top: 14,
bottom: 0
}
},
animation: {
duration: 500,
easing: "easeOutQuart"
},
...D(r, i, "", l)
}
}
function N(e) {
return {
title: d.A.$t(e),
ticksCallback: (e, t=!0) => V(e, t),
tooltipCallback: e => V(e, !1, !0)
}
}
function X(e) {
return {
title: d.A.$t(e),
ticksCallback: (e, t=!0) => E(e, t),
tooltipCallback: e => E(e, !1)
}
}
function H(e) {
const t = undefined;
return {
StatisticsEngagementPosts: {
purchases: [N("message.message_type_purchases"), {
title: d.A.$t("message.message_posts")
}],
tips: [N("message.streaming_tips"), {
title: d.A.$t("message.message_posts")
}],
views: [{
title: d.A.$t("message.tooltip_viewers")
}, {
title: d.A.$t("message.message_posts")
}],
likes: [{
title: d.A.$t("message.streaming_summary_likes_title")
}, {
title: d.A.$t("message.message_posts")
}],
comments: [{
title: d.A.$t("message.notification_type_comments")
}, {
title: d.A.$t("message.message_posts")
}]
},
StatisticsEngagementMessages: {
purchases: [N("message.message_type_purchases"), {
title: d.A.$t("message.notifications_message_title")
}],
views: [{
title: d.A.$t("message.tooltip_viewers")
}, {
title: d.A.$t("message.notifications_message_title")
}]
},
StatisticsEngagementStreaming: {
purchases: [N("message.message_type_purchases"), X("message.streaming")],
tips: [N("message.streaming_tips"), X("message.streaming")],
views: [{
title: d.A.$t("message.tooltip_viewers")
}, X("message.streaming")],
likes: [{
title: d.A.$t("message.streaming_summary_likes_title")
}, X("message.streaming")],
comments: [{
title: d.A.$t("message.notification_type_comments")
}, X("message.streaming")]
},
StatisticsEngagementStories: {
tips: [N("message.notifications_tip_title"), {
title: d.A.$t("message.story_table_heading")
}],
views: [{
title: d.A.$t("message.tooltip_viewers")
}, {
title: d.A.$t("message.story_table_heading")
}],
likes: [{
title: d.A.$t("message.streaming_summary_likes_title")
}, {
title: d.A.$t("message.story_table_heading")
}],
comments: [{
title: d.A.$t("message.notification_type_comments")
}, {
title: d.A.$t("message.story_table_heading")
}]
},
StatisticsStatementsEarnings: [N("message.earnings_title"), {
title: d.A.$t("message.settings_credits_title_transactions")
}],
StatisticsStatementsPayoutRequests: [N("message.paid_out_text"), {
title: d.A.$t("message.invoices_text")
}],
StatisticsStatementsDisputes: [N("message.charged_back_text"), {
title: d.A.$t("message.disputes_statistics_title")
}],
StatisticsStatementsReferralEarnings: [N("message.earnings_title"), {
title: d.A.$t("message.referrals_table_heading")
}],
StatisticsStatementsReferralCreators: [N("message.earnings_title"), {
title: d.A.$t("message.referrals_table_heading")
}],
StatisticsStatementsReferralUsers: [N("message.earnings_title"), {
title: d.A.$t("message.referrals_table_heading")
}],
StatisticsStatementsVatDocuments: [N("message.vat_refunds_title"), {
title: d.A.$t("message.invoices_text")
}],
StatisticsReachProfileVisitors: {
total: [{
title: d.A.$t("message.visitors_text")
}, X("message.message_view_duration")],
guests: [{
title: d.A.$t("message.message_guests")
}, X("message.message_view_duration")],
users: [{
title: d.A.$t("message.message_users")
}, X("message.message_view_duration")],
subscribers: [{
title: d.A.$t("message.message_subscribers")
}, X("message.message_view_duration")]
},
StatisticsReachPromotions: [{
title: d.A.$t("message.claims")
}, {
title: d.A.$t("message.mass_offers")
}],
StatisticsReachTrialLinks: [{
title: d.A.$t("message.claims")
}, {
title: d.A.$t("message.trials")
}],
StatisticsFansSubscriptions: [N("message.earnings_title"), {
title: d.A.$t("message.message_subscribers")
}],
StatisticsStatementsEarningsTips: [N("message.earnings_title"), {
title: d.A.$t("message.settings_credits_title_transactions")
}]
}[e] || null
}
function G(e, t) {
const s = undefined
, r = document.createElement("canvas").getContext("2d");
r.font = t;
const a = undefined;
return r.measureText(e).width
}
function Z() {
return {
responsive: !0,
maintainAspectRatio: !1,
plugins: {
legend: {
display: !1
},
title: {
display: !1
},
tooltip: {
enabled: !1
}
},
events: ["mouseout", "click", "touchstart", "touchmove", "touchend"],
animation: {
onComplete({chart: e}) {
if (!e.ctx)
return;
const t = undefined
, s = i()(e, "data.datasets[0].data", []).reduce(( (e, t) => e + t), 0)
, {height: r, width: a} = e;
e.ctx.textAlign = "center",
e.ctx.textBaseline = "middle",
e.ctx.fillStyle = "#00aff0",
e.ctx.font = "bold 24px Roboto",
e.ctx.fillText(s, a / 2, r / 2)
}
}
}
}
function Q(e) {
return {
viewersCount: +e.stream_look_count,
viewers: [...e.stream_look_all || []],
viewersChartData: [...e.stream_look_chart || []],
likesCount: +e.stream_like_count,
likes: [...e.stream_like_all || []],
likeChartData: [...e.stream_like_chart || []],
commentsCount: +e.stream_comment_count,
comments: [...e.stream_comment_all || []],
commentsChartData: [...e.stream_comment_chart || []],
tipsCount: +e.stream_tip_count,
tips: [...e.stream_tip_all || []],
tipsChartData: [...e.stream_tip_chart || []],
tipSum: +e.stream_tip_sum,
duration: u().duration(e.stream_duration, "seconds").format(g.A.getDurationFormat(e.stream_duration))
}
}
function J({isBarChart: e=!1, forceColor: t=0, position: s, extraXLabelOffset: r=0}={}) {
return {
id: "labels-plugin",
afterDatasetsDraw: ({scales: {x: a, y: n}, data: {labels: i}, ctx: o}) => {
o.save(),
o.font = "12px Roboto",
o.fillStyle = t;
const c = i.filter((e => !!e))
, d = n.height / c.length;
i.forEach(( (e, t) => {
let s = a.getPixelForTick(t);
e && o.fillText(e, s + r, a.bottom - 3)
}
));
const l = "right" === s ? a.width + 10 : 0;
n.ticks.forEach(( ({label: t}, s) => {
let r = n.getPixelForTick(s);
r += 5.5 - (e ? -20 : d / 2),
o.fillText(t, l, r + 5)
}
))
}
}
}
function W({position: e, forceColor: t, axesWidth: s, offset: r=0, skipDrawAxis: a=!1}) {
return {
id: "grid-plugin",
beforeDatasetsDraw: ({ctx: n, chartArea: {bottom: i, top: o}, scales: {x: c, y: d}}) => {
n.beginPath(),
n.lineWidth = 1,
n.strokeStyle = t;
const l = d.ticks.filter((e => !!e.label)).length
, u = c.ticks.filter((e => !!e.label)).length
, m = c.width / c.ticks.length
, f = d.height / l
, h = c.width / u
, p = "right" === e ? c.left - s + (s || 0) : c.left
, g = "right" === e ? c.width + s : 0;
Array.from({
length: l + 1
}, ( (e, t) => {
n.moveTo(p, i - t * f),
n.lineTo(g, i - t * f)
}
)),
Array.from({
length: u
}, ( (e, t) => {
n.moveTo(c.left + t * h + m * r, o),
n.lineTo(c.left + t * h + m * r, i + 20)
}
)),
a || (n.moveTo(c.right, i),
n.lineTo(c.right, i + 20)),
n.stroke()
}
}
}
},
10701: function(e, t, s) {
"use strict";
s.d(t, {
m: function() {
return c
}
});
var r = s(962953)
, a = s.n(r)
, n = s(441153)
, i = s(183673)
, o = s.n(i);
const c = e => {
if (!o()(e).length)
return {
rfTag: [],
rfGuest: [],
rfPartner: []
};
let t = e;
n.A.state.releaseForms.usersFromGuest.length && (t = e.map((e => {
const t = n.A.state.releaseForms.usersFromGuest.find((t => t.guest_id === e.id));
return t || e
}
)));
const s = e => e.id
, r = (e, r) => t.filter((e => (null == e ? void 0 : e.type) === r)).map(s);
return {
rfTag: r(t, "user"),
rfGuest: r(t, "guest"),
rfPartner: [...r(t, "link"), ...r(t, "document")]
}
}
},
859846: function(e, t, s) {
"use strict";
s.d(t, {
V: function() {
return d
},
xg: function() {
return p
}
});
var r = s(223805)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(826489)
, c = () => {
const e = i()(window, "navigator.connection");
if (!e || "object" != typeof e)
return {
canUse: !1
};
const t = {
canUse: !0,
isGood: !0
};
return e.downlinkMax && e.downlinkMax >= 1.5 || e.downlink && e.downlink >= 1.5 || "4g" === e.effectiveType || ["wifi", "ethernet"].includes(e.type) ? t : {
canUse: !0,
isGood: !1
}
}
;
const d = 5
, l = e => new Date(e).getTime() / 1e3
, u = (e, t, s, r, a, n) => {
const {canUse: i, isGood: o} = t || {};
return "photo" === s ? window.innerHeight <= n ? a : r : i ? o ? r : a : e ? a : r
}
, m = e => {
if (!a()(e))
return {};
const t = i()(e, "canView", !1)
, s = i()(e, "type", "photo")
, r = i()(e, "files.full.url", "")
, n = i()(e, "videoSources.720") || r
, o = i()(e, "files.preview.url") || r
, c = i()(e, "files.preview.height", 0)
, d = undefined
, l = undefined;
return {
canView: t,
locked: `data:image/jpg;base64,${i()(e, "files.locked.url", "")}`,
type: s,
fullSrc: r,
lowSrc: "photo" === s ? o : n,
photoPreviewHeight: c
}
}
, f = (e, t, s) => {
e = Array.isArray(e) && e.length ? e[0] : e;
const {canView: r, locked: a, type: n, fullSrc: i, lowSrc: o, photoPreviewHeight: c} = m(e);
return r ? u(t, s, n, i, o, c) : a
}
, h = e => {
const t = window.innerWidth
, s = window.innerHeight
, r = i()(e, "0.files.full.width")
, a = i()(e, "0.files.full.height")
, n = undefined
, o = 150
, c = o / (r / a)
, d = undefined
, l = undefined
, u = o * (s / c)
, m = undefined;
return u <= t ? {
bgPreviewWidth: u,
bgPreviewHeight: s,
originalMediaWidth: r,
originalMediaHeight: a
} : {
bgPreviewWidth: t,
bgPreviewHeight: c * (t / o),
originalMediaWidth: r,
originalMediaHeight: a
}
}
, p = (e={}) => {
const {id: t, isExpired: s, canLike: r, canDelete: a, isWatched: n, isLiked: u, isReady: m, userId: p, isHighlightCover: g, isLastInHighlight: y, question: S, texts: v, viewersCount: w, createdAt: I, media: b, viewers: A, likesCount: P, tipsAmount: k, tipsAmountRaw: C, tipsCount: L, commentsCount: T, post: M, hasPost: _, canvasHeight: $, canvasWidth: E, releaseForms: V=[]} = e
, D = i()(b, "[0].canView")
, U = !1 !== m && D ? i()(b, "[0].type", "photo") : "photo"
, O = "gif" === U ? "video" : U
, R = i()(b, "[0].duration", 0)
, F = R <= d ? d : R
, B = "photo" === U ? void 0 : R <= 5
, q = i()(b, "[0].files.preview.sources.w150", void 0)
, x = i()(b, "[0].files.squarePreview.sources.w480", void 0)
, j = D ? q : ""
, N = I ? l(I) : void 0
, {bgPreviewWidth: X, bgPreviewHeight: H, originalMediaWidth: G, originalMediaHeight: Z} = h(b)
, Q = undefined
, J = undefined
, W = undefined;
return {
id: t,
isExpired: s,
canLike: r,
canDelete: a,
isLiked: u,
isReady: m,
userId: p,
isWatched: n,
isHighlightCover: g,
isLastInHighlight: y,
question: S,
texts: v,
viewersCount: w,
createdAt: I,
type: O,
mediaType: U,
length: F,
loop: B,
thumb: q,
time: N,
viewers: A,
bgPreviewWidth: X,
bgPreviewHeight: H,
originalMediaWidth: G,
originalMediaHeight: Z,
loadingBg: j,
src: f(b, o.isMobile, c()),
locked: i()(b, "[0].files.locked.url", void 0),
thumbLarge: x,
likesCount: P,
tipsAmount: k,
tipsAmountRaw: C,
tipsCount: L,
commentsCount: T,
hasError: i()(b, "[0].hasError", !1),
post: M,
hasPost: _,
canvasWidth: E,
canvasHeight: $,
releaseForms: V
}
}
},
578787: function(e, t, s) {
"use strict";
s.d(t, {
Q: function() {
return r
}
});
const r = {
TIPS: "tips_comment",
JOINED_USER: "joined_user_comment",
SUBSCRIBED: "subscribed_comment",
REGULAR: "regular_comment"
}
},
733070: function(e, t, s) {
"use strict";
s.d(t, {
w: function() {
return a
},
y: function() {
return r
}
});
const r = {
USD: "USD"
}
, a = {
CODE: "code",
NAME: "name",
SYMBOL: "symbol",
NARROW_SYMBOL: "narrowSymbol"
}
},
485891: function(e, t, s) {
"use strict";
s.d(t, {
u: function() {
return n
}
});
const {NODE_ENV: r, VUE_APP_STATIC_PATH: a} = {
NODE_ENV: "production",
VUE_APP_STATIC_PATH: "/static/prod/f/202410251315-8cb2352710"
}
, n = `${"production" === r ? a : ""}/icons/sprite.svg#`
},
480343: function(e, t, s) {
"use strict";
s.d(t, {
S: function() {
return a
},
i: function() {
return r
}
});
const r = {
SMS: 500,
SM: 768,
MD: 1004,
LG: Number.MAX_VALUE
}
, a = {
breakpoints: {
sms: r.SMS,
sm: r.SM,
md: r.MD,
lg: r.LG
}
}
},
135429: function(e, t, s) {
"use strict";
s.d(t, {
Qr: function() {
return d
},
WO: function() {
return n
},
YE: function() {
return c
},
sq: function() {
return o
},
sv: function() {
return a
}
});
const r = /(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/g
, a = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[0-2][1-9]|[1-3]0|3[01])T(?:[0-1][0-9]|2[0-3])(?::[0-6]\d)(?::[0-6]\d)?(?:\.\d{3})?(?:[+-][0-2]\d:[0-5]\d|Z)?$/
, n = /\s+/g
, i = /[^0-9]/g
, o = /^[a-zA-Z0-9\s,'.-]+$/
, c = /[%@#]/gm
, d = /^[a-z0-9][a-z0-9._-]*[a-z0-9_-]+$/is
},
420635: function(e, t, s) {
"use strict";
s.d(t, {
Z: function() {
return r
}
});
const r = {
FACE_ID: "face_id",
FRAUD_REPAYMENT: "fraud_repayment",
LOGIN_REQUIRES_WAIT_IV: "login_requires_iv_wait_iv"
}
},
311220: function(e, t, s) {
"use strict";
s.d(t, {
Aj: function() {
return a
},
e1: function() {
return n
},
vY: function() {
return r
}
});
const r = {
SOCKET_ONMESSAGE: "SOCKET_ONMESSAGE",
SOCKET_RECONNECT: "SOCKET_RECONNECT"
}
, a = {
ONLINE: "online",
ALTERNATIVE: {
PAID: "alternativePaid"
},
NOTIFICATION: {
MEDIA: {
READY: "notification_media_ready"
}
},
CHAT: {
MESSAGE: {
LIKED: "chat_message_like",
UNLIKED: "chat_message_unlike"
}
},
DAC7: "DAC7"
}
, n = {
DAC7: {
VALIDATION: "validation"
}
}
},
266693: function(e, t, s) {
"use strict";
s.d(t, {
$Y: function() {
return n
},
KJ: function() {
return i
},
i1: function() {
return o
},
jv: function() {
return r
},
oP: function() {
return a
}
});
const r = 2
, a = 3
, n = 3
, i = {
NONE: "no_preview",
STILL: "still_preview",
GIF: "gif_preview"
}
, o = {
POST: "post",
ARCHIVE: "archive"
}
},
919754: function(e, t, s) {
"use strict";
s.d(t, {
g: function() {
return r
}
});
const r = {
IS_BLOCKED: "isBlocked"
}
},
445948: function(e, t, s) {
"use strict";
s.d(t, {
Cc: function() {
return n
},
m9: function() {
return a
},
r0: function() {
return r
}
});
const r = {
AUTO: "auto",
SMOOTH: "smooth",
INSTANT: "instant"
}
, a = {
END: "end",
START: "start",
CENTER: "center",
NEAREST: "nearest"
}
, n = {
END: "end",
START: "start",
CENTER: "center",
NEAREST: "nearest"
}
},
593618: function(e, t, s) {
"use strict";
var r = s(804726);
const a = e => {
clearTimeout(e._touchEndTimeout),
e.setAttribute(r.GX, ""),
e._touchEndTimeout = setTimeout(( () => {
e.removeAttribute(r.GX)
}
), r.tO)
}
;
t.A = {
bind(e, {modifiers: t}) {
var s;
const n = null !== (s = null == t ? void 0 : t.force) && void 0 !== s && s;
r.a2.includes(e.nodeName) && !n || (e._touchStartHandler = () => a(e),
e.addEventListener("touchstart", e._touchStartHandler, {
passive: !0
}))
},
unbind(e) {
e.removeEventListener("touchstart", e._touchStartHandler)
}
}
},
957903: function(e, t, s) {
"use strict";
s.d(t, {
Sl: function() {
return m
},
Xe: function() {
return l
},
_M: function() {
return d
},
c6: function() {
return u
},
iT: function() {
return o
},
o4: function() {
return i
},
y9: function() {
return c
}
});
var r = s(725440)
, a = s.n(r)
, n = s(534173);
const i = e => e ? e.replace(/&reg;/g, "®").replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&lt;/g, "<").replace(/&gt;/g, ">") : e
, o = e => e ? e.replace(/®/g, "&reg;").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : e
, c = e => {
if (!e)
return e;
let t = e.replace(/<\/p>/gi, "<br />");
return t = t.replace(/<br\s*\/?>/gi, " "),
t
}
, d = (e, t="", s=!0) => {
if (!e)
return e;
let r = e;
return s && (r = c(r)),
r = r.replace(/(<([^>]+)>)/gi, t),
r
}
, l = e => e.replace(/<\/?[^>]+(>|$)/g, "").replace(/&nbsp;/g, "").replace(/\s/g, "")
, u = e => Number.isInteger(e) ? e.toLocaleString() : e
, m = e => {
const t = Math.floor(e / 86400);
e %= 86400;
let s = Math.floor(e / 3600);
s && (s = String(s).padStart(2, "0")),
e %= 3600;
const r = String(Math.floor(e / 60)).padStart(2, "0");
return `${t ? `${(0,
n.t)("message.count_d", {
DAYS: t
})} ` : ""}${(0,
n.t)("message.count_h", {
HOURS: s
})}:${(0,
n.t)("message.count_m", {
MINUTES: r
})}`
}
},
631126: function(e, t, s) {
"use strict";
s.d(t, {
B4: function() {
return i
},
Hi: function() {
return c
},
Wx: function() {
return o
}
});
var r = s(725440)
, a = s.n(r);
const n = e => !isNaN(parseFloat(e)) && isFinite(e)
, i = (e, t=2) => {
if (!n(e))
return "";
e = +e;
const {length: s} = `${e}`;
return s >= 8 ? `${(e / 1e6).toFixed(Math.max(t - 1, 0))}M` : s >= 7 ? `${(e / 1e6).toFixed(t)}M` : s >= 5 ? `${(e / 1e3).toFixed(Math.max(t - 1, 0))}K` : s >= 4 ? `${(e / 1e3).toFixed(1)}K` : e
}
, o = e => n(e) ? `$${c(e)}` : ""
, c = e => {
if (!n(e))
return "";
const t = +e;
let s;
return s = "string" == typeof e && Number.isInteger(t) && t.toString() !== e ? t.toFixed(2) : Number.isInteger(t) ? t.toString() : t.toFixed(2),
`${s.replace(/\B(?=(\d{3})+(?!\d))/g, ",")}`
}
},
919469: function(e, t, s) {
"use strict";
s.d(t, {
C1: function() {
return f
},
XB: function() {
return d
},
_3: function() {
return c
},
c: function() {
return u
},
fC: function() {
return o
},
r9: function() {
return m
}
});
var r = s(725440)
, a = s.n(r)
, n = s(962953)
, i = s.n(n);
function o(e, ...t) {
return e ? t : []
}
function c(e=[], t=[], s="") {
const r = undefined
, a = e.concat(t).reduce(( (e, t) => e.set(+t[s], Object.assign(e.get(+t[s]) || {}, t))), new Map).values();
return Array.from(a)
}
const d = e => +e || e
, l = (e, t) => {
switch (!0) {
case "number" == typeof e && "number" == typeof t:
return e - t;
case "number" == typeof e && "string" == typeof t:
return -1;
case "string" == typeof e && "number" == typeof t:
return 1;
case "string" == typeof e && "string" == typeof t:
return e < t ? -1 : 1;
default:
return 0
}
}
, u = e => e.map(d).sort(l)
, m = (e=9) => Math.random().toString(36).substr(2, e)
, f = e => {
const t = /<div class='youtube_container'>\s*<iframe[^>]*src='([^']*)'[^>]*>\s*<\/iframe>\s*<\/div>/g;
return e.replace(t, ( () => ""))
}
},
414415: function(e, t, s) {
"use strict";
s.d(t, {
A: function() {
return Ye
}
});
var r = s(209391), a = s(858156), n = s.n(a), i = s(16280), o = s(533110), c = s(842762), d = s(962953), l = s(885471), u = s(695127), m = s(155331), f = function e() {
var t, s;
return (0,
this._self._c)("router-view")
}, h = [], p, g = {
name: "AppMain"
}, y = s(281656), S, v = (0,
y.A)(g, f, h, !1, null, null, null).exports, w = s(534543), I = s(441153), b = s(319074), A = s(979443), P = s(95751), k = s(495926), C = s(668031), L = s(551116), T = s(483741), M = s(586641), _ = s(178048), $ = s(415261), E = s(927324), V = s.n(E), D = s(92056), U = s.n(D), O = s(764765), R = s(701265), F = s(340816), B = s(242197), q = s(967845), x = s(439114), j = s(992783), N = s(505040), X = s(239168), H = {
install(e, {store: t, i18n: s}) {
e.prototype.$tVat = (e, r={}) => {
const a = t.getters["auth/authUser"].vatNumberName || "VAT";
return s.t(e, {
...r,
VAT_NAME: a
})
}
}
}, G = s(944114), Z = function e() {
var t = this
, s = t._self._c;
return s("b-modal", {
attrs: {
id: t.id,
size: "sm",
"hide-header-close": "",
"hide-header": !t.title,
lazy: "",
centered: "",
"body-class": t.bodyClass
},
on: {
hidden: function(e) {
return t.$emit("closed")
}
},
scopedSlots: t._u([{
key: "modal-header",
fn: function() {
return [s("h4", {
staticClass: "modal-title"
}, [t._v(" " + t._s(t.title) + " ")])]
},
proxy: !0
}, {
key: "modal-footer",
fn: function() {
return [s("button", {
staticClass: "g-btn m-flat m-btn-gaps m-reset-width",
attrs: {
type: "button"
},
on: {
click: function(e) {
return t.$emit("deny")
}
}
}, [t._v(" " + t._s(t.denyText) + " ")]), s("button", {
staticClass: "g-btn m-flat m-btn-gaps m-reset-width",
class: {
"m-danger": t.dangerConfirm
},
on: {
click: function(e) {
return t.$emit("confirm")
}
}
}, [t._v(" " + t._s(t.confirmText) + " ")])]
},
proxy: !0
}]),
model: {
value: t.show,
callback: function(e) {
t.show = e
},
expression: "show"
}
}, [s("div", {
directives: [{
name: "safe-html",
rawName: "v-safe-html",
value: {
text: t.questionText
},
expression: "{ text: questionText }"
}],
staticClass: "dialog_message m-break-word-default"
})])
}, Q = [], J, W = {
name: "ModalInteract",
props: {
modalShow: {
type: Boolean,
required: !0
},
questionText: {
type: String,
default: ""
},
confirmText: {
type: String,
default: ""
},
denyText: {
type: String,
default: ""
},
id: {
type: String,
default: ""
},
title: {
type: String,
default: ""
},
dangerConfirm: {
type: Boolean,
default: !1
}
},
computed: {
show: {
get() {
return this.modalShow
},
set(e) {
this.$emit("update:modalShow", e)
}
},
bodyClass() {
return this.title ? "m-reset-body-padding-top" : ""
}
},
mounted() {
this.$root.$emit("interact::show::modal")
},
beforeDestroy() {
this.$root.$emit("interact::hide::modal")
}
}, Y, z = (0,
y.A)(W, Z, Q, !1, null, null, null).exports, K = s(771881);
function ee(e, t={}) {
const s = Math.random().toString(36).substr(2, 9)
, r = (0,
K.O)();
return this.interactTasks.push({
questionText: e,
id: s,
resolve: r.resolve,
reject: r.reject,
modalShow: !0,
modalResult: !1,
...t
}),
r.promise
}
var te = {
install(e) {
const t = {
interactTasks: []
};
e.component("InteractModal", {
data() {
return t
},
render(e) {
const t = this;
return e("div", this.interactTasks.map((s => e(z, {
props: {
confirmText: s.confirmText || t.$t("message.confirm_button"),
denyText: s.denyText || t.$t("message.cancel_button"),
...s
},
on: {
deny() {
s.modalResult = !1,
s.modalShow = !1
},
confirm() {
s.modalResult = !0,
s.modalShow = !1
},
closed() {
t.interactTasks = t.interactTasks.filter((e => e.id !== s.id));
try {
s.resolve(s.modalResult)
} catch (e) {}
}
}
}))))
}
}),
window.interact = ee.bind(t)
}
}, se = s(595671), re = s(654574), ae = function e() {
var t = this
, s = t._self._c;
return s("router-link", {
attrs: {
to: t.to,
custom: ""
},
scopedSlots: t._u([{
key: "default",
fn: function({href: e}) {
return [s("a", {
class: {
"m-no-pointer": t.disabled
},
attrs: {
href: e
},
on: {
click: function(e) {
return e.preventDefault(),
t.$emit("click")
}
}
}, [t._t("default")], 2)]
}
}], null, !0)
})
}, ne = [], ie, oe = {
name: "CustomLink",
props: {
to: {
type: Object,
required: !0
},
disabled: {
type: Boolean,
default: !1
}
}
}, ce, de = (0,
y.A)(oe, ae, ne, !1, null, null, null).exports, le = s(13037), ue = s(957903), me = s(969624), fe = s(106283), he = s.n(fe), pe = s(124332), ge = s.n(pe), ye = s(789959), Se = s(534173), ve = s(826489);
const we = {
async uploaderInit() {
const {default: e} = await Promise.all([s.e(21893), s.e(14418), s.e(50049)]).then(s.bind(s, 661384));
return e.install(l.default, {
store: I.A,
i18n: Se.Ru
})
},
async perform(e) {
!ve.isIOS && !ve.isSafari || document.querySelector("#file_upload_input") || I.A.state.init.uploaderInit || setTimeout(( () => {
var e;
null === (e = document.querySelector("#file_upload_input")) || void 0 === e || e.click(),
I.A.commit("init/setUploaderInit", !0, {
root: !0
})
}
), 500);
const t = await this.uploaderInit();
return await t.perform(e)
},
async uploadToS3Async(e) {
const t = await this.uploaderInit();
return await t.uploadToS3Async(e)
}
};
var Ie = s(676440)
, be = {
unbind(e, t) {
t.value && (0,
Ie.V)(e)
}
}
, Ae = {
inserted(e, t, s) {
if (!window.ResizeObserver)
return;
const r = n()(s, "componentInstance.swiperInstance", null);
if (r) {
const t = r.el.querySelector(".swiper-wrapper");
t && (e.resizeObserver = new ResizeObserver((e => {
e.forEach((e => {
const {clientWidth: t, scrollWidth: s} = e.target;
t < s ? r.mousewheel.enable() : r.mousewheel.disable()
}
))
}
)),
e.resizeObserver.observe(t))
}
},
unbind(e) {
e.resizeObserver && e.resizeObserver.disconnect()
},
update(e, t, s) {
const r = n()(s, "componentInstance.swiperInstance", null);
if (r) {
const e = r.el.querySelector(".swiper-wrapper");
e && s.context && s.context.$nextTick(( () => {
const {clientWidth: t, scrollWidth: s} = e;
t < s ? r.mousewheel.enable() : r.mousewheel.disable()
}
))
}
}
}
, Pe = s(593618)
, ke = s(517642)
, Ce = s(658004)
, Le = s(733853)
, Te = s(845876)
, Me = s(432475)
, _e = s(515024)
, $e = s(731698)
, Ee = s(447533);
const Ve = ["b", "h1", "h2", "h3", "h4", "h5", "h6", "p", "br", "strong", "span", "em", "mark", "small", "del", "ins", "sub", "sup", "ul", "li", "ol", "table", "th", "tr", "td", "a", "div", "iframe", "svg", "use", "i"]
, De = (e, t) => {
const s = t.modifiers && Object.keys(t.modifiers).length && Object.keys(t.modifiers) || t.value.allowedTags || []
, r = [...new Set([...Ve, ...s])];
e.innerHTML = (0,
Ee.p)(t.value.text, {
ALLOWED_TAGS: r,
ADD_ATTR: ["target", "class"],
FORBID_ATTR: ["style"]
})
}
;
var Ue = {
update(e, t) {
t.oldValue.text !== t.value.text && De(e, t)
},
inserted(e, t) {
De(e, t)
}
};
function Oe(e) {
e.directive("dropdownAutohide", be),
e.directive("swiperMousewheel", Ae),
e.directive("touchHover", Pe.A),
e.directive("safe-html", Ue)
}
var Re = s(628294)
, Fe = s(671739)
, Be = s(804726)
, qe = s(480343)
, xe = s(311220)
, je = s(652064)
, Ne = s(977434)
, Xe = s(758987)
, He = s(636073);
{
const e = (0,
Ne.OF)();
V().set("fp", e, {
domain: ".onlyfans.com",
expires: "1Y"
}),
I.A.commit("auth/setVisitorId", e)
}
l.default.use(ge()),
l.default.use(B.Ay),
l.default.use(se.Ay, {
autoHide: !0,
disposeTimeout: 100,
defaultHtml: !1
}),
se.Ay.enabled = !m.CN,
l.default.config.productionTip = !1,
l.default.use(le.A),
l.default.use(V()),
l.default.use(R.Ay),
l.default.use(He.A);
const {wsEventEmitter: Ge} = (0,
Fe.A)();
l.default.use(U(), "wss://ws2.onlyfans.com/ws2/", {
connectManually: !0,
store: I.A,
format: "json",
passToStoreHandler(e, t) {
if (!e.startsWith("SOCKET_"))
return;
const s = e.toUpperCase();
if (s === xe.vY.SOCKET_ONMESSAGE) {
const {data: e} = t || {}
, s = "string" == typeof e && e.trim() || {};
try {
const e = JSON.parse(s)
, t = Object.keys(e);
t.length && t.forEach((t => Ge.emit(t, e[t])))
} catch (a) {
throw (0,
Xe.Bg)({
error: a,
extra: {
originWsMessage: e,
trimWsMessage: s
}
}),
new Error("WS incorrect format data")
}
}
const r = [xe.vY.SOCKET_ONMESSAGE, xe.vY.SOCKET_RECONNECT].includes(s) ? "dispatch" : "commit";
this.store[r](`socket/${s}`, t)
}
}),
l.default.use(O.A),
l.default.use(F.A, qe.S),
l.default.use(q.A),
l.default.use(ye.Ay, {
prefetch: !1
}),
l.default.use($.Ay),
Object.keys(je.f).forEach((e => {
$.Ay.Validator.extend(e, je.f[e])
}
));
const Ze = (0,
Se.eX)();
Ze.postTranslation = (e, t) => {
var s;
const r = null === w.A || void 0 === w.A || null === (s = w.A.history) || void 0 === s || null === (s = s.current) || void 0 === s ? void 0 : s.name
, {canTranslate: a} = I.A.state.auth.admin || {};
return a && setTimeout(( () => {
I.A.dispatch("translations/set", {
routeName: r,
code: t,
value: e
}, {
root: !0
})
}
)),
e
}
,
l.default.component("BaseLink", re.A),
l.default.component("CustomLink", de),
l.default.use(he(), {
container: "body",
duration: 300,
easing: "ease",
offset: -100,
force: !0,
cancelable: !0,
x: !1,
y: !0
}),
(0,
Be.EX)(),
Oe(l.default),
l.default.use(x.Bf),
l.default.use(j.J),
l.default.use(N.l, {
BModal: {
returnFocus: {}
}
}),
l.default.use(X.zK),
l.default.use(H, {
store: I.A,
i18n: Ze
}),
l.default.filter("encodeHtml", ue.o4),
l.default.filter("removeTags", ue._M),
l.default.filter("toLocalString", ue.c6),
l.default.use(te),
l.default.prototype.$env = {
NODE_ENV: "production",
VUE_APP_SENTRY_DSN: "https://[email protected]/3",
VUE_APP_SENTRY_STREAMS_DSN: "https://[email protected]/4",
VUE_APP_TEXTS_DOMAIN: "https://texts.onlyfans.com",
VUE_APP_API: "onlyfans.com",
VUE_APP_COOKIE_DOMIAN: "onlyfans.com",
VUE_APP_WS: "wss://ws2.onlyfans.com",
VUE_APP_STATIC: "https://static2.onlyfans.com",
VUE_APP_STATIC_PATH: "/static/prod/f/202410251315-8cb2352710",
VUE_APP_STAGE: "live",
VUE_APP_SENTRY_URL: "https://bug2.onlyfans.com/",
VUE_APP_CF_BEACON_TOKEN: "22ecd367a5d548f49eb3609ef0cb83de",
VUE_APP_HASH_REQUEST_URL: "https://cdn2.onlyfans.com/hash/",
VUE_APP_INIT_URL: "https://texts.onlyfans.com/init.json",
VUE_APP_REVISION: "202410251315-8cb2352710",
BASE_URL: "https://static2.onlyfans.com/static/prod/f/202410251315-8cb2352710/"
},
l.default.prototype.$window = window,
l.default.prototype.$uploader = we,
window.Sentry = b;
const Qe = "202410251315-8cb2352710";
A.T({
Vue: l.default,
environment: "live",
dsn: "https://[email protected]/3",
ignoreErrors: [/Function\.seal/, /Object\.seal/, "ResizeObserver loop limit exceeded", "ResizeObserver loop completed with undelivered notifications", /instantSearchSDKJSBridgeClearHighlight/, /DolphinBrowserFillData/, /setIOSParameters/, /_AutofillCallbackHandler/, /play\(\)/, "cannot find the <li> container for the click", /PaymentAutofillConfig/, /Network Error/, /Request aborted/, /^chmln is not defined$/, /^linxImpulseInitialized is not defined$/, /^canceled$/, /srcElement\.tagName\.toUpperCase/, /addEmojiButtons/, /addChip/, /must be a DOM node or evented object./],
denyUrls: [/extensions\//i, /^chrome:\/\//i, /^chrome-extension:\/\//i],
normalizeDepth: 5,
release: Qe,
autoSessionTracking: !1,
attachProps: !0,
transport: P._,
stackParser: k.lG,
integrations: [...C.xg, new L.U],
tracesSampleRate: 1,
beforeSend(e, t) {
const s = t.originalException || t.syntheticException
, r = JSON.stringify(t);
return "silent" === (null == s ? void 0 : s.message) || /loading(?: css)* chunk .* failed./i.test(null == s ? void 0 : s.message) || "Timeout" === s || r.indexOf("Object.seal") > -1 || document.documentMode || r.indexOf("null is not an object (evaluating 'e.scrollTop')") > -1 || "Non-Error exception captured with keys: config, data, headers, request, status" === n()(e, "exception.values[0].value") || /classList[\s\S]*?addClass[\s\S]*?videojs-contrib-eme/.test(null == s ? void 0 : s.stack) ? null : "true" === {
NODE_ENV: "production",
VUE_APP_SENTRY_DSN: "https://[email protected]/3",
VUE_APP_SENTRY_STREAMS_DSN: "https://[email protected]/4",
VUE_APP_TEXTS_DOMAIN: "https://texts.onlyfans.com",
VUE_APP_API: "onlyfans.com",
VUE_APP_COOKIE_DOMIAN: "onlyfans.com",
VUE_APP_WS: "wss://ws2.onlyfans.com",
VUE_APP_STATIC: "https://static2.onlyfans.com",
VUE_APP_STATIC_PATH: "/static/prod/f/202410251315-8cb2352710",
VUE_APP_STAGE: "live",
VUE_APP_SENTRY_URL: "https://bug2.onlyfans.com/",
VUE_APP_CF_BEACON_TOKEN: "22ecd367a5d548f49eb3609ef0cb83de",
VUE_APP_HASH_REQUEST_URL: "https://cdn2.onlyfans.com/hash/",
VUE_APP_INIT_URL: "https://texts.onlyfans.com/init.json",
VUE_APP_REVISION: "202410251315-8cb2352710",
BASE_URL: "https://static2.onlyfans.com/static/prod/f/202410251315-8cb2352710/"
}.VUE_APP_DEBUG ? (console.error(s),
null) : e
}
}),
T.PN((e => {
e.setTag("domain", "onlyfans.com")
}
)),
window.SentryStreams = new M.YZ(new _.y({
Vue: l.default,
environment: "live",
dsn: "https://[email protected]/4",
ignoreErrors: [/Function.seal/, /Object.seal/, "ResizeObserver loop limit exceeded"],
normalizeDepth: 5,
release: Qe,
transport: P._,
stackParser: k.lG,
attachProps: !0,
integrations: [...C.xg, new L.U],
beforeSend(e, t) {
return "true" === {
NODE_ENV: "production",
VUE_APP_SENTRY_DSN: "https://[email protected]/3",
VUE_APP_SENTRY_STREAMS_DSN: "https://[email protected]/4",
VUE_APP_TEXTS_DOMAIN: "https://texts.onlyfans.com",
VUE_APP_API: "onlyfans.com",
VUE_APP_COOKIE_DOMIAN: "onlyfans.com",
VUE_APP_WS: "wss://ws2.onlyfans.com",
VUE_APP_STATIC: "https://static2.onlyfans.com",
VUE_APP_STATIC_PATH: "/static/prod/f/202410251315-8cb2352710",
VUE_APP_STAGE: "live",
VUE_APP_SENTRY_URL: "https://bug2.onlyfans.com/",
VUE_APP_CF_BEACON_TOKEN: "22ecd367a5d548f49eb3609ef0cb83de",
VUE_APP_HASH_REQUEST_URL: "https://cdn2.onlyfans.com/hash/",
VUE_APP_INIT_URL: "https://texts.onlyfans.com/init.json",
VUE_APP_REVISION: "202410251315-8cb2352710",
BASE_URL: "https://static2.onlyfans.com/static/prod/f/202410251315-8cb2352710/"
}.VUE_APP_DEBUG ? (console.error(t.originalException || t.syntheticException),
null) : e
}
})),
SentryStreams.configureScope((e => {
e.setTag("domain", "onlyfans.com")
}
)),
Date.prototype.toISOString || function() {
function e(e) {
return e < 10 ? `0${e}` : e
}
Date.prototype.toISOString = () => `${this.getUTCFullYear()}-${e(this.getUTCMonth() + 1)}-${e(this.getUTCDate())}T${e(this.getUTCHours())}:${e(this.getUTCMinutes())}:${e(this.getUTCSeconds())}.${(this.getUTCMilliseconds() / 1e3).toFixed(3).slice(2, 5)}Z`
}();
const {NODE_ENV: Je, VUE_APP_STATIC_PATH: We} = {
NODE_ENV: "production",
VUE_APP_STATIC_PATH: "/static/prod/f/202410251315-8cb2352710"
};
window.publicPath = "production" === Je ? `${We}/` : "/";
var Ye = new l.default({
router: w.A,
store: I.A,
i18n: Ze,
vuetify: Re.A,
render: e => e(v)
}).$mount("#app")
},
13037: function(e, t, s) {
"use strict";
s.d(t, {
s: function() {
return i
}
});
var r = s(962953)
, a = s.n(r)
, n = s(485891);
const i = (e, t) => {
var s, r;
const a = (null == t ? void 0 : t.arg) || (null == t || null === (s = t.value) || void 0 === s ? void 0 : s.icon)
, i = Boolean(a);
if (!i && e.classList.contains("g-icon"))
return;
const o = a || e.getAttribute("class");
if (o || e.classList.add("g-icon"),
!o || e.dataset.iconName === o)
return;
e.innerHTML = "",
e.dataset.iconName = o;
const c = e.getAttribute("height") || ""
, d = e.getAttribute("width") || "";
let l = "";
if (c && (l += `height: ${c}px;`),
d && (l += `width:${d}px; flex: 0 0 ${d}px;`),
l && e.setAttribute("style", l),
e.setAttribute("aria-hidden", !0),
e.classList.add("g-icon"),
!i) {
var u;
e.classList.remove(o);
const t = undefined
, s = ((null === (u = e.getAttribute("extra-class")) || void 0 === u ? void 0 : u.split(" ")) || []).filter(Boolean);
s.length && e.classList.add(...s)
}
const m = `${n.u}${o}`
, f = (null == t || null === (r = t.value) || void 0 === r ? void 0 : r.color) || e.getAttribute("fill")
, h = document.createElementNS("http://www.w3.org/2000/svg", "use");
m && (h.setAttribute("href", m),
h.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", m)),
f && h.setAttribute("fill", f),
e.appendChild(h)
}
;
t.A = {
install(e) {
const t = {
bind(e, t) {
i(e, t)
},
componentUpdated(e, t) {
i(e, t)
}
};
e.directive("svg-sprite", t)
}
}
},
628294: function(e, t, s) {
"use strict";
var r = s(885471)
, a = s(836963)
, n = s(156809);
r.default.use(a.A),
r.default.directive("click-outside", n.i);
const i = {
theme: {
disable: !0
}
};
t.A = new a.A(i)
},
750949: function(e, t) {
"use strict";
const s = {
QST: "QST",
DAC7: "DAC7",
BANKING: "Banking",
QST_EDIT: "QSTEdit",
DAC7_EDIT: "DAC7Edit",
BANKING_SUPPORT: "BankingSupport"
};
t.A = s
},
809158: function(e, t) {
"use strict";
const s = {
VAULT: "MediaVault",
VAULT_LIST: "VaultLists",
VAULT_ITEM: "VaultMedia"
};
t.A = s
},
893109: function(e, t) {
"use strict";
const s = {
POST_LABEL: "PostLabel"
};
t.A = s
},
600958: function(e, t, s) {
"use strict";
s.d(t, {
A: function() {
return r
},
N: function() {
return a
}
});
const r = {
PROFILE: "Profile",
PROFILE_LABEL: "ProfileLabel",
PROFILE_INNER: "ProfileInner",
PROFILE_SEARCH: "ProfileSearch"
}
, a = "[a-z0-9][a-z0-9\\._\\-]+"
},
622479: function(e, t) {
"use strict";
const s = {
FEED: "Feed",
POST: "Post",
SEARCH: "Search",
BLURRED: "Blurred",
PURCHASED: "Purchased",
TAGS_REQUIRED: "TagsRequired"
};
t.A = s
},
534543: function(e, t, s) {
"use strict";
s.d(t, {
A: function() {
return zr
}
});
var r = s(956449)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(944114)
, c = s(962953)
, d = s(885471)
, l = s(440173)
, u = s(927324)
, m = s.n(u)
, f = s(414415)
, h = s(441153)
, p = s(202600)
, g = s(351037)
, y = s(194490);
const S = undefined;
var v = e => {
const t = e.matched.slice().reverse().find((e => e.meta && e.meta.metaTags));
Array.from(document.querySelectorAll("[data-page-meta]")).map((e => e.parentNode.removeChild(e))),
t && t.meta.metaTags.map((e => {
const t = document.createElement("meta");
return Object.keys(e).forEach((s => {
t.setAttribute(s, e[s])
}
)),
t.setAttribute("data-page-meta", ""),
t
}
)).forEach((e => document.head.appendChild(e)))
}
;
const w = undefined
, I = undefined;
var b = [{
path: "/my/notifications",
name: "Notifications",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(61768), s.e(71766), s.e(25582), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(42019), s.e(10246), s.e(432), s.e(40664), s.e(18798), s.e(10967), s.e(48057), s.e(68772), s.e(75579), s.e(25755), s.e(38444), s.e(68845), s.e(76898), s.e(86932), s.e(19974), s.e(36252), s.e(27977), s.e(12576), s.e(77009)]).then(s.bind(s, 81855)),
meta: {
requiresAuth: !0
},
children: [{
path: ":type",
name: "NotificationsByType"
}]
}], A = s(644781), P;
const k = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(54582), s.e(53494), s.e(74197), s.e(35363), s.e(15364), s.e(22939), s.e(82032), s.e(70781), s.e(75923), s.e(21254)]).then(s.bind(s, 590947))
, C = undefined;
var L = [{
path: ":id(\\d+|archived|private_archived)/:postType(photos|videos|audios)?",
name: s(893109).A.POST_LABEL,
component: k,
meta: {
requiresPerformer: !0
}
}];
const T = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(42019), s.e(54582), s.e(10246), s.e(432), s.e(54675), s.e(75099), s.e(50286), s.e(72721), s.e(48384), s.e(89787), s.e(39232), s.e(59721), s.e(47500), s.e(93032)]).then(s.bind(s, 19327))
, M = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(54582), s.e(53494), s.e(74197), s.e(35363), s.e(15364), s.e(22939), s.e(82032), s.e(70781), s.e(89042)]).then(s.bind(s, 640621))
, _ = undefined;
var $ = [{
path: "/my/collections",
name: "Collections",
redirect: {
name: "CollectionUserLists"
}
}, {
path: "/my/collections/user-lists",
name: "CollectionUserLists",
component: T,
meta: {
requiresAuth: !0
},
children: [...A.qn, ...A.Wn, ...A.w]
}, {
path: "/my/collections/bookmarks",
name: "CollectionBookmarks",
component: T,
meta: {
requiresAuth: !0
},
children: [{
path: ":id/:postType?",
name: "BookmarkPosts",
component: M
}]
}, {
path: "/my/collections/post-labels",
name: "CollectionPostLabels",
component: T,
meta: {
requiresAuth: !0,
requiresPerformer: !0
},
children: [...L]
}];
const E = undefined;
var V = [{
path: "/my/referrals",
name: "Referrals",
redirect: e => {
const {type: t} = e.query
, s = {
name: "StatisticsStatementsReferrals",
query: {}
};
return "users" === t && (s.name = "StatisticsStatementsReferralUsers"),
"creators" === t && (s.name = "StatisticsStatementsReferralCreators"),
s
}
}]
, D = s(809158);
const U = () => Promise.all([s.e(10908), s.e(61594), s.e(13956), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(54582), s.e(73245), s.e(54675), s.e(42095), s.e(80978)]).then(s.bind(s, 942095))
, O = () => Promise.all([s.e(10908), s.e(61594), s.e(13956), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(42019), s.e(54582), s.e(10246), s.e(432), s.e(73245), s.e(54675), s.e(75099), s.e(50286), s.e(42095), s.e(60629), s.e(53689)]).then(s.bind(s, 960629))
, R = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(14418), s.e(18458), s.e(41404), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(9154), s.e(53494), s.e(74197), s.e(54675), s.e(75099), s.e(22950), s.e(49094), s.e(52367), s.e(63462), s.e(34109), s.e(73701), s.e(13501)]).then(s.bind(s, 43980))
, F = undefined;
var B = [{
path: "/my/vault",
name: D.A.VAULT,
component: O,
meta: {
requiresPerformer: !0
},
children: [{
path: "list/:list(\\d+|all)",
name: D.A.VAULT_LIST,
component: U
}]
}, {
path: "/my/vault/media/:mediaId(\\d+)",
name: D.A.VAULT_ITEM,
component: R
}]
, q = s(600958);
const x = undefined
, j = undefined
, N = undefined
, X = undefined;
var H = [{
path: "/action/restore_access_confirm",
name: "RestoreAccess",
component: () => Promise.all([s.e(10908), s.e(47516)]).then(s.bind(s, 897207))
}, {
path: "/action/email/:emailType/:emailCode",
name: "ConfirmEmail",
component: () => Promise.all([s.e(10908), s.e(95128)]).then(s.bind(s, 344135))
}, {
path: "/action/:trialType(trial|subscribe)/:code",
name: "Trial",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(42019), s.e(60661), s.e(54925), s.e(20790), s.e(35363), s.e(15364), s.e(22939), s.e(82032), s.e(70781), s.e(7843), s.e(339), s.e(80423), s.e(40304), s.e(65558), s.e(13054), s.e(34968), s.e(74089), s.e(34987), s.e(80875), s.e(63766), s.e(95336), s.e(54e3), s.e(86994), s.e(39093), s.e(92300), s.e(40958), s.e(23600), s.e(40919), s.e(69475), s.e(89827), s.e(55423), s.e(12986), s.e(42300), s.e(43667), s.e(99399), s.e(37145), s.e(49610), s.e(3173)]).then(s.bind(s, 702806))
}, {
path: `/:userId(${q.N})/:trialType(trial|subscribe)/:code`,
redirect: e => `/action/${e.params.trialType}/${e.params.code}`
}];
const G = undefined
, Z = undefined
, Q = undefined;
var J = [{
path: "/queue",
redirect: "/my/queue"
}, {
path: "/my/schedule_message",
redirect: "/my/queue"
}, {
path: "/my/queue/:date?",
name: "MyQueue",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(61768), s.e(71766), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(60661), s.e(54925), s.e(20790), s.e(36728), s.e(99200), s.e(26233), s.e(24758), s.e(8343), s.e(40985), s.e(94181), s.e(1522), s.e(80121), s.e(726), s.e(70602), s.e(89091), s.e(89878), s.e(66926), s.e(74234), s.e(26522), s.e(5886)]).then(s.bind(s, 626117)),
meta: {
requiresPerformer: !0
}
}, {
path: "/saved-for-later",
name: "SavedForLater",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(61768), s.e(71766), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(60661), s.e(54925), s.e(20790), s.e(99200), s.e(26233), s.e(24758), s.e(8343), s.e(40985), s.e(94181), s.e(1522), s.e(80121), s.e(726), s.e(70602), s.e(89091), s.e(89878), s.e(66926), s.e(74234), s.e(43553)]).then(s.bind(s, 427382)),
meta: {
requiresPerformer: !0
}
}]
, W = s(622479)
, Y = s(420635);
const z = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(54582), s.e(53494), s.e(54675), s.e(75099), s.e(68181), s.e(97536), s.e(14785)]).then(s.bind(s, 752119))
, K = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(42019), s.e(60661), s.e(54925), s.e(20790), s.e(35363), s.e(15364), s.e(22939), s.e(82032), s.e(70781), s.e(7843), s.e(339), s.e(80423), s.e(40304), s.e(65558), s.e(13054), s.e(34968), s.e(74089), s.e(34987), s.e(80875), s.e(63766), s.e(95336), s.e(54e3), s.e(86994), s.e(39093), s.e(92300), s.e(40958), s.e(23600), s.e(40919), s.e(69475), s.e(89827), s.e(55423), s.e(12986), s.e(42300), s.e(43667), s.e(99399), s.e(37145), s.e(49610), s.e(3173)]).then(s.bind(s, 702806))
, ee = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(54582), s.e(9154), s.e(53494), s.e(74197), s.e(74418), s.e(13339), s.e(86092), s.e(49445), s.e(38390), s.e(99295), s.e(94026), s.e(65365), s.e(52991), s.e(73110)]).then(s.bind(s, 366142))
, te = () => Promise.all([s.e(10908), s.e(13956), s.e(64275), s.e(39849)]).then(s.bind(s, 743441))
, se = () => s.e(81779).then(s.bind(s, 524925))
, re = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(61768), s.e(71766), s.e(25582), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(9154), s.e(86607), s.e(34830), s.e(58818), s.e(44099)]).then(s.bind(s, 378036))
, ae = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(54582), s.e(9154), s.e(53494), s.e(35363), s.e(15364), s.e(22939), s.e(82032), s.e(70781), s.e(7059), s.e(47320), s.e(19959), s.e(80883), s.e(31148), s.e(15903), s.e(91063)]).then(s.bind(s, 451237))
, ne = undefined
, ie = undefined
, oe = undefined
, ce = undefined
, de = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(5016), s.e(16865)]).then(s.bind(s, 973939))
, le = () => Promise.all([s.e(10908), s.e(61594), s.e(13956), s.e(21893), s.e(63324)]).then(s.bind(s, 546050))
, ue = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(61768), s.e(71766), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(60661), s.e(54925), s.e(20790), s.e(81453), s.e(33404), s.e(28170), s.e(36084), s.e(78005), s.e(44350), s.e(45798), s.e(75204), s.e(42329), s.e(10496), s.e(81366), s.e(4980), s.e(93861), s.e(66109), s.e(19851), s.e(91837), s.e(86931), s.e(69247), s.e(55335), s.e(54757), s.e(95884)]).then(s.bind(s, 362792))
, me = undefined;
var fe = [{
path: "/support",
redirect: "/help"
}, {
path: "/faq/:chapter?/:section?/:subsection?",
redirect: "/help/:chapter?/:section?/:subsection?"
}, {
path: "/rileyreid",
redirect: "/rileyreidx3"
}, {
path: "/partners",
redirect: "/help/3/22/90"
}, {
path: "/referrals",
redirect: "/help/3/22/90"
}, {
path: "/my/notifications/interactions",
redirect: "/my/notifications/commented"
}, {
path: "/my/subscribers/top/:year?/:month?",
redirect: "/my/collections/user-lists/subscribers/top/:year?/:month?"
}, {
path: "/oauth/authenticate",
name: "OAuthAuthenticate",
component: () => Promise.all([s.e(10908), s.e(10240)]).then(s.bind(s, 683657))
}, {
path: "/report_abuse/:type(post|user|story|message|stream)/:id(\\d+)/:chatId(\\d+)?",
name: "ReportAbuse",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(88647), s.e(16538), s.e(15583), s.e(54936)]).then(s.bind(s, 915173)),
meta: {
requiresAuth: !0
}
}, {
path: "/report_dmca/:type(post|user|story|message|stream)/:id(\\d+)/:chatId(\\d+)?",
name: "ReportDmca",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(15583), s.e(40739)]).then(s.bind(s, 761260)),
meta: {
requiresAuth: !0
}
}, {
path: "/appeal",
name: "Appeal",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(15583), s.e(52307)]).then(s.bind(s, 352064)),
meta: {}
}, {
path: "/",
name: W.A.FEED,
component: te
}, {
path: "/purchased",
name: W.A.PURCHASED,
component: te,
meta: {
requiresPurchased: !0
}
}, {
path: "/tags-required",
name: W.A.TAGS_REQUIRED,
component: ue
}, {
path: "/blurred",
name: W.A.BLURRED,
component: te,
meta: {
requiresPaidFeed: !0
}
}, {
path: "/closefriends",
redirect: "/"
}, {
path: "/posts/create",
name: "PostsCreate",
component: te,
meta: {
requiresAuth: !0
}
}, {
path: "/posts/edit/:postId(\\d+)",
name: "PostsEdit",
component: te,
meta: {
requiresAuth: !0
}
}, {
path: "/search/users/:q?",
redirect: e => ({
path: "/search",
query: {
type: "users",
q: e.params.q
}
})
}, {
path: "/search",
name: W.A.SEARCH,
component: re
}, {
path: `/:userId(${q.N})/search`,
redirect: e => `/${e.params.userId}/search/posts`
}, {
path: `/:userId(${q.N})/search/:postType(posts|media|photos|videos|audios|streams)/:labelId(\\d+|archived|private_archived)?`,
name: q.A.PROFILE_SEARCH,
component: ae
}, {
path: "/my/profile",
name: "ProfileAlias",
component: K,
meta: {
title: "profilePageTitle",
requiresAuth: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: "/my/*",
name: "MyError",
component: se
}, {
path: `/message/:postId(\\d+)/:userId(${q.N})`,
name: "MessagePage",
component: ee
}, {
path: `/:userId(${q.N})/c:campaignCode(\\d+)`,
name: "ProfileCampaign",
component: K,
meta: {
title: "profilePageTitle",
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: `/:userId(${q.N})/nft`,
name: "NftGallery",
component: le,
meta: {
requiresAuth: !0
}
}, {
path: `/:userId(${q.N})/nfts`,
redirect: e => `/${e.params.userId}/nft`,
meta: {
requiresAuth: !0
}
}, {
path: `/:userId(${q.N})/friends`,
name: "ProfileFriends",
component: z,
meta: {
title: "ProfileFriends",
requiresAuth: !0
}
}, {
path: `/:userId(${q.N})`,
name: q.A.PROFILE,
component: K,
children: [{
path: ":postType(media|photos|videos|audios|likes|streams|upcoming-streams)",
name: q.A.PROFILE_INNER,
meta: {
title: "profilePageTitle"
}
}, {
path: ":labelId(\\d+|archived|private_archived)",
redirect: "/:userId"
}, {
path: "medias",
redirect: "media"
}, {
path: "qr",
name: "ProfileQR"
}],
meta: {
title: "profilePageTitle",
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: `/:postId(\\d+)/:userId(${q.N})/likes`,
name: "PostLikes",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: `/:postId(\\d+)/:userId(${q.N})/tips`,
name: "PostTips",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: `/:postId(\\d+)/:userId(${q.N})/buyers`,
name: "PostBuyers",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: `/:postId(\\d+)/:userId(${q.N})/vote/:optionId?`,
name: "PostVoters",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: "/:queueId(\\d+)/buyers",
name: "QueueBuyers",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: "/:campaignId(\\d+)/claimers",
name: "CampaignClaimers",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: "/:streamId(\\d+)/stream/viewers",
name: "StreamViewers",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: "/:streamId(\\d+)/stream/donators",
name: "StreamDonators",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: "/:storyId(\\d+)/story/viewers",
name: "StoryViewers",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: "/:storyId(\\d+)/story/donators",
name: "StoryTips",
component: de,
meta: {
requiresPerformer: !0
}
}, {
path: `/:postId(\\d+)/:userId(${q.N})`,
name: W.A.POST,
component: ee
}, {
path: "*",
name: "Error",
component: se
}];
const he = undefined
, pe = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(25582), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(42019), s.e(7417), s.e(72721), s.e(48184), s.e(35553), s.e(32537), s.e(70760)]).then(s.bind(s, 737726))
, ge = undefined
, ye = undefined
, Se = undefined
, ve = undefined
, we = undefined
, Ie = undefined;
var be = [{
path: "/my/chats",
component: () => Promise.all([s.e(10908), s.e(19772)]).then(s.bind(s, 668056)),
meta: {
requiresAuth: !0,
prefetch: !0
},
children: [{
path: "",
name: "Chats",
component: pe
}, {
path: "chat/:chatId",
component: pe,
children: [{
path: "",
name: "Chat",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(14418), s.e(18458), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(74197), s.e(7417), s.e(40007), s.e(7068), s.e(14024), s.e(79237), s.e(42772), s.e(22678), s.e(31731)]).then(s.bind(s, 557711))
}, {
path: "gallery",
name: "Gallery",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(74197), s.e(7068), s.e(52367), s.e(30953)]).then(s.bind(s, 660161))
}, {
path: "pinned",
name: "PinnedMessages",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(14418), s.e(18458), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(74197), s.e(7417), s.e(40007), s.e(7068), s.e(14024), s.e(79237), s.e(26996), s.e(32307)]).then(s.bind(s, 308167))
}]
}, {
path: "send",
name: "ChatsSend",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(16538), s.e(58633), s.e(25582), s.e(42019), s.e(36728), s.e(49994), s.e(73245), s.e(7417), s.e(72721), s.e(45095), s.e(94399), s.e(48434), s.e(37747)]).then(s.bind(s, 131651)),
meta: {
requiresCanChat: !0
}
}]
}, {
path: "/my/mass_chats",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(13956), s.e(9343), s.e(21893), s.e(88878), s.e(5016), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(54582), s.e(35553), s.e(52934)]).then(s.bind(s, 657904)),
name: "MassMessagesStats",
meta: {
requiresPerformer: !0
}
}];
const Ae = undefined
, Pe = undefined
, ke = undefined
, Ce = undefined
, Le = undefined
, Te = undefined
, Me = undefined
, _e = undefined
, $e = undefined
, Ee = undefined
, Ve = undefined
, De = undefined
, Ue = undefined
, Oe = undefined
, Re = undefined
, Fe = undefined
, Be = undefined
, qe = undefined
, xe = undefined
, je = undefined
, Ne = undefined
, Xe = undefined
, He = undefined
, Ge = undefined
, Ze = undefined
, Qe = undefined
, Je = undefined
, We = undefined
, Ye = undefined
, ze = undefined
, Ke = undefined
, et = undefined
, tt = undefined
, st = undefined
, rt = undefined
, at = undefined
, nt = undefined
, it = undefined
, ot = undefined
, ct = undefined
, dt = undefined
, lt = undefined
, ut = undefined
, mt = undefined
, ft = undefined
, ht = undefined
, pt = undefined
, gt = undefined
, yt = undefined
, St = undefined;
var vt = [{
path: "/my/settings",
name: "Settings",
component: () => Promise.all([s.e(10908), s.e(13956), s.e(28284)]).then(s.bind(s, 512510)),
meta: {
requiresAuth: !0
},
children: [{
path: "profile",
name: "SettingsProfile",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(14418), s.e(19930), s.e(49322), s.e(29600)]).then(s.bind(s, 1098))
}, {
path: "account",
name: "SettingsAdvanced",
component: () => Promise.all([s.e(10908), s.e(55843)]).then(s.bind(s, 574801))
}, {
path: "advanced",
redirect: {
name: "SettingsAdvanced"
}
}, {
path: "account/username",
name: "SettingsUsername",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(54008)]).then(s.bind(s, 541769))
}, {
path: "account/email",
name: "SettingsEmail",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(3024), s.e(65927)]).then(s.bind(s, 903024)),
meta: {
isPage: !0
}
}, {
path: "account/phone",
name: "SettingsPhone",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(15583), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(10188), s.e(44183)]).then(s.bind(s, 184784))
}, {
path: "account/twitter",
name: "SettingsTwitter",
component: () => Promise.all([s.e(10908), s.e(35262)]).then(s.bind(s, 183505))
}, {
path: "account/google",
name: "SettingsGoogle",
component: () => Promise.all([s.e(10908), s.e(7328)]).then(s.bind(s, 943212))
}, {
path: "account/connected",
name: "SettingsConnected",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(15583), s.e(97659), s.e(92927)]).then(s.bind(s, 112459)),
meta: {
requiresConnectedAccount: !0
}
}, {
path: "account/password",
name: "SettingsPassword",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(15583), s.e(3024), s.e(97659), s.e(82194)]).then(s.bind(s, 58511))
}, {
path: "account/sessions",
name: "SettingsSessions",
component: () => Promise.all([s.e(88878), s.e(41210)]).then(s.bind(s, 205489))
}, {
path: "account/2fa",
name: "Settings2fa",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(15583), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(87583), s.e(10188), s.e(60122), s.e(39372)]).then(s.bind(s, 860122))
}, {
path: "account/passwordless-sign-in",
name: "PasswordLessSignIn",
component: () => Promise.all([s.e(10908), s.e(17918)]).then(s.bind(s, 409745))
}, {
path: "account/delete",
name: "SettingsDelete",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(88878), s.e(57060)]).then(s.bind(s, 561521))
}, {
path: "messaging",
name: "SettingsMessaging",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(21893), s.e(16538), s.e(25582), s.e(14418), s.e(18458), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(14024), s.e(84987)]).then(s.bind(s, 746243)),
meta: {
requiresPerformer: !0
}
}, {
path: "notifications",
name: "SettingsNotifications",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(15583), s.e(3024), s.e(52891)]).then(s.bind(s, 213859))
}, {
path: "notifications/webpush",
name: "SettingsNotificationsWebPush",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(16538), s.e(15583), s.e(3024), s.e(97659), s.e(39242)]).then(s.bind(s, 180104))
}, {
path: "notifications/email",
name: "SettingsNotificationsEmail",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(3024), s.e(65927)]).then(s.bind(s, 112196))
}, {
path: "notifications/site",
name: "SettingsNotificationsSite",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(15583), s.e(3024), s.e(31033), s.e(25484)]).then(s.bind(s, 339757))
}, {
path: "notifications/toast",
name: "SettingsNotificationsToast",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(15583), s.e(3024), s.e(31033), s.e(92194)]).then(s.bind(s, 949133))
}, {
path: "notifications/sms",
name: "SettingsNotificationsSms",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(15583), s.e(3024), s.e(31033), s.e(79816)]).then(s.bind(s, 336266))
}, {
path: "notifications/telegram",
name: "SettingsNotificationsTelegram",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(15583), s.e(3024), s.e(56176)]).then(s.bind(s, 224603))
}, {
path: "notifications/telegram/link",
name: "SettingsTelegramLink",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(28431), s.e(15583), s.e(3024), s.e(57704), s.e(29601)]).then(s.bind(s, 997229))
}, {
path: "notifications/mentions",
name: "SettingsNotificationsMentions",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(15583), s.e(3024), s.e(1940)]).then(s.bind(s, 24151)),
meta: {
requiresPerformer: !0
}
}, {
path: "security",
name: "SettingsSecurity",
component: () => Promise.all([s.e(10908), s.e(16538), s.e(4827)]).then(s.bind(s, 728701))
}, {
path: "security/block_by_country",
name: "SettingsBlockByCountry",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(75005)]).then(s.bind(s, 231238)),
meta: {
requiresPerformer: !0
}
}, {
path: "security/block_by_ip",
name: "SettingsBlockByIP",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(14610)]).then(s.bind(s, 391264)),
meta: {
requiresPerformer: !0
}
}, {
path: "security/watermarks",
name: "SettingsWatermarks",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(43356)]).then(s.bind(s, 683460)),
meta: {
requiresPerformer: !0
}
}, {
path: "security/reserved_usernames",
name: "SettingsReservedUsernames",
component: () => Promise.all([s.e(9343), s.e(76561)]).then(s.bind(s, 868207)),
meta: {
requiresPerformer: !0
}
}, {
path: "subscription",
name: "SettingsSubscription",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(71766), s.e(9154), s.e(12086)]).then(s.bind(s, 910778))
}, {
path: "fans",
name: "SettingsFans",
component: () => Promise.all([s.e(10908), s.e(16538), s.e(86555)]).then(s.bind(s, 811957)),
meta: {
requiresPerformer: !0
}
}, {
path: "spotify",
name: "SettingsSpotify",
component: () => Promise.all([s.e(10908), s.e(38517)]).then(s.bind(s, 491926)),
meta: {
isPage: !0
}
}, {
path: "spring-store",
name: "SettingsSpringStore",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(80798)]).then(s.bind(s, 772946)),
meta: {
isPage: !0
}
}, {
path: "social-media",
name: "SettingsSocialMedia",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(92128), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(42019), s.e(10246), s.e(432), s.e(93267)]).then(s.bind(s, 367880))
}, {
path: "ethwallet",
name: "SettingsEthWallet",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(7340)]).then(s.bind(s, 429496)),
meta: {
isPage: !0
}
}, {
path: "nft",
name: "SettingsNftAssets",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(25943)]).then(s.bind(s, 108004)),
meta: {
isPage: !0
}
}, {
path: "links",
name: "SettingsThingsILike",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(10246), s.e(432), s.e(9608)]).then(s.bind(s, 358518)),
meta: {
requiresUser: !0
}
}, {
path: "campaign-links",
redirect: {
name: "SettingsTrackingLinks"
}
}, {
path: "tracking-links",
name: "SettingsTrackingLinks",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(88647), s.e(88878), s.e(28431), s.e(5016), s.e(97391)]).then(s.bind(s, 473139)),
meta: {
isPage: !0,
requiresUser: !0
}
}, {
path: "shopify-settings",
name: "SettingsShopify",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(62105)]).then(s.bind(s, 745066)),
meta: {
isPage: !0,
requiresUser: !0,
requiresCanShopify: !0
}
}, {
path: "shopify-products",
name: "SettingsShopifyProducts",
component: () => Promise.all([s.e(10908), s.e(21642)]).then(s.bind(s, 364346)),
meta: {
isPage: !0,
requiresUser: !0,
requiresCanShopify: !0
}
}, {
path: "other",
redirect: "streaming"
}, {
path: "streaming",
name: "SettingsStreaming",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(35467)]).then(s.bind(s, 110100))
}, {
path: "streaming/blocked",
name: "SettingsStreamingBlockedUsers",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(35467)]).then(s.bind(s, 433636))
}, {
path: "story",
name: "SettingsStory",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(21893), s.e(16538), s.e(67396)]).then(s.bind(s, 363444)),
meta: {
requiresCanAddStory: !0
}
}, {
path: "email",
redirect: {
name: "SettingsEmail"
}
}, {
path: "change-email",
redirect: {
name: "SettingsEmail"
}
}, {
path: "helpers",
name: "PerformerHelpers",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(21893), s.e(88647), s.e(88878), s.e(16538), s.e(28431), s.e(25582), s.e(60429), s.e(69139), s.e(31512), s.e(97705)]).then(s.bind(s, 854219))
}, {
path: "spotify/artists",
name: "SpotifyArtists",
component: () => Promise.all([s.e(10908), s.e(16538), s.e(50914)]).then(s.bind(s, 436048))
}, {
path: "spotify/anthem",
name: "SpotifyAnthem",
component: () => Promise.all([s.e(10908), s.e(16538), s.e(88685)]).then(s.bind(s, 36166))
}, {
path: "display",
name: "SettingsDisplay",
component: () => Promise.all([s.e(10908), s.e(16538), s.e(44693)]).then(s.bind(s, 991728))
}, {
path: "display/language",
name: "SettingsLanguage",
component: () => Promise.all([s.e(88647), s.e(47043)]).then(s.bind(s, 179704))
}, {
path: "qrcode",
name: "SettingsQRCode",
component: () => Promise.all([s.e(10908), s.e(16538), s.e(57704), s.e(58117), s.e(27822), s.e(23536), s.e(69474)]).then(s.bind(s, 630143)),
meta: {
requiresPerformer: !0
}
}]
}];
const wt = undefined
, It = undefined
, bt = undefined
, At = undefined
, Pt = () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(77820)]).then(s.bind(s, 2756))
, kt = () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(14418), s.e(19930), s.e(37507), s.e(16956), s.e(82865), s.e(89301), s.e(14762)]).then(s.bind(s, 211892))
, Ct = undefined;
var Lt = [{
path: "/my/payments",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(5693), s.e(13956), s.e(11452), s.e(92128), s.e(88878), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(59274), s.e(22231), s.e(44266), s.e(56767), s.e(303), s.e(59970)]).then(s.bind(s, 423749)),
meta: {
requiresAuth: !0
},
children: [{
path: "",
name: "Payments",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(59274), s.e(87583), s.e(82865), s.e(79193), s.e(31568)]).then(s.bind(s, 617458))
}, {
path: "list",
name: "PaymentsCreditsTransactions",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(5693), s.e(64275), s.e(9343), s.e(92128), s.e(88878), s.e(58633), s.e(36728), s.e(49994), s.e(59274), s.e(76591), s.e(56767), s.e(28876)]).then(s.bind(s, 925842))
}, {
path: "add_card",
name: "PaymentsAddCard",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(15583), s.e(3024), s.e(73245), s.e(47668), s.e(89387)]).then(s.bind(s, 420684)),
meta: {
requiresAuth: !0,
requiresCanAddCard: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT],
ageVerificationRequired: !0
}
}, {
path: "alternative",
name: "PaymentsAlternative",
component: Pt
}, {
path: "alternative/add",
name: "PaymentsAlternativeAdd",
component: kt
}]
}]
, Tt = s(750949);
const Mt = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88878), s.e(14418), s.e(19930), s.e(75068), s.e(49322), s.e(24349)]).then(s.bind(s, 600084))
, _t = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(92128), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(14418), s.e(59274), s.e(19930), s.e(74902), s.e(26556), s.e(37507), s.e(16956), s.e(24823), s.e(82865), s.e(89301), s.e(46502), s.e(33117), s.e(2724), s.e(68851), s.e(30361), s.e(64641), s.e(36185)]).then(s.bind(s, 93340))
, $t = undefined
, Et = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(74902), s.e(26556), s.e(48129)]).then(s.bind(s, 301330))
, Vt = () => Promise.all([s.e(10908), s.e(13956), s.e(43062), s.e(69497)]).then(s.bind(s, 851304))
, Dt = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(82650)]).then(s.bind(s, 981291))
, Ut = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(87425)]).then(s.bind(s, 156748))
, Ot = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(48035)]).then(s.bind(s, 202082))
, Rt = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(16538), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(55886), s.e(44076)]).then(s.bind(s, 512239))
, Ft = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(5775)]).then(s.bind(s, 490530))
, Bt = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(5775)]).then(s.bind(s, 467556))
, qt = () => Promise.all([s.e(10908), s.e(13956), s.e(41404), s.e(30283)]).then(s.bind(s, 274905))
, xt = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(3103)]).then(s.bind(s, 183050))
, jt = () => Promise.all([s.e(10908), s.e(13956), s.e(41404), s.e(30283)]).then(s.bind(s, 245015))
, Nt = () => Promise.all([s.e(10908), s.e(5731)]).then(s.bind(s, 618151))
, Xt = undefined;
var Ht = [{
path: "my/become-a-creator",
component: Mt,
meta: {
requiresAuth: !0
},
children: [{
path: "",
name: "BankingAlias",
component: _t
}]
}, {
path: "/my/banking",
component: Mt,
meta: {
requiresAuth: !0
},
children: [{
path: "",
name: "Banking",
component: _t
}, {
path: "edit",
name: "BankingEdit",
component: _t
}, {
path: "primary",
name: "BankingPrimary",
component: _t,
meta: {
requiresHasStripe: !0
}
}, {
path: "payout_types",
name: "BankingPayoutTypes",
component: () => Promise.all([s.e(10908), s.e(13956), s.e(88647), s.e(69538)]).then(s.bind(s, 276503))
}, {
path: "support",
name: Tt.A.BANKING_SUPPORT,
component: Et
}, {
path: "dac7",
name: Tt.A.DAC7,
component: Bt
}, {
path: "dac7/edit",
name: Tt.A.DAC7_EDIT,
component: Bt,
props: {
isEditMode: !0
}
}, {
path: "qst",
name: Tt.A.QST,
component: Ft
}, {
path: "qst/edit",
name: Tt.A.QST_EDIT,
component: Ft,
props: {
isEditMode: !0
}
}, {
path: "w9",
name: "W9",
component: Rt
}, {
path: "w9_form_address_check",
name: "w9_form_address_check",
component: xt,
meta: {
requiresPerformer: !0
}
}, {
path: "vat",
name: "BankingVat",
component: Vt,
meta: {
isCountryVatNumberCollect: !0,
isVatRequired: !0
}
}, {
path: "vat/change",
name: "BankingVatChange",
component: Dt,
meta: {
isCountryVatNumberCollect: !0
}
}, {
path: "vat/add-documents",
name: "BankingVatAddDocuments",
component: Ut,
meta: {
isCountryVatNumberCollect: !0,
isVatRequired: !0
}
}, {
path: "vat/create-document",
name: "BankingVatCreateDocument",
component: Ot,
meta: {
isCountryVatNumberCollect: !0,
isVatRequired: !0
}
}, {
path: ":section",
name: "BankingSection",
redirect: {
name: "BankingPrimary"
}
}]
}, {
path: "/my/verify",
name: "VerifyPage",
component: qt,
meta: {
requiresAuth: !0
}
}, {
path: "/my/verification",
name: "VerificationPage",
component: jt,
meta: {
requiresAuth: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV]
}
}, {
path: "/my/yoti/verification/:verificationId/:faceId?",
name: "YotiConsentPage",
component: Nt,
meta: {
hideHeader: !0,
hideHelperBtn: !0,
staticContainer: !0,
type: "page",
requiresAuth: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}]
, Gt = s(725440);
const Zt = () => Promise.all([s.e(10908), s.e(13956), s.e(43295), s.e(74902), s.e(85009)]).then(s.bind(s, 247227))
, Qt = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(74902), s.e(26556), s.e(16046)]).then(s.bind(s, 559192))
, Jt = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(54675), s.e(75099), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(13268), s.e(12122), s.e(44606), s.e(21277), s.e(69920), s.e(55781)]).then(s.bind(s, 521082))
, Wt = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(54675), s.e(75099), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(13268), s.e(12122), s.e(44606), s.e(21277), s.e(69920), s.e(55781)]).then(s.bind(s, 609452))
, Yt = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(54675), s.e(75099), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(13268), s.e(12122), s.e(44606), s.e(21277), s.e(69920), s.e(55781)]).then(s.bind(s, 608197))
, zt = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(54675), s.e(75099), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(13268), s.e(12122), s.e(44606), s.e(21277), s.e(69920), s.e(55781)]).then(s.bind(s, 475791))
, Kt = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(54675), s.e(75099), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(13268), s.e(12122), s.e(44606), s.e(21277), s.e(69920), s.e(55781)]).then(s.bind(s, 315880))
, es = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(15583), s.e(97659), s.e(74902), s.e(9179), s.e(13268), s.e(21319), s.e(29131), s.e(31306)]).then(s.bind(s, 719813))
, ts = () => s.e(35549).then(s.bind(s, 600591))
, ss = () => Promise.all([s.e(13956), s.e(43295), s.e(62337)]).then(s.bind(s, 975574))
, rs = () => Promise.all([s.e(13956), s.e(43295), s.e(20631)]).then(s.bind(s, 142435))
, as = () => Promise.all([s.e(13956), s.e(43295), s.e(49186)]).then(s.bind(s, 496596))
, ns = () => Promise.all([s.e(10908), s.e(76265)]).then(s.bind(s, 304962))
, is = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(13956), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(43295), s.e(85128), s.e(87761), s.e(52426), s.e(71412), s.e(13268), s.e(12122), s.e(26910)]).then(s.bind(s, 846447))
, os = () => s.e(95331).then(s.bind(s, 355464))
, cs = () => Promise.all([s.e(43295), s.e(99825), s.e(76848), s.e(83813), s.e(45744)]).then(s.bind(s, 826855))
, ds = () => Promise.all([s.e(43295), s.e(31668)]).then(s.bind(s, 408994))
, ls = () => Promise.all([s.e(43295), s.e(17284)]).then(s.bind(s, 769381))
, us = () => s.e(11335).then(s.bind(s, 136595))
, ms = () => s.e(4881).then(s.bind(s, 178185))
, fs = () => s.e(44671).then(s.bind(s, 530556))
, hs = () => s.e(43795).then(s.bind(s, 108530))
, ps = () => s.e(99136).then(s.bind(s, 938311))
, gs = () => s.e(31866).then(s.bind(s, 137424))
, ys = () => s.e(62735).then(s.bind(s, 430190))
, Ss = () => s.e(70478).then(s.bind(s, 445154))
, vs = () => Promise.all([s.e(43295), s.e(95242), s.e(71393), s.e(36206), s.e(66183), s.e(20518)]).then(s.bind(s, 683664))
, ws = () => Promise.all([s.e(43295), s.e(95242), s.e(71393), s.e(36206), s.e(66183), s.e(20518)]).then(s.bind(s, 204410))
, Is = () => Promise.all([s.e(43295), s.e(95242), s.e(71393), s.e(36206), s.e(66183), s.e(20518)]).then(s.bind(s, 596358))
, bs = () => Promise.all([s.e(43295), s.e(95242), s.e(71393), s.e(36206), s.e(66183), s.e(20518)]).then(s.bind(s, 659811))
, As = () => Promise.all([s.e(43295), s.e(95242), s.e(71393), s.e(36206), s.e(66183), s.e(20518)]).then(s.bind(s, 539363))
, Ps = () => Promise.all([s.e(43295), s.e(95242), s.e(71393), s.e(36206), s.e(66183), s.e(20518)]).then(s.bind(s, 241147))
, ks = () => Promise.all([s.e(43295), s.e(54620)]).then(s.bind(s, 730337))
, Cs = () => Promise.all([s.e(10908), s.e(13956), s.e(43295), s.e(81447)]).then(s.bind(s, 143088))
, Ls = () => Promise.all([s.e(43295), s.e(96168)]).then(s.bind(s, 60900))
, Ts = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(14398)]).then(s.bind(s, 701377))
, Ms = () => Promise.all([s.e(13956), s.e(43295), s.e(77931)]).then(s.bind(s, 449823))
, _s = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(99730), s.e(29234)]).then(s.bind(s, 843810))
, $s = () => Promise.all([s.e(10908), s.e(64275), s.e(88647), s.e(17966), s.e(78865)]).then(s.bind(s, 504423))
, Es = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(75577)]).then(s.bind(s, 591074))
, Vs = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(37850)]).then(s.bind(s, 790567))
, Ds = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(52224)]).then(s.bind(s, 656098))
, Us = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(52224)]).then(s.bind(s, 836667))
, Os = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(66179)]).then(s.bind(s, 985769))
, Rs = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(67057), s.e(49150), s.e(97531)]).then(s.bind(s, 967107))
, Fs = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(67057), s.e(49150), s.e(97531)]).then(s.bind(s, 540934))
, Bs = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(63998), s.e(3971)]).then(s.bind(s, 150897))
, qs = () => Promise.all([s.e(13956), s.e(43295), s.e(32365)]).then(s.bind(s, 40593))
, xs = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(52224)]).then(s.bind(s, 653581))
, js = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(52224)]).then(s.bind(s, 616795))
, Ns = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(52224)]).then(s.bind(s, 75931))
, Xs = () => Promise.all([s.e(13956), s.e(43295), s.e(95242), s.e(52224)]).then(s.bind(s, 62709))
, Hs = undefined;
var Gs = [{
path: "/help/:chapter?/:section?/:subsection?",
component: es,
name: "faq",
meta: {
hasStaticFooter: !0,
staticContainer: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID],
hideHelperBtn: !0
}
}, {
path: "/dmca",
component: Zt,
name: "dmca",
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: "/store",
beforeEnter() {
window.location.replace("https://store.onlyfans.com")
}
}, {
path: "/antitraffickingstatement",
component: ss,
name: "statement",
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID],
metaTags: [{
name: "robots",
content: "noindex, nofollow"
}]
}
}, {
path: "/transparency",
component: os,
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0
},
children: [{
path: "",
component: ds,
name: "transparencyReportList"
}, {
path: ":year/:month",
component: cs,
name: "transparencyReportPage"
}, {
path: ":month",
redirect: e => {
try {
const {month: t} = e.params
, s = +t.replace(/\D+/g, "")
, r = undefined;
return {
name: "transparencyReportPage",
params: {
year: s,
month: new Date(`${s}/${t.replace(/\d+/g, "")}`).getMonth() + 1
}
}
} catch (t) {
return {
name: "transparencyReportList"
}
}
}
}]
}, {
path: "/transparency-center",
component: ls,
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0
},
children: [{
path: "",
name: "transparencyReportCenter",
component: us,
meta: {
title: "OnlyFans Safety & Transparency Center"
}
}, {
path: "verification",
component: ms,
name: "transparencyReportVerification",
meta: {
title: "Age & Identity Verification"
}
}, {
path: "assisting",
component: fs,
name: "transparencyReportAssisting",
meta: {
title: "Assisting Law Enforcement"
}
}, {
path: "helping",
component: hs,
name: "transparencyReportHelping",
meta: {
title: "Helping Creators Protect their Copyright"
}
}, {
path: "privacy-until-2024-year",
component: ps,
name: "transparencyReportPrivacy",
meta: {
title: "Respecting Your Privacy"
}
}, {
path: "preventing",
component: gs,
name: "transparencyReportPreventing",
meta: {
title: "Preventing Modern Slavery & Human Trafficking "
}
}, {
path: "commitment",
component: ys,
name: "transparencyReportCommitment",
meta: {
title: "Our Commitment to Safety & Transparency"
}
}, {
path: "safeguarding",
component: Ss,
name: "transparencyReportSafeguarding",
meta: {
title: "Safeguarding Against Money Laundering & Fraud"
}
}, {
path: "tackling",
component: vs,
name: "transparencyReportTackling",
meta: {
title: "Tackling Hate Speech"
}
}, {
path: "consent",
component: ws,
name: "transparencyReportConsent",
meta: {
title: "Ensuring Consent for Intimate Images"
}
}, {
path: "policy",
component: Is,
name: "transparencyReportPolicy",
meta: {
title: "Content moderation policy"
}
}, {
path: "appeals",
component: bs,
name: "transparencyReportAppeals",
meta: {
title: "Appeals policy"
}
}, {
path: "complaints",
component: Ps,
name: "transparencyComplaintsPolicy",
meta: {
title: "Complaints Policy"
}
}]
}, {
path: "/privacy",
component: As,
name: "transparencyReportPrivacy2024",
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0,
hideAlertModal: !0
}
}, {
path: "/fightcsam",
component: ks,
name: "fightcsam",
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0
}
}, {
path: "/license_form",
component: Cs,
name: "license",
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0,
allowScenario: [Y.Z.LOGIN_REQUIRES_WAIT_IV]
}
}, {
path: "/values",
component: Ls,
name: "values",
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0,
allowScenario: [Y.Z.LOGIN_REQUIRES_WAIT_IV]
}
}, {
path: "/compliance",
component: rs,
name: "compliance",
meta: {
hasStaticFooter: !0,
hideHeader: !0,
staticContainer: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID],
metaTags: [{
name: "robots",
content: "noindex, nofollow"
}]
}
}, {
path: "/compliance2",
component: as,
name: "compliance2",
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID],
metaTags: [{
name: "robots",
content: "noindex, nofollow"
}]
}
}, {
path: "/contact",
component: Qt,
name: "Contacts",
meta: {
hasStaticFooter: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: "/contacts",
redirect: "/contact"
}, {
path: "/legalinquiry",
name: "legalinquiry",
meta: {
staticContainer: !0
},
component: Jt
}, {
path: "/legalinquiry/list",
name: "LegalinquiryList",
meta: {
staticContainer: !0
},
component: Wt
}, {
path: "/legalinquiry/create",
name: "LegalinquiryCreate",
meta: {
staticContainer: !0
},
component: Yt
}, {
path: "/legalinquiry/:id",
name: "LegalinquiryReview",
meta: {
staticContainer: !0
},
component: Yt
}, {
path: "/legalinquiry/:id/history",
name: "LegalinquiryHistory",
meta: {
staticContainer: !0
},
component: zt
}, {
path: "/legalinquiry/:id/update/:hash",
name: "LegalinquiryContact",
meta: {
staticContainer: !0
},
component: Kt
}, {
path: "/legalguide",
name: "legalguide",
component: is,
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV]
}
}, {
path: "/banking-help",
component: Zt,
name: "banking-help",
meta: {
hasStaticFooter: !0,
staticContainer: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: "/terms-of-service",
redirect: "/terms"
}, {
path: "/tos",
redirect: "/terms"
}, {
path: "/tosd",
redirect: "/terms"
}, {
path: "/my/tickets/:type?",
component: es,
name: "TicketsPage",
meta: {
hasStaticFooter: !0,
requiresAuth: !0,
staticContainer: !0,
hideHelperBtn: !0
}
}, {
path: "/brand",
component: ts,
name: "Brand",
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0,
allowScenario: [Y.Z.FRAUD_REPAYMENT, Y.Z.LOGIN_REQUIRES_WAIT_IV, Y.Z.FACE_ID]
}
}, {
path: "/gdpr/:id",
component: ns,
name: "DownloadReport",
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0
}
}, {
path: "/privacy-until-2024-year",
name: "PrivacyPage",
component: Ts,
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0,
hideAlertModal: !0
}
}, {
path: "/cookies",
name: "CookiesPage",
component: Ms,
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0
}
}, {
path: "/terms-until-2024-year",
name: "TermsPage",
component: _s,
meta: {
hasStaticFooter: !0,
staticContainer: !0,
hideHeader: !0
}
}, {
path: "/about",
name: "AboutPage",
component: $s,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/contract2021",
name: "Contract2021Page",
component: Es,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/contractnov21",
name: "ContractNov21Page",
component: Vs,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/contract",
name: "Contract2024Page",
component: Ds,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/contract-until-2024-year",
name: "ContractPage",
component: Us,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/uk-vat-policy",
name: "UkVatPolicyPage",
component: xs,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/referral-program-terms",
name: "ReferralProgramTermsPage",
component: js,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/platform-business-regulation-terms",
name: "PlatformBusinessRegulationTermsPage",
component: Ns,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/acceptable-use-policy",
name: "AcceptableUsePolicyPage",
component: Xs,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/terms2020",
name: "Terms2020Page",
component: Os,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/terms2021",
name: "Terms2021Page",
component: Rs,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/terms",
name: "Terms2024Page",
component: Fs,
meta: {
staticContainer: !0,
hasStaticFooter: !0,
hideAlertModal: !0
}
}, {
path: "/termsnov21",
name: "TermsNov21Page",
component: Bs,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/usc2257",
name: "Usc2257Page",
component: qs,
meta: {
staticContainer: !0,
hasStaticFooter: !0
}
}, {
path: "/contract2021.html",
redirect: "/contract2021"
}, {
path: "/terms2021.html",
redirect: "/terms2021"
}];
const Zs = () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(92128), s.e(28431), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(24823), s.e(28140), s.e(34077)]).then(s.bind(s, 621032))
, Qs = undefined
, Js = () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(91724)]).then(s.bind(s, 661431))
, Ws = undefined
, Ys = undefined
, zs = undefined
, Ks = undefined
, er = undefined;
var tr = [{
path: "/my/statements",
component: Zs,
meta: {
requiresPerformer: !0
},
children: [{
path: "",
name: "Statements",
redirect: {
name: "StatementsEarnings"
}
}, {
path: "earnings",
name: "StatementsEarnings",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(834), s.e(62867)]).then(s.bind(s, 241903))
}, {
path: "payouts",
name: "StatementsPayoutRequests",
component: Js,
children: [{
path: "stripe",
name: "StatementsPayoutRequestsStripe",
component: Js
}]
}, {
path: "vat",
name: "StatementsVat",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(75068), s.e(10415)]).then(s.bind(s, 58632)),
meta: {
requiresCountryVatRefundable: !0
}
}, {
path: "referrals",
name: "StatementsReferrals",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(75068), s.e(99444)]).then(s.bind(s, 146947)),
meta: {
requiresReferrerAllowed: !0
}
}]
}, {
path: "/my/statements/support",
name: "StatementsSupport",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(13956), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(58633), s.e(61702), s.e(42796), s.e(71766), s.e(15583), s.e(74902), s.e(26556), s.e(69999)]).then(s.bind(s, 518680)),
meta: {
requiresPerformer: !0
}
}, {
path: "/my/stats",
component: Zs,
meta: {
requiresPerformer: !0
},
children: [{
path: "earnings",
name: "StatsEarnings",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(64275), s.e(58633), s.e(36728), s.e(49994), s.e(16534)]).then(s.bind(s, 360033))
}, {
path: "disputes",
name: "StatsDisputes",
redirect: {
name: "StatisticsStatementsDisputes"
}
}]
}];
const sr = undefined
, rr = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(36728), s.e(49994), s.e(10025), s.e(88107), s.e(62924), s.e(42072), s.e(41727), s.e(76925), s.e(11386), s.e(51805), s.e(8969)]).then(s.bind(s, 994492))
, ar = undefined
, nr = () => Promise.all([s.e(10908), s.e(9343), s.e(92128), s.e(834), s.e(84130)]).then(s.bind(s, 346485))
, ir = () => Promise.all([s.e(10908), s.e(9343), s.e(77348)]).then(s.bind(s, 751553))
, or = undefined
, cr = undefined
, dr = undefined
, lr = undefined
, ur = undefined
, mr = undefined
, fr = undefined
, hr = undefined
, pr = undefined
, gr = undefined
, yr = undefined
, Sr = undefined
, vr = () => Promise.all([s.e(10908), s.e(92128), s.e(38510), s.e(43062), s.e(14692)]).then(s.bind(s, 175936))
, wr = undefined
, Ir = undefined
, br = undefined
, Ar = undefined
, Pr = undefined
, kr = undefined
, Cr = undefined;
var Lr = [{
path: "/my/statistics",
component: () => Promise.all([s.e(10908), s.e(13956), s.e(92128), s.e(24823), s.e(28140), s.e(19538)]).then(s.bind(s, 658626)),
name: "Statistics",
redirect: {
name: "StatisticsStatements"
},
meta: {
requiresPerformer: !0
},
children: [{
path: "overview",
name: "StatisticsOverview",
component: rr,
redirect: {
name: "StatisticsOverviewEarnings"
},
children: [{
path: "earnings",
name: "StatisticsOverviewEarnings",
component: rr
}, {
path: "streaks",
name: "StatisticsOverviewStreaks",
component: rr
}, {
path: "summary",
name: "StatisticsOverviewSummary",
component: rr
}, {
path: "top-highlights",
name: "StatisticsOverviewTopHighlight",
component: rr
}]
}, {
path: "statements",
name: "StatisticsStatements",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(88647), s.e(92128), s.e(28431), s.e(58633), s.e(36728), s.e(49994), s.e(76591), s.e(10025), s.e(90333)]).then(s.bind(s, 995280)),
redirect: {
name: "StatisticsStatementsEarnings"
},
children: [{
path: "earnings",
name: "StatisticsStatementsEarnings",
component: nr,
children: [{
path: "tips/:type(all|profile|post|chat|stream|story)",
name: "StatisticsStatementsEarningsTips",
component: nr,
meta: {
parentTag: "earnings_tips"
}
}]
}, {
path: "payout-request",
name: "StatisticsStatementsPayoutRequests",
component: ir
}, {
path: "payout-request/stripe",
name: "StatisticsStatementsPayoutRequestsStripe",
component: ir
}, {
path: "disputes",
name: "StatisticsStatementsDisputes",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(834), s.e(13208)]).then(s.bind(s, 155971))
}, {
path: "referrals",
name: "StatisticsStatementsReferrals",
component: () => Promise.all([s.e(10908), s.e(92128), s.e(10171)]).then(s.bind(s, 961029)),
meta: {
requiresReferrerAllowed: !0
},
redirect: {
name: "StatisticsStatementsReferralEarnings"
},
children: [{
path: "earnings",
name: "StatisticsStatementsReferralEarnings",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(6553)]).then(s.bind(s, 786705)),
meta: {
parentTag: "referrals"
}
}, {
path: "creators",
name: "StatisticsStatementsReferralCreators",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(9343), s.e(21893), s.e(77390)]).then(s.bind(s, 324007)),
meta: {
parentTag: "referrals"
}
}, {
path: "users",
name: "StatisticsStatementsReferralUsers",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(9343), s.e(21893), s.e(10751)]).then(s.bind(s, 727111)),
meta: {
parentTag: "referrals"
}
}]
}, {
path: "vat-documents",
name: "StatisticsStatementsVatDocuments",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(75068), s.e(90476)]).then(s.bind(s, 156506))
}]
}, {
path: "engagement",
name: "StatisticsEngagement",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(64275), s.e(92128), s.e(58633), s.e(36728), s.e(49994), s.e(76591), s.e(917)]).then(s.bind(s, 163464)),
redirect: {
name: "StatisticsEngagementPosts"
},
children: [{
path: "posts",
name: "StatisticsEngagementPosts",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(53494), s.e(74197), s.e(38510), s.e(74739), s.e(61237), s.e(90990), s.e(33989), s.e(5877), s.e(95028), s.e(83684), s.e(75861)]).then(s.bind(s, 352502))
}, {
path: "messages",
name: "StatisticsEngagementMessages",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(64275), s.e(9343), s.e(21893), s.e(92128), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(38510), s.e(74739), s.e(8611), s.e(30155)]).then(s.bind(s, 492557))
}, {
path: "streaming",
name: "StatisticsEngagementStreaming",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(5016), s.e(38510), s.e(30408), s.e(78337), s.e(33917)]).then(s.bind(s, 181847))
}, {
path: "stories",
name: "StatisticsEngagementStories",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(5016), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(38510), s.e(30408), s.e(73488), s.e(33361)]).then(s.bind(s, 366430))
}]
}, {
path: "reach",
name: "StatisticsReach",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(64275), s.e(92128), s.e(58633), s.e(36728), s.e(49994), s.e(76591), s.e(94024)]).then(s.bind(s, 603616)),
redirect: {
name: "StatisticsReachProfileVisitors"
},
children: [{
path: "profile-visitors/",
name: "StatisticsReachProfileVisitors",
component: vr
}, {
path: "profile-visitors/:type(users|guests|subscribers)",
name: "StatisticsReachProfileVisitorsByType",
meta: {
parentTag: "profile_visitors"
},
component: vr
}, {
path: "promotions",
name: "StatisticsReachPromotions",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(5016), s.e(38510), s.e(45318), s.e(28351)]).then(s.bind(s, 786028))
}, {
path: "trial-links",
name: "StatisticsReachTrialLinks",
component: () => Promise.all([s.e(10908), s.e(9343), s.e(88878), s.e(5016), s.e(38510), s.e(45318), s.e(33145)]).then(s.bind(s, 500918))
}, {
path: "campaigns",
redirect: {
name: "StatisticsReachTrackingLinks"
}
}, {
path: "tracking-links",
name: "StatisticsReachTrackingLinks",
component: () => Promise.all([s.e(10908), s.e(10363), s.e(11452), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(88878), s.e(5016), s.e(38510), s.e(55202)]).then(s.bind(s, 398142))
}]
}, {
path: "fans",
name: "StatisticsFans",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(9154), s.e(36728), s.e(49994), s.e(54345), s.e(38510), s.e(69139), s.e(921), s.e(41405), s.e(76591), s.e(96601)]).then(s.bind(s, 831312)),
redirect: {
name: "StatisticsFansSubscriptions"
},
children: [{
path: "subscriptions",
name: "StatisticsFansSubscriptions",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(9343), s.e(21893), s.e(92128), s.e(33807)]).then(s.bind(s, 816870))
}, {
path: "top-fans",
name: "StatisticsFansTop",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(9343), s.e(21893), s.e(92128), s.e(1559)]).then(s.bind(s, 708827))
}]
}]
}];
const Tr = undefined
, Mr = undefined
, _r = undefined
, $r = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61702), s.e(42796), s.e(61768), s.e(71766), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(9154), s.e(53494), s.e(79463), s.e(41439), s.e(22950), s.e(45268), s.e(69539), s.e(32558), s.e(14639), s.e(16527)]).then(s.bind(s, 609583))
, Er = undefined
, Vr = undefined;
var Dr = [{
path: "/my/streaming",
name: "Streaming",
component: () => Promise.all([s.e(83602), s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(16538), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(5016), s.e(18458), s.e(42019), s.e(54582), s.e(10246), s.e(432), s.e(73245), s.e(98469), s.e(91424), s.e(61604), s.e(78061), s.e(1498), s.e(95117), s.e(62284), s.e(94328), s.e(30270), s.e(70495), s.e(48857), s.e(35003), s.e(58369), s.e(1114), s.e(17125), s.e(74654), s.e(78737), s.e(36913), s.e(78957), s.e(73928), s.e(79838)]).then(s.bind(s, 793150)),
meta: {
requiresCanStreaming: !0
}
}, {
path: "/:user/live",
name: "Live",
component: () => Promise.all([s.e(83602), s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(16538), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(5016), s.e(18458), s.e(54582), s.e(10246), s.e(432), s.e(97659), s.e(98469), s.e(91424), s.e(45095), s.e(61604), s.e(78061), s.e(1498), s.e(95117), s.e(62284), s.e(94328), s.e(30270), s.e(70495), s.e(48857), s.e(661), s.e(85524), s.e(75097), s.e(61749), s.e(88755), s.e(59347), s.e(36736)]).then(s.bind(s, 657728)),
meta: {
requiresAuth: !0
}
}, {
path: "/my/live/view/:user",
redirect: {
name: "Live"
}
}, {
path: "my/streaming/chat",
name: "StreamingChat",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(16538), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(5016), s.e(18458), s.e(54582), s.e(10246), s.e(432), s.e(98469), s.e(91424), s.e(45095), s.e(61604), s.e(78061), s.e(1498), s.e(95117), s.e(62284), s.e(94328), s.e(30270), s.e(70495), s.e(48857), s.e(37794), s.e(80399)]).then(s.bind(s, 514346)),
meta: {
requiresPerformer: !0
}
}, {
path: "my/streaming/dashboard",
name: "StreamingDashboard",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(5016), s.e(41404), s.e(30408), s.e(78337), s.e(83654)]).then(s.bind(s, 969043)),
meta: {
requiresAuth: !0,
requiresPerformer: !0
}
}, {
path: "my/streaming/dashboard/create",
name: "StreamingCreateEditSchedule",
component: $r,
meta: {
requiresAuth: !0,
requiresPerformer: !0
}
}, {
path: "my/streaming/dashboard/:id",
name: "StreamingEditSchedule",
component: $r,
meta: {
requiresAuth: !0,
requiresPerformer: !0
}
}];
const Ur = undefined
, Or = undefined
, Rr = undefined;
var Fr = [{
path: "/my/release-forms/search",
name: "ReleaseFormsSearch",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(92922), s.e(25582), s.e(18458), s.e(60429), s.e(41404), s.e(42019), s.e(80843), s.e(98469), s.e(91424), s.e(45609), s.e(40007), s.e(69867), s.e(77925), s.e(9609), s.e(20033), s.e(76289), s.e(69369)]).then(s.bind(s, 757018)),
meta: {
requiresPerformer: !0
}
}, {
path: "/my/release-forms/:id",
name: "ReleaseFormPage",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(41404), s.e(53494), s.e(97659), s.e(37507), s.e(9179), s.e(49094), s.e(50960)]).then(s.bind(s, 874227)),
meta: {
noRedirectOnLogOut: !0
}
}, {
path: "/my/release-forms",
name: "ReleaseFormsStorage",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(10881), s.e(92922), s.e(24464), s.e(25582), s.e(18458), s.e(60429), s.e(41404), s.e(42019), s.e(80843), s.e(98469), s.e(91424), s.e(45609), s.e(40007), s.e(39644), s.e(33017), s.e(97429), s.e(90029)]).then(s.bind(s, 442939))
}]
, Br = s(976760)
, qr = s(826489);
const xr = () => s.e(31366).then(s.t.bind(s, 62051, 23))
, jr = () => {
qr.isMobile && xr().then((e => {
window.eruda = e.default,
window.eruda.init()
}
))
}
;
var Nr = s(898502)
, Xr = s(534173)
, Hr = s(445948);
const Gr = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(97659), s.e(87583), s.e(9179), s.e(79193), s.e(8358), s.e(42071), s.e(93946)]).then(s.bind(s, 814287))
, Zr = undefined;
const Qr = l.Ay.prototype.push
, Jr = l.Ay.prototype.replace;
l.Ay.prototype.push = function e(t, s, r) {
if (s || r)
return Qr.call(this, t, s, r);
try {
return Qr.call(this, t).catch((e => e))
} catch (a) {
console.log(a)
}
}
,
l.Ay.prototype.replace = function e(t, s, r) {
if (s || r)
return Jr.call(this, t, s, r);
try {
return Jr.call(this, t).catch((e => e))
} catch (a) {
console.log(a)
}
}
,
d.default.use(l.Ay);
const Wr = [...be, ...Gs, ...vt, ...V, ...$, ...b, ...Lt, ...tr, ...Lr, ...Ht, ...Dr, ...B, ...H, ...J, ...Fr, ...fe]
, Yr = new l.Ay({
mode: "history",
base: "/",
scrollBehavior(e, t, s) {
return e.hash ? {
selector: e.hash,
behavior: Hr.r0.SMOOTH
} : [/^Profile/, /^faq$/, /^MyQueue$/, /^StatisticsStatementsEarnings/, /^StatisticsOverviewStreaks/].some((s => [e, t].every(( ({name: e}) => s.test(e))))) ? s : {
x: 0,
y: 0
}
},
routes: [{
path: "/",
component: Gr,
children: Wr
}]
});
Yr.beforeEach((async (e, t, s) => {
var r;
if (null !== (r = window.__PRERENDER_INJECTED) && void 0 !== r && r.prerender)
return void s();
if (document.documentMode)
return void s();
if (h.A.state.init.initLoaded || (h.A.dispatch("hash/fetchHash"),
await Promise.all([h.A.dispatch("init/fetchInit"), h.A.dispatch("auth/fetchUserMe"), (0,
Xr.EY)()])),
"Error" === e.name)
return void s();
if (h.A.state.init.neededReload && e.fullPath && e.query && !e.query._ && (!e.params || !e.params.isLogout && !e.params.noReload))
return void (window.location.href = e.fullPath);
v(e);
let n = null;
const o = t => e.matched.some(( ({meta: e}) => a()(t) ? t.some((t => e[t])) : e[t]));
let c = h.A.getters["init/getInit"];
if (o("requiresGuest") && c.isAuth)
return void s("/");
const d = o(["requiresCanStreaming", "requiresCanAddStory", "requiresConnectedAccount", "requiresEmailNotChecked", "requiresCanSearchUsers", "requiresCustomer", "requiresReferrerAllowed", "requiresPaidFeed", "requiresPurchased", "requiresPerformer", "requiresCanCreatePromotion", "requiresUser", "requiresAuth"]);
if (d && (e.meta.requiresAuth = !0,
!c.isAuth && !h.A.state.init.apiError))
return e && e.fullPath ? void s(`/?return_to=${window.encodeURIComponent(e.fullPath)}`) : void s("/");
if ((d || c.isAuth) && (h.A.getters["auth/isAuth"] || h.A.state.init.meRequestLoaded || await h.A.dispatch("auth/fetchUserMe", {
root: !0
}),
!h.A.getters["auth/isAuth"]))
return void s();
const l = h.A.getters["auth/authUser"]
, u = (0,
g.q)();
if (u.length && u.every((t => e.fullPath.indexOf(t) < 0)))
return document.querySelectorAll(`a[href="${e.fullPath}"]`).forEach((e => {
e.classList.add("m-forbidden")
}
)),
void s(u[0]);
const m = (0,
Nr.t)({
currentRoute: e
});
if (m)
s(m);
else {
if (o("requiresCanAddStory") && !l.canAddStory && (n = {
name: "Error"
}),
o("requiresCanAddCard") && !l.canAddCard && (n = {
name: "Error"
}),
o("requiresCanStreaming") && !l.canStreaming && (n = {
name: "Error"
}),
o("requiresCanShopify") && !l.canShopify && (n = {
name: "Error"
}),
o("requiresConnectedAccount") && !(l.canConnectOfAccount || l.connectedOfAccounts && l.connectedOfAccounts.length) && (n = {
name: "Error"
}),
o("requiresCustomer") && l.isPerformer && (n = {
name: "Error"
}),
o("requiresCanChat") && !l.canChat && (n = {
name: "Error"
}),
(o("requiresCanSearchUsers") && !l.isMakePayment && !l.isPerformer || o("requiresReferrerAllowed") && !l.isReferrerAllowed || o("requiresPerformer") && !l.isPerformer || o("requiresCanCreatePromotion") && !l.canCreatePromotion) && (n = {
name: "Error"
}),
(o("requiresPaidFeed") && !l.paidFeed || o("requiresPurchased") && !l.hasPurchasedPosts) && (n = {
name: "Feed"
}),
!o("requiresEmailNotChecked") || l.email && !l.isEmailChecked || (n = {
name: "SettingsAdvanced"
}),
o("requiresHasStripe") && !l.hasStripe && (n = {
name: "Banking"
}),
o("isCountryVatNumberCollect") && !l.isCountryVatNumberCollect && (n = {
name: "Banking"
}),
o("requiresCountryVatRefundable") && !l.isCountryVatRefundable && (n = {
name: "Statements"
}),
o("isVatRequired") && l.isVatRequired && (n = {
name: "BankingVatChange"
}),
o("ageVerificationRequired"))
if (l.ageVerificationRequired && !l.isAgeVerified) {
f.A.$root.$emit("ageVerificationRequired");
try {
(0,
p.qx)(l.id, {
type: "add_card",
source: "banking",
isAllowed: !1
})
} catch (y) {}
if (null !== t.name)
return;
n = {
name: "Payments"
}
} else
"failed" === i()(l, "ageVerificationSession.status") && "approved" !== l.ivStatus && l.needIVApprove && (n = {
name: "VerifyPage"
});
(0,
Br.I2)(e),
(0,
Br.zq)(e) && (n = (0,
Br.FB)(e)),
n ? s(n) : (h.A.commit("init/setGoBackRouteFrom", t),
s())
}
}
)),
Yr.afterEach(( (e, t) => {
h.A.commit("router/setRoute", {
from: t,
to: e
}),
t && null === t.name && window.history.state && h.A.commit("init/setGoBackInitHistoryState", window.history.state.key)
}
)),
Yr.onError((e => {
/loading(?: css)* chunk .* failed./i.test(e.message) && window.location.reload()
}
)),
Yr.pushAsync = e => new Promise(( (t, s) => {
Yr.push(e, t, s)
}
)),
["beta", "beta2", "dev"].includes("live") && !m().get("disableEruda", {
domain: ".onlyfans.com"
}) && jr();
var zr = Yr
},
644781: function(e, t, s) {
"use strict";
s.d(t, {
Wn: function() {
return h
},
qn: function() {
return f
},
w: function() {
return p
}
});
var r = s(962953)
, a = s.n(r);
const n = undefined
, i = undefined
, o = undefined
, c = undefined
, d = undefined
, l = undefined
, u = () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(54582), s.e(9154), s.e(36728), s.e(49994), s.e(54345), s.e(83031), s.e(3415), s.e(10146), s.e(53320), s.e(44920), s.e(71699), s.e(93931)]).then(s.bind(s, 308103))
, m = undefined
, f = [{
path: "subscriptions",
name: "Subscribes",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(54582), s.e(9154), s.e(54345), s.e(69139), s.e(68181), s.e(41405), s.e(31512), s.e(97536), s.e(10404)]).then(s.bind(s, 453322)),
meta: {
requiresAuth: !0
},
children: [{
path: ":type(active|expired|attention)",
name: "SubscribesByType"
}]
}]
, h = [{
path: "subscribers/top/:year?/:month?",
name: "SubscribersAwards",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(9343), s.e(21893), s.e(25582), s.e(60429), s.e(54675), s.e(75099), s.e(68181), s.e(98699)]).then(s.bind(s, 1484)),
meta: {
requiresPerformer: !0
}
}, {
path: "subscribers",
name: "Subscribers",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(54582), s.e(9154), s.e(36728), s.e(49994), s.e(54345), s.e(69139), s.e(14778), s.e(13481), s.e(5266), s.e(41794), s.e(55518)]).then(s.bind(s, 387697)),
meta: {
requiresAuth: !0
},
children: [{
path: ":type(active|expired|activity)",
name: "SubscribersByType"
}, {
path: "restricted",
redirect: {
name: "RestrictedUsers"
}
}, {
path: "blocked",
redirect: {
name: "BlockedUsers"
}
}, {
path: "promotions",
redirect: {
name: "Promotions"
}
}]
}, {
path: "promotions",
name: "Promotions",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(16538), s.e(28431), s.e(58633), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(36728), s.e(49994), s.e(54345), s.e(68181), s.e(921), s.e(45095), s.e(24597)]).then(s.bind(s, 444507)),
meta: {
requiresCanCreatePromotion: !0
}
}, {
path: "blocked",
name: "BlockedUsers",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(54582), s.e(9154), s.e(54345), s.e(69139), s.e(68181), s.e(921), s.e(41405), s.e(39314)]).then(s.bind(s, 219701)),
meta: {
requiresAuth: !0
}
}, {
path: "restricted",
name: "RestrictedUsers",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(10363), s.e(5693), s.e(13956), s.e(97825), s.e(54597), s.e(11452), s.e(64275), s.e(9343), s.e(98262), s.e(10888), s.e(42225), s.e(3772), s.e(42845), s.e(38262), s.e(64504), s.e(90277), s.e(22694), s.e(73683), s.e(59532), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(60429), s.e(54582), s.e(9154), s.e(54345), s.e(69139), s.e(68181), s.e(921), s.e(41405), s.e(55887)]).then(s.bind(s, 116979)),
meta: {
requiresAuth: !0
}
}]
, p = [{
path: ":list",
name: "CustomList",
component: u,
meta: {
requiresAuth: !0
}
}, {
path: ":list/posts/:postType?",
name: "UserListsPosts",
component: () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(64275), s.e(9343), s.e(21893), s.e(88647), s.e(92128), s.e(88878), s.e(28431), s.e(10881), s.e(92922), s.e(24464), s.e(61768), s.e(25582), s.e(5016), s.e(14418), s.e(18458), s.e(60429), s.e(41404), s.e(42833), s.e(57403), s.e(67822), s.e(86516), s.e(37848), s.e(50077), s.e(24357), s.e(86781), s.e(1191), s.e(70998), s.e(61508), s.e(2377), s.e(85962), s.e(8128), s.e(98612), s.e(53386), s.e(10592), s.e(60661), s.e(54925), s.e(20790), s.e(54582), s.e(53494), s.e(74197), s.e(73245), s.e(35363), s.e(15364), s.e(22939), s.e(82032), s.e(70781), s.e(70660)]).then(s.bind(s, 984083)),
meta: {
requiresAuth: !0
}
}, {
path: "friends",
name: "MyFriends",
component: u,
meta: {
requiresPerformer: !0
}
}, {
path: "favorites",
name: "Favorites",
component: u,
meta: {
requiresAuth: !0
}
}]
},
296829: function(e, t, s) {
"use strict";
s.d(t, {
J: function() {
return r
}
});
const r = (e="") => {
if (!e || e.indexOf("rgb") < 0 && e.indexOf("rgba") < 0)
return e;
if ("#" === e.charAt(0))
return e;
let t, s, r, a;
try {
if (e.indexOf("rgba") >= 0) {
const n = /(.*?)rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d+\.?\d*)\)/i.exec(e);
t = parseInt(n[2], 10).toString(16),
s = parseInt(n[3], 10).toString(16),
r = parseInt(n[4], 10).toString(16),
a = Math.round(255 * parseFloat(n[5])).toString(16),
a = 1 === a.length ? "0" + a : a
} else {
const a = /(.*?)rgb\((\d+),\s*(\d+),\s*(\d+)\)/i.exec(e);
t = parseInt(a[2], 10).toString(16),
s = parseInt(a[3], 10).toString(16),
r = parseInt(a[4], 10).toString(16)
}
t = 1 === t.length ? "0" + t : t,
s = 1 === s.length ? "0" + s : s,
r = 1 === r.length ? "0" + r : r;
let n = "#" + t + s + r;
return a && (n += a),
n
} catch (n) {
return ""
}
}
},
178863: function(e, t, s) {
"use strict";
s.d(t, {
Is: function() {
return D
},
NM: function() {
return V
},
PE: function() {
return F
},
PP: function() {
return X
},
Po: function() {
return O
},
Rb: function() {
return q
},
Y9: function() {
return j
},
_P: function() {
return N
},
cb: function() {
return R
},
oj: function() {
return B
},
sO: function() {
return U
}
});
var r = s(688055)
, a = s.n(r)
, n = s(198023)
, i = s.n(n)
, o = s(185015)
, c = s.n(o)
, d = s(962193)
, l = s.n(d)
, u = s(16280)
, m = s.n(u)
, f = s(842762)
, h = s.n(f)
, p = s(962953)
, g = s.n(p)
, y = s(803296)
, S = s.n(y)
, v = s(527208)
, w = s.n(v)
, I = s(548408)
, b = s.n(I)
, A = s(814603)
, P = s.n(A)
, k = s(147566)
, C = s.n(k)
, L = s(198721)
, T = s.n(L)
, M = s(974353)
, _ = s.n(M)
, $ = s(135429)
, E = s(463670);
function V(e) {
return isNaN(e) ? 0 : Math.max(Number(e), 0)
}
function D(e) {
return !Array.isArray(e) && "object" == typeof e && null !== e
}
function U(e) {
return "string" == typeof e || "number" == typeof e || "symbol" == typeof e || "boolean" == typeof e
}
function O(e) {
return c()(e) ? !e.trim() : l()(e)
}
function R(e) {
return new Promise((t => setTimeout(t, e)))
}
function F(e) {
const t = undefined;
if (!(e instanceof Blob || e instanceof MediaSource))
throw new Error("Invalid format of file, entry file must be a Blob or MediaSource instance!");
const s = URL.createObjectURL(e)
, r = undefined
, a = undefined
, n = `${_()().format(E.dA)}${"image/jpeg" === e.type ? ".jpg" : ""}`
, i = document.createElement("a");
i.href = s,
i.download = n,
document.body.appendChild(i),
i.dispatchEvent(new MouseEvent("click",{
view: window,
bubbles: !0,
cancelable: !0
})),
i.remove()
}
function B(e, t) {
const s = e => $.sv.test(e)
, r = e => ["undefined", "string"].includes(typeof e) || null === e;
if (r(e) && r(t))
return [e, t].every(c()) ? [e, t].every(s) ? _()(e).isSame(_()(t)) : e === t : Boolean(e) === Boolean(t)
}
function q(e, t, s) {
if (!Array.isArray(e) || ![t, s].every(i()))
throw Error("moveArrayElement - passed is not valid params into method");
const r = a()(e);
if (t >= r.length || t === s)
return r;
const [n] = r.splice(t, 1);
return r.splice(s, 0, n),
r
}
function x(e) {
if (!(e instanceof HTMLElement))
return !1;
const t = undefined
, s = undefined
, r = undefined;
return [getComputedStyle(e, null).getPropertyValue("overflow"), getComputedStyle(e, null).getPropertyValue("overflow-x"), getComputedStyle(e, null).getPropertyValue("overflow-y")].some((e => ["scroll", "auto"].includes(e)))
}
function j(e) {
return e instanceof HTMLElement && e === document.documentElement
}
function N(e) {
return e instanceof HTMLElement ? e === document.documentElement ? document.documentElement : x(e) ? e : N(e.parentNode) : document.documentElement
}
function X(e, t) {
if (!(e instanceof HTMLElement))
return;
const s = N(t)
, {top: r, left: a} = e.getBoundingClientRect();
if (j(s))
return {
top: r + window.scrollY,
left: a + window.scrollX
};
const {scrollTop: n, scrollLeft: i} = s
, {top: o, left: c} = s.getBoundingClientRect();
return {
top: r - o - window.scrollY + (n || 0),
left: a - c - window.scrollX + (i || 0)
}
}
},
534173: function(e, t, s) {
"use strict";
s.d(t, {
EY: function() {
return L
},
Ru: function() {
return v
},
eX: function() {
return w
},
t: function() {
return T
},
tc: function() {
return M
},
wK: function() {
return C
}
});
var r = s(962193)
, a = s.n(r)
, n = s(962953)
, i = s.n(n)
, o = s(974353)
, c = s.n(o)
, d = s(764765)
, l = s(991272)
, u = s(927324)
, m = s.n(u)
, f = s(415261)
, h = s(374268)
, p = s(652064)
, g = s(203852)
, y = s(578710)
, S = s(178863);
let v;
function w() {
const e = m().get("lang") || "en";
return v = new d.A({
locale: e
}),
v
}
function I(e) {
switch (e) {
case "zh":
return "zh-cn";
case "tw":
return "zh-tw";
default:
return e
}
}
async function b(e) {
const t = I(e);
c().locale() !== t && ("en" !== t && await s(24670)(`./${t}.js`),
c().locale(t))
}
function A(e) {
switch (e) {
case "pt":
return "pt_PT";
case "zh":
return "zh_CN";
case "tw":
return "zh_TW";
default:
return e
}
}
async function P(e) {
var t;
const r = A(e)
, n = undefined;
let i = ((null === (t = f.Ay.Validator.dictionary) || void 0 === t ? void 0 : t.container) || {})[r];
a()(i) && (i = await s(686345)(`./${r}`));
const {messages: o, custom: c} = (0,
p.z)() || {}
, d = {
[e]: {
...i,
messages: {
...i.messages || {},
...o || {}
},
custom: {
...i.custom || {},
...c || {}
}
}
};
f.Ay.Validator.localize(e, d[e])
}
async function k(e) {
const {store: t} = (0,
g.A)();
if (v.locale === e && !a()(v.getLocaleMessage(e).messages))
return;
const s = await (0,
h.J8)(e);
if (!(0,
S.Is)(s) || a()(s))
return void t.commit("recoveryMode/setRecoveryMode");
let r = {};
v.setLocaleMessage(e, {
message: {
...s,
...r
}
}),
v.locale = e,
t.commit("init/setTextLoaded", !0)
}
async function C(e) {
try {
await P(e),
await b(e),
await k(e),
l.Settings.defaultLocale = e,
m().set("lang", e, {
expires: "3Y",
domain: ".onlyfans.com"
}),
document.documentElement.lang = e
} catch (t) {
const {store: e} = (0,
g.A)();
e.commit("recoveryMode/setRecoveryMode")
}
}
async function L() {
const {languagesCodes: e} = (0,
y.A)();
{
const t = m().get("lang");
if (t && !e.value.includes(t) && (m().delete("lang", {
domain: ".onlyfans.com"
}),
v.locale = "en"),
!m().get("lang")) {
const t = window.navigator.languages || [window.navigator.language || window.navigator.browserLanguage]
, s = undefined
, r = (Array.isArray(t) ? t.filter(Boolean) : []).map((e => e.slice(0, 2)));
if (r.length) {
const t = r.find((t => e.value.includes(t)));
t && "en" !== t && (v.locale = t)
}
}
}
await C(v.locale)
}
function T(e, t={}) {
return v.t(e, t)
}
function M(e, t, s={}) {
return v.tc(e, t, s)
}
},
980471: function(e, t, s) {
"use strict";
s.d(t, {
JX: function() {
return I
},
Kp: function() {
return b
},
NE: function() {
return P
},
P_: function() {
return A
},
Sr: function() {
return C
},
lb: function() {
return k
}
});
var r = s(411331)
, a = s.n(r)
, n = s(501882)
, i = s.n(n)
, o = s(553812)
, c = s.n(o)
, d = s(688055)
, l = s.n(d)
, u = s(198023)
, m = s.n(u)
, f = s(185015)
, h = s.n(f)
, p = s(842762)
, g = s.n(p)
, y = s(974353)
, S = s.n(y);
function v(e, {validator: t, convertor: s, defaultValue: r}={}) {
if (!i()(t))
return e;
const a = i()(s) ? s : e => e
, n = undefined;
return t(e) ? a(e) : r
}
function w(e, t=dayjs().endOf("day")) {
return v(e, {
defaultValue: t,
convertor: dayjs,
validator: e => dayjs(null != e ? e : null).isValid()
})
}
function I(e, t=[]) {
return v(e, {
defaultValue: t,
convertor: l(),
validator: Array.isArray
})
}
function b(e, t=!1) {
return v(e, {
defaultValue: t,
validator: c()
})
}
function A(e, t=0) {
return v(e, {
defaultValue: t,
convertor: Number,
validator: e => !isNaN(e)
})
}
function P(e, t={}) {
return v(e, {
defaultValue: t,
convertor: l(),
validator: a()
})
}
function k(e, t="", {trim: s=!0}={}) {
return v(e, {
defaultValue: t,
convertor: e => s ? String(e).trim() : String(e),
validator: e => h()(e) || m()(e)
})
}
function C(e, t= () => {}
) {
return v(e, {
defaultValue: t,
validator: i()
})
}
},
748977: function(e, t, s) {
"use strict";
s.d(t, {
BT: function() {
return p
},
QM: function() {
return m
},
x8: function() {
return h
}
});
var r = s(16280)
, a = s.n(r)
, n = s(725440)
, i = s.n(n)
, o = s(879978)
, c = s.n(o)
, d = s(178863)
, l = s(534173)
, u = s(733070);
function m(e, t="$") {
const s = undefined;
return `${t}${(0,
d.NM)(e).toFixed(2).replace(".00", "")}`
}
function f(e, t="$") {
const s = undefined;
return `${t}${getPositiveNumber(e).toFixed(2)}`
}
function h(e, t={}) {
if (isNaN(e))
throw Error("`priceHumanizeFormattedAmount`- passed is not valid params into method");
const s = Number(e)
, r = {
style: "currency",
currency: u.y.USD,
minimumFractionDigits: 0,
maximumFractionDigits: 2,
...(0,
d.Is)(t) ? t : {}
};
return new Intl.NumberFormat(l.Ru.locale,r).format(s)
}
function p(e) {
return Number((e || "").replaceAll(/[^\d.]/g, ""))
}
},
447533: function(e, t, s) {
"use strict";
s.d(t, {
p: function() {
return p
}
});
var r = s(501882)
, a = s.n(r)
, n = s(355364)
, i = s.n(n)
, o = s(842762)
, c = s.n(o)
, d = s(962953)
, l = s.n(d)
, u = s(842838)
, m = s.n(u)
, f = s(178863)
, h = s(296829);
const p = (e, {ALLOWED_COLORS: t, ALLOWED_FONT_SIZES: s, filterOnlyAllowedStyles: r=!1, hooksConfig: n=[], ...o}={}) => {
Array.isArray(n) && n.forEach((e => {
(0,
f.Is)(e) && Object.entries(e).forEach(( ([e,t]) => {
e && t && a()(t) && m().addHook(e, t)
}
))
}
)),
m().addHook("uponSanitizeAttribute", ( (e, a) => {
if ("style" === a.attrName) {
let e = a.attrValue.split(";").map((e => e.trim()));
e = e.filter((e => {
const [a,n] = e.split(":").map((e => e.trim()));
if ("color" === a && Array.isArray(t)) {
const e = (0,
h.J)(n);
return t.includes(e)
}
return "font-size" === a && Array.isArray(s) ? s.includes(n) : !r
}
)),
a.attrValue = e.join("; ")
}
}
)),
m().addHook("afterSanitizeAttributes", (e => {
const t = undefined;
["style", "class"].forEach((t => {
e.hasAttribute(t) && !e.getAttribute(t).trim() && e.removeAttribute(t)
}
))
}
));
const c = {
...o,
ADD_TAGS: i()(["use"], null == o ? void 0 : o.ADD_TAGS)
}
, d = m().sanitize(e, c);
return m().removeAllHooks(),
d
}
},
804726: function(e, t, s) {
"use strict";
s.d(t, {
EX: function() {
return m
},
GX: function() {
return i
},
a2: function() {
return o
},
tO: function() {
return n
}
});
var r = s(199624), a;
const n = 300
, i = "m-hover-state"
, o = ["A", "BUTTON"].map(s.n(r)());
let c = null
, d = null;
const l = o.join(", ");
function u(e) {
const t = e.target.closest(l);
t && (t === d && clearTimeout(c),
t.setAttribute(i, ""),
d = t,
c = setTimeout(( () => {
t.removeAttribute(i)
}
), n))
}
function m() {
document.addEventListener("touchstart", u)
}
},
717920: function(e, t, s) {
"use strict";
s.d(t, {
X: function() {
return i
},
u: function() {
return o
}
});
var r = s(962953)
, a = s.n(r);
const n = new Map;
function i(e, t=!0) {
if (n.has(e))
return n.get(e).promise;
const s = new AbortController
, r = new Promise(( (r, a) => {
const n = ({target: e}) => {
var t;
s.signal.removeEventListener("abort", n),
a(null !== (t = null == e ? void 0 : e.reason) && void 0 !== t ? t : null)
}
;
s.signal.addEventListener("abort", n);
const i = document.createElement("script");
i.src = e,
i.async = t,
i.type = "text/javascript",
i.addEventListener("error", a),
i.addEventListener("abort", a),
i.addEventListener("load", ( () => {
r(i)
}
)),
document.head.appendChild(i)
}
));
return n.set(e, {
promise: r,
controller: s
}),
r
}
function o(e) {
if (n.has(e)) {
const {controller: t} = n.get(e);
t.abort(),
n.delete(e)
}
let t = document.querySelector(`script[src="${e}"]`);
t && document.head.removeChild(t)
}
},
441153: function(e, t, s) {
"use strict";
var r = s(406924)
, a = s.n(r)
, n = s(386139)
, i = s.n(n)
, o = s(355364)
, c = s.n(o)
, d = s(944114)
, l = s.n(d)
, u = s(517642)
, m = s.n(u)
, f = s(658004)
, h = s.n(f)
, p = s(733853)
, g = s.n(p)
, y = s(845876)
, S = s.n(y)
, v = s(432475)
, w = s.n(v)
, I = s(515024)
, b = s.n(I)
, A = s(731698)
, P = s.n(A)
, k = s(962953)
, C = s.n(k)
, L = s(885471)
, T = s(695353)
, M = s(494334)
, _ = s.n(M)
, $ = s(146515)
, E = s(470406);
L.default.use(T.Ay);
const V = [(0,
E.A)({
paths: ["draft"],
key: "draft",
filter: e => ["draft/setPostDraft", "draft/removePostDraft", "draft/setChatDraft", "draft/removeChatDraft", "draft/logout"].includes(e.type)
}), (0,
E.A)({
storage: window.sessionStorage,
paths: ["hiddenHints"],
key: "vuexSession"
})];
navigator.cookieEnabled && V.push(_()({
predicate: ["users/setUserHiddenPosts"]
})),
t.A = new T.Ay.Store({
strict: !1,
modules: $.default,
plugins: V,
actions: {
logout() {
return new Promise((e => {
Object.keys(this.state).forEach((e => {
this.commit(`${e}/logout`)
}
)),
e()
}
))
}
},
mutations: {
set(e, t) {
if (t.entities) {
if (t.entities.posts || t.entities.linkedPosts) {
const s = {
...t.entities.linkedPosts,
...t.entities.posts
};
e.posts.items = a()({}, e.posts.items, s, ( (e, t) => {
if (Array.isArray(t))
return t
}
))
}
if (t.entities.users) {
const s = {
...t.entities.users
}
, r = Object.keys(s).map(Number);
e.users.needResetCheckOnlines ? (e.users.needResetCheckOnlines = !1,
e.users.checkOnlines = [...new Set([...r])]) : e.users.checkOnlines = [...new Set([...e.users.checkOnlines, ...r])],
e.users.items = a()({}, e.users.items, s, ( (e, t, s) => "view" === s ? i()(e || {}, t) : Array.isArray(t) ? t : void 0))
}
if (t.entities.usersLists && (e.usersLists.items = a()({}, e.usersLists.items, t.entities.usersLists, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.comments && (e.comments.items = c()({}, e.comments.items, t.entities.comments)),
t.entities.chats) {
const s = {
...t.entities.chats
};
e.chats.items = c()({}, e.chats.items, s)
}
if (t.entities.chatUser) {
const s = {
...t.entities.chatUser
};
Object.keys(s).forEach((e => {
s[e].messages = [],
s[e].typing = !1
}
)),
e.chats.items = c()({}, e.chats.items, s)
}
if (t.entities.messages) {
const s = {
...t.entities.messages
};
t.chatId && Object.keys(s).forEach((e => {
s[e].chatId = +t.chatId
}
)),
e.chats.messages = a()({}, e.chats.messages, s, ( (e, t) => {
if (Array.isArray(t))
return t
}
))
}
t.entities.streams && (e.streams.items = a()({}, e.streams.items, t.entities.streams, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.subscribes && (e.subscribes.items = c()({}, e.subscribes.items, t.entities.subscribes)),
t.entities.subscribers && (e.subscribers.items = c()({}, e.subscribers.items, t.entities.subscribers)),
t.entities.offers && (e.offers.items = c()({}, e.offers.items, t.entities.offers)),
t.entities.spotifyArtists && (e.settings.spotifyArtistsItems = c()({}, e.settings.spotifyArtistsItems, t.entities.spotifyArtists)),
t.entities.spotifyTracks && (e.settings.spotifyTracksItems = c()({}, e.settings.spotifyTracksItems, t.entities.spotifyTracks)),
t.entities.cards && (e.payments.cards = c()({}, e.payments.cards, t.entities.cards)),
t.entities.bundles && (e.bundles.items = c()({}, e.bundles.items, t.entities.bundles)),
t.entities.commentIds && (e.comments.itemsIds = a()({}, e.comments.itemsIds, t.entities.commentIds, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.repliesIds && (e.static.repliesIds = a()({}, e.static.repliesIds, t.entities.repliesIds, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.ticketReplies && (e.static.ticketReplies = c()({}, e.static.ticketReplies, t.entities.ticketReplies)),
t.entities.votersList && (e.posts.votersList = a()({}, e.posts.votersList, t.entities.votersList, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.supportTickets && (e.static.supportTickets = c()({}, e.static.supportTickets, t.entities.supportTickets)),
t.entities.performerHelpers && (e.performerHelpers.items = a()({}, e.performerHelpers.items, t.entities.performerHelpers, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.helperAccess && (e.performerHelpers.helperAccess = c()({}, e.performerHelpers.helperAccess, t.entities.helperAccess)),
t.entities.postLabels && (e.postLabels.items = a()({}, e.postLabels.items, t.entities.postLabels, ( (e, t) => {
if (Array.isArray(t))
return t
}
))),
t.entities.vaultLists && (e.mediaVault.vaultLists = c()({}, e.mediaVault.vaultLists, t.entities.vaultLists)),
t.entities.stories && (e.stories.items = a()({}, e.stories.items, t.entities.stories, ( (e, t, s) => Array.isArray(t) ? t : "src" === s && e && t && e.split("?")[0] === t.split("?")[0] ? e : void 0))),
t.entities.highlights && (e.stories.highlightsItems = {
...e.stories.highlightsItems,
...t.entities.highlights
}),
t.entities.massMessagesStat && (e.massMessagesStat.items = c()({}, e.massMessagesStat.items, t.entities.massMessagesStat)),
t.entities.releaseForms && (e.releaseForms.items = c()({}, e.releaseForms.items, t.entities.releaseForms)),
t.entities.releaseFormsGuests && (e.releaseForms.guests = c()({}, e.releaseForms.guests, t.entities.releaseFormsGuests))
}
}
}
})
},
768985: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return A
},
getters: function() {
return I
},
mutations: function() {
return b
},
state: function() {
return w
}
});
var r = s(590179)
, a = s.n(r)
, n = s(244383)
, i = s.n(n)
, o = s(858156)
, c = s.n(o)
, d = s(16280)
, l = s.n(d)
, u = s(22504)
, m = s(632134)
, f = s(494948)
, h = s(202600)
, p = s(758987)
, g = s(898502)
, y = s(414415);
const S = ["isLoginFromAdmin", "showReturnAdmin", "canTranslate", "showBetaSwitcher", "showBeta2Switcher"]
, v = () => ({
user: null,
logoutInProgress: !1,
subscriptionInitiated: !1,
isLogin: !0,
QRCode: "",
QRCodeSize: {
width: 246,
height: 246
},
visitorId: void 0,
scenario: {},
admin: {},
ip: null,
csrf: null
})
, w = {
user: null,
logoutInProgress: !1,
subscriptionInitiated: !1,
isLogin: !0,
QRCode: "",
QRCodeSize: {
width: 246,
height: 246
},
visitorId: void 0,
scenario: {},
admin: {},
ip: null,
csrf: null
}
, I = {
authUser(e, t, s) {
const r = c()(e, "user", !1);
let a = {};
return r && (a = c()(s, `users.items[${r}]`, {})),
a
},
authUserNotificationsCount(e, t, s) {
const r = e.user;
return r ? s.users.items[r].notificationsCount : 0
},
authUserId: e => e.user,
isAuth(e, t, s) {
const r = c()(e, "user", !1);
return !!r && !!c()(s, `users.items[${r}]`, {}).isAuth
},
isBigModel: (e, t) => {
const {subscribersCount: s, subscribesCount: r, isPerformer: a} = t.authUser;
return s > 200 || r > 200 && a
}
}
, b = {
setAuthUser(e, t) {
e.user = t
},
setLogoutInProgress(e, t) {
e.logoutInProgress = t
},
setSubscriptionInitiated(e, t) {
e.subscriptionInitiated = t
},
setIsLogin(e, t) {
e.isLogin = t
},
setQRCode(e, t="") {
e.QRCode = t
},
setQRCodeSize(e, t={}) {
e.QRCodeSize = {
...e.QRCodeSize,
...t
}
},
setVisitorId(e, t) {
e.visitorId = t
},
setScenario(e, t={}) {
e.scenario = t
},
setAdmin(e, t={}) {
e.admin = t
},
setIp(e, t) {
e.ip = t
},
setCsrf(e, t) {
e.csrf = t
},
logout(e) {
Object.assign(e, {
user: null,
logoutInProgress: !1,
subscriptionInitiated: !1,
isLogin: !0,
QRCode: "",
QRCodeSize: {
width: 246,
height: 246
},
visitorId: void 0,
scenario: {},
admin: {},
ip: null,
csrf: null
}, {
visitorId: e.visitorId
})
}
}
, A = {
async reqLogout({commit: e}) {
e("setLogoutInProgress", !0);
const t = await (0,
f.xu)();
return y.A.$store.dispatch("logout"),
await y.A.$store.dispatch("auth/fetchUserMe"),
t
},
async fetchUserMe({commit: e, dispatch: t}) {
try {
const s = await (0,
h.G1)();
if ("object" == typeof s)
if (e("init/setInitAuth", s.isAuth, {
root: !0
}),
e("setIp", s.ip),
e("setCsrf", s.csrf),
s.isAuth) {
const r = i()(s, S)
, n = a()(s, S);
n.hasScheduledStream && t("schedule/fetchClosestScheduledStream", {}, {
root: !0
});
const o = undefined;
e("set", (0,
u.S8)(n, m.vJ), {
root: !0
}),
e("setAuthUser", n.id),
e("setAdmin", r),
n.hasScenario && await (0,
g.A)(),
["Profile", "Post"].includes(y.A.$route.name) && y.A.$route.params.userId === n.username && e("users/setCurrentUser", n.id, {
root: !0
})
} else
e("setAuthUser", null);
else
(0,
p.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: s
}
});
e("init/setMeRequestLoaded", !0, {
root: !0
})
} catch (r) {
if (e("init/setMeRequestLoaded", !0, {
root: !0
}),
!r || !(401 === r.status || r.data && r.data.error && 101 === r.data.error.code)) {
var s;
if ("ERR_NETWORK" === r.code || (null === (s = r.request) || void 0 === s ? void 0 : s.status) >= 500)
return void e("recoveryMode/setRecoveryMode", !0, {
root: !0
});
(0,
p.Bg)({
error: r
})
}
}
},
async fetchUserAuthToken({dispatch: e}) {
try {
const {wsUrl: t, wsAuthToken: s} = await (0,
h.dG)();
e("users/setAuthUserData", {
wsUrl: t,
wsAuthToken: s
}, {
root: !0
})
} catch (t) {}
}
}
},
548693: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return b
},
getters: function() {
return w
},
mutations: function() {
return I
},
state: function() {
return v
}
});
var r = s(688055)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(944114)
, c = s.n(o)
, d = s(962953)
, l = s.n(d)
, u = s(644834)
, m = s(874727)
, f = s(381465)
, h = s(610023)
, p = s(758987)
, g = s(977434)
, y = s(178863);
const S = () => ({
payoutsBank: {},
payoutsBankPreview: {},
payoutsStripe: {
stripe_legal: {}
},
payoutsLegal: {},
payoutsLegalInfo: {},
disableSubmit: !1,
paymentErrors: "",
payoutsAccount: {},
loading: !1,
bankingLoading: !1,
isEditBanking: !1,
W9Address: null,
autocompleteAddresses: {},
countriesList: []
})
, v = {
payoutsBank: {},
payoutsBankPreview: {},
payoutsStripe: {
stripe_legal: {}
},
payoutsLegal: {},
payoutsLegalInfo: {},
disableSubmit: !1,
paymentErrors: "",
payoutsAccount: {},
loading: !1,
bankingLoading: !1,
isEditBanking: !1,
W9Address: null,
autocompleteAddresses: {},
countriesList: []
}
, w = {
getBankingState: e => t => void 0 !== e[t] ? e[t] : "",
getAutocompleteAddress: e => t => e.autocompleteAddresses[Object.values(t).join(", ")]
}
, I = {
setBankingState(e, {field: t, value: s}) {
void 0 !== e[t] && (e[t] = s)
},
setPayoutsBank(e, {data: t, isEdit: s=!1}) {
const {payoutCode: r} = t
, a = t.payouts.find((e => e.code === r));
a && a.fields && Object.keys(a.fields).forEach((e => {
const {value: t, type: s} = a.fields[e];
t || (a.fields[e].value = ""),
"checkbox" === s && (a.fields[e].value = !!a.fields[e].value)
}
)),
e.payoutsBank = t,
e.isEditBanking = !!s
},
setPayoutsBankPreview(e, t) {
e.payoutsBankPreview = a()(t)
},
setPayoutsStripe(e, t) {
e.payoutsStripe = {
...e.payoutsStripe,
...t
}
},
setPayoutsStripeSections(e, t) {
e.payoutsStripe = {
...e.payoutsStripe,
...t
}
},
setPayoutsLegal(e, t) {
e.payoutsLegal = t
},
setPayoutsLegalInfo(e, t) {
e.payoutsLegalInfo = t
},
updatePayoutsLegalInfo(e, t) {
e.payoutsLegalInfo = {
...e.payoutsLegalInfo,
...t
}
},
clearPayoutsStripe(e) {
e.payoutsStripe = {
stripe_legal: {}
}
},
clearPayoutsStripeLegal(e) {
e.payoutsStripe.stripe_legal = {}
},
setPayoutsAccount(e, t) {
e.payoutsAccount = t
},
changePayoutFieldValue(e, {code: t, field: s, value: r, stripe: a=!1}) {
var n, i;
(t || s) && (a ? ((null === (n = e.payoutsStripe) || void 0 === n || null === (n = n[t]) || void 0 === n || null === (n = n.fields) || void 0 === n ? void 0 : n[s]) || {}).value = r : ((null === (i = e.payoutsBank) || void 0 === i || null === (i = i.payouts) || void 0 === i || null === (i = i.find((e => (null == e ? void 0 : e.code) === t))) || void 0 === i || null === (i = i.fields) || void 0 === i ? void 0 : i[s]) || {}).value = r)
},
setStripeStates(e, t) {
i()(e, "payoutsStripe.stripe_legal.fields.legal_address_state.values") && (e.payoutsStripe.stripe_legal.fields.legal_address_state.values = t)
},
setLoading(e, t) {
e.loading = t
},
setBankingLoading(e, t) {
e.bankingLoading = t
},
setW9Address(e, t) {
e.W9Address = t
},
setAutocompleteAddress(e, t) {
e.autocompleteAddresses = {
...e.autocompleteAddresses,
...t
}
},
resetPaymentsAlternativeMethodsForm() {
const {payoutsBankPreview: e, payoutsBank: t} = {
payoutsBank: {},
payoutsBankPreview: {},
payoutsStripe: {
stripe_legal: {}
},
payoutsLegal: {},
payoutsLegalInfo: {},
disableSubmit: !1,
paymentErrors: "",
payoutsAccount: {},
loading: !1,
bankingLoading: !1,
isEditBanking: !1,
W9Address: null,
autocompleteAddresses: {},
countriesList: []
};
v.payoutsBankPreview = e,
v.payoutsBank = t
},
setCountriesList(e, t) {
e.countriesList = t
},
logout(e) {
Object.assign(e, {
payoutsBank: {},
payoutsBankPreview: {},
payoutsStripe: {
stripe_legal: {}
},
payoutsLegal: {},
payoutsLegalInfo: {},
disableSubmit: !1,
paymentErrors: "",
payoutsAccount: {},
loading: !1,
bankingLoading: !1,
isEditBanking: !1,
W9Address: null,
autocompleteAddresses: {},
countriesList: []
})
}
}
, b = {
async fetchPayoutsBank({commit: e}, {other: t=!1, ...s}={}) {
const {cancelToken: r, Cancel: a} = (0,
g.ws)(t ? "fetchPayoutsOtherBank" : "fetchPayoutsBank");
e("setPayoutsBankPreview", {});
try {
var n;
let a;
a = t ? await (0,
u.ij)(s, r) : await (0,
u.k5)(s, r),
null !== (n = a) && void 0 !== n && n.payoutCode && (e("setPayoutsBankPreview", a),
e("setPayoutsBank", {
data: a,
isEdit: "edit" === s.context
}))
} catch (i) {
if (!(i instanceof a))
throw i
}
},
async fetchPayoutsLegal({commit: e}) {
try {
const t = await (0,
u.Tq)();
return (0,
y.Is)(t) && e("setPayoutsLegal", t),
t
} catch (t) {}
return !1
},
async fetchPayoutsLegalInfo({commit: e}) {
try {
const t = await (0,
u.$k)();
return (0,
y.Is)(t) && e("setPayoutsLegalInfo", t),
t
} catch (t) {}
return !1
},
async sendPayoutsBank({commit: e}, t) {
const s = await (0,
u.aS)(t);
s && (e("setPayoutsBankPreview", s),
e("setPayoutsBank", {
data: s
}))
},
async removePayoutsBank({dispatch: e}, t) {
try {
const s = await (0,
u.ql)();
null != s && s.success && await e("fetchPayoutsBank", t)
} catch (s) {
(0,
p.r_)(s)
}
},
async fetchPayoutsAccount({commit: e}) {
try {
const t = await (0,
u.H3)();
"object" == typeof t && e("setPayoutsAccount", t)
} catch (t) {}
},
async fetchPayoutsStripe({commit: e}) {
e("setLoading", !0);
const t = await (0,
u.ZV)();
t && (e("setPayoutsStripe", t),
e("setLoading", !1))
},
async fetchStripeStates({commit: e, state: t}) {
try {
const s = undefined;
e("setStripeStates", await (0,
h.Fk)(t.payoutsAccount.id))
} catch (s) {}
},
async fetchPayoutsStripeLegal({commit: e, dispatch: t}) {
try {
const s = await (0,
u.q2)();
s && (i()(s, "stripe_legal.fields.legal_address_state") && t("fetchStripeStates"),
e("setPayoutsStripeSections", s))
} catch (s) {}
},
async sendPayoutsStripeLegal({commit: e, dispatch: t}, s) {
const r = await (0,
u.Qd)(s);
return r && (i()(r, "stripe_legal.fields.legal_address_state") && t("fetchStripeStates"),
e("setPayoutsStripeSections", r)),
r
},
async fetchPayoutsStripeAccount({commit: e}, {edit: t=!1}={}) {
try {
const s = await (0,
u.Ao)(t);
s && e("setPayoutsStripeSections", s)
} catch (s) {}
},
async sendPayoutsStripeAccount({commit: e}, t) {
const s = await (0,
u._R)(t);
s && e("setPayoutsStripeSections", s)
},
async fetchPaymentsAlternativeMethodsForm({commit: e}, t) {
const s = await (0,
f.R8)(t);
if (s) {
s.code = "alternative";
const t = {
payouts: [],
payoutCode: "alternative"
};
t.payouts.push(s),
e("setPayoutsBankPreview", t),
e("setPayoutsBank", {
data: t
})
}
},
async fetchW9Address({commit: e}, t={}) {
try {
const s = await (0,
m.Pd)(t);
if ("object" != typeof s || !s.country)
return alert("Something went wrong. Please try again later."),
!1;
if (t.trust)
return s;
e("setW9Address", s)
} catch (s) {
return 403 !== i()(s, "status") && 105 !== i()(s, "data.error.code") && (0,
p.r_)(s),
!1
}
return !0
},
async saveW9Address(e, t) {
try {
const e = await (0,
m.ho)(t);
return e && e.success
} catch (s) {
(0,
p.r_)(s)
}
return !1
},
async fetchAutocompleteAddress({commit: e}, {payload: t, cancelToken: s}) {
const r = await (0,
u.PJ)(t, s);
Array.isArray(r) && e("setAutocompleteAddress", {
[Object.values(t).join(", ")]: r
})
},
async getConfirmYotiConsentUrl(e, t) {
let s;
try {
s = await (0,
m.DH)(t)
} catch (r) {
(0,
p.r_)(r),
s = r.data
}
return s
},
async getConfirmYotiFaceIdUrl(e, {verificationId: t, faceId: s}) {
let r;
try {
r = await (0,
m.D7)(t, s)
} catch (a) {
(0,
p.r_)(a),
r = a.data
}
return r
},
async fetchCountriesList({commit: e}) {
try {
const t = await (0,
u.Kj)();
Array.isArray(t) && t.length && e("setCountriesList", t)
} catch (t) {}
}
}
},
191666: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return E
},
getters: function() {
return _
},
mutations: function() {
return $
},
state: function() {
return M
}
});
var r = s(950014)
, a = s.n(r)
, n = s(16280)
, i = s(517642)
, o = s(658004)
, c = s(733853)
, d = s(845876)
, l = s(432475)
, u = s(515024)
, m = s(731698)
, f = s(842762)
, h = s(962953)
, p = s(977434);
const g = ({limit: e=p.Jg, offset: t=0, query: s=""}={}) => p.Ay.get(`${p.XV}/posts/bookmarks/categories${(0,
p.Zq)({
limit: e,
offset: t,
query: s
})}`).then((e => e.data))
, y = ({postId: e, limit: t=p.Jg, offset: s=0}={}) => {
const r = (0,
p.Zq)({
limit: t,
offset: s
});
return p.Ay.get(`${p.XV}/posts/bookmarks/categories${r}&postId=${e}&view=add_post`).then((e => e.data))
}
, S = e => p.Ay.post(`${p.XV}/posts/bookmarks/categories`, {
name: e
}).then((e => e.data))
, v = ({id: e, name: t}) => p.Ay.patch(`${p.XV}/posts/bookmarks/categories/${e}`, {
name: t
}).then((e => e.data))
, w = e => p.Ay.delete(`${p.XV}/posts/bookmarks/categories/${e}`).then((e => e.data))
, I = ({categoryId: e, postId: t}) => p.Ay.post(`${p.XV}/posts/bookmarks/categories/${e}/${t}`).then((e => e.data))
, b = ({categoryId: e, postId: t}) => p.Ay.delete(`${p.XV}/posts/bookmarks/categories/${e}/${t}`).then((e => e.data))
, A = e => request.delete(`${apiVersion}/posts/${e}/bookmarks`).then((e => e.data))
, P = e => p.Ay.post(`${p.XV}/posts/bookmarks/categories/sort`, e).then((e => e.data));
var k = s(758987)
, C = s(444962);
const {t: L} = (0,
C.A)()
, T = () => ({
categories: {
all: {},
list: [],
offset: 0,
hasMore: !1,
loading: !1,
categoriesIds: [],
sort: "recent",
order: "asc"
},
modalBookmarkCategoryId: null,
isSearchMode: !1,
activePostId: null,
categoriesHasActivePost: [],
customOrderEnabled: !1,
hasMore: !1
})
, M = {
categories: {
all: {},
list: [],
offset: 0,
hasMore: !1,
loading: !1,
categoriesIds: [],
sort: "recent",
order: "asc"
},
modalBookmarkCategoryId: null,
isSearchMode: !1,
activePostId: null,
categoriesHasActivePost: [],
customOrderEnabled: !1,
hasMore: !1
}
, _ = {
getBookmarkListById: e => t => e.categories.list.concat([e.categories.all]).find((e => e.id === t || Number(e.id) === Number(t))),
categoriesIds: e => e.categories.categoriesIds
}
, $ = {
setCategoriesListAllListItem(e, {all: t={}}) {
e.categories.all = {
id: "all",
name: L("message.bookmarks_title_section"),
...t
}
},
setCategoriesList(e, {list: t=[], hasMore: s=!1}={}) {
e.categories.list = a()([...e.categories.list, ...t], (e => e.id)),
e.categories.hasMore = s
},
addCategoriesListItem(e, t) {
e.categories.list = a()([...e.categories.list, t], (e => e.id))
},
setCategoriesHasActivePost(e, t=[]) {
e.categoriesHasActivePost = t
},
updateCategoriesHasActivePost(e, t=[]) {
e.categoriesHasActivePost = e.categoriesHasActivePost.concat(t)
},
updateCategoriesHasActivePostById(e, t) {
e.categoriesHasActivePost = e.categoriesHasActivePost.map((e => t.id === e.id ? t : e))
},
updateCategoriesListById(e, t) {
e.categories.list = e.categories.list.map((e => t.id === e.id ? t : e))
},
setCategoriesListLoading(e, t) {
e.categories.loading = t
},
setModalBookmarkCategoryId(e, t) {
e.modalBookmarkCategoryId = t
},
setActivePostId(e, t) {
e.activePostId = t
},
setCustomOrderEnabled(e, t) {
e.customOrderEnabled = t
},
setIds(e, t=[]) {
e.categories.categoriesIds = t
},
appendIds(e, t=[]) {
e.categories.categoriesIds = [...new Set([...e.categories.categoriesIds, ...t])]
},
prependIds(e, t=[]) {
e.categories.categoriesIds = [...new Set([...t, ...e.categories.categoriesIds])]
},
removeId(e, t) {
e.categories.categoriesIds = e.categories.categoriesIds.filter((e => e !== t))
},
setOffset(e, t) {
e.categories.offset = t
},
setHasMore(e, t) {
e.hasMore = t
},
setOrder(e, t) {
e.categories = {
...e.categories,
...t
}
},
logout(e) {
Object.assign(e, {
categories: {
all: {},
list: [],
offset: 0,
hasMore: !1,
loading: !1,
categoriesIds: [],
sort: "recent",
order: "asc"
},
modalBookmarkCategoryId: null,
isSearchMode: !1,
activePostId: null,
categoriesHasActivePost: [],
customOrderEnabled: !1,
hasMore: !1
})
}
}
, E = {
async fetchBookmarksCategories({commit: e}, {offset: t, query: s}) {
let r;
e("setCategoriesListLoading", !0);
try {
var a, n;
r = await g({
offset: t,
query: s
}),
e("setHasMore", !(null === (a = r) || void 0 === a || !a.hasMore));
const {sort: i, order: o} = r || {};
i && o && e("setOrder", {
sort: i,
order: o
}),
Array.isArray(null === (n = r) || void 0 === n ? void 0 : n.list) && (e("setCategoriesList", r),
t ? e("appendIds", r.list.map(( ({id: e}) => e))) : (e("setCategoriesListAllListItem", r),
e("setIds", r.list.map(( ({id: e}) => e)))))
} finally {
e("setCategoriesListLoading", !1)
}
return r
},
async fetchBookmarksCategoriesByPostId({commit: e}, {offset: t, ...s}) {
var r;
let a;
try {
a = await y({
offset: t,
...s
})
} catch (o) {}
const {sort: n, order: i} = a || {};
return n && i && e("setOrder", {
sort: n,
order: i
}),
Array.isArray(null === (r = a) || void 0 === r ? void 0 : r.list) ? (e(t ? "updateCategoriesHasActivePost" : "setCategoriesHasActivePost", a.list),
a) : {}
},
async addBookmarkCategory({state: e, commit: t}, s="") {
var r;
let a;
if ((null == s ? void 0 : s.trim().toLowerCase()) === (null === (r = e.categories) || void 0 === r || null === (r = r.all) || void 0 === r || null === (r = r.name) || void 0 === r ? void 0 : r.toLowerCase()))
return (0,
k.r_)(new Error(L("message.bookmark_list_name_already_exists")));
try {
var n;
if (a = await S(s),
a)
t("addCategoriesListItem", a),
null !== (n = a) && void 0 !== n && n.id && ("asc" !== e.categories.order || e.hasMore || t("appendIds", [+a.id]),
"desc" === e.categories.order && t("prependIds", [+a.id])),
e.activePostId && t("updateCategoriesHasActivePost", a)
} catch (i) {
(0,
k.r_)(i)
}
return a
},
async changeBookmarkCategory({commit: e}, {id: t, name: s}={}) {
let r;
try {
r = await v({
id: t,
name: s
}),
r && e("updateCategoriesListById", r)
} catch (a) {
(0,
k.r_)(a)
}
return r
},
async removeBookmarkCategory({commit: e}, t) {
let s;
try {
var r;
s = await w(t),
null !== (r = s) && void 0 !== r && r.success && e("removeId", t)
} catch (a) {
(0,
k.r_)(a)
}
return s
},
async addPostToBookmarkCategory({commit: e, state: t}, {categoryId: s, isValidCategoryId: r}) {
if (t.categories.loading)
return;
e("setCategoriesListLoading", !0);
const {activePostId: a} = t;
try {
const t = await I({
categoryId: s,
postId: a
});
if (null != t && t.success) {
const s = {
hasPost: !0,
...t.bookmarkCategory
};
e("updateCategoriesHasActivePostById", s),
e("updateCategoriesListById", s),
r && e("posts/updatePostInBookmarks", {
id: a,
isAdded: !0
}, {
root: !0
})
}
} catch (n) {
(0,
k.r_)(n)
} finally {
e("setCategoriesListLoading", !1)
}
},
async removePostFromBookmarkCategory({commit: e, state: t}, {categoryId: s, isValidCategoryId: r}) {
if (t.categories.loading)
return;
e("setCategoriesListLoading", !0);
const {activePostId: a} = t;
try {
const t = await b({
categoryId: s,
postId: a
});
if (t) {
const s = {
hasPost: !1,
...t
};
e("updateCategoriesHasActivePostById", s),
e("updateCategoriesListById", s),
r && e("posts/updatePostInBookmarks", {
id: a,
isAdded: !1
}, {
root: !0
})
}
} catch (n) {
(0,
k.r_)(n)
} finally {
e("setCategoriesListLoading", !1)
}
},
async saveBookmarksOrder({commit: e}, t={}) {
let {customOrder: s, sort: r, order: a} = t;
"custom" === r && (a = "asc");
try {
const t = await P({
customOrder: s,
sort: r,
order: a
});
null != t && t.success && (s && e("setIds", s),
e("setOrder", {
sort: r,
order: a
}))
} catch (n) {
(0,
k.r_)(n)
}
}
}
},
112995: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return p
},
getters: function() {
return f
},
mutations: function() {
return h
},
state: function() {
return m
}
});
var r = s(22504)
, a = s(632134)
, n = s(758987)
, i = s(977434);
const o = e => i.Ay.post(`${i.XV}/subscriptions/bundles`, e).then((e => e.data))
, c = () => i.Ay.get(`${i.XV}/subscriptions/bundles`).then((e => e.data))
, d = e => i.Ay.put(`${i.XV}/subscriptions/bundles/${e.id}`, e).then((e => e.data))
, l = e => i.Ay.delete(`${i.XV}/subscriptions/bundles/${e}`).then((e => e.data))
, u = () => ({
items: {},
loading: !1
})
, m = {
items: {},
loading: !1
}
, f = {
getBundles: e => t => t.map((t => e.items[t]))
}
, h = {
deleteBundle(e, t) {
const s = {
...e.items
};
delete s[t],
e.items = s
},
logout(e) {
Object.assign(e, {
items: {},
loading: !1
})
}
}
, p = {
async fetchBundles({commit: e}) {
try {
const t = await c();
if (null != t && t.length) {
const s = (0,
r.S8)(t, a.xn);
e("set", s, {
root: !0
}),
e("setBundles", s.result)
}
} catch (t) {}
},
async saveBundle({commit: e, rootGetters: t}, s) {
try {
var i;
let n;
if (n = null != s && s.id ? await d(s) : await o(s),
null !== (i = n) && void 0 !== i && i.id) {
const s = undefined;
e("set", (0,
r.S8)(n, a.jU), {
root: !0
});
const i = undefined;
e("users/setBundle", {
userId: t["auth/authUserId"],
bundleId: n.id
}, {
root: !0
})
}
} catch (c) {
(0,
n.r_)(c)
}
},
async deleteBundle({commit: e, rootGetters: t}, s) {
try {
const r = undefined;
if (await l(s)) {
const r = undefined;
e("users/deleteBundle", {
userId: t["auth/authUserId"],
bundleId: s
}, {
root: !0
}),
e("deleteBundle", s)
}
} catch (r) {
(0,
n.r_)(r)
}
}
}
},
48384: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return V
},
mutations: function() {
return E
},
state: function() {
return $
}
});
var r = s(950014)
, a = s.n(r)
, n = s(16280)
, i = s.n(n)
, o = s(713609)
, c = s.n(o)
, d = s(517642)
, l = s.n(d)
, u = s(658004)
, m = s.n(u)
, f = s(733853)
, h = s.n(f)
, p = s(845876)
, g = s.n(p)
, y = s(432475)
, S = s.n(y)
, v = s(515024)
, w = s.n(v)
, I = s(731698)
, b = s.n(I)
, A = s(962953)
, P = s.n(A)
, k = s(22504)
, C = s(632134)
, L = s(616150)
, T = s(758987);
const M = {
sortby: "claims",
order: "desc"
}
, _ = () => ({
isLoading: !1,
campaigns: {
list: [],
hasMore: !1
},
chartData: {
loading: !1,
data: null
},
claimersList: [],
sort: M
})
, $ = _()
, E = {
setIsLoading(e, t) {
e.isLoading = t
},
setCampaigns(e, {campaigns: {list: t, hasMore: s}, more: r=!1}) {
e.campaigns = {
list: r ? a()([...e.campaigns.list, ...t], "id") : t,
hasMore: s
}
},
setChartData(e, t) {
e.chartData.data = t
},
setChartDataLoading(e, t) {
e.chartData.loading = t
},
setCampaign(e, t) {
e.campaigns.list.unshift(t)
},
deleteCampaignMutation(e, t) {
e.campaigns.list = e.campaigns.list.filter((e => e.id !== t))
},
setCampaignClaimers(e, {list: t, more: s}) {
e.claimersList = s ? [...new Set([...e.claimersList, ...t])] : t
},
resetCampaignClaimers(e) {
e.claimersList = _().claimersList
},
setSort(e, t) {
e.sort = t || M
},
logout(e) {
Object.assign(e, _())
}
}
, V = {
async createCampaign({commit: e}, t={}) {
let s;
try {
if (s = await (0,
L.x4)(t),
Array.isArray(s)) {
const [t] = s;
e("setCampaign", t)
} else
(0,
T.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: s
}
})
} catch (r) {
(0,
T.r_)(r)
}
return s
},
async deleteCampaignAction({commit: e}, t) {
let s;
try {
s = await (0,
L.K_)(t),
s && e("deleteCampaignMutation", t)
} catch (r) {
(0,
T.r_)(r)
}
return s
},
async fetchCampaigns({commit: e, state: t}, {limit: s, offset: r, sort: a, field: n, more: i, startDate: o, endDate: c, isTableSort: d=!1, with_deleted: l=0}={}) {
e("setIsLoading", !0);
const u = _();
let m;
i || e("setCampaigns", {
campaigns: u.campaigns
});
const f = {
limit: s,
offset: r,
field: n,
startDate: o,
endDate: c,
with_deleted: l,
stats: !0
};
a ? f.sort = a : d && (f.sortby = t.sort.sortby,
f.sort = t.sort.order);
try {
m = await (0,
L.ME)(f)
} catch (h) {
return e("setIsLoading", !1),
t.campaigns
}
return m && "object" == typeof m ? e("setCampaigns", {
campaigns: m,
more: i
}) : (0,
T.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: m
}
}),
e("setIsLoading", !1),
m
},
async fetchCampaignsChart({commit: e}, {startDate: t, endDate: s}={}) {
let r;
e("setChartDataLoading", !0);
try {
if (r = await (0,
L._W)({
startDate: t,
endDate: s
}),
r) {
const {claims: t, ...s} = r
, a = undefined;
e("setChartData", {
subscribers: t,
...s
})
} else
(0,
T.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: r
}
})
} catch (a) {} finally {
e("setChartDataLoading", !1)
}
return r
},
async fetchCampaignClaimers({commit: e}, {id: t, more: s=!1, ...r}) {
let a;
try {
var n;
if (a = await (0,
L.lS)({
id: t,
more: s,
...r
}),
Array.isArray(null === (n = a) || void 0 === n ? void 0 : n.list)) {
const r = (0,
k.S8)(a.list, C.P7);
e("set", r, {
root: !0
}),
e("setCampaignClaimers", {
campaignId: t,
list: r.result,
more: s
})
}
} catch (i) {}
return a
}
}
},
985436: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return z
},
getters: function() {
return W
},
mutations: function() {
return Y
},
state: function() {
return J
}
});
var r = s(185015)
, a = s.n(r)
, n = s(962193)
, i = s.n(n)
, o = s(590179)
, c = s.n(o)
, d = s(858156)
, l = s.n(d)
, u = s(16280)
, m = s.n(u)
, f = s(944114)
, h = s.n(f)
, p = s(194490)
, g = s.n(p)
, y = s(713609)
, S = s.n(y)
, v = s(517642)
, w = s.n(v)
, I = s(658004)
, b = s.n(I)
, A = s(733853)
, P = s.n(A)
, k = s(845876)
, C = s.n(k)
, L = s(432475)
, T = s.n(L)
, M = s(515024)
, _ = s.n(M)
, $ = s(731698)
, E = s.n($)
, V = s(725440)
, D = s.n(V)
, U = s(962953)
, O = s.n(U)
, R = s(885471)
, F = s(22504)
, B = s(632134)
, q = s(204607)
, x = s(758987)
, j = s(977434)
, N = s(284419)
, X = s(534173)
, H = s(534543)
, G = s(980471);
const Z = () => ({
chats: [],
items: {},
currentChat: null,
messages: {},
chatsLoading: !1,
chatsListLoading: !1,
sendMessageLoading: !1,
searchIds: [],
currentSearchIndex: null,
searchQuery: "",
chatsSort: null,
chatsFilter: null,
chatsListHasMore: !1,
emptyMessagesList: !1,
firstLoadingChatsList: !1,
firstLoadingMessagesList: !1,
usersTotal: 0,
selectedUsersIds: 0,
queueIds: [],
queueItems: {},
media: [],
queueBuyersMarker: 0,
queueBuyersIds: [],
queueBuyersError: !1,
selectedUsers: [],
galleryListNextLastId: void 0,
showViewAllInclude: !1,
selectViewAllInclude: [],
showViewAllExclude: !1,
selectViewAllExclude: [],
nextOffset: 0,
scheduleQueueMessage: null,
hasMoreUsers: !1,
messagesHasMore: {},
messageIdToCentered: null
})
, Q = () => {
throw new Error("Network Error")
}
, J = {
chats: [],
items: {},
currentChat: null,
messages: {},
chatsLoading: !1,
chatsListLoading: !1,
sendMessageLoading: !1,
searchIds: [],
currentSearchIndex: null,
searchQuery: "",
chatsSort: null,
chatsFilter: null,
chatsListHasMore: !1,
emptyMessagesList: !1,
firstLoadingChatsList: !1,
firstLoadingMessagesList: !1,
usersTotal: 0,
selectedUsersIds: 0,
queueIds: [],
queueItems: {},
media: [],
queueBuyersMarker: 0,
queueBuyersIds: [],
queueBuyersError: !1,
selectedUsers: [],
galleryListNextLastId: void 0,
showViewAllInclude: !1,
selectViewAllInclude: [],
showViewAllExclude: !1,
selectViewAllExclude: [],
nextOffset: 0,
scheduleQueueMessage: null,
hasMoreUsers: !1,
messagesHasMore: {},
messageIdToCentered: null
}
, W = {
chatsByType: e => e.chats.map((t => e.items[t])).filter((e => e)),
getChat: e => t => e.items[t],
getMessages: e => (t=[]) => t.map((t => e.messages[t])),
getMessage: e => t => e.messages[t],
getLikePrevent: e => t => {
var s;
return null === (s = e.messages[t]) || void 0 === s ? void 0 : s.likePrevent
}
,
getIsMediaPlayed: e => t => {
var s;
return null === (s = e.messages[t]) || void 0 === s ? void 0 : s.isMediaPlayed
}
,
getQueueItem: e => t => e.queueItems[t],
getMessageReleaseForms: (e, t, s) => t => {
var r;
const a = l()(s, "releaseForms.items", {});
return null !== (r = e.messages[t]) && void 0 !== r && r.releaseForms ? e.messages[t].releaseForms.filter((e => !!a[e])).map((e => a[e])) : []
}
}
, Y = {
setLoading(e, t) {
e.chatsLoading = t
},
setChatsListLoading(e, t) {
e.chatsListLoading = t
},
setCurrentChat(e, t) {
e.currentChat = t
},
setSendMessageLoading(e, t) {
e.sendMessageLoading = t
},
setHasMoreUsers(e, t) {
e.hasMoreUsers = t
},
setChats(e, {ids: t=[]}) {
e.chats = t
},
resetChats(e) {
e.chats = []
},
addChats(e, {ids: t}) {
e.chats = [...new Set([...e.chats, ...t])]
},
setChatMessages(e, t) {
const {id: s, messageIds: r, add: a=!1, before: n=!0, ownMsg: i, isSocket: o=!1} = t
, c = Array.isArray(r) ? r : [r];
var d;
(!1 !== i || e.items[s] || R.default.set(e.items, s, {
withUser: s,
unreadMessagesCount: 1,
messages: [],
hasUnreadTips: !1,
countPinnedMessages: 0
}),
a) ? null !== (d = e.items[s]) && void 0 !== d && null !== (d = d.messages) && void 0 !== d && d.length ? e.items[s].messages = n ? [...new Set([...c, ...e.items[s].messages])] : [...new Set([...e.items[s].messages, ...c.reverse()])] : (e.items[s] && (e.items[s].messages = [...new Set([...e.items[s].messages, ...c])]),
o && "newest" === e.chatsSort && (e.chats = e.chats.reduce(( (e, t) => t !== s ? [...e, t] : e), [s]))) : e.items[s] && (e.items[s].messages = c)
},
setLastMessage(e, {chatId: t, messageId: s, ownMsg: r=!1, isNew: a}) {
e.items[t] && (e.items[t].prevMessage = e.items[t].lastMessage,
e.items[t].lastMessage = s,
!r && void 0 !== e.items[t].unreadMessagesCount && null !== e.items[t].unreadMessagesCount && a && (e.items[t].unreadMessagesCount += 1))
},
deleteChat(e, t) {
const s = Array.isArray(t) ? t : [t];
e.chats = e.chats.filter((e => !s.includes(e))),
e.items = c()(e.items, s)
},
setMessageIdToCentered(e, t) {
e.messageIdToCentered = t
},
setSearchIds(e, t) {
e.searchIds = t
},
setCurrentSearchIndex(e, t) {
e.currentSearchIndex = t
},
setSearchQuery(e, t) {
e.searchQuery = t
},
deleteMessage(e, {chatId: t, messageId: s}) {
const r = e.items[t];
if (!r)
return;
r.messages = r.messages.filter((e => e !== s));
const a = r.messages.length
, n = a ? r.messages[a - 1] : null;
r.prevMessage = n,
r.lastMessage = n
},
async deleteMessageById(e, t) {
const s = e.messages[t];
let r;
if (s) {
if (s.chatId && e.items[s.chatId]) {
let a = e.items[s.chatId].messages.filter((e => e !== +t))
, n = a[a.length - 1];
if (!n && !a.length) {
const t = await (0,
q.Sl)(s.chatId);
null != t && t.list.length && (r = t.list[t.list.length - 1],
e.items[s.chatId].unreadMessagesCount = 0,
a = [...a, r.id],
n = r.id)
}
e.items[s.chatId].messages = a,
e.items[s.chatId].lastMessage = n
}
s.isCanceled = !0,
e.messages = {
...e.messages,
message: s,
...r && {
[r.id]: r
}
}
}
},
decrMessageCancelSeconds(e, t) {
e.messages[t].cancelSeconds <= 0 ? e.messages[t].cancelSeconds = 0 : e.messages[t].cancelSeconds -= 1
},
setChatTyping(e, {chatId: t, status: s}) {
e.items[t] && (e.items[t].typing = s)
},
setMessage(e, t={}) {
e.messages[t.id] && (e.messages[t.id] = {
...e.messages[t.id],
...t
})
},
setMuted(e, {id: t, status: s}) {
e.items[t] && (e.items[t].isMuted = s)
},
setChatsSort(e, t) {
if (void 0 === t) {
let e = "newest";
try {
["newest", "oldest"].includes(N.A.getItem("sort_chats")) && (e = N.A.getItem("sort_chats"))
} catch (s) {}
t = e
}
e.chatsSort = t;
try {
N.A.setItem("sort_chats", t)
} catch (s) {}
},
setChatsFilter(e, t) {
e.chatsFilter = t
},
setAddedNewItemChats(e, {id: t}) {
e.chats.unshift(t)
},
setNewUserChats(e, t) {
e.chats.includes(t) || (e.chats.unshift(t),
e.chats.splice(-1, 1))
},
setChatAsRead(e, t) {
e.items[t] && (e.items[t].unreadMessagesCount = !1)
},
setLastReadMessageId(e, t) {
e.items[t] && (e.items[t].lastReadMessageId = e.items[t].lastMessage)
},
setChatAsUnRead(e, t) {
e.items[t] && (e.items[t].unreadMessagesCount = 1)
},
setFilteredChatsAsRead(e) {
Object.keys(e.items).forEach((t => {
e.items[t].unreadMessagesCount = 0
}
))
},
setNewMessageIds(e, t=[]) {
Array.isArray(t) || (t = [t]),
t.forEach((t => {
+e.currentChat != +t && e.items[t] && e.items[t].unreadMessagesCount && !e.items[t].newMessageId && (e.items[t].newMessageId = e.items[t].lastReadMessageId)
}
))
},
clearNewMessageId(e, t) {
e.items[t] && (e.items[t].newMessageId = null)
},
setMessageReleaseForms(e, {messageId: t, value: s}) {
e.messages[t] && (e.messages[t].releaseForms = s)
},
setMessageIsPinned(e, {messageId: t, value: s}) {
e.messages[t] && (e.messages[t].isPinned = s)
},
setChatMessagesPinnedCount(e, {chatId: t, value: s}) {
const r = e.items[t];
r && (r.countPinnedMessages || (r.countPinnedMessages = 0),
s ? r.countPinnedMessages += 1 : r.countPinnedMessages > 0 && (r.countPinnedMessages -= 1))
},
setChatUnpinned(e, {withUserId: t}) {
e.items[t] && (e.items[t].countPinnedMessages = 0)
},
setChatMessagesUnpinned(e, {withUserId: t}) {
e.items[t] && e.items[t].messages.forEach((t => {
e.messages[t] && (e.messages[t].isPinned = !1)
}
))
},
setLikePrevent(e, {messageId: t, value: s}) {
e.messages[t] && (e.messages[t].likePrevent = s)
},
setMessageCancelSeconds(e, {messageId: t, value: s}) {
e.messages[t] && (e.messages[t].cancelSeconds = s)
},
setIsMediaPlayed(e, {messageId: t, value: s}) {
e.messages[t] && (e.messages[t].isMediaPlayed = s)
},
setChatsHasMore(e, {userId: t, hasMoreTop: s, hasMoreBottom: r}) {
let a = {};
a = e.messagesHasMore[t] ? {
...e.messagesHasMore[t],
...void 0 !== s && {
top: s
},
...void 0 !== r && {
bottom: r
}
} : {
top: !(!1 === s),
bottom: !(!1 === r)
},
e.messagesHasMore = {
...e.messagesHasMore,
[t]: a
}
},
setChatsListHasMore(e, t) {
e.chatsListHasMore = t
},
setEmptyMessagesList(e, t) {
e.emptyMessagesList = t
},
setMuteNotifications(e, t) {
e.items[t] && (e.items[t].isMutedNotifications = !e.items[t].isMutedNotifications)
},
setFirstLoadingChatsList(e, t) {
e.firstLoadingChatsList = t
},
setFirstLoadingMessagesList(e, t) {
!e.firstLoadingMessagesList && t && (e.firstLoadingMessagesList = !0),
t || (e.firstLoadingMessagesList = !1)
},
setUsersTotal(e, t) {
e.usersTotal = t > 0 ? t : 0
},
setSelectedUsersIds(e, t) {
e.selectedUsersIds = t
},
setChatUserMedia(e, t) {
e.media = [...new Set(t)]
},
addChatUserMedia(e, t) {
e.media = [...new Set([...e.media, ...t])]
},
setQueueBuyersMarker(e, t=0) {
e.queueBuyersMarker = t
},
setQueueBuyersIds(e, {more: t=!1, ids: s=[]}={}) {
e.queueBuyersIds = t ? [...new Set([...e.queueBuyersIds, ...s])] : s
},
setQueueBuyersError(e, t) {
e.queueBuyersError = t
},
setSelectedUsers(e, t) {
e.selectedUsers.includes(t) ? e.selectedUsers = e.selectedUsers.filter((e => e !== t)) : e.selectedUsers.push(t)
},
setAllSelectedUsers(e) {
e.selectedUsers = e.chats
},
resetSelectedUsers(e) {
e.selectedUsers = []
},
removeSelectedUserById(e, t) {
const s = Array.isArray(t) ? t : [t];
e.selectedUsers = e.selectedUsers.filter((e => !s.includes(e)))
},
setGalleryNextLastId(e, t=null) {
e.galleryListNextLastId = t
},
setShowViewAllInclude(e, t) {
e.showViewAllInclude = t
},
setSelectViewAllInclude(e, t) {
e.selectViewAllInclude = t
},
setShowViewAllExclude(e, t) {
e.showViewAllExclude = t
},
setSelectViewAllExclude(e, t) {
e.selectViewAllExclude = t
},
setNextOffset(e, t) {
e.nextOffset = t
},
setMessagesQueue(e, {items: t}) {
const s = (0,
F.S8)(t, B.WX);
e.queueItems = s.entities.queues || {},
e.queueIds = s.result
},
setMessageScheduledQueue(e, t) {
e.scheduleQueueMessage = t
},
setMessageIsReportedByMeTemp(e, t=0) {
e.messages[t] && (e.messages[t] = {
...e.messages[t],
isReportedByMeTemp: !0
})
},
setHasPurchasedFeed(e, {id: t, status: s}) {
e.items[t] && e.items[t].hasPurchasedFeed !== s && (e.items[t] = {
...e.items[t],
hasPurchasedFeed: s
})
},
setEmptyMessages(e, t) {
e.messagesHasMore = {},
e.firstLoadingMessagesList = !1,
e.items[t] && (e.items[t].messages = [])
},
logout(e) {
Object.assign(e, {
chats: [],
items: {},
currentChat: null,
messages: {},
chatsLoading: !1,
chatsListLoading: !1,
sendMessageLoading: !1,
searchIds: [],
currentSearchIndex: null,
searchQuery: "",
chatsSort: null,
chatsFilter: null,
chatsListHasMore: !1,
emptyMessagesList: !1,
firstLoadingChatsList: !1,
firstLoadingMessagesList: !1,
usersTotal: 0,
selectedUsersIds: 0,
queueIds: [],
queueItems: {},
media: [],
queueBuyersMarker: 0,
queueBuyersIds: [],
queueBuyersError: !1,
selectedUsers: [],
galleryListNextLastId: void 0,
showViewAllInclude: !1,
selectViewAllInclude: [],
showViewAllExclude: !1,
selectViewAllExclude: [],
nextOffset: 0,
scheduleQueueMessage: null,
hasMoreUsers: !1,
messagesHasMore: {},
messageIdToCentered: null
})
}
}
, z = {
async fetchChats({commit: e, dispatch: t, state: s}, {limit: r=j.Jg, more: n=!1, ...o}={}) {
const {cancelToken: c, Cancel: d} = (0,
j.ws)("fetchChats")
, l = e => null !== e && (i()(e) || Array.isArray(e) || a()(e))
, u = e => {
e.forEach((e => {
l(e.lastMessage) && (e.lastMessage = null)
}
))
}
;
e("setLoading", !0),
e("setChatsListLoading", !0),
n || (e("setChatsListHasMore", !1),
e("setNextOffset", 0),
e("resetChats"));
try {
const a = await (0,
q._5)({
limit: r,
offset: s.nextOffset,
...o
}, c);
if (Array.isArray(null == a ? void 0 : a.list)) {
const {list: s} = a;
if (s.length) {
const r = undefined;
s.some(( ({lastMessage: e}) => l(e))) && ((0,
x.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: a
}
}),
u(s));
const i = (0,
F.S8)(s, B.Vl)
, o = i.result
, c = {};
o.forEach((e => {
c[e] = {
_views: ["cl"]
}
}
)),
await t("users/getUsersIfNeeded", {
entities: {
users: c
}
}, {
root: !0
}),
e("set", i, {
root: !0
}),
e(n ? "addChats" : "setChats", {
ids: o
}),
e("setNewMessageIds", o)
} else
n || a.hasMore || e("resetChats")
} else
(0,
x.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: a
}
});
return e("setChatsListHasMore", !(null == a || !a.hasMore)),
e("setNextOffset", (null == a ? void 0 : a.nextOffset) || s.nextOffset + r),
e("setLoading", !1),
e("setChatsListLoading", !1),
e("setFirstLoadingChatsList", !0),
Array.isArray(null == a ? void 0 : a.list) ? a : {
list: [],
hasMore: !1
}
} catch (m) {
return m instanceof d ? {
list: [],
hasMore: !1
} : (e("setChatsListHasMore", !1),
e("setNextOffset", 0),
e("setLoading", !1),
e("setChatsListLoading", !1),
e("setFirstLoadingChatsList", !0),
{
list: [],
hasMore: !1,
error: !0
})
}
},
async fetchChat({commit: e, dispatch: t}, s) {
try {
const r = await (0,
q.PB)(s);
if (r && "object" == typeof r) {
const s = (0,
F.S8)(r, B.ZH);
await t("users/getUsersIfNeeded", s, {
root: !0
}),
e("set", s, {
root: !0
})
} else
(0,
x.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: r
}
}),
Q()
} catch (r) {
H.A.replace({
name: "Chats"
}).then(( () => {
(0,
x.r_)(r)
}
))
}
},
async fetchChatsMessages({commit: e, dispatch: t}, {userId: s, lastId: r, firstId: a, id: n, more: i=!1, before: o=!0, limit: c=j.Jg, filter: d, order: l="desc"}={}) {
e("setEmptyMessagesList", !1),
i || e("setEmptyMessages", s);
try {
const u = await (0,
q.Sl)(s, {
lastId: r,
firstId: a,
id: n,
skipUsers: "all",
limit: c,
filter: d,
order: l
});
if (Array.isArray(null == u ? void 0 : u.list)) {
const {list: d} = u;
let l;
if (1 === c && 1 === d.length)
l = (0,
F.S8)(d[0], B.Lu),
e("set", l, {
root: !0
});
else {
if (d.length) {
l = (0,
F.S8)(d, B.PY),
await t("users/getUsersIfNeeded", l, {
root: !0
}),
e("releaseForms/setReleaseFormsNormalized", l, {
root: !0
}),
l.chatId = s,
l.messageId = l.id,
e("set", l, {
root: !0
});
const r = undefined
, a = {
id: s,
messageIds: l.result.reverse()
};
i && Object.assign(a, {
add: !0,
before: o
}),
e("setChatMessages", a)
} else
i || e("setEmptyMessagesList", !0);
if ([r, a, n].every((e => void 0 === e)))
e("setChatsHasMore", {
userId: s,
hasMoreTop: !!u.hasMore,
hasMoreBottom: !1
});
else {
const t = {
userId: s,
[o ? "hasMoreTop" : "hasMoreBottom"]: !!u.hasMore
};
u.list.length && a && !l.result.includes(+a) && (t[o ? "hasMoreBottom" : "hasMoreTop"] = !1),
e("setChatsHasMore", t)
}
e("setFirstLoadingMessagesList", !0)
}
} else
e("setChatsHasMore", {
userId: s,
[o ? "hasMoreTop" : "hasMoreBottom"]: !1
}),
e("setFirstLoadingMessagesList", !0),
alert((0,
X.t)("message.debug_alert_message"))
} catch (u) {
H.A.replace({
name: "Chats"
}).then(( () => {
(0,
x.r_)(u)
}
))
}
},
async fetchChatsUsers({commit: e, rootGetters: t, dispatch: s}, {query: r, offset: a, limit: n=j.Jg, ...i}={}) {
const {cancelToken: o, Cancel: c} = (0,
j.ws)("fetchChatsUsers");
try {
const c = t["users/needSkipUsersOnShort"] ? "all" : void 0
, d = await (0,
q.Q8)({
query: r,
offset: a,
limit: n,
total: r || a ? 0 : 1,
skipUsers: c,
...i
}, o);
if (d && "object" == typeof d) {
const {hasMore: t, list: r, total: a} = d;
if (e("setHasMoreUsers", !!t),
"number" == typeof a && e("setUsersTotal", a),
Array.isArray(r) && r.length) {
const t = (0,
F.S8)(r, B.P7);
return c && await s("users/getUsersIfNeeded", t, {
root: !0
}),
e("set", t, {
root: !0
}),
t.result
}
return []
}
(0,
x.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: d
}
})
} catch (d) {
if (d instanceof c)
throw d
}
return e("setUsersTotal", 0),
e("setHasMoreUsers", !1),
[]
},
async fetchMessagesQueue({commit: e}) {
try {
const t = await (0,
q.EE)();
Array.isArray(t) && e("setMessagesQueue", {
items: t
})
} catch {}
},
async clearQueueState({commit: e, state: t}, {id: s}) {
const r = Object.values(t.queueItems)
, a = undefined;
Object.values(t.messages).filter(( ({isFromQueue: e, queueId: t}) => e && t === s)).map(( ({id: e}) => e)).forEach((t => e("deleteMessageById", t))),
e("setMessagesQueue", {
items: r.filter((e => e.id !== s))
})
},
async delMessagesQueue({state: e, dispatch: t}, {id: s}) {
if (e.queueIds.includes(s))
try {
const e = await (0,
q.po)(s);
null != e && e.success && t("clearQueueState", {
id: s
})
} catch (r) {
(0,
x.r_)(r)
}
},
async getMessageScheduledQueue({commit: e}, {id: t}) {
const {cancelToken: s, Cancel: r} = (0,
j.ws)("getMessageScheduledQueue");
try {
const r = undefined;
return e("setMessageScheduledQueue", await (0,
q.Ji)(t, "scheduled", s)),
!0
} catch (a) {
a instanceof r || (0,
x.r_)(a)
}
return !1
},
async sendChatMessage({commit: e, state: t}, {id: s, data: r}) {
var a;
let n;
e("clearNewMessageId", s),
e("setSendMessageLoading", !0);
try {
n = await (0,
q._z)(s, r)
} catch (i) {
return (0,
x.r_)(i),
i
} finally {
e("setSendMessageLoading", !1)
}
if (null !== (a = n) && void 0 !== a && a.id) {
n.chatId = s;
const r = (0,
F.S8)(n, B.Lu);
e("set", r, {
root: !0
});
const a = undefined;
e("setChatMessages", {
id: s,
messageIds: r.result,
add: !0,
before: !1
});
const i = +s;
t.chats.includes(i) || e("setAddedNewItemChats", {
id: i
})
}
return n
},
async deleteChat({commit: e, dispatch: t, state: s}, r) {
const a = Array.isArray(r) ? r : [r];
try {
const r = await (0,
q._e)(a.join());
if (null != r && r.success) {
const r = a.filter((e => {
var t;
return null === (t = s.items[e]) || void 0 === t ? void 0 : t.countPinnedMessages
}
)).length;
r > 0 && t("users/updateChatPinnedCount", {
status: -r
}, {
root: !0
}),
e("deleteChat", a),
e("removeSelectedUserById", a),
e("setNextOffset", s.nextOffset - 1)
}
} catch (n) {
(0,
x.r_)(n)
}
},
async searchMessages({commit: e}, {id: t, query: s, filter: r}) {
let a;
try {
a = await (0,
q.t8)(t, {
query: s,
filter: r
})
} catch (n) {
return []
}
return Array.isArray(a) && (e("setSearchIds", a),
e("setSearchQuery", s)),
a
},
async deleteMessages({commit: e, dispatch: t}, {chatId: s, messageId: r}) {
try {
const n = await (0,
q.gQ)(r, s);
if (null != n && n.success) {
var a;
if (null !== (a = J.messages[r]) && void 0 !== a && a.isPinned) {
const e = J.items[s];
e && 0 === e.countPinnedMessages && t("users/updateChatPinnedCount", {
status: -1
}, {
root: !0
})
}
e("deleteMessage", {
chatId: s,
messageId: r
})
}
} catch (n) {
(0,
x.r_)(n)
}
},
async markChatAsRead({commit: e}, t) {
try {
const s = await (0,
q.mM)(t);
null != s && s.success && e("setChatAsRead", t)
} catch (s) {
(0,
x.r_)(s)
}
},
async markChatAsUnRead({commit: e}, t) {
try {
const s = await (0,
q.X9)(t);
null != s && s.success && (e("setChatAsUnRead", t),
e("setNewMessageIds", t))
} catch (s) {
(0,
x.r_)(s)
}
},
async markAllChatAsRead({commit: e}) {
try {
const t = await (0,
q.jT)();
null != t && t.success && e("setFilteredChatsAsRead")
} catch (t) {
(0,
x.r_)(t)
}
},
async toggleLikeMessage({commit: e, state: t}, {messageId: s, withUserId: r}) {
var a;
const n = t.messages[s];
if (!n || n.isLikeToggleInProgress)
return;
const i = {
messageId: s,
withUserId: r
};
let o;
e("setMessage", {
id: s,
isLiked: !n.isLiked,
isLikeToggleInProgress: !0
});
try {
o = n.isLiked ? await (0,
q.qe)(i) : await (0,
q.x8)(i)
} catch (c) {
(0,
x.r_)(c)
}
null !== (a = o) && void 0 !== a && a.success || e("setMessage", {
id: s,
isLiked: n.isLiked
}),
e("setMessage", {
id: s,
isLikeToggleInProgress: !1
})
},
async hideChats({commit: e, dispatch: t, state: s}, r) {
let a;
try {
var n, i;
if (a = await (0,
q.N_)(r),
null !== (n = a) && void 0 !== n && n.success)
null !== (i = s.items[r]) && void 0 !== i && i.countPinnedMessages && t("users/updateChatPinnedCount", {
status: -1
}, {
root: !0
}),
e("deleteChat", r)
} catch (o) {
(0,
x.r_)(o)
}
return a
},
async toggleMuteNotifications({commit: e, state: t, rootState: s}, r) {
const {isMutedNotifications: a} = t.items[r];
let n;
try {
var i;
if (n = a ? await (0,
q.R_)(r) : await (0,
q.uo)(r),
null !== (i = n) && void 0 !== i && i.success) {
var o;
e("setMuteNotifications", r);
const t = s.users.items[r];
if (null != t && null !== (o = t.listsStates) && void 0 !== o && o.length) {
const s = undefined;
e("users/setUserData", {
userId: r,
data: {
listsStates: t.listsStates.map((e => "muted" === e.type ? {
...e,
hasUser: !e.hasUser
} : e))
}
}, {
root: !0
})
}
}
} catch (c) {
(0,
x.r_)(c)
}
return n
},
async fetchChatsUsersMedia({commit: e, state: t, dispatch: s}, r={}) {
const a = {
...(0,
G.NE)(r),
lastId: (null == r ? void 0 : r.lastId) || t.galleryListNextLastId
};
try {
const t = await (0,
q.G_)(a);
if (!Array.isArray(null == t ? void 0 : t.list))
return !1;
if (e("setGalleryNextLastId", t.nextLastId),
t.list.length) {
const s = (0,
F.S8)(t.list, B.PY);
e("set", s, {
root: !0
}),
e(a.lastId ? "addChatUserMedia" : "setChatUserMedia", s.result)
} else if (null != t && t.hasMore)
return await s("fetchChatsUsersMedia", {
...a,
lastId: t.nextLastId
});
return (0,
G.Kp)(null == t ? void 0 : t.hasMore)
} catch (n) {}
return !1
},
async fetchQueueBuyersList({commit: e, rootGetters: t, dispatch: s, state: r}, {more: a=!1, ...n}) {
e("setQueueBuyersError", !1);
try {
a || (e("setQueueBuyersMarker"),
e("setQueueBuyersIds"));
const i = t["users/needSkipUsersOnShort"] ? "all" : void 0
, o = await (0,
q.yP)({
skipUsers: i,
marker: r.queueBuyersMarker,
...n
});
if (Array.isArray(null == o ? void 0 : o.list) && (o.marker && e("setQueueBuyersMarker", o.marker),
o.list.length)) {
const t = (0,
F.S8)(o.list, B.P7);
i && await s("users/getUsersIfNeeded", t, {
root: !0
}),
e("set", t, {
root: !0
}),
e("setQueueBuyersIds", {
more: a,
ids: t.result
})
}
return o
} catch (i) {
e("setQueueBuyersError", !0)
}
return !1
},
newMessageFromSocket({commit: e}, t) {
const {bottom: s} = J.messagesHasMore[t.id] || {};
s || e("setChatMessages", t)
},
async togglePinMessage({commit: e, state: t, dispatch: s}, {messageId: r, withUserId: a}) {
try {
var n;
e("setLoading", !0);
const i = t.messages[r]
, o = !(!i || !i.isPinned)
, c = i && i.chatId;
let d;
if (d = o ? await (0,
q.qm)(r, a) : await (0,
q.rS)(r, a),
null !== (n = d) && void 0 !== n && n.success) {
e("setMessageIsPinned", {
messageId: r,
value: !o
}),
e("setChatMessagesPinnedCount", {
chatId: c,
value: !o
});
const a = c && t.items[c];
if (a) {
const {countPinnedMessages: e} = a;
(!o && 1 === e || o && 0 === e) && s("users/updateChatPinnedCount", {
status: o ? -1 : 1
}, {
root: !0
})
}
}
} catch (i) {
(0,
x.r_)(i)
}
e("setLoading", !1)
},
async unpinAllChatMessages({commit: e, dispatch: t}, {withUserId: s}) {
try {
e("setLoading", !0);
const r = await (0,
q.C7)(s);
null != r && r.success && (e("setChatUnpinned", {
withUserId: s
}),
e("setChatMessagesUnpinned", {
withUserId: s
}),
e("setEmptyMessagesList", !0),
t("users/updateChatPinnedCount", {
status: -1
}, {
root: !0
}))
} catch (r) {
(0,
x.r_)(r)
}
e("setLoading", !1)
},
async hideMessage({commit: e, dispatch: t, state: s}, r) {
try {
const a = s.messages[r]
, n = null == a ? void 0 : a.chatId
, i = await (0,
q.oP)(r, {
withUserId: n
});
if (null != i && i.success) {
const i = !(null == a || !a.isPinned)
, o = n && s.items[n];
n && i && e("setChatMessagesPinnedCount", {
chatId: n,
value: !1
}),
o && 0 === o.countPinnedMessages && t("users/updateChatPinnedCount", {
status: -1
}, {
root: !0
}),
e("deleteMessageById", r),
o && "PinnedMessages" === H.A.currentRoute.name && e("setEmptyMessagesList", !0)
}
return i
} catch (a) {
(0,
x.r_)(a)
}
return !1
},
async fetchMessageToPost({commit: e, dispatch: t}, {limit: s, userId: r, groupId: a}={}) {
let n;
e("posts/setError", !1, {
root: !0
}),
e("posts/setLoading", !0, {
root: !0
});
try {
if (r) {
const {list: e} = await (0,
q.Sl)(r, {
groupId: a,
limit: s
});
if (e.length) {
const [t] = e;
n = {
...t,
chatId: r,
messageId: t.id
}
}
} else
n = await (0,
q.HC)(a);
n.isDeleted = !0
} catch (o) {
return e("posts/setLoading", !1, {
root: !0
}),
e("posts/setError", !0, {
root: !0
}),
[]
}
if (!n || "object" != typeof n)
return (0,
x.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
post: n
}
}),
[];
a && (n.id = n.queueId),
e("posts/setActivePost", +n.id, {
root: !0
});
const i = (0,
F.S8)(n, B.Qn);
return await t("users/getUsersIfNeeded", i, {
root: !0
}),
t("posts/setPost", n, {
root: !0
}),
e("posts/setLoading", !1, {
root: !0
}),
n
}
}
},
991566: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
mutations: function() {
return n
},
state: function() {
return a
}
});
const r = () => ({
search: {
isShown: !1
},
searchList: {
isShown: !1
}
})
, a = {
search: {
isShown: !1
},
searchList: {
isShown: !1
}
}
, n = {
toggleSearch(e, t) {
e.search.isShown = t
},
toggleSearchList(e, t) {
e.searchList.isShown = t
},
logout(e) {
Object.assign(e, {
search: {
isShown: !1
},
searchList: {
isShown: !1
}
})
}
}
},
437589: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return $
},
getters: function() {
return M
},
mutations: function() {
return _
},
state: function() {
return T
}
});
var r = s(16280)
, a = s.n(r)
, n = s(517642)
, i = s.n(n)
, o = s(658004)
, c = s.n(o)
, d = s(733853)
, l = s.n(d)
, u = s(845876)
, m = s.n(u)
, f = s(432475)
, h = s.n(f)
, p = s(515024)
, g = s.n(p)
, y = s(731698)
, S = s.n(y)
, v = s(962953)
, w = s.n(v)
, I = s(22504)
, b = s(632134)
, A = s(458723)
, P = s(692492)
, k = s(758987)
, C = s(977434);
const L = () => ({
items: {},
itemsIds: {},
offset: 0,
hasMore: !1,
loading: !1
})
, T = {
items: {},
itemsIds: {},
offset: 0,
hasMore: !1,
loading: !1
}
, M = {
getComment: e => t => e.items[t],
getCommentsByPostId: e => t => e.itemsIds[t] ? e.itemsIds[t].map((t => e.items[t])) : []
}
, _ = {
setLoading(e, t) {
e.loading = t
},
setHasMore(e, t) {
e.hasMore = t
},
setOffset(e, t=0) {
e.offset = t
},
toggleCommentLike(e, {id: t, isLiked: s, likesCount: r, byAuthor: a}) {
e.items[t].isLiked = s,
e.items[t].likesCount = r,
a && (e.items[t].isLikedByAuthor = s)
},
deleteComment(e, t) {
const s = {
...e.items
};
delete s[t],
e.items = s
},
logout(e) {
Object.assign(e, {
items: {},
itemsIds: {},
offset: 0,
hasMore: !1,
loading: !1
})
}
}
, $ = {
async fetchPostComments({commit: e, state: t, dispatch: s}, {id: r, limit: a=C.Jg, more: n=!1}) {
let i = [];
e("setLoading", !0),
n || e("setOffset", 0);
try {
const o = await (0,
A.rq)({
id: r,
limit: a,
offset: t.offset
})
, {list: c, hasMore: d, nextOffset: l} = o || {};
if (e("setHasMore", Boolean(d)),
e("setOffset", l),
Array.isArray(c)) {
if (c.length) {
const a = (0,
I.S8)(c, b.TR);
await s("users/getUsersIfNeeded", a, {
root: !0
}),
e("set", a, {
root: !0
}),
i = a.result,
e("set", {
entities: {
commentIds: {
[r]: n ? [...new Set([...t.itemsIds[r] || [], ...i])].sort(( (e, t) => t - e)) : i
}
}
}, {
root: !0
})
}
} else
(0,
k.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: c
}
})
} catch (o) {}
return e("setLoading", !1),
i
},
async sendComment({commit: e, state: t}, {id: s, ...r}) {
const a = await (0,
A.tP)({
id: s,
...r
});
if (null != a && a.id) {
const r = (0,
I.S8)(a, b.X3);
e("set", r, {
root: !0
});
const n = r.result;
e("set", {
entities: {
commentIds: {
[s]: [n, ...t.itemsIds[s] || []]
}
}
}, {
root: !0
}),
e("posts/incrementPostCommentsCount", s, {
root: !0
})
}
return a
},
async likeComment({commit: e}, {id: t, like: s, byAuthor: r}) {
try {
const a = s ? await (0,
P.Dt)(t) : await (0,
P.qp)(t);
if (null != a && a.success) {
const {isLiked: s, likesCount: n} = a;
e("toggleCommentLike", {
id: t,
isLiked: s,
likesCount: n,
byAuthor: r
})
}
} catch (a) {}
},
async deleteComment({commit: e, state: t}, {postId: s, commentId: r}) {
try {
const a = await (0,
P.jl)(r);
null != a && a.success && (e("posts/decrementPostComment", s, {
root: !0
}),
e("set", {
entities: {
commentIds: {
[s]: [...t.itemsIds[s] || []].filter((e => e !== r))
}
}
}, {
root: !0
}),
e("deleteComment", r))
} catch (a) {}
}
}
},
359839: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return p
},
mutations: function() {
return h
},
state: function() {
return f
}
});
var r = s(962953)
, a = s.n(r)
, n = s(974353)
, i = s.n(n)
, o = s(343522)
, c = s.n(o)
, d = s(381465)
, l = s(977434)
, u = s(445964);
i().extend(c());
const m = () => ({
allTransactions: [],
latestTransactions: [],
marker: void 0,
timePeriod: {
startDate: i()(),
endDate: i()(),
type: "all"
},
isHasTransactions: !1,
isHasTransactionsLoading: !1,
startDateModel: null
})
, f = m()
, h = {
setAllTransactions(e, {items: t=[], more: s=!1}={}) {
e.allTransactions = (0,
u.A)(s ? [...e.allTransactions, ...t] : [...t])
},
setLatestTransactions(e, t=[]) {
e.latestTransactions = t
},
setMarker(e, t) {
e.marker = t
},
setTimePeriod(e, {startDate: t, endDate: s, type: r="custom"}) {
let a = t
, n = s || i()();
const {startDateModel: o} = e;
o && (a = t.isAfter(o) ? t : o,
n = o.isBefore(n) ? n : i()()),
e.timePeriod = {
startDate: a,
endDate: n,
startDateFormatted: a.format(),
endDateFormatted: n.format(),
type: r
}
},
setStartDateModel(e, t) {
e.startDateModel = i()(t)
},
setIsHasTransactions(e, t) {
e.isHasTransactions = t
},
setIsHasTransactionsLoading(e, t) {
e.isHasTransactionsLoading = t
},
logout(e) {
Object.assign(e, m())
}
}
, p = {
async fetchIsHasTransactions({commit: e}) {
e("setIsHasTransactionsLoading", !0);
try {
const {hasTransactions: t} = await (0,
d.yw)();
e("setIsHasTransactions", t)
} catch (t) {}
e("setIsHasTransactionsLoading", !1)
},
async fetchAllTransactions({commit: e, state: t}, {limit: s=l.Jg, more: r=!1, type: a="all", dateFrom: n=t.timePeriod.startDateFormatted, dateTo: i=t.timePeriod.endDateFormatted}={}) {
r || (e("setAllTransactions"),
e("setMarker"));
try {
const {list: o, nextMarker: c, hasMore: l} = await (0,
d.r2)({
limit: s,
type: a,
dateFrom: n,
dateTo: i,
marker: t.marker
});
if (Array.isArray(o))
return o.length && e("setAllTransactions", {
items: o,
more: r
}),
e("setMarker", c),
l
} catch (o) {}
},
async fetchLatestTransactions({commit: e}, {limit: t=5, type: s="all"}={}) {
try {
const {list: r} = await (0,
d.r2)({
limit: t,
type: s
});
Array.isArray(r) && r.length && e("setLatestTransactions", r)
} catch (r) {}
}
}
},
295190: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
mutations: function() {
return n
},
state: function() {
return a
}
});
const r = () => ({
currentPlayVideo: null
})
, a = {
currentPlayVideo: null
}
, n = {
setCurrentPlayVideo(e, t) {
e.currentPlayVideo = t
},
resetCurrentPlayVideo(e) {
e.currentPlayVideo = null
},
logout(e) {
Object.assign(e, {
currentPlayVideo: null
})
}
}
},
924632: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
getters: function() {
return u
},
mutations: function() {
return m
},
state: function() {
return l
}
});
var r = s(688055)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(885471)
, c = s(284419);
const d = () => ({
chatDraft: {},
postDraft: {}
})
, l = {
chatDraft: {},
postDraft: {}
}
, u = {
draftMessageById: e => t => {
const s = JSON.parse(c.A.getItem("draft") || "{}")
, r = i()(s, `draft.chatDraft.${t}`, null);
return e.chatDraft[t] && r ? e.chatDraft[t] : null
}
,
userPostDraft: (e, t, s, r) => i()(e.postDraft, r["auth/authUserId"], {})
}
, m = {
setChatDraft(e, t) {
o.default.set(e.chatDraft, String(t.chatId), t)
},
removeChatDraft(e, t) {
o.default.delete(e.chatDraft, t)
},
setPostDraft(e, {draft: t, userId: s}) {
const r = a()(e.postDraft);
r[s] = t,
e.postDraft = r
},
removePostDraft(e, t) {
o.default.delete(e.postDraft, t)
},
logout(e) {
Object.assign(e, {
chatDraft: {},
postDraft: {}
})
}
}
},
967942: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
mutations: function() {
return n
},
state: function() {
return a
}
});
const r = () => ({
hasError: !1
})
, a = {
hasError: !1
}
, n = {
setErrorCondition(e, t) {
e.hasError = t
},
logout(e) {
Object.assign(e, {
hasError: !1
})
}
}
},
20433: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return o
},
mutations: function() {
return i
},
state: function() {
return n
}
});
const r = () => fetch("https://cdn2.onlyfans.com/hash/").then((e => e.ok && e.text()))
, a = () => ({
hash: "",
hashTimeStamp: void 0
})
, n = {
hash: "",
hashTimeStamp: void 0
}
, i = {
setHash(e, t) {
e.hash = t
},
setHashTimeStamp(e, t) {
e.hashTimeStamp = t
},
logout() {}
}
, o = {
async fetchHash({state: e, commit: t}) {
const s = +new Date;
if (e.hashTimeStamp && e.hashTimeStamp + 1e4 > s)
return;
let a;
t("setHashTimeStamp", s);
try {
a = await r()
} catch {
t("setHashTimeStamp", void 0)
}
a && t("setHash", a)
}
}
},
890309: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
getters: function() {
return I
},
mutations: function() {
return b
},
state: function() {
return w
}
});
var r = s(517642)
, a = s.n(r)
, n = s(658004)
, i = s.n(n)
, o = s(733853)
, c = s.n(o)
, d = s(845876)
, l = s.n(d)
, u = s(432475)
, m = s.n(u)
, f = s(515024)
, h = s.n(f)
, p = s(731698)
, g = s.n(p)
, y = s(962953)
, S = s.n(y);
const v = () => ({
items: []
})
, w = {
items: []
}
, I = {
isHintHiddenById: e => t => e.items.includes(t)
}
, b = {
setHiddenHint(e, t) {
e.items = [...new Set([...e.items, t])]
},
logout(e) {
Object.assign(e, {
items: []
})
}
}
},
753809: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return I
},
getters: function() {
return v
},
mutations: function() {
return w
},
state: function() {
return S
}
});
var r = s(763375)
, a = s.n(r)
, n = s(944114)
, i = s.n(n)
, o = s(194490)
, c = s.n(o)
, d = s(713609)
, l = s.n(d)
, u = s(962953)
, m = s.n(u)
, f = s(22504)
, h = s(202600)
, p = s(632134)
, g = s(534173);
const y = () => ({
ids: [],
items: [],
offset: 0,
hasMore: !1
})
, S = {
ids: [],
items: [],
offset: 0,
hasMore: !1
}
, v = {
userHintsList: (e, t, s) => e.items.filter(( ({payload: e, text: t}) => {
if (!t.length)
return !1;
if (null != e && e.user && "subscription_expired" === (null == e ? void 0 : e.type)) {
const t = s.users.items[e.user] || {}
, {canAddSubscriber: r, subscribedBy: a} = t;
return r && !a
}
return !0
}
)),
dangerHints: (e, t, s, r) => {
const a = r["auth/authUser"]
, {needTagCount: n, isPerformer: i, faceIdRegular: o} = a
, c = t.userHintsList.filter(( ({isPermanent: e}) => e));
return n && i && c.push({
isPermanent: !0,
code: "tags_required",
text: (0,
g.t)("message.notification_message_tags_required", {
CONTENT_COUNT: n
})
}),
null != o && o.canPostpone && c.unshift({
isPermanent: !0,
code: "face_id_request",
text: (0,
g.t)("message.modal_face_id_text")
}),
c
}
,
otherHints: (e, t) => t.userHintsList.filter(( ({isPermanent: e}) => !e))
}
, w = {
setUserHints(e, {ids: t, list: s, hasMore: r, offset: n}) {
const i = s.filter(( ({id: t}) => !e.ids.includes(t))).reverse();
e.ids = a()([...e.ids, ...t]),
e.items = e.items.concat(i),
e.hasMore = r,
e.offset = n
},
resetUserHints(e) {
e.ids = [],
e.items = [],
e.offset = 0,
e.hasMore = !1
},
deleteUserHint(e, t) {
const s = e => t !== e && ("string" != typeof e || !e.includes(t));
e.items = e.items.filter(( ({id: e, code: t}) => s(e) && s(t))),
e.ids = e.ids.filter((e => s(e))),
e.offset = e.offset - 1
},
logout(e) {
Object.assign(e, {
ids: [],
items: [],
offset: 0,
hasMore: !1
})
}
}
, I = {
async fetchHints({commit: e, state: t}) {
const {offset: s} = t;
let r;
try {
r = await (0,
h.x5)({
offset: s
})
} catch (i) {}
const {list: a=[], hasMore: n=!1} = r || {};
if (Array.isArray(a) && a.length) {
const {result: t, entities: {hint: i}} = (0,
f.S8)(a, p.cz)
, o = s + r.list.filter(( ({isPermanent: e}) => !e)).length;
e("setUserHints", {
ids: t,
list: Object.values(i),
hasMore: n,
offset: o
})
} else
n || e("setUserHints", {
ids: [],
list: [],
hasMore: n,
offset: s
});
return r || {}
},
async removeHint({commit: e, state: t}, s) {
try {
const {isPersonal: r} = t.items.find(( ({id: e}) => e === s)) || {}
, a = r ? h.KW : h.w9
, n = await a(s);
null != n && n.success && e("deleteUserHint", s)
} catch (r) {
Sentry.captureException(r)
}
}
}
},
146515: function(e, t, s) {
"use strict";
s.r(t);
var r = s(984058)
, a = s.n(r)
, n = s(725440)
, i = s.n(n)
, o = s(962953)
, c = s.n(o);
const d = s(464654)
, l = {};
d.keys().forEach((e => {
if ("./index.js" === e)
return;
const t = a()(e.replace(/^.*[\\/]/, "").replace(/\.js$/, ""));
l[t] = {
namespaced: !0,
...d(e)
}
}
)),
t.default = l
},
733213: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return T
},
getters: function() {
return C
},
mutations: function() {
return L
},
state: function() {
return k
}
});
var r = s(962193)
, a = s.n(r)
, n = s(16280)
, i = s(30976)
, o = s(156591)
, c = s(18188)
, d = s(927324)
, l = s.n(d)
, u = s(758987)
, m = s(284419)
, f = s(944114)
, h = s(533110)
, p = s(178863);
const g = "initObject"
, y = 6e5
, S = (e=g, t=y, s) => {
let r = null;
if ("string" != typeof e)
return null;
try {
const t = window.localStorage.getItem(e);
r = JSON.parse(t)
} catch {
return null
}
if (!(0,
p.Is)(r) || !r.datetime)
return null;
const a = s && s === r.revision
, n = Date.now() - r.datetime < t;
return a && n ? r.value : null
}
, v = (e=g, t={}, s) => {
if ("string" != typeof e)
return !1;
if (!(0,
p.Is)(t))
return !1;
const r = {
value: t,
datetime: Date.now(),
revision: s
};
try {
return window.localStorage.setItem(e, JSON.stringify(r)),
!0
} catch {
return !1
}
}
, w = (e=g) => {
if ("string" != typeof e)
return !1;
try {
return window.localStorage.removeItem(e),
!0
} catch {
return !1
}
}
, I = e => (0,
p.Is)(e) && Object.keys(e).length > 0
, b = e => {
const {recaptchaV3Public: t, recaptchaV2Public: s, recaptchaEPublic: r, recaptchaECPublic: a, hCaptchaSiteKey: n, hCaptchaPassiveSiteKey: i, turnstile: o, geetestCaptcha: c} = e;
if (delete e.recaptchaV3Public,
delete e.recaptchaV2Public,
delete e.recaptchaEPublic,
delete e.recaptchaECPublic,
delete e.hCaptchaSiteKey,
delete e.hCaptchaPassiveSiteKey,
delete e.turnstile,
delete e.geetestCaptcha,
e.captcha = [],
r || t) {
const n = {};
r && (n.enterprise = {
invisible: r,
visible: a
}),
t && (n.api = {
invisible: t,
visible: s
}),
e.captcha.push({
recaptcha: n
})
}
if ((null != o && o.invisible || null != o && o.managed) && e.captcha.push({
turnstile: o
}),
i || n) {
const t = {};
i && (t.invisible = i),
n && (t.visible = n),
e.captcha.push({
hcaptcha: t
})
}
return c && e.captcha.push({
geetestCaptcha: c
}),
e
}
, A = "https://texts.onlyfans.com/init.json"
, P = undefined
, k = ( () => ({
apiError: !1,
cardVerification: {
minAmount: null,
maxAmount: null
},
currentRev: null,
textsVersionId: null,
currentDate: Date.now(),
geoInfoCached: !1,
geoInfo: {
geo: {
countryCode: null
}
},
goBack: {
initHistoryState: null,
routeFrom: null
},
isAuth: null,
languages: {},
neededReload: !1,
settings: {},
usersLinksMaxLimit: 0,
reportAbuseOptions: {},
initLoaded: !1,
meRequestLoaded: !1,
textsLoaded: !1,
cookiesAccepted: l().get("cookiesAccepted", {
domain: ".onlyfans.com"
}) || m.A.getItem("cookiesAccepted"),
repaymentAgree: !1,
captcha: [],
socialMediaProviders: null,
socialButtonsMaxLimit: 0,
uploaderInit: !1,
faceIdAvailable: !1,
turnstile: null
}))()
, C = {
getInit: e => e,
goBackState: e => e.goBack,
shouldSendStat: e => !!e.isPostsViewsEnabled,
isMainRequestLoaded: e => e.initLoaded && e.meRequestLoaded && e.textsLoaded
}
, L = {
setInit(e, t) {
Object.assign(e, {
initLoaded: !0
}, b({
...t
}))
},
setInitAuth(e, t) {
e.isAuth = t
},
setNeededReload(e, t) {
e.neededReload = t
},
setCurrentRev(e, t) {
e.currentRev = t
},
setCookiesAccepted(e, t) {
e.cookiesAccepted = t
},
setApiError(e, t) {
e.apiError = t
},
setGoBackRouteFrom(e, t) {
e.goBack.routeFrom = t
},
setGoBackInitHistoryState(e, t) {
e.goBack.initHistoryState = t
},
setGeoInfo(e, t) {
e.geoInfo = t
},
setGeoInfoCached(e, t) {
e.geoInfoCached = t
},
setCurrentDate(e, t) {
e.currentDate = t
},
setReportAbuseOptions(e, t) {
e.reportAbuseOptions = t
},
setMeRequestLoaded(e, t) {
e.meRequestLoaded = t
},
setTextLoaded(e, t) {
e.textsLoaded = t
},
setRepaymentAgree(e, t) {
e.repaymentAgree = t
},
setUploaderInit(e) {
e.uploaderInit = !0
},
logout(e) {
e.isAuth = !1,
e.meRequestLoaded = !1
}
}
, T = {
async fetchInit({commit: e}) {
try {
const t = "202410251315-8cb2352710"
, s = S(g, y, t)
, r = undefined;
if (I(s) && !s.neededReload)
return void e("setInit", s);
let n;
A && (n = await (0,
i.Gj)(A)),
n && !a()(n) || (n = await (0,
i.$J)()),
"object" == typeof n ? (e("setInit", n),
n.neededReload || v(g, n, t)) : ((0,
u.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: n
}
}),
e("recoveryMode/setRecoveryMode", !0, {
root: !0
}))
} catch (t) {}
},
async fetchGeoInfo({state: e, commit: t}, s=!1) {
if (!e.geoInfoCached || s)
try {
const e = undefined;
t("setGeoInfo", await (0,
i.Et)()),
t("setGeoInfoCached", !0)
} catch (r) {
t("setGeoInfoCached", !1)
}
},
async fetchReportAbuseOptions({commit: e}) {
try {
const t = await (0,
o.DX)();
t && "object" == typeof t && e("setReportAbuseOptions", t)
} catch (t) {}
},
acceptCookies({commit: e}, t=!0) {
const s = t ? "all" : "essential";
l().set("cookiesAccepted", s, {
domain: ".onlyfans.com",
expires: "3Y"
}),
m.A.setItem("cookiesAccepted", s),
e("setCookiesAccepted", s);
try {
(0,
c.x2)({
value: s
})
} catch (r) {}
}
}
},
129912: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return k
},
mutations: function() {
return P
},
state: function() {
return A
}
});
var r = s(517642)
, a = s.n(r)
, n = s(658004)
, i = s.n(n)
, o = s(733853)
, c = s.n(o)
, d = s(845876)
, l = s.n(d)
, u = s(432475)
, m = s.n(u)
, f = s(515024)
, h = s.n(f)
, p = s(731698)
, g = s.n(p)
, y = s(962953)
, S = s.n(y)
, v = s(22504)
, w = s(632134)
, I = s(202600);
const b = () => ({
itemIds: [],
lastSavedUserId: null
})
, A = {
itemIds: [],
lastSavedUserId: null
}
, P = {
setItemIds(e, t=[]) {
e.itemIds = t
},
setLastUserId(e, t) {
e.lastSavedUserId = t
},
logout(e) {
Object.assign(e, {
itemIds: [],
lastSavedUserId: null
})
}
}
, k = {
async fetchLastPosts({commit: e}, {id: t}) {
e("setItemIds", []);
const s = {
id: t,
limit: 3,
onlyCanView: 1,
pinned_sort: 0,
counters: 1
};
try {
var r, a;
const n = await (0,
I.dK)({
...s,
type: "photos"
})
, i = await (0,
I.dK)({
...s,
type: "videos"
})
, o = [...null !== (r = null == n ? void 0 : n.list) && void 0 !== r ? r : [], ...null !== (a = null == i ? void 0 : i.list) && void 0 !== a ? a : []];
if (Array.isArray(o) && o.length) {
const s = (0,
v.S8)(o, w.uY)
, r = [...new Set(s.result)];
e("set", s, {
root: !0
}),
e("setItemIds", r),
e("setLastUserId", t)
}
} catch (n) {}
}
}
},
724781: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return se
},
getters: function() {
return ee
},
mutations: function() {
return te
},
state: function() {
return K
}
});
var r = s(891648)
, a = s.n(r)
, n = s(897648)
, i = s.n(n)
, o = s(962193)
, c = s.n(o)
, d = s(858156)
, l = s.n(d)
, u = s(489463)
, m = s.n(u)
, f = s(16280)
, h = s.n(f)
, p = s(944114)
, g = s.n(p)
, y = s(517642)
, S = s.n(y)
, v = s(658004)
, w = s.n(v)
, I = s(733853)
, b = s.n(I)
, A = s(845876)
, P = s.n(A)
, k = s(432475)
, C = s.n(k)
, L = s(515024)
, T = s.n(L)
, M = s(731698)
, _ = s.n(M)
, $ = s(962953)
, E = s.n($)
, V = s(885471)
, D = s(22504)
, U = s(632134)
, O = s(758987)
, R = s(826489)
, F = s.n(R)
, B = s(565144)
, q = s(202600)
, x = s(610023)
, j = s(348533)
, N = s(125785)
, X = s(957903)
, H = s(578787)
, G = s(266693)
, Z = s(399411);
const Q = (e, t) => {
e.users = {
...e.users,
[t.id]: {
...e.users[t.id],
...t
}
}
}
, J = () => ({
isShow: !1,
activeStreamVoting: null
})
, W = () => ({
isShow: !1,
optionId: null,
streamId: null,
query: "",
sort: "name",
order: "asc"
})
, Y = () => ({
type: "",
stream: {
id: 0,
thumbUrl: "",
startedAt: "",
description: "",
rawDescription: "",
isOpened: !0,
canJoin: !1,
canCoStreaming: !1,
canEdit: !1,
isShowTips: !1,
tipsSumm: 0,
showCoStreamingRequest: !1,
commentsCount: 0,
canComment: !1,
likesCount: 0,
canLike: !1,
canReport: !1,
roomName: "",
serverList: {},
streamType: null,
canSendPrivateWithTip: !1,
rawTipsGoal: ""
},
user: {
id: 0,
name: "",
username: "",
displayName: null,
isVerified: !1,
tipsEnabled: !1,
subscribedBy: !1,
canEarn: !1,
isPerformer: !1,
avatar: null,
avatarThumbs: null,
openseaInfo: {}
},
streamState: "beforeStart",
videoPlaying: !1,
tcpVideoOnPause: !1,
volume: 1,
muted: !1,
stretchVideo: !1,
videoElementRenderKey: +new Date,
tipGoal: {
sum: 0,
progress: 0,
description: "",
rawTipsGoal: ""
},
voting: null,
showTapToPlay: !1,
showUnmuteBtn: !1,
videoLoaded: !1,
streamLook: {
sent: !1,
approved: void 0,
waiting: !1
},
endReason: "",
sentryLog: {
getApiUrlRequest: {},
getApiUrlResponse: {},
roomName: null,
streamId: null,
user: null,
detailedSpeedResult: null
},
streamTypes: {},
streamType: "",
failoverStreamTypes: []
})
, z = () => ({
mode: "",
streams: {},
streamsOrder: [],
joinedStreamUsername: null,
primaryInstance: null,
timer: "0:00",
comments: {
ids: [],
items: {}
},
hasMoreComments: !1,
loadedCommentsCount: 0,
likes: [],
users: {},
viewers: {
ids: [],
hasMore: !1,
loading: !1
},
streamViewerIds: [],
totalViewers: 0,
privateCommentUser: null,
switchToDualStreaming: !1,
primaryMovedToPartner: !1,
UI: {
showStreamingActions: !1,
showStreamingComments: !1,
showJoinStreamBtn: !0,
disabledJoinStreamBtn: !0,
showCommentForm: !1,
showEndScreen: !1,
endReason: "",
greetingVisible: !0,
commentsViewMode: "full",
hasUnreadComments: !1,
showStreamingViewersModal: !1,
showStreamingTipsModal: !1,
showViewControlsModal: !1,
viewMode: "grid",
commentInputFocused: !1,
streamHasFatalError: !1,
showStreamInformationModal: !1,
showTipGoalModal: !1,
showServerMaintenance: !1,
showBlockViewerModal: !1,
overlays: {
visibility: {
showTipGoalOverlay: !1,
showPollOverlay: !1,
showStreamDescriptionOverlay: !1
},
activeTipGoalOverlay: null,
activePollOverlay: null
}
},
serverMaintenanceAt: null,
streamPushNotification: {
isEnabled: !1
},
tipsModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
viewersModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
coStream: {
coStreamRequestSent: !1,
coStreamRequestCount: 0,
coStreamRequestApiError: !1,
coStreamInviteReceived: !1,
showCoStreamInviteReceivedToast: !1
},
pollModal: {
isShow: !1,
activeStreamVoting: null
},
pollParticipantsModal: {
isShow: !1,
optionId: null,
streamId: null,
query: "",
sort: "name",
order: "asc"
},
pollParticipants: {
ids: [],
hasMore: !1,
loading: !1
}
})
, K = {
mode: "",
streams: {},
streamsOrder: [],
joinedStreamUsername: null,
primaryInstance: null,
timer: "0:00",
comments: {
ids: [],
items: {}
},
hasMoreComments: !1,
loadedCommentsCount: 0,
likes: [],
users: {},
viewers: {
ids: [],
hasMore: !1,
loading: !1
},
streamViewerIds: [],
totalViewers: 0,
privateCommentUser: null,
switchToDualStreaming: !1,
primaryMovedToPartner: !1,
UI: {
showStreamingActions: !1,
showStreamingComments: !1,
showJoinStreamBtn: !0,
disabledJoinStreamBtn: !0,
showCommentForm: !1,
showEndScreen: !1,
endReason: "",
greetingVisible: !0,
commentsViewMode: "full",
hasUnreadComments: !1,
showStreamingViewersModal: !1,
showStreamingTipsModal: !1,
showViewControlsModal: !1,
viewMode: "grid",
commentInputFocused: !1,
streamHasFatalError: !1,
showStreamInformationModal: !1,
showTipGoalModal: !1,
showServerMaintenance: !1,
showBlockViewerModal: !1,
overlays: {
visibility: {
showTipGoalOverlay: !1,
showPollOverlay: !1,
showStreamDescriptionOverlay: !1
},
activeTipGoalOverlay: null,
activePollOverlay: null
}
},
serverMaintenanceAt: null,
streamPushNotification: {
isEnabled: !1
},
tipsModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
viewersModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
coStream: {
coStreamRequestSent: !1,
coStreamRequestCount: 0,
coStreamRequestApiError: !1,
coStreamInviteReceived: !1,
showCoStreamInviteReceivedToast: !1
},
pollModal: {
isShow: !1,
activeStreamVoting: null
},
pollParticipantsModal: {
isShow: !1,
optionId: null,
streamId: null,
query: "",
sort: "name",
order: "asc"
},
pollParticipants: {
ids: [],
hasMore: !1,
loading: !1
}
}
, ee = {
streams(e) {
return e.streams
},
primary(e) {
return e.streams[e.primaryInstance]
},
partners(e) {
return Object.values(e.streams).filter((t => t.user.id != e.primaryInstance))
},
partner(e, t) {
return t.partners[0]
},
partner2(e, t) {
return t.partners[1]
},
partner3(e, t) {
return t.partners[2]
},
streamsWithPoll: (e, t) => [t.primary, ...t.partners].filter((e => {
var t, s;
return !(null == e || null === (t = e.voting) || void 0 === t || !t.options.length || null !== (s = e.voting) && void 0 !== s && s.finishedAt)
}
)),
pollModal: e => e.pollModal,
pollParticipantsModal: e => e.pollParticipantsModal,
pollParticipants: e => e.pollParticipants,
streamTypeOptions(e, t) {
let s;
return s = "live" === e.mode ? Object.keys(t.primary.streamTypes).map((e => ({
code: e,
title: t.primary.streamTypes[e]
}))) : [],
t.isOwnStream && "beforeStart" === t.primary.streamState && s.push({
code: "streamingChat",
title: "streamingChat"
}),
s
},
likesCount(e) {
return Object.values(e.streams).reduce(( (e, t) => e + t.stream.likesCount), 0)
},
commentsCount(e) {
return e.streams[e.primaryInstance].stream.commentsCount
},
streamDescription(e, t) {
return l()(t, "primary.stream.description") || ""
},
canComment(e) {
return !e.streamsOrder.map((t => e.streams[t])).some((e => !1 === e.stream.canComment))
},
canLike(e) {
return !e.streamsOrder.map((t => e.streams[t])).some((e => !1 === e.stream.canLike))
},
mustStartMuted() {
return R.isMobile || R.isSafari
},
isOwnStream(e, t, s, r) {
return l()(t, "primary.user.id") == r["auth/authUserId"]
},
streamPushNotification(e) {
return e.streamPushNotification
},
tipsModalOptions(e) {
return e.tipsModal
},
viewersModalOptions(e) {
return e.viewersModal
},
tipGoal(e, t) {
var s;
return null === (s = t.primary) || void 0 === s ? void 0 : s.tipGoal
},
canRequestToCostream(e, t) {
return t.primary.stream.canCoStreaming && !e.coStream.coStreamRequestSent && !e.coStream.coStreamInviteReceived && !e.coStream.coStreamRequestApiError && e.coStream.coStreamRequestCount < G.$Y && t.primary.stream.showCoStreamingRequest && e.streamsOrder.length < G.jv && Z.A.canCostreamingStreamTypes.includes(t.primary.streamType) && t.primary.streamLook.approved
}
}
, te = {
setMode(e, t) {
e.mode = t
},
setUser(e, t) {
Q(e, t)
},
setPrimaryInstance(e, t) {
e.primaryInstance = t
},
setJoinedStreamUsername(e, t) {
e.joinedStreamUsername = t
},
setStream(e, {stream: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] || (e.streams = Object.assign({}, e.streams, {
[s]: Y()
}),
e.streamsOrder = [...e.streamsOrder, s]),
e.streams[s] = {
...e.streams[s],
...t
}
},
setStreamStream(e, {stream: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] || (e.streams = Object.assign({}, e.streams, {
[s]: Y()
}),
e.streamsOrder = [...e.streamsOrder, s]),
e.streams[s].stream = {
...e.streams[s].stream,
...t
}
},
setStreamUser(e, {user: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] || (e.streams = Object.assign({}, e.streams, {
[s]: Y()
}),
e.streamsOrder = [...e.streamsOrder, s]),
e.streams[s].user = {
...e.streams[s].user,
...t
}
},
removeStream(e, t) {
e.streams[t] && (e.streams[t] = null,
delete e.streams[t],
e.streams = {
...e.streams
},
e.streamsOrder = e.streamsOrder.filter((e => e != t)))
},
setStreamsOrder(e, t) {
e.streamsOrder = [...t]
},
updateStreamHelpers(e, t) {
e.users = Object.keys(e.users).map((s => ({
...e.users[s],
isStreamHelper: t.includes(+s)
}))).reduce(( (e, t) => ({
...e,
[t.id]: t
})), {})
},
incrementCommentsCount(e, t) {
e.streams[e.primaryInstance].stream.commentsCount += t
},
addComments(e, t) {
const s = {};
t.forEach((t => {
V.default.set(e.comments.items, t.comment_id, {
id: t.comment_id,
text: t.comment,
userId: t.user.id,
user: t.user,
toUser: t.toUser,
isPrivate: t.isPrivate,
isRemoved: !1,
giphyId: t.giphy_id,
isBlocked: t.is_user_blocked,
commentType: t.commentType
}),
t.user.isBlocked = !!t.is_user_blocked,
s[t.user.id] || (Q(e, t.user),
s[t.user.id] = t.user.id),
e.comments.ids = [...new Set([t.comment_id, ...e.comments.ids])]
}
))
},
addComment(e, t) {
Q(e, t.user),
V.default.set(e.comments.items, t.id, {
id: t.id,
text: t.text,
userId: t.user.id,
user: t.user,
toUser: t.toUser,
isPrivate: t.isPrivate,
giphyId: t.giphyId,
isServiceMessage: t.isServiceMessage,
isRemoved: !1,
commentType: t.commentType
}),
e.comments.ids = [...new Set([...e.comments.ids, t.id])]
},
updateCommentUser(e, t) {
Q(e, t)
},
removeComment(e, {commentId: t, markRemoved: s}) {
(0,
N.Yw)(e, {
commentId: t,
markRemoved: s
})
},
removeUserComments(e, {userId: t, markRemoved: s}) {
(0,
N.qS)(e, {
userId: t,
markRemoved: s
})
},
setHasMoreComments(e, t) {
e.hasMoreComments = t
},
setLoadedCommentsCount(e, t) {
e.loadedCommentsCount = t
},
addLike(e, t) {
e.streams[t.streamUserId] && (t.id = e.likes.length,
e.likes = [...e.likes, t],
e.streams[t.streamUserId].stream.likesCount += 1)
},
removeLike(e, t) {
e.likes = e.likes.filter((e => e.id != t.id))
},
setTimer(e, t) {
e.timer = t
},
addViewer(e, t) {
Q(e, t),
e.viewers.ids = [...new Set([...e.viewers.ids, +t.id])]
},
addStreamViewer(e, t) {
Q(e, t),
e.streamViewerIds = [...new Set([...e.streamViewerIds, +t.id])]
},
removeStreamViewer(e, t) {
e.streamViewerIds = e.streamViewerIds.filter((e => e !== t.id))
},
addUsers(e, t) {
e.users = {
...e.users,
...t.reduce(( (e, t) => (e[t.id] = t,
e)), {})
}
},
addViewerIds(e, t) {
e.viewers.ids = [...new Set([...e.viewers.ids, ...t.map(( ({id: e}) => e))])]
},
addPollParticipantIds(e, t) {
e.pollParticipants.ids = [...new Set([...e.pollParticipants.ids, ...t.map(( ({id: e}) => e))])]
},
removeViewer(e, t) {
e.viewers.ids = e.viewers.ids.filter((e => e != t.id))
},
setViewers(e, t) {
e.viewers = {
...e.viewers,
...t
}
},
setPollParticipants(e, t) {
e.pollParticipants = {
...e.pollParticipants,
...t
}
},
setLivePushNotifications(e, t) {
e.streamPushNotification = {
...e.streamPushNotification,
...t
}
},
clearViewers(e) {
e.viewers.ids = [],
e.viewers.hasMore = !1
},
clearPollParticipants(e) {
e.pollParticipants.ids = [],
e.pollParticipants.hasMore = !1,
e.pollParticipants.loading = !1
},
setTotalViewers(e, t) {
e.totalViewers = t || 0
},
setStreamState(e, {value: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] && (e.streams[s].streamState = t)
},
setStreamDescription(e, {value: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].stream.description = t
},
setStreamVideoPlaying(e, {value: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] && (e.streams[s].videoPlaying = t)
},
setStreamTCPVideoPause(e, {value: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] && (e.streams[s].tcpVideoOnPause = t)
},
setStreamVolume(e, {volume: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].volume = t
},
setStreamMuted(e, {muted: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s] && (e.streams[s].muted = t)
},
setStreamStretchVideo(e, {stretchVideo: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].stretchVideo = t
},
setTipGoal(e, {data: t, instance: s}) {
s = s || e.primaryInstance,
isNaN(t.progress) || isNaN(t.sum) || (e.streams[s].tipGoal = {
...e.streams[s].tipGoal,
...t
})
},
setVoting(e, {data: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].voting = t ? {
...e.streams[s].voting,
...t
} : null
},
setPollModalData(e, t) {
e.pollModal = {
...e.pollModal,
...t
}
},
resetPollModalData(e) {
e.pollModal = {
isShow: !1,
activeStreamVoting: null
}
},
setPollParticipantsModalData(e, t) {
e.pollParticipantsModal = {
...e.pollParticipantsModal,
...t
}
},
resetPollParticipantsModalData(e) {
e.pollParticipantsModal = {
isShow: !1,
optionId: null,
streamId: null,
query: "",
sort: "name",
order: "asc"
}
},
setCoStream(e, t) {
e.coStream = {
...e.coStream,
...t
}
},
setUIOverlaysVisibility(e, t) {
const s = Object.entries(t);
s.some(( ([,e]) => e)) ? e.UI.overlays.visibility = {
...s.reduce(( (e, [t]) => (e[t] = !1,
e)), {}),
...t
} : e.UI.overlays.visibility = {
...e.UI.overlays.visibility,
...t
}
},
setUIOverlaysActive(e, t) {
e.UI.overlays = {
...e.UI.overlays,
...t
}
},
setStreamShowTapToPlay(e, {show: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].showTapToPlay = t
},
setShowUnmuteBtn(e, {show: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].showUnmuteBtn = t
},
setPrivateCommentUser(e, t) {
e.privateCommentUser = t ? {
...t
} : null
},
setStreamType(e, {type: t, instance: s}) {
e.streams[s].streamType = t
},
setStreamTypes(e, {list: t, instance: s}) {
e.streams[s].streamTypes = t.reduce(( (e, t) => {
const s = t.toLowerCase();
let r;
switch (s) {
case "mux":
r = "HLS";
break;
case "muxllhls":
r = "LLHLS";
break;
case "agora":
r = "CloudBeta";
break;
case "agora_direct":
r = "CloudBeta direct";
break;
default:
r = t.toUpperCase()
}
return {
...e,
[s]: r
}
}
), {})
},
setFailoverStreamTypes(e, {types: t, instance: s}) {
e.streams[s].failoverStreamTypes = t
},
setUI(e, t) {
e.UI = {
...e.UI,
...t
}
},
setStreamUI(e, {UI: t, instance: s}) {
s = s || e.primaryInstance,
e.streams[s].UI = {
...e.streams[s].UI,
...t
}
},
setSwitchToDualStreaming(e, t) {
e.switchToDualStreaming = t
},
setPrimaryMovedToPartner(e, t) {
e.primaryMovedToPartner = t
},
setDefaultState(e) {
Object.assign(e, {
mode: "",
streams: {},
streamsOrder: [],
joinedStreamUsername: null,
primaryInstance: null,
timer: "0:00",
comments: {
ids: [],
items: {}
},
hasMoreComments: !1,
loadedCommentsCount: 0,
likes: [],
users: {},
viewers: {
ids: [],
hasMore: !1,
loading: !1
},
streamViewerIds: [],
totalViewers: 0,
privateCommentUser: null,
switchToDualStreaming: !1,
primaryMovedToPartner: !1,
UI: {
showStreamingActions: !1,
showStreamingComments: !1,
showJoinStreamBtn: !0,
disabledJoinStreamBtn: !0,
showCommentForm: !1,
showEndScreen: !1,
endReason: "",
greetingVisible: !0,
commentsViewMode: "full",
hasUnreadComments: !1,
showStreamingViewersModal: !1,
showStreamingTipsModal: !1,
showViewControlsModal: !1,
viewMode: "grid",
commentInputFocused: !1,
streamHasFatalError: !1,
showStreamInformationModal: !1,
showTipGoalModal: !1,
showServerMaintenance: !1,
showBlockViewerModal: !1,
overlays: {
visibility: {
showTipGoalOverlay: !1,
showPollOverlay: !1,
showStreamDescriptionOverlay: !1
},
activeTipGoalOverlay: null,
activePollOverlay: null
}
},
serverMaintenanceAt: null,
streamPushNotification: {
isEnabled: !1
},
tipsModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
viewersModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
coStream: {
coStreamRequestSent: !1,
coStreamRequestCount: 0,
coStreamRequestApiError: !1,
coStreamInviteReceived: !1,
showCoStreamInviteReceivedToast: !1
},
pollModal: {
isShow: !1,
activeStreamVoting: null
},
pollParticipantsModal: {
isShow: !1,
optionId: null,
streamId: null,
query: "",
sort: "name",
order: "asc"
},
pollParticipants: {
ids: [],
hasMore: !1,
loading: !1
}
})
},
logout(e) {
Object.assign(e, {
mode: "",
streams: {},
streamsOrder: [],
joinedStreamUsername: null,
primaryInstance: null,
timer: "0:00",
comments: {
ids: [],
items: {}
},
hasMoreComments: !1,
loadedCommentsCount: 0,
likes: [],
users: {},
viewers: {
ids: [],
hasMore: !1,
loading: !1
},
streamViewerIds: [],
totalViewers: 0,
privateCommentUser: null,
switchToDualStreaming: !1,
primaryMovedToPartner: !1,
UI: {
showStreamingActions: !1,
showStreamingComments: !1,
showJoinStreamBtn: !0,
disabledJoinStreamBtn: !0,
showCommentForm: !1,
showEndScreen: !1,
endReason: "",
greetingVisible: !0,
commentsViewMode: "full",
hasUnreadComments: !1,
showStreamingViewersModal: !1,
showStreamingTipsModal: !1,
showViewControlsModal: !1,
viewMode: "grid",
commentInputFocused: !1,
streamHasFatalError: !1,
showStreamInformationModal: !1,
showTipGoalModal: !1,
showServerMaintenance: !1,
showBlockViewerModal: !1,
overlays: {
visibility: {
showTipGoalOverlay: !1,
showPollOverlay: !1,
showStreamDescriptionOverlay: !1
},
activeTipGoalOverlay: null,
activePollOverlay: null
}
},
serverMaintenanceAt: null,
streamPushNotification: {
isEnabled: !1
},
tipsModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
viewersModal: {
sort: "name",
order: "asc",
query: "",
tippedOver: 0,
subscribedOver: 0
},
coStream: {
coStreamRequestSent: !1,
coStreamRequestCount: 0,
coStreamRequestApiError: !1,
coStreamInviteReceived: !1,
showCoStreamInviteReceivedToast: !1
},
pollModal: {
isShow: !1,
activeStreamVoting: null
},
pollParticipantsModal: {
isShow: !1,
optionId: null,
streamId: null,
query: "",
sort: "name",
order: "asc"
},
pollParticipants: {
ids: [],
hasMore: !1,
loading: !1
}
})
},
setStreamSentryLog(e, {key: t, value: s, instance: r}) {
t && e.streams[r] && (e.streams[r].sentryLog[t] = s)
},
setServerMaintenanceAt(e, t) {
e.serverMaintenanceAt = t
},
setStreamLook(e, {streamLook: t, instance: s}) {
const r = e.streams[s || e.primaryInstance];
r && (r.streamLook = {
...r.streamLook,
...t
})
},
setTipsModalOptions(e, t) {
e.tipsModal = {
...e.tipsModal,
...t
}
},
setViewersModalOptions(e, t) {
e.viewersModal = {
...e.viewersModal,
...t
}
}
}
, se = {
async createViewModules({state: e, dispatch: t}) {
await Promise.all(Object.keys(e.streams).map((e => t("createViewModule", e))))
},
async createViewModule({state: e}, t) {
const s = e.streams[t || e.primaryInstance];
await (0,
j.CI)(t, s.streamType)
},
destroy({state: e, commit: t}) {
e.switchToDualStreaming || (Object.keys(e.streams).forEach((e => {
(0,
j.eA)({
instance: e
}),
t("removeStream", e)
}
)),
delete window.viewModule),
t("setDefaultState")
},
stopAll({getters: e}) {
e.partners.forEach((e => {
(0,
j.an)(e.user.id)
}
)),
K.switchToDualStreaming || (0,
j.an)(K.primaryInstance)
},
async getUserStreamDataAndInit({getters: e, dispatch: t, commit: s}, r) {
s("setJoinedStreamUsername", r);
const a = await (0,
B.Ez)(r, !0);
if (!a || 0 == +a.id)
throw Error("Stream not found");
s("setJoinedStreamUsername", a.user.username),
t("setStreamData", a),
e.primary.stream.commentsCount && s("setHasMoreComments", !0)
},
setUserStreamData({state: e, commit: t, getters: s}, r) {
var n, i, o, d, u;
const m = r.user.id
, f = null === (n = s.primary) || void 0 === n ? void 0 : n.stream.canSendPrivateWithTip
, h = void 0 !== (null == r ? void 0 : r.canSendPrivateWithTip) ? r.canSendPrivateWithTip : f
, p = {
id: r.id,
thumbUrl: r.thumbUrl,
description: r.description,
rawDescription: r.rawDescription,
startedAt: r.startedAt,
isOpened: r.isOpened,
canJoin: r.canJoin,
canCoStreaming: r.canCoStreaming,
canEdit: r.canEdit,
isShowTips: r.isShowTips,
showCoStreamingRequest: r.showCoStreamingRequest,
commentsCount: +r.commentsCount,
canComment: r.canComment,
likesCount: +r.likesCount,
canLike: r.canLike,
canReport: r.canReport,
roomName: r.room,
streamType: r.streamType,
rawTipsGoal: r.rawTipsGoal,
canSendPrivateWithTip: h
};
void 0 !== r.tipsSumm && (p.tipsSumm = +parseFloat(r.tipsSumm).toFixed(2)),
void 0 !== r.serverList && (p.serverList = r.serverList),
t("setStreamStream", {
stream: p,
instance: m
});
const g = undefined;
t("set", (0,
D.S8)({
...r.user
}, U.vJ), {
root: !0
}),
t("setStreamUser", {
user: {
id: r.user.id,
name: (0,
X.o4)(r.user.name),
username: r.user.username,
displayName: r.user.displayName,
isVerified: r.user.isVerified,
tipsEnabled: r.user.tipsEnabled,
subscribedBy: r.user.subscribedBy,
canEarn: r.user.canEarn,
isPerformer: r.user.isPerformer,
avatar: r.user.avatar,
avatarThumbs: r.user.avatarThumbs,
openseaInfo: r.user.openseaInfo
},
instance: m
});
const y = {
sum: null !== (i = r.tipsGoalSum) && void 0 !== i ? i : null,
progress: null !== (o = r.tipsGoalProgress) && void 0 !== o ? o : null,
description: null !== (d = r.tipsGoal) && void 0 !== d ? d : null,
rawTipsGoal: null !== (u = r.rawTipsGoal) && void 0 !== u ? u : ""
};
let S;
const {tipGoal: v} = e.streams[m];
let w;
y.sum === v.sum && y.description === v.description || (S = Boolean(r.tipsGoalSum && +r.tipsGoalSum > 0)),
t("setTipGoal", {
data: y,
instance: m
}),
void 0 !== S && (t("setUIOverlaysVisibility", {
showTipGoalOverlay: S
}),
t("setUIOverlaysActive", {
activeTipGoalOverlay: S ? m : null
}));
const {voting: I} = r
, {voting: b} = e.streams[m];
I && (I.description !== (null == b ? void 0 : b.description) || I.options.length !== (null == b ? void 0 : b.options.length) || I.options.every((e => !e.isVoted)) && null != b && b.options.some((e => e.isVoted))) && (w = !0),
t("setVoting", {
data: null == r ? void 0 : r.voting,
instance: m
}),
void 0 !== w && (t("setUIOverlaysVisibility", {
showPollOverlay: w
}),
t("setUIOverlaysActive", {
activePollOverlay: w ? m : null
}));
let A = l()(r, "viewerAvailableStreamTypes", []);
if (!A.length && c()(e.streams[m].streamTypes) && ((0,
O.PH)({
error: "invalid available viewer streamTypes",
tags: {
streamingMode: "live"
},
extra: r
}),
A = [r.streamType || "webrtc"]),
c()(e.streams[m].streamTypes)) {
const e = !0;
e && (A = a()(A, "webpl")),
e && A.includes("hls") && (A = a()(A, "hls")),
e && A.includes("llhls") && (A = a()(A, "llhls")),
e && A.includes("tcp") && (A = a()(A, "tcp")),
e && A.includes("webrtc") && (A = a()(A, "webrtc")),
t("setStreamTypes", {
list: A,
instance: m
}),
A.includes("llhls") && (A = [...a()(A, "llhls"), "llhls"]),
t("setFailoverStreamTypes", {
types: A,
instance: m
})
}
e.streams[m].streamType || t("setStreamType", {
type: A[0],
instance: m
})
},
setStreamData({state: e, getters: t, commit: s, dispatch: r}, a={}) {
let n = "";
t.primary && (n = t.primary.stream.rawDescription),
r("setUserStreamData", a);
const o = undefined;
i()(e.streamsOrder, [a.user.id, ...a.partners.map((e => e.user.id))], Number).forEach((e => {
(0,
j.eA)({
instance: e
}),
s("removeStream", e)
}
)),
a.partners && a.partners.length ? (a.partners.forEach((e => {
r("setUserStreamData", e)
}
)),
a.primaryPartnerUserId ? (a.primaryPartnerUserId = +a.primaryPartnerUserId,
e.primaryInstance && e.primaryInstance != a.primaryPartnerUserId && s("setPrimaryMovedToPartner", !0),
s("setPrimaryInstance", a.primaryPartnerUserId)) : s("setPrimaryInstance", a.user.id),
s("setMode", "dual-live")) : (s("setPrimaryInstance", a.user.id),
s("setMode", "live")),
n !== t.primary.stream.rawDescription && s("setUIOverlaysVisibility", {
showStreamDescriptionOverlay: !!t.primary.stream.rawDescription
})
},
async loadMoreComments({state: e, getters: t, commit: s}) {
const r = await (0,
B.rF)(t.primary.stream.id, {
id: e.comments.ids.length ? e.comments.ids[0] : void 0,
limit: 20
})
, a = r.list;
s("addComments", a),
s("setLoadedCommentsCount", e.loadedCommentsCount + a.length),
s("setHasMoreComments", r.hasMore),
a.map((e => e.user)).forEach((t => {
e.users[t.id] || s("addViewer", t)
}
))
},
addComment({commit: e}, t) {
e("addComment", t),
e("incrementCommentsCount", 1)
},
async removeUserComments({commit: e, getters: t}, {userId: s, commentId: r}) {
const a = t.primary.stream.id;
s ? (e("removeUserComments", {
userId: s,
markRemoved: !0
}),
await (0,
B.QF)(a, s)) : r && (e("removeComment", {
commentId: r,
markRemoved: !0
}),
await (0,
B.IG)(a, r))
},
deleteComments({commit: e, state: t}, s) {
const {stream_user_id: r, user_id: a, removeAll: n, comment_id: i, stream_comment_count: o} = s;
+r === t.primaryInstance && (n ? e("removeUserComments", {
userId: a
}) : i && e("removeComment", {
commentId: i
}),
void 0 !== o && e("setStreamStream", {
stream: {
commentsCount: o
},
instance: t.primaryInstance
}))
},
addTipsComment({state: e, commit: t, rootGetters: s}, r) {
const a = Object.values(e.streams).find((e => e.user.id == r.stream_user_id));
if (a) {
const e = (0,
N.getStreamingTipsComment)({
authUser: s["auth/authUser"],
fromUser: r.from_user,
toUser: a.user,
amount: r.amount_human,
message: r.message
});
e && t("addComment", {
id: r.id,
text: e,
isPrivate: r.isPrivate,
user: r.from_user,
commentType: H.Q.TIPS
})
}
},
async addLike({commit: e}, t) {
e("addLike", t)
},
switchToDualStreaming({state: e, getters: t, commit: s, dispatch: r}) {
s("setSwitchToDualStreaming", !0),
r("streaming/doSwitchFromLive", {
livePrimary: t.primary,
partners: t.partners,
comments: e.comments,
users: e.users,
UI: {
showCommentForm: e.UI.showCommentForm,
commentsViewMode: e.UI.commentsViewMode,
overlays: {
...e.UI.overlays
}
},
streamType: t.primary.streamType
}, {
root: !0
})
},
toggleCommentsViewMode({state: e, commit: t}) {
const s = undefined;
t("setUI", {
commentsViewMode: "full" === e.UI.commentsViewMode ? "compact" : "full"
})
},
setTipGoal({commit: e}, {data: t, instance: s}) {
e("setTipGoal", {
data: t,
instance: s
})
},
updateLiveUser({state: e, commit: t}, s) {
const r = Object.keys(e.streams).find((e => e == s.id));
r && t("setStreamUser", {
user: {
tipsEnabled: s.tipsEnabled,
subscribedBy: s.subscribedBy
},
instance: r
})
},
joinUser({commit: e, getters: t}, {user: s, viewerInstanceCount: r, commentText: a}) {
var n;
if (s.viewerInstanceCount = r,
e("addStreamViewer", s),
!(s.viewerInstanceCount > 1) && null != t && null !== (n = t.primary) && void 0 !== n && null !== (n = n.stream) && void 0 !== n && n.canEdit) {
const t = {
id: `${s.id}_${(new Date).getTime()}`,
user: s,
text: a,
isServiceMessage: !0,
commentType: H.Q.JOINED_USER
};
e("addComment", t),
setTimeout(( () => {
e("removeComment", {
commentId: t.id
})
}
), 6e4)
}
},
leaveUser({commit: e}, {user: t, viewerInstanceCount: s, isUserBlocked: r=!1}) {
t.viewerInstanceCount = s,
t.isBlocked = r,
e("setUser", t),
0 === t.viewerInstanceCount && (e("removeStreamViewer", t),
K.viewers.ids.includes(t.id) && (K.UI.showStreamingTipsModal || K.pollParticipantsModal.isShow) || e("removeViewer", t))
},
addViewers({commit: e}, t) {
e("addUsers", t),
e("addViewerIds", t)
},
addPollParticipants({commit: e}, t) {
e("addUsers", t),
e("addPollParticipantIds", t)
},
async updateStreamInformation({state: e, commit: t}, {data: s, streamId: r}) {
const a = await (0,
B.K4)({
streamId: r,
data: s
});
t("setStreamStream", {
stream: {
description: a.description,
rawDescription: a.rawDescription,
isShowTips: a.isShowTips,
rawTipsGoal: a.rawTipsGoal
},
instance: e.primaryInstance
})
},
async voteStream(e, {streamId: t, optionId: s}) {
await (0,
B.dQ)({
streamId: t,
optionId: s
})
},
async fetchStreamViewers({state: e, getters: t, commit: s, dispatch: r}, {more: a=!1}) {
try {
a || s("clearViewers");
const n = e.viewers.ids.length;
s("setViewers", {
loading: !0
});
const i = await (0,
B.et)({
streamId: t.primary.stream.id,
offset: n,
...e.viewersModal
});
l()(i, "list.length", 0) && (r("addViewers", i.list),
s("setViewers", {
hasMore: i.hasMore
}))
} catch (n) {} finally {
s("setViewers", {
loading: !1
})
}
},
async fetchStreamPollParticipants({state: e, getters: t, commit: s, dispatch: r}, {optionId: a=null, more: n=!1}) {
try {
n || s("clearPollParticipants");
const i = e.pollParticipants.ids.length;
s("setPollParticipants", {
loading: !0
});
const o = await (0,
B.eq)({
streamId: t.primary.stream.id,
offset: i,
optionId: a,
...e.pollParticipantsModal
})
, c = null == o ? void 0 : o.list.map(( ({user: e}) => e));
c.length && (r("addPollParticipants", c),
s("setPollParticipants", {
hasMore: o.hasMore
}))
} catch (i) {} finally {
s("setPollParticipants", {
loading: !1
})
}
},
async fetchStreamTips({state: e, getters: t, commit: s, dispatch: r}, {more: a=!1}) {
try {
a || s("clearViewers");
const n = e.viewers.ids.length;
s("setViewers", {
loading: !0
});
const i = await (0,
B.FI)({
streamId: t.primary.stream.id,
offset: n,
...e.tipsModal
});
l()(i, "list.length", 0) && (r("addViewers", i.list),
s("setViewers", {
hasMore: i.hasMore
}))
} catch (n) {} finally {
s("setViewers", {
loading: !1
})
}
},
async fetchLiveWebPushNotifications({commit: e}) {
try {
const t = undefined;
(await (0,
x.JF)("webpush")).forEach((t => {
if ("subscriptions" === t.code) {
const s = t.items.find((e => "new_stream" === e.code));
s && e("setLivePushNotifications", s)
}
}
))
} catch (t) {}
},
async saveLiveWebPushNotifications({commit: e}, t) {
try {
await (0,
q.K2)({
notifications: {
webpush: t
}
}),
e("setLivePushNotifications", {
isEnabled: t[0].value
})
} catch (s) {}
},
async joinStreamChat({getters: e, commit: t}) {
const s = e.primary.stream.id
, r = e.primary.user.id;
try {
t("setStreamLook", {
streamLook: {
waiting: !0
},
instance: r
});
const e = await (0,
B.V4)(s);
t("setStreamLook", {
streamLook: {
approved: e.isViewer,
waiting: !1,
sent: !0
},
instance: r
}),
t("setTotalViewers", e.total)
} catch (a) {}
}
}
},
245985: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return E
},
getters: function() {
return _
},
mutations: function() {
return $
},
state: function() {
return M
}
});
var r = s(355364)
, a = s.n(r)
, n = s(16280)
, i = s.n(n)
, o = s(517642)
, c = s.n(o)
, d = s(658004)
, l = s.n(d)
, u = s(733853)
, m = s.n(u)
, f = s(845876)
, h = s.n(f)
, p = s(432475)
, g = s.n(p)
, y = s(515024)
, S = s.n(y)
, v = s(731698)
, w = s.n(v)
, I = s(962953)
, b = s.n(I)
, A = s(632134)
, P = s(22504)
, k = s(204607)
, C = s(977434)
, L = s(758987);
const T = () => ({
ids: [],
items: {}
})
, M = {
ids: [],
items: {}
}
, _ = {
messages: e => e.ids.map((t => e.items[t])).filter((e => !!e))
}
, $ = {
setMessages(e, {messages: t=[], more: s=!1}={}) {
e.ids = s ? [...new Set([...e.ids, ...t])] : [...t]
},
setMessage(e, t={}) {
if (t && t.id) {
const s = (0,
P.S8)(t, A.Ph);
e.items = a()({}, e.items, s.entities.massMessagesStat)
}
},
logout(e) {
Object.assign(e, {
ids: [],
items: {}
})
}
}
, E = {
async fetchMessagesStat({commit: e}, t={}) {
const {cancelToken: s, Cancel: r} = (0,
C.ws)("fetchMessagesStat");
try {
const r = await (0,
k.lq)(t, s);
if ("object" == typeof r) {
if (Array.isArray(r.list)) {
const s = (0,
P.S8)(r.list, A.ek);
e("set", s, {
root: !0
}),
e("setMessages", {
messages: s.result,
more: !!t.offset
})
}
return r.hasMore
}
return void (0,
L.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: r
}
})
} catch (a) {
if (!(a instanceof r))
return
}
return !1
}
}
},
393607: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return j
},
getters: function() {
return q
},
mutations: function() {
return x
},
state: function() {
return B
}
});
var r = s(858156)
, a = s.n(r)
, n = s(16280)
, i = s.n(n)
, o = s(944114)
, c = s.n(o)
, d = s(517642)
, l = s.n(d)
, u = s(658004)
, m = s.n(u)
, f = s(733853)
, h = s.n(f)
, p = s(845876)
, g = s.n(p)
, y = s(432475)
, S = s.n(y)
, v = s(515024)
, w = s.n(v)
, I = s(731698)
, b = s.n(I)
, A = s(842762)
, P = s.n(A)
, k = s(962953)
, C = s.n(k)
, L = s(551564)
, T = s(22504)
, M = s(632134)
, _ = s(758987)
, $ = s(977434)
, E = s(163295)
, V = s(796713)
, D = s(10701)
, U = s(444962);
const {t: O} = (0,
U.A)();
function R({filled: e, keepState: t}) {
return e ? "setVaultListsFilledIds" : t ? "setVaultListsIdsKeepState" : "setVaultListsIds"
}
const F = () => ({
vault: {},
allMedia: {},
items: [],
selectedMedias: [],
isLoadingMedia: !1,
fieldVault: "default",
sortVault: "asc",
vaultFilter: "recent",
vaultOrder: "desc",
vaultDate: null,
isLoadingMediaListsFilled: !1,
hasMoreListMain: !0,
hasMoreListMainFilled: !1,
modalCustomVaultListId: "",
customOrderEnabledVault: !1,
vaultListLimit: 10,
offset: 0,
vaultListsIds: [],
vaultListsModalIds: [],
vaultListsFilledIds: [],
vaultLists: {},
selectIdList: null,
mediaCounts: {
hasPhoto: !1,
hasGif: !1,
hasVideo: !1
},
mediaPosts: [],
needOpenVaultCategoriesModal: !1,
searchCategory: {
isShown: !1
},
vaultListOffset: 0,
canCreateVaultLists: !1
})
, B = {
vault: {},
allMedia: {},
items: [],
selectedMedias: [],
isLoadingMedia: !1,
fieldVault: "default",
sortVault: "asc",
vaultFilter: "recent",
vaultOrder: "desc",
vaultDate: null,
isLoadingMediaListsFilled: !1,
hasMoreListMain: !0,
hasMoreListMainFilled: !1,
modalCustomVaultListId: "",
customOrderEnabledVault: !1,
vaultListLimit: 10,
offset: 0,
vaultListsIds: [],
vaultListsModalIds: [],
vaultListsFilledIds: [],
vaultLists: {},
selectIdList: null,
mediaCounts: {
hasPhoto: !1,
hasGif: !1,
hasVideo: !1
},
mediaPosts: [],
needOpenVaultCategoriesModal: !1,
searchCategory: {
isShown: !1
},
vaultListOffset: 0,
canCreateVaultLists: !1
}
, q = {
mediaItems: e => e.items.reduce(( (t, s) => {
const r = e.vault[s];
return r && !r.hidden && t.push(r),
t
}
), []),
getIsMediaLoading: e => e.isLoadingMedia,
hasItems: e => !!e.items.length,
getMediaId: e => t => e.vault[t],
getVaultListsByIds: e => (0,
E.i)(e.vaultListsIds, e.vaultLists),
getModalVaultListsByIds: e => (0,
E.i)(e.vaultListsModalIds, e.vaultLists),
getVaultListById: e => t => e.vaultLists[t] || {},
getVaultListsFilledByIds: e => (0,
E.i)(e.vaultListsFilledIds, e.vaultLists),
currentVaultList: e => e.selectIdList && e.vaultLists[e.selectIdList] || {}
}
, x = {
setLoadingMedia(e, t) {
e.isLoadingMedia = t
},
setCustomThumbIsRemoving(e, t) {
e.customThumbIsRemoving = t
},
setMediaPosts(e, t=[]) {
e.mediaPosts = t
},
setAll(e, t) {
e.allMedia = {
id: "all",
type: "all",
name: O("message.all_media"),
...t
}
},
addItems(e, t) {
const s = []
, r = t.reduce(( (e, t) => (s.push(t.id),
e[t.id] = t,
e)), {});
e.vault = {
...e.vault,
...r
},
e.items = [...e.items, ...s]
},
hideMediaVaultByIds(e, t=[]) {
const s = {};
t.forEach((t => {
const r = e.vault[t];
r && (r.hidden = !0,
s[t] = r)
}
)),
e.vault = {
...e.vault,
...s
}
},
setSortVault(e, t) {
e.sortVault = t
},
setFieldVault(e, t) {
e.fieldVault = t
},
setLoadingMediaListsFilled(e, t) {
e.isLoadingMediaListsFilled = t
},
setNewList(e, t) {
const s = t.id;
s && (e.vaultListsIds = [s, ...e.vaultListsIds],
e.vaultListsModalIds = [s, ...e.vaultListsModalIds],
e.vaultLists = {
...e.vaultLists,
[s]: t
})
},
deleteVaultList(e, t) {
e.vaultListsIds = e.vaultListsIds.filter((e => e !== t)),
e.vaultListsFilledIds = e.vaultListsFilledIds.filter((e => e !== t)),
delete e.vaultLists[t]
},
setModalCustomVaultListId(e, t) {
e.modalCustomVaultListId = t
},
setUpdateVaultListName(e, {id: t, name: s}) {
e.vaultLists[t] && (e.vaultLists[t].name = s)
},
updateVaultMediaListStates(e, t) {
const {mediaIds: s=[], listId: r, hasMedia: a} = t
, n = s.reduce(( (t, s) => {
const n = e.vault[s];
if (n) {
const e = n.listStates.findIndex((e => +e.id === r));
-1 === e ? n.listStates.push({
hasMedia: a,
id: r
}) : n.listStates[e].hasMedia = a,
t[s] = n
}
return t
}
), {});
e.vault = {
...e.vault,
...n
}
},
setCustomOrderEnabledVault(e, t) {
e.customOrderEnabledVault = t
},
setNeedOpenVaultCategoriesModal(e, t) {
e.needOpenVaultCategoriesModal = t
},
setHasMoreListMain(e, t) {
e.hasMoreListMain = t
},
setHasMoreListMainFilled(e, t) {
e.hasMoreListMainFilled = t
},
setVaultFilter(e, t) {
e.vaultFilter = t
},
setVaultDate(e, t) {
e.vaultDate = t
},
setVaultOrder(e, t) {
e.vaultOrder = t
},
resetVaultFilters(e) {
e.vaultFilter = "recent",
e.vaultOrder = "desc",
e.vaultDate = null
},
toggleMediaVisibility(e, {mediaIds: t, hidden: s}) {
const r = t.reduce(( (t, r) => {
const a = e.vault[r];
return a && (a.hidden = s,
t[r] = a),
t
}
), {});
e.vault = {
...e.vault,
...r
}
},
toggleSearchCategory(e, t) {
e.searchCategory.isShown = t
},
updateVaultListMain(e, {list: t}={}) {
t && t.id && (e.vaultLists[t.id] = t)
},
setVaultListsIds(e, {ids: t=[], more: s=!1}={}) {
e.vaultListsIds = s ? [...new Set([...e.vaultListsIds, ...t])] : t
},
setVaultListsIdsKeepState(e, {ids: t=[], more: s=!1}={}) {
e.vaultListsIds = s ? [...new Set([...e.vaultListsIds, ...t])] : t.length ? t : e.vaultListsIds
},
setVaultListsModalIds(e, {ids: t=[], more: s=!1}={}) {
e.vaultListsModalIds = s ? [...new Set([...e.vaultListsModalIds, ...t])] : t
},
setVaultListsFilledIds(e, {ids: t=[], more: s=!1}={}) {
e.vaultListsFilledIds = s ? [...new Set([...e.vaultListsFilledIds, ...t])] : t
},
setVaultLists(e, t) {
e.vaultLists = t
},
setMediaCounts(e, t) {
e.mediaCounts = t
},
setSelectIdList(e, t=null) {
e.selectIdList = t
},
setSelectedMedias(e, t=[]) {
t.length ? e.selectedMedias = [...new Set([...e.selectedMedias, ...t])] : e.selectedMedias = t
},
setUnSelectMedia(e, t) {
e.selectedMedias = e.selectedMedias.filter((e => e.id !== t))
},
resetItems(e) {
e.items = []
},
resetPosts() {
B.vault = {},
B.items = []
},
setOffset(e, t=0) {
e.offset = t
},
setVaultListOffset(e, t=0) {
e.vaultListOffset = t
},
setCanCreateVaultLists(e, t) {
e.canCreateVaultLists = !!t
},
logout(e) {
Object.assign(e, {
vault: {},
allMedia: {},
items: [],
selectedMedias: [],
isLoadingMedia: !1,
fieldVault: "default",
sortVault: "asc",
vaultFilter: "recent",
vaultOrder: "desc",
vaultDate: null,
isLoadingMediaListsFilled: !1,
hasMoreListMain: !0,
hasMoreListMainFilled: !1,
modalCustomVaultListId: "",
customOrderEnabledVault: !1,
vaultListLimit: 10,
offset: 0,
vaultListsIds: [],
vaultListsModalIds: [],
vaultListsFilledIds: [],
vaultLists: {},
selectIdList: null,
mediaCounts: {
hasPhoto: !1,
hasGif: !1,
hasVideo: !1
},
mediaPosts: [],
needOpenVaultCategoriesModal: !1,
searchCategory: {
isShown: !1
},
vaultListOffset: 0,
canCreateVaultLists: !1
})
}
}
, j = {
async fetchMediaVaultByType({commit: e, state: t, dispatch: s}, {limit: r=24, more: n=!1, ...i}={}) {
e("setLoadingMedia", !0),
n || (e("resetItems"),
e("setOffset"));
const {cancelToken: o, Cancel: c} = (0,
$.ws)("fetchMediaVaultByType");
let d;
try {
d = await (0,
L.jM)({
limit: r,
offset: t.offset,
...i,
cancelToken: o
})
} catch (f) {
return f instanceof c || e("setLoadingMedia", !1),
{
list: [],
hasMore: !1
}
}
const l = a()(d, "hasMore", !1);
if (!d || "object" != typeof d || !d.list.length)
return e("setLoadingMedia", !1),
{
list: [],
hasMore: l
};
l && e("setOffset", t.offset + r);
const {list: u} = d;
e("addItems", u),
e("setLoadingMedia", !1);
const m = (0,
V.J3)(u);
return m.length && s("releaseForms/setReleaseFormsWithNormalize", m, {
root: !0
}),
d
},
async fetchMediaPosts({commit: e, state: t}, {offset: s, ...r}={}) {
try {
const {cancelToken: a} = (0,
$.ws)("fetchMediaPosts")
, n = await (0,
L.w6)({
offset: s,
...r,
format: "infinite",
sort: "desc",
cancelToken: a
});
if ("object" != typeof n)
throw new Error(`Incorrect data type. Expected 'object', received '${typeof n}' from server.`);
return e("setMediaPosts", s ? [...t.mediaPosts, ...n.list] : n.list),
n
} catch (a) {
return e("setMediaPosts"),
[]
}
},
async hideMediaVaultByIds({commit: e}, t) {
try {
await (0,
L.VY)({
ids: t
})
} catch (s) {}
e("hideMediaVaultByIds", t)
},
async fetchVaultLists({commit: e}, t) {
const s = {
...t,
limit: t.limit || B.vaultListLimit
}
, {offset: r, filled: a, keepState: n, filter: i} = s
, o = !(!a && !i);
o && e("setLoadingMediaListsFilled", !0);
try {
const t = R({
filled: o,
keepState: n
});
r || e(t);
const a = await (0,
L.sc)(s);
if (a) {
const {all: s={}, list: i=[], hasMore: c=!1, canCreateVaultLists: d, sort: l, order: u} = a;
void 0 !== d && e("setCanCreateVaultLists", d),
l && e("setFieldVault", l),
u && e("setSortVault", u);
const m = (0,
T.S8)(i, M.Xw);
n && e("setVaultLists", m.entities.vaultLists),
e("set", m, {
root: !0
}),
e("setAll", s),
e(t, {
ids: m.result,
more: !!r
});
const f = undefined;
return e(o ? "setHasMoreListMainFilled" : "setHasMoreListMain", c),
o && e("setLoadingMediaListsFilled", !1),
n || e("setVaultListOffset", B.vaultListOffset + B.vaultListLimit),
c
}
} catch (c) {
return void (o && e("setLoadingMediaListsFilled", !0))
}
return o && e("setLoadingMediaListsFilled", !0),
!1
},
async fetchModalVaultLists({commit: e}, t) {
const s = {
...t,
limit: B.vaultListLimit
};
try {
const t = await (0,
L.sc)(s);
if (t) {
const {all: s={}, list: r=[], hasMore: a=!1, canCreateVaultLists: n, sort: i, order: o} = t;
void 0 !== n && e("setCanCreateVaultLists", n),
i && e("setFieldVault", i),
o && e("setSortVault", o);
const c = (0,
T.S8)(r, M.Xw);
return e("setVaultListsModalIds", {
ids: c.result,
more: !0
}),
c.result = [],
e("set", c, {
root: !0
}),
e("setAll", s),
a
}
} catch (r) {
return
}
return !1
},
async fetchVaultList({commit: e}, t) {
try {
const s = await (0,
L.fd)(t);
if (null != s && s.id) {
const t = undefined;
e("set", (0,
T.S8)(s, M.cX), {
root: !0
})
}
} catch (s) {}
},
async addVaultList({commit: e}, t) {
var s;
if ((null == t ? void 0 : t.trim().toLowerCase()) === (null === (s = B.allMedia) || void 0 === s ? void 0 : s.name.toLowerCase()))
return (0,
_.r_)(new Error(O("message.media_list_name_already_exists")));
try {
const s = await (0,
L.Rt)(t);
if (s)
return e("setNewList", s),
s
} catch (r) {
(0,
_.r_)(r)
}
},
async deleteVaultList({commit: e}, {id: t, withMedia: s}) {
try {
const r = await (0,
L.YM)(t, s);
if (null != r && r.success)
return e("deleteVaultList", t),
!0
} catch (r) {
(0,
_.r_)(r)
}
return !1
},
async updateVaultList({commit: e}, {id: t, name: s}) {
try {
const r = await (0,
L.Yb)({
id: t,
name: s
});
null != r && r.id && e("setUpdateVaultListName", r)
} catch (r) {
(0,
_.r_)(r)
}
},
async toggleSomeMediaInList({commit: e}, t) {
const {mediaIds: s, listId: r, remove: a} = t;
try {
const n = a ? await (0,
L.Lg)(s, r) : await (0,
L.F8)(s, r);
if (null != n && n.id)
return e("updateVaultMediaListStates", {
mediaIds: s,
listId: r,
hasMedia: !a
}),
e("updateVaultListMain", {
list: n
}),
a || e("setVaultListsFilledIds", {
ids: [r],
more: !0
}),
!0;
(0,
_.Bg)({
error: new Error("Error: Add media to main list"),
extra: {
result: n,
data: t
}
})
} catch (n) {
(0,
_.r_)(n)
}
return !1
},
async saveVaultListsOrder({commit: e}, t) {
try {
const s = await (0,
L.BV)(t);
if (null != s && s.success) {
const {sort: s, order: r} = t;
s && e("setFieldVault", s),
r && e("setSortVault", r)
}
} catch (s) {
(0,
_.r_)(s)
}
},
async fetchVaultMediaTypes({commit: e}) {
try {
const t = await (0,
L.sJ)();
t && "object" == typeof t && e("setMediaCounts", t)
} catch (t) {}
},
async fetchVaultMediaItem({commit: e}, t) {
try {
const s = await (0,
L.q0)(t);
if (null != s && s.id)
return e("addItems", [s]),
!0
} catch (s) {}
return !1
},
async attachReleaseFormsToVaultMedia(e, {mediaId: t, releaseForms: s}) {
try {
const e = await (0,
L.j1)(t, (0,
D.m)(s));
if (e)
return e
} catch (r) {
(0,
_.r_)(r)
}
}
}
},
881455: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
mutations: function() {
return n
},
state: function() {
return a
}
});
const r = () => ({
dropdowns: {},
isOnline: !0
})
, a = {
dropdowns: {},
isOnline: !0
}
, n = {
addDropdown(e, t) {
t && (e.dropdowns = {
...e.dropdowns,
[t.uid]: t
})
},
hideAllDropdowns(e) {
Object.values(e.dropdowns).forEach((e => {
null == e || e.hide()
}
))
},
removeDropdown(e, t) {
if (t) {
const {[t.uid]: s, ...r} = e.dropdowns;
e.dropdowns = r
}
},
setOnline(e, t) {
e.isOnline = t
},
logout(e) {
Object.assign(e, {
dropdowns: {},
isOnline: !0
})
}
}
},
21993: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
getters: function() {
return d
},
mutations: function() {
return u
},
state: function() {
return c
}
});
var r = s(846193);
const {enableBodyScroll: a, disableBodyScroll: n, TOGGLE_BODY_SCROLL_IDS: i} = (0,
r.A)()
, o = () => ({
sidebar: {
isShow: !1
},
otpModal: {
isShow: !1,
title: "",
strong: !1
},
otpState: {
email: !1,
phoneOtp: !1,
appOtp: !1,
faceOtp: !1,
forceFaceOtp: !1,
phoneLast4: "",
phoneCode: {},
faceCode: {},
emailCode: {}
},
reportData: {
id: null,
type: null
},
alert: {
title: "",
text: "",
html: !1,
onclose: null,
buttons: [],
hideCloseBtn: !1,
headerIcon: null
},
preloader: {
isShow: !1
}
})
, c = {
sidebar: {
isShow: !1
},
otpModal: {
isShow: !1,
title: "",
strong: !1
},
otpState: {
email: !1,
phoneOtp: !1,
appOtp: !1,
faceOtp: !1,
forceFaceOtp: !1,
phoneLast4: "",
phoneCode: {},
faceCode: {},
emailCode: {}
},
reportData: {
id: null,
type: null
},
alert: {
title: "",
text: "",
html: !1,
onclose: null,
buttons: [],
hideCloseBtn: !1,
headerIcon: null
},
preloader: {
isShow: !1
}
}
, d = {
isSidebarShow: e => e.sidebar.isShow,
isOtpModalShow: e => e.otpModal.isShow,
isPreloaderShow: e => e.preloader.isShow
}
, l = e => {
e ? (document.documentElement.classList.add("m-sidebar-visible"),
n(i.MODALS.VUEX_MODULE_MODAL_SIDEBAR, !0)) : (document.documentElement.classList.remove("m-sidebar-visible"),
a(i.MODALS.VUEX_MODULE_MODAL_SIDEBAR))
}
, u = {
sidebarShow(e, t) {
e.sidebar.isShow = t,
l(t)
},
sidebarToggle(e) {
e.sidebar.isShow = !e.sidebar.isShow;
const t = e.sidebar.isShow;
l(t)
},
setOtpModal(e, t={}) {
t && "object" == typeof t || (t = {}),
e.otpModal = {
isShow: !1,
title: "",
strong: !1,
...t
}
},
setOtpState(e, t={}) {
t && "object" == typeof t || (t = {}),
t.forceFaceOtp && (t = {
faceOtp: !0,
email: !1,
phoneOtp: !1,
appOtp: !1
}),
e.otpState = {
email: !1,
phoneOtp: !1,
appOtp: !1,
faceOtp: !1,
forceFaceOtp: !1,
phoneLast4: "",
phoneCode: {},
faceCode: {},
emailCode: {},
...t
}
},
setReportData(e, t) {
e.reportData = t
},
setAlert(e, {title: t, text: s, html: r=!1, onclose: a=null, buttons: n=[], hideCloseBtn: i=!1, headerIcon: o=null}) {
e.alert = {
title: t,
text: s,
html: r,
onclose: a,
buttons: n,
hideCloseBtn: i,
headerIcon: o
}
},
preloaderShow(e, t) {
e.preloader.isShow = t
},
logout(e) {
Object.assign(e, {
sidebar: {
isShow: !1
},
otpModal: {
isShow: !1,
title: "",
strong: !1
},
otpState: {
email: !1,
phoneOtp: !1,
appOtp: !1,
faceOtp: !1,
forceFaceOtp: !1,
phoneLast4: "",
phoneCode: {},
faceCode: {},
emailCode: {}
},
reportData: {
id: null,
type: null
},
alert: {
title: "",
text: "",
html: !1,
onclose: null,
buttons: [],
hideCloseBtn: !1,
headerIcon: null
},
preloader: {
isShow: !1
}
})
}
}
},
616300: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return _
},
getters: function() {
return T
},
mutations: function() {
return M
},
state: function() {
return L
}
});
var r = s(16280)
, a = s.n(r)
, n = s(517642)
, i = s.n(n)
, o = s(658004)
, c = s.n(o)
, d = s(733853)
, l = s.n(d)
, u = s(845876)
, m = s.n(u)
, f = s(432475)
, h = s.n(f)
, p = s(515024)
, g = s.n(p)
, y = s(731698)
, S = s.n(y)
, v = s(962953)
, w = s.n(v)
, I = s(22504)
, b = s(732952)
, A = s(632134)
, P = s(758987)
, k = s(977434);
const C = () => ({
items: {},
offers: [],
modalOffer: null,
offset: 0,
unclaimedOffersCount: 0,
claimedOffersCount: 0
})
, L = {
items: {},
offers: [],
modalOffer: null,
offset: 0,
unclaimedOffersCount: 0,
claimedOffersCount: 0
}
, T = {
getOffer: e => t => e.items[t]
}
, M = {
setPromotionOffers(e, {itemIds: t=[], more: s=!1}={}) {
e.offers = s ? [...new Set([...e.offers, ...t])] : [...t]
},
clearUnclaimedOffers(e) {
e.offers = e.offers.filter((t => e.items[t].finishedAt)),
e.unclaimedOffersCount = 0
},
clearClaimedOffers(e) {
e.offers = e.offers.filter((t => !e.items[t].finishedAt)),
e.claimedOffersCount = 0
},
setUnclaimedOffers(e, t) {
e.unclaimedOffersCount = t
},
setClaimedOffers(e, t) {
e.claimedOffersCount = t
},
unsetOffer(e, t) {
e.offers = e.offers.filter((e => e !== t))
},
setModalOffer(e, t) {
e.modalOffer = t
},
unshiftOffers(e, t=[]) {
e.offers = [...new Set([...t, ...e.offers])]
},
setOffset(e, t=0) {
e.offset = t
},
logout(e) {
Object.assign(e, {
items: {},
offers: [],
modalOffer: null,
offset: 0,
unclaimedOffersCount: 0,
claimedOffersCount: 0
})
}
}
, _ = {
async fetchPromotionOffers({commit: e, dispatch: t, state: s}, {more: r=!1, ...a}={}) {
const {cancelToken: n, Cancel: i} = (0,
k.ws)("fetchPromotionOffers");
try {
r || (e("setOffset"),
e("setPromotionOffers"),
e("clearUnclaimedOffers"),
e("clearClaimedOffers"));
const i = await (0,
b.zC)({
limit: k.Jg,
offset: s.offset,
cancelToken: n,
...a
});
if (i && "object" == typeof i) {
const {users: a, offers: n, unclaimedOffersCount: o, claimedOffersCount: c} = i;
if (o && e("setUnclaimedOffers", o),
c && e("setClaimedOffers", c),
a && Object.keys(a).length) {
const s = (0,
I.S8)(a, A.P7);
await t("users/getUsersIfNeeded", s, {
root: !0
}),
e("set", s, {
root: !0
})
}
if (n) {
if (n.length) {
const t = (0,
I.S8)(n, A.$1)
, a = t.result;
e("set", t, {
root: !0
}),
e("setPromotionOffers", {
itemIds: a,
more: r
}),
e("setOffset", s.offset + k.Jg)
}
return {
hasMore: !!n.length
}
}
}
(0,
P.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: i
}
})
} catch (o) {
if (o instanceof i)
return {
isCanceled: !0
}
}
return {
isError: !0
}
},
async deleteUnclaimedOffer({commit: e, rootGetters: t}, {offerId: s, userId: r}) {
try {
const a = await (0,
b.C8)(s);
if (null != a && a.success) {
e("unsetOffer", s);
const a = t["users/getUser"](r);
return e("users/unsetUserOffer", {
offerId: s,
userId: r
}, {
root: !0
}),
{
user: a,
success: !0
}
}
} catch (a) {
return (0,
P.r_)(a),
{
success: !1
}
}
},
async deleteUnclaimedOffers({commit: e}) {
try {
const t = await (0,
b.pC)();
null != t && t.success && e("clearUnclaimedOffers")
} catch (t) {
(0,
P.r_)(t)
}
},
async deleteClaimedOffers({commit: e}) {
try {
const t = await (0,
b.SM)();
null != t && t.success && e("clearClaimedOffers")
} catch (t) {
(0,
P.r_)(t)
}
},
unshiftOffers({commit: e}, t=[]) {
const s = (0,
I.S8)(t, A.$1);
e("set", s, {
root: !0
}),
e("unshiftOffers", s.result)
}
}
},
660868: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return v
},
getters: function() {
return y
},
mutations: function() {
return S
},
state: function() {
return g
}
});
var r = s(16280)
, a = s.n(r)
, n = s(962953)
, i = s.n(n)
, o = s(22504)
, c = s(381465)
, d = s(758987)
, l = s(717920)
, u = s(977434)
, m = s(178863)
, f = s(632134)
, h = s(980471);
const p = () => ({
cards: {},
alternativeMethods: [],
paymentCardsVat: {},
paymentServicesVat: [],
isLoadingPaymentMethods: !1
})
, g = {
cards: {},
alternativeMethods: [],
paymentCardsVat: {},
paymentServicesVat: [],
isLoadingPaymentMethods: !1
}
, y = {
cards: e => Object.values(e.cards),
getCard: e => t => e.cards[t],
paymentCardsVat: e => Object.values(e.paymentCardsVat),
getPaymentCardVat: e => t => e.paymentCardsVat[t]
}
, S = {
setLoadingPaymentMethods(e, t=!1) {
e.isLoadingPaymentMethods = Boolean(t)
},
setPaymentServicesVat(e, t=[]) {
e.paymentServicesVat = Array.isArray(t) ? t : []
},
setPaymentCardsVat(e, t={}) {
e.paymentCardsVat = (0,
m.Is)(t) ? t : {}
},
updatePaymentCardVat(e, {id: t, payload: s={}}) {
!isNaN(t) && (0,
m.Is)(s) && e.paymentCardsVat[t] && (e.paymentCardsVat[t] = {
...e.paymentCardsVat[t],
...s
})
},
updateCard(e, {id: t, payload: s={}}) {
!isNaN(t) && (0,
m.Is)(s) && e.cards[t] && (e.cards[t] = {
...e.cards[t],
...s
})
},
removeCard(e, t) {
const s = {
...e.cards
};
delete s[t],
e.cards = s
},
setCardDefault(e, t) {
!isNaN(t) && e.cards[t] && Object.keys(e.cards).forEach((s => {
e.cards[t].isDefault = Number(s) === Number(t)
}
))
},
setAlternativeMethods(e, t=[]) {
e.alternativeMethods = Array.isArray(t) ? t : []
},
removeAlternativeMethod(e, t) {
e.alternativeMethods = e.alternativeMethods.filter(( ({id: e}) => Number(e) !== Number(t)))
},
logout(e) {
Object.assign(e, {
cards: {},
alternativeMethods: [],
paymentCardsVat: {},
paymentServicesVat: [],
isLoadingPaymentMethods: !1
})
}
}
, v = {
async fetchPaymentMethods({commit: e}, t) {
const {cancelToken: s, Cancel: r} = (0,
u.ws)("getPaymentsMethodsVat");
e("setLoadingPaymentMethods", !0);
try {
const {cards: r, alternatives: a} = await (0,
c.xK)(t, s)
, {entities: n} = (0,
o.S8)(r || [], f.GB);
e("setPaymentCardsVat", n.cards),
e("setPaymentServicesVat", a),
e("setLoadingPaymentMethods", !1)
} catch (a) {
const t = undefined;
a instanceof r || (e("setPaymentCardsVat", []),
e("setPaymentServicesVat", []),
e("setLoadingPaymentMethods", !1),
(0,
d.r_)(a))
}
},
async fetchCards({commit: e}) {
try {
const t = await (0,
c.Eg)();
if (Array.isArray(t)) {
const s = undefined;
e("set", (0,
o.S8)(t, f.GB), {
root: !0
})
} else
(0,
d.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: t
}
})
} catch (t) {}
},
async setDefaultCard({commit: e, dispatch: t}, {id: s, update: r=!1}={}) {
try {
const a = await (0,
c.sQ)(s);
null != a && a.success && (e("setCardDefault", s),
r && t("fetchCards"))
} catch (a) {
(0,
d.r_)(a)
}
},
async deleteCard({commit: e, dispatch: t}, {id: s, isDefault: r=!1}={}) {
try {
const a = await (0,
c.GO)(s);
if (null != a && a.success) {
e("removeCard", s),
r && t("fetchCards");
const {isPaymentCardConnected: n, canAddCard: i} = a;
void 0 !== n && t("users/setAuthUserData", {
isPaymentCardConnected: n
}, {
root: !0
}),
void 0 !== i && t("users/setAuthUserData", {
canAddCard: i
}, {
root: !0
})
}
} catch (a) {
(0,
d.r_)(a)
}
},
async fetchPaymentsAlternativeMethods({commit: e}) {
try {
const t = undefined;
e("setAlternativeMethods", await (0,
c.Zr)())
} catch (t) {
(0,
d.r_)(t)
}
},
async updatePaymentCardAddress({commit: e, state: t}, {id: s, payload: r}) {
const a = await (0,
c.Lo)(s, r);
null != a && a.success && e("updateCard", {
id: s,
payload: {
...t.cards[s],
addressCountry: r.userinfo.country
}
})
},
async fetchVendors({commit: e}) {
e("settings/setPaymentsLoaded", "loading", {
root: !0
});
let t = null;
const r = 2;
try {
t = await (0,
c.k5)(2)
} catch (i) {
return e("settings/setPaymentsLoaded", !1, {
root: !0
}),
!1
}
if ("object" != typeof t || !t.vendorUrls)
return e("settings/setPaymentsLoaded", !1, {
root: !0
}),
!1;
const a = (0,
h.JX)(t.vendorUrls);
a.forEach(( ({url: e}) => (0,
l.u)(e)));
const n = a.map(( ({name: e, url: t}) => (0,
l.X)(t).then(( () => ({
status: "ok",
name: e
})), ( () => ({
status: "fail",
name: e
})))));
return await Promise.all(n).then((async r => s.e(65021).then(s.t.bind(s, 383544, 23)).then((s => {
var a, n;
s.init({
securionpay: {
publicKey: null === (a = t.params) || void 0 === a || null === (a = a.securionpay) || void 0 === a ? void 0 : a.publicKey
},
stripe: {
publicKey: null === (n = t.params) || void 0 === n || null === (n = n.stripe) || void 0 === n ? void 0 : n.publicKey
},
errorHandler: ({error: e, extra: t={}}) => {
(0,
d.Bg)({
error: e,
extra: t
})
}
}),
e("settings/setUnavailablePaymentGates", r, {
root: !0
}),
e("settings/setPaymentsLoaded", "complete", {
root: !0
})
}
)).catch(( () => (e("settings/setPaymentsLoaded", !1, {
root: !0
}),
!1))))),
!0
}
}
},
776208: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return L
},
getters: function() {
return k
},
mutations: function() {
return C
},
state: function() {
return P
}
});
var r = s(517642)
, a = s.n(r)
, n = s(658004)
, i = s.n(n)
, o = s(733853)
, c = s.n(o)
, d = s(845876)
, l = s.n(d)
, u = s(432475)
, m = s.n(u)
, f = s(515024)
, h = s.n(f)
, p = s(731698)
, g = s.n(p)
, y = s(962953)
, S = s.n(y)
, v = s(22504)
, w = s(632134)
, I = s(414709)
, b = s(758987);
const A = () => ({
items: {},
helperAccess: [],
helpersIds: [],
permissions: {}
})
, P = {
items: {},
helperAccess: [],
helpersIds: [],
permissions: {}
}
, k = {
getHelper: e => t => e.items[t],
helperAccess: e => t => e.helperAccess[t]
}
, C = {
setHelpers(e, {itemIds: t=[], more: s=!1}={}) {
e.helpersIds = s ? [...new Set([...e.helpersIds, ...t])] : t
},
setPermissions(e, t) {
e.permissions = t
},
removeHelper(e, t) {
e.helpersIds = e.helpersIds.filter((e => e !== t)),
delete e.items[t]
},
logout(e) {
Object.assign(e, {
items: {},
helperAccess: [],
helpersIds: [],
permissions: {}
})
}
}
, L = {
async getPerformerHelpers({commit: e}, {more: t=!1}={}) {
try {
t || e("setHelpers");
const s = await (0,
I.S2)();
if (null != s && s.length) {
const r = (0,
v.S8)(s, w.xC);
e("set", r, {
root: !0
}),
e("setHelpers", {
itemIds: r.result,
more: t
})
}
} catch (s) {}
},
async getPerformerHelper({commit: e}, t) {
try {
const s = await (0,
I.jO)(t);
if (null != s && s.isValid) {
const t = undefined;
e("set", (0,
v.S8)(s, w.Sf), {
root: !0
})
}
} catch (s) {}
},
async getPerformerHelpersPermissions({commit: e}) {
try {
const t = await (0,
I.Yl)();
t && e("setPermissions", t)
} catch (t) {}
},
async setPerformerHelper({commit: e}, {userId: t, permissions: s=[]}) {
try {
const r = await (0,
I.LG)(t, s);
if (null != r && r.isValid) {
const t = undefined;
e("set", (0,
v.S8)(r, w.Sf), {
root: !0
})
} else
e("removeHelper", t)
} catch (r) {
(0,
b.r_)(r)
}
}
}
},
769922: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
mutations: function() {
return n
},
state: function() {
return a
}
});
const r = () => ({
isSubmitting: !1,
isAddingPostToEditor: !1
})
, a = {
isSubmitting: !1,
isAddingPostToEditor: !1
}
, n = {
setSubmitting(e, t) {
e.isSubmitting = t
},
setAddingPostToEditor(e, t) {
e.isAddingPostToEditor = t
},
logout(e) {
Object.assign(e, {
isSubmitting: !1,
isAddingPostToEditor: !1
})
}
}
},
848533: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return l
},
getters: function() {
return c
},
mutations: function() {
return d
},
state: function() {
return o
}
});
var r = s(590179)
, a = s.n(r)
, n = s(542427);
const i = () => ({
assets: [],
page: 1,
limit: 25,
isLoading: !1,
addedItemsDurations: {}
})
, o = {
assets: [],
page: 1,
limit: 25,
isLoading: !1,
addedItemsDurations: {}
}
, c = {
offset(e) {
return e.limit * (e.page - 1)
}
}
, d = {
setPage(e, t) {
e.page = t
},
setAssets(e, t) {
e.assets = t
},
setLoading(e, t) {
e.isLoading = t
},
setItemDuration(e, {id: t, duration: s}) {
e.addedItemsDurations = {
...e.addedItemsDurations,
[t]: s
}
},
removeItemsDuration(e, t) {
e.addedItemsDurations = t ? a()(e.addedItemsDurations, [t]) : {}
},
logout(e) {
Object.assign(e, {
assets: [],
page: 1,
limit: 25,
isLoading: !1,
addedItemsDurations: {}
})
}
}
, l = {
async fetchAssets({commit: e, getters: t, state: s}, r) {
const {params: a, options: i={}} = r;
i.force ? e("setAssets", []) : e("setPage", s.page + 1);
try {
e("setLoading", !0);
const {data: r} = await (0,
n.V)({
...a,
limit: s.limit,
offset: t.offset
})
, o = r.map((e => {
const {url: t, height: s, width: r} = e.images.downsized;
return {
url: t,
height: Number(s),
width: Number(r)
}
}
));
return e("setAssets", i.force ? o : s.assets.concat(o)),
o
} catch (o) {
return Sentry.captureException(o),
[]
} finally {
e("setLoading", !1)
}
},
resetPagination({commit: e}) {
e("setPage", 1)
}
}
},
91019: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return $
},
getters: function() {
return M
},
mutations: function() {
return _
},
state: function() {
return T
}
});
var r = s(517642)
, a = s(658004)
, n = s(733853)
, i = s(845876)
, o = s(432475)
, c = s(515024)
, d = s(731698)
, l = s(962953)
, u = s(22504)
, m = s(632134)
, f = s(858156)
, h = s.n(f)
, p = s(977434);
const g = ({limit: e=p.Jg, offset: t=0, ids: s=!1, query: r=""}={}, a) => p.Ay.get(`${p.XV}/labels${(0,
p.Zq)(s ? {
offset: t,
ids: s,
query: r
} : {
offset: t,
limit: e,
query: r
})}`, {
cancelToken: a
}).then((e => e.data))
, y = ({limit: e=p.Jg, offset: t=0, userId: s}={}, r) => p.Ay.get(`${p.XV}/users/${s}/labels${(0,
p.Zq)({
limit: e,
offset: t,
"non-empty": 1
})}`, {
cancelToken: r
}).then((e => e.data))
, S = e => p.Ay.post(`${p.XV}/labels`, {
name: e
}).then((e => e.data))
, v = ({id: e, name: t}) => p.Ay.patch(`${p.XV}/labels/${e}`, {
name: t
}).then((e => e.data))
, w = e => p.Ay.get(`${p.XV}/labels/${e}`).then((e => e.data))
, I = e => p.Ay.post(`${p.XV}/labels/sort`, e).then((e => e.data))
, b = e => p.Ay.delete(`${p.XV}/labels/${e}/posts`).then((e => e.data))
, A = (e, t=[]) => p.Ay.post(`${p.XV}/labels/${e}/posts`, {
posts: t
}).then((e => e.data))
, P = e => p.Ay.delete(`${p.XV}/labels/${e}`).then((e => e.data))
, k = (e, t) => p.Ay.delete(`${p.XV}/labels/${e}/post/${t}`).then((e => e.data));
var C = s(758987);
const L = () => ({
items: {},
postLabelsIds: [],
userLabelsIds: [],
modalPostLabelId: null,
customOrderEnabled: !1,
loading: !1,
addPostsMode: {
isAddMode: !1,
loading: !1,
selectedPostsToAddToList: []
},
postLabelsListDirection: "asc",
activePostLabel: "",
labelsSort: "recent",
labelsOrder: "asc"
})
, T = {
items: {},
postLabelsIds: [],
userLabelsIds: [],
modalPostLabelId: null,
customOrderEnabled: !1,
loading: !1,
addPostsMode: {
isAddMode: !1,
loading: !1,
selectedPostsToAddToList: []
},
postLabelsListDirection: "asc",
activePostLabel: "",
labelsSort: "recent",
labelsOrder: "asc"
}
, M = {
getPostLabel: e => t => e.items[t],
isAddPostsMode: e => e.addPostsMode.isAddMode,
isAddPostsModeLoading: e => e.addPostsMode.loading,
selectedPostsToAddToList: e => e.addPostsMode.selectedPostsToAddToList,
userLabels: (e, t) => e.userLabelsIds.map((e => t.getPostLabel(e))).filter((t => t.id === e.activePostLabel || !(null == t || !t.postsCount)))
}
, _ = {
setIds(e, t=[]) {
e.postLabelsIds = t
},
addIds(e, t=[]) {
e.postLabelsIds = [...new Set([...e.postLabelsIds, ...t])]
},
prependIds(e, t) {
e.postLabelsIds = [...new Set([...t, ...e.postLabelsIds])]
},
appendIds(e, t) {
e.postLabelsIds = [...new Set([...e.postLabelsIds, ...t])]
},
removeId(e, t) {
e.postLabelsIds = e.postLabelsIds.filter((e => e !== t))
},
setUserLabelsIds(e, t=[]) {
e.userLabelsIds = t
},
addUserLabelsIds(e, t=[]) {
e.userLabelsIds = [...new Set([...e.userLabelsIds, ...t])]
},
setModalPostLabelId(e, t=null) {
e.modalPostLabelId = t
},
setCustomOrderEnabled(e, t) {
e.customOrderEnabled = t
},
setIsAddPostsMode(e, t=!1) {
e.addPostsMode.isAddMode = t
},
setPostLabel(e, {labelId: t, label: s={}}) {
e.items = {
...e.items,
[t]: {
...e.items[t] || {},
...s
}
}
},
decrementPostLabelsCounters(e, t=[]) {
t.forEach((t => {
e.items[t.id] && e.items[t.id].postsCount && (e.items[t.id].postsCount -= 1)
}
))
},
incrementPostLabelsCounters(e, t=[]) {
t.forEach((t => {
e.items[t.id] && (e.items[t.id].postsCount += 1)
}
))
},
setCustomPostsCount(e, {labelId: t, value: s}) {
e.items[t] && "archived" !== e.items[t].type && (e.items[t].postsCount = s)
},
setPostLabelArchivedCounters(e, {archivedPostsCount: t=0, privateArchivedPostsCount: s=0}) {
const r = Object.values(e.items)
, a = r.find((e => "archived" === e.type));
a && (a.postsCount = t);
const n = r.find((e => "private_archived" === e.type));
n && (n.postsCount = s)
},
setLoading(e, t) {
e.loading = t
},
setHasMore(e, t) {
e.hasMore = t
},
setAddPostsModeLoading(e, t) {
e.addPostsMode.loading = t
},
setSelectedPostsToAddToList(e, t) {
e.addPostsMode.selectedPostsToAddToList = t
},
setPostLabelsListDirection(e, t) {
e.postLabelsListDirection = t
},
setLabelsState(e, t={}) {
Object.assign(e, t)
},
logout(e) {
Object.assign(e, {
items: {},
postLabelsIds: [],
userLabelsIds: [],
modalPostLabelId: null,
customOrderEnabled: !1,
loading: !1,
addPostsMode: {
isAddMode: !1,
loading: !1,
selectedPostsToAddToList: []
},
postLabelsListDirection: "asc",
activePostLabel: "",
labelsSort: "recent",
labelsOrder: "asc"
})
}
}
, $ = {
async fetchPostLabels({commit: e}, {limit: t=p.Jg, offset: s=0, needMore: r=!1, ids: a=!1, query: n}) {
try {
s || r || e("setIds"),
e("setLoading", !0);
const i = await g({
limit: t,
offset: s,
ids: a,
query: n
});
if (e("setHasMore", !(null == i || !i.hasMore)),
Array.isArray(null == i ? void 0 : i.list) && i.list.length) {
const t = (0,
u.S8)(i.list, m.d3);
e("set", t, {
root: !0
}),
e("addIds", t.result)
}
const {sort: o, order: c} = i || {};
return o && c && e("setLabelsState", {
labelsSort: o,
labelsOrder: c
}),
!(null == i || !i.hasMore)
} catch (i) {
return
} finally {
e("setLoading", !1)
}
},
async fetchUserPostLabels({commit: e}, {limit: t=p.Jg, offset: s=0, userId: r}) {
e("setLoading", !0),
s || e("setUserLabelsIds");
try {
const a = await y({
limit: t,
offset: s,
userId: r
});
if (Array.isArray(a.list) && a.list.length) {
const t = (0,
u.S8)(a.list, m.d3);
e("set", t, {
root: !0
}),
e("addUserLabelsIds", t.result)
}
return null == a ? void 0 : a.hasMore
} catch (a) {
return
} finally {
e("setLoading", !1)
}
},
async addPostLabel({state: e, commit: t}, s) {
try {
const r = await S(s);
if (null != r && r.id) {
const s = (0,
u.S8)(r, m.KY);
return t("set", s, {
root: !0
}),
"asc" !== e.postLabelsListDirection || e.hasMore || t("appendIds", [+s.result]),
"desc" === e.postLabelsListDirection && t("prependIds", [+s.result]),
r
}
} catch (r) {
(0,
C.r_)(r)
}
return null
},
async updatePostLabel({commit: e, rootState: t}, {id: s, name: r}) {
try {
const n = await v({
id: s,
name: r
});
if (null != n && n.id) {
var a;
const s = (0,
u.S8)(n, m.KY);
e("set", s, {
root: !0
}),
null !== (a = n.posts) && void 0 !== a && a.length && Object.keys(t.posts.items).forEach((s => {
if (t.posts.items[s].labelStates) {
let r = !1;
const a = [];
t.posts.items[s].labelStates.forEach(( (e, t) => {
a[t] = {
...e
},
+e.id == +n.id && (a[t].name = n.name,
r = !0)
}
)),
r && e("posts/setPostField", {
postId: s,
field: "labelStates",
status: a
}, {
root: !0
})
}
}
))
}
} catch (n) {
(0,
C.r_)(n)
}
},
async fetchPostLabel({commit: e}, t) {
try {
const s = await w(t);
if (null != s && s.id) {
const t = undefined;
e("set", (0,
u.S8)(s, m.KY), {
root: !0
})
}
} catch (s) {}
},
async savePostLabelsOrder({commit: e}, t) {
let {customOrder: s, sort: r, order: a} = t;
"custom" === r && (a = "asc");
try {
const t = await I({
customOrder: s,
sort: r,
order: a
});
null != t && t.success && (s && e("setIds", s),
e("setLabelsState", {
labelsSort: r,
labelsOrder: a
}))
} catch (n) {
(0,
C.r_)(n)
}
},
async deletePostLabel({commit: e}, t) {
let s;
try {
const s = await P(t);
null != s && s.success && e("removeId", t)
} catch (r) {
(0,
C.r_)(r)
}
return s
},
async clearPostLabel({commit: e, getters: t}, s) {
try {
e("setLoading", !0);
const r = await b(s);
null != r && r.success && (e("setPostLabel", {
labelId: s,
label: {
postsCount: 0,
posts: []
}
}),
e("posts/setItemIds", [], {
root: !0
}),
t.isAddPostsMode && e("setIsAddPostsMode", !1))
} catch (r) {
(0,
C.r_)(r)
} finally {
e("setLoading", !1)
}
},
async updateLabels({commit: e}, t) {
const s = (0,
u.S8)(t, m.d3);
e("set", s, {
root: !0
}),
e("addIds", s.result)
},
async togglePostInPostsLabels({commit: e, dispatch: t, rootGetters: s, state: r}, {labelId: a, postId: n, routeData: {isQueuePage: i, isPostOrProfileLabelPage: o, isLabelFromRouteParam: c}}) {
try {
let d, l;
i ? (d = s["schedule/getSchedulePostById"](n) || {},
l = d.labelStates) : (d = s["posts/getPost"](n),
l = d[0].labelStates);
const u = l.find(( ({id: e}) => +e === a))
, m = u ? await k(a, n) : await A(a, [n]);
if (null != m && m.success) {
e("addUserLabelsIds", [a]);
const s = h()(m, "label.type", "custom");
await t("fetchPostLabel", a);
const d = i ? "schedule" : "posts";
u ? e(`${d}/deletePostLabel`, {
postId: n,
labelId: a
}, {
root: !0
}) : e(`${d}/addPostLabel`, {
postId: n,
label: r.items[a]
}, {
root: !0
});
const f = (t, r) => {
if (s === t) {
const s = !u;
e("users/changeUsersPostsCount", {
decrement: !u
}, {
root: !0
});
const a = l.filter((e => e.type !== t));
e("posts/setPostField", {
postId: n,
field: r,
status: s
}, {
root: !0
}),
e(s ? "decrementPostLabelsCounters" : "incrementPostLabelsCounters", a)
}
}
;
f("archived", "isArchived"),
f("private_archived", "isPrivateArchived"),
o && u && c && e("posts/deletePostId", n, {
root: !0
}),
t("users/setAuthUserData", {
hasLabels: !0
}, {
root: !0
})
}
} catch (d) {
(0,
C.r_)(d)
}
},
async addPostsToLabel({commit: e}, {labelId: t, postsIds: s=[]}) {
try {
e("setAddPostsModeLoading", !0);
const {label: r={}, success: a=!1} = await A(t, s);
return a && (e("setPostLabel", {
labelId: t,
label: r
}),
e("posts/setItemIds", [], {
root: !0
})),
Promise.resolve()
} catch (r) {
(0,
C.r_)(r)
} finally {
e("setAddPostsModeLoading", !1)
}
}
}
},
964212: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return l
},
mutations: function() {
return d
},
state: function() {
return c
}
});
var r = s(962953)
, a = s.n(r)
, n = s(458723);
const i = 3e4
, o = () => ({
collection: [],
timer: void 0
})
, c = {
collection: [],
timer: void 0
}
, d = {
collect(e, t) {
e.collection = [...e.collection, t]
},
setTimer(e, t) {
e.timer = t
},
resetCollection(e) {
e.collection = []
},
resetTimer(e) {
s.g.clearInterval(e.timer),
e.timer = void 0
},
logout(e) {
Object.assign(e, {
collection: [],
timer: void 0
})
}
}
, l = {
setTimer({commit: e}, t) {
e("setTimer", t)
},
collect({commit: e}, t) {
e("collect", t)
},
sendCollection({commit: e, state: t, rootGetters: s}) {
const r = s["init/shouldSendStat"]
, a = s["auth/authUserId"];
t.collection.length && (r && a && (0,
n.dv)(t.collection).catch(( () => {}
)),
e("resetCollection"))
},
startCollect({commit: e, state: t, dispatch: r}) {
if (t.timer)
return;
const a = undefined;
e("setTimer", s.g.setInterval(( () => {
r("sendCollection")
}
), i))
},
stopCollect({commit: e, dispatch: t}) {
t("sendCollection"),
e("resetTimer")
}
}
},
723784: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return J
},
getters: function() {
return Z
},
mutations: function() {
return Q
},
state: function() {
return G
}
});
var r = s(16280)
, a = s.n(r)
, n = s(944114)
, i = s.n(n)
, o = s(194490)
, c = s.n(o)
, d = s(533110)
, l = s.n(d)
, u = s(517642)
, m = s.n(u)
, f = s(658004)
, h = s.n(f)
, p = s(733853)
, g = s.n(p)
, y = s(845876)
, S = s.n(y)
, v = s(432475)
, w = s.n(v)
, I = s(515024)
, b = s.n(I)
, A = s(731698)
, P = s.n(A)
, k = s(725440)
, C = s.n(k)
, L = s(962953)
, T = s.n(L)
, M = s(22504)
, _ = s(858156)
, $ = s.n(_)
, E = s(458723)
, V = s(622365)
, D = s(202600)
, U = s(632134)
, O = s(631126)
, R = s(758987)
, F = s(977434)
, B = s(463670)
, q = s(104577)
, x = s(284419)
, j = s(748977);
const N = e => e && !+e ? e : "feed"
, X = (e, t) => {
const s = +new Date;
return e[t].map((t => e.items[t])).filter((e => {
if (!e)
return !1;
if (e.expiredAt) {
const t = undefined;
if (+new Date(e.expiredAt) <= s)
return !1
}
return !0
}
))
}
, H = () => ({
items: {},
itemIds: [],
memoriesPostIds: {
thisDay: [],
currentIds: [],
errorIds: []
},
tempItemIds: {},
feedItemIds: [],
tempFeedItemIds: [],
lastFeedItemIds: [],
lastFeedType: null,
lastProfileItemIds: {},
hasPrevUserPostsToLoad: !1,
currentPost: null,
isPostsLoading: !1,
isPostLoading: !1,
error: !1,
layout: x.A.getItem("postsLayout") || "full",
mediaLayout: x.A.getItem("wallLayout") || "grid",
collectionsLayout: x.A.getItem("collectionsLayout") || "full",
postPublishedCounter: 0,
hasNewOwnPostPublished: !1,
offset: 0,
needScrollToComments: !1,
disabledPinsOrder: !1,
hasPrevPostsToLoad: !1,
votersList: {},
postsLogin: [],
votersMarker: void 0,
pinnedIds: [],
hasMore: {},
currentFullscreenPostId: null,
feedSettings: {
isHidePromoFeedPosts: !1,
isHideFeedPostsProfileBanners: !1,
...JSON.parse(x.A.getItem("feedSettings") || "{}")
},
userGetPostsError: !1,
hasFeedBottomPostLoadError: !1,
isProfileDataFetching: !1,
postsFiltersCounter: {},
beforePublishTime: void 0,
afterPublishTime: void 0,
headMarker: void 0,
tailMarker: void 0,
tweetSend: 0,
tagsRequiredSearchQuery: "",
isToggleArchivePostLoading: !1,
isTogglePinPostLoading: !1,
goToPostDate: null
})
, G = H()
, Z = {
posts: e => e.itemIds.map((t => e.items[t])),
bookmarksPosts: (e, t) => t.posts.filter((e => null == e ? void 0 : e.isAddedToBookmarks)),
postsPinned: e => e.pinnedIds.map((t => e.items[t])).filter((e => e && !e.isReportedByMe)),
memoriesPostIdsToShow: e => {
const {currentIds: t, thisDay: s} = e.memoriesPostIds;
return t.length ? t : s
}
,
memoriesPostIds: e => e.memoriesPostIds,
memoriesErrorPostId: e => t => e.memoriesPostIds.errorIds.find((e => e === t)),
feedPosts: e => e.feedItemIds.map((t => e.items[t])),
filterReportedPosts: e => X(e, "itemIds").filter((e => e && !e.isReportedByMe)),
filterReportedFeedPosts: e => X(e, "feedItemIds").filter((e => e && !e.isReportedByMe)),
filterFeedPosts(e, t, s, r) {
let a = t.filterReportedFeedPosts;
const n = r["auth/authUserId"];
return e.feedSettings.isHidePromoFeedPosts && (a = a.filter((e => e.author === n || !(e.linkedPosts || []).length && !(e.linkedUsers || []).length && !e.hasUrl))),
e.feedSettings.isHideFeedPostsProfileBanners && (a = a.map((e => e.author === n ? e : {
...e,
linkedUsers: []
}))),
a
},
hasThisDayPosts: e => !!e.memoriesPostIds.thisDay.length,
getPost: e => t => e.items[t] ? [{
...e.items[t]
}] : [],
activePost: e => [{
...e.items[e.currentPost]
}],
getPostById: e => t => ({
...e.items[t] || {}
}),
hasActivePost: e => !!e.currentPost,
isGridLayout: e => "grid" === e.layout,
isMediaGridLayout: e => "grid" === e.mediaLayout,
isCollectionsGridLayout: e => "grid" === e.collectionsLayout,
postVoters: e => (t, s) => e.votersList[`${s || ""}_${t || ""}`] || [],
getPostVoter: e => t => e.votersList[t],
getLastProfileItemIds: e => (t, s="post") => {
var r;
const a = [];
return null !== (r = e.lastProfileItemIds[t]) && void 0 !== r && r.length && e.lastProfileItemIds[t].forEach((e => {
s === e.postType && a.push(e.id)
}
)),
a
}
,
getTempItemIds: e => t => e.tempItemIds[t] || {
pinnedPostsIds: [],
userPostItemIds: []
},
getPostReleaseForms: (e, t, s) => t => {
var r;
const a = $()(s, "releaseForms.items", {});
return null !== (r = e.items[t]) && void 0 !== r && r.releaseForms ? e.items[t].releaseForms.map((e => a[e])).filter(Boolean) : []
}
,
hasMore: e => t => !!e.hasMore[t],
isGoToPostDateSelected: e => e.goToPostDate && e.goToPostDate !== B.Yy
}
, Q = {
saveFeedItemIds(e) {
e.tempFeedItemIds = e.feedItemIds,
e.feedItemIds = []
},
setLoading(e, t) {
e.isPostsLoading = t
},
setPostLoading(e, t) {
e.isPostLoading = t
},
setError(e, t) {
e.error = t
},
incrementPostCommentsCount(e, t) {
e.items[t] && (e.items[t].commentsCount += 1)
},
decrementPostComment(e, t) {
e.items[t] && e.items[t].commentsCount && e.items[t].commentsCount > 0 && (e.items[t].commentsCount -= 1)
},
setItemIds(e, t=[]) {
e.itemIds = [...new Set([...t])]
},
setMemoriesThisDayPostIds(e, t=[]) {
e.memoriesPostIds.thisDay = t
},
setMemoriesCurrentPostIds(e, t=[]) {
e.memoriesPostIds.currentIds = t
},
resetMemoriesCurrentPostIds(e) {
e.memoriesPostIds.currentIds = []
},
setMemoriesErrorPostIds(e, t) {
const {errorIds: s} = e.memoriesPostIds;
e.memoriesPostIds.errorIds = [...new Set([...s, t])]
},
resetMemoriesErrorPostIds(e) {
e.memoriesPostIds.errorIds = []
},
addItemIds(e, t=[]) {
e.itemIds = [...new Set([...e.itemIds, ...t])]
},
addNewItemIds(e, t=[]) {
e.itemIds = [...new Set([...t, ...e.itemIds])]
},
setFeedItemIds(e, t=[]) {
e.feedItemIds = [...new Set([...t])]
},
setPinnedIds(e, t=[]) {
e.pinnedIds = t
},
resetFeedItemIds(e) {
e.feedItemIds = [],
e.tempFeedItemIds = []
},
addFeedItemIds(e, t=[]) {
e.feedItemIds = [...new Set([...e.feedItemIds, ...t])]
},
addNewFeedItemIds(e, t=[]) {
e.feedItemIds = [...new Set([...t, ...e.feedItemIds])]
},
setLastFeedItemIds(e, t=[]) {
e.lastFeedItemIds = t
},
setLastFeedType(e, t) {
e.lastFeedType = t
},
addLastFeedItemId(e, t=[]) {
e.lastFeedItemIds = [...new Set([...e.lastFeedItemIds, ...t])]
},
setPrevUserPostsToLoad(e, t) {
e.hasPrevUserPostsToLoad = t
},
setLastProfileItemId(e, {username: t, arr: s}) {
t && (e.lastProfileItemIds[t] = s)
},
addLastProfileItemId(e, {username: t, id: s, postType: r="post"}) {
t && (void 0 === e.lastProfileItemIds[t] && (e.lastProfileItemIds[t] = []),
e.lastProfileItemIds[t].push({
username: t,
id: s,
postType: r
}))
},
setTempItemIds(e, {username: t, value: s}) {
t && (e.tempItemIds[t] = s)
},
setActivePost(e, t) {
e.currentPost = t
},
clearActivePost(e) {
e.currentPost = null
},
togglePostFavorite(e, t) {
var s;
if (null !== (s = e.items[t]) && void 0 !== s && s.id) {
const {isFavorite: s} = e.items[t];
e.items[t].isFavorite = !s,
s ? e.items[t].favoritesCount -= 1 : e.items[t].favoritesCount += 1
}
},
togglePostBooleanProperty(e, {id: t, propName: s}) {
if (e.items[t]) {
const r = e.items[t][s];
e.items[t][s] = !r
}
},
toggleLayout(e) {
e.layout = "grid" === e.layout ? "full" : "grid",
x.A.setItem("postsLayout", e.layout)
},
toggleMediaLayout(e) {
e.mediaLayout = "grid" === e.mediaLayout ? "full" : "grid",
x.A.setItem("wallLayout", e.mediaLayout)
},
toggleCollectionsLayout(e) {
e.collectionsLayout = "grid" === e.collectionsLayout ? "full" : "grid",
x.A.setItem("collectionsLayout", e.collectionsLayout)
},
deletePost(e, t) {
if (void 0 !== e.items[t]) {
const s = {
...e.items
};
delete s[t];
const r = e.itemIds.filter((e => +e != +t));
r.length !== e.itemIds.length && (e.itemIds = r);
const a = e.pinnedIds.filter((e => +e != +t));
a.length !== e.pinnedIds.length && (e.pinnedIds = a);
const n = e.feedItemIds.filter((e => +e != +t));
n.length !== e.feedItemIds.length && (e.feedItemIds = n),
e.items = s
}
},
deletePostId(e, t) {
e.itemIds = e.itemIds.filter((e => e !== t))
},
deletePinnedPostId(e, t) {
e.pinnedIds = e.pinnedIds.filter((e => e !== t))
},
updatePostThumbCustomCover(e, t) {
const {postId: s, ...r} = t
, a = e.items[s];
a && (e.items[s].media = (0,
q.t)(a.media, r))
},
updatePost(e, t) {
var s, r;
const {id: a} = t;
e.items[a] && (e.items[a].fundRaising && !t.fundRaising && delete e.items[a].fundRaising,
e.items[a] = {
...e.items[a],
...t
}),
null != t && null !== (s = t.fundRaising) && void 0 !== s && s.targetProgress && null !== (r = e.items[a]) && void 0 !== r && r.tipsAmount && (e.items[a].tipsAmount = (0,
O.Wx)(+t.fundRaising.targetProgress))
},
incPostPublishedCounter(e) {
e.postPublishedCounter += 1
},
setPostPublishedCounter(e, t) {
e.postPublishedCounter = t
},
setHasNewOwnPostPublished(e, t) {
e.hasNewOwnPostPublished = t
},
resetPostPublishedCounter(e) {
e.postPublishedCounter = 0
},
setPrevPostsToLoad(e, t) {
e.hasPrevPostsToLoad = t
},
setStreamEvents(e, {events: t, postId: s}) {
e.items[s].streamEvents = t
},
setPostFavorites(e, {postId: t, list: s, more: r}) {
e.items[t].favoritesList = r ? [...new Set([...e.items[t].favoritesList, ...s])] : s
},
setPostTips(e, {postId: t, list: s, more: r}) {
e.items[t].tipsList = r ? [...new Set([...e.items[t].tipsList, ...s])] : s
},
setPostBuyers(e, {postId: t, list: s, more: r}) {
e.items[t].buyersList = r ? [...new Set([...e.items[t].buyersList, ...s])] : s
},
resetPostBuyers(e, {postId: t}) {
e.items[t].buyersList = []
},
resetPostFavorites(e, {postId: t}) {
e.items[t].favoritesList = []
},
resetPostTips(e, {postId: t}) {
e.items[t].tipsList = []
},
updatePostInBookmarks(e, {id: t, isAdded: s}) {
e.items[t].isAddedToBookmarks = s
},
setOffset(e, t) {
e.offset = +t
},
setScrollToComments(e, t) {
e.needScrollToComments = t
},
updatePostTips(e, {postId: t, amount: s}) {
if (s && e.items[t]) {
const r = (0,
j.BT)(e.items[t].tipsAmount) + +s;
e.items[t].tipsAmount = (0,
O.Wx)(r)
}
},
setDisabledPinsOrder(e, t) {
e.disabledPinsOrder = t
},
setHasMore(e, {type: t, value: s}) {
e.hasMore = {
...e.hasMore,
[t]: s
}
},
setUserGetPostsError(e, t) {
e.userGetPostsError = t
},
setVotersMarker(e, t) {
e.votersMarker = t
},
setPostsLogin(e, {value: t=[], more: s=!1}={}) {
e.postsLogin = s ? [...new Set([...e.postsLogin, ...t])] : t
},
setCurrentFullscreenPostId(e, t) {
e.currentFullscreenPostId = t
},
toggleIsHidePromoFeedPosts(e) {
e.feedSettings.isHidePromoFeedPosts = !e.feedSettings.isHidePromoFeedPosts,
x.A.setItem("feedSettings", JSON.stringify(e.feedSettings))
},
toggleIsHideFeedPostsProfileBanners(e) {
e.feedSettings.isHideFeedPostsProfileBanners = !e.feedSettings.isHideFeedPostsProfileBanners,
x.A.setItem("feedSettings", JSON.stringify(e.feedSettings))
},
filterHiddenUserFeedPosts(e, t) {
e.feedItemIds = e.feedItemIds.filter((s => e.items[s] && e.items[s].author !== t))
},
setPostIsReportedByMe(e, t=0) {
e.items[t] && (e.items[t] = {
...e.items[t],
isReportedByMe: !0
})
},
setPostsFiltersCounter(e, t) {
e.postsFiltersCounter = t
},
resetPostsFiltersCounter(e) {
e.postsFiltersCounter = {}
},
resetPosts(e) {
e.items = {},
e.postsFiltersCounter = {},
e.itemIds = []
},
resetPostsLogin(e) {
e.items = {},
e.postsLogin = []
},
setFeedBottomPostLoadError(e, t=!1) {
e.hasFeedBottomPostLoadError = t
},
setIsProfileDataFetching(e, t=!1) {
e.isProfileDataFetching = t
},
setPostIsReportedByMeTemp(e, t=0) {
e.items[t] && (e.items[t] = {
...e.items[t],
isReportedByMeTemp: !0
})
},
addPostLabel(e, {postId: t, label: s}) {
"custom" === s.type && (e.items[t].labelStates = [...new Set([...e.items[t].labelStates, s])])
},
deletePostLabel(e, {postId: t, labelId: s}) {
e.items[t].labelStates = e.items[t].labelStates.filter(( ({id: e}) => e !== s))
},
setPostField(e, {postId: t, field: s, status: r}) {
if (!e.items[t])
return;
const a = {};
a[s] = r,
e.items[t] = {
...e.items[t],
...a
}
},
resetVotersList(e) {
e.votersList = {}
},
setMarkers(e, {headMarker: t, tailMarker: s}={}) {
if (!t || !s)
return e.headMarker = void 0,
e.tailMarker = void 0,
e.beforePublishTime = void 0,
void (e.afterPublishTime = void 0);
"" + +t == `${t}` ? (e.headMarker = Math.min(...[e.headMarker, t, s].filter((e => e))),
e.tailMarker = Math.max(...[e.tailMarker, t, s].filter((e => e)))) : (e.beforePublishTime = Math.min(...[e.beforePublishTime, t, s].filter(Boolean)).toFixed(6),
e.afterPublishTime = Math.max(...[e.afterPublishTime, t, s].filter(Boolean)).toFixed(6))
},
setTweetSend(e, t=0) {
e.tweetSend = t
},
setTagsRequiredSearchQuery(e, t) {
e.tagsRequiredSearchQuery = t
},
setIsToggleArchivePostLoading(e, t) {
e.isToggleArchivePostLoading = t
},
setIsTogglePinPostLoading(e, t) {
e.isTogglePinPostLoading = t
},
setGoToPostDate(e, t=null) {
e.goToPostDate = t
},
logout(e) {
Object.assign(e, H())
}
}
, J = {
async fetchPosts({commit: e, state: t, dispatch: s}, {limit: r=F.Jg, more: a=!1, query: n, beforePublishTime: i, afterPublishTime: o, direction: c, listId: d, listType: l, user: u, needFullResponse: m=!1, type: f="all", isTagsRequiredPage: h, isFeedPage: p}={}) {
var g;
const {cancelToken: y, isCancelled: S, Cancel: v} = (0,
F.ws)("fetchPosts");
S && e("setLoading", !1);
const w = N(d);
e("setLoading", !0),
a || (e("setOffset", 0),
e("setMarkers"),
"bottom" === c && e("setHasMore", {
value: !1,
type: w
}),
"feed" !== w && e("resetFeedItemIds"));
let I = {};
e("setFeedBottomPostLoadError", !1);
const b = {
limit: r,
offset: t.offset,
query: n,
cancelToken: y,
listId: d,
listType: l,
user: u,
type: f
};
"bottom" === c ? t.tailMarker ? b.tailMarker = t.tailMarker : b.beforePublishTime = t.beforePublishTime || i : t.headMarker ? b.headMarker = t.headMarker : b.afterPublishTime = t.afterPublishTime || o,
h && (b.listId = "need-tag");
try {
I = await (0,
E.K5)(b),
e("setOffset", t.offset + r)
} catch (k) {
if (k instanceof v)
return;
if (e("setLoading", !1),
u && 404 === k.status && "User not found" === $()(k, "data.error.message"))
return void e("setFeedItemIds", []);
throw p && "bottom" === c && e("setFeedBottomPostLoadError", !0),
k
}
if (!Array.isArray(null === (g = I) || void 0 === g ? void 0 : g.list))
return (0,
R.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: I
}
}),
e("setLoading", !1),
m ? {} : [];
const A = I.list
, P = (0,
M.S8)(A, U.uY);
e("releaseForms/setReleaseFormsNormalized", P, {
root: !0
});
try {
await s("users/getUsersIfNeeded", P, {
root: !0
}),
e("set", P, {
root: !0
});
const r = P.result;
return e("setMarkers", I),
a ? e("bottom" === c ? "addFeedItemIds" : "addNewFeedItemIds", r) : (e("setFeedItemIds", r),
e("resetPostPublishedCounter")),
h && e("setOffset", t.feedItemIds.length),
"bottom" === c && e("setHasMore", {
value: I.hasMore,
type: w
}),
("top" === c && !I.hasMore || !b.beforePublishTime && !b.afterPublishTime) && e("setHasNewOwnPostPublished", !1),
e("setLoading", !1),
m ? I : A
} catch (k) {
return e("setLoading", !1),
m ? {} : []
}
},
async fetchThisDayPostsStoryByIndex({commit: e, getters: t, dispatch: s, rootGetters: r}, a) {
if (-1 === a)
return;
let n = [];
const i = t.memoriesPostIdsToShow
, o = undefined
, c = a + 1
, d = i[a - 1]
, l = i[a]
, u = i[c];
n.push(l),
0 === a && u ? n.push(u) : a === i.length - 1 && d ? n.push(d) : [d, u].forEach((e => {
e && n.push(e)
}
)),
n = n.filter((e => {
const s = undefined;
return !("pending" === r["stories/getStoryLoadingState"](`memory_${e}`)) && !t.memoriesErrorPostId(e) && !t.getPost(e)[0]
}
)),
await Promise.all(n.map((t => (e("stories/updateLoadingStatus", {
id: `memory_${t}`,
status: "pending"
}, {
root: !0
}),
s("fetchPost", {
id: t,
memories: !0
}))))),
n.forEach((t => {
e("stories/updateLoadingStatus", {
id: `memory_${t}`
}, {
root: !0
})
}
))
},
async fetchThisDayPostIds({commit: e, state: t, dispatch: s, rootGetters: r}) {
let a = t.memoriesPostIds.thisDay;
if (!a.length) {
const e = r["auth/authUserId"]
, {cancelToken: t} = (0,
F.ws)("fetchThisDayPostIds");
a = await (0,
D.pk)(e, t),
Array.isArray(a) || (0,
R.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: a
}
})
}
return Array.isArray(a) && (a.length && await s("fetchPost", {
id: a[0],
postIds: !0
}),
e("setMemoriesThisDayPostIds", a)),
a
},
async fetchPostsByUsersListId({commit: e, dispatch: t}, {listId: s, offset: r, query: a, filter: n, order: i, type: o, limit: c=F.Jg}={}) {
e("setLoading", !0);
const {cancelToken: d, Cancel: l} = (0,
F.ws)("fetchPostsByUsersListId")
, u = {
listId: s,
query: a,
type: o,
limit: c,
offset: r,
cancelToken: d,
filter: n,
order: i
};
try {
const s = await (0,
E.gb)(u);
if (!Array.isArray(null == s ? void 0 : s.list))
return (0,
R.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: s
}
}),
e("setLoading", !1),
{
hasMore: !1
};
const a = (0,
M.S8)(s.list, U.uY);
await t("users/getUsersIfNeeded", a, {
root: !0
}),
e("releaseForms/setReleaseFormsNormalized", a, {
root: !0
}),
e("set", a, {
root: !0
});
const n = a.result;
return e(r ? "addItemIds" : "setItemIds", n),
s
} catch (m) {
if (m instanceof l)
return {
isCanceled: !0
};
Sentry.captureException(m)
} finally {
e("setLoading", !1)
}
return {
isError: !0
}
},
async fetchUserPosts({commit: e, dispatch: t, state: s}, r={}) {
var a;
const {id: n, limit: i, more: o=!1, addNew: c=!1, type: d="posts", query: l, order: u, filter: m, beforePublishTime: f, afterPublishTime: h, direction: p="bottom", pinned: g, label: y, excludeLabel: S, needFullResponse: v=!1} = r;
if ("upcoming-streams" === d)
return !1;
let w = void 0 !== r.counters ? r.counters : +!o;
w || Object.keys(s.postsFiltersCounter).length || (w = 1);
const {cancelToken: I, Cancel: b} = (0,
F.ws)("fetchUserPosts");
let A;
d && "posts" !== d && (0,
F.ws)("fetchPostsPinned"),
e("setLoading", !0),
o || c || (e("setMarkers"),
e("setItemIds"),
e("setHasMore", {
value: !1,
type: d
})),
e("setUserGetPostsError", !1);
const P = u && "asc" === u.slice(u.length - 3)
, k = {
id: n,
limit: i,
type: d,
query: l,
label: y,
filter: m,
pinned: g,
counters: w,
excludeLabel: S,
cancelToken: I,
order: "top" === p && P ? u.replace(/asc$/, "desc") : u
};
try {
"top" === p && !P || "top" !== p && P ? k.afterPublishTime = (s.afterPublishTime || h || f) && Math.max(...[s.afterPublishTime, h, f].filter(Boolean)).toFixed(6) : k.beforePublishTime = (s.beforePublishTime || f || h) && Math.min(...[s.beforePublishTime, f, h].filter(Boolean)).toFixed(6),
A = await (0,
D.dK)(k)
} catch (E) {
if (!(E instanceof b))
throw e("setLoading", !1),
e("setUserGetPostsError", !0),
E;
return
}
var C;
"top" !== p && e("setHasMore", {
value: !(null === (C = A) || void 0 === C || !C.hasMore),
type: d
});
if (!Array.isArray(null === (a = A) || void 0 === a ? void 0 : a.list))
return (0,
R.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: A
}
}),
e("setLoading", !1),
v ? {} : [];
const L = k.order !== u ? A.list.reverse() : A.list
, T = A.counters;
T && e("setPostsFiltersCounter", T);
const _ = (0,
M.S8)(L, U.uY);
await t("users/getUsersIfNeeded", _, {
root: !0
}),
e("set", _, {
root: !0
}),
e("setMarkers", A);
const $ = _.result;
return e(o ? "addItemIds" : c ? "addNewItemIds" : "setItemIds", $),
e("setLoading", !1),
v ? A : L
},
async fetchUserPostsByType({state: e, getters: t, commit: s, rootGetters: r, dispatch: a}, {isHidePinnedPosts: n, routeParams: i}={}) {
s("setPrevUserPostsToLoad", !1);
const o = undefined
, c = {
...i,
id: r["users/userId"]
};
return t.isGoToPostDateSelected ? (c.beforePublishTime = e.goToPostDate,
c.needFullResponse = !0,
s("setPinnedIds")) : n && (c.pinned = 0),
await a("fetchUserPosts", c)
},
async fetchPostsPinned({commit: e, rootGetters: t, dispatch: s}, {isPinnedPostRemove: r}) {
const {cancelToken: a} = (0,
F.ws)("fetchPostsPinned");
try {
const n = t["users/userId"];
if (e("setPinnedIds"),
r) {
const t = await (0,
D.s5)({
id: n,
cancelToken: a
});
if (Array.isArray(null == t ? void 0 : t.list) && t.list.length) {
const r = (0,
M.S8)(t.list, U.uY);
await s("users/getUsersIfNeeded", r, {
root: !0
}),
e("set", r, {
root: !0
}),
e("setPinnedIds", r.result)
}
}
} catch (n) {}
},
async fetchPost({commit: e, state: t, dispatch: s}, {id: r, active: a=!1, onlyExisted: n=!1, memories: i=!1}={}) {
if (e("setError", !1),
n && !t.items[r])
return [];
let o;
e("setPostLoading", !0);
try {
o = await (0,
E.tY)(r)
} catch (d) {
return e("setPostLoading", !1),
e("setError", !0),
i && e("setMemoriesErrorPostIds", r),
[]
}
if (!o || "object" != typeof o)
return (0,
R.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
post: o
}
}),
[];
a && e("setActivePost", +o.id);
const c = (0,
M.S8)(o, U.Qn);
return e("releaseForms/setReleaseFormsNormalized", c, {
root: !0
}),
await s("users/getUsersIfNeeded", c, {
root: !0
}),
s("setPost", o),
e("setPostLoading", !1),
o
},
setPost({commit: e}, t) {
const s = (0,
M.S8)(t, U.Qn)
, r = undefined
, a = undefined;
e("updatePost", $()(s, `entities.posts[${t.id}]`) || t),
e("set", s, {
root: !0
})
},
postPublished({commit: e, rootGetters: t}, {id: s, userId: r}) {
if (!s)
return;
const a = undefined;
+t["auth/authUserId"] != +r && e("incPostPublishedCounter"),
e("setHasNewOwnPostPublished", !0)
},
async favoritePost({commit: e, state: t}, {id: s, authorId: r}) {
e("togglePostFavorite", s);
try {
const n = await (0,
E.T4)({
id: s,
authorId: r
});
if (n && "object" == typeof n) {
var a;
const r = null !== (a = t.items[s]) && void 0 !== a ? a : {}
, i = undefined;
e("set", (0,
M.S8)({
...r,
...n
}, U.Qn), {
root: !0
})
} else
(0,
R.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: n
}
})
} catch (n) {
e("togglePostFavorite", s)
}
},
async pinPostAction({commit: e, state: t, dispatch: s, rootGetters: r}, {id: a, pinned: n, isProfilePage: i, userPostsParams: o}) {
var c;
let d;
e("setIsTogglePinPostLoading", !0);
try {
d = await (0,
E.c8)(a)
} catch (l) {
(0,
R.r_)(l)
}
if (null !== (c = d) && void 0 !== c && c.success) {
const c = t.items[a];
if (e("togglePostBooleanProperty", {
id: a,
propName: "isPinned"
}),
c) {
const d = undefined
, l = r["auth/authUser"].pinnedPostsCount + (c.isPinned ? 1 : -1);
s("users/setAuthUserData", {
pinnedPostsCount: l,
hasPinnedPosts: l > 0
}, {
root: !0
}),
i && 0 === n && (c.isPinned ? (e("setPinnedIds", [a, ...t.pinnedIds]),
o.label || e("deletePostId", a)) : (e("deletePinnedPostId", a),
o.label || s("fetchUserPosts", o)))
}
}
e("setIsTogglePinPostLoading", !1)
},
async deletePost({commit: e, state: t}, s) {
try {
const r = $()(t.items[s], "labelStates", !1)
, a = await (0,
E.ys)(s);
if (a && a.counters && (e("users/updateUserCounters", a.counters, {
root: !0
}),
e("setPostsFiltersCounter", a.counters)),
a && a.success)
return r && Array.isArray(r) && e("postLabels/decrementPostLabelsCounters", r, {
root: !0
}),
e("deletePost", s),
!0
} catch (r) {
return (0,
R.r_)(r),
!1
}
return !1
},
async hidePost({commit: e, state: t, dispatch: s}, {id: r, isPostPage: a}) {
try {
var n;
const i = t.items[r];
let o;
o = "post" === (null == i ? void 0 : i.responseType) ? await (0,
E.R7)(r) : await s("chats/hideMessage", r, {
root: !0
}),
null !== (n = o) && void 0 !== n && n.success && e(a ? "setPostIsReportedByMe" : "deletePost", r)
} catch (i) {
(0,
R.r_)(i)
}
},
async fetchStreamEvents({commit: e, rootGetters: t}, {streamId: r, postId: a, timer: n}) {
try {
let i = await (0,
V._b)({
streamId: r,
timer: n
});
if (Array.isArray(i) && i.length) {
const {getStreamingTipsComment: r} = await Promise.resolve().then(s.bind(s, 125785));
i = i.reduce(( (e, s) => {
switch (s.type) {
case "join":
case "left":
return e;
case "tips":
s.data.comment = r({
authUser: t["auth/authUser"],
fromUser: s.data.user,
toUser: s.data.toUser,
amount: `$${s.data.amount.toFixed(2).replace(".00", "")}`,
message: s.data.message
}),
s.type = "comment"
}
return s.time = parseFloat(s.time),
e.push(s),
e
}
), []),
e("setStreamEvents", {
events: i,
postId: a
})
}
} catch (i) {
Sentry.captureException(i)
}
},
async fetchFavoritesList({commit: e, state: t}, {postId: s, offset: r=0, more: a=!1}) {
let n;
e("setError", !1);
try {
var i;
if (n = await (0,
E.iM)({
postId: s,
offset: r
}),
Array.isArray(null === (i = n) || void 0 === i ? void 0 : i.list)) {
const r = (0,
M.S8)(n.list, U.P7);
if (e("set", r, {
root: !0
}),
!t.items[s]) {
const t = undefined;
e("set", (0,
M.S8)({
id: s
}, U.Qn), {
root: !0
})
}
e("setPostFavorites", {
postId: s,
list: r.result,
more: a
})
}
} catch (o) {
e("setError", !0)
}
return n
},
async fetchTipsList({commit: e, state: t}, {postId: s, offset: r=0, more: a=!1}) {
let n;
e("setError", !1);
try {
var i;
if (n = await (0,
E.Zc)({
postId: s,
offset: r
}),
Array.isArray(null === (i = n) || void 0 === i ? void 0 : i.list)) {
const r = (0,
M.S8)(n.list, U.P7);
if (e("set", r, {
root: !0
}),
!t.items[s]) {
const t = undefined;
e("set", (0,
M.S8)({
id: s
}, U.Qn), {
root: !0
})
}
e("setPostTips", {
postId: s,
list: r.result,
more: a
})
}
} catch (o) {
e("setError", !0)
}
return n
},
async fetchBuyersList({commit: e, state: t}, {postId: s, offset: r=0, more: a=!1}) {
try {
e("setError", !1);
const n = await (0,
E.VW)({
postId: s,
offset: r
});
if (Array.isArray(null == n ? void 0 : n.list)) {
if (!t.items[s]) {
const t = undefined;
e("set", (0,
M.S8)({
id: s
}, U.Qn), {
root: !0
})
}
const r = (0,
M.S8)(n.list, U.P7);
e("set", r, {
root: !0
}),
e("setPostBuyers", {
postId: s,
list: r.result,
more: a
})
}
return n
} catch (n) {
return e("setError", !0),
{}
}
},
async fetchVotersList({commit: e, state: t}, {postId: s, offset: r=0, optionId: a, more: n=!1}) {
e("setError", !1);
try {
n || e("setVotersMarker");
const i = await (0,
E.oU)({
postId: s,
optionId: a,
offset: r,
marker: t.votersMarker
});
if (Array.isArray(null == i ? void 0 : i.list)) {
if (i.marker && e("setVotersMarker", i.marker),
!t.items[s]) {
const t = undefined;
e("set", (0,
M.S8)({
id: s
}, U.Qn), {
root: !0
})
}
const r = (0,
M.S8)(i.list, U.zl);
e("set", r, {
root: !0
}),
e("set", {
entities: {
votersList: {
[`${s}_${a}`]: n ? [...new Set([...t.votersList[`${s}_${a}`] || [], ...r.result])] : r.result
}
}
}, {
root: !0
})
}
return i
} catch (i) {
return e("setError", !0),
{}
}
},
async fetchPostsLogin({commit: e, dispatch: t}, {limit: s=5, offset: r=0}={}) {
r || e("setPostsLogin");
try {
const a = await (0,
E.h3)({
limit: s,
offset: r
});
if (Array.isArray(null == a ? void 0 : a.items) && a.items.length) {
const s = (0,
M.S8)(a.items, U.uY);
await t("users/getUsersIfNeeded", s, {
root: !0
}),
e("set", s, {
root: !0
}),
e("setPostsLogin", {
value: s.result,
more: !!r
})
}
return a.hasMore && !!a.items.length
} catch (a) {}
return !1
},
async fetchBookmarkPostsInCategory({commit: e, dispatch: t}, {id: s, query: r, order: a, limit: n, offset: i, filter: o, postType: c}={}) {
let d;
const {cancelToken: l, Cancel: u} = (0,
F.ws)("fetchBookmarkPostsInCategory")
, m = {
query: r,
order: a,
limit: n,
offset: i,
filter: o,
postType: c,
id: "all" !== s ? s : ""
};
try {
var f;
if (e("setLoading", !0),
d = await (0,
E.m5)(m, l),
m.id && e("bookmarks/addCategoriesListItem", d.category, {
root: !0
}),
null !== (f = d) && void 0 !== f && f.list.length) {
const s = (0,
M.S8)(d.list, U.uY);
await t("users/getUsersIfNeeded", s, {
root: !0
}),
e("set", s, {
root: !0
});
const r = s.result;
e(i ? "addItemIds" : "setItemIds", r)
}
} catch (h) {
if (h instanceof u)
return e("setLoading", !1),
{
isCanceled: !0
};
Sentry.captureException(h)
} finally {
e("setLoading", !1)
}
return d
},
async addPostToBookmarks({commit: e}, {id: t, authorId: s}) {
var r;
let a;
try {
a = await (0,
E.OM)(t, s)
} catch (n) {}
null !== (r = a) && void 0 !== r && r.success && e("updatePostInBookmarks", {
id: t,
isAdded: !0
})
},
async removePostFromBookmarks({commit: e}, t) {
var s;
let r;
try {
r = await (0,
E.UD)(t)
} catch (a) {}
null !== (s = r) && void 0 !== s && s.success && e("updatePostInBookmarks", {
id: t,
isAdded: !1
})
},
async toggleArchivePost({commit: e, state: t, dispatch: s}, {postId: r, isPrivate: a=!1, callback: n}) {
var i, o, c, d;
let l = t.items[r];
if (!l)
return;
e("setIsToggleArchivePostLoading", !0);
const u = a ? "isPrivateArchived" : "isArchived"
, m = l[u];
let f;
try {
f = await (0,
E.hf)({
postId: r,
add: !m,
query: a && {
action: "private_archive"
}
})
} catch (h) {
(0,
R.r_)(h)
}
if (null !== (i = f) && void 0 !== i && i.counters && null !== (o = f) && void 0 !== o && o.labelStates && (e("togglePostBooleanProperty", {
id: r,
propName: u
}),
s("users/setAuthUserData", {
hasLabels: !0
}, {
root: !0
}),
!m && ("isPrivateArchived" === u && l.isArchived || "isArchived" === u && l.isPrivateArchived))) {
const t = undefined;
e("togglePostBooleanProperty", {
id: r,
propName: "isArchived" === u ? "isPrivateArchived" : "isArchived"
})
}
if (null !== (c = f) && void 0 !== c && c.counters && (e("users/updateUserCounters", f.counters, {
root: !0
}),
e("setPostsFiltersCounter", f.counters),
e("postLabels/setPostLabelArchivedCounters", f.counters, {
root: !0
})),
null !== (d = f) && void 0 !== d && d.labelStates) {
"function" == typeof n && n(a, m);
const s = (0,
M.S8)(f.labelStates, U.d3);
e("postLabels/addUserLabelsIds", s.result, {
root: !0
}),
f.labelStates.forEach((t => {
e("postLabels/setPostLabel", {
labelId: t.id,
label: t
}, {
root: !0
})
}
)),
e("setFeedItemIds", t.feedItemIds.filter((e => e !== r))),
e("deletePostId", r),
e("deletePinnedPostId", r)
}
e("setIsToggleArchivePostLoading", !1)
},
async savePinsOrder({commit: e}, t) {
try {
e("setDisabledPinsOrder", !0);
const s = await (0,
E.yU)(t);
Array.isArray(s) && s.length && e("setPinnedIds", s)
} catch (s) {
(0,
R.r_)(s)
}
e("setDisabledPinsOrder", !1)
}
}
},
940847: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return c
},
mutations: function() {
return o
},
state: function() {
return i
}
});
const r = () => window.location.reload()
, a = (e, t) => {
e.style.display = "block",
t.style.animation = "recovery_progress 15s linear"
}
, n = () => ({
isRecoveryMode: !1
})
, i = {
isRecoveryMode: !1
}
, o = {
setRecoveryMode(e) {
e.isRecoveryMode = !0
},
logout(e) {
Object.assign(e, {
isRecoveryMode: !1
})
}
}
, c = {
displayRecoveryMode: () => {
const e = document.getElementById("recovery_mode")
, t = document.getElementById("recovery_mode_progress");
e ? (a(e, t),
setTimeout(r, 15e3)) : r()
}
}
},
267265: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return d
},
mutations: function() {
return c
},
state: function() {
return o
}
});
var r = s(962953)
, a = s.n(r)
, n = s(467522);
const i = () => ({
earnings: [],
earningsLoading: !1
})
, o = {
earnings: [],
earningsLoading: !1
}
, c = {
setEarningsLoading(e, t) {
e.earningsLoading = t
},
setEarnings(e, {items: t, more: s}) {
e.earnings = s ? [...e.earnings, ...t] : [...t]
},
logout(e) {
Object.assign(e, {
earnings: [],
earningsLoading: !1
})
}
}
, d = {
async fetchEarnings({commit: e}, {limit: t, offset: s, more: r}={}) {
let a;
e("setEarningsLoading", !0),
r || e("setEarnings", {
items: [],
more: r
});
try {
const e = undefined;
a = (await (0,
n.A)({
limit: t,
offset: s
})).list || []
} catch (i) {
a = []
}
return e("setEarnings", {
items: a,
more: r
}),
e("setEarningsLoading", !1),
a
}
}
},
252275: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return R
},
getters: function() {
return U
},
mutations: function() {
return O
},
state: function() {
return D
}
});
var r = s(468090)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(688055)
, c = s.n(o)
, d = s(16280)
, l = s.n(d)
, u = s(517642)
, m = s.n(u)
, f = s(658004)
, h = s.n(f)
, p = s(733853)
, g = s.n(p)
, y = s(845876)
, S = s.n(y)
, v = s(432475)
, w = s.n(v)
, I = s(515024)
, b = s.n(I)
, A = s(731698)
, P = s.n(A)
, k = s(962953)
, C = s.n(k)
, L = s(783434)
, T = s(22504)
, M = s(632134)
, _ = s(10701)
, $ = s(977434)
, E = s(758987);
const V = () => ({
releaseFormsList: [],
guests: {},
items: {},
releaseFormsPageIds: [],
selectedItems: [],
users: {
releaseFormsFilter: "all",
releaseFormsSort: "date",
releaseFormsOrder: "desc"
},
forms: {
releaseFormsFilter: "all",
releaseFormsSort: "date",
releaseFormsOrder: "desc"
},
type: "users",
searchText: "",
offsetForms: 0,
hasMoreForms: !1,
hasMoreMentions: !1,
isLoadingForms: !1,
isLoadingMentions: !1,
hints: [],
modalGuest: null,
modalLink: null,
modalDocs: null,
guestSaving: !1,
mentions: [],
usersFromGuest: []
})
, D = {
releaseFormsList: [],
guests: {},
items: {},
releaseFormsPageIds: [],
selectedItems: [],
users: {
releaseFormsFilter: "all",
releaseFormsSort: "date",
releaseFormsOrder: "desc"
},
forms: {
releaseFormsFilter: "all",
releaseFormsSort: "date",
releaseFormsOrder: "desc"
},
type: "users",
searchText: "",
offsetForms: 0,
hasMoreForms: !1,
hasMoreMentions: !1,
isLoadingForms: !1,
isLoadingMentions: !1,
hints: [],
modalGuest: null,
modalLink: null,
modalDocs: null,
guestSaving: !1,
mentions: [],
usersFromGuest: []
}
, U = {
releaseFormsList: e => t => e.items || t.length ? t.map((t => e.items[t])).filter(Boolean) : [],
releaseFormsPageList(e) {
return e.items || e.releaseFormsPageIds.length ? e.releaseFormsPageIds.map((t => e.items[t])) : []
},
options(e) {
return "users" === e.type ? e.users : e.forms
},
activeClass(e) {
return "all" !== e[e.type].releaseFormsFilter || "date" !== e[e.type].releaseFormsSort || "desc" !== e[e.type].releaseFormsOrder
}
}
, O = {
setType(e, t) {
e.type = t
},
setSearchText(e, t) {
e.searchText = t
},
setReleaseFormsList(e, t) {
e.releaseFormsList = t
},
setReleaseFormsFilter(e, t) {
e[e.type].releaseFormsFilter = t
},
setReleaseFormsSort(e, t) {
e[e.type].releaseFormsSort = t
},
setReleaseFormsOrder(e, t) {
e[e.type].releaseFormsOrder = t
},
setLoadingForms(e, t) {
e.isLoadingForms = t
},
setLoadingMentions(e, t) {
e.isLoadingMentions = t
},
setReleaseFormsNormalized(e, t) {
t.entities && t.entities.releaseForms && (e.items = {
...e.items,
...t.entities.releaseForms
})
},
setReleaseFormsPageIds(e, t) {
e.releaseFormsPageIds = t
},
setReleaseFormsId(e, t) {
e.releaseFormsPageIds = [...new Set([t, ...e.releaseFormsPageIds])]
},
setReleaseForm(e, {formId: t, form: s}) {
e.items[t] = {
...e.items[t],
...s
}
},
setHiddenReleaseForm(e, {formId: t}) {
e.releaseFormsPageIds = e.releaseFormsPageIds.filter((e => e !== t))
},
setSelectedItems(e, t) {
if (!e.releaseFormsPageIds.length) {
const s = "users" === e.type ? ["user", "guest"] : ["link", "document"]
, r = t.length ? t.filter(( ({type: e}) => s.includes(e))).map((e => Number(e.id))) : [];
e.releaseFormsPageIds = [...new Set([...r, ...e.releaseFormsPageIds])]
}
e.selectedItems = t
},
setUsersFromGuest(e, t) {
e.usersFromGuest = [...e.usersFromGuest, t]
},
resetSelectedItemsList(e) {
e.users.releaseFormsFilter = "all",
e.users.releaseFormsSort = "date",
e.users.releaseFormsOrder = "desc",
e.forms.releaseFormsFilter = "all",
e.forms.releaseFormsSort = "date",
e.forms.releaseFormsOrder = "desc",
e.selectedItems = [],
e.type = "users",
e.searchText = ""
},
resetForms(e) {
e.releaseFormsList = [],
e.releaseFormsPageIds = []
},
setOffsetForms(e, t) {
e.offsetForms = t
},
setHasMoreForms(e, t) {
e.hasMoreForms = t
},
setHasMoreMentions(e, t) {
e.hasMoreMentions = t
},
setHints(e, t) {
e.hints = t
},
setModalGuest(e, t=null) {
e.modalGuest = t
},
setModalLink(e, t=null) {
e.modalLink = t
},
setModalDocs(e, t=null) {
e.modalDocs = t
},
setGuestSaving(e, t=!1) {
e.guestSaving = t
},
setMentions(e, t) {
e.mentions = t
},
logout(e) {
Object.assign(e, {
releaseFormsList: [],
guests: {},
items: {},
releaseFormsPageIds: [],
selectedItems: [],
users: {
releaseFormsFilter: "all",
releaseFormsSort: "date",
releaseFormsOrder: "desc"
},
forms: {
releaseFormsFilter: "all",
releaseFormsSort: "date",
releaseFormsOrder: "desc"
},
type: "users",
searchText: "",
offsetForms: 0,
hasMoreForms: !1,
hasMoreMentions: !1,
isLoadingForms: !1,
isLoadingMentions: !1,
hints: [],
modalGuest: null,
modalLink: null,
modalDocs: null,
guestSaving: !1,
mentions: [],
usersFromGuest: []
})
}
}
, R = {
async saveReleaseDocs({commit: e}, t) {
try {
const s = await (0,
L.i9)(t);
return e("setReleaseForm", {
formId: s.id,
form: {
...s,
type: "document"
}
}),
e("setReleaseFormsId", s.id),
s
} catch (s) {
return (0,
E.r_)(s),
!1
}
},
async saveReleaseLink({commit: e}, t) {
try {
const s = await (0,
L.Lr)(t);
return e("setReleaseForm", {
formId: s.id,
form: {
...s,
type: "link"
}
}),
e("setReleaseFormsId", s.id),
s
} catch (s) {
return (0,
E.r_)(s),
!1
}
},
async fetchReleaseForms({commit: e, state: t}, {limit: s=$.Jg, filter: r, sort: a, more: n, name: i, type: o, source: c}) {
try {
n || (e("setLoadingForms", !0),
e("setReleaseFormsList", []),
e("setReleaseFormsPageIds", []),
e("setOffsetForms", 0),
e("setHasMoreForms", !1));
const d = "forms" === o ? "getReleaseForms" : "getMentionedUsers"
, {cancelToken: l} = (0,
$.ws)(d)
, u = "forms" === o ? L.ZT : L.w6
, {hasMore: m=!1, items: f=[]} = await u({
limit: s,
offset: t.offsetForms,
filter: r,
sort: a,
name: i,
source: c
}, l) || {};
let h = [...t.releaseFormsList, ...f];
if (!i && t.selectedItems.length) {
const e = "users" === t.type ? ["user", "guest"] : ["document", "link"]
, s = undefined
, r = t.selectedItems.filter((t => e.includes(t.type))).filter(( ({id: e, type: t}) => !h.some(( ({id: s, type: r}) => s === e && t === r))));
h = [...r, ...h]
}
const p = h.filter(( (e, t, s) => s.findIndex((t => +t.id == +e.id)) === t))
, g = (0,
T.S8)(p, M.QN);
e("setHasMoreForms", m),
e("setReleaseFormsList", p),
e("setReleaseFormsNormalized", g),
e("setReleaseFormsPageIds", g.result),
e("setOffsetForms", t.offsetForms + s),
e("setLoadingForms", !1)
} catch (d) {}
},
async renameReleaseForms({commit: e}, t) {
try {
const s = await (0,
L.t3)(t);
e("setReleaseForm", {
formId: s.id,
form: s
}),
e("setReleaseFormsId", s.id)
} catch (s) {
return (0,
E.r_)(s),
!1
}
},
async hideReleaseForms({commit: e}, {entityType: t, entityId: s, isViewToHidden: r, mention: a, callback: n}={}) {
try {
let i = await (0,
L.jd)({
entityId: s,
entityType: t
});
const o = c()(a);
return i.isHidden && r && e("setHiddenReleaseForm", {
formId: i.entityId
}),
o && "user" === o.type && (o.user.hiddenForRf = i.isHidden),
e("setReleaseForm", {
formId: i.entityId,
form: {
...i,
...o,
hiddenForRf: i.isHidden
}
}),
"function" == typeof n && n(i.isHidden),
i
} catch (i) {
return (0,
E.r_)(i),
!1
}
},
async attachReleaseForm({}, {postId: e, releaseForms: t, messageId: s, isEditForms: r, storyId: a}) {
if (!t.length && !e && !r)
return !1;
const n = (0,
_.m)(t);
e ? n.postId = e : s ? n.messageId = s : a && (n.storyId = a);
try {
return await (0,
L.PG)(n)
} catch (i) {
return (0,
E.r_)(i),
!1
}
},
async saveGuest({commit: e}, {id: t, data: s={}}) {
e("setGuestSaving", !0);
try {
const r = await (0,
L.a0)(s, t);
if (r && r.id)
return e("setGuestSaving"),
e("setReleaseForm", {
formId: r.id,
form: {
...r,
type: "guest"
}
}),
e("setReleaseFormsId", r.id),
r
} catch (r) {
(0,
E.r_)(r),
(0,
E.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
response: r
}
})
}
return e("setGuestSaving"),
!1
},
async assignGuestByToken({}, {token: e, isConfirm: t, getInteractResult: s}) {
try {
let r;
if (t) {
const t = await (0,
L.fJ)(e)
, a = i()(t, "user.name");
if (!t)
return;
r = await s(a)
}
if (r || !t)
return await (0,
L.Cb)(e)
} catch (r) {
return (0,
E.r_)(r),
!1
}
},
setReleaseFormsWithNormalize({commit: e}, t) {
if (t.length) {
const s = (0,
T.S8)(t, M.QN);
e("set", s, {
root: !0
}),
e("setReleaseFormsNormalized", s)
}
},
async getMentions({commit: e, dispatch: t, state: s, rootState: r}, {limit: n=$.Jg, more: i=!1, relatedUser: o="", cancelTokenID: c="getMentions", isNotificationsPage: d=!1}) {
const {cancelToken: l, Cancel: u} = (0,
$.ws)(c);
i || (d ? e("users/setNotifications", {}, {
root: !0
}) : (e("setLoadingMentions", !0),
e("setHasMoreMentions", !1),
e("setMentions", [])));
try {
var m;
const {list: c, hasMore: u} = await (0,
L.OM)({
limit: n,
related_user: o,
offset: s.offsetMentions,
fromId: null === (m = a()(d ? r.users.notifications : s.mentions)) || void 0 === m ? void 0 : m.id,
skip_users: "all",
format: "infinite"
}, l);
let f = [...s.mentions, ...c];
if (c.length) {
const s = (0,
T.S8)(c, M.hO);
await t("users/getUsersIfNeeded", {
entities: {
users: Object.keys(s.entities.users).reduce(( (e, t) => ({
...e,
[t]: {
...s.entities.users[t],
_views: ["m"]
}
})), {})
}
}, {
root: !0
}),
e("set", s, {
root: !0
}),
t("users/setAuthUserData", {
newTagsCount: 0
}, {
root: !0
})
}
return d ? e("users/setNotifications", {
notifications: f,
more: i
}, {
root: !0
}) : (e("setMentions", f),
e("setHasMoreMentions", u)),
e("setLoadingMentions", !1),
{
hasMore: u
}
} catch (f) {
return f instanceof u ? {
isCanceled: !0
} : ((0,
E.r_)(f),
e("setLoadingMentions", !1),
!1)
}
}
}
},
506190: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
mutations: function() {
return c
},
state: function() {
return o
}
});
var r = s(962953)
, a = s.n(r);
const n = 5
, i = () => ({
route: {
from: {
name: "",
path: "",
fullPath: "",
params: {},
query: {},
meta: {}
},
to: {
name: "",
path: "",
fullPath: "",
params: {},
query: {},
meta: {}
}
},
history: []
})
, o = {
route: {
from: {
name: "",
path: "",
fullPath: "",
params: {},
query: {},
meta: {}
},
to: {
name: "",
path: "",
fullPath: "",
params: {},
query: {},
meta: {}
}
},
history: []
}
, c = {
setRoute(e, t) {
const s = "object" == typeof t && "object" == typeof t.to ? t.to : {}
, r = e.history && e.history.length ? e.history : [];
e.route = {
...t
},
e.history = [s, ...r].slice(0, 5)
},
logout() {}
}
},
396087: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return v
},
getters: function() {
return y
},
mutations: function() {
return S
},
state: function() {
return g
}
});
var r = s(16280)
, a = s.n(r)
, n = s(962953)
, i = s.n(n)
, o = s(409363)
, c = s(458723)
, d = s(974353)
, l = s.n(d)
, u = s(788569)
, m = s.n(u)
, f = s(97164)
, h = s(758987);
l().extend(m());
const p = () => ({
itemsSFL: [],
loading: !1,
linkedPostsMap: {}
})
, g = {
itemsSFL: [],
loading: !1,
linkedPostsMap: {}
}
, y = {
getSFLPostById: e => t => {
const s = e.itemsSFL.find((e => e.entity.id === t));
return s ? s.entity : null
}
}
, S = {
setItems(e, {addMore: t, list: s}) {
e.itemsSFL = t ? [...e.itemsSFL || [], ...s || []] : s
},
setLoading: (e, t) => {
e.loading = t
}
,
deleteItem: (e, t) => {
e.itemsSFL = e.itemsSFL.filter((e => e.id !== t))
}
,
postPublished: (e, t) => {
e.itemsSFL = e.itemsSFL.filter(( ({entity: e}) => e.id !== t))
}
,
setLinkedPostsMap: (e, t) => {
e.linkedPostsMap = {
...e.linkedPostsMap,
...t
}
}
,
resetPosts: e => {
e.loading = !1,
e.itemsSFL = []
}
,
updatePost: (e, {id: t, post: s}) => {
e.itemsSFL = e.itemsSFL.map((e => e.entity.id === t ? {
...e,
entity: s
} : e))
}
,
logout(e) {
Object.assign(e, {
itemsSFL: [],
loading: !1,
linkedPostsMap: {}
})
}
}
, v = {
async fetchSFLPosts({commit: e, dispatch: t, rootGetters: s}, {params: r, addMore: a}={}) {
let n;
e("setLoading", !0);
try {
n = await (0,
o.el)({
params: r
});
const {list: i} = n;
i && e("setItems", {
list: i,
addMore: a
}),
null != i && i.length && await (0,
f.pF)({
commit: e,
list: i,
commitName: "savedForLater/setLinkedPostsMap",
dispatch: t,
rootGetters: s
})
} finally {
e("setLoading", !1)
}
return n
},
async updateSFLPost({commit: e, state: t}, s) {
const r = undefined;
if (t.itemsSFL.some(( ({entity: e}) => e.id === s)))
try {
const t = await (0,
c.tY)(s, []);
if (t && "object" == typeof t)
return void e("updatePost", {
id: s,
post: t
});
(0,
h.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
post: t
}
})
} catch {}
},
async pinSFLPost({commit: e}, t) {
try {
const s = await (0,
c.c8)(t);
if (null != s && s.success) {
const s = g.itemsSFL.find((e => e.entity.id === t));
if (s) {
const r = !s.entity.isPinned
, a = {
...s.entity,
isPinned: r
};
e("updatePost", {
id: t,
post: a
})
}
}
} catch {}
},
publishScheduleEventRightNow({commit: e}, t) {
return (0,
f.LP)({
commit: e,
id: t
})
}
}
},
183750: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return b
},
getters: function() {
return w
},
mutations: function() {
return I
},
state: function() {
return v
}
});
var r = s(858156)
, a = s.n(r)
, n = s(16280)
, i = s.n(n)
, o = s(962953)
, c = s.n(o)
, d = s(409363)
, l = s(458723)
, u = s(974353)
, m = s.n(u)
, f = s(788569)
, h = s.n(f)
, p = s(97164)
, g = s(758987)
, y = s(977434);
m().extend(h());
const S = () => ({
items: [],
dayItems: [],
itemsByDate: null,
calendarItems: [],
userTimeZone: void 0,
scheduledItemsLoading: !1,
scheduledDayItemsLoading: !1,
scheduledItemsCounterLoading: !1,
hasMoreDayDetailedEvents: !1,
linkedPostsMap: {},
reminders: [],
remindersLoading: !1,
isSFLSyncInProcess: !1,
toastData: null
})
, v = {
items: [],
dayItems: [],
itemsByDate: null,
calendarItems: [],
userTimeZone: void 0,
scheduledItemsLoading: !1,
scheduledDayItemsLoading: !1,
scheduledItemsCounterLoading: !1,
hasMoreDayDetailedEvents: !1,
linkedPostsMap: {},
reminders: [],
remindersLoading: !1,
isSFLSyncInProcess: !1,
toastData: null
}
, w = {
getSchedulePostById: e => t => {
const s = e.dayItems.find((e => e.entity.id === t));
return s ? s.entity : null
}
}
, I = {
setItems(e, t) {
const s = e.items.map(( ({id: e}) => e))
, r = t.filter(( ({id: e}) => !s.includes(e)));
e.items = e.items.concat(r)
},
setDayItems(e, t) {
const s = e.dayItems.map(( ({id: e}) => e))
, r = t.filter(( ({id: e}) => !s.includes(e)));
e.dayItems = e.dayItems.concat(r)
},
deleteItem(e, t) {
e.items = e.items.filter((e => e.id !== t)),
e.dayItems = e.dayItems.filter((e => e.id !== t))
},
setItemsByDate(e) {
e.itemsByDate = (0,
p.uc)(e.items)
},
setCalendarItems(e, t) {
e.calendarItems = t
},
setUserTimeZone: (e, t) => {
e.userTimeZone = t
}
,
clearCalendarItems: e => {
e.calendarItems = []
}
,
clearAgendaItems: e => {
e.items = [],
e.itemsByDate = {}
}
,
clearDayItems: e => {
e.dayItems = [],
e.hasMoreDayDetailedEvents = !1,
e.scheduledDayItemsLoading = !1
}
,
clearItems: e => {
e.items = [],
e.itemsByDate = {},
e.dayItems = [],
e.calendarItems = []
}
,
setScheduledItemsLoading: (e, t) => {
e.scheduledItemsLoading = t
}
,
setScheduledDayItemsLoading: (e, t) => {
e.scheduledDayItemsLoading = t
}
,
setScheduledItemsCounterLoading: (e, t) => {
e.scheduledItemsCounterLoading = t
}
,
updateScheduledEvent: (e, t) => {
e.items = e.items.map((e => e.entity.id === t.id ? {
...e,
entity: {
...e.entity,
...t
}
} : e))
}
,
updateDayItemScheduledEvent: (e, t) => {
e.dayItems = e.dayItems.map((e => e.entity.id === t.id ? {
...e,
entity: {
...e.entity,
...t
}
} : e))
}
,
setHasMoreDayDetailedEvents: (e, t) => {
e.hasMoreDayDetailedEvents = t
}
,
postPublished: (e, t) => {
e.items = e.items.filter(( ({type: e, entity: s}) => "post" !== e || s.id !== t)),
e.dayItems = e.dayItems.filter(( ({type: e, entity: s}) => "post" !== e || s.id !== t))
}
,
messagePublished: (e, t) => {
e.items = e.items.filter(( ({type: e, entity: s}) => "chat" !== e || s.id !== t)),
e.dayItems = e.dayItems.filter(( ({type: e, entity: s}) => "chat" !== e || s.id !== t))
}
,
setLinkedPostsMap: (e, t) => {
e.linkedPostsMap = {
...e.linkedPostsMap,
...t
}
}
,
setReminders: (e, t=[]) => {
e.reminders = t
}
,
updateReminder: (e, {id: t, fields: s={}}) => {
e.reminders = e.reminders.map((e => e.id === t ? {
...e,
...s
} : e))
}
,
removeFromReminder: (e, t) => {
e.reminders = e.reminders.filter((e => e.id !== t))
}
,
setRemindersLoading: (e, t) => {
e.remindersLoading = t
}
,
addPostLabel(e, {postId: t, label: s}) {
"custom" === s.type && (e.dayItems = e.dayItems.map((e => e.entity.id === t ? {
...e,
entity: {
...e.entity,
labelStates: [...e.entity.labelStates || [], s]
}
} : e)))
},
deletePostLabel(e, {postId: t, labelId: s}) {
const r = e.dayItems.find(( ({entity: e}) => e.id === t));
r.entity.labelStates = r.entity.labelStates.filter(( ({id: e}) => e !== s))
},
setIsSFLSyncInProcess(e, t) {
e.isSFLSyncInProcess = t
},
setDefaultState(e) {
Object.assign(e, {
items: [],
dayItems: [],
itemsByDate: null,
calendarItems: [],
userTimeZone: void 0,
scheduledItemsLoading: !1,
scheduledDayItemsLoading: !1,
scheduledItemsCounterLoading: !1,
hasMoreDayDetailedEvents: !1,
linkedPostsMap: {},
reminders: [],
remindersLoading: !1,
isSFLSyncInProcess: !1,
toastData: null
})
},
logout(e) {
Object.assign(e, {
items: [],
dayItems: [],
itemsByDate: null,
calendarItems: [],
userTimeZone: void 0,
scheduledItemsLoading: !1,
scheduledDayItemsLoading: !1,
scheduledItemsCounterLoading: !1,
hasMoreDayDetailedEvents: !1,
linkedPostsMap: {},
reminders: [],
remindersLoading: !1,
isSFLSyncInProcess: !1,
toastData: null
})
},
setToastData(e, t) {
e.toastData = t
}
}
, b = {
async fetchEventsCounters({commit: e}, {params: t}={}) {
let s;
const {cancelToken: r} = (0,
y.ws)("fetchEventsCounters");
e("setScheduledItemsCounterLoading", !0);
const a = Object.assign({}, t, {
"filter[timeZone]": v.userTimeZone
});
try {
var n;
if (s = await (0,
d.dP)({
params: a,
cancelToken: r
}),
null !== (n = s) && void 0 !== n && n.list) {
const t = undefined;
e("setCalendarItems", (0,
p.hv)(s)),
e("setIsSFLSyncInProcess", s.syncInProcess)
}
} catch (i) {} finally {
e("setScheduledItemsCounterLoading", !1)
}
return s
},
async fetchEventsDetailed({commit: e}, {params: t}={}) {
let s;
e("setScheduledItemsLoading", !0);
const {cancelToken: r} = (0,
y.ws)("fetchEventsDetailed")
, a = Object.assign({}, t, {
"filter[timeZone]": v.userTimeZone
});
try {
s = await (0,
d.oK)({
params: a,
cancelToken: r
});
const {list: t} = s;
null != t && t.length && ((0,
p.Zn)(t),
e("setItems", t),
e("setItemsByDate")),
e("setIsSFLSyncInProcess", s.syncInProcess)
} finally {
e("setScheduledItemsLoading", !1)
}
return s
},
async fetchDayEventsDetailed({commit: e, dispatch: t, rootGetters: s}, {params: r}={}) {
let a;
e("setScheduledDayItemsLoading", !0);
const {cancelToken: n, Cancel: i} = (0,
y.ws)("fetchDayEventsDetailed")
, o = Object.assign({}, r, {
"filter[timeZone]": v.userTimeZone
});
try {
a = await (0,
d.oK)({
params: o,
cancelToken: n
});
const {list: r} = a;
null != r && r.length && ((0,
p.Zn)(r),
e("setDayItems", r),
e("setHasMoreDayDetailedEvents", a.hasMore),
await (0,
p.pF)({
commit: e,
list: r,
commitName: "schedule/setLinkedPostsMap",
dispatch: t,
rootGetters: s
})),
e("setScheduledDayItemsLoading", !1),
e("setIsSFLSyncInProcess", a.syncInProcess)
} catch (c) {
if (!(c instanceof i))
throw e("setScheduledDayItemsLoading", !1),
c
}
return a
},
async fetchReminders({commit: e}) {
e("setRemindersLoading", !0);
try {
const t = await (0,
d.kE)({
limit: 4,
"filter[timeZone]": m()().format("Z")
});
if (null != t && t.list)
return e("setReminders", t.list),
e("setRemindersLoading", !1),
t
} catch (t) {
t.__CANCEL__ || e("setRemindersLoading", !1)
}
},
publishScheduleEventRightNow({commit: e}, t) {
return (0,
p.LP)({
commit: e,
id: t
})
},
async updatePost({commit: e, state: t}, s) {
const r = t.items.some(( ({entity: e}) => e.id === s))
, a = t.dayItems.some(( ({entity: e}) => e.id === s));
if (r || a)
try {
const t = await (0,
l.tY)(s);
if (!t || "object" != typeof t)
return void (0,
g.Bg)({
error: new Error("typeof response is incorrect"),
extra: {
post: t
}
});
r && (e("updateScheduledEvent", t),
e("setItemsByDate")),
a && e("updateDayItemScheduledEvent", t)
} catch {}
},
async pinSchedulePost({commit: e}, t) {
try {
const s = await (0,
l.c8)(t);
if (null != s && s.success) {
const s = v.items.find((e => e.entity.id === t));
if (s) {
const t = !s.entity.isPinned
, r = undefined;
e("updateScheduledEvent", {
...s.entity,
isPinned: t
}),
e("setItemsByDate")
}
const r = v.dayItems.find((e => e.entity.id === t));
if (r) {
const t = !r.entity.isPinned
, s = undefined;
e("updateDayItemScheduledEvent", {
...r.entity,
isPinned: t
})
}
}
} catch {}
},
async fetchClosestScheduledStream({commit: e}) {
try {
var t;
const s = await (0,
d.zt)();
if (null != s && null !== (t = s.list) && void 0 !== t && t.length) {
const t = a()(s, "list[0].entity");
if (!t)
return;
const r = m()(t.scheduledAt).diff(m()(), "minute", !0);
if (r < 0 || r > 30)
return;
const n = undefined;
e("setToastData", {
id: `ScheduledStreamNotificationToast_${t.id}`,
stream: t
})
}
} catch {}
}
}
},
445417: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return A
},
getters: function() {
return I
},
mutations: function() {
return b
},
state: function() {
return w
}
});
var r = s(355364)
, a = s.n(r)
, n = s(944114)
, i = s(962953)
, o = s(22504)
, c = s(610023)
, d = s(448416)
, l = s(202600)
, u = s(977434);
const m = () => u.Ay.post(`${u.XV}/emails/resend`).then((e => e.data));
var f = s(25150)
, h = s(632134)
, p = s(363029)
, g = s(758987)
, y = s(284419)
, S = s(104577);
const v = () => ({
activityHubAllowed: "",
activityHubTokens: [],
appOtp: !1,
autoMessage: [],
bundleMaxPrice: 0,
canAddHelper: !1,
canAddPhone: !1,
canAddSubscriberByBundle: {},
canMakeProfileLinks: !1,
countries: [],
countriesLoading: !1,
darkMode: !!y.A.getItem("dark_mode"),
forceFaceOtp: !1,
helperAccess: [],
isDeleteInitiated: null,
isEmailNotificationsEnabled: !1,
isOpenseaConnected: void 0,
isTelegramConnected: !1,
lastSubscriptionExpiredAt: null,
openSea: {
assets: [],
isLoading: !1,
hasMore: !1
},
paymentsLoaded: !1,
phoneLast4: null,
spotifyArtistsItems: {},
spotifyBio: {
displayName: "",
anthem: null,
topArtists: []
},
spotifyTop: {
myTopArtists: [],
myTopTracks: []
},
spotifyTracksItems: {},
states: {},
streamingRtmpServer: "",
streamingRtmpKey: "",
streamingMuxServer: "",
streamingMuxKey: "",
streamingMuxKeyExpiredAt: null,
streamingObsServer: "",
streamingObsKey: "",
unavailablePaymentGates: [],
showFullTextInEmailNotify: !1,
recommenderReward: null,
isAutoFollowBack: !1,
unfollowAutoFollowBack: !1,
isPrivate: void 0,
blockedCountries: void 0,
blockedStates: void 0,
blockedIps: void 0,
showPostsTips: void 0,
showFriendsToSubscribers: void 0,
disableSubscribesOffers: void 0,
showSubscribesOffers: void 0,
isOldLoginRedirect: void 0,
canAcceptMessageOnlyFromFriends: !1,
runningActions: [],
existedUsernames: {},
confirmEmailSentAt: null,
sendAwardsTop1: !1,
sendAwardsTop5: !1,
coStreamingRequestFrom: void 0,
isCoStreamingAllowed: !1,
socialsConnects: [],
phoneOtp: !1,
faceOtp: !1,
isLoading: !1,
messageSettingsNotifications: null,
notifyOnAllMentions: !1,
commentsOnlyForPayers: !1,
isDrmEnabled: !1,
passwordlessDevices: [],
notificationsAllowedMenuItems: [],
shouldReceiveLessNotifications: !1,
replyOnSubscribe: !1,
avatarHeaderConverterUpload: !1
})
, w = v()
, I = {
allSettings: e => e,
userLoginPrefix: (e, t, s) => s.init.settings.userLoginPrefix,
isImageWatermarkNeeded: (e, t, s) => s.init.settings.isImageWatermarkNeeded,
countriesList: e => e.countries.filter(( ({id: e}) => ![163, 19, 1].includes(e))),
countriesListAll: e => e.countries,
statesByCounty: e => t => e.states[t] || [],
spotifyTop: e => e.spotifyTop,
spotifyTopArtistsIds: e => e.spotifyTop.myTopArtists,
spotifyTopArtists: e => e.spotifyTop.myTopArtists.map((t => e.spotifyArtistsItems[t])),
spotifyTopTracks: e => e.spotifyTop.myTopTracks.map((t => e.spotifyTracksItems[t])),
spotifyBioTopArtistsIds: e => e.spotifyBio.topArtists || [],
spotifyBioTopArtists: e => e.spotifyBio.topArtists ? e.spotifyBio.topArtists.map((t => e.spotifyArtistsItems[t])) : [],
spotifyBioAnthem: e => e.spotifyBio.anthem,
replyOnSubscribeTemplate: e => e.autoMessage.filter(( ({template: e}) => "reply_on_subscribe" === e))[0],
hasRunningActions: e => t => e.runningActions.includes(t),
isNewTipsSettingEnabled: ({messageSettingsNotifications: e}) => {
if (!e)
return null;
const t = e.find(( ({code: e}) => "you_and_your_posts" === e));
if (!t)
return null;
const s = t.items.find(( ({code: e}) => "new_tips" === e));
return s ? s.isEnabled : null
}
}
, b = {
switchTheme(e) {
e.darkMode = !e.darkMode,
document.documentElement.classList.toggle("m-mode-dark", e.darkMode),
e.darkMode ? y.A.setItem("dark_mode", e.darkMode) : y.A.removeItem("dark_mode")
},
setCountries(e, t) {
e.countries = t.map((e => ({
...e,
hasStatesIso: !0
})))
},
setCountry(e, t) {
const s = e.countries.findIndex((e => e.code === t.code));
s > -1 ? e.countries[s] = t : e.countries.push(t)
},
setCountriesLoading(e, t) {
e.countriesLoading = t
},
setConfirmEmail(e, t) {
e.confirmEmailSentAt = t
},
setStates(e, t) {
e.states = a()({}, e.states, t)
},
setSettings(e, t={}) {
Object.assign(e, t)
},
setHubToken(e, t) {
Object.assign(e.activityHubTokens, t)
},
addHubToken(e, t) {
e.activityHubTokens.push(t)
},
deleteHubToken(e, t) {
e.activityHubTokens = e.activityHubTokens.filter((e => e.id !== t))
},
deleteAutoMessage(e, t) {
e.autoMessage = e.autoMessage.filter((e => e.template !== t))
},
setSpotifyTop(e, t) {
Object.assign(e.spotifyTop, t)
},
setSpotifyTopArtists(e, t) {
e.spotifyTop.myTopArtists = t
},
setSpotifyTopTracks(e, t) {
e.spotifyTop.myTopTracks = t
},
setSpotifyBioAnthem(e, t) {
e.spotifyBio.anthem = t
},
setSpotifyBioName(e, t) {
e.spotifyBio.displayName = t
},
setSpotifyBioTopArtists(e, t) {
e.spotifyBio.topArtists = t
},
resetSpotifyBio() {
w.spotifyBio = {
displayName: "",
anthem: null,
topArtists: []
}
},
setPaymentsLoaded(e, t) {
e.paymentsLoaded = t
},
setUnavailablePaymentGates(e, t) {
e.unavailablePaymentGates = (t || []).filter(( ({status: e}) => "fail" === e)).map((e => e.name))
},
setAutoMessage(e, t) {
e.autoMessage.length ? (e.autoMessage.splice(0, 1),
e.autoMessage.push(t)) : e.autoMessage.push(t)
},
setAutoMessageCustomThumb(e, t) {
const {template: s, ...r} = t
, a = (0,
S.t)(s.media, r)
, n = {
...s,
media: a
};
e.autoMessage.length && e.autoMessage.splice(0, 1),
e.autoMessage.push(n)
},
setAutoMessages(e, t) {
e.autoMessage = t
},
addRunningActions(e, t) {
e.runningActions.push(t)
},
removeRunningActions(e, t) {
e.runningActions = e.runningActions.filter((e => e !== t))
},
setNewEmail(e, t) {
e.newEmail = t
},
setExistedUsernames(e, t={}) {
e.existedUsernames = t
},
deleteGoogle(e) {
e.socialsConnects = e.socialsConnects.filter((e => "google" !== e.provider))
},
setIsLoading(e, t) {
e.isLoading = t
},
addOpenSeaAssets(e, t) {
e.openSea.assets = [...e.openSea.assets, ...t.assets],
e.openSea.hasMore = t.hasMore
},
setOpenSeaIsLoading(e, t) {
e.openSea.isLoading = t
},
clearOpenSeaAssets(e) {
e.openSea.assets = [],
e.openSea.hasMore = !1
},
setMessageSettingsNotifications(e, t) {
e.messageSettingsNotifications = t
},
setPasswordlessDevices(e, t=[]) {
e.passwordlessDevices = t
},
setNotificationsAllowedMenuItems(e, t=[]) {
e.notificationsAllowedMenuItems = t
},
logout(e) {
Object.assign(e, v())
}
}
, A = {
async fetchCountries({commit: e, state: t}) {
try {
if (!t.countries.length && !t.countriesLoading) {
e("setCountriesLoading", !0);
const t = undefined;
e("setCountries", await (0,
c.X6)()),
e("setCountriesLoading", !1)
}
} catch (s) {}
},
async createConfirmEmail({commit: e}) {
try {
const t = await m();
return t && t.success && e("setConfirmEmail", t.confirmEmailSentAt),
t
} catch (t) {
return (0,
g.r_)(t),
{}
}
},
async fetchCountriesStates({commit: e, state: t}, s) {
try {
var r;
if (null === (r = t.states[s]) || void 0 === r || !r.length) {
const t = await (0,
c.Fk)(s);
if (Array.isArray(t) && t.length) {
const r = undefined;
e("setStates", {
[s]: t
})
}
}
} catch (a) {}
},
async fetchCountriesStatesIso({commit: e}, t) {
try {
const s = await (0,
c.mN)(t.code);
if (null != s && s.length) {
const r = undefined;
e("setStates", {
[t.id]: s
})
}
e("setCountry", {
...t,
hasStatesIso: !1
})
} catch (s) {}
},
async createHubToken({commit: e}) {
try {
const t = undefined;
e("addHubToken", await (0,
c.HQ)())
} catch (t) {
(0,
g.r_)(t)
}
},
async fetchUserSettings({commit: e, getters: t}) {
if (!t.hasRunningActions("fetchUserSettings")) {
e("addRunningActions", "fetchUserSettings");
try {
const t = await (0,
l.h_)();
if (t.helperAccess) {
const s = (0,
o.S8)(t.helperAccess, p.G);
e("set", s, {
root: !0
}),
t.helperAccess = s.result
}
e("setSettings", t)
} catch (s) {}
e("removeRunningActions", "fetchUserSettings")
}
},
async deleteHubTokenAction({commit: e}, t) {
let s;
try {
var r;
s = await (0,
c.Cj)(t),
null !== (r = s) && void 0 !== r && r.success && e("deleteHubToken", t)
} catch (a) {}
return s
},
async fetchSpotifyTop({commit: e}) {
try {
const t = await (0,
f.yA)();
if (t) {
if (t.myTopArtists) {
const s = (0,
o.S8)(t.myTopArtists, h.Ij);
e("set", s, {
root: !0
}),
e("setSpotifyTopArtists", s.result)
}
if (t.myTopTracks) {
const s = (0,
o.S8)(t.myTopTracks, h.c8);
e("set", s, {
root: !0
}),
e("setSpotifyTopTracks", s.result)
}
}
} catch (t) {}
},
async fetchSpotifyTopArtists({commit: e}) {
try {
const t = await (0,
f.aI)()
, s = (0,
o.S8)(t, h.Ij);
e("set", s, {
root: !0
}),
e("setSpotifyTopArtists", s.result)
} catch (t) {}
},
async fetchSpotifyTopTracks({commit: e}) {
try {
const t = await (0,
f.iu)()
, s = (0,
o.S8)(t, h.c8);
e("set", s, {
root: !0
}),
e("setSpotifyTopTracks", s.result)
} catch (t) {}
},
async fetchSpotifyBio({commit: e}, t) {
try {
const s = await (0,
f.J)(t);
if (null != s && s.topArtists) {
const t = (0,
o.S8)(s.topArtists, h.Ij);
e("set", t, {
root: !0
}),
e("setSpotifyBioTopArtists", t.result)
} else
e("setSpotifyBioTopArtists", null);
e("setSpotifyBioAnthem", s.anthem),
e("setSpotifyBioName", s.displayName)
} catch (s) {}
},
async fetchSpotifySearch({commit: e}, t) {
if (t)
try {
const s = await (0,
f.JS)(t)
, r = (0,
o.S8)(s, h.c8);
e("set", r, {
root: !0
}),
e("setSpotifyTopTracks", r.result)
} catch (s) {}
},
async sendSpotifyArtists({commit: e}, t) {
let s;
try {
var r;
s = await (0,
f.R2)(t),
null !== (r = s) && void 0 !== r && r.success && e("setSpotifyBioTopArtists", t)
} catch (a) {
(0,
g.r_)(a)
}
return s && s.success
},
async sendSpotifyAnthem(e, t) {
try {
const e = await (0,
f._Z)(t);
return e && e.success
} catch (s) {
(0,
g.r_)(s)
}
return !1
},
async saveAutoMessage({}, e) {
try {
return await (0,
c.t2)(e)
} catch (t) {
(0,
g.r_)(t)
}
return !1
},
async fetchAutoMessageTemplate({commit: e}) {
const t = await (0,
c.hB)();
return e("setAutoMessages", t),
t
},
async deleteAutoMessageTemplate({commit: e}, t) {
let s;
try {
var r;
s = await (0,
c._P)(t),
null !== (r = s) && void 0 !== r && r.success && e("deleteAutoMessage", t)
} catch (a) {}
return s
},
async updateUserSettingsMessages({commit: e}, t) {
try {
const s = await (0,
c.Wl)(t);
return s && e("setSettings", s),
!0
} catch (s) {
(0,
g.r_)(s)
}
return !1
},
async disableGoogle({commit: e}) {
try {
const t = undefined;
(await (0,
l.R0)({
network: "google"
})).success && e("deleteGoogle")
} catch (t) {
(0,
g.r_)(t)
}
},
async addOpenSeaWallet({dispatch: e}, t) {
try {
const {success: s} = await (0,
d.Am)(t);
s && await e("fetchUserSettings")
} catch (s) {
(0,
g.r_)(s)
}
},
async deleteOpenSeaWallet({commit: e, dispatch: t}) {
try {
const {success: s} = await (0,
d.An)();
s && (e("clearOpenSeaAssets"),
t("auth/fetchUserMe", null, {
root: !0
}),
t("fetchUserSettings"))
} catch (s) {
(0,
g.r_)(s)
}
},
async fetchOpenSeaAssets({commit: e, state: t}, s=!1) {
try {
e("setOpenSeaIsLoading", !0);
const r = undefined;
e("addOpenSeaAssets", s ? await (0,
d.yQ)({
offset: t.openSea.assets.length,
limit: 9
}) : await (0,
d.hX)({
offset: t.openSea.assets.length,
limit: 9
}))
} catch (r) {
(0,
g.r_)(r)
} finally {
e("setOpenSeaIsLoading", !1)
}
},
async setOpenSeaAvatar({dispatch: e}, t) {
try {
const {success: s} = await e("users/patchUser", {
avatar: {
opensea: t
}
}, {
root: !0
});
if (s)
return e("auth/fetchUserMe", null, {
root: !0
}),
!0
} catch (s) {
return (0,
g.r_)(s),
!1
}
},
async setOpenSeaNfts({commit: e, dispatch: t, rootGetters: s}, r) {
try {
const a = await (0,
d.E_)({
ids: r
});
if (a.success) {
const r = undefined;
return e("users/setHasNft", {
userId: s["auth/authUser"].id,
hasNft: a.hasNft
}, {
root: !0
}),
e("clearOpenSeaAssets"),
await t("fetchOpenSeaAssets", !0),
!0
}
} catch (a) {
return (0,
g.r_)(a),
!1
}
},
async generateStreamingToken({commit: e}, t) {
try {
const s = undefined;
e("setSettings", await (0,
c.f1)(t))
} catch (s) {
(0,
g.r_)(s)
}
},
async fetchMessageSettingsNotifications({commit: e}) {
try {
const t = undefined;
e("setMessageSettingsNotifications", await (0,
c.JF)("message"))
} catch (t) {}
},
async fetchNotificationsAllowedMenuItems({commit: e}) {
let t;
try {
t = await (0,
c.Yl)()
} catch {}
e("setNotificationsAllowedMenuItems", Array.isArray(t) ? t : [])
}
}
},
270942: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return k
},
getters: function() {
return A
},
mutations: function() {
return P
},
shopifyProductSchema: function() {
return v
},
shopifyProductsListSchema: function() {
return w
},
state: function() {
return b
}
});
var r = s(355364)
, a = s.n(r)
, n = s(944114)
, i = s(517642)
, o = s(658004)
, c = s(733853)
, d = s(845876)
, l = s(432475)
, u = s(515024)
, m = s(731698)
, f = s(962953)
, h = s(22504)
, p = s(977434);
const g = ({userId: e}) => p.Ay.get(`${p.XV}/users/${e}/shopify/stores`).then(( ({data: e}) => e))
, y = e => p.Ay.delete(`${p.XV}/shopify/stores/${e}`).then((e => e.data))
, S = (e, t={}) => p.Ay.get(`${p.XV}/users/${e}/shopify/products${(0,
p.Zq)(t)}`).then((e => e.data))
, v = new h.wQ.Entity("shopifyProducts")
, w = new h.wQ.Array(v)
, I = () => ({
loading: !1,
stores: [],
shopifyProducts: {},
shopifyProductsIds: []
})
, b = {
loading: !1,
stores: [],
shopifyProducts: {},
shopifyProductsIds: []
}
, A = {
shopifyProducts: e => e.shopifyProductsIds.map((t => e.shopifyProducts[t])).filter((e => e))
}
, P = {
setShopifyStores(e, t=[]) {
e.stores = t
},
setLoading(e, t) {
e.loading = t
},
addShopifyStore(e, t) {
e.stores.push(t)
},
removeShopifyStore(e, t) {
e.stores = e.stores.filter((e => e.id !== t))
},
setShopifyProducts(e, {data: t={}, more: s=!1}={}) {
var r;
null != t && null !== (r = t.entities) && void 0 !== r && r.shopifyProducts && (e.shopifyProducts = a()({}, e.shopifyProducts, t.entities.shopifyProducts)),
e.shopifyProductsIds = [...new Set([...s ? e.shopifyProductsIds : [], ...(null == t ? void 0 : t.result) || []])]
},
logout(e) {
Object.assign(e, {
loading: !1,
stores: [],
shopifyProducts: {},
shopifyProductsIds: []
})
}
}
, k = {
fetchShopifyStores: async ({commit: e, rootState: t}, {userId: s}={}) => {
e("setLoading", !0),
e("setShopifyStores");
try {
s = s || t.auth.user;
const r = await g({
userId: s
});
Array.isArray(r) && r.length && e("setShopifyStores", r)
} catch (r) {}
e("setLoading", !1)
}
,
deleteShopifyStore: async ({commit: e}, t) => {
try {
await y(t) && e("removeShopifyStore", t)
} catch (s) {}
}
,
async fetchShopifyProducts({commit: e, rootState: t}, {userId: s, ...r}) {
r.marker || e("setShopifyProducts");
try {
const {list: a, hasMore: n, marker: i} = await S(s || t.auth.user, r);
if (Array.isArray(a) && a.length) {
const t = undefined;
e("setShopifyProducts", {
data: (0,
h.S8)(a, w),
more: !!r.marker
})
}
return {
hasMore: n,
marker: i
}
} catch (a) {}
return {
hasMore: !1,
marker: null
}
}
}
},
390778: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return E
},
mutations: function() {
return $
},
state: function() {
return T
}
});
var r = s(305187)
, a = s.n(r)
, n = s(858156)
, i = s.n(n)
, o = s(489463)
, c = s.n(o)
, d = s(944114)
, l = s.n(d)
, u = s(725440)
, m = s.n(u)
, f = s(962953)
, h = s.n(f)
, p = s(974353)
, g = s.n(p)
, y = s(22504)
, S = s(414415)
, v = s(202600)
, w = s(632134)
, I = s(463670)
, b = s(898502)
, A = s(420635)
, P = s(725242);
const k = () => Promise.all([s.e(10908), s.e(61594), s.e(5693), s.e(97825), s.e(54597), s.e(21893), s.e(96961)]).then(s.bind(s, 18070))
, C = () => s.e(8372).then(s.bind(s, 108372))
, L = () => ({
socketOpened: !1,
socketConnected: !1,
countOnlineRequests: 0,
toastsThrottle: 0,
socketLastEventTime: 0,
socketClosedCode: null,
socketClosing: !1
})
, T = {
socketOpened: !1,
socketConnected: !1,
countOnlineRequests: 0,
toastsThrottle: 0,
socketLastEventTime: 0,
socketClosedCode: null,
socketClosing: !1
};
let M, _;
const $ = {
SOCKET_ONOPEN(e, t) {
const {readyState: s, OPEN: r} = t.currentTarget;
r && s === r ? e.socketOpened = !0 : e.socketClosedCode = 1
},
SOCKET__CONNECTED(e) {
e.socketConnected = !0
},
SOCKET_ONCLOSE(e, t) {
e.socketClosedCode = t.code
},
SOCKET_ONERROR(e) {
e.socketClosing = !0
},
SOCKET_RECONNECT_ERROR() {},
setClosing(e) {
e.socketClosing = !0
},
resetState(e) {
Object.assign(e, {
socketOpened: !1,
socketConnected: !1,
countOnlineRequests: 0,
toastsThrottle: 0,
socketLastEventTime: 0,
socketClosedCode: null,
socketClosing: !1
})
},
incCountOnlineRequests(e) {
e.countOnlineRequests += 1
},
decrCountOnlineRequests(e) {
e.countOnlineRequests -= 1
},
setToastsThrottle(e, t) {
e.toastsThrottle = t
},
updateLastEventTime(e) {
e.socketLastEventTime = Date.now()
},
logout(e) {
Object.assign(e, {
socketOpened: !1,
socketConnected: !1,
countOnlineRequests: 0,
toastsThrottle: 0,
socketLastEventTime: 0,
socketClosedCode: null,
socketClosing: !1
})
}
}
, E = {
SOCKET_RECONNECT({dispatch: e}) {
e("hash/fetchHash", {}, {
root: !0
})
},
async SOCKET_ONMESSAGE({commit: e, dispatch: t, rootState: s, rootGetters: r, state: n}, o) {
var c, d;
if (null != o && o.data) {
const {data: O} = o
, R = S.A.$route.name;
let F;
try {
F = JSON.parse(O)
} catch (U) {
Sentry.captureException(U)
}
const B = document.activeElement && document.activeElement.tagName && ("INPUT" === document.activeElement.tagName && "text" === document.activeElement.type || "TEXTAREA" === document.activeElement.tagName);
if (F) {
var l, u;
if (5 === F.error)
return void (null === S.A || void 0 === S.A || null === (l = S.A.$socket) || void 0 === l || l.close());
if ([6, 7].includes(F.error))
return t("auth/fetchUserAuthToken", {}, {
root: !0
}),
void (null === S.A || void 0 === S.A || null === (u = S.A.$socket) || void 0 === u || u.close());
"function" == typeof doPong && doPong(F);
const o = r["auth/authUserId"]
, O = r["auth/authUser"];
if (e("updateLastEventTime"),
F.connected && e("SOCKET__CONNECTED"),
void 0 !== F.online && (e("users/setOnline", F.online, {
root: !0
}),
e("decrCountOnlineRequests")),
F.account_connect && t("users/addConnectedAccount", {
userData: {
connectedUser: F.account_connect.user,
canConnectOfAccount: F.account_connect.canConnect
}
}, {
root: !0
}),
F.account_disconnect && e("users/removeConnectedAccount", {
userId: o,
accountId: F.account_disconnect.userId,
userData: {
canConnectOfAccount: F.account_disconnect.canConnect,
success: !0
}
}, {
root: !0
}),
F.account_switch)
try {
const e = await (0,
v.h1)()
, {id: t} = e;
null !== t && t === F.account_switch.user_id || (window.showPreloader(),
S.A.$emit("removeAllBeforeUnloadListeners"),
S.A.$nextTick(( () => {
window.location.reload()
}
)))
} catch (U) {}
if (F.api2_chat_message) {
var m;
const r = F.api2_chat_message
, n = +r.id
, c = {
...r,
id: n
}
, d = c.fromUser || c.toUser;
d && (c.chatId = d.id),
d.id = +d.id;
const l = !!c.toUser;
delete c.toUser,
c.fromUser || (c.fromUser = {
id: o
}),
"Chat" === R && +i()(S.A, "$route.params.chatId", 0) == +d.id && (c.needMarkChatAsRead = !0);
const u = (0,
y.S8)(c, w.Lu);
e("set", u, {
root: !0
}),
await t("users/getUsersIfNeeded", {
entities: {
users: {
[d.id]: {
_views: ["m"]
}
}
}
}, {
root: !0
});
const f = u.result
, {currentFiltersIds: h} = s.usersLists
, p = i()(d, "listsStates", !1)
, g = !p || p.some((e => h[0] === e.id && e.hasUser))
, v = !(!r.isTip && h.includes("who_tipped") && r.isFromQueue && h.includes("priority"));
!s.chats.chats.includes(d.id) && v && g && e("chats/addChats", {
ids: [d.id]
}, {
root: !0
}),
(!c.isFromQueue || c.isFromQueue && "Chat" === R && +i()(S.A, "$route.params.chatId", 0) == +c.fromUser.id) && t("chats/newMessageFromSocket", {
id: d.id,
messageIds: f,
add: !0,
before: !1,
ownMsg: l,
isSocket: !0,
listsStates: d.listsStates || []
}, {
root: !0
}),
e("chats/setChatTyping", {
chatId: d.id,
status: !1
}, {
root: !0
}),
e("chats/setLastMessage", {
chatId: d.id,
messageId: f,
ownMsg: l,
isNew: c.isNew
}, {
root: !0
});
const I = i()(r, "fromUser.id", null);
!r.isFromQueue || a()(I) || a()(o) || I !== o || S.A.$root.$emit("updateScheduledMessage", r),
e("chats/setNewMessageIds", d.id, {
root: !0
});
const b = s.schedule.items.find(( ({entity: e}) => e.id === n))
, A = s.schedule.dayItems.find(( ({entity: e}) => e.id === n))
, P = (b && !b.entity.isMediaReady || A && !A.entity.isMediaReady) && r.isMediaReady
, k = null === (m = r.media) || void 0 === m ? void 0 : m.some(( ({hasError: e}) => e));
["MyQueue", "Feed"].includes(R) && (P || k) && (e("schedule/updateScheduledEvent", r, {
root: !0
}),
e("schedule/setItemsByDate", {}, {
root: !0
}),
e("schedule/updateDayItemScheduledEvent", r, {
root: !0
}))
}
if (F.chat_queue_finish) {
const s = +F.chat_queue_finish.id;
F.chat_queue_finish.isCanceled ? t("chats/clearQueueState", {
id: s
}, {
root: !0
}) : F.chat_queue_finish.isDone && t("chats/fetchMessagesQueue", {}, {
root: !0
}),
t("schedule/fetchEventsCounters", {
params: {
"filter[publishDate]": g()().format(I.tR)
}
}, {
root: !0
}),
e("schedule/messagePublished", s, {
root: !0
}),
e("schedule/setItemsByDate", {}, {
root: !0
}),
S.A.$root.$emit("updateChatsList")
}
if (void 0 !== F.sflSyncInProcess && "MyQueue" === R && S.A.$root.$emit("sflSyncProcessFinished"),
void 0 !== F.chat_messages && t("users/setAuthUserData", {
chatMessagesCount: F.chat_messages
}, {
root: !0
}),
void 0 !== F.count_priority_chat && t("users/setAuthUserData", {
countPriorityChat: F.count_priority_chat
}, {
root: !0
}),
void 0 !== F.unread_tips && t("users/setAuthUserData", {
unreadTips: F.unread_tips
}, {
root: !0
}),
F.chat_queue_update && S.A.$root.$emit("update_queue"),
void 0 !== F.chat_message_delete) {
const s = r["chats/getMessage"](F.chat_message_delete)
, a = null == s ? void 0 : s.chatId
, n = !(null == s || !s.isPinned);
if (e("chats/deleteMessageById", F.chat_message_delete, {
root: !0
}),
a && n) {
e("chats/setChatMessagesPinnedCount", {
chatId: a,
value: !1
}, {
root: !0
});
const s = r["chats/getChat"](a);
s && 0 === s.countPinnedMessages && t("users/updateChatPinnedCount", {
status: -1
}, {
root: !0
})
}
}
if (void 0 !== F.addShopifyStore && e("shopify/addShopifyStore", F.addShopifyStore, {
root: !0
}),
void 0 !== F.dropShopifyStore && e("shopify/removeShopifyStore", F.dropShopifyStore.id, {
root: !0
}),
void 0 !== F.messages && e("users/setUserNotificationsCount", {
userId: s.auth.user,
notificationsCount: F.messages,
hasSystemNotifications: F.hasSystemNotifications
}, {
root: !0
}),
F.new_message) {
const {new_message: r} = F;
if (R.includes("Notifications") && s.users.notificationsType) {
const a = undefined;
if ([r.type, I.lZ].includes(s.users.notificationsType)) {
const a = (0,
y.S8)(r, w.bd);
await t("users/getUsersIfNeeded", {
entities: {
users: Object.keys(a.entities.users).reduce(( (e, t) => ({
...e,
[t]: {
...a.entities.users[t],
_views: ["m"]
}
})), {})
}
}, {
root: !0
}),
e("set", a, {
root: !0
}),
e("users/setNotifications", {
notifications: [{
...r,
id: +r.id
}],
more: !1,
unread: !0
}, {
root: !0
}),
r.type !== I.pM && t("users/setNotificationsReadByType", s.users.notificationsType, {
root: !0
})
}
e("users/setNotificationsCountsByType", r.type, {
root: !0
})
}
}
if (void 0 !== F.typing && (M && clearInterval(M),
e("chats/setChatTyping", {
chatId: F.typing.id,
status: !0
}, {
root: !0
}),
M = setTimeout(( () => {
e("chats/setChatTyping", {
chatId: F.typing.id,
status: !1
}, {
root: !0
})
}
), 5e3)),
void 0 !== F.stream) {
const {stream: t} = F
, s = +t.id;
return void ("Feed" === R && e("schedule/updateReminder", {
id: s,
fields: {
price: t.price,
description: t.description,
scheduledAt: t.scheduledAt,
startedAt: t.startedAt
}
}, {
root: !0
}))
}
if (void 0 !== F.stream_remove) {
const {stream_remove: t} = F
, s = +t.id;
return e("schedule/removeFromReminder", s, {
root: !0
}),
void e("streams/removeItem", s, {
root: !0
})
}
if (void 0 !== F.stream_start) {
const a = F.stream_start
, n = +a.userId
, i = +a.stream_id;
if (e("users/setUserData", {
userId: n,
data: {
hasStream: !0
}
}, {
root: !0
}),
("Profile" === R || "ProfileInner" === R) && r["users/userId"] === n || "Feed" === R || "Purchased" === R || "Blurred" === R || "StreamingChat" === R && n === o) {
if (await t("streams/fetchUserStream", n, {
root: !0
}),
e("streamsScheduled/removeIds", [i], {
root: !0
}),
"StreamingChat" === R) {
const {local: e, streamingChatEnabled: a} = s.streaming;
if (!e.stream.id && !a) {
const e = undefined
, s = r["streams/streamsByUserId"][n];
s && s.isActive && (s.user = r["users/getUser"](s.user),
await t("streaming/enableStreamingChat", s, {
root: !0
}))
}
}
"Feed" === R && e("schedule/updateReminder", {
id: i,
fields: {
isActive: !0
}
}, {
root: !0
})
}
return
}
if (void 0 !== F.stream_update) {
const {stream_update: r} = F
, a = s.live.streams;
"Feed" === R && e("schedule/updateReminder", {
id: r.id,
fields: {
price: r.price,
description: r.description,
scheduledAt: r.scheduledAt,
startedAt: r.startedAt
}
}, {
root: !0
}),
t("streams/updateStream", r, {
root: !0
}),
"Live" === R && a[r.user.id] && (+r.primaryPartnerUserId == +r.user.id ? t("live/setStreamData", r, {
root: !0
}) : t("live/setUserStreamData", r, {
root: !0
}));
const {local: n, partners: i} = s.streaming;
if (+r.id == +n.stream.id)
t("streaming/setStreamData", r, {
root: !0
});
else if (i[r.user.id]) {
const e = +r.primaryPartnerUserId == +r.user.id ? "primary" : "partner";
t("streaming/setPartnerUserStreamData", {
instance: r.user.id,
streamData: r,
partnerType: e
}, {
root: !0
})
}
return
}
if (void 0 !== F.stream_stop) {
var f;
const r = F.stream_stop
, a = +r.stream_user_id
, n = +r.stream_id;
t("streams/removeStreamFromFeed", n, {
root: !0
}),
e("users/setUserData", {
userId: a,
data: {
hasStream: !1
}
}, {
root: !0
});
const i = s.live.streams;
i[a] && "beforeStart" === i[a].streamState && e("live/setStreamState", {
value: "stopped",
instance: a
}, {
root: !0
});
const {streamingChatEnabled: c, local: d} = s.streaming;
c && a === o && n === (null === (f = d.stream) || void 0 === f ? void 0 : f.id) && t("streaming/disableStreamingChat", {}, {
root: !0
}),
a === o && n && S.A.$bvToast.hide(`ScheduledStreamNotificationToast_${n}`);
const l = undefined;
return void (s.schedule.reminders.find((e => e.id === n)) && t("schedule/fetchReminders", {}, {
root: !0
}))
}
if (void 0 !== F.stream_comment) {
const e = F.stream_comment
, {local: a} = s.streaming
, n = r["live/primary"]
, i = r["streaming/primary"]
, o = s.streaming.mode || s.live.mode
, c = {
id: e.comment_id,
text: e.comment,
toUser: e.toUser,
user: e.user,
isPrivate: !!e.isPrivate,
giphyId: e.giphy_id
};
switch (o) {
case "live":
case "dual-live":
+e.stream_user_id == +n.user.id && t("live/addComment", c, {
root: !0
});
break;
case "streaming":
case "dual-streaming":
a.stream.id && +e.stream_user_id == +i.user.id && t("streaming/addComment", c, {
root: !0
})
}
return
}
if (void 0 !== F.stream_comment_error) {
const e = F.stream_comment_error;
switch (e.errorType) {
case "bad_words":
S.A.$bvToast.toast(S.A.$root.$t("message.stream_comment_error_restricted_message", {
WORDS: e.badWords.join(", ")
}), I.z8);
break;
case "empty_comment":
S.A.$bvToast.toast(S.A.$root.$t("message.stream_comment_error_empty_message"), I.z8)
}
return
}
if (void 0 !== F.stream_comment_delete) {
const e = undefined;
switch (s.streaming.mode || s.live.mode) {
case "live":
case "dual-live":
t("live/deleteComments", F.stream_comment_delete, {
root: !0
});
break;
case "streaming":
case "dual-streaming":
t("streaming/deleteComments", F.stream_comment_delete, {
root: !0
})
}
return
}
if (void 0 !== F.stream_tips) {
const a = F
, {stream_tips: n} = a
, i = +n.stream_user_id
, o = +n.stream_id
, c = (0,
P.W)(a.tips_summ)
, d = (0,
P.W)(a.tips_goal_progress)
, l = (0,
P.W)(a.tips_goal_sum);
if (!["Streaming", "Live", "StreamingChat"].includes(R))
return;
if (!n.amount)
return;
const {local: u} = s.streaming
, m = undefined;
let f;
switch (s.streaming.mode || s.live.mode) {
case "live":
case "dual-live":
({streams: f} = s.live),
f[i] && (e("live/setStreamStream", {
stream: {
tipsSumm: c
},
instance: i
}, {
root: !0
}),
t("live/addTipsComment", n, {
root: !0
}),
l && t("live/setTipGoal", {
data: {
progress: d,
sum: l
},
instance: i
}, {
root: !0
}));
break;
case "streaming":
case "dual-streaming":
f = r["streaming/streams"],
f[i] && (t("streaming/addTips", n, {
root: !0
}),
u.stream.id === o ? e("streaming/setLocalStream", {
tipsSumm: c
}, {
root: !0
}) : e("streaming/setPartnerStream", {
stream: {
tipsSumm: c
},
instance: i
}, {
root: !0
}),
e("streaming/setTipGoal", {
tipGoal: {
sum: l,
progress: d
},
instance: i
}, {
root: !0
}))
}
return
}
if (void 0 !== F.stream_look) {
const {stream_look: r} = F
, a = s.streaming.mode || s.live.mode
, {streams: n} = s.live
, {local: i, users: d, coStream: l} = s.streaming;
switch (a) {
case "live":
case "dual-live":
if (!n[r.stream_user_id])
return;
+r.user.id == +o && e("live/setStreamLook", {
streamLook: {
approved: !0,
waiting: !1,
sent: !1
},
instance: r.stream_user_id
}, {
root: !0
}),
e("live/setTotalViewers", r.total, {
root: !0
}),
t("live/joinUser", {
user: r.user,
viewerInstanceCount: null !== (c = r.viewer_instance_count) && void 0 !== c ? c : 1,
commentText: S.A.$t("message.has_joined_stream_comment")
}, {
root: !0
});
break;
case "streaming":
case "dual-streaming":
if (+r.stream_user_id != +i.user.id)
return;
var h;
if (+r.user.id != +i.user.id)
if (e("streaming/setViewersCount", r.total, {
root: !0
}),
t("streaming/joinUser", {
user: r.user,
viewerInstanceCount: null !== (h = r.viewer_instance_count) && void 0 !== h ? h : 1,
commentText: S.A.$t("message.has_joined_stream_comment")
}, {
root: !0
}),
l.requestedCostreamViewers[r.user.id]) {
const e = d[r.user.id];
e && S.A.$root.$emit("show:co-stream:request", {
user: e,
streamId: i.stream.id
})
}
}
return
}
if (void 0 !== F.stream_unlook) {
const {stream_unlook: a} = F
, n = s.streaming.mode || s.live.mode
, i = r["live/primary"]
, {local: o} = s.streaming;
switch (n) {
case "live":
case "dual-live":
if (!i || +i.user.id != +a.stream_user_id)
return;
t("live/leaveUser", {
user: a.user,
viewerInstanceCount: null !== (d = a.viewer_instance_count) && void 0 !== d ? d : 0,
isUserBlocked: a.is_user_blocked
}, {
root: !0
}),
+i.user.id == +a.stream_user_id && e("live/setTotalViewers", a.total, {
root: !0
});
break;
case "streaming":
case "dual-streaming":
if (+a.stream_user_id != +o.user.id)
return;
var p;
if (+a.user.id != +o.user.id)
e("streaming/setViewersCount", a.total, {
root: !0
}),
t("streaming/leaveUser", {
user: a.user,
viewerInstanceCount: null !== (p = a.viewer_instance_count) && void 0 !== p ? p : 0,
isUserBlocked: a.is_user_blocked
}, {
root: !0
})
}
return
}
if (void 0 !== F.stream_like) {
const {stream_like: e} = F
, {local: a} = s.streaming
, n = r["live/primary"];
a.stream.id && t("streaming/addLike", {
x: e.x,
y: e.y,
streamUserId: +e.stream_user_id
}, {
root: !0
}),
n && t("live/addLike", {
x: e.x,
y: e.y,
streamUserId: +e.stream_user_id
}, {
root: !0
})
}
if (void 0 !== F.stream_helper) {
const {streamId: t, helperUserIds: a} = F.stream_helper
, {local: n} = s.streaming
, i = r["streaming/partnersArray"]
, {streams: o} = s.live;
(n.stream.id == t || i.some((e => e.stream.id == t))) && e("streaming/updateStreamHelpers", a, {
root: !0
}),
Object.values(o).some((e => e.stream.id == t)) && e("live/updateStreamHelpers", a, {
root: !0
})
}
if (void 0 !== F.co_stream) {
const {co_stream: a} = F
, n = Number(a.streamId)
, i = Number(a.userId)
, o = r["live/primary"]
, {local: c, coStream: d} = s.streaming
, l = s.streaming.mode || s.live.mode;
switch (a.status) {
case "request":
c.stream.id === n && e("streaming/addRequestedCostreamViewer", i, {
root: !0
});
break;
case "accept":
var L, T;
(null === (L = o.stream) || void 0 === L ? void 0 : L.id) === n && (null === (T = o.user) || void 0 === T ? void 0 : T.id) === i && (t("live/switchToDualStreaming", {
router: S.A.$router
}, {
root: !0
}),
S.A.$router.replace({
name: "Streaming",
params: {
switchFromLive: !0
}
}));
break;
case "invite":
var $;
o.stream.id === n && (null === ($ = o.user) || void 0 === $ ? void 0 : $.id) === i && (e("live/setCoStream", {
coStreamInviteReceived: !0,
showCoStreamInviteReceivedToast: !0
}, {
root: !0
}),
_ && clearTimeout(_),
_ = setTimeout(( () => {
e("live/setCoStream", {
showCoStreamInviteReceivedToast: !1
}, {
root: !0
})
}
), 3e4));
break;
case "accept_invite":
c.stream.id === n && d.invitedCostreamViewerId === i && (e("streaming/setCoStream", {
inviteAccepted: !0
}, {
root: !0
}),
t("streaming/declineAllCostreamRequests", {}, {
root: !0
}));
break;
case "decline":
"streaming" === l ? c.stream.id === n && S.A.$root.$emit("show:co-stream:decline", i) : o.stream.id === n && o.user.id === i && S.A.$root.$emit("show:co-stream:decline");
break;
case "cancel":
"streaming" === l ? c.stream.id === n && S.A.$root.$emit("show:co-stream:cancel", i) : o.stream.id === n && o.user.id === i && e("live/setCoStream", {
coStreamInviteReceived: !1,
showCoStreamInviteReceivedToast: !1
}, {
root: !0
})
}
}
if (void 0 !== F.muted) {
const t = F.muted.user_id
, {state: s} = F.muted
, r = undefined;
e("chats/setMuted", {
id: t,
status: +s
}, {
root: !0
}),
e("users/setUserData", {
userId: t,
data: {
canReceiveChatMessage: !s
}
}, {
root: !0
})
}
if (void 0 !== F.post_expire && e("posts/deletePost", F.post_expire, {
root: !0
}),
void 0 !== F.post_published) {
const r = +F.post_published.id
, a = +F.post_published.user_id;
if (F.post_published.show_posts_in_feed && t("posts/postPublished", {
id: r,
userId: a
}, {
root: !0
}),
a === o) {
const a = s.schedule.items.some(( ({entity: e}) => e.id === r))
, n = s.schedule.dayItems.some(( ({entity: e}) => e.id === r))
, i = s.savedForLater.itemsSFL.some(( ({entity: e}) => e.id === r));
"Feed" === R && a && (e("schedule/clearAgendaItems", {}, {
root: !0
}),
t("schedule/fetchEventsDetailed", {
params: {
limit: 4,
"filter[publishDate]": g()().format(I.tR)
}
}, {
root: !0
})),
"MyQueue" === R && (a || n) && (t("schedule/fetchEventsCounters", {
params: {
"filter[publishDate]": g()().format(I.tR)
}
}, {
root: !0
}),
e("schedule/postPublished", r, {
root: !0
}),
e("schedule/setItemsByDate", {}, {
root: !0
})),
"SavedForLater" === R && i && e("savedForLater/postPublished", r, {
root: !0
})
}
}
if (void 0 !== F.post_updated) {
const e = +F.post_updated;
["Feed", "Post", "Profile", "ProfileInner", "PostsEdit"].includes(R) && t("posts/fetchPost", {
id: e,
onlyExisted: !0
}, {
root: !0
}),
t("schedule/updatePost", e, {
root: !0
}),
t("savedForLater/updateSFLPost", e, {
root: !0
})
}
if (void 0 !== F.post_fundraising_updated && e("posts/updatePost", F.post_fundraising_updated, {
root: !0
}),
F.toasts && !B && !document.hidden) {
const {toasts: s} = F;
if (["Streaming", "Live", "StreamingChat"].includes(R))
return;
s.forEach((async s => {
var r;
null !== (r = s.data) && void 0 !== r && null !== (r = r.relatedUser) && void 0 !== r && r.id && await t("users/getUsersIfNeeded", {
entities: {
users: {
[s.data.relatedUser.id]: {
_views: ["m"]
}
}
}
}, {
root: !0
});
const a = +new Date;
if (n.toastsThrottle && n.toastsThrottle + 5e3 > a)
return;
e("setToastsThrottle", a);
const i = "streams_reminder" === s.type
, o = S.A.$createElement
, c = undefined;
let d = (await k()).default
, l = s
, u = {
...I.z8
};
if (i) {
const e = undefined;
d = (await C()).default,
l = {
scheduledAt: s.data.replacements["{STREAM_PUBLISH_DATE}"],
id: +s.data.replacements["{STREAM_ID}"],
description: s.data.replacements["{STREAM_DESCRIPTION}"],
media: {
files: {
thumb: {
url: s.data.replacements["{STREAM_COVER}"]
}
}
}
};
const t = `ScheduledStreamNotificationToast_${l.id}`;
u = {
...u,
id: t,
noAutoHide: !0,
toastClass: "m-without-timer"
},
S.A.$bvToast.hide(t)
}
const m = o(d, {
props: {
toast: l
}
});
S.A.$bvToast.toast([m], u)
}
))
}
if (F.logout && o && !s.auth.logoutInProgress)
try {
const s = await (0,
v.h1)()
, {id: r} = s;
null !== r && r === F.user_id || (e("auth/setLogoutInProgress", !0, {
root: !0
}),
S.A.$router.push({
name: "Feed",
params: {
isLogout: !0
}
}),
t("logout", {}, {
root: !0
}),
t("auth/fetchUserMe", {}, {
root: !0
}))
} catch (U) {}
F.has_new_alerts && t("users/fetchAlert", {}, {
root: !0
}),
F.has_new_hints && "Feed" === R && (e("hints/resetUserHints", {}, {
root: !0
}),
t("hints/fetchHints", {}, {
root: !0
}));
const {creditBalance: q, isRealCardConnected: x, payoutLegalApproveState: j, payoutLegalApproveRejectReason: N, payoutType: X, hasStripe: H, canEarn: G, canReceiveManualPayout: Z, needUpdateBanking: Q, canReceiveStripePayout: J, needIVApprove: W, ivStatus: Y, showIvButton: z, isAgeVerified: K, ageVerificationRequired: ee, ivCountry: te, ivFailReason: se, hasNewTicketReplies: re, ticketStatusUpdated: ae, ageVerificationSession: ne, isPaywallPassed: ie, newTagsCount: oe, faceIdRegular: ce} = F;
if (void 0 !== q && t("users/setAuthUserData", {
creditBalance: q
}, {
root: !0
}),
void 0 !== x && t("users/setAuthUserData", {
isRealCardConnected: x,
isPaymentCardConnected: x
}, {
root: !0
}),
void 0 !== j && (t("users/setAuthUserData", {
payoutLegalApproveState: j,
payoutType: X,
hasStripe: H,
canEarn: G
}, {
root: !0
}),
e("banking/updatePayoutsLegalInfo", {
payoutLegalApproveRejectReason: N
}, {
root: !0
}),
"approved" === j && t("auth/fetchUserMe", null, {
root: !0
})),
void 0 !== Z && t("users/setAuthUserData", {
canReceiveManualPayout: Z
}, {
root: !0
}),
void 0 !== Q && e("statements/setState", {
needUpdateBanking: Q
}, {
root: !0
}),
void 0 !== J && t("users/setAuthUserData", {
canReceiveStripePayout: J
}, {
root: !0
}),
void 0 !== F.paymentLocalUniqueId && S.A.$root.$emit(`msg::paymentLocalUniqueId::${F.paymentLocalUniqueId}`, F.timestamp),
void 0 !== F.faceIdOtp && S.A.$root.$emit("msg::faceIdOtp", F.faceIdOtp),
void 0 !== F.forceFaceIdOtp && e("settings/setSettings", {
forceFaceOtp: F.forceFaceIdOtp
}, {
root: !0
}),
void 0 !== F.confirmed_email && (t("users/setAuthUserData", {
isEmailChecked: F.confirmed_email === O.email
}, {
root: !0
}),
e("hints/deleteUserHint", "email_verification", {
root: !0
})),
F.releaseForm && S.A.$root.$emit("msg", {
releaseForm: F.releaseForm
}),
void 0 !== F.guestAssigned && e("releaseForms/setUsersFromGuest", F.guestAssigned, {
root: !0
}),
void 0 !== K && (S.A.$root.$emit("msg", {
isAgeVerified: K
}),
t("users/setAuthUserData", {
isAgeVerified: K
}, {
root: !0
})),
void 0 !== ee && (S.A.$root.$emit("msg", {
ageVerificationRequired: ee
}),
t("users/setAuthUserData", {
ageVerificationRequired: ee
}, {
root: !0
})),
void 0 !== W && t("users/setAuthUserData", {
needIVApprove: W
}, {
root: !0
}),
!1 === W && "Feed" === R && e("hints/deleteUserHint", "ondato_approve", {
root: !0
}),
void 0 !== z && S.A.$root.$emit("msg", {
showIvButton: z
}),
void 0 !== Y && (S.A.$root.$emit("msg", {
ivStatus: Y
}),
t("users/setAuthUserData", {
ivStatus: Y
}, {
root: !0
})),
void 0 !== te && (S.A.$root.$emit("msg", {
ivCountry: te
}),
t("users/setAuthUserData", {
ivCountry: te
}, {
root: !0
})),
void 0 !== se && (S.A.$root.$emit("msg", {
ivFailReason: se
}),
t("users/setAuthUserData", {
ivFailReason: se
}, {
root: !0
})),
void 0 !== F.stories) {
const e = F.stories.length ? F.stories[0] : {};
t("stories/storySocketUpdate", e, {
root: !0
})
}
if (F.hide_stories_user) {
const t = +i()(F, "hide_stories_user.user_id");
if (!t)
return;
e("users/setUserData", {
userId: t,
data: {
hasStories: !1,
hasNotViewedStory: !1,
canLookStory: !1
}
}, {
root: !0
}),
e("stories/hideUserStories", {
userId: t
}, {
root: !0
})
}
if (F.unhide_stories_user) {
const e = +i()(F, "unhide_stories_user.user_id");
if (!e)
return;
t("users/fetchUser", {
id: e
}, {
root: !0
}),
"Feed" === R && t("stories/addUserStoriesOnFeed", e, {
root: !0
}),
"Profile" === R && s.users.currentUser === e && (t("stories/fetchUserStories", e, {
root: !0
}),
t("stories/fetchUserHighlights", {
userId: e
}, {
root: !0
}))
}
if (void 0 !== F.template) {
const t = {
...F.template
};
e("settings/setAutoMessage", t, {
root: !0
})
}
if (F.price_changed && +F.price_changed.user_id !== o && t("subscribes/fetchSubscribes", {
limit: 0,
type: "changed",
more: !0
}, {
root: !0
}),
void 0 !== F.subscribed) {
const {subscribed: e} = F;
if (["Streaming", "StreamingChat"].includes(R)) {
const {local: r, streamViewerIds: a} = s.streaming;
r.stream.id && a.find((t => t === +e.user.id)) && t("streaming/addSubscribedComment", {
user: e.user,
commentText: S.A.$t("message.streaming_user_subscribed")
}, {
root: !0
})
}
}
if (F.tickets_comment_count) {
const {id: t, count: s} = F.tickets_comment_count;
e("static/setTicket", {
id: t,
ticket: {
hasNewReplies: !!s,
commentCount: s
}
}, {
root: !0
})
}
if (void 0 !== re && t("users/setAuthUserData", {
hasNewTicketReplies: re
}, {
root: !0
}),
void 0 !== ae && Object.entries(ae).forEach(( ([t,s]) => {
e("static/setTicket", {
id: t,
ticket: {
status: s
}
}, {
root: !0
}),
S.A.$bvToast.toast(S.A.$root.$t("message.support_ticket_status_changed", {
STATUS: s,
ID: t
}), I.z8)
}
)),
F.queueStats) {
const {id: t, viewedCount: s, sentCount: r} = F.queueStats;
e("massMessagesStat/setMessage", {
id: t,
viewedCount: s,
sentCount: r
}, {
root: !0
})
}
if (void 0 !== ne && t("users/setAuthUserData", {
ageVerificationSession: ne
}, {
root: !0
}),
void 0 !== F.block_user) {
const a = +F.block_user.subscriber_id
, n = +F.block_user.user_id;
if (o === n) {
e("users/toggleUsersBlockedBy", {
userId: a,
value: !0
}, {
root: !0
});
const s = r["chats/getChat"](a);
s && s.countPinnedMessages > 0 && t("users/updateChatPinnedCount", {
status: -1
}, {
root: !0
}),
e("chats/deleteChat", a, {
root: !0
})
}
o === a && (e("users/unsetUser", n, {
root: !0
}),
s.users.currentUser === n && (e("users/setCurrentUser", null, {
root: !0
}),
e("users/setProfileDataLoadingError", !0, {
root: !0
})),
"Chat" === R && S.A.$route.params && +S.A.$route.params.chatId === n && t("chats/fetchChat", n, {
root: !0
}))
}
if (void 0 !== F.writable_chat || void 0 !== F.readonly_chat) {
var E, V;
const e = +((null === (E = F.writable_chat) || void 0 === E ? void 0 : E.user_id) || (null === (V = F.readonly_chat) || void 0 === V ? void 0 : V.user_id));
t("chats/fetchChat", e, {
root: !0
}),
t("users/fetchUser", {
id: e
}, {
root: !0
})
}
if (void 0 !== F.faceId && (F.faceId.result ? (S.A.$root.$emit("confirmSecurityCheck"),
O.hasScenario ? (t("auth/fetchUserMe", null, {
root: !0
}),
e("auth/setScenario", {}, {
root: !0
})) : t("users/setAuthUserData", {
faceIdRegular: void 0
}, {
root: !0
})) : F.faceId.message && alert(F.faceId.message)),
void 0 !== F.require_terms && t("users/setAuthUserData", {
requireTerms: F.require_terms
}, {
root: !0
}),
void 0 !== F.update_pinned_chats_counter && t("users/setAuthUserData", {
countPinnedChat: F.update_pinned_chats_counter
}, {
root: !0
}),
void 0 !== F.need_a_tag_count && t("users/setAuthUserData", {
needTagCount: F.need_a_tag_count
}, {
root: !0
}),
Array.isArray(F.sync_duplicated_release_forms) && "TagsRequired" === R && F.sync_duplicated_release_forms.forEach(( ({entity_id: t}) => {
e("posts/deletePost", t, {
root: !0
})
}
)),
void 0 !== ie && t("users/setAuthUserData", {
isPaywallPassed: ie
}, {
root: !0
}),
void 0 !== oe && t("users/setAuthUserData", {
newTagsCount: oe
}, {
root: !0
}),
void 0 !== F.is_performer && e("init/setNeededReload", !0, {
root: !0
}),
void 0 !== ce) {
const {needToShow: r, canPostpone: a} = ce;
var D;
if (t("users/setAuthUserData", {
faceIdRegular: ce
}, {
root: !0
}),
r)
a || (0,
b.A)();
else
(null === (D = s.auth.scenario) || void 0 === D ? void 0 : D.action) === A.Z.FACE_ID && (e("auth/setScenario", {}, {
root: !0
}),
t("auth/fetchUserMe", null, {
root: !0
}))
}
}
}
},
socketResetState({commit: e}) {
e("resetState")
},
socketSetClosing({commit: e}) {
e("setClosing")
}
}
},
847077: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return m
},
getters: function() {
return l
},
mutations: function() {
return u
},
state: function() {
return d
}
});
var r = s(962953)
, a = s.n(r)
, n = s(874727)
, i = s(977434)
, o = s(445964);
const c = () => ({
balances: {},
stripeBalances: {},
earnings: [],
payoutRequests: [],
documentsVat: [],
stripeData: {
currentStep: 0,
lastPayoutId: null,
hasMore: !0
},
payoutStatistics: {},
earningsLoading: !1,
payoutRequestsLoading: !1,
documentsVatLoading: !1,
earningsMarker: void 0,
needUpdateBanking: !1
})
, d = {
balances: {},
stripeBalances: {},
earnings: [],
payoutRequests: [],
documentsVat: [],
stripeData: {
currentStep: 0,
lastPayoutId: null,
hasMore: !0
},
payoutStatistics: {},
earningsLoading: !1,
payoutRequestsLoading: !1,
documentsVatLoading: !1,
earningsMarker: void 0,
needUpdateBanking: !1
}
, l = {}
, u = {
setEarningsLoading(e, t) {
e.earningsLoading = t
},
setPayoutRequestsLoading(e, t) {
e.payoutRequestsLoading = t
},
setDocumentsVatLoading(e, t) {
e.documentsVatLoading = t
},
setBalances(e, {balances: t, isStripe: s}) {
s ? e.stripeBalances = t : e.balances = t
},
updateBalances(e, {balances: t, isStripe: s}) {
s ? e.stripeBalances = {
...e.stripeBalances,
...t
} : e.balances = {
...e.balances,
...t
}
},
setEarnings(e, {items: t=[], more: s=!1}={}) {
e.earnings = s ? [...e.earnings, ...t] : [...t],
e.earnings = (0,
o.A)(e.earnings)
},
setPayoutRequests(e, {items: t, more: s}) {
e.payoutRequests = s ? [...e.payoutRequests, ...t] : [...t]
},
setDocumentsVat(e, {items: t, more: s}) {
e.documentsVat = s ? [...e.documentsVat, ...t] : [...t]
},
setStripeData(e, {lastPayoutId: t, hasMore: s, currentStep: r}) {
e.stripeData.lastPayoutId = t,
e.stripeData.hasMore = s,
void 0 !== r && (e.stripeData.currentStep = r)
},
setPayoutStatistics(e, t) {
e.payoutStatistics = t
},
setEarningsMarker(e, t) {
e.earningsMarker = t
},
setState(e, t={}) {
Object.assign(e, t)
},
logout(e) {
Object.assign(e, {
balances: {},
stripeBalances: {},
earnings: [],
payoutRequests: [],
documentsVat: [],
stripeData: {
currentStep: 0,
lastPayoutId: null,
hasMore: !0
},
payoutStatistics: {},
earningsLoading: !1,
payoutRequestsLoading: !1,
documentsVatLoading: !1,
earningsMarker: void 0,
needUpdateBanking: !1
})
}
}
, m = {
async fetchBalances({commit: e}, {isStripe: t=!1}={}) {
let s = {};
try {
s = await (0,
n.aE)(t)
} catch {}
return e("setBalances", {
balances: s,
isStripe: t
}),
s
},
async fetchEarnings({commit: e}, {limit: t=i.Jg, more: s=!1}={}) {
e("setEarningsLoading", !0),
s || (e("setEarnings"),
e("setEarningsMarker"));
try {
const {list: r, nextMarker: a, hasMore: i} = await (0,
n._8)({
limit: t,
marker: d.earningsMarker
});
if (Array.isArray(r))
return r.length && e("setEarnings", {
items: r,
more: s
}),
e("setEarningsMarker", a),
e("setEarningsLoading", !1),
i
} catch (r) {}
e("setEarningsLoading", !1)
},
async fetchPayoutRequests({commit: e}, {limit: t, offset: s, more: r}={}) {
let a = [];
e("setPayoutRequestsLoading", !0),
r || e("setPayoutRequests", {
items: a,
more: r
});
try {
if (s % t == 0) {
const e = undefined;
a = (await (0,
n.J3)({
limit: t,
offset: s
})).list
}
} catch (i) {}
return e("setPayoutRequests", {
items: a,
more: r
}),
e("setPayoutRequestsLoading", !1),
a
},
async fetchPayoutRequestsStripe({state: e, commit: t}, {limit: s, more: r}={}) {
let a = [];
if (t("setPayoutRequestsLoading", !0),
r || (t("setPayoutRequests", {
items: a,
more: r
}),
t("setStripeData", {
lastPayoutId: null,
hasMore: !0,
currentStep: 0
})),
e.stripeData.hasMore)
try {
const r = await (0,
n.ci)({
limit: s,
currentStep: e.stripeData.currentStep,
lastPayoutId: e.stripeData.lastPayoutId
});
a = r.list;
const {lastPayoutId: i=null, hasMore: o=!1, currentStep: c=0} = r;
t("setStripeData", {
lastPayoutId: i,
hasMore: o,
currentStep: c
})
} catch (i) {}
return t("setPayoutRequests", {
items: a,
more: r
}),
t("setPayoutRequestsLoading", !1),
a
},
async fetchPayoutStatistics({commit: e}, {start: t, end: s, cancelToken: r}={}) {
let a;
try {
const e = undefined;
a = (await (0,
n.yd)(t, s, r)).list
} catch (i) {
a = {}
}
return e("setPayoutStatistics", a),
a
},
async updateWithdrawalPeriod({commit: e}, {withdrawalPeriod: t, isStripe: s=!1}={}) {
const {success: r} = await (0,
n.nG)({
withdrawalPeriod: t,
isStripe: s
});
if (r) {
const r = s ? "withdrawalStripePeriod" : "withdrawalPeriod";
e("updateBalances", {
balances: {
[r]: t
},
isStripe: s
})
}
},
sendPayoutRequest(e, t) {
return (0,
n.ke)(t)
},
async fetchPayoutsReceive({commit: e, dispatch: t}) {
try {
const s = await (0,
n.Zr)();
if (s && "object" == typeof s) {
const {canReceiveManualPayout: r, isVerifiedReason: a, needUpdateBanking: n, needVerifyPayoutData: i} = s;
return void 0 !== r && t("users/setAuthUserData", {
canReceiveManualPayout: r
}, {
root: !0
}),
void 0 !== a && t("users/setAuthUserData", {
isVerifiedReason: a
}, {
root: !0
}),
void 0 !== n && e("setState", {
needUpdateBanking: n
}),
void 0 !== i && t("users/setAuthUserData", {
needVerifyPayoutData: i
}, {
root: !0
}),
s
}
} catch (s) {}
return {}
},
async fetchDocumentsVat({commit: e}, {limit: t, offset: s, more: r}={}) {
let a = [];
e("setDocumentsVatLoading", !0),
r || e("setDocumentsVat", {
items: a,
more: r
});
try {
if (s % t == 0) {
const e = undefined;
a = (await (0,
n.Oj)({
limit: t,
offset: s
})).list
}
} catch (i) {}
return e("setDocumentsVat", {
items: a,
more: r
}),
e("setDocumentsVatLoading", !1),
a
}
}
},
821589: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return k
},
getters: function() {
return A
},
mutations: function() {
return P
},
state: function() {
return b
}
});
var r = s(517642)
, a = s(658004)
, n = s(733853)
, i = s(845876)
, o = s(432475)
, c = s(515024)
, d = s(731698)
, l = s(962953)
, u = s(885471)
, m = s(977434);
const f = e => m.Ay.get(`${m.XV}/pages/${e}${"faq" === e ? "?help=1" : ""}`, {
"axios-retry": {
forceRetry: !0
}
}).then((e => e.data))
, h = e => m.Ay.post(`${m.XV}/pages/contacts`, e).then((e => e.data))
, p = e => m.Ay.get(`${m.XV}/pages/faq${(0,
m.Zq)({
query: e,
help: 1
})}`).then((e => e.data));
var g = s(202600)
, y = s(22504)
, S = s(632134)
, v = s(758987)
, w = s(919469);
const I = () => ({
content: {},
searchContent: null,
loading: !1,
supportTickets: {},
ticketsIds: {
all: [],
closed: [],
open: [],
solved: []
},
ticketsCount: {
all: 0,
closed: 0,
open: 0,
solved: 0
},
repliesIds: {},
ticketReplies: {}
})
, b = {
content: {},
searchContent: null,
loading: !1,
supportTickets: {},
ticketsIds: {
all: [],
closed: [],
open: [],
solved: []
},
ticketsCount: {
all: 0,
closed: 0,
open: 0,
solved: 0
},
repliesIds: {},
ticketReplies: {}
}
, A = {
getContentByName: e => t => e.content[t] || {},
supportTicketsIds: e => (t="all") => e.ticketsIds[t] && e.ticketsIds[t].length ? e.ticketsIds[t].filter((s => "all" === t || e.supportTickets[s].status === t)) : [],
supportTicket: e => t => e.supportTickets[t],
ticketReplies: e => t => e.repliesIds[t] ? e.repliesIds[t].map((t => e.ticketReplies[t])) : [],
ticketRepliesIds: e => t => e.repliesIds[t] || [],
ticketReply: e => t => e.ticketReplies[t]
}
, P = {
setContent(e, {content: t, name: s}) {
u.default.set(e.content, s, t)
},
setSearchContent(e, t) {
e.searchContent = t
},
setLoading(e, t) {
e.loading = t
},
reset(e, t) {
e.content[t] = null
},
resetSearchContent(e) {
e.searchContent = null
},
setTicketsIds(e, {ids: t=[], more: s=!1, before: r=!1, status: a="all"}) {
e.ticketsIds[a] = s ? r ? [...t, ...e.ticketsIds[a]] : [...e.ticketsIds[a], ...t] : t,
e.ticketsIds[a] = [...new Set(e.ticketsIds[a])].filter((e => !!e))
},
setTicketsCount(e, {count: t, more: s=!1, status: r="all"}) {
s ? e.ticketsCount[r] += t : e.ticketsCount[r] = t
},
setTicket(e, {id: t, ticket: s={}}) {
e.supportTickets[t] = {
...e.supportTickets[t] || {},
...s
}
},
logout(e) {
Object.assign(e, {
content: {},
searchContent: null,
loading: !1,
supportTickets: {},
ticketsIds: {
all: [],
closed: [],
open: [],
solved: []
},
ticketsCount: {
all: 0,
closed: 0,
open: 0,
solved: 0
},
repliesIds: {},
ticketReplies: {}
})
}
}
, k = {
async getContent({commit: e}, t) {
e("setLoading", !0),
e("setContent", {
content: null,
name: t
});
try {
const s = undefined;
e("setContent", {
content: await f(t),
name: t
}),
e("setLoading", !1)
} catch (s) {
e("setLoading", !1),
e("setContent", {
content: {
text: "Page not found"
},
name: t
})
}
},
async getSearchContent({commit: e}, t) {
e("setLoading", !0);
try {
const s = undefined;
e("setSearchContent", await p(t)),
e("setLoading", !1)
} catch (s) {
e("setLoading", !1)
}
},
contactUs({commit: e}, t) {
return e("setLoading", !0),
h(t).then((t => (e("setLoading", !1),
t))).catch((t => (e("setLoading", !1),
t)))
},
resetSearchContent({commit: e}) {
e("resetSearchContent")
},
async getUsersTickets({commit: e, state: t}, {more: s=!1, status: r, order: a}={}) {
s || (e("setTicketsIds", {
status: r
}),
e("setTicketsCount", {
status: r
}));
const {cancelToken: n, Cancel: i} = (0,
m.ws)("getTickets");
try {
const i = await (0,
g.GP)({
offset: t.ticketsCount[r || "all"],
status: r,
order: a,
cancelToken: n
});
if (i && i.list && i.list.length) {
const t = i.list.reduce(( (e, t) => t.lastComment ? {
...e,
[t.id]: [t.lastComment.id]
} : e), {})
, a = (0,
y.S8)(i.list, S.Aq);
e("set", {
...a,
entities: {
...a.entities,
repliesIds: t
}
}, {
root: !0
}),
e("setTicketsCount", {
status: r,
count: a.result.length,
more: s
}),
e("setTicketsIds", {
status: r,
ids: a.result,
more: s
})
}
return i && i.hasMore
} catch (o) {
if (o instanceof i)
throw o;
return !1
}
},
async getUsersTicketById({commit: e}, {id: t}) {
e("setLoading", !0);
try {
const s = await (0,
g.jB)({
id: t
});
if (s) {
const t = (0,
y.S8)([s], S.Aq)
, r = {
...s.lastComment && {
[s.id]: [s.lastComment.id]
}
};
e("set", {
...t,
entities: {
...t.entities,
repliesIds: r
}
}, {
root: !0
}),
e("setTicketsCount", {
status: s.status,
count: t.result.length,
more: !0
}),
e("setTicketsIds", {
status: s.status,
ids: t.result,
more: !0
})
}
return e("setLoading", !1),
s
} catch (s) {
return e("setLoading", !1),
s
}
},
postUsersTickets({commit: e}, t) {
return e("setLoading", !0),
(0,
g.A6)(t).then((t => {
if (e("setLoading", !1),
t && t.success) {
const s = (0,
y.S8)(t.ticket, S.Fz);
e("set", s, {
root: !0
}),
e("setTicketsCount", {
status: "open",
count: 1,
more: !0
}),
e("setTicketsIds", {
ids: [s.result],
before: !0,
more: !0,
status: "open"
})
}
return t
}
)).catch((t => (e("setLoading", !1),
t)))
},
async replyOnTicket({commit: e, state: t}, {id: s, data: r}) {
e("setLoading", !0);
try {
const a = await (0,
g.a7)(s, r)
, n = (0,
y.S8)(a, S.fr)
, i = n.result;
return e("set", {
...n,
entities: {
...n.entities,
repliesIds: {
[s]: [...new Set([...t.repliesIds[s] || [], i])]
}
}
}, {
root: !0
}),
e("setTicket", {
id: s,
ticket: {
commentCount: t.supportTickets[s].commentCount + 1
}
}),
e("setLoading", !1),
a
} catch (a) {
throw e("setLoading", !1),
a
}
},
async getTicketReplies({commit: e, state: t, getters: s}, {id: r, more: a=!1}) {
try {
const n = a ? s.ticketRepliesIds(r).length : 0
, i = await (0,
g.xq)({
id: r,
offset: n
});
if (i && i.list && i.list.length) {
const n = (0,
y.S8)(i.list, S.g$);
e("set", n, {
root: !0
});
const o = n.result
, c = s.supportTicket(r)
, d = c && c.lastComment && c.lastComment.id
, l = t.repliesIds[r]
, u = l ? l.filter((e => e !== d)) : [];
e("set", {
entities: {
repliesIds: {
[r]: [...new Set([...a ? u : [], ...o, ...d ? [d] : []])]
}
}
}, {
root: !0
}),
t.supportTickets[r].commentCount < o.length && e("setTicket", {
id: r,
ticket: {
commentCount: Math.max(o.length - 1, 0)
}
})
}
return i && i.hasMore
} catch (n) {
return !1
}
},
async solveTicket({commit: e}, t) {
try {
e("setLoading", !0);
const s = await (0,
g.Uf)(t);
e("setLoading", !1),
s && s.success && e("setTicket", {
id: t,
ticket: {
status: "solved"
}
})
} catch (s) {
e("setLoading", !1),
(0,
v.r_)(s)
}
},
async reopenTicket({commit: e, state: t, rootGetters: s}, {id: r, data: a}) {
try {
e("setLoading", !0);
const n = await (0,
g._)({
id: r,
data: a
});
if (e("setLoading", !1),
n && n.success) {
e("setTicket", {
id: r,
ticket: {
status: "open",
commentCount: t.supportTickets[r].commentCount + 1
}
});
const n = s["auth/authUser"]
, i = (0,
y.S8)({
id: (0,
w.r9)(),
body: a.message,
createdAt: new Date,
user: {
name: n.name,
avatar: n.avatar
}
}, S.fr);
e("set", i, {
root: !0
});
const o = i.result;
e("set", {
entities: {
repliesIds: {
[r]: [...new Set([...t.repliesIds[r] || [], o])]
}
}
}, {
root: !0
})
}
} catch (n) {
e("setLoading", !1),
(0,
v.r_)(n)
}
},
async checkIsCreateAllowed({commit: e, state: t, dispatch: s}, {source: r, subject: a}) {
try {
e("setLoading", !0);
const t = {
...r && {
source: r
},
...a && {
subject: a
}
}
, s = await (0,
g.vt)(t);
return e("setLoading", !1),
s
} catch (n) {
if (400 === n.status && n.data.ticket) {
const r = undefined;
return t.supportTickets[n.data.ticket.id] || await s("getUsersTicketById", {
id: n.data.ticket.id
}),
e("setLoading", !1),
n.data
}
return e("setLoading", !1),
{
success: !1
}
}
}
}
},
977600: function(e, t, s) {
"use strict";
s.r(t),
s.d(t, {
actions: function() {
return Pe
},
getters: function() {
return be
},
mutations: function() {
return Ae
},
state: function() {
return Ie
}
});
var r = s(950014)
, a = s.n(r)
, n = s(16280)
, i = s(944114)
, o = s(962953)
, c = s(974353)
, d = s.n(c)
, l = s(343522)
, u = s.n(l)
, m = s(947581)
, f = s.n(m)
, h = s(149400)
, p = s.n(h)
, g = s(683826)
, y = s.n(g)
, S = s(263601)
, v = s(977434);
const w = ({startDate: e, endDate: t, limit: s, by: r, filter: a, cancelToken: n}) => {
const i = {
startDate: e,
endDate: t,
limit: s,
by: r
};
return a && (i.filter = a),
v.Ay.get(`${v.XV}/users/me/profile/stats${(0,
v.Zq)(i)}`, {
cancelToken: n
}).then((e => e.data))
}
, I = ({offset: e, startDate: t, endDate: s, limit: r, cancelToken: a}) => {
const n = (0,
v.Zq)({
offset: e,
startDate: t,
endDate: s,
limit: r
});
return v.Ay.get(`${v.XV}/promotions${n}`, {
cancelToken: a
}).then((e => e.data))
}
, b = ({offset: e, startDate: t, endDate: s, limit: r, cancelToken: a}) => {
const n = (0,
v.Zq)({
offset: e,
startDate: t,
endDate: s,
limit: r
});
return v.Ay.get(`${v.XV}/trials/stats${n}`, {
cancelToken: a
}).then((e => e.data))
}
, A = ({startDate: e, endDate: t, cancelToken: s}) => {
const r = (0,
v.Zq)({
startDate: e,
endDate: t,
stats: 1
});
return v.Ay.get(`${v.XV}/promotions/chart${r}`, {
cancelToken: s
}).then((e => e.data))
}
, P = ({startDate: e, endDate: t, cancelToken: s}) => {
const r = (0,
v.Zq)({
startDate: e,
endDate: t,
stats: 1
});
return v.Ay.get(`${v.XV}/trials/chart${r}`, {
cancelToken: s
}).then((e => e.data))
}
, k = ({startDate: e, endDate: t, cancelToken: s, filter: r}) => {
const a = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: !0,
filter: r
});
return v.Ay.get(`${v.XV}/earnings/chart${a}`, {
cancelToken: s
}).then((e => e.data))
}
, C = ({startDate: e, endDate: t, cancelToken: s}) => {
const r = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: !0,
filter: {
total_amount: "total_amount",
subscribes_amount: "subscribes_amount",
tips_amount: "tips_amount",
tips_stream_amount: "tips_stream_amount",
post_amount: "post_amount",
messages_amount: "messages_amount",
ref_amount: "ref_amount",
stream_amount: "stream_amount"
}
});
return v.Ay.get(`${v.XV}/earnings/chart${r}`, {
cancelToken: s
}).then((e => e.data))
}
, L = ({startDate: e, endDate: t, cancelToken: s, by: r, withTotal: a}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: a,
filter: {
[r]: r,
posts: "posts"
}
});
return v.Ay.get(`${v.XV}/posts/chart${n}`, {
cancelToken: s
}).then((e => e.data))
}
, T = ({startDate: e, endDate: t, cancelToken: s, withTotal: r, by: a}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: r,
filter: {
[a]: a,
stories: "stories"
}
});
return v.Ay.get(`${v.XV}/stories/chart${n}`, {
cancelToken: s
}).then((e => e.data))
}
, M = ({startDate: e, endDate: t, cancelToken: s, withTotal: r, by: a}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: r,
filter: {
[a]: a,
duration: "duration"
}
});
return v.Ay.get(`${v.XV}/streams/chart${n}`, {
cancelToken: s
}).then((e => e.data))
}
, _ = ({startDate: e, endDate: t, cancelToken: s, fieldBy: r=null}) => {
const a = {
startDate: e,
endDate: t
};
return r && (a.by = r),
v.Ay.get(`${v.XV}/users/me/stats/overview${(0,
v.Zq)(a)}`, {
cancelToken: s
}).then((e => e.data))
}
, $ = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s
});
return v.Ay.get(`${v.XV}/users/me/stats/top/story${r}`, {
cancelToken: e
}).then((e => e.data))
}
, E = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s
});
return v.Ay.get(`${v.XV}/users/me/stats/top/stream${r}`, {
cancelToken: e
}).then((e => e.data))
}
, V = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s,
skip_users: "all"
});
return v.Ay.get(`${v.XV}/users/me/stats/top/post${r}`, {
cancelToken: e
}).then((e => e.data))
}
, D = ({cancelToken: e, startDate: t, endDate: s, by: r, offset: a}) => {
const n = (0,
v.Zq)({
startDate: t,
endDate: s,
by: r,
offset: a,
skip_users: "all"
});
return v.Ay.get(`${v.XV}/posts/top${n}`, {
cancelToken: e
}).then((e => e.data))
}
, U = e => {
if (!e)
throw new Error("streamId is not defined");
return v.Ay.get(`${v.XV}/posts/${e}/stats${(0,
v.Zq)({
withChart: !0
})}`).then((e => e.data))
}
, O = e => {
if (!e)
throw new Error("story id is not defined");
return v.Ay.get(`${v.XV}/stories/${e}/stats${(0,
v.Zq)({
withChart: !0
})}`).then((e => e.data))
}
, R = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s
});
return v.Ay.get(`${v.XV}/users/me/stats/top/fan${r}`, {
cancelToken: e
}).then((e => e.data))
}
, F = ({streamId: e, limit: t, offset: s}) => {
const r = (0,
v.Zq)({
withFinishedViewers: !0,
onlyCurrentStreamTips: !0,
limit: t,
offset: s
});
return v.Ay.get(`${v.XV}/streams/${e}/viewers${r}`).then((e => e.data))
}
, B = ({streamId: e, limit: t, offset: s}) => {
const r = (0,
v.Zq)({
withFinishedViewers: !0,
onlyCurrentStreamTips: !0,
onlyWithTips: !0,
limit: t,
offset: s
});
return v.Ay.get(`${v.XV}/streams/${e}/viewers${r}`).then((e => e.data))
}
, q = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s
});
return v.Ay.get(`${v.XV}/users/me/stats/top/message${r}`, {
cancelToken: e
}).then((e => e.data))
}
, x = ({cancelToken: e, startDate: t, endDate: s, by: r, offset: a=0}) => {
const n = (0,
v.Zq)({
startDate: t,
endDate: s,
by: r,
offset: a
});
return v.Ay.get(`${v.XV}/subscriptions/subscribers/latest${n}`, {
cancelToken: e
}).then((e => e.data))
}
, j = ({cancelToken: e, startDate: t, endDate: s, by: r, offset: a=0}) => {
const n = (0,
v.Zq)({
startDate: t,
endDate: s,
by: r,
offset: a
});
return v.Ay.get(`${v.XV}/subscriptions/subscribers/top${n}`, {
cancelToken: e
}).then((e => e.data))
}
, N = ({cancelToken: e, startDate: t, endDate: s, by: r, offset: a=0}) => {
const n = (0,
v.Zq)({
startDate: t,
endDate: s,
by: r,
offset: a
});
return v.Ay.get(`${v.XV}/stories/top${n}`, {
cancelToken: e
}).then((e => e.data))
}
, X = ({cancelToken: e, startDate: t, endDate: s, by: r}) => {
const a = (0,
v.Zq)({
startDate: t,
endDate: s,
by: r
});
return v.Ay.get(`${v.XV}/subscriptions/subscribers/chart${a}`, {
cancelToken: e
}).then((e => e.data))
}
, H = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s,
withTotal: !0,
withChart: !0,
filter: {
chartAmount: "chartAmount",
chartCount: "chartCount"
}
});
return v.Ay.get(`${v.XV}/payouts/chart${r}`, {
cancelToken: e
}).then((e => e.data))
}
, G = ({cancelToken: e, startDate: t, endDate: s, limit: r=10, offset: a=0, by: n="purchases"}) => {
const i = (0,
v.Zq)({
startDate: t,
endDate: s,
limit: r,
offset: a,
by: n
});
return v.Ay.get(`${v.XV}/streams/top${i}`, {
cancelToken: e
}).then((e => e.data))
}
, Z = ({startDate: e, endDate: t, cancelToken: s, withTotal: r, by: a}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: r,
filter: {
[a]: a,
messages: "messages"
}
});
return v.Ay.get(`${v.XV}/messages/queue/chart${n}`, {
cancelToken: s
}).then((e => e.data))
}
, Q = ({startDate: e, cancelToken: t, marker: s=null, type: r, tipsSource: a}) => {
const n = (0,
v.Zq)({
startDate: e,
marker: s,
type: r,
tipsSource: a
});
return v.Ay.get(`${v.XV}/payouts/transactions${n}`, {
cancelToken: t
}).then((e => e.data))
}
, J = ({startDate: e, endDate: t, cancelToken: s, offset: r=0, marker: a=null}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
offset: r,
marker: a
});
return v.Ay.get(`${v.XV}/payouts/requests${n}`, {
cancelToken: s
}).then((e => e.data))
}
, W = ({startDate: e, endDate: t, cancelToken: s, offset: r=0, marker: a=null}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
offset: r,
marker: a
});
return v.Ay.get(`${v.XV}/payouts/requests/referral${n}`, {
cancelToken: s
}).then((e => e.data))
}
, Y = ({startDate: e, endDate: t, cancelToken: s, withTotal: r=1}) => {
const a = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: r,
withChart: !0,
filter: {
chartAmount: "chartAmount",
chartCount: "chartCount"
}
});
return v.Ay.get(`${v.XV}/payouts/referrals/chart${a}`, {
cancelToken: s
}).then((e => e.data))
}
, z = ({startDate: e, endDate: t, cancelToken: s, withTotal: r=!0}) => {
const a = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: r,
withChart: !0,
filter: {
chartAmount: "chartAmount",
chartCount: "chartCount"
}
});
return v.Ay.get(`${v.XV}/payouts/chargebacks/chart${a}`, {
cancelToken: s
}).then((e => e.data))
}
, K = ({startDate: e, endDate: t, cancelToken: s, withTotal: r=!0}) => {
const a = (0,
v.Zq)({
startDate: e,
endDate: t,
withTotal: r,
withChart: !0,
filter: {
chartAmount: "chartAmount",
chartCount: "chartCount"
}
});
return v.Ay.get(`${v.XV}/payouts/vat/chart${a}`, {
cancelToken: s
}).then((e => e.data))
}
, ee = ({storyId: e, limit: t, offset: s}) => {
const r = (0,
v.Zq)({
onlyWithTips: !0,
limit: t,
offset: s
});
return v.Ay.get(`${v.XV}/stories/${e}/viewers${r}`).then((e => e.data))
}
, te = ({storyId: e, limit: t, offset: s}) => v.Ay.get(`${v.XV}/stories/${e}/viewers${(0,
v.Zq)({
limit: t,
offset: s
})}`).then((e => e.data))
, se = ({startDate: e, endDate: t, cancelToken: s, offset: r=0, marker: a=null, onlyPerformers: n=0}) => {
const i = (0,
v.Zq)({
startDate: e,
endDate: t,
offset: r,
marker: a,
onlyPerformers: n
});
return v.Ay.get(`${v.XV}/users/me/referrals${i}`, {
cancelToken: s
}).then((e => e.data))
}
, re = ({id: e, kind: t, limit: s, offset: r, format: a="infinite"}) => {
const n = (0,
v.Zq)({
limit: s,
offset: r,
format: a,
filter: "trial" === t ? {
trial_id: e
} : {
promoId: e
}
});
return v.Ay.get(`${v.XV}/subscriptions/subscribers${n}`).then((e => e.data))
}
, ae = ({limit: e, lastPayoutId: t, cancelToken: s}) => {
const r = (0,
v.Zq)({
limit: e,
lastPayoutId: t
});
return v.Ay.get(`${v.XV}/payouts/requests/stripe${r}`, {
cancelToken: s
}).then((e => e.data))
}
, ne = ({cancelToken: e}) => {
const t = (0,
v.Zq)({
monthlyTotal: 1
});
return v.Ay.get(`${v.XV}/earnings/chart${t}`, {
cancelToken: e
}).then((e => e.data))
}
, ie = ({cancelToken: e, startDate: t, endDate: s}) => {
const r = (0,
v.Zq)({
startDate: t,
endDate: s
});
return v.Ay.get(`${v.XV}/streaks${r}`, {
cancelToken: e
}).then((e => e.data))
}
, oe = ({cancelToken: e}) => v.Ay.get(`${v.XV}/streaks/top`, {
cancelToken: e
}).then((e => e.data))
, ce = ({cancelToken: e}) => v.Ay.get(`${v.XV}/users/me/stats/today-activity`, {
cancelToken: e
}).then((e => e.data))
, de = ({startDate: e, endDate: t, limit: s, offset: r, cancelToken: a}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
limit: s,
offset: r
});
return v.Ay.get(`${v.XV}/users/me/stats/messages/bought${n}`, {
cancelToken: a
}).then((e => e.data))
}
, le = ({startDate: e, endDate: t, limit: s, fromId: r=null, cancelToken: a}) => {
const n = (0,
v.Zq)({
startDate: e,
endDate: t,
limit: s,
fromId: r
});
return v.Ay.get(`${v.XV}/users/me/stats/messages${n}`, {
cancelToken: a
}).then((e => e.data))
}
;
var ue = s(874727)
, me = s(565144)
, fe = s(202600)
, he = s(22504)
, pe = s(632134)
, ge = s(758987)
, ye = s(463670);
d().extend(u()),
d().extend(y()),
d().extend(f()),
d().extend(p());
const Se = e => ({
filter: {
[`${e}_count`]: `${e}_count`,
[`${e}_amount`]: `${e}_amount`
}
})
, ve = () => ({
overviewBlock: {
charts: {
data: {},
loading: !1,
monthlyTotal: [],
monthlyTotalLoading: !1
},
loading: !1,
data: {},
post: {},
messages: {},
streaming: {},
visitors: {},
topPost: {
loading: !1,
data: {},
postStat: {
data: null,
loading: !1
}
},
topMessage: {
loading: !1,
data: {}
},
topStream: {
loading: !1,
data: {},
streamStat: {
data: null,
loading: !1
}
},
topStory: {
loading: !1,
data: {}
},
topFan: {
loading: !1,
data: {},
dataFull: null
},
statistic: {
loading: !1,
data: null,
byDateLoading: !1,
dataByDate: null
},
streaks: {
items: {},
loading: !1,
top: null,
topSummary: {
data: null,
loading: !1
},
today: {}
}
},
statementsBlock: {
sidebar: {
charts: {
data: null,
loading: !1,
allData: null,
allLoading: !1
}
},
earnings: {
data: null,
loading: !1,
marker: null,
hasMore: !1
},
payoutRequests: {
data: null,
delta: 0,
total: 0,
loading: !1,
marker: null,
hasMore: !1,
chart: null,
chartLoading: !1
},
payoutRequestsStripe: {
data: null,
lastPayoutId: null,
hasMore: !1,
loading: !1
},
disputes: {
data: null,
loading: !1,
marker: null,
hasMore: !1,
delta: 0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment