PageSourceSearch

https://www.bitsler.com/assets/VerificationModal-CW9XmSVa.js

js bitsler.com collected 2026-09-25 15:04:10 UTC 5,361 bytes, 1 lines download raw bytes

1import{r as n,o,c as d,w as p,h as u,a as l,t as c,b as m,f as v,e as S,n as C,i as K,m as k,j as b}from"./vendor-vue-DIYad8M1.js";import{a as w,E as A,B as I,V as L,K as f}from"./index-f-847hR-.js";import M from"./Modal-Bjrjs-hG.js";import{P,a as F,K as N}from"./PersonalDetailsForm-C0GOC4Ue.js";import"./modulepreload-polyfill-CX_K8GS1.js";import"./vendor-howler-CJqtEv0-.js";import"./vendor-socket-C1FSkFaK.js";import"./HtmlContent-A9AczmG8.js";import"./fullscreen-u8WF8tFM.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"66e1116"};var s=new t.Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="6f103ba9-7ec9-4866-8e55-561aab42a705",t._sentryDebugIdIdentifier="sentry-dbid-6f103ba9-7ec9-4866-8e55-561aab42a705")}catch{}})();const h=()=>({first_name:null,last_name:null,place_of_birth:null,birthdate:null,gender:null,occupation_industry:null,occupation:null}),B={name:"ModalsVerificationModal",components:{Modal:M,KycVeriff:N,ProgressSteps:F,PersonalDetailsForm:P},mixins:[A,I,L],data(){return{initData:h(),data:h(),countries:{},allCountries:{},currentStep:1,submitting:!1,dataLoaded:!1}},computed:{...b("casino",["gamesCount"]),...b("user",["verified","showVerificationModal"]),requiredLevel(){return this.showVerificationModal===!0?f.KYC_POA_DONE:this.showVerificationModal},firstStep(){return this.requiredLevel===f.KYC_SIMPLE?1:2},lastStep(){return this.requiredLevel===f.KYC_SIMPLE?1:this.requiredLevel===f.KYC_IDV_DONE?2:3},totalSteps(){return this.lastStep-this.firstStep+1},stepTitle(){return this.currentStep===1?this.$t("settings.personal-details.title"):this.currentStep===2?this.$t("settings.verification.section_title"):this.$t("settings.poa.title")}},watch:{verified(){this.currentStep===2&&this.isKycIdvAndAbove&&this.lastStep>=3&&(this.currentStep=3)}},mounted(){this.currentStep=this.firstStep,this.fetchData()},methods:{...k("user",["updateVerified","setShowVerificationModal"]),...K("casino",["getGames"]),close(){this.setShowVerificationModal(!1)},fetchData(){Promise.all([this.axios.post("get-countries",{}),this.axios.post("get-contact-info",{})]).then(([t,s])=>{if(this.$.isUnmounted)return;this.countries=t.data.countries,this.allCountries=t.data.all_countries;const r=h(),i=s.data;for(const e in r)r[e]=i[e]!==void 0?i[e]:null;this.data=r,this.initData=JSON.parse(JSON.stringify(r)),this.dataLoaded=!0,this.firstStep===1?!Object.values(r).some(a=>a===""||a===null)&&this.isKycSimpleAndAbove&&this.close():this.isKycIdvAndAbove&&this.isKycEligibleForPoa&&this.lastStep>=3&&(this.currentStep=3)}).catch(()=>{})},submitPersonalDetails(t){t.preventDefault();let s=!0;this.generalError=void 0;const r={};for(const i in this.data)this.initData[i]||(this.data[i]?r[i]=this.data[i]:(this.addError(i,"empty"),s=!1));s&&(this.submitting=!0,this.axios.post("update-contact-info",r).then(()=>{this.updateVerified(1),this.getGames(),this.close()},i=>{this.$.isUnmounted||this.addErrorFromServer(i,this.$t("settings.personal-details.error"))}).finally(()=>{this.submitting=!1}))}}},O={class:"verification-modal-step-title"},T={key:1,class:"verification-modal-step"},Y={class:"verification-modal-intro text-center"},q={class:"verification-modal-actions"},z={key:2,class:"verification-modal-step text-center"},R={key:0,class:"verification-modal-veriff"};function j(t,s,r,i,e,a){const _=n("progress-steps"),g=n("ui-alert"),y=n("personal-details-form"),E=n("ui-button"),D=n("kyc-veriff"),V=n("modal");return o(),d(V,{title:t.$t("settings.verification.account_verification"),size:"lg",submodal:"","body-class":"verification-modal-body","content-class":"verification-modal-content",class:"verification-modal",onHideSubmodal:a.close},{default:p(()=>[a.totalSteps>1?(o(),d(_,{key:0,"max-steps":a.totalSteps,"available-steps":e.currentStep-a.firstStep+1,"current-step-number":e.currentStep-a.firstStep+1},null,8,["max-steps","available-steps","current-step-number"])):u("",!0),s[0]||(s[0]=l("div",{class:"verification-modal-logo"},[l("div",{class:"verification-modal-logo-img"}
1)],-1)),l("h2",O,c(a.stepTitle),1),e.currentStep===1?(o(),m("div",T,[l("p",Y,c(t.$t("settings.verification.modal_intro")),1),t.generalError?(o(),d(g,{key:0,variant:"danger",class:"alert-icon-danger",show:""},{default:p(()=>[v(c(t.generalError),1)]),_:1})):u("",!0),S(y,{data:e.data,"init-data":e.initData,countries:e.countries,"all-countries":e.allCountries,"field-errors":t.fieldErrors,onRemError:t.remError},null,8,["data","init-data","countries","all-countries","field-errors","onRemError"]),l("div",q,[S(E,{variant:"primary",class:"text-capitalize verification-modal-submit",disabled:e.submitting,onClick:a.submitPersonalDetails},{default:p(()=>[v(c(t.$t("settings.personal-details.button")),1)]),_:1},8,["disabled","onClick"])])])):e.currentStep===2||e.currentStep===3?(o(),m("div",z,[l("span",{class:C(["settings-verification-badge mb-3",{verified:e.currentStep===2&&t.isKycIdvAndAbove||e.currentStep===3&&t.isKycPoaAndAbove}])},c(t.$t(t.printVerificationStatusForLevel(t.userVerifiedStatus))),3),e.currentStep===2&&t.isKycEligibleForIdv||e.currentStep===3&&t.isKycEligibleForPoa?(o(),m("div",R,[(o(),d(D,{key:e.currentStep}))])):u("",!0)])):u("",!0)]),_:1},8,["title","onHideSubmodal"])}const $=w(B,[["render",j]]);export{$ as default};

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.