PageSourceSearch

https://ticket.parc-spirou.com/_next/static/chunks/pages/payments/dubaiPayNative/result-8404f175ab47cd1a.js

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

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6902],{65248:(e,r,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/payments/dubaiPayNative/result",function(){return a(66214)}])},66214:(e,r,a)=>{"use strict";a.r(r),a.d(r,{default:()=>v});var t=a(37876),o=a(15531),n=a(62506),i=a(13664),l=a(27058),s=a(70111),u=a(13057),c=a(61154),d=a(14232),p=a(40358),f=a(87111);let m="DUBAIPAY - ",v=e=>{let{}=e,{components:r}=(0,i.j)(),{goToPage:a,query:v,goToPaymentErrorPage:h}=(0,l.k)(),y=(0,d.useMemo)(()=>{let e=sessionStorage.getItem(f.vx);return e?JSON.parse(e):null},[]),{isPaymentMethodEnabled:g}=(0,s.l)({avoidConfigChecks:!0,avoidParamChecks:!0,paymentMethod:c.g5.DubaiPayNative,previousPage:null==y?void 0:y.previousPage,hideTimeout:!0,doAdditionalChecks:()=>v.outcome?(null==y||!y.previousPage||null==y||!y.paymentRef||null==y||!y.fallbackUrl)&&(console.error(m+"Missing stored info"),!0):(console.error(m+"Missing required info: outcome"),!0)});return(0,d.useEffect)(()=>{if(g)try{if(v.outcome!==p.Yz.Success)return void h({paymentRef:y.paymentRef,fallbackUrl:y.fallbackUrl,outcome:(0,o.Zj)(v.outcome)});let e=y.redirectToURL;sessionStorage.removeItem(f.vx),a(e,{query:{paymentRef:y.paymentRef},asUrlWithoutParams:!0,replace:!0})}catch(e){console.error("Error while parsing result",e),h({paymentRef:y.paymentRef,fallbackUrl:y.fallbackUrl,outcome:u.t.GenericError})}}
1,[g]),(0,t.jsx)(n.U,{show:!0,loader:(0,t.jsx)(r.Loader,{show:!0})})}},70111:(e,r,a)=>{"use strict";a.d(r,{l:()=>v});var t=a(32516),o=a(59096),n=a(33392),i=a(14232),l=a(42135),s=a(29171),u=a(13664),c=a(92345),d=a(61154),p=a(79444),f=a(95597),m=a(27058);let v=e=>{let{paymentMethod:r,params:a,previousPage:v,avoidConfigChecks:h,avoidParamChecks:y,configs:g,doAdditionalChecks:U,hideTimeout:P}=e,{behaviour:R}=(0,u.j)(),{loggedUser:k}=(0,s.U)(),{goHome:b}=(0,m.k)(),{setCustomPage:w,getMetaPaymentPageByUrl:_}=(0,c.t)(),{clear:C}=(0,o.F)(),L=(0,i.useMemo)(()=>"".concat(r," PAYMENT - "),[r]),{value:T,setTrue:M}=(0,l.Cg)(!1);return(0,n.S)(()=>{if(!h&&!g||(0,f.fU)({behaviour:R,loggedUser:k,paymentMethod:r})){console.error(L+"Missing required configs"),b({replace:!0});return}if(!y&&(!a||!(0,f.oc)(a,v))){console.error(L+"Missing required info"),b({replace:!0});return}if(null==U?void 0:U())return void b({replace:!0});let e=v?new URL(v).pathname:"/",t=_(e);t&&(e=t),(0,p.yy)(500).then(()=>{w(e,{hideCart:!0,hideTimeout:P||!1}),M()})}),{isPaymentMethodEnabled:T,handleBrowserBack:(0,i.useCallback)((e,r,a)=>{R.checkout.paymentErrorHandlingMode===d.PI.ClearCartAndGoToFirstPage&&C(),t.w.abortOrder(e,r,a).catch(p.Zi)},[R,C])}}},87111:(e,r,a)=>{"use strict";a.d(r,{vX:()=>f,vx:()=>p});var t=a(37876),o=a(62506),n=a(29171),i=a(13664),l=a(27058),s=a(70111),u=a(61154),c=a(11557),d=a(14232);let p="__dubaipaynative-data__",f=e=>{let{components:r}=(0,i.j)(),{locale:a}=(0,n.U)(),f=(0,l.k)().query,{isPaymentMethodEnabled:m}=(0,s.l)({params:f,avoidConfigChecks:!0,paymentMethod:u.g5.DubaiPayNative,previousPage:e.previousPage,hideTimeout:!0});return(0,d.useEffect)(()=>{if(!m)return;let r={previousPage:e.previousPage||"/",redirectToURL:f.redirectToURL,fallbackUrl:f.fallbackURL||e.previousPage||"/",paymentRef:f.paymentRef};sessionStorage.setItem(p,JSON.stringify(r));let[t,o]=c.o9.tenantAndSite,n=new URL("/api/".concat(t,"/").concat(o,"/v1/payments/dubaipay-native/create"),c.o9.beBaseUrl);n.searchParams.append("paymentRef",f.paymentRef),n.searchParams.append("locale",a),n.searchParams.append("portal",c.o9.portal),window.location.replace(n)},[m,a,f.fallbackURL,f.paymentRef,f.redirectToURL,e.previousPage]),(0,t.jsx)(o.U,{show:!0,loader:(0,t.jsx)(r.Loa
1der,{show:!0})})}},95597:(e,r,a)=>{"use strict";function t(e){var r,a;let{behaviour:t,loggedUser:o,paymentMethod:n}=e,i=null==(a=null==o||null==(r=o.loadCreditPaymentMethods)?void 0:r.includes(n))||a;return!t||!t.paymentMethodsList.includes(n)&&!i}function o(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]}),{})}}a.d(r,{bG:()=>n,fU:()=>t,oc:()=>o})}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=65248)),_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.