@everymatrix/casino-wagering-detail-controller 1.8.1 → 1.8.4
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.
|
@@ -170,5 +170,5 @@ function et(t){let e,n,o=Y(/*level*/t[11],/*levelBonus*/t[14])+"";return{c(){e=d
|
|
|
170
170
|
function nt(t){let n,o,r,i,s,h,m,b,v,$,w,T,E=/*index*/t[13]+1+"",S=`Play for ${R()} in total`,C=X(/*bonus*/t[2],/*index*/t[13],/*currentlevel*/t[1])+"",A=[j("Level","center")],D={};for(let t=0;t<A.length;t+=1)D=e(D,A[t]);function R(){/*func*/
|
|
171
171
|
return t[9](/*level*/t[11])}let x=[j("Target")],_={};for(let t=0;t<x.length;t+=1)_=e(_,x[t]);let O=[j("Status","center")],N={};for(let t=0;t<O.length;t+=1)N=e(N,O[t]);let k=/*level*/t[11].bonuses,L=[];for(let e=0;e<k.length;e+=1)L[e]=et(J(t,k,e));let B=[j("Reward")],M={};for(let t=0;t<B.length;t+=1)M=e(M,B[t]);return{c(){n=d("tr"),o=d("td"),r=f(E),i=p(),s=d("td"),h=f(S),m=p(),b=d("td"),v=f(C),$=p(),w=d("td");for(let t=0;t<L.length;t+=1)L[t].c();T=p(),g(o,D),g(s,_),g(b,N),g(w,M)},m(t,e){c(t,n,e),a(n,o),a(o,r),a(n,i),a(n,s),a(s,h),a(n,m),a(n,b),a(b,v),a(n,$),a(n,w);for(let t=0;t<L.length;t+=1)L[t].m(w,null);a(n,T)},p(e,n){if(t=e,g(o,D=P(A,[j("Level","center")])),/*levels*/1&n&&S!==(S=`Play for ${R()} in total`)&&y(h,S),g(s,_=P(x,[j("Target")])),/*bonus, currentlevel*/6&n&&C!==(C=X(/*bonus*/t[2],/*index*/t[13],/*currentlevel*/t[1])+"")&&y(v,C),g(b,N=P(O,[j("Status","center")])),/*levelBonusMapper, levels*/1&n){let e;for(k=/*level*/t[11].bonuses,e=0;e<k.length;e+=1){const o=J(t,k,e);L[e]?L[e].p(o,n):(L[e]=et(o),L[e].c(),L[e].m(w,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=k.length}g(w,M=P(B,[j("Reward")]))},d(t){t&&l(n),u(L,t)}}}function ot(e){let n;function o(t,e){/*isLoading*/
|
|
172
172
|
return t[3]?tt:/*bonus*/t[2]?Q:void 0}let r=o(e),i=r&&r(e);return{c(){i&&i.c(),n=f(""),this.c=t},m(t,e){i&&i.m(t,e),c(t,n,e)},p(t,[e]){r===(r=o(t))&&i?i.p(t,e):(i&&i.d(1),i=r&&r(t),i&&(i.c(),i.m(n.parentNode,n)))},i:t,o:t,d(t){i&&i.d(t),t&&l(n)}}}function rt(t,e,n){let{endpoint:o=""}=e,{bonuswalletid:r=""}=e,{lang:i="en"}=e,{session:s=""}=e,a=!1;$((()=>(n(8,a=!0),()=>{n(8,a=!1)})));
|
|
173
|
-
let c,l,u=[],d=!1;const f=async()=>{var t;if(!(a&&i&&r&&o))return;n(3,d=!0);const e=await W(o,s,{lang:i,bonusWalletId:r});if(!e.success)throw new Error(e.errorMessage);n(2,l=e.items.find((t=>t.bonusWalletID==r))),n(0,u=(t=>{const e=[];return t.map((t=>{const{maxRepeats:n,completedTime:o}=t,r=H(t,["maxRepeats","completedTime"]);for(let t=0;t<n;t++)e.push(Object.assign({},r))})),e})(l.levels)),n(1,c=(null===(t=l.wageringProgress)||void 0===t?void 0:t.currentLevel)-1),n(3,d=!1)};return t.$$set=t=>{"endpoint"in t&&n(4,o=t.endpoint),"bonuswalletid"in t&&n(5,r=t.bonuswalletid),"lang"in t&&n(6,i=t.lang),"session"in t&&n(7,s=t.session)},t.$$.update=()=>{/*isMounted*/256&t.$$.dirty&&a&&f(),/*lang*/64&t.$$.dirty&&i&&f(),/*endpoint*/16&t.$$.dirty&&o&&f(),/*bonuswalletid*/32&t.$$.dirty&&r&&f(),/*session*/128&t.$$.dirty&&s&&f()},[u,c,l,d,o,r,i,s,a,t=>{const e=Object.keys(t.increment)[0],n=t.increment[e];return`${M(e)}${n}`}]}class it extends B{constructor(t){super(),this.shadowRoot.innerHTML=
|
|
173
|
+
let c,l,u=[],d=!1;const f=async()=>{var t;if(!(a&&i&&r&&o))return;n(3,d=!0);const e=await W(o,s,{lang:i,bonusWalletId:r});if(!e.success)throw new Error(e.errorMessage);n(2,l=e.items.find((t=>t.bonusWalletID==r))),n(0,u=(t=>{const e=[];return t.map((t=>{const{maxRepeats:n,completedTime:o}=t,r=H(t,["maxRepeats","completedTime"]);for(let t=0;t<n;t++)e.push(Object.assign({},r))})),e})(l.levels)),n(1,c=(null===(t=l.wageringProgress)||void 0===t?void 0:t.currentLevel)-1),n(3,d=!1)};return t.$$set=t=>{"endpoint"in t&&n(4,o=t.endpoint),"bonuswalletid"in t&&n(5,r=t.bonuswalletid),"lang"in t&&n(6,i=t.lang),"session"in t&&n(7,s=t.session)},t.$$.update=()=>{/*isMounted*/256&t.$$.dirty&&a&&f(),/*lang*/64&t.$$.dirty&&i&&f(),/*endpoint*/16&t.$$.dirty&&o&&f(),/*bonuswalletid*/32&t.$$.dirty&&r&&f(),/*session*/128&t.$$.dirty&&s&&f()},[u,c,l,d,o,r,i,s,a,t=>{const e=Object.keys(t.increment)[0],n=t.increment[e];return`${M(e)}${n}`}]}class it extends B{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}table{width:100%}table td{padding:10px;width:20%}table th{padding:10px;background:#4E5662;color:#FFFFFF}.center{text-align:center}.Reward{color:#00AEEF}</style>',L(this,{target:this.shadowRoot,props:m(this.attributes),customElement:!0},rt,ot,s,{endpoint:4,bonuswalletid:5,lang:6,session:7},null),t&&(t.target&&c(t.target,this,t.anchor),t.props&&(this.$set(t.props),_()))}static get observedAttributes(){return["endpoint","bonuswalletid","lang","session"]}get endpoint(){return this.$$.ctx[4]}set endpoint(t){this.$$set({endpoint:t}),_()}get bonuswalletid(){return this.$$.ctx[5]}set bonuswalletid(t){this.$$set({bonuswalletid:t}),_()}get lang(){return this.$$.ctx[6]}set lang(t){this.$$set({lang:t}),_()}get session(){return this.$$.ctx[7]}set session(t){this.$$set({session:t}),_()}}return!customElements.get("casino-wagering-detail-controller")&&customElements.define("casino-wagering-detail-controller",it),it}));
|
|
174
174
|
//# sourceMappingURL=casino-wagering-detail-controller.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-wagering-detail-controller",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "58b0374c9527cbfb3a070ac6fb1744bc670aba27"
|
|
40
40
|
}
|