import{_ as w,a2 as T,P as L,R as I,y as E,o as r,c as a,a as e,w as u,v as c,F as x,E as C,G as b,e as p,p as k,f as S,C as A,a3 as P,g as q,h as U,i as D,l as B,r as g,b as R,k as F,L as M,a0 as $,x as v,j as N,H}from"./app.2934e07b.js";const O={name:"new-partnership",components:{Textarea:T},directives:{mask:L.exports.mask},inject:["root"],data(){return{firstName:"",lastName:"",title:"",companyName:"",phoneNumber:"",emailAddress:"",comment:"",formSubmitted:!1,errors:[]}},methods:{validate:function(t){if(t.type==="search")this.desiredRegion.length===0&&this.errors.push({search:"Please select a desired region"});else if(t.value.length){if(t.type==="email"&&!this.validEmail(t.value)||t.type==="tel"&&!this.isValidPhone(t.value)){let s=document.getElementById(t.id.toString()).parentElement;this.errors.push({[t.id.toString()]:s.getElementsByTagName("label")[0].innerHTML+" is invalid"})}}else{let s=document.getElementById(t.id.toString()).parentElement;this.errors.push({[t.id.toString()]:s.getElementsByTagName("label")[0].innerHTML+" is required"})}return!this.errors.length},validEmail(t){var s=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return s.test(t)},isValidPhone(t){if(t){const s=/^[0-9()-.\s]+$/,i=t.replace(/\D/g,"");return s.test(t)&&i.length>=10}return!1},async submit(t){t.preventDefault();const s=document.querySelector("form");if(this.errors=[],Array.from(s.elements).forEach(i=>{i.id!=="membership-form-cta"&&i.type!=="button"&&this.validate(i)}),!this.errors.length){const i=await I.load(this.root.entity.recaptchaKey,{});let f={"first-name":this.firstName,"last-name":this.lastName,title:this.title,"company-name":this.companyName,"phone-number":this.phoneNumber,"email-address":this.emailAddress,comment:this.comment,recaptcha_token:await i.execute("submit"),_formName:"Membership"},n=document.getElementById("membership-form-cta");n.disabled=!0,n.innerText="Processing data...",await axios.post("/api/form/submit",{data:f},{headers:{"g-path":window.location.pathname||null,"Content-Type":"application/json",Accept:"application/json"}}).then(l=>{n.disabled=!1,n.innerText="Send",l.data==="success"?(this.formSubmitted=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"membership_form"})):l.data.errors.length&&(this.errors=l.data.errors)})}}}},h=t=>(k("data-v-ba76218f"),t=t(),S(),t),j={class:"form"},G={key:0,class:"fields"},z={class:"field"},K=h(()=>e("label",{for:"first-name"},"First name",-1)),W={class:"field"},Z=h(()=>e("label",{for:"last-name"},"Last name",-1)),Y={class:"field"},J=h(()=>e("label",{for:"title"},"Title",-1)),Q={class:"field"},X=h(()=>e("label",{for:"company-name"},"Company name",-1)),ee={class:"field"},te=h(()=>e("label",{for:"phone-number"},"Phone number",-1)),se={class:"field"},ne=h(()=>e("label",{for:"email-address"},"Email address",-1)),ie={class:"field-wide"},re=h(()=>e("label",{for:"comment"},"Tell us about your practice",-1)),oe={class:"field-wide"},ae={key:0,class:"errors"},le=h(()=>e("p",null,"Some fields seem to be wrong. Please check and try again. ",-1)),de={key:1,class:"form-message"},me=h(()=>e("h3",null,"Thank you",-1)),ue=h(()=>e("p",null," for your interest in Women's Care",-1)),ce=[me,ue];function pe(t,s,i,f,n,l){const m=E("mask");return r(),a("form",j,[n.formSubmitted===!1?(r(),a("div",G,[e("div",z,[K,u(e("input",{type:"text",id:"first-name","onUpdate:modelValue":s[0]||(s[0]=o=>n.firstName=o)},null,512),[[c,n.firstName]])]),e("div",W,[Z,u(e("input",{type:"text",id:"last-name","onUpdate:modelValue":s[1]||(s[1]=o=>n.lastName=o)},null,512),[[c,n.lastName]])]),e("div",Y,[J,u(e("input",{type:"text",id:"title","onUpdate:modelValue":s[2]||(s[2]=o=>n.title=o)},null,512),[[c,n.title]])]),e("div",Q,[X,u(e("input",{type:"text",id:"company-name","onUpdate:modelValue":s[3]||(s[3]=o=>n.companyName=o)},null,512),[[c,n.companyName]])]),e("div",ee,[te,u(e("input",{type:"tel",id:"phone-number","onUpdate:modelValue":s[4]||(s[4]=o=>n.phoneNumber=o)},null,512),[[c,n.phoneNumber],[m,"(###) ###-####"]])]),e("div",se,[ne,u(e("input",{type:"email",id:"email-address","onUpdate:modelValue":s[5]||(s[5]=o=>n.emailAddress=o)},null,512),[[c,n.emailAddress]])]),e("div",ie,[re,u(e("textarea",{id:"comment","onUpdate:modelValue":s[6]||(s[6]=o=>n.comment=o)},null,512),[[c,n.comment]])]),e("div",oe,[e("button",{class:"cta primary form-submit",onClick:s[7]||(s[7]=(...o)=>l.submit&&l.submit(...o)),id:"membership-form-cta"},"Send"),n.errors&&n.errors.length>0?(r(),a("ul",ae,[le,(r(!0),a(x,null,C(this.errors,o=>(r(),a("li",null,b(Object.values(o).toString()),1))),256))])):p("",!0)])])):(r(),a("div",de,ce))])}const he=w(O,[["render",pe],["__scopeId","data-v-ba76218f"]]);const _e={name:"payment",props:["type"],components:{CustomSvg:A},data(){}},V=t=>(k("data-v-c0b1e875"),t=t(),S(),t),fe={action:"https://hosted.transactionexpress.com/Transaction/Transaction/Index",method:"POST",target:"_blank"},ye={class:"form"},ve=P('<input id="HostedKey" name="HostedKey" type="hidden" value="afbb5a1c-b59d-4a40-9930-6ed8809e4846" data-uw-styling-context="true" data-v-c0b1e875><input id="Gateway_ID" name="Gateway_ID" type="hidden" value="9072413609" data-uw-styling-context="true" data-v-c0b1e875><input id="IndustryCode" name="IndustryCode" type="hidden" value="2" data-uw-styling-context="true" data-v-c0b1e875><input id="Amount" name="Amount" type="hidden" value="" data-uw-styling-context="true" data-v-c0b1e875><input id="RecurringType" name="RecurringType" type="hidden" value="N" data-uw-styling-context="true" data-v-c0b1e875><input id="RecurringAmount" name="RecurringAmount" type="hidden" value="" data-uw-styling-context="true" data-v-c0b1e875><input id="RURL" name="RURL" type="hidden" value="" data-uw-styling-context="true" data-v-c0b1e875><input id="CURL" name="CURL" type="hidden" value="https://womenscarefl.com/" data-uw-styling-context="true" data-v-c0b1e875><input id="AVSRequired" name="AVSRequired" type="hidden" value="Y" data-uw-styling-context="true" data-v-c0b1e875><input id="CVV2Required" name="CVV2Required" type="hidden" value="Y" data-uw-styling-context="true" data-v-c0b1e875><input id="EmailRequired" name="EmailRequired" type="hidden" value="Y" data-uw-styling-context="true" data-v-c0b1e875><input name="CustRefID" type="hidden" data-uw-styling-context="true" data-v-c0b1e875>',12),be={class:"form-row customer-name-container"},ge=V(()=>e("label",{for:"CustName"},"Patient name:",-1)),we={class:"form-row customer-invoice-container"},Ne=V(()=>e("label",{for:"CustInvoice"},"Patient account number:",-1)),xe={class:"form-row"},Ce=V(()=>e("input",{id:"PostRspMsg",name:"PostRspMsg",type:"hidden",value:"N","data-uw-styling-context":"true"},null,-1));function ke(t,s,i,f,n,l){return r(),a("form",fe,[e("div",ye,[ve,e("div",be,[ge,u(e("input",{type:"text",id:"CustName","onUpdate:modelValue":s[0]||(s[0]=m=>t.CustName=m)},null,512),[[c,t.CustName]])]),e("div",we,[Ne,u(e("input",{type:"text",id:"CustInvoice","onUpdate:modelValue":s[1]||(s[1]=m=>t.CustInvoice=m)},null,512),[[c,t.CustInvoice]])]),e("div",xe,[Ce,e("button",{class:"cta primary form-submit",onClick:s[2]||(s[2]=(...m)=>t.submit&&t.submit(...m))},"Pay now")])])])}const Se=w(_e,[["render",ke],["__scopeId","data-v-c0b1e875"]]);const Ve=q(()=>U(()=>D(()=>import("./vue-select.es.12d6cbe5.js"),["assets/vue-select.es.12d6cbe5.js","assets/app.2934e07b.js","assets/app.3901f893.css"]))),Re={name:"recruiter",components:{Textarea:T,CustomSvg:A,VueSelect:Ve},directives:{mask:L.exports.mask},inject:["root"],data(){return{firstName:"",lastName:"",desiredRegion:"",resume:"",file:"",fileName:"No resume selected",phoneNumber:"",emailAddress:"",comment:"",formSubmitted:!1,errors:[]}},computed:{isGreenfield(){return window.location.pathname.indexOf("greenfield")!==-1}},methods:{handleFileUpload(t){this.resume=t.target.files[0],this.fileName=this.resume.name},validate:function(t){if(t.type==="search")this.desiredRegion.length===0&&this.errors.push({search:"Please select a desired region"});else if(t.value.length)if(t.type==="email"&&!this.validEmail(t.value)||t.type==="tel"&&!this.isValidPhone(t.value)){let s=document.getElementById(t.id.toString()).parentElement;this.errors.push({[t.id.toString()]:s.getElementsByTagName("label")[0].innerHTML+" is invalid"})}else t.type==="file"&&this.resume.size>30048576&&this.errors.push({[t.id.toString()]:"Resume has to be less than 30MB"});else{let s=document.getElementById(t.id.toString()).parentElement;this.errors.push({[t.id.toString()]:s.getElementsByTagName("label")[0].innerHTML+" is required"})}return!this.errors.length},validEmail(t){var s=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return s.test(t)},isValidPhone(t){if(t){const s=/^[0-9()-.\s]+$/,i=t.replace(/\D/g,"");return s.test(t)&&i.length>=10}return!1},async submit(t){t.preventDefault();const s=document.querySelector("form");if(this.errors=[],Array.from(s.elements).forEach(i=>{i.id!=="recruiter-form-cta"&&i.type!=="button"&&this.validate(i)}),!this.errors.length){let f=await(await B(this.root.entity.recaptchaKey,{})).execute("submit"),n=new FormData;this.resume.length!==0&&n.append("resume",this.resume,this.resume.name),n.append("firstName",this.firstName),n.append("lastName",this.lastName),n.append("desiredRegion",this.desiredRegion),n.append("phoneNumber",this.phoneNumber),n.append("emailAddress",this.emailAddress),n.append("comment",this.comment),n.append("recaptcha_token",f),n.append("_formName","Recruiter");let l=document.getElementById("recruiter-form-cta");l.disabled=!0,l.innerText="Processing data...",await axios({method:"post",url:"/api/forms/recruiter",data:n,headers:{"Content-Type":"multipart/form-data"}}).then(m=>{l.disabled=!1,l.innerText="Send",m.data==="success"?(this.formSubmitted=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"recruiter_form"})):m.data.errors.length&&(this.errors=m.data.errors)})}}}},_=t=>(k("data-v-be19eb10"),t=t(),S(),t),Te={class:"form",id:"recruiter"},Le={key:0,class:"fields"},Ee={class:"field"},Ae=_(()=>e("label",{for:"first-name"},"First name",-1)),Ie={class:"field"},Pe=_(()=>e("label",{for:"last-name"},"Last name",-1)),qe={class:"field"},Ue=_(()=>e("label",{for:"phone-number"},"Phone number",-1)),De={class:"field"},Be=_(()=>e("label",{for:"email-address"},"Email address",-1)),Fe={key:0,class:"field"},Me=_(()=>e("label",{for:"desired-region"},"Desired region",-1)),$e={class:"field file-upload"},He=_(()=>e("label",{for:"resume"},"Upload CV",-1)),Oe={class:"upload"},je={class:"field-wide"},Ge=_(()=>e("label",{for:"comment"},"Comments",-1)),ze={class:"field-wide"},Ke={key:0,type:"hidden",id:"region",name:"region",value:"Greenfield Locations"},We={key:1,class:"errors"},Ze=_(()=>e("p",null,"Some fields seem to be wrong. Please check and try again. ",-1)),Ye={key:1,class:"form-row newsletter-checker-results"},Je=_(()=>e("div",{class:"newsletter-checker-message"},[e("h3",null,"Thank you"),e("p",null,"Thank you for your interest in Women\u2019s Care. Within 48 hours of receiving your CV, a provider recruiter will contact you to review the available physician career opportunities and potential interview process.")],-1)),Qe=[Je];function Xe(t,s,i,f,n,l){const m=g("custom-svg"),o=g("vue-select"),y=E("mask");return r(),a("form",Te,[n.formSubmitted===!1?(r(),a("div",Le,[e("div",Ee,[Ae,u(e("input",{type:"text",id:"first-name",required:"required","onUpdate:modelValue":s[0]||(s[0]=d=>n.firstName=d)},null,512),[[c,n.firstName]])]),e("div",Ie,[Pe,u(e("input",{type:"text",id:"last-name",required:"required","onUpdate:modelValue":s[1]||(s[1]=d=>n.lastName=d)},null,512),[[c,n.lastName]])]),e("div",qe,[Ue,u(e("input",{type:"tel",id:"phone-number",required:"required","onUpdate:modelValue":s[2]||(s[2]=d=>n.phoneNumber=d)},null,512),[[c,n.phoneNumber],[y,"(###) ###-####"]])]),e("div",De,[Be,u(e("input",{type:"email",id:"email-address",required:"required","onUpdate:modelValue":s[3]||(s[3]=d=>n.emailAddress=d)},null,512),[[c,n.emailAddress]])]),l.isGreenfield?p("",!0):(r(),a("div",Fe,[Me,R(o,{modelValue:n.desiredRegion,"onUpdate:modelValue":s[4]||(s[4]=d=>n.desiredRegion=d),name:"region",id:"region",placeholder:"",required:"required",options:["Jacksonville, FL","Orlando, FL","Palm Beach, FL","Tampa, FL","Phoenix, AZ","California","London, KY","Other"],clearable:!1,clearSearchOnBlur:()=>!0,"close-on-select":!0,"select-on-tab":!0},{"open-indicator":F(()=>[R(m,{type:"icon",name:"icon-select-arrow",class:"select-arrow-icon"})]),_:1},8,["modelValue"])])),e("div",$e,[He,e("span",Oe,b(n.fileName),1),e("input",{type:"file",id:"resume",ref:"file",required:"required",onChange:s[5]||(s[5]=d=>l.handleFileUpload(d))},null,544)]),e("div",je,[Ge,u(e("textarea",{id:"comment","onUpdate:modelValue":s[6]||(s[6]=d=>n.comment=d),required:"required"},null,512),[[c,n.comment]])]),e("div",ze,[l.isGreenfield?(r(),a("input",Ke)):p("",!0),e("button",{class:"cta primary form-submit",onClick:s[7]||(s[7]=(...d)=>l.submit&&l.submit(...d)),id:"recruiter-form-cta"},"Send"),n.errors&&n.errors.length>0?(r(),a("ul",We,[Ze,(r(!0),a(x,null,C(this.errors,d=>(r(),a("li",null,b(Object.values(d).toString()),1))),256))])):p("",!0)])])):p("",!0),n.formSubmitted?(r(),a("div",Ye,Qe)):p("",!0)])}const et=w(Re,[["render",Xe],["__scopeId","data-v-be19eb10"]]);const tt={name:"content-with-form",props:["sectionClasses","contentClasses","containerClasses","heading","content","buttons","form","formData"],components:{Anchor:M,NewPartnership:he,Payment:Se,Recruiter:et,Heading:$}},st={class:"content-container inner-content"},nt=["innerHTML"],it={key:1,class:"form-buttons"},rt={key:0};function ot(t,s,i,f,n,l){const m=g("heading"),o=g("anchor");return r(),a("section",{class:v(i.sectionClasses)},[e("div",{class:v(i.contentClasses)},[e("div",{class:v(i.containerClasses)},[i.heading?(r(),N(m,{key:0,class:"form-heading",config:i.heading},null,8,["config"])):p("",!0),e("div",st,[e("div",null,[i.content?(r(),a("div",{key:0,class:"form-content",innerHTML:i.content},null,8,nt)):p("",!0),i.buttons?(r(),a("div",it,[(r(!0),a(x,null,C(i.buttons,y=>(r(),N(o,{href:y.href,class:v(y.class),textContent:b(y.text)},null,8,["href","class","textContent"]))),256))])):p("",!0)]),i.form?(r(),a("div",rt,[(r(),N(H(i.form),{formData:i.formData},null,8,["formData"]))])):p("",!0)])],2)],2)],2)}const lt=w(tt,[["render",ot],["__scopeId","data-v-44e53cfd"]]);export{lt as default};