1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1269],{98921:function(e,t,s){var n=s(52322),i=s(67190),a=s(63602),r=s(65592),l=s(15102),o=s(75905),m=s(98123),c=s(92496),d=s(70853);let u=e=>{let{isShowModal:t,isSetError:s,textArray:u,title:_,setIsSetError:h,setIsShowModal:b,onSubmit:p,onHandleSubmit:x,onAction:f,onClose:y,isTimeoutPopup:j,isSEPopup:v}=e,{t:S}=(0,m.$G)(["lexicons"]),N=(0,d.v4)(),g=()=>{b(""),(0,c.m)(y)&&y()};return(0,n.jsx)(i.default,{isShow:!!t,showModal:()=>g(),children:(0,n.jsxs)("div",{className:"modal-form__body",children:[(0,n.jsx)("div",{className:"modal-form__header",children:(0,n.jsx)("h2",{className:"heading__text",children:S("Responsible gaming")})}),(()=>{switch(t){case o.zr.PASSWORD:return(0,n.jsx)(a.J9,{initialValues:{...new l.Z({})},onSubmit:p,validationSchema:l.Z.schema,children:e=>{let{values:t,errors:i,handleChange:a,handleSubmit:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"modal-form__title",children:S("Please enter your password to confirm your request.")}),(0,n.jsx)("div",{className:"form__column",children:(0,n.jsx)(r.default,{type:"confirm-password",placeholder:"Password",value:t.ItemString,onHandleTextChange:e=>{a("ItemString")(e)},error:i.ItemString,isSetError:s,onFocus:()=>s&&h(!1)})}),(0,n.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,n.jsx)("button",{className:"btn",onClick:()=>x(l),"data-testid":"btn__LimitsPopup-submitPassword",children:S("submit")}),(0,n.jsx)("button",{className:"btn btn__transparent",onClick:()=>g(),"data-testid":"btn__LimitsPopup-cancel",children:S("cancel")})]})]})}});case o.zr.LIMITS:return(0,n.jsxs)(n.Fragment,{children:[_?(0,n.jsx)("div",{className:"modal-form__title",children:S(_)}):null,(0,n.jsx)("div",{className:"form__column",children:u.map(e=>(0,n.jsx)("p",{className:"play-responsibly-form__text",children:S(e)},e))}),(0,n.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,n.jsx)("button",{className:"btn",onClick:()=>f(),"data-testid":"btn__LimitsPopup-submitLimits",children:S("submit")}),(0,n.jsx)("button",{className:"btn btn__transparent",onClick:()=>g(),"data-testid":"btn__LimitsPopup-cancel",children:S("cancel")})]})]});default:return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"modal-form__title",children:"10000"===t?S("se_mga_indefinitely"):j?S("UK_Timeout_confirm_title")+": ".concat(S(t)):"UK"===N?S("UK_SE_duration_msg_months",{PERIOD:t}):S("Mga_SE_duration_msg_days")+S(t)}),(0,n.jsx)("div",{className:"form__column",children:(0,n.jsx)("p",{className:"play-responsibly-form__text",children:j?S("UK_Timeout_confirm_body"):"MGA"===N&&v?S("MGA_SE_confirmation_text_body"):S("limits_exclusion_approve")})}),(0,n.jsxs)("div",{className:"play-responsibly-form__buttons form__buttons",children:[(0,n.jsx)("button",{className:"btn",onClick:()=>b(o.zr.PASSWORD),"data-testid":"btn__LimitsPopup-confirm",children:S("confirm")}),(0,n.jsx)("button",{className:"btn btn__transparent",onClick:()=>g(),"data-testid":"btn__LimitsPopup-cancel",children:S("cancel")})]})]})}})()]})})};t.Z=u},21269:function(e,t,s){s.r(t),s.d(t,{default:function(){return x}});var n=s(52322),i=s(2784),a=s(25218),r=s(15102),l=s(63602),o=s(65592),m=s(24511),c=s(11768);class d extends c.Z{constructor(e){super(),this.timeout="",Object.assign(this,e)}}d.schema=m.Ry({timeout:m.Z_().matches(/^[0-9]+$/,"Minutes should be only number").matches(/\b(0?[1-9]|[1-3][0-9]|4[0-2])\b/,"Entered value must be between 1 - 42 days").max(2,e=>{let{max:t}=e;return"Day(s) canât be longer than ".concat(t," numbers")}).required("Day(s) is required field")}).noUnknown();var u=s(98123);let _=e=>{let{isSetError:t,setIsSetError:s,onSubmit:i,onHandleSubmit:a,onChangeText:r}=e,{t:m}=(0,u.$G)(["lexicons"]);return(0,n.jsx)(l.J9,{initialValues:{...new d({})},onSubmit:i,validationSchema:d.schema,children:e=>{let{values:i,errors:l,setFieldValue:c,handleSubmit:d}=e;return(0,n.jsxs)("div",{id:"timeOut",className:"play-responsibly-form",children:[(0,n.jsxs)("div",{className:"play-responsibly-form__content",children:[(0,n.jsx)("p",{className:"play-responsibly-form__text",children:m("limits_TimeOutLimits",{days:i.timeout})}),(0,n.jsx)("p",{className:"play-responsibly-form__text--sub",children:m("limits_TimeOut_notes")}),(0,n.jsx)("div",{className:"play-responsibly-form__items",children:(0,n.jsx)("div",{className:"play-responsibly-form__item",children:(0,n.jsx)("div",{className:"item__form",children:(0,n.jsxs)("div",{className:"form__column",children:[(0,n.jsx)("label",{className:"form__label",children:m("timeoutDurationInDays")}),(0,n.jsx)(o.default,{placeholder:"0",onHandleTextChange:e=>r("timeout",e,c),error:l.timeout,isSetError:t,onFocus:()=>t&&s(!1),value:i.timeout,"data-testid":"input__TimeoutFormInner-timeout"})]})})})})]}),(0,n.jsx)("div",{className:"play-responsibly-form__buttons",children:(0,n.jsx)("button",{className:"btn",onClick:()=>a(d),"data-testid":"btn__TimeoutFormInner-submit",children:m("submit")})})]})}})};var h=s(98921),b=s(5632);let p=()=>{let e=(0,b.useRouter)(),{fetcher:t}=(0,a.a)(),[s,l]=(0,i.useState)(!1),[o,m]=(0,i.useState)(""),[c,d]=(0,i.useState)(""),u=async s=>{let n=await t("/api/playResponsibly/doSetTimeout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(new r.Z({...s,ItemId:+c}))});(null==n?void 0:n.Response)&&e.push("/")},p=async e=>{m(e.timeout),d(e.timeout),l(!1)},x=(0,i.useCallback)((e,t,s)=>{let n=t;if(!n||n.match(/^[0-9]+$/)){if("0"===n[0]){var i,a;n=null===(i=null===(a=null==t?void 0:t.split(""))||void 0===a?void 0:a.filter((e,t)=>
1!!t))||void 0===i?void 0:i.join("")}s(e,n)}},[]),f=e=>{l(!0),e()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_,{isSetError:s,setIsSetError:l,onSubmit:p,onHandleSubmit:f,onChangeText:x}),o?(0,n.jsx)(h.Z,{isTimeoutPopup:!0,isShowModal:o,isSetError:s,setIsShowModal:m,setIsSetError:l,onSubmit:u,onHandleSubmit:f}):null]})};var x=p},15102:function(e,t,s){s.d(t,{Z:function(){return a}});var n=s(24511),i=s(11768);class a extends i.Z{constructor(e){super(),this.PlayerId="",this.Token="",this.ItemString="",this.ItemId=0,Object.assign(this,e)}}a.schema=n.Ry({PlayerId:n.Z_(),Token:n.Z_(),ItemString:n.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",(e,t)=>{let s=/[a-z]/.test(e),n=/[0-9]/.test(e),i=0;return[s,n].forEach(e=>e?i++:null),i>=2}),ItemId:n.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.