PageSourceSearch

https://babki.app/build/assets/VerificationKyc-cPdoWb7b.js

js babki.app collected 2026-10-02 00:26:51 UTC 23,211 bytes, 6 lines download raw bytes

1import{_ as D}from"./index-D1Zl-kIc.js";import{_ as V,a as E,b as N,c as P,d as H}from"./CardTitle.vue_vue_type_script_setup_true_lang-BOAUK09W.js";import{c as se}from"./utils-BQHNewu7.js";import{c as ae}from"./createContext-CInMwZ4Y.js";import{i as K}from"./nullish-CHIgUVhi.js";import{u as Q,a as X}from"./useForwardExpose-CA5ZRFK5.js";import{P as Z}from"./Primitive-DeyDPfYZ.js";import{f as O,w as G,N as re,p as I,j as c,O as ee,k as o,s as te,o as k,P as ie,i as r,G as le,y as ce,J as de,g as z,l as h,m as v,t as m,n as J,E as ue,Q as fe,v as M,r as me}from"./index-D9grhoKh.js";import{u as he}from"./useSessionAnalytics-D5OUWp7S.js";import{a as L}from"./axios-_4fM2Zu4.js";import{u as pe}from"./vue-i18n-BeJ1ezAu.js";import{C as Y}from"./circle-check-big-DZ_6iT9N.js";import{L as q}from"./loader-circle-wQKTazCS.js";import{C as ve}from"./circle-x-kilCG3IV.js";import{C as ge}from"./clock-C4RWNEMy.js";import{S as _e}from"./shield-check-CQe5Ragx.js";import{C as ye}from"./circle-alert-CM7nvAK9.js";import"./index-Dlm2pfU4.js";import"./verisoul-web-C5xQl4sV.js";import"./usePostHog-63_Be0Qe.js";import"./device-D8czfixX.js";import"./createLucideIcon-DEP5_IEF.js";const A=100,[we,ke]=ae("ProgressRoot"),R=n=>typeof n=="number";function be(n,e){return K(n)||R(n)&&!Number.isNaN(n)&&n<=e&&n>=0?n:(console.error(`Invalid prop \`value\` of value \`${n}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
2  - a positive number
3  - less than the value passed to \`max\` (or ${A} if no \`max\` prop is set)
4  - \`null\`  or \`undefined\` if the progress is indeterminate.
5
6Defaulting to \`null\`.`),null)}function xe(n){return R(n)&&!Number.isNaN(n)&&n>0?n:(console.error(`Invalid prop \`max\` of value \`${n}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${A}\`.`),A)}var Ce=O({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:A},getValueLabel:{type:Function,required:!1,default:(n,e)=>R(n)?`${Math.round(n/e*A)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue","update:max"],setup(n,{emit:e}){const t=n,i=e;Q();const s=X(t,"modelValue",i,{passive:t.modelValue===void 0}),l=X(t,"max",i,{passive:t.max===void 0});G(()=>s.value,async a=>{const f=be(a,t.max);f!==a&&(await re(),s.value=f)},{immediate:!0}),G(()=>t.max,a=>{const f=xe(t.max);f!==a&&(l.value=f)},{immediate:!0});const d=te(()=>K(s.value)?"indeterminate":s.value===l.value?"complete":"loading");return ke({modelValue:s,max:l,progressState:d}),(a,f)=>(k(),I(o(Z),{"as-child":a.asChild,as:a.as,"aria-valuemax":o(l),"aria-valuemin":0,"aria-valuenow":R(o(s))?o(s):void 0,"aria-valuetext":a.getValueText?.(o(s),o(l)),"aria-label":a.getValueLabel(o(s),o(l)),role:"progressbar","data-state":d.value,"data-value":o(s)??void 0,"data-max":o(l)},{default:c(()=>[ee(a.$slots,"default",{modelValue:o(s)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),Ie=Ce,Se=O({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(n){const e=n,t=we();return Q(),(i,s)=>(k(),I(o(Z),ie(e,{"data-state":o(t).progressState.value,"data-value":o(t).modelValue?.value??void 0,"data-max":o(t).max.value}),{default:c(()=>[ee(i.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),Te=Se;const Ve=O({__name:"Progress",props:{modelValue:{default:0},max:{},getValueLabel:{},getValueText:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){const e=n,t=te(()=>{const{class:i,...s}=e;return s});return(i,s)=>(k(),I(o(Ie),ie(t.value,{class:o(se)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e.class)}),{default:c(()=>[r(o(Te),{class:"bg-primary h-full w-full flex-1 transition-all",style:le({transform:`translateX(-${100-(e.modelValue||0)}%)`})},null,8,["style"])]),_:1},16,["class"]))}});var $=function(){return $=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++)for(var s in e=arguments[t])Object.prototype.hasOwnProperty.call(e,s)&&(n[s]=e[s]);return n},$.apply(this,arguments)};function W(n){return n.endsWith("-v2")?2:1}var oe=(function(){function n(e,t,i,s){var l=this;this.iframe=null,this.iframeId=null,this.sessionId="",this.$container=null,this.initialized=!1,this.scrollPosition=-1,this.scrollElement=null,this.onMessage=function(d){l.onSdkMessage(d)},this.baseUrl=e||this.getCurrentBaseUrl("https://in.sumsub.com",t.accessToken),this.config=t,this.config.packageVersion=this.getVersion(),this.config.origin=location.origin,this.callbacks=i,this.options=s}return n.prototype.getVersion=function(){return"2.6.1"},n.prototype.getCurrentBaseUrl=function(e,t){var i=["_act-sbx-jwt-","_act-jwt-"].find(function(a){return t.startsWith(a)});if(i)for(var s=0,l=t.replace(i,"").replace("-v2","").split(".").map(function(a){try{return atob(a)}catch{return a}}).map(function(a){try{return JSON.parse(a)}catch{return a}});s<l.length;s++){var d=l[s];if(d?.url)return d.url}return e},n.prototype.getIframeId=function(){if(this.config.version===2)try{return btoa(this.config.accessToken)}catch{return this.config.accessToken}return String(Math.floor(1e8*Math.random()))},n.prototype.launch=function(e){this.options.addViewportTag&&this.addViewportTag(),this.iframe=this.createIframe(e),this.sessionId="",this.iframeId="id_"+this.getIframeId(),this.iframe&&this.config?(this.registerEventListener(),this.iframe.src=this.getIframeSrc()):console.error("Idensic was not initialized since either provided element was not found in the DOM or invalid config")},n.prototype.addViewportTag=function(){var e=document.getElementsByName("viewport");if(!e||e.length===0){var t=document.createElement("meta");t.setAttribute("name","viewport"),t.setAttribute("content","width=device-width,user-scalable=yes"),document.head.appendChild(t)}},n.prototype.createIframe=function(e){var t=typeof e=="string"?document.querySelector(e):e;if(!t)return console.error("Provide a valid selector for the iframe container"),null;this.$container=t;var i=document.createElement("iframe");for(i.width="100%",i.scrolling="no",i.allow="camera; microphone; geolocation; clipboard-write",i.setAttribute("frameborder","0");t.firstChild;)t.removeChild(t.firstChild);return t.appendChild(i),i},n.prototype.getIframeSrc=function(){var e="?_="+this.iframeId,t=this.config.version===2?"/websdk":"/idensic",i=this.baseUrl+t+"/websdk.html";return this.config.version===2&&this.config.theme&&(e+="&theme="+this.config.theme),this.config.version===2&&this.config.customizationName&&(e+="&customizationName="+encodeURIComponent(this.config.customizationName)),this.config.version===2&&this.config.translationName&&(e+="&translationName="+encodeURIComponent(this.config.translationName)),i+e},n.prototype.registerEventListener=function(){window.addEventListener("message",this.onMessage)},n.prototype.onSdkMessage=function(e){var t;if(this.baseUrl===e.origin){var i=e.data;if(i.method&&~i.method.indexOf("idCheck")&&(!this.sessionId||this.sessionId===i.sessionId)&&(!((t=this.iframe)===null||t===void 0)&&t.contentWindow)){if
6(i.method=="idCheck.onReady"&&i.frameId===this.iframeId){this.sessionId=i.sessionId;var s={options:{adaptIframeHeight:this.options.adaptIframeHeight,enableScrollIntoView:this.options.enableScrollIntoView}};this.iframe.contentWindow.postMessage($($({method:"idCheck.init"},this.config),s),"*")}if(i.method=="idCheck.onInitialized"&&(this.initialized=!0),i.method=="idCheck.onResize"&&this.options.adaptIframeHeight&&(this.iframe.style.height=i.height+"px"),i.method!="idCheck.onSetBorderRadius")if(i.method=="idCheck.scrollTo"&&this.options.adaptIframeHeight)this.scrollTo(i.top);else if(i.method!="idCheck.getScrollPosition")if(i.method!="idCheck.restoreScrollPosition"){var l=i.method;delete i.method,delete i.frameId,delete i.sessionId,l==="idCheck.onError"&&i.code==="invalid-token"?this.callExpirationHandler():l==="idCheck.onError"&&typeof this.callbacks.onError=="function"?this.callbacks.onError(i):typeof this.callbacks.onMessage=="function"&&this.callbacks.onMessage(l,i)}else this.restoreScrollPosition();else this.getScrollPosition();else this.iframe&&i.radius&&typeof i.radius=="string"&&(this.iframe.style.borderRadius=i.radius,this.iframe.style.overflow="hidden")}}},n.prototype.callExpirationHandler=function(){var e=this,t=this.callbacks.expirationHandler;t.legacy?t.handler(function(i){return e.updateAccessTokenOrReinitialize(i)}):t.handler().then(function(i){return e.updateAccessTokenOrReinitialize(i)},function(i){i!=null||(i="Failed to update access token"),i.message&&(i=i.message),typeof i!="string"&&(i=String(i)),e.updateAccessToken(null,i)})},n.prototype.updateAccessTokenOrReinitialize=function(e){var t=e?W(e):this.config.version;if(e&&this.iframe&&!this.initialized&&this.config.version!=t)return this.sessionId="",this.config.accessToken=e,this.config.version=t,this.baseUrl=this.getCurrentBaseUrl(this.baseUrl,e),this.iframeId="id_"+this.getIframeId(),void(this.iframe.src=this.getIframeSrc());this.updateAccessToken(e)},n.prototype.getScrolledElement=function(){for(var e,t=(e=this.iframe)===null||e===void 0?void 0:e.parentElement;t?.scrollTop===0&&t?.tagName!=="BODY";)t=t?.parentElement;return t},n.prototype.getScrollPosition=function(){var e,t,i=this.getScrolledElement();this.scrollPosition=i?.scrollTop||-1,this.scrollElement=this.scrollPosition>0&&i?i:null,(t=(e=this.iframe)===null||e===void 0?void 0:e.contentWindow)===null||t===void 0||t.postMessage({method:"idCheck.scrollPositionStored"},"*")},n.prototype.restoreScrollPosition=function(){this.scrollElement&&this.scrollPosition>=0&&(this.scrollElement.scrollTop=this.scrollPosition),this.scrollPosition=-1,this.scrollElement=null},n.prototype.scrollTo=function(e){var t;if(this.options.enableScrollIntoView){var i=this.getScrolledElement();if(i?.scrollTop===0&&i?.tagName==="BODY"){var s=((t=this.iframe)===null||t===void 0?void 0:t.getBoundingClientRect().top)||0;window.scrollTo({top:s+e,behavior:"smooth"})}else i?.scrollTo({top:e,behavior:"smooth"})}},n.prototype.updateAccessToken=function(e,t){var i,s;(s=(i=this.iframe)===null||i===void 0?void 0:i.contentWindow)===null||s===void 0||s.postMessage({method:"idCheck.updateAccessToken",accessToken:e,error:t},"*")},n.prototype.destroy=function(){for(window.removeEventListener("message",this.onMessage);this.$container&&this.$container.firstChild;)this.$container.removeChild(this.$container.firstChild);this.$container=null},n.prototype.navigateBack=function(){var e,t;(t=(e=this.iframe)===null||e===void 0?void 0:e.contentWindow)===null||t===void 0||t.postMessage({method:"idCheck.callNavigationBack"},"*")},n.prototype.singleStepNext=function(e){var t,i;(i=(t=this.iframe)===null||t===void 0?void 0:t.contentWindow)===null||i===void 0||i.postMessage({method:"idCheck.callSingleStepNext",step:e},"*")},n.prototype.setLanguage=function(e){var t,i;(i=(t=this.iframe)===null||t===void 0?void 0:t.contentWindow)===null||i===void 0||i.postMessage({method:"idCheck.callSet
6Language",language:e},"*")},n.prototype.setTheme=function(e){var t,i;(i=(t=this.iframe)===null||t===void 0?void 0:t.contentWindow)===null||i===void 0||i.postMessage({method:"idCheck.callSetTheme",theme:e},"*")},n})(),Ee=(function(){function n(e,t){if(this.config=null,this.eventHandlers={},this.anyEventHandler=null,this.options={adaptIframeHeight:!0,addViewportTag:!0,enableScrollIntoView:!0},typeof e!="string")throw new Error("Access token must be a string");if(typeof t!="function")throw new Error("updateAccessToken callback is required");this.accessToken=e,this.updateAccessToken=t}return n.prototype.onTestEnv=function(){return this},n.prototype.withBaseUrl=function(e){return this.baseUrl=e,this},n.prototype.withConf=function(e){return this.config=e,this},n.prototype.withOptions=function(e){var t;return e.hasOwnProperty("adaptIframeHeight")&&(this.options.adaptIframeHeight=e.adaptIframeHeight),e.hasOwnProperty("addViewportTag")&&(this.options.addViewportTag=e.addViewportTag),this.options.enableScrollIntoView=(t=e.enableScrollIntoView)===null||t===void 0||t,this},n.prototype.on=function(e,t){return this.eventHandlers[e]=t,this},n.prototype.onMessage=function(e){return this.anyEventHandler=e,this},n.prototype.onNavigationUiControlsStateChanged=function(e){return this.eventHandlers["idCheck.onNavigationUiControlsStateChanged"]=e,this},n.prototype.build=function(){var e,t,i,s,l,d,a,f,b,g,_,y,x,w,C,S=this,U=W(this.accessToken);return new oe(this.baseUrl,{version:U,theme:(e=this.config)===null||e===void 0?void 0:e.theme,customizationName:(t=this.config)===null||t===void 0?void 0:t.customizationName,translationName:(i=this.config)===null||i===void 0?void 0:i.translationName,accessToken:this.accessToken,lang:(s=this.config)===null||s===void 0?void 0:s.lang,email:(l=this.config)===null||l===void 0?void 0:l.email,phone:(d=this.config)===null||d===void 0?void 0:d.phone,country:(a=this.config)===null||a===void 0?void 0:a.country,uiConf:(f=this.config)===null||f===void 0?void 0:f.uiConf,i18n:(b=this.config)===null||b===void 0?void 0:b.i18n,documentsByCountries:(g=this.config)===null||g===void 0?void 0:g.documentsByCountries,documentDefinitions:(_=this.config)===null||_===void 0?void 0:_.documentDefinitions,autoSelectDocumentDefinitions:(y=this.config)===null||y===void 0?void 0:y.autoSelectDocumentDefinitions,controlledNavigationBack:(x=this.config)===null||x===void 0?void 0:x.controlledNavigationBack,singleStep:(w=this.config)===null||w===void 0?void 0:w.singleStep,preferredCameras:(C=this.config)===null||C===void 0?void 0:C.preferredCameras},{expirationHandler:{legacy:!1,handler:this.updateAccessToken},onMessage:function(T,B){var p,u=S.eventHandlers[T];u?u(B):(p=S.anyEventHandler)===null||p===void 0||p.call(S,T,B)}},this.options)},n})(),Ne=(function(){function n(e,t){this.debugEnabled=!1,this.options={adaptIframeHeight:!0,addViewportTag:!0,enableScrollIntoView:!0},this.config=null,this.accessToken=null,this.expirationHandler=null,this.baseUrl=e,this.flowName=t}return n.prototype.withAccessToken=function(e,t){if(this.accessToken=e,!t||typeof t!="function")throw new Error('Invalid parameter, "expirationHandler" must be a function');return this.expirationHandler=t,this},n.prototype.debug=function(e){return this.debugEnabled=e,this},n.prototype.withOptions=function(e){var t;return e.hasOwnProperty("adaptIframeHeight")&&(this.options.adaptIframeHeight=e.adaptIframeHeight),e.hasOwnProperty("addViewportTag")&&(this.options.addViewportTag=e.addViewportTag),this.options.enableScrollIntoView=(t=e.enableScrollIntoView)===null||t===void 0||t,this},n.prototype.withConf=function(e){return this.config=e,this},n.prototype.build=function(){var e,t,i,s,l,d,a,f,b,g,_,y,x,w,C;if(!this.accessToken||!this.expirationHandler)throw new Error("Configure access token end the expiration handler before");var S=W(this.accessToken);return new oe(this.baseUrl,{version:S,theme:(e=this.config)===null||e===void 0?void 0:e.theme,customizationName:(t=this.config)===null||t===void 0?void 0:t.customizationName,translationName:(i=this.config)===null||i===void 0?void 0:i.translationName,accessToken:this.accessToken,flowName:this.flowName,lang:(s=this.config)===null||s===void 0?void 0:s.lang,email:(l=this.config)===null||l===void 0?void 0:l.email,phone:(d=this.config)===null||d===void 0?void 0:d.phone,country:(a=this.config)===null||a===void 0?void 0:a.country,uiConf:(f=this.config)===null||f===void 0?void 0:f.uiConf,i18n:(b=this.config)===null||b===void 0?void 0:b.i18n,documentsByCountries:(g=this.config)===null||g===void 0?void 0:g.documentsByCountries,documentDefinitions:(_=this.config)===null||_===void 0?void 0:_.documentDefinitions,autoSelectDocumentDefinitions:(y=this.config)===null||y===void 0?void 0:y.autoSelectDocumentDefinitions,singleStep:(x=this.config)===null||x===void 0?void 0:x.singleStep},{expirationHandler:{legacy:!0,handler:this.expirationHandler},onMessage:(w=this.config)===null||w===void 0?void 0:w.onMessage,onError:(C=this.config)===null||C===void 0?void 0:C.onError},{adaptIframeHeight:this.options.adaptIframeHeight,addViewportTag:this.options.addViewportTag,enableScrollIntoView:this.options.enableScrollIntoView,debug:this.debugEnabled})},n})(),Pe={Builder:function(n,e){return new Ne(n,e)},init:function(n,e){return new Ee(n,e)}};const He={class:"flex min-h-screen items-center justify-center bg-background p-4"},Me={class:"mb-4 flex justify-center"},Ae={class:"text-center text-sm text-muted-foreground"},Be={class:"mb-4 flex justify-center"},je={class:"text-center text-sm text-muted-foreground"},Re={class:"flex justify-center"},$e={class:"mb-4 flex justify-center"},Oe={class:"text-center text-sm text-muted-foreground"},Ue={class:"flex justify-center gap-3 pt-2"},De={class:"mb-4 flex justify-center"},ze={class:"text-center text-sm text-muted-foreground"},Le={class:"flex justify-center"},qe={class:"mb-4 flex justify-center"},We={key:0,class:"flex flex-col items-center justify-center py-12"},Fe={class:"mt-4 text-sm text-muted-foreground"},Xe={key:1,class:"flex flex-col items-center justify-center py-12"},Ge={class:"mt-4 text-sm text-destructive"},Je={class:"mt-2 text-xs text-muted-foreground"},Ye={class:"mt-4"},wt=O({__name:"VerificationKyc",setup(n){const{t:e}=pe(),i=fe()?.appContext.config.globalProperties.route,{getSessionId:s}=he({immediate:!1}),l=M(!0),d=M(""),a=M(null),f=M(0),b=M(null);let g=null,_=null,y=null;const x=async()=>{const{data:p}=await L.post(i("verification.refreshToken"));if(p.success&&p.access_token)return p.access_token;throw new Error("Failed to refresh token")},w=()=>{me.visit(i("home"))},C=()=>{window.location.reload()},S=async()=>{try{const{data:p}=await L.get(i("verification.status"));return p.status==="active"}catch{return!1}},U=()=>{a.value="confirming",f.value=0;const p=5e3,u=50,j=100/p*u;_=setInterval(()=>{f.value=Math.min(f.value+j,100)},u);let F=0;const ne=5;y=setInterval(async()=>{F++,await S()?(T(),f.value=100,a.value="approved",setTimeout(()=>w(),500)):F>=ne&&(T(),f.value=100,a.value="submitted")},1e3)},T=()=>{_&&(clearInterval(_),_=null),y&&(clearInterval(y),y=null)},B=p=>{if(!b.value){d.value="Failed to initialize verification widget",l.value=!1;return}g=Pe.init(p,()=>x()).withConf({lang:"en"}).withOptions({adaptIframeHeight:!0}).on("idCheck.onReady",()=>{l.value=!1}).on("idCheck.onStepCompleted",u=>{console.log("Sumsub step completed:",u)}).on("idCheck.onError",u=>{console.error("Sumsub error:",u),d.value="Verification encountered an error. Please try again."}).on("idCheck.onApplicantSubmitted",()=>{console.log("Sumsub applicant submitted - verification documents sent"),a.value="submitted"}).on("idCheck.onApplicantStatusChanged",u=>{if(console.log("Sumsub applicant status changed:",u),u.reviewStatus==="completed"){s();const j=u.reviewResult?.reviewAnswer?.toUpperCase();j==="GREEN"?U():j==="RED"&&(a.value="rejected")}else u.reviewStatus==="pending"&&(a.value="submitted")}).build(),g.launch("#sumsub-websdk-container")};return ce(async()=>{try{if(!await s(!0)){d.value=e("common.verification_kyc.error_security"),l.value=!1;return}const{data:u}=await L.post(i("verification.start"));u.success&&u.provider==="sumsub"&&u.access_token?B(u.access_token):u.provider==="verisoul"&&u.verification_url?window.location.href=u.verification_url:(d.value=u.message||e("common.verification_kyc.error_start_failed"),l.value=!1)}catch{d.value=e("common.verification_kyc.error_generic"),l.value=!1}}),de(()=>{T(),g&&(g=null)}),(p,u)=>(k(),z("div",He,[a.value==="confirming"?(k(),I(o(H),{key:0,class:"w-full max-w-md"},{default:c(()=>[r(o(V),{class:"text-center"},{default:c(()=>[h("div",Me,[r(o(Y),{class:"h-16 w-16 text-green-500"})]),r(o(E),{class:"text-2xl"},{default:c(()=>[v(m(o(e)("common.verification_kyc.confirming_title")),1)]),_:1}),r(o(N),{class:"mt-2 text-base"},{default:c(()=>[v(m(o(e)("common.verification_kyc.confirming_subtitle")),1)]),_:1})]),_:1}),r(o(P),{class:"space-y-4"},{default:c(()=>[r(o(Ve),{"model-value":f.value,class:"w-full"},null,8,["model-value"]),h("p",Ae,m(o(e)("common.verification_kyc.confirming_body")),1)]),_:1})]),_:1})):a.value==="approved"?(k(),I(o(H),{key:1,class:"w-full max-w-md"},{default:c(()=>[r(o(V),{class:"text-center"},{default:c(()=>[h("div",Be,[r(o(Y),{class:"h-16 w-16 text-green-500"})]),r(o(E),{class:"text-2xl"},{default:c(()=>[v(m(o(e)("common.verification_kyc.approved_title")),1)]),_:1}),r(o(N),{class:"mt-2 text-base"},{default:c(()=>[v(m(o(e)("common.verification_kyc.approved_subtitle")),1)]),_:1})]),_:1}),r(o(P),{class:"space-y-4"},{default:c(()=>[h("p",je,m(o(e)("common.verification_kyc.approved_body")),1),h("div",Re,[r(o(q),{class:"h-6 w-6 animate-spin text-primary"})])]),_:1})]),_:1})):a.value==="rejected"?(k(),I(o(H),{key:2,class:"w-full max-w-md"},{default:c(()=>[r(o(V),{class:"text-center"},{default:c(()=>[h("div",$e,[r(o(ve),{class:"h-16 w-16 text-destructive"})]),r(o(E),{class:"text-2xl"},{default:c(()=>[v(m(o(e)("common.verification_kyc.rejected_title")),1)]),_:1}),r(o(N),{class:"mt-2 text-base"},{default:c(()=>[v(m(o(e)("common.verification_kyc.rejected_subtitle")),1)]),_:1})]),_:1}),r(o(P),{class:"space-y-4"},{default:c(()=>[h("p",Oe,m(o(e)("common.verification_kyc.rejected_body")),1),h("div",Ue,[r(o(D),{onClick:w,variant:"outline"},{default:c(()=>[v(m(o(e)("common.verification_kyc.return_home")),1)]),_:1}),r(o(D),{onClick:C},{default:c(()=>
6[v(m(o(e)("common.verification_kyc.try_again")),1)]),_:1})])]),_:1})]),_:1})):a.value==="submitted"?(k(),I(o(H),{key:3,class:"w-full max-w-md"},{default:c(()=>[r(o(V),{class:"text-center"},{default:c(()=>[h("div",De,[r(o(ge),{class:"h-16 w-16 text-yellow-500"})]),r(o(E),{class:"text-2xl"},{default:c(()=>[v(m(o(e)("common.verification_kyc.submitted_title")),1)]),_:1}),r(o(N),{class:"mt-2 text-base"},{default:c(()=>[v(m(o(e)("common.verification_kyc.submitted_subtitle")),1)]),_:1})]),_:1}),r(o(P),{class:"space-y-4"},{default:c(()=>[h("p",ze,m(o(e)("common.verification_kyc.submitted_body")),1),h("div",Le,[r(o(q),{class:"h-6 w-6 animate-spin text-primary"})])]),_:1})]),_:1})):(k(),I(o(H),{key:4,class:"w-full max-w-2xl"},{default:c(()=>[r(o(V),{class:"text-center"},{default:c(()=>[h("div",qe,[r(o(_e),{class:"h-12 w-12 text-primary"})]),r(o(E),{class:"text-xl"},{default:c(()=>[v(m(o(e)("common.verification_kyc.sdk_title")),1)]),_:1}),r(o(N),null,{default:c(()=>[v(m(o(e)("common.verification_kyc.sdk_subtitle")),1)]),_:1})]),_:1}),r(o(P),null,{default:c(()=>[l.value&&!d.value?(k(),z("div",We,[r(o(q),{class:"h-8 w-8 animate-spin text-primary"}),h("p",Fe,m(o(e)("common.verification_kyc.loading")),1)])):J("",!0),d.value?(k(),z("div",Xe,[r(o(ye),{class:"h-12 w-12 text-destructive"}),h("p",Ge,m(d.value),1),h("p",Je,m(o(e)("common.verification_kyc.error_contact")),1),h("div",Ye,[r(o(D),{onClick:w,variant:"outline"},{default:c(()=>[v(m(o(e)("common.verification_kyc.return_home")),1)]),_:1})])])):J("",!0),h("div",{id:"sumsub-websdk-container",ref_key:"sumsubContainer",ref:b,class:ue(["min-h-[500px]",{hidden:l.value||d.value}])},null,2)]),_:1})]),_:1}))]))}});export{wt 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.