1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7958],{10264:function(t){var e,n,s;t.exports=(e="minute",n=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g,function(t,i,a){var l=i.prototype;a.utc=function(t){var e={date:t,utc:!0,args:arguments};return new i(e)},l.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var r=l.parse;l.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),r.call(this,t)};var o=l.init;l.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else o.call(this)};var c=l.utcOffset;l.utcOffset=function(t,i){var a=this.$utils().u;if(a(t))return this.$u?0:a(this.$offset)?c.call(this):this.$offset;if("string"==typeof t&&null===(t=function(t){void 0===t&&(t="");var e=t.match(n);if(!e)return null;var i=(""+e[0]).match(s)||["-",0,0],a=i[0],l=60*+i[1]+ +i[2];return 0===l?0:"+"===a?l:-l}(t)))return this;var l=16>=Math.abs(t)?60*t:t,r=this;if(i)return r.$offset=l,r.$u=0===t,r;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(r=this.local().add(l+o,e)).$offset=l,r.$x.$localOffset=o}else r=this.utc();return r};var u=l.format;l.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},l.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var m=l.toDate;l.toDate=function(t){return"s"===t&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():m.call(this)};var d=l.diff;l.diff=function(t,e,n){if(t&&this.$u===t.$u)return d.call(this,t,e,n);var s=this.local(),i=a(t).local();return d.call(s,i,e,n)}})},67802:function(t,e,n){"use strict";n.d(e,{V:function(){return f}});var s=n(52322),i=n(63602),a=n(65592),l=n(98123),r=n(97125),o=n(2784),c=n(75905),u=n(28879),m=n.n(u),d=n(10264),h=n.n(d);m().extend(h());let f=t=>!!t&&t.OperatorLimitValue>0&&t.LimitValue>=t.OperatorLimitValue,_=t=>{let{initialValues:e,limitsData:n,isSetError:u,onSubmit:d,onHandleSubmit:h,setIsSetError:f,onHandleReset:_,onChangeText:b,validationSchema:p,renderHeader:v,renderRowExtra:y,id:x,isDeposit:g=!1}=t,{t:N}=(0,l.$G)(["lexicons"]),{player:j}=(0,r.A)({}),[S,$]=(0,o.useState)({}),C=t=>{let e=Object.keys(c.SJ).find(e=>t.endsWith(e));return e?c.SJ[e]:""},L=(t,e,n)=>{$(e=>({...e,[t]:!0})),b(t,e,n)},P=t=>{let n={...t};Object.keys(n).forEach(t=>{let s=n[t],i=S[t];if(!i||!(""!==s&&null!=s)){let s=e[t];n[t]=s||""}}),d(n)};return(0,s.jsx)(i.J9,{initialValues:e,onSubmit:P,validationSchema:p,validateOnChange:!1,validateOnBlur:!1,children:t=>{let{values:e,errors:i,touched:l,setFieldValue:r,handleSubmit:o,setFieldTouched:d}=t;return(0,s.jsxs)("div",{id:x,className:"play-responsibly-form ".concat(g?"deposit-limits-popup":""),children:[(0,s.jsxs)("div",{className:"play-responsibly-form__content",children:[v,(0,s.jsx)("div",{className:"play-responsibly-form__items",children:n.map(t=>{var n;return(0,s.jsxs)("div",{className:"play-responsibly-form__item",children:[(0,s.jsxs)("div",{className:"item__text",children:[(0,s.jsx)("span",{className:"item__text--big",children:N(C(t.LimitName))}),t.LimitValue>0?(0,s.jsxs)("span",{className:"item__text--small",children:[N("limits_current")," ",null==j?void 0:null===(n=j.Currency)||void 0===n?void 0:n.CurrencySymbol,t.LimitValue]}):null,(null==t?void 0:t.HasPending)&&(null==t?void 0:t.PendingFutureValue)?(0,s.jsx)("span",{className:"form__label",children:N("limits_PendingMessage",{LIMIT_VALUE:"".concat((null==t?void 0:t.PendingFutureValue)||(null==t?void 0:t.LimitValue)),LIMIT_DATE:m().utc((null==t?void 0:t.PendingActivationDate)||"").local().format(c.tO)})}):null,y?y(t):null]}),(0,s.jsx)("div",{className:"item__form",children:(0,s.jsxs)("div",{className:"form__column",children:[(0,s.jsx)("label",{className:"form__label",children:N("limits_changeLimitTo")}),(0,s.jsx)(a.default,{placeholder:"".concat(null==j?void 0:j.Currency.CurrencySymbol),onHandleTextChange:e=>{d(t.LimitName,!1),L(t.LimitName,e,r)},onBlur:()=>d(t.LimitName,!0),error:l[t.LimitName]||u?N(i[t.LimitName]):"",isSetError:l[t.LimitName]||u,onFocus:()=>u&&f(!1),value:S[t.LimitName]?e[t.LimitName]:"",type:"single-amount","data-testid":"input__CommonForm-limit--".concat(t.LimitName)})]})})]},t.LimitName)})})]}),g?(0,s.jsx)("div",{className:"play-responsibly-form__buttons form__buttons",children:(0,s.jsx)("button",{className:"btn2",onClick:()=>h(o),"data-testid":"btn__CommonForm-saveContinue",children:N("save_continue")})}):(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>h(o),"data-testid":"btn__CommonForm-submit",children:N("submit")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>_(),"data-testid":"btn__CommonForm-clear",children:N("clear")})]})]})}})};e.Z=_},98921:function(t,e,n){"use strict";var s=n(52322),i=n(67190),a=n(63602),l=n(65592),r=n(15102),o=n(75905),c=n(98123),u=n(92496),m=n(70853);let d=t=>{let{isShowModal:e,isSetError:n,textArray:d,title:h,setIsSetError:f,setIsShowModal:_,onSubmit:b,onHandleSubmit:p,onAction:v,onClose:y,isTimeoutPopup:x,isSEPopup:g}=t,{t:N}=(0,c.$G)(["lexicons"]),j=(0,m.v4)(),S=()=>{_(""),(0,u.m)(y)&&y()};return(0,s.jsx)(i.default,{isShow:!!e,showModal:()=>S(),children:(0,s.jsxs)("div",{className:"modal-form__body",children:[(0,s.jsx)("div",{className:"modal-form__header",children:(0,s.jsx)("h2",{className:"heading__text",children:N("Responsible gaming")})}),(()=>{switch(e){case o.zr.PASSWORD:return(0,s.jsx)(a.J9,{initialValues:{...new r.Z({})},onSubmit:b,validationSchema:r.Z.schema,children:t=>{let{values:e,errors:i,handleChange:a,handleSubmit:r}=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"modal-form__title",children:N("Please enter your password to confirm your request.")}),(0,s.jsx)("div",{className:"form__column",children:(0,s.jsx)(l.default,{type:"confirm-password",placeholder:"Password",value:e.ItemString,onHandleTextChange:t=>{a("ItemString")(t)},error:i.ItemString,isSetError:n,onFocus:()=>n&&f(!1)})}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>p(r),"data-testid":"btn__LimitsPopup-submitPassword",children:N("submit")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>S(),"data-testid":"btn__LimitsPopup-cancel",children:N("cancel")})]})]})}});case o.zr.LIMITS:return(0,s.jsxs)(s.Fragment,{children:[h?(0,s.jsx)("div",{className:"modal-form__title",children:N(h)}):null,(0,s.jsx)("div",{className:"form__column",children:d.map(t=>(0,s.jsx)("p",{className:"play-responsibly-form__text",children:N(t)},t))}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>v(),"data-testid":"btn__LimitsPopup-submitLimits",children:N("submit")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>S(),"data-testid":"btn__LimitsPopup-cancel",children:N("cancel")})]})]});default:return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"modal-form__title",children:"10000"===e?N("se_mga_indefinitely"):x?N("UK_Timeout_confirm_title")+": ".concat(N(e)):"UK"===j?N("UK_SE_duration_msg_months",{PERIOD:e}):N("Mga_SE_duration_msg_days")+N(e)}),(0,s.jsx)("div",{className:"form__column",children:(0,s.jsx)("p",{className:"play-responsibly-form__text",children:x?N("UK_Timeout_confirm_body"):"MGA"===j&&g?N("MGA_SE_confirmation_text_body"):N("limits_exclusion_approve")})}),(0,s.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,s.jsx)("button",{className:"btn",onClick:()=>_(o.zr.PASSWORD),"data-testid":"btn__LimitsPopup-confirm",children:N("confirm")}),(0,s.jsx)("button",{className:"btn btn__transparent",onClick:()=>S(),"data-testid":"btn__LimitsPopup-cancel",children:N("cancel")})]})]})}})()]})})};e.Z=d},37958:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var s=n(52322),i=n(2784),a=n(24511),l=n(11768);let r=/^[0-9]+$/;class o extends l.Z{constructor(t){super(),this.WagerPerDay="",this.WagerPerWeek="",this.WagerPerMonth="",Object.assign(this,t)}}o.schema=a.Ry({WagerPerDay:a.Z_().transform(t=>""===t?null:t).nullable().notRequired().matches(r,{message:"Daily should be only number",excludeEmptyString:!0}).min(1,t=>{let{min:e}=t;return"Daily canât be shorter than ".concat(e," number")}).max(6,t=>{let{max:e}=t;return"Daily canât be longer than ".concat(e," numbers")}).test({name:"WagerPerDay",message:"Daily limit value cannot be more than weekly or monthly values",test:function(){let{WagerPerDay:t=0,WagerPerWeek:e=0}=this.parent,n=+t,s=+e;return 0===n||0===s||n<s}}).test({name:"WagerPerDay",message:"Daily limit value cannot be more than weekly or monthly values",test:function(){let{WagerPerDay:t=0,WagerPerMonth:e=0}=this.parent,n=+t,s=+e;return 0===n||0===s||n<s}}),WagerPerWeek:a.Z_().transform(t=>""===t?null:t).nullable().notRequired().matches(r,{message:"Weekly should be only number",excludeEmptyString:!0}).min(1,t=>{let{min:e}=t;return"Weekly canât be shorter than ".concat(e," number")}).max(6,t=>{let{max:e}=t;return"Weekly canât be longer than ".concat(e," numbers")}).test({name:"WagerPerWeek",message:"Weekly limit value cannot be more than monthly value",test:function(){let{WagerPerWeek:t=0,WagerPerMonth:e=0}=this.parent,n=+t,s=+e;return 0===n||0===s||n<s}}),WagerPerMonth:a.Z_().transform(t=>""===t?null:t).nullable().notRequired().matches(r,{message:"Monthly should be only number",excludeEmptyString:!0}).min(1,t=>{let{min:e}=t;return"Monthly canât be shorter than ".concat(e," number")}).max(6,t=>{let{max:e}=t;return"Monthly canât be longer than ".concat(e," numbers")})}).noUnknown();var c=n(75905),u=n(98921),m=n(98123),d=n(67802);let h=t=>{let{data:e,textArray:n,isShowModal:a,setIsShowModal:l,onSubmit:r,sendSubmit:h,onClose:f}=t,[_,b]=(0,i.useState)(!1),[p,v]=(0,i.useState)([]),[y,x]=(0,i.useState)(new o({})),{t:g}=(0,m.$G)(["lexicons"]),N=(0,i.useCallback)((t,e)=>{let n={...c.Kz};if(t.LimitName in n)return n[t.LimitName]="".concat(t.LimitValue||"0"),t;x(()=>n)},[]);(0,i.useEffect)(()=>{(null==e?void 0:e.length)&&v(e.filter(N))},[e,N]);let j=t=>{r({...t},p)},S=(0,i.useCallback)((t,e,n)=>{let s=e;if(!s||s.match(/^[0-9]+$/)){if("0"===s[0]){var i,a;s=null===(i=null===(a=null==e?void 0:e.split(""))||void 0===a?void 0:a.filter((t,e)=>!!e))||void 0===i?void 0:i.join("")}n(t,s)}},[]),$=t=>{b(!0),t()},C=()=>{let t=new o({});
1p.forEach(e=>{t[e.LimitName]="".concat(e.LimitDefaultValue||"0")}),j(t)};return(0,s.jsxs)(s.Fragment,{children:[p.length?(0,s.jsx)(d.Z,{initialValues:y,limitsData:p,isSetError:_,onSubmit:j,onHandleSubmit:$,setIsSetError:b,onHandleReset:C,onChangeText:S,validationSchema:o.schema,id:"wagerLimits",renderHeader:(0,s.jsx)("p",{className:"play-responsibly-form__text--sub",children:g("limits_PendingTimeNote",{TIME:"24 hours"})})}):null,a?(0,s.jsx)(u.Z,{isShowModal:a,setIsShowModal:l,textArray:n,onAction:()=>h(),onClose:f,title:"Wager limits ".concat(g("limits_willBeSetTo"))}):null]})};var f=h},15102:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var s=n(24511),i=n(11768);class a extends i.Z{constructor(t){super(),this.PlayerId="",this.Token="",this.ItemString="",this.ItemId=0,Object.assign(this,t)}}a.schema=s.Ry({PlayerId:s.Z_(),Token:s.Z_(),ItemString:s.Z_().min(6,"Password canât be shorter than 6 characters").required("Please enter your password").test("Please check the correctness of the entered password",(t,e)=>{let n=/[a-z]/.test(t),s=/[0-9]/.test(t),i=0;return[n,s].forEach(t=>t?i++:null),i>=2}),ItemId:s.Rx()}).noUnknown()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.