"use strict";(self.webpackChunkdrivetime_mobile=self.webpackChunkdrivetime_mobile||[]).push([[592],{44152:function(n,t,e){e.d(t,{g:function(){return s}});var i=e(46782),o=e(79765),a=e(21678),c=e(37716);const l=[[["dtm-collapsible"]]],r=["dtm-collapsible"];let s=(()=>{class n{constructor(){this.toggleSingleExpand=!1,this._componentUnsubscribe=new o.xQ}ngAfterContentInit(){this.collapsibles.forEach(n=>{n.isOpen&&this.toggleSingleExpand&&(this._currentlyOpen=n),n.toggle.pipe((0,i.R)(this._componentUnsubscribe)).subscribe(this.respondToToggle.bind(this))})}ngOnDestroy(){this._componentUnsubscribe.next(),this._componentUnsubscribe.complete()}respondToToggle(n){this.toggleSingleExpand&&(n.isOpen&&void 0!==this._currentlyOpen?(this._currentlyOpen.isOpen=!1,this._currentlyOpen=n):this._currentlyOpen=n.isOpen||void 0===this._currentlyOpen?n:void 0)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=c.Xpm({type:n,selectors:[["dtm-collapsible-container"]],contentQueries:function(n,t,e){if(1&n&&c.Suo(e,a.R,4),2&n){let n;c.iGM(n=c.CRH())&&(t.collapsibles=n)}},inputs:{toggleSingleExpand:"toggleSingleExpand"},ngContentSelectors:r,decls:4,vars:0,consts:[[1,"dtm-collapsible-container"]],template:function(n,t){1&n&&(c.F$t(l),c.TgZ(0,"div",0),c._uU(1," \n "),c.Hsn(2),c._uU(3," \n"),c.qZA())},encapsulation:2}),n})()},3739:function(n,t,e){e.d(t,{G:function(){return s}});var i=e(46782),o=e(78622),a=e(79765),c=e(37716);const l=[[["dtm-collapsible-inline"]]],r=["dtm-collapsible-inline"];let s=(()=>{class n{constructor(){this.toggleSingleExpand=!1,this._componentUnsubscribe=new a.xQ}ngAfterContentInit(){this.collapsibles.forEach(n=>{n.isOpen&&this.toggleSingleExpand&&(this._currentlyOpen=n),n.toggle.pipe((0,i.R)(this._componentUnsubscribe)).subscribe(this.respondToToggle.bind(this))})}ngOnDestroy(){this._componentUnsubscribe.next(),this._componentUnsubscribe.complete()}respondToToggle(n){this.toggleSingleExpand&&(n.isOpen&&void 0!==this._currentlyOpen?(this._currentlyOpen.isOpen=!1,this._currentlyOpen=n):this._currentlyOpen=n.isOpen||void 0===this._currentlyOpen?n:void 0)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=c.Xpm({type:n,selectors:[["dtm-collapsible-inline-container"]],contentQueries:function(n,t,e){if(1&n&&c.Suo(e,o.q,4),2&n){let n;c.iGM(n=c.CRH())&&(t.collapsibles=n)}},inputs:{toggleSingleExpand:"toggleSingleExpand"},ngContentSelectors:r,decls:4,vars:0,consts:[[1,"dtm-collapsible-inline-container"]],template:function(n,t){1&n&&(c.F$t(l),c.TgZ(0,"div",0),c._uU(1," \n "),c.Hsn(2),c._uU(3," \n"),c.qZA())},encapsulation:2}),n})()},78622:function(n,t,e){e.d(t,{q:function(){return C}});var i=e(37716),o=e(70764),a=e(26215),c=e(72349),l=e(38583),r=e(82701),s=e(77519);const g=[[["collapsible-title"]],[["collapsible-sub-title"]],[["collapsible-content"]],[["collapsible-footer"]]],h=function(n,t){return{"is-open":n,"collapsible-component-overlayed":t}},d=function(n){return{"is-open":n}},u=function(n,t,e,i){return{ariaExpanded$:n,ariaDisabled$:t,ariaControls:e,ariaLabel:i}},p=function(n){return{ariaLabelledby:n,role:"region"}},_=["collapsible-title","collapsible-sub-title","collapsible-content","collapsible-footer"];let C=(()=>{class n{constructor(n,t,e){this.elementRef=n,this.cdRef=t,this._analyticService=e,this.toggle=new i.vpe,this.close=new i.vpe,this.outputButton=!1,this.analyticDataOpen={},this.analyticDataClose={},this.collapsibleSizeClass="small",this.ariaLabel="",this.isExpanded$=new a.X(!1),this.isDisabled$=new a.X(!1),this.collapsibleButtonUuid=c.uR.generateShortUuid(),this.collapsibleContentUuid=c.uR.generateShortUuid(),this.classFooter="",this.collapsibleOverlayed=!1}toggleOpen(){this._analyticService.logAnalytic(this.isOpen?this.analyticDataClose:this.analyticDataOpen),this.isOpen=!this.isOpen,this.isExpanded$.next(this.isOpen),this.toggle.emit(this),this.cdRef.detectChanges()}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(o.g))},n.\u0275cmp=i.Xpm({type:n,selectors:[["dtm-collapsible-inline"]],inputs:{isOpen:"isOpen",classContainer:"classContainer",classTitle:"classTitle",classContent:"classContent",outputButton:"outputButton",analyticDataOpen:"analyticDataOpen",analyticDataClose:"analyticDataClose",collapsibleSizeClass:"collapsibleSizeClass",qaid:"qaid",ariaLabel:"ariaLabel"},outputs:{toggle:"toggle",close:"close"},ngContentSelectors:_,decls:33,vars:35,consts:[[1,"collapsible-component-container",3,"ngClass"],[1,"collapsible-inline-component"],[3,"ngClass"],[1,"collapsible-button",3,"id","accessibility","click"],[1,"collapsible-left-side"],[1,"collapsible-inline-title"],["includeSVG","dt-glyph-caret",1,"collapsible-arrow","arrow-align-inline","svg-arrow-down"],[3,"id","accessibility"]],template:function(n,t){1&n&&(i.F$t(g),i.TgZ(0,"div",0),i._uU(1,"\n "),i.TgZ(2,"div",1),i._uU(3,"\n "),i.TgZ(4,"div",2),i._uU(5,"\n "),i.TgZ(6,"button",3),i.NdJ("click",function(n){return t.outputButton?t.toggle.emit(n):t.toggleOpen()}),i._uU(7,"\n "),i.TgZ(8,"div",4),i._uU(9,"\n "),i.TgZ(10,"span",5),i._uU(11,"\n "),i.Hsn(12),i._uU(13,"\n "),i.Hsn(14,1),i._uU(15,"\n "),i._UZ(16,"span",6),i._uU(17,"\n "),i.qZA(),i._uU(18,"\n "),i.qZA(),i._uU(19,"\n "),i.qZA(),i._uU(20,"\n "),i.TgZ(21,"div",7),i._uU(22,"\n "),i.Hsn(23,2),i._uU(24,"\n "),i.qZA(),i._uU(25,"\n "),i.qZA(),i._uU(26,"\n "),i.TgZ(27,"div",2),i._uU(28,"\n "),i.Hsn(29,3),i._uU(30,"\n "),i.qZA(),i._uU(31,"\n "),i.qZA(),i._uU(32,"\n"),i.qZA()),2&n&&(i.Q6J("ngClass",i.WLB(21,h,t.isOpen,t.collapsibleOverlayed)),i.xp6(4),i.Gre("collapsible-outer-container ",t.classContainer,""),i.Q6J("ngClass",i.VKq(24,d,t.isOpen)),i.xp6(2),i.Gre("input-reset collapsible-button ",t.classTitle,""),i.Q6J("id",t.collapsibleButtonUuid)("accessibility",i.l5B(26,u,t.isExpanded$,t.isDisabled$,t.collapsibleContentUuid,t.ariaLabel)),i.uIk("qaid",t.qaid)("data-cy",t.qaid),i.xp6(15),i.Gre("collapsible-inner-container collapsible-inner-",t.collapsibleSizeClass,""),i.Q6J("id",t.collapsibleContentUuid)("accessibility",i.VKq(31,p,t.collapsibleButtonUuid)),i.xp6(6),i.Gre("footer-container ",t.classFooter,""),i.Q6J("ngClass",i.VKq(33,d,t.isOpen)))},directives:[l.mk,r.z,s.pw],styles:["[_nghost-%COMP%] .collapsible-component-container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .collapsible-inline-component[_ngcontent-%COMP%]{width:100%;margin:0 auto}[_nghost-%COMP%] .collapsible-button[_ngcontent-%COMP%]{width:100%;padding:.5rem 0;position:relative;text-align:left;overflow-wrap:break-word;-webkit-tap-highlight-color:rgba(0,0,0,0)}[_nghost-%COMP%] .collapsible-button[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] .collapsible-inner-container[_ngcontent-%COMP%]{max-height:0;overflow:hidden;visibility:hidden;transition-duration:.5s;transition-property:max-height,visibility}[_nghost-%COMP%] .collapsible-left-side[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .arrow-align-inline[_ngcontent-%COMP%]{vertical-align:middle;display:inline-block;line-height:.1rem;transform:rotate(90deg);width:5vw}[_nghost-%COMP%] .collapsible-overlayed[_ngcontent-%COMP%]{position:absolute;min-height:3rem}[_nghost-%COMP%] .collapsible-component-overlayed[_ngcontent-%COMP%]{min-height:1.5rem}[_nghost-%COMP%] .footer-container[_ngcontent-%COMP%]{overflow:hidden;opacity:0;transition:opacity .5s ease-in-out}[_nghost-%COMP%] .footer-container.is-open[_ngcontent-%COMP%]{opacity:1;transition:opacity .5s ease-in-out}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .collapsible-inner-container[_ngcontent-%COMP%]{visibility:visible;transition-duration:.5s;transition-property:max-height,visibility}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .arrow-align-inline[_ngcontent-%COMP%]{transform:rotate(270deg)}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .collapsible-inner-xsmall[_ngcontent-%COMP%]{max-height:10rem}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .collapsible-inner-small[_ngcontent-%COMP%]{max-height:24rem}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .collapsible-inner-medium[_ngcontent-%COMP%]{max-height:35rem}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .collapsible-inner-large[_ngcontent-%COMP%]{max-height:50rem}[_nghost-%COMP%] .is-open[_ngcontent-%COMP%] .collapsible-inner-xlarge[_ngcontent-%COMP%]{max-height:70rem}@media screen and (min-width: 414px){[_nghost-%COMP%] .collapsible-inline-component[_ngcontent-%COMP%]{font-size:1rem}[_nghost-%COMP%] .collapsible-inline-title[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .arrow-align-inline[_ngcontent-%COMP%]{width:1rem}}"]}),n})()},91821:function(n,t,e){e.d(t,{j:function(){return s}});var i=e(13535),o=e(37716),a=e(19967),c=e(77519),l=e(82701);const r=function(){return{ariaLabel:"Learn more about our COVID precautions",tabIndex:null}};let s=(()=>{class n{constructor(n){this._linkHelper=n,this.url=this._linkHelper.covidPrecautionsLink()}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(i.R))},n.\u0275cmp=o.Xpm({type:n,selectors:[["dtm-covid-precautions-banner"]],inputs:{analyticData:"analyticData"},decls:6,vars:5,consts:[["qaid","covid-precautions-banner",1,"covid-precautions-container"],[3,"analytic","targetedLink","href","accessibility"]],template:function(n,t){1&n&&(o.TgZ(0,"div",0),o._uU(1,"\n Your health and safety are our top priority. "),o.TgZ(2,"a",1),o._uU(3,"\n Learn more"),o.qZA(),o._uU(4," about the steps we're taking to keep you safe.\n"),o.qZA(),o._uU(5,"\n")),2&n&&(o.xp6(2),o.Q6J("analytic",t.analyticData)("targetedLink",t.url)("href",t.url,o.LSH)("accessibility",o.DdM(4,r)))},directives:[a.e,c.AK,l.z],styles:["[_nghost-%COMP%] .covid-precautions-container[_ngcontent-%COMP%]{color:#0c2340;background-color:#c4eafa;width:100%;padding:.9rem;font-size:3.6vw;font-weight:400;text-align:center;line-height:1rem;margin-top:.7rem}[_nghost-%COMP%] .covid-precautions-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit;font-weight:800;text-decoration:underline}@media screen and (min-width: 414px){[_nghost-%COMP%] .covid-precautions-container[_ngcontent-%COMP%]{font-size:.77rem}}"]}),n})()},33416:function(n,t,e){e.d(t,{L:function(){return M}});var i=e(37716),o=e(26215),a=e(79765),c=e(20483),l=e(46782),r=e(87519),s=e(98800),g=e(43740),h=e(38583),d=e(87396),u=e(797),p=e(19967),_=e(23042);function C(n,t){1&n&&i._UZ(0,"dtm-dealership-loading-card")}const m=function(n){return{active:n}};function O(n,t){if(1&n){const n=i.EpF();i.TgZ(0,"dtm-link-button",5),i.NdJ("click",function(){const t=i.CHM(n).$implicit;return i.oxw(2).clickHandler(t.DealershipNumber)}),i.ALo(1,"async"),i._uU(2,"\n "),i.TgZ(3,"div",6),i._uU(4,"\n "),i.TgZ(5,"dtm-dealership-summary-card",7),i.ALo(6,"async"),i.ALo(7,"async"),i._uU(8,"\n "),i.qZA(),i._uU(9,"\n "),i.qZA(),i._uU(10,"\n "),i.qZA()}if(2&n){const n=t.$implicit,e=t.index,o=i.oxw(2);i.MGl("id","dealership",n.DealershipNumber,""),i.Q6J("qaid","dealership-card-"+e)("linkButtonType",o.LinkButtonTypes.Button)("analytic",o.analyticDataCardClick)("ngClass",i.VKq(20,m,i.lcZ(1,14,o.selectedDealershipNumber)===n.DealershipNumber)),i.xp6(5),i.Q6J("dealership",n)("analyticDataClick",o.analyticDataCtaClick)("analyticDataCardClick",o.analyticDataCardClick)("analyticViewDetailCta",o.analyticDataCardDetailCtaClick)("analyticDealershipTitleCta",o.analyticDataCardTitleCtaClick)("showPhone",i.lcZ(6,16,o.screenSizeService.isDesktop))("showCta",!o.selectable)("selectedCard",i.lcZ(7,18,o.selectedDealershipNumber)===n.DealershipNumber)("checkboxDisplay",o.selectable)}}function P(n,t){if(1&n&&(i.TgZ(0,"div",3),i._uU(1,"\n "),i.YNc(2,O,11,22,"dtm-link-button",4),i.ALo(3,"async"),i._uU(4,"\n "),i.qZA()),2&n){const n=i.oxw();i.xp6(2),i.Q6J("ngForOf",i.lcZ(3,1,n.dealerships$))}}let M=(()=>{class n{constructor(n,t,e){this._elementRef=n,this.screenSizeService=t,this._renderer=e,this.dealerships$=new o.X(null),this.selectable=!1,this.analyticDataCtaClick={},this.analyticDataCardClick={},this.analyticDataCardDetailCtaClick={},this.analyticDataCardTitleCtaClick={},this.selectedDealershipNumber=new o.X(null),this.scrollContainer=null,this.onDealershipSelected=new i.vpe,this.resultsPending$=new o.X(!0),this.LinkButtonTypes=g.CY,this._componentUnsubscribe=new a.xQ,this._suppressScroll=!1}ngOnInit(){this.dealerships$.pipe((0,l.R)(this._componentUnsubscribe)).subscribe(n=>this.resultsPending$.next(c.cmp.isUndefinedOrNull(n))),this.selectedDealershipNumber.pipe((0,l.R)(this._componentUnsubscribe),(0,r.x)()).subscribe(n=>{if(!this._suppressScroll&&c.cmp.isDefinedAndNotNull(n)){let t=this._elementRef.nativeElement.querySelector(`#dealership${n}`);c.cmp.isDefinedAndNotNull(t)&&c.cmp.isDefinedAndNotNull(this.scrollContainer)&&this._renderer.setProperty(this.scrollContainer,"scrollTop",t.offsetTop)}this._suppressScroll=!1})}ngOnDestroy(){this._componentUnsubscribe.next(),this._componentUnsubscribe.complete()}clickHandler(n){this._suppressScroll=!0,this.selectedDealershipNumber.next(n),this.onDealershipSelected.emit(n)}}return n.\u0275fac=function(t){return new(t||n)(i.Y36(i.SBq),i.Y36(s.O),i.Y36(i.Qsj))},n.\u0275cmp=i.Xpm({type:n,selectors:[["dtm-dealership-list"]],inputs:{dealerships$:"dealerships$",selectable:"selectable",analyticDataCtaClick:"analyticDataCtaClick",analyticDataCardClick:"analyticDataCardClick",analyticDataCardDetailCtaClick:"analyticDataCardDetailCtaClick",analyticDataCardTitleCtaClick:"analyticDataCardTitleCtaClick",selectedDealershipNumber:"selectedDealershipNumber",scrollContainer:"scrollContainer"},outputs:{onDealershipSelected:"onDealershipSelected"},decls:9,vars:6,consts:[[1,"dealership-list-container"],[4,"ngIf"],["data-cy","dealership-list",4,"ngIf"],["data-cy","dealership-list"],["className","frameless-button dealership-card-button","ariaLabel","Select Dealership","class","dealership-card-button-container",3,"qaid","id","linkButtonType","analytic","ngClass","click",4,"ngFor","ngForOf"],["className","frameless-button dealership-card-button","ariaLabel","Select Dealership",1,"dealership-card-button-container",3,"qaid","id","linkButtonType","analytic","ngClass","click"],[1,"text-before"],[3,"dealership","analyticDataClick","analyticDataCardClick","analyticViewDetailCta","analyticDealershipTitleCta","showPhone","showCta","selectedCard","checkboxDisplay"]],template:function(n,t){1&n&&(i.TgZ(0,"div",0),i._uU(1,"\n "),i.YNc(2,C,1,0,"dtm-dealership-loading-card",1),i.ALo(3,"async"),i._uU(4,"\n "),i.YNc(5,P,5,3,"div",2),i.ALo(6,"async"),i._uU(7,"\n"),i.qZA(),i._uU(8,"\n")),2&n&&(i.xp6(2),i.Q6J("ngIf",i.lcZ(3,2,t.resultsPending$)),i.xp6(3),i.Q6J("ngIf",!i.lcZ(6,4,t.resultsPending$)))},directives:[h.O5,d.R,h.sg,u.b,p.e,h.mk,_.V],pipes:[h.Ov],styles:["[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background-color:#ececec}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] dtm-dealership-summary-card[_ngcontent-%COMP%]{border-bottom:1px solid #ececec}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .dealership-card-button-container[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .dealership-card-button-container[_ngcontent-%COMP%] span{width:100%}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .dealership-card-button{width:100%;margin:0}@media not all and (pointer: coarse){[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .dealership-card-button:hover:hover{background:#ececec}}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .dtm-dealership-summary-card .middle{text-align:left}@media screen and (min-width: 768px){[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}[_nghost-%COMP%] .dealership-list-container[_ngcontent-%COMP%] .dtm-dealership-summary-card{border-left:1px solid #ececec}}"]}),n})()},71014:function(n,t,e){e.d(t,{v:function(){return r}});var i=e(37716),o=e(38583),a=e(82701);const c=function(n){return{ariaLabel:n}};function l(n,t){if(1&n&&(i.TgZ(0,"li",2),i._uU(1,"\n "),i.TgZ(2,"span",3),i._uU(3),i.qZA(),i._uU(4,"\n "),i.TgZ(5,"span",4),i._uU(6,". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ."),i.qZA(),i._uU(7,"\n "),i.TgZ(8,"span",3),i._uU(9),i.qZA(),i._uU(10,"\n "),i.qZA()),2&n){const n=t.$implicit;i.xp6(2),i.Q6J("accessibility",i.VKq(4,c,n.key)),i.xp6(1),i.Oqu(n.key),i.xp6(5),i.Q6J("accessibility",i.VKq(6,c,n.value)),i.xp6(1),i.Oqu(n.value)}}let r=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["dtm-dot-leaders"]],inputs:{inputData:"inputData"},decls:5,vars:1,consts:[[1,"leaders"],["class","leaders-list",4,"ngFor","ngForOf"],[1,"leaders-list"],[3,"accessibility"],[1,"leaders-dots"]],template:function(n,t){1&n&&(i.TgZ(0,"ul",0),i._uU(1,"\n "),i.YNc(2,l,11,8,"li",1),i._uU(3,"\n"),i.qZA(),i._uU(4,"\n")),2&n&&(i.xp6(2),i.Q6J("ngForOf",t.inputData))},directives:[o.sg,a.z],styles:["[_nghost-%COMP%] ul.leaders[_ngcontent-%COMP%]{margin:.35rem 0;line-height:1.3rem;padding:0;overflow:hidden;list-style:none}[_nghost-%COMP%] .leaders-list[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:row}[_nghost-%COMP%] .leaders-dots[_ngcontent-%COMP%]{display:flex;flex:1 1;padding:0 .125rem;height:1.3rem;overflow:hidden;text-align:center}[_nghost-%COMP%] ul.leaders[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{display:flex;flex:0 0;white-space:nowrap}[_nghost-%COMP%] ul.leaders[_ngcontent-%COMP%] .leaders-dots[_ngcontent-%COMP%] + span[_ngcontent-%COMP%]{display:flex;flex:0 0;white-space:nowrap}"]}),n})()},77112:function(n,t,e){e.d(t,{D:function(){return o}});var i=e(37716);let o=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["dtm-empty-routing-component"]],decls:0,vars:0,template:function(n,t){},encapsulation:2}),n})()},91801:function(n,t,e){e.d(t,{W:function(){return g}});var i=e(37716);function o({price:n,down:t,rate:e,term:i},{roundDecimal:o}={roundDecimal:0}){const a=e/12*(1/(1-Math.pow(1+e/12,-i)))*(n-t);return o>0?Math.round(a*Math.pow(10,o))/Math.pow(10,o):Math.round(a)}var a=e(26215),c=e(61590),l=e(38583);function r(n,t){1&n&&(i.TgZ(0,"span",13),i._uU(1,"*"),i.qZA())}const s=function(n){return[n]};let g=(()=>{class n{constructor(){this.minPrice=1e4,this.maxPrice=3e4,this.priceInterval=250,this.defaultPrice=18e3,this.price$=new a.X([this.defaultPrice]),this.price=this.getValue(this.price$),this.minDown=500,this.maxDown=5e3,this.downInterval=100,this.defaultDown=1400,this.down$=new a.X([this.defaultDown]),this.down=this.getValue(this.down$),this.bestRate=.07,this.avgRate=.226,this.term=71,this.withDisclaimer=!1,this.onMonthlyPaymentChanged=new i.vpe,this.onSliderChanged=new i.vpe,this.onCalculatorLoad=new i.vpe,this.qaid=this.qaid||"finance-calculator",this.qaidCarPrice=this.qaidCarPrice||this.qaid+"-car-price",this.qaidDownPayment=this.qaidDownPayment||this.qaid+"-down-payment",this._updateMonthlyPayment()}ngAfterViewInit(){this.onCalculatorLoad.emit()}handleSliderOnChange(n,t){const[e]=t;this[n]=e,this.onSliderChanged.emit({key:n,value:e}),this._updateMonthlyPayment()}getValue(n){return n.getValue()[0]}_updateMonthlyPayment(){const n={price:this.price,down:this.down,term:this.term};this.bestMonthlyPayment=o(Object.assign(Object.assign({},n),{rate:this.bestRate})),this.avgMonthlyPayment=o(Object.assign(Object.assign({},n),{rate:this.avgRate})),this.onMonthlyPaymentChanged.emit({best:this.bestMonthlyPayment,avg:this.avgMonthlyPayment})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["dtm-finance-calculator"]],inputs:{qaid:"qaid",minPrice:"minPrice",maxPrice:"maxPrice",priceInterval:"priceInterval",defaultPrice:"defaultPrice",qaidCarPrice:"qaidCarPrice",priceAccessibilityAttributes:"priceAccessibilityAttributes",minDown:"minDown",maxDown:"maxDown",downInterval:"downInterval",defaultDown:"defaultDown",qaidDownPayment:"qaidDownPayment",downPaymentAccessibilityAttributes:"downPaymentAccessibilityAttributes",bestRate:"bestRate",avgRate:"avgRate",term:"term",withDisclaimer:"withDisclaimer"},outputs:{onMonthlyPaymentChanged:"onMonthlyPaymentChanged",onSliderChanged:"onSliderChanged",onCalculatorLoad:"onCalculatorLoad"},decls:41,vars:25,consts:[[1,"finance-caluculator"],["filterTitle","Down Payment","sliderType","left","behaviour","snap",3,"isCurrency","handleLocations","min","max","step","value$","qaid","allowTab","accessibilityAttributes","valueOnUpdate"],["filterTitle","Car Price","sliderType","left","behaviour","snap",3,"isCurrency","handleLocations","min","max","step","value$","qaid","allowTab","accessibilityAttributes","valueOnUpdate"],[1,"monthly-payment-content"],[1,"monthly-payment-title"],["class","notation",4,"ngIf"],[1,"best-avg-monthly-container"],[1,"best"],[1,"payment"],[1,"currency"],[1,"best-pill"],[1,"average"],[1,"avg-pill"],[1,"notation"]],template:function(n,t){1&n&&(i.TgZ(0,"div",0),i._uU(1,"\n "),i.TgZ(2,"dtm-range-slider",1),i.NdJ("valueOnUpdate",function(n){return t.handleSliderOnChange("down",n)}),i._uU(3,"\n "),i.qZA(),i._uU(4,"\n "),i.TgZ(5,"dtm-range-slider",2),i.NdJ("valueOnUpdate",function(n){return t.handleSliderOnChange("price",n)}),i._uU(6,"\n "),i.qZA(),i._uU(7,"\n "),i.TgZ(8,"div",3),i._uU(9,"\n "),i.TgZ(10,"div",4),i._uU(11,"Estimated Monthly Payment"),i.YNc(12,r,2,0,"span",5),i.qZA(),i._uU(13,"\n "),i.TgZ(14,"div",6),i._uU(15,"\n "),i.TgZ(16,"div",7),i._uU(17,"\n "),i.TgZ(18,"div",8),i.TgZ(19,"span",9),i._uU(20,"$"),i.qZA(),i._uU(21),i.qZA(),i._uU(22,"\n "),i.TgZ(23,"div",10),i._uU(24,"Best Deal"),i.qZA(),i._uU(25,"\n "),i.qZA(),i._uU(26,"\n "),i.TgZ(27,"div",11),i._uU(28,"\n "),i.TgZ(29,"div",8),i.TgZ(30,"span",9),i._uU(31,"$"),i.qZA(),i._uU(32),i.qZA(),i._uU(33,"\n "),i.TgZ(34,"div",12),i._uU(35,"Average Deal"),i.qZA(),i._uU(36,"\n "),i.qZA(),i._uU(37,"\n "),i.qZA(),i._uU(38,"\n "),i.qZA(),i._uU(39,"\n"),i.qZA(),i._uU(40,"\n")),2&n&&(i.xp6(2),i.Q6J("isCurrency",!0)("handleLocations",i.VKq(21,s,t.defaultDown))("min",t.minDown)("max",t.maxDown)("step",t.downInterval)("value$",t.down$)("qaid",t.qaidDownPayment)("allowTab",!0)("accessibilityAttributes",t.downPaymentAccessibilityAttributes),i.xp6(3),i.Q6J("isCurrency",!0)("handleLocations",i.VKq(23,s,t.defaultPrice))("min",t.minPrice)("max",t.maxPrice)("step",t.priceInterval)("value$",t.price$)("qaid",t.qaidCarPrice)("allowTab",!0)("accessibilityAttributes",t.priceAccessibilityAttributes),i.xp6(7),i.Q6J("ngIf",t.withDisclaimer),i.xp6(9),i.Oqu(t.bestMonthlyPayment),i.xp6(11),i.Oqu(t.avgMonthlyPayment))},directives:[c.w,l.O5],styles:[".finance-caluculator[_ngcontent-%COMP%] .noUi-connect{height:10px}.finance-caluculator[_ngcontent-%COMP%] .noUi-connects{height:10px;border-radius:12px;background:#c4eafa}.finance-caluculator[_ngcontent-%COMP%] .noUi-handle{width:21px;height:21px}.finance-caluculator[_ngcontent-%COMP%] .noUi-origin>.noUi-handle{border-width:2px}.finance-caluculator[_ngcontent-%COMP%] .slider-content{width:100%;margin-bottom:1.2rem}.finance-caluculator[_ngcontent-%COMP%] .slider-content .slider-area{width:100%}.finance-caluculator[_ngcontent-%COMP%] .slider-content .scale-filter-title{font-size:.89rem;font-weight:600}.finance-caluculator[_ngcontent-%COMP%] .slider-content .number-range{margin-bottom:.4rem;font-size:.89rem;font-weight:600;color:#0c2340;text-align:right}@media screen and (max-width: 414px){.finance-caluculator[_ngcontent-%COMP%] .slider-content .scale-filter-title{font-size:4vw}.finance-caluculator[_ngcontent-%COMP%] .slider-content .number-range{font-size:4vw}}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content{max-width:21rem;margin:0 auto;position:relative;text-align:center;line-height:1.3}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .monthly-payment-title{font-size:.89rem;font-weight:800;color:#0c2340;line-height:1.4}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .monthly-payment-title .notation{font-size:.625rem;bottom:6px;position:relative;left:1.1px}@media screen and (max-width: 414px){.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .monthly-payment-title .notation{font-size:2.8vw}}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container{display:flex;justify-content:space-around;margin-bottom:8px;position:relative;right:7px}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .payment{font-size:MIN(14.67vw,3.4rem);font-weight:800;color:#00abe8}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .payment>span{position:relative}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .payment>.currency{font-size:MIN(8.5vw,2rem);bottom:MIN(4.25vw,1rem)}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .best-pill, .finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .avg-pill{color:#00af66;background-color:#e5fff4;padding:4px 8px;border-radius:18px;font-weight:600;font-size:.625rem}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .best-pill{position:relative;left:6px}.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .avg-pill{position:relative;left:10px}@media screen and (max-width: 414px){.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .best-pill, .finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .best-avg-monthly-container .avg-pill{font-size:2.8vw;margin:0 15px}}@media screen and (max-width: 414px){.finance-caluculator[_ngcontent-%COMP%] .monthly-payment-content .monthly-payment-title{font-size:4.4vw;margin-bottom:5px}}"]}),n})()},67298:function(n,t,e){e.d(t,{i:function(){return c}});var i=e(37716),o=e(38583);function a(n,t){1&n&&(i.TgZ(0,"div",1),i._uU(1,"\n "),i.TgZ(2,"div",2),i._uU(3,"\n "),i._UZ(4,"div",3),i._uU(5,"\n "),i.TgZ(6,"div",4),i._uU(7,"\n "),i._UZ(8,"div",5),i._uU(9,"\n "),i.TgZ(10,"div",6),i._uU(11,"\n "),i._UZ(12,"div",7),i._uU(13,"\n "),i._UZ(14,"div",7),i._uU(15,"\n "),i._UZ(16,"div",7),i._uU(17,"\n "),i._UZ(18,"div",7),i._uU(19,"\n "),i.qZA(),i._uU(20,"\n "),i._UZ(21,"div",8),i._uU(22,"\n "),i.TgZ(23,"div",9),i._uU(24,"\n "),i.TgZ(25,"div",10),i._uU(26,"\n "),i._UZ(27,"div",11),i._uU(28,"\n "),i._UZ(29,"div",12),i._uU(30,"\n "),i.qZA(),i._uU(31,"\n "),i._UZ(32,"div",13),i._uU(33,"\n "),i.qZA(),i._uU(34,"\n "),i.qZA(),i._uU(35,"\n "),i.qZA(),i._uU(36,"\n "),i._UZ(37,"div",14),i._uU(38,"\n"),i.qZA())}let c=(()=>{class n{constructor(){this.cardCount=5,this.cardCountArray=[0]}ngOnInit(){this.cardCountArray=Array.apply(null,{length:this.cardCount}).map((n,t)=>t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["dtm-vehicle-loading-card-responsive"]],inputs:{cardCount:"cardCount"},decls:1,vars:1,consts:[["class","vehicle-card-container",4,"ngFor","ngForOf"],[1,"vehicle-card-container"],[1,"content-container"],[1,"image-container"],[1,"info-container"],[1,"title"],[1,"highlights"],[1,"highlight"],[1,"features"],[1,"cta-container"],[1,"price-container"],[1,"gt-price"],[1,"price"],[1,"button"],[1,"lower-container"]],template:function(n,t){1&n&&i.YNc(0,a,39,0,"div",0),2&n&&i.Q6J("ngForOf",t.cardCountArray)},directives:[o.sg],styles:["[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%]{width:95%;margin:1rem auto 0;max-width:414px;animation:fade-in-out-pulse 1.5s linear infinite;box-shadow:0 0 9px #8f9aa3cc;background:#ffffff}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{height:14.9rem;background:#ececec}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{height:5.8rem;background:#ffffff;padding:.5rem 2.5vw}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], [_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .features[_ngcontent-%COMP%]{width:80%;height:.5rem;margin:.5rem 0;background:#ececec}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{flex:1;height:.5rem;width:100%;margin:.5rem 5vw;background:#ececec}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:first-child{margin-left:0}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:nth-child(3){margin-right:0}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:last-child{display:none}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .features[_ngcontent-%COMP%]{width:100%;height:.5rem}@media screen and (min-width: 414px){[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{padding:.5rem}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{margin:.5rem 1rem}}@media screen and (min-width: 768px){[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%]{max-width:800px}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{padding:.5rem;width:100%;display:flex}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{width:45%;max-width:17rem;height:12.7rem}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{width:55%;max-width:23rem;height:12.7rem;margin:0 auto;justify-content:space-between;display:flex;flex-direction:column}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], [_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .features[_ngcontent-%COMP%]{height:1rem}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]{height:1rem;margin:.5rem 0;flex:initial}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:nth-child(1){width:35%;margin-right:15%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:nth-child(2){width:40%;margin-right:10%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:nth-child(3){width:20%;margin-right:30%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .highlights[_ngcontent-%COMP%] .highlight[_ngcontent-%COMP%]:last-child{display:block;width:30%;margin-right:20%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .features[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .cta-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;align-items:center}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .cta-container[_ngcontent-%COMP%] .price-container[_ngcontent-%COMP%]{width:35%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .cta-container[_ngcontent-%COMP%] .price-container[_ngcontent-%COMP%] .gt-price[_ngcontent-%COMP%]{height:.6rem;background:#ececec;width:100%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .cta-container[_ngcontent-%COMP%] .price-container[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{height:1.5rem;margin-top:.5rem;background:#ececec;width:90%}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .cta-container[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{width:40%;height:2rem;background:#ececec}[_nghost-%COMP%] .vehicle-card-container[_ngcontent-%COMP%] .lower-container[_ngcontent-%COMP%]{width:100%;height:1.6rem;background:#ececec}}"]}),n})()},23073:function(n,t,e){e.d(t,{h:function(){return i}});var i=(()=>{return(n=i||(i={})).DownPayment="Down Payment",n.MonthlyPayment="Monthly Payment",n.APR="APR",n.TermLength="Term Length",n.MonthlyIncome="Your Monthly Income",n.CoBuyerIncome="Co-buyer Monthly Income",n.TradeInValue="Est. Trade-in Value",n.GrossMonthlyIncome="Gross Monthly Income",n.AssumedMonthlyIncome="Assumed Monthly Income",n.VerifiedMonthlyIncome="Verified Monthly Income",i;var n})()},21005:function(n,t,e){e.d(t,{c:function(){return O}});var i=e(97582),o=e(30277),a=e(69958),c=e(1638),l=e(96645),r=e(17315),s=e(68334),g=e(28645),h=e(4398),d=e(18891),u=e(19773),p=e(28049),_=e(20483),C=e(80352),m=e(37716);class O{constructor(n,t){this._store=n,this._optimizelyFullStackService=t,this.mapFeatures(),this.sessionHistory$.pipe((0,u.zg)(n=>n),(0,p.P)(n=>_.cmp.isDefinedAndNotNull(n))).subscribe(n=>{[C.x4.GetApproved1,C.x4.GetApproved2].includes(n.name)||this._optimizelyFullStackService.activateFeature(r.Fu.GaAutoComplete.Id)})}static getVerbiageControl(n){return n}mapFeatures(){s.U.mapFeature(this._store,{featureKey:r.Fu.GaAutoComplete.Id,variableKey:r.Fu.GaAutoComplete.Control},{featureKey:l.j.GetApprovedAutoComplete.ID,variableKey:l.j.GetApprovedAutoComplete.Control})}getFeatureValue(){return this._store.select(O.getVerbiageControl)}}O.\u0275fac=function(n){return new(n||O)(m.LFG(o.k),m.LFG(a.B))},O.\u0275prov=m.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),(0,i.gn)([(0,g.Ph)(h.p_.getSessionHistory),(0,i.w6)("design:type",d.y)],O.prototype,"sessionHistory$",void 0),(0,i.gn)([(0,g.Qf)([c.LW.getVariableValue(l.j.GetApprovedAutoComplete.ID,l.j.GetApprovedAutoComplete.Control)]),(0,i.w6)("design:type",Function),(0,i.w6)("design:paramtypes",[String]),(0,i.w6)("design:returntype",String)],O,"getVerbiageControl",null)},17865:function(n,t,e){e.d(t,{B:function(){return i}});const i=n=>`Price: ${n.price} | Down: ${n.down} | Best Monthly: ${n.bestMonthlyPayment} | Average Monthly: ${n.avgMonthlyPayment}`}}]);