import{cd as V,i as e,$ as d,c8 as u,b as x,s as C,a as I,Y as w,o as B,br as s,d as S,e as T,j as i,V as N,x as r,f as n,c$ as W,am as ,ドルt as f,r as E,bc as R,q as g,bW as p,bt as z}from"#entry";const A=["id"],D=["vf-container-id"],F={class:"comment-gate"},J={class:"button"},M=["href"],q={__name:"WebViafouraCommenting",props:{containerId:{type:Number,required:!0},gatedMemberships:{type:Array,default:()=>null}},setup(a){V(o=>({"547f2ce1":e(h)}));const{isTrayVisible:_}=u(),{trackRegistration:c}=x(),l=a;C({meta:[{name:"vf:container_id",content:l.containerId}]});const{$ss:t}=I(),{remountVfWidgets:v}=u(),m=w(!1),y=d(()=>({width:"100%","--accent-color-light":t.colors.primary.main,"--accent-color":t.colors.primary.main,"--accent-color-dark":t.colors.primary.main,"--text-on-accent-color":"#eeeeee"})),h=d(()=>_.value?"inherit":"none");async function b(){await c(p.ClickCommentJoinLink),await s.goToJoinPage(l.gatedMemberships)}return B(()=>{m.value=s.isLoggedIn(),v()}),(o,U)=>{const k=R,L=z;return T(),S("div",{style:g(e(y))},[i(e(W),null,{default:r(()=>[n("div",{id:`vf-conversations-container-${a.containerId}`,class:"viafoura"},[n("vf-conversations",{"vf-container-id":a.containerId},null,8,D)],8,A)]),_:1}),N(n("div",F,[n("h3",null," To join the conversation, and become an exclusive member of "+f(e(t).tenantInfo.name)+", create an account today! ",1),n("div",J,[i(k,{size:"medium",onClick:b},{default:r(()=>[E(f(e(t)?.memberships?.overrideRegisterButtonLabel&&e(t)?.memberships?.registerButtonLabel!==""?e(t)?.memberships?.registerButtonLabel:"Join today!"),1)]),_:1}),n("div",{class:"login",style:g({color:"var(--color-primary-main)",fontFamily:e(t).general.primaryFontFamily})},[i(L,{event:()=>e(c)(e(p).ClickCommentLoginLink)},{default:r(()=>[n("a",{href:("useSiteUser"in o?o.useSiteUser:e(s)).getLoginLink()}," I already have an account ",8,M)]),_:1},8,["event"])],4)])],512),[[,ドル!e(m)]])],4)}}};export{q as default};