PageSourceSearch

https://ticket.parc-spirou.com/_next/static/chunks/pages/payments/dubaiPayNative-391c9b70a19716a8.js

js parc-spirou.com collected 2026-10-04 05:21:29 UTC 3,086 bytes, 1 lines download raw bytes

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