{"version":3,"sources":["_html/common/body_tag_1.js"],"names":["hasAnalyticsConsent","otConsentCookie","decodeURIComponent","document","cookie","match","indexOf","pushEvent","eventData","window","adobeDataLayer","push","trackView","addEventListener","e","item","target","closest","event","eventInfo","action","label","detail","querySelector","textContent","trim","location","pathname"],"mappings":"CACA,WAIE,SAASA,IACP,MAAMC,EAHCC,oBAAoBC,SAASC,OAAOC,MAAM,qDAAuD,CAAC,CAAE,OAAO;AAIlH,OAA0B,MAAnBJ,GAA2BA,EAAgBK,QAAQ,YAAc,GAAKL,EAAgBK,QAAQ,aAAe,CACtH,CAIA,SAASC,EAAUC,GACZR,KACLS,OAAOC,eAAeC,KAAKH,EAC7B,CALAC,OAAOC,eAAiBD,OAAOC,gBAAkB,GAUjB,mBAArBD,OAAOG,WAChBH,OAAOG,YAITT,SAASU,iBAAiB,SAAS,SAASC,GAC1C,MAAMC,EAAOD,EAAEE,OAAOC,QAAQ;AAC9B,IAAKF,EAAM;AAEXR,EAAU,CACRW,MAAO,aACPC,UAAW,CACTC,OAAQ,QACRC,MAAO,aACPC,OANuBP,EAAKQ,cAAc,mBAXdC,aAAaC,QAAU,GAkBnDC,SAAUjB,OAAOiB,SAASC,WAGhC,IAGAxB,SAASU,iBAAiB,SAAS,SAASC,GAC1BA,EAAEE,OAAOC,QAAQ,iBAEjCV,EAAU,CACRW,MAAO,cACPC,UAAW,CACTC,OAAQ,QACRC,MAAO,OACPC,OAAQ,YACRI,SAAUjB,OAAOiB,SAASC,WAGhC,GACD,EArDD","sourceRoot":"theme-55/","sourcesContent":["\n(function() {\n  function getConsentCookie() {\n    return decodeURIComponent((document.cookie.match(/^(?:.*;)?\\s*OptanonConsent\\s*=\\s*([^;]+)(?:.*)?$/) || [, null])[1]);\n  }\n  function hasAnalyticsConsent() {\n    const otConsentCookie = getConsentCookie();\n    return otConsentCookie != null && otConsentCookie.indexOf(\"groups=\") > -1 && otConsentCookie.indexOf(\",C0002:1\") > -1;\n  }\n\n  window.adobeDataLayer = window.adobeDataLayer || [];\n\n  function pushEvent(eventData) {\n    if (!hasAnalyticsConsent()) return;\n    window.adobeDataLayer.push(eventData);\n  }\n\n  function getText(el) { return el?.textContent?.trim() || ''; }\n\n  // Track page view\n  if (typeof window.trackView === 'function') {\n    window.trackView();\n  }\n\n  // Track topic views\n  document.addEventListener('click', function(e) {\n    const item = e.target.closest('.topic-list-item');\n    if (!item) return;\n    const topicTitle = getText(item.querySelector('.link-top-line'));\n    pushEvent({\n      event: 'topicClick',\n      eventInfo: {\n        action: 'click',\n        label: 'Topic View',\n        detail: topicTitle,\n        location: window.location.pathname\n      }\n    });\n  });\n\n  // Track post likes\n  document.addEventListener('click', function(e) {\n    const likeBtn = e.target.closest('.toggle-like');\n    if (!likeBtn) return;\n    pushEvent({\n      event: 'interaction',\n      eventInfo: {\n        action: 'click',\n        label: 'Like',\n        detail: 'Post Like',\n        location: window.location.pathname\n      }\n    });\n  });\n})();\n\n"]}