(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["2d0b2d1a"],{2677:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-list",{attrs:{"no-border":"",link:""}},[i("q-list-header",[t._v("\n    "+t._s(t.$t("button.downloadTickets"))+"\n  ")]),t._l(t.filterLinkList,function(e,n){return i("q-item",{directives:[{name:"close-overlay",rawName:"v-close-overlay"}],key:n,attrs:{"data-test":t.CypressTarget("Download")},nativeOn:{click:function(i){t.download(e.link,e.type)}}},[i("q-item-main",{attrs:{label:""}},[t._v("\n      "+t._s(e.type)+"\n    ")])],1)})],2)},r=[];n._withStripped=!0;i("96cf");var o=i("c973"),a=i.n(o),s=i("3156"),l=i.n(s),c=i("2f62"),d=i("9a52"),u={name:"ActionListDownload",props:{linkList:{type:Array,required:!0}},computed:l()({},Object(c["c"])("settings",["getIntiModule"]),{filterLinkList:function(){var t=this;return this.linkList.filter(function(e){return"ticket"===t.getIntiModule?"email"!==e.type.toLowerCase():"subscription"===t.getIntiModule&&"email"===e.type.toLowerCase()})}}),methods:l()({},Object(c["b"])("subscription",["getCardFromEmail"]),{download:function(){var t=a()(regeneratorRuntime.mark(function t(e,i){var n,r,o;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if("email"!==i.toLowerCase()){t.next=10;break}return t.next=3,this.getCardFromEmail({linkEmail:e});case 3:n=t.sent,r=d["b"].t("modal.subscription.downloadTicket.ticketByEmail.title"),o=d["b"].t("modal.subscription.downloadTicket.ticketByEmail.msg"),n.result||(o=d["b"].t("modal.subscription.downloadTicket.ticketByEmail.error")),this.$q.dialog({title:r,message:o,timeout:5e3,color:this.SET_COLOR.primary,ok:!0,preventClose:!0,noBackdropDismiss:!0,noEscDismiss:!0}),t.next=11;break;case 10:this.$emit("download",{link:e,type:i});case 11:case"end":return t.stop()}},t,this)}));return function(e,i){return t.apply(this,arguments)}}()})},m=u,p=i("2877"),k=Object(p["a"])(m,n,r,!1,null,null,null);k.options.__file="download.vue";e["default"]=k.exports}}]);
//# sourceMappingURL=2d0b2d1a.e5e50861.2024-10-22T18:36:13.257Z.js.map