1import{_ as E}from"./Jr479590.js";import{_ as I}from"./Ck4u6S3K.js";import T from"./CzjHKkyN.js";import{a7 as h,x as _,w as U,N as n,a4 as u,A as s,G as g,P as l,Q as L,a0 as V,L as $,j as A,O as c,a1 as j}from"./CJLb48Xo.js";import{g as w}from"./CC4adG1_.js";import{u as b}from"./Djc-YLTg.js";import{_ as P,c as R,d as H,u as M}from"./Cmq4tYTg.js";import"./DaUCkxoY.js";import"./B2mCtBZT.js";import"./D47NvWY2.js";import"./CmYe2OEW.js";import"./DkfVRRU-.js";import"./jhl-lUdk.js";import"./DcoaTbMc.js";import"./BY640df_.js";import"./C9lXiOb6.js";import"./CoE5eqkJ.js";import"./BsoIVKU9.js";import"./B9ygI19o.js";const F={key:0,class:"flex justify-center items-center min-h-screen bg-gray-100"},G={key:1,class:"flex justify-center items-center min-h-screen"},z={class:"text-center"},O={key:2},Q={class:""},S={key:0,class:"mb-8"},Y={class:"relative w-full h-96 md:h-[720px] overflow-hidden"},q=["src"],J={class:"autocontent px-2.5 sm:px-4 lg:px-4 mx-auto"},K={key:0,class:"text-3xl md:text-4xl font-bold mb-6"},X=["innerHTML"],Z={__name:"[id]",async setup(ee){let o,p;const i=$(),d=A(!0),{data:t,pending:m,refresh:v}=([o,p]=h(async()=>b(`webinar-detail-${i.params.id}`,async()=>{const e={page:1,per_page:100,type:["webinar"]};try{return((await w(e))?.data?.results||[]).filter(a=>!["Profiles","Infographics","Infographic","Videos"].includes(a.category)&&a.meta==i.params.id).map(a=>({...a,isBlog:a.type==="article"}))[0]||null}catch(r){return console.error("Error fetching webinar:",r),null}},{server:!0,immediate:!0,default:()=>null})),o=await o,p(),o);_(m,e=>{d.value=e},{immediate:!0}),_([t,m],([e,r])=>{if(e===null&&!r)throw H({statusCode:404,statusMessage:"Webinar Not Found"})},{immediate:!1});const{data:x,pending:k,refresh:D}=([o,p]=h(async()=>b(`related-webinars-${i.params.id}`,async()=>{try{return((await w({page:1,per_page:4,type:["webinar"]}))?.data?.results||[]).filter(a=>!["Profiles","Infographics","Infographic","Videos"].includes(a.category)).map(a=>({...a,isBlog:a?.type=="webinar"})).filter(a=>a.id!=i.params.id&&a.meta!=i.params.id)}catch(e){return console.error("Error fetching related webinars:",e),[]}},{server:!0,immediate:!0})),o=await o,p(),o),{getCmsApiUploadUrl:N,siteUrl:W}=R(),B=e=>e?e.startsWith("http")?e:N("Webinars",e):"",y=e=>e==="/"||!e.endsWith("/")?e:e.slice(0,-1);return U(()=>{const e=`${W}${i.fullPath}`;if(t.value){const r=B(t.value.image);M({title:t.value.title,meta:[{name:"description",content:t.value.metaDescription},{property:"og:type",content:"webinars"},{property:"og:title",content:t.value.metaTitle},{property:"og:description",content:t.value.metaDescription},{property:"og:image",content:r},{property:"og:url",content:y(e)},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:t.value.metaTitle},{name:"twitter:description",content:t.value.metaDescription},{name:"twitter:image",content:r}],link:[{rel:"canonical",href:y(e)}]})}}),_(()=>i.params.id,(e,r)=>{e!==r&&(d.value=!0,v().finally(()=>{d.value=!1}),D(),window.scrollTo(0,0))}),(e,r)=>{const f=E,a=I,C=T;return s(m)||s(d)?(c(),n("div",F,[g(f)])):!s(m)&&!s(d)&&!s(t)?(c(),n("div",G,[l("div",z,[r[1]||(r[1]=l("h1",{class:"text-2xl font-bold text-gray-800 mb-4"},"Webinar Not Found",-1)),g(a,{to:"/insights/webinars",class:"text-PrimaryBlue hover:underline"},{default:L(()=>[...r[0]||(r[0]=[j(" Go back to Webinars ",-1)])]),_:1})])])):s(t)?(c(),n("div",O,[l("div",Q,[s(t)?(c(),n("div",S,[l("div",Y,[l("iframe",{width:"100%",height:"100%",src:`https://www.youtube.com/embed/${s(t).vid_id}`,title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:""},null,8,q)])])):u("",!0),l("div",J,[s(t).title?(c(),n("h1",K,V(s(t).title),1)):u("",!0),s(t).detail?(c(),n("div",{key:1,innerHTML:s(t).detail,class:"webinar_detail autocontent justify-center items-center sm:items-center lg:items-start w-full p-0 m-0 relative lg:gap-0 gap-4 lg:flex-row flex-col"},null,8,X)):u("",!0)])]),g(C,{heading:"Related <span class='text-PrimaryBlue'>webinars</span>",cards:s(x),loading:s(k)},null,8,["cards","loading"])])):u("",!0)}}},be=P(Z,[["__scopeId","data-v-72263d02"]]);export{be 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.