@serverbench/js 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Member.cjs +19 -0
- package/dist/Member.cjs.map +1 -0
- package/dist/Member.d.cts +7 -0
- package/dist/Member.d.ts +7 -0
- package/dist/Member.js +1 -0
- package/dist/Member.js.map +1 -0
- package/dist/Serverbench-BnPNK96A.d.cts +38 -0
- package/dist/Serverbench-DlERhe0-.d.ts +38 -0
- package/dist/Serverbench.d.cts +10 -99
- package/dist/Serverbench.d.ts +10 -99
- package/dist/element/Element.cjs +275 -0
- package/dist/element/Element.cjs.map +1 -0
- package/dist/element/Element.d.cts +10 -0
- package/dist/element/Element.d.ts +10 -0
- package/dist/element/Element.js +255 -0
- package/dist/element/Element.js.map +1 -0
- package/dist/store/ICountryCurrency.cjs +19 -0
- package/dist/store/ICountryCurrency.cjs.map +1 -0
- package/dist/store/ICountryCurrency.d.cts +7 -0
- package/dist/store/ICountryCurrency.d.ts +7 -0
- package/dist/store/ICountryCurrency.js +1 -0
- package/dist/store/ICountryCurrency.js.map +1 -0
- package/dist/store/IDiscount.cjs +19 -0
- package/dist/store/IDiscount.cjs.map +1 -0
- package/dist/store/IDiscount.d.cts +13 -0
- package/dist/store/IDiscount.d.ts +13 -0
- package/dist/store/IDiscount.js +1 -0
- package/dist/store/IDiscount.js.map +1 -0
- package/dist/store/ISku.cjs +19 -0
- package/dist/store/ISku.cjs.map +1 -0
- package/dist/store/ISku.d.cts +17 -0
- package/dist/store/ISku.d.ts +17 -0
- package/dist/store/ISku.js +1 -0
- package/dist/store/ISku.js.map +1 -0
- package/dist/store/ISkuPerkUsage.cjs +19 -0
- package/dist/store/ISkuPerkUsage.cjs.map +1 -0
- package/dist/store/ISkuPerkUsage.d.cts +7 -0
- package/dist/store/ISkuPerkUsage.d.ts +7 -0
- package/dist/store/ISkuPerkUsage.js +1 -0
- package/dist/store/ISkuPerkUsage.js.map +1 -0
- package/dist/store/ISkuPrice.cjs +19 -0
- package/dist/store/ISkuPrice.cjs.map +1 -0
- package/dist/store/ISkuPrice.d.cts +10 -0
- package/dist/store/ISkuPrice.d.ts +10 -0
- package/dist/store/ISkuPrice.js +1 -0
- package/dist/store/ISkuPrice.js.map +1 -0
- package/dist/store/IStore.cjs +19 -0
- package/dist/store/IStore.cjs.map +1 -0
- package/dist/store/IStore.d.cts +18 -0
- package/dist/store/IStore.d.ts +18 -0
- package/dist/store/IStore.js +1 -0
- package/dist/store/IStore.js.map +1 -0
- package/dist/store/IStoreCategory.cjs +19 -0
- package/dist/store/IStoreCategory.cjs.map +1 -0
- package/dist/store/IStoreCategory.d.cts +16 -0
- package/dist/store/IStoreCategory.d.ts +16 -0
- package/dist/store/IStoreCategory.js +1 -0
- package/dist/store/IStoreCategory.js.map +1 -0
- package/dist/store/IStoreCategorySet.cjs +19 -0
- package/dist/store/IStoreCategorySet.cjs.map +1 -0
- package/dist/store/IStoreCategorySet.d.cts +6 -0
- package/dist/store/IStoreCategorySet.d.ts +6 -0
- package/dist/store/IStoreCategorySet.js +1 -0
- package/dist/store/IStoreCategorySet.js.map +1 -0
- package/dist/store/Store.cjs +301 -0
- package/dist/store/Store.cjs.map +1 -0
- package/dist/store/Store.d.cts +10 -0
- package/dist/store/Store.d.ts +10 -0
- package/dist/store/Store.js +281 -0
- package/dist/store/Store.js.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,255 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6
|
+
var __spreadValues = (a2, b2) => {
|
7
|
+
for (var prop in b2 || (b2 = {}))
|
8
|
+
if (__hasOwnProp.call(b2, prop))
|
9
|
+
__defNormalProp(a2, prop, b2[prop]);
|
10
|
+
if (__getOwnPropSymbols)
|
11
|
+
for (var prop of __getOwnPropSymbols(b2)) {
|
12
|
+
if (__propIsEnum.call(b2, prop))
|
13
|
+
__defNormalProp(a2, prop, b2[prop]);
|
14
|
+
}
|
15
|
+
return a2;
|
16
|
+
};
|
17
|
+
var __async = (__this, __arguments, generator) => {
|
18
|
+
return new Promise((resolve, reject) => {
|
19
|
+
var fulfilled = (value) => {
|
20
|
+
try {
|
21
|
+
step(generator.next(value));
|
22
|
+
} catch (e) {
|
23
|
+
reject(e);
|
24
|
+
}
|
25
|
+
};
|
26
|
+
var rejected = (value) => {
|
27
|
+
try {
|
28
|
+
step(generator.throw(value));
|
29
|
+
} catch (e) {
|
30
|
+
reject(e);
|
31
|
+
}
|
32
|
+
};
|
33
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
34
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
|
38
|
+
// node_modules/.pnpm/@open-iframe-resizer+core@1.2.1/node_modules/@open-iframe-resizer/core/dist/index.js
|
39
|
+
var g = () => typeof window < "u";
|
40
|
+
var L = () => window.self !== window.top;
|
41
|
+
var m = (e) => e instanceof HTMLIFrameElement;
|
42
|
+
var w = (e, t) => {
|
43
|
+
e.document.readyState === "complete" ? t() : e.addEventListener("load", t);
|
44
|
+
};
|
45
|
+
var y = (e, t) => {
|
46
|
+
t(), e.addEventListener("load", t);
|
47
|
+
};
|
48
|
+
var p = (e, t) => {
|
49
|
+
var i, o;
|
50
|
+
const n = ((i = e.contentWindow) == null ? void 0 : i.document.readyState) === "complete";
|
51
|
+
return e.src !== "about:blank" && ((o = e.contentWindow) == null ? void 0 : o.location.href) !== "about:blank" && n ? t() : e.addEventListener("load", t);
|
52
|
+
};
|
53
|
+
var v = () => ({ offsetSize: 0, checkOrigin: true, enableLegacyLibSupport: false });
|
54
|
+
var b = (e) => {
|
55
|
+
try {
|
56
|
+
return new URL(e.src).origin === window.location.origin;
|
57
|
+
} catch (e2) {
|
58
|
+
return false;
|
59
|
+
}
|
60
|
+
};
|
61
|
+
var I = (e) => {
|
62
|
+
try {
|
63
|
+
const t = new URL(e.src).origin;
|
64
|
+
if (t !== "about:blank")
|
65
|
+
return t;
|
66
|
+
} catch (e2) {
|
67
|
+
}
|
68
|
+
return null;
|
69
|
+
};
|
70
|
+
var R = (e) => (Object.keys(e).forEach((t) => e[t] === void 0 && delete e[t]), e);
|
71
|
+
var h = (e) => {
|
72
|
+
const { height: t } = e.documentElement.getBoundingClientRect();
|
73
|
+
return Math.ceil(t);
|
74
|
+
};
|
75
|
+
function z(e) {
|
76
|
+
y(
|
77
|
+
e,
|
78
|
+
() => {
|
79
|
+
var t;
|
80
|
+
return (t = e.contentWindow) == null ? void 0 : t.postMessage("[iFrameSizer]ID:0:false:false:32:true:true::auto:::0:false:child:auto:true:::true:::false", "*");
|
81
|
+
}
|
82
|
+
);
|
83
|
+
}
|
84
|
+
function O(e) {
|
85
|
+
if (typeof e.data == "string" && e.data.startsWith("[iFrameSizer]")) {
|
86
|
+
const [t, n] = e.data.split(":"), r = +n;
|
87
|
+
return r > 0 ? r : null;
|
88
|
+
}
|
89
|
+
return null;
|
90
|
+
}
|
91
|
+
var a = g() ? M() : null;
|
92
|
+
var l = [];
|
93
|
+
var D = (e, t) => {
|
94
|
+
if (!g())
|
95
|
+
return [];
|
96
|
+
const n = __spreadValues(__spreadValues({}, v()), R(e != null ? e : {})), r = S(t), i = E(n, r);
|
97
|
+
return r.map((o) => {
|
98
|
+
const s = { iframe: o, settings: n, interactionState: { isHovered: false } }, d = C(s, i);
|
99
|
+
return l.push(s), {
|
100
|
+
unsubscribe: () => {
|
101
|
+
d(), l = l.filter((u) => u.iframe !== o);
|
102
|
+
}
|
103
|
+
};
|
104
|
+
});
|
105
|
+
};
|
106
|
+
function S(e) {
|
107
|
+
return typeof e == "string" ? Array.from(document.querySelectorAll(e)).filter(m) : e ? m(e) ? [e] : [] : Array.from(document.getElementsByTagName("iframe"));
|
108
|
+
}
|
109
|
+
function E(e, t) {
|
110
|
+
if (Array.isArray(e.checkOrigin))
|
111
|
+
return e.checkOrigin;
|
112
|
+
if (!e.checkOrigin)
|
113
|
+
return [];
|
114
|
+
const n = [];
|
115
|
+
for (const r of t) {
|
116
|
+
const i = I(r);
|
117
|
+
i && n.push(i);
|
118
|
+
}
|
119
|
+
return n;
|
120
|
+
}
|
121
|
+
function C(e, t) {
|
122
|
+
const n = b(e.iframe) ? B(e) : k(e, t), r = H(e);
|
123
|
+
return () => {
|
124
|
+
n(), r();
|
125
|
+
};
|
126
|
+
}
|
127
|
+
function k(e, t) {
|
128
|
+
const { iframe: n, settings: r } = e, i = (o) => {
|
129
|
+
var u;
|
130
|
+
const s = !r.checkOrigin || t.includes(o.origin);
|
131
|
+
if (!(!(n.contentWindow === o.source) || !s)) {
|
132
|
+
if (((u = o.data) == null ? void 0 : u.type) === "iframe-resized") {
|
133
|
+
const { height: c } = o.data;
|
134
|
+
c && f({ newHeight: c, registeredElement: e });
|
135
|
+
return;
|
136
|
+
}
|
137
|
+
if (r.enableLegacyLibSupport) {
|
138
|
+
const c = O(o);
|
139
|
+
c !== null && f({ newHeight: c, registeredElement: e });
|
140
|
+
return;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
};
|
144
|
+
return window.addEventListener("message", i), r.enableLegacyLibSupport && z(n), () => window.removeEventListener("message", i);
|
145
|
+
}
|
146
|
+
function B({ iframe: e }) {
|
147
|
+
const t = () => {
|
148
|
+
var r;
|
149
|
+
const n = (r = e.contentDocument) == null ? void 0 : r.body;
|
150
|
+
n && (a == null || a.observe(n));
|
151
|
+
};
|
152
|
+
return p(e, t), () => {
|
153
|
+
var n;
|
154
|
+
(n = e.contentDocument) != null && n.body && (a == null || a.unobserve(e.contentDocument.body)), e.removeEventListener("load", t);
|
155
|
+
};
|
156
|
+
}
|
157
|
+
function H({ iframe: e, interactionState: t }) {
|
158
|
+
const n = () => {
|
159
|
+
t.isHovered = true;
|
160
|
+
}, r = () => {
|
161
|
+
t.isHovered = false;
|
162
|
+
};
|
163
|
+
return e.addEventListener("mouseenter", n), e.addEventListener("mouseleave", r), () => {
|
164
|
+
e.removeEventListener("mouseenter", n), e.removeEventListener("mouseleave", r);
|
165
|
+
};
|
166
|
+
}
|
167
|
+
function M() {
|
168
|
+
const e = ({ target: t }) => {
|
169
|
+
const n = l.find((o) => {
|
170
|
+
var s;
|
171
|
+
return ((s = o.iframe.contentDocument) == null ? void 0 : s.body) === t;
|
172
|
+
});
|
173
|
+
if (!n)
|
174
|
+
return;
|
175
|
+
const { iframe: r } = n;
|
176
|
+
if (!r.contentDocument)
|
177
|
+
return;
|
178
|
+
const i = h(r.contentDocument);
|
179
|
+
i && f({ newHeight: i, registeredElement: n });
|
180
|
+
};
|
181
|
+
return new ResizeObserver((t) => t.forEach(e));
|
182
|
+
}
|
183
|
+
function f({ registeredElement: e, newHeight: t }) {
|
184
|
+
const { iframe: n, settings: r, interactionState: i } = e, o = n.getBoundingClientRect(), s = t + r.offsetSize;
|
185
|
+
if (n.style.height = `${s}px`, !r.onIframeResize)
|
186
|
+
return;
|
187
|
+
const d = {
|
188
|
+
iframe: n,
|
189
|
+
settings: __spreadValues({}, r),
|
190
|
+
interactionState: __spreadValues({}, i),
|
191
|
+
previousRenderState: { rect: o },
|
192
|
+
nextRenderState: { rect: n.getBoundingClientRect() }
|
193
|
+
};
|
194
|
+
r.onIframeResize(d);
|
195
|
+
}
|
196
|
+
W();
|
197
|
+
function W() {
|
198
|
+
!g() || !L() || w(window, () => {
|
199
|
+
const e = () => {
|
200
|
+
const n = {
|
201
|
+
type: "iframe-resized",
|
202
|
+
width: document.documentElement.scrollWidth,
|
203
|
+
height: h(document)
|
204
|
+
};
|
205
|
+
window.parent.postMessage(n, "*");
|
206
|
+
};
|
207
|
+
new ResizeObserver(e).observe(document.body);
|
208
|
+
});
|
209
|
+
}
|
210
|
+
|
211
|
+
// src/element/Element.ts
|
212
|
+
var Element = class {
|
213
|
+
constructor(client, path, args = {}, dark = false, background = false) {
|
214
|
+
this.client = client;
|
215
|
+
this.dark = dark;
|
216
|
+
this.background = background;
|
217
|
+
this.path = path;
|
218
|
+
this.args = args;
|
219
|
+
}
|
220
|
+
setDark(dark) {
|
221
|
+
this.dark = dark;
|
222
|
+
return this;
|
223
|
+
}
|
224
|
+
setBackground(background) {
|
225
|
+
this.background = background;
|
226
|
+
return this;
|
227
|
+
}
|
228
|
+
mount(element) {
|
229
|
+
return __async(this, null, function* () {
|
230
|
+
const queryParams = new URLSearchParams();
|
231
|
+
queryParams.set("clientId", this.client.clientId);
|
232
|
+
queryParams.set("clientSecret", this.client.clientSecret);
|
233
|
+
if (this.dark) queryParams.set("dark", "true");
|
234
|
+
if (this.background) queryParams.set("background", "true");
|
235
|
+
for (const key in this.args) {
|
236
|
+
const value = this.args[key];
|
237
|
+
if (Array.isArray(value)) {
|
238
|
+
queryParams.set(key, value.join(","));
|
239
|
+
} else {
|
240
|
+
queryParams.set(key, value);
|
241
|
+
}
|
242
|
+
}
|
243
|
+
const iframe = document.createElement("iframe");
|
244
|
+
iframe.src = `https://safe.serverbench.io${this.path}?${queryParams.toString()}`;
|
245
|
+
iframe.style.width = "100%";
|
246
|
+
const appended = element.appendChild(iframe);
|
247
|
+
D({}, appended);
|
248
|
+
return this;
|
249
|
+
});
|
250
|
+
}
|
251
|
+
};
|
252
|
+
export {
|
253
|
+
Element as default
|
254
|
+
};
|
255
|
+
//# sourceMappingURL=Element.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../node_modules/.pnpm/@open-iframe-resizer+core@1.2.1/node_modules/@open-iframe-resizer/core/dist/index.js","../../src/element/Element.ts"],"sourcesContent":["const g = () => typeof window < \"u\", L = () => window.self !== window.top, m = (e) => e instanceof HTMLIFrameElement, w = (e, t) => {\n e.document.readyState === \"complete\" ? t() : e.addEventListener(\"load\", t);\n}, y = (e, t) => {\n t(), e.addEventListener(\"load\", t);\n}, p = (e, t) => {\n var i, o;\n const n = ((i = e.contentWindow) == null ? void 0 : i.document.readyState) === \"complete\";\n return e.src !== \"about:blank\" && ((o = e.contentWindow) == null ? void 0 : o.location.href) !== \"about:blank\" && n ? t() : e.addEventListener(\"load\", t);\n}, v = () => ({ offsetSize: 0, checkOrigin: !0, enableLegacyLibSupport: !1 }), b = (e) => {\n try {\n return new URL(e.src).origin === window.location.origin;\n } catch {\n return !1;\n }\n}, I = (e) => {\n try {\n const t = new URL(e.src).origin;\n if (t !== \"about:blank\")\n return t;\n } catch {\n }\n return null;\n}, R = (e) => (Object.keys(e).forEach((t) => e[t] === void 0 && delete e[t]), e), h = (e) => {\n const { height: t } = e.documentElement.getBoundingClientRect();\n return Math.ceil(t);\n};\nfunction z(e) {\n y(\n e,\n () => {\n var t;\n return (t = e.contentWindow) == null ? void 0 : t.postMessage(\"[iFrameSizer]ID:0:false:false:32:true:true::auto:::0:false:child:auto:true:::true:::false\", \"*\");\n }\n );\n}\nfunction O(e) {\n if (typeof e.data == \"string\" && e.data.startsWith(\"[iFrameSizer]\")) {\n const [t, n] = e.data.split(\":\"), r = +n;\n return r > 0 ? r : null;\n }\n return null;\n}\nconst a = g() ? M() : null;\nlet l = [];\nconst D = (e, t) => {\n if (!g())\n return [];\n const n = { ...v(), ...R(e ?? {}) }, r = S(t), i = E(n, r);\n return r.map((o) => {\n const s = { iframe: o, settings: n, interactionState: { isHovered: !1 } }, d = C(s, i);\n return l.push(s), {\n unsubscribe: () => {\n d(), l = l.filter((u) => u.iframe !== o);\n }\n };\n });\n};\nfunction S(e) {\n return typeof e == \"string\" ? Array.from(document.querySelectorAll(e)).filter(m) : e ? m(e) ? [e] : [] : Array.from(document.getElementsByTagName(\"iframe\"));\n}\nfunction E(e, t) {\n if (Array.isArray(e.checkOrigin))\n return e.checkOrigin;\n if (!e.checkOrigin)\n return [];\n const n = [];\n for (const r of t) {\n const i = I(r);\n i && n.push(i);\n }\n return n;\n}\nfunction C(e, t) {\n const n = b(e.iframe) ? B(e) : k(e, t), r = H(e);\n return () => {\n n(), r();\n };\n}\nfunction k(e, t) {\n const { iframe: n, settings: r } = e, i = (o) => {\n var u;\n const s = !r.checkOrigin || t.includes(o.origin);\n if (!(!(n.contentWindow === o.source) || !s)) {\n if (((u = o.data) == null ? void 0 : u.type) === \"iframe-resized\") {\n const { height: c } = o.data;\n c && f({ newHeight: c, registeredElement: e });\n return;\n }\n if (r.enableLegacyLibSupport) {\n const c = O(o);\n c !== null && f({ newHeight: c, registeredElement: e });\n return;\n }\n }\n };\n return window.addEventListener(\"message\", i), r.enableLegacyLibSupport && z(n), () => window.removeEventListener(\"message\", i);\n}\nfunction B({ iframe: e }) {\n const t = () => {\n var r;\n const n = (r = e.contentDocument) == null ? void 0 : r.body;\n n && (a == null || a.observe(n));\n };\n return p(e, t), () => {\n var n;\n (n = e.contentDocument) != null && n.body && (a == null || a.unobserve(e.contentDocument.body)), e.removeEventListener(\"load\", t);\n };\n}\nfunction H({ iframe: e, interactionState: t }) {\n const n = () => {\n t.isHovered = !0;\n }, r = () => {\n t.isHovered = !1;\n };\n return e.addEventListener(\"mouseenter\", n), e.addEventListener(\"mouseleave\", r), () => {\n e.removeEventListener(\"mouseenter\", n), e.removeEventListener(\"mouseleave\", r);\n };\n}\nfunction M() {\n const e = ({ target: t }) => {\n const n = l.find((o) => {\n var s;\n return ((s = o.iframe.contentDocument) == null ? void 0 : s.body) === t;\n });\n if (!n)\n return;\n const { iframe: r } = n;\n if (!r.contentDocument)\n return;\n const i = h(r.contentDocument);\n i && f({ newHeight: i, registeredElement: n });\n };\n return new ResizeObserver((t) => t.forEach(e));\n}\nfunction f({ registeredElement: e, newHeight: t }) {\n const { iframe: n, settings: r, interactionState: i } = e, o = n.getBoundingClientRect(), s = t + r.offsetSize;\n if (n.style.height = `${s}px`, !r.onIframeResize)\n return;\n const d = {\n iframe: n,\n settings: { ...r },\n interactionState: { ...i },\n previousRenderState: { rect: o },\n nextRenderState: { rect: n.getBoundingClientRect() }\n };\n r.onIframeResize(d);\n}\nW();\nfunction W() {\n !g() || !L() || w(window, () => {\n const e = () => {\n const n = {\n type: \"iframe-resized\",\n width: document.documentElement.scrollWidth,\n height: h(document)\n };\n window.parent.postMessage(n, \"*\");\n };\n new ResizeObserver(e).observe(document.body);\n });\n}\nconst A = ({ previousRenderState: e, nextRenderState: t, interactionState: n }) => {\n n.isHovered && window.scrollBy(0, t.rect.bottom - e.rect.bottom);\n};\nexport {\n D as initialize,\n W as initializeChildListener,\n A as updateParentScrollOnResize\n};\n","import { initialize } from \"../../node_modules/@open-iframe-resizer/core/dist/index.js\"\r\nimport Serverbench from \"../Serverbench.js\"\r\n\r\nexport default class Element {\r\n\r\n private readonly client: Serverbench\r\n private dark: boolean\r\n private background: boolean\r\n private readonly path: string\r\n private readonly args: Record<string, string | string[]>\r\n\r\n constructor(client: Serverbench, path: string, args: Record<string, string | string[]> = {}, dark: boolean = false, background: boolean = false) {\r\n this.client = client\r\n this.dark = dark\r\n this.background = background\r\n this.path = path\r\n this.args = args\r\n }\r\n\r\n setDark(dark: boolean) {\r\n this.dark = dark\r\n return this\r\n }\r\n\r\n setBackground(background: boolean) {\r\n this.background = background\r\n return this\r\n }\r\n\r\n async mount(element: HTMLElement) {\r\n const queryParams = new URLSearchParams()\r\n queryParams.set('clientId', this.client.clientId)\r\n queryParams.set('clientSecret', this.client.clientSecret)\r\n if (this.dark) queryParams.set('dark', 'true')\r\n if (this.background) queryParams.set('background', 'true')\r\n for (const key in this.args) {\r\n const value = this.args[key]\r\n if (Array.isArray(value)) {\r\n queryParams.set(key, value.join(','))\r\n } else {\r\n queryParams.set(key, value)\r\n }\r\n }\r\n const iframe = document.createElement('iframe');\r\n iframe.src = `https://safe.serverbench.io${this.path}?${queryParams.toString()}`;\r\n iframe.style.width = '100%';\r\n const appended = element.appendChild(iframe);\r\n initialize({}, appended);\r\n return this\r\n }\r\n\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KAAK,WAAY,aAAY,IAAI,cAAc,MAAM;AACzD,iBAAW,OAAO,KAAK,MAAM;AACzB,cAAM,QAAQ,KAAK,KAAK,GAAG;AAC3B,YAAI,MAAM,QAAQ,KAAK,GAAG;AACtB,sBAAY,IAAI,KAAK,MAAM,KAAK,GAAG,CAAC;AAAA,QACxC,OAAO;AACH,sBAAY,IAAI,KAAK,KAAK;AAAA,QAC9B;AAAA,MACJ;AACA,YAAM,SAAS,SAAS,cAAc,QAAQ;AAC9C,aAAO,MAAM,8BAA8B,KAAK,IAAI,IAAI,YAAY,SAAS,CAAC;AAC9E,aAAO,MAAM,QAAQ;AACrB,YAAM,WAAW,QAAQ,YAAY,MAAM;AAC3C,QAAW,CAAC,GAAG,QAAQ;AACvB,aAAO;AAAA,IACX;AAAA;AAEJ;","names":["e"]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/ICountryCurrency.ts
|
17
|
+
var ICountryCurrency_exports = {};
|
18
|
+
module.exports = __toCommonJS(ICountryCurrency_exports);
|
19
|
+
//# sourceMappingURL=ICountryCurrency.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/store/ICountryCurrency.ts"],"sourcesContent":["export default interface ICountryCurrency {\r\n\r\n currency: string\r\n digits: number\r\n country: string | null\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=ICountryCurrency.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/IDiscount.ts
|
17
|
+
var IDiscount_exports = {};
|
18
|
+
module.exports = __toCommonJS(IDiscount_exports);
|
19
|
+
//# sourceMappingURL=IDiscount.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/store/IDiscount.ts"],"sourcesContent":["import type ISkuPrice from \"./ISkuPrice.js\"\r\n\r\nexport default interface IDiscount {\r\n id: string\r\n amount: number | null\r\n percentage: number | null\r\n absolute: number\r\n end: Date | null\r\n price: ISkuPrice\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import ISkuPrice from './ISkuPrice.cjs';
|
2
|
+
import './ICountryCurrency.cjs';
|
3
|
+
|
4
|
+
interface IDiscount {
|
5
|
+
id: string;
|
6
|
+
amount: number | null;
|
7
|
+
percentage: number | null;
|
8
|
+
absolute: number;
|
9
|
+
end: Date | null;
|
10
|
+
price: ISkuPrice;
|
11
|
+
}
|
12
|
+
|
13
|
+
export type { IDiscount as default };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import ISkuPrice from './ISkuPrice.js';
|
2
|
+
import './ICountryCurrency.js';
|
3
|
+
|
4
|
+
interface IDiscount {
|
5
|
+
id: string;
|
6
|
+
amount: number | null;
|
7
|
+
percentage: number | null;
|
8
|
+
absolute: number;
|
9
|
+
end: Date | null;
|
10
|
+
price: ISkuPrice;
|
11
|
+
}
|
12
|
+
|
13
|
+
export type { IDiscount as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=IDiscount.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/ISku.ts
|
17
|
+
var ISku_exports = {};
|
18
|
+
module.exports = __toCommonJS(ISku_exports);
|
19
|
+
//# sourceMappingURL=ISku.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/store/ISku.ts"],"sourcesContent":["import type IDiscount from \"./IDiscount.js\";\r\nimport type ISkuPerkUsage from \"./ISkuPerkUsage.js\";\r\nimport type ISkuPrice from \"./ISkuPrice.js\";\r\n\r\nexport default interface ISku {\r\n\r\n id: string\r\n index: number\r\n name: string\r\n type: string\r\n perks: ISkuPerkUsage[]\r\n prices: ISkuPrice[]\r\n available: boolean\r\n discounts: IDiscount[]\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import IDiscount from './IDiscount.cjs';
|
2
|
+
import ISkuPerkUsage from './ISkuPerkUsage.cjs';
|
3
|
+
import ISkuPrice from './ISkuPrice.cjs';
|
4
|
+
import './ICountryCurrency.cjs';
|
5
|
+
|
6
|
+
interface ISku {
|
7
|
+
id: string;
|
8
|
+
index: number;
|
9
|
+
name: string;
|
10
|
+
type: string;
|
11
|
+
perks: ISkuPerkUsage[];
|
12
|
+
prices: ISkuPrice[];
|
13
|
+
available: boolean;
|
14
|
+
discounts: IDiscount[];
|
15
|
+
}
|
16
|
+
|
17
|
+
export type { ISku as default };
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import IDiscount from './IDiscount.js';
|
2
|
+
import ISkuPerkUsage from './ISkuPerkUsage.js';
|
3
|
+
import ISkuPrice from './ISkuPrice.js';
|
4
|
+
import './ICountryCurrency.js';
|
5
|
+
|
6
|
+
interface ISku {
|
7
|
+
id: string;
|
8
|
+
index: number;
|
9
|
+
name: string;
|
10
|
+
type: string;
|
11
|
+
perks: ISkuPerkUsage[];
|
12
|
+
prices: ISkuPrice[];
|
13
|
+
available: boolean;
|
14
|
+
discounts: IDiscount[];
|
15
|
+
}
|
16
|
+
|
17
|
+
export type { ISku as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=ISku.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/ISkuPerkUsage.ts
|
17
|
+
var ISkuPerkUsage_exports = {};
|
18
|
+
module.exports = __toCommonJS(ISkuPerkUsage_exports);
|
19
|
+
//# sourceMappingURL=ISkuPerkUsage.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/store/ISkuPerkUsage.ts"],"sourcesContent":["export default interface ISkuPerkUsage {\r\n id: string\r\n name: string\r\n amount: number | null\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=ISkuPerkUsage.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/ISkuPrice.ts
|
17
|
+
var ISkuPrice_exports = {};
|
18
|
+
module.exports = __toCommonJS(ISkuPrice_exports);
|
19
|
+
//# sourceMappingURL=ISkuPrice.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/store/ISkuPrice.ts"],"sourcesContent":["import type ICountryCurrency from \"./ICountryCurrency.js\"\r\n\r\nexport default interface ISkuPrice {\r\n\r\n id: string\r\n amount: number\r\n currency: ICountryCurrency\r\n frequency: string | null\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=ISkuPrice.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/IStore.ts
|
17
|
+
var IStore_exports = {};
|
18
|
+
module.exports = __toCommonJS(IStore_exports);
|
19
|
+
//# sourceMappingURL=IStore.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/store/IStore.ts"],"sourcesContent":["import type Member from \"../Member.js\";\r\nimport type ICountryCurrency from \"./ICountryCurrency.js\";\r\nimport type IStoreCategory from \"./IStoreCategory.js\";\r\nimport type IStoreCategorySet from \"./IStoreCategorySet.js\";\r\n\r\nexport default interface IStore {\r\n\r\n categories: IStoreCategory[]\r\n sets: IStoreCategorySet[]\r\n currency: ICountryCurrency\r\n country: string | null\r\n member: Member | null\r\n\r\n}"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import Member from '../Member.cjs';
|
2
|
+
import ICountryCurrency from './ICountryCurrency.cjs';
|
3
|
+
import IStoreCategory from './IStoreCategory.cjs';
|
4
|
+
import IStoreCategorySet from './IStoreCategorySet.cjs';
|
5
|
+
import './ISku.cjs';
|
6
|
+
import './IDiscount.cjs';
|
7
|
+
import './ISkuPrice.cjs';
|
8
|
+
import './ISkuPerkUsage.cjs';
|
9
|
+
|
10
|
+
interface IStore {
|
11
|
+
categories: IStoreCategory[];
|
12
|
+
sets: IStoreCategorySet[];
|
13
|
+
currency: ICountryCurrency;
|
14
|
+
country: string | null;
|
15
|
+
member: Member | null;
|
16
|
+
}
|
17
|
+
|
18
|
+
export type { IStore as default };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import Member from '../Member.js';
|
2
|
+
import ICountryCurrency from './ICountryCurrency.js';
|
3
|
+
import IStoreCategory from './IStoreCategory.js';
|
4
|
+
import IStoreCategorySet from './IStoreCategorySet.js';
|
5
|
+
import './ISku.js';
|
6
|
+
import './IDiscount.js';
|
7
|
+
import './ISkuPrice.js';
|
8
|
+
import './ISkuPerkUsage.js';
|
9
|
+
|
10
|
+
interface IStore {
|
11
|
+
categories: IStoreCategory[];
|
12
|
+
sets: IStoreCategorySet[];
|
13
|
+
currency: ICountryCurrency;
|
14
|
+
country: string | null;
|
15
|
+
member: Member | null;
|
16
|
+
}
|
17
|
+
|
18
|
+
export type { IStore as default };
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=IStore.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/store/IStoreCategory.ts
|
17
|
+
var IStoreCategory_exports = {};
|
18
|
+
module.exports = __toCommonJS(IStoreCategory_exports);
|
19
|
+
//# sourceMappingURL=IStoreCategory.cjs.map
|