@nizza/core 0.1.1 → 0.1.2-beta.0
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.es.js +77 -89
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
class
|
|
1
|
+
var R = Object.defineProperty;
|
|
2
|
+
var V = (n, e, i) => e in n ? R(n, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[e] = i;
|
|
3
|
+
var m = (n, e, i) => (V(n, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import U, { createContext as G, useContext as O, useMemo as z, lazy as L, Suspense as M } from "react";
|
|
5
|
+
class q {
|
|
6
6
|
constructor(e) {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
m(this, "aggregate");
|
|
8
|
+
m(this, "_numSetPropsApplied", 0);
|
|
9
9
|
this.aggregate = e;
|
|
10
10
|
}
|
|
11
11
|
setProps(e) {
|
|
@@ -42,10 +42,9 @@ class Fe extends y {
|
|
|
42
42
|
}
|
|
43
43
|
class Ce extends y {
|
|
44
44
|
constructor(e) {
|
|
45
|
-
var i;
|
|
46
45
|
super(
|
|
47
46
|
"APP_UNEXPECTED_ERROR",
|
|
48
|
-
|
|
47
|
+
e.message ?? "An unexpected error occurred.",
|
|
49
48
|
e
|
|
50
49
|
);
|
|
51
50
|
}
|
|
@@ -55,7 +54,14 @@ class he extends y {
|
|
|
55
54
|
super("APP_ACCOUNT_INVALID_ERROR", "Account not defined");
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
var
|
|
57
|
+
var u = {}, $ = {
|
|
58
|
+
get exports() {
|
|
59
|
+
return u;
|
|
60
|
+
},
|
|
61
|
+
set exports(n) {
|
|
62
|
+
u = n;
|
|
63
|
+
}
|
|
64
|
+
}, k = {};
|
|
59
65
|
/*
|
|
60
66
|
object-assign
|
|
61
67
|
(c) Sindre Sorhus
|
|
@@ -98,14 +104,14 @@ J();
|
|
|
98
104
|
* This source code is licensed under the MIT license found in the
|
|
99
105
|
* LICENSE file in the root directory of this source tree.
|
|
100
106
|
*/
|
|
101
|
-
var H =
|
|
102
|
-
|
|
107
|
+
var H = U, D = 60103;
|
|
108
|
+
k.Fragment = 60107;
|
|
103
109
|
if (typeof Symbol == "function" && Symbol.for) {
|
|
104
110
|
var h = Symbol.for;
|
|
105
|
-
|
|
111
|
+
D = h("react.element"), k.Fragment = h("react.fragment");
|
|
106
112
|
}
|
|
107
113
|
var X = H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Y = Object.prototype.hasOwnProperty, Z = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
108
|
-
function
|
|
114
|
+
function _(n, e, i) {
|
|
109
115
|
var a, t = {}, l = null, d = null;
|
|
110
116
|
i !== void 0 && (l = "" + i), e.key !== void 0 && (l = "" + e.key), e.ref !== void 0 && (d = e.ref);
|
|
111
117
|
for (a in e)
|
|
@@ -113,21 +119,16 @@ function A(n, e, i) {
|
|
|
113
119
|
if (n && n.defaultProps)
|
|
114
120
|
for (a in e = n.defaultProps, e)
|
|
115
121
|
t[a] === void 0 && (t[a] = e[a]);
|
|
116
|
-
return { $$typeof:
|
|
122
|
+
return { $$typeof: D, type: n, key: l, ref: d, props: t, _owner: X.current };
|
|
117
123
|
}
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
k.jsx = _;
|
|
125
|
+
k.jsxs = _;
|
|
120
126
|
(function(n) {
|
|
121
|
-
n.exports =
|
|
122
|
-
})(
|
|
123
|
-
const S = D.exports.jsx;
|
|
127
|
+
n.exports = k;
|
|
128
|
+
})($);
|
|
124
129
|
let F = /* @__PURE__ */ new Map();
|
|
125
|
-
const f =
|
|
126
|
-
|
|
127
|
-
stores: e,
|
|
128
|
-
instances: i
|
|
129
|
-
}) => {
|
|
130
|
-
const a = O(f), t = L(() => {
|
|
130
|
+
const f = G(F), be = ({ children: n, stores: e, instances: i }) => {
|
|
131
|
+
const a = O(f), t = z(() => {
|
|
131
132
|
const l = /* @__PURE__ */ new Map();
|
|
132
133
|
return e.forEach((d) => {
|
|
133
134
|
let o;
|
|
@@ -137,12 +138,11 @@ const f = z(F), be = ({
|
|
|
137
138
|
o = new d();
|
|
138
139
|
}
|
|
139
140
|
l.set(d, o);
|
|
140
|
-
}), i == null || i.forEach(
|
|
141
|
+
}), i == null || i.forEach(
|
|
142
|
+
(d) => l.set(d.constructor, d)
|
|
143
|
+
), F = new Map([...a, ...l]);
|
|
141
144
|
}, []);
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
value: t,
|
|
144
|
-
children: n
|
|
145
|
-
});
|
|
145
|
+
return /* @__PURE__ */ u.jsx(f.Provider, { value: t, children: n });
|
|
146
146
|
};
|
|
147
147
|
function we(n) {
|
|
148
148
|
return O(f).get(n);
|
|
@@ -150,20 +150,20 @@ function we(n) {
|
|
|
150
150
|
function Te(n) {
|
|
151
151
|
return F.get(n);
|
|
152
152
|
}
|
|
153
|
-
var
|
|
153
|
+
var A = /* @__PURE__ */ ((n) => (n.Add = "add", n.Remove = "remove", n))(A || {}), j = /* @__PURE__ */ ((n) => (n.Active = "active", n.Inactive = "inactive", n))(j || {});
|
|
154
154
|
const K = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "getAllCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "data" } }, { kind: "Field", name: { kind: "Name", value: "section" } }, { kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ee = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "updateCustomization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomPlayerInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomPlayer" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ne = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "AddCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CreateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ie = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "DeleteCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "deleteCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, ae = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FindCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "findCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccess" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, te = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetAllCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "getAllCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, de = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "ManageCollectionProduct" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ManageCollectionProductInInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "manageCollectionProduct" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, le = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "SearchCollections" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "QueryInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CollectionSuccessArray" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "data" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "name" } }, { kind: "Field", name: { kind: "Name", value: "description" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }, { kind: "Field", name: { kind: "Name", value: "products" }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" } }, { kind: "Field", name: { kind: "Name", value: "account" } }, { kind: "Field", name: { kind: "Name", value: "title" } }, { kind: "Field", name: { kind: "Name", value: "link" } }, { kind: "Field", name: { kind: "Name", value: "pictures" } }, { kind: "Field", name: { kind: "Name", value: "price" } }, { kind: "Field", name: { kind: "Name", value: "salesprice" } }, { kind: "Field", name: { kind: "Name", value: "status" } }, { kind: "Field", name: { kind: "Name", value: "createdat" } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, oe = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCollection" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "UpdateCollectionInput" } } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCollection" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "__typename" } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Error" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ErrorGeneral" } }, selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "message" } }, { kind: "Field", name: { kind: "Name", value: "statusCode" } }, { kind: "Field", name: { kind: "Name", value: "timestamp" } }] } }] } }] } }] }, Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
155
155
|
__proto__: null,
|
|
156
|
-
Methods: j,
|
|
157
|
-
Status: x,
|
|
158
|
-
GetAllCustomizationDocument: K,
|
|
159
|
-
UpdateCustomizationDocument: ee,
|
|
160
156
|
AddCollectionDocument: ne,
|
|
161
157
|
DeleteCollectionDocument: ie,
|
|
162
158
|
FindCollectionDocument: ae,
|
|
163
159
|
GetAllCollectionsDocument: te,
|
|
160
|
+
GetAllCustomizationDocument: K,
|
|
164
161
|
ManageCollectionProductDocument: de,
|
|
162
|
+
Methods: A,
|
|
165
163
|
SearchCollectionsDocument: le,
|
|
166
|
-
|
|
164
|
+
Status: j,
|
|
165
|
+
UpdateCollectionDocument: oe,
|
|
166
|
+
UpdateCustomizationDocument: ee
|
|
167
167
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
168
168
|
class Ie {
|
|
169
169
|
}
|
|
@@ -173,7 +173,6 @@ async function Oe({
|
|
|
173
173
|
raw: i = !1,
|
|
174
174
|
...a
|
|
175
175
|
}) {
|
|
176
|
-
var o;
|
|
177
176
|
const t = {
|
|
178
177
|
"Content-Type": "application/json",
|
|
179
178
|
...a.headers
|
|
@@ -182,14 +181,14 @@ async function Oe({
|
|
|
182
181
|
return l;
|
|
183
182
|
const d = await l.json();
|
|
184
183
|
if (!l.ok) {
|
|
185
|
-
const
|
|
186
|
-
throw new Error(
|
|
184
|
+
const o = (d == null ? void 0 : d.message) ?? l.statusText;
|
|
185
|
+
throw new Error(o);
|
|
187
186
|
}
|
|
188
187
|
return d;
|
|
189
188
|
}
|
|
190
189
|
class b {
|
|
191
190
|
constructor() {
|
|
192
|
-
|
|
191
|
+
m(this, "store");
|
|
193
192
|
this.store = this.getStoreFromWindow();
|
|
194
193
|
}
|
|
195
194
|
getStoreFromWindow() {
|
|
@@ -209,8 +208,7 @@ class b {
|
|
|
209
208
|
this.store[e] = i, this.setStoreToWindow(this.store);
|
|
210
209
|
}
|
|
211
210
|
getItem(e) {
|
|
212
|
-
|
|
213
|
-
return (i = this.store[e]) != null ? i : null;
|
|
211
|
+
return this.store[e] ?? null;
|
|
214
212
|
}
|
|
215
213
|
removeItem(e) {
|
|
216
214
|
delete this.store[e], this.setStoreToWindow(this.store);
|
|
@@ -219,8 +217,7 @@ class b {
|
|
|
219
217
|
this.setStoreToWindow({});
|
|
220
218
|
}
|
|
221
219
|
key(e) {
|
|
222
|
-
|
|
223
|
-
return (a = Object.keys(this.store)[e]) != null ? a : null;
|
|
220
|
+
return Object.keys(this.store)[e] ?? null;
|
|
224
221
|
}
|
|
225
222
|
get length() {
|
|
226
223
|
return Object.keys(this.store).length;
|
|
@@ -242,9 +239,9 @@ function T(n, e, i) {
|
|
|
242
239
|
};
|
|
243
240
|
typeof i < "u" && (a.value = i), Object.defineProperty(n, e, a);
|
|
244
241
|
}
|
|
245
|
-
class
|
|
242
|
+
class x {
|
|
246
243
|
static init() {
|
|
247
|
-
return new
|
|
244
|
+
return new x();
|
|
248
245
|
}
|
|
249
246
|
constructor() {
|
|
250
247
|
window.top === window.self ? console.log("[CustomStorage] This is the main window") : console.log("[CustomStorage] This is NOT the main window"), this.replaceStorages();
|
|
@@ -271,7 +268,7 @@ class P {
|
|
|
271
268
|
}
|
|
272
269
|
}
|
|
273
270
|
/*! js-cookie v3.0.1 | MIT */
|
|
274
|
-
function
|
|
271
|
+
function c(n) {
|
|
275
272
|
for (var e = 1; e < arguments.length; e++) {
|
|
276
273
|
var i = arguments[e];
|
|
277
274
|
for (var a in i)
|
|
@@ -293,20 +290,20 @@ var re = {
|
|
|
293
290
|
function g(n, e) {
|
|
294
291
|
function i(t, l, d) {
|
|
295
292
|
if (!(typeof document > "u")) {
|
|
296
|
-
d =
|
|
293
|
+
d = c({}, e, d), typeof d.expires == "number" && (d.expires = new Date(Date.now() + d.expires * 864e5)), d.expires && (d.expires = d.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
297
294
|
var o = "";
|
|
298
|
-
for (var
|
|
299
|
-
|
|
295
|
+
for (var s in d)
|
|
296
|
+
d[s] && (o += "; " + s, d[s] !== !0 && (o += "=" + d[s].split(";")[0]));
|
|
300
297
|
return document.cookie = t + "=" + n.write(l, t) + o;
|
|
301
298
|
}
|
|
302
299
|
}
|
|
303
300
|
function a(t) {
|
|
304
301
|
if (!(typeof document > "u" || arguments.length && !t)) {
|
|
305
302
|
for (var l = document.cookie ? document.cookie.split("; ") : [], d = {}, o = 0; o < l.length; o++) {
|
|
306
|
-
var
|
|
303
|
+
var s = l[o].split("="), P = s.slice(1).join("=");
|
|
307
304
|
try {
|
|
308
|
-
var
|
|
309
|
-
if (d[
|
|
305
|
+
var N = decodeURIComponent(s[0]);
|
|
306
|
+
if (d[N] = n.read(P, N), t === N)
|
|
310
307
|
break;
|
|
311
308
|
} catch {
|
|
312
309
|
}
|
|
@@ -322,16 +319,16 @@ function g(n, e) {
|
|
|
322
319
|
i(
|
|
323
320
|
t,
|
|
324
321
|
"",
|
|
325
|
-
|
|
322
|
+
c({}, l, {
|
|
326
323
|
expires: -1
|
|
327
324
|
})
|
|
328
325
|
);
|
|
329
326
|
},
|
|
330
327
|
withAttributes: function(t) {
|
|
331
|
-
return g(this.converter,
|
|
328
|
+
return g(this.converter, c({}, this.attributes, t));
|
|
332
329
|
},
|
|
333
330
|
withConverter: function(t) {
|
|
334
|
-
return g(
|
|
331
|
+
return g(c({}, this.converter, t), this.attributes);
|
|
335
332
|
}
|
|
336
333
|
},
|
|
337
334
|
{
|
|
@@ -340,19 +337,19 @@ function g(n, e) {
|
|
|
340
337
|
}
|
|
341
338
|
);
|
|
342
339
|
}
|
|
343
|
-
var E = g(re, { path: "/" }),
|
|
340
|
+
var E = g(re, { path: "/" }), v, me = new Uint8Array(16);
|
|
344
341
|
function se() {
|
|
345
|
-
if (!
|
|
342
|
+
if (!v && (v = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !v))
|
|
346
343
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
347
|
-
return
|
|
344
|
+
return v(me);
|
|
348
345
|
}
|
|
349
346
|
const ue = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
350
347
|
function ke(n) {
|
|
351
348
|
return typeof n == "string" && ue.test(n);
|
|
352
349
|
}
|
|
353
350
|
var r = [];
|
|
354
|
-
for (var
|
|
355
|
-
r.push((
|
|
351
|
+
for (var S = 0; S < 256; ++S)
|
|
352
|
+
r.push((S + 256).toString(16).substr(1));
|
|
356
353
|
function ce(n) {
|
|
357
354
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, i = (r[n[e + 0]] + r[n[e + 1]] + r[n[e + 2]] + r[n[e + 3]] + "-" + r[n[e + 4]] + r[n[e + 5]] + "-" + r[n[e + 6]] + r[n[e + 7]] + "-" + r[n[e + 8]] + r[n[e + 9]] + "-" + r[n[e + 10]] + r[n[e + 11]] + r[n[e + 12]] + r[n[e + 13]] + r[n[e + 14]] + r[n[e + 15]]).toLowerCase();
|
|
358
355
|
if (!ke(i))
|
|
@@ -383,32 +380,23 @@ function _e(n = 8) {
|
|
|
383
380
|
return i;
|
|
384
381
|
}
|
|
385
382
|
function Ae(n) {
|
|
386
|
-
return new
|
|
383
|
+
return new q(n);
|
|
387
384
|
}
|
|
388
385
|
const je = (n) => {
|
|
389
386
|
const e = Object.entries(n).map(([i, a]) => `${i}=${a}`).join("&");
|
|
390
387
|
return e ? `?${e}` : "";
|
|
391
|
-
}, xe = (n, e, i = {
|
|
392
|
-
fallback: null
|
|
393
|
-
}) => {
|
|
388
|
+
}, xe = (n, e, i = { fallback: null }) => {
|
|
394
389
|
let a = n;
|
|
395
|
-
e && (a = () => n().then((l) => ({
|
|
396
|
-
|
|
397
|
-
}))
|
|
398
|
-
const t = M(a);
|
|
399
|
-
return (l) => /* @__PURE__ */ S(q, {
|
|
400
|
-
fallback: i.fallback,
|
|
401
|
-
children: /* @__PURE__ */ S(t, {
|
|
402
|
-
...l
|
|
403
|
-
})
|
|
404
|
-
});
|
|
390
|
+
e && (a = () => n().then((l) => ({ default: e(l) })));
|
|
391
|
+
const t = L(a);
|
|
392
|
+
return (l) => /* @__PURE__ */ u.jsx(M, { fallback: i.fallback, children: /* @__PURE__ */ u.jsx(t, { ...l }) });
|
|
405
393
|
};
|
|
406
|
-
class
|
|
394
|
+
class p {
|
|
407
395
|
constructor(e, i, a) {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
396
|
+
m(this, "isOk");
|
|
397
|
+
m(this, "isErr");
|
|
398
|
+
m(this, "error");
|
|
399
|
+
m(this, "_value");
|
|
412
400
|
if (e && i)
|
|
413
401
|
throw new Error(
|
|
414
402
|
"InvalidOperation: A result cannot be successful and contain an error"
|
|
@@ -427,21 +415,21 @@ class v {
|
|
|
427
415
|
return this._value;
|
|
428
416
|
}
|
|
429
417
|
static ok(e) {
|
|
430
|
-
return new
|
|
418
|
+
return new p(!0, void 0, e);
|
|
431
419
|
}
|
|
432
420
|
static fail(e) {
|
|
433
|
-
return new
|
|
421
|
+
return new p(!1, e);
|
|
434
422
|
}
|
|
435
423
|
static combine(e) {
|
|
436
424
|
for (const i of e)
|
|
437
425
|
if (i.isErr)
|
|
438
426
|
return i;
|
|
439
|
-
return
|
|
427
|
+
return p.ok();
|
|
440
428
|
}
|
|
441
429
|
}
|
|
442
430
|
class pe {
|
|
443
431
|
constructor(e) {
|
|
444
|
-
|
|
432
|
+
m(this, "value");
|
|
445
433
|
this.value = e;
|
|
446
434
|
}
|
|
447
435
|
isErr() {
|
|
@@ -453,7 +441,7 @@ class pe {
|
|
|
453
441
|
}
|
|
454
442
|
class Ne {
|
|
455
443
|
constructor(e) {
|
|
456
|
-
|
|
444
|
+
m(this, "value");
|
|
457
445
|
this.value = e;
|
|
458
446
|
}
|
|
459
447
|
isErr() {
|
|
@@ -466,16 +454,16 @@ class Ne {
|
|
|
466
454
|
const Pe = (n) => new pe(n), Re = (n) => new Ne(n);
|
|
467
455
|
export {
|
|
468
456
|
he as AccountInvalidError,
|
|
469
|
-
|
|
457
|
+
q as AggregateRoot,
|
|
470
458
|
Ee as ApiGraphqlTypes,
|
|
471
459
|
ye as BaseMobxStore,
|
|
472
460
|
Ie as BaseStore,
|
|
473
|
-
|
|
461
|
+
x as CustomStorage,
|
|
474
462
|
y as DomainError,
|
|
475
463
|
pe as Err,
|
|
476
464
|
Ne as Ok,
|
|
477
465
|
Fe as ResourceNotFoundError,
|
|
478
|
-
|
|
466
|
+
p as Result,
|
|
479
467
|
be as StoreProvider,
|
|
480
468
|
Ce as UnexpectedError,
|
|
481
469
|
Oe as apiCall,
|