PageSourceSearch

https://www.autocheck.com/vehiclehistory/static/js/8369.212ec04d.chunk.js

js autocheck.com collected 2026-09-25 15:05:33 UTC 25,023 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkautocheck_consumersite||=[]).push([[8369],{8369(t,e,n){n.r(e),n.d(e,{default:()=>s});var o=n(5043),i=n(3003),r=n(3362),a=n(1774),l=(n(7844),n(579));const c=t=>{let{htmlString:e,scripts:n,stylesheets:i}=t;const r=(0,o.useRef)(null),[a,c]=(0,o.useState)(!1),[d,s]=(0,o.useState)(!1),u=(0,o.useRef)(!1);return((t,e,n)=>{(0,o.useEffect)(()=>{const o=[],i=document.head||document.getElementsByTagName("head")[0];e.forEach(t=>{const e=document.createElement("link");e.rel="stylesheet",e.href=t.url,i.appendChild(e),o.push(e)});let r=t.filter(t=>t.url).length;const a=()=>{r--,0===r&&n&&n()};return t.forEach(t=>{const e=document.createElement("script");e.type="text/javascript",e.async=!0,t.url?(e.src=t.url,e.onload=a,e.onerror=()=>{console.error(`Error loading script from ${t.url}`),a()}):t.content&&e.appendChild(document.createTextNode(t.content)),i.appendChild(e),o.push(e)}),()=>{o.forEach(t=>{var e;return null===(e=t.parentNode)||void 0===e?void 0:e.removeChild(t)})}},[t,e,n])})(n,i,(0,o.useCallback)(()=>{c(!0)},[])),(0,o.useEffect)(()=>{r.current&&s(!0)},[e]),(0,o.useEffect)(()=>{if(a&&d&&window.initVinny&&!u.current)try{window.initVinny(),u.current=!0}catch(t){console.error("Error initializing Vinny prompt:",t)}else a&&d&&!window.initVinny&&console.warn("Unable to initialize Vinny prompt due to missing init routine")},[a,d]),(0,l.jsx)("div",{ref:r,dangerouslySetInnerHTML:{__html:e||""}})};var d=n(3090);const s=t=>{var e;const[n,s]=(0,o.useState)(""),[u,m]=(0,o.useState)({vinnyHtml:null,vinnyScripts:[],vinnyStylesheets:[]}),{viewFullReport:p}=(0,i.d4)(t=>t.report),w=(0,r.g)(),{vin:v,isOwner:_}=w,y=(0,r.Zp)(),h=(0,i.wA)(),g=(0,o.useRef)(null),{trackEvent:f}=(0,d.st)(),k=()=>{localStorage.removeItem("vhr.vehicle"),y("/vehiclehistory/dashboard")};(0,o.useEffect)(()=>{var t;if(p&&null!==(t=p[0])&&void 0!==t&&t.html){const t=p[0].html,{vinnyHtml:e,vinnyScripts:n,vinnyStylesheets:o,modifiedReportHtml:i}=(t=>{if("undefined"===typeof window)return{vinnyHtml:null,vinnyScripts:[],vinnyStylesheets:[],modifiedReportHtml:null};if(!t||"string"!==typeof t)return{vinnyHtml:null,vinnyScripts:[],vinnyStylesheets:[],modifiedReportHtml:null};try{const e=(new DOMParser).parseFromString(t,"text/html"),n=e.querySelector("#vinny-container");if(n){const t=Array.from(n.querySelectorAll("script")).map(t=>{const e=t.getAttribute("th:src")||t.getAttribute("src");return{content:t.textContent,url:e||""}}),o=Array.from(n.querySelectorAll("link")).map(t=>({url:t.getAttribute("th:href")||t.getAttribute("href")||""}));n.querySelectorAll("script, link").forEach(t=>t.remove()),n.remove();return{vinnyHtml:n.innerHTML,vinnyScripts:t,vinnyStylesheets:o,modifiedReportHtml:e.documentElement.outerHTML}}return{vinnyHtml:null,vinnyScripts:[],vinnyStylesheets:[],modifiedReportHtml:t}}catch(e){return console.error("Error parsing report html to extract vinny prompt:",e),{vinnyHtml:null,vinnyScripts:[],vinnyStylesheets:[],modifiedReportHtml:t}}})(t);e?(s(i),m({vinnyHtml:e,vinnyScripts:n,vinnyStylesheets:o})):s(t)}},[p]);const b=(0,o.useCallback)(t=>{const{event:e,...n}=t||{};e&&(f(e,n),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...n}),window.gtag&&window.gtag("event",e,n))},[f]),S=(0,o.useCallback)(t=>{try{const e=t.contentDocument,n=t.contentWindow;if(!e||!n)return;const o=[["position","fixed"],["top","0"],["left","0"],["right","0"],["bottom","0"],["width","100%"],["height","100vh"],["z-index","2000"]],i=e=>{e&&(null==t.__savedInlineStyle&&(t.__savedInlineStyle=t.getAttribute("style")||""),t.__modalOverlayActive=!0,o.forEach(e=>{let[n,o]=e;return t.style.setProperty(n,o,"important")}),e.style.setProperty("position","fixed","important"),e.style.setProperty("inset","0","important"),e.style.setProperty("height","100vh","important"),e.style.setProperty("max-height","100vh","important"),e.style.setProperty("overflow-x","hidden","important"),e.style.setProperty("overflow-y","auto","important"),document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden")},r=e=>{t.__modalOverlayActive=!1,null!=t.__savedInlineStyle?(t.setAttribute("style",t.__savedInlineStyle),t.__savedInlineStyle=null):o.forEac
1h(e=>{let[n]=e;return t.style.removeProperty(n)}),document.documentElement.style.overflow="",document.body.style.overflow="",e&&["position","inset","height","max-height","overflow-x","overflow-y"].forEach(t=>e.style.removeProperty(t))};(()=>{const o=e.getElementById("stickerModal");if(!o)return;let a="none"!==getComputedStyle(o).display;const l=new MutationObserver(()=>{const t="none"!==getComputedStyle(o).display;t!==a&&(a=t,t?(i(o),(()=>{const t=n.__lastWindowStickerInteraction;b({event:"window_sticker_modal_open",page_location:window.location.href,page_path:window.location.pathname,click_element_id:(null===t||void 0===t?void 0:t.clickElementId)||"",interaction_type:"window_sticker_modal",modal_id:o.getAttribute("id")||"stickerModal",modal_target:(null===t||void 0===t?void 0:t.modalTarget)||"#stickerModal",data_url:(null===t||void 0===t?void 0:t.dataUrl)||"",analytics_source:"vhr_view_full_report"})})()):(r(o),(()=>{const t=n.__lastWindowStickerInteraction;b({event:"window_sticker_modal_close",page_location:window.location.href,page_path:window.location.pathname,click_element_id:(null===t||void 0===t?void 0:t.clickElementId)||"",interaction_type:"window_sticker_modal",modal_id:o.getAttribute("id")||"stickerModal",modal_target:(null===t||void 0===t?void 0:t.modalTarget)||"#stickerModal",data_url:(null===t||void 0===t?void 0:t.dataUrl)||"",analytics_source:"vhr_view_full_report"})})()))});l.observe(o,{attributes:!0,attributeFilter:["style","class"]}),t.__stickerModalObserver=l})();(()=>{if(e.getElementById("consumer-sticker-modal-style"))return;const t=e.createElement("style");t.id="consumer-sticker-modal-style",t.textContent="\n          #stickerModal .modal-dialog {\n            max-width: 1000px !important;\n            width: 90% !important;\n            margin: 2rem auto !important;\n          }\n          #stickerModal .modal-content {\n            max-height: 85vh !important;\n            overflow: hidden !important;\n            border: none !important;\n            border-radius: 6px !important;\n            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;\n          }\n          #stickerModal .modal-header {\n            border-bottom: none !important;\n            padding: 16px 20px !important;\n            align-items: center !important;\n          }\n          #stickerModal .modal-title {\n            margin: 0 !important;\n            width: 100% !important;\n            font-size: 28px !important;\n            font-weight: bold !important;\n            line-height: 1.2 !important;\n            text-align: center !important;\n          }\n          #stickerModal .modal-header .close,\n          #stickerModal .modal-header .btn-close {\n            font-size: 1.25rem !important;\n            font-weight: bold !important;\n            opacity: 0.75 !important;\n          }\n          #stickerModal .modal-body {\n            padding: 40px 20px !important;\n            min-height: 300px !important;\n          }\n          #stickerModal .modal-footer {\n            padding: 20px 15px !important;\n            margin-top: 8px !important;\n            border-top: 1px solid #dee2e6 !important;\n            justify-content: flex-start !important;\n          }\n          #stickerModal .modal-footer .btn,\n          #stickerModal #downloadWindowStickerBtn,\n          #stickerModal #downloadBtn {\n            padding: 8px 20px !important;\n            font-size: 14px !important;\n          }\n        ",(e.head||e.documentElement).appendChild(t)})();(()=>{e.querySelectorAll(".modal").forEach(t=>{t.setAttribute("data-bs-backdrop","static"),t.setAttribute("data-bs-keyboard","false")})})();const a=t=>{const n=e.getElementById("stickerModal");n&&"none"!==getComputedStyle(n).display&&t.target===n&&(t.preventDefault(),t.stopPropagation())},l=t=>{if("Escape"!==t.key&&27!==t.keyCode)return;const n=e.getElementById("stickerModal"),o=n&&"none"!==getComputedStyle(n).display,i=e.querySelector(".modal.show");(o||i)&&(t.preventDefault(),t.stopPropagation())};e.addEventListener("click",a,!0),e.addEventListener("keydown",l,!0);const c=n.$||n.jQuery;c&&(c(e).on("show.bs.modal",".modal",function(){const t=this;t.setAttribute("data-bs-backdrop","static"),t.setAttribute("data-bs-keyboard","false");try{var e,o;const i=n.bootstrap,r=null===i||void 0===i||null===(e=i.Modal)||void 0===e||null===(o=e.getInstance)||void 0===o?void 0:o.call(e,t);r&&r._config&&(r._config.backdrop="static",r._config.keyboard=!1)}catch(u){}i(t);const r=n.__lastWindowStickerInteraction,a=t.getAttribute("id")||"",l=(null===r||void 0===r?void 0:r.modalTarget)||"",c=l&&(l===a||l===`#${a}`),d=(t.textContent||"").toLowerCase(),s=r&&Date.now()-r.timestamp<3e3;(c||s&&d.includes("window sticker"))&&(t.dataset.windowStickerTracked="true",b({event:"window_sticker_modal_open",page_location:window.location.href,page_path:window.location.pathname,click_element_id:(null===r||void 0===r?void 0:r.clickElementId)||"",interaction_type:"window_sticker_modal",modal_id:a,modal_target:l,data_url:(null===r||void 0===r?void 0:r.dataUrl)||"",analytics_source:"vhr_view_full_report"}))}),c(e).on("shown.bs.modal",".modal",function(){const t=c(e).find(".modal
1-backdrop");t.length&&t.css({position:"fixed",top:"0px",left:"0px",right:"0px",bottom:"0px",height:"100vh"})}),c(e).on("hidden.bs.modal",".modal",function(){if(r(this),"true"===this.dataset.windowStickerTracked){const t=n.__lastWindowStickerInteraction;b({event:"window_sticker_modal_close",page_location:window.location.href,page_path:window.location.pathname,click_element_id:(null===t||void 0===t?void 0:t.clickElementId)||"",interaction_type:"window_sticker_modal",modal_id:this.getAttribute("id")||"",modal_target:(null===t||void 0===t?void 0:t.modalTarget)||"",data_url:(null===t||void 0===t?void 0:t.dataUrl)||"",analytics_source:"vhr_view_full_report"}),delete this.dataset.windowStickerTracked}}))}catch(e){}},[b]),x=(0,o.useCallback)(t=>{b(t)},[b]),T=(0,o.useCallback)(t=>{try{const e=t.contentWindow;if(!e||!e.fetch)return()=>{};const n=e.fetch,o=new Map,i=t=>{if(!t)return"";try{return new URL(t,window.location.origin).toString()}catch(e){return String(t)}},r=t=>!!t&&(t.includes("sticker")||t.includes("window_sticker")||t.includes("/api/sticker")||/\.pdf(?:$|\?)/i.test(t)),a=t=>{const n=e.__windowStickerInteractions||{},o=i(t),r=Object.keys(n);for(let e=r.length-1;e>=0;e--){const t=n[r[e]];if(!t)continue;const a=i(t.dataUrl);if(a&&(o===a||o.startsWith(a)||a.startsWith(o)))return t}return e.__lastWindowStickerInteraction||null},l=t=>{if(!t)return;const n=e.__windowStickerOutcomeTimers;n&&n[t]&&(clearTimeout(n[t]),delete n[t])},c=t=>408===t||504===t?"timeout":"http_error",d=t=>{if("AbortError"===(null===t||void 0===t?void 0:t.name))return"aborted";return String((null===t||void 0===t?void 0:t.message)||"").toLowerCase().includes("timeout")?"timeout":"network_error"},s=t=>{const e="success"===t.outcome;b({event:e?"Window Sticker - Load Success":"Window Sticker - Load Failure",page_location:window.location.href,page_path:window.location.pathname,click_element_id:t.clickElementId||"",interaction_type:t.interactionType||"window_sticker_modal",flow_type:t.flowType||"modal",data_url:t.dataUrl||"",modal_target:t.modalTarget||"",outcome:t.outcome,error_type:t.errorType||"",error_detail:t.errorDetail||"",fetch_status:t.fetchStatus,fetch_duration_ms:t.duration,correlation_id:t.correlationId||"",analytics_source:"vhr_view_full_report",fetch_method:"frontend_intercept"})};return e.fetch=function(){for(var t=arguments.length,i=new Array(t),u=0;u<t;u++)i[u]=arguments[u];const[m]=i,p="string"===typeof m?m:m.url;if(!r(p))return n.apply(this,i);const w=a(p),v=(null===w||void 0===w?void 0:w.interactionType)||"window_sticker_modal",_="window_sticker_new_tab"===v?"new_tab":"modal",y=(null===w||void 0===w?void 0:w.clickElementId)||"windowStickerButton",h=(null===w||void 0===w?void 0:w.modalTarget)||"",g=(null===w||void 0===w?void 0:w.dataUrl)||p,f=(null===w||void 0===w?void 0:w.correlationId)||`sticker_${Date.now()}_${Math.random().toString(36).substring(2,11)}`;return l(f),o.set(p,{correlationId:f,startTime:Date.now(),url:p,interactionType:v,flowType:_,clickElementId:y,modalTarget:h,dataUrl:g}),console.log(`[Sticker Fetch Intercept] Starting fetch for: ${p}`),n.apply(this,i).then(t=>{const e=o.get(p)||{},n=Date.now()-e.startTime;if(t.ok)return console.log(`[Sticker Fetch Success] Status ${t.status} after ${n}ms`),s({outcome:"success",clickElementId:e.clickElementId,interactionType:e.interactionType,flowType:e.flowType,dataUrl:e.dataUrl,modalTarget:e.modalTarget,fetchStatus:t.status,duration:n,correlationId:e.correlationId}),t;{const o=c(t.status);return console.warn(`[Sticker Fetch HTTP Error] Status ${t.status} after ${n}ms`),s({outcome:"failure",errorType:o,clickElementId:e.clickElementId,interactionType:e.interactionType,flowType:e.flowType,dataUrl:e.dataUrl,modalTarget:e.modalTarget,fetchStatus:t.status,duration:n,correlationId:e.correlationId}),t}}).catch(t=>{const e=o.get(p)||{},n=Date.now()-e.startTime,i=d(t);throw console.error(`[Sticker Fetch Error] ${t.message} after ${n}ms`),s({outcome:"aborted"===i?"aborted":"failure",errorType:i,errorDetail:(null===t||void 0===t?void 0:t.message)||"",clickElementId:e.clickElementId,interactionType:e.interactionType,flowType:e.flowType,dataUrl:e.dataUrl,modalTarget:e.modalTarget,fetchStatus:0,duration:n,correlationId:e.correlationId}),t}).finally(()=>{const t=o.get(p)||{};l(t.correlationId);const n=e.__windowStickerInteractions||{};t.correlationId&&n[t.correlationId]&&(n[t.correlationId].outcomeTracked=!0),o.delete(p)})},console.log("Iframe fetch interception installed"),()=>{e.fetch=n,o.clear()}}catch(e){return()=>{}}},[b]),E=(0,o.useCallback)(t=>{try{const e=t.contentDocument,n=t.contentWindow;if(!e||!n)return()=>{};const o=t=>{const e=String(null==t?"":t).trim();if(!e||"-"===e||/^N\/?A$/i.test(e))return{kind:"na"};if(/^(UNLIMITED|LIFETIME)$/i.test(e))return{kind:"unlimited"};const n=e.replace(/,/g,"");return/^-?\d+$/.test(n)?{kind:"number",value:parseInt(n,10)}:{kind:"na"}},i=(t,e,n,o)=>
1{if(t.classList.toggle("is-invalid",!n),t.classList.toggle("is-valid",n),t.setAttribute("aria-invalid",n?"false":"true"),e){if(!o)return e.textContent="",e.classList.add("d-none"),void e.classList.remove("text-danger","text-success");e.innerHTML=n?"<i class='fa fa-check-circle' aria-hidden='true'></i> "+o:o,e.classList.remove("d-none","text-danger","text-success"),e.classList.add(n?"text-success":"text-danger")}},r=(t,e)=>"ACTIVE"===t?"<span class='warranty-status-icon active' role='img' title='"+e.activeTitle+"' aria-label='"+e.activeAria+"'><img src='"+e.successSrc+"' alt='"+e.activeTitle+"' width='22px'/></span>":"EXPIRED"===t?"<span class='warranty-status-icon expired' role='img' title='"+e.expiredTitle+"' aria-label='"+e.expiredAria+"'><img src='"+e.expiredSrc+"' alt='"+e.expiredTitle+"' width='20px'/></span>":t?"<span>"+t+"</span>":"<span>-</span>",a=(t,e)=>t<0?"-":1===t?"1 "+e.monthLabel:t+" "+e.monthsLabel,l=(t,e,n,o,i)=>{let r="N/A",l="text-muted",c="N/A",d="N/A";if("na"===t.kind&&"na"===e.kind)return{status:r,cls:l,remMi:c,remTm:d};const s="number"===t.kind,u="number"===e.kind&&null!=o,m=s?t.value-n:null,p=s&&m<=0,w=u&&o>=e.value;if("unlimited"===t.kind&&"unlimited"===e.kind)return r="ACTIVE",l="text-success",c=i.unlimitedMilesLeftLabel,d=i.lifetimeLabel,{status:r,cls:l,remMi:c,remTm:d};if(p||w)return r="EXPIRED",l="text-danger",c=p||!s?"-":Number(m).toLocaleString("en-US"),d="-",{status:r,cls:l,remMi:c,remTm:d};const v=!s||m>0,_=!u||o<=e.value;return v&&_?(r="ACTIVE",l="text-success",c="unlimited"===t.kind?i.unlimitedMilesLeftLabel:s?Number(m).toLocaleString("en-US"):"N/A",d="unlimited"===e.kind?i.lifetimeLabel:u?a(Math.max(Math.floor(e.value-o),0),i):"N/A",{status:r,cls:l,remMi:c,remTm:d}):(r="EXPIRED",l="text-danger",c="-",d="-",{status:r,cls:l,remMi:c,remTm:d})},c=t=>{if(!t)return null;const e=(t.textContent||"").toLowerCase();return t.closest(".open-sticker-modal, button[data-url], a[data-url]")||(e.includes("view window sticker")||e.includes("view vehicle label")||e.includes("window sticker")?t.closest("button, a"):null)},d=(t,e)=>{if(!t)return"";const n=t.getAttribute("href")||"",o=(t.className||"").includes("open-sticker-modal")||t.hasAttribute("data-url")||/window\s*sticker/i.test(t.textContent||""),i=!(null===e||void 0===e||!e.getElementById("stickerModal")),r=t.getAttribute("data-target")||t.getAttribute("data-bs-target")||(n.startsWith("#")?n:"");return r||(o&&i?"#stickerModal":"")},s=t=>{if(!t)return null;const e=t.closest("#downloadWindowStickerBtn, #downloadBtn, a[download], .download-link");if(e)return e;const n=t.closest("button, a");if(!n)return null;const o=(n.textContent||"").toLowerCase();return o.includes("download")&&o.includes("sticker")?n:null},u=t=>{const o=t.target,i=s(o);if(i){const t=n.__lastWindowStickerInteraction||{},e=i.getAttribute("id")||t.clickElementId||"windowStickerDownloadButton";return void b({event:"Window Sticker - Download Click",page_location:window.location.href,page_path:window.location.pathname,click_element_id:e,interaction_type:t.interactionType||"window_sticker_modal",flow_type:"window_sticker_new_tab"===t.interactionType?"new_tab":"modal",modal_target:t.modalTarget||"",data_url:t.dataUrl||i.getAttribute("href")||"",correlation_id:t.correlationId||"",analytics_source:"vhr_view_full_report"})}const r=c(o);if(!r)return;const a=d(r,e),l=r.getAttribute("data-url")||r.getAttribute("href")||"",u=r.getAttribute("id")||"windowStickerButton",m=a?"window_sticker_modal":"window_sticker_new_tab",p=`sticker_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,w=n.__windowStickerInteractions||{},v=n.__windowStickerOutcomeTimers||{};n.__lastWindowStickerInteraction={clickElementId:u,dataUrl:l,modalTarget:a,interactionType:m,correlationId:p,outcomeTracked:!1,timestamp:Date.now()},w[p]=n.__lastWindowStickerInteraction,n.__windowStickerInteractions=w,n.__windowStickerOutcomeTimers=v,"window_sticker_new_tab"===m&&(v[p]=setTimeout(()=>{const t=(n.__windowStickerInteractions||{})[p];t&&!t.outcomeTracked&&(b({event:"Window Sticker - Load Failure",page_location:window.location.href,page_path:window.location.pathname,click_element_id:t.clickElementId||"",interaction_type:t.interactionType||"window_sticker_new_tab",flow_type:"new_tab",modal_target:t.modalTarget||"",data_url:t.dataUrl||"",outcome:"unobservable_detached_tab",error_type:"detached_tab",correlation_id:t.correlationId||"",analytics_source:"vhr_view_full_report",fetch_method:"frontend_intercept"}),t.outcomeTracked=!0,delete v[p])},1500)),b({event:"window_sticker_click",page_location:window.location.href,page_path:window.location.pathname,click_element_id:u,interaction_type:m,flow_type:"window_sticker_new_tab"===m?"new_tab":"modal",modal_target:a,data_url:l,correlation_id:p,analytics_source:"vhr_view_full_report"})};return n.handleCoverageButtonClick=function(t){const n=t&&t.target?t.target:null,a=n?n.closest("#warranty"):e.getElementById("warranty");if(!a)return;const c=a.dataset||{};let d=a.querySelector("#coverageBtn");!d&&n&&(d=n.closest("button[id], a[id]"));const s=d&&d.getAttribute("id")||"coverageBtn",u=a.querySelector("#coverage"),m=a.querySelector("#coverageMessage"),p=a.querySelector("#warrantyPreloader");if(!u)return;p&&p.classList.remove("d-none");const w=function(){p&&setTimeout(function(){p.classList.add("d-none")},120)},v=(u.value||"").replace(/,/g,"").trim(),_=function(t,e,n){const o={event:s,page_location:window.location.href,page_path:window.location.pathname,click_element_id:s,interaction_type:"mileage_submit",validation_status:t,validation_reason:e||"",entered_mileage:v||"",analytics_source:"vhr_view_full_report"};
1n&&(o.active_coverage_count=n.active,o.expired_coverage_count=n.expired,o.na_coverage_count=n.na),x(o)},y=c.msgEnterMileage||"Enter Mileage",h=c.msgValidMileage||"Enter a valid non-negative mileage.",g=c.msgGood||"Looks good!";if(!v)return i(u,m,!1,y),_("invalid","empty_mileage"),u.focus(),void w();if(!/^\d+$/.test(v))return i(u,m,!1,h),_("invalid","non_numeric_mileage"),u.focus(),void w();i(u,m,!0,g);const f=a.querySelector("#warrantyDetail");if(!f)return _("invalid","missing_warranty_table"),void w();const k=parseInt(v,10),b=o(f.getAttribute("data-warranty-age")),S="number"===b.kind?b.value:null,T={successSrc:f.getAttribute("data-icon-success")||"../fullReport/img/icon-success-pass.png",expiredSrc:f.getAttribute("data-icon-expired")||"../fullReport/img/icon-expired.png",activeTitle:c.msgStatusActive||"Active",expiredTitle:c.msgStatusExpired||"Expired",activeAria:c.msgCoverageActive||"Coverage active",expiredAria:c.msgCoverageExpired||"Coverage expired"},E={monthLabel:c.msgMonth||"month",monthsLabel:c.msgMonths||"months",milesLeftLabel:c.msgMilesLeft||"miles left",lifetimeLabel:c.msgLifetime||"Lifetime"};E.unlimitedMilesLeftLabel=c.msgUnlimitedMilesLeft||"Unlimited "+E.milesLeftLabel;const I=f.querySelectorAll("tbody tr");let A=0,L=0,M=0;for(let e=0;e<I.length;e++){const t=I[e].querySelectorAll("td");if(t.length<5)continue;const n=o(I[e].getAttribute("data-warranty-miles")),i=o(I[e].getAttribute("data-warranty-months")),{status:a,cls:c,remMi:d,remTm:s}=l(n,i,k,S,E);t[1].textContent=d,t[2].textContent=s,t[3].classList.remove("text-danger","text-success","text-muted"),t[3].classList.add(c),t[3].setAttribute("data-status",a),t[3].innerHTML=r(a,T),"ACTIVE"===a?A+=1:"EXPIRED"===a?L+=1:M+=1}_("valid","coverage_calculated",{active:A,expired:L,na:M}),w()},e.addEventListener("click",u,!0),()=>{e.removeEventListener("click",u,!0);try{n.handleCoverageButtonClick=void 0}catch(o){}try{n.__lastWindowStickerInteraction=void 0}catch(o){}const t=n.__windowStickerOutcomeTimers||{};Object.keys(t).forEach(e=>clearTimeout(t[e]));try{n.__windowStickerOutcomeTimers=void 0,n.__windowStickerInteractions=void 0}catch(o){}}}catch(e){return()=>{}}},[b,x]);function I(t){const e=function(t){const e=window.atob(t),n=e.length,o=new Uint8Array(n);for(let i=0;i<n;i++)o[i]=e.charCodeAt(i);return o}(t),n=new Blob([e],{type:"application/pdf"});if(window.navigator&&window.navigator.msSaveOrOpenBlob)return void window.navigator.msSaveOrOpenBlob(n);const o=window.URL.createObjectURL(n),i=document.createElement("a");document.body.appendChild(i),i.href=o,i.title="Print Autocheck Report",i.target="_blank",i.click(),setTimeout(()=>{window.URL.revokeObjectURL(o)},1e4),i.remove()}(0,o.useEffect)(()=>{const t=g.current;if(!t||!n)return;let e=null,o=null,i=null,r=null;if(t.__modalOverlayActive)return;const a=()=>{try{if(t.__modalOverlayActive)return;if(t.contentDocument&&t.contentDocument.body){const e=t.contentDocument.documentElement.scrollHeight;e>0&&(t.style.height=e+"px")}}catch(e){}},l=()=>{a(),S(t),i=E(t),r=T(t);try{t.contentDocument&&t.contentDocument.body&&(e=new MutationObserver(a),e.observe(t.contentDocument.body,{childList:!0,subtree:!0,attributes:!0}),o=a,t.contentWindow.addEventListener("resize",o))}catch(n){}};return t.addEventListener("load",l),()=>{t.removeEventListener("load",l),i&&i(),r&&r(),t.__stickerModalObserver&&(t.__stickerModalObserver.disconnect(),delete t.__stickerModalObserver),document.documentElement.style.overflow="",document.body.style.overflow="",e&&e.disconnect();try{o&&t.contentWindow&&t.contentWindow.removeEventListener("resize",o)}catch(n){}}},[n,S,E,T]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"container navMarginMobile mydashboard",children:[(0,l.jsx)("div",{className:"row mt-4 fullReport",children:(0,l.jsxs)("div",{className:"col-12 mt-4 mb-4",children:[(0,l.jsxs)("div",{className:"d-flex gap-2 mb-4",children:[(0,l.jsx)("button",{type:"button",onClick:async()=>{const t=await(async()=>{var t,e;const n=await h((0,a.eF)({condition:"getFullReport",payload:{vin:v,isOwner:_,fileType:"PDF"}})).unwrap();return localStorage.removeItem("vhr.vehicle"),null===n||void 0===n||null===(t=n.response)||void 0===t||null===(e=t.data[0])||void 0===e?void 0:e.pdfFull})();t&&I(t)},className:"btn btn-primary base-button buttonPrimary",children:(0,l.jsx)("span",{children:"Print Report"})}),(0,l.jsx)("button",{type:"button",className:"btn btn-primary base-button buttonPrimary",onClick:k,children:(0,l.jsx)("span",{children:"Run More Reports"})})]}),(0,l.jsx)(r.N_,{to:"/vehiclehistory/dashboard",onClick:k,className:"linkstyle",children:"Return to my VHR Dashboard \xbb"})]})}),n||null!==(e=p[0])&&void 0!==e&&e.html?(0,l.jsx)("iframe",{id:"FileFrame",ref:g,srcDoc:n,title:"Vehicle History Report",style:{overflow:"visible",minHeight:"100vh",width:"100%",border:"none"}}):(0,l.jsx)("div",{children:"Loading report..."}),u.vinnyHtml&&(0,l.jsx)(c,{htmlString:`<div id="vinny-container">${u.vinnyHtml}</div>`,scripts:u.vinnyScripts,stylesheets:u.vinnyStylesheets})]})})}}}]);
2//# sourceMappingURL=8369.212ec04d.chunk.js.map

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.