1/*! For license information please see 9227.5d224a52.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[9227],{89227:(e,t,a)=>{a.r(t),a.d(t,{CaptchaScreen:()=>d,CaptchaScreenView:()=>l,default:()=>d});var r=a(90034),n=a(95522),s=a(37401),i=a(57722),o=a(78055),u=a(49931),c=a(23316);a(30549),a(88404),a(2035),a(82425),a(82595);const l=e=>{let{status:t,title:a,description:o,userIntentRequired:u,retriesRemaining:l,hasSelectedCta:d,onContinue:v,onRetry:g}=e,h=(0,i.useMemo)(()=>{switch(t){case"loading":default:return;case"success":return u?{label:d?"Continuing...":"Continue",onClick:v,disabled:d,loading:d}:void 0;case"error":return l>0?{label:"Retry",onClick:g}:void 0}},[t,d,v,g]),y=(0,i.useMemo)(()=>({loading:"loading",ready:"subtle",disabled:"subtle",success:"success",error:"error"}[t]||"loading"),[t]);return(0,r.jsx)(c.S,{icon:"loading"===t||"ready"===t?void 0:"success"===t?n.A:s.A,iconVariant:y,title:a,subtitle:o,primaryCta:h,watermark:!0})},d={component:()=>{let{lastScreen:e,data:t,navigate:a,setModalData:n}=(0,u.a)(),{status:s,token:c,waitForResult:d,reset:v,execute:g}=(0,o.a)(),h=(0,i.useRef)([]),y=e=>{h.current=[e,...h.current]},[C,f]=(0,i.useState)(!0);(0,i.useEffect)(()=>(y(setTimeout(f,1e3,!1)),()=>{h.current.forEach(e=>clearTimeout(e)),h.current=[]}),[]);let[p,S]=(0,i.useState)(""),[k,m]=(0,i.useState)("Checking that you are a human..."),[b,R]=(0,i.useState)(!1),[w,T]=(0,i.useState)(3),A=null===t||void 0===t?void 0:t.captchaModalData,I=async t=>{try{await(null===A||void 0===A?void 0:A.callback(t)),(null===A||void 0===A?void 0:A.onSuccessNavigateTo)&&a(null===A||void 0===A?void 0:A.onSuccessNavigateTo,!1)}catch(t){if(t instanceof o.C)return;n({errorModalData:{error:t,previousScreen:e||"LandingScreen"}}),a((null===A||void 0===A?void 0:A.onErrorNavigateTo)||"ErrorScreen",!1)}};return(0,i.useEffect)(()=>{"success"===s?y(setTimeout(async()=>{let e=await d();!e||(null===A||void 0===A?void 0:A.userIntentRequired)||I(e)},1e3)):"ready"===s&&y(setTimeout(()=>{"ready"===s&&g()},500))},[s]),(0,i.useEffect)(()=>{if(!C)switch(s){case"success":S("Success!"),m("CAPTCHA passed successfully."),(null===A||void 0===A?void 0:A.userIntentRequired)||setTimeout(()=>{R(!0),I(c)},2e3);break;case"loading":S(""),m("Checking that you are a human...");break;case"error":S("Something went wrong"),m(w<=0?"If you use an adblocker or VPN, try disabling and re-attempting.":"You did not pass CAPTCHA. Please try again.")}},[s,C,b]),(0,r.jsx)(l,{status:s,title:p,description:k,userIntentRequired:null===A||void 0===A?void 0:A.userIntentRequired,retriesRemaining:w,hasSelectedCta:b,onContinue:()=>{R(!0),I(c)},onRetry:async()=>{if(w<=0)return;T(e=>e-1),v(),g();let e=await d();!e||(null===A||void 0===A?void 0:A.userIntentRequired)||I(e)}})}}},95522:(e,t,a)=>{a.d(t,{A:()=>r});const r=(0,a(90513).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])}}]); 3//# sourceMappingURL=9227.5d224a52.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.