1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7264],{73949:function(e,s,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/components/BookingHistory",function(){return i(65094)}])},65094:function(e,s,i){"use strict";i.r(s);var t=i(85893),l=i(25675),n=i.n(l),d=i(67294),a=i(91534),c=i(71508),r=i(9473),m=i(20346);let o=i(30381),x=e=>o.utc(e).format("ddd, Do MMM, YYYY LT").toUpperCase();s.default=e=>{let{movie:s}=e,i=(0,r.I0)();null==s||s.bookingId;let[l,h]=(0,d.useState)(!1),[j,f]=(0,d.useState)(),[u,p]=(0,d.useState)([]);(0,d.useEffect)(()=>{i((0,m.V)()),a.Z.GetUserBookings().then(e=>{p(e.data.data),i((0,m.G)())})},[]);let N=e=>{h(!l),f(e)};return(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"flex cursor-pointer",children:(0,t.jsx)("div",{className:"w-full",children:u&&(null==u?void 0:u.map((e,s)=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"bg-[#F5F5F5] mb-5 p-5 rounded-[2rem] shadow-lg",onClick:()=>N(e.transaction_id),children:[(0,t.jsx)("div",{className:"grid sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-1",children:(0,t.jsxs)("div",{className:"relative flex justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-col md:flex-row ",children:[(0,t.jsx)(n(),{src:e.movie_image_url_1,alt:e.movie_title,width:80,height:80,className:"pt-1 mb-2 ml-3"}),(0,t.jsxs)("div",{className:"text-lg",children:[(0,t.jsx)("p",{className:"font-semibold mx-2",children:e.movie_title}),(0,t.jsx)("p",{className:"text-sm mx-2",children:e.cinema_name}),(0,t.jsxs)("div",{className:"text-sm mx-2",children:[x(e.Showtime),(0,t.jsx)("p",{children:e.seats_name}),(0,t.jsxs)("p",{children:[e.movie_lang,", ",e.ScreenName]})]})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{className:"p-3 text-center uppercase rounded text-black font-medium bg-[#ffbe06] hover:bg-white border border-[#ffbe06]",children:"E-MAIL TICKET"})})]})}),l&&j==e.transaction_id&&(0,t.jsxs)("div",{className:"grid sm:w-full md:grid-cols-2 lg:grid-cols-2 ",children:[(0,t.jsxs)("div",{className:"pt-4 px-2 mb-2 border-r border-t",children:[(0,t.jsx)("p",{className:"font-medium pb-3 ",children:"TOTAL BILL"}),(0,t.jsxs)("div",{className:"flex justify-between border-b mb-4",children:[(0,t.jsx)("p",{className:"text-md",children:"Tickets(x1)"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:e.transaction_before_offer_net_price/100})]}),(0,t.jsxs)("div",{className:"flex justify-between border-b mb-4",children:[(0,t.jsx)("p",{className:"text-md",children:"Taxes"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:e.ticket_taxes_in_cents/100})]}),(0,t.jsxs)("div",{className:"flex justify-between border-b mb-4",children:[(0,t.jsx)("p",{className:"text-md",children:"Convenience Fee"}),(0,t.jsxs)("span",{className:"font-medium text-lg",children:[e.booking_fee/100,".00"]})]}),(0,t.jsxs)("div",{className:"flex font-bold justify-between",children:[(0,t.jsx)("p",{children:"Total Payable"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:e.transaction_before_offer_gross_price/100})]})]}),(0,t.jsxs)("div",{className:"pt-4 font-medium px-4 border-t",children:[(0,t.jsx)("p",{className:"font-medium pb-2",children:"BOOKING DETAILS"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm",children:"Booking Date"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:o.utc(e.transaction_date_time).format("DD/MM/YYYY")})]},s),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm",children:"Payment Method"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:e.payment_option})]},s),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm",children:"Booking Time"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:o.utc(e.Showtime).format("LT")})]},s),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm",children:"Booking ID"}),(0,t.jsx)("span",{className:"font-medium text-lg",children:e.bookingId})]},s),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm",children:"QR Code"}),(0,t.jsx)(c.ZP,{value:"".concat(null==e?void 0:e.bookingId),size:70})]})]})]})]})]},s)})))})})})}}},function(e){e.O(0,[4885,1508,2888,9774,179],function(){return e(e.s=73949)}),_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.