PageSourceSearch

https://awecode.com/_nuxt/DlQYcDHf.js

js awecode.com collected 2026-10-03 21:25:46 UTC 10,529 bytes, 1 lines download raw bytes

1import{ag as q,ac as F,ad as D,Y as w,aj as I,N as T,M as B,R as d,m as c,j as e,a6 as s,ap as h,an as f,ai as v,J as y,a3 as N,l as C,F as U,s as j,al as A,af as E,p as R,q as Z,i as z}from"./BR6L9CYU.js";import{u as G}from"./X1To9Bz4.js";import{_ as O}from"./DlAUqK2U.js";import"./BJ2ClxiI.js";import"./Ceu_puDw.js";const H="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='35px'%20height='35px'%20viewBox='-0.5%200%2019%2019'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sketch='http://www.bohemiancoding.com/sketch/ns'%3e%3ctitle%3eicon/18/icon-delete%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='out'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20sketch:type='MSPage'%3e%3cpath%20d='M4.91666667,14.8888889%20C4.91666667,15.3571429%205.60416667,16%206.0625,16%20L12.9375,16%20C13.3958333,16%2014.0833333,15.3571429%2014.0833333,14.8888889%20L14.0833333,6%20L4.91666667,6%20L4.91666667,14.8888889%20L4.91666667,14.8888889%20L4.91666667,14.8888889%20Z%20M15,3.46500003%20L12.5555556,3.46500003%20L11.3333333,2%20L7.66666667,2%20L6.44444444,3.46500003%20L4,3.46500003%20L4,4.93000007%20L15,4.93000007%20L15,3.46500003%20L15,3.46500003%20L15,3.46500003%20Z'%20id='path'%20fill='%23FFFFFF'%20sketch:type='MSShapeGroup'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",K={key:0,class:"fixed inset-0 bg-black bg-opacity-50"},Y={class:"p-4 max-h-full overflow-y-auto"},J={class:"my-20 md:w-2/3 2xl:w-1/2 bg-pr-200 rounded-lg"},W={class:"flex flex-col items-center mb-16 md:mb-20"},X={class:"px-6 md:px-0 w-full md:w-3/4"},Q={class:"space-y-8"},ee={class:"md:flex md:flex-col md:items-center text-center"},te={key:0},oe={class:"font-semibold"},se={key:1},le={class:"flex justify-center md:justify-normal text-center"},ae=["disabled"],ne={class:"flex gap-2 items-center"},re={key:0,role:"loading"},ie={__name:"ApplicationForm",props:{position:{type:String,default:""},vacancyId:{type:Number,required:!0}},setup(k){const n=q(),i=F(),x=D(),m=k,o=w({fullName:"",email:"",phone:"",selectedPosition:m.position,cv:null,message:""}),p=w(!1),u=w(null),r=w(!1),b=a=>{a.size<2*1024*1024?o.value.cv=a:(o.value.cv=null,n.error("File size excced 2MB"))},S=a=>{const t=a.target.files[0];t&&b(t)},_=()=>{o.value.cv=null,u.value&&(u.value.value="")},L=()=>{u.value.click()},V=a=>{const t=a.dataTransfer.files[0];if(t){const l=t.name.split(".").pop().toLowerCase();l!=="pdf"&&l!=="docx"&&l!=="doc"?(n.error("Invalid file type"),_()):b(t)}},P=async()=>{const a=new FormData,t={fullName:o.value.fullName,email:o.value.email,phone:o.value.phone,position:o.value.selectedPosition,cv:o.value.cv,message:o.value.message,vacancyId:String(m.vacancyId)};Object.entries(t).forEach(([l,$])=>{a.append(l,$)});try{r.value=!0,r.value=!0,await $fetch("/api/application-form",{method:"POST",body:a})?(n.success("Application submitted sucessfully!"),o.value={fullName:"",email:"",phone:"",selectedPosition:m.position,cv:null,message:""},g()):n.error("Form submission failed")}catch(l){l.data&&n.error(l.data.message)}finally{r.value=!1}},M=()=>{p.value=!0,document.body.classList.add("overflow-y-hidden"),x.push({path:i.path,query:{...i.query,form:!0}})},g=()=>{p.value=!1,document.body.classList.remove("overflow-y-hidden"),x.replace({query:{}})};return I(()=>i.query.form,a=>{a||g()}),T(()=>{i.query.form==="true"&&M()}),B(()=>{document.body.classList.remove("overflow-y-hidden")}
1),(a,t)=>(d(),c(U,null,[e("div",{class:"mt-5"},[e("div",{"data-aos":"fade-left "},[e("button",{class:"btn block w-fit",onClick:M},"Apply Now")])]),s(p)?(d(),c("div",K,[e("div",Y,[e("div",{class:"flex justify-center",onClick:h(g,["self"])},[e("div",J,[e("div",{class:"flex justify-end my-4 md:my-6"},[e("button",{type:"button",class:"bg-transparent h-8 w-8 dark:text-pr-800 cursor-pointer mr-3","data-modal-hide":"static-modal",onClick:g},[...t[7]||(t[7]=[e("svg",{class:"h-4 w-4 md:w-5 md:h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"})],-1),e("span",{class:"sr-only"},"Close modal",-1)])])]),e("div",W,[e("div",X,[t[17]||(t[17]=e("div",{class:"space-y-2 mb-8"},[e("h1",{class:"text-2xl sm:text-3xl md:text-4xl font-bold"}," Internship Application "),e("h2",{class:"text-base sm:text-lg md:text-xl"}," Please fill out the form below to submit your application. ")],-1)),e("form",{onSubmit:h(P,["prevent"])},[e("div",Q,[e("div",null,[t[8]||(t[8]=e("label",{for:"fullName",class:"font-bold text-lg sm:text-xl text-pr-800"},"Full Name *",-1)),f(e("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=l=>s(o).fullName=l),name:"fullName",class:"mt-4 block w-full border-2 border-pr-700 text-md p-2 rounded-sm",placeholder:"Full Name",autocomplete:"name",required:""},null,512),[[v,s(o).fullName]])]),e("div",null,[t[9]||(t[9]=e("label",{for:"email",class:"font-bold text-lg sm:text-xl text-pr-800"},"Email *",-1)),f(e("input",{type:"email","onUpdate:modelValue":t[1]||(t[1]=l=>s(o).email=l),class:"mt-4 block w-full border-2 border-pr-700 text-md p-2 rounded-sm",placeholder:"Email",autocomplete:"email",required:""},null,512),[[v,s(o).email]])]),e("div",null,[t[10]||(t[10]=e("label",{for:"Phone Number",class:"font-bold text-lg sm:text-xl text-pr-800"},"Phone Number *",-1)),f(e("input",{type:"number","onUpdate:modelValue":t[2]||(t[2]=l=>s(o).phone=l),class:"mt-4 block w-full border-2 border-pr-700 text-md p-2 rounded-sm",minlength:"10",maxlength:"13",autocomplete:"phone",placeholder:"Phone Number",required:""},null,512),[[v,s(o).phone]])]),e("div",null,[t[11]||(t[11]=e("label",{for:"position",class:"font-bold text-xl text-awe-brown-darker"},"Position *",-1)),f(e("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>s(o).selectedPosition=l),disabled:"",class:"mt-4 block w-full border-2 bg-white border-awe-brown-700 text-md p-2 rounded-sm"},null,512),[[v,s(o).selectedPosition]])]),e("div",null,[t[14]||(t[14]=e("label",{class:"font-bold block text-lg sm:text-xl text-pr-800"}," CV document * ",-1)),e("div",{class:"mt-4 p-8 md:p-10 flex flex-col items-center border-2 border-dashed border-awe-brown-700 rounded-sm hover:bg-awe-brown-500 cursor-pointer relative",onClick:t[4]||(t[4]=l=>!s(o).cv&&L),onDragover:t[5]||(t[5]=h(()=>{},["prevent"])),onDrop:h(V,["prevent"])},[e("input",{type:"file",id:"uploadcv",accept:".pdf,.docx,.doc",class:y(["inset-0 opacity-0 cursor-pointer",{absolute:!s(o).cv},{hidden:s(o).cv}]),required:"",onChange:S,ref_key:"cvInput",ref:u},null,34),e("div",ee,[s(o).cv?(d(),c("div",te,[e("p",oe,N(s(o).cv.name),1),e("div",{class:"mt-4 flex"},[e("button",{class:"border-2 rounded-md border-pr-800 bg-pr-800 px-3 text-white mr-3",onClick:L}," Change file "),e("button",{class:"border-2 rounded-md border-pr-800 bg-pr-800 py-1 px-1 text-white",onClick:_},[...t[12]||(t[12]=[e("img",{src:H},null,-1)])])])])):(d(),c("div",se,[...t[13]||(t[13]=[e("p",{class:"md:text-lg text-pr-700 font-medium cursor-pointer"}," Upload a file or drag and drop here ",-1),e("p",{class:"text-normal text-gray-500 mt-1"}," Accepted files: PDF, DOCX, DOC up to 2MB. ",-1)])]))])],32)]),e("div",null,[t[15]||(t[15]=e("label",{for:"message",class:"font-bold block text-lg sm:text-xl text-pr-800"},"Message ",-1)),f(e("textarea",{class:"block mt-4 w-full border-2 border-pr-700 text-md p-2 rounded-sm","onUpdate:modelValue":t[6]||(t[6]=l=>s(o).message=l),name:"message",placeholder:"Your Message",rows:"6"},null,512),[[v,s(o).message]])]),e("div",le,[e("button",{disabled:s(r),class:y(["mt-4 btn py-2 w-full md:w-fit",{" cursor-not-allowed":s(r)}]),type:"submit"},[e("div",ne,[s(r)?(d(),c("div",re,[...t[16]||(t[16]=[e("svg",{"aria-hidden":"true",class:"w-5 h-5 animate-spin dark:text-pr-200 fill-pr-700",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),e("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})],-1),e("span",{class:"sr-only"},"Loading",-1)])])):C("",!0),e("span",{class:y(["w-full",s(r)?"mr-6":"mr-0"])},"Submit",2)])],10,ae)])])],32)])])])])])])):C("",!0)],64))}},de={key:0,class:"awe-container-content my-10 text-slate-600"},ce={key:1,class:"f-heading mx-auto my-10 flex flex-col text-slate-600 awe-container-content lg:w-[calc(100vw-400px)]"},me={class:"mb-20 mr-auto"},pe={class:"text-6xl text-awe-brown-darker"},ue={class:"mt-5 grid grid-cols-1 lg:grid-cols-3 gap-x-5 gap-y-8 p-3"},fe=["innerHTML"],ve={class:"mx-auto font-bold"},xe={class:"bg-awe-brown-500 p-10"},be=j({__name:"[slug]",async setup(k){let n,i;const x=F(),m=z(()=>String(x.params.slug)),{data:o,status:p}=([n,i]=A(()=>G(()=>`/api/vacancy/${m.value}`,{watch:[m]},"$Cr0KwyWKEF")),n=await n,i(),n);return E({title:()=>o.value?.title??"Careers",ogTitle:()=>o.value?.title??"Careers"}),(u,r)=>{const b=ie;return s(p)==="pending"?(d(),c("div",de," Loading… ")):s(o)?(d(),c("div",ce,[e("div",null,[e("div",me,[e("h1",pe,N(s(o).title),1)]),e("div",ue,[e("div",{class:"col-span-2 space-y-5 career-details prose",innerHTML:s(o).details},null,8,fe),e("div",ve,[e("div",xe,[r[0]||(r[0]=e("p",{class:"text-xl"},[R(" Interested to be part of "),e("span",{class:"font-bold"},"Awecode?")],-1)),Z(b,{position:s(o).title,"vacancy-id":s(o).id},null,8,["position","vacancy-id"])])])])])])):C("",!0)}}}),ke=O(be,[["__scopeId","data-v-881f3fd5"]]);export{ke 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.