PageSourceSearch

https://tickets.barbican.org.uk/assets/Details-DxH3-K-q.js

js barbican.org.uk collected 2026-09-24 08:32:50 UTC 47,943 bytes, 1 lines download raw bytes

1import{a as G,b as D}from"./datetimes-DB18GOxR.js";import{o as l,c as f,F as g,a as m,t as _,u as y,i as u,d as h,r as i,b as o,w as n,_ as T,E as O,f as c,n as re,A as $,C,S as K,a6 as H,l as N,R as L,p as A,N as q,e as S,Z as ne}from"./index-DdxlrjLH.js";import{f as j}from"./numbers-CbUCIFng.js";const se={class:"color-brand-generic","data-test":"discount"},oe={"data-test":"price"},v={__name:"Total",props:{discount:Number,total:Number},setup(e){return(r,t)=>(l(),f("div",null,[e.discount?(l(),f(g,{key:0},[m("s",se,_(y(j)(e.total+e.discount)),1),t[0]||(t[0]=u("  ",-1))],64)):h("",!0),m("span",oe,_(y(j)(e.total)),1)]))}},le={__name:"FeeSummary",props:{numberOfReturns:Number,totalReturnsPrice:Number,totalReturnsFee:Number},setup(e){return(r,t)=>{const d=i("br-table-cell"),s=i("br-table-header"),a=i("br-form-label"),b=i("br-table-row");return l(),f(g,null,[o(s,null,{default:n(()=>[o(d,{class:"font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Amount",-1)])]),_:1}),o(d,{width:"8",class:"font-weight-bold"},{default:n(()=>[u(_(e.numberOfReturns===1?"Fee":"Fees"),1)]),_:1})]),_:1}),o(b,null,{default:n(()=>[o(d,null,{default:n(()=>[o(a,null,{default:n(()=>[...t[1]||(t[1]=[u("Amount",-1)])]),_:1}),o(y(v),{"data-test":"amount",total:e.totalReturnsPrice},null,8,["total"])]),_:1}),o(d,{width:"8"},{default:n(()=>[o(a,null,{default:n(()=>[u(_(e.numberOfReturns===1?"Fee":"Fees"),1)]),_:1}),o(y(v),{"data-test":"fees",total:e.totalReturnsFee},null,8,["total"])]),_:1})]),_:1})],64)}}},ae={components:{ReturnsFeeSummary:le},mixins:[O],computed:{...C(["returns"]),...$(["totalReturnsPrice","totalReturnsFee"]),numberOfReturns(){return this.returns.current.length},typeBeingReturned(){return this.returns.current.every(r=>!r.event.attribute_BasketAddOn)?"ticket":"item"},isResales(){return this.returnsMethod==="resales"},allFreeTickets(){return this.returns.current.every(e=>e.total===0)}},props:{returnsMethod:{type:String,default:"returns"}}},ie={class:"confirm-message","data-test":"title"},de={class:"text-align-center margin-top-1-5"},ue={class:"credit-message"},ce={class:"margin-top-1"};function me(e,r,t,d,s,a){const b=i("returns-fee-summary"),w=i("br-card-subtitle"),k=i("br-button"),p=i("br-card");return l(),c(p,{class:"returns-dialog"},{default:n(()=>[m("p",ie,"You're choosing to "+_(a.isResales?"resell":"return")+" "+_(a.numberOfReturns)+" "+_(e.pluralize(a.typeBeingReturned,a.numberOfReturns)),1),a.allFreeTickets?h("",!0):(l(),c(b,{key:0,totalReturnsPrice:e.totalReturnsPrice,numberOfReturns:a.numberOfReturns,totalReturnsFee:e.totalReturnsFee},null,8,["totalReturnsPrice","numberOfReturns","totalReturnsFee"])),m("div",de,[a.allFreeTickets?h("",!0):(l(),f(g,{key:0},[m("p",ue,[a.isResales?(l(),f(g,{key:0},[u("If your "+_(e.pluralize(a.typeBeingReturned,a.numberOfReturns))+" are successfully resold, your account will be credited with:",1)],64)):(l(),f(g,{key:1},[u("Your account will be credited with:")],64))]),o(w,{class:"credit-amount","data-test":"credit-amount"},{default:n(()=>[u(_(e.currency(e.totalReturnsPrice-e.totalReturnsFee)),1)]),_:1})],64)),o(k,{onClick:r[0]||(r[0]=I=>e.$emit("continueReturns")),class:re({"margin-top-1":!a.allFreeTickets}),"data-test":"continue",variant:"primary"},{default:n(()=>[...r[2]||(r[2]=[u(" Continue ",-1)])]),_:1},8,["class"]),m("div",ce,[o(k,{onClick:r[1]||(r[1]=I=>e.$store.commit("closeReturns")),"data-test":"cancel",variant:"link"},{default:n(()=>[...r[3]||(r[3]=[u(" Cancel ",-1)])]),_:1})])])]),_:1})}const fe=T(ae,[["render",me],["__scopeId","data-v-d4d9e17f"]]),be={name:"ReturnsConfirmation",mixins:[K,O],emits:["returnsConfirmed"],data(){return{loading:!0,error:!1,allFreeTickets:!1}},props:{returnsMethod:{type:String,default:"returns"}},computed:{...C(["returns","orderBeingViewed","customer"]),...$(["totalReturnsPrice","totalReturnsFee"])},mounted(){this.allFreeTickets=this.returns.current.every(t=>t.total===0);let e=this.$route.params.orderId,r={tickets:this.returns.current,returnAmount:this.currency(this.totalReturnsPrice-this.totalReturnsFee),returnFee:this.currency(this.totalReturnsFee),orderDate:this.orderBeingViewed.firstTransactionDateUtc,customerId:this.customer.id,returnsMethod:this.returnsMethod};H.requestReturns(e,r).then(()=>{this.loading=!1,setTimeout(()=>{this.returnsMethod==="resales"?this.$store.commit("confirmResales"):this.$store.commit("confirmReturns"),this.$emit("returnsConfirmed")},3e3)})}},_e={key:0,class:"text-align-center"},he={key:0,"data-test":"resales-confirmation-message"},we={key:1,"data-test":"returns-confirmation-message"},ye={key:0},ge={key:1};function ke(e,r,t,d,s,a){const b=i("br-loader"),w=i("br-confirm-done");return s.loading?(l(),f("div",_e,[o(b)])):(l(),c(w,{key:1},{default:n(()=>[t.returnsMethod==="resales"?(l(),f("p",he," We've received your resale request. You’ll receive an email confirmation once your request has been processed. ")):(l(),f("div",we,[r[0]||(r[0]=m("p",null,"We've received your returns request.",-1)),s.allFreeTickets?(l(),f("p",ye,"Thank you for returning your tickets – this enables someone else to attend in your place.")):(l(),f("p",ge,"You’ll receive an email confirmation once your request has been processed."))]))]),_:1}))}const ve=T(be,[["render",ke]]),pe={__name:"Overlay",props:{returnsMethod:String,show:Boolean},emits:["returnsConfirmed"],setup(e,{emit:r}){const t=r,d=N(!0),s=N(!1),a=N(!1);function b(){d.value=!1,a.value=!0}function w(){d.value=!1,s.value=!0}function k(){t("returnsConfirmed")}return(p,I)=>{const M=i("br-overlay");return l(),c(M,{show:e.show,"data-test":"returns-overlay",onCloseOverlay:I[0]||(I[0]=R=>p.$store.commit("closeReturns"))},{default:n(()=>[d.value?(l(),c(y(fe),{key:0,onContinueReturns:b,onContinueResales:w,returnsMethod:e.returnsMethod},null,8,["returnsMethod"])):h("",!0),a.value?(l(),c(y(ve),{key:1,onReturnsConfirmed:k,returnsMethod:e.returnsMethod},null,8,["returnsMethod"])):h("",!0)]),_:1},8,["show"])}}},U={methods:{async getTimeUntilInstance(e){let r="https://www.barbican.org.uk/api/v2/barbican-time";return typeof e<"u"&&(r+="?until-instance="+e),await fetch(r).then(t=>t.json()).then(t=>t)}}},Ie={class:"ticket-order-info"},Me={class:"font-size-h5"},Te={__name:"Info",props:{instance:Object,returnsMode:{type:Boolean,default:!1},returnsAllowed:{type:Boolean,default:!1},resalesAllowed:{type:Boolean,default:!1}},emits:["showReturnsMode","cancelReturnsMode"],setup(e,{emit:r}){const t=r;return(d,s)=>{const a=i("br-card-subtitle"),b=i("br-button");return l(),f("div",Ie,[o(a,{class:"margin-bottom-1"},{default:n(()=>[m("strong",null,_(e.instance.eventName),1),s[2]||(s[2]=m("br",null,null,-1)),m("span",Me,_(y(G).lg(e.instance.info.start)),1)]),_:1}),!e.returnsMode&&(e.returnsAllowed||e.resalesAllowed)?(l(),c(b,{key:0,onClick:s[0]||(s[0]=w=>t("showReturnsMode")),"data-test":"show-returns",variant:"returns"},{default:n(()=>[...s[3]||(s[3]=[u(" Return items ",-1)])]),_:1})):e.returnsMode?(l(),c(b,{key:1,onClick:s[1]||(s[1]=w=>t("cancelReturnsMode")),"data-test":"cancel-returns",variant:"cancel-returns"},{default:n(()=>[...s[4]||(s[4]=[u(" Cancel ",-1)])]),_:1})):h("",!0)])}}},Ae={name:"ReturnsAlert",props:{returning:{type:Boolean,default:!1},reselling:{type:Boolean,default:!1},returnsAllowed:{type:Boolean,default:!1},resalesAllowed:{type:Boolean,default:!1}},computed:{...C(["resales","returns"]),contactBoxOfficeLink(){return"https://www.barbican.org.uk/your-visit/general-info/contact-us?what_would_you_like_to_contact_us_about_=boxoffice"}}},Re={key:0},Be={key:1},Ce={key:2},Oe={key:3},Fe=["href"];function Pe(e,r,t,d,s,a){const b=i("br-alert");return l(),c(b,null,{default:n(()=>[m("p",null,[t.returning&&t.reselling?(l(),f("strong",Re," Returns request received. ")):t.reselling?(l(),f("strong",Be," Resales request received. ")):t.returning?(l(),f("strong",Ce," Returns request received. ")):(l(),f("strong",Oe," Your returns/resale request has been received. "))]),r[2]||(r[2]=m("p",null," You’ll receive a confirmation email once your return is complete, and any Barbican account credit due will be visible. This should take no more than 2 working days. ",-1)),m("p",null,[r[0]||(r[0]=u(" If your Barbican account is not credited 
1within this time, please ",-1)),m("a",{href:a.contactBoxOfficeLink},"contact our Box Office",8,Fe),r[1]||(r[1]=u(" for support. ",-1))])]),_:1})}const De=T(Ae,[["render",Pe]]),Se={};function xe(e,r){const t=i("br-alert");return l(),c(t,{error:""},{default:n(()=>[...r[0]||(r[0]=[u(" This event has been cancelled and your tickets will be refunded automatically to the original payment method. The box office will contact you if necessary. ",-1)])]),_:1})}const Ve=T(Se,[["render",xe]]),Ee={key:0,class:"margin-top-bottom-1-5","data-test":"returns-restricted-message"},Ne={key:0},Ge=["href"],Ue={key:1},Le={key:0,class:"margin-top-bottom-1-5","data-test":"returns-info-message"},je={key:1,class:"margin-top-bottom-1-5"},$e={__name:"Info",props:{returnsAllowed:{type:Boolean,default:!0},allFreeTickets:{type:Boolean,default:!1},additionalItems:{type:Boolean,default:!0},resalesAllowed:{type:Boolean,default:!0},isGroupOrder:{type:Boolean,default:!1},eventInPast:{type:Boolean,default:!1},returnsMode:{type:Boolean,default:!1}},setup(e){const r="https://www.barbican.org.uk/your-visit/general-info/contact-us?what_would_you_like_to_contact_us_about_=boxoffice";return(t,d)=>(l(),f(g,null,[!e.returnsAllowed&&!e.resalesAllowed&&!e.eventInPast?(l(),f("p",Ee,[e.isGroupOrder?(l(),f("em",Ne,[d[0]||(d[0]=u(" Online returns are not accepted for orders with 10 or more tickets. Please ",-1)),m("a",{href:y(r)},"contact our Box Office",8,Ge),d[1]||(d[1]=u(" for any returns. ",-1))])):(l(),f("em",Ue," We are not accepting returns for this event. "))])):h("",!0),e.returnsMode?(l(),f(g,{key:1},[e.returnsAllowed?(l(),f(g,{key:0},[e.allFreeTickets?(l(),f("p",je," The ticket(s) below can be returned if you are unable to make the event. ")):(l(),f("p",Le,[m("em",null,[d[2]||(d[2]=u(" The tickets ",-1)),e.additionalItems>0?(l(),f(g,{key:0},[u(" and additional items ")],64)):h("",!0),d[3]||(d[3]=u(" below can be returned for Barbican account credit. ",-1)),e.additionalItems>0?(l(),f(g,{key:1},[u(" For tickets only, there is an admin fee of £3 per ticket to process returns. ")],64)):(l(),f(g,{key:2},[u(" There is an admin fee of £3 per ticket to process returns. ")],64)),d[4]||(d[4]=u(" Credit is valid for 12 months from the date of issue. ",-1))])]))],64)):h("",!0),e.resalesAllowed?(l(),f(g,{key:1},[d[5]||(d[5]=m("p",{"data-test":"resales-message"},[m("em",null," This event is not eligible for ticket returns. However, you can offer them for resale. ")],-1)),d[6]||(d[6]=m("p",{class:"margin-bottom-1"}," If they are bought by another customer, your Barbican account will be credited with the resale amount, minus an admin fee of £3 per ticket. Credit is valid for 12 months from the date of issue. ",-1))],64)):h("",!0)],64)):h("",!0)],64))}},Ke={name:"ReturnsTitle",data(){return{checked:!1}},mixins:[U],props:{item:{type:Object},returnsAllowed:{type:Boolean,default:!1},resalesAllowed:{type:Boolean,default:!1},returnsMode:{type:Boolean,default:!1}},methods:{selectForReturn(){this.checked?this.$store.commit("addReturns",this.item):this.$store.commit("removeReturns",this.item)}},computed:{showReturnsCheckbox(){return(this.returnsAllowed||this.resalesAllowed)&&this.returnsMode},freeTicket(){return this.item.total===0},showDebugInfo(){return["1","I-K425-6M5T","I-R522-C2KM","I-ZB23-7XFX"].includes(this.$store.getters.customerID)}},watch:{checked(){this.selectForReturn()},returnsMode(e,r){!e&&r&&(this.checked=!1)}}},He={key:0};function qe(e,r,t,d,s,a){const b=i("br-form-checkbox");return l(),f("div",null,[a.showDebugInfo?(l(),f("p",He,"Debug - Title: showReturnsCheckbox "+_(a.showReturnsCheckbox)+" || returnsAllowed "+_(t.returnsAllowed)+" || resalesAllowed: "+_(t.resalesAllowed)+" || returnsMode: "+_(t.returnsMode),1)):h("",!0),a.showReturnsCheckbox?(l(),c(b,{key:1,"data-test":"select-returns",returns:"",modelValue:s.checked,"onUpdate:modelValue":r[0]||(r[0]=w=>s.checked=w)},{default:n(()=>[L(e.$slots,"default")]),_:3},8,["modelValue"])):L(e.$slots,"default",{key:2})])}const X=T(Ke,[["render",qe]]),Xe={key:0},Ye={key:0},ze={key:1},Ze={__name:"Row",props:{ticket:{type:Object},returnsAllowed:{type:Boolean,default:!1},resalesAllowed:{type:Boolean,default:!1},returnsMode:{type:Boolean,default:!1}},setup(e){return(r,t)=>{const d=i("br-form-label"),s=i("br-table-cell"),a=i("br-table-row");return l(),c(a,{"data-test":"ticket--"+e.ticket.id},{default:n(()=>[o(s,{"data-test":"ticket-table-cell",returns:e.returnsMode},{default:n(()=>[e.returnsMode?h("",!0):(l(),c(d,{key:0},{default:n(()=>[...t[0]||(t[0]=[u("Event",-1)])]),_:1})),o(y(X),{returnsAllowed:e.returnsAllowed,resalesAllowed:e.resalesAllowed,returnsMode:e.returnsMode,item:e.ticket},{default:n(()=>[e.ticket.event?(l(),f("div",Xe,[u(_(e.ticket.event.name)+": ",1),e.ticket.instance?(l(),f("span",Ye,_(y(G).md(e.ticket.instance.start)),1)):h("",!0)])):(l(),f("div",ze,"N/A"))]),_:1},8,["returnsAllowed","resalesAllowed","returnsMode","item"])]),_:1}
1,8,["returns"]),e.ticket.seatName?(l(),c(s,{key:0,width:"8","data-test":"seat"},{default:n(()=>[o(d,null,{default:n(()=>[...t[1]||(t[1]=[u("Seat name",-1)])]),_:1}),m("div",null,_(e.ticket.seatName),1)]),_:1})):h("",!0),o(s,{width:"9",right:""},{default:n(()=>[o(d,null,{default:n(()=>[...t[2]||(t[2]=[u("Total",-1)])]),_:1}),o(y(v),{total:e.ticket.price,discount:e.ticket.discount},null,8,["total","discount"])]),_:1})]),_:1},8,["data-test"])}}},We={},Qe={"data-test":"resale-info-additional-items"};function Je(e,r){return l(),f("p",Qe," The following are not guaranteed to be returned, your request will be processed by our Box Office & a credit returned to you when available. ")}const et=T(We,[["render",Je]]),tt={key:0},rt={key:0},nt={key:1},st={__name:"Row",props:{ticket:{type:Object},returnsAllowed:{type:Boolean,default:!1},resalesAllowed:{type:Boolean,default:!1},returnsMode:{type:Boolean,default:!1}},setup(e){return(r,t)=>{const d=i("br-form-label"),s=i("br-table-cell"),a=i("br-table-row");return l(),c(a,{"data-test":"ticket--"+e.ticket.id},{default:n(()=>[o(s,{"data-test":"additional-item-table-cell",returns:e.returnsMode},{default:n(()=>[e.returnsMode?h("",!0):(l(),c(d,{key:0},{default:n(()=>[...t[0]||(t[0]=[u("Event",-1)])]),_:1})),o(y(X),{returnsAllowed:e.returnsAllowed,resalesAllowed:e.resalesAllowed,returnsMode:e.returnsMode,item:e.ticket},{default:n(()=>[e.ticket.event?(l(),f("div",tt,[u(_(e.ticket.event.name)+": ",1),e.ticket.instance?(l(),f("span",rt,_(y(G).md(e.ticket.instance.start)),1)):h("",!0)])):(l(),f("div",nt,"N/A"))]),_:1},8,["returnsAllowed","resalesAllowed","returnsMode","item"])]),_:1},8,["returns"]),e.ticket.seatName?(l(),c(s,{key:0,width:"9","data-test":"seat"},{default:n(()=>[o(d,null,{default:n(()=>[...t[1]||(t[1]=[u("Seat name",-1)])]),_:1}),m("div",null,_(e.ticket.seatName),1)]),_:1})):h("",!0),o(s,{width:"8",right:""},{default:n(()=>[o(d,null,{default:n(()=>[...t[2]||(t[2]=[u("Total",-1)])]),_:1}),o(y(v),{total:e.ticket.price,discount:e.ticket.discount},null,8,["total","discount"])]),_:1})]),_:1},8,["data-test"])}}},ot={__name:"Summary",props:{returnsAllowed:Boolean,resalesAllowed:Boolean,returnsMode:Boolean,additionalItems:Array},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header");return l(),f("div",null,[o(d,{class:"margin-top-2 margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Additional items",-1)])]),_:1}),e.returnsMode&&!e.returnsAllowed&&e.resalesAllowed?(l(),c(y(et),{key:0,class:"margin-bottom-2"})):h("",!0),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Event",-1)])]),_:1}),e.additionalItems.some(b=>b.seatName)?(l(),c(s,{key:0,width:"9",class:"font-weight-bold"},{default:n(()=>[...t[2]||(t[2]=[u("Seat name",-1)])]),_:1})):h("",!0),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[3]||(t[3]=[u("Total",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(e.additionalItems,(b,w)=>(l(),c(y(st),{key:"additional-item-"+w,returnsAllowed:e.returnsAllowed,resalesAllowed:e.resalesAllowed,returnsMode:e.returnsMode,ticket:b},null,8,["returnsAllowed","resalesAllowed","returnsMode","ticket"]))),128))])}}},lt={components:{TicketOrderRow:Ze,TicketOrderInfo:Te,ReturnsAlert:De,ReturnsInfo:$e,CancellationAlert:Ve,AdditionalItemOrderSummary:ot},props:{tickets:{type:Array},instance:{type:Object},returnsMode:{type:Boolean,default:!1}},mixins:[U,O],data(){return{returnsAllowed:!1,resalesAllowed:!1,isGroupOrder:!1,timeUntil:null}},computed:{...C(["returns","resales","orderBeingViewed"]),returnsInProgress(){return this.returns.inProgress.flatMap(r=>r.barcode).some(r=>this.ticketBarcodes.includes(r)||this.additionalItemBarcodes.includes(r))},resalesInProgress(){return this.resales.inProgress.flatMap(r=>r.barcode).some(r=>this.ticketBarcodes.includes(r)||this.additionalItemBarcodes.includes(r))},inProgress(){return this.returnsInProgress||this.resalesInProgress},ticketBarcodes(){return this.tickets.flatMap(e=>e.barcode)},additionalItemBarcodes(){return this.additionalItems.flatMap(e=>e.barcode)},additionalItems(){return this.instance.additional_items.flatMap(e=>e.tickets)},returnsMethod(){return this.resalesAllowed?"resales":this.returnsAllowed?"returns":""},eventInPast(){return this.timeUntil!==null&&this.timeUntil<=0},eventIsCancelled(){return this.instance.info.cancelled},allFreeTickets(){return this.tickets.every(e=>e.total===0)},showDebugInfo(){return["1","I-K425-6M5T","I-R522-C2KM","I-ZB23-7XFX"].includes(this.$store.getters.customerID)}},methods:{showReturnsMode(){let{eventIdLong:e,instanceIdLong:r}=this.instance;this.$emit("showReturnsMode",{eventIdLong:e,instanceIdLong:r,returnsMethod:this.returnsMethod})},async checkResalesAllowed(){if(this.resalesAllowed=!1,this.allFreeTickets||this.instance.info.attribute_RestrictResales||["wildcard","streaming","additional items","theatre video","video","car parking"].includes(this.instance.info.attribute_InstanceType))return;let r=1440*60*1e3,t=7200*1e3,d=await this.getTimeUntil();if(d>r||d<t)return;(await q.getAvailability(this.instance.instanceIdLong)).available===0&&(this.resalesAllowed=!0)},async checkReturnsAllowed(){if(this.returnsAllowed=!1,this.instance.info.attribute_RestrictReturns||["streaming","additional items","theatre video","video"].includes(this.instance.info.attribute_InstanceType))return;let r=await this.getTimeUntil();if(r<0)return;let t=1440*60*1e3,d=this.instance.info.attribute_ExtendedReturns;if(!this.allFreeTickets&&!d&&r<t)return;let s=7200*1e3;if(!this.allFreeTickets&&d&&r<s)return;if(this.ticketBarcodes.length>10){this.isGroupOrder=!0;return}this.returnsAllowed=!0},async getTimeUntil(){return this.timeUntil||(this.timeUntil=await this.getTimeUntilInstance(this.instance.instanceIdLong)),this.timeUntil},showReturns(){this.returns.current.length&&this.$store.commit("showReturns")}},async mounted(){this.eventIsCancelled||(this.checkReturnsAllowed(),this.checkResalesAllowed())}},at={class:"ticket-order-summary"},it={"data-test":"ticket-order-summary"};function dt(e,r,t,d,s,a){const b=i("ticket-order-info"),w=i("returns-alert"),k=i("cancellation-alert"),p=i("returns-info"),I=i("br-card-subtitle"),M=i("br-table-cell"),R=i("br-table-header"),x=i("ticket-order-row"),F=i("additional-item-order-summary"),V=i("br-button");return l(),f("div",at,[m("div",it,[a.showDebugInfo?(l(),f(g,{key:0},[r[1]||(r[1]=m("p",null,"Debug - summary",-1)),m("ul",null,[m("li",null,"returnsAllowed: "+_(s.returnsAllowed),1),m("li",null,"resalesAllowed: "+_(s.resalesAllowed),1),m("li",null,"returnsMode: "+_(t.returnsMode),1)])],64)):h("",!0),o(b,{onShowReturnsMode:a.showReturnsMode,onCancelReturnsMode:r[0]||(r[0]=B=>e.$emit("cancelReturnsMode")),returnsAllowed:s.returnsAllowed,resalesAllowed:s.resalesAllowed,returnsMode:t.returnsMode,class:"margin-bottom-1-5",instance:t.instance},null,8,["onShowReturnsMode","returnsAllowed","resalesAllowed","returnsMode","instance"]),a.inProgress?(l(),c(w,{key:1,returnsAllowed:s.returnsAllowed,resalesAllowed:s.resalesAllowed,returning:a.returnsInProgress,reselling:a.resalesInProgress,class:"margin-top-bottom-1-5","data-test":"returns-alert"},null,8,["returnsAllowed","resalesAllowed","returning","reselling"])):h("",!0),a.eventIsCancelled?(l(),c(k,{key:2,class:"margin-top-bottom-1-5"})):h("",!0),o(p,{additionalItems:a.additionalItems.length>0,returnsAllowed:s.returnsAllowed,resalesAllowed:s.resalesAllowed,allFreeTickets:a.allFreeTickets,isGroupOrder:s.isGroupOrder,eventInPast:a.eventInPast,returnsMode:t.returnsMode},null,8,["additionalItems","returnsAllowed","resalesAllowed","allFreeTickets","isGroupOrder","eventInPast","returnsMode"]),o(I,{class:"margin-top-bottom-1 font-weight-bold"},{default:n(()=>[...r[2]||(r[2]=[u("Tickets",-1)])]),_:1}),o(R,null,{default:n(()=>[o(M,{class:"font-weight-bold"},{default:n(()=>[...r[3]||(r[3]=[u("Event",-1)])]),_:1}),t.tickets.some(B=>B.seatName)?(l(),c(M,{key:0,width:"8",class:"font-weight-bold"},{default:n(()=>[...r[4]||(r[4]=[u("Seat name",-1)])]),_:1})):h("",!0),o(M,{width:"9",class:"font-weight-bold",right:""},{default:n(()=>[...r[5]||(r[5]=[u("Total",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(t.tickets,(B,E)=>(l(),c(x,{returnsAllowed:s.returnsAllowed,resalesAllowed:s.resalesAllowed,returnsMode:t.returnsMode,key:"ticket-"+E,ticket:B},null,8,["returnsAllowed","resalesAllowed","returnsMode","ticket"]))),128)),a.additionalItems.length?(l(),c(F,{key:3,"data-test":"additional-item-details",additionalItems:a.additionalItems,returnsAllowed:s.returnsAllowed,resalesAllowed:s.resalesAllowed,returnsMode:t.returnsMode},null,8,["additionalItems","returnsAllowed","resalesAllowed","returnsMode"])):h("",!0),e.returns.current.length?(l(),c(V,{key:4,"data-test":"returns-selection-submit",onClick:a.showReturns,class:"margin-top-1",variant:"returns"},{default:n(()=>[u(_(s.resalesAllowed?"Offer selection for resale":"Return selected items"),1)]),_:1},8,["onClick"])):h("",!0)])])}const ut=T(lt,[["render",dt]]),ct={"data-test":"video-name"},mt={__name:"Row",props:{video:Object,type:String},setup(e){const r=e,t=S(()=>r.type==="merchandise"),d=S(()=>r.video.stockItem&&t.value?r.video.stockItem.name:r.video.event.name);return(s,a)=>{const b=i("br-form-label"),w=i("br-table-cell"),k=i("br-table-row");return l(),c(k,null,{default:n(()=>[o(w,null,{default:n(()=>[o(b,null,{default:n(()=>[...a[0]||(a[0]=[u("Name",-1)])]),_:1}),m("div",ct,_(d.value),1)]),_:1}),o(w,{width:"8",right:""},{default:n(()=>[o(b,null,{default:n(()=>[...a[1]||(a[1]=[u("Total",-1)])]),_:1}),o(y(v),{total:e.video.price,discount:e.video.discount},null,8,["total","discount"])]),_:1})]),_:1})}}},ft={__name:"Summary",props:{videos:Array,type:{type:String,default:"Instance"}},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-card-tearoff");return l(),c(b,null,{default:n(()=>[o(d,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Video rentals",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Name",-1)])]),_:1}),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[2]||(t[2]=[u("Total",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(e.videos,(w,k)=>(l(),c(y(mt),{key:"video-"+k,video:w,type:e.type},null,8,["video","type"]))),128))]),_:1})}}},bt={"data-test":"membership-name"},_t={"data-test":"start-date"},ht={"data-test":"expiry-date"},wt={__name:"Row",props:{membership:Object},setup(e){return(r,t)=>{const d=i("br-form-label"),s=i("br-table-cell"),a=i("br-table-row");return l(),c(a,null,{default:n(()=>[o(s,null,{default:n(()=>[o(d,null,{default:n(()=>[...t[0]||(t[0]=[u("Membership name",-1)])]),_:1}),m("div",bt,_(e.membership.membership.name),1)]),_:1}),o(s,{width:"9"},{default:n(()=>[o(d,null,{default:n(()=>[...t[1]||(t[1]=[u("Start date",-1)])]),_:1}),m("div",_t,_(y(D).xs(e.membership.startDate)),1)]),_:1}),o(s,{width:"9"},{default:n(()=>[o(d,null,{default:n(()=>[...t[2]||(t[2]=[u("Expiry date",-1)])]),_:1}),m("div",ht,_(y(D).xs(e.membership.expiryDate)),1)]),_:1}),o(s,{width:"8",right:""},{default:n(()=>[o(d,null,{default:n(()=>[...t[3]||(t[3]=[u("Total",-1)])]),_:1}),o(y(v),{total:e.membership.price,discount:e.membership.discount},null,8,["total","discount"])]),_:1})]),_:1})}}},yt={__name:"Summary",props:{memberships:Array},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-card-tearoff");return l(),c(b,null,{default:n(()=>[o(d,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Memberships",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Membership name",-1)])]),_:1}),o(s,{width:"9",class:"font-weight-bold"},{default:n(()=>[...t[2]||(t[2]=[u("Start date",-1)])]),_:1}),o(s,{width:"9",class:"font-weight-bold"},{default:n(()=>[...t[3]||(t[3]=[u("Expiry date",-1)])]),_:1}),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[4]||(t[4]=[u("Total",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(e.memberships,(w,k)=>(l(),c(y(wt),{"data-test":"membership--"+w.id,key:"membership-"+k,membership:w},null,8,["data-test","membership"]))),128))]),_:1})}}},gt={class:"word-wrap-break-word"},kt={class:"word-wrap-break-word"},vt={"data-test":"sent"},pt={"data-test":"delivery-method"},It={__name:"Row",props:{giftVoucher:Object},setup(e){function r(t){switch(t.deliveryType){case"CustomerEmail":return"Email to myself";case"OtherEmail":return"Email to "+t.deliveryEmailAddress;default:return t.deliveryType}}return(t,d)=>{const s=i("br-form-label"),a=i("br-table-cell"),b=i("br-table-row");return l(),c(b,null,{default:n(()=>[o(a,{width:"12","data-test":"to"},{default:n(()=>[o(s,null,{default:n(()=>[...d[0]||(d[0]=[u("To",-1)])]),_:1}),m("div",gt,_(e.giftVoucher.toName),1)]),_:1}),o(a,{width:"12","data-test":"from"},{default:n(()=>[o(s,null,{default:n(()=>[...d[1]||(d[1]=[u("From",-1)])]),_:1}),m("div",kt,_(e.giftVoucher.fromName),1)]),_:1}),o(a,{width:"6","data-test":"amount"},{default:n(()=>[o(s,null,{default:n(()=>[...d[2]||(d[2]=[u("Amount",-1)])]),_:1}),o(y(v),{total:e.giftVoucher.amount},null,8,["total"])]),_:1}),o(a,{"data-test":"info"},{default:n(()=>[d[3]||(d[3]=m("div",{class:"font-weight-bold"},"Sent",-1)),m("div",vt,_(y(D).sm.slash(e.giftVoucher.sendDate)),1),d[4]||(d[4]=m("br",null,null,-1)),d[5]||(d[5]=m("div",{class:"font-weight-bold"},"Delivery method",-1)),m("div",pt,_(r(e.giftVoucher)),1)]),_:1})]),_:1})}}},Mt={__name:"Summary",props:{giftVouchers:Array},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-card-tearoff");return l(),c(b,null,{default:n(()=>[o(d,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Gift vouchers",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{width:"12",class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("To",-1)])]),_:1}),o(s,{width:"12",class:"font-weight-bold"},{default:n(()=>[...t[2]||(t[2]=[u("From",-1)])]),_:1}),o(s,{width:"6",class:"font-weight-bold"},{default:n(()=>[...t[3]||(t[3]=[u("Amount",-1)])]),_:1}),o(s,{class:"font-weight-bold"})]),_:1}),(l(!0),f(g,null,A(e.giftVouchers,(w,k)=>(l(),c(y(It),{"data-test":"gift-voucher--"+w.id,key:"gift-voucher-"+k,giftVoucher:w},null,8,["data-test","giftVoucher"]))),128))]),_:1})}}},Tt={"data-test":"donation-name"},At={__name:"Row",props:{donation:Object},setup(e){return(r,t)=>{const d=i("br-form-label"),s=i("br-table-cell"),a=i("br-table-row");return l(),c(a,null,{default:n(()=>[o(s,{"data-test":"title"},{default:n(()=>[o(d,null,{default:n(()=>[...t[0]||(t[0]=[u("Fund",-1)])]),_:1}),m("div",Tt,_(e.donation.fund.name),1)]),_:1}),o(s,{width:"8",right:"","data-test":"amount"},{default:n(()=>[o(d,null,{default:n(()=>[...t[1]||(t[1]=[u("Amount",-1)])]),_:1}),o(y(v),{total:e.donation.amount},null,8,["total"])]),_:1})]),_:1})}}},Rt={__name:"Summary",props:{donations:Array},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-card-tearoff");return l(),c(b,null,{default:n(()=>[o(d,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Donations",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Fund",-1)])]),_:1}),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[2]||(t[2]=[u("Amount",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(e.donations,(w,k)=>(l(),c(y(At),{"data-test":"donation--"+w.id,key:"donation-"+k,donation:w},null,8,["data-test","donation"]))),128))]),_:1})}}},Bt={__name:"Row",props:{merchandise:Object},setup(e){return(r,t)=>{const d=i("br-form-label"),s=i("br-table-cell"),a=i("br-table-row");return l(),c(a,null,{default:n(()=>[o(s,null,{default:n(()=>[o(d,null,{default:n(()=>[...t[0]||(t[0]=[u("Name",-1)])]),_:1}),m("div",null,_(e.merchandise.stockItem.name),1)]),_:1}),o(s,{width:"8",right:""},{default:n(()=>[o(y(v),{total:e.merchandise.price,discount:e.merchandise.discount},null,8,["total","discount"])]),_:1})]),_:1})}}},Ct={__name:"Summary",props:{merchandiseItems:Array},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-card-tearoff");return l(),c(b,{"data-test":"merchandise-order-summary"},{default:n(()=>[o(d,{class:"margin-bottom-1 font-weight-bold"},{defa
1ult:n(()=>[...t[0]||(t[0]=[u("Additional items",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Name",-1)])]),_:1}),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[2]||(t[2]=[u("Total",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(e.merchandiseItems,(w,k)=>(l(),c(y(Bt),{key:"merchandise-"+k,merchandise:w},null,8,["merchandise"]))),128))]),_:1})}}},Ot={"data-test":"ticket-event-name"},Ft={__name:"Row",props:{ticket:Object},setup(e){return(r,t)=>{const d=i("br-form-label"),s=i("br-table-cell"),a=i("br-table-row");return l(),c(a,null,{default:n(()=>[o(s,null,{default:n(()=>[o(d,null,{default:n(()=>[...t[0]||(t[0]=[u("Name",-1)])]),_:1}),m("div",Ot,_(e.ticket.event.name),1)]),_:1}),o(s,{width:"8",right:""},{default:n(()=>[o(y(v),{total:e.ticket.price,discount:e.ticket.discount},null,8,["total","discount"])]),_:1})]),_:1})}}},Pt={components:{AdditionalTicketOrderRow:Ft},props:{additionalTickets:{type:Array},instance:{type:Object},returnsMode:{type:Boolean,default:!1}},mixins:[U,O],data(){return{returnsAllowed:!1,resalesAllowed:!1,isGroupOrder:!1,timeUntil:0}},computed:{...C(["returns","resales","orderBeingViewed"]),returnsInProgress(){return this.returns.inProgress.flatMap(r=>r.barcode).some(r=>this.ticketBarcodes.includes(r)||this.additionalItemBarcodes.includes(r))},resalesInProgress(){return this.resales.inProgress.flatMap(r=>r.barcode).some(r=>this.ticketBarcodes.includes(r)||this.additionalItemBarcodes.includes(r))},inProgress(){return this.returnsInProgress||this.resalesInProgress},ticketBarcodes(){return this.additionalTickets.flatMap(e=>e.barcode)},additionalItemBarcodes(){return this.additionalItems.flatMap(e=>e.barcode)},additionalItems(){return this.instance.additional_items.flatMap(e=>e.tickets)},returnsMethod(){return this.resalesAllowed?"resales":this.returnsAllowed?"returns":""},eventInPast(){return this.timeUntil<=0},eventIsCancelled(){return this.instance.info.cancelled},allFreeTickets(){return this.additionalTickets.every(e=>e.total===0)}},methods:{async checkResalesAllowed(){if(this.resalesAllowed=!1,this.allFreeTickets||this.instance.info.attribute_RestrictResales||["wildcard","streaming","additional items","theatre video","video","car parking"].includes(this.instance.info.attribute_InstanceType))return;let r=1440*60*1e3,t=7200*1e3,d=await this.getTimeUntil();if(d>r||d<t)return;(await q.getAvailability(this.instance.instanceIdLong)).available===0&&(this.resalesAllowed=!0)},async checkReturnsAllowed(){if(this.returnsAllowed=!1,this.instance.info.attribute_RestrictReturns||["streaming","additional items","theatre video","video"].includes(this.instance.info.attribute_InstanceType))return;let r=await this.getTimeUntil();if(r<0)return;let t=1440*60*1e3,d=this.instance.info.attribute_ExtendedReturns;if(!this.allFreeTickets&&!d&&r<t)return;let s=7200*1e3;if(!this.allFreeTickets&&d&&r<s)return;if(this.ticketBarcodes.length>10){this.isGroupOrder=!0;return}this.returnsAllowed=!0},async getTimeUntil(){return this.timeUntil||(this.timeUntil=await this.getTimeUntilInstance(this.instance.instanceIdLong)),this.timeUntil},showReturns(){this.returns.current.length&&this.$store.commit("showReturns")}},async mounted(){this.eventIsCancelled||(this.checkReturnsAllowed(),this.checkResalesAllowed())}},Dt={key:0,class:"margin-bottom-1","data-test":"resale-info-additional-items"};function St(e,r,t,d,s,a){const b=i("br-card-subtitle"),w=i("br-table-cell"),k=i("br-table-header"),p=i("additional-ticket-order-row"),I=i("br-card-tearoff");return l(),c(I,{"data-test":"additional-ticket-summary"},{default:n(()=>[o(b,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...r[0]||(r[0]=[u("Additional items",-1)])]),_:1}),t.returnsMode&&!s.returnsAllowed&&s.resalesAllowed?(l(),f("p",Dt," The following are not guaranteed to be returned, your request will be processed by our Box Office & a credit returned to you when available. ")):h("",!0),o(k,null,{default:n(()=>[o(w,{class:"font-weight-bold"},{default:n(()=>[...r[1]||(r[1]=[u("Name",-1)])]),_:1}),o(w,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...r[2]||(r[2]=[u("Total",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(t.additionalTickets,(M,R)=>(l(),c(p,{key:"ticket-"+R,ticket:M},null,8,["ticket"]))),128))]),_:1})}const xt=T(Pt,[["render",St]]),Vt={__name:"Summary",props:{bookingFee:Number,deliveryCharges:Number},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-form-label"),w=i("br-table-row"),k=i("br-card-tearoff");return l(),c(k,null,{default:n(()=>[o(d,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Fees",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Fee",-1)])]),_:1}),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[2]||(t[2]=[u("Cost",-1)])]),_:1})]),_:1}),e.deliveryCharges>0?(l(),c(w,{key:0},{default:n(()=>[o(s,null,{default:n(()=>[o(b,null,{default:n(()=>[...t[3]||(t[3]=[u("Fee",-1)])]),_:1}),t[4]||(t[4]=m("div",null,"Delivery cost",-1))]),_:1}),o(s,{width:"8",right:""},{default:n(()=>[o(b,null,{default:n(()=>[...t[5]||(t[5]=[u("Cost",-1)])]),_:1}),o(y(v),{total:e.deliveryCharges},null,8,["total"])]),_:1})]),_:1})):h("",!0),e.bookingFee>0?(l(),c(w,{key:1,"data-test":"booking-fee"},{default:n(()=>[o(s,null,{default:n(()=>[o(b,null,{default:n(()=>[...t[6]||(t[6]=[u("Fee",-1)])]),_:1}
1),t[7]||(t[7]=m("div",null,"Booking fee",-1))]),_:1}),o(s,{width:"8",right:""},{default:n(()=>[o(b,null,{default:n(()=>[...t[8]||(t[8]=[u("Cost",-1)])]),_:1}),o(y(v),{total:e.bookingFee},null,8,["total"])]),_:1})]),_:1})):h("",!0)]),_:1})}}},Et={__name:"Row",props:{payment:Object},setup(e){function r(t){switch(t){case"Payment from refund":return"Account credit used";default:return t}}return(t,d)=>{const s=i("br-form-label"),a=i("br-table-cell"),b=i("br-table-row");return l(),c(b,null,{default:n(()=>[o(a,{"data-test":"type"},{default:n(()=>[o(s,null,{default:n(()=>[...d[0]||(d[0]=[u("Type",-1)])]),_:1}),m("div",null,_(r(e.payment.type)),1)]),_:1}),o(a,{width:"8",right:"","data-test":"amount"},{default:n(()=>[o(s,null,{default:n(()=>[...d[1]||(d[1]=[u("Amount",-1)])]),_:1}),o(y(v),{total:e.payment.amount},null,8,["total"])]),_:1})]),_:1})}}},Nt={class:"margin-bottom-1-5","data-test":"payment-details"},Gt={class:"font-weight-bold"},Ut={__name:"Summary",props:{order:Object,hasCredits:Boolean},setup(e){return(r,t)=>{const d=i("br-card-subtitle"),s=i("br-table-cell"),a=i("br-table-header"),b=i("br-wrap"),w=i("br-card-tearoff");return l(),c(w,null,{default:n(()=>[e.order.payments.length>0?(l(),f(g,{key:0},[o(d,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...t[0]||(t[0]=[u("Payments",-1)])]),_:1}),o(a,null,{default:n(()=>[o(s,{class:"font-weight-bold"},{default:n(()=>[...t[1]||(t[1]=[u("Type",-1)])]),_:1}),o(s,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...t[2]||(t[2]=[u("Amount",-1)])]),_:1})]),_:1}),m("div",Nt,[(l(!0),f(g,null,A(e.order.payments,(k,p)=>(l(),c(y(Et),{key:"payment-"+p,payment:k},null,8,["payment"]))),128))])],64)):h("",!0),m("div",null,[o(b,{cluster:"",class:"total-container","data-test":"original-total"},{default:n(()=>[m("div",Gt,_(e.hasCredits?"Subtotal":"Total"),1),o(y(v),{total:e.order.total},null,8,["total"])]),_:1})])]),_:1})}}},Lt=T(Ut,[["__scopeId","data-v-5f71dbe5"]]),jt={__name:"Row",props:{refund:Object},setup(e){const r=S(()=>Math.abs(t.refund.amount)),t=e;return(d,s)=>{const a=i("br-form-label"),b=i("br-table-cell"),w=i("br-table-row");return l(),c(w,null,{default:n(()=>[o(b,{"data-test":"type"},{default:n(()=>[o(a,null,{default:n(()=>[...s[0]||(s[0]=[u("Method",-1)])]),_:1}),m("div",null,_(e.refund.type),1)]),_:1}),o(b,{width:"8",right:"","data-test":"amount"},{default:n(()=>[o(a,null,{default:n(()=>[...s[1]||(s[1]=[u("Amount",-1)])]),_:1}),o(y(v),{total:r.value},null,8,["total"])]),_:1})]),_:1})}}},$t={class:"margin-top-1-5"},Kt={__name:"Summary",props:{order:Object},setup(e){const r=S(()=>{let d=t.order.refunds.reduce((s,a)=>s+Math.abs(a.amount),0);return t.order.total-d}),t=e;return(d,s)=>{const a=i("br-card-subtitle"),b=i("br-table-cell"),w=i("br-table-header"),k=i("br-wrap"),p=i("br-card-tearoff");return l(),c(p,null,{default:n(()=>[o(a,{class:"margin-bottom-1 font-weight-bold"},{default:n(()=>[...s[0]||(s[0]=[u("Credits",-1)])]),_:1}),o(w,null,{default:n(()=>[o(b,{class:"font-weight-bold"},{default:n(()=>[...s[1]||(s[1]=[u("Method",-1)])]),_:1}),o(b,{width:"8",class:"font-weight-bold",right:""},{default:n(()=>[...s[2]||(s[2]=[u("Amount",-1)])]),_:1})]),_:1}),(l(!0),f(g,null,A(e.order.refunds,(I,M)=>(l(),c(y(jt),{key:"refund-"+M,refund:I},null,8,["refund"]))),128)),m("div",$t,[o(k,{cluster:"",class:"total-container","data-test":"current-total"},{default:n(()=>[s[3]||(s[3]=m("div",{class:"font-weight-bold"},"Total",-1)),o(y(v),{total:r.value},null,8,["total"])]),_:1})])]),_:1})}}},Ht=T(Kt,[["__scopeId","data-v-8417daac"]]),qt={__name:"DebugInfo",props:{orderId:String,returnsMode:Boolean,returnsInProgress:Array,resalesInProcess:Array,filterTicketsToEvent:String,filterTicketsToInstance:String,returnsMethod:String},setup(e){const t=ne().state.orderBeingViewed;return(d,s)=>(l(),f(g,null,[s[0]||(s[0]=m("p",null,"Debug - Details",-1)),m("ul",null,[m("li",null,"Order ID: "+_(e.orderId)+" || Viewing: "+_(y(t).id),1),m("li",null,"returnsMode: "+_(e.returnsMode),1),m("li",null,"returnsMethod: "+_(e.returnsMethod),1),m("li",null,"returnsInProgress: "+_(e.returnsInProgress.length),1),m("li",null,"resalesInProcess: "+_(e.resalesInProcess.length),1),m("li",null,"filterTicketsToEvent: "+_(e.filterTicketsToEvent),1),m("li",null,"filterTicketsToInstance: "+_(e.filterTicketsToInstance),1)])],64))}},Xt={name:"OrderDetails",components:{DebugInfo:qt,ReturnsOverlay:pe,TicketOrderSummary:ut,VideoOrderSummary:ft,MembershipOrderSummary:yt,GiftVoucherOrderSummary:Mt,DonationOrderSummary:Rt,MerchandiseOrderSummary:Ct,AdditionalTicketOrderSummary:xt,FeeOrderSummary:Vt,PaymentOrderSummary:Lt,CreditOrderSummary:Ht},mixins:[K,O],data(){return{returnsMode:!1,filterTicketsToEvent:null,filterTicketsToInstance:null,returnsMethod:""}},async mounted(){this.$store.dispatch("orders/loadOrders"),H.hasReturnsOrResaleRequest(this.orderId).then(async e=>{if(e.ok){let r=await e.json();r.status!=="archived"&&(this.returns.inProgress=r.returning,this.resales.inProgress=r.reselling)}}),this.$store.state.orderBeingViewed=this.order},unmounted(){this.$store.state.orderBeingViewed={},this.resales.current=[],this.resales.inProgress=[],this.resales.overlay=!1,this.returns.current=[],this.returns.inProgress=[],this.returns.overlay=!1},computed:{...C(["resales","returns"]),hasCredits(){return this.order.refunds.length>0},tickets(){return this.order.tickets},eventTickets(){return Object.values(this.ticketsGroupedByInstance.instances)},additionalItemTickets(){return Object.values(this.ticketsGroupedByInstance.additional).flatMap(r=>r.tickets)},ticketsGroupedByInstance(){let e=this.tickets.reduce((r,t)=>t.instance.attribute_InstanceType==="video"?r:t.event.attribute_BasketAddOn?(t.event.i
1d in r.additional||(r.additional[t.event.id]={instanceIdLong:t.instance.id,instanceDate:t.instance.start,eventName:t.event.name,eventIdLong:t.event.id,instanceIdShort:t.instance.id.match(/\d+/g)[0],info:t.instance,tickets:[]}),r.additional[t.event.id].tickets.push(t),r):(this.filterTicketsToEvent&&t.event.id!==this.filterTicketsToEvent||(t.instance.id in r.instances||(r.instances[t.instance.id]={instanceIdLong:t.instance.id,instanceDate:t.instance.start,eventName:t.event.name,eventIdLong:t.event.id,instanceIdShort:t.instance.id.match(/\d+/g)[0],relatedEventIds:t.event.relatedEvents.flatMap(d=>d.id),info:t.instance,tickets:[],additional_items:[]}),r.instances[t.instance.id].tickets.push(t)),r),{instances:{},additional:{}});for(const[r,t]of Object.entries(e.instances))t.relatedEventIds.forEach(d=>{d in e.additional&&(e.instances[r].additional_items.push(e.additional[d]),delete e.additional[d])});return e},orderUpdated(){var e=new Date(this.order.firstTransactionDate),r=new Date(this.order.lastTransactionDate);return r>e},feesCharged(){var e=this.order.totalDeliveryCharges,r=this.bookingFee;return e>0||r>0},bookingFee(){var e=this.order.totalTransactionCharges;return this.order.merchandiseItems.forEach(function(r){r.stockItem.id==="4ACBGKTGSSSRMNPHTKMSMPGGVGMDGPCMB"&&(e+=r.price)}),e},videosFromMerchandise(){return this.order.merchandiseItems.filter(function(e){return e.stockItem.attribute_VideoID!==""})},videosFromInstances(){return this.order.tickets.filter(function(e){return e.instance.attribute_InstanceType==="video"})},merchandiseItems(){return this.order.merchandiseItems.filter(function(e){return!(e.stockItem.id==="4ACBGKTGSSSRMNPHTKMSMPGGVGMDGPCMB"||e.stockItem.id==="201AGBHDRLQHNHPHKKMPKLGPMDRDTDMVL"||e.stockItem.attribute_VideoID!=="")})},giftVouchers(){var e=this.order.giftVouchers;return this.order.merchandiseItems.forEach(r=>{r.stockItem.id==="201AGBHDRLQHNHPHKKMPKLGPMDRDTDMVL"&&e.push({toName:"N/A",fromName:"N/A",amount:r.price,sendDate:this.order.firstTransactionDate,deliveryType:"Print",deliveryEmailAddress:""})}),e},hasBacsRefund(){var e=!1;return this.order.refunds.forEach(r=>{r.type==="e-bacs refund"&&(e=!0)}),e},orderLoaded(){return this.$store.getters["orders/ordersLoaded"]},order(){return this.$store.getters["orders/getOrder"](this.orderId)},showDebugInfo(){return["1","I-K425-6M5T","I-R522-C2KM","I-ZB23-7XFX"].includes(this.$store.getters.customerID)}},methods:{_formatDate(e){return D.sm.slash(e)},formatDate(e){return e=new Date(e),this.dateDisplay(e)},formatGiftVoucherDeliveryMethod(e){switch(e){case"CustomerEmail":return"Email to myself";case"OtherEmail":return"Email to recipient";default:return e}},showReturns(){this.returns.current.length&&this.$store.commit("showReturns")},showReturnsForEvent({eventIdLong:e,instanceIdLong:r,returnsMethod:t}){this.returnsMode=!0,this.filterTicketsToEvent=e,this.filterTicketsToInstance=r,this.returnsMethod=t},cancelReturnsMode(){this.returnsMode=!1,this.filterTicketsToEvent=null,this.filterTicketsToInstance=null,this.returns.current=[]}},watch:{order(e){e&&(this.$store.state.orderBeingViewed=e)}},props:{orderId:{type:String,required:!0}}};function Yt(e,r,t,d,s,a){const b=i("br-card-title"),w=i("br-loader"),k=i("br-card-subtitle"),p=i("br-alert"),I=i("br-card-body"),M=i("debug-info"),R=i("ticket-order-summary"),x=i("br-card-tearoff"),F=i("video-order-summary"),V=i("membership-order-summary"),B=i("gift-voucher-order-summary"),E=i("donation-order-summary"),Y=i("merchandise-order-summary"),z=i("additional-ticket-order-summary"),Z=i("fee-order-summary"),W=i("payment-order-summary"),Q=i("credit-order-summary"),J=i("returns-overlay"),ee=i("br-card");return l(),c(ee,{"no-body":""},{default:n(()=>[o(I,null,{default:n(()=>[o(b,{"data-test":"order-title"},{default:n(()=>[u("Order "+_(t.orderId),1)]),_:1}),a.orderLoaded?(l(),f(g,{key:1},[o(k,{class:"margin-top-1","data-test":"order-date"},{default:n(()=>[r[0]||(r[0]=m("strong",null,"Date",-1)),u(" "+_(a._formatDate(a.order.firstTransactionDate)),1)]),_:1}),a.hasBacsRefund&&!s.returnsMode?(l(),c(p,{key:0,class:"margin-top-1",inline:"",error:""},{default:n(()=>[...r[1]||(r[1]=[m("strong",null,"Bank transfer refunds:",-1),u(" Please allow at least 10 days for bank transfer refunds to reach your account. ",-1)])]),_:1})):h("",!0)],64)):(l(),c(w,{key:0}))]),_:1}),a.orderLoaded?(l(),f(g,{key:0},[a.eventTickets.length>0?(l(),c(x,{key:0},{default:n(()=>[a.showDebugInfo?(l(),c(M,{key:0,orderId:t.orderId,returnsMode:s.returnsMode,returnsInProgress:e.returns.inProgress,resalesInProcess:e.resales.inProgress,filterTicketsToEvent:s.filterTicketsToEvent,filterTicketsToInstance:s.filterTicketsToInstance,returnsMethod:s.returnsMethod},null,8,["orderId","returnsMode","returnsInProgress","resalesInProcess","filterTicketsToEvent","filterTicketsToInstance","returnsMethod"])):h("",!0),o(b,{class:"margin-bottom-1"},{default:n(()=>[u(_(s.returnsMode?"Returns":"Events"),1)]),_:1}),(l(!0),f(g,null,A(a.eventTickets,(P,te)=>(l(),f(g,null,[s.returnsMode&&P.instanceIdLong===s.filterTicketsToInstance||!s.returnsMode?(l(),c(R,{"data-test":"instance--"+P.instanceIdLong,onShowReturnsMode:a.showReturnsForEvent,onCancelReturnsMode:a.cancelReturnsMode,returnsMode:s.returnsMode,tickets:P.tickets,ref_for:!0,ref:"tickets-tables",instance:P,key:te},null,8,["data-test","onShowReturnsMode","onCancelReturnsMode","returnsMode","tickets","instance"])):h("",!0)],64))),256))]),_:1})):h("",!0),a.videosFromMerchandise.length>0&&!s.returnsMode?(l(),c(F,{key:1,videos:a.videosFromMerchandise,"data-test":"merchandise-videos",type:"merchandise"},null,8,["videos"])):h("",!0),a.videosFromInstances.length>0&&!s.returnsMode?(l(),c(F,{key:2,videos:a.videosFromInstances,"data-test":"instance-videos",type:"instance"},null,8,["videos"])):h("",!0),a.order.membershipSubscriptions.length>0&&!s.returnsMode?(l(),c(V,{key:3,memberships:a.order.membershipSubscriptions,"data-test":"memberships"},null,8,["memberships"])):h("",!0),a.giftVouchers.length>0&&!s.returnsMode?(l(),c(B,{key:4,giftVouchers:a.giftVouchers,"data-test":"gift-vouchers"},null,8,["giftVouchers"])):h("",!0),a.order.donations.length>0&&!s.returnsMode?(l(),c(E,{key:5,donations:a.order.donations,"data-test":"donations"},null,8,["donations"])):h("",!0),a.merchandiseItems.length>0&&!s.returnsMode?(l(),c(Y,{key:6,merchandiseItems:a.merchandiseItems},null,8,["merchandiseItems"])):h("",!0),a.additionalItemTickets.length>0&&!s.returnsMode?(l(),c(z,{key:7,additionalTickets:a.additionalItemTickets,returnsMode:s.returnsMode},null,8,["additionalTickets","returnsMode"])):h("",!0),a.feesCharged&&!s.returnsMode?(l(),c(Z,{key:8,deliveryCharges:a.order.totalDeliveryCharges,bookingFee:a.bookingFee,"data-test":"fees"},null,8,["deliveryCharges","bookingFee"])):h("",!0),s.returnsMode?h("",!0):(l(),c(W,{key:9,hasCredits:a.hasCredits,"data-test":"payments",order:a.order},null,8,["hasCredits","order"])),a.hasCredits&&!s.returnsMode?(l(),c(Q,{key:10,"data-test":"credit-details",order:a.order},null,8,["order"])):h("",!0)],64)):h("",!0),o(J,{onReturnsConfirmed:a.cancelReturnsMode,returnsMethod:s.returnsMethod,show:e.returns.overlay},null,8,["onReturnsConfirmed","returnsMethod","show"])]),_:1})}const Qt=T(Xt,[["render",Yt],["__scopeId","data-v-544db3c8"]]);export{Qt as default};

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.