1"use strict";(self.webpackChunkADOT_SSC_Web=self.webpackChunkADOT_SSC_Web||[]).push([[5085],{64438(I,F,c){c.d(F,{z:()=>m});var n=c(41360);let m=(()=>{class v{constructor(f){this.viewContainerRef=f}static{this.\u0275fac=function(g){return new(g||v)(n.rXU(n.c1b))}}static{this.\u0275dir=n.FsC({type:v,selectors:[["","component-host",""]],standalone:!1})}}return v})()},14006(I,F,c){c.d(F,{D:()=>n});class n{}},85576(I,F,c){c.d(F,{F:()=>n});class n{constructor(){this.allowPlateChange=!0,this.isSpecializedPlate=!1,this.isValidated=!0,this.forChangePlateBackground=!1}}},31340(I,F,c){c.d(F,{W:()=>n});class n{constructor(v){this.issuePlate=v}}},80925(I,F,c){c.d(F,{q:()=>n});var n=function(m){return m[m.LostStolen=2]="LostStolen",m[m.Damaged=3]="Damaged",m}(n||{})},79823(I,F,c){c.d(F,{A:()=>n});class n{constructor(v){this.plateType=v,this.changeBackground=!1}}},43281(I,F,c){c.d(F,{b:()=>f});var n=c(54763),m=c(77912),v=c(89417),p=c(41360);let f=(()=>{class g extends m.${constructor(R,b,e){super(),this.dialog=R,this.context=b,this.fb=e}ngOnInit(){this.issuePlate=this.context.issuePlate,this.form=this.fb.group({personalizedPlateReason:[null,v.k0.required]})}continue(){this.form.valid&&(this.issuePlate.personalizedPlateReason=this.form.controls.personalizedPlateReason.value,this.dialog.close(this.issuePlate))}cancel(){this.dialog.close(!1)}static{this.\u0275fac=function(b){return new(b||g)(p.rXU(n.m),p.rXU(n.e,8),p.rXU(v.ze))}}static{this.\u0275cmp=p.VBU({type:g,selectors:[["plate-personalization-reason-modal"]],standalone:!1,features:[p.Vt3],decls:20,vars:3,consts:[[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","labelButtons",1,"modal-title"],[1,"modal-body"],["novalidate","","role","form","autocomplete","off",3,"formGroup"],[1,"mvd_alert__text--green","notranslate"],[1,"mvd_form-group"],["rows","15","cols","15","maxlength","100","type","text","id","personalizedPlateReason","name","personalizedPlateReason","formControlName","personalizedPlateReason"],[1,"modal-footer"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click"],["type","submit",1,"btn--primary",3,"click","disabled"]],template:function(b,e){1&b&&(p.j41(0,"div",0)(1,"button",1),p.bIt("click",function(){return e.cancel()}),p.j41(2,"span",2),p.EFF(3,"\xd7"),p.k0s()(),p.j41(4,"h4",3),p.EFF(5,"Plate Personalization"),p.k0s()(),p.j41(6,"div",4)(7,"form",5)(8,"label"),p.EFF(9,"Please explain the meaning of: \xa0 "),p.j41(10,"span",6),p.EFF(11),p.k0s()(),p.j41(12,"div",7),p.nrm(13,"textarea",8),p.k0s()()(),p.j41(14,"div",9)(15,"div",10)(16,"button",11),p.bIt("click",function(){return e.cancel()}),p.EFF(17,"Cancel"),p.k0s(),p.j41(18,"button",12),p.bIt("click",function(){return e.continue()}),p.EFF(19,"Continue"),p.k0s()()()),2&b&&(p.R7$(7),p.Y8G("formGroup",e.form),p.R7$(4),p.JRh(e.issuePlate.plateNumber),p.R7$(7),p.Y8G("disabled",!e.form.controls.personalizedPlateReason.valid))},dependencies:[v.qT,v.me,v.BC,v.cb,v.tU,v.j4,v.JD],encapsulation:2})}}return g})()},46128(I,F,c){c.d(F,{W:()=>f});var n=c(77912),m=c(41360),v=c(54763),p=c(27202);let f=(()=>{class g extends n.${constructor(R,b){super(),this.dialog=R,this.plateService=b}ngOnInit(){}continue(){this.dialog.close(this.plateService.getModuleRoute()+"/personalize")}cancel(){this.dialog.close(!1)}static{this.\u0275fac=function(b){return new(b||g)(m.rXU(v.m),m.rXU(p.r))}}static{this.\u0275cmp=m.VBU({type:g,selectors:[["plate-registration-unavailable-modal"]],standalone:!1,features:[m.Vt3],decls:13,vars:0,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],[1,"mvd_btn--group"],["type","submit",1,"btn--primary",3,"click"]],template:function(b,e){1&b&&(m.j41(0,"div",0)(1,"button",1),m.bIt("click",function(){return e.cancel()}),m.j41(2,"span",2),m.EFF(3,"\xd7"),m.k0s()(),m.j41(4,"h4",3),m.EFF(5,"Plate Text"),m.k0s()(),m.j41(6,"div",4)(7,"p"),m.EFF(8,"The personalized plate text is unavailable. Please choose new plate text."),m.k0s()(),m.j41(9,"div",5)(10,"div",6)(11,"button",7),m.bIt("click",function(){return e.continue()}),m.EFF(12,"Continue"),m.k0s()()())},encapsulation:2})}}return g})()},15085(I,F,c){c.d(F,{PlatesModule:()=>fi});var n=c(49870),m=c(66416),v=c(40482),p=c(70980),f=c(77912),g=c(79823),D=c(54763),R=c(85576);class b{constructor(){this.payload=null}}var e=c(41360),h=c(27202),y=c(56410),u=c(16213);function G(a,s){if(1&a&&(e.j41(0,"b",18),e.EFF(1),e.nI1(2,"currency"),e.k0s()),2&a){const t=e.XpG(2);e.R7$(),e.SpI("",e.brH(2,1,t.plate.specialtyPlateFee,"USD","symbol")," ")}}function E(a,s){1&a&&(e.j41(0,"b"),e.EFF(1,"Postage Only"),e.k0s())}function te(a,s){1&a&&(e.qex(0),e.EFF(1,"for Specialty Plate"),e.bVm())}function ae(a,s){if(1&a&&(e.qex(0),e.EFF(1),e.bVm()),2&a){const t=e.XpG(2);e.R7$(),e.JRh(t.plate.specialtyPlateMessage)}}function ie(a,s){if(1&a&&(e.j41(0,"li"),e.DNE(1,G,3,5,"b",17)(2,E,2,0,"b",9)(3,te,2,0,"ng-container",9)(4,ae,2,1,"ng-container",9),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!t.plate.postageOnly),e.R7$(),e.Y8G("ngIf",t.plate.postageOnly),e.R7$(),e.Y8G("ngIf",!t.plate.specialtyPlateMessage),e.R7$(),e.Y8G("ngIf",t.plate.specialtyPlateMessage)}}function le(a,s){if(1&a&&(e.j41(0,"li")(1,"b",18),e.EFF(2),e.nI1(3,"currency"),e.k0s(),e.EFF(4," for Personalization"),e.k0s()),2&a){const t=e.XpG();e.R7$(2),e.JRh(e.brH(3,1,t.plate.personalizedPlateFee,"USD","symbol"))}}function se(a,s){if(1&a&&e.nrm(0,"p",19),2&a){const t=e.XpG();e.Y8G("innerHtml",t.plate.charityMessage,e.npT)}}function ne(a,s){if(1&a&&e.nrm(0,"p",20),2&a){const t=e.XpG();e.Y8G("innerHtml",t.plate.unselectableMessage,e.npT)}}function oe(a,s){if(1&a){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.select())}),e.EFF(1,"Select"),e.k0s()}}function re(a,s){if(1&a){const t=e.RV6();e.j41(0,"button",22),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.selectAndPersonalize())}),e.EFF(1,"Select & Personalize"),e.k0s()}}let ce=(()=>{class a extends f.${constructor(t,l,i,o){super(),this.dialog=t,this.context=l,this.plateService=i,this.titleRegService=o,this.militaryConfirmation=!1,this.isSpecializedPlate=!1,this.hasUnselectableMessage=!1}ngOnInit(){this.plate=this.context.plateType,this.changeBackgroun
1d=this.context.changeBackground,this.canPersonalize=this.plate.canBePersonalized,this.issuePlate=this.plateService.getStoredIssuePlate()||new R.F,this.isSpecializedPlate=this.plate.isSpecializedPlate,this.mustPersonalize=this.plate.mustBePersonalized,this.hasUnselectableMessage=!!this.plate.unselectableMessage}select(){const t=new b;if(this.plateService.storePlateType(this.plate),this.issuePlate.plateNumber="",this.issuePlate.plateTypeId=this.plate.plateTypeId,this.issuePlate.isPersonalized=!1,this.issuePlate.isSpecializedPlate=this.plate.isSpecializedPlate,this.issuePlate.plateTypeDisplayValue=this.plate.plateTypeDisplayValue,this.issuePlate.registrationRenewVehicle)t.action="route",t.payload=this.plateService.getModuleRoute()+"/select";else if(this.changeBackground){const l=this.titleRegService.getStoredVehicle();null==l?(t.action="route",t.payload="/titleregistration/plates/changebackground"):(t.action="issue",this.issuePlate.plateNumber=l.plateNumber,this.issuePlate.vehicleId=l.vehicleId,this.issuePlate.forChangePlateBackground=!0)}else t.action="route",t.payload=this.plateService.getModuleRoute()+"/vehicles";this.plateService.storeIssuePlate(this.issuePlate),this.dialog.close(t)}selectAndPersonalize(){this.plateService.storePlateType(this.plate),this.plateService.storeIssuePlate(this.issuePlate);const t=new b;t.action="route",t.payload=this.plateService.getModuleRoute()+"/personalize",this.dialog.close(t)}cancel(){this.dialog.close(!1)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(D.m),e.rXU(D.e,8),e.rXU(h.r),e.rXU(y.H))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-type-modal"]],standalone:!1,features:[e.Vt3],decls:24,vars:8,consts:[[1,"modal-header"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-title"],[1,"notranslate"],[1,"modal-body"],[1,"plate__preview__image"],[3,"src"],[1,"list--bulletless--content"],[4,"ngIf"],[3,"innerHtml",4,"ngIf"],["class","mvd_alert__text--red notranslate",3,"innerHtml",4,"ngIf"],[1,"modal-footer"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click"],["class","btn--primary","type","button",3,"click",4,"ngIf"],["class","btn--primary","type","submit",3,"click",4,"ngIf"],["class","mvd_alert__text--green notranslate",4,"ngIf"],[1,"mvd_alert__text--green","notranslate"],[3,"innerHtml"],[1,"mvd_alert__text--red","notranslate",3,"innerHtml"],["type","button",1,"btn--primary",3,"click"],["type","submit",1,"btn--primary",3,"click"]],template:function(l,i){1&l&&(e.j41(0,"div",0)(1,"button",1),e.bIt("click",function(){return i.cancel()}),e.j41(2,"span",2),e.EFF(3,"\xd7"),e.k0s()(),e.j41(4,"h4",3)(5,"span",4),e.EFF(6),e.k0s(),e.EFF(7," Plate"),e.k0s()(),e.j41(8,"div",5)(9,"div",6),e.nrm(10,"img",7),e.k0s(),e.j41(11,"ul",8),e.DNE(12,ie,5,4,"li",9)(13,le,5,5,"li",9),e.j41(14,"li"),e.DNE(15,se,1,1,"p",10),e.k0s(),e.j41(16,"li"),e.DNE(17,ne,1,1,"p",11),e.k0s()()(),e.j41(18,"div",12)(19,"div",13)(20,"button",14),e.bIt("click",function(){return i.cancel()}),e.EFF(21,"Close"),e.k0s(),e.DNE(22,oe,2,0,"button",15)(23,re,2,0,"button",16),e.k0s()()),2&l&&(e.R7$(6),e.JRh(i.plate.plateTypeDisplayValue),e.R7$(4),e.FS9("src",i.plate.plateUrl,e.B4B),e.R7$(2),e.Y8G("ngIf",i.isSpecializedPlate),e.R7$(),e.Y8G("ngIf",i.canPersonalize||i.changeBackground),e.R7$(2),e.Y8G("ngIf",i.plate.charityMessage),e.R7$(2),e.Y8G("ngIf",i.hasUnselectableMessage),e.R7$(5),e.Y8G("ngIf",!i.mustPersonalize&&!i.hasUnselectableMessage),e.R7$(),e.Y8G("ngIf",i.canPersonalize&&!i.changeBackground&&!i.hasUnselectableMessage))},dependencies:[u.bT,u.oe],encapsulation:2})}}return a})();var K=c(21020),Q=c(51553),P=c(35106),r=c(89417),k=c(40515);function pe(a,s){1&a&&e.nrm(0,"div",12)}function ue(a,s){if(1&a&&e.nrm(0,"validation-results",19),2&a){const t=e.XpG(2);e.Y8G("validationResults",t.validationResults)}}function de(a,s){if(1&a){const t=e.RV6();e.j41(0,"a",20),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG(2);return e.Njj(o.plateModal(i))}),e.j41(1,"div",21),e.nrm(2,"img",22),e.k0s(),e.j41(3,"div",23)(4,"p",24),e.EFF(5),e.k0s()()()}if(2&a){const t=s.$implicit,l=e.XpG(2);e.AVh("disabled",l.inProgress),e.R7$(2),e.FS9("src",t.plateUrl,e.B4B),e.R7$(3),e.JRh(t.plateTypeDisplayValue)}}function he(a,s){if(1&a&&(e.j41(0,"div",13),e.DNE(1,ue,1,1,"validation-results",14),e.j41(2,"h2",15),e.EFF(3,"Select a Plate Style"),e.k0s(),e.DNE(4,de,6,4,"a",16),e.j41(5,"div",17)(6,"p")(7,"em"),e.EFF(8," You can also dis
1play your plate digitally. "),e.j41(9,"a",18),e.EFF(10,"Learn about digital license plates and how to get one."),e.k0s()()()()()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.showValidationComponent),e.R7$(3),e.Y8G("ngForOf",t.plateTypes)}}let A=(()=>{class a extends f.${constructor(t,l,i,o,d){super(),this.platesService=t,this.cartService=l,this.modal=i,this.router=o,this.route=d,this.inProgress=!1}ngOnInit(){this.loaded=!1,this.useHelpContent("#CONTENT/Specialty_Plate/Select_Plate_Style.htm");let t=this.platesService.getPlateTypes(null);const l=this.platesService.getStoredIssuePlate(),i=this.route.snapshot.params.vehicleId;l&&l.registrationRenewVehicle&&l.registrationRenewVehicle.vehicleId?t=this.platesService.getPlateTypes(l.registrationRenewVehicle.vehicleId):i&&(t=this.platesService.getPlateTypes(+i)),this.changeBackground=!!this.route.snapshot.data.changeBackground,t.pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(o=>{o&&(this.plateTypes=o)},o=>{this.handleValidationResult(o)})}plateModal(t){let l=this,i=new g.A(t);return i.changeBackground=this.changeBackground,this.modal.open(ce,i).afterClosed().toPromise().then(o=>{if(o)if("route"==o.action)l.loaded=!1,this.router.navigate([o.payload],{skipLocationChange:!1});else if("issue"==o.action){this.inProgress=!0,this.clearValidation();const d=this.platesService.getStoredIssuePlate();this.platesService.createIssuePlate(d).pipe((0,p.j)(()=>this.inProgress=!1)).subscribe(()=>{this.router.navigate([this.cartService.getCartRoute()],{skipLocationChange:!1})},_=>{this.handleValidationResult(_)})}})}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(K.m),e.rXU(Q.B),e.rXU(P.Ix),e.rXU(P.nX))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-type-list"]],standalone:!1,features:[e.Vt3],decls:21,vars:2,consts:[[1,"header--nav"],[1,"header__buttons","hidden"],[1,"plate__filter"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],[1,"mvd_container"],["class","spinner",4,"ngIf"],["class","mvd_container__full",4,"ngIf"],[1,"spinner"],[1,"mvd_container__full"],[3,"validationResults",4,"ngIf"],[1,"mvd_btn--group"],["class","plate--card notranslate","href","javascript:void(0)",3,"disabled","click",4,"ngFor","ngForOf"],[1,"well__footer"],["href","https://azdot.gov/mvd/services/registration-plates-title/license-plates-placards#section-4","target","_blank"],[3,"validationResults"],["href","javascript:void(0)",1,"plate--card","notranslate",3,"click"],[1,"plate__preview__image"],[3,"src"],[1,"plate__footer"],[1,"plate__type"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plates"),e.k0s()(),e.j41(4,"li",1)(5,"select",2)(6,"option",3),e.
1EFF(7,"Most Popular"),e.k0s(),e.j41(8,"option",4),e.EFF(9,"Military"),e.k0s(),e.j41(10,"option",5),e.EFF(11,"School"),e.k0s(),e.j41(12,"option",6),e.EFF(13,"Sports"),e.k0s(),e.j41(14,"option",7),e.EFF(15,"Example of Some Category"),e.k0s(),e.j41(16,"option",8),e.EFF(17,"All Plates"),e.k0s()()()(),e.j41(18,"div",9),e.DNE(19,pe,1,0,"div",10)(20,he,11,2,"div",11),e.k0s()),2&l&&(e.R7$(19),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[u.Sq,u.bT,r.xH,r.y7,k.z],encapsulation:2})}}return a})();var H=c(45648),Z=c(14006),O=c(82182),w=c(39590),J=c(99799),W=c(99413),V=c(10404),B=c(4078);const me=a=>({mvd_alert:a});function _e(a,s){1&a&&e.nrm(0,"div",3)}function fe(a,s){1&a&&(e.j41(0,"div",30),e.EFF(1,"Plate Text is required"),e.k0s())}function ve(a,s){1&a&&(e.j41(0,"div",30),e.EFF(1,"Plate Text contains invalid characters"),e.k0s())}function ge(a,s){1&a&&(e.j41(0,"div",30),e.EFF(1,"Plate Text too long"),e.k0s())}function be(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",10)(1,"label",31)(2,"input",32),e.bIt("change",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.toggleDisabled())}),e.k0s(),e.EFF(3," Disabled Plate "),e.k0s()()}}function Pe(a,s){if(1&a&&(e.j41(0,"span",33)(1,"Strong",34),e.EFF(2),e.k0s(),e.EFF(3,"is not available. Please try again. "),e.k0s()),2&a){const t=e.XpG(2);e.R7$(2),e.SpI(" ",t.searchModel.plateNumber," ")}}function Fe(a,s){if(1&a&&(e.j41(0,"span",35)(1,"Strong",34),e.EFF(2),e.k0s(),e.EFF(3,"\xa0is\xa0available! "),e.k0s()),2&a){const t=e.XpG(2);e.R7$(2),e.JRh(t.searchModel.plateNumber)}}function Re(a,s){1&a&&(e.j41(0,"span",33),e.EFF(1," Your request has changed, please check availability again. "),e.k0s())}function ye(a,s){if(1&a){const t=e.RV6();e.j41(0,"a",36),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectDifferentPlate())}),e.EFF(1,"Change Plate"),e.k0s()}}function Te(a,s){if(1&a){const t=e.RV6();e.j41(0,"button",37),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.continueWithoutPersonalization())}),e.EFF(1,"No personalization"),e.k0s()}}function ke(a,s){if(1&a&&(e.qex(0),e.j41(1,"li"),e.EFF(2,"Use up to"),e.j41(3,"span",34),e.EFF(4),e.k0s(),e.EFF(5,"characters including letters, numbers, spaces, and half spaces."),e.k0s(),e.j41(6,"li"),e.EFF(7,"Use a forward slash (/) to indicate a half space and the spacebar (blank) to indicate a full space."),e.k0s(),e.j41(8,"li"),e.EFF(9,"A space counts as 1 character, and a 1/2 space count as 1/2 a character. The space will not display on temporary registration. Disability Symbol counts as 1 character and will display on temporary registration."),e.k0s(),e.j41(10,"li"),e.EFF(11,"A 1/2 space cannot be used next to another 1/2 space."),e.k0s(),e.bVm()),2&a){const t=e.XpG(2);e.R7$(4),e.SpI(" ",t.plateType.numberOfDigits," ")}}function Ce(a,s){if(1&a&&(e.qex(0),e.j41(1,"li"),e.EFF(2,"Use up to"),e.j41(3,"span",34),e.EFF(4),e.k0s(),e.EFF(5,"characters including letters, numbers, spaces."),e.k0s(),e.j41(6,"li"),e.EFF(7,"Use the spacebar (blank) to indicate a full space."),e.k0s(),e.j41(8,"li"),e.EFF(9,"A space counts as 1 character, the space will not display on temporary registration. Disability Symbol counts as 1 character and will display on temporary registration."),e.k0s(),e.bVm()),2&a){const t=e.XpG(2);e.R7$(4),e.SpI(" ",t.plateType.numberOfDigits," ")}}function Ie(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"form",6),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.searchPlate())}),e.j41(3,"h2"),e.EFF(4,"Check Text Availability"),e.j41(5,"button",7),e.EFF(6,"Check Availability"),e.k0s()(),e.j41(7,"fieldset")(8,"div",8)(9,"div",9)(10,"div",10)(11,"label",11),e.EFF(12,"Plate Text"),e.k0s(),e.nrm(13,"input",12),e.j41(14,"div",13),e.DNE(15,fe,2,0,"div",14)(16,ve,2,0,"div",14)(17,ge,2,0,"div",14),e.k0s()(),e.DNE(18,be,4,0,"div",15)(19,Pe,4,1,"span",16)(20,Fe,4,1,"span",17)(21,Re,2,0,"span",16),e.k0s(),e.j41(22,"div",18)(23,"div",19),e.EFF(24,"(Text placement is approximated)"),e.k0s(),e.nrm(25,"plate-preview",20),e.DNE(26,ye,2,0,"a",21),e.k0s()()()(),e.j41(27,"div",22)(28,"div",23),e.DNE(29,Te,2,0,"button",24),e.j41(30,"button",25),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.continue())}),e.EFF(31,"Continue with this personalization"),e.k0s()()(),e.j41(32,"div")(33,"p")(34,"b"),e.EFF(35,"Already have a personalized plate?"),e.k0s()(),e.j41(36,"p"),e.EFF(37,"If you want to keep your existing personalization but change the background, "),e.j41(38,"a",26),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onUpdateClicked())}),e.EFF(39,"update your plate background."),e.k0s()()()(),e.j41(40,"div",27)(41,"h2"),e.EFF(42,"Personalize your License Plate"),e.k0s(),e.j41(43,"ul",28)(44,"li"),e.EFF(45,"Your plate number must be unique."),e.k0s(),e.DNE(46,ke,12,1,"ng-container",29)(47,Ce,10,1,"ng-container",29),e.j41(48,"li"),e.EFF(49,"Spaces may not be used at the beginning or end of your selection."),e.k0s(),e.j41(50,"li"),e.EFF(51,"Your selection is centered on the plate automatically."),e.k0s(),e.j41(52,"li"),e.EFF(53,"Physical license plate may look slightly different from the preview generated."),e.k0s()()()()}if(2&a){const t=e.XpG();e.R7$(2),e.Y8G("formGroup",t.form),e.R7$(3),e.Y8G("disabled",!t.form.controls.plateText.valid),e.R7$(8),e.Y8G("ngClass",e.eq3(21,me,!t.form.controls.plateText.pristine&&(t.form.hasError("required")||t.form.hasError("pattern")))),e.R7$(2),e.Y8G("ngIf",t.form.hasError("required")&&!t.form.controls.plateText.pristine),e.R7$(),e.Y8G("ngIf",t.form.controls.plateText.hasError("pattern")),e.R7$(),e.Y8G("ngIf",t.form.controls.plateText.hasError("maxLength")),e.R7$(),e.Y8G("ngIf",t.disabled),e.R7$(),e.Y8G("ngIf",t.showValidationComponent&&!t.isAvailable&&t.disabledPlate==t.disabledInLastSearch),e.R7$(),e.Y8G("ngIf",t.isAvailable&&t.disabledPlate==t.disabledInLastSearch),e.R7$(),e.Y8G("ngIf",t.disabledPlate!=t.disabledInLastSearch&&t.submitted),e.R7$(4),e.FS9("plateText",t.searchModel.plateNumber),e.FS9("plateUrl",t.plateType.plateUrl),e.FS9("plateTextColor",t.plateType.textColor),e.FS9("plateTextJustification",t.plateType.plateTextJustification),e.Y8G("showDisabled",t.disabledInLastSearch)("showText",t.isAvailable),e.R7$(),e.Y8G("ngIf",t.showChangePlate),e.R7$(3),e.Y8G("ngIf",!t.mustPersonalize),e.R7$(),e.Y8G("disabled",!t.isAvailable||!t.form.controls.plateText.valid||t.disabledPlate!=t.disabledInLastSearch),e.R7$(16),e.Y8G("ngIf",t.halfSpaceEnabled),e.R7$(),e.Y8G("ngIf",!t.halfSpaceEnabled)}}let Ee=(()=>{class a extends f.${constructor(t,l,i,o,d,_,N,x,U){super(),this.plateService=t,this.router=l,this.route=i,this.fb=o,this.storageService=d,this.regRenewalService=_,this.customerService=N,this.guestAccountService=x,this.claimsService=U,this.mustPersonalize=!1}ngOnInit(){this.loaded=!1,this.showChangePlate=!0,this.useHelpContent("#CONTENT/Specialty_Plate/Personalize_Plate.htm"),this.halfSpaceEnabled=this.appSett
1ings.personalizePlateHalfSpaceEnabled,this.plateRegex=this.halfSpaceEnabled?H.E.PlateWithHalfSpaces:H.E.Plate,this.issuePlate=this.plateService.getStoredIssuePlate()?this.plateService.getStoredIssuePlate():this.storageService.getValue("guestPlate"),this.plateType=this.plateService.getStoredPlateType(),this.issuePlate&&this.issuePlate.forPlateReplacement?this.plateType?this.finishInitialization():(this.plateService.getPlateTypes().subscribe(t=>{this.plateType=t.find(l=>l.plateTypeDisplayValue==this.issuePlate.plateTypeDisplayValue),this.finishInitialization()},t=>{this.handleValidationResult(t)}),this.mustPersonalize=!0,this.showChangePlate=!1):(this.plateType=this.plateService.getStoredPlateType()?this.plateService.getStoredPlateType():this.storageService.getValue("guestPlateType"),this.finishInitialization())}finishInitialization(){(this.storageService.getValue("guestPlate")||this.storageService.getValue("guestPlateType"))&&(this.storageService.removeValue("guestPlate"),this.storageService.removeValue("guestPlateType")),this.plateService.storePlateType(this.plateType),this.plateService.storeIssuePlate(this.issuePlate),this.issuePlate&&this.issuePlate.registrationRenewVehicle&&(this.showChangePlate=this.issuePlate.allowPlateChange),null!=this.plateType||this.issuePlate&&this.issuePlate.forPlateReplacement?(this.form=this.fb.group({plateText:[null,r.k0.compose([r.k0.required,this.validatePlateLength(this.plateType.numberOfDigits),r.k0.pattern(this.plateRegex)])],disabled:[!!this.issuePlate&&this.issuePlate.isDisabled]}),this.searchModel=new Z.D,this.toggleDisabled(),this.numberOfDigits=this.plateType.numberOfDigits,this.submitted=!1,this.plateService.isDisabled().pipe((0,p.j)(()=>this.loaded=!0)).subscribe(t=>{this.disabled=t},t=>{this.handleValidationResult(t)})):this.router.navigate(["../list"],{relativeTo:this.route})}validatePlateLength(t){return function(o){var d=0;return o.value?.split("").forEach(_=>{d+="/"==_?.5:1}),d<=t?null:{maxLength:!0}}}selectDifferentPlate(){(!this.issuePlate||!this.issuePlate.registrationRenewVehicle)&&this.plateService.storePlateType(null),this.router.navigate(["../list"],{relativeTo:this.route,skipLocationChange:null!=this.issuePlate&&null!=this.issuePlate.registrationRenewVehicle})}searchPlate(){this.disabledInLastSearch=this.disabledPlate,this.isAvailable=!1,this.showValidationComponent=!1,this.searchModel.plateNumber=String(this.form.get("plateText").value).toUpperCase(),this.searchModel.plateTypeId=this.plateType.plateTypeId,this.searchModel.isDisabled=this.disabledPlate,this.plateService.checkPlateAvailability(this.searchModel).subscribe(t=>{this.isAvailable=!0},t=>{this.handleValidationResult(t),this.form.get("plateText").setValue(null)}),this.submitted=!0}continue(){this.issuePlate.plateNumber=this.searchModel.plateNumber,this.issuePlate.plateTypeId=this.searchModel.plateTypeId,this.issuePlate.isPersonalized=!0,this.issuePlate.isSpecializedPlate=this.plateType.isSpecializedPlate,this.issuePlate.plateTypeDisplayValue=this.plateType.plateTypeDisplayValue,this.issuePlate.isDisabled=this.disabledPlate,this.plateService.storeIssuePlate(this.issuePlate),this.router.navigate(["./reason"],{relativeTo:this.route,skipLocationChange:null!=this.issuePlate&&null!=this.issuePlate.registrationRenewVehicle})}continueWithoutPersonalization(){this.issuePlate.plateNumber="",this.issuePlate.plateTypeId=this.plateType.plateTypeId,this.issuePlate.isPersonalized=!1,this.issuePlate.isSpecializedPlate=this.plateType.isSpecializedPlate,this.issuePlate.plateTypeDisplayValue=this.plateType.plateTypeDisplayValue,this.issuePlate.isDisabled=this.disabledPlate,this.plateService.storeIssuePlate(this.issuePlate),null!=this.issuePlate&&null!=this.issuePlate.registrationRenewVehicle?this.router.navigate(this.disabled?[this.plateService.getModuleRoute()+"/select"]:[this.regRenewalService.getModuleRoute()+"/fees"],{skipLocationChange:!1}):this.router.navigate(["../vehicles"],{relativeTo:this.route,skipLocationChange:!1})}toggleDisabled(){if(this.disabledPlate=!!this.form.get("disabled").value,this.plateType&&this.plateType.plateConfigurations){let t=this.plateType.plateConfigurations.find(l=>l.isDisabled==this.disabledPlate&&1==l.isPeronalized);t&&(this.plateType.numberOfDigits=t.numberOfDigits,this.plateType.plateUrl=t.plateUrl)}this.numberOfDigits=this.plateType.numberOfDigits,this.form.get("plateText").setValidators([r.k0.required,this.validatePlateLength(this.plateType.numberOfDigits),r.k0.pattern(this.plateRegex)])}onUpdateClicked(){this.router.navigate(["../changebackground"],{relativeTo:this.route})}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(P.Ix),e.rXU(P.nX),e.rXU(r.ze),e.rXU(O.R),e.rXU(w.T),e.rXU(J.m),e.rXU(W.R),e.rXU(V.B))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["personalize-plate-component"]],standalone:!1,features:[e.Vt3],decls:6,vars:2,consts:[[1,"header--nav"],["class","loading-overlay",4,"ngIf"],["class","mvd_container",4,"ngIf"],[1,"loading-overlay"],[1,"mvd_container"],[1,"mvd_container__main"],["novalidate","","role","form","autocomplete","off",3,"ngSubmit","formGroup"],["type","submit",1,"icon--save","btn--primary",3,"disabled"],[1,"row"],[1,"col-sm-3","col-md-4","col-lg-4","mvd_form-group"],[1,"mvd_form-group"],["for","plateText"],["type","text","id","plateText","name","plateText","formControlName","plateText","maxlength","10",3,"ngClass"],[1,"mvd_alert__validation"],["class","mvd_alert__rule",4,"ngIf"],["class","mvd_form-group",4,"ngIf"],["class","mvd_alert--message__warning",4,"ngIf"],["class","mvd_alert--message__success",4,"ngIf"],[1,"offset-sm-2","col-sm-6","offset-md-1","col-md-7","offset-lg-1","col-lg-7","mvd_form-group","plate--preview"],[1,"plate__preview__disclaimer"],[3,"plateText","plateUrl","plateTextColor","plateTextJustification","showDisabled","showText"],["href","javascript:void(0)","class","plate__preview__link",3,"click",4,"ngIf"],[1,"well__footer"],[1,"mvd_btn--group"],["class","btn--default","type","button",3,"click",4,"ngIf"],["type","submit",1,"btn--primary",3,"click","disabled"],["href","javascript:void(0)",3,"click"],[1,"mvd_container__right"],[1,"list--bulleted--content"],[4,"ngIf"],[1,"mvd_alert__rule"],["for","disabled"],["type","checkbox","id","disabled","name","disabled","formControlName","disabled",3,"change"],[1,"mvd_alert--message__warning"],[1,"notranslate"],[1,"mvd_alert--message__success"],["href","javascript:void(0)",1,"plate__preview__link",3,"click"],["type","button",1,"btn--default",3,"click"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plates"),e.k0s()()(),e.DNE(4,_e,1,0,"div",1)(5,Ie,54,23,"div",2)),2&l&&(e.R7$(4),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[u.YU,u.bT,r.qT,r.me,r.Zm,r.BC,r.cb,r.tU,r.j4,r.JD,B.o],encapsulation:2})}}return a})();function Se(a,s){1&a&&e.nrm(0,"div",3)}function je(a,s){if(1&a){const t=e.RV6();e.j41(0,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectDifferentPlate())}),e.EFF(1,"Change Plate"),e.k0s()}}function De(a,s){if(1&a){const t=e.RV6();e.j41(0,"a",18),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changeText())}),e.EFF(1,"Change Text"),e.k0s()}}function Ve(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"h2"),e.EFF(3,"Personalize Your License Plate"),e.k0s(),e.j41(4,"fieldset")(5,"form",6)(6,"div",7)(7,"div",8)(8,"label",9),e.EFF(9,"Please explain the meaning of"),e.j41(10,"span",10),e.EFF(11),e.k0s()(),e.nrm(12,"textarea",11),e.k0s(),e.j41(13,"div",12)(14,"div",13),e.EFF(15,"(Text placement is approximated)"),e.k0s(),e.nrm(16,"plate-preview",14),e.DNE(17,je,2,0,"a",15)(18,De,2,0,"a",15),e.k0s()()()(),e.j41(19,"div",16)(20,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.continue())}),e.EFF(21,"Continue"),e.k0s()()()()}if(2&a){const t=e.XpG();e.R7$(5),e.Y8G("formGroup",t.form),e.R7$(6),e.SpI(" ",t.issuePlate.plateNumber,""),e.R7$(5),e.FS9("plateText",t.issuePlate.plateNumber),e.FS9("plateUrl",t.plateType.plateUrl),e.FS9("plateTextColor",t.plateType.textColor),e.FS9("plateTextJustification",t.plateType.plateTextJustification),e.Y8G("showDisabled",t.issuePlate.isDisabled)("showText",!0),e.R7$(),e.Y8G("ngIf",t.showChangePlate),e.R7$(),e.Y8G("ngIf",t.showChangeText),e.R7$(2),e.Y8G("disabled",!t.form.controls.personalizedPlateReason.valid)}}let Ne=(()=>{class a extends f.${constructor(t,l,i,o,d){super(),this.plateService=t,this.regRenewalService=l,this.router=i,this.route=o,this.fb=d,this.showChangeText=!0}ngOnInit(){this.loaded=!1,this.showChangePlate=!0,this.issuePlate=this.plateService.getStoredIssuePlate(),this.useHelpContent("#CONTENT/Specialty_Plate/Personalize_Plate_Explain.htm"),this.issuePlate&&this.issuePlate.registrationRenewVehicle&&(this.showChangePlate=this.issuePlate.allowPlateChange),this.issuePlate.forPlateReplacement&&(this.showChangePlate=!1,this.showChangeText=!1),null==this.issuePlate||null==this.issuePlate.plateTypeId||null==this.issuePlate.plateNumber?this.router.navigate(["../../list"],{relativeTo:this.route}):(this.plateType=this.plateService.getStoredPlateType(),this.form=this.fb.group({personalizedPlateReason:[null,r.k0.required]}),this.loaded=!0)}selectDifferentPlate(){(!this.issuePlate||!this.issuePlate.registrationRenewVehicle)&&(this.plateService.storeIssuePlate(null),this.plateService.storePlateType(null)),this.router.navigate(["../../list"],{relativeTo:this.route,skipLocationChange:null!=this.issuePlate&&null!=this.issuePlate.registrationRenewVehicle})}changeText(){(!this.issuePlate||!this.issuePlate.registrationRenewVehicle)&&(this.issuePlate.plateNumber="",this.plateService.storeIssuePlate(this.issuePlate)),this.router.navigate(["../"],{relativeTo:this.route,skipLocationChange:null!=this.issuePlate&&null!=this.issuePlate.registrationRenewVehicle})}continue(){this.issuePlate.personalizedPlateReason=this.form.value.personalizedPlateReason,this.issuePlate.isValidated=!0,this.issuePlate.registrationRenewVehicle?(this.plateService.storeIssuePlate(this.issuePlate),this.router.navigate([this.regRenewalService.getModuleRoute()+"/fees"],{skipLocationChange:!1})):this.issuePlate.forPlateReplacement?(this.issuePlate.personalizedPlateReason=this.form.controls.personalizedPlateReason.value,this.plateService.storeIssuePlate(this.issuePlate),this.router.navigateByUrl("titleregistration/plates/replace/fees/"+this.issuePlate.vehicleId)):this.router.navigate(["../../vehicles"],{relativeTo:this.route})}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(w.T),e.rXU(P.Ix),e.rXU(P.nX),e.rXU(r.ze))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["personalize-plate-reason-component"]],standalone:!1,features:[e.Vt3],decls:6,vars:2,consts:[[1,"header--nav"],["class","loading-overlay",4,"ngIf"],["class","mvd_container",4,"ngIf"],[1,"loading-overlay"],[1,"mvd_container"],[1,"mvd_container__main"],["novalidate","","role","form","autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-sm-7","col-md-6","col-lg-7","mvd_form-group"],["for","personalizedPlateReason"],[1,"n
1otranslate"],["rows","15","cols","15","maxlength","100","type","text","id","personalizedPlateReason","name","personalizedPlateReason","formControlName","personalizedPlateReason",1,"plate__textarea"],[1,"col-sm-5","col-md-6","col-lg-5","mvd_form-group","plate--preview"],[1,"plate__preview__disclaimer"],[3,"plateText","plateUrl","plateTextColor","plateTextJustification","showDisabled","showText"],["href","javascript:void(0)","class","plate__preview__link",3,"click",4,"ngIf"],[1,"well__footer"],["type","button",1,"btn--primary",3,"click","disabled"],["href","javascript:void(0)",1,"plate__preview__link",3,"click"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plates"),e.k0s()()(),e.DNE(4,Se,1,0,"div",1)(5,Ve,22,11,"div",2)),2&l&&(e.R7$(4),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[u.bT,r.qT,r.me,r.BC,r.cb,r.tU,r.j4,r.JD,B.o],encapsulation:2})}}return a})();var ee=c(96048),$=c(99886);let xe=(()=>{class a extends f.${constructor(t,l,i){super(),this.dialogRef=l,this.vehicle=i}ngOnInit(){}continue(){this.dialogRef.close(!0)}renewRegistration(){this.dialogRef.close(!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(ee.Vw),e.rXU(D.m),e.rXU(D.e,8))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-registration-renewal-fees-modal"]],standalone:!1,features:[e.Vt3],decls:21,vars:4,consts:[[1,"modal-header"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["id","labelButtons",1,"modal-title"],[1,"modal-body"],[1,"notranslate"],[1,"modal-footer"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click"],["type","submit",1,"btn--primary",3,"click"]],template:function(l,i){1&l&&(e.j41(0,"div",0)(1,"button",1),e.bIt("click",function(){return i.cancel()}),e.j41(2,"span",2),e.EFF(3,"\xd7"),e.k0s()(),e.j41(4,"h4",3),e.EFF(5,"Specialty/Personalized Plate Fees with Registration Renewal"),e.k0s()(),e.j41(6,"div",4)(7,"p"),e.EFF(8,"This vehicle registration will expire on "),e.j41(9,"span",5),e.EFF(10),e.nI1(11,"mvdDate"),e.k0s(),e.EFF(12,"."),e.k0s(),e.j41(13,"p"),e.EFF(14,"Avoid paying the specialty/personalized fee twice by ordering your specialty/personalized plate with your registration renewal."),e.k0s()(),e.j41(15,"div",6)(16,"div",7)(17,"button",8),e.bIt("click",function(){return i.renewRegistration()}),e.EFF(18,"Go to Registration Renewal"),e.k0s(),e.j41(19,"button",9),e.bIt("click",function(){return i.continue()}),e.EFF(20,"Continue without Registration Renewal"),e.k0s()()()),2&l&&(e.R7$(10),e.SpI(" ",e.i5U(11,1,null==i.vehicle?null:i.vehicle.registrationExpirationDate,"MM/dd/yyyy"),""))},dependencies:[$.s],encapsulation:2})}}return a})();var Ge=c(46128),we=c(31340),$e=c(43281),ze=c(52719),q=c(70568);function Be(a,s){1&a&&e.nrm(0,"div",20)}function Ue(a,s){if(1&a&&e.nrm(0,"validation-results",21),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function Oe(a,s){if(1&a&&(e.j41(0,"span"),e.EFF(1," on"),e.j41(2,"b",8),e.EFF(3),e.nI1(4,"mvdDate"),e.k0s()()),2&a){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.i5U(4,1,t.vehicle.registrationExpirationDate,"MMMM d, y"),"")}}function Ye(a,s){if(1&a&&(e.j41(0,"div",22)(1,"div",23)(2,"p"),e.EFF(3,"This specialty/personalized plate expires with your vehicle registration"),e.DNE(4,Oe,5,4,"span",19),e.EFF(5,". Fees for this specialty/personalized plate will be due again when you renew your registration."),e.k0s()()()),2&a){const t=e.XpG();e.R7$(4),e.Y8G("ngIf",null==t.vehicle?null:t.vehicle.registrationExpirationDate)}}function Xe(a,s){if(1&a&&(e.j41(0,"tr")(1,"td")(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",24),e.EFF(5),e.nI1(6,"currency"),e.k0s()()),2&a){const t=s.$implicit;e.R7$(3),e.JRh(t.productDisplayValue),e.R7$(2),e.SpI("",e.ii3(6,2,t.feeAmount,"USD","symbol","1.2-2"),"\xa0\xa0")}}function Le(a,s){if(1&a&&(e.j41(0,"span"),e.EFF(1," on"),e.j41(2,"b",8),e.EFF(3),e.nI1(4,"mvdDate"),e.k0s()()),2&a){const t=e.XpG();e.R7$(3),e.SpI(" ",e.i5U(4,1,t.vehicle.registrationExpirationDate,"MMMM d, y"),"")}}let Me=(()=>{class a extends f.${constructor(t,l,i,o,d,_,N,x){super(),this.plateService=t,this.regRenewalService=l,this.cartService=i,this.router=o,this.route=d,this.titleRegService=_,this.modal=N,this.location=x}ngOnInit(){if(this.loaded=!1,this.total=0,this.useHelpContent("#CONTENT/Specialty_Plate/Add_Plate_to_Cart.htm"),this.vehicle=this.titleRegService.getStoredVehicle(),null==this.vehicle)this.router.navigate(["../list",{relativeTo:this.route}]);else{this.issuePlate=this.plateService.getStoredIssuePlate(),this.issuePlate.vehicleId=this.vehicle.vehicleId,this.vehicle.plateNumber=this.issuePlate.plateNumber,this.vehicle.formattedPlateNumber=this.issuePlate.plateNumber,this.issuePlate.isValidated||(this.issuePlate.personalizedPlateReason="GUEST"),this.vehicle.plateType=this.issuePlate.plateTypeDisplayValue;var t=new Date,l=new Date;l.setDate(l.getDate()+90);var i=new Date;i.setDate(i.getDate()+365);var o=new Date(this.vehicle.registrationExpirationDate);this.registrationExpiringSoon=o>=t&&o<=l,this.registrationExpiringWithinYear=o>=t&&o<=i,this.plateService.getPlatePurchaseFees(this.issuePlate).pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(d=>{this.plateFees=d.fees,this.total=d.total},d=>{this.handleValidationResult(d)})}}submit(){if(this.inProgress=!0,!this.issuePlate.isValidated&&this.issuePlate.isPersonalized){this.showValidationComponent=!1;let t=new Z.D;t.plateNumber=this.issuePlate.plateNumber,t.plateTypeId=this.issuePlate.plateTypeId,this.plateService.checkPlateAvailability(t).subscribe(l=>{this.order()},l=>{this.modal.open(Ge.W).afterClosed().subscribe(i=>{this.router.navigate([i])})})}else this.order()}back(){this.location.back()}order(){this.registrationExpiringSoon?this.modal.open(xe,this.vehicle,"modal-lg").afterClosed().subscribe(t=>{0==t?this.router.navigate([this.regRenewalService.getModuleRoute()]):t?this.finishOrder():this.inProgress=!1}):this.finishOrder()}finishOrder(){if(!this.issuePlate.isValidated&&this.issuePlate.isPersonalized){let t=new we.W(this.issuePlate);this.modal.open($e.b,t).afterClosed().subscribe(l=>{l?this.plateService.createIssuePlate(l).subscribe(i=>{this.router.navigate([this.cartService.getCartRoute()])},i=>{this.handleValidationResult(i),this.inProgress=!1}):this.inProgress=!1})}else this.plateService.createIssuePlate(this.issuePlate).subscribe(t=>{this.router.navigate([this.cartService.getCartRoute()])},t=>{this.handleValidationResult(t),this.inProgress=!1})}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(w.T),e.rXU(K.m),e.rXU(P.Ix),e.rXU(P.nX),e.rXU(y.H),e.rXU(Q.B),e.rXU(ee.aZ))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-purchase-component"]],standalone:!1,features:[e.Vt3],decls:50,vars:13,consts:[[1,"header--nav"],["class","loading-overlay",4,"ngIf"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],[3,"vehicle"],["class","mvd_warning",4,"ngIf"],[1,"mvd_table--fee"],[1,"notranslate"],[4,"ngFor","ngForOf"],["colspan","2",1,"td--amount"],[1,"well__footer"],[1,"mvd_btn--group"],["type","submit","name","button",1,"btn--default",3,"click"],["type","submit","name","button",1,"btn--primary",3,"click","disabled"],["link","#CONTENT/Specialty_Plate/S
1pecialty_Personalized_Plates_Info.htm","text","Learn more about Specialty and Personalized Plates","icon","help_outline","position","left"],[1,"mvd_container__right"],[1,"well"],[1,"mvd_list--bulleted--content"],[4,"ngIf"],[1,"loading-overlay"],[3,"validationResults"],[1,"mvd_warning"],[1,"mvd_warning--text"],[1,"td--amount"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plate"),e.k0s()()(),e.DNE(4,Be,1,0,"div",1),e.j41(5,"div",2)(6,"div",3),e.DNE(7,Ue,1,1,"validation-results",4),e.nrm(8,"vehicle-information",5),e.DNE(9,Ye,6,1,"div",6),e.j41(10,"h2"),e.EFF(11,"Service Fees"),e.k0s(),e.j41(12,"table",7)(13,"tbody",8),e.DNE(14,Xe,7,7,"tr",9),e.k0s(),e.j41(15,"tfoot")(16,"tr")(17,"td",10)(18,"b"),e.EFF(19,"Total Amount:"),e.k0s(),e.j41(20,"span",8),e.EFF(21),e.nI1(22,"currency"),e.k0s(),e.EFF(23,"*"),e.k0s()()()(),e.j41(24,"div",11)(25,"div",12)(26,"button",13),e.bIt("click",function(){return i.back()}),e.EFF(27,"Back"),e.k0s(),e.j41(28,"button",14),e.bIt("click",function(){return i.submit()}),e.EFF(29,"Add to Cart"),e.k0s()(),e.j41(30,"p"),e.nrm(31,"helplink",15),e.k0s(),e.EFF(32," * Estimated fees. "),e.k0s()(),e.j41(33,"div",16)(34,"h2"),e.EFF(35,"\xa0"),e.k0s(),e.j41(36,"div",17)(37,"h3"),e.EFF(38,"Important Specialty/Personalized Plate Information"),e.k0s(),e.j41(39,"ul",18)(40,"li"),e.EFF(41,"Keep your current plate until your new plate arrives."),e.k0s(),e.j41(42,"li"),e.EFF(43,"No refunds or changes can be granted."),e.k0s(),e.j41(44,"li"),e.EFF(45,"All personalized plates are subject to review."),e.k0s(),e.j41(46,"li"),e.EFF(47,"This specialty/personalized plate expires with your vehicle registration"),e.DNE(48,Le,5,4,"span",19),e.EFF(49,". Fees for this specialty/personalized plate will be due again when you renew your registration."),e.k0s()()()()()),2&l&&(e.R7$(4),e.Y8G("ngIf",!i.loaded),e.R7$(3),e.Y8G("ngIf",i.showValidationComponent),e.R7$(),e.Y8G("vehicle",i.vehicle),e.R7$(),e.Y8G("ngIf",i.registrationExpiringWithinYear),e.R7$(5),e.Y8G("ngForOf",i.plateFees),e.R7$(7),e.SpI(" ",e.ii3(22,8,i.total,"USD","symbol","1.2-2"),""),e.R7$(7),e.Y8G("disabled",i.inProgress),e.R7$(20),e.Y8G("ngIf",null==i.vehicle?null:i.vehicle.registrationExpirationDate))},dependencies:[u.Sq,u.bT,k.z,ze.z,q.i,u.oe,$.s],encapsulation:2})}}return a})(),Ae=(()=>{class a{constructor(t,l){this.platesService=t,this.regRenewalService=l,this.platesService.storeIssuePlate(null),this.platesService.storePlateType(null),this.regRenewalService.storeRegistrationRenewalVehicle(null)}ngOnInit(){}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(w.T))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["app-plate"]],standalone:!1,decls:1,vars:0,template:function(l,i){1&l&&e.nrm(0,"plate-type-list")},dependencies:[A],encapsulation:2})}}return a})();var T=c(12672),S=c(64438),j=c(5779),Y=c(78532);function He(a,s){if(1&a&&e.nrm(0,"validation-results",6),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function Je(a,s){1&a&&e.nrm(0,"div",7)}function We(a,s){1&a&&(e.j41(0,"th"),e.EFF(1,"Registration Expiration"),e.k0s())}function qe(a,s){if(1&a&&(e.j41(0,"td")(1,"span",11),e.EFF(2,"Registration Expiration"),e.k0s(),e.j41(3,"span",12),e.EFF(4),e.nI1(5,"mvdDate"),e.k0s()()),2&a){const t=s.$implicit;e.R7$(4),e.JRh(e.bMT(5,1,t.registrationExpirationDate))}}function Ke(a,s){if(1&a){const t=e.RV6();e.j41(0,"vehicle-list-selector",8),e.bIt("onSelect",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetIssuePlate())}),e.DNE(1,We,2,0,"ng-template",9)(2,qe,6,3,"ng-template",10),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("vehicles",t.vehicles)("addedCols",1)("selectVehiclePath","/titleregistration/plates/replace/fees/")("showBodyStyle",!0)("showPlateColumn",!0)}}let Qe=(()=>{class a extends f.${constructor(t){super(),this.plateService=t}ngOnInit(){this.loaded=!1,this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),this.plateService.getPlateReplaceVehicles().pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(t=>{this.vehicles=t},t=>{this.handleValidationResult(t)})}resetIssuePlate(){this.plateService.storeIssuePlate(null)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-replacement-component"]],standalone:!1,features:[e.Vt3],decls:13,vars:3,consts:[[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],["class","spinner",4,"ngIf"],[3,"vehicles","addedCols","selectVehiclePath","showBodyStyle","showPlateColumn","onSelect",4,"ngIf"],[3,"validationResults"],[1,"spinner"],[3,"onSelect","vehicles","addedCols","selectVehiclePath","showBodyStyle","showPlateColumn"],["pTemplate","header"],["pTemplate","body"],[1,"p-column-title"],[1,"notranslate"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Plate Replacement"),e.k0s()()(),e.j41(4,"div",1)(5,"div",2),e.DNE(6,He,1,1,"validation-results",3),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Select the vehicle you want to replace the plate on."),e.k0s(),e.DNE(11,Je,1,0,"div",4)(12,Ke,3,5,"vehicle-list-selector",5),e.k0s()()),2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(5),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[u.bT,j.Ei,k.z,Y.b,$.s],encapsulation:2})}}return a})();
1var C=c(13360),X=c(90612),L=c(28490);const Ze=a=>["/titleregistration/vehicles",a,"title","org"],et=a=>({color:a});function tt(a,s){if(1&a&&e.nrm(0,"validation-results",29),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function at(a,s){1&a&&(e.j41(0,"div",32),e.EFF(1,"A Date, VIN or Plate Number is Required"),e.k0s())}function it(a,s){if(1&a&&(e.j41(0,"div",30),e.DNE(1,at,2,0,"div",31),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("dateVinOrPlateNumberRequired"))}}function lt(a,s){1&a&&(e.j41(0,"div",32),e.EFF(1,"End date must be on or after start date"),e.k0s())}function st(a,s){if(1&a&&(e.j41(0,"div",30),e.DNE(1,lt,2,0,"div",31),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("endDateBeforeStartDate"))}}function nt(a,s){1&a&&(e.j41(0,"h2"),e.EFF(1,"Vehicles"),e.k0s())}function ot(a,s){1&a&&(e.j41(0,"tr")(1,"th"),e.EFF(2,"Vehicle"),e.k0s(),e.j41(3,"th"),e.EFF(4,"License Plate"),e.k0s(),e.j41(5,"th",33),e.EFF(6,"VIN"),e.k0s(),e.j41(7,"th"),e.EFF(8,"Registration Expiration"),e.k0s(),e.j41(9,"th",34),e.EFF(10,"Select"),e.k0s()())}function rt(a,s){if(1&a&&(e.j41(0,"div",43)(1,"div",44),e.nrm(2,"img",45),e.k0s(),e.j41(3,"div",46),e.EFF(4),e.k0s()()),2&a){const t=e.XpG().$implicit;e.R7$(2),e.FS9("src",t.plateUrl,e.B4B),e.R7$(),e.ZvI("plate__preview__",t.plateTextJustification,""),e.Y8G("ngStyle",e.eq3(6,et,t.plateColor)),e.R7$(),e.JRh(t.formattedPlateNumber||t.plateNumber)}}function ct(a,s){if(1&a&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.plateType)}}function pt(a,s){1&a&&(e.j41(0,"span",48),e.EFF(1,"No Plate Assigned"),e.k0s())}function ut(a,s){if(1&a){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",35),e.EFF(3,"Vehicle"),e.k0s(),e.j41(4,"a",36),e.EFF(5),e.k0s()(),e.j41(6,"td",37),e.DNE(7,rt,5,8,"div",38)(8,ct,2,1,"span",39)(9,pt,2,0,"span",40),e.k0s(),e.j41(10,"td")(11,"span",35),e.EFF(12,"VIN"),e.k0s(),e.j41(13,"span",41),e.EFF(14),e.k0s()(),e.j41(15,"td")(16,"span",35),e.EFF(17,"Registration Expiration"),e.k0s(),e.j41(18,"span",41),e.EFF(19),e.k0s()(),e.j41(20,"td")(21,"div",19)(22,"button",42),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG();return e.Njj(o.selectVehicle(i))}),e.EFF(23,"Select"),e.k0s()()()()}if(2&a){const t=s.$implicit;e.R7$(4),e.Y8G("routerLink",e.eq3(10,Ze,t.vehicleId)),e.R7$(),e.E5c("",t.year," ",t.make," ",t.model,""),e.R7$(2),e.Y8G("ngIf",t.plateNumber),e.R7$(),e.Y8G("ngIf",t.plateType),e.R7$(),e.Y8G("ngIf",!t.plateType),e.R7$(5),e.JRh(t.vin),e.R7$(5),e.JRh(t.registrationExpirationDateFormatted),e.R7$(3),e.Y8G("disabled",!t.eligible)}}function dt(a,s){1&a&&(e.j41(0,"tr")(1,"td"),e.EFF(2," No records found "),e.k0s()()),2&a&&(e.R7$(),e.BMQ("colspan",5))}function ht(a,s){}let mt=(()=>{class a extends f.${constructor(t,l,i,o){super(),this.platesService=t,this.fb=l,this.titleRegistrationService=i,this.router=o,this.dataStore=[],this.placeholder="Search by Plate Number",this.pageCount=0,this.previousPage=-1,this.first=0}ngOnInit(){this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),this.form=this.fb.group({startDate:[null],endDate:[null],plateNumber:[null],vinNumber:[null]},{validator:r.k0.compose([this.validateDateRange,this.dateVinOrPlateNumberRequiredValidator])})}resetVehicles(){this.vehicles=null,this.dataStore=null,this.first=0}getVehicles(t){this.dataStore&&this.dataStore[t.pageNumber]?(this.vehicles=this.dataStore[t.pageNumber],this.loaded=!0):this.platesService.searchPlateReplaceVehicles(t).pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(l=>{var i=l.vehicles;this.pageCount||(this.pageCount=i.length>0?i.length:1),null==this.dataStore&&(this.dataStore=new Array(Math.ceil(l.total/this.pageCount))),this.dataStore[t.pageNumber]=i,this.vehicles=this.dataStore[t.pageNumber],this.totalRecords=l.total},l=>{this.handleValidationResult(l)})}dateVinOrPlateNumberRequiredValidator(t){if(!(null!=t.controls.startDate.value||null!=t.controls.endDate.value||null!=t.controls.plateNumber.value&&0!=t.controls.plateNumber.value.length||null!=t.controls.vinNumber.value&&0!=t.controls.vinNumber.value.length))return{dateVinOrPlateNumberRequired:!0}}validateDateRange(t){return t.value.startDate<=t.value.endDate||null==t.value.endDate?null:{endDateBeforeStartDate:!0}}loadVehiclesLazy(t){this.loaded=!1;var l=this.pageCount>0?t.first/this.pageCount:0,i=new C.x;i.pageNumber=l,i.registrationFromDate=this.form.get("startDate").value&&this.searched?this.form.get("startDate").value:null,i.registrationToDate=this.form.get("endDate").value&&this.searched?this.form.get("endDate").value:null,i.plateNumber=this.form.get("plateNumber").value&&this.searched?this.form.get("plateNumber").value:null,i.vin=this.form.get("vinNumber").value&&this.searched?this.form.get("vinNumber").value:null,this.getVehicles(i)}search(){if(this.submitted=!0,this.form.valid){this.loaded=!1,this.searched=!0;var t=this.totalRecords=0;this.resetVehicles();var l=new C.x;l.pageNumber=t,l.registrationFromDate=this.form.get("startDate").value?this.form.get("startDate").value:null,l.registrationToDate=this.form.get("endDate").value?this.form.get("endDate").value:null,l.plateNumber=this.form.get("plateNumber").value?this.form.get("plateNumber").value:null,l.vin=this.form.get("vinNumber").value&&this.searched?this.form.get("vinNumber").value:null,this.getVehicles(l),this.submitted=!1}}reset(){this.loaded=this.searched=this.submitted=!1;var t=this.totalRecords=0;this.resetVehicles(),this.form.reset(),this.form.enable();var l=new C.x;l.pageNumber=t,this.getVehicles(l)}selectVehicle(t){this.titleRegistrationService.storeVehicle(t),this.platesService.storeIssuePlate(null),this.router.navigate(["/titleregistration/plates/replace/fees/"+t.vehicleId])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(r.ze),e.rXU(y.H),e.rXU(P.Ix))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-replacement-org-component"]],standalone:!1,features:[e.Vt3],decls:47,vars:16,consts:[["dt2",""],[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],["novalidate","","role","form","autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-sm-5","mvd_form-group"],["for","startDate"],["inputId","startDate","formControlName","startDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["class","mvd_alert__validation",4,"ngIf"],["for","endDate"],["inputId","endDate","formControlName","endDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["for","plateNumber"],["id","search","type","text","autocomplete","off","formControlName","plateNumber","maxlength","7",1,"autocomplete",3,"keyup.enter","placeholder"],[1,"col-sm-5","col-md-5","mvd_form-group"],["for","vinNumber"],["id","search","type","text","placeholder","Search by VIN","autocomplete","off","formControlName","vinNumber","maxlength","25",1,"autocomplete",3,"keyup.enter"],[1,"well__footer"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click","disabled"],["type","submit",1,"btn--primary",3,"click","disabled"],[1,"card"],["styleClass","p-datatable-striped","responsiveLayout","stack",3,"onLazyLoad","firstChange","value","rows","paginator","loading","lazy","totalRecords","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pTemplate","summary"],[3,"validationResults"],[1,"mvd_alert__validation"],["class","mvd_alert__rule",4,"ngIf"],[1,"mvd_alert__rule"],[1,"th--vin"],[1,"th--actions"],[1,"p-column-title"],["href","javascript:void(0);",1,"notranslate",3,"routerLink"],[1,"plate--myvehicles"],["class","plate__preview notranslate",4,"ngIf"],["class","plate__number-type notranslate",4,"ngIf"],["class","plate__number-type",4,"ngIf"],[1,"notranslate"],[1,"btn--primary",3,"click","disabled"],[1,"plate__preview","notranslate"],[1,"plate__preview__image"],["title","Plate Preview",3,"src"],[3,"ngStyle"],[1,"plate__number-type","notranslate"],[1,"plate__number-type"]],template:function(l,i){if(1&l){const o=e.RV6();e.j41(0,"ul",1)(1,"li")(2,"h1"),e.EFF(3,"Plate Replacement"),e.k0s()()(),e.j41(4,"div",2)(5,"div",3),e.DNE(6,tt,1,1,"validation-results",4),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Select the vehicle you want to replace the plate on."),e.k0s(),e.j41(11,"fieldset")(12,"form",5)(13,"div",6)(14,"div",7)(1
15,"label",8),e.EFF(16,"Registration Expiration Start Date"),e.k0s(),e.nrm(17,"p-calendar",9),e.DNE(18,it,2,1,"div",10),e.k0s(),e.j41(19,"div",7)(20,"label",11),e.EFF(21,"Registration Expiration End Date"),e.k0s(),e.nrm(22,"p-calendar",12),e.DNE(23,st,2,1,"div",10),e.k0s()(),e.j41(24,"div",6)(25,"div",7)(26,"label",13),e.EFF(27,"Plate Number"),e.k0s(),e.j41(28,"input",14),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()(),e.j41(29,"div",15)(30,"label",16),e.EFF(31,"VIN"),e.k0s(),e.j41(32,"input",17),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()()()()(),e.j41(33,"div",18)(34,"div",19)(35,"button",20),e.bIt("click",function(){return e.eBV(o),e.Njj(i.reset())}),e.EFF(36,"Reset"),e.k0s(),e.j41(37,"button",21),e.bIt("click",function(){return e.eBV(o),e.Njj(i.search())}),e.EFF(38,"Search"),e.k0s()()(),e.j41(39,"div",22)(40,"p-table",23,0),e.bIt("onLazyLoad",function(_){return e.eBV(o),e.Njj(i.loadVehiclesLazy(_))}),e.mxI("firstChange",function(_){return e.eBV(o),e.DH7(i.first,_)||(i.first=_),e.Njj(_)}),e.DNE(42,nt,2,0,"ng-template",24)(43,ot,11,0,"ng-template",25)(44,ut,24,12,"ng-template",26)(45,dt,3,1,"ng-template",27)(46,ht,0,0,"ng-template",28),e.k0s()()()()}2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(6),e.Y8G("formGroup",i.form),e.R7$(5),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",i.submitted),e.R7$(4),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",!i.form.controls.endDate.pristine||i.submitted),e.R7$(5),e.FS9("placeholder",i.placeholder),e.R7$(7),e.Y8G("disabled",!i.loaded),e.R7$(2),e.Y8G("disabled",!i.loaded),e.R7$(3),e.Y8G("value",i.vehicles)("rows",i.pageCount)("paginator",!0)("loading",!i.loaded)("lazy",!0)("totalRecords",i.totalRecords),e.R50("first",i.first))},dependencies:[n.Wk,u.bT,u.B3,r.qT,r.me,r.BC,r.cb,r.tU,r.j4,r.JD,X.Vv,j.Ei,L.XI,k.z],encapsulation:2})}}return a})();function _t(a,s){}let ft=(()=>{class a extends f.${constructor(t,l){super(),this._router=t,this.claimsService=l}ngOnInit(){this.subscriptions.add(this.claimsService.getUserType().subscribe(t=>{this.createComponent(t)},t=>{this.handleValidationResult(t)}))}createComponent(t){if(t==T.z.Individual||t==T.z.CustomerRepresentative){let l=this.compHost.viewContainerRef;l.clear(),l.createComponent(t==T.z.Individual?Qe:mt)}else this._router.navigate(["/dashboard"])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(P.Ix),e.rXU(V.B))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-replacement-host"]],viewQuery:function(l,i){if(1&l&&e.GBs(S.z,7),2&l){let o;e.mGM(o=e.lsd())&&(i.compHost=o.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:0,consts:[["component-host",""]],template:function(l,i){1&l&&e.DNE(0,_t,0,0,"ng-template",0)},dependencies:[S.z],encapsulation:2})}}return a})();var vt=c(27468),z=c(80925);class gt extends R.F{}var bt=c(6281);function Pt(a,s){1&a&&e.nrm(0,"div",6)}function Ft(a,s){1&a&&(e.j41(0,"span",7),e.EFF(1," Same plate is already ordered and is in the process of being fulfilled. "),e.k0s())}function Rt(a,s){if(1&a&&(e.j41(0,"option",29),e.EFF(1),e.k0s()),2&a){const t=s.$implicit;e.FS9("value",t.plateReplacementReasonTypeId),e.R7$(),e.JRh(t.plateReplacementReasonTypeDisplayValue)}}function yt(a,s){1&a&&(e.j41(0,"div",30),e.EFF(1," Replacement Reason required. "),e.k0s())}function Tt(a,s){if(1&a&&(e.j41(0,"div",9)(1,"label"),e.EFF(2,"New Plate Number"),e.k0s(),e.nrm(3,"input",31),e.k0s()),2&a){const t=e.XpG(2);e.R7$(3),e.FS9("value",t.issuePlate.formattedPlateNumber)}}function kt(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",9)(1,"button",32),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.changePlateNumber())}),e.EFF(2,"Change Plate Number"),e.k0s()()}if(2&a){const t=e.XpG(2);e.R7$(),e.Y8G("disabled",t.inProgress)}}function Ct(a,s){1&a&&(e.j41(0,"div",30),e.EFF(1," Plate number must match the existing plate number (excluding spaces). "),e.k0s())}function It(a,s){1&a&&(e.j41(0,"div",30),e.EFF(1," Spacing not allowed as first/last character. "),e.k0s())}function Et(a,s){if(1&a&&(e.j41(0,"fieldset")(1,"div",33)(2,"div",34)(3,"label",35),e.EFF(4,"Please confirm proper spacing is reflected, your plate will be produced as shown in the box below."),e.k0s()(),e.j41(5,"div",9),e.nrm(6,"input",36),e.j41(7,"div",14),e.DNE(8,Ct,2,0,"div",15)(9,It,2,0,"div",15),e.k0s()(),e.j41(10,"div",37),e.EFF(11,' Full Space = Space, Half Space = "/" '),e.k0s()()()),2&a){const t=e.XpG(2);e.R7$(6),e.Y8G("maxlength",null==t.plateType?null:t.plateType.numberOfDigits),e.R7$(2),e.Y8G("ngIf",t.form.hasError("plateMismatch")&&t.submitted),e.R7$(),e.Y8G("ngIf",t.form.hasError("startsOrEndsWithSpaces")&&t.submitted)}}function St(a,s){if(1&a&&(e.j41(0,"tr")(1,"td")(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",38),e.EFF(5),e.nI1(6,"currency"),e.k0s()()),2&a){const t=s.$implicit;e.R7$(3),e.JRh(t.productDisplayValue),e.R7$(2),e.SpI("",e.ii3(6,2,t.feeAmount,"USD","symbol","1.2-2"),"\xa0\xa0")}}function jt(a,s){if(1&a){const t=e.RV6();e.j41(0,"form",8)(1,"p"),e.EFF(2," If your plate is damaged, deteriorated, or unreadable select damaged below to replace it with the same numbers and letters. "),e.k0s(),e.j41(3,"p"),e.EFF(4," If your plate has been lost or stolen select the reason below to replace it with new numbers and letters. "),e.k0s(),e.j41(5,"h2"),e.EFF(6,"Plate Replacement"),e.k0s(),e.j41(7,"fieldset")(8,"div",9)(9,"label",10),e.EFF(10,"Replacement Reason"),e.k0s(),e.j41(11,"select",11)(12,"option",12),e.EFF(13,"Select..."),e.k0s(),e.DNE(14,Rt,2,2,"option",13),e.k0s(),e.j41(15,"div",14),e.DNE(16,yt,2,0,"div",15),e.k0s()(),e.DNE(17,Tt,4,1,"div",16)(18,kt,3,1,"div",17),e.k0s(),e.nrm(19,"vehicle-information",18),e.DNE(20,Et,12,3,"fieldset",19),e.j41(21,"h2"),e.EFF(22,"Service Fees"),e.k0s(),e.j41(23,"table",20)(24,"tbody",21),e.DNE(25,St,7,7,"tr",22),e.k0s(),e.j41(26,"tfoot")(27,"tr")(28,"td",23)(29,"b"),e.EFF(30,"Total Amount:"),e.k0s(),e.j41(31,"span",21),e.EFF(32),e.nI1(33,"currency"),e.k0s(),e.EFF(34,"*"),e.k0s()()()(),e.j41(35,"div",24),e.EFF(36," * Estimated fees."),e.k0s(),e.j41(37,"div",25)(38,"div",26)(39,"button",27),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.back())}),e.EFF(40,"Back"),e.k0s(),e.j41(41,"button",28),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.submit())}),e.EFF(42,"Add to Cart"),e.k0s()()()()}if(2&a){const t=e.XpG();e.Y8G("formGroup",t.form),e.R7$(14),e.Y8G("ngForOf",t.replacementReasonTypes),e.R7$(2),e.Y8G("ngIf",t.form.controls.plateReplacementReasonTypeId.hasError("required")&&t.submitted),e.R7$(),e.Y8G("ngIf",t.newPlateNumber),e.R7$(),e.Y8G("ngIf",t.newPlateNumber),e.R7$(),e.Y8G("vehicle",t.vehicle),e.R7$(),e.Y8G("ngIf",t.vehicle.isPersonalized&&!t.vehicle.previouslyPrintedPlateNumber&&t.form.controls.plateReplacementReasonTypeId.value==t.reasons.Damaged),e.R7$(5),e.Y8G("ngForOf",t.plateFees),e.R7$(7),e.SpI(" ",e.ii3(33,10,t.total,"USD","symbol","1.2-2"),""),e.R7$(9),e.Y8G("disabled",t.inProgress)}}let Dt=(()=>{class a extends f.${get reasons(){return z.q}constructor(t,l,i,o,d){super(),this.plateService=t,this.router=l,this.titleRegService=i,this.lookupsService=o,this.fb=d,this.newPlateNumber=!1,this.insertSpaces=!1,this.showError=!1}ngOnInit(){this.loaded=!1,this.total=0,this.issuePlate=this.plateService.getStoredIssuePlate(),this.issuePlate&&this.issuePlate.plateNumber&&(this.issuePlate.formattedPlateNumber=this.issuePlate.plateNumber,this.newPlateNumber=this.issuePlate.plateReplacementReasonTypeId==z.q.LostStolen),this.useHelpContent("#CONTENT/Specialty_Plate/Add_Plate_to_Cart.htm"),null==this.titleRegService.getStoredVehicle()?this.router.navigate(["/titleregistration/plates/replace"]):(this.vehicle=this.titleRegService.getStoredVehicle(),this.updatePlateFeePreview=new gt,this.updatePlateFeePreview.vehicleId=this.vehicle.vehicleId,(0,vt.p)(this.plateService.getPlateTypeById(this.vehicle.plateTypeId),this.plateService.getPlateReplaceFees(this.updatePlateFeePreview),this.lookupsService.getPlateReplacementReasonTypes()).pipe((0,p.j)(()=>{this.buildForm(),this.loaded=!0})).subscribe(([t,l,i])=>{this.plateType=t,this.plateFees=l.fees,this.total=l.total,this.replacementReasonTypes=this.getFilteredReasons(i)},()=>{this.showError=!0}))}buildForm(){this.form=this.fb.group({updatedPlateNumber:[this.vehicle.formattedPlateNumber||this.vehicle.plateNumber,[r.k0.required,r.k0.pattern(H.E.PlateWithHalfSpaces)]],plateReplacementReasonTypeId:[this.issuePlate?this.issuePlate.plateReplacementReasonTypeId:null,r.k0.required]}),this.subscriptions.add(this.form.controls.plateReplacementReasonTypeId.valueChanges.subscribe(t=>{this.newPlateNumber=!1,this.issuePlate=null})),this.form.setValidators(this.plateValidator())}getFilteredReasons(t){return t.filter(i=>i.plateReplacementReasonTypeId==z.q.Damaged||i.plateReplacementReasonTypeId==z.q.LostStolen).sort((i,o)=>i.plateReplacementReasonTypeDisplayValue>o.plateReplacementReasonTypeDisplayValue?1:-1)}plateValidator(){const t=this;return()=>this.plateWithoutSpaces(t.form.get("updatedPlateNumber").value).toUpperCase()!=this.vehicle.plateNumber.toUpperCase()?{plateMismatch:!0}:this.startsOrEndsWithSpaces(t.form.get("updatedPlateNumber").value)?{startsOrEndsWithSpaces:!0}:null}startsOrEndsWithSpaces(t){return t.startsWith(" ")||t.startsWith("/")||t.endsWith(" ")||t.endsWith("/")}plateWithoutSpaces(t){return t.replace(/[/ ]/g,"")}submit(){if(this.submitted=!0,this.form.valid||this.issuePlate){if(this.inProgress=!0,(!this.issuePlate||this.issuePlate.plateReplacementReasonTypeId==z.q.Damaged)&&(this.issuePlate=new R.F,this.issuePlate.vehicleId=this.vehicle.vehicleId,this.issuePlate.isPersonalized=this.vehicle.isPersonalized,this.issuePlate.formattedPlateNumber=this.form.get("updatedPlateNumber").value.toUpperCase(),this.issuePlate.plateReplacementReasonTypeId=this.form.get("plateReplacementReasonTypeId").value,this.issuePlate.plateTypeDisplayValue=this.vehicle.plateType,this.issuePlate.plateTypeId=this.vehicle.plateTypeId,this.issuePlate.forPlateReplacement=!0,this.plateService.storeIssuePlate(this.issuePlate)),!this.newPlateNumber&&this.issuePlate.isPersonalized&&this.issuePlate.plateReplacementReasonTypeId==z.q.LostStolen)return void this.changePlateNumber();this.plateService.createReplacePlate(this.issuePlate).subscribe(t=>{this.plateService.storeIssuePlate(null),this.router.navigate(["cart"])},()=>{this.showError=!0,this.inProgress=!1})}}changePlateNumber(){this.titleRegService.storeVehicle(this.vehicle),this.issuePlate.forPlateReplacement=!0,this.issuePlate.plateReplacementReasonTypeId=this.form.get("plateReplacementReasonTypeId").value,this.plateService.storeIssuePlate(this.issuePlate),this.plateService.storePlateType(this.plateType),this.router.navigateByUrl(this.plateService.getModuleRoute()+"/pers
1onalize")}back(){this.router.navigate(["/titleregistration/plates/replace"]),this.plateService.storeIssuePlate(null)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(P.Ix),e.rXU(y.H),e.rXU(bt.z),e.rXU(r.ze))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-replacement-fees-component"]],standalone:!1,features:[e.Vt3],decls:9,vars:3,consts:[[1,"header--nav"],["class","loading-overlay",4,"ngIf"],[1,"mvd_container"],[1,"mvd_container__main"],["class","mvd_alert--message__warning",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"loading-overlay"],[1,"mvd_alert--message__warning"],[3,"formGroup"],[1,"col-sm-4","mvd_form-group"],["for","plateReplacementReasonTypeId","title","* Required",1,"required"],["formControlName","plateReplacementReasonTypeId"],["value",""],["class","notranslate",3,"value",4,"ngFor","ngForOf"],[1,"mvd_alert__validation"],["class","mvd_alert__rule",4,"ngIf"],["class","col-sm-4 mvd_form-group",4,"ngIf"],["class","col-sm-4 mvd_form-group",4,"ngIf"],[3,"vehicle"],[4,"ngIf"],[1,"mvd_table--fee"],[1,"notranslate"],[4,"ngFor","ngForOf"],["colspan","2",1,"td--amount"],[1,"mvd_form-group"],[1,"well__footer"],[1,"mvd_btn--group"],["type","submit","name","button",1,"btn--default",3,"click"],["type","submit","name","button",1,"btn--primary",3,"click","disabled"],[1,"notranslate",3,"value"],[1,"mvd_alert__rule"],["type","text","disabled","disabled",1,"notranslate",3,"value"],["type","button","name","button",1,"btn--primary",3,"click","disabled"],[1,"row"],[1,"col-sm-12","mvd_form-group"],["for","updatedPlateNumber","title","* Required",1,"required"],["type","text","id","updatedPlateNumber","name","updatedPlateNumber","formControlName","updatedPlateNumber",3,"maxlength"],[1,"col-sm-8","mvd_form-group"],[1,"td--amount"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Plate Replacement"),e.k0s()()(),e.DNE(4,Pt,1,0,"div",1),e.j41(5,"div",2)(6,"div",3),e.DNE(7,Ft,2,0,"span",4)(8,jt,43,15,"form",5),e.k0s()()),2&l&&(e.R7$(4),e.Y8G("ngIf",!i.loaded),e.R7$(3),e.Y8G("ngIf",i.showError),e.R7$(),e.Y8G("ngIf",i.form))},dependencies:[u.Sq,u.bT,r.qT,r.xH,r.y7,r.me,r.wz,r.BC,r.cb,r.tU,r.j4,r.JD,q.i,u.oe],encapsulation:2})}}return a})();var Vt=c(19910);class Nt extends Vt.I{}function xt(a,s){if(1&a&&e.nrm(0,"validation-results",12),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function Gt(a,s){1&a&&e.nrm(0,"div",13)}function wt(a,s){1&a&&(e.j41(0,"th"),e.EFF(1,"Registration Expiration"),e.k0s())}function $t(a,s){if(1&a){const t=e.RV6();e.j41(0,"div")(1,"a",19),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,o=e.XpG(2);return e.Njj(o.renewRegistration(i))}),e.EFF(2,"Renew now with this plate"),e.k0s()()}}function zt(a,s){if(1&a&&(e.j41(0,"td")(1,"span",17),e.EFF(2,"Registration Expiration"),e.k0s(),e.j41(3,"span",18),e.EFF(4),e.nI1(5,"mvdDate"),e.k0s(),e.DNE(6,$t,3,0,"div",11),e.k0s()),2&a){const t=s.$implicit;e.R7$(4),e.JRh(e.bMT(5,2,t.registrationExpirationDate)),e.R7$(2),e.Y8G("ngIf",t.registrationRenewalEligible)}}function Bt(a,s){if(1&a){const t=e.RV6();e.j41(0,"vehicle-list-selector",14),e.bIt("onSelect",function(i){e.eBV(t);const o=e.XpG();return e.Njj(o.onVehicleSelected(i))}),e.DNE(1,wt,2,0,"ng-template",15)(2,zt,7,4,"ng-template",16),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("vehicles",t.vehicles)("addedCols",1)("selectColumnLabel","")("selectVehiclePath",t.selectVehicleRoute)("showBodyStyle",!0)("showPlateColumn",!1)("useSelectVehicle",!1)}}function Ut(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",7)(1,"button",20),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addPersonalization())}),e.EFF(2,"Add Personalization"),e.k0s()()}}function Ot(a,s){if(1&a){const t=e.RV6();e.j41(0,"label")(1,"input",21),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleDisabled())}),e.k0s(),e.EFF(2," Disabled Plate "),e.k0s()}}let Yt=(()=>{class a extends f.${constructor(t,l,i,o,d,_,N,x,U){super(),this.plateService=t,this.registrationRenewalService=l,this.route=i,this.router=o,this.storageService=d,this.fb=_,this.claimsService=N,this.customerService=x,this.guestAccountService=U}ngOnInit(){this.loaded=!1,this.selectVehicleRoute=this.plateService.getModuleRoute()+"/purchase/",this.plateType=this.plateService.getStoredPlateType()?this.plateService.getStoredPlateType():this.storageService.getValue("guestPlateType"),this.issuePlate=this.plateService.getStoredIssuePlate()?this.plateService.getStoredIssuePlate():this.storageService.getValue("guestPlate"),(this.storageService.getValue("guestPlate")||this.storageService.getValue("guestPlateType"))&&(this.storageService.removeValue("guestPlate"),this.storageService.removeValue("guestPlateType")),this.plateService.storePlateType(this.plateType),this.plateService.storeIssuePlate(this.issuePlate),this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),null==this.plateType||null==this.issuePlate?this.router.navigate(["../list"],{relativeTo:this.route}):(this.canPersonalize=this.plateType.canBePersonalized&&!this.issuePlate.isPersonalized,this.canBeDisabled=!1,this.issuePlate.isPersonalized||this.plateType.plateConfigurations.forEach(function(t){t.isDisabled&&(this.canBeDisabled=!0)},this),this.plateService.getVehicles().pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(t=>{this.vehicles=t},t=>{this.handleValidationResult(t)})),this.subscriptions.add(this.claimsService.getUserType().subscribe(t=>{t==T.z.Individual||t==T.z.Guest?this.plateService.isDisabled().subscribe(l=>{this.disabled=l},l=>{this.handleValidationResult(l)}):this.disabled=!1})),this.form=this.fb.group({disabled:[!!this.issuePlate&&this.issuePlate.isDisabled]}),this.disabledPlate=this.issuePlate.isDisabled,this.toggleDisabled()}onVehicleSelected(t){this.router.navigateByUrl(this.selectVehicleRoute+t.vehicleId)}renewRegistration(t){this.issuePlate.vehicleId=t.vehicleId,!this.issuePlate.plateNumber&&this.issuePlate.isPersonalized&&(this.issuePlate.plateNumber=t.plateNumber),this.issuePlate.plateTypeId=this.plateType.plateTypeId,this.issuePlate.registrationRenewVehicle=ne
1w Nt,this.issuePlate.registrationRenewVehicle.vehicleId=t.vehicleId,this.issuePlate.registrationRenewVehicle.registrationExpirationDate=t.registrationExpirationDate,this.issuePlate.registrationRenewVehicle.plateTypeId=this.plateType.plateTypeId,this.issuePlate.registrationRenewVehicle.isPersonalized=this.issuePlate.isPersonalized,this.issuePlate.registrationRenewVehicle.vehicleInfo=t.vehicleInfo,this.issuePlate.registrationRenewVehicle.vin=t.vin,this.issuePlate.registrationRenewVehicle.transactionType="Plates",this.issuePlate.isDisabled=this.disabledPlate,this.plateService.storeIssuePlate(this.issuePlate),this.router.navigateByUrl(this.registrationRenewalService.getModuleRoute()+"/fleetselection",{skipLocationChange:!0})}addPersonalization(){this.issuePlate.isDisabled=this.disabledPlate,this.router.navigate(["../personalize"],{relativeTo:this.route,skipLocationChange:!1})}toggleDisabled(){if(this.disabledPlate=!!this.form.get("disabled").value,this.plateType&&this.plateType.plateConfigurations){let t=this.plateType.plateConfigurations.find(l=>l.isDisabled==this.disabledPlate&&1==l.isPeronalized);t&&(this.plateType.numberOfDigits=t.numberOfDigits,this.plateType.plateUrl=t.plateUrl)}this.issuePlate.isDisabled=this.disabledPlate,this.plateService.storeIssuePlate(this.issuePlate)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(w.T),e.rXU(P.nX),e.rXU(P.Ix),e.rXU(O.R),e.rXU(r.ze),e.rXU(V.B),e.rXU(J.m),e.rXU(W.R))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-vehicle-list-component"]],standalone:!1,features:[e.Vt3],decls:21,vars:12,consts:[[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],["class","spinner",4,"ngIf"],[3,"vehicles","addedCols","selectColumnLabel","selectVehiclePath","showBodyStyle","showPlateColumn","useSelectVehicle","onSelect",4,"ngIf"],[1,"mvd_container__right"],[1,"mvd_form-group"],[3,"plateText","plateUrl","plateTextColor","plateTextJustification","showDisabled","showText"],[3,"formGroup"],["class","mvd_form-group",4,"ngIf"],[4,"ngIf"],[3,"validationResults"],[1,"spinner"],[3,"onSelect","vehicles","addedCols","selectColumnLabel","selectVehiclePath","showBodyStyle","showPlateColumn","useSelectVehicle"],["pTemplate","header"],["pTemplate","body"],[1,"p-column-title"],[1,"notranslate"],["href","javascript:void(0)",3,"click"],["type","button",1,"btn--default",3,"click"],["type","checkbox","name","disabled","formControlName","disabled",3,"change"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plates"),e.k0s()()(),e.j41(4,"div",1)(5,"div",2),e.DNE(6,xt,1,1,"validation-results",3),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Select the vehicle you want to have this plate."),e.k0s(),e.DNE(11,Gt,1,0,"div",4)(12,Bt,3,7,"vehicle-list-selector",5),e.k0s(),e.j41(13,"div",6)(14,"div",7)(15,"h2"),e.EFF(16,"Plate Preview"),e.k0s(),e.nrm(17,"plate-preview",8),e.k0s(),e.j41(18,"form",9),e.DNE(19,Ut,3,0,"div",10)(20,Ot,3,0,"label",11),e.k0s()()()),2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(5),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded),e.R7$(5),e.FS9("plateText",null==i.issuePlate?null:i.issuePlate.plateNumber),e.FS9("plateUrl",i.plateType.plateUrl),e.FS9("plateTextColor",i.plateType.textColor),e.FS9("plateTextJustification",i.plateType.plateTextJustification),e.Y8G("showDisabled",null==i.issuePlate?null:i.issuePlate.isDisabled)("showText",!0),e.R7$(),e.Y8G("formGroup",i.form),e.R7$(),e.Y8G("ngIf",i.canPersonalize),e.R7$(),e.Y8G("ngIf",i.canBeDisabled&&i.disabled))},dependencies:[u.bT,r.qT,r.Zm,r.BC,r.cb,r.j4,r.JD,j.Ei,k.z,Y.b,B.o,$.s],encapsulation:2})}}return a})();const Xt=a=>["/titleregistration/vehicles",a,"title","org"],Lt=a=>({color:a});function Mt(a,s){if(1&a&&e.nrm(0,"validation-results",33),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function At(a,s){1&a&&(e.j41(0,"div",36),e.EFF(1,"Date, Plate Number, or VIN is Required"),e.k0s())}function Ht(a,s){if(1&a&&(e.j41(0,"div",34),e.DNE(1,At,2,0,"div",35),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("fieldRequired"))}}function Jt(a,s){1&a&&(e.j41(0,"div",36),e.EFF(1,"End date must be on or after start date"),e.k0s())}function Wt(a,s){if(1&a&&(e.j41(0,"div",34),e.DNE(1,Jt,2,0,"div",35),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("endDateBeforeStartDate"))}}function qt(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",17)(1,"button",37),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.addPersonalization())}),e.EFF(2,"Add Personalization"),e.k0s()()}}function Kt(a,s){if(1&a){const t=e.RV6();e.j41(0,"label")(1,"input",38),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.toggleDisabled())}),e.k0s(),e.EFF(2," Disabled Plate "),e.k0s()}}function Qt(a,s){1&a&&(e.j41(0,"h2"),e.EFF(1,"Vehicles"),e.k0s())}function Zt(a,s){1&a&&(e.j41(0,"tr")(1,"th"),e.EFF(2,"Vehicle"),e.k0s(),e.j41(3,"th",39),e.EFF(4,"VIN"),e.k0s(),e.j41(5,"th"),e.EFF(6,"Registration Expiration"),e.k0s(),e.j41(7,"th"),e.EFF(8,"License Plate"),e.k0s(),e.j41(9,"th",40),e.EFF(10,"Select"),e.k0s()())}function ea(a,s){if(1&a&&(e.j41(0,"div",49)(1,"div",50),e.nrm(2,"img",51),e.k0s(),e.j41(3,"div",52),e.EFF(4),e.k0s()()),2&a){const t=e.XpG().$implicit;e.R7$(2),e.FS9("src",t.plateUrl,e.B4B),e.R7$(),e.ZvI("plate__preview__",t.plateTextJustification,""),e.Y8G("ngStyle",e.eq3(6,Lt,t.plateColor)),e.R7$(),e.JRh(t.formattedPlateNumber||t.plateNumber)}}function ta(a,s){if(1&a&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.plateType)}}
1function aa(a,s){1&a&&(e.j41(0,"span",54),e.EFF(1,"No Plate Assigned"),e.k0s())}function ia(a,s){if(1&a){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",41),e.EFF(3,"Vehicle"),e.k0s(),e.j41(4,"a",42),e.EFF(5),e.k0s()(),e.j41(6,"td")(7,"span",41),e.EFF(8,"VIN"),e.k0s(),e.j41(9,"span",43),e.EFF(10),e.k0s()(),e.j41(11,"td")(12,"span",41),e.EFF(13,"Registration Expiration"),e.k0s(),e.j41(14,"span",43),e.EFF(15),e.k0s()(),e.j41(16,"td",44),e.DNE(17,ea,5,8,"div",45)(18,ta,2,1,"span",46)(19,aa,2,0,"span",47),e.k0s(),e.j41(20,"td")(21,"span",41),e.EFF(22,"Select"),e.k0s(),e.j41(23,"div",18)(24,"button",48),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG();return e.Njj(o.selectVehicle(i))}),e.EFF(25,"Select"),e.k0s()()()()}if(2&a){const t=s.$implicit;e.R7$(4),e.Y8G("routerLink",e.eq3(10,Xt,t.vehicleId)),e.R7$(),e.E5c("",t.year," ",t.make," ",t.model,""),e.R7$(5),e.JRh(t.vin),e.R7$(5),e.JRh(t.registrationExpirationDateFormatted),e.R7$(2),e.Y8G("ngIf",t.plateNumber),e.R7$(),e.Y8G("ngIf",t.plateType),e.R7$(),e.Y8G("ngIf",!t.plateType),e.R7$(5),e.Y8G("disabled",!t.eligible)}}function la(a,s){1&a&&(e.j41(0,"tr")(1,"td"),e.EFF(2,"No records found"),e.k0s()()),2&a&&(e.R7$(),e.BMQ("colspan",5))}function sa(a,s){}let na=(()=>{class a extends f.${constructor(t,l,i,o,d){super(),this.router=t,this.fb=l,this.platesService=i,this.titleRegistrationService=o,this.storageService=d,this.dataStore=[],this.placeholder="Search by Plate Number",this.pageCount=0,this.previousPage=-1,this.first=0}ngOnInit(){this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),this.loaded=!1,this.plateType=this.platesService.getStoredPlateType()?this.platesService.getStoredPlateType():this.storageService.getValue("guestPlateType"),this.issuePlate=this.platesService.getStoredIssuePlate()?this.platesService.getStoredIssuePlate():this.storageService.getValue("guestPlate"),(this.storageService.getValue("guestPlate")||this.storageService.getValue("guestPlateType"))&&(this.storageService.removeValue("guestPlate"),this.storageService.removeValue("guestPlateType")),this.platesService.storePlateType(this.plateType),this.platesService.storeIssuePlate(this.issuePlate),(null==this.plateType||null==this.issuePlate)&&this.router.navigate(["/titleregistration/plates/list"]),this.canPersonalize=this.plateType.canBePersonalized&&!this.issuePlate.isPersonalized,this.canBeDisabled=!1,this.issuePlate.isPersonalized||this.plateType.plateConfigurations.forEach(function(t){t.isDisabled&&(this.canBeDisabled=!0)},this),this.platesService.isDisabled().subscribe(t=>{this.disabled=t},t=>{this.handleValidationResult(t)}),this.form=this.fb.group({startDate:[null],endDate:[null],plateNumber:[null],vin:[null],disabled:[!!this.issuePlate&&this.issuePlate.isDisabled]},{validator:r.k0.compose([this.validateDateRange,this.fieldRequiredValidator])}),this.disabledPlate=this.issuePlate.isDisabled,this.toggleDisabled()}selectVehicle(t){this.titleRegistrationService.storeVehicle(t),this.router.navigate(["/titleregistration/plates/purchase/"+t.vehicleId])}loadVehiclesLazy(t){this.loaded=!1;var l=this.pageCount>0?t.first/this.pageCount:0,i=new C.x;i.pageNumber=l,i.registrationFromDate=this.form.get("startDate").value&&this.searched?this.form.get("startDate").value:null,i.registrationToDate=this.form.get("endDate").value&&this.searched?this.form.get("endDate").value:null,i.plateNumber=this.form.get("plateNumber").value&&this.searched?this.form.get("plateNumber").value:null,i.vin=this.form.get("vin").value&&this.searched?this.form.get("vin").value:null,this.getVehicles(i)}search(){if(this.submitted=!0,this.form.valid){this.loaded=!1,this.searched=!0;var t=this.totalRecords=0;this.form.disable(),this.resetVehicles();var l=new C.x;l.pageNumber=t,l.registrationFromDate=this.form.get("startDate").value?this.form.get("startDate").value:null,l.registrationToDate=this.form.get("endDate").value?this.form.get("endDate").value:null,l.plateNumber=this.form.get("plateNumber").value?this.form.get("plateNumber").value:null,l.vin=this.form.get("vin").value&&this.searched?this.form.get("vin").value:null,this.getVehicles(l),this.submitted=!1}}reset(){this.loaded=this.searched=this.submitted=!1;var t=this.totalRecords=0;this.resetVehicles(),this.form.reset(),this.form.enable();var l=new C.x;l.pageNumber=t,this.getVehicles(l)}addPersonalization(){this.issuePlate.isDisabled=this.disabledPlate,this.platesService.storeIssuePlate(this.issuePlate),this.router.navigateByUrl("/titleregistration/plates/personalize",{skipLocationChange:!1})}resetVehicles(){this.vehicles=null,this.dataStore=null,this.first=0}getVehicles(t){this.dataStore&&this.dataStore[t.pageNumber]?(this.vehicles=this.dataStore[t.pageNumber],this.loaded=!0):this.platesService.searchPlateVehicles(t).pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(l=>{var i=l.vehicles;this.pageCount||(this.pageCount=i.length>0?i.length:1),null==this.dataStore&&(this.dataStore=new Array(Math.ceil(l.total/this.pageCount))),this.dataStore[t.pageNumber]=i,this.vehicles=this.dataStore[t.pageNumber],this.totalRecords=l.total},l=>{this.handleValidationResult(l)})}fieldRequiredValidator(t){if(!(null!=t.controls.startDate.value||null!=t.controls.endDate.value||null!=t.controls.plateNumber.value&&0!=t.controls.plateNumber.value.length||null!=t.controls.vin.value&&0!=t.controls.vin.value.length))return{fieldRequired:!0}}validateDateRange(t){return t.value.startDate<=t.value.endDate||null==t.value.endDate?null:{endDateBeforeStartDate:!0}}toggleDisabled(){if(this.disabledPlate=!!this.form.get("disabled").value,this.plateType&&this.plateType.plateConfigurations){let t=this.plateType.plateConfigurations.find(l=>l.isDisabled==this.disabledPlate&&1==l.isPeronalized);t&&(this.plateType.numberOfDigits=t.numberOfDigits,this.plateType.plateUrl=t.plateUrl)}this.issuePlate.isDisabled=this.disabledPlate,this.platesService.storeIssuePlate(this.issuePlate)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(P.Ix),e.rXU(r.ze),e.rXU(h.r),e.rXU(y.H),e.rXU(O.R))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-vehicle-list-org"]],standalone:!1,features:[e.Vt3],decls:56,vars:24,consts:[["dt2",""],[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],["novalidate","","role","form","autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-sm-4","col-md-6","mvd_form-group"],["for","startDate"],["inputId","startDate","formControlName","startDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["class","mvd_alert__validation",4,"ngIf"],["for","endDate"],["inputId","endDate","formControlName","endDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["for","plateNumber"],["id","search","type","text","autocomplete","off","formControlName","plateNumber","maxlength","7",1,"autocomplete",3,"keyup.enter","placeholder"],["for","vin"],["id","search","type","text","placeholder","Search by VIN","autocomplete","off","formControlName","vin","maxlength","25",1,"autocomplete",3,"keyup.enter"],[1,"mvd_form-group"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click","disabled"],["type","submit",1,"btn--primary",3,"click","disabled"],[1,"mvd_container__right"],[3,"plateText","plateUrl","plateTextColor","plateTextJustification","showText"],[3,"formGroup"],["class","mvd_form-group",4,"ngIf"],[4,"ngIf"],[1,"mvd_container__full"],["styleClass","p-datatable-striped","responsiveLayout","stack",3,"onLazyLoad","firstChange","value","rows","paginator","loading","lazy","totalRecords","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pTemplate","summary"],[3,"validationResults"],[1,"mvd_alert__validation"],["class","mvd_alert__rule",4,"ngIf"],[1,"mvd_alert__rule"],["type","button",1,"btn--default",3,"click"],["type","checkbox","name","disabled","formControlName","disabled",3,"change"],[1,"th--vin"],[1,"th--actions"],[1,"p-column-title"],["href","javascript:void(0);
1",1,"notranslate",3,"routerLink"],[1,"notranslate"],[1,"plate--myvehicles"],["class","plate__preview notranslate",4,"ngIf"],["class","plate__number-type notranslate",4,"ngIf"],["class","plate__number-type",4,"ngIf"],[1,"btn--primary",3,"click","disabled"],[1,"plate__preview","notranslate"],[1,"plate__preview__image"],["title","Plate Preview",3,"src"],[3,"ngStyle"],[1,"plate__number-type","notranslate"],[1,"plate__number-type"]],template:function(l,i){if(1&l){const o=e.RV6();e.j41(0,"ul",1)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plates"),e.k0s()()(),e.j41(4,"div",2)(5,"div",3),e.DNE(6,Mt,1,1,"validation-results",4),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Select the vehicle you want to have this plate."),e.k0s(),e.nrm(11,"br"),e.j41(12,"fieldset")(13,"form",5)(14,"div",6)(15,"div",7)(16,"label",8),e.EFF(17,"Registration Expiration Start Date"),e.k0s(),e.nrm(18,"p-calendar",9),e.DNE(19,Ht,2,1,"div",10),e.k0s(),e.j41(20,"div",7)(21,"label",11),e.EFF(22,"Registration Expiration End Date"),e.k0s(),e.nrm(23,"p-calendar",12),e.DNE(24,Wt,2,1,"div",10),e.k0s()(),e.j41(25,"div",6)(26,"div",7)(27,"label",13),e.EFF(28,"Plate Number"),e.k0s(),e.j41(29,"input",14),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()(),e.j41(30,"div",7)(31,"label",15),e.EFF(32,"VIN"),e.k0s(),e.j41(33,"input",16),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()()(),e.j41(34,"div",17)(35,"div",18)(36,"button",19),e.bIt("click",function(){return e.eBV(o),e.Njj(i.reset())}),e.EFF(37,"Reset"),e.k0s(),e.j41(38,"button",20),e.bIt("click",function(){return e.eBV(o),e.Njj(i.search())}),e.EFF(39,"Search"),e.k0s()()()()()(),e.j41(40,"div",21)(41,"h2"),e.EFF(42,"Plate Preview"),e.k0s(),e.j41(43,"div",17),e.nrm(44,"plate-preview",22),e.k0s(),e.j41(45,"form",23),e.DNE(46,qt,3,0,"div",24)(47,Kt,3,0,"label",25),e.k0s()(),e.j41(48,"div",26)(49,"p-table",27,0),e.bIt("onLazyLoad",function(_){return e.eBV(o),e.Njj(i.loadVehiclesLazy(_))}),e.mxI("firstChange",function(_){return e.eBV(o),e.DH7(i.first,_)||(i.first=_),e.Njj(_)}),e.DNE(51,Qt,2,0,"ng-template",28)(52,Zt,11,0,"ng-template",29)(53,ia,26,12,"ng-template",30)(54,la,3,1,"ng-template",31)(55,sa,0,0,"ng-template",32),e.k0s()()()}2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(7),e.Y8G("formGroup",i.form),e.R7$(5),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",i.submitted),e.R7$(4),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",!i.form.controls.endDate.pristine||i.submitted),e.R7$(5),e.FS9("placeholder",i.placeholder),e.R7$(7),e.Y8G("disabled",!i.loaded),e.R7$(2),e.Y8G("disabled",!i.loaded||i.searched),e.R7$(6),e.FS9("plateText",null==i.issuePlate?null:i.issuePlate.plateNumber),e.FS9("plateUrl",i.plateType.plateUrl),e.FS9("plateTextColor",i.plateType.textColor),e.FS9("plateTextJustification",i.plateType.plateTextJustification),e.Y8G("showText",!0),e.R7$(),e.Y8G("formGroup",i.form),e.R7$(),e.Y8G("ngIf",i.canPersonalize),e.R7$(),e.Y8G("ngIf",i.canBeDisabled&&i.disabled),e.R7$(2),e.Y8G("value",i.vehicles)("rows",i.pageCount)("paginator",!0)("loading",!i.loaded)("lazy",!0)("totalRecords",i.totalRecords),e.R50("first",i.first))},dependencies:[n.Wk,u.bT,u.B3,r.qT,r.me,r.Zm,r.BC,r.cb,r.tU,r.j4,r.JD,X.Vv,j.Ei,L.XI,k.z,B.o],encapsulation:2})}}return a})();function oa(a,s){}let ra=(()=>{class a extends f.${constructor(t,l){super(),this._router=t,this.claimsService=l}ngOnInit(){this.subscriptions.add(this.claimsService.getUserType().subscribe(t=>{if(t==T.z.Individual||t==T.z.Guest){let l=this.compHost.viewContainerRef;l.clear(),l.createComponent(Yt)}else if(t==T.z.CustomerRepresentative){let l=this.compHost.viewContainerRef;l.clear(),l.createComponent(na)}else this._router.navigate(["/dashboard"])},t=>{this.handleValidationResult(t)}))}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(P.Ix),e.rXU(V.B))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-vehicle-list-host-component"]],viewQuery:function(l,i){if(1&l&&e.GBs(S.z,7),2&l){let o;e.mGM(o=e.lsd())&&(i.compHost=o.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:0,consts:[["component-host",""]],template:function(l,i){1&l&&e.DNE(0,oa,0,0,"ng-template",0)},dependencies:[S.z],encapsulation:2})}}return a})();const ca=a=>["/titleregistration/vehicles",a,"title","org"],pa=a=>({color:a});function ua(a,s){if(1&a&&e.nrm(0,"validation-results",29),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function da(a,s){1&a&&(e.j41(0,"div",32),e.EFF(1,"A Date, VIN or Plate Number is Required"),e.k0s())}function ha(a,s){if(1&a&&(e.j41(0,"div",30),e.DNE(1,da,2,0,"div",31),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("dateVinOrPlateNumberRequired"))}}function ma(a,s){1&a&&(e.j41(0,"div",32),e.EFF(1,"End date must be on or after start date"),e.k0s())}function _a(a,s){if(1&a&&(e.j41(0,"div",30),e.DNE(1,ma,2,0,"div",31),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("endDateBeforeStartDate"))}}function fa(a,s){1&a&&(e.j41(0,"h2"),e.EFF(1,"Vehicles"),e.k0s())}function va(a,s){1&a&&(e.j41(0,"tr")(1,"th"),e.EFF(2,"Vehicle"),e.k0s(),e.j41(3,"th"),e.EFF(4,"License Plate"),e.k0s(),e.j41(5,"th",33),e.EFF(6,"VIN"),e.k0s(),e.j41(7,"th"),e.EFF(8,"Registration Expiration"),e.k0s(),e.j41(9,"th",34),e.EFF(10,"Select"),e.k0s()())}function ga(a,s){if(1&a&&(e.j41(0,"div",43)(1,"div",44),e.nrm(2,"img",45),e.k0s(),e.j41(3,"div",46),e.EFF(4),e.k0s()()),2&a){const t=e.XpG().$implicit;e.R7$(2),e.FS9("src",t.plateUrl,e.B4B),e.R7$(),e.ZvI("plate__preview__",t.plateTextJustification,""),e.Y8G("ngStyle",e.eq3(6,pa,t.plateColor)),e.R7$(),e.JRh(t.formattedPlateNumber||t.plateNumber)}}function ba(a,s){if(1&a&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.plateType)}}function Pa(a,s){1&a&&(e.j41(0,"span",48),e.EFF(1,"No Plate Assigned"),e.k0s())}function Fa(a,s){if(1&a){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",35),e.EFF(3,"Vehicle"),e.k0s(),e.j41(4,"a",36),e.EFF(5),e.k0s()(),e.j41(6,"td",37),e.DNE(7,ga,5,8,"div",38)(8,ba,2,1,"span",39)(9,Pa,2,0,"span",40),e.k0s(),e.j41(10,"td")(11,"span",35),e.EFF(12,"VIN"),e.k0s(),e.j41(13,"span",41),e.EFF(14),e.k0s()(),e.j41(15,"td")(16,"span",35),e.EFF(17,"Registration Expiration"),e.k0s(),e.j41(18,"span",41),e.EFF(19),e.k0s()(),e.j41(20,"td")(21,"div",19)(22,"button",42),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG();return e.Njj(o.selectVehicle(i))}),e.EFF(23,"Select"),e.k0s()()()()}if(2&a){const t=s.$implicit;e.R7$(4),e.Y8G("routerLink",e.eq3(10,ca,t.vehicleId)),e.R7$(),e.E5c("",t.year," ",t.make," ",t.model,""),e.R7$(2),e.Y8G("ngIf",t.plateNumber),e.R7$(),e.Y8G("ngIf",t.plateType),e.R7$(),e.Y8G("ngIf",!t.plateType),e.R7$(5),e.JRh(t.vin),e.R7$(5),e.JRh(t.registrationExpirationDateFormatted),e.R7$(3),e.Y8G("disabled",!t.eligible)}}function Ra(a,s){1&a&&(e.j41(0,"tr")(1,"td"),e.EFF(2," No records foun
1d "),e.k0s()()),2&a&&(e.R7$(),e.BMQ("colspan",5))}function ya(a,s){1&a&&e.DNE(0,Ra,3,1,"ng-template",49)}function Ta(a,s){}let ka=(()=>{class a extends f.${constructor(t,l,i,o){super(),this.platesService=t,this.fb=l,this.titleRegistrationService=i,this.router=o,this.dataStore=[],this.placeholder="Search by Plate Number",this.pageCount=0,this.previousPage=-1,this.first=0}ngOnInit(){this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),this.form=this.fb.group({startDate:[null],endDate:[null],plateNumber:[null],vinNumber:[null]},{validator:r.k0.compose([this.validateDateRange,this.dateVinOrPlateNumberRequiredValidator])})}resetVehicles(){this.vehicles=null,this.dataStore=null,this.first=0}getVehicles(t){this.dataStore&&this.dataStore[t.pageNumber]?(this.vehicles=this.dataStore[t.pageNumber],this.loaded=!0):this.platesService.searchPlateDuplicateVehicles(t).pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(l=>{var i=l.vehicles;this.pageCount||(this.pageCount=i.length>0?i.length:1),null==this.dataStore&&(this.dataStore=new Array(Math.ceil(l.total/this.pageCount))),this.dataStore[t.pageNumber]=i,this.vehicles=this.dataStore[t.pageNumber],this.totalRecords=l.total},l=>{this.handleValidationResult(l)})}dateVinOrPlateNumberRequiredValidator(t){if(!(null!=t.controls.startDate.value||null!=t.controls.endDate.value||null!=t.controls.plateNumber.value&&0!=t.controls.plateNumber.value.length||null!=t.controls.vinNumber.value&&0!=t.controls.vinNumber.value.length))return{dateVinOrPlateNumberRequired:!0}}validateDateRange(t){return t.value.startDate<=t.value.endDate||null==t.value.endDate?null:{endDateBeforeStartDate:!0}}loadVehiclesLazy(t){this.loaded=!1;var l=this.pageCount>0?t.first/this.pageCount:0,i=new C.x;i.pageNumber=l,i.registrationFromDate=this.form.get("startDate").value&&this.searched?this.form.get("startDate").value:null,i.registrationToDate=this.form.get("endDate").value&&this.searched?this.form.get("endDate").value:null,i.plateNumber=this.form.get("plateNumber").value&&this.searched?this.form.get("plateNumber").value:null,i.vin=this.form.get("vinNumber").value&&this.searched?this.form.get("vinNumber").value:null,this.getVehicles(i)}search(){if(this.submitted=!0,this.form.valid){this.loaded=!1,this.searched=!0;var t=this.totalRecords=0;this.form.disable(),this.resetVehicles();var l=new C.x;l.pageNumber=t,l.registrationFromDate=this.form.get("startDate").value?this.form.get("startDate").value:null,l.registrationToDate=this.form.get("endDate").value?this.form.get("endDate").value:null,l.plateNumber=this.form.get("plateNumber").value?this.form.get("plateNumber").value:null,l.vin=this.form.get("vinNumber").value&&this.searched?this.form.get("vinNumber").value:null,this.getVehicles(l),this.submitted=!1}}reset(){this.loaded=this.searched=this.submitted=!1;var t=this.totalRecords=0;this.resetVehicles(),this.form.reset(),this.form.enable();var l=new C.x;l.pageNumber=t,this.getVehicles(l)}selectVehicle(t){this.titleRegistrationService.storeVehicle(t),this.platesService.storeIssuePlate(null),this.router.navigate(["/titleregistration/plates/duplicate/fees/"+t.vehicleId])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(r.ze),e.rXU(y.H),e.rXU(P.Ix))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-duplicate-org-component"]],standalone:!1,features:[e.Vt3],decls:50,vars:17,consts:[["dt2",""],[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__full"],[3,"validationResults",4,"ngIf"],["routerLink","/titleregistration/plates/replace"],["novalidate","","role","form","autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-sm-5","col-md-4","col-lg-3","mvd_form-group"],["for","startDate"],["inputId","startDate","formControlName","startDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["class","mvd_alert__validation",4,"ngIf"],["for","endDate"],["inputId","endDate","formControlName","endDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["for","plateNumber"],["id","search","type","text","autocomplete","off","formControlName","plateNumber","maxlength","7",1,"autocomplete",3,"keyup.enter","placeholder"],["for","vinNumber"],["id","search","type","text","placeholder","Search by VIN","autocomplete","off","formControlName","vinNumber","maxlength","25",1,"autocomplete",3,"keyup.enter"],[1,"well__footer"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click","disabled"],["type","submit",1,"btn--primary",3,"click","disabled"],[1,"card"],["styleClass","p-datatable-striped","responsiveLayout","stack",3,"onLazyLoad","firstChange","value","rows","paginator","loading","lazy","totalRecords","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[4,"ngIf"],["pTemplate","summary"],[3,"validationResults"],[1,"mvd_alert__validation"],["class","mvd_alert__rule",4,"ngIf"],[1,"mvd_alert__rule"],[1,"th--vin"],[1,"th--actions"],[1,"p-column-title"],["href","javascript:void(0);",1,"notranslate",3,"routerLink"],[1,"plate--myvehicles"],["class","plate__preview notranslate",4,"ngIf"],["class","plate__number-type notranslate",4,"ngIf"],["class","plate__number-type",4,"ngIf"],[1,"notranslate"],[1,"btn--primary",3,"click","disabled"],[1,"plate__preview","notranslate"],[1,"plate__preview__image"],["title","Plate Preview",3,"src"],[3,"ngStyle"],[1,"plate__number-type","notranslate"],[1,"plate__number-type"],["pTemplate","emptymessage"]],template:function(l,i){if(1&l){const o=e.RV6();e.j41(0,"ul",1)(1,"li")(2,"h1"),e.EFF(3,"Duplicate Plate"),e.k0s()()(),e.j41(4,"div",2)(5,"div",3),e.DNE(6,ua,1,1,"validation-results",4),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Get an extra copy of your special or personalized license plate for front-of-vehicle display or personal use. If you're looking to replace a lost, stolen, or damaged plate, use "),e.j41(11,"a",5),e.EFF(12,"Plate Replacement"),e.k0s(),e.EFF(13," instead."),e.k0s(),e.j41(14,"fieldset")(15,"form",6)(16,"div",7)(17,"div",8)(18,"label",9),e.EFF(19,"Registration Expiration Start Date"),e.k0s(),e.nrm(20,"p-calendar",10),e.DNE(21,ha,2,1,"div",11),e.k0s(),e.j41(22,"div",8)(23,"label",12),e.
1EFF(24,"Registration Expiration End Date"),e.k0s(),e.nrm(25,"p-calendar",13),e.DNE(26,_a,2,1,"div",11),e.k0s()(),e.j41(27,"div",7)(28,"div",8)(29,"label",14),e.EFF(30,"Plate Number"),e.k0s(),e.j41(31,"input",15),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()(),e.j41(32,"div",8)(33,"label",16),e.EFF(34,"VIN"),e.k0s(),e.j41(35,"input",17),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()()()()(),e.j41(36,"div",18)(37,"div",19)(38,"button",20),e.bIt("click",function(){return e.eBV(o),e.Njj(i.reset())}),e.EFF(39,"Reset"),e.k0s(),e.j41(40,"button",21),e.bIt("click",function(){return e.eBV(o),e.Njj(i.search())}),e.EFF(41,"Search"),e.k0s()()(),e.j41(42,"div",22)(43,"p-table",23,0),e.bIt("onLazyLoad",function(_){return e.eBV(o),e.Njj(i.loadVehiclesLazy(_))}),e.mxI("firstChange",function(_){return e.eBV(o),e.DH7(i.first,_)||(i.first=_),e.Njj(_)}),e.DNE(45,fa,2,0,"ng-template",24)(46,va,11,0,"ng-template",25)(47,Fa,24,12,"ng-template",26)(48,ya,1,0,null,27)(49,Ta,0,0,"ng-template",28),e.k0s()()()()}2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(9),e.Y8G("formGroup",i.form),e.R7$(5),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",i.submitted),e.R7$(4),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",!i.form.controls.endDate.pristine||i.submitted),e.R7$(5),e.FS9("placeholder",i.placeholder),e.R7$(7),e.Y8G("disabled",!i.loaded),e.R7$(2),e.Y8G("disabled",!i.loaded||i.searched),e.R7$(3),e.Y8G("value",i.vehicles)("rows",i.pageCount)("paginator",!0)("loading",!i.loaded)("lazy",!0)("totalRecords",i.totalRecords),e.R50("first",i.first),e.R7$(5),e.Y8G("ngIf",i.loaded))},dependencies:[n.Wk,u.bT,u.B3,r.qT,r.me,r.BC,r.cb,r.tU,r.j4,r.JD,X.Vv,j.Ei,L.XI,k.z],encapsulation:2})}}return a})();function Ca(a,s){if(1&a&&e.nrm(0,"validation-results",7),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function Ia(a,s){1&a&&e.nrm(0,"div",8)}function Ea(a,s){1&a&&(e.j41(0,"th"),e.EFF(1,"Registration Expiration"),e.k0s())}function Sa(a,s){if(1&a&&(e.j41(0,"td")(1,"span",12),e.EFF(2,"Registration Expiration"),e.k0s(),e.j41(3,"span",13),e.EFF(4),e.nI1(5,"mvdDate"),e.k0s()()),2&a){const t=s.$implicit;e.R7$(4),e.JRh(e.bMT(5,1,t.registrationExpirationDate))}}function ja(a,s){if(1&a){const t=e.RV6();e.j41(0,"vehicle-list-selector",9),e.bIt("onSelect",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetIssuePlate())}),e.DNE(1,Ea,2,0,"ng-template",10)(2,Sa,6,3,"ng-template",11),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("vehicles",t.vehicles)("addedCols",1)("selectVehiclePath","/titleregistration/plates/duplicate/fees/")("showBodyStyle",!0)("showPlateColumn",!0)}}let Da=(()=>{class a extends f.${constructor(t){super(),this.plateService=t}ngOnInit(){this.loaded=!1,this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),this.plateService.getPlateDuplicateVehicles().pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(t=>{this.vehicles=t},t=>{this.handleValidationResult(t)})}resetIssuePlate(){this.plateService.storeIssuePlate(null)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-duplicate-component"]],standalone:!1,features:[e.Vt3],decls:16,vars:3,consts:[[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__full"],[3,"validationResults",4,"ngIf"],["routerLink","/titleregistration/plates/replace"],["class","spinner",4,"ngIf"],[3,"vehicles","addedCols","selectVehiclePath","showBodyStyle","showPlateColumn","onSelect",4,"ngIf"],[3,"validationResults"],[1,"spinner"],[3,"onSelect","vehicles","addedCols","selectVehiclePath","showBodyStyle","showPlateColumn"],["pTemplate","header"],["pTemplate","body"],[1,"p-column-title"],[1,"notranslate"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Duplicate Plate"),e.k0s()()(),e.j41(4,"div",1)(5,"div",2),e.DNE(6,Ca,1,1,"validation-results",3),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Get an extra copy of your special or personalized license plate for front-of-vehicle display or personal use. If you're looking to replace a lost, stolen, or damaged plate, use "),e.j41(11,"a",4),e.EFF(12,"Plate Replacement"),e.k0s(),e.EFF(13," instead."),e.k0s(),e.DNE(14,Ia,1,0,"div",5)(15,ja,3,5,"vehicle-list-selector",6),e.k0s()()),2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(8),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[n.Wk,u.bT,j.Ei,k.z,Y.b,$.s],encapsulation:2})}}return a})();function Va(a,s){}let Na=(()=>{class a extends f.${constructor(t,l){super(),this._router=t,this.claimsService=l}ngOnInit(){this.subscriptions.add(this.claimsService.getUserType().subscribe(t=>{this.createComponent(t)},t=>{this.handleValidationResult(t)}))}createComponent(t){if(t==T.z.Individual||t==T.z.CustomerRepresentative){let l=this.compHost.viewContainerRef;l.clear(),l.createComponent(t==T.z.Individual?Da:ka)}else this._router.navigate(["/dashboard"])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(P.Ix),e.rXU(V.B))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-duplicate-host"]],viewQuery:function(l,i){if(1&l&&e.GBs(S.z,7),2&l){let o;e.mGM(o=e.lsd())&&(i.compHost=o.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:0,consts:[["component-host",""]],template:function(l,i){1&l&&e.DNE(0,Va,0,0,"ng-template",0)},dependencies:[S.z],encapsulation:2})}}return a})();function xa(a,s){1&a&&e.nrm(0,"div",16)}function Ga(a,s){if(1&a&&e.nrm(0,"validation-results",17),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function wa(a,s){if(1&a&&(e.j41(0,"tr")(1,"td")(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",18),e.EFF(5),e.nI1(6,"currency"),e.k0s()()),2&a){const t=s.$implicit;e.R7$(3),e.JRh(t.productDisplayValue),e.R7$(2),e.SpI("",e.ii3(6,2,t.feeAmount,"USD","symbol","1.2-2"),"\xa0\xa0")}}let $a=(()=>{class a extends f.${constructor(t,l,i){super(),this.plateService=t,this.router=l,this.titleRegService=i}ngOnInit(){if(this.loaded=!1,this.total=0,this.useHelpContent("#CONTENT/Specialty_Plate/Add_Plate_to_Cart.htm"),null==this.titleRegService.getStoredVehicle())this.router.navigate(["/titleregistration/plates/duplicate"]);else{this.vehicle=this.titleRegService.getStoredVehicle();let t=new R.F;t.vehicleId=this.vehicle.vehicleId,this.plateService.getPlateDuplicateFees(t).pipe((0,p.j)(()=>this.loaded=!0)).subscribe(l=>{this.plateFees=l.fees,this.total=l.total},l=>{this.handleValidationResult(l)})}}redirectToReplace(){this.router.navigate(["/titleregistration/plates/replace"])}submit(){this.submitted=!0,this.inProgress=!0,this.issuePlate=new R.F,this.issuePlate.vehicleId=this.vehicle.vehicleId,this.plateService.createDuplicatePlate(this.issuePlate).subscribe(t=>{this.router.navigate(["cart"])},t=>{this.handleValidationResult(t),this.inProgress=!1})}back(){this.router.navigate(["/titleregistration/plates/duplicate"])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(P.Ix),e.rXU(y.H))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-duplicate-fees-component"]],standalone:!1,features:[e.Vt3],decls:35,vars:11,consts:[[1,"header--nav"],["class","loading-overlay",4,"ngIf"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],[1,"mvd_form-group"],["href","javascript:void(0)",3,"click"],[3,"vehicle"],[1,"mvd_table--fee"],[1,"notranslate"],[4,"ngFor","ngForOf"],["colspan","2",1,"td--amount"],[1,"well__footer"],[1,"mvd_btn--group"],["type","submit","name","button",1,"btn--default",3,"click"],["type","submit","name","button",1,"btn--primary",3,"click","disabled"],[1,"loading-overlay"],[3,"validationResults"],[1,"td--amount"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Duplicate Plate"),e.k0s()()(),e.DNE(4,xa,1,0,"div",1),e.j41(5,"div",2)(6,"div",3),e.DNE(7,Ga,1,1,"validation-results",4),e.j41(8,"div",5),e.EFF(9," If your plate is damaged or has been lost or stolen, please use the "),e.j41(10,"a",6),e.bIt("click",function(){return i.redirectToReplace()}),e.EFF(11,"Replacement Plate"),e.k0s(),e.EFF(12," service. "),e.k0s(),e.nrm(13,"vehicle-information",7),e.j41(14,"h2"),e.EFF(15,"Service Fees"),e.k0s(),e.j41(16,"table",8)(17,"tbody",9),e.DNE(18,wa,7,7,"tr",10),e.k0s(),e.j41(19,"tfoot")(20,"tr")(21,"td",11)(22,"b"),e.EFF(23,"Total Amount:"),e.k0s(),e.j41(24,"span",9),e.EFF(25),e.nI1(26,"currency"),e.k0s(),e.EFF(27,"*"),e.k0s()()()(),e.j41(28,"div",12)(29,"div",13)(30,"button",14),e.bIt("click",function(){return i.back()}),e.EFF(31,"Back"),e.k0s(),e.j41(32,"button",15),e.bIt("click",function(){return i.submit()}),e.EFF(33,"Add to Cart"),e.k0s()(),e.EFF(34," * Estimated fees. "),e.k0s()()()),2&l&&(e.R7$(4),e.Y8G("ngIf",!i.loaded),e.R7$(3),e.Y8G("ngIf",i.showValidationComponent),e.R7$(6),e.Y8G("vehicle",i.vehicle),e.R7$(5),e.Y8G("ngForOf",i.plateFees),e.R7$(7),e.SpI(" ",e.ii3(26,6,i.total,"USD","symbol","1.2-2"),""),e.R7$(7),e.Y8G("disabled",i.inProgress))},dependencies:[u.Sq,u.bT,k.z,q.i,u.oe],encapsulation:2})}}return a})();function za(a,s){1&a&&e.nrm(0,"div",3)}function Ba(a,s){if(1&a&&e.nrm(0,"validation-results",14),2&a){const t=e.XpG(2);e.Y8G("validationResults",t.validationResults)}}function Ua(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",15)(1,"label")(2,"input",16),e.bIt("change",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.toggleDisabled())}),e.k0s(),e.EFF(3," Disabled Plate "),e.k0s()()}}function Oa(a,s){if(1&a){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.addPersonalization())}),e.EFF(1,"Add Personalization"),e.k0s()}}function Ya(a,s){if(1&a){const t=e.RV6();e.j41(0,"div",4)(1,"div",5),e.DNE(2,Ba,1,1,"validation-results",6),e.j41(3,"h2"),e.EFF(4,"Plate Preview"),e.k0s(),e.j41(5,"form",7),e.nrm(6,"plate-preview",8),e.j41(7,"div",9),e.DNE(8,Ua,4,0,"div",10),e.j41(9,"div",11),e.DNE(10,Oa,2,0,"button",12),e.j41(11,"button",13),e.bIt("click",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.continue())}),e.EFF(12,"Continue"),e.k0s()()()()()()}if(2&a){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",t.showValidationComponent),e.R7$(3),e.Y8G("formGroup",t.form),e.R7$(),e.FS9("plateText",null==t.issuePlate?null:t.issuePlate.plateNumber),e.FS9("plateUrl",t.plateType.plateUrl),e.FS9("plateTextColor",t.plateType.textColor),e.FS9("plateTextJustification",t.plateType.plateTextJustification),e.Y8G("showDisabled",null==t.issuePlate?null:t.issuePlate.isDisabled)("showText",!0),e.R7$(2),e.Y8G("ngIf",t.canBeDisabled),e.R7$(2),e.Y8G("ngIf",t.canPersonalize)}}let Xa=(()=>{class a extends f.${constructor(t,l,i,o,d,_,N,x,U){super(),this.plateService=t,this.registrationRenewalService=l,this.route=i,this.router=o,this.storageService=d,this.fb=_,this.claimsService=N,this.customerService=x,this.guestAccountService=U}ngOnInit(){this.loaded=!1,this.plateType=this.plateService.getStoredPlateType()?this.plateService.getStoredPlateType():this.storageService.getValue("guestPlateType"),this.issuePlate=this.plateService.getStoredIssuePlate()?this.plateService.getStoredIssuePlate():this.storageService.getValue("guestPlate"),(this.storageService.getValue("guestPlate")||this.storageService.getValue("guestPlateType"))&&(this.storageService.removeValue("guestPlate"),this.storageService.removeValue("guestPlateType")),this.plateService.storePlateType(this.plateType),this.plateService.storeIssuePlate(this.issuePlate),this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),null==this.plateType||null==this.issuePlate?this.router.navigate(["../list"],{relativeTo:this.route}):(this.canPersonalize=this.plateType.canBePersonalized&&!this.issuePlate.isPersonalized,this.canBeDisabled=!1,this.issuePlate.isPersonalized||this.plateType.plateConfigurations.forEach(function(t){t.isDisabled&&(this.canBeDisabled=!0)},this)),this.subscriptions.add(this.claimsService.getUserType().subscribe(t=>{t==T.z.Individual?this.plateService.isDisabled().pipe((0,p.j)(()=>this.loaded=!0)).subscribe(l=>{l||this.continue()},l=>{this.handleValidationResult(l)}):this.continue()},t=>{this.handleValidationResult(t)})),this.form=this.fb.group({disabled:[!!this.issuePlate&&this.issuePlate.isDisabled]}),this.disabledPlate=this.issuePlate.isDisabled,this.toggleDisabled()}continue(){this.router.navigate(this.issuePlate.registrationRenewVehicle?[this.registrationRenewalService.getModuleRoute()+"/fees"]:[this.plateService.getModuleRoute()+"/purchase/"])}addPersonalization(){this.issuePlate.isDisabled=this.disabledPlate,this.router.navigate(["../personalize"],{relativeTo:this.route,skipLocationChange:!1})}toggleDisabled(){if(this.disabledPlate=!!this.form.get("disabled").value,this.plateType&&this.plateType.plateConfigurations){let t=this.plateType.plateConfigurations.find(l=>l.isDisabled==this.disabledPlate&&1==l.isPeronalized);t&&(this.plateType.numberOfDigits=t.numberOfDigits,this.plateType.plateUrl=t.plateUrl)}this.issuePlate.isDisabled=this.disabledPlate,this.plateService.storeIssuePlate(this.issuePlate)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(w.T),e.rXU(P.nX),e.rXU(P.Ix),e.rXU(O.R),e.rXU(r.ze),e.rXU(V.B),e.rXU(J.m),e.rXU(W.R))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["plate-select-preview-component"]],standalone:!1,features:[e.Vt3],decls:6,vars:2,consts:[[1,"header--nav"],["class","spinner",4,"ngIf"],["class","mvd_container",4,"ngIf"],[1,"spinner"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],[3,"formGroup"],[3,"plateText","plateUrl","plateTextColor","plateTextJustification","showDisabled","showText"],[1,"well__footer"],["class","mvd_form-group",4,"ngIf"],[1,"mvd_btn--group"],["class","btn--default","type","button",3,"click",4,"ngIf"],[1,"btn--primary",3,"click"],[3,"validationResults"],[1,"mvd_form-group"],["type","checkbox","name","disabled","formControlName","disabled",3,"change"],["type","button",1,"btn--default",3,"click"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Specialty & Personalized Plates"),e.k0s()()(),e.DNE(4,za,1,0,"div",1)(5,Ya,13,10,"div",2)),2&l&&(e.R7$(4),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[u.bT,r.qT,r.Zm,r.BC,r.cb,r.j4,r.JD,k.z,B.o],encapsulation:2})}}return a})();function La(a,s){if(1&a&&e.nrm(0,"validation-results",6),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function Ma(a,s){1&a&&e.nrm(0,"div",7)}function Aa(a,s){1&a&&(e.j41(0,"th"),e.EFF(1,"Registration Expiration"),e.k0s())}function Ha(a,s){if(1&a&&(e.j41(0,"td")(1,"span",11),e.EFF(2,"Registration Expiration"),e.k0s(),e.j41(3,"span",12),e.EFF(4),e.nI1(5,"mvdDate"),e.k0s()()),2&a){const t=s.$implicit;e.R7$(4),e.JRh(e.bMT(5,1,t.registrationExpirationDate))}}function Ja(a,s){if(1&a){const t=e.RV6();e.j41(0,"vehicle-list-selector",8),e.bIt("onSelect",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.resetIssuePlate())}),e.DNE(1,Aa,2,0,"ng-template",9)(2,Ha,6,3,"ng-template",10),e.k0s()}if(2&a){const t=e.XpG();e.Y8G("vehicles",t.vehicles)("addedCols",1)("selectVehiclePath","/titleregistration/plates/list/")("showBodyStyle",!0)("showPlateColumn",!0)}}let Wa=(()=>{class a extends f.${constructor(t){super(),this.plateService=t}ngOnInit(){this.loaded=!1,this.plateService.getVehicles().pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(t=>{this.vehicles=t},t=>{this.handleValidationResult(t)})}resetIssuePlate(){this.plateService.storeIssuePlate(null)}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["change-plate-background-component"]],standalone:!1,features:[e.Vt3],decls:13,vars:3,consts:[[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__full"],[3,"validationResults",4,"ngIf"],["class","spinner",4,"ngIf"],["selectColumnLabel","Action",3,"vehicles","addedCols","selectVehiclePath","showBodyStyle","showPlateColumn","onSelect",4,"ngIf"],[3,"validationResults"],[1,"spinner"],["selectColumnLabel","Action",3,"onSelect","vehicles","addedCols","selectVehiclePath","showBodyStyle","showPlateColumn"],["pTemplate","header"],["pTemplate","body"],[1,"p-column-title"],[1,"notranslate"]],template:function(l,i){1&l&&(e.j41(0,"ul",0)(1,"li")(2,"h1"),e.EFF(3,"Change Plate Backgroun
1d"),e.k0s()()(),e.j41(4,"div",1)(5,"div",2),e.DNE(6,La,1,1,"validation-results",3),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Select the vehicle you want to change the plate background for."),e.k0s(),e.DNE(11,Ma,1,0,"div",4)(12,Ja,3,5,"vehicle-list-selector",5),e.k0s()()),2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(5),e.Y8G("ngIf",!i.loaded),e.R7$(),e.Y8G("ngIf",i.loaded))},dependencies:[u.bT,j.Ei,k.z,Y.b,$.s],encapsulation:2})}}return a})();const qa=a=>["/titleregistration/vehicles",a,"title","org"],Ka=a=>({color:a});function Qa(a,s){if(1&a&&e.nrm(0,"validation-results",29),2&a){const t=e.XpG();e.Y8G("validationResults",t.validationResults)}}function Za(a,s){1&a&&(e.j41(0,"div",32),e.EFF(1,"Date, Plate Number, or VIN is Required"),e.k0s())}function ei(a,s){if(1&a&&(e.j41(0,"div",30),e.DNE(1,Za,2,0,"div",31),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("dateVinOrPlateNumberRequired"))}}function ti(a,s){1&a&&(e.j41(0,"div",32),e.EFF(1,"End date must be on or after start date"),e.k0s())}function ai(a,s){if(1&a&&(e.j41(0,"div",30),e.DNE(1,ti,2,0,"div",31),e.k0s()),2&a){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.form.hasError("endDateBeforeStartDate"))}}function ii(a,s){1&a&&(e.j41(0,"h2"),e.EFF(1,"Vehicles"),e.k0s())}function li(a,s){1&a&&(e.j41(0,"tr")(1,"th"),e.EFF(2,"Vehicle"),e.k0s(),e.j41(3,"th",33),e.EFF(4,"VIN"),e.k0s(),e.j41(5,"th"),e.EFF(6,"Registration Expiration"),e.k0s(),e.j41(7,"th"),e.EFF(8,"License Plate"),e.k0s(),e.j41(9,"th",34),e.EFF(10,"Select"),e.k0s()())}function si(a,s){if(1&a&&(e.j41(0,"div",43)(1,"div",44),e.nrm(2,"img",45),e.k0s(),e.j41(3,"div",46),e.EFF(4),e.k0s()()),2&a){const t=e.XpG().$implicit;e.R7$(2),e.FS9("src",t.plateUrl,e.B4B),e.R7$(),e.ZvI("plate__preview__",t.plateTextJustification,""),e.Y8G("ngStyle",e.eq3(6,Ka,t.plateColor)),e.R7$(),e.JRh(t.formattedPlateNumber||t.plateNumber)}}function ni(a,s){if(1&a&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&a){const t=e.XpG().$implicit;e.R7$(),e.JRh(t.plateType)}}function oi(a,s){1&a&&(e.j41(0,"span",48),e.EFF(1,"No Plate Assigned"),e.k0s())}function ri(a,s){if(1&a){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",35),e.EFF(3,"Vehicle"),e.k0s(),e.j41(4,"a",36),e.EFF(5),e.k0s()(),e.j41(6,"td")(7,"span",35),e.EFF(8,"VIN"),e.k0s(),e.j41(9,"span",37),e.EFF(10),e.k0s()(),e.j41(11,"td")(12,"span",35),e.EFF(13,"Registration Expiration"),e.k0s(),e.j41(14,"span",37),e.EFF(15),e.k0s()(),e.j41(16,"td",38),e.DNE(17,si,5,8,"div",39)(18,ni,2,1,"span",40)(19,oi,2,0,"span",41),e.k0s(),e.j41(20,"td")(21,"span",35),e.EFF(22,"Select"),e.k0s(),e.j41(23,"div",19)(24,"button",42),e.bIt("click",function(){const i=e.eBV(t).$implicit,o=e.XpG();return e.Njj(o.selectVehicle(i))}),e.EFF(25,"Select"),e.k0s()()()()}if(2&a){const t=s.$implicit;e.R7$(4),e.Y8G("routerLink",e.eq3(10,qa,t.vehicleId)),e.R7$(),e.E5c("",t.year," ",t.make," ",t.model,""),e.R7$(5),e.JRh(t.vin),e.R7$(5),e.JRh(t.registrationExpirationDateFormatted),e.R7$(2),e.Y8G("ngIf",t.plateNumber),e.R7$(),e.Y8G("ngIf",t.plateType),e.R7$(),e.Y8G("ngIf",!t.plateType),e.R7$(5),e.Y8G("disabled",!t.eligible)}}function ci(a,s){1&a&&(e.j41(0,"tr")(1,"td"),e.EFF(2,"No records found"),e.k0s()()),2&a&&(e.R7$(),e.BMQ("colspan",5))}function pi(a,s){}let ui=(()=>{class a extends f.${constructor(t,l,i,o){super(),this.platesService=t,this.fb=l,this.titleRegistrationService=i,this.router=o,this.dataStore=[],this.placeholder="Search by Plate Number",this.pageCount=0,this.previousPage=-1,this.first=0}ngOnInit(){this.useHelpContent("#CONTENT/Specialty_Plate/Select_Vehicle_for_Plate.htm"),this.form=this.fb.group({startDate:[null],endDate:[null],plateNumber:[null],vinNumber:[null]},{validators:r.k0.compose([this.validateDateRange,this.dateVinOrPlateNumberRequiredValidator])})}resetVehicles(){this.vehicles=null,this.dataStore=null,this.first=0}getVehicles(t){this.dataStore&&this.dataStore[t.pageNumber]?(this.vehicles=this.dataStore[t.pageNumber],this.loaded=!0):this.platesService.searchPlateVehicles(t).pipe((0,p.j)(()=>{this.loaded=!0})).subscribe(l=>{var i=l.vehicles;this.pageCount||(this.pageCount=i.length>0?i.length:1),null==this.dataStore&&(this.dataStore=new Array(Math.ceil(l.total/this.pageCount))),this.dataStore[t.pageNumber]=i,this.vehicles=this.dataStore[t.pageNumber],this.totalRecords=l.total},l=>{this.handleValidationResult(l)})}dateVinOrPlateNumberRequiredValidator(t){if(!(null!=t.controls.startDate.value||null!=t.controls.endDate.value||null!=t.controls.plateNumber.value&&0!=t.controls.plateNumber.value.length||null!=t.controls.vinNumber.value&&0!=t.controls.vinNumber.value.length))return{dateVinOrPlateNumberRequired:!0}}validateDateRange(t){return t.value.startDate<=t.value.endDate||null==t.value.endDate?null:{endDateBeforeStartDate:!0}}loadVehiclesLazy(t){this.loaded=!1;var l=this.pageCount>0?t.first/this.pageCount:0,i=new C.x;i.pageNumber=l,i.registrationFromDate=this.form.get("startDate").value&&this.searched?this.form.get("startDate").value:null,i.registrationToDate=this.form.get("endDate").value&&this.searched?this.form.get("endDate").value:null,i.plateNumber=this.form.get("plateNumber").value&&this.searched?this.form.get("plateNumber").value:null,i.vin=this.form.get("vinNumber").value&&this.searched?this.form.get("vinNumber").value:null,this.getVehicles(i)}search(){if(this.submitted=!0,this.form.valid){this.loaded=!1,this.searched=!0;var t=this.totalRecords=0;this.form.disable(),this.resetVehicles();var l=new C.x;l.pageNumber=t,l.registrationFromDate=this.form.get("startDate").value?this.form.get("startDate").value:null,l.registrationToDate=this.form.get("endDate").value?this.form.get("endDate").value:null,l.plateNumber=this.form.get("plateNumber").value?this.form.get("plateNumber").value:null,l.vin=this.form.get("vinNumber").value&&this.searched?this.form.get("vinNumber").value:null,this.getVehicles(l),this.submitted=!1}}reset(){this.loaded=this.searched=this.submitted=!1;var t=this.totalRecords=0;this.resetVehicles(),this.form.reset(),this.form.enable();var l=new C.x;l.pageNumber=t,this.getVehicles(l)}selectVehicle(t){this.titleRegistrationService.storeVehicle(t),this.platesService.storeIssuePlate(null),this.router.navigate(["/titleregistration/plates/list/"+t.vehicleId])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(h.r),e.rXU(r.ze),e.rXU(y.H),e.rXU(P.Ix))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["change-plate-background-org-component"]],standalone:!1,features:[e.Vt3],decls:47,vars:16,consts:[["dt2",""],[1,"header--nav"],[1,"mvd_container"],[1,"mvd_container__main"],[3,"validationResults",4,"ngIf"],[1,"mvd_container__full"],["novalidate","","role","form","autocomplete","off",3,"formGroup"],[1,"row"],[1,"col-sm-3","col-md-3","mvd_form-group"],["for","startDate"],["inputId","startDate","formControlName","startDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["class","mvd_alert__validation",4,"ngIf"],["for","endDate"],["inputId","endDate","formControlName","endDate","dateFormat","mm/dd/yy","placeholder","mm/dd/yyyy",1,"notranslate",3,"showIcon"],["for","plateNumber"],["id","search","type","text","autocomplete","off","formControlName","plateNumber","maxlength","7",1,"autocomplete",3,"keyup.enter","placeholder"],["for","vin"],["id","search","type","text","placeholder","Search by VIN","autocomplete","off","formControlName","vinNumber","maxlength","25",1,"autocomplete",3,"keyup.enter"],[1,"well__footer"],[1,"mvd_btn--group"],["type","button",1,"btn--default",3,"click","disabled"],["type","submit",1,"btn--primary",3,"click","disabled"],[1,"card"],["styleClass","p-datatable-striped","responsiveLayout","stack",3,"onLazyLoad","firstChange","value","rows","paginator","loading","lazy","totalRecords","first"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["pTemplate","summary"],[3,"validationResults"],[1,"mvd_alert__validation"],["class","mvd_alert__rule",4,"ngIf"],[1,"mvd_alert__rule"],[1,"th--vin"],[1,"th--actions"],[1,"p-column-title"],["href","javascript:void(0);
1",1,"notranslate",3,"routerLink"],[1,"notranslate"],[1,"plate--myvehicles"],["class","plate__preview notranslate",4,"ngIf"],["class","plate__number-type notranslate",4,"ngIf"],["class","plate__number-type",4,"ngIf"],[1,"btn--primary",3,"click","disabled"],[1,"plate__preview","notranslate"],[1,"plate__preview__image"],["title","Plate Preview",3,"src"],[3,"ngStyle"],[1,"plate__number-type","notranslate"],[1,"plate__number-type"]],template:function(l,i){if(1&l){const o=e.RV6();e.j41(0,"ul",1)(1,"li")(2,"h1"),e.EFF(3,"Change Plate Background"),e.k0s()()(),e.j41(4,"div",2)(5,"div",3),e.DNE(6,Qa,1,1,"validation-results",4),e.j41(7,"h2"),e.EFF(8,"Vehicle Selection"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Select the vehicle you want to change the plate background for."),e.k0s()(),e.j41(11,"div",5)(12,"fieldset")(13,"form",6)(14,"div",7)(15,"div",8)(16,"label",9),e.EFF(17,"Registration Expiration Start Date"),e.k0s(),e.nrm(18,"p-calendar",10),e.DNE(19,ei,2,1,"div",11),e.k0s(),e.j41(20,"div",8)(21,"label",12),e.EFF(22,"Registration Expiration End Date"),e.k0s(),e.nrm(23,"p-calendar",13),e.DNE(24,ai,2,1,"div",11),e.k0s(),e.j41(25,"div",8)(26,"label",14),e.EFF(27,"Plate Number"),e.k0s(),e.j41(28,"input",15),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()(),e.j41(29,"div",8)(30,"label",16),e.EFF(31,"VIN"),e.k0s(),e.j41(32,"input",17),e.bIt("keyup.enter",function(){return e.eBV(o),e.Njj(i.search())}),e.k0s()()()()(),e.j41(33,"div",18)(34,"div",19)(35,"button",20),e.bIt("click",function(){return e.eBV(o),e.Njj(i.reset())}),e.EFF(36,"Reset"),e.k0s(),e.j41(37,"button",21),e.bIt("click",function(){return e.eBV(o),e.Njj(i.search())}),e.EFF(38,"Search"),e.k0s()()(),e.j41(39,"div",22)(40,"p-table",23,0),e.bIt("onLazyLoad",function(_){return e.eBV(o),e.Njj(i.loadVehiclesLazy(_))}),e.mxI("firstChange",function(_){return e.eBV(o),e.DH7(i.first,_)||(i.first=_),e.Njj(_)}),e.DNE(42,ii,2,0,"ng-template",24)(43,li,11,0,"ng-template",25)(44,ri,26,12,"ng-template",26)(45,ci,3,1,"ng-template",27)(46,pi,0,0,"ng-template",28),e.k0s()()()()}2&l&&(e.R7$(6),e.Y8G("ngIf",i.showValidationComponent),e.R7$(7),e.Y8G("formGroup",i.form),e.R7$(5),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",i.submitted),e.R7$(4),e.Y8G("showIcon",!0),e.R7$(),e.Y8G("ngIf",!i.form.controls.endDate.pristine||i.submitted),e.R7$(4),e.FS9("placeholder",i.placeholder),e.R7$(7),e.Y8G("disabled",!i.loaded),e.R7$(2),e.Y8G("disabled",!i.loaded||i.searched),e.R7$(3),e.Y8G("value",i.vehicles)("rows",i.pageCount)("paginator",!0)("loading",!i.loaded)("lazy",!0)("totalRecords",i.totalRecords),e.R50("first",i.first))},dependencies:[n.Wk,u.bT,u.B3,r.qT,r.me,r.BC,r.cb,r.tU,r.j4,r.JD,X.Vv,j.Ei,L.XI,k.z],encapsulation:2})}}return a})();function di(a,s){}let hi=(()=>{class a extends f.${constructor(t,l){super(),this._router=t,this.claimsService=l}ngOnInit(){this.subscriptions.add(this.claimsService.getUserType().subscribe(t=>{this.createComponent(t)},t=>{this.handleValidationResult(t)}))}createComponent(t){if(t==T.z.Individual||t==T.z.CustomerRepresentative){let l=this.compHost.viewContainerRef;l.clear(),l.createComponent(t==T.z.Individual?Wa:ui)}else this._router.navigate(["/dashboard"])}static{this.\u0275fac=function(l){return new(l||a)(e.rXU(P.Ix),e.rXU(V.B))}}static{this.\u0275cmp=e.VBU({type:a,selectors:[["change-plate-background-host"]],viewQuery:function(l,i){if(1&l&&e.GBs(S.z,7),2&l){let o;e.mGM(o=e.lsd())&&(i.compHost=o.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:0,consts:[["component-host",""]],template:function(l,i){1&l&&e.DNE(0,di,0,0,"ng-template",0)},dependencies:[S.z],encapsulation:2})}}return a})();var M=c(18939);const mi=[{path:"",component:Ae},{path:"list",component:A},{path:"list/:vehicleId",component:A,data:{changeBackground:!0}},{path:"personalize",component:Ee},{path:"personalize/reason",component:Ne},{path:"vehicles",component:ra},{path:"purchase/:vehicleId",component:Me},{path:"replace",component:ft,canActivate:[M.y],data:{featureAccess:{featureId:63}}},{path:"replace/fees/:vehicleId",component:Dt,canActivate:[M.y],data:{featureAccess:{featureId:63}}},{path:"duplicate",component:Na,canActivate:[M.y],data:{featureAccess:{featureId:123}}},{path:"duplicate/fees/:vehicleId",component:$a,canActivate:[M.y],data:{featureAccess:{featureId:123}}},{path:"select",component:Xa},{path:"changebackground",component:hi}];var _i=c(45505);let fi=(()=>{class a{static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275mod=e.$C({type:a})}static{this.\u0275inj=e.G2t({imports:[n.iI.forChild(mi),m.G,v.m,_i.N]})}}return a})()},95719(I,F,c){c.d(F,{r:()=>e});var n=c(41360),m=c(16213);function v(h,y){if(1&h&&(n.j41(0,"div",7)(1,"label"),n.EFF(2,"Year/Make/Model"),n.k0s(),n.j41(3,"div",3),n.EFF(4),n.k0s()()),2&h){const u=n.XpG(2);n.R7$(4),n.E5c("",u.vehicle.year," ",u.vehicle.make," ",u.vehicle.model,"")}}
1function p(h,y){if(1&h&&(n.j41(0,"div",2)(1,"label"),n.EFF(2,"VIN"),n.k0s(),n.j41(3,"div",3),n.EFF(4),n.k0s()()),2&h){const u=n.XpG(2);n.R7$(4),n.JRh(u.vehicle.vin)}}function f(h,y){if(1&h&&(n.j41(0,"div",1),n.DNE(1,v,5,3,"div",6)(2,p,5,1,"div",5),n.k0s()),2&h){const u=n.XpG();n.R7$(),n.Y8G("ngIf",u.vehicle.make),n.R7$(),n.Y8G("ngIf",u.vehicle.vin)}}function g(h,y){if(1&h&&(n.qex(0),n.EFF(1),n.bVm()),2&h){const u=n.XpG();n.R7$(),n.Lme("",u.vehicle.formattedPlateNumber||u.vehicle.plateNumber," (",u.vehicle.plateType,")")}}function D(h,y){if(1&h&&(n.qex(0),n.EFF(1),n.bVm()),2&h){const u=n.XpG();n.R7$(),n.JRh(u.vehicle.plateType)}}function R(h,y){if(1&h&&(n.j41(0,"div",2)(1,"label"),n.EFF(2,"Body Style"),n.k0s(),n.j41(3,"div",3),n.EFF(4),n.k0s()()),2&h){const u=n.XpG();n.R7$(4),n.JRh(u.vehicle.bodyStyle)}}function b(h,y){if(1&h&&(n.j41(0,"div",2)(1,"label"),n.EFF(2,"Plate/Registration Expiration"),n.k0s(),n.j41(3,"div",3),n.EFF(4),n.k0s()()),2&h){const u=n.XpG();n.R7$(4),n.JRh(u.vehicle.registrationExpirationDateFormatted)}}let e=(()=>{class h{static{this.\u0275fac=function(G){return new(G||h)}}static{this.\u0275cmp=n.VBU({type:h,selectors:[["vehicle-information-fieldset-insert"]],inputs:{vehicle:"vehicle"},standalone:!1,decls:10,vars:5,consts:[["class","row",4,"ngIf"],[1,"row"],[1,"col-sm-4","mvd_form-group"],[1,"mvd_input","notranslate"],[4,"ngIf"],["class","col-sm-4 mvd_form-group",4,"ngIf"],["class","col-sm-8 mvd_form-group",4,"ngIf"],[1,"col-sm-8","mvd_form-group"]],template:function(G,E){1&G&&(n.DNE(0,f,3,2,"div",0),n.j41(1,"div",1)(2,"div",2)(3,"label"),n.EFF(4,"License Plate"),n.k0s(),n.j41(5,"div",3),n.DNE(6,g,2,2,"ng-container",4)(7,D,2,1,"ng-container",4),n.k0s()(),n.DNE(8,R,5,1,"div",5)(9,b,5,1,"div",5),n.k0s()),2&G&&(n.Y8G("ngIf",E.vehicle),n.R7$(6),n.Y8G("ngIf",E.vehicle.plateNumber),n.R7$(),n.Y8G("ngIf",!E.vehicle.plateNumber&&E.vehicle.plateType),n.R7$(),n.Y8G("ngIf",E.vehicle.bodyStyle),n.R7$(),n.Y8G("ngIf",E.vehicle.registrationExpirationDateFormatted))},dependencies:[m.bT],encapsulation:2})}}return h})()},70568(I,F,c){c.d(F,{i:()=>f});var n=c(41360),m=c(16213),v=c(95719);function p(g,D){if(1&g&&(n.qex(0),n.j41(1,"h2"),n.EFF(2,"Vehicle Details"),n.k0s(),n.j41(3,"fieldset"),n.nrm(4,"vehicle-information-fieldset-insert",1),n.k0s(),n.bVm()),2&g){const R=n.XpG();n.R7$(4),n.Y8G("vehicle",R.vehicle)}}let f=(()=>{class g{static{this.\u0275fac=function(b){return new(b||g)}}static{this.\u0275cmp=n.VBU({type:g,selectors:[["vehicle-information"]],inputs:{vehicle:"vehicle"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[3,"vehicle"]],template:function(b,e){1&b&&n.DNE(0,p,5,1,"ng-container",0),2&b&&n.Y8G("ngIf",e.vehicle)},dependencies:[m.bT,v.r],encapsulation:2})}}return g})()}}]);
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.