1import{aX as B,ad as L,aD as q,b9 as C,bb as U,bl as N,o as T,an as $,ao as o,aq as l,ar as v,ap as n,u as s,bH as z,aA as w,i as m,b as A,bB as E,bE as I,aL as R,am as D,bI as M}from"./DcvMS2TM.js";import{_ as O}from"./Bch4itxQ.js";import{u as P,t as H}from"./DgBG1pZV.js";import{u as W}from"./C1p24-Mb.js";import"./Nu8XifFx.js";import"./E7RofDXj.js";import"./D4RfNjmL.js";const X=B("/bazar-logo-white.svg"),j={class:"flex max-md:flex-col min-h-screen"},G={class:"bg-primary p-8 md:p-16 w-full md:max-w-145 flex flex-col max-md:gap-5"},J={class:"flex flex-col gap-3 md:gap-6"},K={class:"flex flex-col gap-3 md:gap-6 md:my-auto"},Q={class:"text-4xl md:text-5xl font-semibold text-white"},Y={class:"text-lg text-white max-w-95"},Z={class:"flex bg-card p-8 md:p-16 w-full"},ee={class:"flex flex-col gap-2"},se={class:"text-primary text-sm font-medium flex items-center gap-2"},oe={class:"text-4xl font-semibold max-md:hidden"},te={class:"flex flex-col gap-6 mt-4 md:mt-6"},ae={class:"flex flex-col gap-3 mt-10"},le={class:"text-muted-foreground text-xs text-center"},pe=L({__name:"find-staff",setup(ne){const{t}=q(),{trackEvent:r}=C(),{findWorkersFormSchema:y}=W(),i=A(!1),{handleSubmit:V,defineField:d,errors:c}=P({validationSchema:H(y)}),[u]=d("message"),[f]=d("name"),[p]=d("phone_country_code"),[_]=d("phone"),b=V(async h=>{i.value=!0,r("find_staff_form_submit");const e=$instanceFetch("/v1/employer-form",{method:"POST",body:h,onResponse:async({response:x})=>{x.ok&&(r("find_staff_form_submit_success"),await U("/workers")),i.value=!1}});N.promise(e,{position:"top-center",loading:t("ÐÑпÑавлÑем заÑвкÑ..."),success:t("ÐаÑвка оÑпÑавлена, Ð¼Ñ ÑвÑжемÑÑ Ñ Ðами в ближайÑее вÑемÑ"),error:t("Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ Ð·Ð°ÑвкÑ, попÑобÑйÑе еÑÑ Ñаз")})});return T(()=>{r("find_staff_page_view")}),(h,e)=>{const x=E,S=M,g=O,k=I,F=R;return D(),$("div",j,[o("div",G,[o("div",J,[l(x,{class:"w-fit",to:"/"},{default:v(()=>[...e[5]||(e[5]=[o("img",{alt:"logo-white",class:"size-fit max-md:w-26",src:X},null,-1)])]),_:1}),e[6]||(e[6]=o("div",{class:"border-2 rounded-sm border-white w-15 md:w-25.5"},null,-1))]),o("div",K,[o("h1",Q,n(s(t)("Ðого Ð²Ñ Ð¸ÑеÑе?")),1),o("p",Y,n(s(t)("ÐÑÑавÑÑе конÑакÑÑ â поможем найÑи квалиÑиÑиÑованного ÑоÑÑÑдника в кÑаÑÑайÑие ÑÑоки.")),1)])]),o("div",Z,[o("form",{class:"m-auto max-w-xl w-full flex flex-col max-md:p-4 max-md:rounded-xl max-md:border max-md:border-border max-md:shadow-md",onSubmit:e[4]||(e[4]=z((...a)=>s(b)&&s(b)(...a),["prevent"]))},[o("div",ee,[o("h2",se,[l(S,{class:"size-5 md:hidden"}),w(" "+n(s(t)("ÐÐÐСРСÐТРУÐÐÐÐÐÐ")),1)]),o("span",oe,n(s(t)("ÐаÑвка на Ð¿Ð¾Ð´Ð±Ð¾Ñ Ð¿ÐµÑÑонала")),1)]),o("div",te,[l(g,{id:"message",modelValue:s(u),"onUpdate:modelValue":e[0]||(e[0]=a=>m(u)?u.value=a:null),errors:s(c).message,label:"ÐолжноÑÑÑ",placeholder:"ÐапÑÐ¸Ð¼ÐµÑ Ð²Ð¾Ð´Ð¸ÑелÑ",required:""},null,8,["modelValue","errors"]),l(g,{id:"name",modelValue:s(f),"onUpdate:modelValue":e[1]||(e[1]=a=>m(f)?f.value=a:null),errors:s(c).name,label:"ÐонÑакÑное имÑ",placeholder:"ÐведиÑе имÑ",required:""},null,8,["modelValue","errors"]),l(k,{id:"phone",modelValue:s(_),"onUpdate:modelValue":e[2]||(e[2]=a=>m(_)?_.value=a:null),"country-code":s(p),"onUpdate:countryCode":e[3]||(e[3]=a=>m(p)?p.value=a:null),errors:s(c).phone,label:"ÐонÑакÑнÑй номеÑ",required:"","with-country-select":""},null,8,["modelValue","country-code","errors"])]),o("div",ae,[l(F,{disabled:s(i),"aria-label":"submit",type:"submit"},{default:v(()=>[w(n(s(t)("ÐаÑаÑÑ Ð¿Ð¾Ð¸Ñк")),1)]),_:1},8,["disabled"]),o("span",le,n(s(t)("Ðаполнение заÑвки займÑÑ Ð¼ÐµÐ½ÑÑе минÑÑÑ")),1)])],32)])])}}});export{pe 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.