wacomm 2.28.2 → 2.28.3
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/wacomm.cjs.js +3 -3
- package/dist/wacomm.es.js +361 -352
- package/package.json +1 -1
package/dist/wacomm.es.js
CHANGED
|
@@ -32974,8 +32974,11 @@ function zD({ locations: e }) {
|
|
|
32974
32974
|
}
|
|
32975
32975
|
//#endregion
|
|
32976
32976
|
//#region src/osmMap/OsmMap.tsx
|
|
32977
|
-
var BD = ({ lng: e, lat: t, zoom: n = 12, setCoordinates: r, locations: i = [], token: a, navigationControl: o }) => {
|
|
32978
|
-
let s = b(null),
|
|
32977
|
+
var BD = 1e-6, VD = (e, t) => Math.abs(e - t) < BD, HD = ({ lng: e, lat: t, zoom: n = 12, setCoordinates: r, locations: i = [], token: a, navigationControl: o }) => {
|
|
32978
|
+
let s = b(null), c = b(fn(t, e) ? {
|
|
32979
|
+
lat: t,
|
|
32980
|
+
lng: e
|
|
32981
|
+
} : null), [l, u] = x(fn(t, e) ? {
|
|
32979
32982
|
longitude: e,
|
|
32980
32983
|
latitude: t,
|
|
32981
32984
|
zoom: n
|
|
@@ -32985,24 +32988,30 @@ var BD = ({ lng: e, lat: t, zoom: n = 12, setCoordinates: r, locations: i = [],
|
|
|
32985
32988
|
zoom: n
|
|
32986
32989
|
});
|
|
32987
32990
|
return g(() => {
|
|
32988
|
-
fn(t, e)
|
|
32991
|
+
if (!fn(t, e)) return;
|
|
32992
|
+
let n = c.current;
|
|
32993
|
+
n && VD(n.lat, t) && VD(n.lng, e) || (c.current = {
|
|
32994
|
+
lat: t,
|
|
32995
|
+
lng: e
|
|
32996
|
+
}, s.current ? s.current.flyTo({
|
|
32989
32997
|
center: [e, t],
|
|
32998
|
+
zoom: s.current.getZoom(),
|
|
32990
32999
|
duration: 3e3,
|
|
32991
33000
|
essential: !0
|
|
32992
|
-
}) :
|
|
33001
|
+
}) : u((n) => ({
|
|
32993
33002
|
...n,
|
|
32994
33003
|
longitude: e,
|
|
32995
33004
|
latitude: t
|
|
32996
33005
|
})));
|
|
32997
33006
|
}, [t, e]), /* @__PURE__ */ w(PD, {
|
|
32998
33007
|
ref: s,
|
|
32999
|
-
...
|
|
33008
|
+
...l,
|
|
33000
33009
|
mapStyle: `https://tiles.locationiq.com/v3/streets/vector.json?key=${a}`,
|
|
33001
33010
|
style: {
|
|
33002
33011
|
width: "100%",
|
|
33003
33012
|
height: "100%"
|
|
33004
33013
|
},
|
|
33005
|
-
onMove: (e) =>
|
|
33014
|
+
onMove: (e) => u(e.viewState),
|
|
33006
33015
|
onClick: (e) => {
|
|
33007
33016
|
let { lng: t, lat: n } = e.lngLat;
|
|
33008
33017
|
r && r({
|
|
@@ -33031,12 +33040,12 @@ var BD = ({ lng: e, lat: t, zoom: n = 12, setCoordinates: r, locations: i = [],
|
|
|
33031
33040
|
/* @__PURE__ */ C(ID, { position: o.position })
|
|
33032
33041
|
]
|
|
33033
33042
|
});
|
|
33034
|
-
},
|
|
33043
|
+
}, UD = /* @__PURE__ */ function(e) {
|
|
33035
33044
|
return e.TR = "top-right", e;
|
|
33036
33045
|
}({});
|
|
33037
33046
|
//#endregion
|
|
33038
33047
|
//#region node_modules/react-tooltip/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
33039
|
-
function
|
|
33048
|
+
function WD(e, t, n) {
|
|
33040
33049
|
let { reference: r, floating: i } = e, a = Mu(t), o = Nu(t), s = ju(o), c = Ou(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
33041
33050
|
switch (c) {
|
|
33042
33051
|
case "top":
|
|
@@ -33071,7 +33080,7 @@ function HD(e, t, n) {
|
|
|
33071
33080
|
let m = ku(t);
|
|
33072
33081
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
33073
33082
|
}
|
|
33074
|
-
async function
|
|
33083
|
+
async function GD(e, t) {
|
|
33075
33084
|
t === void 0 && (t = {});
|
|
33076
33085
|
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Du(t, e), p = Gu(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = Ku(await i.getClippingRect({
|
|
33077
33086
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
@@ -33099,15 +33108,15 @@ async function UD(e, t) {
|
|
|
33099
33108
|
right: (y.right - h.right + p.right) / v.x
|
|
33100
33109
|
};
|
|
33101
33110
|
}
|
|
33102
|
-
var
|
|
33111
|
+
var KD = 50, qD = async (e, t, n) => {
|
|
33103
33112
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
33104
33113
|
...o,
|
|
33105
|
-
detectOverflow:
|
|
33114
|
+
detectOverflow: GD
|
|
33106
33115
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
33107
33116
|
reference: e,
|
|
33108
33117
|
floating: t,
|
|
33109
33118
|
strategy: i
|
|
33110
|
-
}), { x: u, y: d } =
|
|
33119
|
+
}), { x: u, y: d } = WD(l, r, c), f = r, p = 0, m = {};
|
|
33111
33120
|
for (let n = 0; n < a.length; n++) {
|
|
33112
33121
|
let h = a[n];
|
|
33113
33122
|
if (!h) continue;
|
|
@@ -33128,11 +33137,11 @@ var WD = 50, GD = async (e, t, n) => {
|
|
|
33128
33137
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
33129
33138
|
...m[g],
|
|
33130
33139
|
...b
|
|
33131
|
-
}, x && p <
|
|
33140
|
+
}, x && p < KD && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
33132
33141
|
reference: e,
|
|
33133
33142
|
floating: t,
|
|
33134
33143
|
strategy: i
|
|
33135
|
-
}) : x.rects), {x: u, y: d} =
|
|
33144
|
+
}) : x.rects), {x: u, y: d} = WD(l, f, c)), n = -1);
|
|
33136
33145
|
}
|
|
33137
33146
|
return {
|
|
33138
33147
|
x: u,
|
|
@@ -33141,7 +33150,7 @@ var WD = 50, GD = async (e, t, n) => {
|
|
|
33141
33150
|
strategy: i,
|
|
33142
33151
|
middlewareData: m
|
|
33143
33152
|
};
|
|
33144
|
-
},
|
|
33153
|
+
}, JD = (e) => ({
|
|
33145
33154
|
name: "arrow",
|
|
33146
33155
|
options: e,
|
|
33147
33156
|
async fn(t) {
|
|
@@ -33163,7 +33172,7 @@ var WD = 50, GD = async (e, t, n) => {
|
|
|
33163
33172
|
reset: j
|
|
33164
33173
|
};
|
|
33165
33174
|
}
|
|
33166
|
-
}),
|
|
33175
|
+
}), YD = function(e) {
|
|
33167
33176
|
return e === void 0 && (e = {}), {
|
|
33168
33177
|
name: "flip",
|
|
33169
33178
|
options: e,
|
|
@@ -33212,9 +33221,9 @@ var WD = 50, GD = async (e, t, n) => {
|
|
|
33212
33221
|
return {};
|
|
33213
33222
|
}
|
|
33214
33223
|
};
|
|
33215
|
-
},
|
|
33216
|
-
async function
|
|
33217
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ou(n), s = ku(n), c = Mu(n) === "y", l =
|
|
33224
|
+
}, XD = /*#__PURE__*/ new Set(["left", "top"]);
|
|
33225
|
+
async function ZD(e, t) {
|
|
33226
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ou(n), s = ku(n), c = Mu(n) === "y", l = XD.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Du(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
33218
33227
|
mainAxis: d,
|
|
33219
33228
|
crossAxis: 0,
|
|
33220
33229
|
alignmentAxis: null
|
|
@@ -33231,13 +33240,13 @@ async function YD(e, t) {
|
|
|
33231
33240
|
y: p * u
|
|
33232
33241
|
};
|
|
33233
33242
|
}
|
|
33234
|
-
var
|
|
33243
|
+
var QD = function(e) {
|
|
33235
33244
|
return e === void 0 && (e = 0), {
|
|
33236
33245
|
name: "offset",
|
|
33237
33246
|
options: e,
|
|
33238
33247
|
async fn(t) {
|
|
33239
33248
|
var n;
|
|
33240
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
33249
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ZD(t, e);
|
|
33241
33250
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
33242
33251
|
x: r + s.x,
|
|
33243
33252
|
y: i + s.y,
|
|
@@ -33248,7 +33257,7 @@ var XD = function(e) {
|
|
|
33248
33257
|
};
|
|
33249
33258
|
}
|
|
33250
33259
|
};
|
|
33251
|
-
},
|
|
33260
|
+
}, $D = function(e) {
|
|
33252
33261
|
return e === void 0 && (e = {}), {
|
|
33253
33262
|
name: "shift",
|
|
33254
33263
|
options: e,
|
|
@@ -33285,7 +33294,7 @@ var XD = function(e) {
|
|
|
33285
33294
|
};
|
|
33286
33295
|
//#endregion
|
|
33287
33296
|
//#region node_modules/react-tooltip/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
33288
|
-
function
|
|
33297
|
+
function eO(e) {
|
|
33289
33298
|
let t = fd(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = $u(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Su(n) !== a || Su(r) !== o;
|
|
33290
33299
|
return s && (n = a, r = o), {
|
|
33291
33300
|
width: n,
|
|
@@ -33293,38 +33302,38 @@ function QD(e) {
|
|
|
33293
33302
|
$: s
|
|
33294
33303
|
};
|
|
33295
33304
|
}
|
|
33296
|
-
function
|
|
33305
|
+
function tO(e) {
|
|
33297
33306
|
return Qu(e) ? e : e.contextElement;
|
|
33298
33307
|
}
|
|
33299
|
-
function
|
|
33300
|
-
let t =
|
|
33308
|
+
function nO(e) {
|
|
33309
|
+
let t = tO(e);
|
|
33301
33310
|
if (!$u(t)) return wu(1);
|
|
33302
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
33311
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = eO(t), o = (a ? Su(n.width) : n.width) / r, s = (a ? Su(n.height) : n.height) / i;
|
|
33303
33312
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
33304
33313
|
x: o,
|
|
33305
33314
|
y: s
|
|
33306
33315
|
};
|
|
33307
33316
|
}
|
|
33308
|
-
var
|
|
33309
|
-
function
|
|
33317
|
+
var rO = /*#__PURE__*/ wu(0);
|
|
33318
|
+
function iO(e) {
|
|
33310
33319
|
let t = Yu(e);
|
|
33311
|
-
return !ud() || !t.visualViewport ?
|
|
33320
|
+
return !ud() || !t.visualViewport ? rO : {
|
|
33312
33321
|
x: t.visualViewport.offsetLeft,
|
|
33313
33322
|
y: t.visualViewport.offsetTop
|
|
33314
33323
|
};
|
|
33315
33324
|
}
|
|
33316
|
-
function
|
|
33325
|
+
function aO(e, t, n) {
|
|
33317
33326
|
return t === void 0 && (t = !1), !!n && t && n === Yu(e);
|
|
33318
33327
|
}
|
|
33319
|
-
function
|
|
33328
|
+
function oO(e, t, n, r) {
|
|
33320
33329
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
33321
|
-
let i = e.getBoundingClientRect(), a =
|
|
33322
|
-
t && (r ? Qu(r) && (o =
|
|
33323
|
-
let s =
|
|
33330
|
+
let i = e.getBoundingClientRect(), a = tO(e), o = wu(1);
|
|
33331
|
+
t && (r ? Qu(r) && (o = nO(r)) : o = nO(e));
|
|
33332
|
+
let s = aO(a, n, r) ? iO(a) : wu(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
33324
33333
|
if (a && r) {
|
|
33325
33334
|
let e = Yu(a), t = Qu(r) ? Yu(r) : r, n = e, i = _d(n);
|
|
33326
33335
|
for (; i && t !== n;) {
|
|
33327
|
-
let e =
|
|
33336
|
+
let e = nO(i), t = i.getBoundingClientRect(), r = fd(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
33328
33337
|
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Yu(i), i = _d(n);
|
|
33329
33338
|
}
|
|
33330
33339
|
}
|
|
@@ -33335,18 +33344,18 @@ function iO(e, t, n, r) {
|
|
|
33335
33344
|
y: l
|
|
33336
33345
|
});
|
|
33337
33346
|
}
|
|
33338
|
-
function
|
|
33347
|
+
function sO(e, t) {
|
|
33339
33348
|
let n = pd(e).scrollLeft;
|
|
33340
|
-
return t ? t.left + n :
|
|
33349
|
+
return t ? t.left + n : oO(Xu(e)).left + n;
|
|
33341
33350
|
}
|
|
33342
|
-
function
|
|
33351
|
+
function cO(e, t) {
|
|
33343
33352
|
let n = e.getBoundingClientRect();
|
|
33344
33353
|
return {
|
|
33345
|
-
x: n.left + t.scrollLeft -
|
|
33354
|
+
x: n.left + t.scrollLeft - sO(e, n),
|
|
33346
33355
|
y: n.top + t.scrollTop
|
|
33347
33356
|
};
|
|
33348
33357
|
}
|
|
33349
|
-
function
|
|
33358
|
+
function lO(e) {
|
|
33350
33359
|
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Xu(r), s = t ? rd(t.floating) : !1;
|
|
33351
33360
|
if (r === o || s && a) return n;
|
|
33352
33361
|
let c = {
|
|
@@ -33354,10 +33363,10 @@ function sO(e) {
|
|
|
33354
33363
|
scrollTop: 0
|
|
33355
33364
|
}, l = wu(1), u = wu(0), d = $u(r);
|
|
33356
33365
|
if ((d || !a) && ((Ju(r) !== "body" || td(o)) && (c = pd(r)), d)) {
|
|
33357
|
-
let e =
|
|
33358
|
-
l =
|
|
33366
|
+
let e = oO(r);
|
|
33367
|
+
l = nO(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
33359
33368
|
}
|
|
33360
|
-
let f = o && !d && !a ?
|
|
33369
|
+
let f = o && !d && !a ? cO(o, c) : wu(0);
|
|
33361
33370
|
return {
|
|
33362
33371
|
width: n.width * l.x,
|
|
33363
33372
|
height: n.height * l.y,
|
|
@@ -33365,11 +33374,11 @@ function sO(e) {
|
|
|
33365
33374
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
33366
33375
|
};
|
|
33367
33376
|
}
|
|
33368
|
-
function
|
|
33377
|
+
function uO(e) {
|
|
33369
33378
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
33370
33379
|
}
|
|
33371
|
-
function
|
|
33372
|
-
let t = pd(e), n = e.ownerDocument.body, r = xu(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = xu(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft +
|
|
33380
|
+
function dO(e) {
|
|
33381
|
+
let t = pd(e), n = e.ownerDocument.body, r = xu(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = xu(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + sO(e), o = -t.scrollTop;
|
|
33373
33382
|
return fd(n).direction === "rtl" && (a += xu(e.clientWidth, n.clientWidth) - r), {
|
|
33374
33383
|
width: r,
|
|
33375
33384
|
height: i,
|
|
@@ -33377,17 +33386,17 @@ function lO(e) {
|
|
|
33377
33386
|
y: o
|
|
33378
33387
|
};
|
|
33379
33388
|
}
|
|
33380
|
-
var
|
|
33381
|
-
function
|
|
33389
|
+
var fO = 25;
|
|
33390
|
+
function pO(e, t, n) {
|
|
33382
33391
|
n === void 0 && (n = "viewport");
|
|
33383
33392
|
let r = n === "layoutViewport", i = Yu(e), a = Xu(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
33384
33393
|
if (o) {
|
|
33385
33394
|
let e = !ud() || t === "fixed";
|
|
33386
33395
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
33387
33396
|
}
|
|
33388
|
-
if (
|
|
33397
|
+
if (sO(a) <= 0) {
|
|
33389
33398
|
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
33390
|
-
o <=
|
|
33399
|
+
o <= fO && (s -= o);
|
|
33391
33400
|
}
|
|
33392
33401
|
return {
|
|
33393
33402
|
width: s,
|
|
@@ -33396,8 +33405,8 @@ function dO(e, t, n) {
|
|
|
33396
33405
|
y: u
|
|
33397
33406
|
};
|
|
33398
33407
|
}
|
|
33399
|
-
function
|
|
33400
|
-
let n =
|
|
33408
|
+
function mO(e, t) {
|
|
33409
|
+
let n = oO(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = nO(e);
|
|
33401
33410
|
return {
|
|
33402
33411
|
width: e.clientWidth * a.x,
|
|
33403
33412
|
height: e.clientHeight * a.y,
|
|
@@ -33405,13 +33414,13 @@ function fO(e, t) {
|
|
|
33405
33414
|
y: r * a.y
|
|
33406
33415
|
};
|
|
33407
33416
|
}
|
|
33408
|
-
function
|
|
33417
|
+
function hO(e, t, n) {
|
|
33409
33418
|
let r;
|
|
33410
|
-
if (t === "viewport" || t === "layoutViewport") r =
|
|
33411
|
-
else if (t === "document") r =
|
|
33412
|
-
else if (Qu(t)) r =
|
|
33419
|
+
if (t === "viewport" || t === "layoutViewport") r = pO(e, n, t);
|
|
33420
|
+
else if (t === "document") r = dO(Xu(e));
|
|
33421
|
+
else if (Qu(t)) r = mO(t, n);
|
|
33413
33422
|
else {
|
|
33414
|
-
let n =
|
|
33423
|
+
let n = iO(e);
|
|
33415
33424
|
r = {
|
|
33416
33425
|
x: t.x - n.x,
|
|
33417
33426
|
y: t.y - n.y,
|
|
@@ -33421,7 +33430,7 @@ function pO(e, t, n) {
|
|
|
33421
33430
|
}
|
|
33422
33431
|
return Ku(r);
|
|
33423
33432
|
}
|
|
33424
|
-
function
|
|
33433
|
+
function gO(e, t) {
|
|
33425
33434
|
let n = t.get(e);
|
|
33426
33435
|
if (n) return n;
|
|
33427
33436
|
let r = gd(e, [], !1).filter((e) => Qu(e) && Ju(e) !== "body"), i = null, a = fd(e).position === "fixed", o = a ? md(e) : e;
|
|
@@ -33431,10 +33440,10 @@ function mO(e, t) {
|
|
|
33431
33440
|
}
|
|
33432
33441
|
return t.set(e, r), r;
|
|
33433
33442
|
}
|
|
33434
|
-
function
|
|
33435
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? rd(t) ? [] :
|
|
33443
|
+
function _O(e) {
|
|
33444
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? rd(t) ? [] : gO(t, this._c) : [].concat(n), r], o = hO(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
33436
33445
|
for (let e = 1; e < a.length; e++) {
|
|
33437
|
-
let n =
|
|
33446
|
+
let n = hO(t, a[e], i);
|
|
33438
33447
|
s = xu(n.top, s), c = bu(n.right, c), l = bu(n.bottom, l), u = xu(n.left, u);
|
|
33439
33448
|
}
|
|
33440
33449
|
return {
|
|
@@ -33444,24 +33453,24 @@ function hO(e) {
|
|
|
33444
33453
|
y: s
|
|
33445
33454
|
};
|
|
33446
33455
|
}
|
|
33447
|
-
function
|
|
33448
|
-
let { width: t, height: n } =
|
|
33456
|
+
function vO(e) {
|
|
33457
|
+
let { width: t, height: n } = eO(e);
|
|
33449
33458
|
return {
|
|
33450
33459
|
width: t,
|
|
33451
33460
|
height: n
|
|
33452
33461
|
};
|
|
33453
33462
|
}
|
|
33454
|
-
function
|
|
33455
|
-
let r = $u(t), i = Xu(t), a = n === "fixed", o =
|
|
33463
|
+
function yO(e, t, n) {
|
|
33464
|
+
let r = $u(t), i = Xu(t), a = n === "fixed", o = oO(e, !0, a, t), s = {
|
|
33456
33465
|
scrollLeft: 0,
|
|
33457
33466
|
scrollTop: 0
|
|
33458
33467
|
}, c = wu(0);
|
|
33459
33468
|
if ((r || !a) && ((Ju(t) !== "body" || td(i)) && (s = pd(t)), r)) {
|
|
33460
|
-
let e =
|
|
33469
|
+
let e = oO(t, !0, a, t);
|
|
33461
33470
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
33462
33471
|
}
|
|
33463
|
-
!r && i && (c.x =
|
|
33464
|
-
let l = i && !r && !a ?
|
|
33472
|
+
!r && i && (c.x = sO(i));
|
|
33473
|
+
let l = i && !r && !a ? cO(i, s) : wu(0);
|
|
33465
33474
|
return {
|
|
33466
33475
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
33467
33476
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -33469,34 +33478,34 @@ function _O(e, t, n) {
|
|
|
33469
33478
|
height: o.height
|
|
33470
33479
|
};
|
|
33471
33480
|
}
|
|
33472
|
-
function
|
|
33481
|
+
function bO(e) {
|
|
33473
33482
|
return fd(e).position === "static";
|
|
33474
33483
|
}
|
|
33475
|
-
function
|
|
33484
|
+
function xO(e, t) {
|
|
33476
33485
|
if (!$u(e) || fd(e).position === "fixed") return null;
|
|
33477
33486
|
if (t) return t(e);
|
|
33478
33487
|
let n = e.offsetParent;
|
|
33479
33488
|
return Xu(e) === n && (n = n.ownerDocument.body), n;
|
|
33480
33489
|
}
|
|
33481
|
-
function
|
|
33490
|
+
function SO(e, t) {
|
|
33482
33491
|
let n = Yu(e);
|
|
33483
33492
|
if (rd(e)) return n;
|
|
33484
33493
|
if (!$u(e)) {
|
|
33485
33494
|
let t = md(e);
|
|
33486
33495
|
for (; t && !dd(t);) {
|
|
33487
|
-
if (Qu(t) && !
|
|
33496
|
+
if (Qu(t) && !bO(t)) return t;
|
|
33488
33497
|
t = md(t);
|
|
33489
33498
|
}
|
|
33490
33499
|
return n;
|
|
33491
33500
|
}
|
|
33492
|
-
let r =
|
|
33493
|
-
for (; r && nd(r) &&
|
|
33494
|
-
return r && dd(r) &&
|
|
33501
|
+
let r = xO(e, t);
|
|
33502
|
+
for (; r && nd(r) && bO(r);) r = xO(r, t);
|
|
33503
|
+
return r && dd(r) && bO(r) && !cd(r) ? n : r || ld(e) || n;
|
|
33495
33504
|
}
|
|
33496
|
-
var
|
|
33497
|
-
let t = this.getOffsetParent ||
|
|
33505
|
+
var CO = async function(e) {
|
|
33506
|
+
let t = this.getOffsetParent || SO, n = this.getDimensions, r = await n(e.floating);
|
|
33498
33507
|
return {
|
|
33499
|
-
reference:
|
|
33508
|
+
reference: yO(e.reference, await t(e.floating), e.strategy),
|
|
33500
33509
|
floating: {
|
|
33501
33510
|
x: 0,
|
|
33502
33511
|
y: 0,
|
|
@@ -33505,25 +33514,25 @@ var xO = async function(e) {
|
|
|
33505
33514
|
}
|
|
33506
33515
|
};
|
|
33507
33516
|
};
|
|
33508
|
-
function
|
|
33517
|
+
function wO(e) {
|
|
33509
33518
|
return fd(e).direction === "rtl";
|
|
33510
33519
|
}
|
|
33511
|
-
var
|
|
33512
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
33520
|
+
var TO = {
|
|
33521
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: lO,
|
|
33513
33522
|
getDocumentElement: Xu,
|
|
33514
|
-
getClippingRect:
|
|
33515
|
-
getOffsetParent:
|
|
33516
|
-
getElementRects:
|
|
33517
|
-
getClientRects:
|
|
33518
|
-
getDimensions:
|
|
33519
|
-
getScale:
|
|
33523
|
+
getClippingRect: _O,
|
|
33524
|
+
getOffsetParent: SO,
|
|
33525
|
+
getElementRects: CO,
|
|
33526
|
+
getClientRects: uO,
|
|
33527
|
+
getDimensions: vO,
|
|
33528
|
+
getScale: nO,
|
|
33520
33529
|
isElement: Qu,
|
|
33521
|
-
isRTL:
|
|
33530
|
+
isRTL: wO
|
|
33522
33531
|
};
|
|
33523
|
-
function
|
|
33532
|
+
function EO(e, t) {
|
|
33524
33533
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
33525
33534
|
}
|
|
33526
|
-
function
|
|
33535
|
+
function DO(e, t, n) {
|
|
33527
33536
|
let r = null, i, a = Xu(e);
|
|
33528
33537
|
function o() {
|
|
33529
33538
|
var e;
|
|
@@ -33539,7 +33548,7 @@ function TO(e, t, n) {
|
|
|
33539
33548
|
}, y = !0;
|
|
33540
33549
|
function b(t) {
|
|
33541
33550
|
let n = t[0].intersectionRatio;
|
|
33542
|
-
if (!
|
|
33551
|
+
if (!EO(l, e.getBoundingClientRect())) return s();
|
|
33543
33552
|
if (n !== c) {
|
|
33544
33553
|
if (!y) return s();
|
|
33545
33554
|
n ? s(!1, n) : i = setTimeout(() => {
|
|
@@ -33563,13 +33572,13 @@ function TO(e, t, n) {
|
|
|
33563
33572
|
c.removeEventListener("resize", l), o();
|
|
33564
33573
|
};
|
|
33565
33574
|
}
|
|
33566
|
-
function
|
|
33575
|
+
function OO(e, t, n, r) {
|
|
33567
33576
|
r === void 0 && (r = {});
|
|
33568
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
33577
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = tO(e), u = i || a ? [...l ? gd(l) : [], ...t ? gd(t) : []] : [];
|
|
33569
33578
|
u.forEach((e) => {
|
|
33570
33579
|
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
33571
33580
|
});
|
|
33572
|
-
let d = l && s ?
|
|
33581
|
+
let d = l && s ? DO(l, n, a) : null, f = -1, p = null;
|
|
33573
33582
|
o && (p = new ResizeObserver((e) => {
|
|
33574
33583
|
let [r] = e;
|
|
33575
33584
|
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
@@ -33577,11 +33586,11 @@ function EO(e, t, n, r) {
|
|
|
33577
33586
|
(e = p) == null || e.observe(t);
|
|
33578
33587
|
})), n();
|
|
33579
33588
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
33580
|
-
let m, h = c ?
|
|
33589
|
+
let m, h = c ? oO(e) : null;
|
|
33581
33590
|
c && g();
|
|
33582
33591
|
function g() {
|
|
33583
|
-
let t =
|
|
33584
|
-
h && !
|
|
33592
|
+
let t = oO(e);
|
|
33593
|
+
h && !EO(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
33585
33594
|
}
|
|
33586
33595
|
return n(), () => {
|
|
33587
33596
|
var e;
|
|
@@ -33590,17 +33599,17 @@ function EO(e, t, n, r) {
|
|
|
33590
33599
|
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
33591
33600
|
};
|
|
33592
33601
|
}
|
|
33593
|
-
var
|
|
33602
|
+
var kO = QD, AO = $D, jO = YD, MO = JD, NO = (e, t, n) => {
|
|
33594
33603
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
33595
|
-
...
|
|
33604
|
+
...TO,
|
|
33596
33605
|
...i.platform,
|
|
33597
33606
|
_c: r
|
|
33598
33607
|
};
|
|
33599
|
-
return
|
|
33608
|
+
return qD(e, t, {
|
|
33600
33609
|
...i,
|
|
33601
33610
|
platform: a
|
|
33602
33611
|
});
|
|
33603
|
-
},
|
|
33612
|
+
}, PO = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
33604
33613
|
(function() {
|
|
33605
33614
|
var e = {}.hasOwnProperty;
|
|
33606
33615
|
function n() {
|
|
@@ -33626,22 +33635,22 @@ var DO = XD, OO = ZD, kO = qD, AO = KD, jO = (e, t, n) => {
|
|
|
33626
33635
|
return n;
|
|
33627
33636
|
}) : window.classNames = n;
|
|
33628
33637
|
})();
|
|
33629
|
-
})))(), 1),
|
|
33638
|
+
})))(), 1), FO = "react-tooltip-core-styles", IO = "react-tooltip-base-styles", LO = {
|
|
33630
33639
|
core: !1,
|
|
33631
33640
|
base: !1
|
|
33632
33641
|
};
|
|
33633
|
-
function
|
|
33634
|
-
if (!e || typeof document > "u" ||
|
|
33635
|
-
n === "core" && (t =
|
|
33642
|
+
function RO({ css: e, id: t = IO, type: n = "base", ref: r }) {
|
|
33643
|
+
if (!e || typeof document > "u" || LO[n] || n === "core" && typeof process < "u" && (process == null ? void 0 : process.env)?.REACT_TOOLTIP_DISABLE_CORE_STYLES || n !== "base" && typeof process < "u" && (process == null ? void 0 : process.env)?.REACT_TOOLTIP_DISABLE_BASE_STYLES) return;
|
|
33644
|
+
n === "core" && (t = FO), r ||= {};
|
|
33636
33645
|
let { insertAt: i } = r;
|
|
33637
33646
|
if (document.getElementById(t)) return;
|
|
33638
33647
|
let a = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
|
|
33639
|
-
o.id = t, o.type = "text/css", i === "top" && a.firstChild ? a.insertBefore(o, a.firstChild) : a.appendChild(o), o.styleSheet ? o.styleSheet.cssText = e : o.appendChild(document.createTextNode(e)),
|
|
33648
|
+
o.id = t, o.type = "text/css", i === "top" && a.firstChild ? a.insertBefore(o, a.firstChild) : a.appendChild(o), o.styleSheet ? o.styleSheet.cssText = e : o.appendChild(document.createTextNode(e)), LO[n] = !0;
|
|
33640
33649
|
}
|
|
33641
|
-
var
|
|
33642
|
-
|
|
33643
|
-
|
|
33644
|
-
|
|
33650
|
+
var zO = async ({ elementReference: e = null, tooltipReference: t = null, tooltipArrowReference: n = null, place: r = "top", offset: i = 10, strategy: a = "absolute", middlewares: o = [
|
|
33651
|
+
kO(Number(i)),
|
|
33652
|
+
jO({ fallbackAxisSideDirection: "start" }),
|
|
33653
|
+
AO({ padding: 5 })
|
|
33645
33654
|
], border: s, arrowSize: c = 8 }) => {
|
|
33646
33655
|
if (!e || t === null) return {
|
|
33647
33656
|
tooltipStyles: {},
|
|
@@ -33649,10 +33658,10 @@ var LO = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
33649
33658
|
place: r
|
|
33650
33659
|
};
|
|
33651
33660
|
let l = o;
|
|
33652
|
-
return n ? (l.push(
|
|
33661
|
+
return n ? (l.push(MO({
|
|
33653
33662
|
element: n,
|
|
33654
33663
|
padding: 5
|
|
33655
|
-
})),
|
|
33664
|
+
})), NO(e, t, {
|
|
33656
33665
|
placement: r,
|
|
33657
33666
|
strategy: a,
|
|
33658
33667
|
middleware: l
|
|
@@ -33689,7 +33698,7 @@ var LO = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
33689
33698
|
},
|
|
33690
33699
|
place: n
|
|
33691
33700
|
};
|
|
33692
|
-
}))) :
|
|
33701
|
+
}))) : NO(e, t, {
|
|
33693
33702
|
placement: "bottom",
|
|
33694
33703
|
strategy: a,
|
|
33695
33704
|
middleware: l
|
|
@@ -33701,7 +33710,7 @@ var LO = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
33701
33710
|
tooltipArrowStyles: {},
|
|
33702
33711
|
place: n
|
|
33703
33712
|
})));
|
|
33704
|
-
},
|
|
33713
|
+
}, BO = (e, t) => !("CSS" in window && "supports" in window.CSS) || window.CSS.supports(e, t), VO = (e, t, n) => {
|
|
33705
33714
|
let r = null, i = function(...i) {
|
|
33706
33715
|
let a = () => {
|
|
33707
33716
|
r = null, n || e.apply(this, i);
|
|
@@ -33711,14 +33720,14 @@ var LO = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
33711
33720
|
return i.cancel = () => {
|
|
33712
33721
|
r &&= (clearTimeout(r), null);
|
|
33713
33722
|
}, i;
|
|
33714
|
-
},
|
|
33723
|
+
}, HO = (e) => e !== null && !Array.isArray(e) && typeof e == "object", UO = (e, t) => {
|
|
33715
33724
|
if (e === t) return !0;
|
|
33716
|
-
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every(((e, n) =>
|
|
33725
|
+
if (Array.isArray(e) && Array.isArray(t)) return e.length === t.length && e.every(((e, n) => UO(e, t[n])));
|
|
33717
33726
|
if (Array.isArray(e) !== Array.isArray(t)) return !1;
|
|
33718
|
-
if (!
|
|
33727
|
+
if (!HO(e) || !HO(t)) return e === t;
|
|
33719
33728
|
let n = Object.keys(e), r = Object.keys(t);
|
|
33720
|
-
return n.length === r.length && n.every(((n) =>
|
|
33721
|
-
},
|
|
33729
|
+
return n.length === r.length && n.every(((n) => UO(e[n], t[n])));
|
|
33730
|
+
}, WO = (e) => {
|
|
33722
33731
|
if (!(e instanceof HTMLElement || e instanceof SVGElement)) return !1;
|
|
33723
33732
|
let t = getComputedStyle(e);
|
|
33724
33733
|
return [
|
|
@@ -33729,27 +33738,27 @@ var LO = async ({ elementReference: e = null, tooltipReference: t = null, toolti
|
|
|
33729
33738
|
let n = t.getPropertyValue(e);
|
|
33730
33739
|
return n === "auto" || n === "scroll";
|
|
33731
33740
|
}));
|
|
33732
|
-
},
|
|
33741
|
+
}, GO = (e) => {
|
|
33733
33742
|
if (!e) return null;
|
|
33734
33743
|
let t = e.parentElement;
|
|
33735
33744
|
for (; t;) {
|
|
33736
|
-
if (
|
|
33745
|
+
if (WO(t)) return t;
|
|
33737
33746
|
t = t.parentElement;
|
|
33738
33747
|
}
|
|
33739
33748
|
return document.scrollingElement || document.documentElement;
|
|
33740
|
-
},
|
|
33749
|
+
}, KO = typeof window < "u" ? v : g, qO = (e) => {
|
|
33741
33750
|
e.current &&= (clearTimeout(e.current), null);
|
|
33742
|
-
},
|
|
33751
|
+
}, JO = "DEFAULT_TOOLTIP_ID", YO = {
|
|
33743
33752
|
anchorRefs: /* @__PURE__ */ new Set(),
|
|
33744
33753
|
activeAnchor: { current: null },
|
|
33745
33754
|
attach: () => {},
|
|
33746
33755
|
detach: () => {},
|
|
33747
33756
|
setActiveAnchor: () => {}
|
|
33748
|
-
},
|
|
33749
|
-
function
|
|
33750
|
-
return h(
|
|
33757
|
+
}, XO = l({ getTooltipData: () => YO });
|
|
33758
|
+
function ZO(e = JO) {
|
|
33759
|
+
return h(XO).getTooltipData(e);
|
|
33751
33760
|
}
|
|
33752
|
-
var
|
|
33761
|
+
var QO = {
|
|
33753
33762
|
tooltip: "core-styles-module_tooltip__3vRRp",
|
|
33754
33763
|
fixed: "core-styles-module_fixed__pcSol",
|
|
33755
33764
|
arrow: "core-styles-module_arrow__cvMwQ",
|
|
@@ -33758,7 +33767,7 @@ var XO = {
|
|
|
33758
33767
|
clickable: "core-styles-module_clickable__ZuTTB",
|
|
33759
33768
|
show: "core-styles-module_show__Nt9eE",
|
|
33760
33769
|
closing: "core-styles-module_closing__sGnxF"
|
|
33761
|
-
},
|
|
33770
|
+
}, $O = {
|
|
33762
33771
|
tooltip: "styles-module_tooltip__mnnfp",
|
|
33763
33772
|
content: "styles-module_content__ydYdI",
|
|
33764
33773
|
arrow: "styles-module_arrow__K0L3T",
|
|
@@ -33768,12 +33777,12 @@ var XO = {
|
|
|
33768
33777
|
warning: "styles-module_warning__SCK0X",
|
|
33769
33778
|
error: "styles-module_error__JvumD",
|
|
33770
33779
|
info: "styles-module_info__BWdHW"
|
|
33771
|
-
},
|
|
33780
|
+
}, ek = ({ forwardRef: e, id: t, className: n, classNameArrow: i, variant: a = "dark", anchorId: o, anchorSelect: s, place: c = "top", offset: l = 10, events: u = ["hover"], openOnClick: d = !1, positionStrategy: f = "absolute", middlewares: p, wrapper: h, delayShow: v = 0, delayHide: y = 0, float: S = !1, hidden: C = !1, noArrow: w = !1, clickable: T = !1, closeOnEsc: E = !1, closeOnScroll: D = !1, closeOnResize: O = !1, openEvents: k, closeEvents: A, globalCloseEvents: j, imperativeModeOnly: M, style: N, position: P, afterShow: F, afterHide: I, disableTooltip: L, content: R, contentWrapperRef: z, isOpen: B, defaultIsOpen: ee = !1, setIsOpen: te, previousActiveAnchor: V, activeAnchor: H, setActiveAnchor: ne, border: re, opacity: ie, arrowColor: ae, arrowSize: oe = 8, role: se = "tooltip" }) => {
|
|
33772
33781
|
let ce = b(null), le = b(null), U = b(null), ue = b(null), de = b(null), [fe, pe] = x({
|
|
33773
33782
|
tooltipStyles: {},
|
|
33774
33783
|
tooltipArrowStyles: {},
|
|
33775
33784
|
place: c
|
|
33776
|
-
}), [me, he] = x(!1), [ge, _e] = x(!1), [ve, ye] = x(null), be = b(!1), xe = b(null), { anchorRefs: Se, setActiveAnchor: Ce } =
|
|
33785
|
+
}), [me, he] = x(!1), [ge, _e] = x(!1), [ve, ye] = x(null), be = b(!1), xe = b(null), { anchorRefs: Se, setActiveAnchor: Ce } = ZO(t), we = b(!1), [Te, Ee] = x([]), De = b(!1), Oe = d || u.includes("click"), ke = Oe || k?.click || k?.dblclick || k?.mousedown, Ae = k ? { ...k } : {
|
|
33777
33786
|
mouseover: !0,
|
|
33778
33787
|
focus: !0,
|
|
33779
33788
|
mouseenter: !1,
|
|
@@ -33825,7 +33834,7 @@ var XO = {
|
|
|
33825
33834
|
scroll: !1,
|
|
33826
33835
|
resize: !1,
|
|
33827
33836
|
clickOutsideAnchor: !1
|
|
33828
|
-
})),
|
|
33837
|
+
})), KO((() => (De.current = !0, () => {
|
|
33829
33838
|
De.current = !1;
|
|
33830
33839
|
})), []);
|
|
33831
33840
|
let Ne = (e) => {
|
|
@@ -33866,7 +33875,7 @@ var XO = {
|
|
|
33866
33875
|
clearTimeout(e);
|
|
33867
33876
|
};
|
|
33868
33877
|
}), [B]), g((() => {
|
|
33869
|
-
if (me !== be.current) if (
|
|
33878
|
+
if (me !== be.current) if (qO(de), be.current = me, me) F?.();
|
|
33870
33879
|
else {
|
|
33871
33880
|
let e = ((e) => {
|
|
33872
33881
|
let t = e.match(/^([\d.]+)(ms|s)$/);
|
|
@@ -33880,24 +33889,24 @@ var XO = {
|
|
|
33880
33889
|
}
|
|
33881
33890
|
}), [me]);
|
|
33882
33891
|
let Pe = (e) => {
|
|
33883
|
-
pe(((t) =>
|
|
33892
|
+
pe(((t) => UO(t, e) ? t : e));
|
|
33884
33893
|
}, W = (e = v) => {
|
|
33885
|
-
|
|
33894
|
+
qO(U), ge ? Ne(!0) : U.current = setTimeout((() => {
|
|
33886
33895
|
Ne(!0);
|
|
33887
33896
|
}), e);
|
|
33888
33897
|
}, Fe = (e = y) => {
|
|
33889
|
-
|
|
33898
|
+
qO(ue), ue.current = setTimeout((() => {
|
|
33890
33899
|
we.current || Ne(!1);
|
|
33891
33900
|
}), e);
|
|
33892
33901
|
}, Ie = (e) => {
|
|
33893
33902
|
if (!e) return;
|
|
33894
33903
|
let t = e.currentTarget ?? e.target;
|
|
33895
33904
|
if (!t?.isConnected) return ne(null), void Ce({ current: null });
|
|
33896
|
-
v ? W() : Ne(!0), ne(t), Ce({ current: t }),
|
|
33905
|
+
v ? W() : Ne(!0), ne(t), Ce({ current: t }), qO(ue);
|
|
33897
33906
|
}, Le = () => {
|
|
33898
|
-
T ? Fe(y || 100) : y ? Fe() : Ne(!1),
|
|
33907
|
+
T ? Fe(y || 100) : y ? Fe() : Ne(!1), qO(U);
|
|
33899
33908
|
}, Re = ({ x: e, y: t }) => {
|
|
33900
|
-
|
|
33909
|
+
zO({
|
|
33901
33910
|
place: ve?.place ?? c,
|
|
33902
33911
|
offset: l,
|
|
33903
33912
|
elementReference: { getBoundingClientRect: () => ({
|
|
@@ -33929,14 +33938,14 @@ var XO = {
|
|
|
33929
33938
|
}, Be = (e) => {
|
|
33930
33939
|
if (!me) return;
|
|
33931
33940
|
let t = e.target;
|
|
33932
|
-
t.isConnected && (ce.current?.contains(t) || [document.querySelector(`[id='${o}']`), ...Te].some(((e) => e?.contains(t))) || (Ne(!1),
|
|
33933
|
-
}, Ve =
|
|
33941
|
+
t.isConnected && (ce.current?.contains(t) || [document.querySelector(`[id='${o}']`), ...Te].some(((e) => e?.contains(t))) || (Ne(!1), qO(U)));
|
|
33942
|
+
}, Ve = VO(Ie, 50, !0), He = VO(Le, 50, !0), Ue = (e) => {
|
|
33934
33943
|
He.cancel(), Ve(e);
|
|
33935
33944
|
}, We = () => {
|
|
33936
33945
|
Ve.cancel(), He();
|
|
33937
33946
|
}, Ge = m((() => {
|
|
33938
33947
|
let e = ve?.position ?? P;
|
|
33939
|
-
e ? Re(e) : S ? xe.current && Re(xe.current) : H?.isConnected &&
|
|
33948
|
+
e ? Re(e) : S ? xe.current && Re(xe.current) : H?.isConnected && zO({
|
|
33940
33949
|
place: ve?.place ?? c,
|
|
33941
33950
|
offset: l,
|
|
33942
33951
|
elementReference: H,
|
|
@@ -33973,10 +33982,10 @@ var XO = {
|
|
|
33973
33982
|
r && !L?.(r) && n.add({ current: r });
|
|
33974
33983
|
let i = () => {
|
|
33975
33984
|
Ne(!1);
|
|
33976
|
-
}, a =
|
|
33985
|
+
}, a = GO(H), s = GO(ce.current);
|
|
33977
33986
|
Me.scroll && (window.addEventListener("scroll", i), a?.addEventListener("scroll", i), s?.addEventListener("scroll", i));
|
|
33978
33987
|
let c = null;
|
|
33979
|
-
Me.resize ? window.addEventListener("resize", i) : H && ce.current && (c =
|
|
33988
|
+
Me.resize ? window.addEventListener("resize", i) : H && ce.current && (c = OO(H, ce.current, Ge, {
|
|
33980
33989
|
ancestorResize: !0,
|
|
33981
33990
|
elementResize: !0,
|
|
33982
33991
|
layoutShift: !0
|
|
@@ -34065,7 +34074,7 @@ var XO = {
|
|
|
34065
34074
|
if (e) try {
|
|
34066
34075
|
i.push(...t.filter(((t) => t.matches(e)))), i.push(...t.flatMap(((t) => [...t.querySelectorAll(e)])));
|
|
34067
34076
|
} catch {}
|
|
34068
|
-
t.some(((e) => !!(e?.contains)?.call(e, H) && (_e(!1), Ne(!1), ne(null),
|
|
34077
|
+
t.some(((e) => !!(e?.contains)?.call(e, H) && (_e(!1), Ne(!1), ne(null), qO(U), qO(ue), !0)));
|
|
34069
34078
|
}
|
|
34070
34079
|
if (e) try {
|
|
34071
34080
|
let t = [...n.addedNodes].filter(((e) => e.nodeType === 1));
|
|
@@ -34106,7 +34115,7 @@ var XO = {
|
|
|
34106
34115
|
Te,
|
|
34107
34116
|
H
|
|
34108
34117
|
]), g((() => (ee && Ne(!0), () => {
|
|
34109
|
-
|
|
34118
|
+
qO(U), qO(ue);
|
|
34110
34119
|
})), []), g((() => {
|
|
34111
34120
|
let e = ve?.anchorSelect ?? s;
|
|
34112
34121
|
if (!e && t && (e = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), e) try {
|
|
@@ -34120,7 +34129,7 @@ var XO = {
|
|
|
34120
34129
|
s,
|
|
34121
34130
|
ve?.anchorSelect
|
|
34122
34131
|
]), g((() => {
|
|
34123
|
-
U.current && (
|
|
34132
|
+
U.current && (qO(U), W(v));
|
|
34124
34133
|
}), [v]);
|
|
34125
34134
|
let Ke = ve?.content ?? R, qe = me && Object.keys(fe.tooltipStyles).length > 0;
|
|
34126
34135
|
return _(e, (() => ({
|
|
@@ -34142,9 +34151,9 @@ var XO = {
|
|
|
34142
34151
|
}))), ge && !C && Ke ? r.createElement(h, {
|
|
34143
34152
|
id: t,
|
|
34144
34153
|
role: se,
|
|
34145
|
-
className: (0,
|
|
34154
|
+
className: (0, PO.default)("react-tooltip", QO.tooltip, $O.tooltip, $O[a], n, `react-tooltip__place-${fe.place}`, QO[qe ? "show" : "closing"], qe ? "react-tooltip__show" : "react-tooltip__closing", f === "fixed" && QO.fixed, T && QO.clickable),
|
|
34146
34155
|
onTransitionEnd: (e) => {
|
|
34147
|
-
|
|
34156
|
+
qO(de), me || e.propertyName !== "opacity" || (_e(!1), ye(null), I?.());
|
|
34148
34157
|
},
|
|
34149
34158
|
style: {
|
|
34150
34159
|
...N,
|
|
@@ -34152,8 +34161,8 @@ var XO = {
|
|
|
34152
34161
|
opacity: ie !== void 0 && qe ? ie : void 0
|
|
34153
34162
|
},
|
|
34154
34163
|
ref: ce
|
|
34155
|
-
}, r.createElement(h, { className: (0,
|
|
34156
|
-
className: (0,
|
|
34164
|
+
}, r.createElement(h, { className: (0, PO.default)("react-tooltip-content-wrapper", QO.content, $O.content) }, Ke), r.createElement(h, {
|
|
34165
|
+
className: (0, PO.default)("react-tooltip-arrow", QO.arrow, $O.arrow, i, w && QO.noArrow),
|
|
34157
34166
|
style: {
|
|
34158
34167
|
...fe.tooltipArrowStyles,
|
|
34159
34168
|
background: ae ? `linear-gradient(to right bottom, transparent 50%, ${ae} 50%)` : void 0,
|
|
@@ -34161,8 +34170,8 @@ var XO = {
|
|
|
34161
34170
|
},
|
|
34162
34171
|
ref: le
|
|
34163
34172
|
})) : null;
|
|
34164
|
-
},
|
|
34165
|
-
let [oe, se] = x(i), [ce, le] = x(a), [U, ue] = x(u), [de, fe] = x(l), [pe, me] = x(d), [he, ge] = x(y), [_e, ve] = x(S), [ye, be] = x(C), [xe, Se] = x(w), [Ce, we] = x(f), [Te, Ee] = x(m), [De, Oe] = x(_), [ke, Ae] = x(null), [je, Me] = x(null), Ne = b(null), Pe = b(R), { anchorRefs: W, activeAnchor: Fe } =
|
|
34173
|
+
}, tk = ({ content: e }) => r.createElement("span", { dangerouslySetInnerHTML: { __html: e } }), nk = r.forwardRef((({ id: e, anchorId: t, anchorSelect: n, content: i, html: a, render: o, className: s, classNameArrow: c, variant: l = "dark", place: u = "top", offset: d = 10, wrapper: f = "div", children: p = null, events: m = ["hover"], openOnClick: h = !1, positionStrategy: _ = "absolute", middlewares: v, delayShow: y = 0, delayHide: S = 0, float: C = !1, hidden: w = !1, noArrow: T = !1, clickable: E = !1, closeOnEsc: D = !1, closeOnScroll: O = !1, closeOnResize: k = !1, openEvents: A, closeEvents: j, globalCloseEvents: M, imperativeModeOnly: N = !1, style: P, position: F, isOpen: I, defaultIsOpen: L = !1, disableStyleInjection: R = !1, border: z, opacity: B, arrowColor: ee, arrowSize: te, setIsOpen: V, afterShow: H, afterHide: ne, disableTooltip: re, role: ie = "tooltip" }, ae) => {
|
|
34174
|
+
let [oe, se] = x(i), [ce, le] = x(a), [U, ue] = x(u), [de, fe] = x(l), [pe, me] = x(d), [he, ge] = x(y), [_e, ve] = x(S), [ye, be] = x(C), [xe, Se] = x(w), [Ce, we] = x(f), [Te, Ee] = x(m), [De, Oe] = x(_), [ke, Ae] = x(null), [je, Me] = x(null), Ne = b(null), Pe = b(R), { anchorRefs: W, activeAnchor: Fe } = ZO(e), Ie = (e) => e?.getAttributeNames().reduce(((t, n) => (n.startsWith("data-tooltip-") && (t[n.replace(/^data-tooltip-/, "")] = e?.getAttribute(n) ?? null), t)), {}), Le = (e) => {
|
|
34166
34175
|
let t = {
|
|
34167
34176
|
place: (e) => {
|
|
34168
34177
|
ue(e ?? u);
|
|
@@ -34273,7 +34282,7 @@ var XO = {
|
|
|
34273
34282
|
t,
|
|
34274
34283
|
n
|
|
34275
34284
|
]), g((() => {
|
|
34276
|
-
P?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), z && !
|
|
34285
|
+
P?.border && console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."), z && !BO("border", `${z}`) && console.warn(`[react-tooltip] "${z}" is not a valid \`border\`.`), P?.opacity && console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."), B && !BO("opacity", `${B}`) && console.warn(`[react-tooltip] "${B}" is not a valid \`opacity\`.`);
|
|
34277
34286
|
}), []);
|
|
34278
34287
|
let Re = p, ze = b(null);
|
|
34279
34288
|
if (o) {
|
|
@@ -34286,13 +34295,13 @@ var XO = {
|
|
|
34286
34295
|
className: "react-tooltip-content-wrapper"
|
|
34287
34296
|
}, e) : null;
|
|
34288
34297
|
} else oe && (Re = oe);
|
|
34289
|
-
ce && (Re = r.createElement(
|
|
34298
|
+
ce && (Re = r.createElement(tk, { content: ce }));
|
|
34290
34299
|
let Be = {
|
|
34291
34300
|
forwardRef: ae,
|
|
34292
34301
|
id: e,
|
|
34293
34302
|
anchorId: t,
|
|
34294
34303
|
anchorSelect: n,
|
|
34295
|
-
className: (0,
|
|
34304
|
+
className: (0, PO.default)(s, ke),
|
|
34296
34305
|
classNameArrow: c,
|
|
34297
34306
|
content: Re,
|
|
34298
34307
|
contentWrapperRef: ze,
|
|
@@ -34336,18 +34345,18 @@ var XO = {
|
|
|
34336
34345
|
},
|
|
34337
34346
|
role: ie
|
|
34338
34347
|
};
|
|
34339
|
-
return r.createElement(
|
|
34348
|
+
return r.createElement(ek, { ...Be });
|
|
34340
34349
|
}));
|
|
34341
34350
|
typeof window < "u" && window.addEventListener("react-tooltip-inject-styles", ((e) => {
|
|
34342
|
-
e.detail.disableCore ||
|
|
34351
|
+
e.detail.disableCore || RO({
|
|
34343
34352
|
css: ":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.core-styles-module_content__BRKdB{position:relative;z-index:1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",
|
|
34344
34353
|
type: "core"
|
|
34345
|
-
}), e.detail.disableBase ||
|
|
34354
|
+
}), e.detail.disableBase || RO({
|
|
34346
34355
|
css: "\n.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;width:max-content}.styles-module_content__ydYdI{background:inherit;border-radius:inherit;padding:8px 16px}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",
|
|
34347
34356
|
type: "base"
|
|
34348
34357
|
});
|
|
34349
34358
|
}));
|
|
34350
|
-
function
|
|
34359
|
+
function rk({ children: e, name: t, label: n, position: r = "top", onClick: i = Yt, className: a = "", tooltipStyle: o = {
|
|
34351
34360
|
color: "white",
|
|
34352
34361
|
backgroundColor: "#2563EB",
|
|
34353
34362
|
zIndex: 100
|
|
@@ -34358,7 +34367,7 @@ function tk({ children: e, name: t, label: n, position: r = "top", onClick: i =
|
|
|
34358
34367
|
"data-tooltip-content": n,
|
|
34359
34368
|
onClick: i,
|
|
34360
34369
|
className: G("flex flex-row items-center justify-center", a),
|
|
34361
|
-
children: [e, /* @__PURE__ */ C(
|
|
34370
|
+
children: [e, /* @__PURE__ */ C(nk, {
|
|
34362
34371
|
id: s,
|
|
34363
34372
|
style: o,
|
|
34364
34373
|
place: r
|
|
@@ -34367,8 +34376,8 @@ function tk({ children: e, name: t, label: n, position: r = "top", onClick: i =
|
|
|
34367
34376
|
}
|
|
34368
34377
|
//#endregion
|
|
34369
34378
|
//#region src/tootips/SvgTooltip.tsx
|
|
34370
|
-
function
|
|
34371
|
-
return /* @__PURE__ */ C(
|
|
34379
|
+
function ik({ className: e = "", onClick: t = Yt, icon: n, label: r }) {
|
|
34380
|
+
return /* @__PURE__ */ C(rk, {
|
|
34372
34381
|
onClick: t,
|
|
34373
34382
|
className: e,
|
|
34374
34383
|
label: r,
|
|
@@ -34378,8 +34387,8 @@ function nk({ className: e = "", onClick: t = Yt, icon: n, label: r }) {
|
|
|
34378
34387
|
}
|
|
34379
34388
|
//#endregion
|
|
34380
34389
|
//#region src/tootips/MenuTooltip.tsx
|
|
34381
|
-
function
|
|
34382
|
-
return /* @__PURE__ */ C(
|
|
34390
|
+
function ak({ onClick: e, label: t }) {
|
|
34391
|
+
return /* @__PURE__ */ C(ik, {
|
|
34383
34392
|
icon: /* @__PURE__ */ C(aa, {
|
|
34384
34393
|
className: "fill-gray-600",
|
|
34385
34394
|
size: K.lg
|
|
@@ -34390,7 +34399,7 @@ function rk({ onClick: e, label: t }) {
|
|
|
34390
34399
|
}
|
|
34391
34400
|
//#endregion
|
|
34392
34401
|
//#region src/navbar/NavbarTab.tsx
|
|
34393
|
-
function
|
|
34402
|
+
function ok({ tabName: e, isHighlighted: t, onPick: n, label: r, className: i, tabHighlightedClassName: a }) {
|
|
34394
34403
|
return /* @__PURE__ */ C(Qa, {
|
|
34395
34404
|
className: G("px-3 py-0.5 text-gray-600 text-center", i, t ? a || "border-blue-500 border-b-2 text-blue-500" : ""),
|
|
34396
34405
|
onClick: () => n(e),
|
|
@@ -34399,11 +34408,11 @@ function ik({ tabName: e, isHighlighted: t, onPick: n, label: r, className: i, t
|
|
|
34399
34408
|
}
|
|
34400
34409
|
//#endregion
|
|
34401
34410
|
//#region src/navbar/Navbar.tsx
|
|
34402
|
-
function
|
|
34411
|
+
function sk({ tabs: e, onPick: t, pickedTabName: n, className: r = "", tabClassName: i = "", tabHighlightedClassName: a = "" }) {
|
|
34403
34412
|
return /* @__PURE__ */ C(Xa, {
|
|
34404
34413
|
className: G("flex flex-row whitespace-nowrap pb-1 overflow-x-auto hide-scrollbar-x", r),
|
|
34405
34414
|
items: e,
|
|
34406
|
-
itemRenderer: ({ name: e, label: r }) => /* @__PURE__ */ C(
|
|
34415
|
+
itemRenderer: ({ name: e, label: r }) => /* @__PURE__ */ C(ok, {
|
|
34407
34416
|
tabName: e,
|
|
34408
34417
|
isHighlighted: n === e,
|
|
34409
34418
|
onPick: t,
|
|
@@ -34415,7 +34424,7 @@ function ak({ tabs: e, onPick: t, pickedTabName: n, className: r = "", tabClassN
|
|
|
34415
34424
|
}
|
|
34416
34425
|
//#endregion
|
|
34417
34426
|
//#region src/svgTags/tags/HomeTag.tsx
|
|
34418
|
-
function
|
|
34427
|
+
function ck({ isHighlighted: e, onClick: t, label: n }) {
|
|
34419
34428
|
return /* @__PURE__ */ C(os, {
|
|
34420
34429
|
label: n,
|
|
34421
34430
|
icon: { Svg: Vi },
|
|
@@ -34426,7 +34435,7 @@ function ok({ isHighlighted: e, onClick: t, label: n }) {
|
|
|
34426
34435
|
}
|
|
34427
34436
|
//#endregion
|
|
34428
34437
|
//#region src/svgTags/tags/NearbyTag.tsx
|
|
34429
|
-
function
|
|
34438
|
+
function lk({ isHighlighted: e, onClick: t, label: n = "Nearby" }) {
|
|
34430
34439
|
return /* @__PURE__ */ C(os, {
|
|
34431
34440
|
label: n,
|
|
34432
34441
|
icon: {
|
|
@@ -34440,7 +34449,7 @@ function sk({ isHighlighted: e, onClick: t, label: n = "Nearby" }) {
|
|
|
34440
34449
|
}
|
|
34441
34450
|
//#endregion
|
|
34442
34451
|
//#region src/svgTags/tags/ExploreTag.tsx
|
|
34443
|
-
function
|
|
34452
|
+
function uk({ isHighlighted: e, onClick: t, label: n }) {
|
|
34444
34453
|
return /* @__PURE__ */ C(os, {
|
|
34445
34454
|
label: n,
|
|
34446
34455
|
icon: { Svg: Ji },
|
|
@@ -34451,7 +34460,7 @@ function ck({ isHighlighted: e, onClick: t, label: n }) {
|
|
|
34451
34460
|
}
|
|
34452
34461
|
//#endregion
|
|
34453
34462
|
//#region src/svgTags/tags/BuddyTag.tsx
|
|
34454
|
-
function
|
|
34463
|
+
function dk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
34455
34464
|
return /* @__PURE__ */ C(os, {
|
|
34456
34465
|
label: "Buddy",
|
|
34457
34466
|
icon: { Svg: Xi },
|
|
@@ -34462,7 +34471,7 @@ function lk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
|
34462
34471
|
}
|
|
34463
34472
|
//#endregion
|
|
34464
34473
|
//#region src/svgTags/tags/NewsfeedTag.tsx
|
|
34465
|
-
function
|
|
34474
|
+
function fk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
34466
34475
|
return /* @__PURE__ */ C(os, {
|
|
34467
34476
|
label: "Newsfeed",
|
|
34468
34477
|
icon: { Svg: Yi },
|
|
@@ -34473,7 +34482,7 @@ function uk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
|
34473
34482
|
}
|
|
34474
34483
|
//#endregion
|
|
34475
34484
|
//#region src/svgTags/tags/CalendarTag.tsx
|
|
34476
|
-
function
|
|
34485
|
+
function pk({ isHighlighted: e = !1, onClick: t = Yt, isVertical: n = !1, label: r = "", labelClassName: i = "", svgClassName: a = "", svgSize: o = K.md }) {
|
|
34477
34486
|
return /* @__PURE__ */ C(os, {
|
|
34478
34487
|
label: r,
|
|
34479
34488
|
icon: {
|
|
@@ -34489,7 +34498,7 @@ function dk({ isHighlighted: e = !1, onClick: t = Yt, isVertical: n = !1, label:
|
|
|
34489
34498
|
}
|
|
34490
34499
|
//#endregion
|
|
34491
34500
|
//#region src/svgTags/tags/CreateTag.tsx
|
|
34492
|
-
function
|
|
34501
|
+
function mk({ label: e, onClick: t }) {
|
|
34493
34502
|
return /* @__PURE__ */ C(os, {
|
|
34494
34503
|
label: e,
|
|
34495
34504
|
icon: {
|
|
@@ -34502,7 +34511,7 @@ function fk({ label: e, onClick: t }) {
|
|
|
34502
34511
|
}
|
|
34503
34512
|
//#endregion
|
|
34504
34513
|
//#region src/svgTags/tags/MapTag.tsx
|
|
34505
|
-
function
|
|
34514
|
+
function hk({ isHighlighted: e = !1, onClick: t }) {
|
|
34506
34515
|
return /* @__PURE__ */ C(os, {
|
|
34507
34516
|
label: "Map",
|
|
34508
34517
|
icon: { Svg: Hi },
|
|
@@ -34513,7 +34522,7 @@ function pk({ isHighlighted: e = !1, onClick: t }) {
|
|
|
34513
34522
|
}
|
|
34514
34523
|
//#endregion
|
|
34515
34524
|
//#region src/svgTags/tags/CopyTag.tsx
|
|
34516
|
-
function
|
|
34525
|
+
function gk({ onClick: e, label: t = "Copy" }) {
|
|
34517
34526
|
return /* @__PURE__ */ C(os, {
|
|
34518
34527
|
label: t,
|
|
34519
34528
|
className: "-gap-2 text-sm",
|
|
@@ -34528,7 +34537,7 @@ function mk({ onClick: e, label: t = "Copy" }) {
|
|
|
34528
34537
|
}
|
|
34529
34538
|
//#endregion
|
|
34530
34539
|
//#region src/svgTags/tags/PrivateTag.tsx
|
|
34531
|
-
function
|
|
34540
|
+
function _k() {
|
|
34532
34541
|
return /* @__PURE__ */ C(os, { icon: {
|
|
34533
34542
|
Svg: da,
|
|
34534
34543
|
className: "fill-blue-500"
|
|
@@ -34536,7 +34545,7 @@ function hk() {
|
|
|
34536
34545
|
}
|
|
34537
34546
|
//#endregion
|
|
34538
34547
|
//#region src/svgTags/tags/LogoutTag.tsx
|
|
34539
|
-
function
|
|
34548
|
+
function vk({ label: e, onClick: t, className: n = "" }) {
|
|
34540
34549
|
return /* @__PURE__ */ C(os, {
|
|
34541
34550
|
icon: {
|
|
34542
34551
|
Svg: ma,
|
|
@@ -34549,7 +34558,7 @@ function gk({ label: e, onClick: t, className: n = "" }) {
|
|
|
34549
34558
|
}
|
|
34550
34559
|
//#endregion
|
|
34551
34560
|
//#region src/svgTags/tags/CommentTag.tsx
|
|
34552
|
-
function
|
|
34561
|
+
function yk({ label: e = "Comment", onClick: t }) {
|
|
34553
34562
|
return /* @__PURE__ */ C(os, {
|
|
34554
34563
|
label: e,
|
|
34555
34564
|
icon: {
|
|
@@ -34562,7 +34571,7 @@ function _k({ label: e = "Comment", onClick: t }) {
|
|
|
34562
34571
|
}
|
|
34563
34572
|
//#endregion
|
|
34564
34573
|
//#region src/svgTags/tags/GoBackTag.tsx
|
|
34565
|
-
function
|
|
34574
|
+
function bk({ isHighlighted: e = !1, disabled: t = !1, onClick: n = Yt, className: r = "" }) {
|
|
34566
34575
|
return /* @__PURE__ */ C(os, {
|
|
34567
34576
|
label: "Back",
|
|
34568
34577
|
isLabelHidden: !0,
|
|
@@ -34580,7 +34589,7 @@ function vk({ isHighlighted: e = !1, disabled: t = !1, onClick: n = Yt, classNam
|
|
|
34580
34589
|
}
|
|
34581
34590
|
//#endregion
|
|
34582
34591
|
//#region src/svgTags/tags/GoForwardTag.tsx
|
|
34583
|
-
function
|
|
34592
|
+
function xk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
34584
34593
|
return /* @__PURE__ */ C(os, {
|
|
34585
34594
|
label: "Forward",
|
|
34586
34595
|
isLabelHidden: !0,
|
|
@@ -34597,7 +34606,7 @@ function yk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
|
34597
34606
|
}
|
|
34598
34607
|
//#endregion
|
|
34599
34608
|
//#region src/svgTags/tags/MessageTag.tsx
|
|
34600
|
-
function
|
|
34609
|
+
function Sk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
34601
34610
|
return /* @__PURE__ */ C(os, {
|
|
34602
34611
|
label: "Message",
|
|
34603
34612
|
icon: {
|
|
@@ -34613,14 +34622,14 @@ function bk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "" }) {
|
|
|
34613
34622
|
}
|
|
34614
34623
|
//#endregion
|
|
34615
34624
|
//#region src/svgTags/tags/ReportTag.tsx
|
|
34616
|
-
var
|
|
34617
|
-
function
|
|
34625
|
+
var Ck = "#4b5563", wk = "#f87171";
|
|
34626
|
+
function Tk({ label: e = "Report", isHighlighted: t = !1, onClick: n = Yt, className: r = "" }) {
|
|
34618
34627
|
return /* @__PURE__ */ C(Qa, {
|
|
34619
34628
|
className: G("ReportTag w-fit", r),
|
|
34620
34629
|
onClick: n,
|
|
34621
34630
|
children: /* @__PURE__ */ w("span", {
|
|
34622
34631
|
className: "flex flex-row items-center py-0.5 px-2 gap-2",
|
|
34623
|
-
style: { color: t ?
|
|
34632
|
+
style: { color: t ? wk : Ck },
|
|
34624
34633
|
children: [/* @__PURE__ */ C(ja, { size: K.sm }), /* @__PURE__ */ C("div", {
|
|
34625
34634
|
className: "text-sm",
|
|
34626
34635
|
children: e
|
|
@@ -34630,14 +34639,14 @@ function Ck({ label: e = "Report", isHighlighted: t = !1, onClick: n = Yt, class
|
|
|
34630
34639
|
}
|
|
34631
34640
|
//#endregion
|
|
34632
34641
|
//#region src/svgTags/tags/BlockTag.tsx
|
|
34633
|
-
var
|
|
34634
|
-
function
|
|
34642
|
+
var Ek = "#4b5563", Dk = "#f87171";
|
|
34643
|
+
function Ok({ label: e = "Block", isHighlighted: t = !1, onClick: n = Yt, className: r = "" }) {
|
|
34635
34644
|
return /* @__PURE__ */ C(Qa, {
|
|
34636
34645
|
className: G("BlockTag w-fit", r),
|
|
34637
34646
|
onClick: n,
|
|
34638
34647
|
children: /* @__PURE__ */ w("span", {
|
|
34639
34648
|
className: "flex flex-row items-center py-0.5 px-2 gap-2",
|
|
34640
|
-
style: { color: t ?
|
|
34649
|
+
style: { color: t ? Dk : Ek },
|
|
34641
34650
|
children: [/* @__PURE__ */ C(Aa, { size: K.sm }), /* @__PURE__ */ C("div", {
|
|
34642
34651
|
className: "text-sm",
|
|
34643
34652
|
children: e
|
|
@@ -34647,7 +34656,7 @@ function Ek({ label: e = "Block", isHighlighted: t = !1, onClick: n = Yt, classN
|
|
|
34647
34656
|
}
|
|
34648
34657
|
//#endregion
|
|
34649
34658
|
//#region src/svgTags/tags/SettingsTag.tsx
|
|
34650
|
-
function
|
|
34659
|
+
function kk({ label: e, onClick: t, className: n = "" }) {
|
|
34651
34660
|
return /* @__PURE__ */ C(os, {
|
|
34652
34661
|
icon: {
|
|
34653
34662
|
Svg: Ma,
|
|
@@ -34661,7 +34670,7 @@ function Dk({ label: e, onClick: t, className: n = "" }) {
|
|
|
34661
34670
|
}
|
|
34662
34671
|
//#endregion
|
|
34663
34672
|
//#region src/svgTags/tags/profiles/TeamTag.tsx
|
|
34664
|
-
function
|
|
34673
|
+
function Ak({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgSize: i = K.md, labelClassName: a = "", svgClassName: o = "", isVertical: s = !1 }) {
|
|
34665
34674
|
return /* @__PURE__ */ C(os, {
|
|
34666
34675
|
label: e || "Team",
|
|
34667
34676
|
icon: {
|
|
@@ -34678,7 +34687,7 @@ function Ok({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34678
34687
|
}
|
|
34679
34688
|
//#endregion
|
|
34680
34689
|
//#region src/svgTags/tags/profiles/ArenaTag.tsx
|
|
34681
|
-
function
|
|
34690
|
+
function jk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgClassName: i = "", svgSize: a = K.md, labelClassName: o = "", isVertical: s = !1 }) {
|
|
34682
34691
|
return /* @__PURE__ */ C(os, {
|
|
34683
34692
|
label: e || "Arena",
|
|
34684
34693
|
icon: {
|
|
@@ -34695,7 +34704,7 @@ function kk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34695
34704
|
}
|
|
34696
34705
|
//#endregion
|
|
34697
34706
|
//#region src/svgTags/tags/profiles/CollectionTag.tsx
|
|
34698
|
-
function
|
|
34707
|
+
function Mk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", labelClassName: i = "", svgClassName: a = "", svgSize: o = K.md, isVertical: s = !1 }) {
|
|
34699
34708
|
return /* @__PURE__ */ C(os, {
|
|
34700
34709
|
label: e || "Collection",
|
|
34701
34710
|
icon: {
|
|
@@ -34712,7 +34721,7 @@ function Ak({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34712
34721
|
}
|
|
34713
34722
|
//#endregion
|
|
34714
34723
|
//#region src/svgTags/tags/profiles/EventTag.tsx
|
|
34715
|
-
function
|
|
34724
|
+
function Nk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgSize: i = K.md, labelClassName: a = "", svgClassName: o = "", isVertical: s = !1 }) {
|
|
34716
34725
|
return /* @__PURE__ */ C(os, {
|
|
34717
34726
|
label: e || "Event",
|
|
34718
34727
|
icon: {
|
|
@@ -34729,7 +34738,7 @@ function jk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34729
34738
|
}
|
|
34730
34739
|
//#endregion
|
|
34731
34740
|
//#region src/svgTags/tags/profiles/MarketTag.tsx
|
|
34732
|
-
function
|
|
34741
|
+
function Pk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgSize: i = K.md, labelClassName: a = "", svgClassName: o = "", isVertical: s = !1 }) {
|
|
34733
34742
|
return /* @__PURE__ */ C(os, {
|
|
34734
34743
|
label: e,
|
|
34735
34744
|
icon: {
|
|
@@ -34746,7 +34755,7 @@ function Mk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34746
34755
|
}
|
|
34747
34756
|
//#endregion
|
|
34748
34757
|
//#region src/svgTags/tags/profiles/UserTag.tsx
|
|
34749
|
-
function
|
|
34758
|
+
function Fk({ label: e, svgSize: t = K.md, labelClassName: n = "", svgClassName: r = "", isVertical: i = !1 }) {
|
|
34750
34759
|
return /* @__PURE__ */ C(os, {
|
|
34751
34760
|
label: e,
|
|
34752
34761
|
icon: {
|
|
@@ -34760,7 +34769,7 @@ function Nk({ label: e, svgSize: t = K.md, labelClassName: n = "", svgClassName:
|
|
|
34760
34769
|
}
|
|
34761
34770
|
//#endregion
|
|
34762
34771
|
//#region src/svgTags/tags/profiles/GameTag.tsx
|
|
34763
|
-
function
|
|
34772
|
+
function Ik({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgClassName: i = "", svgSize: a = K.md, labelClassName: o = "", isVertical: s = !1 }) {
|
|
34764
34773
|
return /* @__PURE__ */ C(os, {
|
|
34765
34774
|
label: e,
|
|
34766
34775
|
icon: {
|
|
@@ -34777,7 +34786,7 @@ function Pk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34777
34786
|
}
|
|
34778
34787
|
//#endregion
|
|
34779
34788
|
//#region src/svgTags/tags/profiles/LeaderboardTag.tsx
|
|
34780
|
-
function
|
|
34789
|
+
function Lk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgClassName: i = "", svgSize: a = K.md, labelClassName: o = "", isVertical: s = !1 }) {
|
|
34781
34790
|
return /* @__PURE__ */ C(os, {
|
|
34782
34791
|
label: e,
|
|
34783
34792
|
icon: {
|
|
@@ -34794,7 +34803,7 @@ function Fk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34794
34803
|
}
|
|
34795
34804
|
//#endregion
|
|
34796
34805
|
//#region src/svgTags/tags/posts/ImageTag.tsx
|
|
34797
|
-
function
|
|
34806
|
+
function Rk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgSize: i = K.md }) {
|
|
34798
34807
|
return /* @__PURE__ */ C(os, {
|
|
34799
34808
|
label: e || "Images",
|
|
34800
34809
|
icon: {
|
|
@@ -34808,7 +34817,7 @@ function Ik({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34808
34817
|
}
|
|
34809
34818
|
//#endregion
|
|
34810
34819
|
//#region src/svgTags/tags/posts/PollTag.tsx
|
|
34811
|
-
function
|
|
34820
|
+
function zk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgSize: i = K.md }) {
|
|
34812
34821
|
return /* @__PURE__ */ C(os, {
|
|
34813
34822
|
label: e || "Polls",
|
|
34814
34823
|
icon: {
|
|
@@ -34823,7 +34832,7 @@ function Lk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34823
34832
|
}
|
|
34824
34833
|
//#endregion
|
|
34825
34834
|
//#region src/svgTags/tags/posts/CreatePostTag.tsx
|
|
34826
|
-
function
|
|
34835
|
+
function Bk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className: r = "", svgSize: i = K.md }) {
|
|
34827
34836
|
return /* @__PURE__ */ C(os, {
|
|
34828
34837
|
label: e,
|
|
34829
34838
|
icon: {
|
|
@@ -34838,7 +34847,7 @@ function Rk({ label: e = "", isHighlighted: t = !1, onClick: n = Yt, className:
|
|
|
34838
34847
|
}
|
|
34839
34848
|
//#endregion
|
|
34840
34849
|
//#region src/svgTags/tags/posts/PostTag.tsx
|
|
34841
|
-
function
|
|
34850
|
+
function Vk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "", labelClassName: r = "", svgClassName: i = "", svgSize: a = K.md, label: o = "", isVertical: s = !1 }) {
|
|
34842
34851
|
return /* @__PURE__ */ C(os, {
|
|
34843
34852
|
label: o || "Post",
|
|
34844
34853
|
icon: {
|
|
@@ -34855,7 +34864,7 @@ function zk({ isHighlighted: e = !1, onClick: t = Yt, className: n = "", labelCl
|
|
|
34855
34864
|
}
|
|
34856
34865
|
//#endregion
|
|
34857
34866
|
//#region src/svgTags/tags/locations/CityTag.tsx
|
|
34858
|
-
function
|
|
34867
|
+
function Hk({ label: e, onClick: t = Yt }) {
|
|
34859
34868
|
return /* @__PURE__ */ C(os, {
|
|
34860
34869
|
label: e,
|
|
34861
34870
|
icon: {
|
|
@@ -34870,7 +34879,7 @@ function Bk({ label: e, onClick: t = Yt }) {
|
|
|
34870
34879
|
}
|
|
34871
34880
|
//#endregion
|
|
34872
34881
|
//#region src/svgTags/tags/locations/StreetTag.tsx
|
|
34873
|
-
function
|
|
34882
|
+
function Uk({ label: e, onClick: t = Yt }) {
|
|
34874
34883
|
return /* @__PURE__ */ C(os, {
|
|
34875
34884
|
label: e,
|
|
34876
34885
|
icon: {
|
|
@@ -34885,7 +34894,7 @@ function Vk({ label: e, onClick: t = Yt }) {
|
|
|
34885
34894
|
}
|
|
34886
34895
|
//#endregion
|
|
34887
34896
|
//#region src/svgTags/tags/locations/LocationPointTag.tsx
|
|
34888
|
-
function
|
|
34897
|
+
function Wk({ label: e, onClick: t = Yt }) {
|
|
34889
34898
|
return /* @__PURE__ */ C(os, {
|
|
34890
34899
|
label: e,
|
|
34891
34900
|
icon: {
|
|
@@ -34900,7 +34909,7 @@ function Hk({ label: e, onClick: t = Yt }) {
|
|
|
34900
34909
|
}
|
|
34901
34910
|
//#endregion
|
|
34902
34911
|
//#region src/likes/LikeSection.tsx
|
|
34903
|
-
function
|
|
34912
|
+
function Gk({ className: e = "", textClassName: t = "text-gray-500 text-xs", count: n = 0, isHighlighted: r = !1, onLike: i }) {
|
|
34904
34913
|
let a = G(t, r ? "text-blue-500" : "");
|
|
34905
34914
|
return /* @__PURE__ */ w(oo, {
|
|
34906
34915
|
className: G("LikeSection -gap-1", e),
|
|
@@ -34913,7 +34922,7 @@ function Uk({ className: e = "", textClassName: t = "text-gray-500 text-xs", cou
|
|
|
34913
34922
|
}
|
|
34914
34923
|
//#endregion
|
|
34915
34924
|
//#region src/commentReply/CommentReplyCount.tsx
|
|
34916
|
-
function
|
|
34925
|
+
function Kk({ singleLabel: e, pluralLabel: t, count: n = 0, onClick: r, className: i = "text-gray-500 text-sm" }) {
|
|
34917
34926
|
return /* @__PURE__ */ C(Qa, {
|
|
34918
34927
|
onClick: r,
|
|
34919
34928
|
children: /* @__PURE__ */ C("span", {
|
|
@@ -34924,14 +34933,14 @@ function Wk({ singleLabel: e, pluralLabel: t, count: n = 0, onClick: r, classNam
|
|
|
34924
34933
|
}
|
|
34925
34934
|
//#endregion
|
|
34926
34935
|
//#region src/commentReply/CommentReplySection.tsx
|
|
34927
|
-
function
|
|
34936
|
+
function qk({ singleLabel: e, pluralLabel: t, className: n = "", textClassName: r = "text-gray-500 text-xs", count: i = 0, onClick: a }) {
|
|
34928
34937
|
return /* @__PURE__ */ w(oo, {
|
|
34929
34938
|
className: n,
|
|
34930
34939
|
onClick: a,
|
|
34931
34940
|
children: [/* @__PURE__ */ C(Ya, {
|
|
34932
34941
|
className: r,
|
|
34933
34942
|
text: e
|
|
34934
|
-
}), i > 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(qm, { className: "text-gray-300" }), /* @__PURE__ */ C(
|
|
34943
|
+
}), i > 0 && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(qm, { className: "text-gray-300" }), /* @__PURE__ */ C(Kk, {
|
|
34935
34944
|
singleLabel: e,
|
|
34936
34945
|
pluralLabel: t,
|
|
34937
34946
|
count: i,
|
|
@@ -34942,8 +34951,8 @@ function Gk({ singleLabel: e, pluralLabel: t, className: n = "", textClassName:
|
|
|
34942
34951
|
}
|
|
34943
34952
|
//#endregion
|
|
34944
34953
|
//#region src/commentReply/CommentsSection.tsx
|
|
34945
|
-
function
|
|
34946
|
-
return /* @__PURE__ */ C(
|
|
34954
|
+
function Jk({ className: e, textClassName: t, count: n, onClick: r }) {
|
|
34955
|
+
return /* @__PURE__ */ C(qk, {
|
|
34947
34956
|
singleLabel: "Comment",
|
|
34948
34957
|
pluralLabel: "Comments",
|
|
34949
34958
|
className: e,
|
|
@@ -34954,8 +34963,8 @@ function Kk({ className: e, textClassName: t, count: n, onClick: r }) {
|
|
|
34954
34963
|
}
|
|
34955
34964
|
//#endregion
|
|
34956
34965
|
//#region src/commentReply/RepliesSection.tsx
|
|
34957
|
-
function
|
|
34958
|
-
return /* @__PURE__ */ C(
|
|
34966
|
+
function Yk({ className: e, textClassName: t, count: n, onClick: r }) {
|
|
34967
|
+
return /* @__PURE__ */ C(qk, {
|
|
34959
34968
|
singleLabel: "Reply",
|
|
34960
34969
|
pluralLabel: "Replies",
|
|
34961
34970
|
className: e,
|
|
@@ -34966,7 +34975,7 @@ function qk({ className: e, textClassName: t, count: n, onClick: r }) {
|
|
|
34966
34975
|
}
|
|
34967
34976
|
//#endregion
|
|
34968
34977
|
//#region src/success/SuccessMessage.tsx
|
|
34969
|
-
function
|
|
34978
|
+
function Xk({ label: e = "Success" }) {
|
|
34970
34979
|
return /* @__PURE__ */ C("div", {
|
|
34971
34980
|
className: "text-green-600",
|
|
34972
34981
|
children: e
|
|
@@ -34974,8 +34983,8 @@ function Jk({ label: e = "Success" }) {
|
|
|
34974
34983
|
}
|
|
34975
34984
|
//#endregion
|
|
34976
34985
|
//#region src/toaster/Toaster.tsx
|
|
34977
|
-
var
|
|
34978
|
-
function
|
|
34986
|
+
var Zk = 1e3;
|
|
34987
|
+
function Qk({ message: e, isOpen: t, onClose: n = Yt, duration: r = 2e3, className: i = "" }) {
|
|
34979
34988
|
let [a, o] = x("hidden");
|
|
34980
34989
|
return g(() => {
|
|
34981
34990
|
if (!t) return;
|
|
@@ -34990,7 +34999,7 @@ function Xk({ message: e, isOpen: t, onClose: n = Yt, duration: r = 2e3, classNa
|
|
|
34990
34999
|
if (a !== "exiting") return;
|
|
34991
35000
|
let e = setTimeout(() => {
|
|
34992
35001
|
o("hidden"), n();
|
|
34993
|
-
},
|
|
35002
|
+
}, Zk);
|
|
34994
35003
|
return () => clearTimeout(e);
|
|
34995
35004
|
}, [a, n]), a === "hidden" ? null : /* @__PURE__ */ C("div", {
|
|
34996
35005
|
className: `fixed bottom-6 left-1/2 -translate-x-1/2 z-[100] px-4 py-2 rounded-md shadow-lg transition-all ease-out ${a === "visible" ? "duration-300 opacity-100 translate-y-0" : a === "exiting" ? "duration-1000 opacity-0 translate-y-4" : "duration-300 opacity-0 translate-y-4"} ${i}`,
|
|
@@ -34999,7 +35008,7 @@ function Xk({ message: e, isOpen: t, onClose: n = Yt, duration: r = 2e3, classNa
|
|
|
34999
35008
|
}
|
|
35000
35009
|
//#endregion
|
|
35001
35010
|
//#region src/tags/Tag.tsx
|
|
35002
|
-
var
|
|
35011
|
+
var $k = [
|
|
35003
35012
|
"text-[#532e9e] border border-[#532e9e] bg-white",
|
|
35004
35013
|
"text-[#9e2e8b] border border-[#9e2e8b] bg-white",
|
|
35005
35014
|
"text-[#9e2e2e] border border-[#9e2e2e] bg-white",
|
|
@@ -35012,7 +35021,7 @@ var Zk = [
|
|
|
35012
35021
|
"text-[#675b1e] border border-[#675b1e] bg-white",
|
|
35013
35022
|
"text-[#36671e] border border-[#36671e] bg-white",
|
|
35014
35023
|
"text-[#1e6742] border border-[#1e6742] bg-white"
|
|
35015
|
-
],
|
|
35024
|
+
], eA = [
|
|
35016
35025
|
"bg-[#532e9e] text-white",
|
|
35017
35026
|
"bg-[#9e2e8b] text-white",
|
|
35018
35027
|
"bg-[#9e2e2e] text-white",
|
|
@@ -35025,30 +35034,30 @@ var Zk = [
|
|
|
35025
35034
|
"bg-[#675b1e] text-white",
|
|
35026
35035
|
"bg-[#36671e] text-white",
|
|
35027
35036
|
"bg-[#1e6742] text-white"
|
|
35028
|
-
],
|
|
35037
|
+
], tA = 12, nA = (e) => {
|
|
35029
35038
|
let t = e.slice(0, 2), n = 0;
|
|
35030
35039
|
for (let e = 0; e < t.length; e += 1) n = n * 256 + t.charCodeAt(e);
|
|
35031
35040
|
return n;
|
|
35032
|
-
},
|
|
35033
|
-
let n =
|
|
35034
|
-
return t ?
|
|
35041
|
+
}, rA = (e) => (typeof e == "string" && (e = nA(e)), Math.abs(Math.floor(e)) % tA), iA = (e, t) => {
|
|
35042
|
+
let n = rA(e);
|
|
35043
|
+
return t ? eA[n] : $k[n];
|
|
35035
35044
|
};
|
|
35036
|
-
function
|
|
35045
|
+
function aA({ label: e, onClick: t = Yt, className: n = "", labelSize: r = "base", isHighlighted: i = !1, color: a = 0 }) {
|
|
35037
35046
|
return /* @__PURE__ */ C(Qa, {
|
|
35038
35047
|
onClick: t,
|
|
35039
|
-
className: G("Tag w-fit h-fit px-1 rounded-full", n, `text-${r}`,
|
|
35048
|
+
className: G("Tag w-fit h-fit px-1 rounded-full", n, `text-${r}`, iA(a, i)),
|
|
35040
35049
|
children: e
|
|
35041
35050
|
});
|
|
35042
35051
|
}
|
|
35043
35052
|
//#endregion
|
|
35044
35053
|
//#region src/tags/Tags.tsx
|
|
35045
|
-
function
|
|
35054
|
+
function oA({ tags: e, highlightedTagIndex: t, className: n = "" }) {
|
|
35046
35055
|
return /* @__PURE__ */ C(Xa, {
|
|
35047
35056
|
className: G("Tags flex flex-row flex-wrap gap-1", n),
|
|
35048
35057
|
items: e,
|
|
35049
35058
|
itemRenderer: (e, n) => {
|
|
35050
35059
|
let r = typeof t == "number" ? n === t : void 0;
|
|
35051
|
-
return /* @__PURE__ */ C(
|
|
35060
|
+
return /* @__PURE__ */ C(aA, {
|
|
35052
35061
|
...e,
|
|
35053
35062
|
...r === void 0 ? {} : { isHighlighted: r }
|
|
35054
35063
|
}, n);
|
|
@@ -35057,7 +35066,7 @@ function iA({ tags: e, highlightedTagIndex: t, className: n = "" }) {
|
|
|
35057
35066
|
}
|
|
35058
35067
|
//#endregion
|
|
35059
35068
|
//#region src/ShowMore.tsx
|
|
35060
|
-
function
|
|
35069
|
+
function sA({ onClick: e = Yt, className: t = "" }) {
|
|
35061
35070
|
return /* @__PURE__ */ C(Qa, {
|
|
35062
35071
|
onClick: e,
|
|
35063
35072
|
className: G("ShowMore font-bold text-gray-700", t),
|
|
@@ -35066,7 +35075,7 @@ function aA({ onClick: e = Yt, className: t = "" }) {
|
|
|
35066
35075
|
}
|
|
35067
35076
|
//#endregion
|
|
35068
35077
|
//#region src/carousel/Carousel.tsx
|
|
35069
|
-
function
|
|
35078
|
+
function cA({ children: e, className: t = "w-50" }) {
|
|
35070
35079
|
return /* @__PURE__ */ C("div", {
|
|
35071
35080
|
className: G("Carousel", t),
|
|
35072
35081
|
children: /* @__PURE__ */ C(Te, {
|
|
@@ -35086,7 +35095,7 @@ function oA({ children: e, className: t = "w-50" }) {
|
|
|
35086
35095
|
}
|
|
35087
35096
|
//#endregion
|
|
35088
35097
|
//#region src/avatar/LetterAvatar.tsx
|
|
35089
|
-
function
|
|
35098
|
+
function lA({ letter: e, className: t = "", onClick: n }) {
|
|
35090
35099
|
return /* @__PURE__ */ C(Qa, {
|
|
35091
35100
|
onClick: n,
|
|
35092
35101
|
className: G("LetterAvatar flex items-center justify-center rounded-full w-full h-full bg-blue-300 text-white font-bold", t),
|
|
@@ -35114,14 +35123,14 @@ function sA({ letter: e, className: t = "", onClick: n }) {
|
|
|
35114
35123
|
}
|
|
35115
35124
|
//#endregion
|
|
35116
35125
|
//#region src/avatar/Avatar.tsx
|
|
35117
|
-
function
|
|
35126
|
+
function uA({ label: e = "N", className: t = "w-full h-full", imgSrc: n = "", fallbackImgSrc: r = "", onClick: i = Yt }) {
|
|
35118
35127
|
return n || r ? /* @__PURE__ */ C(Yo, {
|
|
35119
35128
|
className: G("Avatar rounded-full w-full h-full", t),
|
|
35120
35129
|
src: n,
|
|
35121
35130
|
fallbackSrc: r,
|
|
35122
35131
|
alt: e,
|
|
35123
35132
|
onClick: i
|
|
35124
|
-
}) : /* @__PURE__ */ C(
|
|
35133
|
+
}) : /* @__PURE__ */ C(lA, {
|
|
35125
35134
|
className: `LetterAvatar ${t}`,
|
|
35126
35135
|
onClick: i,
|
|
35127
35136
|
letter: e
|
|
@@ -35129,10 +35138,10 @@ function cA({ label: e = "N", className: t = "w-full h-full", imgSrc: n = "", fa
|
|
|
35129
35138
|
}
|
|
35130
35139
|
//#endregion
|
|
35131
35140
|
//#region src/avatar/AvatarTag.tsx
|
|
35132
|
-
function
|
|
35141
|
+
function dA({ label: e = "N", onClick: t = Yt, className: n = "", imgSrc: r = "", fallbackImgSrc: i = "", avatarClassName: a = "w-8 h-8" }) {
|
|
35133
35142
|
return /* @__PURE__ */ w(lo, {
|
|
35134
35143
|
className: G("AvatarTag shrink-0 bg-white rounded-lg py-1", n),
|
|
35135
|
-
children: [/* @__PURE__ */ C(
|
|
35144
|
+
children: [/* @__PURE__ */ C(uA, {
|
|
35136
35145
|
className: a,
|
|
35137
35146
|
onClick: t,
|
|
35138
35147
|
label: e?.charAt(0).toUpperCase(),
|
|
@@ -35146,12 +35155,12 @@ function lA({ label: e = "N", onClick: t = Yt, className: n = "", imgSrc: r = ""
|
|
|
35146
35155
|
}
|
|
35147
35156
|
//#endregion
|
|
35148
35157
|
//#region src/avatar/AvatarTimeTag.tsx
|
|
35149
|
-
function
|
|
35158
|
+
function fA({ label: e = "N", time: t, onClick: n = Yt, className: r = "", avatarClassName: i = "h-11 w-11", imgSrc: a = "", fallbackImgSrc: o }) {
|
|
35150
35159
|
return /* @__PURE__ */ w(lo, {
|
|
35151
35160
|
className: G("AvatarTimeTag bg-white rounded-lg py-1", r),
|
|
35152
35161
|
children: [/* @__PURE__ */ C("div", {
|
|
35153
35162
|
className: G("rounded-full overflow-hidden", i),
|
|
35154
|
-
children: /* @__PURE__ */ C(
|
|
35163
|
+
children: /* @__PURE__ */ C(uA, {
|
|
35155
35164
|
className: "w-full h-full",
|
|
35156
35165
|
onClick: n,
|
|
35157
35166
|
label: e?.charAt(0).toUpperCase(),
|
|
@@ -35173,7 +35182,7 @@ function uA({ label: e = "N", time: t, onClick: n = Yt, className: r = "", avata
|
|
|
35173
35182
|
}
|
|
35174
35183
|
//#endregion
|
|
35175
35184
|
//#region src/images/mediaUpload/MediaUploadPreview.tsx
|
|
35176
|
-
function
|
|
35185
|
+
function pA({ file: e, objectUrl: t, onRemove: n, className: r = "", imgClassName: i = "" }) {
|
|
35177
35186
|
return /* @__PURE__ */ w("div", {
|
|
35178
35187
|
className: G("relative flex-shrink-0", r),
|
|
35179
35188
|
children: [/* @__PURE__ */ C(Jo, {
|
|
@@ -35191,15 +35200,15 @@ function dA({ file: e, objectUrl: t, onRemove: n, className: r = "", imgClassNam
|
|
|
35191
35200
|
}
|
|
35192
35201
|
//#endregion
|
|
35193
35202
|
//#region src/images/useFileInput.tsx
|
|
35194
|
-
var
|
|
35203
|
+
var mA = "image/jpeg,image/png,image/webp,image/avif,image/bmp,image/svg+xml,image/tiff,image/heic,image/heif", hA = [
|
|
35195
35204
|
"video/",
|
|
35196
35205
|
"image/gif",
|
|
35197
35206
|
"image/apng"
|
|
35198
35207
|
];
|
|
35199
|
-
function
|
|
35200
|
-
return !
|
|
35208
|
+
function gA(e) {
|
|
35209
|
+
return !hA.some((t) => e.type === t || e.type.startsWith(t));
|
|
35201
35210
|
}
|
|
35202
|
-
function
|
|
35211
|
+
function _A({ onChange: e, accept: t = mA, multiple: n = !1 }) {
|
|
35203
35212
|
let r = b(null), i = b(e);
|
|
35204
35213
|
return i.current = e, {
|
|
35205
35214
|
inputElement: /* @__PURE__ */ C("input", {
|
|
@@ -35209,7 +35218,7 @@ function hA({ onChange: e, accept: t = fA, multiple: n = !1 }) {
|
|
|
35209
35218
|
multiple: n,
|
|
35210
35219
|
className: "hidden",
|
|
35211
35220
|
onChange: (e) => {
|
|
35212
|
-
let t = Array.from(e.target.files ?? []).filter(
|
|
35221
|
+
let t = Array.from(e.target.files ?? []).filter(gA);
|
|
35213
35222
|
e.target.value = "", t.length > 0 && i.current(t);
|
|
35214
35223
|
}
|
|
35215
35224
|
}),
|
|
@@ -35218,12 +35227,12 @@ function hA({ onChange: e, accept: t = fA, multiple: n = !1 }) {
|
|
|
35218
35227
|
}
|
|
35219
35228
|
//#endregion
|
|
35220
35229
|
//#region src/images/mediaUpload/MediaUpload.tsx
|
|
35221
|
-
function
|
|
35230
|
+
function vA({ onChange: e, multiple: t = !0, maxFiles: n = 9, className: r = "", accept: i = mA, loading: a = !1 }) {
|
|
35222
35231
|
let [o, s] = x([]), [c, l] = x("");
|
|
35223
35232
|
g(() => () => {
|
|
35224
35233
|
o.forEach((e) => URL.revokeObjectURL(e.objectUrl));
|
|
35225
35234
|
}, []);
|
|
35226
|
-
let { inputElement: u, trigger: d } =
|
|
35235
|
+
let { inputElement: u, trigger: d } = _A({
|
|
35227
35236
|
onChange: (e) => f(e),
|
|
35228
35237
|
accept: i,
|
|
35229
35238
|
multiple: t
|
|
@@ -35250,7 +35259,7 @@ function gA({ onChange: e, multiple: t = !0, maxFiles: n = 9, className: r = "",
|
|
|
35250
35259
|
children: [
|
|
35251
35260
|
/* @__PURE__ */ w(lo, {
|
|
35252
35261
|
className: "gap-2 items-end overflow-x-auto",
|
|
35253
|
-
children: [o.map((e, t) => /* @__PURE__ */ C(
|
|
35262
|
+
children: [o.map((e, t) => /* @__PURE__ */ C(pA, {
|
|
35254
35263
|
file: e.file,
|
|
35255
35264
|
objectUrl: e.objectUrl,
|
|
35256
35265
|
onRemove: () => p(t)
|
|
@@ -35271,7 +35280,7 @@ function gA({ onChange: e, multiple: t = !0, maxFiles: n = 9, className: r = "",
|
|
|
35271
35280
|
}
|
|
35272
35281
|
//#endregion
|
|
35273
35282
|
//#region src/images/imageGrid/ImageGridBase.tsx
|
|
35274
|
-
var
|
|
35283
|
+
var yA = 500, bA = {
|
|
35275
35284
|
background: "transparent",
|
|
35276
35285
|
border: "none",
|
|
35277
35286
|
boxShadow: "none",
|
|
@@ -35279,13 +35288,13 @@ var _A = 500, vA = {
|
|
|
35279
35288
|
width: "fit-content",
|
|
35280
35289
|
height: "fit-content"
|
|
35281
35290
|
};
|
|
35282
|
-
function
|
|
35291
|
+
function xA({ onSelect: e, selectedSrc: t, srcs: n, onDelete: r, className: i = "", isMobile: a = !1, extraCell: o }) {
|
|
35283
35292
|
let [s, c] = x(null), l = b(null), u = b(!1), d = () => {
|
|
35284
35293
|
l.current &&= (clearTimeout(l.current), null);
|
|
35285
35294
|
}, f = (e) => {
|
|
35286
35295
|
u.current = !1, d(), l.current = setTimeout(() => {
|
|
35287
35296
|
u.current = !0, c(e);
|
|
35288
|
-
},
|
|
35297
|
+
}, yA);
|
|
35289
35298
|
}, p = (t) => {
|
|
35290
35299
|
if (u.current) {
|
|
35291
35300
|
u.current = !1;
|
|
@@ -35295,13 +35304,13 @@ function yA({ onSelect: e, selectedSrc: t, srcs: n, onDelete: r, className: i =
|
|
|
35295
35304
|
}, m = {
|
|
35296
35305
|
overlay: { backgroundColor: "rgba(0, 0, 0, 0.75)" },
|
|
35297
35306
|
content: a ? {
|
|
35298
|
-
...
|
|
35307
|
+
...bA,
|
|
35299
35308
|
top: "0",
|
|
35300
35309
|
left: "0",
|
|
35301
35310
|
transform: "none",
|
|
35302
35311
|
width: "100vw"
|
|
35303
35312
|
} : {
|
|
35304
|
-
...
|
|
35313
|
+
...bA,
|
|
35305
35314
|
top: "50%",
|
|
35306
35315
|
left: "50%",
|
|
35307
35316
|
transform: "translate(-50%, -50%)"
|
|
@@ -35397,37 +35406,37 @@ function yA({ onSelect: e, selectedSrc: t, srcs: n, onDelete: r, className: i =
|
|
|
35397
35406
|
}
|
|
35398
35407
|
//#endregion
|
|
35399
35408
|
//#region src/images/imageGrid/ImageGrid.tsx
|
|
35400
|
-
function
|
|
35401
|
-
return /* @__PURE__ */ C(
|
|
35409
|
+
function SA(e) {
|
|
35410
|
+
return /* @__PURE__ */ C(xA, { ...e });
|
|
35402
35411
|
}
|
|
35403
35412
|
//#endregion
|
|
35404
35413
|
//#region src/images/imageGrid/ImageGridUpload.tsx
|
|
35405
|
-
var
|
|
35414
|
+
var CA = (e) => e.map((e) => ({
|
|
35406
35415
|
file: e,
|
|
35407
35416
|
objectUrl: URL.createObjectURL(e)
|
|
35408
|
-
})),
|
|
35409
|
-
function
|
|
35417
|
+
})), wA = (e) => e.forEach((e) => URL.revokeObjectURL(e.objectUrl));
|
|
35418
|
+
function TA({ onUpload: e, onChange: t, onDelete: n, isEditable: r = !1, maxImages: i = 9, uploadLabel: a = "Upload", loading: o = !1, isUploaded: s = !1, ...c }) {
|
|
35410
35419
|
let [l, u] = x([]), [d, f] = x(!1), [p, m] = x(""), h = b(l);
|
|
35411
|
-
h.current = l, g(() => () =>
|
|
35412
|
-
let _ = () => i - c.srcs.length - h.current.length, { inputElement: v, trigger: y } =
|
|
35420
|
+
h.current = l, g(() => () => wA(h.current), []);
|
|
35421
|
+
let _ = () => i - c.srcs.length - h.current.length, { inputElement: v, trigger: y } = _A({
|
|
35413
35422
|
onChange: (e) => {
|
|
35414
|
-
|
|
35423
|
+
wA(h.current);
|
|
35415
35424
|
let n = i - c.srcs.length, r = e.slice(0, n);
|
|
35416
|
-
m(e.length > n ? `You can only add ${i} images in total.` : ""), u(
|
|
35425
|
+
m(e.length > n ? `You can only add ${i} images in total.` : ""), u(CA(r)), t?.(r), f(!0);
|
|
35417
35426
|
},
|
|
35418
35427
|
multiple: !0
|
|
35419
|
-
}), { inputElement: T, trigger: E } =
|
|
35428
|
+
}), { inputElement: T, trigger: E } = _A({
|
|
35420
35429
|
onChange: (e) => {
|
|
35421
35430
|
let n = _(), r = e.slice(0, n);
|
|
35422
|
-
m(e.length > n ? `You can only add ${i} images in total.` : ""), u((e) => [...e, ...
|
|
35431
|
+
m(e.length > n ? `You can only add ${i} images in total.` : ""), u((e) => [...e, ...CA(r)]), t?.(r), f(!0);
|
|
35423
35432
|
},
|
|
35424
35433
|
multiple: !0
|
|
35425
35434
|
}), D = (e) => {
|
|
35426
35435
|
u((t) => (URL.revokeObjectURL(t[e].objectUrl), t.filter((t, n) => n !== e))), m("");
|
|
35427
35436
|
}, O = () => {
|
|
35428
|
-
e(l.map((e) => e.file)),
|
|
35437
|
+
e(l.map((e) => e.file)), wA(l), u([]), m("");
|
|
35429
35438
|
}, k = () => {
|
|
35430
|
-
|
|
35439
|
+
wA(l), u([]), f(!1), m("");
|
|
35431
35440
|
};
|
|
35432
35441
|
g(() => {
|
|
35433
35442
|
s && k();
|
|
@@ -35446,7 +35455,7 @@ function CA({ onUpload: e, onChange: t, onDelete: n, isEditable: r = !1, maxImag
|
|
|
35446
35455
|
return /* @__PURE__ */ w(S, { children: [
|
|
35447
35456
|
v,
|
|
35448
35457
|
T,
|
|
35449
|
-
/* @__PURE__ */ C(
|
|
35458
|
+
/* @__PURE__ */ C(xA, {
|
|
35450
35459
|
...c,
|
|
35451
35460
|
onDelete: r ? n : void 0,
|
|
35452
35461
|
extraCell: A
|
|
@@ -35462,7 +35471,7 @@ function CA({ onUpload: e, onChange: t, onDelete: n, isEditable: r = !1, maxImag
|
|
|
35462
35471
|
children: [
|
|
35463
35472
|
/* @__PURE__ */ C(lo, {
|
|
35464
35473
|
className: "overflow-x-auto gap-2",
|
|
35465
|
-
children: l.map((e, t) => /* @__PURE__ */ C(
|
|
35474
|
+
children: l.map((e, t) => /* @__PURE__ */ C(pA, {
|
|
35466
35475
|
file: e.file,
|
|
35467
35476
|
objectUrl: e.objectUrl,
|
|
35468
35477
|
onRemove: () => D(t),
|
|
@@ -35495,37 +35504,37 @@ function CA({ onUpload: e, onChange: t, onDelete: n, isEditable: r = !1, maxImag
|
|
|
35495
35504
|
}
|
|
35496
35505
|
//#endregion
|
|
35497
35506
|
//#region node_modules/tslib/tslib.es6.mjs
|
|
35498
|
-
var
|
|
35499
|
-
return
|
|
35507
|
+
var EA = function(e, t) {
|
|
35508
|
+
return EA = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
35500
35509
|
e.__proto__ = t;
|
|
35501
35510
|
} || function(e, t) {
|
|
35502
35511
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
35503
|
-
},
|
|
35512
|
+
}, EA(e, t);
|
|
35504
35513
|
};
|
|
35505
|
-
function
|
|
35514
|
+
function DA(e, t) {
|
|
35506
35515
|
if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
35507
|
-
|
|
35516
|
+
EA(e, t);
|
|
35508
35517
|
function n() {
|
|
35509
35518
|
this.constructor = e;
|
|
35510
35519
|
}
|
|
35511
35520
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
35512
35521
|
}
|
|
35513
|
-
var
|
|
35514
|
-
return
|
|
35522
|
+
var OA = function() {
|
|
35523
|
+
return OA = Object.assign || function(e) {
|
|
35515
35524
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
35516
35525
|
return e;
|
|
35517
|
-
},
|
|
35526
|
+
}, OA.apply(this, arguments);
|
|
35518
35527
|
};
|
|
35519
|
-
function
|
|
35520
|
-
return this instanceof
|
|
35528
|
+
function kA(e) {
|
|
35529
|
+
return this instanceof kA ? (this.v = e, this) : new kA(e);
|
|
35521
35530
|
}
|
|
35522
|
-
var
|
|
35523
|
-
return
|
|
35531
|
+
var AA = function(e) {
|
|
35532
|
+
return AA = Object.getOwnPropertyNames || function(e) {
|
|
35524
35533
|
var t = [];
|
|
35525
35534
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
|
|
35526
35535
|
return t;
|
|
35527
|
-
},
|
|
35528
|
-
},
|
|
35536
|
+
}, AA(e);
|
|
35537
|
+
}, jA = /* @__PURE__ */ t(((e, t) => {
|
|
35529
35538
|
var n = !1, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _;
|
|
35530
35539
|
function v() {
|
|
35531
35540
|
if (!n) {
|
|
@@ -35596,7 +35605,7 @@ var OA = function(e) {
|
|
|
35596
35605
|
}
|
|
35597
35606
|
};
|
|
35598
35607
|
t.exports = y;
|
|
35599
|
-
})),
|
|
35608
|
+
})), MA = /* @__PURE__ */ t(((e, t) => {
|
|
35600
35609
|
var n = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
35601
35610
|
t.exports = {
|
|
35602
35611
|
canUseDOM: n,
|
|
@@ -35605,8 +35614,8 @@ var OA = function(e) {
|
|
|
35605
35614
|
canUseViewport: n && !!window.screen,
|
|
35606
35615
|
isInWorker: !n
|
|
35607
35616
|
};
|
|
35608
|
-
})),
|
|
35609
|
-
var n =
|
|
35617
|
+
})), NA = /* @__PURE__ */ t(((e, t) => {
|
|
35618
|
+
var n = MA(), r;
|
|
35610
35619
|
n.canUseDOM && (r = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0);
|
|
35611
35620
|
function i(e, t) {
|
|
35612
35621
|
if (!n.canUseDOM || t && !("addEventListener" in document)) return !1;
|
|
@@ -35618,8 +35627,8 @@ var OA = function(e) {
|
|
|
35618
35627
|
return !a && r && e === "wheel" && (a = document.implementation.hasFeature("Events.wheel", "3.0")), a;
|
|
35619
35628
|
}
|
|
35620
35629
|
t.exports = i;
|
|
35621
|
-
})),
|
|
35622
|
-
var n =
|
|
35630
|
+
})), PA = /* @__PURE__ */ t(((e, t) => {
|
|
35631
|
+
var n = jA(), r = NA(), i = 10, a = 40, o = 800;
|
|
35623
35632
|
function s(e) {
|
|
35624
35633
|
var t = 0, n = 0, r = 0, s = 0;
|
|
35625
35634
|
return "detail" in e && (n = e.detail), "wheelDelta" in e && (n = -e.wheelDelta / 120), "wheelDeltaY" in e && (n = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = n, n = 0), r = t * i, s = n * i, "deltaY" in e && (s = e.deltaY), "deltaX" in e && (r = e.deltaX), (r || s) && e.deltaMode && (e.deltaMode == 1 ? (r *= a, s *= a) : (r *= o, s *= o)), r && !t && (t = r < 1 ? -1 : 1), s && !n && (n = s < 1 ? -1 : 1), {
|
|
@@ -35632,12 +35641,12 @@ var OA = function(e) {
|
|
|
35632
35641
|
s.getEventType = function() {
|
|
35633
35642
|
return n.firefox() ? "DOMMouseScroll" : r("wheel") ? "wheel" : "mousewheel";
|
|
35634
35643
|
}, t.exports = s;
|
|
35635
|
-
})),
|
|
35636
|
-
t.exports =
|
|
35644
|
+
})), FA = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
35645
|
+
t.exports = PA();
|
|
35637
35646
|
})))(), 1);
|
|
35638
|
-
function
|
|
35647
|
+
function IA(e, t, n, r, i, a) {
|
|
35639
35648
|
a === void 0 && (a = 0);
|
|
35640
|
-
var o =
|
|
35649
|
+
var o = XA(e, t, a), s = o.width, c = o.height, l = Math.min(s, n), u = Math.min(c, r);
|
|
35641
35650
|
return l > u * i ? {
|
|
35642
35651
|
width: u * i,
|
|
35643
35652
|
height: u
|
|
@@ -35646,30 +35655,30 @@ function PA(e, t, n, r, i, a) {
|
|
|
35646
35655
|
height: l / i
|
|
35647
35656
|
};
|
|
35648
35657
|
}
|
|
35649
|
-
function
|
|
35658
|
+
function LA(e) {
|
|
35650
35659
|
return e.width > e.height ? e.width / e.naturalWidth : e.height / e.naturalHeight;
|
|
35651
35660
|
}
|
|
35652
|
-
function
|
|
35661
|
+
function RA(e, t, n, r, i) {
|
|
35653
35662
|
i === void 0 && (i = 0);
|
|
35654
|
-
var a =
|
|
35663
|
+
var a = XA(t.width, t.height, i), o = a.width, s = a.height;
|
|
35655
35664
|
return {
|
|
35656
|
-
x:
|
|
35657
|
-
y:
|
|
35665
|
+
x: zA(e.x, o, n.width, r),
|
|
35666
|
+
y: zA(e.y, s, n.height, r)
|
|
35658
35667
|
};
|
|
35659
35668
|
}
|
|
35660
|
-
function
|
|
35669
|
+
function zA(e, t, n, r) {
|
|
35661
35670
|
var i = Math.abs(t * r / 2 - n / 2);
|
|
35662
|
-
return
|
|
35671
|
+
return ZA(e, -i, i);
|
|
35663
35672
|
}
|
|
35664
|
-
function
|
|
35673
|
+
function BA(e, t) {
|
|
35665
35674
|
return Math.sqrt((e.y - t.y) ** 2 + (e.x - t.x) ** 2);
|
|
35666
35675
|
}
|
|
35667
|
-
function
|
|
35676
|
+
function VA(e, t) {
|
|
35668
35677
|
return Math.atan2(t.y - e.y, t.x - e.x) * 180 / Math.PI;
|
|
35669
35678
|
}
|
|
35670
|
-
function
|
|
35679
|
+
function HA(e, t, n, r, i, a, o) {
|
|
35671
35680
|
a === void 0 && (a = 0), o === void 0 && (o = !0);
|
|
35672
|
-
var s = o ?
|
|
35681
|
+
var s = o ? UA : WA, c = XA(t.width, t.height, a), l = XA(t.naturalWidth, t.naturalHeight, a), u = {
|
|
35673
35682
|
x: s(100, ((c.width - n.width / i) / 2 - e.x / i) / c.width * 100),
|
|
35674
35683
|
y: s(100, ((c.height - n.height / i) / 2 - e.y / i) / c.height * 100),
|
|
35675
35684
|
width: s(100, n.width / c.width * 100 / i),
|
|
@@ -35683,20 +35692,20 @@ function BA(e, t, n, r, i, a, o) {
|
|
|
35683
35692
|
};
|
|
35684
35693
|
return {
|
|
35685
35694
|
croppedAreaPercentages: u,
|
|
35686
|
-
croppedAreaPixels:
|
|
35695
|
+
croppedAreaPixels: OA(OA({}, p), {
|
|
35687
35696
|
x: Math.round(s(l.width - p.width, u.x * l.width / 100)),
|
|
35688
35697
|
y: Math.round(s(l.height - p.height, u.y * l.height / 100))
|
|
35689
35698
|
})
|
|
35690
35699
|
};
|
|
35691
35700
|
}
|
|
35692
|
-
function
|
|
35701
|
+
function UA(e, t) {
|
|
35693
35702
|
return Math.min(e, Math.max(0, t));
|
|
35694
35703
|
}
|
|
35695
|
-
function
|
|
35704
|
+
function WA(e, t) {
|
|
35696
35705
|
return t;
|
|
35697
35706
|
}
|
|
35698
|
-
function
|
|
35699
|
-
var o =
|
|
35707
|
+
function GA(e, t, n, r, i, a) {
|
|
35708
|
+
var o = XA(t.width, t.height, n), s = ZA(r.width / o.width * (100 / e.width), i, a);
|
|
35700
35709
|
return {
|
|
35701
35710
|
crop: {
|
|
35702
35711
|
x: s * o.width / 2 - r.width / 2 - o.width * s * (e.x / 100),
|
|
@@ -35705,13 +35714,13 @@ function UA(e, t, n, r, i, a) {
|
|
|
35705
35714
|
zoom: s
|
|
35706
35715
|
};
|
|
35707
35716
|
}
|
|
35708
|
-
function
|
|
35709
|
-
var r =
|
|
35717
|
+
function KA(e, t, n) {
|
|
35718
|
+
var r = LA(t);
|
|
35710
35719
|
return n.height > n.width ? n.height / (e.height * r) : n.width / (e.width * r);
|
|
35711
35720
|
}
|
|
35712
|
-
function
|
|
35721
|
+
function qA(e, t, n, r, i, a) {
|
|
35713
35722
|
n === void 0 && (n = 0);
|
|
35714
|
-
var o =
|
|
35723
|
+
var o = XA(t.naturalWidth, t.naturalHeight, n), s = ZA(KA(e, t, r), i, a), c = r.height > r.width ? r.height / e.height : r.width / e.width;
|
|
35715
35724
|
return {
|
|
35716
35725
|
crop: {
|
|
35717
35726
|
x: ((o.width - e.width) / 2 - e.x) * c,
|
|
@@ -35720,32 +35729,32 @@ function GA(e, t, n, r, i, a) {
|
|
|
35720
35729
|
zoom: s
|
|
35721
35730
|
};
|
|
35722
35731
|
}
|
|
35723
|
-
function
|
|
35732
|
+
function JA(e, t) {
|
|
35724
35733
|
return {
|
|
35725
35734
|
x: (t.x + e.x) / 2,
|
|
35726
35735
|
y: (t.y + e.y) / 2
|
|
35727
35736
|
};
|
|
35728
35737
|
}
|
|
35729
|
-
function
|
|
35738
|
+
function YA(e) {
|
|
35730
35739
|
return e * Math.PI / 180;
|
|
35731
35740
|
}
|
|
35732
|
-
function
|
|
35733
|
-
var r =
|
|
35741
|
+
function XA(e, t, n) {
|
|
35742
|
+
var r = YA(n);
|
|
35734
35743
|
return {
|
|
35735
35744
|
width: Math.abs(Math.cos(r) * e) + Math.abs(Math.sin(r) * t),
|
|
35736
35745
|
height: Math.abs(Math.sin(r) * e) + Math.abs(Math.cos(r) * t)
|
|
35737
35746
|
};
|
|
35738
35747
|
}
|
|
35739
|
-
function
|
|
35748
|
+
function ZA(e, t, n) {
|
|
35740
35749
|
return Math.min(Math.max(e, t), n);
|
|
35741
35750
|
}
|
|
35742
|
-
function
|
|
35751
|
+
function QA() {
|
|
35743
35752
|
return [...arguments].filter(function(e) {
|
|
35744
35753
|
return typeof e == "string" && e.length > 0;
|
|
35745
35754
|
}).join(" ").trim();
|
|
35746
35755
|
}
|
|
35747
|
-
var
|
|
35748
|
-
|
|
35756
|
+
var $A = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n", ej = 1, tj = 3, nj = 1, rj = function(e) {
|
|
35757
|
+
DA(t, e);
|
|
35749
35758
|
function t() {
|
|
35750
35759
|
var r = e !== null && e.apply(this, arguments) || this;
|
|
35751
35760
|
return r.cropperRef = n.createRef(), r.imageRef = n.createRef(), r.videoRef = n.createRef(), r.containerPosition = {
|
|
@@ -35788,10 +35797,10 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35788
35797
|
e && (r.previousCropSize = e, r.emitCropData(), r.setInitialCrop(e), r.isInitialized = !0), r.props.onMediaLoaded && r.props.onMediaLoaded(r.mediaSize);
|
|
35789
35798
|
}, r.setInitialCrop = function(e) {
|
|
35790
35799
|
if (r.props.initialCroppedAreaPercentages) {
|
|
35791
|
-
var t =
|
|
35800
|
+
var t = GA(r.props.initialCroppedAreaPercentages, r.mediaSize, r.props.rotation, e, r.props.minZoom, r.props.maxZoom), n = t.crop, i = t.zoom;
|
|
35792
35801
|
r.props.onCropChange(n), r.props.onZoomChange && r.props.onZoomChange(i);
|
|
35793
35802
|
} else if (r.props.initialCroppedAreaPixels) {
|
|
35794
|
-
var a =
|
|
35803
|
+
var a = qA(r.props.initialCroppedAreaPixels, r.mediaSize, r.props.rotation, e, r.props.minZoom, r.props.maxZoom), n = a.crop, i = a.zoom;
|
|
35795
35804
|
r.props.onCropChange(n), r.props.onZoomChange && r.props.onZoomChange(i);
|
|
35796
35805
|
}
|
|
35797
35806
|
}, r.computeSizes = function() {
|
|
@@ -35827,11 +35836,11 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35827
35836
|
width: e.offsetWidth,
|
|
35828
35837
|
height: e.offsetHeight
|
|
35829
35838
|
};
|
|
35830
|
-
r.mediaSize =
|
|
35839
|
+
r.mediaSize = OA(OA({}, s), {
|
|
35831
35840
|
naturalWidth: n,
|
|
35832
35841
|
naturalHeight: i
|
|
35833
35842
|
}), r.props.setMediaSize && r.props.setMediaSize(r.mediaSize);
|
|
35834
|
-
var c = r.props.cropSize ? r.props.cropSize :
|
|
35843
|
+
var c = r.props.cropSize ? r.props.cropSize : IA(r.mediaSize.width, r.mediaSize.height, r.containerRect.width, r.containerRect.height, r.props.aspect, r.props.rotation);
|
|
35835
35844
|
return (r.state.cropSize?.height !== c.height || r.state.cropSize?.width !== c.width) && r.props.onCropSizeChange && r.props.onCropSizeChange(c), r.setState({ cropSize: c }, r.recomputeCropPosition), r.props.setCropSize && r.props.setCropSize(c), c;
|
|
35836
35845
|
}
|
|
35837
35846
|
}, r.saveContainerPosition = function() {
|
|
@@ -35869,7 +35878,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35869
35878
|
r.dragStartPosition = {
|
|
35870
35879
|
x: e.x,
|
|
35871
35880
|
y: e.y
|
|
35872
|
-
}, r.dragStartCrop =
|
|
35881
|
+
}, r.dragStartCrop = OA({}, r.props.crop), (t = r.props).onInteractionStart?.call(t);
|
|
35873
35882
|
}, r.onDrag = function(e) {
|
|
35874
35883
|
var t = e.x, n = e.y;
|
|
35875
35884
|
r.currentWindow && (r.rafDragTimeout && r.currentWindow.cancelAnimationFrame(r.rafDragTimeout), r.rafDragTimeout = r.currentWindow.requestAnimationFrame(function() {
|
|
@@ -35877,7 +35886,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35877
35886
|
var e = t - r.dragStartPosition.x, i = n - r.dragStartPosition.y, a = {
|
|
35878
35887
|
x: r.dragStartCrop.x + e,
|
|
35879
35888
|
y: r.dragStartCrop.y + i
|
|
35880
|
-
}, o = r.props.restrictPosition ?
|
|
35889
|
+
}, o = r.props.restrictPosition ? RA(a, r.mediaSize, r.state.cropSize, r.props.zoom, r.props.rotation) : a;
|
|
35881
35890
|
r.props.onCropChange(o);
|
|
35882
35891
|
}
|
|
35883
35892
|
}));
|
|
@@ -35887,7 +35896,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35887
35896
|
}, r.onWheel = function(e) {
|
|
35888
35897
|
if (r.currentWindow && !(r.props.onWheelRequest && !r.props.onWheelRequest(e))) {
|
|
35889
35898
|
e.preventDefault();
|
|
35890
|
-
var n = t.getMousePoint(e), i = (0,
|
|
35899
|
+
var n = t.getMousePoint(e), i = (0, FA.default)(e).pixelY, a = r.props.zoom - i * r.props.zoomSpeed / 200;
|
|
35891
35900
|
r.setNewZoom(a, n, { shouldUpdatePosition: !0 }), r.state.hasWheelJustStarted || r.setState({ hasWheelJustStarted: !0 }, function() {
|
|
35892
35901
|
var e;
|
|
35893
35902
|
return (e = r.props).onInteractionStart?.call(e);
|
|
@@ -35914,18 +35923,18 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35914
35923
|
}, r.setNewZoom = function(e, t, n) {
|
|
35915
35924
|
var i = (n === void 0 ? {} : n).shouldUpdatePosition, a = i === void 0 || i;
|
|
35916
35925
|
if (!(!r.state.cropSize || !r.props.onZoomChange)) {
|
|
35917
|
-
var o =
|
|
35926
|
+
var o = ZA(e, r.props.minZoom, r.props.maxZoom);
|
|
35918
35927
|
if (a) {
|
|
35919
35928
|
var s = r.getPointOnContainer(t, r.containerPosition), c = r.getPointOnMedia(s), l = {
|
|
35920
35929
|
x: c.x * o - s.x,
|
|
35921
35930
|
y: c.y * o - s.y
|
|
35922
|
-
}, u = r.props.restrictPosition ?
|
|
35931
|
+
}, u = r.props.restrictPosition ? RA(l, r.mediaSize, r.state.cropSize, o, r.props.rotation) : l;
|
|
35923
35932
|
r.props.onCropChange(u);
|
|
35924
35933
|
}
|
|
35925
35934
|
r.props.onZoomChange(o);
|
|
35926
35935
|
}
|
|
35927
35936
|
}, r.getCropData = function() {
|
|
35928
|
-
return r.state.cropSize ?
|
|
35937
|
+
return r.state.cropSize ? HA(r.props.restrictPosition ? RA(r.props.crop, r.mediaSize, r.state.cropSize, r.props.zoom, r.props.rotation) : r.props.crop, r.mediaSize, r.state.cropSize, r.getAspect(), r.props.zoom, r.props.rotation, r.props.restrictPosition) : null;
|
|
35929
35938
|
}, r.emitCropData = function() {
|
|
35930
35939
|
var e = r.getCropData();
|
|
35931
35940
|
if (e) {
|
|
@@ -35948,14 +35957,14 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35948
35957
|
y: r.props.crop.y * n
|
|
35949
35958
|
};
|
|
35950
35959
|
}
|
|
35951
|
-
var i = r.props.restrictPosition ?
|
|
35960
|
+
var i = r.props.restrictPosition ? RA(e, r.mediaSize, r.state.cropSize, r.props.zoom, r.props.rotation) : e;
|
|
35952
35961
|
r.previousCropSize = r.state.cropSize, r.props.onCropChange(i), r.emitCropData();
|
|
35953
35962
|
}
|
|
35954
35963
|
}, r.onKeyDown = function(e) {
|
|
35955
35964
|
var t, n = r.props, i = n.crop, a = n.onCropChange, o = n.keyboardStep, s = n.zoom, c = n.rotation, l = o;
|
|
35956
35965
|
if (r.state.cropSize) {
|
|
35957
35966
|
e.shiftKey && (l *= .2);
|
|
35958
|
-
var u =
|
|
35967
|
+
var u = OA({}, i);
|
|
35959
35968
|
switch (e.key) {
|
|
35960
35969
|
case "ArrowUp":
|
|
35961
35970
|
u.y -= l, e.preventDefault();
|
|
@@ -35971,7 +35980,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35971
35980
|
break;
|
|
35972
35981
|
default: return;
|
|
35973
35982
|
}
|
|
35974
|
-
r.props.restrictPosition && (u =
|
|
35983
|
+
r.props.restrictPosition && (u = RA(u, r.mediaSize, r.state.cropSize, s, c)), e.repeat || (t = r.props).onInteractionStart?.call(t), a(u);
|
|
35975
35984
|
}
|
|
35976
35985
|
}, r.onKeyUp = function(e) {
|
|
35977
35986
|
var t;
|
|
@@ -35988,7 +35997,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
35988
35997
|
}, r;
|
|
35989
35998
|
}
|
|
35990
35999
|
return t.prototype.componentDidMount = function() {
|
|
35991
|
-
!this.currentDoc || !this.currentWindow || (this.containerRef && (this.containerRef.ownerDocument && (this.currentDoc = this.containerRef.ownerDocument), this.currentDoc.defaultView && (this.currentWindow = this.currentDoc.defaultView), this.initResizeObserver(), window.ResizeObserver === void 0 && this.currentWindow.addEventListener("resize", this.computeSizes), this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, { passive: !1 }), this.containerRef.addEventListener("gesturestart", this.onGestureStart)), this.currentDoc.addEventListener("scroll", this.onScroll), this.props.disableAutomaticStylesInjection || (this.styleRef = this.currentDoc.createElement("style"), this.styleRef.setAttribute("type", "text/css"), this.props.nonce && this.styleRef.setAttribute("nonce", this.props.nonce), this.styleRef.innerHTML =
|
|
36000
|
+
!this.currentDoc || !this.currentWindow || (this.containerRef && (this.containerRef.ownerDocument && (this.currentDoc = this.containerRef.ownerDocument), this.currentDoc.defaultView && (this.currentWindow = this.currentDoc.defaultView), this.initResizeObserver(), window.ResizeObserver === void 0 && this.currentWindow.addEventListener("resize", this.computeSizes), this.props.zoomWithScroll && this.containerRef.addEventListener("wheel", this.onWheel, { passive: !1 }), this.containerRef.addEventListener("gesturestart", this.onGestureStart)), this.currentDoc.addEventListener("scroll", this.onScroll), this.props.disableAutomaticStylesInjection || (this.styleRef = this.currentDoc.createElement("style"), this.styleRef.setAttribute("type", "text/css"), this.props.nonce && this.styleRef.setAttribute("nonce", this.props.nonce), this.styleRef.innerHTML = $A, this.currentDoc.head.appendChild(this.styleRef)), this.imageRef.current && this.imageRef.current.complete && this.onMediaLoad(), this.props.setImageRef && this.props.setImageRef(this.imageRef), this.props.setVideoRef && this.props.setVideoRef(this.videoRef), this.props.setCropperRef && this.props.setCropperRef(this.cropperRef));
|
|
35992
36001
|
}, t.prototype.componentWillUnmount = function() {
|
|
35993
36002
|
!this.currentDoc || !this.currentWindow || (window.ResizeObserver === void 0 && this.currentWindow.removeEventListener("resize", this.computeSizes), this.resizeObserver?.disconnect(), this.containerRef && this.containerRef.removeEventListener("gesturestart", this.preventZoomSafari), this.styleRef && this.styleRef.parentNode?.removeChild(this.styleRef), this.cleanEvents(), this.props.zoomWithScroll && this.clearScrollEvent());
|
|
35994
36003
|
}, t.prototype.componentDidUpdate = function(e) {
|
|
@@ -36010,15 +36019,15 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
36010
36019
|
return this.props.objectFit;
|
|
36011
36020
|
}, t.prototype.onPinchStart = function(e) {
|
|
36012
36021
|
var n = t.getTouchPoint(e.touches[0]), r = t.getTouchPoint(e.touches[1]);
|
|
36013
|
-
this.lastPinchDistance =
|
|
36022
|
+
this.lastPinchDistance = BA(n, r), this.lastPinchRotation = VA(n, r), this.onDragStart(JA(n, r));
|
|
36014
36023
|
}, t.prototype.onPinchMove = function(e) {
|
|
36015
36024
|
var n = this;
|
|
36016
36025
|
if (!(!this.currentDoc || !this.currentWindow)) {
|
|
36017
|
-
var r = t.getTouchPoint(e.touches[0]), i = t.getTouchPoint(e.touches[1]), a =
|
|
36026
|
+
var r = t.getTouchPoint(e.touches[0]), i = t.getTouchPoint(e.touches[1]), a = JA(r, i);
|
|
36018
36027
|
this.onDrag(a), this.rafPinchTimeout && this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout), this.rafPinchTimeout = this.currentWindow.requestAnimationFrame(function() {
|
|
36019
|
-
var e =
|
|
36028
|
+
var e = BA(r, i), t = n.props.zoom * (e / n.lastPinchDistance);
|
|
36020
36029
|
n.setNewZoom(t, a, { shouldUpdatePosition: !1 }), n.lastPinchDistance = e;
|
|
36021
|
-
var o =
|
|
36030
|
+
var o = VA(r, i), s = n.props.rotation + (o - n.lastPinchRotation);
|
|
36022
36031
|
n.props.onRotationChange && n.props.onRotationChange(s), n.lastPinchRotation = o;
|
|
36023
36032
|
});
|
|
36024
36033
|
}
|
|
@@ -36032,31 +36041,31 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
36032
36041
|
},
|
|
36033
36042
|
"data-testid": "container",
|
|
36034
36043
|
style: _,
|
|
36035
|
-
className:
|
|
36036
|
-
}, r ? n.createElement("img",
|
|
36044
|
+
className: QA("reactEasyCrop_Container", x)
|
|
36045
|
+
}, r ? n.createElement("img", OA({
|
|
36037
36046
|
alt: "",
|
|
36038
|
-
className:
|
|
36047
|
+
className: QA("reactEasyCrop_Image", w === "contain" && "reactEasyCrop_Contain", w === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", w === "vertical-cover" && "reactEasyCrop_Cover_Vertical", C)
|
|
36039
36048
|
}, a, {
|
|
36040
36049
|
src: r,
|
|
36041
36050
|
ref: this.imageRef,
|
|
36042
|
-
style:
|
|
36051
|
+
style: OA(OA({}, y), { transform: s || `translate(${l}px, ${u}px) rotate(${d}deg) scale(${f})` }),
|
|
36043
36052
|
onLoad: this.onMediaLoad
|
|
36044
|
-
})) : i && n.createElement("video",
|
|
36053
|
+
})) : i && n.createElement("video", OA({
|
|
36045
36054
|
autoPlay: !0,
|
|
36046
36055
|
playsInline: !0,
|
|
36047
36056
|
loop: !0,
|
|
36048
36057
|
muted: !0,
|
|
36049
|
-
className:
|
|
36058
|
+
className: QA("reactEasyCrop_Video", w === "contain" && "reactEasyCrop_Contain", w === "horizontal-cover" && "reactEasyCrop_Cover_Horizontal", w === "vertical-cover" && "reactEasyCrop_Cover_Vertical", C)
|
|
36050
36059
|
}, a, {
|
|
36051
36060
|
ref: this.videoRef,
|
|
36052
36061
|
onLoadedMetadata: this.onMediaLoad,
|
|
36053
|
-
style:
|
|
36062
|
+
style: OA(OA({}, y), { transform: s || `translate(${l}px, ${u}px) rotate(${d}deg) scale(${f})` }),
|
|
36054
36063
|
controls: !1
|
|
36055
36064
|
}), (Array.isArray(i) ? i : [{ src: i }]).map(function(e) {
|
|
36056
|
-
return n.createElement("source",
|
|
36057
|
-
})), this.state.cropSize && n.createElement("div",
|
|
36065
|
+
return n.createElement("source", OA({ key: e.src }, e));
|
|
36066
|
+
})), this.state.cropSize && n.createElement("div", OA({
|
|
36058
36067
|
ref: this.cropperRef,
|
|
36059
|
-
style:
|
|
36068
|
+
style: OA(OA({}, v), {
|
|
36060
36069
|
width: h ? Math.round(this.state.cropSize.width) : this.state.cropSize.width,
|
|
36061
36070
|
height: h ? Math.round(this.state.cropSize.height) : this.state.cropSize.height
|
|
36062
36071
|
}),
|
|
@@ -36064,14 +36073,14 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
36064
36073
|
onKeyDown: this.onKeyDown,
|
|
36065
36074
|
onKeyUp: this.onKeyUp,
|
|
36066
36075
|
"data-testid": "cropper",
|
|
36067
|
-
className:
|
|
36076
|
+
className: QA("reactEasyCrop_CropArea", p === "round" && "reactEasyCrop_CropAreaRound", m && "reactEasyCrop_CropAreaGrid", S)
|
|
36068
36077
|
}, o)));
|
|
36069
36078
|
}, t.defaultProps = {
|
|
36070
36079
|
zoom: 1,
|
|
36071
36080
|
rotation: 0,
|
|
36072
36081
|
aspect: 4 / 3,
|
|
36073
|
-
maxZoom:
|
|
36074
|
-
minZoom:
|
|
36082
|
+
maxZoom: tj,
|
|
36083
|
+
minZoom: ej,
|
|
36075
36084
|
cropShape: "rect",
|
|
36076
36085
|
objectFit: "contain",
|
|
36077
36086
|
showGrid: !0,
|
|
@@ -36082,7 +36091,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
36082
36091
|
zoomSpeed: 1,
|
|
36083
36092
|
restrictPosition: !0,
|
|
36084
36093
|
zoomWithScroll: !0,
|
|
36085
|
-
keyboardStep:
|
|
36094
|
+
keyboardStep: nj
|
|
36086
36095
|
}, t.getMousePoint = function(e) {
|
|
36087
36096
|
return {
|
|
36088
36097
|
x: Number(e.clientX),
|
|
@@ -36097,7 +36106,7 @@ var ZA = ".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left:
|
|
|
36097
36106
|
}(n.Component);
|
|
36098
36107
|
//#endregion
|
|
36099
36108
|
//#region src/images/imageCropper/ImageCropper.tsx
|
|
36100
|
-
function
|
|
36109
|
+
function ij({ imageUrl: e, fallbackImageUrl: t, onSubmit: n, onSelect: r, error: i, isLoading: a, isCompleted: o, className: s = "" }) {
|
|
36101
36110
|
let c = y(() => e && `${e}${e.includes("?") ? "&" : "?"}t=${Date.now()}`, [e]), [l, u] = x(!1), [d, f] = x(c), [p, h] = x({
|
|
36102
36111
|
x: 0,
|
|
36103
36112
|
y: 0
|
|
@@ -36105,7 +36114,7 @@ function nj({ imageUrl: e, fallbackImageUrl: t, onSubmit: n, onSelect: r, error:
|
|
|
36105
36114
|
g(() => {
|
|
36106
36115
|
o && u(!1);
|
|
36107
36116
|
}, [o]);
|
|
36108
|
-
let { inputElement: E, trigger: D } =
|
|
36117
|
+
let { inputElement: E, trigger: D } = _A({ onChange: async (e) => {
|
|
36109
36118
|
let t = e[0];
|
|
36110
36119
|
if (!t) return;
|
|
36111
36120
|
let n = await r(t);
|
|
@@ -36155,7 +36164,7 @@ function nj({ imageUrl: e, fallbackImageUrl: t, onSubmit: n, onSelect: r, error:
|
|
|
36155
36164
|
children: [
|
|
36156
36165
|
d ? /* @__PURE__ */ C("div", {
|
|
36157
36166
|
className: "relative w-full h-64",
|
|
36158
|
-
children: /* @__PURE__ */ C(
|
|
36167
|
+
children: /* @__PURE__ */ C(rj, {
|
|
36159
36168
|
image: d,
|
|
36160
36169
|
crop: p,
|
|
36161
36170
|
zoom: _,
|
|
@@ -36201,4 +36210,4 @@ function nj({ imageUrl: e, fallbackImageUrl: t, onSubmit: n, onSelect: r, error:
|
|
|
36201
36210
|
})] });
|
|
36202
36211
|
}
|
|
36203
36212
|
//#endregion
|
|
36204
|
-
export { Ga as A, Wa as ATarget, Uo as AddButton, rs as AlertWrapper,
|
|
36213
|
+
export { Ga as A, Wa as ATarget, Uo as AddButton, rs as AlertWrapper, jk as ArenaTag, ps as Autocomplete, uA as Avatar, dA as AvatarTag, fA as AvatarTimeTag, Ok as BlockTag, dk as BuddyTag, bo as Button, Mo as CacheButton, pk as CalendarTag, cA as Carousel, cs as ChatAlert, _s as CheckboxGroup, Hk as CityTag, Qa as ClickableDiv, Zo as CloseIcon, Mk as CollectionTag, so as Column, ms as CommentEditor, yk as CommentTag, Jk as CommentsSection, co as Container, dh as Coordinates, ph as CoordinatesUpdater, gk as CopyTag, _h as Copyright, Bk as CreatePostTag, mk as CreateTag, Ym as DashedLine, JE as DateDisplay, oE as DatePicker, qE as DateRange, KE as DateTimePicker, ts as Deletable, Gm as DeletableSocialMediaLink, sh as DeletableSocialMediaLinks, Go as DeleteAccountButton, hs as DuelVersus, Xo as EditIcon, es as EditableBlock, no as EmailInput, rh as ErrorBoundary, th as ErrorMessage, Nk as EventTag, gh as ExpandableContainer, uk as ExploreTag, qo as Form, Ik as GameTag, bk as GoBackTag, xk as GoForwardTag, Ka as Heading, ck as HomeTag, ij as ImageCropper, SA as ImageGrid, TA as ImageGridUpload, Rk as ImageTag, Jo as Img, ah as LazyErrorBoundary, Lk as LeaderboardTag, Gk as LikeSection, Xa as List, ho as LoadingIcon, go as LoadingIndicator, Wk as LocationPointTag, vk as LogoutTag, hk as MapTag, Pk as MarketTag, vA as MediaUpload, ak as MenuTooltip, ls as MessageAlert, Sk as MessageTag, qm as MiddleDot, zo as Modal, Ho as ModalButton, Vo as ModalItem, sE as MonthPicker, mh as MyGeolocationUpdater, fs as NavArrows, sk as Navbar, UD as NavigationControlPosition, lk as NearbyTag, fk as NewsfeedTag, ih as NotFound, ss as NotificationAlert, Jm as OrDivider, zm as OrderLabels, Vm as OrderPicker, HD as OsmMap, qa as P, ao as PasswordInput, po as PasswordSetup, Rm as Picker, zk as PollTag, Vk as PostTag, _k as PrivateTag, ys as RadioGroup, Bo as RedStar, $o as RedirectionArrowIcon, Yk as RepliesSection, Tk as ReportTag, oo as Row, Gs as SOCIAL_MEDIA_TYPES, Wo as SaveCancelButtons, ns as SearchBar, Qo as SendIcon, kk as SettingsTag, sA as ShowMore, Yo as SmartImage, uh as SocialMediaEditor, Js as SocialMediaIcon, Wm as SocialMediaLink, lh as SocialMediaLinks, Um as SocialMediaPicker, Ys as SocialMediaTag, Ya as Span, uo as StaticColumn, lo as StaticRow, Uk as StreetTag, Fo as StyledButton, Xk as SuccessMessage, Co as SvgButton, K as SvgSize, os as SvgTag, ik as SvgTooltip, us as Tabs, aA as Tag, oA as Tags, Ak as TeamTag, Xm as Text, to as TextInput, Hs as TextUpdater, Ja as Textarea, Vs as TextareaAutosize, Ws as TimeAgo, NC as TimePicker, Qk as Toaster, Ao as ToggleButton, rk as Tooltip, Fk as UserTag, Km as VerticalLine, Ks as getSocialMediaLabel };
|