PageSourceSearch

https://lk.rtneo-irk.ru/assets/QVacancy-Cs6B5DWn.js

js rtneo-irk.ru collected 2026-10-02 19:26:21 UTC 15,094 bytes, 1 lines download raw bytes

1import{P as ae}from"./table-DvtyzrFo.js";import{U as z,bC as j,dL as A,dK as W,c9 as Q,dG as t,bY as m,bw as K,eM as s,ee as e,a5 as te,dq as oe,bX as d,c2 as l,c1 as k,b_ as g,a as I,bZ as f,f as se,e5 as N,aq as ne,dR as O,dC as J,ds as le,bV as ie,g as L,a7 as D,dN as U,d5 as ce,bs as H,A as re,eh as de}from"./index-VERlAsmv.js";import{a as ue,Q as me}from"./QFilesUploader-DL4aANq4.js";import{Q as Z}from"./QInputPhone-D9cpt1N1.js";import{C as _e}from"./index-hQp4Jhjg.js";import{A as G}from"./index-B_69GZV4.js";import{t as x}from"./formatting-fZIZDCcs.js";import{S as ee}from"./index-Bplg500N.js";import{T as P}from"./index-DFXGuGzl.js";import{U as ve}from"./UCard-ey2WluWo.js";import{A as pe}from"./index-zAJo3yfJ.js";import"./useDocuments-3wivYkcl.js";import"./DocumentsService-1E0iVs0C.js";import"./document-type-CFkAOp5e.js";import"./downloadFile-CaJhV41N.js";import"./QFormItemSelect-BfTS9151.js";import"./index-CIQv0-_x.js";import"./CheckOutlined-BeAgNX4t.js";import"./useMemo-B7nyxLwn.js";import"./DownOutlined-CAiOuukM.js";import"./UploadOutlined-BkvYeHly.js";import"./DownloadOutlined-BSIsYe_I.js";import"./index-D5ATlAWn.js";import"./useRefs-Cyw8vvNL.js";import"./Verification-DkjXxmEU.js";import"./validators-DyufVTv_.js";import"./regex-BZ1kVLD4.js";import"./useBreakpoint-NScD8DMJ.js";const Y={getVacancies(u){return z.get("client/vacancies",{params:u})},getVacancy(u,b){return z.get(`client/vacancies/${u}`,b)},sendVacancy(u,b){return z.post(`client/vacancies/${u}`,b)}};function X(){const u="Ошибка получения данных: ",b="Ошибка отправки резюме: ",S=A(!0),V=A(!0),q=A({data:[],totalPage:1,pageSize:6,currentPage:1,totalSum:null}),n=A(),v=W({currentPage:1,totalPage:null,totalSum:null,pageSize:6});return{isLoading:S,isVacancyLoading:V,vacanciesList:q,vacancyData:n,getVacancies:async(_,y)=>{var o,r;S.value=!0,_&&(v.currentPage=_),y&&(v.pageSize=y);try{const{data:$}=await Y.getVacancies(v);if($){const{pageSize:M,totalPage:R}=$;q.value=$,q.value.totalPage=M*R}}catch($){j.error(`${u} ${(r=(o=$.response)==null?void 0:o.data)==null?void 0:r.details}`)}finally{S.value=!1}},getVacancy:async _=>{var y;V.value=!0;try{const{data:o}=await Y.getVacancy(_);o&&(n.value=o)}catch(o){j.error(u+((y=o.response)==null?void 0:y.data.details))}finally{V.value=!1}},sendVacancy:async(_,y)=>{var r,$;let o=!1;try{await Y.sendVacancy(_,{...y}),o=!0}catch(M){j.error({content:`${b} ${($=(r=M.response)==null?void 0:r.data)==null?void 0:$.details}`,key:"SEND_VACANCY"})}return o}}}const fe="/assets/success-D9DK0EDK.png",ye="a1fe18c3-93e9-f5cc-d289-402f4f256e4c",ge="#FFFBE6",be="#E3F1FB",Se="#E6F7FF",ke="Идёт отправка анкеты",qe={class:"q-vacancy-modal-form__content"},Ce={key:0},Ae={class:"q-vacancy-modal-form__fields"},Ee={class:"q-vacancy-modal-form__fields"},$e={class:"q-vacancy-modal-form__action"},Ve={key:1,class:"q-vacancy-modal-form__success"},Ne={class:"q-vacancy-modal-form__success-content"},Fe="Пожалуйста, введите электронную почту",Me="Некорректный формат e-mail",xe=Q({__name:"QVacancyModalForm",props:{data:{type:[Number,String],default:()=>{}},isVisible:{type:Boolean,default:()=>!1}},emits:["close"],setup(u,{emit:b}){const S=u,V=b,{sendVacancy:q}=X();function n(){V("close")}const v=A(),C=A(!1),c=A(!1),E=A([]),_=A(Date.now()),y=A(!1),o=W({senderName:"",senderPhone:"",jobSeekerPhone:"",jobSeekerMail:"",coveringLetter:"",jobSeekerName:"",jobSeekerSecondName:"",isOwnSummary:!0,file:null}),r=A(!1),$={labelCol:{span:24},layout:"inline"},M={jobSeekerName:[{required:!0,message:"Пожалуйста, введите имя"}],jobSeekerSecondName:[{required:!0,message:"Пожалуйста, введите фамилию"}],jobSeekerPhone:[{required:!0,message:"Пожалуйста, введите номер телефона"}],file:[{required:!0,trigger:"change",message:"Пожалуйста, прикрепите резюме"}],jobSeekerMail:[{required:!0,message:Fe},{type:"email",message:Me}]};async function R(){var F;r.value=!0,j.loading({content:ke,key:"SEND_VACANCY"}),await((F=v.value)==null?void 0:F.validate().then(async()=>{const a={...o};await q(S.data,a).then(p=>c.value=p)}).catch(a=>{j.error({content:ne,key:"SEND_VACANCY"})})),r.value=!1}function w(F){C.value=F}function B(F){let a=[];F.forEach(p=>{a=[{filename:`${p.file.name}.${p.file.extension}`,fileId:p.file.id,documentTypeId:p.documentTypeId}],E.value=[{name:`${p.file.name}.${p.file.extension}`,fileId:p.file.id,documentTypeId:p.documentTypeId}]}),o.file=a[0],_.value=Date.now()}function T(){E.value=[],o.file=null}return(F,a)=>{const p=O("AInput"),h=O("AButton");return t(),m(K,{class:"q-vacancy-modal-form","custom-width":"640px",title:c.value?"":"Заполните анкету","destroy-on-close":u.isVisible,open:"",onCancel:n},{default:s(()=>[c.value?(t(),g("div",Ve,[a[18]||(a[18]=d("img",{class:"q-login__logo-image",src:fe,alt:"vacancy-success"},null,-1)),d("div",Ne,[a[17]||(a[17]=d("h3",null,"Спасибо за резюме!",-1)),d("p",null," Дайте нам немного времени для ознакомления. Мы оценим ваши навыки и сообщим о своём решении по указанным вами способам связи. Удачи! "+N(o.senderName),1)])])):(t(),m(e(te),oe({key:0,class:"q-vacancy-modal-form__form",model:o,rules:M,name:"q-vacancy-modal-form",ref_key:"formRef",ref:v},$),{default:s(()=>[d("div",qe,[l(e(_e),{checked:y.value,"onUpdate:checked":a[0]||(a[0]=i=>
1y.value=i),onChange:a[1]||(a[1]=i=>o.isOwnSummary=!y.value)},{default:s(()=>[...a[12]||(a[12]=[k(" Вы отправляете резюме кандидата? ",-1)])]),_:1},8,["checked"]),l(e(G),{class:"q-vacancy-modal-form__divider"}),a[16]||(a[16]=d("h3",null,"Расскажите о себе",-1)),o.isOwnSummary?f("",!0):(t(),g("div",Ce,[d("div",Ae,[l(e(I),{class:"q-vacancy-modal-form__field",label:"Имя",name:"name"},{default:s(()=>[l(p,{value:o.senderName,"onUpdate:value":a[2]||(a[2]=i=>o.senderName=i)},null,8,["value"])]),_:1}),l(Z,{name:["senderPhone"],label:"Телефон",required:"",value:o.senderPhone||"",onChange:a[3]||(a[3]=i=>o.senderPhone=i)},null,8,["value"])]),l(e(G),{class:"q-vacancy-modal-form__divider"}),a[13]||(a[13]=d("h3",null," Расскажите о кандидате ",-1))])),d("div",Ee,[l(e(I),{class:"q-vacancy-modal-form__field",label:"Имя",name:"jobSeekerName"},{default:s(()=>[l(p,{value:o.jobSeekerName,"onUpdate:value":a[4]||(a[4]=i=>o.jobSeekerName=i)},null,8,["value"])]),_:1}),l(e(I),{class:"q-vacancy-modal-form__field",label:"Фамилия",name:"jobSeekerSecondName"},{default:s(()=>[l(p,{value:o.jobSeekerSecondName,"onUpdate:value":a[5]||(a[5]=i=>o.jobSeekerSecondName=i)},null,8,["value"])]),_:1}),l(Z,{name:["jobSeekerPhone"],label:"Телефон",required:"",value:o.jobSeekerPhone||"",onChange:a[6]||(a[6]=i=>o.jobSeekerPhone=i)},null,8,["value"]),l(e(I),{class:"q-vacancy-modal-form__field",label:"Электронная почта",name:"jobSeekerMail"},{default:s(()=>[l(p,{class:"q-vacancy-modal-form__input",value:o.jobSeekerMail,"onUpdate:value":a[7]||(a[7]=i=>o.jobSeekerMail=i)},null,8,["value"])]),_:1})]),l(e(G),{class:"q-vacancy-modal-form__divider"}),(t(),m(e(I),{class:"form__field__upload",label:"Резюме кандидата","label-align":"left",name:"file",key:_.value},{default:s(()=>[C.value?(t(),m(K,{key:0,"custom-width":"840px",title:"Загрузка документа",open:C.value,"destroy-on-close":!0,onCancel:a[9]||(a[9]=i=>w(!1))},{default:s(()=>[l(ue,{"type-id":e(ye),onClose:a[8]||(a[8]=i=>w(!1)),onUploaded:B},null,8,["type-id"])]),_:1},8,["open"])):f("",!0),l(me,{data:E.value,onAttach:a[10]||(a[10]=i=>w(!0)),onRemove:T},null,8,["data"])]),_:1})),l(e(I),{class:"q-vacancy-modal-form__field q-vacancy-modal-form__field_full-width",label:"Сопроводительное письмо",name:"message"},{default:s(()=>[l(e(se),{rows:4,value:o.coveringLetter,"onUpdate:value":a[11]||(a[11]=i=>o.coveringLetter=i)},null,8,["value"])]),_:1}),d("div",$e,[c.value?f("",!0):(t(),m(h,{type:"primary",loading:r.value,key:"submit",onClick:R},{default:s(()=>[...a[14]||(a[14]=[k(" Отправить ",-1)])]),_:1},8,["loading"])),c.value?f("",!0):(t(),m(h,{disabled:r.value,key:"back",onClick:n},{default:s(()=>[...a[15]||(a[15]=[k(" Отменить ",-1)])]),_:1},8,["disabled"]))])])]),_:1},16,["model"]))]),_:1},8,["title","destroy-on-close"])}}}),Le={key:1,class:"q-vacancy-modal__wrapper"},Pe={key:0,class:"q-vacancy-modal-gift"},Re={key:2,class:"q-vacancy-modal-body"},we={class:"q-vacancy-modal-body-list"},Ie={key:3,class:"q-vacancy-modal-content"},he=["innerHTML"],je={key:4,class:"q-vacancy-modal-body"},De={class:"q-vacancy-modal-body-list"},Be={class:"q-vacancy-modal__action"},Te=Q({__name:"QVacancyModal",props:{data:{type:[Number,String],default:()=>{}},isVisible:{type:Boolean,default:()=>!1}},emits:["close"],setup(u,{emit:b}){const S=u,V=b,{getVacancy:q,vacancyData:n,isVacancyLoading:v}=X(),C=A(!1),c=ie(()=>n.value?`${n.value.jobTitle} ${n.value.minimumSalary?`${x(n.value.minimumSalary)} - `:""}${n.value.maximumSalary?x(n.value.maximumSalary):""} ₽`:"");function E(){V("close")}function _(){C.value=!0}function y(){C.value=!1}return J(()=>{q(S.data)}),(o,r)=>{const $=O("AButton");return t(),m(K,{class:le(["q-vacancy-modal",{mobile:e(ce)}]),"custom-width":"640px","destroy-on-close":!0,open:u.isVisible,title:c.value,onCancel:E},{default:s(()=>{var M,R,w,B,T,F,a,p,h;return[e(v)?(t(),m(e(ee),{key:0,class:"q-loader"})):(t(),g("div",Le,[(M=e(n))!=null&&M.premium?(t(),g("p",Pe,[r[0]||(r[0]=k(" Вознаграждение за друга ",-1)),e(n).experience?(t(),m(e(L),{key:0,placement:"top",title:`${e(x)(e(n).premium)} ₽`},{default:s(()=>[l(e(P),{color:"#FFFBE6",class:"tag tag_square"},{default:s(()=>[k(N(e(x)(e(n).premium))+" ₽ ",1)]),_:1})]),_:1},8,["title"])):f("",!0)])):f("",!0),(R=e(n))!=null&&R.experience?(t(),m(e(L),{key:1,placement:"top",title:`Опыт работы ${e(n).experience}`},{default:s(()=>[l(e(P),{class:"q-vacancy-modal-experience tag tag_square",color:"#E3F1FB"},{default:s(()=>[k(" Опыт работы "+N(e(n).experience),1)]),_:1})]),_:1},8,["title"])):f("",!0),(B=(w=e(n))==null?void 0:w.schedules)!=null&&B.length?(t(),g("div",Re,[r[1]||(r[1]=d("p",{class:"q-vacancy-modal-body__title"}," График работы ",-1)),d("div",we,[(t(!0),g(D,null,U(e(n).schedules,i=>(t(),m(e(L),{placement:"top",title:i.name,key:i.id},{default:s(()=>[l(e(P),{class:"tag tag_square",color:"#E6F7FF"},{default:s(()=>[k(N(i.name),1)]),_:2},1024)]),_:2},1032,["title"]))),128))])])):f("",!0),(T=e(n))!=null&&T.description?(t(),g("div",Ie,[r[2]||(r[2]=d("h3",{class:"q-vacancy-modal-content__title"}," Описание ",-1)),d("div",{class:"q-vacancy-modal-content__text",innerHTML:(F=e(n))==null?void 0:F.description},null,8,he)])):f("",!0),(p=(a=e(n))==null?void 0:a.skills)!=null&&p.length?(t(),g("div",je,[r[3]||(r[3]=d("p",{class:"q-vacancy-modal-body__title"}," Ключевые навыки ",-1)),d("div",De,[(t(!0),g(D,null,U(e(n).skills,i=>(t(),m(e(L),{placement:"top",title:i.name,key:i.id},{default:s(()=>[l(e(P),{class:"tag tag_square",color:"#E6F7FF"},{default:s(()=>[k(N(i.name),1)]),_:2},1024)]),_:2},1032,["title"]))),128))])])):f("",!0),d("div",Be,[l($,{type:"primary",key:"submit",onClick:_},{default:s(()=>[...r[4]||(r[4]=[k(" Отправить резюме ",-1)])]),_:1}),l($,{key:"back",onClick:E},{default:s(()=>[...r[5]||(r[5]=[k(" Отменить ",-1)])]),_:1})]),C.value?(t(),m(xe,{key:5,data:(h=e(n))==null?void 0:h.id,"is-visible":C.value,onClose:y},null,8,["data","is-visible"])):f("",!0)]))]}),_:1},8,["class","open","title"])}}}
1),Oe=H(Te,[["__scopeId","data-v-739e2afc"]]),Ue={key:1,class:"q-vacancy-list"},Qe={class:"q-vacancy-list__item-wrapper"},ze={class:"q-vacancy-list__item-content"},Ge={class:"q-vacancy-list__item-title"},Ye={class:"q-vacancy-list__item-price"},Ke={key:0,class:"q-vacancy-list__item-gift"},He={key:2,class:"q-vacancy-list__item-body"},Xe={class:"q-vacancy-list__item-body-list"},Ze={class:"q-vacancy-list__item-button"},We=Q({__name:"QVacancyList",props:{vacanciesList:{type:Array,required:!0},isLoading:{type:Boolean,default:()=>!1}},setup(u){const b=A(),S=A(!1);function V(n){b.value=n,S.value=!0}function q(){b.value=void 0,S.value=!1}return(n,v)=>{const C=O("AButton");return t(),g(D,null,[u.isLoading?(t(),m(e(ee),{key:0,class:"q-loader"})):(t(),g("div",Ue,[(t(!0),g(D,null,U(u.vacanciesList,c=>(t(),m(ve,{class:"q-vacancy-list__item",key:c.id},{default:s(()=>{var E;return[d("div",Qe,[d("div",ze,[d("h3",Ge,N(c.jobTitle),1),d("p",Ye,N(e(x)(c.minimumSalary))+" - "+N(e(x)(c.maximumSalary))+" ₽ ",1),c.premium?(t(),g("p",Ke,[v[0]||(v[0]=k(" Вознаграждение за друга ",-1)),c.experience?(t(),m(e(L),{key:0,placement:"top",title:`${e(x)(c.premium)} ₽`},{default:s(()=>[l(e(P),{color:e(ge),class:"tag tag_square"},{default:s(()=>[k(N(e(x)(c.premium))+" ₽ ",1)]),_:2},1032,["color"])]),_:2},1032,["title"])):f("",!0)])):f("",!0),c.experience?(t(),m(e(L),{key:1,placement:"top",title:`Опыт работы ${c.experience}`},{default:s(()=>[l(e(P),{class:"q-vacancy-list__item-experience tag tag_square",color:e(be)},{default:s(()=>[k(" Опыт работы "+N(c.experience),1)]),_:2},1032,["color"])]),_:2},1032,["title"])):f("",!0),(E=c.schedules)!=null&&E.length?(t(),g("div",He,[v[1]||(v[1]=d("p",{class:"q-vacancy-list__item-body-title"}," График работы ",-1)),d("div",Xe,[(t(!0),g(D,null,U(c.schedules,_=>(t(),m(e(L),{placement:"top",title:_.name,key:_.id},{default:s(()=>[l(e(P),{class:"tag tag_square",color:e(Se)},{default:s(()=>[k(N(_.name),1)]),_:2},1032,["color"])]),_:2},1032,["title"]))),128))])])):f("",!0)]),d("div",Ze,[l(C,{size:"large",type:"primary",ghost:"",onClick:_=>V(c.id)},{default:s(()=>[...v[2]||(v[2]=[k(" Подробнее ",-1)])]),_:1},8,["onClick"])])])]}),_:2},1024))),128)),S.value?(t(),m(Oe,{key:0,data:b.value,"is-visible":S.value,onClose:q},null,8,["data","is-visible"])):f("",!0)])),!u.vacanciesList.length&&!u.isLoading?(t(),m(e(re),{key:2})):f("",!0)],64)}}}),Je=H(We,[["__scopeId","data-v-cf0a1ec2"]]),ea={class:"q-vacancy container"},aa=Q({__name:"QVacancy",setup(u){const b=de(),{getVacancies:S,isLoading:V,vacanciesList:q}=X();return J(()=>S()),(n,v)=>{var C,c,E,_,y;return t(),g("div",ea,[d("h3",null,'Мы ждем тебя в "'+N((c=(C=e(b).config)==null?void 0:C.company)==null?void 0:c.name)+'"',1),l(Je,{"vacancies-list":e(q).data??[],"is-loading":e(V)},null,8,["vacancies-list","is-loading"]),l(e(pe),{class:"q-vacancy__pagination",disabled:e(V),"show-less-items":"",total:(E=e(q))==null?void 0:E.totalRecords,"page-size-options":e(ae),"show-size-changer":!0,current:((_=e(q))==null?void 0:_.currentPage)??1,"page-size":(y=e(q))==null?void 0:y.pageSize,onChange:v[0]||(v[0]=(o,r)=>e(S)(o,r))},null,8,["disabled","total","page-size-options","current","page-size"])])}}}),Ma=H(aa,[["__scopeId","data-v-7cea3c51"]]);export{Ma 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.