@everymatrix/loyalty-shop 0.1.15 → 0.1.19
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-5mlynRsD.js → LoyaltyPagination-D7m97E0W.js} +1973 -1943
- package/components/LoyaltyPagination-DzmuO9_8.cjs +14 -0
- package/components/{LoyaltyPagination-WMbwps-Y.js → LoyaltyPagination-o3rQCgms.js} +2011 -1982
- package/components/{LoyaltyPointsCard-BthOcyvZ.cjs → LoyaltyPointsCard-46BqNZEK.cjs} +3 -3
- package/components/{LoyaltyPointsCard-Ctxmn0pn.cjs → LoyaltyPointsCard-5kjF6xRz.cjs} +3 -3
- package/components/{LoyaltyPointsCard-DnyOr6RH.js → LoyaltyPointsCard-CdBEe40I.js} +64 -68
- package/components/{LoyaltyPointsCard-JV_Vm052.js → LoyaltyPointsCard-SZEIZzo0.js} +59 -63
- package/components/{LoyaltyShop-BvDigxmH.cjs → LoyaltyShop-B2lSw5jy.cjs} +3 -3
- package/components/{LoyaltyShop-CewjK7_m.js → LoyaltyShop-DGAZjo_P.js} +141 -149
- package/components/{LoyaltyShop-D78F7HNs.cjs → LoyaltyShop-DGLy6Hu5.cjs} +3 -3
- package/components/{LoyaltyShop-DORwVB2x.js → LoyaltyShop-_bWN39Rn.js} +135 -143
- package/components/{LoyaltyShopItem-qD3S4Ug2.js → LoyaltyShopItem-CtZFkxzA.js} +68 -72
- package/components/{LoyaltyShopItem-BDOJ0nlu.cjs → LoyaltyShopItem-DpFV9qnk.cjs} +3 -3
- package/components/{LoyaltyShopItem-B5HPzm1z.js → LoyaltyShopItem-DxwkafBG.js} +81 -85
- package/components/{LoyaltyShopItem-DETZUW3x.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-D7TGgpOl.cjs +0 -16
- package/components/LoyaltyPagination-DoaWx3gW.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"),N={en:{tokens:"Tokens",tokenBalance:"Token Balance",requestRakeback:"Request Rakeback",pointsToExpire:"{points} Tokens to expire on {date}"},tr:{tokens:"Tokens",tokenBalance:"Token Bakiyesi",requestRakeback:"Rakeback Talebi",pointsToExpire:"{date} tarihinde {points} Tokens sona erecek"},da:{tokens:"Tokens",tokenBalance:"Tokenbalance",requestRakeback:"Anmod om Rakeback",pointsToExpire:"{points} Tokens udløber den {date}"},de:{tokens:"Token",tokenBalance:"Token-Guthaben",requestRakeback:"Rakeback anfordern",pointsToExpire:"{points} Token verfallen am {date}"},nl:{tokens:"Tokens",tokenBalance:"Tokensaldo",requestRakeback:"Rakeback aanvragen",pointsToExpire:"{points} Tokens verlopen op {date}"},fr:{tokens:"Jetons",tokenBalance:"Solde de jetons",requestRakeback:"Demander un Rakeback",pointsToExpire:"{points} jetons expirent le {date}"},hu:{tokens:"Tokenek",tokenBalance:"Token egyenleg",requestRakeback:"Rakeback igénylése",pointsToExpire:"{points} token lejár ekkor: {date}"}};var H=e.from_html('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'),I=e.from_html('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'),W=e.from_html('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');const G={hash:"svelte-1hsy08w",code:`.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;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%,
|
|
@@ -14,5 +14,5 @@ typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.cu
|
|
|
14
14
|
100% {
|
|
15
15
|
background-position: -200% 0;
|
|
16
16
|
}
|
|
17
|
-
}`};function
|
|
18
|
-
${c??""}`),e.set_text(O,
|
|
17
|
+
}`};function g(y,n){e.push(n,!0),e.append_styles(y,G);const a=()=>e.store_get(e.$format,"$_",d),[d,p]=e.setup_stores(),l=e.prop(n,"apiEndpoint",7,""),i=e.prop(n,"userSession",7,""),r=e.prop(n,"locale",7,""),o=e.prop(n,"dateFormat",7,e.DATE_FORMATS),_=e.prop(n,"onLevelLoaded",7,t=>{});e.setupI18n({withLocale:r(),translations:{}}),Object.entries(N).forEach(([t,s])=>{e.addNewMessages(t,s)});const h=e.createElevateData(()=>({apiEndpoint:l(),userSession:i(),locale:r(),loadLevels:!1,onLevelLoaded:_()})),k=e.user_derived(()=>h.spendableWalletTotal),w=e.user_derived(()=>e.get(k)?.points??0),E=e.user_derived(()=>e.get(w).toLocaleString()),S=e.user_derived(()=>h.loading&&e.get(k)===void 0),u=e.user_derived(()=>[...e.get(k)?.aboutToExpire??[]].filter(t=>t.points>0).sort((t,s)=>new Date(t.expireTime).getTime()-new Date(s.expireTime).getTime())[0]),F=e.user_derived(()=>e.get(u)?e.formatDate(e.get(u).expireTime,o()):"");var R={get apiEndpoint(){return l()},set apiEndpoint(t=""){l(t),e.flushSync()},get userSession(){return i()},set userSession(t=""){i(t),e.flushSync()},get locale(){return r()},set locale(t=""){r(t),e.flushSync()},get dateFormat(){return o()},set dateFormat(t=e.DATE_FORMATS){o(t),e.flushSync()},get onLevelLoaded(){return _()},set onLevelLoaded(t=s=>{}){_(t),e.flushSync()}},b=e.comment(),D=e.first_child(b);{var A=t=>{var s=H();e.append(t,s)},B=t=>{var s=W(),m=e.child(s),f=e.child(m),x=e.child(f),M=e.only_child(x),T=e.sibling(x,2),O=e.only_child(T,!0),P=e.sibling(T,2);{var j=c=>{var v=I(),z=e.only_child(v,!0);e.template_effect(C=>e.set_text(z,C),[()=>a()("pointsToExpire",{values:{points:e.get(u).points.toLocaleString(),date:e.get(F)}})]),e.append(c,v)};e.if_block(P,c=>{e.get(u)&&c(j)})}e.reset(f),e.reset(m),e.reset(s),e.template_effect((c,v)=>{e.set_text(M,`${e.get(E)??""}
|
|
18
|
+
${c??""}`),e.set_text(O,v)},[()=>a()("tokens"),()=>a()("tokenBalance")]),e.append(t,s)};e.if_block(D,t=>{e.get(S)?t(A):t(B,-1)})}e.append(y,b);var q=e.pop(R);return p(),q}e.create_custom_element(g,{apiEndpoint:{},userSession:{},locale:{},dateFormat:{},onLevelLoaded:{}},[],[],{mode:"open"});function L(y,n){e.push(n,!0);let a=e.prop(n,"apiEndpoint",7,""),d=e.prop(n,"userSession",7,""),p=e.prop(n,"locale",7,""),l=e.prop(n,"dateFormat",7,e.DATE_FORMATS),i=e.prop(n,"onLevelLoaded");var r={get apiEndpoint(){return a()},set apiEndpoint(o=""){a(o),e.flushSync()},get userSession(){return d()},set userSession(o=""){d(o),e.flushSync()},get locale(){return p()},set locale(o=""){p(o),e.flushSync()},get dateFormat(){return l()},set dateFormat(o=e.DATE_FORMATS){l(o),e.flushSync()},get onLevelLoaded(){return i()},set onLevelLoaded(o){i(o),e.flushSync()}};return g(y,{get apiEndpoint(){return a()},get userSession(){return d()},get locale(){return p()},get dateFormat(){return l()},get onLevelLoaded(){return i()}}),e.pop(r)}customElements.define("loyalty-points-card",e.create_custom_element(L,{apiEndpoint:{},userSession:{},locale:{},dateFormat:{},onLevelLoaded:{}},[],[]));const J=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"}));exports.LoyaltyPointsCard=g;exports.LoyaltyPointsCard_ce=J;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-
|
|
1
|
+
typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./LoyaltyPagination-ChnSUs6d.cjs"),N={en:{tokens:"Tokens",tokenBalance:"Token Balance",requestRakeback:"Request Rakeback",pointsToExpire:"{points} Tokens to expire on {date}"},tr:{tokens:"Tokens",tokenBalance:"Token Bakiyesi",requestRakeback:"Rakeback Talebi",pointsToExpire:"{date} tarihinde {points} Tokens sona erecek"},da:{tokens:"Tokens",tokenBalance:"Tokenbalance",requestRakeback:"Anmod om Rakeback",pointsToExpire:"{points} Tokens udløber den {date}"},de:{tokens:"Token",tokenBalance:"Token-Guthaben",requestRakeback:"Rakeback anfordern",pointsToExpire:"{points} Token verfallen am {date}"},nl:{tokens:"Tokens",tokenBalance:"Tokensaldo",requestRakeback:"Rakeback aanvragen",pointsToExpire:"{points} Tokens verlopen op {date}"},fr:{tokens:"Jetons",tokenBalance:"Solde de jetons",requestRakeback:"Demander un Rakeback",pointsToExpire:"{points} jetons expirent le {date}"},hu:{tokens:"Tokenek",tokenBalance:"Token egyenleg",requestRakeback:"Rakeback igénylése",pointsToExpire:"{points} token lejár ekkor: {date}"}};var H=e.from_html('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'),I=e.from_html('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'),W=e.from_html('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');const G={hash:"svelte-1hsy08w",code:`.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;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%,
|
|
@@ -14,5 +14,5 @@ typeof globalThis.HTMLElement=="undefined"&&(globalThis.HTMLElement=class{},glob
|
|
|
14
14
|
100% {
|
|
15
15
|
background-position: -200% 0;
|
|
16
16
|
}
|
|
17
|
-
}`};function
|
|
18
|
-
${r!=null?r:""}`),e.set_text(P,
|
|
17
|
+
}`};function m(u,o){e.push(o,!0),e.append_styles(u,G);const a=()=>e.store_get(e.$format,"$_",c),[c,y]=e.setup_stores(),l=e.prop(o,"apiEndpoint",7,""),i=e.prop(o,"userSession",7,""),d=e.prop(o,"locale",7,""),s=e.prop(o,"dateFormat",7,e.DATE_FORMATS),h=e.prop(o,"onLevelLoaded",7,t=>{});e.setupI18n({withLocale:d(),translations:{}}),Object.entries(N).forEach(([t,n])=>{e.addNewMessages(t,n)});const f=e.createElevateData(()=>({apiEndpoint:l(),userSession:i(),locale:d(),loadLevels:!1,onLevelLoaded:h()})),b=e.user_derived(()=>f.spendableWalletTotal),E=e.user_derived(()=>{var t,n;return(n=(t=e.get(b))==null?void 0:t.points)!=null?n:0}),S=e.user_derived(()=>e.get(E).toLocaleString()),F=e.user_derived(()=>f.loading&&e.get(b)===void 0),v=e.user_derived(()=>{var t,n;return[...(n=(t=e.get(b))==null?void 0:t.aboutToExpire)!=null?n:[]].filter(p=>p.points>0).sort((p,_)=>new Date(p.expireTime).getTime()-new Date(_.expireTime).getTime())[0]}),R=e.user_derived(()=>e.get(v)?e.formatDate(e.get(v).expireTime,s()):"");var D={get apiEndpoint(){return l()},set apiEndpoint(t=""){l(t),e.flushSync()},get userSession(){return i()},set userSession(t=""){i(t),e.flushSync()},get locale(){return d()},set locale(t=""){d(t),e.flushSync()},get dateFormat(){return s()},set dateFormat(t=e.DATE_FORMATS){s(t),e.flushSync()},get onLevelLoaded(){return h()},set onLevelLoaded(t=n=>{}){h(t),e.flushSync()}},x=e.comment(),A=e.first_child(x);{var B=t=>{var n=H();e.append(t,n)},q=t=>{var n=W(),p=e.child(n),_=e.child(p),T=e.child(_),O=e.only_child(T),L=e.sibling(T,2),P=e.only_child(L,!0),j=e.sibling(L,2);{var z=r=>{var k=I(),g=e.only_child(k,!0);e.template_effect(C=>e.set_text(g,C),[()=>a()("pointsToExpire",{values:{points:e.get(v).points.toLocaleString(),date:e.get(R)}})]),e.append(r,k)};e.if_block(j,r=>{e.get(v)&&r(z)})}e.reset(_),e.reset(p),e.reset(n),e.template_effect((r,k)=>{var g;e.set_text(O,`${(g=e.get(S))!=null?g:""}
|
|
18
|
+
${r!=null?r:""}`),e.set_text(P,k)},[()=>a()("tokens"),()=>a()("tokenBalance")]),e.append(t,n)};e.if_block(A,t=>{e.get(F)?t(B):t(q,-1)})}e.append(u,x);var M=e.pop(D);return y(),M}e.create_custom_element(m,{apiEndpoint:{},userSession:{},locale:{},dateFormat:{},onLevelLoaded:{}},[],[],{mode:"open"});function w(u,o){e.push(o,!0);let a=e.prop(o,"apiEndpoint",7,""),c=e.prop(o,"userSession",7,""),y=e.prop(o,"locale",7,""),l=e.prop(o,"dateFormat",7,e.DATE_FORMATS),i=e.prop(o,"onLevelLoaded");var d={get apiEndpoint(){return a()},set apiEndpoint(s=""){a(s),e.flushSync()},get userSession(){return c()},set userSession(s=""){c(s),e.flushSync()},get locale(){return y()},set locale(s=""){y(s),e.flushSync()},get dateFormat(){return l()},set dateFormat(s=e.DATE_FORMATS){l(s),e.flushSync()},get onLevelLoaded(){return i()},set onLevelLoaded(s){i(s),e.flushSync()}};return m(u,{get apiEndpoint(){return a()},get userSession(){return c()},get locale(){return y()},get dateFormat(){return l()},get onLevelLoaded(){return i()}}),e.pop(d)}customElements.define("loyalty-points-card",e.create_custom_element(w,{apiEndpoint:{},userSession:{},locale:{},dateFormat:{},onLevelLoaded:{}},[],[]));const J=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}));exports.LoyaltyPointsCard=m;exports.LoyaltyPointsCard_ce=J;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as O, p as P, a as ae, b as o, s as ne, d as se, e as oe, f as le, g as ie, i as z, h as x, j as C, D as f, k as l, l as re, m as s, u as v, n as L, o as E, q as A, r as S, t as M, v as F, w as R, x as de, $ as pe, y as ce } from "./LoyaltyPagination-o3rQCgms.js";
|
|
2
2
|
typeof globalThis.HTMLElement == "undefined" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
5
5
|
}, whenDefined() {
|
|
6
6
|
} });
|
|
7
|
-
const
|
|
7
|
+
const ye = {
|
|
8
8
|
en: {
|
|
9
9
|
tokens: "Tokens",
|
|
10
10
|
tokenBalance: "Token Balance",
|
|
@@ -48,8 +48,8 @@ const ce = {
|
|
|
48
48
|
pointsToExpire: "{points} token lejár ekkor: {date}"
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
var ve =
|
|
52
|
-
const
|
|
51
|
+
var ve = R('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'), ue = R('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'), ke = R('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');
|
|
52
|
+
const _e = {
|
|
53
53
|
hash: "svelte-1hsy08w",
|
|
54
54
|
code: `.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;background:linear-gradient(
|
|
55
55
|
90deg,
|
|
@@ -69,27 +69,27 @@ const ke = {
|
|
|
69
69
|
}
|
|
70
70
|
}`
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
|
|
74
|
-
const i = () =>
|
|
72
|
+
function N(_, a) {
|
|
73
|
+
P(a, !0), ae(_, _e);
|
|
74
|
+
const i = () => de(pe, "$_", u), [u, k] = re(), r = o(a, "apiEndpoint", 7, ""), d = o(a, "userSession", 7, ""), c = o(a, "locale", 7, ""), n = o(a, "dateFormat", 7, f), T = o(a, "onLevelLoaded", 7, (e) => {
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
ne({ withLocale: c(), translations: {} }), Object.entries(ye).forEach(([e, t]) => {
|
|
77
|
+
se(e, t);
|
|
78
78
|
});
|
|
79
|
-
const
|
|
79
|
+
const D = oe(() => ({
|
|
80
80
|
apiEndpoint: r(),
|
|
81
81
|
userSession: d(),
|
|
82
82
|
locale: c(),
|
|
83
83
|
loadLevels: !1,
|
|
84
|
-
onLevelLoaded:
|
|
85
|
-
})),
|
|
84
|
+
onLevelLoaded: T()
|
|
85
|
+
})), w = v(() => D.spendableWalletTotal), I = v(() => {
|
|
86
86
|
var e, t;
|
|
87
|
-
return (t = (e = s(
|
|
88
|
-
}),
|
|
87
|
+
return (t = (e = s(w)) == null ? void 0 : e.points) != null ? t : 0;
|
|
88
|
+
}), W = v(() => s(I).toLocaleString()), G = v(() => D.loading && s(w) === void 0), g = v(() => {
|
|
89
89
|
var e, t;
|
|
90
|
-
return [...(t = (e = s(
|
|
91
|
-
}),
|
|
92
|
-
var
|
|
90
|
+
return [...(t = (e = s(w)) == null ? void 0 : e.aboutToExpire) != null ? t : []].filter((y) => y.points > 0).sort((y, b) => new Date(y.expireTime).getTime() - new Date(b.expireTime).getTime())[0];
|
|
91
|
+
}), J = v(() => s(g) ? ce(s(g).expireTime, n()) : "");
|
|
92
|
+
var K = {
|
|
93
93
|
get apiEndpoint() {
|
|
94
94
|
return r();
|
|
95
95
|
},
|
|
@@ -111,62 +111,58 @@ function C(m, a) {
|
|
|
111
111
|
get dateFormat() {
|
|
112
112
|
return n();
|
|
113
113
|
},
|
|
114
|
-
set dateFormat(e =
|
|
114
|
+
set dateFormat(e = f) {
|
|
115
115
|
n(e), l();
|
|
116
116
|
},
|
|
117
117
|
get onLevelLoaded() {
|
|
118
|
-
return
|
|
118
|
+
return T();
|
|
119
119
|
},
|
|
120
120
|
set onLevelLoaded(e = (t) => {
|
|
121
121
|
}) {
|
|
122
|
-
|
|
122
|
+
T(e), l();
|
|
123
123
|
}
|
|
124
|
-
},
|
|
124
|
+
}, B = le(), Q = ie(B);
|
|
125
125
|
{
|
|
126
|
-
var
|
|
126
|
+
var U = (e) => {
|
|
127
127
|
var t = ve();
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
var t =
|
|
131
|
-
k(S);
|
|
132
|
-
var F = z(S, 2), Y = u(F, !0);
|
|
133
|
-
k(F);
|
|
134
|
-
var Z = z(F, 2);
|
|
128
|
+
x(e, t);
|
|
129
|
+
}, V = (e) => {
|
|
130
|
+
var t = ke(), y = L(t), b = L(y), q = L(b), Y = E(q), j = A(q, 2), Z = E(j, !0), $ = A(j, 2);
|
|
135
131
|
{
|
|
136
|
-
var
|
|
137
|
-
var
|
|
138
|
-
|
|
132
|
+
var ee = (p) => {
|
|
133
|
+
var m = ue(), h = E(m, !0);
|
|
134
|
+
M((te) => F(h, te), [
|
|
139
135
|
() => i()("pointsToExpire", {
|
|
140
136
|
values: {
|
|
141
|
-
points: s(
|
|
142
|
-
date: s(
|
|
137
|
+
points: s(g).points.toLocaleString(),
|
|
138
|
+
date: s(J)
|
|
143
139
|
}
|
|
144
140
|
})
|
|
145
|
-
]),
|
|
141
|
+
]), x(p, m);
|
|
146
142
|
};
|
|
147
|
-
|
|
148
|
-
s(
|
|
143
|
+
z($, (p) => {
|
|
144
|
+
s(g) && p(ee);
|
|
149
145
|
});
|
|
150
146
|
}
|
|
151
|
-
|
|
152
|
-
(p,
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
${p != null ? p : ""}`),
|
|
147
|
+
S(b), S(y), S(t), M(
|
|
148
|
+
(p, m) => {
|
|
149
|
+
var h;
|
|
150
|
+
F(Y, `${(h = s(W)) != null ? h : ""}
|
|
151
|
+
${p != null ? p : ""}`), F(Z, m);
|
|
156
152
|
},
|
|
157
153
|
[() => i()("tokens"), () => i()("tokenBalance")]
|
|
158
|
-
),
|
|
154
|
+
), x(e, t);
|
|
159
155
|
};
|
|
160
|
-
|
|
161
|
-
s(
|
|
156
|
+
z(Q, (e) => {
|
|
157
|
+
s(G) ? e(U) : e(V, -1);
|
|
162
158
|
});
|
|
163
159
|
}
|
|
164
|
-
|
|
165
|
-
var
|
|
166
|
-
return
|
|
160
|
+
x(_, B);
|
|
161
|
+
var X = C(K);
|
|
162
|
+
return k(), X;
|
|
167
163
|
}
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
O(
|
|
165
|
+
N,
|
|
170
166
|
{
|
|
171
167
|
apiEndpoint: {},
|
|
172
168
|
userSession: {},
|
|
@@ -178,9 +174,9 @@ M(
|
|
|
178
174
|
[],
|
|
179
175
|
{ mode: "open" }
|
|
180
176
|
);
|
|
181
|
-
function
|
|
182
|
-
|
|
183
|
-
let i = o(a, "apiEndpoint", 7, ""),
|
|
177
|
+
function H(_, a) {
|
|
178
|
+
P(a, !0);
|
|
179
|
+
let i = o(a, "apiEndpoint", 7, ""), u = o(a, "userSession", 7, ""), k = o(a, "locale", 7, ""), r = o(a, "dateFormat", 7, f), d = o(a, "onLevelLoaded");
|
|
184
180
|
var c = {
|
|
185
181
|
get apiEndpoint() {
|
|
186
182
|
return i();
|
|
@@ -189,21 +185,21 @@ function N(m, a) {
|
|
|
189
185
|
i(n), l();
|
|
190
186
|
},
|
|
191
187
|
get userSession() {
|
|
192
|
-
return
|
|
188
|
+
return u();
|
|
193
189
|
},
|
|
194
190
|
set userSession(n = "") {
|
|
195
|
-
|
|
191
|
+
u(n), l();
|
|
196
192
|
},
|
|
197
193
|
get locale() {
|
|
198
|
-
return
|
|
194
|
+
return k();
|
|
199
195
|
},
|
|
200
196
|
set locale(n = "") {
|
|
201
|
-
|
|
197
|
+
k(n), l();
|
|
202
198
|
},
|
|
203
199
|
get dateFormat() {
|
|
204
200
|
return r();
|
|
205
201
|
},
|
|
206
|
-
set dateFormat(n =
|
|
202
|
+
set dateFormat(n = f) {
|
|
207
203
|
r(n), l();
|
|
208
204
|
},
|
|
209
205
|
get onLevelLoaded() {
|
|
@@ -213,15 +209,15 @@ function N(m, a) {
|
|
|
213
209
|
d(n), l();
|
|
214
210
|
}
|
|
215
211
|
};
|
|
216
|
-
return
|
|
212
|
+
return N(_, {
|
|
217
213
|
get apiEndpoint() {
|
|
218
214
|
return i();
|
|
219
215
|
},
|
|
220
216
|
get userSession() {
|
|
221
|
-
return
|
|
217
|
+
return u();
|
|
222
218
|
},
|
|
223
219
|
get locale() {
|
|
224
|
-
return
|
|
220
|
+
return k();
|
|
225
221
|
},
|
|
226
222
|
get dateFormat() {
|
|
227
223
|
return r();
|
|
@@ -229,10 +225,10 @@ function N(m, a) {
|
|
|
229
225
|
get onLevelLoaded() {
|
|
230
226
|
return d();
|
|
231
227
|
}
|
|
232
|
-
}),
|
|
228
|
+
}), C(c);
|
|
233
229
|
}
|
|
234
|
-
customElements.define("loyalty-points-card",
|
|
235
|
-
|
|
230
|
+
customElements.define("loyalty-points-card", O(
|
|
231
|
+
H,
|
|
236
232
|
{
|
|
237
233
|
apiEndpoint: {},
|
|
238
234
|
userSession: {},
|
|
@@ -243,11 +239,11 @@ customElements.define("loyalty-points-card", M(
|
|
|
243
239
|
[],
|
|
244
240
|
[]
|
|
245
241
|
));
|
|
246
|
-
const
|
|
242
|
+
const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
247
243
|
__proto__: null,
|
|
248
|
-
default:
|
|
244
|
+
default: H
|
|
249
245
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
250
246
|
export {
|
|
251
|
-
|
|
252
|
-
|
|
247
|
+
N as L,
|
|
248
|
+
be as a
|
|
253
249
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as M, p as O, a as ae, b as o, s as ne, d as se, e as oe, f as le, g as ie, i as j, h as b, j as P, D as m, k as l, l as re, m as n, u as c, n as f, o as T, q as z, r as w, t as A, v as L, w as E, x as de, $ as pe, y as ce } from "./LoyaltyPagination-D7m97E0W.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
5
5
|
}, whenDefined() {
|
|
6
6
|
} });
|
|
7
|
-
const
|
|
7
|
+
const ye = {
|
|
8
8
|
en: {
|
|
9
9
|
tokens: "Tokens",
|
|
10
10
|
tokenBalance: "Token Balance",
|
|
@@ -48,8 +48,8 @@ const ce = {
|
|
|
48
48
|
pointsToExpire: "{points} token lejár ekkor: {date}"
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
var ve =
|
|
52
|
-
const
|
|
51
|
+
var ve = E('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__skeleton loyalty-points__skeleton--amount svelte-1hsy08w"></span> <span class="loyalty-points__skeleton loyalty-points__skeleton--description svelte-1hsy08w"></span></div></div></div>'), ue = E('<span class="loyalty-points__expiry svelte-1hsy08w"> </span>'), ke = E('<div class="loyalty-points svelte-1hsy08w"><div class="loyalty-points__content svelte-1hsy08w"><div class="loyalty-points__value svelte-1hsy08w"><span class="loyalty-points__amount svelte-1hsy08w"> </span> <span class="loyalty-points__description svelte-1hsy08w"> </span> <!></div></div></div>');
|
|
52
|
+
const _e = {
|
|
53
53
|
hash: "svelte-1hsy08w",
|
|
54
54
|
code: `.loyalty-points.svelte-1hsy08w {padding:11px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-points__content.svelte-1hsy08w {display:flex;align-items:center;justify-content:space-between;gap:12px;}.loyalty-points__value.svelte-1hsy08w {display:flex;flex-direction:column;gap:6px;}.loyalty-points__amount.svelte-1hsy08w {color:var(--text-default, #FFFFFF);font-size:16px;font-weight:700;line-height:140%;}.loyalty-points__description.svelte-1hsy08w {color:var(--text-subtle, #DFE3E8);font-size:14px;font-weight:400;}.loyalty-points__expiry.svelte-1hsy08w {color:var(--text-super-subtle, #DFE3E8);font-size:12px;font-weight:400;}.loyalty-points__skeleton.svelte-1hsy08w {display:block;border-radius:6px;background:linear-gradient(
|
|
55
55
|
90deg,
|
|
@@ -69,21 +69,21 @@ const ke = {
|
|
|
69
69
|
}
|
|
70
70
|
}`
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
|
|
74
|
-
const i = () =>
|
|
72
|
+
function C(k, t) {
|
|
73
|
+
O(t, !0), ae(k, _e);
|
|
74
|
+
const i = () => de(pe, "$_", y), [y, v] = re(), r = o(t, "apiEndpoint", 7, ""), d = o(t, "userSession", 7, ""), p = o(t, "locale", 7, ""), a = o(t, "dateFormat", 7, m), h = o(t, "onLevelLoaded", 7, (e) => {
|
|
75
75
|
});
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
ne({ withLocale: p(), translations: {} }), Object.entries(ye).forEach(([e, s]) => {
|
|
77
|
+
se(e, s);
|
|
78
78
|
});
|
|
79
|
-
const
|
|
79
|
+
const S = oe(() => ({
|
|
80
80
|
apiEndpoint: r(),
|
|
81
81
|
userSession: d(),
|
|
82
82
|
locale: p(),
|
|
83
83
|
loadLevels: !1,
|
|
84
|
-
onLevelLoaded:
|
|
85
|
-
})),
|
|
86
|
-
var
|
|
84
|
+
onLevelLoaded: h()
|
|
85
|
+
})), x = c(() => S.spendableWalletTotal), H = c(() => n(x)?.points ?? 0), I = c(() => n(H).toLocaleString()), W = c(() => S.loading && n(x) === void 0), _ = c(() => [...n(x)?.aboutToExpire ?? []].filter((e) => e.points > 0).sort((e, s) => new Date(e.expireTime).getTime() - new Date(s.expireTime).getTime())[0]), G = c(() => n(_) ? ce(n(_).expireTime, a()) : "");
|
|
86
|
+
var J = {
|
|
87
87
|
get apiEndpoint() {
|
|
88
88
|
return r();
|
|
89
89
|
},
|
|
@@ -105,61 +105,57 @@ function P(b, t) {
|
|
|
105
105
|
get dateFormat() {
|
|
106
106
|
return a();
|
|
107
107
|
},
|
|
108
|
-
set dateFormat(e =
|
|
108
|
+
set dateFormat(e = m) {
|
|
109
109
|
a(e), l();
|
|
110
110
|
},
|
|
111
111
|
get onLevelLoaded() {
|
|
112
|
-
return
|
|
112
|
+
return h();
|
|
113
113
|
},
|
|
114
114
|
set onLevelLoaded(e = (s) => {
|
|
115
115
|
}) {
|
|
116
|
-
|
|
116
|
+
h(e), l();
|
|
117
117
|
}
|
|
118
|
-
},
|
|
118
|
+
}, F = le(), K = ie(F);
|
|
119
119
|
{
|
|
120
|
-
var
|
|
120
|
+
var Q = (e) => {
|
|
121
121
|
var s = ve();
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
var s =
|
|
125
|
-
y(w);
|
|
126
|
-
var L = j(w, 2), X = v(L, !0);
|
|
127
|
-
y(L);
|
|
128
|
-
var Y = j(L, 2);
|
|
122
|
+
b(e, s);
|
|
123
|
+
}, U = (e) => {
|
|
124
|
+
var s = ke(), R = f(s), D = f(R), B = f(D), X = T(B), q = z(B, 2), Y = T(q, !0), Z = z(q, 2);
|
|
129
125
|
{
|
|
130
|
-
var
|
|
131
|
-
var g =
|
|
132
|
-
|
|
126
|
+
var $ = (u) => {
|
|
127
|
+
var g = ue(), ee = T(g, !0);
|
|
128
|
+
A((te) => L(ee, te), [
|
|
133
129
|
() => i()("pointsToExpire", {
|
|
134
130
|
values: {
|
|
135
|
-
points: n(
|
|
136
|
-
date: n(
|
|
131
|
+
points: n(_).points.toLocaleString(),
|
|
132
|
+
date: n(G)
|
|
137
133
|
}
|
|
138
134
|
})
|
|
139
|
-
]),
|
|
135
|
+
]), b(u, g);
|
|
140
136
|
};
|
|
141
|
-
|
|
142
|
-
n(
|
|
137
|
+
j(Z, (u) => {
|
|
138
|
+
n(_) && u($);
|
|
143
139
|
});
|
|
144
140
|
}
|
|
145
|
-
|
|
146
|
-
(
|
|
147
|
-
|
|
148
|
-
${
|
|
141
|
+
w(D), w(R), w(s), A(
|
|
142
|
+
(u, g) => {
|
|
143
|
+
L(X, `${n(I) ?? ""}
|
|
144
|
+
${u ?? ""}`), L(Y, g);
|
|
149
145
|
},
|
|
150
146
|
[() => i()("tokens"), () => i()("tokenBalance")]
|
|
151
|
-
),
|
|
147
|
+
), b(e, s);
|
|
152
148
|
};
|
|
153
|
-
|
|
154
|
-
n(
|
|
149
|
+
j(K, (e) => {
|
|
150
|
+
n(W) ? e(Q) : e(U, -1);
|
|
155
151
|
});
|
|
156
152
|
}
|
|
157
|
-
|
|
158
|
-
var
|
|
159
|
-
return
|
|
153
|
+
b(k, F);
|
|
154
|
+
var V = P(J);
|
|
155
|
+
return v(), V;
|
|
160
156
|
}
|
|
161
|
-
|
|
162
|
-
|
|
157
|
+
M(
|
|
158
|
+
C,
|
|
163
159
|
{
|
|
164
160
|
apiEndpoint: {},
|
|
165
161
|
userSession: {},
|
|
@@ -171,9 +167,9 @@ A(
|
|
|
171
167
|
[],
|
|
172
168
|
{ mode: "open" }
|
|
173
169
|
);
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
let i = o(t, "apiEndpoint", 7, ""),
|
|
170
|
+
function N(k, t) {
|
|
171
|
+
O(t, !0);
|
|
172
|
+
let i = o(t, "apiEndpoint", 7, ""), y = o(t, "userSession", 7, ""), v = o(t, "locale", 7, ""), r = o(t, "dateFormat", 7, m), d = o(t, "onLevelLoaded");
|
|
177
173
|
var p = {
|
|
178
174
|
get apiEndpoint() {
|
|
179
175
|
return i();
|
|
@@ -182,21 +178,21 @@ function C(b, t) {
|
|
|
182
178
|
i(a), l();
|
|
183
179
|
},
|
|
184
180
|
get userSession() {
|
|
185
|
-
return
|
|
181
|
+
return y();
|
|
186
182
|
},
|
|
187
183
|
set userSession(a = "") {
|
|
188
|
-
|
|
184
|
+
y(a), l();
|
|
189
185
|
},
|
|
190
186
|
get locale() {
|
|
191
|
-
return
|
|
187
|
+
return v();
|
|
192
188
|
},
|
|
193
189
|
set locale(a = "") {
|
|
194
|
-
|
|
190
|
+
v(a), l();
|
|
195
191
|
},
|
|
196
192
|
get dateFormat() {
|
|
197
193
|
return r();
|
|
198
194
|
},
|
|
199
|
-
set dateFormat(a =
|
|
195
|
+
set dateFormat(a = m) {
|
|
200
196
|
r(a), l();
|
|
201
197
|
},
|
|
202
198
|
get onLevelLoaded() {
|
|
@@ -206,15 +202,15 @@ function C(b, t) {
|
|
|
206
202
|
d(a), l();
|
|
207
203
|
}
|
|
208
204
|
};
|
|
209
|
-
return
|
|
205
|
+
return C(k, {
|
|
210
206
|
get apiEndpoint() {
|
|
211
207
|
return i();
|
|
212
208
|
},
|
|
213
209
|
get userSession() {
|
|
214
|
-
return
|
|
210
|
+
return y();
|
|
215
211
|
},
|
|
216
212
|
get locale() {
|
|
217
|
-
return
|
|
213
|
+
return v();
|
|
218
214
|
},
|
|
219
215
|
get dateFormat() {
|
|
220
216
|
return r();
|
|
@@ -222,10 +218,10 @@ function C(b, t) {
|
|
|
222
218
|
get onLevelLoaded() {
|
|
223
219
|
return d();
|
|
224
220
|
}
|
|
225
|
-
}),
|
|
221
|
+
}), P(p);
|
|
226
222
|
}
|
|
227
|
-
customElements.define("loyalty-points-card",
|
|
228
|
-
|
|
223
|
+
customElements.define("loyalty-points-card", M(
|
|
224
|
+
N,
|
|
229
225
|
{
|
|
230
226
|
apiEndpoint: {},
|
|
231
227
|
userSession: {},
|
|
@@ -236,11 +232,11 @@ customElements.define("loyalty-points-card", A(
|
|
|
236
232
|
[],
|
|
237
233
|
[]
|
|
238
234
|
));
|
|
239
|
-
const
|
|
235
|
+
const be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
240
236
|
__proto__: null,
|
|
241
|
-
default:
|
|
237
|
+
default: N
|
|
242
238
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
243
239
|
export {
|
|
244
|
-
|
|
245
|
-
|
|
240
|
+
C as L,
|
|
241
|
+
be as a
|
|
246
242
|
};
|