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