@everymatrix/loyalty-shop 0.1.11 → 0.1.13
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/components/{LoyaltyPagination-BcRXvso4.js → LoyaltyPagination-B-q5gKJj.js} +2429 -2837
- package/components/LoyaltyPagination-Boz7CVJt.cjs +16 -0
- package/components/LoyaltyPagination-CEvN3M3n.cjs +16 -0
- package/components/LoyaltyPagination-Z_igiBkY.js +6754 -0
- package/components/LoyaltyPointsCard-BhdXzF1P.cjs +18 -0
- package/components/LoyaltyPointsCard-DRKV1-dq.js +254 -0
- package/components/LoyaltyPointsCard-Dh-TnTTL.cjs +18 -0
- package/components/{LoyaltyPointsCard-DMYnP3nm.js → LoyaltyPointsCard-yCHI1R_t.js} +42 -36
- package/components/LoyaltyShop-BsZThRDe.cjs +27 -0
- package/components/LoyaltyShop-CtNpYAKa.js +517 -0
- package/components/LoyaltyShop-Cx8CxsMn.cjs +27 -0
- package/components/{LoyaltyShop-DV-j5py7.js → LoyaltyShop-DoIx97J9.js} +261 -223
- package/components/LoyaltyShopItem-BRiUNphq.cjs +5 -0
- package/components/{LoyaltyShopItem-BRu06lmS.js → LoyaltyShopItem-C2xuJLoW.js} +82 -74
- package/components/LoyaltyShopItem-D_oViqJP.cjs +5 -0
- package/components/LoyaltyShopItem-bXQ_G5NK.js +355 -0
- package/es2015/loyalty-shop.cjs +1 -0
- package/es2015/loyalty-shop.js +28 -0
- package/esnext/loyalty-shop.cjs +1 -1
- package/esnext/loyalty-shop.js +7 -2
- package/package.json +5 -2
- package/components/LoyaltyPagination-CiEOz3pr.cjs +0 -16
- package/components/LoyaltyPointsCard-BcX6gbsm.cjs +0 -18
- package/components/LoyaltyShop-CJ-9FkKC.cjs +0 -27
- package/components/LoyaltyShopItem-Dd0M-wKW.cjs +0 -5
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
var J = (g, a, o) => new Promise((d, _) => {
|
|
2
|
+
var u = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
c(o.next(l));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
_(r);
|
|
7
|
+
}
|
|
8
|
+
}, v = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
c(o.throw(l));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
_(r);
|
|
13
|
+
}
|
|
14
|
+
}, c = (l) => l.done ? d(l.value) : Promise.resolve(l.value).then(u, v);
|
|
15
|
+
c((o = o.apply(g, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { y as me, c as W, p as Y, a as ve, b as p, s as fe, d as q, z as O, A as he, B as ye, C as G, E, F as ge, G as _e, m as s, f as we, g as be, i as z, h as N, j as Q, H as xe, I as Ee, J as Re, K as ke, k as m, l as Se, n as b, o as k, r as x, t as j, q as L, v as V, u as C, L as Ie, w as Te, $ as Ne, M as K } from "./LoyaltyPagination-Z_igiBkY.js";
|
|
18
|
+
import { L as Le } from "./LoyaltyPointsCard-DRKV1-dq.js";
|
|
19
|
+
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
20
|
+
}, globalThis.customElements = { define() {
|
|
21
|
+
}, get() {
|
|
22
|
+
}, whenDefined() {
|
|
23
|
+
} });
|
|
24
|
+
if (typeof window != "undefined") {
|
|
25
|
+
let g = function(a) {
|
|
26
|
+
return function(...o) {
|
|
27
|
+
try {
|
|
28
|
+
return a.apply(this, o);
|
|
29
|
+
} catch (d) {
|
|
30
|
+
if (d instanceof DOMException && d.message.includes("has already been used with this registry") || d instanceof Error && d.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
31
|
+
return !1;
|
|
32
|
+
throw d;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
customElements.define = g(customElements.define), import("./LoyaltyPointsCard-DRKV1-dq.js").then((a) => a.a).then((a) => {
|
|
37
|
+
const o = a.default || a;
|
|
38
|
+
customElements.get("loyalty-points-card") || customElements.define("loyalty-points-card", o.element || o);
|
|
39
|
+
}).catch((a) => {
|
|
40
|
+
console.error("BOOT ERROR:", a);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const Ce = {
|
|
44
|
+
en: {
|
|
45
|
+
tokens: "Tokens",
|
|
46
|
+
buyNow: "Buy Now",
|
|
47
|
+
back: "Back"
|
|
48
|
+
},
|
|
49
|
+
tr: {
|
|
50
|
+
tokens: "Tokens",
|
|
51
|
+
buyNow: "Şimdi Satın Al",
|
|
52
|
+
back: "Geri"
|
|
53
|
+
},
|
|
54
|
+
da: {
|
|
55
|
+
tokens: "Tokens",
|
|
56
|
+
buyNow: "Køb nu",
|
|
57
|
+
back: "Tilbage"
|
|
58
|
+
},
|
|
59
|
+
de: {
|
|
60
|
+
tokens: "Token",
|
|
61
|
+
buyNow: "Jetzt kaufen",
|
|
62
|
+
back: "Zurück"
|
|
63
|
+
},
|
|
64
|
+
nl: {
|
|
65
|
+
tokens: "Tokens",
|
|
66
|
+
buyNow: "Nu kopen",
|
|
67
|
+
back: "Terug"
|
|
68
|
+
},
|
|
69
|
+
fr: {
|
|
70
|
+
tokens: "Jetons",
|
|
71
|
+
buyNow: "Acheter",
|
|
72
|
+
back: "Retour"
|
|
73
|
+
},
|
|
74
|
+
hu: {
|
|
75
|
+
tokens: "Tokenek",
|
|
76
|
+
buyNow: "Vásárlás",
|
|
77
|
+
back: "Vissza"
|
|
78
|
+
}
|
|
79
|
+
}, Ue = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='800px'%20height='800px'%20viewBox='0%200%20120%20120'%20fill='none'%3e%3crect%20width='120'%20height='120'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M33.2503%2038.4816C33.2603%2037.0472%2034.4199%2035.8864%2035.8543%2035.875H83.1463C84.5848%2035.875%2085.7503%2037.0431%2085.7503%2038.4816V80.5184C85.7403%2081.9528%2084.5807%2083.1136%2083.1463%2083.125H35.8543C34.4158%2083.1236%2033.2503%2081.957%2033.2503%2080.5184V38.4816ZM80.5006%2041.1251H38.5006V77.8751L62.8921%2053.4783C63.9172%2052.4536%2065.5788%2052.4536%2066.6039%2053.4783L80.5006%2067.4013V41.1251ZM43.75%2051.6249C43.75%2054.5244%2046.1005%2056.8749%2049%2056.8749C51.8995%2056.8749%2054.25%2054.5244%2054.25%2051.6249C54.25%2048.7254%2051.8995%2046.3749%2049%2046.3749C46.1005%2046.3749%2043.75%2048.7254%2043.75%2051.6249Z'%20fill='%23687787'/%3e%3c/svg%3e";
|
|
80
|
+
var Me = V('<img class="loyalty-shop-item__image svelte-ravnpu"/>'), Oe = V('<div class="loyalty-shop-item__card loyalty-shop-item__card--description svelte-ravnpu"><p class="loyalty-shop-item__description svelte-ravnpu"> </p></div>'), ze = V('<div class="loyalty-shop-item svelte-ravnpu"><div class="loyalty-shop-item__card svelte-ravnpu"><!> <span class="loyalty-shop-item__title svelte-ravnpu"> </span> <span class="loyalty-shop-item__points svelte-ravnpu"> </span> <button class="loyalty-shop-item__button svelte-ravnpu" type="button"> </button></div> <!> <!></div>');
|
|
81
|
+
const je = {
|
|
82
|
+
hash: "svelte-ravnpu",
|
|
83
|
+
code: `.loyalty-shop-item.svelte-ravnpu {display:flex;flex-direction:column;gap:12px;}.loyalty-shop-item__card.svelte-ravnpu {display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:10px;border:1px solid var(--border-default, rgba(251, 251, 251, 0.15));background-color:var(--app-container-bg-default, #022652);}.loyalty-shop-item__card--description.svelte-ravnpu {min-height:120px;}.loyalty-shop-item__image.svelte-ravnpu {width:100%;height:170px;border-radius:6px;}.loyalty-shop-item__title.svelte-ravnpu {color:var(--text-default, #ffffff);font-size:12px;font-weight:400;}.loyalty-shop-item__points.svelte-ravnpu {color:var(--text-subtle, #dfe3e8);font-size:14px;font-weight:400;}.loyalty-shop-item__button.svelte-ravnpu {margin-top:auto;width:100%;height:37px;padding:8px 16px;border:none;border-radius:6px;background:var(--button-primary-bg-default, #ffcc00);color:var(--button-primary-text-default, #261d00);font-size:12px;font-weight:400;cursor:pointer;}.loyalty-shop-item__button.svelte-ravnpu:disabled {opacity:0.4;cursor:default;}.loyalty-shop-item__description.svelte-ravnpu {color:var(--text-subtle, #dfe3e8);font-size:12px;line-height:1.4;margin:0;font-weight:500;min-height:120px;}
|
|
84
|
+
|
|
85
|
+
@media (min-width: 768px) {.loyalty-shop-item__image.svelte-ravnpu {height:clamp(170px, 30vw, 400px);object-fit:cover;}
|
|
86
|
+
}`
|
|
87
|
+
};
|
|
88
|
+
function X(g, a) {
|
|
89
|
+
Y(a, !0), ve(g, je);
|
|
90
|
+
const o = () => Te(Ne, "$_", d), [d, _] = Se(), u = p(a, "apiEndpoint", 7, ""), v = p(a, "userSession", 7, ""), c = p(a, "locale", 7, ""), l = p(a, "itemId", 7, ""), r = p(a, "elevateReward"), S = p(a, "translationUrl");
|
|
91
|
+
fe({ withLocale: c(), translations: {} }), Object.entries(Ce).forEach(([e, t]) => {
|
|
92
|
+
q(e, t);
|
|
93
|
+
});
|
|
94
|
+
let i = O(he(r())), I = O(!1), A = O("");
|
|
95
|
+
const B = C(() => {
|
|
96
|
+
var e, t, n, f;
|
|
97
|
+
return (f = (n = (t = (e = s(i)) == null ? void 0 : e.presentation) == null ? void 0 : t.assets) == null ? void 0 : n[0]) != null ? f : "";
|
|
98
|
+
}), D = C(() => {
|
|
99
|
+
var e, t, n, f, w;
|
|
100
|
+
return (w = (f = (t = (e = s(i)) == null ? void 0 : e.presentation) == null ? void 0 : t.displayName) != null ? f : (n = s(i)) == null ? void 0 : n.displayName) != null ? w : "";
|
|
101
|
+
}), H = C(() => {
|
|
102
|
+
var e, t, n;
|
|
103
|
+
return (n = (t = (e = s(i)) == null ? void 0 : e.presentation) == null ? void 0 : t.description) != null ? n : "";
|
|
104
|
+
}), F = C(() => {
|
|
105
|
+
var e;
|
|
106
|
+
return ((e = s(i)) == null ? void 0 : e.available) === "true";
|
|
107
|
+
}), ee = () => {
|
|
108
|
+
let e = new URL(S(), window.location.href);
|
|
109
|
+
fetch(e.href).then((t) => t.json()).then((t) => {
|
|
110
|
+
Object.keys(t).forEach((n) => {
|
|
111
|
+
q(n, t[n]);
|
|
112
|
+
});
|
|
113
|
+
}).catch((t) => {
|
|
114
|
+
console.log("loyalty shop item translation url err:", t);
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
ye(() => {
|
|
118
|
+
S() && ee();
|
|
119
|
+
}), G(() => {
|
|
120
|
+
if (r()) {
|
|
121
|
+
E(i, r(), !0);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
!u() || !l() || ge(
|
|
125
|
+
{
|
|
126
|
+
apiEndpoint: u(),
|
|
127
|
+
userSession: v(),
|
|
128
|
+
locale: c()
|
|
129
|
+
},
|
|
130
|
+
l()
|
|
131
|
+
).then((e) => {
|
|
132
|
+
E(i, e, !0);
|
|
133
|
+
}).catch((e) => console.error("Failed to load shop item:", e));
|
|
134
|
+
});
|
|
135
|
+
const te = () => {
|
|
136
|
+
s(I) || !s(F) || !s(i) || Ie(s(i).displayName || s(i).presentation.displayName, s(i).id);
|
|
137
|
+
}, ae = () => J(this, null, function* () {
|
|
138
|
+
var t;
|
|
139
|
+
if (!u() || !s(i))
|
|
140
|
+
return;
|
|
141
|
+
E(I, !0), E(A, "");
|
|
142
|
+
const e = s(i).id;
|
|
143
|
+
try {
|
|
144
|
+
yield xe({ apiEndpoint: u(), userSession: v() }, e), Ee(e), Re();
|
|
145
|
+
} catch (n) {
|
|
146
|
+
E(A, (t = n == null ? void 0 : n.message) != null ? t : "Redeem failed", !0), ke(e, n);
|
|
147
|
+
} finally {
|
|
148
|
+
E(I, !1);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
G(() => {
|
|
152
|
+
const e = (t) => {
|
|
153
|
+
var n, f, w;
|
|
154
|
+
((n = t.data) == null ? void 0 : n.type) === _e.REDEEM_REWARD_CONFIRMED && ((f = t.data) == null ? void 0 : f.id) === ((w = s(i)) == null ? void 0 : w.id) && ae();
|
|
155
|
+
};
|
|
156
|
+
return window.addEventListener("message", e), () => window.removeEventListener("message", e);
|
|
157
|
+
});
|
|
158
|
+
var se = {
|
|
159
|
+
get apiEndpoint() {
|
|
160
|
+
return u();
|
|
161
|
+
},
|
|
162
|
+
set apiEndpoint(e = "") {
|
|
163
|
+
u(e), m();
|
|
164
|
+
},
|
|
165
|
+
get userSession() {
|
|
166
|
+
return v();
|
|
167
|
+
},
|
|
168
|
+
set userSession(e = "") {
|
|
169
|
+
v(e), m();
|
|
170
|
+
},
|
|
171
|
+
get locale() {
|
|
172
|
+
return c();
|
|
173
|
+
},
|
|
174
|
+
set locale(e = "") {
|
|
175
|
+
c(e), m();
|
|
176
|
+
},
|
|
177
|
+
get itemId() {
|
|
178
|
+
return l();
|
|
179
|
+
},
|
|
180
|
+
set itemId(e = "") {
|
|
181
|
+
l(e), m();
|
|
182
|
+
},
|
|
183
|
+
get elevateReward() {
|
|
184
|
+
return r();
|
|
185
|
+
},
|
|
186
|
+
set elevateReward(e) {
|
|
187
|
+
r(e), m();
|
|
188
|
+
},
|
|
189
|
+
get translationUrl() {
|
|
190
|
+
return S();
|
|
191
|
+
},
|
|
192
|
+
set translationUrl(e) {
|
|
193
|
+
S(e), m();
|
|
194
|
+
}
|
|
195
|
+
}, P = we(), ne = be(P);
|
|
196
|
+
{
|
|
197
|
+
var re = (e) => {
|
|
198
|
+
var t = ze(), n = b(t), f = b(n);
|
|
199
|
+
{
|
|
200
|
+
var w = (h) => {
|
|
201
|
+
var y = Me();
|
|
202
|
+
j(() => {
|
|
203
|
+
K(y, "src", s(B) || Ue), K(y, "alt", s(D));
|
|
204
|
+
}), N(h, y);
|
|
205
|
+
};
|
|
206
|
+
z(f, (h) => {
|
|
207
|
+
s(B) && h(w);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
var U = k(f, 2), ie = b(U, !0);
|
|
211
|
+
x(U);
|
|
212
|
+
var M = k(U, 2), le = b(M);
|
|
213
|
+
x(M);
|
|
214
|
+
var T = k(M, 2);
|
|
215
|
+
T.__click = te;
|
|
216
|
+
var de = b(T, !0);
|
|
217
|
+
x(T), x(n);
|
|
218
|
+
var Z = k(n, 2);
|
|
219
|
+
Le(Z, {
|
|
220
|
+
get apiEndpoint() {
|
|
221
|
+
return u();
|
|
222
|
+
},
|
|
223
|
+
get userSession() {
|
|
224
|
+
return v();
|
|
225
|
+
},
|
|
226
|
+
get locale() {
|
|
227
|
+
return c();
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
var ue = k(Z, 2);
|
|
231
|
+
{
|
|
232
|
+
var ce = (h) => {
|
|
233
|
+
var y = Oe(), R = b(y), pe = b(R, !0);
|
|
234
|
+
x(R), x(y), j(() => L(pe, s(H))), N(h, y);
|
|
235
|
+
};
|
|
236
|
+
z(ue, (h) => {
|
|
237
|
+
s(H) && h(ce);
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
x(t), j(
|
|
241
|
+
(h, y) => {
|
|
242
|
+
var R;
|
|
243
|
+
L(ie, s(D)), L(le, `${(R = s(i).points) != null ? R : ""}
|
|
244
|
+
${h != null ? h : ""}`), T.disabled = !s(F) || s(I), L(de, y);
|
|
245
|
+
},
|
|
246
|
+
[() => o()("tokens"), () => o()("buyNow")]
|
|
247
|
+
), N(e, t);
|
|
248
|
+
};
|
|
249
|
+
z(ne, (e) => {
|
|
250
|
+
s(i) && e(re);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
N(g, P);
|
|
254
|
+
var oe = Q(se);
|
|
255
|
+
return _(), oe;
|
|
256
|
+
}
|
|
257
|
+
me(["click"]);
|
|
258
|
+
W(
|
|
259
|
+
X,
|
|
260
|
+
{
|
|
261
|
+
apiEndpoint: {},
|
|
262
|
+
userSession: {},
|
|
263
|
+
locale: {},
|
|
264
|
+
itemId: {},
|
|
265
|
+
elevateReward: {},
|
|
266
|
+
translationUrl: {}
|
|
267
|
+
},
|
|
268
|
+
[],
|
|
269
|
+
[],
|
|
270
|
+
!0
|
|
271
|
+
);
|
|
272
|
+
function $(g, a) {
|
|
273
|
+
Y(a, !0);
|
|
274
|
+
let o = p(a, "apiEndpoint", 7, ""), d = p(a, "userSession", 7, ""), _ = p(a, "locale", 7, ""), u = p(a, "itemId", 7, ""), v = p(a, "elevateReward"), c = p(a, "translationUrl");
|
|
275
|
+
var l = {
|
|
276
|
+
get apiEndpoint() {
|
|
277
|
+
return o();
|
|
278
|
+
},
|
|
279
|
+
set apiEndpoint(r = "") {
|
|
280
|
+
o(r), m();
|
|
281
|
+
},
|
|
282
|
+
get userSession() {
|
|
283
|
+
return d();
|
|
284
|
+
},
|
|
285
|
+
set userSession(r = "") {
|
|
286
|
+
d(r), m();
|
|
287
|
+
},
|
|
288
|
+
get locale() {
|
|
289
|
+
return _();
|
|
290
|
+
},
|
|
291
|
+
set locale(r = "") {
|
|
292
|
+
_(r), m();
|
|
293
|
+
},
|
|
294
|
+
get itemId() {
|
|
295
|
+
return u();
|
|
296
|
+
},
|
|
297
|
+
set itemId(r = "") {
|
|
298
|
+
u(r), m();
|
|
299
|
+
},
|
|
300
|
+
get elevateReward() {
|
|
301
|
+
return v();
|
|
302
|
+
},
|
|
303
|
+
set elevateReward(r) {
|
|
304
|
+
v(r), m();
|
|
305
|
+
},
|
|
306
|
+
get translationUrl() {
|
|
307
|
+
return c();
|
|
308
|
+
},
|
|
309
|
+
set translationUrl(r) {
|
|
310
|
+
c(r), m();
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
return X(g, {
|
|
314
|
+
get apiEndpoint() {
|
|
315
|
+
return o();
|
|
316
|
+
},
|
|
317
|
+
get userSession() {
|
|
318
|
+
return d();
|
|
319
|
+
},
|
|
320
|
+
get locale() {
|
|
321
|
+
return _();
|
|
322
|
+
},
|
|
323
|
+
get itemId() {
|
|
324
|
+
return u();
|
|
325
|
+
},
|
|
326
|
+
get elevateReward() {
|
|
327
|
+
return v();
|
|
328
|
+
},
|
|
329
|
+
get translationUrl() {
|
|
330
|
+
return c();
|
|
331
|
+
}
|
|
332
|
+
}), Q(l);
|
|
333
|
+
}
|
|
334
|
+
customElements.define("loyalty-shop-item", W(
|
|
335
|
+
$,
|
|
336
|
+
{
|
|
337
|
+
apiEndpoint: {},
|
|
338
|
+
userSession: {},
|
|
339
|
+
locale: {},
|
|
340
|
+
itemId: {},
|
|
341
|
+
elevateReward: {},
|
|
342
|
+
translationUrl: {}
|
|
343
|
+
},
|
|
344
|
+
[],
|
|
345
|
+
[],
|
|
346
|
+
!1
|
|
347
|
+
));
|
|
348
|
+
const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
349
|
+
__proto__: null,
|
|
350
|
+
default: $
|
|
351
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
352
|
+
export {
|
|
353
|
+
X as L,
|
|
354
|
+
De as a
|
|
355
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const s=require("../components/LoyaltyShop-BsZThRDe.cjs");if(typeof window!="undefined"){let o=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t instanceof Error&&t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("../components/LoyaltyShop-BsZThRDe.cjs")).then(e=>e.LoyaltyShop_ce).then(e=>{const n=e.default||e;customElements.get("loyalty-shop")||customElements.define("loyalty-shop",n.element||n)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=s.LoyaltyShop;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { L as a } from "../components/LoyaltyShop-CtNpYAKa.js";
|
|
2
|
+
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
3
|
+
}, globalThis.customElements = { define() {
|
|
4
|
+
}, get() {
|
|
5
|
+
}, whenDefined() {
|
|
6
|
+
} });
|
|
7
|
+
if (typeof window != "undefined") {
|
|
8
|
+
let s = function(e) {
|
|
9
|
+
return function(...n) {
|
|
10
|
+
try {
|
|
11
|
+
return e.apply(this, n);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t instanceof Error && t.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
14
|
+
return !1;
|
|
15
|
+
throw t;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
customElements.define = s(customElements.define), import("../components/LoyaltyShop-CtNpYAKa.js").then((e) => e.a).then((e) => {
|
|
20
|
+
const n = e.default || e;
|
|
21
|
+
customElements.get("loyalty-shop") || customElements.define("loyalty-shop", n.element || n);
|
|
22
|
+
}).catch((e) => {
|
|
23
|
+
console.error("BOOT ERROR:", e);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
a as default
|
|
28
|
+
};
|
package/esnext/loyalty-shop.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const s=require("../components/LoyaltyShop-Cx8CxsMn.cjs");if(typeof window<"u"){let o=function(e){return function(...n){try{return e.apply(this,n)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t instanceof Error&&t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("../components/LoyaltyShop-Cx8CxsMn.cjs")).then(e=>e.LoyaltyShop_ce).then(e=>{const n=e.default||e;customElements.get("loyalty-shop")||customElements.define("loyalty-shop",n.element||n)}).catch(e=>{console.error("BOOT ERROR:",e)})}module.exports=s.LoyaltyShop;
|
package/esnext/loyalty-shop.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { L as a } from "../components/LoyaltyShop-
|
|
1
|
+
import { L as a } from "../components/LoyaltyShop-DoIx97J9.js";
|
|
2
|
+
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
|
+
}, globalThis.customElements = { define() {
|
|
4
|
+
}, get() {
|
|
5
|
+
}, whenDefined() {
|
|
6
|
+
} });
|
|
2
7
|
if (typeof window < "u") {
|
|
3
8
|
let s = function(e) {
|
|
4
9
|
return function(...n) {
|
|
@@ -11,7 +16,7 @@ if (typeof window < "u") {
|
|
|
11
16
|
}
|
|
12
17
|
};
|
|
13
18
|
};
|
|
14
|
-
customElements.define = s(customElements.define), import("../components/LoyaltyShop-
|
|
19
|
+
customElements.define = s(customElements.define), import("../components/LoyaltyShop-DoIx97J9.js").then((e) => e.a).then((e) => {
|
|
15
20
|
const n = e.default || e;
|
|
16
21
|
customElements.get("loyalty-shop") || customElements.define("loyalty-shop", n.element || n);
|
|
17
22
|
}).catch((e) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/loyalty-shop",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./esnext/loyalty-shop.cjs",
|
|
6
6
|
"module": "./esnext/loyalty-shop.js",
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
"default": "./esnext/loyalty-shop.js"
|
|
13
13
|
},
|
|
14
14
|
"./esnext/loyalty-shop.cjs": "./esnext/loyalty-shop.cjs",
|
|
15
|
-
"./esnext/loyalty-shop.js": "./esnext/loyalty-shop.js"
|
|
15
|
+
"./esnext/loyalty-shop.js": "./esnext/loyalty-shop.js",
|
|
16
|
+
"./es2015/loyalty-shop.cjs": "./es2015/loyalty-shop.cjs",
|
|
17
|
+
"./es2015/loyalty-shop.js": "./es2015/loyalty-shop.js"
|
|
16
18
|
},
|
|
17
19
|
"files": [
|
|
18
20
|
"esnext",
|
|
21
|
+
"es2015",
|
|
19
22
|
"components"
|
|
20
23
|
],
|
|
21
24
|
"publishConfig": {
|