hive-react-kit 1.12.19 → 1.12.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +33 -33
- package/dist/index.esm.js +419 -419
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1191,8 +1191,8 @@ class oO {
|
|
|
1191
1191
|
async function OC(r, o) {
|
|
1192
1192
|
if (!r) throw new Error("username is required");
|
|
1193
1193
|
const [l, u] = await Promise.all([
|
|
1194
|
-
|
|
1195
|
-
|
|
1194
|
+
Or.getAccounts([r], o),
|
|
1195
|
+
Or.getDynamicGlobalProperties(o)
|
|
1196
1196
|
]);
|
|
1197
1197
|
if (!l || !l.length)
|
|
1198
1198
|
throw new Error(`Account not found: ${r}`);
|
|
@@ -1210,7 +1210,7 @@ async function OC(r, o) {
|
|
|
1210
1210
|
ke: x
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
const
|
|
1213
|
+
const Or = new oO();
|
|
1214
1214
|
function lO(r) {
|
|
1215
1215
|
const o = /Z|[+-]\d{2}:?\d{2}$/.test(r) ? r : `${r}Z`, l = new Date(o).getTime() - Date.now();
|
|
1216
1216
|
if (!Number.isFinite(l) || l <= 0) return null;
|
|
@@ -1224,7 +1224,7 @@ function o6({ onClose: r, details: o, avatarUrlFn: l, hiveIconUrl: u }) {
|
|
|
1224
1224
|
const X = new AbortController();
|
|
1225
1225
|
return (async () => {
|
|
1226
1226
|
try {
|
|
1227
|
-
const Q =
|
|
1227
|
+
const Q = Or.HIVE_API_URL ?? "https://api.hive.blog", ie = await fetch(Q, {
|
|
1228
1228
|
method: "POST",
|
|
1229
1229
|
headers: { "Content-Type": "application/json" },
|
|
1230
1230
|
body: JSON.stringify({
|
|
@@ -3341,7 +3341,7 @@ function J3() {
|
|
|
3341
3341
|
return be ? "Symbol(src)_1." + be : "";
|
|
3342
3342
|
})(), Dt = Ke.toString, ht = RegExp(
|
|
3343
3343
|
"^" + ft.call(Be).replace(Oe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3344
|
-
), Xt = ue ? je.Buffer : void 0, tr = je.Symbol,
|
|
3344
|
+
), Xt = ue ? je.Buffer : void 0, tr = je.Symbol, Rr = je.Uint8Array, _a = Ke.propertyIsEnumerable, ea = At.splice, ta = tr ? tr.toStringTag : void 0, pa = Object.getOwnPropertySymbols, ne = Xt ? Xt.isBuffer : void 0, oe = $r(Object.keys, Object), we = Za(je, "DataView"), $e = Za(je, "Map"), Et = Za(je, "Promise"), or = Za(je, "Set"), vt = Za(je, "WeakMap"), Ct = Za(Object, "create"), ra = _t(we), va = _t($e), ot = _t(Et), Nr = _t(or), Wt = _t(vt), fa = tr ? tr.prototype : void 0, nr = fa ? fa.valueOf : void 0;
|
|
3345
3345
|
function Mt(be) {
|
|
3346
3346
|
var De = -1, ut = be == null ? 0 : be.length;
|
|
3347
3347
|
for (this.clear(); ++De < ut; ) {
|
|
@@ -3364,7 +3364,7 @@ function J3() {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
return Be.call(De, be) ? De[be] : void 0;
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3367
|
+
function Tr(be) {
|
|
3368
3368
|
var De = this.__data__;
|
|
3369
3369
|
return Ct ? De[be] !== void 0 : Be.call(De, be);
|
|
3370
3370
|
}
|
|
@@ -3372,7 +3372,7 @@ function J3() {
|
|
|
3372
3372
|
var ut = this.__data__;
|
|
3373
3373
|
return this.size += this.has(be) ? 0 : 1, ut[be] = Ct && De === void 0 ? u : De, this;
|
|
3374
3374
|
}
|
|
3375
|
-
Mt.prototype.clear = yr, Mt.prototype.delete = ir, Mt.prototype.get = mr, Mt.prototype.has =
|
|
3375
|
+
Mt.prototype.clear = yr, Mt.prototype.delete = ir, Mt.prototype.get = mr, Mt.prototype.has = Tr, Mt.prototype.set = Ir;
|
|
3376
3376
|
function xa(be) {
|
|
3377
3377
|
var De = -1, ut = be == null ? 0 : be.length;
|
|
3378
3378
|
for (this.clear(); ++De < ut; ) {
|
|
@@ -3577,7 +3577,7 @@ function J3() {
|
|
|
3577
3577
|
return !1;
|
|
3578
3578
|
be = be.buffer, De = De.buffer;
|
|
3579
3579
|
case Z:
|
|
3580
|
-
return !(be.byteLength != De.byteLength || !Xr(new
|
|
3580
|
+
return !(be.byteLength != De.byteLength || !Xr(new Rr(be), new Rr(De)));
|
|
3581
3581
|
case b:
|
|
3582
3582
|
case _:
|
|
3583
3583
|
case O:
|
|
@@ -8454,7 +8454,7 @@ function YC() {
|
|
|
8454
8454
|
}
|
|
8455
8455
|
return !0;
|
|
8456
8456
|
}
|
|
8457
|
-
function
|
|
8457
|
+
function Rr(ne, oe, we) {
|
|
8458
8458
|
ne.push(" ", oe, '="', we.replace(/[<>&"\t\n\r]/g, Oe), '"');
|
|
8459
8459
|
}
|
|
8460
8460
|
function _a(ne, oe, we, $e, Et) {
|
|
@@ -8503,13 +8503,13 @@ function YC() {
|
|
|
8503
8503
|
var nr = or.item(fa);
|
|
8504
8504
|
if (tr(nr, we, Et)) {
|
|
8505
8505
|
var Mt = nr.prefix || "", yr = nr.namespaceURI;
|
|
8506
|
-
|
|
8506
|
+
Rr(oe, Mt ? "xmlns:" + Mt : "xmlns", yr), Et.push({ prefix: Mt, namespace: yr });
|
|
8507
8507
|
}
|
|
8508
8508
|
_a(nr, oe, we, $e, Et);
|
|
8509
8509
|
}
|
|
8510
8510
|
if (Ct === ra && tr(ne, we, Et)) {
|
|
8511
8511
|
var Mt = ne.prefix || "", yr = ne.namespaceURI;
|
|
8512
|
-
|
|
8512
|
+
Rr(oe, Mt ? "xmlns:" + Mt : "xmlns", yr), Et.push({ prefix: Mt, namespace: yr });
|
|
8513
8513
|
}
|
|
8514
8514
|
if (ir || we && !/^(?:meta|link|img|br|hr|input)$/i.test(Ct)) {
|
|
8515
8515
|
if (oe.push(">"), we && /^script$/i.test(Ct))
|
|
@@ -8528,7 +8528,7 @@ function YC() {
|
|
|
8528
8528
|
_a(ir, oe, we, $e, Et.slice()), ir = ir.nextSibling;
|
|
8529
8529
|
return;
|
|
8530
8530
|
case x:
|
|
8531
|
-
return
|
|
8531
|
+
return Rr(oe, ne.name, ne.value);
|
|
8532
8532
|
case E:
|
|
8533
8533
|
return oe.push(
|
|
8534
8534
|
ne.data.replace(/[<&>]/g, Oe)
|
|
@@ -8538,11 +8538,11 @@ function YC() {
|
|
|
8538
8538
|
case B:
|
|
8539
8539
|
return oe.push("<!--", ne.data, "-->");
|
|
8540
8540
|
case j:
|
|
8541
|
-
var mr = ne.publicId,
|
|
8541
|
+
var mr = ne.publicId, Tr = ne.systemId;
|
|
8542
8542
|
if (oe.push("<!DOCTYPE ", ne.name), mr)
|
|
8543
|
-
oe.push(" PUBLIC ", mr),
|
|
8544
|
-
else if (
|
|
8545
|
-
oe.push(" SYSTEM ",
|
|
8543
|
+
oe.push(" PUBLIC ", mr), Tr && Tr != "." && oe.push(" ", Tr), oe.push(">");
|
|
8544
|
+
else if (Tr && Tr != ".")
|
|
8545
|
+
oe.push(" SYSTEM ", Tr, ">");
|
|
8546
8546
|
else {
|
|
8547
8547
|
var Ir = ne.internalSubset;
|
|
8548
8548
|
Ir && oe.push(" [", Ir, "]"), oe.push(">");
|
|
@@ -11547,7 +11547,7 @@ function XC() {
|
|
|
11547
11547
|
}
|
|
11548
11548
|
var me, ue, He, ye = Array.prototype, Ze = Function.prototype, Ie = Object.prototype, Je = ge["__core-js_shared__"], st = Ze.toString, Ft = Ie.hasOwnProperty, Lr = (me = /[^.]+$/.exec(Je && Je.keys && Je.keys.IE_PROTO || "")) ? "Symbol(src)_1." + me : "", Tt = Ie.toString, Ot = RegExp("^" + st.call(Ft).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), hr = pe ? ge.Buffer : void 0, $r = ge.Symbol, fr = ge.Uint8Array, At = Ie.propertyIsEnumerable, ke = ye.splice, Ke = $r ? $r.toStringTag : void 0, bt = Object.getOwnPropertySymbols, ft = hr ? hr.isBuffer : void 0, Be = (ue = Object.keys, He = Object, function(Re) {
|
|
11549
11549
|
return ue(He(Re));
|
|
11550
|
-
}), We = mr(ge, "DataView"), Dt = mr(ge, "Map"), ht = mr(ge, "Promise"), Xt = mr(ge, "Set"), tr = mr(ge, "WeakMap"),
|
|
11550
|
+
}), We = mr(ge, "DataView"), Dt = mr(ge, "Map"), ht = mr(ge, "Promise"), Xt = mr(ge, "Set"), tr = mr(ge, "WeakMap"), Rr = mr(Object, "create"), _a = gn(We), ea = gn(Dt), ta = gn(ht), pa = gn(Xt), ne = gn(tr), oe = $r ? $r.prototype : void 0, we = oe ? oe.valueOf : void 0;
|
|
11551
11551
|
function $e(Re) {
|
|
11552
11552
|
var Qe = -1, Rt = Re == null ? 0 : Re.length;
|
|
11553
11553
|
for (this.clear(); ++Qe < Rt; ) {
|
|
@@ -11726,7 +11726,7 @@ function XC() {
|
|
|
11726
11726
|
for (var dr = -1, Fr = Sr.length, lr = pr.length; ++dr < Fr; ) pr[lr + dr] = Sr[dr];
|
|
11727
11727
|
return pr;
|
|
11728
11728
|
})(Qr, Lt(Qe));
|
|
11729
|
-
})(Re, vr,
|
|
11729
|
+
})(Re, vr, Tr);
|
|
11730
11730
|
}
|
|
11731
11731
|
function ir(Re, Qe) {
|
|
11732
11732
|
var Rt, Lt, Qr = Re.__data__;
|
|
@@ -11739,23 +11739,23 @@ function XC() {
|
|
|
11739
11739
|
return fa(Rt) ? Rt : void 0;
|
|
11740
11740
|
}
|
|
11741
11741
|
$e.prototype.clear = function() {
|
|
11742
|
-
this.__data__ =
|
|
11742
|
+
this.__data__ = Rr ? Rr(null) : {}, this.size = 0;
|
|
11743
11743
|
}, $e.prototype.delete = function(Re) {
|
|
11744
11744
|
var Qe = this.has(Re) && delete this.__data__[Re];
|
|
11745
11745
|
return this.size -= Qe ? 1 : 0, Qe;
|
|
11746
11746
|
}, $e.prototype.get = function(Re) {
|
|
11747
11747
|
var Qe = this.__data__;
|
|
11748
|
-
if (
|
|
11748
|
+
if (Rr) {
|
|
11749
11749
|
var Rt = Qe[Re];
|
|
11750
11750
|
return Rt === g ? void 0 : Rt;
|
|
11751
11751
|
}
|
|
11752
11752
|
return Ft.call(Qe, Re) ? Qe[Re] : void 0;
|
|
11753
11753
|
}, $e.prototype.has = function(Re) {
|
|
11754
11754
|
var Qe = this.__data__;
|
|
11755
|
-
return
|
|
11755
|
+
return Rr ? Qe[Re] !== void 0 : Ft.call(Qe, Re);
|
|
11756
11756
|
}, $e.prototype.set = function(Re, Qe) {
|
|
11757
11757
|
var Rt = this.__data__;
|
|
11758
|
-
return this.size += this.has(Re) ? 0 : 1, Rt[Re] =
|
|
11758
|
+
return this.size += this.has(Re) ? 0 : 1, Rt[Re] = Rr && Qe === void 0 ? g : Qe, this;
|
|
11759
11759
|
}, Et.prototype.clear = function() {
|
|
11760
11760
|
this.__data__ = [], this.size = 0;
|
|
11761
11761
|
}, Et.prototype.delete = function(Re) {
|
|
@@ -11803,7 +11803,7 @@ function XC() {
|
|
|
11803
11803
|
}
|
|
11804
11804
|
return Rt.set(Re, Qe), this.size = Rt.size, this;
|
|
11805
11805
|
};
|
|
11806
|
-
var
|
|
11806
|
+
var Tr = bt ? function(Re) {
|
|
11807
11807
|
return Re == null ? [] : (Re = Object(Re), (function(Qe, Rt) {
|
|
11808
11808
|
for (var Lt = -1, Qr = Qe == null ? 0 : Qe.length, pr = 0, Sr = []; ++Lt < Qr; ) {
|
|
11809
11809
|
var dr = Qe[Lt];
|
|
@@ -26596,11 +26596,11 @@ function bT() {
|
|
|
26596
26596
|
const tr = "dompurify" + (ht ? "#" + ht : "");
|
|
26597
26597
|
try {
|
|
26598
26598
|
return We.createPolicy(tr, {
|
|
26599
|
-
createHTML(
|
|
26600
|
-
return
|
|
26599
|
+
createHTML(Rr) {
|
|
26600
|
+
return Rr;
|
|
26601
26601
|
},
|
|
26602
|
-
createScriptURL(
|
|
26603
|
-
return
|
|
26602
|
+
createScriptURL(Rr) {
|
|
26603
|
+
return Rr;
|
|
26604
26604
|
}
|
|
26605
26605
|
});
|
|
26606
26606
|
} catch {
|
|
@@ -26629,7 +26629,7 @@ function bT() {
|
|
|
26629
26629
|
} = Be;
|
|
26630
26630
|
const ht = Dt, Xt = ht.currentScript, {
|
|
26631
26631
|
DocumentFragment: tr,
|
|
26632
|
-
HTMLTemplateElement:
|
|
26632
|
+
HTMLTemplateElement: Rr,
|
|
26633
26633
|
Node: _a,
|
|
26634
26634
|
Element: ea,
|
|
26635
26635
|
NodeFilter: ta,
|
|
@@ -26638,7 +26638,7 @@ function bT() {
|
|
|
26638
26638
|
DOMParser: oe,
|
|
26639
26639
|
trustedTypes: we
|
|
26640
26640
|
} = Be, $e = ea.prototype, Et = ge($e, "cloneNode"), or = ge($e, "remove"), vt = ge($e, "nextSibling"), Ct = ge($e, "childNodes"), ra = ge($e, "parentNode");
|
|
26641
|
-
if (typeof
|
|
26641
|
+
if (typeof Rr == "function") {
|
|
26642
26642
|
const br = Dt.createElement("template");
|
|
26643
26643
|
br.content && br.content.ownerDocument && (Dt = br.content.ownerDocument);
|
|
26644
26644
|
}
|
|
@@ -26656,7 +26656,7 @@ function bT() {
|
|
|
26656
26656
|
const {
|
|
26657
26657
|
MUSTACHE_EXPR: ir,
|
|
26658
26658
|
ERB_EXPR: mr,
|
|
26659
|
-
TMPLIT_EXPR:
|
|
26659
|
+
TMPLIT_EXPR: Tr,
|
|
26660
26660
|
DATA_ATTR: Ir,
|
|
26661
26661
|
ARIA_ATTR: xa,
|
|
26662
26662
|
IS_SCRIPT_OR_DATA: gn,
|
|
@@ -26843,7 +26843,7 @@ function bT() {
|
|
|
26843
26843
|
}
|
|
26844
26844
|
return ya(Se), !0;
|
|
26845
26845
|
}
|
|
26846
|
-
return Se instanceof ea && !_n(Se) || (sr === "noscript" || sr === "noembed" || sr === "noframes") && J(/<\/no(script|embed|frames)/i, Se.innerHTML) ? (ya(Se), !0) : (pr && Se.nodeType === fr.text && (yt = Se.textContent, b([ir, mr,
|
|
26846
|
+
return Se instanceof ea && !_n(Se) || (sr === "noscript" || sr === "noembed" || sr === "noframes") && J(/<\/no(script|embed|frames)/i, Se.innerHTML) ? (ya(Se), !0) : (pr && Se.nodeType === fr.text && (yt = Se.textContent, b([ir, mr, Tr], (la) => {
|
|
26847
26847
|
yt = H(yt, la, " ");
|
|
26848
26848
|
}), Se.textContent !== yt && (E(We.removed, {
|
|
26849
26849
|
element: Se.cloneNode()
|
|
@@ -26919,7 +26919,7 @@ function bT() {
|
|
|
26919
26919
|
dn(Ua, Se);
|
|
26920
26920
|
continue;
|
|
26921
26921
|
}
|
|
26922
|
-
pr && b([ir, mr,
|
|
26922
|
+
pr && b([ir, mr, Tr], (Ti) => {
|
|
26923
26923
|
Na = H(Na, Ti, " ");
|
|
26924
26924
|
});
|
|
26925
26925
|
const Ii = kt(Se.nodeName);
|
|
@@ -26985,7 +26985,7 @@ function bT() {
|
|
|
26985
26985
|
if (pr) {
|
|
26986
26986
|
yt.normalize();
|
|
26987
26987
|
let Ka = yt.innerHTML;
|
|
26988
|
-
b([ir, mr,
|
|
26988
|
+
b([ir, mr, Tr], (Oa) => {
|
|
26989
26989
|
Ka = H(Ka, Oa, " ");
|
|
26990
26990
|
}), yt.innerHTML = Ka;
|
|
26991
26991
|
}
|
|
@@ -26998,7 +26998,7 @@ function bT() {
|
|
|
26998
26998
|
}
|
|
26999
26999
|
let fn = dr ? yt.outerHTML : yt.innerHTML;
|
|
27000
27000
|
return dr && Kt["!doctype"] && yt.ownerDocument && yt.ownerDocument.doctype && yt.ownerDocument.doctype.name && J(Ot, yt.ownerDocument.doctype.name) && (fn = "<!DOCTYPE " + yt.ownerDocument.doctype.name + `>
|
|
27001
|
-
` + fn), pr && b([ir, mr,
|
|
27001
|
+
` + fn), pr && b([ir, mr, Tr], (Ka) => {
|
|
27002
27002
|
fn = H(fn, Ka, " ");
|
|
27003
27003
|
}), va && ka ? va.createHTML(fn) : fn;
|
|
27004
27004
|
}, We.setConfig = function() {
|
|
@@ -27546,23 +27546,23 @@ const o9 = ({
|
|
|
27546
27546
|
awaitingWalletApproval: Xt = !1,
|
|
27547
27547
|
mentionSeedAccounts: tr
|
|
27548
27548
|
}) => {
|
|
27549
|
-
const [
|
|
27549
|
+
const [Rr, _a] = W(""), ea = fr !== void 0 ? fr : Rr, ta = (Te) => {
|
|
27550
27550
|
At ? At(Te) : _a(Te);
|
|
27551
|
-
}, [pa, ne] = W(!1), oe = ke || pa, [we, $e] = W(!1), [Et, or] = W(!1), [vt, Ct] = W(!1), [ra, va] = W(!1), [ot, Nr] = W([]), [Wt, fa] = W(!1), [nr, Mt] = W(!1), [yr, ir] = W(!1), [mr,
|
|
27552
|
-
const Te = [], Gt = /* @__PURE__ */ new Set(),
|
|
27551
|
+
}, [pa, ne] = W(!1), oe = ke || pa, [we, $e] = W(!1), [Et, or] = W(!1), [vt, Ct] = W(!1), [ra, va] = W(!1), [ot, Nr] = W([]), [Wt, fa] = W(!1), [nr, Mt] = W(!1), [yr, ir] = W(!1), [mr, Tr] = W($r), [Ir, xa] = W(null), [gn, On] = W(0), [$n, gt] = W(null), [Kt, Zr] = W(null), [xr, La] = W(null), [zr, Yr] = W([]), [vr, Re] = W(!1), [Qe, Rt] = W(!1), [Lt, Qr] = W(!1), pr = $t(null), [Sr, dr] = W(null), [Fr, lr] = W(!1), gr = $t(null), jr = $t(0), ka = qt(() => {
|
|
27552
|
+
const Te = [], Gt = /* @__PURE__ */ new Set(), Cr = (Jr) => {
|
|
27553
27553
|
const $a = (Jr || "").toLowerCase().trim();
|
|
27554
27554
|
!$a || Gt.has($a) || (Gt.add($a), Te.push($a));
|
|
27555
27555
|
};
|
|
27556
|
-
|
|
27557
|
-
for (const Jr of tr ?? [])
|
|
27556
|
+
Cr(d);
|
|
27557
|
+
for (const Jr of tr ?? []) Cr(Jr);
|
|
27558
27558
|
return Te;
|
|
27559
27559
|
}, [d, tr]), zt = i9(ea, { seedAccounts: ka }), Hr = qt(
|
|
27560
27560
|
() => (ve ?? []).map((Te) => Te.trim().toLowerCase()).filter(Boolean),
|
|
27561
27561
|
[ve]
|
|
27562
27562
|
), [sa, en] = W(() => {
|
|
27563
27563
|
const Te = /* @__PURE__ */ new Set(), Gt = [];
|
|
27564
|
-
for (const
|
|
27565
|
-
const Jr = String(
|
|
27564
|
+
for (const Cr of ge ?? []) {
|
|
27565
|
+
const Jr = String(Cr).trim().toLowerCase().replace(/^#+/, "").replace(/\s+/g, "-");
|
|
27566
27566
|
!Jr || Te.has(Jr) || Hr.includes(Jr) || (Te.add(Jr), Gt.push(Jr));
|
|
27567
27567
|
}
|
|
27568
27568
|
return Gt;
|
|
@@ -27575,14 +27575,14 @@ const o9 = ({
|
|
|
27575
27575
|
const ha = It(
|
|
27576
27576
|
(Te) => {
|
|
27577
27577
|
const Gt = Te.trim().toLowerCase().replace(/^#+/, "").replace(/\s+/g, "-");
|
|
27578
|
-
Gt && (Ea.includes(Gt) || Ea.length >= Ae || en((
|
|
27578
|
+
Gt && (Ea.includes(Gt) || Ea.length >= Ae || en((Cr) => [...Cr, Gt]));
|
|
27579
27579
|
},
|
|
27580
27580
|
[Ea, Ae]
|
|
27581
27581
|
), Za = It((Te) => {
|
|
27582
|
-
en((Gt) => Gt.filter((
|
|
27582
|
+
en((Gt) => Gt.filter((Cr) => Cr !== Te));
|
|
27583
27583
|
}, []), bn = (Te) => {
|
|
27584
|
-
const Gt = Je > 0 ? Je : 0.25,
|
|
27585
|
-
return Math.max(Gt, Math.min(100, parseFloat(
|
|
27584
|
+
const Gt = Je > 0 ? Je : 0.25, Cr = Math.round(Te / Gt) * Gt;
|
|
27585
|
+
return Math.max(Gt, Math.min(100, parseFloat(Cr.toFixed(4))));
|
|
27586
27586
|
}, jn = Je >= 1 ? 0 : Je >= 0.5 ? 1 : 2, Ca = (Te) => Number.isInteger(Te) ? String(Te) : Te.toFixed(jn), [Pa, un] = W(Ze), [cn, Cn] = W(bn(Ie));
|
|
27587
27587
|
qe(() => {
|
|
27588
27588
|
Ft?.(Pa, cn);
|
|
@@ -27605,11 +27605,11 @@ const o9 = ({
|
|
|
27605
27605
|
const Te = {};
|
|
27606
27606
|
kt && (Te[n0] = "10% to threespeakfund is required for video posts"), Te["hivesuite.app"] = "1% to hivesuite.app is required";
|
|
27607
27607
|
for (const Gt of ot) {
|
|
27608
|
-
let
|
|
27608
|
+
let Cr = "decentmemeshold";
|
|
27609
27609
|
if (Gt.template.submittedBy?.trim())
|
|
27610
|
-
|
|
27610
|
+
Cr = Gt.template.submittedBy.trim();
|
|
27611
27611
|
else if (Gt.template.hiveAccount?.trim())
|
|
27612
|
-
|
|
27612
|
+
Cr = Gt.template.hiveAccount.trim();
|
|
27613
27613
|
else {
|
|
27614
27614
|
const ja = Gt.beneficiaries?.comment || [], Li = ja.find(
|
|
27615
27615
|
(si) => si && typeof si.role == "string" && si.role.toLowerCase().includes("submitter")
|
|
@@ -27619,18 +27619,18 @@ const o9 = ({
|
|
|
27619
27619
|
(si) => si && typeof si.role == "string" && si.role.toLowerCase().includes("holding")
|
|
27620
27620
|
);
|
|
27621
27621
|
if (Li?.account?.trim())
|
|
27622
|
-
|
|
27622
|
+
Cr = Li.account.trim();
|
|
27623
27623
|
else if (fs?.account?.trim())
|
|
27624
|
-
|
|
27624
|
+
Cr = fs.account.trim();
|
|
27625
27625
|
else if (on?.account?.trim())
|
|
27626
|
-
|
|
27626
|
+
Cr = on.account.trim();
|
|
27627
27627
|
else {
|
|
27628
27628
|
const Vs = Gt.beneficiaries.comment.find((ti) => ti && ti.role !== "frontend" && ti.account);
|
|
27629
|
-
Vs && (
|
|
27629
|
+
Vs && (Cr = Vs.account.trim());
|
|
27630
27630
|
}
|
|
27631
27631
|
}
|
|
27632
27632
|
const Jr = Gt.template.name ? `template "${Gt.template.name}"` : "a DecentMemes meme";
|
|
27633
|
-
Te[
|
|
27633
|
+
Te[Cr] = `Auto-attached by ${Jr} (creator/submitter share) — required by the DecentMemes integration`;
|
|
27634
27634
|
const $a = Gt.beneficiaries.comment;
|
|
27635
27635
|
for (const ja of $a)
|
|
27636
27636
|
ja && ja.role === "frontend" && ja.account && (Te[ja.account] = `Auto-attached by ${Jr} (frontend share) — required by the DecentMemes integration`);
|
|
@@ -27654,8 +27654,8 @@ const o9 = ({
|
|
|
27654
27654
|
}, [ga.map((Te) => `${Te.account}:${Te.weight}`).join("|")]);
|
|
27655
27655
|
const ut = $t(null), er = $t(null), [wr, Xr] = W(null), Qa = 224, Wr = 8, Ma = (Te, Gt) => {
|
|
27656
27656
|
if (!Te) return null;
|
|
27657
|
-
const
|
|
27658
|
-
return { top:
|
|
27657
|
+
const Cr = Te.getBoundingClientRect(), Jr = window.innerWidth, $a = Math.min(Gt, Math.max(0, Jr - Wr * 2)), ja = Math.max(Wr, Math.round((Jr - $a) / 2));
|
|
27658
|
+
return { top: Cr.bottom + 4, left: ja, width: $a };
|
|
27659
27659
|
}, Gr = It(() => {
|
|
27660
27660
|
pt(!1), Ga((Te) => !Te);
|
|
27661
27661
|
}, []), kn = It(() => {
|
|
@@ -27666,8 +27666,8 @@ const o9 = ({
|
|
|
27666
27666
|
}, []);
|
|
27667
27667
|
qe(() => {
|
|
27668
27668
|
if (!Bt) return;
|
|
27669
|
-
const Te = () => pt(!1), Gt = (
|
|
27670
|
-
const Jr =
|
|
27669
|
+
const Te = () => pt(!1), Gt = (Cr) => {
|
|
27670
|
+
const Jr = Cr.target;
|
|
27671
27671
|
ut.current?.contains(Jr) || er.current?.contains(Jr) || Te();
|
|
27672
27672
|
};
|
|
27673
27673
|
return document.addEventListener("mousedown", Gt), window.addEventListener("resize", Te), window.addEventListener("scroll", Te, !0), () => {
|
|
@@ -27701,26 +27701,26 @@ const o9 = ({
|
|
|
27701
27701
|
n9.getTemplates(E, D).then(Yr).catch((Te) => console.error("Failed to fetch templates:", Te));
|
|
27702
27702
|
}, [E, D]);
|
|
27703
27703
|
const Se = It((Te, Gt = "") => {
|
|
27704
|
-
const
|
|
27705
|
-
if (!
|
|
27706
|
-
const Jr =
|
|
27704
|
+
const Cr = gr.current;
|
|
27705
|
+
if (!Cr) return;
|
|
27706
|
+
const Jr = Cr.selectionStart, $a = Cr.selectionEnd, ja = ea.slice(Jr, $a), Li = ea.slice(0, Jr) + Te + ja + Gt + ea.slice($a);
|
|
27707
27707
|
ta(Li), setTimeout(() => {
|
|
27708
|
-
|
|
27708
|
+
Cr.focus(), Cr.setSelectionRange(Jr + Te.length, Jr + Te.length + ja.length);
|
|
27709
27709
|
}, 0);
|
|
27710
27710
|
}, [ea]), yt = It((Te) => {
|
|
27711
27711
|
const Gt = gr.current;
|
|
27712
27712
|
if (!Gt) return;
|
|
27713
|
-
const
|
|
27714
|
-
ta(ea.slice(0,
|
|
27715
|
-
Gt.focus(), Gt.setSelectionRange(
|
|
27713
|
+
const Cr = Gt.selectionStart;
|
|
27714
|
+
ta(ea.slice(0, Cr) + Te + ea.slice(Cr)), setTimeout(() => {
|
|
27715
|
+
Gt.focus(), Gt.setSelectionRange(Cr + Te.length, Cr + Te.length);
|
|
27716
27716
|
}, 0);
|
|
27717
27717
|
}, [ea]), sr = It(() => {
|
|
27718
27718
|
const Te = gr.current;
|
|
27719
27719
|
if (!Te) return;
|
|
27720
|
-
const Gt = Te.selectionStart,
|
|
27720
|
+
const Gt = Te.selectionStart, Cr = Te.selectionEnd, Jr = ea.slice(Gt, Cr);
|
|
27721
27721
|
if (Jr.includes(`
|
|
27722
27722
|
`) || Jr.length === 0) {
|
|
27723
|
-
const $a = "```\n" + (Jr || "code here") + "\n```", ja = ea.slice(0, Gt) + $a + ea.slice(
|
|
27723
|
+
const $a = "```\n" + (Jr || "code here") + "\n```", ja = ea.slice(0, Gt) + $a + ea.slice(Cr);
|
|
27724
27724
|
ta(ja), setTimeout(() => {
|
|
27725
27725
|
Te.focus(), Te.setSelectionRange(Gt + 4, Gt + 4 + (Jr.length || 9));
|
|
27726
27726
|
}, 0);
|
|
@@ -27738,14 +27738,14 @@ const o9 = ({
|
|
|
27738
27738
|
return console.error("Image too large (max 10MB)"), null;
|
|
27739
27739
|
const Gt = new AbortController();
|
|
27740
27740
|
pr.current = Gt;
|
|
27741
|
-
const
|
|
27741
|
+
const Cr = Gt.signal, Jr = async () => {
|
|
27742
27742
|
if (!g) throw new Error("Ecency token not provided");
|
|
27743
27743
|
const $a = new FormData();
|
|
27744
27744
|
$a.append("file", Te);
|
|
27745
27745
|
const ja = await fetch(`https://images.ecency.com/hs/${g}`, {
|
|
27746
27746
|
method: "POST",
|
|
27747
27747
|
body: $a,
|
|
27748
|
-
signal:
|
|
27748
|
+
signal: Cr
|
|
27749
27749
|
});
|
|
27750
27750
|
if (!ja.ok) throw new Error(`Upload failed: ${ja.status}`);
|
|
27751
27751
|
const Li = await ja.json();
|
|
@@ -27756,19 +27756,19 @@ const o9 = ({
|
|
|
27756
27756
|
try {
|
|
27757
27757
|
return await Jr();
|
|
27758
27758
|
} catch ($a) {
|
|
27759
|
-
if (
|
|
27759
|
+
if (Cr.aborted) return null;
|
|
27760
27760
|
if (!Ua)
|
|
27761
27761
|
return console.error("Image upload failed:", $a), null;
|
|
27762
27762
|
try {
|
|
27763
27763
|
return await J1(y, w, Te, void 0, {
|
|
27764
27764
|
onSignStart: () => {
|
|
27765
|
-
|
|
27765
|
+
Cr.aborted || Qr(!0);
|
|
27766
27766
|
},
|
|
27767
27767
|
onSignEnd: () => Qr(!1),
|
|
27768
|
-
signal:
|
|
27768
|
+
signal: Cr
|
|
27769
27769
|
});
|
|
27770
27770
|
} catch (ja) {
|
|
27771
|
-
return
|
|
27771
|
+
return Cr.aborted || console.error("Image upload failed (hive fallback):", ja), null;
|
|
27772
27772
|
}
|
|
27773
27773
|
}
|
|
27774
27774
|
} finally {
|
|
@@ -27780,10 +27780,10 @@ const o9 = ({
|
|
|
27780
27780
|
if (!fn) return;
|
|
27781
27781
|
const Gt = Te.clipboardData?.items;
|
|
27782
27782
|
if (Gt) {
|
|
27783
|
-
for (let
|
|
27784
|
-
if (Gt[
|
|
27783
|
+
for (let Cr = 0; Cr < Gt.length; Cr++)
|
|
27784
|
+
if (Gt[Cr].type.startsWith("image/")) {
|
|
27785
27785
|
Te.preventDefault();
|
|
27786
|
-
const Jr = Gt[
|
|
27786
|
+
const Jr = Gt[Cr].getAsFile();
|
|
27787
27787
|
if (!Jr) continue;
|
|
27788
27788
|
Rt(!0);
|
|
27789
27789
|
const $a = await Ka(Jr);
|
|
@@ -27802,8 +27802,8 @@ const o9 = ({
|
|
|
27802
27802
|
if (Te.preventDefault(), Te.stopPropagation(), Re(!1), jr.current = 0, !fn) return;
|
|
27803
27803
|
const Gt = Te.dataTransfer.files;
|
|
27804
27804
|
if (!(!Gt || Gt.length === 0))
|
|
27805
|
-
for (let
|
|
27806
|
-
const Jr = Gt[
|
|
27805
|
+
for (let Cr = 0; Cr < Gt.length; Cr++) {
|
|
27806
|
+
const Jr = Gt[Cr];
|
|
27807
27807
|
if (Jr.type.startsWith("image/")) {
|
|
27808
27808
|
Rt(!0);
|
|
27809
27809
|
const $a = await Ka(Jr);
|
|
@@ -27851,9 +27851,9 @@ ${$n}`), Te;
|
|
|
27851
27851
|
if (!ea.trim()) return null;
|
|
27852
27852
|
const Te = ea.split(/(```[\s\S]*?```)/g);
|
|
27853
27853
|
let Gt = 0;
|
|
27854
|
-
return /* @__PURE__ */ n("div", { className: "space-y-2", children: Te.map((
|
|
27855
|
-
if (
|
|
27856
|
-
const ja =
|
|
27854
|
+
return /* @__PURE__ */ n("div", { className: "space-y-2", children: Te.map((Cr, Jr) => {
|
|
27855
|
+
if (Cr.startsWith("```") && Cr.endsWith("```")) {
|
|
27856
|
+
const ja = Cr.slice(3, -3).replace(/^\w*\n?/, ""), Li = Gt++;
|
|
27857
27857
|
return /* @__PURE__ */ v("div", { className: "relative group rounded-lg overflow-hidden", children: [
|
|
27858
27858
|
/* @__PURE__ */ n("pre", { className: "bg-gray-950 text-[var(--hrk-success)] p-3 rounded-lg text-xs overflow-x-auto font-mono", children: /* @__PURE__ */ n("code", { children: ja.trim() || " " }) }),
|
|
27859
27859
|
/* @__PURE__ */ n(
|
|
@@ -27868,7 +27868,7 @@ ${$n}`), Te;
|
|
|
27868
27868
|
)
|
|
27869
27869
|
] }, Jr);
|
|
27870
27870
|
}
|
|
27871
|
-
const $a =
|
|
27871
|
+
const $a = Cr.split(/(`[^`]+`)/g);
|
|
27872
27872
|
return /* @__PURE__ */ n("span", { children: $a.map((ja, Li) => {
|
|
27873
27873
|
if (ja.startsWith("`") && ja.endsWith("`")) {
|
|
27874
27874
|
const fs = ja.slice(1, -1);
|
|
@@ -27994,7 +27994,7 @@ ${$n}`), Te;
|
|
|
27994
27994
|
"button",
|
|
27995
27995
|
{
|
|
27996
27996
|
type: "button",
|
|
27997
|
-
onClick: () =>
|
|
27997
|
+
onClick: () => Tr((Te) => !Te),
|
|
27998
27998
|
className: `${Ln} ${mr ? "bg-[var(--hrk-bg-surface-raised)] text-[var(--hrk-info)]" : ""}`,
|
|
27999
27999
|
title: mr ? "Hide preview" : "Show preview",
|
|
28000
28000
|
disabled: oe,
|
|
@@ -28034,7 +28034,7 @@ ${$n}`), Te;
|
|
|
28034
28034
|
!j && b && /* @__PURE__ */ n(
|
|
28035
28035
|
xP,
|
|
28036
28036
|
{
|
|
28037
|
-
onVideoUploaded: (Te, Gt,
|
|
28037
|
+
onVideoUploaded: (Te, Gt, Cr, Jr) => {
|
|
28038
28038
|
gt(Te), Jr && Zr(URL.createObjectURL(Jr));
|
|
28039
28039
|
},
|
|
28040
28040
|
username: l,
|
|
@@ -28236,8 +28236,8 @@ ${$n}`), Te;
|
|
|
28236
28236
|
if (Te.key === "Enter" || Te.key === "Tab") {
|
|
28237
28237
|
const Gt = zt.apply();
|
|
28238
28238
|
Gt && (ta(Gt.value), requestAnimationFrame(() => {
|
|
28239
|
-
const
|
|
28240
|
-
|
|
28239
|
+
const Cr = gr.current;
|
|
28240
|
+
Cr && (Cr.focus(), Cr.setSelectionRange(Gt.caret, Gt.caret));
|
|
28241
28241
|
}));
|
|
28242
28242
|
}
|
|
28243
28243
|
return;
|
|
@@ -28270,8 +28270,8 @@ ${$n}`), Te;
|
|
|
28270
28270
|
onSelect: (Te) => {
|
|
28271
28271
|
const Gt = zt.apply(Te);
|
|
28272
28272
|
Gt && (ta(Gt.value), requestAnimationFrame(() => {
|
|
28273
|
-
const
|
|
28274
|
-
|
|
28273
|
+
const Cr = gr.current;
|
|
28274
|
+
Cr && (Cr.focus(), Cr.setSelectionRange(Gt.caret, Gt.caret));
|
|
28275
28275
|
}));
|
|
28276
28276
|
}
|
|
28277
28277
|
}
|
|
@@ -28353,14 +28353,14 @@ ${$n}`), Te;
|
|
|
28353
28353
|
!He && ya.length > 0 && /* @__PURE__ */ v("div", { className: "mt-1.5 flex flex-wrap items-center gap-1 px-0.5", children: [
|
|
28354
28354
|
/* @__PURE__ */ n("span", { className: "text-[10px] uppercase tracking-wide text-[var(--hrk-text-tertiary)] mr-1", children: "Beneficiaries" }),
|
|
28355
28355
|
ya.map((Te) => {
|
|
28356
|
-
const Gt = Pr.includes(Te.account),
|
|
28356
|
+
const Gt = Pr.includes(Te.account), Cr = qr[Te.account] ?? `Auto-attached @${Te.account}`;
|
|
28357
28357
|
return /* @__PURE__ */ v(
|
|
28358
28358
|
"button",
|
|
28359
28359
|
{
|
|
28360
28360
|
type: "button",
|
|
28361
28361
|
onClick: () => be(!0),
|
|
28362
28362
|
className: `inline-flex items-center gap-1 rounded-full pl-0.5 pr-2 py-0.5 text-[11px] ${Gt ? "bg-[var(--hrk-warning-soft)] text-[var(--hrk-warning)] border border-[var(--hrk-warning)]/40" : "bg-[var(--hrk-brand)]/20 text-blue-200 border border-[var(--hrk-info)]/30"}`,
|
|
28363
|
-
title: Gt ?
|
|
28363
|
+
title: Gt ? Cr : "Edit beneficiaries",
|
|
28364
28364
|
disabled: oe,
|
|
28365
28365
|
children: [
|
|
28366
28366
|
/* @__PURE__ */ n(
|
|
@@ -28472,7 +28472,7 @@ ${Te}
|
|
|
28472
28472
|
isOpen: ra,
|
|
28473
28473
|
onClose: () => va(!1),
|
|
28474
28474
|
onSelectMeme: (Te, Gt) => {
|
|
28475
|
-
yt(``), Gt && Nr((
|
|
28475
|
+
yt(``), Gt && Nr((Cr) => [...Cr, Gt]), va(!1);
|
|
28476
28476
|
},
|
|
28477
28477
|
ecencyToken: g,
|
|
28478
28478
|
onSignMessage: y,
|
|
@@ -33423,7 +33423,7 @@ function pU() {
|
|
|
33423
33423
|
}
|
|
33424
33424
|
return M || "M0 0";
|
|
33425
33425
|
}
|
|
33426
|
-
var st = document.documentElement.style, Ft = "ActiveXObject" in window, Lr = Ft && !document.addEventListener, Tt = "msLaunchUri" in navigator && !("documentMode" in document), Ot = fa("webkit"), hr = fa("android"), $r = fa("android 2") || fa("android 3"), fr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), At = hr && fa("Google") && fr < 537 && !("AudioNode" in window), ke = !!window.opera, Ke = !Tt && fa("chrome"), bt = fa("gecko") && !Ot && !ke && !Ft, ft = !Ke && fa("safari"), Be = fa("phantom"), We = "OTransition" in st, Dt = navigator.platform.indexOf("Win") === 0, ht = Ft && "transition" in st, Xt = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !$r, tr = "MozPerspective" in st,
|
|
33426
|
+
var st = document.documentElement.style, Ft = "ActiveXObject" in window, Lr = Ft && !document.addEventListener, Tt = "msLaunchUri" in navigator && !("documentMode" in document), Ot = fa("webkit"), hr = fa("android"), $r = fa("android 2") || fa("android 3"), fr = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), At = hr && fa("Google") && fr < 537 && !("AudioNode" in window), ke = !!window.opera, Ke = !Tt && fa("chrome"), bt = fa("gecko") && !Ot && !ke && !Ft, ft = !Ke && fa("safari"), Be = fa("phantom"), We = "OTransition" in st, Dt = navigator.platform.indexOf("Win") === 0, ht = Ft && "transition" in st, Xt = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !$r, tr = "MozPerspective" in st, Rr = !window.L_DISABLE_3D && (ht || Xt || tr) && !We && !Be, _a = typeof orientation < "u" || fa("mobile"), ea = _a && Ot, ta = _a && Xt, pa = !window.PointerEvent && window.MSPointerEvent, ne = !!(window.PointerEvent || pa), oe = "ontouchstart" in window || !!window.TouchEvent, we = !window.L_NO_TOUCH && (oe || ne), $e = _a && ke, Et = _a && bt, or = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, vt = (function() {
|
|
33427
33427
|
var c = !1;
|
|
33428
33428
|
try {
|
|
33429
33429
|
var k = Object.defineProperty({}, "passive", {
|
|
@@ -33471,7 +33471,7 @@ function pU() {
|
|
|
33471
33471
|
ie3d: ht,
|
|
33472
33472
|
webkit3d: Xt,
|
|
33473
33473
|
gecko3d: tr,
|
|
33474
|
-
any3d:
|
|
33474
|
+
any3d: Rr,
|
|
33475
33475
|
mobile: _a,
|
|
33476
33476
|
mobileWebkit: ea,
|
|
33477
33477
|
mobileWebkit3d: ta,
|
|
@@ -33489,7 +33489,7 @@ function pU() {
|
|
|
33489
33489
|
inlineSvg: va,
|
|
33490
33490
|
mac: Nr,
|
|
33491
33491
|
linux: Wt
|
|
33492
|
-
}, Mt = nr.msPointer ? "MSPointerDown" : "pointerdown", yr = nr.msPointer ? "MSPointerMove" : "pointermove", ir = nr.msPointer ? "MSPointerUp" : "pointerup", mr = nr.msPointer ? "MSPointerCancel" : "pointercancel",
|
|
33492
|
+
}, Mt = nr.msPointer ? "MSPointerDown" : "pointerdown", yr = nr.msPointer ? "MSPointerMove" : "pointermove", ir = nr.msPointer ? "MSPointerUp" : "pointerup", mr = nr.msPointer ? "MSPointerCancel" : "pointercancel", Tr = {
|
|
33493
33493
|
touchstart: Mt,
|
|
33494
33494
|
touchmove: yr,
|
|
33495
33495
|
touchend: ir,
|
|
@@ -33501,14 +33501,14 @@ function pU() {
|
|
|
33501
33501
|
touchcancel: La
|
|
33502
33502
|
}, xa = {}, gn = !1;
|
|
33503
33503
|
function On(c, k, M) {
|
|
33504
|
-
return k === "touchstart" && xr(), Ir[k] ? (M = Ir[k].bind(this, M), c.addEventListener(
|
|
33504
|
+
return k === "touchstart" && xr(), Ir[k] ? (M = Ir[k].bind(this, M), c.addEventListener(Tr[k], M, !1), M) : (console.warn("wrong event specified:", k), _);
|
|
33505
33505
|
}
|
|
33506
33506
|
function $n(c, k, M) {
|
|
33507
|
-
if (!
|
|
33507
|
+
if (!Tr[k]) {
|
|
33508
33508
|
console.warn("wrong event specified:", k);
|
|
33509
33509
|
return;
|
|
33510
33510
|
}
|
|
33511
|
-
c.removeEventListener(
|
|
33511
|
+
c.removeEventListener(Tr[k], M, !1);
|
|
33512
33512
|
}
|
|
33513
33513
|
function gt(c) {
|
|
33514
33514
|
xa[c.pointerId] = c;
|
|
@@ -35355,10 +35355,10 @@ function pU() {
|
|
|
35355
35355
|
Li(c[V], c[K]) > k && (M.push(c[V]), K = V);
|
|
35356
35356
|
return K < ce - 1 && M.push(c[ce - 1]), M;
|
|
35357
35357
|
}
|
|
35358
|
-
var
|
|
35358
|
+
var Cr;
|
|
35359
35359
|
function Jr(c, k, M, V, K) {
|
|
35360
|
-
var ce = V ?
|
|
35361
|
-
for (
|
|
35360
|
+
var ce = V ? Cr : ja(c, M), Ce = ja(k, M), et, ct, Zt;
|
|
35361
|
+
for (Cr = Ce; ; ) {
|
|
35362
35362
|
if (!(ce | Ce))
|
|
35363
35363
|
return [c, k];
|
|
35364
35364
|
if (ce & Ce)
|
|
@@ -35887,7 +35887,7 @@ function pU() {
|
|
|
35887
35887
|
_onDragEnd: function(c) {
|
|
35888
35888
|
J(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", c);
|
|
35889
35889
|
}
|
|
35890
|
-
}),
|
|
35890
|
+
}), Dr = ks.extend({
|
|
35891
35891
|
// @section
|
|
35892
35892
|
// @aka Marker options
|
|
35893
35893
|
options: {
|
|
@@ -36073,9 +36073,9 @@ function pU() {
|
|
|
36073
36073
|
}
|
|
36074
36074
|
});
|
|
36075
36075
|
function Br(c, k) {
|
|
36076
|
-
return new
|
|
36076
|
+
return new Dr(c, k);
|
|
36077
36077
|
}
|
|
36078
|
-
var
|
|
36078
|
+
var Mr = ks.extend({
|
|
36079
36079
|
// @section
|
|
36080
36080
|
// @aka Path options
|
|
36081
36081
|
options: {
|
|
@@ -36161,7 +36161,7 @@ function pU() {
|
|
|
36161
36161
|
_clickTolerance: function() {
|
|
36162
36162
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
36163
36163
|
}
|
|
36164
|
-
}), aa =
|
|
36164
|
+
}), aa = Mr.extend({
|
|
36165
36165
|
// @section
|
|
36166
36166
|
// @aka CircleMarker options
|
|
36167
36167
|
options: {
|
|
@@ -36196,7 +36196,7 @@ function pU() {
|
|
|
36196
36196
|
},
|
|
36197
36197
|
setStyle: function(c) {
|
|
36198
36198
|
var k = c && c.radius || this._radius;
|
|
36199
|
-
return
|
|
36199
|
+
return Mr.prototype.setStyle.call(this, c), this.setRadius(k), this;
|
|
36200
36200
|
},
|
|
36201
36201
|
_project: function() {
|
|
36202
36202
|
this._point = this._map.latLngToLayerPoint(this._latlng), this._updateBounds();
|
|
@@ -36247,7 +36247,7 @@ function pU() {
|
|
|
36247
36247
|
this._map.layerPointToLatLng(this._point.add(c))
|
|
36248
36248
|
);
|
|
36249
36249
|
},
|
|
36250
|
-
setStyle:
|
|
36250
|
+
setStyle: Mr.prototype.setStyle,
|
|
36251
36251
|
_project: function() {
|
|
36252
36252
|
var c = this._latlng.lng, k = this._latlng.lat, M = this._map, V = M.options.crs;
|
|
36253
36253
|
if (V.distance === je.distance) {
|
|
@@ -36263,7 +36263,7 @@ function pU() {
|
|
|
36263
36263
|
function nn(c, k, M) {
|
|
36264
36264
|
return new Fn(c, k, M);
|
|
36265
36265
|
}
|
|
36266
|
-
var Is =
|
|
36266
|
+
var Is = Mr.extend({
|
|
36267
36267
|
// @section
|
|
36268
36268
|
// @aka Polyline options
|
|
36269
36269
|
options: {
|
|
@@ -36573,7 +36573,7 @@ function pU() {
|
|
|
36573
36573
|
}
|
|
36574
36574
|
}
|
|
36575
36575
|
function Gs(c, k, M, V) {
|
|
36576
|
-
return c ? c(k, M) : new
|
|
36576
|
+
return c ? c(k, M) : new Dr(M, V && V.markersInheritOptions && V);
|
|
36577
36577
|
}
|
|
36578
36578
|
function iu(c) {
|
|
36579
36579
|
return new _e(c[1], c[0], c[2]);
|
|
@@ -36609,7 +36609,7 @@ function pU() {
|
|
|
36609
36609
|
});
|
|
36610
36610
|
}
|
|
36611
36611
|
};
|
|
36612
|
-
|
|
36612
|
+
Dr.include(at), Fn.include(at), aa.include(at), Is.include({
|
|
36613
36613
|
toGeoJSON: function(c) {
|
|
36614
36614
|
var k = !on(this._latlngs), M = Ns(this._latlngs, k ? 1 : 0, !1, c);
|
|
36615
36615
|
return ae(this, {
|
|
@@ -37080,10 +37080,10 @@ function pU() {
|
|
|
37080
37080
|
return c = arguments.length ? c : this._source._map, !c.hasLayer(this) && c._popup && c._popup.options.autoClose && c.removeLayer(c._popup), c._popup = this, na.prototype.openOn.call(this, c);
|
|
37081
37081
|
},
|
|
37082
37082
|
onAdd: function(c) {
|
|
37083
|
-
na.prototype.onAdd.call(this, c), c.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof
|
|
37083
|
+
na.prototype.onAdd.call(this, c), c.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof Mr || this._source.on("preclick", ga));
|
|
37084
37084
|
},
|
|
37085
37085
|
onRemove: function(c) {
|
|
37086
|
-
na.prototype.onRemove.call(this, c), c.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof
|
|
37086
|
+
na.prototype.onRemove.call(this, c), c.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof Mr || this._source.off("preclick", ga));
|
|
37087
37087
|
},
|
|
37088
37088
|
getEvents: function() {
|
|
37089
37089
|
var c = na.prototype.getEvents.call(this);
|
|
@@ -37204,7 +37204,7 @@ function pU() {
|
|
|
37204
37204
|
if (!(!this._popup || !this._map)) {
|
|
37205
37205
|
dn(c);
|
|
37206
37206
|
var k = c.layer || c.target;
|
|
37207
|
-
if (this._popup._source === k && !(k instanceof
|
|
37207
|
+
if (this._popup._source === k && !(k instanceof Mr)) {
|
|
37208
37208
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(c.latlng);
|
|
37209
37209
|
return;
|
|
37210
37210
|
}
|
|
@@ -38824,7 +38824,7 @@ function pU() {
|
|
|
38824
38824
|
this._zooming = !1, J(this._animRequest), kt(document, "touchmove", this._onTouchMove, this), kt(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
38825
38825
|
}
|
|
38826
38826
|
});
|
|
38827
|
-
Wr.addInitHook("addHandler", "touchZoom", Sf), Wr.BoxZoom = Mi, Wr.DoubleClickZoom = ou, Wr.Drag = ml, Wr.Keyboard = Nf, Wr.ScrollWheelZoom = cd, Wr.TapHold = Yu, Wr.TouchZoom = Sf, l.Bounds = Ae, l.Browser = nr, l.CRS = ze, l.Canvas = Di, l.Circle = Fn, l.CircleMarker = aa, l.Class = de, l.Control = Gr, l.DivIcon = xi, l.DivOverlay = na, l.DomEvent = Xr, l.DomUtil = Bt, l.Draggable = Ii, l.Evented = Q, l.FeatureGroup = zi, l.GeoJSON = _i, l.GridLayer = Vo, l.Handler = Oa, l.Icon = Wn, l.ImageOverlay = Er, l.LatLng = _e, l.LatLngBounds = pe, l.Layer = ks, l.LayerGroup = hl, l.LineUtil = ti, l.Map = Wr, l.Marker =
|
|
38827
|
+
Wr.addInitHook("addHandler", "touchZoom", Sf), Wr.BoxZoom = Mi, Wr.DoubleClickZoom = ou, Wr.Drag = ml, Wr.Keyboard = Nf, Wr.ScrollWheelZoom = cd, Wr.TapHold = Yu, Wr.TouchZoom = Sf, l.Bounds = Ae, l.Browser = nr, l.CRS = ze, l.Canvas = Di, l.Circle = Fn, l.CircleMarker = aa, l.Class = de, l.Control = Gr, l.DivIcon = xi, l.DivOverlay = na, l.DomEvent = Xr, l.DomUtil = Bt, l.Draggable = Ii, l.Evented = Q, l.FeatureGroup = zi, l.GeoJSON = _i, l.GridLayer = Vo, l.Handler = Oa, l.Icon = Wn, l.ImageOverlay = Er, l.LatLng = _e, l.LatLngBounds = pe, l.Layer = ks, l.LayerGroup = hl, l.LineUtil = ti, l.Map = Wr, l.Marker = Dr, l.Mixin = di, l.Path = Mr, l.Point = ie, l.PolyUtil = vi, l.Polygon = Fs, l.Polyline = Is, l.Popup = yi, l.PosAnimation = Qa, l.Projection = ro, l.Rectangle = As, l.Renderer = Bn, l.SVG = su, l.SVGOverlay = Jn, l.TileLayer = Ji, l.Tooltip = ai, l.Transformation = ue, l.Util = te, l.VideoOverlay = Hn, l.bind = h, l.bounds = Oe, l.canvas = Es, l.circle = nn, l.circleMarker = zn, l.control = kn, l.divIcon = ao, l.extend = d, l.featureGroup = Zu, l.geoJSON = ar, l.geoJson = xt, l.gridLayer = Dn, l.icon = xe, l.imageOverlay = Va, l.latLng = Ee, l.latLngBounds = se, l.layerGroup = Gu, l.map = Ma, l.marker = Br, l.point = ge, l.polygon = Cl, l.polyline = nu, l.popup = ri, l.rectangle = ip, l.setOptions = z, l.stamp = y, l.svg = Sc, l.svgOverlay = Ya, l.tileLayer = ki, l.tooltip = Pi, l.transformation = He, l.version = u, l.videoOverlay = Ia;
|
|
38828
38828
|
var Ef = window.L;
|
|
38829
38829
|
l.noConflict = function() {
|
|
38830
38830
|
return window.L = Ef, this;
|
|
@@ -39555,7 +39555,7 @@ function ox({
|
|
|
39555
39555
|
), tr = qt(() => {
|
|
39556
39556
|
const lr = We.filter((gr) => P1(gr)).length;
|
|
39557
39557
|
return ht > We.length ? Math.max(0, ht - lr) : We.length > 0 ? We.length - lr : ht;
|
|
39558
|
-
}, [We, ht]),
|
|
39558
|
+
}, [We, ht]), Rr = qt(() => We.filter((lr) => P1(lr)).length, [We]), [_a, ea] = W(b ?? 0), [ta, pa] = W(!1), [ne, oe] = W(!1), [we, $e] = W(!1), [Et, or] = W(!1), [vt, Ct] = W(!1), [ra, va] = W({
|
|
39559
39559
|
message: "",
|
|
39560
39560
|
visible: !1
|
|
39561
39561
|
}), [ot, Nr] = W(!1);
|
|
@@ -39588,7 +39588,7 @@ function ox({
|
|
|
39588
39588
|
const yr = bt && !!Ke && We.some((lr) => lr.voter.toLowerCase() === Ke.toLowerCase()), ir = d9(We, Ke), mr = qt(
|
|
39589
39589
|
() => fB(We, w),
|
|
39590
39590
|
[We, w]
|
|
39591
|
-
), [
|
|
39591
|
+
), [Tr, Ir] = W(!1), [xa, gn] = W(null), [On, $n] = W(!1), gt = () => {
|
|
39592
39592
|
if (!Ee || (Ir(!0), xa !== null || On || !ze)) return;
|
|
39593
39593
|
const [lr, gr] = ze.split("/");
|
|
39594
39594
|
if (!lr || !gr) return;
|
|
@@ -39784,7 +39784,7 @@ function ox({
|
|
|
39784
39784
|
className: `${Tt} shrink-0 text-red-400`
|
|
39785
39785
|
}
|
|
39786
39786
|
),
|
|
39787
|
-
/* @__PURE__ */ n("span", { children:
|
|
39787
|
+
/* @__PURE__ */ n("span", { children: Rr })
|
|
39788
39788
|
]
|
|
39789
39789
|
}
|
|
39790
39790
|
)
|
|
@@ -39816,7 +39816,7 @@ function ox({
|
|
|
39816
39816
|
)
|
|
39817
39817
|
}
|
|
39818
39818
|
),
|
|
39819
|
-
Ee &&
|
|
39819
|
+
Ee && Tr && /* @__PURE__ */ v("div", { className: "absolute bottom-full left-0 z-30 mb-2 w-72 rounded-lg border border-[var(--hrk-border-default)] bg-[var(--hrk-bg-surface-sunken)] p-3 shadow-xl", children: [
|
|
39820
39820
|
/* @__PURE__ */ n("p", { className: "mb-1 text-[10px] font-semibold uppercase tracking-wide text-[var(--hrk-brand-fg-soft)]", children: "Your comment" }),
|
|
39821
39821
|
On && /* @__PURE__ */ n("p", { className: "text-xs text-[var(--hrk-text-tertiary)]", children: "Loading…" }),
|
|
39822
39822
|
!On && Kt && /* @__PURE__ */ n("p", { className: "line-clamp-6 whitespace-pre-wrap text-xs leading-relaxed text-[var(--hrk-text-secondary)]", children: Kt }),
|
|
@@ -39863,7 +39863,7 @@ function ox({
|
|
|
39863
39863
|
]
|
|
39864
39864
|
}
|
|
39865
39865
|
),
|
|
39866
|
-
Ee &&
|
|
39866
|
+
Ee && Tr && /* @__PURE__ */ v("div", { className: "absolute bottom-full left-0 z-30 mb-2 w-72 rounded-lg border border-[var(--hrk-border-default)] bg-[var(--hrk-bg-surface-sunken)] p-3 shadow-xl", children: [
|
|
39867
39867
|
/* @__PURE__ */ n("p", { className: "mb-1 text-[10px] font-semibold uppercase tracking-wide text-[var(--hrk-brand-fg-soft)]", children: "Your comment" }),
|
|
39868
39868
|
On && /* @__PURE__ */ n("p", { className: "text-xs text-[var(--hrk-text-tertiary)]", children: "Loading…" }),
|
|
39869
39869
|
!On && Kt && /* @__PURE__ */ n("p", { className: "line-clamp-6 whitespace-pre-wrap text-xs leading-relaxed text-[var(--hrk-text-secondary)]", children: Kt }),
|
|
@@ -40056,7 +40056,7 @@ function ox({
|
|
|
40056
40056
|
onUserClick: X,
|
|
40057
40057
|
getUserUrl: Q,
|
|
40058
40058
|
voteFilter: "downvotes",
|
|
40059
|
-
totalVoteCount:
|
|
40059
|
+
totalVoteCount: Rr
|
|
40060
40060
|
}
|
|
40061
40061
|
),
|
|
40062
40062
|
vt && /* @__PURE__ */ n(
|
|
@@ -40121,7 +40121,7 @@ function A9({
|
|
|
40121
40121
|
const [f, h] = W(null), [g, y] = W(!0), [w, b] = W([]), [_, x] = W([]), [E, D] = W(!1);
|
|
40122
40122
|
qe(() => {
|
|
40123
40123
|
const X = new AbortController();
|
|
40124
|
-
return y(!0),
|
|
40124
|
+
return y(!0), Or.getPollDetail(r, o, X.signal).then((Q) => h(Q ?? null)).catch(() => h(null)).finally(() => y(!1)), () => X.abort();
|
|
40125
40125
|
}, [r, o]);
|
|
40126
40126
|
const z = f?.max_choices_voted ?? d?.max_choices_voted ?? 1, O = z > 1, T = f?.end_time ? new Date(f.end_time).getTime() : (d?.end_time ?? 0) * 1e3, B = T > 0 && Date.now() > T, H = _.length > 0, j = l ? f?.poll_voters?.find((X) => X.name === l) : void 0, P = j?.choices?.length ? j.choices : j?.choice_num != null ? [j.choice_num] : [], C = H || P.length > 0, q = f?.allow_vote_changes ?? d?.allow_vote_changes ?? !1, I = H ? _ : P, F = !!l && !B && !!u && (!C || q), Y = C && q && !H, Z = f?.poll_choices ?? (d?.choices ?? []).map(
|
|
40127
40127
|
(X, Q) => ({ choice_num: Q + 1, choice_text: X, votes: null })
|
|
@@ -44272,7 +44272,7 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44272
44272
|
return qe(() => {
|
|
44273
44273
|
(async () => {
|
|
44274
44274
|
try {
|
|
44275
|
-
const d = await
|
|
44275
|
+
const d = await Or.convertVestingSharesToHive(r);
|
|
44276
44276
|
l(d);
|
|
44277
44277
|
} catch (d) {
|
|
44278
44278
|
console.error("Error calculating HP:", d);
|
|
@@ -44293,14 +44293,14 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44293
44293
|
const [d, f] = W([]), [h, g] = W([]), [y, w] = W({}), [b, _] = W(!0), [x, E] = W(null), [D, z] = W(null), O = $t(null), T = async () => {
|
|
44294
44294
|
try {
|
|
44295
44295
|
_(!0), E(null);
|
|
44296
|
-
const j = await
|
|
44296
|
+
const j = await Or.getFollowers(r);
|
|
44297
44297
|
if (f(j), j.length > 0) {
|
|
44298
|
-
const P = j.map((F) => F.follower), C = await
|
|
44298
|
+
const P = j.map((F) => F.follower), C = await Or.getAccounts(P);
|
|
44299
44299
|
g(C);
|
|
44300
44300
|
const q = {}, I = {};
|
|
44301
44301
|
for (const F of j)
|
|
44302
44302
|
try {
|
|
44303
|
-
const Y = await
|
|
44303
|
+
const Y = await Or.getVoteValue(F.follower);
|
|
44304
44304
|
I[F.follower] = Y;
|
|
44305
44305
|
} catch (Y) {
|
|
44306
44306
|
console.warn(`Failed to get voting data for ${F.follower}:`, Y), q[F.follower] = { upvotepower: "0", downvote: "0" }, I[F.follower] = "0.00";
|
|
@@ -44377,7 +44377,7 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44377
44377
|
/* @__PURE__ */ n("td", { className: "py-4 px-4", children: /* @__PURE__ */ n(
|
|
44378
44378
|
"img",
|
|
44379
44379
|
{
|
|
44380
|
-
src: q?.profile_image ||
|
|
44380
|
+
src: q?.profile_image || Or.userAvatar(j.follower),
|
|
44381
44381
|
alt: j.follower,
|
|
44382
44382
|
className: "w-12 h-12 rounded-full object-cover cursor-pointer",
|
|
44383
44383
|
onClick: () => o && o(j.follower),
|
|
@@ -44459,7 +44459,7 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44459
44459
|
/* @__PURE__ */ n(
|
|
44460
44460
|
"img",
|
|
44461
44461
|
{
|
|
44462
|
-
src: q?.profile_image ||
|
|
44462
|
+
src: q?.profile_image || Or.userAvatar(j.follower),
|
|
44463
44463
|
alt: j.follower,
|
|
44464
44464
|
className: "w-10 h-10 rounded-full object-cover cursor-pointer flex-shrink-0",
|
|
44465
44465
|
onClick: () => o && o(j.follower),
|
|
@@ -44539,7 +44539,7 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44539
44539
|
return qe(() => {
|
|
44540
44540
|
(async () => {
|
|
44541
44541
|
try {
|
|
44542
|
-
const d = await
|
|
44542
|
+
const d = await Or.convertVestingSharesToHive(r);
|
|
44543
44543
|
l(d);
|
|
44544
44544
|
} catch (d) {
|
|
44545
44545
|
console.error("Error calculating HP:", d);
|
|
@@ -44560,14 +44560,14 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44560
44560
|
const [d, f] = W([]), [h, g] = W([]), [y, w] = W({}), [b, _] = W(!0), [x, E] = W(null), [D, z] = W(null), O = $t(null), T = async () => {
|
|
44561
44561
|
try {
|
|
44562
44562
|
_(!0), E(null);
|
|
44563
|
-
const j = await
|
|
44563
|
+
const j = await Or.getFollowing(r);
|
|
44564
44564
|
if (f(j), j.length > 0) {
|
|
44565
|
-
const P = j.map((I) => I.following), C = await
|
|
44565
|
+
const P = j.map((I) => I.following), C = await Or.getAccounts(P);
|
|
44566
44566
|
g(C);
|
|
44567
44567
|
const q = {};
|
|
44568
44568
|
for (const I of j)
|
|
44569
44569
|
try {
|
|
44570
|
-
const F = await
|
|
44570
|
+
const F = await Or.getVoteValue(I.following);
|
|
44571
44571
|
q[I.following] = F;
|
|
44572
44572
|
} catch (F) {
|
|
44573
44573
|
console.warn(`Failed to get voting data for ${I.following}:`, F), q[I.following] = "0.00";
|
|
@@ -44644,7 +44644,7 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44644
44644
|
/* @__PURE__ */ n("td", { className: "py-4 px-4", children: /* @__PURE__ */ n(
|
|
44645
44645
|
"img",
|
|
44646
44646
|
{
|
|
44647
|
-
src: q?.profile_image ||
|
|
44647
|
+
src: q?.profile_image || Or.userAvatar(j.following),
|
|
44648
44648
|
alt: j.following,
|
|
44649
44649
|
className: "w-12 h-12 rounded-full object-cover cursor-pointer",
|
|
44650
44650
|
onClick: () => o && o(j.following),
|
|
@@ -44726,7 +44726,7 @@ const FT = ab.getInstance(), Q$ = ["All", "Active", "Upcoming", "Expired", "By P
|
|
|
44726
44726
|
/* @__PURE__ */ n(
|
|
44727
44727
|
"img",
|
|
44728
44728
|
{
|
|
44729
|
-
src: q?.profile_image ||
|
|
44729
|
+
src: q?.profile_image || Or.userAvatar(j.following),
|
|
44730
44730
|
alt: j.following,
|
|
44731
44731
|
className: "w-10 h-10 rounded-full object-cover cursor-pointer flex-shrink-0",
|
|
44732
44732
|
onClick: () => o && o(j.following),
|
|
@@ -47155,11 +47155,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47155
47155
|
/* @__PURE__ */ n(
|
|
47156
47156
|
"img",
|
|
47157
47157
|
{
|
|
47158
|
-
src:
|
|
47158
|
+
src: Or.userAvatar(C.value.from),
|
|
47159
47159
|
alt: `${C.value.from} avatar`,
|
|
47160
47160
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47161
47161
|
onError: (q) => {
|
|
47162
|
-
q.target.src =
|
|
47162
|
+
q.target.src = Or.userAvatar(
|
|
47163
47163
|
C.value.from
|
|
47164
47164
|
);
|
|
47165
47165
|
}
|
|
@@ -47172,11 +47172,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47172
47172
|
/* @__PURE__ */ n(
|
|
47173
47173
|
"img",
|
|
47174
47174
|
{
|
|
47175
|
-
src:
|
|
47175
|
+
src: Or.userAvatar(C.value.to),
|
|
47176
47176
|
alt: `${C.value.to} avatar`,
|
|
47177
47177
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47178
47178
|
onError: (q) => {
|
|
47179
|
-
q.target.src =
|
|
47179
|
+
q.target.src = Or.userAvatar(
|
|
47180
47180
|
C.value.to
|
|
47181
47181
|
);
|
|
47182
47182
|
}
|
|
@@ -47204,11 +47204,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47204
47204
|
/* @__PURE__ */ n(
|
|
47205
47205
|
"img",
|
|
47206
47206
|
{
|
|
47207
|
-
src:
|
|
47207
|
+
src: Or.userAvatar(C.value.voter),
|
|
47208
47208
|
alt: `${C.value.voter} avatar`,
|
|
47209
47209
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47210
47210
|
onError: (q) => {
|
|
47211
|
-
q.target.src =
|
|
47211
|
+
q.target.src = Or.userAvatar(
|
|
47212
47212
|
C.value.voter
|
|
47213
47213
|
);
|
|
47214
47214
|
}
|
|
@@ -47221,11 +47221,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47221
47221
|
/* @__PURE__ */ n(
|
|
47222
47222
|
"img",
|
|
47223
47223
|
{
|
|
47224
|
-
src:
|
|
47224
|
+
src: Or.userAvatar(C.value.author),
|
|
47225
47225
|
alt: `${C.value.author} avatar`,
|
|
47226
47226
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47227
47227
|
onError: (q) => {
|
|
47228
|
-
q.target.src =
|
|
47228
|
+
q.target.src = Or.userAvatar(
|
|
47229
47229
|
C.value.author
|
|
47230
47230
|
);
|
|
47231
47231
|
}
|
|
@@ -47247,11 +47247,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47247
47247
|
/* @__PURE__ */ n(
|
|
47248
47248
|
"img",
|
|
47249
47249
|
{
|
|
47250
|
-
src:
|
|
47250
|
+
src: Or.userAvatar(C.value.author),
|
|
47251
47251
|
alt: `${C.value.author} avatar`,
|
|
47252
47252
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47253
47253
|
onError: (q) => {
|
|
47254
|
-
q.target.src =
|
|
47254
|
+
q.target.src = Or.userAvatar(
|
|
47255
47255
|
C.value.author
|
|
47256
47256
|
);
|
|
47257
47257
|
}
|
|
@@ -47291,11 +47291,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47291
47291
|
/* @__PURE__ */ n(
|
|
47292
47292
|
"img",
|
|
47293
47293
|
{
|
|
47294
|
-
src:
|
|
47294
|
+
src: Or.userAvatar(C.value.author),
|
|
47295
47295
|
alt: `${C.value.author} avatar`,
|
|
47296
47296
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47297
47297
|
onError: (q) => {
|
|
47298
|
-
q.target.src =
|
|
47298
|
+
q.target.src = Or.userAvatar(
|
|
47299
47299
|
C.value.author
|
|
47300
47300
|
);
|
|
47301
47301
|
}
|
|
@@ -47317,11 +47317,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47317
47317
|
/* @__PURE__ */ n(
|
|
47318
47318
|
"img",
|
|
47319
47319
|
{
|
|
47320
|
-
src:
|
|
47320
|
+
src: Or.userAvatar(C.value.author),
|
|
47321
47321
|
alt: `${C.value.author} avatar`,
|
|
47322
47322
|
className: "w-4 h-4 rounded-full flex-shrink-0",
|
|
47323
47323
|
onError: (q) => {
|
|
47324
|
-
q.target.src =
|
|
47324
|
+
q.target.src = Or.userAvatar(
|
|
47325
47325
|
C.value.author
|
|
47326
47326
|
);
|
|
47327
47327
|
}
|
|
@@ -47382,11 +47382,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47382
47382
|
/* @__PURE__ */ n(
|
|
47383
47383
|
"img",
|
|
47384
47384
|
{
|
|
47385
|
-
src:
|
|
47385
|
+
src: Or.userAvatar(r),
|
|
47386
47386
|
alt: `${r} avatar`,
|
|
47387
47387
|
className: "w-6 h-6 rounded-full",
|
|
47388
47388
|
onError: (P) => {
|
|
47389
|
-
P.target.src =
|
|
47389
|
+
P.target.src = Or.userAvatar(r);
|
|
47390
47390
|
}
|
|
47391
47391
|
}
|
|
47392
47392
|
),
|
|
@@ -47417,11 +47417,11 @@ function Nq({ account: r, className: o }) {
|
|
|
47417
47417
|
/* @__PURE__ */ n(
|
|
47418
47418
|
"img",
|
|
47419
47419
|
{
|
|
47420
|
-
src:
|
|
47420
|
+
src: Or.userAvatar(r),
|
|
47421
47421
|
alt: `${r} avatar`,
|
|
47422
47422
|
className: "w-6 h-6 rounded-full",
|
|
47423
47423
|
onError: (P) => {
|
|
47424
|
-
P.target.src =
|
|
47424
|
+
P.target.src = Or.userAvatar(r);
|
|
47425
47425
|
}
|
|
47426
47426
|
}
|
|
47427
47427
|
),
|
|
@@ -47815,11 +47815,11 @@ const Kg = new uj(), Sq = ({
|
|
|
47815
47815
|
/* @__PURE__ */ n(
|
|
47816
47816
|
"img",
|
|
47817
47817
|
{
|
|
47818
|
-
src:
|
|
47818
|
+
src: Or.userAvatar(Q.author),
|
|
47819
47819
|
alt: `${Q.author} avatar`,
|
|
47820
47820
|
className: "w-5 h-5 sm:w-6 sm:h-6 rounded-full flex-shrink-0",
|
|
47821
47821
|
onError: (Ae) => {
|
|
47822
|
-
Ae.target.src =
|
|
47822
|
+
Ae.target.src = Or.userAvatar(
|
|
47823
47823
|
Q.author
|
|
47824
47824
|
);
|
|
47825
47825
|
}
|
|
@@ -47905,11 +47905,11 @@ const Kg = new uj(), Sq = ({
|
|
|
47905
47905
|
/* @__PURE__ */ n(
|
|
47906
47906
|
"img",
|
|
47907
47907
|
{
|
|
47908
|
-
src:
|
|
47908
|
+
src: Or.userAvatar(r),
|
|
47909
47909
|
alt: `${r} avatar`,
|
|
47910
47910
|
className: "w-6 h-6 rounded-full",
|
|
47911
47911
|
onError: (Q) => {
|
|
47912
|
-
Q.target.src =
|
|
47912
|
+
Q.target.src = Or.userAvatar(r);
|
|
47913
47913
|
}
|
|
47914
47914
|
}
|
|
47915
47915
|
),
|
|
@@ -47930,11 +47930,11 @@ const Kg = new uj(), Sq = ({
|
|
|
47930
47930
|
/* @__PURE__ */ n(
|
|
47931
47931
|
"img",
|
|
47932
47932
|
{
|
|
47933
|
-
src:
|
|
47933
|
+
src: Or.userAvatar(r),
|
|
47934
47934
|
alt: `${r} avatar`,
|
|
47935
47935
|
className: "w-16 h-16 rounded-full object-cover",
|
|
47936
47936
|
onError: (Q) => {
|
|
47937
|
-
Q.target.src =
|
|
47937
|
+
Q.target.src = Or.userAvatar(r);
|
|
47938
47938
|
}
|
|
47939
47939
|
}
|
|
47940
47940
|
),
|
|
@@ -49084,7 +49084,7 @@ Error generating stack: ` + N.message + `
|
|
|
49084
49084
|
} catch {
|
|
49085
49085
|
}
|
|
49086
49086
|
}
|
|
49087
|
-
var
|
|
49087
|
+
var Rr = Math.clz32 ? Math.clz32 : ta, _a = Math.log, ea = Math.LN2;
|
|
49088
49088
|
function ta(a) {
|
|
49089
49089
|
return a >>>= 0, a === 0 ? 32 : 31 - (_a(a) / ea | 0) | 0;
|
|
49090
49090
|
}
|
|
@@ -49212,7 +49212,7 @@ Error generating stack: ` + N.message + `
|
|
|
49212
49212
|
a.pendingLanes = m, a.suspendedLanes = 0, a.pingedLanes = 0, a.warmLanes = 0, a.expiredLanes &= m, a.entangledLanes &= m, a.errorRecoveryDisabledLanes &= m, a.shellSuspendCounter = 0;
|
|
49213
49213
|
var he = a.entanglements, Ue = a.expirationTimes, lt = a.hiddenUpdates;
|
|
49214
49214
|
for (m = ee & ~m; 0 < m; ) {
|
|
49215
|
-
var Ut = 31 -
|
|
49215
|
+
var Ut = 31 - Rr(m), Yt = 1 << Ut;
|
|
49216
49216
|
he[Ut] = 0, Ue[Ut] = -1;
|
|
49217
49217
|
var dt = lt[Ut];
|
|
49218
49218
|
if (dt !== null)
|
|
@@ -49226,13 +49226,13 @@ Error generating stack: ` + N.message + `
|
|
|
49226
49226
|
}
|
|
49227
49227
|
function ot(a, s, m) {
|
|
49228
49228
|
a.pendingLanes |= s, a.suspendedLanes &= ~s;
|
|
49229
|
-
var N = 31 -
|
|
49229
|
+
var N = 31 - Rr(s);
|
|
49230
49230
|
a.entangledLanes |= s, a.entanglements[N] = a.entanglements[N] | 1073741824 | m & 261930;
|
|
49231
49231
|
}
|
|
49232
49232
|
function Nr(a, s) {
|
|
49233
49233
|
var m = a.entangledLanes |= s;
|
|
49234
49234
|
for (a = a.entanglements; m; ) {
|
|
49235
|
-
var N = 31 -
|
|
49235
|
+
var N = 31 - Rr(m), R = 1 << N;
|
|
49236
49236
|
R & s | a[N] & s && (a[N] |= s), m &= ~R;
|
|
49237
49237
|
}
|
|
49238
49238
|
}
|
|
@@ -49294,9 +49294,9 @@ Error generating stack: ` + N.message + `
|
|
|
49294
49294
|
Q.p = m;
|
|
49295
49295
|
}
|
|
49296
49296
|
}
|
|
49297
|
-
var ir = Math.random().toString(36).slice(2), mr = "__reactFiber$" + ir,
|
|
49297
|
+
var ir = Math.random().toString(36).slice(2), mr = "__reactFiber$" + ir, Tr = "__reactProps$" + ir, Ir = "__reactContainer$" + ir, xa = "__reactEvents$" + ir, gn = "__reactListeners$" + ir, On = "__reactHandles$" + ir, $n = "__reactResources$" + ir, gt = "__reactMarker$" + ir;
|
|
49298
49298
|
function Kt(a) {
|
|
49299
|
-
delete a[mr], delete a[
|
|
49299
|
+
delete a[mr], delete a[Tr], delete a[xa], delete a[gn], delete a[On];
|
|
49300
49300
|
}
|
|
49301
49301
|
function Zr(a) {
|
|
49302
49302
|
var s = a[mr];
|
|
@@ -49673,7 +49673,7 @@ Error generating stack: ` + N.message + `
|
|
|
49673
49673
|
function Ht(a) {
|
|
49674
49674
|
var s = xr(a);
|
|
49675
49675
|
if (s && (a = s.stateNode)) {
|
|
49676
|
-
var m = a[
|
|
49676
|
+
var m = a[Tr] || null;
|
|
49677
49677
|
e: switch (a = s.stateNode, s.type) {
|
|
49678
49678
|
case "input":
|
|
49679
49679
|
if (Ga(
|
|
@@ -49694,7 +49694,7 @@ Error generating stack: ` + N.message + `
|
|
|
49694
49694
|
), s = 0; s < m.length; s++) {
|
|
49695
49695
|
var N = m[s];
|
|
49696
49696
|
if (N !== a && N.form === a.form) {
|
|
49697
|
-
var R = N[
|
|
49697
|
+
var R = N[Tr] || null;
|
|
49698
49698
|
if (!R) throw Error(u(90));
|
|
49699
49699
|
Ga(
|
|
49700
49700
|
N,
|
|
@@ -49735,7 +49735,7 @@ Error generating stack: ` + N.message + `
|
|
|
49735
49735
|
function Qt(a, s) {
|
|
49736
49736
|
var m = a.stateNode;
|
|
49737
49737
|
if (m === null) return null;
|
|
49738
|
-
var N = m[
|
|
49738
|
+
var N = m[Tr] || null;
|
|
49739
49739
|
if (N === null) return null;
|
|
49740
49740
|
m = N[s];
|
|
49741
49741
|
e: switch (s) {
|
|
@@ -49964,11 +49964,11 @@ Error generating stack: ` + N.message + `
|
|
|
49964
49964
|
ctrlKey: 0,
|
|
49965
49965
|
shiftKey: 0,
|
|
49966
49966
|
getModifierState: vi
|
|
49967
|
-
}), Gt = er(Te),
|
|
49967
|
+
}), Gt = er(Te), Cr = _({}, wr, {
|
|
49968
49968
|
propertyName: 0,
|
|
49969
49969
|
elapsedTime: 0,
|
|
49970
49970
|
pseudoElement: 0
|
|
49971
|
-
}), Jr = er(
|
|
49971
|
+
}), Jr = er(Cr), $a = _({}, br, {
|
|
49972
49972
|
deltaX: function(a) {
|
|
49973
49973
|
return "deltaX" in a ? a.deltaX : "wheelDeltaX" in a ? -a.wheelDeltaX : 0;
|
|
49974
49974
|
},
|
|
@@ -50070,21 +50070,21 @@ Error generating stack: ` + N.message + `
|
|
|
50070
50070
|
var s = La(a);
|
|
50071
50071
|
if (Hr(s)) return a;
|
|
50072
50072
|
}
|
|
50073
|
-
function
|
|
50073
|
+
function Dr(a, s) {
|
|
50074
50074
|
if (a === "change") return s;
|
|
50075
50075
|
}
|
|
50076
50076
|
var Br = !1;
|
|
50077
50077
|
if (Pr) {
|
|
50078
|
-
var
|
|
50078
|
+
var Mr;
|
|
50079
50079
|
if (Pr) {
|
|
50080
50080
|
var aa = "oninput" in document;
|
|
50081
50081
|
if (!aa) {
|
|
50082
50082
|
var zn = document.createElement("div");
|
|
50083
50083
|
zn.setAttribute("oninput", "return;"), aa = typeof zn.oninput == "function";
|
|
50084
50084
|
}
|
|
50085
|
-
|
|
50086
|
-
} else
|
|
50087
|
-
Br =
|
|
50085
|
+
Mr = aa;
|
|
50086
|
+
} else Mr = !1;
|
|
50087
|
+
Br = Mr && (!document.documentMode || 9 < document.documentMode);
|
|
50088
50088
|
}
|
|
50089
50089
|
function Fn() {
|
|
50090
50090
|
Wn && (Wn.detachEvent("onpropertychange", nn), xe = Wn = null);
|
|
@@ -50270,7 +50270,7 @@ Error generating stack: ` + N.message + `
|
|
|
50270
50270
|
N !== null && (N.lanes |= m);
|
|
50271
50271
|
for (var R = !1, U = a.return; U !== null; )
|
|
50272
50272
|
U.childLanes |= m, N = U.alternate, N !== null && (N.childLanes |= m), U.tag === 22 && (a = U.stateNode, a === null || a._visibility & 1 || (R = !0)), a = U, U = U.return;
|
|
50273
|
-
return a.tag === 3 ? (U = a.stateNode, R && s !== null && (R = 31 -
|
|
50273
|
+
return a.tag === 3 ? (U = a.stateNode, R && s !== null && (R = 31 - Rr(m), a = U.hiddenUpdates, N = a[R], N === null ? a[R] = [s] : N.push(s), s.lane = m | 536870912), U) : null;
|
|
50274
50274
|
}
|
|
50275
50275
|
function Sc(a) {
|
|
50276
50276
|
if (50 < Xf)
|
|
@@ -50401,12 +50401,12 @@ Error generating stack: ` + N.message + `
|
|
|
50401
50401
|
Ce[et++] = Zt, Ce[et++] = _r, Ce[et++] = ct, ct = a;
|
|
50402
50402
|
var N = Zt;
|
|
50403
50403
|
a = _r;
|
|
50404
|
-
var R = 32 -
|
|
50404
|
+
var R = 32 - Rr(N) - 1;
|
|
50405
50405
|
N &= ~(1 << R), m += 1;
|
|
50406
|
-
var U = 32 -
|
|
50406
|
+
var U = 32 - Rr(s) + R;
|
|
50407
50407
|
if (30 < U) {
|
|
50408
50408
|
var ee = R - R % 5;
|
|
50409
|
-
U = (N & (1 << ee) - 1).toString(32), N >>= ee, R -= ee, Zt = 1 << 32 -
|
|
50409
|
+
U = (N & (1 << ee) - 1).toString(32), N >>= ee, R -= ee, Zt = 1 << 32 - Rr(s) + R | m << R | N, _r = U + a;
|
|
50410
50410
|
} else
|
|
50411
50411
|
Zt = 1 << U | m << R | N, _r = a;
|
|
50412
50412
|
}
|
|
@@ -50435,7 +50435,7 @@ Error generating stack: ` + N.message + `
|
|
|
50435
50435
|
}
|
|
50436
50436
|
function Ec(a) {
|
|
50437
50437
|
var s = a.stateNode, m = a.type, N = a.memoizedProps;
|
|
50438
|
-
switch (s[mr] = a, s[
|
|
50438
|
+
switch (s[mr] = a, s[Tr] = N, m) {
|
|
50439
50439
|
case "dialog":
|
|
50440
50440
|
Mn("cancel", s), Mn("close", s);
|
|
50441
50441
|
break;
|
|
@@ -52259,7 +52259,7 @@ Error generating stack: ` + N.message + `
|
|
|
52259
52259
|
var a = Ds(), s = mi.identifierPrefix;
|
|
52260
52260
|
if (Nn) {
|
|
52261
52261
|
var m = _r, N = Zt;
|
|
52262
|
-
m = (N & ~(1 << 32 -
|
|
52262
|
+
m = (N & ~(1 << 32 - Rr(N) - 1)).toString(32) + m, s = "_" + s + "R_" + m, m = x0++, 0 < m && (s += "H" + m.toString(32)), s += "_";
|
|
52263
52263
|
} else
|
|
52264
52264
|
m = dx++, s = "_" + s + "r_" + m.toString(32) + "_";
|
|
52265
52265
|
return a.memoizedState = s;
|
|
@@ -53280,7 +53280,7 @@ Error generating stack: ` + N.message + `
|
|
|
53280
53280
|
null
|
|
53281
53281
|
)) ? s.memoizedState = m : Nn || (m = s.type, a = s.pendingProps, N = Yc(
|
|
53282
53282
|
Ee.current
|
|
53283
|
-
).createElement(m), N[mr] = s, N[
|
|
53283
|
+
).createElement(m), N[mr] = s, N[Tr] = a, Zs(N, m, a), Yr(N), s.stateNode = N) : s.memoizedState = oh(
|
|
53284
53284
|
s.type,
|
|
53285
53285
|
a.memoizedProps,
|
|
53286
53286
|
s.pendingProps,
|
|
@@ -53555,7 +53555,7 @@ Error generating stack: ` + N.message + `
|
|
|
53555
53555
|
U = typeof N.is == "string" ? ee.createElement(R, { is: N.is }) : ee.createElement(R);
|
|
53556
53556
|
}
|
|
53557
53557
|
}
|
|
53558
|
-
U[mr] = s, U[
|
|
53558
|
+
U[mr] = s, U[Tr] = N;
|
|
53559
53559
|
e: for (ee = s.child; ee !== null; ) {
|
|
53560
53560
|
if (ee.tag === 5 || ee.tag === 6)
|
|
53561
53561
|
U.appendChild(ee.stateNode);
|
|
@@ -53903,7 +53903,7 @@ Error generating stack: ` + N.message + `
|
|
|
53903
53903
|
function Bp(a, s, m) {
|
|
53904
53904
|
try {
|
|
53905
53905
|
var N = a.stateNode;
|
|
53906
|
-
Tv(N, a.type, m, s), N[
|
|
53906
|
+
Tv(N, a.type, m, s), N[Tr] = s;
|
|
53907
53907
|
} catch (R) {
|
|
53908
53908
|
ci(a, a.return, R);
|
|
53909
53909
|
}
|
|
@@ -53945,7 +53945,7 @@ Error generating stack: ` + N.message + `
|
|
|
53945
53945
|
try {
|
|
53946
53946
|
for (var N = a.type, R = s.attributes; R.length; )
|
|
53947
53947
|
s.removeAttributeNode(R[0]);
|
|
53948
|
-
Zs(s, N, m), s[mr] = a, s[
|
|
53948
|
+
Zs(s, N, m), s[mr] = a, s[Tr] = m;
|
|
53949
53949
|
} catch (U) {
|
|
53950
53950
|
ci(a, a.return, U);
|
|
53951
53951
|
}
|
|
@@ -55341,7 +55341,7 @@ Error generating stack: ` + N.message + `
|
|
|
55341
55341
|
function ic(a, s, m, N) {
|
|
55342
55342
|
s &= ~Fp, s &= ~Td, a.suspendedLanes |= s, a.pingedLanes &= ~s, N && (a.warmLanes |= s), N = a.expirationTimes;
|
|
55343
55343
|
for (var R = s; 0 < R; ) {
|
|
55344
|
-
var U = 31 -
|
|
55344
|
+
var U = 31 - Rr(R), ee = 1 << U;
|
|
55345
55345
|
N[U] = -1, R &= ~ee;
|
|
55346
55346
|
}
|
|
55347
55347
|
m !== 0 && ot(a, m, s);
|
|
@@ -55366,7 +55366,7 @@ Error generating stack: ` + N.message + `
|
|
|
55366
55366
|
var N = a.entangledLanes;
|
|
55367
55367
|
if (N !== 0)
|
|
55368
55368
|
for (a = a.entanglements, N &= s; 0 < N; ) {
|
|
55369
|
-
var R = 31 -
|
|
55369
|
+
var R = 31 - Rr(N), U = 1 << R;
|
|
55370
55370
|
s |= a[R], N &= ~U;
|
|
55371
55371
|
}
|
|
55372
55372
|
return Ul = s, Es(), m;
|
|
@@ -55880,7 +55880,7 @@ Error generating stack: ` + N.message + `
|
|
|
55880
55880
|
if (R === 0) var U = 0;
|
|
55881
55881
|
else {
|
|
55882
55882
|
var ee = N.suspendedLanes, he = N.pingedLanes;
|
|
55883
|
-
U = (1 << 31 -
|
|
55883
|
+
U = (1 << 31 - Rr(42 | a) + 1) - 1, U &= R & ~(ee & ~he), U = U & 201326741 ? U & 201326741 | 1 : U ? U | 2 : 0;
|
|
55884
55884
|
}
|
|
55885
55885
|
U !== 0 && (m = !0, Md(N, U));
|
|
55886
55886
|
} else
|
|
@@ -55910,7 +55910,7 @@ Error generating stack: ` + N.message + `
|
|
|
55910
55910
|
}
|
|
55911
55911
|
function yv(a, s) {
|
|
55912
55912
|
for (var m = a.suspendedLanes, N = a.pingedLanes, R = a.expirationTimes, U = a.pendingLanes & -62914561; 0 < U; ) {
|
|
55913
|
-
var ee = 31 -
|
|
55913
|
+
var ee = 31 - Rr(U), he = 1 << ee, Ue = R[ee];
|
|
55914
55914
|
Ue === -1 ? ((he & m) === 0 || (he & N) !== 0) && (R[ee] = or(he, s)) : Ue <= s && (a.expiredLanes |= he), U &= ~he;
|
|
55915
55915
|
}
|
|
55916
55916
|
if (s = mi, m = Sn, m = $e(
|
|
@@ -55981,9 +55981,9 @@ Error generating stack: ` + N.message + `
|
|
|
55981
55981
|
function Y0(a, s, m, N, R) {
|
|
55982
55982
|
if (s === "submit" && m && m.stateNode === R) {
|
|
55983
55983
|
var U = Wx(
|
|
55984
|
-
(R[
|
|
55984
|
+
(R[Tr] || null).action
|
|
55985
55985
|
), ee = N.submitter;
|
|
55986
|
-
ee && (s = (s = ee[
|
|
55986
|
+
ee && (s = (s = ee[Tr] || null) ? Wx(s.formAction) : ee.getAttribute("formAction"), s !== null && (U = s, ee = null));
|
|
55987
55987
|
var he = new Xr(
|
|
55988
55988
|
"action",
|
|
55989
55989
|
"action",
|
|
@@ -56334,7 +56334,7 @@ Error generating stack: ` + N.message + `
|
|
|
56334
56334
|
}
|
|
56335
56335
|
e: {
|
|
56336
56336
|
if (dt = lt ? La(lt) : window, St = dt.nodeName && dt.nodeName.toLowerCase(), St === "select" || St === "input" && dt.type === "file")
|
|
56337
|
-
var Yn =
|
|
56337
|
+
var Yn = Dr;
|
|
56338
56338
|
else if (zi(dt))
|
|
56339
56339
|
if (Br)
|
|
56340
56340
|
Yn = Cl;
|
|
@@ -56343,7 +56343,7 @@ Error generating stack: ` + N.message + `
|
|
|
56343
56343
|
var ca = Is;
|
|
56344
56344
|
}
|
|
56345
56345
|
else
|
|
56346
|
-
St = dt.nodeName, !St || St.toLowerCase() !== "input" || dt.type !== "checkbox" && dt.type !== "radio" ? lt && Pa(lt.elementType) && (Yn =
|
|
56346
|
+
St = dt.nodeName, !St || St.toLowerCase() !== "input" || dt.type !== "checkbox" && dt.type !== "radio" ? lt && Pa(lt.elementType) && (Yn = Dr) : Yn = Fs;
|
|
56347
56347
|
if (Yn && (Yn = Yn(a, lt))) {
|
|
56348
56348
|
Zu(
|
|
56349
56349
|
Yt,
|
|
@@ -56758,7 +56758,7 @@ Error generating stack: ` + N.message + `
|
|
|
56758
56758
|
default:
|
|
56759
56759
|
if (!Re.hasOwnProperty(m))
|
|
56760
56760
|
e: {
|
|
56761
|
-
if (m[0] === "o" && m[1] === "n" && (R = m.endsWith("Capture"), s = m.slice(2, R ? m.length - 7 : void 0), U = a[
|
|
56761
|
+
if (m[0] === "o" && m[1] === "n" && (R = m.endsWith("Capture"), s = m.slice(2, R ? m.length - 7 : void 0), U = a[Tr] || null, U = U != null ? U[m] : null, typeof U == "function" && a.removeEventListener(s, U, R), typeof N == "function")) {
|
|
56762
56762
|
typeof U != "function" && U !== null && (m in a ? a[m] = null : a.hasAttribute(m) && a.removeAttribute(m)), a.addEventListener(s, N, R);
|
|
56763
56763
|
break e;
|
|
56764
56764
|
}
|
|
@@ -57982,7 +57982,7 @@ Error generating stack: ` + N.message + `
|
|
|
57982
57982
|
if (ee !== 0) {
|
|
57983
57983
|
var he = U;
|
|
57984
57984
|
for (he.pendingLanes |= 2, he.entangledLanes |= 2; ee; ) {
|
|
57985
|
-
var Ue = 1 << 31 -
|
|
57985
|
+
var Ue = 1 << 31 - Rr(ee);
|
|
57986
57986
|
he.entanglements[1] |= Ue, ee &= ~Ue;
|
|
57987
57987
|
}
|
|
57988
57988
|
Nu(U), (Qn & 6) === 0 && (ni = fr() + 500, oc(0));
|
|
@@ -58321,13 +58321,13 @@ Error generating stack: ` + N.message + `
|
|
|
58321
58321
|
u2(m), m.blockedOn === null && $i.shift();
|
|
58322
58322
|
if (m = (a.ownerDocument || a).$$reactFormReplay, m != null)
|
|
58323
58323
|
for (N = 0; N < m.length; N += 3) {
|
|
58324
|
-
var R = m[N], U = m[N + 1], ee = R[
|
|
58324
|
+
var R = m[N], U = m[N + 1], ee = R[Tr] || null;
|
|
58325
58325
|
if (typeof U == "function")
|
|
58326
58326
|
ee || d2(m);
|
|
58327
58327
|
else if (ee) {
|
|
58328
58328
|
var he = null;
|
|
58329
58329
|
if (U && U.hasAttribute("formAction")) {
|
|
58330
|
-
if (R = U, ee = U[
|
|
58330
|
+
if (R = U, ee = U[Tr] || null)
|
|
58331
58331
|
he = ee.formAction;
|
|
58332
58332
|
else if (dh(R) !== null) continue;
|
|
58333
58333
|
} else he = ee.action;
|
|
@@ -59406,7 +59406,7 @@ Error generating stack: ` + G.message + `
|
|
|
59406
59406
|
}), S.clear()), t &= ~e;
|
|
59407
59407
|
}
|
|
59408
59408
|
}
|
|
59409
|
-
function
|
|
59409
|
+
function Rr(e) {
|
|
59410
59410
|
return e &= -e, xs < e ? Xs < e ? (e & 134217727) !== 0 ? so : Qc : Xs : xs;
|
|
59411
59411
|
}
|
|
59412
59412
|
function _a() {
|
|
@@ -59630,7 +59630,7 @@ Error generating stack: ` + G.message + `
|
|
|
59630
59630
|
}
|
|
59631
59631
|
);
|
|
59632
59632
|
}
|
|
59633
|
-
function
|
|
59633
|
+
function Tr(e, t) {
|
|
59634
59634
|
t.checked === void 0 || t.defaultChecked === void 0 || f2 || (console.error(
|
|
59635
59635
|
"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
|
|
59636
59636
|
nt() || "A component",
|
|
@@ -61276,7 +61276,7 @@ This will cause a hydration error.%s`,
|
|
|
61276
61276
|
i
|
|
61277
61277
|
));
|
|
61278
61278
|
}
|
|
61279
|
-
function
|
|
61279
|
+
function Cr(e, t, i, p) {
|
|
61280
61280
|
!ji || t <= e || (i = (i & 738197653) === i ? "tertiary-dark" : "primary-dark", p ? p.run(
|
|
61281
61281
|
console.timeStamp.bind(
|
|
61282
61282
|
console,
|
|
@@ -61617,7 +61617,7 @@ Check the render method of \`` + $ + "`."), $ = 29, i = Error(
|
|
|
61617
61617
|
function rr(e, t, i) {
|
|
61618
61618
|
return e = x(6, e, null, t), e.lanes = i, e;
|
|
61619
61619
|
}
|
|
61620
|
-
function
|
|
61620
|
+
function Dr(e) {
|
|
61621
61621
|
var t = x(18, null, null, qa);
|
|
61622
61622
|
return t.stateNode = e, t;
|
|
61623
61623
|
}
|
|
@@ -61633,7 +61633,7 @@ Check the render method of \`` + $ + "`."), $ = 29, i = Error(
|
|
|
61633
61633
|
implementation: e.implementation
|
|
61634
61634
|
}, t;
|
|
61635
61635
|
}
|
|
61636
|
-
function
|
|
61636
|
+
function Mr(e, t) {
|
|
61637
61637
|
if (typeof e == "object" && e !== null) {
|
|
61638
61638
|
var i = G_.get(e);
|
|
61639
61639
|
return i !== void 0 ? i : (t = {
|
|
@@ -61726,7 +61726,7 @@ Check the render method of \`` + $ + "`."), $ = 29, i = Error(
|
|
|
61726
61726
|
function Gs(e) {
|
|
61727
61727
|
var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : !1, i = "", p = Fl;
|
|
61728
61728
|
throw p !== null && (Fl = null, i = ka(p)), Xe(
|
|
61729
|
-
|
|
61729
|
+
Mr(
|
|
61730
61730
|
Error(
|
|
61731
61731
|
"Hydration failed because the server rendered " + (t ? "text" : "HTML") + ` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
61732
61732
|
|
|
@@ -61772,7 +61772,7 @@ https://react.dev/link/hydration-mismatch` + i
|
|
|
61772
61772
|
Ha("toggle", t);
|
|
61773
61773
|
break;
|
|
61774
61774
|
case "input":
|
|
61775
|
-
vt("input", p), Ha("invalid", t),
|
|
61775
|
+
vt("input", p), Ha("invalid", t), Tr(t, p), xa(
|
|
61776
61776
|
t,
|
|
61777
61777
|
p.value,
|
|
61778
61778
|
p.defaultValue,
|
|
@@ -64445,7 +64445,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
64445
64445
|
}
|
|
64446
64446
|
if (Un)
|
|
64447
64447
|
return ed = !0, t = Gl.current, t !== null ? ((t.flags & 65536) === 0 && (t.flags |= 256), t.flags |= 65536, t.lanes = S, p !== Z_ && Xe(
|
|
64448
|
-
|
|
64448
|
+
Mr(
|
|
64449
64449
|
Error(
|
|
64450
64450
|
"There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",
|
|
64451
64451
|
{ cause: p }
|
|
@@ -64453,19 +64453,19 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
64453
64453
|
i
|
|
64454
64454
|
)
|
|
64455
64455
|
)) : (p !== Z_ && Xe(
|
|
64456
|
-
|
|
64456
|
+
Mr(
|
|
64457
64457
|
Error(
|
|
64458
64458
|
"There was an error while hydrating but React was able to recover by instead client rendering the entire root.",
|
|
64459
64459
|
{ cause: p }
|
|
64460
64460
|
),
|
|
64461
64461
|
i
|
|
64462
64462
|
)
|
|
64463
|
-
), e = e.current.alternate, e.flags |= 65536, S &= -S, e.lanes |= S, p =
|
|
64463
|
+
), e = e.current.alternate, e.flags |= 65536, S &= -S, e.lanes |= S, p = Mr(p, i), S = bp(
|
|
64464
64464
|
e.stateNode,
|
|
64465
64465
|
p,
|
|
64466
64466
|
S
|
|
64467
64467
|
), Ec(e, S), as !== Eh && (as = ym)), !1;
|
|
64468
|
-
var A =
|
|
64468
|
+
var A = Mr(
|
|
64469
64469
|
Error(
|
|
64470
64470
|
"There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",
|
|
64471
64471
|
{ cause: p }
|
|
@@ -64473,7 +64473,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
64473
64473
|
i
|
|
64474
64474
|
);
|
|
64475
64475
|
if (ky === null ? ky = [A] : ky.push(A), as !== Eh && (as = ym), t === null) return !0;
|
|
64476
|
-
p =
|
|
64476
|
+
p = Mr(p, i), i = t;
|
|
64477
64477
|
do {
|
|
64478
64478
|
switch (i.tag) {
|
|
64479
64479
|
case 3:
|
|
@@ -64656,7 +64656,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
64656
64656
|
treeContext: Is(),
|
|
64657
64657
|
retryLane: 536870912,
|
|
64658
64658
|
hydrationErrors: null
|
|
64659
|
-
}, t.memoizedState = p, p =
|
|
64659
|
+
}, t.memoizedState = p, p = Dr(i), p.return = t, t.child = p, Eo = t, Hi = null)) : i = null, i === null)
|
|
64660
64660
|
throw fi(t, e), Gs(t);
|
|
64661
64661
|
return t.lanes = 536870912, null;
|
|
64662
64662
|
}
|
|
@@ -64766,7 +64766,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
|
|
|
64766
64766
|
G,
|
|
64767
64767
|
$,
|
|
64768
64768
|
t,
|
|
64769
|
-
|
|
64769
|
+
Mr(A, t)
|
|
64770
64770
|
), Ec(t, G);
|
|
64771
64771
|
}
|
|
64772
64772
|
if (Ya(t), t.stateNode === null) {
|
|
@@ -65015,7 +65015,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
|
|
|
65015
65015
|
treeContext: Is(),
|
|
65016
65016
|
retryLane: 536870912,
|
|
65017
65017
|
hydrationErrors: null
|
|
65018
|
-
}, t.memoizedState = p, p =
|
|
65018
|
+
}, t.memoizedState = p, p = Dr(i), p.return = t, t.child = p, Eo = t, Hi = null)) : i = null, i === null)
|
|
65019
65019
|
throw fi(t, e), Gs(t);
|
|
65020
65020
|
return pv(i) ? t.lanes = 32 : t.lanes = 536870912, null;
|
|
65021
65021
|
}
|
|
@@ -65583,7 +65583,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
|
|
|
65583
65583
|
);
|
|
65584
65584
|
break e;
|
|
65585
65585
|
} else if (p !== S) {
|
|
65586
|
-
S =
|
|
65586
|
+
S = Mr(
|
|
65587
65587
|
Error(
|
|
65588
65588
|
"This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."
|
|
65589
65589
|
),
|
|
@@ -68672,7 +68672,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
68672
68672
|
Ic(wn, oo);
|
|
68673
68673
|
}
|
|
68674
68674
|
if (i = gs, gs = null, (t & 127) !== 0) {
|
|
68675
|
-
gs = ty, S = 0 <= td && td < cm ? cm : td, p = 0 <= dm && dm < cm ? cm : dm, A = 0 <= p ? p : 0 <= S ? S : oo, 0 <= N2 ? (Ci(2),
|
|
68675
|
+
gs = ty, S = 0 <= td && td < cm ? cm : td, p = 0 <= dm && dm < cm ? cm : dm, A = 0 <= p ? p : 0 <= S ? S : oo, 0 <= N2 ? (Ci(2), Cr(
|
|
68676
68676
|
N2,
|
|
68677
68677
|
A,
|
|
68678
68678
|
t,
|
|
@@ -68722,7 +68722,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
68722
68722
|
}
|
|
68723
68723
|
td = -1.1, _h = 0, J_ = W_ = null, N2 = -1.1, Mg = dm, dm = -1.1, cm = zs();
|
|
68724
68724
|
}
|
|
68725
|
-
if ((t & 4194048) !== 0 && (gs = ay, S = 0 <= Gd && Gd < Fd ? Fd : Gd, i = 0 <= zu && zu < Fd ? Fd : zu, p = 0 <= kh && kh < Fd ? Fd : kh, A = 0 <= p ? p : 0 <= i ? i : oo, 0 <= S2 ? (Ci(256),
|
|
68725
|
+
if ((t & 4194048) !== 0 && (gs = ay, S = 0 <= Gd && Gd < Fd ? Fd : Gd, i = 0 <= zu && zu < Fd ? Fd : zu, p = 0 <= kh && kh < Fd ? Fd : kh, A = 0 <= p ? p : 0 <= i ? i : oo, 0 <= S2 ? (Ci(256), Cr(
|
|
68726
68726
|
S2,
|
|
68727
68727
|
A,
|
|
68728
68728
|
t,
|
|
@@ -68791,7 +68791,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
68791
68791
|
var i = En;
|
|
68792
68792
|
i === null ? (as = xy, N0(
|
|
68793
68793
|
e,
|
|
68794
|
-
|
|
68794
|
+
Mr(t, e.current)
|
|
68795
68795
|
)) : i.mode & yn && su(i);
|
|
68796
68796
|
}
|
|
68797
68797
|
function av() {
|
|
@@ -69037,7 +69037,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
69037
69037
|
)) {
|
|
69038
69038
|
as = xy, N0(
|
|
69039
69039
|
e,
|
|
69040
|
-
|
|
69040
|
+
Mr(i, e.current)
|
|
69041
69041
|
), En = null;
|
|
69042
69042
|
return;
|
|
69043
69043
|
}
|
|
@@ -69045,7 +69045,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
69045
69045
|
if (S !== null) throw En = S, A;
|
|
69046
69046
|
as = xy, N0(
|
|
69047
69047
|
e,
|
|
69048
|
-
|
|
69048
|
+
Mr(i, e.current)
|
|
69049
69049
|
), En = null;
|
|
69050
69050
|
return;
|
|
69051
69051
|
}
|
|
@@ -69306,7 +69306,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
69306
69306
|
e.pendingLanes
|
|
69307
69307
|
), km = 0, Ey = null);
|
|
69308
69308
|
var A = e.pendingLanes;
|
|
69309
|
-
if (A === 0 && (Dh = null), S || Hp(e), A =
|
|
69309
|
+
if (A === 0 && (Dh = null), S || Hp(e), A = Rr(t), p = p.stateNode, ys && typeof ys.onCommitFiberRoot == "function")
|
|
69310
69310
|
try {
|
|
69311
69311
|
var $ = (p.current.flags & 128) === 128;
|
|
69312
69312
|
switch (A) {
|
|
@@ -69376,7 +69376,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
69376
69376
|
if (js !== G2) return !1;
|
|
69377
69377
|
var e = Oh, t = w4;
|
|
69378
69378
|
w4 = 0;
|
|
69379
|
-
var i =
|
|
69379
|
+
var i = Rr(mc), p = so > i ? so : i;
|
|
69380
69380
|
i = Nt.T;
|
|
69381
69381
|
var S = ii.p;
|
|
69382
69382
|
try {
|
|
@@ -69466,7 +69466,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
69466
69466
|
}
|
|
69467
69467
|
}
|
|
69468
69468
|
function wo(e, t, i) {
|
|
69469
|
-
t =
|
|
69469
|
+
t = Mr(i, t), ip(t), t = bp(e.stateNode, t, 2), e = Io(e, t, 2), e !== null && (bt(e, 2), Ro(e));
|
|
69470
69470
|
}
|
|
69471
69471
|
function hn(e, t, i) {
|
|
69472
69472
|
if (Fg = !1, e.tag === 3)
|
|
@@ -69484,7 +69484,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
|
|
|
69484
69484
|
if (t.tag === 1) {
|
|
69485
69485
|
var p = t.stateNode;
|
|
69486
69486
|
if (typeof t.type.getDerivedStateFromError == "function" || typeof p.componentDidCatch == "function" && (Dh === null || !Dh.has(p))) {
|
|
69487
|
-
e =
|
|
69487
|
+
e = Mr(i, e), ip(e), i = vp(2), p = Io(t, i, 2), p !== null && (yp(
|
|
69488
69488
|
i,
|
|
69489
69489
|
p,
|
|
69490
69490
|
t,
|
|
@@ -69699,7 +69699,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
69699
69699
|
if (t = i & -i, t !== e.callbackPriority || Nt.actQueue !== null && p !== C4)
|
|
69700
69700
|
Vp(p);
|
|
69701
69701
|
else return t;
|
|
69702
|
-
switch (
|
|
69702
|
+
switch (Rr(i)) {
|
|
69703
69703
|
case xs:
|
|
69704
69704
|
case Xs:
|
|
69705
69705
|
i = mg;
|
|
@@ -70741,7 +70741,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
70741
70741
|
ni(e, t, p, Fe, i, null);
|
|
70742
70742
|
}
|
|
70743
70743
|
}
|
|
70744
|
-
|
|
70744
|
+
Tr(e, i), xa(
|
|
70745
70745
|
e,
|
|
70746
70746
|
A,
|
|
70747
70747
|
G,
|
|
@@ -75656,9 +75656,9 @@ function I9({
|
|
|
75656
75656
|
if (ir.defaultPrevented || ir.button !== 0 || ir.metaKey || ir.ctrlKey || ir.shiftKey || ir.altKey) return;
|
|
75657
75657
|
const mr = ir.target?.closest("a");
|
|
75658
75658
|
if (!mr) return;
|
|
75659
|
-
const
|
|
75660
|
-
if (!
|
|
75661
|
-
const Ir = lx(
|
|
75659
|
+
const Tr = mr.getAttribute("href");
|
|
75660
|
+
if (!Tr) return;
|
|
75661
|
+
const Ir = lx(Tr);
|
|
75662
75662
|
Ir && (Ir.kind === "post" && F ? (ir.preventDefault(), F(Ir.author, Ir.permlink)) : Ir.kind === "user" && Y && (ir.preventDefault(), Y(Ir.author)));
|
|
75663
75663
|
};
|
|
75664
75664
|
return Mt.addEventListener("click", yr), () => Mt.removeEventListener("click", yr);
|
|
@@ -75669,7 +75669,7 @@ function I9({
|
|
|
75669
75669
|
} catch {
|
|
75670
75670
|
return;
|
|
75671
75671
|
}
|
|
75672
|
-
})(), tr = ["hivesuite", "hreplier", "hrepiler", "hsnaps"],
|
|
75672
|
+
})(), tr = ["hivesuite", "hreplier", "hrepiler", "hsnaps"], Rr = Array.isArray(Xt?.tags) && Xt.tags.some((Mt) => tr.includes(String(Mt).toLowerCase())) || Array.isArray(ve) && ve.some((Mt) => tr.includes(String(Mt).toLowerCase())), ta = (["sagarkothari88", "hivesuite.app"].includes(r.author) || Xt?.developer === "sagarkothari88") && Rr ? Array.isArray(Xt?.tags) && Xt.tags.length > 0 ? Xt.tags[0] : "hivesuite" : null, ne = (r.body || "").replace(/<br\s*\/?>\s*\n?\s*<sub>\[via Apps from\]\(https:\/\/linktr\.ee\/sagarkothari88\)<\/sub>/gi, "").replace(/^(\s*(?:#[\p{L}\p{N}_-]+\s*(?:,\s*)?)+\s*)$/gimu, "").trim(), oe = /!\[[^\]]*\]\([^)]+\)/.test(ne) || /<img\s/i.test(ne), we = Array.isArray(Xt?.image) ? Xt.image : [], $e = qt(() => {
|
|
75673
75673
|
try {
|
|
75674
75674
|
return bb({
|
|
75675
75675
|
baseUrl: ie?.postBaseUrl ?? "https://peakd.com/",
|
|
@@ -75715,8 +75715,8 @@ function I9({
|
|
|
75715
75715
|
if (Mt.querySelectorAll("a").forEach((ir) => {
|
|
75716
75716
|
const mr = ir.getAttribute("href") ?? "";
|
|
75717
75717
|
if (!/https?:\/\/(?:www\.)?(?:odysee\.com|lbry\.tv)\//i.test(mr)) return;
|
|
75718
|
-
const
|
|
75719
|
-
if (!
|
|
75718
|
+
const Tr = w_(mr);
|
|
75719
|
+
if (!Tr) return;
|
|
75720
75720
|
const Ir = document.createElement("div");
|
|
75721
75721
|
Ir.style.cssText = "width:100%;aspect-ratio:16/9;background:#000;border-radius:0.5rem;overflow:hidden;margin:0.5rem 0", ir.replaceWith(Ir);
|
|
75722
75722
|
const xa = z6.createRoot(Ir);
|
|
@@ -75724,7 +75724,7 @@ function I9({
|
|
|
75724
75724
|
/* @__PURE__ */ n(
|
|
75725
75725
|
"iframe",
|
|
75726
75726
|
{
|
|
75727
|
-
src:
|
|
75727
|
+
src: Tr,
|
|
75728
75728
|
title: "Odysee Video",
|
|
75729
75729
|
style: { width: "100%", height: "100%", border: "none" },
|
|
75730
75730
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
@@ -75752,16 +75752,16 @@ function I9({
|
|
|
75752
75752
|
return mr > 0 ? mr.toFixed(3) : "";
|
|
75753
75753
|
}, [r.payout, r.pending_payout_value, r.author_payout_value, r.curator_payout_value]), ra = qt(() => {
|
|
75754
75754
|
if (!Ct) return;
|
|
75755
|
-
const Mt = parseFloat(String(r.pending_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, yr = parseFloat(String(r.author_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, ir = parseFloat(String(r.curator_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, mr = r.payout && r.payout > 0 ? r.payout : Mt > 0 ? Mt : yr + ir,
|
|
75755
|
+
const Mt = parseFloat(String(r.pending_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, yr = parseFloat(String(r.author_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, ir = parseFloat(String(r.curator_payout_value ?? "0").replace(/[^\d.]/g, "")) || 0, mr = r.payout && r.payout > 0 ? r.payout : Mt > 0 ? Mt : yr + ir, Tr = r;
|
|
75756
75756
|
return {
|
|
75757
75757
|
pendingValue: Mt,
|
|
75758
75758
|
authorValue: yr,
|
|
75759
75759
|
curatorValue: ir,
|
|
75760
75760
|
totalValue: mr,
|
|
75761
|
-
isPaidout: !!
|
|
75762
|
-
payoutAt:
|
|
75763
|
-
percentHbd:
|
|
75764
|
-
beneficiaries: (
|
|
75761
|
+
isPaidout: !!Tr.is_paidout,
|
|
75762
|
+
payoutAt: Tr.payout_at,
|
|
75763
|
+
percentHbd: Tr.percent_hbd ?? 1e4,
|
|
75764
|
+
beneficiaries: (Tr.beneficiaries ?? []).map((Ir) => ({
|
|
75765
75765
|
account: Ir.account,
|
|
75766
75766
|
weight: Ir.weight
|
|
75767
75767
|
}))
|
|
@@ -76396,7 +76396,7 @@ function wj({
|
|
|
76396
76396
|
}, fr = () => {
|
|
76397
76397
|
ye(null);
|
|
76398
76398
|
}, At = $t({ enabled: !1, percent: 100 }), ke = $t(J ?? []), Ke = async (Be, We, Dt, ht) => {
|
|
76399
|
-
const Xt = Be === r && We === o, { enabled: tr, percent:
|
|
76399
|
+
const Xt = Be === r && We === o, { enabled: tr, percent: Rr } = At.current, _a = Xt && tr ? Rr : null, ea = ht ?? ke.current;
|
|
76400
76400
|
if (d) {
|
|
76401
76401
|
try {
|
|
76402
76402
|
if (await Promise.resolve(d(Be, We, Dt, _a, ea)) === !1) return !1;
|
|
@@ -76973,7 +76973,7 @@ function Aq({
|
|
|
76973
76973
|
}
|
|
76974
76974
|
We(!0);
|
|
76975
76975
|
let Ne = !0;
|
|
76976
|
-
return
|
|
76976
|
+
return Or.getUserBlogs(r, 12).then((_t) => {
|
|
76977
76977
|
Ne && ft(_t || []);
|
|
76978
76978
|
}).catch((_t) => {
|
|
76979
76979
|
console.error("Failed to load recommended posts:", _t);
|
|
@@ -76985,9 +76985,9 @@ function Aq({
|
|
|
76985
76985
|
}, [r, Ae]);
|
|
76986
76986
|
const Xt = qt(() => bt.findIndex(
|
|
76987
76987
|
(Ne) => Ne.permlink.toLowerCase() === o.toLowerCase()
|
|
76988
|
-
), [bt, o]), tr = Xt > 0 ? bt[Xt - 1] : null,
|
|
76988
|
+
), [bt, o]), tr = Xt > 0 ? bt[Xt - 1] : null, Rr = Xt >= 0 && Xt < bt.length - 1 ? bt[Xt + 1] : null, _a = () => {
|
|
76989
76989
|
Dt.current?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
76990
|
-
}, { text: ea } = E9(ke?.title), [ta, pa] = W(null), [ne, oe] = W(!0), [we, $e] = W(null), [Et, or] = W(null), [vt, Ct] = W(!1), [ra, va] = W(!1), [ot, Nr] = W(!1), [Wt, fa] = W(!1), [nr, Mt] = W(!1), yr = $t(null), ir = $t(null), mr = $t(null), [
|
|
76990
|
+
}, { text: ea } = E9(ke?.title), [ta, pa] = W(null), [ne, oe] = W(!0), [we, $e] = W(null), [Et, or] = W(null), [vt, Ct] = W(!1), [ra, va] = W(!1), [ot, Nr] = W(!1), [Wt, fa] = W(!1), [nr, Mt] = W(!1), yr = $t(null), ir = $t(null), mr = $t(null), [Tr, Ir] = W([]), [xa, gn] = W(!1), [On, $n] = W([]), [gt, Kt] = W(!1), [Zr, xr] = W([]), [La, zr] = W(0), Yr = It((Ne, _t = 0) => {
|
|
76991
76991
|
if (!Ne) return _t;
|
|
76992
76992
|
Ne.querySelectorAll(".tts-word-span").forEach((ur) => {
|
|
76993
76993
|
const Qt = ur.parentNode;
|
|
@@ -77485,12 +77485,12 @@ function Aq({
|
|
|
77485
77485
|
qe(() => {
|
|
77486
77486
|
Za();
|
|
77487
77487
|
}, [Za]), qe(() => {
|
|
77488
|
-
!ke || Lt?.content_type !== "poll" || (Ct(!0),
|
|
77488
|
+
!ke || Lt?.content_type !== "poll" || (Ct(!0), Or.getPollDetail(ke.author, ke.permlink).then((Ne) => or(Ne)).catch(() => or(null)).finally(() => Ct(!1)));
|
|
77489
77489
|
}, [ke?.author, ke?.permlink, Lt?.content_type]), qe(() => {
|
|
77490
77490
|
(async () => {
|
|
77491
77491
|
if (r)
|
|
77492
77492
|
try {
|
|
77493
|
-
const Pt = (await
|
|
77493
|
+
const Pt = (await Or.getProfile(r))?.result;
|
|
77494
77494
|
if (!Pt) return;
|
|
77495
77495
|
pa({
|
|
77496
77496
|
username: Pt.name,
|
|
@@ -77755,11 +77755,11 @@ function Aq({
|
|
|
77755
77755
|
{
|
|
77756
77756
|
type: "button",
|
|
77757
77757
|
onClick: () => {
|
|
77758
|
-
|
|
77758
|
+
Rr && ge?.(Rr.author, Rr.permlink);
|
|
77759
77759
|
},
|
|
77760
|
-
disabled: !
|
|
77760
|
+
disabled: !Rr,
|
|
77761
77761
|
className: "p-1 hover:bg-[var(--hrk-bg-surface)] disabled:opacity-20 disabled:hover:bg-transparent rounded transition-colors flex-shrink-0 cursor-pointer disabled:cursor-not-allowed",
|
|
77762
|
-
title:
|
|
77762
|
+
title: Rr ? `Next: ${Rr.title}` : "No next post",
|
|
77763
77763
|
children: /* @__PURE__ */ n(xf, { className: "h-4 w-4 text-[var(--hrk-text-secondary)]" })
|
|
77764
77764
|
}
|
|
77765
77765
|
)
|
|
@@ -77913,7 +77913,7 @@ function Aq({
|
|
|
77913
77913
|
)
|
|
77914
77914
|
] }),
|
|
77915
77915
|
bt.length > 0 && /* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
|
|
77916
|
-
/* @__PURE__ */ n("span", { className: "text-[11px] font-semibold text-white bg-gray-900 border border-gray-600 px-3 py-1 rounded-full shadow-lg whitespace-nowrap max-w-[160px] truncate", children: tr ?
|
|
77916
|
+
/* @__PURE__ */ n("span", { className: "text-[11px] font-semibold text-white bg-gray-900 border border-gray-600 px-3 py-1 rounded-full shadow-lg whitespace-nowrap max-w-[160px] truncate", children: tr ? "Previous Post" : "No previous" }),
|
|
77917
77917
|
/* @__PURE__ */ n(
|
|
77918
77918
|
"button",
|
|
77919
77919
|
{
|
|
@@ -77930,18 +77930,18 @@ function Aq({
|
|
|
77930
77930
|
)
|
|
77931
77931
|
] }),
|
|
77932
77932
|
bt.length > 0 && /* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
|
|
77933
|
-
/* @__PURE__ */ n("span", { className: "text-[11px] font-semibold text-white bg-gray-900 border border-gray-600 px-3 py-1 rounded-full shadow-lg whitespace-nowrap max-w-[160px] truncate", children:
|
|
77933
|
+
/* @__PURE__ */ n("span", { className: "text-[11px] font-semibold text-white bg-gray-900 border border-gray-600 px-3 py-1 rounded-full shadow-lg whitespace-nowrap max-w-[160px] truncate", children: Rr ? "Next Post" : "No next" }),
|
|
77934
77934
|
/* @__PURE__ */ n(
|
|
77935
77935
|
"button",
|
|
77936
77936
|
{
|
|
77937
77937
|
type: "button",
|
|
77938
77938
|
onClick: () => {
|
|
77939
|
-
|
|
77939
|
+
Rr && (ge?.(Rr.author, Rr.permlink), fa(!1));
|
|
77940
77940
|
},
|
|
77941
|
-
disabled: !
|
|
77941
|
+
disabled: !Rr,
|
|
77942
77942
|
className: "w-11 h-11 flex items-center justify-center bg-white/20 backdrop-blur-md border border-white/30 rounded-full shadow-lg disabled:opacity-25 hover:bg-white/30 hover:scale-110 active:scale-95 transition-all duration-150 cursor-pointer disabled:cursor-not-allowed",
|
|
77943
77943
|
"aria-label": "Next post",
|
|
77944
|
-
title:
|
|
77944
|
+
title: Rr ? `Next: ${Rr.title}` : "No next post",
|
|
77945
77945
|
children: /* @__PURE__ */ n(xf, { className: "h-5 w-5 text-white" })
|
|
77946
77946
|
}
|
|
77947
77947
|
)
|
|
@@ -78158,11 +78158,11 @@ function Aq({
|
|
|
78158
78158
|
}
|
|
78159
78159
|
}
|
|
78160
78160
|
}, be = async () => {
|
|
78161
|
-
if (!(!qr || xa ||
|
|
78161
|
+
if (!(!qr || xa || Tr.length === 0)) {
|
|
78162
78162
|
gn(!0);
|
|
78163
78163
|
try {
|
|
78164
|
-
if (await Promise.resolve(je?.(ke.author, ke.permlink,
|
|
78165
|
-
$n(
|
|
78164
|
+
if (await Promise.resolve(je?.(ke.author, ke.permlink, Tr)) === !1) return;
|
|
78165
|
+
$n(Tr), Ir([]);
|
|
78166
78166
|
} finally {
|
|
78167
78167
|
gn(!1);
|
|
78168
78168
|
}
|
|
@@ -78181,14 +78181,14 @@ function Aq({
|
|
|
78181
78181
|
Ne,
|
|
78182
78182
|
" option",
|
|
78183
78183
|
Ne > 1 ? "s" : "",
|
|
78184
|
-
|
|
78184
|
+
Tr.length > 0 && /* @__PURE__ */ v("span", { className: "ml-1 text-blue-400", children: [
|
|
78185
78185
|
"· ",
|
|
78186
|
-
|
|
78186
|
+
Tr.length,
|
|
78187
78187
|
" selected"
|
|
78188
78188
|
] })
|
|
78189
78189
|
] }),
|
|
78190
78190
|
/* @__PURE__ */ n("div", { className: "px-4 pb-4 space-y-2", children: vt ? [1, 2, 3].map((De) => /* @__PURE__ */ n("div", { className: "h-9 bg-[var(--hrk-bg-surface-raised)]/50 rounded-lg animate-pulse" }, De)) : Ba.map((De) => {
|
|
78191
|
-
const ut = De.votes?.total_votes ?? 0, er = _n > 0 ? Math.round(ut / _n * 100) : 0, wr = Pr.includes(De.choice_num), Xr =
|
|
78191
|
+
const ut = De.votes?.total_votes ?? 0, er = _n > 0 ? Math.round(ut / _n * 100) : 0, wr = Pr.includes(De.choice_num), Xr = Tr.includes(De.choice_num), Qa = ya && Tr.length >= Ne && !Xr, Wr = qr && !Qa;
|
|
78192
78192
|
let Ma = "border-[var(--hrk-border-subtle)]", Gr = /* @__PURE__ */ n(r6, { className: "w-3.5 h-3.5 text-[var(--hrk-text-tertiary)] flex-shrink-0" }), kn = "bg-blue-600/20";
|
|
78193
78193
|
return Xr ? (Ma = "border-blue-500/60", Gr = /* @__PURE__ */ n(pf, { className: "w-3.5 h-3.5 text-blue-400 flex-shrink-0" })) : wr && !ga ? (Ma = "border-green-600/60", Gr = /* @__PURE__ */ n(pf, { className: "w-3.5 h-3.5 text-green-500 flex-shrink-0" }), kn = "bg-green-600/20") : wr && ga && (Ma = "border-green-800/40", Gr = /* @__PURE__ */ n(pf, { className: "w-3.5 h-3.5 text-green-700 flex-shrink-0" }), kn = "bg-green-900/10"), /* @__PURE__ */ v(
|
|
78194
78194
|
"div",
|
|
@@ -78230,11 +78230,11 @@ function Aq({
|
|
|
78230
78230
|
"button",
|
|
78231
78231
|
{
|
|
78232
78232
|
onClick: be,
|
|
78233
|
-
disabled:
|
|
78233
|
+
disabled: Tr.length === 0 || xa,
|
|
78234
78234
|
className: "flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 disabled:bg-[var(--hrk-bg-surface-raised)] disabled:text-[var(--hrk-text-tertiary)] text-white text-sm rounded-lg transition-colors w-full justify-center font-medium",
|
|
78235
78235
|
children: [
|
|
78236
78236
|
/* @__PURE__ */ n(o0, { className: "w-3.5 h-3.5" }),
|
|
78237
|
-
xa ? "Submitting…" : ga ? "Change Vote" : `Submit Vote${
|
|
78237
|
+
xa ? "Submitting…" : ga ? "Change Vote" : `Submit Vote${Tr.length > 1 ? "s" : ""}`
|
|
78238
78238
|
]
|
|
78239
78239
|
}
|
|
78240
78240
|
) }),
|
|
@@ -79052,7 +79052,7 @@ const wN = ({
|
|
|
79052
79052
|
reblogToggleLabel: Ke = "Reblog",
|
|
79053
79053
|
previewExtras: bt = ""
|
|
79054
79054
|
}) => {
|
|
79055
|
-
const [ft, Be] = W(u), [We, Dt] = W(!1), [ht, Xt] = W(d), [tr,
|
|
79055
|
+
const [ft, Be] = W(u), [We, Dt] = W(!1), [ht, Xt] = W(d), [tr, Rr] = W(f), [_a, ea] = W(At ? ke : !1);
|
|
79056
79056
|
qe(() => {
|
|
79057
79057
|
ea(At ? ke : !1);
|
|
79058
79058
|
}, [At, ke]);
|
|
@@ -79080,12 +79080,12 @@ const wN = ({
|
|
|
79080
79080
|
qe(() => {
|
|
79081
79081
|
C !== void 0 && C !== yr && ir(C);
|
|
79082
79082
|
}, [C]);
|
|
79083
|
-
const mr = C ?? yr,
|
|
79083
|
+
const mr = C ?? yr, Tr = (xe) => {
|
|
79084
79084
|
C === void 0 && ir(xe), q?.(xe);
|
|
79085
79085
|
}, Ir = $t(null), xa = $t(null), [gn, On] = W(null), $n = 224, gt = 8, Kt = (xe, rt) => {
|
|
79086
79086
|
if (!xe) return null;
|
|
79087
|
-
const rr = xe.getBoundingClientRect(),
|
|
79088
|
-
return { top: rr.bottom + 4, left:
|
|
79087
|
+
const rr = xe.getBoundingClientRect(), Dr = window.innerWidth, Br = Math.min(rt, Math.max(0, Dr - gt * 2)), Mr = Math.max(gt, Math.round((Dr - Br) / 2));
|
|
79088
|
+
return { top: rr.bottom + 4, left: Mr, width: Br };
|
|
79089
79089
|
}, Zr = It(() => {
|
|
79090
79090
|
Mt((xe) => {
|
|
79091
79091
|
const rt = !xe;
|
|
@@ -79095,8 +79095,8 @@ const wN = ({
|
|
|
79095
79095
|
qe(() => {
|
|
79096
79096
|
if (!nr) return;
|
|
79097
79097
|
const xe = () => Mt(!1), rt = (rr) => {
|
|
79098
|
-
const
|
|
79099
|
-
Ir.current?.contains(
|
|
79098
|
+
const Dr = rr.target;
|
|
79099
|
+
Ir.current?.contains(Dr) || xa.current?.contains(Dr) || xe();
|
|
79100
79100
|
};
|
|
79101
79101
|
return document.addEventListener("mousedown", rt), window.addEventListener("resize", xe), window.addEventListener("scroll", xe, !0), () => {
|
|
79102
79102
|
document.removeEventListener("mousedown", rt), window.removeEventListener("resize", xe), window.removeEventListener("scroll", xe, !0);
|
|
@@ -79141,11 +79141,11 @@ const wN = ({
|
|
|
79141
79141
|
else if (rt.template.hiveAccount?.trim())
|
|
79142
79142
|
rr = rt.template.hiveAccount.trim();
|
|
79143
79143
|
else {
|
|
79144
|
-
const
|
|
79144
|
+
const Mr = rt.beneficiaries?.comment || [], aa = Mr.find(
|
|
79145
79145
|
(nn) => nn && typeof nn.role == "string" && nn.role.toLowerCase().includes("submitter")
|
|
79146
|
-
), zn =
|
|
79146
|
+
), zn = Mr.find(
|
|
79147
79147
|
(nn) => nn && typeof nn.role == "string" && nn.role.toLowerCase().includes("creator")
|
|
79148
|
-
), Fn =
|
|
79148
|
+
), Fn = Mr.find(
|
|
79149
79149
|
(nn) => nn && typeof nn.role == "string" && nn.role.toLowerCase().includes("holding")
|
|
79150
79150
|
);
|
|
79151
79151
|
if (aa?.account?.trim())
|
|
@@ -79159,11 +79159,11 @@ const wN = ({
|
|
|
79159
79159
|
Is && (rr = Is.account.trim());
|
|
79160
79160
|
}
|
|
79161
79161
|
}
|
|
79162
|
-
const
|
|
79163
|
-
xe[rr] = `Auto-attached by ${
|
|
79162
|
+
const Dr = rt.template.name ? `template "${rt.template.name}"` : "a DecentMemes meme";
|
|
79163
|
+
xe[rr] = `Auto-attached by ${Dr} (creator/submitter share) — required by the DecentMemes integration`;
|
|
79164
79164
|
const Br = rt.beneficiaries.post;
|
|
79165
|
-
for (const
|
|
79166
|
-
|
|
79165
|
+
for (const Mr of Br)
|
|
79166
|
+
Mr && Mr.role === "frontend" && Mr.account && (xe[Mr.account] = `Auto-attached by ${Dr} (frontend share) — required by the DecentMemes integration`);
|
|
79167
79167
|
}
|
|
79168
79168
|
if (_ && _.length > 0)
|
|
79169
79169
|
for (const rt of _)
|
|
@@ -79175,7 +79175,7 @@ const wN = ({
|
|
|
79175
79175
|
qe(() => {
|
|
79176
79176
|
We && Xr((xe) => {
|
|
79177
79177
|
const rt = wc(xe, De);
|
|
79178
|
-
return rt.length === xe.length && rt.every((
|
|
79178
|
+
return rt.length === xe.length && rt.every((Dr, Br) => Dr.account === xe[Br].account && Dr.weight === xe[Br].weight) ? xe : rt;
|
|
79179
79179
|
});
|
|
79180
79180
|
}, [De, We]);
|
|
79181
79181
|
const [Wr, Ma] = W(!1), Gr = It(
|
|
@@ -79190,23 +79190,23 @@ const wN = ({
|
|
|
79190
79190
|
return console.error("Image too large (max 10MB)"), null;
|
|
79191
79191
|
const rt = new AbortController();
|
|
79192
79192
|
Se.current = rt;
|
|
79193
|
-
const rr = rt.signal,
|
|
79193
|
+
const rr = rt.signal, Dr = async () => {
|
|
79194
79194
|
if (!E) throw new Error("Ecency token not provided");
|
|
79195
79195
|
const Br = new FormData();
|
|
79196
79196
|
Br.append("file", xe);
|
|
79197
|
-
const
|
|
79197
|
+
const Mr = await fetch(`https://images.ecency.com/hs/${E}`, {
|
|
79198
79198
|
method: "POST",
|
|
79199
79199
|
body: Br,
|
|
79200
79200
|
signal: rr
|
|
79201
79201
|
});
|
|
79202
|
-
if (!
|
|
79203
|
-
const aa = await
|
|
79202
|
+
if (!Mr.ok) throw new Error(`Upload failed: ${Mr.status}`);
|
|
79203
|
+
const aa = await Mr.json();
|
|
79204
79204
|
if (!aa.url) throw new Error("No URL from ecency");
|
|
79205
79205
|
return aa.url;
|
|
79206
79206
|
};
|
|
79207
79207
|
try {
|
|
79208
79208
|
try {
|
|
79209
|
-
return await
|
|
79209
|
+
return await Dr();
|
|
79210
79210
|
} catch (Br) {
|
|
79211
79211
|
if (rr.aborted) return null;
|
|
79212
79212
|
if (!kn)
|
|
@@ -79225,8 +79225,8 @@ const wN = ({
|
|
|
79225
79225
|
signal: rr
|
|
79226
79226
|
}
|
|
79227
79227
|
);
|
|
79228
|
-
} catch (
|
|
79229
|
-
return rr.aborted || console.error("Image upload failed (hive fallback):",
|
|
79228
|
+
} catch (Mr) {
|
|
79229
|
+
return rr.aborted || console.error("Image upload failed (hive fallback):", Mr), null;
|
|
79230
79230
|
}
|
|
79231
79231
|
}
|
|
79232
79232
|
} finally {
|
|
@@ -79248,11 +79248,11 @@ const wN = ({
|
|
|
79248
79248
|
(xe) => {
|
|
79249
79249
|
const rt = oe.current;
|
|
79250
79250
|
if (!rt) {
|
|
79251
|
-
|
|
79251
|
+
Rr((Br) => Br + xe);
|
|
79252
79252
|
return;
|
|
79253
79253
|
}
|
|
79254
|
-
const rr = rt.selectionStart,
|
|
79255
|
-
di(rt, xe) || (
|
|
79254
|
+
const rr = rt.selectionStart, Dr = rt.selectionEnd;
|
|
79255
|
+
di(rt, xe) || (Rr((Br) => Br.slice(0, rr) + xe + Br.slice(Dr)), setTimeout(() => {
|
|
79256
79256
|
rt.focus(), rt.setSelectionRange(rr + xe.length, rr + xe.length);
|
|
79257
79257
|
}, 0));
|
|
79258
79258
|
},
|
|
@@ -79261,35 +79261,35 @@ const wN = ({
|
|
|
79261
79261
|
(xe, rt = "") => {
|
|
79262
79262
|
const rr = oe.current;
|
|
79263
79263
|
if (!rr) return;
|
|
79264
|
-
const
|
|
79264
|
+
const Dr = rr.selectionStart, Br = rr.selectionEnd, Mr = rr.value.slice(Dr, Br), aa = xe + Mr + rt;
|
|
79265
79265
|
if (di(rr, aa)) {
|
|
79266
79266
|
setTimeout(() => {
|
|
79267
79267
|
rr.focus(), rr.setSelectionRange(
|
|
79268
|
-
|
|
79269
|
-
|
|
79268
|
+
Dr + xe.length,
|
|
79269
|
+
Dr + xe.length + Mr.length
|
|
79270
79270
|
);
|
|
79271
79271
|
}, 0);
|
|
79272
79272
|
return;
|
|
79273
79273
|
}
|
|
79274
|
-
|
|
79274
|
+
Rr((zn) => zn.slice(0, Dr) + aa + zn.slice(Br)), setTimeout(() => {
|
|
79275
79275
|
rr.focus();
|
|
79276
|
-
const zn = Br -
|
|
79277
|
-
rr.setSelectionRange(
|
|
79276
|
+
const zn = Br - Dr;
|
|
79277
|
+
rr.setSelectionRange(Dr + xe.length, Dr + xe.length + zn);
|
|
79278
79278
|
}, 0);
|
|
79279
79279
|
},
|
|
79280
79280
|
[di]
|
|
79281
79281
|
), Ti = It(() => {
|
|
79282
79282
|
const xe = oe.current;
|
|
79283
79283
|
if (!xe) return;
|
|
79284
|
-
const rt = xe.selectionStart, rr = xe.selectionEnd,
|
|
79284
|
+
const rt = xe.selectionStart, rr = xe.selectionEnd, Dr = xe.value.slice(rt, rr), Br = "```\n" + (Dr || "code here") + "\n```";
|
|
79285
79285
|
if (di(xe, Br)) {
|
|
79286
79286
|
setTimeout(() => {
|
|
79287
|
-
xe.focus(), xe.setSelectionRange(rt + 4, rt + 4 + (
|
|
79287
|
+
xe.focus(), xe.setSelectionRange(rt + 4, rt + 4 + (Dr.length || 9));
|
|
79288
79288
|
}, 0);
|
|
79289
79289
|
return;
|
|
79290
79290
|
}
|
|
79291
|
-
|
|
79292
|
-
xe.focus(), xe.setSelectionRange(rt + 4, rt + 4 + (
|
|
79291
|
+
Rr(tr.slice(0, rt) + Br + tr.slice(rr)), setTimeout(() => {
|
|
79292
|
+
xe.focus(), xe.setSelectionRange(rt + 4, rt + 4 + (Dr.length || 9));
|
|
79293
79293
|
}, 0);
|
|
79294
79294
|
}, [tr, di]), Al = It(() => Na("@"), [Na]), Ci = It(
|
|
79295
79295
|
async (xe) => {
|
|
@@ -79299,10 +79299,10 @@ const wN = ({
|
|
|
79299
79299
|
for (let rr = 0; rr < rt.length; rr++)
|
|
79300
79300
|
if (rt[rr].type.startsWith("image/")) {
|
|
79301
79301
|
xe.preventDefault();
|
|
79302
|
-
const
|
|
79303
|
-
if (!
|
|
79302
|
+
const Dr = rt[rr].getAsFile();
|
|
79303
|
+
if (!Dr) continue;
|
|
79304
79304
|
ba(!0);
|
|
79305
|
-
const Br = await Oa(
|
|
79305
|
+
const Br = await Oa(Dr);
|
|
79306
79306
|
ba(!1), Br && Na(`
|
|
79307
79307
|
`);
|
|
79308
79308
|
return;
|
|
@@ -79325,10 +79325,10 @@ const wN = ({
|
|
|
79325
79325
|
const rt = xe.dataTransfer.files;
|
|
79326
79326
|
if (!(!rt || rt.length === 0))
|
|
79327
79327
|
for (let rr = 0; rr < rt.length; rr++) {
|
|
79328
|
-
const
|
|
79329
|
-
if (
|
|
79328
|
+
const Dr = rt[rr];
|
|
79329
|
+
if (Dr.type.startsWith("image/")) {
|
|
79330
79330
|
ba(!0);
|
|
79331
|
-
const Br = await Oa(
|
|
79331
|
+
const Br = await Oa(Dr);
|
|
79332
79332
|
ba(!1), Br && Na(`
|
|
79333
79333
|
`);
|
|
79334
79334
|
}
|
|
@@ -79363,13 +79363,13 @@ ${xr}`), vr && (xe += `
|
|
|
79363
79363
|
${vr}`), bt && (xe += `
|
|
79364
79364
|
|
|
79365
79365
|
${bt}`), xe = Rj(xe), xe;
|
|
79366
|
-
}, [tr, xr, vr, bt]),
|
|
79367
|
-
const xe = nC(tr), rt = nC(bt), rr = /* @__PURE__ */ new Set(),
|
|
79366
|
+
}, [tr, xr, vr, bt]), Cr = qt(() => {
|
|
79367
|
+
const xe = nC(tr), rt = nC(bt), rr = /* @__PURE__ */ new Set(), Dr = [];
|
|
79368
79368
|
for (const Br of [...xe, ...rt]) {
|
|
79369
|
-
const
|
|
79370
|
-
rr.has(
|
|
79369
|
+
const Mr = `${Br.lat.toFixed(6)}|${Br.lng.toFixed(6)}`;
|
|
79370
|
+
rr.has(Mr) || (rr.add(Mr), Dr.push(Br));
|
|
79371
79371
|
}
|
|
79372
|
-
return
|
|
79372
|
+
return Dr;
|
|
79373
79373
|
}, [tr, bt]), Jr = qt(() => {
|
|
79374
79374
|
if (!vr) return null;
|
|
79375
79375
|
const xe = vr.match(/[?&]v=([^&\s/?#]+)\/([^&\s/?#]+)/);
|
|
@@ -79378,28 +79378,28 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79378
79378
|
if (!Gt.trim() || !Te) return "";
|
|
79379
79379
|
try {
|
|
79380
79380
|
let xe = Te(Gt);
|
|
79381
|
-
const rt = !!Jr, rr = (
|
|
79381
|
+
const rt = !!Jr, rr = (Dr) => {
|
|
79382
79382
|
if (rt) return "";
|
|
79383
|
-
const Br =
|
|
79383
|
+
const Br = Dr.indexOf("/");
|
|
79384
79384
|
if (Br < 1) return "";
|
|
79385
|
-
const
|
|
79386
|
-
return `<div class="threeSpeakEmbed" data-author="${
|
|
79385
|
+
const Mr = Dr.slice(0, Br), aa = Dr.slice(Br + 1);
|
|
79386
|
+
return `<div class="threeSpeakEmbed" data-author="${Mr}" data-permlink="${aa}"></div>`;
|
|
79387
79387
|
};
|
|
79388
79388
|
return xe = xe.replace(
|
|
79389
79389
|
/<iframe\s[^>]*src="https:\/\/(?:play\.)?3speak\.tv\/embed\?v=([^"&]+\/[^"&]+)[^"]*"[^>]*>(?:<\/iframe>)?/gi,
|
|
79390
|
-
(
|
|
79390
|
+
(Dr, Br) => rr(Br)
|
|
79391
79391
|
), xe = xe.replace(
|
|
79392
79392
|
/<a\s[^>]*href="https:\/\/(?:play\.)?3speak\.tv\/embed\?v=([^"&]+\/[^"&]+)[^"]*"[^>]*>[^<]*<\/a>/gi,
|
|
79393
|
-
(
|
|
79393
|
+
(Dr, Br) => rr(Br)
|
|
79394
79394
|
), xe = xe.replace(
|
|
79395
79395
|
/<iframe\s[^>]*src="(https:\/\/audio\.3speak\.tv\/play\?[^"]*)"[^>]*>(?:<\/iframe>)?/gi,
|
|
79396
|
-
(
|
|
79397
|
-
let
|
|
79398
|
-
return
|
|
79396
|
+
(Dr, Br) => {
|
|
79397
|
+
let Mr = Br;
|
|
79398
|
+
return Mr.includes("mode=minimal") || (Mr += "&mode=minimal"), Mr.includes("iframe=1") || (Mr += "&iframe=1"), `<div class="audioWrapper"><iframe src="${Mr}" scrolling="no" frameborder="0" allow="autoplay"></iframe></div>`;
|
|
79399
79399
|
}
|
|
79400
79400
|
), xe = xe.replace(
|
|
79401
79401
|
/<img\s([^>]*?)alt="([^"]+)"([^>]*?)\/?\s*>/gi,
|
|
79402
|
-
(
|
|
79402
|
+
(Dr, Br, Mr, aa) => `<figure class="hive-img-figure">${`<img ${Br}alt="${Mr}"${aa}>`}<figcaption>${Mr}</figcaption></figure>`
|
|
79403
79403
|
), xe;
|
|
79404
79404
|
} catch {
|
|
79405
79405
|
return "";
|
|
@@ -79409,26 +79409,26 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79409
79409
|
const xe = ja.current;
|
|
79410
79410
|
if (!xe) return;
|
|
79411
79411
|
const rt = (rr) => {
|
|
79412
|
-
const
|
|
79413
|
-
if (
|
|
79414
|
-
|
|
79415
|
-
const Br =
|
|
79412
|
+
const Dr = rr.target;
|
|
79413
|
+
if (Dr.tagName !== "IMG" || Dr.dataset.fallbackAttempted) return;
|
|
79414
|
+
Dr.dataset.fallbackAttempted = "true";
|
|
79415
|
+
const Br = Dr.getAttribute("src") || "", Mr = [
|
|
79416
79416
|
/^https:\/\/images\.hive\.blog\/\d+x\d+\//,
|
|
79417
79417
|
/^https:\/\/images\.hive\.blog\/DQm[^/]*\//,
|
|
79418
79418
|
/^https:\/\/images\.ecency\.com\/\d+x\d+\//,
|
|
79419
79419
|
/^https:\/\/ipfs\.io\/ipfs\//,
|
|
79420
79420
|
/^https:\/\/ipfs\.3speak\.tv\/ipfs\//
|
|
79421
79421
|
];
|
|
79422
|
-
for (const zn of
|
|
79422
|
+
for (const zn of Mr)
|
|
79423
79423
|
if (zn.test(Br)) {
|
|
79424
79424
|
const Fn = Br.replace(zn, "");
|
|
79425
79425
|
if (Fn.startsWith("http")) {
|
|
79426
|
-
|
|
79426
|
+
Dr.src = Fn;
|
|
79427
79427
|
return;
|
|
79428
79428
|
}
|
|
79429
79429
|
}
|
|
79430
|
-
|
|
79431
|
-
const aa =
|
|
79430
|
+
Dr.style.display = "none";
|
|
79431
|
+
const aa = Dr.closest("figure")?.querySelector("figcaption");
|
|
79432
79432
|
aa && (aa.style.display = "none");
|
|
79433
79433
|
};
|
|
79434
79434
|
return xe.addEventListener("error", rt, !0), () => xe.removeEventListener("error", rt, !0);
|
|
@@ -79439,7 +79439,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79439
79439
|
if (!aa) return null;
|
|
79440
79440
|
const zn = aa.match(/[?&]v=([^&\s/?#]+)\/([^&\s/?#]+)/i);
|
|
79441
79441
|
return zn ? { author: zn[1], permlink: zn[2] } : null;
|
|
79442
|
-
},
|
|
79442
|
+
}, Dr = (aa) => aa ? /https?:\/\/(?:play\.)?3speak\.tv\/(?:embed|watch)\?/i.test(aa) : !1, Br = [];
|
|
79443
79443
|
if (xe.querySelectorAll('.threeSpeakEmbed:not([data-mounted="1"])').forEach((aa) => {
|
|
79444
79444
|
if (rt) {
|
|
79445
79445
|
aa.remove();
|
|
@@ -79449,7 +79449,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79449
79449
|
zn && Fn && Br.push({ el: aa, author: zn, permlink: Fn });
|
|
79450
79450
|
}), xe.querySelectorAll("iframe").forEach((aa) => {
|
|
79451
79451
|
const zn = aa.getAttribute("src");
|
|
79452
|
-
if (!
|
|
79452
|
+
if (!Dr(zn)) return;
|
|
79453
79453
|
if (rt) {
|
|
79454
79454
|
aa.remove();
|
|
79455
79455
|
return;
|
|
@@ -79460,7 +79460,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79460
79460
|
nn.className = "threeSpeakEmbed", nn.dataset.author = Fn.author, nn.dataset.permlink = Fn.permlink, aa.replaceWith(nn), Br.push({ el: nn, ...Fn });
|
|
79461
79461
|
}), xe.querySelectorAll("a").forEach((aa) => {
|
|
79462
79462
|
const zn = aa.getAttribute("href");
|
|
79463
|
-
if (!
|
|
79463
|
+
if (!Dr(zn)) return;
|
|
79464
79464
|
if (rt) {
|
|
79465
79465
|
aa.remove();
|
|
79466
79466
|
return;
|
|
@@ -79470,14 +79470,14 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79470
79470
|
const nn = document.createElement("div");
|
|
79471
79471
|
nn.className = "threeSpeakEmbed", nn.dataset.author = Fn.author, nn.dataset.permlink = Fn.permlink, aa.replaceWith(nn), Br.push({ el: nn, ...Fn });
|
|
79472
79472
|
}), Br.length === 0) return;
|
|
79473
|
-
const
|
|
79473
|
+
const Mr = [];
|
|
79474
79474
|
return Br.forEach(({ el: aa, author: zn, permlink: Fn }) => {
|
|
79475
79475
|
aa.dataset.mounted = "1";
|
|
79476
79476
|
const nn = z6.createRoot(aa);
|
|
79477
|
-
nn.render(/* @__PURE__ */ n(Km, { author: zn, permlink: Fn, hideThumbnail: !0 })),
|
|
79477
|
+
nn.render(/* @__PURE__ */ n(Km, { author: zn, permlink: Fn, hideThumbnail: !0 })), Mr.push(nn);
|
|
79478
79478
|
}), () => {
|
|
79479
79479
|
queueMicrotask(() => {
|
|
79480
|
-
|
|
79480
|
+
Mr.forEach((aa) => {
|
|
79481
79481
|
try {
|
|
79482
79482
|
aa.unmount();
|
|
79483
79483
|
} catch {
|
|
@@ -79491,18 +79491,18 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79491
79491
|
const rt = (rr) => {
|
|
79492
79492
|
if (rr.defaultPrevented || rr.button !== 0 || rr.metaKey || rr.ctrlKey || rr.shiftKey || rr.altKey)
|
|
79493
79493
|
return;
|
|
79494
|
-
const
|
|
79495
|
-
if (!
|
|
79496
|
-
const Br =
|
|
79494
|
+
const Dr = rr.target?.closest("a");
|
|
79495
|
+
if (!Dr) return;
|
|
79496
|
+
const Br = Dr.getAttribute("href");
|
|
79497
79497
|
if (!Br) return;
|
|
79498
|
-
const
|
|
79499
|
-
if (
|
|
79500
|
-
if (
|
|
79501
|
-
rr.preventDefault(), He(
|
|
79498
|
+
const Mr = lx(Br);
|
|
79499
|
+
if (Mr) {
|
|
79500
|
+
if (Mr.kind === "post" && He) {
|
|
79501
|
+
rr.preventDefault(), He(Mr.author, Mr.permlink);
|
|
79502
79502
|
return;
|
|
79503
79503
|
}
|
|
79504
|
-
if (
|
|
79505
|
-
rr.preventDefault(), ue(
|
|
79504
|
+
if (Mr.kind === "user" && ue) {
|
|
79505
|
+
rr.preventDefault(), ue(Mr.author);
|
|
79506
79506
|
return;
|
|
79507
79507
|
}
|
|
79508
79508
|
}
|
|
@@ -79523,14 +79523,14 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79523
79523
|
const xe = localStorage.getItem(Tt);
|
|
79524
79524
|
if (xe) {
|
|
79525
79525
|
const rt = JSON.parse(xe);
|
|
79526
|
-
if (typeof rt.title == "string" && Be(rt.title), typeof rt.description == "string" && Xt(rt.description), typeof rt.body == "string" &&
|
|
79527
|
-
const rr = /* @__PURE__ */ new Set(),
|
|
79528
|
-
const aa =
|
|
79529
|
-
!aa || rr.has(aa) || $e.includes(aa) || (rr.add(aa),
|
|
79526
|
+
if (typeof rt.title == "string" && Be(rt.title), typeof rt.description == "string" && Xt(rt.description), typeof rt.body == "string" && Rr(rt.body), Array.isArray(rt.userTags)) {
|
|
79527
|
+
const rr = /* @__PURE__ */ new Set(), Dr = [], Br = (Mr) => {
|
|
79528
|
+
const aa = Mr.trim().toLowerCase();
|
|
79529
|
+
!aa || rr.has(aa) || $e.includes(aa) || (rr.add(aa), Dr.push(aa));
|
|
79530
79530
|
};
|
|
79531
|
-
for (const
|
|
79532
|
-
for (const
|
|
79533
|
-
or(
|
|
79531
|
+
for (const Mr of h ?? []) Br(Mr);
|
|
79532
|
+
for (const Mr of rt.userTags) Br(Mr);
|
|
79533
|
+
or(Dr);
|
|
79534
79534
|
}
|
|
79535
79535
|
rt.reward && fa(rt.reward), Array.isArray(rt.beneficiaries) && Xr(rt.beneficiaries), rt.audioEmbedUrl !== void 0 && La(rt.audioEmbedUrl), typeof rt.audioDuration == "number" && Yr(rt.audioDuration), rt.videoEmbedUrl !== void 0 && Re(rt.videoEmbedUrl), rt.videoUploadUrl !== void 0 && Rt(rt.videoUploadUrl), rt.videoAspectRatio !== void 0 && Qr(rt.videoAspectRatio), rt.pollData !== void 0 && en(rt.pollData);
|
|
79536
79536
|
}
|
|
@@ -79586,7 +79586,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79586
79586
|
localStorage.removeItem(Tt);
|
|
79587
79587
|
} catch {
|
|
79588
79588
|
}
|
|
79589
|
-
Be(""), Xt(""),
|
|
79589
|
+
Be(""), Xt(""), Rr(""), or([]), Ct(""), fa(w), Xr(wc(Vs.current, De)), La(null), Yr(0), pr && URL.revokeObjectURL(pr), Re(null), Rt(null), Qr(null), Sr(null), ka(null), Hr(!1), en(null), cn([]), si(null);
|
|
79590
79590
|
}, [Tt, w, pr, De]), Tl = It(() => {
|
|
79591
79591
|
ti();
|
|
79592
79592
|
}, [ti]), ho = ft.trim().length > 0 && tr.trim().length > 0 && !ta && (!je || !!sa), ro = !!(ft.trim() || ht.trim() || tr.trim()), au = It(async () => {
|
|
@@ -79692,8 +79692,8 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79692
79692
|
[Z]
|
|
79693
79693
|
), Gu = It(
|
|
79694
79694
|
(xe) => {
|
|
79695
|
-
Be(xe.title || ""), Xt(xe.description || ""),
|
|
79696
|
-
const rt = (xe.tags || []).map((
|
|
79695
|
+
Be(xe.title || ""), Xt(xe.description || ""), Rr(xe.body || "");
|
|
79696
|
+
const rt = (xe.tags || []).map((Dr) => typeof Dr == "string" ? Dr.trim().toLowerCase() : "").filter((Dr) => !!Dr && !$e.includes(Dr));
|
|
79697
79697
|
or(rt), Ct("");
|
|
79698
79698
|
const rr = Array.isArray(xe.beneficiaries) ? xe.beneficiaries : [];
|
|
79699
79699
|
Xr(wc(rr, De)), J?.(xe);
|
|
@@ -79863,7 +79863,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
79863
79863
|
"button",
|
|
79864
79864
|
{
|
|
79865
79865
|
type: "button",
|
|
79866
|
-
onClick: () =>
|
|
79866
|
+
onClick: () => Tr(xe.id),
|
|
79867
79867
|
"aria-pressed": rt,
|
|
79868
79868
|
title: xe.label,
|
|
79869
79869
|
className: `inline-flex items-center gap-1.5 rounded-full border transition-colors ${rt ? "border-[var(--hrk-brand)] bg-[var(--hrk-brand)] text-white px-2.5 py-1 text-xs font-medium" : "border-[var(--hrk-border-default)] bg-[var(--hrk-bg-surface)] text-[var(--hrk-text-secondary)] hover:border-[var(--hrk-brand)]/60 p-1.5"}`,
|
|
@@ -80337,7 +80337,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
80337
80337
|
ref: oe,
|
|
80338
80338
|
value: tr,
|
|
80339
80339
|
onChange: (xe) => {
|
|
80340
|
-
|
|
80340
|
+
Rr(xe.target.value), we.onValueChange(
|
|
80341
80341
|
xe.target.value,
|
|
80342
80342
|
xe.target.selectionStart ?? xe.target.value.length
|
|
80343
80343
|
);
|
|
@@ -80356,7 +80356,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
80356
80356
|
onKeyDown: (xe) => {
|
|
80357
80357
|
if (we.onKeyDown(xe) && (xe.key === "Enter" || xe.key === "Tab")) {
|
|
80358
80358
|
const rt = we.apply();
|
|
80359
|
-
rt && (
|
|
80359
|
+
rt && (Rr(rt.value), requestAnimationFrame(() => {
|
|
80360
80360
|
const rr = oe.current;
|
|
80361
80361
|
rr && (rr.focus(), rr.setSelectionRange(rt.caret, rt.caret));
|
|
80362
80362
|
}));
|
|
@@ -80383,7 +80383,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
80383
80383
|
onHover: we.setHighlightedIndex,
|
|
80384
80384
|
onSelect: (xe) => {
|
|
80385
80385
|
const rt = we.apply(xe);
|
|
80386
|
-
rt && (
|
|
80386
|
+
rt && (Rr(rt.value), requestAnimationFrame(() => {
|
|
80387
80387
|
const rr = oe.current;
|
|
80388
80388
|
rr && (rr.focus(), rr.setSelectionRange(rt.caret, rt.caret));
|
|
80389
80389
|
}));
|
|
@@ -80448,8 +80448,8 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
80448
80448
|
onChange: (xe) => {
|
|
80449
80449
|
const rt = xe.target.value;
|
|
80450
80450
|
if (/[,\s]/.test(rt)) {
|
|
80451
|
-
const rr = rt.split(/[,\s]+/),
|
|
80452
|
-
rr.forEach((Br) => Br && ot(Br)), Ct(
|
|
80451
|
+
const rr = rt.split(/[,\s]+/), Dr = rr.pop() ?? "";
|
|
80452
|
+
rr.forEach((Br) => Br && ot(Br)), Ct(Dr);
|
|
80453
80453
|
return;
|
|
80454
80454
|
}
|
|
80455
80455
|
Ct(rt);
|
|
@@ -80616,7 +80616,7 @@ ${bt}`), xe = Rj(xe), xe;
|
|
|
80616
80616
|
html: $a
|
|
80617
80617
|
}
|
|
80618
80618
|
) : /* @__PURE__ */ n("p", { className: "text-[var(--hrk-text-tertiary)] text-sm italic", children: "Your post preview will appear here as you type. Markdown, images, audio and video embeds all render live." }),
|
|
80619
|
-
|
|
80619
|
+
Cr.length > 0 && /* @__PURE__ */ n("div", { className: "mt-4 flex flex-col gap-3", children: Cr.map((xe, rt) => /* @__PURE__ */ n(
|
|
80620
80620
|
S9,
|
|
80621
80621
|
{
|
|
80622
80622
|
lat: xe.lat,
|
|
@@ -81909,7 +81909,7 @@ const eb = /* @__PURE__ */ new Map(), Dq = ({
|
|
|
81909
81909
|
gt = !0;
|
|
81910
81910
|
};
|
|
81911
81911
|
}, [_e, o, r]);
|
|
81912
|
-
const
|
|
81912
|
+
const Rr = It(async () => {
|
|
81913
81913
|
if (!o || ze || tr === void 0) return;
|
|
81914
81914
|
const gt = !tr;
|
|
81915
81915
|
try {
|
|
@@ -82006,7 +82006,7 @@ const eb = /* @__PURE__ */ new Map(), Dq = ({
|
|
|
82006
82006
|
navigator.share ? navigator.share({ title: ft?.result?.title || r, url: gt }) : navigator.clipboard.writeText(gt);
|
|
82007
82007
|
}, mr = (gt) => {
|
|
82008
82008
|
u?.(gt);
|
|
82009
|
-
},
|
|
82009
|
+
}, Tr = ft?.result, Ir = qt(
|
|
82010
82010
|
() => ({
|
|
82011
82011
|
currentUser: o || void 0,
|
|
82012
82012
|
onUpvote: b,
|
|
@@ -82125,16 +82125,16 @@ const eb = /* @__PURE__ */ new Map(), Dq = ({
|
|
|
82125
82125
|
"img",
|
|
82126
82126
|
{
|
|
82127
82127
|
src: Ks.userOwnerThumb(r),
|
|
82128
|
-
alt:
|
|
82128
|
+
alt: Tr?.title || r,
|
|
82129
82129
|
className: "h-12 w-12 flex-shrink-0 rounded-full bg-[var(--hrk-bg-hover)] object-cover sm:h-16 sm:w-16",
|
|
82130
82130
|
onError: (gt) => {
|
|
82131
|
-
gt.target.src = `https://images.hive.blog/u/${
|
|
82131
|
+
gt.target.src = `https://images.hive.blog/u/${Tr?.title || r}/avatar`;
|
|
82132
82132
|
}
|
|
82133
82133
|
}
|
|
82134
82134
|
),
|
|
82135
82135
|
/* @__PURE__ */ v("div", { className: "min-w-0 flex-1", children: [
|
|
82136
82136
|
/* @__PURE__ */ v("div", { className: "flex items-start gap-2", children: [
|
|
82137
|
-
/* @__PURE__ */ n("h1", { className: "min-w-0 flex-1 truncate text-base font-bold text-[var(--hrk-text-primary)] sm:text-xl", children:
|
|
82137
|
+
/* @__PURE__ */ n("h1", { className: "min-w-0 flex-1 truncate text-base font-bold text-[var(--hrk-text-primary)] sm:text-xl", children: Tr?.title || r }),
|
|
82138
82138
|
/* @__PURE__ */ v("div", { className: "flex shrink-0 items-center gap-1.5", children: [
|
|
82139
82139
|
o && je ? (
|
|
82140
82140
|
/* Owner / admin — an Actions menu replaces the plain
|
|
@@ -82198,7 +82198,7 @@ const eb = /* @__PURE__ */ new Map(), Dq = ({
|
|
|
82198
82198
|
role: "menuitem",
|
|
82199
82199
|
disabled: ze || tr === void 0,
|
|
82200
82200
|
onClick: () => {
|
|
82201
|
-
ea(!1),
|
|
82201
|
+
ea(!1), Rr();
|
|
82202
82202
|
},
|
|
82203
82203
|
className: "flex w-full items-center gap-2 px-3 py-2 text-left text-xs text-[var(--hrk-text-primary)] transition-colors hover:bg-[var(--hrk-bg-hover)] disabled:cursor-not-allowed disabled:opacity-60",
|
|
82204
82204
|
children: [
|
|
@@ -82216,7 +82216,7 @@ const eb = /* @__PURE__ */ new Map(), Dq = ({
|
|
|
82216
82216
|
{
|
|
82217
82217
|
type: "button",
|
|
82218
82218
|
onClick: () => {
|
|
82219
|
-
|
|
82219
|
+
Rr();
|
|
82220
82220
|
},
|
|
82221
82221
|
disabled: ze || tr === void 0,
|
|
82222
82222
|
title: tr ? "Unsubscribe from community" : "Subscribe to community",
|
|
@@ -82256,17 +82256,17 @@ const eb = /* @__PURE__ */ new Map(), Dq = ({
|
|
|
82256
82256
|
)
|
|
82257
82257
|
] })
|
|
82258
82258
|
] }),
|
|
82259
|
-
|
|
82259
|
+
Tr?.about && /* @__PURE__ */ n("p", { className: "mt-0.5 line-clamp-2 text-xs text-[var(--hrk-text-tertiary)] sm:mt-1 sm:line-clamp-none sm:text-sm", children: Tr.about }),
|
|
82260
82260
|
/* @__PURE__ */ v("div", { className: "mt-1.5 flex flex-wrap gap-x-3 gap-y-1 text-[11px] text-[var(--hrk-text-tertiary)] sm:mt-3 sm:gap-x-4 sm:text-xs", children: [
|
|
82261
82261
|
/* @__PURE__ */ v("span", { className: "inline-flex items-center gap-1", children: [
|
|
82262
82262
|
/* @__PURE__ */ n(eo, { className: "h-3 w-3 sm:h-3.5 sm:w-3.5" }),
|
|
82263
|
-
(
|
|
82263
|
+
(Tr?.subscribers || 0).toLocaleString(),
|
|
82264
82264
|
" members"
|
|
82265
82265
|
] }),
|
|
82266
|
-
|
|
82266
|
+
Tr?.created_at && /* @__PURE__ */ v("span", { className: "inline-flex items-center gap-1", children: [
|
|
82267
82267
|
/* @__PURE__ */ n(V1, { className: "h-3 w-3 sm:h-3.5 sm:w-3.5" }),
|
|
82268
82268
|
"Created ",
|
|
82269
|
-
new Date(
|
|
82269
|
+
new Date(Tr.created_at).getFullYear()
|
|
82270
82270
|
] })
|
|
82271
82271
|
] })
|
|
82272
82272
|
] })
|
|
@@ -83595,7 +83595,7 @@ const zq = ({
|
|
|
83595
83595
|
const [l, u] = W([]), [d, f] = W(!0), [h, g] = W(null), y = async () => {
|
|
83596
83596
|
try {
|
|
83597
83597
|
f(!0), g(null);
|
|
83598
|
-
const w = await
|
|
83598
|
+
const w = await Or.getFollowers(r);
|
|
83599
83599
|
u(w);
|
|
83600
83600
|
} catch (w) {
|
|
83601
83601
|
g(
|
|
@@ -83635,7 +83635,7 @@ const zq = ({
|
|
|
83635
83635
|
/* @__PURE__ */ n(
|
|
83636
83636
|
"img",
|
|
83637
83637
|
{
|
|
83638
|
-
src:
|
|
83638
|
+
src: Or.userAvatar(w.follower),
|
|
83639
83639
|
alt: w.follower,
|
|
83640
83640
|
className: "w-12 h-12 rounded-full object-cover",
|
|
83641
83641
|
onError: (_) => {
|
|
@@ -83658,7 +83658,7 @@ const zq = ({
|
|
|
83658
83658
|
const [l, u] = W([]), [d, f] = W(!0), [h, g] = W(null), y = async () => {
|
|
83659
83659
|
try {
|
|
83660
83660
|
f(!0), g(null);
|
|
83661
|
-
const w = await
|
|
83661
|
+
const w = await Or.getFollowing(r);
|
|
83662
83662
|
u(w);
|
|
83663
83663
|
} catch (w) {
|
|
83664
83664
|
g(
|
|
@@ -83698,7 +83698,7 @@ const zq = ({
|
|
|
83698
83698
|
/* @__PURE__ */ n(
|
|
83699
83699
|
"img",
|
|
83700
83700
|
{
|
|
83701
|
-
src:
|
|
83701
|
+
src: Or.userAvatar(w.following),
|
|
83702
83702
|
alt: w.following,
|
|
83703
83703
|
className: "w-12 h-12 rounded-full object-cover",
|
|
83704
83704
|
onError: (_) => {
|
|
@@ -83718,7 +83718,7 @@ const zq = ({
|
|
|
83718
83718
|
const [o, l] = W(null), [u, d] = W(!0), [f, h] = W(null), g = async () => {
|
|
83719
83719
|
try {
|
|
83720
83720
|
d(!0), h(null);
|
|
83721
|
-
const x = await
|
|
83721
|
+
const x = await Or.getProfile(r);
|
|
83722
83722
|
l(x);
|
|
83723
83723
|
} catch (x) {
|
|
83724
83724
|
h(
|
|
@@ -83817,7 +83817,7 @@ const zq = ({
|
|
|
83817
83817
|
(async () => {
|
|
83818
83818
|
try {
|
|
83819
83819
|
H(!0);
|
|
83820
|
-
const Y = await
|
|
83820
|
+
const Y = await Or.getProfile(r);
|
|
83821
83821
|
z(Y);
|
|
83822
83822
|
} catch (Y) {
|
|
83823
83823
|
console.error("Failed to fetch user details:", Y);
|
|
@@ -83878,11 +83878,11 @@ const zq = ({
|
|
|
83878
83878
|
/* @__PURE__ */ n(
|
|
83879
83879
|
"img",
|
|
83880
83880
|
{
|
|
83881
|
-
src: I.cover_image ||
|
|
83881
|
+
src: I.cover_image || Or.userAvatar(r),
|
|
83882
83882
|
alt: "Cover",
|
|
83883
83883
|
className: "w-full h-48 object-cover",
|
|
83884
83884
|
onError: (F) => {
|
|
83885
|
-
F.target.src =
|
|
83885
|
+
F.target.src = Or.userAvatar(r);
|
|
83886
83886
|
}
|
|
83887
83887
|
}
|
|
83888
83888
|
),
|
|
@@ -83894,7 +83894,7 @@ const zq = ({
|
|
|
83894
83894
|
alt: I?.name,
|
|
83895
83895
|
className: "w-24 h-24 rounded-full object-cover border-4 border-white dark:border-gray-800 -mt-16",
|
|
83896
83896
|
onError: (F) => {
|
|
83897
|
-
F.target.src =
|
|
83897
|
+
F.target.src = Or.userAvatar(r);
|
|
83898
83898
|
}
|
|
83899
83899
|
}
|
|
83900
83900
|
),
|
|
@@ -84152,7 +84152,7 @@ const zq = ({
|
|
|
84152
84152
|
if (!D) return;
|
|
84153
84153
|
x(null), h(null), b(null), y(!0);
|
|
84154
84154
|
const z = ++E.current, O = new AbortController();
|
|
84155
|
-
return
|
|
84155
|
+
return Or.getGrowthAnalytics(D, 30, (T) => {
|
|
84156
84156
|
z === E.current && x(T);
|
|
84157
84157
|
}, O.signal).then((T) => {
|
|
84158
84158
|
z === E.current && x(T);
|
|
@@ -84901,7 +84901,7 @@ const dH = ({
|
|
|
84901
84901
|
});
|
|
84902
84902
|
const O = async (T) => {
|
|
84903
84903
|
try {
|
|
84904
|
-
const { snaps: B, nextStartId: H } = await
|
|
84904
|
+
const { snaps: B, nextStartId: H } = await Or.getUserSnaps(
|
|
84905
84905
|
r,
|
|
84906
84906
|
void 0,
|
|
84907
84907
|
o,
|
|
@@ -84939,7 +84939,7 @@ const dH = ({
|
|
|
84939
84939
|
if (!(!D || D.loadingMore || D.nextStartId === null)) {
|
|
84940
84940
|
h((z) => ({ ...z, [E]: { ...z[E], loadingMore: !0 } }));
|
|
84941
84941
|
try {
|
|
84942
|
-
const { snaps: z, nextStartId: O } = await
|
|
84942
|
+
const { snaps: z, nextStartId: O } = await Or.getUserSnaps(
|
|
84943
84943
|
r,
|
|
84944
84944
|
D.nextStartId,
|
|
84945
84945
|
o,
|
|
@@ -85134,7 +85134,7 @@ const fC = (r) => {
|
|
|
85134
85134
|
favouriteCount: ht = 0,
|
|
85135
85135
|
defaultVotePercent: Xt = 100,
|
|
85136
85136
|
voteWeightStep: tr = 0.25,
|
|
85137
|
-
allowLandscapeVideos:
|
|
85137
|
+
allowLandscapeVideos: Rr = !1,
|
|
85138
85138
|
awaitingWalletApproval: _a = !1,
|
|
85139
85139
|
renderSnapHeaderActions: ea,
|
|
85140
85140
|
renderEngineTokens: ta,
|
|
@@ -85147,18 +85147,18 @@ const fC = (r) => {
|
|
|
85147
85147
|
onSubTabChange: or,
|
|
85148
85148
|
initialSubTab: vt
|
|
85149
85149
|
}) => {
|
|
85150
|
-
const Ct = LD(), ra = W3(), va = fH(), ot = r.replace(/^@/, "").trim(), Nr = Wl[ot], [Wt, fa] = W(Nr?.profile || null), [nr, Mt] = W(!Nr?.profile), [yr, ir] = W(null), mr = $e !== void 0,
|
|
85151
|
-
Nr?.postsSubTab !== void 0 ? Nr.postsSubTab : vt === "posts" || vt === "blogs" ? vt :
|
|
85150
|
+
const Ct = LD(), ra = W3(), va = fH(), ot = r.replace(/^@/, "").trim(), Nr = Wl[ot], [Wt, fa] = W(Nr?.profile || null), [nr, Mt] = W(!Nr?.profile), [yr, ir] = W(null), mr = $e !== void 0, Tr = $e ?? (h && h.length > 0 ? h[0] : "blogs"), Ir = It((ae) => ae === "blogs" || ae === "posts" ? "posts" : ae === "comments" || ae === "replies" ? "replies" : ae === "authorRewards" || ae === "curationRewards" || ae === "rewards" ? "rewards" : ae === "followers" || ae === "following" || ae === "follows" ? "followers" : ae === "activities" || ae === "curation" ? "activities" : ae === "wallet" || ae === "votingPower" || ae === "tokens" ? "wallet" : ae, []), xa = Ir(Tr), [gn, On] = W(xa), $n = mr ? $e : gn, gt = Ir($n), [Kt, Zr] = W(
|
|
85151
|
+
Nr?.postsSubTab !== void 0 ? Nr.postsSubTab : vt === "posts" || vt === "blogs" ? vt : Tr === "posts" ? "posts" : "blogs"
|
|
85152
85152
|
), [xr, La] = W(
|
|
85153
|
-
Nr?.repliesSubTab !== void 0 ? Nr.repliesSubTab : vt === "replies" || vt === "comments" ? vt :
|
|
85153
|
+
Nr?.repliesSubTab !== void 0 ? Nr.repliesSubTab : vt === "replies" || vt === "comments" ? vt : Tr === "replies" ? "replies" : "comments"
|
|
85154
85154
|
), [zr, Yr] = W(
|
|
85155
|
-
Nr?.rewardsSubTab !== void 0 ? Nr.rewardsSubTab : vt === "authorRewards" || vt === "curationRewards" ? vt :
|
|
85155
|
+
Nr?.rewardsSubTab !== void 0 ? Nr.rewardsSubTab : vt === "authorRewards" || vt === "curationRewards" ? vt : Tr === "curationRewards" ? "curationRewards" : "authorRewards"
|
|
85156
85156
|
), [vr, Re] = W(
|
|
85157
|
-
Nr?.followsSubTab !== void 0 ? Nr.followsSubTab : vt === "following" || vt === "followers" ? vt :
|
|
85157
|
+
Nr?.followsSubTab !== void 0 ? Nr.followsSubTab : vt === "following" || vt === "followers" ? vt : Tr === "following" ? "following" : "followers"
|
|
85158
85158
|
), [Qe, Rt] = W(
|
|
85159
|
-
Nr?.activitiesSubTab !== void 0 ? Nr.activitiesSubTab : vt === "curation" || vt === "activities" ? vt :
|
|
85159
|
+
Nr?.activitiesSubTab !== void 0 ? Nr.activitiesSubTab : vt === "curation" || vt === "activities" ? vt : Tr === "curation" ? "curation" : "activities"
|
|
85160
85160
|
), [Lt, Qr] = W(
|
|
85161
|
-
Nr?.walletSubTab !== void 0 ? Nr.walletSubTab : vt === "votingPower" || vt === "tokens" || vt === "wallet" ? vt :
|
|
85161
|
+
Nr?.walletSubTab !== void 0 ? Nr.walletSubTab : vt === "votingPower" || vt === "tokens" || vt === "wallet" ? vt : Tr === "votingPower" ? "votingPower" : pa === "tokens" ? "tokens" : "wallet"
|
|
85162
85162
|
);
|
|
85163
85163
|
qe(() => {
|
|
85164
85164
|
vt && (vt === "blogs" || vt === "posts" ? Zr(vt) : vt === "comments" || vt === "replies" ? La(vt) : vt === "authorRewards" || vt === "curationRewards" ? Yr(vt) : vt === "followers" || vt === "following" ? Re(vt) : vt === "activities" || vt === "curation" ? Rt(vt) : (vt === "wallet" || vt === "tokens" || vt === "votingPower") && Qr(vt));
|
|
@@ -85212,9 +85212,9 @@ const fC = (r) => {
|
|
|
85212
85212
|
curation: !0,
|
|
85213
85213
|
rewards: !1,
|
|
85214
85214
|
tokens: !1
|
|
85215
|
-
}), ba = 20, Ua = 100, fn = $t(null), [Ka, Oa] = W(!1), [di, Na] = W(!1), [Ii, Ti] = W(!1), [Al, Ci] = W(!1), [vi, qs] = W(null), fo = $t(null), ds = $t(null), [Ln, Te] = W(!1), [Gt,
|
|
85215
|
+
}), ba = 20, Ua = 100, fn = $t(null), [Ka, Oa] = W(!1), [di, Na] = W(!1), [Ii, Ti] = W(!1), [Al, Ci] = W(!1), [vi, qs] = W(null), fo = $t(null), ds = $t(null), [Ln, Te] = W(!1), [Gt, Cr] = W(!1), Jr = It(() => {
|
|
85216
85216
|
const ae = ds.current;
|
|
85217
|
-
ae && (Te(ae.scrollLeft > 0),
|
|
85217
|
+
ae && (Te(ae.scrollLeft > 0), Cr(ae.scrollLeft + ae.clientWidth < ae.scrollWidth - 1), ot && (Wl[ot] ? Wl[ot].tabScrollLeft = ae.scrollLeft : Wl[ot] = {
|
|
85218
85218
|
tab: gr.current,
|
|
85219
85219
|
scrollTop: 0,
|
|
85220
85220
|
tabScrollLeft: ae.scrollLeft
|
|
@@ -85285,9 +85285,9 @@ const fC = (r) => {
|
|
|
85285
85285
|
Mt(!0), ir(null);
|
|
85286
85286
|
try {
|
|
85287
85287
|
const [Xe, at, ar] = await Promise.all([
|
|
85288
|
-
|
|
85289
|
-
|
|
85290
|
-
|
|
85288
|
+
Or.getProfile(ot),
|
|
85289
|
+
Or.getAccounts([ot]),
|
|
85290
|
+
Or.getDynamicGlobalProperties()
|
|
85291
85291
|
]), xt = Xe?.result, Er = at?.[0];
|
|
85292
85292
|
if (!xt) {
|
|
85293
85293
|
ir("User not found");
|
|
@@ -85304,8 +85304,8 @@ const fC = (r) => {
|
|
|
85304
85304
|
if (o && o !== ot)
|
|
85305
85305
|
try {
|
|
85306
85306
|
const [ai, Pi] = await Promise.all([
|
|
85307
|
-
|
|
85308
|
-
|
|
85307
|
+
Or.getFollowing(o),
|
|
85308
|
+
Or.getMuted(o)
|
|
85309
85309
|
]);
|
|
85310
85310
|
Ia = ai.some((xi) => xi.following === ot), Jn = Pi.some((xi) => xi.following === ot);
|
|
85311
85311
|
} catch {
|
|
@@ -85529,14 +85529,14 @@ const fC = (r) => {
|
|
|
85529
85529
|
Gr(!1);
|
|
85530
85530
|
break;
|
|
85531
85531
|
}
|
|
85532
|
-
const xt = on(await
|
|
85532
|
+
const xt = on(await Or.getUserBlogs(ot, ba, void 0, void 0, Xe));
|
|
85533
85533
|
zt(xt), la((Er) => ({ ...Er, blogs: xt.length >= ba }));
|
|
85534
85534
|
} else {
|
|
85535
85535
|
if (Hr.length > 0) {
|
|
85536
85536
|
Gr(!1);
|
|
85537
85537
|
break;
|
|
85538
85538
|
}
|
|
85539
|
-
const xt = on(await
|
|
85539
|
+
const xt = on(await Or.getUserPosts(ot, ba, void 0, void 0, Xe));
|
|
85540
85540
|
sa(xt), la((Er) => ({ ...Er, posts: xt.length >= ba }));
|
|
85541
85541
|
}
|
|
85542
85542
|
break;
|
|
@@ -85548,7 +85548,7 @@ const fC = (r) => {
|
|
|
85548
85548
|
Gr(!1);
|
|
85549
85549
|
break;
|
|
85550
85550
|
}
|
|
85551
|
-
const xt = on(await
|
|
85551
|
+
const xt = on(await Or.getUserPolls(ot, Xe));
|
|
85552
85552
|
Ca(xt), la((Er) => ({ ...Er, polls: !1 }));
|
|
85553
85553
|
break;
|
|
85554
85554
|
}
|
|
@@ -85558,14 +85558,14 @@ const fC = (r) => {
|
|
|
85558
85558
|
Gr(!1);
|
|
85559
85559
|
break;
|
|
85560
85560
|
}
|
|
85561
|
-
const xt = on(await
|
|
85561
|
+
const xt = on(await Or.getUserComments(ot, ba, void 0, void 0, Xe));
|
|
85562
85562
|
da(xt), la((Er) => ({ ...Er, comments: xt.length >= ba }));
|
|
85563
85563
|
} else {
|
|
85564
85564
|
if (Ga.length > 0) {
|
|
85565
85565
|
Gr(!1);
|
|
85566
85566
|
break;
|
|
85567
85567
|
}
|
|
85568
|
-
const xt = await
|
|
85568
|
+
const xt = await Or.getUserReplies(ot, ba, void 0, void 0, Xe);
|
|
85569
85569
|
an(on(xt)), la((Er) => ({ ...Er, replies: xt.length >= ba }));
|
|
85570
85570
|
}
|
|
85571
85571
|
break;
|
|
@@ -85576,14 +85576,14 @@ const fC = (r) => {
|
|
|
85576
85576
|
Gr(!1);
|
|
85577
85577
|
break;
|
|
85578
85578
|
}
|
|
85579
|
-
const xt = await
|
|
85579
|
+
const xt = await Or.getFollowers(ot, null, Ua, Xe);
|
|
85580
85580
|
ur(xt), la((Er) => ({ ...Er, followers: xt.length >= Ua }));
|
|
85581
85581
|
} else {
|
|
85582
85582
|
if (Qt.length > 0) {
|
|
85583
85583
|
Gr(!1);
|
|
85584
85584
|
break;
|
|
85585
85585
|
}
|
|
85586
|
-
const xt = await
|
|
85586
|
+
const xt = await Or.getFollowing(ot, null, Ua, Xe);
|
|
85587
85587
|
Pr(xt), la((Er) => ({ ...Er, following: xt.length >= Ua }));
|
|
85588
85588
|
}
|
|
85589
85589
|
break;
|
|
@@ -85595,7 +85595,7 @@ const fC = (r) => {
|
|
|
85595
85595
|
break;
|
|
85596
85596
|
}
|
|
85597
85597
|
Ht(!0);
|
|
85598
|
-
const xt = await
|
|
85598
|
+
const xt = await Or.getPendingAuthorRewards(
|
|
85599
85599
|
ot,
|
|
85600
85600
|
(Er, Va, Hn) => {
|
|
85601
85601
|
Xe.aborted || (un([...Er]), Cn({ totalHbd: Va, totalHpEq: Hn }), Gr(!1));
|
|
@@ -85609,7 +85609,7 @@ const fC = (r) => {
|
|
|
85609
85609
|
break;
|
|
85610
85610
|
}
|
|
85611
85611
|
Ht(!0);
|
|
85612
|
-
const xt = await
|
|
85612
|
+
const xt = await Or.getPendingCurationRewards(
|
|
85613
85613
|
ot,
|
|
85614
85614
|
(Er, Va, Hn) => {
|
|
85615
85615
|
Xe.aborted || (_t([...Er]), Bt({ totalHp: Va, totalHbd: Hn }), Gr(!1));
|
|
@@ -85627,9 +85627,9 @@ const fC = (r) => {
|
|
|
85627
85627
|
break;
|
|
85628
85628
|
}
|
|
85629
85629
|
const [xt, , Er] = await Promise.all([
|
|
85630
|
-
|
|
85631
|
-
|
|
85632
|
-
|
|
85630
|
+
Or.getAccounts([ot], Xe),
|
|
85631
|
+
Or.getDynamicGlobalProperties(Xe),
|
|
85632
|
+
Or.getFeedHistory(Xe)
|
|
85633
85633
|
]), Va = xt?.[0];
|
|
85634
85634
|
if (Va) {
|
|
85635
85635
|
const Ia = (Pn) => parseFloat(String(Pn).split(" ")[0]) || 0, Ya = (Ia(Va.vesting_shares) + Ia(Va.received_vesting_shares) - Ia(Va.delegated_vesting_shares)) * 1e6, na = Math.floor(Date.now() / 1e3) - Va.voting_manabar.last_update_time;
|
|
@@ -85689,12 +85689,12 @@ const fC = (r) => {
|
|
|
85689
85689
|
}
|
|
85690
85690
|
let xt = [], Er = null, Va = !0;
|
|
85691
85691
|
for (; Va; ) {
|
|
85692
|
-
const Ia = await
|
|
85692
|
+
const Ia = await Or.getFollowers(ot, Er, 1e3, Xe);
|
|
85693
85693
|
xt = [...xt, ...Ia], Ia.length < 1e3 ? Va = !1 : Er = Ia[Ia.length - 1].follower;
|
|
85694
85694
|
}
|
|
85695
85695
|
const Hn = xt.map((Ia) => Ia.follower).filter((Ia) => Ia.startsWith("badge-"));
|
|
85696
85696
|
if (ga(Hn), Hn.length > 0) {
|
|
85697
|
-
const Ia = await
|
|
85697
|
+
const Ia = await Or.getAccounts(Hn, Xe);
|
|
85698
85698
|
_n(Ia);
|
|
85699
85699
|
} else
|
|
85700
85700
|
_n([]);
|
|
@@ -85717,7 +85717,7 @@ const fC = (r) => {
|
|
|
85717
85717
|
Gr(!1);
|
|
85718
85718
|
break;
|
|
85719
85719
|
}
|
|
85720
|
-
const Er = (await
|
|
85720
|
+
const Er = (await Or.getAccounts([ot], Xe))?.[0];
|
|
85721
85721
|
Er?.witness_votes && er(Er.witness_votes);
|
|
85722
85722
|
break;
|
|
85723
85723
|
}
|
|
@@ -85762,12 +85762,12 @@ const fC = (r) => {
|
|
|
85762
85762
|
if (Kt === "blogs") {
|
|
85763
85763
|
const Xe = ka[ka.length - 1];
|
|
85764
85764
|
if (!Xe) break;
|
|
85765
|
-
const at = await
|
|
85765
|
+
const at = await Or.getUserBlogs(ot, ba, Xe.author, Xe.permlink), ar = on(at.length > 0 && at[0].permlink === Xe.permlink ? at.slice(1) : at);
|
|
85766
85766
|
zt((xt) => [...xt, ...ar]), la((xt) => ({ ...xt, blogs: ar.length >= ba - 1 }));
|
|
85767
85767
|
} else {
|
|
85768
85768
|
const Xe = Hr[Hr.length - 1];
|
|
85769
85769
|
if (!Xe) break;
|
|
85770
|
-
const at = await
|
|
85770
|
+
const at = await Or.getUserPosts(ot, ba, Xe.author, Xe.permlink), ar = on(at.length > 0 && at[0].permlink === Xe.permlink ? at.slice(1) : at);
|
|
85771
85771
|
sa((xt) => [...xt, ...ar]), la((xt) => ({ ...xt, posts: ar.length >= ba - 1 }));
|
|
85772
85772
|
}
|
|
85773
85773
|
break;
|
|
@@ -85776,12 +85776,12 @@ const fC = (r) => {
|
|
|
85776
85776
|
if (xr === "comments") {
|
|
85777
85777
|
const Xe = en[en.length - 1];
|
|
85778
85778
|
if (!Xe) break;
|
|
85779
|
-
const at = await
|
|
85779
|
+
const at = await Or.getUserComments(ot, ba, Xe.author, Xe.permlink), ar = on(at.length > 0 && at[0].permlink === Xe.permlink ? at.slice(1) : at);
|
|
85780
85780
|
da((xt) => [...xt, ...ar]), la((xt) => ({ ...xt, comments: ar.length >= ba - 1 }));
|
|
85781
85781
|
} else {
|
|
85782
85782
|
const Xe = Ga[Ga.length - 1];
|
|
85783
85783
|
if (!Xe) break;
|
|
85784
|
-
const at = await
|
|
85784
|
+
const at = await Or.getUserReplies(ot, ba, Xe.author, Xe.permlink), ar = on(at.length > 0 && at[0].permlink === Xe.permlink ? at.slice(1) : at);
|
|
85785
85785
|
an((xt) => [...xt, ...ar]), la((xt) => ({ ...xt, replies: at.length >= ba }));
|
|
85786
85786
|
}
|
|
85787
85787
|
break;
|
|
@@ -85790,12 +85790,12 @@ const fC = (r) => {
|
|
|
85790
85790
|
if (vr === "followers") {
|
|
85791
85791
|
const Xe = kt[kt.length - 1];
|
|
85792
85792
|
if (!Xe) break;
|
|
85793
|
-
const at = await
|
|
85793
|
+
const at = await Or.getFollowers(ot, Xe.follower, Ua), ar = at.length > 0 && at[0].follower === Xe.follower ? at.slice(1) : at;
|
|
85794
85794
|
ur((xt) => [...xt, ...ar]), la((xt) => ({ ...xt, followers: ar.length >= Ua - 1 }));
|
|
85795
85795
|
} else {
|
|
85796
85796
|
const Xe = Qt[Qt.length - 1];
|
|
85797
85797
|
if (!Xe) break;
|
|
85798
|
-
const at = await
|
|
85798
|
+
const at = await Or.getFollowing(ot, Xe.following, Ua), ar = at.length > 0 && at[0].following === Xe.following ? at.slice(1) : at;
|
|
85799
85799
|
Pr((xt) => [...xt, ...ar]), la((xt) => ({ ...xt, following: ar.length >= Ua - 1 }));
|
|
85800
85800
|
}
|
|
85801
85801
|
break;
|
|
@@ -85840,7 +85840,7 @@ const fC = (r) => {
|
|
|
85840
85840
|
followersCount: ae ? Math.max(0, Xe.followersCount - 1) : Xe.followersCount + 1
|
|
85841
85841
|
}), setTimeout(async () => {
|
|
85842
85842
|
try {
|
|
85843
|
-
const Xe = await
|
|
85843
|
+
const Xe = await Or.getProfile(ot);
|
|
85844
85844
|
Xe?.result?.stats && fa((at) => at && {
|
|
85845
85845
|
...at,
|
|
85846
85846
|
followersCount: Xe.result.stats.followers ?? at.followersCount,
|
|
@@ -86130,7 +86130,7 @@ const fC = (r) => {
|
|
|
86130
86130
|
templateApiBaseUrl: _,
|
|
86131
86131
|
defaultVotePercent: Xt,
|
|
86132
86132
|
voteWeightStep: tr,
|
|
86133
|
-
allowLandscapeVideos:
|
|
86133
|
+
allowLandscapeVideos: Rr,
|
|
86134
86134
|
awaitingWalletApproval: _a
|
|
86135
86135
|
}
|
|
86136
86136
|
) })
|
|
@@ -86230,7 +86230,7 @@ const fC = (r) => {
|
|
|
86230
86230
|
},
|
|
86231
86231
|
`${ae.name}-${Xe}`
|
|
86232
86232
|
);
|
|
86233
|
-
},
|
|
86233
|
+
}, Dr = (ae, Xe) => {
|
|
86234
86234
|
const at = ae.description ? ae.description.replace(/<[^>]*>/g, "") : "";
|
|
86235
86235
|
return /* @__PURE__ */ v(
|
|
86236
86236
|
"div",
|
|
@@ -86276,7 +86276,7 @@ const fC = (r) => {
|
|
|
86276
86276
|
/* @__PURE__ */ n("div", { className: "h-3 w-10 rounded bg-[var(--hrk-bg-surface-raised)]/70" }),
|
|
86277
86277
|
/* @__PURE__ */ n("div", { className: "ml-auto h-3 w-12 rounded bg-[var(--hrk-bg-surface-raised)]/70" })
|
|
86278
86278
|
] })
|
|
86279
|
-
] }, at)) }),
|
|
86279
|
+
] }, at)) }), Mr = (ae = 8) => /* @__PURE__ */ n("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3 animate-pulse", children: Array.from({ length: ae }, (Xe, at) => /* @__PURE__ */ n("div", { className: "border border-[var(--hrk-border-subtle)] rounded-lg p-4 bg-[var(--hrk-bg-surface)]", children: /* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
|
|
86280
86280
|
/* @__PURE__ */ n("div", { className: "w-10 h-10 bg-[var(--hrk-bg-surface-raised)] rounded-full flex-shrink-0" }),
|
|
86281
86281
|
/* @__PURE__ */ n("div", { className: "h-4 bg-[var(--hrk-bg-surface-raised)] rounded w-28" })
|
|
86282
86282
|
] }) }, at)) }), aa = (ae = 3) => /* @__PURE__ */ n("div", { className: "space-y-3 animate-pulse", children: Array.from({ length: ae }, (Xe, at) => /* @__PURE__ */ n("div", { className: "bg-[var(--hrk-bg-surface)] rounded-xl p-4 border border-[var(--hrk-border-subtle)]", children: /* @__PURE__ */ v("div", { className: "flex items-start gap-3 mb-3", children: [
|
|
@@ -86756,7 +86756,7 @@ const fC = (r) => {
|
|
|
86756
86756
|
] })
|
|
86757
86757
|
] })
|
|
86758
86758
|
),
|
|
86759
|
-
Ma ?
|
|
86759
|
+
Ma ? Mr() : (vr === "followers" ? kt : Qt).length === 0 ? /* @__PURE__ */ v("div", { className: "text-center py-12", children: [
|
|
86760
86760
|
/* @__PURE__ */ n(eo, { className: "h-12 w-12 text-[var(--hrk-text-tertiary)] mx-auto mb-3" }),
|
|
86761
86761
|
/* @__PURE__ */ n("p", { className: "text-[var(--hrk-text-tertiary)]", children: vr === "followers" ? Ct("empty.noFollowers") || "No followers yet." : Ct("empty.notFollowing") || "Not following anyone yet." })
|
|
86762
86762
|
] }) : /* @__PURE__ */ n("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: vr === "followers" ? kt.map((ae, Xe) => rt(ae.follower, Xe)) : Qt.map((ae, Xe) => rt(ae.following, Xe)) })
|
|
@@ -86819,10 +86819,10 @@ const fC = (r) => {
|
|
|
86819
86819
|
templateApiBaseUrl: _,
|
|
86820
86820
|
defaultVotePercent: Xt,
|
|
86821
86821
|
voteWeightStep: tr,
|
|
86822
|
-
allowLandscapeVideos:
|
|
86822
|
+
allowLandscapeVideos: Rr
|
|
86823
86823
|
},
|
|
86824
86824
|
`${ae.author}/${ae.permlink}`
|
|
86825
|
-
)) }) : gt === "badges" ? Ma ?
|
|
86825
|
+
)) }) : gt === "badges" ? Ma ? Mr() : qr.length === 0 && ya.length === 0 ? /* @__PURE__ */ v("div", { className: "text-center py-12", children: [
|
|
86826
86826
|
/* @__PURE__ */ n(tb, { className: "h-12 w-12 text-[var(--hrk-text-tertiary)] mx-auto mb-3" }),
|
|
86827
86827
|
/* @__PURE__ */ n("p", { className: "text-[var(--hrk-text-tertiary)]", children: Ct("empty.noBadges") })
|
|
86828
86828
|
] }) : /* @__PURE__ */ v("div", { className: "space-y-8", children: [
|
|
@@ -86835,9 +86835,9 @@ const fC = (r) => {
|
|
|
86835
86835
|
/* @__PURE__ */ n("h3", { className: "text-sm font-semibold text-white tracking-wide uppercase opacity-90", children: "HiveBuzz Badges" }),
|
|
86836
86836
|
/* @__PURE__ */ n("a", { href: `https://hivebuzz.me/@${ot}`, target: "_blank", rel: "noopener noreferrer", className: "text-[10px] text-blue-400 hover:underline uppercase tracking-wider font-semibold", children: "powered by hivebuzz" })
|
|
86837
86837
|
] }),
|
|
86838
|
-
ya.length === 0 ? /* @__PURE__ */ n("p", { className: "text-xs text-[var(--hrk-text-tertiary)] italic", children: "No HiveBuzz badges earned yet" }) : /* @__PURE__ */ n("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3", children: ya.map((ae, Xe) =>
|
|
86838
|
+
ya.length === 0 ? /* @__PURE__ */ n("p", { className: "text-xs text-[var(--hrk-text-tertiary)] italic", children: "No HiveBuzz badges earned yet" }) : /* @__PURE__ */ n("div", { className: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3", children: ya.map((ae, Xe) => Dr(ae, Xe)) })
|
|
86839
86839
|
] })
|
|
86840
|
-
] }) : gt === "witnessVotes" ? Ma ?
|
|
86840
|
+
] }) : gt === "witnessVotes" ? Ma ? Mr() : ut.length === 0 ? /* @__PURE__ */ v("div", { className: "text-center py-12", children: [
|
|
86841
86841
|
/* @__PURE__ */ n(M3, { className: "h-12 w-12 text-[var(--hrk-text-tertiary)] mx-auto mb-3" }),
|
|
86842
86842
|
/* @__PURE__ */ n("p", { className: "text-[var(--hrk-text-tertiary)]", children: Ct("empty.noWitnessVotes") })
|
|
86843
86843
|
] }) : /* @__PURE__ */ n("div", { className: "grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-3", children: ut.map((ae, Xe) => rt(ae, Xe)) }) : gt === "snaps" ? /* @__PURE__ */ n("div", { className: "h-[calc(100vh-260px)] min-h-[420px]", children: /* @__PURE__ */ n(
|
|
@@ -86878,7 +86878,7 @@ const fC = (r) => {
|
|
|
86878
86878
|
templateApiBaseUrl: _,
|
|
86879
86879
|
defaultVotePercent: Xt,
|
|
86880
86880
|
voteWeightStep: tr,
|
|
86881
|
-
allowLandscapeVideos:
|
|
86881
|
+
allowLandscapeVideos: Rr,
|
|
86882
86882
|
awaitingWalletApproval: _a,
|
|
86883
86883
|
renderHeaderActions: ea
|
|
86884
86884
|
},
|
|
@@ -89083,6 +89083,6 @@ export {
|
|
|
89083
89083
|
Vz as useTranslatedHtml,
|
|
89084
89084
|
E9 as useTranslatedText,
|
|
89085
89085
|
v9 as useWalletStore,
|
|
89086
|
-
|
|
89086
|
+
Or as userService,
|
|
89087
89087
|
Kl as witnessService
|
|
89088
89088
|
};
|