<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import{r as x,q as g,s as i,c as _,o as k,x as C,a as r,p as a,t as p,n as h,y as E,h as s,z as w,v as c,b as $,A as D,F as q}from"./DjyXD62A.js";import{r as V}from"./Bi5U_zVD.js";const B=["for"],O={class:"relative mt-1 rounded-md"},S=["type","name","id","value","placeholder"],U={class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},z=["id"],H={__name:"InputWebsite",props:{name:"",label:"",placeholder:"",type:"",error:"",modelValue:""},emits:["update:modelValue","blur"],setup(m,{emit:f}){const e=m,t=x(""),b=f;function v(l){switch(t.value.length){case 0:l.keyCode===48?(t.value="https://www.",l.preventDefault()):t.value=`https://www.${t.value}`;break}}g(t,l=&gt;{b("update:modelValue",l)});const d=i(()=&gt;e.label.indexOf("?")&gt;-1),u=i(()=&gt;e.error!==void 0&amp;&amp;e.error.length&gt;0),o=i(()=&gt;{let l=e.error;return l&amp;&amp;l.indexOf("required")&gt;=0?`${e.label} is a required field`:`${e.label} is not valid`});return(l,n)=&gt;(k(),_("div",null,[C(l.$slots,"label",{},()=&gt;[r("label",{for:e.name,class:h(["block font-semibold text-gray-700",d.value?"text-lg":"text-sm"])},p(e.label),11,B)]),r("div",O,[a(r("input",{type:e.type,name:e.name,id:e.name,value:e.modelValue,class:h(["block w-full h-12 rounded-md pr-10 outline-1 placeholder:text-slate-400 sm:text-sm",u.value?"border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:outline-none focus:ring-red-500":"border-gray-300 text-slate-800 focus:ring-tonik-purple focus:border-tonik-purple"]),placeholder:e.placeholder,"onUpdate:modelValue":n[0]||(n[0]=y=&gt;w(t)?t.value=y:null),onBlur:n[1]||(n[1]=y=&gt;l.$emit("blur")),onKeydown:v},null,42,S),[[E,s(t)]]),a(r("div",U,[$(s(V),{class:"text-red-500 w-6 h-6"})],512),[[c,u.value]])]),a(r("p",{class:"pointer-events-none absolute mt-1 text-xs text-red-500",id:`${e.name}-error`},p(o.value),9,z),[[c,u.value]])]))}},A=["for"],N={class:"relative mt-1 rounded-md shadow-sm"},F={class:"relative mt-1 rounded-md"},I=["id","name","placeholder"],K={class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"},M=["id"],Q=Object.assign({inheritAttrs:!1},{__name:"InputPhoneNumber",props:{name:"",label:"",placeholder:"",type:"",isError:!1,error:"",modelValue:""},emits:["update:modelValue","blur"],setup(m,{emit:f}){const e=m,t=x(""),b=f;function v(o){if(o.keyCode&lt;47||o.keyCode&gt;58||t.value.length===16)o.keyCode!==8&amp;&amp;o.preventDefault();else switch(t.value.length){case 0:o.keyCode===48?(t.value="+63 ",o.preventDefault()):t.value=`+63 ${t.value}`;break;case 7:t.value=`${t.value} `;break;case 11:t.value=`${t.value}-`;break}}g(t,o=&gt;{b("update:modelValue",o)});const d=i(()=&gt;e.error!==void 0&amp;&amp;e.error.length&gt;0),u=i(()=&gt;{let o=e.error;return o&amp;&amp;o.indexOf("required")&gt;=0?`${e.label} is a required field`:`${e.label} is not valid`});return(o,l)=&gt;(k(),_(q,null,[r("label",{for:e.name,class:"block text-sm font-medium text-gray-700"},p(e.label),9,A),r("div",N,[l[2]||(l[2]=r("div",{class:"absolute inset-y-0 left-0 flex items-center z-10 pointer-events-none"},[r("label",{for:"country",class:"sr-only"},"Country"),r("select",{id:"country",name:"country",class:"h-full rounded-md border-transparent bg-transparent py-0 pl-4 pr-8 text-gray-500 focus:border-tonik-purple focus:ring-tonik-purple"},[r("option",null,"PH"),r("option",null,"US"),r("option",null,"CA"),r("option",null,"EU")])],-1)),r("div",F,[a(r("input",{id:e.name,type:"text",onpaste:"return false;",ondrop:"return false;",name:e.name,autocomplete:"tel",class:h(["block w-full h-12 rounded-md py-3 px-4 pl-20 placeholder:text-slate-400 sm:text-sm focus:appearance-none",s(d)?"border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:outline-none focus:ring-red-500":"border-gray-300 text-slate-800 focus:ring-tonik-purple focus:border-tonik-purple"]),placeholder:e.placeholder,"onUpdate:modelValue":l[0]||(l[0]=n=&gt;w(t)?t.value=n:null),onBlur:l[1]||(l[1]=n=&gt;o.$emit("blur")),onKeydown:v},null,42,I),[[D,s(t)]]),a(r("div",K,[$(s(V),{class:"text-red-500 w-6 h-6"})],512),[[c,s(d)]])]),a(r("p",{class:"pointer-events-none absolute mt-1 text-xs text-red-500",id:`${e.name}-error`},p(s(u)),9,M),[[c,s(d)]])])],64))}});export{Q as _,H as a};
</pre></body></html>