import{_ as A}from"./CgGwVO9K.js";import{C as D,o as i,c as p,r as w,a as e,U as B,n as d,t as l,b as _,w as E,v as h,m as o,F as C,_ as N,E as M,u as R,f as g,A as S,h as U,i as V,l as J,d as q,p as F,K as H,J as I,q as O}from"./C_yW9YRN.js";import"./Dr4acodI.js";const P={class:"min-h-[250px] space-y-5"},z={class:"font-semibold text-lg text-primary"},G={class:"flex flex-wrap items-center gap-3"},K={class:"badge"},j={class:"flex gap-1 px-2"},Q={class:"badge"},W={class:"flex gap-1 px-2"},X={class:"badge"},Y={class:"flex gap-1 px-2"},Z=["innerHTML"],ee={__name:"CareerCard",props:{items:{required:!0}},setup(b){const m=D();function f(){const n="0123456789ABCDEF";let r="#";for(let t=0;t<6;t++)r+=n[Math.floor(Math.random()*16)];return r}return(n,r)=>{const t=N,u=M;return i(!0),p(C,null,w(b.items,a=>(i(),p("div",{class:"careerCard p-5 flex flex-col h-full rounded-lg border border-[#f4f4f9]",key:a.id},[e("div",P,[e("div",{class:"p-4 px-5 w-fit rounded-full text-white",style:B({backgroundColor:f()})},[e("i",{class:d(a.icon)},null,2)],4),e("p",z,l(a.title),1),e("div",G,[e("div",K,[e("div",j,[_(t,{src:"location.svg",alt:"location",class:"w-[12px] h-auto"}),e("p",null,l(a.location),1)])]),e("div",Q,[e("div",W,[_(t,{src:"calender.svg",alt:"calender",class:"w-[12px] h-auto"}),e("p",null,l(a.experience_years),1)])]),e("div",X,[e("div",Y,[_(t,{src:"book.svg",alt:"book",class:"w-[12px] h-auto"}),e("p",null,l(a.experience_position),1)])])]),e("p",{class:"line-clamp-2",innerHTML:a.description},null,8,Z),_(u,{class:"text-primary flex items-center text-sm font-semibold gap-3 w-fit",to:o(m)(`/careers/${a.slug}`),"aria-label":a.slug},{default:E(()=>[h(l(n.$t("BUTTONS.viewDetails"))+" ",1),e("i",{class:d(n.$i18n.locale=="en"?"fas fa-arrow-right":"fas fa-arrow-left")},null,2)]),_:2},1032,["to","aria-label"])])]))),128)}}},te={class:"container py-11",id:"portfolios_content"},ae={class:"text-primary font-semibold"},se={class:"text-2xl leading-[2.2rem] md:text-4xl font-bold mb-3 md:leading-[3.5rem]"},oe={class:"flex items-center flex-wrap mt-3 mb-5 last:mb-0 lg:gap-10 md:gap-10 gap-x-6"},le=["onClick"],ne={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},ue={__name:"index",async setup(b){let m,f;const n=O(),r=R(),t=g("all"),u=g(null),a=g(null),x=g(null),y=S(),v=s=>{t.value=s,H("career")};U({title:r.t("NAV.careers")}),[m,f]=V(()=>I("career",()=>{$fetch("career",{method:"GET",baseURL:n.public.baseURL,params:{page:y.query.page||1,category_id:t.value=="all"?"":t.value},headers:{"Accept-Language":r.locale.value}}).then(s=>{a.value=s.data,u.value=s.data.metas}).catch(s=>console.log(s))})),await m,f();function k(){$fetch("career_categoires_without_pagination",{method:"GET",baseURL:n.public.baseURL,headers:{"Accept-Language":r.locale.value}}).then(s=>x.value=s.data)}return J(()=>k()),(s,$)=>{const L=A,T=ee;return i(),p("div",null,[o(u)?(i(),q(L,{key:0,metas:o(u)},null,8,["metas"])):F("",!0),e("div",te,[e("p",ae,l(s.$t("Subtitle.ourJobs")),1),e("h4",se,l(s.$t("TITLES.bePartOfOurMission")),1),e("div",oe,[e("button",{onClick:$[0]||($[0]=c=>v("all")),class:d({"underlined-btn":o(t)==="all",unClickedbuttonJob:o(t)!=="all"})},[h(l(s.$t("TITLES.all"))+" ",1),e("span",{class:d({"absolute left-0 bottom-0 min-w-[30px] h-1 bg-gradient-to-r rounded from-[#2A398C] via-[#35428D] to-white":o(t)==="all"})},null,2)],2),(i(!0),p(C,null,w(o(x),c=>(i(),p("button",{key:c.id,class:d(["w-fit h-[30px] font-[600]",{"underlined-btn":o(t)===`${c.id}`,unClickedbuttonJob:o(t)!==`${c.id}`}]),onClick:re=>v(`${c.id}`)},[h(l(c.title)+" ",1),e("span",{class:d({"absolute left-0 bottom-0 w-full h-1 bg-gradient-to-r rounded from-[#2A398C] via-[#35428D] to-white":o(t)===`${c.id}`})},null,2)],10,le))),128))]),e("div",ne,[_(T,{items:o(a)},null,8,["items"])])])])}}};export{ue as default};
