1"use strict";(self.webpackChunkfocus_markets_client_portal=self.webpackChunkfocus_markets_client_portal||[]).push([[2328],{38783:(_,A,m)=>{m.r(A),m.d(A,{initialise:()=>Y});var T=m(40247),L=m(26699),p=m(38552),C=m(80409),R=m(75285),v=m(71317),D=function(r,u,s,t){return new(s||(s=Promise))(function(o,i){function n(e){try{a(t.next(e))}catch(l){i(l)}}function d(e){try{a(t.throw(e))}catch(l){i(l)}}function a(e){e.done?o(e.value):function c(o){return o instanceof s?o:new s(function(i){i(o)})}(e.value).then(n,d)}a((t=t.apply(r,u||[])).next())})},P=m(8680),E=function(r,u,s,t){return new(s||(s=Promise))(function(o,i){function n(e){try{a(t.next(e))}catch(l){i(l)}}function d(e){try{a(t.throw(e))}catch(l){i(l)}}function a(e){e.done?o(e.value):function c(o){return o instanceof s?o:new s(function(i){i(o)})}(e.value).then(n,d)}a((t=t.apply(r,u||[])).next())})};const Y=(0,L.f)("onfido",(r,u)=>function(r,u,s,t){return new(s||(s=Promise))(function(o,i){function n(e){try{a(t.next(e))}catch(l){i(l)}}function d(e){try{a(t.throw(e))}catch(l){i(l)}}function a(e){e.done?o(e.value):function c(o){return o instanceof s?o:new s(function(i){i(o)})}(e.value).then(n,d)}a((t=t.apply(r,u||[])).next())})}(void 0,void 0,void 0,function*(){const{frankieClient:s,recipe:t}=r,{biometrics:{provider:c}={}}=t,{eventHub:o}=u,i=new C.Ns(s),n=yield(0,T.j)(i,o,{provider:"onfido"});return(0,p.Ue)("onfido"===c?.name?c?.sdkVersion:void 0).number<14?((r,u,s)=>E(void 0,void 0,void 0,function*(){let t=!1;const{frankieClient:c,recipe:o}=u,{biometrics:{provider:i}={}}=o,{mountElement:n,eventHub:d}=s,a=new C.Ns(c),e=(0,p.Ue)("onfido"===i?.name?i?.sdkVersion:void 0);(0,p.BW)("onfido-sdk-ui-Theme-portal",d);const l=yield(0,p.ai)({sdkVersion:e.str}),{token:k}=r,w=window.Onfido;let I=!1;const b=y=>{if("UPLOAD"===y.detail.eventName){if(I)return;I=!0}d.emit("vendor_event",y.detail)};window.addEventListener("userAnalyticsEvent",b);const N=y=>E(void 0,void 0,void 0,function*(){d.emit("detection_failed",{}),d.emit("vendor_event",{eventName:"BIOMETRICS:ONFIDO:ON_USER_EXIT"}),d.emit("input_required",{entityId:null},P.Yt.INTERRUPTED),d.emit("session_interrupted",{eventName:"USER_EXITED",reason:"User abandoned the flow",module:"BIOMETRICS"}),yield(0,v.Mf)({instance:y,recipe:o,eventHub:d,sdkVersion:e.number,userAnalyticsEventListener:b,onfidoScriptElement:l})}),h=w.init({token:k,containerEl:n,steps:[{type:"face",options:{requestedVariant:"onfido"===i?.name&&i.biometricsVariant?i.biometricsVariant:"motion",motionFallbackVariant:"onfido"===i?.name&&i?.fallback?i?.fallback:void 0}}],customUI:"onfido"===i?.name?i.customUI:void 0,useModal:!0,isModalOpen:!0,disableAnalytics:!0,disableAnalyticsCookies:!0,onComplete:()=>E(void 0,void 0,void 0,function*(){t||(t=!0,yield(0,v.f$)({idvClient:a,recipe:o,eventHub:d,detectionCompletePayload:{provider:"onfido",source:"biometrics"}}),yield(0,v.Mf)({instance:h,recipe:o,eventHub:d,sdkVersion:e.number,userAnalyticsEventListener:b,onfidoScriptElement:l}))}),onError:y=>E(void 0,void 0,void 0,function*(){(0,R.Y)(d,{vendor:"onfido",component:"biometrics",stage:"onerror"}),yield(0,v.CY)({idvClient:a,error:y,recipe:o,eventHub:d}),yield(0,v.Mf)({instance:h,recipe:o,eventHub:d,sdkVersion:e.number,userAnalyticsEventListener:b,onfidoScriptElement:l})}),onUserExit:()=>E(void 0,void 0,void 0,function*(){return N(h)}),onModalRequestClose:()=>E(void 0,void 0,void 0,function*(){return N(h)})});return{}}))(n,r,u):((r,u,s)=>D(void 0,void 0,void 0,function*(){var t;let c=!1;const{frankieClient:o,recipe:i}=u,{biometrics:{provider:n,checkProcessingPool:d}={}}=i,{mountElement:a,eventHub:e}=s,l=new C.Ns(o),k=(0,p.Ue)("onfido"===n?.name?n?.sdkVersion:void 0);(0,p.go)("onfido-sdk",e);const w=yield(0,p.ai)({sdkVersion:k.str}),{token:I}=r,b=window.Onfido;let M=!1;const O=f=>{if("UPLOAD"===f.detail.eventName){if(M)return;M=!0}e.emit("vendor_event",f.detail)};window.addEventListener("userAnalyticsEvent",O);const h={requestedVariant:"onfido"===n?.name&&n.biometricsVariant?n.biometricsVariant:"motion",motionFallbackVariant:"onfido"===n?.name&&n?.fallback?n?.fallback:void 0},y=(0,p.kq)(n),U="onfido"===n?.name&&"force"===n.crossDevicePolicy?n._crossDeviceLinkMethods:[],S=b.init({token:I,containerEl:a,steps:[{type:"face",options:h}
1],theme:{name:"onfido"===n?.name&&null!==(t=n?.theme)&&void 0!==t?t:"light",config:"onfido"===n?.name?n.customUI:void 0},disableAnalytics:!0,disableAnalyticsCookies:!0,onComplete:()=>D(void 0,void 0,void 0,function*(){if(c)return;c=!0;let f={};f=d||{enabled:!1,wait_time:5,max_attempts:1},yield(0,v.f$)({idvClient:l,recipe:i,eventHub:e,checkProcessingPool:f,detectionCompletePayload:{provider:"onfido",source:"biometrics"}}),yield(0,v.Mf)({instance:S,recipe:i,eventHub:e,sdkVersion:k.number,userAnalyticsEventListener:O,onfidoScriptElement:w})}),onError:f=>D(void 0,void 0,void 0,function*(){(0,R.Y)(e,{vendor:"onfido",component:"biometrics",stage:"onerror"}),yield(0,v.CY)({idvClient:l,error:f,recipe:i,eventHub:e}),yield(0,v.Mf)({instance:S,recipe:i,eventHub:e,sdkVersion:k.number,userAnalyticsEventListener:O,onfidoScriptElement:w})}),showExitButton:y,onUserExit:f=>{var V;"onfido"===n?.name&&(null===(V=n.onUserExit)||void 0===V||V.call(n)),e.emit("detection_failed",{message:f}),e.emit("vendor_event",{eventName:"BIOMETRICS:ONFIDO:ON_USER_EXIT",error:f}),e.emit("input_required",{entityId:null},C.Yt.INTERRUPTED),e.emit("session_interrupted",{eventName:"USER_CLOSED_MODAL",reason:`Onfido ended the biometrics session before completion (${f})`,module:"BIOMETRICS"}),(0,v.Mf)({instance:S,recipe:i,eventHub:e,sdkVersion:k.number,userAnalyticsEventListener:O,onfidoScriptElement:w})},crossDevicePolicy:"onfido"===n?.name?n.crossDevicePolicy:"disable",_crossDeviceLinkMethods:U,language:"onfido"===n?.name?n.language:void 0,translations:"onfido"===n?.name?n.translations:void 0});return{}}))(n,r,u)}))}}]);
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.