1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[108],{68806:function(e,s,n){"use strict";n.r(s),n.d(s,{__N_SSP:function(){return j}});var r=n(85893),t=n(809),c=n.n(t),i=n(92447),a=n(64121),u=n(67294),l=n(25675),o=n(11163),d=n(39704),f=n(63276),v=n(55909),h=n(16882),_=n(57768),m=n(80221),p=n(11752),x=n(38135),w=n(77489),g=n(2714),N=(0,p.default)().publicRuntimeConfig.currencySymbol,j=!0;s.default=function(e){var s=(0,f.$G)(["common","success_order","gift_vouchers"]).t,n=(e._nextI18Next,e.PaymentId,e.OrderId),t=e.preferenceParams,p=(e.OrderNo,e.privateAccessToken),j=(e.siteLangs,(0,d.I0)()),b=((0,o.useRouter)(),(0,u.useState)(0)),k=b[0],y=b[1],C=(0,u.useState)(null),E=C[0],S=C[1],I=(0,u.useState)(null),P=(I[0],I[1]),Z=(0,u.useState)(!0),O=Z[0],T=Z[1],L=(0,u.useState)(null),X=L[0],z=L[1],A=(0,u.useState)(null),G=(A[0],A[1]),R=(0,x.X)("_afid",""),B=(0,a.Z)(R,2),F=B[0],U=B[1];(0,u.useEffect)((function(){function e(){return(e=(0,i.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:sessionStorage.removeItem("giftVoucherCart");case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return null!=p&&(V(),function(){e.apply(this,arguments)}(),setTimeout((function(){U(""),T(!1)}),2e3)),function(){}}),[t,p,F]);var V=(0,u.useCallback)((0,i.Z)(c().mark((function e(){var s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z(null),P(null),e.prev=2,e.next=5,j((0,g.Ai)(p));case 5:null!=(s=e.sent)&&z(s),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),e.t0.message.includes("401")?(0,m.N)():P(e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[2,9]])}))),[p]),W=(0,u.useCallback)((0,i.Z)(c().mark((function e(){var s,r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(null),G(null),S(null),e.prev=3,s={OrderId:n,CustomerId:X.id},e.next=7,j((0,w.Gd)(p,s));case 7:null!=(r=e.sent)?S(r):window.location.href="/404/",e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),P(e.t0.message);case 14:case"end":return e.stop()}}),e,null,[[3,11]])}))),[p,X]);return(0,u.useEffect)((function(){null!==X&&W()}),[X]),(0,u.useEffect)((function(){function e(){y(window.innerWidth)}return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[k]),(0,r.jsxs)("div",{children:[!0===O&&(0,r.jsx)("div",{className:"overlayBackground",style:{background:"#ffffff"},children:(0,r.jsx)(v.Z,{})}),null!=E&&(0,r.jsx)("div",{className:"success_order-fullwidth-container",style:{border:0},children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)("div",{className:"success_order-info",children:[(0,r.jsx)("div",{className:"item-blur"}),(0,r.jsx)("div",{className:"success_order-info-image",children:(0,r.jsx)(l.default,{src:"/images/demo/banner/banner-1.jpg",layout:"fill",objectFit:"cover",alt:""})}),(0,r.jsxs)("div",{className:"success_order-info-details",children:[(0,r.jsx)("div",{className:"success_order-info-details-icon-checked",children:k<768&&0!==k?(0,r.jsx)(l.default,{src:"/images/svg/icons60PxChecked.svg",width:60,height:60,alt:""}):(0,r.jsx)(l.default,{src:"/images/icons/icon-checked.png",width:88,height:88,alt:""})}),(0,r.jsx)("div",{className:"success_order-info-details-label1",children:s("success_order:you_ve_successfully_paid")}),(0,r.jsxs)("div",{className:"success_order-info-details-amount-text",children:[N,(0,h.x)(E.TotalPayable)]}),(0,r.jsxs)("div",{className:"success_order-info-details-label2",children:[s("success_order:to_view_your_order_details")," :"]}),(0,r.jsx)("div",{className:"success_order-info-details-btn-purchases",children:(0,r.jsx)(_.Z,{title:s("gift_vouchers:my_gift_vouchers").toUpperCase(),onClick:function(){window.location.replace("/user/my-e-gift-voucher/")}})})]})]})})})]})}},56213:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/e-gift-vouchers/complete",function(){return n(68806)}])}},function(e){e.O(0,[2714,5216,9774,2888,179],(function(){return s=56213,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.