const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./WebSiteUserGate-LoZhRsLy.mjs","./WebMembershipOverview-BG8uFu0f.mjs","./WebMembershipFeatures-BCFYRWNU.mjs","./BDipKYNj.js","./entry.BvUViiwM.css","./WebMembershipFeatures.OhhP05_n.css","./WebMembershipOverview.Cg-nPuVD.css","./WebSiteUserMembershipSignupForm-CSsKidOg.mjs","./WebSiteUserMembershipSignupForm.CsAXwL9F.css","./index-7Ej-JsQt.mjs","./WebSiteUserGate.D8Z_Sgcs.css","./WebContentBodySidebars-Bgk4ELLp.mjs","./WebContentBodySidebars.3KdAaUot.css"])))=>i.map(i=>d[i]);
import{ce as x,cf as O,R as q,W as I,o as a,c as s,a as f,d as l,k as r,b as M,l as d,s as R,q as T,b8 as j,K as A,L}from"./BDipKYNj.js";import{_ as U}from"./WebBodyBlocks-Blt-cOp-.mjs";import"./WebHTML-Czn1S3Rj.mjs";import"./WebImage-CIpNTik-.mjs";import"./nuxt-link-BWzEhDJx.mjs";import"./index-7Ej-JsQt.mjs";import"./WebContentListNew-BgdZ5dgN.mjs";import"./WebContentItem-Bpw6xJnG.mjs";import"./useImageUrl-1XbeiwSF.mjs";import"./WebSubscribeNew-C7dCpx5X.mjs";const $=A(()=>L(()=>import("./WebSiteUserGate-LoZhRsLy.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>e.default||e)),F=A(()=>L(()=>import("./WebContentBodySidebars-Bgk4ELLp.mjs"),__vite__mapDeps([11,3,4,12]),import.meta.url).then(e=>e.default||e)),H={class:"body-block"},K={key:0,class:"body-content"},J={key:0},Q={key:1},X={key:0},Y={key:1},Z={key:2},me={__name:"ContentBodyBlock",props:{data:{type:Object,required:!0,validator(e){return["primaryImage"].every(o=>o in e)}},settings:{type:Object,required:!0,default:()=>{}},page:{type:Object,required:!0,validator(e){return["pageData"].every(o=>o in e)}}},setup(e){const o=e,{gatingInfo:t,ContentGateStatus:W,ContentGateTypes:N}=x(o.page.pageData),{meterStatus:m,ContentMeterStatus:S}=O(),V=q(o.settings.logoEmbedLocation??"right-wrap"),c=I(()=>{var i,n;return!o.settings.showAllWhenGated&&((i=t==null?void 0:t.value)==null?void 0:i.isGated)&&((n=t==null?void 0:t.value)==null?void 0:n.status)!==W.PASSED&&(m==null?void 0:m.value)===S.FAILED});return(i,n)=>{var b,p,y,g,k,_,v,h,w,D,E,B,C;const z=U,G=$,P=F,u=j;return a(),s("div",H,[n[1]||(n[1]=f("div",{id:"before-content"},null,-1)),e.data?(a(),s("div",K,[f("div",null,[l(z,{"body-blocks":e.data.bodyBlocks??[],"logo-embed-location":r(V),"embed-primary-image":(b=e.data.primaryImage)==null?void 0:b.isLogo,"primary-image":e.data.primaryImage,"show-preview":r(c),"block-ad-embeds":e.settings.blockAdEmbeds,"page-type":e.page.pageData.type},null,8,["body-blocks","logo-embed-location","embed-primary-image","primary-image","show-preview","block-ad-embeds","page-type"])]),(p=i.$ss)!=null&&p.useNewDesign&&((y=r(t))==null?void 0:y.type)===r(N).MEMBERSHIP?(a(),s("div",J,[l(G,{memberships:(g=r(t))==null?void 0:g.memberships,page:e.page},null,8,["memberships","page"])])):(a(),s("div",Q,[e.settings.showSidebars&&!r(c)?(a(),s("div",X,[e.data.sidebars?(a(),M(P,{key:0,sidebars:e.data.sidebars},null,8,["sidebars"])):d("",!0)])):d("",!0),(k=i.$ss)!=null&&k.useNewDesign&&((v=(_=e.data)==null?void 0:_.downloadAttachment)!=null&&v.src)?(a(),s("div",Y,[l(u,{type:"link",link:(w=(h=e.data)==null?void 0:h.downloadAttachment)==null?void 0:w.src,target:"_blank",color:e.settings.buttonColor,size:"large"},{default:R(()=>n[0]||(n[0]=[T(" Download ")])),_:1},8,["link","color"])])):d("",!0),(D=i.$ss)!=null&&D.useNewDesign&&((E=e.page.pageData)==null?void 0:E.type)==="Webinar"&&((B=e.page.pageData)!=null&&B.linkUrl)?(a(),s("div",Z,[l(u,{label:"View Webinar",type:"link",link:(C=e.page.pageData)==null?void 0:C.linkUrl,target:"_blank",size:"large"},null,8,["link"])])):d("",!0)]))])):d("",!0)])}}};export{me as default};