1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{77377:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_organizer/[organizer]/event/[slug]",function(){return n(67907)}])},67907:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return q},default:function(){return H},filterActiveProducts:function(){return Q},filterProducts:function(){return J}});var s=n(70865),r=n(96670),a=n(52322),i=n(44894),o=n(66383),l=n(20913),d=n(93996),c=n(91829),u=n(40898),m=n(1046),f=n(1959),v=n(72919),g=n(19034),p=n.n(g),h=n(5632),x=n(2784),j=n(10682),b=n(34051),y=n(31555),_=n(83112),N=function(e){var t,n,s,r,g,N,S,R=e.primaryEvent,w=e.subeventsByPrimaryEvent,Z=e.eventCmsPost,E=e.preSaleStatus,P=(0,o.Z)((0,x.useState)(!1),2),L=P[0],B=P[1],M=(0,h.useRouter)(),C=M.query.booking,k=(0,x.useRef)(null),O=(0,_.Z)(),I=(0,i.O)(function(e){return e.dispatchRequireValued});(0,x.useEffect)(function(){I({type:"ALL",payload:{seatPlan:null}})},[]);var A=(0,x.useCallback)(function(e){M.push("/event/"+e.slug)},[M]),T=function(){var e;scrollTo(0,(null===(e=k.current)||void 0===e?void 0:e.offsetTop)-110)};return(0,x.useEffect)(function(){C&&k.current&&scrollTo(0,k.current.offsetTop-110)},[C,k]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.Z,{fluid:"lg",className:"p-3 px-lg-0",children:[(0,a.jsxs)(b.Z,{className:"m-0",style:{gap:15},children:[(0,a.jsxs)(y.Z,{xs:"12",md:"4",className:"position-relative text-center mb-3 p-0",children:[(0,a.jsx)(d.Z,{shadow:!0,alt:"",src:null===(t=R.meta_data)||void 0===t?void 0:t.AVATAR_URL,width:"100%",height:"auto"}),E===f.V.upcoming&&(0,a.jsx)("span",{style:{borderBottomRightRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:0},className:"badge text-bg-warning rounded-0 position-absolute top-0 start-0 cursor-pointer text-themeCustom",onClick:T,children:O.formatMessage({id:"common.upcomingPreSaleBadge"})}),E===f.V.now&&(0,a.jsx)("span",{style:{borderBottomRightRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:0},className:"badge text-bg-success position-absolute top-0 start-0 cursor-pointer text-themeCustom",onClick:T,children:O.formatMessage({id:"common.nowPreSaleBadge"})}),E===f.V.end&&(0,a.jsx)("span",{style:{borderBottomRightRadius:0,borderBottomLeftRadius:0,borderTopRightRadius:0},className:"badge text-bg-danger position-absolute top-0 start-0",children:O.formatMessage({id:"common.endPreSaleBadge"})})]}),(0,a.jsxs)(y.Z,{className:"p-0 ps-md-3",children:[(null==Z?void 0:null===(n=Z.frontmatter)||void 0===n?void 0:n.version)==="v2"?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsx)("h2",{className:"text-uppercase name",children:(0,v.ss)(null==R?void 0:R.name)})}),(0,a.jsx)(m.ActionBtnsEvent,{trailer:(null==Z?void 0:null===(s=Z.frontmatter)||void 0===s?void 0:s.trailer)||""})]}):(0,a.jsx)(a.Fragment,{}),!!(null==Z?void 0:Z.code)&&(0,a.jsx)(c.Z,{code:null==Z?void 0:Z.code})]})]}),(0,a.jsxs)("div",{className:"",children:[!!(null==Z?void 0:null===(r=Z.frontmatter)||void 0===r?void 0:r.assets)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"h4",children:O.formatMessage({id:"common.videoImages"})}),(0,a.jsx)(m.LibraryMedia,{trailer:null==Z?void 0:null===(g=Z.frontmatter)||void 0===g?void 0:g.trailer,items:null==Z?void 0:null===(N=Z.frontmatter)||void 0===N?void 0:N.assets,align:"left"})]}),E===f.V.end?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"h4 text-primary",id:"list-of-event",ref:k,children:O.formatMessage({id:"common.schedule.music"})}),(0,a.jsx)("div",{className:"mb-2",children:O.formatMessage({id:"eventcalendar.noShowAvailable"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{className:"h4 text-primary",id:"list-of-event",ref:k,children:O.formatMessage({id:"common.schedule.music"})}),(null==w?void 0:w.length)?(0,a.jsxs)("div",{className:"mb-2",children:["C\xf3 tất cả ",(0,a.jsxs)("b",{children:[null==w?void 0:w.length," suất diá»
n"]}),". Vui l\xf2ng chá»n má»t suất diá»
n Äá» Äặt v\xe9"]}):(0,a.jsxs)("div",{className:"mb-2",children:[" ",O.formatMessage({id:"eventcalendar.noShowAvailable"})]}),!!(null==w?void 0:w.length)&&(0,a.jsx)(l.Z,{selectEvent:A,events:null==w?void 0:w.map(function(e){return{name:(0,v.ss)(e.name),slug:e.slug,date_to:p()(e.date_to).toISOString(),date_from:p()(e.date_from).toISOString()}}),min:p()(null==R?void 0:R.date_from).startOf("day").toISOString(),max:p()(null==R?void 0:R.date_to).endOf("day").toISOString()})]})]})]}),(0,a.jsx)(u.Z,{fullscreen:!0,showPlayer:L,setShowPlayer:B,url:null==Z?void 0:null===(S=Z.frontmatter)||void 0===S?void 0:S.trailer,video:!0})]})},S=n(78789),R=n(3425),w=n(46928),Z=n(72475),E=n(72579),P=n.n(E),L=n(25237),B=n.n(L),M=n(35005),C=B()(function(){return Promise.all([n.e(117),n.e(425)]).then(n.bind(n,11425))},{loadableGenerated:{webpack:function(){return[11425]}},ssr:!1}),k=function(e){var t=e.event,n=e.organizer,s=e.preSaleStatus,r=void 0===s?f.V.now:s,l=(0,_.Z)(),c=(0,h.useRouter)(),u=(0,o.Z)((0,x.useState)(),2),m=u[0],v=u[1],g=(0,o.Z)((0,x.useState)(),2),p=g[0],N=g[1],E=(0,i.O)(function(e){return{products:e.products,seatPlan:e.seatPlan}}),L=E.products,B=E.seatPlan,k=r!==f.V.now,O=!!B&&!!(null==L?void 0:L.length)&&!k;return(0,a.jsxs)(a.Fragment,{children:[(P()(t,"meta_data.BANNER_IMG_URL")||(0,Z.L)(n,"defaultEventBannerImg"))&&(0,a.jsxs)("div",{className:"w-100 py-3 position-relative bg-primary overflow-hidden",children:[(0,a.jsx)("div",{className:"position-absolute top-0 left-0 w-100 h-100",style:{filter:"blur(4px)"},children:(0,a.jsx)(d.Z,{src:P()(t,"meta_data.BANNER_IMG_URL")||(0,Z.L)(n,"defaultEventBannerImg"),alt:"banner",width:"100%",height:"100%",aspectRatio:"5/2",borderRadius:0})}),(0,a.jsx)("div",{className:"position-absolute top-0 left-0 w-100 h-100 bg-primary bg-opacity-75"}),(0,a.jsx)(j.Z,{fluid:"lg",children:(0,a.jsx)(d.Z,{src:P()(t,"meta_data.BANNER_IMG_URL")||(0,Z.L)(n,"defaultEventBannerImg"),alt:"banner",width:"100%",height:"auto",aspectRatio:"5/2",borderRadius:0})})]}),(0,a.jsx)("div",{className:"pb-3"}),(0,a.jsxs)(j.Z,{fluid:"lg pb-3",children:[(0,a.jsx)(S.Z,{event:t,organizer:n}),(0,a.jsxs)("div",{className:"mt-3",children:[k&&(0,a.jsx)(R.Z,{event:t,preSaleStatus:r}),(0,a.jsxs)(b.Z,{children:[B&&(0,a.jsx)(y.Z,{as:"section",xs:"12",xl:"8",style:{height:"auto",minHeight:O?350:"unset"}
1,children:(0,a.jsx)(C,{productSelect:m,setProductSelect:v,setTicketCategoryColors:N})}),(0,a.jsx)(y.Z,{as:"section",xs:"12",xl:B?"4":"12",children:(0,a.jsx)(w.Z,{products:L,onOpenZoneOnMap:function(e){v(e)},ticketCategoryColors:p})})]}),(0,a.jsx)("div",{className:"pt-3 font-size-18 fw-medium",children:l.formatMessage({id:"event.orderMadeRemind"})}),(0,a.jsxs)(b.Z,{className:"align-items-center small",children:[(0,a.jsx)(y.Z,{sm:"7",md:"8",xs:"12",children:l.formatMessage({id:"event.orderLinkRemind"})}),(0,a.jsx)(y.Z,{sm:"5",md:"4",xs:"12",className:"mt-3 mt-sm-0",children:(0,a.jsx)(M.Z,{className:"px-3 py-2 w-100 small btn-primary text-themeCustom",onClick:function(){return c.push("/event/".concat(t.slug,"/booking"))},children:l.formatMessage({id:"event.resendOrderLink"})})})]})]})]})]})},O=function(e){var t=e.subevents,n=(0,h.useRouter)(),s=(0,_.Z)();return(0,a.jsx)(j.Z,{className:"py-5",fluid:"lg",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"bold fs-3",children:s.formatMessage({id:"event.selectDay"})}),(0,a.jsx)("div",{style:{height:600},children:(0,a.jsx)(l.Z,{events:null==t?void 0:t.map(function(e){return{id:e.id,name:(0,v.ss)(e.name),date_to:null==e?void 0:e.date_to,date_from:null==e?void 0:e.date_from,location:(0,v.ss)(e.location)}}),selectEvent:function(e){var t=n.query.slug;n.push("/event/".concat(t,"/").concat(e.id))}})})]})})},I=n(69779),A=n(44499),T=n(9194),V=n(49871),z=n(76635),F=n(97729),U=n.n(F),G=function(e){var t=e.organizer,n=e.event,s=e.eventType,r=e.products,o=e.seatPlan,l=e.setting,d=e.subevents,c=e.preSaleStatus,u=e.subeventsByPrimaryEvent,m=e.eventCmsPost,f=e.organizerSetting,g=(0,_.Z)(),p=(0,v.km)(n),h=JSON.parse(f)||null,j=(0,z.get)(m,"frontmatter.title")||(0,v.xe)(t,g,"common.title",{organizer:"".concat((0,v.ss)(null==n?void 0:n.name))}),b=(0,T.TL)(),y=(0,i.O)(function(e){return e.dispatchRequireValued}),S=(0,v.He)(d,h);return(0,x.useEffect)(function(){l&&b(A.w6.setSetting(l))},[b,l]),(0,x.useEffect)(function(){b(I.Uw.resetState())},[b]),(0,x.useEffect)(function(){b(A.w6.setEvent(n))},[b,n]),(0,x.useEffect)(function(){"normal"===s&&y({type:"ALL",payload:{seatPlan:o,products:r,eventSlug:null==n?void 0:n.slug,mappedSeatLayoutIdAndProductId:null==n?void 0:n.seat_category_mapping}})},[y,null==n?void 0:n.seat_category_mapping,null==n?void 0:n.slug,s,r,o]),(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsxs)(U(),{children:[(0,a.jsx)("title",{children:j}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(p)}}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:image",content:(0,z.get)(n,"meta_data.BANNER_IMG_URL")}),(0,a.jsx)("meta",{property:"og:image:alt",content:j}),(0,a.jsx)("meta",{property:"og:title",content:j}),(0,a.jsx)("meta",{property:"og:description",content:j}),(0,a.jsx)("meta",{name:"twitter:card",content:"website"})]}),"normal"===s&&(0,a.jsx)(k,{event:n,organizer:t,preSaleStatus:c}),"hasSubevent"===s&&(0,a.jsx)(O,{subevents:S}),"hasSubeventByPrimaryKey"===s&&(0,a.jsx)(N,{primaryEvent:n,subeventsByPrimaryEvent:u,eventCmsPost:m,preSaleStatus:c}),(0,a.jsx)("div",{id:"cart-hidden",className:"cart-hidden rounded-circle bg-primary shadow",children:(0,a.jsx)("div",{className:"d-flex justify-content-center align-items-center w-100 h-100",children:(0,a.jsx)("i",{className:"bi bi-cart-fill text-color-in-primary"})})})]})};G.getLayout=function(e,t){return(0,a.jsx)(V.J,(0,r.Z)((0,s.Z)({},t),{withDefaultContainer:!1,children:e}))};var q=!0,H=G,J=function(e,t){return X(D(K(Q(e)),t))},D=function(e,t){return t?e.map(function(e){var n=t.find(function(t){return t.item_id===e.id});return n?(0,r.Z)((0,s.Z)({},e),{availability:n}):e}):e||[]},X=function(e){return e?e.sort(function(e,t){return e.position-t.position}):[]},K=function(e){return e?e.filter(function(e){return e.sales_channels.includes(f.Q8.web)}):[]},Q=function(e){return e?e.filter(function(e){return e.active}):[]}}},function(e){e.O(0,[991,592,674,46,133,904,774,888,179],function(){return e(e.s=77377)}),_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.