(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["435860cc"],{4973:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("q-page",{attrs:{"data-test":e.CypressTarget("EventInformation")}},[e.pending("series")?a("event-information-page-skeleton",{attrs:{square:!0,flat:!0}}):a("div",{staticClass:"event-data row"},[a("div",{staticClass:"col-xs-12 col-sm-12 col-md-6"},[a("card-event",{class:{"no-margin":e.$q.platform.is.mobile},attrs:{square:!0,flat:!0,display:e.cardDisplay,color:e.SET_COLOR.primary,"event-description":e.getSingleSerie.longDescription,"event-name":e.getSingleSerie.name,"event-image":e.getSingleSerie.logo,"event-short-description":e.getSingleSerie.description,inline:""}})],1),a("div",{staticClass:"col-xs-12 col-sm-12 col-md-6"},[a("list-ticket-sale",[a("q-item",[a("q-item-main",[a("q-item-tile",{attrs:{label:""}},[e._v("\n              "+e._s(e.$t("mapView.mapSelector.title"))+"\n            ")]),a("q-item-tile",{attrs:{sublabel:"",multiline:""}},[e._v("\n              "+e._s(e.$t("mapView.mapSelector.subtitle"))+"\n            ")]),a("q-item-tile",{staticClass:"full-width q-mt-md text-center",attrs:{"data-test":e.CypressTarget("Buttons")}},[a("q-btn",{attrs:{color:e.SET_COLOR.primary,label:e.$t("button.selectSeatOnMap"),"data-test":e.CypressTarget("OpenMapModal"),icon:"fa fa-map",align:"center"},on:{click:function(t){e.mapModal=!e.mapModal}}})],1)],1)],1)],1),a("active-subscription-modal-map-selectable",{attrs:{code:e.getSingleSerie.code,"map-id":e.getSingleSerie.mapId},on:{addSeat:e.addSelectedSeatToCart,removeSeat:e.removeSelectedSeatFromCart},model:{value:e.mapModal,callback:function(t){e.mapModal=t},expression:"mapModal"}})],1)])],1)},n=[];r._withStripped=!0;var i=a("7037"),s=a.n(i),o=(a("7f7f"),a("96cf"),a("c973")),c=a.n(o),l=a("3156"),d=a.n(l),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("q-modal",{attrs:{value:e.value,"data-test":e.CypressTarget("SeatSelectorMapModal"),maximized:"","no-esc-dismiss":"","no-backdrop-dismiss":""},on:{input:function(t){e.$emit("input",t)},show:e.startMap,hide:e.destroyMap}},[a("q-modal-layout",[a("q-toolbar",{attrs:{slot:"header",color:e.SET_COLOR.primary,"data-test":e.CypressTarget("Toolbar")},slot:"header"},[a("q-btn",{directives:[{name:"close-overlay",rawName:"v-close-overlay"}],attrs:{"data-test":e.CypressTarget("Close"),flat:"",icon:"close"}}),a("q-toolbar-title",{attrs:{"data-test":e.CypressTarget("Title")}},[e._v("\n        "+e._s(e.mapInformation.name)+"\n      ")]),a("buttons-seat-selected",{attrs:{disable:e.cartSeatItemsBySerieCode(e.code).length<=0,"notification-count":e.cartSeatItemsBySerieCode(e.code).length}},[a("popover-separated-list",e._l(e.cartSeatItemsBySerieCode(e.code),function(t,r){return a("item-seat-basic-remove-action",{key:r,attrs:{loading:e.pending("cart"),number:t.seat.number,row:t.seat.row,sector:t.seat.sector,region:t.seat.region,price:t.price.amount,title:t.price.name||""},on:{removeSeat:function(a){e.$emit("removeSeat",t.seat.id)}}})}))],1)],1),e.mapParentId>0?a("div",{staticStyle:{position:"absolute"},style:{top:"60px",left:"10px"},attrs:{"data-test":e.CypressTarget("Buttons")}},[a("q-btn",{attrs:{color:e.SET_COLOR_BUTTON.secondary,"text-color":e.SET_COLOR_BUTTON.text.secondary,"data-test":e.CypressTarget("Out"),icon:"fa fa-arrow-left",rounded:""},on:{click:e.goBackSubMap}},[e._v("\n         "+e._s(e.$t("button.goBack"))+"\n      ")])],1):e._e(),a("svg-map-render",{attrs:{"max-selected-seats":0,"available-seats":e.mapAvailableSeats,"selected-seats":e.selectedSeats,"filtered-seats":[],"draw-map":e.drawMap,"map-layout":e.mapLayout,"map-seats":e.mapSeats,"map-sub-maps":e.mapSubMaps,"map-settings":e.mapSettings,"seat-information-by-id":e.seatInformationById,"sub-map-information-by-id":e.subMapInformationById},on:{"selected-seat":e.openSeatModal,"removed-seat":function(t){e.$emit("removeSeat",t)},"max-selected":function(t){e.$emit("maxSelected",t)},"selected-submap":e.getSubMap}}),a("product-total-simple-tool-bar",{attrs:{slot:"footer","always-shown":!0,"purchase-items":e.totalItems,"purchase-total":e.totalAmount,loading:e.cartLoading,"label-sub-title":e.totalToolBarSubTitle},on:{addToCart:e.updateCartFromServer},slot:"footer"})],1),a("q-inner-loading",{attrs:{visible:e.loadingMap}},[a("q-spinner",{attrs:{color:e.SET_COLOR.primary,size:"50px"}})],1),e.seatPriceSelectorDialog?a("dialog-seat-price-selector",{attrs:{"price-select-options":e.seatPriceOptions,"seat-id":e.selectedSeatId,title:e.seatDialogTexts.title,"show-body":!1},on:{selectedPrice:function(t){e.$emit("addSeat",t)},cancel:function(t){e.seatPriceSelectorDialog=!1}},model:{value:e.seatPriceSelectorDialog,callback:function(t){e.seatPriceSelectorDialog=t},expression:"seatPriceSelectorDialog"}}):e._e()],1)},p=[];u._withStripped=!0;var m=a("f1f2"),f=a.n(m),h=(a("ac6a"),a("cadf"),a("895c")),S=a.n(h),b=(a("c5f6"),a("e9fb")),g=a("2f62"),v=a("93a5"),I={name:"ActiveSubscriptionModalMapSelectable",components:{DialogSeatPriceSelector:function(){return a.e("2d0e2125").then(a.bind(null,"7cad"))},ItemSeatBasicRemoveAction:function(){return Promise.all([a.e("2d22d263"),a.e("65965c48")]).then(a.bind(null,"d523"))},PopoverSeparatedList:function(){return a.e("2d0c09d9").then(a.bind(null,"4315"))},ButtonsSeatSelected:function(){return Promise.all([a.e("2d0aab74"),a.e("2d210c1e"),a.e("2d0bdd86")]).then(a.bind(null,"2e74"))},ProductTotalSimpleToolBar:function(){return Promise.all([a.e("2d0aab74"),a.e("2d210c1e"),a.e("2d0b5a74"),a.e("744a1465"),a.e("e3f2c146")]).then(a.bind(null,"45ad"))},SvgMapRender:function(){return Promise.all([a.e("core-js"),a.e("lodash"),a.e("svgjs"),a.e("hammerjs"),a.e("fbe0ddfa")]).then(a.bind(null,"3cf7"))}},mixins:[v["a"]],props:{code:{type:String,required:!0,default:""},mapId:{type:Number,required:!0,default:0},maxSelectedSeats:{type:Number,required:!1,default:0},seatsInCart:{type:Array,required:!1,default:function(){return[]}},filteredSeats:{type:Array,required:!1,default:function(){return[]}},value:{type:Boolean,required:!1,default:!1}},data:function(){return{drawMap:!1,filtersOpen:!1,parentMapId:null,seatPriceSelectorDialog:!1,seatPriceOptions:[],selectedSeatId:0}},computed:d()({},Object(g["c"])("subscription",["mapInformation","mapLayout","mapSubMaps","mapSettings","mapSeats","mapAvailableSeats","mapParentId","seatInformationById","subMapInformationById","selectedSeats","cartSeatItemsBySerieCode","pending"]),{seatDialogTexts:{cache:!1,get:function(){var e={title:"",message:""};if("object"===s()(this.seatInformationById(this.selectedSeatId))&&S()(this.seatInformationById(this.selectedSeatId)).length>0){var t=this.seatInformationById(this.selectedSeatId),a=t.row,r=t.number,n=t.sector,i=t.region;e.title="".concat(a).concat(r),e.message="".concat(n," - ").concat(i)}return e}},loadingMap:function(){return this.pending("map")||this.pending("cart")||this.pending("seat")||!this.drawMap}}),methods:d()({},Object(g["b"])("subscription",["getMapDraw","getSeatPrice"]),{startMap:function(){var e=this;f.a.all([this.getMapDraw({mapId:this.mapId,serieCode:this.code})]).then(function(){e.drawMap=!0,e.parentMapId=null})},destroyMap:function(){this.drawMap=!1},goBackSubMap:function(){return this.parentMapId>0?this.getSubMap(this.parentMapId):this.startMap()},getSubMap:function(e){var t=this;this.destroyMap(),this.$emit("selected-submap",e),f.a.all([this.getMapDraw({mapId:e,serieCode:this.code})]).then(function(e){t.parentMapId=e[0].parentId,t.drawMap=!0})},openSeatModal:function(){var e=c()(regeneratorRuntime.mark(function e(t){var a,r=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getSeatPrice({seatId:t,serieCode:this.code});case 3:a=e.sent,this.selectedSeatId=t,this.seatPriceSelectorDialog=!0,this.seatPriceOptions=[],a.forEach(function(e){r.seatPriceOptions.push({label:e.name||"".concat(r.seatDialogTexts.message," - ").concat(r.seatDialogTexts.title),stamp:e.amount>0?Object(b["a"])(e.amount,r.SET_LANGUAGE,r.SET_MONEY):r.$t("label.freeSale"),value:"".concat(t,"-").concat(e.priceRulesId,"-").concat(e.amount),priceRulesId:e.priceRulesId,amount:e.amount,seatId:t})}),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),400===e.t0.status?this.toastError("error.eventMap.unavailable.seat"):this.toastError(e.t0);case 13:case"end":return e.stop()}},e,this,[[0,10]])}));return function(t){return e.apply(this,arguments)}}()})},y=I,C=(a("6c00"),a("2877")),M=Object(C["a"])(y,u,p,!1,null,null,null);M.options.__file="seatSelector.vue";var T=M.exports,w=a("2062"),_={name:"SubscriptionSaleSerieInformation",components:{ListTicketSale:w["default"],ActiveSubscriptionModalMapSelectable:T,CardEvent:function(){return Promise.all([a.e("luxon"),a.e("2d0a44aa"),a.e("2d0aab74"),a.e("2d210c1e"),a.e("51685eba")]).then(a.bind(null,"fc8e"))},EventInformationPageSkeleton:function(){return Promise.all([a.e("2d212b98"),a.e("5815b64e")]).then(a.bind(null,"17d6"))}},data:function(){return{mapModal:!1,serieInformation:{}}},computed:d()({},Object(g["c"])("subscription",["getSingleSerie","getItemIdBySeatId","pending"]),{cardDisplay:function(){return this.SET_DISPLAY.subscription.eventInformation.card}}),watch:{"subscription.getSingleSerie.name":{handler:function(e){document.title="".concat(this.SET_PAGE_NAME," | ").concat(e)}}},created:function(){var e=c()(regeneratorRuntime.mark(function e(){var t,a,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=""!==this.SET_EVENT_CODE?this.SET_EVENT_CODE:this.$route.params.code,e.next=4,this.getSerieInformation(t);case 4:this.serieInformation=e.sent,this.$tracker.pageView({page:this.$route.path,title:this.getSingleSerie.name}),e.next=13;break;case 8:e.prev=8,e.t0=e["catch"](0),r=e.t0,this.toastError(r),"object"===s()(r)&&r.response&&(null===r||void 0===r?void 0:null===(a=r.response)||void 0===a?void 0:a.status)>=400&&this.$router.push("/");case 13:case"end":return e.stop()}},e,this,[[0,8]])}));return function(){return e.apply(this,arguments)}}(),methods:d()({},Object(g["b"])("subscription",["getSerieInformation","addItemToCart","removeItemFromCart"]),{addSelectedSeatToCart:function(){var e=c()(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.addItemToCart({priceRulesId:t.priceRulesId,seatId:t.seatId,serieCode:this.getSingleSerie.code});case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e["catch"](0),this.toastError("error.eventMap.unavailable.seat");case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}},e,this,[[0,6]])}));return function(t){return e.apply(this,arguments)}}(),removeSelectedSeatFromCart:function(){var e=c()(regeneratorRuntime.mark(function e(t){var a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,a=this.getItemIdBySeatId(t),e.next=4,this.removeItemFromCart(a);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e["catch"](0),e.t0;case 10:return e.abrupt("return",!1);case 11:case"end":return e.stop()}},e,this,[[0,7]])}));return function(t){return e.apply(this,arguments)}}()})},x=_,O=Object(C["a"])(x,r,n,!1,null,null,null);O.options.__file="serieInformation.vue";t["default"]=O.exports},"6c00":function(e,t,a){"use strict";var r=a("bc9d"),n=a.n(r);n.a},"93a5":function(e,t,a){"use strict";a("a481"),a("96cf");var r=a("c973"),n=a.n(r),i=a("3156"),s=a.n(i),o=a("45f7"),c=a("2f62");t["a"]={computed:s()({},Object(c["c"])("subscription",["itemsInCartBySerieCode","itemsInCart","itemsInCartBySerieCode","cartFinalTotal","cartTotalBySerieCode","eventHasMap","pending"]),{serieCode:function(){return this.$route.params.code},cartLoading:function(){return this.pending("cart")},totalAmount:function(){return this.serieCode?this.cartTotalBySerieCode(this.serieCode):this.cartFinalTotal},totalItems:function(){return this.serieCode?this.itemsInCartBySerieCode(this.serieCode):this.itemsInCart},totalToolBarSubTitle:function(){return this.eventHasMap?this.$tc("label.seatsSelected",this.totalItems,{items:this.totalItems}):this.$tc("label.ticketsSelected",this.totalItems,{items:this.totalItems})}}),methods:s()({},Object(c["b"])("subscription",["getCart"]),{updateCartFromServer:function(){var e=n()(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getCart();case 3:this.$router.replace({name:o["d"]}),e.next=10;break;case 6:e.prev=6,e.t0=e["catch"](0),t=e.t0,this.toastError(t);case 10:case"end":return e.stop()}},e,this,[[0,6]])}));return function(){return e.apply(this,arguments)}}()})}},bc9d:function(e,t,a){}}]);
//# sourceMappingURL=435860cc.49f9cd7d.2024-10-22T18:36:13.257Z.js.map