1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5021],{22911:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/adyen/return",function(){return r(30562)}])},28860:(e,t,r)=>{"use strict";r(17260),r(96968)},29305:(e,t,r)=>{"use strict";var s=r(88304);s.env.DEFAULT_LOCALE&&s.env.DEFAULT_LOCALE},30562:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>l,default:()=>c});var s=r(26514),n=r(87803),o=r(81586),a=r(75834),u=r(88304);let i=({payment:e,paymentData:t,isApp:r})=>{let i=(0,a.useRef)(null),{settings:l}=(0,o.Pj)(),{isRetry:c,orderNumber:d}=t.data??{},w=(0,a.useMemo)(()=>({environment:u.env.NEXT_PUBLIC_ADYEN_ENVIRONMENT,clientKey:u.env.NEXT_PUBLIC_ADYEN_CLIENT_KEY,analytics:{enabled:!1},session:{id:e.sessionId},onPaymentCompleted:e=>{if(c&&e){let t=`${l.routes.cartAdyenRetryFail}?orderNumber=${d}&resultCode=${e.resultCode??null}`;"Authorised"===e.resultCode&&(t=`${l.routes.cartAdyenRetrySuccess}?orderNumber=${d}&resultCode=${e.resultCode??null}`),window.location.href=t;return}r?window.location.href=`${window.location.href}&closeWebView=1`:l.routes.cartSummary&&(window.location.href=l.routes.cartSummary)},onError:()=>{r?window.location.href=`${window.location.href}&closeWebView=1`:l.routes.cartSummary&&(window.location.href=l.routes.cartSummary)}}),[r,c,d,e.sessionId,l.routes.cartAdyenRetryFail,l.routes.cartAdyenRetrySuccess,l.routes.cartSummary]),_=(0,a.useCallback)(async()=>{(await (0,n.A)(w)).submitDetails({details:{redirectResult:e.redirectResult}})},[w,e.redirectResult]);return(0,a.useEffect)(()=>{i&&i.current&&_()},[i,_]),(0,s.jsx)("div",{children:(0,s.jsx)("div",{ref:i})})};r(17260),r(28860),r(29305);var l=!0;let c=({initialData:e})=>(0,s.jsx)(o.tv,{initialData:e,children:!e.closeWebView&&(0,s.jsx)(i,{payment:e.payment,paymentData:e.paymentData,resultCode:e.resultCode,isApp:e.isApp})})}},e=>{e.O(0,[4161,5794,636,6593,8792],()=>e(e.s=22911)),_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.