@everymatrix/player-limit-notification 0.0.4 → 0.0.5
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/{PlayerAccountGamingLimitsPage2Gm16Nd-B16fR8Dm.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-BumzfqVS.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DWXdAD8O.js → PlayerAccountGamingLimitsPage2Gm16Nd-Mv0xJ0X5.js} +102 -102
- package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DC2gUFiv.js → PlayerAccountGamingLimitsPage2Gm16Nd-x3OpLdZS.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BLtkiQWs.js → PlayerAccountGamingLimitsWrapper2Nd-BnhKXTEu.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-Cjt4-e9u.cjs → PlayerAccountGamingLimitsWrapper2Nd-DvAebAMB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2Nd-BWKddnsR.js → PlayerAccountGamingLimitsWrapper2Nd-r1io1s8a.js} +1 -1
- package/components/{PlayerLimitNotification-C15mAqR8.cjs → PlayerLimitNotification-Bsr5fxp5.cjs} +1 -1
- package/components/{PlayerLimitNotification-CAFdn1Qr.js → PlayerLimitNotification-CE-sdiDW.js} +1 -1
- package/components/{PlayerLimitNotification-DVXy2_kZ.js → PlayerLimitNotification-DMElKJoy.js} +1 -1
- package/es2015/player-limit-notification.cjs +1 -1
- package/es2015/player-limit-notification.js +1 -1
- package/esnext/player-limit-notification.js +1 -1
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z`),e.attr(n,"d",`M35.707,16.293c-0.391-0.391-1.023-0.391-1.414,0L26,24.586l-8.293-8.293c-0.391-0.391-1.023-0.391-1.414,0
|
|
33
33
|
s-0.391,1.023,0,1.414L24.586,26l-8.293,8.293c-0.391,0.391-0.391,1.023,0,1.414C16.488,35.902,16.744,36,17,36
|
|
34
34
|
s0.512-0.098,0.707-0.293L26,27.414l8.293,8.293C34.488,35.902,34.744,36,35,36s0.512-0.098,0.707-0.293
|
|
35
|
-
c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z`),e.attr(t,"version","1.1"),e.attr(t,"id","Capa_1"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.attr(t,"x","0px"),e.attr(t,"y","0px"),e.attr(t,"viewBox","0 0 52 52"),e.set_style(t,"enable-background","new 0 0 52 52"),e.attr(t,"xml:space","preserve")},m(N,E){e.insert(N,t,E),e.append(t,i),e.append(i,o),e.append(i,n),e.append(t,l),e.append(t,r),e.append(t,c),e.append(t,g),e.append(t,u),e.append(t,m),e.append(t,L),e.append(t,_),e.append(t,v),e.append(t,k),e.append(t,j),e.append(t,Y),e.append(t,X),e.append(t,U),e.append(t,R)},d(N){N&&e.detach(t)}}}function ia(a){let t,i=a[33]("popupSuccess")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("popupSuccess")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function aa(a){let t,i=a[33]("docsRequired")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("docsRequired")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function oa(a){let t,i=a[33]("popupError")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("popupError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function na(a){let t,i=a[33]("okButton")+"",o,n,l;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","ConfirmButton "+(a[34]?"":"Mobile"))},m(r,c){e.insert(r,t,c),e.append(t,o),n||(l=e.listen(t,"click",a[48]),n=!0)},p(r,c){c[1]&4&&i!==(i=r[33]("okButton")+"")&&e.set_data(o,i)},d(r){r&&e.detach(t),n=!1,l()}}}function sa(a){let t,i=a[33]("uploadDocumentsButton")+"",o,n,l=a[33]("closeButton")+"",r,c,g;return{c(){t=e.element("button"),o=e.space(),n=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(n,"class","CloseButton")},m(u,m){e.insert(u,t,m),t.innerHTML=i,e.insert(u,o,m),e.insert(u,n,m),e.append(n,r),c||(g=[e.listen(t,"click",a[49]),e.listen(n,"click",a[48])],c=!0)},p(u,m){m[1]&4&&i!==(i=u[33]("uploadDocumentsButton")+"")&&(t.innerHTML=i),m[1]&4&&l!==(l=u[33]("closeButton")+"")&&e.set_data(r,l)},d(u){u&&(e.detach(t),e.detach(o),e.detach(n)),c=!1,e.run_all(g)}}}function ra(a){let t,i=a[33]("noFileUploaded")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("noFileUploaded")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function la(a){let t,i=e.ensure_array_like(Array.from(a[19])),o=[];for(let n=0;n<i.length;n+=1)o[n]=Lt(ft(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&524288){i=e.ensure_array_like(Array.from(n[19]));let r;for(r=0;r<i.length;r+=1){const c=ft(n,i,r);o[r]?o[r].p(c,l):(o[r]=Lt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function Lt(a){let t,i=a[164].name+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&524288&&i!==(i=n[164].name+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ht(a){let t,i=a[33]("filesUploadError")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","filesError")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("filesUploadError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function pa(a){let t,i,o,n,l,r,c=a[33]("setLimit")+"",g,u,m,L,_,v,k,j=a[22]?`${a[33]("amount")}`:`${a[33](`new${a[11]}Limit`)}`,Y,X,U,R,N,E,T,K,W;const M=a[70].LimitsList,x=e.create_slot(M,a,a[69],ut),P=x||xa(a);let B=e.ensure_array_like(a[8]),h=[];for(let b=0;b<B.length;b+=1)h[b]=At(pt(a,B,b));let A=a[3]==="true"&&Dt(a),J=a[21]&&Ct(a),Z=a[22]&&jt(a),z=a[30]&&!a[31]&&Mt(a);const H=a[70].LimitSubmitButton,$=e.create_slot(H,a,a[69],st),G=$||za(a);return{c(){t=e.element("div"),i=e.element("div"),P&&P.c(),o=e.space(),n=e.element("form");for(let b=0;b<h.length;b+=1)h[b].c();l=e.space(),r=e.element("p"),g=e.text(c),u=e.space(),A&&A.c(),m=e.space(),J&&J.c(),L=e.space(),Z&&Z.c(),_=e.space(),v=e.element("label"),k=e.element("span"),Y=e.text(j),X=e.space(),U=e.element("input"),R=e.space(),z&&z.c(),N=e.space(),G&&G.c(),e.attr(r,"class","LimitTitle "+(a[34]?"":"Mobile")),e.attr(k,"class","LimitInputText"),e.attr(U,"type","number"),e.attr(U,"pattern","[0-9]*"),U.disabled=a[31],e.attr(v,"class","LimitAmountInputWrapper "+(a[34]?"":"Mobile")),e.attr(n,"class","LimitsInteractionArea "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+a[5]))},m(b,C){e.insert(b,t,C),e.append(t,i),P&&P.m(i,null),e.append(i,o),e.append(i,n);for(let S=0;S<h.length;S+=1)h[S]&&h[S].m(n,null);e.append(n,l),e.append(n,r),e.append(r,g),e.append(n,u),A&&A.m(n,null),e.append(n,m),J&&J.m(n,null),e.append(n,L),Z&&Z.m(n,null),e.append(n,_),e.append(n,v),e.append(v,k),e.append(k,Y),e.append(v,X),e.append(v,U),e.set_input_value(U,a[17]),e.append(v,R),z&&z.m(v,null),e.append(n,N),G&&G.m(n,null),T=!0,K||(W=[e.listen(U,"input",a[80]),e.listen(U,"input",a[39]),e.listen(U,"wheel",a[40]),e.listen(n,"submit",a[41])],K=!0)},p(b,C){if(x?x.p&&(!T||C[2]&128)&&e.update_slot_base(x,M,b,b[69],T?e.get_slot_changes(M,b[69],C,Ki):e.get_all_dirty_from_scope(b[69]),ut):P&&P.p&&(!T||C[0]&1048982|C[1]&4)&&P.p(b,T?C:[-1,-1,-1,-1,-1,-1]),C[0]&256|C[1]&12){B=e.ensure_array_like(b[8]);let S;for(S=0;S<B.length;S+=1){const O=pt(b,B,S);h[S]?h[S].p(O,C):(h[S]=At(O),h[S].c(),h[S].m(n,l))}for(;S<h.length;S+=1)h[S].d(1);h.length=B.length}(!T||C[1]&4)&&c!==(c=b[33]("setLimit")+"")&&e.set_data(g,c),b[3]==="true"?A?A.p(b,C):(A=Dt(b),A.c(),A.m(n,m)):A&&(A.d(1),A=null),b[21]?J?J.p(b,C):(J=Ct(b),J.c(),J.m(n,L)):J&&(J.d(1),J=null),b[22]?Z?Z.p(b,C):(Z=jt(b),Z.c(),Z.m(n,_)):Z&&(Z.d(1),Z=null),(!T||C[0]&4196352|C[1]&4)&&j!==(j=b[22]?`${b[33]("amount")}`:`${b[33](`new${b[11]}Limit`)}`)&&e.set_data(Y,j),(!T||C[1]&1)&&(U.disabled=b[31]),C[0]&131072&&e.to_number(U.value)!==b[17]&&e.set_input_value(U,b[17]),b[30]&&!b[31]?z?z.p(b,C):(z=Mt(b),z.c(),z.m(v,null)):z&&(z.d(1),z=null),$?$.p&&(!T||C[2]&128)&&e.update_slot_base($,H,b,b[69],T?e.get_slot_changes(H,b[69],C,Gi):e.get_all_dirty_from_scope(b[69]),st):G&&G.p&&(!T||C[0]&1073741824|C[1]&4)&&G.p(b,T?C:[-1,-1,-1,-1,-1,-1]),(!T||C[0]&32&&E!==(E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+b[5])))&&e.attr(t,"class",E)},i(b){T||(e.transition_in(P,b),e.transition_in(G,b),T=!0)},o(b){e.transition_out(P,b),e.transition_out(G,b),T=!1},d(b){b&&e.detach(t),P&&P.d(b),e.destroy_each(h,b),A&&A.d(),J&&J.d(),Z&&Z.d(),z&&z.d(),G&&G.d(b),K=!1,e.run_all(W)}}}function da(a){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,o){e.insert(i,t,o)},p:e.noop,i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function ma(a){let t;const i=a[70].LimitSkeleton,o=e.create_slot(i,a,a[69],ct),n=o||Pa(a);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),t=!0},p(l,r){o&&o.p&&(!t||r[2]&128)&&e.update_slot_base(o,i,l,l[69],t?e.get_slot_changes(i,l[69],r,Zi):e.get_all_dirty_from_scope(l[69]),ct)},i(l){t||(e.transition_in(n,l),t=!0)},o(l){e.transition_out(n,l),t=!1},d(l){n&&n.d(l)}}}function vt(a){let t,i=a[33]("activeLimitsInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[34]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("activeLimitsInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ua(a){let t,i,o,n=a[33]("noLimitText")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&4&&n!==(n=r[33]("noLimitText")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function ca(a){let t,i,o,n=a[33]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&4&&n!==(n=r[33]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function fa(a){let t,i=e.ensure_array_like(a[155].currentLimits),o=[];for(let n=0;n<i.length;n+=1)o[n]=zt(mt(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&1048982|l[1]&94412){i=e.ensure_array_like(n[155].currentLimits);let r;for(r=0;r<i.length;r+=1){const c=mt(n,i,r);o[r]?o[r].p(c,l):(o[r]=zt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function ga(a){let t,i,o,n=a[33]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&4&&n!==(n=r[33]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function La(a){let t,i=`${a[47](a[161])}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256&&i!==(i=`${n[47](n[161])}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ha(a){let t,i=`${a[47](a[161],!0)}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256&&i!==(i=`${n[47](n[161],!0)}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function yt(a){let t,i,o=`${a[47](a[161],!1,!0)}`,n,l,r=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)} ${a[33]("updateAfterDocApproval")}`,c;return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),c=e.text(r),e.attr(t,"class","PendingLimit")},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,c)},p(g,u){u[0]&256&&o!==(o=`${g[47](g[161],!1,!0)}`)&&e.set_data(n,o),u[0]&256|u[1]&4&&r!==(r=`${g[161].period!=="None"||g[161].value!=="cumulativeSession"?" ":g[33]("per")} ${g[33](`${g[161].period}`)} ${g[33]("updateAfterDocApproval")}`)&&e.set_data(c,r)},d(g){g&&e.detach(t)}}}function bt(a){let t,i=a[33]("companyLimitsInfoText")+"",o,n,l,r=a[161].currency+"",c,g=a[38](a[161].limitBalances[0])+"",u;return{c(){t=e.element("div"),o=e.text(i),n=e.space(),l=e.element("span"),c=e.text(r),u=e.text(g),e.attr(t,"class","CompanyLimitsInfoText")},m(m,L){e.insert(m,t,L),e.append(t,o),e.append(t,n),e.append(t,l),e.append(l,c),e.append(l,u)},p(m,L){L[1]&4&&i!==(i=m[33]("companyLimitsInfoText")+"")&&e.set_data(o,i),L[0]&256&&r!==(r=m[161].currency+"")&&e.set_data(c,r),L[0]&256&&g!==(g=m[38](m[161].limitBalances[0])+"")&&e.set_data(u,g)},d(m){m&&e.detach(t)}}}function va(a){let t,i,o=`${a[47](a[161],!0)}`,n,l;function r(u,m){return u[161].isCoolOffCompleted?_a:wa}let c=r(a),g=c(a);return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),g.c(),e.attr(t,"class","PendingLimit")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(i,n),e.append(t,l),g.m(t,null)},p(u,m){m[0]&256&&o!==(o=`${u[47](u[161],!0)}`)&&e.set_data(n,o),c===(c=r(u))&&g?g.p(u,m):(g.d(1),g=c(u),g&&(g.c(),g.m(t,null)))},d(u){u&&e.detach(t),g.d()}}}function ya(a){let t,i=`${a[33]("removedLimitText")} ${a[161].expiryDate}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256|l[1]&4&&i!==(i=`${n[33]("removedLimitText")} ${n[161].expiryDate}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ba(a){let t,i=`${a[33]("removeAfterConfirm")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=`${n[33]("removeAfterConfirm")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ka(a){let t,i=`${a[33]("acknowledgedLimit")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=`${n[33]("acknowledgedLimit")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function wa(a){let t=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)} ${a[33]("updateText")} ${a[161].expiryDate}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&256|n[1]&4&&t!==(t=`${o[161].period!=="None"||o[161].value!=="cumulativeSession"?" ":o[33]("per")} ${o[33](`${o[161].period}`)} ${o[33]("updateText")} ${o[161].expiryDate}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function _a(a){let t=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)} ${a[33]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&256|n[1]&4&&t!==(t=`${o[161].period!=="None"||o[161].value!=="cumulativeSession"?" ":o[33]("per")} ${o[33](`${o[161].period}`)} ${o[33]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function kt(a){let t,i,o=a[20][a[161].scheduleId].timer+"",n,l,r,c;return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class",l="ReloadLimitButton "+(a[34]?"":"Mobile")+" "+(a[20][a[161].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(a[34]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),r||(c=e.listen(i,"click",a[72]),r=!0)},p(g,u){u[0]&1048832&&o!==(o=g[20][g[161].scheduleId].timer+"")&&e.set_data(n,o),u[0]&1048832&&l!==(l="ReloadLimitButton "+(g[34]?"":"Mobile")+" "+(g[20][g[161].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",l)},d(g){g&&e.detach(t),r=!1,c()}}}function wt(a){let t,i,o=a[33]("removeLimit")+"",n,l,r;function c(){return a[73](a[161])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class","RemoveLimitButton "+(a[34]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[34]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),l||(r=e.listen(i,"click",c),l=!0)},p(g,u){a=g,u[1]&4&&o!==(o=a[33]("removeLimit")+"")&&e.set_data(n,o)},d(g){g&&e.detach(t),l=!1,r()}}}function _t(a){let t,i,o=a[33]("confirmUpdateLimit")+"",n,l,r,c=a[33]("cancelUpdateLimit")+"",g,u,m;function L(){return a[74](a[161])}function _(){return a[75](a[161])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),l=e.space(),r=e.element("button"),g=e.text(c),e.attr(i,"class","ConfirmLimitButton "+(a[34]?"":"Mobile")),e.attr(r,"class","CancelLimitButton "+(a[34]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[34]?"":"Mobile"))},m(v,k){e.insert(v,t,k),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r),e.append(r,g),u||(m=[e.listen(i,"click",L),e.listen(r,"click",_)],u=!0)},p(v,k){a=v,k[1]&4&&o!==(o=a[33]("confirmUpdateLimit")+"")&&e.set_data(n,o),k[1]&4&&c!==(c=a[33]("cancelUpdateLimit")+"")&&e.set_data(g,c)},d(v){v&&e.detach(t),u=!1,e.run_all(m)}}}function xt(a){let t,i=a[157],o=a[163];const n=()=>a[76](t,i,o),l=()=>a[76](null,i,o);return{c(){t=e.element("div"),t.innerHTML="",e.attr(t,"class","ProgressBarContainer")},m(r,c){e.insert(r,t,c),n()},p(r,c){a=r,(i!==a[157]||o!==a[163])&&(l(),i=a[157],o=a[163],n())},d(r){r&&e.detach(t),l()}}}function zt(a){let t,i,o,n,l,r=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)}`,c,g,u,m,L,_,v=!a[161].isModified&&a[4].indexOf(a[155].value)>-1&&!a[161].reviewPending.id,k,j,Y;function X(h,A){return h[161].acknowledgedLimit?ha:La}let U=X(a),R=U(a),N=a[161].reviewPending&&a[161].reviewPending.id&&yt(a),E=a[1]==="true"&&a[161].limitType==="deposit"&&a[161].limitBalances&&a[161].limitBalances.length>0&&bt(a);function T(h,A){if(h[161].acknowledgedLimit)return ka;if(h[161].isModified&&h[161].updateAmount==0&&h[161].isCoolOffCompleted)return ba;if(h[161].isModified&&h[161].updateAmount==0&&!h[161].isCoolOffCompleted)return ya;if(h[161].isModified)return va}let K=T(a),W=K&&K(a),M=a[161].acknowledgedLimit&&!a[161].reviewPending.id&&kt(a),x=v&&wt(a),P=a[161].isCoolOffCompleted&!a[161].acknowledgedLimit&&!a[161].reviewPending.id&&_t(a),B=a[2]==="true"&&a[7][a[157]]&&a[161].limitType==="netdeposit"&&xt(a);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),n=e.element("div"),R.c(),l=e.space(),c=e.text(r),g=e.space(),N&&N.c(),u=e.space(),E&&E.c(),m=e.space(),W&&W.c(),L=e.space(),M&&M.c(),_=e.space(),x&&x.c(),k=e.space(),P&&P.c(),j=e.space(),B&&B.c(),Y=e.space(),e.attr(n,"class","CurrentLimit"),e.attr(o,"class","CurrentLimitContainer"),e.attr(i,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(t,"class","LimitDetails")},m(h,A){e.insert(h,t,A),e.append(t,i),e.append(i,o),e.append(o,n),R.m(n,null),e.append(n,l),e.append(n,c),e.append(o,g),N&&N.m(o,null),e.append(o,u),E&&E.m(o,null),e.append(o,m),W&&W.m(o,null),e.append(i,L),M&&M.m(i,null),e.append(i,_),x&&x.m(i,null),e.append(i,k),P&&P.m(i,null),e.append(i,j),B&&B.m(i,null),e.append(t,Y)},p(h,A){U===(U=X(h))&&R?R.p(h,A):(R.d(1),R=U(h),R&&(R.c(),R.m(n,l))),A[0]&256|A[1]&4&&r!==(r=`${h[161].period!=="None"||h[161].value!=="cumulativeSession"?" ":h[33]("per")} ${h[33](`${h[161].period}`)}`)&&e.set_data(c,r),h[161].reviewPending&&h[161].reviewPending.id?N?N.p(h,A):(N=yt(h),N.c(),N.m(o,u)):N&&(N.d(1),N=null),h[1]==="true"&&h[161].limitType==="deposit"&&h[161].limitBalances&&h[161].limitBalances.length>0?E?E.p(h,A):(E=bt(h),E.c(),E.m(o,m)):E&&(E.d(1),E=null),K===(K=T(h))&&W?W.p(h,A):(W&&W.d(1),W=K&&K(h),W&&(W.c(),W.m(o,null))),h[161].acknowledgedLimit&&!h[161].reviewPending.id?M?M.p(h,A):(M=kt(h),M.c(),M.m(i,_)):M&&(M.d(1),M=null),A[0]&272&&(v=!h[161].isModified&&h[4].indexOf(h[155].value)>-1&&!h[161].reviewPending.id),v?x?x.p(h,A):(x=wt(h),x.c(),x.m(i,k)):x&&(x.d(1),x=null),h[161].isCoolOffCompleted&!h[161].acknowledgedLimit&&!h[161].reviewPending.id?P?P.p(h,A):(P=_t(h),P.c(),P.m(i,j)):P&&(P.d(1),P=null),h[2]==="true"&&h[7][h[157]]&&h[161].limitType==="netdeposit"?B?B.p(h,A):(B=xt(h),B.c(),B.m(i,null)):B&&(B.d(1),B=null)},d(h){h&&e.detach(t),R.d(),N&&N.d(),E&&E.d(),W&&W.d(),M&&M.d(),x&&x.d(),P&&P.d(),B&&B.d()}}}function St(a){let t,i=a[46](a[155])+"",o,n,l=a[155].value==="netdeposit"&&a[33]("activeLimitsInfoText")!=="activeLimitsInfoText"&&a[33]("activeLimitsInfoText").trim().length,r,c,g,u,m=l&&vt(a);function L(k,j){var Y;return k[155].value==="lugas"?ga:((Y=k[155].currentLimits)==null?void 0:Y.length)>0?fa:k[155].value==="lugas"?ca:ua}let _=L(a),v=_(a);return{c(){t=e.element("p"),o=e.text(i),n=e.space(),m&&m.c(),r=e.space(),c=e.element("div"),v.c(),g=e.space(),e.attr(t,"class","LimitTitle "+(a[34]?"":"Mobile")),e.attr(c,"class",u="LimitWrapper "+a[155].value+" "+(a[2]==="true"&&a[155].value==="netdeposit"?"ActiveProgressBar":"")+" "+(a[34]?"":"Mobile"))},m(k,j){e.insert(k,t,j),e.append(t,o),e.insert(k,n,j),m&&m.m(k,j),e.insert(k,r,j),e.insert(k,c,j),v.m(c,null),e.append(c,g)},p(k,j){j[0]&256&&i!==(i=k[46](k[155])+"")&&e.set_data(o,i),j[0]&256|j[1]&4&&(l=k[155].value==="netdeposit"&&k[33]("activeLimitsInfoText")!=="activeLimitsInfoText"&&k[33]("activeLimitsInfoText").trim().length),l?m?m.p(k,j):(m=vt(k),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),_===(_=L(k))&&v?v.p(k,j):(v.d(1),v=_(k),v&&(v.c(),v.m(c,g))),j[0]&260&&u!==(u="LimitWrapper "+k[155].value+" "+(k[2]==="true"&&k[155].value==="netdeposit"?"ActiveProgressBar":"")+" "+(k[34]?"":"Mobile"))&&e.attr(c,"class",u)},d(k){k&&(e.detach(t),e.detach(n),e.detach(r),e.detach(c)),m&&m.d(k),v.d()}}}function xa(a){let t,i=e.ensure_array_like(a[8]),o=[];for(let n=0;n<i.length;n+=1)o[n]=St(dt(a,i,n));return{c(){t=e.element("div");for(let n=0;n<o.length;n+=1)o[n].c();e.attr(t,"class","LimitsList")},m(n,l){e.insert(n,t,l);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(t,null)},p(n,l){if(l[0]&1048982|l[1]&127180){i=e.ensure_array_like(n[8]);let r;for(r=0;r<i.length;r+=1){const c=dt(n,i,r);o[r]?o[r].p(c,l):(o[r]=St(c),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function Pt(a){let t,i=a[33]("newLimitInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[34]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("newLimitInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function At(a){let t=a[155].value==="netdeposit"&&a[33]("newLimitInfoText")!=="newLimitInfoText"&&a[33]("newLimitInfoText").trim().length,i,o=t&&Pt(a);return{c(){o&&o.c(),i=e.empty()},m(n,l){o&&o.m(n,l),e.insert(n,i,l)},p(n,l){l[0]&256|l[1]&4&&(t=n[155].value==="netdeposit"&&n[33]("newLimitInfoText")!=="newLimitInfoText"&&n[33]("newLimitInfoText").trim().length),t?o?o.p(n,l):(o=Pt(n),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(n){n&&e.detach(i),o&&o.d(n)}}}function Dt(a){let t,i,o=a[33]("complianceText")+"",n;return{c(){t=e.element("div"),i=e.element("p"),n=e.text(o),e.attr(i,"class","LimitComplianceText"),e.attr(t,"class","LimitCompliance")},m(l,r){e.insert(l,t,r),e.append(t,i),e.append(i,n)},p(l,r){r[1]&4&&o!==(o=l[33]("complianceText")+"")&&e.set_data(n,o)},d(l){l&&e.detach(t)}}}function Ct(a){let t,i,o=a[33]("limitType")+"",n,l,r,c,g,u=e.ensure_array_like(a[8]),m=[];for(let L=0;L<u.length;L+=1)m[L]=Tt(lt(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),a[16]===void 0&&e.add_render_callback(()=>a[77].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper "+(a[34]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(r,null);e.select_option(r,a[16],!0),c||(g=[e.listen(r,"change",a[77]),e.listen(r,"change",a[78])],c=!0)},p(L,_){if(_[1]&4&&o!==(o=L[33]("limitType")+"")&&e.set_data(n,o),_[0]&256|_[1]&32768){u=e.ensure_array_like(L[8]);let v;for(v=0;v<u.length;v+=1){const k=lt(L,u,v);m[v]?m[v].p(k,_):(m[v]=Tt(k),m[v].c(),m[v].m(r,null))}for(;v<m.length;v+=1)m[v].d(1);m.length=u.length}_[0]&65536&&e.select_option(r,L[16])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,e.run_all(g)}}}function Tt(a){let t,i=a[46](a[155])+"",o;return{c(){t=e.element("option"),o=e.text(i),t.__value=a[157],e.set_input_value(t,t.__value)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256&&i!==(i=n[46](n[155])+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function jt(a){let t,i,o=a[33]("period")+"",n,l,r,c,g,u=e.ensure_array_like(a[9][a[10]].periods),m=[];for(let L=0;L<u.length;L+=1)m[L]=Et(rt(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","PeriodSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),r.disabled=a[31],a[11]===void 0&&e.add_render_callback(()=>a[79].call(r)),e.attr(t,"class","LimitPeriodDropdownWrapper "+(a[34]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(r,null);e.select_option(r,a[11],!0),c||(g=e.listen(r,"change",a[79]),c=!0)},p(L,_){if(_[1]&4&&o!==(o=L[33]("period")+"")&&e.set_data(n,o),_[0]&1536|_[1]&4){u=e.ensure_array_like(L[9][L[10]].periods);let v;for(v=0;v<u.length;v+=1){const k=rt(L,u,v);m[v]?m[v].p(k,_):(m[v]=Et(k),m[v].c(),m[v].m(r,null))}for(;v<m.length;v+=1)m[v].d(1);m.length=u.length}_[1]&1&&(r.disabled=L[31]),_[0]&3584&&e.select_option(r,L[11])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,g()}}}function Et(a){let t,i=a[33](a[152])+"",o,n;return{c(){t=e.element("option"),o=e.text(i),t.__value=n=a[152],e.set_input_value(t,t.__value),t.selected=!0},m(l,r){e.insert(l,t,r),e.append(t,o)},p(l,r){r[0]&1536|r[1]&4&&i!==(i=l[33](l[152])+"")&&e.set_data(o,i),r[0]&1536&&n!==(n=l[152])&&(t.__value=n,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function Mt(a){let t,i=a[17]===null?`${a[33]("invalidInputMessage")}`:a[17]<a[12]?`${a[33]("invalidInputMessageLimitMin",{values:{minValue:a[12],maxValue:a[13],currency:a[0]}})}`:`${a[33]("invalidInputMessageLimitMax",{values:{minValue:a[12],maxValue:a[13],currency:a[0]}})}`,o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","InvalidInput")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&143361|l[1]&4&&i!==(i=n[17]===null?`${n[33]("invalidInputMessage")}`:n[17]<n[12]?`${n[33]("invalidInputMessageLimitMin",{values:{minValue:n[12],maxValue:n[13],currency:n[0]}})}`:`${n[33]("invalidInputMessageLimitMax",{values:{minValue:n[12],maxValue:n[13],currency:n[0]}})}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function za(a){let t,i=a[33]("setLimit")+"",o;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","LimitSubmitButton "+(a[34]?"":"Mobile")),e.attr(t,"type","submit"),t.disabled=a[30]},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("setLimit")+"")&&e.set_data(o,i),l[0]&1073741824&&(t.disabled=n[30])},d(n){n&&e.detach(t)}}}function Sa(a){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="skeletonLimitAmount"><div class="skeletonAmountText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonSubText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div></div> <div class="skeletonLimitButton"><div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div> ',e.attr(t,"class","skeletonLimitContent")},m(i,o){e.insert(i,t,o)},p:e.noop,d(i){i&&e.detach(t)}}}function Pa(a){let t,i,o,n,l,r,c=e.ensure_array_like(Array(3)),g=[];for(let u=0;u<c.length;u+=1)g[u]=Sa(Yi(a,c,u));return{c(){t=e.element("div"),i=e.element("div"),i.innerHTML='<ui-skeleton width="auto" height="25px" structure="text" margin-right="auto"></ui-skeleton>',o=e.space(),n=e.element("div");for(let u=0;u<g.length;u+=1)g[u].c();l=e.space(),r=e.element("div"),r.innerHTML='<div class="skletonHeader"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonPeriod"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonInputAmount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeletonButton"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div>',e.attr(i,"class","skeletonLimitText"),e.attr(n,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(t,o),e.append(t,n);for(let L=0;L<g.length;L+=1)g[L]&&g[L].m(n,null);e.append(t,l),e.append(t,r)},p:e.noop,d(u){u&&e.detach(t),e.destroy_each(g,u)}}}function Aa(a){let t,i,o,n,l,r=a[26]&&!a[32]&>(a);const c=[ma,da,pa],g=[];function u(m,L){return m[23]?0:m[24]?1:m[23]?-1:2}return~(o=u(a))&&(n=g[o]=c[o](a)),{c(){t=e.element("div"),r&&r.c(),i=e.space(),n&&n.c()},m(m,L){e.insert(m,t,L),r&&r.m(t,null),e.append(t,i),~o&&g[o].m(t,null),a[81](t),l=!0},p(m,L){m[26]&&!m[32]?r?r.p(m,L):(r=gt(m),r.c(),r.m(t,i)):r&&(r.d(1),r=null);let _=o;o=u(m),o===_?~o&&g[o].p(m,L):(n&&(e.group_outros(),e.transition_out(g[_],1,1,()=>{g[_]=null}),e.check_outros()),~o?(n=g[o],n?n.p(m,L):(n=g[o]=c[o](m),n.c()),e.transition_in(n,1),n.m(t,null)):n=null)},i(m){l||(e.transition_in(n),l=!0)},o(m){e.transition_out(n),l=!1},d(m){m&&e.detach(t),r&&r.d(),~o&&g[o].d(),a[81](null)}}}function Da(a,t,i){let o;e.component_subscribe(a,e.$format,s=>i(33,o=s));let{$$slots:n={},$$scope:l}=t,{lang:r="en"}=t,{currency:c=""}=t,{limits:g=""}=t,{session:u=""}=t,{userid:m=""}=t,{endpoint:L=""}=t,{apiversion:_=""}=t,{companylimits:v="false"}=t,{customcurrencysymbols:k=""}=t,{netdepositprogress:j="false"}=t,{enablecompliancetext:Y=""}=t,{deletelimit:X=""}=t,{amountsconfig:U=""}=t,{periodsconfig:R=""}=t,{limittabindex:N=""}=t,{limitformat:E=""}=t,{allowedextenssion:T=".jpg,.jpeg,.png,.pdf,.webp,image/png"}=t,{filesizeallow:K="12934000"}=t,{clientstyling:W=""}=t,{clientstylingurl:M=""}=t,{translationurl:x=""}=t,{mbsource:P}=t,{timezone:B="GMT"}=t,h,A=[],J=window.navigator.userAgent,Z=!e.isMobile(J),z="",H="",$="",G="",b="",C="",S="",O="",ke="",he=0,Ne,F,we,I=[],pe={},de={},ve={},Ut={},ge,ye={EUR:"€",RON:" lei",USD:"$"},Pe={remove:{}},ie={},Be=!1,De=!1,Q=!0,se=!1,Ce=!1,be=!1,ae=!1,ue=!1,_e=!1,Le=!1,Re=!1,Ae=!1;const We={wager:"wagering",loss:"loss",deposit:"deposit",netdeposit:"netdeposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"},Oe={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"],internalServerError:["F0004","F0006"]},Nt=()=>{fetch(x).then(p=>p.json()).then(p=>{Object.keys(p).forEach(d=>{nt(d,p[d])})}).catch(p=>{console.log(p)})};Object.keys(fe).forEach(s=>{nt(s,fe[s])});const Te=s=>`dataLayer-${s}`,ee=(s,p)=>{typeof gtag=="function"&>ag({event:s,limit_category:fe[r][Te($.toLowerCase())]||$,limit_type:fe[r][Te(z.toLowerCase())]||z,limit_period:fe[r][Te(H.toLowerCase())]||H,limit_amount:F||p})},Bt=()=>{var f;const s=U.split(",").map(y=>y.split(":")),p=R.split(",").map(y=>y.split(":"));for(let[y,w]of s.entries())if(w[0]!==p[y][0])throw new Error(`Limit config mismatch: "${w[0]}" does not match "${p[y][0]}"`);const d=s.reduce((y,w,D)=>{const V=w[0].slice(w[0].indexOf("(")+1,w[0].indexOf(")")),re=w[0].slice(0,w[0].indexOf("(")),le=w[1],Se=p[D][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Ie={value:V,product:re,minMax:le,periods:Se,callValue:q[V].callValue,callValue16:q[V].callValue16,title:q[V].title};return y.push(Ie),y},[]);for(let y=0;y<d.length;y++)i(8,I[y].product=d[y].product,I),i(8,I[y].min=parseInt(d[y].minMax.split("-")[0],10),I),i(8,I[y].max=parseInt(d[y].minMax.split("-")[1],10),I),i(9,q[d[y].value].periods=d[y].periods,q);C=(f=I[0])==null?void 0:f.value,I.forEach(y=>{de[y.value]={min:y.min,max:y.max},Ut[y.value]=y.product}),de&&(de[C]?(i(12,G=de[C].min),i(13,b=de[C].max)):(i(12,G=1),i(13,b=9999999)))},Rt=()=>{const s=/\(([^)]+)\)/g;return[...U.matchAll(s)].flat().filter(d=>!d.includes("("))},Wt=()=>{Rt().forEach(p=>{q[p]?I.push(ce({},q[p])):console.error(`Unknown limit: ${p}`)}),Bt(),i(10,z=I[0].value),i(11,H=q[z].periods[0]),$=I[0].product,i(21,Be=I.length>1),i(22,De=q[z].periods.length>1)},Ve=()=>{i(10,z=I[he].value),i(11,H=q[z].periods[0]),i(22,De=q[z].periods.length>1)},Fe=()=>{$=I[he].product},te=s=>{if(s.status>=300)Ot(s);else return i(25,Ce=!1),s.status!==204?s.json():s},Ot=s=>{i(24,se=!0);let p;throw s.json().then(d=>{for(const f in Oe)if(d.error&&Oe[f].some(y=>d.error.includes(y))){p=f;break}console.error("errType",p),!p&&ze(d)}).finally(()=>{p&&ze(p),i(24,se=!1),i(23,Q=!1)}),new Error("An error occured during the fetch request")},Vt=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);let s=new URL(`${L}/v2/player/${m}/limits`),p={};z==="sessionLimit"?p={sessionLimit:F,sessionLimitUnit:"minute"}:z==="cumulativeSession"?p[q[z].callValue]=[{period:H,minutes:F}]:p[q[z].callValue]=[{period:q[z].periods[0]==="None"?null:H,amount:F,currency:c}];let d={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(p)};const f=yield fetch(s.href,d);yield te(f),ee("self_limitation_success"),yield oe()}),qe=()=>ne(this,null,function*(){var re;const s=I[he],p=(re=s==null?void 0:s.currentLimits)==null?void 0:re.find(le=>le.period===H),d=Ze();if(d&&d.reviewPending&&d.reviewPending.id)return window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitInDocReview")}},window.location.href);if(me(),i(23,Q=!0),d&&d.reviewRequired&&!S&&F>d.amount){i(29,_e=!0),i(27,ae=!0);return}const f=p?"v2":"v1",y=new URL(`${L}/${f}/player/${m}/limits/monetary/${p?p.id:""}`),w=p?"PUT":"POST",D=p?S?{amount:F,skipCoolOff:!1,payload:{DocumentId:S}}:{amount:F,skipCoolOff:!1}:{amount:F,currency:c,period:q[z].periods[0]==="None"?null:H,type:q[z].callValue16,products:[$!=null?$:"All"],walletTypes:["Deposit","NetDeposit"].includes(q[z].callValue16)?["All"]:["RealCash"]};let V={method:w,headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(D)};try{const le=yield fetch(y.href,V);yield te(le),ee("self_limitation_success"),yield oe()}finally{i(29,_e=!1),S=""}}),Ft=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:F,sessionLimitUnit:"minute"})};const y=yield fetch(s.href,f);yield te(y),ee("self_limitation_success"),yield oe()}),qt=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:H,minutes:F}]})};const y=yield fetch(s.href,f);yield te(y),ee("self_limitation_success"),yield oe()}),Ht=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);const s=new URL(`${L}/v2/player/${m}/limit/lugas`);let f={method:"POST",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:F,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};const y=yield fetch(s.href,f),w=yield te(y);i(18,we=w.popup),Ne=w.regulatorDepositLimitAmount,ee("self_limitation_success"),yield oe()}),Gt=()=>ne(this,null,function*(){ve={};try{if(_==="gm16")switch(z){case"lugas":yield Ht();break;case"sessionLimit":yield Ft();break;case"cumulativeSession":yield qt();break;default:yield qe();break}else if(_==="gmcore")yield Vt();else throw Error(`Invalid apiversion attribute: ${_}`);Ae&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:O}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href))}catch(s){Ae&&window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorUpdateLimit")}},window.location.href),console.error("limitUpdateError:",s)}ee("self_limitation_request")}),oe=()=>ne(this,null,function*(){switch(_){case"gmcore":yield Kt();break;case"gm16":yield Yt();break}}),Kt=()=>ne(this,null,function*(){i(23,Q=!0);let s=new URL(`${L}/v2/player/${m}/limits`),p={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const d=yield fetch(s.href,p);pe=te(d),be&&ze(),ii(pe),ai(pe),i(17,F=null)}catch(d){console.error("Error LimitsWidget: ",d),i(24,se=!0)}finally{i(23,Q=!1)}}),Yt=()=>ne(this,null,function*(){i(23,Q=!0);const s=I.some(w=>w.value==="sessionLimit"||w.value==="cumulativeLimit");let p=!s;const d=new URL(`${L}/v1/player/${m}/limits/monetary`),f=new URL(`${L}/v1/player/${m}/limits/session`),y={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const w=yield fetch(d.href,y),D=yield te(w);pe=D,oi(D),be&&ze(),i(17,F=null)}catch(w){console.error("Error LimitsWidget: ",w),i(24,se=!0)}finally{p&&i(23,Q=!1),p=!0}if(s)try{const w=yield fetch(f.href,y),D=yield te(w);ni(D),si(D),be&&(z==="sessionLimit"||z==="cumulativeSession")&&ze(),i(17,F=null)}catch(w){console.error("Error LimitsWidget: ",w),i(24,se=!0)}finally{p&&i(23,Q=!1),p=!0}}),Zt=()=>ne(this,null,function*(){var w;let s=new URL(`${L}/v1/player/${m}/limits/monetary/balance`);const p=[],d={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const D=yield fetch(s.href,d),V=yield te(D);p.push(V)}catch(D){console.error("Error LimitsWidget: ",D),i(24,se=!0)}const f=I.length?I.filter(D=>D.value==="netdeposit"):[];if(!f.length)return;const y=(w=p.find(D=>D.limitBalances))==null?void 0:w.limitBalances.filter(D=>D.limitType==="NetDeposit");if(f.length&&(y!=null&&y.length)){const D=f[0].currentLimits;f[0].currentLimits=D.map(V=>{const re=y.find(le=>le.limitDefinitionId===V.id);return ce(ce({},V),re?{spentBalance:re.spentBalance}:{})})}i(8,I=f)}),Jt=()=>ne(this,null,function*(){const s=new URL(`/api/pam/v1/limit-balances/most-restrictive?userId=${m}&playerLimitTypes=Deposit&Netdeposit&OperatorDeposit&OperatorNetDeposit&walletType=All`,L),p={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const d=yield fetch(s.href,p),f=yield te(d);Xt(f)}catch(d){console.error("Error LimitsWidget: ",d),i(24,se=!0)}}),Xt=s=>{const p=s.limitBalances;i(8,I=I.map(d=>d.value==="deposit"&&d.currentLimits?Ue(ce({},d),{currentLimits:d.currentLimits.map(f=>Ue(ce({},f),{limitBalances:p}))}):d))},Qt=s=>parseFloat((d=>{var w,D,V;if(!d)return 0;const f=(w=d==null?void 0:d.limitAmount)!=null?w:0,y=(V=(D=d==null?void 0:d.spentBalance)==null?void 0:D.amount)!=null?V:0;return y>=f?0:f-y})(s).toString()).toFixed(2),$t=()=>I.every((s,p)=>{var d,f;return((d=s.currentLimits)==null?void 0:d.length)===((f=A[p])==null?void 0:f.length)&&s.value==="netdeposit"&&A[p].every(y=>y!==null)}),ei=(s,p,d)=>{const f=s>0?Math.min(p/s*100,100):0,y=Math.round(f),w=document.createElement("div");w.className=`Progress-bar-container ${y===0?"ZeroProgress":""}`;const D=document.createElement("div");D.className="Progress-bar-fill",D.style.width=`${f}%`;const V=document.createElement("span");return V.className="Progress-bar-label",V.textContent=`${d}${p}`,w.appendChild(D),w.appendChild(V),w},ti=(s,p)=>{var re;const d=A[s][p];if(!d)return;const f=I[s].currentLimits[p],y=f.amount,w=((re=f.spentBalance)==null?void 0:re.amount)||0,D=f.currency;d.innerHTML="";const V=ei(y,w,D);d.appendChild(V)},je=()=>ne(this,null,function*(){var p,d;yield e.tick();let s=!0;for(let f=0;f<I.length;f++){for(let y=0;y<(((p=I[f].currentLimits)==null?void 0:p.length)||0);y++)if(!A[f]||!A[f][y]){s=!1;break}if(!s)break}if(!s){setTimeout(()=>je(),10);return}for(let f=0;f<I.length;f++)for(let y=0;y<(((d=I[f].currentLimits)==null?void 0:d.length)||0);y++)ti(f,y)}),ii=s=>{I.forEach(p=>{p.currentLimits=[];const d=Array.isArray(s[q[p.value].callValue])?s[q[p.value].callValue]:[s[q[p.value].callValue]];d.length===0||d[0]===void 0||(d.forEach((f,y)=>{var D;const w=s[q[p.value].callValue][y];p.currentLimits.push({}),p.currentLimits[y].limitType=p.value,p.currentLimits[y].amount=E?w.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.amount),p.currentLimits[y].currency=(D=ye[w.currency])!=null?D:w.currency,p.currentLimits[y].period=w.period,p.currentLimits[y].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount),p.currentLimits[y].isModified=w.isModified,p.currentLimits[y].expiryDate=`${new Date(w.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`}),p.currentLimits=xe(p.currentLimits))})},ai=s=>{const p=o("minutes");I.filter(d=>d.value==="sessionLimit"||d.value==="cumulativeSession").forEach(d=>{var f;d.currentLimits=[],(f=s[q[d.value].callValue])==null||f.forEach((y,w)=>{const D=s[q[d.value].callValue][w];d.currentLimits.push({limitType:d.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.minutes),currency:p,isModified:D.isModified,period:d.value==="cumulativeSession"?D.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.updateMinutes),expiryDate:`${new Date(D.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`})}),d.currentLimits=xe(d.currentLimits)})},oi=s=>{s!=null&&s.limits&&(I.filter(p=>p.value!=="sessionLimit"&&p.value!=="cumulativeSession").forEach(p=>{var d;p.currentLimits=[];for(const f of s.limits){if(f.type!==p.callValue16||!f.products.includes(p.product))continue;let y=0,w=f.schedules.length>0?f.schedules.find(D=>D.id):{};f.schedules.length>0&&(y=E?w.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount)),p.currentLimits.push({limitType:p.value,amount:E?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(d=ye[f.currency])!=null?d:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:y,isCoolOffCompleted:w?w.isCoolOffCompleted:!1,reviewRequired:f.reviewRequired?f.reviewRequired:!1,reviewPending:f.reviewPending?f.reviewPending:{},scheduleId:w?w.id:null,expiryDate:f.schedules.length>0?`${new Date(f.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:"",id:f.id}),p.currentLimits.forEach(D=>{D.acknowledgedLimit=Object.keys(ie).some(V=>D.scheduleId===V)})}p.currentLimits=xe(p.currentLimits)}),j==="true"&&Zt(),v==="true"&&Jt())},ni=s=>{s!=null&&s.sessionLimit&&I.filter(p=>p.value==="sessionLimit").forEach(p=>{p.currentLimits=[],p.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.minutes),currency:o("minutes"),isModified:s.sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.updateMinutes),expiryDate:s.sessionLimit.expiryDate}),p.currentLimits=xe(p.currentLimits)})},si=s=>{s!=null&&s.cumulativeSessionLimits&&I.filter(p=>p.value==="cumulativeSession").forEach(p=>{p.currentLimits=[];for(const d of s.cumulativeSessionLimits)p.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(d.minutes),currency:o("minutes"),isModified:d.isModified,period:d.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(d.updateMinutes),expiryDate:d.expiryDate});p.currentLimits=xe(p.currentLimits)})},xe=s=>{const p={Daily:0,Weekly:1,Monthly:2};return s.sort((d,f)=>p[d.period]-p[f.period]),s},He=s=>{window.postMessage({type:"InValidLimit",data:s},window.location.href)},Ge=()=>{if(F===null||Number.isNaN(F)){i(30,Le=!0),He(Le);return}const p=!Number.isInteger(F)?Math.round(F):F;i(17,F=p),i(30,Le=p<G||p>b),He(Le)},ri=s=>s.preventDefault(),Ke=s=>{s&&s.preventDefault(),Ge(),Le||Gt()},Ye=()=>{i(30,Le=!1),de!=null&&de[z]?(i(12,G=de[z].min),i(13,b=de[z].max)):(i(12,G=1),i(13,b=9999999))},li=()=>{if(pe){const s=pe[q[z].callValue].find(f=>f.period===H),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount);let d=o("popupImmediateUpdate").replace("{selectedLimit}",Ee(s)).replace("{updatedAmount}",p).replace("{currency}",ye[s.currency]||s.currency).replace("{selectedPeriod}",o(`${H}`));i(14,O=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:d)}i(27,ae=!0)},Ze=()=>{if(!pe)return;const s=pe.limits;let p=null;return Object.keys(ve).length>0?p=s.find(d=>d.id===ve.id):p=s==null?void 0:s.find(d=>d.type.toLowerCase()===We[z].toLowerCase()&&(d.period===H||d.period==="None")&&d.products[0]===$),(p==null?void 0:p.schedules.length)>0&&ie[p==null?void 0:p.schedules[0].id]&&(p.amount=p.schedules[0].updateAmount),p},pi=()=>{let s=Ze();if(!s){i(27,ae=!0);return}const p=et(s)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount),d=s.schedules.length>0?`${new Date(s.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:"";let f=o("popupImmediateUpdate").replace("{selectedLimit}",Ee(s)).replace("{updatedAmount}",p).replace("{selectedPeriod}",o(`${s.period}`));s.schedules.length>0&&ie[s.schedules[0].id]?i(14,O=f):i(14,O=s.schedules.length>0?`${o("popupPendingUpdate")} ${d}`:f),i(27,ae=!0)},di=()=>{we==1&&i(15,ke="PopupKyc"),we==2&&(i(14,O=`${o("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(Ne)} ${c} ${o("popup2_b")}`),i(15,ke="PopupKyc2")),we==3&&(i(14,O=o("popup3")),i(15,ke="PopupSuccess")),i(27,ae=!0)},mi=()=>{i(14,O=o("sessionLimitUpdated")),i(27,ae=!0)},ui=()=>{if(pe){const s=pe[q[z].callValue].find(f=>(f.period===H||H==="None")&&f.products[0]===$),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.minutes);let d=o("popupImmediateUpdate").replace("{selectedLimit}",o(`${z}`)).replace("{updatedAmount}",p).replace("{currency}",o("minutes")).replace("{selectedPeriod}",o(`${H}`));i(14,O=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:d)}i(27,ae=!0)},ci=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("Limit update is not permitted due to LimitUpdateControl")},fi=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("Limit remove is not permitted due to LimitUpdateControl")},gi=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("[NotFoundException] Limit does not exist")},Li=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("[Exception] Schedule does not exist")},hi=s=>{var p,d;return((p=s.details)==null?void 0:p.includes("Invalid Session"))||((d=s.error)==null?void 0:d.includes("Invalid Session"))},ze=s=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),se){if(i(25,Ce=!0),!s){i(27,ae=!0);return}ci(s)?i(14,O=o("popupUpdateLimitException")):fi(s)?i(14,O=o("popupRemoveLimitException")):gi(s)?i(14,O=o("notFoundException")):Li(s)?i(14,O=o("scheduleNotFoundException")):hi(s)?i(14,O=o("sessionExpiredException")):i(14,O=o("genericLimitsPopupError")),i(27,ae=!0);return}switch(_){case"gmcore":z==="sessionLimit"||z==="cumulativeSession"?ui():li();break;case"gm16":z==="lugas"?di():z==="sessionLimit"||z==="cumulativeSession"?mi():pi();break;default:throw new Error(`Invalid apiversion attribute: ${_}`)}},me=()=>{i(26,be=!0),window.postMessage({type:"DisableScroll"},window.location.href)},vi=s=>{i(10,z=s.limitType),i(11,H=s.period),me(),i(23,Q=!0);let p=new URL(`${L}/v2/player/${m}/limits/${We[s.limitType]}`);s.limitType!=="sessionLimit"&&p.searchParams.append("periods",s.period);let d={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,d).then(f=>te(f)).then(f=>{ee("self_limitation_cancel_success",s.amount),oe()}).catch(f=>{ee("self_limitation_cancel_failed",s.amount),console.log(f),i(24,se=!0)})},Je=s=>{switch(Pe.remove=s,_){case"gmcore":vi(s);break;case"gm16":ve=s,s.limitType==="sessionLimit"||s.limitType==="cumulativeSession"?yi(s):Xe(s);break}ee("self_limitation_cancel_request",s.amount)},yi=s=>{const p=new URL(`${L}/v1/player/${m}/limits/session/session`),d=new URL(`${L}/v1/player/${m}/limits/session/cumulativeSession?periods=${s.period}`);let f;switch(s.limitType){case"sessionLimit":f=p;break;case"cumulativeSession":f=d;break;default:throw Error(`Unknown limit.limitType: ${s.limitType}`)}me(),i(23,Q=!0);let y={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(f.href,y).then(w=>te(w)).then(w=>{ee("self_limitation_cancel_success",s.amount),oe()}).catch(w=>{ee("self_limitation_cancel_failed",s.amount),console.log(w),i(24,se=!0)})},Xe=s=>{if(me(),i(23,Q=!0),s&&s.reviewRequired&&!S){i(29,_e=!0),i(27,ae=!0);return}const p=new URL(`${L}/v1/player/${m}/limits/monetary/${s.id}`);let d={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};S&&p.searchParams.append("documentId",S),fetch(p.href,d).then(f=>te(f)).then(f=>{ee("self_limitation_cancel_success",s.amount),oe()}).catch(f=>{ee("self_limitation_cancel_failed",s.amount),console.log(f),i(24,se=!0)}).finally(()=>{Pe.remove={},i(29,_e=!1),S=""})},Qe=s=>{const p=new URL(`${L}/v1/player/${m}/limits/schedule/${s.scheduleId}`);me(),i(23,Q=!0);let d={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,d).then(f=>te(f)).then(f=>{ve=s,ee("self_limitation_cancel_success",s.updateAmount),oe()}).catch(f=>{ee("self_limitation_cancel_failed",s.updateAmount),console.log(f)})},$e=s=>{const p=new URL(`${L}/v1/player/${m}/limits/schedule/acknowledge/${s.scheduleId}`);me(),i(23,Q=!0);let d={method:"PATCH",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,d).then(f=>te(f)).then(f=>{ve=s,bi(s),ee("self_limitation_confirm_success",s.amount),oe()}).catch(f=>{ee("self_limitation_confirm_failed",s.amount),console.log(f)})},bi=s=>{let p=60;i(20,ie[s.scheduleId]={},ie),i(20,ie[s.scheduleId].timer=`${p} ${fe[r].seconds}`,ie),i(20,ie[s.scheduleId].timerStopped=!1,ie);let d=window.setInterval(()=>p===0?(window.clearInterval(d),i(20,ie[s.scheduleId].timerStopped=!0,ie),i(20,ie[s.scheduleId].timer=fe[r].reloadLimitsButton,ie)):i(20,ie[s.scheduleId].timer=`${--p} ${fe[r].seconds}`,ie),1e3)},Ee=s=>{let p;return s?p=s.value?o(s.value+s.product):o(s.type.toLowerCase()+s.products[0]):p=o(z),p},et=(s,p=!1,d=!1)=>{if(!E)return d?`${s.reviewPending.requestAmount}${s.currency}`:p?`${s.updateAmount}${s.currency}`:`${s.amount}${s.currency}`;let f=E;const y=f.match(/\{(\d+)decimals\}/),w=y?parseInt(y[1],10):2,D=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let V;d?V=s.reviewPending.requestAmount||0:V=p?s.updateAmount:s.amount,V=parseInt(V).toFixed(w);const[re,le]=E.includes(".")?[",","."]:[".",","];let[Se,Ie]=V.split(".");return Se=Se.replace(/\B(?=(\d{3})+(?!\d))/g,re),V=`${Se}${le}${Ie}`,f=f.replace("{currency}",ye[s.currency]||s.currency).replace("{amount}",V.split(le)[0]).replace(D,V.split(le)[1]),f},Me=()=>{i(27,ae=i(26,be=!1)),i(15,ke=""),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href),i(23,Q=!1)},ki=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Me()},wi=s=>{console.log(s);let p=0;return Object.keys(s).forEach(d=>{p+=s[d].size}),p<=Number(K)},_i=s=>{let p=!1;return Object.keys(s).forEach(d=>{const f=s[d].name.split(".").pop();return T.includes(f)?p=!0:p=!1}),p},tt=s=>!s&&!(s.length>0)?i(28,ue=!1):(i(19,ge=s),wi(ge)?_i(ge)?i(28,ue=!0):(console.error(o("fileExtenssionDeny")),i(28,ue=!1)):(console.error(o("fileSizeExceeded")),i(28,ue=!1))),xi=()=>{if(!ue)return;i(27,ae=!1);const s=new URL(`${L}/api/v1/mm/content/${m}/url-upload/`),p={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":u},body:JSON.stringify({})};fetch(s,p).then(d=>te(d)).then(d=>{zi(d)}).catch(d=>{console.error(o("errorUploadDocument"),d),i(19,ge=null),i(28,ue=!1)})},zi=s=>{const p=new FormData;p.append(s.requestId,ge[0]),fetch(s.url,{method:"POST",body:p}).then(d=>te(d)).then(d=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("uploadSuccess")}},window.location.href),S=d.Files[0].Reference,Pe.remove.id?Xe(Pe.remove):qe()}).catch(d=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorUploadDocument")}},window.location.href),console.error(o("errorUploadDocument"),d)}).finally(()=>{Me(),i(19,ge=null),i(28,ue=!1)})},Si=()=>{if(!k)return;let s={};k.split(",").forEach(p=>{let d=p.split(":");s[d[0].trim()]=d[1].trim()}),ye=ce(ce({},ye),s)},Pi=()=>{qi(r)},it=s=>{if(s.data)switch(s.data.type){case"LimitDisableState":{i(31,Re=s.data.data);break}case"SubmitLimitNotification":{i(32,Ae=!0),Ke();break}}};e.onMount(()=>(window.addEventListener("message",it),j==="true"&&I.length&&je(),()=>{window.removeEventListener("message",it)}));const Ai=s=>tt(s.target.files),Di=()=>oe(),Ci=s=>Je(s),Ti=s=>$e(s),ji=s=>Qe(s);function Ei(s,p,d){e.binding_callbacks[s?"unshift":"push"](()=>{A[p][d]=s,i(7,A),i(2,j),i(8,I)})}function Mi(){he=e.select_value(this),i(16,he)}const Ii=()=>{Fe(),Ve(),Ye()};function Ui(){H=e.select_value(this),i(11,H),i(9,q),i(10,z)}function Ni(){F=e.to_number(this.value),i(17,F)}function Bi(s){e.binding_callbacks[s?"unshift":"push"](()=>{h=s,i(6,h)})}return a.$$set=s=>{"lang"in s&&i(52,r=s.lang),"currency"in s&&i(0,c=s.currency),"limits"in s&&i(53,g=s.limits),"session"in s&&i(54,u=s.session),"userid"in s&&i(55,m=s.userid),"endpoint"in s&&i(56,L=s.endpoint),"apiversion"in s&&i(57,_=s.apiversion),"companylimits"in s&&i(1,v=s.companylimits),"customcurrencysymbols"in s&&i(58,k=s.customcurrencysymbols),"netdepositprogress"in s&&i(2,j=s.netdepositprogress),"enablecompliancetext"in s&&i(3,Y=s.enablecompliancetext),"deletelimit"in s&&i(4,X=s.deletelimit),"amountsconfig"in s&&i(59,U=s.amountsconfig),"periodsconfig"in s&&i(60,R=s.periodsconfig),"limittabindex"in s&&i(5,N=s.limittabindex),"limitformat"in s&&i(61,E=s.limitformat),"allowedextenssion"in s&&i(62,T=s.allowedextenssion),"filesizeallow"in s&&i(63,K=s.filesizeallow),"clientstyling"in s&&i(64,W=s.clientstyling),"clientstylingurl"in s&&i(65,M=s.clientstylingurl),"translationurl"in s&&i(66,x=s.translationurl),"mbsource"in s&&i(67,P=s.mbsource),"timezone"in s&&i(68,B=s.timezone),"$$scope"in s&&i(69,l=s.$$scope)},a.$$.update=()=>{if(a.$$.dirty[1]&134217728&&k&&Si(),a.$$.dirty[1]&805306368&&R&&U&&Wt(),a.$$.dirty[1]&2097152&&r&&Pi(),a.$$.dirty[1]&127926272&&m&&u&&L&&_&&r&&oe(),a.$$.dirty[0]&64|a.$$.dirty[2]&4&&W&&h&&e.setClientStyling(h,W),a.$$.dirty[0]&64|a.$$.dirty[2]&8&&M&&h&&e.setClientStylingURL(h,M),a.$$.dirty[0]&64|a.$$.dirty[2]&32&&P&&h&&e.setStreamStyling(h,`${P}.Style`),a.$$.dirty[2]&16&&x&&Nt(),a.$$.dirty[0]&388&&j==="true"&&I.length){const s=I.map(d=>{var f;return new Array(((f=d.currentLimits)==null?void 0:f.length)||0).fill(null)});(A.length!==s.length||A.some((d,f)=>d.length!==s[f].length))&&i(7,A=s)}a.$$.dirty[0]&388&&j==="true"&&A.length===I.length&&$t()&&je()},[c,v,j,Y,X,N,h,A,I,q,z,H,G,b,O,ke,he,F,we,ge,ie,Be,De,Q,se,Ce,be,ae,ue,_e,Le,Re,Ae,o,Z,Ve,Fe,oe,Qt,Ge,ri,Ke,Ye,Je,Qe,$e,Ee,et,Me,ki,tt,xi,r,g,u,m,L,_,k,U,R,E,T,K,W,M,x,P,B,l,n,Ai,Di,Ci,Ti,ji,Ei,Mi,Ii,Ui,Ni,Bi]}class It extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Da,Aa,e.safe_not_equal,{lang:52,currency:0,limits:53,session:54,userid:55,endpoint:56,apiversion:57,companylimits:1,customcurrencysymbols:58,netdepositprogress:2,enablecompliancetext:3,deletelimit:4,amountsconfig:59,periodsconfig:60,limittabindex:5,limitformat:61,allowedextenssion:62,filesizeallow:63,clientstyling:64,clientstylingurl:65,translationurl:66,mbsource:67,timezone:68},Hi,[-1,-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[52]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[0]}set currency(t){this.$$set({currency:t}),e.flush()}get limits(){return this.$$.ctx[53]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[54]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[55]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[56]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[57]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get companylimits(){return this.$$.ctx[1]}set companylimits(t){this.$$set({companylimits:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[58]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get netdepositprogress(){return this.$$.ctx[2]}set netdepositprogress(t){this.$$set({netdepositprogress:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[3]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[4]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[59]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[60]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get limittabindex(){return this.$$.ctx[5]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get limitformat(){return this.$$.ctx[61]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get allowedextenssion(){return this.$$.ctx[62]}set allowedextenssion(t){this.$$set({allowedextenssion:t}),e.flush()}get filesizeallow(){return this.$$.ctx[63]}set filesizeallow(t){this.$$set({filesizeallow:t}),e.flush()}get clientstyling(){return this.$$.ctx[64]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[65]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[66]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[67]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get timezone(){return this.$$.ctx[68]}set timezone(t){this.$$set({timezone:t}),e.flush()}}e.create_custom_element(It,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},companylimits:{},customcurrencysymbols:{},netdepositprogress:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},limittabindex:{},limitformat:{},allowedextenssion:{},filesizeallow:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},timezone:{}},["LimitSkeleton","LimitsList","LimitSubmitButton"],[],!0);exports.default=It;
|
|
35
|
+
c0.391-0.391,0.391-1.023,0-1.414L27.414,26l8.293-8.293C36.098,17.316,36.098,16.684,35.707,16.293z`),e.attr(t,"version","1.1"),e.attr(t,"id","Capa_1"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.attr(t,"x","0px"),e.attr(t,"y","0px"),e.attr(t,"viewBox","0 0 52 52"),e.set_style(t,"enable-background","new 0 0 52 52"),e.attr(t,"xml:space","preserve")},m(N,E){e.insert(N,t,E),e.append(t,i),e.append(i,o),e.append(i,n),e.append(t,l),e.append(t,r),e.append(t,c),e.append(t,g),e.append(t,u),e.append(t,m),e.append(t,L),e.append(t,_),e.append(t,v),e.append(t,k),e.append(t,j),e.append(t,Y),e.append(t,X),e.append(t,U),e.append(t,R)},d(N){N&&e.detach(t)}}}function ia(a){let t,i=a[33]("popupSuccess")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("popupSuccess")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function aa(a){let t,i=a[33]("docsRequired")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("docsRequired")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function oa(a){let t,i=a[33]("popupError")+"",o;return{c(){t=e.element("p"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("popupError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function na(a){let t,i=a[33]("okButton")+"",o,n,l;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","ConfirmButton "+(a[34]?"":"Mobile"))},m(r,c){e.insert(r,t,c),e.append(t,o),n||(l=e.listen(t,"click",a[48]),n=!0)},p(r,c){c[1]&4&&i!==(i=r[33]("okButton")+"")&&e.set_data(o,i)},d(r){r&&e.detach(t),n=!1,l()}}}function sa(a){let t,i=a[33]("uploadDocumentsButton")+"",o,n,l=a[33]("closeButton")+"",r,c,g;return{c(){t=e.element("button"),o=e.space(),n=e.element("button"),r=e.text(l),e.attr(t,"class","ConfirmButton"),e.attr(n,"class","CloseButton")},m(u,m){e.insert(u,t,m),t.innerHTML=i,e.insert(u,o,m),e.insert(u,n,m),e.append(n,r),c||(g=[e.listen(t,"click",a[49]),e.listen(n,"click",a[48])],c=!0)},p(u,m){m[1]&4&&i!==(i=u[33]("uploadDocumentsButton")+"")&&(t.innerHTML=i),m[1]&4&&l!==(l=u[33]("closeButton")+"")&&e.set_data(r,l)},d(u){u&&(e.detach(t),e.detach(o),e.detach(n)),c=!1,e.run_all(g)}}}function ra(a){let t,i=a[33]("noFileUploaded")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("noFileUploaded")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function la(a){let t,i=e.ensure_array_like(Array.from(a[19])),o=[];for(let n=0;n<i.length;n+=1)o[n]=Lt(ft(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&524288){i=e.ensure_array_like(Array.from(n[19]));let r;for(r=0;r<i.length;r+=1){const c=ft(n,i,r);o[r]?o[r].p(c,l):(o[r]=Lt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function Lt(a){let t,i=a[164].name+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","historyItem")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&524288&&i!==(i=n[164].name+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ht(a){let t,i=a[33]("filesUploadError")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","filesError")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("filesUploadError")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function pa(a){let t,i,o,n,l,r,c=a[33]("setLimit")+"",g,u,m,L,_,v,k,j=a[22]?`${a[33]("amount")}`:`${a[33](`new${a[11]}Limit`)}`,Y,X,U,R,N,E,T,K,W;const M=a[70].LimitsList,x=e.create_slot(M,a,a[69],ut),P=x||xa(a);let B=e.ensure_array_like(a[8]),h=[];for(let b=0;b<B.length;b+=1)h[b]=At(pt(a,B,b));let A=a[3]==="true"&&Dt(a),J=a[21]&&Ct(a),Z=a[22]&&jt(a),z=a[30]&&!a[31]&&Mt(a);const H=a[70].LimitSubmitButton,$=e.create_slot(H,a,a[69],st),G=$||za(a);return{c(){t=e.element("div"),i=e.element("div"),P&&P.c(),o=e.space(),n=e.element("form");for(let b=0;b<h.length;b+=1)h[b].c();l=e.space(),r=e.element("p"),g=e.text(c),u=e.space(),A&&A.c(),m=e.space(),J&&J.c(),L=e.space(),Z&&Z.c(),_=e.space(),v=e.element("label"),k=e.element("span"),Y=e.text(j),X=e.space(),U=e.element("input"),R=e.space(),z&&z.c(),N=e.space(),G&&G.c(),e.attr(r,"class","LimitTitle "+(a[34]?"":"Mobile")),e.attr(k,"class","LimitInputText"),e.attr(U,"type","number"),e.attr(U,"pattern","[0-9]*"),U.disabled=a[31],e.attr(v,"class","LimitAmountInputWrapper "+(a[34]?"":"Mobile")),e.attr(n,"class","LimitsInteractionArea "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitsPageContainer"),e.attr(t,"class",E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+a[5]))},m(b,C){e.insert(b,t,C),e.append(t,i),P&&P.m(i,null),e.append(i,o),e.append(i,n);for(let S=0;S<h.length;S+=1)h[S]&&h[S].m(n,null);e.append(n,l),e.append(n,r),e.append(r,g),e.append(n,u),A&&A.m(n,null),e.append(n,m),J&&J.m(n,null),e.append(n,L),Z&&Z.m(n,null),e.append(n,_),e.append(n,v),e.append(v,k),e.append(k,Y),e.append(v,X),e.append(v,U),e.set_input_value(U,a[17]),e.append(v,R),z&&z.m(v,null),e.append(n,N),G&&G.m(n,null),T=!0,K||(W=[e.listen(U,"input",a[80]),e.listen(U,"input",a[39]),e.listen(U,"wheel",a[40]),e.listen(n,"submit",a[41])],K=!0)},p(b,C){if(x?x.p&&(!T||C[2]&128)&&e.update_slot_base(x,M,b,b[69],T?e.get_slot_changes(M,b[69],C,Ki):e.get_all_dirty_from_scope(b[69]),ut):P&&P.p&&(!T||C[0]&1048982|C[1]&4)&&P.p(b,T?C:[-1,-1,-1,-1,-1,-1]),C[0]&256|C[1]&12){B=e.ensure_array_like(b[8]);let S;for(S=0;S<B.length;S+=1){const O=pt(b,B,S);h[S]?h[S].p(O,C):(h[S]=At(O),h[S].c(),h[S].m(n,l))}for(;S<h.length;S+=1)h[S].d(1);h.length=B.length}(!T||C[1]&4)&&c!==(c=b[33]("setLimit")+"")&&e.set_data(g,c),b[3]==="true"?A?A.p(b,C):(A=Dt(b),A.c(),A.m(n,m)):A&&(A.d(1),A=null),b[21]?J?J.p(b,C):(J=Ct(b),J.c(),J.m(n,L)):J&&(J.d(1),J=null),b[22]?Z?Z.p(b,C):(Z=jt(b),Z.c(),Z.m(n,_)):Z&&(Z.d(1),Z=null),(!T||C[0]&4196352|C[1]&4)&&j!==(j=b[22]?`${b[33]("amount")}`:`${b[33](`new${b[11]}Limit`)}`)&&e.set_data(Y,j),(!T||C[1]&1)&&(U.disabled=b[31]),C[0]&131072&&e.to_number(U.value)!==b[17]&&e.set_input_value(U,b[17]),b[30]&&!b[31]?z?z.p(b,C):(z=Mt(b),z.c(),z.m(v,null)):z&&(z.d(1),z=null),$?$.p&&(!T||C[2]&128)&&e.update_slot_base($,H,b,b[69],T?e.get_slot_changes(H,b[69],C,Gi):e.get_all_dirty_from_scope(b[69]),st):G&&G.p&&(!T||C[0]&1073741824|C[1]&4)&&G.p(b,T?C:[-1,-1,-1,-1,-1,-1]),(!T||C[0]&32&&E!==(E="player-account-gaming-limits-page-2-gm16 "+("LimitTab"+b[5])))&&e.attr(t,"class",E)},i(b){T||(e.transition_in(P,b),e.transition_in(G,b),T=!0)},o(b){e.transition_out(P,b),e.transition_out(G,b),T=!1},d(b){b&&e.detach(t),P&&P.d(b),e.destroy_each(h,b),A&&A.d(),J&&J.d(),Z&&Z.d(),z&&z.d(),G&&G.d(b),K=!1,e.run_all(W)}}}function da(a){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(i,o){e.insert(i,t,o)},p:e.noop,i:e.noop,o:e.noop,d(i){i&&e.detach(t)}}}function ma(a){let t;const i=a[70].LimitSkeleton,o=e.create_slot(i,a,a[69],ct),n=o||Pa(a);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),t=!0},p(l,r){o&&o.p&&(!t||r[2]&128)&&e.update_slot_base(o,i,l,l[69],t?e.get_slot_changes(i,l[69],r,Zi):e.get_all_dirty_from_scope(l[69]),ct)},i(l){t||(e.transition_in(n,l),t=!0)},o(l){e.transition_out(n,l),t=!1},d(l){n&&n.d(l)}}}function vt(a){let t,i=a[33]("activeLimitsInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[34]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("activeLimitsInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ua(a){let t,i,o,n=a[33]("noLimitText")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&4&&n!==(n=r[33]("noLimitText")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function ca(a){let t,i,o,n=a[33]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&4&&n!==(n=r[33]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function fa(a){let t,i=e.ensure_array_like(a[155].currentLimits),o=[];for(let n=0;n<i.length;n+=1)o[n]=zt(mt(a,i,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=e.empty()},m(n,l){for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(n,l);e.insert(n,t,l)},p(n,l){if(l[0]&1048982|l[1]&94412){i=e.ensure_array_like(n[155].currentLimits);let r;for(r=0;r<i.length;r+=1){const c=mt(n,i,r);o[r]?o[r].p(c,l):(o[r]=zt(c),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function ga(a){let t,i,o,n=a[33]("lugasPrivacy")+"",l;return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),l=e.text(n),e.attr(o,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(i,"class","LimitDetailsWrapper"),e.attr(t,"class","LimitDetails")},m(r,c){e.insert(r,t,c),e.append(t,i),e.append(i,o),e.append(o,l)},p(r,c){c[1]&4&&n!==(n=r[33]("lugasPrivacy")+"")&&e.set_data(l,n)},d(r){r&&e.detach(t)}}}function La(a){let t,i=`${a[47](a[161])}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256&&i!==(i=`${n[47](n[161])}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ha(a){let t,i=`${a[47](a[161],!0)}`,o;return{c(){t=e.element("span"),o=e.text(i)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256&&i!==(i=`${n[47](n[161],!0)}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function yt(a){let t,i,o=`${a[47](a[161],!1,!0)}`,n,l,r=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)} ${a[33]("updateAfterDocApproval")}`,c;return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),c=e.text(r),e.attr(t,"class","PendingLimit")},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,c)},p(g,u){u[0]&256&&o!==(o=`${g[47](g[161],!1,!0)}`)&&e.set_data(n,o),u[0]&256|u[1]&4&&r!==(r=`${g[161].period!=="None"||g[161].value!=="cumulativeSession"?" ":g[33]("per")} ${g[33](`${g[161].period}`)} ${g[33]("updateAfterDocApproval")}`)&&e.set_data(c,r)},d(g){g&&e.detach(t)}}}function bt(a){let t,i=a[33]("companyLimitsInfoText")+"",o,n,l,r=a[161].currency+"",c,g=a[38](a[161].limitBalances[0])+"",u;return{c(){t=e.element("div"),o=e.text(i),n=e.space(),l=e.element("span"),c=e.text(r),u=e.text(g),e.attr(t,"class","CompanyLimitsInfoText")},m(m,L){e.insert(m,t,L),e.append(t,o),e.append(t,n),e.append(t,l),e.append(l,c),e.append(l,u)},p(m,L){L[1]&4&&i!==(i=m[33]("companyLimitsInfoText")+"")&&e.set_data(o,i),L[0]&256&&r!==(r=m[161].currency+"")&&e.set_data(c,r),L[0]&256&&g!==(g=m[38](m[161].limitBalances[0])+"")&&e.set_data(u,g)},d(m){m&&e.detach(t)}}}function va(a){let t,i,o=`${a[47](a[161],!0)}`,n,l;function r(u,m){return u[161].isCoolOffCompleted?_a:wa}let c=r(a),g=c(a);return{c(){t=e.element("div"),i=e.element("span"),n=e.text(o),l=e.space(),g.c(),e.attr(t,"class","PendingLimit")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(i,n),e.append(t,l),g.m(t,null)},p(u,m){m[0]&256&&o!==(o=`${u[47](u[161],!0)}`)&&e.set_data(n,o),c===(c=r(u))&&g?g.p(u,m):(g.d(1),g=c(u),g&&(g.c(),g.m(t,null)))},d(u){u&&e.detach(t),g.d()}}}function ya(a){let t,i=`${a[33]("removedLimitText")} ${a[161].expiryDate}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256|l[1]&4&&i!==(i=`${n[33]("removedLimitText")} ${n[161].expiryDate}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ba(a){let t,i=`${a[33]("removeAfterConfirm")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=`${n[33]("removeAfterConfirm")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function ka(a){let t,i=`${a[33]("acknowledgedLimit")}`,o;return{c(){t=e.element("div"),o=e.text(i),e.attr(t,"class","PendingLimit")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=`${n[33]("acknowledgedLimit")}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function wa(a){let t=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)} ${a[33]("updateText")} ${a[161].expiryDate}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&256|n[1]&4&&t!==(t=`${o[161].period!=="None"||o[161].value!=="cumulativeSession"?" ":o[33]("per")} ${o[33](`${o[161].period}`)} ${o[33]("updateText")} ${o[161].expiryDate}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function _a(a){let t=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)} ${a[33]("updateAfterConfirm")}`,i;return{c(){i=e.text(t)},m(o,n){e.insert(o,i,n)},p(o,n){n[0]&256|n[1]&4&&t!==(t=`${o[161].period!=="None"||o[161].value!=="cumulativeSession"?" ":o[33]("per")} ${o[33](`${o[161].period}`)} ${o[33]("updateAfterConfirm")}`)&&e.set_data(i,t)},d(o){o&&e.detach(i)}}}function kt(a){let t,i,o=a[20][a[161].scheduleId].timer+"",n,l,r,c;return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class",l="ReloadLimitButton "+(a[34]?"":"Mobile")+" "+(a[20][a[161].scheduleId].timerStopped?"":"disabled")),e.attr(t,"class","ContainerLimitActions "+(a[34]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),r||(c=e.listen(i,"click",a[72]),r=!0)},p(g,u){u[0]&1048832&&o!==(o=g[20][g[161].scheduleId].timer+"")&&e.set_data(n,o),u[0]&1048832&&l!==(l="ReloadLimitButton "+(g[34]?"":"Mobile")+" "+(g[20][g[161].scheduleId].timerStopped?"":"disabled"))&&e.attr(i,"class",l)},d(g){g&&e.detach(t),r=!1,c()}}}function wt(a){let t,i,o=a[33]("removeLimit")+"",n,l,r;function c(){return a[73](a[161])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),e.attr(i,"class","RemoveLimitButton "+(a[34]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[34]?"":"Mobile"))},m(g,u){e.insert(g,t,u),e.append(t,i),e.append(i,n),l||(r=e.listen(i,"click",c),l=!0)},p(g,u){a=g,u[1]&4&&o!==(o=a[33]("removeLimit")+"")&&e.set_data(n,o)},d(g){g&&e.detach(t),l=!1,r()}}}function _t(a){let t,i,o=a[33]("confirmUpdateLimit")+"",n,l,r,c=a[33]("cancelUpdateLimit")+"",g,u,m;function L(){return a[74](a[161])}function _(){return a[75](a[161])}return{c(){t=e.element("div"),i=e.element("button"),n=e.text(o),l=e.space(),r=e.element("button"),g=e.text(c),e.attr(i,"class","ConfirmLimitButton "+(a[34]?"":"Mobile")),e.attr(r,"class","CancelLimitButton "+(a[34]?"":"Mobile")),e.attr(t,"class","ContainerLimitActions "+(a[34]?"":"Mobile"))},m(v,k){e.insert(v,t,k),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r),e.append(r,g),u||(m=[e.listen(i,"click",L),e.listen(r,"click",_)],u=!0)},p(v,k){a=v,k[1]&4&&o!==(o=a[33]("confirmUpdateLimit")+"")&&e.set_data(n,o),k[1]&4&&c!==(c=a[33]("cancelUpdateLimit")+"")&&e.set_data(g,c)},d(v){v&&e.detach(t),u=!1,e.run_all(m)}}}function xt(a){let t,i=a[157],o=a[163];const n=()=>a[76](t,i,o),l=()=>a[76](null,i,o);return{c(){t=e.element("div"),t.innerHTML="",e.attr(t,"class","ProgressBarContainer")},m(r,c){e.insert(r,t,c),n()},p(r,c){a=r,(i!==a[157]||o!==a[163])&&(l(),i=a[157],o=a[163],n())},d(r){r&&e.detach(t),l()}}}function zt(a){let t,i,o,n,l,r=`${a[161].period!=="None"||a[161].value!=="cumulativeSession"?" ":a[33]("per")} ${a[33](`${a[161].period}`)}`,c,g,u,m,L,_,v=!a[161].isModified&&a[4].indexOf(a[155].value)>-1&&!a[161].reviewPending.id,k,j,Y;function X(h,A){return h[161].acknowledgedLimit?ha:La}let U=X(a),R=U(a),N=a[161].reviewPending&&a[161].reviewPending.id&&yt(a),E=a[1]==="true"&&a[161].limitType==="deposit"&&a[161].limitBalances&&a[161].limitBalances.length>0&&bt(a);function T(h,A){if(h[161].acknowledgedLimit)return ka;if(h[161].isModified&&h[161].updateAmount==0&&h[161].isCoolOffCompleted)return ba;if(h[161].isModified&&h[161].updateAmount==0&&!h[161].isCoolOffCompleted)return ya;if(h[161].isModified)return va}let K=T(a),W=K&&K(a),M=a[161].acknowledgedLimit&&!a[161].reviewPending.id&&kt(a),x=v&&wt(a),P=a[161].isCoolOffCompleted&!a[161].acknowledgedLimit&&!a[161].reviewPending.id&&_t(a),B=a[2]==="true"&&a[7][a[157]]&&a[161].limitType==="netdeposit"&&xt(a);return{c(){t=e.element("div"),i=e.element("div"),o=e.element("div"),n=e.element("div"),R.c(),l=e.space(),c=e.text(r),g=e.space(),N&&N.c(),u=e.space(),E&&E.c(),m=e.space(),W&&W.c(),L=e.space(),M&&M.c(),_=e.space(),x&&x.c(),k=e.space(),P&&P.c(),j=e.space(),B&&B.c(),Y=e.space(),e.attr(n,"class","CurrentLimit"),e.attr(o,"class","CurrentLimitContainer"),e.attr(i,"class","LimitDetailsTextWrapper "+(a[34]?"":"Mobile")),e.attr(t,"class","LimitDetails")},m(h,A){e.insert(h,t,A),e.append(t,i),e.append(i,o),e.append(o,n),R.m(n,null),e.append(n,l),e.append(n,c),e.append(o,g),N&&N.m(o,null),e.append(o,u),E&&E.m(o,null),e.append(o,m),W&&W.m(o,null),e.append(i,L),M&&M.m(i,null),e.append(i,_),x&&x.m(i,null),e.append(i,k),P&&P.m(i,null),e.append(i,j),B&&B.m(i,null),e.append(t,Y)},p(h,A){U===(U=X(h))&&R?R.p(h,A):(R.d(1),R=U(h),R&&(R.c(),R.m(n,l))),A[0]&256|A[1]&4&&r!==(r=`${h[161].period!=="None"||h[161].value!=="cumulativeSession"?" ":h[33]("per")} ${h[33](`${h[161].period}`)}`)&&e.set_data(c,r),h[161].reviewPending&&h[161].reviewPending.id?N?N.p(h,A):(N=yt(h),N.c(),N.m(o,u)):N&&(N.d(1),N=null),h[1]==="true"&&h[161].limitType==="deposit"&&h[161].limitBalances&&h[161].limitBalances.length>0?E?E.p(h,A):(E=bt(h),E.c(),E.m(o,m)):E&&(E.d(1),E=null),K===(K=T(h))&&W?W.p(h,A):(W&&W.d(1),W=K&&K(h),W&&(W.c(),W.m(o,null))),h[161].acknowledgedLimit&&!h[161].reviewPending.id?M?M.p(h,A):(M=kt(h),M.c(),M.m(i,_)):M&&(M.d(1),M=null),A[0]&272&&(v=!h[161].isModified&&h[4].indexOf(h[155].value)>-1&&!h[161].reviewPending.id),v?x?x.p(h,A):(x=wt(h),x.c(),x.m(i,k)):x&&(x.d(1),x=null),h[161].isCoolOffCompleted&!h[161].acknowledgedLimit&&!h[161].reviewPending.id?P?P.p(h,A):(P=_t(h),P.c(),P.m(i,j)):P&&(P.d(1),P=null),h[2]==="true"&&h[7][h[157]]&&h[161].limitType==="netdeposit"?B?B.p(h,A):(B=xt(h),B.c(),B.m(i,null)):B&&(B.d(1),B=null)},d(h){h&&e.detach(t),R.d(),N&&N.d(),E&&E.d(),W&&W.d(),M&&M.d(),x&&x.d(),P&&P.d(),B&&B.d()}}}function St(a){let t,i=a[46](a[155])+"",o,n,l=a[155].value==="netdeposit"&&a[33]("activeLimitsInfoText")!=="activeLimitsInfoText"&&a[33]("activeLimitsInfoText").trim().length,r,c,g,u,m=l&&vt(a);function L(k,j){var Y;return k[155].value==="lugas"?ga:((Y=k[155].currentLimits)==null?void 0:Y.length)>0?fa:k[155].value==="lugas"?ca:ua}let _=L(a),v=_(a);return{c(){t=e.element("p"),o=e.text(i),n=e.space(),m&&m.c(),r=e.space(),c=e.element("div"),v.c(),g=e.space(),e.attr(t,"class","LimitTitle "+(a[34]?"":"Mobile")),e.attr(c,"class",u="LimitWrapper "+a[155].value+" "+(a[2]==="true"&&a[155].value==="netdeposit"?"ActiveProgressBar":"")+" "+(a[34]?"":"Mobile"))},m(k,j){e.insert(k,t,j),e.append(t,o),e.insert(k,n,j),m&&m.m(k,j),e.insert(k,r,j),e.insert(k,c,j),v.m(c,null),e.append(c,g)},p(k,j){j[0]&256&&i!==(i=k[46](k[155])+"")&&e.set_data(o,i),j[0]&256|j[1]&4&&(l=k[155].value==="netdeposit"&&k[33]("activeLimitsInfoText")!=="activeLimitsInfoText"&&k[33]("activeLimitsInfoText").trim().length),l?m?m.p(k,j):(m=vt(k),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),_===(_=L(k))&&v?v.p(k,j):(v.d(1),v=_(k),v&&(v.c(),v.m(c,g))),j[0]&260&&u!==(u="LimitWrapper "+k[155].value+" "+(k[2]==="true"&&k[155].value==="netdeposit"?"ActiveProgressBar":"")+" "+(k[34]?"":"Mobile"))&&e.attr(c,"class",u)},d(k){k&&(e.detach(t),e.detach(n),e.detach(r),e.detach(c)),m&&m.d(k),v.d()}}}function xa(a){let t,i=e.ensure_array_like(a[8]),o=[];for(let n=0;n<i.length;n+=1)o[n]=St(dt(a,i,n));return{c(){t=e.element("div");for(let n=0;n<o.length;n+=1)o[n].c();e.attr(t,"class","LimitsList")},m(n,l){e.insert(n,t,l);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(t,null)},p(n,l){if(l[0]&1048982|l[1]&127180){i=e.ensure_array_like(n[8]);let r;for(r=0;r<i.length;r+=1){const c=dt(n,i,r);o[r]?o[r].p(c,l):(o[r]=St(c),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=i.length}},d(n){n&&e.detach(t),e.destroy_each(o,n)}}}function Pt(a){let t,i=a[33]("newLimitInfoText")+"",o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","LimitsInfoText "+(a[34]?"":"Mobile"))},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("newLimitInfoText")+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function At(a){let t=a[155].value==="netdeposit"&&a[33]("newLimitInfoText")!=="newLimitInfoText"&&a[33]("newLimitInfoText").trim().length,i,o=t&&Pt(a);return{c(){o&&o.c(),i=e.empty()},m(n,l){o&&o.m(n,l),e.insert(n,i,l)},p(n,l){l[0]&256|l[1]&4&&(t=n[155].value==="netdeposit"&&n[33]("newLimitInfoText")!=="newLimitInfoText"&&n[33]("newLimitInfoText").trim().length),t?o?o.p(n,l):(o=Pt(n),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(n){n&&e.detach(i),o&&o.d(n)}}}function Dt(a){let t,i,o=a[33]("complianceText")+"",n;return{c(){t=e.element("div"),i=e.element("p"),n=e.text(o),e.attr(i,"class","LimitComplianceText"),e.attr(t,"class","LimitCompliance")},m(l,r){e.insert(l,t,r),e.append(t,i),e.append(i,n)},p(l,r){r[1]&4&&o!==(o=l[33]("complianceText")+"")&&e.set_data(n,o)},d(l){l&&e.detach(t)}}}function Ct(a){let t,i,o=a[33]("limitType")+"",n,l,r,c,g,u=e.ensure_array_like(a[8]),m=[];for(let L=0;L<u.length;L+=1)m[L]=Tt(lt(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","LimitSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),a[16]===void 0&&e.add_render_callback(()=>a[77].call(r)),e.attr(t,"class","LimitTypeDropdownWrapper "+(a[34]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(r,null);e.select_option(r,a[16],!0),c||(g=[e.listen(r,"change",a[77]),e.listen(r,"change",a[78])],c=!0)},p(L,_){if(_[1]&4&&o!==(o=L[33]("limitType")+"")&&e.set_data(n,o),_[0]&256|_[1]&32768){u=e.ensure_array_like(L[8]);let v;for(v=0;v<u.length;v+=1){const k=lt(L,u,v);m[v]?m[v].p(k,_):(m[v]=Tt(k),m[v].c(),m[v].m(r,null))}for(;v<m.length;v+=1)m[v].d(1);m.length=u.length}_[0]&65536&&e.select_option(r,L[16])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,e.run_all(g)}}}function Tt(a){let t,i=a[46](a[155])+"",o;return{c(){t=e.element("option"),o=e.text(i),t.__value=a[157],e.set_input_value(t,t.__value)},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&256&&i!==(i=n[46](n[155])+"")&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function jt(a){let t,i,o=a[33]("period")+"",n,l,r,c,g,u=e.ensure_array_like(a[9][a[10]].periods),m=[];for(let L=0;L<u.length;L+=1)m[L]=Et(rt(a,u,L));return{c(){t=e.element("label"),i=e.element("span"),n=e.text(o),l=e.space(),r=e.element("select");for(let L=0;L<m.length;L+=1)m[L].c();e.attr(i,"class","PeriodSelectText"),e.attr(r,"name",""),e.attr(r,"id",""),r.disabled=a[31],a[11]===void 0&&e.add_render_callback(()=>a[79].call(r)),e.attr(t,"class","LimitPeriodDropdownWrapper "+(a[34]?"":"Mobile"))},m(L,_){e.insert(L,t,_),e.append(t,i),e.append(i,n),e.append(t,l),e.append(t,r);for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(r,null);e.select_option(r,a[11],!0),c||(g=e.listen(r,"change",a[79]),c=!0)},p(L,_){if(_[1]&4&&o!==(o=L[33]("period")+"")&&e.set_data(n,o),_[0]&1536|_[1]&4){u=e.ensure_array_like(L[9][L[10]].periods);let v;for(v=0;v<u.length;v+=1){const k=rt(L,u,v);m[v]?m[v].p(k,_):(m[v]=Et(k),m[v].c(),m[v].m(r,null))}for(;v<m.length;v+=1)m[v].d(1);m.length=u.length}_[1]&1&&(r.disabled=L[31]),_[0]&3584&&e.select_option(r,L[11])},d(L){L&&e.detach(t),e.destroy_each(m,L),c=!1,g()}}}function Et(a){let t,i=a[33](a[152])+"",o,n;return{c(){t=e.element("option"),o=e.text(i),t.__value=n=a[152],e.set_input_value(t,t.__value),t.selected=!0},m(l,r){e.insert(l,t,r),e.append(t,o)},p(l,r){r[0]&1536|r[1]&4&&i!==(i=l[33](l[152])+"")&&e.set_data(o,i),r[0]&1536&&n!==(n=l[152])&&(t.__value=n,e.set_input_value(t,t.__value))},d(l){l&&e.detach(t)}}}function Mt(a){let t,i=a[17]===null?`${a[33]("invalidInputMessage")}`:a[17]<a[12]?`${a[33]("invalidInputMessageLimitMin",{values:{minValue:a[12],maxValue:a[13],currency:a[0]}})}`:`${a[33]("invalidInputMessageLimitMax",{values:{minValue:a[12],maxValue:a[13],currency:a[0]}})}`,o;return{c(){t=e.element("p"),o=e.text(i),e.attr(t,"class","InvalidInput")},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[0]&143361|l[1]&4&&i!==(i=n[17]===null?`${n[33]("invalidInputMessage")}`:n[17]<n[12]?`${n[33]("invalidInputMessageLimitMin",{values:{minValue:n[12],maxValue:n[13],currency:n[0]}})}`:`${n[33]("invalidInputMessageLimitMax",{values:{minValue:n[12],maxValue:n[13],currency:n[0]}})}`)&&e.set_data(o,i)},d(n){n&&e.detach(t)}}}function za(a){let t,i=a[33]("setLimit")+"",o;return{c(){t=e.element("button"),o=e.text(i),e.attr(t,"class","LimitSubmitButton "+(a[34]?"":"Mobile")),e.attr(t,"type","submit"),t.disabled=a[30]},m(n,l){e.insert(n,t,l),e.append(t,o)},p(n,l){l[1]&4&&i!==(i=n[33]("setLimit")+"")&&e.set_data(o,i),l[0]&1073741824&&(t.disabled=n[30])},d(n){n&&e.detach(t)}}}function Sa(a){let t;return{c(){t=e.element("div"),t.innerHTML='<div class="skeletonLimitAmount"><div class="skeletonAmountText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonSubText"><ui-skeleton width="auto" height="20px" structure="text" margin-right="auto"></ui-skeleton></div></div> <div class="skeletonLimitButton"><div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div> ',e.attr(t,"class","skeletonLimitContent")},m(i,o){e.insert(i,t,o)},p:e.noop,d(i){i&&e.detach(t)}}}function Pa(a){let t,i,o,n,l,r,c=e.ensure_array_like(Array(3)),g=[];for(let u=0;u<c.length;u+=1)g[u]=Sa(Yi(a,c,u));return{c(){t=e.element("div"),i=e.element("div"),i.innerHTML='<ui-skeleton width="auto" height="25px" structure="text" margin-right="auto"></ui-skeleton>',o=e.space(),n=e.element("div");for(let u=0;u<g.length;u+=1)g[u].c();l=e.space(),r=e.element("div"),r.innerHTML='<div class="skletonHeader"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonPeriod"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skletonSubText"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeletonInputAmount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeletonButton"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div>',e.attr(i,"class","skeletonLimitText"),e.attr(n,"class","skeletonLimitWrapper"),e.attr(r,"class","skeletonInputWrapper"),e.attr(t,"class","skeletonLimitContainer")},m(u,m){e.insert(u,t,m),e.append(t,i),e.append(t,o),e.append(t,n);for(let L=0;L<g.length;L+=1)g[L]&&g[L].m(n,null);e.append(t,l),e.append(t,r)},p:e.noop,d(u){u&&e.detach(t),e.destroy_each(g,u)}}}function Aa(a){let t,i,o,n,l,r=a[26]&&!a[32]&>(a);const c=[ma,da,pa],g=[];function u(m,L){return m[23]?0:m[24]?1:m[23]?-1:2}return~(o=u(a))&&(n=g[o]=c[o](a)),{c(){t=e.element("div"),r&&r.c(),i=e.space(),n&&n.c()},m(m,L){e.insert(m,t,L),r&&r.m(t,null),e.append(t,i),~o&&g[o].m(t,null),a[81](t),l=!0},p(m,L){m[26]&&!m[32]?r?r.p(m,L):(r=gt(m),r.c(),r.m(t,i)):r&&(r.d(1),r=null);let _=o;o=u(m),o===_?~o&&g[o].p(m,L):(n&&(e.group_outros(),e.transition_out(g[_],1,1,()=>{g[_]=null}),e.check_outros()),~o?(n=g[o],n?n.p(m,L):(n=g[o]=c[o](m),n.c()),e.transition_in(n,1),n.m(t,null)):n=null)},i(m){l||(e.transition_in(n),l=!0)},o(m){e.transition_out(n),l=!1},d(m){m&&e.detach(t),r&&r.d(),~o&&g[o].d(),a[81](null)}}}function Da(a,t,i){let o;e.component_subscribe(a,e.$format,s=>i(33,o=s));let{$$slots:n={},$$scope:l}=t,{lang:r="en"}=t,{currency:c=""}=t,{limits:g=""}=t,{session:u=""}=t,{userid:m=""}=t,{endpoint:L=""}=t,{apiversion:_=""}=t,{companylimits:v="false"}=t,{customcurrencysymbols:k=""}=t,{netdepositprogress:j="false"}=t,{enablecompliancetext:Y=""}=t,{deletelimit:X=""}=t,{amountsconfig:U=""}=t,{periodsconfig:R=""}=t,{limittabindex:N=""}=t,{limitformat:E=""}=t,{allowedextenssion:T=".jpg,.jpeg,.png,.pdf,.webp,image/png"}=t,{filesizeallow:K="12934000"}=t,{clientstyling:W=""}=t,{clientstylingurl:M=""}=t,{translationurl:x=""}=t,{mbsource:P}=t,{timezone:B="GMT"}=t,h,A=[],J=window.navigator.userAgent,Z=!e.isMobile(J),z="",H="",$="",G="",b="",C="",S="",O="",ke="",he=0,Ne,F,we,I=[],pe={},de={},ve={},Ut={},ge,ye={EUR:"€",RON:" lei",USD:"$"},Pe={remove:{}},ie={},Be=!1,De=!1,Q=!0,se=!1,Ce=!1,be=!1,ae=!1,ue=!1,_e=!1,Le=!1,Re=!1,Ae=!1;const We={wager:"wagering",loss:"loss",deposit:"deposit",netdeposit:"netdeposit",cumulativeSession:"cumulativeSession",sessionLimit:"session"},Oe={unableToUpdatePendingRequest:["SYS_1037","SYS_1142","SYS_1140"],internalServerError:["F0004","F0006"]},Nt=()=>{fetch(x).then(p=>p.json()).then(p=>{Object.keys(p).forEach(d=>{nt(d,p[d])})}).catch(p=>{console.log(p)})};Object.keys(fe).forEach(s=>{nt(s,fe[s])});const Te=s=>`dataLayer-${s}`,ee=(s,p)=>{typeof gtag=="function"&>ag({event:s,limit_category:fe[r][Te($.toLowerCase())]||$,limit_type:fe[r][Te(z.toLowerCase())]||z,limit_period:fe[r][Te(H.toLowerCase())]||H,limit_amount:F||p})},Bt=()=>{var f;const s=U.split(",").map(y=>y.split(":")),p=R.split(",").map(y=>y.split(":"));for(let[y,w]of s.entries())if(w[0]!==p[y][0])throw new Error(`Limit config mismatch: "${w[0]}" does not match "${p[y][0]}"`);const d=s.reduce((y,w,D)=>{const V=w[0].slice(w[0].indexOf("(")+1,w[0].indexOf(")")),re=w[0].slice(0,w[0].indexOf("(")),le=w[1],Se=p[D][1].trim().replace("D","Daily").replace("W","Weekly").replace("M","Monthly").replace("N","None").split("-"),Ie={value:V,product:re,minMax:le,periods:Se,callValue:q[V].callValue,callValue16:q[V].callValue16,title:q[V].title};return y.push(Ie),y},[]);for(let y=0;y<d.length;y++)i(8,I[y].product=d[y].product,I),i(8,I[y].min=parseInt(d[y].minMax.split("-")[0],10),I),i(8,I[y].max=parseInt(d[y].minMax.split("-")[1],10),I),i(9,q[d[y].value].periods=d[y].periods,q);C=(f=I[0])==null?void 0:f.value,I.forEach(y=>{de[y.value]={min:y.min,max:y.max},Ut[y.value]=y.product}),de&&(de[C]?(i(12,G=de[C].min),i(13,b=de[C].max)):(i(12,G=1),i(13,b=9999999)))},Rt=()=>{const s=/\(([^)]+)\)/g;return[...U.matchAll(s)].flat().filter(d=>!d.includes("("))},Wt=()=>{Rt().forEach(p=>{q[p]?I.push(ce({},q[p])):console.error(`Unknown limit: ${p}`)}),Bt(),i(10,z=I[0].value),i(11,H=q[z].periods[0]),$=I[0].product,i(21,Be=I.length>1),i(22,De=q[z].periods.length>1)},Ve=()=>{i(10,z=I[he].value),i(11,H=q[z].periods[0]),i(22,De=q[z].periods.length>1)},Fe=()=>{$=I[he].product},te=s=>{if(s.status>=300)Ot(s);else return i(25,Ce=!1),s.status!==204?s.json():s},Ot=s=>{i(24,se=!0);let p;throw s.json().then(d=>{for(const f in Oe)if(d.error&&Oe[f].some(y=>d.error.includes(y))){p=f;break}console.error("errType",p),!p&&ze(d)}).finally(()=>{p&&ze(p),i(24,se=!1),i(23,Q=!1)}),new Error("An error occured during the fetch request")},Vt=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);let s=new URL(`${L}/v2/player/${m}/limits`),p={};z==="sessionLimit"?p={sessionLimit:F,sessionLimitUnit:"minute"}:z==="cumulativeSession"?p[q[z].callValue]=[{period:H,minutes:F}]:p[q[z].callValue]=[{period:q[z].periods[0]==="None"?null:H,amount:F,currency:c}];let d={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(p)};const f=yield fetch(s.href,d);yield te(f),ee("self_limitation_success"),yield oe()}),qe=()=>ne(this,null,function*(){var re;const s=I[he],p=(re=s==null?void 0:s.currentLimits)==null?void 0:re.find(le=>le.period===H),d=Ze();if(d&&d.reviewPending&&d.reviewPending.id)return window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("limitInDocReview")}},window.location.href);if(me(),i(23,Q=!0),d&&d.reviewRequired&&!S&&F>d.amount){i(29,_e=!0),i(27,ae=!0);return}const f=p?"v2":"v1",y=new URL(`${L}/${f}/player/${m}/limits/monetary/${p?p.id:""}`),w=p?"PUT":"POST",D=p?S?{amount:F,skipCoolOff:!1,payload:{DocumentId:S}}:{amount:F,skipCoolOff:!1}:{amount:F,currency:c,period:q[z].periods[0]==="None"?null:H,type:q[z].callValue16,products:[$!=null?$:"All"],walletTypes:["Deposit","NetDeposit"].includes(q[z].callValue16)?["All"]:["RealCash"]};let V={method:w,headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(D)};try{const le=yield fetch(y.href,V);yield te(le),ee("self_limitation_success"),yield oe()}finally{i(29,_e=!1),S=""}}),Ft=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({sessionLimit:F,sessionLimitUnit:"minute"})};const y=yield fetch(s.href,f);yield te(y),ee("self_limitation_success"),yield oe()}),qt=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);const s=new URL(`${L}/v1/player/${m}/limits/session/`);let f={method:"PUT",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({cumulativeSessionLimits:[{period:H,minutes:F}]})};const y=yield fetch(s.href,f);yield te(y),ee("self_limitation_success"),yield oe()}),Ht=()=>ne(this,null,function*(){if(!(F>0))return;me(),i(23,Q=!0);const s=new URL(`${L}/v2/player/${m}/limit/lugas`);let f={method:"POST",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({amount:F,roleLimitAmount:0,softMigration:!1,keepLimit:!1})};const y=yield fetch(s.href,f),w=yield te(y);i(18,we=w.popup),Ne=w.regulatorDepositLimitAmount,ee("self_limitation_success"),yield oe()}),Gt=()=>ne(this,null,function*(){ve={};try{if(_==="gm16")switch(z){case"lugas":yield Ht();break;case"sessionLimit":yield Ft();break;case"cumulativeSession":yield qt();break;default:yield qe();break}else if(_==="gmcore")yield Vt();else throw Error(`Invalid apiversion attribute: ${_}`);Ae&&(window.postMessage({type:"WidgetNotification",data:{type:"success",message:O}},window.location.href),window.postMessage({type:"SubmitLimitNotificationSuccess"},window.location.href))}catch(s){Ae&&window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorUpdateLimit")}},window.location.href),console.error("limitUpdateError:",s)}ee("self_limitation_request")}),oe=()=>ne(this,null,function*(){switch(_){case"gmcore":yield Kt();break;case"gm16":yield Yt();break}}),Kt=()=>ne(this,null,function*(){i(23,Q=!0);let s=new URL(`${L}/v2/player/${m}/limits`),p={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const d=yield fetch(s.href,p);pe=te(d),be&&ze(),ii(pe),ai(pe),i(17,F=null)}catch(d){console.error("Error LimitsWidget: ",d),i(24,se=!0)}finally{i(23,Q=!1)}}),Yt=()=>ne(this,null,function*(){i(23,Q=!0);const s=I.some(w=>w.value==="sessionLimit"||w.value==="cumulativeLimit");let p=!s;const d=new URL(`${L}/v1/player/${m}/limits/monetary`),f=new URL(`${L}/v1/player/${m}/limits/session`),y={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const w=yield fetch(d.href,y),D=yield te(w);pe=D,oi(D),be&&ze(),i(17,F=null)}catch(w){console.error("Error LimitsWidget: ",w),i(24,se=!0)}finally{p&&i(23,Q=!1),p=!0}if(s)try{const w=yield fetch(f.href,y),D=yield te(w);ni(D),si(D),be&&(z==="sessionLimit"||z==="cumulativeSession")&&ze(),i(17,F=null)}catch(w){console.error("Error LimitsWidget: ",w),i(24,se=!0)}finally{p&&i(23,Q=!1),p=!0}}),Zt=()=>ne(this,null,function*(){var w;let s=new URL(`${L}/v1/player/${m}/limits/monetary/balance`);const p=[],d={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const D=yield fetch(s.href,d),V=yield te(D);p.push(V)}catch(D){console.error("Error LimitsWidget: ",D),i(24,se=!0)}const f=I.length?I.filter(D=>D.value==="netdeposit"):[];if(!f.length)return;const y=(w=p.find(D=>D.limitBalances))==null?void 0:w.limitBalances.filter(D=>D.limitType==="NetDeposit");if(f.length&&(y!=null&&y.length)){const D=f[0].currentLimits;f[0].currentLimits=D.map(V=>{const re=y.find(le=>le.limitDefinitionId===V.id);return ce(ce({},V),re?{spentBalance:re.spentBalance}:{})})}i(8,I=f)}),Jt=()=>ne(this,null,function*(){const s=new URL(`/api/pam/v1/limit-balances/most-restrictive?userId=${m}&playerLimitTypes=Deposit&NetDeposit&OperatorDeposit&OperatorNetDeposit&walletType=All`,L),p={method:"GET",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};try{const d=yield fetch(s.href,p),f=yield te(d);Xt(f)}catch(d){console.error("Error LimitsWidget: ",d),i(24,se=!0)}}),Xt=s=>{const p=s.limitBalances;i(8,I=I.map(d=>d.value==="deposit"&&d.currentLimits?Ue(ce({},d),{currentLimits:d.currentLimits.map(f=>Ue(ce({},f),{limitBalances:p}))}):d))},Qt=s=>parseFloat((d=>{var w,D,V;if(!d)return 0;const f=(w=d==null?void 0:d.limitAmount)!=null?w:0,y=(V=(D=d==null?void 0:d.spentBalance)==null?void 0:D.amount)!=null?V:0;return y>=f?0:f-y})(s).toString()).toFixed(2),$t=()=>I.every((s,p)=>{var d,f;return((d=s.currentLimits)==null?void 0:d.length)===((f=A[p])==null?void 0:f.length)&&s.value==="netdeposit"&&A[p].every(y=>y!==null)}),ei=(s,p,d)=>{const f=s>0?Math.min(p/s*100,100):0,y=Math.round(f),w=document.createElement("div");w.className=`Progress-bar-container ${y===0?"ZeroProgress":""}`;const D=document.createElement("div");D.className="Progress-bar-fill",D.style.width=`${f}%`;const V=document.createElement("span");return V.className="Progress-bar-label",V.textContent=`${d}${p}`,w.appendChild(D),w.appendChild(V),w},ti=(s,p)=>{var re;const d=A[s][p];if(!d)return;const f=I[s].currentLimits[p],y=f.amount,w=((re=f.spentBalance)==null?void 0:re.amount)||0,D=f.currency;d.innerHTML="";const V=ei(y,w,D);d.appendChild(V)},je=()=>ne(this,null,function*(){var p,d;yield e.tick();let s=!0;for(let f=0;f<I.length;f++){for(let y=0;y<(((p=I[f].currentLimits)==null?void 0:p.length)||0);y++)if(!A[f]||!A[f][y]){s=!1;break}if(!s)break}if(!s){setTimeout(()=>je(),10);return}for(let f=0;f<I.length;f++)for(let y=0;y<(((d=I[f].currentLimits)==null?void 0:d.length)||0);y++)ti(f,y)}),ii=s=>{I.forEach(p=>{p.currentLimits=[];const d=Array.isArray(s[q[p.value].callValue])?s[q[p.value].callValue]:[s[q[p.value].callValue]];d.length===0||d[0]===void 0||(d.forEach((f,y)=>{var D;const w=s[q[p.value].callValue][y];p.currentLimits.push({}),p.currentLimits[y].limitType=p.value,p.currentLimits[y].amount=E?w.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.amount),p.currentLimits[y].currency=(D=ye[w.currency])!=null?D:w.currency,p.currentLimits[y].period=w.period,p.currentLimits[y].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount),p.currentLimits[y].isModified=w.isModified,p.currentLimits[y].expiryDate=`${new Date(w.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`}),p.currentLimits=xe(p.currentLimits))})},ai=s=>{const p=o("minutes");I.filter(d=>d.value==="sessionLimit"||d.value==="cumulativeSession").forEach(d=>{var f;d.currentLimits=[],(f=s[q[d.value].callValue])==null||f.forEach((y,w)=>{const D=s[q[d.value].callValue][w];d.currentLimits.push({limitType:d.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.minutes),currency:p,isModified:D.isModified,period:d.value==="cumulativeSession"?D.period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(D.updateMinutes),expiryDate:`${new Date(D.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`})}),d.currentLimits=xe(d.currentLimits)})},oi=s=>{s!=null&&s.limits&&(I.filter(p=>p.value!=="sessionLimit"&&p.value!=="cumulativeSession").forEach(p=>{var d;p.currentLimits=[];for(const f of s.limits){if(f.type!==p.callValue16||!f.products.includes(p.product))continue;let y=0,w=f.schedules.length>0?f.schedules.find(D=>D.id):{};f.schedules.length>0&&(y=E?w.updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(w.updateAmount)),p.currentLimits.push({limitType:p.value,amount:E?f.amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(f.amount),currency:(d=ye[f.currency])!=null?d:f.currency,isModified:f.schedules.length>0,period:f.period,product:f.products[0],updateAmount:y,isCoolOffCompleted:w?w.isCoolOffCompleted:!1,reviewRequired:f.reviewRequired?f.reviewRequired:!1,reviewPending:f.reviewPending?f.reviewPending:{},scheduleId:w?w.id:null,expiryDate:f.schedules.length>0?`${new Date(f.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:"",id:f.id}),p.currentLimits.forEach(D=>{D.acknowledgedLimit=Object.keys(ie).some(V=>D.scheduleId===V)})}p.currentLimits=xe(p.currentLimits)}),j==="true"&&Zt(),v==="true"&&Jt())},ni=s=>{s!=null&&s.sessionLimit&&I.filter(p=>p.value==="sessionLimit").forEach(p=>{p.currentLimits=[],p.currentLimits.push({limitType:"sessionLimit",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.minutes),currency:o("minutes"),isModified:s.sessionLimit.isModified,period:"None",updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.sessionLimit.updateMinutes),expiryDate:s.sessionLimit.expiryDate}),p.currentLimits=xe(p.currentLimits)})},si=s=>{s!=null&&s.cumulativeSessionLimits&&I.filter(p=>p.value==="cumulativeSession").forEach(p=>{p.currentLimits=[];for(const d of s.cumulativeSessionLimits)p.currentLimits.push({limitType:"cumulativeSession",amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(d.minutes),currency:o("minutes"),isModified:d.isModified,period:d.period,updateAmount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(d.updateMinutes),expiryDate:d.expiryDate});p.currentLimits=xe(p.currentLimits)})},xe=s=>{const p={Daily:0,Weekly:1,Monthly:2};return s.sort((d,f)=>p[d.period]-p[f.period]),s},He=s=>{window.postMessage({type:"InValidLimit",data:s},window.location.href)},Ge=()=>{if(F===null||Number.isNaN(F)){i(30,Le=!0),He(Le);return}const p=!Number.isInteger(F)?Math.round(F):F;i(17,F=p),i(30,Le=p<G||p>b),He(Le)},ri=s=>s.preventDefault(),Ke=s=>{s&&s.preventDefault(),Ge(),Le||Gt()},Ye=()=>{i(30,Le=!1),de!=null&&de[z]?(i(12,G=de[z].min),i(13,b=de[z].max)):(i(12,G=1),i(13,b=9999999))},li=()=>{if(pe){const s=pe[q[z].callValue].find(f=>f.period===H),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount);let d=o("popupImmediateUpdate").replace("{selectedLimit}",Ee(s)).replace("{updatedAmount}",p).replace("{currency}",ye[s.currency]||s.currency).replace("{selectedPeriod}",o(`${H}`));i(14,O=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:d)}i(27,ae=!0)},Ze=()=>{if(!pe)return;const s=pe.limits;let p=null;return Object.keys(ve).length>0?p=s.find(d=>d.id===ve.id):p=s==null?void 0:s.find(d=>d.type.toLowerCase()===We[z].toLowerCase()&&(d.period===H||d.period==="None")&&d.products[0]===$),(p==null?void 0:p.schedules.length)>0&&ie[p==null?void 0:p.schedules[0].id]&&(p.amount=p.schedules[0].updateAmount),p},pi=()=>{let s=Ze();if(!s){i(27,ae=!0);return}const p=et(s)||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.amount),d=s.schedules.length>0?`${new Date(s.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:"";let f=o("popupImmediateUpdate").replace("{selectedLimit}",Ee(s)).replace("{updatedAmount}",p).replace("{selectedPeriod}",o(`${s.period}`));s.schedules.length>0&&ie[s.schedules[0].id]?i(14,O=f):i(14,O=s.schedules.length>0?`${o("popupPendingUpdate")} ${d}`:f),i(27,ae=!0)},di=()=>{we==1&&i(15,ke="PopupKyc"),we==2&&(i(14,O=`${o("popup2_a")}${Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(Ne)} ${c} ${o("popup2_b")}`),i(15,ke="PopupKyc2")),we==3&&(i(14,O=o("popup3")),i(15,ke="PopupSuccess")),i(27,ae=!0)},mi=()=>{i(14,O=o("sessionLimitUpdated")),i(27,ae=!0)},ui=()=>{if(pe){const s=pe[q[z].callValue].find(f=>(f.period===H||H==="None")&&f.products[0]===$),p=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(s.minutes);let d=o("popupImmediateUpdate").replace("{selectedLimit}",o(`${z}`)).replace("{updatedAmount}",p).replace("{currency}",o("minutes")).replace("{selectedPeriod}",o(`${H}`));i(14,O=s.isModified?`${o("popupPendingUpdate")} ${new Date(s.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (${B})`:d)}i(27,ae=!0)},ci=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("Limit update is not permitted due to LimitUpdateControl")},fi=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("Limit remove is not permitted due to LimitUpdateControl")},gi=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("[NotFoundException] Limit does not exist")},Li=s=>{var p;return(p=s==null?void 0:s.error)==null?void 0:p.includes("[Exception] Schedule does not exist")},hi=s=>{var p,d;return((p=s.details)==null?void 0:p.includes("Invalid Session"))||((d=s.error)==null?void 0:d.includes("Invalid Session"))},ze=s=>{if(window.postMessage({type:"OpenLimitsPopup"},window.location.href),se){if(i(25,Ce=!0),!s){i(27,ae=!0);return}ci(s)?i(14,O=o("popupUpdateLimitException")):fi(s)?i(14,O=o("popupRemoveLimitException")):gi(s)?i(14,O=o("notFoundException")):Li(s)?i(14,O=o("scheduleNotFoundException")):hi(s)?i(14,O=o("sessionExpiredException")):i(14,O=o("genericLimitsPopupError")),i(27,ae=!0);return}switch(_){case"gmcore":z==="sessionLimit"||z==="cumulativeSession"?ui():li();break;case"gm16":z==="lugas"?di():z==="sessionLimit"||z==="cumulativeSession"?mi():pi();break;default:throw new Error(`Invalid apiversion attribute: ${_}`)}},me=()=>{i(26,be=!0),window.postMessage({type:"DisableScroll"},window.location.href)},vi=s=>{i(10,z=s.limitType),i(11,H=s.period),me(),i(23,Q=!0);let p=new URL(`${L}/v2/player/${m}/limits/${We[s.limitType]}`);s.limitType!=="sessionLimit"&&p.searchParams.append("periods",s.period);let d={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,d).then(f=>te(f)).then(f=>{ee("self_limitation_cancel_success",s.amount),oe()}).catch(f=>{ee("self_limitation_cancel_failed",s.amount),console.log(f),i(24,se=!0)})},Je=s=>{switch(Pe.remove=s,_){case"gmcore":vi(s);break;case"gm16":ve=s,s.limitType==="sessionLimit"||s.limitType==="cumulativeSession"?yi(s):Xe(s);break}ee("self_limitation_cancel_request",s.amount)},yi=s=>{const p=new URL(`${L}/v1/player/${m}/limits/session/session`),d=new URL(`${L}/v1/player/${m}/limits/session/cumulativeSession?periods=${s.period}`);let f;switch(s.limitType){case"sessionLimit":f=p;break;case"cumulativeSession":f=d;break;default:throw Error(`Unknown limit.limitType: ${s.limitType}`)}me(),i(23,Q=!0);let y={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(f.href,y).then(w=>te(w)).then(w=>{ee("self_limitation_cancel_success",s.amount),oe()}).catch(w=>{ee("self_limitation_cancel_failed",s.amount),console.log(w),i(24,se=!0)})},Xe=s=>{if(me(),i(23,Q=!0),s&&s.reviewRequired&&!S){i(29,_e=!0),i(27,ae=!0);return}const p=new URL(`${L}/v1/player/${m}/limits/monetary/${s.id}`);let d={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};S&&p.searchParams.append("documentId",S),fetch(p.href,d).then(f=>te(f)).then(f=>{ee("self_limitation_cancel_success",s.amount),oe()}).catch(f=>{ee("self_limitation_cancel_failed",s.amount),console.log(f),i(24,se=!0)}).finally(()=>{Pe.remove={},i(29,_e=!1),S=""})},Qe=s=>{const p=new URL(`${L}/v1/player/${m}/limits/schedule/${s.scheduleId}`);me(),i(23,Q=!0);let d={method:"DELETE",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,d).then(f=>te(f)).then(f=>{ve=s,ee("self_limitation_cancel_success",s.updateAmount),oe()}).catch(f=>{ee("self_limitation_cancel_failed",s.updateAmount),console.log(f)})},$e=s=>{const p=new URL(`${L}/v1/player/${m}/limits/schedule/acknowledge/${s.scheduleId}`);me(),i(23,Q=!0);let d={method:"PATCH",headers:{"X-SessionID":u,"Content-Type":"application/json",Accept:"application/json"}};fetch(p.href,d).then(f=>te(f)).then(f=>{ve=s,bi(s),ee("self_limitation_confirm_success",s.amount),oe()}).catch(f=>{ee("self_limitation_confirm_failed",s.amount),console.log(f)})},bi=s=>{let p=60;i(20,ie[s.scheduleId]={},ie),i(20,ie[s.scheduleId].timer=`${p} ${fe[r].seconds}`,ie),i(20,ie[s.scheduleId].timerStopped=!1,ie);let d=window.setInterval(()=>p===0?(window.clearInterval(d),i(20,ie[s.scheduleId].timerStopped=!0,ie),i(20,ie[s.scheduleId].timer=fe[r].reloadLimitsButton,ie)):i(20,ie[s.scheduleId].timer=`${--p} ${fe[r].seconds}`,ie),1e3)},Ee=s=>{let p;return s?p=s.value?o(s.value+s.product):o(s.type.toLowerCase()+s.products[0]):p=o(z),p},et=(s,p=!1,d=!1)=>{if(!E)return d?`${s.reviewPending.requestAmount}${s.currency}`:p?`${s.updateAmount}${s.currency}`:`${s.amount}${s.currency}`;let f=E;const y=f.match(/\{(\d+)decimals\}/),w=y?parseInt(y[1],10):2,D=y?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let V;d?V=s.reviewPending.requestAmount||0:V=p?s.updateAmount:s.amount,V=parseInt(V).toFixed(w);const[re,le]=E.includes(".")?[",","."]:[".",","];let[Se,Ie]=V.split(".");return Se=Se.replace(/\B(?=(\d{3})+(?!\d))/g,re),V=`${Se}${le}${Ie}`,f=f.replace("{currency}",ye[s.currency]||s.currency).replace("{amount}",V.split(le)[0]).replace(D,V.split(le)[1]),f},Me=()=>{i(27,ae=i(26,be=!1)),i(15,ke=""),window.postMessage({type:"CloseLimitsPopup"},window.location.href),window.postMessage({type:"EnableScroll"},window.location.href),i(23,Q=!1)},ki=()=>{window.postMessage({type:"uploadDocuments"},window.location.href),Me()},wi=s=>{console.log(s);let p=0;return Object.keys(s).forEach(d=>{p+=s[d].size}),p<=Number(K)},_i=s=>{let p=!1;return Object.keys(s).forEach(d=>{const f=s[d].name.split(".").pop();return T.includes(f)?p=!0:p=!1}),p},tt=s=>!s&&!(s.length>0)?i(28,ue=!1):(i(19,ge=s),wi(ge)?_i(ge)?i(28,ue=!0):(console.error(o("fileExtenssionDeny")),i(28,ue=!1)):(console.error(o("fileSizeExceeded")),i(28,ue=!1))),xi=()=>{if(!ue)return;i(27,ae=!1);const s=new URL(`${L}/api/v1/mm/content/${m}/url-upload/`),p={method:"POST",headers:{"Content-Type":"application/json","X-SessionId":u},body:JSON.stringify({})};fetch(s,p).then(d=>te(d)).then(d=>{zi(d)}).catch(d=>{console.error(o("errorUploadDocument"),d),i(19,ge=null),i(28,ue=!1)})},zi=s=>{const p=new FormData;p.append(s.requestId,ge[0]),fetch(s.url,{method:"POST",body:p}).then(d=>te(d)).then(d=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("uploadSuccess")}},window.location.href),S=d.Files[0].Reference,Pe.remove.id?Xe(Pe.remove):qe()}).catch(d=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorUploadDocument")}},window.location.href),console.error(o("errorUploadDocument"),d)}).finally(()=>{Me(),i(19,ge=null),i(28,ue=!1)})},Si=()=>{if(!k)return;let s={};k.split(",").forEach(p=>{let d=p.split(":");s[d[0].trim()]=d[1].trim()}),ye=ce(ce({},ye),s)},Pi=()=>{qi(r)},it=s=>{if(s.data)switch(s.data.type){case"LimitDisableState":{i(31,Re=s.data.data);break}case"SubmitLimitNotification":{i(32,Ae=!0),Ke();break}}};e.onMount(()=>(window.addEventListener("message",it),j==="true"&&I.length&&je(),()=>{window.removeEventListener("message",it)}));const Ai=s=>tt(s.target.files),Di=()=>oe(),Ci=s=>Je(s),Ti=s=>$e(s),ji=s=>Qe(s);function Ei(s,p,d){e.binding_callbacks[s?"unshift":"push"](()=>{A[p][d]=s,i(7,A),i(2,j),i(8,I)})}function Mi(){he=e.select_value(this),i(16,he)}const Ii=()=>{Fe(),Ve(),Ye()};function Ui(){H=e.select_value(this),i(11,H),i(9,q),i(10,z)}function Ni(){F=e.to_number(this.value),i(17,F)}function Bi(s){e.binding_callbacks[s?"unshift":"push"](()=>{h=s,i(6,h)})}return a.$$set=s=>{"lang"in s&&i(52,r=s.lang),"currency"in s&&i(0,c=s.currency),"limits"in s&&i(53,g=s.limits),"session"in s&&i(54,u=s.session),"userid"in s&&i(55,m=s.userid),"endpoint"in s&&i(56,L=s.endpoint),"apiversion"in s&&i(57,_=s.apiversion),"companylimits"in s&&i(1,v=s.companylimits),"customcurrencysymbols"in s&&i(58,k=s.customcurrencysymbols),"netdepositprogress"in s&&i(2,j=s.netdepositprogress),"enablecompliancetext"in s&&i(3,Y=s.enablecompliancetext),"deletelimit"in s&&i(4,X=s.deletelimit),"amountsconfig"in s&&i(59,U=s.amountsconfig),"periodsconfig"in s&&i(60,R=s.periodsconfig),"limittabindex"in s&&i(5,N=s.limittabindex),"limitformat"in s&&i(61,E=s.limitformat),"allowedextenssion"in s&&i(62,T=s.allowedextenssion),"filesizeallow"in s&&i(63,K=s.filesizeallow),"clientstyling"in s&&i(64,W=s.clientstyling),"clientstylingurl"in s&&i(65,M=s.clientstylingurl),"translationurl"in s&&i(66,x=s.translationurl),"mbsource"in s&&i(67,P=s.mbsource),"timezone"in s&&i(68,B=s.timezone),"$$scope"in s&&i(69,l=s.$$scope)},a.$$.update=()=>{if(a.$$.dirty[1]&134217728&&k&&Si(),a.$$.dirty[1]&805306368&&R&&U&&Wt(),a.$$.dirty[1]&2097152&&r&&Pi(),a.$$.dirty[1]&127926272&&m&&u&&L&&_&&r&&oe(),a.$$.dirty[0]&64|a.$$.dirty[2]&4&&W&&h&&e.setClientStyling(h,W),a.$$.dirty[0]&64|a.$$.dirty[2]&8&&M&&h&&e.setClientStylingURL(h,M),a.$$.dirty[0]&64|a.$$.dirty[2]&32&&P&&h&&e.setStreamStyling(h,`${P}.Style`),a.$$.dirty[2]&16&&x&&Nt(),a.$$.dirty[0]&388&&j==="true"&&I.length){const s=I.map(d=>{var f;return new Array(((f=d.currentLimits)==null?void 0:f.length)||0).fill(null)});(A.length!==s.length||A.some((d,f)=>d.length!==s[f].length))&&i(7,A=s)}a.$$.dirty[0]&388&&j==="true"&&A.length===I.length&&$t()&&je()},[c,v,j,Y,X,N,h,A,I,q,z,H,G,b,O,ke,he,F,we,ge,ie,Be,De,Q,se,Ce,be,ae,ue,_e,Le,Re,Ae,o,Z,Ve,Fe,oe,Qt,Ge,ri,Ke,Ye,Je,Qe,$e,Ee,et,Me,ki,tt,xi,r,g,u,m,L,_,k,U,R,E,T,K,W,M,x,P,B,l,n,Ai,Di,Ci,Ti,ji,Ei,Mi,Ii,Ui,Ni,Bi]}class It extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Da,Aa,e.safe_not_equal,{lang:52,currency:0,limits:53,session:54,userid:55,endpoint:56,apiversion:57,companylimits:1,customcurrencysymbols:58,netdepositprogress:2,enablecompliancetext:3,deletelimit:4,amountsconfig:59,periodsconfig:60,limittabindex:5,limitformat:61,allowedextenssion:62,filesizeallow:63,clientstyling:64,clientstylingurl:65,translationurl:66,mbsource:67,timezone:68},Hi,[-1,-1,-1,-1,-1,-1])}get lang(){return this.$$.ctx[52]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[0]}set currency(t){this.$$set({currency:t}),e.flush()}get limits(){return this.$$.ctx[53]}set limits(t){this.$$set({limits:t}),e.flush()}get session(){return this.$$.ctx[54]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[55]}set userid(t){this.$$set({userid:t}),e.flush()}get endpoint(){return this.$$.ctx[56]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[57]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get companylimits(){return this.$$.ctx[1]}set companylimits(t){this.$$set({companylimits:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[58]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get netdepositprogress(){return this.$$.ctx[2]}set netdepositprogress(t){this.$$set({netdepositprogress:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[3]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[4]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get amountsconfig(){return this.$$.ctx[59]}set amountsconfig(t){this.$$set({amountsconfig:t}),e.flush()}get periodsconfig(){return this.$$.ctx[60]}set periodsconfig(t){this.$$set({periodsconfig:t}),e.flush()}get limittabindex(){return this.$$.ctx[5]}set limittabindex(t){this.$$set({limittabindex:t}),e.flush()}get limitformat(){return this.$$.ctx[61]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get allowedextenssion(){return this.$$.ctx[62]}set allowedextenssion(t){this.$$set({allowedextenssion:t}),e.flush()}get filesizeallow(){return this.$$.ctx[63]}set filesizeallow(t){this.$$set({filesizeallow:t}),e.flush()}get clientstyling(){return this.$$.ctx[64]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[65]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[66]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[67]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get timezone(){return this.$$.ctx[68]}set timezone(t){this.$$set({timezone:t}),e.flush()}}e.create_custom_element(It,{lang:{},currency:{},limits:{},session:{},userid:{},endpoint:{},apiversion:{},companylimits:{},customcurrencysymbols:{},netdepositprogress:{},enablecompliancetext:{},deletelimit:{},amountsconfig:{},periodsconfig:{},limittabindex:{},limitformat:{},allowedextenssion:{},filesizeallow:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{},timezone:{}},["LimitSkeleton","LimitsList","LimitSubmitButton"],[],!0);exports.default=It;
|