import{a_ as v,h as e,bj as r,O as _,bk as c,aP as b,aY as n,o as S,c as C,d as l,w as k,a as t,bl as V,L,a6 as w,t as x,n as d,u as N,aZ as B}from"./entry.DPwc-EV0.js";const W=["id"],z=["vf-container-id"],D={class:"comment-gate"},F={class:"button"},I=["href"],U={__name:"WebViafouraCommenting",props:{id:{type:Number,required:!0},gatedMemberships:{type:Array,default:()=>[]}},setup(o){v(s=>({"59ae91aa":e(f)}));const{isTrayVisible:u}=r(),m=o,{$ss:a}=N(),{remountVfWidgets:y}=r(),i=_(!1),p=c(()=>({width:"100%","--accent-color-light":a.baseStyles.primaryColor,"--accent-color":a.baseStyles.primaryColor,"--accent-color-dark":a.baseStyles.linkColor,"--text-on-accent-color":"#eeeeee"})),f=c(()=>u.value?"inherit":"none");function h(){n.getRegistrationLink(m.gatedMemberships)}return b(()=>{i.value=n.isLoggedIn(),y()}),(s,M)=>{const g=B;return S(),C("div",{style:d(e(p))},[l(e(V),null,{default:k(()=>[t("div",{id:`vf-conversations-container-${o.id}`,class:"viafoura"},[t("vf-conversations",{"vf-container-id":o.id},null,8,z)],8,W)]),_:1}),L(t("div",D,[t("h3",null," To join the conversation, and become an exclusive member of "+x(e(a).general.siteName)+", create an account today!",1),t("div",F,[l(g,{label:"Join today!",color:e(a).baseStyles.primaryColor,size:"medium",onClick:h},null,8,["color"]),t("div",{class:"login",style:d({color:e(a).baseStyles.primaryColor,fontFamily:e(a).primaryFontFamily})},[t("a",{href:("useSiteUser"in s?s.useSiteUser:e(n)).getLoginLink()}," I already have an account ",8,I)],4)])],512),[[w,!e(i)]])],4)}}};export{U as default};