@arbocollab/arbo-plugin-item-table 0.1.146 → 0.1.148
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/lib/es/index.es.js +67 -66
- package/lib/umd/index.umd.js +4 -4
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -31322,8 +31322,22 @@ const {
|
|
|
31322
31322
|
getAdapter: Dxe,
|
|
31323
31323
|
mergeConfig: Txe
|
|
31324
31324
|
} = eo;
|
|
31325
|
-
|
|
31326
|
-
|
|
31325
|
+
class ef extends Error {
|
|
31326
|
+
constructor(t, n, o, s, r) {
|
|
31327
|
+
super(t), this.name = "ApiError", this.statusCode = n, this.code = o, this.details = s, this.type = r, Object.setPrototypeOf(this, ef.prototype);
|
|
31328
|
+
}
|
|
31329
|
+
}
|
|
31330
|
+
const dte = (e) => {
|
|
31331
|
+
var t, n;
|
|
31332
|
+
if (ute(e)) {
|
|
31333
|
+
const o = (t = e.response) == null ? void 0 : t.status, s = (n = e.response) == null ? void 0 : n.data, r = (s == null ? void 0 : s.message) || e.message || "An unexpected error occurred", i = (s == null ? void 0 : s.code) || e.code, a = (s == null ? void 0 : s.details) || s;
|
|
31334
|
+
let l = "UNKNOWN";
|
|
31335
|
+
return !o || e.code === "ERR_NETWORK" || e.code === "ECONNABORTED" ? l = e.code === "ECONNABORTED" ? "TIMEOUT" : "NETWORK" : o >= 500 ? l = "SERVER" : o === gu.UNAUTHORIZED || o === gu.FORBIDDEN ? l = "AUTH" : o === gu.UNPROCESSABLE_ENTITY || o === gu.BAD_REQUEST ? l = "VALIDATION" : o >= gu.BAD_REQUEST && (l = "CLIENT"), new ef(r, o, i, a, l);
|
|
31336
|
+
}
|
|
31337
|
+
return e instanceof Error ? new ef(e.message, void 0, void 0, void 0, "UNKNOWN") : new ef("An unknown error occurred", void 0, void 0, void 0, "UNKNOWN");
|
|
31338
|
+
};
|
|
31339
|
+
let hte = class extends Error {
|
|
31340
|
+
}, Oa = class extends hte {
|
|
31327
31341
|
constructor() {
|
|
31328
31342
|
super("Zone is an abstract class");
|
|
31329
31343
|
}
|
|
@@ -31412,7 +31426,7 @@ let dte = class extends Error {
|
|
|
31412
31426
|
}
|
|
31413
31427
|
};
|
|
31414
31428
|
const GS = /* @__PURE__ */ new Map();
|
|
31415
|
-
function
|
|
31429
|
+
function fte(e) {
|
|
31416
31430
|
let t = GS.get(e);
|
|
31417
31431
|
return t === void 0 && (t = new Intl.DateTimeFormat("en-US", {
|
|
31418
31432
|
hour12: !1,
|
|
@@ -31426,7 +31440,7 @@ function hte(e) {
|
|
|
31426
31440
|
era: "short"
|
|
31427
31441
|
}), GS.set(e, t)), t;
|
|
31428
31442
|
}
|
|
31429
|
-
const
|
|
31443
|
+
const pte = {
|
|
31430
31444
|
year: 0,
|
|
31431
31445
|
month: 1,
|
|
31432
31446
|
day: 2,
|
|
@@ -31435,20 +31449,20 @@ const fte = {
|
|
|
31435
31449
|
minute: 5,
|
|
31436
31450
|
second: 6
|
|
31437
31451
|
};
|
|
31438
|
-
function
|
|
31452
|
+
function gte(e, t) {
|
|
31439
31453
|
const n = e.format(t).replace(/\u200E/g, ""), o = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n), [, s, r, i, a, l, c, u] = o;
|
|
31440
31454
|
return [i, s, r, a, l, c, u];
|
|
31441
31455
|
}
|
|
31442
|
-
function
|
|
31456
|
+
function mte(e, t) {
|
|
31443
31457
|
const n = e.formatToParts(t), o = [];
|
|
31444
31458
|
for (let s = 0; s < n.length; s++) {
|
|
31445
|
-
const { type: r, value: i } = n[s], a =
|
|
31459
|
+
const { type: r, value: i } = n[s], a = pte[r];
|
|
31446
31460
|
r === "era" ? o[a] = i : Gy(a) || (o[a] = parseInt(i, 10));
|
|
31447
31461
|
}
|
|
31448
31462
|
return o;
|
|
31449
31463
|
}
|
|
31450
31464
|
const PC = /* @__PURE__ */ new Map();
|
|
31451
|
-
let
|
|
31465
|
+
let vte = class US extends vL {
|
|
31452
31466
|
/**
|
|
31453
31467
|
* @param {string} name - Zone name
|
|
31454
31468
|
* @return {IANAZone}
|
|
@@ -31530,7 +31544,7 @@ let mte = class US extends vL {
|
|
|
31530
31544
|
* @return {string}
|
|
31531
31545
|
*/
|
|
31532
31546
|
offsetName(t, { format: n, locale: o }) {
|
|
31533
|
-
return
|
|
31547
|
+
return bte(t, n, o, this.name);
|
|
31534
31548
|
}
|
|
31535
31549
|
/**
|
|
31536
31550
|
* Returns the offset's value as a string
|
|
@@ -31553,10 +31567,10 @@ let mte = class US extends vL {
|
|
|
31553
31567
|
if (!this.valid) return NaN;
|
|
31554
31568
|
const n = new Date(t);
|
|
31555
31569
|
if (isNaN(n)) return NaN;
|
|
31556
|
-
const o =
|
|
31557
|
-
let [s, r, i, a, l, c, u] = o.formatToParts ?
|
|
31570
|
+
const o = fte(this.name);
|
|
31571
|
+
let [s, r, i, a, l, c, u] = o.formatToParts ? mte(o, n) : gte(o, n);
|
|
31558
31572
|
a === "BC" && (s = -Math.abs(s) + 1);
|
|
31559
|
-
const h =
|
|
31573
|
+
const h = Cte({
|
|
31560
31574
|
year: s,
|
|
31561
31575
|
month: r,
|
|
31562
31576
|
day: i,
|
|
@@ -31586,7 +31600,7 @@ let mte = class US extends vL {
|
|
|
31586
31600
|
get isValid() {
|
|
31587
31601
|
return this.valid;
|
|
31588
31602
|
}
|
|
31589
|
-
}, kC = null,
|
|
31603
|
+
}, kC = null, yte = class Mh extends vL {
|
|
31590
31604
|
/**
|
|
31591
31605
|
* Get a singleton instance of UTC
|
|
31592
31606
|
* @return {FixedOffsetZone}
|
|
@@ -31717,13 +31731,13 @@ function yL(e) {
|
|
|
31717
31731
|
if (!(Gy(e) || e === null || e === ""))
|
|
31718
31732
|
return parseInt(e, 10);
|
|
31719
31733
|
}
|
|
31720
|
-
function
|
|
31734
|
+
function wte(e) {
|
|
31721
31735
|
if (!(Gy(e) || e === null || e === "")) {
|
|
31722
31736
|
const t = parseFloat("0." + e) * 1e3;
|
|
31723
31737
|
return Math.floor(t);
|
|
31724
31738
|
}
|
|
31725
31739
|
}
|
|
31726
|
-
function
|
|
31740
|
+
function Cte(e) {
|
|
31727
31741
|
let t = Date.UTC(
|
|
31728
31742
|
e.year,
|
|
31729
31743
|
e.month - 1,
|
|
@@ -31735,7 +31749,7 @@ function wte(e) {
|
|
|
31735
31749
|
);
|
|
31736
31750
|
return e.year < 100 && e.year >= 0 && (t = new Date(t), t.setUTCFullYear(e.year, e.month - 1, e.day)), +t;
|
|
31737
31751
|
}
|
|
31738
|
-
function
|
|
31752
|
+
function bte(e, t, n, o = null) {
|
|
31739
31753
|
const s = new Date(e), r = {
|
|
31740
31754
|
hourCycle: "h23",
|
|
31741
31755
|
year: "numeric",
|
|
@@ -31790,14 +31804,14 @@ function bL(...e) {
|
|
|
31790
31804
|
return [o, null, n + s];
|
|
31791
31805
|
};
|
|
31792
31806
|
}
|
|
31793
|
-
const SL = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,
|
|
31807
|
+
const SL = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Ste = `(?:${SL.source}?(?:\\[(${CL.source})\\])?)?`, EL = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, _L = RegExp(`${EL.source}${Ste}`), f_ = RegExp(`(?:[Tt]${_L.source})?`), Ete = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, _te = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Rte = /(\d{4})-?(\d{3})/, Dte = bL("weekYear", "weekNumber", "weekDay"), Tte = bL("year", "ordinal"), Ite = /(\d{4})-(\d\d)-(\d\d)/, RL = RegExp(
|
|
31794
31808
|
`${EL.source} ?(?:${SL.source}|(${CL.source}))?`
|
|
31795
|
-
),
|
|
31809
|
+
), xte = RegExp(`(?: ${RL.source})?`);
|
|
31796
31810
|
function Hu(e, t, n) {
|
|
31797
31811
|
const o = e[t];
|
|
31798
31812
|
return Gy(o) ? n : yL(o);
|
|
31799
31813
|
}
|
|
31800
|
-
function
|
|
31814
|
+
function Fte(e, t) {
|
|
31801
31815
|
return [{
|
|
31802
31816
|
year: Hu(e, t),
|
|
31803
31817
|
month: Hu(e, t + 1, 1),
|
|
@@ -31809,35 +31823,35 @@ function Ud(e, t) {
|
|
|
31809
31823
|
hours: Hu(e, t, 0),
|
|
31810
31824
|
minutes: Hu(e, t + 1, 0),
|
|
31811
31825
|
seconds: Hu(e, t + 2, 0),
|
|
31812
|
-
milliseconds:
|
|
31826
|
+
milliseconds: wte(e[t + 3])
|
|
31813
31827
|
}, null, t + 4];
|
|
31814
31828
|
}
|
|
31815
31829
|
function xp(e, t) {
|
|
31816
|
-
const n = !e[t] && !e[t + 1], o = wL(e[t + 1], e[t + 2]), s = n ? null :
|
|
31830
|
+
const n = !e[t] && !e[t + 1], o = wL(e[t + 1], e[t + 2]), s = n ? null : yte.instance(o);
|
|
31817
31831
|
return [{}, s, t + 3];
|
|
31818
31832
|
}
|
|
31819
31833
|
function Fp(e, t) {
|
|
31820
|
-
const n = e[t] ?
|
|
31834
|
+
const n = e[t] ? vte.create(e[t]) : null;
|
|
31821
31835
|
return [{}, n, t + 1];
|
|
31822
31836
|
}
|
|
31823
|
-
Hd(Ste, f_);
|
|
31824
31837
|
Hd(Ete, f_);
|
|
31825
31838
|
Hd(_te, f_);
|
|
31839
|
+
Hd(Rte, f_);
|
|
31826
31840
|
Hd(_L);
|
|
31827
31841
|
Gd(
|
|
31828
|
-
|
|
31842
|
+
Fte,
|
|
31829
31843
|
Ud,
|
|
31830
31844
|
xp,
|
|
31831
31845
|
Fp
|
|
31832
31846
|
);
|
|
31833
31847
|
Gd(
|
|
31834
|
-
|
|
31848
|
+
Dte,
|
|
31835
31849
|
Ud,
|
|
31836
31850
|
xp,
|
|
31837
31851
|
Fp
|
|
31838
31852
|
);
|
|
31839
31853
|
Gd(
|
|
31840
|
-
|
|
31854
|
+
Tte,
|
|
31841
31855
|
Ud,
|
|
31842
31856
|
xp,
|
|
31843
31857
|
Fp
|
|
@@ -31848,7 +31862,7 @@ Gd(
|
|
|
31848
31862
|
Fp
|
|
31849
31863
|
);
|
|
31850
31864
|
Gd(Ud);
|
|
31851
|
-
Hd(
|
|
31865
|
+
Hd(Ite, xte);
|
|
31852
31866
|
Hd(RL);
|
|
31853
31867
|
Gd(
|
|
31854
31868
|
Ud,
|
|
@@ -31886,21 +31900,21 @@ function WS(e) {
|
|
|
31886
31900
|
function p_(e, t) {
|
|
31887
31901
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
31888
31902
|
}
|
|
31889
|
-
function
|
|
31903
|
+
function Pte(e, t) {
|
|
31890
31904
|
for (var n = 0; n < t.length; n++) {
|
|
31891
31905
|
var o = t[n];
|
|
31892
31906
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, DL(o.key), o);
|
|
31893
31907
|
}
|
|
31894
31908
|
}
|
|
31895
31909
|
function g_(e, t, n) {
|
|
31896
|
-
return t &&
|
|
31910
|
+
return t && Pte(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
31897
31911
|
writable: !1
|
|
31898
31912
|
}), e;
|
|
31899
31913
|
}
|
|
31900
|
-
function
|
|
31914
|
+
function kte(e, t) {
|
|
31901
31915
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
31902
31916
|
if (!n) {
|
|
31903
|
-
if (Array.isArray(e) || (n =
|
|
31917
|
+
if (Array.isArray(e) || (n = Nte(e)) || t) {
|
|
31904
31918
|
n && (e = n);
|
|
31905
31919
|
var o = 0, s = function() {
|
|
31906
31920
|
};
|
|
@@ -31973,16 +31987,16 @@ function _x(e) {
|
|
|
31973
31987
|
}
|
|
31974
31988
|
return e;
|
|
31975
31989
|
}
|
|
31976
|
-
function
|
|
31990
|
+
function Ate(e, t) {
|
|
31977
31991
|
if (e == null) return {};
|
|
31978
|
-
var n, o, s =
|
|
31992
|
+
var n, o, s = Ote(e, t);
|
|
31979
31993
|
if (Object.getOwnPropertySymbols) {
|
|
31980
31994
|
var r = Object.getOwnPropertySymbols(e);
|
|
31981
31995
|
for (o = 0; o < r.length; o++) n = r[o], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (s[n] = e[n]);
|
|
31982
31996
|
}
|
|
31983
31997
|
return s;
|
|
31984
31998
|
}
|
|
31985
|
-
function
|
|
31999
|
+
function Ote(e, t) {
|
|
31986
32000
|
if (e == null) return {};
|
|
31987
32001
|
var n = {};
|
|
31988
32002
|
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
@@ -32087,7 +32101,7 @@ function xs(e, t, n, o) {
|
|
|
32087
32101
|
}) : r[i] = a : (c("next", 0), c("throw", 1), c("return", 2));
|
|
32088
32102
|
}, xs(e, t, n, o);
|
|
32089
32103
|
}
|
|
32090
|
-
function
|
|
32104
|
+
function Mte(e, t) {
|
|
32091
32105
|
if (typeof e != "object" || !e) return e;
|
|
32092
32106
|
var n = e[Symbol.toPrimitive];
|
|
32093
32107
|
if (n !== void 0) {
|
|
@@ -32098,17 +32112,17 @@ function Ote(e, t) {
|
|
|
32098
32112
|
return (t === "string" ? String : Number)(e);
|
|
32099
32113
|
}
|
|
32100
32114
|
function DL(e) {
|
|
32101
|
-
var t =
|
|
32115
|
+
var t = Mte(e, "string");
|
|
32102
32116
|
return typeof t == "symbol" ? t : t + "";
|
|
32103
32117
|
}
|
|
32104
|
-
function
|
|
32118
|
+
function Nte(e, t) {
|
|
32105
32119
|
if (e) {
|
|
32106
32120
|
if (typeof e == "string") return bx(e, t);
|
|
32107
32121
|
var n = {}.toString.call(e).slice(8, -1);
|
|
32108
32122
|
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? bx(e, t) : void 0;
|
|
32109
32123
|
}
|
|
32110
32124
|
}
|
|
32111
|
-
var
|
|
32125
|
+
var Lte = ["accessTokenKey", "refreshTokenKey", "domain", "path", "secure", "sameSite", "canSetTokens", "cookieParser"], Vte = /* @__PURE__ */ function() {
|
|
32112
32126
|
function e() {
|
|
32113
32127
|
var t, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
32114
32128
|
p_(this, e), this.accessTokenKey = o.accessTokenKey || "access_token", this.refreshTokenKey = o.refreshTokenKey || "refresh_token", this.domain = o.domain, this.path = o.path || "/", this.secure = (t = o.secure) !== null && t !== void 0 ? t : !0, this.sameSite = o.sameSite || "lax", this.canSetTokens = (n = o.canSetTokens) !== null && n !== void 0 ? n : !0, this.cookieParser = o.cookieParser;
|
|
@@ -32117,7 +32131,7 @@ var Nte = ["accessTokenKey", "refreshTokenKey", "domain", "path", "secure", "sam
|
|
|
32117
32131
|
key: "getCookieValue",
|
|
32118
32132
|
value: function(n) {
|
|
32119
32133
|
if (typeof document > "u") return null;
|
|
32120
|
-
var o = document.cookie.split(";"), s =
|
|
32134
|
+
var o = document.cookie.split(";"), s = kte(o), r;
|
|
32121
32135
|
try {
|
|
32122
32136
|
for (s.s(); !(r = s.n()).done; ) {
|
|
32123
32137
|
var i = r.value;
|
|
@@ -32185,7 +32199,7 @@ var Nte = ["accessTokenKey", "refreshTokenKey", "domain", "path", "secure", "sam
|
|
|
32185
32199
|
return !!this.getAccessToken() && !!this.getRefreshToken();
|
|
32186
32200
|
}
|
|
32187
32201
|
}]);
|
|
32188
|
-
}(),
|
|
32202
|
+
}(), Bte = /* @__PURE__ */ function() {
|
|
32189
32203
|
function e() {
|
|
32190
32204
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "auth_state_channel", n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "auth_state_event";
|
|
32191
32205
|
p_(this, e), m_(this, "channel", null), this.channelName = t, this.storageKey = n, this.initChannel();
|
|
@@ -32246,10 +32260,10 @@ var Nte = ["accessTokenKey", "refreshTokenKey", "domain", "path", "secure", "sam
|
|
|
32246
32260
|
this.channel && (this.channel.close(), this.channel = null);
|
|
32247
32261
|
}
|
|
32248
32262
|
}]);
|
|
32249
|
-
}(),
|
|
32263
|
+
}(), $te = /* @__PURE__ */ function() {
|
|
32250
32264
|
function e(t) {
|
|
32251
32265
|
var n = this;
|
|
32252
|
-
p_(this, e), m_(this, "currentAttempt", 0), this.instanceId = Math.random().toString(36).substring(2, 15), this.refreshTokenFn = t.refreshTokenFn, this.tokenStorage = t.storage, this.maxRetries = t.maxRetries || 3, this.retryDelay = t.retryDelay || 1e3, this.backoffFactor = t.backoffFactor || 2, this.onCrossTabLogout = t.onCrossTabLogout, this.authStateManager = new
|
|
32266
|
+
p_(this, e), m_(this, "currentAttempt", 0), this.instanceId = Math.random().toString(36).substring(2, 15), this.refreshTokenFn = t.refreshTokenFn, this.tokenStorage = t.storage, this.maxRetries = t.maxRetries || 3, this.retryDelay = t.retryDelay || 1e3, this.backoffFactor = t.backoffFactor || 2, this.onCrossTabLogout = t.onCrossTabLogout, this.authStateManager = new Bte(), this.initCrossTabListener(), this.onRefreshSuccess = t.onRefreshSuccess || function() {
|
|
32253
32267
|
console.log("Token refresh successful");
|
|
32254
32268
|
}, this.onRefreshFailure = t.onRefreshFailure || function(o) {
|
|
32255
32269
|
console.error("Token refresh failed:", o);
|
|
@@ -32376,7 +32390,7 @@ var Nte = ["accessTokenKey", "refreshTokenKey", "domain", "path", "secure", "sam
|
|
|
32376
32390
|
}
|
|
32377
32391
|
}]);
|
|
32378
32392
|
}();
|
|
32379
|
-
function
|
|
32393
|
+
function Hte(e, t) {
|
|
32380
32394
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.tokenExpiredDetection, s = o === void 0 ? function(u) {
|
|
32381
32395
|
var d;
|
|
32382
32396
|
return ((d = u.response) === null || d === void 0 ? void 0 : d.status) === 401;
|
|
@@ -32441,8 +32455,8 @@ function $te(e, t) {
|
|
|
32441
32455
|
return Promise.reject(u);
|
|
32442
32456
|
});
|
|
32443
32457
|
}
|
|
32444
|
-
function
|
|
32445
|
-
var t = e.accessTokenKey, n = e.refreshTokenKey, o = e.domain, s = e.path, r = e.secure, i = e.sameSite, a = e.canSetTokens, l = e.cookieParser, c =
|
|
32458
|
+
function Gte(e) {
|
|
32459
|
+
var t = e.accessTokenKey, n = e.refreshTokenKey, o = e.domain, s = e.path, r = e.secure, i = e.sameSite, a = e.canSetTokens, l = e.cookieParser, c = Ate(e, Lte), u = new Vte({
|
|
32446
32460
|
accessTokenKey: t,
|
|
32447
32461
|
refreshTokenKey: n,
|
|
32448
32462
|
domain: o,
|
|
@@ -32452,7 +32466,7 @@ function Hte(e) {
|
|
|
32452
32466
|
canSetTokens: a,
|
|
32453
32467
|
cookieParser: l
|
|
32454
32468
|
});
|
|
32455
|
-
return new
|
|
32469
|
+
return new $te(_x(_x({}, c), {}, {
|
|
32456
32470
|
storage: u
|
|
32457
32471
|
}));
|
|
32458
32472
|
}
|
|
@@ -32460,26 +32474,13 @@ var _o = /* @__PURE__ */ function(e) {
|
|
|
32460
32474
|
return e.review = "{reviewDomain}/{ws_code}", e.review_take = "{reviewDomain}/{ws_code}?id={take_id}", e.review_scene = "{reviewDomain}/{ws_code}?id={take_id}&scene_id={scene_id}&tab=iteration", e.review_rendition = "{reviewDomain}/{ws_code}?id={take_id}&scene_id={scene_id}&rendition_id={rendition_id}", e.review_frame = "{reviewDomain}/{ws_code}?id={take_id}&scene_id={scene_id}&rendition_id={rendition_id}&tab=comment&refresh_marker=true#type=frame&data={frame}", e.review_rendition_comment = "{reviewDomain}/{ws_code}?scene_id={scene_id}&rendition_id={rendition_id}&comment_id={comment_id}&tab=comment", e.review_comment = "{reviewDomain}/{ws_code}?id={take_id}&scene_id={scene_id}&comment_id={comment_id}", e.scene_hub = "{baseDomain}/{ws_code}/{scene_id}?o=st", e.hub_rendition = "{baseDomain}/{ws_code}/{scene_id}?o=st&renditionId={rendition_id}", e.hub_comment = "{baseDomain}/{ws_code}/{scene_id}?o=st&comment_id={comment_id}", e.people_insight = "{baseDomain}/{ws_code}/{user_id}?o=pt", e.people_detail = "{baseDomain}/{ws_code}/ws/ppl/{display_name}-{user_id}", e.project = "{baseDomain}/{ws_code}/pl/dir/{entity_id}", e.project_focusMode = "{baseDomain}/{ws_code}/pl/dir/{parent_id}?f={entity_id}", e.woohoo = "{baseDomain}/{ws_code}/pl/woo/rpt/{woohoo_id}", e.update = "{baseDomain}/{ws_code}/pl/au?id={entity_id}", e.core = "{baseDomain}/{ws_code}", e;
|
|
32461
32475
|
}(_o || {});
|
|
32462
32476
|
_o.review, _o.review_take, _o.review_scene, _o.review_rendition, _o.review_frame, _o.review_rendition_comment, _o.review_comment, _o.scene_hub, _o.hub_rendition, _o.hub_comment, _o.people_insight, _o.people_detail, _o.project, _o.woohoo, _o.update, _o.core, _o.project_focusMode;
|
|
32463
|
-
|
|
32464
|
-
constructor(t, n, o, s, r) {
|
|
32465
|
-
super(t), this.name = "ApiError", this.statusCode = n, this.code = o, this.details = s, this.type = r, Object.setPrototypeOf(this, ef.prototype);
|
|
32466
|
-
}
|
|
32467
|
-
}
|
|
32468
|
-
const Gte = (e) => {
|
|
32469
|
-
var t, n;
|
|
32470
|
-
if (ute(e)) {
|
|
32471
|
-
const o = (t = e.response) == null ? void 0 : t.status, s = (n = e.response) == null ? void 0 : n.data, r = (s == null ? void 0 : s.message) || e.message || "An unexpected error occurred", i = (s == null ? void 0 : s.code) || e.code, a = (s == null ? void 0 : s.details) || s;
|
|
32472
|
-
let l = "UNKNOWN";
|
|
32473
|
-
return !o || e.code === "ERR_NETWORK" || e.code === "ECONNABORTED" ? l = e.code === "ECONNABORTED" ? "TIMEOUT" : "NETWORK" : o >= 500 ? l = "SERVER" : o === gu.UNAUTHORIZED || o === gu.FORBIDDEN ? l = "AUTH" : o === gu.UNPROCESSABLE_ENTITY || o === gu.BAD_REQUEST ? l = "VALIDATION" : o >= gu.BAD_REQUEST && (l = "CLIENT"), new ef(r, o, i, a, l);
|
|
32474
|
-
}
|
|
32475
|
-
return e instanceof Error ? new ef(e.message, void 0, void 0, void 0, "UNKNOWN") : new ef("An unknown error occurred", void 0, void 0, void 0, "UNKNOWN");
|
|
32476
|
-
}, Sv = {
|
|
32477
|
+
const Sv = {
|
|
32477
32478
|
accessToken: "account.token",
|
|
32478
32479
|
refreshToken: "account.refresh_token"
|
|
32479
32480
|
}, TL = {
|
|
32480
32481
|
baseUrl: "BASE_URL",
|
|
32481
32482
|
cookieDomain: "BASE_DOMAIN_COOKIE"
|
|
32482
|
-
}, IL = "/refresh-token", Ute = 3e5, Wte = "*", Rx = {
|
|
32483
|
+
}, IL = "/api/v1/refresh-token", Ute = 3e5, Wte = "*", Rx = {
|
|
32483
32484
|
Accept: "application/json",
|
|
32484
32485
|
"Content-Type": "application/json"
|
|
32485
32486
|
}, zte = "undefined", jte = "No access token found", uc = {
|
|
@@ -32527,7 +32528,7 @@ class v_ {
|
|
|
32527
32528
|
}
|
|
32528
32529
|
/** Registers the refresh interceptor on the client. Call once per client. */
|
|
32529
32530
|
attach() {
|
|
32530
|
-
const t =
|
|
32531
|
+
const t = Gte({
|
|
32531
32532
|
accessTokenKey: Sv.accessToken,
|
|
32532
32533
|
refreshTokenKey: Sv.refreshToken,
|
|
32533
32534
|
domain: xL(TL.cookieDomain) || void 0,
|
|
@@ -32543,7 +32544,7 @@ class v_ {
|
|
|
32543
32544
|
onCrossTabLogout: () => this.handleAuthExpired(),
|
|
32544
32545
|
...qte
|
|
32545
32546
|
});
|
|
32546
|
-
this.handler = t,
|
|
32547
|
+
this.handler = t, Hte(this.client, t, {
|
|
32547
32548
|
retryStatusCodes: [...Kte],
|
|
32548
32549
|
tokenExpiredDetection: v_.isTokenExpired
|
|
32549
32550
|
});
|
|
@@ -32745,7 +32746,7 @@ class yne {
|
|
|
32745
32746
|
};
|
|
32746
32747
|
return s !== void 0 && (a.data = s), (await this.axios.request(a)).data;
|
|
32747
32748
|
} catch (i) {
|
|
32748
|
-
throw
|
|
32749
|
+
throw dte(i);
|
|
32749
32750
|
}
|
|
32750
32751
|
}
|
|
32751
32752
|
get(t = "", n, o) {
|
|
@@ -88838,7 +88839,7 @@ const tIe = {
|
|
|
88838
88839
|
const l = `${sessionStorage.getItem("BASE_URL")}`;
|
|
88839
88840
|
window.postMessage(
|
|
88840
88841
|
{
|
|
88841
|
-
type: "xlsx-mapping:
|
|
88842
|
+
type: "xlsx-mapping:load",
|
|
88842
88843
|
payload: { source: r, template: i }
|
|
88843
88844
|
},
|
|
88844
88845
|
l
|
|
@@ -89706,7 +89707,7 @@ const tIe = {
|
|
|
89706
89707
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
89707
89708
|
}, $Ie = {
|
|
89708
89709
|
$style: BIe
|
|
89709
|
-
}, HIe = /* @__PURE__ */ St(AIe, [["__cssModules", $Ie]]), lH = "0.1.
|
|
89710
|
+
}, HIe = /* @__PURE__ */ St(AIe, [["__cssModules", $Ie]]), lH = "0.1.148", GIe = { key: 0 }, UIe = /* @__PURE__ */ st({
|
|
89710
89711
|
__name: "app",
|
|
89711
89712
|
setup(e) {
|
|
89712
89713
|
const t = Z(() => n.id.length === 0 || n.workspaceId.length === 0), n = ys({
|