@everymatrix/player-account-controller 1.56.0 → 1.56.2
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/GeneralLogout-B0tDLggX.cjs +21 -0
- package/components/{GeneralLogout-DKa2JUny.js → GeneralLogout-BSaw6CR3.js} +706 -647
- package/components/{GeneralLogout-DH2dZPHM.js → GeneralLogout-P0C6s5DZ.js} +804 -745
- package/components/PlayerAccountBettingHistory-DeLbSbrJ.js +329 -0
- package/components/PlayerAccountBettingHistory-QrFClf-q.cjs +1 -0
- package/components/{PlayerAccountBettingHistory-DcspNMNL.js → PlayerAccountBettingHistory-l2jKP400.js} +126 -127
- package/components/{PlayerAccountBiometrics-D3fKLHtV.js → PlayerAccountBiometrics-BrjU0LiD.js} +22 -22
- package/components/{PlayerAccountBiometrics-8CaZALdD.cjs → PlayerAccountBiometrics-Bs6NMHc0.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-BBYUw87N.js → PlayerAccountBiometrics-DSkIQnzt.js} +22 -22
- package/components/{PlayerAccountClosure-Z7IuAXPP.cjs → PlayerAccountClosure-BOIOY2XA.cjs} +1 -1
- package/components/{PlayerAccountClosure-DJv7cY7T.js → PlayerAccountClosure-DfeDK9W_.js} +32 -32
- package/components/{PlayerAccountClosure-CtTfS7wl.js → PlayerAccountClosure-DiGREXoY.js} +32 -32
- package/components/{PlayerAccountController-BqEnzpc6.js → PlayerAccountController-B0nEgZTS.js} +340 -296
- package/components/{PlayerAccountController-BfaTH0AY.cjs → PlayerAccountController-B7U-7bNI.cjs} +1 -1
- package/components/{PlayerAccountController-Djsrrn-h.js → PlayerAccountController-CFyMeqDb.js} +339 -295
- package/components/{PlayerAccountGamingLimits-cnXxBvfZ.js → PlayerAccountGamingLimits-Crfy5IPI.js} +81 -81
- package/components/{PlayerAccountGamingLimits-DoYSa5g4.cjs → PlayerAccountGamingLimits-D46zagPJ.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-Bd5ti2Yy.js → PlayerAccountGamingLimits-Ktm0tqeu.js} +81 -81
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CUg2My3V.cjs → PlayerAccountGamingLimitsConfirmationModal-BVtO8XYY.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CS4mjsLb.js → PlayerAccountGamingLimitsConfirmationModal-CVt2dp2q.js} +30 -30
- package/components/{PlayerAccountGamingLimitsConfirmationModal-_MNPhSXy.js → PlayerAccountGamingLimitsConfirmationModal-GJsD4EXP.js} +30 -30
- package/components/{PlayerAccountGamingLimitsGroupEdit-C7OBS8be.js → PlayerAccountGamingLimitsGroupEdit-CBQMS6_H.js} +1302 -1355
- package/components/PlayerAccountGamingLimitsGroupEdit-DNh-dSyB.cjs +10 -0
- package/components/{PlayerAccountGamingLimitsGroupEdit-45Rp4DP_.js → PlayerAccountGamingLimitsGroupEdit-G4w9DdS2.js} +1302 -1355
- package/components/{PlayerAccountGamingLimitsHistory2-mJtlR6Ge.js → PlayerAccountGamingLimitsHistory2-Ciipqbhq.js} +43 -42
- package/components/{PlayerAccountGamingLimitsHistory2-VyLPwXZu.js → PlayerAccountGamingLimitsHistory2-CtA0oegi.js} +41 -40
- package/components/{PlayerAccountGamingLimitsHistory2-XZt8OllP.cjs → PlayerAccountGamingLimitsHistory2-D4h59ZvH.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-C7pCh3__.js → PlayerAccountGamingLimitsInfoCard-BEtS-68W.js} +91 -87
- package/components/{PlayerAccountGamingLimitsInfoCard-c0kYK6Z1.cjs → PlayerAccountGamingLimitsInfoCard-BP3ieYB-.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BxU5hBOF.js → PlayerAccountGamingLimitsInfoCard-LGJizeyk.js} +91 -87
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CNiOjWfB.js → PlayerAccountGamingLimitsPage2Gm16-BcM2sb1p.js} +35 -22
- package/components/{PlayerAccountGamingLimitsPage2Gm16-D66arvZd.js → PlayerAccountGamingLimitsPage2Gm16-DdhPHIQd.js} +35 -22
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Cha-RkAd.cjs → PlayerAccountGamingLimitsPage2Gm16-HZl-4uMr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BzEwvjUN.js → PlayerAccountGamingLimitsPopup-CdRdI3JR.js} +26 -26
- package/components/{PlayerAccountGamingLimitsPopup-CfBYEYKc.cjs → PlayerAccountGamingLimitsPopup-DyBIvm50.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-D3UUO_Eq.js → PlayerAccountGamingLimitsPopup-Yhb7EjIg.js} +26 -26
- package/components/{PlayerAccountGamingLimitsWrapper2-Bodw0FD-.js → PlayerAccountGamingLimitsWrapper2-BYv2y-rY.js} +55 -55
- package/components/{PlayerAccountGamingLimitsWrapper2-5LQf2KmJ.js → PlayerAccountGamingLimitsWrapper2-C6xKIGFF.js} +20 -20
- package/components/{PlayerAccountGamingLimitsWrapper2-CFxTXIfS.cjs → PlayerAccountGamingLimitsWrapper2-gGub1fuG.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-Dr-ZkTHH.cjs → PlayerAccountGeneralConfirmationModal-B4jIx1BX.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-D8JPZNbs.js → PlayerAccountGeneralConfirmationModal-CD-C2QtO.js} +34 -34
- package/components/{PlayerAccountGeneralConfirmationModal-CXql07aQ.js → PlayerAccountGeneralConfirmationModal-DyiU178q.js} +34 -34
- package/components/{PlayerAccountMenu-BHWtSf34.js → PlayerAccountMenu-CdKBgnzJ.js} +180 -158
- package/components/{PlayerAccountMenu-CKSsdVD4.js → PlayerAccountMenu-DFrCnbsI.js} +211 -189
- package/components/PlayerAccountMenu-bdpP915D.cjs +1 -0
- package/components/{PlayerAccountModal-CLW-XTid.cjs → PlayerAccountModal-COJeLuDu.cjs} +1 -1
- package/components/{PlayerAccountModal-CAL-lChv.js → PlayerAccountModal-DvoqjoAL.js} +27 -27
- package/components/{PlayerAccountModal-c01xdqmW.js → PlayerAccountModal-oVEZuWB2.js} +27 -27
- package/components/{PlayerAccountNotifications-CitVsKYm.js → PlayerAccountNotifications-BaNsCEei.js} +35 -33
- package/components/{PlayerAccountNotifications-B-haSjPr.cjs → PlayerAccountNotifications-DAWwzmCU.cjs} +1 -1
- package/components/{PlayerAccountNotifications-Bvoot0Jw.js → PlayerAccountNotifications-fgHOmoJ0.js} +36 -34
- package/components/{PlayerAccountSelfExclusion-Cz0rML3Z.js → PlayerAccountSelfExclusion-ARIxVSLP.js} +1578 -1559
- package/components/{PlayerAccountSelfExclusion-DzxXZ0NG.js → PlayerAccountSelfExclusion-Bx-xxb7Y.js} +1454 -1434
- package/components/{PlayerAccountSelfExclusion-CW1t2BNm.cjs → PlayerAccountSelfExclusion-lAbJlcUC.cjs} +182 -184
- package/components/{PlayerAccountTimeout-gWHY_22Q.js → PlayerAccountTimeout-04shprSV.js} +41 -41
- package/components/{PlayerAccountTimeout-9wxsYv0_.js → PlayerAccountTimeout-C392Fv8K.js} +41 -41
- package/components/{PlayerAccountTimeout-CAWJeQ3d.cjs → PlayerAccountTimeout-C7KH6ovR.cjs} +1 -1
- package/components/{PlayerActiveBonuses-qHNn2eq8.js → PlayerActiveBonuses-5eFyy-RT.js} +239 -217
- package/components/PlayerActiveBonuses-DZpjmd5_.cjs +1 -0
- package/components/{PlayerActiveBonuses-D0jBzeb4.js → PlayerActiveBonuses-TbfmKgcG.js} +239 -217
- package/components/{PlayerBonusCard-5gtng8cd.cjs → PlayerBonusCard-BLy1uhLi.cjs} +1 -1
- package/components/{PlayerBonusCard-CaQEQ2Fx.js → PlayerBonusCard-CukAjEqo.js} +80 -80
- package/components/{PlayerBonusCard-CGoRkCFh.js → PlayerBonusCard-DW5VwRsP.js} +80 -80
- package/components/{PlayerBonusHistory-DfQd--j_.js → PlayerBonusHistory-CIbSh98F.js} +33 -33
- package/components/{PlayerBonusHistory-C6p_5FRc.cjs → PlayerBonusHistory-DLekMCrR.cjs} +1 -1
- package/components/{PlayerBonusHistory-DBCc2ItI.js → PlayerBonusHistory-DyASnKHg.js} +33 -33
- package/components/{PlayerChangePassword-6dHXMBQg.js → PlayerChangePassword-Bjf-BD9m.js} +86 -84
- package/components/{PlayerChangePassword-COdBpupf.js → PlayerChangePassword-RGHCaEP3.js} +86 -84
- package/components/{PlayerChangePassword-BsM1lBfW.cjs → PlayerChangePassword-UepIdqvw.cjs} +1 -1
- package/components/{PlayerDeposit-DwxXelMX.js → PlayerDeposit-BEZ5yfVx.js} +99 -99
- package/components/{PlayerDeposit-CTXnx-k2.js → PlayerDeposit-C2zLAno5.js} +99 -99
- package/components/PlayerDeposit-Dcjjga2V.cjs +1 -0
- package/components/{PlayerGamingHistory-4f_MiXvH.js → PlayerGamingHistory-DYtKLxtA.js} +57 -57
- package/components/{PlayerGamingHistory-DAfDiFej.cjs → PlayerGamingHistory-Qv5CmegZ.cjs} +1 -1
- package/components/{PlayerGamingHistory-dDHtahYn.js → PlayerGamingHistory-f408ehA1.js} +62 -62
- package/components/{PlayerPendingWithdrawals-CHHH7JPW.js → PlayerPendingWithdrawals-Bl7G42a8.js} +26 -26
- package/components/{PlayerPendingWithdrawals-qMs8We3P.cjs → PlayerPendingWithdrawals-CvxjxkOD.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-BFrv_-ow.js → PlayerPendingWithdrawals-Dd-hUBTs.js} +26 -26
- package/components/{PlayerProfileInfo-DDHAv267.cjs → PlayerProfileInfo-AlvN_pUL.cjs} +1 -1
- package/components/{PlayerProfileInfo-Yky_xo7E.js → PlayerProfileInfo-Chwlpy6G.js} +74 -72
- package/components/{PlayerProfileInfo-DlA-e6OI.js → PlayerProfileInfo-tT3FUcqx.js} +74 -72
- package/components/{PlayerRealityCheck-JOxPFKqm.js → PlayerRealityCheck-6MNq7GKW.js} +33 -33
- package/components/{PlayerRealityCheck-Bn_ov_Ie.js → PlayerRealityCheck-BBRdpOqG.js} +33 -33
- package/components/{PlayerRealityCheck-BLlc8RGo.cjs → PlayerRealityCheck-DSYoUIrf.cjs} +1 -1
- package/components/{PlayerTransactionHistory-CxRrWzgQ.js → PlayerTransactionHistory-6qxdyqQZ.js} +24 -24
- package/components/{PlayerTransactionHistory-CzOvo_E3.js → PlayerTransactionHistory-BrGY_Ah9.js} +24 -24
- package/components/{PlayerTransactionHistory-BqEXyDt-.cjs → PlayerTransactionHistory-Cvm1EwgV.cjs} +1 -1
- package/components/{PlayerWithdrawal-BlhHRFmC.js → PlayerWithdrawal-B3-mcOWq.js} +19 -19
- package/components/{PlayerWithdrawal-1i-tYxaO.cjs → PlayerWithdrawal-D9w69Llz.cjs} +1 -1
- package/components/{PlayerWithdrawal-CnoGAUmo.js → PlayerWithdrawal-dfFj1w6I.js} +19 -19
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/checkbox-group-input_9-DMrH9pTx.cjs +2045 -0
- package/stencil/{checkbox-group-input_9-B_RfUM6E.js → checkbox-group-input_9-DtZ9kvK4.js} +945 -903
- package/stencil/{checkbox-group-input_9-C98yT4vw.js → checkbox-group-input_9-DvXvp-ML.js} +984 -942
- package/stencil/general-input-CFqrfrup.cjs +1 -0
- package/stencil/{general-input-CqTf7ErJ.js → general-input-eCxMClmW.js} +6 -6
- package/stencil/{general-input-DTHw5Z1Q.js → general-input-rL_ftR3H.js} +6 -6
- package/stencil/index-1ef3a64c-BnB-ATuA.js +556 -0
- package/stencil/index-1ef3a64c-BvKbNMH8.cjs +1 -0
- package/stencil/index-1ef3a64c-Nsr9PDe6.js +572 -0
- package/stencil/index-7c5e707a-CTC8RpEi.js +643 -0
- package/stencil/index-7c5e707a-CWE0q0mP.js +616 -0
- package/stencil/index-7c5e707a-D1Fv8nel.cjs +1 -0
- package/stencil/index-9c0f6c58-C1yzTenw.js +576 -0
- package/stencil/index-9c0f6c58-CqoLeK5G.js +549 -0
- package/stencil/index-9c0f6c58-DEsDY2nb.cjs +1 -0
- package/stencil/index-9cd44522-BqLgI-Ho.js +626 -0
- package/stencil/index-9cd44522-Cygpa4pV.js +610 -0
- package/stencil/index-9cd44522-DwMekoGN.cjs +1 -0
- package/stencil/index-ae04a8b1-D4wvtXTw.cjs +1 -0
- package/stencil/index-ae04a8b1-fpBaOn88.js +516 -0
- package/stencil/index-ae04a8b1-ixlRj3zC.js +532 -0
- package/stencil/{password-input_2-CdHS5fmR.js → password-input_2-9_yxZI2g.js} +51 -31
- package/stencil/{password-input_2-B2qvf6ku.cjs → password-input_2-BabcxKun.cjs} +7 -7
- package/stencil/{password-input_2-DdQvCp3o.js → password-input_2-D-YA_Jkx.js} +51 -31
- package/stencil/{player-change-password-gm2-38dff08c-BNhjxr22.js → player-change-password-gm2-039e300e-CcWiaT26.js} +3 -3
- package/stencil/{player-change-password-gm2-38dff08c-DnYXSeKg.cjs → player-change-password-gm2-039e300e-DiYWgS70.cjs} +1 -1
- package/stencil/{player-change-password-gm2-38dff08c-CPRdwVFF.js → player-change-password-gm2-039e300e-Zp9TDX77.js} +3 -3
- package/stencil/player-change-password-gm2-BWjI2Hs0.js +25 -0
- package/stencil/player-change-password-gm2-BaYafift.js +7 -0
- package/stencil/player-change-password-gm2-DsT1aXcX.cjs +1 -0
- package/stencil/{player-kyc-verification-BPrVDLfj.js → player-kyc-verification-B8arDCja.js} +7 -7
- package/stencil/{player-kyc-verification-CRwnm961.js → player-kyc-verification-Di40xn9z.js} +11 -11
- package/stencil/{player-kyc-verification-5V24oWMX.cjs → player-kyc-verification-GFBDUbhm.cjs} +2 -2
- package/stencil/{toggle-checkbox-input-B4OOk9wz.js → toggle-checkbox-input-BxUGWw2X.js} +15 -7
- package/stencil/toggle-checkbox-input-D-Cv1QSS.cjs +1 -0
- package/stencil/{toggle-checkbox-input-Cwo_Ny77.js → toggle-checkbox-input-PSoH9KF2.js} +15 -7
- package/stencil/{ui-skeleton-BjdFVTvB.cjs → ui-skeleton-BC4mw1ae.cjs} +1 -1
- package/stencil/{ui-skeleton-Bw-C78oa.js → ui-skeleton-DT0OMDC6.js} +2 -2
- package/stencil/{ui-skeleton-BkychLQM.js → ui-skeleton-T4HYbNcC.js} +2 -2
- package/stencil/ui-skeleton-a642cced-B8H73O_q.cjs +1 -0
- package/stencil/{ui-skeleton-982450d2-CXoVwMz-.js → ui-skeleton-a642cced-Ba-weZ4g.js} +21 -21
- package/stencil/{ui-skeleton-982450d2-DgSl7oS5.js → ui-skeleton-a642cced-DhjmNsN7.js} +21 -21
- package/stencil/{user-deposit-withdrawal-Bn1WPRou.cjs → user-deposit-withdrawal-BQKFgZ31.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-51pO8ttC.js → user-deposit-withdrawal-DRe5oBqv.js} +63 -42
- package/stencil/{user-deposit-withdrawal-C0SOQks0.js → user-deposit-withdrawal-Dj3Po03r.js} +62 -41
- package/stencil/{user-transaction-history-LRgu-JMX.js → user-transaction-history-6-z3byrF.js} +5 -5
- package/stencil/{user-transaction-history-BsTUJ4on.js → user-transaction-history-Dca7qx08.js} +5 -5
- package/stencil/{user-transaction-history-8EskARbv.cjs → user-transaction-history-DrhquxkJ.cjs} +1 -1
- package/stencil/{vaadin-button-mixin-ef61174c-DuDVejN4.cjs → vaadin-button-mixin-e8c3f355-BdntioNA.cjs} +130 -124
- package/stencil/{vaadin-button-mixin-ef61174c-B_vhSFKU.js → vaadin-button-mixin-e8c3f355-DON-rAuy.js} +821 -795
- package/stencil/{vaadin-button-mixin-ef61174c-EQiVsI4x.js → vaadin-button-mixin-e8c3f355-DQ5UgwNf.js} +931 -906
- package/components/GeneralLogout-9pZTJKCj.cjs +0 -8
- package/components/PlayerAccountBettingHistory-BgdXC00n.cjs +0 -1
- package/components/PlayerAccountBettingHistory-CxIU3NjD.js +0 -328
- package/components/PlayerAccountGamingLimitsGroupEdit-ByRLb87-.cjs +0 -10
- package/components/PlayerAccountMenu-5EvNrc-W.cjs +0 -1
- package/components/PlayerActiveBonuses-DTgD47j8.cjs +0 -1
- package/components/PlayerDeposit-0eaqfWH1.cjs +0 -1
- package/stencil/checkbox-group-input_9-C2IUNSpC.cjs +0 -2045
- package/stencil/general-input-wM2i7b57.cjs +0 -1
- package/stencil/index-12dd2b03-B2coll71.js +0 -725
- package/stencil/index-12dd2b03-Dd1hsUZX.cjs +0 -1
- package/stencil/index-12dd2b03-YP3skHrn.js +0 -698
- package/stencil/index-92b64862-BRYoLHww.cjs +0 -1
- package/stencil/index-92b64862-C_69cKxK.js +0 -708
- package/stencil/index-92b64862-w9a1l35N.js +0 -692
- package/stencil/index-b1bdf3f6-0mlbFiN3.js +0 -632
- package/stencil/index-b1bdf3f6-DBuAhDH-.js +0 -659
- package/stencil/index-b1bdf3f6-DdF5azN0.cjs +0 -1
- package/stencil/index-c7e52808-7ohcD8fQ.js +0 -638
- package/stencil/index-c7e52808-DYutdKGj.cjs +0 -1
- package/stencil/index-c7e52808-WCb5gCA6.js +0 -654
- package/stencil/index-db5752f9-B4MZ13Fz.js +0 -610
- package/stencil/index-db5752f9-C_VcDZns.js +0 -594
- package/stencil/index-db5752f9-DSHLGBj_.cjs +0 -1
- package/stencil/player-change-password-gm2-1hTMqepH.js +0 -7
- package/stencil/player-change-password-gm2-2YEpyazj.js +0 -25
- package/stencil/player-change-password-gm2-CDxgB3eD.cjs +0 -1
- package/stencil/toggle-checkbox-input-tQDhlcag.cjs +0 -1
- package/stencil/ui-skeleton-982450d2-BEC6vjfL.cjs +0 -1
package/stencil/{user-transaction-history-8EskARbv.cjs → user-transaction-history-DrhquxkJ.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(t,a,i)=>new Promise((n,r)=>{var l=s=>{try{d(i.next(s))}catch(p){r(p)}},h=s=>{try{d(i.throw(s))}catch(p){r(p)}},d=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,h);d((i=i.apply(t,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-12dd2b03-Dd1hsUZX.cjs"),v=require("./app-globals-0f993ce5-DgYhdguE.cjs");var u=typeof document!="undefined"?document.currentScript:null,x=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:u&&u.tagName.toUpperCase()==="SCRIPT"&&u.src||new URL("stencil/user-transaction-history-8EskARbv.cjs",document.baseURI).href,a={};return t!==""&&(a.resourcesUrl=new URL(".",t).href),e.promiseResolve(a)};x().then(t=>c(exports,null,function*(){return yield v.globalScripts$4(),e.bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{endpoint:[513],session:[513],language:[513],userId:[513,"user-id"],translationUrl:[513,"translation-url"],mobile:[516],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[513,"mb-source"],page:[32],pageSize:[32],showMobileFilter:[32],to:[32],from:[32],type:[32],transactions:[32],showLoader:[32]},[[9,"resize","getComponentHeight"]],{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}]]]],t)}));const w={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu"}};class o{constructor(){}static loadCustomTranslations(a){return c(this,null,function*(){try{const i=yield fetch(a,{headers:{"Content-Type":"application/json"}});if(!i.ok){const r=yield i.text();throw new Error(r)}const n=yield i.json();o.updateTranslations(n)}catch(i){console.error(`Failed to load translations ${a}. ${i.message}`)}})}static translate(a,i){var n,r;const l=o.getAvaliableLanguages(i);return((r=(n=o.customTranslation)===null||n===void 0?void 0:n[l.customLanguage])===null||r===void 0?void 0:r[a])||o.defaultTranslation[l.predefinedLanguage][a]}static getAvaliableLanguages(a){var i;const n=!((i=o.customLanguages)===null||i===void 0)&&i.includes(a)?a:o.defaultLanguage;return{predefinedLanguage:o.supportedLanguages.includes(a)?a:o.defaultLanguage,customLanguage:n}}static updateTranslations(a){o.customLanguages=Array.from(new Set([...o.supportedLanguages,...Object.keys(a).map(i=>i.toLowerCase())])),o.customTranslation=a}}o.defaultLanguage="en";o.supportedLanguages=["en"];o.defaultTranslation=w;const S=()=>e.h("div",{class:"loader"},e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null));class b{constructor(){}static dateToFormatedString(a){const i=a.toLocaleDateString("en-gb"),n=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${i}, ${n}`}}class f{constructor(){}static format(a,i){let n=`${i} ${a}`;try{n=new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(i)}catch(r){}return n}}const C=t=>e.h("div",{class:"data-transaction"},e.h("p",null,t.productType),e.h("p",{class:"text-style text-style-status"},e.h("span",{class:t.status.toLowerCase()},t.status)),e.h("p",{class:"date"},t.transId," | ",b.dateToFormatedString(new Date(t.created))),e.h("p",{class:"text-style"},f.format(t.currency,t.realAmount)," ")),k=t=>e.h("div",{class:"page-size"},e.h("span",null,o.translate("show",t.language)),t.pageSizes.map(a=>e.h("button",{class:t.currentPageSize===a?"active":"",onClick:()=>t.changePageSize(a)},a))),T=({from:t,to:a,applyFilters:i,language:n})=>{let r,l;const h=()=>{t=r.value},d=()=>{a=l.value};return e.h("div",{class:"period"},e.h("div",{class:"period-content"},e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:t,ref:s=>r=s,label:o.translate("from",n),onChange:h})),e.h("span",null,e.h("svg",{width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"#5d687b"}))),e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:a,ref:s=>l=s,label:o.translate("to",n),onChange:d})),e.h("button",{class:"filter-btn",onClick:()=>i(t,a)},o.translate("filter",n))))},B=({source:t,language:a})=>{const i=[{name:o.translate("transactionId",a)},{name:o.translate("date",a)},{name:o.translate("amount",a)},{name:o.translate("productType",a)},{name:o.translate("status",a)}];return e.h("table",null,e.h("thead",null,e.h("tr",null,i.map(n=>e.h("th",null,n.name)))),e.h("tbody",null,t.map(n=>e.h("tr",null,e.h("td",null,n.transId),e.h("td",null,b.dateToFormatedString(new Date(n.created))),e.h("td",null,f.format(n.currency,n.realAmount)," "),e.h("td",null,n.productType),e.h("td",null,e.h("span",{class:n.status.toLowerCase()},n.status))))))};function g(t,a){if(t){const i=document.createElement("style");i.innerHTML=a,t.appendChild(i)}}function m(t,a){const i=new URL(a);fetch(i.href).then(n=>n.text()).then(n=>{const r=document.createElement("style");r.innerHTML=n,t&&t.appendChild(r)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function L(t,a,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(a,r=>{n.innerHTML=r,t&&t.appendChild(n)})}}const F=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}',D=F,y=class{constructor(t){e.registerInstance(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.language=o.defaultLanguage,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.type="0",this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,a){t!=a&&g(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,a){t!=a&&this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return c(this,null,function*(){this.translationUrl&&(yield o.loadCustomTranslations(this.translationUrl)),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?L(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let a=this.el.getBoundingClientRect().height-((t=this.el.shadowRoot.querySelector(".table"))===null||t===void 0?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",a+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;!((t=this.pagination)===null||t===void 0)&&t.previous&&this.page--}next(){var t;!((t=this.pagination)===null||t===void 0)&&t.next&&this.page++}applyFilters(t,a){this.from=t?new Date(t).toISOString():null,this.to=a?new Date(a).toISOString():null,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var t;const a=e.getAssetPath("../assets/filter.svg"),i=e.getAssetPath("../assets/warning.svg");return e.h(e.Host,{key:"8d6470d73afff5dbc8a8c3a1a47426223971ad47"},this.showLoader?e.h(S,null):"",e.h("div",{key:"8c32d9425b701747559ea1e63a3b2c4bb31780ab",class:"wrapper",ref:n=>this.stylingContainer=n},e.h("div",{key:"b2a9216bfcfa5950c174f6e06a179e2ae3790f6b",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},e.h("button",{key:"e2ce33fe2ab27abab68bd721b8b945bde5d672ac",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},o.translate("deposit",this.language)),e.h("button",{key:"6d80bef56bf4ec590cc2e4aa704f930a47b29f3c",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},o.translate("withdrawals",this.language))),this.mobile?"":e.h(k,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:n=>this.changePageSize(n)}),this.mobile?e.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},e.h("img",{src:a,alt:"Filter"}),o.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?e.h(T,{language:this.language,applyFilters:(n,r)=>this.applyFilters(n,r)}):"",((t=this.transactions)===null||t===void 0?void 0:t.length)>0?e.h("div",{class:"table"},this.mobile?e.h("div",{class:"mobile-table"},this.transactions.map(n=>e.h(C,Object.assign({},n)))):e.h(B,{source:this.transactions,language:this.language})):e.h("div",{class:"noData"},e.h("img",{src:i,alt:"Warning"}),e.h("span",null,o.translate("noData",this.language))),e.h("div",{key:"9b7950ed91c4795f4355ce406d7cba40c46c0184",class:"pagination"},e.h("button",{key:"bc7b2bce0a21763fc5a10d2249b74c2d9805d3b5",onClick:()=>this.prev()},"<"),e.h("button",{key:"69210c5b101a24563babdbe6b3361d091afc2cc0",onClick:()=>this.next()},">"))))}loadTransactions(){return c(this,null,function*(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,a=yield fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!a.ok){const n=yield a.text();throw new Error(n)}const i=yield a.json();this.pagination=i.pagination,this.transactions=i.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}})}getParams(){var t,a;const i=new Date,n=(this.page*this.pageSize).toString(),r=(t=this.from)!==null&&t!==void 0?t:new Date(i.getFullYear(),i.getMonth(),1).toISOString(),l=(a=this.to)!==null&&a!==void 0?a:new Date(i.getFullYear(),i.getMonth()+1,0).toISOString();return`offset=${n}&endDate=${l}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return e.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};y.style=D;exports.user_transaction_history=y;
|
|
1
|
+
"use strict";var c=(t,a,i)=>new Promise((n,r)=>{var l=s=>{try{d(i.next(s))}catch(p){r(p)}},h=s=>{try{d(i.throw(s))}catch(p){r(p)}},d=s=>s.done?n(s.value):Promise.resolve(s.value).then(l,h);d((i=i.apply(t,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-7c5e707a-D1Fv8nel.cjs"),v=require("./app-globals-0f993ce5-DgYhdguE.cjs");var u=typeof document!="undefined"?document.currentScript:null,x=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:u&&u.tagName.toUpperCase()==="SCRIPT"&&u.src||new URL("stencil/user-transaction-history-DrhquxkJ.cjs",document.baseURI).href,a={};return t!==""&&(a.resourcesUrl=new URL(".",t).href),e.promiseResolve(a)};x().then(t=>c(exports,null,function*(){return yield v.globalScripts$4(),e.bootstrapLazy([["user-transaction-history",[[1,"user-transaction-history",{endpoint:[513],session:[513],language:[513],userId:[513,"user-id"],translationUrl:[513,"translation-url"],mobile:[516],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],mbSource:[513,"mb-source"],page:[32],pageSize:[32],showMobileFilter:[32],to:[32],from:[32],type:[32],transactions:[32],showLoader:[32]},[[9,"resize","getComponentHeight"]],{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}]]]],t)}));const w={en:{deposit:"Deposit",withdrawals:"Withdrawals",show:"Show",from:"From",to:"To",filter:"Filter",transactionId:"Transaction ID",date:"Date",amount:"Amount",productType:"Product Type",status:"Status",noData:"There are no account activities"},hr:{deposit:"Uplate",withdrawals:"Isplate",show:"Prikaži",from:"Od",to:"Do",filter:"Filter",transactionId:"ID transakcije",date:"Datum",amount:"Iznos",productType:"Vrsta proizvoda",status:"Status",noData:"Nema aktivnosti na računu"}};class o{constructor(){}static loadCustomTranslations(a){return c(this,null,function*(){try{const i=yield fetch(a,{headers:{"Content-Type":"application/json"}});if(!i.ok){const r=yield i.text();throw new Error(r)}const n=yield i.json();o.updateTranslations(n)}catch(i){console.error(`Failed to load translations ${a}. ${i.message}`)}})}static translate(a,i){var n,r;const l=o.getAvaliableLanguages(i);return((r=(n=o.customTranslation)===null||n===void 0?void 0:n[l.customLanguage])===null||r===void 0?void 0:r[a])||o.defaultTranslation[l.predefinedLanguage][a]}static getAvaliableLanguages(a){var i;const n=!((i=o.customLanguages)===null||i===void 0)&&i.includes(a)?a:o.defaultLanguage;return{predefinedLanguage:o.supportedLanguages.includes(a)?a:o.defaultLanguage,customLanguage:n}}static updateTranslations(a){o.customLanguages=Array.from(new Set([...o.supportedLanguages,...Object.keys(a).map(i=>i.toLowerCase())])),o.customTranslation=a}}o.defaultLanguage="en";o.supportedLanguages=["en"];o.defaultTranslation=w;const S=()=>e.h("div",{class:"loader"},e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null),e.h("div",null));class b{constructor(){}static dateToFormatedString(a){const i=a.toLocaleDateString("en-gb"),n=a.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1});return`${i}, ${n}`}}class f{constructor(){}static format(a,i){let n=`${i} ${a}`;try{n=new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format(i)}catch(r){}return n}}const C=t=>e.h("div",{class:"data-transaction"},e.h("p",null,t.productType),e.h("p",{class:"text-style text-style-status"},e.h("span",{class:t.status.toLowerCase()},t.status)),e.h("p",{class:"date"},t.transId," | ",b.dateToFormatedString(new Date(t.created))),e.h("p",{class:"text-style"},f.format(t.currency,t.realAmount)," ")),k=t=>e.h("div",{class:"page-size"},e.h("span",null,o.translate("show",t.language)),t.pageSizes.map(a=>e.h("button",{class:t.currentPageSize===a?"active":"",onClick:()=>t.changePageSize(a)},a))),T=({from:t,to:a,applyFilters:i,language:n})=>{let r,l;const h=()=>{t=r.value},d=()=>{a=l.value};return e.h("div",{class:"period"},e.h("div",{class:"period-content"},e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:t,ref:s=>r=s,label:o.translate("from",n),onChange:h})),e.h("span",null,e.h("svg",{width:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{d:"m21 11.75c0-.414-.336-.75-.75-.75h-16.5c-.414 0-.75.336-.75.75s.336.75.75.75h16.5c.414 0 .75-.336.75-.75z","fill-rule":"nonzero",fill:"#5d687b"}))),e.h("div",{class:"date-input"},e.h("vaadin-date-picker",{value:a,ref:s=>l=s,label:o.translate("to",n),onChange:d})),e.h("button",{class:"filter-btn",onClick:()=>i(t,a)},o.translate("filter",n))))},B=({source:t,language:a})=>{const i=[{name:o.translate("transactionId",a)},{name:o.translate("date",a)},{name:o.translate("amount",a)},{name:o.translate("productType",a)},{name:o.translate("status",a)}];return e.h("table",null,e.h("thead",null,e.h("tr",null,i.map(n=>e.h("th",null,n.name)))),e.h("tbody",null,t.map(n=>e.h("tr",null,e.h("td",null,n.transId),e.h("td",null,b.dateToFormatedString(new Date(n.created))),e.h("td",null,f.format(n.currency,n.realAmount)," "),e.h("td",null,n.productType),e.h("td",null,e.h("span",{class:n.status.toLowerCase()},n.status))))))};function g(t,a){if(t){const i=document.createElement("style");i.innerHTML=a,t.appendChild(i)}}function m(t,a){const i=new URL(a);fetch(i.href).then(n=>n.text()).then(n=>{const r=document.createElement("style");r.innerHTML=n,t&&t.appendChild(r)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function L(t,a,i){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(a,r=>{n.innerHTML=r,t&&t.appendChild(n)})}}const F=':host{--activeButtonBackground:#7ec51e;--activeButtonFont:#002149;--hoverBackground:#ffffff;--background:#e4e6e8;--success:#7ac345;--heightScrollableContainer:400px;--borderColor:#d3d3d3;--borderColorButton:#c4c4c4;--textColor:#002554;--textColorHover:#7ac345;--errorColor:#c23b21;--loaderColor:#7ac345;--headerTableBackground:#cdcdcd;--borderTable:#dedede;--shadowBorderTable:#f1f1f1;--backgroundTable:#ffffff;font-family:Roboto, Arial, sans-serif;font-size:14px;color:var(--textColor);display:block;background-color:var(--background)}:host .wrapper{height:100%;padding:1rem}:host .types{display:flex;width:100%;gap:5px}:host .transaction-type{background:inherit;font-weight:600;padding:0.6rem 1.6rem;border:1px solid #6c757d;cursor:pointer}:host .transaction-type:hover{color:var(--activeButtonBackground);border-color:var(--activeButtonBackground);background:var(--hoverBackground)}:host .clicked{background-color:var(--activeButtonBackground);border-color:var(--activeButtonBackground)}:host .types-mobile{justify-content:center;margin-bottom:15px}:host .types-desktop{justify-content:flex-end;margin-bottom:3rem}:host .page-size{display:flex;width:100%;justify-content:flex-end;align-items:center}:host .page-size button{background:transparent;border:none;cursor:pointer;margin:0.4rem;width:2rem;height:2rem}:host .page-size button:hover{color:var(--textColorHover)}:host .page-size button.active{background:var(--activeButtonBackground);color:var(--textColor);font-weight:600;border-radius:0.4rem}:host .period{display:flex;width:100%;align-items:flex-end;justify-content:center;gap:10px;background:#f0f0f0;border-bottom:2px solid #e9e9e9;padding:1.6rem 0 0;margin-bottom:4rem}@media (max-width: 801px){:host .period{margin-bottom:0;flex-direction:column;align-items:stretch;width:auto;padding:1.4rem 2.8rem;box-shadow:0 4px 5px 0 rgba(90, 90, 90, 0.24)}}:host .period .range{color:var(--errorColor)}:host .period .filter-btn{height:40px;background:transparent;border:0.1rem solid var(--borderColorButton);min-width:12rem;max-width:17rem;cursor:pointer}@media (max-width: 801px){:host .period .filter-btn{max-width:none;min-width:none;margin-top:1rem}}:host .period .filter-btn:hover{border:none;background:var(--hoverBackground)}:host .period .duet-date__input{padding:7px 60px 7px 7px}:host .period+button{padding:9px 15px}:host .period-content{display:flex;flex-direction:row;width:100%;justify-content:center;align-items:flex-end;margin:0 auto 1.6rem}@media (max-width: 801px){:host .period-content{flex-direction:column;align-items:stretch}}:host .period-content span{height:40px;display:flex;align-items:center;justify-content:center}@media (max-width: 801px){:host .period-content span{display:none}}:host .period-content .filter-btn{margin-left:60px}@media (max-width: 801px){:host .period-content .filter-btn{margin-left:0}}:host .period-content .date-input{padding:0 4px}@media (max-width: 801px){:host .period-content .date-input{width:auto}:host .period-content .date-input:first-child{margin-bottom:0.5rem}}:host .period-content .date-input label{display:inline-block;margin-bottom:0.9rem}:host .period-content .date-input input{border:0.1rem solid var(--borderColor);box-sizing:border-box;border-radius:0.2rem}:host .pagination{display:flex;width:100%;justify-content:center;margin-top:1.5rem}:host .pagination button{cursor:pointer;border:none;background-color:var(--activeButtonBackground);color:#fff;opacity:0.5;padding:7px 12px}:host .pagination button:hover{opacity:1}:host .pagination button:focus{opacity:1}:host button.active{color:var(--activeButtonFont);background-color:var(--activeButtonBackground)}.mobile-filter-button{display:flex;justify-content:center;align-items:center;width:100%;height:2.8rem;background:inherit;border:1px solid var(--borderColorButton)}.mobile-filter-button img{height:50%;margin-right:0.5rem}.noData{display:flex;align-items:center;box-shadow:0 0.4rem 0.4rem rgba(0, 0, 0, 0.25);padding:1.1rem;border-radius:0.6rem}.noData span{margin-left:0.5rem}.table{height:var(--heightScrollableContainer);overflow-y:auto}.table .mobile-table{height:100%}.data-transaction{border-bottom:1px solid var(--borderColor);background-color:var(--hoverBackground);padding:0 20px;display:grid;grid-template-columns:repeat(2, 1fr)}.data-transaction .text-style-status{font-weight:600}.data-transaction .text-style-status .success{color:var(--success)}.data-transaction .text-style-status .error{color:var(--errorColor)}.data-transaction .text-style{text-align:end}.data-transaction .date{font-size:12px;display:flex;align-items:center}.loader{display:inline-block;position:absolute;width:80px;height:80px;top:calc(50% - 40px);left:calc(50% - 40px);z-index:100}.loader::before{content:"";position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(255, 255, 255, 0.6)}.loader div{position:absolute;width:6px;height:6px;background:var(--loaderColor);border-radius:50%;animation:loader 1.2s linear infinite}.loader div:nth-child(1){animation-delay:0s;top:37px;left:66px}.loader div:nth-child(2){animation-delay:-0.1s;top:22px;left:62px}.loader div:nth-child(3){animation-delay:-0.2s;top:11px;left:52px}.loader div:nth-child(4){animation-delay:-0.3s;top:7px;left:37px}.loader div:nth-child(5){animation-delay:-0.4s;top:11px;left:22px}.loader div:nth-child(6){animation-delay:-0.5s;top:22px;left:11px}.loader div:nth-child(7){animation-delay:-0.6s;top:37px;left:7px}.loader div:nth-child(8){animation-delay:-0.7s;top:52px;left:11px}.loader div:nth-child(9){animation-delay:-0.8s;top:62px;left:22px}.loader div:nth-child(10){animation-delay:-0.9s;top:66px;left:37px}.loader div:nth-child(11){animation-delay:-1s;top:62px;left:52px}.loader div:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes loader{0%,20%,80%,100%{transform:scale(1)}50%{transform:scale(1.5)}}.table thead th{position:sticky;top:0}table{border-collapse:collapse;width:100%}table th{padding:14px 24px;text-align:left;font-weight:600;color:var(--textColor);background:var(--headerTableBackground)}table td{padding:1rem 1.7rem;box-shadow:0 -1px 0 0 var(--shadowBorderTable) inset;border-bottom:0.1rem solid var(--borderTable);text-align:left;color:var(--textColor)}table tbody{background:var(--backgroundTable)}table .success{color:var(--success)}table .error{color:var(--errorColor)}vaadin-date-picker{min-width:320px}@media (max-width: 1261px){vaadin-date-picker{width:auto;min-width:auto}}@media (max-width: 801px){vaadin-date-picker{width:100%}}',D=F,y=class{constructor(t){e.registerInstance(this,t),this.pageSizes=[10,25,50],this.pagination=null,this.endpoint=void 0,this.session=void 0,this.language=o.defaultLanguage,this.userId=void 0,this.translationUrl=void 0,this.mobile=!1,this.clientStyling=null,this.clientStylingUrl=null,this.mbSource=void 0,this.page=0,this.pageSize=this.pageSizes[0],this.showMobileFilter=!1,this.to=void 0,this.from=void 0,this.type="0",this.transactions=void 0,this.showLoader=!0}watchMultiple(){this.loadTransactions()}handleClientStylingChange(t,a){t!=a&&g(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,a){t!=a&&this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return c(this,null,function*(){this.translationUrl&&(yield o.loadCustomTranslations(this.translationUrl)),this.loadTransactions()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?L(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)))}componentDidRender(){this.getComponentHeight()}getComponentHeight(){var t;if(this.mobile){let a=this.el.getBoundingClientRect().height-((t=this.el.shadowRoot.querySelector(".table"))===null||t===void 0?void 0:t.getBoundingClientRect().y);this.el.style.setProperty("--heightScrollableContainer",a+"px")}}setHeightTableProperty(){let t=this.getComponentHeight();this.el.style.setProperty("--heightScrollableContainer",t+"px")}changeTransactionsType(t){this.type=t}changePageSize(t){this.pageSize=t}prev(){var t;!((t=this.pagination)===null||t===void 0)&&t.previous&&this.page--}next(){var t;!((t=this.pagination)===null||t===void 0)&&t.next&&this.page++}applyFilters(t,a){this.from=t?new Date(t).toISOString():null,this.to=a?new Date(a).toISOString():null,this.loadTransactions()}showFilter(){this.showMobileFilter=!this.showMobileFilter}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){var t;const a=e.getAssetPath("../assets/filter.svg"),i=e.getAssetPath("../assets/warning.svg");return e.h(e.Host,{key:"8d6470d73afff5dbc8a8c3a1a47426223971ad47"},this.showLoader?e.h(S,null):"",e.h("div",{key:"8c32d9425b701747559ea1e63a3b2c4bb31780ab",class:"wrapper",ref:n=>this.stylingContainer=n},e.h("div",{key:"b2a9216bfcfa5950c174f6e06a179e2ae3790f6b",class:{"types types-mobile":this.mobile,"types types-desktop":!this.mobile}},e.h("button",{key:"e2ce33fe2ab27abab68bd721b8b945bde5d672ac",class:"transaction-type "+(this.type==="0"?"clicked":""),onClick:()=>this.changeTransactionsType("0")},o.translate("deposit",this.language)),e.h("button",{key:"6d80bef56bf4ec590cc2e4aa704f930a47b29f3c",class:"transaction-type "+(this.type==="1"?"clicked":""),onClick:()=>this.changeTransactionsType("1")},o.translate("withdrawals",this.language))),this.mobile?"":e.h(k,{language:this.language,pageSizes:this.pageSizes,currentPageSize:this.pageSize,changePageSize:n=>this.changePageSize(n)}),this.mobile?e.h("button",{class:"mobile-filter-button",onClick:()=>this.showFilter()},e.h("img",{src:a,alt:"Filter"}),o.translate("filter",this.language)):"",!this.mobile||this.showMobileFilter&&this.mobile?e.h(T,{language:this.language,applyFilters:(n,r)=>this.applyFilters(n,r)}):"",((t=this.transactions)===null||t===void 0?void 0:t.length)>0?e.h("div",{class:"table"},this.mobile?e.h("div",{class:"mobile-table"},this.transactions.map(n=>e.h(C,Object.assign({},n)))):e.h(B,{source:this.transactions,language:this.language})):e.h("div",{class:"noData"},e.h("img",{src:i,alt:"Warning"}),e.h("span",null,o.translate("noData",this.language))),e.h("div",{key:"9b7950ed91c4795f4355ce406d7cba40c46c0184",class:"pagination"},e.h("button",{key:"bc7b2bce0a21763fc5a10d2249b74c2d9805d3b5",onClick:()=>this.prev()},"<"),e.h("button",{key:"69210c5b101a24563babdbe6b3361d091afc2cc0",onClick:()=>this.next()},">"))))}loadTransactions(){return c(this,null,function*(){this.showLoader=!0;try{const t=`${this.endpoint}/v1/player/${this.userId}/transactions/banking?${this.getParams()}`,a=yield fetch(t,{headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!a.ok){const n=yield a.text();throw new Error(n)}const i=yield a.json();this.pagination=i.pagination,this.transactions=i.transactions}catch(t){console.error(t)}finally{this.showLoader=!1}})}getParams(){var t,a;const i=new Date,n=(this.page*this.pageSize).toString(),r=(t=this.from)!==null&&t!==void 0?t:new Date(i.getFullYear(),i.getMonth(),1).toISOString(),l=(a=this.to)!==null&&a!==void 0?a:new Date(i.getFullYear(),i.getMonth()+1,0).toISOString();return`offset=${n}&endDate=${l}&startDate=${r}&type=${this.type}&limit=${this.pageSize}`}static get assetsDirs(){return["../assets"]}get el(){return e.getElement(this)}static get watchers(){return{page:["watchMultiple"],type:["watchMultiple"],session:["watchMultiple"],userId:["watchMultiple"],pageSize:["watchMultiple"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],showMobileFilter:["getComponentHeight"]}}};y.style=D;exports.user_transaction_history=y;
|