@rensblitz/customer-instant-feedback-app 2.0.0 → 2.0.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import gs, { useState as
|
|
2
|
-
import { useLocation as
|
|
1
|
+
import gs, { useState as k, createContext as Va, useCallback as QA, useEffect as XA, useContext as ka } from "react";
|
|
2
|
+
import { useLocation as _a, Link as Pa, useNavigate as Vt } from "react-router-dom";
|
|
3
3
|
import { createClient as Xa } from "@supabase/supabase-js";
|
|
4
4
|
var Ct = { exports: {} }, pe = {};
|
|
5
5
|
/**
|
|
@@ -131,7 +131,7 @@ function Ya() {
|
|
|
131
131
|
function M() {
|
|
132
132
|
}
|
|
133
133
|
M.__reactDisabledLog = !0;
|
|
134
|
-
function
|
|
134
|
+
function _() {
|
|
135
135
|
{
|
|
136
136
|
if (iA === 0) {
|
|
137
137
|
AA = console.log, eA = console.info, hA = console.warn, lA = console.error, E = console.group, U = console.groupCollapsed, O = console.groupEnd;
|
|
@@ -221,7 +221,7 @@ function Ya() {
|
|
|
221
221
|
var P = Error.prepareStackTrace;
|
|
222
222
|
Error.prepareStackTrace = void 0;
|
|
223
223
|
var j;
|
|
224
|
-
j = oA.current, oA.current = null,
|
|
224
|
+
j = oA.current, oA.current = null, _();
|
|
225
225
|
try {
|
|
226
226
|
if (h) {
|
|
227
227
|
var V = function() {
|
|
@@ -279,10 +279,10 @@ function Ya() {
|
|
|
279
279
|
var oe = l ? l.displayName || l.name : "", ee = oe ? LA(oe) : "";
|
|
280
280
|
return typeof l == "function" && xA.set(l, ee), ee;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function kr(l, h, K) {
|
|
283
283
|
return Ae(l, !1);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function _r(l) {
|
|
286
286
|
var h = l.prototype;
|
|
287
287
|
return !!(h && h.isReactComponent);
|
|
288
288
|
}
|
|
@@ -290,7 +290,7 @@ function Ya() {
|
|
|
290
290
|
if (l == null)
|
|
291
291
|
return "";
|
|
292
292
|
if (typeof l == "function")
|
|
293
|
-
return Ae(l,
|
|
293
|
+
return Ae(l, _r(l));
|
|
294
294
|
if (typeof l == "string")
|
|
295
295
|
return LA(l);
|
|
296
296
|
switch (l) {
|
|
@@ -302,7 +302,7 @@ function Ya() {
|
|
|
302
302
|
if (typeof l == "object")
|
|
303
303
|
switch (l.$$typeof) {
|
|
304
304
|
case B:
|
|
305
|
-
return
|
|
305
|
+
return kr(l.render);
|
|
306
306
|
case u:
|
|
307
307
|
return Be(l.type, h, K);
|
|
308
308
|
case g: {
|
|
@@ -832,7 +832,7 @@ var Za = function(e) {
|
|
|
832
832
|
for (var A = e.length, r = [], t = 0; t < A; t += 4)
|
|
833
833
|
r.push(e[t + 3] << 24 | e[t + 2] << 16 | e[t + 1] << 8 | e[t]);
|
|
834
834
|
return r;
|
|
835
|
-
}, se = 5,
|
|
835
|
+
}, se = 5, kt = 11, jr = 2, $a = kt - se, fs = 65536 >> se, AB = 1 << se, Zr = AB - 1, eB = 1024 >> se, rB = fs + eB, tB = rB, nB = 32, sB = tB + nB, aB = 65536 >> kt, BB = 1 << $a, iB = BB - 1, wn = function(e, A, r) {
|
|
836
836
|
return e.slice ? e.slice(A, r) : new Uint16Array(Array.prototype.slice.call(e, A, r));
|
|
837
837
|
}, oB = function(e, A, r) {
|
|
838
838
|
return e.slice ? e.slice(A, r) : new Uint32Array(Array.prototype.slice.call(e, A, r));
|
|
@@ -853,7 +853,7 @@ var Za = function(e) {
|
|
|
853
853
|
if (A <= 65535)
|
|
854
854
|
return r = this.index[fs + (A - 55296 >> se)], r = (r << jr) + (A & Zr), this.data[r];
|
|
855
855
|
if (A < this.highStart)
|
|
856
|
-
return r = sB - aB + (A >>
|
|
856
|
+
return r = sB - aB + (A >> kt), r = this.index[r], r += A >> se & iB, r = this.index[r], r = (r << jr) + (A & Zr), this.data[r];
|
|
857
857
|
if (A <= 1114111)
|
|
858
858
|
return this.data[this.highValueIndex];
|
|
859
859
|
}
|
|
@@ -1013,7 +1013,7 @@ var gB = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
1013
1013
|
return { done: !0, value: null };
|
|
1014
1014
|
}
|
|
1015
1015
|
};
|
|
1016
|
-
}, KB = 1, LB = 2,
|
|
1016
|
+
}, KB = 1, LB = 2, _e = 4, Hn = 8, hr = 10, In = 47, Te = 92, xB = 9, SB = 32, Ar = 34, Ie = 61, DB = 35, TB = 36, OB = 37, er = 39, rr = 40, me = 41, RB = 95, pA = 45, MB = 33, NB = 60, GB = 62, VB = 64, kB = 91, _B = 93, PB = 61, XB = 123, tr = 63, JB = 125, mn = 124, YB = 126, WB = 128, yn = 65533, At = 42, ne = 43, jB = 44, ZB = 58, qB = 59, Ve = 46, zB = 0, $B = 8, Ai = 11, ei = 14, ri = 31, ti = 127, SA = -1, Fs = 48, ps = 97, Es = 101, ni = 102, si = 117, ai = 122, vs = 65, Hs = 69, Is = 70, Bi = 85, ii = 90, CA = function(e) {
|
|
1017
1017
|
return e >= Fs && e <= 57;
|
|
1018
1018
|
}, oi = function(e) {
|
|
1019
1019
|
return e >= 55296 && e <= 57343;
|
|
@@ -1203,13 +1203,13 @@ var gB = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
1203
1203
|
return { type: 7, value: a };
|
|
1204
1204
|
}
|
|
1205
1205
|
break;
|
|
1206
|
-
case
|
|
1206
|
+
case kB:
|
|
1207
1207
|
return xi;
|
|
1208
1208
|
case Te:
|
|
1209
1209
|
if (PA(A, this.peekCodePoint(0)))
|
|
1210
1210
|
return this.reconsumeCodePoint(A), this.consumeIdentLikeToken();
|
|
1211
1211
|
break;
|
|
1212
|
-
case
|
|
1212
|
+
case _B:
|
|
1213
1213
|
return Si;
|
|
1214
1214
|
case PB:
|
|
1215
1215
|
if (this.peekCodePoint(0) === Ie)
|
|
@@ -1325,7 +1325,7 @@ var gB = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
1325
1325
|
t++;
|
|
1326
1326
|
} while (!0);
|
|
1327
1327
|
}, e.prototype.consumeNumber = function() {
|
|
1328
|
-
var A = [], r =
|
|
1328
|
+
var A = [], r = _e, t = this.peekCodePoint(0);
|
|
1329
1329
|
for ((t === ne || t === pA) && A.push(this.consumeCodePoint()); CA(this.peekCodePoint(0)); )
|
|
1330
1330
|
A.push(this.consumeCodePoint());
|
|
1331
1331
|
t = this.peekCodePoint(0);
|
|
@@ -1473,15 +1473,15 @@ var gB = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
|
|
|
1473
1473
|
}, fA = {
|
|
1474
1474
|
type: 17,
|
|
1475
1475
|
number: 0,
|
|
1476
|
-
flags:
|
|
1477
|
-
},
|
|
1476
|
+
flags: _e
|
|
1477
|
+
}, _t = {
|
|
1478
1478
|
type: 16,
|
|
1479
1479
|
number: 50,
|
|
1480
|
-
flags:
|
|
1480
|
+
flags: _e
|
|
1481
1481
|
}, YA = {
|
|
1482
1482
|
type: 16,
|
|
1483
1483
|
number: 100,
|
|
1484
|
-
flags:
|
|
1484
|
+
flags: _e
|
|
1485
1485
|
}, xe = function(e, A, r) {
|
|
1486
1486
|
var t = e[0], n = e[1];
|
|
1487
1487
|
return [Z(t, A), Z(typeof n < "u" ? n : t, r)];
|
|
@@ -1860,7 +1860,7 @@ var xn = function(e, A) {
|
|
|
1860
1860
|
optimumDistance: n ? 1 / 0 : -1 / 0,
|
|
1861
1861
|
optimumCorner: null
|
|
1862
1862
|
}).optimumCorner;
|
|
1863
|
-
},
|
|
1863
|
+
}, ki = function(e, A, r, t, n) {
|
|
1864
1864
|
var s = 0, a = 0;
|
|
1865
1865
|
switch (e.size) {
|
|
1866
1866
|
case 0:
|
|
@@ -1887,7 +1887,7 @@ var xn = function(e, A) {
|
|
|
1887
1887
|
break;
|
|
1888
1888
|
}
|
|
1889
1889
|
return Array.isArray(e.size) && (s = Z(e.size[0], t), a = e.size.length === 2 ? Z(e.size[1], n) : s), [s, a];
|
|
1890
|
-
},
|
|
1890
|
+
}, _i = function(e, A) {
|
|
1891
1891
|
var r = mA(180), t = [];
|
|
1892
1892
|
return DA(A).forEach(function(n, s) {
|
|
1893
1893
|
if (s === 0) {
|
|
@@ -1965,7 +1965,7 @@ var xn = function(e, A) {
|
|
|
1965
1965
|
stops: t,
|
|
1966
1966
|
type: n
|
|
1967
1967
|
} : { size: a, shape: s, stops: t, position: i, type: n };
|
|
1968
|
-
}, Rs = "closest-side", Ms = "farthest-side", Ns = "closest-corner", Gs = "farthest-corner", Vs = "circle",
|
|
1968
|
+
}, Rs = "closest-side", Ms = "farthest-side", Ns = "closest-corner", Gs = "farthest-corner", Vs = "circle", ks = "ellipse", _s = "cover", Ps = "contain", Xi = function(e, A) {
|
|
1969
1969
|
var r = 0, t = 3, n = [], s = [];
|
|
1970
1970
|
return DA(A).forEach(function(a, i) {
|
|
1971
1971
|
var B = !0;
|
|
@@ -1976,7 +1976,7 @@ var xn = function(e, A) {
|
|
|
1976
1976
|
if (W(g))
|
|
1977
1977
|
switch (g.value) {
|
|
1978
1978
|
case "center":
|
|
1979
|
-
return s.push(
|
|
1979
|
+
return s.push(_t), u;
|
|
1980
1980
|
case "top":
|
|
1981
1981
|
case "left":
|
|
1982
1982
|
return s.push(fA), u;
|
|
@@ -1989,13 +1989,13 @@ var xn = function(e, A) {
|
|
|
1989
1989
|
switch (g.value) {
|
|
1990
1990
|
case Vs:
|
|
1991
1991
|
return r = 0, !1;
|
|
1992
|
-
case
|
|
1992
|
+
case ks:
|
|
1993
1993
|
return r = 1, !1;
|
|
1994
1994
|
case "at":
|
|
1995
1995
|
return o = !0, !1;
|
|
1996
1996
|
case Rs:
|
|
1997
1997
|
return t = 0, !1;
|
|
1998
|
-
case
|
|
1998
|
+
case _s:
|
|
1999
1999
|
case Ms:
|
|
2000
2000
|
return t = 1, !1;
|
|
2001
2001
|
case Ps:
|
|
@@ -2029,7 +2029,7 @@ var xn = function(e, A) {
|
|
|
2029
2029
|
if (W(u))
|
|
2030
2030
|
switch (u.value) {
|
|
2031
2031
|
case "center":
|
|
2032
|
-
return s.push(
|
|
2032
|
+
return s.push(_t), !1;
|
|
2033
2033
|
case "top":
|
|
2034
2034
|
case "left":
|
|
2035
2035
|
return s.push(fA), !1;
|
|
@@ -2045,7 +2045,7 @@ var xn = function(e, A) {
|
|
|
2045
2045
|
switch (u.value) {
|
|
2046
2046
|
case Vs:
|
|
2047
2047
|
return r = 0, !1;
|
|
2048
|
-
case
|
|
2048
|
+
case ks:
|
|
2049
2049
|
return r = 1, !1;
|
|
2050
2050
|
case Ps:
|
|
2051
2051
|
case Rs:
|
|
@@ -2054,7 +2054,7 @@ var xn = function(e, A) {
|
|
|
2054
2054
|
return t = 1, !1;
|
|
2055
2055
|
case Ns:
|
|
2056
2056
|
return t = 2, !1;
|
|
2057
|
-
case
|
|
2057
|
+
case _s:
|
|
2058
2058
|
case Gs:
|
|
2059
2059
|
return t = 3, !1;
|
|
2060
2060
|
}
|
|
@@ -2101,7 +2101,7 @@ function Wi(e) {
|
|
|
2101
2101
|
return !(e.type === 20 && e.value === "none") && (e.type !== 18 || !!Xs[e.name]);
|
|
2102
2102
|
}
|
|
2103
2103
|
var Xs = {
|
|
2104
|
-
"linear-gradient":
|
|
2104
|
+
"linear-gradient": _i,
|
|
2105
2105
|
"-moz-linear-gradient": Br,
|
|
2106
2106
|
"-ms-linear-gradient": Br,
|
|
2107
2107
|
"-o-linear-gradient": Br,
|
|
@@ -2641,7 +2641,7 @@ var Ho = {
|
|
|
2641
2641
|
return t;
|
|
2642
2642
|
});
|
|
2643
2643
|
}
|
|
2644
|
-
},
|
|
2644
|
+
}, ko = {
|
|
2645
2645
|
name: "text-transform",
|
|
2646
2646
|
initialValue: "none",
|
|
2647
2647
|
prefix: !1,
|
|
@@ -2657,7 +2657,7 @@ var Ho = {
|
|
|
2657
2657
|
}
|
|
2658
2658
|
return 0;
|
|
2659
2659
|
}
|
|
2660
|
-
},
|
|
2660
|
+
}, _o = {
|
|
2661
2661
|
name: "transform",
|
|
2662
2662
|
initialValue: "none",
|
|
2663
2663
|
prefix: !0,
|
|
@@ -2697,7 +2697,7 @@ var Ho = {
|
|
|
2697
2697
|
}, On = {
|
|
2698
2698
|
type: 16,
|
|
2699
2699
|
number: 50,
|
|
2700
|
-
flags:
|
|
2700
|
+
flags: _e
|
|
2701
2701
|
}, Yo = [On, On], Wo = {
|
|
2702
2702
|
name: "transform-origin",
|
|
2703
2703
|
initialValue: "50% 50%",
|
|
@@ -3041,7 +3041,7 @@ var Zo = {
|
|
|
3041
3041
|
var t, n;
|
|
3042
3042
|
this.animationDuration = b(A, oc, r.animationDuration), this.backgroundClip = b(A, Mi, r.backgroundClip), this.backgroundColor = b(A, Ni, r.backgroundColor), this.backgroundImage = b(A, ji, r.backgroundImage), this.backgroundOrigin = b(A, Zi, r.backgroundOrigin), this.backgroundPosition = b(A, qi, r.backgroundPosition), this.backgroundRepeat = b(A, zi, r.backgroundRepeat), this.backgroundSize = b(A, Ao, r.backgroundSize), this.borderTopColor = b(A, ro, r.borderTopColor), this.borderRightColor = b(A, to, r.borderRightColor), this.borderBottomColor = b(A, no, r.borderBottomColor), this.borderLeftColor = b(A, so, r.borderLeftColor), this.borderTopLeftRadius = b(A, ao, r.borderTopLeftRadius), this.borderTopRightRadius = b(A, Bo, r.borderTopRightRadius), this.borderBottomRightRadius = b(A, io, r.borderBottomRightRadius), this.borderBottomLeftRadius = b(A, oo, r.borderBottomLeftRadius), this.borderTopStyle = b(A, co, r.borderTopStyle), this.borderRightStyle = b(A, lo, r.borderRightStyle), this.borderBottomStyle = b(A, uo, r.borderBottomStyle), this.borderLeftStyle = b(A, go, r.borderLeftStyle), this.borderTopWidth = b(A, fo, r.borderTopWidth), this.borderRightWidth = b(A, wo, r.borderRightWidth), this.borderBottomWidth = b(A, Qo, r.borderBottomWidth), this.borderLeftWidth = b(A, Co, r.borderLeftWidth), this.boxShadow = b(A, lc, r.boxShadow), this.color = b(A, Uo, r.color), this.direction = b(A, ho, r.direction), this.display = b(A, Fo, r.display), this.float = b(A, Eo, r.cssFloat), this.fontFamily = b(A, ec, r.fontFamily), this.fontSize = b(A, rc, r.fontSize), this.fontStyle = b(A, sc, r.fontStyle), this.fontVariant = b(A, nc, r.fontVariant), this.fontWeight = b(A, tc, r.fontWeight), this.letterSpacing = b(A, vo, r.letterSpacing), this.lineBreak = b(A, Ho, r.lineBreak), this.lineHeight = b(A, Io, r.lineHeight), this.listStyleImage = b(A, mo, r.listStyleImage), this.listStylePosition = b(A, yo, r.listStylePosition), this.listStyleType = b(A, xt, r.listStyleType), this.marginTop = b(A, bo, r.marginTop), this.marginRight = b(A, Ko, r.marginRight), this.marginBottom = b(A, Lo, r.marginBottom), this.marginLeft = b(A, xo, r.marginLeft), this.opacity = b(A, zo, r.opacity);
|
|
3043
3043
|
var s = b(A, So, r.overflow);
|
|
3044
|
-
this.overflowX = s[0], this.overflowY = s[s.length > 1 ? 1 : 0], this.overflowWrap = b(A, Do, r.overflowWrap), this.paddingTop = b(A, To, r.paddingTop), this.paddingRight = b(A, Oo, r.paddingRight), this.paddingBottom = b(A, Ro, r.paddingBottom), this.paddingLeft = b(A, Mo, r.paddingLeft), this.paintOrder = b(A, uc, r.paintOrder), this.position = b(A, Go, r.position), this.textAlign = b(A, No, r.textAlign), this.textDecorationColor = b(A, $o, (t = r.textDecorationColor) !== null && t !== void 0 ? t : r.color), this.textDecorationLine = b(A, Ac, (n = r.textDecorationLine) !== null && n !== void 0 ? n : r.textDecoration), this.textShadow = b(A, Vo, r.textShadow), this.textTransform = b(A,
|
|
3044
|
+
this.overflowX = s[0], this.overflowY = s[s.length > 1 ? 1 : 0], this.overflowWrap = b(A, Do, r.overflowWrap), this.paddingTop = b(A, To, r.paddingTop), this.paddingRight = b(A, Oo, r.paddingRight), this.paddingBottom = b(A, Ro, r.paddingBottom), this.paddingLeft = b(A, Mo, r.paddingLeft), this.paintOrder = b(A, uc, r.paintOrder), this.position = b(A, Go, r.position), this.textAlign = b(A, No, r.textAlign), this.textDecorationColor = b(A, $o, (t = r.textDecorationColor) !== null && t !== void 0 ? t : r.color), this.textDecorationLine = b(A, Ac, (n = r.textDecorationLine) !== null && n !== void 0 ? n : r.textDecoration), this.textShadow = b(A, Vo, r.textShadow), this.textTransform = b(A, ko, r.textTransform), this.transform = b(A, _o, r.transform), this.transformOrigin = b(A, Wo, r.transformOrigin), this.visibility = b(A, jo, r.visibility), this.webkitTextStrokeColor = b(A, gc, r.webkitTextStrokeColor), this.webkitTextStrokeWidth = b(A, fc, r.webkitTextStrokeWidth), this.wordBreak = b(A, Zo, r.wordBreak), this.zIndex = b(A, qo, r.zIndex);
|
|
3045
3045
|
}
|
|
3046
3046
|
return e.prototype.isVisible = function() {
|
|
3047
3047
|
return this.display > 0 && this.opacity > 0 && this.visibility === 0;
|
|
@@ -3218,7 +3218,7 @@ var hc = function(e) {
|
|
|
3218
3218
|
), Vn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Oc = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
3219
3219
|
for (var cr = 0; cr < Vn.length; cr++)
|
|
3220
3220
|
Oc[Vn.charCodeAt(cr)] = cr;
|
|
3221
|
-
var Rc = 1, st = 2, at = 3,
|
|
3221
|
+
var Rc = 1, st = 2, at = 3, kn = 4, _n = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn = 11, Jn = 12, Yn = 13, Wn = 14, ot = 15, Nc = function(e) {
|
|
3222
3222
|
for (var A = [], r = 0, t = e.length; r < t; ) {
|
|
3223
3223
|
var n = e.charCodeAt(r++);
|
|
3224
3224
|
if (n >= 55296 && n <= 56319 && r < t) {
|
|
@@ -3241,18 +3241,18 @@ var Rc = 1, st = 2, at = 3, _n = 4, kn = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn
|
|
|
3241
3241
|
a <= 65535 ? t.push(a) : (a -= 65536, t.push((a >> 10) + 55296, a % 1024 + 56320)), (n + 1 === r || t.length > 16384) && (s += String.fromCharCode.apply(String, t), t.length = 0);
|
|
3242
3242
|
}
|
|
3243
3243
|
return s;
|
|
3244
|
-
}, Vc = Dc(Uc), HA = "×", ct = "÷",
|
|
3244
|
+
}, Vc = Dc(Uc), HA = "×", ct = "÷", kc = function(e) {
|
|
3245
3245
|
return Vc.get(e);
|
|
3246
|
-
},
|
|
3246
|
+
}, _c = function(e, A, r) {
|
|
3247
3247
|
var t = r - 2, n = A[t], s = A[r - 1], a = A[r];
|
|
3248
3248
|
if (s === st && a === at)
|
|
3249
3249
|
return HA;
|
|
3250
|
-
if (s === st || s === at || s ===
|
|
3250
|
+
if (s === st || s === at || s === kn || a === st || a === at || a === kn)
|
|
3251
3251
|
return ct;
|
|
3252
|
-
if (s === Pn && [Pn, Bt, Xn, Jn].indexOf(a) !== -1 || (s === Xn || s === Bt) && (a === Bt || a === it) || (s === Jn || s === it) && a === it || a === Yn || a ===
|
|
3252
|
+
if (s === Pn && [Pn, Bt, Xn, Jn].indexOf(a) !== -1 || (s === Xn || s === Bt) && (a === Bt || a === it) || (s === Jn || s === it) && a === it || a === Yn || a === _n || a === Mc || s === Rc)
|
|
3253
3253
|
return HA;
|
|
3254
3254
|
if (s === Yn && a === Wn) {
|
|
3255
|
-
for (; n ===
|
|
3255
|
+
for (; n === _n; )
|
|
3256
3256
|
n = A[--t];
|
|
3257
3257
|
if (n === Wn)
|
|
3258
3258
|
return HA;
|
|
@@ -3265,12 +3265,12 @@ var Rc = 1, st = 2, at = 3, _n = 4, kn = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn
|
|
|
3265
3265
|
}
|
|
3266
3266
|
return ct;
|
|
3267
3267
|
}, Pc = function(e) {
|
|
3268
|
-
var A = Nc(e), r = A.length, t = 0, n = 0, s = A.map(
|
|
3268
|
+
var A = Nc(e), r = A.length, t = 0, n = 0, s = A.map(kc);
|
|
3269
3269
|
return {
|
|
3270
3270
|
next: function() {
|
|
3271
3271
|
if (t >= r)
|
|
3272
3272
|
return { done: !0, value: null };
|
|
3273
|
-
for (var a = HA; t < r && (a =
|
|
3273
|
+
for (var a = HA; t < r && (a = _c(A, s, ++t)) === HA; )
|
|
3274
3274
|
;
|
|
3275
3275
|
if (a !== HA || t === r) {
|
|
3276
3276
|
var i = Gc.apply(null, A.slice(n, t));
|
|
@@ -3956,7 +3956,7 @@ var Rc = 1, st = 2, at = 3, _n = 4, kn = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn
|
|
|
3956
3956
|
"ა"
|
|
3957
3957
|
]
|
|
3958
3958
|
}, ge = function(e, A, r, t, n, s) {
|
|
3959
|
-
return e < A || e > r ?
|
|
3959
|
+
return e < A || e > r ? ke(e, n, s.length > 0) : t.integers.reduce(function(a, i, B) {
|
|
3960
3960
|
for (; e >= i; )
|
|
3961
3961
|
e -= i, a += t.values[B];
|
|
3962
3962
|
return a;
|
|
@@ -3978,18 +3978,18 @@ var Rc = 1, st = 2, at = 3, _n = 4, kn = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn
|
|
|
3978
3978
|
return ia(Math.abs(e), t, !1, function(n) {
|
|
3979
3979
|
return A[Math.floor(n % t)];
|
|
3980
3980
|
}) + r;
|
|
3981
|
-
}, Qe = 1,
|
|
3981
|
+
}, Qe = 1, kA = 2, _A = 4, De = 8, RA = function(e, A, r, t, n, s) {
|
|
3982
3982
|
if (e < -9999 || e > 9999)
|
|
3983
|
-
return
|
|
3983
|
+
return ke(e, 4, n.length > 0);
|
|
3984
3984
|
var a = Math.abs(e), i = n;
|
|
3985
3985
|
if (a === 0)
|
|
3986
3986
|
return A[0] + i;
|
|
3987
3987
|
for (var B = 0; a > 0 && B <= 4; B++) {
|
|
3988
3988
|
var o = a % 10;
|
|
3989
|
-
o === 0 && BA(s, Qe) && i !== "" ? i = A[o] + i : o > 1 || o === 1 && B === 0 || o === 1 && B === 1 && BA(s,
|
|
3989
|
+
o === 0 && BA(s, Qe) && i !== "" ? i = A[o] + i : o > 1 || o === 1 && B === 0 || o === 1 && B === 1 && BA(s, kA) || o === 1 && B === 1 && BA(s, _A) && e > 100 || o === 1 && B > 1 && BA(s, De) ? i = A[o] + (B > 0 ? r[B - 1] : "") + i : o === 1 && B > 0 && (i = r[B - 1] + i), a = Math.floor(a / 10);
|
|
3990
3990
|
}
|
|
3991
3991
|
return (e < 0 ? t : "") + i;
|
|
3992
|
-
}, ns = "十百千萬", ss = "拾佰仟萬", as = "マイナス", lt = "마이너스",
|
|
3992
|
+
}, ns = "十百千萬", ss = "拾佰仟萬", as = "マイナス", lt = "마이너스", ke = function(e, A, r) {
|
|
3993
3993
|
var t = r ? ". " : "", n = r ? "、" : "", s = r ? ", " : "", a = r ? " " : "";
|
|
3994
3994
|
switch (A) {
|
|
3995
3995
|
case 0:
|
|
@@ -4031,23 +4031,23 @@ var Rc = 1, st = 2, at = 3, _n = 4, kn = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn
|
|
|
4031
4031
|
return re(e, "甲乙丙丁戊己庚辛壬癸", n);
|
|
4032
4032
|
case 17:
|
|
4033
4033
|
case 48:
|
|
4034
|
-
return RA(e, "零一二三四五六七八九", ns, "負", n,
|
|
4034
|
+
return RA(e, "零一二三四五六七八九", ns, "負", n, kA | _A | De);
|
|
4035
4035
|
case 47:
|
|
4036
|
-
return RA(e, "零壹貳參肆伍陸柒捌玖", ss, "負", n, Qe |
|
|
4036
|
+
return RA(e, "零壹貳參肆伍陸柒捌玖", ss, "負", n, Qe | kA | _A | De);
|
|
4037
4037
|
case 42:
|
|
4038
|
-
return RA(e, "零一二三四五六七八九", ns, "负", n,
|
|
4038
|
+
return RA(e, "零一二三四五六七八九", ns, "负", n, kA | _A | De);
|
|
4039
4039
|
case 41:
|
|
4040
|
-
return RA(e, "零壹贰叁肆伍陆柒捌玖", ss, "负", n, Qe |
|
|
4040
|
+
return RA(e, "零壹贰叁肆伍陆柒捌玖", ss, "负", n, Qe | kA | _A | De);
|
|
4041
4041
|
case 26:
|
|
4042
4042
|
return RA(e, "〇一二三四五六七八九", "十百千万", as, n, 0);
|
|
4043
4043
|
case 25:
|
|
4044
|
-
return RA(e, "零壱弐参四伍六七八九", "拾百千万", as, n, Qe |
|
|
4044
|
+
return RA(e, "零壱弐参四伍六七八九", "拾百千万", as, n, Qe | kA | _A);
|
|
4045
4045
|
case 31:
|
|
4046
|
-
return RA(e, "영일이삼사오육칠팔구", "십백천만", lt, s, Qe |
|
|
4046
|
+
return RA(e, "영일이삼사오육칠팔구", "십백천만", lt, s, Qe | kA | _A);
|
|
4047
4047
|
case 33:
|
|
4048
4048
|
return RA(e, "零一二三四五六七八九", "十百千萬", lt, s, 0);
|
|
4049
4049
|
case 32:
|
|
4050
|
-
return RA(e, "零壹貳參四五六七八九", "拾百千", lt, s, Qe |
|
|
4050
|
+
return RA(e, "零壹貳參四五六七八九", "拾百千", lt, s, Qe | kA | _A);
|
|
4051
4051
|
case 18:
|
|
4052
4052
|
return tA(e, 2406, 2415, !0, t);
|
|
4053
4053
|
case 20:
|
|
@@ -4248,13 +4248,13 @@ var Rc = 1, st = 2, at = 3, _n = 4, kn = 5, Mc = 7, Pn = 8, Bt = 9, it = 10, Xn
|
|
|
4248
4248
|
var Q = u.values.filter(he), C = Q[0], L = Q[1];
|
|
4249
4249
|
if (C && W(C)) {
|
|
4250
4250
|
var F = s.counters.getCounterValue(C.value), p = L && W(L) ? xt.parse(s.context, L.value) : 3;
|
|
4251
|
-
o.appendChild(i.createTextNode(
|
|
4251
|
+
o.appendChild(i.createTextNode(ke(F, p, !1)));
|
|
4252
4252
|
}
|
|
4253
4253
|
} else if (u.name === "counters") {
|
|
4254
4254
|
var I = u.values.filter(he), C = I[0], y = I[1], L = I[2];
|
|
4255
4255
|
if (C && W(C)) {
|
|
4256
4256
|
var m = s.counters.getCounterValues(C.value), d = L && W(L) ? xt.parse(s.context, L.value) : 3, S = y && y.type === 0 ? y.value : "", x = m.map(function(J) {
|
|
4257
|
-
return
|
|
4257
|
+
return ke(J, d, !1);
|
|
4258
4258
|
}).join(S);
|
|
4259
4259
|
o.appendChild(i.createTextNode(x));
|
|
4260
4260
|
}
|
|
@@ -4436,14 +4436,14 @@ var vl = function(e, A) {
|
|
|
4436
4436
|
}, e;
|
|
4437
4437
|
}()
|
|
4438
4438
|
), Rl = /^data:image\/svg\+xml/i, Ml = /^data:image\/.*;base64,/i, Nl = /^data:image\/.*/i, Gl = function(e) {
|
|
4439
|
-
return gA.SUPPORT_SVG_DRAWING || !
|
|
4439
|
+
return gA.SUPPORT_SVG_DRAWING || !kl(e);
|
|
4440
4440
|
}, gt = function(e) {
|
|
4441
4441
|
return Nl.test(e);
|
|
4442
4442
|
}, Vl = function(e) {
|
|
4443
4443
|
return Ml.test(e);
|
|
4444
4444
|
}, ft = function(e) {
|
|
4445
4445
|
return e.substr(0, 4) === "blob";
|
|
4446
|
-
},
|
|
4446
|
+
}, kl = function(e) {
|
|
4447
4447
|
return e.substr(-3).toLowerCase() === "svg" || Rl.test(e);
|
|
4448
4448
|
}, H = (
|
|
4449
4449
|
/** @class */
|
|
@@ -4474,7 +4474,7 @@ var vl = function(e, A) {
|
|
|
4474
4474
|
}()
|
|
4475
4475
|
), IA = function(e) {
|
|
4476
4476
|
return e.type === 1;
|
|
4477
|
-
},
|
|
4477
|
+
}, _l = (
|
|
4478
4478
|
/** @class */
|
|
4479
4479
|
/* @__PURE__ */ function() {
|
|
4480
4480
|
function e(A) {
|
|
@@ -4580,7 +4580,7 @@ var z = function(e, A, r, t, n) {
|
|
|
4580
4580
|
/** @class */
|
|
4581
4581
|
function() {
|
|
4582
4582
|
function e(A, r) {
|
|
4583
|
-
if (this.container = A, this.parent = r, this.effects = [], this.curves = new
|
|
4583
|
+
if (this.container = A, this.parent = r, this.effects = [], this.curves = new _l(this.container), this.container.styles.opacity < 1 && this.effects.push(new Jl(this.container.styles.opacity)), this.container.styles.transform !== null) {
|
|
4584
4584
|
var t = this.container.bounds.left + this.container.styles.transformOrigin[0].number, n = this.container.bounds.top + this.container.styles.transformOrigin[1].number, s = this.container.styles.transform;
|
|
4585
4585
|
this.effects.push(new Xl(t, n, s));
|
|
4586
4586
|
}
|
|
@@ -4683,7 +4683,7 @@ var z = function(e, A, r, t, n) {
|
|
|
4683
4683
|
}, fa = function(e, A) {
|
|
4684
4684
|
for (var r = e instanceof Tt ? e.start : 1, t = e instanceof Tt ? e.reversed : !1, n = 0; n < A.length; n++) {
|
|
4685
4685
|
var s = A[n];
|
|
4686
|
-
s.container instanceof qs && typeof s.container.value == "number" && s.container.value !== 0 && (r = s.container.value), s.listValue =
|
|
4686
|
+
s.container instanceof qs && typeof s.container.value == "number" && s.container.value !== 0 && (r = s.container.value), s.listValue = ke(r, s.container.styles.listStyleType, !0), r += t ? -1 : 1;
|
|
4687
4687
|
}
|
|
4688
4688
|
}, Zl = function(e) {
|
|
4689
4689
|
var A = new ga(e, null), r = new ua(A), t = [];
|
|
@@ -5177,7 +5177,7 @@ var z = function(e, A, r, t, n) {
|
|
|
5177
5177
|
switch (o.label) {
|
|
5178
5178
|
case 0:
|
|
5179
5179
|
t = r.styles.backgroundImage.length - 1, n = function(c) {
|
|
5180
|
-
var u, g, w, R, AA, eA, D, Y, x, Q, R, AA, eA, D, Y, C, L, F, p, I, y, m, d, S, x, v, R, J, $, D, Y, iA, AA, eA, hA, lA, E, U, O, M,
|
|
5180
|
+
var u, g, w, R, AA, eA, D, Y, x, Q, R, AA, eA, D, Y, C, L, F, p, I, y, m, d, S, x, v, R, J, $, D, Y, iA, AA, eA, hA, lA, E, U, O, M, _, q;
|
|
5181
5181
|
return wA(this, function(oA) {
|
|
5182
5182
|
switch (oA.label) {
|
|
5183
5183
|
case 0:
|
|
@@ -5202,9 +5202,9 @@ var z = function(e, A, r, t, n) {
|
|
|
5202
5202
|
null,
|
|
5203
5203
|
null,
|
|
5204
5204
|
null
|
|
5205
|
-
]), R = v[0], J = v[1], $ = v[2], D = v[3], Y = v[4], iA = c.position.length === 0 ? [
|
|
5205
|
+
]), R = v[0], J = v[1], $ = v[2], D = v[3], Y = v[4], iA = c.position.length === 0 ? [_t] : c.position, AA = Z(iA[0], D), eA = Z(iA[iA.length - 1], Y), hA = ki(c, AA, eA, D, Y), lA = hA[0], E = hA[1], lA > 0 && E > 0 && (U = s.ctx.createRadialGradient(J + AA, $ + eA, 0, J + AA, $ + eA, lA), Sn(c.stops, lA * 2).forEach(function(uA) {
|
|
5206
5206
|
return U.addColorStop(uA.stop, cA(uA.color));
|
|
5207
|
-
}), s.path(R), s.ctx.fillStyle = U, lA !== E ? (O = r.bounds.left + 0.5 * r.bounds.width, M = r.bounds.top + 0.5 * r.bounds.height,
|
|
5207
|
+
}), s.path(R), s.ctx.fillStyle = U, lA !== E ? (O = r.bounds.left + 0.5 * r.bounds.width, M = r.bounds.top + 0.5 * r.bounds.height, _ = E / lA, q = 1 / _, s.ctx.save(), s.ctx.translate(O, M), s.ctx.transform(1, 0, 0, _, 0, 0), s.ctx.translate(-O, -M), s.ctx.fillRect(J, q * ($ - M) + M, D, Y * q), s.ctx.restore()) : s.ctx.fill())), oA.label = 6;
|
|
5208
5208
|
case 6:
|
|
5209
5209
|
return t--, [
|
|
5210
5210
|
2
|
|
@@ -5442,7 +5442,7 @@ var z = function(e, A, r, t, n) {
|
|
|
5442
5442
|
typeof window < "u" && ca.setContext(window);
|
|
5443
5443
|
var du = function(e, A) {
|
|
5444
5444
|
return UA(void 0, void 0, void 0, function() {
|
|
5445
|
-
var r, t, n, s, a, i, B, o, c, u, g, w, Q, C, L, F, p, I, y, m, S, d, S, x, v, R, J, $, D, Y, iA, AA, eA, hA, lA, E, U, O, M,
|
|
5445
|
+
var r, t, n, s, a, i, B, o, c, u, g, w, Q, C, L, F, p, I, y, m, S, d, S, x, v, R, J, $, D, Y, iA, AA, eA, hA, lA, E, U, O, M, _;
|
|
5446
5446
|
return wA(this, function(q) {
|
|
5447
5447
|
switch (q.label) {
|
|
5448
5448
|
case 0:
|
|
@@ -5486,7 +5486,7 @@ var du = function(e, A) {
|
|
|
5486
5486
|
case 4:
|
|
5487
5487
|
m = q.sent(), q.label = 5;
|
|
5488
5488
|
case 5:
|
|
5489
|
-
return (!((
|
|
5489
|
+
return (!((_ = A.removeContainer) !== null && _ !== void 0) || _) && (Bs.destroy(w) || B.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), B.logger.debug("Finished rendering"), [2, m];
|
|
5490
5490
|
}
|
|
5491
5491
|
});
|
|
5492
5492
|
});
|
|
@@ -5657,7 +5657,7 @@ function Ku({
|
|
|
5657
5657
|
onSave: s,
|
|
5658
5658
|
onDelete: a
|
|
5659
5659
|
}) {
|
|
5660
|
-
const [i, B] =
|
|
5660
|
+
const [i, B] = k((r == null ? void 0 : r.comment) || ""), [o, c] = k((r == null ? void 0 : r.category) || "Bug"), [u, g] = k(null), w = !!r, Q = () => {
|
|
5661
5661
|
if (!i.trim()) {
|
|
5662
5662
|
g("Comment is required");
|
|
5663
5663
|
return;
|
|
@@ -5839,11 +5839,19 @@ function Ca(e) {
|
|
|
5839
5839
|
const Ur = "feedback_items", xu = "https://ubrdhrngfvwlkuhdireh.supabase.co", Su = "sb_publishable_e81HvMlbF_TXeB5NUSao6w_9_ZK5EIl";
|
|
5840
5840
|
let Qt = null;
|
|
5841
5841
|
function MA() {
|
|
5842
|
-
return Qt || (Qt = Xa(xu, Su
|
|
5842
|
+
return Qt || (Qt = Xa(xu, Su, {
|
|
5843
|
+
auth: {
|
|
5844
|
+
// Use a custom storage key to avoid conflicts with host app's Supabase client
|
|
5845
|
+
// This isolates the feedback library's auth storage from the host app's storage
|
|
5846
|
+
storageKey: "feedback-supabase-auth-token",
|
|
5847
|
+
autoRefreshToken: !0,
|
|
5848
|
+
persistSession: !0
|
|
5849
|
+
}
|
|
5850
|
+
})), Qt;
|
|
5843
5851
|
}
|
|
5844
5852
|
const da = Va(null);
|
|
5845
5853
|
function Nu({ children: e }) {
|
|
5846
|
-
const [A, r] =
|
|
5854
|
+
const [A, r] = k(null), [t, n] = k(null), [s, a] = k(!1), [i, B] = k(!1), [o, c] = k([]), [u, g] = k(!0), w = MA(), Q = QA(async (y) => {
|
|
5847
5855
|
const { data: m } = await w.from("admins").select("id").eq("user_id", y).maybeSingle();
|
|
5848
5856
|
return !!m;
|
|
5849
5857
|
}, [w]), C = QA(async (y) => {
|
|
@@ -5865,12 +5873,24 @@ function Nu({ children: e }) {
|
|
|
5865
5873
|
}, [Q, C]);
|
|
5866
5874
|
XA(() => {
|
|
5867
5875
|
(async () => {
|
|
5868
|
-
|
|
5869
|
-
|
|
5876
|
+
try {
|
|
5877
|
+
const { data: { session: d }, error: S } = await w.auth.getSession();
|
|
5878
|
+
if (S) {
|
|
5879
|
+
console.error("[Feedback] Error getting session:", S), g(!1);
|
|
5880
|
+
return;
|
|
5881
|
+
}
|
|
5882
|
+
r(d), await L((d == null ? void 0 : d.user) ?? null);
|
|
5883
|
+
} catch (d) {
|
|
5884
|
+
console.error("[Feedback] Error initializing session:", d), g(!1);
|
|
5885
|
+
}
|
|
5870
5886
|
})();
|
|
5871
5887
|
const { data: { subscription: m } } = w.auth.onAuthStateChange(
|
|
5872
5888
|
async (d, S) => {
|
|
5873
|
-
|
|
5889
|
+
try {
|
|
5890
|
+
r(S), await L((S == null ? void 0 : S.user) ?? null);
|
|
5891
|
+
} catch (x) {
|
|
5892
|
+
console.error("[Feedback] Error handling auth state change:", x);
|
|
5893
|
+
}
|
|
5874
5894
|
}
|
|
5875
5895
|
);
|
|
5876
5896
|
return () => m.unsubscribe();
|
|
@@ -5888,7 +5908,7 @@ function Nu({ children: e }) {
|
|
|
5888
5908
|
return /* @__PURE__ */ f.jsx(da.Provider, { value: I, children: e });
|
|
5889
5909
|
}
|
|
5890
5910
|
function Vr() {
|
|
5891
|
-
const e =
|
|
5911
|
+
const e = ka(da);
|
|
5892
5912
|
if (!e)
|
|
5893
5913
|
throw new Error("useFeedbackAuth must be used within FeedbackAuthProvider");
|
|
5894
5914
|
return e;
|
|
@@ -5996,7 +6016,7 @@ function Gu({
|
|
|
5996
6016
|
feedbackReviewPath: s = "/feedback"
|
|
5997
6017
|
}) {
|
|
5998
6018
|
var E;
|
|
5999
|
-
const { user: a, hasAccessToProject: i, getReviewerProject: B, loading: o } = Vr(), [c, u] =
|
|
6019
|
+
const { user: a, hasAccessToProject: i, getReviewerProject: B, loading: o } = Vr(), [c, u] = k(!1), [g, w] = k(null), [Q, C] = k(null), [L, F] = k(null), [p, I] = k([]), [y, m] = k({ x: 0, y: 0 }), d = _a(), S = (a == null ? void 0 : a.email) ?? ((E = a == null ? void 0 : a.user_metadata) == null ? void 0 : E.name) ?? null, x = A ? B(A) : void 0, v = !!(A && !o && a && i(A));
|
|
6000
6020
|
XA(() => {
|
|
6001
6021
|
const U = () => {
|
|
6002
6022
|
m({ x: window.scrollX, y: window.scrollY });
|
|
@@ -6007,9 +6027,9 @@ function Gu({
|
|
|
6007
6027
|
if (!t || t <= 0) return !0;
|
|
6008
6028
|
const U = localStorage.getItem("feedback_last_submission");
|
|
6009
6029
|
if (U) {
|
|
6010
|
-
const O = parseInt(U, 10),
|
|
6011
|
-
if (
|
|
6012
|
-
return alert(`Please wait ${Math.ceil(t -
|
|
6030
|
+
const O = parseInt(U, 10), _ = (Date.now() - O) / 1e3;
|
|
6031
|
+
if (_ < t)
|
|
6032
|
+
return alert(`Please wait ${Math.ceil(t - _)} seconds before submitting again.`), !1;
|
|
6013
6033
|
}
|
|
6014
6034
|
return !0;
|
|
6015
6035
|
}, [t]), J = QA(async () => {
|
|
@@ -6022,8 +6042,8 @@ function Gu({
|
|
|
6022
6042
|
return;
|
|
6023
6043
|
}
|
|
6024
6044
|
if (O) {
|
|
6025
|
-
const
|
|
6026
|
-
I(
|
|
6045
|
+
const _ = O.map(Ca);
|
|
6046
|
+
I(_);
|
|
6027
6047
|
}
|
|
6028
6048
|
} catch (O) {
|
|
6029
6049
|
console.error("[Feedback] Error loading items:", O);
|
|
@@ -6058,14 +6078,14 @@ function Gu({
|
|
|
6058
6078
|
if (M.closest(".feedback-toggle") || M.closest(".feedback-modal") || M.closest(".feedback-marker") || M.closest(".feedback-user-modal") || M.closest(".feedback-overlay-backdrop"))
|
|
6059
6079
|
return;
|
|
6060
6080
|
O.preventDefault(), O.stopPropagation();
|
|
6061
|
-
const
|
|
6081
|
+
const _ = O.clientX, q = O.clientY, oA = window.scrollX, uA = window.scrollY, LA = _ + oA, zA = q + uA, xA = window.innerWidth, $A = window.innerHeight, Ae = mu(_, q), kr = Ae ? hu(Ae) : null, _r = Ae ? Iu(Ae) : null;
|
|
6062
6082
|
(async () => {
|
|
6063
|
-
const Be = await Du(
|
|
6064
|
-
x:
|
|
6083
|
+
const Be = await Du(_, q), VA = {
|
|
6084
|
+
x: _,
|
|
6065
6085
|
y: q,
|
|
6066
6086
|
pageX: LA,
|
|
6067
6087
|
pageY: zA,
|
|
6068
|
-
xNorm:
|
|
6088
|
+
xNorm: _ / xA,
|
|
6069
6089
|
yNorm: q / $A,
|
|
6070
6090
|
viewportW: xA,
|
|
6071
6091
|
viewportH: $A,
|
|
@@ -6073,8 +6093,8 @@ function Gu({
|
|
|
6073
6093
|
scrollY: uA,
|
|
6074
6094
|
route: d.pathname + d.search,
|
|
6075
6095
|
title: document.title,
|
|
6076
|
-
domHint:
|
|
6077
|
-
selectorHint:
|
|
6096
|
+
domHint: kr,
|
|
6097
|
+
selectorHint: _r,
|
|
6078
6098
|
screenshot: Be
|
|
6079
6099
|
};
|
|
6080
6100
|
console.log("[Feedback] Click captured with screenshot:", VA.screenshot ? "yes" : "no"), w(VA), C(null);
|
|
@@ -6092,14 +6112,14 @@ function Gu({
|
|
|
6092
6112
|
reviewerId: x.reviewerId
|
|
6093
6113
|
}, M = MA();
|
|
6094
6114
|
try {
|
|
6095
|
-
const
|
|
6115
|
+
const _ = Lu(O), { error: q } = await M.from(Ur).upsert(_);
|
|
6096
6116
|
if (q) {
|
|
6097
6117
|
console.error("[Feedback] Failed to save to Supabase:", q), alert("Failed to save feedback. Please try again.");
|
|
6098
6118
|
return;
|
|
6099
6119
|
}
|
|
6100
6120
|
localStorage.setItem("feedback_last_submission", Date.now().toString());
|
|
6101
|
-
} catch (
|
|
6102
|
-
console.error("[Feedback] Error saving item:",
|
|
6121
|
+
} catch (_) {
|
|
6122
|
+
console.error("[Feedback] Error saving item:", _);
|
|
6103
6123
|
return;
|
|
6104
6124
|
}
|
|
6105
6125
|
w(null), C(null), J();
|
|
@@ -6117,8 +6137,8 @@ function Gu({
|
|
|
6117
6137
|
}
|
|
6118
6138
|
w(null), C(null), J();
|
|
6119
6139
|
}, [J]), hA = (U) => {
|
|
6120
|
-
const O = window.innerWidth, M = window.innerHeight,
|
|
6121
|
-
x: oA -
|
|
6140
|
+
const O = window.innerWidth, M = window.innerHeight, _ = window.scrollX, q = window.scrollY, oA = U.pageX ?? U.xNorm * O + (U.scrollX ?? 0), uA = U.pageY ?? U.yNorm * M + (U.scrollY ?? 0), LA = {
|
|
6141
|
+
x: oA - _,
|
|
6122
6142
|
y: uA - q,
|
|
6123
6143
|
pageX: oA,
|
|
6124
6144
|
pageY: uA,
|
|
@@ -6177,7 +6197,7 @@ function Gu({
|
|
|
6177
6197
|
] }),
|
|
6178
6198
|
v && c && $.map((U) => {
|
|
6179
6199
|
var xA, $A;
|
|
6180
|
-
const O = U.userName || "Anonymous", M = (Q == null ? void 0 : Q.id) === U.id || (L == null ? void 0 : L.id) === U.id,
|
|
6200
|
+
const O = U.userName || "Anonymous", M = (Q == null ? void 0 : Q.id) === U.id || (L == null ? void 0 : L.id) === U.id, _ = window.innerWidth, q = window.innerHeight, oA = U.pageX ?? U.xNorm * _ + (U.scrollX ?? 0), uA = U.pageY ?? U.yNorm * q + (U.scrollY ?? 0), LA = oA - y.x, zA = uA - y.y;
|
|
6181
6201
|
return /* @__PURE__ */ f.jsx(
|
|
6182
6202
|
"div",
|
|
6183
6203
|
{
|
|
@@ -6227,7 +6247,7 @@ function Gu({
|
|
|
6227
6247
|
] }) : /* @__PURE__ */ f.jsx(f.Fragment, { children: e });
|
|
6228
6248
|
}
|
|
6229
6249
|
function Vu() {
|
|
6230
|
-
const [e, A] =
|
|
6250
|
+
const [e, A] = k(""), [r, t] = k(""), [n, s] = k(null), [a, i] = k(!1), B = Vt(), { user: o } = Vr();
|
|
6231
6251
|
if (o)
|
|
6232
6252
|
return B("/", { replace: !0 }), null;
|
|
6233
6253
|
const c = async (u) => {
|
|
@@ -6297,8 +6317,8 @@ function Vu() {
|
|
|
6297
6317
|
] })
|
|
6298
6318
|
] }) });
|
|
6299
6319
|
}
|
|
6300
|
-
function
|
|
6301
|
-
const e = Vt(), { user: A, isAdmin: r, loading: t } = Vr(), [n, s] =
|
|
6320
|
+
function ku() {
|
|
6321
|
+
const e = Vt(), { user: A, isAdmin: r, loading: t } = Vr(), [n, s] = k([]), [a, i] = k([]), [B, o] = k([]), [c, u] = k(""), [g, w] = k(""), [Q, C] = k(""), [L, F] = k(""), [p, I] = k(""), [y, m] = k(""), [d, S] = k(""), [x, v] = k(null), R = MA(), J = QA(async () => {
|
|
6302
6322
|
const { data: E } = await R.from("companies").select("id, name").order("name");
|
|
6303
6323
|
s(E ?? []);
|
|
6304
6324
|
}, [R]), $ = QA(async () => {
|
|
@@ -6372,12 +6392,12 @@ function _u() {
|
|
|
6372
6392
|
access_token: E.access_token,
|
|
6373
6393
|
refresh_token: E.refresh_token
|
|
6374
6394
|
});
|
|
6375
|
-
const { error:
|
|
6395
|
+
const { error: _ } = await R.from("reviewers").insert({
|
|
6376
6396
|
user_id: M,
|
|
6377
6397
|
project_id: d
|
|
6378
6398
|
});
|
|
6379
|
-
if (
|
|
6380
|
-
v(
|
|
6399
|
+
if (_) {
|
|
6400
|
+
v(_.message);
|
|
6381
6401
|
return;
|
|
6382
6402
|
}
|
|
6383
6403
|
I(""), m(""), D();
|
|
@@ -6553,8 +6573,8 @@ const us = {
|
|
|
6553
6573
|
Content: "#8b5cf6",
|
|
6554
6574
|
Other: "#6b7280"
|
|
6555
6575
|
};
|
|
6556
|
-
function
|
|
6557
|
-
const A = Vt(), { user: r, hasAccessToProject: t, getReviewerProject: n, isAdmin: s, loading: a } = Vr(), [i, B] =
|
|
6576
|
+
function _u({ projectId: e }) {
|
|
6577
|
+
const A = Vt(), { user: r, hasAccessToProject: t, getReviewerProject: n, isAdmin: s, loading: a } = Vr(), [i, B] = k([]), [o, c] = k(!0), [u, g] = k(null), w = e ? n(e) : void 0, Q = (w == null ? void 0 : w.projectUuid) ?? u, C = !!(e && r && (t(e) || s)), L = QA(async () => {
|
|
6558
6578
|
if (!Q) return;
|
|
6559
6579
|
const I = MA(), { data: y, error: m } = await I.from(Ur).select("*").eq("project_id", Q).order("created_at", { ascending: !1 });
|
|
6560
6580
|
m ? (console.error("[Feedback] Failed to load review items:", m), B([])) : B((y ?? []).map((d) => Ca(d))), c(!1);
|
|
@@ -6638,11 +6658,11 @@ function ku({ projectId: e }) {
|
|
|
6638
6658
|
] }) });
|
|
6639
6659
|
}
|
|
6640
6660
|
export {
|
|
6641
|
-
|
|
6661
|
+
ku as FeedbackAdminPage,
|
|
6642
6662
|
Nu as FeedbackAuthProvider,
|
|
6643
6663
|
Vu as FeedbackLoginPage,
|
|
6644
6664
|
Gu as FeedbackProvider,
|
|
6645
|
-
|
|
6665
|
+
_u as FeedbackReviewPage,
|
|
6646
6666
|
Ur as SUPABASE_TABLE,
|
|
6647
6667
|
Ca as fromDbItem,
|
|
6648
6668
|
yu as generateId,
|