1/*! For license information please see c7c0f3e597e234c892f5.chunk.js.LICENSE.txt */ 2(self.webpackChunk_carfax_cfo_common=self.webpackChunk_carfax_cfo_common||[]).push([[2594],{97666(e,n,i){"use strict";i.d(n,{A:()=>l});i(96540);const t=i.p+"static/apps/cfo/no_data_green_checkf6a0d01e2f795f66c414.svg";var r=i(74848),s=void 0;function a(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var o=function(){a(this,s);var e=new Date;return e.setDate(e.getDate()-1),["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()}.bind(void 0);const l=function(e){a(this,s);var n=e.title,i=e.subtitle,l=e.showLastUpdated,c=e.showImage;return(0,r.jsxs)("div",{className:"no-data-box",children:[c&&(0,r.jsx)("div",{children:(0,r.jsx)("img",{src:t})}),(0,r.jsx)("div",{className:"no-data-box-text__title",children:n}),(0,r.jsxs)("div",{className:"no-data-box-text__subtitle",children:[void 0!==i?i:"Check back regularly for updates.",l&&(0,r.jsxs)("p",{children:["Updated ",o()]})]})]})}.bind(void 0)},22351(e,n,i){"use strict";i(96540);var t=i(86090),r=i(74848),s=["to"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},a.apply(null,arguments)}const o=function(e){if(function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),!e.to||"string"==typeof e.to&&e.to.startsWith("#")){var n=e.to,i=function(e,n){if(null==e)return{};var i={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(-1!==n.indexOf(t))continue;i[t]=e[t]}return i}(e,s);return(0,r.jsx)("a",a({href:n},i))}return(0,r.jsx)(t.N_,a({},e))}.bind(void 0);i.d(n,["A",0,o])},15149(e,n,i){"use strict";i.d(n,{pS:()=>Dm,f8:()=>Tm,n3:()=>Pm,ts:()=>Am,TP:()=>wm,oi:()=>Sm,dh:()=>Em});var t=i(96540),r=i(86090),s=i(22716),a=i(40961),o=i(74848);const l=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.children,i=e.isModal,t=void 0!==i&&i?"performanceLastUpdated-modal":"performanceLastUpdated",r=document.getElementById(t);return r?(0,a.createPortal)((0,o.jsx)(o.Fragment,{children:n}),r):null}.bind(void 0);const c=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.asOfDate,i=e.lastDays,t=n.length>0?(0,o.jsx)("div",{children:(0,o.jsxs)("p",{children:["Updated ",(0,o.jsx)("span",{id:"performanceAsOfDate",children:n})]})}):(0,o.jsx)("div",{});return(0,o.jsxs)(o.Fragment,{children:[t,(0,o.jsx)("div",{children:i})]})}.bind(void 0);var d=i(91499),u=i(2177),h="bulletList-YAXBc",v="mobileFullWidth-NfcEZ",p=i(36554),m=i(2902),f=i(26412),x=i(26365),b=i(68151);const j=i.p+"static/apps/cfo/serviceCoordination5bb780ff53bf42838ae3.webp";var g=i(70907);var y=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=(0,g.c)().isMobile;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h2",{className:"header-eZ7bN",children:"CARFAX Service Coordination File"}),(0,o.jsx)("div",{className:"tagline-C82GQ",children:"Better service marketing with CARFAX data"}),(0,o.jsxs)("div",{className:"topSection-J3APs",children:[!n&&(0,o.jsx)("img",{src:j,className:"serviceCoordinationImage-GCSHa",alt:"an example of a Service Coordination File alongside a phone displaying the Car Care dashboard"}),(0,o.jsx)("div",{className:"topSectionLeft-J0cJi",children:e.children})]})]})}.bind(void 0),C=void 0;function w(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var N=function(){return w(this,C),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"Eliminate wasted spend and drive more visits:"}),(0,o.jsxs)("ul",{className:h,children:[(0,o.jsx)("li",{children:"Remove customers who no longer own their vehicle."}),(0,o.jsx)("li",{children:"Improve customer outreach with accurate, perfectly timed information."}),(0,o.jsx)("li",{children:"Protect service customers with real-time recall alerts."})]})]})}.bind(void 0),A=function(){return w(this,C),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"The CARFAX Service Coordination File is a downloadable .csv file with your customersâ vehicle ownership and maintenance data, including:"}),(0,o.jsxs)("ol",{className:"numberedList-dBJnk",children:[(0,o.jsx)("li",{children:"Oil Change"}),(0,o.jsx)("li",{children:"Tire Rotation"}),(0,o.jsx)("li",{children:"Major Service"}),(0,o.jsx)("li",{children:"Ownership Change Date"}),(0,o.jsx)("li",{children:"Recall Data"}),(0,o.jsx)("li",{children:"Safety and Emissions Inspection"})]})]})}.bind(void 0);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},S.apply(null,arguments)}function P(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var E=function(){var e=this;P(this,void 0);var n=(0,t.useState)(!1),i=n[0],r=n[1],s=S({},b.c,{"data-action":"request a quote"});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.Y,{isVisible:i,onClose:function(){return P(this,e),r(!1)}.bind(this),prospectType:x.dg.SERVICE_COORDINATION_FILE,successNotificationClassName:"leadFormSuccessNotification-KFDo4",header:"Unlock New Features"}),(0,o.jsxs)(y,{children:[(0,o.jsx)(N,{}),(0,o.jsx)(p.Ay,S({theme:"blue",className:v+" requestQuoteButton-OwlQu",iconLeft:(0,o.jsx)(m.A,{size:20,"aria-hidden":!0}),onClick:function(){return P(this,e),r(!0)}.bind(this)},s,{children:"Request a Quote"})),(0,o.jsx)(A,{})]})]})}.bind(void 0),D=i(60851),T=i(98156),O=i(17790),R=i(71479),L=i(472),k=i(24035),I="downloadNotification-s_t8g",V=i(25746),F=i(6298),B=i(73883),_=i(22609),U=i(24151),M=i(2143),G=i(84351),H=i(16073),z=i(22431),X=i(95870),W=i(8997);function Y(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const q=function(e){var n=this;Y(this,void 0);var i=e.downloadButtonRef,s=(0,V.sA)(),a=s.coachmark,l=s.shouldShowFlow,c=s.isDesktop,d=s.isTablet,u=s.elementIds,h=(0,r.Zp)(),v=(0,t.useState)(!1),p=v[0],m=v[1],f=c?V.DY:V.nD,x=l&&a.shouldShowCoachmark(f);(0,t.useEffect)(function(){var e=this;if(Y(this,n),x){var t=setTimeout(function(){var n=this;Y(this,e),i.current&&(i.current.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(function(){return Y(this,n),m(!0)}.bind(this),400))}.bind(this),400);return function(){return Y(this,e),clearTimeout(t)}.bind(this)}m(!1)}.bind(this),[x]);var b=function(){Y(this,n),a.addUserExperience()}.bind(this),j=function(){Y(this,n),a.hideForSession()}.bind(this),g=function(){var e=this;Y(this,n),a.goToPreviousCoachmark(),h("/"),d&&(X.A.ui.navigation.setCurrentMenuItemId(u.navItemId),requestAnimationFrame(function(){Y(this,e),X.A.ui.navigation.isCompactMenuVisible||X.A.ui.navigation.setIsCompactMenuVisible(!0)}.bind(this)))}.bind(this),y=d?"Finally, click Download Latest Report. Please note that it may take a couple minutes to generate and download the file.":"Click Download Latest Report to generate your Service Coordination File. Please note that it may take a couple minutes to generate and download the file.";return(0,o.jsxs)(B.A,{"aria-live":"polite","aria-label":"Service Coordination File Download",anchorRef:i,className:W.I+" "+W.c,indicatorCoordinates:[95,30],isVisible:x&&p,onClose:j,position:"bottom",width:500,children:[(0,o.jsx)(_.A,{currentStep:f,totalSteps:f}),(0,o.jsxs)(U.A,{children:[(0,o.jsx)(M.A,{children:(0,o.jsx)("b",{children:"Service Coordination File"})}),(0,o.jsx)(G.A,{children:(0,o.jsx)("p",{children:y})})]}),(0,o.jsxs)(H.A,{children:[(0,o.jsx)(z.A,{type:"tertiary",onClick:g,children:"Previous"}),(0,o.jsx)("div",{}),(0,o.jsx)(z.A,{type:"primary",onClick:b,children:"Done"})]})]})}.bind(void 0);var Z=void 0;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},K.apply(null,arguments)}function Q(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function s(i,t,r,s){var l=t&&t.prototype instanceof o?t:o,c=Object.create(l.prototype);return J(c,"_invoke",function(i,t,r){var s,o,l,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,o=0,l=e,h.n=i,a}};function v(i,t){for(o=i,l=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>3?(r=p===t)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(o=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,o=0))}if(r||i>1)return a;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),o=d,l=p;(n=o<2?e:l)||!u;){s||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,s){if(o||(r="next"),n=s[r]){if(!(n=n.call(s,l)))throw TypeError("iterator result is not an object");
2if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=s.return)&&n.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);s=e}else if((n=(u=h.n<0)?l:i.call(t,h))!==a)break}catch(n){s=e,o=1,l=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),c}var a={};function o(){}function l(){}function c(){}n=Object.getPrototypeOf;var d=[][t]?n(n([][t]())):(J(n={},t,function(){return this}),n),u=c.prototype=o.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,J(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,J(u,"constructor",c),J(c,"constructor",l),l.displayName="GeneratorFunction",J(c,r,"GeneratorFunction"),J(u),J(u,r,"Generator"),J(u,t,function(){return this}),J(u,"toString",function(){return"[object Generator]"}),(Q=function(){return{w:s,m:h}})()}function J(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}J=function(e,n,i,t){function s(n,i){J(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},J(e,n,i,t)}function $(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function ee(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ne=function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.GENERATING_REPORT=1]="GENERATING_REPORT",e[e.DOWNLOAD_STARTED=2]="DOWNLOAD_STARTED",e[e.ERROR=3]="ERROR",e}(ne||{}),ie=function(){ee(this,Z);var e=(0,V.sA)().onDownloadClicked,n=(0,F.Hx)().markNotificationsReadByType,i=(0,t.useState)(ne.NOT_STARTED),r=i[0],s=i[1],a=(0,g.c)().isMobile,l=(0,t.useRef)(null),c=function(){var i,t=(i=Q().m(function i(){var t,r=this;return Q().w(function(i){for(;;)switch(i.p=i.n){case 0:return e(),s(ne.GENERATING_REPORT),n(k._n.SCF_DOWNLOAD_READY).catch(function(e){ee(this,r),console.error("Error marking SCF notification as read",e)}.bind(this)),i.p=1,i.n=2,(0,b.F)();case 2:s(ne.DOWNLOAD_STARTED),i.n=4;break;case 3:i.p=3,t=i.v,s(ne.ERROR),console.error("Error in Service Coordination File download",t);case 4:return i.a(2)}},i,this,[[1,3]])}),function(){var e=this,n=arguments;return new Promise(function(t,r){var s=i.apply(e,n);function a(e){$(s,t,r,a,o,"next",e)}function o(e){$(s,t,r,a,o,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y,{children:(0,o.jsx)(N,{})}),(0,o.jsx)("div",{className:"topSectionDownloadSection-hbNHb",children:(0,o.jsx)(te,{downloadButtonClass:"topSectionDownloadButton-iHuzc",downloadButtonLabel:"Download Latest Report",onDownload:c,downloadState:r,downloadButtonRef:l})}),(0,o.jsx)(A,{}),(0,o.jsx)(se,{onDownload:c,downloadState:r,isMobile:a}),(0,o.jsx)(q,{downloadButtonRef:l})]})}.bind(void 0),te=function(e){ee(this,Z);var n=K({},b.c,{"data-action":"download report"});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Ay,K({ref:e.downloadButtonRef,theme:"blue",className:e.downloadButtonClass+" "+v,disabled:e.downloadState===ne.GENERATING_REPORT||e.downloadState===ne.DOWNLOAD_STARTED,iconRight:e.downloadState===ne.GENERATING_REPORT&&(0,o.jsx)(R.A,{size:20}),onClick:e.onDownload},n,{children:e.downloadState===ne.GENERATING_REPORT?"Generating Report...":e.downloadState===ne.DOWNLOAD_STARTED?"Report Downloaded":e.downloadButtonLabel})),(0,o.jsx)("div",{className:"downloadNotificationWrap-XWj42",children:(0,o.jsx)(re,{downloadState:e.downloadState})})]})}.bind(void 0),re=function(e){ee(this,Z);var n=(0,u.us)().computedProps.actingAsOwnerGroup;switch(e.downloadState){case ne.GENERATING_REPORT:return(0,o.jsxs)(L.Eg,{theme:"blue","aria-live":"assertive",className:I,children:[(0,o.jsx)(L.He,{children:(0,o.jsx)(D.A,{"aria-hidden":!0})}),(0,o.jsxs)(L.p,{children:[n?"Your report is being generated and could take up to 30 minutes depending on its size.":"Your report is being generated and will be ready to download in a few minutes."," ","Feel free to keep browsingâwe'll notify you right away when it's ready. Look for the"," ",(0,o.jsx)("span",{className:"downloadNotificationBell-hsfCX",children:(0,o.jsx)(T.A,{size:24,"aria-label":"notification bell"})})," ","icon in the top navigation."]})]});case ne.DOWNLOAD_STARTED:return(0,o.jsxs)(L.Eg,{theme:"green","aria-live":"assertive",className:I,children:[(0,o.jsx)(L.He,{}),(0,o.jsx)(L.p,{children:"Your report has been generated. Please check your downloads folder."})]});case ne.ERROR:return(0,o.jsxs)(L.Eg,{theme:"red","aria-live":"assertive",className:I,children:[(0,o.jsx)(L.He,{}),(0,o.jsxs)(L.p,{children:["Your Service Coordination File could not be generated. Please try again later or"," ",(0,o.jsx)(r.N_,{to:"/help",children:"contact support"}),"."]})]})}}.bind(void 0),se=function(e){ee(this,Z);var n=K({},b.c,{"data-action":"what's inside the report"});return(0,o.jsxs)("details",{className:"howToUse-LWkSr",children:[(0,o.jsxs)("summary",K({},n,{children:["How to Use This Data ",(0,o.jsx)(O.A,{className:"expandChevron-_uUdW","aria-hidden":!0})]})),(0,o.jsxs)("div",{className:"howToUseLayout-JK2HJ",children:[(0,o.jsxs)("div",{className:"howToUseLayoutLeft-a49he",children:[(0,o.jsx)("p",{children:"Use the Service Coordination File to scrub your customer list and reach the right customers at the right time:"}),(0,o.jsxs)("ul",{className:h,children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("b",{children:"Clean Your CRM:"}),' Send this file to your IT or marketing person. They can import and flag "sold" units in your DMS/CRM and trigger automated campaigns for the active ones.']}),(0,o.jsxs)("li",{children:[(0,o.jsx)("b",{children:"Target High-Value Leads:"})," Regularly download the file and hand it to your BDC or service advisors. Focus their efforts on the VINs that are due for service soon."]})]}),(0,o.jsx)("p",{children:"Understanding the fileâs contents:"}),(0,o.jsxs)("ul",{className:h,children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("b",{children:"Type:"})," Identifies opportunities by category (Open Recalls, Oil Changes, Changes of Ownership, Major Services, etc.)."]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("b",{children:"Status:"})," Calls out whether a service is Upcoming, Due, or Overdue, and whether remedies are available for open recalls"]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("b",{children:"Date:"})," Displays service due dates, recall campaign start dates, and ownership change dates, depending on the Type value."]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("b",{children:"Additional Detail:"})," Shows Major Service records by the odometer milestone; Open Recalls display the OEM campaign code, description, and NHTSA identifier."]})]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Note:"})," CARFAX Car Care sends service reminders two weeks before the due date."]}),(0,o.jsx)("div",{className:"boostLine-W33d_",children:"Ready to boost your service marketing results?"}),(0,o.jsx)(te,{downloadButtonClass:"howToUseDownloadButton-zRka2",downloadButtonLabel:"Download Your Report Now",onDownload:e.onDownload,downloadState:e.downloadState})]}),!e.isMobile&&(0,o.jsx)("div",{className:"howToUseLayoutRight-ErnR1",children:(0,o.jsx)(ae,{})})]})]})}.bind(void 0),ae=function(){ee(this,Z);var e="https://images.carfax.com/image/1000242/Car-Fox_Holding_CARFAX-Logo-center.png";return(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{type:"image/avif",srcSet:e+"?format=avif&width=292 1x, "+e+"?format=avif&width=584 2x"}),(0,o.jsx)("source",{type:"image/webp",srcSet:e+"?format=webp&width=292 1x, "+e+"?format=webp&width=584 2x"}),(0,o.jsx)("img",{alt:"","aria-hidden":"true",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",src:e+"?width=292",style:{aspectRatio:"0.68 auto"},width:292})]})}.bind(void 0);var oe=(0,d.PA)(function(){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var e=(0,u.us)().businessUser,n=(0,s.po)(new Date);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(l,{children:(0,o.jsx)(c,{asOfDate:n,lastDays:""})}),(0,o.jsx)("div",{className:"wrapper-igwPV",children:e.serviceCoordinationFileEnabled?(0,o.jsx)(ie,{}):(0,o.jsx)(E,{})})]})}.bind(void 0)),le=i(61557);var ce=function(){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsxs)("div",{className:"thank-you",children:[(0,o.jsx)("h1",{children:"Thank y
2ou for your information request."}),(0,o.jsxs)("h2",{children:["A CARFAX representative will contact you shortly. If you would like to speak with someone immediately, please call ",(0,o.jsx)("strong",{children:"888-788-7715"}),"."]})]})}.bind(void 0);ce.displayName="Performance Thank You";const de=ce;var ue=i(47650),he=i.n(ue),ve=i(27813),pe=i(18019),me=i(66870),fe=i(58999),xe=i(57028),be=void 0;function je(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ge=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX?"}),(0,o.jsx)("p",{children:"Upgrade to the CARFAX for Life program to help drive more lifetime customers."}),(0,o.jsxs)("p",{children:["To learn more, call ",(0,o.jsx)("span",{style:{color:"#3777bc"},children:"1-888-788-7715"}),", or enter your contact information below."]})]}),ye=function(){switch(je(this,be),(0,xe.u)()){case"ALPHA":case"LOCAL":return"ALPHA";case"BETA":return"BETA";default:return"PROD"}}.bind(void 0),Ce=function(e){var n=this;je(this,be);var i=e.handleViewChange,s=(0,fe.KU)().getAccessTokenWithErrorHandling,a=(0,me.Lg)().session,l=(0,u.us)().businessUser,c=(0,g.c)().isMobile,d=(0,t.useState)(!1),h=d[0],v=d[1],p=(0,r.Zp)(),m=a.compCode;if(!m)return(0,o.jsx)("div",{});var f=function(e,t){if(je(this,n),"clickViewReviews"===e){var r=window.location.pathname.includes("mobileApp");p(r?"/mobileApp/rnr":"/ratings")}else"clickViewRecentLeads"===e?i({program:"c4l",tab:"leads"}):"clickLearnMore"!==e&&"clickUnlockLeads"!==e||x()}.bind(this),x=function(){je(this,n),v(!0)}.bind(this),b=function(){je(this,n),v(!1)}.bind(this),j=c?"mobileWrapper":"";return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"performance__carfax-for-life",children:(0,o.jsxs)("div",{className:""+j,children:[(0,o.jsx)(pe.A,{header:"Unlock New Features",subheader:ge,handleLeadFormClose:b,showLeadFormModal:h}),(0,o.jsx)(he(),{compCode:m,getAuthTokenHandler:s,trackEvent:f,childLocations:(0,ve.HO)(l.childLocations),isEnrolled:l.shouldDisplayCarfax4Life,isDealer:!0,isDealerUsed:l.isDealerUsed,environment:ye(),defaultDateStartIndex:4,downloadVINsEnabled:!0,serviceBasePath:(0,le.JY)().substring(8)+"api"})]})})})}.bind(void 0);const we=(0,d.PA)(Ce);var Ne=i(44997),Ae=i(21673),Se=i(13),Pe=i(1365),Ee=i(12297),De=i(43408),Te=i(60230),Oe=i(17547),Re=i(54243),Le=i(17296),ke=i(23987),Ie=i(38862),Ve=i(18336),Fe=void 0;function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Be.apply(null,arguments)}function _e(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Ue=function(e){_e(this,Fe);var n=(0,o.jsx)("div",{className:"pageSubheader",children:e.timespan});return(0,o.jsxs)("div",{className:"pageHeader",children:["CARFAX Car Listings | ",(0,o.jsx)("strong",{children:e.title}),e.timespan&&n]})}.bind(void 0),Me=(0,d.PA)(function(){var e=this;_e(this,Fe);var n=Ve.A.availableReportViews.map(function(n){return _e(this,e),n.displayName}.bind(this));return(0,o.jsx)(Se.A,{id:"udd-groups-summary-date-range-select",className:"date-range-select",value:Ve.A.reportView.displayName,onChange:Ve.A.handleReportViewChange,isSmall:!1,displaySelectedAs:Ve.A.reportView.displayName,placeholder:"Date range",usePlaceholderAsLabel:!0,children:(0,Le.A)({items:n}).originalOptions})}.bind(void 0)),Ge=(0,d.PA)(function(e){_e(this,Fe);var n={"data-event":"click","data-category":"download","data-action":"report summary"},i=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Ay,{"aria-label":"print",id:"ucl-leads-print-button_"+Math.random(),children:(0,o.jsx)(Te.A,{size:24,title:"print","aria-hidden":!0}),theme:"blue-flat",onClick:Ve.A.PrintHandler,size:"small"}),(0,o.jsx)(p.Ay,Be({"aria-label":"download",id:"ucl-leads-download-button_"+Math.random(),children:(0,o.jsx)(Ne.A,{size:24,title:"download","aria-hidden":!0}),theme:"blue-flat",disabled:!e.enableDownload,onClick:e.handleDownload},n,{size:"small"}))]}),t=(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",columnGap:"24px"},children:[(0,o.jsx)(p.Ay,{"aria-label":"print",id:"ucl-leads-print-button_"+Math.random(),children:(0,o.jsx)(Te.A,{size:24,title:"print","aria-hidden":!0}),theme:"blue-flat",onClick:Ve.A.PrintHandler,size:"small"}),(0,o.jsx)(p.Ay,Be({"aria-label":"download",id:"ucl-leads-download-button_"+Math.random(),children:(0,o.jsx)(Ne.A,{size:24,title:"download","aria-hidden":!0}),theme:"blue-flat",disabled:!e.enableDownload,onClick:e.handleDownload},n,{size:"small"}))]}),r=void 0;return e.layout===Ee.D.DESKTOP?r=i:e.layout===Ee.D.TABLET&&(r=t),(0,o.jsxs)("div",{className:"optionsBar-"+e.layout+" noPrint","data-owner":"true",children:[e.displayFilters&&
2(0,o.jsx)(Me,{}),r]})}.bind(void 0)),He=function(e){_e(this,Fe);var n=e.onChange,i=e.checked;return(0,o.jsxs)("div",{className:"show-active-stores-toggle",children:[(0,o.jsx)("p",{className:"show-active-stores-toggle-text",children:"Participating Locations Only"}),(0,o.jsx)(Ae.A,{"aria-label":"show all locations toggle",id:"show_inactive_toggle_id_"+Math.random(),checked:i,name:"showUclLocationsToggle",onChange:n})]})}.bind(void 0),ze=function(e){_e(this,Fe);var n=e.preFormattedText;return(0,o.jsx)("div",{className:"store-value--active",children:n})}.bind(void 0),Xe=function(e){return _e(this,Fe),{preFormattedText:e}}.bind(void 0),We=function(e){_e(this,Fe);var n=e.integer,i=Ye(n)?"active":"inactive",t=ke.A.numberWithCommas(Ye(n)?n:null);return(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"store-value--"+i,children:t})})}.bind(void 0),Ye=function(e){return _e(this,Fe),e>=0}.bind(void 0),qe=function(e){var n=this;_e(this,Fe);var i=e.text,r=(0,t.useRef)(null),s=(0,t.useState)(!1),a=s[0],l=s[1];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Re.A,{anchorRef:r,isVisible:a,onClose:function(){return _e(this,n),l(!1)}.bind(this),position:"top",children:(0,o.jsx)("div",{children:i})}),(0,o.jsx)("button",{className:"store-tooltip",ref:r,onClick:function(){return _e(this,n),l(!a)}.bind(this),children:(0,o.jsx)(Oe.A,{size:24,"aria-label":"More Information"})})]})}.bind(void 0),Ze=function(e){var n=this;_e(this,Fe);var i=e.store,r=(0,t.useState)(!1),s=r[0],a=r[1],l=i.isUcl?"active":"inactive",c=i.compCode?i.compCode:"",d=function(){_e(this,n),a(!0)}.bind(this),u=function(){_e(this,n),a(!1)}.bind(this),h=(0,o.jsx)("a",{className:"store-name--"+l,onClick:function(){return _e(this,n),Ie.A.handleStoreNameOnClick(c,i.name)}.bind(this),children:i.name}),v=(0,o.jsx)("div",{className:"store-name--"+l,children:i.name});return(0,o.jsxs)("div",{className:"store-container",children:[(0,o.jsx)(pe.A,{handleLeadFormClose:u,showLeadFormModal:s}),!i.isUcl&&(0,o.jsx)(qe,{text:"This store is not participating in the CARFAX Car Listings Program. Contact your Rep to get signed up."}),(0,o.jsxs)("div",{className:"store-container-inner",children:[i.isLifetimeDealer&&i.isUcl&&(0,o.jsx)("div",{className:"store-container-badge",children:(0,o.jsx)("img",{src:De,alt:"Dealership Photo",role:"img","aria-label":"CARFAX Lifetime Dealer",height:48,width:48,onClick:d})}),(0,o.jsxs)("div",{children:[i.isChildLocation&&i.isUcl?h:v,(0,o.jsx)("div",{className:"store-address--"+l,children:""+i.address.toUpperCase()})]})]})]})}.bind(void 0),Ke=function(e,n){var i,t,r,s,a,o,l,c,d,u,h,v;(_e(this,Fe),e.hasOwnProperty("store"))?(i=Number(null==(a=e.store)?void 0:a.isUcl)||0,t=Number(null==(o=n.store)?void 0:o.isUcl)||0,r=null!=(l=null==(c=e.store)?void 0:c.name)?l:"",s=null!=(d=null==(u=n.store)?void 0:u.name)?d:""):(i=Number(null==e?void 0:e.isUcl)||0,t=Number(null==n?void 0:n.isUcl)||0,r=null!=(h=null==e?void 0:e.companyName)?h:"",s=null!=(v=null==n?void 0:n.companyName)?v:"");return{isUclBinaryA:i,isUclBinaryB:t,nameA:r,nameB:s}}.bind(void 0),Qe=function(e,n){_e(this,Fe);var i=Ke(e,n),t=i.isUclBinaryA,r=i.isUclBinaryB,s=i.nameA,a=i.nameB;return t<r?1:t>r||s<a?-1:a>s?1:0}.bind(void 0),Je=function(e){var n=this;return _e(this,Fe),function(i,t){_e(this,n);var r=i[e].preFormattedText,s=t[e].preFormattedText;return ke.A.formattedNumberToJsNumber(r)-ke.A.formattedNumberToJsNumber(s)}.bind(this)}.bind(void 0);var $e="performance-tog__mobile-card-table__dealer-name",en=$e+" performance-tog__mobile-card-table__dealer-name--enabled",nn=$e+" performance-tog__mobile-card-table__dealer-name--disabled",tn=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n,i=e.dealershipName,t=e.numColumns,r=e.children,s=e.onClick,a=e.child,l=e.lastLoadMessage,c=null,d=(0,u.us)().businessUser;a?c=a.isUcl?(null==(n=d.findChild(a.compCode))?void 0:n.isLifetimeDealer)||!1?(0,o.jsxs)("div",{style:{display:"flex",columnGap:"12px"},children:[(0,o.jsx)("img",{src:De,alt:"Dealership Photo",role:"img","aria-label":"CARFAX Lifetime Dealer",height:24,width:24}),(0,o.jsx)("h3",{className:en,onClick:s,children:i})]}):(0,o.jsx)("h3",{className:en,onClick:s,children:i}):(0,o.jsxs)("div",{style:{display:"flex",columnGap:"12px"},children:[(0,o.jsx)(qe,{text:"This store is not participating in the CARFAX Car Listings Program. Contact your Rep to get signed up."}),(0,o.jsx)("h3",{className:nn,onClick:s,children:i})]}):i&&(c=(0,o.jsx)("h3",{className:en,onClick:s,children:i}));return(0,o.jsxs)("div",{className:"performance-tog__mobile-card-table",children:[(0,o.jsxs)("div",{className:"dealership-container",children:[c,(0,o.jsx)("div",{children:l})]}),(0,o.jsx)("div",{className:"performance-tog__mobile-card-table--grid","data-columns":t,children:r})]})}.bind(void 0),rn=i(695),sn=i(22582);function an(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var on=function(e){var n=this;an(this,void 0);var i=e.startIndex,t=e.totalCount,r=e.handlePageChange,s=Math.min(i+1,t)||0,a=Math.min(s+9,t)||0,l=function(){an(this,n),i>
20&&r(Math.max(i-10,0))}.bind(this),c=function(){an(this,n),i+10<t&&r(i+10)}.bind(this);return(0,o.jsxs)("div",{className:"performance-tog__mobile-card-table-paginator",children:[(0,o.jsx)(p.Ay,{theme:"white",size:"compact",onClick:l,disabled:0===i,children:(0,o.jsx)(rn.A,{size:24,"aria-hidden":!0})}),(0,o.jsxs)("p",{children:[s,"-",a," of ",t]}),(0,o.jsx)(p.Ay,{theme:"white",size:"compact",onClick:c,disabled:a>=t,children:(0,o.jsx)(sn.A,{size:24,"aria-hidden":!0})})]})}.bind(void 0);var ln=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.categoryName,i=e.categoryValue,t=e.spansTwoColumns,r=e.shouldCompressCategory;return(0,o.jsxs)("div",{className:"performance-tog__mobile-card-table--single-item","data-spantwo":t,children:[(0,o.jsx)("h5",{className:"performance-tog__mobile-card-table--single-item--category","data-shouldcompress":r,children:n}),(0,o.jsx)("p",{className:"performance-tog__mobile-card-table--single-item--value",children:i})]})}.bind(void 0),cn=i(62764),dn=i(67713);const un=(0,d.PA)(function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.days,i=e.status,t=(0,u.us)().businessUser,r=X.A.uclDashboard.customerListHealth,s=!t.actingAsOwnerGroup,a=[dn.nW.ALERT].concat(s?[dn.nW.OK]:[]),l=null===n?cn.A.red:r.colorStatus.get(null!=i?i:dn.nW.ALERT),c=null===n?"No lists loaded":"Last Load date was "+n+" days ago";return null===i||a.includes(i)?(0,o.jsx)("div",{className:"last-load",style:{backgroundColor:l},children:c}):null}.bind(void 0));function hn(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const vn=function(e){var n=this;hn(this,void 0);var i=e.togChildren,r=e.numCols,s=i.length,a=(0,t.useState)(0),l=a[0],c=a[1],d=i.slice(l,l+10),u=function(e){hn(this,n),c(e)}.bind(this),h=d.map(function(e){hn(this,n);var i=e.companyName,t=e.compCode,s=(0,o.jsx)(un,{days:e.healthMetrics.daysSinceLastLoad,status:e.healthMetrics.daysSinceLastLoadStatus});return(0,o.jsxs)(tn,{dealershipName:i,numColumns:r,lastLoadMessage:s,children:[(0,o.jsx)(ln,{categoryName:"Customer Records",categoryValue:ke.A.numberWithCommas(e.healthMetrics.totalRecords)}),(0,o.jsx)(ln,{categoryName:"Valid Contacts",categoryValue:ke.A.numberWithCommas(e.healthMetrics.netProspects)}),(0,o.jsx)(ln,{categoryName:"Duplicate Records",categoryValue:ke.A.numberWithCommas(e.healthMetrics.duplicateRecords)}),(0,o.jsx)(ln,{categoryName:"Blank/Invalid VINs",categoryValue:ke.A.numberWithCommas(e.healthMetrics.blankInvalidVins)}),(0,o.jsx)(ln,{categoryName:"Blank/Invalid Emails",categoryValue:ke.A.numberWithCommas(e.healthMetrics.blankInvalidEmail
2s)}),(0,o.jsx)(ln,{categoryName:"Emails Used For 9+ VINs",categoryValue:ke.A.numberWithCommas(e.healthMetrics.exceedsMaxVins)})]},t)}.bind(this));return(0,o.jsxs)(o.Fragment,{children:[h,(0,o.jsx)(on,{startIndex:l,totalCount:s,handlePageChange:u}),(0,o.jsx)("div",{style:{marginTop:"16px"}})]})}.bind(void 0);function pn(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var mn=function(e){var n=this;pn(this,void 0);var i=e.handleOnClick,t=e.layout,r=function(e){pn(this,n),i(),e.preventDefault()}.bind(this),s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"title",children:"Customer List Health"}),(0,o.jsxs)("div",{className:"description",children:["CARFAX for Life locks in your customers as favorites based on the lists you send."," ",(0,o.jsx)("a",{href:"#",className:"performance",onClick:r,children:"How does this affect your performance?"})]})]}),a=(0,o.jsxs)("div",{className:"title",children:["Customer List Health ",(0,o.jsx)(Oe.A,{size:24,className:"banner-icon",onClick:i,"aria-hidden":!0})]});return t===Ee.D.TABLET?a:s}.bind(void 0);const fn=(0,d.PA)(mn);var xn=i(87173),bn=i(57930),jn=i(45209),gn=i(28823),yn=i(66188);var Cn=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.isVisible,i=e.onClose,t=(0,o.jsx)("div",{className:"customer-list-health-modal-header",children:'How "List Health" affects your dealership\'s performance'}),r=(0,o.jsxs)("div",{className:"customer-list-health-modal-body",children:[(0,o.jsx)("p",{children:"These lists are crucial to improving CARFAX for Life performance. We ask these customers to identify you as their favorite dealership as part of joining our exclusive Car Care program. This ensures they're always directed to your shop for service needs, or when there's a recall on their car."}),(0,o.jsx)("p",{children:"We apply filters to customer lists that check whether the data is complete and usable. We display only the most common issues in your performance overview."}),(0,o.jsx)("p",{children:"Here's what each issue means:"}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Customers on Uploaded Lists:"})," Number of customers on lists uploaded during a reporting period."]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Valid Contacts:"})," Customer contacts eligible for Carfax service notifications."]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Duplicate Records:"})," Customer records removed because the VIN and Email address combination appeared multiple times."]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Blank/Invalid VINs:"})," Customer records removed due to an invalid or missing VIN or a VIN that hasn't been serviced at your location in the last 24 months."]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Blank/Invalid Emails:"})," Customer records removed due to an invalid or missing email."]}),(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Emails Used For 9+ VINs:"})," Customer records removed because the same email was associated with 9+ VINs. Instances include catch-all email addresses used for different customers or emails used for fleet vehicles."]})]}),s=(0,o.jsx)(p.Ay,{theme:"blue",onClick:i,children:"Got it!"});return(0,o.jsxs)(xn.Ay,{className:"customer-list-health-modal-wrapper",isVisible:n,onClose:i,children:[(0,o.jsx)(bn.A,{children:(0,o.jsx)(jn.A,{children:t})}),(0,o.jsx)(gn.A,{children:r}),(0,o.jsx)(yn.A,{children:s})]})}.bind(void 0);const wn=(0,d.PA)(Cn);var Nn=i(76799),An=i(21602),Sn=i(71300),Pn=i(52448),En=i(73090),Dn=i(13986),Tn=i(23796),On=i(76171),Rn=i(40150);function Ln(e){var n,i,t=e.store.active?"store-active":"store-inactive",r=e.store.active?null:(0,o.jsx)(kn,{message:e.inactiveMessage}),s=e.store.lifetimeDealer&&e.store.active?(0,o.jsx)("div",{className:"store-name-dealer-image",children:(0,o.jsx)("img",{src:De,role:"img","aria-label":"CARFAX Lifetime Dealer Trade-in Leads"})}):null,a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"store-name "+t,children:e.store.name}),(0,o.jsxs)("div",{className:"store-address "+t,children:[e.store.address," ",e.isMobile&&(0,o.jsx)("br",{}),e.store.city,", ",e.store.state]})]}),l=void 0!==e.store.daysSinceLastLoad&&void 0!==e.store.daysSinceLastLoadStatus?(0,o.jsx)(un,{days:null!=(n=e.store.daysSinceLastLoad)?n:null,
2status:null!=(i=e.store.daysSinceLastLoadStatus)?i:null}):null;return(0,o.jsxs)("div",{className:"store-name-and-location "+t,children:[r,s,(0,o.jsxs)("div",{className:"store-details",children:[a,l]})]})}var kn=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.message,i=(0,t.useRef)(null);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Rn.A,{className:"store-tooltip",anchorRef:i,children:(0,o.jsx)("div",{children:n})}),(0,o.jsx)("button",{ref:i,children:(0,o.jsx)(Oe.A,{size:24,"aria-label":"Inactive Trade-in Lead"})})]})}.bind(void 0),In=i(58978),Vn=i(2314),Fn=void 0;function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Bn.apply(null,arguments)}function _n(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Un=function(e){var n=this;_n(this,Fn);var i=e.data,r=e.isViewPercentages,s={fontFamily:"Roboto",letterSpacing:"0",fontSize:"12px",lineHeight:"16px",fontWeight:"400",marginTop:"12px",color:"#212121",textAlign:"right"},a=Bn({},s,{marginRight:"12px"}),l=function(e){return _n(this,n),(0,o.jsx)("div",{style:a,children:ke.A.numberWithCommas(e)})}.bind(this),c=function(e,i,t){if(_n(this,n),r){var a=(0,o.jsxs)("div",{style:s,children:[i,"%"]});return(0,o.jsx)(Gn,{percent:i,status:t,percentLabel:a})}return l(e)}.bind(this),d=function(e){return _n(this,n),Ln({store:e,isMobile:!1,inactiveMessage:In.I})}.bind(this),u=i.map(function(e){return _n(this,n),{store:{name:e.companyName,address:e.streetAddress,city:e.city,state:e.state,active:!0,lifetime:!1,daysSinceLastLoad:e.healthMetrics.daysSinceLastLoad,daysSinceLastLoadStatus:e.healthMetrics.daysSinceLastLoadStatus},totalRecords:e.healthMetrics.totalRecords,netProspects:e.healthMetrics.netProspects,duplicateRecords:e.healthMetrics.duplicateRecords,duplicateRecordsPercent:e.healthMetrics.duplicateRecordsPercent,duplicateRecordsStatus:e.healthMetrics.duplicateRecordsStatus,blankInvalidVins:e.healthMetrics.blankInvalidVins,blankInvalidVinsPercent:e.healthMetrics.blankInvalidVinsPercent,blankInvalidVinsStatus:e.healthMetrics.blankInvalidVinsStatus,blankInvalidEmail
2s:e.healthMetrics.blankInvalidEmails,blankInvalidEmailsPercent:e.healthMetrics.blankInvalidEmailsPercent,blankInvalidEmailsStatus:e.healthMetrics.blankInvalidEmailsStatus,exceedsMaxVins:e.healthMetrics.exceedsMaxVins,exceedsMaxVinsPercent:e.healthMetrics.exceedsMaxVinsPercent,exceedsMaxVinsStatus:e.healthMetrics.exceedsMaxVinsStatus}}.bind(this)),h=(0,Nn.GY)("store","asc"),v=h.sortBy,p=h.sortDirection,m=h.toggleTableSort,f=u;r?"store"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.store.name}.bind(this))):"totalRecords"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.totalRecords}.bind(this))):"netProspects"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.netProspects}.bind(this))):"duplicateRecords"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.duplicateRecordsPercent}.bind(this))):"blankInvalidVins"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.blankInvalidVinsPercent}.bind(this))):"blankInvalidEmails"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.blankInvalidEmailsPercent}.bind(this))):"exceedsMaxVins"===v&&f.sort((0,le.VE)(function(e){return _n(this,n),e.exceedsMaxVinsPercent}.bind(this))):"store"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.store.name}.bind(this))):"totalRecords"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.totalRecords}.bind(this))):"netProspects"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.netProspects}.bind(this))):"duplicateRecords"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.duplicateRecords}.bind(this))):"blankInvalidVins"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.blankInvalidVins}
2.bind(this))):"blankInvalidEmails"===v?f.sort((0,le.VE)(function(e){return _n(this,n),e.blankInvalidEmails}.bind(this))):"exceedsMaxVins"===v&&f.sort((0,le.VE)(function(e){return _n(this,n),e.exceedsMaxVins}.bind(this))),"desc"===p&&f.reverse();var x=(0,t.useState)(1),b=x[0],j=x[1],g=(0,t.useState)(10),y=g[0],C=g[1],w=(b-1)*y,N=w+y,A=f.slice(w,N);(0,t.useEffect)(function(){_n(this,n),j(1)}.bind(this),[i,v]);var S=function(e){_n(this,n),j(e.currentPage),C(e.perPageValue)}.bind(this),P=function(e){return _n(this,n),(0,o.jsx)("div",{style:{textAlign:"end"},children:e})}.bind(this);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(An.X,{"aria-label":"Customer List Health Table",children:[(0,o.jsxs)(Sn.D,{stickyPosition:(0,Vn.E)(),children:[(0,o.jsx)(Pn.TH,{width:400,sortDirection:"store"===v?p:void 0,onClick:function(){return _n(this,n),m("store")}.bind(this),children:"Store Name"}),(0,o.jsx)(Pn.TH,{sortDirection:"totalRecords"===v?p:void 0,onClick:function(){return _n(this,n),m("totalRecords")}.bind(this),children:P("Customer Records")}),(0,o.jsx)(Pn.TH,{sortDirection:"netProspects"===v?p:void 0,onClick:function(){return _n(this,n),m("netProspects")}.bind(this),children:P("Valid Contacts")}),(0,o.jsx)(Pn.TH,{sortDirection:"duplicateRecords"===v?p:void 0,onClick:function(){return _n(this,n),m("duplicateRecords")}.bind(this),children:P("Duplicate Records")}),(0,o.jsx)(Pn.TH,{sortDirection:"blankInvalidVins"===v?p:void 0,onClick:function(){return _n(this,n),m("blankInvalidVins")}.bind(this),children:P("Blank/Invalid VINs")}
2),(0,o.jsx)(Pn.TH,{sortDirection:"blankInvalidEmails"===v?p:void 0,onClick:function(){return _n(this,n),m("blankInvalidEmails")}.bind(this),children:P("Blank/Invalid Emails")}),(0,o.jsx)(Pn.TH,{sortDirection:"exceedsMaxVins"===v?p:void 0,onClick:function(){return _n(this,n),m("exceedsMaxVins")}.bind(this),children:P("Emails Used for 9+ VINs")})]}),(0,o.jsx)(En.v,{children:A.map(function(e,i){return _n(this,n),(0,o.jsxs)(Dn.TR,{children:[(0,o.jsx)(Tn.TD,{children:d(e.store)}),(0,o.jsx)(Tn.TD,{children:l(e.totalRecords)}),(0,o.jsx)(Tn.TD,{children:l(e.netProspects)}),(0,o.jsx)(Tn.TD,{children:c(e.duplicateRecords,e.duplicateRecordsPercent,e.duplicateRecordsStatus)}),(0,o.jsx)(Tn.TD,{children:c(e.blankInvalidVins,e.blankInvalidVinsPercent,e.blankInvalidVinsStatus)}),(0,o.jsx)(Tn.TD,{children:c(e.blankInvalidEmails,e.blankInvalidEmailsPercent,e.blankInvalidEmailsStatus)}),(0,o.jsx)(Tn.TD,{children:c(e.exceedsMaxVins,e.exceedsMaxVinsPercent,e.exceedsMaxVinsStatus)})]},i)}.bind(this))})]}),(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",marginTop:"24px"},children:(0,o.jsx)(On.A,{onChange:S,currentPage:b,perPageValue:y,totalItems:i.length,perPageOptions:[10,50,100],size:"large"})})]})}.bind(void 0);const Mn=(0,d.PA)(Un);var Gn=function(e){_n(this,Fn);var n=e.percent,i=e.status,t=e.percentLabel,r={height:"6px",width:n+"%",backgroundColor:X.A.uclDashboard.customerListHealth.colorStatus.get(i),borderTopLeftRadius:"3px",borderBottomLeftRadius:"3px"},s=t||null;return(0,o.jsxs)("div",{style:{width:"88px",color:"#000000",alignText:"right"},children:[(0,o.jsx)("div",{style:{marginTop:"12px",color:"#212121",backgroundColor:"#e0e0e0",borderRadius:"3px",height:"6px",display:"flex"},children:(0,o.jsx)("div",{style:r})}),s]})}.bind(void 0),Hn=i(46585);function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},zn.apply(null,arguments)}var Xn=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.description,i=e.value,t=e.percent,r=e.status,s=e.layout,a=e.displayProgressBar,l=e.style,c={height:"6px",width:t+"%",backgroundColor:X.A.uclDashboard.customerListHealth.colorStatus.get(r),borderTopLeftRadius:"3px",borderBottomLeftRadius:"3px"},d=zn({},l,{width:s===Ee.D.TABLET?"50%":"100%"}),u=a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"progress-bar-background",children:(0,o.jsx)("div",{style:c}
2)}),(0,o.jsxs)("div",{className:"percentage",children:[t,"% of customers records"]})]});return(0,o.jsxs)("div",{className:"health-item",style:d,children:[(0,o.jsx)("div",zn({className:"value"},Hn.f,{children:ke.A.numberWithCommas(i)})),(0,o.jsx)("div",{className:"description",children:n}),u]})}.bind(void 0);const Wn=(0,d.PA)(Xn);function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Yn.apply(null,arguments)}var qn=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.value,i=e.description;return(0,o.jsxs)("div",{className:"health-summary-items",children:[(0,o.jsx)("div",Yn({className:"value"},Hn.f,{children:ke.A.numberWithCommas(n)})),(0,o.jsx)("div",{className:"description",children:i})]})}.bind(void 0);const Zn=(0,d.PA)(qn);var Kn=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.metrics,i=e.layout,t=e.accountType,r={borderTop:"1px solid #bdbdbd",borderRight:"1px solid #bdbdbd",borderBottom:"1px solid #bdbdbd"},s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Wn,{description:"Duplicate Records",value:n.duplicateRecords,percent:n.duplicateRecordsPercent,status:n.duplicateRecordsStatus,layout:i,displayProgressBar:"single location"===t,style:{border:"1px solid #bdbdbd"}}),(0,o.jsx)(Wn,{description:"Blank/Invalid VINs",value:n.blankInvalidVins,percent:n.blankInvalidVinsPercent,status:n.blankInvalidVinsStatus,layout:i,displayProgressBar:"single location"===t,style:r})]}),a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Wn,{description:"Blank/Invalid Emails",value:n.blankInvalidEmail
2s,percent:n.blankInvalidEmailsPercent,status:n.blankInvalidEmailsStatus,layout:i,displayProgressBar:"single location"===t,style:i===Ee.D.DESKTOP?r:{borderLeft:"1px solid #bdbdbd",borderBottom:"1px solid #bdbdbd",borderRight:"1px solid #bdbdbd"}}),(0,o.jsx)(Wn,{description:"Emails Used For 9+ VINs",value:n.exceedsMaxVins,percent:n.exceedsMaxVinsPercent,status:n.exceedsMaxVinsStatus,layout:i,displayProgressBar:"single location"===t,style:i===Ee.D.DESKTOP?r:{borderBottom:"1px solid #bdbdbd",borderRight:"1px solid #bdbdbd"}})]}),l=(0,o.jsxs)("div",{className:"health-items",children:[s,a]}),c=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"health-items",children:s}),(0,o.jsx)("div",{className:"health-items",children:a})]}),d=i===Ee.D.DESKTOP?l:i===Ee.D.TABLET?c:null,u="Customers on "+n.files+" Uploaded Lists",h="Customers on "+n.files+" Lists",v=i===Ee.D.DESKTOP?u:h;return(0,o.jsxs)("div",{className:"customer-list-health-body",children:[(0,o.jsxs)("div",{className:"customers-and-prospects",children:[(0,o.jsx)(Zn,{value:n.totalRecords,description:v}),(0,o.jsx)("div",{className:"resulted-in",children:"Resulted in"}),(0,o.jsx)(Zn,{value:n.netProspects,description:"Valid Contacts"})]}),d]})}.bind(void 0);const Qn=(0,d.PA)(Kn);function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Jn.apply(null,arguments)}function $n(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ei=function(e){var n=this;$n(this,void 0);var i=e.layout,r=X.A.uclDashboard.togCustomerListHealth,s=(0,t.useState)(Pe.J_),a=s[0],l=s[1],c=(0,t.useState)(r.getCustomerListHealthOwnerGroupDefault()),d=c[0],u=c[1],h=(0,t.useState)(!1),v=h[0],m=h[1],f=(0,t.useState)(!1),x=f[0],b=f[1];(0,t.useEffect)(function(){var e,i=this;$n(this,n),r.fetchCustomerListHealthDataTog(null!=(e=a.period)?e:"").then(function(e){$n(this,i),e&&200===r.httpStatus&&u(e)}.bind(this))}.bind(this),[a]);var j=function(e){var i=this;$n(this,n);var t=r.availableReportViews.find(function(n){return $n(this,i),n.period===e.target.value}.bind(this))||Pe.J_;l(t)}.bind(this),g=function(){$n(this,n),m(!0)}.bind(this),y=function(){$n(this,n),m(!1)}.bind(this),C=function(){$n(this,n),d&&r.downloadCsv(d,a,x)}.bind(this),w=function(e){$n(this,n),b(e.target.checked)}.bind(this),N=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"health-table-percentage-toggle",children:(0,o.jsx)(Ae.A,{checked:x,onChange:w,label:"View Percentage",labelAlignment:"left"})}),(0,o.jsx)("div",{className:"desktop-mobile-card-table",children:(0,o.jsx)(Mn,{data:d.children,isViewPercentages:x})})]});console.log("CHILDREN: ",d.children);var A=(0,o.jsxs)("div",{className:"tablet-mobile-card-table",children:[(0,o.jsx)("div",{className:"customer-list-health-by-location",children:"Customer List Health by location"}),(0,o.jsx)(vn,{togChildren:d.children,numCols:3})]}),S=i===Ee.D.DESKTOP?N:i===Ee.D.TABLET?A:null,P={"data-event":"click","data-category":"filter:date range","data-action":""+a.period};return(0,o.jsxs)("div",{className:"customer-list-health-wrapper",children:[(0,o.jsx)(wn,{isVisible:v,onClose:y}),(0,o.jsxs)("div",{className:"customer-list-health-header",children:[(0,o.jsx)("div",{className:"customer-list-health-header--left",children:(0,o.jsx)(fn,{handleOnClick:g,layout:i})}),(0,o.jsxs)("div",{className:"customer-list-health-header--right",children:[(0,o.jsx)(Se.A,Jn({className:"date-range",onChange:j,value:a.period,placeholder:"Date Range",usePlaceholderAsLabel:!0},P,{children:r.availableReportViews.map(function(e){return $n(this,n),(0,o.jsx)("option",{value:e.period,children:e.displayName},e.period)}.bind(this))})),(0,o.jsx)(p.Ay,{"aria-label":"download",id:"customer-list-download-button_"+Math.random(),theme:"blue-flat",className:"optionsBarItem",disabled:void 0===d,onClick:C,size:"large",children:(0,o.jsx)(Ne.A,{size:20,title:"download","aria-hidden":!0})})]})]}),(0,o.jsx)(Qn,{metrics:d.healthMetrics,layout:i,accountType:"owner group"}),S]})}.bind(void 0);const ni=(0,d.PA)(ei);var ii=i(68210),ti=i(50385);function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},ri.apply(null,arguments)}function si(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ai=function(e){var n,i=this;si(this,void 0);var t=e.layout,r=(0,u.us)().businessUser,s=X.A.uclDashboard.customerListHealth,a=function(e){si(this,i),s.setOptOutEmail(e.currentTarget.value)}.bind(this),l=function(e){si(this,i),s.setOptOutEmail(e.currentTarget.value)}.bind(this),c=function(e){si(this,i),s.customerOptOut(s.optOutEmail)}.bind(this),d=function(e){si(this,i),s.downloadCsvOptOutList()}.bind(this),h="customer-list-health-opt-out-"+t,v={width:t===Ee.D.DESKTOP?"50%":"100%"},m="Use the tools below to opt out customers from "+(null==(n=r.subscriber)?void 0:n.companyName)+" emails.";return(0,o.jsx)("div",{className:"customer-list-health-opt-out-wrapper",children:(0,o.jsxs)("div",{className:h,children:[(0,o.jsxs)("div",{className:"customer-list-health-opt-out-left",style:v,children:[(0,o.jsx)("div",{className:"customer-list-health-opt-out-header",children:"Opt Out Customers"}),(0,o.jsx)("div",{className:"customer-list-health-opt-out-description",children:m}),(0,o.jsx)("p",{className:"text-input-label",children:"Customer email address"}),(0,o.jsx)("div",{className:"opt-out-add-email",children:(0,o.jsx)(ti.Ay,{className:"text-input",placeholder:"Opt Out Email",value:s.optOutEmail,onChange:a,onBlur:l,usePlaceholderAsLabel:!0})}),(0,o.jsx)(p.Ay,ri({id:"opt-out-button",className:"opt-out-button",children:"Opt Out",theme:"blue",onClick:c},{"data-event":"click","data-category":"customer list","data-action":"opt out"}))]}),(0,o.jsx)("div",{className:"customer-list-health-opt-out-right",children:(0,o.jsxs)("div",{className:"opt-out-download-container",children:[(0,o.jsx)("div",{className:"opt-out-download-description",children:"View all customers who have been opted out from CARFAX emails."}),(0,o.jsx)(p.Ay,{"aria-label":"download",id:"opt-out-download-list",iconLeft:(0,o.jsx)(Ne.A,{size:24,title:"opt out download list","aria-hidden":!0}),theme:"blue-flat",onClick:d,size:"compact",children:"Download Opt Out List"})]})})]})})}.bind(void 0);const oi=(0,d.PA)(ai);var li=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.isVisible,i=e.email,t=e.isSuccess,r=e.onClose,s=t?(0,o.jsx)("div",{className:"customer-list-health-modal-body",children:(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:"Success!"})," ",i," has been successfully removed."]})}):(0,o.jsx)("div",{className:"customer-list-health-modal-body",children:(0,o.jsxs)("p",{children:[i," is not included in your customer list or identified as a favorite. Please ensure the email address is correct. If so, the customer may need to unsubscribe by clicking the unsubscribe link in the email they received."]})}),a=t?"green":"red";return n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(L.Eg,{role:"status",theme:a,children:[(0,o.jsx)(L.He,{}),(0,o.jsx)(L.p,{children:s}),(0,o.jsx)(L.A_,{onClick:r})]}),(0,o.jsx)("br",{})]}):null}.bind(void 0);const ci=(0,d.PA)(li);function di(){return di=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},di.apply(null,arguments)}function ui(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var hi=function(e){var n=this;ui(this,void 0);var i=e.layout,r=X.A.uclDashboard.customerListHealth,s=(0,t.useState)(void 0),a=s[0],l=s[1],c=(0,t.useState)(ii.t),d=c[0],u=c[1],h=(0,t.useState)(!1),v=h[0],m=h[1];(0,t.useEffect)(function(){var e=this;ui(this,n),r.setOptOutEmail(""),r.setIsOptOutNotificationVisible(!1),r.fetchCustomerListHealthData(Pe.J_.period).then(function(n){ui(this,e),n&&200===r.httpStatus&&(f(n)?(u(n),l(Pe.J_)):l(Pe.Pl))}.bind(this))}.bind(this),[]),(0,t.useEffect)(function(){var e=this;ui(this,n),a&&r.fetchCustomerListHealthData(a.period).then(function(n){ui(this,e),n&&200===r.httpStatus&&u(n)}.bind(this))}.bind(this),[a]);var f=function(e){return ui(this,n),e&&e.healthMetrics.files>0&&e.healthMetrics.totalRecords>0}.bind(this),x=function(e){var i=this;ui(this,n);var t=r.availableReportViews.find(function(n){return ui(this,i),n.period===e.target.value}.bind(this))||Pe.J_;l(t)}.bind(this),b=function(){ui(this,n),m(!0)}.bind(this),j=function(){ui(this,n),m(!1)}.bind(this),g=function(){ui(this,n),d&&a&&r.downloadCsv(d,a)}.bind(this),y=r.availableReportViews.map(function(e){return ui(this,n),(0,o.jsx)("option",{value:e.period,children:e.displayName},e.period)}.bind(this)),C={"data-event":"click","data-category":"filter:date range","data-action":""+(a&&a.displayName)},w=(0,o.jsxs)("div",{className:"customer-list-health-header",children:[(0,o.jsx)("div",{className:"customer-list-health-header--left",children:(0,o.jsx)(fn,{handleOnClick:b,layout:i})}),(0,o.jsxs)("div",{className:"customer-list-health-header--right",children:[(0,o.jsx)(Se.A,di({className:"date-range",onCh
2ange:x,value:a&&a.period,placeholder:"Date Range",usePlaceholderAsLabel:!0},C,{children:y})),(0,o.jsx)(p.Ay,{"aria-label":"download",id:"customer-list-download-button",theme:"blue-flat",className:"optionsBarItem",disabled:void 0===d,onClick:g,size:"large",children:(0,o.jsx)(Ne.A,{size:20,title:"download","aria-hidden":!0})})]})]}),N=null;if(d){var A=200===r.httpStatus?d.healthMetrics.daysSinceLastLoad:null;N=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(un,{days:A,status:d.healthMetrics.daysSinceLastLoadStatus}),(0,o.jsx)(Qn,{metrics:d.healthMetrics,layout:i,accountType:"single location"})]})}return(0,o.jsxs)("div",{className:"customer-list-health-wrapper",children:[(0,o.jsx)(ci,{isVisible:r.isOptOutNotificationVisible,email:r.optOutEmail,isSuccess:r.isOptOutSuccess,onClose:function(){return ui(this,n),r.setIsOptOutNotificationVisible(!1)}.bind(this)}),(0,o.jsx)(wn,{isVisible:v,onClose:j}),w,N,(0,o.jsx)("div",{className:"separator"}),(0,o.jsx)(oi,{layout:i})]})}.bind(void 0);const vi=(0,d.PA)(hi);var pi=function(){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var e=(0,u.us)().businessUser,n=(0,g.c)().layout;return e.actingAsOwnerGroup?(0,o.jsx)(ni,{layout:n}):(0,o.jsx)(vi,{layout:n})}.bind(void 0);const mi=(0,d.PA)(pi);var fi=i(34882),xi=i(57013),bi=i(53432),ji=i(55297);var gi=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.metrics,i=e.layout,t=e.accountType;return(0,o.jsxs)("div",{className:"customer-list-health-body",children:[(0,o.jsxs)("div",{className:"customers-and-prospects",children:[(0,o.jsx)(Zn,{value:n.totalRecords,description:"Customers on "+n.files+" Lists"}),(0,o.jsx)("div",{className:"resulted-in",children:"Resulted in"}),(0,o.jsx)(Zn,{value:n.netProspects,description:"Valid Contacts"})]}),(0,o.jsxs)("div",{className:"health-items",children:[(0,o.jsx)(Wn,{description:"Duplicate Records",value:n.duplicateRecords,percent:n.duplicateRecordsPercent,status:n.duplicateRecordsStatus,layout:i,displayProgressBar:"single location"===t}),(0,o.jsx)("div",{className:"divider"}),(0,o.jsx)(Wn,{description:"Blank/Invalid VINs",value:n.blankInvalidVins,percent:n.blankInvalidVinsPercent,status:n.blankInvalidVinsStatus,layout:i,displayProgressBar:"single location"===t}),(0,o.jsx)("div",{className:"divider"}),(0,o.jsx)(Wn,{description:"Blank/Invalid Emails",value:n.blankInvalidEmail
2s,percent:n.blankInvalidEmailsPercent,status:n.blankInvalidEmailsStatus,layout:i,displayProgressBar:"single location"===t}),(0,o.jsx)("div",{className:"divider"}),(0,o.jsx)(Wn,{description:"Emails Used For 9+ VINs",value:n.exceedsMaxVins,percent:n.exceedsMaxVinsPercent,status:n.exceedsMaxVinsStatus,layout:i,displayProgressBar:"single location"===t})]})]})}.bind(void 0);const yi=(0,d.PA)(gi);function Ci(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var wi=function(e){var n=this;Ci(this,void 0);var i=e.layout,r=X.A.uclDashboard.togCustomerListHealth,s=(0,t.useState)(Pe.J_),a=s[0],l=s[1],c=(0,t.useState)(0),d=c[0],u=c[1],h=(0,t.useState)(r.getCustomerListHealthOwnerGroupDefault()),v=h[0],p=h[1],m=(0,t.useState)(!1),f=m[0],x=m[1];(0,t.useEffect)(function(){var e=this;Ci(this,n),a.period&&r.fetchCustomerListHealthDataTog(a.period).then(function(n){Ci(this,e),n&&200===r.httpStatus&&p(n)}.bind(this))}.bind(this),[a]);var b=function(e){Ci(this,n),u(d===e?-1:e)}.bind(this),j=function(e){var i=this;Ci(this,n);var t=r.availableReportViews.find(function(n){return Ci(this,i),n.period===e.target.value}.bind(this))||Pe.J_;l(t)}.bind(this),g=function(e){Ci(this,n),e.preventDefault(),e.stopPropagation(),x(!0)}.bind(this),y=function(){Ci(this,n),x(!1)}.bind(this),C=(0,o.jsx)(fi.n,{border:"none",children:(0,o.jsxs)(xi.c,{id:"expander-1",open:0===d,children:[(0,o.jsx)(bi.b,{onClick:function(){return Ci(this,n),b(0)}.bind(this),children:(0,o.jsxs)("span",{onClick:g,children:["Customer List Health ",(0,o.jsx)(Oe.A,{size:24,className:"banner-icon","aria-hidden":!0})]})}),(0,o.jsxs)(ji.C,{children:[(0,o.jsx)(yi,{metrics:v.healthMetrics,layout:i,accountType:"owner group"}),(0,o.jsx)("div",{className:"customer-list-health-by-location",children:"Customer List Health by location"}),(0,o.jsx)(vn,{togChildren:v.children,numCols:2})]})]})});return(0,o.jsxs)("div",{className:"customer-list-health-wrapper",children:[(0,o.jsx)(wn,{isVisible:f,onClose:y}),(0,o.jsx)(Se.A,{className:"date-range",onChange:j,value:a.period,placeholder:"Date Range",usePlaceholderAsLabel:!0,children:r.availableReportViews.map(function(e){return Ci(this,n),(0,o.jsx)("option",{value:e.period,children:e.displayName},e.period)}.bind(this))}),C]})}.bind(void 0);const Ni=(0,d.PA)(wi);function Ai(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Si=function(){var e=this;Ai(this,void 0);var n=X.A.uclDashboard.customerListHealth,i=function(i){Ai(this,e),n.setOptOutEmail(i.currentTarget.value)}.bind(this),t=function(i){Ai(this,e),n.setOptOutEmail(i.currentTarget.value)}.bind(this),r=function(i){Ai(this,e),n.customerOptOut(n.optOutEmail)}.bind(this);(function(i){Ai(this,e),n.downloadCsvOptOutList()}).bind(this);return(0,o.jsxs)("div",{className:"customer-list-health-opt-out-wrapper",children:[(0,o.jsx)(ci,{isVisible:n.isOptOutNotificationVisible,email:n.optOutEmail,isSuccess:n.isOptOutSuccess,onClose:function(){return Ai(this,e),n.setIsOptOutNotificationVisible(!1)}.bind(this)}),(0,o.jsxs)("div",{className:"customer-list-health-opt-out-left",children:[(0,o.jsx)("p",{className:"text-input-label",children:"Customer email address"}),(0,o.jsx)(ti.Ay,{className:"text-input",placeholder:"Opt Out Email",value:n.optOutEmail,onChange:i,onBlur:t,usePlaceholderAsLabel:!0}),(0,o.jsx)(p.Ay,{id:"opt-out-button",className:"opt-out-button",children:"Opt Out",theme:"blue",onClick:r})]})]})}.bind(void 0);const Pi=(0,d.PA)(Si);function Ei(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Di=function(e){var n,i=this;Ei(this,void 0);var r=e.layout,s=X.A.uclDashboard.customerListHealth,a=(0,t.useRef)(null),l=(0,t.useState)(Pe.J_),c=l[0],d=l[1],h=(0,t.useState)(ii.t),v=h[0],p=h[1],m=(0,t.useState)(!1),f=m[0],x=m[1],b=(0,t.useState)(!1),j=b[0],g=b[1],y=(0,u.us)().businessUser;(0,t.useEffect)(function(){var e=this;Ei(this,i),s.setOptOutEmail(""),s.setIsOptOutNotificationVisible(!1),c.period&&s.fetchCustomerListHealthData(c.period).then(function(n){Ei(this,e),n&&200===s.httpStatus&&p(n)}.bind(this))}.bind(this),[c]);var C=function(e){var n=this;Ei(this,i);var t=s.availableReportViews.find(function(i){return Ei(this,n),i.period===e.target.value}.bind(this))||Pe.J_;d(t)}.bind(this),w=function(e){Ei(this,i),x(!0)}.bind(this),N=function(){Ei(this,i),x(!1)}.bind(this),A=function(e){Ei(this,i),g(!j)}.bind(this),S=function(){Ei(this,i),g(!1)}.bind(this),P="Use the tools below to opt out customers from "+(null==(n=y.subscriber)?void 0:n.companyName)+" emails.",E=null;if(v){var D=200===s.httpStatus?v.healthMetrics.daysSinceLastLoad:null;E=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(un,{days:D,status:v.healthMetrics.daysSinceLastLoadStatus}),(0,o.jsx)(yi,{metrics:v.healthMetrics,layout:r,accountType:"single location"})]})}var T=s.availableReportViews.map(function(e){return Ei(this,i),(0,o.jsx)("option",{value:e.period,children:e.displayName},e.period)}.bind(this));return(0,o.jsxs)("div",{className:"customer-list-health-wrapper",children:[(0,o.jsx)(wn,{isVisible:f,onClose:N}),(0,o.jsx)(Re.A,{anchorRef:a,isVisible:j,onClose:S,children:P}
2),(0,o.jsx)(Se.A,{className:"date-range",onChange:C,value:c.period,placeholder:"Date Range",usePlaceholderAsLabel:!0,children:T}),(0,o.jsxs)("div",{className:"mobile-customer-list-section-container",children:[(0,o.jsxs)("div",{className:"mobile-customer-list-section-header",onClick:w,children:["Customer List Health ",(0,o.jsx)(Oe.A,{size:24,className:"banner-icon","aria-hidden":!0})]}),E]}),(0,o.jsxs)("div",{className:"mobile-customer-list-section-container",children:[(0,o.jsxs)("div",{className:"mobile-customer-list-section-header",ref:a,onClick:A,children:["Opt Out Customers ",(0,o.jsx)(Oe.A,{size:24,className:"banner-icon","aria-hidden":!0})]}),(0,o.jsx)(Pi,{})]})]})}.bind(void 0);const Ti=(0,d.PA)(Di);var Oi=function(){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var e=(0,u.us)().businessUser,n=(0,g.c)().layout;return e.actingAsOwnerGroup?(0,o.jsx)(Ni,{layout:n}):(0,o.jsx)(Ti,{layout:n})}.bind(void 0);const Ri=(0,d.PA)(Oi);var Li=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.displayFactors,i=n.isMobile?(0,o.jsx)(Ri,{}):(0,o.jsx)(mi,{}),t=n.isOwnerView?X.A.uclDashboard.togCustomerListHealth.asOfDate:X.A.uclDashboard.customerListHealth.asOfDate;return(0,o.jsxs)(o.Fragment,{children:[i,(0,o.jsx)(l,{children:(0,o.jsx)(c,{asOfDate:(0,s.KS)(t||""),lastDays:""})})]})}.bind(void 0);Li.displayName="C4l Customer List Selector";const ki=(0,d.PA)(Li);var Ii=i(25076),Vi=function(e,n,i){void 0===i&&(i=!1);var t=X.A.subscriber.isProspectDealer,r=X.A.uclDashboard.summary.reportView.displayName,s=Ve.A.reportView.displayName,a=(0,Ii.L)()&&!i?s:r;if("ucl"===e){if("summary"===n)return a;if("leads"===n)return"Last 60 Days";if("inventory"===n&&!t)return"Last 30 Days' Listings (90-Day Performance)"}else if("c4l"===e&&"leads"===n&&!(0,Ii.L)())return"Last 60 Days";return""},Fi=i(68250),Bi=i(98046),_i=i(97666),Ui=void 0;function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Mi.apply(null,arguments)}function Gi(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Hi=function(){Gi(this,Ui);var e={"data-event":"click","data-action":"report summary"};return{print:Mi({},e,{"data-category":"print"}),download:Mi({},e,{"data-category":"download"})}}.bind(void 0),zi=function(e,n){var i=this;Gi(this,Ui);var t=null==e?void 0:e.map(function(e){return Gi(this,i),e.split(" ")[0]}.bind(this));t&&t.forEach(function(e,t){Gi(this,i);var r=document.getElementById(n+"-button-bar_option-"+t);null==r||r.setAttribute("data-event","click"),null==r||r.setAttribute("data-category","filter:type"),null==r||r.setAttribute("data-action",e)}.bind(this))}.bind(void 0);const Xi=i.p+"static/apps/cfo/[email protected]";var Wi=i(5681),Yi=i(69837);const qi=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.message,i=e.buttonMessage,t=e.onButtonClick,r=e.icon;return(0,o.jsxs)(Wi.A,{children:[(0,o.jsx)("span",{children:n}),(0,o.jsxs)(Yi.A,{onClick:t,children:[r,i]})]})}.bind(void 0);function Zi(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Ki=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX? Upgrade your account to the CARFAX Car Listings program to reach more in-market buyers."}),(0,o.jsx)("p",{children:"To learn more, call 1-888-788-7715, or enter your contact information below."})]}),Qi=function(e){var n=this;Zi(this,void 0);var i=e.title,r=e.isVisible,s=e.modalTitle,a=e.modalSubheader,l=(e.showModalTrackEventName,(0,t.useState)(!1)),c=l[0],d=l[1];if(!r)return null;var u=s||"Unlock New Features",h=a||Ki,v=function(){Zi(this,n),d(!0)}.bind(this),p=function(){Zi(this,n),d(!1)}.bind(this);return(0,o.jsxs)("div",{id:"udd-prospects-banner",className:"prospectBanner-hxSUo summaryNoPrint-p86OI",children:[(0,o.jsx)(pe.A,{header:u,subheader:h,handleLeadFormClose:p,showLeadFormModal:c}),(0,o.jsx)(qi,{message:i,buttonMessage:"Learn More >",onButtonClick:v})]})}.bind(void 0);const Ji=(0,d.PA)(Qi);var $i="container-vDW14";function et(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var nt=function(e){var n=this;et(this,void 0);var i=e.id,r=e.header,s=e.subHeader,a=e.img,l=e.buttonLabel,c=(0,g.c)().isMobile,d=(0,t.useState)(!1),u=d[0],h=d[1],v=$i;c||(v=$i+" cfxCard-xhIVh");var f=function(){et(this,n),h(!0)}.bind(this),x=function(){et(this,n),h(!1)}.bind(this);return(0,o.jsxs)("div",{className:v,children:[(0,o.jsx)(pe.A,{handleLeadFormClose:x,showLeadFormModal:u,header:r,subheader:s}),(0,o.jsxs)("div",{className:"textContent-EQp6v",children:[(0,o.jsx)("div",{className:"textContent_Header-JAhss",children:r}),(0,o.jsx)("div",{className:"textContent_Subheader-Jy8Os",children:s}),(0,o.jsx)(p.Ay,{id:i,className:"prospectsBoxTextButton",onClick:f,theme:"green",children:(0,o.jsxs)("span",{children:[(0,o.jsx)(m.A,{size:24,role:"presentation",className:"prospectsBoxTextButtonIcon","aria-hidden":!0})," ",l]})})]}),(0,o.jsx)("div",{children:(0,o.jsx)("div",{className:"prospectsBoxImg",children:(0,o.jsx)("img",{src:a,alt:"example image"})})})]})}.bind(void 0);const it=(0,d.PA)(nt);const tt=(0,d.PA)(function(){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var e=(0,o.jsxs)("span",{children:["Upgrade to the new ",(0,o.jsx)("b",{children:"CARFAX for Life Program"})," to start receiving trade-in leads on customer inventory."]}),n=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of the CARFAX Service Shop Program?"}),(0,o.jsx)("p",{children:"Upgrade your account to the CARFAX for Life program to drive lifetime customers."}),(0,o.jsxs)("p",{children:["To learn more, call ",(0,o.jsx)("span",{className:"modalPhoneText-mCoLT",children:"1-888-788-7715"}),", or enter your contact information below."]})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ji,{title:e,isVisible:!0,modalSubheader:n,showModalTrackEventName:"c4l_prospects_banner"}),(0,o.jsx)(it,{id:"trade-in-leads-prospects-unlock-button",header:"Unlock Your Customer's Inventory",subHeader:"Upgrade to the new CARFAX For Life Program to be the first to know about quality inventory available directly from your customers.",img:Xi,buttonLabel:"Unlock Your Trade-In Leads"})]})}.bind(void 0));var rt=i(29437);var st=(0,d.PA)(function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsx)("div",{className:"udd-search-bar noPrint",children:(0,o.jsx)(ti.Ay,{type:"text",value:e.data.searchText,onChange:e.data.handleSearch,placeholder:"Search by Year, Make, Model or VIN",icon:(0,o.jsx)(rt.A,{size:24,className:"udd-search-bar__icon",role:"img","aria-hidden":!0})})})}.bind(void 0)),at=void 0;function ot(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var lt=function(e){return ot(this,at),(0,o.jsxs)("div",{className:"pageHeader__performance",children:[e.title&&(0,o.jsx)("strong",{children:e.title}),e.subtitle&&" | "+e.subtitle,e.timespan&&(0,o.jsx)(ct,{asOfDate:e.timespan})]})}.bind(void 0),ct=function(e){ot(this,at);var n=e.asOfDate;(0,r.g)().tab;return n&&(0,o.jsx)("div",{className:"pageSubheader",children:n})}.bind(void 0);const dt=i.p+"static/apps/cfo/carfax-logo93de6485014299bdae72.png";var ut=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsx)("div",{className:"noScreen printHeader",children:(0,o.jsxs)("p",{className:"printHeader",children:[(0,o.jsx)("img",{src:dt})," ",e.companyName]})})}.bind(void 0),ht=i(93106),vt=i(803);function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},pt.apply(null,arguments)}var mt=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.tradeInLeadsStore,i=Hi();return(0,o.jsxs)("div",{className:"optionsBar-desktop noPrint",children:[(0,o.jsx)(p.Ay,pt({"aria-label":"print",id:"udd-leads-print-button",children:(0,o.jsx)(Te.A,{size:24,title:"print","aria-hidden":!0}),theme:"blue-flat",className:"optionsBarItem",disabled:!n.isPrintEnabled,onClick:n.handlePrint},i.print,{size:"small"})),(0,o.jsx)(p.Ay,pt({"aria-label":"download",id:"udd-leads-download-button",children:(0,o.jsx)(Ne.A,{size:24,title:"download","aria-hidden":!0}),theme:"blue-flat",className:"optionsBarItem",disabled:!n.isDownloadEnabled,onClick:n.downloadCsv},i.download,{size:"small"}))]})}.bind(void 0);const ft=(0,d.PA)(mt),xt=i.p+"static/apps/cfo/comment3686a5e98a801a259335.svg",bt=i.p+"static/apps/cfo/no-comment8da4196b696c23aaa492.svg",jt=i.p+"static/apps/cfo/playc442266db5d7eedd7a8b.svg",gt=i.p+"static/apps/cfo/waveform23
2ccb2e748cfd0c9339b.png";var yt="connectionBox-GqYW4",Ct="connectionBox_image-lpVGT",wt="connectionBox_waveform-_bRUp",Nt="pointer-FqhZc",At=void 0;function St(){return St=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},St.apply(null,arguments)}function Pt(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Et=function(e){return Pt(this,At),"EMAIL"===e.item.connectionType||"SMC_EMAIL"===e.item.connectionType?(0,o.jsx)(Dt,{item:e.item,compact:e.compact}):(0,o.jsx)(Tt,{item:e.item,compact:e.compact})}.bind(void 0),Dt=function(e){var n=this;Pt(this,At);var i=(0,t.useState)(!1),r=i[0],s=i[1],a=(0,t.useRef)(null),l=e.compact?"compact":"",c=e.item.comments?(0,o.jsxs)("div",St({className:yt+" "+Nt+" "+l,ref:a},Hn.f,{onClick:function(){return Pt(this,n),s(!r)}.bind(this),children:[(0,o.jsx)(Re.A,{anchorRef:a,onClose:function(){return Pt(this,n),s(!1)}.bind(this),isVisible:r,position:"bottom",children:e.item.comments}),(0,o.jsx)("img",{className:Ct,src:xt,alt:""}),!e.compact&&(0,o.jsx)("div",{className:"connectionBox_comment-TZ9sD",children:e.item.comments})]})):(0,o.jsxs)("div",St({className:yt+" "+l,ref:a},Hn.f,{children:[(0,o.jsx)("img",{className:Ct,src:bt,alt:""}),!e.compact&&(0,o.jsx)("div",{className:"connectionBox_noComment-wA4HR",children:"(no comment)"})]}));return(0,o.jsxs)(o.Fragment,{children:["Email",(0,o.jsx)("br",{}),c]})}.bind(void 0),Tt=function(e){Pt(this,At);var n=e.compact?"compact":"",i=e.item.callAudioUrl?(0,o.jsx)("a",{href:e.item.callAudioUrl||"",target:"_blank",style:{display:"block",lineHeight:0},children:(0,o.jsxs)("div",St({className:yt+" "+Nt+" "+n},Hn.f,{children:[(0,o.jsx)("img",{className:Ct,src:jt,alt:"phone with audio","aria-label":"play phone audio",role:"button"}),!e.compact&&(0,o.jsx)("img",{className:wt,src:gt,alt:""}),!e.compact&&(0,o.jsx)("div",{className:"duration-BPN4E",children:e.item.callDuration})]}))}):(0,o.jsxs)("div",St({className:yt+" "+n},Hn.f,{children:[(0,o.jsx)("img",{className:Ct+" disabled-vNL3X phone-ztQ9q",src:jt,alt:""}),!e.compact&&(0,o.jsx)("div",{className:wt,children:"No Call Audio Available"})]}));return(0,o.jsxs)(o.Fragment,{children:["Phone",(0,o.jsx)("br",{}),i]})}.bind(void 0);var Ot=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=new Date(e);return isNaN(n.getTime())?(0,o.jsx)("div",{className:"header--time",children:"N/A"}):(0,o.jsxs)("div",{className:"header--time",children:[(0,s.m8)(n),(0,o.jsx)("p",{}),(0,s.po)(n)]})}.bind(void 0);function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Rt.apply(null,arguments)}var Lt=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.adobeDataCategory?{"data-event":"click","data-category":e.adobeDataCategory,"data-action":"email"}:{},i=e.item.customerName?e.item.customerName:"",t=e.item.phoneNumber?ke.A.phone(e.item.phoneNumber):"",r=e.item.phoneNumber&&e.item.customerEmail?" | ":"",s=(0,o.jsx)("a",Rt({href:"mailto:"+e.item.customerEmail},n,{children:e.item.customerEmail})),a=e.item.customerEmail?s:"";return(0,o.jsxs)("div",Rt({className:"header--info"},Hn.f,{children:[i,(0,o.jsx)("p",{}),t," ",r," ",a]}))}.bind(void 0);var kt=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),void 0===e.quotedValue?null:null===e.quotedValue?(0,o.jsx)("div",{className:"header--quoted-value",children:"N/A"}):(0,o.jsx)("div",{className:"header--quoted-value",children:ke.A.currency(e.quotedValue)})}.bind(void 0);var It=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n,i=e.vehiclePriceRange,t=(0,g.c)().isMobile;if(void 0===i)return null;if(null===i)return(0,o.jsx)("div",{children:"N/A"});if(t)n=i;else{var r=ke.A.getMinMaxPriceRange(i);n=r&&(null==r?void 0:r.min)>0&&r.max>0?(0,o.jsxs)("div",{className:"vehiclePriceRange-k5zjW",children:[(0,o.jsx)("p",{children:ke.A.currency(null==r?void 0:r.min)}),(0,o.jsx)("p",{children:"to"}),(0,o.jsx)("p",{children:ke.A.currency(null==r?void 0:r.max)})]}):(0,o.jsx)("div",{children:"N/A"})}return(0,o.jsx)("div",{children:n})}.bind(void 0),Vt=i(20536),Ft=i(81648),Bt=i(55966),_t=void 0;function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Ut.apply(null,arguments)}function Mt(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Gt=(0,d.PA)(function(e){var n=this;Mt(this,_t);var i=e.data,r=e.store,s=(0,Nn.GY)("transactionDate","desc"),a=s.sortBy,l=s.sortDirection,c=s.toggleTableSort,d=(0,t.useState)(1),u=d[0],h=d[1],v=(0,t.useState)(10),p=v[0],m=v[1],f=(u-1)*p,x=f+p;(0,t.useEffect)(function(){Mt(this,n),a&&r.setSort(a,l)}.bind(this),[a,l]),(0,t.useEffect)(function(){Mt(this,n),h(1)}.bind(this),[i,a]);var b=function(e){return Mt(this,n),a===e?l:void 0}.bind(this),j=function(e){Mt(this,n),h(e.currentPage),m(e.perPageValue)}.bind(this),g=i;"transactionDate"===a?g.sort((0,le.VE)(function(e){return Mt(this,n),new Date(e.transactionDate).getTime()}.bind(this))):"quotedValue"===a?g.sort((0,le.VE)(function(e){var i;return Mt(this,n),e.quotedValue&&0!==parseInt(e.quotedValue)?parseFloat(e.quotedValue):e.vehiclePriceRange&&(null==(i=ke.A.getMinMaxPriceRange(e.vehiclePriceRange))?void 0:i.min)}.bind(this))):"connectionType"===a?g.sort((0,le.VE)(function(e){return Mt(this,n),e.connectionType.toString()}.bind(this))):"customerName"===a?g.sort((0,le.VE)(function(e){return Mt(this,n),(e.customerName||"").toLowerCase()}.bind(this))):"leadSource"===a?g.sort((0,le.VE)(function(e){return Mt(this,n),(e.leadSource||"").toLowerCase()}.bind(this))):"vhrRun"===a&&g.sort((0,le.VE)(function(e){return Mt(this,n),(e.vhrRun||"").toLowerCase()}.bind(this))),"desc"===l&&g.reverse();var y,C,w=g;return g.length>0&&(w=g.slice(f,x)),w.length>0?(y=(0,o.jsx)(En.v,{children:w.map(function(e,i){Mt(this,n);var t=e.quotedValue&&0!==parseFloat(e.quotedValue)?(0,o.jsx)(kt,{quotedValue:e.quotedValue}):(0,o.jsx)(It,{vehiclePriceRange:e.vehiclePriceRange});return(0,o.jsxs)(Dn.TR,{children:[(0,o.jsx)(Tn.TD,{align:"left",children:Ot(e.transactionDate)}),(0,o.jsx)(Tn.TD,{align:"left",children:(0,o.jsx)(zt,{item:e})}),(0,o.jsx)(Tn.TD,{align:"right",children:t}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Et,{item:e})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Lt,{item:e,adobeDataCategory:"trade in lead"})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Xt,{item:e})}),(0,o.jsx)(Tn.TD,{align:"right",children:e.vhrRun})]},i)}.bind(this))}),C=(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",margin:"24px 0"},children:(0,o.jsx)(On.A,{onChange:j,currentPage:u,perPageValue:p,totalItems:g.length||0,perPageOptions:[10,50,100],size:"large"})})):y=(0,o.jsx)(Ht,{}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(An.X,{"aria-label":"C4L Trade-In Leads Table",children:[(0,o.jsxs)(Sn.D,{stickyPosition:(0,Vn.E)(),children:[(0,o.jsx)(Pn.TH,{width:110,sortDirection:b("transactionDate"),onClick:function(){return Mt(this,n),c("transactionDate")}.bind(this),children:(0,o.jsx)("p",{children:"Time"})}),(0,o.jsx)(Pn.TH,{width:290,children:(0,o.jsx)("p",{children:"Vehicle Information"})}),(0,o.jsx)(Pn.TH,{width:110,sortDirection:b("quotedValue"),onClick:function(){return Mt(this,n),c("quotedValue")}.bind(this),children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{children:"Quoted"}),(0,o.jsx)("p",{style:{whiteSpace:"nowrap"},children:"CARFAX Value"})]})}),(0,o.jsx)(Pn.TH,{sortDirection:b("connectionType"),onClick:function(){return Mt(this,n),c("connectionType")}.bind(this),children:(0,o.jsx)("p",{children:"Connection Type"})}),(0,o.jsx)(Pn.TH,{sortDirection:b("customerName"),onClick:function(){return Mt(this,n),c("customerName")}.bind(this),children:(0,o.jsx)("p",{children:"Customer Information"})}),(0,o.jsx)(Pn.TH,{sortDirection:b("leadSource"),onClick:function(){return Mt(this,n),c("leadSource")}.bind(this),children:(0,o.jsx)("p",{children:"Lead Source"})}),(0,o.jsx)(Pn.TH,{width:100,sortDirection:b("vhrRun"),onClick:function(){return Mt(this,n),c("vhrRun")}.bind(this),children:(0,o.jsx)("p",{style:{whiteSpace:"nowrap"},children:"VHR Run"})})]}),y]}),C]})}.bind(void 0));var Ht=function(){Mt(this,_t);var e=(0,le.r5)(),n={};return n.width=Math.min(e,1280),n.display="flex",n.justifyContent="center",(0,o.jsx)("div",{style:Ut({},n),children:(0,o.jsx)(Vt.A,{})})}.bind(void 0),zt=function(e){Mt(this,_t);var n=e.item;
2return(0,o.jsx)(Ft.A,{vehicle:n.vehicle,vdpLinkStatus:Bt.f.SUPPRESSED,moreInfo:{color:n.exteriorColor,features:n.features},condition:n.condition,adobeDataCategory:"trade in lead",displayFourPillar:!0})}.bind(void 0),Xt=function(e){Mt(this,_t);var n=e.item;return(0,o.jsxs)("div",{className:"header--info",children:[n.leadSource,(0,o.jsx)("p",{}),(0,o.jsx)("div",{style:{color:"#616161"},children:"Yes"===n.uclExclusive?"CCL Exclusive":""})]})}.bind(void 0),Wt=void 0;function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Yt.apply(null,arguments)}function qt(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Zt=(0,d.PA)(function(e){var n=this;qt(this,Wt);var i=e.data,r=e.store,s=(0,Nn.GY)("store","asc"),a=s.sortBy,l=s.sortDirection,c=s.toggleTableSort,d=(0,t.useState)(1),u=d[0],h=d[1],v=(0,t.useState)(10),p=v[0],m=v[1],f=(u-1)*p,x=f+p;(0,t.useEffect)(function(){qt(this,n),a&&r.setSort(a,l)}.bind(this),[a,l]),(0,t.useEffect)(function(){qt(this,n),h(1)}.bind(this),[i,a]);var b=function(e){return qt(this,n),a===e?l:void 0}.bind(this),j=function(e){qt(this,n),h(e.currentPage),m(e.perPageValue)}.bind(this),g=i.map(function(e){return qt(this,n),{store:{name:e.name,address:e.address,city:e.city,state:e.state,active:e.carfax4Life,lifetimeDealer:e.lifetimeDealer},totalLeads:e.carfax4Life?e.totalLeads:-1,emailLeads:e.carfax4Life?e.emailLeads:-1,phoneLeads:e.carfax4Life?e.phoneLeads:-1}}.bind(this));"store"===a?g.sort((0,le.VE)(function(e){return qt(this,n),e.store.name}.bind(this))):"emailLeads"===a?g.sort((0,le.VE)(function(e){return qt(this,n),e.emailLeads}.bind(this))):"phoneLeads"===a?g.sort((0,le.VE)(function(e){return qt(this,n),e.phoneLeads}.bind(this))):"totalLeads"===a&&g.sort((0,le.VE)(function(e){return qt(this,n),e.totalLeads}.bind(this))),"desc"===l&&g.reverse();var y,C,w=g;return g.length>0&&(w=g.slice(f,x)),w.length>0?(y=(0,o.jsx)(En.v,{children:w.map(function(e,i){return qt(this,n),(0,o.jsxs)(Dn.TR,{children:[(0,o.jsx)(Tn.TD,{align:"left",children:Ln({store:e.store,isMobile:!1,inactiveMessage:In.I})}),(0,o.jsx)(Tn.TD,{align:"center",children:Kt(e.emailLeads)}),(0,o.jsx)(Tn.TD,{align:"center",children:Kt(e.phoneLeads)}),(0,o.jsx)(Tn.TD,{align:"center",children:Kt(e.totalLeads)})]},i)}.bind(this))}),C=(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",margin:"24px 0"},children:(0,o.jsx)(On.A,{onChange:j,currentPage:u,perPageValue:p,totalItems:g.length||0,perPageOptions:[10,50,100],size:"large"})})):y=(0,o.jsx)(Qt,{}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(An.X,{"aria-label":"Owner Group C4L Trade-In Leads Table",children:[(0,o.jsxs)(Sn.D,{children:[(0,o.jsx)(Pn.TH,{sortDirection:b("store"),onClick:function(){return qt(this,n),c("store")}.bind(this),children:"Store Name"}),(0,o.jsx)(Pn.TH,{width:125,sortDirection:b("emailLeads"),onClick:function(){return qt(this,n),c("emailLeads")}.bind(this),children:"Email"}),(0,o.jsx)(Pn.TH,{width:125,sortDirection:b("phoneLeads"),onClick:function(){return qt(this,n),c("phoneLeads")}.bind(this),children:"Phone"}),(0,o.jsx)(Pn.TH,{width:135,sortDirection:b("totalLeads"),onClick:function(){return qt(this,n),c("totalLeads")}.bind(this),children:"Total Leads"})]}),y]}),C]})}.bind(void 0));var Kt=function(e){return qt(this,Wt),e>=0?(0,o.jsx)("div",{className:"value-active",children:ke.A.numberWithCommas(e)}):(0,o.jsx)("div",{className:"value-inactive",children:"-"})}.bind(void 0),Qt=function(){qt(this,Wt);var e=(0,le.r5)(),n={};return n.width=Math.min(e,1280),n.display="flex",n.justifyContent="center",(0,o.jsx)("div",{style:Yt({},n),children:(0,o.jsx)(Vt.A,{})})}.bind(void 0),Jt=void 0;function $t(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var er=function(){var e;$t(this,Jt);var n,i=X.A.subscriber.actingAsOwnerGroup,t=i?X.A.uclDashboard.togTradeInLeads:X.A.uclDashboard.tradeInLeads;n=X.A.subscriber.shouldDisplayCarfax4Life?i?(0,o.jsx)(rr,{}):(0,o.jsx)(tr,{}):(0,o.jsx)(tt,{});var r=(null==(e=X.A.subscriber.subscriber)?void 0:e.companyName)||"",s=i?"header-options-container":"header-options-container noPrint",a=i?(0,o.jsx)(lt,{title:"Trade-In Leads",subtitle:"Sell My Car",timespan:"Last 60 days"}):(0,o.jsx)(ht.Z,{messageType:"service"}),l=t.isPrintEnabled&&!i&&(0,o.jsx)(st,{data:t}),c=i?null:(0,o.jsxs)("div",{className:"header-options-container noPrint",children:[l,(0,o.jsx)(ir,{})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ut,{companyName:r}),(0,o.jsxs)("div",{className:s,children:[a,(0,o.jsx)(ft,{tradeInLeadsStore:t})]}),c,n]})}.bind(void 0);const nr=(0,d.PA)(er);var ir=(0,d.PA)(function(){var e=this;$t(this,Jt);var n=X.A.uclDashboard.tradeInLeads,i="udd-leads-filters-button-bar";return(0,t.useEffect)(function(){$t(this,e),zi(n.filterOptionStrings,i)}.bind(this),[n.filterOptionStrings]),void 0===n.filterOptionStrings?null:(0,o.jsx)("div",{style:{marginRight:"24px"},children:(0,o.jsx)(Fi.A,{id:i,selected:n.activeFilterOptionString,options:n.filterOptionStrings,onClick:n.handleFilterOptionClick,className:"optionsBarItem"})})}.bind(void 0)),tr=(0,d.PA)(function(){$t(this,Jt);var e=X.A.uclDashboard.tradeInLeads;switch(e.viewType){case"SUCCESS":return(0,o.jsx)(sr,{leads:e.filteredLeads});case"NO_RESULTS":return(0,o.jsx)(_i.A,{title:"No trade-in leads are available at this time.",showLastUpdated:!0,showImage:!0});case"ERROR_UNEXPECTED":return(0,o.jsx)(vt.A,{});case"PENDING":return(0,o.jsx)(Bi.A,{children:"Fetching Trade-In Leads..."});case"NON_C4L":return null}}.bind(void 0)),rr=(0,d.PA)(function(){$t(this,Jt);var e=X.A.uclDashboard.togTradeInLeads;switch(e.viewType){case"SUCCESS":return(0,o.jsx)(ar,{leadsTog:e.allLeads});case"NO_RESULTS":return(0,o.jsx)(_i.A,{title:"No trade-in leads are available at this time.",showLastUpdated:!0,showImage:!0});case"ERROR_UNEXPECTED":return(0,o.jsx)(vt.A,{});case"PENDING":return(0,o.jsx)(Bi.A,{children:"Fetching Trade-In Leads..."});case"NON_C4L":return null}}.bind(void 0)),sr=(0,d.PA)(function(e){$t(this,Jt);var n=X.A.uclDashboard.tradeInLeads;return(0,o.jsx)("div",{className:"leadsTable",style:{margin:"24px 24px 0"},children:(0,o.jsx)(Gt,{data:e.leads,store:n})})}.bind(void 0)),ar=(0,d.PA)(function(e){$t(this,Jt);var n=X.A.uclDashboard.togTradeInLeads;return(0,o.jsx)("div",{className:"ucl-table-wrapper",children:(0,o.jsx)(Zt,{data:e.leadsTog,store:n})})}.bind(void 0)),or=void 0;function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},lr.apply(null,arguments)}function cr(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const dr=(0,d.PA)(function(){cr(this,or);var e=(0,u.us)().businessUser,n=X.A.subscriber.actingAsOwnerGroup,i=n?(0,o.jsx)(pr,{}):(0,o.jsx)(vr,{}),t=n?(0,o.jsx)(hr,{}):(0,o.jsx)(ur,{}),r=n?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(st,{data:X.A.uclDashboard.tradeInLeads}),s=n?(0,o.jsx)(fr,{}):(0,o.jsx)(mr,{});return(0,o.jsx)(o.Fragment,{children:e.shouldDisplayCarfax4Life?(0,o.jsxs)(o.Fragment,{children:[t,r,(0,o.jsx)("div",{className:"mobile-card-gap"}),i,(0,o.jsx)("div",{className:"optionsBar-mobile",children:s})]}):(0,o.jsx)(tt,{})})}.bind(void 0));var ur=(0,d.PA)(function(){cr(this,or);var e=X.A.uclDashboard.tradeInLeads;return(0,o.jsxs)("div",{className:"optionsBar-mobile",children:[(0,o.jsx)("div",{className:"optionsBar-mobile-content",children:e.filterOptionStrings&&(0,o.jsx)(Se.A,{"aria-label":"select leads connection type",value:e.activeFilterOptionString,onChange:e.handleFilterOptionChange,isSmall:!1,id:"mobile-leads-connection-type",displaySelectedAs:e.activeFilterOptionString,children:(0,Le.A)({items:e.filterOptionStrings}).originalOptions})}),(0,o.jsx)(xr,{}),(0,o.jsx)(mr,{})]})}.bind(void 0)),hr=(0,d.PA)(function(){var e=this;cr(this,or);var n=X.A.uclDashboard.togTradeInLeads,i=Object.keys(n.sortOptions);return(0,o.jsxs)("div",{className:"optionsBar-mobile",children:[(0,o.jsx)("div",{className:"optionsBar-mobile-content",children:(0,o.jsx)(Se.A,{"aria-label":"select leads connection type",value:n.sort.field,onChange:n.handleSortOptionChange,isSmall:!1,id:"mobile-leads-connection-type",children:i.map(function(i){return cr(this,e),(0,o.jsx)("option",{value:i,children:n.sortOptions[i]},i)}.bind(this))})}),(0,o.jsx)(fr,{})]})}.bind(void 0)),vr=(0,d.PA)(function(){cr(this,or);var e=X.A.uclDashboard.tradeInLeads;switch(e.viewType){case"SUCCESS":return(0,o.jsx)(br,{mobileLeads:e.paginatedSortedFilteredLeads});case"NO_RESULTS":return(0,o.jsx)(_i.A,{title:"No trade-in leads are available at this time.",showLastUpdated:!0,showImage:!0});case"ERROR_UNEXPECTED":return(0,o.jsx)(vt.A,{});case"PENDING":return(0,o.jsx)(Bi.A,{});case"NON_C4L":return null}}.bind(void 0)),pr=(0,d.PA)(function(){cr(this,or);var e=X.A.uclDashboard.togTradeInLeads;switch(e.viewType){case"SUCCESS":return(0,o.jsx)(gr,{leadSummaries:e.paginatedSortedLeads});case"NO_RESULTS":return(0,o.jsx)(_i.A,{title:"No trade-in leads are available at this time.",showLastUpdated:!0,showImage:!0});case"ERROR_UNEXPECTED":return(0,o.jsx)(vt.A,{});case"PENDING":return(0,o.jsx)(Bi.A,{});case"NON_C4L":return null}}.bind(void 0)),mr=(0,d.PA)(function(){cr(this,or);var e=X.A.uclDashboard.tradeInLeads,n=e.filteredLeads.length;return 0===n?null:(0,o.jsx)(On.A,{id:"trade-in-leads-table-pagination",onChange:e.handleTablePaginationChange,totalItems:n,currentPage:e.page,perPageValue:e.pageSize,size:"small",tooltipTheme:"light"})}.bind(void 0)),fr=(0,d.PA)(function(){cr(this,or);var e=X.A.uclDashboard.togTradeInLeads,n=e.allLeads.length;return 0===n?null:(0,o.jsx)(On.A,{id:"trade-in-leads-table-pagination",onChange:e.handleTablePaginationChange,totalItems:n,currentPage:e.page,perPageValue:e.pageSize,size:"small",tooltipTheme:"light"})}.bind(void 0)),xr=(0,d.PA)(function(){var e=this;cr(this,or);var n=X.A.uclDashboard.tradeInLeads,i=Object.keys(n.sortOptions);return(0,o.jsx)("div",{className:"optionsBar-mobile-content",children:(0,o.jsx)("div",{className:"optionsBar-mobile-sizing",children:(0,o.jsx)(Se.A,{"aria-label":"select leads sort",value:n.sort.field,onChange:n.handleSortOptionChange,isSmall:!1,disabled:"NO_RESULTS"===n.viewType,id:"mobile-leads-sort",children:i.map(function(i){return cr(this,e),(0,o.jsx)("option",{value:i,children:n.sortOptions[i]},i)}.bind(this))})})})}.bind(void 0)),br=(0,d.PA)(function(e){var n=this;return cr(this,or),0===e.mobileLeads.length?(0,o.jsx)(Vt.A,{}):(0,o.jsx)("div",{children:e.mobileLeads.map(function(e){return cr(this,n),(0,o.jsx)(jr,{lead:e},e.leadId)}.bind(this))})}.bind(void 0)),jr=(0,d.PA)(function(e){cr(this,or);var n=new Date(e.lead.transactionDate),i="N/A",t="N/A";return isNaN(n.getTime())||(i=n.toLocaleDateString("en-US",{hour:"numeric",minute:"2-digit"}).split(", ")[1],t=n.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"2-digit"})),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"mobile-leads-card",children:[e.lead.vehicle&&(0,o.jsxs)("div",{className:"mobile-leads-card-segment",children:[(0,o.jsxs)("div",{className:"mobile-leads-card-title",children:[(0,o.jsx)("div",{className:"mobile-value-badging-card-row-name",children:"Vehicle Information"}),(0,o.jsx)("div",{className:"mobile-value-badging-card-status",children:"Time - "+i+", "+t})]}),(0,o.jsx)("div",{className:"mobile-leads-card-vin-info-block",children:(0,o.jsx)(Ft.A,{vehicle:e.lead.vehicle,vdpLinkStatus:Bt.f.
2SUPPRESSED,moreInfo:{color:e.lead.exteriorColor,features:e.lead.features},condition:e.lead.condition,displayFourPillar:!0})})]}),(0,o.jsx)("div",{className:"mobile-leads-card-separator"}),(0,o.jsxs)("div",{className:"mobile-leads-card-segment",children:[(0,o.jsx)("div",{className:"mobile-leads-card-title",children:"Quoted CARFAX Value"}),e.lead.quotedValue&&0!==parseFloat(e.lead.quotedValue)?(0,o.jsx)(kt,{quotedValue:e.lead.quotedValue}):(0,o.jsx)(It,{vehiclePriceRange:e.lead.vehiclePriceRange})]}),(0,o.jsx)("div",{className:"mobile-leads-card-separator"}),(0,o.jsxs)("div",{className:"mobile-leads-card-segment",children:[(0,o.jsx)("div",{className:"mobile-leads-card-title",children:"Connection Type"}),(0,o.jsx)(Et,{item:e.lead})]}),(0,o.jsx)("div",{className:"mobile-leads-card-separator"}),(0,o.jsxs)("div",{className:"mobile-leads-card-segment",children:[(0,o.jsx)("div",{className:"mobile-leads-card-title",children:"Customer Information"}),(0,o.jsx)(Lt,{item:e.lead})]}),(0,o.jsx)("div",{className:"mobile-leads-card-separator"}),(0,o.jsxs)("div",{className:"mobile-leads-card-segment",children:[(0,o.jsx)("div",{className:"mobile-leads-card-title",children:"Lead Source"}),null==e.lead.leadSource?"N/A":e.lead.leadSource]}),(0,o.jsx)("div",{className:"mobile-leads-card-separator"}),(0,o.jsxs)("div",{className:"mobile-leads-card-segment",children:[(0,o.jsx)("div",{className:"mobile-leads-card-title",children:"VHR Run"}),null==e.lead.vhrRun?"N/A":e.lead.vhrRun]})]}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})}.bind(void 0)),gr=(0,d.PA)(function(e){var n=this;return cr(this,or),0===e.leadSummaries.length?(0,o.jsx)(Vt.A,{}):(0,o.jsx)("div",{children:e.leadSummaries.map(function(e){return cr(this,n),(0,o.jsx)(yr,{leadSummary:e},""+Math.random())}.bind(this))})}.bind(void 0)),yr=(0,d.PA)(function(e){var n=this;cr(this,or);var i=function(i){return cr(this,n),e.leadSummary.carfax4Life?i:(0,o.jsx)(o.Fragment,{children:"â"})}.bind(this),t=e.leadSummary.carfax4Life?"":"mobile-leads-card-inactive";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"mobile-leads-card",children:[(0,o.jsx)("div",{className:"mobile-leads-card-segment",children:(0,o.jsx)(Ln,{store:lr({},e.leadSummary,{active:e.leadSummary.carfax4Life}),isMobile:!0,inactiveMessage:In.I})}),(0,o.jsx)("div",{className:"mobile-leads-card-separator"}),(0,o.jsxs)("div",{className:"mobile-leads-card-segment mobile-leads-card-flex-row "+t,children:[(0,o.jsxs)("div",{children:["Total: ",i(e.leadSummary.totalLeads)]}),(0,o.jsxs)("div",{children:["Email: ",i(e.leadSummary.emailLeads)]}),(0,o.jsxs)("div",{children:["Phone: ",i(e.leadSummary.phoneLeads)]})]})]}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})}.bind(void 0));var Cr=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.displayFactors,i=n.isMobile?(0,o.jsx)(dr,{}):(0,o.jsx)(nr,{}),t=n.isOwnerView?X.A.uclDashboard.togTradeInLeads.asOfDate:X.A.uclDashboard.tradeInLeads.asOfDate;return(0,o.jsxs)(o.Fragment,{children:[i,(0,o.jsx)(l,{children:(0,o.jsx)(c,{asOfDate:(0,s.KS)(t||""),lastDays:Vi("c4l","leads")})})]})}.bind(void 0);Cr.displayName="C4l Leads Selector";const wr=(0,d.PA)(Cr);var Nr=i(69761),Ar=void 0;function Sr(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Pr=function(e){var n=this;Sr(this,Ar);var i=e.uclNoAccidentCars,t=e.uclNoAccidentCarsPercent,r=e.uclOneOwnerCars,s=e.uclOneOwnerCarsPercent,a=e.uclPersonalUseCars,o=e.uclPersonalUseCarsPercent,l=e.uclServiceRecordCars,c=e.uclServiceRecordCarsPercent,d=[i,t,r,s,a,o,l,c].every(function(e){return Sr(this,n),0===e||!e}.bind(this));return{uclNoAccidentCars:d?"-":ke.A.numberWithCommasFalsyAsZero(i),uclNoAccidentCarsPercent:d?"-":ke.A.percentageNumber(t),uclOneOwnerCars:d?"-":ke.A.numberWithCommasFalsyAsZero(r),uclOneOwnerCarsPercent:d?"-":ke.A.percentageNumber(s),uclPersonalUseCars:d?"-":ke.A.numberWithCommasFalsyAsZero(a),uclPersonalUseCarsPercent:d?"-":ke.A.percentageNumber(o),uclServiceRecordCars:d?"-":ke.A.numberWithCommasFalsyAsZero(l),uclServiceRecordCarsPercent:d?"-":ke.A.percentageNumber(c)}}.bind(void 0),Er=function(e){var n=this;Sr(this,Ar);var i=e.uclGreatBadgeCars,t=e.uclGoodBadgeCars,r=e.uclFairBadgeCars,s=e.uclOtherBadgeCars,a=[i,t,r,s].every(function(e){return Sr(this,n),0===e||!e}.bind(this));return{uclGreatBadgeCars:a?"-":ke.A.numberWithCommasFalsyAsZero(i),uclGoodBadgeCars:a?"-":ke.A.numberWithCommasFalsyAsZero(t),uclFairBadgeCars:a?"-":ke.A.numberWithCommasFalsyAsZero(r),uclOtherBadgeCars:a?"-":ke.A.numberWithCommasFalsyAsZero(s)}}.bind(void 0),Dr=function(e){var n=this;Sr(this,Ar);var i=e.cars,t=e.visitors,r=e.srpImpressions,s=e.vdpViews,a=e.uclIcrClicks,o=[i,t,r,s,a].every(function(e){return Sr(this,n),0===e||!e}.bind(this));return{cars:o?"-":ke.A.numberWithCommasFalsyAsZero(i),visitors:o?"-":ke.A.numberWithCommasFalsyAsZero(t),srpImpressions:o?"-":ke.A.numberWithCommasFalsyAsZero(r),vdpViews:o?"-":ke.A.numberWithCommasFalsyAsZero(s),uclIcrClicks:o?"-":ke.A.numberWithCommasFalsyAsZero(a)}}.bind(void 0),Tr=function(e){var n=this;Sr(this,Ar);var i=e.emailLeads,t=e.phoneLeads,r=(i||0)+(t||0),s=[i,t,r].every(function(e){return Sr(this,n),0===e||!e}.bind(this));return{emailLeads:s?"-":ke.A.numberWithCommasFalsyAsZero(i),phoneLeads:s?"-":ke.A.numberWithCommasFalsyAsZero(t),totalLeads:s?"-":ke.A.numberWithCommasFalsyAsZero(r)}}.bind(void 0),Or=(function(e){var n=this;Sr(this,Ar);var i=e.uclActiveCars,t=e.uclSoldCars,r=(i||0)+(t||0),s=[i,t,r].every(function(e){return Sr(this,n),0===e||!e}.bind(this));return{uclActiveCars:s?"-":ke.A.numberWithCommasFalsyAsZero(i),uclSoldCars:s?"-":ke.A.numberWithCommasFalsyAsZero(t),uclTotalCars:s?"-":ke.A.numberWithCommasFalsyAsZero(r)}}.bind(void 0),function(e){var n=this;Sr(this,Ar);var i=e.uclGreatBadgeCars,t=e.uclGoodBadgeCars,r=e.uclFairBadgeCars,s=e.uclOtherBadgeCars,a=(i||0)+(t||0)+(r||0)+(s||0),o=[i,t,r,s,a].every(function(e){return Sr(this,n),0===e||!e}.bind(this));return{uclGreatBadgeCars:o?"-":ke.A.numberWithCommasFalsyAsZero(i),uclGoodBadgeCars:o?"-":ke.A.numberWithCommasFalsyAsZero(t),uclFairBadgeCars:o?"-":ke.A.numberWithCommasFalsyAsZero(r),uclOtherBadgeCars:o?"-":ke.A.numberWithCommasFalsyAsZero(s),uclTotalBadges:o?"-":ke.A.numberWithCommasFalsyAsZero(a)}}.bind(void 0),function(e,n){var i=this;void 0===n&&(n="ucl");var t=e.period,r=function(e){return Sr(this,i),t[""+n+e]}.bind(this);return{compCode:e.compCode,companyName:e.companyName,streetAddress:e.streetAddress,city:e.city,state:e.state,zip:e.zip,isUcl:e.isUcl,current:e.current,period:{cars:r("Cars"),visitors:r("Visitors"),srpImpressions:r("SrpImpressions"),vdpViews:r("VdpViews"),emailLeads:r("EmailLeads"),phoneLeads:r("PhoneLeads"),uclIcrClicks:t.uclIcrClicks,uclActiveCars:t.uclActiveCars,uclSoldCars:t.uclSoldCars,uclGreatBadgeCars:t.uclGreatBadgeCars,uclGoodBadgeCars:t.uclGoodBadgeCars,uclFairBadgeCars:t.uclFairBadgeCars,uclOtherBadgeCars:t.uclOtherBadgeCars}}});function Rr(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Lr=function(e){var n=this;Rr(this,void 0);var i=e.togChildren,r=i.length,s=(0,t.useState)(0),a=s[0],l=s[1],c=(0,t.useState)(!0),d=c[0],u=c[1],h=i.slice(a,a+10),v=function(e){Rr(this,n),l(e)}.bind(this),p=function(){Rr(this,n),u(!d)}.bind(this),m=h.map(function(e){var i=this;Rr(this,n);var t=e.companyName,r=e.compCode,s=Tr({emailLeads:e.period.uclEmailLeads,phoneLeads:e.period.uclPhoneLeads,
2cars:e.period.uclCars,visitors:e.period.uclVisitors,srpImpressions:e.period.uclSrpImpressions,vdpViews:e.period.uclVdpViews}),a=s.emailLeads,l=s.phoneLeads,c=s.totalLeads,d=function(){return Rr(this,i),Ie.A.handleStoreNameOnClick(r,t||"")}.bind(this),u=function(){return Rr(this,i),null}.bind(this),h=e.isUcl?d:u;return(0,o.jsxs)(tn,{child:e,dealershipName:t,numColumns:3,onClick:h,children:[(0,o.jsx)(ln,{categoryName:"Email",categoryValue:a}),(0,o.jsx)(ln,{categoryName:"Phone",categoryValue:l}),(0,o.jsx)(ln,{categoryName:"Total Leads",categoryValue:c})]},r)}.bind(this));return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"mobile-card-gap"}),(0,o.jsx)(fi.n,{border:"contained",className:"ucl-tog-mobile-segment",children:(0,o.jsxs)(xi.c,{id:"LeadsExpander",open:d,children:[(0,o.jsx)(bi.b,{onClick:p,children:"Buyer Leads"}),(0,o.jsxs)(ji.C,{children:[m,(0,o.jsx)(on,{startIndex:a,totalCount:r,handlePageChange:v})]})]})}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})}.bind(void 0),kr=void 0;function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Ir.apply(null,arguments)}function Vr(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Fr=(0,d.PA)(function(e){var n=this;Vr(this,kr);var i=e.childData,r=e.sortBy,s=e.sortDirection,a=e.toggleTableSort,l=(0,u.us)().businessUser,c=(0,t.useState)(1),d=c[0],h=c[1],v=(0,t.useState)(10),p=v[0],m=v[1],f=(d-1)*p,x=f+p,b=function(e){return Vr(this,n),r===e?s:void 0}.bind(this),j=function(e){Vr(this,n),h(e.currentPage),m(e.perPageValue)}.bind(this),g=[];i.children.map(function(e){Vr(this,n),e.isUcl&&g.push(e)}.bind(this));var y=(Ve.A.participatingLocationsOnly?g:i.children).map(function(e){var i,t,r,s,a;Vr(this,n);var o=null!=(i=e.period.uclEmailLeads)?i:0,c=null!=(t=e.period.uclPhoneLeads)?t:0,d=(null==(r=l.findChild(e.compCode))?void 0:r.isLifetimeDealer)||!1;return{store:{name:null!=(s=e.companyName)?s:"",address:null!=(a=e.streetAddress)?a:"",isUcl:e.isUcl||!1,compCode:e.compCode,isChildLocation:l.isLowestLevelChildLocation(e.compCode),isLifetimeDealer:d},emailLeads:o,phoneLeads:c,totalLeads:o+c}}.bind(this));"store"===r?y.sort((0,le.VE)(function(e){return Vr(this,n),e.store.name}.bind(this))):"emailLeads"===r?y.sort((0,le.VE)(function(e){return Vr(this,n),e.emailLeads}.bind(this))):"phoneLeads"===r?y.sort((0,le.VE)(function(e){return Vr(this,n),e.phoneLeads}.bind(this))):"totalLeads"===r&&y.sort((0,le.VE)(function(e){return Vr(this,n),e.totalLeads}.bind(this))),"desc"===s&&y.reverse();var C=y;y.length>0&&(C=y.slice(f,x));var w=void 0,N=void 0;return C.length>0?(w=(0,o.jsx)(En.v,{children:C.map(function(e,i){return Vr(this,n),(0,o.jsxs)(Dn.TR,{children:[(0,o.jsx)(Tn.TD,{align:"left",children:(0,o.jsx)(Ze,{store:e.store})}),(0,o.jsx)(Tn.TD,{align:"center",children:(0,o.jsx)(We,{integer:e.emailLeads})}),(0,o.jsx)(Tn.TD,{align:"center",children:(0,o.jsx)(We,{integer:e.phoneLeads})}),(0,o.jsx)(Tn.TD,{align:"center",children:(0,o.jsx)(We,{integer:e.totalLeads})})]},i)}.bind(this))}),N=(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"flex-end",margin:"24px 0"},children:(0,o.jsx)(On.A,{onChange:j,currentPage:d,perPageValue:p,totalItems:y.length||0,perPageOptions:[10,50,100],size:"large"})})):w=(0,o.jsx)(Br,{}),(0,o.jsxs)("div",{className:"table-padding",children:[(0,o.jsxs)(An.X,{"aria-label":"Owner Group Buyer Leads Table",children:[(0,o.jsxs)(Sn.D,{children:[(0,o.jsx)(Pn.TH,{sortDirection:b("store"),onClick:function(){return Vr(this,n),a("store")}.bind(this),children:"Store Name"}),(0,o.jsx)(Pn.TH,{width:125,sortDirection:b("emailLeads"),onClick:function(){return Vr(this,n),a("emailLeads")}.bind(this),children:"Email"}),(0,o.jsx)(Pn.TH,{width:125,sortDirection:b("phoneLeads"),onClick:function(){return Vr(this,n),a("phoneLeads")}.bind(this),children:"Phone"}),(0,o.jsx)(Pn.TH,{width:135,sortDirection:b("totalLeads"),onClick:function(){return Vr(this,n),a("totalLeads")}.bind(this),children:"Total Leads"})]}),w]}),N]})}.bind(void 0));var Br=function(){Vr(this,kr);var e=(0,le.r5)(),n={};return n.width=Math.min(e,1280),n.display="flex",n.justifyContent="center",(0,o.jsx)("div",{style:Ir({},n),children:(0,o.jsx)(Vt.A,{})})}.bind(void 0);function _r(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Ur=(0,d.PA)(function(){var e=this;_r(this,void 0);var n=(0,Nn.GY)("store","asc"),i=n.sortBy,r=n.sortDirection,a=n.toggleTableSort,d=(0,u.us)().businessUser,h=(0,g.c)().isMobile,v=(0,t.useContext)(nh),p=v.getAltChildren,m=v.altViewChildren;(0,t.useEffect)(function(){_r(this,e),p()}.bind(this),[]);var f=function(){var n=this;_r(this,e);var t="CARFAX Car Listings Buyer Leads - "+Ve.A.getDateNowFormatted()+".csv",s=[];
2m.children.forEach(function(e){if(_r(this,n),e.isUcl){var i,t,r,a=null!=(i=e.period.uclEmailLeads)?i:0,o=null!=(t=e.period.uclPhoneLeads)?t:0,l=a+o,c=(null==(r=d.findChild(e.compCode))?void 0:r.isLifetimeDealer)||!1;s.push([e.companyName,c?"Yes":"No",e.streetAddress,a,o,l])}}.bind(this));var a=s;"store"===i?a.sort((0,le.VE)(function(e){return _r(this,n),e[0]}.bind(this))):"emailLeads"===i?a.sort((0,le.VE)(function(e){return _r(this,n),e[3]}.bind(this))):"phoneLeads"===i?a.sort((0,le.VE)(function(e){return _r(this,n),e[4]}.bind(this))):"totalLeads"===i&&a.sort((0,le.VE)(function(e){return _r(this,n),e[5]}.bind(this))),"desc"===r&&a.reverse(),Ve.A.DownloadHandler(t,["Store Name","CARFAX Lifetime Dealer","Store Address","Email","Phone","Total"],a)}.bind(this),x=m.children;x.sort(Qe);var b=h?(0,o.jsx)("div",{style:{marginTop:"24px"},children:(0,o.jsx)(Lr,{togChildren:x})}):(0,o.jsx)(Fr,{childData:m,sortBy:i,sortDirection:r,toggleTableSort:a}),j=h?Ee.D.MOBILE:Ee.D.DESKTOP;return(0,o.jsxs)("div",{className:"common-components",children:[(0,o.jsx)(Ue,{title:"Buyer Leads",timespan:"Last 60 Days"}),(0,o.jsx)(Ge,{handleDownload:f,enableDownload:!0,displayFilters:!1,layout:j}),b,(0,o.jsx)(l,{children:(0,o.jsx)(c,{asOfDate:(0,s.KS)(m.updatedDate),lastDays:Vi("ucl","leads")})})]})}.bind(void 0));var Mr=i(62387),Gr=i(70585);function Hr(){return Hr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Hr.apply(null,arguments)}const zr=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsx)("svg",Hr({viewBox:"0 0 32 32",fill:"currentColor"},e,{children:(0,o.jsx)("path",{d:"M4 4v2.7h1.3l6.8 10.6H20l6.8-10.6H28V4H4zm9.3 16v8h5.4v-8h-5.4z"})}))}.bind(void 0);function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Xr.apply(null,arguments)}const Wr=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsx)("svg",Xr({viewBox:"0 0 32 32",fill:"currentColor"},e,{children:(0,o.jsx)("path",{d:"M26.5 13.4l-12-12c-.4-.4-1.1-.7-1.8-.7H3.3A2.7 2.7 0 00.7 3.3v9.4c0 .7.3 1.4.8 1.9l12 12a2.6 2.6 0 003.7 0l9.3-9.4c.5-.5.8-1.1.8-1.9 0-.7-.3-1.4-.8-1.9zm-21.2-6a2 2 0 110-4 2 2 0 010 4z"})}))}.bind(void 0);function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Yr.apply(null,arguments)}const qr=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsx)("svg",Yr({viewBox:"0 0 32 32",fill:"currentColor"},e,{children:(0,o.jsx)("path",{d:"M5.2 2.7a2.5 2.5 0 00-2.5 2.5V23c0 1.4 1.1 2.5 2.5 2.5h8.5c-.4-.8-.6-1.6-.8-2.5H5.2V7.7H23V13c.9.2 1.7.4 2.5.8V5.2c0-1.4-1.1-2.5-2.5-2.5H5.2zm2.5 8.9V14h2.6v-2.5H7.7zm5.1 0V14h7.6v-2.5h-7.6zm9 3.8a6.3 6.3 0 00-6.4 6.3c0 3.6 2.8 6.4 6.3 6.4 1.3 0 2.6-.4 3.6-1l2.3 2.2 1.7-1.7-2.3-2.3c.7-1 1-2.3 1-3.6 0-3.5-2.7-6.3-6.3-6.3zm-14 1.2v2.6h2.5v-2.6H7.7zm14 1.3c2 0 3.7 1.7 3.7 3.8 0 2.2-1.6 3.8-3.8 3.8a3.7 3.7 0 01-3.8-3.8c0-2.1 1.7-3.8 3.8-3.8z"})}))}.bind(void 0);var Zr=i(71445),Kr=i(22351),Qr=void 0;function Jr(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}function $r(e){return e||0}var es=function(e){return Jr(this,Qr),e.split(" ")[0].trim()}.bind(void 0),ns=function(e){if(Jr(this,Qr),e.length>0){var n=e.length-1,i=es(e[0].longLabel),t=es(e[n].longLabel);return i===t?t:i+" - "+t}return""}.bind(void 0),is=function(e,n){Jr(this,Qr);var i=e.replace(" ","x"),t=document.querySelectorAll('[seriesName="'+i+'"]'),r=t[t.length-1];if(r)for(var s=r.children,a=0;a<s.length;a++)s[a].setAttribute("fill",n)}.bind(void 0),ts=function(e,n,i){Jr(this,Qr);var t=e.replace(" ","x"),r=document.querySelectorAll('[seriesName="'+t+'"]'),s=r[r.length-1];if(s)for(var a=s.children,o=0;o<a.length;o++)o===i?a[o].setAttribute("fill",n):a[o].setAttribute("fill",rs(n,20))}.bind(void 0),rs=function(e,n){return Jr(this,Qr),e+ss(n)}.bind(void 0),ss=function(e){Jr(this,Qr);var n=Math.max(0,Math.min(100,e));return Math.round(n/100*255).toString(16).padStart(2,"0").toUpperCase()}.bind(void 0),as=function(e,n){return Jr(this,Qr),parseInt((e/n*100).toFixed(0))}.bind(void 0),os=function(e,n){Jr(this,Qr);return"left"===n?e-404:e+24}.bind(void 0),ls=function(e){Jr(this,Qr);var n={height:0,width:0},i=document.getElementById(e);i&&(n={height:parseInt(i.style.height.replace("px","")),width:parseInt(i.style.width.replace("px",""))});return n}.bind(void 0),cs=function(e,n,i){return Jr(this,Qr),Math.min(Math.max(e,n),i)}.bind(void 0),ds=function(e){Jr(this,Qr);var n=(0,le.r5)()-380;return cs(e,0,n)}.bind(void 0),us=(function(e,n,i){return Jr(this,Qr),i<38||i>ls(e).height-48||n<14}.bind(void 0),function(e){var n=this;Jr(this,Qr);var i=!1;return e.map(function(e){Jr(this,n),e&&e>0&&(i=!0)}.bind(this)),i}.bind(void 0)),hs=function(){Jr(this,Qr);var e=window.devicePixelRatio||1,n=window.screen.width*e,i=window.screen.height*e;return 2048===n&&2732===i||2732===n&&2048===i||1536===n&&2048===i||2048===n&&1536===i}.bind(void 0);function vs(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ps=function(e){return vs(this,void 0),"Used"===e?"ucl":"New"===e?"ncl":"ccl"}.bind(void 0),ms=function(e,n){var i=this;void 0===n&&(n="ucl");var t=e.period,r=function(e){return vs(this,i),t[""+n+e]}.bind(this);return{updatedDate:e.updatedDate,hasNewInventory:e.hasNewInventory,hasUsedInventory:e.hasUsedInventory,current:e.current,series:e.series,period:{isUcl:t.isUcl,uclIcrClicks:t.uclIcrClicks,uclRetargetImpressions:t.uclRetargetImpressions,uclRetargetClicks:t.uclRetargetClicks,cars:r("Cars"),visitors:r("Visitors"),srpImpressions:r("SrpImpressions"),vdpViews:r("VdpViews"),vdpActions:r("VdpActions"),emailLeads:r("EmailLeads"),emailLeadsPercent:r("EmailLeadsPercent"),phoneShares:r("PhoneShares"),phoneSharesPercent:r("PhoneSharesPercent"),emailShares:r("EmailShares"),emailSharesPercent:r("EmailSharesPercent"),phoneLeads:r("PhoneLeads"),phoneLeadsPercent:r("PhoneLeadsPercent"),mapClicks:r("MapClicks"),mapClicksPercent:r("MapClicksPercent"),dealerWebsiteClicks:r("DealerWebsiteClicks"),dealerWebsiteClicksPercent:r("DealerWebsiteClicksPercent"),savedCars:r("SavedCars"),emailLeadsCarfaxWebsite:r("EmailLeadsCarfaxWebsite"),emailLeadsDealerWebsite:r("EmailLeadsDealerWebsite"),emailLeadsPartnerWebsite:r("EmailLeadsPartnerWebsite")}}},fs=i(53404),xs=i(78394),bs=void 0;function js(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var gs=function(e){switch(js(this,bs),e){case xs.Y5.USED:return"Used";case xs.Y5.NEW:return"New";default:return"All Listings"}}.bind(void 0),ys=function(e){switch(js(this,bs),e){case"Used":return xs.Y5.USED;case"New":return xs.Y5.NEW;case"All Listings":return}}.bind(void 0),Cs=function(e){switch(js(this,bs),e){case"Used Cars":return"Used";case"New Cars":return"New";default:return e}}.bind(void 0),ws=void 0;function Ns(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var As=(0,t.createContext)({cclSelection:"All Listings",setCclSelection:function(){Ns(this,ws)}.bind(void 0)});const Ss=function(e){var n=this;Ns(this,ws);var i=e.children,r=(0,t.useState)("All Listings"),s=r[0],a=r[1],l={cclSelection:s,setCclSelection:function(e){Ns(this,n),a(Cs(e))}.bind(this)};return(0,o.jsx)(As.Provider,{value:l,children:i})}.bind(void 0);var Ps=i(59416),Es=i(65848),Ds=void 0;function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Ts.apply(null,arguments)}function Os(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Rs=function(e){Os(this,Ds);var n=e.title,i=e.value;return(0,o.jsxs)("div",{className:"charts-stats-item",children:[(0,o.jsx)("div",{className:"charts-stats-title",children:n}),(0,o.jsx)("div",Ts({className:"charts-stats-value"},Hn.f,{children:i}))]})}.bind(void 0),Ls=function(e){Os(this,Ds);var n=e.stats;return(0,o.jsxs)("div",{className:"statistics",children:[(0,o.jsx)("div",{className:"current-inventory",children:"Current Inventory"}),(0,o.jsx)("div",{className:"chart-stats-col",children:n})]})}.bind(void 0),ks=function(e){Os(this,Ds);var n=e.title,i=e.description,t=e.cclSelection,r=(0,o.jsxs)("div",{className:"chart-title",children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used: "}),n]}),s="All Listings"===t&&(0,o.jsx)("div",{className:"used-cars-badge",children:"USED CARS ONLY"});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[r,s]}),(0,o.jsx)("p",{className:"chart-description",children:i})]})}.bind(void 0),Is=function(e){Os(this,Ds);var n=e.stats;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"chart-stats-row",children:[n,(0,o.jsx)("div",{className:"current-inventory",children:"CURRENT INVENTORY"})]})})}.bind(void 0),Vs=function(e){Os(this,Ds);var n=e.title,i=e.description,t=e.cclSelection,r=e.isOwnerGroup,s=(0,o.jsxs)("p",{className:"chart-title",children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used: "}),n]}),a="All Listings"===t&&(0,o.jsx)("div",{className:"used-cars-badge",children:"USED CARS ONLY"}),l=(0,o.jsx)("div",{children:(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",columnGap:"24px"},children:[(0,o.jsx)("p",{className:"chart-description",children:i}),a]})}),c=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:"4px"},children:[s,a]}),(0,o.jsx)("p",{className:"chart-description",children:i})]}),d=r?l:c;return(0,o.jsx)(o.Fragment,{children:d})}.bind(void 0),Fs=function(e){Os(this,Ds);var n=e.stats;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"chart-stats-row",children:[n,(0,o.jsx)("div",{className:"current-inventory",children:"CURRENT INVENTORY"})]})})}.bind(void 0),Bs=(function(e){Os(this,Ds);var n=e.visible,i=e.offsetX,t=e.offsetY,r=e.children,s=cs(i,0,i);return(0,o.jsx)("div",{style:{display:n?"block":"none",position:"fixed",left:s,top:t},children:r})}.bind(void 0),void 0);function _s(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Us=function(e){_s(this,Bs);var n=e.seriesItem,i=e.accidentSeriesShow,t=e.oneOwnerSeriesShow,r=e.personalSeriesShow,s=e.serviceSeriesShow;if(!n)return(0,o.jsx)(o.Fragment,{});var a=qs,l=Zs,c=Ks,d=Qs;return(0,le.r5)()<385&&(a="No Accident",l="1 Owner",c="Personal",d="Service"),(0,o.jsxs)("div",{id:"history-breakdown-chart-tooltip",className:"history-breakdown-chart-tooltip-container",children:[(0,o.jsx)("div",{className:"tooltip-header",children:n.longLabel}),(0,o.jsx)("div",{className:"tooltip-title",children:"CARFAX History Breakdown"}),(0,o.jsxs)("table",{className:"history-breakdown-tooltip",children:[(0,o.jsx)(Ms,{header1:"Vehicles in",header2:"%of your total"}),(0,o.jsx)(Ms,{header1:"your inventory",header2:"inventory"}),(0,o.jsxs)("tbody",{children:[(0,o.jsx)(Gs,{tableRowAttributes:{markerColor:cn.A["blue-dark"],labelText:a,value:i?n.uclNoAccidentCars:void 0,percentage:i?n.uclNoAccidentCarsPercent:void 0}}),(0,o.jsx)(Gs,{tableRowAttributes:{markerColor:cn.A.yellow,labelText:l,value:t?n.uclOneOwnerCars:void 0,percentage:t?n.uclOneOwnerCarsPercent:void 0}}),(0,o.jsx)(Gs,{tableRowAttributes:{markerColor:cn.A.orange,labelText:c,value:r?n.uclPersonalUseCars:void 0,percentage:r?n.uclPersonalUseCarsPercent:void 0}}),(0,o.jsx)(Gs,{tableRowAttributes:{markerColor:cn.A.purple,labelText:d,value:s?n.uclServiceRecordCars:void 0,percentage:s?n.uclServiceRecordCarsPercent:void 0}})]})]})]})}.bind(void 0),Ms=function(e){_s(this,Bs);var n=e.header1,i=e.header2;return(0,le.r5)()<385?(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{}),(0,o.jsx)("th",{children:i})]}):(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{}),(0,o.jsx)("th",{children:n}),(0,o.jsx)("th",{children:i})]})}.bind(void 0),Gs=function(e){_s(this,Bs);var n=e.tableRowAttributes;if(n.value&&n.value>0){var i=(0,o.jsx)("div",{className:"marker__label-hist",style:{backgroundColor:n.markerColor}}),t=n.percentage?n.percentage:"-",r=n.value?n.value:"-",s=n.labelText+" ("+r+")";return(0,le.r5)()<385?(0,o.jsxs)("tr",{children:[(0,o.jsxs)("td",{children:[i," ",s]}),(0,o.jsxs)("td",{children:[t,"%"]})]}):(0,o.jsxs)("tr",{children:[(0,o.jsxs)("td",{children:[i," ",n.labelText]}),(0,o.jsx)("td",{children:r}),(0,o.jsxs)("td",{children:[t,"%"]})]})}return(0,o.jsx)(o.Fragment,{})}.bind(void 0),Hs=void 0;function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},zs.apply(null,arguments)}function Xs(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Ws="CARFAX History Breakdown",Ys="Get your inventory breakdown in four main areas of vehicle history at-a-glance.",qs="No Accident/Damage",Zs="CARFAX 1-Owner",Ks="Personal Use",Qs="Service Records";const Js=function(e){Xs(this,Hs);var n=e.data,i=e.layout,t=e.isOwnerGroup,r=e.isExpanderContent,s=e.cclSelection,a=t?"--tog":"",l="Day";if(n.series[0]){var c=parseInt(n.series[0].label,10);isNaN(c)&&(l="Month")}var d=r?"cfx-card__header-expander":"cfx-card__header",u=r?"cfx-card__body-expander":"cfx-card__body",h=void 0,v=void 0;return i===Ee.D.MOBILE?v=(0,o.jsxs)("div",{className:u,children:[(0,o.jsx)(Ls,{stats:(0,o.jsx)($s,{data:n})}),(0,o.jsx)(ea,{seriesData:n.series,layout:i,dataBy:l})]}):i===Ee.D.TABLET?(h=(0,o.jsx)("div",{className:d,children:(0,o.jsx)(Vs,{title:Ws,description:Ys,cclSelection:s,isOwnerGroup:t})}),v=(0,o.jsxs)("div",{className:"cfx-card__body",children:[(0,o.jsx)(Fs,{stats:(0,o.jsx)($s,{data:n})}),(0,o.jsx)(ea,{seriesData:n.series,layout:i,dataBy:l})]})):(h=(0,o.jsx)("div",{className:"cfx-card__header",children:(0,o.jsx)(ks,{title:Ws,description:Ys,cclSelection:s})}),v=(0,o.jsxs)("div",{className:"cfx-card__body",children:[(0,o.jsx)(Is,{stats:(0,o.jsx)($s,{data:n})}),(0,o.jsx)(ea,{seriesData:n.series,layout:i,dataBy:l})]})),(0,o.jsxs)("div",zs({className:"ucl-trending-chart-wrapper cfx-card-full-width--"+i+a},{"data-event":"view","data-category":"module","data-action":"carfax history breakdown"},{children:[h,v]}))}.bind(void 0);var $s=function(e){Xs(this,Hs);var n=e.data,i=n.current.uclNoAccidentCarsPercent?n.current.uclNoAccidentCarsPercent+"%":"-",t=n.current.uclNoAccidentCarsPercent?n.current.uclOneOwnerCarsPercent+"%":"-",r=n.current.uclNoAccidentCarsPercent?n.current.uclPersonalUseCarsPercent+"%":"-",s=n.current.uclNoAccidentCarsPercent?n.current.uclServiceRecordCarsPercent+"%":"-";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Rs,{title:qs,value:i}),(0,o.jsx)(Rs,{title:Zs,value:t}),(0,o.jsx)(Rs,{title:Ks,value:r}),(0,o.jsx)(Rs,{title:Qs,value:s})]})}.bind(void 0),ea=function(e){var n=this;Xs(this,Hs);var i=e.seriesData,r=e.layout,s=e.dataBy,a=(0,t.useState)(!0),l=a[0],c=a[1],d=(0,t.useState)(!0),u=d[0],h=d[1],v=(0,t.useState)(!0),p=v[0],m=v[1],f=(0,t.useState)(!0),x=f[0],b=f[1],j=i.map(function(e){return Xs(this,n),e.uclNoAccidentCarsPercent}.bind(this)),g=i.map(function(e){return Xs(this,n),e.uclOneOwnerCarsPercent}.bind(this)),y=i.map(function(e){return Xs(this,n),e.uclPersonalUseCarsPercent}.bind(this)),C=i.map(function(e){return Xs(this,n),e.uclServiceRecordCarsPercent}.bind(this)),w=i.map(function(e){return Xs(this,n),e.label}.bind(this)),N=[{name:qs,data:j,color:cn.A["blue-dark"]},{name:Zs,data:g,color:cn.A.yellow},{name:Ks,data:y,color:cn.A.orange},{name:Qs,data:C,color:cn.A.purple}],A=r===Ee.D.MOBILE,S=A?6:30,P=A?5:10,E=A?"":"Breakdown of Vehicle History Highlights by "+s,D={chart:{id:"history-breakdown-trending-chart",toolbar:{show:!1},zoom:{enabled:!1},events:{legendClick:function(e,n,i){var t=i.config.series[n];if(t){var r=t.name,s=t.data.length;r===qs?c(!s):r===Zs?h(!s):r===Ks?m(!s):r===Qs&&b(!s)}}},animations:{enabled:!1,animateGradually:{enabled:!1},dynamicAnimation:{enabled:!1}}},stroke:{curve:hs()?"straight":"smooth",width:3},title:{text:E,align:"center"},grid:{borderColor:cn.A["grey-light"]},markers:{size:4,shape:"circle",strokeWidth:3,strokeColors:[cn.A["blue-dark"],cn.A.yellow,cn.A.orange,cn.A.purple],colors:"white"},xaxis:{tickAmount:S,categories:w,title:{text:ns(i),style:{color:cn.A.black,fontSize:"14px",fontFamily:"Roboto",fontWeight:400},offsetY:93},labels:{rotate:0,rotateAlways:!1}},yaxis:{tickAmount:P,min:0,max:100,labels:{show:!0,align:"right",formatter:function(e){return Xs(this,n),e+"%"}.bind(this),offsetX:-28}},legend:{position:"bottom",horizontalAlign:"left",offsetX:-5,offsetY:7,fontSize:"14px",fontFamily:"Roboto",fontWeight:400,itemMargin:{horizontal:10},markers:{size:4,strokeWidth:3,shape:"circle"}},tooltip:{enabled:!0,followCursor:!0,custom:function(e){e.series,e.seriesIndex;var n=e.dataPointIndex,t=(e.w,i[n].uclNoAccidentCars&&i[n].uclOneOwnerCars&&i[n].uclPersonalUseCars&&i[n].uclServiceRecordCars&&i[n].uclNoAccidentCarsPercent&&i[n].uclOneOwnerCarsPercent&&i[n].uclPersonalUseCarsPercent&&i[n].uclServiceRecordCarsPercent);if(i.length>0&&t){var r=(0,o.jsx)(Us,{seriesItem:i[n],accidentSeriesShow:l,oneOwnerSeriesShow:u,personalSeriesShow:p,serviceSeriesShow:x});return Es.renderToStaticMarkup(r).toString()}return""}}},T=A?-260:-215,O=A?84:96,R=cs((0,le.r5)()-O,0,1200)/2-60,L=us(j)||us(g)||us(y)||us(C),k=!(l||u||p||x)?"No Data":L?"":"No Data Available";return(0,o.jsxs)("div",{id:"history-breakdown-chart-container",className:"apex-line-chart-wrapper",children:[(0,o.jsx)(Ps.A,zs({id:"history-breakdown-trending-apex-chart",options:D,series:N,type:"line",height:350},Hn.f)),(0,o.jsx)("div",{className:"unavailable",style:{display:"inline",top:T+"px",left:R+"px"},children:k})]})}.bind(void 0),na=i(64976),ia=i(78837),ta=["columns"];function ra(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return sa(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?sa(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sa(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=Array(n);i<n;i++)t[i]=e[i];return t}
2function aa(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},oa.apply(null,arguments)}function la(e){var n=oa({columnGroups:[{columns:e.columns}]},function(e,n){if(null==e)return{};var i={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(-1!==n.indexOf(t))continue;i[t]=e[t]}return i}(e,ta));return(0,o.jsx)(ca,oa({},n))}var ca=function(e){var n=this;aa(this,void 0);var i=e.columnGroups,r=e.rowData,s=e.emptyView,a=e.paginate,l=e.initSort,c=e.pagerLocation,d=e.className,u=e.results,h=e.freezeScroll,v=e.currentPage,p=(0,t.useState)(l||{key:i[0].columns[0].key,direction:"asc"}),m=p[0],f=p[1],x=(0,t.useState)(v||1),b=x[0],j=x[1],g=(0,t.useState)(10),y=g[0],C=g[1],w=(0,t.useState)(r||[]),N=w[0],A=w[1],S=(0,t.useRef)(null);function P(e){var n=this,t=[];return i.forEach(function(i){var r=this;aa(this,n),i.columns.forEach(function(n){return aa(this,r),t.push(e(i,n))}.bind(this))}.bind(this)),t}(0,t.useEffect)(function(){aa(this,n),H(m.key,m.direction),r&&A(r)}.bind(this),[r,m]);var E=function(){aa(this,n);var e=(null==c?void 0:c.top)||!1;if(e||u)return(0,o.jsxs)("div",{className:"table-header",children:[u&&(0,o.jsx)("div",{className:"results-text",children:u}),e&&T("HEADER")]})}.bind(this),D=function(){aa(this,n);var e=N&&0===N.length,i=((null==c?void 0:c.bottom)||!1)&&T("FOOTER"),t=e&&_();return(0,o.jsxs)(o.Fragment,{children:[i,t]})}.bind(this),T=function(e){aa(this,n);var i=N&&N.length||0,t=!!a&&i>0,r="table-paginator-"+e.toLocaleLowerCase()+"-"+Math.random();return(0,o.jsx)("div",{className:"table-pager",children:t&&(0,o.jsx)(On.A,{onChange:O,currentPage:b||0,perPageValue:y,totalItems:i,"aria-label":r,tooltipTheme:"light",ref:S,size:"large"})})}.bind(this),O=function(e){aa(this,n);var i=null==S?void 0:S.current;h&&i&&i.scrollIntoView(!1),j(e.currentPage),C(e.perPageValue)}.bind(this),R=function(){var e=this;function t(e){var n=e.width?{style:{width:e.width}}:{};return e.className&&(n.className=e.className),(0,o.jsx)("col",oa({},n),e.key)}return aa(this,n),i.map(function(n,i){return aa(this,e),(0,o.jsx)("colgroup",{className:n.className,children:n.columns.map(t)},i)}.bind(this))}.bind(this),L=function(){aa(this,n);var e=i.length>1||i[0].label;return(0,o.jsxs)("thead",oa({},e?{className:"multi-level-headers"}:{},{role:"rowgroup",children:[e&&(0,o.jsx)("tr",{className:"group-header-row",role:"row",children:k()}),(0,o.jsx)("tr",{className:"header-row",children:I()})]}))}.bind(this),k=function(){var e=this;return aa(this,n),i.map(function(n,i){aa(this,e);var t=n.headerClassName?{className:n.headerClassName}:{};return(0,o.jsx)("th",oa({},t,{colSpan:n.columns.length,role:"columnheader",children:n.label}),i)}.bind(this))}.bind(this),I=function(){var e=this;return aa(this,n),P(function(n,i){var t=this;aa(this,e);var r=[],s={};i.headerClassName&&r.push(i.headerClassName),n.label&&r.push("second-level-header"),i.sortable?(r.push("sortable"),m.key===i.key&&r.push("active"),s.onClick=function(e){return aa(this,t),U(i.key)}.bind(this),s.onKeyDown=function(e){aa(this,t),"Enter"!==e.key&&" "!==e.key||U(i.key)}.bind(this),s.tabIndex="0",s.role="button"):s.role="columnheader",r.length&&(s.className=r.join(" "));var a={display:"flex",flexDirection:"row",justifyContent:"flex-start"};return i.verticalOffset&&(a.position="relative",a.bottom=i.verticalOffset),(0,o.jsx)("th",oa({},s,{children:(0,o.jsxs)("div",{style:oa({},a),children:[i.label,"Â ",(0,o.jsx)("div",{style:{display:"flex",alignItems:"center"},children:i.sortable&&M(m.direction)})]})}),i.key)}.bind(this))}.bind(this),V=function(){aa(this,n);var e=(b-1)*y,i=e+y;return(N||[]).slice(e,i)}.bind(this),F=function(){var e=this;aa(this,n);var i=a?V():N;return(0,o.jsx)("tbody",{role:"rowgroup",children:i&&i.map(function(n,i){return aa(this,e),(0,o.jsx)("tr",{role:"row",children:B(n,i)},i)}.bind(this))})}.bind(this),B=function(e,i){var t=this;return aa(this,n),P(function(n,i){aa(this,t);var r=e[i.key],s=i.CellRenderer?(0,o.jsx)(i.CellRenderer,oa({},r)):r;return(0,o.jsx)("td",{role:"cell",children:s},i.key)}.bind(this))}.bind(this),_=function(){return aa(this,n),s||(0,o.jsx)(Vt.A,{})}.bind(this),U=function(e){aa(this,n);var i="asc";m.key===e&&(i="desc"===m.direction?"asc":"desc"),f({key:e,direction:i}),H(e,i)}.bind(this),M=function(e){return aa(this,n),"asc"===e?(0,o.jsx)(na.A,{title:" descending","aria-label":"descending"}):(0,o.jsx)(ia.A,{title:" ascending","aria-label":"ascending"})}.bind(this),G=function(e){aa(this,n);for(var t,r=ra(i);!(t=r()).done;)for(var s,a=ra(t.value.columns);!(s=a()).done;){var o=s.value;if(o.key===e)return o}}.bind(this),H=function(e,i){var t=this;aa(this,n);var r=G(e);
2if(r){var s=function(n,i){var r,s;aa(this,t);var a=null!=(r=n[e])?r:-1,o=null!=(s=i[e])?s:-1;return a<o?-1:a>o?1:0}.bind(this),a=N||[];a.sort(r.sortFunction||s),"desc"===i&&a.reverse(),A(a),j(1)}}.bind(this),z=" table-component "+(d||"");return(0,o.jsxs)("div",{className:z,children:[E(),(0,o.jsxs)("table",{role:"table",children:[R(),L(),F()]}),D()]})}.bind(void 0);var da=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.categoryName,i=e.categoryValues,t=e.shouldCompressCategory,r=i.inventory,s=i.totalPercentage;return(0,o.jsxs)("div",{className:"performance-tog__mobile-card-table--breakdown-item",children:[(0,o.jsx)("h3",{className:"performance-tog__mobile-card-table--breakdown-item--category","data-shouldcompress":t,children:n}),(0,o.jsxs)("div",{className:"performance-tog__mobile-card-table--breakdown-item--subcategories",children:[(0,o.jsx)(ln,{categoryName:"Inventory",categoryValue:r}),(0,o.jsx)(ln,{categoryName:"% Total",categoryValue:s})]})]})}.bind(void 0),ua=void 0;function ha(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var va=function(){return ha(this,ua),(0,le.r5)()<374?"No Accident/Dmg":"No Accident/Damage"}.bind(void 0),pa=function(e){var n=this;ha(this,ua);var i=e.togChildren,r=e.trendData,s=e.layout,a=e.cclSelection,l=i.length,c=(0,t.useState)(0),d=c[0],u=c[1],h=(0,t.useState)(!0),v=h[0],p=h[1],m=(0,t.useState)(va()),f=m[0],x=m[1];window.addEventListener("resize",function(){ha(this,n),x(va())}.bind(this));var b=i.slice(d,d+10),j=function(e){ha(this,n),u(e)}.bind(this),g=function(){ha(this,n),p(!v)}.bind(this),y=b.map(function(e){var i=this;ha(this,n);var t=e.companyName,r=e.compCode,s=Pr(e.current),a={inventory:s.uclNoAccidentCars,totalPercentage:s.uclNoAccidentCarsPercent},l={inventory:s.uclOneOwnerCars,totalPercentage:s.uclOneOwnerCarsPercent},c={inventory:s.uclPersonalUseCars,totalPercentage:s.uclPersonalUseCarsPercent},d={inventory:s.uclServiceRecordCars,totalPercentage:s.uclServiceRecordCarsPercent},u=function(){return ha(this,i),Ie.A.handleStoreNameOnClick(r,t||"")}.bind(this);return(0,o.jsxs)(tn,{child:e,dealershipName:t,numColumns:4,onClick:u,children:[(0,o.jsx)(da,{categoryName:f,categoryValues:a,shouldCompressCategory:!0}),(0,o.jsx)(da,{categoryName:"CARFAX 1-Owner",categoryValues:l}),(0,o.jsx)(da,{categoryName:"Personal Use",categoryValues:c}),(0,o.jsx)(da,{categoryName:"Service Records",categoryValues:d})]},r)}.bind(this)),C=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings: Used: "}),"CARFAX History Breakdown"]}),w=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings: Used: "}),(0,o.jsx)("div",{children:"CARFAX History Breakdown "})]}),N=s===Ee.D.MOBILE?w:C,A=s===Ee.D.MOBILE?{borderTop:"1px solid #BDBDBD"}:void 0;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(fi.n,{border:"contained",className:"ucl-tog-mobile-segment",children:(0,o.jsxs)(xi.c,{id:"HistoryBreakdownExpander",open:v,children:[(0,o.jsx)(bi.b,{onClick:g,children:N}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:A,children:[(0,o.jsx)(Js,{data:r,layout:s,isExpanderContent:!0,isOwnerGroup:!0,cclSelection:a}),(0,o.jsxs)("div",{className:"activity-by-location",children:[(0,o.jsx)("p",{children:"Activity by location"}),(0,o.jsx)("p",{className:"current-inventory",children:"CURRENT INVENTORY"})]}),y,(0,o.jsx)(on,{startIndex:d,totalCount:l,handlePageChange:j})]})})]})}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})}.bind(void 0);function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},ma.apply(null,arguments)}function fa(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const xa=(0,d.PA)(function(e){var n=this;fa(this,void 0);var i,t=e.freezeScroll,r=e.trendData,s=e.childData,a=e.isDesktop,l=e.cclSelection,c=(0,u.us)().businessUser;s.children.sort(Qe);var d=[];s.children.map(function(e){fa(this,n),e.isUcl&&d.push(e)}.bind(this));var h=Ve.A.participatingLocationsOnly?d:s.children;if(a){var v=function(e){return fa(this,n),{key:e,label:"Inventory",sortable:!0,CellRenderer:ze,sortFunction:Je(e),className:"history-breakdown-inventory-column"}}.bind(this),p=function(e){return fa(this,n),{key:e,label:"% Total",sortable:!0,CellRenderer:ze,sortFunction:Je(e),className:"history-breakdown-percent-column"}}.bind(this),m={columnGroups:[{columns:[{key:"store",label:"Store Name",sortable:!0,CellRenderer:Ze,sortFunction:Qe,verticalOffset:"12px"}]},{label:"No Accident/Damage",columns:[v("uclNoAccidentCars"),p("uclNoAccidentCarsPercent")]},{label:"CARFAX 1-Owner",columns:[v("uclOneOwnerCars"),p("uclOneOwnerCarsPercent")]},{label:"Personal Use",columns:[v("uclPersonalUseCars"),p("uclPersonalUseCarsPercent")]},{label:"Service Records",columns:[v("uclServiceRecordCars"),p("uclServiceRecordCarsPercent")]}],paginate:!0,rowData:h.map(function(e){var i;fa(this,n);var t=(null==(i=c.findChild(e.compCode))?void 0:i.isLifetimeDealer)||!1,r=Pr(e.current),s=r.uclNoAccidentCars,a=r.uclNoAccidentCarsPercent,o=r.uclOneOwnerCars,l=r.uclOneOwnerCarsPercent,d=r.uclPersonalUseCars,u=r.uclPersonalUseCarsPercent,h=r.uclServiceRecordCars,v=r.uclServiceRecordCarsPercent;return{store:{store:{name:e.companyName,address:e.streetAddress,isUcl:e.isUcl,compCode:e.compCode,isChildLocation:c.isLowestLevelChildLocation(e.compCode),isLifetimeDealer:t}},uclNoAccidentCars:Xe(s),uclServiceRecordCars:Xe(h),uclOneOwnerCars:Xe(o),uclPersonalUseCars:Xe(d),uclNoAccidentCarsPercent:Xe(a),uclServiceRecordCarsPercent:Xe(v),uclOneOwnerCarsPercent:Xe(l),uclPersonalUseCarsPercent:Xe(u)}}.bind(this)),initSort:{key:"store",direction:"asc"},pagerLocation:{top:!1,bottom:!0},freezeScroll:t};i=(0,o.jsxs)("div",{className:"perfomance-tog-section",children:[(0,o.jsx)(Js,{data:r,layout:X.A.ui.navigation.layout,isOwnerGroup:!0,isExpanderContent:!0,cclSelection:l}),(0,o.jsxs)("div",{className:"activity-by-location",children:[(0,o.jsx)("p",{children:"Activity by location"}),(0,o.jsx)("span",{className:"current-inventory",children:"CURRENT INVENTORY"})]}),(0,o.jsx)(ca,ma({},m))]})}else i=(0,o.jsx)(pa,{togChildren:h,layout:X.A.ui.navigation.layout,trendData:r,cclSelection:l});return i}.bind(void 0));function ba(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ja=function(e){var n=this;ba(this,void 0);var i=e.togChildren,r=e.titlePrefix,s=e.layout,a=e.cclSelection,l=i.length,c=(0,t.useState)(0),d=c[0],u=c[1],h=(0,t.useState)(!0),v=h[0],p=h[1],m=i.slice(d,d+10),f=function(e){ba(this,n),u(e)}.bind(this),x=function(){ba(this,n),p(!v)}.bind(this),b=m.map(function(e){var i=this;ba(this,n);var t=e.companyName,r=e.compCode,l=Dr(e.period),c=l.cars,d=l.visitors,u=l.srpImpressions,h=l.vdpViews,v=l.uclIcrClicks,p=function(){return ba(this,i),Ie.A.handleStoreNameOnClick(r,t||"")}.bind(this),m=function(){return ba(this,i),null}.bind(this),f=e.isUcl?p:m,x="New"===a?void 0:(0,o.jsx)(ln,{categoryName:"Report requests",categoryValue:v,spansTwoColumns:!0}),b=s===Ee.D.MOBILE?3:5;return(0,o.jsxs)(tn,{child:e,dealershipName:t,numColumns:b,onClick:f,children:[(0,o.jsx)(ln,{categoryName:"Inventory",categoryValue:c}),(0,o.jsx)(ln,{categoryName:"Views",categoryValue:d}),(0,o.jsx)(ln,{categoryName:"Search results",categoryValue:u,shouldCompressCategory:!0}),(0,o.jsx)(ln,{categoryName:"VDP Views",categoryValue:h}),x]},r)}.bind(this)),j=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:r}),"Inventory Exposure"]}),g=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:r}),(0,o.jsx)("p",{children:"Inventory Exposure"})]}),y=s===Ee.D.MOBILE?g:j;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"mobile-card-gap"}),(0,o.jsx)("a",{id:"inventory-exposure-section",className:"jump-anchor"}),(0,o.jsx)(fi.n,{border:"contained",className:"ucl-tog-mobile-segment",children:(0,o.jsxs)(xi.c,{id:"InventoryExposureExpander",open:v,children:[(0,o.jsx)(bi.b,{onClick:x,children:y}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:{borderTop:"1px solid #BDBDBD"},children:[b,(0,o.jsx)(on,{startIndex:d,totalCount:l,handlePageChange:f})]})})]})}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})}.bind(void 0);function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},ga.apply(null,arguments)}function ya(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Ca=(0,d.PA)(function(e){var n=this;ya(this,void 0);var i,t=e.freezeScroll,r=e.childData,s=e.isDesktop,a=e.titlePrefix,l=e.cclSelection,c=(0,u.us)().businessUser,d=(0,g.c)(),h=d.isMobile,v=d.layout;r.children.sort(Qe);var p=[];r.children.map(function(e){ya(this,n),e.isUcl&&p.push(e)}.bind(this));var m=Ve.A.participatingLocationsOnly?p:r.children;if(s){var f=[{key:"store",label:"Store Name",sortable:!0,CellRenderer:Ze,sortFunction:Qe},{key:"inventory",label:"Inventory",sortable:!0,width:"100px",CellRenderer:ze,sortFunction:Je("inventory")},{key:"views",label:"Views",sortable:!0,width:"80px",CellRenderer:ze,sortFunction:Je("views")},{key:"searchResults",label:"Search Results",sortable:!0,width:"120px",CellRenderer:ze,sortFunction:Je("searchResults")},{key:"vdpViews",label:"VDP Views",sortable:!0,width:"100px",CellRenderer:ze,sortFunction:Je("vdpViews")}];"New"!==l&&f.push({key:"reportRequests",label:"Report Requests",sortable:!0,width:"150px",CellRenderer:ze,sortFunction:Je("reportRequests")});var x={columns:f,paginate:!0,rowData:m.map(function(e){var i;ya(this,n);var t=(null==(i=c.findChild(e.compCode))?void 0:i.isLifetimeDealer)||!1,r=Dr(e.period),s=r.cars,a=r.visitors,o=r.srpImpressions,d=r.vdpViews,u=r.uclIcrClicks,h={store:{store:{name:e.companyName,address:e.streetAddress,isUcl:e.isUcl,compCode:e.compCode,isChildLocation:c.isLowestLevelChildLocation(e.compCode),isLifetimeDealer:t}},inventory:Xe(s),views:Xe(a),searchResults:Xe(o),vdpViews:Xe(d)};return"New"!==l&&(h.reportRequests=Xe(u)),h}.bind(this)),initSort:{key:"store",direction:"asc"},pagerLocation:{top:!1,bottom:!0},freezeScroll:t},b=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:a}),(0,o.jsx)("b",{children:"Inventory Exposure"})]}),j=h?(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:a}),(0,o.jsx)("p",{children:(0,o.jsx)("b",{children:"Inventory Exposure"})})]}):b;i=(0,o.jsxs)("div",{className:"perfomance-tog-section",children:[(0,o.jsx)("a",{id:"inventory-exposure-section",className:"jump-anchor"}),(0,o.jsx)("div",{className:"section-text-container",children:(0,o.jsx)("div",{className:"title",children:j})}),(0,o.jsx)(la,ga({},x))]})}else i=(0,o.jsx)(ja,{togChildren:m,titlePrefix:a,layout:v,cclSelection:l});return i}.bind(void 0));var wa=void 0;function Na(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Aa=function(e){Na(this,wa);var n=e.seriesData,i=e.isGreatSeriesDisplay,t=e.isGoodSeriesDisplay,r=e.isFairSeriesDisplay,s=e.isNoneSeriesDisplay,a=e.offsetX,l=e.offsetY,c=i&&(null==n?void 0:n.uclGreatBadgeCars)||0,d=t&&(null==n?void 0:n.uclGoodBadgeCars)||0,u=r&&(null==n?void 0:n.uclFairBadgeCars)||0,h=s&&(null==n?void 0:n.uclOtherBadgeCars)||0,v=c+d+u+h,p=c?as(c,v):0,m=d?as(d,v):0,f=u?as(u,v):0,x=h?as(h,v):0,b="Your Vehicles with CARFAX Value Badges ("+v+")",j=pl,g=vl,y=hl,C=ul;(0,le.r5)()<350&&(b="Vehicles with CARFAX Value Badges ("+v+")",j="None",g="Fair",y="Good",C="Great");var w=cs(a,0,a);return n?(0,o.jsxs)("div",{id:"value-badge-chart-tooltip",className:"value-badge-chart-tooltip-container",style:{position:"fixed",left:w,top:l},children:[(0,o.jsx)("div",{className:"tooltip-header",children:n.longLabel}),(0,o.jsx)("div",{className:"tooltip-title",children:b}),(0,o.jsxs)("div",{className:"tooltip-data-container",children:[(0,o.jsx)("div",{className:"tooltip-graph",children:(0,o.jsx)(Sa,{wedge1:{percent:x,color:cn.A.purple},wedge2:{percent:f,color:cn.A.orange},wedge3:{percent:m,color:cn.A.yellow},wedge4:{percent:p,color:cn.A["blue-dark"]}})}),(0,o.jsx)("table",{className:"tooltip-table",children:(0,o.jsxs)("tbody",{children:[(0,o.jsx)(Pa,{markerColor:cn.A.purple,labelText:j,value:h,percentage:x}),(0,o.jsx)(Pa,{markerColor:cn.A.orange,labelText:g,value:u,percentage:f}),(0,o.jsx)(Pa,{markerColor:cn.A.yellow,labelText:y,value:d,percentage:m}),(0,o.jsx)(Pa,{markerColor:cn.A["blue-dark"],labelText:C,value:c,percentage:p})]})})]})]}):(0,o.jsx)(o.Fragment,{})}.bind(void 0),Sa=function(e){Na(this,wa);var n=e.wedge1,i=e.wedge2,t=e.wedge3,r=e.wedge4,s=n.percent,a=s+i.percent,l=a+t.percent,c=n.color+" 0% "+s+"%",d=i.color+" "+s+"% "+a+"%",u=t.color+" "+a+"% "+l+"%",h=r.color+" "+l+"% 100%";return(0,o.jsx)("div",{className:"pie-chart",style:{background:"conic-gradient("+c+", "+d+", "+u+", "+h+")"},children:(0,o.jsx)("div",{className:"donut"})})}.bind(void 0),Pa=function(e){Na(this,wa);var n=e.markerColor,i=e.labelText,t=e.value,r=e.percentage;if(t&&t>0){var s=(0,o.jsx)("div",{className:"marker__label-value",style:{backgroundColor:n}}),a=r||"-",l=i+" ("+(t||"-")+")",c=(0,le.r5)()<350?"110px":"145px";return(0,o.jsxs)("tr",{children:[(0,o.jsxs)("td",{style:{width:c},children:[s," ",l]}),(0,o.jsxs)("td",{children:[a,"%"]})]})}return(0,o.jsx)(o.Fragment,{})}.bind(void 0),Ea=i(2543),Da=void 0;function Ta(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Oa=function(e,n,i,t,r,s,a,l,c,d){Ta(this,Da);var u=s&&r[i].uclGreatBadgeCars||0,h=a&&r[i].uclGoodBadgeCars||0,v=l&&r[i].uclFairBadgeCars||0,p=c&&r[i].uclOtherBadgeCars||0,m=u+h+v+p,f=u?as(u,m):0,x=h?as(h,m):0,b=v?as(v,m):0,j=p?as(p,m):0,g="Your Vehicles with CARFAX Value Badges ("+m+")",y=pl,C=vl,w=hl,N=ul;(0,le.r5)()<350&&(g="Vehicles with CARFAX Value Badges ("+m+")",y="None",C="Fair",w="Good",N="Great");var A=(0,o.jsx)("table",{style:{margin:"16px"},children:(0,o.jsxs)("tbody",{children:[(0,o.jsx)(Ia,{markerColor:cn.A.purple,labelText:y,value:p,percentage:j}),(0,o.jsx)(Ia,{markerColor:cn.A.orange,labelText:C,value:v,percentage:b}),(0,o.jsx)(Ia,{markerColor:cn.A.yellow,labelText:w,value:h,percentage:x}),(0,o.jsx)(Ia,{markerColor:cn.A["blue-dark"],labelText:N,value:u,percentage:f})]})}),S=(0,o.jsxs)("div",{children:[(0,o.jsx)(Ra,{label:r[i].longLabel}),(0,o.jsx)(La,{title:g}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",columnGap:"12px",margin:"12px"},children:[(0,o.jsx)("div",{children:(0,o.jsx)(ka,{noBadgePercent:j,fairPercent:b,goodPercent:x})}),(0,o.jsx)("div",{children:A})]})]});return Es.renderToStaticMarkup(S).toString()}.bind(void 0),Ra=function(e){Ta(this,Da);var n=e.label;return(0,o.jsx)("div",{style:{height:"40px",backgroundColor:"#616161",paddingLeft:"16px",paddingTop:"8px",fontFamily:"Roboto",fontSize:"14px",lineHeight:"24px",fontWeight:"bold",color:"#ffffff"},children:n})}.bind(void 0),La=function(e){Ta(this,Da);var n=e.title;return(0,o.jsx)("div",{style:{fontFamily:"Roboto",fontSize:"14px",lineHeight:"24px",fontWeight:"bold",color:"#212121",paddingLeft:"16px",paddingTop:"8px"},children:n})}.bind(void 0),ka=function(e){Ta(this,Da);var n=e.noBadgePercent,i=n+e.fairPercent,t=i+e.goodPercent,r=cn.A.purple+" 0% "+n+"%",s=cn.A.orange+" "+n+"% "+i+"%",a=cn.A.yellow+" "+i+"% "+t+"%",l=cn.A["blue-dark"]+" "+t+"% 100%";return(0,o.jsx)("div",{style:{background:"conic-gradient("+r+", "+s+", "+a+", "+l+")",display:"flex",alignItems:"center",justifyContent:"center",width:"120px",height:"120px",borderRadius:"50%"},children:(0,o.jsx)("div",{style:{width:"60px",height:"60px",borderRadius:"50%",backgroundColor:"#ffffff"}})})}.bind(void 0),Ia=function(e){Ta(this,Da);var n=e.markerColor,i=e.labelText,t=e.value,r=e.percentage;if(t>0){var s=r||"-",a=i+" ("+(t||"-")+")",l=(0,le.r5)()<350?"110px":"145px";return(0,o.jsxs)("tr",{style:{display:"flex",flexDirection:"row"},children:[(0,o.jsxs)("td",{style:{display:"flex",flexDirection:"row",textAlign:"left",verticalAlign:"middle",width:l},children:[(0,o.jsx)("div",{style:{backgroundColor:n,height:"14px",width:"14px",borderRadius:"50%",marginTop:"5px"}}),(0,o.jsx)("p",{style:{marginLeft:"12px"},children:a})]}),(0,o.jsx)("td",{children:(0,o.jsxs)("b",{children:[s,"%"]})})]})}}.bind(void 0),Va=void 0;function Fa(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Ba=function(e){Fa(this,Va);var n=Ma(e);return[{name:ul,data:n.great,color:cn.A["blue-dark"]},{name:hl,data:n.good,color:cn.A.yellow},{name:vl,data:n.fair,color:cn.A.orange},{name:pl,data:n.none,color:cn.A.purple}]}.bind(void 0),_a=function(e,n,i,t,r,s,a,o,l,c){var d=this;Fa(this,Va);var u=e.map(function(e){return Fa(this,d),e.label}.bind(this)),h=n===Ee.D.MOBILE,v=h?6:30,p=h?5:10,m={},f={};return i?(f={legendClick:t,dataPointSelection:r},m={enabled:!1}):(f={legendClick:t,dataPointMouseLeave:Ua},m={enabled:!0,followCursor:!1,custom:function(n){Fa(this,d);var i=n.series,t=n.seriesIndex,r=n.dataPointIndex,u=n.w;return Oa(i,t,r,u,e,s,a,o,l,c)}.bind(this)}),{chart:{id:"value-badge-trending-chart",stacked:!0,toolbar:{show:!1},events:f,animations:{enabled:!1,animateGradually:{enabled:!1},dynamicAnimation:{enabled:!1}}},title:{text:Ga(e,n),align:"center"},grid:{borderColor:cn.A["grey-light"]},xaxis:{tickAmount:v,categories:u,title:{text:ns(e),style:{color:cn.A.black,fontSize:"14px",fontFamily:"Roboto",fontWeight:400},offsetY:95},labels:{rotate:0,rotateAlways:!1}},yaxis:{tickAmount:p,min:0,labels:{show:!0,align:"left",offsetX:0}},legend:{showForSingleSeries:!0,position:"bottom",horizontalAlign:"left",offsetX:10,offsetY:7,fontSize:"14px",fontFamily:"Roboto",fontWeight:400,itemMargin:{horizontal:10}},tooltip:m,dataLabels:{enabled:!1},plotOptions:{bar:{dataLabels:{position:"center",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}}}}}.bind(void 0),Ua=function(){Fa(this,Va),is(ul,cn.A["blue-dark"]),is(hl,cn.A.yellow),is(vl,cn.A.orange),is(pl,cn.A.purple)}.bind(void 0),Ma=function(e){var n=this;return Fa(this,Va),{great:e.map(function(e){return Fa(this,n),e.uclGreatBadgeCars}.bind(this)),good:e.map(function(e){return Fa(this,n),e.uclGoodBadgeCars}.bind(this)),fair:e.map(function(e){return Fa(this,n),e.uclFairBadgeCars}.bind(this)),none:e.map(function(e){return Fa(this,n),e.uclOtherBadgeCars}.bind(this))}}.bind(void 0),Ga=function(e,n){Fa(this,Va);var i="Day";if(e[0]&&e[0].label){var t=parseInt(e[0].label,10);isNaN(t)&&(i="Month")}
2return n===Ee.D.MOBILE?"":"Breakdown of CARFAX Value Badges by "+i}.bind(void 0),Ha=function(e){Fa(this,Va);var n=e===Ee.D.MOBILE,i=n?84:96;return{display:"inline",top:n?-250:-215,left:(0,Ea.clamp)((0,le.r5)()-i,0,1200)/2-60}}.bind(void 0),za=function(e,n,i,t,r){Fa(this,Va);var s=Ma(e),a=!(us(s.great)||us(s.good)||us(s.fair)||us(s.none));return!(n||i||t||r)?"No Data":a?"No Data Available":void 0}.bind(void 0);function Xa(){return Xa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Xa.apply(null,arguments)}function Wa(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Ya=function(e){var n=this;Wa(this,void 0);var i=e.seriesData,r=e.layout,s=(0,t.useState)({offsetX:0,offsetY:0}),a=s[0],l=s[1],c=(0,t.useState)(!0),d=c[0],u=c[1],h=(0,t.useState)(!0),v=h[0],p=h[1],m=(0,t.useState)(!0),f=m[0],x=m[1],b=(0,t.useState)(!0),j=b[0],g=b[1],y=(0,t.useState)(-1),C=y[0],w=y[1],N=!1;(0,le.r5)()<=1024&&(N=!0),(0,t.useEffect)(function(){var e=this;return Wa(this,n),window.addEventListener("scroll",function(n){Wa(this,e),P()}.bind(this)),function(){var n=this;Wa(this,e),window.removeEventListener("scroll",function(e){Wa(this,n)}.bind(this))}.bind(this)}.bind(this),[]);var A=function(e,i,t){Wa(this,n);var r=t.config.series[i];if(r){var s=r.name,a=r.data.length;s===ul?u(!a):s===hl?p(!a):s===vl?x(!a):s===pl&&g(!a)}}.bind(this),S=function(e,i,t){Wa(this,n);var r=t.dataPointIndex;ts(ul,cn.A["blue-dark"],r),ts(hl,cn.A.yellow,r),ts(vl,cn.A.orange,r),ts(pl,cn.A.purple,r),E(e),w(r)}.bind(this),P=function(){Wa(this,n),Ua(),w(-1)}.bind(this),E=function(e){Wa(this,n);var i=e.clientX,t=e.clientY,r=e.offsetX>ls("apexchartsvalue-badge-trending-chart").width/2,s=os(i,r?"left":"right");s=ds(s);var o=t-260;a.offsetX===s&&a.offsetY===o||l({offsetX:s,offsetY:o})}.bind(this),D=Ba(i),T=_a(i,r,N,A,S,d,v,f,j,a),O=Ha(r),R=za(i,d,v,f,j);return(0,o.jsxs)("div",{id:"value-badge-chart-container",className:"apex-bar-chart-wrapper",children:[(0,o.jsx)(Ps.A,Xa({id:"value-badge-trending-apex-chart",options:T,series:D,type:"bar",height:350},Hn.f)),(0,o.jsx)("div",{className:"unavailable",style:O,children:R}),N&&C>-1&&(0,o.jsx)(Aa,{seriesData:i[C],isGreatSeriesDisplay:d,isGoodSeriesDisplay:v,isFairSeriesDisplay:f,isNoneSeriesDisplay:j,offsetX:a.offsetX,offsetY:a.offsetY})]})}.bind(void 0);var qa=i(8916),Za=i(2977),Ka=i(83279),Qa=i(3109),Ja=i(90871),$a=i(71483);const eo=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=(0,g.c)().isMobile;if(e.opportunityCount>0){var i=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsx)("strong",{children:e.opportunityCount})}),(0,o.jsx)("div",{children:(0,o.jsx)(p.Ay,{onClick:e.handleOnClick,size:"compact",theme:"blue-flat",children:"Check Inventory"})})]}),t=(0,o.jsx)(p.Ay,{onClick:e.handleOnClick,size:"compact",theme:"blue-flat",children:(0,o.jsx)("strong",{children:e.opportunityCount})}),r=n?t:i;return(0,o.jsxs)("div",{className:"insightRow-d6UcR",children:[(0,o.jsx)("div",{className:"description-lc0eg",children:e.description}),r]})}}.bind(void 0);var no=i(46131),io=i(2342),to=i(68183),ro=void 0;function so(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ao=(0,t.createContext)({cclSelection:"All Listings",setCclSelection:function(){so(this,ro)}.bind(void 0),selectedCompCode:void 0});const oo=function(e){var n=this;so(this,ro);var i=e.children,r=e.selectedCompCode,s=(0,t.useState)("All Listings"),a=s[0],l=s[1],c={cclSelection:a,setCclSelection:function(e){so(this,n),l(Cs(e));var i=X.A.uclDashboard.summary;i.resetCpoReportSelection(),i.resetBuyersConnectionSelection()}.bind(this),selectedCompCode:r};return(0,o.jsx)(ao.Provider,{value:c,children:i})}.bind(void 0);var lo=void 0;function co(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var uo=function(e){return e.PRICE_DROP="PRICE_DROP",e.PRICE_INCREASE="PRICE_INCREASE",e}({}),ho=function(e){return e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.ERROR="ERROR",e}({}),vo=function(e,n){return co(this,lo),n===uo.PRICE_DROP?"-$"+e.priceDropToNextBadge:"+$"+(0,le.qC)(e.priceIncreaseOpportunity)}.bind(void 0),po=function(e,n,i){var r=this;co(this,lo);var s=(0,t.useState)(void 0),a=s[0],o=s[1],l=(0,t.useState)({listingsCount:0,listings:[]}),c=l[0],d=l[1],u=(0,t.useContext)(ao).selectedCompCode,h=e===uo.PRICE_DROP?{isPriceDropOpportunity:!0,sortDimension:to.bM.PRICE_DROP_TO_NEXT_BADGE,sortOrder:to.xB.ASCENDING,compCode:u,limit:i,offset:n}:{isPriceIncreaseOpportunity:!0,sortDimension:to.bM.PRICE_INCREASE_OPPORTUNITY,sortOrder:to.xB.DESCENDING,compCode:u,limit:i,offset:n};return(0,t.useEffect)(function(){var e=this;co(this,r),o(ho.PENDING);var n=new AbortController;$a._.getInventoryListings(h,n.signal).then(function(n){co(this,e),d(n),o(ho.SUCCESS)}.bind(this)).catch(function(n){co(this,e),o(ho.ERROR)}.bind(this))}.bind(this),[e,n,i]),{data:c,view:a}}.bind(void 0),mo=i(59666),fo=i(95409),xo=i(29115),bo="accordionPaginator-RQUOI",jo="mobileContentDivider-p2cXI",go="mobileContentHead_Basic-VIHOW",yo="mobileContentRow-Y26Fj",Co="mobileContentRowTablet-RlXKg",wo="recordsFound-U1QdJ",No="text-FQqd6",Ao=["description","item"];function So(){return So=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},So.apply(null,arguments)}const Po=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.description,i=e.item,t=function(e,n){if(null==e)return{};var i={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(-1!==n.indexOf(t))continue;i[t]=e[t]}return i}(e,Ao);return null==i?null:(0,o.jsxs)("div",So({className:"mobileItem-Yv1Ju"},t,{children:[(0,o.jsx)("div",{className:No,children:n}),(0,o.jsx)("div",{className:No,children:i})]}))}.bind(void 0);var Eo=i(31943),Do="alertMsg-AZhTH",To="noPrint-EHSMR";const Oo=function(){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsx)("div",{className:"soldBadge-KZuKN",children:"SOLD"})}.bind(void 0);var Ro=void 0;function Lo(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ko=function(e){var n;switch(Lo(this,Ro),e){case to.p_.FAIR:n="fair";break;case to.p_.GOOD:n="good";break;case to.p_.GREAT:n="great"}return n}.bind(void 0);const Io=function(e){Lo(this,Ro);var n=e.isSold,i=e.dealerAskingPrice,t=e.valueBadge,r=e.vehicleCondition,s=e.msrp,a="-";null!=i&&i>0&&(a="$"+(0,le.qC)(i));var l="-";null!=s&&s>0&&(l="$"+(0,le.qC)(s)+" MSRP");var c="-";if(null!=t){var d=ko(t);c=d?(0,o.jsx)(Eo.p,{type:d}):"-"}var u=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsx)("b",{children:a})}),(0,o.jsx)("div",{style:{zIndex:0},children:c})]}),h=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsx)("b",{children:a})}),(0,o.jsx)("div",{children:l})]}),v=void 0;return n?v=(0,o.jsx)(Oo,{}):"USED"===r?v=u:"NEW"===r&&(v=h),(0,o.jsx)(o.Fragment,{children:v})}.bind(void 0);const Vo=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=(0,u.us)().businessUser,i=(0,g.c)().isMobile,t=n.getSubscriberLocation(e.compCode),r=!i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:t.streetAddress}),(0,o.jsx)("div",{children:t.cityStateZip})]});return(0,o.jsxs)("div",{className:"dealerInfo-JGmub",children:[(0,o.jsx)("div",{className:"dealerTitle-LzE40",children:t.companyName}),r]})}.bind(void 0);const Fo=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),e.modalType===uo.PRICE_DROP?(0,o.jsx)("span",{children:"Price Drop to Next Badge"}):(0,o.jsx)("span",{children:"Price Increase Opportunity"})}.bind(void 0);var Bo="mobileItem-KGtCW",_o="text-cWRvI";function Uo(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Mo=function(e){var n=this;Uo(this,void 0);var i=(0,t.useState)([]),r=i[0],s=i[1];(0,t.useEffect)(function(){Uo(this,n),s([])}.bind(this),[e.listings]);var a=function(e){Uo(this,n);var i=structuredClone(r);i[e]=!i[e],s(i)}.bind(this),l=e.listings.map(function(i,t){var s=this;Uo(this,n);var l=(0,o.jsx)(Fo,{modalType:e.modalType}),c=vo(i,e.modalType),d=e.isOwnerGroup&&(0,o.jsx)(Vo,{compCode:i.compCode}),u=(0,o.jsx)(Io,{dealerAskingPrice:i.dealerAskingPrice,valueBadge:i.valueBadge,vehicleCondition:i.vehicleCondition}),h=(0,o.jsx)(Io,{dealerAskingPrice:i.newDealerAskingPrice,valueBadge:e.modalType===uo.PRICE_DROP?i.nextValueBadge:i.valueBadge,vehicleCondition:i.vehicleCondition});return(0,o.jsxs)(xi.c,{open:r[t],children:[(0,o.jsx)(bi.b,{onClick:function(){return Uo(this,s),a(t)}.bind(this),children:(0,o.jsxs)("div",{children:[d,(0,o.jsx)(Ft.A,{vehicle:(0,xo.lN)(i),compCode:i.compCode,vdpLinkStatus:Bt.f.SUPPRESSED,isProspect:!1,textSize:"normal",vehicleCondition:i.vehicleCondition,displayFourPillar:!1,displayWidth:"wide",enableVhrLink:!1})]})}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:Bo,children:(0,o.jsx)(Po,{description:"Vehicle Price",item:u})}),(0,o.jsxs)("div",{className:Bo,children:[(0,o.jsx)("div",{className:_o,children:l}),(0,o.jsx)("div",{className:_o,children:c})]}),(0,o.jsx)("div",{className:Bo,children:(0,o.jsx)(Po,{description:"New Price",item:h})})]})})]},i.vin)}.bind(this));return(0,o.jsx)("div",{className:"accordion-rl4YV",children:(0,o.jsx)(fi.n,{border:"stacked",children:l})})}.bind(void 0);var Go=i(86407),Ho=i(27443);const zo=function(e){return function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0),(0,o.jsxs)("div",{children:[(0,o.jsx)(Ho.A,{makeYear:e.vehicle.makeYear,make:e.vehicle.make,model:e.vehicle.model}),(0,o.jsx)(Go.A,{odometerReading:e.vehicle.odometerReading}),(0,o.jsxs)("div",{children:["Stock#: ",(0,le.W$)(e.vehicle.stockNumber)]}),(0,o.jsx)("div",{children:e.vehicle.vin})]})}.bind(void 0);const Xo=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n,i=vo(e.vehicleListing,e.modalType),t=e.isOwnerGroup&&(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Vo,{compCode:e.vehicleListing.compCode})}),r=(0,xo.lN)(e.vehicleListing);return n=e.isOwnerGroup?(0,o.jsx)(zo,{vehicle:r}):(0,o.jsx)(Ft.A,{vehicle:r,compCode:e.vehicleListing.compCode,vdpLinkStatus:Bt.f.
2SUPPRESSED,vehicleCondition:e.vehicleListing.vehicleCondition,displayFourPillar:!1,enableVhrLink:!1}),(0,o.jsxs)(Dn.TR,{children:[t,(0,o.jsx)(Tn.TD,{children:n}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Io,{dealerAskingPrice:e.vehicleListing.dealerAskingPrice,valueBadge:e.vehicleListing.valueBadge,vehicleCondition:e.vehicleListing.vehicleCondition})}),(0,o.jsx)(Tn.TD,{align:"right",children:i}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Io,{dealerAskingPrice:e.vehicleListing.newDealerAskingPrice,valueBadge:e.modalType===uo.PRICE_DROP?e.vehicleListing.nextValueBadge:e.vehicleListing.valueBadge,vehicleCondition:e.vehicleListing.vehicleCondition})})]})}.bind(void 0);function Wo(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Yo=function(e){var n=this;Wo(this,void 0);var i=e.listings.map(function(i){return Wo(this,n),(0,o.jsx)(Xo,{vehicleListing:i,modalType:e.modalType,isOwnerGroup:e.isOwnerGroup},i.vin)}.bind(this)),t=e.isOwnerGroup&&(0,o.jsx)(Pn.TH,{width:160,children:"Store Name"});return(0,o.jsxs)(An.X,{"aria-label":"My Table",i18n:"en",children:[(0,o.jsxs)(Sn.D,{children:[t,(0,o.jsx)(Pn.TH,{width:e.isOwnerGroup?180:290,children:"Vehicle Information"}),(0,o.jsx)(Pn.TH,{width:120,children:"Current Price"}),(0,o.jsx)(Pn.TH,{width:150,align:"right",children:(0,o.jsx)(Fo,{modalType:e.modalType})}),(0,o.jsx)(Pn.TH,{width:150,children:"New Price"})]}),(0,o.jsx)(En.v,{children:i})]})}.bind(void 0);var qo="text-db4WQ";const Zo=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.isOwnerGroup&&(0,o.jsx)(Vo,{compCode:e.vehicle.compCode}),i=(0,o.jsx)(Fo,{modalType:e.modalType}),t=vo(e.vehicle,e.modalType),r=(0,o.jsx)(Io,{dealerAskingPrice:e.vehicle.dealerAskingPrice,valueBadge:e.vehicle.valueBadge,vehicleCondition:e.vehicle.vehicleCondition}),s=(0,o.jsx)(Io,{dealerAskingPrice:e.vehicle.newDealerAskingPrice,valueBadge:e.modalType===uo.PRICE_DROP?e.vehicle.nextValueBadge:e.vehicle.valueBadge,vehicleCondition:e.vehicle.vehicleCondition});return(0,o.jsxs)("div",{className:"tabletContainer-paGI3",children:[n,(0,o.jsx)(Ft.A,{vehicle:(0,xo.lN)(e.vehicle),compCode:e.vehicle.compCode,vdpLinkStatus:Bt.f.SUPPRESSED,isProspect:!1,textSize:"normal",vehicleCondition:e.vehicle.vehicleCondition,displayFourPillar:!1,displayWidth:"wide",enableVhrLink:!1}),(0,o.jsxs)("div",{className:"tabletRow-SfUGP",children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:r}),(0,o.jsxs)("div",{className:"mobileItem-baa9o",children:[(0,o.jsx)("div",{className:qo,children:i}),(0,o.jsx)("div",{className:qo,children:t})]}),(0,o.jsx)(Po,{description:"New Price",item:s})]})]})}.bind(void 0);function Ko(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Qo=function(e){var n=this;Ko(this,void 0);var i=(0,g.c)(),r=i.isMobile,s=i.layout,a=(0,t.useState)(1),l=a[0],c=a[1],d=(0,t.useState)(10),u=d[0],h=d[1],v=(l-1)*u,p=po(e.modalType,v,u),m=function(e){Ko(this,n),e.currentPage!==l&&c(e.currentPage),e.perPageValue!==u&&h(e.perPageValue)}.bind(this);switch(p.view){case ho.PENDING:return(0,o.jsx)("div",{className:"spinner-N2OVR",children:(0,o.jsx)(mo.A,{children:"Fetching data..."})});case ho.SUCCESS:var f=p.data,x=!r&&(0,o.jsxs)("p",{className:"recordCount-JcmdB",children:[f.listingsCount," Records Found"]}),b=void 0;switch(s){case Ee.D.DESKTOP:b=(0,o.jsx)(Yo,{listings:f.listings,modalType:e.modalType,isOwnerGroup:e.isOwnerGroup});break;case Ee.D.TABLET:b=f.listings.map(function(i){return Ko(this,n),(0,o.jsx)(Zo,{vehicle:i,modalType:e.modalType,isOwnerGroup:e.isOwnerGroup},i.vin)}.bind(this));break;case Ee.D.MOBILE:b=(0,o.jsx)(Mo,{listings:f.listings,modalType:e.modalType,isOwnerGroup:e.isOwnerGroup})}return(0,o.jsxs)(o.Fragment,{children:[x,b,(0,o.jsx)("div",{className:"pagination-JvL3i",children:(0,o.jsx)(On.A,{"aria-label":"Price Change Insight Pagination",currentPage:l,size:r?"small":"large",perPageOptions:[10,50,100],perPageValue:u,onChange:m,tooltipTheme:"light",totalItems:f.listingsCount})})]});case ho.ERROR:return(0,o.jsx)("div",{className:"notificationStyle-HdODM",children:(0,o.jsx)(fo.A,{theme:"red",role:"alert",message:"An unexpected error has occurred. Please try again later."})})}}.bind(void 0);function Jo(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const $o=function(e){var n,i=this;Jo(this,void 0);var s=(0,r.Zp)(),a=(0,no.A)(),l=a.lockBodyScroll,c=a.unlockBodyScroll,d=Ie.A.onClose,u=Ie.A.selectedChildLocation;(0,io.AI)({pageInfo:{pageName:e.modalType===uo.PRICE_DROP?"Price Drop Opportunity":"Price Increase Opportunity",destinationURL:window.location.pathname,referringURL:window.location.pathname},category:{primaryCategory:(0,io.D9)(e.isOwnerGroup),subCategory:(0,io.J4)(e.isOwnerGroup)}}),(0,t.useEffect)(function(){var n=this;return Jo(this,i),e.isVisible&&l(),function(){Jo(this,n),c()}.bind(this)}.bind(this),[e.isVisible]);var h=((n={})[uo.PRICE_DROP]={headerText:"Opportunities to improve badging",subHeader:"Used cars with better value badges are more visible, generate more interest, and sell faster"},n[uo.PRICE_INCREASE]={headerText:"Opportunities to increase profit",subHeader:"Get the most out of your used car listings by increasing your price while keeping your great badge."},n)[e.modalType],v={};e.modalType===uo.PRICE_INCREASE&&(v.filter=to.bM.PRICE_INCREASE_OPPORTUNITY),e.isOwnerGroup&&u.compCode&&(v.dealerCompCode=u.compCode.reverseCharacters());var m=new URLSearchParams(v).toString(),f="/performance/ucl/inventory"+(m?"?"+m:""),x=function(){Jo(this,i),e.setIsVisible(!1),d(),s(f)}.bind(this);return(0,o.jsxs)(xn.Ay,{isVisible:e.isVisible,onClose:function(){return Jo(this,i),e.setIsVisible(!1)}.bind(this),isWideFormat:!0,children:[(0,o.jsx)(bn.A,{children:h.headerText}),(0,o.jsxs)(gn.A,{children:[(0,o.jsx)("p",{className:"subHeader-ZlaeG",children:h.subHeader}),(0,o.jsx)(Qo,{modalType:e.modalType,isOwnerGroup:e.isOwnerGroup}),(0,o.jsxs)("div",{className:"disclaimer-BURy_",children:[(0,o.jsx)("p",{className:"disclaimerTitle-hLrBM",children:"Disclaimer:"}),(0,o.jsx)("p",{children:"CARFAX History-Based Value is constantly being updated based on current market conditions, and the value badge thresholds change over time."})]})]}),(0,o.jsxs)(yn.A,{children:[(0,o.jsx)(p.Ay,{theme:"blue",onClick:function(){return Jo(this,i),x()}.bind(this),children:"View Listings"}),(0,o.jsx)(p.Ay,{theme:"blue-outline",onClick:function(){return Jo(this,i),e.setIsVisible(!1)}.bind(this),children:"Close"})]})]})}.bind(void 0);function el(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function s(i,t,r,s){var l=t&&t.prototype instanceof o?t:o,c=Object.create(l.prototype);return nl(c,"_invoke",function(i,t,r){var s,o,l,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,o=0,l=e,h.n=i,a}};function v(i,t){for(o=i,l=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>
23?(r=p===t)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(o=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,o=0))}if(r||i>1)return a;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),o=d,l=p;(n=o<2?e:l)||!u;){s||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,s){if(o||(r="next"),n=s[r]){if(!(n=n.call(s,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=s.return)&&n.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);s=e}else if((n=(u=h.n<0)?l:i.call(t,h))!==a)break}catch(n){s=e,o=1,l=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),c}var a={};function o(){}function l(){}function c(){}n=Object.getPrototypeOf;var d=[][t]?n(n([][t]())):(nl(n={},t,function(){return this}),n),u=c.prototype=o.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,nl(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,nl(u,"constructor",c),nl(c,"constructor",l),l.displayName="GeneratorFunction",nl(c,r,"GeneratorFunction"),nl(u),nl(u,r,"Generator"),nl(u,t,function(){return this}),nl(u,"toString",function(){return"[object Generator]"}),(el=function(){return{w:s,m:h}})()}function nl(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}nl=function(e,n,i,t){function s(n,i){nl(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},nl(e,n,i,t)}function il(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function tl(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var rl=function(e){var n=this;tl(this,void 0);var i=e.compCode,r=(0,g.c)().isMobile,s=(0,Qa.Z)(),a=s.userOptions,l=s.updateUserOption,c=(0,Ka.i3)().userDetails,d=(0,u.us)().businessUser,h=(0,t.useState)(!1),v=h[0],p=h[1],m=(0,t.useState)(0),f=m[0],x=m[1],b=(0,t.useState)(0),j=b[0],y=b[1],C=(0,t.useState)(!1),w=C[0],N=C[1],A=(0,t.useState)(uo.PRICE_DROP),S=A[0],P=A[1],E=(0,t.useState)(void 0),D=E[0],T=E[1],O=(0,Ja.U)(),R=O&&[Ja.f.ADMIN,Ja.f.STANDARD].includes(O),k=d.isOwnergroupAdmin&&"GROUP"===c.userLocationAccessType,I=d.isProspectDealer,V=d.hasUclChildren||d.isUclDealer;(0,t.useEffect)(function(){var e=this;tl(this,n),$a._.getInventorySummary(i).then(function(n){tl(this,e),(n.priceDropOpportunityCars||n.priceIncreaseOpportunityCars)&&(x(n.priceDropOpportunityCars),y(n.priceIncreaseOpportunityCars),p(!0))}.bind(this))}.bind(this),[]),(0,t.useEffect)(function(){tl(this,n);var e=new URL(window.location.toLocaleString()).searchParams.get("insight");"increase"===e?F(uo.PRICE_INCREASE):"drop"===e&&F(uo.PRICE_DROP)}.bind(this),[]),(0,t.useEffect)(function(){if(tl(this,n),void 0!==a){var e=(0,Za.a)(a,"PriceChangeEmail");T(e)}}.bind(this),[a]);var F=function(e){tl(this,n),P(e),N(!0)}.bind(this),B=function(){var e,n=(e=el().m(function e(n){var i;return el().w(function(e){for(;;)switch(e.n){case 0:return i=n.currentTarget.checked,e.n=1,l(i,D);case 1:return e.a(2)}},e)}),function(){var n=this,i=arguments;return new Promise(function(t,r){var s=e.apply(n,i);function a(e){il(s,t,r,a,o,"next",e)}function o(e){il(s,t,r,a,o,"throw",e)}a(void 0)})});return function(e){return n.apply(this,arguments)}}();if(v&&!I){var _,U=!r&&(0,o.jsx)(L.A_,{"aria-label":"Close demo notification",onClick:function(){return tl(this,n),p(!1)}.bind(this)}),M=w&&(0,o.jsx)($o,{isVisible:!0,setIsVisible:N,modalType:S,isOwnerGroup:k}),G=R&&V&&(0,o.jsxs)("div",{className:"toggleContainer-M__kO",children:[(0,o.jsx)("label",{className:"toggleLabel-OOhOV",children:"I want to receive weekly Price Enhancement Opportunities emails"}),(0,o.jsx)(Ae.A,{onChange:function(e){return tl(this,n),B(e)}.bind(this),checked:null!=(_=null==D?void 0:D.value)&&_,fullWidth:!1})]});return(0,o.jsxs)(o.Fragment,{children:[M,(0,o.jsxs)(L.Eg,{role:"alert",theme:"blue",children:[(0,o.jsx)(qa.$,{hideDot:!0}),(0,o.jsx)(L.p,{children:(0,o.jsxs)("div",{className:"insightContents-eRryZ",children:[(0,o.jsx)(eo,{description:"Opportunities to improve badging",opportunityCount:f,handleOnClick:function(){return tl(this,n),F(uo.PRICE_DROP)}.bind(this)}),(0,o.jsx)(eo,{description:"Opportunities to increase profit",opportunityCount:j,handleOnClick:function(){return tl(this,n),F(uo.PRICE_INCREASE)}.bind(this)}),G]})}),U]})]})}}.bind(void 0);const sl=rl;var al=void 0;function ol(){return ol=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},ol.apply(null,arguments)}function ll(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var cl="Your Vehicles with CARFAX Value Badges",dl="See your value-badging based on CARFAX History-Based Value, the only VIN-specific price available based on your local market.",ul="Great Value",hl="Good Value",vl="Fair Value",pl="No Badge";const ml=function(e){ll(this,al);var n=e.data,i=e.layout,t=e.isOwnerGroup,r=e.isExpanderContent,s=e.cclSelection,a=e.selectedCompCode,l=t?"--tog":"",c=r?"cfx-card__header-expander":"cfx-card__header",d=r?"cfx-card__body-expander":"cfx-card__body",u=void 0,h=void 0;i===Ee.D.MOBILE?h=(0,o.jsxs)("div",{className:d,children:[(0,o.jsx)(Ls,{stats:(0,o.jsx)(fl,{data:n})}),(0,o.jsx)(Ya,{seriesData:n.series,layout:i})]}):i===Ee.D.TABLET?(u=(0,o.jsx)("div",{className:c,children:(0,o.jsx)(Vs,{title:cl,description:dl,cclSelection:s,isOwnerGroup:t})}),h=(0,o.jsxs)("div",{className:"cfx-card__body",children:[(0,o.jsx)(Fs,{stats:(0,o.jsx)(fl,{data:n})}),(0,o.jsx)(Ya,{seriesData:n.series,layout:i})]})):(u=(0,o.jsx)("div",{className:"cfx-card__header",children:(0,o.jsx)(ks,{title:cl,description:dl,cclSelection:s})}),h=(0,o.jsxs)("div",{className:"cfx-card__body",children:[(0,o.jsx)(Is,{stats:(0,o.jsx)(fl,{data:n})}),(0,o.jsx)(Ya,{seriesData:n.series,layout:i})]}));var v={};i===Ee.D.MOBILE&&(v=t?{marginLeft:"-32px",marginRight:"-32px",marginTop:"-24px"}:{marginLeft:"-16px",marginRight:"-16px",marginBottom:"-24px"});var p=a||Ie.A.selectedChildLocation.compCode;return(0,o.jsxs)("div",ol({className:"ucl-trending-chart-wrapper cfx-card-full-width--"+i+l},{"data-event":"view","data-category":"module","data-action":"carfax value badges"},{children:[u,h,(0,o.jsx)("div",{style:v,children:(0,o.jsx)(sl,{compCode:p})})]}))}.bind(void 0);var fl=function(e){var n,i,t,r;ll(this,al);var s=e.data;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Rs,{title:ul,value:null!=(n=s.current.uclGreatBadgeCars)?n:"-"}),(0,o.jsx)(Rs,{title:hl,value:null!=(i=s.current.uclGoodBadgeCars)?i:"-"}),(0,o.jsx)(Rs,{title:vl,value:null!=(t=s.current.uclFairBadgeCars)?t:"-"}),(0,o.jsx)(Rs,{title:pl,value:null!=(r=s.current.uclOtherBadgeCars)?r:"-"})]})}.bind(void 0);function xl(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var bl=function(e){var n=this;xl(this,void 0);var i=e.togChildren,r=e.trendData,s=e.layout,a=e.cclSelection,l=i.length,c=(0,t.useState)(0),d=c[0],u=c[1],h=(0,t.useState)(!0),v=h[0],p=h[1],m=i.slice(d,d+10),f=function(e){xl(this,n),u(e)}.bind(this),x=function(){xl(this,n),p(!v)}.bind(this),b=m.map(function(e){var i=this;xl(this,n);var t=e.companyName,r=e.compCode,s=Er(e.current),a=s.uclGreatBadgeCars,l=s.uclGoodBadgeCars,c=s.uclFairBadgeCars,d=s.uclOtherBadgeCars,u=function(){return xl(this,i),Ie.A.handleStoreNameOnClick(r,t||"")}.bind(this);return(0,o.jsxs)(tn,{child:e,dealershipName:t,onClick:u,children:[(0,o.jsx)(ln,{categoryName:"Great Value",categoryValue:a}),(0,o.jsx)(ln,{categoryName:"Good Value",categoryValue:l}),(0,o.jsx)(ln,{categoryName:"Fair Value",categoryValue:c}),(0,o.jsx)(ln,{categoryName:"No Badge",categoryValue:d})]},r)}.bind(this)),j=(0,le.r5)()>400?"Your Vehicles with CARFAX Value Badges":(0,le.r5)()>370?"Vehicles with CARFAX Value Badges":"CARFAX Value Badges",g=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings: Used: "}),j]}),y=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings: Used: "}),(0,o.jsxs)("p",{children:[" ",j]})]}),C=s===Ee.D.MOBILE?y:g,w=s===Ee.D.MOBILE?{borderTop:"1px solid #BDBDBD"}:void 0;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{id:"value-badges-section",className:"jump-anchor"}),(0,o.jsx)(fi.n,{border:"contained",children:(0,o.jsxs)(xi.c,{id:"ValueBadgesExpander",open:v,children:[(0,o.jsx)(bi.b,{onClick:x,children:C}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:w,children:[(0,o.jsx)(ml,{data:r,layout:s,isOwnerGroup:!0,isExpanderContent:!0,cclSelection:a}),(0,o.jsxs)("div",{className:"activity-by-location",children:[(0,o.jsx)("p",{children:"Activity by location"}),(0,o.jsx)("p",{className:"current-inventory",children:"CURRENT INVENTORY"})]}),b,(0,o.jsx)(on,{startIndex:d,totalCount:l,handlePageChange:f})]})})]})}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})}.bind(void 0);function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},jl.apply(null,arguments)}function gl(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const yl=(0,d.PA)(function(e){var n=this;gl(this,void 0);var i,t=e.freezeScroll,r=e.trendData,s=e.childData,a=e.isDesktop,l=e.cclSelection,c=e.selectedCompCode,d=(0,u.us)().businessUser;s.children.sort(Qe);var h=[];s.children.map(function(e){gl(this,n),e.isUcl&&h.push(e)}.bind(this));var v=Ve.A.participatingLocationsOnly?h:s.children;if(a){var p={paginate:!0,columns:[{key:"store",label:"Store Name",sortable:!0,CellRenderer:Ze,sortFunction:Qe},{key:"great",label:"Great Value",sortable:!0,CellRenderer:ze,sortFunction:Je("great")},{key:"good",label:"Good Value",sortable:!0,CellRenderer:ze,sortFunction:Je("good")},{key:"fair",label:"Fair Value",sortable:!0,CellRenderer:ze,sortFunction:Je("fair")},{key:"noBadge",label:"No Badge",sortable:!0,CellRenderer:ze,sortFunction:Je("noBadge")}],rowData:v.map(function(e){var i;gl(this,n);var t=(null==(i=d.findChild(e.compCode))?void 0:i.isLifetimeDealer)||!1,r=Er(e.current),s=r.uclGreatBadgeCars,a=r.uclGoodBadgeCars,o=r.uclFairBadgeCars,l=r.uclOtherBadgeCars;return{store:{store:{name:e.companyName,address:e.streetAddress,isUcl:e.isUcl,compCode:e.compCode,isChildLocation:d.isLowestLevelChildLocation(e.compCode),isLifetimeDealer:t}},great:Xe(s),good:Xe(a),fair:Xe(o),noBadge:Xe(l)}}.bind(this)),initSort:{key:"store",direction:"asc"},pagerLocation:{top:!1,bottom:!0},className:"default-column-widths",freezeScroll:t};i=(0,o.jsxs)("div",{className:"perfomance-tog-section",children:[(0,o.jsx)("a",{id:"value-badges-section",className:"jump-anchor"}),(0,o.jsx)(ml,{data:r,layout:X.A.ui.navigation.layout,isOwnerGroup:!0,isExpanderContent:!0,cclSelection:l,selectedCompCode:c}),(0,o.jsxs)("div",{className:"activity-by-location",children:[(0,o.jsx)("p",{children:"Activity by location"}),(0,o.jsx)("span",{className:"current-inventory",children:"CURRENT INVENTORY"})]}),(0,o.jsx)(la,jl({},p))]})}else i=(0,o.jsx)(bl,{togChildren:v,layout:X.A.ui.navigation.layout,trendData:r,cclSelection:l});return i}.bind(void 0));var Cl=void 0;function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},wl.apply(null,arguments)}function Nl(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Al=(0,d.PA)(function(){var e=this;Nl(this,Cl);var n=(0,t.useContext)(nh),i=n.getSummary,r=n.summaryTrending,s=n.summaryChildren,a=Ve.A;return(0,t.useEffect)(function(){Nl(this,e),void 0===a.specificMonths&&a.fetchSummaryPeriodOptions(),i()}.bind(this),[]),(0,t.useEffect)(function(){var n=this;return Nl(this,e),a.registerPrintHandling(),function(){Nl(this,n),a.unregisterPrintHandling()}.bind(this)}.bind(this),[]),(0,o.jsx)(Ss,{children:(0,o.jsx)(Sl,{trendData:r,childData:s})})}.bind(void 0));var Sl=(0,d.PA)(function(e){var n=this;Nl(this,Cl);var i=e.trendData,r=e.childData,s=(0,t.useContext)(As),a=s.cclSelection,d=s.setCclSelection,u=(0,g.c)(),h=u.isMobile,v=u.isDesktop,p=u.layout,m=X.A.uclDashboard.summary,f=v?(0,o.jsx)("br",{}):null,x=function(){Nl(this,n);var e=Ve.A.reportView,i=m.getDownloadReportName(e,a);(0,Pe.OE)(!0,e,i,a)}.bind(this),b=function(e,n){var i=this;void 0===n&&(n="ucl");var t=[];return e.children.forEach(function(e){Sr(this,i),t.push(Or(e,n))}.bind(this)),{updatedDate:e.updatedDate,children:t}}(r,ps(a)),j=ms(i,ps(a)),y=j.hasNewInventory&&j.hasUsedInventory?(0,o.jsx)(Gr.Ay,{cclSelection:a,onChange:d,layout:p}):null,C="";"Used"===a?C="Car Listings - Used: ":"New"===a?C="Car Listings - New: ":"All Listings"===a&&(C="Car Listings: ");var w=(0,o.jsxs)("div",{className:"dealer-belief-container",children:[(0,o.jsx)(ht.Z,{messageType:"sell"}),(0,o.jsx)(Ge,{handleDownload:x,enableDownload:Ve.A.downloadExcelEnabled,displayFilters:!0,layout:p})]}),N=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"dealer-belief-container",children:(0,o.jsx)(ht.Z,{messageType:"sell"})}),(0,o.jsx)(Ge,{handleDownload:x,enableDownload:Ve.A.downloadExcelEnabled,displayFilters:!0,layout:p})]}),A=v?w:N,S="New"!==a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(xa,{freezeScroll:!0,trendData:i,childData:b,isDesktop:v,cclSelection:a}),f]}),P="New"!==a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(yl,{freezeScroll:!0,trendData:i,childData:b,isDesktop:v,cclSelection:a}),f]}),E=h?{display:"flex",flexDirection:"column",alignItems:"center"}:{display:"flex",flexDirection:"row",justifyContent:"space-between",margin:"16px 0"};return(0,o.jsxs)("div",{className:"common-components summary-performance-page-wrapper",children:[A,(0,o.jsxs)("div",{style:E,children:[(0,o.jsx)("div",{className:"chipSelectorContainer",children:y}),(0,o.jsx)(He,{checked:Ve.A.participatingLocationsOnly,onChange:Ve.A.handleParticipatingLocationsOnlyUpdate})]}),(0,o.jsx)(Pl,{}),(0,o.jsx)(El,{trendData:j,layout:Ve.A.isPrintButtonPressed?Ee.D.DESKTOP:p,cclSelection:a}
2),(0,o.jsx)(Ca,{freezeScroll:!0,childData:b,isDesktop:v,titlePrefix:C,cclSelection:a}),f,S,P,(0,o.jsx)(l,{children:(0,o.jsx)(c,{asOfDate:i.updatedDate,lastDays:Vi("ucl","summary")})})]})}.bind(void 0)),Pl=(0,d.PA)(function(){var e;Nl(this,Cl);var n=Ve.A,i=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{style:{fontSize:"14px"},children:"Buyer Connections Reporting Details"}),(0,o.jsxs)(Se.A,{value:null==(e=n.bCRSelected)?void 0:e.displayName,placeholder:"Select Month",onChange:n.handleBCRSelection,"aria-label":"Select Buyer's Connection Report Details Month",children:[(0,Le.A)({items:n.bCRsOptions,defaultTextContent:"Select Month"}).defaultOption,(0,Le.A)({items:n.bCRsOptions}).originalOptions]})]}),t=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Ay,{id:"summary-download-report",theme:"blue",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ne.A,{title:"download","aria-hidden":!0}),"Download Report"]}),onClick:n.handleBCRDownload,disabled:!n.bCRSelected,"aria-label":"Summary Download Report",size:"compact"}),(0,o.jsx)(p.Ay,{id:"summary-download-report-cancel",theme:"black",children:"Cancel",onClick:n.toggleBCRModal,"aria-label":"Summary Download Report Cancel",size:"compact"})]});return(0,o.jsxs)(xn.Ay,{isVisible:n.showBCRDownloadModal,onClose:n.toggleBCRModal,children:[(0,o.jsx)(bn.A,{children:"Download Buyer Connections Report"}),(0,o.jsx)(gn.A,{disableScroll:!0,children:i}),(0,o.jsx)(yn.A,{children:t})]})}.bind(void 0)),El=(0,d.PA)(function(e){Nl(this,Cl);var n=e.trendData,i=e.layout,t=e.cclSelection,r=(0,g.c)(),s=r.isDesktop,a=r.isTablet,l=Ve.A,c=$r(n.period.emailLeads)+$r(n.period.phoneLeads),d=[(0,o.jsx)(Dl,{count:$r(n.period.cars)},"cars"),(0,o.jsx)(Tl,{count:$r(n.period.visitors)},"visitors"),(0,o.jsx)(Ol,{count:$r(n.period.vdpViews)},"vdp"),(0,o.jsx)(Rl,{count:c},"leads")];"New"!==t&&d.push((0,o.jsx)(Ll,{count:$r(n.current.uclGreatBadgeCarsPercent)},"great_value"));var u=(0,o.jsx)("div",{className:"summary-tiles-container",children:d}),h=(0,o.jsx)("div",{children:(0,o.jsx)(fs.A,{slidesToShow:3,slidesToScroll:3,children:d})}),v=(0,o.jsx)("div",{children:(0,o.jsx)(fs.A,{slidesToShow:1,slidesToScroll:1,children:d})}),m=s?u:a?h:v,f=["summary-tiles"];return i!==Ee.D.DESKTOP&&f.push("ucl-tog-mobile-segment"),(0,o.jsxs)("div",{className:f.join(" "),children:[(0,o.jsx)("div",{className:"header",style:{height:"54px"},children:(0,o.jsxs)("span",{children:[(0,o.jsx)("p",{style:{float:"left"},children:"Group Overview"}),(0,o.jsx)(p.Ay,{id:"summary-buyer-connections-download",className:"buyer-connections-download-button",theme:"blue-flat",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ne.A,{title:"download","aria-hidden":!0}),"Download Buyer Connections Report"]}),onClick:l.toggleBCRModal,disabled:0===l.buyerConnectionsReports.length,"aria-label":"Download Buyer Connections Report"})]})}),m]})}.bind(void 0)),Dl=function(e){Nl(this,Cl);var n=e.count,i=(0,le.qC)(n),t={accentColor:cn.A["blue-light"],image:(0,o.jsx)(Mr.A,{size:32,"aria-hidden":!0}),value:i,label:"Total Unique Inventory",href:"/performance/ucl/inventory"};return(0,o.jsx)(kl,wl({},t))}.bind(void 0),Tl=(0,d.PA)(function(e){Nl(this,Cl);var n=e.count,i=(0,le.qC)(n),t=Ve.A,r="";t.reportView.period&&(r=["MONTHS_6","MONTHS_9","MONTHS_12","MONTHS_24"].includes(t.reportView.period)?"Total Visitors":"Total Unique Visitors");var s={accentColor:cn.A["purple-dark"],image:(0,o.jsx)(qr,{width:"32",height:"32","aria-hidden":!0}),value:i,label:r,href:"#inventory-exposure-section"};return(0,o.jsx)(kl,wl({},s))}.bind(void 0)),Ol=function(e){Nl(this,Cl);var n=e.count,i=(0,le.qC)(n),t={accentColor:"#F57C00",image:(0,o.jsx)(Zr.A,{width:"26",height:"32","aria-hidden":!0}),value:i,label:"Total VDP Views",href:"#inventory-exposure-section"};return(0,o.jsx)(kl,wl({},t))}.bind(void 0),Rl=function(e){Nl(this,Cl);var n=e.count,i=(0,le.qC)(n),t={accentColor:cn.A.red,image:(0,o.jsx)(zr,{width:"32",height:"32","aria-hidden":!0}),value:i,label:"Total Buyer Leads",href:"/performance/ucl/leads"};return(0,o.jsx)(kl,wl({},t))}.bind(void 0),Ll=function(e){Nl(this,Cl);var n=e.count,i=Math.round(n)+"%",t={accentColor:cn.A["green-dark"],image:(0,o.jsx)(Wr,{width:"32",height:"32","aria-hidden":!0}),value:i,label:"Total CARFAX Great Value",href:"#value-badges-section",current:!0};return(0,o.jsx)(kl,wl({},t))}.bind(void 0),kl=(0,d.PA)(function(e){return Nl(this,Cl),(0,o.jsxs)("div",{className:"cfx-card summary-tile",style:{color:e.accentColor,borderTopColor:e.accentColor,borderTop:"4px solid"},children:[e.image,(0,o.jsx)("div",{className:"summary-tile__value",children:e.value}),(0,o.jsx)("div",{className:"summary-tile__label",children:e.label}),e.current&&(0,o.jsx)("div",{className:"current-inventory",children:"CURRENT INVENTORY"}),(0,o.jsx)(Kr.A,{to:e.href,className:"summary-tile__view-link",onClick:e.onClick,"aria-label":"view "+e.label,children:"View Details âº"})]})}.bind(void 0)),Il=i(70371),Vl=i(2013),Fl=i(29090);function Bl(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function s(i,t,r,s){var l=t&&t.prototype instanceof o?t:o,c=Object.create(l.prototype);return _l(c,"_invoke",function(i,t,r){var s,o,l,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,o=0,l=e,h.n=i,a}};function v(i,t){for(o=i,l=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>
23?(r=p===t)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(o=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,o=0))}if(r||i>1)return a;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),o=d,l=p;(n=o<2?e:l)||!u;){s||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,s){if(o||(r="next"),n=s[r]){if(!(n=n.call(s,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=s.return)&&n.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);s=e}else if((n=(u=h.n<0)?l:i.call(t,h))!==a)break}catch(n){s=e,o=1,l=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),c}var a={};function o(){}function l(){}function c(){}n=Object.getPrototypeOf;var d=[][t]?n(n([][t]())):(_l(n={},t,function(){return this}),n),u=c.prototype=o.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_l(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,_l(u,"constructor",c),_l(c,"constructor",l),l.displayName="GeneratorFunction",_l(c,r,"GeneratorFunction"),_l(u),_l(u,r,"Generator"),_l(u,t,function(){return this}),_l(u,"toString",function(){return"[object Generator]"}),(Bl=function(){return{w:s,m:h}})()}function _l(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}_l=function(e,n,i,t){function s(n,i){_l(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},_l(e,n,i,t)}function Ul(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function Ml(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var s=e.apply(n,i);function a(e){Ul(s,t,r,a,o,"next",e)}function o(e){Ul(s,t,r,a,o,"throw",e)}a(void 0)})}}function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Gl.apply(null,arguments)}function Hl(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var zl,Xl=function(e){return e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e[void 0]="undefined",e}({}),Wl=(0,t.createContext)({}),Yl=!1,ql=new Map([[to.bM.VIN,to.xB.ASCENDING],[to.bM.MODEL_YEAR,to.xB.DESCENDING],[to.bM.DEALER_PRICE,to.xB.ASCENDING],[to.bM.MSRP,to.xB.ASCENDING],[to.bM.HISTORY_BASED_VALUE,to.xB.ASCENDING],[to.bM.PRICE_DROP_TO_NEXT_BADGE,to.xB.ASCENDING],[to.bM.PRICE_DROP_TO_GREAT_BADGE,to.xB.ASCENDING],[to.bM.PRICE_INCREASE_OPPORTUNITY,to.xB.DESCENDING],[to.bM.DAYS_ON_CARFAX,to.xB.DESCENDING],[to.bM.VDP_VIEWS,to.xB.DESCENDING],[to.bM.BUYER_CONNECTIONS,to.xB.DESCENDING],[to.bM.TOTAL_LEADS,to.xB.DESCENDING],[to.bM.FOLLOWERS,to.xB.DESCENDING]]),Zl=function(e){var n=this;Hl(this,void 0);var i=e.children,r=e.fetchUniversalInventoryReportContent,s=e.getInventorySummary,a=!(0,u.us)().businessUser.isProspectDealer,l=(0,t.useState)({searchParam:"",currentPage:1,perPageValue:10,queryParams:Gl({},(0,xo.U_)(a),{vehicleCondition:void 0})}),c=l[0],d=l[1],h=(0,t.useState)(),v=h[0],p=h[1],m=(0,t.useState)(!1),f=m[0],x=m[1],b=(0,t.useState)(!1),j=b[0],g=b[1],y=(0,t.useState)(Xl.undefined),C=y[0],w=y[1],N=(0,Vl.C)("SORT_AND_FILTER_COACHMARK"),A=function(e){return Hl(this,n),d(Gl({},c,{currentPage:e}))}.bind(this),S=function(e){return Hl(this,n),d(Gl({},c,{perPageValue:e,currentPage:1}))}.bind(this),P=(0,t.useState)(Xl.undefined),E=P[0],D=P[1],T=(0,t.useRef)(!1),O=(0,t.useState)({listingsCount:0,listings:[]}),R=O[0],L=O[1],k=function(e,i){var t,r=this;Hl(this,n);var s,a=((t={})[e]=i,t);"sortDimension"===e&&((s={})[e]=i,s.sortOrder=ql.get(i),a=s);var o=Gl({},c.queryParams,a);(0,le.hX)(i)&&delete o[e],d(function(e){return Hl(this,r),Gl({},e,{queryParams:Gl({},e.queryParams,a),currentPage:1})}.bind(this))}.bind(this),I=function(e){Hl(this,n),D(Xl.pending),Yl=!1;var i=Gl({},(0,xo.U_)(a),{vehicleCondition:ys(e)});void 0===i.vehicleCondition&&delete i.vehicleCondition,d(Gl({},c,{queryParams:i,currentPage:1}))}.bind(this),V=function(e){Hl(this,n);for(var i=Gl({},c.queryParams,e),t=0,r=Object.keys(e);t<r.length;t++){var s=r[t],a=s[0],o=s[1];(0,le.hX)(o)&&delete i[a]}d(Gl({},c,{queryParams:i,currentPage:1}))}.bind(this),F=function(){var e=this;return Hl(this,n),d(function(n){return Hl(this,e),Gl({},c,{queryParams:Gl({},(0,xo.U_)(a),{vehicleCondition:n.queryParams.vehicleCondition}),currentPage:1})}.bind(this))}.bind(this),B=function(e){return Hl(this,n),d(Gl({},c,{searchParam:e}))}.bind(this),_=function(){var e=Ml(Bl().m(function e(){var n,i,t,s=this;return Bl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!r){e.n=5;break}return D(Xl.pending),n=(0,xo.FX)(c.queryParams,{searchTerm:c.searchParam,isEnhanced:a,pageParams:{offset:(c.currentPage-1)*c.perPageValue,limit:c.perPageValue}}),e.p=1,e.n=2,r(n);case 2:if(i=e.v,!(!T.current&&!0===c.queryParams.isUclOnly)){e.n=3;break}if(T.current=!0,0!==i.listingsCount){e.n=3;break}return d(function(e){Hl(this,s);var n=Gl({},e.queryParams);return delete n.isUclOnly,Gl({},e,{queryParams:n,currentPage:1})}.bind(this)),e.a(2);case 3:L(i),D(Xl.fulfilled),Yl?(0,Fl.g)(c.queryParams,a):Yl=!0,e.n=5;break;case 4:e.p=4,t=e.v,console.error(t),"TypeError"!==t.name&&D(Xl.rejected);case 5:return e.a(2)}},e,this,[[1,4]])}));return function(){return e.apply(this,arguments)}}(),U=function(){var e=Ml(Bl().m(function e(){var n,i,t,r;return Bl().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!s){e.n=7;break}return e.p=1,e.n=2,s();case 2:(n=e.v).hasNewInventory&&!n.hasUsedInventory&&k("vehicleCondition",xs.Y5.NEW),p(n),i=0,t=Object.values(n);case 3:if(!(i<t.length)){e.n=5;break}if(!(t[i]>0)){e.n=4;break}return x(!0),e.a(3,5);case 4:i++,e.n=3;break;case 5:e.n=7;break;case 6:e.p=6,r=e.v,console.error(r);case 7:return e.a(2)}},e,null,[[1,6]])}));return function(){return e.apply(this,arguments)}}();(0,t.useEffect)(function(){var e=this;Hl(this,n),clearTimeout(zl),zl=setTimeout(function(){return Hl(this,e),_()}.bind(this),250)}.bind(this),[c]),(0,t.useEffect)(function(){Hl(this,n),U().catch()}.bind(this),[]);var M={status:E,inventoryData:R,currentPage:c.currentPage,setPageNumber:A,perPageValue:c.perPageValue,setPageSize:S,queryParams:c.queryParams,handleQueryUpdate:k,handleMultiQueryUpdate:V,resetQuery:F,searchParam:c.searchParam,setSearch:B,inventorySummary:v,hasRecallOrDataRecord:f,cclSelection:gs(c.queryParams.vehicleCondition),setCclSelection:I,isPrinting:j,setIsPrinting:g,exportStatus:C,setExportStatus:w,recallsRecordsBasePath:window.location.pathname.includes("mobileAp
2p")?"mobileApp":"reporting",sortAndFilterCoachmark:N};return(0,o.jsx)(Wl.Provider,{value:M,children:i})}.bind(void 0);const Kl=Zl;var Ql=void 0;function Jl(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const $l=function(e){var n=this;Jl(this,Ql);var i=(0,t.useContext)(Wl),r=i.queryParams,s=i.inventorySummary,a=i.recallsRecordsBasePath,l=(0,t.useState)(!0),c=l[0],d=l[1],u=(0,Il.o)().openPopLink,h=null;if(s){var v=r.isHomegrown,p=s.openRecallCount>0,m=s.newDataRecordCount>0;return v?h=(0,o.jsx)(L.p,{action:(0,o.jsx)(L.Av,{onClick:u,children:"View Materials"}),children:(0,o.jsx)("div",{className:Do,children:(0,o.jsx)(nc,{count:s.homegrownCount})})}):(p||m)&&(h=(0,o.jsx)(L.p,{children:(0,o.jsxs)("div",{className:Do,children:[(0,o.jsx)(ec,{isVisible:p,count:s.openRecallCount,cars:s.openRecallCars,link:(0,o.jsx)(ic,{link:"/"+a+"/recalls",text:"Open Recalls"})}),(0,o.jsx)(ec,{isVisible:m,count:s.newDataRecordCount,cars:s.newDataRecordCars,link:(0,o.jsx)(ic,{link:"/"+a+"/newDataRecords",text:"New Data Records"}),isPayPerVin:e.isPayPerVin})]})})),h&&c&&(0,o.jsx)("div",{className:"uirAlertNotificationWrapper-B5IAK "+To,children:(0,o.jsxs)(L.Eg,{theme:"blue","aria-live":"polite",children:[(0,o.jsx)(qa.$,{}),h,(0,o.jsx)(L.A_,{"aria-label":"close notification",onClick:function(){Jl(this,n),d(!1)}.bind(this)})]})})}}.bind(void 0);var ec=function(e){return Jl(this,Ql),!e.isVisible||e.isPayPerVin?null:(0,o.jsxs)("p",{children:["You have ",e.count," ",e.link," on ",e.cars," ",e.cars.pluralize("vehicle"),"."]})}.bind(void 0),nc=function(e){return Jl(this,Ql),(0,o.jsxs)("p",{children:["You have ",e.count," CARFAX Homegrown⢠cars on your lotâvehicles you sold new and serviced for most of their ownership journey. These cars sell faster and for more, so showcase your CARFAX Homegrown inventory today with FREE Point of Purchase materials!"]})}.bind(void 0),ic=function(e){return Jl(this,Ql),(0,o.jsx)(r.N_,{to:e.link,children:(0,o.jsx)("u",{children:e.text})})}.bind(void 0);const tc=i.p+"static/apps/cfo/Minor4e67a1ab4b03217fbcdd.svg",rc=i.p+"static/apps/cfo/MinorModerate13cd40dee52012b91a5b.svg",sc=i.p+"static/apps/cfo/Moderated3d6d1860970bfb6c002.svg",ac=i.p+"static/apps/cfo/ModerateSevere3d7aae338ed2264b1f33.svg",oc=i.p+"static/apps/cfo/NotAvailable8be220180ffd42d36cab.svg",lc=i.p+"static/apps/cfo/Severe0d196ebf29b8501b0999.svg",cc=i.p+"static/apps/cfo/VeryMinorc29a6dc3a818141c2761.svg",dc=i.p+"static/apps/cfo/VerySeverefa6e05e9625b2856d1d4.svg";var uc=new Map([[to.rw.NO_SEVERITY,oc],[to.rw.VERY_MINOR,cc],[to.rw.MINOR,tc],[to.rw.MINOR_MODERATE,rc],[to.rw.MODERATE,sc],[to.rw.MODERATE_SEVERE,ac],[to.rw.SEVERE,lc],[to.rw.VERY_SEVERE,dc]]);const hc=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.severity;return null!=n?(0,o.jsx)("div",{className:"damageSeverityImage-Wxsms",children:(0,o.jsx)("img",{height:36,src:uc.get(n),role:"presentation"})}):null}.bind(void 0);var vc=i(38689);function pc(){return pc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},pc.apply(null,arguments)}var mc=new Map([[to.be.OK,"green"],[to.be.WARN,"orange"],[to.be.ALERT,"red"]]);const fc=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.imageCount,i=e.imageCountPercent,t=e.imageCountStatus,r=e.layout;if((0,xo.qm)(n)&&(0,xo.qm)(i)&&(0,xo.qm)(t)){var s=r===Ee.D.DESKTOP?{marginLeft:"12px"}:{marginLeft:"0px"},a=cs(i,5,100),l=mc.get(t);return(0,o.jsxs)("div",pc({className:"photosImpact-S6ktE",style:s},Hn.f,{children:[(0,o.jsx)("div",{className:"photoImpactCount-PLFJh",children:n}),(0,o.jsx)("div",{className:"photoImpactProgress-hXRLj",children:(0,o.jsx)(vc.A,{value:a,size:"small",theme:l})})]}))}return null}.bind(void 0);var xc="recordsFound-bQA_Q",bc="tablePaginator-Euj8a",jc="universalInventoryReportTable-RBh7q",gc=void 0;function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},yc.apply(null,arguments)}function Cc(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var wc=function(e,n){return Cc(this,gc),n!==xs.Y5.USED?null:void 0===e||null==e?"-":!0===e?"Y":!1===e?"N":void 0}.bind(void 0),Nc=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"storenameColumn-yFu_J",children:"Store Name"})}.bind(void 0),Ac=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"vehicleInfoColumn-dRMip",children:"Vehicle Information"})}.bind(void 0),Sc=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"dealerPriceColumn-NTwAZ",children:"Vehicle Price"})}.bind(void 0),Pc=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"preAcquisitionColumn-avQUe",children:"Run Pre-acquisition"})}.bind(void 0),Ec=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"damageColumn-KqhM0",children:"Damage"})}.bind(void 0),Dc=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"photosColumn-aGmSH",children:(0,o.jsx)("div",{children:"Photos"})})}.bind(void 0),Tc=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"daysColumn-CyDse",children:(0,o.jsx)("div",{children:"Days on CARFAX"})})}.bind(void 0),Oc=function(){return Cc(this,gc),(0,o.jsx)(Pn.TH,{className:"vdpColumn-_tLH9",children:(0,o.jsx)("div",{children:"VDP Views"})})}.bind(void 0),Rc=function(){return Cc(this,gc),(0,o.jsxs)(Sn.D,{stickyPosition:(0,Vn.E)(),children:[(0,o.jsx)(Pn.TH,{width:375,children:"Vehicle Information"}),(0,o.jsx)(Pn.TH,{children:"Run Pre-acquisition"}),(0,o.jsx)(Pn.TH,{children:"Damage"})]})}.bind(void 0),Lc=function(){return Cc(this,gc),(0,o.jsx)(Sn.D,{stickyPosition:(0,Vn.E)(),children:(0,o.jsx)(Pn.TH,{width:375,children:"Vehicle Information"})})}.bind(void 0),kc=function(e){var n=this;Cc(this,gc);var i=e.listings,t=e.rowFormat,r="Used"===t||"All Listings"===t,s=i.map(function(e,i){Cc(this,n);var t=(0,xo.lN)(e),s=(0,xo.qm)(e.inDealerInventory)&&!1===e.inDealerInventory;return(0,o.jsxs)(Dn.TR,{children:[(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Ft.A,{vehicle:t,vdpLinkStatus:s?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:e.openRecallCount,newDataRecords:e.newDataRecordCount,isProspect:!0,textSize:"normal",adobeDataCategory:"inventory",vehicleCondition:e.vehicleCondition,displayFourPillar:r})}),r&&(0,o.jsx)(Tn.TD,{children:wc(e.runPreAcquisition,e.vehicleCondition)}),r&&(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(hc,{severity:e.maxDamageSeverity})})]},i+"-"+e.vin)}.bind(this));return(0,o.jsx)(o.Fragment,{children:s})}.bind(void 0),Ic=function(e,n){return Cc(this,gc),[].concat(n?[Nc]:[],[Ac,Sc],e?[]:[Pc,Ec],[Dc,Tc,Oc])}.bind(void 0),Vc=function(e){Cc(this,gc);var n=e.item,i=e.storeName,t=e.compCodeForVhr,r=e.rowFormat,s=(0,xo.lN)(n),a=(0,xo.qm)(n.inDealerInventory)&&!1===n.inDealerInventory,l="Used"===r||"All Listings"===r;return(0,o.jsxs)(o.Fragment,{children:[i,(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Ft.A,{vehicle:s,compCode:t,vdpLinkStatus:a?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:n.openRecallCount,newDataRecords:n.newDataRecordCount,isProspect:!1,textSize:l&&i?"small":"normal",adobeDataCategory:"inventory",vehicleCondition:n.vehicleCondition,displayFourPillar:l,displayWidth:l?"narrow-break":"wide"})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Io,{isSold:a,dealerAskingPrice:n.dealerAskingPrice,valueBadge:n.valueBadge,vehicleCondition:n.vehicleCondition,msrp:n.msrp})}),l&&(0,o.jsx)(Tn.TD,{children:wc(n.runPreAcquisition,n.vehicleCondition)}),l&&(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(hc,{severity:n.maxDamageSeverity})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(fc,{imageCount:n.imageCount,imageCountPercent:n.imageCountPercent,imageCountStatus:n.imageCountStatus,layout:Ee.D.DESKTOP})}),(0,o.jsx)(Tn.TD,yc({align:"right"},Hn.f,{children:n.daysOnCarfax})),(0,o.jsx)(Tn.TD,yc({align:"right"},Hn.f,{children:n.uclVdpViews}
2))]})}.bind(void 0),Fc=void 0;function Bc(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const _c=function(e){var n=this;Bc(this,Fc);var i=e.data,r=e.tablePagination,s=e.status,a=i.listings;if(a){var l=(0,t.useContext)(Wl).cclSelection,c=a.map(function(e,i){Bc(this,n);var t=(0,xo.qm)(e.inDealerInventory)&&!1===e.inDealerInventory,r=(0,xo.lN)(e),s=(0,xo.qm)(e.maxDamageSeverity)?(0,o.jsx)(hc,{severity:e.maxDamageSeverity}):null,a=wc(e.runPreAcquisition,e.vehicleCondition),c=a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Uc,{}),(0,o.jsx)("div",{className:yo,children:(0,o.jsx)(Po,{description:"Run Pre-acquisition",item:a})})]}),d=s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Uc,{}),(0,o.jsx)("div",{className:yo,children:(0,o.jsx)(Po,{description:"Damage",item:s})})]}),u=(0,o.jsxs)("div",{className:go,children:[(0,o.jsx)(Ft.A,{vehicle:r,vdpLinkStatus:t?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:e.openRecallCount,newDataRecords:e.newDataRecordCount,isProspect:!0,textSize:"normal",adobeDataCategory:"inventory",vehicleCondition:e.vehicleCondition,displayFourPillar:!0}),c,d,(0,o.jsx)("div",{className:jo})]}),h=(0,o.jsxs)("div",{className:go,children:[(0,o.jsx)(Ft.A,{vehicle:r,vdpLinkStatus:t?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:e.openRecallCount,newDataRecords:e.newDataRecordCount,isProspect:!0,textSize:"normal",adobeDataCategory:"inventory",vehicleCondition:e.vehicleCondition,displayFourPillar:!1}),(0,o.jsx)("div",{className:jo})]}),v=(0,o.jsxs)("div",{className:go,children:[(0,o.jsx)(Ft.A,{vehicle:r,vdpLinkStatus:t?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:e.openRecallCount,newDataRecords:e.newDataRecordCount,isProspect:!0,textSize:"normal",adobeDataCategory:"inventory",vehicleCondition:e.vehicleCondition,displayFourPillar:!0}),c,d,(0,o.jsx)("div",{className:jo})]}),p=void 0;return"Used"===l?p=u:"New"===l?p=h:"All Listings"===l&&(p=v),p}.bind(this)),d=void 0;return s===zu.fulfilled?d=i.listingsCount>0?(0,o.jsxs)(o.Fragment,{children:[c,(0,o.jsx)("div",{className:bo,children:r})]}):(0,o.jsx)(Vt.A,{}):s===zu.pending?d=(0,o.jsx)(Bi.A,{children:"Fetching Universal Inventory Records..."}):s===zu.rejected&&(d=(0,o.jsx)(vt.A,{headerText:"An unexpected error has occurred",messageText:"Please try again later"})),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:wo,children:i.listingsCount+" Records foun
2d"}),(0,o.jsx)("div",{className:"mobileSectionDivider-JZchL"}),d]})}return null}.bind(void 0);var Uc=function(){return Bc(this,Fc),(0,o.jsx)("div",{className:"mobileItemDivider_Basic-lfbbS"})}.bind(void 0),Mc=i(87564),Gc=i(70324),Hc=void 0;function zc(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Xc=function(e,n){var i=this;zc(this,Hc),null!==e?Wc(e,n).then(function(e){zc(this,i),window.open(e)}.bind(this)).catch(function(){zc(this,i),console.error("Error retrieving CARFAX Value Edit Link")}.bind(this)):console.error("Cannot edit CARFAX Value for null vins")}.bind(void 0),Wc=function(e,n){var i=this;return zc(this,Hc),$a._.getCarfaxValueEditLink(e,n).then(function(e){return zc(this,i),e.url}.bind(this))}.bind(void 0);const Yc=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.title,i=e.value,t=e.units,r=e.placement,s="-";if(null!=i&&i>0){var a=(0,le.qC)(i);s="dollar"===t?"$"+a:a}var l=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("th",{children:n}),(0,o.jsx)("th",{children:s})]}),c=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("td",{children:n}),(0,o.jsx)("td",{children:s})]});return r===xo.OB.HEAD?l:c}.bind(void 0);var qc="expanderDetails_Row-NgPkB",Zc="expanderDetails_Row_Spacing-5oP2I";function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Kc.apply(null,arguments)}function Qc(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Jc=function(e){var n=this;Qc(this,void 0);var i=e.details,t=e.isSold,r=(0,g.c)().isMobile,s=function(e){Qc(this,n),Xc(e,r?"mobile":"desktop")}.bind(this),a={"data-event":"click","data-category":"inventory","data-action":"edit history based value"},l=(0,o.jsx)("p",Kc({},a,{children:"History-Based Value"}));if(void 0!==i.onePrice&&null!==i.onePrice&&i.vin){var c=(0,o.jsx)(Gc.A,{size:24,className:"editHbv-ulkq9",title:"edit history based value","aria-label":"edit history based value"});l=(0,o.jsxs)("p",Kc({style:{cursor:"pointer"},onClick:function(){return Qc(this,n),s(i.vin)}.bind(this)},a,{children:["History-Based Value ",c]}))}var d=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:(0,o.jsx)("p",{children:"Price Drop to next Badge"}),value:i.priceDropToNextBadge,units:"dollar"})}),(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:(0,o.jsx)("p",{children:"Price Drop to Great Badge"}),value:i.priceDropToGreatBadge,units:"dollar"})})]}),u=(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:(0,o.jsx)("p",{children:"Price Increase Opportunity"}),value:i.priceIncreaseOpportunity,units:"dollar"})}),h=i.valueBadge===to.p_.GREAT?u:d,v=(0,o.jsxs)("table",{className:"dealerPriceTable-_BCZC",style:{},children:[(0,o.jsx)("thead",{children:(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:(0,o.jsx)("p",{children:"Vehicle Price"}),value:i.dealerAskingPrice,units:"dollar",placement:xo.OB.HEAD})})}),(0,o.jsxs)("tbody",{children:[(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:l,value:i.onePrice,units:"dollar"})}),h]})]});return t?null:v}.bind(void 0);var $c=i(94634);function ed(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const nd=function(e){var n=this;ed(this,void 0);var i=e.details,s=e.isSingleLocationDealer,a=(0,t.useState)(void 0),l=a[0],c=a[1];(0,t.useEffect)(function(){var e;ed(this,n);var t=null!=(e=i.uclEmailLeads)?e:0;i.vin&&t>0&&c("/performance/ucl/leads?"+$c.Y+"="+i.vin)}.bind(this),[i]);var d=(0,o.jsx)(o.Fragment,{children:"Email Leads"});return s&&l&&(d=(0,o.jsx)(r.N_,{to:l,children:(0,o.jsx)("b",{children:"Email Leads"})})),(0,o.jsxs)("table",{className:"detailConnectionsTable-QOjrr",children:[(0,o.jsx)("thead",{children:(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:"Buyer Connections",value:i.uclTotalBuyerConnections,units:"number",placement:xo.OB.HEAD})})}),(0,o.jsxs)("tbody",{children:[(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:"Dealer Website",value:i.uclDealerWebsiteClicks,units:"number"})}),(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:"Shared by Phone",value:i.uclSharedByPhone,units:"number"})}),(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:"Shared by Email",value:i.uclSharedByEmail,units:"number"})}),(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:"Map",value:i.uclMapClicks,units:"number"})}),(0,o.jsx)("tr",{children:(0,o.jsx)(Yc,{title:d,value:i.uclEmailLeads,units:"number"})})]})]})}.bind(void 0);const id=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.value,i=n?(0,le.qC)(n):"-",r="Used"===(0,t.useContext)(Wl).cclSelection?"detailFollowersTable_Used-Rnfzc":"detailFollowersTable_New-vfQyj";return(0,o.jsx)("table",{className:r,children:(0,o.jsx)("tbody",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:"Followed Cars"}),(0,o.jsx)("td",{children:i})]})})})}.bind(void 0);function td(){return td=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},td.apply(null,arguments)}function rd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const sd=function(e){var n=this;rd(this,void 0);var i=e.details,r=e.isPayPerVin,s=e.isSold,a=(0,t.useContext)(Wl),l=a.cclSelection,c=a.recallsRecordsBasePath,d=function(e){return rd(this,n),null!=e&&e>0}.bind(this),u=d(i.openRecallCount),h=d(i.newDataRecordCount),v=0;v+=u?1:0,v+=h?1:0;var p=u&&(0,o.jsx)("thead",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{children:"Open Recalls"}),(0,o.jsx)("th",{children:i.openRecallCount}),(0,o.jsx)("th",{children:(0,o.jsx)("a",td({href:"/"+c+"/recalls?"+$c.Y+"="+i.vin},{"data-event":"click","data-category":"inventory","data-action":"open recall details"},{children:"Details"}))})]})}),m=h&&(0,o.jsx)("tbody",{children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:"New Data Records"}),(0,o.jsx)("td",{children:i.newDataRecordCount}),(0,o.jsx)("td",{children:(0,o.jsx)("a",td({href:"/"+c+"/newDataRecords?"+$c.Y+"="+i.vin},{"data-event":"click","data-category":"inventory","data-action":"new data records details"},{children:"Details"}))})]})}),f=r||1===v?56:112,x="Used"===l?"detailOpenRecallsNewDataTable_Used-LZk8g":"detailOpenRecallsNewDataTable_New-wLD5z",b=(0,o.jsxs)("table",{className:x,style:{height:f},children:[p,!r&&m]});return s||!d(i.openRecallCount)&&!d(i.newDataRecordCount)?null:b}.bind(void 0);var ad=void 0;function od(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var ld="CARFAX Homegrown⢠Vehicle",cd=function(){var e=this;od(this,ad);var n=(0,t.useRef)(null),i=(0,t.useState)(!1),r=i[0],s=i[1];return(0,o.jsxs)("div",{className:"homegrownIndicator-wFoQQ",children:[(0,o.jsx)(Mc.A,{size:24,"aria-label":ld}),(0,o.jsx)("span",{className:"homegrownIndicator_label-fFwbm",children:ld}),(0,o.jsx)(Re.A,{anchorRef:n,isVisible:r,onClose:function(){return od(this,e),s(!1)}.bind(this),children:"You originally sold this vehicle new, completed at least 75% of its service events, and then reacquired it. CARFAX Homegrown⢠vehicles generally sell faster and for a higher asking price."}),(0,o.jsx)("button",{ref:n,"aria-label":"Button, More info about CARFAX Homegrown⢠Vehicle",className:"homegrownIndicator_infoButton-zldvq",onClick:function(){var n=this;return od(this,e),s(function(e){return od(this,n),!e}.bind(this))}.bind(this),children:(0,o.jsx)(Oe.A,{size:24,"aria-hidden":!0})})]})}.bind(void 0);const dd=function(e){od(this,ad);var n=e.details,i=e.isPayPerVin,t=e.isDesktop,r=e.isSingleLocationDealer,s=e.isSold,a=n.isHomegrown?(0,o.jsx)(cd,{}):null,l=(0,o.jsxs)("div",{className:qc,children:[(0,o.jsx)(nd,{details:n,isSingleLocationDealer:r}),(0,o.jsxs)("div",{className:Zc,children:[(0,o.jsx)(Jc,{details:n,isSold:s}),(0,o.jsx)(id,{value:n.uclFollowers})]}),(0,o.jsxs)("div",{className:Zc,children:[a,(0,o.jsx)(sd,{details:n,isPayPerVin:i,isSold:s})]})]}),c=(0,o.jsxs)("div",{className:qc,children:[(0,o.jsx)(nd,{details:n,isSingleLocationDealer:r}),(0,o.jsxs)("div",{className:Zc,children:[(0,o.jsx)(id,{value:n.uclFollowers}),(0,o.jsx)(sd,{details:n,isPayPerVin:i,isSold:s})]})]}),d=n.vehicleCondition===xs.Y5.USED?l:c,u=n.vehicleCondition===xs.Y5.USED?(0,o.jsx)(Jc,{details:n,isSold:s}):void 0,h=(0,o.jsxs)("div",{className:"expanderDetails_Col-SEucm",children:[(0,o.jsx)(nd,{details:n,isSingleLocationDealer:r}),u,(0,o.jsx)(id,{value:n.uclFollowers}),a,(0,o.jsx)(sd,{details:n,isPayPerVin:i,isSold:s})]}),v=t?d:h;return(0,o.jsx)("div",{className:"expanderDetails-oyxqx",children:v})}.bind(void 0);var ud=void 0;function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},hd.apply(null,arguments)}function vd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const pd=function(e){var n=this;vd(this,ud);var i=e.data,r=e.isPayPerVin,s=e.layout,a=e.tablePagination,l=e.status,c=e.isOwnerview,d=i.listings;if(d){var u=(0,t.useContext)(Wl),h=u.currentPage,v=u.perPageValue,p=u.queryParams,m=u.cclSelection,f=(0,t.useState)(Array(d.length).fill(!1)),x=f[0],b=f[1],j=p.sortDealers||!1,g=new Set,y=function(e){vd(this,n);
2var i=(h-1)*v+e,t=structuredClone(x);t[i]=!t[i],b(t)}.bind(this),C=function(e){return vd(this,n),!!e&&(!j||!g.has(e)&&(g.add(e),!0))}.bind(this),w=d.map(function(e,i){var t=this;vd(this,n);var a=!!c&&C(e.companyName),l=a?(0,o.jsx)("div",{className:"storeName-iXATt",children:e.companyName}):null,d=(0,xo.qm)(e.inDealerInventory)&&!1===e.inDealerInventory,u=(h-1)*v+i,p=(0,o.jsx)(Io,{isSold:d,dealerAskingPrice:e.dealerAskingPrice,valueBadge:e.valueBadge,vehicleCondition:e.vehicleCondition,msrp:e.msrp}),f=(0,xo.lN)(e),b=(0,xo.qm)(e.maxDamageSeverity)?(0,o.jsx)(hc,{severity:e.maxDamageSeverity}):null,j=(0,xo.qm)(e.imageCount)?(0,o.jsx)(fc,{imageCount:e.imageCount,imageCountPercent:e.imageCountPercent,imageCountStatus:e.imageCountStatus,layout:Ee.D.MOBILE}):null,g=s===Ee.D.MOBILE?fd(d,e,p,b,j):xd(d,e,p,b,j),w=(0,o.jsxs)("div",{className:"mobileContentHead-oHOlF","data-storename":a,children:[(0,o.jsx)(Ft.A,{vehicle:f,compCode:c?e.compCode:void 0,vdpLinkStatus:d?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:e.openRecallCount,newDataRecords:e.newDataRecordCount,isProspect:!1,vehicleCondition:e.vehicleCondition,displayFourPillar:"New"!==m,displayWidth:s===Ee.D.MOBILE?"narrow-break":"wide"}),g]}),N=x[u]?(0,o.jsx)("div",{className:"mobileExpanderBody-TNmoh",children:(0,o.jsx)(dd,{details:e,isPayPerVin:r,isDesktop:!1,isSold:d,isSingleLocationDealer:!0})}):null;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(xi.c,{id:"expander-"+u,open:x[u],children:[(0,o.jsxs)(bi.b,{onClick:function(){return vd(this,t),y(i)}.bind(this),className:"uirItemHeader-yjhOz","data-storename":a,children:[l,w]}),(0,o.jsx)(ji.C,{children:N})]},u+"-"+e.vin)})}.bind(this)),N=void 0;return l===zu.fulfilled?N=i.listingsCount>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(fi.n,{border:"contained",children:w}),(0,o.jsx)("div",{className:bo,children:a})]}):(0,o.jsx)(Vt.A,{}):l===zu.pending?N=(0,o.jsx)(Bi.A,{children:"Fetching Universal Inventory Records..."}):l===zu.rejected&&(N=(0,o.jsx)(vt.A,{headerText:"An unexpected error has occurred",messageText:"Please try again later"})),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:wo,children:i.listingsCount+" Records foun
2d"}),(0,o.jsx)("div",{className:"accordionContainer-ocfgV",children:N})]})}return null}.bind(void 0);var md=function(){return vd(this,ud),(0,o.jsx)("div",{className:"mobileItemDivider_Enhanced-tOPAa"})}.bind(void 0),fd=function(e,n,i,t,r){vd(this,ud);var s=e?(0,o.jsx)(Oo,{}):i,a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(md,{}),(0,o.jsx)(Po,{description:"Vehicle Price",item:s})]}),l=n.vehicleCondition!==xs.Y5.USED||e?void 0:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(md,{}),(0,o.jsx)("div",{className:yo,children:(0,o.jsx)(Po,{description:"Run Pre-acquisition",item:n.runPreAcquisition?"Y":"N"})})]}),c=n.vehicleCondition===xs.Y5.USED?(0,o.jsx)(Po,{description:"Damage",item:t}):void 0,d=e?void 0:(0,o.jsx)(Po,{description:"Photos",item:r}),u=(t||r)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(md,{}),(0,o.jsxs)("div",{className:yo,children:[c,d]})]}),h=(n.daysOnCarfax||n.uclVdpViews)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(md,{}),(0,o.jsxs)("div",{className:yo,children:[(0,o.jsx)(Po,hd({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,hd({description:"VDP Views",item:n.uclVdpViews}
2,Hn.f))]})]});return(0,o.jsxs)(o.Fragment,{children:[a,l,u,h]})}.bind(void 0),xd=function(e,n,i,t,r){vd(this,ud);var s=(0,o.jsxs)("div",{className:Co,children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:(0,o.jsx)(Oo,{})}),(0,o.jsx)(Po,hd({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,hd({description:"VDP Views",item:n.uclVdpViews},Hn.f))]}),a=n.vehicleCondition===xs.Y5.USED?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Po,{description:"Run Pre-acquisition",item:n.runPreAcquisition?"Y":"N"}),(0,o.jsx)(Po,{description:"Damage",item:t})]}):void 0,l=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Po,{description:"Photos",item:r}),(0,o.jsx)(Po,hd({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,hd({description:"VDP Views",item:n.uclVdpViews},Hn.f))]}),c=void 0,d=void 0;n.vehicleCondition==xs.Y5.USED?d=l:n.vehicleCondition===xs.Y5.NEW&&(c=l);var u=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:Co,children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:i}),a,c]}),(0,o.jsx)("div",{className:Co,children:d})]});return e?s:u}.bind(void 0),bd=i(30137);
2function jd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var gd=function(e){var n=this;jd(this,void 0);var i=e.data,r=e.isProspect,s=e.isPayPerVin,a=e.tablePagination,l=e.status,c=i.listings;if(c){var d=(0,t.useState)([]),u=d[0],h=d[1],v=(0,t.useState)(!1),p=v[0],m=v[1],f=(0,t.useContext)(Wl),x=f.queryParams,b=f.cclSelection;(0,t.useEffect)(function(){var e=this;jd(this,n);var i=c.map(function(n){return jd(this,e),!1}.bind(this));h(i)}.bind(this),[i]),(0,t.useEffect)(function(){var e=this;jd(this,n);var i=c.map(function(n){return jd(this,e),p}.bind(this));h(i)}.bind(this),[p]);var j=function(e){var i=this;jd(this,n);var t=u.map(function(n,t){return jd(this,i),t===e?!n:n}.bind(this));h(t)}.bind(this),g=(x.sortDealers||!1?c.sort((0,le.VE)(function(e){return jd(this,n),e.companyName}.bind(this))):c).map(function(e,i){var r=this;jd(this,n);var a=(0,xo.qm)(e.inDealerInventory)&&!1===e.inDealerInventory,l=(0,o.jsx)(Vc,{item:e,rowFormat:b});return(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(Dn.TR,{expanded:u[i],expandButtonLabel:"click to expand row "+i,onExpand:function(){return jd(this,r),j(i)}.bind(this),children:l}),(0,o.jsx)(bd._,{expanded:u[i],children:(0,o.jsx)(dd,{details:e,isPayPerVin:s,isDesktop:!0,isSold:a,isSingleLocationDealer:!0})})]},i+"-"+e.vin)}.bind(this)),y=Ic("New"===b,!1),C=(0,o.jsx)(Sn.D,{stickyPosition:(0,Vn.E)(),expanderColumn:p?"collapse":"expand",expandButtonLabel:"Click to expand all vehicles",onExpandAll:function(){return jd(this,n),m(!p)}.bind(this),children:y.map(function(e,i){return jd(this,n),(0,o.jsx)(e,{},i)}.bind(this))}),w=void 0,N=void 0;r?(w="New"===b?(0,o.jsx)(Lc,{}):(0,o.jsx)(Rc,{}),N=(0,o.jsx)(kc,{listings:c,rowFormat:b})):(w=C,N=g);var A=void 0,S=void 0,P=void 0;return l===zu.fulfilled?i.listingsCount>0?(A=(0,o.jsx)("div",{className:xc,children:i.listingsCount+" Records foun
2d"}),P=(0,o.jsxs)(An.X,{"aria-label":"Universal Inventory Report Table",children:[w,(0,o.jsx)(En.v,{children:N})]})):S=(0,o.jsx)(Vt.A,{}):l===zu.pending?S=(0,o.jsx)(Bi.A,{children:"Fetching Universal Inventory Records..."}):l===zu.rejected&&(S=(0,o.jsx)(vt.A,{headerText:"An unexpected error has occurred",messageText:"Please try again later"})),(0,o.jsxs)("div",{className:jc,children:[A,P,S,(0,o.jsx)("div",{className:bc,children:a})]})}return null}.bind(void 0);const yd=(0,d.PA)(gd);const Cd=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.layout,i=e.isProspect,r=e.tablePagination,s=e.isPayPerVin,a=(0,t.useContext)(Wl),l=a.inventoryData,c=a.status;return n===Ee.D.DESKTOP||n===Ee.D.TABLET&&i?(0,o.jsx)(yd,{data:l,isProspect:i,isPayPerVin:s,tablePagination:r,status:c}):i?(0,o.jsx)(_c,{data:l,tablePagination:r,status:c}):(0,o.jsx)(pd,{data:l,isPayPerVin:s,layout:n,tablePagination:r,status:c,isOwnerview:!1})}.bind(void 0);var wd="mobileContentRow-clnnH",Nd=void 0;function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Ad.apply(null,arguments)}function Sd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Pd=function(e){var n=this;Sd(this,Nd);var i=e.data,r=e.isPayPerVin,s=e.layout,a=e.tablePagination,l=e.status,c=(0,t.useContext)(Wl),d=c.currentPage,u=c.perPageValue,h=c.queryParams,v=c.cclSelection,p=i.listings,m=new Set;if((0,t.useEffect)(function(){Sd(this,n),m.clear()}.bind(this),[v,i]),p){var f=(0,t.useState)(Array(p.length).fill(!1)),x=f[0],b=f[1],j=h.sortDealers||!1,g=function(e){Sd(this,n);var i=(d-1)*u+e,t=structuredClone(x);t[i]=!t[i],b(t)}.bind(this),y=function(e){return Sd(this,n),!!e&&(!j||!m.has(e)&&(m.add(e),!0))}.bind(this),C=p.map(function(e,i){var t=this;Sd(this,n);var a=y(e.companyName),l=a?(0,o.jsx)("div",{className:"storeName-OduMH",children:e.companyName}):null,c=(0,xo.qm)(e.inDealerInventory)&&!1===e.inDealerInventory,h=(d-1)*u+i,p=(0,o.jsx)(Io,{isSold:c,dealerAskingPrice:e.dealerAskingPrice,valueBadge:e.valueBadge,vehicleCondition:e.vehicleCondition,msrp:e.msrp}),m=(0,xo.lN)(e),f=(0,xo.qm)(e.maxDamageSeverity)?(0,o.jsx)(hc,{severity:e.maxDamageSeverity}):null,b=(0,xo.qm)(e.imageCount)?(0,o.jsx)(fc,{imageCount:e.imageCount,imageCountPercent:e.imageCountPercent,imageCountStatus:e.imageCountStatus,layout:Ee.D.MOBILE}):null,j=Ed(c,e,p,f,b),C=(0,o.jsxs)("div",{className:"mobileContentHead-Hotpq","data-storename":a,children:[(0,o.jsx)(Ft.A,{vehicle:m,compCode:e.compCode,vdpLinkStatus:c?Bt.f.SUPPRESSED:Bt.f.ACTIVE,openRecalls:e.openRecallCount,newDataRecords:e.newDataRecordCount,isProspect:!1,vehicleCondition:e.vehicleCondition,displayFourPillar:"New"!==v,displayWidth:s===Ee.D.MOBILE?"narrow":"wide"}),(0,o.jsx)("div",{style:{marginTop:"8px"},children:j})]}),w=x[h]?(0,o.jsx)("div",{className:"mobileExpanderBody-nV79K",children:(0,o.jsx)(dd,{details:e,isPayPerVin:r,isDesktop:!1,isSold:c,isSingleLocationDealer:!1})}):null;return(0,o.jsxs)(xi.c,{id:"expander-"+h,open:x[h],children:[(0,o.jsxs)(bi.b,{onClick:function(){return Sd(this,t),g(i)}.bind(this),className:"uirItemHeader-x3EDO","data-storename":a,children:[l,C]}),(0,o.jsx)(ji.C,{children:w})]},h+"-"+e.vin)}.bind(this)),w=void 0;return l===zu.fulfilled?w=i.listingsCount>0?(0,o.jsxs)("div",{style:{marginLeft:"24px",marginRight:"24px"},children:[(0,o.jsx)(fi.n,{border:"contained",children:C}),(0,o.jsx)("div",{className:"accordionPaginator-GeIhl",children:a})]}):(0,o.jsx)(Vt.A,{}):l===zu.pending?w=(0,o.jsx)(Bi.A,{children:"Fetching Universal Inventory Records..."}):l===zu.rejected&&(w=(0,o.jsx)(vt.A,{headerText:"An unexpected error has occurred",messageText:"Please try again later"})),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"recordsFound-cf9LW",children:i.listingsCount+" Records foun
2d"}),(0,o.jsx)("div",{children:w})]})}return null}.bind(void 0);var Ed=function(e,n,i,t,r){Sd(this,Nd);var s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:wd,children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:i}),(0,o.jsx)(Po,{description:"Run Pre-acquisition",item:n.runPreAcquisition?"Y":"N"}),(0,o.jsx)(Po,{description:"Damage",item:t})]}),(0,o.jsxs)("div",{className:wd,children:[(0,o.jsx)(Po,{description:"Photos",item:r}),(0,o.jsx)(Po,Ad({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,Ad({description:"VDP Views",item:n.uclVdpViews},Hn.f))]})]}),a=(0,o.jsxs)("div",{className:wd,children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:(0,o.jsx)(Oo,{})}),(0,o.jsx)(Po,Ad({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,Ad({description:"VDP Views",item:n.uclVdpViews},Hn.f))," "]}),l=(0,o.jsxs)("div",{className:wd,children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:i}),(0,o.jsx)(Po,{description:"Photos",item:r}),(0,o.jsx)(Po,Ad({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,Ad({description:"VDP Views",item:n.uclVdpViews}
2,Hn.f))]}),c=(0,o.jsxs)("div",{className:wd,children:[(0,o.jsx)(Po,{description:"Vehicle Price",item:(0,o.jsx)(Oo,{})}),(0,o.jsx)(Po,{description:"Photos",item:r}),(0,o.jsx)(Po,Ad({description:"Days on CARFAX",item:n.daysOnCarfax},Hn.f)),(0,o.jsx)(Po,Ad({description:"VDP Views",item:n.uclVdpViews},Hn.f))]}),d=void 0;return n.vehicleCondition===xs.Y5.USED?!1===e?d=s:!0===e&&(d=a):n.vehicleCondition===xs.Y5.NEW&&(!1===e?d=l:!0===e&&(d=c)),d}.bind(void 0);function Dd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Td=function(e){var n=this;Dd(this,void 0);var i=e.data,r=e.isPayPerVin,s=e.tablePagination,a=e.status,l=i.listings,c=new Set;if(l){var d=(0,t.useState)([]),u=d[0],h=d[1],v=(0,t.useState)(!1),p=v[0],m=v[1],f=(0,t.useContext)(Wl),x=f.queryParams,b=f.cclSelection;(0,t.useEffect)(function(){var e=this;Dd(this,n);var i=l.map(function(n){return Dd(this,e),!1}.bind(this));h(i)}.bind(this),[i]),(0,t.useEffect)(function(){var e=this;Dd(this,n);var i=l.map(function(n){return Dd(this,e),p}.bind(this));h(i)}.bind(this),[p]);var j=function(e){var i=this;Dd(this,n);var t=u.map(function(n,t){return Dd(this,i),t===e?!n:n}.bind(this));h(t)}.bind(this),g=x.sortDealers||!1,y=function(e,i){return Dd(this,n),g?e&&!c.has(e)?(c.add(e),(0,o.jsx)(Tn.TD,{children:e})):(0,o.jsx)(Tn.TD,{}):i?(0,o.jsx)(Tn.TD,{children:e}):(0,o.jsx)(Tn.TD,{children:(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",columnGap:"6px"},children:[(0,o.jsx)(qe,{text:"This store is not participating in the CARFAX Car Listings Program. Contact your Rep to get signed up."}),e]})})}.bind(this),C=(g?l.sort((0,le.VE)(function(e){return Dd(this,n),e.companyName}.bind(this))):l).map(function(e,i){var s=this;Dd(this,n);var a=(0,xo.qm)(e.inDealerInventory)&&!1===e.inDealerInventory,l=y(e.companyName,e.isUclEnhanced);return(0,o.jsxs)(t.Fragment,{children:[(0,o.jsx)(Dn.TR,{expanded:u[i],expandButtonLabel:"click to expand row "+i,onExpand:function(){return Dd(this,s),j(i)}.bind(this),children:(0,o.jsx)(Vc,{item:e,storeName:l,rowFormat:b,compCodeForVhr:e.compCode})}),(0,o.jsx)(bd._,{expanded:u[i],children:(0,o.jsx)(dd,{details:e,isPayPerVin:r,isDesktop:!0,isSold:a,isSingleLocationDealer:!1})})]},i+"-"+e.vin)}.bind(this)),w=Ic("New"===b,!0),N=(0,o.jsx)(Sn.D,{stickyPosition:(0,Vn.E)(),expanderColumn:p?"collapse":"expand",expandButtonLabel:"Click to expand all vehicles",onExpandAll:function(){return Dd(this,n),m(!p)}.bind(this),children:w.map(function(e,i){return Dd(this,n),(0,o.jsx)(e,{},i)}.bind(this))}),A=void 0,S=void 0;return a===Xl.fulfilled?i.listingsCount>0?S=(0,o.jsxs)(An.X,{"aria-label":"Owner Group Universal Inventory Report Table",children:[N,(0,o.jsx)(En.v,{children:C})]}):A=(0,o.jsx)(Vt.A,{}):a===Xl.pending?A=(0,o.jsx)(Bi.A,{children:"Fetching Universal Inventory Records..."}):a===Xl.rejected&&(A=(0,o.jsx)(vt.A,{headerText:"An unexpected error has occurred",messageText:"Please try again later"})),(0,o.jsxs)("div",{className:jc,children:[(0,o.jsx)("div",{className:xc,children:i.listingsCount+" Records foun
2d"}),S,A,(0,o.jsx)("div",{className:bc,children:s})]})}return null}.bind(void 0);const Od=(0,d.PA)(Td);const Rd=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.isPayPerVin,i=e.tablePagination,r=e.layout,s=(0,t.useContext)(Wl),a=s.inventoryData,l=s.status;switch((0,xo.rc)()){case Ee.D.DESKTOP:return(0,o.jsx)(Od,{data:a,isPayPerVin:n,tablePagination:i,status:l});case Ee.D.TABLET:return(0,o.jsx)(Pd,{data:a,isPayPerVin:n,layout:r,tablePagination:i,status:l});case Ee.D.MOBILE:return(0,o.jsx)(pd,{data:a,isPayPerVin:n,layout:r,tablePagination:i,status:l,isOwnerview:!0})}}.bind(void 0);var Ld=i(26771);function kd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Id=function(e){var n=this;kd(this,void 0);var i=e.titleRef,r=e.openSortAndFilterMenu,s=(0,t.useContext)(Wl).sortAndFilterCoachmark,a=(0,g.c)().isMobile,l=(0,t.useState)(!0),c=l[0],d=l[1],u=(0,t.useState)(!1),h=u[0],v=u[1];(0,t.useEffect)(function(){var e=this;if(kd(this,n),!h){setTimeout(function(){return kd(this,e),v(!0)}.bind(this),1e3)}return function(){return kd(this,e),v(!1)}.bind(this)}.bind(this),[]),(0,t.useEffect)(function(){kd(this,n),!a&&s.shouldShowCoachmark(1)?d(!0):d(!1)}.bind(this),[s]);var p=function(){kd(this,n),r(),d(!1),s.goToNextCoachmark()}.bind(this),m=function(){kd(this,n),d(!1)}.bind(this);return(0,o.jsxs)(B.A,{"aria-live":"polite","aria-label":"Sort and Filter Update",anchorRef:i,isVisible:h&&c,onClose:s.addUserExperience,indicatorCoordinates:[-26,-5],width:500,position:"bottom",children:[(0,o.jsx)(M.A,{children:(0,o.jsx)("strong",{children:"Sort and filter"})}),(0,o.jsx)(G.A,{children:"You can use the Sort and Filter menu to access advanced filters that will allow you to organize your inventory data and find useful insights."}),(0,o.jsxs)(H.A,{forceMobileLayout:a,children:[(0,o.jsx)(z.A,{type:"tertiary",onClick:m,size:"compact",children:"Remind me later"}),(0,o.jsx)("div",{}),(0,o.jsx)(z.A,{type:"primary",onClick:p,children:"Next"})]})]})}.bind(void 0);function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Vd.apply(null,arguments)}function Fd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Bd=function(e){var n=this;Fd(this,void 0);var i=e.isCarfaxListingsChecked,r=e.onChange,s=e.disabled,a=(0,t.useRef)(null),l=(0,t.useState)(!1),c=l[0],d=l[1];return(0,o.jsxs)("div",{className:"container-STu7u",children:[(0,o.jsxs)("label",{className:"carfaxListings_Label-jBbzU",children:["CARFAX Listings ",(0,o.jsx)("span",{children:"only"})]}),(0,o.jsx)("button",{onClick:function(){return Fd(this,n),d(!0)}.bind(this),ref:a,"aria-label":"More information about CARFAX Listings",children:(0,o.jsx)(Oe.A,{size:20,"aria-hidden":!0})}),(0,o.jsx)(Re.A,{anchorRef:a,isVisible:c,onClose:function(){return Fd(this,n),d(!1)}.bind(this),children:(0,o.jsxs)("ul",{"aria-label":"CARFAX Listings only Information",children:[(0,o.jsx)("li",{children:"Enable to see only vehicles in your CARFAX Car Listings."}),(0,o.jsx)("li",{children:"When disabled, you will also see limited details for unlisted cars in your inventory such as damage severity, open recalls, and new data records."})]})}),(0,o.jsx)(Ae.A,Vd({checked:i,onChange:r,"aria-label":"CARFAX Listings only Toggle",className:"carfaxListings_Toggle-JnCer"},{"data-event":"click","data-category":"filter","data-action":"carfax listings only"},{disabled:s}))]})}.bind(void 0);var _d=i(55091),Ud=i(79553),Md=i(35281);function Gd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Hd=function(e){var n=this;Gd(this,void 0);var i=e.buttonRef,r=(0,t.useContext)(Wl).sortAndFilterCoachmark,s=(0,g.c)().isMobile,a=!s&&r.shouldShowCoachmark(2);return(0,o.jsxs)(B.A,{"aria-live":"polite","aria-label":"Sort Direction Button",anchorRef:i,isVisible:a,onClose:r.addUserExperience,width:395,position:"bottom",scrollableRegion:"#sortAndFilterMenuRegion",portalElement:document.getElementById("sortMenuBackgroun
2d"),children:[(0,o.jsx)(M.A,{children:(0,o.jsx)("strong",{children:"Sort ascending or descending"})}),(0,o.jsx)(G.A,{children:"After selecting a sorting option, you can use this button to toggle between sorting in ascending and descending order."}),(0,o.jsx)(H.A,{forceMobileLayout:s,children:(0,o.jsx)(z.A,{type:"primary",onClick:function(){Gd(this,n),r.addUserExperience()}.bind(this),children:"Got It"})})]})}.bind(void 0);const zd=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.onClick,i=e.isAscending,r=(0,t.useRef)(null);return(0,o.jsxs)(p.Ay,{className:"sortButton-SSj8t",onClick:n,"data-sort-button":"true",theme:"white",size:"medium","aria-label":"Inventory Sort "+(i?"Ascending":"Descending"),ref:r,children:[(0,o.jsxs)("div",{className:"letters-r0Lox","data-ascending":i,children:[(0,o.jsx)("p",{children:"A"}),(0,o.jsx)("p",{children:"Z"})]}),(0,o.jsx)(na.A,{size:24,"aria-hidden":!0}),(0,o.jsx)(Hd,{buttonRef:r})]},i.toString())}.bind(void 0);var Xd=i(8555);const Wd=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.index,i=e.unincluded;return(0,o.jsx)("div",{className:"sliderRegion-ok4nM",children:(0,o.jsx)("div",{className:"sliderRegion_Bar-zONQX","data-type":"severity"+n,"data-unincluded":i})})}.bind(void 0);var Yd="slider-eJOgp";function qd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Zd=function(){var e=this;qd(this,void 0);var n=(0,t.useContext)(Wl),i=n.queryParams,r=n.handleQueryUpdate,s=(0,xo.ls)(i.damageSeverityMin),a=(0,xo.ls)(i.damageSeverityMax);return(0,o.jsxs)("div",{className:"section-l8B_e",children:[(0,o.jsx)("h2",{children:"Damage Severity"}),(0,o.jsxs)("div",{className:"severityLabels-IHD8i",children:[(0,o.jsx)("p",{children:"Very Minor"}),(0,o.jsx)("p",{children:"Moderate"}),(0,o.jsx)("p",{children:"Very Severe"})]}),(0,o.jsxs)("div",{className:"container-apnQx",children:[(0,o.jsx)("div",{className:"container_Inner-KjI6y",children:[1,2,3,4,5,6,7].map(function(n){return qd(this,e),(0,o.jsx)(Wd,{index:n,unincluded:n<s||n>a},n)}.bind(this))}),(0,o.jsx)("input",{className:Yd,type:"range",name:"Damage Severity Minimum",value:s,min:1,max:8,step:1,"aria-label":"Damage Severity Minimum",onChange:function(n){qd(this,e);var i=parseInt(n.target.value),t=(0,xo.tG)(i<a?i:i-1);r("damageSeverityMin",t)}.bind(this)}),(0,o.jsx)("input",{className:Yd,type:"range",name:"Damage Severity Maximum",value:a,min:0,max:7,step:1,"aria-label":"Damage Severity Maximum",onChange:function(n){qd(this,e);var i=parseInt(n.target.value),t=(0,xo.tG)(i>s?i:i+1);r("damageSeverityMax",t)}.bind(this)})]}),(0,o.jsxs)("div",{className:"unknownContainer-iJdOz",children:[(0,o.jsx)("p",{children:"Hide vehicles with Unknown Severity"}),(0,o.jsx)(Xd.Ay,{checked:i.hideUnknownSeverity||!1,onChange:function(){qd(this,e),r("hideUnknownSeverity",!i.hideUnknownSeverity||void 0)}.bind(this),"aria-label":"unknown_severity"})]})]})}.bind(void 0);function Kd(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Qd=function(){var e,n=this;Kd(this,void 0);var i=(0,t.useContext)(Wl),r=i.queryParams,s=i.handleQueryUpdate,a=((null==(e=(0,u.us)().businessUser.ownerGroupAndChildren)?void 0:e.children.filter(function(e){return Kd(this,n),!0===e.active}.bind(this)))||[]).map(function(e){return Kd(this,n),(0,o.jsx)("option",{value:e.compCode,children:e.companyName},e.compCode)}.bind(this))||[];return(0,o.jsxs)("div",{className:"container-BXnbe",children:[(0,o.jsx)("h2",{className:"title-ehpi3",children:"Dealer Name"}),(0,o.jsxs)(Se.A,{"aria-label":"Dealer Name Options",value:r.compCode,onChange:function(e){Kd(this,n),s("compCode",e.target.value)}.bind(this),children:[(0,o.jsx)("option",{value:"",children:"Select a dealer"}),a]}),(0,o.jsxs)("div",{className:"checkboxGroup-fnq3z",children:[(0,o.jsx)("p",{children:"Group results by dealer"}),(0,o.jsx)(Xd.Ay,{checked:r.sortDealers||!1,onChange:function(){Kd(this,n),s("sortDealers",!r.sortDealers||void 0)}.bind(this),"aria-label":"Group By Dealer"})]})]})}.bind(void 0);var Jd=i(67627);function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},$d.apply(null,arguments)}const eu=function(e){var n;!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var i=e.checked,t=e.onChange,r=e.iconName,s=e.badgeType,a=e.label,l=void 0===s?"No Badge":"",c=r?(0,o.jsxs)("div",{className:"iconContainer-LfP25",children:[(0,o.jsx)(Jd.A,{name:r,size:18,"aria-hidden":!0}),(0,o.jsx)("label",{children:a})]}):(0,o.jsx)(Eo.p,{type:s,"aria-label":a,id:a,children:l}),d=((n={})[r?"aria-label":"aria-labelledby"]=a,n);return(0,o.jsxs)("div",{className:"container-LThjX",children:[c,(0,o.jsx)(Xd.Ay,$d({checked:i,onChange:t,className:"input-xp1uh"},d))]})}.bind(void 0);function nu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const iu=function(e){var n,i=this;nu(this,void 0);var r=e.id,s=e.sectionTitle,a=e.isOpen,l=e.onHeaderClick,c=e.rows,d=e.paramsKey,u=(0,t.useContext)(Wl),h=u.queryParams,v=u.handleQueryUpdate,p=d&&null!=(n=h[d])?n:[];return(0,o.jsxs)(xi.c,{id:r,open:a,children:[(0,o.jsx)(bi.b,{onClick:l,children:s}),(0,o.jsx)(ji.C,{children:(0,o.jsx)("div",{className:"container-RIBGv",children:c.map(function(e){var n=this;nu(this,i);var t=p.includes(e.key),r=function(){var i=this;if(nu(this,n),d){var r=t?p.filter(function(n){return nu(this,i),n!=e.key}.bind(this)):[].concat(p,[e.key]);v(d,r.length>0?r:void 0)}}.bind(this);return(0,o.jsx)(eu,{checked:t,onChange:r,label:e.label,iconName:e.icon,badgeType:e.badge},e.key)}.bind(this))})})]})}.bind(void 0);var tu=i(21251),ru=i(85950),su=i(2793);function au(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const ou=function(e){var n=this;au(this,void 0);var i,r=e.title,s=e.paramKey,a=e.isLast,l=(0,t.useContext)(Wl),c=l.queryParams,d=l.handleQueryUpdate,u=c[s];return void 0!==u&&(u=u?"Yes":"No",i=(0,o.jsx)(p.Ay,{theme:"blue-flat",size:"compact",onClick:function(){return au(this,n),d(s,void 0)}.bind(this),children:"Clear Selection"})),(0,o.jsxs)("div",{className:"section-vHuO8","data-last":a,children:[(0,o.jsx)("h2",{className:"title-QQMip",children:r}),(0,o.jsxs)("div",{className:"options-Qdzsz",children:[(0,o.jsxs)(ru.A,{name:s,"aria-label":s,value:u,horizontal:!0,onChange:function(e){return au(this,n),d(s,"Yes"===e.target.value)}.bind(this),children:[(0,o.jsx)(su.A,{value:"Yes"}),(0,o.jsx)(su.A,{value:"No"})]}),i]})]})}.bind(void 0);function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},lu.apply(null,arguments)}function cu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var du="All Listings",uu="New",hu="Used";const vu=function(e){var n=this;cu(this,void 0);var i=e.onClose,r=e.isEnhanced,s=e.isVisible,a=e.isOwnerView,l=(0,u.us)().computedProps,c=(0,t.useContext)(Wl),d=c.inventoryData,h=c.resetQuery,v=c.queryParams,m=c.handleQueryUpdate,f=c.inventorySummary,x=c.cclSelection,b=(0,t.useState)(!1),j=b[0],g=b[1],y=(0,t.useState)(!1),C=y[0],w=y[1],N=(0,t.useState)((0,xo.$q)()),A=N[0],S=N[1],P=(0,t.useState)({accidentStatus:!0,ownerCountStatus:!0,ownerTypeStatus:!0,serviceStatus:!0,valueBadges:!0}),E=P[0],D=P[1];(0,t.useEffect)(function(){var e=this;if(cu(this,n),s){setTimeout(function(){return cu(this,e),w(!0)}.bind(this),600)}else g(!1),w(!1);T()}.bind(this),[s]),(0,t.useEffect)(function(){cu(this,n),m("sortDimension",r?"New"===x?to.bM.DEALER_PRICE:to.bM.PRICE_DROP_TO_NEXT_BADGE:to.bM.VIN)}.bind(this),[x]),(0,t.useEffect)(function(){var e=this;cu(this,n);var i=new URLSearchParams(location.search),t=i.get("filter"),r=i.get("dealerCompCode");return r&&m("compCode",r.reverseCharacters()),t===to.bM.PRICE_INCREASE_OPPORTUNITY&&m("sortDimension",to.bM.PRICE_INCREASE_OPPORTUNITY),T(),window.addEventListener("resize",T),function(){cu(this,e),window.removeEventListener("resize",T)}.bind(this)}.bind(this),[]);var T=function(){cu(this,n),S((0,xo.$q)())}.bind(this),O=v.sortOrder===to.xB.ASCENDING,R=function(e){var i;cu(this,n),D(lu({},E,((i={})[e]=!E[e],i)))}.bind(this),L=function(e){var n=this;void 0===e&&(e=!1),g(!0),w(!1),setTimeout(function(){cu(this,n),i(),e&&h()}.bind(this),600)},k=x===du||x===hu,I=r&&k?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ou,{title:"Is CPO",paramKey:"isCpo"}),(null==f?void 0:f.hasAcquiredFromTradeInLead)&&(0,o.jsx)(ou,{title:"Acquired from Trade-in Lead",paramKey:"acquiredFromTradeInLead",isLast:!0})]}):null,V=l.isHomegrownEligible?(0,o.jsx)(ou,{title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Mc.A,{size:24,"aria-hidden":!0}),"CARFAX Homegrownâ¢"]}),paramKey:"isHomegrown"}):null,F=k?(0,o.jsxs)(o.Fragment,{children:[V,(0,o.jsx)(iu,{id:"accidentStatus",sectionTitle:"Accident/Damage status",isOpen:E.accidentStatus,onHeaderClick:function(){return cu(this,n),R("accidentStatus")}.bind(this),rows:tu.xZ,paramsKey:"accidentDamage"}),(0,o.jsx)(Zd,{}),(0,o.jsx)(iu,{id:"ownerCountStatus",sectionTitle:"Owner Count status",isOpen:E.ownerCountStatus,onHeaderClick:function(){return cu(this,n),R("ownerCountStatus")}.bind(this),rows:tu.q,paramsKey:"owner"}),(0,o.jsx)(iu,{id:"ownerTypeStatus",sectionTitle:"Owner Type status",isOpen:E.ownerTypeStatus,onHeaderClick:function(){return cu(this,n),R("ownerTypeStatus")}.bind(this),rows:tu.XO,paramsKey:"use"}),(0,o.jsx)(iu,{id:"serviceHistoryStatus",sectionTitle:"Service History status",isOpen:E.serviceStatus,onHeaderClick:function(){return cu(this,n),R("serviceStatus")}.bind(this),rows:tu.x7,paramsKey:"service"}),r&&(0,o.jsx)(iu,{id:"valueBadges",sectionTitle:"CARFAX Value Badge",isOpen:E.valueBadges,onHeaderClick:function(){return cu(this,n),R("valueBadges")}.bind(this),rows:tu.qI,paramsKey:"valueBadge"}),(0,o.jsx)(ou,{title:"Run Pre-acquisition",paramKey:"runPreAcquisition"})]}):null,B=void 0;return x===hu?B=xs.Y5.USED:x===uu?B=xs.Y5.NEW:x===du&&(B=void 0),s?(0,o.jsx)("div",{"aria-label":"Menu Backgroun
2d",className:"background-nEQhb",id:"sortMenuBackground",onClick:function(e){cu(this,n),"sortMenuBackground"===e.target.id&&L()}.bind(this),style:A,children:(0,o.jsxs)("div",{"aria-label":"Sort and Filter Menu",className:"container-y0zJq","data-closing":j||void 0,role:"region",children:[(0,o.jsxs)("div",{className:"header-waTAR",children:[(0,o.jsx)("h1",{children:"Sort and Filter"}),(0,o.jsx)(p.Ay,{theme:"white",size:"compact","aria-label":"Close Menu",onClick:function(){cu(this,n),L()}.bind(this),children:(0,o.jsx)(Md.A,{size:24,"aria-hidden":!0})})]}),(0,o.jsxs)("div",{className:"body-gBoLc",id:"sortAndFilterMenuRegion",children:[(0,o.jsxs)(_d.Ay,{className:"sortInput-e7IDE",children:[(0,o.jsx)(Ud.A,{for:"inventorySortOptions",children:"Sort By"}),(0,o.jsxs)("div",{className:"sort_FilterContainer-V2UXs",children:[(0,o.jsx)(Se.A,{"aria-label":"Inventory Sort Options",tabIndex:0,id:"inventorySortOptions",value:v.sortDimension,onChange:function(e){return cu(this,n),m("sortDimension",e.target.value)}.bind(this),children:(0,tu.$A)(r,B).map(function(e){return cu(this,n),(0,o.jsx)("option",{value:e.value,children:e.label},e.value)}.bind(this))}),C&&(0,o.jsx)(zd,{isAscending:O,onClick:function(){return cu(this,n),m("sortOrder",O?to.xB.DESCENDING:to.xB.ASCENDING)}.bind(this)})]})]}),a&&(0,o.jsx)(Qd,{}),(0,o.jsx)("div",{style:{marginLeft:"16px",marginBottom:"3px"},children:(0,o.jsx)(p.Ay,{theme:"blue-flat",size:"compact",onClick:h,children:"Reset Filters"})}),(0,o.jsxs)(fi.n,{border:"bottom",children:[F,(0,o.jsx)(ou,{title:"Has Open Recall",paramKey:"hasOpenRecall"}),I]})]}),(0,o.jsxs)("div",{className:"footer-FT8qR",children:[(0,o.jsxs)(p.Ay,{theme:"blue",onClick:function(){cu(this,n),L()}.bind(this),children:["See ",1!==d.listingsCount?d.listingsCount+" vehicles":"1 vehicle"]}),(0,o.jsx)(p.Ay,{theme:"blue-outline",onClick:function(){cu(this,n);L(!0)}.bind(this),children:"Cancel"})]})]})}):(0,o.jsx)(o.Fragment,{})}.bind(void 0);function pu(){return pu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},pu.apply(null,arguments)}function mu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const fu=function(){var e=this;mu(this,void 0);var n=(0,t.useContext)(Wl),i=n.queryParams,r=n.handleQueryUpdate,s=n.handleMultiQueryUpdate;return(0,o.jsxs)("div",{className:"enhanced-LKDEq",children:[(0,o.jsxs)(Se.A,pu({onChange:function(n){mu(this,e);var i=(0,xo.S8)(n.target.value);r("inDealerInventory",i)}.bind(this),"aria-label":"Inventory Status Filter",value:(0,xo.qO)(i.inDealerInventory),placeholder:"Status",usePlaceholderAsLabel:!0},{"data-event":"click","data-category":"filter","data-action":"status"},{children:[(0,o.jsx)("option",{value:"all",children:"All"}),(0,o.jsx)("option",{value:"active",children:"Active"}),(0,o.jsx)("option",{value:"sold",children:"Sold"})]})),(0,o.jsxs)(Se.A,pu({onChange:function(n){mu(this,e);var i=(0,xo.bc)(n.target.value),t=i.isMissingPhotos,r=i.isMissingPrice;s({isMissingPhotos:!!t||void 0,isMissingPrice:!!r||void 0})}.bind(this),"aria-label":"Listing Optimizations Filter",value:(0,xo.Bh)(i.isMissingPhotos,i.isMissingPrice),placeholder:"Listing Optimizations",usePlaceholderAsLabel:!0},{"data-event":"click","data-category":"filter","data-action":"listing optimizations"},{children:[(0,o.jsx)("option",{value:"all",children:"All Listings"}),(0,o.jsx)("option",{value:"missing-pricing",children:"Missing Pricing"}),(0,o.jsx)("option",{value:"missing-photos",children:"Missing Photos"})]}))]})}.bind(void 0);var xu,bu="noPrint-eWi5T";function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},ju.apply(null,arguments)}function gu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const yu=function(e){var n=this;gu(this,void 0);var i=e.isEnhanced,r=void 0===i||i,s=e.isOwnerView,a=void 0!==s&&s,l=(e.displayDownloadPrint,(0,t.useContext)(Wl)),c=l.setSearch,d=l.queryParams,u=l.handleQueryUpdate,h=l.handleMultiQueryUpdate,v=(l.inventoryData,(0,t.useState)("")),m=v[0],f=v[1],x=(0,t.useState)(!1),b=x[0],j=x[1],g=(0,t.useRef)(null);(0,t.useEffect)(function(){gu(this,n),new URLSearchParams(location.search).get("teaser")===Ld.E.ADVANTAGE_SUBSCRIBER&&h({isUclOnly:!1,runPreAcquisition:!1})}.bind(this),[]);var y=function(){gu(this,n),j(!0)}.bind(this),C=function(e){var i=this;gu(this,n),clearTimeout(xu),xu=setTimeout(function(){return gu(this,i),c(e)}.bind(this),500)}.bind(this),w=r?(0,o.jsx)(fu,{}):null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"filterHeader-LTtKl "+bu,children:[(0,o.jsxs)("div",{className:"filterInputs-jnLHA",children:[(0,o.jsx)(ti.Ay,ju({"aria-label":"Inventory Search",value:m,onChange:function(e){gu(this,n),f(e.target.value),C(e.target.value)}.bind(this),placeholder:"Search by Year, Make, Model, VIN",icon:(0,o.jsx)(rt.A,{size:24,"aria-hidden":!0})},{"data-event":"click","data-category":"inventory","data-action":"vehicle search"})),w]}),(0,o.jsxs)("div",{className:"filterHeaderLastSection-HS7Ln",children:[(0,o.jsx)(Bd,{isCarfaxListingsChecked:d.isUclOnly||!1,onChange:function(){return gu(this,n),u("isUclOnly",!d.isUclOnly||void 0)}.bind(this)}),(0,o.jsx)(p.Ay,{theme:"blue-flat",size:"compact",onClick:y,tabIndex:0,role:"button","aria-label":"Sort and Filter",ref:g,children:"Sort and Filter"})]})]}),(0,o.jsx)(vu,{isVisible:b,onClose:function(){return gu(this,n),j(!1)}.bind(this),isEnhanced:r,isOwnerView:a}),(0,o.jsx)(Id,{titleRef:g,openSortAndFilterMenu:y})]})}.bind(void 0),Cu=i.p+"static/apps/cfo/Prospect_Teaser_Desktop_Header030a5c86f2aa4bd960a6.svg",wu=i.p+"static/apps/cfo/Prospect_Teaser_Desktop_Row9b85b3c5efe5d80c694c.svg",Nu=i.p+"static/apps/cfo/Prospect_Teaser_Mobile5974f816c9186bf809fb.svg",Au=i.p+"static/apps/cfo/Prospect_Teaser_Tablet0cbfb58e33caffc8c93e.svg";var Su="imageDefault-Y1VMd";function Pu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Eu=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX? Upgrade your account to the CARFAX Car Listings program to reach more in-market buyers."}),(0,o.jsxs)("p",{children:["To learn more, call ",(0,o.jsx)("span",{className:"modalPhoneText-W1jJO",children:"1-888-788-7715"}),", or enter your contact information below."]})]}),Du=function(e){var n=this;Pu(this,void 0);var i=e.isProspect,r=e.layout,s=(0,t.useState)(!1),a=s[0],l=s[1];if(!i)return null;var c=(0,o.jsxs)("div",{className:"imageContainer-PEQFd",children:[(0,o.jsx)("img",{className:"imageHeader-t7uoV",src:Cu,alt:""}),(0,o.jsx)("img",{className:Su,src:wu,alt:""})]}),d=(0,o.jsx)("img",{className:Su,src:Au,alt:""}),u=(0,o.jsx)("img",{className:Su,src:Nu,alt:""}),h=r===Ee.D.DESKTOP?c:r===Ee.D.TABLET?d:u,v=function(){Pu(this,n),l(!0)}.bind(this),p=function(){Pu(this,n),l(!1)}.bind(this),f=(0,o.jsx)(m.A,{size:24,"aria-hidden":!0});return(0,o.jsxs)("div",{className:"prospectContainer-b1kfA "+To,children:[(0,o.jsx)(pe.A,{header:"Unlock New Features",subheader:Eu,handleLeadFormClose:p,showLeadFormModal:a}
2),(0,o.jsx)(qi,{message:"Get monthly analytics and tracking on your CARFAX listings.",buttonMessage:"Unlock Analytics",onButtonClick:v,icon:f}),h]})}.bind(void 0);const Tu=(0,d.PA)(Du);function Ou(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Ru=function(e){var n=this;Ou(this,void 0);var i=e.isSmall,r=(0,t.useContext)(Wl),s=r.inventoryData,a=r.currentPage,l=r.setPageNumber,c=r.perPageValue,d=r.setPageSize;return(0,o.jsx)(On.A,{onChange:function(e){Ou(this,n),e.currentPage!==a&&l(e.currentPage),e.perPageValue!==c&&d(e.perPageValue)}.bind(this),currentPage:a,perPageValue:c,totalItems:s.listingsCount,perPageOptions:[10,50,100],"aria-label":"Universal Inventory Report Table pagination",tooltipTheme:"light",size:i?"small":"large"})}.bind(void 0);function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Lu.apply(null,arguments)}function ku(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function s(i,t,r,s){var l=t&&t.prototype instanceof o?t:o,c=Object.create(l.prototype);return Iu(c,"_invoke",function(i,t,r){var s,o,l,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,o=0,l=e,h.n=i,a}};function v(i,t){for(o=i,l=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>3?(r=p===t)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(o=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,o=0))}if(r||i>1)return a;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),o=d,l=p;(n=o<2?e:l)||!u;){s||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,s){if(o||(r="next"),n=s[r]){if(!(n=n.call(s,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=s.return)&&n.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);s=e}else if((n=(u=h.n<0)?l:i.call(t,h))!==a)break}catch(n){s=e,o=1,l=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),c}var a={};function o(){}function l(){}function c(){}n=Object.getPrototypeOf;var d=[][t]?n(n([][t]())):(Iu(n={},t,function(){return this}),n),u=c.prototype=o.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Iu(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,Iu(u,"constructor",c),Iu(c,"constructor",l),l.displayName="GeneratorFunction",Iu(c,r,"GeneratorFunction"),Iu(u),Iu(u,r,"Generator"),Iu(u,t,function(){return this}),Iu(u,"toString",function(){return"[object Generator]"}),(ku=function(){return{w:s,m:h}})()}function Iu(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Iu=function(e,n,i,t){function s(n,i){Iu(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},Iu(e,n,i,t)}function Vu(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function Fu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Bu={"data-event":"click","data-category":"download","data-action":"report summary"},_u={"data-event":"click","data-category":"print","data-action":"report summary"},Uu=function(){var e=this;Fu(this,void 0);var n=(0,t.useContext)(Wl),i=n.setIsPrinting,r=n.searchParam,s=n.queryParams,a=n.exportStatus,l=n.setExportStatus,c=(0,u.us)().businessUser,d=(0,t.useState)(Ee.D.DESKTOP),h=d[0],v=d[1],m=(0,t.useState)(!1),f=m[0],x=m[1],b=X.A.uclDashboard.summary;(0,t.useEffect)(function(){Fu(this,e);var n=c.isProspectDealer,i=X.A.ui.navigation.layout;x(n),v(i)}.bind(this),[X.A.ui.navigation.layout,c.actingAsOwnerGroup]);var j=function(){var e,n=(e=ku().m(function e(){var n,i,t,a,o,d,u,h,v;return ku().w(function(e){for(;;)switch(e.n){case 0:return l(Xl.pending),t=(0,xo.FX)(s,{searchTerm:r,isEnhanced:!f}),a="All Listings",s.vehicleCondition&&(o=ke.A.firstLetterCapitalize(s.vehicleCondition),a=o+" Cars"),d=s.compCode?null==(n=c.findChild(s.compCode))?void 0:n.companyName:void 0,u=null!=d?d:null==(i=c.subscriber)?void 0:i.companyName,h="CARFAX Inventory Report - "+u+" - "+a+".xlsx",e.n=1,(0,Pe.Gt)(t,h);case 1:v=e.v,l(500===v?Xl.rejected:Xl.fulfilled);case 2:return e.a(2)}},e)}),function(){var n=this,i=arguments;return new Promise(function(t,r){var s=e.apply(n,i);function a(e){Vu(s,t,r,a,o,"next",e)}function o(e){Vu(s,t,r,a,o,"throw",e)}a(void 0)})});return function(){return n.apply(this,arguments)}}(),g=function(){Fu(this,e),b.handlePrint,i(!0)}.bind(this),y=h!==Ee.D.MOBILE?(0,o.jsxs)("div",{className:"downloadPrintButtons-iMLlH",children:[(0,o.jsx)(p.Ay,Lu({onClick:g,theme:"blue-flat",size:"small","aria-label":"Print Inventory Report"},_u,{children:(0,o.jsx)(Te.A,{size:24,"aria-hidden":!0})}
2)),(0,o.jsx)(p.Ay,Lu({onClick:j,theme:"blue-flat",size:"small","aria-label":"Download Inventory Report"},Bu,{children:a===Xl.pending?(0,o.jsx)(R.A,{size:20,"aria-hidden":!0}):(0,o.jsx)(Ne.A,{size:24,"aria-hidden":!0})}))]}):null,C=(X.A.ui.navigation.layout===Ee.D.DESKTOP||X.A.ui.navigation.layout===Ee.D.TABLET)&&(0,o.jsxs)("div",{className:"pageHeader-Tuds8 "+bu,children:[(0,o.jsx)(ht.Z,{messageType:"sell"}),y]});return(0,o.jsx)(o.Fragment,{children:C})}.bind(void 0);const Mu=(0,d.PA)(Uu);var Gu=void 0;function Hu(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var zu=function(e){return e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e[void 0]="undefined",e}({}),Xu=function(){var e;Hu(this,Gu);var n=(0,u.us)().businessUser,i=n.actingAsOwnerGroup,t=(null==(e=n.subscriber)?void 0:e.payPerVin)||!1,r=n.isProspectDealer,s=(0,le.eW)(),a=X.A.ui.navigation.layout;return(0,o.jsx)(Kl,{fetchUniversalInventoryReportContent:xo.h$,getInventorySummary:xo.PQ,children:(0,o.jsx)(Wu,{layout:a,isOwnerView:i,isPayPerVin:t,isProspect:r,isHomegrownInventory:s})})}.bind(void 0),Wu=function(e){var n=this;Hu(this,Gu);var i=e.layout,r=e.isOwnerView,s=e.isPayPerVin,a=e.isProspect,d=e.isHomegrownInventory,u=(0,t.useContext)(Wl),h=u.inventoryData,v=u.status,p=u.hasRecallOrDataRecord,m=u.isPrinting,f=u.setIsPrinting,x=u.exportStatus,b=u.inventorySummary,j=u.cclSelection,g=u.setCclSelection,y=(0,t.useState)(!1),C=y[0],w=y[1];(0,t.useEffect)(function(){Hu(this,n),x===zu.rejected?w(!0):w(!1)}.bind(this),[x]),(0,t.useEffect)(function(){var e=this;Hu(this,n),!0===m&&(window.scroll(0,0),window.setTimeout(function(){var n=this;Hu(this,e),window.print(),setTimeout(function(){Hu(this,n),f(!1)}.bind(this),100)}.bind(this),1e3))}.bind(this),[m]);var N=h.listings.length>0&&(0,o.jsx)(Ru,{isSmall:i===Ee.D.MOBILE}),A=r?(0,o.jsx)(Rd,{isPayPerVin:s,tablePagination:N,layout:i}):(0,o.jsx)(Cd,{layout:i,isPayPerVin:s,tablePagination:N,isProspect:a}),S=(null==b?void 0:b.hasNewInventory)&&(null==b?void 0:b.hasUsedInventory)&&(0,o.jsx)("div",{className:"chipSelector-tX9CX",children:(0,o.jsx)(Gr.Ay,{cclSelection:j,onChange:function(e){Hu(this,n),g(Cs(e))}.bind(this),layout:X.A.ui.navigation.layout})}),P=C&&(0,o.jsxs)(L.Eg,{role:"alert",theme:"red",className:"noExportAlertMessage-HYoEZ",children:[(0,o.jsx)(L.He,{}),(0,o.jsx)(L.p,{children:"An unexpected error occured in your export."}),(0,o.jsx)(L.A_,{onClick:function(){return Hu(this,n),w(!1)}.bind(this)})]});return(0,o.jsxs)(o.Fragment,{children:[p&&(0,o.jsx)($l,{isPayPerVin:s}),P,(0,o.jsx)(Mu,{}),(0,o.jsx)(Tu,{isProspect:a&&!d,layout:i}),S,(0,o.jsx)(yu,{isEnhanced:!a,displayDownloadPrint:i!==Ee.D.MOBILE,isOwnerView:r}),v===zu.fulfilled&&(0,o.jsx)(l,{children:(0,o.jsx)(c,{asOfDate:"",lastDays:Vi("ucl","inventory")})}),A]})}.bind(void 0);const Yu=(0,d.PA)(Xu);var qu=void 0;function Zu(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function s(i,t,r,s){var l=t&&t.prototype instanceof o?t:o,c=Object.create(l.prototype);return Ku(c,"_invoke",function(i,t,r){var s,o,l,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,o=0,l=e,h.n=i,a}};function v(i,t){for(o=i,l=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>3?(r=p===t)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(o=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,o=0))}if(r||i>1)return a;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),o=d,l=p;(n=o<2?e:l)||!u;){s||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,s){if(o||(r="next"),n=s[r]){if(!(n=n.call(s,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=s.return)&&n.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);s=e}else if((n=(u=h.n<0)?l:i.call(t,h))!==a)break}catch(n){s=e,o=1,l=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),c}var a={};function o(){}function l(){}function c(){}n=Object.getPrototypeOf;var d=[][t]?n(n([][t]())):(Ku(n={},t,function(){return this}),n),u=c.prototype=o.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Ku(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,Ku(u,"constructor",c),Ku(c,"constructor",l),l.displayName="GeneratorFunction",Ku(c,r,"GeneratorFunction"),Ku(u),Ku(u,r,"Generator"),Ku(u,t,function(){return this}),Ku(u,"toString",function(){return"[object Generator]"}),(Zu=function(){return{w:s,m:h}})()}function Ku(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ku=function(e,n,i,t){function s(n,i){Ku(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},Ku(e,n,i,t)}function Qu(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function Ju(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var s=e.apply(n,i);function a(e){Qu(s,t,r,a,o,"next",e)}function o(e){Qu(s,t,r,a,o,"throw",e)}a(void 0)})}}function $u(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var eh={summaryTrending:{},summarChildren:{},getAltChildren:function(){$u(this,qu)}.bind(void 0),getSummary:function(){$u(this,qu)}.bind(void 0)},nh=(0,t.createContext)(eh),ih=function(e){switch($u(this,qu),e){case"summary":return(0,o.jsx)(Al,{});case"leads":return(0,o.jsx)(Ur,{});case"inventory":return(0,o.jsx)(Yu,{})}}.bind(void 0),th=function(e){var n=this;$u(this,qu);var i=e.tab,r=(0,t.useState)(Nr.Di),s=r[0],a=r[1],l=(0,t.useState)(Nr.HN),c=l[0],d=l[1],u=(0,t.useState)(!0),h=u[0],v=u[1],p=(0,t.useState)(Pe.Pl),m=p[0],f=p[1],x=(0,t.useState)(Nr.HN),b=x[0],j=x[1],g=(0,t.useState)(!0),y=g[0],C=g[1],w=Ve.A,N=function(){var e=Ju(Zu().m(function e(){var n,i;return Zu().w(function(e){for(;;)switch(e.n){case 0:if(!h&&w.reportView===m){e.n=3;break}return e.n=1,w.fetchUclSummary(w.reportView);case 1:return n=e.v,a(n),e.n=2,w.fetchUclGroupSummary(w.reportView);case 2:i=e.v,d(i),v(!1),f(w.reportView),w.setUpdatedDate(i.updatedDate),e.n=4;break;case 3:w.setUpdatedDate(c.updatedDate);case 4:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();(0,t.useEffect)(function(){$u(this,n),h||N()}.bind(this),[w.reportView]);var A=function(){var e=Ju(Zu().m(function e(){var n;return Zu().w(function(e){for(;;)switch(e.n){case 0:if(!y){e.n=2;break}return e.n=1,w.fetchUclGroupSummary(Pe.qW);case 1:n=e.v,j(n),C(!1),w.setUpdatedDate(n.updatedDate),e.n=3;break;case 2:w.setUpdatedDate(b.updatedDate);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),S={summaryTrending:s,summaryChildren:c,altViewChildren:b,getSummary:N,getAltChildren:A},P=ih(i);return(0,o.jsx)(nh.Provider,{value:S,children:P})}.bind(void 0);th.displayName="Owner Performance Selector";var rh=(0,d.PA)(th);var sh=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);e.displayFactors;return(0,o.jsx)(Yu,{})}.bind(void 0);sh.displayName="UCL Inventory Selector";const ah=sh;var oh,lh,ch,dh,uh=i(36174),hh=i(53142),vh=i(44133),ph=void 0;function mh(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return fh(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?fh(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fh(e,n){(null==n||n>e.length)&&(n=e.length);for(var i=0,t=Array(n);i<n;i++)t[i]=e[i];return t}function xh(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}function bh(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,jh(t.key),t)}}function jh(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var t=i.call(e,n||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}oh=uh.X.EMAIL,lh=uh.X.PHONE;var gh=function(){return e=function(){this[oh]=0,this[lh]=0},(n=[{key:"total",get:function(){return this.EMAIL+this.PHONE}}])&&bh(e.prototype,n),i&&bh(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();ch=xs.Y5.USED,dh=xs.Y5.NEW;
2var yh=function(){this[ch]=new gh,this[dh]=new gh,this.all=new gh},Ch=function(){var e,n;return xh(this,ph),null!=(e=null==(n=new URLSearchParams(window.location.search).get($c.Y))?void 0:n.toUpperCase())?e:""}.bind(void 0),wh=function(e,n){var i=this;xh(this,ph);var r=(0,t.useMemo)(function(){return xh(this,i),Nh(e,n)}.bind(this),[e,n]);return{counts:r,hasUsed:r[xs.Y5.USED].total>0,hasNew:r[xs.Y5.NEW].total>0}}.bind(void 0),Nh=function(e,n){xh(this,ph);for(var i,t=new yh,r=mh(e);!(i=r()).done;){var s=i.value;n&&s.connectionType===uh.X.PHONE||(t[s.vehicleCondition][s.connectionType]++,t.all[s.connectionType]++)}return t}.bind(void 0),Ah=function(e){var n=this;xh(this,ph);var i=e.leads,t=e.searchTerm,r=e.vehicleCondition,s=e.leadType;return i.filter(function(e){var i=this;if(xh(this,n),t.length>0)for(var a,o=Object.values(e).map(function(e){return xh(this,i),null!=e?e.toString():""}.bind(this)).join(" "),l=mh(t.toUpperCase().trim().split(/\s+/));!(a=l()).done;){var c=a.value;if(!o.toUpperCase().includes(c.toUpperCase()))return!1}return(!r||e.vehicleCondition.toUpperCase()===r)&&(!s||e.connectionType.toUpperCase()===s)}.bind(this))}.bind(void 0),Sh=function(e){switch(xh(this,ph),e.toUpperCase()){case uh.X.EMAIL:return"customerEmail";case uh.X.PHONE:return"phoneNumber";default:return"customerName"}}.bind(void 0),Ph=function(e){var n,i;return xh(this,ph),{vin:e.vin||null,make:e.make||null,model:e.model||null,makeYear:(null==(n=e.modelYear)?void 0:n.toString())||null,stockNumber:e.stockNumber,odometerReading:(null==(i=e.odometerReading)?void 0:i.toString())||null,fourPillars:{accident:{text:e.accidentIconText,icons:{image:e.accidentIcon}},service:{text:e.serviceIconText,icons:{image:e.serviceIcon},count:e.serviceRecordCount?e.serviceRecordCount:0},use:{text:e.useIconText,icons:{image:e.useIcon}},owners:{text:e.ownerIconText,icons:{image:e.ownerIcon}}}}}.bind(void 0),Eh=function(e){xh(this,ph);var n=new Date(e);return isNaN(n.getTime())?["N/A"]:[(0,s.m8)(n),(0,s.po)(n)]}.bind(void 0),Dh=function(e){var n=this;xh(this,ph);var i=e.leads,t=e.sortDirection,r=void 0===t?"desc":t,s=e.sortBy,a=void 0===s?"transactionDate":s;return i.toSorted(function(e,i){xh(this,n);var t="asc"===r?1:-1,s=e[a]||"",o=i[a]||"";return s.length>0&&o.length>0?s.localeCompare(o)*t:s.length>0?-1:o.length>0?1:0}.bind(this))}.bind(void 0),Th=function(e){xh(this,ph);var n=["Date/Time","Vehicle Information","Odometer","Stock Number","VIN","Vehicle Price","Value Badge","Connection Type","Customer Name","Phone Number","Call Duration","Call Audio URL","Email Address","Comments"];return e&&n.splice(1,0,"Vehicle Type"),n}.bind(void 0),Oh=function(e){xh(this,ph);var n=new Date(e);return isNaN(n.getTime())?"N/A":n.toLocaleDateString("en-US",{year:"2-digit",month:"2-digit",day:"2-digit",hour:"numeric",minute:"2-digit"})}.bind(void 0),Rh=function(e){var n;return xh(this,ph),e.connectionType===uh.X.EMAIL?[e.modelYear&&e.make&&e.model?e.modelYear+" "+e.make+" "+e.model:"N/A",(null==(n=e.odometerReading)?void 0:n.toString())||"N/A",e.stockNumber||"N/A",e.vin||"N/A"]:["N/A","N/A","N/A","N/A"]}.bind(void 0),Lh=function(e){return xh(this,ph),e.connectionType===uh.X.PHONE?[e.callDuration||"N/A",e.callAudioUrl||"N/A"]:["N/A","N/A"]}.bind(void 0),kh=function(e){return xh(this,ph),e.connectionType===uh.X.EMAIL?[e.customerEmail||"N/A",e.comments||"N/A"]:["N/A","N/A"]}.bind(void 0),Ih=function(e,n,i){xh(this,ph);for(var t,r="All Listings"===n,s=[Th(r)],a=mh(e);!(t=a()).done;){var o=t.value,l=[Oh(o.transactionDate)];r&&l.push(o.vehicleCondition.toUpperCase());var c=o;l.push.apply(l,Rh(o).concat([c.dealerAskingPrice?"$"+c.dealerAskingPrice+".00":"N/A",c.valueBadge||"N/A",o.connectionType,o.customerName||"N/A",o.phoneNumber?ke.A.phone(o.phoneNumber):"N/A"],Lh(o),kh(o))),s.push(l)}var d=new Date,u=("0"+(d.getMonth()+1)).slice(-2),h=("0"+d.getDate()).slice(-2),v=d.getFullYear()+u+h,p="All Listings"===n?n:n+" Cars";(0,le.fn)(vh.ht+(0,vh.e2)(s),"CARFAX "+i+" Leads 60 Days - "+v.toString()+" - "+p+".csv",null)}.bind(void 0),Vh=function(e,n){return xh(this,ph),e?uh.X.EMAIL:"all"!==n?n:void 0}.bind(void 0);function Fh(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Bh=(0,hh.W)("UclBuyerLeads"),_h=Bh[0],Uh=Bh[1];const Mh=function(e){var n=this;Fh(this,void 0);var i=e.leads,r=e.childCompCode,s=e.handleDownload,a=e.handlePrint,l=e.isProspect,c=e.children,d=wh(i,l),u=d.counts,h=d.hasUsed,v=d.hasNew,p=v&&h,m=(0,t.useState)("desc"),f=m[0],x=m[1],b=(0,t.useState)("transactionDate"),j=b[0],g=b[1],y=(0,t.useState)(function(){return Fh(this,n),{cclSelection:v&&!h?"New":"All Listings",searchTerm:Ch(),leadType:"all"}}.bind(this)),C=y[0],w=y[1],N=(0,t.useState)(function(){Fh(this,n);var e=Vh(l,C.leadType),t=(0,Gr.$w)(C.cclSelection);return Ah({leads:i,searchTerm:C.searchTerm,vehicleCondition:t,leadType:e})}.bind(this)),A=N[0],S=N[1],P=(0,t.useState)(function(){return Fh(this,n),Dh({leads:A,sortDirection:f,sortBy:j})}
2.bind(this)),E=P[0],D=P[1],T=(0,t.useState)(!1),O=T[0],R=T[1],L=(0,t.useState)(1),k=L[0],I=L[1],V=function(){var e=this;Fh(this,n),R(!0),setTimeout(function(){Fh(this,e),window.scrollTo({top:0}),a(),R(!1)}.bind(this),200)}.bind(this),F=function(){Fh(this,n),s(E,C.cclSelection)}.bind(this),B="New"===C.cclSelection?u[xs.Y5.NEW]:"Used"===C.cclSelection?u[xs.Y5.USED]:u.all,_=function(e,i){Fh(this,n),g(e),x(i),D(Dh({leads:E,sortDirection:i,sortBy:e}))}.bind(this),U={leads:E,childCompCode:r,handleDownload:F,handlePrint:V,filters:C,shouldDisplayCclSelector:p,leadCounts:B,currentPage:k,setCurrentPage:I,isPrinting:O,isProspect:l,sortDirection:f,setSortDirection:x,sortBy:j,setSortBy:g,handleNewSort:_,handleNewFilters:function(e){var n,t,r;void 0===e&&(e={});var s={searchTerm:null!=(n=e.searchTerm)?n:C.searchTerm,cclSelection:null!=(t=e.cclSelection)?t:C.cclSelection,leadType:null!=(r=e.leadType)?r:C.leadType},a=Vh(l,s.leadType),o=(0,Gr.$w)(s.cclSelection),c=Ah({leads:i,vehicleCondition:o,searchTerm:s.searchTerm,leadType:a});I(1),w(s),S(c),D(Dh({leads:c,sortDirection:f,sortBy:j}))}};return(0,o.jsx)(_h.Provider,{value:U,children:c})}.bind(void 0);var Gh="segment-AiZ6v",Hh="segment_Title-AqvcN";const zh=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n,i=e.lead,t=e.compCode,r=e.isAllSelected,s=Eh(i.transactionDate),a=s[0],l=s[1];i.connectionType===uh.X.EMAIL&&(n=Ph(i));var c=i.customerName?(0,o.jsx)("div",{children:i.customerName}):null,d=i.phoneNumber?(0,o.jsx)("div",{children:i.phoneNumber}):null,u=i,h=i.connectionType===uh.X.EMAIL&&u.customerEmail?(0,o.jsx)("div",{children:(0,o.jsx)("a",{className:"email-tV7df",href:"mailto:"+u.customerEmail,children:u.customerEmail})}):null,v=i.leadSource?(0,o.jsx)("div",{children:i.leadSource}):null,p=i.vehicleCondition===xs.Y5.USED||r;return(0,o.jsxs)("div",{className:"card-R7XrF",children:[(0,o.jsxs)("div",{className:Gh,children:[(0,o.jsx)("div",{className:"dateTime-yS5nR",children:a+", "+l}),(0,o.jsx)(Ft.A,{vdpLinkStatus:Bt.f.ACTIVE,vehicle:n,compCode:t,vehicleCondition:i.vehicleCondition,displayFourPillar:p})]}),(0,o.jsxs)("div",{className:Gh,children:[(0,o.jsx)("div",{className:Hh,children:"Vehicle Price"}),(0,o.jsx)(Io,{isSold:!1,dealerAskingPrice:u.dealerAskingPrice,valueBadge:u.valueBadge,vehicleCondition:i.vehicleCondition})]}),(0,o.jsxs)("div",{className:Gh,children:[(0,o.jsx)("div",{className:Hh,children:"Connection Type"}),(0,o.jsx)(Et,{item:i})]}),(0,o.jsxs)("div",{className:Gh,children:[(0,o.jsx)("div",{className:Hh,children:"Customer Information"}),c,d,h]}),(0,o.jsxs)("div",{className:Gh,children:[(0,o.jsx)("div",{className:Hh,children:"Lead Source"}),v]})]})}.bind(void 0);function Xh(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Wh=function(){var e=this;Xh(this,void 0);var n=Uh(),i=n.sortBy,t=n.sortDirection,r=n.handleNewSort,s=n.leads,a=n.childCompCode,l=n.filters,c=n.currentPage,d=n.setCurrentPage,u=Sh(l.leadType),h=function(n){Xh(this,e);var i=n.target.value.split("|"),t=i[0],s=i[1];r(t,s)}.bind(this),v=10*(c-1),p=s.slice(v,v+10).map(function(n){return Xh(this,e),(0,o.jsx)(zh,{lead:n,compCode:a,isAllSelected:"All Listings"===l.cclSelection},Math.random())}.bind(this));return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"sort-Jgmtn",children:(0,o.jsxs)(Se.A,{value:i+"|"+t,onChange:h,"aria-label":"Buyer Lead Type",placeholder:"Sort by",usePlaceholderAsLabel:!0,children:[(0,o.jsx)("option",{value:"transactionDate|desc",children:"Time (Newest-Oldest)"}),(0,o.jsx)("option",{value:"transactionDate|asc",children:"Time (Oldest-Newest)"}),(0,o.jsx)("option",{value:u+"|asc",children:"Customer Information (A-Z)"}),(0,o.jsx)("option",{value:u+"|desc",children:"Customer Information (Z-A)"}),(0,o.jsx)("option",{value:"connectionType|asc",children:"Connection Type (A-Z)"}),(0,o.jsx)("option",{value:"connectionType|desc",children:"Connection Type (Z-A)"})]})}),p,(0,o.jsx)("div",{className:"pagination-jFpcY",children:(0,o.jsx)(On.A,{onChange:function(n){Xh(this,e);var i=n.currentPage;window.scrollTo({top:0,behavior:"smooth"}),d(i)}.bind(this),currentPage:c,perPageValue:10,totalItems:s.length,"aria-label":"Buyer Leads Per Page",size:"small"})})]})}.bind(void 0);var Yh=void 0;function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},qh.apply(null,arguments)}function Zh(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Kh=function(e){var n=this;Zh(this,Yh);var i=e.isTogSingleLocation,r=Uh(),s=r.leads,a=r.childCompCode,l=r.filters,c=r.isPrinting,d=r.currentPage,u=r.setCurrentPage,h=r.sortDirection,v=r.sortBy,p=r.handleNewSort,m=(0,g.c)().screenWidth,f=(0,t.useState)(10),x=f[0],b=f[1],j=(d-1)*x,y=j+x,C=m>=720&&m<1280,w=function(e){Zh(this,n),p(e,e!==v||"desc"===h?"asc":"desc")}.bind(this),N=(c?s:s.slice(j,y)).map(function(e,i){var t;Zh(this,n),e.connectionType===uh.X.EMAIL&&(t=Ph(e));var r=e.vehicleCondition===xs.Y5.USED||"All Listings"===l.cclSelection,s=e;return(0,o.jsxs)(Dn.TR,{className:"tableRows-hf3kp",children:[(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Jh,{item:e})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Ft.A,{vdpLinkStatus:Bt.f.ACTIVE,vehicle:t,compCode:a,vehicleCondition:e.vehicleCondition,displayFourPillar:r,displayWidth:C?"narrow-break":"narrow"})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Io,{isSold:!1,dealerAskingPrice:s.dealerAskingPrice,valueBadge:s.valueBadge,vehicleCondition:e.vehicleCondition})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(Et,{item:e,compact:C})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)($h,{item:e,compact:C})}),(0,o.jsx)(Tn.TD,{children:(0,o.jsx)(ev,{item:e})})]},i)}.bind(this)),A=i?0:(0,Vn.E)(),S=Sh(l.leadType),P=function(e){return Zh(this,n),v===e?h:void 0}.bind(this);return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"container-ayCud",children:[(0,o.jsx)("div",{className:"recordsFound-nUzb6",children:s.length+" Records foun
2d"}),(0,o.jsxs)(An.X,{"aria-label":"Buyer Leads Table",children:[(0,o.jsxs)(Sn.D,{stickyPosition:A,children:[(0,o.jsx)(Pn.TH,{width:110,className:"dateColumn-ku6sp",onClick:function(){return Zh(this,n),w("transactionDate")}.bind(this),sortDirection:P("transactionDate"),children:"Date/Time"}),(0,o.jsx)(Pn.TH,{className:"vehicleInfoColumn-fpMuK",children:"Vehicle Information"}),(0,o.jsx)(Pn.TH,{width:150,children:"Vehicle Price"}),(0,o.jsx)(Pn.TH,{className:"connectionTypeColumn-jD1Pt",onClick:function(){return Zh(this,n),w("connectionType")}.bind(this),sortDirection:P("connectionType"),children:C?"Connection":"Connection Type"}),(0,o.jsx)(Pn.TH,{className:"customerInfoColumn-CQhfA",onClick:function(){return Zh(this,n),w(S)}.bind(this),sortDirection:P(S),children:C?"Customer":"Customer Information"}),(0,o.jsx)(Pn.TH,{onClick:function(){return Zh(this,n),w("leadSource")}.bind(this),sortDirection:P("leadSource"),children:C?"Source":"Lead Source"})]}),(0,o.jsx)(En.v,{children:N})]}),!c&&(0,o.jsx)("div",{className:"pagination-IOPj7",children:(0,o.jsx)(On.A,{onChange:function(e){Zh(this,n);var i=e.currentPage,t=e.perPageValue;window.scrollTo({top:0,behavior:"smooth"}),u(i),b(t)}.bind(this),currentPage:d,perPageValue:x,totalItems:s.length,"aria-label":"Buyer Leads Per Page"})})]})})}.bind(void 0);Kh.displayName="CCL Buyer Leads Table";const Qh=Kh;var Jh=function(e){Zh(this,Yh);var n=e.item,i=Eh(n.transactionDate),t=i[0],r=i[1];return(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:t}),(0,o.jsx)("p",{children:r})]})}.bind(void 0),$h=function(e){Zh(this,Yh);var n=e.item,i=e.compact,t=n.customerName?(0,o.jsx)("p",qh({},Hn.f,{children:n.customerName})):void 0,r=n.phoneNumber?(0,o.jsx)("p",qh({},Hn.f,{children:ke.A.phone(n.phoneNumber)})):void 0,s=n.connectionType===uh.X.EMAIL&&n.customerEmail?(0,o.jsx)("p",{className:"emailBox-CVPl2 "+(i?"emailCompact-P5O3H":""),children:(0,o.jsx)("a",qh({className:"emailLink-ZtrUZ",href:"mailto:"+n.customerEmail},Hn.f,{children:n.customerEmail}))}):void 0;return(0,o.jsxs)("div",{children:[t,r,s]})}.bind(void 0),ev=function(e){Zh(this,Yh);var n=e.item.leadSource;return(0,o.jsx)("div",{children:n})}.bind(void 0);const nv=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.isTogSingleLocation,i=Uh(),t=i.leads,r=i.filters,s=i.isProspect,a=(0,g.c)().isMobile;return s&&r.leadType===uh.X.PHONE?(0,o.jsx)(it,{id:"udd-mobile-leads-prospects-unlock-button",header:"Unlock Your Phone Leads",subHeader:"Used car shoppers on Carfax.com want to connect to your dealership! View your dealership's phone leads and respond right here.",img:Xi,buttonLabel:"Unlock Phone Leads"}):0===t.length?(0,o.jsx)(Vt.A,{}):a?(0,o.jsx)(Wh,{}):(0,o.jsx)(Qh,{isTogSingleLocation:n})}.bind(void 0);function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},iv.apply(null,arguments)}const tv=function(){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var e=Uh(),n=e.handleDownload,i=e.handlePrint,t=Hi();return(0,o.jsxs)("div",{className:"container-ERWWG",children:[(0,o.jsx)(p.Ay,iv({"aria-label":"Print Buyer Leads",id:"udd-leads-print-button",children:(0,o.jsx)(Te.A,{size:24,title:"print","aria-hidden":!0}),theme:"blue-flat",disabled:!1,onClick:i},t.print,{size:"small"})),(0,o.jsx)(p.Ay,iv({"aria-label":"Download Buyer Leads",id:"udd-leads-download-button",children:(0,o.jsx)(Ne.A,{size:24,title:"download","aria-hidden":!0}),theme:"blue-flat",disabled:!1,onClick:n},t.download,{size:"small"}))]})}.bind(void 0);function rv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const sv=function(e){var n=this;rv(this,void 0);var i=e.isTogSingleLocation,t=Uh(),r=t.shouldDisplayCclSelector,s=t.leadCounts,a=t.isProspect,l=t.filters,c=t.handleNewFilters,d=(0,g.c)().isMobile,u=function(e){rv(this,n),c({searchTerm:e.target.value})}.bind(this),h=function(e){rv(this,n),c({leadType:e.target.value})}.bind(this),v=function(e){rv(this,n),c({cclSelection:e})}.bind(this),p=r?(0,o.jsx)(Gr.Ay,{cclSelection:l.cclSelection,onChange:v,layout:d?Ee.D.MOBILE:Ee.D.DESKTOP}):(0,o.jsx)("div",{}),m=d?null:(0,o.jsxs)("div",{className:"headerTop-x0THQ noPrint",children:[(0,o.jsx)(ht.Z,{messageType:"sell"}),(0,o.jsx)(tv,{})]});return(0,o.jsxs)("div",{className:"page-YeHiz",children:[(0,o.jsxs)("div",{className:"container-UYTpj",children:[m,p,(0,o.jsxs)("div",{className:"filters-JakMV noPrint",children:[(0,o.jsx)(ti.Ay,{"aria-label":"Buyer Leads Search",placeholder:"Search by Year, Make, Model, VIN",value:l.searchTerm,onChange:u,icon:(0,o.jsx)(rt.A,{size:24,role:"img","aria-hidden":!0})}
2),(0,o.jsxs)(Se.A,{value:l.leadType,onChange:h,"aria-label":"Buyer Lead Type",placeholder:"Filter by",usePlaceholderAsLabel:!0,children:[(0,o.jsxs)("option",{value:"all",children:["All Leads (",s.total,")"]}),(0,o.jsxs)("option",{value:uh.X.EMAIL,children:["Email Leads (",s[uh.X.EMAIL],")"]}),(0,o.jsxs)("option",{value:uh.X.PHONE,children:["Phone Leads (",s[uh.X.PHONE],")"]})]})]}),(0,o.jsx)("div",{className:"prospectsContainer-pTdfm",children:(0,o.jsx)(Ji,{title:"View your dealership's phone leads.",isVisible:a})})]}),(0,o.jsx)(nv,{isTogSingleLocation:i})]})}.bind(void 0);function av(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function s(i,t,r,s){var l=t&&t.prototype instanceof o?t:o,c=Object.create(l.prototype);return ov(c,"_invoke",function(i,t,r){var s,o,l,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,o=0,l=e,h.n=i,a}};function v(i,t){for(o=i,l=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>3?(r=p===t)&&(l=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(o=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,o=0))}if(r||i>1)return a;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),o=d,l=p;(n=o<2?e:l)||!u;){s||(o?o<3?(o>1&&(h.n=-1),v(o,l)):h.n=l:h.v=l);try{if(c=2,s){if(o||(r="next"),n=s[r]){if(!(n=n.call(s,l)))throw TypeError("iterator result is not an object");if(!n.done)return n;l=n.value,o<2&&(o=0)}else 1===o&&(n=s.return)&&n.call(s),o<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),o=1);s=e}else if((n=(u=h.n<0)?l:i.call(t,h))!==a)break}catch(n){s=e,o=1,l=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),c}var a={};function o(){}function l(){}function c(){}n=Object.getPrototypeOf;var d=[][t]?n(n([][t]())):(ov(n={},t,function(){return this}),n),u=c.prototype=o.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ov(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return l.prototype=c,ov(u,"constructor",c),ov(c,"constructor",l),l.displayName="GeneratorFunction",ov(c,r,"GeneratorFunction"),ov(u),ov(u,r,"Generator"),ov(u,t,function(){return this}),ov(u,"toString",function(){return"[object Generator]"}),(av=function(){return{w:s,m:h}})()}function ov(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}ov=function(e,n,i,t){function s(n,i){ov(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},ov(e,n,i,t)}function lv(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function cv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var dv=function(e){var n=this;cv(this,void 0);var i=e.isTogSingleLocation,r=(0,t.useState)(),s=r[0],a=r[1],d=(0,t.useState)(!1),h=d[0],v=d[1],p=(0,me.Lg)().session,m=(0,u.us)().businessUser,f=p.actingAsCompCode;if(""!==Ie.A.selectedChildLocation.compCode&&(f=Ie.A.selectedChildLocation.compCode),(0,t.useEffect)(function(){var e;cv(this,n),(e=av().m(function e(){var n;return av().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,$a._.getBuyerLeads(f);case 1:n=e.v,a(n),e.n=3;break;case 2:e.p=2,e.v,v(!0);case 3:return e.a(2)}},e,null,[[0,2]])}),function(){var n=this,i=arguments;return new Promise(function(t,r){var s=e.apply(n,i);function a(e){lv(s,t,r,a,o,"next",e)}function o(e){lv(s,t,r,a,o,"throw",e)}a(void 0)})})()}.bind(this),[f]),h)return(0,o.jsx)(vt.A,{});if(void 0===s)return(0,o.jsx)(Bi.A,{children:"Fetching Dashboard Leads..."});var x=function(e,i){var t;cv(this,n);var r=Ie.A.selectedChildLocationIsVisible?Ie.A.selectedChildLocation.storeName:null==(t=m.subscriber)?void 0:t.companyName;Ih(e,i,r||"")}.bind(this);return(0,o.jsxs)(Mh,{leads:s.leads,childCompCode:f,handleDownload:x,handlePrint:function(){cv(this,n),window.print()}.bind(this),isProspect:m.isProspectDealer,children:[(0,o.jsx)(sv,{isTogSingleLocation:i}),(0,o.jsx)(l,{isModal:i,children:(0,o.jsx)(c,{asOfDate:ke.A.date(s.updatedDate),lastDays:Vi("ucl","leads")})})]})}.bind(void 0);const uv=dv;
2var hv=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.displayFactors;return(0,o.jsx)(uv,{isTogSingleLocation:n.isTogSingleLocation||!1})}.bind(void 0);hv.displayName="UCL Leads Selector";const vv=hv,pv=i.p+"static/apps/cfo/udd_prospect_content_2_sample_data4cf85fbc62154552d808.jpg";function mv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var fv=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX? Upgrade your account to the CARFAX Car Listings program to reach more in-market buyers."}),(0,o.jsx)("p",{children:"To learn more, call 1-888-788-7715, or enter your contact information below."})]}),xv=function(){var e,n=this;mv(this,void 0);var i=(0,t.useState)(!1),r=i[0],s=i[1];(0,t.useEffect)(function(){mv(this,n),X.A.subscriber.isCarfax4Life||s(!0)}.bind(this),[]);var a=function(){mv(this,n),s(!1)}.bind(this);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(pe.A,{handleLeadFormClose:a,showLeadFormModal:r,header:"Unlock New Features",subheader:fv}),(0,o.jsx)("div",{style:{margin:"24px"},children:(0,o.jsx)(lt,{title:"Summary",subtitle:"Program Overview",timespan:""})}),(0,o.jsx)(Ji,{title:Wp,isVisible:X.A.subscriber.isProspectDealer||(null==(e=X.A.subscriber.subscriber)?void 0:e.payPerVin)||!1}),(0,o.jsx)("div",{style:{margin:"0 24px"},children:(0,o.jsx)("img",{src:pv,alt:"No dashboard information"})})]})}.bind(void 0);const bv=(0,d.PA)(xv);var jv=i(86168),gv=void 0;function yv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Cv=function(e){return e.SUCCESS="SUCCESS",e.PENDING="PENDING",e.ERROR_NO_DATA="ERROR_NO_DATA",e.ERROR_NO_COMP_CODE="ERROR_NO_COMP_CODE",e.ERROR_UNEXPECTED="ERROR_UNEXPECTED",e}({}),wv=function(e){var n=this;yv(this,gv);var i=(0,t.useState)([]),r=i[0],s=i[1],a=(0,t.useState)(void 0),o=a[0],l=a[1];return(0,t.useEffect)(function(){var i=this;yv(this,n),e?(l(Cv.PENDING),$a._.getBuyersConnectionsReportList(e).then(function(e){if(yv(this,i),e.length>0){var n=(0,jv.XR)(e,"Car Listings Buyer Connections Report","xlsx");s(n),l(Cv.SUCCESS)}else l(Cv.ERROR_NO_DATA)}.bind(this)).catch(function(e){yv(this,i),console.log("ERROR: ",e),l(Cv.ERROR_UNEXPECTED)}.bind(this))):l(Cv.ERROR_NO_COMP_CODE)}.bind(this),[e]),{reports:r,view:o}}.bind(void 0),Nv=function(e,n){yv(this,gv),e&&n&&(0,jv.HX)(e,n)}.bind(void 0),Av=function(e){return yv(this,gv),"All Listings"===e?"VIN-level view of buyer connections details, by month":"New"===e?"VIN-level view of New Car buyer connection details, by month":"VIN-level view of Used Car buyer connection details, by month"}.bind(void 0);const Sv=i.p+"static/apps/cfo/connectiona3e86f01085b6335e86e.svg";var Pv=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.title,i=e.text;return(0,o.jsxs)("div",{id:"buyer-connection-card-unavailable-mobile",className:"mobile-card cpo-inventory",children:[(0,o.jsx)("div",{className:"mobile-card-title",children:n}),(0,o.jsxs)("div",{className:"no-data-container-content-mobile",children:[(0,o.jsx)("div",{className:"no-data-container-image",children:(0,o.jsx)("img",{id:"no-data-card-image",src:Sv,alt:""})}),(0,o.jsx)("div",{className:"no-data-container-text",children:i})]})]})}.bind(void 0);function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Ev.apply(null,arguments)}function Dv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const Tv=function(e){var n=this;Dv(this,void 0);var i=e.compCode,r=e.companyName,s=e.cclSelection,a=wv(i),l=(0,g.c)().isMobile,c=(0,t.useState)(void 0),d=c[0],u=c[1];(0,t.useEffect)(function(){Dv(this,n),u(void 0)}.bind(this),[]);var h=function(e){var i=this;Dv(this,n);var t=a.reports.find(function(n){return Dv(this,i),n.displayName===e.target.value}.bind(this));u(t)}.bind(this),v=l?"mobile-card cpo-inventory":"cpo-container noPrint",m=l?"mobile-card-title":"table_c
2ard__title_desktop",f=l?"report-controls-mobile":"report-controls";switch(a.view){case Cv.SUCCESS:var x=a.reports.map(function(e){return Dv(this,n),e.displayName}.bind(this));return(0,o.jsxs)("div",{className:v,children:[(0,o.jsx)("div",{className:m,children:"Buyer Connections Report"}),(0,o.jsx)("p",{className:"select-report-label",children:Av(s)}),(0,o.jsxs)("div",{className:f,children:[(0,o.jsxs)(Se.A,{id:"udd-summary-buyer-connections-report-date-range-select",value:null==d?void 0:d.displayName,onChange:h,isSmall:!1,placeholder:"Select Month",displaySelectedAs:null==d?void 0:d.displayName,children:[(0,Le.A)({items:x,defaultTextContent:"Select Month"}).defaultOption,(0,Le.A)({items:x}).originalOptions]}),(0,o.jsx)(p.Ay,Ev({id:"udd-summary-buyer-connections-report-download-button",theme:"blue",className:"cpo-report-download-button",onClick:function(){return Dv(this,n),Nv(r,d)}.bind(this),disabled:!d||"Select Month"===d.displayName,iconLeft:(0,o.jsx)(Ne.A,{size:24,"aria-hidden":!0})},{"data-event":"click","data-category":"download","data-action":"buyer connections report"},{children:"Download Report"}))]})]});case Cv.PENDING:return(0,o.jsx)(Bi.A,{});case Cv.ERROR_NO_DATA:return(0,o.jsxs)("div",{id:"buyer-connection-card-no-data-mobile",className:"mobile-card cpo-inventory",style:{flex:"1",padding:"24px"},children:[(0,o.jsx)("div",{className:"mobile-card-title",children:"Buyer Connections Report"}),(0,o.jsx)(_i.A,{title:"Sorry, no buyer connection reports available.",showLastUpdated:!0,showImage:!1})]});default:return(0,o.jsx)(Pv,{title:"Buyer Connections",text:"There are no Buyer Connections Reports."})}}.bind(void 0);var Ov=void 0;function Rv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Lv=function(e){return e.SUCCESS="SUCCESS",e.PENDING="PENDING",e.ERROR_NO_DATA="ERROR_NO_DATA",e.ERROR_NO_COMP_CODE="ERROR_NO_COMP_CODE",e.ERROR_UNEXPECTED="ERROR_UNEXPECTED",e}({}),kv=function(e){var n=this;Rv(this,Ov);var i=(0,t.useState)([]),r=i[0],s=i[1],a=(0,t.useState)(void 0),o=a[0],l=a[1];return(0,t.useEffect)(function(){var i=this;Rv(this,n),e?(l(Lv.PENDING),$a._.getCpoReportList(e).then(function(e){if(Rv(this,i),e.length>0){var n=(0,jv.XR)(e,"Car Listings Co-op Report","pdf");s(n),l(Lv.SUCCESS)}else l(Lv.ERROR_NO_DATA)}.bind(this)).catch(function(e){Rv(this,i),console.log("ERROR: ",e),l(Lv.ERROR_UNEXPECTED)}.bind(this))):l(Lv.ERROR_NO_COMP_CODE)}.bind(this),[e]),{reports:r,view:o}}.bind(void 0),Iv=function(e,n){Rv(this,Ov),e&&n&&(0,jv.HX)(e,n)}.bind(void 0),Vv=function(e){return Rv(this,Ov),"All Listings"===e?"Monthly inventory report including New/Used/Certified status":"New"===e?"VIN-level view of New Car inventory, by month":"Monthly inventory report including Used/Certified status"}.bind(void 0);function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Fv.apply(null,arguments)}function Bv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const _v=function(e){var n=this;Bv(this,void 0);var i=e.compCode,r=e.companyName,s=e.cclSelection,a=kv(i),l=(0,g.c)().isMobile,c=(0,t.useState)(void 0),d=c[0],u=c[1];(0,t.useEffect)(function(){Bv(this,n),u(void 0)}.bind(this),[]);var h=function(e){var i=this;Bv(this,n);var t=a.reports.find(function(n){return Bv(this,i),n.displayName===e.target.value}.bind(this));u(t)}.bind(this),v=l?"mobile-card cpo-inventory":"cpo-container noPrint",m=l?"mobile-card-title":"table_card__title_desktop",f=l?"report-controls-mobile":"report-controls";switch(a.view){case Lv.SUCCESS:var x=a.reports.map(function(e){return Bv(this,n),e.displayName}.bind(this));return(0,o.jsxs)("div",{className:v,children:[(0,o.jsx)("div",{className:m,children:"Monthly Inventory Report"}),(0,o.jsx)("p",{className:"select-report-label",children:Vv(s)}),(0,o.jsxs)("div",{className:f,children:[(0,o.jsxs)(Se.A,{id:"udd-summary-monthly-inventoy-report-date-range-select",value:null==d?void 0:d.displayName,onChange:h,isSmall:!1,placeholder:"Select Month",displaySelectedAs:null==d?void 0:d.displayName,children:[(0,Le.A)({items:x,defaultTextContent:"Select Month"}).defaultOption,(0,Le.A)({items:x}).originalOptions]}),(0,o.jsx)(p.Ay,Fv({id:"udd-summary-monthly-inventory-report-download-button",theme:"blue",className:"cpo-report-download-button",onClick:function(){return Bv(this,n),Iv(r,d)}.bind(this),disabled:!d||"Select Month"===d.displayName,iconLeft:(0,o.jsx)(Ne.A,{size:24,"aria-hidden":!0})},{"data-event":"click","data-category":"download","data-action":"monthly inventory report"},{children:"Download Report"}))]})]});case Lv.PENDING:return(0,o.jsx)(Bi.A,{});case Lv.ERROR_NO_DATA:return(0,o.jsxs)("div",{id:"monthly-inventory-card-no-data-mobile",className:"mobile-card cpo-inventory",style:{flex:"1",padding:"24px"},children:[(0,o.jsx)("div",{className:"mobile-card-title",children:"Monthly Inventory Report"}),(0,o.jsx)(_i.A,{title:"No Monthly Inventory Reports available.",showLastUpdated:!0,showImage:!1})]});default:return(0,o.jsx)(Pv,{title:"Certified Pre-Owned Inventory",text:"There are no Certified Pre-Owned Reports."})}}.bind(void 0);function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Uv.apply(null,arguments)}function Mv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Gv=function(e){var n=this;Mv(this,void 0);var i=e.cclSelection,t=e.layout,r=X.A.uclDashboard.summary,s={"data-event":"click","data-category":"download","data-action":"report summary"},a=r.availableReportViews.map(function(e){return Mv(this,n),e.displayName}.bind(this)),l=function(){Mv(this,n);var e=r.reportView,t=r.getDownloadReportName(e,i);(0,Pe.OE)(!1,e,t,i)}.bind(this),c=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.Ay,{"aria-label":"print",children:(0,o.jsx)(Te.A,{size:24,title:"print","aria-hidden":!0}),theme:"blue-flat",className:"optionsBarItem",onClick:r.handlePrint,disabled:r.disabledFlag,size:"small"}),(0,o.jsx)(p.Ay,Uv({"aria-label":"download",children:(0,o.jsx)(Ne.A,{size:24,title:"download","aria-hidden":!0}),theme:"blue-flat",className:"optionsBarItem",onClick:l,disabled:r.disabledFlag},s,{size:"small"}))]}),d=(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",columnGap:"24px"},children:[(0,o.jsx)(p.Ay,{"aria-label":"print",children:(0,o.jsx)(Te.A,{size:24,title:"print","aria-hidden":!0}),theme:"blue-flat",className:"optionsBarItem",onClick:r.handlePrint,disabled:r.disabledFlag,size:"small"}),(0,o.jsx)(p.Ay,Uv({"aria-label":"download",children:(0,o.jsx)(Ne.A,{size:24,title:"download","aria-hidden":!0}),theme:"blue-flat",className:"optionsBarItem",onClick:l,disabled:r.disabledFlag},s,{size:"small"}))]}),u=void 0;return t===Ee.D.DESKTOP?u=c:t===Ee.D.TABLET&&(u=d),(0,o.jsxs)("div",{className:"optionsBar-"+t+" summaryNoPrint",children:[r.availableReportViews&&r.availableReportViews.length>0&&(0,o.jsx)(Se.A,{"aria-label":"select date range",className:"date-range-select",value:r.reportView.displayName,onChange:r.handleReportViewChange,displaySelectedAs:r.reportView.displayName,placeholder:"Date range",usePlaceholderAsLabel:!0,children:(0,Le.A)({items:a}).originalOptions}),u]})}.bind(void 0);const Hv=(0,d.PA)(Gv);var zv=void 0;function Xv(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Wv=function(e){return e.Phone="Phone Leads",e.Email="Email/Lead Form",e.Map="Map to Your Dealership",e.Website="Your Website",e.SharedByPhone="Shared by Phone",e.SharedByEmail="Shared by Email",e}(Wv||{}),Yv=(Wv.Email,Wv.SharedByPhone,Wv.SharedByEmail,Wv.Phone,Wv.Map,Wv.Website,{isProspectDealer:!1,connections:[{type:"email",count:0,label:Wv.Email,color:cn.A.yellow,isProspectData:!1},{type:"sharesPhone",count:0,label:Wv.SharedByPhone,color:cn.A["blue-dark"],isProspectData:!1},{type:"sharesEmail",count:0,label:Wv.SharedByEmail,color:cn.A.purple,isProspectData:!1},{type:"phone",count:0,label:Wv.Phone,color:cn.A.green,isProspectData:!0},{type:"map",count:0,label:Wv.Map,color:cn.A.teal,isProspectData:!0},{type:"yourWebsite",count:0,label:Wv.Website,color:cn.A["red-shade"],isProspectData:!0}],totalCounts:0}),qv=function(e){var n=this;Xv(this,zv);var i=!e.period.isUcl,t=i?0:$r(e.period.phoneLeads)+$r(e.period.dealerWebsiteClicks)+$r(e.period.mapClicks),r=$r(e.period.phoneShares)+$r(e.period.emailLeads)+$r(e.period.emailShares)+t,s=structuredClone(Yv),a=function(e){var i=this;return Xv(this,n),s.connections.filter(function(n){return Xv(this,i),n.type===e}.bind(this))[0]}.bind(this);return s.isProspectDealer=i,a("email").count=$r(e.period.emailLeads),a("sharesPhone").count=$r(e.period.phoneShares),a("sharesEmail").count=$r(e.period.emailShares),a("phone").count=$r(e.period.phoneLeads),a("map").count=$r(e.period.mapClicks),a("yourWebsite").count=$r(e.period.dealerWebsiteClicks),s.totalCounts=r,s}.bind(void 0);function Zv(e){var n=this;return(e.isProspectDealer?e.connections.filter(function(e){return Xv(this,n),!e.isProspectData}.bind(this)):e.connections).sort(function(e,i){return Xv(this,n),i.count-e.count}.bind(this)).map(function(e){return Xv(this,n),e.color}.bind(this))}function Kv(e){var n=this;return(e.isProspectDealer?e.connections.filter(function(e){return Xv(this,n),!e.isProspectData}.bind(this)):e.connections).sort(function(e,i){return Xv(this,n),i.count-e.count}.bind(this)).map(function(e){return Xv(this,n),e.label}.bind(this))}var Qv=function(e){return Xv(this,zv),{labels:Kv(e),colors:Zv(e),dataLabels:{formatter:function(e){return e<7?"":Math.round(e)+"%"},style:{fontSize:"1em",fontWeight:600,fontFamily:"Roboto,Helvetica,Arial,sans-serif"},dropShadow:{enabled:!1}},plotOptions:{pie:{donut:{size:"49%"}
2,expandOnClick:!1}},legend:{show:!1}}}.bind(void 0),Jv=function(){Xv(this,zv);var e={normal:{filter:{type:"none",value:0}}};return{colors:[cn.A["grey-light"],cn.A["grey-lightest"],cn.A["grey-light"],cn.A["grey-lightest"]],dataLabels:{enabled:!1},plotOptions:{pie:{donut:{size:"49%"},expandOnClick:!1}},legend:{show:!1},states:{hover:e.normal,active:e.normal},tooltip:{enabled:!1}}}.bind(void 0);function $v(){return $v=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},$v.apply(null,arguments)}function ep(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var np=function(e){var n=this;ep(this,void 0);var i=e.rowItems,t=e.shouldHideData,r=e.totalCount,s=i.map(function(e){ep(this,n);var i,s=e.label,a=e.color,l=e.count,c=t?s:s+" ("+l+")";if(r){var d=(l/r*100).toFixed(0);i=(0,o.jsxs)("span",$v({className:"ucl-buyer-connection-legend__row--percentage"},Hn.f,{children:[d,"%"]}))}return(0,o.jsxs)("li",{className:"ucl-buyer-connection-legend__row",children:[(0,o.jsx)("span",{className:"ucl-buyer-connection-legend__marker",children:(0,o.jsx)("svg",{viewBox:"0 0 14 14",children:(0,o.jsx)("circle",{cx:"7",cy:"7",r:"7",fill:a})})}),(0,o.jsx)("span",{children:c}),i]},s+"-"+l)}.bind(this));return(0,o.jsx)("ul",{className:"ucl-buyer-connection-legend__list",children:s})}.bind(void 0);function ip(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var tp=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX? Upgrade your account to the CARFAX Car Listings program to reach more in-market buyers."}),(0,o.jsx)("p",{children:"To learn more, call 1-888-788-7715, or enter your contact information below."})]}),rp=(0,d.PA)(function(e){var n=this;ip(this,void 0);var i,r=e.buyerConnectionsSummary,s=(0,t.useState)(!1),a=s[0],l=s[1],c=r.connections,d=function(){ip(this,n),l(!0)}.bind(this),u=function(){ip(this,n),l(!1)}.bind(this);if(r.isProspectDealer){c=r.connections.filter(function(e){return ip(this,n),!e.isProspectData}.bind(this));var h=r.connections.filter(function(e){return ip(this,n),e.isProspectData}.bind(this));i=(0,o.jsxs)("div",{onClick:d,className:"ucl-buyer-connection-legend__prospect",children:[(0,o.jsx)(np,{rowItems:h,shouldHideData:!0}),(0,o.jsx)(p.Ay,{theme:"white",size:"compact","aria-label":"locked button",className:"ucl-buyer-connection-legend__prospect--locked",children:(0,o.jsx)(m.A,{size:24,"aria-hidden":!0})})]})}return(0,o.jsxs)("div",{className:"ucl-buyer-connection-legend",children:[(0,o.jsx)(pe.A,{handleLeadFormClose:u,showLeadFormModal:a,header:"Unlock New Features",subheader:tp}),(0,o.jsx)(np,{rowItems:c,shouldHideData:!1,totalCount:r.totalCounts}),i]})}.bind(void 0));function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},sp.apply(null,arguments)}function ap(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var op=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX? Upgrade your account to the CARFAX Car Listings program to reach more in-market buyers."}),(0,o.jsx)("p",{children:"To learn more, call 1-888-788-7715, or enter your contact information below."})]});const lp=(0,d.PA)(function(e){var n=this;ap(this,void 0);var i=e.id,r=e.message,s=e.isProspectDealer,a=(0,g.c)().isMobile,l=(0,t.useState)(!1),c=l[0],d=l[1],u=function(){ap(this,n),d(!0)}.bind(this),h=function(){ap(this,n),d(!1)}.bind(this);if(s){var v={marginLeft:"12px"};return a&&(v.alignSelf="center"),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(pe.A,{handleLeadFormClose:h,showLeadFormModal:c,header:"Unlock New Features",subheader:op}),(0,o.jsxs)("div",{className:"prospectsBannerCardFooter-DfLHl",style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},onClick:u,children:[(0,o.jsx)("p",{className:"prospectsBannerCardFooter__text-h2Np3",children:r}),(0,o.jsx)("div",{style:sp({},v),children:(0,o.jsx)(p.Ay,{id:i,theme:"blue",size:a?"medium":"large",iconLeft:(0,o.jsx)(m.A,{size:24,"aria-hidden":!0}),children:(0,o.jsx)("p",{style:{whiteSpace:"nowrap"},children:"Unlock Now"})})})]})]})}}.bind(void 0));var cp=(0,d.PA)(function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.isConnection?"Increase your buyer connections with additional touch points available only on CARFAX Car Listings":"Unlock even more ready-to-buy phone leads with CARFAX Car Listings.";return(0,o.jsx)(lp,{isProspectDealer:!0,id:"udd-summary-buyer-connection-upsell-button",message:n})}.bind(void 0));function dp(){return dp=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},dp.apply(null,arguments)}function up(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const hp=(0,d.PA)(function(e){var n=this;up(this,void 0);var i=e.data,r=e.layout,s=e.titlePrefix,a=(0,t.useState)(Yv),l=a[0],c=a[1],d=(0,t.useState)([]),u=d[0],h=d[1],v=(0,t.useState)(!0),p=v[0],m=v[1],f=function(){up(this,n),m(!p)}.bind(this);(0,t.useEffect)(function(){up(this,n);var e=qv(i);c(e),h(function(e){var n=this;if(0===e.totalCounts)return[20,65,5,10];var i=[];return i=e.isProspectDealer?e.connections.filter(function(e){return Xv(this,n),!e.isProspectData}.bind(this)).map(function(e){return Xv(this,n),e.count}.bind(this)):e.connections.map(function(e){return Xv(this,n),e.count}.bind(this)),i.sort(function(e,i){return Xv(this,n),i-e}.bind(this))}(e))}.bind(this),[i]);var x=l.isProspectDealer,b=l.totalCounts,j=r===Ee.D.MOBILE,g=(j?"mobile-card":"cfx-card")+(x&&j?"-locked-buyer-connections":""),y=b>0?Qv(l):Jv(),C="Buyer Connections",w=b>0,N=0===b?(0,o.jsx)("p",{children:"No Data Available"}):null,A=(0,o.jsx)("div",{className:"cfx-card__body",children:(0,o.jsx)("div",{className:"buyer-chart buyer-chart--apex",children:(0,o.jsxs)("div",{className:"buyer-chart__wrapper","data-prospect":x,children:[(0,o.jsxs)("div",dp({className:"buyer-chart__wrapper--main"},Hn.f,{children:[(0,o.jsx)(Ps.A,{options:y,series:u,type:"donut",height:260,width:260}),N]})),w&&(0,o.jsx)(rp,{buyerConnectionsSummary:l,isProspectDealer:x})]})})}),S=(0,o.jsxs)("div",{className:"cfx-card__header",children:[(0,o.jsx)("p",{className:"noBold",children:s}),(0,o.jsx)("b",{children:C})]}),P=j?(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:s}),(0,o.jsxs)("p",{children:[" ",C]})]}):S;return j?(0,o.jsx)(fi.n,{border:"contained",className:"ucl-accordion",children:(0,o.jsxs)(xi.c,{id:"expander-3",open:p,children:[(0,o.jsx)(bi.b,{onClick:f,children:P}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:{borderTop:"1px solid #BDBDBD",paddingTop:"16px"},children:[A,x&&(0,o.jsx)(cp,{isConnection:!0})]})})]})}):(0,o.jsxs)("div",{className:g,children:[P,A,x&&(0,o.jsx)(cp,{isConnection:!0})]})}.bind(void 0));var vp=i(68161),pp=i(71303),mp=i(10081);const fp=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.image;return(0,o.jsx)("div",{className:"framedImageCircle-aDBhe",children:(0,o.jsx)("div",{className:"framedImageCircle_container-TSFVp",children:n})})}.bind(void 0);function xp(){return xp=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},xp.apply(null,arguments)}function bp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var jp=function(e){return e.DEFAULT="",e.BOLD="-bold",e}({}),gp=function(e){var n=this;bp(this,void 0);var i=e.rowImage,t=e.rowTitle,r=e.rowTitleStyle,s=e.rowValue,a=e.rowLocked,l=e.rowBreakDown,c=e.handleLockedRowClick,d=a?(0,o.jsx)(m.A,{size:24,"aria-hidden":!0}):ke.A.numberWithCommas(s),u=l?(0,o.jsx)("div",{className:"ucl-reporting__row--breakdown",children:l}):null,h=function(){bp(this,n),c&&a&&c()}.bind(this);return(0,o.jsxs)("div",{onClick:h,className:"ucl-reporting__row","data-locked":a||void 0,children:[(0,o.jsx)(fp,{image:i}),(0,o.jsx)("p",{className:"ucl-reporting__row--title"+r,children:t}),(0,o.jsx)("p",xp({className:"ucl-reporting__row--value"},Hn.f,{children:d})),u]})}.bind(void 0);function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},yp.apply(null,arguments)}function Cp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var wp="Buyer Leads",Np=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{children:"Want more out of CARFAX? Upgrade your account to the CARFAX Car Listings program to reach more in-market buyers."}),(0,o.jsx)("p",{children:"To learn more, call 1-888-788-7715, or enter your contact information below."})]});const Ap=function(e){var n,i,r,s=this;Cp(this,void 0);var a=e.data,l=e.layout,c=e.titlePrefix,d=(0,u.us)().businessUser,h=(0,t.useState)(!0),v=h[0],p=h[1],m=(0,t.useState)(!1),f=m[0],x=m[1],b=function(){Cp(this,s),x(!0)}.bind(this),j=function(){Cp(this,s),x(!1)}.bind(this),g=function(){Cp(this,s),p(!v)}.bind(this),y=!a.period.isUcl,C=null!=(n=a.period.emailLeadsCarfaxWebsite)?n:0,w=null!=(i=a.period.emailLeadsDealerWebsite)?i:0,N=null!=(r=a.period.emailLeadsPartnerWebsite)?r:0,A=function(e){Cp(this,s);var n=e.label,i=e.value;return(0,o.jsx)("li",{children:(0,o.jsxs)("div",{className:"ucl-reporting__row--breakdown-item",children:[(0,o.jsx)("span",{children:n}),(0,o.jsx)("span",{children:ke.A.numberWithCommas(i)})]})})}.bind(this),S={rowImage:(0,o.jsx)(vp.A,{size:24,"aria-hidden":!0}),rowTitle:"Emails",rowTitleStyle:jp.BOLD,rowValue:a.period.emailLeads,rowBreakDown:(0,o.jsxs)("ul",{className:"ucl-reporting__row--breakdown-list",children:[A({label:"CARFAX Car Listings Leads",value:C}),A({label:"Dealer Website Leads",value:w}),A({label:"Other Instant CARFAX Report Leads",value:N})]})},P={rowImage:(0,o.jsx)(pp.A,{size:24,"aria-hidden":!0}),rowTitle:"Phone",rowTitleStyle:jp.BOLD,rowValue:a.period.phoneLeads,rowLocked:d.isProspectDealer,handleLockedRowClick:function(){return Cp(this,s),b()}.bind(this)},E={rowImage:(0,o.jsx)(mp.A,{size:24,"aria-hidden":!0}),rowTitle:"Followed Cars",rowTitleStyle:jp.BOLD,rowValue:a.period.savedCars},D=(0,o.jsxs)("div",{className:"cfx-card__body",children:[(0,o.jsx)(pe.A,{handleLeadFormClose:j,showLeadFormModal:f,header:"Unlock New Features",subheader:Np}),(0,o.jsxs)("div",{className:"ucl-reporting__rows",children:[(0,o.jsx)(gp,yp({},S)),(0,o.jsx)(gp,yp({},P)),(0,o.jsx)(gp,yp({},E))]})]}),T=(0,o.jsxs)("div",{className:"cfx-card__header",children:[(0,o.jsx)("p",{className:"noBold",children:c}),(0,o.jsx)("b",{children:wp})]}),O=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:c}),(0,o.jsx)("p",{children:wp})]}),R=l===Ee.D.MOBILE?O:T;return l===Ee.D.MOBILE?(0,o.jsx)(fi.n,{border:"contained",children:(0,o.jsxs)(xi.c,{id:"buyer-leads-expander",open:v,children:[(0,o.jsx)(bi.b,{onClick:g,children:R}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:{borderTop:"1px solid #BDBDBD"},children:[D,y&&(0,o.jsx)(cp,{})]})})]})}):(0,o.jsxs)("div",{className:"cfx-card",children:[R,D,y&&(0,o.jsx)(cp,{})]})}.bind(void 0);var Sp=i(65644);const Pp=i.p+"static/apps/cfo/cfx-mark3711fe0bada15373a241.svg",Ep=i.p+"static/apps/cfo/results3e657bdcce3cda065ceb.svg",Dp=i.p+"static/apps/cfo/visitors0ee74151cf05db5108e6.svg";var Tp=["srcImage"];function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];
2for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Op.apply(null,arguments)}var Rp=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.srcImage,i=function(e,n){if(null==e)return{};var i={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(-1!==n.indexOf(t))continue;i[t]=e[t]}return i}(e,Tp);return(0,o.jsx)("img",Op({src:n,"aria-hidden":!0,height:20},i))}.bind(void 0);function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Lp.apply(null,arguments)}var kp="Vehicles in Your CARFAX Inventory";const Ip=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.data,i=e.titlePrefix,t=e.cclSelection,r=(0,g.c)().isMobile;"Used"===t?kp="Vehicles in Your CARFAX Used Car Inventory":"New"===t?kp="Vehicles in Your CARFAX New Car Inventory":"All Listings"===t&&(kp="Vehicles in Your CARFAX Inventory");var s,a,l={rowImage:(0,o.jsx)(Mr.A,{size:24,"aria-hidden":!0}),rowTitle:kp,rowTitleStyle:jp.DEFAULT,rowValue:n.period.cars},c={rowImage:(0,o.jsx)(Sp.A,{size:24,"aria-hidden":!0}),rowTitle:"Shoppers Who Saw Your Inventory on CARFAX",rowTitleStyle:jp.DEFAULT,rowValue:n.period.visitors},d={rowImage:(0,o.jsx)(Rp,{srcImage:Ep}),rowTitle:"Times Your CARFAX Inventory Appeared in Search Results",rowTitleStyle:jp.DEFAULT,rowValue:n.period.srpImpressions},u={rowImage:(0,o.jsx)(Rp,{srcImage:Dp}),rowTitle:"Vehicle Details Page Views",rowTitleStyle:jp.DEFAULT,rowValue:n.period.vdpViews},h={rowImage:(0,o.jsx)(Rp,{srcImage:Pp}),rowTitle:"CARFAX Vehicle History Report Requests on Your Used Vehicles",rowTitleStyle:jp.DEFAULT,rowValue:n.period.uclIcrClicks},v=(0,o.jsx)("strong",{children:"Inventory Exposure"}),p=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"noBold",children:i}),r?(0,o.jsx)("p",{children:v}):v]});return"New"===t?(s=(0,o.jsxs)("div",{className:"ucl-reporting__rows",children:[(0,o.jsx)(gp,Lp({},l)),(0,o.jsx)(gp,Lp({},c))]}),a=(0,o.jsxs)("div",{className:"ucl-reporting__rows",children:[(0,o.jsx)(gp,Lp({},d)),(0,o.jsx)(gp,Lp({},u))]})):(s=(0,o.jsxs)("div",{className:"ucl-reporting__rows",children:[(0,o.jsx)(gp,Lp({},l)),(0,o.jsx)(gp,Lp({},c)),(0,o.jsx)(gp,Lp({},d))]}),a=(0,o.jsxs)("div",{className:"ucl-reporting__rows",children:[(0,o.jsx)(gp,Lp({},u)),(0,o.jsx)(gp,Lp({},h))]})),(0,o.jsxs)("div",{className:"cfx-card-full-width",children:[(0,o.jsx)("div",{className:"cfx-card__header",children:p}),(0,o.jsx)("div",{className:"cfx-card__body",children:(0,o.jsxs)("div",{className:"ucl-reporting__inventory-rows",children:[s,a]})})]})}.bind(void 0);var Vp=void 0;function Fp(){return Fp=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},Fp.apply(null,arguments)}function Bp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var _p="Retargeting Program";const Up=function(e){var n=this;Bp(this,Vp);var i=e.data,r=e.layout,s=e.cclSelection,a=r===Ee.D.MOBILE,l=(0,t.useState)(!0),c=l[0],d=l[1],u=function(){Bp(this,n),d(!c)}.bind(this),h="All Listings"===s&&(0,o.jsx)("div",{className:"used-cars-badge",children:"USED CARS ONLY"}),v=(0,o.jsx)("div",{className:"retarget_title--mobile",children:(0,o.jsxs)("p",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used: "}),(0,o.jsx)("p",{children:_p})]})}),p=(0,o.jsxs)("div",{className:"retarget_title--"+r,children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used: "}),_p]}),m=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",marginBottom:"4px"},children:[p,h]}),(0,o.jsx)("div",{className:"retarget_description",children:"Look at the performance of your impressions and return shoppers due to our retargeting efforts."})]}),f=a?v:m,x=(0,o.jsx)("div",{style:{margin:"16px 0",borderBottom:"1px solid #BDBDBD"}}),b=(0,o.jsx)("div",{style:{borderBottom:"1px solid #BDBDBD"}}),j=(0,o.jsx)("div",{style:{borderLeft:"1px solid #BDBDBD"}}),g=r===Ee.D.DESKTOP?j:r===Ee.D.TABLET?b:x,y=(0,o.jsxs)("div",{className:"retarget_container--"+r,children:[(0,o.jsx)("div",{className:"retarget_container_
2contents--"+r,children:(0,o.jsx)(Mp,{count:i.period.uclRetargetImpressions,text:"Impressions from CARFAX Web Banners"})}),g,(0,o.jsx)("div",{className:"retarget_container_contents--"+r,children:(0,o.jsx)(Mp,{count:i.period.uclRetargetClicks,text:"Return Shoppers from CARFAX Retargeting Banners"})})]});return a?(0,o.jsx)(fi.n,{border:"contained",className:"ucl-accordion",children:(0,o.jsxs)(xi.c,{id:"expander-3",open:c,children:[(0,o.jsx)(bi.b,{onClick:u,children:v}),(0,o.jsx)(ji.C,{children:(0,o.jsx)("div",{style:{borderTop:"1px solid #BDBDBD"},children:y})})]})}):(0,o.jsxs)("div",{className:"cfx-card-full-width",children:[(0,o.jsx)("div",{className:"cfx-card__header",children:f}),(0,o.jsx)("div",{children:y})]})}.bind(void 0);var Mp=function(e){Bp(this,Vp);var n=e.count,i=e.text;return n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"retarget_text",children:i}),(0,o.jsx)("div",Fp({className:"retarget_count"},Hn.f,{children:(ke.A.numberWithCommas(n)+"").replace(/(\d)(?=(\d{3})+$)/g,"$1,")}))]}):(0,o.jsx)(o.Fragment,{})}.bind(void 0);function Gp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Hp=function(e){var n=this;Gp(this,void 0);var i=e.storeName,r=e.compCode,s=(0,t.useState)(Nr.Di),a=s[0],l=s[1],c=(0,t.useContext)(ao),d=c.cclSelection,u=c.setCclSelection,h=X.A.uclDashboard.summary;(0,t.useEffect)(function(){var e=this;Gp(this,n),h.fetchUclSummaryHistoryTrending(h.reportView).then(function(n){Gp(this,e),n&&l(n)}.bind(this))}.bind(this),[h.reportView]);var v=a.period.isUcl||!1,p=!v,m=v,f=null!==a.period.uclRetargetClicks&&a.period.uclRetargetClicks>0&&null!==a.period.uclRetargetImpressions&&a.period.uclRetargetImpressions>0,x=h.isPrintButtonPressed?Ee.D.DESKTOP:X.A.ui.navigation.layout,b=ms(a,ps(d)),j=b.hasNewInventory&&b.hasUsedInventory?(0,o.jsx)(Gr.Ay,{cclSelection:d,onChange:u,layout:x}):null,g="";"Used"===d?g="Car Listings - Used: ":"New"===d?g="Car Listings - New: ":"All Listings"===d&&(g="Car Listings: ");var y="New"!==d&&(0,o.jsx)(Js,{data:a,layout:x,cclSelection:d,isOwnerGroup:!1,isExpanderContent:!1}),C="New"!==d&&(0,o.jsx)(ml,{data:a,layout:x,cclSelection:d,isOwnerGroup:!1,isExpanderContent:!1,selectedCompCode:r}),w="New"!==d&&f&&(0,o.jsx)(Up,{data:a,layout:x,cclSelection:d}),N=(0,o.jsxs)("div",{className:"dealerBeliefContainerDesktop-hvj5f",children:[(0,o.jsx)(ht.Z,{messageType:"sell"}),(0,o.jsx)(Hv,{cclSelection:d,layout:x})]}),A=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"dealerBeliefContainerTablet-RxC7V",children:(0,o.jsx)(ht.Z,{messageType:"sell"})}),(0,o.jsx)(Hv,{cclSelection:d,layout:x})]}),S=x===Ee.D.DESKTOP?N:A,P=(0,o.jsxs)("p",{className:"report-download-title--desktop",children:[(0,o.jsx)("span",{className:"noBold",children:g}),(0,o.jsx)("b",{children:"Reports"})]}),E=(0,o.jsxs)("p",{className:"report-download-title--desktop",children:[(0,o.jsx)("span",{className:"noBold",children:g}),(0,o.jsx)("span",{children:(0,o.jsx)("b",{children:"Reports"})})]}),D=x===Ee.D.MOBILE?E:P,T=(0,o.jsx)("div",{style:{margin:"16px 0",borderBottom:"1px solid #BDBDBD"}}),O=(0,o.jsx)("div",{style:{borderBottom:"1px solid #BDBDBD"}}),R=(0,o.jsx)("div",{style:{borderLeft:"1px solid #BDBDBD"}}),L=x===Ee.D.DESKTOP?R:x===Ee.D.TABLET?O:T;return(0,o.jsxs)("div",{id:"ucl_summary",children:[(0,o.jsx)("div",{style:{marginBottom:"24px"},children:(0,o.jsx)(ut,{companyName:i})}),(0,o.jsxs)("div",{className:"noPrint",children:[S,(0,o.jsx)(Ji,{title:Wp,isVisible:p}),(0,o.jsx)("div",{className:"displayChipContainer-RUWYV",children:j})]}),(0,o.jsxs)("div",{id:"summary_container",className:"summary_container",children:[(0,o.jsx)(Ip,{data:b,titlePrefix:g,cclSelection:d}),(0,o.jsx)(hp,{data:b,layout:x,titlePrefix:g}),(0,o.jsx)(Ap,{data:b,layout:x,titlePrefix:g}),y,C,!p&&w,m&&!p&&(0,o.jsxs)("div",{className:"cfx-card-full-width noPrint",children:[(0,o.jsx)("div",{className:"cfx-card__header",children:D}),(0,o.jsx)("div",{children:(0,o.jsxs)("div",{className:"report-download-container",children:[(0,o.jsx)(_v,{compCode:r,companyName:i,cclSelection:d}),L,(0,o.jsx)(Tv,{compCode:r,companyName:i,cclSelection:d})]})})]})]})]})}.bind(void 0);const zp=(0,d.PA)(Hp);function Xp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Wp="Want more leads from CARFAX? Unlock additional features.",Yp=function(e){var n=this;Xp(this,void 0);var i=e.displayFactors,r=(0,t.useState)(""),s=r[0],a=r[1],d=(0,t.useState)(""),u=d[0],h=d[1],v=X.A.uclDashboard.summary,p=X.A.subscriber.subscriber;return(0,t.useEffect)(function(){var e,t;Xp(this,n);var r=null!=(e=i.selectedChildLocation)&&e.storeName?i.selectedChildLocation.storeName:(null==p?void 0:p.companyName)||"";a(r);var s=null!=(t=i.selectedChildLocation)&&t.compCode?i.selectedChildLocation.compCode:(null==p?void 0:p.compCode)||"";h(s),void 0===v.specificMonths&&v.fetchSummaryPeriodOptions()}.bind(this),[]),null!=p&&p.payPerVin?(0,o.jsx)(bv,{}):(0,o.jsxs)(oo,{selectedCompCode:u,children:[(0,o.jsx)(zp,{storeName:s,compCode:u}),(0,o.jsx)(l,{isModal:i.isTogSingleLocation,children:(0,o.jsx)(c,{asOfDate:X.A.uclDashboard.summary.asOfDate||"",lastDays:Vi("ucl","summary",i.isTogSingleLocation)})})]})}.bind(void 0);const qp=(0,d.PA)(Yp);function Zp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Kp=(0,d.PA)(function(e){var n=this;Zp(this,void 0);var i=e.data,r=e.layout,s=e.cclSelection,a=(0,t.useState)(!0),l=a[0],c=a[1],d=function(){Zp(this,n),c(!l)}.bind(this),u=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used: "}),Ws]}),h=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used:"}),(0,o.jsx)("p",{children:Ws})]}),v=r===Ee.D.MOBILE?h:u,p=r===Ee.D.MOBILE?{borderTop:"1px solid #BDBDBD"}:void 0;return(0,o.jsx)(fi.n,{border:"contained",children:(0,o.jsxs)(xi.c,{id:"expander-4",open:l,children:[(0,o.jsx)(bi.b,{onClick:d,children:v}),(0,o.jsx)(ji.C,{children:(0,o.jsx)("div",{style:p,children:(0,o.jsx)(Js,{data:i,layout:r,isOwnerGroup:!1,isExpanderContent:!0,cclSelection:s})})})]})})}.bind(void 0));function Qp(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var Jp=(0,d.PA)(function(e){var n=this;Qp(this,void 0);var i=e.icon,r=e.description,s=e.value,a=e.isProspects,l=(0,t.useState)(!1),c=l[0],d=l[1],u=function(){Qp(this,n),d(!0)}.bind(this),h=function(){Qp(this,n),d(!1)}.bind(this);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(pe.A,{handleLeadFormClose:h,showLeadFormModal:c}),(0,o.jsxs)("div",{className:"item-detail-row"+(a?"-locked":""),onClick:u,children:[(0,o.jsxs)("div",{style:{display:"flex",columnGap:"24px"},children:[(0,o.jsx)("span",{style:{color:"#616161"},children:i}),(0,o.jsx)("span",{className:"item-detail-description",children:r})]}),(0,o.jsx)("div",{className:"item-detail-value",children:ke.A.numberWithCommas(s)}),a&&(0,o.jsx)("div",{className:"item-detail-locked-button",children:(0,o.jsx)(p.Ay,{"aria-label":"click to unlock additional features",id:"udd-mobile-prospects-locked-button",className:" mobile-locked-button",theme:"black",children:(0,o.jsx)(m.A,{size:24,className:" mobile-locked","aria-hidden":!0})})})]})]})}.bind(void 0));function $p(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var em=function(e){var n=this;$p(this,void 0);var i=e.data,r=e.cclSelection,s=e.titlePrefix,a=(0,t.useState)(!0),l=a[0],c=a[1],d=(0,g.c)().isMobile,u=function(){$p(this,n),c(!l)}.bind(this),h="Inventory Exposure",v="Your CARFAX Inventory";"Used"===r?v="Your CARFAX Used Car Inventory":"New"===r?v="Your CARFAX New Car Inventory":"All Listings"===r&&(v="Your CARFAX Inventory");var p=(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{className:"noBold",children:[s," "]}),h]}),m=d?(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:s}),(0,o.jsx)("p",{children:h})]}):p;return(0,o.jsx)(fi.n,{border:"contained",children:(0,o.jsxs)(xi.c,{id:"expander-1",open:l,children:[(0,o.jsx)(bi.b,{onClick:u,children:m}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:{borderTop:"1px solid #BDBDBD",padding:"16px 0"},children:[(0,o.jsx)(Jp,{icon:(0,o.jsx)(Mr.A,{size:24,"aria-hidden":!0}
2),description:v,value:i.period.cars}),(0,o.jsx)("div",{style:{marginTop:"40px"}}),(0,o.jsx)(Jp,{icon:(0,o.jsx)(Sp.A,{size:24,"aria-hidden":!0}),description:"Your CARFAX Shoppers",value:i.period.visitors}),(0,o.jsx)("div",{style:{marginTop:"40px"}}),(0,o.jsx)(Jp,{icon:(0,o.jsx)(Rp,{srcImage:Ep}),description:"Appearance in Search Results",value:i.period.srpImpressions}),(0,o.jsx)("div",{style:{marginTop:"40px"}}),(0,o.jsx)(Jp,{icon:(0,o.jsx)(Rp,{srcImage:Dp}),description:"Vehicle Details Page Views",value:i.period.vdpViews}),"New"!==r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{style:{marginTop:"40px"}}),(0,o.jsx)(Jp,{icon:(0,o.jsx)(Rp,{srcImage:Pp}),description:"CARFAX History Requests",value:i.period.uclIcrClicks})]})]})})]})})}.bind(void 0);function nm(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var im=(0,d.PA)(function(e){var n=this;nm(this,void 0);var i=e.data,r=e.layout,s=e.cclSelection,a=(0,t.useState)(!0),l=a[0],c=a[1],d=function(){nm(this,n),c(!l)}.bind(this),u=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used: "}),cl]}),h=(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"noBold",children:"Car Listings - Used:"}),(0,o.jsx)("p",{children:cl})]}),v=r===Ee.D.MOBILE?h:u,p=r===Ee.D.MOBILE?{borderTop:"1px solid #BDBDBD"}:void 0;return(0,o.jsx)(fi.n,{border:"contained",children:(0,o.jsxs)(xi.c,{id:"expander-5",open:l,children:[(0,o.jsx)(bi.b,{onClick:d,children:v}),(0,o.jsx)(ji.C,{children:(0,o.jsx)("div",{style:p,children:(0,o.jsx)(ml,{data:i,layout:r,isOwnerGroup:!1,isExpanderContent:!0,cclSelection:s})})})]})})}.bind(void 0));function tm(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const rm=function(){var e,n=this;tm(this,void 0);var i=(0,t.useState)(Nr.Di),r=i[0],s=i[1],a=X.A.uclDashboard.summary;(0,t.useEffect)(function(){var e=this;tm(this,n),a.fetchUclSummaryHistoryTrending(a.reportView).then(function(n){tm(this,e),n&&s(n)}.bind(this))}.bind(this),[a.reportView]);var l,c,d=(0,t.useContext)(ao),h=d.cclSelection,v=d.setCclSelection,p=(0,me.Lg)().session,m=(0,u.us)().businessUser,f=(0,g.c)().isMobile,x=m.isUclDealer,b=m.isProspectDealer,j=x&&!b,y=null!==r.period.uclRetargetClicks&&r.period.uclRetargetClicks>0&&null!==r.period.uclRetargetImpressions&&r.period.uclRetargetImpressions>0,C=a.availableReportViews.map(function(e){return tm(this,n),e.displayName}.bind(this)),w=ms(r,ps(h)),N=w.hasNewInventory&&w.hasUsedInventory?(0,o.jsx)(Gr.Ay,{cclSelection:h,onChange:v,layout:Ee.D.MOBILE}):null,A="";("Used"===h?A="Car Listings - Used: ":"New"===h?A="Car Listings - New: ":"All Listings"===h&&(A="Car Listings: "),(null==(e=a.availableReportViews)?void 0:e.length)>0)&&(l=(0,o.jsx)("div",{className:"optionsBar-mobile",children:(null==(c=a.availableReportViews)?void 0:c.length)>0&&(0,o.jsx)(Se.A,{"aria-label":"select summary date range",id:"udd-summary-date-range-select",value:a.reportView.displayName,onChange:a.handleReportViewChange,isSmall:!1,displaySelectedAs:a.reportView.displayName,placeholder:"Date range",usePlaceholderAsLabel:!0,children:(0,Le.A)({items:C}).originalOptions})}));var S=(0,t.useState)(!0),P=S[0],E=S[1],D=function(){tm(this,n),E(!P)}.bind(this),T="New"!==h&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Kp,{data:r,layout:Ee.D.MOBILE,cclSelection:h}),(0,o.jsx)("div",{className:"mobile-card-gap"})]}),O="New"!==h&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(im,{data:r,layout:Ee.D.MOBILE,cclSelection:h}),(0,o.jsx)("div",{className:"mobile-card-gap"})]}),R="New"!==h&&y&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Up,{data:r,layout:Ee.D.MOBILE,cclSelection:h}),(0,o.jsx)("div",{className:"mobile-card-gap"})]}),L=(0,o.jsxs)("p",{className:"report-download-title--mobile",children:[(0,o.jsx)("span",{className:"noBold",children:A}),"Reports"]}),k=f?(0,o.jsxs)("p",{className:"report-download-title--mobile",children:[(0,o.jsx)("span",{className:"noBold",children:A}),(0,o.jsx)("span",{children:"Reports"})]}):L;return(0,o.jsxs)("div",{children:[l,(0,o.jsx)("div",{className:"chipSelectorContainer-L7Y5M",children:N}),(0,o.jsx)(Ji,{title:am,isVisible:b}),(0,o.jsx)("div",{className:"mobile-card-gap"}),(0,o.jsx)(em,{data:w,cclSelection:h,titlePrefix:A}),(0,o.jsx)("div",{className:"mobile-card-gap"}),(0,o.jsx)(hp,{data:w,layout:Ee.D.MOBILE,titlePrefix:A}),(0,o.jsx)("div",{className:"mobile-card-gap"}),(0,o.jsx)(Ap,{data:w,layout:Ee.D.MOBILE,titlePrefix:A}),(0,o.jsx)("div",{className:"mobile-card-gap"}),T,O,!b&&R,j&&!b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(fi.n,{children:(0,o.jsxs)(xi.c,{open:P,children:[(0,o.jsx)(bi.b,{onClick:D,children:k}),(0,o.jsx)(ji.C,{children:(0,o.jsxs)("div",{style:{padding:"16px",borderTop:"1px solid #BDBDBD"}
2,children:[(0,o.jsx)(_v,{compCode:p.compCode,companyName:m.subscriber?m.subscriber.companyName:void 0,cclSelection:h}),(0,o.jsx)("div",{style:{margin:"16px 0",borderBottom:"1px solid #BDBDBD"}}),(0,o.jsx)(Tv,{compCode:p.compCode,companyName:m.subscriber?m.subscriber.companyName:void 0,cclSelection:h})]})})]})}),(0,o.jsx)("div",{className:"mobile-card-gap"})]})]})}.bind(void 0);function sm(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var am="Want more leads from CARFAX?\n";const om=(0,d.PA)(function(e){var n=this;sm(this,void 0);var i=e.displayFactors,r=(0,t.useState)(""),s=r[0],a=r[1],d=(0,u.us)().businessUser,h=X.A.uclDashboard.summary;return(0,t.useEffect)(function(){var e,t;sm(this,n);var r=null!=(e=i.selectedChildLocation)&&e.compCode?i.selectedChildLocation.compCode:(null==(t=d.subscriber)?void 0:t.compCode)||"";a(r),void 0===h.specificMonths&&h.fetchSummaryPeriodOptions()}.bind(this),[]),(0,o.jsxs)(oo,{selectedCompCode:s,children:[(0,o.jsx)(rm,{}),(0,o.jsx)(l,{isModal:i.isTogSingleLocation,children:(0,o.jsx)(c,{asOfDate:X.A.uclDashboard.summary.asOfDate||"",lastDays:Vi("ucl","summary",i.isTogSingleLocation)})})]})}.bind(void 0));var lm=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.displayFactors;return n.isMobile?(0,o.jsx)(om,{displayFactors:n}):(0,o.jsx)(qp,{displayFactors:n})}.bind(void 0);lm.displayName="UCL Summary Selector";const cm=(0,d.PA)(lm);var dm=i(2796),um=i(29631),hm=i(13463),vm=i(76673);function pm(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var mm=function(e){var n=this;pm(this,void 0);var i=e.program,r=e.c4lLabel,s=e.displayFactors,a=(0,t.useState)(i),l=a[0],c=a[1],d=s.isMobile,u=s.handleViewChange,h=d?"bar":"folder",v=d?"full-width":"fixed",p=function(e){pm(this,n);var t=e;(c(t),i!==e)&&u({program:t,tab:"summary"})}.bind(this);return(0,o.jsxs)(dm.Ay,{selected:l,onSelect:function(e){return pm(this,n),p(e)}.bind(this),theme:h,className:"tabBar",size:v,children:[(0,o.jsxs)(um.w,{"aria-label":"Main Performance Selection",children:[(0,o.jsx)(hm.o,{"aria-controls":"ucl",children:"CARFAX Car Listings"}),(0,o.jsx)(hm.o,{"aria-controls":"c4l",children:r})]}),(0,o.jsx)(vm.K,{id:"ucl",children:null}),(0,o.jsx)(vm.K,{id:"c4l",children:null})]})}.bind(void 0);mm.displayName="Performance Navigation Main";var fm=mm;function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},xm.apply(null,arguments)}function bm(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var jm=function(e){var n=this;bm(this,void 0);var i=e.selection,t=e.displayFactors,r=t.isMobile,s=t.isOwnerView,a=t.isTogSingleLocation,l=t.handleViewChange,c=i.program,d=i.tab,u=[Sm(),Pm(c)],h="ucl"===c;h?u.push.apply(u,Em(t)):(u.push(Dm()),t.showServiceCoordination&&u.push({text:"Service Coordination",pathName:"coordination"}));var v="Secondary Performance Selection",p=function(e){if(bm(this,n),e!==d){var t={program:i.program,tab:e};l(t)}}.bind(this);if(r){var m=u.map(function(e){bm(this,n);var i=e.text,t=e.pathName;return(0,o.jsx)("option",{value:t,children:i},"navigation-"+t)}.bind(this)),f=function(e){bm(this,n),p(e.target.value)}.bind(this),x=h?{placeholder:"Select report view",usePlaceholderAsLabel:!0}:{};return(0,o.jsx)("div",{className:"mobile__select_page",children:(0,o.jsx)(Se.A,xm({onChange:f,value:d,"aria-label":v},x,{children:m}))})}var b=a||s&&"ucl"===c,j=b?"folder":"bar",g=b?"tabBar tabBar--uclOwner":"",y=u.map(function(e){bm(this,n);var i=e.text,t=e.pathName;return(0,o.jsx)(hm.o,{"aria-controls":t,children:i},"navigation-"+c+"-"+t)}.bind(this)),C=u.map(function(e){bm(this,n);var i=e.pathName;return(0,o.jsx)(vm.K,{id:i,children:null},"navigation-"+c+"-"+i)}.bind(this)),w=function(e){bm(this,n),p(e)}.bind(this);return(0,o.jsxs)(dm.Ay,{selected:d,onSelect:function(e){return bm(this,n),w(e)}.bind(this),theme:j,className:g,children:[(0,o.jsx)(um.w,{"aria-label":v,children:y}),C]})}.bind(void 0);jm.displayName="Performance Navigation Secondary";var gm=jm,ym=void 0;function Cm(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var wm=function(e,n,i){Cm(this,ym);var t=e.program,r=e.tab;return"inventory"===r&&i&&(0,le.eW)()?"CARFAX Homegrown⢠Inventory":n&&"ucl"===t?"CARFAX Car Listings Performance":"thankyou"===r?void 0:"Performance"}.bind(void 0),Nm=function(e,n){Cm(this,ym);var i=n.isCarfax4Life,t=n.isDealerUsed,r=n.hasServiceData,s=n.isOwnerView,a=n.isTogSingleLocation;return s||a||!i&&t&&!r||"thankyou"===e.tab.toLowerCase()?null:i?"CARFAX for Life":"Car Care Service Shop"}.bind(void 0),Am=function(e,n){Cm(this,ym);var i=Nm(e,n);return[i?(0,o.jsx)(fm,{program:e.program,c4lLabel:i,displayFactors:n}
2):null,"thankyou"!==e.tab?(0,o.jsx)(gm,{selection:e,displayFactors:n}):null]}.bind(void 0),Sm=function(){return Cm(this,ym),{text:"Summary",pathName:"summary"}}.bind(void 0),Pm=function(e){return Cm(this,ym),{text:"ucl"===e?"Buyer Leads":"Trade-In Leads",pathName:"leads"}}.bind(void 0),Em=function(e){return Cm(this,ym),e.isTogSingleLocation?[]:[{text:"Inventory",pathName:"inventory"}]}.bind(void 0),Dm=function(){return Cm(this,ym),{text:"Customer List",pathName:"customerlist"}}.bind(void 0),Tm=function(e,n){Cm(this,ym);var i=e.program,t=e.tab;if("thankyou"===t)return(0,o.jsx)(de,{});if("ucl"===i){if(n.isOwnerView)return(0,o.jsx)(rh,{tab:e.tab});switch(t){case"summary":return(0,o.jsx)(cm,{displayFactors:n});case"leads":return(0,o.jsx)(vv,{displayFactors:n});case"inventory":return(0,o.jsx)(ah,{displayFactors:n})}}else if("c4l"===i)switch(t){case"summary":return(0,o.jsx)(we,{handleViewChange:n.handleViewChange});case"leads":return(0,o.jsx)(wr,{displayFactors:n});case"customerlist":return(0,o.jsx)(ki,{displayFactors:n});case"coordination":if(n.showServiceCoordination)return(0,o.jsx)(oe,{})}return(0,o.jsx)(r.C5,{to:"/performance/ucl/summary"})}.bind(void 0)},92197(e,n,i){"use strict";i.d(n,{a:()=>p});var t=i(91499),r=(i(96540),i(86090)),s=i(2177),a=i(70907),o=i(2342),l=i(38862),c=i(29462),d=i(15149),u=i(74848);function h(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var v=function(e){var n=this;h(this,void 0);var i=e.selection,t=e.isTogSingleLocation,v=e.selectedChildLocation,p=e.mobileAppRouteChanger,m=(0,r.Zp)(),f=(0,s.us)().computedProps,x=(0,a.c)().isMobile,b=function(e){h(this,n),t?l.A.setSelectionProp(e):p?p(e):m("/performance/"+e.program+"/"+e.tab),(t||p)&&(0,o.R9)({to:e.tab,toProgram:e.program,from:i.tab,fromProgram:i.program,isTogSingleLocation:t})}.bind(this),j=f.actingAsOwnerGroup&&!t,g={isMobile:x,isOwnerView:j,isCarfax4Life:f.isCarfax4Life,isDealerUsed:f.isDealerUsed,showServiceCoordination:f.isDealerNew,hasServiceData:f.hasServiceData,isTogSingleLocation:t,selectedChildLocation:v,handleViewChange:b},y=(0,d.TP)(i,j,f.isHomegrownEligible),C=(0,d.ts)(i,g),w=C[0],N=C[1],A=(0,d.f8)(i,g),S=t?"performanceLastUpdated-modal":"performanceLastUpdated",P="ucl"===i.program&&("summary"===i.tab||"leads"===i.tab);return(0,u.jsxs)("div",{className:"ucl-dealer-dashboard-wrapper",children:[y&&(0,u.jsxs)("div",{className:"dashboardHeader--container",children:[(0,u.jsx)("h1",{className:"page-title page-title--standard",children:y}),(0,u.jsx)("div",{children:(0,u.jsx)("div",{className:"lastUpdate-wGbHO",id:S})})]}),(0,u.jsxs)("div",{className:"noPrint pageContainer-jn3AF",children:[w,N,P&&(0,u.jsx)(c.A,{message:"Be cautious with customer leads â donât click unverified links. Scammers may pose as customers."})]}),(0,u.jsx)("div",{id:"performanceStatus"}),A]})}.bind(void 0);v.displayName="Performance Content Selector";var p=(0,t.PA)(v)},18019(e,n,i){"use strict";i.d(n,{A:()=>m});var t=i(46131),r=i(91499),s=i(96540),a=i(40961),o=i(95409),l=i(82737),c=i(2177),d=i(83279),u=i(66870),h=i(74848);function v(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var p=function(e){var n,i,r,p,m,f,x,b,j,g,y,C,w,N,A,S=this;v(this,void 0);var P=e.header,E=e.subheader,D=e.handleLeadFormClose,T=e.showLeadFormModal,O=(0,d.i3)().userDetails,R=(0,c.us)().businessUser,L=(0,u.Lg)().session,k=(0,t.A)(),I=k.lockBodyScroll,V=k.unlockBodyScroll,F=(0,s.useState)(!1),B=F[0],_=F[1],U=document.getElementById("performanceStatus");if((0,s.useEffect)(function(){v(this,S),B&&U&&U.scrollIntoView({behavior:"smooth",block:"center"})}.bind(this),[B,U]),(0,s.useEffect)(function(){v(this,S),T?I():V()}.bind(this),[T,I,V]),!L.hasAuthority_LEAD_GEN)return null;var M={FirstName:null!=(n=null==(i=O.userDetails)?void 0:i.firstName)?n:"",LastName:null!=(r=null==(p=O.userDetails)?void 0:p.lastName)?r:"",Email:null!=(m=null==(f=O.userDetails)?void 0:f.email)?m:"",Business_Function__c:null!=(x=null==(b=O.userDetails)?void 0:b.businessArea)?x:"Other",Phone:null!=(j=null==(g=O.userDetails)?void 0:g.phone)?j:"",Company:null==(y=R.subscriber)?void 0:y.companyName,Address:null==(C=R.subscriber)?void 0:C.streetAddress,City:null==(w=R.subscriber)?void 0:w.city,StateCode:null==(N=R.subscriber)?void 0:N.state,PostalCode:null==(A=R.subscriber)?void 0:A.zip},G=function(){v(this,S),_(!0),D()}.bind(this),H=function(){v(this,S),_(!1)}.bind(this),z=B&&U?(0,a.createPortal)((0,h.jsx)("div",{className:"successBanner-MEE2z",children:(0,h.jsx)(o.A,{theme:"green",role:"alert",message:"Your request was successfully submitted. We'll be in touch with you soon.",handleClose:H})}),U):null,X=T&&(0,h.jsx)(l.A,{formId:"1305",formValues:M,handleClose:D,setSuccess:G,header:P,subheader:E});return(0,h.jsxs)("div",{children:[z,X]})}.bind(void 0);const m=(0,r.PA)(p)},29462(e,n,i){"use strict";i.d(n,{A:()=>p});var t=i(472),r=i(96540);const s=i.p+"static/apps/cfo/Poses_output_Pose_1013b0aefe6b5f89e187b96d.png";var a=i(74848);const o=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.displayIndicator,i=void 0===n||n;return(0,a.jsxs)("div",{children:[(0,a.jsx)("img",{src:s,alt:"",className:"carfoxImage-FXcSU"}),i&&(0,a.jsx)("div",{className:"indicator-GQ3gA"})]})}.bind(void 0);var l="noPrint-jPOyE",c="wrapper-OwYiJ",d=i(63208),u=i(22582),h=i(70907);function v(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}const p=function(e){var n=this;v(this,void 0);var i=e.message,s=(0,r.useState)(!0),p=s[0],m=s[1],f=(0,h.c)().isMobile;return p?(0,a.jsx)("div",{className:[c,l].join(" "),children:(0,a.jsxs)(t.Eg,{theme:"blue","aria-live":"polite",className:"notificationComponentWrapper-g5kVB",children:[(0,a.jsx)(t.He,{children:(0,a.jsx)(o,{})}),(0,a.jsx)(t.p,{children:(0,a.jsxs)("div",{className:"notificationMessageContent-VfEFc",children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("b",{children:"Account Security Tip:"})," ",i," Visit the ",f?(0,a.jsx)("a",{href:"/accountprotection",className:"inlineLink-TDmAY",children:(0,a.jsx)("b",{children:"Account Protection"})}):"Account Protection"," page for more tips."]}),!f&&(0,a.jsx)(d.A,{href:"/accountprotection",iconRight:(0,a.jsx)(u.A,{"aria-hidden":!0}),theme:"blue-flat",className:"learnMoreButton-jPkXo",children:(0,a.jsx)("span",{className:"noWrap-ewmPz",children:"Learn More"})})]})}),(0,a.jsx)(t.A_,{"aria-label":"close notification",onClick:function(){v(this,n),m(!1)}.bind(this)})]})}):null}.bind(void 0)},93106(e,n,i){"use strict";i.d(n,{Z:()=>s});var t=i(17597),r=(i(96540),i(74848));var s=function(e){!function(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}(this,void 0);var n=e.messageType,i="";return"buy"===n?i="BUY SMARTER WITH ACCIDENT, DAMAGE & SERVICE INFORMATION NO ONE ELSE HAS":"sell"===n?i="SELL FASTER TO MILLIONS OF READY-TO-BUY CARFAX CONSUMERS":"service"===n&&(i="SERVICE MORE USING THE INFLUENCE OF CARFAXâS TRUSTED BRAND & INFORMATION"),(0,r.jsxs)("div",{className:"dealer-beliefs",children:[(0,r.jsx)(t.A,{size:"24px",className:"checkmark_icon","aria-hidden":!0}),(0,r.jsx)("p",{children:i})]})}.bind(void 0)},26412(e,n,i){"use strict";i.d(n,{Y:()=>f});var t=i(91499),r=i(96540),s=i(95409),a=i(82737),o=i(26365),l=i(2177),c=i(66870),d=i(83279),u=i(4
26131);function h(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var v=function(e){var n=this;h(this,void 0);var i=(0,u.A)(),t=i.lockBodyScroll,s=i.unlockBodyScroll;(0,r.useEffect)(function(){h(this,n),e?t():s()}.bind(this),[e])}.bind(void 0),p=i(74848);function m(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var f=(0,t.PA)(function(e){var n,i,t,u,h,f,x,b,j,g,y,C,w,N,A,S=this;m(this,void 0);var P=(0,d.i3)().userDetails,E=(0,l.us)().businessUser,D=(0,c.Lg)().session,T=(0,r.useState)(!1),O=T[0],R=T[1],L={FirstName:null!=(n=null==(i=P.userDetails)?void 0:i.firstName)?n:"",LastName:null!=(t=null==(u=P.userDetails)?void 0:u.lastName)?t:"",Email:null!=(h=null==(f=P.userDetails)?void 0:f.email)?h:"",Phone:null!=(x=null==(b=P.userDetails)?void 0:b.phone)?x:"",Company:null==(j=E.subscriber)?void 0:j.companyName,Address:null==(g=E.subscriber)?void 0:g.streetAddress,City:null==(y=E.subscriber)?void 0:y.city,StateCode:null==(C=E.subscriber)?void 0:C.state,PostalCode:null==(w=E.subscriber)?void 0:w.zip,cFOCompCode:D.compCode,How_Can_We_Help__c:(0,o.HW)(e.prospectType,null!=(N=null==(A=E.subscriber)?void 0:A.profileCode)?N:"")},k=function(){m(this,S),R(!0),e.onClose()}.bind(this),I=function(){m(this,S),R(!1)}.bind(this);v(e.isVisible);var V=e.isVisible&&(0,p.jsx)(a.A,{formId:"4401",formValues:L,handleClose:e.onClose,setSuccess:k,header:e.header,subheader:e.subheader}),F=O&&(0,p.jsx)(s.A,{theme:"green",role:"alert",message:"Your request was successfully submitted. We'll be in touch with you soon.",handleClose:I,className:e.successNotificationClassName});return(0,p.jsxs)(p.Fragment,{children:[F,V]})}.bind(void 0))},803(e,n,i){"use strict";i.d(n,{A:()=>c});var t=i(91499),r=i(96540);const s=i.p+"static/apps/cfo/connectiona3e86f01085b6335e86e.svg";var a=i(74848);function o(e,n){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},o(e,n)}var l=function(e){function n(){return e.apply(this,arguments)||this}var i,t;return t=e,(i=n).prototype=Object.create(t.prototype),i.prototype.constructor=i,o(i,t),n.prototype.render=function(){return(0,a.jsxs)("div",{className:"unavailable_ui",children:[(0,a.jsx)("div",{className:"unavailable_ui__image__container",children:(0,a.jsx)("img",{src:s})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"unavailable_ui__header",children:this.props.headerText}),(0,a.jsx)("div",{className:"unavailable_ui__message",children:this.props.messageText})]})]})},n}(r.Component);l.defaultProps={headerText:"Weâre working to connect your inventory.",messageText:"Your performance details will be available once your inventory has been posted to the CARFAX Car Listings site. Please check back tomorrow or call Customer Support at 855-845-5733."};const c=(0,t.PA)(l)},70371(e,n,i){"use strict";i.d(n,{o:()=>o});var t=i(96540),r=i(71483),s=i(57028);function a(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var o=function(){var e=this;a(this,void 0);var n=(0,t.useState)(void 0),i=n[0],o=n[1];(0,t.useEffect)(function(){var n=this;a(this,e),r._.getPopToken().then(function(e){a(this,n);var i=(0,s.u)()===s.O.PROD?"gomocommerce":"goldpsdev";o("https://carfax."+i+".com/UserRegistractionAPI/CheckdealerInformation?token="+e)}.bind(this)).catch(function(e){a(this,n)}.bind(this))}.bind(this),[]);return{openPopLink:function(e){if(void 0===e&&(e=!1),i){var n=e?"_self":"_blank";window.open(i,n)}}}}.bind(void 0)},3109(e,n,i){"use strict";i.d(n,{Z:()=>d});var t=i(96540),r=i(71483);function s(){var e,n,i="function"==typeof Symbol?Symbol:{},t=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function o(i,t,r,s){var o=t&&t.prototype instanceof c?t:c,d=Object.create(o.prototype);return a(d,"_invoke",function(i,t,r){var s,a,o,c=0,d=r||[],u=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,i){return s=n,a=0,o=e,h.n=i,l}};function v(i,t){for(a=i,o=t,n=0;!u&&c&&!r&&n<d.length;n++){var r,s=d[n],v=h.p,p=s[2];i>3?(r=p===t)&&(o=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=v&&((r=i<2&&v<s[1])?(a=0,h.v=t,h.n=s[1]):v<p&&(r=i<3||s[0]>t||t>p)&&(s[4]=i,s[5]=t,h.n=p,a=0))}if(r||i>1)return l;throw u=!0,t}return function(r,d,p){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&v(d,p),a=d,o=p;(n=a<2?e:o)||!u;){s||(a?a<3?(a>1&&(h.n=-1),v(a,o)):h.n=o:h.v=o);try{if(c=2,s){if(a||(r="next"),n=s[r]){if(!(n=n.call(s,o)))throw TypeError("iterator result is not an object");
2if(!n.done)return n;o=n.value,a<2&&(a=0)}else 1===a&&(n=s.return)&&n.call(s),a<2&&(o=TypeError("The iterator does not provide a '"+r+"' method"),a=1);s=e}else if((n=(u=h.n<0)?o:i.call(t,h))!==l)break}catch(n){s=e,a=1,o=n}finally{c=1}}return{value:n,done:u}}}(i,r,s),!0),d}var l={};function c(){}function d(){}function u(){}n=Object.getPrototypeOf;var h=[][t]?n(n([][t]())):(a(n={},t,function(){return this}),n),v=u.prototype=c.prototype=Object.create(h);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,a(e,r,"GeneratorFunction")),e.prototype=Object.create(v),e}return d.prototype=u,a(v,"constructor",u),a(u,"constructor",d),d.displayName="GeneratorFunction",a(u,r,"GeneratorFunction"),a(v),a(v,r,"Generator"),a(v,t,function(){return this}),a(v,"toString",function(){return"[object Generator]"}),(s=function(){return{w:o,m:p}})()}function a(e,n,i,t){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}a=function(e,n,i,t){function s(n,i){a(e,n,function(e){return this._invoke(n,i,e)})}n?r?r(e,n,{value:i,enumerable:!t,configurable:!t,writable:!t}):e[n]=i:(s("next",0),s("throw",1),s("return",2))},a(e,n,i,t)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)({}).hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},o.apply(null,arguments)}function l(e,n,i,t,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?n(l):Promise.resolve(l).then(t,r)}function c(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var d=function(){var e=this;c(this,void 0);var n=(0,t.useState)(void 0),i=n[0],a=n[1];(0,t.useEffect)(function(){var n=this;c(this,e),r._.getUserOptionsV2().then(function(e){c(this,n),a(e)}.bind(this))}.bind(this),[]);var d=function(){var e,n=(e=s().m(function e(n,t){var l,d,u,h,v=this;return s().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!t){e.n=5;break}return l=o({},structuredClone(t),{value:n}),d=null==i?void 0:i.map(function(e){return c(this,v),e.optionName===(null==t?void 0:t.optionName)?l:e}.bind(this)),a(d),e.p=1,e.n=2,r._.updateUserOptionsV2(l);case 2:return e.n=3,r._.getUserOptionsV2();case 3:return u=e.v,a(u),e.a(2,!0);case 4:return e.p=4,e.v,h=null==i?void 0:i.map(function(e){return c(this,v),e.optionName===(null==t?void 0:t.optionName)?t:e}.bind(this)),a(h),e.a(2,!1);case 5:return e.a(2)}},e,this,[[1,4]])}),function(){var n=this,i=arguments;return new Promise(function(t,r){var s=e.apply(n,i);function a(e){l(s,t,r,a,o,"next",e)}function o(e){l(s,t,r,a,o,"throw",e)}a(void 0)})});return function(e,i){return n.apply(this,arguments)}}();return{userOptions:i,updateUserOption:d}}.bind(void 0)},2977(e,n,i){"use strict";i.d(n,{J:()=>u,a:()=>d});const t=i.p+"static/apps/cfo/Advantage-Fox7ab9d752f401c3a11951.jpg",r=i.p+"static/apps/cfo/Generic-Foxef4f5be77c740c1e01a1.png",s=i.p+"static/apps/cfo/Lifetime-CarFox241891824b0ab0bf7dab8.png",a=i.p+"static/apps/cfo/advantageLogoMobilea4f9e98f3683e206e553.png",o=i.p+"static/apps/cfo/lifetimeLogoMobileb7ea82c578cf84b33426.svg";var l=i(95870);function c(e,n){if(e!==n)throw new TypeError("Cannot instantiate an arrow function")}var d=function(e,n){var i=this;if(c(this,void 0),void 0!==e)return e.filter(function(e){return c(this,i),e.optionName===n}.bind(this))[0]}.bind(void 0),u=function(e){void 0===e&&(e=!1);var n=l.A.subscriber.isUpp;return l.A.subscriber.isLifetimeDealer?e?o:s:n?e?a:t:e?null:r}},46585(e,n,i){"use strict";i.d(n,{f:()=>t});
2var t={"data-pii-mask":!0}},94634(e,n,i){"use strict";i.d(n,{Y:()=>t});var t="vin"},35358(e,n,i){const t={"./af":25177,"./af.js":25177,"./am-et":94096,"./am-et.js":94096,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./ps":57347,"./ps.js":57347,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function r(e){const n=s(e);return i(n)}function s(e){if(!i.o(t,e)){const n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}r.keys=function(){return Object.keys(t)},r.resolve=s,e.exports=r,r.id=35358}}]);
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.