import{q as u,J as c,v as m,o as f,b as p,x as t,y as s,D as r,A as i,t as g,E as y}from"./DVFhaGV4.js";const S={class:"marketo-form"},_={__name:"CarnegieSouthAsiaProgramForm",props:{formContextData:{type:Object},formDescription:{type:String,default:"Receive emails for public events and announcements of new research from the Carnegie South Asia Program."},scrollOut:{type:Boolean,default:!1}},setup(n){const l=n;c();function d(){MktoForms2.loadForm("//Pages.carnegieendowment.org","813-XYU-422",1001,function(o){l.scrollOut?o.vals({Site_Source__c:"Scrollout SouthAsiaProgram Subscribe Mkto En"}):o.vals({Site_Source__c:"SouthAsiaProgram Subscribe Mkto En"})}),MktoForms2.whenReady(function(o){o.onSubmit(function(e){e.addHiddenFields({centerAffiliationAll:"dc"}),e.addHiddenFields({englishNewsletterAll:"ctw"}),e.addHiddenFields({programAffiliation:"southAsia"})}),o.onSuccess(function(e,a){return o.getFormElem().hide(),document.getElementById("confirmFormCTWEngage").style.display="block",!1})})}return m(()=>{d()}),(o,e)=>{const a=y;return f(),p("div",null,[t("div",S,[s(a,{class:"title",variant:"h3-display",as:"h3"},{default:r(()=>e[0]||(e[0]=[i("Sign up for emails from the Carnegie South Asia Program.")])),_:1}),s(a,{class:"description",variant:"body-display-small",as:"p"},{default:r(()=>[i(g(n.formDescription),1)]),_:1}),e[1]||(e[1]=t("form",{id:"mktoForm_1001"},null,-1)),e[2]||(e[2]=t("div",{id:"confirmFormCTWEngage",style:{display:"none"}},[t("strong",null,"Thank you!"),t("p",null,"Check your email for details on your request.")],-1))])])}}},A=u(_,[["__scopeId","data-v-b18b31c9"]]);export{A as default};
//# sourceMappingURL=C04AAji3.js.map