1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[583],{80195:function(e,s){s.Z={src:"/_next/static/media/img-blank.bb695736.svg",height:120,width:80,blurWidth:0,blurHeight:0}},54330:function(e,s,t){t.d(s,{Z:function(){return ei}});var n,l,i=t(36734),a=t(25552),r=t(44234),o=t(98695),d=t(4164),c=t(86880),m=t(3713),x=t.n(m),u=t(25404),h=t(51776),p=t(94195),v=t.n(p),g=t(92560),b=t(11741),j=t(88910),f=t(44155),y=t.n(f),N=t(31720),w=t(42072),k=t(13891),A=t.n(k),I=t(92500),S=t(75141);function C(){let{t:e}=(0,c.Z)(),{bookingCart:s,saveBookingCart:t,validBookingCart:n}=(0,o.bN)(),[l,a]=(0,h.useState)(0),[r,d]=(0,h.useState)(Date.now());(0,h.useEffect)(()=>{var e;d(null==s?void 0:null===(e=s.expiredAt)||void 0===e?void 0:e.getTime()),a(l+1)},[s.expiredAt]);let m=(e,t)=>{t||w.O2.emit("cancelOrder",s.userSessionId)},x=s=>{let{minutes:t,seconds:n,completed:l}=s;return l?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex justify-center items-center mb-4",children:[(0,i.jsxs)("span",{className:"text-sm",children:[e("booking:holdingTime"),":"]}),(0,i.jsxs)("span",{className:"text-primary text-base font-bold ml-1",children:[(0,S.Bu)(t,2),":",(0,S.Bu)(n,2)]})]})})};return(0,i.jsx)(i.Fragment,{children:n()&&r&&(0,i.jsx)(I.ZP,{date:r,renderer:x,onComplete:(e,s)=>m(e,s)},l)})}var D=t(80195),O=t(33906),E=t(11804),M=t.n(E),G=t(6425),Z=t.n(G),T=t(48196),V=t(34904),q=t.n(V),P=t(21818),F={src:"/_next/static/media/icon-success.c42e4e43.png",height:683,width:627,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAA3UlEQVR42mNYcm7V4qknZ/zff/toLAM6mHZqxv+JFxr+9+9b9JLPdOk+Xu/ZFxjc57XG+U3gYthyZWfzlMPz/mS0Lv/f7t/6f2Jsy385j9n/Gex7JzKAQKJL45oF4fX/J8R1/e6J6fm5IL72f314TT1Ijj2zrKvTxb/5m4FO/n8Tk+L/+halPxkYXGUZQGDn3hMtpfVT/04OZvg/PZThX2Fl3/9XH341wB0mn7LuhmvSov8OcQv+uxZuevX9y6ckhrkrjjODJJtnHJ7SMevI/46Zh/839m6dy8DAwAAAAl5mpouKItwAAAAASUVORK5CYII=",blurWidth:7,blurHeight:8},R={src:"/_next/static/media/Line.c026ce35.png",height:2,width:280,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAABCAQAAABJCSfIAAAAFklEQVR42mPYN3nflH1T9k6G0PsmAwBaVwqMBj4p7wAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:1},Y=t(67832),B=t.n(Y),L=t(78446);let U=(0,i.jsx)("span",{className:"w-[25px] h-[25px] rounded-full outline-none absolute","data-dismiss":"modal","aria-label":"Close",children:(0,i.jsx)(B(),{src:{src:"/_next/static/media/IconClose.41d08d13.png",height:25,width:25,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA20lEQVR42h2OTYrCUBCEe5gTDAzD3GNgbiWoyYvvRZMnagSzEnUfj6DLHMCFCmLQVRbZmCME/EPbaht6VfVVFSnXJfyf0Xplw/AeBsHZU2rR9v0fklNK/fd7vSoaDNh1nCfMHI9GDOPRN+abtNbrYRRxWZa36WTCaZpynufXZqPBXWtnJLFCilhVFZenE4N8oIKDTmdHiLpIrJAiFkXBSZI8Wp4nNRvCoGUcx+9YIecQsyy7eYCstT4ZY37hPDjolFghATGqF7V6/VMM8l8YNEbnHuYtRE1EH0REL9zak84bZcpxAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},width:45,height:20,alt:"Icon Close",className:"w-[25px] h-[25px]"})}),_={inputProps:{"aria-label":"Checkbox"}};function J(e){var s,t;let{isOpen:n,onClose:l,tickets:a,concessions:d,placeOrder:m}=e,{t:u,lang:p}=(0,c.Z)(),{bookingCart:g}=(0,o.bN)(),{movieData:b,cinemaData:j,sessionData:f}=g,y=x()(null===(s=g.sessionData)||void 0===s?void 0:s.showDate).locale(p),[N,w]=h.useState(!1),[k,A]=h.useState("");q()(g.seats,e=>e.ticketPrice),q()(d,e=>e.price*e.qty),g.discountAmount,g.loyaltyDiscount;let I=()=>{w(!N),A("")},S=()=>{if(!N){A(u("booking:msgConfirmOrder"));return}m(),l()};return(0,i.jsx)(P.Z,{open:n,onClose:l,showCloseIcon:!0,closeIcon:U,closeOnOverlayClick:!0,focusTrapped:!1,closeIconId:"custom__btn__icon-close-confirm",center:!0,classNames:{modal:"modal-sx m-0 bg-transparent shadow-none modal-confirm-order"},children:(0,i.jsxs)("div",{className:"py-5 px-6 modal-radius-10 bg-white",children:[(0,i.jsx)("h1",{className:"uppercase text-[16px] font-bold text-center mb-5",children:u("booking:inforBooking")}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex gap-x-4 items-start",children:[(0,i.jsx)("p",{className:"text-[14px] font-bold flex-none w-[30px] py-4",children:u("common:movie")}),(0,i.jsxs)("div",{className:"border border-[#DCD8D8] flex-1 text-left p-4",children:[(0,i.jsx)("p",{className:"text-[16px] font-bold text-[#1353B4]",children:null==b?void 0:b.name}),(0,i.jsxs)("p",{className:"text-[14px] ",children:[(0,i.jsx)("span",{children:null==b?void 0:b.movieFormat})," ",(0,i.jsx)("span",{className:"ml-2",children:(0,i.jsx)(r.Z,{age:null==b?void 0:b.age})})]})]})]}),(0,i.jsxs)("div",{className:"flex gap-x-4 my-3 items-start",children:[(0,i.jsx)("p",{className:"text-[14px] font-bold flex-none w-[30px] py-4",children:u("common:cinema")}),(0,i.jsxs)("div",{className:"border border-[#DCD8D8] flex-1 text-left p-4",children:[(0,i.jsx)("p",{className:"text-[16px] font-bold text-[#1353B4]",children:null==j?void 0:j.name}),(0,i.jsxs)("p",{className:"text-[14px] font-bold capitalize",children:[null==f?void 0:f.showTime," - ",y.format("dddd, "),(0,i.jsx)("strong",{children:y.format("DD/MM/YYYY")})]})]})]}),(0,i.jsxs)("div",{className:"flex gap-x-4 my-3 items-center",children:[(0,i.jsx)("div",{className:"text-[14px] font-bold flex-none w-[30px]"}),(0,i.jsxs)("div",{className:"border border-[#DCD8D8] flex-1 text-left p-4",children:[(0,i.jsx)("p",{className:"text-[14px]",children:null==f?void 0:f.screenName}),v()(a,e=>(0,i.jsx)("div",{className:"flex justify-between text-[14px]",children:(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:[e.name," "]}),(0,i.jsx)("strong",{children:e.seats.join(", ")})]})},e.categoryCode)),d.length>0&&(0,i.jsx)("div",{children:v()(d,e=>(0,i.jsx)("div",{className:"flex justify-between text-sm",children:(0,i.jsxs)("span",{children:[(0,i.jsxs)("strong",{children:[e.qty,"x "]}),(0,i.jsx)("span",{children:e.name}),(0,i.jsx)("span",{children:e.bundleDisplayItems.map(e=>(0,i.jsxs)("li",{className:"ml-4 flex text-sm",children:[(0,i.jsx)("span",{className:"font-bold",children:e.qty}),"x ",e.name]},e.itemId))})]})},e.name))})]})]}),(0,i.jsxs)("div",{className:"flex gap-x-4 my-5 items-center",children:[(0,i.jsx)("p",{className:"text-[14px] font-bold flex-none w-[30px]",children:u("booking:totalPayment")}),(0,i.jsx)("div",{className:"flex-1 text-left px-4 py-2 bg-[#1353B4] text-white font-bold",children:(0,i.jsxs)("p",{children:[null==g?void 0:null===(t=g.total)||void 0===t?void 0:t.toLocaleStr
1ing("vi-VN")," VNÄ"]})})]}),(0,i.jsx)("div",{className:"relative modal-ticket",children:(0,i.jsx)(B(),{src:R,width:45,height:1,alt:"Icon line",className:"w-full h-full"})}),(0,i.jsxs)("div",{className:"flex items-center mt-5",children:[(0,i.jsx)(B(),{src:F,width:45,height:20,alt:"Icon show",className:"w-[36px] h-[40px] flex-none"}),(0,i.jsxs)("p",{className:"min-[412px]:text-[14px] text-[12px] flex-auto ml-1",children:[(0,i.jsxs)("i",{children:[u("booking:accessConfirm")," "]}),(0,i.jsx)("i",{className:"text-sm text-gray-600",dangerouslySetInnerHTML:{__html:u("booking:accessConfirmText")}})]}),(0,i.jsx)("div",{className:"flex-none w-[20px]",children:(0,i.jsx)(L.Z,{..._,checked:N,onChange:I,size:"small",sx:{color:"#f26b38","&.Mui-checked":{color:"#f26b38"},"&:hover":{backgroundColor:"rgba(242, 107, 56, 0.04)"}}})})]}),k&&(0,i.jsx)("p",{className:"text-[12px] text-red text-center my-2",children:k}),(0,i.jsx)("div",{className:"text-center mt-2",children:(0,i.jsx)("button",{className:"w-1/2 py-2 border rounded-md mx-auto text-white ".concat(N?"bg-primary hover:bg-orange-20 font-bold":"bg-gray-400 cursor-not-allowed font-medium"),onClick:S,disabled:!N,children:u("booking:placeOrder")})})]})]})})}var z=t(78204),H=t(56683);function X(e){let{isOpen:s,onClose:t,item:n,handleOk:l}=e,{t:a}=(0,c.Z)(j.C7.COMMON),r=(0,z.U$)(n),o=r?(0,z._L)(n.price,r.discountPercent):null;return(0,i.jsxs)(P.Z,{open:s,onClose:t,showCloseIcon:!1,center:!0,closeOnOverlayClick:!1,classNames:{modal:"modal-375 modal-315 p-0"},children:[(0,i.jsxs)("div",{className:"generic__modal-wrapper",children:[(0,i.jsxs)("div",{className:"p-3",children:[(0,i.jsx)("h3",{className:"text-center font-bold text-lg uppercase",children:n.title}),(0,i.jsx)("p",{className:"text-center font-bold text-base px-4",children:n.content})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)(B(),{src:n.image||"/images/image-not-found.png",width:100,height:100,alt:n.title,className:"w-full h-full object-fill"}),(0,i.jsxs)("div",{className:"py-[10px] px-4",children:[(0,i.jsx)("p",{className:"text-base font-semibold",children:null==n?void 0:n.name}),(0,i.jsx)("p",{className:"text-base text-gray-600",children:null==n?void 0:n.description}),(0,i.jsxs)("p",{className:"text-base",children:[(0,i.jsxs)("span",{children:[a("price"),": "]}),null!==o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"line-through text-gray-400 mr-2",children:H.lV.formatCurrencyVND(n.price)}),(0,i.jsx)("span",{className:"text-primary font-bold italic",children:H.lV.formatCurrencyVND(o)})]}):(0,i.jsx)("span",{className:"text-primary font-bold italic",children:H.lV.formatCurrencyVND(n.price)})]}),n.note?(0,i.jsxs)("p",{className:"text-sm text-gray-400 italic",children:[a("note"),": ",n.note]}):null]})]})]}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("button",{onClick:t,className:"flex-1 hover:bg-grey-80/20 transition-all duration-30 min-w-[135px] w-full focus:outline-none focus:ring-[#e38601]text-center inline-flex items-center dark:hover:bg-grey-80/20 dark:focus:ring-[#e38601] justify-center text-black bg-grey-80/20 h-10 px-5 py-2.5 text-sm capitalize",children:a("skip")}),(0,i.jsx)("button",{onClick:l,className:"flex-1 hover:bg-[#e38601] transition-all duration-30 min-w-[135px] w-full focus:outline-none focus:ring-[#e38601]text-center inline-flex items-center dark:hover:bg-[#e38601] dark:focus:ring-[#e38601] justify-center text-white bg-primary h-10 px-5 py-2.5 text-sm capitalize",children:a("buyNow")})]})]})}var W=t(81685),Q=t(37654),K=t.n(Q);function $(){return(0,i.jsxs)("div",{className:"animate-pulse space-y-4",children:[(0,i.jsx)("div",{className:"h-4 bg-gray-200 rounded w-3/4"}),(0,i.jsxs)("div",{className:"space-y-2",children:[(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-2/3"}),(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]}),(0,i.jsx)("div",{className:"border-t border-dashed my-3"}),(0,i.jsx)("div",{className:"space-y-3",children:[1,2].map(e=>(0,i.jsxs)("div",{className:"flex justify-between items-start",children:[(0,i.jsxs)("div",{className:"space-y-2 w-full",children:[(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-2/3"}),(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"})]}),(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-16 ml-4"})]},e))}),(0,i.jsx)("div",{className:"border-t border-dashed my-3"}),(0,i.jsx)("div",{className:"space-y-3",children:[1,2].map(e=>(0,i.jsxs)("div",{className:"flex justify-between items-center",children:[(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/2"}),(0,i.jsx)("div",{className:"h-3 bg-gray-200 rounded w-16"})]},e))}),(0,i.jsx)("div",{className:"border-t border-dashed my-3"}),(0,i.jsxs)("div",{className:"flex justify-between items-center",children:[(0,i.jsx)("div",{className:"h-4 bg-gray-300 rounded w-24"}),(0,i.jsx)("div",{className:"h-4 bg-gray-300 rounded w-24"})]})]})}(n=l||(l={}))[n.MOVIE=1]="MOVIE",n[n.SEAT=2]="SEAT",n[n.CONCESSION=3]="CONCESSION",n[n.PAYMENT=4]="PAYMENT",n[n.DONE=5]="DONE";let ee=new N.n,es=[0,1],et=new N.n,en="ef95df6e-553f-4740-92ed-b97699da5c8f".split(",").map(e=>
1e.trim()).filter(Boolean);function el(e){return Array.from(new Set(e.filter(Boolean)))}function ei(){var e,s,t,n,m,p,f,N,k,I,S,E,G,V;let{bookingCart:P,saveBookingCart:F,validBookingCart:R,member:Y,validMember:B}=(0,o.bN)(),{activeStep:L,isLoading:U,disableNextStep:_,setIsLoading:Q,voucherGroups:ei,isValidSeats:ea}=(0,d.Qo)(),{setBundleErrors:er}=(0,W.O)(),{t:eo,lang:ed}=(0,c.Z)(),ec=(0,O.useRouter)(),em=h.useRef(null),[ex,eu]=(0,h.useState)(!0),eh=()=>{eu(e=>!e)},[ep,ev]=(0,h.useState)([]),[eg,eb]=(0,h.useState)([]),[ej,ef]=(0,h.useState)(!1),[ey,eN]=(0,h.useState)(!1),[ew,ek]=(0,h.useState)(null),{isSummaryLoading:eA}=function(e){let{activeStep:s,userSessionId:t,saveBookingCart:n,setIsLoading:i}=e,[a,r]=(0,h.useState)(!1);return(0,h.useEffect)(()=>{if(s<l.CONCESSION||!t)return;let e=!1,a=async()=>{try{var a;i(!0),r(!0);let o=await ee.getOrderSummary(t);if(!o.ok)throw o.data;if(e)return;let d=(null===(a=o.data)||void 0===a?void 0:a.data)||{},c=d.tickets||[],m=K()(c,e=>e.ticketTypeCode),x=v()(m,e=>{let s=null==e?void 0:e[0];if(!s)return null;let t=Boolean((null==s?void 0:s.pakage)||(null==s?void 0:s.package)),n=e=>Array.isArray(e.seats)?[...e.seats].filter(Boolean).sort().join(","):"",l=Array.from(new Map(e.map((e,s)=>[n(e)||"__idx_".concat(s),e])).values()),i=Array.from(new Set(l.flatMap(e=>Array.isArray(e.seats)?e.seats.filter(Boolean):[]))),a=l.length,r=t?a:a<=1?1:e.length,o=l.reduce((e,s)=>e+(Number(s.price)||0),0);return{categoryCode:s.ticketTypeCode,name:s.description,qty:r,price:r?Math.round(o/r):0,total:o,seats:i}}).filter(Boolean),u=d.concessions||[],h=Object.values(u.reduce((e,s)=>(e[s.itemId]?(e[s.itemId].qty+=s.quantity,e[s.itemId].total=e[s.itemId].price*e[s.itemId].qty):e[s.itemId]={itemId:s.itemId,name:s.description,price:s.price,qty:s.quantity,total:s.price*s.quantity},e),{}));await n({tickets:x,...s>=l.PAYMENT?{concessions:h}:{},discountAmount:d.discountAmount||0,loyaltyDiscount:d.loyaltyDiscount||0,barcodes:d.barcodes||[],total:d.total||0})}catch(e){w.GG.emit("openAlertModal",{msg:"Get order summary failed"})}finally{e||(i(!1),r(!1))}};return a(),()=>{e=!0}},[s,t]),{isSummaryLoading:a}}({activeStep:L,userSessionId:P.userSessionId,saveBookingCart:F,setIsLoading:Q}),eI=x()(null===(e=P.sessionData)||void 0===e?void 0:e.showDate).locale(ed),eS=null!==(s=P.movieData)&&void 0!==s&&!!s.id&&en.includes(P.movieData.id);(0,h.useEffect)(()=>{if(L<l.CONCESSION){var e;ev((null===(e=P.seats)||void 0===e?void 0:e.length)?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!Array.isArray(e)||0===e.length)return[];let s=K()(e,e=>e.type);return Object.entries(s).map(e=>{let[s,t]=e,n=0,l=[];y()(t,e=>{n+=e.ticketPrice||0,e.seatsInGroup&&0!==e.seatsInGroup.length?y()(e.seatsInGroup,s=>{l.push("".concat(e.rowName).concat(s.id))}):l.push("".concat(e.rowName).concat(e.id))});let i=t.length;return{categoryCode:s,name:H.lV.getSeatTypeVietnameseName(+s),qty:i,seats:l,price:i>0?n/i:0,total:n}})}(P.seats):[]);return}ev(P.tickets||[])},[L,P.seats,P.tickets]);let eC=h.useMemo(()=>(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.filter(e=>e.qty>0).map(e=>{var t,n;let l=e.qty*e.price,i=[],a=[],r=0;if((null===(t=e.bundles)||void 0===t?void 0:t.length)&&Array.isArray(s)){let t=s.find(s=>s.concessionId===e.itemId);null==t||null===(n=t.bundles)||void 0===n||n.forEach(s=>{let t=e.bundles.find(e=>e.id===s.bundleId);t&&s.selections.forEach(e=>{if(!e.qty||e.qty<=0)return;let n=t.items.find(s=>s.id===e.itemId);if(!n)return;let l=Number(e.qty),o=Number(n.price||0),d=l*o;i.push({bundleId:s.bundleId,itemId:e.itemId,qty:l}),a.push({itemId:e.itemId,name:n.name||n.headOfficeItemCode||"Unknown",qty:l,price:o,total:d}),r+=d})})}return{itemId:e.itemId,qty:e.qty,name:e.name,price:e.price,bundles:e.bundles,bundleDetails:i,bundleDisplayItems:a,concessionsTotal:l,bundlesTotal:r,total:l+r}})})(P.concessions,P.bundleSelected),[P.concessions,P.bundleSelected]),eD=ep.length>0||eC.length>0||((null===(t=P.barcodes)||void 0===t?void 0:t.length)||0)>0||P.discountAmount>0||P.loyaltyDiscount>0;(0,h.useEffect)(()=>{let e=em.current;if(!e)return;let s=()=>{document.documentElement.style.setProperty("--mobile-summary-height","".concat(e.offsetHeight,"px"))};s();let t=new ResizeObserver(s);return t.observe(e),()=>{t.disconnect(),document.documentElement.style.setProperty("--mobile-summary-height","0px")}},[ex,eD]);let eO=h.useMemo(()=>(0,z.U$)(P.packageSelect),[P.packageSelect]),eE=L===l.CONCESSION&&Boolean(eO)&&Boolean(null==P?void 0:P.isPackage)&&!(null==P?void 0:P.suggestionVoucherDismissed)&&0===((null===(n=P.barcodes)||void 0===n?void 0:n.length)||0),eM=h.useMemo(()=>eE&&eO?eC.reduce((e,s)=>e+Math.round(s.total*eO.discountPercent/100),0):0,[eE,eO,eC]),eG=eE?[]:P.barcodes,eZ=eE?eM:P.discountAmount,eT=(e,s)=>(null==s?void 0:s.name)?s.name:eO&&e===eO.barcode?"Giảm ".concat(eO.discountPercent,"% Combo Online"):e,eV=(e,s)=>eO&&e===eO.barcode?0:(null==s?void 0:s.value)||0;(0,h.useEffect)(()=>{let e=[];y()(ei,s=>y()(s.items,s=>e.push(s))),eb(e)},[ei]);let eq=()=>{let{isValid:e,errors:s,firstErrorConcessionId:t}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=new Map,t=null,n=!0;
1return e.forEach(e=>{var l;(null===(l=e.bundles)||void 0===l?void 0:l.length)&&e.bundles.forEach(l=>{let i=l.qty*e.qty,a=e.bundleDetails.filter(e=>e.bundleId===l.id).reduce((e,s)=>e+s.qty,0);a<i&&(n=!1,s.set("".concat(e.itemId,"-").concat(l.id),!0),null===t&&(t=e.itemId))})}),{isValid:n,errors:s,firstErrorConcessionId:t}}(eC);return er(s),e||(null!==t&&w.GG.emit("expandConcessionWithError",{concessionId:t}),w.GG.emit("openAlertModal",{msg:eo("booking:notEnoughIngredientsSelected")})),e},eP=()=>{if(L===l.PAYMENT){e_();return}if(L===l.CONCESSION){F({activeStep:l.SEAT});return}if(L===l.SEAT){P.userSessionId?w.O2.emit("cancelOrder",P.userSessionId):ec.push("/booking");return}ec.push("/")},eF=()=>{var e;let s=null===(e=P.movieData)||void 0===e?void 0:e.age;return Boolean(s&&"0"!==s)},eR=()=>{var e;let s=null===(e=P.movieData)||void 0===e?void 0:e.age;w.GG.emit("openConfirmModal",{header:(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)(r.Z,{age:s}),(0,i.jsx)("h4",{className:"mt-4 font-semibold text-xl",children:eS?"X\xe1c nháºn Äá» tuá»i tham gia sá»± kiá»n":eo("booking:confirmAgeRating")})]}),content:(0,i.jsx)("div",{className:"text-center text-sm text-blue-40 italic",children:eS?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:"T\xf4i x\xe1c nháºn v\xe9 ÄÆ°á»£c sá» dụng cho ngưá»i tham gia từ 18 tuá»i trá» l\xean v\xe0 Äá»ng \xfd cung cấp giấy tá» t\xf9y th\xe2n khi ÄÆ°á»£c y\xeau cầu Äá» x\xe1c minh Äá» tuá»i tại sá»± kiá»n. Lưu \xfd: Ngưá»i dưá»i 18 tuá»i sẽ kh\xf4ng ÄÆ°á»£c tham gia sá»± kiá»n."}),(0,i.jsx)("p",{className:"mt-2",children:"T\xf4i Äá»ng \xfd Äá» Ban Tá» Chức sá» dụng h\xecnh ảnh tại sá»± kiá»n cho c\xe1c mục Ä\xedch truyá»n th\xf4ng."})]}):(0,i.jsxs)(i.Fragment,{children:[eo("booking:confirmAgeContent"+s),"13"!==s&&eo("booking:agreeToProvideId")]})}),onConfirm:eB})},eY=()=>{if(!B()){w.GG.emit("openSignInModal");return}switch(L){case l.MOVIE:return eW();case l.SEAT:return eQ();case l.CONCESSION:if(!eq())return;if(eF())return eR();return eB();case l.PAYMENT:ef(!0);return}},eB=()=>{var e;let s=P.suggestionVoucherDismissed?null:(0,z.U$)(P.packageSelect),t=(null==s?void 0:s.barcode)||T.Z.get(j.l0.barcode),n=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.filter(e=>e.qty>0&&null!=e.itemId&&!es.includes(e.itemId)).map(e=>{var t;let n={itemId:e.itemId,quantity:e.qty},l=s.find(s=>s.concessionId===e.itemId);return(null==l?void 0:null===(t=l.bundles)||void 0===t?void 0:t.length)&&(n.bundles=l.bundles.map(e=>({id:e.bundleId,items:e.selections.filter(e=>e.qty>0).map(e=>({id:e.itemId,itemId:e.concessionItemId,qty:e.qty}))})).filter(e=>e.items.length>0)),n})}(P.concessions,P.bundleSelected||[]),l={orderId:P.userSessionId,sessionId:null===(e=P.sessionData)||void 0===e?void 0:e.id,concessions:n};Q(!0),t?(F({barcodes:[t]}),eL(t,l)):eU(l)},eL=(e,s)=>{et.applyVoucher(P.userSessionId,e).finally(()=>eU(s))},eU=e=>{et.seatConcessions(e).finally(()=>Q(!1)).then(e=>e.ok?e.data:Promise.reject(e.data)).then(()=>F({activeStep:l.PAYMENT})).catch(e=>{var s;return w.GG.emit("openAlertModal",{msg:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.message})})},e_=()=>{w.GG.emit("openConfirmModal",{header:(0,i.jsx)("h4",{className:"text-xl",children:eo("common:warning")}),content:(0,i.jsx)("p",{children:eo("booking:confirmClearVoucher")}),onConfirm:async()=>{Q(!0);try{await Promise.all([et.clearPoint(),et.clearVouchers(P.userSessionId)])}catch(s){var e;w.GG.emit("openAlertModal",{msg:null==s?void 0:null===(e=s.data)||void 0===e?void 0:e.message})}finally{Q(!1)}F({activeStep:l.CONCESSION,suggestionVoucherDismissed:!0})}})},eJ=h.useMemo(()=>L===l.PAYMENT?P.total||0:q()(ep,e=>e.price*e.qty||0)+q()(eC,e=>e.total||0)-(P.discountAmount||0)-(P.loyaltyDiscount||0)-eM,[P.total,ep,eC,P.discountAmount,P.loyaltyDiscount,eM]);(0,h.useEffect)(()=>{let e=[];y()(ei,s=>{y()(s.items,s=>e.push(s))}),eb(e)},[ei]);let ez=()=>{var e;let s=null===(e=P.cinemaData)||void 0===e?void 0:e.id;return Q(!0),et.createOrder(s).finally(()=>Q(!1)).then(e=>
1e.ok?e.data:Promise.reject(e.data)).then(e=>{let s=x()().add(e.data.expiredTime,"seconds").toDate();return F({userSessionId:e.data.orderId,expiredAt:s})}).catch(e=>{var s;return w.GG.emit("openAlertModal",{msg:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.message})})},eH=async(e,s)=>{var t;if(!e)return;let n=[];y()(P.seats,e=>{0===e.seatsInGroup.length?n.push(A()(e,["area","row","column"])):y()(e.seatsInGroup,e=>n.push(A()(e,["area","row","column"])))});let l=s?[{ticketTypeCode:null==ew?void 0:ew.ticketTypeCode,price:null==ew?void 0:ew.price,quantity:null==ew?void 0:ew.quantity,type:null==ew?void 0:ew.type}]:[],i={orderId:e,sessionId:null===(t=P.sessionData)||void 0===t?void 0:t.id,seats:n,packages:l};return Q(!0),et.seatSeats(i).finally(()=>Q(!1)).then(e=>e.ok?e.data:Promise.reject(e.data)).then(()=>i.packages&&i.packages.length>0&&(null==ew?void 0:ew.skipConcession)===j.zI?(null==ew?void 0:ew.type)!==j.XG.CUSTOM?F({activeStep:L+1}):eX(e):F({activeStep:L+1})).catch(e=>{var s;return w.GG.emit("openAlertModal",{msg:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.message})})},eX=e=>{var s,t;Q(!0);let n={orderId:e,sessionId:null===(s=P.sessionData)||void 0===s?void 0:s.id,concessions:[{itemId:null!==(t=null==ew?void 0:ew.concessionCode)&&void 0!==t?t:0,quantity:1}]};return et.seatConcessions(n).finally(()=>Q(!1)).then(e=>e.ok?e.data:Promise.reject(e.data)).then(()=>F({activeStep:L+1})).catch(e=>{var s;return w.GG.emit("openAlertModal",{msg:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.message}),F({activeStep:L+1})})},eW=()=>{if(!B()){w.GG.emit("openSignInModal");return}F({activeStep:L+1,userSessionId:""}).then(()=>{var e;return ec.push("/booking/".concat(null===(e=P.movieData)||void 0===e?void 0:e.slug))})},eQ=()=>{var e,s,t,n;if(!(null===(e=P.sessionData)||void 0===e?void 0:e.id)){w.GG.emit("openAlertModal",{msg:eo("booking:pleaseSelectSession")});return}if(!(null===(s=P.seats)||void 0===s?void 0:s.length)){w.GG.emit("openAlertModal",{msg:eo("booking:pleaseSelectSeat")});return}if(!eS&&!ea()){w.GG.emit("openAlertModal",{msg:eo("booking:validSelectSeat")});return}let l=P.seats.length;if(!R()){if(!(null==P?void 0:null===(n=P.packages)||void 0===n?void 0:n.length))return ez().then(e=>eH(e.userSessionId,!1));let e=eK(l,P.packages);if(e){ek(e),eN(!0);return}return ez().then(e=>eH(e.userSessionId,!1))}if(!(null==P?void 0:null===(t=P.packages)||void 0===t?void 0:t.length))return eH(P.userSessionId,!1);let i=eK(l,P.packages);if(i){ek(i),eN(!0);return}return eH(P.userSessionId,!1)},eK=(e,s)=>Array.isArray(s)&&s.find(s=>e>=s.minSeats&&e<s.maxSeats)||null,e$=()=>{let e={orderId:P.userSessionId,methodId:P.paymentMethod,fullName:Y.name,phone:Y.phone,email:Y.email,successRedirectUrl:j.EZ.URL_SUCCESS,errorRedirectUrl:j.EZ.URL_ERROR};Q(!0),et.placeOrder(e).then(e=>e.ok?e.data:Promise.reject(e.data)).then(e=>{var s,t;if((null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.statusCode)===1){try{T.Z.set("booking:pending-success",JSON.stringify({...P,expiredAt:Date.now()+18e5,savedAt:Date.now()}),{path:"/",sameSite:"lax",expires:1/48})}catch(e){}ec.replace("".concat(e.data.url))}else(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.statusCode)===2&&ec.push("/dat-ve-thanh-cong")}).catch(e=>{var s;Q(!1),w.GG.emit("openAlertModal",{msg:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.message})})},e0=e=>{w.O2.emit("removeVoucher",e),w.O2.emit("getPaymentMethods")},e1=()=>{F({suggestionVoucherDismissed:!0})},e2=()=>(eN(!1),F({isPackage:!0,packageSelect:{...ew},suggestionVoucherDismissed:!1}),P.userSessionId)?eH(P.userSessionId,!0):ez().then(e=>eH(e.userSessionId,!0)),e4=()=>{if(eN(!1),ek(null),F({isPackage:!1,packageSelect:null}),P.userSessionId)return eH(P.userSessionId,!1);ez().then(e=>eH(e.userSessionId,!1))},e3=(0,i.jsxs)("div",{ref:em,className:"fixed bottom-0 left-0 w-full z-100 bg-white xl:hidden transition-all duration-500 ease-in-out border border-[#DFDFDF] rounded-t-xl flex flex-col max-h-[90vh] ".concat((null==P?void 0:P.sessionData)?"opacity-100":"opacity-0"),children:[eD&&(0,i.jsx)("button",{type:"button",onClick:eh,"aria-label":ex?eo("booking:collapse"):eo("booking:expand"),className:"flex-shrink-0 flex justify-center items-center w-full py-3",children:(0,i.jsx)("span",{className:"block w-10 h-1 rounded-full bg-gray-300"})}),(0,i.jsx)("div",{className:"grid transition-[grid-template-rows] duration-300 ease-in-out",style:{gridTemplateRows:ex?"0fr":"1fr"}
1,children:(0,i.jsxs)("div",{className:"relative overflow-hidden",children:[(0,i.jsx)("div",{className:"overflow-y-auto max-h-[72px] [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,i.jsx)("div",{className:"px-4 py-2",children:L===l.CONCESSION&&eA?(0,i.jsx)($,{}):ep.length>0&&v()(ep,e=>{let s=el(e.seats),t=e.qty*e.price;return(0,i.jsxs)("div",{className:"flex justify-between text-sm",children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("strong",{children:[e.qty,"x "]}),(0,i.jsx)("span",{children:e.name}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:[eo("booking:seat"),": "]}),(0,i.jsx)("strong",{children:s.join(", ")})]})]}),(0,i.jsx)(u.Z,{value:t})]},e.categoryCode)})})}),!ex&&(0,i.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 w-full h-6 bg-gradient-to-t from-white to-transparent"})]})}),(0,i.jsx)("div",{className:"grid transition-[grid-template-rows] duration-300 ease-in-out",style:{gridTemplateRows:ex?"1fr":"0fr"},children:(0,i.jsx)("div",{className:"overflow-hidden max-h-[50vh] overflow-y-auto [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:(0,i.jsx)("div",{className:Z()({"grid grid-cols-3 items-center px-4 mb-2 transition opacity-0 relative":!0," opacity-100":null==P?void 0:P.sessionData}),children:(0,i.jsxs)("div",{className:"col-span-3",children:[L===l.CONCESSION&&eA?(0,i.jsx)($,{}):ep.length>0&&(0,i.jsx)("div",{className:"",children:v()(ep,e=>{let s=el(e.seats),t=e.qty*e.price;return(0,i.jsxs)("div",{className:"flex justify-between text-sm mt-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("strong",{children:[e.qty,"x "]}),(0,i.jsx)("span",{children:e.name}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:[eo("booking:seat"),": "]}),(0,i.jsx)("strong",{children:s.join(", ")})]})]}),(0,i.jsx)(u.Z,{value:t})]},e.categoryCode)})}),eC.length>0&&(0,i.jsxs)("div",{children:[ep.length>0&&(0,i.jsx)("div",{className:"my-3 border-t border-grey-60 border-dashed"}),v()(eC,e=>(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"relative flex justify-between items-start text-sm",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("span",{className:"flex-1",children:[(0,i.jsxs)("strong",{children:[e.qty,"x "]}),(0,i.jsx)("span",{children:e.name})]})}),(0,i.jsx)(u.Z,{value:e.concessionsTotal})]}),(0,i.jsx)("div",{children:e.bundleDisplayItems.length>0&&(0,i.jsx)("ul",{className:"pl-4 text-xs text-gray-500",children:e.bundleDisplayItems.map(e=>(0,i.jsxs)("li",{className:"flex justify-between items-center",children:[e.qty,"x ",e.name,e.price>0&&(0,i.jsxs)("span",{className:"text-orange-600 ml-2 whitespace-nowrap",children:["+",e.total.toLocaleString("vi-VN")," â«"]})]},"".concat(e.itemId,"-").concat(e.name)))})})]},e.itemId))]}),eG.length>0&&(0,i.jsxs)(i.Fragment,{children:[(ep.length>0||eC.length>0)&&(0,i.jsx)("div",{className:"my-3 border-t border-grey-60 border-dashed"}),(0,i.jsx)("h4",{className:"text-sm font-semibold",children:eo("booking:listVoucherApplied")}),(0,i.jsx)("ul",{className:"mt-2 text-sm pl-0",children:v()(eG,e=>{let s=M()(eg,s=>s.barcode===e),t=eE&&e===(null==eO?void 0:eO.barcode);return(0,i.jsxs)("li",{className:"flex justify-between pl-0 pb-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(g.G,{icon:b.$aW,className:"inline-block text-lg mr-2 cursor-pointer text-sm",onClick:()=>t?e1():e0(e)}),(0,i.jsx)("span",{children:eT(e,s)})]}),(0,i.jsx)("div",{children:eV(e,s)>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(u.Z,{value:eV(e,s)})})})]},e)})})]}),eZ>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,i.jsx)("span",{children:eo("booking:giftVoucher")}),(0,i.jsx)(u.Z,{value:eZ,className:"text-red-20"})]})}),P.loyaltyDiscount>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex justify-between mb-2",children:[(0,i.jsx)("span",{children:eo("booking:starsPoint")}),(0,i.jsx)(u.Z,{value:P.loyaltyDiscount,className:"text-red-20"})]})})]})})})}),(0,i.jsxs)("div",{className:"flex-shrink-0 flex items-center justify-between px-4 h-14 bg-white",children:[(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsxs)("strong",{className:"text-sm font-normal text-grey-10",children:[eo("booking:total"),":"," "]}),(0,i.jsx)(u.Z,{value:eJ,primary:!0})]}),(0,i.jsx)("div",{className:"text-right flex items-center",children:L<5&&(0,i.jsxs)("div",{children:[(0,i.jsx)("button",{className:"w-[65px] h-10 py-2 bg-transparent text-primary text-sm rounded-md",onClick:eP,disabled:L<1||U,children:(0,i.jsx)("span",{children:eo("booking:back")})}),(0,i.jsx)("button",{className:"w-[80px] h-10 py-2 bg-primary text-white border text-sm rounded-md hover:bg-orange-20 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-primary ".concat(4===L?"w-[101px]":"w-[80px]"),disabled:L>=5||U||(L===l.MOVIE||L===l.PAYMENT)&&_,onClick:eY,children:U?(0,i.jsx)(g.G,{icon:b.LM3,flip:"vertical",spin:!0,className:"text-lg"}):(0,i.jsx)("span",{children:4===L?eo("booking:placeOrder"):eo("booking:continue")})})]})})]})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"booking__summary md:mb-4",children:[R()&&(0,i.jsx)(C,{}),(0,i.jsx)("div",{className:"h-[6px] bg-primary rounded-t-lg"}),(0,i.jsxs)("div",{className:"bg-white p-4 grid grid-cols-3 xl:gap-2 items-center",children:[(0,i.jsx)("div",{className:"row-span-2 md:row-span-1 xl:row-span-2 block md:hidden xl:block",children:(0,i.jsx)(a.Z,{src:(null==P?void 0:null===(m=P.movieData)||void 0===m?void 0:m.imagePortrait)||D.Z,alt:(null==P?void 0:null===(p=P.movieData)||void 0===p?void 0:p.name)||"",width:100,height:150,className:"xl:w-full xl:h-full md:w-[80px] md:h-[120px] w-[78px] h-[110px] rounded object-cover"})}),(0,i.jsx)("div",{className:"row-span-2 md:row-span-1 xl:row-span-2 hidden md:block xl:hidden",children:(0,i.jsx)(a.Z,{src:(null==P?void 0:null===(f=P.movieData)||void 0===f?void 0:f.imageLandscape)||D.Z,alt:(null==P?void 0:null===(N=P.movieData)||void 0===N?void 0:N.name)||"",width:100,height:150,className:"w-[220px] h-[150px] rounded object-cover"})}),(0,i.jsxs)("div",{className:"flex-1 col-span-2 md:col-span-1 xl:col-span-2",children:[(0,i.jsx)("h3",{className:"text-sm xl:text-base font-bold xl:mb-2",children:null==P?void 0:null===(k=P.movieData)||void 0===k?void 0:k.name}),(0,i.jsx)("p",{className:"text-sm inline-block",children:null==P?void 0:null===(I=P.movieData)||void 0===I?void 0:I.movieFormat}),(0,i.jsx)("span",{children:" - "}),(0,i.jsx)("div",{className:"xl:mt-2 ml-2 xl:ml-0 inline-block",children:(0,i.jsx)(r.Z,{age:null==P?void 0:null===(S=P.movieData)||void 0===S?void 0:S.age})})]}),(0,i.jsxs)("div",{className:"col-span-2 md:col-span-1 xl:col-span-3",children:[(null==P?void 0:P.sessionData)&&(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"xl:mt-4 text-sm xl:text-base",children:[(0,i.jsx)("strong",{children:null==P?void 0:null===(E=P.cinemaData)||void 0===E?void 0:E.name}),(0,i.jsx)("span",{children:" - "}),(0,i.jsx)("span",{className:"text-sm xl:text-base",children:null==P?void 0:null===(G=P.sessionData)||void 0===G?void 0:G.screenName})]}),(0,i.jsxs)("div",{className:"xl:mt-2 text-sm xl:text-base",children:[(0,i.jsxs)("span",{children:[eo("booking:session"),": "]}),(0,i.jsx)("strong",{children:null==P?void 0:null===(V=P.sessionData)||void 0===V?void 0:V.showTime}),(0,i.jsx)("span",{children:" - "}),(0,i.jsxs)("span",{className:"capitalize text-sm",children:[eI.format("dddd, "),(0,i.jsx)("strong",{children:eI.format("DD/MM/YYYY")})]})]})]}),L===l.CONCESSION&&eA?(0,i.jsx)($,{}):ep.length>0&&(0,i.jsxs)("div",{className:"xl:block hidden",children:[(0,i.jsx)("div",{className:"my-4 border-t border-grey-60 border-dashed xl:block hidden"}),v()(ep,e=>{let s=el(e.seats),t=e.qty*e.price;return(0,i.jsxs)("div",{className:"flex justify-between text-sm mt-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("strong",{children:[e.qty,"x "]}),(0,i.jsx)("span",{children:e.name}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{children:[eo("booking:seat"),": "]}),(0,i.jsx)("strong",{children:s.join(", ")})]})]}),(0,i.jsx)(u.Z,{value:t})]},e.categoryCode)})]}),eC.length>0&&(0,i.jsxs)("div",{className:"xl:block hidden",children:[(0,i.jsx)("div",{className:"my-4 border-t border-grey-60 border-dashed xl:block hidden"}),v()(eC,e=>(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"flex justify-between text-sm mt-2",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("span",{children:[(0,i.jsxs)("strong",{children:[e.qty,"x "]}),(0,i.jsx)("span",{children:e.name})]})}),(0,i.jsx)(u.Z,{value:e.concessionsTotal})]}),(0,i.jsx)("div",{children:e.bundleDisplayItems.length>0&&(0,i.jsx)("ul",{className:"pl-4 text-xs text-gray-500",children:e.bundleDisplayItems.map(e=>(0,i.jsxs)("li",{className:"flex justify-between items-center",children:[e.qty,"x ",e.name,e.price>0&&(0,i.jsxs)("span",{className:"text-orange-600 ml-2 whitespace-nowrap",children:["+",e.total.toLocaleStr
1ing("vi-VN")," â«"]})]},"".concat(e.itemId,"-").concat(e.name)))})})]},e.itemId))]}),(0,i.jsx)("div",{className:"my-4 border-t border-grey-60 border-dashed xl:block hidden"})]}),eG.length>0&&(0,i.jsxs)("div",{className:"xl:block hidden col-span-3",children:[(0,i.jsx)("h4",{className:"text-sm font-semibold col-span-3",children:eo("booking:listVoucherApplied")}),(0,i.jsx)("ul",{className:"mt-2 xl:col-span-3 text-sm pl-0",children:v()(eG,e=>{let s=M()(eg,s=>s.barcode===e),t=eE&&e===(null==eO?void 0:eO.barcode);return(0,i.jsxs)("li",{className:"flex justify-between pl-0 pb-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(g.G,{icon:b.$aW,className:"inline-block text-lg mr-2 cursor-pointer",onClick:()=>t?e1():e0(e)}),(0,i.jsx)("span",{children:eT(e,s)})]}),(0,i.jsx)("div",{children:eV(e,s)>0&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(u.Z,{value:eV(e,s)})})})]},e)})}),(0,i.jsx)("div",{className:"my-2 border-t border-grey-60 border-dashed block col-span-3"})]}),eZ>0&&(0,i.jsx)("div",{className:"xl:block hidden col-span-3",children:(0,i.jsxs)("div",{className:"xl:flex hidden justify-between mb-2 col-span-3",children:[(0,i.jsx)("span",{children:eo("booking:giftVoucher")}),(0,i.jsx)(u.Z,{value:eZ,className:"text-red-20"})]})}),P.loyaltyDiscount>0&&(0,i.jsx)("div",{className:"xl:block hidden col-span-3",children:(0,i.jsxs)("div",{className:"xl:flex hidden justify-between mb-2 col-span-3",children:[(0,i.jsx)("span",{children:eo("booking:starsPoint")}),(0,i.jsx)(u.Z,{value:P.loyaltyDiscount,className:"text-red-20"})]})}),(0,i.jsxs)("div",{className:"xl:flex hidden justify-between col-span-3",children:[(0,i.jsx)("strong",{className:"text-base",children:eo("booking:total")}),(0,i.jsx)(u.Z,{value:eJ,primary:!0})]})]}),L<5&&(0,i.jsxs)("div",{className:"mt-8 xl:flex hidden",children:[(0,i.jsx)("button",{className:"w-1/2 mr-2 py-2 text-primary",onClick:eP,disabled:L<1||U,children:(0,i.jsx)("span",{children:eo("booking:back")})}),(0,i.jsx)("button",{className:"w-1/2 ml-2 py-2 bg-primary text-white border rounded-md hover:bg-orange-20 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-primary",disabled:L>=5||U||(L===l.MOVIE||L===l.PAYMENT)&&_,onClick:eY,children:U?(0,i.jsx)(g.G,{icon:b.LM3,flip:"vertical",spin:!0,className:"text-lg"}):(0,i.jsx)("span",{children:4===L?eo("booking:placeOrder"):eo("booking:continue")})})]})]}),e3,(0,i.jsx)(J,{isOpen:ej,onClose:()=>ef(!1),tickets:ep,concessions:eC,placeOrder:e$}),ew&&Object.entries(ew).length&&(0,i.jsx)(X,{isOpen:ey,onClose:e4,item:ew,handleOk:e2})]})}},25404:function(e,s,t){t.d(s,{Z:function(){return a}});var n=t(36734),l=t(6425),i=t.n(l);function a(e){let s=parseFloat(e.value),t={"inline-block font-bold":!0,"text-primary":e.primary};return t[e.className||""]=!0,(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:i()(t),children:s.toLocaleString("vi-VN",{style:"currency",currency:"VND"})})})}},44234:function(e,s,t){t.d(s,{Z:function(){return i}});var n=t(36734),l=t(56683);function i(e){let{age:s}=e,t=l.lV.getAllowedType(s);return(0,n.jsx)(n.Fragment,{children:t&&(0,n.jsx)("span",{className:"inline-flex items-center justify-center w-[38px] h-7 bg-primary rounded text-sm text-center text-white font-bold not-italic",children:t})})}t(51776)},85822:function(e,s,t){t.d(s,{s:function(){return l}});var n=t(51776);let l=()=>{let[e,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{s(!0)},[]),{hasMounted:e}}}}]);
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.