window.Adviserly=window.Adviserly||{},window.Adviserly.CStream=window.Adviserly.CStream||{},function(e){var n="̂-Ü-Œ-ó-,-A-B-C-!-@-#-$",s=function(){var e=null;try{e=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}if(void 0===e||null==e)try{e=String(String(new Date).split("(")[1]).split(")")[0]}catch(e){}return e}(),a=function(e,t){for(var i,n,r=3&e.length,o=e.length-r,s=t,a=3432918353,l=461845907,d=0;d>>16)*a&65535)<<16)&4294967295)<<15|n>>>17))*l+(((n>>>16)*l&65535)<<16)&4294967295)<<13|s>>>19))+((5*(s>>>16)&65535)<<16)&4294967295))+((58964+(i>>>16)&65535)<<16);switch(n=0,r){case 3:n^=(255&e.charCodeAt(d+2))<<16;case 2:n^=(255&e.charCodeAt(d+1))<<8;case 1:s^=n=(65535&(n=(n=(65535&(n^=255&e.charCodeAt(d)))*a+(((n>>>16)*a&65535)<<16)&4294967295)<<15|n>>>17))*l+(((n>>>16)*l&65535)<<16)&4294967295}return s^=e.length,s=2246822507*(65535&(s^=s>>>16))+((2246822507*(s>>>16)&65535)<<16)&4294967295,s=3266489909*(65535&(s^=s>>>13))+((3266489909*(s>>>16)&65535)<<16)&4294967295,(s^=s>>>16)>>>0}(function(){var e,t=document.createElement("canvas"),i="";try{(e=t.getContext("2d")).textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(n,4,17),i=t.toDataURL()}catch(e){}return i}()+"|"+s+"|"+window.navigator.userAgent+"|"+window.navigator.language,256);e.ClickStream=function(e,t,i){if(!t||!t.name)throw Error("appContext with name property is required.");this.baseUrl=e,this.appContext=t,this.appKey=i,this.pageRoute=null,this._loadIntegrations(t.integrations)},e.ClickStream.prototype._loadIntegrations=function(e){if(this._integrations=[],e)for(var t=0;t
',this.eAnchor,e),this.ePreload=this.eAnchor.parentElement.querySelector(".aly-pya-preload"),this.eAdviserSelector=this.ePreload.querySelector(".aly-pya-adviser-selector-host"),this.initialLoad()},n.prototype.loadAnchor=function(t,i){this.eAnchor=t,this.preloadAdviserSelector();var e=new XMLHttpRequest,n=this;e.onload=function(){var e;t&&t==n.eAnchor&&t.isConnected?(400<=this.status?console.log("widget response status: ",this.status,"error: ",this.responseText):(n.debug,n.sendHitPageView("/"),n.insertWidgetHtml(this.responseText),(e=window.document.querySelector(".aly-pya-ddc-placeholder"))&&(e.style.display="none"),n.ePreload&&(n.ePreload.style.display="none")),i()):console.warn("Anchor is no longer valid.")};var r={widgetId:this.context.configurationId,profileFilterId:this.currentFilterId},r=window.Adviserly.Plugins.formatQS(r),r=this.baseUrl+"/widget/embedded/pick-your-adviser?"+r;e.open("GET",r),e.send()},n.prototype.unloadAnchor=function(e){this.eWidget&&(this.eWidget.style.display="none",e.removeChild(this.eWidget)),this.ePreload&&(this.ePreload.style.display="none",e.removeChild(this.ePreload)),this.eHeader&&(this.eHeader.style.display="none"),this.eBody&&(this.eBody.style.display="none"),this.eAnchor=null},n.prototype.allowMultipleAnchors=function(){return!1},n.prototype.insertWidgetHtml=function(e){var t=this.config.anchorInsert,i=this.eAnchor.parentElement.querySelector(".aly-pya");i&&this.eAnchor.removeChild(i),this.attachHtmlToAnchor(e,this.eAnchor,t);var n=this;this.eWidget=this.eAnchor.parentElement.querySelector(".aly-pya"),this.eWidget.setAttribute("data-name",this.config.name),this.eWidget.setAttribute("data-type",this.config.type),this.eGroupSelector=this.eWidget.querySelector(".aly-pya-group-selector"),this.eGroupSelector&&(this.eGroupSelectorList=this.eWidget.querySelector(".aly-pya-group-selector-list"),this.eGroupSelectorList.addEventListener("click",function(e){n.handleGroupSelectorListClick(e)}),this.eGroupHeader=this.eAnchor.parentElement.querySelector(".aly-pya-group-header"),this.eGroupSelectorReturn=this.eWidget.querySelector(".aly-pya-group-header .return-to-group-selector"),this.eGroupSelectorReturn.addEventListener("click",function(e){n.handleGroupSelectorReturnClick(e)}),this.eGroupSelectorMemberList=this.eWidget.querySelector(".aly-pya-group-header .group-member-list"),this.eGroupSelectorMemberList.addEventListener("click",function(e){n.handleGroupMemberClick(e)})),this.eHeader=this.eWidget.querySelector(".aly-pya-header"),this.eBody=this.eWidget.querySelector(".aly-pya-body"),this.eProfileFilter=this.eWidget.querySelector(".advisers-filter"),this.eProfileFilterSelect=this.eWidget.querySelector(".advisers-filter-ddl"),this.eProfileFilterSelect&&this.eProfileFilterSelect.addEventListener("change",function(e){n.handleProfileFilterSelectChange(e)}),this.eAdvisersLink=this.eWidget.querySelector(".advisers-link"),this.eAdvisersLink.addEventListener("click",function(e){n.handleAdvisersLinkClick(e)}),this.eBody.appendChild(this.eAdviserSelector)},n.prototype.handleGroupSelectorListClick=function(e){e.preventDefault();e=window.Adviserly.Plugins.getSelfOrAncestorWithClassName(e.target,"aly-pya-group");e&&(e=e.getAttribute("data-tag"),console.log("selected group: "+e),this.sendHitEvent("Plugin Navigation","Go To Group","Clicked to change group selection to tag: "+e),this.selectGroup(e))},n.prototype.handleGroupSelectorReturnClick=function(e){e.preventDefault(),window.Adviserly.Plugins.getSelfOrAncestorWithClassName(e.target,"return-to-group-selector")&&(console.log("return to group selector"),this.sendHitEvent("Plugin Navigation","Go To Group Selector","Clicked to return to group selection"),this.selectGroup(null))},n.prototype.handleGroupMemberClick=function(e){if(e.preventDefault(),window.Adviserly.Plugins.getSelfOrAncestorWithClassName(e.target,"group-member-details__name")){var t=e.target.getAttribute("data-team-name"),i=e.target.getAttribute("data-team-web-property-url");return this.sendHitEvent("Team Connect","Go To Web Property","Clicked to view team: "+t+", web property: "+i),void(!i||(n=window.open(i,"_blank"))&&n.focus())}var n=window.Adviserly.Plugins.getSelfOrAncestorWithClassName(e.target,"group-member");n&&(e=n.getAttribute("data-app-key"),n=n.getAttribute("data-profile-filter-id"),console.log("selected group member appKey: "+e+", filter: "+n),this.sendHitEvent("Plugin Navigation","Go To Group","Clicked to change group member selection page: "+e+", filter: "+n),this.selectGroupMember(e,n))},n.prototype.handleProfileFilterSelectChange=function(e){e.preventDefault();e=e.target.value;this.sendHitEvent("Plugin Navigation","Change Team / Filter","Changed advisers filter to: "+e),this.selectAdviserList(null,this.appKey,e)},n.prototype.handleAdvisersLinkClick=function(e){e.preventDefault(),this.sendHitEvent("Team Connect","Go To Team List","Clicked to view more advisers");e=window.open(this.baseUrl,"_blank");e&&e.focus()},n.prototype.getCurrentFilterName=function(){return this.eProfileFilterSelect&&-1!==this.eProfileFilterSelect.selectedIndex?this.eProfileFilterSelect.options[this.eProfileFilterSelect.selectedIndex].innerText:"NA"},n.prototype.refreshFilterSelect=function(){var e=this.eProfileFilterSelect.querySelector('[value="'+this.currentFilterId+'"]');e&&(e.selected=!0)},n.prototype.initialLoad=function(){this.selection={},this.adviserSelectorState="unloaded",this.selectAdviserList(null,null,null)},n.prototype.validateLayout=function(){if(this.eGroupSelector){if(this.eProfileFilter.classList.add("hide"),this.eAdvisersLink.classList.add("hide"),this.selection.tag?(this.eGroupSelector.classList.add("hide"),this.eGroupHeader.classList.remove("hide"),this.eHeader.classList.remove("hide"),this.eBody.classList.remove("hide")):(this.eGroupSelector.classList.remove("hide"),this.eGroupHeader.classList.add("hide"),this.eHeader.classList.add("hide"),this.eBody.classList.add("hide")),this.selection.memberAppKey){for(var e=this.eGroupSelectorMemberList.querySelectorAll(".group-member"),t=0;t{const t={eAdviserSelector:e,filterId:e.getAttribute("data-filter-id"),filterName:e.getAttribute("data-filter-label"),loaded:!1};this.adviserSelectors.push(t),e.contentWindow.addEventListener("resize",function(e){i.handleAdviserSelectorResize(e,t)}),window.addEventListener("message",function(e){i.handleWindowMessage(e,t)})})},n.prototype.validateLayout=function(){},n.prototype.handleAdviserSelectorResize=function(e,t){this.debug&&console.log("adviser-selector window: "+t.filterId+" resized. width: "+e.target.clientWidth+", height: "+e.target.clientHeight)},n.prototype.handleWindowMessage=function(e,t){if(e&&e.data){var i=e.data;if("string"==typeof i)try{i=JSON.parse(i)}catch(e){}var n=i.messageId;if("string"==typeof n){var r=i.message;if(this.debug&&console.log("meet-the-team received. message id: "+n),e.source==t.eAdviserSelector.contentWindow)switch(n){case"adviser-selector.list-loading":break;case"adviser-selector.list-loaded":t.currentFilterId=r.filterId,t.currentSort=r.sort,t.state="loaded",this.refreshLayout();break;case"adviser-selector.card-loaded":break;case"adviser-selector.connect-with":this.contactAdviser(t,r.adviserHandle,r.cardIndex,r.cardBoundingClientRect);break;case"adviser-selector.view-profile":this.viewProfile(t,r.adviserHandle,r.cardIndex,r.cardBoundingClientRect);break;case"adviser-selector.list-change":case"adviser-selector.focus-change":case"adviser-selector.cards-searched":break;case"adviser-selector.layout-size":t.eAdviserSelector.style.width="100%",t.eAdviserSelector.style.height=r.height+"px";break;default:console.log("no handler for adviser selector message id: "+n)}else if(this.pAdviserConnect&&e.source==this.pAdviserConnect.messageWindow)switch(n){case"adviser-connect.canceled":case"adviser-connect.adviser-contact.finished":this.closeAdviserConnect();break;default:console.log("no handler for adviser contact message id: "+n)}}}},n.prototype.sendAdviserSelectorMessage=function(e,t,i){this.debug&&console.log("meet-the-team sent. message id: "+t),window.Adviserly.Plugins.sendMessage(e.eAdviserSelector.contentWindow,t,i)},n.prototype.contactAdviser=function(e,t,i,n){this._openAdviserConnect("adviser-contact",{width:600,height:900},e,t,i,n)},n.prototype.viewProfile=function(e,t,i,n){this._openAdviserConnect("profile",{width:600,height:900},e,t,i,n)},n.prototype._openAdviserConnect=function(e,t,i,n,r,o){this.debug&&console.log("try to connect with adviser handle: "+n+", coords: "+JSON.stringify(o));var s=i.eAdviserSelector.getBoundingClientRect(),s={left:o.left+s.left,top:o.top+s.top,width:o.width,height:o.height},o={connectContext:{siteHandle:this.appKey,adviserHandle:n,host:{webDomain:document.location.host,appName:this.context.name,appVersion:this.context.version,appPath:"/adviser-connect"},adviserContact:{teamName:i.filterName,audience:"adviser"}}},i=window.Adviserly.Plugins.formatQS(o),i=window.Adviserly.cUrlSdk+"/apps/adviser-connect/"+e+"?"+i,t={initialPosition:s,initialSize:s,initialClasses:["adviserly-popup__max-size-90pc"],transitionClasses:["adviserly-transform__fade-in"],finalPosition:{left:"",top:""},finalSize:t,finalClasses:["shadow","opaque","adviserly-popup__centered","adviserly-popup__max-size-90pc","adviserly-popup__rounded"]};this.sendHitEvent("Adviser Connect","Open Connect Wizard","Adviser connect opened for adviser: "+n,r,n),this.pAdviserConnect=window.Adviserly.Plugins.openPopupFrame("adviser-connect",i,t,o),this.pAdviserConnect.data=o},n.prototype.closeAdviserConnect=function(){window.Adviserly.Plugins.closePopupFrame("adviser-connect"),this.pAdviserConnect&&(this.sendHitEvent("Adviser Connect","Close Connect Wizard","Adviser connect closed for "+this.pAdviserConnect.data.adviserHandle,null,this.pAdviserConnect.data.adviserHandle),this.pAdviserConnect=null)},n.prototype.loadAdviserSelectors=function(t){var i=this;this.adviserSelectors.forEach(e=>{i.loadAdviserSelector(e,t)})},n.prototype.loadAdviserSelector=function(e,t){var i;"loaded"==e.state?(i={profileFilterId:e.filterId,namedSort:t},this.sendAdviserSelectorMessage(e,"adviser-selector.change-list",i)):(t={hostAppName:this.context.name,hostAppVersion:this.context.version,hostAppPath:"/adviser-selector",widgetId:this.adviserSelectorWidgetId,profileFilterId:e.filterId,namedSort:t},t=window.Adviserly.Plugins.formatQS(t),t=this.baseUrl+"/widget/framed/adviser-selector?"+t,e.eAdviserSelector.src=t)},i.create=function(e,t){e=new n(e,t);return window.Adviserly.Plugins["meet-the-team"][t.widgetId]=e}}(window.Adviserly.Plugins["meet-the-team"]=window.Adviserly.Plugins["meet-the-team"]||{}); (function (doc, script, js, fjs) { var pluginsUrl = 'https://sdk.adviserly.com/plugins/combined-embed.min.js'; var eScriptHost = doc.currentScript; var cfgAdviserlyPlugin = { 'appId': 'hhchevy', 'scriptHost': eScriptHost, 'widgets': [{"type":"pick-your-adviser","forPaths":"www\\.hhchevy\\.com\\/(?:$|\\/$|\\/\\?.*|\\?.*|\\/\\#.*|\\#.*)","widgetId":"cfg-sales","version":"1.3.5","contextProvider":"adviserly","integrations":[],"config":{"anchorInsert":"afterbegin","title":"Select Your Sales Advisor","advisersFilterLabel":"","advisersLinkLabel":"VIEW ALL ADVISORS","adviserSelectorWidgetId":"pya-adviser-selector"}},{"type":"pick-your-adviser","forPaths":"www\\.hhchevy\\.com\\/service\\/(?:$|\\/$|\\/\\?.*|\\?.*|\\/\\#.*|\\#.*)","widgetId":"cfg-service","version":"1.3.5","contextProvider":"adviserly","integrations":[],"config":{"anchorInsert":"afterbegin","title":"Select Your Service Advisor","advisersFilterLabel":"","advisersLinkLabel":"VIEW ALL SERVICE ADVISORS","adviserSelectorWidgetId":"pya-adviser-service-selector"}},{"type":"contact-us","forPaths":"www\\.hhchevy\\.com\\/[C|c]ontact","widgetId":"cfg-contact-us","version":"1.3.5","contextProvider":"adviserly","integrations":[],"config":{"anchorInsert":"afterbegin","subtitle":"Which department would you like to contact?","advisersFilterLabel":"Department","advisersSelectedFilterOverrides":{"sales":"Sales Advisors","service":"Service Advisors"},"advisersFilterMessage":"Select the advisor you'd most like working for you","adviserSelectorWidgetId":"contact-us-adviser-selector","styleOverride":{"widget":{"backgroundColor":"Transparent"}}}},{"type":"inventory-adviser","forPaths":"^.*\\.hhchevy\\.com\\/search/","widgetId":"cfg-inventory-adviser-dealer-eprocess-srp","version":"1.3.5","contextProvider":"adviserly","integrations":[],"config":{"anchor":".vehicle_item .vehicle_item__bottom_bar","anchorInsert":"afterbegin","chooseTitle":"Questions about this vehicle?","chooseSubtitle":"Choose your Advisor and get answers","chosenTitle":"Connect with your Advisor","adviserSelectorWidgetId":"inventory-adviser-sales-adviser-selector","itemContext":{"attributes":{"name":{"name":"Name","selector":"name","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"year":{"name":"Year","selector":"vehicleModelDate","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"make":{"name":"Make","selector":"manufacturer.name","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"model":{"name":"Model","selector":"model","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"stockNumber":{"name":"Stock Number","selector":"sku","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"vin":{"name":"VIN","selector":"vehicleIdentificationNumber","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"inventoryUrl":{"name":"Inventory URL","selector":"url","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"imageUrl":{"name":"Image URL","selector":"image[0]","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"}},"chooseTitleFormat":"You found the perfect ${make} ${model}","chooseSubtitleFormat":"Now select the perfect adviser to help you take it home."},"bannerPositioningCss":"\r\n.adviserly-plg-ia__banner { \r\n z-index: inherit;\r\n}\r\n\r\n.adviserly-plg-ia__banner.stacked { \r\n margin-bottom: 20px;\r\n}\r\n\r\n.adviserly-plg-ia__banner .banner-container { \r\n border-top-width: 1px;\r\n box-shadow: none;\r\n border-bottom-left-radius: 0px;\r\n border-bottom-right-radius: 0px;\r\n border: 1px solid transparent;\r\n}\r\n\r\n.adviserly-plg-ia__banner.stacked .banner-container { \r\n margin: 0;\r\n}\r\n","randomBannerOrder":true}},{"type":"inventory-adviser","forPaths":"^.*\\.hhchevy\\.com\\/auto\\/","widgetId":"cfg-inventory-adviser-dealer-eprocess-vdp","version":"1.3.5","contextProvider":"adviserly","integrations":[],"config":{"anchor":"#region_4","anchorInsert":"beforeend","chooseTitle":"Questions about this vehicle?","chooseSubtitle":"Choose your Advisor and get answers","chosenTitle":"Connect with your Advisor","adviserSelectorWidgetId":"inventory-adviser-sales-adviser-selector","itemContext":{"attributes":{"name":{"name":"Name","selector":"name","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"year":{"name":"Year","selector":"vehicleModelDate","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"make":{"name":"Make","selector":"manufacturer.name","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"model":{"name":"Model","selector":"model","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"stockNumber":{"name":"Stock Number","selector":"sku","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"vin":{"name":"VIN","selector":"vehicleIdentificationNumber","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"inventoryUrl":{"name":"Inventory URL","selector":"url","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"},"imageUrl":{"name":"Image URL","selector":"image[0]","jsonLdType":"Vehicle","jsonLdAnchorSelector":"::parent ::parent"}},"chooseTitleFormat":"You found the perfect ${make} ${model}","chooseSubtitleFormat":"Now select the perfect adviser to help you take it home."},"bannerPositioningCss":"\r\n.adviserly-plg-ia__banner .banner-container { \r\n border-top-width: 1px;\r\n box-shadow: none;\r\n border-bottom-left-radius: 0px;\r\n border-bottom-right-radius: 0px;\r\n border: 1px solid transparent;\r\n}\r\n\r\n.adviserly-plg-ia__banner { \r\n margin: -5px 0 30px 0;\r\n}\r\n\r\n.adviserly-plg-ia__banner.stacked .banner-container { \r\n margin: 0;\r\n}\r\n\r\n","randomBannerOrder":true}}], }; if (window.Adviserly && window.Adviserly.Plugins) { if (window.Adviserly.cBootstrapUrl.indexOf('plugins/plugins') == -1) { window.Adviserly.Plugins.loadStyle(pluginsUrl.replace(/\.js$/, '.css')); } try { Adviserly.Plugins.load(cfgAdviserlyPlugin); } catch (e) { } } else { js = doc.createElement(script); js.src = pluginsUrl; fjs = doc.getElementsByTagName(script)[0]; fjs.parentNode.insertBefore(js, fjs); js.onload = js.onreadystatechange = function () { var rs = this.readyState; if (rs && rs != 'complete' && rs != 'loaded') return; window.setTimeout(function () { try { Adviserly.Plugins.load(cfgAdviserlyPlugin); } catch (e) { } }, 1); }; } }(document, 'script'));