1import{a as useNuxtApp,o as useRuntimeConfig}from"./nuxt-Dw3LQvcO.mjs";import{A as createElementBlock,Dt as withAsyncContext,H as init_runtime_core_esm_bundler,Ht as ref,Ot as withCtx,P as createVNode,Pt as init_reactivity_esm_bundler,Zt as unref,it as openBlock,kn as normalizeClass,nt as onUnmounted,tt as onMounted,un as init_shared_esm_bundler}from"./vue.runtime.esm-bundler-DK-ieOMu.mjs";import{f as useRoute,i as createError}from"./error-Dvy0PY9B.mjs";import{n as useState}from"./state-B-1p1z1y.mjs";import{t as ClientOnly}from"./client-only-DfRKx4_X.mjs";import{r as useAsyncData}from"./is-equal-CdQM1mL-.mjs";import"./useAdUnitPatterns-ERyUa5_N.mjs";import{a as useSiteUser,i as useEvent,o as useMembership}from"./useOneTrust-BLn7DS5z.mjs";import{u as RegistrationActions}from"./graphql-spR_bC68.mjs";import{t as WebPageContent_default}from"#entry";init_reactivity_esm_bundler(),init_runtime_core_esm_bundler();var _sfc_main$1={__name:`OmedaContentMeterEventTracker`,setup(__props){const{fullPath}=useRoute();let observer=null;const onClickEvent=ref(null);onMounted(()=>{observer=new MutationObserver(e=>{e.forEach(()=>{let e=document.querySelectorAll(`a.bee-popup-button-content`),t=Array.from(e).find(e=>{let t=e.getAttribute(`onclick`)||``;return t.includes(`membership/signup`)||t.includes(`/account/login`)});if(t){let e=t.getAttribute(`onclick`);if(!e){console.error(`No onclick attribute found`);return}let n=e.match(/'?(https?:\/\/[^'"]+)'?/);if(!n){console.error(`No valid URL found in onclick`);return}let r=n[1],i=new URL(r);i.searchParams.set(`redirectTo`,fullPath);let a=i.toString();onClickEvent.value=e.replace(r,a),t.setAttribute(`onclick`,``),t.addEventListener(`click`,()=>handleRegistrationLinkClick(r)),observer.disconnect()}})}),observer.observe(document.body,{childList:!0,subtree:!0})}),onUnmounted(()=>{observer&&observer.disconnect()});async function handleRegistrationLinkClick(url){try{const{trackRegistration}=useEvent(),action=url.includes(`/account/login`)?RegistrationActions.ClickContentMeterLoginLink:RegistrationActions.ClickContentMeterJoinLink;await trackRegistration(action),eval(onClickEvent.value)}catch(e){console.error(`Error handling registration link click:`,e)}}return(e,t)=>(openBlock(),createElementBlock(`span`))}};init_reactivity_esm_bundler(),init_runtime_core_esm_bundler(),init_shared_esm_bundler();var _hoisted_1={class:normalizeClass([`ebm-content-page relative`])},_sfc_main={__name:`ContentPage`,async setup(e){let t,n,{$page:r,$gql:i}=useNuxtApp(),{getMemberships:a}=useMembership(),{fullPath:o,query:s,path:c}=useRoute(),l=useRuntimeConfig(),u=ref({}),{data:d}=([t,n]=withAsyncContext(()=>useAsyncData(`page`,()=>r.getPage())),t=await t,n(),t);if(!d.value)throw createError({statusCode:404,statusMessage:`Page Not Found`});u.value={...d.value,pageData:{...d.value.pageData,scroll:{parent:d.value.pageData.id,index:0},route:{fullPath:o,query:s,path:c}}};let f=u.value,p=useState(`cacheAge`,()=>new Date().getTime());return onMounted(async()=>{await useSiteUser.getUserInfo(),!l.public.isDev&&l.public.useSWR!==!0&&new Date().getTime()-p.value>6e5&&i.mutate(`crawlWebsiteLayoutCacheLock`,{input:{aliases:[c],host:window.location.hostname}})}),(e,t)=>{let n=_sfc_main$1,r=ClientOnly,i=WebPageContent_default;return openBlock(),createElementBlock(`div`,_hoisted_1,[createVNode(r,null,{default:withCtx(()=>[createVNode(n)]),_:1}),createVNode(i,{page:unref(f),"include-header":unref(s).includeHeader!==`fal
1se`&&unref(f)?.hideHeader!==!0,"include-footer":unref(s).includeFooter!==`false`&&unref(f)?.hideFooter!==!0,"full-height":unref(s).fullHeight!==`false`,"full-width":unref(s).fullWidth===`true`||unref(f)?.hideHeader,"preview-mode":unref(s)[`preview-mode`]},null,8,[`page`,`include-header`,`include-footer`,`full-height`,`full-width`,`preview-mode`])])}}};export{_sfc_main 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.