import{_ as B}from"./WebMembershipFeatures-BkDPfg79.mjs";import{_ as f,o as i,c as n,a as l,d as p,n as h,b as T,i as d,aZ as k,F as w,r as x,t as y,v as M,B as L,aY as v}from"./entry.DPwc-EV0.js";const C={props:{membership:{type:Object},multipleOptions:{type:Boolean,default:!1}},emits:["selectMembership"]},F={class:"web-membership-call-to-action"},N=["innerHTML"],S=["innerHTML"];function j(t,u,e,_,b,o){var c,m,r;const a=k;return i(),n("div",F,[l("div",{class:"cta-option",style:h({display:e.membership.joinButtonText?"grid":"block"})},[l("div",{class:"text",innerHTML:e.membership.joinButtonText},null,8,N),p(a,{color:t.$ss.baseStyles.primaryColor,label:e.membership.joinButtonLabel??"Join today!",size:"large",onClick:u[0]||(u[0]=()=>{t.$emit("selectMembership",e.membership)})},null,8,["color","label"])],4),e.membership&&!((c=e.membership)!=null&&c.isFree)?(i(),n("div",{key:0,class:"cta-option",style:h({display:e.membership.payNowButtonText?"grid":"block"})},[l("div",{class:"text",innerHTML:e.membership.payNowButtonText},null,8,S),e.membership&&!((m=e.membership)!=null&&m.isFree)?(i(),T(a,{key:0,color:t.$ss.baseStyles.primaryColor,label:e.membership.payNowButtonLabel??"Pay Now",type:"link",size:"large",target:"_blank",link:(r=e.membership)==null?void 0:r.paymentFormURL},null,8,["color","label","link"])):d("",!0)],4)):d("",!0)])}const H=f(C,[["render",j]]),$={class:"text"},z={class:"title"},O=["innerHTML"],P={key:0},W={key:0,class:"divider"},R={key:1,class:"select"},V={key:2,class:"divider"},A={__name:"WebMembershipOverview",props:{fromGate:{type:Boolean,default:!1},heading:{type:String,default:""},description:{type:String},memberships:{type:Array},includeChoices:{type:Boolean,default:!1},showMembershipTitle:{type:Boolean,default:!0}},emits:["selectMembership"],setup(t,{emit:u}){const e=t;function _(o){return e.description?e.description:e.fromGate?`${o.gatedContentPreviewText}`:`${o.overviewText}`}async function b(o){const a=L().fullPath.split("?").pop();v.isLoggedIn()?window.location=`/complete-registration/${o.id}?redirectTo=${a}`:v.getChosenRegistrationLink(o.alias,a)}return(o,a)=>{var r;const c=B,m=H;return i(),n("div",{class:"membership-overview",style:h({fontFamily:o.$ss.primaryFontFamily})},[l("div",{class:M(["overview-content",((r=t.memberships)==null?void 0:r.length)>1?"multiple":""])},[(i(!0),n(w,null,x(t.memberships,s=>(i(),n("div",{key:s.id,class:"item"},[l("div",$,[l("h2",z,y(t.showMembershipTitle?s.title:"")+" "+y(t.heading),1),l("div",{class:"description",innerHTML:_(s)},null,8,O)]),p(c,{membership:s},null,8,["membership"]),t.includeChoices?(i(),n("div",P,[s.joinButtonText||s.payNowButtonText?(i(),n("div",W)):(i(),n("div",R)),p(m,{membership:s,"multiple-options":t.memberships.length>1,class:"call-to-action",onSelectMembership:g=>{b(g)}},null,8,["membership","multiple-options","onSelectMembership"]),s.joinButtonText||s.payNowButtonText?(i(),n("div",V)):d("",!0)])):d("",!0)]))),128))],2)],4)}}},G=f(A,[["__scopeId","data-v-45738531"]]);export{G as default};