PageSourceSearch

https://www.a1e.pro/assets/analytics-DbumVFn9.js

js a1e.pro collected 2026-10-08 04:59:47 UTC 3,326 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";var r=e(t(),1),i=n(),a=`G-1LBD2H852J`,o=`a1e-analytics-consent`;function s(){let[e,t]=(0,r.useState)(`loading`);(0,r.useEffect)(()=>{try{t(localStorage.getItem(o))}catch{t(null)}let e=()=>t(null);return window.addEventListener(`a1e-cookie-settings`,e),()=>window.removeEventListener(`a1e-cookie-settings`,e)},[]),(0,r.useEffect)(()=>{if(e!==`accepted`)return;if(!window.a1eAnalyticsStarted){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag(`consent`,`default`,{analytics_storage:`granted`,ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`}),window.gtag(`js`,new Date),window.gtag(`config`,a,{allow_google_signals:!1,allow_ad_personalization_signals:!1});let e=document.createElement(`script`);e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${a}`,document.head.appendChild(e),window.a1eAnalyticsStarted=!0}let t=e=>{let t=e.target instanceof Element?e.target.closest(`a, button`):null;if(!t)return;let n=t.getAttribute(`href`)||``,r=``,i=``;n.startsWith(`https://djplanningcenter.com/pricing-guide/`)?(r=`inquiry_click`,i=n.endsWith(`eev0jhm83a1p40`)?`request_date`:`contact`):n.startsWith(`tel:`)?r=`phone_click`:n.startsWith(`sms:`)?r=`text_click`:t.hasAttribute(`data-open-a1e-chat`)&&(r=`chat_open`),r&&window.gtag?.(`event`,r,{action:i,transport_type:`beacon`})};return document.addEventListener(`click`,t),()=>document.removeEventListener(`click`,t)},[e]);function n(e){try{localStorage.setItem(o,e)}catch{}if(t(e),e===`declined`&&window.a1eAnalyticsStarted){window.gtag?.(`consent`,`update`,{analytics_storage:`denied`});for(let e of document.cookie.split(`;`)){let t=e.split(`=`)[0].trim();if(t===`_ga`||t.startsWith(`_ga_`))for(let e of[``,location.hostname,`.a1e.pro`])document.cookie=`${t}=; Max-Age=0; path=/${e?`; domain=${e}`:``}`}location.reload()}}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(`div`,{style:{textAlign:`center`,padding:`12px`,background:`#101722`,color:`#fff`,fontSize:14},children:[(0,i.jsx)(`a`,{href:`/privacy`,style:{textDecoration:`underline`,marginRight:20},children:`Privacy`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>t(null),style:{textDecoration:`underline`,cursor:`pointer`},children:`Cookie settings`})]}),e===null&&(0,i.jsxs)(`aside`,{"aria-label":`Analytics cookie preferences`,style:{position:`fixed`,bottom:16,left:16,right:16,margin:`0 auto`,maxWidth:620,zIndex:1e3,background:`#fff`,color:`#0B1017`,border:`1px solid #D7A53B`,borderRadius:12,padding:20,boxShadow:`0 8px 30px #0005`,fontSize:16},children:[(0,i.jsxs)(`p`,{style:{margin:`0 0 14px`},children:[`May we use analytics cookies to see how visitors find and use A1E? `,(0,i.jsx)(`a`,{href:`/privacy`,style:{textDecoration:`underline`},children:`Privacy details`})]}),(0,i.jsxs)(`div`,{style:{display:`flex`,gap:12,flexWrap:`wrap`},children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>n(`accepted`),style:{padding:`10px 18px`,border:`1px solid #0B1017`,borderRadius:6,cursor:`pointer`},children:`Allow analytics`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>n(`declined`),style:{padding:`10px 18px`,border:`1px solid #0B1017`,borderRadius:6,cursor:`pointer`},children:`Decline`})]})]})]})}export{s as default};

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.