1import{r as N,o as U,a0 as i,a4 as n,m as o,a2 as d,a3 as l,u as s,a7 as m,R as h,O as v}from"./vendors-a8515af8.js";import{T as w,a as C}from"./app-d19ab1ef.js";import{u as T}from"./useRoute-ed7fc113.js";import{Y as A,U as B,c as u,x as r,d as f,s as I}from"./vComponents-f260ef60.js";/* empty css *//* empty css */import"./vCore-534ae2df.js";import"./vLabComponents-05dc0430.js";import"./parse-c3570fb2.js";const F={class:"pa-5 bg-grey-lighten-5",style:{"min-height":"100vh"}},j=l("div",{class:"d-flex justify-space-between flex-column flex-md-row align-center"},[l("a",{href:"https://satlinkonline.com"},[l("img",{src:"/images/logo-satlink.png",alt:"",style:{"max-width":"15rem",width:"100%"},class:""})]),l("h1",{class:"text-center pl-1 mt-3 pl-md-0 mt-md-0"},"Apply for Service")],-1),D=l("div",{class:"d-flex justify-space-between align-center"},[l("p",{class:"text-grey text-center text-md-right flex-grow-1 mt-5 mt-md-0"}," For more Information: Call 9903995, 9890945, 3000048 ")],-1),R={class:"mb-2 mt-5"},S={class:"mb-2"},Y={key:0,class:"mb-2"},E={key:1,class:"mb-2"},M={key:2,class:"mb-2"},O={key:3,class:"mb-2"},$={key:4,class:"mb-2"},L={class:"mb-2"},P={class:"mb-2"},W={class:"mb-2"},q={class:"mb-2"},se={__name:"Form",props:{islands:Array,customer_types:Array},setup(p){var y;const b=p,x=T(),e=w({firstname:"",lastname:"",company:"",tin:"",mobile:"",identification:"",island_id:(y=b.islands[0])==null?void 0:y.value,address:"",customer_type:"individual",package_id:"",existing_ont:!1}),c=N([]);function g(){console.log(e.customer_type,e.island_id),_(e.customer_type,e.island_id)}async function _(V,a){try{e.package_id="",c.value=[];const t=await C.get(`/get_packages_json/${V}/${a}`);c.value=t.data}catch{alert("Error fetching packages!")}}function k(){e.post(x("apply.submit"))}return U(()=>{_(e.customer_type,e.island_id)}),(V,a)=>(i(),n("div",F,[o(I,{style:{"max-width":"50rem"},class:"mx-auto mt-10"},{default:d(()=>[o(A,null,{default:d(()=>[j,D,o(B,{class:"my-3"}),l("div",R,[o(u,{variant:"outlined",label:"Customer Type",items:p.customer_types,modelValue:s(e).customer_type,"onUpdate:modelValue":[a[0]||(a[0]=t=>s(e).customer_type=t),g],"error-messages":s(e).errors.customer_type},null,8,["items","modelValue","error-messages"])]),l("div",S,[o(u,{variant:"outlined",label:"Island",items:p.islands,modelValue:s(e).island_id,"onUpdate:modelValue":[a[1]||(a[1]=t=>s(e).island_id=t),g],"error-messages":s(e).errors.island_id},null,8,["items","modelValue","error-messages"])]),s(e).customer_type=="individual"?(i(),n("div",Y,[o(r,{variant:"outlined",label:"First Name",modelValue:s(e).firstname,"onUpdate:modelValue":a[2]||(a[2]=t=>s(e).firstname=t),"error-messages":s(e).errors.firstname},null,8,["modelValue","error-messages"])])):m("",!0),s(e).customer_type=="individual"?(i(),n("div",E,[o(r,{variant:"outlined",label:"Last Name",modelValue:s(e).lastname,"onUpdate:modelValue":a[3]||(a[3]=t=>s(e).lastname=t),"error-messages":s(e).errors.lastname},null,8,["modelValue","error-messages"])])):m("",!0),s(e).customer_type=="individual"?(i(),n("div",M,[o(r,{variant:"outlined",label:"Your Number",modelValue:s(e).mobile,"onUpdate:modelValue":a[4]||(a[4]=t=>s(e).mobile=t),"error-messages":s(e).errors.mobile},null,8,["modelValue","error-messages"])])):m("",!0),s(e).customer_type=="company"?(i(),n("div",O,[o(r,{variant:"outlined",label:"Company Name",modelValue:s(e).company,"onUpdate:modelValue":a[5]||(a[5]=t=>s(e).company=t),"error-messages":s(e).errors.company},null,8,["modelValue","error-messages"])])):m("",!0),s(e).customer_type=="company"?(i(),n("div",$,[o(r,{variant:"outlined",label:"TIN Number",modelValue:s(e).tin,"onUpdate:modelValue":a[6]||(a[6]=t=>s(e).tin=t),"error-messages":s(e).errors.tin},null,8,["modelValue","error-messages"])])):m("",!0),l("div",L,[o(r,{variant:"outlined",label:"ID Number",modelValue:s(e).identification,"onUpdate:modelValue":a[7]||(a[7]=t=>s(e).identification=t),"error-messages":s(e).errors.identification},null,8,["modelValue","error-messages"])]),l("div",P,[o(r,{variant:"outlined",label:"Address",modelValue:s(e).address,"onUpdate:modelValue":a[8]||(a[8]=t=>s(e).address=t),"error-messages":s(e).errors.address},null,8,["modelValue","error-messages"])]),l("div",W,[o(u,{variant:"outlined",label:"Package",items:c.value,modelValue:s(e).package_id,"onUpdate:modelValue":a[9]||(a[9]=t=>s(e).package_id=t),"error-messages":s(e).errors.package_id},null,8,["items","modelValue","error-messages"])]),l("div",q,[o(u,{variant:"outlined",label:"Do you have an existing ONT/Router?",items:[{title:"Yes",value:!0},{title:"No",value:!1}],modelValue:s(e).existing_ont,"onUpdate:modelValue":a[10]||(a[10]=t=>s(e).existing_ont=t),"error-messages":s(e).errors.existing_ont},null,8,["modelValue","error-messages"])]),o(f,{block:"",onClick:h(k,["prevent"])},{default:d(()=>[v(" Apply ")]),_:1}
1,8,["onClick"]),o(f,{block:"",href:"https://satlinkonline.com",variant:"text",class:"my-4"},{default:d(()=>[v("Back to Website")]),_:1})]),_:1})]),_:1})]))}};export{se 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.