PageSourceSearch

https://ticket.parc-spirou.com/_next/static/chunks/pages/payments/cyberSource/result-3b444b849d29f1d6.js

js parc-spirou.com collected 2026-10-04 05:21:23 UTC 4,321 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7840],{19016:(e,r,t)=>{"use strict";t.d(r,{K:()=>f,MJ:()=>p});var o=t(37876),a=t(62506),n=t(29171),s=t(13664),i=t(27058),l=t(70111),u=t(61154),c=t(11557),d=t(14232);let p="__cybersource-data__",f=e=>{let{components:r}=(0,s.j)(),{locale:t}=(0,n.U)(),f=(0,i.k)().query,{isPaymentMethodEnabled:C}=(0,l.l)({params:f,avoidConfigChecks:!0,paymentMethod:u.g5.CyberSource,previousPage:e.previousPage,hideTimeout:!0});return(0,d.useEffect)(()=>{if(!C)return;let r={previousPage:e.previousPage,fallbackUrl:f.fallbackURL||e.previousPage,saleAk:f.saleAk,redirectToURL:f.redirectToURL,paymentRef:f.paymentRef};sessionStorage.setItem(p,JSON.stringify(r));let[o,a]=c.o9.tenantAndSite,n="/payments/api/".concat(o,"/").concat(a,"/v1/cybersource/entrypoint"),s=new URL(c.o9.beBaseUrl+n);s.searchParams.append("paymentRef",f.paymentRef),s.searchParams.append("locale",t),s.searchParams.append("portal",c.o9.portal),window.location.replace(s)},[C]),(0,o.jsx)(a.U,{show:!0,loader:(0,o.jsx)(r.Loader,{show:!0})})}},53572:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/payments/cyberSource/result",function(){return t(98378)}])},70111:(e,r,t)=>{"use strict";t.d(r,{l:()=>m});var o=t(32516),a=t(59096),n=t(33392),s=t(14232),i=t(42135),l=t(29171),u=t(13664),c=t(92345),d=t(61154),p=t(79444),f=t(95597),C=t(27058);let m=e=>{let{paymentMethod:r,params:t,previousPage:m,avoidConfigChecks:E,avoidParamChecks:R,configs:h,doAdditionalChecks:v,hideTimeout:y}=e,{behaviour:g}=(0,u.j)(),{loggedUser:P}=(0,l.U)(),{goHome:U}=(0,C.k)(),{setCustomPage:k,getMetaPaymentPageByUrl:T}=(0,c.t)(),{clear:_}=(0,a.F)(),L=(0,s.useMemo)(()=>"".concat(r," PAYMENT - "),[r]),{value:w,setTrue:b}=(0,i.Cg)(!1);return(0,n.S)(()=>{if(!E&&!h||(0,f.fU)({behaviour:g,loggedUser:P,paymentMethod:r})){console.error(L+"Missing required configs"),U({replace:!0});return}if(!R&&(!t||!(0,f.oc)(t,m))){console.error(L+"Missing required info"),U({replace:!0});return}if(null==v?void 0:v())return void U({replace:!0});let e=m?new URL(m).pathname:"/",o=T(e);o&&(e=o),(0,p.yy)(500).then(()=>{k(e,{hideCart:!0,hideTimeout:y||!1}),b()})}),{isPaymentMethodEnabled:w,handleBrowserBack:(0,s.useCallback)((e,r,t)=>{g.checkout.paymentErrorHandlingMode===d.PI.ClearCartAndGoToFirstPage&&_(),o.w.abortOrder(e,r,t).catch(p.Zi)},[g,_])}}},95597:(e,r,t)=>{"use strict";function o(e){var r,t;let{behaviour:o,loggedUser:a,paymentMethod:n}=e,s=null==(t=null==a||null==(r=a.loadCreditPaymentMethods)?void 0:r.includes(n))||t;return!o||!o.paymentMethodsList.includes(n)&&!s}function a(e,r){return r&&(null==e?void 0:e.paymentRef)&&(null==e?void 0:e.saleAk)&&(null==e?void 0:e.redirectToURL)}function n(e){let r=e instanceof URL?e:new URL(e);return{pathName:r.pathname,query:Array.from(r.searchParams.entries()).reduce((e,r)=>({...e,[r[0]]:r[1]}),{})}}t.d(r,{bG:()=>n,fU:()=>o,oc:()=>a})},98378:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>f,default:()=>C});var o=t(37876),a=t(19016),n=t(62506),s=t(13664),i=t(27058),l=t(70111),u=t(13057),c=t(61154);t(10318),t(30667);var d=t(14232),p=function(e){return e.ACCEPT="ACCEPT",e.REVIEW="REVIEW",e.REJECT="REJECT",e.ERROR="ERROR",e.DECLINE="DECLINE",e.CANCEL="CANCEL",e}(p||{}),f=!0;let C=e=>{let{components:r}=(0,s.j)(),t=(0,i.k)(),p=(0,d.useMemo)(()=>{let e=sessionStorage.getItem(a.MJ);return e?JSON.parse(e):null},[]),{isPaymentMethodEnabled:f}=(0,l.l)({avoidConfigChecks:!0,avoidParamChecks:!0,paymentMethod:c.g5.CyberSource,previousPage:null==p?void 0:p.previousPage,hideTimeout:!0,doAdditionalChecks:()=>void 0!=e.responseContent&&e.responseContent.decision?(null==p?void 0:p.paymentRef)&&(null==p?void 0:p.fallbackUrl)&&(null==p?void 0:p.redirectToURL)?void 0:(console.error("CYBERSOURCE - Missing stored info"),!0):(console.error("CYBERSOURCE - Missing required info: parameters"),!0)});return(0,d.useEffect)(()=>{if(!f)return;let r=e.responseContent.decision;if("ACCEPT"!==r)return void t.goToPaymentErrorPage({paymentRef:p.paymentRef,fallbackUrl:p.fallbackUrl,outcome:"CANCEL"===r?u.t.Cancelled:u.t.Failed});let o=p.redirectToURL;sessionStorage.removeItem(a.MJ),t.goToPage(o,{query:{paymentRef:p.paymentRef},asUrlWithoutParams:!0,replace:!0})}
1,[f]),(0,o.jsx)(n.U,{show:!0,loader:(0,o.jsx)(r.Loader,{show:!0})})}}},e=>{e.O(0,[1436,3830,636,6593,8792],()=>e(e.s=53572)),_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.