1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2552],{89972:function(o,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/prodotti/esito",function(){return e(28705)}])},28705:function(o,n,e){"use strict";e.r(n),e.d(n,{__N_SSP:function(){return C},default:function(){return esito}});var t=e(85893),r=e(67294),d=e(71552),a=e(90571),i=e(64921),s=e.n(i),u=e(82436),_=e(67878),l=e(31555),c=e(10682),m=e(34051),F=e(93967),x=e.n(F),g=e(49896),f=e(65475),C=!0,esito=o=>{let[n,e]=(0,r.useState)("Esito"),[i,F]=(0,r.useState)(null),[C,p]=(0,r.useState)(null),[h,b]=(0,r.useState)(!1),[T,y]=(0,r.useState)(!1),[B,I]=(0,r.useState)(null),[P,S]=(0,r.useState)(null),[k,v]=(0,r.useState)(null),{cinemaInfo:j,setQuestionTitle:N,setViewQuestionImportant:w,setConfirmAction:O,setCancelAction:E}=(0,f.useMasterContext)();(0,r.useEffect)(()=>{_.w.GetFromServer().then(n=>{new a.ZP().ajax.post("/api/order/load-esito",{orderId:o.idOrdine},n.bearerToken).then(o=>{S(o.catalogo),v(o.confirmedOrder),loadOrdine(),p(o.catalogo.storeDeliveryTypes)})})},[]),(0,r.useEffect)(()=>{if(k&&"to_be_prepared"!=k.status&&(null==i||"to_be_prepared"!=i.stato)&&o.idTransazione&&o.metodoPagamento&&k){if("curbside"==k.deliveryType||"gate"==k.deliveryType||"table-service"==k.deliveryType)k.message_confirm_payment?(N("Conferma pagamento"),w(k.message_confirm_payment),O(()=>()=>paymentMessageConfirmed()),E(()=>()=>w(null))):paymentMessageConfirmed();else{var n={orderId:o.idOrdine,transactionId:o.idTransazione,metodoPagamento:o.metodoPagamento};b(!0),sonoQuiConfirmConfirm(n)}}},[i]);let paymentMessageConfirmed=()=>{var n=new a.ZP,e={orderId:o.idOrdine,transactionId:o.idTransazione,metodoPagamento:o.metodoPagamento};n.ajax.post("/api/order/get-curbside-data",{orderId:e.orderId},"",!1).then(o=>{I({data:o,order:e}),y(!0)})},sonoQuiConfirmConfirm=o=>{new a.ZP().utils.sonoQuiConfirm(o.orderId,o.transactionId,o.metodoPagamento,()=>{loadOrdine(),b(!1),y(!1)},o=>{console.log(o)})},loadOrdine=()=>{_.w.GetFromServer().then(n=>{new a.ZP().ajax.post("/api/order/get-order-details",{orderId:o.idOrdine},n.bearerToken).then(o=>{F(o)})})};return(0,t.jsxs)(d.Z,{pageProps:o,title:n,children:[T&&(0,t.jsx)(g.Z,{showCurbsideSelector:T,hideCurbsideSelector:()=>{y(!1)},...B.data,order:B.order,slotConfirmed:o=>sonoQuiConfirmConfirm(o)}),h&&(0,t.jsx)("div",{className:x()(s().colorRedBackground),children:(0,t.jsx)("div",{className:x()("container",s().notFoundContainer,s().notFoundContainerPiccola),children:(0,t.jsx)(c.Z,{className:x()(s().notFoundContainer,s().notFoundBackgroundImage),style:{background:"linear-gradient(rgb(31,32,35,0.2), rgb(31,32,35,0.2)))"},children:(0,t.jsx)(m.Z,{className:x()(s().boxContainer),children:(0,t.jsxs)(l.Z,{md:12,sm:12,className:x()(s().box),children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:x()(s().innerBox,s().colorWhiteText),children:[(0,t.jsx)("div",{}),(0,t.jsx)("div",{className:s().notFoundTextBox,style:{display:"flex",width:"100%",justifyContent:"center"},children:(0,t.jsx)("h3",{className:x()(s().notFoundTitle,s().Centro),children:"CARICAMENTO ESITO..."})}),(0,t.jsx)("div",{})]}),(0,t.jsx)("div",{})]})})})})}),!h&&i&&i.ordineConfermatoDetail&&k&&(0,t.jsx)(u.Z,{info:i,esito:!0,sonoQui:!0,guest:!0,metodoPagamento:i.ordineConfermatoDetail.selectedPaymentProvider,deliveryTypes:C,orderId:o.idOrdine,elements:k.children,elementsSource:"E",cinemaInfo:j})]})}},64921:function(o){o.exports={notFoundContainer:"notFound_notFoundContainer__UcuXX",notFoundContainerPiccola:"notFound_notFoundContainerPiccola__sKl2P",notFoundContainerPiccolaImage:"notFound_notFoundContainerPiccolaImage__4Wcls",boxContainer:"notFound_boxContainer__8NGlN",box:"notFound_box__wmfS6",notFoundBackgroundImage:"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",colorWhiteBackgroun
1d:"notFound_colorWhiteBackground__uWFD2",colorRedBackground:"notFound_colorRedBackground__q4XD_",hidden:"notFound_hidden___eVk3",boxImage:"notFound_boxImage__kMIgs",notFoundImage:"notFound_notFoundImage__lJHWA"}}},function(o){o.O(0,[2013,5445,4885,5054,9755,5242,2436,9774,2888,179],function(){return o(o.s=89972)}),_N_E=o.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.