1import{d as S,g as l,e,b as P,j as L,a as R,n as _,f as b,F as d,r as p,u,t as m,i as v,o as a}from"./app-zG3lrPqs.js";import{p as N,u as V}from"./representatives-ROkJiSYv.js";import{_ as B}from"./RepMap.vue_vue_type_style_index_0_lang-Dfd1tzp7.js";import{_ as F}from"./RepCard.vue_vue_type_script_setup_true_lang-DCiZUHuZ.js";const I={class:"mx-auto mb-16 max-w-7xl px-6 lg:px-8"},q={class:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8"},T={class:"grid grid-cols-1 gap-12 lg:grid-cols-3"},U={class:"lg:col-span-2"},A={key:0,class:"border border-gray-200 bg-white p-8 shadow-lg"},D={key:1,class:"border border-gray-200 bg-white p-8 shadow-lg"},Y={class:"lg:col-span-1"},$={class:"border border-gray-200 bg-white p-8 shadow-lg"},j=["value"],E={class:"space-y-2"},M=["value","checked","onChange"],O={class:"text-sm text-gray-700"},z={key:0},G=["value","required"],H={value:""},J={key:0,label:"United States"},K=["value"],ee=S({__name:"RepResults",props:{selectedRep:{},isInternational:{type:Boolean},country:{},stateProvince:{},productLines:{},selectedProducts:{}},emits:["update:country","update:stateProvince","update:productLines","search","contact"],setup(o,{emit:g}){const r=o,i=g,x=n=>{const t=n.target;i("update:country",t.value)},y=n=>{const t=n.target;i("update:stateProvince",t.value)},f=(n,t)=>{const s=[...r.productLines];if(t)s.includes(n)||s.push(n);else{const c=s.indexOf(n);c>-1&&s.splice(c,1)}i("update:productLines",s)},h=()=>{i("search")},k=n=>{i("contact",n)},w=r.country!=="us",C=r.country?r.country==="international"?"N/A - International":"Select State":"Select Country First";return(n,t)=>(a(),l(d,null,[e("div",I,[P(B,{"selected-rep":o.selectedRep,"is-international":o.isInternational},null,8,["selected-rep","is-international"])]),e("div",q,[e("div",T,[e("div",U,[o.isInternational?(a(),l("div",A,[...t[0]||(t[0]=[L('<h3 class="mb-6 text-xl font-semibold text-gray-900">Your Representative</h3><div class="text-sm text-gray-500"><p class="mb-6 text-base text-gray-700"> For international inquiries, please contact our team at <a href="tel:+18338648353" class="font-semibold text-valmont-blue hover:underline">+1 833 864 8353</a> or email <a href="mailto:[email protected]" class="font-semibold text-valmont-blue hover:underline">[email protected]</a>. </p><a href="/about/contact" class="inline-block bg-valmont-blue px-6 py-3 text-sm font-semibold text-white transition-colors hover:bg-opacity-90"> Contact Us </a></div>',2)])])):o.selectedRep?(a(),R(F,{key:2,representative:o.selectedRep,"selected-products":o.selectedProducts,onContact:k},null,8,["representative","selected-products"])):(a(),l("div",D,[...t[1]||(t[1]=[e("h3",{class:"mb-6 text-xl font-semibold text-gray-900"},"Your Representative",-1),e("p",{class:"text-gray-500"},"No representative found for your selected location.",-1)])]))]),e("div",Y,[e("div",$,[t[7]||(t[7]=e("h3",{class:"mb-6 text-xl font-semibold text-gray-900"},"Search Again",-1)),e("form",{class:"space-y-6",onSubmit:_(h,["prevent"])},[e("div",null,[t[3]||(t[3]=e("label",{for:"country-results",class:"mb-2 block text-sm font-medium text-gray-700"},[b(" Country "),e("span",{class:"text-red-500"},"*")],-1)),e("select",{id:"country-results",value:o.country,required:"",class:"w-full border border-gray-300 px-3 py-2 text-sm focus:border-transparent focus:outline-none focus:ring-2 focus:ring-valmont-blue",onChange:x},[...t[2]||(t[2]=[e("option",{value:""},"Select Country",-1),e("option",{value:"us"},"United States",-1),e("option",{value:"international"},"International",-1)])],40,j)]),e("div",null,[t[4]||(t[4]=e("label",{class:"mb-2 block text-sm font-medium text-gray-700"},"Product Line",-1)),e("div",E,[(a(!0),l(d,null,p(u(N),s=>(a(),l("label",{key:s.value,class:"flex items-center"},[e("input",{type:"checkbox",value:s.value,checked:r.productLines.includes(s.value),class:"mr-3 text-valmont-blue focus:ring-valmont-blue",onChange:c=>f(s.value,c.target.checked)},null,40,M),e("span",O,m(s.label),1)]))),128))])]),o.country!=="international"?(a(),l("div",z,[t[5]||(t[5]=e("label",{for:"state-province-results",class:"mb-2 block text-sm font-medium text-gray-700"},[b(" State / Province "),e("span",{class:"text-red-500"},"*")],-1)),e("select",{id:"state-province-results",value:o.stateProvince,required:o.country!=="international",disabled:w,class:"w-full border border-gray-300 px-3 py-2 text-sm focus:border-transparent focus:outline-none focus:ring-2 focus:ring-valmont-blue disabled:cursor-not-allowed disabled:bg-gray-100",onChange:y},[e("option",H,m(u(C)),1),o.country==="us"?(a(),l("optgroup",J,[(a(!0),l(d,null,p(u(V),s=>(a(),l("option",{key:s.value,value:s.value},m(s.label),9,K))),128))])):v("",!0)],40,G)])):v("",!0),t[6]||(t[6]=e("div",{class:"pt-4"},[e("button",{type:"submit",class:"w-full bg-valmont-blue px-6 py-3 text-sm font-semibold text-white transition-colors hover:bg-opacity-90"}," Find Representative ")],-1))],32)])])])])],64))}});
1export{ee as _};
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.