1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"v4.32.3"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:dot-country-web-client":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7af880e0-cd37-4f9a-8cc6-7529255f887b",e._sentryDebugIdIdentifier="sentry-dbid-7af880e0-cd37-4f9a-8cc6-7529255f887b")}catch(e){}}();"use strict";(self.webpackChunksuperbet_country=self.webpackChunksuperbet_country||[]).push([["src_federations_account_public_lazy_ComDocumentUploadMixin_ts"],{21373:function(e,t,n){n.d(t,{CT:function(){return c},Jj:function(){return i},Nh:function(){return l},QW:function(){return s},vp:function(){return a}});var o=n(54612),r=n(56027);function u(e){var t=e.split(".");return(t.length>1?t.pop().toLowerCase():"")||void 0}function i(){o.o5.logEvent("document_upload_screen_open",{entryPoint:r.DwP.ACCOUNT_CENTRE})}function a(){o.o5.logEvent("document_upload_interaction_upload_click",{})}function c(){o.o5.logEvent("document_upload_interaction_source_select",{source:r.pcT.FILE})}function s(e,t){o.o5.logEvent("document_upload_result_success",{source:r.pcT.FILE,fileType:u(e.name),fileSizeKb:Math.round(e.size/1024),documentCount:t})}function l(e,t,n){o.o5.logEvent("document_upload_result_error",{errorType:e,source:t?r.pcT.FILE:void 0,fileType:t?u(t.name):void 0,fileSizeKb:t?Math.round(t.size/1024):void 0,documentCount:n})}},83031:function(e,t,n){var o=n(41374),r=n(53750),u=n(51735),i=n(12839),a=n(79923),c=n(36090),s=n(42199),l=n(20933),d=n(78564),f=n(94122),_=n(56027),p=n(21373);t.A={methods:{onSubmit:function(){var e,t,n,h=this;this.isLoading=!0,this.error="";var E=this.fields.file.value[0],y=(null==(n=this.user)||null==(t=n.kycDetails)||null==(e=t.docs)?void 0:e.length)||0,v=new FileReader;v.readAsDataURL(E),v.onload=function(){return(0,o._)(function(){var e;return(0,u._)(this,function(t){switch(t.label){case 0:return e=this,[4,(0,f.oq)(function(){return(0,o._)(function(){return(0,u._)(this,function(e){switch(e.label){case 0:return[4,c.D.getInstance().uploadIdCard(v.result,E.name)];case 1:return e.sent(),(0,s.K)({eventName:s.G.VerifyIdentityImageUpload,method:d.tD.Upload,idVerificationStoreGetters:(0,l.a)()}),this.shouldReportDocumentUploadEvent()&&(0,p.QW)(E,y+1),this.$emit("success"),[2]}})}).call(e)},{onError:function(t){(0,r._)(t,i.yI)?(e.asyncErrors=t.fieldErrors,e.shouldReportDocumentUploadEvent()&&(0,p.Nh)("DocumentUploadLimitExceeded"===t.errorCode?_.frZ.LIMIT_REACHED:_.frZ.UPLOAD_FAILED,E,y)):(e.error=e.$t("Something went wrong. Please try again"),e.$emit("error",t),e.shouldReportDocumentUploadEvent()&&(0,p.Nh)(_.frZ.UPLOAD_FAILED,E,y))},showGlobalError:!1})];case 1:return t.sent(),this.isLoading=!1,[2]}})}).call(h)},v.onerror=function(e){h.isLoading=!1,h.error=h.$t("Something went wrong. Please try again"),a.v.error(e),h.shouldReportDocumentUploadEvent()&&(0,p.Nh)(_.frZ.FILE_PICKER_ERROR,null,y)}}}}},70731:function(e,t,n){n.r(t),n.d(t,{default:function(){return o.A}});var o=n(83031)}}]);
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.