@everymatrix/casino-wagering-bonuses-controller 1.6.0 → 1.7.0

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.
@@ -682,7 +682,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
682
682
  PERFORMANCE OF THIS SOFTWARE.
683
683
  ***************************************************************************** */function Bn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}const An={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Sn(){return An}const _n=Le(!1);let Hn;const Ln=Le(null);function Pn(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Rn(e,t=Sn().fallbackLocale){const n=Pn(e);return t?[...new Set([...n,...Pn(t)])]:n}function In(){return null!=Hn?Hn:void 0}Ln.subscribe((e=>{Hn=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const On=Object.assign(Object.assign({},Ln),{set:e=>{if(e&&function(e){if(null==e)return;const t=Rn(e);for(let e=0;e<t.length;e++){const n=t[e];if(mn(n))return n}}(e)&&Cn(e)){const{loadingDelay:t}=Sn();let n;return"undefined"!=typeof window&&null!=In()&&t?n=window.setTimeout((()=>_n.set(!0)),t):_n.set(!0),Tn(e).then((()=>{Ln.set(e)})).finally((()=>{clearTimeout(n),_n.set(!1)}))}return Ln.set(e)}}),Mn=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},xn=(e,t)=>{const{formats:n}=Sn();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Nn=Mn((e=>{var{locale:t,format:n}=e,r=Bn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(r=xn("number",n)),new Intl.NumberFormat(t,r)})),$n=Mn((e=>{var{locale:t,format:n}=e,r=Bn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?r=xn("date",n):0===Object.keys(r).length&&(r=xn("date","short")),new Intl.DateTimeFormat(t,r)})),Dn=Mn((e=>{var{locale:t,format:n}=e,r=Bn(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?r=xn("time",n):0===Object.keys(r).length&&(r=xn("time","short")),new Intl.DateTimeFormat(t,r)})),kn=Mn(((e,t=In())=>new un(e,t,Sn().formats,{ignoreTag:Sn().ignoreTag}))),Un=(e,t={})=>{var n,r,o,i;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=In(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=fn(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(i=null!==(o=null===(r=(n=Sn()).handleMissingMessage)||void 0===r?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))&&void 0!==o?o:c)&&void 0!==i?i:e;if(!a)return u;let h=u;try{h=kn(u,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},Fn=(e,t)=>((e={})=>{var{locale:t=In()}=e,n=Bn(e,["locale"]);return Dn(Object.assign({locale:t},n))})(t).format(e),Gn=(e,t)=>((e={})=>{var{locale:t=In()}=e,n=Bn(e,["locale"]);return $n(Object.assign({locale:t},n))})(t).format(e),Vn=(e,t)=>((e={})=>{var{locale:t=In()}=e,n=Bn(e,["locale"]);return Nn(Object.assign({locale:t},n))})(t).format(e),jn=(e,t=In())=>fn(e,t),Zn=Pe([On,gn],(()=>Un));Pe([On],(()=>Fn)),Pe([On],(()=>Gn)),Pe([On],(()=>Vn)),Pe([On,gn],(()=>jn));const Kn=e=>{(({withLocale:e,translations:t})=>{On.subscribe((n=>{null==n&&(gn.set(t),On.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
684
684
  /*dictionary.set(translations);
685
- locale.set(_locale);*/})({withLocale:"en",translations:{}}),Object.keys(e).forEach((t=>{var n,r;n=t,r=e[t],yn(n,r)}))};var Wn,Xn;!function(e){e.level="level",e.current="current",e.next="next",e.first="first",e.last="last",e.previous="previous",e.startChallenge="startChallenge"}(Wn||(Wn={})),function(e){e.level="wageringBonuses.level",e.current="wageringBonuses.current",e.next="wageringBonuses.next",e.first="wageringBonuses.first",e.last="wageringBonuses.last",e.previous="wageringBonuses.previous",e.startChallenge="wageringBonuses.startChallenge"}(Xn||(Xn={}));const zn={en:{wageringBonuses:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE"}},zh:{wageringBonuses:{level:"等級",current:"当前",next:"下一個",first:"第一個",last:"最後一個",previous:"上一個",startChallenge:"開始挑戰"}}};
685
+ locale.set(_locale);*/})({withLocale:"en",translations:{}}),Object.keys(e).forEach((t=>{var n,r;n=t,r=e[t],yn(n,r)}))};var Wn,Xn;!function(e){e.level="level",e.current="current",e.next="next",e.first="first",e.last="last",e.previous="previous",e.startChallenge="startChallenge"}(Wn||(Wn={})),function(e){e.level="wageringBonuses.level",e.current="wageringBonuses.current",e.next="wageringBonuses.next",e.first="wageringBonuses.first",e.last="wageringBonuses.last",e.previous="wageringBonuses.previous",e.startChallenge="wageringBonuses.startChallenge"}(Xn||(Xn={}));const zn={en:{wageringBonuses:{level:"Level",current:"Current",next:"Next",first:"First",last:"Last",previous:"Previous",startChallenge:"START CHALLENGE"}},"zh-hk":{wageringBonuses:{level:"等級",current:"当前",next:"下一個",first:"第一個",last:"最後一個",previous:"上一個",startChallenge:"開始挑戰"}}};
686
686
  /* ../casino-wagering-bonus/src/CasinoWageringBonus.svelte generated by Svelte v3.48.0 */function Yn(e,t,n){const r=e.slice();return r[22]=t[n],r[24]=n,r}function Jn(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function qn(e,t,n){const r=e.slice();return r[28]=t[n],r}function Qn(e,t,n){const r=e.slice();return r[31]=t[n],r}function er(e,t,n){const r=e.slice();return r[34]=t[n],r}
687
687
  // (88:0) {#if bonus && isShowingBonus}
688
688
  function tr(e){let n,r,o,i,s,a,l,c,u,m,v,E,C,T,B,S,_,H,L,P,R,I,O,M=/*bonus*/(e[1].name||/*bonus*/e[1].presentation?.name.content)+"",x=[ee("BonusInfoTitle","title")],N={};for(let e=0;e<x.length;e+=1)N=t(N,x[e]);let $=/*status*/e[0]===oe.active&&nr(e),D=[ee("BonusInfoWrapper","layout-horizental space-between")],k={};for(let e=0;e<D.length;e+=1)k=t(k,D[e]);let U=/*status*/e[0]===oe.claimable&&rr(e),G=/*status*/e[0]!==oe.claimable&&or(e),V=[ee("BonusInfo")],j={};for(let e=0;e<V.length;e+=1)j=t(j,V[e]);let Z=[ee("RewardsTopBarTitle","title")],K={};for(let e=0;e<Z.length;e+=1)K=t(K,Z[e]);let W=/*status*/e[0]!==oe.claimable&&ar(e),X=[ee("RewardsTopBar","layout-horizental space-between")],z={};for(let e=0;e<X.length;e+=1)z=t(z,X[e]);let Y=/*status*/e[0]!==oe.claimable&&lr(e),J=/*status*/e[0]===oe.claimable&&hr(e),q=[ee("BonusRewardsLevels")],Q={};for(let e=0;e<q.length;e+=1)Q=t(Q,q[e]);let te=[ee("SupportsTitle","title")],ne={};for(let e=0;e<te.length;e+=1)ne=t(ne,te[e]);let re=Object.keys(/*bonus*/e[1].extension?.bonus.wallet||/*bonus*/e[1].wallet).filter(br),ie=[];for(let t=0;t<re.length;t+=1)ie[t]=dr(Yn(e,re,t));let se=[ee("SupportsList")],ae={};for(let e=0;e<se.length;e+=1)ae=t(ae,se[e]);let le=[ee("SupportsWrapper")],ce={};for(let e=0;e<le.length;e+=1)ce=t(ce,le[e]);let ue=[ee("BonusRewards")],he={};for(let e=0;e<ue.length;e+=1)he=t(he,ue[e]);let pe=[ee("Root","layout-horizental")],fe={};for(let e=0;e<pe.length;e+=1)fe=t(fe,pe[e]);return{c(){n=g("section"),r=g("div"),o=g("section"),i=g("section"),s=b(M),a=y(),$&&$.c(),l=y(),U&&U.c(),c=y(),G&&G.c(),u=y(),m=g("div"),v=g("section"),E=g("div"),C=b("Rewards"),T=y(),W&&W.c(),B=y(),S=g("div"),Y&&Y.c(),_=y(),J&&J.c(),H=y(),L=g("div"),P=g("div"),R=b("Include bets"),I=y(),O=g("div");for(let e=0;e<ie.length;e+=1)ie[e].c();w(i,N),w(o,k),w(r,j),w(E,K),w(v,z),w(S,Q),w(P,ne),w(O,ae),w(L,ce),w(m,he),w(n,fe)},m(e,t){p(e,n,t),h(n,r),h(r,o),h(o,i),h(i,s),h(o,a),$&&$.m(o,null),h(r,l),U&&U.m(r,null),h(r,c),G&&G.m(r,null),h(n,u),h(n,m),h(m,v),h(v,E),h(E,C),h(v,T),W&&W.m(v,null),h(m,B),h(m,S),Y&&Y.m(S,null),h(S,_),J&&J.m(S,null),h(m,H),h(m,L),h(L,P),h(P,R),h(L,I),h(L,O);for(let e=0;e<ie.length;e+=1)ie[e].m(O,null)},p(e,t){if(/*bonus*/2&t[0]&&M!==(M=/*bonus*/(e[1].name||/*bonus*/e[1].presentation?.name.content)+"")&&A(s,M),w(i,N=F(x,[ee("BonusInfoTitle","title")])),/*status*/e[0]===oe.active?$?$.p(e,t):($=nr(e),$.c(),$.m(o,null)):$&&($.d(1),$=null),w(o,k=F(D,[ee("BonusInfoWrapper","layout-horizental space-between")])),/*status*/e[0]===oe.claimable?U?U.p(e,t):(U=rr(e),U.c(),U.m(r,c)):U&&(U.d(1),U=null),/*status*/e[0]!==oe.claimable?G?G.p(e,t):(G=or(e),G.c(),G.m(r,null)):G&&(G.d(1),G=null),w(r,j=F(V,[ee("BonusInfo")])),w(E,K=F(Z,[ee("RewardsTopBarTitle","title")])),/*status*/e[0]!==oe.claimable?W?W.p(e,t):(W=ar(e),W.c(),W.m(v,null)):W&&(W.d(1),W=null),w(v,z=F(X,[ee("RewardsTopBar","layout-horizental space-between")])),/*status*/e[0]!==oe.claimable?Y?Y.p(e,t):(Y=lr(e),Y.c(),Y.m(S,_)):Y&&(Y.d(1),Y=null),/*status*/e[0]===oe.claimable?J?J.p(e,t):(J=hr(e),J.c(),J.m(S,null)):J&&(J.d(1),J=null),w(S,Q=F(q,[ee("BonusRewardsLevels")])),w(P,ne=F(te,[ee("SupportsTitle","title")])),/*bonus*/2&t[0]){let n;for(re=Object.keys(/*bonus*/e[1].extension?.bonus.wallet||/*bonus*/e[1].wallet).filter(br),n=0;n<re.length;n+=1){const r=Yn(e,re,n);ie[n]?ie[n].p(r,t):(ie[n]=dr(r),ie[n].c(),ie[n].m(O,null))}for(;n<ie.length;n+=1)ie[n].d(1);ie.length=re.length}w(O,ae=F(se,[ee("SupportsList")])),w(L,ce=F(le,[ee("SupportsWrapper")])),w(m,he=F(ue,[ee("BonusRewards")])),w(n,fe=F(pe,[ee("Root","layout-horizental")]))},d(e){e&&f(n),$&&$.d(),U&&U.d(),G&&G.d(),W&&W.d(),Y&&Y.d(),J&&J.d(),d(ie,e)}}}