1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4803],{47930:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/paga-con-satispay/check-pagamento-satispay",function(){return n(22361)}])},65018:function(e,o,n){"use strict";var t=n(85893);n(67294);var a=n(41664),r=n.n(a),i=n(93720),s=n.n(i),d=n(65475);o.Z=e=>{let{cinemaInfo:o}=(0,d.useMasterContext)();return(0,t.jsx)("div",{className:"container",children:(0,t.jsx)("nav",{"aria-label":"breadcrumbs",children:(0,t.jsxs)("ul",{className:s().breadcrumb,children:[(0,t.jsx)("li",{children:(0,t.jsx)(r(),{href:null==o?"/":"/prodotti",children:"Home"})}),e.pages&&e.pages.length>0&&e.pages.map(e=>(0,t.jsxs)("li",{className:s().li,children:[(0,t.jsxs)("div",{className:s().separator,children:[" ",">"," "]}),(0,t.jsx)(r(),{prefetch:!1,legacyBehavior:!0,href:e.url,children:(0,t.jsx)("a",{className:s().a,children:e.title})})]},e.title))]})})})}},22361:function(e,o,n){"use strict";n.r(o),n.d(o,{__N_SSP:function(){return v}});var t=n(85893),a=n(67294),r=n(46084),i=n.n(r),s=n(11163),d=n(65018),l=n(71552),u=n(90571);n(14310);var c=n(67878),_=n(82436),m=n(93967),p=n.n(m),x=n(31555),g=n(10682),F=n(34051),h=n(64921),b=n.n(h);n(68358);var j=n(65475),C=n(50752),v=!0;o.default=e=>{new u.ZP;let o=(0,s.useRouter)(),[n,r]=(0,a.useState)("Pagamento"),[m,h]=(0,a.useState)("Area personale"),[v,f]=(0,a.useState)(null),[N,T]=(0,a.useState)(!1),[y,B]=(0,a.useState)(!1),[I,S]=(0,a.useState)(null),[k,w]=(0,a.useState)(e.catalogo.storeDeliveryTypes),{updateCartSize:P,cartSize:Z,cinemaInfo:E}=(0,j.useMasterContext)(),[D,O]=(0,a.useState)(null),[R,A]=(0,a.useState)("In attesa di Satispay...");(0,a.useEffect)(()=>{c.w.GetFromServer().then(e=>{f(e);var o=new u.ZP;o.ajax.get("/api/order/get-carrello").then(n=>{o.ajax.post("/api/pagamenti/satispay-check",{orderId:n.orderId}).then(t=>{o.braze.tracciaOrdine(e,n),o.ajax.post("/api/order/get-order-details",{orderId:n.orderId},"").then(e=>{pagamentoOk(e)})}).catch(e=>{O("ATTENZIONE! La transazione non \xe8 stata approvata. Clicca su OK per riprovare"),A("Si \xe8 verificato un errore con la tua transazione")})})})},[]);let pagamentoOk=e=>{var o=new u.ZP,n={status:e.stato,storeId:e.storeId,storeAddress:e.storeAddress,storeName:e.storeName,deliveryType:e.deliveryType,orderNumber:e.orderNumber,orderId:e.orderId,totaleDisplay:e.totaleDisplay,paymentDescription:"satispay",transactionId:"satispay",cartSize:Z,elements:e.elementiCarrello,ordineConfermatoDetail:e.ordineConfermatoDetail,puntiCarrello:e.puntiCarrello};S(n),o.ajax.post("/api/order/remove-all-from-cart",{}).then(e=>P()),sendConfirmEmail(n,e.elementiCarrello),B(!0),T(!0),window.scrollTo(0,0)},sendConfirmEmail=(e,o)=>{var n=new u.ZP;c.w.GetFromServer().then(t=>{n.utils.sendConfirmEmail(t,e,o,E)})};return(0,t.jsxs)(l.Z,{pageProps:e,title:n,children:[(0,t.jsx)(C.Z,{viewAlert:D,setViewAlert:()=>{O(null),window.location.replace("/prodotti/pagamento")}}),!N&&(0,t.jsx)(d.Z,{pages:[{title:n,url:o.asPath}]}),N?(0,t.jsx)("div",{children:(0,t.jsx)(F.Z,{className:i().mainRow,children:(0,t.jsx)(x.Z,{md:12,sm:12,className:i().mainPanel,children:(0,t.jsx)("div",{children:(0,t.jsx)(_.Z,{info:I,esito:y,sonoQui:!1,pagaInCassa:!1,orderId:I.orderId,metodoPagamento:I.paymentDescription,deliveryTypes:k,guest:!v.loginDone,elements:I.elements,elementsSource:"C",cinemaInfo:E})})})})}):(0,t.jsx)("div",{className:p()(b().colorRedBackground),children:(0,t.jsx)("div",{className:p()("container",b().notFoundContainer,b().notFoundContainerPiccola),children:(0,t.jsx)(g.Z,{className:p()(b().notFoundContainer,b().notFoundBackgroundImage),style:{background:"linear-gradient(rgb(31,32,35,0.2), rgb(31,32,35,0.2)))"},children:(0,t.jsx)(F.Z,{className:p()(b().boxContainer),children:(0,t.jsxs)(x.Z,{md:12,sm:12,className:p()(b().box),children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:p()(b().innerBox,b().colorWhiteText),children:[(0,t.jsx)("div",{}),(0,t.jsx)("div",{className:b().notFoundTextBox,style:{display:"flex",width:"100%",justifyContent:"center"},children:(0,t.jsx)("h3",{className:p()(b().notFoundTitle,b().Centro),children:R})}),(0,t.jsx)("div",{})]}),(0,t.jsx)("div",{})]})})})})})]})}},93720:function(e){e.exports={breadcrumb:"breadcrumb_breadcrumb__vJOFf",li:"breadcrumb_li__LzTYl",separator:"breadcrumb_separator__Sdj2L",a:"breadcrumb_a__Kg4r0"}},64921:function(e){e.exports={notFoundContainer:"notFound_notFoundContainer__UcuXX",notFoundContainerPiccola:"notFound_notFoundContainerPiccola__sKl2P",notFoundContainerPiccolaImage:"notFound_notFoundContainerPiccolaImage__4Wcls",boxContainer:"notFound_boxContainer__8NGlN",box:"notFound_box__wmfS6",notFoundBackgroun
1dImage:"notFound_notFoundBackgroundImage__R70Av",innerBox:"notFound_innerBox__b588k",notFoundTextBox:"notFound_notFoundTextBox__P8HCg",notFoundTitle:"notFound_notFoundTitle__6fB_G",notFoundSubTitle:"notFound_notFoundSubTitle__5zkc1",displayContainer:"notFound_displayContainer__9stQ_",buttonBox:"notFound_buttonBox__31Llk",notFoundButton:"notFound_notFoundButton__EuyaF",Sinistra:"notFound_Sinistra__LEl_B",Centro:"notFound_Centro__eppix",Destra:"notFound_Destra__X3JhM",Giustificato:"notFound_Giustificato__XOlSw",colorBlackText:"notFound_colorBlackText__Vx9yZ",colorWhiteText:"notFound_colorWhiteText__D7QKs",colorRedButton:"notFound_colorRedButton__FYjuS",colorWhiteBackground:"notFound_colorWhiteBackground__uWFD2",colorRedBackground:"notFound_colorRedBackground__q4XD_",hidden:"notFound_hidden___eVk3",boxImage:"notFound_boxImage__kMIgs",notFoundImage:"notFound_notFoundImage__lJHWA"}},46084:function(e){e.exports={pagamentoBox:"pagamento_pagamentoBox__zKhls",pagamentoTitolo:"pagamento_pagamentoTitolo__15pam",pagamentoImmagine:"pagamento_pagamentoImmagine__EU8jO",riepilogoPagamentiTitle:"pagamento_riepilogoPagamentiTitle__aCZ18",mainRow:"pagamento_mainRow__ddyFq",totaleTitle:"pagamento_totaleTitle__rcQmp",totaliSpace:"pagamento_totaliSpace__V_GQb"}}},function(e){e.O(0,[2013,5445,4885,5054,9755,5242,2436,9774,2888,179],function(){return e(e.s=47930)}),_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.