(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["2d0b5de8"],{"1b78":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("q-page",{attrs:{"data-test":e.CypressTarget("EventInformation")}},[e.loading.events?n("event-information-page-skeleton",{attrs:{square:!0,flat:!0}}):n("div",{staticClass:"event-data row",staticStyle:{position:"relative"}},[n("div",{class:e.isInfoEvent(e.singleEventInformation)?"col-xs-12 col-sm-12 col-md-12":"col-xs-12 col-sm-12 col-md-6"},[n("card-event",{class:{"no-margin":e.$q.platform.is.mobile},attrs:{square:!0,flat:!0,display:e.cardDisplay,color:e.SET_COLOR.primary,"event-address":e.singleEventInformation.address,"event-location-name":e.singleEventInformation.location_name,"event-description":e.singleEventInformation.event_description,"event-geo-coordinates":e.singleEventInformation.geo_position,"event-name":e.singleEventInformation.name,"event-image":e.singleEventInformation.image_poster,"event-short-description":e.singleEventInformation.short_description,"event-date":e.singleEventInformation.sales_start,"event-subtitle":e.singleEventInformation.serie,featured:e.singleEventInformation.featured,"is-info-event":e.isInfoEvent(e.singleEventInformation),"event-timezone":e.singleEventInformation.timezone_converted,"show-event-indicative-classification":e.indicativeClassification.displayOnWeb,"event-indicative-classification-image":e.indicativeClassification.imageURL,"event-indicative-classification-description":e.indicativeClassification.description,inline:""}})],1),e.isInfoEvent(e.singleEventInformation)?e._e():n("div",{staticClass:"col-xs-12 col-sm-12 col-md-6"},[n(e.eventTicketStatusComponent.component,e._b({tag:"component"},"component",e.eventTicketStatusComponent.bind,!1))],1)])],1)},a=[];i._withStripped=!0;var r=n("f1f2"),o=n.n(r),s=n("ad54"),c=n.n(s),l=(n("7f7f"),n("a481"),n("96cf"),n("c973")),u=n.n(l),v=n("3156"),d=n.n(v),f=n("2f62"),m=n("f490"),p=n("c5ce"),h=n("b9ef"),g=n("11ca"),E=n("ad3e"),I=n("4be4a"),b=n("57d5"),_={name:"EventInformationTicket",components:{CardEvent:function(){return Promise.all([n.e("luxon"),n.e("2d0a44aa"),n.e("2d210c1e"),n.e("e3a9f65e"),n.e("39a21994")]).then(n.bind(null,"fc8e"))},SkeletonEventList:function(){return Promise.all([n.e("2d212b98"),n.e("2d213349")]).then(n.bind(null,"ac4e"))},EventInformationPageSkeleton:function(){return Promise.all([n.e("2d212b98"),n.e("5815b64e")]).then(n.bind(null,"17d6"))}},mixins:[p["a"]],computed:d()({},Object(f["c"])("ticketSale",["singleEventInformation","singleEventMode","loading"]),Object(f["c"])("ticketShoppingCart",["sessionCart","sessionCartLoaded","isCartValid"]),{eventTicketStatusComponent:function(){return this.isOnSale&&this.singleEventInformation.enable?{component:function(){return Promise.all([n.e("luxon"),n.e("2d0a44aa"),n.e("2d0cbac7"),n.e("792f2d92"),n.e("69f200b7")]).then(n.bind(null,"a173"))},bind:{}}:{component:function(){return n.e("2d0be67c").then(n.bind(null,"2fb4"))},bind:{eventDisabled:!this.singleEventInformation.enable,startSaleDate:this.singleEventInformation.sales_start,isSalesOpen:this.singleEventInformation.is_sales_open,eventCode:this.eventCode}}},cardDisplay:function(){return this.SET_IS.marketPlace?this.SET_MARKETPLACE.display.eventInformation.card:this.SET_DISPLAY.ticket.eventInformation.card},isOnSale:function(){var e;if("boolean"===typeof(null===(e=this.singleEventInformation)||void 0===e?void 0:e.is_sales_open))return this.singleEventInformation.is_sales_open;var t=this.singleEventInformation.sales_start;return m["d"].getDateDiff(t,new Date,"seconds")<0},eventCode:function(){return this.SET_EVENT_CODE?this.SET_EVENT_CODE:this.$route.params.code},indicativeClassification:function(){var e,t,n,i,a,r;return{displayOnWeb:(null===(e=this.singleEventInformation)||void 0===e?void 0:null===(t=e.age_ratings)||void 0===t?void 0:t.display_on_web)||!1,imageURL:(null===(n=this.singleEventInformation)||void 0===n?void 0:null===(i=n.age_ratings)||void 0===i?void 0:i.image_url)||"",description:(null===(a=this.singleEventInformation)||void 0===a?void 0:null===(r=a.age_ratings)||void 0===r?void 0:r.description)||""}}}),watch:{"singleEventInformation.name":{handler:function(e){document.title="".concat(this.SET_PAGE_NAME," | ").concat(e)}}},beforeMount:function(){var e=u()(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchData();case 3:if("Informativo"!==this.singleEventInformation.status&&(this.isOnSale?this.$router.replace({name:b["C"]}):this.$router.replace({name:b["E"]})),!this.isCartValid()&&!this.sessionCart){e.next=9;break}return e.next=7,this.syncCart();case 7:e.next=11;break;case 9:return e.next=11,this.synchronizeCart(!0);case 11:return e.next=13,this.syncItemsData();case 13:this.$tracker.pageView({page:this.$route.path,title:this.singleEventInformation.name}),e.next=21;break;case 16:e.prev=16,e.t0=e["catch"](0),n=e.t0||new Error(this.$t("page.event.error")),this.toastError(n),n.isAxiosError&&((null===n||void 0===n?void 0:null===(t=n.response)||void 0===t?void 0:t.status)>=400||n.status>=400)&&this.$router.push({name:h["a"]});case 21:case"end":return e.stop()}},e,this,[[0,16]])}));return function(){return e.apply(this,arguments)}}(),mounted:function(){var e=this;this.$q.platform.is.mobile||I["a"].fixLeftPadding("q-layout-page-container"),this.$root.$on(E["a"],u()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.fetchData();case 2:return t.next=4,e.syncItemsData();case 4:case"end":return t.stop()}},t)})))},methods:d()({},Object(f["b"])("ticketSale",["getEventInformation"]),Object(f["b"])("ticketShoppingCart",["synchronizeCart","addItemToCart"]),{syncCart:function(){var e=this;return this.synchronizeCart().catch(function(t){if(t.status>=400)return e.resetCartAndGoToHome();var n=Object(g["c"])(t,"data.status_code")||Object(g["c"])(t,"data.message");return!!n&&e.toastError(n)})},syncItemsData:function(){var e=u()(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.addItemToCart(JSON.parse(c()(this.singleEventInformation)));case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),isInfoEvent:function(e){return"Informativo"===e.status},fetchData:function(){var e=u()(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.getEventInformation({eventCode:this.eventCode}));case 4:return e.prev=4,e.t0=e["catch"](0),this.toastError(e.t0),e.abrupt("return",o.a.reject(e.t0));case 8:case"end":return e.stop()}},e,this,[[0,4]])}));return function(){return e.apply(this,arguments)}}()})},C=_,w=n("2877"),S=Object(w["a"])(C,i,a,!1,null,null,null);S.options.__file="eventInformation.vue";t["default"]=S.exports}}]);
//# sourceMappingURL=2d0b5de8.4b3b4dca.2024-10-22T18:36:13.257Z.js.map