1"use strict";(self.webpackChunk_perlas_7bet=self.webpackChunk_perlas_7bet||[]).push([[5878],{ohRb:(e,t,i)=>{i.d(t,{Z:()=>$});var a=i("L5+t"),o=i("q1tI"),r=i("JRPe"),s=i("TSYQ"),n=i.n(s),c=i("J/B8"),l=i("6GXI"),m=i("qUxW"),d=i("s1Ad"),p=i("JQTf"),f=i("9CU5"),u=i("jFIl"),h=i("l4TE"),v=i("tIc/"),g=i("YNfE"),y=i("WzTv"),E=i("ISXp"),b=i("5QKI"),N=i("2SJc"),M=i("erPO"),C=i("rTvU");const S=(0,r.vU)({"app.form.verification.verificationMode.welcome.phoneNumber.reSendCode":{id:"app.form.verification.verificationMode.welcome.phoneNumber.reSendCode",defaultMessage:'Welcome to %SITE_NAME%! To start playing games and placing bets, please verify your phone number. We\'ve sent you a verification code in an SMS message. Once you get it, enter the code in the field below and click "verify".'},"app.form.verification.verificationMode.welcome.email.reSendCode":{id:"app.form.verification.verificationMode.welcome.email.reSendCode",defaultMessage:'Welcome to %SITE_NAME%! To start playing games and placing bets, please verify your e-mail. We\'ve sent you a verification code in an e-mail. Once you get it, enter the code in the field below and click "verify".'},"app.form.verification.verificationMode.welcome.phoneNumber.sendCode":{id:"app.form.verification.verificationMode.welcome.phoneNumber.sendCode",defaultMessage:"Welcome to %SITE_NAME%! To start playing games and placing bets, please verify your phone number."},"app.form.verification.verificationMode.welcome.email.sendCode":{id:"app.form.verification.verificationMode.welcome.email.sendCode",defaultMessage:"Welcome to %SITE_NAME%! To start playing games and placing bets, please verify your e-mail."},"app.form.verification.editMode.welcome.phoneNumber":{id:"app.form.verification.editMode.welcome.phoneNumber",defaultMessage:'Welcome to %SITE_NAME%! To start playing games and placing bets, please provide your phone number and click the "SEND" button. Weâll send you a verification code in an SMS message. When it comes, enter it and click "verifyâ.'},"app.form.verification.editMode.welcome.email":{id:"app.form.verification.editMode.welcome.email",defaultMessage:'Welcome to %SITE_NAME%! To start playing games and placing bets, please provide your e-mail and click the "SEND" button. Weâll send you a verification code via e-mail. When it comes, enter it and click "verifyâ.'},"app.form.verification.phoneNumber.label":{id:"app.form.verification.phoneNumber.label",defaultMessage:"Your phone"},"app.form.verification.email.label":{id:"app.form.verification.email.label",defaultMessage:"Your e-mail"},"app.form.verification.phoneNumber.code":{id:"app.form.verification.phoneNumber.code",defaultMessage:"SMS-code"},"app.form.verification.email.code":{id:"app.form.verification.email.code",defaultMessage:"Code"},"app.form.verification.phoneNumber.reSendCode.support":{id:"app.form.verification.phoneNumber.reSendCode.support",defaultMessage:'If you did not receive the SMS, please check that the provided phone number is correct and click "RE-SEND" to try again. If you have other troubles, please contact [support](/support::scrollTo).'},"app.form.verification.email.reSendCode.support":{id:"app.form.verification.email.reSendCode.support",defaultMessage:'If you did not receive the e-mail, please check that the provided e-mail address is correct and click "RE-SEND" to try again. If you have other troubles, please contact [support](/support::scrollTo).'},"app.form.verification.phoneNumber.sendCode.support":{id:"app.form.verification.phoneNumber.sendCode.support",defaultMessage:'To get the verification code via SMS, just click the "SEND" button. If anything goes wrong, please contact [support](/support::scrollTo).'},"app.form.verification.email.sendCode.support":{id:"app.form.verification.email.sendCode.support",defaultMessage:'To get verification code via e-mail, just click the "SEND" button. If anything goes wrong, please contact [support](/support::scrollTo).'},"app.form.verification.phoneNumber.edit":{id:"app.form.verification.phoneNumber.edit",defaultMessage:'If you want to change the specified phone number, click "Edit" button.'},"app.form.verification.email.edit":{id:"app.form.verification.email.edit",defaultMessage:'If you want to change the specified email, click "Edit" button'},"app.form.verification.phoneNumber.mode":{id:"app.form.verification.phoneNumber.mode",defaultMessage:"You can also verify your account via e-mail"},"app.form.verification.email.mode":{id:"app.form.verification.email.mode",defaultMessage:"You can also verify your account via phone number"},"app.form.verification.phoneNumberVerified":{id:"app.form.verification.phoneNumberVerified",defaultMessage:"Phone number is verified"},"app.form.verification.emailVerified":{id:"app.form.verification.emailVerified",defaultMessage:"Email is verified"},"app.form.verification.submit":{id:"app.form.verification.submit",defaultMessage:"Verify"},"app.form.verification.sendCode":{id:"app.form.verification.sendCode",defaultMessage:"Send code"},"app.form.verification.reSendCode":{id:"app.form.verification.reSendCode",defaultMessage:"Re-send code"},"app.form.verification.save":{id:"app.form.verification.save",defaultMessage:"Save"},"app.form.verification.cancel":{id:"app.form.verification.cancel",defaultMessage:"Cancel"},"app.form.verification.edit":{id:"app.form.verification.edit",defaultMessage:"Edit"},"app.form.verification.sendCodeSuccess.email":{id:"app.form.verification.sendCodeSuccess.email",defaultMessage:"A code has been sent on your email."},"app.form.verification.sendCodeSuccess.phoneNumber":{id:"app.form.verification.sendCodeSuccess.phoneNumber",defaultMessage:"A code has been sent to your phone number."},"app.form.verification.update.phoneNumber.success":{id:"app.form.verification.update.phoneNumber.success",defaultMessage:"Your phone number was changed successfully"},"app.form.verification.update.email.success":{id:"app.form.verification.update.email.success",defaultMessage:"Your email was changed successfully"},"app.form.verification.remainingAttempts":{id:"app.form.verification.remainingAttempts",defaultMessage:"You have {number} attempt(s) left."},"app.form.verification.no.attempts.left":{id:"app.form.verification.no.attempts.left",defaultMessage:"Sorry! You have no more attempts to re-send the code. Please contact [support](/support::scrollTo) to verify your account."},"app.form.verification.type.email":{id:"app.form.verification.type.email",defaultMessage:"Email"},"app.form.verification.type.phoneNumber":{id:"app.form.verification.type.phoneNumber",defaultMessage:"Phone number"}});var _,Z,k=i("QhvC"),D=i("y2gi");let T=(0,b.A)((Z=class VerificationForm extends o.Component{constructor(){super(...arguments),(0,a.Z)(this,"apiErrors",(0,N.$x)(this)),(0,a.Z)(this,"fieldNames",(0,M.pY)(this)),(0,a.Z)(this,"messages",(0,C.Z)(this,S,"app.form.verification."))}componentDidMount(){this.core.item("login").callSuccess("$VerificationNotification",!1)}componentWillUnmount(){this.type=void 0,this.send=void 0}get type(){const e=this.core.item("$VerificationForm.type")||"phoneNumber",{verification:t}=this,i="email"===e?"phoneNumber":"email";return e&&t.item(e).item("ask")?e:t.item(i).item("ask")?i:t.item("email").item("needed")?"email":"phoneNumber"}set type(e){this.core.item("$VerificationForm.type",e)}get send(){return this.core.item("$VerificationForm.send")}set send(e){this.core.item("$VerificationForm.send",e)}get edit(){return this.core.item("$VerificationForm.edit")}set edit(e){this.core.item("$VerificationForm.edit",e)}get verification(){return this.core.item("verification")}
1get verify(){return this.verification.item(this.type).item("verify")}get updateDetails(){return this.verification.item("updateDetails")}get details(){return this.core.item("profile").item("details")}get sendType(){const e=this.verification.item(this.type).item("lastTransaction");return!e||e.item("expired")||e.item("verified")?"sendCode":"reSendCode"}get ask(){return this.type&&this.verification.item(this.type).item("ask")}get attempts(){return this.verification.item(this.type).item("remainingAttempts")}get value(){return this.details.item(this.type)}get readableValue(){return"phoneNumber"===this.type?(new d.RW).input(this.value):this.value}get loadingElement(){this.verification.item("phoneNumber").item("sentNumber"),this.verification.item("email").item("sentNumber"),this.core.item("profile").item("details"),this.core.item("profile").item("initDetails");const e=this.core.item("profile").loaded("details"),t=this.core.item("profile").loaded("initDetails"),i=this.verification.item("phoneNumber").loaded("sentNumber"),a=this.verification.item("email").loaded("sentNumber");return e&&i&&a&&t?null:o.createElement(k.Z,null,o.createElement(c.default,null))}get reachedElement(){return this.attempts>0?null:o.createElement(v.Z,{className:"verification-form__text",text:this.messages("no.attempts.left")})}get editFormElement(){if(this.attempts<=0)return null;const{type:e}=this,t=this.core.item("profile").item("initDetails").item(e),i=t?t.item("validator"):()=>"",a=t?t.item("formatter"):e=>e;return!t||!!t.item("readOnly")?null:this.edit?o.createElement(h.Z,null,o.createElement("div",{className:"verification-form__edit-field"},o.createElement(D.Z,{name:e,type:e,error:(0,p.$)((()=>this.updateDetails.error(e))),value:(0,p.$)((()=>this.updateDetails.item(e)||this.details.item(e))),onChange:t=>this.updateDetails.item(e,t),onInit:()=>{this.updateDetails.reset(e).set(e,(0,m.aK)({value:(0,m.Bx)((()=>this.details.item(e))),validator:i,formatter:a}))}})),o.createElement("div",{className:"verification-form__edit-buttons"},o.createElement(f.Z,{className:"button-secondary",onClick:()=>{this.updateDetails.reset(e).callError(""),this.edit=!1}},this.messages("cancel")),o.createElement(f.Z,{className:"button-accent",loading:(0,p.$)((()=>this.updateDetails.callLoading())),onClick:()=>{this.updateDetails.call({include:e});const t=(0,l.gx)((()=>!this.updateDetails.callLoading()),(()=>{this.updateDetails.callError()||(this.edit=!1),t()}))}},this.messages("save")))):o.createElement(h.Z,null,o.createElement("div",{className:"verification-form__edit-description"},o.createElement(v.Z,{text:this.messages(`${this.type}.edit`)})),o.createElement("div",{className:"verification-form__edit-button"},o.createElement(f.Z,{className:"button-secondary",onClick:()=>{this.edit=!0}},this.messages("edit"))))}get staticFieldElement(){const{type:e}=this;return o.createElement("div",{className:"verification-form__static-field"},o.createElement("div",{className:"verification-form__field-title"},this.messages(`${e}.label`)),o.createElement("div",{className:"verification-form__field-value"},this.readableValue))}get descriptionElement(){return o.createElement("div",{className:"verification-form__description"},o.createElement(v.Z,{text:this.messages(`verificationMode.welcome.${this.type}.${this.sendType}`)}))}get footerDescriptionElement(){return this.attempts>0?o.createElement("div",{className:"verification-form__send-code-description"},o.createElement(v.Z,{text:this.messages(`${this.type}.${this.sendType}.support`)})):null}get sendButtonElement(){return this.attempts>0?o.createElement("div",{className:"verification-form__send"},o.createElement(f.Z,{className:"button-accent",loading:(0,p.$)((e=>e.item("verification").item(this.type).item("sendCode").callLoading())),onClick:()=>this.verification.item(this.type).item("sendCode").call()},this.messages(this.sendType)),o.createElement("div",{className:"verification-form__attempts"},this.messages("remainingAttempts",{number:this.attempts}))):null}get footerElement(){return o.createElement("div",{className:"verification-form__footer"},this.footerDescriptionElement,this.sendButtonElement,this.editFormElement,this.reachedElement)}get codeElement(){return"sendCode"===this.sendType?null:o.createElement("div",{className:"verification-form__send-code"},o.createElement(D.Z,{name:"code",type:"code",label:this.messages(`${this.type}.code`),error:(0,p.$)((()=>this.verify.error("code"))),onInit:()=>
1this.verify.reset("code"),value:(0,p.$)((()=>this.verify.item("code"))),onChange:e=>this.verify.item("code",e)}),o.createElement("div",{className:"verification-form__send-code-verify"},o.createElement(f.Z,{className:"button-accent",loading:(0,p.$)((()=>this.verify.callLoading())),onClick:()=>{const{verify:e}=this;e.call();const t=(0,l.gx)((()=>!e.callLoading()),(()=>{e.callError()||this.props.onSubmit(),t()}))}},this.messages("submit"))))}get contentElement(){return o.createElement(h.Z,null,this.descriptionElement,this.staticFieldElement,this.codeElement,this.footerElement)}get typeSelectorElement(){const e=this.verification.item("phoneNumber").item("ask"),t=this.verification.item("email").item("ask");return e&&t?o.createElement("div",{className:"verification-form__type"},o.createElement(E.Z,{onChange:e=>{this.type=e},value:this.type},["phoneNumber","email"].map((e=>o.createElement(u.Z,{key:e,value:e,control:o.createElement(y.Z,null),label:this.messages(`type.${e}`)}))))):null}get notificationsElement(){return o.createElement(h.Z,null,o.createElement(g.Z,{type:"error",float:!0,autoHide:!0,autoHideDuration:1e4,onClose:()=>this.verification.item(this.type).item("sendCode").callError("")},(0,p.$)((e=>this.apiErrors(this.verification.item(this.type).item("sendCode").callError())))),o.createElement(g.Z,{type:"success",float:!0,autoHide:!0,onClose:()=>this.verification.item(this.type).item("sendCode").callSuccess(!1)},(0,p.$)((e=>this.verification.item(this.type).item("sendCode").callSuccess()?o.createElement(v.Z,{text:this.messages(`sendCodeSuccess.${this.type}`)}):""))),o.createElement(g.Z,{type:"success",float:!0,autoHide:!0,onClose:()=>this.updateDetails.callSuccess(!1)},(0,p.$)((()=>{const e=void 0!==this.updateDetails.item("phoneNumber"),t=void 0!==this.updateDetails.item("email");return this.updateDetails.callSuccess()?o.createElement(o.Fragment,null,e&&o.createElement(v.Z,{text:this.messages("update.phoneNumber.success")}),t&&o.createElement(v.Z,{text:this.messages("update.email.success")})):""}))),o.createElement(g.Z,{type:"error",float:!0,autoHide:!0,onClose:()=>this.verify.callError("")},(0,p.$)((()=>this.apiErrors(this.verify.callError())))),o.createElement(g.Z,{type:"error",float:!0,autoHide:!0,autoHideDuration:1e4,onClose:()=>this.updateDetails.callError("")},(0,p.$)((()=>this.apiErrors(this.updateDetails.callError())))))}render(){return this.ask?this.loadingElement||o.createElement("div",{className:n()("verification-form",this.props.className)},this.notificationsElement,this.typeSelectorElement,this.contentElement):null}},(0,a.Z)(Z,"defaultProps",{onSubmit:()=>{}}),_=Z))||_;const $=(0,r.XN)(T)}}]); 2//# sourceMappingURL=5878.d7fbb31f.chunk.js.map
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.