PageSourceSearch

https://nofluffjuststuff.com/app/chunk-6CBVR6IX.js

js nofluffjuststuff.com collected 2026-09-24 18:41:05 UTC 112,806 bytes, 4 lines download raw bytes

1import{a as he}from"./chunk-AQWKQCXR.js";import{a as ze}from"./chunk-CWUVEMZ3.js";import{a as di}from"./chunk-ELNSZ55Q.js";import{a as ai}from"./chunk-2RDRZ7N2.js";import{a as Kt,b as Xt}from"./chunk-XLTLBMLG.js";import"./chunk-L5BWHD3Q.js";import{a as ei,b as Le,c as R,d as ti,e as oe,f as ii,g as ni,h as ri,i as oi}from"./chunk-IYK4TRBZ.js";import"./chunk-POVWTT24.js";import{a as Zt}from"./chunk-OANJVLP5.js";import{a as O}from"./chunk-KGC5PAGI.js";import"./chunk-MMJGEC25.js";import"./chunk-GKCPWIDV.js";import{a as Ht}from"./chunk-BZBTWXAN.js";import{a as Qt}from"./chunk-H6JOLFKZ.js";import{b as Gt,c as Jt}from"./chunk-LGKVAP3B.js";import"./chunk-T46VXAPX.js";import"./chunk-PP64PPZD.js";import{a as zt}from"./chunk-D76TTUA4.js";import{a as Lt}from"./chunk-QSQY3MKG.js";import"./chunk-3VWO6GSO.js";import{a as te}from"./chunk-W3FP5ADU.js";import{a as $t}from"./chunk-3O24QEBX.js";import{d as Yt}from"./chunk-T3MGZRQ5.js";import"./chunk-LIUDME4L.js";import"./chunk-6A4MBC37.js";import{a as E}from"./chunk-GXROCTUU.js";import{d as qt}from"./chunk-NM2YCYMW.js";import{Ab as Wt,B as Te,Ib as Oe,Jb as ee,Lb as Bt,N as We,Nc as qe,Qc as D,Uc as X,Y as Ce,Ya as Vt,a as xe,b as ne,c as pe,d as L,e as re,f as Ve,g as ge,h as Ne,hd as $e,i as K,j as le,jc as Ie,k as De,kc as P,mc as St,nb as Nt,ob as z,oc as W,pb as Be,q as _e,r as ce,sa as Z,tb as Dt,va as A,w as je,x as Se,xb as jt}from"./chunk-OTSSTHG4.js";import{$ as f,B as Ot,Ba as At,C as Ue,Ca as o,Da as h,E as It,Ea as _,Fa as V,G as v,Ga as Ut,H as x,Ha as B,Ia as q,Ja as $,La as me,Ma as Fe,N as ve,Na as Pt,Qa as Mt,R as Pe,Ra as Re,Ta as T,Ua as Ft,Va as H,W as G,X as a,Xa as I,aa as b,ba as Me,fb as J,ib as Y,j as yt,ja as m,ka as p,la as k,m as wt,ma as y,na as w,oa as S,ob as Rt,p as we,pa as n,qa as t,ra as c,sa as g,t as Et,ta as C,tb as be,ua as l,vb as M,wb as ke,ya as Ee,yb as Tt}from"./chunk-LSXE27IB.js";function mi(r,i){if(r&1){let e=g();n(0,"button",7),C("click",function(){v(e);let s=l().$implicit,u=l(3);return x(u.eventSelected(s.show))}),o(1,"Select "),c(2,"span",8),t()}}function pi(r,i){r&1&&(n(0,"span")(1,"em"),o(2,"Inelligible"),t()())}function ui(r,i){if(r&1&&(n(0,"tr")(1,"td",5),o(2),n(3,"h4"),o(4),t()(),n(5,"td"),m(6,mi,3,0,"button",6),m(7,pi,3,0,"span"),t()()),r&2){let e=i.$implicit,d=l(3);a(2),_(" ",e.show.name," "),a(2),V("",e.show.location.metro," - ",e.show.dates),a(2),p(d.canTransfer(e)?6:-1),a(),p(d.canTransfer(e)==!1?7:-1)}}function fi(r,i){if(r&1){let e=g();n(0,"div")(1,"table",2)(2,"thead")(3,"tr")(4,"th",3),o(5,"Select an Event"),t()()(),n(6,"tbody"),y(7,ui,8,5,"tr",null,k),t()(),n(9,"p"),o(10," If you can not select an event at this time, you can create a credit for future use. An email will be sent with a link to redeem your credit. "),t(),n(11,"button",4),C("click",function(){v(e);let s=l(2);return x(s.createCreditForFutureTicket())}),o(12,"Create Credit for Future Use"),t()()}if(r&2){let e=l(2);a(7),w(e.futureEvents)}}function _i(r,i){if(r&1&&(n(0,"div",9),o(1),c(2,"br"),o(3),t()),r&2){let e=l(3);a(),_(" ",e.targetShow.name," "),a(2),V(" ",e.targetShow.location.metro," - ",e.targetShow.dates," ")}}function hi(r,i){r&1&&(n(0,"div",9)(1,"em"),o(2,"Credit for a Future Event"),t()())}function Ci(r,i){if(r&1){let e=g();n(0,"div",1)(1,"h4"),o(2,"Transfer Ticket(s) To:"),t(),m(3,_i,4,3,"div",9),m(4,hi,3,0,"div",9),n(5,"button",4),C("click",function(){v(e);let s=l(2);return x(s.confirmTransfer())}),o(6,"Confirm Transfer"),t()()}if(r&2){let e=l(2);a(3),p(e.targetShow.name?3:-1),a(),p(e.targetShow.name==null?4:-1)}}function vi(r,i){if(r&1&&(n(0,"div",0),m(1,fi,13,0,"div"),m(2,Ci,7,2,"div",1),t()),r&2){let e=l();a(),p(e.targetShow==null?1:-1),a(),p(e.targetShow?2:-1)}}
1var Ge=class r{constructor(i,e,d,s){this.orderState=i;this.orderUpdateService=e;this.router=d;this.showService=s}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.show=i.show,this.options=i.options,this.showService.getFutureEventRegistrationInfo().subscribe(e=>{this.futureEvents=A(e,d=>d.show.id!=this.show.id)})})}canTransfer(i){let e=i.show;if(this.show.online==!0&&e.online==!1)return!1;if(this.show.appId==e.appId)return!0;let d=i.options,s=this.options.regularPrice,u=d.regularPrice;return s>=u}eventSelected(i){this.targetShow=i}confirmTransfer(){this.orderUpdateService.transferTicket(this.order,this.selectedAttendees,this.targetShow).subscribe(i=>{let e=`/n/ticket/confirmation?id=${this.order.orderId}`;this.goToUrl(e)})}createCreditForFutureTicket(){this.targetShow={},window&&window.scrollTo(0,0)}goToUrl(i){document.location.href=i}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(M),f(X))}}static{this.\u0275cmp=b({type:r,selectors:[["app-transfer-ticket-to-show"]],inputs:{selectedAttendees:"selectedAttendees"},standalone:!1,decls:1,vars:1,consts:[[1,"mb-4"],[1,"confirm"],[1,"table","table-striped","table-hover","events"],["colspan","2"],[1,"ticket-button",3,"click"],[1,"event"],[1,"ticket-button","select-event"],[1,"ticket-button","select-event",3,"click"],[1,"fas","fa-arrow-right"],[1,"mb-4","targetShow"]],template:function(e,d){e&1&&m(0,vi,3,2,"div",0),e&2&&p(d.futureEvents?0:-1)},styles:["table[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:14px}"]})}};function gi(r,i){if(r&1){let e=g();n(0,"button",8),C("click",function(){v(e);let s=l().$implicit,u=l(3);return x(u.eventSelected(s))}),o(1,"Select "),c(2,"span",9),t()}}function Si(r,i){r&1&&(n(0,"span")(1,"em"),o(2,"Inelligible"),t()())}function Ti(r,i){if(r&1&&(n(0,"tr")(1,"td",6),o(2),n(3,"h4"),o(4),t()(),n(5,"td"),m(6,gi,3,0,"button",7),m(7,Si,3,0,"span"),t()()),r&2){let e=i.$implicit,d=l(3);a(2),_(" ",e.name," "),a(2),V("",e==null||e.location==null?null:e.location.metro," - ",e.dates),a(2),p(d.canTransfer(e)?6:-1),a(),p(d.canTransfer(e)==!1?7:-1)}}function bi(r,i){r&1&&(n(0,"tr")(1,"td",4)(2,"em"),o(3,"No future events scheduled"),t()()())}function ki(r,i){if(r&1){let e=g();n(0,"div")(1,"table",3)(2,"thead")(3,"tr")(4,"th",4),o(5,"Select an Event"),t()()(),n(6,"tbody"),y(7,Ti,8,5,"tr",null,k),m(9,bi,4,0,"tr"),t()(),n(10,"p"),o(11," If you can not select an event at this time, you can create a credit for future use. An email will be sent with a link to redeem your credit. "),t(),n(12,"button",5),C("click",function(){v(e);let s=l(2);return x(s.createCreditForFutureTicket())}),o(13,"Create Credit for Future Use"),t()()}if(r&2){let e=l(2);a(7),w(e.futureEvents),a(2),p(e.futureEvents.length==0?9:-1)}}function yi(r,i){if(r&1&&(n(0,"div",10),o(1),c(2,"br"),o(3),t()),r&2){let e=l(3);a(),_(" ",e.targetEvent.name," "),a(2),V(" ",e.targetEvent.location.metro," - ",e.targetEvent.dates," ")}}function wi(r,i){r&1&&(n(0,"div",11)(1,"em"),o(2,"Credit for a Future Event"),t()())}function Ei(r,i){if(r&1){let e=g();n(0,"div",1)(1,"h4"),o(2,"Transfer Ticket(s) To:"),t(),m(3,yi,4,3,"div",10),m(4,wi,3,0,"div",11),n(5,"button",5),C("click",function(){v(e);let s=l(2);return x(s.confirmTransfer())}),o(6,"Confirm Transfer"),t()()}if(r&2){let e=l(2);a(3),p(e.targetEvent.name?3:-1),a(),p(e.targetEvent.name==null?4:-1)}}function Oi(r,i){if(r&1&&(n(0,"div",2)(1,"button",12),o(2,"\xD7"),t(),n(3,"strong"),o(4,"Error"),t(),o(5),t()),r&2){let e=l(2);a(5),_(" ",e.error," ")}}function Ii(r,i){if(r&1&&(n(0,"div",0),m(1,ki,14,1,"div"),m(2,Ei,7,2,"div",1),m(3,Oi,6,1,"div",2),t()),r&2){let e=l();a(),p(e.targetEvent==null?1:-1),a(),p(e.targetEvent?2:-1),a(),p(e.error?3:-1)}}var Je=class r{constructor(i,e,d,s){this.orderState=i;this.orderUpdateService=e;this.router=d;this.trainingService=s}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.training=i.training,this.options=i.options,this.trainingService.upcomingInPersonTraining().subscribe(e=>{this.futureEvents=A(e,d=>d.id!=this.training.id&&d.canceled==!1)})})}canTransfer(i){let e=i.regularPrice,d=this.training.regularPrice;return e<=d,!0}eventSelected(i){this.targetEvent=i}confirmTransfer(){confirm("Are you sure you want to transfer the ticket?")&&this.orderUpdateService.transferTicket(this.order,this.selectedAttendees,this.targetEvent).subscribe(i=>{let e=`/n/ticket/confirmation?id=${this.order.orderId}`;this.goToUrl(e)},i=>{this.error=P(i)})}createCreditForFutureTicket(){this.targetEvent=null,this.confirmTransfer()}goToUrl(i){document.location.href=i}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(M),f(he))}}static{this.\u0275cmp=b({type:r,selectors:[["app-transfer-ticket-to-training"]],inputs:{selectedAttendees:"selectedAttendees"},standalone:!1,decls:1,vars:1,consts:[[1,"mb-4"],[1,"confirm"],[1,"alert","alert-danger"],[1,"table","table-striped","table-hover","events"],["colspan","2"],[1,"ticket-button",3,"click"],[1,"event"],[1,"ticket-button","select-event"],[1,"ticket-button","select-event",3,"click"],[1,"fas","fa-arrow-right"],[1,"mb-4","targetShow"],[1,"mb-4","targetEvent"],["type","button","data-dismiss","alert","aria-hidden","true",1,"close"]],template:function(e,d){e&1&&m(0,Ii,4,3,"div",0),e&2&&p(d.futureEvents?0:-1)},encapsulation:2})}};var Ui=r=>["/ticket/order-update",r,"ticket_names"];function Pi(r,i){if(r&1){let e=g();n(0,"tr")(1,"td",12)(2,"input",13),$("ngModelChange",function(s){let u=v(e).$implicit;return q(u.selected,s)||(u.selected=s),x(s)}),t()(),n(3,"td"),o(4),t()()}if(r&2){let e=i.$implicit;
1a(2),B("ngModel",e.selected),a(2),_(" ",e.description()," ")}}function Mi(r,i){if(r&1){let e=g();n(0,"tr")(1,"td",12)(2,"input",13),$("ngModelChange",function(s){let u=v(e).$implicit;return q(u.selected,s)||(u.selected=s),x(s)}),t()(),n(3,"td"),o(4),T(5,"date"),t()()}if(r&2){let e=i.$implicit;a(2),B("ngModel",e.selected),a(2),V(" ",e.name," - ",H(5,3,e.firstDay,"M/d/yyyy")," ")}}function Fi(r,i){if(r&1){let e=g();n(0,"tr")(1,"td"),o(2),t(),n(3,"td")(4,"button",14),C("click",function(){let s=v(e).$implicit,u=l(4);return x(u.createUnAssignedTransferCredit(s))}),o(5,"Create Credit"),t()(),c(6,"td"),t()}if(r&2){let e=i.$index,d=l(4);a(2),_(" Ticket #",d.order.ticketCount-e," ")}}function Ri(r,i){if(r&1&&(n(0,"div")(1,"h3"),o(2,"Un-Assigned Tickets"),t(),n(3,"p"),o(4," You may create a credit for tickets that are not assigned. "),t(),n(5,"table",8)(6,"thead")(7,"tr")(8,"th"),o(9,"Ticket"),t(),c(10,"th")(11,"th"),t()(),n(12,"tbody"),y(13,Fi,7,1,"tr",null,k),t()()()),r&2){let e=l(3);a(13),w(e.unassignedTickets)}}function Vi(r,i){if(r&1){let e=g();n(0,"div",4)(1,"table",8)(2,"tr")(3,"th",9),o(4," Select the ticket(s) you wish to assign "),t()(),y(5,Pi,5,2,"tr",null,k),y(7,Mi,6,6,"tr",null,k),t(),n(9,"button",10),C("click",function(){v(e);let s=l(2);return x(s.attendeesSelected())}),o(10,"Continue "),c(11,"span",11),t(),m(12,Ri,15,0,"div"),t()}if(r&2){let e=l(2);a(5),w(e.attendees),a(2),w(e.trainingAttendees),a(2),S("disabled",e.findSelectedAttendees().length==0),a(3),p(e.unassignedTickets.length>0?12:-1)}}function Ni(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t()()),r&2){let e=i.$implicit;a(2),h(e.description())}}function Di(r,i){if(r&1&&(n(0,"div",4)(1,"table",8)(2,"tr")(3,"th",15),o(4," Tickets to be transfered "),t()(),y(5,Ni,3,1,"tr",null,k),t()()),r&2){let e=l(2);a(5),w(e.selectedAttendees)}}function ji(r,i){if(r&1&&c(0,"app-transfer-ticket-to-show",6),r&2){let e=l(2);S("selectedAttendees",e.selectedAttendees)}}function Wi(r,i){if(r&1&&c(0,"app-transfer-ticket-to-training",6),r&2){let e=l(2);S("selectedAttendees",e.selectedAttendees)}}function Bi(r,i){if(r&1&&(n(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),o(4," If you wish to transfer a ticket to another person at the original event, use the "),n(5,"a",3),o(6,"Change Names on Tickets"),t(),o(7," function. "),t(),n(8,"p"),o(9," At this time we can only transfer to events "),n(10,"em"),o(11,"of equal value"),t(),o(12," at no charge. "),t(),n(13,"p",4),o(14," If you are not able to select an event at this time, you may create a "),n(15,"em"),o(16,"ticket credit"),t(),o(17," in our system and select the event ticket at a later date. "),t(),c(18,"app-info-message",5),m(19,Vi,13,2,"div",4),m(20,Di,7,0,"div",4),m(21,ji,1,1,"app-transfer-ticket-to-show",6),m(22,Wi,1,1,"app-transfer-ticket-to-training",6),t(),n(23,"div",7),c(24,"app-order-info"),t()()()),r&2){let e=l();a(5),S("routerLink",Re(7,Ui,e.order.id)),a(13),S("error",e.error)("message",e.message),a(),p(e.selectedAttendees==null?19:-1),a(),p(e.selectedAttendees!=null?20:-1),a(),p(e.selectedAttendees!=null&&e.training==null?21:-1),a(),p(e.selectedAttendees!=null&&e.training?22:-1)}}var Ye=class r{constructor(i,e){this.orderState=i;this.orderUpdateService=e;this.attendees=[];this.unassignedTickets=[];this.trainingAttendees=[]}ngOnInit(){this.orderState.subscribe(i=>{this.show=i.show,this.training=i.training,this.options=i.options,this.order=i.order,this.attendees=this.order.attendees.filter(e=>e.showId==this.order.showId),this.order.unAssignedTicketCount>0&&(this.unassignedTickets=z(Be(0,this.order.unAssignedTicketCount),e=>({name:`Ticket #${this.order.ticketCount-e}`,ordinal:e}))),this.order.orderType==Oe.Training&&(this.trainingAttendees=this.order.trainingAttendees),this.attendees.length==1?this.selectedAttendees=[this.attendees[0]]:this.trainingAttendees.length==1&&(this.selectedAttendees=[this.trainingAttendees[0]])})}attendeesSelected(){this.selectedAttendees=this.findSelectedAttendees(),this.selectedUnAssignedTickets=this.findSelectedUnAssignedTickets()}findSelectedAttendees(){return this.training?A(this.trainingAttendees,i=>i.selected==!0):A(this.attendees,i=>i.selected==!0)}findSelectedUnAssignedTickets(){return A(this.unassignedTickets,{selected:!0})}
1createUnAssignedTransferCredit(i){confirm("Are you sure you want to create a ticket credit?")&&this.orderUpdateService.createUnAssignedTransferCredit(this.order.id).subscribe(e=>{this.orderUpdateService.fetchOrderData(this.order.id),this.message="Update complete",this.unassignedTickets=[],Ie()})}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O))}}static{this.\u0275cmp=b({type:r,selectors:[["app-transfer-ticket"]],standalone:!1,decls:4,vars:1,consts:[[1,"row"],[1,"col-12","col-sm-8"],[1,"alert","alert-info"],[3,"routerLink"],[1,"mb-4"],[3,"error","message"],[3,"selectedAttendees"],[1,"col-12","col-sm-4"],[1,"table","table-striped"],["colspan","2"],[1,"ticket-button","continue","mb-5",3,"click","disabled"],[1,"fas","fa-arrow-right"],[1,"w30"],["type","checkbox",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-primary",3,"click"],["colspan","3"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Transfer Ticket to Other Event"),t(),m(2,Bi,25,9,"div"),c(3,"app-update-links")),e&2&&(a(2),p(d.order?2:-1))},dependencies:[xe,L,K,D,ke,R,oe,Ge,Je,J],styles:["button.select-event[_ngcontent-%COMP%]{font-size:14px;padding:4px 10px}table.events[_ngcontent-%COMP%]   td.event[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:13px;margin-left:20px}div.confirm[_ngcontent-%COMP%]   div.targetShow[_ngcontent-%COMP%]{margin-left:20px}"]})}};function qi(r,i){if(r&1&&(n(0,"tr")(1,"th"),o(2,"Amount Due: "),t(),n(3,"td"),o(4),t()()),r&2){let e=l(2);a(4),h(e.order.amountDue)}}function $i(r,i){if(r&1&&(n(0,"div")(1,"div",0)(2,"div",1)(3,"h3"),o(4,"Order Summary"),t(),n(5,"table",2)(6,"tr")(7,"th",3),o(8,"Invoice: "),t(),n(9,"td"),o(10),t()(),n(11,"tr")(12,"th"),o(13,"Event: "),t(),n(14,"td"),o(15),t()(),n(16,"tr")(17,"th"),o(18,"Dates: "),t(),n(19,"td"),o(20),t()(),n(21,"tr")(22,"th"),o(23,"Name: "),t(),n(24,"td"),o(25),t()(),n(26,"tr")(27,"th"),o(28,"Email: "),t(),n(29,"td"),o(30),t()(),n(31,"tr")(32,"th"),o(33,"Company: "),t(),n(34,"td"),o(35),t()(),n(36,"tr")(37,"th"),o(38,"Number of Tickets: "),t(),n(39,"td"),o(40),t()(),n(41,"tr")(42,"th"),o(43,"Order Date: "),t(),n(44,"td"),o(45),T(46,"date"),t()(),n(47,"tr")(48,"th"),o(49,"Order Status: "),t(),n(50,"td"),o(51),t()(),n(52,"tr")(53,"th"),o(54,"Order Total: "),t(),n(55,"td"),o(56),T(57,"currency"),t()(),m(58,qi,5,1,"tr"),t()()()()),r&2){let e=l();a(10),h(e.order.id),a(5),h(e.show.name),a(5),h(e.show.dates),a(5),h(e.order.billingInfo.name),a(5),h(e.order.billingInfo.email),a(5),h(e.order.billingInfo.company),a(5),h(e.order.ticketCount),a(5),_(" ",Ft(46,11,e.order.orderDate)," "),a(6),h(e.order.statusString),a(5),h(I(57,13,e.order.total,"USD","symbol","1.2")),a(2),p(e.order.amountDue>0?58:-1)}}var He=class r{constructor(i,e){this.orderUpdateService=i;this.orderState=e}ngOnInit(){this.orderState.subscribe(i=>{this.show=i.show,this.order=i.order})}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(E))}}static{this.\u0275cmp=b({type:r,selectors:[["app-order-summary"]],standalone:!1,decls:4,vars:1,consts:[[1,"row"],[1,"col-12","col-sm-6"],[1,"table","summary","mb-3"],[1,"w180"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Update Your Order"),t(),c(2,"app-update-links"),m(3,$i,59,18,"div")),e&2&&(a(3),p(d.order?3:-1))},dependencies:[R,Y,J],styles:["ul.update-options[_ngcontent-%COMP%]{list-style:none;margin-bottom:50px}h3[_ngcontent-%COMP%]{margin-bottom:20px}"]})}};var Qe=class r{constructor(){}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275cmp=b({type:r,selectors:[["app-order-admin"]],standalone:!1,decls:3,vars:0,template:function(e,d){e&1&&(n(0,"h1"),o(1,"Order Admin Access"),t(),c(2,"app-update-links"))},dependencies:[R],encapsulation:2})}};function Li(r,i){r&1&&(n(0,"div",1)(1,"div",5),c(2,"app-stripe-multi-payment",6),t()()),r&2&&(a(2),S("wholePayment",!0))}function zi(r,i){r&1&&(n(0,"div",4)(1,"h3"),o(2,"Your order is processing... please wait."),t(),c(3,"div",7),t())}function Gi(r,i){if(r&1&&(n(0,"div")(1,"div",1)(2,"div",2)(3,"h3"),o(4,"Payment Summary"),t(),n(5,"table",3)(6,"tr")(7,"th"),o(8,"Order Total "),t(),c(9,"td")(10,"td"),n(11,"td"),o(12),T(13,"currency"),t()(),n(14,"tr")(15,"th"),o(16,"Amount Paid "),t(),c(17,"td")(18,"td"),n(19,"td"),o(20),T(21,"currency"),t()(),n(22,"tr")(23,"th"),o(24,"Amount Due "),t(),c(25,"td")(26,"td"),n(27,"td"),o(28),T(29,"currency"),t()()()()(),m(30,Li,3,1,"div",1),m(31,zi,4,0,"div",4),t()),r&2){let e=l();a(12),h(I(13,5,e.order.total,"USD","symbol","1.0")),a(8),h(I(21,10,e.order.amountPaid,"USD","symbol","1.0")),a(8),h(I(29,15,e.order.amountDue,"USD","symbol","1.0")),a(2),p(e.order.processing==!1?30:-1),a(),p(e.order.processing?31:-1)}}
1var Ke=class r{constructor(i){this.orderState=i}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order})}handleError(i){this.error=i}static{this.\u0275fac=function(e){return new(e||r)(f(E))}}static{this.\u0275cmp=b({type:r,selectors:[["app-pay-online"]],standalone:!1,decls:5,vars:3,consts:[[3,"error","message"],[1,"row"],[1,"col-12","col-sm-8"],[1,"table"],[1,"processing"],[1,"col-12","col-sm-12"],[3,"wholePayment"],[1,"spinner"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Pay Online"),t(),c(2,"app-info-message",0),m(3,Gi,32,20,"div"),c(4,"app-charge-failed")),e&2&&(a(2),S("error",d.error)("message",d.message),a(),p(d.order?3:-1))},dependencies:[D,zt,Gt,Y],styles:["div.processing[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#c00}"]})}};function Ji(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),o(4),T(5,"currency"),t(),n(6,"td"),o(7),t(),n(8,"td"),o(9),T(10,"currency"),t()()),r&2){let e=i.$implicit;a(2),h(e.description()),a(2),h(I(5,4,e.amount,"USD","symbol","1.0")),a(3),h(e.quantity),a(2),_("(",I(10,9,e.total,"USD","symbol","1.0"),")")}}function Yi(r,i){if(r&1&&(n(0,"tbody"),y(1,Ji,11,14,"tr",null,k),n(3,"tr")(4,"td"),o(5,"Add On Ticket Total"),t(),c(6,"td")(7,"td"),n(8,"td"),o(9),T(10,"currency"),t()()()),r&2){let e=l(3);a(),w(e.addOnItem.discounts),a(8),h(I(10,1,e.addOnTicketTotal,"USD","symbol","1.0"))}}function Hi(r,i){if(r&1&&(n(0,"div")(1,"table",12)(2,"thead")(3,"tr")(4,"th"),o(5,"Item"),t(),n(6,"th"),o(7,"Amount"),t(),n(8,"th"),o(9,"Quanity"),t(),n(10,"th"),o(11,"Total"),t()()(),n(12,"tbody")(13,"tr")(14,"td"),o(15,"Additional Tickets"),t(),n(16,"td"),o(17),T(18,"currency"),t(),n(19,"td"),o(20),t(),n(21,"td"),o(22),T(23,"currency"),t()()(),m(24,Yi,11,6,"tbody"),n(25,"tbody")(26,"tr")(27,"td"),o(28,"New Order Total"),t(),c(29,"td")(30,"td"),n(31,"td"),o(32),T(33,"currency"),t()()()()()),r&2){let e=l(2);a(17),h(I(18,5,e.addOnItem.unitPrice,"USD","symbol","1.0")),a(3),h(e.addOnItem.quantity),a(2),h(I(23,10,e.addOnItem.itemTotal,"USD","symbol","1.0")),a(2),p(e.addOnItem.discounts.length>0?24:-1),a(8),h(I(33,15,e.order.total,"USD","symbol","1.0"))}}function Qi(r,i){if(r&1){let e=g();n(0,"app-add-on",13),C("values",function(s){v(e);let u=l(2);return x(u.addOnSelection(s))}),t()}}function Ki(r,i){if(r&1){let e=g();n(0,"div",1)(1,"div",2)(2,"h3"),o(3,"How many tickets do you want to add?"),t(),n(4,"form",3,0),C("ngSubmit",function(){v(e);let s=l();return x(s.addTickets())}),n(6,"div",4)(7,"div",5),c(8,"input",6),t()(),n(9,"div",4)(10,"label",7),o(11,"Ticket Price"),t(),n(12,"div",8),o(13),T(14,"currency"),t()(),m(15,Hi,34,20,"div"),m(16,Qi,1,0,"app-add-on"),n(17,"div",4)(18,"div",9)(19,"button",10),o(20,"Next"),t()()()()(),n(21,"div",11),c(22,"app-order-info"),t()()}if(r&2){let e=Ee(5),d=l();a(4),S("formGroup",d.form),a(9),_(" ",I(14,5,d.order.unitPrice,"USD","symbol","1.0")," "),a(2),p(d.addOnItem?15:-1),a(),p(d.hasAddOns()?16:-1),a(3),S("disabled",!e.value)}}var Xe=class r{constructor(i,e,d,s){this.orderUpdateService=i;this.ticketService=e;this.orderState=d;this.router=s}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.show=i.show,i.options&&(this.options=i.options,this.ticketService.fetchWorkshopOptionsIfOffered(this.show,this.options))}),this.initializeForm()}initializeForm(){this.form=new Te().group({ticketCount:["",this.validateTicketCount]}),this.form.valueChanges.subscribe(i=>{this.ticketCount=+i.ticketCount,this.updateAddOnSelection(this.ticketCount)})}updateAddOnSelection(i){this.addOnItem=this.orderUpdateService.createAddTicketsItem(this.order,i);let e=this.addOnItem.itemTotal,d=Dt(z(this.addOnItem.discounts,"total"));this.addOnTicketTotal=e-d}addOnSelection(i){Vt(this.order,i)}addTickets(){if(!this.form.valid)return;let i=+this.form.value.ticketCount;this.updateAddOnSelection(i),this.router.navigateByUrl(`/ticket/order-update/${this.order.orderId}/add_ticket/names`)}hasAddOns(){return this.options==null?!1:this.options.hasWorkshops||this.options.hasTravelPackages}validateTicketCount(i){let e=parseInt(i.value);return Ht(e)&&e>0?null:{validateTicketCount:{valid:!1}}}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(te),f(E),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-add-ticket"]],standalone:!1,decls:4,vars:1,consts:[["f","ngForm"],[1,"row","mb-4"],[1,"col-12","col-sm-8"],[1,"form-horizontal",3,"ngSubmit","formGroup"],[1,"form-group"],[1,"col-sm-2"],["type","number","min","1","formControlName","ticketCount","required","",1,"form-control","ticketCount"],[1,"col-sm-3","control-label"],[1,"col-sm-9","unit-price"],[1,"col-sm-10"],[1,"ticket-button",3,"disabled"],[1,"col-12","col-sm-4"],[1,"table","table-striped","table-hover"],[3,"values"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Add Ticket(s) to Order"),t(),m(2,Ki,23,10,"div",1),c(3,"app-update-links")),e&2&&(a(2),p(d.order?2:-1))},dependencies:[le,ne,De,L,re,Se,je,ce,_e,Xt,R,oe,Y],styles:["h3[_ngcontent-%COMP%]{margin-bottom:20px}div.unit-price[_ngcontent-%COMP%]{padding-top:5px}input.ticketCount[_ngcontent-%COMP%]{max-width:100px}div.add-ons[_ngcontent-%COMP%]{background:#f1f1f1;padding:10px;border-radius:8px;border:1px solid #999;margin-bottom:30px;font-size:14px}div.add-ons[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}div.add-ons[_ngcontent-%COMP%]   div.form-group[_ngcontent-%COMP%]{margin-bottom:0}"]})}};var Xi=r=>["/ticket/order-update",r,"add_ticket"];function Zi(r,i){r&1&&(n(0,"h1"),o(1,"Name on Ticket"),t())}function en(r,i){r&1&&(n(0,"h1"),o(1,"Name on Tickets"),t())}function tn(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"input",8),$("ngModelChange",function(s){let u=v(e).$implicit;return q(u.firstName,s)||(u.firstName=s),x(s)}),t()(),n(3,"td")(4,"input",9),$("ngModelChange",function(s){let u=v(e).$implicit;return q(u.lastName,s)||(u.lastName=s),x(s)}),t()(),n(5,"td")(6,"input",10),$("ngModelChange",function(s){let u=v(e).$implicit;return q(u.email,s)||(u.email=s),x(s)}),t()(),n(7,"td")(8,"button",11),C("click",function(){let s=v(e).$implicit,u=l();return x(u.clearAttendee(s))}),c(9,"span",12),o(10," Clear"),t()()()}if(r&2){let e=i.$implicit,d=l();a(2),B("ngModel",e.firstName),a(2),B("ngModel",e.lastName),a(2),B("ngModel",e.email),a(2),At(me("btn btn-secondary ",d.hasValues(e)?"":" hidden"))}}
1var Ze=class r{constructor(i,e){this.orderState=i;this.router=e}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order;let e=this.order.getAddOnItem(ee.Ticket);this.attendees=e.attendees})}hasValues(i){return(i.firstName||i.lastName||i.email)!=null}clearAttendee(i){i.firstName=null,i.lastName=null,i.email=null}next(){this.router.navigateByUrl(`/ticket/order-update/${this.order.orderId}/${this.nextPage()}`)}nextPage(){return this.order.displayWorkshops?"add_ticket/workshop":this.order.displayTravel?"add_ticket/travel":"payment"}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-add-ticket-names"]],standalone:!1,decls:24,vars:5,consts:[[1,"table"],[1,"float-left"],[1,"ticket-button","default",3,"routerLink"],[1,"fas","fa-arrow-left"],[1,"float-right"],["type","button",1,"ticket-button","skip",3,"click"],[1,"fas","fa-arrow-right"],["type","button",1,"ticket-button",3,"click"],["type","text","name","firstName","placeholder","First Name",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","lastName","placeholder","Last Name",1,"form-control",3,"ngModelChange","ngModel"],["type","text","name","email","placeholder","Email",1,"form-control",3,"ngModelChange","ngModel"],["type","button",3,"click"],[1,"fas","fa-times-sign"]],template:function(e,d){e&1&&(m(0,Zi,2,0,"h1"),m(1,en,2,0,"h1"),n(2,"table",0)(3,"tr")(4,"th"),o(5,"First"),t(),n(6,"th"),o(7,"Last"),t(),n(8,"th"),o(9,"Email"),t(),c(10,"th"),t(),y(11,tn,11,6,"tr",null,k),t(),n(13,"div",1)(14,"a",2),c(15,"span",3),o(16," Back"),t()(),n(17,"div",4)(18,"button",5),C("click",function(){return d.next()}),o(19,"Skip "),c(20,"span",6),t(),n(21,"button",7),C("click",function(){return d.next()}),o(22,"Next "),c(23,"span",6),t()()),e&2&&(p(d.attendees&&d.attendees.length==1?0:-1),a(),p(d.attendees&&d.attendees.length>1?1:-1),a(10),w(d.attendees),a(3),S("routerLink",Re(3,Xi,d.order.id)))},dependencies:[ne,L,K,ke],encapsulation:2})}};function nn(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),o(4),T(5,"currency"),t(),n(6,"td"),o(7),t(),n(8,"td"),o(9),T(10,"currency"),t()()),r&2){let e=i.$implicit;a(2),_(" ",e.description()," "),a(2),_(" ",I(5,4,e.unitPrice,"USD","symbol","1.0")," "),a(3),_(" ",e.quantity," "),a(2),_(" ",I(10,9,e.itemTotal,"USD","symbol","1.0")," ")}}function rn(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),o(4),T(5,"currency"),t(),n(6,"td"),o(7),t(),n(8,"td"),o(9),T(10,"currency"),t()()),r&2){let e=i.$implicit;a(2),_(" ",e.description()," "),a(2),_(" ",I(5,4,e.amount,"USD","symbol","1.0")," "),a(3),_(" ",e.quantity," "),a(2),_(" (",I(10,9,e.total,"USD","symbol","1.0"),") ")}}function on(r,i){if(r&1&&(n(0,"div",0)(1,"div",1)(2,"table",2)(3,"tr")(4,"th"),o(5,"Item"),t(),n(6,"th"),o(7,"Price"),t(),n(8,"th"),o(9,"Quantity"),t(),n(10,"th"),o(11,"Total"),t()(),y(12,nn,11,14,"tr",null,k),y(14,rn,11,14,"tr",null,k),n(16,"tr")(17,"th"),o(18,"Add On Total "),t(),c(19,"td")(20,"td"),n(21,"td"),o(22),T(23,"currency"),t()()(),n(24,"h3"),o(25,"Transaction Summary"),t(),n(26,"table",2)(27,"tr")(28,"th"),o(29,"New Order Total "),t(),c(30,"td")(31,"td"),n(32,"td"),o(33),T(34,"currency"),t()(),n(35,"tr")(36,"th"),o(37,"Amount Paid "),t(),c(38,"td")(39,"td"),n(40,"td"),o(41),T(42,"currency"),t()(),n(43,"tr")(44,"th"),o(45,"Amount Due "),t(),c(46,"td")(47,"td"),n(48,"td"),o(49),T(50,"currency"),t()()(),c(51,"app-ticket-payment",3),t()()),r&2){let e=l();a(12),w(e.order.addOns),a(2),w(e.order.getAddOnDiscounts()),a(8),h(I(23,5,e.order.addOnTotal,"USD","symbol","1.0")),a(11),h(I(34,10,e.order.total,"USD","symbol","1.0")),a(8),h(I(42,15,e.order.amountPaid,"USD","symbol","1.0")),a(8),h(I(50,20,e.order.amountDue,"USD","symbol","1.0")),a(2),S("order",e.order)}}var et=class r{constructor(i){this.orderState=i;this.paymentTypeCode="cc"}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order})}updatePaymentType(i){this.paymentTypeCode=i}static{this.\u0275fac=function(e){return new(e||r)(f(E))}}static{this.\u0275cmp=b({type:r,selectors:[["app-order-update-payment"]],standalone:!1,decls:3,vars:1,consts:[[1,"row"],[1,"col-12","col-sm-8"],[1,"table"],[3,"order"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Registration Update - Confirmation & Payment"),t(),m(2,on,52,25,"div",0)),e&2&&(a(2),p(d.order?2:-1))},dependencies:[Jt,Y],styles:["h1[_ngcontent-%COMP%]{margin-bottom:40px}"]})}};function an(r,i){if(r&1&&(n(0,"span"),o(1),t()),r&2){let e=l().$implicit;a(),_(" ",e.workshop.title," ")}}function dn(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"button",5),C("click",function(){let s=v(e).$implicit,u=l();return x(u.attendee=s)}),c(3,"span",6),o(4," Add Workshop"),t(),n(5,"span"),o(6),t()(),n(7,"td",7),m(8,an,2,1,"span"),t()()}if(r&2){let e=i.$implicit;a(6),h(e.description()),a(2),p(e.workshop?8:-1)}}function sn(r,i){if(r&1){let e=g();n(0,"tr")(1,"td",14)(2,"button",15),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.addWorkshop(s,u.attendee))}),c(3,"span",6),o(4," Add"),t(),n(5,"span"),o(6),t()(),c(7,"td",16),t()}if(r&2){let e=i.$implicit;a(6),h(e.title)}}function ln(r,i){if(r&1&&(n(0,"div",4)(1,"div",8)(2,"h4",9),o(3),t(),n(4,"button",10),o(5,"\xD7"),t()(),n(6,"div",11)(7,"table",0),y(8,sn,8,1,"tr",null,k),t()(),n(10,"div",12)(11,"button",13),o(12,"Close"),t()()()),r&2){let e=l();a(3),_("Select Workshop for: ",e.attendee.description()),a(5),w(e.workshops)}}
1var tt=class r{constructor(i){this.ticketService=i;this.workshopSelection=new ve}ngOnInit(){this.ticketService.workshopsSub.subscribe(i=>{this.workshops=i})}addWorkshop(i,e){this.workshopSelection.emit(new Bt(i,e)),W()}static{this.\u0275fac=function(e){return new(e||r)(f(te))}}static{this.\u0275cmp=b({type:r,selectors:[["app-workshop-selection"]],inputs:{attendees:"attendees"},outputs:{workshopSelection:"workshopSelection"},standalone:!1,decls:9,vars:1,consts:[[1,"table","table-striped"],["colspan","2"],["id","workshopModal","tabindex","-1","role","dialog",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],["type","button","data-toggle","modal","data-target","#workshopModal",1,"ticket-button","add-workshop",3,"click"],[1,"fas","fa-plus"],[1,"workshop"],[1,"modal-header"],["id","amodal-title",1,"modal-title"],["type","button","data-dismiss","modal","aria-hidden","true",1,"close"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"title"],["type","button",1,"ticket-button",3,"click"],[1,"fill"]],template:function(e,d){e&1&&(n(0,"table",0)(1,"tr")(2,"th",1),o(3,"Your Tickets"),t()(),y(4,dn,9,2,"tr",null,k),t(),n(6,"div",2)(7,"div",3),m(8,ln,13,1,"div",4),t()()),e&2&&(a(4),w(d.attendees),a(4),p(d.attendee?8:-1))},styles:["p[_ngcontent-%COMP%]{margin-bottom:20px}td.add[_ngcontent-%COMP%]{max-width:100px;padding:1px}td.title[_ngcontent-%COMP%]   .ticket-button[_ngcontent-%COMP%]{padding:5px 10px;font-size:14px;margin-right:15px}td.title[_ngcontent-%COMP%]{max-width:450px}td.fill[_ngcontent-%COMP%]{max-width:500px}td.workshop[_ngcontent-%COMP%]{max-width:300px;overflow:hidden}button.add-workshop[_ngcontent-%COMP%]{font-size:14px;padding:3px 10px;margin-right:15px}"]})}};
1var it=class r{constructor(i,e,d){this.orderUpdateService=i;this.orderState=e;this.router=d}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.item=this.order.getAddOnItem(ee.Ticket),this.attendees=this.item.attendees})}addWorkshopSelection(i){this.orderUpdateService.addWorkshopRegistration(this.order,i)}skip(){this.next()}next(){let i=this.nextPage();this.router.navigateByUrl(i)}back(){let i=`/ticket/order-update/${this.order.orderId}/add_ticket/names`;this.router.navigateByUrl(i)}nextPage(){return this.order.displayTravel?`/ticket/order-update/${this.order.orderId}/add_ticket/travel`:this.order.displayVirtualAddOn?`/ticket/order-update/${this.order.orderId}/add_ticket/virtual`:`/ticket/order-update/${this.order.orderId}/payment`}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(E),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-add-ticket-workshop"]],standalone:!1,decls:16,vars:1,consts:[[3,"workshopSelection","attendees"],[1,"float-left"],[1,"ticket-button","default",3,"click"],[1,"fas","fa-arrow-left"],[1,"float-right"],["type","button",1,"ticket-button","skip",3,"click"],[1,"fas","fa-arrow-right"],["type","button",1,"ticket-button",3,"click"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Full-Day Workshop"),t(),n(2,"p"),o(3,` Would you like to add full-day workshops to your order?
2`),t(),n(4,"app-workshop-selection",0),C("workshopSelection",function(u){return d.addWorkshopSelection(u)}),t(),n(5,"div",1)(6,"a",2),C("click",function(){return d.back()}),c(7,"span",3),o(8," Back"),t()(),n(9,"div",4)(10,"button",5),C("click",function(){return d.skip()}),o(11,"Skip "),c(12,"span",6),t(),n(13,"button",7),C("click",function(){return d.next()}),o(14,"Next "),c(15,"span",6),t()()),e&2&&(a(4),S("attendees",d.attendees))},dependencies:[tt],encapsulation:2})}};
2var nt=class r{constructor(i,e,d){this.orderUpdateService=i;this.orderState=e;this.router=d}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.options=i.options,this.registrationSelections=this.formatRegistrationSelections()})}formatRegistrationSelections(){let i=this.order.getAddOnItem(ee.Ticket),e=this.order.getAddOnItem(ee.Workshop);return z(i.attendees,d=>{let s=this.order.travelRegForAddOnAttendee(d),u=this.order.getAddOnTravelItemForAttendee(d),se;return e&&(se=Z(e.workshopRegistrations,fe=>fe.attendee.id===d.id)),{attendee:d,travelReg:s,travelItem:u,workshopReg:se}})}addTravelRegistration(i){this.orderUpdateService.addTravelRegistration(this.order,i)}back(){if(this.order.displayWorkshops){let e=`/ticket/order-update/${this.order.orderId}/add_ticket/workshop`;this.router.navigateByUrl(e);return}let i=`/ticket/order-update/${this.order.orderId}/add_ticket/names`;this.router.navigateByUrl(i)}skip(){this.router.navigateByUrl(this.nextPage())}next(){this.router.navigateByUrl(this.nextPage())}nextPage(){return this.order.displayVirtualAddOn?`/ticket/order-update/${this.order.orderId}/add_ticket/virtual`:`/ticket/order-update/${this.order.orderId}/payment`}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(E),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-add-ticket-travel"]],standalone:!1,decls:16,vars:3,consts:[[3,"travelSelection","addOnOrder","options","registrationSelections"],[1,"float-left"],[1,"ticket-button","default",3,"click"],[1,"fas","fa-arrow-left"],[1,"float-right"],["type","button",1,"ticket-button","skip",3,"click"],[1,"fas","fa-arrow-right"],["type","button",1,"ticket-button",3,"click"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Travel Packages"),t(),n(2,"p"),o(3,` Would you like to add a travel package(s) to your order?
3`),t(),n(4,"app-attendee-travel-selection",0),C("travelSelection",function(u){return d.addTravelRegistration(u)}),t(),n(5,"div",1)(6,"a",2),C("click",function(){return d.back()}),c(7,"span",3),o(8," Back"),t()(),n(9,"div",4)(10,"button",5),C("click",function(){return d.skip()}),o(11,"Skip "),c(12,"span",6),t(),n(13,"button",7),C("click",function(){return d.next()}),o(14,"Next "),c(15,"span",6),t()()),e&2&&(a(4),S("addOnOrder",!0)("options",d.options)("registrationSelections",d.registrationSelections))},dependencies:[ni],encapsulation:2})}};function mn(r,i){r&1&&(n(0,"div",4),o(1," ERROR: Your order did not include a tour pass. If you believe this is an error, please email: [email protected] "),t())}function pn(r,i){if(r&1&&(n(0,"div",11),o(1),t()),r&2){let e=l(2);a(),_(" ",e.message," ")}}function un(r,i){if(r&1){let e=g();n(0,"button",17),C("click",function(){v(e);let s=l().$implicit,u=l(3);return x(u.cancelTicket(s))}),c(1,"i",18),t()}}function fn(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),c(3,"br"),o(4),t(),n(5,"td"),o(6),c(7,"br"),o(8),t(),n(9,"td")(10,"a",14),c(11,"i",15),t(),m(12,un,2,0,"button",16),t()()),r&2){let e=i.$implicit,d=l(3);a(2),_(" ",e.name," "),a(2),_(" ",e.email," "),a(2),_(" ",e.show.name," "),a(2),_(" ",e.show.dates," "),a(2),S("href",Fe("/n/ticket/view?showUserId=",e.id,"&tokenId=",d.order.token),G),a(2),p(e.show.isPast==!1?12:-1)}}function _n(r,i){if(r&1&&(n(0,"div",1)(1,"div",2)(2,"h3",12),o(3,"Redeemed Tickets"),t(),n(4,"table",13)(5,"tr")(6,"th"),o(7,"Name On Ticket"),t(),n(8,"th"),o(9,"Event"),t(),c(10,"th"),t(),y(11,fn,13,8,"tr",null,k),t()()()),r&2){let e=l(2);a(11),w(e.showUsers)}}function hn(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"a",23),o(3),t(),c(4,"br"),o(5),t(),n(6,"td")(7,"button",24),C("click",function(){let s=v(e).$implicit,u=l(3);return x(u.selectShow(s))}),o(8,"Get Ticket"),t()()()}if(r&2){let e=i.$implicit;a(2),S("href",e.displayUrl,G),a(),h(e.name),a(2),V(" ",e.location.metroArea," - ",e.dates," ")}}function Cn(r,i){if(r&1&&(n(0,"div",8)(1,"div",2)(2,"h3",12),o(3,"Find Event and Assign Ticket(s)"),t(),n(4,"form",19)(5,"div",20)(6,"label",21),o(7,"Event Name"),t(),c(8,"input",22),t()(),n(9,"table",13)(10,"tr")(11,"th"),o(12,"Event"),t(),c(13,"th"),t(),y(14,hn,9,4,"tr",null,k),t()()()),r&2){let e=l(2);a(4),S("formGroup",e.findForm),a(10),w(e.shows)}}function vn(r,i){if(r&1&&(n(0,"div")(1,"div",8)(2,"div",9)(3,"table",10)(4,"tr")(
35,"th"),o(6,"Purchase Date: "),t(),n(7,"td"),o(8),T(9,"date"),t()(),n(10,"tr")(11,"th"),o(12,"Passes Purchased: "),t(),n(13,"td"),o(14),t()(),n(15,"tr")(16,"th"),o(17,"Passes Used: "),t(),n(18,"td"),o(19),t()(),n(20,"tr")(21,"th"),o(22,"Passes Available: "),t(),n(23,"td"),o(24),t()()()()(),m(25,pn,2,1,"div",11),m(26,_n,13,0,"div",1),m(27,Cn,16,1,"div",8),t()),r&2){let e=l();a(8),h(H(9,7,e.order.orderDate,"M/d/yyyy")),a(6),h(e.tourPassAddOn.quantity),a(5),h(e.tourPassAddOn.passesUsed),a(5),h(e.tourPassAddOn.passesAvailable),a(),p(e.message?25:-1),a(),p(e.showUsers&&e.showUsers.length>0?26:-1),a(),p(e.findForm&&e.tourPassAddOn.passesAvailable>0?27:-1)}}function xn(r,i){if(r&1){let e=g();n(0,"div",7)(1,"div",25)(2,"h4",26),o(3,"Redeem Tour Pass"),t(),n(4,"button",27),o(5,"\xD7"),t()(),n(6,"div",28)(7,"h3",12),o(8),t(),n(9,"h4",29),o(10),t(),n(11,"form",30,0),C("ngSubmit",function(){v(e);let s=Ee(12),u=l();return x(u.assignTicket(s.value))}),n(13,"div",20)(14,"label",31),o(15,"First Name"),t(),n(16,"div",32),c(17,"input",33),t()(),n(18,"div",20)(19,"label",34),o(20,"Last Name"),t(),n(21,"div",32),c(22,"input",35),t()(),n(23,"div",20)(24,"label",36),o(25,"Email"),t(),n(26,"div",32),c(27,"input",37),t()(),n(28,"p"),o(29," We will send an event ticket email to the attendee. "),t(),n(30,"div",20)(31,"div",38)(32,"button",39),o(33,"Assign Ticket"),t()()()()(),n(34,"div",40)(35,"button",41),o(36,"Cancel"),t()()()}if(r&2){let e=Ee(12),d=l();a(8),h(d.selectedShow.name),a(2),V("",d.selectedShow.location.metroArea," - ",d.selectedShow.dates),a(22),S("disabled",!e.valid)}}var rt=class r{constructor(i,e,d){this.orderState=i;this.orderUpdateService=e;this.showService=d}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.item=this.order.getOrderItem(ee.TourPass),this.order.tourPassAddOns.length>0&&(this.tourPassAddOn=this.order.tourPassAddOns[0],this.showService.assignShowsToShowUsers(this.tourPassAddOn.showUsers).subscribe(e=>{this.showUsers=e})),this.tourPassAddOn&&this.tourPassAddOn.passesAvailable>0&&(this.initializeForm(),this.fetchTourEvents())})}initializeForm(){this.findForm=new Ve({findText:new Ne("")}),this.findForm.valueChanges.pipe(Et(500)).subscribe(i=>{this.filterEvents(i.findText)})}fetchTourEvents(){this.showService.getFutureTourEvents().subscribe(i=>{let e=A(i,{online:!1});this.allShows=e,this.shows=e})}filterEvents(i){let e=i?Lt(i).toLowerCase():"";if(e==""){this.shows=this.allShows;return}this.shows=A(this.allShows,d=>Ce(d.name.toLowerCase(),e)||Ce(d.location.metroArea.toLowerCase(),e))}selectShow(i){this.selectedShow=i,this.message=null}assignTicket(i){if(!confirm("Are you sure you want to assign this ticket?"))return!1;i.showId=this.selectedShow.id,this.orderUpdateService.assignTourPass(this.order,i).subscribe(e=>{this.orderUpdateService.fetchOrderData(this.order.orderId).subscribe(d=>{this.message="Ticket assignment complete.",this.selectedShow=null,W()})})}cancelTicket(i){confirm("Are you sure you want to cancel this ticket?")&&this.orderUpdateService.cancelTourPass(this.order,i).subscribe(e=>{this.showUsers=null,this.orderUpdateService.fetchOrderData(this.order.orderId).subscribe(d=>{this.message="Ticket canceled."})})}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(X))}}static{this.\u0275cmp=b({type:r,selectors:[["app-redeem-tour-pass"]],standalone:!1,decls:15,vars:3,consts:[["f","ngForm"],[1,"row","mb-4"],[1,"col-12","col-sm-8"],["href","https://nofluffjuststuff.com/home/tour"],[1,"alert","alert-danger"],["id","modal","tabindex","-1","role","dialog",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"row"],[1,"col-12","col-sm-6"],[1,"table","mb-4"],[1,"alert","alert-info"],[1,"mb10"],[1,"table"],["target","_blank",1,"btn","btn-primary",3,"href"],[1,"fas","fa-ticket-alt"],[1,"btn","btn-secondary"],[1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],["role","form",1,"form-inline","mb-3",3,"formGroup"],[1,"form-group"],["for","findText",1,"sr-only"],["type","text","formControlName","findText","id","findText","placeholder","Find Event",1,"form-control"],["target","new",3,"href"],["data-toggle","modal","data-target","#modal",1,"btn","btn-primary",3,"click"],[1,"modal-header"],["id","modal-title",1,"modal-title"],["type","button","data-dismiss","modal","aria-hidden","true",1,"close"],[1,"modal-body"],[1,"mb20"],["role","form",1,"form-horizontal",3,"ngSubmit"],["for","firstName",1,"col-sm-4","control-label"],[1,"col-sm-6"],["type","text","id","firstName","name","firstName","ngModel","","placeholder","First Name","required","",1,"form-control"],["for","lastName",1,"col-sm-4","control-label"],["type","text","id","lastName","name","lastName","ngModel","","placeholder","Last Name","required","",1,"form-control"],["for","email",1,"col-sm-4","control-label"],["type","email","id","email","name","email","ngModel","","placeholder","Email","required","",1,"form-control"],[1,"col-sm-6","offset-sm-4"],["type","submit",1,"ticket-button",3,"disabled"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Redeem NFJS Tour Pass"),t(),n(2,"div",1)(3,"div",2)(4,"p"),o(5," Tour Passes are valid for "),n(6,"a",3),o(7,"events listed here"),t(),o(8,". Passes should be used within 2 years of purchase. Events more than 6-12 months out may not yet be in our system and are not yet available for ticket assignment. Available events will be listed below. "),t()()(),m(9,mn,2,0,"div",4),m(10,vn,28,10,"div"),n(11,"div",5)(12,"div",6),m(13,xn,37,4,"div",7),t()(),c(14,"app-update-links")),e&2&&(a(9),p(d.item==null?9:-1),a(),p(d.tourPassAddOn?10:-1),a(3),p(d.selectedShow?13:-1))},dependencies:[le,ne,L,re,Se,K,ge,ce,_e,R,J],styles:["table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin-right:10px}"]})}};function gn(r,i){r&1&&(n(0,"div")(1,"p"),o(2," The original event has past. When canceling transfers, the ticket will become an unassinged credit. "),t()())}function Sn(r,i){r&1&&(n(0,"div")(1,"p"),o(2,' The original event is not yet past. When canceled transfers will become unassigned tickets. Select "Change Names on Tickets" to re-assign the ticket. '),t()())}function Tn(r,i){if(r&1){let e=g();n(0,"div")(1,"input",10),$("ngModelChange",function(s){v(e);let u=l().$implicit;return q(u.selected,s)||(u.selected=s),x(s)}),t()()}if(r&2){let e=l().$implicit;a(),B("ngModel",e.selected)}}function bn(r,i){if(r&1&&(n(0,"div")(1,"h4"),o(2),t(),n(3,"h4"),o(4),t(),n(5,"h5"),o(6),t()()),r&2){let e=l().$implicit;a(2),h(e.showUser.name),a(2),h(e.show.name),a(2),V("",e.show.location.metro," - ",e.show.dates)}}function kn(r,i){if(r&1&&(n(0,"div")(1,"h4"),o(2),t(),n(3,"h4"),o(4),t(),n(5,"h5"),o(6),t()()),r&2){let e=l().$implicit;a(2),h(e.trainingUser.name),a(2),h(e.training.name),a(2),V("",e.training.location.metro," - ",e.training.dates)}}function yn(r,i){r&1&&(n(0,"div")(1,"h4"),o(2,"Un-Assigned Credit"),t()())}function wn(r,i){r&1&&(n(0,"span",9),o(1," Transfers can not be canceled after the event. "),t())}function En(r,i){if(r&1&&(n(0,"tr")(1,"td",8),m(2,Tn,2,1,"div"),t(),n(3,"td"),m(4,bn,7,4,"div"),m(5,kn,7,4,"div"),m(6,yn,3,0,"div"),m(7,wn,2,0,"span",9),t()()),r&2){let e=i.$implicit,d=l(2);a(2),p(d.canCancel(e)?2:-1),a(2),p(e.showUser?4:-1),a(),p(e.trainingUser?5:-1),a(),p(e.showUser==null&&e.trainingUser==null?6:-1),a(),p(d.canCancel(e)==!1?7:-1)}}function On(r,i){if(r&1){let e=g();n(0,"div",1)(1,"div",2)(2,"div",3),m(3,gn,3,0,"div"),m(4,Sn,3,0,"div"),n(5,"table",4)(6,"thead")(7,"tr")(8,"th",5),o(9,"Select Transfers to Cancel"),t()()(),n(10,"tbody"),y(11,En,8,5,"tr",null,k),t()(),n(13,"button",6),C("click",function(){v(e);let s=l();
3return x(s.cancelTransfer())}),o(14,"Cancel Transfer"),t()(),n(15,"div",7),c(16,"app-order-info"),t()()()}if(r&2){let e=l();a(3),p(e.show.isPast?3:-1),a(),p(e.show.isPast==!1?4:-1),a(7),w(e.transferItems)}}var ot=class r{constructor(i,e,d,s){this.orderState=i;this.orderUpdateService=e;this.authService=d;this.router=s}ngOnInit(){this.authService.user.subscribe(i=>this.user=i),this.orderState.subscribe(i=>{this.show=i.show,this.order=i.order,this.orderUpdateService.getTransfers(this.order).subscribe(e=>{this.transferItems=e})})}canCancel(i){return this.user&&Ce(this.user.roles,"ROLE_SUADMIN")||i.show==null||i.show.isPast==!1?!0:!(i.show.isPast==!0||this.show.isPast)}selectedTransfers(){return A(this.transferItems,{selected:!0})}cancelTransfer(){let i=this.selectedTransfers();if(i.length==0){alert("Selection required");return}if(!confirm("Are you sure you want to cancel the transer?"))return;let e=z(i,d=>d.transfer.id);this.orderUpdateService.transferTicketCancel(this.order,e).subscribe(d=>{let s=`/n/ticket/confirmation?id=${this.order.orderId}`;this.goToUrl(s)},d=>{this.error=P(d)})}goToUrl(i){document.location.href=i}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(qe),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-cancel-transfer"]],standalone:!1,decls:5,vars:3,consts:[[3,"error","message"],[1,"mb-5"],[1,"row"],[1,"col-12","col-sm-8"],[1,"table","table-striped","table-hover"],["colspan","2"],[1,"ticket-button",3,"click"],[1,"col-12","col-sm-4"],["colspan","w20"],[1,"cant-cancel"],["type","checkbox",3,"ngModelChange","ngModel"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Cancel Transfer"),t(),c(2,"app-info-message",0),m(3,On,17,2,"div",1),c(4,"app-update-links")),e&2&&(a(2),S("error",d.error)("message",d.message),a(),p(d.show?3:-1))},dependencies:[xe,L,K,D,R,oe],styles:["span.cant-cancel[_ngcontent-%COMP%]{font-size:12px}table[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:16px}table[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:14px}"]})}};function In(r,i){if(r&1){let e=g();n(0,"button",7),C("click",function(){v(e);let s=l().$implicit,u=l(3);return x(u.eventSelected(s.show))}),o(1,"Select "),c(2,"span",8),t()}}function An(r,i){r&1&&(n(0,"span")(1,"em"),o(2,"Inelligible"),t()())}function Un(r,i){if(r&1&&(n(0,"tr")(1,"td",5),o(2),n(3,"h4"),o(4),t()(),n(5,"td"),m(6,In,3,0,"button",6),m(7,An,3,0,"span"),t()()),r&2){let e=i.$implicit,d=l(3);a(2),_(" ",e.show==null?null:e.show.name," "),a(2),V("",e.show==null||e.show.location==null?null:e.show.location.metro," - ",e.show==null?null:e.show.dates),a(2),p(d.canTransfer(e)?6:-1),a(),p(d.canTransfer(e)==!1?7:-1)}}function Pn(r,i){if(r&1&&(n(0,"div")(1,"table",3)(2,"thead")(3,"tr")(4,"th",4),o(5,"Select an Event"),t()()(),n(6,"tbody"),y(7,Un,8,5,"tr",null,k),t()()()),r&2){let e=l(2);a(7),w(e.futureEvents)}}function Mn(r,i){if(r&1){let e=g();n(0,"div",2)(1,"h4"),o(2,"Assign Ticket(s) To:"),t(),n(3,"div",9),o(4),c(5,"br"),o(6),t(),n(7,"button",10),C("click",function(){v(e);let s=l(2);return x(s.confirmAssignment())}),o(8,"Confirm Assignment"),t()()}if(r&2){let e=l(2);a(4),_(" ",e.targetShow.name," "),a(2),V(" ",e.targetShow.location.metro," - ",e.targetShow.dates," ")}}function Fn(r,i){if(r&1&&(n(0,"div",0),c(1,"app-info-message",1),m(2,Pn,9,0,"div"),m(3,Mn,9,3,"div",2),t()),r&2){let e=l();a(),S("error",e.error),a(),p(e.targetShow==null?2:-1),a(),p(e.targetShow?3:-1)}}var at=class r{constructor(i,e){this.showService=i;this.orderUpdateService=e;this.update=new ve}ngOnChanges(i){this.selectedAttendees!=null&&this.showService.getFutureEventRegistrationInfo().subscribe(e=>{this.futureEvents=A(e,d=>d.show.id!=this.show.id)})}confirmAssignment(){this.orderUpdateService.assignTransfer(this.order,this.selectedAttendees,this.targetShow).subscribe(i=>{this.update.emit("Assign transfer complete")},i=>{console.log("error..."),console.log(i),this.error=P(i)})}canTransfer(i){let e=i.show;if(this.show.appId==e.appId||this.show.appId==14&&e.appId==2)return!0;let d=i.options;return!!(this.options&&this.options.regularPrice>=d.regularPrice)}eventSelected(i){this.targetShow=i,window&&window.scrollTo(0,0)}static{this.\u0275fac=function(e){return new(e||r)(f(X),f(O))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-transfer-show"]],inputs:{order:"order",selectedAttendees:"selectedAttendees",show:"show",options:"options"},outputs:{update:"update"},standalone:!1,features:[Pe],decls:1,vars:1,consts:[[1,"mb-4"],[3,"error"],[1,"confirm"],[1,"table","table-striped","table-hover","events"],["colspan","2"],[1,"event"],[1,"ticket-button","select-event"],[1,"ticket-button","select-event",3,"click"],[1,"fas","fa-arrow-right"],[1,"mb-4","targetShow"],[1,"ticket-button",3,"click"]],template:function(e,d){e&1&&m(0,Fn,4,3,"div",0),e&2&&p(d.selectedAttendees!=null?0:-1)},dependencies:[D],encapsulation:2})}};function Vn(r,i){if(r&1){let e=g();n(0,"button",7),C("click",function(){v(e);let s=l().$implicit,u=l(4);return x(u.eventSelected(s))}),o(1,"Select "),c(2,"span",8),t()}}function Nn(r,i){r&1&&(n(0,"span")(1,"em"),o(2,"Inelligible"),t()())}function Dn(r,i){if(r&1&&(n(0,"tr")(1,"td",5),o(2),t(),n(3,"td"),m(4,Vn,3,0,"button",6),m(5,Nn,3,0,"span"),t()()),r&2){let e=i.$implicit,d=l(4);a(2),_(" ",e.name," "),a(2),p(d.canTransfer(e)?4:-1),a(),p(d.canTransfer(e)==!1?5:-1)}}function jn(r,i){r&1&&c(0,"tr")}function Wn(r,i){if(r&1&&(n(0,"table",3)(1,"thead")(2,"tr")(3,"th",4),o(4,"Select an Event"),t()()(),n(5,"tbody"),y(6,Dn,6,3,"tr",null,k),m(8,jn,1,0,"tr"),t()()),r&2){let e=l(3);a(6),w(e.futureEvents),a(2),p(e.futureEvents.length==0?8:-1)}}function Bn(r,i){if(r&1&&(n(0,"div"),m(1,Wn,9,1,"table",3),t()),r&2){let e=l(2);a(),p(e.futureEvents?1:-1)}}
3function qn(r,i){if(r&1){let e=g();n(0,"div",2)(1,"h4"),o(2,"Assign Ticket(s) To:"),t(),n(3,"div",9),o(4),c(5,"br"),o(6),t(),n(7,"button",10),C("click",function(){v(e);let s=l(2);return x(s.confirmAssignment())}),o(8,"Confirm Assignment"),t()()}if(r&2){let e=l(2);a(4),_(" ",e.targetEvent.name," "),a(2),V(" ",e.targetEvent.location.metro," - ",e.targetEvent.dates," ")}}function $n(r,i){if(r&1&&(n(0,"div",0),c(1,"app-info-message",1),m(2,Bn,2,1,"div"),m(3,qn,9,3,"div",2),t()),r&2){let e=l();a(),S("error",e.error),a(),p(e.targetEvent==null?2:-1),a(),p(e.targetEvent?3:-1)}}var dt=class r{constructor(i,e){this.trainingService=i;this.orderUpdateService=e;this.update=new ve}ngOnChanges(i){this.order!=null&&this.trainingService.upcomingInPersonTraining().subscribe(e=>{this.futureEvents=A(e,d=>d.id!=this.trainingEvent.id)})}canTransfer(i){return this.trainingEvent.id!=i.id}eventSelected(i){this.targetEvent=i}confirmAssignment(){this.orderUpdateService.assignTransfer(this.order,this.selectedAttendees,this.targetEvent).subscribe(i=>{this.update.emit("Assign transfer complete")},i=>{console.log("error..."),console.log(i),this.error=P(i)})}static{this.\u0275fac=function(e){return new(e||r)(f(he),f(O))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-transfer-training"]],inputs:{trainingEvent:"trainingEvent",order:"order",selectedAttendees:"selectedAttendees"},outputs:{update:"update"},standalone:!1,features:[Pe],decls:1,vars:1,consts:[[1,"mb-4"],[3,"error"],[1,"confirm"],[1,"table","table-striped","table-hover","events"],["colspan","2"],[1,"event"],[1,"ticket-button","select-event"],[1,"ticket-button","select-event",3,"click"],[1,"fas","fa-arrow-right"],[1,"mb-4","targetEvent"],[1,"ticket-button",3,"click"]],template:function(e,d){e&1&&m(0,$n,4,3,"div",0),e&2&&p(d.selectedAttendees!=null?0:-1)},dependencies:[D],encapsulation:2})}};var zn=()=>["../","cancel_transfer"];function Gn(r,i){r&1&&c(0,"div",0)}function Jn(r,i){if(r&1){let e=g();n(0,"div",6)(1,"h3"),o(2,"Enter Name and Email for the Transfer Ticket Attendees"),t(),n(3,"app-attendee-update",8),C("update",function(s){v(e);let u=l(2);return x(u.updateAttendee(s))}),t(),n(4,"button",9),C("click",function(){v(e);let s=l(2);return x(s.namesEntered())}),o(5,"Continue "),c(6,"span",10),t()()}if(r&2){let e=l(2);a(3),S("attendeesSub",e.unAssignedAttendees),a(),S("disabled",e.attendees.length==0)}}function Yn(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t()()),r&2){let e=i.$implicit;a(2),h(e.description())}}function Hn(r,i){if(r&1&&(n(0,"div",6)(1,"table",11)(2,"tr")(3,"th",12),o(4," Tickets to be assigned "),t()(),y(5,Yn,3,1,"tr",null,k),t()()),r&2){let e=l(2);a(5),w(e.selectedAttendees)}}function Qn(r,i){if(r&1){let e=g();n(0,"div")(1,"app-assign-transfer-show",13),C("update",function(s){v(e);let u=l(2);return x(u.handleUpdate(s))}),t()()}if(r&2){let e=l(2);a(),S("show",e.show)("options",e.options)("order",e.showOrder)("selectedAttendees",e.selectedAttendees)}}function Kn(r,i){if(r&1){let e=g();n(0,"div")(1,"app-assign-transfer-training",14),C("update",function(s){v(e);let u=l(2);return x(u.handleUpdate(s))}),t()()}if(r&2){let e=l(2);a(),S("trainingEvent",e.trainingEvent)("order",e.order)("selectedAttendees",e.selectedAttendees)}}function Xn(r,i){if(r&1&&(n(0,"div")(1,"div",1)(2,"div",2)(3,"p",3),o(4," At this time we can only transfer to "),n(5,"em"),o(6,"events of equal value"),t(),o(7," at no charge. If you want to change an existing transfer, the "),n(8,"a",4),o(9,"transfer must be canceled first"),t(),o(10,". "),t(),c(11,"app-info-message",5),m(12,Jn,7,2,"div",6),m(13,Hn,7,0,"div",6),m(14,Qn,2,4,"div"),m(15,Kn,2,3,"div"),t(),n(16,"div",7),c(17,"app-order-info"),t()()()),r&2){let e=l();a(8),S("routerLink",Mt(7,zn)),a(3),S("error",e.error)("message",e.message),a(),p(e.selectedAttendees==null&&e.unAssignedAttendees!=null?12:-1),a(),p(e.selectedAttendees!=null?13:-1),a(),p(e.show!=null&&(e.selectedAttendees==null?null:e.selectedAttendees.length)>0?14:-1),a(),p(e.trainingEvent!=null&&(e.selectedAttendees==null?null:e.selectedAttendees.length)>0?15:-1)}}
3var st=class r{constructor(i,e,d,s,u){this.orderState=i;this.orderUpdateService=e;this.router=d;this.showService=s;this.trainingService=u;this.attendees=[]}ngOnInit(){console.log("ngOnInit"),this.orderState.subscribe(i=>{let e=i.order;e.orderType==Oe.Show?(this.show=i.show,this.options=i.options,this.showOrder=e):e.orderType==Oe.Training&&(this.trainingEvent=i.show),this.order=e,this.unAssignedTransfers=A(this.order.transferTickets,{newTicket:null});let d=z(Be(0,this.unAssignedTransfers.length),()=>new Wt);this.unAssignedAttendees=new yt(1),this.unAssignedAttendees.next(d)})}findSelectedTransfers(){return A(this.order.transferTickets,{selected:!0})}updateAttendee(i){this.attendees=A(this.attendees,e=>e.id!==i.id),this.attendees.push(i)}namesEntered(){let i=this;setTimeout(()=>{if(!this.areAttendeesValid(this.attendees)){i.error="Name and email are required for each attendee";return}this.selectedAttendees=this.attendees},500)}areAttendeesValid(i){return i.length==0||A(i,d=>We(d.firstName)==!1||We(d.lastName)==!1||We(d.email)==!1).length>0?!1:(this.error=null,!0)}goToUrl(i){document.location.href=i}handleUpdate(i){let e=`/n/ticket/confirmation?id=${this.order.orderId}`;this.goToUrl(e)}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(M),f(X),f(he))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-transfer"]],standalone:!1,decls:5,vars:2,consts:[[1,"spinner"],[1,"row"],[1,"col-12","col-sm-8"],[1,"mb40"],[3,"routerLink"],[3,"error","message"],[1,"mb-4"],[1,"col-12","col-sm-4"],[3,"update","attendeesSub"],[1,"ticket-button","continue",3,"click","disabled"],[1,"fas","fa-arrow-right"],[1,"table","table-striped"],["colspan","3"],[3,"update","show","options","order","selectedAttendees"],[3,"update","trainingEvent","order","selectedAttendees"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Assign Transfered Tickets"),t(),m(2,Gn,1,0,"div",0),m(3,Xn,18,8,"div"),c(4,"app-update-links")),e&2&&(a(2),p(d.order==null?2:-1),a(),p(d.order?3:-1))},dependencies:[D,ke,Qt,R,oe,at,dt],styles:[".select-event[_ngcontent-%COMP%]{font-size:14px;padding:4px 10px}table.events[_ngcontent-%COMP%]   td.event[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-size:13px;margin-left:20px}div.confirm[_ngcontent-%COMP%]   div.targetShow[_ngcontent-%COMP%]{margin-left:20px}"]})}};function Zn(r,i){if(r&1&&(n(0,"div",1)(1,"div",2)(2,"p"),o(3),T(4,"date"),t(),n(5,"div",3),o(6," The refundable period for this event has past. "),t()()()),r&2){let e=l(2);a(3),_(" Tickets are 50% refundable until 6-weeks before the event (",H(4,1,e.show.refundCutoff,"MMMM d, yyyy"),"). ")}}function er(r,i){if(r&1){let e=g();n(0,"tr")(1,"td",10)(2,"input",11),$("ngModelChange",function(s){let u=v(e).$implicit;return q(u.selected,s)||(u.selected=s),x(s)}),t()(),n(3,"td"),o(4),t(),n(5,"td")(6,"span",12),o(7),T(8,"currency"),t()(),n(9,"td"),o(10),T(11,"currency"),t()()}if(r&2){let e=i.$implicit,d=l(4);a(2),B("ngModel",e.selected),a(2),_(" ",e.description()," "),a(3),h(I(8,4,d.order.unitPrice,"USD","symbol","1.0")),a(3),_(" ",I(11,9,d.order.unitPrice*.5,"USD","symbol","1.0")," ")}}function tr(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2,"Total"),t(),c(3,"td")(4,"td"),n(5,"td"),o(6),T(7,"currency"),t()()),r&2){let e=l(4);a(6),h(I(7,1,e.selectedTotal(),"USD","symbol","1.2"))}}function ir(r,i){if(r&1){let e=g();n(0,"div")(1,"h3"),o(2,"Select ticket(s) to refund"),t(),n(3,"table",6)(4,"thead")(5,"tr")(6,"th")(7,"div",7),C("click",function(){v(e);let s=l(3);return x(s.selectAll())}),o(8,"All"),t()(),c(9,"th"),n(10,"th"),o(11,"Price Paid"),t(),n(12,"th"),o(13,"Refund Amount"),t()()(),n(14,"tbody"),y(15,er,12,14,"tr",null,k),m(17,tr,8,6,"tr"),t()(),n(18,"button",8),C("click",function(){v(e);let s=l(3);return x(s.attendeesSelected())}),o(19,"Continue "),c(20,"span",9),t()()}if(r&2){let e=l(3);a(15),w(e.order.attendees),a(2),p(e.selectedTotal()!=null?17:-1),a(),S("disabled",e.findSelectedAttendees().length==0)}}function nr(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td")(4,"span",12),o(5),T(6,"currency"),t()(),n(7,"td"),o(8),T(9,"currency"),t()()),r&2){let e=i.$implicit,d=l(4);
3a(2),_(" ",e.description()," "),a(3),h(I(6,3,d.order.unitPrice,"USD","symbol","1.0")),a(3),_(" ",I(9,8,d.order.unitPrice*.5,"USD","symbol","1.0")," ")}}function rr(r,i){if(r&1){let e=g();n(0,"div",0)(1,"h3"),o(2,"Confirm Refund"),t(),n(3,"table",6)(4,"thead"),c(5,"tr"),n(6,"tr"),c(7,"th"),n(8,"th"),o(9,"Price Paid"),t(),n(10,"th"),o(11,"Refund Amount"),t()()(),n(12,"tbody"),y(13,nr,10,13,"tr",null,k),n(15,"tr")(16,"th",13),o(17,"Refund Total"),t(),n(18,"td"),o(19),T(20,"currency"),t()()()(),n(21,"p"),o(22," Please note that tickets are fully transferable to other people and future events. "),t(),n(23,"button",14),C("click",function(){v(e);let s=l(3);return x(s.doRefund())}),o(24,"Process Refund Now"),t()()}if(r&2){let e=l(3);a(13),w(e.selectedAttendees),a(6),h(I(20,1,e.refundTotal(),"USD","symbol","1.2"))}}function or(r,i){if(r&1&&(n(0,"div",3)(1,"button",15),o(2,"\xD7"),t(),n(3,"strong"),o(4,"Error"),t(),o(5),t()),r&2){let e=l(3);a(5),_(" ",e.error," ")}}function ar(r,i){if(r&1&&(n(0,"div",1)(1,"div",2)(2,"p",4),o(3),T(4,"date"),t(),m(5,ir,21,2,"div"),m(6,rr,25,6,"div",0),m(7,or,6,1,"div",3),t(),n(8,"div",5),c(9,"app-order-info"),t()()),r&2){let e=l(2);a(3),_(" Tickets are 50% refundable until 6-weeks before the event (",H(4,4,e.show.refundCutoff,"MMMM d, yyyy"),"). After the refund cut-off, tickets may be transfered to another person or used for a future event. "),a(2),p(e.selectedAttendees==null?5:-1),a(),p(e.selectedAttendees!=null?6:-1),a(),p(e.error?7:-1)}}function dr(r,i){if(r&1&&(n(0,"div",0),m(1,Zn,7,4,"div",1),m(2,ar,10,7,"div",1),t()),r&2){let e=l();a(),p(e.canRefund()==!1?1:-1),a(),p(e.canRefund()?2:-1)}}var lt=class r{constructor(i,e,d){this.orderState=i;this.orderUpdateService=e;this.router=d}ngOnInit(){this.orderState.subscribe(i=>{this.show=i.show,this.order=i.order,this.order.attendees.length==1&&(this.selectedAttendees=[this.order.attendees[0]])})}selectAll(){Nt(this.order.attendees,i=>i.selected=!0)}findSelectedAttendees(){return A(this.order.attendees,i=>i.selected==!0)}attendeesSelected(){this.selectedAttendees=this.findSelectedAttendees()}refundTotal(){return this.selectedAttendees.length*this.order.unitPrice*.5}selectedTotal(){let i=this.findSelectedAttendees().length;return i==0?null:i*this.order.unitPrice*.5}doRefund(){this.orderUpdateService.processRefund(this.order,this.selectedAttendees).subscribe(i=>{let e=`/n/ticket/confirmation?id=${this.order.orderId}`;this.goToUrl(e)},i=>{this.error=P(i,"Update failed")})}goToUrl(i){document.location.href=i}canRefund(){return this.orderUpdateService.canRefund(this.show)}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-refund"]],standalone:!1,decls:4,vars:1,consts:[[1,"mb-5"],[1,"row"],[1,"col-12","col-sm-8"],[1,"alert","alert-danger"],[1,"mb-4"],[1,"col-12","col-sm-4"],[1,"table","table-striped","table-hover"],[1,"select-all",3,"click"],[1,"ticket-button","continue",3,"click","disabled"],[1,"fas","fa-arrow-right"],[1,"w30"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"full-price"],["colspan","2"],[1,"ticket-button","continue",3,"click"],["type","button","data-dismiss","alert","aria-hidden","true",1,"close"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Cancel Tickets & Refund 50%"),t(),m(2,dr,3,2,"div",0),c(3,"app-update-links")),e&2&&(a(2),p(d.order?2:-1))},dependencies:[xe,L,K,R,oe,Y,J],styles:["span.full-price[_ngcontent-%COMP%]{text-decoration:line-through}div.select-all[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#00f}"]})}};function sr(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"a",3),o(3),t(),c(4,"br"),o(5),t(),n(6,"td")(7,"button",4),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.changeWorkshopSelection(s))}),o(8,"Select"),t()()()}if(r&2){let e=i.$implicit;a(2),S("href",e.displayUrl,G),a(),h(e.title),a(2),_(" ",e.speakerNames)}}function lr(r,i){r&1&&(n(0,"tr")(1,"td",5)(2,"em"),o(3,"No options available"),t()()())}function cr(r,i){if(r&1&&(n(0,"div"),c(1,"app-info-message",0),n(2,"table",1)(3,"tbody")(4,"tr")(5,"th"),o(6,"Name on Ticket: "),t(),n(7,"td"),o(8),t()(),n(9,"tr")(10,"th"),o(11,"Current Workshop: "),t(),n(12,"td"),o(13),t()()()(),n(14,"table",2)(15,"thead")(16,"tr")(17,"th"),o(18,"Available Workshops"),t(),c(19,"th"),t()(),n(20,"tbody"),y(21,sr,9,3,"tr",null,k),m(23,lr,4,0,"tr"),t()()()),r&2){let e=l();a(),S("error",e.error)("message",e.message),a(7),h(e.showUser.name),a(5),h(e.currentOption.title),a(8),w(e.workshopOptions),a(2),p(e.workshopOptions.length==0?23:-1)}}
3var ct=class r{constructor(i,e,d,s,u,se){this.authService=i;this.orderUpdateService=e;this.ticketService=d;this.workshopService=s;this.orderState=u;this.route=se}ngOnInit(){this.authService.user.subscribe(i=>this.user=i),this.orderState.subscribe(i=>this.order=i.order),this.route.params.subscribe(i=>{let e=+i.id;this.fetchData(e)})}fetchData(i){this.workshopService.getWorkshopRegistration(i).subscribe(e=>{this.fetchWorkshopChoices(e)},e=>{this.error=P(e)})}fetchWorkshopChoices(i){we(this.workshopService.workshopAllOptions(i.showId),this.orderUpdateService.getShowUserById(i.showUserId)).subscribe(e=>{let d=e[0];this.showUser=e[1],this.reg=i,this.currentOption=Z(d,{id:i.optionId}),this.workshopOptions=A(d,s=>s.id!=i.optionId&&s.active)})}changeWorkshopSelection(i){confirm("Are you sure you want to change your selection?")&&this.orderUpdateService.changeWorkshopSelection(this.order,this.reg,i).subscribe(e=>{this.orderUpdateService.fetchOrderData(this.order.orderId).subscribe(d=>{this.message="Workshop selection changed",this.redirect()},d=>{this.error=P(d)})},e=>{this.error=P(e)})}redirect(){this.showUser!=null&&(this.showUser.userId==this.user.id?this.goTo("/n/ticket/view?showUserId="+this.showUser.id):this.goTo("/n/ticket/confirmation?id="+this.order.orderId))}goTo(i){document.location.href=i}static{this.\u0275fac=function(e){return new(e||r)(f(qe),f(O),f(te),f($e),f(E),f(be))}}static{this.\u0275cmp=b({type:r,selectors:[["app-change-workshop"]],standalone:!1,decls:3,vars:1,consts:[[3,"error","message"],[1,"current-selection","table","table-hover"],[1,"table","table-striped","table-hover"],[3,"href"],[1,"btn","btn-primary",3,"click"],["colspan","2"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Change Workshop Selection"),t(),m(2,cr,24,5,"div")),e&2&&(a(2),p(d.reg&&d.showUser&&d.workshopOptions&&d.currentOption?2:-1))},dependencies:[D],styles:["h1[_ngcontent-%COMP%]{margin-bottom:30px}table.current-selection[_ngcontent-%COMP%]{max-width:500px}"]})}};function mr(r,i){if(r&1&&(n(0,"div",3)(1,"button",12),o(2,"\xD7"),t(),o(3),t()),r&2){let e=l(2);a(3),_(" ",e.message," ")}}function pr(r,i){if(r&1){let e=g();n(0,"div",1)(1,"div",2),m(2,mr,4,1,"div",3),n(3,"form",4,0),C("ngSubmit",function(){v(e);let s=l();return x(s.updatePo())}),n(5,"div",5)(6,"label",6),o(7,"PO #"),t(),n(8,"div",7)(9,"input",8),$("ngModelChange",function(s){v(e);let u=l();return q(u.order.poNumber,s)||(u.order.poNumber=s),x(s)}),t()()(),n(10,"div",5)(11,"div",9)(12,"button",10),o(13,"Update"),t()()()()(),n(14,"div",11),c(15,"app-order-info"),t()()}if(r&2){let e=l();a(2),p(e.message?2:-1),a(7),B("ngModel",e.order.poNumber)}}var mt=class r{constructor(i,e){this.orderUpdateService=i;this.orderState=e}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order})}updatePo(){this.orderUpdateService.updatePo(this.order).subscribe(i=>{let e=`/n/ticket/confirmation?id=${this.order.id}&tokenId=${this.order.token}`;this.goTo(e)},i=>{this.message=i})}goTo(i){document.location.href=i}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(E))}}static{this.\u0275cmp=b({type:r,selectors:[["app-po-number"]],standalone:!1,decls:4,vars:1,consts:[["f","ngForm"],[1,"row"],[1,"col-12","col-sm-6"],[1,"alert","alert-danger"],["role","form",1,"form-horizontal",3,"ngSubmit"],[1,"form-group"],[1,"col-sm-2","control-label"],[1,"col-sm-10"],["name","poNumber","type","text",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-sm-10","offset-sm-2"],["type","submit",1,"btn","btn-primary"],[1,"col-12","col-sm-4"],["type","button","data-dismiss","alert","aria-hidden","true",1,"close"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Order PO Number"),t(),m(2,pr,16,2,"div",1),c(3,"app-update-links")),e&2&&(a(2),p(d.order?2:-1))},dependencies:[le,ne,L,re,K,ge,R,oe],encapsulation:2})}};function ur(r,i){if(r&1&&(n(0,"div"),o(1),t()),r&2){let e=l().$implicit;a(),_(" ",e.reg==null||e.reg.option==null?null:e.reg.option.title," ")}}function fr(r,i){r&1&&(n(0,"em"),o(1," No workshop "),t())}function _r(r,i){if(r&1){let e=g();n(0,"div")(1,"button",8),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.changeClicked(s))}),c(2,"span",9),o(3," Change"),t(),n(4,"button",8),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.removeClicked(s))}),c(5,"span",10),o(6," Remove"),t()()}}function hr(r,i){if(r&1){let e=g();n(0,"div")(1,"button",8),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.addClicked(s))}),c(2,"span",9),o(3," Add"),t()()}}function Cr(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),m(4,ur,2,1,"div"),m(5,fr,2,0,"em"),t(),n(6,"td"),m(7,_r,7,0,"div"),m(8,hr,4,0,"div"),t()()),r&2){let e=i.$implicit;a(2),h(e.name),a(2),p(e.reg?4:-1),a(),p(e.reg==null?5:-1),a(2),p(e.reg?7:-1),a(),p(e.reg==null?8:-1)}}function vr(r,i){if(r&1&&(n(0,"div",7)(1,"button",11),o(2,"\xD7"),t(),n(3,"strong"),o(4,"Error"),t(),o(5),t()),r&2){let e=l(2);a(5),_(" ",e.errorMessage," ")}}function xr(r,i){if(r&1&&(n(0,"div",0)(1,"div",4)(2,"table",5)(3,"tbody")(4,"tr")(
35,"th"),o(6,"Tickets Purchased: "),t(),n(7,"td"),o(8),t()(),n(9,"tr")(10,"th"),o(11,"Tickets Assigned: "),t(),n(12,"td"),o(13),t()(),n(14,"tr")(15,"th"),o(16,"Tickets Not Assigned: "),t(),n(17,"td"),o(18),t()()()(),n(19,"div")(20,"table",6)(21,"thead")(22,"tr")(23,"th"),o(24,"Attendee"),t(),n(25,"th"),o(26,"Workshop"),t(),c(27,"th"),t()(),n(28,"tbody"),y(29,Cr,9,5,"tr",null,k),t()(),m(31,vr,6,1,"div",7),t()()()),r&2){let e=l();a(8),h(e.ticketsPurchased),a(5),h(e.ticketsAssigned),a(5),h(e.ticketsAvailable),a(11),w(e.attendees),a(2),p(e.errorMessage?31:-1)}}function gr(r,i){if(r&1){let e=g();n(0,"tr")(1,"td"),o(2),t(),n(3,"td")(4,"button",8),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.assignWorkshop(s))}),c(5,"span",9),o(6," Select"),t()()()}if(r&2){let e=i.$implicit;a(2),h(e.title)}}function Sr(r,i){if(r&1&&(n(0,"div",3)(1,"div",12)(2,"h4",13),o(3,"Add Workshop"),t(),n(4,"button",14),o(5,"\xD7"),t()(),n(6,"div",15)(7,"table",6)(8,"thead")(9,"tr")(10,"th"),o(11,"Workshop"),t(),c(12,"th"),t()(),n(13,"tbody"),y(14,gr,7,1,"tr",null,k),t()()(),n(16,"div",16)(17,"button",17),o(18,"Close"),t()()()),r&2){let e=l();a(14),w(e.workshopOptions)}}var pt=class r{constructor(i,e,d,s){this.orderUpdateService=i;this.ticketService=e;this.orderState=d;this.router=s}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.ticketsPurchased=this.order.getWorkshopTicketCount(),this.ticketsAssigned=this.order.getWorkshopRegistrations().length,this.ticketsAvailable=this.ticketsPurchased-this.ticketsAssigned,this.ticketService.fetchWorkshopOptions(i.show).subscribe(e=>{this.workshopOptions=e,this.attendees=this.formatAttendees(this.order,e)})})}fetchOrder(){this.orderUpdateService.fetchOrderData(this.order.id).subscribe(i=>{})}formatAttendees(i,e){let d=i.getWorkshopRegistrations();return z(i.attendees,s=>(s.reg=Z(d,{showUserId:s.id}),s.reg&&(s.reg.option=Z(this.workshopOptions,{id:s.reg.optionId})),s))}changeClicked(i){this.router.navigateByUrl(`/ticket/order-update/${this.order.id}/change_workshop/${i.reg.id}?tokenId=${this.order.token}`)}removeClicked(i){confirm("Are you sure you want to remove the ticket?")&&this.orderUpdateService.unassignWorkshopTicket(this.order,i.reg).subscribe(e=>{this.fetchOrder()})}addClicked(i){this.ticketsAvailable?(this.selectedAttendee=i,St("#addWorkshop")):this.router.navigateByUrl(`/ticket/order-update/${this.order.id}/add_workshop?tokenId=${this.order.token}`)}assignWorkshop(i){this.orderUpdateService.assignWorkshopTicket(this.order,this.selectedAttendee,i).subscribe(e=>{this.selectedAttendee=null,St("#addWorkshop"),this.fetchOrder()},e=>{console.log(e),this.errorMessage="Update failed "})}goTo(i){document.location.href=i}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(te),f(E),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-workshops"]],standalone:!1,decls:7,vars:2,consts:[[1,"row"],["
3id","addWorkshop",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"col-12"],[1,"table","table-striped","table-hover","counts"],[1,"table","table-striped","table-hover"],[1,"alert","alert-danger"],["type","button",1,"wk-button",3,"click"],[1,"fas","fa-plus"],[1,"fas","fa-minus"],["type","button","data-dismiss","alert","aria-hidden","true",1,"close"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-hidden","true",1,"close"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Change Workshop Tickets"),t(),m(2,xr,32,4,"div",0),c(3,"app-update-links"),n(4,"div",1)(5,"div",2),m(6,Sr,19,0,"div",3),t()()),e&2&&(a(2),p(d.order?2:-1),a(4),p(d.selectedAttendee&&d.workshopOptions?6:-1))},dependencies:[R],styles:["button.wk-button[_ngcontent-%COMP%]{background-color:#f4d475;color:#000;padding:3px 10px;border-radius:4px;margin-right:10px;border-width:0;font-size:12px}table.counts[_ngcontent-%COMP%]{max-width:300px}"]})}};function Tr(r,i){if(r&1&&(n(0,"div",1)(1,"button",9),o(2,"\xD7"),t(),o(3),t()),r&2){let e=l(2);a(3),_(" ",e.message," ")}}function br(r,i){if(r&1&&(n(0,"li"),o(1),T(2,"date"),t()),r&2){let e=i.$implicit;a(),h(H(2,1,e.sendDate,"M/d/yyyy"))}}function kr(r,i){if(r&1&&(n(0,"a",11),o(1,"$ Pay"),t()),r&2){let e=l().$implicit;S("href",Fe("/app/ticket/payment-req/pay/",e.id,"/",e.token),G)}}function yr(r,i){if(r&1){let e=g();n(0,"a",15),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.editClicked(s))}),c(1,"span",16),o(2," Edit"),t()}}function wr(r,i){if(r&1){let e=g();n(0,"a",17),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.emailClicked(s))}),c(1,"span",18),o(2," Email"),t()}}function Er(r,i){if(r&1){let e=g();n(0,"button",19),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.cancel(s))}),o(1,"Cancel"),t()}}function Or(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),c(3,"br"),o(4),t(),n(5,"td"),o(6),T(7,"currency"),t(),n(8,"td"),o(9),T(10,"currency"),t(),n(11,"td"),o(12),T(13,"currency"),t(),n(14,"td"),o(15),t(),n(16,"td",10)(17,"ul"),y(18,br,3,4,"li",null,k),t()(),n(20,"td"),m(21,kr,2,3,"a",11),t(),n(22,"td"),m(23,yr,3,0,"a",12),t(),n(24,"td"),m(25,wr,3,0,"a",13),t(),n(26,"td"),m(27,Er,2,0,"button",14),t()()),r&2){let e=i.$implicit,d=l(2);a(2),_("",e.name," "),a(2),_(" ",e.email," "),a(2),h(I(7,10,e.amount,"USD","symbol","1.2")),a(3),h(I(10,15,e.amountPaid,"USD","symbol","1.2")),a(3),h(I(13,20,e.amountDue,"USD","symbol","1.2")),a(3),h(e.statusString),a(3),w(e.emails),a(3),p(d.canCancel(e)?21:-1),a(2),p(d.canCancel(e)?23:-1),a(2),p(d.canCancel(e)?25:-1),a(2),p(d.canCancel(e)?27:-1)}}function Ir(r,i){r&1&&(n(0,"tr")(1,"td",20)(2,"em"),o(3,"No payment requests found... "),t()()())}function Ar(r,i){if(r&1){let e=g();n(0,"div",3)(1,"div",21)(2,"a",15),C("click",function(){v(e);let s=l(2);return x(s.addClicked())}),c(3,"span",22),o(4," Add"),t()()()}}function Ur(r,i){r&1&&(n(0,"span"),o(1,"Edit"),t())}function Pr(r,i){r&1&&(n(0,"span"),o(1,"Add"),t())}function Mr(r,i){if(r&1){let e=g();n(0,"div",7)(1,"form",23,0),C("ngSubmit",function(){v(e);let s=l(2);return x(s.addOrUpdatePaymentRequest())}),n(3,"div",24)(4,"h4",25),m(5,Ur,2,0,"span"),m(6,Pr,2,0,"span"),o(7," Payment Request"),t(),n(8,"button",26),o(9,"\xD7"),t()(),n(10,"div",27)(11,"div",28)(12,"label",29),o(13,"First"),t(),n(14,"div",30)(15,"input",31),$("ngModelChange",function(s){v(e);let u=l(2);return q(u.paymentRequest.firstName,s)||(u.paymentRequest.firstName=s),x(s)}),t()()(),n(16,"div",28)(17,"label",32),o(18,"Last"),t(),n(19,"div",30)(20,"input",33),$("ngModelChange",function(s){v(e);let u=l(2);return q(u.paymentRequest.lastName,s)||(u.paymentRequest.lastName=s),x(s)}),t()()(),n(21,"div",28)(22,"label",34),o(23,"Email"),t(),n(24,"div",30)(25,"input",35),$("ngModelChange",function(s){v(e);let u=l(2);return q(u.paymentRequest.email,s)||(u.paymentRequest.email=s),x(s)}),t()()(),n(26,"div",28)(27,"label",36),o(28,"Amount"),t(),n(29,"div",30)(30,"input",37),$("ngModelChange",function(s){v(e);let u=l(2);return q(u.paymentRequest.amount,s)||(u.paymentRequest.amount=s),x(s)}),t()()()(),n(31,"div",38)(32,"button",39),o(33,"Close"),t(),n(34,"button",40),o(35,"Update"),t()()()()}if(r&2){let e=l(2);
3a(5),p(e.paymentRequest.id!=null?5:-1),a(),p(e.paymentRequest.id==null?6:-1),a(9),B("ngModel",e.paymentRequest.firstName),a(5),B("ngModel",e.paymentRequest.lastName),a(5),B("ngModel",e.paymentRequest.email),a(5),B("ngModel",e.paymentRequest.amount)}}function Fr(r,i){if(r&1){let e=g();n(0,"div",7)(1,"form",41),C("ngSubmit",function(){v(e);let s=l(2);return x(s.sendEmail())}),n(2,"div",24)(3,"h4",25),o(4,"Send Payment Request Email"),t(),n(5,"button",26),o(6,"\xD7"),t()(),n(7,"div",27)(8,"div",28)(9,"label",42),o(10,"Email"),t(),n(11,"div",30),c(12,"input",43),t()()(),n(13,"div",38)(14,"button",39),o(15,"Close"),t(),n(16,"button",40),o(17," Send Email"),t()()()()}if(r&2){let e=l(2);a(),S("formGroup",e.emailForm)}}function Rr(r,i){if(r&1&&(n(0,"div")(1,"p"),o(2," Use this feature to send a payment request to another person in your company. "),t(),n(3,"h3"),o(4,"Payment Requests"),t(),m(5,Tr,4,1,"div",1),n(6,"table",2)(7,"thead")(8,"tr")(9,"th"),o(10,"Name"),t(),n(11,"th"),o(12,"Amount"),t(),n(13,"th"),o(14,"Paid"),t(),n(15,"th"),o(16,"Due"),t(),n(17,"th"),o(18,"Status"),t(),n(19,"th"),o(20,"Email Sent"),t(),c(21,"th")(22,"th")(23,"th")(24,"th"),t()(),n(25,"tbody"),y(26,Or,28,25,"tr",null,k),m(28,Ir,4,0,"tr"),t()(),m(29,Ar,5,0,"div",3),n(30,"table",4)(31,"tr")(32,"th"),o(33,"Order #"),t(),n(34,"td"),o(35),t()(),n(36,"tr"),c(37,"th"),n(38,"td"),o(39),c(40,"br"),o(41),c(42,"br"),o(43),c(44,"br"),o(45),c(46,"br"),o(47),c(48,"br"),o(49),t()(),n(50,"tr")(51,"th"),o(52,"Tickets"),t(),n(53,"td"),o(54),t()(),n(55,"tr")(56,"th"),o(57,"Total"),t(),n(58,"td"),o(59),T(60,"currency"),t()(),n(61,"tr")(62,"th"),o(63,"Paid"),t(),n(64,"td"),o(65),T(66,"currency"),t()(),n(67,"tr")(68,"th"),o(69,"Due"),t(),n(70,"td"),o(71),T(72,"currency"),t()()(),c(73,"app-update-links"),n(74,"div",5)(75,"div",6),m(76,Mr,36,6,"div",7),t()(),n(77,"div",8)(78,"div",6),m(79,Fr,18,1,"div",7),t()()()),r&2){let e=l();a(5),p(e.message?5:-1),a(21),w(e.order.paymentRequests),a(2),p(e.order.paymentRequests.length==0?28:-1),a(),p(e.order.amountDue>0?29:-1),a(6),h(e.order.id),a(4),_(" ",e.order.description," "),a(2),_(" ",e.order.billingInfo.name," "),a(2),_(" ",e.order.billingInfo.email," "),a(2),_(" ",e.order.billingInfo.company," "),a(2),_(" ",e.order.billingInfo.address1," "),a(2),Ut(" ",e.order.billingInfo.city,", ",e.order.billingInfo.state," ",e.order.billingInfo.postalCode," "),a(5),h(e.order.ticketCount),a(5),h(I(60,18,e.order.total,"USD","symbol","1.2")),a(6),h(I(66,23,e.order.amountPaid,"USD","symbol","1.2")),a(6),h(I(72,28,e.order.amountDue,"USD","symbol","1.2")),a(5),p(e.paymentRequest?76:-1),a(3),p(e.paymentRequest?79:-1)}}var ut=class r{constructor(i,e){this.orderState=i;this.orderUpdateService=e;this.emailForm=new Ve({email:new Ne("",pe.required)})}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order})}reload(){this.orderUpdateService.fetchOrderData(this.order.id).subscribe(i=>{})}editClicked(i){this.paymentRequest=i}addOrUpdatePaymentRequest(){this.paymentRequest.id!=null?this.updatePaymentRequest():this.addPaymentRequest()}addPaymentRequest(){if(this.paymentRequest.amount>this.order.amountDue){this.message="The payment request should not exceed the amount due",W();return}this.orderUpdateService.addPaymentRequest(this.order,this.paymentRequest).subscribe(i=>{W(),this.message="Update complete",this.reload()})}updatePaymentRequest(){this.orderUpdateService.updatePaymentRequest(this.order,this.paymentRequest).subscribe(i=>{W(),this.message="Update complete",this.reload()})}canCancel(i){return!(i.amountPaid>0)}cancel(i){confirm("Are you sure you want to cancel this payment request?")&&this.orderUpdateService.cancelPaymentRequest(this.order,i.id).subscribe(e=>{this.message="Update complete",this.reload()})}addClicked(){this.paymentRequest={amount:this.order.amountDue}}emailClicked(i){this.paymentRequest=i,this.emailForm.patchValue({email:i.email})}sendEmail(){let i=this.emailForm.value.email;this.orderUpdateService.sendPaymentRequestEmail(this.order,this.paymentRequest,i).subscribe(e=>{this.message="Email message sent",W(),this.reload()})}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O))}}static{this.\u0275cmp=b({type:r,selectors:[["app-payment-request-update"]],standalone:!1,decls:3,vars:1,consts:[["f","ngForm"],[1,"alert","alert-info"],[1,"table","table-striped","table-hover"],[1,"clearfix"],[1,"summary","mb-4"],["id","editRequest",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],["id","sendEmail",1,"modal","fade"],["type","button","data-dismiss","alert","aria-hidden","true",1,"close"],[1,"email"],[1,"btn","btn-secondary",3,"href"],["data-toggle","modal","href","#editRequest",1,"btn","btn-secondary"],["data-toggle","modal","href","#sendEmail",1,"btn","btn-secondary"],["type","button",1,"btn","btn-secondary"],["data-toggle","modal","href","#editRequest",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-edit"],["data-toggle","modal","href","#sendEmail",1,"btn","btn-secondary",3,"click"],[1,"fas","fa-envelope"],["type","button",1,"btn","btn-secondary",3,"click"],["colspan","5"],[1,"float-right"],[1,"fas","fa-plus"],["role","form",1,"form-horizontal",3,"ngSubmit"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-hidden","true",1,"close"],[1,"modal-body"],[1,"form-group"],["for","First Name",1,"col-sm-2","control-label"],[1,"col-sm-10"],["type","text","id","First Name","name","firstName","placeholder","First Name","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","lastName",1,"col-sm-2","control-label"],["type","text","id","lastName","name","lastName","placeholder","LastName","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","email",1,"col-sm-2","control-label"],["type","text","id","email","name","email","placeholder","Email","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","amount",1,"col-sm-2","control-label"],["type","text","id","amount","name","amount","placeholder","Amount","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["type","submit",1,"btn","btn-primary"],[1,"form-horizontal",3,"ngSubmit","formGroup"],["for","toemail",1,"col-sm-2","control-label"],["type","text","id","toemail","formControlName","email","placeholder","Email",1,"form-control"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Manage Payment Requests"),t(),m(2,Rr,80,33,"div")),e&2&&(a(2),p(d.order?2:-1))},dependencies:[le,ne,L,re,Se,K,ge,ce,_e,R,Y,J],styles:["table.summary[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{padding:3px 10px}td.email[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none}td[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:3px}input[required].ng-invalid[_ngcontent-%COMP%]{border-left:5px solid #CC0000}input[required].ng-valid[_ngcontent-%COMP%]{border-left:5px solid green}"]})}};
3var ye=class r{constructor(i){this.http=i}findUser(i){let e=`/n/data/ticket/user/find?email=${encodeURI(i)}`;return this.http.get(e)}addTicket(i,e){let d=`/n/data/promooffer/order/${i}/ticket`;return this.http.post(d,e)}cancelTicket(i,e){let d=`/n/data/promooffer/order/${i}/ticket/${e}`;return this.http.delete(d)}static{this.\u0275fac=function(e){return new(e||r)(It(Rt))}}static{this.\u0275prov=Ot({token:r,factory:r.\u0275fac})}};function Nr(r,i){r&1&&c(0,"div",0)}function Dr(r,i){if(r&1){let e=g();n(0,"div",14)(1,"div",19),c(2,"app-info-message",20),t(),n(3,"div",21)(4,"div",17)(5,"a",22),C("click",function(){v(e);let s=l(2);return x(s.assignTicketClicked())}),c(6,"span",23),o(7," Assign Ticket "),t()()()()}if(r&2){let e=l(2);a(2),S("error",e.error)("message",e.message)}}function jr(r,i){if(r&1&&(n(0,"div",17)(1,"a",24),c(2,"i",25),t(),o(3," \xA0 "),n(4,"a",26),o(5,"All Tickets"),t(),c(6,"br"),t()),r&2){let e=l(2);a(),S("href",me("/n/data/promooffer/order/",e.promoOrder.id,"/tickets.pdf"),G),a(3),S("href",me("/n/data/promooffer/order/",e.promoOrder.id,"/tickets.pdf"),G)}}function Wr(r,i){if(r&1){let e=g();n(0,"button",29),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.cancelTicket(s))}),o(1,"Cancel"),t()}}function Br(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),c(3,"br"),o(4),t(),n(5,"td"),o(6),t(),n(7,"td"),o(8),T(9,"currency"),t(),n(10,"td")(11,"a",26),c(12,"i",27),t()(),n(13,"td"),m(14,Wr,2,0,"button",28),t()()),r&2){let e=i.$implicit;a(2),_(" ",e.name," "),a(2),_(" ",e.email," "),a(2),V(" ",e.showName," - ",e.showDates," "),a(2),_(" ",I(9,8,e.ticketPrice,"USD","symbol","1.0")," "),a(3),S("href",me("/n/ticket/ticket.pdf?id=",e.id),G),a(3),p(e.isPast==!1?14:-1)}}function qr(r,i){r&1&&(n(0,"tr")(1,"td",30)(2,"em"),o(3,"No tickets are assiged."),t()()())}function $r(r,i){if(r&1&&(n(0,"div")(1,"h1"),o(2),t(),n(3,"table",11)(4,"tbody")(5,"tr")(6,"th",12),o(7,"Invoice #"),t(),n(8,"td"),o(9),n(10,"a",13),o(11,"(order confirmation)"),t()()(),n(12,"tr")(13,"th"),o(14,"Order Date"),t(),n(15,"td"),o(16),T(17,"date"),t()(),n(18,"tr")(19,"th"),o(20,"Purchase Amount"),t(),n(21,"td"),o(22),T(23,"currency"),t()(),n(24,"tr")(25,"th"),o(26,"NFJS Tour Ticket Price"),t(),n(27,"td"),o(28),T(29,"currency"),t()(),n(30,"tr")(31,"th"),o(32,"Dest Event Ticket Price"),t(),n(33,"td"),o(34),T(35,"currency"),t()(),n(36,"tr")(37,"th"),o(38,"Amount Used"),t(),n(39,"td"),o(40),T(41,"currency"),t()(),n(42,"tr")(43,"th"),o(44,"Amount Available"),t(),n(45,"td"),o(46),T(47,"currency"),t()()()(),m(48,Dr,8,2,"div",14),n(49,"div",15)(50,"div",16)(51,"h3"),o(52,"Tickets Assigned"),t()(),m(53,jr,7,4,"div",17),t(),n(54,"table",18)(55,"tbody"),y(56,Br,15,13,"tr",null,k),m(58,qr,4,0,"tr"),t()()()),r&2){let e=l();a(2),h(e.promo.name),a(7),_("",e.order.id," "),a(),S("href",me("/n/ticket/confirmation?id=",e.order.id),G),a(6),h(H(17,13,e.order.created,"MMMM d, yyyy")),a(6),h(I(23,16,e.promoOrder.amount,"USD","symbol","1.0")),a(6),_(" ",I(29,21,e.promo.nfjsPrice,"USD","symbol","1.0")," "),a(6),_(" ",I(35,26,e.promo.uberPrice,"USD","symbol","1.0")," "),a(6),_(" ",I(41,31,e.promoOrder.amountUsed,"USD","symbol","1.0")," "),a(6),_(" ",I(47,36,e.promoOrder.amountAvailable,"USD","symbol","1.0")," "),a(2),p(e.promoOrder.amountAvailable>0?48:-1),a(5),p(e.tickets.length>0?53:-1),a(3),w(e.tickets),a(2),p(e.tickets.length==0?58:-1)}}function Lr(r,i){if(r&1){let e=g();n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),o(4),t(),n(5,"td")(6,"button",32),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.selectShow(s))}),o(7,"Select"),t()()()}if(r&2){let e=i.$implicit;a(2),h(e.name),a(2),h(e.dates)}}function zr(r,i){if(r&1&&(n(0,"div")(1,"table",18)(2,"thead")(3,"tr")(4,"th",31),o(5,"Select an Event"),t(),c(6,"th"),t()(),n(7,"tbody"),y(8,Lr,8,2,"tr",null,k),t()()()),r&2){let e=l();a(8),w(e.upcomingShows)}}function Gr(r,i){if(r&1){let e=g();n(0,"div",8)(1,"h3"),o(2),t(),n(3,"form",33)(4,"p"),o(5,"We will email a ticket to the attendee. The attendee's correct email address is required. Do not provide an admin email. "),t(),n(6,"app-user-find-or-create-form",34),C("userInfo",function(s){v(e);let u=l();return x(u.addTicket(s))}),t()()()}if(r&2){let e=l();a(2),V("",e.selectedShow.name," - ",e.selectedShow.dates),a(),S("formGroup",e.ticketForm),a(3),S("title","Create Ticket")}}
3var Jr=[1,2,10,13,19],Yr=[1,10],ft=class r{constructor(i,e,d,s,u,se,fe){this.orderState=i;this.orderUpdateService=e;this.alumniSpecialUpdateService=d;this.showService=s;this.route=u;this.router=se;this.showNameFields=!1;this.ticketForm=fe.group({id:[""],showId:["",pe.required],firstName:["",pe.required],lastName:["",pe.required],email:["",pe.required]})}ngOnInit(){this.orderState.subscribe(i=>{let e=i.order;if(e.offerId==null){console.log("Invalid order id"),this.router.navigateByUrl("/ticket/");return}this.order=e,this.promo=i.promo,this.promoOrder=i.promoOrder,this.tickets=i.tickets,this.fetchShows()})}fetchShows(){this.showService.upcomingForAllApps().subscribe(i=>{this.upcomingShows=A(i,e=>this.includeShow(e))})}includeShow(i){if(i.appId!=1&&this.promo?.uberTicketCount<=0)return!1;let e=this.promo.id<=11?Jr:Yr;return Ce(e,i.appId)}assignTicketClicked(){this.selectedShow=null,this.ticketForm.reset(),this.showNameFields=!1,this.message=null,this.error=null}addTicket(i){i.showId=this.selectedShow.id,this.alumniSpecialUpdateService.addTicket(this.promoOrder.id,i).subscribe(e=>{this.orderUpdateService.fetchOrderData(this.order.id),W(),this.message="Ticket assigned"},e=>{W(),this.error=P(e)})}selectShow(i){this.selectedShow=i,this.ticketForm.patchValue({showId:i.id})}cancelTicket(i){confirm("Are you sure you want to cancel this ticket?")&&this.alumniSpecialUpdateService.cancelTicket(this.promoOrder.id,i.id).subscribe(e=>{this.orderUpdateService.fetchOrderData(this.order.id),W(),this.message="Ticket canceled"},e=>{W(),this.error=P(e)})}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(ye),f(X),f(be),f(M),f(Te))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-tickets"]],standalone:!1,decls:16,vars:4,consts:[[1,"spinner"],["id","assignTicket",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-hidden","true",1,"close"],[1,"modal-body"],[1,"select-attendee"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"table","table-striped","table-hover","w500"],[1,"w250"],["target","new",1,"confirmation",3,"href"],[1,"row","mb-3"],[1,"clearfix"],[1,"float-left"],[1,"float-right"],[1,"table","table-striped","table-hover"],[1,"col-8"],[3,"error","message"],[1,"col-4"],["role","button","data-toggle","modal","href","#assignTicket",1,"btn","btn-primary",3,"click"],[1,"fas","fa-plus"],["target","_blank",1,"pdf",3,"href"],[1,"fas","fa-file-pdf"],["target","_blank",3,"href"],[1,"fas","fa-ticket-alt"],["type","button",1,"btn","btn-secondary"],["type","button",1,"btn","btn-secondary",3,"click"],["colspan","4"],["colspan","2"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form","mb-3",3,"formGroup"],[3,"userInfo","title"]],template:function(e,d){e&1&&(m(0,Nr,1,0,"div",0),m(1,$r,59,41,"div"),n(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"h4",5),o(7,"Assign Ticket"),t(),n(8,"button",6),o(9,"\xD7"),t()(),n(10,"div",7),m(11,zr,10,0,"div"),m(12,Gr,7,4,"div",8),t(),n(13,"div",9)(14,"button",10),o(15,"Close"),t()()()()()),e&2&&(p(d.order==null?0:-1),a(),p(d.order?1:-1),a(10),p(d.selectedShow==null?11:-1),a(),p(d.selectedShow?12:-1))},dependencies:[le,re,ce,D,Zt,Y,J],styles:["a.confirmation[_ngcontent-%COMP%]{font-size:12px}div.select-attendee[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:30px}div.select-attendee[_ngcontent-%COMP%]   div.input-group[_ngcontent-%COMP%]{margin-bottom:20px}.spinner[_ngcontent-%COMP%]{margin:20px auto}label.name[_ngcontent-%COMP%]{margin-left:20px}i.fas[_ngcontent-%COMP%]{font-size:24px}table[_ngcontent-%COMP%]{margin-bottom:40px}"]})}};function Hr(r,i){if(r&1){let e=g();n(0,"a",16),C("click",function(){v(e);let s=l().$implicit,u=l(2);return x(u.selectUser(s))}),c(1,"i",17),t()}}function Qr(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"button",12),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.removeAdmin(s))}),c(3,"i",13),t()(),n(4,"td"),o(5),c(6,"br"),o(7),t(),n(8,"td",14),m(9,Hr,2,0,"a",15),t()()}if(r&2){let e=i.$implicit,d=l(2);a(5),_("",e.name," "),a(2),h(e.email),a(2),p(d.isWorkshopSubscriptionOrder()?9:-1)}}function Kr(r,i){if(r&1&&(n(0,"div",0)(1,"div",5)(2,"div",6)(3,"button",7),c(4,"i",8),t()()(),c(5,"app-info-message",9),n(6,"table",10)(7,"thead")(8,"tr"),c(9,"th",11),n(10,"th"),o(11,"Name"),t(),c(12,"th"),t()(),n(13,"tbody")(14,"tr"),c(15,"td"),n(16,"td"),o(17),c(18,"br"),o(19),t(),c(20,"td"),t(),y(21,Qr,10,3,"tr",null,k),t()()()),r&2){let e=l();a(5),S("error",e.error)("message",e.message),a(12),_("",e.order.user.name," "),a(2),_(" ",e.order.user.email," "),a(2),w(e.order.admins)}}function Xr(r,i){if(r&1&&(n(0,"div",4)(1,"div",18)(2,"h5",19),o(3,"Assign Tickets Link"),t(),n(4,"button",20)(5,"span",21),o(6,"\xD7"),t()()(),n(7,"div",22)(8,"p"),o(9),t(),n(10,"div",23),c(11,"input",24),t()(),n(12,"div",25)(13,"button",26),o(14,"Close"),t()()()),r&2){let e=l();a(9),_(" Send this Link to ",e.adminUser.name," Assign Workshop Tickets "),a(2),S("value",e.link())}}
3var _t=class r{constructor(i,e){this.orderUpdateService=i;this.orderState=e}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order})}fetchData(){this.orderUpdateService.fetchOrderData(this.order.id)}doAddAdmin(i){this.orderUpdateService.addOrderAdmin(this.order.id,i).subscribe(e=>{this.message="Admin added",this.fetchData()},e=>{this.error=P(e)})}removeAdmin(i){confirm("Are you sure you want to remove this admin?")&&this.orderUpdateService.removeOrderAdmin(this.order.id,i.id).subscribe(e=>{this.message="Remove complete",this.fetchData()},e=>{this.error=P(e)})}isWorkshopSubscriptionOrder(){return!!this.order.getOrderItem(ee.VirtualSubscription)}selectUser(i){this.adminUser=i}link(){return`https://nofluffjuststuff.com/app/virtual-workshop/subscription/${this.order.id}/assign?id=${this.order.id}&tokenId=${this.order.token}&userId=${this.adminUser.id}`}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(E))}}static{this.\u0275cmp=b({type:r,selectors:[["app-order-admin-users"]],standalone:!1,decls:10,vars:3,consts:[[1,"order"],[3,"userInfo","title"],["id","assignTicketsLink","tabindex","-1","role","dialog","aria-labelledby","assignTicketsLinkLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
3-lg"],[1,"modal-content"],[1,"clearfix","mb-4"],[1,"float-right"],["data-toggle","modal","data-target","#addOrderAdmin",1,"btn","btn-primary"],[1,"fas","fa-plus"],[3,"error","message"],[1,"table","table-striped","admins"],[1,"w30"],[1,"btn","btn-warning",3,"click"],[1,"fas","fa-trash"],[1,"assign-link"],["data-toggle","modal","data-target","#assignTicketsLink"],["data-toggle","modal","data-target","#assignTicketsLink",3,"click"],[1,"fas","fa-ticket-alt"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"form-group"],["type","text","name","link",1,"form-control",3,"value"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Order Admins"),t(),n(2,"p"),o(3,` Individuals who can assign tickets and make other order modifications.
4`),t(),m(4,Kr,23,4,"div",0),c(5,"app-update-links"),n(6,"app-user-find-or-create",1),C("userInfo",function(u){return d.doAddAdmin(u)}),t(),n(7,"div",2)(8,"div",3),m(9,Xr,15,2,"div",4),t()()),e&2&&(a(4),p(d.order?4:-1),a(2),S("title","Add Order Admin"),a(3),p(d.adminUser?9:-1))},dependencies:[D,ai,R],styles:["div.order[_ngcontent-%COMP%]{max-width:600px}i[_ngcontent-%COMP%]{margin-right:10px}td.assign-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:32px;color:#00f}td.assign-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}};function Zr(r,i){if(r&1){let e=g();n(0,"div")(1,"div",0)(2,"p"),o(3),n(4,"a",1),o(5,"NFJS Virtual Workshop Subscription"),t(),o(6," at a greatly discounted price. "),t(),n(7,"p"),o(8," NFJS Virtual Workshop Series sessions are 1/2-day live online workshops delivered by our world class speakers. This is the first-ever professional-grade NFJS online training series for architects and developers who are serious about staying current. "),t(),n(9,"p"),o(10," A subscription allows you (or any 1-person in your company) to attend any NFJS Virtual Workshop. "),t(),n(11,"p",2)(12,"b"),o(13),T(14,"currency"),t(),o(15,". The regular subscription price is $2,450. "),t(),n(16,"h3",3)(17,"a",4),o(18,"Learn More"),t()(),n(19,"div",5)(20,"h3"),o(21,"How many subscriptions do you need?"),t(),n(22,"div",6)(23,"div",7),c(24,"input",8),t(),n(25,"label",9),o(26,"Subscriptions(s)"),t()()(),n(27,"div",10)(28,"div",11)(29,"button",12),C("click",function(){v(e);let s=l();return x(s.next())}),o(30,"Next "),c(31,"span",13),t()()()()()}if(r&2){let e=l();a(3),_(" ",e.show.name," includes the option to purchase a 1-year "),a(10),_("The bundled price of the subscription is ",I(14,4,e.options.virtualAddOnPrice,"USD","symbol","1.0-2")),a(6),S("formGroup",e.form),a(10),S("disabled",!e.form.valid)}}var ht=class r{constructor(i,e,d,s,u){this.orderUpdateService=i;this.ticketService=e;this.orderState=d;this.router=u;this.form=s.group({subscriptionCount:["",pe.required]})}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.show=i.show,this.options=i.options,this.form.patchValue({subscriptionCount:this.order.ticketCount})})}next(){let i=this.form.value.subscriptionCount;this.orderUpdateService.addVirtualSubscription(this.order,i);let e=`/ticket/order-update/${this.order.orderId}/payment`;this.router.navigateByUrl(e)}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(te),f(E),f(Te),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-add-subscription"]],standalone:!1,decls:3,vars:1,consts:[[1,"about"],["href","https://nofluffjuststuff.com/virtual-workshops/subscribe"],[1,"savings"],[1,"learn-more"],["target","_blank","href","https://nofluffjuststuff.com/virtual-workshops/subscribe"],[1,"alert","alert-info","select",3,"formGroup"],[1,"input-wrapper","clearfix"],[1,"count-wrapper"],["type","number","min","1","formControlName","subscriptionCount","id","subscriptionCount","autocomplete","off",1,"form-control"],["for","subscriptionCount"],[1,"clearfix"],[1,"float-right"],["type","button",1,"ticket-button",3,"click","disabled"],[1,"fas","fa-arrow-right"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Add 1-Year Virtual Workshop Subscription to Order"),t(),m(2,Zr,32,9,"div")),e&2&&(a(2),p(d.order?2:-1))},dependencies:[ne,De,L,re,je,ce,_e,Y],styles:["h1[_ngcontent-%COMP%]{text-align:center;margin-bottom:30px}div.about[_ngcontent-%COMP%]{max-width:800px;margin:0 auto 30px}div.about[_ngcontent-%COMP%]   h3.learn-more[_ngcontent-%COMP%]{text-align:center;margin-bottom:40px}div.about[_ngcontent-%COMP%]   h3.learn-more[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#c00;text-decoration:underline}div.about[_ngcontent-%COMP%]   div.select[_ngcontent-%COMP%]{max-width:350px;margin:0 auto 40px}div.about[_ngcontent-%COMP%]   div.select[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:400;margin-bottom:20px;color:#333}div.about[_ngcontent-%COMP%]   div.select[_ngcontent-%COMP%]   div.input-wrapper[_ngcontent-%COMP%]{display:block;margin:0 auto 20px;max-width:150px}div.about[_ngcontent-%COMP%]   div.select[_ngcontent-%COMP%]   div.count-wrapper[_ngcontent-%COMP%]{display:inline-block;width:70px;margin-right:10px;padding:5px}div.about[_ngcontent-%COMP%]   div.select[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-block;font-weight:400;color:#333}"]})}};function eo(r,i){r&1&&c(0,"div",1)}function to(r,i){if(r&1&&(n(0,"div"),o(1),c(2,"br"),o(3),t()),r&2){let e=l().$implicit;a(),_(" ",e.name," "),a(2),_(" ",e.email," ")}}function io(r,i){r&1&&(n(0,"div"),o(1," Not Assigned "),t())}function no(r,i){if(r&1){let e=g();n(0,"button",10),C("click",function(){v(e);let s=l(2).$implicit,u=l(3);return x(u.removeAssignment(s))}),o(1,"Remove Assignment"),t()}}function ro(r,i){if(r&1&&(n(0,"em"),o(1),T(2,"date"),t()),r&2){let e=l(2).$implicit;a(),_("Booking Completed ",H(2,1,e.bookingComplete,"M/d/yyyy"))}}function oo(r,i){if(r&1&&(n(0,"div"),m(1,no,2,0,"button",9),m(2,ro,3,4,"em"),t()),r&2){let e=l().$implicit;a(),p(e.bookingComplete==null?1:-1),a(),p(e.bookingComplete?2:-1)}}function ao(r,i){if(r&1){let e=g();n(0,"div")(1,"button",11),C("click",function(){v(e);let s=l(2).$implicit,u=l(2);return x(u.assignTravelClick(s))}),o(2,"Assign"),t()()}}function so(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),m(4,to,4,2,"div"),m(5,io,2,0,"div"),t(),n(6,"td"),m(7,oo,3,2,"div"),m(8,ao,3,0,"div"),t()()),r&2){let e=i.$implicit,d=i.$index;a(2),h(d+1),a(2),p(e.id?4:-1),a(),p(e.id==null?5:-1),a(2),p(e.id?7:-1),a(),p(e.id==null?8:-1)}}function lo(r,i){if(r&1&&(n(0,"div",6)(1,"h3"),o(2),t(),n(3,"table",7)(4,"thead")(5,"tr"),c(6,"th",8),n(7,"th"),o(8,"Name & Email"),t(),c(9,"th"),t()(),n(10,"tbody"),y(11,so,9,5,"tr",null,k),t()()()),r&2){let e=i.$implicit,d=l(2);a(2),_("",e.description()," "),a(9),w(d.getRegistrations(e))}}function co(r,i){if(r&1&&(n(0,"div")(1,"p"),o(2," Travel packages can be assigned to anyone assigned a ticket on this order. To change an assignment, first remove the current assigment and then assign the travel package. "),t(),y(3,lo,13,1,"div",6,k),c(5,"app-update-links"),t()),r&2){let e=l();a(3),w(e.order.getTravelOrderItems())}}function mo(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"button",20),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.assignTravelRegistration(s))}),o(3,"Select"),t()(),n(4,"td"),o(5),c(6,"br"),o(7),t()()}if(r&2){let e=i.$implicit;a(5),_("",e.name," "),a(2),_(" ",e.email)}}function po(r,i){if(r&1&&(n(0,"div",5)(1,"div",12)(2,"h5",13),o(3,"Assign Travel"),t(),n(4,"button",14)(5,"span",15),o(6,"\xD7"),t()()(),n(7,"div",16)(8,"table",7)(9,"thead")(10,"tr"),c(11,"th",17),n(12,"th"),o(13,"Name"),t()()(),n(14,"tbody"),y(15,mo,8,2,"tr",null,k),t()()(),n(17,"div",18)(18,"button",19),o(19,"Close"),t()()()),r&2){let e=l();a(15),w(e.availableAttendees())}}
4var Ct=class r{constructor(i,e,d){this.orderUpdateService=i;this.orderState=e;this.router=d}ngOnInit(){this.orderState.subscribe(i=>{this.order=i.order,this.options=i.options})}getRegistrations(i){let e=i.travelRegistrations;for(let d=e.length;d<i.quantity;d++)e.push({});return e}assignTravelClick(i){this.selectItem=i}removeAssignment(i){if(!confirm("Are you sure you want to remove the assignment?"))return!0;this.orderUpdateService.removeTravelRegistration(this.order.id,i.id).subscribe(e=>{this.fetchData(),this.message="Update complete"},e=>{this.error=P(e)})}assignTravelRegistration(i){this.orderUpdateService.assignTravelRegistration(this.order.id,this.selectItem.id,i).subscribe(e=>{this.message="Update complete",this.fetchData(),W()},e=>{W(),this.error=P(e)})}fetchData(){this.orderUpdateService.fetchOrderData(this.order.id)}availableAttendees(){let i=this.order.showId?this.order.attendees:this.order.trainingAttendees;return A(i,e=>this.order.getTravelRegForAttendee(e)==null)}static{this.\u0275fac=function(e){return new(e||r)(f(O),f(E),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-travel"]],standalone:!1,decls:8,vars:5,consts:[[1,"mb-4"],[1,"spinner"],[3,"error","message"],["id","assignTravel","tabindex","-1","role","dialog","aria-labelledby","assignTravel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
4-lg"],[1,"modal-content"],[1,"travel-item","mb-5"],[1,"table","table-striped"],[1,"w20"],[1,"btn","btn-secondary"],[1,"btn","btn-secondary",3,"click"],["data-toggle","modal","data-target","#assignTravel",1,"btn","btn-primary",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"w40"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"btn","btn-primary",3,"click"]],template:function(e,d){e&1&&(n(0,"h1",0),o(1,"Assign Travel Packages"),t(),m(2,eo,1,0,"div",1),c(3,"app-info-message",2),m(4,co,6,0,"div"),n(5,"div",3)(6,"div",4),m(7,po,20,0,"div",5),t()()),e&2&&(a(2),p(d.order==null?2:-1),a(),S("error",d.error)("message",d.message),a(),p(d.order!=null?4:-1),a(3),p(d.selectItem?7:-1))},dependencies:[D,R,J],styles:["div.travel-item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px}p[_ngcontent-%COMP%]{max-width:700px}"]})}};function uo(r,i){r&1&&c(0,"div",0)}function fo(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),c(3,"br"),o(4),t(),n(5,"td")(6,"a",3),o(7," Register "),c(8,"span",4),t()()()),r&2){let e=i.$implicit,d=l(2);a(2),_(" ",e.name," "),a(2),_("",e.dates," "),a(2),S("href",Pt("/app/ticket/event/",e.id,"/redeem-transfer/",d.transferTicket.id,"?token=",d.transferTicket.token),G)}}function _o(r,i){if(r&1&&(n(0,"div",1)(1,"table",2)(2,"thead")(3,"tr")(4,"th"),o(5,"Event"),t(),c(6,"th"),t()(),n(7,"tbody"),y(8,fo,9,6,"tr",null,k),t()()()),r&2){let e=l();a(8),w(e.futureEvents)}}var vt=class r{constructor(i,e,d,s,u){this.orderState=i;this.orderUpdateService=e;this.showService=d;this.route=s;this.router=u}ngOnInit(){let i=+this.route.snapshot.params.id;this.orderState.subscribe(e=>{this.order=e.order,this.transferTicket=Z(this.order.transferTickets,{id:i}),this.fetchData()})}fetchData(){this.showService.getFutureEventRegistrationInfo().subscribe(i=>{this.futureEvents=z(A(i,e=>e.show.id!=this.order.showId),"show")})}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(X),f(be),f(M))}}static{this.\u0275cmp=b({type:r,selectors:[["app-assign-transfer2021"]],standalone:!1,decls:4,vars:2,consts:[[1,"spinner"],[1,"w700"],[1,"table","table-striped"],[1,"ticket-button","select-event",3,"href"],[1,"fas","fa-arrow-right"]],template:function(e,d){e&1&&(n(0,"h1"),o(1,"Assign Transfer Ticket"),t(),m(2,uo,1,0,"div",0),m(3,_o,10,0,"div",1)),e&2&&(a(2),p(d.transferTicket==null?2:-1),a(),p(d.transferTicket?3:-1))},encapsulation:2})}};function ho(r,i){if(r&1&&(n(0,"div")(1,"table",4)(2,"tbody")(3,"tr")(4,"th"),o(5,"Order #"),t(),n(6,"td")(7,"a",5),o(8),t()()(),n(9,"tr")(10,"th"),o(11,"Order Date: "),t(),n(12,"td"),o(13),T(14,"date"),t()(),n(15,"tr")(16,"th"),o(17,"Billing Info: "),t(),n(18,"td"),o(19),c(20,"br"),o(21),t()()()()()),r&2){let e=l();a(7),S("href",me("/n/ticket/confirmation?id=",e.order.id),G),a(),h(e.order.id),a(5),_(" ",H(14,6,e.order.orderDate,"M/d/yyyy")," "),a(6),_(" ",e.order.billingInfo.name," "),a(2),_(" ",e.order.billingInfo.email," ")}}function Co(r,i){r&1&&c(0,"div",0)}function vo(r,i){r&1&&(n(0,"div")(1,"em"),o(2,"This order does not include NFJS Tour ticket credits."),t()())}function xo(r,i){if(r&1&&(n(0,"div"),o(1),t()),r&2){let e=l().$implicit;a(),V(" ",e.show.name," - ",e.show.dates," ")}}function go(r,i){if(r&1){let e=g();n(0,"div")(1,"button",10),C("click",function(){v(e);let s=l().$implicit,u=l(3);return x(u.selectSubscription(s.vs))}),o(2,"Select Tour Event"),t()()}}function So(r,i){if(r&1){let e=g();n(0,"div")(1,"button",11),C("click",function(){v(e);let s=l().$implicit,u=l(3);return x(u.removeTicket(s))}),c(2,"i",12),t()()}}function To(r,i){if(r&1&&(n(0,"tr")(1,"td"),o(2),t(),n(3,"td"),o(4),c(5,"br"),o(6),t(),n(7,"td"),m(8,xo,2,2,"div"),m(9,go,3,0,"div"),t(),n(10,"td"),m(11,So,3,0,"div"),t()()),r&2){let e=i.$implicit,d=i.$index;a(2),_("",d+1,"."),a(2),_(" ",e.vs.name," "),a(2),_(" ",e.vs.email," "),a(2),p(e.show?8:-1),a(),p(e.show==null?9:-1),a(2),p(e.show?11:-1)}}function bo(r,i){r&1&&(n(0,"tr")(1,"td",13)(2,"em"),o(3,"No records"),t()()())}function ko(r,i){if(r&1&&(n(0,"div")(1,"p",6)(2,"em"),o(3),t()(),n(4,"p",7),o(5,"We will send an event ticket email to attendees."),t(),n(6,"table",8)(7,"thead")(8,"tr"),c(9,"th",9),n(10,"th"),o(11,"Name"),t(),n(12,"th"),o(13,"Event Selection"),t(),c(14,"th"),t()(),n(15,"tbody"),y(16,To,12,6,"tr",null,k),m(18,bo,4,0,"tr"),t()()()),r&2){let e=l(2);a(3),_("This order includes ",e.item.quantity," NFJS Tour ticket credit(s)."),a(13),w(e.assignments),a(2),p(e.assignments.length==0?18:-1)}}function yo(r,i){if(r&1&&(n(0,"div"),m(1,vo,3,0,"div"),m(2,ko,19,2,"div"),t()),r&2){let e=l();a(),p(e.item==null?1:-1),a(),p(e.item?2:-1)}}function wo(r,i){if(r&1){let e=g();n(0,"tr")(1,"td")(2,"button",24),C("click",function(){let s=v(e).$implicit,u=l(2);return x(u.selectShow(s))}),o(3,"Select"),t()(),n(4,"td"),o(5),t(),n(6,"td"),o(7),t()()}if(r&2){let e=i.$implicit;a(5),h(e.name),a(2),h(e.dates)}}function Eo(r,i){r&1&&(n(0,"tr")(1,"td")(2,"em"),o(3,"No events"),t()()())}function Oo(r,i){if(r&1&&(n(0,"div",3)(1,"div",14)(2,"div",15)(3,"h5",16),o(4,"Assign Tour Event Ticket"),t(),n(5,"button",17)(6,"span",18),o(7,"\xD7"),t()()(),n(8,"div",19)(9,"div",20)(10,"b"),o(11,"Assign To: "),t(),o(12),t(),n(13,"table",21)(14,"thead")(15,"tr"),c(16,"th"),n(17,"th"),o(18,"Tour Event"),t(),c(19,"th"),t()(),n(20,"tbody"),y(21,wo,8,2,"tr",null,k),m(23,Eo,4,0,"tr"),t()()(),n(24,"div",22)(25,"button",23),o(26,"Close"),t()()()()),r&2){let e=l();a(12),V(" ",e.virtualSubscription.name," - ",e.virtualSubscription.email," "),a(9),w(e.futureShows),a(2),p(e.futureShows.length==0?23:-1)}}
4var xt=class r{constructor(i,e,d,s){this.orderState=i;this.orderUpdateService=e;this.showService=d;this.virtualSubscriptionService=s}ngOnInit(){this.showService.getFutureTourEvents().subscribe(i=>{this.applyOrderState(i)})}fetchData(){return this.orderUpdateService.fetchOrderData(this.order.id)}applyOrderState(i){this.orderState.subscribe(e=>{let d=e.order;we(this.fetchShowsForTickets(d),this.virtualSubscriptionService.getVirtualSubscriptionsForOrder(d.id)).subscribe(s=>{let u=s[0],se=s[1];this.item=d.getOrderItem(ee.TourPass),this.formatData(d,se,u),this.futureShows=i,this.order=d},s=>{this.error=P(s)})},e=>{this.error=P(e)})}fetchShowsForTickets(i){let e=jt(z(i.attendees,"showId"));return e.length==0?wt([]):we(z(e,d=>this.showService.get(d)))}formatData(i,e,d){let s=i.attendees;this.assignments=z(e,u=>{let se=Z(u.periods,{expired:!1}),fe,kt;return se?.showUserId&&(fe=Z(s,{id:se.showUserId}),fe&&(kt=Z(d,{id:fe.showId}))),{vs:u,period:se,showUser:fe,show:kt}})}selectSubscription(i){this.virtualSubscription=i}selectShow(i){if(!confirm(`Are you sure you want to assign Tour Event ticket to: ${this.virtualSubscription.name} ?`))return;W();let e=this.virtualSubscription.id;this.virtualSubscription=null,this.orderUpdateService.assignTourTicketToVirtualSubscription(this.order.id,e,i.id).subscribe(d=>{this.message="Update complete",this.fetchData()},d=>{W(),Ie(),this.error=P(d)})}canRemoveTicket(i){return!1}removeTicket(i){confirm("Are you sure you want to remove this ticket?")&&this.orderUpdateService.deleteTourTicketFromVirtualSubscription(this.order.id,i.vs.id,i.showUser.id).subscribe(e=>{this.message="Remove ticket complete",this.fetchData()},e=>{Ie(),this.error=P(e)})}static{this.\u0275fac=function(e){return new(e||r)(f(E),f(O),f(X),f(ze))}}static{this.\u0275cmp=b({type:r,selectors:[["app-tour-ticket"]],standalone:!1,decls:8,vars:6,consts:[[1,"spinner"],[3,"error","message"],["id","selectShow","tabindex","-1","role","dialog","aria-labelledby","selectShow","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
4-lg"],[1,"table","table-striped","w500"],[3,"href"],[1,"mb-2"],[1,"mb-5"],[1,"table","table-striped","w700"],[1,"w20"],["data-toggle","modal","data-target","#selectShow",1,"ticket-button",3,"click"],[1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],["colspan","3"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"mb-3"],[1,"table","table-striped"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],[1,"ticket-button",3,"click"]],template:function(e,d){e&1&&(m(0,ho,22,9,"div"),n(1,"h1"),o(2,"Assign Tour Tickets"),t(),m(3,Co,1,0,"div",0),c(4,"app-info-message",1),m(5,yo,3,2,"div"),n(6,"div",2),m(7,Oo,27,3,"div",3),t()),e&2&&(p(d.order?0:-1),a(3),p(d.order==null?3:-1),a(),S("error",d.error)("message",d.message),a(),p(d.order?5:-1),a(2),p(d.virtualSubscription?7:-1))},dependencies:[D,J],encapsulation:2})}};var Io=[{path:"subscription",loadChildren:()=>import("./chunk-7FEIA3F5.js").then(r=>r.VwSubscriptionUpdateModule)},{path:":id",component:ei,canActivate:[Le],children:[{path:"",component:He},{path:"pay_online",component:Ke},{path:"add_ticket",children:[{path:"",component:Xe},{path:"names",component:Ze},{path:"workshop",component:it},{path:"travel",component:nt},{path:"virtual",component:Kt}]},{path:"payment",component:et},{path:"payment_requests",component:ut},{path:"ticket_names",component:ti},{path:"add_workshop",component:ii},{path:"add_subscription",component:ht},{path:"assign_workshop",component:pt},{path:"change_workshop/:id",component:ct},{path:"add_travel",component:ri},{path:"assign_travel",component:Ct},{path:"cancel",component:oi},{path:"tour_pass",component:rt},{path:"transfer_ticket",component:Ye},{path:"cancel_transfer",component:ot},{path:"assign_transfer",component:st},{path:"assign_transfer_ticket/:id",component:vt},{path:"refund",component:lt},{path:"admin",component:Qe},{path:"po_number",component:mt},{path:"vw-credit",loadChildren:()=>import("./chunk-7PAVJQSA.js").then(r=>r.VwCreditOrderModule)},{path:"alumni-special",children:[{path:"assign",component:ft}]},{path:"admin-users",component:_t},{path:"tour-ticket",component:xt}]}];function li(r){return r}var gt=class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=Me({type:r})}static{this.\u0275inj=Ue({imports:[Tt.forChild(Io),Tt]})}};var ci=class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=Me({type:r})}static{this.\u0275inj=Ue({providers:[E,O,Le,te,he,$e,di,ye,ze,{provide:$t,useFactory:li,deps:[te]}],imports:[qt,Yt,gt]})}};export{ci as OrderUpdateModule};

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.