PageSourceSearch

https://www.royalenfield.com/etc.clientlibs/RE-Platform-Revamp/cli…ustomer-support-faq.756c130cea2243d2e750.js

js royalenfield.com collected 2026-10-01 10:30:58 UTC 4,005 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[1949,3643],{12:function(t,e,n){n.r(e);var c=n(2346);const o={init:function(){this.bindEvents()},logAnalyticsEvent:function(t,e,n){console.log("[motoverseFaqAnalytics]",t,e,JSON.stringify(n))},dispatchAnalytics:function(t,e){const n=document.title||"";if((0,c.em)()){const o={...e,screenname:n};return this.logAnalyticsEvent("app",t,o),void(0,c.kh)(t,o)}window.dataLayer=window.dataLayer||[];const o={event:t,...e,pageType:n};this.logAnalyticsEvent("web",t,o),window.dataLayer.push(o)},bindEvents:function(){document.querySelectorAll(".cmp-page__motoverse .cmp-one-ride-faq .cmp-accordion__button, .cmp-dropzone-faq-style .cmp-accordion__button").forEach((function(t){t.addEventListener("click",(function(){o.trackFAQClick(t)}))})),document.querySelectorAll(".cmp-tab-with-accordion .cmp-tabs__tab").forEach((function(t){t.addEventListener("click",(function(){o.trackCustomerSupportTabClick(t)}))})),document.querySelectorAll(".cmp-customer-support-accordion .cmp-accordion__button").forEach((function(t){t.addEventListener("click",(function(){o.trackCustomerSupportFAQClick(t)}))}))},trackFAQClick:function(t){const e=t.innerText.trim()||"",n=((t.closest(".cmp-one-ride-faq, .cmp-dropzone-faq-style")||document).closest(".cmp-container, .container, .cmp-page__motoverse")||document).querySelector(".cmp-section-accordion-title .cmp-title__text, .cmp-section-accordion-title, .cmp-section-title .cmp-title__text"),c=n?n.innerText.trim():"",o=t.classList.contains("cmp-accordion__button--expanded");this.dispatchAnalytics("FAQComponent",{eventCategory:"FAQComponent",eventAction:o?"expand":"collapse",eventLabel:e,headingName:c})},trackCustomerSupportTabClick:function(t){const e=t.innerText.trim()||"",n=t.closest(".cmp-customer-support-faq")||document.querySelector(".cmp-tab-with-accordion"),c=n?n.querySelector(".cmp-title__text"):document.querySelector(".cmp-title__text"),o=c?c.innerText.trim():"";this.dispatchAnalytics("faqComponent",{eventCategory:"faqComponent",eventAction:e,sectionHeading:o})},trackCustomerSupportFAQClick:function(t){const e=t.classList.contains("cmp-accordion__button--expanded"),n=t.querySelector(".cmp-accordion__title"),c=n?n.innerText.trim():t.innerText.trim(),o=t.closest(".cmp-customer-support-faq")||document.querySelector(".cmp-tab-with-accordion"),i=o?o.querySelector(".cmp-title__text"):document.querySelector(".cmp-title__text"),a=i?i.innerText.trim():"";this.dispatchAnalytics("faqComponent",{eventCategory:"faqComponent",eventAction:e?"expand":"collapse",eventLabel:c,headingName:a,sectionHeading:"F.A.Q's"})}};e.default=o,document.addEventListener("DOMContentLoaded",(function(){o.init()}))},2014:function(t,e,n){n.r(e);const c={init:function(){this.bindEvents()},bindEvents:function(){document.querySelectorAll(".cmp-customer-support-faq").forEach((function(t){t.addEventListener("click",(function(e){const n=e.target.closest(".cmp-tabs__tab");n&&c.trackTabClick(n,t);const o=e.target.closest(".cmp-accordion__button");o&&c.trackAccordionClick(o,t)}))}))},getSectionHeading:function(t){const e=t.querySelector(".cmp-section-title");return e?e.innerText.trim():""},getActiveTabName:function(t){const e=t.querySelector(".cmp-tabs__tab--active");return e?e.innerText.trim():""},trackTabClick:function(t,e){const n=t.innerText.trim()||"",o=c.getSectionHeading(e),i=document.title;window.dataLayer&&window.dataLayer.push({event:"faqComponent",eventCategory:"faqComponent",eventAction:n,sectionHeading:o,pageType:i})},trackAccordionClick:function(t,e){const n=t.classList.contains("cmp-accordion__button--expanded"),o=t.querySelector(".cmp-accordion__title"),i=o?o.innerText.trim():t.innerText.trim(),a=c.getActiveTabName(e),r=c.getSectionHeading(e),s=document.title;window.dataLayer&&window.dataLayer.push({event:"faqComponent",eventCategory:"faqComponent",eventAction:n?"expand":"collapse",eventLabel:i,headingName:a,sectionHeading:r,pageType:s})}};e.default=c}}]);

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.