1import{b as N,a1 as T}from"./CczaoG5l.js";import{i as M,c as i,l as m}from"./2gc2_-wT.js";const D=c=>{const{t:l}=N(),y=M("showSalary",!1),n=T(),g={custSalaryBruttoNetto:"payType",custSalaryCurrency:"currency",custSalaryEducation1:"year1",custSalaryEducation2:"year2",custSalaryEducation3:"year3",custSalaryEducation4:"year4",custSalaryFactorMonths:"factorMonths",custSalaryFixedAmount:"fixedAmount",custSalaryOf:"salaryOf",custSalaryType:"type",custSalaryUpTo:"salaryUpTo"},f=t=>Number(t.replace(",",".")),p=t=>{const[,a]=t.replace(",",".").split(".");return a?a.length:0},d=t=>{const a=f(t);if(Number.isNaN(a))return t;const o=p(t);return new Intl.NumberFormat(n,{minimumFractionDigits:o>0?o:0,maximumFractionDigits:o>0?o:0}).format(a)},s=t=>{const a=f(t);if(Number.isNaN(a))return t;const o=p(t),r=o>0;return Math.abs(a)<100?new Intl.NumberFormat(n,{minimumFractionDigits:2,maximumFractionDigits:2}).format(a):r?new Intl.NumberFormat(n,{minimumFractionDigits:o,maximumFractionDigits:o}).format(a):new Intl.NumberFormat(n,{minimumFractionDigits:0,maximumFractionDigits:0}).format(a)},F={factorMonths:d,fixedAmount:s,salaryOf:s,salaryUpTo:s,year1:s,year2:s,year3:s,year4:s},u=i(()=>{const t=m(c),a={};return!t||!y||Object.entries(g).forEach(([o,r])=>{const e=t[o];if(e!=null&&e!==""){const h=F[r];typeof e=="string"&&h?a[r]=h(e):a[r]=e}}),a}),b=i(()=>["year1","year2","year3","year4"].filter(a=>!!u.value[a]).map((a,o)=>{const r=`job.salaryEducationYear${o+1}`;return l(r,u.value)})),S=i(()=>{const t=m(c),a=u.value,o=[];if(!t||!y)return o;let r=null;return a.fixedAmount&&a.factorMonths?r="job.salaryFixedYear":a.salaryOf&&a.salaryUpTo&&a.factorMonths?r="job.salaryRangeYear":a.salaryOf&&!a.salaryUpTo&&a.factorMonths?r="job.salaryFromYear":!a.salaryOf&&a.salaryUpTo&&a.factorMonths?r="job.salaryUpToYear":a.salaryOf&&a.salaryUpTo?r="job.salaryRangeMonthOrHour":a.salaryOf&&!a.salaryUpTo?r="job.salaryFromMonthOrHour":!a.salaryOf&&a.salaryUpTo?r="job.salaryUpToMonthOrHour":a.fixedAmount&&!a.factorMonths&&(r="job.salaryFixedMonthOrHour"),r&&o.push(l(r,a)),b.value.length>0&&(o.push(...b.value),o.push(l("job.salaryEducationSuffix"))),o});return{salaryIconName:i(()=>m(c)?.custSalaryCurrency?.includes("(EUR)")?"euro":"cash"),salaryTranslations:S}};export{D as u};
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.