1import{a as $e}from"./index.03aed34c.js";import{_ as xe}from"./nuxt-link.399fefb0.js";import{d as Ce,a as Pe,b as Ne,c as Se,r as v,u as Ue,w as Q,s as Ee,n as x,f as p,g as y,h as C,i as l,k as a,j as r,p as t,K as Fe,t as m,q as u,x as Re,F as W,D as X,E as Z,J as Le,C as P,B as Ae}from"./entry.c7f7844b.js";import{u as Te}from"./composables.bdf1547a.js";import{_ as qe}from"./career-bg-2.cc6e39fc.js";const ze={class:"service-detail"},Be={class:"pb-25 content-heading"},Me={class:"bold"},Oe=["innerHTML"],je=["src"],He=r("hr",null,null,-1),De={id:"application-form",class:"application-form h-100"},Ie=r("img",{src:qe},null,-1),Je={key:0,class:"related-service"},Ge=r("br",null,null,-1),Ke=["src"],ll=Ce({__name:"[slug].bk",async setup(Ye){var M,O,j,H,D;let f,k;const ee=Te(),N=Pe();N.setHeader(!0);const{find:le,findOne:te,create:ae}=Ne(),{locale:o}=Se(),S=v(!1),i=v({first_name:"",last_name:"",phone:"",email:"",portfolio:"",cv:[]}),oe=[e=>!!e||"Name is not empty"],se=[e=>!!e||"Tên không ÄÆ°á»£c Äá» trá»ng"],ne=[e=>!!e||"Sur name is not empty"],ie=[e=>!!e||"Há» không ÄÆ°á»£c Äá» trá»ng"],ue=[e=>!!e||"Phone is not empty",e=>e.length<=10||"Phone is max 10 character",e=>A(e)==!0||"Phone is not valid"],re=[e=>!!e||"Sá» Äiá»n thoại không ÄÆ°á»£c Äá» trá»ng",e=>e.length<=10||"Sá» Äiá»n thoại tá»i Äa 10 ký tá»±",e=>A(e)==!0||"Không phải Äá»nh dạng sá» Äiá»n thoại"],de=[e=>!!e||"Email is not empty",e=>/.+@.+\..+/.test(e)||"Email is invalid"],ce=[e=>!!e||"Email không ÄÆ°á»£c Äá» trá»ng",e=>/.+@.+\..+/.test(e)||"Email không hợp lá»"],A=e=>{const s=/(84|0[3|5|7|8|9])+([0-9]{8})\b/g;return!!e.match(s)},T=v(!1),me=v(!1);v([]);const U=v(),$=Ue(),ve={locale:o.value=="en"?o.value:"vi-VN",filters:{services:{slug:$.params.slug}},populate:{feature_image:{fields:["name","formats","url"]},videos:!0},pagination:{start:0,limit:2}},E=v({data:[],meta:{}}),pe=([f,k]=Q(()=>le("case-studies",ve)),f=await f,k(),f);E.value.data=pe.data;const fe=$.params.slug,_e={locale:o.value=="en"?o.value:"vi-VN",populate:{feature_image:{fields:["name","formats","url"]},videos:!0,specific_service:{populate:{icon:!0}},localizations:!0}},c=v({}),ge=([f,k]=Q(()=>te("services",fe,_e)),f=await f,k(),f);c.value=ge.attributes;const q=v(c==null?void 0:c.value.slug),z=v((j=(O=(M=c==null?void 0:c.value)==null?void 0:M.localizations)==null?void 0:O.data[0])==null?void 0:j.attributes.slug);$.meta.nuxtI18n={en:{slug:o.value=="en"?q.value:z.value},vi:{slug:o.value=="vi"?q.value:z.value}},Ee({title:c.value.title,description:c.value.sub_title,image:x((D=(H=c.value.feature_image)==null?void 0:H.data)==null?void 0:D.attributes.url),keyword:""},"https://phibious.com"+$.href);const B=v({}),be=async e=>{const s=new FormData;s.append("files",e[0],e[0].name),B.value=s};async function he(){const{valid:e}=await U.value.validate();if(!e)return;T.value=!0;const s="https://admin.phibious.com/api",F=await $fetch(`${s}/upload`,{method:"POST",body:B.value});i.value.cv=F[0].id,await ae("application-forms",{first_name:i.value.first_name,last_name:i.value.last_name,portfolio:i.value.portfolio,phone:i.value.phone,email:i.value.email,cv:i.value.cv}),T.value=!1,me.value=!0,U.value.reset()}return(e,s)=>{var I,J;const F=$e,d=p("v-col"),_=p("v-row"),b=p("v-container"),R=p("v-btn"),h=p("v-label"),V=p("v-text-field"),ye=p("v-file-input"),Ve=p("v-form"),we=p("v-dialog"),ke=xe;return y(),C("div",null,[l(F,{image:a(x)((J=(I=c.value.feature_image)==null?void 0:I.data)==null?void 0:J.attributes.url),"date-published":c.value.publishedAt,"date-modified":c.value.updatedAt},null,8,["image","date-published","date-modified"]),r("div",ze,[r("div",Be,[l(b,null,{default:t(()=>[l(_,{justify:"space-between",align:"center","no-gutters":""},{default:t(()=>[l(d,{cols:"12",class:"title"},{default:t(()=>[r("h2",Me,m(c.value.title),1)]),_:1}),l(d,{cols:"12",class:"heading"},{default:t(()=>[r("h1",{class:u(a(o)=="vi"?"roboto":"")},m(e.$t("Your brand identity is what makes you instantly recognizable to your customers.")),3)]),_:1})]),_:1})]),_:1})]),l(b,{class:"py-30 content-detail"},{default:t(()=>[l(_,null,{default:t(()=>[l(d,{cols:"12"},{default:t(()=>[r("div",{innerHTML:a(Re)(c.value.content),class:u(a(o)=="vi"?"roboto":"")},null,10,Oe)]),_:1})]),_:1})]),_:1}),l(b,null,{default:t(()=>[r("h2",{class:u(["mb-10",a(o)=="vi"?"roboto":""])},m(e.$t("Great work doesn't result from a one night stand.")),3),(y(!0),C(W,null,X(c.value.specific_service,(n,L)=>(y(),Z(_,{key:"specific-item"+L},{default:t(()=>[l(d,{cols:"12",class:"py-0"},{default:t(()=>{var g,w;return[r("img",{src:a(x)((w=(g=n.icon)==null?void 0:g.data)==null?void 0:w.attributes.url),alt:""},null,8,je)]}),_:2},1024),l(d,{cols:"12",md:"6"},{default:t(()=>[r("h3",null,m(n.title),1)]),_:2},1024),l(d,{cols:"12",md:"6"},{default:t(()=>[r("p",null,m(n.sub_title),1)]),_:2},1024),l(d,{cols:"12"},{default:t(()=>[He]),_:1})]),_:2},1024))),128))]),_:1}),l(_,{"no-gutters":"",class:"py-20 flex-column-reverse flex-md-row become relative",justify:"space-between",align:"center"},{default:t(()=>[l(d,{cols:"12",class:"pa-4 become-it"},{default:t(()=>[l(b,null,{default:t(()=>[l(_,null,{default:t(()=>[l(d,{cols:"12"},{default:t(()=>[r("h2",{class:u(["bold",a(o)=="vi"?"roboto":""])},m(e.$t("Become a Phibian")),3),r("p",{class:u(a(o)=="vi"?"roboto":"")},m(e.$t("Thoughtful Minds, Limitless Possibilities: Join Our Limit-Challenging Team.")),3),l(we,{modelValue:S.value,"onUpdate:modelValue":s[7]||(s[7]=n=>S.value=n),fullscreen:"",scrim:!1,transition:"dialog-bottom-transition"},{activator:t(({props:n})=>[l(R,Le(n,{color:"primary","append-icon":"mdi-arrow-right",rounded:"",variant:"flat",size:"large",class:"mt-5 ani-arrow"}),{default:t(()=>[P(m(e.$t("JOIN US")),1)]),_:2},1040)]),default:t(()=>[r("div",De,[l(b,null,{default:t(()=>[r("h2",{class:u(["text-center bold",a(o)=="vi"?"roboto":""])},m(e.$t("Application Form")),3),l(R,{color:"primary",variant:"flat",rounded:"",icon:"mdi-close",class:"application-form-close custom-close",onClick:s[0]||(s[0]=n=>S.value=!1)}),l(Ve,{ref_key:"applyForm",ref:U},{default:t(()=>[l(_,null,{default:t(()=>[l(d,{cols:"12",md:"6"},{default:t(()=>[l(h,{text:e.$t("First Name"),class:u(a(o)=="vi"?"roboto":"")},null,8,["text","class"]),l(V,{modelValue:i.value.first_name,"onUpdate:modelValue":s[1]||(s[1]=n=>i.value.first_name=n),required:"",variant:"underlined",rules:a(o)=="vi"?se:
1oe,class:u(a(o)=="vi"?"roboto":""),"single-line":""},null,8,["modelValue","rules","class"])]),_:1}),l(d,{cols:"12",md:"6"},{default:t(()=>[l(h,{text:e.$t("Sur Name"),class:u(a(o)=="vi"?"roboto":"")},null,8,["text","class"]),l(V,{modelValue:i.value.last_name,"onUpdate:modelValue":s[2]||(s[2]=n=>i.value.last_name=n),required:"",variant:"underlined",rules:a(o)=="vi"?ie:ne,class:u(a(o)=="vi"?"roboto":""),"single-line":""},null,8,["modelValue","rules","class"])]),_:1}),l(d,{cols:"12",md:"6"},{default:t(()=>[l(h,{text:e.$t("Tel"),class:u(a(o)=="vi"?"roboto":"")},null,8,["text","class"]),l(V,{modelValue:i.value.phone,"onUpdate:modelValue":s[3]||(s[3]=n=>i.value.phone=n),required:"",variant:"underlined",rules:a(o)=="vi"?re:ue,class:u(a(o)=="vi"?"roboto":""),"single-line":""},null,8,["modelValue","rules","class"])]),_:1}),l(d,{cols:"12",md:"6"},{default:t(()=>[l(h,{text:"Email",class:u(a(o)=="vi"?"roboto":"")},null,8,["class"]),l(V,{modelValue:i.value.email,"onUpdate:modelValue":s[4]||(s[4]=n=>i.value.email=n),required:"",variant:"underlined",rules:a(o)=="vi"?ce:de,class:u(a(o)=="vi"?"roboto":""),"single-line":""},null,8,["modelValue","rules","class"])]),_:1}),l(d,{cols:"12",md:"6"},{default:t(()=>[l(h,{text:"Portfolio Link",class:u(a(o)=="vi"?"roboto":"")},null,8,["class"]),l(V,{modelValue:i.value.portfolio,"onUpdate:modelValue":s[5]||(s[5]=n=>i.value.portfolio=n),required:"",variant:"underlined","single-line":""},null,8,["modelValue"])]),_:1}),l(d,{cols:"12",md:"6"},{default:t(()=>[l(h,{text:"CV",class:u(a(o)=="vi"?"roboto":"")},null,8,["class"]),l(ye,{"onUpdate:modelValue":[be,s[6]||(s[6]=n=>i.value.cv=n)],modelValue:i.value.cv,required:"",variant:"underlined","single-line":"",label:e.$t("File input"),class:u([a(o)=="vi"?"roboto":"","custom-upload"]),accept:".doc,.docx,.pdf"},null,8,["modelValue","label","class"])]),_:1}),l(d,{cols:"12",class:"d-flex justify-end"},{default:t(()=>[l(R,{color:"primary",size:"x-large",variant:"flat",rounded:"","append-icon":"mdi-arrow-right",class:"btn-pbo ani-arrow",onClick:Ae(he,["prevent"])},{default:t(()=>[P(m(e.$t("Apply Now")),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},512)]),_:1})])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),l(d,{cols:"12",class:"text-right"},{default:t(()=>[Ie]),_:1})]),_:1}),E.value.data.length>0?(y(),C("div",Je,[l(b,null,{default:t(()=>[r("h2",{class:u(["bold",a(o)=="vi"?"roboto":""])},[P(m(e.$t("Some recent works")),1),Ge,P(m(e.$t("that we are proud of"))+" ... ",1)],2),l(_,null,{default:t(()=>[(y(!0),C(W,null,X(E.value.data,(n,L)=>(y(),Z(d,{cols:"12",md:"6",key:"project-"+L,onMouseenter:s[8]||(s[8]=g=>a(N).setCursor("view")),onMouseleave:s[9]||(s[9]=g=>a(N).setCursor("default"))},{default:t(()=>{var g;return[l(ke,{to:a(ee)(`/case-studies/${(g=n.attributes)==null?void 0:g.slug}`),class:"item"},{default:t(()=>{var w,G,K,Y;return[r("img",{src:a(x)((K=(G=(w=n.attributes)==null?void 0:w.feature_image.data)==null?void 0:G.attributes)==null?void 0:K.url,"722x406"),alt:""},null,8,Ke),r("h3",{class:u(["mt-7",a(o)=="vi"?"roboto":""])},m((Y=n.attributes)==null?void 0:Y.title),3)]}),_:2},1032,["to"])]}),_:2},1024))),128))]),_:1})]),_:1})])):Fe("",!0)])])}}});export{ll 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.