PageSourceSearch

https://rootscs.org/themes/custom/material_rcs/js/cookie-consent.min.js?v=1.12

js rootscs.org collected 2026-10-04 05:21:36 UTC 4,752 bytes, 1 lines download raw bytes

1!function(e,t,o){"use strict";const n="analytics",a="material-cookie-consent-init",s="material-cookie-preferences-link",i=o.materialCompile&&o.materialCompile.ga4MeasurementId;let r,c=!1;e.behaviors.materialCookieConsent={attach(e){y(e),e===document&&t(a,"html",e).forEach(()=>{w()})}};const l=()=>void 0!==window.CookieConsent,d=()=>{const e=(()=>{const e=document.querySelector(".navbar-logo img.large-logo"),t=document.querySelector(".navbar-logo img.small-logo");return e&&e.getAttribute("src")?{src:e.getAttribute("src"),alt:e.getAttribute("alt")||"Roots Community Services"}:t&&t.getAttribute("src")?{src:t.getAttribute("src"),alt:t.getAttribute("alt")||"Roots Community Services"}:null})(),t=document.querySelector("#cc-main .pm__header"),o=t&&t.querySelector(".pm__title");if(!e||!t||!o||t.querySelector(".cc-preferences-brand"))return;const n=document.createElement("a"),a=document.createElement("img");n.className="cc-preferences-brand",n.href="/",n.setAttribute("aria-label",e.alt),a.className="cc-preferences-brand__image",a.src=e.src,a.alt=e.alt,n.appendChild(a),t.insertBefore(n,o),o.classList.add("cc-preferences-brand__title")},u=()=>{i&&(window.dataLayer=window.dataLayer||[],"function"!=typeof window.gtag&&(window.gtag=function(){window.dataLayer.push(arguments)}),window[`ga-disable-${i}`]=!1,window.gtag("consent","default",{analytics_storage:"denied"}))},g=()=>i?(u(),window[`ga-disable-${i}`]=!1,window.gtag("consent","update",{analytics_storage:"granted"}),(i&&l()?(r||(r=window.CookieConsent.loadScript(`https://www.googletagmanager.com/gtag/js?id=${i}`,{async:"async",id:"material-compile-ga4-script"})),r):Promise.resolve(!1)).then(e=>{e&&!c&&(window.gtag("js",new Date),window.gtag("config",i),c=!0)})):Promise.resolve(),m=()=>{i&&(u(),window[`ga-disable-${i}`]=!0,window.gtag("consent","update",{analytics_storage:"denied"}
1),c=!1,l()&&window.CookieConsent.eraseCookies([/^_ga/,"_gid","_gat","_gcl_au"]))},p=()=>{i&&l()&&(window.CookieConsent.acceptedService("ga4",n)?g():m())},y=e=>{t(s,".js-cookie-preferences-link",e).forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),l()&&(window.CookieConsent.showPreferences(),window.requestAnimationFrame(()=>{window.requestAnimationFrame(d)}))})})},w=()=>{l()&&((()=>{const e=new MutationObserver(()=>{d()});e.observe(document.body,{childList:!0,subtree:!0})})(),u(),window.CookieConsent.run({cookie:{expiresAfterDays:60},guiOptions:{consentModal:{layout:"box wide",position:"bottom right",equalWeightButtons:!1,flipButtons:!1},preferencesModal:{layout:"box",position:"right",equalWeightButtons:!1,flipButtons:!1}},categories:{necessary:{enabled:!0,readOnly:!0},analytics:{autoClear:{cookies:[{name:/^_ga/},{name:"_gid"},{name:"_gat"},{name:"_gcl_au"}]},services:{ga4:{label:"Google Analytics",onAccept:g,onReject:m,cookies:[{name:/^_ga/},{name:"_gid"},{name:"_gat"},{name:"_gcl_au"}]}}}},language:{default:"en",translations:{en:{consentModal:{title:"Your Privacy Choices",description:"Roots Community Services Inc. uses necessary cookies to keep this site working. With your permission, we also use analytics cookies to understand site usage and improve the experience.",acceptAllBtn:"Accept",acceptNecessaryBtn:"Reject",showPreferencesBtn:"Manage Preferences",footer:'<a href="/docs/health-information-and-privacy-rights">Privacy Policy</a><a href="/docs/terms-use">Terms of Use</a>'},preferencesModal:{title:"Manage Cookie Preferences",acceptAllBtn:"Accept All",acceptNecessaryBtn:"Reject",savePreferencesBtn:"Save Preferences",closeIconLabel:"Close",serviceCounterLabel:"Service|Services",sections:[{title:"Manage Your Privacy Preferences",description:"Necessary storage supports the consent banner itself. Analytics is optional and only enables Google Analytics 4."},{title:"Necessary",description:"Required for the site and consent preference storage. These cookies cannot be turned off.",linkedCategory:"necessary"},{title:"Performance and Analytics",description:"These cookies collect information about how you use our site, such as which pages you visit most often and if you receive error messages from certain pages. These cookies help us improve the way our site operates.<ul><li><strong>Example:</strong> Google Analytics cookies that track how users interact with our Site.</li></ul>",linkedCategory:"analytics"},{title:"More Information",description:"You can manage your cookie preferences through our site's cookie consent tool which you are using now. Additionally, you can adjust your browser settings to refuse cookies or alert you when they are being set. For any queries in relation to my policy on cookies and your choices, please contact us"}]}}}},onConsent:p,onChange:({changedCategories:e})=>{e.includes(n)&&p()}}))}}(Drupal,once,drupalSettings);

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.