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