1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5cb8fdb0-9461-4a55-89f4-4d93642c07a0",e._sentryDebugIdIdentifier="sentry-dbid-5cb8fdb0-9461-4a55-89f4-4d93642c07a0")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9983],{647:(e,t,n)=>{"use strict";n.d(t,{useArticles:()=>o});var r=n(25403),a=n(84377);function o(e,t){let[n,o]=(0,a.useState)([]);return t=(t=Array.isArray(t)?t:[t]).map(e=>(0,r.VC)(e)).join(","),(0,a.useEffect)(()=>{fetch("/api/articles?slug=".concat(e).concat(t.length?"&tags=".concat(t):"")).then(e=>e.json()).then(e=>{let{articles:t}=e;return o(null!=t?t:[])})},[e,t]),n}},6986:(e,t,n)=>{"use strict";n.d(t,{AnalyticsListener:()=>l});var r=n(84826),a=n(81554),o=n(77278),i=n(84377);function l(){let e=(0,o.usePathname)(),t=(0,o.useSearchParams)(),n=(0,a.useClientContext)(),l=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var a,o,i;let s=e+t.toString();if(l.current===s)return;let c=null===l.current;l.current=s,c||(null==(i=window.analytics)||null==(o=i.page)||o.call(i,{retailer:{name:n.clientName,universalRetailerId:n.universalRetailerId}},null==(a=window.analytics)?void 0:a._defaultContext),r.v.withMetadata({pathname:e}).info("Tracked page view"))},[e,t,n.clientName,n.universalRetailerId]),null}},29886:(e,t,n)=>{"use strict";n.d(t,{ProductSearchBoxContext:()=>o,ProductSearchBoxProvider:()=>i});var r=n(48621),a=n(84377);let o=(0,a.createContext)(null);function i(e){let{children:t}=e,[n,i]=(0,a.useState)(!1),[l,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{document.addEventListener("keydown",e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),f())})},[]);let c=(0,a.useRef)(null),u=(0,a.useRef)(null),d=(0,a.useRef)(null);function f(){s(!0);let{current:e}=u;e&&(e.open||e.showModal())}return(0,r.jsx)(o.Provider,{value:{open:f,close:function(){let{current:e}=u;e&&e.open&&e.close()},focus:function(){var e;if(!(null==u||null==(e=u.current)?void 0:e.open))return;let{current:t}=c;if(!t)return;let n=t.querySelector("input");null==n||n.focus()},reset:function(){var e;if(!(null==u||null==(e=u.current)?void 0:e.open))return;let{current:t}=c;t&&t.reset()},modal:c,dialog:u,resetBtn:d,available:n,setAvailable:i,loaded:l},children:t})}},35110:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(84826),a=n(77278),o=n(84377);let i=!1;function l(){let e=(0,a.usePathname)(),t=(0,a.useSearchParams)(),n=(0,o.useRef)(null);return(0,o.useEffect)(()=>{!function(){if(i||"undefined"==typeof document)return;i=!0;let e=document.addEventListener.bind(document);document.addEventListener=(t,n,a)=>"DOMContentLoaded"===t&&"loading"!==document.readyState&&null!=n?void Promise.resolve().then(()=>{try{let e=new Event("DOMContentLoaded");"function"==typeof n?n(e):n.handleEvent(e)}catch(e){r.v.withError(e).warn("[RouteChangeScriptRunner] DOMContentLoaded shim listener threw")}}):e(t,n,a)}()},[]),(0,o.useEffect)(()=>{let a=e+t.toString();if(n.current===a)return;let o=null===n.current;if(n.current=a,!o)for(let t of document.querySelectorAll('script[data-script-lifecycle="on-route-change"], script#form-name-variables'))try{var i;let e=document.createElement("script");t.type&&(e.type=t.type),t.src?/cctm\.xyz\/t\.js|tctm\.co\/t\.js/.test(t.src)?function(){var e;let t=window.__ctm;"function"==typeof(null==t||null==(e=t.main)?void 0:e.runNow)&&t.main.runNow()}():(e.src=t.src,document.head.appendChild(e)):(e.textContent=t.textContent,document.head.appendChild(e),document.head.removeChild(e))}catch(n){r.v.withError(n).withMetadata({pathname:e,preview:null==(i=t.textContent)?void 0:i.slice(0,120)}).warn("[RouteChangeScriptRunner] failed to re-execute on-route-change script")}},[e,t]),null}},45629:(e,t,n)=>{Promise.resolve().then(n.bind(n,6986)),Promise.resolve().then(n.bind(n,35110)),Promise.resolve().then(n.bind(n,66227)),Promise.resolve().then(n.bind(n,97954)),Promise.resolve().then(n.bind(n,13650)),Promise.resolve().then(n.bind(n,71696)),Promise.resolve().then(n.bind(n,99107)),Promise.resolve().then(n.bind(n,43412)),Promise.resolve().then(n.bind(n,3621)),Promise.resolve().then(n.bind(n,64706)),Promise.resolve().then(n.bind(n,21549)),Promise.resolve().then(n.bind(n,76489)),Promise.resolve().then(n.bind(n,16472)),Promise.resolve().then(n.bind(n,47927)),Promise.resolve().then(n.bind(n,90612)),Promise.resolve().then(n.bind(n,919)),Promise.resolve().then(n.bind(n,90178)),Promise.resolve().then(n.bind(n,22306)),Promise.resolve().then(n.bind(n,30298)),Promise.resolve().then(n.bind(n,14318)),Promise.resolve().then(n.bind(n,25062)),Promise.resolve().then(n.bind(n,30139)),Promise.resolve().then(n.bind(n,57940)),Promise.resolve().then(n.bind(n,90398)),Promise.resolve().then(n.bind(n,51234)),Promise.resolve().then(n.bind(n,27567)),Promise.resolve().then(n.t.bind(n,42203,23)),Promise.resolve().then(n.bind(n,59727)),Promise.resolve().then(n.bind(n,64563)),Promise.resolve().then(n.bind(n,37134)),Promise.resolve().then(n.bind(n,76611)),Promise.resolve().then(n.bind(n,29886)),Promise.resolve().then(n.bind(n,647)),Promise.resolve().then(n.bind(n,65923)),Promise.resolve().then(n.bind(n,81554)),Promise.resolve().then(n.bind(n,81985)),Promise.resolve().then(n.bind(n,47024)),Promise.resolve().then(n.bind(n,94171)),Promise.resolve().then(n.bind(n,51668)),Promise.resolve().then(n.bind(n,83997)),Promise.resolve().then(n.bind(n,70413)),Promise.resolve().then(n.bind(n,68246)),Promise.resolve().then(n.bind(n,86606)),Promise.resolve().then(n.t.bind(n,83698,23))},47024:(e,t,n)=>{"use strict";n.d(t,{useCurrentProduct:()=>a});var r=n(84377);let a=()=>{let[e,t]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.getElementById("product-json-ld");try{if(null!=e){var n,r;let a=JSON.parse(null!=(r=e.textContent)?r:"");t({Brand:null==(n=a.brand)?void 0:n.name,Product:a.name,Variant:a.color,UPID:a.productID,SKU:a.sku})}}catch(e){t(null)}},[]),e}},51668:(e,t,n)=>{"use strict";n.d(t,{useProductSearchBox:()=>o});var r=n(84377),a=n(29886);let o=()=>(0,r.useContext)(a.ProductSearchBoxContext)},59727:(e,t,n)=>{"use strict";n.d(t,{NavigationManager:()=>s});var r=n(77278),a=n(84377),o=n(84826);
1let i={name:"analytics",handler(e){var t,n,r;let{pathname:a,clientName:i,universalRetailerId:l}=e;null==(r=window.analytics)||null==(n=r.page)||n.call(r,{retailer:{name:i,universalRetailerId:l}},null==(t=window.analytics)?void 0:t._defaultContext),o.v.withMetadata({pathname:a}).info("Tracked page view")}},l={name:"broadstreet-refresh",handler(){setTimeout(()=>{var e,t;let n=document.querySelector(".srp__bs-banner banner-zone");if(null==n)return;let r=n.childNodes[0];r&&r.childNodes.length>0||(null==(e=window.broadstreet)||e.clearCampaignLog(),null==(t=window.broadstreet)||t.loadZone(n))},500)}};function s(e){let{additionalPlugins:t=[],context:n={}}=e,o=(0,r.usePathname)(),s=(0,r.useSearchParams)(),c=(0,a.useRef)(null),u=JSON.stringify(n),d=(0,a.useMemo)(()=>n,[u]),f=(0,a.useMemo)(()=>[i,l,...t],[t]);return(0,a.useEffect)(()=>{let e=s.toString(),t=o+e,n=c.current;if(n===t||(c.current=t,null===n))return;let r={...d,currentPath:t,previousPath:n,pathname:o,searchParams:e};for(let e of f){console.debug('[NavigationManager] Running plugin "'.concat(e.name,'"'));try{let t=e.handler(r);t instanceof Promise&&t.catch(t=>console.error('[NavigationManager] Plugin "'.concat(e.name,'" threw:'),t))}catch(t){console.error('[NavigationManager] Plugin "'.concat(e.name,'" threw:'),t)}}},[o,s,d,f]),null}},64563:(e,t,n)=>{"use strict";n.d(t,{ApplyFilterAction:()=>o,HydrateFilters:()=>i,SRPReducerFactory:()=>l});var r=n(84826),a=n(25403);function o(e,t){let n=JSON.parse(JSON.stringify(e.filters)),a=n.find(e=>{let{name:n}=e;return n===t.filter});if(null==a)return e;switch(null==a.enabledValues&&(a.enabledValues=[]),t.type){case"SET_ALL_TO":a.enabledValues=[t.value];break;case"UPDATE":a.enabledValues.push(t.value);break;case"REMOVE":{let e=a.enabledValues.findIndex(e=>e===t.value||"".concat(e).toLowerCase()==="".concat(t.value).toLowerCase());-1===e&&r.v.warn("Couldn't find filter (".concat(t.filter,": ").concat(t.value,") to remove")),a.enabledValues=[...a.enabledValues.slice(0,e),...a.enabledValues.slice(e+1,a.enabledValues.length)]}}return a.enabledValues=Array.from(new Set(a.enabledValues)),{...e,filters:n,needsHydration:!0}}function i(e,t){let n=[...e];for(let e of n)for(let n in e.potentialValues){var r,a,o;e.potentialValues[n]=null!=(o=null==t||null==(a=t.find(t=>t.name===e.name))||null==(r=a.potentialValues)?void 0:r[n])?o:0}return n}let l=e=>(t,n)=>{let r=!1;switch(null==n?void 0:n.type){case"RESET":t.filters=n.filters,t.loading=!1;break;case"CLEAR_ALL":for(let e of t.filters)e.enabledValues=[];r=!0;break;case"APPLY":r=!0;break;case"HYDRATE_FILTERS":t.filters=i(t.filters,n.hydratedFilters),t.needsHydration=!1;break;case"HYDRATE_FILTERS_FAIL":t.needsHydration=!1;break;case"UPDATE_SORT":t.sort=n.value,r=!0;break;default:t=o(t,n)}return r&&e(function(e,t){let n=new URL(window.location.pathname,"https://any-base-path-will-do-here.com"),r=(0,a.VA)(n.searchParams,e);t&&r.set("sort",t);let o="?".concat(r.toString());return 1===o.length&&(o=""),"/p".concat(o)}(t.filters,t.sort)),{...t}}},65923:(e,t,n)=>{"use strict";n.d(t,{useBrandNames:()=>a});var r=n(84377);function a(){let[e,t]=(0,r.useState)([]);return(0,r.useEffect)(()=>{fetch("/api/products/brands").then(e=>e.json()).then(e=>{let{brands:n}=e;return t(n)})},[]),e}},70413:(e,t,n)=>{"use strict";n.d(t,{useUrl:()=>a});var r=n(84377);let a=function(){let{withFragment:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{withFragment:!1},[t,n]=(0,r.useState)();return(0,r.useEffect)(()=>{n(e?window.location.href:window.location.href.split("#")[0])},[]),t}},83997:(e,t,n)=>{"use strict";n.d(t,{useTypes:()=>a});var r=n(84377);function a(){let[e,t]=(0,r.useState)([]);return(0,r.useEffect)(()=>{fetch("/api/products/types").then(e=>e.json()).then(e=>{let{types:n}=e;return t(n)})},[]),e}},86606:(e,t,n)=>{"use strict";n.d(t,{MosaicLoader:()=>et});var r=n(84711);let a=["%c DHQ(%s) ","background: #0080ff; color: white; border-radius: 2px;"];class o{warn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.add("warn",e,...n)}info(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.add("info",e,...n)}log(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.add("log",e,...n)}debug(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.add("debug",e,...n)}error(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.add("error",e,...n)}add(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];try{Function.prototype.bind.call(console[e],console)(...a,this.featureName,t,...r)}catch(e){}}constructor(e){this.featureName=e}}var i=n(37811);let l=new o("async-capture-error");i.env.MOSAIC_RELEASE_NAME,i.env.SENTRY_DSN;try{Error.stackTraceLimit=50}catch(e){l.warn("Could not set Error.stackTraceLimit")}function s(e){}let c={};function u(){return new Promise((e,t)=>
1{"loading"!==document.readyState?e(void 0):document.addEventListener?document.addEventListener("DOMContentLoaded",e):document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&e(void 0)})})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{reportErrors:!0};if(null!=c[e])return c[e];let n=0,r=new Promise(function r(a,o){if((n+=1)>100){let n=Error("Timed out waiting on window.".concat(e," to appear"));return t.reportErrors&&s(n),o(n)}return window[e]?a(window[e]):setTimeout(()=>r(a,o),100)});return r.catch(()=>{c[e]===r&&delete c[e]}),c[e]=r,r}function f(){return d("analytics")}async function m(){return await d("analytics"),new Promise(e=>{"function"==typeof window.analytics.ready?window.analytics.ready(()=>{setTimeout(()=>e(window.analytics))}):setTimeout(()=>e(window.analytics))})}async function h(e){let t=function(){try{var e;return null==(e=window.analytics)?void 0:e.user().id()}catch(e){return}}();if(t)return t;let a=[],o=async(e,t)=>{let{default:r}=await n.e(3952).then(n.t.bind(n,35454,23));a.push("".concat(e,":").concat(r(t)))};if("string"==typeof e.email)await o("email",e.email.toLocaleLowerCase());else{if("string"!=typeof e.phone&&"string"!=typeof e.phoneNumber)return;let{default:t}=await Promise.all([n.e(3786),n.e(5049)]).then(n.bind(n,33482)),r=t(e.phone||e.phoneNumber,"US");(null==r?void 0:r.isPossible())&&await o("phone",r.format("E.164"))}return(0,r.compact)(a).join("/")}function p(e,t){let n=(0,r.defaultsDeep)({},window.analytics._defaultContext,t);return(null==e?void 0:e.application)&&(n.app={...n.app,name:e.application},null==n.timestamp&&(n.timestamp=new Date().toISOString())),(0,r.isEmpty)(n)?void 0:n}async function v(e,t,n){let a=(0,r.compact)([await h(e),e,p(e,t),n]);window.analytics.identify(...(0,r.compact)(a))}function y(e){let t=(0,r.defaultsDeep)({},window.analytics._defaultContext,e);return window.analytics._defaultContext=t,t}function w(e){try{return e()||{}}catch(e){return s(e),{}}}async function b(){try{return await m(),function e(t,n){return"object"!=typeof t?t:(0,r.mapValues)(t,t=>"object"==typeof t?e((0,r.omitBy)(t,n),n):e(t,n))}({traits:w(()=>
1window.analytics.user().traits()),context:w(()=>window.analytics._defaultContext),user:w(()=>({id:window.analytics.user().id(),anonymousId:window.analytics.user().anonymousId()}))},e=>null==e)}catch(e){return s(e),{traits:{},context:{},user:{}}}}async function g(){return btoa(JSON.stringify({version:1,...await b()}))}let P=new o("traits");function S(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];try{return e(...n)}catch(e){P.error("Could not extract page attribute",e);return}}let E=["Product"];function C(e){let t=e.querySelector('script[type="application/ld+json"]');if(null==t)return;let n=function(e,t){var n,r;let a=null==(n=e.textContent)||null==(r=n.replace("//<![CDATA[",""))?void 0:r.replace("//]]>","");if(null==a)return{};try{return JSON.parse(a)}catch(e){return t.error("Could not parse structured data JSON",e),{}}}(t,P),r=n["@type"];if("string"==typeof r&&E.indexOf(r)>=0)return n["@type"]}function k(e){var t;return null==(t=e.querySelector("meta[itemprop=name]"))?void 0:t.content}async function R(e,t){if(await f(),!function(e){let t=(0,r.defaultsDeep)({},window.analytics._defaultTraits,e);window.analytics._defaultTraits=t}({retailerName:e.retailerName}),y({groupId:t.universalRetailerId,app:{name:e.application||"unknown"}}),window.analytics.identify({"universal-retailer-id":t.universalRetailerId},window.analytics._defaultContext),!e.skipPageview){let n=S(C,document),r=S(k,document);y({page:{name:r,category:n}});let a={...e.pageVars||{},name:r,category:n,application:e.application,retailer:{universalRetailerId:t.universalRetailerId,name:e.retailerName}};window.analytics.page(a,window.analytics._defaultContext)}}function A(e,t,n){try{let r=n.get(e);if(null==r)return t;let a=t[e]||[];return a.push({ts:new Date().toISOString(),value:r}),t[e]=a,t}catch(e){return s(e),t}}async function L(){if("undefined"==typeof URLSearchParams)return;let e=await m(),t=e.user().traits(),n=new URLSearchParams(window.location.search),r=t.adAttribution||{};A("gclid",r,n),A("fbclid",r,n),e.identify({adAttribution:r})}var _=n(25403);function N(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=document.querySelectorAll(e);if(n<10&&0===r.length)setTimeout(()=>N(e,t,n+1),1e3);else for(let e of r)e.value=t}async function x(e){var t;await u();let n="cpc"===(t=e).medium&&"google"===t.source?"Google PPC":"organic"===t.type?"Organic Search":t.medium&&"none"!==t.medium?(0,_.Sn)(t.medium):(0,_.Sn)(t.type||""),r=e.source;N('input[name="source"]',n),N('input[name="sourcedetail"]',r)}async function I(e){var t,n;await f(),null==(t=(n=window.analytics).on)||t.call(n,e,()=>{setTimeout(async()=>N('input[name="floorlytics-blob"]',await g()),10)})}async function D(e){for(let t in await u(),e)N('input[name="traffic-'.concat(t,'"]'),e[t]),N('input[name="utm_'.concat(t,'"]'),e[t]);["page","identify","alias","group"].forEach(e=>{I(e)}),N('input[name="floorlytics-blob"]',await g())}let T=new o("traffic-source-tracking");var V=n(82029),O=n.n(V);async function M(e){await f(),y({campaign:{name:e.campaign,source:e.source,medium:e.medium,content:e.content,term:e.term}}),window.analytics.identify({trafficInfo:e},window.analytics._defaultContext)}function F(e){try{D(e)}catch(e){T.error("Could not attach to compatible form (%s)",e.message)}try{x(e)}catch(e){T.error("Could not attach to FF8 contact form (%s)",e.message)}try{M(e)}catch(e){}}function B(e){return O().init({callback:e=>{let{typ:t,src:n,mdm:r,cmp:a,cnt:o,trm:i}=e.current;F({type:"typein"===t?"direct":t,source:n,medium:r,campaign:a,content:o,term:i})},typein_attributes:{source:"direct",medium:"none"},referrals:[{host:"www.flooringstores.com",display:"flooringstores",medium:"directory"},{host:"yelp.com",display:"yelp",medium:"directory"},{host:"facebook.com",display:"facebook",medium:"social"},{host:"instagram.com",display:"instagram",medium:"social"},{host:"fb.com",display:"facebook",medium:"social"},{host:"angieslist.com",display:"angieslist",medium:"directory"}]}),L()}let q=[],j=new o("viz-analytics"),z={loaded:"Visualizer Loaded",roomLoaded:"Room Loaded",viewProduct:"Product Viewed",productSelected:"Product Clicked",requestSample:"Requested Sample",requestPhone:"Requested Phone",requestEmail:"Requested Email",emailContact:"Requested Email","Visualized Product":"Product Visualized","Clicked Flooring Product":"Product Clicked","Clicked Add Favorite Button":"Product Added","Clicked Remove Favorite Button":"Product Removed","Clicked Favorites Button":"Cart Viewed","Apply Filters":"Product List Filtered","Clicked Info Button":"Product Viewed","Session End":"Session Ended","User Session Start":"Session Started"};function U(e){return(0,r.omitBy)(e,e=>null==e)}let H=null;function J(e,t,n){var a;let{eventFeature:o}=e,{occurredAt:i,dealerUUID:l,dealerName:s,id:c,extId:u,brandName:d,...f}=e.eventData,m=U({...(0,r.omit)(f,["userSession","currentPage","filteredTypes","filteredColors","filteredBrands"]),...{},...n,...function(e){let{eventData:t}=e,n=e=>t=>({type:e,value:t}),a=(0,r.map)(t.filteredBrands,n("brand")),o=[...a,...(0,r.map)(t.filteredTypes,n("category")),...(0,r.map)(t.filteredColors,n("color"))];return 0!==o.length?{filters:o}:{}}
1(e),id:c,product_id:u,brand:d,application:"viz",category:o,universalRetailerId:n.universalRetailerId||l,retailerName:s,label:e.eventResult,...(null==(a=window.analytics)?void 0:a._defaultTraits)||{}}),h=U({app:{name:"viz"},device:U({id:f.deviceId}),groupId:m.universalRetailerId,timestamp:i});return[m,h]}function Y(){document.querySelectorAll('meta[name="floorlytics-blob"]').forEach(e=>{var t;null==(t=e.parentNode)||t.removeChild(e)})}async function K(){let e=document.createElement("meta");e.name="floorlytics-blob",e.content=await g(),document.head.appendChild(e)}function G(e,t,n){try{var a;let{eventData:o}=e;(function(e){let t=e.eventData.userSession;return null!=t&&t!==window.analytics.user().anonymousId()})(e)&&o.userSession&&(j.info("Detected new session ID, initializing new session"),H=null,window.analytics.reset(),Y(),Y(),K());let i=function(e){let{eventName:t,eventAction:n}=e;return z[n]||z[t]||n||(0,r.startCase)(t)}(e),[l,s]=J(e,t,n);!function(e,t,n){let{eventFeature:r}=e;if(!0===t.kiosk&&r!==H){H=r;let[a,o]=J(e,t,n);window.analytics.page("Viewed ".concat(r," Page"),a,o)}}(e,t,n),function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[a,o]=t,i=U((0,r.pick)(a,["email","phoneNumber"]));(0,r.isEmpty)(i)||v(i,o)}(l,s);let c=(0,r.compact)([l,p(l,s),a]);window.analytics.track(i,...c)}catch(t){j.error("Error when dispatching '".concat(e.eventName,"'"),t)}}let Q=null,Z=!1;function W(e,t){if(Q={variables:e,context:t},!Z){var n;Z=!0,n=()=>{let n=e.kiosk?"kioskEvents":"allEvents";f().then(()=>d("vizLoader")).then(a=>{a.addListener(n,n=>{let a=null!=Q?Q:{variables:e,context:t};!function(e,t,n){let a={...e.eventData,occurredAt:e.eventData.occurredAt||new Date().toISOString()},o={...e,eventData:a};q.push({event:o,variables:t,context:n}),setTimeout(()=>(function(e){if(0===q.length)return;let t=[...q];for(let n of(q=[],(0,r.sortBy)(t,e=>e.event.eventData.occurredAt)))e(n.event,n.variables,n.context)})(G),100)}(n,a.variables,a.context)})}).catch(()=>{})},"loading"!==document.readyState?n():document.addEventListener?document.addEventListener("DOMContentLoaded",n):document.attachEvent("onreadystatechange",()=>{"complete"===document.readyState&&n()})}}new o("broadstreet");let X=new o("wrap-install");function $(e,t){X.error("Error when installing feature",e,t)}var ee=n(84377);function et(e){let{clientName:t,universalRetailerId:n=""}=e;return(0,ee.useEffect)(()=>{for(let{name:e,fn:r,args:a}of[{name:"traits",fn:R,args:[{retailerName:t,application:"dealerportal",skipPageview:!1},{universalRetailerId:n}]},{name:"traffic-source-tracking",fn:B,args:[{}]},{name:"viz-analytics",fn:W,args:[{kiosk:!1},{universalRetailerId:n}]}])(function(e,t){return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];try{X.debug("Installing feature",e);let n=t(...r);return null!=n&&("object"==typeof n||"function"==typeof n)&&"function"==typeof n.then&&"function"==typeof n.catch&&n.catch(t=>$(e,t)),n}catch(t){$(e,t);return}}})(e,r)(...a)},[n,t]),null}}},e=>{e.O(0,[466,8186,6819,6710,5672,2029,612,7868,9347,7358],()=>e(e.s=45629)),_N_E=e.O()}]); 2//# sourceMappingURL=layout-f4df1fab7dac1fa8.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.