1import{a as i}from"./chunk-QB7NPVLE.js";import{B as s,N as u,S as C,V as h,m as a,p,sc as c,uc as m}from"./chunk-RAIIQSR5.js";var S=function(l){return l[l.OTHER=1]="OTHER",l[l.HE=2]="HE",l[l.SHE=3]="SHE",l[l.THEY=4]="THEY",l}(S||{});var R=(()=>{class l{constructor(t){this.http=t,this.urlAuth=i.urlWebServices+"/api/auth",this.urlCustomerAgreement=i.urlWebServices+"/cwk/customerAgreement",this.urlBillingSubscription=i.urlWebServices+"/api/billingSubscription",this.urlBilling=i.urlWebServices+"/api/billing",this.urlBillings=i.urlWebServices+"/api/billings",this.urlCertificate=i.urlWebServices+"/cwk/certificate",this.urlCodersLadder=i.urlWebServices+"/api/codersLadder",this.urlCustomer=i.urlWebServices+"/api/customer",this.urlCustomerAccount=i.urlWebServices+"/cwk/customer-account",this.urlCustomerAccountApi=i.urlWebServices+"/api/customer-account",this.urlExternalAccounts=i.urlWebServices+"/api/externalAccounts",this.urlGraduation=i.urlWebServices+"/api/graduation",this.urlPathway=i.urlWebServices+"/api/pathway",this.urlPaymentForm=i.urlWebServices+"/cwk/checkout",this.urlProgressreport=i.urlWebServices+"/cwk/progressReport",this.urlReceipt=i.urlWebServices+"/cwk/receipt",this.urlRegistrationManagement=i.urlWebServices+"/cwk/registrationManagement",this.urlSetter=i.urlWebServices+"/api/setter",this.urlSubscription=i.urlWebServices+"/api/subscription",this.urlSubscriptionManagement=i.urlWebServices+"/cwk/subscription-management",this.urlTermsOfService=i.urlWebServices+"/cwk/terms-of-service",this.urlUsers=i.urlWebServices+"/api/users"}addCard(t,e,n){let r=`${this.urlCustomerAccount}/stripe/payment-method/${t}/${n}`;return this.http.post(r,{StripeCustomerId:e}).pipe(s(o=>a(o)))}createCheckoutPaymentIntent(t){let e=`${this.urlPaymentForm}/payment-intent`;return this.http.post(e,t)}completePaymentIntent(t){let e=`${this.urlPaymentForm}/payment-intent/complete`;return this.http.post(e,t)}createSetupIntent(t){let e=`${this.urlCustomerAccount}/stripe/setup-intent/${t}`;return this.http.post(e,{})}cancelBillingSubscription(t,e,n){let r=`${this.urlBillingSubscription}/cancel/${t}`;return this.http.put(r,{IsCancelRegistration:n?"1":"0",Reason:e}).pipe(s(o=>a(o.message||o)))}cancelRegistration(t){let e=`${this.urlBillings}/${t}/cancelRegistration`;return this.http.post(e,{}).pipe(s(n=>a(n.message||n)))}cancelWelcomeLesson(t,e){let n=`${this.urlRegistrationManagement}/cancel-welcome-lesson/${t}`;return this.http.post(n,e).pipe(s(r=>a(r.message||r)))}createAgreement(t){let e=`${this.urlCustomerAgreement}`;return this.http.post(e,t).pipe(s(n=>a(n.message||n)))}createSubscriptionCancellationRequest(t,e){let n=`${this.urlSubscriptionManagement}/${t}/request-cancellation`;return this.http.post(n,e).pipe(s(r=>a(r.message||r)))}deleteCard(t,e,n){let r=`${this.urlCustomerAccount}/stripe/payment-method/${t}/${n}`;return this.http.delete(r).pipe(s(o=>a(o.message||o)))}downloadCertificate(t,e){let n=`${this.urlCertificate}/download/${t}/${e}`;return this.http.get(n,{responseType:"blob"}).pipe(p(r=>new Blob([r],{type:r.type})))}downloadGraduationCertificate(t){let e=`${this.urlGraduation}/download-certificate/${t}`;return this.http.get(e,{responseType:"blob"}).pipe(p(n=>new Blob([n],{type:n.type})))}downloadProgressReport(t,e){let n=`${this.urlProgressreport}/download/${t}/${e}`;return this.http.get(n,{responseType:"blob"}).pipe(p(r=>new Blob([r],{type:r.type})))}enableBillingSubscription(t){let e=`${this.urlBillingSubscription}/enable/${t}`;return this.http.put(e,{}).pipe(s(n=>a(n.message||n)))}processAbsenceAndOfficeHours(t){let e=`${this.urlCustomerAccount}/processAbsenceAndOfficeHours`;return this.http.post(e,t)}read4AbsenceAnnouncement(t){let e=`${this.urlCustomerAccount}/read4AbsenceAnnouncement`;return this.http.get(e).pipe(u(this.fixCodersLadderFromMySQL),s(n=>a(n.message||n)))}readAccount(t){let e=`${this.urlCustomerAccountApi}/${t}`;return this.http.get(e).pipe(u(this.fixAccountDataFromMySQL))}readCancellationFee(t){let e=`${this.urlBillings}/${t}/cancellationFee`;return this.http.get(e).pipe(s(n=>a(n.message||n)))}readCodersLadderProgress4Student(t){let e=`${this.urlCodersLadder}/student/${t}/progress`;return this.http.get(e).pipe(u(this.fixCodersLadderFromMySQL),s(n=>a(n.message||n)))}readContinuationInfo(t){let e=`${this.urlCustomerAccount}/continuation/${t}`;return this.http.get(e).pipe(p(n=>this.fixContinuationInfoFromMySQL(n)))}readCredit(t){let e=`${this.urlCustomerAccount}/credit/${t}`;return this.http.get(e).pipe(u(this.fixCreditFromMySQL))}readDiscountCoupons(t){let e=`${this.urlCustomerAccount}/discount-coupons/${t}`;return this.http.get(e).pipe(u(this.fixDiscountCouponsFromMySQL),s(n=>a(n.message||n)))}readExternalAccounts4Student(t){let e=`${this.urlExternalAccounts}/read4Student/${t}`;return this.http.get(e).pipe(s(n=>a(n.message||n)))}readGraduationSignupInfo(t){let e=`${this.urlGraduation}/customer-signup/${t}`;return this.http.get(e).pipe(u(this.fixGraduationSingupInfoFromMySQL),s(n=>a(n.message||n)))}readLoyalityInfo(t){let e=`${this.urlCustomerAccount}/loyality-info/${t}`;return this.http.get(e).pipe(u(this.fixLoyalityInfoFromMySQL),s(n=>a(n)))}readMeetingInfo(t,e){let n=`${this.urlCustomerAccount}/meeting/${t}/${e}`;return this.http.get(n).pipe(u(this.fixMeetingInfoFromMySQL))}readPathwaysProgress4Student(t){let e=`${this.urlPathway}/student/${t}/progress`;return this.http.get(e).pipe(u(this.fixPathwaysFromMySQL),s(n=>a(n.message||n)))}readReferralCode(t){let e=`${this.urlCustomerAccount}/referral-code/${t}`;return this.http.get(e).pipe(s(n=>a(n.message||n)))}readRegistrations4Student(t,e){let n=`${this.urlBillings}/student/${t}`,r=new c;return r=r.append("timePeriod",e),this.http.get(n,{params:r}).pipe(u(this.fixRegistrationsFromMySQL))}readStripe4Customer(t){let e=new Date().getTime(),n=`${this.urlCustomer}/stripe/${t}?cacheBuster=${e}`;return this.http.get(n).pipe(u(this.fixStripe4Customer),s(r=>a(r.message||r)))}readStripeCustomer(t){let e=`${this.urlPaymentForm}/stripe/${t}`;return this.http.get(e).pipe(s(n=>a(n.message||n)))}readSubscription4Customer(t){let e=`${this.urlSubscription}/${t}`;return this.http.get(e).pipe(u(this.fixSubscriptionsFromMySQL),s(n=>a(n.message||n)))}readSubscriptionCancellationInfo(t){let e=`${this.urlSubscriptionManagement}/${t}/cancellation-info`;return this.http.get(e).pipe(u(this.fixSubscriptionCancellationInfoFromMySQL),s(n=>a(n.message||n)))}readSalesTax(t,e){let n=`${this.urlPaymentForm}/sales-tax/${t}`;return this.http.post(n,e)}readTermsOfService(t){let e=`${this.urlTermsOfService}/${t}`;return this.http.get(e).pipe(u(this.fixTermsOfServiceFromMySQL),s(n=>a(n.message||n)))}readTransactions(t){let e=`${this.urlCustomerAccountApi}/${t}/transactions`;return this.http.get(e).pipe(u(this.fixTransactionsFromMySQL))}searchCustomers(t){let e=`${this.urlUsers}/search`,n=new c().set("roles","USER").set("searchString",t);return this.http.get(e,{params:n}).pipe(p(r=>r.reverse()),s(r=>a(r.message||r)))}sendReceipt(t){let e=`${this.urlReceipt}`;return this.http.post(e,t).pipe(s(n=>a(n.message||n)))}updateDefaultCard(t,e,n){let r=`${this.urlCustomer}/${t}/stripe-cards/set-default/${n}`;
1return this.http.post(r,{stripeCustomerId:e}).pipe(s(o=>a(o.error||o)))}updateGraduationSignUp(t,e){let n=`${this.urlGraduation}/sign-up/${t}`;return this.http.post(n,e).pipe(s(r=>a(r.message||r)))}readOfficeHours(t){let e=`${this.urlCustomerAccountApi}/officeHours/${t}`;return this.http.get(e).pipe(u(this.fixOfficeHoursFromMySQL),s(n=>a(n.message||n)))}updateContinuationSession(t,e,n={}){let r=`${this.urlCustomerAccount}/continuation/${t}/${e}`;return this.http.put(r,n)}updatePassword(t){let e=`${this.urlAuth}/change-password`;return this.http.post(e,t,{responseType:"text"})}updateProfile(t){let e=`${this.urlCustomerAccount}/profile`;return this.http.post(e,t).pipe(s(n=>a(n)))}updateReleaseNotes(t,e){let n=`${this.urlSetter}/Billing4Session/${t}/ReleaseNotes`;return this.http.post(n,{Value:e}).pipe(s(r=>a(r)))}fixAccountDataFromMySQL(t){t.Customer.HasAnyCurrentFutureExternalRegistration=!!t.Customer.HasAnyCurrentFutureExternalRegistration,t.Customer.IsMissingRequiredData=!!t.Customer.IsMissingRequiredData,t.Customer.Roles=t.Customer.Roles?t.Customer.Roles.split(","):[],t.Customer.ZIP=t.Customer.ZIP&&(typeof t.Customer.ZIP=="string"?t.Customer.ZIP.replaceAll("#",""):t.Customer.ZIP),t.Customer.InternalNotesComments.forEach(e=>{e.CreatedOn=new Date(e.CreatedOn.replace(/ /g,"T")+"Z")}),t.Students.forEach(e=>{e.BirthDate=e.BirthDate&&new Date(e.BirthDate.replace(/-/g,"/")),e.HasAnyRegistration=!!e.HasAnyRegistration,e.IsAllowed4StudentPage=!!e.IsAllowed4StudentPage,e.IsCustomerStudentAccount=!!e.IsCustomerStudentAccount,e.Pronoun===null&&e.Gender!==null?e.Pronoun=e.Gender===0?S.HE:S.SHE:e.Pronoun=e.Pronoun?S[e.Pronoun]:null})}fixCodersLadderFromMySQL(t){t.IsCurrent=!!t.IsCurrent,t.Graduation&&(t.Graduation.IsGraduationExamRequired=!!t.Graduation.IsGraduationExamRequired,t.Graduation.IsNextLevelSessionRequired=!!t.Graduation.IsNextLevelSessionRequired,t.Graduation.ApprovedOn=t.Graduation.ApprovedOn&&new Date(t.Graduation.ApprovedOn.replace(/ /g,"T")+"Z"),t.Graduation.CurrentSessionStartUTC=t.Graduation.CurrentSessionStartUTC&&new Date(t.Graduation.CurrentSessionStartUTC.replace(/ /g,"T")+"Z"),t.Graduation.CurrentSessionEndUTC=t.Graduation.CurrentSessionEndUTC&&new Date(t.Graduation.CurrentSessionEndUTC.replace(/ /g,"T")+"Z"),t.Graduation.GraduationEndUTC=t.Graduation.GraduationEndUTC&&new Date(t.Graduation.GraduationEndUTC.replace(/ /g,"T")+"Z"),t.Graduation.GraduationStartUTC=t.Graduation.GraduationStartUTC&&new Date(t.Graduation.GraduationStartUTC.replace(/ /g,"T")+"Z"),t.Graduation.NextLevelEndsUTC=t.Graduation.NextLevelEndsUTC?t.Graduation.NextLevelEndsUTC.split(","):[],t.Graduation.NextLevelEndsUTC.forEach((e,n,r)=>r[n]=r[n]&&new Date(r[n].replace(/ /g,"T")+"Z")),t.Graduation.NextLevelStartsUTC=t.Graduation.NextLevelStartsUTC?t.Graduation.NextLevelStartsUTC.split(","):[],t.Graduation.NextLevelStartsUTC.forEach((e,n,r)=>r[n]=r[n]&&new Date(r[n].replace(/ /g,"T")+"Z")),t.Graduation.NextLevelSessionStartUTC=t.Graduation.NextLevelSessionStartUTC&&new Date(t.Graduation.NextLevelSessionStartUTC.replace(/ /g,"T")+"Z"),t.Graduation.NextLevelSessionEndUTC=t.Graduation.NextLevelSessionEndUTC&&new Date(t.Graduation.NextLevelSessionEndUTC.replace(/ /g,"T")+"Z"),t.Graduation.WelcomeStartUTC=t.Graduation.WelcomeStartUTC&&new Date(t.Graduation.WelcomeStartUTC.replace(/ /g,"T")+"Z"),t.Graduation.WelcomeEndUTC=t.Graduation.WelcomeEndUTC&&new Date(t.Graduation.WelcomeEndUTC.replace(/ /g,"T")+"Z")),t.Levels.forEac
1h(e=>{e.Scorecard&&(e.Scorecard.CompletedOn=e.Scorecard.CompletedOn&&new Date(e.Scorecard.CompletedOn.replace(/-/g,"/")))}),t.ProgressReports.forEach(e=>{e.ReportDate=e.ReportDate&&new Date(e.ReportDate.replace(/-/g,"/"))})}fixContinuationInfoFromMySQL(t){if(t===null)return null;let e=structuredClone(t);return e.SeasonInfo&&(e.SeasonInfo=JSON.parse(e.SeasonInfo),e.SeasonInfo.EndOn=e.SeasonInfo.EndOn&&new Date(e.SeasonInfo.EndOn.replace(/-/g,"/")),e.SeasonInfo.StartOn=e.SeasonInfo.StartOn&&new Date(e.SeasonInfo.StartOn.replace(/-/g,"/"))),e.IsLockedAfterAutopay=!!e.IsLockedAfterAutopay,e.HasValidPaymentInfo=!!e.HasValidPaymentInfo,e.RegistrationSwitch=!!e.RegistrationSwitch,e.SwitchPeriod=e.SwitchPeriod!==null&&e.SwitchPeriod!==void 0?Number(e.SwitchPeriod):null,e.SwitchPeriodEndDate=e.SwitchPeriodEndDate&&new Date(e.SwitchPeriodEndDate.replace(/-/g,"/")),e.NextSessions=e.NextSessions?JSON.parse(e.NextSessions):[],e.NextSessions.forEach(n=>{n.EndUTC=n.EndUTC&&new Date(n.EndUTC.replace(/ /g,"T")+"Z"),n.StartUTC=n.StartUTC&&new Date(n.StartUTC.replace(/ /g,"T")+"Z")}),e}fixCreditFromMySQL(t){t.forEach(e=>{e.RegistrationCredits=e.RegistrationCredits?JSON.parse(e.RegistrationCredits).filter(n=>n.Credit):[],e.RegistrationCredits.forEach(n=>{n.CreatedOn=n.CreatedOn&&new Date(n.CreatedOn.replace(/ /g,"T")+"Z")}),e.CustomerCredits=e.CustomerCredits?JSON.parse(e.CustomerCredits).filter(n=>n.Credit):[],e.CustomerCredits.forEach(n=>{n.CreatedOn=n.CreatedOn&&new Date(n.CreatedOn.replace(/ /g,"T")+"Z")}),e.ReferralCredits=e.ReferralCredits?JSON.parse(e.ReferralCredits).filter(n=>n.Credit):[],e.ReferralCredits.forEach(n=>{n.CreatedOn=n.CreatedOn&&new Date(n.CreatedOn.replace(/ /g,"T")+"Z")}),e.SubscriptionCredits=e.SubscriptionCredits?JSON.parse(e.SubscriptionCredits).filter(n=>n.Credit):[],e.SubscriptionCredits.forEach(n=>{n.CreatedOn=n.CreatedOn&&new Date(n.CreatedOn.replace(/ /g,"T")+"Z"),n.ExpiresOn=n.ExpiresOn&&new Date(n.ExpiresOn.replace(/-/g,"/")),n.StartOn=n.StartOn&&new Date(n.StartOn.replace(/-/g,"/"))}),e.CanceledSubscriptionCredits=e.CanceledSubscriptionCredits?JSON.parse(e.CanceledSubscriptionCredits).filter(n=>n.Credit):[],e.CanceledSubscriptionCredits.forEach(n=>{n.CreatedOn=n.CreatedOn&&new Date(n.CreatedOn.replace(/ /g,"T")+"Z")})})}fixDiscountCouponsFromMySQL(t){t.forEach(e=>{e.ExpiresOn=e.ExpiresOn&&new Date(e.ExpiresOn.replace(/ /g,"T")+"Z"),e.Registrations=e.Registrations?JSON.parse(e.Registrations):[],e.Registrations.forEach(n=>{n.StartUTC=n.StartUTC&&new Date(n.StartUTC.replace(/ /g,"T")+"Z")})})}fixGraduationSingupInfoFromMySQL(t){t.GraduationLessons.forEach(e=>{e.EndUTC=e.EndUTC&&new Date(e.EndUTC.replace(/ /g,"T")+"Z"),e.StartUTC=e.StartUTC&&new Date(e.StartUTC.replace(/ /g,"T")+"Z")}),t.NextLevelSessions.forEach(e=>{e.EndsUTC=e.EndsUTC.split(","),e.EndsUTC.forEach((n,r,o)=>o[r]=o[r]&&new Date(o[r].replace(/ /g,"T")+"Z")),e.StartsUTC=e.StartsUTC.split(","),e.StartsUTC.forEach((n,r,o)=>o[r]=o[r]&&new Date(o[r].replace(/ /g,"T")+"Z"))}),t.WelcomeLessons.forEach(e=>{e.EndUTC=e.EndUTC&&new Date(e.EndUTC.replace(/ /g,"T")+"Z"),e.StartUTC=e.StartUTC&&new Date(e.StartUTC.replace(/ /g,"T")+"Z")})}fixLoyalityInfoFromMySQL(t){t.CreatedOn=t.CreatedOn&&new Date(t.CreatedOn.replace(/ /g,"T")+"Z")}fixMeetingInfoFromMySQL(t){t&&(t.EndUTC=t.EndUTC&&new Date(t.EndUTC.replace(/ /g,"T")+"Z"),t.IsNotRunning=!!t.IsNotRunning,t.MeetingEndOn=t.MeetingEndOn&&new Date(t.MeetingEndOn.replace(/ /g,"T")+"Z"),t.MeetingStartOn=t.MeetingStartOn&&new Date(t.MeetingStartOn.replace(/ /g,"T")+"Z"),t.StartUTC=t.StartUTC&&new Date(t.StartUTC.replace(/ /g,"T")+"Z"))}fixOfficeHoursFromMySQL(t){t.OfficeHours.forEach(e=>{e.EndUTC=e.EndUTC&&new Date(e.EndUTC.replace(/ /g,"T")+"Z"),e.StartUTC=e.StartUTC&&new Date(e.StartUTC.replace(/ /g,"T")+"Z"),e.Discounts=e.Discounts?JSON.parse(e.Discounts):[]})}fixPathwaysFromMySQL(t){t.forEach(e=>{e.IsParsed||(e.PathwayClasses=e.PathwayClasses?JSON.parse(e.PathwayClasses):[],e.PathwayClasses.forEach(n=>{n.HasCompletedPathwayClass=!!n.HasCompletedPathwayClass,n.IsNew=!!n.IsNew,n.IsRegistered4PathwayClass=!!n.IsRegistered4PathwayClass,n.Classes=n.Classes?JSON.parse(n.Classes):[]}),e.IsParsed=!0)})}
1fixRegistrationsFromMySQL(t){t.forEach(e=>{e.IsParsed||(e.ExternalSystems=e.ExternalSystems?JSON.parse(e.ExternalSystems):[],e.Instructors=e.Instructors?JSON.parse(e.Instructors):[],e.ProgressReports=e.ProgressReports?JSON.parse(e.ProgressReports):[],e.ProgressReports.forEach(n=>{n.ReportDate=n.ReportDate&&new Date(n.ReportDate.replace(/-/g,"/"))}),e.HasCertificate=!!e.HasCertificate,e.IsAlreadySignedUp=!!e.IsAlreadySignedUp,e.IsHybridLocation=!!e.IsHybridLocation,e.IsMostRecentSession4Registration=!!e.IsMostRecentSession4Registration,e.IsMultiday=!!e.IsMultiday,e.IsOnline=!!e.IsOnline,e.IsPrivate=!!e.IsPrivate,e.IsRecurring=!!e.IsRecurring,e.IsService=!!e.IsService,e.AutopayFailedOn=e.AutopayFailedOn&&new Date(e.AutopayFailedOn.replace(/ /g,"T")+"Z"),e.AutopayCancelledOn=e.AutopayCancelledOn&&new Date(e.AutopayCancelledOn.replace(/ /g,"T")+"Z"),e.DayEndsUTC=e.DayEndsUTC&&e.DayEndsUTC.split(",").map(n=>new Date(n.replace(/ /g,"T")+"Z")),e.DayStartsUTC=e.DayStartsUTC&&e.DayStartsUTC.split(",").map(n=>new Date(n.replace(/ /g,"T")+"Z")),e.EndUTC=e.EndUTC&&new Date(e.EndUTC.replace(/ /g,"T")+"Z"),e.EndOnUTC=e.EndOnUTC&&new Date(e.EndOnUTC.replace(/ /g,"T")+"Z"),e.StartUTC=e.StartUTC&&new Date(e.StartUTC.replace(/ /g,"T")+"Z"),e.Lessons&&e.Lessons.length&&e.Lessons.forEach(n=>{n.AbsenceSetOn=n.AbsenceSetOn&&new Date(n.AbsenceSetOn.replace(/ /g,"T")+"Z"),n.EndUTC=n.EndUTC&&new Date(n.EndUTC.replace(/ /g,"T")+"Z"),n.MeetingEndOn=n.MeetingEndOn&&new Date(n.MeetingEndOn.replace(/ /g,"T")+"Z"),n.MeetingStartOn=n.MeetingStartOn&&new Date(n.MeetingStartOn.replace(/ /g,"T")+"Z"),n.StartUTC=n.StartUTC&&new Date(n.StartUTC.replace(/ /g,"T")+"Z")}),e.IsParsed=!0)})}fixStripe4Customer(t){t.IsCardAllowed=!!t.IsCardAllowed}fixSubscriptionsFromMySQL(t){t.forEach(e=>{e.IsParsed||(e.IsEligible4RegistrationCancel=!!e.IsEligible4RegistrationCancel,e.IsRecurring=!!e.IsRecurring,e.IsStudentContinuing=!!e.IsStudentContinuing,e.AutopayRenewsOn=e.AutopayRenewsOn&&new Date(e.AutopayRenewsOn.replace(/-/g,"/")),e.ExpiresOn=e.ExpiresOn&&new Date(e.ExpiresOn.replace(/-/g,"/")),e.NextSubscriptionStartOn=e.NextSubscriptionStartOn&&new Date(e.NextSubscriptionStartOn.replace(/-/g,"/")),e.RegistrationRenewsOn=e.RegistrationRenewsOn&&new Date(e.RegistrationRenewsOn.replace(/-/g,"/")),e.StartOn=e.StartOn&&new Date(e.StartOn.replace(/-/g,"/")),e.AutopayCancelledOn=e.AutopayCancelledOn&&new Date(e.AutopayCancelledOn.replace(/ /g,"T")+"Z"),e.AutopayExecutedOn=e.AutopayExecutedOn&&new Date(e.AutopayExecutedOn.replace(/ /g,"T")+"Z"),e.AutopayFailedOn=e.AutopayFailedOn&&new Date(e.AutopayFailedOn.replace(/ /g,"T")+"Z"),e.CreatedOn=e.CreatedOn&&new Date(e.CreatedOn.replace(/ /g,"T")+"Z"),e.NextSubscriptionCreatedOn=e.NextSubscriptionCreatedOn&&new Date(e.NextSubscriptionCreatedOn.replace(/ /g,"T")+"Z"),e.ScheduleEndUTC=e.ScheduleEndUTC&&new Date(e.ScheduleEndUTC.replace(/ /g,"T")+"Z"),e.ScheduleStartUTC=e.ScheduleStartUTC&&new Date(e.ScheduleStartUTC.replace(/ /g,"T")+"Z"),e.ContinuationSessionEndOnUTC=e.ContinuationSessionEndOnUTC&&new Date(e.ContinuationSessionEndOnUTC.replace(/ /g,"T")+"Z"),e.ContinuationSessionEndUTC=e.ContinuationSessionEndUTC&&new Date(e.ContinuationSessionEndUTC.replace(/ /g,"T")+"Z"),e.ContinuationSessionStartUTC=e.ContinuationSessionStartUTC&&new Date(e.ContinuationSessionStartUTC.replace(/ /g,"T")+"Z"),e.SessionEndOnUTC=e.SessionEndOnUTC&&new Date(e.SessionEndOnUTC.replace(/ /g,"T")+"Z"),e.SessionEndUTC=e.SessionEndUTC&&new Date(e.SessionEndUTC.replace(/ /g,"T")+"Z"),e.SessionStartUTC=e.SessionStartUTC&&new Date(e.SessionStartUTC.replace(/ /g,"T")+"Z"),e.SubscriptionParameters=e.SubscriptionParameters?JSON.parse(e.SubscriptionParameters):[],e.SubscriptionParameters.forEach(n=>{n.IsMain=!!n.IsMain}),e.IsParsed=!0)})}fixSubscriptionCancellationInfoFromMySQL(t){t.CreditInfo.IsCancellable=!!t.CreditInfo.IsCancellable,t.Registrations.forEach(e=>{e.IsUsed=!!e.IsUsed,e.EndOn=e.EndOn&&new Date(e.EndOn.replace(/ /g,"T")+"Z"),e.StartOn=e.StartOn&&new Date(e.StartOn.replace(/ /g,"T")+"Z")})}fixTermsOfServiceFromMySQL(t){t.Agreements=t.Agreements?JSON.parse(t.Agreements):[],t.Agreements.forEac
1h(e=>{e.CreatedOn=e.CreatedOn&&new Date(e.CreatedOn.replace(/ /g,"T")+"Z")}),t.EndOn=t.EndOn&&new Date(t.EndOn.replace(/ /g,"T")+"Z"),t.StartOn=t.StartOn&&new Date(t.StartOn.replace(/ /g,"T")+"Z")}fixTransactionsFromMySQL(t){t.forEach(e=>{e.IsPrivate=!!e.IsPrivate,e.CreatedOn=e.CreatedOn&&new Date(e.CreatedOn.replace(/ /g,"T")+"Z"),e.Refunds=e.Refunds?JSON.parse(e.Refunds):[],e.Refunds.forEach(n=>{n.IssuedOn=n.IssuedOn&&new Date(n.IssuedOn.replace(/ /g,"T")+"Z")})})}static{this.\u0275fac=function(e){return new(e||l)(h(m))}}static{this.\u0275prov=C({token:l,factory:l.\u0275fac,providedIn:"root"})}}return l})();export{S as a,R as b}; 2//# sourceMappingURL=chunk-7A7QB7BT.js.map
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.