1"use strict";(self.webpackChunkclient_app=self.webpackChunkclient_app||[]).push([[579],{3579:function(t,e,n){n.r(e),n.d(e,{ContactModule:function(){return N}});var o=n(8583),i=n(1841),a=n(2559),s=n(3679),r=n(9129),c=n(9930),u=n(787),l=n(7865),d=n(7716),h=n(3065),m=n(6046),g=n(4564),p=n(6007),f=n(5492);const v=["contactEditor"];function b(t,e){if(1&t&&(d.TgZ(0,"option",18),d._uU(1),d.qZA()),2&t){const t=e.$implicit;d.Q6J("value",t),d.xp6(1),d.Oqu(t)}}function y(t,e){if(1&t){const t=d.EpF();d.TgZ(0,"div",5),d.TgZ(1,"div",19),d.TgZ(2,"select",20),d.NdJ("ngModelChange",function(e){return d.CHM(t),d.oxw().identifyByChanged(e)}),d.TgZ(3,"option",8),d._uU(4,"Identify by"),d.qZA(),d.TgZ(5,"option",21),d._uU(6,"Part ID Number"),d.qZA(),d.TgZ(7,"option",22),d._uU(8,"Order Number"),d.qZA(),d.TgZ(9,"option",23),d._uU(10,"Invoice Number"),d.qZA(),d.qZA(),d.qZA(),d.qZA()}}function Z(t,e){if(1&t&&(d.TgZ(0,"div",5),d.TgZ(1,"div",19),d._UZ(2,"input",24),d.qZA(),d.qZA()),2&t){const t=d.oxw();d.xp6(2),d.Q6J("placeholder",t.subjectPlaceholder)}}function q(t,e){1&t&&d._UZ(0,"div",25)}const C={"Question About My Order":["Order # (Leave Blank if Unknown)","Please provide us with any additional information that will help us assist you further.","OrderInquiryEmail"],"Question About Shipping Request":["Order # (Leave Blank if Unknown)","Please provide us with any additional information that will help us assist you further.","OrderInquiryEmail"],"Start a Return - User Location":["Part ID # (Leave Blank if Unknown)","Please provide us with any additional information that will help us assist you further.","OrderReturnEmail"],"Website Feedback":["","Please tell us about your experience. We value your feedback.","contactEmailToMarketing"],"Your LKQ Experience":["","Please tell us about your experience. We value your feedback.","contactEmailToMarketing"],"Customer Service Feedback":["","Please tell us about your experience. We value your feedback.","ContactEmail"]},P={"Part ID Number":"Part ID # (Leave Blank if Unknown)","Order Number":"Order # (Leave Blank if Unknown)","Invoice Number":"Invoice # (Leave Blank if Unknown)"};let _=(()=>{class t{constructor(t,e,n,o,i,a,s){this.fb=t,this.store=e,this.contactService=n,this.dialogService=o,this.analyticService=i,this.cmsService=a,this.router=s,this.contact=(0,c.E)(),this.question="",this.submitting=!1}ngOnInit(){this.questions=Object.keys(C),this.form=this.fb.group({question:["",[s.kI.required]],subject:["",[s.kI.required]],message:["",[s.kI.required]],identifyBy:["",[s.kI.required]]});var t="",e=!1;this.store.select(l.np).subscribe(n=>{if(this.showPage=!0,n&&n.profile){var o=n.profile,i=[o.firstName,o.lastName,o.email,o.phoneNumber].join(" ");i!=t&&(t=i,this.contact={firstName:o.firstName,lastName:o.lastName,email:o.email,phoneNumber:o.phoneNumber},this.contactEditor.assign(this.contact)),e||(e=!0,this.cmsService.setDefaultView(),this.analyticService.event(u.zo.generic,"Contact Us"))}})}questionChanged(t){this.question=t;var e=C[t];this.showQuestion=!!e,this.showSubject=!!(e=e||[])[0],this.subjectPlaceholder=e[0]||"",this.messagePlaceholder=e[1]||"","Start a Return - User Location"==t&&this.identifyByChanged(this.form.value.identifyBy)}identifyByChanged(t){this.subjectPlaceholder=P[t],this.showSubject=!!this.subjectPlaceholder}isValid(){return!(!(this.contact.firstName&&this.contact.lastName&&(this.contact.email||"").isValidEmail()&&(this.contact.phoneNumber||"").isValidPhoneNumber())||this.form.controls.question.invalid||!C[this.form.value.question]||"Start a Return - User Location"==this.form.value.question&&this.form.controls.identifyBy.invalid||this.form.controls.message.invali
1d)}submit(){var t=this.form.value.question,e=C[t];if(e){var n=`${this.contact.firstName} ${this.contact.lastName}`,o=this.contact.email,i=this.contact.phoneNumber.toPhoneNumber(),a=this.form.value.subject,s=[n,o,i,"",t,"",this.form.value.message].join("\r\n");a&&("Start a Return - User Location"==e&&(a=`${this.form.value.identifyBy} - ${a}`),s=[n,o,i,"",t,a,"",this.form.value.message].join("\r\n"));var r={name:n,from:o,to:e[2],phoneNumber:i,subject:a?`${t} - ${a}`:t,message:s};this.submitting=!0,this.contactService.send(r).subscribe(t=>{t.success?(this.dialogService.toaster.success("Your message has been sent"),this.router.navigate([""])):(this.submitting=!1,this.dialogService.toaster.error(t.message))},()=>{this.dialogService.toaster.error("Unable to send your request at this time. Please try again later."),this.submitting=!1})}}}return t.\u0275fac=function(e){return new(e||t)(d.Y36(s.qu),d.Y36(h.yh),d.Y36(m.y),d.Y36(g.xA),d.Y36(u.yD),d.Y36(p.kU),d.Y36(a.F0))},t.\u0275cmp=d.Xpm({type:t,selectors:[["app-contact"]],viewQuery:function(t,e){if(1&t&&d.Gf(v,5),2&t){let t;d.iGM(t=d.CRH())&&(e.contactEditor=t.first)}},decls:35,vars:10,consts:[[1,"container"],[1,"contact-us",3,"ngClass","formGroup","submit"],[1,"message"],["hide","phoneNumberInformation",3,"model","modelChange"],["contactEditor",""],[1,"row"],[1,"questions","col-md-6"],["id","question","formControlName","question",1,"form-control",3,"ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[1,"question",3,"ngClass"],["class","row",4,"ngIf"],[1,"col-12"],["id","message","rows","10","formControlName","message",1,"form-control",3,"placeholder"],[1,"col-12","buttons"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","form-protector",4,"ngIf"],[1,"spacer"],[3,"value"],[1,"col-md-6"],["id","identifyBy","formControlName","identifyBy",1,"form-control",3,"ngModelChange"],["value","Part ID Number"],["value","Order Number"],["value","Invoice Number"],["type","text","id","subject","formControlName","subject",1,"form-control",3,"placeholder"],[1,"form-protector"]],template:function(t,e){1&t&&(d.TgZ(0,"div",0),d.TgZ(1,"form",1),d.NdJ("submit",function(){return e.submit()}),d.TgZ(2,"h1"),d._uU(3,"Contact Us"),d.qZA(),d.TgZ(4,"h2"),d._uU(5,"Customer Service"),d.qZA(),d.TgZ(6,"div",2),d.TgZ(7,"p"),d._uU(8,"LKQ Online is more than happy to help you with any questions or concerns you may have. We want to make sure you have a pleasant experience on our site and with our products."),d.qZA(),d.TgZ(9,"p"),d._uU(10,"If we are not available when you contact us, we will respond to you promptly on the next business day."),d.qZA(),d.TgZ(11,"p"),d._uU(12,"We look forward to helping you!"),d.qZA(),d.qZA(),d.TgZ(13,"contact-editor",3,4),d.NdJ("modelChange",function(t){return e.contact=t}),d.qZA(),d.TgZ(15,"h2"),d._uU(16,"Questions:"),d.qZA(),d.TgZ(17,"div",5),d.TgZ(18,"div",6),d.TgZ(19,"select",7),d.NdJ("ngModelChange",function(t){return e.questionChanged(t)}),d.TgZ(20,"option",8),d._uU(21,"Choose your question"),d.qZA(),d.YNc(22,b,2,2,"option",9),d.qZA(),d.qZA(),d.qZA(),d.TgZ(23,"div",10),d.YNc(24,y,11,0,"div",11),d.YNc(25,Z,3,1,"div",11),d.TgZ(26,"div",5),d.TgZ(27,"div",12),d._UZ(28,"textarea",13),d.qZA(),d.qZA(),d.qZA(),d.TgZ(29,"div",5),d.TgZ(30,"div",14),d.TgZ(31,"button",15),d._uU(32,"Submit"),d.qZA(),d.qZA(),d.qZA(),d.qZA(),d.YNc(33,q,1,0,"div",16),d.qZA(),d._UZ(34,"div",17)),2&t&&(d.xp6(1),d.Q6J("ngClass",e.showPage?"":"d-none")("formGroup",e.form),d.xp6(12),d.Q6J("model",e.contact),d.xp6(9),d.Q6J("ngForOf",e.questions),d.xp6(1),d.Q6J("ngClass",e.showQuestion?"active":""),d.xp6(1),d.Q6J("ngIf","Start a Return - User Location"==e.question),d.xp6(1),d.Q6J("ngIf",e.showSubject),d.xp6(3),d.Q6J("placeholder",e.messagePlaceholder),d.xp6(3),d.Q6J("disabled",!e.isValid()),d.xp6(2),d.Q6J("ngIf",e.submitting))},directives:[s._Y,s.JL,o.mk,s.sg,f.o,s.EJ,s.JJ,s.u,s.YN,s.Kr,o.sg,o.O5,s.Fj],styles:[".container[_ngcontent-%COMP%]{padding-top:15px!important}.contact-us[_ngcontent-%COMP%] .questions[_ngcontent-%COMP%]{padding-bottom:10px}.contact-us[_ngcontent-%COMP%] .question[_ngcontent-%COMP%]{max-height:0px;overflow:hidden;transition:all .4s}.contact-us[_ngcontent-%COMP%] .question.active[_ngcontent-%COMP%]{max-height:360px}.contact-us[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:0!important}.contact-us[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:0!important}.contact-us[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-bottom:10px!important}.contact-us[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:150%}.contact-us[_ngcontent-%COMP%] select.ng-invalid.ng-dirty[_ngcontent-%COMP%], .contact-us[_ngcontent-%COMP%] textarea.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border:1px solid #D50000}@media (max-width: 575px){.container[_ngcontent-%COMP%]{padding:15px 5px 0!important}}.spacer[_ngcontent-%COMP%]{padding-top:5px}.form-protector[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000}button[_ngcontent-%COMP%]{float:right}button[disabled][_ngcontent-%COMP%]:hover{cursor:not-allowed}"]}),t})();var w=n(4466);const O=[{path:"",component:_}];let N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=d.oAB({type:t}),t.\u0275inj=d.cJS({imports:[[o.ez,i.JF,a.Bz.forChild(O),s.u5,s.UX,r.yI,w.m]]}),t})()}}]);
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.