import{_ as L,o as r,c as f,u as N,r as a,p as T,b as o,d as g,e as s,i as n,a as e,F as q,g as d,h as C,j as R,y as j,k as u,l as I,m as $}from"./entry.126c240b.js";import{_ as D}from"./import.84824641.js";const M={},H={class:"loader"};function z(V,b){return r(),f("div",H)}const K=L(M,[["render",z],["__scopeId","data-v-01c6938e"]]),O=""+globalThis.__publicAssetsURL("indonesia.svg"),Q=e("div",{class:"text-lg"}," Pendaftaran berhasil dikirim! ",-1),Y={class:"animate-fade w-full"},G={class:"bg-white uhjk py-6 mt-6 w-[90%] mx-auto rounded-xl my-12",style:{border:"1.4px solid #EFEFEF"}},J=e("div",{class:"sm:flex items-center justify-between w-full pb-4",style:{"border-bottom":"1px solid #EFEFEF"}},[e("div",null,[e("h1",{class:"font-bold"},"Sistem Pencatatan Pendaftaran")]),e("div",{class:"mt-2 sm:mt-0 flex items-center"},[e("img",{src:D}),e("div",{class:"font-semibold text-[#2E8586]"}," Unduh Brosur ")])],-1),W={class:"grid grid-cols-1 sm:grid-cols-2 sm:gap-6 pt-8"},X=e("div",{class:"mb-5 font-semibold"},[u("Nama Lengkap"),e("span",{class:"text-red"},"*")],-1),Z=e("div",{class:"mb-5 font-semibold"},[u("Alamat Email"),e("span",{class:"text-red"},"*")],-1),ee=e("div",{class:"mb-5 font-semibold"},[u("Nomor Telepon"),e("span",{class:"text-red"},"*")],-1),le=e("div",{class:"flex items-center pr-6"},[e("img",{src:O,width:"30"}),e("div",{class:"ml-1 text-[#111111] font-semibold"},"+62")],-1),te=e("div",{class:"mb-5 font-semibold"},[u("Program Studi"),e("span",{class:"text-red"},"*")],-1),ae=e("div",{class:"mb-5 font-semibold"},[u("Pesan"),e("span",{class:"text-red"},"*")],-1),se={key:0,class:"text-xl"},de={__name:"Sistem-Pencatatan-Pendaftaran",setup(V){N({title:"Sistem Pencatatan Pendaftaran"});const b=a(null),x=a(!1),m=a(null),i=a(null),c=a(null),_=a(null),p=a(null),v=a(!1),P=a(["Akutansi","Hukum","Agama Islam","Manajemen","Pendidikan Matematika","PPKn","Teknik Sipil"]),w=T().currentRoute.value.query.email;i.value=w;async function y(){const{valid:k}=await b.value.validate();k&&(x.value=!0,await $fetch(I().public.API_PUBLIC_URL+"/api/catatan-pendaftaran",{method:"POST",headers:{Authorization:"Bearer "+$().token},body:{name:m.value,email:i.value,notelp:c.value,prodi:_.value,pesan:p.value}}),x.value=!1,v.value=!0)}return(k,t)=>{const F=d("v-snackbar"),h=d("v-text-field"),E=d("v-select"),U=d("v-textarea"),S=K,A=d("v-form"),B=C("ripple");return r(),f(q,null,[o(F,{modelValue:s(v),"onUpdate:modelValue":t[0]||(t[0]=l=>n(v)?v.value=l:null),color:"#2E8586",timeout:4e3,rounded:"pill"},{default:g(()=>[Q]),_:1},8,["modelValue"]),e("div",Y,[o(A,{ref_key:"form",ref:b},{default:g(()=>[e("div",G,[J,e("div",W,[e("div",null,[X,o(h,{rules:[l=>!!l||"Field is required"],modelValue:s(m),"onUpdate:modelValue":t[1]||(t[1]=l=>n(m)?m.value=l:null),label:"Nama Lengkap",variant:"outlined",placeholder:"ex: Muhammad Ichsanul Fadhil",rounded:""},null,8,["rules","modelValue"])]),e("div",null,[Z,o(h,{rules:[l=>!!l||"Field is required",l=>!l||/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(l)||"Alamat email tidak valid"],modelValue:s(i),"onUpdate:modelValue":t[2]||(t[2]=l=>n(i)?i.value=l:null),label:"Email",variant:"outlined",placeholder:"ichsanfadhil67@gmail.com",rounded:""},null,8,["rules","modelValue"])])]),e("div",null,[ee,o(h,{rules:[l=>!!l||"Field is required"],modelValue:s(c),"onUpdate:modelValue":t[3]||(t[3]=l=>n(c)?c.value=l:null),label:"Nomor Telepon",type:"number",variant:"outlined",placeholder:"812333444666",rounded:""},{"prepend-inner":g(()=>[le]),_:1},8,["rules","modelValue"])]),e("div",null,[te,o(E,{rules:[l=>!!l||"Field is required"],modelValue:s(_),"onUpdate:modelValue":t[4]||(t[4]=l=>n(_)?_.value=l:null),label:"Pilih Program Studi",variant:"outlined",rounded:"",items:s(P)},null,8,["rules","modelValue","items"])]),e("div",null,[ae,o(U,{rules:[l=>!!l||"Field is required"],modelValue:s(p),"onUpdate:modelValue":t[5]||(t[5]=l=>n(p)?p.value=l:null),label:"Pesan",variant:"outlined",clearable:"","auto-grow":"",placeholder:"Semangat untuk UCY!",rounded:""},null,8,["rules","modelValue"])]),R((r(),f("div",{onClick:y,class:"cursor-pointer text-base bg-[#2E8586] text-white flex justify-center w-full mt-6 rounded-xl font-medium text-center px-4 py-3"},[s(x)?(r(),j(S,{key:1})):(r(),f("div",se,"Daftar"))])),[[B]])])]),_:1},512)])],64)}}};export{de as default};
