1import{_ as V}from"./B7Vit_XU.js";import{_,u as k,z as u,q as w,c as p,a as o,m as b,B,R as m,S as i,F as N,A as S,b as C,e as U,d as q,o as y,t as x}from"./DsBMAuWG.js";import{c as T}from"./DYV_JxJv.js";import"./R2PMpJEa.js";import"./QjXHuOr0.js";/** 2 * @license @tabler/icons-vue v3.31.0 - MIT 3 * 4 * This source code is licensed under the MIT license. 5 * See the LICENSE file in the root directory of this source tree. 6 */var A=T("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);const H={class:"content"},O={key:0,class:"success-message"},D={class:"input-group"},M={class:"input-group"},R={class:"input-group"},z={class:"input-group"},F={class:"input-group"},I=["for"],j=["id","onUpdate:modelValue"],$={class:"input-group"},J=["for"],K=["id","onUpdate:modelValue"],L={class:"input-group"},Q=["for"],W=["id","onUpdate:modelValue"],Y={class:"input-group"},G=["for"],X=["id","onUpdate:modelValue"],Z=["disabled"],ee={__name:"vendor-reference",setup(oe){k({meta:[{name:"description",content:"Join Solume's trusted vendor list by submitting your recent client references. Provide contact information for HOA and/or condominium communities you've worked with, and get vetted to become a preferred vendor on our HOA and condo association management platform."}]});const v=u([{communityName:"",communityContactName:"",communityEmail:"",communityPhone:""},{communityName:"",communityContactName:"",communityEmail:"",communityPhone:""},{communityName:"",communityContactName:"",communityEmail:"",communityPhone:""}]),P=()=>{v.value.push({communityName:"",communityContactName:"",communityEmail:"",communityPhone:""})},r=u(""),l=u(""),d=u(""),c=u(""),f=u(!1),E=w(()=>{const n=new Set;if(!r.value||!l.value||!d.value||!c.value)return!1;n.add(r.value),n.add(l.value),n.add(d.value),n.add(c.value);for(const e of v.value){if(!e.communityName||!e.communityContactName||!e.communityEmail||!e.communityPhone||n.has(e.communityName)||n.has(e.communityContactName)||n.has(e.communityEmail)||n.has(e.communityPhone))return!1;n.add(e.communityName),n.add(e.communityContactName),n.add(e.communityEmail),n.add(e.communityPhone)}return!0}),g=async()=>{const n="https://api.airtable.com/v0/appNlKNx2uAk94wV7/tblmVtnvQNDSMz8P0",h={Authorization:"Bearer undefined","Content-Type":"application/json"};try{for(const t of v.value){const s=JSON.stringify({fields:{"Business Name":r.value,"Business Contact Name":l.value,"Business Contact Email":d.value,"Business Contact Phone":c.value,"Community Name":t.communityName,"Community Contact Name":t.communityContactName,"Community Contact Email":t.communityEmail,"Community Contact Phone":t.communityPhone}}),a=await fetch(n,{method:"POST",headers:h,body:s});if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);const te=await a.json()}f.value=!0}catch(t){alert(`Error: ${t.message}`)}};return(n,e)=>{const h=V;return y(),p(N,null,[o("main",null,[o("div",H,[e[17]||(e[17]=o("h1",null,"Vendor reference submission form",-1)),e[18]||(e[18]=o("p",null," Do you want your business to appear on Solume's vendors list? In order to be featured, we ask that you use the form below to submit a minimum of 3 communities (HOA and/or condo associations) you have worked with in the past 2 years to serve as references. ",-1)),f.value?(y(),p("div",O,"Thank you for your submission to join Solume's vendors list! We will be in touch shortly.")):b("",!0),f.value?b("",!0):(y(),p("form",{key:1,onSubmit:B(g,["prevent"])},[o("div",D,[e[4]||(e[4]=o("label",{for:"vendorName"},"Business name *",-1)),m(o("input",{type:"text",id:"vendorName","onUpdate:modelValue":e[0]||(e[0]=t=>r.value=t),required:""},null,512),[[i,r.value]]),e[5]||(e[5]=o("p",{class:"help-text"},"The name of your business.",-1))]),o("div",M,[e[6]||(e[6]=o("label",{for:"vendorContactName"},"Business contact name *",-1)),m(o("input",{type:"text",id:"vendorContactName","onUpdate:modelValue":e[1]||(e[1]=t=>l.value=t),required:""},null,512),[[i,l.value]]),e[7]||(e[7]=o("p",{class:"help-text"},"Your name, or the name of someone else at your business we can talk to.",-1))]),o("div",R,[e[8]||(e[8]=o("label",{for:"vendorEmail"},"Business contact email address *",-1)),m(o("input",{type:"email",id:"vendorEmail","onUpdate:modelValue":e[2]||(e[2]=t=>d.value=t),required:""},null,512),[[i,d.value]]),e[9]||(e[9]=o("p",{class:"help-text"},"Email address to reach you or the person specified above.",-1))]),o("div",z,[e[10]||(e[10]=o("label",{for:"vendorPhone"},"Business contact phone number *",-1)),m(o("input",{type:"tel",id:"vendorPhone","onUpdate:modelValue":e[3]||(e[3]=t=>c.value=t),required:""},null,512),[[i,c.value]]),e[11]||(e[11]=o("p",{class:"help-text"},"Phone number to reach you or the person specified above.",-1))]),(y(!0),p(N,null,S(v.value,(t,s)=>(y(),p("div",{class:"form",key:s},[o("h2",null,"Reference community #"+x(s+1),1),o("div",F,[o("label",{for:"communityName"+s},"Community name *",8,I),m(o("input",{type:"text",id:"communityName"+s,"onUpdate:modelValue":a=>t.communityName=a,required:""},null,8,j),[[i,t.communityName]]),e[12]||(e[12]=o("p",{class:"help-text"},"Name of the HOA/condo association.",-1))]),o("div",$,[o("label",{for:"communityContactName"+s},"Community contact name *",8,J),m(o("input",{type:"text",id:"communityContactName"+s,"onUpdate:modelValue":a=>t.communityContactName=a,required:""}
6,null,8,K),[[i,t.communityContactName]]),e[13]||(e[13]=o("p",{class:"help-text"},"Name of someone from this HOA/condo association we can talk to.",-1))]),o("div",L,[o("label",{for:"communityEmail"+s},"Community contact email address *",8,Q),m(o("input",{type:"email",id:"communityEmail"+s,"onUpdate:modelValue":a=>t.communityEmail=a,required:""},null,8,W),[[i,t.communityEmail]]),e[14]||(e[14]=o("p",{class:"help-text"},"Email address to reach the person specified above.",-1))]),o("div",Y,[o("label",{for:"communityPhone"+s},"Community contact phone number *",8,G),m(o("input",{type:"tel",id:"communityPhone"+s,"onUpdate:modelValue":a=>t.communityPhone=a,required:""},null,8,X),[[i,t.communityPhone]]),e[15]||(e[15]=o("p",{class:"help-text"},"Phone number to reach the person specified above.",-1))])]))),128)),o("button",{type:"button",class:"btn btn-secondary btn-medium",onClick:P},[C(U(A),{size:"1rem"}),e[16]||(e[16]=q("Add another reference"))]),o("button",{type:"submit",class:"btn btn-primary btn-large",disabled:!E.value},"Submit",8,Z)],32))])]),o("footer",null,[C(h)])],64)}}},ue=_(ee,[["__scopeId","data-v-c0677ec3"]]);export{ue as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.