@dashx/react 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +155 -148
- package/dist/index.umd.js +16 -16
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as x from "react";
|
|
|
2
2
|
import C, { useEffect as Zt, useCallback as ia, useState as rt } from "react";
|
|
3
3
|
import * as hu from "react-dom";
|
|
4
4
|
import mu from "react-dom";
|
|
5
|
-
var vu = Object.defineProperty, yu = (t, e, n) => e in t ? vu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
5
|
+
var vu = Object.defineProperty, yu = (t, e, n) => e in t ? vu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Me = (t, e, n) => (yu(t, typeof e != "symbol" ? e + "" : e, n), n), wo = (t, e, n) => {
|
|
6
6
|
if (!e.has(t))
|
|
7
7
|
throw TypeError("Cannot " + n);
|
|
8
8
|
}, R = (t, e, n) => (wo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), kr = (t, e, n) => {
|
|
@@ -124,7 +124,7 @@ function _e(t, e) {
|
|
|
124
124
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
|
|
125
125
|
return n;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function je(t, e, n, r) {
|
|
128
128
|
function i(a) {
|
|
129
129
|
return a instanceof n ? a : new n(function(o) {
|
|
130
130
|
o(a);
|
|
@@ -151,7 +151,7 @@ function Me(t, e, n, r) {
|
|
|
151
151
|
u((r = r.apply(t, e || [])).next());
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Le(t, e) {
|
|
155
155
|
var n = { label: 0, sent: function() {
|
|
156
156
|
if (a[0] & 1)
|
|
157
157
|
throw a[1];
|
|
@@ -3151,9 +3151,9 @@ var $o = function(t, e) {
|
|
|
3151
3151
|
var a = Kr.prototype.set.call(this, r, i);
|
|
3152
3152
|
return Qo(this), a;
|
|
3153
3153
|
}, n;
|
|
3154
|
-
}, Fc = Symbol.for("apollo.cacheSize"), De = g({}, Br[Fc]),
|
|
3154
|
+
}, Fc = Symbol.for("apollo.cacheSize"), De = g({}, Br[Fc]), tt = {};
|
|
3155
3155
|
function Wo(t, e) {
|
|
3156
|
-
|
|
3156
|
+
tt[t] = e;
|
|
3157
3157
|
}
|
|
3158
3158
|
var Dc = globalThis.__DEV__ !== !1 ? Cc : void 0, Ic = globalThis.__DEV__ !== !1 ? Rc : void 0, Ac = globalThis.__DEV__ !== !1 ? zo : void 0;
|
|
3159
3159
|
function xc() {
|
|
@@ -3187,7 +3187,7 @@ function Cc() {
|
|
|
3187
3187
|
throw new Error("only supported in development mode");
|
|
3188
3188
|
return {
|
|
3189
3189
|
limits: xc(),
|
|
3190
|
-
sizes: g({ print: (t =
|
|
3190
|
+
sizes: g({ print: (t = tt.print) === null || t === void 0 ? void 0 : t.call(tt), parser: (e = tt.parser) === null || e === void 0 ? void 0 : e.call(tt), canonicalStringify: (n = tt.canonicalStringify) === null || n === void 0 ? void 0 : n.call(tt), links: Hr(this.link), queryManager: {
|
|
3191
3191
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
3192
3192
|
documentTransforms: Go(this.queryManager.documentTransform)
|
|
3193
3193
|
} }, (i = (r = this.cache).getMemoryInternals) === null || i === void 0 ? void 0 : i.call(r))
|
|
@@ -3196,26 +3196,26 @@ function Cc() {
|
|
|
3196
3196
|
function zo() {
|
|
3197
3197
|
return {
|
|
3198
3198
|
cache: {
|
|
3199
|
-
fragmentQueryDocuments:
|
|
3199
|
+
fragmentQueryDocuments: qe(this.getFragmentDoc)
|
|
3200
3200
|
}
|
|
3201
3201
|
};
|
|
3202
3202
|
}
|
|
3203
3203
|
function Rc() {
|
|
3204
3204
|
var t = this.config.fragments;
|
|
3205
3205
|
return g(g({}, zo.apply(this)), { addTypenameDocumentTransform: Go(this.addTypenameTransform), inMemoryCache: {
|
|
3206
|
-
executeSelectionSet:
|
|
3207
|
-
executeSubSelectedArray:
|
|
3208
|
-
maybeBroadcastWatch:
|
|
3206
|
+
executeSelectionSet: qe(this.storeReader.executeSelectionSet),
|
|
3207
|
+
executeSubSelectedArray: qe(this.storeReader.executeSubSelectedArray),
|
|
3208
|
+
maybeBroadcastWatch: qe(this.maybeBroadcastWatch)
|
|
3209
3209
|
}, fragmentRegistry: {
|
|
3210
|
-
findFragmentSpreads:
|
|
3211
|
-
lookup:
|
|
3212
|
-
transform:
|
|
3210
|
+
findFragmentSpreads: qe(t == null ? void 0 : t.findFragmentSpreads),
|
|
3211
|
+
lookup: qe(t == null ? void 0 : t.lookup),
|
|
3212
|
+
transform: qe(t == null ? void 0 : t.transform)
|
|
3213
3213
|
} });
|
|
3214
3214
|
}
|
|
3215
3215
|
function Pc(t) {
|
|
3216
3216
|
return !!t && "dirtyKey" in t;
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3218
|
+
function qe(t) {
|
|
3219
3219
|
return Pc(t) ? t.size : void 0;
|
|
3220
3220
|
}
|
|
3221
3221
|
function Ko(t) {
|
|
@@ -3228,7 +3228,7 @@ function Go(t) {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
function Jr(t) {
|
|
3230
3230
|
return t ? me(me([
|
|
3231
|
-
|
|
3231
|
+
qe(t == null ? void 0 : t.performWork)
|
|
3232
3232
|
], Jr(t == null ? void 0 : t.left), !0), Jr(t == null ? void 0 : t.right), !0).filter(Ko) : [];
|
|
3233
3233
|
}
|
|
3234
3234
|
function Hr(t) {
|
|
@@ -3237,7 +3237,7 @@ function Hr(t) {
|
|
|
3237
3237
|
(e = t == null ? void 0 : t.getMemoryInternals) === null || e === void 0 ? void 0 : e.call(t)
|
|
3238
3238
|
], Hr(t == null ? void 0 : t.left), !0), Hr(t == null ? void 0 : t.right), !0).filter(Ko) : [];
|
|
3239
3239
|
}
|
|
3240
|
-
var
|
|
3240
|
+
var Qe = Object.assign(function(t) {
|
|
3241
3241
|
return JSON.stringify(t, Mc);
|
|
3242
3242
|
}, {
|
|
3243
3243
|
reset: function() {
|
|
@@ -3251,7 +3251,7 @@ globalThis.__DEV__ !== !1 && Wo("canonicalStringify", function() {
|
|
|
3251
3251
|
return yt.size;
|
|
3252
3252
|
});
|
|
3253
3253
|
var yt;
|
|
3254
|
-
|
|
3254
|
+
Qe.reset();
|
|
3255
3255
|
function Mc(t, e) {
|
|
3256
3256
|
if (e && typeof e == "object") {
|
|
3257
3257
|
var n = Object.getPrototypeOf(e);
|
|
@@ -3359,7 +3359,7 @@ var Jc = [
|
|
|
3359
3359
|
"rest",
|
|
3360
3360
|
"export",
|
|
3361
3361
|
"nonreactive"
|
|
3362
|
-
], Lt =
|
|
3362
|
+
], Lt = Qe, Jo = Object.assign(function(t, e, n) {
|
|
3363
3363
|
if (e && n && n.connection && n.connection.key)
|
|
3364
3364
|
if (n.connection.filter && n.connection.filter.length > 0) {
|
|
3365
3365
|
var r = n.connection.filter ? n.connection.filter : [];
|
|
@@ -3394,15 +3394,15 @@ function tr(t, e) {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
return null;
|
|
3396
3396
|
}
|
|
3397
|
-
function
|
|
3397
|
+
function $e(t) {
|
|
3398
3398
|
return t.alias ? t.alias.value : t.name.value;
|
|
3399
3399
|
}
|
|
3400
3400
|
function Yr(t, e, n) {
|
|
3401
3401
|
for (var r, i = 0, a = e.selections; i < a.length; i++) {
|
|
3402
3402
|
var o = a[i];
|
|
3403
|
-
if (
|
|
3403
|
+
if (We(o)) {
|
|
3404
3404
|
if (o.name.value === "__typename")
|
|
3405
|
-
return t[
|
|
3405
|
+
return t[$e(o)];
|
|
3406
3406
|
} else
|
|
3407
3407
|
r ? r.push(o) : r = [o];
|
|
3408
3408
|
}
|
|
@@ -3415,7 +3415,7 @@ function Yr(t, e, n) {
|
|
|
3415
3415
|
return u;
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function We(t) {
|
|
3419
3419
|
return t.kind === "Field";
|
|
3420
3420
|
}
|
|
3421
3421
|
function Hc(t) {
|
|
@@ -3657,7 +3657,7 @@ class ir {
|
|
|
3657
3657
|
this.fn = e, this.parents = /* @__PURE__ */ new Set(), this.childValues = /* @__PURE__ */ new Map(), this.dirtyChildren = null, this.dirty = !0, this.recomputing = !1, this.value = [], this.deps = null, ++ir.count;
|
|
3658
3658
|
}
|
|
3659
3659
|
peek() {
|
|
3660
|
-
if (this.value.length === 1 && !
|
|
3660
|
+
if (this.value.length === 1 && !ze(this))
|
|
3661
3661
|
return ka(this), this.value[0];
|
|
3662
3662
|
}
|
|
3663
3663
|
// This is the most important method of the Entry API, because it
|
|
@@ -3667,7 +3667,7 @@ class ir {
|
|
|
3667
3667
|
// usually false, (2) this.dirtyChildren is usually null/empty, and thus
|
|
3668
3668
|
// (3) valueGet(this.value) is usually returned without recomputation.
|
|
3669
3669
|
recompute(e) {
|
|
3670
|
-
return wt(!this.recomputing, "already recomputing"), ka(this),
|
|
3670
|
+
return wt(!this.recomputing, "already recomputing"), ka(this), ze(this) ? sl(this, e) : Zo(this.value);
|
|
3671
3671
|
}
|
|
3672
3672
|
setDirty() {
|
|
3673
3673
|
this.dirty || (this.dirty = !0, ts(this), Ii(this));
|
|
@@ -3691,7 +3691,7 @@ ir.count = 0;
|
|
|
3691
3691
|
function ka(t) {
|
|
3692
3692
|
const e = rr.getValue();
|
|
3693
3693
|
if (e)
|
|
3694
|
-
return t.parents.add(e), e.childValues.has(t) || e.childValues.set(t, []),
|
|
3694
|
+
return t.parents.add(e), e.childValues.has(t) || e.childValues.set(t, []), ze(t) ? rs(e, t) : is(e, t), e;
|
|
3695
3695
|
}
|
|
3696
3696
|
function sl(t, e) {
|
|
3697
3697
|
return os(t), rr.withValue(t, ul, [t, e]), ll(t, e) && cl(t), Zo(t.value);
|
|
@@ -3712,11 +3712,11 @@ function ul(t, e) {
|
|
|
3712
3712
|
}
|
|
3713
3713
|
t.recomputing = !1;
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3715
|
+
function ze(t) {
|
|
3716
3716
|
return t.dirty || !!(t.dirtyChildren && t.dirtyChildren.size);
|
|
3717
3717
|
}
|
|
3718
3718
|
function cl(t) {
|
|
3719
|
-
t.dirty = !1, !
|
|
3719
|
+
t.dirty = !1, !ze(t) && ns(t);
|
|
3720
3720
|
}
|
|
3721
3721
|
function ts(t) {
|
|
3722
3722
|
Ai(t, rs);
|
|
@@ -3733,8 +3733,8 @@ function Ai(t, e) {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
3735
3735
|
function rs(t, e) {
|
|
3736
|
-
wt(t.childValues.has(e)), wt(
|
|
3737
|
-
const n = !
|
|
3736
|
+
wt(t.childValues.has(e)), wt(ze(e));
|
|
3737
|
+
const n = !ze(t);
|
|
3738
3738
|
if (!t.dirtyChildren)
|
|
3739
3739
|
t.dirtyChildren = nn.pop() || /* @__PURE__ */ new Set();
|
|
3740
3740
|
else if (t.dirtyChildren.has(e))
|
|
@@ -3742,9 +3742,9 @@ function rs(t, e) {
|
|
|
3742
3742
|
t.dirtyChildren.add(e), n && ts(t);
|
|
3743
3743
|
}
|
|
3744
3744
|
function is(t, e) {
|
|
3745
|
-
wt(t.childValues.has(e)), wt(!
|
|
3745
|
+
wt(t.childValues.has(e)), wt(!ze(e));
|
|
3746
3746
|
const n = t.childValues.get(e);
|
|
3747
|
-
n.length === 0 ? t.childValues.set(e, es(e.value)) : Xo(n, e.value) || t.setDirty(), as(t, e), !
|
|
3747
|
+
n.length === 0 ? t.childValues.set(e, es(e.value)) : Xo(n, e.value) || t.setDirty(), as(t, e), !ze(t) && ns(t);
|
|
3748
3748
|
}
|
|
3749
3749
|
function as(t, e) {
|
|
3750
3750
|
const n = t.dirtyChildren;
|
|
@@ -4092,11 +4092,11 @@ var xi = Object.assign(function(t) {
|
|
|
4092
4092
|
var i = e.selections;
|
|
4093
4093
|
if (i) {
|
|
4094
4094
|
var a = i.some(function(s) {
|
|
4095
|
-
return
|
|
4095
|
+
return We(s) && (s.name.value === "__typename" || s.name.value.lastIndexOf("__", 0) === 0);
|
|
4096
4096
|
});
|
|
4097
4097
|
if (!a) {
|
|
4098
4098
|
var o = r;
|
|
4099
|
-
if (!(
|
|
4099
|
+
if (!(We(o) && o.directives && o.directives.some(function(s) {
|
|
4100
4100
|
return s.name.value === "export";
|
|
4101
4101
|
})))
|
|
4102
4102
|
return g(g({}, e), { selections: me(me([], i, !0), [Na], !1) });
|
|
@@ -4145,13 +4145,13 @@ function Ea() {
|
|
|
4145
4145
|
function or(t) {
|
|
4146
4146
|
var e = t[0] || {}, n = t.length;
|
|
4147
4147
|
if (n > 1)
|
|
4148
|
-
for (var r = new
|
|
4148
|
+
for (var r = new Ke(), i = 1; i < n; ++i)
|
|
4149
4149
|
e = r.merge(e, t[i]);
|
|
4150
4150
|
return e;
|
|
4151
4151
|
}
|
|
4152
4152
|
var gl = function(t, e, n) {
|
|
4153
4153
|
return this.merge(t[n], e[n]);
|
|
4154
|
-
},
|
|
4154
|
+
}, Ke = (
|
|
4155
4155
|
/** @class */
|
|
4156
4156
|
function() {
|
|
4157
4157
|
function t(e) {
|
|
@@ -4821,7 +4821,7 @@ function xl(t) {
|
|
|
4821
4821
|
return $(t) && "payload" in t;
|
|
4822
4822
|
}
|
|
4823
4823
|
function gs(t, e) {
|
|
4824
|
-
var n = t, r = new
|
|
4824
|
+
var n = t, r = new Ke();
|
|
4825
4825
|
return Nt(e) && Se(e.incremental) && e.incremental.forEach(function(i) {
|
|
4826
4826
|
for (var a = i.data, o = i.path, s = o.length - 1; s >= 0; --s) {
|
|
4827
4827
|
var c = o[s], u = !isNaN(+c), l = u ? [] : {};
|
|
@@ -5116,9 +5116,9 @@ var Jl = function(t) {
|
|
|
5116
5116
|
}(Error)
|
|
5117
5117
|
), Aa = Object.prototype.hasOwnProperty;
|
|
5118
5118
|
function Hl(t, e) {
|
|
5119
|
-
return
|
|
5119
|
+
return je(this, void 0, void 0, function() {
|
|
5120
5120
|
var n, r, i, a, o, s, c, u, l, f, d, p, h, y, m, v, b, k, S, E, w, O, _, D;
|
|
5121
|
-
return
|
|
5121
|
+
return Le(this, function(I) {
|
|
5122
5122
|
switch (I.label) {
|
|
5123
5123
|
case 0:
|
|
5124
5124
|
if (TextDecoder === void 0)
|
|
@@ -5364,9 +5364,9 @@ var xa = he(function() {
|
|
|
5364
5364
|
M && Q && globalThis.__DEV__ !== !1 && A.warn(38), M ? ie += "boundary=graphql;subscriptionSpec=1.0,application/json" : Q && (ie += "deferSpec=20220824,application/json"), _.headers.accept = ie;
|
|
5365
5365
|
}
|
|
5366
5366
|
if (_.method === "GET") {
|
|
5367
|
-
var G = cd(h, D), ae = G.newURI,
|
|
5368
|
-
if (
|
|
5369
|
-
return Dr(
|
|
5367
|
+
var G = cd(h, D), ae = G.newURI, Xe = G.parseError;
|
|
5368
|
+
if (Xe)
|
|
5369
|
+
return Dr(Xe);
|
|
5370
5370
|
h = ae;
|
|
5371
5371
|
} else
|
|
5372
5372
|
try {
|
|
@@ -5525,8 +5525,8 @@ function An(t, e, n, r) {
|
|
|
5525
5525
|
return t.selections.every(function(a) {
|
|
5526
5526
|
if (i.has(a) || (i.add(a), !ln(a, r.variables)) || ja(a))
|
|
5527
5527
|
return !0;
|
|
5528
|
-
if (
|
|
5529
|
-
var o =
|
|
5528
|
+
if (We(a)) {
|
|
5529
|
+
var o = $e(a), s = e && e[o], c = n && n[o], u = a.selectionSet;
|
|
5530
5530
|
if (!u)
|
|
5531
5531
|
return B(s, c);
|
|
5532
5532
|
var l = Array.isArray(s), f = Array.isArray(c);
|
|
@@ -5691,7 +5691,7 @@ function yd(t, e) {
|
|
|
5691
5691
|
return q(e) ? t.get(e.__ref, "__typename") : e && e.__typename;
|
|
5692
5692
|
}
|
|
5693
5693
|
var Fs = /^[_a-z][_0-9a-z]*/i;
|
|
5694
|
-
function
|
|
5694
|
+
function Ge(t) {
|
|
5695
5695
|
var e = t.match(Fs);
|
|
5696
5696
|
return e ? e[0] : t;
|
|
5697
5697
|
}
|
|
@@ -5699,8 +5699,8 @@ function ui(t, e, n) {
|
|
|
5699
5699
|
return $(e) ? W(e) ? e.every(function(r) {
|
|
5700
5700
|
return ui(t, r, n);
|
|
5701
5701
|
}) : t.selections.every(function(r) {
|
|
5702
|
-
if (
|
|
5703
|
-
var i =
|
|
5702
|
+
if (We(r) && ln(r, n)) {
|
|
5703
|
+
var i = $e(r);
|
|
5704
5704
|
return Y.call(e, i) && (!r.selectionSet || ui(r.selectionSet, e[i], n));
|
|
5705
5705
|
}
|
|
5706
5706
|
return !0;
|
|
@@ -5710,7 +5710,7 @@ function gt(t) {
|
|
|
5710
5710
|
return $(t) && !q(t) && !W(t);
|
|
5711
5711
|
}
|
|
5712
5712
|
function gd() {
|
|
5713
|
-
return new
|
|
5713
|
+
return new Ke();
|
|
5714
5714
|
}
|
|
5715
5715
|
function Ds(t, e) {
|
|
5716
5716
|
var n = Zn(nr(t));
|
|
@@ -5772,13 +5772,13 @@ var xn = /* @__PURE__ */ Object.create(null), Ir = function() {
|
|
|
5772
5772
|
var a = typeof e == "string" ? this.lookup(i = e) : e, o = typeof n == "string" ? this.lookup(i = n) : n;
|
|
5773
5773
|
if (o) {
|
|
5774
5774
|
A(typeof i == "string", 1);
|
|
5775
|
-
var s = new
|
|
5775
|
+
var s = new Ke(bd).merge(a, o);
|
|
5776
5776
|
if (this.data[i] = s, s !== a && (delete this.refs[i], this.group.caching)) {
|
|
5777
5777
|
var c = /* @__PURE__ */ Object.create(null);
|
|
5778
5778
|
a || (c.__exists = 1), Object.keys(o).forEach(function(u) {
|
|
5779
5779
|
if (!a || a[u] !== s[u]) {
|
|
5780
5780
|
c[u] = 1;
|
|
5781
|
-
var l =
|
|
5781
|
+
var l = Ge(u);
|
|
5782
5782
|
l !== u && !r.policies.hasKeyArgs(s.__typename, l) && (c[l] = 1), s[u] === void 0 && !(r instanceof Re) && delete s[u];
|
|
5783
5783
|
}
|
|
5784
5784
|
}), c.__typename && !(a && a.__typename) && // Since we return default root __typename strings
|
|
@@ -5807,7 +5807,7 @@ var xn = /* @__PURE__ */ Object.create(null), Ir = function() {
|
|
|
5807
5807
|
}
|
|
5808
5808
|
};
|
|
5809
5809
|
if (Object.keys(i).forEach(function(u) {
|
|
5810
|
-
var l =
|
|
5810
|
+
var l = Ge(u), f = i[u];
|
|
5811
5811
|
if (f !== void 0) {
|
|
5812
5812
|
var d = typeof n == "function" ? n : n[u] || n[l];
|
|
5813
5813
|
if (d) {
|
|
@@ -5924,7 +5924,7 @@ var xn = /* @__PURE__ */ Object.create(null), Ir = function() {
|
|
|
5924
5924
|
}, t.prototype.depend = function(e, n) {
|
|
5925
5925
|
if (this.d) {
|
|
5926
5926
|
this.d(Ar(e, n));
|
|
5927
|
-
var r =
|
|
5927
|
+
var r = Ge(n);
|
|
5928
5928
|
r !== n && this.d(Ar(e, r)), this.parent && this.parent.depend(e, n);
|
|
5929
5929
|
}
|
|
5930
5930
|
}, t.prototype.dirty = function(e, n) {
|
|
@@ -6145,7 +6145,7 @@ var Sd = (
|
|
|
6145
6145
|
selectionSet: pn(r).selectionSet,
|
|
6146
6146
|
objectOrReference: d,
|
|
6147
6147
|
enclosingRef: d,
|
|
6148
|
-
context: g({ store: n, query: r, policies: f, variables: o, varString:
|
|
6148
|
+
context: g({ store: n, query: r, policies: f, variables: o, varString: Qe(o), canonizeResults: l }, Ds(r, this.config.fragments))
|
|
6149
6149
|
}), h;
|
|
6150
6150
|
if (p.missing && (h = [
|
|
6151
6151
|
new ws(Ed(p.missing), p.missing, r, o)
|
|
@@ -6178,7 +6178,7 @@ var Sd = (
|
|
|
6178
6178
|
result: this.canon.empty,
|
|
6179
6179
|
missing: "Dangling reference to missing ".concat(i.__ref, " object")
|
|
6180
6180
|
};
|
|
6181
|
-
var s = o.variables, c = o.policies, u = o.store, l = u.getFieldValue(i, "__typename"), f = [], d, p = new
|
|
6181
|
+
var s = o.variables, c = o.policies, u = o.store, l = u.getFieldValue(i, "__typename"), f = [], d, p = new Ke();
|
|
6182
6182
|
this.config.addTypename && typeof l == "string" && !c.rootIdsByTypename[l] && f.push({ __typename: l });
|
|
6183
6183
|
function h(k, S) {
|
|
6184
6184
|
var E;
|
|
@@ -6188,13 +6188,13 @@ var Sd = (
|
|
|
6188
6188
|
y.forEach(function(k) {
|
|
6189
6189
|
var S, E;
|
|
6190
6190
|
if (ln(k, s))
|
|
6191
|
-
if (
|
|
6191
|
+
if (We(k)) {
|
|
6192
6192
|
var w = c.readField({
|
|
6193
6193
|
fieldName: k.name.value,
|
|
6194
6194
|
field: k,
|
|
6195
6195
|
variables: o.variables,
|
|
6196
6196
|
from: i
|
|
6197
|
-
}, o), O =
|
|
6197
|
+
}, o), O = $e(k);
|
|
6198
6198
|
w === void 0 ? xi.added(k) || (d = p.merge(d, (S = {}, S[O] = "Can't find field '".concat(k.name.value, "' on ").concat(q(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), S))) : W(w) ? w.length > 0 && (w = h(n.executeSubSelectedArray({
|
|
6199
6199
|
field: k,
|
|
6200
6200
|
array: w,
|
|
@@ -6216,7 +6216,7 @@ var Sd = (
|
|
|
6216
6216
|
var m = or(f), v = { result: m, missing: d }, b = o.canonizeResults ? this.canon.admit(v) : ni(v);
|
|
6217
6217
|
return b.result && this.knownResults.set(b.result, r), b;
|
|
6218
6218
|
}, t.prototype.execSubSelectedArrayImpl = function(e) {
|
|
6219
|
-
var n = this, r = e.field, i = e.array, a = e.enclosingRef, o = e.context, s, c = new
|
|
6219
|
+
var n = this, r = e.field, i = e.array, a = e.enclosingRef, o = e.context, s, c = new Ke();
|
|
6220
6220
|
function u(l, f) {
|
|
6221
6221
|
var d;
|
|
6222
6222
|
return l.missing && (s = c.merge(s, (d = {}, d[f] = l.missing, d))), l.result;
|
|
@@ -6374,7 +6374,7 @@ function za(t) {
|
|
|
6374
6374
|
});
|
|
6375
6375
|
}
|
|
6376
6376
|
function Vi(t, e) {
|
|
6377
|
-
var n = new
|
|
6377
|
+
var n = new Ke();
|
|
6378
6378
|
return As(t).reduce(function(r, i) {
|
|
6379
6379
|
var a, o = e(i);
|
|
6380
6380
|
if (o !== void 0) {
|
|
@@ -6565,7 +6565,7 @@ var Fd = function() {
|
|
|
6565
6565
|
break;
|
|
6566
6566
|
}
|
|
6567
6567
|
}
|
|
6568
|
-
return a === void 0 && (a = e.field ? Gc(e.field, e.variables) : Jo(r, ci(e))), a === !1 ? r : r ===
|
|
6568
|
+
return a === void 0 && (a = e.field ? Gc(e.field, e.variables) : Jo(r, ci(e))), a === !1 ? r : r === Ge(a) ? a : r + ":" + a;
|
|
6569
6569
|
}, t.prototype.readField = function(e, n) {
|
|
6570
6570
|
var r = e.from;
|
|
6571
6571
|
if (r) {
|
|
@@ -6575,7 +6575,7 @@ var Fd = function() {
|
|
|
6575
6575
|
var a = n.store.getFieldValue(r, "__typename");
|
|
6576
6576
|
a && (e.typename = a);
|
|
6577
6577
|
}
|
|
6578
|
-
var o = this.getStoreFieldName(e), s =
|
|
6578
|
+
var o = this.getStoreFieldName(e), s = Ge(o), c = n.store.getFieldValue(r, o), u = this.getFieldPolicy(e.typename, s, !1), l = u && u.read;
|
|
6579
6579
|
if (l) {
|
|
6580
6580
|
var f = Ha(this, r, e, n, n.store.getStorage(q(r) ? r.__ref : r, o));
|
|
6581
6581
|
return Li.withValue(this.cache, l, [
|
|
@@ -6621,7 +6621,7 @@ var Fd = function() {
|
|
|
6621
6621
|
}()
|
|
6622
6622
|
);
|
|
6623
6623
|
function Ha(t, e, n, r, i) {
|
|
6624
|
-
var a = t.getStoreFieldName(n), o =
|
|
6624
|
+
var a = t.getStoreFieldName(n), o = Ge(a), s = n.variables || r.variables, c = r.store, u = c.toReference, l = c.canRead;
|
|
6625
6625
|
return {
|
|
6626
6626
|
args: ci(n),
|
|
6627
6627
|
field: n.field || null,
|
|
@@ -6682,7 +6682,7 @@ var Id = (
|
|
|
6682
6682
|
s = g(g({}, _i(u)), s);
|
|
6683
6683
|
var f = g(g({ store: e, written: /* @__PURE__ */ Object.create(null), merge: function(p, h) {
|
|
6684
6684
|
return l.merge(p, h);
|
|
6685
|
-
}, variables: s, varString:
|
|
6685
|
+
}, variables: s, varString: Qe(s) }, Ds(i, this.fragments)), { overwrite: !!c, incomingById: /* @__PURE__ */ new Map(), clientOnly: !1, deferred: !1, flavors: /* @__PURE__ */ new Map() }), d = this.processSelectionSet({
|
|
6686
6686
|
result: a || /* @__PURE__ */ Object.create(null),
|
|
6687
6687
|
dataId: o,
|
|
6688
6688
|
selectionSet: u.selectionSet,
|
|
@@ -6705,7 +6705,7 @@ var Id = (
|
|
|
6705
6705
|
O.selectionSet && (S[O.name.value] = !0);
|
|
6706
6706
|
});
|
|
6707
6707
|
var E = function(O) {
|
|
6708
|
-
return S[
|
|
6708
|
+
return S[Ge(O)] === !0;
|
|
6709
6709
|
}, w = function(O) {
|
|
6710
6710
|
var _ = m && m.map.get(O);
|
|
6711
6711
|
return !!(_ && _.info && _.info.merge);
|
|
@@ -6740,7 +6740,7 @@ var Id = (
|
|
|
6740
6740
|
o,
|
|
6741
6741
|
l
|
|
6742
6742
|
).forEach(function(k, S) {
|
|
6743
|
-
var E, w =
|
|
6743
|
+
var E, w = $e(S), O = i[w];
|
|
6744
6744
|
if (d.add(S), O !== void 0) {
|
|
6745
6745
|
var _ = c.getStoreFieldName({
|
|
6746
6746
|
typename: l,
|
|
@@ -6767,7 +6767,7 @@ var Id = (
|
|
|
6767
6767
|
globalThis.__DEV__ !== !1 && !k.clientOnly && !k.deferred && !xi.added(S) && // If the field has a read function, it may be a synthetic field or
|
|
6768
6768
|
// provide a default value, so its absence from the written data should
|
|
6769
6769
|
// not be cause for alarm.
|
|
6770
|
-
!c.getReadFunction(l, S.name.value) && globalThis.__DEV__ !== !1 && A.error(12,
|
|
6770
|
+
!c.getReadFunction(l, S.name.value) && globalThis.__DEV__ !== !1 && A.error(12, $e(S), i);
|
|
6771
6771
|
});
|
|
6772
6772
|
try {
|
|
6773
6773
|
var p = c.identify(i, {
|
|
@@ -6836,7 +6836,7 @@ var Id = (
|
|
|
6836
6836
|
var k = tr(v, r.variables);
|
|
6837
6837
|
(!k || k.if !== !1) && (h = !0);
|
|
6838
6838
|
}
|
|
6839
|
-
}),
|
|
6839
|
+
}), We(d)
|
|
6840
6840
|
) {
|
|
6841
6841
|
var y = a.get(d);
|
|
6842
6842
|
y && (p = p && y.clientOnly, h = h && y.deferred), a.set(d, xr(r, p, h));
|
|
@@ -6918,7 +6918,7 @@ function Ad(t, e, n, r) {
|
|
|
6918
6918
|
if (o && !q(a) && !B(a, o) && !Object.keys(a).every(function(f) {
|
|
6919
6919
|
return r.getFieldValue(o, f) !== void 0;
|
|
6920
6920
|
})) {
|
|
6921
|
-
var s = r.getFieldValue(t, "__typename") || r.getFieldValue(e, "__typename"), c =
|
|
6921
|
+
var s = r.getFieldValue(t, "__typename") || r.getFieldValue(e, "__typename"), c = Ge(n), u = "".concat(s, ".").concat(c);
|
|
6922
6922
|
if (!Za.has(u)) {
|
|
6923
6923
|
Za.add(u);
|
|
6924
6924
|
var l = [];
|
|
@@ -6976,7 +6976,7 @@ var Ms = (
|
|
|
6976
6976
|
// separation is to include c.callback in the cache key for
|
|
6977
6977
|
// maybeBroadcastWatch calls. See issue #5733.
|
|
6978
6978
|
o.callback,
|
|
6979
|
-
|
|
6979
|
+
Qe({ optimistic: c, id: u, variables: l })
|
|
6980
6980
|
);
|
|
6981
6981
|
}
|
|
6982
6982
|
}
|
|
@@ -7020,7 +7020,7 @@ var Ms = (
|
|
|
7020
7020
|
};
|
|
7021
7021
|
}, e.prototype.gc = function(n) {
|
|
7022
7022
|
var r;
|
|
7023
|
-
|
|
7023
|
+
Qe.reset(), ar.reset(), this.addTypenameTransform.resetCache(), (r = this.config.fragments) === null || r === void 0 || r.resetCaches();
|
|
7024
7024
|
var i = this.optimisticData.gc();
|
|
7025
7025
|
return n && !this.txCount && (n.resetResultCache ? this.resetResultCache(n.resetResultIdentities) : n.resetResultIdentities && this.storeReader.resetCanon()), i;
|
|
7026
7026
|
}, e.prototype.retain = function(n, r) {
|
|
@@ -7048,7 +7048,7 @@ var Ms = (
|
|
|
7048
7048
|
}
|
|
7049
7049
|
}, e.prototype.reset = function(n) {
|
|
7050
7050
|
var r = this;
|
|
7051
|
-
return this.init(),
|
|
7051
|
+
return this.init(), Qe.reset(), n && n.discardWatches ? (this.watches.forEach(function(i) {
|
|
7052
7052
|
return r.maybeBroadcastWatch.forget(i);
|
|
7053
7053
|
}), this.watches.clear(), Qa(this)) : this.broadcastWatches(), Promise.resolve();
|
|
7054
7054
|
}, e.prototype.removeOptimistic = function(n) {
|
|
@@ -7471,9 +7471,9 @@ var qs = (
|
|
|
7471
7471
|
}, t.prototype.getResolvers = function() {
|
|
7472
7472
|
return this.resolvers || {};
|
|
7473
7473
|
}, t.prototype.runResolvers = function(e) {
|
|
7474
|
-
return
|
|
7474
|
+
return je(this, arguments, void 0, function(n) {
|
|
7475
7475
|
var r = n.document, i = n.remoteResult, a = n.context, o = n.variables, s = n.onlyRunForcedResolvers, c = s === void 0 ? !1 : s;
|
|
7476
|
-
return
|
|
7476
|
+
return Le(this, function(u) {
|
|
7477
7477
|
return r ? [2, this.resolveDocument(r, i.data, a, o, this.fragmentMatcher, c).then(function(l) {
|
|
7478
7478
|
return g(g({}, i), { data: l.result });
|
|
7479
7479
|
})] : [2, i];
|
|
@@ -7497,8 +7497,8 @@ var qs = (
|
|
|
7497
7497
|
}
|
|
7498
7498
|
});
|
|
7499
7499
|
}, t.prototype.addExportedVariables = function(e) {
|
|
7500
|
-
return
|
|
7501
|
-
return r === void 0 && (r = {}), i === void 0 && (i = {}),
|
|
7500
|
+
return je(this, arguments, void 0, function(n, r, i) {
|
|
7501
|
+
return r === void 0 && (r = {}), i === void 0 && (i = {}), Le(this, function(a) {
|
|
7502
7502
|
return n ? [2, this.resolveDocument(n, this.buildRootValueFromCache(n, r) || {}, this.prepareContext(i), r).then(function(o) {
|
|
7503
7503
|
return g(g({}, r), o.exportedVariables);
|
|
7504
7504
|
})] : [2, g({}, r)];
|
|
@@ -7524,11 +7524,11 @@ var qs = (
|
|
|
7524
7524
|
optimistic: !1
|
|
7525
7525
|
}).result;
|
|
7526
7526
|
}, t.prototype.resolveDocument = function(e, n) {
|
|
7527
|
-
return
|
|
7527
|
+
return je(this, arguments, void 0, function(r, i, a, o, s, c) {
|
|
7528
7528
|
var u, l, f, d, p, h, y, m, v, b, k;
|
|
7529
7529
|
return a === void 0 && (a = {}), o === void 0 && (o = {}), s === void 0 && (s = function() {
|
|
7530
7530
|
return !0;
|
|
7531
|
-
}), c === void 0 && (c = !1),
|
|
7531
|
+
}), c === void 0 && (c = !1), Le(this, function(S) {
|
|
7532
7532
|
return u = pn(r), l = nr(r), f = Zn(l), d = this.collectSelectionsToResolve(u, f), p = u.operation, h = p ? p.charAt(0).toUpperCase() + p.slice(1) : "Query", y = this, m = y.cache, v = y.client, b = {
|
|
7533
7533
|
fragmentMap: f,
|
|
7534
7534
|
context: g(g({}, a), { cache: m, client: v }),
|
|
@@ -7547,19 +7547,19 @@ var qs = (
|
|
|
7547
7547
|
});
|
|
7548
7548
|
});
|
|
7549
7549
|
}, t.prototype.resolveSelectionSet = function(e, n, r, i) {
|
|
7550
|
-
return
|
|
7550
|
+
return je(this, void 0, void 0, function() {
|
|
7551
7551
|
var a, o, s, c, u, l = this;
|
|
7552
|
-
return
|
|
7552
|
+
return Le(this, function(f) {
|
|
7553
7553
|
return a = i.fragmentMap, o = i.context, s = i.variables, c = [r], u = function(d) {
|
|
7554
|
-
return
|
|
7554
|
+
return je(l, void 0, void 0, function() {
|
|
7555
7555
|
var p, h;
|
|
7556
|
-
return
|
|
7556
|
+
return Le(this, function(y) {
|
|
7557
7557
|
return !n && !i.selectionsToResolve.has(d) ? [
|
|
7558
7558
|
2
|
|
7559
7559
|
/*return*/
|
|
7560
|
-
] : ln(d, s) ?
|
|
7560
|
+
] : ln(d, s) ? We(d) ? [2, this.resolveField(d, n, r, i).then(function(m) {
|
|
7561
7561
|
var v;
|
|
7562
|
-
typeof m < "u" && c.push((v = {}, v[
|
|
7562
|
+
typeof m < "u" && c.push((v = {}, v[$e(d)] = m, v));
|
|
7563
7563
|
})] : (Hc(d) ? p = d : (p = a[d.name.value], A(p, 18, d.name.value)), p && p.typeCondition && (h = p.typeCondition.name.value, i.fragmentMatcher(r, h, o)) ? [2, this.resolveSelectionSet(p.selectionSet, n, r, i).then(function(m) {
|
|
7564
7564
|
c.push(m);
|
|
7565
7565
|
})] : [
|
|
@@ -7577,10 +7577,10 @@ var qs = (
|
|
|
7577
7577
|
});
|
|
7578
7578
|
});
|
|
7579
7579
|
}, t.prototype.resolveField = function(e, n, r, i) {
|
|
7580
|
-
return
|
|
7580
|
+
return je(this, void 0, void 0, function() {
|
|
7581
7581
|
var a, o, s, c, u, l, f, d, p, h = this;
|
|
7582
|
-
return
|
|
7583
|
-
return r ? (a = i.variables, o = e.name.value, s =
|
|
7582
|
+
return Le(this, function(y) {
|
|
7583
|
+
return r ? (a = i.variables, o = e.name.value, s = $e(e), c = o !== s, u = r[s] || r[o], l = Promise.resolve(u), (!i.onlyRunForcedResolvers || this.shouldForceResolvers(e)) && (f = r.__typename || i.defaultOperationType, d = this.resolvers && this.resolvers[f], d && (p = d[c ? o : s], p && (l = Promise.resolve(
|
|
7584
7584
|
// In case the resolve function accesses reactive variables,
|
|
7585
7585
|
// set cacheSlot to the current cache instance.
|
|
7586
7586
|
Li.withValue(this.cache, p, [
|
|
@@ -7760,7 +7760,7 @@ var Pr = (
|
|
|
7760
7760
|
// the cache will repair what was evicted.
|
|
7761
7761
|
r.dmCount === kt.get(this.cache) && B(n, r.variables) && B(e.data, r.result.data));
|
|
7762
7762
|
}, t.prototype.markResult = function(e, n, r, i) {
|
|
7763
|
-
var a = this, o = new
|
|
7763
|
+
var a = this, o = new Ke(), s = Se(e.errors) ? e.errors.slice(0) : [];
|
|
7764
7764
|
if (this.reset(), "incremental" in e && Se(e.incremental)) {
|
|
7765
7765
|
var c = gs(this.getDiff().result, e);
|
|
7766
7766
|
e.data = c;
|
|
@@ -7827,9 +7827,9 @@ var Rd = Object.prototype.hasOwnProperty, no = /* @__PURE__ */ Object.create(nul
|
|
|
7827
7827
|
return n(e);
|
|
7828
7828
|
}), this.fetchCancelFns.clear();
|
|
7829
7829
|
}, t.prototype.mutate = function(e) {
|
|
7830
|
-
return
|
|
7830
|
+
return je(this, arguments, void 0, function(n) {
|
|
7831
7831
|
var r, i, a, o, s, c, u, l = n.mutation, f = n.variables, d = n.optimisticResponse, p = n.updateQueries, h = n.refetchQueries, y = h === void 0 ? [] : h, m = n.awaitRefetchQueries, v = m === void 0 ? !1 : m, b = n.update, k = n.onQueryUpdated, S = n.fetchPolicy, E = S === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.fetchPolicy) || "network-only" : S, w = n.errorPolicy, O = w === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.errorPolicy) || "none" : w, _ = n.keepRootFields, D = n.context;
|
|
7832
|
-
return
|
|
7832
|
+
return Le(this, function(I) {
|
|
7833
7833
|
switch (I.label) {
|
|
7834
7834
|
case 0:
|
|
7835
7835
|
return A(l, 26), A(E === "network-only" || E === "no-cache", 27), r = this.generateMutationId(), l = this.cache.transformForLink(this.transform(l)), i = this.getDocumentInfo(l).hasClientExports, f = this.getVariables(l, f), i ? [4, this.localState.addExportedVariables(l, f, D)] : [3, 2];
|
|
@@ -8185,7 +8185,7 @@ var Rd = Object.prototype.hasOwnProperty, no = /* @__PURE__ */ Object.create(nul
|
|
|
8185
8185
|
context: this.prepareContext(g(g({}, n), { forceFetch: !i }))
|
|
8186
8186
|
};
|
|
8187
8187
|
if (n = h.context, i) {
|
|
8188
|
-
var y = ar(u), m =
|
|
8188
|
+
var y = ar(u), m = Qe(r), v = d.lookup(y, m);
|
|
8189
8189
|
if (s = v.observable, !s) {
|
|
8190
8190
|
var b = new mt([
|
|
8191
8191
|
ii(p, h)
|
|
@@ -8697,7 +8697,7 @@ const Qs = (t = {}) => {
|
|
|
8697
8697
|
};
|
|
8698
8698
|
class Wd {
|
|
8699
8699
|
constructor(e) {
|
|
8700
|
-
|
|
8700
|
+
Me(this, "options"), Me(this, "callback"), this.options = {}, this.callback = e;
|
|
8701
8701
|
}
|
|
8702
8702
|
limit(e) {
|
|
8703
8703
|
return this.options.limit = e, this;
|
|
@@ -8732,7 +8732,7 @@ class Wd {
|
|
|
8732
8732
|
return Array.isArray(n) ? n[0] : null;
|
|
8733
8733
|
}
|
|
8734
8734
|
}
|
|
8735
|
-
const zd = "@dashx/browser", Kd = "dashx-browser", Gd = "0.
|
|
8735
|
+
const zd = "@dashx/browser", Kd = "dashx-browser", Gd = "0.2.0", Jd = "DashX SDK for Browser", Hd = [
|
|
8736
8736
|
"dist"
|
|
8737
8737
|
], Yd = "./dist/index.umd.js", Xd = "./dist/index.es.js", Zd = "./dist/index.es.d.ts", ef = {
|
|
8738
8738
|
".": {
|
|
@@ -8834,8 +8834,13 @@ function jr(t, e) {
|
|
|
8834
8834
|
const mf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddContent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "AddContentInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "addContent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ContentFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ContentFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomContent" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "position" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] }, vf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddItemToCart" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "AddItemToCartInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "addItemToCart" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CartFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ItemFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Item" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "pricings" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "amount" } }, { kind: "Field", name: { kind: "Name", value: "originalAmount" } }, { kind: "Field", name: { kind: "Name", value: "isRecurring" } }, { kind: "Field", name: { kind: "Name", value: "recurringInterval" } }, { kind: "Field", name: { kind: "Name", value: "recurringIntervalUnit" } }, { kind: "Field", name: { kind: "Name", value: "appleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "googleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CartFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Order" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "gatewayMeta" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "orderItems" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "quantity" } }, { kind: "Field", name: { kind: "Name", value: "unitPrice" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "custom" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "item" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ItemFragment" } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "couponRedemptions" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "coupon" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "discountType" } }, { kind: "Field", name: { kind: "Name", value: "discountAmount" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "expiresAt" } }] } }] } }] } }] }, yf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ApplyCouponToCart" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ApplyCouponToCartInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "applyCouponToCart" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CartFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ItemFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Item" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "pricings" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "amount" } }, { kind: "Field", name: { kind: "Name", value: "originalAmount" } }, { kind: "Field", name: { kind: "Name", value: "isRecurring" } }, { kind: "Field", name: { kind: "Name", value: "recurringInterval" } }, { kind: "Field", name: { kind: "Name", value: "recurringIntervalUnit" } }, { kind: "Field", name: { kind: "Name", value: "appleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "googleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CartFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Order" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "gatewayMeta" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "orderItems" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "quantity" } }, { kind: "Field", name: { kind: "Name", value: "unitPrice" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "custom" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "item" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ItemFragment" } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "couponRedemptions" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "coupon" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "discountType" } }, { kind: "Field", name: { kind: "Name", value: "discountAmount" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "expiresAt" } }] } }] } }] } }] }, gf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "Asset" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UUID" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "asset" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AssetFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "AssetFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Asset" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "attributeId" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "mimeType" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "processingStatus" } }, { kind: "Field", name: { kind: "Name", value: "resourceId" } }, { kind: "Field", name: { kind: "Name", value: "size" } }, { kind: "Field", name: { kind: "Name", value: "storageProviderId" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "uploadStatus" } }, { kind: "Field", name: { kind: "Name", value: "uploaderId" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "workspaceId" } }] } }] }, kf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "EditContent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "EditContentInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "editContent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ContentFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ContentFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomContent" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "position" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] }, bf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCart" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FetchCartInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fetchCart" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CartFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ItemFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Item" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "pricings" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "amount" } }, { kind: "Field", name: { kind: "Name", value: "originalAmount" } }, { kind: "Field", name: { kind: "Name", value: "isRecurring" } }, { kind: "Field", name: { kind: "Name", value: "recurringInterval" } }, { kind: "Field", name: { kind: "Name", value: "recurringIntervalUnit" } }, { kind: "Field", name: { kind: "Name", value: "appleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "googleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CartFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Order" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "gatewayMeta" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "orderItems" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "quantity" } }, { kind: "Field", name: { kind: "Name", value: "unitPrice" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "custom" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "item" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ItemFragment" } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "couponRedemptions" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "coupon" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "discountType" } }, { kind: "Field", name: { kind: "Name", value: "discountAmount" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "expiresAt" } }] } }] } }] } }] }, Nf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchContacts" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FetchContactsInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fetchContacts" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "contacts" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ContactFragment" } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ContactFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Contact" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "accountId" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "value" } }, { kind: "Field", name: { kind: "Name", value: "unverifiedValue" } }, { kind: "Field", name: { kind: "Name", value: "verifiedAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "tag" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] }, Sf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchContent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FetchContentInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fetchContent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }] }] } }] }, wn = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchInAppNotifications" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FetchInAppNotificationsInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "notifications" }, name: { kind: "Name", value: "fetchInAppNotifications" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "sentAt" } }, { kind: "Field", name: { kind: "Name", value: "readAt" } }, { kind: "Field", name: { kind: "Name", value: "renderedContent" } }] } }] } }] }, pt = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchInAppNotificationsAggregate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FetchInAppNotificationsAggregateInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "notificationsAggregate" }, name: { kind: "Name", value: "fetchInAppNotificationsAggregate" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "count" } }] } }] } }] }, Ef = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoredPreferences" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "FetchStoredPreferencesInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fetchStoredPreferences" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "preferenceData" } }] } }] } }] }, wf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "IdentifyAccount" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "IdentifyAccountInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "identifyAccount" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }] }, Of = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "prepareAsset" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "PrepareAssetInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "prepareAsset" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "AssetFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "AssetFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Asset" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "attributeId" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "mimeType" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "processingStatus" } }, { kind: "Field", name: { kind: "Name", value: "resourceId" } }, { kind: "Field", name: { kind: "Name", value: "size" } }, { kind: "Field", name: { kind: "Name", value: "storageProviderId" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "uploadStatus" } }, { kind: "Field", name: { kind: "Name", value: "uploaderId" } }, { kind: "Field", name: { kind: "Name", value: "url" } }, { kind: "Field", name: { kind: "Name", value: "workspaceId" } }] } }] }, Tf = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "RemoveCouponFromCart" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "RemoveCouponFromCartInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "removeCouponFromCart" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CartFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ItemFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Item" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "pricings" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "amount" } }, { kind: "Field", name: { kind: "Name", value: "originalAmount" } }, { kind: "Field", name: { kind: "Name", value: "isRecurring" } }, { kind: "Field", name: { kind: "Name", value: "recurringInterval" } }, { kind: "Field", name: { kind: "Name", value: "recurringIntervalUnit" } }, { kind: "Field", name: { kind: "Name", value: "appleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "googleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CartFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Order" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "gatewayMeta" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "orderItems" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "quantity" } }, { kind: "Field", name: { kind: "Name", value: "unitPrice" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "custom" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "item" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ItemFragment" } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "couponRedemptions" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "coupon" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "discountType" } }, { kind: "Field", name: { kind: "Name", value: "discountAmount" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "expiresAt" } }] } }] } }] } }] }, _f = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "SaveContacts" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SaveContactsInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "saveContacts" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "contacts" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ContactFragment" } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ContactFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Contact" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "accountId" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "value" } }, { kind: "Field", name: { kind: "Name", value: "unverifiedValue" } }, { kind: "Field", name: { kind: "Name", value: "verifiedAt" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "tag" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] }, Ff = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "SaveStoredPreferences" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SaveStoredPreferencesInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "saveStoredPreferences" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "success" } }] } }] } }] }, ao = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchContent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "SearchContentInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchContent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }] }] } }] }, Df = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "TrackEvent" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "TrackEventInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "trackEvent" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "success" } }] } }] } }] }, If = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "TrackNotification" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "TrackNotificationInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "trackNotification" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "success" } }] } }] } }] }, Af = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "TransferCart" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "input" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "TransferCartInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "transferCart" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "input" }, value: { kind: "Variable", name: { kind: "Name", value: "input" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "CartFragment" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ItemFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Item" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }, { kind: "Field", name: { kind: "Name", value: "pricings" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "kind" } }, { kind: "Field", name: { kind: "Name", value: "amount" } }, { kind: "Field", name: { kind: "Name", value: "originalAmount" } }, { kind: "Field", name: { kind: "Name", value: "isRecurring" } }, { kind: "Field", name: { kind: "Name", value: "recurringInterval" } }, { kind: "Field", name: { kind: "Name", value: "recurringIntervalUnit" } }, { kind: "Field", name: { kind: "Name", value: "appleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "googleProductIdentifier" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "createdAt" } }, { kind: "Field", name: { kind: "Name", value: "updatedAt" } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "CartFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Order" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "gatewayMeta" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "orderItems" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "quantity" } }, { kind: "Field", name: { kind: "Name", value: "unitPrice" } }, { kind: "Field", name: { kind: "Name", value: "subtotal" } }, { kind: "Field", name: { kind: "Name", value: "discount" } }, { kind: "Field", name: { kind: "Name", value: "tax" } }, { kind: "Field", name: { kind: "Name", value: "total" } }, { kind: "Field", name: { kind: "Name", value: "custom" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "item" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ItemFragment" } }] } }] } }, { kind: "Field", name: { kind: "Name", value: "couponRedemptions" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "coupon" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "identifier" } }, { kind: "Field", name: { kind: "Name", value: "discountType" } }, { kind: "Field", name: { kind: "Name", value: "discountAmount" } }, { kind: "Field", name: { kind: "Name", value: "currencyCode" } }, { kind: "Field", name: { kind: "Name", value: "expiresAt" } }] } }] } }] } }] }, xf = 5, Cf = 3e3, ye = "This operation can be performed only by an identified user. Ensure `dashx.identify` is run before calling this method.";
|
|
8835
8835
|
var Wt = /* @__PURE__ */ ((t) => (t.SUBSCRIBE = "SUBSCRIBE", t.SUBSCRIPTION_SUCCEEDED = "SUBSCRIPTION_SUCCEEDED", t.IN_APP_NOTIFICATION = "IN_APP_NOTIFICATION", t))(Wt || {}), ce, j, Pe;
|
|
8836
8836
|
class Rf {
|
|
8837
|
-
constructor({
|
|
8838
|
-
|
|
8837
|
+
constructor({
|
|
8838
|
+
publicKey: e,
|
|
8839
|
+
baseUri: n = "https://api.dashx.com/graphql",
|
|
8840
|
+
realtimeBaseUri: r = "wss://realtime.dashx.com",
|
|
8841
|
+
targetEnvironment: i
|
|
8842
|
+
}) {
|
|
8843
|
+
kr(this, ce, void 0), kr(this, j, null), kr(this, Pe, null), Me(this, "graphqlClient"), Me(this, "targetEnvironment"), Me(this, "context"), Me(this, "publicKey"), Me(this, "baseUri"), Me(this, "realtimeBaseUri"), this.baseUri = n, this.realtimeBaseUri = r, this.publicKey = e, this.targetEnvironment = i, this.context = hf(), this.loadIdentity(), this.initGraphqlClient();
|
|
8839
8844
|
}
|
|
8840
8845
|
get accountAnonymousUid() {
|
|
8841
8846
|
return R(this, ce);
|
|
@@ -9277,17 +9282,19 @@ function Wm({
|
|
|
9277
9282
|
children: t,
|
|
9278
9283
|
publicKey: e,
|
|
9279
9284
|
baseUri: n,
|
|
9280
|
-
|
|
9285
|
+
realtimeBaseUri: r,
|
|
9286
|
+
targetEnvironment: i
|
|
9281
9287
|
}) {
|
|
9282
|
-
const
|
|
9288
|
+
const a = C.useMemo(
|
|
9283
9289
|
() => Pf({
|
|
9284
9290
|
publicKey: e,
|
|
9285
9291
|
baseUri: n,
|
|
9286
|
-
|
|
9292
|
+
realtimeBaseUri: r,
|
|
9293
|
+
targetEnvironment: i
|
|
9287
9294
|
}),
|
|
9288
|
-
[e, n,
|
|
9295
|
+
[e, n, i]
|
|
9289
9296
|
);
|
|
9290
|
-
return /* @__PURE__ */ C.createElement($s.Provider, { value:
|
|
9297
|
+
return /* @__PURE__ */ C.createElement($s.Provider, { value: a }, t);
|
|
9291
9298
|
}
|
|
9292
9299
|
const Ws = () => {
|
|
9293
9300
|
const t = C.useContext($s);
|
|
@@ -9297,11 +9304,11 @@ const Ws = () => {
|
|
|
9297
9304
|
);
|
|
9298
9305
|
return t;
|
|
9299
9306
|
};
|
|
9300
|
-
let Mf = { data: "" }, jf = (t) => typeof window == "object" ? ((t ? t.querySelector("#_goober") : window._goober) || Object.assign((t || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t || Mf, Lf = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, qf = /\/\*[^]*?\*\/| +/g, oo = /\n+/g,
|
|
9307
|
+
let Mf = { data: "" }, jf = (t) => typeof window == "object" ? ((t ? t.querySelector("#_goober") : window._goober) || Object.assign((t || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t || Mf, Lf = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, qf = /\/\*[^]*?\*\/| +/g, oo = /\n+/g, Be = (t, e) => {
|
|
9301
9308
|
let n = "", r = "", i = "";
|
|
9302
9309
|
for (let a in t) {
|
|
9303
9310
|
let o = t[a];
|
|
9304
|
-
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ?
|
|
9311
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? Be(o, a) : a + "{" + Be(o, a[1] == "k" ? "" : e) + "}" : typeof o == "object" ? r += Be(o, e ? e.replace(/([^,])+/g, (s) => a.replace(/(^:.*)|([^,])+/g, (c) => /&/.test(c) ? c.replace(/&/g, s) : s ? s + " " + c : c)) : a) : o != null && (a = /^--/.test(a) ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += Be.p ? Be.p(a, o) : a + ":" + o + ";");
|
|
9305
9312
|
}
|
|
9306
9313
|
return n + (e && i ? e + "{" + i + "}" : i) + r;
|
|
9307
9314
|
}, Te = {}, zs = (t) => {
|
|
@@ -9326,7 +9333,7 @@ let Mf = { data: "" }, jf = (t) => typeof window == "object" ? ((t ? t.querySele
|
|
|
9326
9333
|
l[4] ? d.shift() : l[3] ? (f = l[3].replace(oo, " ").trim(), d.unshift(d[0][f] = d[0][f] || {})) : d[0][l[1]] = l[2].replace(oo, " ").trim();
|
|
9327
9334
|
return d[0];
|
|
9328
9335
|
})(t);
|
|
9329
|
-
Te[o] =
|
|
9336
|
+
Te[o] = Be(i ? { ["@keyframes " + o]: c } : c, n ? "" : "." + o);
|
|
9330
9337
|
}
|
|
9331
9338
|
let s = n && Te.g ? Te.g : null;
|
|
9332
9339
|
return n && (Te.g = Te[o]), ((c, u, l, f) => {
|
|
@@ -9336,7 +9343,7 @@ let Mf = { data: "" }, jf = (t) => typeof window == "object" ? ((t ? t.querySele
|
|
|
9336
9343
|
let o = e[a];
|
|
9337
9344
|
if (o && o.call) {
|
|
9338
9345
|
let s = o(n), c = s && s.props && s.props.className || /^go/.test(s) && s;
|
|
9339
|
-
o = c ? "." + c : s && typeof s == "object" ? s.props ? "" :
|
|
9346
|
+
o = c ? "." + c : s && typeof s == "object" ? s.props ? "" : Be(s, "") : s === !1 ? "" : s;
|
|
9340
9347
|
}
|
|
9341
9348
|
return r + i + (o ?? "");
|
|
9342
9349
|
}, "");
|
|
@@ -9348,9 +9355,9 @@ let Ks, mi, vi;
|
|
|
9348
9355
|
sr.bind({ g: 1 });
|
|
9349
9356
|
let Ie = sr.bind({ k: 1 });
|
|
9350
9357
|
function Bf(t, e, n, r) {
|
|
9351
|
-
|
|
9358
|
+
Be.p = e, Ks = t, mi = n, vi = r;
|
|
9352
9359
|
}
|
|
9353
|
-
function
|
|
9360
|
+
function He(t, e) {
|
|
9354
9361
|
let n = this || {};
|
|
9355
9362
|
return function() {
|
|
9356
9363
|
let r = arguments;
|
|
@@ -9494,7 +9501,7 @@ from {
|
|
|
9494
9501
|
to {
|
|
9495
9502
|
transform: scale(1) rotate(90deg);
|
|
9496
9503
|
opacity: 1;
|
|
9497
|
-
}`, rp =
|
|
9504
|
+
}`, rp = He("div")`
|
|
9498
9505
|
width: 20px;
|
|
9499
9506
|
opacity: 0;
|
|
9500
9507
|
height: 20px;
|
|
@@ -9534,7 +9541,7 @@ to {
|
|
|
9534
9541
|
to {
|
|
9535
9542
|
transform: rotate(360deg);
|
|
9536
9543
|
}
|
|
9537
|
-
`, ap =
|
|
9544
|
+
`, ap = He("div")`
|
|
9538
9545
|
width: 12px;
|
|
9539
9546
|
height: 12px;
|
|
9540
9547
|
box-sizing: border-box;
|
|
@@ -9565,7 +9572,7 @@ to {
|
|
|
9565
9572
|
100% {
|
|
9566
9573
|
opacity: 1;
|
|
9567
9574
|
height: 10px;
|
|
9568
|
-
}`, up =
|
|
9575
|
+
}`, up = He("div")`
|
|
9569
9576
|
width: 20px;
|
|
9570
9577
|
opacity: 0;
|
|
9571
9578
|
height: 20px;
|
|
@@ -9592,9 +9599,9 @@ to {
|
|
|
9592
9599
|
height: 10px;
|
|
9593
9600
|
width: 6px;
|
|
9594
9601
|
}
|
|
9595
|
-
`, cp =
|
|
9602
|
+
`, cp = He("div")`
|
|
9596
9603
|
position: absolute;
|
|
9597
|
-
`, lp =
|
|
9604
|
+
`, lp = He("div")`
|
|
9598
9605
|
position: relative;
|
|
9599
9606
|
display: flex;
|
|
9600
9607
|
justify-content: center;
|
|
@@ -9609,7 +9616,7 @@ from {
|
|
|
9609
9616
|
to {
|
|
9610
9617
|
transform: scale(1);
|
|
9611
9618
|
opacity: 1;
|
|
9612
|
-
}`, fp =
|
|
9619
|
+
}`, fp = He("div")`
|
|
9613
9620
|
position: relative;
|
|
9614
9621
|
transform: scale(0.6);
|
|
9615
9622
|
opacity: 0.4;
|
|
@@ -9625,7 +9632,7 @@ to {
|
|
|
9625
9632
|
`, mp = (t) => `
|
|
9626
9633
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
9627
9634
|
100% {transform: translate3d(0,${t * -150}%,-1px) scale(.6); opacity:0;}
|
|
9628
|
-
`, vp = "0%{opacity:0;} 100%{opacity:1;}", yp = "0%{opacity:1;} 100%{opacity:0;}", gp =
|
|
9635
|
+
`, vp = "0%{opacity:0;} 100%{opacity:1;}", yp = "0%{opacity:1;} 100%{opacity:0;}", gp = He("div")`
|
|
9629
9636
|
display: flex;
|
|
9630
9637
|
align-items: center;
|
|
9631
9638
|
background: #fff;
|
|
@@ -9637,7 +9644,7 @@ to {
|
|
|
9637
9644
|
pointer-events: auto;
|
|
9638
9645
|
padding: 8px 10px;
|
|
9639
9646
|
border-radius: 8px;
|
|
9640
|
-
`, kp =
|
|
9647
|
+
`, kp = He("div")`
|
|
9641
9648
|
display: flex;
|
|
9642
9649
|
justify-content: center;
|
|
9643
9650
|
margin: 4px 10px;
|
|
@@ -9767,7 +9774,7 @@ function Ip(t, e) {
|
|
|
9767
9774
|
};
|
|
9768
9775
|
}
|
|
9769
9776
|
mn.heartbeat = Ip;
|
|
9770
|
-
var
|
|
9777
|
+
var Je = {}, dr = {};
|
|
9771
9778
|
(function(t) {
|
|
9772
9779
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.resetSubscribers = t.removeSubscriber = t.addSubscriber = t.hasSubscribers = t.getSubscribers = void 0;
|
|
9773
9780
|
var e = {}, n = [], r = function(c) {
|
|
@@ -9796,18 +9803,18 @@ var Ge = {}, dr = {};
|
|
|
9796
9803
|
};
|
|
9797
9804
|
t.resetSubscribers = s;
|
|
9798
9805
|
})(dr);
|
|
9799
|
-
Object.defineProperty(
|
|
9800
|
-
|
|
9806
|
+
Object.defineProperty(Je, "__esModule", { value: !0 });
|
|
9807
|
+
Je.resetGlobalState = Je.assertIsWebSocket = void 0;
|
|
9801
9808
|
var Ap = cr, xp = dr;
|
|
9802
9809
|
function Cp(t, e) {
|
|
9803
9810
|
if (!e && !(t instanceof WebSocket))
|
|
9804
9811
|
throw new Error("");
|
|
9805
9812
|
}
|
|
9806
|
-
|
|
9813
|
+
Je.assertIsWebSocket = Cp;
|
|
9807
9814
|
function Rp(t) {
|
|
9808
9815
|
(0, xp.resetSubscribers)(t), (0, Ap.resetWebSockets)(t);
|
|
9809
9816
|
}
|
|
9810
|
-
|
|
9817
|
+
Je.resetGlobalState = Rp;
|
|
9811
9818
|
var Wn = z && z.__assign || function() {
|
|
9812
9819
|
return Wn = Object.assign || function(t) {
|
|
9813
9820
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
@@ -9820,7 +9827,7 @@ var Wn = z && z.__assign || function() {
|
|
|
9820
9827
|
};
|
|
9821
9828
|
Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
9822
9829
|
lr.attachListeners = void 0;
|
|
9823
|
-
var Pp = be, Mp = mn, ke = ve, jp =
|
|
9830
|
+
var Pp = be, Mp = mn, ke = ve, jp = Je, Lp = function(t, e, n) {
|
|
9824
9831
|
var r;
|
|
9825
9832
|
if (e.current.heartbeat && t instanceof WebSocket) {
|
|
9826
9833
|
var i = typeof e.current.heartbeat == "boolean" ? void 0 : e.current.heartbeat;
|
|
@@ -9935,17 +9942,17 @@ var Qp = cr, it = ve, sn = dr, $p = be, Wp = mn, zp = function(t, e, n) {
|
|
|
9935
9942
|
fr.attachSharedListeners = Hp;
|
|
9936
9943
|
Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
9937
9944
|
ur.createOrJoinSocket = void 0;
|
|
9938
|
-
var
|
|
9945
|
+
var Ve = cr, zt = ve, Yp = lr, Xp = fr, gi = dr, Zp = function(t, e, n, r, i) {
|
|
9939
9946
|
return function() {
|
|
9940
9947
|
if ((0, gi.removeSubscriber)(t, e), !(0, gi.hasSubscribers)(t)) {
|
|
9941
9948
|
try {
|
|
9942
|
-
var a =
|
|
9949
|
+
var a = Ve.sharedWebSockets[t];
|
|
9943
9950
|
a instanceof WebSocket && (a.onclose = function(o) {
|
|
9944
9951
|
n.current.onClose && n.current.onClose(o), r(zt.ReadyState.CLOSED);
|
|
9945
9952
|
}), a.close();
|
|
9946
9953
|
} catch {
|
|
9947
9954
|
}
|
|
9948
|
-
i && i(), delete
|
|
9955
|
+
i && i(), delete Ve.sharedWebSockets[t];
|
|
9949
9956
|
}
|
|
9950
9957
|
};
|
|
9951
9958
|
}, eh = function(t, e, n, r, i, a, o, s) {
|
|
@@ -9953,7 +9960,7 @@ var qe = cr, zt = ve, Yp = lr, Xp = fr, gi = dr, Zp = function(t, e, n, r, i) {
|
|
|
9953
9960
|
throw zt.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
|
|
9954
9961
|
if (r.current.share) {
|
|
9955
9962
|
var c = null;
|
|
9956
|
-
|
|
9963
|
+
Ve.sharedWebSockets[e] === void 0 ? (Ve.sharedWebSockets[e] = r.current.eventSourceOptions ? new EventSource(e, r.current.eventSourceOptions) : new WebSocket(e, r.current.protocols), t.current = Ve.sharedWebSockets[e], n(zt.ReadyState.CONNECTING), c = (0, Xp.attachSharedListeners)(Ve.sharedWebSockets[e], e, r, s)) : (t.current = Ve.sharedWebSockets[e], n(Ve.sharedWebSockets[e].readyState));
|
|
9957
9964
|
var u = {
|
|
9958
9965
|
setLastMessage: i,
|
|
9959
9966
|
setReadyState: n,
|
|
@@ -10124,15 +10131,15 @@ var Xs = {};
|
|
|
10124
10131
|
};
|
|
10125
10132
|
t.websocketWrapper = e, t.default = t.websocketWrapper;
|
|
10126
10133
|
})(Xs);
|
|
10127
|
-
var
|
|
10128
|
-
return
|
|
10134
|
+
var Ue = z && z.__assign || function() {
|
|
10135
|
+
return Ue = Object.assign || function(t) {
|
|
10129
10136
|
for (var e, n = 1, r = arguments.length; n < r; n++) {
|
|
10130
10137
|
e = arguments[n];
|
|
10131
10138
|
for (var i in e)
|
|
10132
10139
|
Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
|
|
10133
10140
|
}
|
|
10134
10141
|
return t;
|
|
10135
|
-
},
|
|
10142
|
+
}, Ue.apply(this, arguments);
|
|
10136
10143
|
}, th = z && z.__awaiter || function(t, e, n, r) {
|
|
10137
10144
|
function i(a) {
|
|
10138
10145
|
return a instanceof n ? a : new n(function(o) {
|
|
@@ -10228,7 +10235,7 @@ var Ve = z && z.__assign || function() {
|
|
|
10228
10235
|
};
|
|
10229
10236
|
Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
10230
10237
|
Pt.useWebSocket = void 0;
|
|
10231
|
-
var ee = C, qr = mu, ge = ve, ih = ur, ah = Ys, oh = rh(Xs), uo =
|
|
10238
|
+
var ee = C, qr = mu, ge = ve, ih = ur, ah = Ys, oh = rh(Xs), uo = Je, sh = function(t, e, n) {
|
|
10232
10239
|
e === void 0 && (e = ge.DEFAULT_OPTIONS), n === void 0 && (n = !0);
|
|
10233
10240
|
var r = (0, ee.useState)(null), i = r[0], a = r[1], o = (0, ee.useState)({}), s = o[0], c = o[1], u = (0, ee.useMemo)(function() {
|
|
10234
10241
|
if (i)
|
|
@@ -10265,7 +10272,7 @@ var ee = C, qr = mu, ge = ve, ih = ur, ah = Ys, oh = rh(Xs), uo = Ge, sh = funct
|
|
|
10265
10272
|
case 1:
|
|
10266
10273
|
return I.current = M.sent(), l.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), l.current = "ABORTED", (0, qr.flushSync)(function() {
|
|
10267
10274
|
return c(function(Q) {
|
|
10268
|
-
return
|
|
10275
|
+
return Ue(Ue({}, Q), { ABORTED: ge.ReadyState.CLOSED });
|
|
10269
10276
|
});
|
|
10270
10277
|
}), [
|
|
10271
10278
|
2
|
|
@@ -10278,7 +10285,7 @@ var ee = C, qr = mu, ge = ve, ih = ur, ah = Ys, oh = rh(Xs), uo = Ge, sh = funct
|
|
|
10278
10285
|
O || (0, qr.flushSync)(function() {
|
|
10279
10286
|
return c(function(ie) {
|
|
10280
10287
|
var G;
|
|
10281
|
-
return
|
|
10288
|
+
return Ue(Ue({}, ie), l.current && (G = {}, G[l.current] = Q, G));
|
|
10282
10289
|
});
|
|
10283
10290
|
});
|
|
10284
10291
|
}, _ && (w = (0, ih.createOrJoinSocket)(f, l.current, K, m, L, d, p, k)), [
|
|
@@ -10297,7 +10304,7 @@ var ee = C, qr = mu, ge = ve, ih = ur, ah = Ys, oh = rh(Xs), uo = Ge, sh = funct
|
|
|
10297
10304
|
} else
|
|
10298
10305
|
(t === null || n === !1) && (p.current = 0, c(function(I) {
|
|
10299
10306
|
var L;
|
|
10300
|
-
return
|
|
10307
|
+
return Ue(Ue({}, I), l.current && (L = {}, L[l.current] = ge.ReadyState.CLOSED, L));
|
|
10301
10308
|
}));
|
|
10302
10309
|
}, [t, n, b, k]), (0, ee.useEffect)(function() {
|
|
10303
10310
|
v === ge.ReadyState.OPEN && h.current.splice(0).forEach(function(w) {
|
|
@@ -10415,7 +10422,7 @@ hr.useEventSource = hh;
|
|
|
10415
10422
|
Object.defineProperty(t, "useEventSource", { enumerable: !0, get: function() {
|
|
10416
10423
|
return i.useEventSource;
|
|
10417
10424
|
} });
|
|
10418
|
-
var a =
|
|
10425
|
+
var a = Je;
|
|
10419
10426
|
Object.defineProperty(t, "resetGlobalState", { enumerable: !0, get: function() {
|
|
10420
10427
|
return a.resetGlobalState;
|
|
10421
10428
|
} });
|
|
@@ -10430,7 +10437,7 @@ const mh = /* @__PURE__ */ Js(Hs), vh = [
|
|
|
10430
10437
|
Zt(() => {
|
|
10431
10438
|
t.watchFetchInAppNotifications(i), t.watchFetchInAppNotificationsAggregate(o);
|
|
10432
10439
|
}, []);
|
|
10433
|
-
let { sendJsonMessage: l } = mh(
|
|
10440
|
+
let { sendJsonMessage: l } = mh(t.realtimeBaseUri, {
|
|
10434
10441
|
queryParams: {
|
|
10435
10442
|
publicKey: t.publicKey,
|
|
10436
10443
|
...t.identityToken && { identityToken: t.identityToken },
|
|
@@ -10699,7 +10706,7 @@ function Ae(t) {
|
|
|
10699
10706
|
function Uh(t) {
|
|
10700
10707
|
return ["table", "td", "th"].indexOf(Ee(t)) >= 0;
|
|
10701
10708
|
}
|
|
10702
|
-
function
|
|
10709
|
+
function Ye(t) {
|
|
10703
10710
|
return ((st(t) ? t.ownerDocument : (
|
|
10704
10711
|
// $FlowFixMe[prop-missing]
|
|
10705
10712
|
t.document
|
|
@@ -10714,7 +10721,7 @@ function mr(t) {
|
|
|
10714
10721
|
t.parentNode || // DOM Element detected
|
|
10715
10722
|
(Qi(t) ? t.host : null) || // ShadowRoot detected
|
|
10716
10723
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
10717
|
-
|
|
10724
|
+
Ye(t)
|
|
10718
10725
|
);
|
|
10719
10726
|
}
|
|
10720
10727
|
function vo(t) {
|
|
@@ -10821,7 +10828,7 @@ function yo(t) {
|
|
|
10821
10828
|
var v = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), k = re, S = ne, E = window;
|
|
10822
10829
|
if (u) {
|
|
10823
10830
|
var w = yn(n), O = "clientHeight", _ = "clientWidth";
|
|
10824
|
-
if (w === se(n) && (w =
|
|
10831
|
+
if (w === se(n) && (w = Ye(n), Ae(w).position !== "static" && s === "absolute" && (O = "scrollHeight", _ = "scrollWidth")), w = w, i === ne || (i === re || i === fe) && a === un) {
|
|
10825
10832
|
S = de;
|
|
10826
10833
|
var D = f && w === E && E.visualViewport ? E.visualViewport.height : (
|
|
10827
10834
|
// $FlowFixMe[prop-missing]
|
|
@@ -10933,10 +10940,10 @@ function zi(t) {
|
|
|
10933
10940
|
};
|
|
10934
10941
|
}
|
|
10935
10942
|
function Ki(t) {
|
|
10936
|
-
return It(
|
|
10943
|
+
return It(Ye(t)).left + zi(t).scrollLeft;
|
|
10937
10944
|
}
|
|
10938
10945
|
function nm(t, e) {
|
|
10939
|
-
var n = se(t), r =
|
|
10946
|
+
var n = se(t), r = Ye(t), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
10940
10947
|
if (i) {
|
|
10941
10948
|
a = i.width, o = i.height;
|
|
10942
10949
|
var u = tu();
|
|
@@ -10950,7 +10957,7 @@ function nm(t, e) {
|
|
|
10950
10957
|
};
|
|
10951
10958
|
}
|
|
10952
10959
|
function rm(t) {
|
|
10953
|
-
var e, n =
|
|
10960
|
+
var e, n = Ye(t), r = zi(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = at(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = at(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + Ki(t), c = -r.scrollTop;
|
|
10954
10961
|
return Ae(i || n).direction === "rtl" && (s += at(n.clientWidth, i ? i.clientWidth : 0) - a), {
|
|
10955
10962
|
width: a,
|
|
10956
10963
|
height: o,
|
|
@@ -10987,7 +10994,7 @@ function im(t, e) {
|
|
|
10987
10994
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
10988
10995
|
}
|
|
10989
10996
|
function ko(t, e, n) {
|
|
10990
|
-
return e === Zs ? bi(nm(t, n)) : st(e) ? im(e, n) : bi(rm(
|
|
10997
|
+
return e === Zs ? bi(nm(t, n)) : st(e) ? im(e, n) : bi(rm(Ye(t)));
|
|
10991
10998
|
}
|
|
10992
10999
|
function am(t) {
|
|
10993
11000
|
var e = Xt(mr(t)), n = ["absolute", "fixed"].indexOf(Ae(t).position) >= 0, r = n && le(t) ? yn(t) : t;
|
|
@@ -11051,7 +11058,7 @@ function su(t) {
|
|
|
11051
11058
|
}
|
|
11052
11059
|
function cn(t, e) {
|
|
11053
11060
|
e === void 0 && (e = {});
|
|
11054
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, o = a === void 0 ? t.strategy : a, s = n.boundary, c = s === void 0 ? Th : s, u = n.rootBoundary, l = u === void 0 ? Zs : u, f = n.elementContext, d = f === void 0 ? Qt : f, p = n.altBoundary, h = p === void 0 ? !1 : p, y = n.padding, m = y === void 0 ? 0 : y, v = iu(typeof m != "number" ? m : au(m, vn)), b = d === Qt ? _h : Qt, k = t.rects.popper, S = t.elements[h ? b : d], E = om(st(S) ? S : S.contextElement ||
|
|
11061
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, o = a === void 0 ? t.strategy : a, s = n.boundary, c = s === void 0 ? Th : s, u = n.rootBoundary, l = u === void 0 ? Zs : u, f = n.elementContext, d = f === void 0 ? Qt : f, p = n.altBoundary, h = p === void 0 ? !1 : p, y = n.padding, m = y === void 0 ? 0 : y, v = iu(typeof m != "number" ? m : au(m, vn)), b = d === Qt ? _h : Qt, k = t.rects.popper, S = t.elements[h ? b : d], E = om(st(S) ? S : S.contextElement || Ye(t.elements.popper), c, l, o), w = It(t.elements.reference), O = su({
|
|
11055
11062
|
reference: w,
|
|
11056
11063
|
element: k,
|
|
11057
11064
|
strategy: "absolute",
|
|
@@ -11118,8 +11125,8 @@ function cm(t) {
|
|
|
11118
11125
|
padding: u
|
|
11119
11126
|
}), ae = Q ? M ? fe : re : M ? de : ne;
|
|
11120
11127
|
E[ie] > w[ie] && (ae = jn(ae));
|
|
11121
|
-
var
|
|
11122
|
-
if (a && J.push(G[K] <= 0), s && J.push(G[ae] <= 0, G[
|
|
11128
|
+
var Xe = jn(ae), J = [];
|
|
11129
|
+
if (a && J.push(G[K] <= 0), s && J.push(G[ae] <= 0, G[Xe] <= 0), J.every(function(Oe) {
|
|
11123
11130
|
return Oe;
|
|
11124
11131
|
})) {
|
|
11125
11132
|
D = L, _ = !1;
|
|
@@ -11130,9 +11137,9 @@ function cm(t) {
|
|
|
11130
11137
|
if (_)
|
|
11131
11138
|
for (var lt = h ? 3 : 1, dt = function(Ce) {
|
|
11132
11139
|
var Mt = S.find(function(gn) {
|
|
11133
|
-
var
|
|
11134
|
-
if (
|
|
11135
|
-
return
|
|
11140
|
+
var Ze = O.get(gn);
|
|
11141
|
+
if (Ze)
|
|
11142
|
+
return Ze.slice(0, Ce).every(function(vr) {
|
|
11136
11143
|
return vr;
|
|
11137
11144
|
});
|
|
11138
11145
|
});
|
|
@@ -11259,15 +11266,15 @@ function km(t) {
|
|
|
11259
11266
|
};
|
|
11260
11267
|
if (w) {
|
|
11261
11268
|
if (a) {
|
|
11262
|
-
var M, Q = S === "y" ? ne : re, ie = S === "y" ? de : fe, G = S === "y" ? "height" : "width", ae = w[S],
|
|
11269
|
+
var M, Q = S === "y" ? ne : re, ie = S === "y" ? de : fe, G = S === "y" ? "height" : "width", ae = w[S], Xe = ae + m[Q], J = ae - m[ie], lt = p ? -_[G] / 2 : 0, dt = b === Ft ? O[G] : _[G], ue = b === Ft ? -_[G] : -O[G], xe = e.elements.arrow, Oe = p && xe ? $i(xe) : {
|
|
11263
11270
|
width: 0,
|
|
11264
11271
|
height: 0
|
|
11265
|
-
}, Ce = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ru(), Mt = Ce[Q], gn = Ce[ie],
|
|
11272
|
+
}, Ce = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ru(), Mt = Ce[Q], gn = Ce[ie], Ze = Yt(0, O[G], Oe[G]), vr = k ? O[G] / 2 - lt - Ze - Mt - I.mainAxis : dt - Ze - Mt - I.mainAxis, uu = k ? -O[G] / 2 + lt + Ze + gn + I.mainAxis : ue + Ze + gn + I.mainAxis, yr = e.elements.arrow && yn(e.elements.arrow), cu = yr ? S === "y" ? yr.clientTop || 0 : yr.clientLeft || 0 : 0, Ji = (M = L == null ? void 0 : L[S]) != null ? M : 0, lu = ae + vr - Ji - cu, du = ae + uu - Ji, Hi = Yt(p ? Jn(Xe, lu) : Xe, ae, p ? at(J, du) : J);
|
|
11266
11273
|
w[S] = Hi, K[S] = Hi - ae;
|
|
11267
11274
|
}
|
|
11268
11275
|
if (s) {
|
|
11269
|
-
var Yi, fu = S === "x" ? ne : re, pu = S === "x" ? de : fe,
|
|
11270
|
-
w[E] = ra, K[E] = ra -
|
|
11276
|
+
var Yi, fu = S === "x" ? ne : re, pu = S === "x" ? de : fe, et = w[E], kn = E === "y" ? "height" : "width", Xi = et + m[fu], Zi = et - m[pu], gr = [ne, re].indexOf(v) !== -1, ea = (Yi = L == null ? void 0 : L[E]) != null ? Yi : 0, ta = gr ? Xi : et - O[kn] - _[kn] - ea + I.altAxis, na = gr ? et + O[kn] + _[kn] - ea - I.altAxis : Zi, ra = p && gr ? Qh(ta, et, na) : Yt(p ? ta : Xi, et, p ? na : Zi);
|
|
11277
|
+
w[E] = ra, K[E] = ra - et;
|
|
11271
11278
|
}
|
|
11272
11279
|
e.modifiersData[r] = K;
|
|
11273
11280
|
}
|
|
@@ -11294,7 +11301,7 @@ function Em(t) {
|
|
|
11294
11301
|
}
|
|
11295
11302
|
function wm(t, e, n) {
|
|
11296
11303
|
n === void 0 && (n = !1);
|
|
11297
|
-
var r = le(e), i = le(e) && Em(e), a =
|
|
11304
|
+
var r = le(e), i = le(e) && Em(e), a = Ye(e), o = It(t, i, n), s = {
|
|
11298
11305
|
scrollLeft: 0,
|
|
11299
11306
|
scrollTop: 0
|
|
11300
11307
|
}, c = {
|