{"version":3,"names":["$","document","ready","$feedbackLinks","length","on","locationName","this","attr","headingText","text","replace","sanitizeHtmlStrings","analytics","eventConfig","push","target","events","eventTarget","eventType","tags","event","componentId","componentName","elementType","elementText","destinationUrl","searchType","titleText","rule","value","event1","eventCategory","eventAction","eventLabel","external_url","page_type","page_title","page_bu","environment","page_language","sitecore_contact_id","pardot_cookie_id"],"sources":["assets/feature/locator/locatorDetail/js/_locatorDetail.js"],"sourcesContent":["//Analytics used in 3 components in Locator folder:\r\n//src\\Feature\\Locator\\code\\Views\\DistributorDetail\\DistributorDetail.cshtml\r\n//src\\Feature\\Locator\\code\\Views\\LocatorDetails\\KHWSDetail.cshtml\r\n//src\\Feature\\Locator\\code\\Views\\LocatorDetails\\RowDetails.cshtml\r\n\r\n//brought from custom component\r\n$(document).ready(function () {\r\n $feedbackLinks = $('.leave-feedback-link');\r\n if (!$feedbackLinks.length) return false;\r\n $feedbackLinks.on('click', function () {\r\n var locationName = $(this).attr('data-location-name') || '',\r\n $modalHeading = $('#leaveFeedbackHeader'),\r\n headingText = $modalHeading.text().replace('{{LocationName}}', locationName);\r\n $('#leaveFeedbackHeader').text(sanitizeHtmlStrings(headingText));\r\n });\r\n});\r\n\r\nanalytics.eventConfig.push({\r\n \"target\": \".component.locator-detail\",\r\n \"events\": [\r\n // Contact us\r\n {\r\n \"eventTarget\": \".btn-direction-loc a.btn-primary\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"lgdsd\",\r\n \"componentName\": \"locator get directions station details\",\r\n \"eventType\": \"get directions outbound click\",\r\n \"elementType\": \"get directions button\",\r\n \"elementText\": \"\",\r\n \"destinationUrl\": \"\",\r\n \"searchType\": \"retailgasstations\",\r\n \"titleText\": \"\"\r\n }\r\n },\r\n {\r\n \"eventTarget\": \".location-map a.btn-secondary\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"ldwb\",\r\n \"componentName\": \"locator details website cta\",\r\n \"eventType\": \"location website outbound click\",\r\n \"elementType\": \"location website button \",\r\n \"elementText\": \"\",\r\n \"destinationUrl\": \"\",\r\n \"searchType\": \"locator-details\",\r\n \"titleText\": \"\"\r\n }\r\n },\r\n {\r\n \"eventTarget\": \"a[href^='mailto']\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"ldcl\",\r\n \"componentName\": \"row locator details contact link\",\r\n \"eventType\": \"location click to email\",\r\n \"elementType\": \"email link\",\r\n \"searchType\": \"locator-details\",\r\n \"titleText\": \"\"\r\n }\r\n },\r\n\r\n // Contact us tel\r\n {\r\n \"eventTarget\": \".location-info-telephone a[href]\", \r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"ldcl\",\r\n \"componentName\": \"row locator details contact link\",\r\n \"eventType\": [\r\n {\r\n \"rule\": \"$(context).attr('href').toLowerCase().startsWith('fax:')\",\r\n \"value\": \"location click to fax\"\r\n },\r\n {\r\n \"rule\": true,\r\n \"value\": \"location click to call\"\r\n }\r\n ],\r\n \"elementType\": [\r\n {\r\n \"rule\": \"$(context).attr('href').toLowerCase().startsWith('fax:')\",\r\n \"value\": \"fax link\"\r\n },\r\n {\r\n \"rule\": true,\r\n \"value\": \"phone number link\"\r\n }\r\n ],\r\n \"searchType\": \"locator-details\",\r\n \"titleText\": \"\"\r\n }\r\n },\r\n // Get Directions\r\n {\r\n \"eventTarget\": \".location-map .btn-primary a\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"ldgd\",\r\n \"componentName\": \"row locator details get directions\",\r\n \"eventType\": \"get directions outbound click\",\r\n \"elementType\": \"get directions button\",\r\n \"elementText\": \"\",\r\n \"destinationUrl\": \"\",\r\n \"searchType\": \"locator-details\",\r\n \"titleText\": \"\"\r\n }\r\n },\r\n // Buy online\r\n {\r\n \"eventTarget\": \".location-map .btn-secondary a\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"ldwl\",\r\n \"componentName\": \"row locator details website link\",\r\n \"eventType\": \"location website outbound click\",\r\n \"elementType\": \"location website link\",\r\n \"elementText\": \"\",\r\n \"destinationUrl\": \"\",\r\n \"searchType\": \"locator-details\",\r\n \"titleText\": \"\"\r\n }\r\n },\r\n {\r\n \"eventTarget\": \".location-info-website a\",\r\n \"eventType\": \"click\",\r\n \"tags\": {\r\n \"event\": \"locator\",\r\n \"componentId\": \"ldwl\",\r\n \"componentName\": \"row locator details website link\",\r\n \"eventType\": \"location website outbound click\",\r\n \"elementType\": \"location website link\",\r\n \"elementText\": \"\",\r\n \"destinationUrl\": \"\",\r\n \"searchType\": \"locator-details\",\r\n \"titleText\": \"\",\r\n //merged from chemicals\r\n 'event1': '',\r\n 'eventCategory': '',\r\n 'eventAction': 'Visited Distributor Site',\r\n 'eventLabel': \"\",\r\n 'external_url': \"\",\r\n 'page_type': 'Distributor Page',\r\n 'page_title': 'Distributor Locator',\r\n 'page_bu': \"\",\r\n 'environment': \"\",\r\n 'page_language': \"\",\r\n 'sitecore_contact_id': \"\",\r\n 'pardot_cookie_id': \"\",\r\n //merged from chemicals\r\n }\r\n }\r\n ]\r\n});"],"mappings":"AAMAA,EAAEC,UAAUC,OAAM,WAEd,GADAC,eAAiBH,EAAE,yBACdG,eAAeC,OAAQ,OAAO,EACnCD,eAAeE,GAAG,SAAS,WACvB,IAAIC,EAAeN,EAAEO,MAAMC,KAAK,uBAAyB,GAErDC,EADgBT,EAAE,wBACUU,OAAOC,QAAQ,mBAAoBL,GACnEN,EAAE,wBAAwBU,KAAKE,oBAAoBH,GACvD,GACJ,IAEAI,UAAUC,YAAYC,KAAK,CACvBC,OAAU,4BACVC,OAAU,CAEN,CACIC,YAAe,mCACfC,UAAa,QACbC,KAAQ,CACJC,MAAS,UACTC,YAAe,QACfC,cAAiB,yCACjBJ,UAAa,gCACbK,YAAe,wB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