PageSourceSearch

https://competitioncorner.net/Scripts/lbapp/chunk-3XMICGIC.js

js competitioncorner.net collected 2026-10-02 03:38:34 UTC 22,736 bytes, 1 lines download raw bytes

1import{c as be,d as ke}from"./chunk-FK3AYKEM.js";import{m as B,r as he,s as fe}from"./chunk-P3XCTLHM.js";import"./chunk-P45DHXWK.js";import"./chunk-DLJJL426.js";import{a as Te,b as xe}from"./chunk-VALVK5GN.js";import"./chunk-ZNPPCW4L.js";import"./chunk-XH6BEHGY.js";import"./chunk-6BB2P36Q.js";import"./chunk-4SXIL6RB.js";import"./chunk-7WMFJWTR.js";import"./chunk-MS4AQ6UA.js";import{a as ge,l as ve,n as ye}from"./chunk-REWHUV3E.js";import"./chunk-T6C34YYY.js";import"./chunk-NX27Y33N.js";import"./chunk-HWPGI4JY.js";import"./chunk-HOJ36SEL.js";import"./chunk-XSS4FIQP.js";import"./chunk-I4LNEYGG.js";import"./chunk-KUQBXGWM.js";import"./chunk-M4XPG5ND.js";import"./chunk-NMD7BNDY.js";import"./chunk-IER535FF.js";import"./chunk-RNV27XOH.js";import"./chunk-ZCDK4TE2.js";import"./chunk-CWI4HD4C.js";import"./chunk-VYSZY2RF.js";import"./chunk-FRAOFR6K.js";import"./chunk-O2HTKXBS.js";import"./chunk-KIPGNHHL.js";import"./chunk-FVQU7U56.js";import"./chunk-62CDGUSA.js";import"./chunk-VIJF72ZQ.js";import"./chunk-MIJ4BSDV.js";import"./chunk-LU67H3NU.js";import"./chunk-SLO7444R.js";import"./chunk-J3UGQKB5.js";import"./chunk-3XORJJA4.js";import"./chunk-YB3EGUOV.js";import"./chunk-5GIAIL6D.js";import"./chunk-2RNO6VAM.js";import"./chunk-EBOM3FLD.js";import"./chunk-WVJHT65Q.js";import"./chunk-HRXSP2SL.js";import"./chunk-IVR6OPIX.js";import"./chunk-SUTBK5PK.js";import"./chunk-23UOLJGU.js";import"./chunk-C3M5GFWG.js";import"./chunk-XG3ZOYLF.js";import"./chunk-LJRNXR4Z.js";import"./chunk-T4MK7QAN.js";import"./chunk-N5H33MAT.js";import"./chunk-DCR4YP2M.js";import{b as ue}from"./chunk-SWDGNTZF.js";import"./chunk-F5X5MWHG.js";import"./chunk-57JUTFV6.js";import"./chunk-SGYCFQGT.js";import"./chunk-GWZHENGH.js";import"./chunk-PYVFHOBF.js";import"./chunk-4ZZX3EUT.js";import"./chunk-FHNA7NOX.js";import"./chunk-UKOH47LE.js";import{c as P}from"./chunk-YYOXQINR.js";import"./chunk-W4J2SMRF.js";import"./chunk-ICLKOHZ2.js";import{d as me,e as pe,g as ce}from"./chunk-E4JDWYYD.js";import"./chunk-STYHDWK5.js";import"./chunk-3RK6DDJD.js";import"./chunk-PX3ZDZPI.js";import"./chunk-EWTLMG7H.js";import"./chunk-XFQOOWRA.js";import"./chunk-HVXXTVPX.js";import"./chunk-YOQYUK2P.js";import"./chunk-OM52GCBP.js";import"./chunk-6RGPRWVV.js";import"./chunk-U44HLD2S.js";import"./chunk-R4DV5QZ2.js";import"./chunk-VNN7MPNT.js";import{e as q,g as A}from"./chunk-KLYQFF2A.js";import{H as se,I as de,e as re,i as oe,n as ae,s as le}from"./chunk-H2ADB6ED.js";import{a as j}from"./chunk-UNBDIFOL.js";import{$d as ne,Bb as f,Ca as b,Cd as te,Da as k,Db as Z,Dc as G,Lc as u,Mc as h,Qb as s,Qc as K,Rb as l,Sb as Q,Wb as _,X as H,Zd as ie,_b as T,_d as D,a as I,ac as g,b as W,ce as M,ee as N,fe as U,gb as a,hc as $,ic as O,ie as X,jc as z,mb as c,oc as p,od as V,pc as C,qc as v,rb as L,rc as ee,sa as w,sb as E,xb as R}from"./chunk-POIHHM7P.js";var _e=[{name:"id",label:"",cssClasses:null,isHidden:!0,dataType:"string",renderOptions:{renderType:"Value"}},{name:"email",label:"Email",cssClasses:null,sortColumnName:"email",sortable:!0,allowFilter:!0,width:380,dataType:"string",renderOptions:{renderType:"Value"}},{name:"divisionName",label:"Division name",cssClasses:null,sortColumnName:"divisionName",sortable:!0,allowFilter:!0,dataType:"string",renderOptions:{renderType:"Value"}},{name:"notificationSentDate",label:"Email sent",cssClasses:null,sortColumnName:"notificationSentDate",sortable:!0,allowFilter:!0,dataType:"string",renderOptions:{renderType:"Date",dateFormat:"MM/dd/y h:mm a"}},{name:"expirationDateHtml",label:"Expiration date",cssClasses:null,sortColumnName:"expirationDate",sortable:!0,allowFilter:!1,dataType:"string",renderOptions:{renderType:"Html"}},{label:"Actions",width:120,renderOptions:{renderType:"Actions"},schema:[{label:"Copy registration link",iconName:"link",actionType:"AjaxRequest",action:"copyLink",property:"registrationUrl",routeTemplate:"",routeParameters:[],resolvedUrl:""},{renderAs:"link",label:"View/Edit",iconName:"edit",actionType:"Redirect",action:"redirect",routeTemplate:"/OneTimeRegistrationLinks/form/{id}",routeParameters:["id:id"],resolvedUrl:""},{label:"Resend email",iconName:"mail",actionType:"AjaxRequest",action:"resendHttp",property:"email",visibleExpr:"email",routeTemplate:"",routeParameters:[],resolvedUrl:""},{label:"Delete",iconName:"delete",actionType:"AjaxRequest",action:"deleteHttp",routeTemplate:"",routeParameters:[],resolvedUrl:""}]}],Se={pagerHidden:!1,isSelectable:!1,sortingMode:"whitespace",setQueryParamsToUrl:!1,page:1,perPage:50,paginationSizes:[10,20,30,40,50,100,200],key:"time-registration-grid-v2",headerHidden:!0,filterRowHidden:!0,tableHeight:null,globalSearchHidden:!1,isSingleSort:!0};var Ue=["dellTemplate"],je=["resendTemplate"],qe=()=>["./form"],Ae=()=>["Email","Division name","Email sent","Expiration date","Actions"];function Pe(o,r){if(o&1){let d=_();s(0,"app-table-empty-state",9),T("ctaClick",function(){b(d);let t=g();return k(t.goToForm())}),l()}o&2&&f("columns",G(1,Ae))}function Be(o,r){if(o&1){let d=_();s(0,"div")(1,"div",10)(2,"div",11)(3,"span",12),p(4,"delete_forever"),l(),s(5,"h2",13),p(6),u(7,"translate"),l()(),Q(8,"div",14),s(9,"div",15)(10,"button",16),T("click",function(){b(d);let t=g();return k(t.deleteTimeRegistrationLinks())}),p(11),u(12,"translate"),l(),s(13,"button",17),T("click",function(){b(d);let t=g();return k(t.modalRef.hide())}),p(14),u(15,"translate"),l()()()()}if(o&2){let d=g();a(6),v(" ",h(7,4,"AffiliatesListComponent.Are you sure you want to delete ?")," "),a(4),f("disabled",d.disabledDellBtn),a(),v("",h(12,6,"Actions.Yes")," "),a(3),C(h(15,8,"Actions.No"))}}function He(o,r){if(o&1){let d=_();s(0,"div")(1,"div",10)(2,"div",11)(3,"span",12),p(4,"mail"),l(),s(5,"h2",13),p(6),u(7,"translate"),l()(),s(8,"div",14)(9,"p"),p(10),u(11,"translate"),l()(),s(12,"div",15)(13,"button",16),T("click",function(){b(d);let t=g();return k(t.resendTimeRegistrationLinks())}),p(14),u(15,"translate"),l(),s(16,"button",17),T("click",function(){b(d);let t=g();return k(t.modalRef.hide())}),p(17),u(18,"translate"),l()()()()}if(o&2){let d=g();a(6),v(" ",h(7,6,"TimeRegistrationLinksComponent.Resend the registration link email to this athlete?")," "),a(4),ee("",h(11,8,"TimeRegistrationLinksComponent.The email with the registration link 
1will be sent again to")," ",d.selectItem==null?null:d.selectItem.email,"."),a(3),f("disabled",d.disabledResendBtn),a(),v("",h(15,10,"Actions.Yes")," "),a(3),C(h(18,12,"Actions.No"))}}var Ce=(()=>{let r=class r{constructor(e,t,i,n,m,y,x,F){this.http=e,this.route=t,this.router=i,this.service=n,this.preloaderService=m,this.utils=y,this.translate=x,this.modalService=F,this.config=Se,this.schema=_e,this.isEmpty=!1,this.isLoaded=!1,this.eventId=+this.service.event_id,this.dataUrl="/api2/v1/events/".concat(this.eventId,"/one-time-registration-links")}ngOnInit(){}onChangeHandler(e){switch(e.action){case"getHttpData":this.getHttpData(e);break;case"deleteHttp":this.openDellModal(e.rowData);break;case"resendHttp":this.openResendModal(e.rowData);break;case"copyLink":this.copyRegistrationLink(e.resolvedUrl);break;case"redirect":this.redirect(e);break}}copyRegistrationLink(e){e&&(this.utils.copyText(e),this.utils.showAlertMessage(this.translate.instant("TimeRegistrationLinksComponent.Registration link copied to clipboard"),"success"))}redirect(e){this.router.navigate([".."+e.resolvedUrl],{relativeTo:this.route})}getHttpData(e){let t=e.url;this.preloaderService.preloaderSubject.next({show:!0}),this.http.getReq({url:t,options:{observe:"response"}}).subscribe(i=>{this.preloaderService.preloaderSubject.next(!1),this.isEmpty=!i.body||i.body.length===0,this.isLoaded=!0,this.buildExpirationHtml(i.body),e.callback(i.body,i.headers)},i=>{this.preloaderService.preloaderSubject.next(!1)})}buildExpirationHtml(e){!e||!e.length||e.forEach(t=>{let i=t.expirationDateFormatted;if(!i){t.expirationDateHtml="";return}t.expirationDateHtml=t.expired?'<span class="text-danger" style="font-weight: 700;">'.concat(i,"</span>"):i})}goToForm(){this.router.navigate(["./form"],{relativeTo:this.route})}openDellModal(e){this.disabledDellBtn=!1,this.selectItem=e,this.modalRef=this.modalService.show(this.dellTemplate,{class:"modal-size--s _mi-modal disputes",backdrop:!0,keyboard:!1,ignoreBackdropClick:!0})}deleteTimeRegistrationLinks(){this.preloaderService.preloaderSubject.next({show:!0}),this.http.deleteReq({url:"/api2/v1/events/".concat(this.eventId,"/one-time-registration-links/").concat(this.selectItem.id)}).pipe(H(1)).subscribe(e=>{this.preloaderService.preloaderSubject.next(!1),this.modalRef.hide(),this.updater=new Date},()=>{this.preloaderService.preloaderSubject.next(!1)})}openResendModal(e){this.disabledResendBtn=!1,this.selectItem=e,this.modalRef=this.modalService.show(this.resendTemplate,{class:"modal-size--s _mi-modal disputes",backdrop:!0,keyboard:!1,ignoreBackdropClick:!0})}resendTimeRegistrationLinks(){this.disabledResendBtn=!0,this.preloaderService.preloaderSubject.next({show:!0}),this.http.postReq({url:"/api2/v1/events/".concat(this.eventId,"/one-time-registration-links/").concat(this.selectItem.id,"/resend-notification"),body:{}}).pipe(H(1)).subscribe(e=>{this.preloaderService.preloaderSubject.next(!1),this.modalRef.hide(),this.updater=new Date},()=>{this.disabledResendBtn=!1,this.preloaderService.preloaderSubject.next(!1)})}};r.\u0275fac=function(t){return new(t||r)(c(A),c(M),c(N),c(j),c(q),c(P),c(ie),c(ue))},r.\u0275cmp=L({type:r,selectors:[["app-time-registration-links"]],viewQuery:function(t,i){if(t&1&&($(Ue,7),$(je,7)),t&2){let n;O(n=z())&&(i.dellTemplate=n.first),O(n=z())&&(i.resendTemplate=n.first)}},standalone:!1,decls:20,vars:18,consts:[["dellTemplate",""],["resendTemplate",""],[1,"fixed_header","d-flex"],[1,"d-flex"],[1,"d-flex","justify-content-between","align-items-end","mb-3"],[1,"info-text-register"],["mat-button","",1,"cc-admin-btn-text","cc-admin-button--small","cc-admin-text-primary-color--white","cc-admin-bg-primary-color--green",2,"white-space","nowrap","min-width","auto",3,"routerLink"],[1,"cc-admin-data-grid-container",3,"onchange","schema","config","dataUrl","updater"],["icon","key","title","TimeRegistrationLinksComponent.EmptyState.Reserve a spot for a specific athlete","description","TimeRegistrationLinksComponent.EmptyState.Special registration links give a single athlete exclusive access to register \u2014 even when your event is closed or sold out to the public. Each link is tied to one email address, so no one else can claim that spot.","example","TimeRegistrationLinksComponent.EmptyState.For example: holding a spot for a top competitor without temporarily reopening or adjusting the capacity of a division.","ctaLabel","TimeRegistrationLinksComponent.Create registration link",3,"columns","ctaClick",4,"ngIf"],["icon","key","title","TimeRegistrationLinksComponent.EmptyState.Reserve a spot for a specific athlete","description","TimeRegistrationLinksComponent.EmptyState.Special registration links give a single athlete exclusive access to register \u2014 even when your event is closed or sold out to the public. Each link is tied to one email address, so no one else can claim that spot.","example","TimeRegistrationLinksComponent.EmptyState.For example: holding a spot for a top competitor without temporarily reopening or adjusting the capacity of a division.","ctaLabel","TimeRegistrationLinksComponent.Create registration link",3,"ctaClick","columns"],[1,"modal-content"],[1,"modal-header","modal
1-header-icon","text-center","mat-bg-secondary","text-white","px-2"],[1,"material-icons"],[1,"modal-title","text-white"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn--primary",3,"click","disabled"],["type","button",1,"btn","btn--default",3,"click"]],template:function(t,i){if(t&1){let n=_();s(0,"div",2)(1,"div",3)(2,"h4"),p(3),u(4,"translate"),l()(),Q(5,"app-event-timer"),l(),s(6,"div")(7,"div",4)(8,"p",5),p(9),u(10,"translate"),l(),s(11,"a",6),p(12),u(13,"translate"),l()(),s(14,"ni-data-grid-lib",7),T("onchange",function(y){return b(n),k(i.onChangeHandler(y))}),l(),R(15,Pe,1,2,"app-table-empty-state",8),l(),R(16,Be,16,10,"ng-template",null,0,K)(18,He,19,14,"ng-template",null,1,K)}t&2&&(a(3),v(" ",h(4,11,"TimeRegistrationLinksComponent.Special Registration Link")," "),a(6),C(h(10,13,"TimeRegistrationLinksComponent.This link is used to allow a specific athlete exclusive access to register for your event even when it's closed or sold out to the public. An example use case, you may be saving a spot for a specific person but want to avoid someone else buying that spot if you briefly re-open registration.")),a(2),f("routerLink",G(17,qe)),a(),v(" ",h(13,15,"TimeRegistrationLinksComponent.Create registration link")," "),a(2),Z("d-none",i.isEmpty&&i.isLoaded),f("schema",i.schema)("config",i.config)("dataUrl",i.dataUrl)("updater",i.updater),a(),f("ngIf",i.isEmpty&&i.isLoaded))},dependencies:[V,U,he,Te,pe,B,D],styles:["td.mat-cell{padding-right:15px!important}  .resolved-url{word-break:break-all!important}  .email-column span{word-break:break-all}.info-text-register[_ngcontent-%COMP%]{margin-right:100px;line-height:1.5;font-weight:500}.create-btn[_ngcontent-%COMP%]{min-width:206px;height:40px}"]});let o=r;return o})();var Re=[{type:"hidden",key:"id",label:"",placeholder:"",required:!1,disabled:!1,order:null,hidden:null,displayMode:null,colSize:null,cssClass:null,renderType:null,icon:null,iconUrl:null,dataUrl:null,routeTemplate:null,routeParameters:null,routeQueryParameters:null,selectedValueFieldName:null,valueFieldName:null,keyFieldName:null,dataLookupKey:null,dataDependentFields:null,validators:{required:{errorMessage:"Field is required"}}},{type:"hidden",key:"eventId",label:"",placeholder:"",required:!1,disabled:!1,order:null,hidden:null,displayMode:null,colSize:null,cssClass:null,renderType:null,icon:null,iconUrl:null,dataUrl:null,routeTemplate:null,routeParameters:null,routeQueryParameters:null,selectedValueFieldName:null,valueFieldName:null,keyFieldName:null,dataLookupKey:null,dataDependentFields:null,validators:{required:{errorMessage:"Field is required"}}},{type:"hidden",key:"status",label:"",placeholder:"",required:!1,disabled:!1,order:null,hidden:null,displayMode:null,colSize:null,cssClass:null,renderType:null,icon:null,iconUrl:null,dataUrl:null,routeTemplate:null,routeParameters:null,defaultValue:"",routeQueryParameters:null,selectedValueFieldName:null,valueFieldName:null,keyFieldName:null,dataLookupKey:null,dataDependentFields:null,validators:{required:{errorMessage:"Field is required"}}},{type:"email",key:"email",label:"Email",placeholder:"Email",required:!0,disabled:!1,order:null,hidden:null,displayMode:null,colSize:null,cssClass:null,renderType:null,icon:null,iconUrl:null,dataUrl:null,routeTemplate:null,routeParameters:null,routeQueryParameters:null,selectedValueFieldName:null,valueFieldName:null,keyFieldName:null,dataLookupKey:null,dataDependentFields:null,validators:{required:{errorMessage:"Field is required"},regExp:{pattern:[be,ke],errorMessage:"Please enter a valid email address"}}},{type:"select",key:"divisionId",label:"Divisions",hintUrl:null,placeholder:"Please select divisions",required:!0,disabled:null,order:null,hidden:null,colSize:12,isDynamicArray:null,displayMode:null,clearable:!1,searchable:!0,cssClass:null,renderType:null,icon:null,iconUrl:null,routeTemplate:null,routeParameters:null,routeQueryParameters:null,dataUrl:"/api2/v1/lookups/{eventId}/divisions",dataUrlTokens:[{token:"eventId",required:!0}],valueFieldName:"value",keyFieldName:"key",dataLookupKey:null,options:null,validators:{required:{errorMessage:"Field is required"}}},{type:"datetime",key:"expirationDate",label:"Expiration Date",hintUrl:null,placeholder:"",required:!0,disabled:null,order:null,colSize:12,isDynamicArray:null,displayMode:null,clearable:!1,searchable:!0,cssClass:null,renderType:null,icon:null,iconUrl:null,routeTemplate:null,routeParameters:null,routeQueryParameters:null,
1selectedValueFieldName:null,dataLookupKey:null,hidden:!1,options:null,validators:{required:{errorMessage:"Field is required"}}}];function Qe(o,r){if(o&1){let d=_();s(0,"form",8),T("ngSubmit",function(){b(d);let t=g();return k(t.onFormSubmit())}),s(1,"ni-dynamic-form",9),T("onchange",function(t){b(d);let i=g();return k(i.onFormAction(t))}),l(),s(2,"div",10)(3,"a",11),p(4),u(5,"translate"),l(),s(6,"button",12),p(7),u(8,"translate"),l()()()}if(o&2){let d=g();f("formGroup",d.form),a(),f("formModel",d.formFields)("data",d.model)("form",d.form),a(2),f("routerLink",d.registrationId?"../../":"../"),a(),v(" ",h(5,7,"Actions.Cancel")," "),a(3),v(" ",h(8,9,d.registrationId?"Actions.Save":"TimeRegistrationLinksComponent.Create and Send Email")," ")}}var J=(()=>{let r=class r{constructor(e,t,i,n,m,y,x){this.http=e,this.niFormService=t,this.route=i,this.router=n,this.preloaderService=m,this.service=y,this.utils=x,this.schemaFields=Re,this.registrationId=i.snapshot.params.id,this.eventId=+this.service.event_id}ngOnInit(){this.registrationId?this.getTimeRegistrationLinks():this.mapFields(this.schemaFields,{eventId:this.eventId})}getTimeRegistrationLinks(){this.http.getReq({url:"/api2/v1/events/".concat(this.eventId,"/one-time-registration-links/").concat(this.registrationId)}).subscribe(e=>{this.model=e.body,this.model.divisionTimeslotId&&this.schemaFields.map(t=>(t.key==="divisionTimeslotId"&&(t.hidden=!1),t)),this.mapFields(this.schemaFields,this.model)})}mapFields(e,t){this.formFields=this.niFormService.mapFields(e,t),this.form=this.niFormService.buildForm(this.formFields)}onFormAction(e){e.type==="valueChange"?this.onFieldChange(e):this.onActionEvent(e)}onFieldChange({field:e,value:t}){var i;if(e.dataDependentFields&&e.dataDependentFields.length&&(this.formFields.forEach(n=>{n.options&&n.options.length&&(this.schemaFields.find(m=>m.key===n.key).options=n.options)}),this.mapFields(this.schemaFields,Object.assign({},this.model,this.form.getRawValue()))),e.key==="divisionId"&&((i=e.options)!=null&&i.length)&&t){let n=e.options.find(m=>m.key===t);n!=null&&n.hasTimeslots?n!=null&&n.hasTimeslots&&(console.log("good"),this.formFields.forEach(m=>{if(m.key==="divisionTimeslotId")return m.hidden=!1,m.required=!0,this.form.controls.divisionTimeslotId.setValidators(re.required),this.form.controls.divisionTimeslotId.updateValueAndValidity(),m})):this.formFields.forEach(m=>{if(m.key==="divisionTimeslotId")return m.hidden=!0,m.required=!1,this.form.controls.divisionTimeslotId.setValue(null),this.form.controls.divisionTimeslotId.setValidators(null),this.form.controls.divisionTimeslotId.updateValueAndValidity(),m})}}onActionEvent(e){if(e.type==="lookups"){let t=e.initiator.field,i=e.initiator.params||e.params,n=i&&i.search&&i.search.length>0?this.composeQuery(t,i):"";e.event==="open"?this.getLookups(t):e.event==="search"?this.getLookups(t,this.addQueryToUrl(i,n,t.dataUrl),!0):e.event==="scroll"&&this.getLookups(t,this.addQueryToUrl(i,n,t.dataUrl))}}
1addQueryToUrl(e,t,i){return"".concat(i.includes("?")?"&":"?","page=").concat(e.page,"&per_page=").concat(e.perPage)+t}composeQuery(e,t){return e.dataUrl.includes("/api2/v1/lookups/accounts")?t&&t.search&&t.search.length>0?"&email=".concat(t.search):"":t&&t.search&&t.search.length>0?"&filter="+encodeURIComponent("("+e.valueFieldName+' like "%'+t.search+'%")'):""}getLookups(e,t,i,n){let m=e.dataUrlTokens&&e.dataUrlTokens.length?this.transformUrl(e,this.form?this.form.getRawValue():this.model):e.dataUrl;if(!m){e.loading=!1;return}t&&(m=m+t),this.http.getReq({url:m}).subscribe(y=>{var F;e.loading=!1;let x=[];e.key==="accountId"?(x=y.body.map(S=>(S.resultTitle="".concat(S.value," (").concat(S.email,")"),S)),!x.find(S=>S.key===e.value)&&e.value&&x.unshift({key:e.value,resultTitle:"".concat(this.model.accountName," (").concat((F=this.model)==null?void 0:F.accountEmail,")")})):x=y.body,e.totalCount=y.headers.get("X-Total-Count")?Number(y.headers.get("X-Total-Count")):0,e.mapOptions(x),n&&n(e)},()=>{e.loading=!1})}transformUrl(e,t){let i=e.dataUrl;for(let n of e.dataUrlTokens)if(t[n.token])i=i.replace("{"+n.token+"}",t[n.token]);else if(!t[n.token]&&n.required)return!1;return i}onFormSubmit(){if(this.form.valid){let e=this.registrationId?I(I({},this.model),this.form.getRawValue()):W(I({},this.form.getRawValue()),{status:""});delete e.eventId,this.preloaderService.preloaderSubject.next({show:!0}),this.http.postReq({url:"/api2/v1/events/".concat(this.eventId,"/one-time-registration-links"),body:e}).subscribe(t=>{this.router.navigate([this.registrationId?"../../":"../"],{relativeTo:this.route}),this.preloaderService.preloaderSubject.next(!1)},()=>{this.preloaderService.preloaderSubject.next(!1)})}else this.utils.validateForm({form:this.form})}};r.\u0275fac=function(t){return new(t||r)(c(A),c(ge),c(M),c(N),c(q),c(j),c(P))},r.\u0275cmp=L({type:r,selectors:[["app-time-registration-links-form"]],standalone:!1,decls:15,vars:8,consts:[[1,"fixed_header"],[1,"d-flex"],["href","",1,"mr-2",3,"routerLink"],[1,"material-icons"],[1,"ml-1"],[1,""],[1,"mat-components-container",2,"width","580px"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"cc-admin-dynamic-form",3,"onchange","formModel","data","form"],[1,"d-flex","mb-5","cc-admin--bs-modal-footer"],[1,"cc-admin-btn-text","cc-admin-button--small","cc-admin-button--bordered","cc-admin-text-primary-color--black","cc-admin-bg-transparent",3,"routerLink"],["type","submit","mat-button","",1,"cc-admin-btn-text","cc-admin-button--small","cc-admin-text-primary-color--white","cc-admin-bg-primary-color--green"]],template:function(t,i){t&1&&(s(0,"div",0)(1,"div",1)(2,"a",2)(3,"h4"),p(4),u(5,"translate"),l()(),s(6,"em",3),p(7,"keyboard_arrow_right"),l(),s(8,"h4",4),p(9),u(10,"translate"),l()()(),s(11,"div",5)(12,"div",1)(13,"div",6),R(14,Qe,9,11,"form",7),l()()()),t&2&&(a(2),f("routerLink",i.registrationId?"../../":"../"),a(2),v(" ",h(5,4,"TimeRegistrationLinksComponent.Special Registration Link"),""),a(5),C(h(10,6,i.registrationId?"Actions.Edit":"Actions.Create")),a(5),f("ngIf",i.form&&(i.formFields==null?null:i.formFields.length)))},dependencies:[V,U,ve,ae,oe,le,me,D],styles:[".form-row{width:560px!important}  .mat-components-container fieldset .form-group .ng-select .ng-select-container,   .mat-form-field-appearance-fill .mat-mdc-form-field-flex{background:#fff!important}  form{width:100%!important}"]});let o=r;return o})();var $e=[{path:"",component:Ce},{path:"form",component:J},{path:"form/:id",component:J}],Fe=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=E({type:r}),r.\u0275inj=w({imports:[X.forChild($e),X]});let o=r;return o})();var Rt=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=E({type:r}),r.\u0275inj=w({imports:[te,Fe,fe,ne,xe,ye,se,de,ce,B]});let o=r;return o})();export{Rt as TimeRegistrationLinksModule};

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.