1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/html2pdf-BDKc5CIp.js","assets/_commonjsHelpers-Cpj98o6Y.js"])))=>i.map(i=>d[i]); 2import{Z as X,S as L,g as b,K as V,f as ee,a3 as m,aa as Ne,L as te,R as oe,G as ne,$ as Pe,aY as Ee,a0 as Ce,ae as H,d as ze,M as Ae,o as le,h as se,a as re,b as U,y as P,s as Re,O as de,P as ue,l as Fe,F as _e,N as Te}from"./index-z4Y8wKMa.js";import{u as ae,E as q}from"./index-BkUf3uqm.js";import{u as Ke}from"./index-Cho1AovZ.js";import{u as Le}from"./zodParser-DRd23A0l.js";import{o as ye,s as p,n as M}from"./schemas-BWrwkOus.js";import{u as be}from"./index-DC2Aa-GC.js";import{n as Z}from"./coerce-89DDLGDt.js";import{i as pe}from"./invalidateProfileQueries-BCDxIOoW.js";import{u as Oe}from"./index-qTPx00i4.js";import{u as Be}from"./index-CK_i1rNg.js";import{u as Ge}from"./index-DSMsjuI5.js";import{u as Ye}from"./index-BvmkIvBw.js";import{u as Qe}from"./index-B3Zm-sLf.js";import{u as je}from"./index-oEovB7Yj.js";import"./enums-CNosjovb.js";import"./enums-qLN8jgzO.js";import"./enums-B2K47oZZ.js";var he=(e=>(e.queryKey="get:address/countries",e))(he||{});function ge(){const e=b(()=>[he.queryKey]);return{query:X({queryKey:e,queryFn:async()=>(await L.get("address/countries")).data.data})}}function We(){const e=ee({}),{t}=V(),{query:i}=ge(),{query:s}=Ke(),{query:c}=ae({modules:[q.employeeTypes,q.statuses,q.wageRates]});function x(r){return r.toLowerCase().replace(/\b\w/g,d=>d.toUpperCase())}const f=b(()=>{var r;return((r=i.data.value)==null?void 0:r.map(d=>({label:x(m("title",d).value),value:d.countryCode})).sort((d,h)=>d.label.localeCompare(h.label,"en")))??[]}),I=b(()=>{var r,d;return(d=(r=c.data.value)==null?void 0:r.employeeTypes)==null?void 0:d.map(h=>({label:m("title",h).value,value:h.id}))}),k=b(()=>{var r,d;return(d=(r=c.data.value)==null?void 0:r.statuses)==null?void 0:d.map(h=>({label:m("title",h).value,value:h.id}))}),v=b(()=>{var r,d;return(d=(r=c.data.value)==null?void 0:r.wageRates)==null?void 0:d.map(h=>({label:m("title",h).value,value:h.id}))}),y=b(()=>{var r;return(r=s.data.value)==null?void 0:r.map(d=>({label:m("title",d).value,value:d.id}))});return{formFields:b(()=>[{label:t("profileMain.information.form.name"),name:"name",type:"text",required:!0,class:"col-span-6"},{label:t("profileMain.information.form.surname"),name:"surname",type:"text",required:!0,class:"col-span-6"},{label:t("profileMain.information.form.nameNative"),name:"nameNative",type:"text",class:"col-span-6"},{label:t("profileMain.information.form.surnameNative"),name:"surnameNative",type:"text",class:"col-span-6"},{label:t("profileMain.information.form.patronymic"),name:"patronymic",type:"text",class:"col-span-6"},{label:t("profileMain.information.form.countryCode"),name:"countryCode",type:"select",class:"col-span-6",required:!0,options:f.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0,filterMatchMode:"startsWith"}},{label:t("profileMain.information.form.employeeType"),name:"employeeTypeId",type:"select",required:!0,class:"col-span-6",options:I.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}},{label:t("profileMain.information.form.status"),name:"statusId",required:!0,type:"select",class:"col-span-6",options:k.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}},{label:t("profileMain.information.form.wageRate"),name:"wageRateId",type:"select",required:!0,class:"col-span-6",options:v.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}},{label:t("profileMain.information.form.position"),name:"positionId",type:"select",class:"col-span-6",options:y.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}}]),formValues:e}}const He=ye({name:p().nullable().optional(),surname:p().nullable().optional(),nameNative:p().nullable().optional(),surnameNative:p().nullable().optional(),patronymic:p().nullable().optional(),countryCode:p().nullable().optional(),employeeTypeId:M().nullable().optional(),statusId:M().nullable().optional(),wageRateId:M().nullable().optional(),positionId:M().nullable().optional(),password:p().nullable().optional(),username:p().nullable().optional()});var $e=(e=>(e.mutationKey="patch:employee/:id",e))($e||{});async function Ue(e){return(await L.patch(`employee/${e.id}`,e.data)).data.data}var xe=(e=>(e.queryKey="get:employee/:id",e))(xe||{});function Ie(e){const t=b(()=>[xe.queryKey,e.value]);return{query:X({queryKey:t,queryFn:async()=>(await L.get(`employee/${e.value}`)).data.data,enabled:b(()=>!!e.value)})}}function Ze(){const e=ee({}),{t}=V(),{query:i}=ge(),{query:s}=ae({modules:[q.employeeTypes,q.statuses,q.genders,q.nationalities,q.marriageStatuses]}),c=b(()=>{var v;return(v=i.data.value)==null?void 0:v.map(y=>({label:m("title",y).value,value:y.id}))}),x=b(()=>{var v,y;return(y=(v=s.data.value)==null?void 0:v.genders)==null?void 0:y.map($=>({label:m("title",$).value,value:$.id}))}),f=b(()=>{var v,y;return(y=(v=s.data.value)==null?void 0:v.nationalities)==null?void 0:y.map($=>({label:m("title",$).value,value:$.id}))}),I=b(()=>{var v,y;return(y=(v=s.data.value)==null?void 0:v.marriageStatuses)==null?void 0:y.map($=>({label:m("title",$).value,value:$.id}))});return{formFields:b(()=>[{label:t("profileMain.information.mainInfo.genderId"),name:"genderId",type:"select",required:!0,class:"col-span-6",options:x.value,isOptionsMenuSameWidth:!0},{label:t("profileMain.information.mainInfo.nationalityId"),name:"nationalityId",type:"select",class:"col-span-6",options:f.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}},{label:t("profileMain.information.mainInfo.birthDate"),name:"birthDate",type:"date",required:!0,class:"col-span-6"},{label:t("profileMain.information.mainInfo.iinNo"),name:"iinNo",type:"text",class:"col-span-6"},{label:t("profileMain.information.mainInfo.passportIssueDate"),name:"passportIssueDate",type:"date",class:"col-span-6"},{label:t("profileMain.information.mainInfo.passportNo"),name:"passportNo",type:"text",required:!0,class:"col-span-6"},{label:t("profileMain.information.mainInfo.innerEmail"),name:"innerEmail",type:"text",class:"col-span-6"},{label:t("profileMain.information.mainInfo.innerPhone"),name:"innerPhone",type:"text",class:"col-span-6"},{label:t("profileMain.information.mainInfo.countryId"),name:"countryId",type:"select",required:!0,class:"col-span-6",options:c.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}},{label:t("profileMain.information.mainInfo.ibanNo"),name:"ibanNo",type:"text",class:"col-span-6"},{label:t("profileMain.information.mainInfo.ielts"),name:"ielts",type:"text",class:"col-span-6",props:{placeholder:"0.0 - 9.0"}},{label:t("profileMain.information.mainInfo.toefl"),name:"toefl",type:"text",class:"col-span-6",props:{placeholder:"0 - 120"}},{label:t("profileMain.information.mainInfo.marriageStatusId"),name:"marriageStatusId",type:"select",class:"col-span-6",options:I.value,isOptionsMenuSameWidth:!0,props:{filter:!0,showClear:!0}},{label:t("profileMain.information.mainInfo.outerEmail"),name:"outerEmail",type:"text",class:"col-span-6"},{label:t("profileMain.information.mainInfo.universityEmail"),name:"universityEmail",type:"text",class:"col-span-6"},{label:t("profileMain.information.mainInfo.passportAuthority"),name:"passportAuthority",type:"text",class:"col-span-6"}]),formValues:e}}var Me=(e=>(e.queryKey="get:employee/profile/:id/info",e))(Me||{});function we(e){const t=b(()=>[Me.queryKey,e.value]);return{query:X({queryKey:t,queryFn:async()=>(await L.get(`employee/profile/${e.value}/info`)).data.data,enabled:b(()=>!!e.value)})}}const ce=ye({id:M({error:"ID is required"}),genderId:M({error:"GenderID is required!"}),nationalityId:M().nullable().optional(),bloodTypeId:M().nullable().optional(),iinNo:p().nullable().optional(),innerEmail:p().nullable().optional(),innerPhone:p().nullable().optional(),insuranceNo:p().nullable().optional(),moodleLink:p().nullable().optional(),permissionLetter:M().nullable().optional(),attestatGpa:Z().nullable().optional(),attestatIssueDate:p().nullable().optional(),attestatNo:p().nullable().optional(),birthDate:p({error:"Birthdate is required!"}),isBirthdayAnnounce:M().nullable().optional(),cardNo:p().nullable().optional(),countryId:M({error:"CountryId is required!"}),entranceDate:p().nullable().optional(),ibanNo:p().nullable().optional(),ielts:Z().nullable().optional(),institutionId:M().nullable().optional(),toefl:Z().nullable().optional(),website:p().nullable().optional(),workbookNo:p().nullable().optional(),isAttestatDistinguished:M().nullable().optional(),isMainWorkPlace:M().nullable().optional(),marriageStatusId:M().nullable().optional(),outerEmail:p().nullable().optional(),universityEmail:p().nullable().optional(),passportAuthority:p().nullable().optional(),passportIssueDate:p().nullable().optional(),passportNo:p().nullable().optional()});var De=(e=>(e.mutationKey="put:employee/profile/info",e))(De||{});async function Je(e){return(await L.put("employee/profile/info",e)).data.data}function Xe(){const e=Ne(),{parse:t}=Le(),{formValues:i,formFields:s}=We(),{formValues:c,formFields:x}=Ze(),{currentEmployeeId:f,currentEmployeeQuery:I}=te(be()),{query:k}=Ie(f),{query:v}=we(f),y=oe({mutationKey:[$e.mutationKey],mutationFn:Ue}),$=oe({mutationKey:[De.mutationKey],mutationFn:Je});function r(l){if(l===null)return null;if(!l)return;const w=new Date(l);if(isNaN(w.getTime()))return;const F=w.getFullYear(),_=String(w.getMonth()+1).padStart(2,"0"),Q=String(w.getDate()).padStart(2,"0");return`${F}-${_}-${Q}`}async function d(){f.value&&await y.mutateAsync({data:i.value,id:f.value}),k.refetch(),I.value.refetch(),pe(e)}async function h(){if(!f.value)return;const l={...c.value,id:f.value,birthDate:r(c.value.birthDate),entranceDate:r(c.value.entranceDate),attestatIssueDate:r(c.value.attestatIssueDate),passportIssueDate:r(c.value.passportIssueDate)};await $.mutateAsync(t(ce,l)),v.refetch(),pe(e)}ne(()=>k.data.value,l=>{var w;i.value=t(He,{...l,employeeTypeId:l==null?void 0:l.employeeType.id,statusId:l==null?void 0:l.status.id,wageRateId:l==null?void 0:l.wageRate.id,positionId:(w=l==null?void 0:l.position)==null?void 0:w.id})},{immediate:!0}),ne(()=>v.data.value,l=>{var w,F,_;l&&(c.value=t(ce,{...l,attestatGpa:Number(l.attestatGpa),ielts:Number(l.ielts),toefl:Number(l.toefl),countryId:(w=l.country)==null?void 0:w.id,genderId:(F=l.gender)==null?void 0:F.id,nationalityId:(_=l.nationality)==null?void 0:_.id,bloodTypeId:z(l.bloodType),institutionId:z(l.institution),marriageStatusId:z(l.mariageStatus)}))},{immediate:!0});function z(l){return l?typeof l=="object"&&l!==null&&"id"in l?l.id:Number(l):null}const A=b(()=>y.isPending.value),Y=b(()=>$.isPending.value);return{mainValues:i,mainFields:s,editEmployeeMain:d,loadingInfo:Y,loadingMain:A,infoValues:c,infoFields:x,editEmployeeInfo:h}}function Ve(e){return`<div class="ps-root"> 3${et} 4${it(e)} 5<div class="html2pdf__page-break"></div> 6${ot(e)} 7<div class="html2pdf__page-break"></div> 8${nt(e)} 9<div class="html2pdf__page-break"></div> 10${lt(e)} 11</div>`}const B={education:5,experience:32,relatives:30,abroad:6},et=`<style> 12.ps-root { width: 100%; background: #fff; color: #000; 13 font-family: Arial, "Liberation Sans", Helvetica, sans-serif; 14 font-size: 11px; line-height: 1.2; -webkit-font-smoothing: antialiased; } 15.ps-root * { box-sizing: border-box; } 16.ps-page { width: 100%;
16 padding: 30px 34px 26px; background: #fff; } 17 18.ps-root .b { font-weight: bold; } 19.ps-root .c { text-align: center; } 20.ps-root .hint { font-size: 9px; font-style: italic; line-height: 1.25; } 21.ps-root .gap { height: 8px; } 22.ps-root .gap-l { height: 15px; } 23 24/* Header of page 1 */ 25.ps-root .hdr { width: 100%; border-collapse: collapse; } 26.ps-root .hdr td { vertical-align: top; } 27.ps-root .hdr-c { text-align: center; font-size: 12px; line-height: 1.3; padding-top: 12px; } 28.ps-root .hdr-r { width: 150px; text-align: right; } 29.ps-root .photo { width: 132px; height: 168px; border: 1px solid #000; display: inline-block; 30 text-align: center; overflow: hidden; } 31.ps-root .photo-cap { width: 100%; height: 100%; border-collapse: collapse; } 32.ps-root .photo-cap td { text-align: center; vertical-align: middle; font-size: 10px; line-height: 1.5; } 33.ps-root .photo-img { max-width: 130px; max-height: 166px; } 34 35/* Captioned fill-in lines */ 36.ps-root .fl { width: 100%; border-collapse: collapse; table-layout: auto; } 37.ps-root .fl td { vertical-align: bottom; padding: 0; } 38/* The item number sits in a fixed-width box: the value cell claims all the free 39 width, which would otherwise collapse the number column onto the caption and 40 leave the continuation lines of item 1 unindented. */ 41.ps-root .no { white-space: nowrap; } 42.ps-root .no-box { width: 20px; } 43.ps-root .no-box-w { width: 27px; } 44.ps-root .no-box-2 { width: 20px; margin-left: 12px; } 45/* Qualified with td so they outweigh the padding reset on .fl td above. */ 46.ps-root .fl td.lb { white-space: nowrap; padding-right: 8px; } 47/* Takes all the space the caption does not need, so the rule starts right 48 after the caption and runs to the right edge, as on the blank. */ 49.ps-root .fl td.val { width: 100%; border-bottom: 1px solid #000; padding: 0 4px 1px; } 50.ps-root .rule { border-bottom: 1px solid #000; height: 16px; } 51.ps-root .rule-v { border-bottom: 1px solid #000; min-height: 16px; padding: 0 4px 1px; } 52 53/* Grid tables (items 7, 12, 13, 14) */ 54.ps-root .tb { width: 100%; border-collapse: collapse; } 55.ps-root .tb th, .ps-root .tb td { border: 1px solid #000; padding: 2px 3px; } 56.ps-root .tb th { font-weight: normal; text-align: center; vertical-align: middle; 57 font-size: 9px; line-height: 1.2; } 58.ps-root .tb td { height: 23px; vertical-align: top; font-size: 10px; word-break: break-word; } 59.ps-root .tb .cc { text-align: center; vertical-align: middle; } 60 61.ps-root .note { font-size: 10.5px; line-height: 1.3; } 62.ps-root .note-in { padding-left: 24px; } 63.ps-root .foot { font-size: 9.5px; line-height: 1.4; } 64</style>`,tt={"&":"&","<":"<",">":">",'"':""","'":"'"};function o(e){return String(e??"").replace(/[&<>"']/g,t=>tt[t])}function C(e,t){return`<td class="no"><div class="${t}">${o(e)}</div></td>`}function S({no:e,kz:t,ru:i,value:s,hintKz:c,hintRu:x}){const f=c||x?`<td class="hint" style="padding-left:24%">${o(c)}<div>${o(x)}</div></td>`:"<td></td>",I=e&&e.length>2?"no-box-w":"no-box";return`<table class="fl"> 65 <tr> 66 ${C(e,I)} 67 <td class="lb">${o(t)}</td> 68 <td class="val">${o(s)}</td> 69 </tr> 70 <tr> 71 ${C("",I)} 72 <td class="lb">${o(i)}</td> 73 ${f} 74 </tr> 75</table>`}function at({no:e,kz:t,ru:i,value:s,hintKz:c,hintRu:x}){return`<table class="fl"> 76 <tr> 77 ${C(e,"no-box-w")} 78 <td class="lb" colspan="2">${o(t)}</td> 79 </tr> 80 <tr> 81 ${C("","no-box-w")} 82 <td class="lb">${o(i)}</td> 83 <td class="val">${o(s)}</td> 84 </tr> 85 <tr> 86 ${C("","no-box-w")} 87 <td></td> 88 <td class="hint" style="padding-left:18%">${o(c)}<div>${o(x)}</div></td> 89 </tr> 90</table>`}function me(e,t){return`<table class="fl"> 91 <tr> 92 ${C(e.no,"no-box")} 93 <td class="lb">${o(e.kz)}</td> 94 <td class="val" style="width:${e.width}">${o(e.value)}</td> 95 ${C(t.no,"no-box-2")} 96 <td class="lb">${o(t.kz)}</td> 97 <td class="val">${o(t.value)}</td> 98 </tr> 99 <tr> 100 ${C("","no-box")} 101 <td class="lb" colspan="2">${o(e.ru)}</td> 102 ${C("","no-box-2")} 103 <td class="lb" colspan="2">${o(t.ru)}</td> 104 </tr> 105</table>`}function g(e,t,i){return`<th style="width:${i}">${o(e)}<div>${o(t)}</div></th>`}function J(e,t){return`<div class="hint c">${o(e)}</div><div class="hint c">${o(t)}</div>`}function R(e){return'<div class="rule"></div>'.repeat(e)}function G(e,t,i){return e.length>=t?e:[...e,...Array.from({length:t-e.length},()=>i)]}function it(e){const t=e.photoBase64?`<img class="photo-img" src="data:image/jpeg;base64,${e.photoBase64}" alt="" />`:`<table class="photo-cap"><tr><td> 106 ФоÑоÑÑÑеÑке<br />аÑналÒан оÑÑн<br /><br />ÐеÑÑо длÑ<br />ÑоÑокаÑÑоÑки 107 </td></tr></table>`,i=G(e.educations,B.education,{institution:"",startYear:"",endYear:"",leftFromCourse:"",speciality:"",qualification:""}).map(s=>`<tr> 108 <td>${o(s.institution)}</td> 109 <td class="cc">${o(s.startYear)}</td> 110 <td class="cc">${o(s.endYear)}</td> 111 <td class="cc">${o(s.leftFromCourse)}</td> 112 <td>${o(s.speciality)}</td> 113 <td>${o(s.qualification)}</td> 114 </tr>`).join("");return`<div class="ps-page"> 115 <table class="hdr"> 116 <tr> 117 <td style="width:150px"></td> 118 <td class="hdr-c"> 119 <div>ÐÐ°Ð´Ñ ÐµÑÐµÐ±Ñ Ð¶Ó©Ð½ÑндегÑ</div> 120 <div class="b">ÐÐÐÐ ÐС ÐÐÐ ÐÒЫ</div> 121 <div class="b">ÐÐЧÐЫРÐÐСТÐÐ</div> 122 <div>по ÑÑеÑÑ ÐºÐ°Ð´Ñов</div> 123 </td> 124 <td class="hdr-r"><div class="photo">${t}</div></td> 125 </tr> 126 </table> 127 128 <div class="gap-l"></div> 129 130 ${S({no:"1.",kz:"ТегÑ",ru:"ФамилиÑ",value:e.surname})} 131 ${S({kz:"ÐÑÑ-жөнÑ",ru:"ÐмÑ",value:e.name})} 132 ${S({kz:"ÓкеÑÑнÑÒ£ аÑÑ",ru:"ÐÑÑеÑÑво",value:e.patronymic})} 133
134 <div class="gap"></div> 135 136 ${me({no:"2.",kz:"ÐÑнÑÑÑ",ru:"Ðол",value:e.gender,width:"22%"},{no:"3.",kz:"ТÑÒан жÑлÑ, ÐºÒ¯Ð½Ñ Ð¶Óне айÑ",ru:"Ðод, ÑиÑло и м-Ñ ÑождениÑ",value:e.birthDate})} 137 138 <div class="gap"></div> 139 140 ${S({no:"4.",kz:"ТÑÒан жеÑÑ",ru:"ÐеÑÑо ÑождениÑ",value:e.birthPlace,hintKz:"(Ñело, аÑÑл, Òала, аÑдан, облÑÑ, ÑеÑпÑблика)",hintRu:"(Ñело, деÑевнÑ, гоÑод, Ñайон, облаÑÑÑ, ÑеÑпÑблика)"})} 141 <div class="rule"></div> 142 143 <div class="gap"></div> 144 145 ${me({no:"5.",kz:"ҰлÑÑ",ru:"ÐаÑионалÑноÑÑÑ",value:e.nationality,width:"26%"},{no:"6.",kz:"ÐзамаÑÑÑÒÑ",ru:"ÐÑажданÑÑво",value:e.citizenship})} 146 147 <div class="gap"></div> 148 149 ${S({no:"7.",kz:"ÐÑлÑмÑ",ru:"ÐбÑазование",value:e.educationLevel})} 150 151 <div class="gap"></div> 152 153 <table class="tb"> 154 <tr> 155 ${g("ÐÒÑ Ð¾ÑнÑнÑÒ£ аÑаÑÑ Ð¶Óне онÑÒ£ ÑÒ±ÑÒан жеÑÑ","Ðазвание ÑÑебного Ð·Ð°Ð²ÐµÐ´ÐµÐ½Ð¸Ñ Ð¸ его меÑÑÐ¾Ð½Ð°Ñ Ð¾Ð¶Ð´ÐµÐ½Ð¸Ðµ","27%")} 156 ${g("ТүÑкен жÑлÑ","Ðод поÑÑÑплениÑ","9%")} 157 ${g("ÐÑÑÑÑген немеÑе ÑÑÒÒан жÑлÑ","Ðод оконÑÐ°Ð½Ð¸Ñ Ð¸Ð»Ð¸ ÑÑ Ð¾Ð´Ð°","9%")} 158 ${g("ÐÑÑÑÑмеÑе, Òай кÑÑÑÑан кеÑÑÑ","ÐÑли не оконÑил, Ñо Ñ ÐºÐ°ÐºÐ¾Ð³Ð¾ кÑÑÑа ÑÑел","11%")} 159 ${g("Òандай мамандÑÒ Ð±Ð¾Ð¹ÑнÑа бÑлÑм алдÑ","Ðо какой ÑпеÑиалÑноÑÑи обÑÑалÑÑ","16%")} 160 ${g("ÐÒÑ Ð¾ÑнÑн бÑÑÑÑген Ñоң кÑм болÑп ÑÑÒÑÑ, дипломнÑÒ£ не кÑÓлÑк нөмÑÑÑн көÑÑеÑÑ ÐºÐµÑек","ÐакÑÑ ÐºÐ²Ð°Ð»Ð¸ÑикаÑÐ¸Ñ Ð¿Ð¾Ð»ÑÑил в ÑезÑлÑÑаÑе оконÑÐ°Ð½Ð¸Ñ ÑÑебного заведениÑ, ÑказаÑÑ â диплома или ÑдоÑÑовеÑениÑ","28%")} 161 </tr> 162 ${i} 163 </table> 164 165 <div class="gap-l"></div> 166 167 ${S({no:"8.",kz:"Ðна ÑÑлÑ, баÑÒа Òандай ÑÑлдеÑдÑ, Òандай дÓÑежеде бÑлеÑÑз",ru:"Родной ÑзÑк, какими дÑÑгими ÑзÑками владееÑе и в какой ÑÑепени"})} 168 <div class="rule-v">${o(e.languages)}</div> 169 ${J("(оÒи, ÑөздÑкпен аÑдаÑа, ÑÒ¯ÑÑнÑÑе алаÑÑз ба, еÑкÑн ÑөйлейÑÑз бе)","(ÑиÑаеÑе и пеÑеводиÑе Ñо ÑловаÑем, ÑиÑаеÑе и можеÑе обÑÑÑнÑÑÑÑÑ, владееÑе Ñвободно)")} 170 <div class="rule"></div> 171 172 <div class="gap"></div> 173 174 ${S({no:"9.",kz:"ÒÑлÑми дÓÑежеÑÑ, аÑаÒÑ",ru:"УÑÐµÐ½Ð°Ñ ÑÑепенÑ, ÑÑеное звание",value:e.academicDegree})} 175 176 <div class="gap"></div> 177 178 ${S({no:"10.",kz:"Òандай ÒÑлÑми еңбекÑеÑÑÒ£Ñз бен жаңалÑÒÑаÑÑÒ£Ñз баÑ",ru:"Ðакие имееÑе наÑÑнÑе ÑÑÑÐ´Ñ Ð¸ изобÑеÑениÑ",value:e.scientificWorks})} 179 ${R(2)} 180 181 <div class="gap"></div> 182 183 ${at({no:"11.",kz:"СÑз бен жаÒÑн ÑÑÑÑÑаÑÑÒ£Ñз* ÑоÑÑалÒан ба",ru:"ÐмееÑе ли ÐÑ Ð¸ ÐаÑи близкие ÑодÑÑвенники* ÑÑдимоÑÑÑ",value:e.criminalRecord,hintKz:"(ÒаÑан, не Ò¯ÑÑн, кÑм ÑоÑÑадÑ, Ð¶Ð°Ð·Ð°Ð»Ð°Ñ ÑаÑаÑÑ)",hintRu:"(кем, когда и за ÑÑо оÑÑжден, меÑа наказаниÑ)"})} 184 ${R(3)} 185 186 <div class="gap-l"></div> 187 188 <div class="foot"> 189 * ÐаÒÑн ÑÑÑÑÑаÑÑ: еÑлÑ-зайÑпÑÑлаÑ, олаÑдÑÒ£ аÑа-аналаÑÑ, баÑÑÑлаÑÑ, балалаÑÑ<br /> 190 Ðлизкие ÑодÑÑвенники: ÑÑпÑÑги, Ð¸Ñ ÑодиÑели, бÑаÑÑÑ, ÑеÑÑÑÑ, деÑи 191 </div> 192</div>`}function ot(e){const t=G(e.experiences,B.experience,{startDate:"",endDate:"",position:"",location:""}).map(i=>`<tr> 193 <td class="cc">${o(i.startDate)}</td> 194 <td class="cc">${o(i.endDate)}</td> 195 <td>${o(i.position)}</td> 196 <td>${o(i.location)}</td> 197 </tr>`).join("");return`<div class="ps-page"> 198 <div class="note"> 199 12. Ðңбек Ð¶Ð¾Ð»Ñ Ð±Ð°ÑÑалÒаннан беÑÐ³Ñ Ð°ÑÒаÑаÑÑн жұмÑÑÑ (жоÒаÑÑ Ð¶Óне оÑÑа аÑнаÑÐ»Ñ Ð¾ÒÑ Ð¾ÑÑндаÑÑндаÒÑ 200 оÒÑдÑ, ÓÑкеÑи ÒÑзмеÑÑÑ Ð¶Óне ÒоÑа аÑÒаÑаÑÑн жұмÑÑÑÑ ÒоÑÒанда)<br /> 201 <span class="note-in">ÐÑполнÑÐµÐ¼Ð°Ñ ÑабоÑа Ñ Ð½Ð°Ñала ÑÑÑдовой деÑÑелÑноÑÑи (вклÑÑÐ°Ñ ÑÑÐµÐ±Ñ Ð² вÑÑÑÐ¸Ñ 202 и ÑÑÐµÐ´Ð½Ð¸Ñ ÑпеÑиалÑнÑÑ ÑÑебнÑÑ Ð·Ð°Ð²ÐµÐ´ÐµÐ½Ð¸ÑÑ , военнÑÑ ÑлÑжбÑ, ÑабоÑÑ Ð¿Ð¾ ÑовмеÑÑиÑелÑÑÑвÑ)</span> 203 </div> 204 205 <div class="gap"></div> 206 <div class="rule"></div> 207 <div class="gap"></div> 208 209 <div class="note"> 210 <span class="note-in">ÐÑÑ ÑаÑмаÒÑÑ ÑолÑÑÑаÑÑн кезде кÓÑÑпоÑÑндаÑдÑÒ£, ұйÑм-мекемелеÑдÑÒ£ 211 аÑаÑлаÑÑн кезÑнде Òалай аÑалÒанÑна ÒаÑай аÑап, ÓÑкеÑи ÒÑзмеÑÑÑ Ð»Ð°ÑазÑÐ¼Ð´Ñ ÐºÓ©ÑÑеÑе оÑÑÑÑп ÑолÑÑÑÑ 212 кеÑек</span><br /> 213 ÐÑи заполнении данного пÑнкÑа ÑÑÑеждениÑ, оÑганизаÑии и пÑедпÑиÑÑÐ¸Ñ Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ именоваÑÑ Ñак, 214 как они назÑвалиÑÑ Ð² Ñвое вÑемÑ, военнÑÑ ÑлÑÐ¶Ð±Ñ Ð·Ð°Ð¿Ð¸ÑÑваÑÑ Ñ Ñказанием должноÑÑи 215 </div> 216 217 <div class="gap-l"></div> 218 219 <table class="tb"> 220 <tr> 221 <th colspan="2" style="width:22%">ÐÐ¹Ñ Ð¶Óне жÑлÑ<div>ÐеÑÑÑ Ð¸ год</div></th> 222 ${g("ÒÑзмеÑÑ, мекеме, ұйÑм, кÓÑÑпоÑÑн, Ñондай-Ð°Ò Ð¼Ð¸Ð½Ð¸ÑÑÑлÑк (ведомÑÑво) ÒоÑа көÑÑеÑÑлÑÑÑн","ÐолжноÑÑÑ Ñ Ñказанием ÑÑÑеждениÑ, оÑганизаÑии, пÑедпÑиÑÑиÑ, а Ñакже миниÑÑеÑÑÑва (ведомÑÑва)","52%")} 223 ${g("ÐÓÑÑпоÑÑндаÑдÑÒ£, ұйÑм мекемелеÑдÑÒ£ оÑналаÑÒан жеÑÑ","ÐеÑÑÐ¾Ð½Ð°Ñ Ð¾Ð¶Ð´ÐµÐ½Ð¸Ðµ ÑÑÑеждениÑ, пÑедпÑиÑÑиÑ","26%")} 224 </tr> 225 <tr> 226 ${g("ТүÑкен","ÐÑÑÑплениÑ","11%")} 227 ${g("ШÑÒÒан","Ð£Ñ Ð¾Ð´Ð°","11%")} 228 <th></th> 229 <th></th> 230 </tr> 231 ${t} 232 </table> 233</div>`}function nt(e){const t=G(e.relatives,B.relatives,{relation:"",fullName:"",birth:"",work:"",residence:""}).map(i=>`<tr> 234 <td>${o(i.relation)}</td> 235 <td>${o(i.fullName)}</td> 236 <td>${o(i.birth)}</td> 237 <td>${o(i.work)}</td> 238 <td>${o(i.residence)}</td> 239 </tr>`).join("");return`<div class="ps-page"> 240 <div class="note"> 241 13. Ðеке ÑÑ Ð¿Ð°ÑаÒÑ ÑолÑÑÑÑлÒан ÑÓÑÑÐµÐ³Ñ Ð¾ÑбаÑÑ Ð¶Ð°ÒдайÑ. СÑздÑÒ£ жаÒÑн ÑÑÑÑÑаÑÑÒ£Ñз*<br /> 242 <span class="note-in">Семейное положение в Ð¼Ð¾Ð¼ÐµÐ½Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð»Ð¸Ñного лиÑÑка. ÐаÑи близкие 243 ÑодÑÑвенники*</span> 244 </div> 245 246 <div class="gap-l"></div> 247 248 <table class="tb"> 249 <tr> 250 ${g("ТÑÑÑÑÑÒ Ð´ÓÑежеÑÑ","СÑÐµÐ¿ÐµÐ½Ñ ÑодÑÑва","14%")} 251 ${g("ТегÑ, аÑÑ-жөнÑ, ÓкеÑÑнÑÒ£ аÑÑ","ФамилиÑ, имÑ, оÑÑеÑÑво","23%")} 252 ${g("ÐÒ¯Ð½Ñ Ð¶Óне ÑÑÒан жеÑÑ","ÐаÑа и меÑÑо ÑождениÑ","19%")} 253 ${g("ÐұмÑÑ Ð¾ÑнÑ, ÒÑзмеÑÑ","ÐеÑÑо ÑабоÑÑ, должноÑÑÑ","22%")} 254 ${g("ТұÑÒÑлÑÒÑÑ Ð¶ÐµÑÑ","ÐеÑÑо жиÑелÑÑÑва","22%")} 255 </tr> 256 ${t} 257 </table> 258 259 <div class="gap"></div> 260 261 <div class="foot"> 262 * ÐаÒÑн ÑÑÑÑÑаÑÑ: еÑлÑ-зайÑпÑÑлаÑ, олаÑдÑÒ£ аÑа-аналаÑÑ, баÑÑÑлаÑÑ, балалаÑÑ.<br /> 263 Ðлизкие ÑодÑÑвенники: ÑÑпÑÑги, Ð¸Ñ ÑодиÑели, бÑаÑÑÑ, ÑеÑÑÑÑ, деÑи.<br /> 264 <span class="note-in">Ðаңмен белгÑленген ÑÓÑÑÑппен өзгеÑÑÑе, олаÑдÑÒ£ бұÑÑнÒÑ ÑегÑ, аÑÑ-жөнÑ, 265 ÓкеÑÑнÑÒ£ аÑÑ, ÑонÑмен ÒаÑÐ°Ñ Ð±Ò±ÑÑнÒÑ ÐµÑлÑ-зайÑпÑаÑÒа деÑекÑÐµÑ ÐºÓ©ÑÑеÑÑлÑÑн.</span><br /> 266 УкажиÑе пÑежние Ñамилии, имена и оÑÑеÑÑва ÑÑÐ¸Ñ Ð»Ð¸Ñ, еÑли они изменили Ð¸Ñ Ð² ÑÑÑановленном 267 законом поÑÑдке, а Ñакже даннÑе на бÑвÑÐ¸Ñ ÑÑпÑÑгов. 268 </div> 269</div>`}function lt(e){const t=G(e.abroadTrips,B.abroad,{from:"",to:"",country:"",purpose:""}).map(i=>`<tr> 270 <td class="cc">${o(i.from)}</td> 271 <td class="cc">${o(i.to)}</td> 272 <td>${o(i.country)}</td> 273 <td>${o(i.purpose)}</td> 274 </tr>`).join("");return`<div class="ps-page"> 275 <div class="note"> 276 14. Ð¨ÐµÑ ÐµÐ»Ð´Ðµ болÑÑ (жұмÑÑ, ÒÑзмеÑÑÑк ÑапаÑ, делегаÑиÑмен бÑÑге ÑапаÑ)<br /> 277 <span class="note-in">ÐÑебÑвание за гÑаниÑей (ÑабоÑа, ÑлÑÐ¶ÐµÐ±Ð½Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð¸Ñовка, поездка Ñ 278 делегаÑией)</span> 279 </div> 280 281 <div class="gap"></div> 282 283 <table class="tb"> 284 <tr> 285 <th colspan="2" style="width:30%">ÐÐ¹Ñ Ð¶Óне жÑлÑ<div>ÐеÑÑÑ Ð¸ год</div></th> 286 ${g("Òай елде","Ркакой ÑÑÑане","28%")} 287 ${g("Ð¨ÐµÑ ÐµÐ»Ð´Ðµ Ð±Ð¾Ð»Ñ Ð¼Ð°ÒÑаÑÑ","Ð¦ÐµÐ»Ñ Ð¿ÑебÑÐ²Ð°Ð½Ð¸Ñ Ð·Ð° гÑаниÑей","42%")} 288 </tr> 289 <tr> 290 ${g("Òай ÑаÒÑÑÑан","С какого вÑемени","15%")} 291 ${g("Òай ÑаÒÑÑÒа","Ðо какое вÑемÑ","15%")} 292 <th></th> 293 <th></th> 294 </tr> 295 ${t} 296 </table> 297 298 <div class="gap-l"></div> 299 300 <div class="note"> 301 15. Òандай ÑÐ°Ð¹Ð»Ð°Ð½Ð±Ð°Ð»Ñ Ð¾ÑгандаÑÒа (ÒаÑан, Òандай жÓне Òай жеÑде) ÑайланÒан немеÑе ÑайландÑ<br /> 302 Ркакие вÑбоÑнÑе оÑÐ³Ð°Ð½Ñ Ð¸Ð·Ð±Ð¸ÑалÑÑ Ð¸Ð»Ð¸ избÑан (где, в какие и когда) 303 </div> 304 <div class="rule-v">${o(e.electedBodies)}</div> 305 ${R(3)} 306 307 <div class="gap"></div> 308 309 ${S({no:"16.",kz:"ÓÑÐºÐµÑ ÒÑзмеÑÑне ÒаÑÑÑÑ",ru:"ÐÑноÑение к воинÑкой обÑзанноÑÑи",value:e.military,hintKz:"(ÓÑкеÑи мÑндеÑÑÑ, ÓÑкеÑи мÑндеÑÑÑ ÐµÐ¼ÐµÑ,",hintRu:"(военнообÑзаннÑй, невоеннообÑзаннÑй,"})} 310 <div class="rule"></div> 311 ${J("ÓÑкеÑи еÑепÑÐµÐ³Ñ Ð¼Ð°Ð¼Ð°Ð½Ð´ÑÒÑ, ÓÑкеÑи аÑаÒÑ, ÓÑкеÑи билеÑÑнÑÒ£ нөмÑÑÑ","военно-ÑÑеÑÐ½Ð°Ñ ÑпеÑиалÑноÑÑÑ, воинÑкое звание, Ð½Ð¾Ð¼ÐµÑ Ð²Ð¾Ð¸Ð½Ñкого билеÑа")} 312 <div class="rule"></div> 313 ${J("жÓне жеке нөмÑÑÑ)","и лиÑнÑй номеÑ)")} 314 ${R(2)} 315 316 <div class="gap"></div> 317 318 ${S({no:"17.",kz:"Òандай үкÑÐ¼ÐµÑ Ð½Ð°Ð³ÑадалаÑÑÒ£Ñз баÑ",ru:"Ðакие имееÑе пÑавиÑелÑÑÑвеннÑе нагÑадÑ",value:e.awards,hintKz:"(ÒаÑан, немен, кÑм маÑапаÑÑадÑ)",hintRu:"(когда, кем и за ÑÑо нагÑажден)"})} 319 ${R(3)} 320 321 <div class="gap"></div> 322 323 ${S({no:"18.",kz:"ТөлÒұжаÑ",ru:"ÐаÑпоÑÑ",value:e.passport,hintKz:"(ÑеÑиÑÑÑ, нөмÑÑÑ, ÒаÑан, кÑм беÑген, ÑÑÑкелген ÑÒ±ÑаÒÑнÑÒ£ мекен-жайÑ)",hintRu:"(ÑеÑиÑ, номеÑ, кем и когда вÑдан, адÑÐµÑ Ð¿ÑопиÑки)"})} 324 ${R(2)} 325 326 <div class="gap"></div> 327 328 ${S({no:"19.",kz:"Ðекен-жайÑÒ£Ñз бен ÑелеÑонÑÒ£Ñз",ru:"ÐомаÑний адÑÐµÑ Ð¸ ÑелеÑон:",value:e.homeAddressAndPhone})} 329 ${R(1)} 330 331 <div class="gap-l"></div> 332 333 <table class="fl"> 334 <tr> 335 <td style="width:44%"> 336 «<span style="display:inline-block;min-width:34px;text-align:center;border-bottom:1px solid #000">${o(e.filledDay)}</span>»
337 <span style="display:inline-block;min-width:120px;text-align:center;border-bottom:1px solid #000">${o(e.filledMonth)}</span> 338 <span style="display:inline-block;min-width:52px;text-align:center;border-bottom:1px solid #000">${o(e.filledYear)}</span> ж. 339 </td> 340 <td style="width:6%"></td> 341 <td class="lb">ӨзÑнÑÒ£ ÒолÑ</td> 342 <td class="val"></td> 343 </tr> 344 <tr> 345 <td class="hint c">(ÑолÑÑÑÑлÒан мезгÑлÑ)<div>(даÑа заполнениÑ)</div></td> 346 <td></td> 347 <td class="lb">ÐиÑÐ½Ð°Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑÑ</td> 348 <td></td> 349 </tr> 350 </table> 351 352 <div class="gap-l"></div> 353 354 <div class="foot"> 355 <span class="note-in">(Ðеке ÑÑ Ð¿Ð°ÑаÒÑн ÑолÑÑÑÑÑÑ ÒÑзмеÑÐºÐµÑ ÐºÐµÐ¹ÑÐ½Ð³Ñ Ó©Ð·Ð³ÐµÑÑÑÑÐµÑ ÑÑÑÐ°Ð»Ñ (бÑлÑмÑ, 356 ÒÑлÑÐ¼Ñ Ð´ÓÑеже, алÑÑ Ñ.Ñ.Ñ.) ÒÑÐ·Ð¼ÐµÑ Ð¾ÑнÑна Ñ Ð°Ð±Ð°ÑлаÑÒа мÑндеÑÑÑ. Ðұл маÒлұмаÑÑÐ°Ñ Ð¶ÐµÐºÐµ ÑÑ ÒаÒазÑна 357 ÑÒ¯ÑÑÑÑледÑ).</span><br /> 358 (РабоÑник, заполнÑÑÑий лиÑнÑй лиÑÑок, обÑзан о вÑÐµÑ Ð¿Ð¾ÑледÑÑÑÐ¸Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸ÑÑ (обÑазовании, 359 пÑиÑвоении ÑÑеной ÑÑепени, ÑÑеного Ð·Ð²Ð°Ð½Ð¸Ñ Ð¸ Ñ.п.) ÑообÑаÑÑ Ð¿Ð¾ меÑÑÑ ÑабоÑÑ Ð´Ð»Ñ Ð²Ð½ÐµÑÐµÐ½Ð¸Ñ ÑÑÐ¸Ñ 360 изменений в его лиÑное дело). 361 </div> 362</div>`}var O=(e=>(e[e.registration=2]="registration",e[e.residence=7]="residence",e))(O||{}),Se=(e=>(e[e.phone=1]="phone",e))(Se||{});const st=0;function rt(){const{t:e}=V(),t=Pe(),{currentEmployeeId:i}=te(be()),s=ee(!1),{query:c}=Ie(i),{query:x}=we(i),f={enabled:!1},{query:I}=Oe(i,f),{query:k}=Be(i,f),{query:v}=Ge(i,f),{query:y}=Ye(i,f),{query:$}=Qe(b(()=>({employeeId:i.value})),f),{query:r}=je(b(()=>({employeeId:i.value})),f),{query:d}=ae({modules:[q.relationTypes,q.languages,q.languageLevels]},f);async function h(){if(!s.value){s.value=!0;try{await Promise.all([c.refetch(),x.refetch(),I.refetch(),k.refetch(),v.refetch(),y.refetch(),$.refetch(),r.refetch(),d.refetch()]);const a=z(),{default:n}=await Ee(async()=>{const{default:D}=await import("./html2pdf-BDKc5CIp.js").then(N=>N.h);return{default:D}},__vite__mapDeps([0,1])),u={margin:0,filename:ke(a),image:{type:"jpeg",quality:.95},html2canvas:{scale:2,backgroundColor:"#ffffff",useCORS:!0},jsPDF:{unit:"mm",format:"a4",orientation:"portrait"},pagebreak:{mode:["css","legacy"]}};await n().set(u).from(Ve(a)).save()}catch(a){t.add({severity:"error",summary:e("profileMain.information.personalSheet.error"),detail:a instanceof Error?a.message:void 0,life:Ce})}finally{s.value=!1}}}
362function z(){const a=c.data.value,n=x.data.value,u=new Date;return{photoBase64:(a==null?void 0:a.photo)??"",surname:(a==null?void 0:a.surnameNative)||(a==null?void 0:a.surname)||"",name:(a==null?void 0:a.nameNative)||(a==null?void 0:a.name)||"",patronymic:(a==null?void 0:a.patronymic)??"",gender:m("title",n==null?void 0:n.gender).value,birthDate:H(n==null?void 0:n.birthDate)??"",birthPlace:"",nationality:m("title",n==null?void 0:n.nationality).value,citizenship:m("title",n==null?void 0:n.country).value,educationLevel:A(),educations:Y(),languages:_(),academicDegree:"",scientificWorks:"",criminalRecord:"",experiences:l(),relatives:F(),abroadTrips:[],electedBodies:"",military:"",awards:"",passport:Q(),homeAddressAndPhone:qe(),filledDay:String(u.getDate()).padStart(2,"0"),filledMonth:u.toLocaleDateString("ru-RU",{month:"long"}),filledYear:String(u.getFullYear())}}function A(){const a=[...I.data.value??[]].filter(n=>n.isOngoing!==1).sort((n,u)=>{var D,N;return(((D=n.educationLevel)==null?void 0:D.weight)??-1/0)-(((N=u.educationLevel)==null?void 0:N.weight)??-1/0)||String(n.endDate??"").localeCompare(String(u.endDate??""))}).at(-1);return m("title",a==null?void 0:a.educationLevel).value}function Y(){return(I.data.value??[]).map(a=>({institution:m("title",a.university).value||m("universityName",a).value,startYear:fe(a.startDate),endYear:fe(a.endDate),leftFromCourse:"",speciality:m("specialityName",a).value,qualification:E([m("title",a.educationLevel).value,a.diplomaNo&&`â ${a.diplomaNo}`],", ")}
362))}function l(){return[...$.data.value??[]].sort((n,u)=>String(n.startDate??"").localeCompare(String(u.startDate??""))).map(n=>({startDate:ve(n.startDate),endDate:ve(n.endDate),position:E([m("title",n).value,m("title",w(n)).value],", "),location:""}))}function w(a){var u,D,N;return a.companyKz??a.companyRu??a.companyEn?{titleKz:(u=a.companyKz)==null?void 0:u.title,titleRu:(D=a.companyRu)==null?void 0:D.title,titleEn:(N=a.companyEn)==null?void 0:N.title}:null}function F(){var n;const a=((n=d.data.value)==null?void 0:n.relationTypes)??[];return(k.data.value??[]).map(u=>({relation:m("title",a.find(D=>D.id===u.relativeTypeId)).value,fullName:E([u.surnameNative||u.surname,u.nameNative||u.name,u.patronymic]," "),birth:H(u.birthDate)??"",work:E([u.workPosition,u.workPlace],", "),residence:""}))}function _(){var D,N;const a=r.data.value??[],n=((D=d.data.value)==null?void 0:D.Languages)??[],u=((N=d.data.value)==null?void 0:N.languageLevels)??[];return[...a].sort((T,K)=>Number(K.isNative??0)-Number(T.isNative??0)).map(T=>{const K=m("title",n.find(W=>W.id===T.languageCode)).value||T.languageCode;if(T.isNative)return`${K} â ${e("profileMain.information.personalSheet.nativeLanguage")}`;const ie=m("title",u.find(W=>W.id===T.levelId)).value;return ie?`${K} â ${ie}`:K}).join(", ")}function Q(){const a=x.data.value;return E([a==null?void 0:a.passportNo,a==null?void 0:a.passportAuthority,H(a==null?void 0:a.passportIssueDate),j(O.registration)],", ")}function qe(){const a=(y.data.value??[]).find(n=>n.type.id===Se.phone&&(n.ownerId===st||!n.owner));return E([j(O.residence)||j(O.registration),a==null?void 0:a.value],", ")}function j(a){const n=(v.data.value??[]).find(u=>u.addressType.id===a);return n?E([m("title",n.address).value,n.addressLine],", "):""}function ke(a){const n=E([a.surname,a.name]," ");return`${E(["ÐиÑнÑй лиÑÑок по ÑÑеÑÑ ÐºÐ°Ð´Ñов",n]," â ")}.pdf`}return{isGenerating:s,downloadPersonalSheet:h}}function E(e,t){return e.filter(i=>!!i).join(t)}function fe(e){if(!e)return"";const t=new Date(e);return isNaN(t.getTime())?"":String(t.getFullYear())}function ve(e){if(!e)return"";const t=new Date(e);return isNaN(t.getTime())?"":`${String(t.getMonth()+1).padStart(2,"0")}.${t.getFullYear()}`}const dt={class:"mb-4 flex justify-end"},ut={class:"card"},pt={key:0,class:"card"},Nt=ze({__name:"Page",setup(e){const{mainFields:t,mainValues:i,editEmployeeMain:s,loadingInfo:c,loadingMain:x,infoFields:f,infoValues:I,editEmployeeInfo:k}=Xe(),{isGenerating:v,downloadPersonalSheet:y}=rt(),{hasPermission:$}=te(Ae()),r=b(()=>$.value(Te.ManageEmployeeProfile));return(d,h)=>{const z=Re;return le(),se(_e,null,[re("div",dt,[U(z,{icon:"pi pi-file-pdf",severity:"secondary",outlined:"",label:d.$t("profileMain.information.personalSheet.download"),loading:P(v),onClick:P(y)},null,8,["label","loading","onClick"])]),re("div",ut,[U(ue,{modelValue:P(I),"onUpdate:modelValue":h[0]||(h[0]=A=>de(I)?I.value=A:null),fields:P(f),"is-disabled":!r.value,loading:P(c),onSubmit:P(k)},null,8,["modelValue","fields","is-disabled","loading","onSubmit"])]),r.value?(le(),se("div",pt,[U(ue,{modelValue:P(i),"onUpdate:modelValue":h[1]||(h[1]=A=>de(i)?i.value=A:null),fields:P(t),loading:P(x),onSubmit:P(s)},null,8,["modelValue","fields","loading","onSubmit"])])):Fe("",!0)],64)}}});export{Nt 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.