1import{a as Ne,b as ye}from"./chunk-SOALPBKR.js";import"./chunk-5SUYXXLB.js";import{a as be}from"./chunk-MDYRLE7M.js";import"./chunk-7M6EN6WN.js";import{a as Te}from"./chunk-XQWM5BA7.js";import"./chunk-5OCBQHZH.js";import{a as ve,b as Ie}from"./chunk-ESWQC2N3.js";import"./chunk-F5NEDBPS.js";import"./chunk-BSNIVX46.js";import{a as Re}from"./chunk-HNZTPJZL.js";import{c as Se}from"./chunk-WMAF4CYB.js";import"./chunk-IO3OEIRD.js";import{a as Pe}from"./chunk-WB767OKL.js";import"./chunk-FKPH67JI.js";import"./chunk-TTHLLFKZ.js";import"./chunk-W6XWRPMQ.js";import"./chunk-UDYKCGM2.js";import{a as Ae}from"./chunk-DUBDA5I5.js";import"./chunk-2EGQTMCD.js";import{a as _e}from"./chunk-7P732B7U.js";import"./chunk-7MNF5R2Q.js";import{a as Ce,b as Ee}from"./chunk-7BGXM7C2.js";import{a as xe}from"./chunk-L7TAS3UG.js";import"./chunk-GOXLFHLM.js";import"./chunk-RDVEWJO4.js";import{a as Le}from"./chunk-JK63ZSRW.js";import"./chunk-L3QBQ4CV.js";import"./chunk-PN36LI6L.js";import"./chunk-NPWLU3FF.js";import"./chunk-XX44AAJQ.js";import"./chunk-M5NGPF4X.js";import"./chunk-DEN3UOL2.js";import"./chunk-T7IKMQF3.js";import"./chunk-HOKECVCH.js";import"./chunk-KZAY7NVX.js";import{a as q}from"./chunk-G4ZY7JFK.js";import{a as w}from"./chunk-RXHZJSEK.js";import"./chunk-ZTIEMCFU.js";import{A as de,Ca as fe,G as me,J as ce,K as pe,P as ge,R as he,w as e,z as ue}from"./chunk-XJWSUVQ4.js";import"./chunk-67HI2W2E.js";import"./chunk-4TCDFOMC.js";import"./chunk-5GO7VENV.js";import"./chunk-LPUVZF6T.js";import"./chunk-TZPEKIVR.js";import{f as V,j as D}from"./chunk-PDPAZAMV.js";import"./chunk-VSCNX4KP.js";import{e as le,f as U,g as O}from"./chunk-DIMPJ3WT.js";import{a as k}from"./chunk-SU6BI5DG.js";import{g as ae,k as oe,l as se}from"./chunk-VHPZKCN4.js";import"./chunk-PLEU77LE.js";import"./chunk-VUVEY76X.js";import{Ab as I,Fa as C,Fb as R,Ic as E,Kc as _,La as v,Tc as ie,Yb as B,Zb as G,cc as h,dc as f,dd as c,ec as L,ed as p,fc as P,ga as te,jc as T,ka as re,kb as s,kc as b,l as S,la as u,od as y,sc as N,sd as K,td as ne,uc as Y}from"./chunk-CSSHMB2L.js";import{a as m,d as x,f as A}from"./chunk-JQMSBYWQ.js";var nt=x((Jt,St)=>{St.exports={LICENSE_PLATE_INPUT_PLACEHOLDER:"",LICENSE_PLATE_INPUT_REQUIRED:"",LICENSE_PLATE_INPUT_FORMAT:"",STATE_INPUT_PLACEHOLDER:"",STATE_INPUT_REQUIRED:"",CONTINUE_BTN_LABEL:"",LEGEND:"",AGREE_TO_VIN_LOOKUP_CHECKBOX_LABEL:"",BEFORE_YOU_CONTINUE:"",ERROR_MESSAGE_PART_1:"We\u2019re sorry, but we are either unable to complete this transaction online or your subscription plan is ineligible to transfer. For assistance, please call ",CONTACT_PHONE_TEXT:"888-539-7474",CONTACT_PHONE_HREF:"tel:+1-888-539-7474",OR:"",CHAT_LINK_TEXT:"",CHAT_LINK_HREF:"",ERROR_MESSAGE_PART_2:" for help."}});var at=x((er,vt)=>{vt.exports={LICENSE_PLATE_INPUT_PLACEHOLDER:"License Plate Number",LICENSE_PLATE_INPUT_REQUIRED:"Enter a license plate number.",LICENSE_PLATE_INPUT_FORMAT:"Please enter a valid license plate number.",CONTINUE_BTN_LABEL:"CONTINUE",LEGEND:"License Plate Lookup",AGREE_TO_VIN_LOOKUP_CHECKBOX_LABEL:"I agree to a VIN lookup",BEFORE_YOU_CONTINUE:"You must agree with the VIN lookup before continuing.",ERROR_MESSAGE_PART_1:"We\u2019re sorry, but we are either unable to complete this transaction online or your subscription plan is ineligible to transfer. For assistance, please ",CONTACT_PHONE_TEXT:"866-635-2493",CONTACT_PHONE_HREF:"tel:+1-866-635-2493",OR:" or call ",CHAT_LINK_TEXT:"chat with an agent",CHAT_LINK_HREF:"https://www.siriusxm.com/contactus",ERROR_MESSAGE_PART_2:" to speak with a Listener Care agent."}});var ot=x((tr,It)=>{It.exports={LICENSE_PLATE_INPUT_PLACEHOLDER:"",LICENSE_PLATE_INPUT_REQUIRED:"",LICENSE_PLATE_INPUT_FORMAT:"",CONTINUE_BTN_LABEL:"",LEGEND:"",AGREE_TO_VIN_LOOKUP_CHECKBOX_LABEL:"",BEFORE_YOU_CONTINUE:"",ERROR_MESSAGE_PART_1:"D\xE9sol\xE9s, nous ne pouvons pas compl\xE9ter cette transaction en ligne ou votre abonnement n\u2019est pas admissible \xE0 un transfert. Pour de l\u2019aide, veuillez composer le ",CONTACT_PHONE_TEXT:"888-539-7474",CONTACT_PHONE_HREF:"tel:+1-888-539-7474",OR:"",CHAT_LINK_TEXT:"",CHAT_LINK_HREF:"",ERROR_MESSAGE_PART_2:""}});var st=x((Sr,bt)=>{bt.exports={HTML_PAGE_TITLE:""}});var lt=x((vr,Nt)=>{Nt.exports={HTML_PAGE_TITLE:"Find your account using your license plate number | SiriusXM",TITLE:"Find your account using your license plate number",PARAGRAPH:"We'll use this to find the matching VIN, which is linked to your radio."}});var ut=x((Ir,yt)=>{yt.exports={HTML_PAGE_TITLE:""}});var ct=/^4[0-9]{12}(?:[0-9]{3})?$/,pt=/^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}
1|27[01][0-9]|2720)[0-9]{12}$/,gt=/^3[47][0-9]{13}$/,ht=/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,ft=/^6(?:011|5[0-9]{2})[0-9]{12}$/,Lt=/^(?:2131|1800|35\d{3})\d{11}$/,Ct=/^81[0-6][0-9]{13}$|^817[0-1][0-9]{12}$|^621094[0-9]{10}$|^62[4-6][0-9]{13}$|^628[2-8][0-9]{12}$|^62292[6-9][0-9]{10}$|^6229[3-9][0-9]{11}$|^623[0-6][0-9]{12}$|^6237[0-8][0-9]{11}$|^62379[0-6][0-9]{10}$/,Et=/^(?=.*\b(CVV|CVC|SecurityID|SecurityCode|Security\s?#)\b)(?=.*([0-9]{3,})).+/i,_t=/^([A-Za-z0-9]{8}|[A-Za-z0-9]{10}|[A-Za-z0-9]{12}|[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4})$/,xt=/^[A-Za-z0-9]{17}$/;function $(n){return n.value&&n.value.trim().indexOf(" ")===-1?{atLeastTwoWords:!0}:null}var At=/\D*(?:\d\D*){13,}/;function g(n){return At.test(n.value)?{containsCCInfo:!0}:null}function ke(n){let r=n.value?n.value.trim():null;return!r||!(ct.test(r)||pt.test(r)||gt.test(r)||ht.test(r)||ft.test(r)||Lt.test(r)||Ct.test(r))?{inValidCard:!0}:null}function a(n){return Et.test(n.value)?{cvvExclusion:!0}:null}function Ue(n){let r=n?.value?.trim();return!r||!(_t.test(r)||xt.test(r))?{invalidRadioIdOrVin:!0}:null}var Oe=/(^[A-HJ-UVWXYZ]{1}\d{1}[A-Z]{1}(\s?)\d{1}[A-HJ-UVWXYZ]{1}\d{1})/,F=/^[a-zA-ZÃ-ÿ- ]*$/,M=/^((?!\.)[a-zA-ZÃ-ÿ-0-9-_+.]*)[@.]([a-zA-ZÃ-ÿ0-9-_]+)(\.[a-zA-ZÃ-ÿ0-9-_]+(\.[a-zA-ZÃ-ÿ0-9-_]+)?[^.\W])$/,qe=/^[\w-+\.]+@([\w-]+\.)+[a-zA-Z]{1,6}$/,Dt={creditCardName:{us:{"en-US":[e.required,a,e.pattern(/^[a-zA-Z',\\.\-\s\\]+$/),$,e.minLength(2),e.maxLength(100)]},ca:{"en-CA":[e.required,a,e.pattern(/^[a-zA-ZÃ-ÿ',\\.\-\s\\]+$/),$,e.minLength(2),e.maxLength(100)],"fr-CA":[e.required,a,e.pattern(/^[a-zA-ZÃ-ÿ',\\.\-\s\\]+$/),$,e.minLength(2),e.maxLength(100)]}},creditCardNumber:{us:{"en-US":[e.required,ke,e.minLength(14),e.maxLength(19)]}},creditCardExpMonth:{us:{"en-US":[e.required]}},creditCardExpYear:{us:{"en-US":[e.required]}},creditCardExpDate:{us:{"en-US":[e.required,e.minLength(5),e.maxLength(5)]}},creditCardSecurityCode:{us:{"en-US":[e.required,e.pattern(/\d/),e.minLength(3),e.maxLength(4)]}},creditCardState:{us:{"en-US":[e.required]}},zipCode:{us:{"en-US":[e.required,a,e.pattern(/(^\d{5}$)|(^\d{5}\-\d{4}$)/),e.minLength(5),e.maxLength(10)]},ca:{"en-CA":[e.required,a,e.pattern(Oe),e.minLength(6),e.maxLength(7)],"fr-CA":[e.required,a,e.pattern(Oe),e.minLength(6),e.maxLength(7)]}},address:{us:{"en-US":[a,g,e.required,e.pattern(/^[\w,#\-\.\s\']+$/),e.minLength(2),e.maxLength(100)]},ca:{"en-CA":[a,g,e.required,e.pattern(/^[\wÃ-ÿ,#\-\.\s\']+$/),e.minLength(2),e.maxLength(100)],"fr-CA":[a,g,e.required,e.pattern(/^[\wÃ-ÿ,#\-\.\s\']+$/),e.minLength(2),e.maxLength(100)]}},optionalAddress:{us:{"en-US":[a,g,e.pattern(/^[\w,#\-\.\s\']+$/),e.minLength(2),e.maxLength(100)]},ca:{"en-CA":[a,g,e.pattern(/^[\wÃ-ÿ,#\-\.\s\']+$/),e.minLength(2),e.maxLength(100)],"fr-CA":[a,g,e.pattern(/^[\wÃ-ÿ,#\-\.\s\']+$/),e.minLength(2),e.maxLength(100)]}},city:{us:{"en-US":[e.required,g,a,e.pattern(/^[\w\s]+$/),e.minLength(2),e.maxLength(50)]},ca:{"en-CA":[e.required,g,a,e.pattern(/^[\wÃ-ÿ'\-\.\s]+$/),e.minLength(2),e.maxLength(50)],"fr-CA":[e.required,g,a,e.pattern(/^[\wÃ-ÿ'\-\.\s]+$/),e.minLength(2),e.maxLength(50)]}},province:{us:{"en-US":[e.required]},ca:{"en-CA":[e.required]}},firstName:{us:{"en-US":[e.required,a,e.pattern(/^[a-zA-Z]+$/),e.minLength(1),e.maxLength(50)]},ca:{"en-CA":[e.required,a,e.pattern(F),e.minLength(1),e.maxLength(50)],"fr-CA":[e.required,a,e.pattern(F),e.minLength(1),e.maxLength(50)]}},lastName:{us:{"en-US":[e.required,a,e.pattern(/^[a-zA-Z]+$/),e.minLength(1),e.maxLength(50)]},ca:{"en-CA":[e.required,a,e.pattern(F),e.minLength(1),e.maxLength(50)],"fr-CA":[e.required,a,e.pattern(F),e.minLength(1),e.maxLength(50)]}},email:{us:{"en-US":[e.required,a,e.minLength(5),e.pattern(qe)]},ca:{"en-CA":[e.required,a,e.minLength(5),e.pattern(M)],"fr-CA":[e.required,a,e.minLength(5),e.pattern(M)]}},optionalEmail:{us:{"en-US":[a,e.minLength(5),e.pattern(qe)]},ca:{"en-CA":[a,e.minLength(5),e.pattern(M)],"fr-CA":[a,e.minLength(5),e.pattern(M)]}},phoneNumber:{us:{"en-US":[e.required,e.pattern(/\d/),e.maxLength(10),e.minLength(10)]}},optionalPhoneNumber:{us:{"en-US":[e.pattern(/\d/),e.maxLength(10),e.minLength(10)]}},radioId:{us:{"en-US":[e.required,e.pattern(/^\w+$/),e.minLength(8),e.maxLength(12)]}},radioIdOrVin:{us:{"en-US":[e.required,Ue]}},accountNumber:{us:{"en-US":[e.required,e.pattern(/^[a-zA-Z]{0,2}[0-9]*(-?[0-9])*$/)]}},vin:{us:{"en-US":[e.required,e.pattern(/^\w+$/),e.minLength(11),e.maxLength(17)]}},licencePlateNumber:{us:{"en-US":[e.required,e.minLength(2)]}},agreement:{us:{"en-US":[e.requiredTrue]}},userName:{us:{"en-US":[e.required]}},password:{us:{"en-US":[e.required]}},registrationUserName:{us:{"en-US":[e.required,e.pattern(/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{1,6}))?$|^[a-zA-Z0-9]{6,20}$/)]}},pinNumber:{us:{"en-US":[e.required]}},gcExpY:{us:{"en-US":[e.required]}},gcExpM:{us:{"en-US":[e.required]}},gcCVV:{us:{"en-US":[e.required,e.pattern(/\d/),e.minLength(3),e.maxLength(3)]}},promoCode:{us:{"en-US":[e.required]}}};var Ve=/^[\w-+\.]+@([\w-]+\.)+[a-zA-Z]{1,6}$/,De=/^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*(\.[a-zA-Z]{1,6}))?$|^[a-zA-Z0-9]{6,20}$/,we=/^((?!\.)[a-zA-ZÃ-ÿ-0-9-_+.]*)[@.]([a-zA-ZÃ-ÿ0-9-_]+)(\.[a-zA-ZÃ-ÿ0-9-_]+(\.[a-zA-ZÃ-ÿ0-9-_]+)?[^.\W])$/,$e=/^(?=.*\b(CVV|CVC|SecurityID|SecurityCode|Security\s?#)\b)(?=.*([0-9]{3,})).+/i,Fe=/^4[0-9]{12}(?:[0-9]{3})?$/,Me=/^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}
1|27[01][0-9]|2720)[0-9]{12}$/,X=/^3[47][0-9]{13}$/,Ze=/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,ze=/^6(?:011|5[0-9]{2})[0-9]{12}$/,He=/^(?:2131|1800|35\d{3})\d{11}$/,We=/^81[0-6][0-9]{13}$|^817[0-1][0-9]{12}$|^621094[0-9]{10}$|^62[4-6][0-9]{13}$|^628[2-8][0-9]{12}$|^62292[6-9][0-9]{10}$|^6229[3-9][0-9]{11}$|^623[0-6][0-9]{12}$|^6237[0-8][0-9]{11}$|^62379[0-6][0-9]{10}$/,j=/^[a-zA-Z',\\.\-\s\\]+$/,Q=/^[a-zA-ZÃ-ÿ',\\.\-\s\\]+$/;var Be=/\D*(?:\d\D*){13,}/,Ge=/^[\w,#\-\.\s\']+$/,Ye=/^[\wÃ-ÿ,#\-\.\s\']+$/,Ke=/(^\d{5}$)|(^\d{5}\-\d{4}$)/,Xe=/(^[A-HJ-UVWXYZ]{1}\d{1}[A-Z]{1}(\s?)\d{1}[A-HJ-UVWXYZ]{1}\d{1})/,J=/^([A-Za-z0-9]{8}|[A-Za-z0-9]{10}|[A-Za-z0-9]{12}|[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4})$/,je=/^([A-Za-z0-9]{8}|[A-Za-z0-9]{10}|[A-Za-z0-9]{12}|[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}|\*{1,8}[A-Za-z0-9]{4})$/,Z=/^[A-Za-z0-9]{17}$/,Qe=/^([[0-9]{10}|[0-9]{3}-[0-9]{3}-[0-9]{4})$/;function o(n,r){return n.reduce((t,i)=>t||i(r),null)}function ee(n,r){return n.reduce((t,i)=>i(r)?t+1:t,0)}function Je(n,r){return n.reduce((t,i)=>t||!i(r),!1)}function et(){let n=new Date,r=n.getMonth()+1,t=n.getFullYear();return{month:r,year:t}}var it=(()=>{class n{constructor(t){this._translateService=t}get email(){return t=>o([e.required,this.cvvExclusion,e.minLength(5),this._emailPatternRequirement],t)}get optionalEmail(){return t=>o([this.cvvExclusion,e.minLength(5),this._emailPatternRequirement],t)}get emailForLookup(){return t=>o([e.required,e.minLength(5),this._emailPatternRequirement],t)}get username(){return t=>o([e.required,e.minLength(6),this._usernamePatternRequirement],t)}get optionalUsername(){return t=>o([e.minLength(6),this._usernamePatternRequirement],t)}get password(){return t=>o([e.required,e.minLength(8),this._passwordCharRequirement],t)}get namePiece(){return t=>o([e.required,this.cvvExclusion,e.pattern(this._isCanada?Q:j),e.minLength(1),e.maxLength(50)],t)}get phoneNumber(){return t=>o([e.required,e.pattern(/\d/),e.maxLength(10),e.minLength(10)],t)}get streetAddressLine(){return t=>o([this.cvvExclusion,this.creditCardExclusion,e.required,e.pattern(this._isCanada?Ye:Ge),e.minLength(2),e.maxLength(255)],t)}get city(){return t=>o([e.required,this.creditCardExclusion,this.cvvExclusion,e.pattern(this._isCanada?/^[\wÃ-ÿ'\-\.\s]+$/:/^[\w\s]+$/),e.minLength(2),e.maxLength(30)],t)}get stateProvince(){return t=>o([e.required],t)}get postalCode(){return t=>o([e.required,this.cvvExclusion,e.pattern(this._isCanada?Xe:Ke),e.minLength(this._isCanada?6:5),e.maxLength(this._isCanada?7:10)],t)}get countryCode(){return t=>o([e.required],t)}get creditCardName(){return t=>o([e.required,this.cvvExclusion,e.pattern(this._isCanada?Q:j),this._atLeastTwoWords,e.minLength(2),e.maxLength(100)],t)}get creditCardNumber(){return t=>o([e.required,this._allowedCreditCardPatterns,e.minLength(14),e.maxLength(19)],t)}
1get creditCardExpiredDate(){return t=>o([e.required,e.minLength(5),e.maxLength(5),this._creditCardExpirationDateCurrent],t)}cvvBasedOnCardNumberControl(t){return i=>{let l=X.test(t.value)?4:3;return o([e.required,e.pattern(/\d/),e.minLength(l),e.maxLength(l)],i)}}get cvvExclusion(){return t=>$e.test(t.value)?{cvvExclusion:!0}:null}get creditCardExclusion(){return t=>Be.test(t.value)?{containsCCInfo:!0}:null}get radioIdOrVin(){return t=>o([e.required,this._radioIdOrVinPatternRequirement],t)}get promoCode(){return t=>o([e.required],t)}get maskedRadioIdOrVin(){return t=>o([e.required,this._maskedRadioIdOrVinPatternRequirement],t)}get radioIdOrVinOrPhoneNummber(){return t=>o([e.required,this._radioIdOrVinOrPhoneNumberPatternRequirement],t)}get licensePlateNumber(){return t=>o([e.required,e.minLength(2),e.maxLength(8)],t)}get accountNumber(){return t=>o([e.required,e.pattern(/^[a-zA-Z]{0,2}[0-9]*(-?[0-9])*$/)],t)}get queryAccountNumber(){return t=>o([e.required,e.pattern(/(^[a-zA-Z]{0,2}[0-9]*(-?[0-9])*$)|(^\*{1,8}[0-9]{4}$)/)],t)}
1get basicDate(){return t=>o([e.required,e.pattern(/^\d{1,2}\/\d{1,2}\/\d{4}$/)],t)}get dateOfBirth(){return t=>o([e.required,e.pattern(/^\d{1,2}\/\d{1,2}$/),this._dateAndMonthVerification],t)}get _emailPatternRequirement(){return t=>e.pattern(this._isCanada?we:Ve)(t)?{emailPatternRequirement:!0}:null}get _usernamePatternRequirement(){return t=>e.pattern(De)(t)?{usernamePatternRequirement:!0}:null}get _passwordCharRequirement(){return t=>ee([e.pattern(/(?=.*\d)/),e.pattern(/(?=.*[a-z])/),e.pattern(/(?=.*[A-Z])/),e.pattern(/[!%&@#$^*?_~()-+,=]/)],t)>1?{passwordCharRequirement:!0}:null}get _allowedCreditCardPatterns(){return t=>Je([e.pattern(Fe),e.pattern(Me),e.pattern(X),e.pattern(Ze),...this._isCanada?[]:[e.pattern(ze)],e.pattern(He),e.pattern(We)],t)?null:{inValidCard:!0}}get _creditCardExpirationDateCurrent(){return t=>{let i=t.value,l=et();if(i){let d=i.match(/([\d]{1,2})\/*([\d]{1,2})?/);if(parseInt(`20${d[2]}`,10)<l.year||parseInt(`20${d[2]}`,10)===l.year&&parseInt(d[1],10)<l.month||i.length<5)return{invalidDate:!0}}return null}}get _atLeastTwoWords(){return t=>t.value&&t.value.trim().indexOf(" ")===-1?{atLeastTwoWords:!0}:null}get _isCanada(){return Pt.has(this._translateService.currentLang)}get _radioIdOrVinPatternRequirement(){return t=>(console.log(t),e.pattern(J)(t)&&e.pattern(Z)(t)?{radioIdOrVinPatternRequirement:!0}:null)}get _maskedRadioIdOrVinPatternRequirement(){return t=>e.pattern(je)(t)&&e.pattern(Z)(t)?{radioIdOrVinPatternRequirement:!0}:null}get _radioIdOrVinOrPhoneNumberPatternRequirement(){return t=>(console.log(t),e.pattern(J)(t)&&e.pattern(Z)(t)&&e.pattern(Qe)(t)?{radioIdOrVinPatternRequirement:!0}:null)}get _dateAndMonthVerification(){return t=>{let i=t.value?.toString();return+i?.slice(0,2)>31||+i?.slice(-2)>12?{invalidDate:!0}:null}}static{this.\u0275fac=function(i){return new(i||n)(re(le))}}static{this.\u0275prov=te({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Pt=new Set(["en-CA","fr-CA"]);function Rt(n,r){if(n&1&&P(0,"sxm-ui-form-summary-error",1),n&2){let t=Y();h("formGroup",t.form)}}function Tt(n,r){if(n&1&&(f(0,"sxm-ui-form-field-error"),E(1),c(2,"translate"),L()),n&2){let t=Y();s(),_(" ",p(2,1,t.translateKeyPrefix+".BEFORE_YOU_CONTINUE")," ")}}var H=class z extends D{constructor(){super(...arguments),this.webSdk=u(k),this.analyticsSdk=u(q),this.countryCode=this.webSdk.countryCodeDefault,this.sxmValidators=u(it),this.subscriptionId=ne.required(),this.result=K(),this.radioIdLookup=K(),this.submitted=C(!1),this.showAgreementError=C(!1),this.processing=C(!1),this.licensePlateLookupError=C(null),this.form=u(ge).group({licensePlate:["",{validators:[e.required,this.sxmValidators.licensePlateNumber],updateOn:"blur"}],regionCode:["",{validators:[e.required,...ye],updateOn:"blur"}]})}radioLookup(){return A(this,null,function*(){if(this.form.markAllAsTouched(),this.submitted.set(!0),this.processing.set(!0),this.form.valid)try{let r=this.form.value.licensePlate,t=this.form.value.regionCode,i=this.subscriptionId(),l=yield this.webSdk.domains.devices.validateSms({licensePlate:r,state:t});if(this.shouldSkipLinkingEligibilityCheck(l))return;let d=yield this.webSdk.domains.devices.infoSms({radioId:l.last4DigitsOfRadioId});if(!d.deviceInformation)throw new Error("DEVICE_NOT_FOUND");let mt=yield this.webSdk.domains.devices.getSubscriptionEligibilityDevice({subscriptionId:i,radioId:d.deviceInformation.radioId,radioInfo:d});this.result.emit(m(m({},d),mt))}catch(r){r instanceof Error&&r?.message==="MULTIPLE_VIN_FOUND"&&this.licensePlateLookupError.set("MULTIPLE_VIN_FOUND"),this.radioIdLookup.emit()}finally{this.processing.set(!1)}else{this.processing.set(!1);let r=[];this.form.get("licensePlate").errors&&r.push("Identification - Enter a valid License Plate"),this.form.get("regionCode").errors&&r.push("Identification - A state is required"),r.length>0&&this.analyticsSdk.clientSideValidationErrors({errors:r})}})}shouldSkipLinkingEligibilityCheck(r){let t=r?.atlasVehicleDeviceState?.billingSystem==="atlas",i=r?.atlasVehicleDeviceState?.billingSystem==="sms"&&r?.atlasVehicleDeviceState?.lifecycleState?.type==="trialEligible";return t||i?(this.result.emit({device:null,deviceInformation:{capabilityList:r?.capabilityList,deviceStatus:r?.deviceStatus,isVirtualRadio:r?.isVirtualRadio,radioId:r?.last4DigitsOfRadioId,billingSystem:r?.atlasVehicleDeviceState?.billingSystem,lifecycleState:r?.atlasVehicleDeviceState?.lifecycleState,vehicle:r?.atlasVehicleDeviceState?.vehicleState},isEligible:!1}),!0):!1}resetForm(r=!1){r?(this.form.markAsPristine(),this.form.markAsUntouched()):this.form.reset()}static{this.\u0275fac=(()=>{let r;return function(i){return(r||(r=v(z)))(i||z)}})()}static{this.\u0275cmp=I({type:z,selectors:[["sxm-ui-widget-form-license-plate-lookup-with-link-eligibility"]],inputs:{subscriptionId:[1,"subscriptionId"]},outputs:{result:"result",radioIdLookup:"radioIdLookup"},features:[R],decls:16,vars:21,consts:[["ngForm","ngForm"],[3,"formGroup"],[3,"ngSubmit","formGroup"],["formControlName","licensePlate","dataFieldType","licensePlate",3,"labelText","errorMsg","minLength","maxLength"],["type","region","formControlName","regi
1onCode",3,"countryCode"],["type","submit","sxm-ui-cta-processing","","sxmUiDataClickTrack","submit",1,"primary",3,"processing"]],template:function(t,i){t&1&&(B(0,Rt,1,1,"sxm-ui-form-summary-error",1),f(1,"form",2,0),N("ngSubmit",function(){return i.radioLookup()}),f(3,"fieldset")(4,"legend"),E(5),c(6,"translate"),L(),P(7,"sxm-ui-text-form-field",3),c(8,"translate"),c(9,"translate"),c(10,"translate"),P(11,"sxm-ui-dropdown",4),B(12,Tt,3,3,"sxm-ui-form-field-error"),L(),f(13,"button",5),E(14),c(15,"translate"),L()()),t&2&&(G(i.submitted()?0:-1),s(),h("formGroup",i.form),s(4),_(" ",p(6,11,i.translateKeyPrefix+".LEGEND")," "),s(2),h("labelText",p(8,13,i.translateKeyPrefix+".LICENSE_PLATE_INPUT_PLACEHOLDER"))("errorMsg",!(i.form.controls.licensePlate==null||i.form.controls.licensePlate.errors==null)&&i.form.controls.licensePlate.errors.required?p(9,15,i.translateKeyPrefix+".LICENSE_PLATE_INPUT_REQUIRED"):!(i.form.controls.licensePlate==null||i.form.controls.licensePlate.errors==null)&&i.form.controls.licensePlate.errors.minlength||!(i.form.controls.licensePlate==null||i.form.controls.licensePlate.errors==null)&&i.form.controls.licensePlate.errors.maxlength?p(10,17,i.translateKeyPrefix+".LICENSE_PLATE_INPUT_FORMAT"):"")("minLength",2)("maxLength",8),s(4),h("countryCode",i.countryCode),s(),G(i.showAgreementError()?12:-1),s(),h("processing",i.processing()),s(),_(" ",p(15,19,i.translateKeyPrefix+".CONTINUE_BTN_LABEL")," "))},dependencies:[O,he,me,ue,de,pe,ce,Se,Pe,ve,Ie,Ne,be,fe,w,U],styles:["[_nghost-%COMP%]{display:grid;gap:16px}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:grid;row-gap:32px}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%]{--formfield-bottom-margin: 0;display:grid;row-gap:16px;position:relative;margin:0;border:0;padding:0}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] legend[_ngcontent-%COMP%]{clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;position:absolute;white-space:nowrap;width:1px;height:1px}"],changeDetection:0})}};H=S([V({languageResources:{"en-CA":m({},nt()),"en-US":m({},at()),"fr-CA":m({},ot())}})],H);var dt=class W extends D{constructor(){super(...arguments),this.subscriptionId=y(()=>Ee(this.activatedRoute,"subscriptionId")),this.webSdk=u(k),this.analyticsSdk=u(q),this.router=u(oe),this.activatedRoute=u(ae),this.viewModelsLinkableDevices=u(Le),this.modalService=u(Re),this.pageRouterStateConfiguration=Ce(this.activatedRoute)||{routeUrlPrevious:{url:"/"},routeUrlNext:{url:"/"},ineligibleRadioUrl:{url:"/"},lookupYourRadioIdErrorUrl:{url:"/"}},this.lookupResult=C(null),this.deviceInformation=y(()=>this.lookupResult()?.deviceInformation??null),this.shouldDisplayTeslaAccountHelpModal=y(()=>!this.deviceInformation()||this.deviceInformation().vehicle?.make?.toLowerCase()!=="tesla"?!1:this.deviceInformation().billingSystem==="atlas"||this.deviceInformation().billingSystem==="sms"&&this.deviceInformation().lifecycleState.type==="trialEligible")}ngAfterViewInit(){this.analyticsSdk.componentImpression({name:"licenseplatelookup"})}onLookupResult(r){return A(this,null,function*(){if(this.lookupResult.set(r),this.lookupResult().device&&this.viewModelsLinkableDevices.updateRadioLookupDevice(this.lookupResult().device),this.shouldDisplayTeslaAccountHelpModal()){yield this.displayTeslaAccountHelpModal();return}this.lookupResult().isEligible?yield this.router.navigate([this.pageRouterStateConfiguration.routeUrlNext.url,this.lookupResult()?.device?.radioIdLastFour],{relativeTo:this.activatedRoute.parent,queryParamsHandling:"merge"}):yield this.router.navigate([this.pageRouterStateConfiguration.ineligibleRadioUrl.url,this.lookupResult()?.device?.radioIdLastFour],{relativeTo:this.activatedRoute.parent})})}navigateToRadioIdLookup(){return A(this,null,function*(){yield this.router.navigate([this.pageRouterStateConfiguration.lookupYourRadioIdErrorUrl.url],{relativeTo:this.activatedRoute.parent,queryParamsHandling:"merge"})})}displayTeslaAccountHelpModal(){return A(this,null,function*(){if(!this.deviceInformation())return;let{dismissed:r}=yield this.modalService.show({modalComponent:Te,inputs:{yearMakeModel:`${this.deviceInformation().vehicle.year} ${this.deviceInformation().vehicle.make} ${this.deviceInformation().vehicle.model}`}})})}static{this.\u0275fac=(()=>{let r;return function(i){return(r||(r=v(W)))(i||W)}})()}static{this.\u0275cmp=I({type:W,selectors:[["ng-component"]],features:[R],decls:12,vars:9,consts:[["header",""],["eyebrow",""],["sxm-ui-breadcrumb-single-parent","","queryParamsHandling","preserve","sxmUiDataClickTrack","ui","data-link-name","back",3,"routerLink"],["subHeadline",""],[3,"result","radioIdLookup","subscriptionId"]],template:function(t,i){t&1&&(f(0,"sxm-ui-page-template-flow"),T(1,0),f(2,"sxm-ui-page-header"),E(3),c(4,"translate"),T(5,1),P(6,"a",2),b(),T(7,3),E(8),c(9,"translate"),b(),L(),b(),f(10,"section")(11,"sxm-ui-widget-form-license-plate-lookup-with-link-eligibility",4),N("result",function(d){return i.onLookupResult(d)})("radioIdLookup",function(){return i.navigateToRadioIdLookup()}),L()()()),t&2&&(s(3),_(" ",p(4,5,i.translateKeyPrefix+".TITLE")," "),s(3),h("routerLink",ie(i.pageRouterStateConfiguration.routeUrlPrevious.url)),s(2),_(" ",p(9,7,i.translateKeyPrefix+".PARAGRAPH")," "),s(3),h("subscriptionId",i.subscriptionId()))},dependencies:[O,Ae,H,se,xe,_e,w,U],encapsulation:2,changeDetection:0})}};dt=S([V({languageResources:{"en-CA":m({},st()),"en-US":m({},lt()),"fr-CA":m({},ut())}})],dt);export{dt as LookupYourLicensePlatePageComponent};
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.