1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8827],{3360:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>w});var t=o(37876),a=o(19305),n=o(62506),s=o(44647),l=o(19326),i=o(34736),d=o(27058),c=o(70111),u=o(13057),m=o(61154),y=o(14232),f=o(29358),p=o(99799),g=o(95089);let w=()=>{let{components:e,payments:{adyen:r}}=(0,s.jB)(),o=(0,d.k)(),{showNotification:w}=(0,l.M)(),{formatMessage:h}=(0,i.M1)(),{gtmHandlePaymentFailure:v}=(0,g.A)(),P=(0,y.useMemo)(()=>{let e=sessionStorage.getItem(p.x6);return e?JSON.parse(e):null},[]),k=o.query,{isPaymentMethodEnabled:E}=(0,c.l)({paymentMethod:m.g5.Adyen,configs:r,avoidParamChecks:!0,previousPage:null==P?void 0:P.previousPage,hideTimeout:!0,doAdditionalChecks:()=>void 0!=k&&k.sessionId&&k.redirectResult?(null==P?void 0:P.fallbackUrl)&&(null==P?void 0:P.paymentRef)&&(null==P?void 0:P.redirectToURL)?void 0:(console.error("ADYEN - Missing stored info"),!0):(console.error("ADYEN - Missing required info: parameters"),!0)});return(0,y.useEffect)(()=>{E&&(async()=>{let e={environment:r.environment,clientKey:r.clientKey,session:{id:k.sessionId},onPaymentCompleted:async e=>{if(sessionStorage.removeItem(p.x6),"authorised"===e.resultCode.toLowerCase())return void o.goToPage(P.redirectToURL,{query:{paymentRef:P.paymentRef},asUrlWithoutParams:!0,replace:!0});v({label:m.g5.Adyen,paymentProvider:m.g5.Adyen,pageUrl:window.location.href});let r=(0,f.YW)(e.resultCode.toLowerCase()).with("refused",()=>u.t.Failed).with("cancelled",()=>u.t.Cancelled).otherwise(()=>u.t.GenericError);await o.goToPaymentErrorPage({paymentRef:P.paymentRef,fallbackUrl:P.fallbackUrl,outcome:r})},onError:e=>{console.error("errore",e.name,e.message,e.stack),v({label:m.g5.Adyen,paymentProvider:m.g5.Adyen,pageUrl:window.location.href}),o.goToPaymentErrorPage({paymentRef:P.paymentRef,fallbackUrl:P.fallbackUrl,outcome:u.t.GenericError})}};(await (0,a.A)(e)).submitDetails({details:{redirectResult:k.redirectResult}})})()},[E]),(0,t.jsx)(n.U,{show:!0,loader:(0,t.jsx)(e.Loader,{show:!0})})}},36872:(e,r,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/payments/adyen/result",function(){return o(3360)}])}},e=>{e.O(0,[1206,5841,9799,636,6593,8792],()=>e(e.s=36872)),_N_E=e.O()}]);
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.