1import{a as _}from"./chunk-A2NI7TCE.js";import{d as X}from"./chunk-NM2YCYMW.js";import{Nc as Q,Qc as T,Uc as j,kc as K}from"./chunk-OTSSTHG4.js";import{$ as f,B as I,C as A,Ca as a,Da as H,E as R,Ea as l,Fa as k,G as z,H as $,La as u,Ta as L,Va as G,W as h,X as o,aa as C,ba as O,fb as J,ja as c,ka as d,la as x,m as P,ma as S,na as E,oa as p,ob as q,p as w,pa as i,qa as n,ra as s,sa as V,ta as B,tb as M,ua as v,yb as U}from"./chunk-LSXE27IB.js";var g=class t{constructor(r){this.http=r}fetchEvents(){return this.http.get("/n/data/partner/event")}static{this.\u0275fac=function(e){return new(e||t)(R(q))}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac})}};function re(t,r){t&1&&s(0,"div",0)}function oe(t,r){if(t&1&&(i(0,"tr")(1,"td"),a(2),n(),i(3,"td"),a(4),n(),i(5,"td")(6,"a",6),s(7,"i",7),n()(),i(8,"td")(9,"a",8),s(10,"i",9),n()(),i(11,"td")(12,"a",8),s(13,"i",10),n()(),i(14,"td")(15,"a",6),s(16,"i",7),n()(),i(17,"td")(18,"a",8),s(19,"i",9),n()(),s(20,"td"),n()),t&2){let e=r.$implicit;o(2),l(" ",e.name," "),o(2),H(e.dates),o(2),p("href",u("/n/data/partner/show/",e.id,"/workshop_signup.csv"),h),o(3),p("href",u("/app/partner/",e.id,"/registration"),h),o(3),p("href",u("",e.urlBase,"/workshop_signup"),h),o(3),p("href",u("/n/data/partner/show/",e.id,"/preconf/virtualattendees.csv"),h),o(3),p("href",u("/app/partner/",e.id,"/online"),h)}}function ae(t,r){t&1&&(i(0,"tr")(1,"td",11)(2,"em"),a(3,"no records"),n()()())}function se(t,r){if(t&1&&(i(0,"div",1)(1,"table",2)(2,"thead")(3,"tr")(4,"th",3),a(5,"Event"),n(),i(6,"th",4),a(7,"Dates"),n(),i(8,"th",5),a(9,"Registration CSV"),n(),i(10,"th",5),a(11,"Registration List"),n(),i(12,"th",5),a(13,"Registration Form"),n(),i(14,"th",5),a(15,"Online Attendee CSV"),n(),i(16,"th",5),a(17,"Online Attendee List"),n(),s(18,"th"),n()(),i(19,"tbody"),S(20,oe,21,12,"tr",null,x),c(22,ae,4,0,"tr"),n()()()),t&2){let e=v();o(20),E(e.events),o(2),d(e.events.length==0?22:-1)}}var D=class t{constructor(r){this.partnerService=r}ngOnInit(){this.fetchData()}fetchData(){this.partnerService.fetchEvents().subscribe(r=>this.events=r)}static{this.\u0275fac=function(e){return new(e||t)(f(g))}}static{this.\u0275cmp=C({type:t,selectors:[["app-partner-events"]],standalone:!1,decls:4,vars:2,consts:[[1,"spinner"],[1,"events"],[1,"table","table-striped"],[1,"w250"],[1,"w200"],[1,"w40"],["download","",3,"href"],[1,"fas","fa-file-csv"],[3,"href"],[1,"fas","fa-users"],[1,"fas","fa-ticket-alt"],["colspan","8"]],template:function(e,m){e&1&&(i(0,"h1"),a(1,"Events"),n(),c(2,re,1,0,"div",0),c(3,se,23,1,"div",1)),e&2&&(o(2),d(m.events==null?2:-1),o(),d(m.events?3:-1))},styles:["i[_ngcontent-%COMP%]{font-size:28px}"]})}};var b=class t{constructor(r){this.authService=r;this.authService.user.subscribe(e=>this.user=e)}canActivate(r,e){return this.user==null?P(!1):this.user.isStaff?P(!0):this.authService.isUserInRole(this.user,"ROLE_PARTNER")?P(!0):P(!1)}static{this.\u0275fac=function(e){return new(e||t)(R(Q))}}static{this.\u0275prov=I({token:t,factory:t.\u0275fac})}};function ce(t,r){if(t&1&&(i(0,"h2",0),a(1),n()),t&2){let e=v();o(),k("",e.show.name," - ",e.show.dates)}}function de(t,r){t&1&&s(0,"div",1)}function pe(t,r){if(t&1&&(i(0,"a",10),a(1),n()),t&2){let e=v().$implicit;p("href",e.referer,h),o(),l("",e.referer.substring(0,80),"...")}}function fe(t,r){if(t&1){let e=V();i(0,"tr")(1,"td"),a(2),n(),i(3,"td"),a(4),s(5,"br"),a(6),n(),i(7,"td"),a(8),n(),i(9,"td"),a(10),L(11,"date"),n(),i(12,"td"),a(13),n(),i(14,"td",9),c(15,pe,2,2,"a",10),s(16,"br"),a(17),n(),i(18,"td")(19,"button",11),B("click",function(){let te=z(e).$implicit,ne=v(2);return $(ne.delete(te))}),s(20,"i",12),n()()()}if(t&2){let e=r.$implicit,m=r.$index;o(2),l("",m+1,"."),o(2),l(" ",e.name," "),o(2),l(" ",e.email," "),o(2),l(" ",e.attendanceString," "),o(2),l(" ",G(11,8,e.created,"M/d/yyyy")," "),o(3),l(" ",e.company," "),o(2),d(e.referer?15:-1),o(2),l(" ",e.refererCode," ")}}function ve(t,r){t&1&&(i(0,"tr")(1,"td",13)(2,"em"),a(3,"No records"),n()()())}function he(t,r){if(t&1&&(i(0,"div")(1,"div",2)(2,"ul",3)(3,"li")(4,"a",4),a(5,"Attendee CSV"),n()()()(),i(6,"div")(7,"b"),a(8,"Count: "),n(),a(9),n(),s(10,"app-info-message",5),i(11,"div",6)(12,"table",7)(13,"thead")(14,"tr"),s(15,"th",8),i(16,"th"),a(17,"Name"),n(),i(18,"th"),a(19,"In-Person"),n(),i(20,"th"),a(21,"Date"),n(),i(22,"th"),a(23,"Company"),n(),i(24,"th"),a(25,"Referer"),n(),s(26,"th"),n()(),i(27,"tbody"),S(28,fe,21,11,"tr",null,x),c(30,ve,4,0,"tr"),n()()()()),t&2){let e=v();o(4),p("href",u("/n/data/partner/show/",e.show.id,"/workshop_signup.csv"),h),o(5),l(" ",e.attendees.length," "),o(),p("error",e.error)("message",e.message),o(18),E(e.attendees),o(2),d(e.attendees.length==0?30:-1)}}var N=class t{constructor(r,e,m){this.showService=r;
1this.preconfWorkshopService=e;this.route=m}ngOnInit(){this.route.params.subscribe(r=>{let e=+r.showId;this.fetchData(e)})}fetchData(r){w(this.showService.get(r),this.preconfWorkshopService.registrations(r)).subscribe(e=>{this.show=e[0],this.attendees=e[1]})}delete(r){confirm("Are you sure you want to delete this?")&&this.preconfWorkshopService.deleteSignup(this.show.id,r.id).subscribe(e=>{this.message="Delete complete",this.fetchData(this.show.id)},e=>{this.error=K(e)})}static{this.\u0275fac=function(e){return new(e||t)(f(j),f(_),f(M))}}static{this.\u0275cmp=C({type:t,selectors:[["app-partner-event-registration"]],standalone:!1,decls:5,vars:3,consts:[[1,"show"],[1,"spinner"],[1,"clearfix","mb-3"],[1,"hlink"],["download","",3,"href"],[3,"error","message"],[1,"attendees"],[1,"table","table-striped"],[1,"w20"],[1,"referer"],[3,"href"],[1,"btn","btn-secondary",3,"click"],[1,"fas","fa-trash"],["colspan","7"]],template:function(e,m){e&1&&(i(0,"h1"),a(1,"PreConf Workshop Registrations"),n(),c(2,ce,2,2,"h2",0),c(3,de,1,0,"div",1),c(4,he,31,6,"div")),e&2&&(o(2),d(m.show?2:-1),o(),d(m.attendees==null?3:-1),o(),d(m.attendees?4:-1))},dependencies:[T,J],styles:["h2[_ngcontent-%COMP%]{font-size:18px}td.referer[_ngcontent-%COMP%]{max-width:200px;overflow:hidden}"]})}};function ue(t,r){if(t&1&&(i(0,"h2",0),a(1),n()),t&2){let e=v();o(),k("",e.show.name," - ",e.show.dates)}}function Ce(t,r){t&1&&s(0,"div",1)}function xe(t,r){if(t&1&&(i(0,"tr")(1,"td"),a(2),n(),i(3,"td"),a(4),s(5,"br"),a(6),n(),i(7,"td"),a(8),n()()),t&2){let e=r.$implicit,m=r.$index;o(2),l("",m+1,"."),o(2),l(" ",e.name," "),o(2),l(" ",e.email," "),o(2),l(" ",e.company," ")}}function Se(t,r){t&1&&(i(0,"tr")(1,"td",6)(2,"em"),a(3,"No records"),n()()())}function Ee(t,r){if(t&1&&(i(0,"div")(1,"div")(2,"b"),a(3,"Count: "),n(),a(4),n(),s(5,"app-info-message",2),i(6,"div",3)(7,"table",4)(8,"thead")(9,"tr"),s(10,"th",5),i(11,"th"),a(12,"Name"),n(),i(13,"th"),a(14,"Company"),n()()(),i(15,"tbody"),S(16,xe,9,4,"tr",null,x),c(18,Se,4,0,"tr"),n()()()()),t&2){let e=v();o(4),l(" ",e.attendees.length," "),o(),p("error",e.error)("message",e.message),o(11),E(e.attendees),o(2),d(e.attendees.length==0?18:-1)}}var W=class t{constructor(r,e,m){this.showService=r;this.preconfWorkshopService=e;this.route=m}ngOnInit(){this.route.params.subscribe(r=>{let e=+r.showId;this.fetchData(e)})}fetchData(r){w(this.showService.get(r),this.preconfWorkshopService.onlineAttendees(r)).subscribe(e=>{this.show=e[0],this.attendees=e[1]})}static{this.\u0275fac=function(e){return new(e||t)(f(j),f(_),f(M))}}static{this.\u0275cmp=C({type:t,selectors:[["app-partner-event-online-attendee"]],standalone:!1,decls:5,vars:3,consts:[[1,"show","mb-5"],[1,"spinner"],[3,"error","message"],[1,"attendees"],[1,"table","table-striped"],[1,"w20"],["colspan","3"]],template:function(e,m){e&1&&(i(0,"h1"),a(1,"PreConf Workshop Online Attendees"),n(),c(2,ue,2,2,"h2",0),c(3,Ce,1,0,"div",1),c(4,Ee,19,4,"div")),e&2&&(o(2),d(m.show?2:-1),o(),d(m.attendees==null?3:-1),o(),d(m.attendees?4:-1))},dependencies:[T],styles:["h2[_ngcontent-%COMP%]{font-size:18px}"]})}};var _e=[{path:"",canActivate:[b],children:[{path:"",redirectTo:"events",pathMatch:"full"},{path:"events",component:D},{path:":showId/registration",component:N},{path:":showId/online",component:W}]}],F=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=O({type:t})}static{this.\u0275inj=A({imports:[U.forChild(_e),U]})}};var ee=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=O({type:t})}static{this.\u0275inj=A({providers:[g,b,_],imports:[X,F]})}};export{ee as PartnerModule};
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.