import{bU as G,k as a,u as z,ci as H,cc as Y,af as J,o as s,c as i,a as t,p as K,l,t as c,cj as Q,d,q as m,ck as V,F as D,x as X,b as v,f as ee}from"./D6ipka4G.js";import{_ as te}from"./WebImage-NuAmKOMh.mjs";import oe from"./WebCountdownTimer-BrMoliIa.mjs";import{_ as ae}from"./WebBodyBlocks-Dum8-Ggm.mjs";import se from"./WebOmedaDragonform-YNNymio3.mjs";import"./nuxt-link-DZQmNwWS.mjs";import"./WebContentItem-Lqu7iVHP.mjs";import"./useImageUrl-1XbeiwSF.mjs";import"./WebHTML-D9zU1n0h.mjs";import"./index-BthhKEkt.mjs";import"./WebContentListNew-Dw3yFD4e.mjs";import"./WebSubscribeNew-BM_jwdRf.mjs";import"./useOmedaForm-oU82x9ym.mjs";const ne={class:"omeda-gated-content-overview"},ie={class:"topbar"},re={class:"topbar-contents"},ce={class:"logo"},le={href:"/",class:"logo"},de=["alt"],me={class:"left-contents"},ge={key:0,class:"live-webinar"},ue={key:1,class:"sponsored-label"},pe={class:"title"},he={class:"teaser"},_e={key:0,class:"date"},ye={key:1,class:"webinar-info"},De={class:"item"},ve={class:"item"},be={key:0,class:"item"},fe={key:1,class:"item"},ke=["href"],Te={class:"body"},Ce={class:"body-contents"},we={key:0,class:"sponsored"},We={class:"logos"},Se={__name:"WebOmedaGatedContentOverview",props:{pageData:{type:Object,required:!0},settings:{type:Object}},setup(e){var C,w,W,S,x,B,U;G(o=>({"7288d95e":a(Z),"7abcd7b2":a(j)}));const n=e,{$ss:r}=z(),{y:g,onScroll:u}=H(),_=Y("omedaFormRef"),F=(w=(C=n.pageData)==null?void 0:C.gating)==null?void 0:w.surveyId,I=(r.general.whiteLogo??r.header.logo).split("?")[0]+"?auto=format,compress&height=35",b=(S=(W=n.pageData)==null?void 0:W.labels)==null?void 0:S.includes("Sponsored"),f=(((B=(x=n.pageData)==null?void 0:x.images)==null?void 0:B.edges)??[]).filter(o=>o.node.isLogo===!0).map(o=>o.node),k=(U=n.pageData)!=null&&U.duration?`${Math.floor(n.pageData.duration/60)>0?`${Math.floor(n.pageData.duration/60)} hour${Math.floor(n.pageData.duration/60)>1?"s":""}`:""} ${n.pageData.duration%60>0?`${n.pageData.duration%60} minutes`:""}`:"",T=J().getStyles(n.settings.sponsoredColorScheme??"secondary-container"),Z=T.backgroundColor,j=T.textColor;return u(()=>{if(_.value){const o=r.general.spacing*1.5;g.value>=o,Math.min(_.value.offsetHeight-o,g.value)}}),(o,p)=>{var L,O,$,M,R,N;const h=ee,E=te,P=oe,q=ae,A=se;return s(),i("div",ne,[t("div",ie,[t("div",re,[p[0]||(p[0]=t("div",{class:"background"},null,-1)),t("div",{class:"left",style:K({padding:`${a(r).general.spacing*1.5}px 0`})},[t("div",ce,[t("a",le,[t("img",{src:I,alt:a(r).general.siteName+" logo"},null,8,de)])]),t("div",me,[e.pageData.type==="Webinar"?(s(),i("div",ge," LIVE WEBINAR ")):l("",!0),e.pageData.type==="Whitepaper"&&a(b)?(s(),i("div",ue," Sponsored Asset ")):l("",!0),t("h1",pe,c((L=e.pageData)==null?void 0:L.name),1),t("div",he,c((O=e.pageData)==null?void 0:O.explicitTeaser),1)]),e.pageData.type!=="Webinar"?(s(),i("div",_e,c(("useRedesignPubDate"in o?o.useRedesignPubDate:a(Q))(e.pageData)),1)):(s(),i("div",ye,[t("div",De,[d(h,{icon:"mdi:calendar-outline","icon-color":"white",width:24}),m(" "+c(("useConvertUtcTimeToLocalDateWithTimeZone"in o?o.useConvertUtcTimeToLocalDateWithTimeZone:a(V))(e.pageData.startDate,"MMMM dd, yyyy")),1)]),t("div",ve,[d(h,{icon:"mdi:clock-outline","icon-color":"white",width:24}),m(" "+c(("useConvertUtcTimeToLocalDateWithTimeZone"in o?o.useConvertUtcTimeToLocalDateWithTimeZone:a(V))(e.pageData.startDate,"h:mm a z")),1)]),a(k)?(s(),i("div",be,[d(h,{icon:"mdi:hourglass","icon-color":"white",width:24}),m(" "+c(a(k)),1)])):l("",!0),($=e.pageData)!=null&&$.linkUrl?(s(),i("div",fe,[d(h,{icon:"material-symbols:handshake-outline","icon-color":"white",width:24}),t("a",{href:(M=e.pageData)==null?void 0:M.linkUrl,target:"_blank"},c(e.pageData.linkUrl),9,ke)])):l("",!0)]))],4)])]),t("div",Te,[t("div",Ce,[a(b)?(s(),i("div",we,[a(f).length?(s(),i(D,{key:0},[p[1]||(p[1]=m(" Sponsored by ")),t("div",We,[(s(!0),i(D,null,X(a(f),y=>(s(),v(E,{key:y.src,image:y.src,alt:y.alt,class:"image"},null,8,["image","alt"]))),128))])],64)):(s(),i(D,{key:1},[m(" Sponsored ")],64))])):l("",!0),e.pageData.startDate?(s(),v(P,{key:1,date:e.pageData.startDate,"timer-style":"circle","timer-background-color":(R=a(r))==null?void 0:R.colors.primary.onContainer,"text-color":"white"},null,8,["date","timer-background-color"])):l("",!0),t("div",null,[d(q,{"body-blocks":((N=e.pageData)==null?void 0:N.bodyBlocks)??[],"page-type":e.pageData.type},null,8,["body-blocks","page-type"])])])]),t("div",{ref_key:"omedaFormRef",ref:_,class:"omeda-form"},[d(A,{url:a(F)},null,8,["url"])],512)])}}},je={__name:"OmedaGatedPageContentBlock",props:{page:{type:Object,required:!0,validator(e){return["pageData"].every(n=>n in e)}}},setup(e){return(n,r)=>{var u;const g=Se;return s(),v(g,{"page-data":(u=e.page)==null?void 0:u.pageData},null,8,["page-data"])}}};export{je as default};