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 as c,t as l,cj as Q,d,q as m,ck as V,F as D,x as X,b as v,f as ee}from"./BDipKYNj.js";import{_ as te}from"./WebImage-CIpNTik-.mjs";import oe from"./WebCountdownTimer-dmH1axbK.mjs";import{_ as ae}from"./WebBodyBlocks-Blt-cOp-.mjs";import se from"./WebOmedaDragonform-jgANL2YN.mjs";import"./nuxt-link-BWzEhDJx.mjs";import"./WebContentItem-Bpw6xJnG.mjs";import"./useImageUrl-1XbeiwSF.mjs";import"./WebHTML-Czn1S3Rj.mjs";import"./index-7Ej-JsQt.mjs";import"./WebContentListNew-BgdZ5dgN.mjs";import"./WebSubscribeNew-C7dCpx5X.mjs";import"./useOmedaForm-Y1iTUYts.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"},ue={key:0,class:"live-webinar"},ge={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,L;G(o=>({"0c30a7da":a(Z),"709a46fb":a(j)}));const n=e,{$ss:r}=z(),{y:u,onScroll:g}=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=(L=n.pageData)!=null&&L.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 g(()=>{if(_.value){const o=r.general.spacing*1.5;u.value>=o,Math.min(_.value.offsetHeight-o,u.value)}}),(o,p)=>{var O,U,$,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",ue," LIVE WEBINAR ")):c("",!0),e.pageData.type==="Whitepaper"&&a(b)?(s(),i("div",ge," Sponsored Asset ")):c("",!0),t("h1",pe,l((O=e.pageData)==null?void 0:O.name),1),t("div",he,l((U=e.pageData)==null?void 0:U.explicitTeaser),1)]),e.pageData.type!=="Webinar"?(s(),i("div",_e,l(("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(" "+l(("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(" "+l(("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(" "+l(a(k)),1)])):c("",!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"},"View Sponsor's Website",8,ke)])):c("",!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))])):c("",!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"])):c("",!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 g;const u=Se;return s(),v(u,{"page-data":(g=e.page)==null?void 0:g.pageData},null,8,["page-data"])}}};export{je as default};