@everymatrix/loyalty-shop 0.1.18 → 0.1.20
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-ChnSUs6d.cjs +14 -0
- package/components/{LoyaltyPagination-Bdx-smp6.js → LoyaltyPagination-D7m97E0W.js} +2283 -2227
- package/components/LoyaltyPagination-DzmuO9_8.cjs +14 -0
- package/components/{LoyaltyPagination-kvqB9vki.js → LoyaltyPagination-o3rQCgms.js} +2287 -2232
- package/components/{LoyaltyPointsCard-a-ERcIbF.cjs → LoyaltyPointsCard-46BqNZEK.cjs} +3 -3
- package/components/{LoyaltyPointsCard-DAwt9_VW.cjs → LoyaltyPointsCard-5kjF6xRz.cjs} +3 -3
- package/components/{LoyaltyPointsCard-Dte4kVve.js → LoyaltyPointsCard-CdBEe40I.js} +64 -68
- package/components/{LoyaltyPointsCard-CpUgbUoh.js → LoyaltyPointsCard-SZEIZzo0.js} +59 -63
- package/components/{LoyaltyShop-ICV4lgAz.cjs → LoyaltyShop-B2lSw5jy.cjs} +3 -3
- package/components/{LoyaltyShop-D4hhy3SS.js → LoyaltyShop-DGAZjo_P.js} +141 -149
- package/components/{LoyaltyShop-Dvy8bKVO.cjs → LoyaltyShop-DGLy6Hu5.cjs} +3 -3
- package/components/{LoyaltyShop-B5kW3Kng.js → LoyaltyShop-_bWN39Rn.js} +135 -143
- package/components/{LoyaltyShopItem-B-9ignkf.js → LoyaltyShopItem-CtZFkxzA.js} +68 -72
- package/components/{LoyaltyShopItem-DY4h5OAR.cjs → LoyaltyShopItem-DpFV9qnk.cjs} +3 -3
- package/components/{LoyaltyShopItem-Dwm024JF.js → LoyaltyShopItem-DxwkafBG.js} +81 -85
- package/components/{LoyaltyShopItem-DCnDun5S.cjs → LoyaltyShopItem-PkfmBV5A.cjs} +3 -3
- package/es2015/loyalty-shop.cjs +1 -1
- package/es2015/loyalty-shop.js +2 -2
- package/esnext/loyalty-shop.cjs +1 -1
- package/esnext/loyalty-shop.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPagination-ClX3N4HA.cjs +0 -16
- package/components/LoyaltyPagination-DdJI2Ptf.cjs +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-DzmuO9_8.cjs"),_e=require("./LoyaltyShopItem-PkfmBV5A.cjs");if(typeof window<"u"){let m=function(n){return function(...l){try{return n.apply(this,l)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a instanceof Error&&a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=m(customElements.define),Promise.resolve().then(()=>require("./LoyaltyPagination-DzmuO9_8.cjs")).then(n=>n.LoyaltyPagination_ce).then(n=>{const l=n.default||n;customElements.get("loyalty-pagination")||customElements.define("loyalty-pagination",l.element||l)}).catch(n=>{console.error("BOOT ERROR:",n)})}if(typeof window<"u"){let m=function(n){return function(...l){try{return n.apply(this,l)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a instanceof Error&&a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=m(customElements.define),Promise.resolve().then(()=>require("./LoyaltyShopItem-PkfmBV5A.cjs")).then(n=>n.LoyaltyShopItem_ce).then(n=>{const l=n.default||n;customElements.get("loyalty-shop-item")||customElements.define("loyalty-shop-item",l.element||l)}).catch(n=>{console.error("BOOT ERROR:",n)})}const ve={en:{loading:"Loading…",noContent:"There are no bonus items available for redemption.",networkProblem:"Network problem. Please reload.",tokens:"Tokens",buyNow:"Buy Now",generalError:"Something went wrong... Please try again."},tr:{loading:"Yükleniyor…",noContent:"Kullanılabilir bonus öğesi bulunmamaktadır.",networkProblem:"Ağ sorunu. Lütfen yeniden yükleyin.",tokens:"Tokens",buyNow:"Satın Al",generalError:"Bir sorun oluştu, lütfen tekrar deneyin."},da:{loading:"Indlæser…",noContent:"Der er ingen bonusgenstande tilgængelige til indløsning.",networkProblem:"Netværksproblem. Genindlæs venligst siden.",tokens:"Tokens",buyNow:"Køb nu",generalError:"Noget gik galt. Prøv venligst igen."},de:{loading:"Wird geladen…",noContent:"Es sind keine Bonusartikel zum Einlösen verfügbar.",networkProblem:"Netzwerkproblem. Bitte lade die Seite neu.",tokens:"Token",buyNow:"Jetzt kaufen",generalError:"Etwas ist schiefgelaufen. Bitte versuche es erneut."},nl:{loading:"Laden…",noContent:"Er zijn geen bonusitems beschikbaar om in te wisselen.",networkProblem:"Netwerkprobleem. Laad de pagina opnieuw.",tokens:"Tokens",buyNow:"Nu kopen",generalError:"Er is iets misgegaan. Probeer het opnieuw."},fr:{loading:"Chargement…",noContent:"Aucun bonus n'est disponible pour être échangé.",networkProblem:"Problème de réseau. Veuillez recharger la page.",tokens:"Jetons",buyNow:"Acheter",generalError:"Une erreur s'est produite. Veuillez réessayer."},hu:{loading:"Betöltés…",noContent:"Nincsenek beváltható bónuszok.",networkProblem:"Hálózati probléma. Kérjük, töltsd újra az oldalt.",tokens:"Tokenek",buyNow:"Vásárlás",generalError:"Hiba történt. Kérjük, próbáld újra."}},be="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";var ke=e.from_html('<div class="loyalty-shop__item loyalty-shop__item--skeleton svelte-1f1q033"><div class="loyalty-shop__item-image skeleton-box svelte-1f1q033"></div> <div class="loyalty-shop__item-title skeleton-line svelte-1f1q033"></div> <div class="loyalty-shop__item-points skeleton-line skeleton-line--short svelte-1f1q033"></div> <div class="loyalty-shop__item-button-skeleton skeleton-box svelte-1f1q033"></div></div>'),we=e.from_html('<div class="loyalty-shop__grid loyalty-shop__grid--skeleton svelte-1f1q033"></div>'),Ee=e.from_html('<div class="loyalty-shop__unavailable svelte-1f1q033"> </div>'),xe=e.from_html('<div><div role="button" tabindex="0" class="loyalty-shop__item-image-container svelte-1f1q033"><img class="loyalty-shop__item-image svelte-1f1q033"/></div> <span class="loyalty-shop__item-title svelte-1f1q033"> </span> <span class="loyalty-shop__item-points svelte-1f1q033"> </span> <button class="loyalty-shop__item-button svelte-1f1q033" type="button"> </button></div>'),Se=e.from_html('<div class="load-more-sentinel svelte-1f1q033" aria-hidden="true"></div>'),qe=e.from_html('<div class="loyalty-shop__grid svelte-1f1q033"></div> <!> <!>',1),Ie=e.from_html('<div class="loyalty-shop svelte-1f1q033"><!></div>');const Le={hash:"svelte-1f1q033",code:`.loyalty-shop.svelte-1f1q033 {padding:16px;border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));background-color:var(--app-container-bg-default, #022652);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}.loyalty-shop__unavailable.svelte-1f1q033 {color:var(--text-subtle, #dfe3e8);font-size:14px;padding:24px 0;text-align:center;}.loyalty-shop__grid.svelte-1f1q033 {display:grid;gap:16px;grid-template-columns:repeat(2, 1fr);margin:0;}.loyalty-shop__item.svelte-1f1q033 {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-subtle, rgba(251, 251, 251, 0.1));}.loyalty-shop__item--unavailable.svelte-1f1q033 {opacity:1;}.loyalty-shop__item-image.svelte-1f1q033 {width:100%;height:82px;border-radius:6px;}.loyalty-shop__item-title.svelte-1f1q033 {color:var(--text-default, #ffffff);font-size:12px;font-weight:400;}.loyalty-shop__item-points.svelte-1f1q033 {color:var(--text-subtle, #dfe3e8);font-size:14px;font-weight:400;}.loyalty-shop__item-button.svelte-1f1q033 {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-1f1q033:disabled {opacity:0.4;cursor:default;}.skeleton-box.svelte-1f1q033 {background:linear-gradient(
|
|
2
2
|
90deg,
|
|
3
3
|
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
4
4
|
color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
|
|
@@ -23,5 +23,5 @@ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.cu
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@media (min-width: 768px) {.loyalty-shop__grid.svelte-1f1q033 {grid-template-columns:repeat(4, 1fr);justify-content:start;margin:0;}.loyalty-shop__item.svelte-1f1q033 {width:100%;height:100%;box-sizing:border-box;}.loyalty-shop__item-image.svelte-1f1q033 {height:200px;}.loyalty-shop__item--skeleton.svelte-1f1q033 .loyalty-shop__item-image:where(.svelte-1f1q033) {height:200px;}
|
|
26
|
-
}`};function
|
|
27
|
-
${me??""}`),
|
|
26
|
+
}`};function A(m,n){e.push(n,!0),e.append_styles(m,Le);const l=()=>e.store_get(e.$format,"$_",a),[a,k]=e.setup_stores(),p=e.prop(n,"apiEndpoint",7,""),c=e.prop(n,"userSession",7,""),f=e.prop(n,"locale",7,""),i=e.prop(n,"limitItem",7,e.ITEMS_LIMIT_DEFAULT),x=e.prop(n,"translationUrl");e.setupI18n({withLocale:f(),translations:{}});const Y=async()=>{try{const t=new URL(x(),window.location.href),o=await fetch(t.href);if(!o.ok)throw new Error("Failed to fetch translations");const s=await o.json();Object.entries(s).forEach(([r,v])=>{e.addNewMessages(r,v)})}catch(t){console.error("loyalty shop translation url err:",t)}};Object.entries(ve).forEach(([t,o])=>{e.addNewMessages(t,o)});let u=e.state(e.proxy([])),w=e.state(void 0),S=e.state(0),h=e.state(0),_=e.state(e.proxy(e.MOBILE_LOAD_ITEMS)),M=e.state(!1),C=e.state(!1),E=e.state(void 0),y=e.state(!1),q=e.state(void 0),I=0;const Z=e.user_derived(()=>typeof i()=="number"?i():parseInt(i(),e.ITEMS_LIMIT_DEFAULT)||e.ITEMS_LIMIT_DEFAULT),z=()=>{if(!p()||!c())return;e.set(M,!0),e.set(C,!1);const t=++I,o=e.get(y)&&e.get(h)>0;e.fetchShopRewards({apiEndpoint:p(),userSession:c(),locale:f()},e.get(h),e.get(_)).then(s=>{if(t!==I)return;const r=s.data??[];e.set(S,s.total??0,!0),o?e.set(u,[...e.get(u),...r],!0):e.set(u,r,!0)}).catch(s=>{t===I&&(e.set(C,!0),console.error("Failed to load shop rewards:",s))}).finally(()=>{t===I&&e.set(M,!1)})};e.user_effect(()=>{p(),c(),f(),e.get(h),e.get(_),z()}),e.user_effect(()=>{const t=window.matchMedia("(max-width: 767px)"),o=s=>{e.set(y,s.matches,!0)};return e.set(y,t.matches,!0),t.addEventListener("change",o),()=>t.removeEventListener("change",o)}),e.user_effect(()=>{e.set(_,e.get(y)?e.MOBILE_LOAD_ITEMS:e.get(Z),!0)}),e.user_effect(()=>{if(!e.get(y)||!e.get(q))return;const t=new IntersectionObserver(o=>{o.some(s=>s.isIntersecting)&&e.get(u).length<e.get(S)&&e.set(h,e.get(h)+e.get(_))},{rootMargin:"200px"});return t.observe(e.get(q)),()=>t.disconnect()}),e.user_pre_effect(()=>{x()&&Y()});const J=t=>t.presentation?.assets?.[0]??be,R=t=>t.displayName??t.presentation?.displayName??"",N=t=>t.available==="true",W=t=>{e.get(E)||!N(t)||e.sendRedeemRewardRequested(R(t),t.id)},G=async t=>{if(!(!p()||e.get(E))){e.set(E,t,!0);try{await e.redeemReward({apiEndpoint:p(),userSession:c()},t),e.sendRedeemRewardSuccess(t),e.dispatchRedeemRewardButton(),z()}catch(o){e.sendRedeemRewardFailed(t,o)}finally{e.set(E,void 0)}}};e.user_effect(()=>{const t=o=>{const{type:s,id:r,source:v}=o.data??{};switch(s){case e.EVENT_TYPES.REDEEM_REWARD_CONFIRMED:r&&e.get(u).some(L=>L.id===r)&&G(r);break;case e.EVENT_TYPES.BACK_BUTTON_CLICKED:v===e.SOURCE&&e.set(w,void 0);break}};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)});const Q=()=>e.get(u).length?l()("generalError"):l()("noContent"),X=t=>{e.set(h,t,!0)},$=t=>{e.sendRewardItemClicked(t.displayName||t.presentation.displayName,t.id)},B=t=>{e.set(w,t,!0),$(t)},ee=t=>o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),B(t))};var te={get apiEndpoint(){return p()},set apiEndpoint(t=""){p(t),e.flushSync()},get userSession(){return c()},set userSession(t=""){c(t),e.flushSync()},get locale(){return f()},set locale(t=""){f(t),e.flushSync()},get limitItem(){return i()},set limitItem(t=e.ITEMS_LIMIT_DEFAULT){i(t),e.flushSync()},get translationUrl(){return x()},set translationUrl(t){x(t),e.flushSync()}},O=Ie(),ne=e.child(O);{var oe=t=>{_e.LoyaltyShopItem(t,{get itemId(){return e.get(w).id},get elevateReward(){return e.get(w)},get apiEndpoint(){return p()},get userSession(){return c()},get locale(){return f()}})},se=t=>{var o=we();e.each(o,21,()=>Array(e.get(_)),e.index,(s,r,v,L)=>{var P=ke();e.append(s,P)}),e.reset(o),e.append(t,o)},le=t=>{var o=Ee(),s=e.only_child(o,!0);e.template_effect(r=>e.set_text(s,r),[()=>Q()]),e.append(t,o)},ae=t=>{var o=qe(),s=e.first_child(o);e.each(s,21,()=>e.get(u),g=>g.id,(g,d)=>{var b=xe();let j;var T=e.child(b),re=e.user_derived(()=>ee(e.get(d))),F=e.only_child(T),V=e.sibling(T,2),de=e.only_child(V,!0),H=e.sibling(V,2),pe=e.only_child(H),U=e.sibling(H,2),ce=e.only_child(U,!0);e.reset(b),e.template_effect((D,ge,ue,fe,me,he,ye)=>{j=e.set_class(b,1,"loyalty-shop__item svelte-1f1q033",null,j,{"loyalty-shop__item--unavailable":D}),e.set_attribute(F,"src",ge),e.set_attribute(F,"alt",ue),e.set_text(de,fe),e.set_text(pe,`${e.get(d).points??""}
|
|
27
|
+
${me??""}`),U.disabled=he,e.set_text(ce,ye)},[()=>!N(e.get(d)),()=>J(e.get(d)),()=>R(e.get(d)),()=>R(e.get(d)),()=>l()("tokens"),()=>!N(e.get(d))||e.get(E)===e.get(d).id,()=>l()("buyNow")]),e.delegated("click",T,()=>B(e.get(d))),e.delegated("keydown",T,function(...D){e.get(re)?.apply(this,D)}),e.delegated("click",U,()=>W(e.get(d))),e.append(g,b)}),e.reset(s);var r=e.sibling(s,2);{var v=g=>{e.LoyaltyPagination(g,{get offset(){return e.get(h)},get limit(){return e.get(_)},get total(){return e.get(S)},onPageChange:X,get locale(){return f()}})};e.if_block(r,g=>{e.get(y)||g(v)})}var L=e.sibling(r,2);{var P=g=>{var d=Se();e.bind_this(d,b=>e.set(q,b),()=>e.get(q)),e.append(g,d)};e.if_block(L,g=>{e.get(y)&&e.get(u).length<e.get(S)&&g(P)})}e.append(t,o)};e.if_block(ne,t=>{e.get(w)?t(oe):e.get(M)&&e.get(u).length===0?t(se,1):!e.get(u).length||e.get(C)?t(le,2):t(ae,-1)})}e.reset(O),e.append(m,O);var ie=e.pop(te);return k(),ie}e.delegate(["click","keydown"]);e.create_custom_element(A,{apiEndpoint:{},userSession:{},locale:{},limitItem:{},translationUrl:{}},[],[],{mode:"open"});function K(m,n){e.push(n,!0);let l=e.prop(n,"apiEndpoint",7,""),a=e.prop(n,"userSession",7,""),k=e.prop(n,"locale",7,""),p=e.prop(n,"limitItem",7,e.ITEMS_LIMIT_DEFAULT),c=e.prop(n,"translationUrl");var f={get apiEndpoint(){return l()},set apiEndpoint(i=""){l(i),e.flushSync()},get userSession(){return a()},set userSession(i=""){a(i),e.flushSync()},get locale(){return k()},set locale(i=""){k(i),e.flushSync()},get limitItem(){return p()},set limitItem(i=e.ITEMS_LIMIT_DEFAULT){p(i),e.flushSync()},get translationUrl(){return c()},set translationUrl(i){c(i),e.flushSync()}};return A(m,{get apiEndpoint(){return l()},get userSession(){return a()},get locale(){return k()},get limitItem(){return p()},get translationUrl(){return c()}}),e.pop(f)}customElements.define("loyalty-shop",e.create_custom_element(K,{apiEndpoint:{},userSession:{},locale:{},limitItem:{},translationUrl:{}},[],[]));const Te=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));exports.LoyaltyShop=A;exports.LoyaltyShop_ce=Te;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as
|
|
1
|
+
import { z as Ke, c as me, p as ge, a as Fe, b as h, s as Ze, d as ae, A as f, B as oe, P as le, E as N, m as t, F as i, C as Je, H as ie, S as We, i as G, h as w, j as fe, Q as I, R as Ye, u as re, I as Ge, J as Qe, K as Xe, L as $e, w as x, k as y, l as et, n as de, r as D, T as ue, U as tt, o as T, t as ce, v as j, g as nt, q as M, x as st, $ as at, V as ot, O as pe, M as Q, W as lt, X as it, N as rt, Y as dt } from "./LoyaltyPagination-D7m97E0W.js";
|
|
2
|
+
import { L as ut } from "./LoyaltyShopItem-CtZFkxzA.js";
|
|
3
3
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
5
5
|
}, get() {
|
|
6
6
|
}, whenDefined() {
|
|
7
7
|
} });
|
|
8
8
|
if (typeof window < "u") {
|
|
9
|
-
let
|
|
9
|
+
let b = function(n) {
|
|
10
10
|
return function(...o) {
|
|
11
11
|
try {
|
|
12
12
|
return n.apply(this, o);
|
|
@@ -17,7 +17,7 @@ if (typeof window < "u") {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
customElements.define =
|
|
20
|
+
customElements.define = b(customElements.define), import("./LoyaltyPagination-D7m97E0W.js").then((n) => n.Z).then((n) => {
|
|
21
21
|
const o = n.default || n;
|
|
22
22
|
customElements.get("loyalty-pagination") || customElements.define("loyalty-pagination", o.element || o);
|
|
23
23
|
}).catch((n) => {
|
|
@@ -25,7 +25,7 @@ if (typeof window < "u") {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
if (typeof window < "u") {
|
|
28
|
-
let
|
|
28
|
+
let b = function(n) {
|
|
29
29
|
return function(...o) {
|
|
30
30
|
try {
|
|
31
31
|
return n.apply(this, o);
|
|
@@ -36,14 +36,14 @@ if (typeof window < "u") {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
customElements.define =
|
|
39
|
+
customElements.define = b(customElements.define), import("./LoyaltyShopItem-CtZFkxzA.js").then((n) => n.a).then((n) => {
|
|
40
40
|
const o = n.default || n;
|
|
41
41
|
customElements.get("loyalty-shop-item") || customElements.define("loyalty-shop-item", o.element || o);
|
|
42
42
|
}).catch((n) => {
|
|
43
43
|
console.error("BOOT ERROR:", n);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const ct = {
|
|
47
47
|
en: {
|
|
48
48
|
loading: "Loading…",
|
|
49
49
|
noContent: "There are no bonus items available for redemption.",
|
|
@@ -100,9 +100,9 @@ const ut = {
|
|
|
100
100
|
buyNow: "Vásárlás",
|
|
101
101
|
generalError: "Hiba történt. Kérjük, próbáld újra."
|
|
102
102
|
}
|
|
103
|
-
},
|
|
104
|
-
var
|
|
105
|
-
const
|
|
103
|
+
}, pt = "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";
|
|
104
|
+
var mt = x('<div class="loyalty-shop__item loyalty-shop__item--skeleton svelte-1f1q033"><div class="loyalty-shop__item-image skeleton-box svelte-1f1q033"></div> <div class="loyalty-shop__item-title skeleton-line svelte-1f1q033"></div> <div class="loyalty-shop__item-points skeleton-line skeleton-line--short svelte-1f1q033"></div> <div class="loyalty-shop__item-button-skeleton skeleton-box svelte-1f1q033"></div></div>'), gt = x('<div class="loyalty-shop__grid loyalty-shop__grid--skeleton svelte-1f1q033"></div>'), ft = x('<div class="loyalty-shop__unavailable svelte-1f1q033"> </div>'), ht = x('<div><div role="button" tabindex="0" class="loyalty-shop__item-image-container svelte-1f1q033"><img class="loyalty-shop__item-image svelte-1f1q033"/></div> <span class="loyalty-shop__item-title svelte-1f1q033"> </span> <span class="loyalty-shop__item-points svelte-1f1q033"> </span> <button class="loyalty-shop__item-button svelte-1f1q033" type="button"> </button></div>'), yt = x('<div class="load-more-sentinel svelte-1f1q033" aria-hidden="true"></div>'), vt = x('<div class="loyalty-shop__grid svelte-1f1q033"></div> <!> <!>', 1), bt = x('<div class="loyalty-shop svelte-1f1q033"><!></div>');
|
|
105
|
+
const _t = {
|
|
106
106
|
hash: "svelte-1f1q033",
|
|
107
107
|
code: `.loyalty-shop.svelte-1f1q033 {padding:16px;border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));background-color:var(--app-container-bg-default, #022652);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}.loyalty-shop__unavailable.svelte-1f1q033 {color:var(--text-subtle, #dfe3e8);font-size:14px;padding:24px 0;text-align:center;}.loyalty-shop__grid.svelte-1f1q033 {display:grid;gap:16px;grid-template-columns:repeat(2, 1fr);margin:0;}.loyalty-shop__item.svelte-1f1q033 {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-subtle, rgba(251, 251, 251, 0.1));}.loyalty-shop__item--unavailable.svelte-1f1q033 {opacity:1;}.loyalty-shop__item-image.svelte-1f1q033 {width:100%;height:82px;border-radius:6px;}.loyalty-shop__item-title.svelte-1f1q033 {color:var(--text-default, #ffffff);font-size:12px;font-weight:400;}.loyalty-shop__item-points.svelte-1f1q033 {color:var(--text-subtle, #dfe3e8);font-size:14px;font-weight:400;}.loyalty-shop__item-button.svelte-1f1q033 {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-1f1q033:disabled {opacity:0.4;cursor:default;}.skeleton-box.svelte-1f1q033 {background:linear-gradient(
|
|
108
108
|
90deg,
|
|
@@ -131,110 +131,110 @@ const bt = {
|
|
|
131
131
|
@media (min-width: 768px) {.loyalty-shop__grid.svelte-1f1q033 {grid-template-columns:repeat(4, 1fr);justify-content:start;margin:0;}.loyalty-shop__item.svelte-1f1q033 {width:100%;height:100%;box-sizing:border-box;}.loyalty-shop__item-image.svelte-1f1q033 {height:200px;}.loyalty-shop__item--skeleton.svelte-1f1q033 .loyalty-shop__item-image:where(.svelte-1f1q033) {height:200px;}
|
|
132
132
|
}`
|
|
133
133
|
};
|
|
134
|
-
function
|
|
135
|
-
|
|
136
|
-
const o = () =>
|
|
137
|
-
|
|
138
|
-
const
|
|
134
|
+
function he(b, n) {
|
|
135
|
+
ge(n, !0), Fe(b, _t);
|
|
136
|
+
const o = () => st(at, "$_", l), [l, C] = et(), c = h(n, "apiEndpoint", 7, ""), p = h(n, "userSession", 7, ""), v = h(n, "locale", 7, ""), r = h(n, "limitItem", 7, I), O = h(n, "translationUrl");
|
|
137
|
+
Ze({ withLocale: v(), translations: {} });
|
|
138
|
+
const ve = async () => {
|
|
139
139
|
try {
|
|
140
|
-
const e = new URL(
|
|
140
|
+
const e = new URL(O(), window.location.href), s = await fetch(e.href);
|
|
141
141
|
if (!s.ok)
|
|
142
142
|
throw new Error("Failed to fetch translations");
|
|
143
143
|
const a = await s.json();
|
|
144
|
-
Object.entries(a).forEach(([d,
|
|
145
|
-
ae(d,
|
|
144
|
+
Object.entries(a).forEach(([d, q]) => {
|
|
145
|
+
ae(d, q);
|
|
146
146
|
});
|
|
147
147
|
} catch (e) {
|
|
148
148
|
console.error("loyalty shop translation url err:", e);
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
-
Object.entries(
|
|
151
|
+
Object.entries(ct).forEach(([e, s]) => {
|
|
152
152
|
ae(e, s);
|
|
153
153
|
});
|
|
154
|
-
let g = f(oe([])),
|
|
155
|
-
const
|
|
154
|
+
let g = f(oe([])), R = f(void 0), z = f(0), _ = f(0), E = f(oe(le)), V = f(!1), H = f(!1), L = f(void 0), k = f(!1), P = f(void 0), U = 0;
|
|
155
|
+
const be = re(() => typeof r() == "number" ? r() : parseInt(r(), I) || I), X = () => {
|
|
156
156
|
if (!c() || !p())
|
|
157
157
|
return;
|
|
158
|
-
i(
|
|
159
|
-
const e = ++
|
|
158
|
+
i(V, !0), i(H, !1);
|
|
159
|
+
const e = ++U, s = t(k) && t(_) > 0;
|
|
160
160
|
Ye(
|
|
161
161
|
{
|
|
162
162
|
apiEndpoint: c(),
|
|
163
163
|
userSession: p(),
|
|
164
164
|
locale: v()
|
|
165
165
|
},
|
|
166
|
-
t(
|
|
167
|
-
t(
|
|
166
|
+
t(_),
|
|
167
|
+
t(E)
|
|
168
168
|
).then((a) => {
|
|
169
|
-
if (e !==
|
|
169
|
+
if (e !== U)
|
|
170
170
|
return;
|
|
171
171
|
const d = a.data ?? [];
|
|
172
|
-
i(
|
|
172
|
+
i(z, a.total ?? 0, !0), s ? i(g, [...t(g), ...d], !0) : i(g, d, !0);
|
|
173
173
|
}).catch((a) => {
|
|
174
|
-
e ===
|
|
174
|
+
e === U && (i(H, !0), console.error("Failed to load shop rewards:", a));
|
|
175
175
|
}).finally(() => {
|
|
176
|
-
e ===
|
|
176
|
+
e === U && i(V, !1);
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
|
-
|
|
180
|
-
c(), p(), v(), t(
|
|
181
|
-
}),
|
|
179
|
+
N(() => {
|
|
180
|
+
c(), p(), v(), t(_), t(E), X();
|
|
181
|
+
}), N(() => {
|
|
182
182
|
const e = window.matchMedia("(max-width: 767px)"), s = (a) => {
|
|
183
|
-
i(
|
|
183
|
+
i(k, a.matches, !0);
|
|
184
184
|
};
|
|
185
|
-
return i(
|
|
186
|
-
}),
|
|
187
|
-
i(
|
|
188
|
-
}),
|
|
189
|
-
if (!t(
|
|
185
|
+
return i(k, e.matches, !0), e.addEventListener("change", s), () => e.removeEventListener("change", s);
|
|
186
|
+
}), N(() => {
|
|
187
|
+
i(E, t(k) ? le : t(be), !0);
|
|
188
|
+
}), N(() => {
|
|
189
|
+
if (!t(k) || !t(P)) return;
|
|
190
190
|
const e = new IntersectionObserver(
|
|
191
191
|
(s) => {
|
|
192
|
-
s.some((a) => a.isIntersecting) && t(g).length < t(
|
|
192
|
+
s.some((a) => a.isIntersecting) && t(g).length < t(z) && i(_, t(_) + t(E));
|
|
193
193
|
},
|
|
194
194
|
{ rootMargin: "200px" }
|
|
195
195
|
);
|
|
196
|
-
return e.observe(t(
|
|
196
|
+
return e.observe(t(P)), () => e.disconnect();
|
|
197
197
|
}), Je(() => {
|
|
198
|
-
|
|
198
|
+
O() && ve();
|
|
199
199
|
});
|
|
200
|
-
const
|
|
201
|
-
t(
|
|
202
|
-
},
|
|
203
|
-
if (!(!c() || t(
|
|
204
|
-
i(
|
|
200
|
+
const _e = (e) => e.presentation?.assets?.[0] ?? pt, K = (e) => e.displayName ?? e.presentation?.displayName ?? "", F = (e) => e.available === "true", ke = (e) => {
|
|
201
|
+
t(L) || !F(e) || rt(K(e), e.id);
|
|
202
|
+
}, we = async (e) => {
|
|
203
|
+
if (!(!c() || t(L))) {
|
|
204
|
+
i(L, e, !0);
|
|
205
205
|
try {
|
|
206
|
-
await
|
|
206
|
+
await Ge({ apiEndpoint: c(), userSession: p() }, e), Qe(e), Xe(), X();
|
|
207
207
|
} catch (s) {
|
|
208
|
-
|
|
208
|
+
$e(e, s);
|
|
209
209
|
} finally {
|
|
210
|
-
i(
|
|
210
|
+
i(L, void 0);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
|
-
|
|
214
|
+
N(() => {
|
|
215
215
|
const e = (s) => {
|
|
216
|
-
const { type: a, id: d, source:
|
|
216
|
+
const { type: a, id: d, source: q } = s.data ?? {};
|
|
217
217
|
switch (a) {
|
|
218
218
|
case ie.REDEEM_REWARD_CONFIRMED:
|
|
219
|
-
d && t(g).some((
|
|
219
|
+
d && t(g).some((B) => B.id === d) && we(d);
|
|
220
220
|
break;
|
|
221
221
|
case ie.BACK_BUTTON_CLICKED:
|
|
222
|
-
|
|
222
|
+
q === We && i(R, void 0);
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
return window.addEventListener("message", e), () => window.removeEventListener("message", e);
|
|
227
227
|
});
|
|
228
|
-
const
|
|
229
|
-
i(
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
},
|
|
233
|
-
i(
|
|
234
|
-
},
|
|
235
|
-
(s.key === "Enter" || s.key === " ") && (s.preventDefault(),
|
|
228
|
+
const xe = () => t(g).length ? o()("generalError") : o()("noContent"), Ee = (e) => {
|
|
229
|
+
i(_, e, !0);
|
|
230
|
+
}, qe = (e) => {
|
|
231
|
+
dt(e.displayName || e.presentation.displayName, e.id);
|
|
232
|
+
}, $ = (e) => {
|
|
233
|
+
i(R, e, !0), qe(e);
|
|
234
|
+
}, Se = (e) => (s) => {
|
|
235
|
+
(s.key === "Enter" || s.key === " ") && (s.preventDefault(), $(e));
|
|
236
236
|
};
|
|
237
|
-
var
|
|
237
|
+
var Ie = {
|
|
238
238
|
get apiEndpoint() {
|
|
239
239
|
return c();
|
|
240
240
|
},
|
|
@@ -256,24 +256,24 @@ function fe(_, n) {
|
|
|
256
256
|
get limitItem() {
|
|
257
257
|
return r();
|
|
258
258
|
},
|
|
259
|
-
set limitItem(e =
|
|
259
|
+
set limitItem(e = I) {
|
|
260
260
|
r(e), y();
|
|
261
261
|
},
|
|
262
262
|
get translationUrl() {
|
|
263
|
-
return
|
|
263
|
+
return O();
|
|
264
264
|
},
|
|
265
265
|
set translationUrl(e) {
|
|
266
|
-
|
|
266
|
+
O(e), y();
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, Z = bt(), Ce = de(Z);
|
|
269
269
|
{
|
|
270
|
-
var
|
|
271
|
-
|
|
270
|
+
var Re = (e) => {
|
|
271
|
+
ut(e, {
|
|
272
272
|
get itemId() {
|
|
273
|
-
return t(
|
|
273
|
+
return t(R).id;
|
|
274
274
|
},
|
|
275
275
|
get elevateReward() {
|
|
276
|
-
return t(
|
|
276
|
+
return t(R);
|
|
277
277
|
},
|
|
278
278
|
get apiEndpoint() {
|
|
279
279
|
return c();
|
|
@@ -285,93 +285,85 @@ function fe(_, n) {
|
|
|
285
285
|
return v();
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
|
-
}, Re = (e) => {
|
|
289
|
-
var s = mt();
|
|
290
|
-
de(s, 21, () => Array(t(S)), et, (a, d, I, D) => {
|
|
291
|
-
var Y = pt();
|
|
292
|
-
x(a, Y);
|
|
293
|
-
}), b(s), x(e, s);
|
|
294
288
|
}, Le = (e) => {
|
|
295
|
-
var s = gt()
|
|
296
|
-
|
|
289
|
+
var s = gt();
|
|
290
|
+
ue(s, 21, () => Array(t(E)), tt, (a, d, q, B) => {
|
|
291
|
+
var J = mt();
|
|
292
|
+
w(a, J);
|
|
293
|
+
}), D(s), w(e, s);
|
|
297
294
|
}, Ne = (e) => {
|
|
298
|
-
var s =
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
(Q, Ue, Be, Ae, De, je, Ve) => {
|
|
311
|
-
ne = at(C, 1, "loyalty-shop__item svelte-1f1q033", null, ne, Q), ce(se, "src", Ue), ce(se, "alt", Be), V(Oe, Ae), V(ze, `${t(u).points ?? ""}
|
|
312
|
-
${De ?? ""}`), j.disabled = je, V(Pe, Ve);
|
|
295
|
+
var s = ft(), a = T(s, !0);
|
|
296
|
+
ce((d) => j(a, d), [() => xe()]), w(e, s);
|
|
297
|
+
}, Te = (e) => {
|
|
298
|
+
var s = vt(), a = nt(s);
|
|
299
|
+
ue(a, 21, () => t(g), (m) => m.id, (m, u) => {
|
|
300
|
+
var S = ht();
|
|
301
|
+
let ee;
|
|
302
|
+
var A = de(S), Oe = re(() => Se(t(u))), te = T(A), ne = M(A, 2), ze = T(ne, !0), se = M(ne, 2), Pe = T(se), W = M(se, 2), Ue = T(W, !0);
|
|
303
|
+
D(S), ce(
|
|
304
|
+
(Y, Be, Ae, De, je, Ve, He) => {
|
|
305
|
+
ee = ot(S, 1, "loyalty-shop__item svelte-1f1q033", null, ee, { "loyalty-shop__item--unavailable": Y }), pe(te, "src", Be), pe(te, "alt", Ae), j(ze, De), j(Pe, `${t(u).points ?? ""}
|
|
306
|
+
${je ?? ""}`), W.disabled = Ve, j(Ue, He);
|
|
313
307
|
},
|
|
314
308
|
[
|
|
315
|
-
() => (
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
() =>
|
|
319
|
-
() => F(t(u)),
|
|
320
|
-
() => F(t(u)),
|
|
309
|
+
() => !F(t(u)),
|
|
310
|
+
() => _e(t(u)),
|
|
311
|
+
() => K(t(u)),
|
|
312
|
+
() => K(t(u)),
|
|
321
313
|
() => o()("tokens"),
|
|
322
|
-
() => !
|
|
314
|
+
() => !F(t(u)) || t(L) === t(u).id,
|
|
323
315
|
() => o()("buyNow")
|
|
324
316
|
]
|
|
325
|
-
),
|
|
326
|
-
t(
|
|
327
|
-
}),
|
|
328
|
-
}),
|
|
329
|
-
var d =
|
|
317
|
+
), Q("click", A, () => $(t(u))), Q("keydown", A, function(...Y) {
|
|
318
|
+
t(Oe)?.apply(this, Y);
|
|
319
|
+
}), Q("click", W, () => ke(t(u))), w(m, S);
|
|
320
|
+
}), D(a);
|
|
321
|
+
var d = M(a, 2);
|
|
330
322
|
{
|
|
331
|
-
var
|
|
332
|
-
|
|
323
|
+
var q = (m) => {
|
|
324
|
+
lt(m, {
|
|
333
325
|
get offset() {
|
|
334
|
-
return t(
|
|
326
|
+
return t(_);
|
|
335
327
|
},
|
|
336
328
|
get limit() {
|
|
337
|
-
return t(
|
|
329
|
+
return t(E);
|
|
338
330
|
},
|
|
339
331
|
get total() {
|
|
340
|
-
return t(
|
|
332
|
+
return t(z);
|
|
341
333
|
},
|
|
342
|
-
onPageChange:
|
|
334
|
+
onPageChange: Ee,
|
|
343
335
|
get locale() {
|
|
344
336
|
return v();
|
|
345
337
|
}
|
|
346
338
|
});
|
|
347
339
|
};
|
|
348
|
-
|
|
349
|
-
t(
|
|
340
|
+
G(d, (m) => {
|
|
341
|
+
t(k) || m(q);
|
|
350
342
|
});
|
|
351
343
|
}
|
|
352
|
-
var
|
|
344
|
+
var B = M(d, 2);
|
|
353
345
|
{
|
|
354
|
-
var
|
|
355
|
-
var u =
|
|
356
|
-
|
|
346
|
+
var J = (m) => {
|
|
347
|
+
var u = yt();
|
|
348
|
+
it(u, (S) => i(P, S), () => t(P)), w(m, u);
|
|
357
349
|
};
|
|
358
|
-
|
|
359
|
-
t(
|
|
350
|
+
G(B, (m) => {
|
|
351
|
+
t(k) && t(g).length < t(z) && m(J);
|
|
360
352
|
});
|
|
361
353
|
}
|
|
362
|
-
|
|
354
|
+
w(e, s);
|
|
363
355
|
};
|
|
364
|
-
|
|
365
|
-
t(
|
|
356
|
+
G(Ce, (e) => {
|
|
357
|
+
t(R) ? e(Re) : t(V) && t(g).length === 0 ? e(Le, 1) : !t(g).length || t(H) ? e(Ne, 2) : e(Te, -1);
|
|
366
358
|
});
|
|
367
359
|
}
|
|
368
|
-
|
|
369
|
-
var
|
|
370
|
-
return
|
|
360
|
+
D(Z), w(b, Z);
|
|
361
|
+
var Me = fe(Ie);
|
|
362
|
+
return C(), Me;
|
|
371
363
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
364
|
+
Ke(["click", "keydown"]);
|
|
365
|
+
me(
|
|
366
|
+
he,
|
|
375
367
|
{
|
|
376
368
|
apiEndpoint: {},
|
|
377
369
|
userSession: {},
|
|
@@ -383,9 +375,9 @@ pe(
|
|
|
383
375
|
[],
|
|
384
376
|
{ mode: "open" }
|
|
385
377
|
);
|
|
386
|
-
function
|
|
387
|
-
|
|
388
|
-
let o = h(n, "apiEndpoint", 7, ""), l = h(n, "userSession", 7, ""),
|
|
378
|
+
function ye(b, n) {
|
|
379
|
+
ge(n, !0);
|
|
380
|
+
let o = h(n, "apiEndpoint", 7, ""), l = h(n, "userSession", 7, ""), C = h(n, "locale", 7, ""), c = h(n, "limitItem", 7, I), p = h(n, "translationUrl");
|
|
389
381
|
var v = {
|
|
390
382
|
get apiEndpoint() {
|
|
391
383
|
return o();
|
|
@@ -400,15 +392,15 @@ function he(_, n) {
|
|
|
400
392
|
l(r), y();
|
|
401
393
|
},
|
|
402
394
|
get locale() {
|
|
403
|
-
return
|
|
395
|
+
return C();
|
|
404
396
|
},
|
|
405
397
|
set locale(r = "") {
|
|
406
|
-
|
|
398
|
+
C(r), y();
|
|
407
399
|
},
|
|
408
400
|
get limitItem() {
|
|
409
401
|
return c();
|
|
410
402
|
},
|
|
411
|
-
set limitItem(r =
|
|
403
|
+
set limitItem(r = I) {
|
|
412
404
|
c(r), y();
|
|
413
405
|
},
|
|
414
406
|
get translationUrl() {
|
|
@@ -418,7 +410,7 @@ function he(_, n) {
|
|
|
418
410
|
p(r), y();
|
|
419
411
|
}
|
|
420
412
|
};
|
|
421
|
-
return
|
|
413
|
+
return he(b, {
|
|
422
414
|
get apiEndpoint() {
|
|
423
415
|
return o();
|
|
424
416
|
},
|
|
@@ -426,7 +418,7 @@ function he(_, n) {
|
|
|
426
418
|
return l();
|
|
427
419
|
},
|
|
428
420
|
get locale() {
|
|
429
|
-
return
|
|
421
|
+
return C();
|
|
430
422
|
},
|
|
431
423
|
get limitItem() {
|
|
432
424
|
return c();
|
|
@@ -434,10 +426,10 @@ function he(_, n) {
|
|
|
434
426
|
get translationUrl() {
|
|
435
427
|
return p();
|
|
436
428
|
}
|
|
437
|
-
}),
|
|
429
|
+
}), fe(v);
|
|
438
430
|
}
|
|
439
|
-
customElements.define("loyalty-shop",
|
|
440
|
-
|
|
431
|
+
customElements.define("loyalty-shop", me(
|
|
432
|
+
ye,
|
|
441
433
|
{
|
|
442
434
|
apiEndpoint: {},
|
|
443
435
|
userSession: {},
|
|
@@ -448,11 +440,11 @@ customElements.define("loyalty-shop", pe(
|
|
|
448
440
|
[],
|
|
449
441
|
[]
|
|
450
442
|
));
|
|
451
|
-
const
|
|
443
|
+
const xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
452
444
|
__proto__: null,
|
|
453
|
-
default:
|
|
445
|
+
default: ye
|
|
454
446
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
455
447
|
export {
|
|
456
|
-
|
|
457
|
-
|
|
448
|
+
he as L,
|
|
449
|
+
xt as a
|
|
458
450
|
};
|