@cavuno/board 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +421 -0
  2. package/README.md +6 -2
  3. package/dist/{_spec-nkWAraS0.d.mts → _spec-GVe6WAfT.d.mts} +68 -59
  4. package/dist/{_spec-nkWAraS0.d.ts → _spec-GVe6WAfT.d.ts} +68 -59
  5. package/dist/bin.mjs +7 -2
  6. package/dist/blog-BsmKizpd.d.ts +29 -0
  7. package/dist/blog-Cf64mI8A.d.mts +29 -0
  8. package/dist/{salaries-BahBpxWT.d.ts → board-DUhgiacm.d.ts} +17 -29
  9. package/dist/{salaries-ChSqDBAM.d.mts → board-GGWJ4coe.d.mts} +17 -29
  10. package/dist/breadcrumbs-DFKr0HzU.d.mts +372 -0
  11. package/dist/breadcrumbs-DiccJhk4.d.ts +372 -0
  12. package/dist/chunk-2ETP5UH4.mjs +271 -0
  13. package/dist/chunk-BGKNXG4H.mjs +146 -0
  14. package/dist/chunk-DLSO6XXY.mjs +33 -0
  15. package/dist/chunk-T2KC6XGV.mjs +1060 -0
  16. package/dist/chunk-YEAQ3JEI.mjs +853 -0
  17. package/dist/doctor.js +1 -1
  18. package/dist/doctor.mjs +1 -1
  19. package/dist/filters.d.mts +25 -20
  20. package/dist/filters.d.ts +25 -20
  21. package/dist/filters.js +3 -692
  22. package/dist/filters.mjs +3 -690
  23. package/dist/format.d.mts +57 -230
  24. package/dist/format.d.ts +57 -230
  25. package/dist/format.js +355 -927
  26. package/dist/format.mjs +213 -931
  27. package/dist/go.js +11 -1
  28. package/dist/go.mjs +4 -29
  29. package/dist/index.d.mts +23 -75
  30. package/dist/index.d.ts +23 -75
  31. package/dist/index.js +11 -36
  32. package/dist/index.mjs +32 -313
  33. package/dist/{jobs-lVvKCBCU.d.mts → jobs-BuLpV8iy.d.mts} +4 -4
  34. package/dist/{jobs-BiEvL9d7.d.ts → jobs-QrbXOYB9.d.ts} +4 -4
  35. package/dist/paths.d.mts +89 -1
  36. package/dist/paths.d.ts +89 -1
  37. package/dist/paths.js +62 -14
  38. package/dist/paths.mjs +29 -78
  39. package/dist/route-contract.js +23 -13
  40. package/dist/route-contract.mjs +30 -1079
  41. package/dist/{search-CCyFWPi3.d.mts → search-Cr4noJJZ.d.mts} +14 -3
  42. package/dist/{search-CyRvVMUp.d.ts → search-DdsniXQv.d.ts} +14 -3
  43. package/dist/seo.d.mts +33 -189
  44. package/dist/seo.d.ts +33 -189
  45. package/dist/seo.js +197 -718
  46. package/dist/seo.mjs +44 -1417
  47. package/dist/server.d.mts +5 -5
  48. package/dist/server.d.ts +5 -5
  49. package/dist/server.mjs +5 -31
  50. package/dist/sitemap.d.mts +5 -5
  51. package/dist/sitemap.d.ts +5 -5
  52. package/dist/sitemap.js +25 -14
  53. package/dist/sitemap.mjs +22 -97
  54. package/dist/skills.js +1 -1
  55. package/dist/skills.mjs +1 -1
  56. package/dist/suggest.d.mts +2 -2
  57. package/dist/suggest.d.ts +2 -2
  58. package/dist/suggest.js +17 -3
  59. package/dist/suggest.mjs +17 -3
  60. package/dist/well-known.js +23 -13
  61. package/dist/well-known.mjs +4 -421
  62. package/package.json +5 -4
  63. package/skills/cavuno-board-applications/SKILL.md +4 -1
  64. package/skills/cavuno-board-filters/SKILL.md +11 -12
  65. package/skills/cavuno-board-format/SKILL.md +68 -56
  66. package/skills/cavuno-board-i18n/SKILL.md +102 -21
  67. package/skills/cavuno-board-search-suggestions/SKILL.md +8 -3
  68. package/skills/cavuno-board-seo/BLOG.md +4 -1
  69. package/skills/cavuno-board-seo/JOB_AND_BREADCRUMBS.md +5 -2
  70. package/skills/cavuno-board-seo/LISTING.md +35 -12
  71. package/skills/cavuno-board-seo/SALARY.md +83 -18
  72. package/skills/cavuno-board-seo/SKILL.md +3 -2
  73. package/skills/manifest.json +3 -3
  74. package/dist/board-NE98PlwN.d.ts +0 -16
  75. package/dist/board-muu8BI8P.d.mts +0 -16
  76. package/dist/ui-copy-CCkz6CVF.d.mts +0 -230
  77. package/dist/ui-copy-CCkz6CVF.d.ts +0 -230
package/dist/format.mjs CHANGED
@@ -1,52 +1,77 @@
1
+ import {
2
+ buildJobBreadcrumbs,
3
+ formatSalaryStat,
4
+ formatSalaryStatRange,
5
+ normalizeLocale,
6
+ normalizeWebsiteUrl
7
+ } from "./chunk-YEAQ3JEI.mjs";
8
+ import "./chunk-BGKNXG4H.mjs";
9
+
1
10
  // src/format/dates.ts
2
- var rtfNarrowCache = /* @__PURE__ */ new Map();
11
+ var rtfShortCache = /* @__PURE__ */ new Map();
12
+ var rtfNowCache = /* @__PURE__ */ new Map();
3
13
  var dtfCache = /* @__PURE__ */ new Map();
4
- function getNarrowRelativeTimeFormat(language) {
5
- const key = language ?? "en";
6
- let rtf = rtfNarrowCache.get(key);
14
+ var monthYearCache = /* @__PURE__ */ new Map();
15
+ function getShortRelativeTimeFormat(language) {
16
+ let rtf = rtfShortCache.get(language);
7
17
  if (!rtf) {
8
- rtf = new Intl.RelativeTimeFormat(key, {
18
+ rtf = new Intl.RelativeTimeFormat(language, {
9
19
  numeric: "always",
10
- style: "narrow"
20
+ style: "short"
11
21
  });
12
- rtfNarrowCache.set(key, rtf);
22
+ rtfShortCache.set(language, rtf);
23
+ }
24
+ return rtf;
25
+ }
26
+ function getNowRelativeTimeFormat(language) {
27
+ let rtf = rtfNowCache.get(language);
28
+ if (!rtf) {
29
+ rtf = new Intl.RelativeTimeFormat(language, {
30
+ numeric: "auto",
31
+ style: "short"
32
+ });
33
+ rtfNowCache.set(language, rtf);
13
34
  }
14
35
  return rtf;
15
36
  }
16
37
  function getDateTimeFormat(language) {
17
- const key = language ?? "en";
18
- let dtf = dtfCache.get(key);
38
+ let dtf = dtfCache.get(language);
19
39
  if (!dtf) {
20
- dtf = new Intl.DateTimeFormat(key, {
40
+ dtf = new Intl.DateTimeFormat(language, {
21
41
  dateStyle: "medium",
22
42
  timeZone: "UTC"
23
43
  });
24
- dtfCache.set(key, dtf);
44
+ dtfCache.set(language, dtf);
25
45
  }
26
46
  return dtf;
27
47
  }
28
- function formatNarrow(value, unit, language) {
48
+ function getMonthYearFormat(language) {
49
+ let dtf = monthYearCache.get(language);
50
+ if (!dtf) {
51
+ dtf = new Intl.DateTimeFormat(language, {
52
+ month: "short",
53
+ year: "numeric",
54
+ timeZone: "UTC"
55
+ });
56
+ monthYearCache.set(language, dtf);
57
+ }
58
+ return dtf;
59
+ }
60
+ function formatShort(value, unit, language) {
29
61
  try {
30
- return getNarrowRelativeTimeFormat(language).format(value, unit);
62
+ return getShortRelativeTimeFormat(language).format(value, unit);
31
63
  } catch {
32
- const shortMap = {
33
- year: "y",
34
- month: "mo",
35
- week: "w",
36
- day: "d",
37
- hour: "h",
38
- minute: "m",
39
- second: "s"
40
- };
41
- return `${Math.abs(value)}${shortMap[unit] ?? unit}`;
64
+ return null;
42
65
  }
43
66
  }
44
67
  function formatDate(locale, value) {
45
68
  if (!value) return null;
46
69
  const parsed = new Date(value);
47
70
  if (Number.isNaN(parsed.getTime())) return null;
71
+ const normalized = normalizeLocale(locale);
72
+ if (!normalized) return null;
48
73
  try {
49
- return getDateTimeFormat(locale).format(parsed);
74
+ return getDateTimeFormat(normalized).format(parsed);
50
75
  } catch {
51
76
  return parsed.toISOString().split("T")[0];
52
77
  }
@@ -55,6 +80,8 @@ function formatPublishedRelativeDate(locale, value, referenceNowMs = Date.now())
55
80
  if (!value) return null;
56
81
  const parsed = new Date(value);
57
82
  if (Number.isNaN(parsed.getTime())) return null;
83
+ const normalized = normalizeLocale(locale);
84
+ if (!normalized) return null;
58
85
  const diff = referenceNowMs - parsed.getTime();
59
86
  const absDiff = Math.abs(diff);
60
87
  const minute = 60 * 1e3;
@@ -64,7 +91,11 @@ function formatPublishedRelativeDate(locale, value, referenceNowMs = Date.now())
64
91
  const month = 30 * day;
65
92
  const year = 365 * day;
66
93
  if (absDiff < minute) {
67
- return "now";
94
+ try {
95
+ return getNowRelativeTimeFormat(normalized).format(0, "second");
96
+ } catch {
97
+ return formatShort(0, "second", normalized);
98
+ }
68
99
  }
69
100
  const units = [
70
101
  { unit: "year", ms: year },
@@ -78,432 +109,152 @@ function formatPublishedRelativeDate(locale, value, referenceNowMs = Date.now())
78
109
  if (absDiff >= candidate.ms) {
79
110
  const valueInUnit = Math.round(absDiff / candidate.ms);
80
111
  const direction2 = diff >= 0 ? -valueInUnit : valueInUnit;
81
- return formatNarrow(direction2, candidate.unit, locale);
112
+ return formatShort(direction2, candidate.unit, normalized);
82
113
  }
83
114
  }
84
115
  const seconds = Math.round(absDiff / 1e3);
85
116
  const direction = diff >= 0 ? -seconds : seconds;
86
- return formatNarrow(direction, "second", locale);
117
+ return formatShort(direction, "second", normalized);
87
118
  }
88
119
  function formatMonthYear(locale, dateStr) {
89
- const date = /* @__PURE__ */ new Date(dateStr + "T00:00:00");
90
- return date.toLocaleDateString(locale, {
91
- month: "short",
92
- year: "numeric"
93
- });
94
- }
95
-
96
- // src/format/salary-lexicon.ts
97
- var EN = {
98
- timeframe: {
99
- per_year: "Yearly",
100
- per_month: "Monthly",
101
- per_week: "Weekly",
102
- per_day: "Daily",
103
- per_hour: "Hourly"
104
- },
105
- rangePrefix: { from: "From", upTo: "Up to" },
106
- seniority: {
107
- entry_level: "Entry level",
108
- associate: "Associate",
109
- mid_level: "Mid-level",
110
- senior: "Senior",
111
- lead: "Lead",
112
- principal: "Principal",
113
- director: "Director",
114
- executive: "Executive"
115
- },
116
- frames: {
117
- entitySalariesTitle: ({ entity, range }) => `${entity} Salaries (${range}/yr)`,
118
- salariesInPlaceTitle: ({ place, range }) => `Salaries in ${place} (${range}/yr)`,
119
- salariesInPlaceTitleNoRange: ({ place }) => `Salaries in ${place}`,
120
- entitySalariesInPlaceTitle: ({ entity, place, range }) => `${entity} Salaries in ${place} (${range}/yr)`,
121
- companySalariesTitle: ({ company, range }) => `${company} Salaries${range ? ` (${range}/yr)` : ""}`,
122
- companyCategorySalariesTitle: ({ company, category, range }) => `${company} ${category} Salaries${range ? ` (${range}/yr)` : ""}`,
123
- professionalsEarn: ({ entity, range, count }) => `${entity} professionals earn ${range}/yr on average across ${count} job postings.`,
124
- rolesPay: ({ entity, range, count }) => `${entity} roles pay ${range}/yr on average across ${count} job postings.`,
125
- professionalsInLocationEarn: ({ entity, place, range, count }) => `${entity} professionals in ${place} earn ${range}/yr on average across ${count} job postings.`,
126
- seniorityRange: ({ lowLabel, lowAmount, highLabel, highAmount }) => `${lowLabel} roles start at ${lowAmount}, ${highLabel} roles reach ${highAmount}.`,
127
- seniorityRangeWhile: ({ lowLabel, lowAmount, highLabel, highAmount }) => `${lowLabel} salaries start at ${lowAmount}, while ${highLabel} roles reach ${highAmount}.`,
128
- compareAcrossTopPaying: ({ count }) => `Compare across ${count} top-paying ${count === 1 ? "company" : "companies"}.`,
129
- compareAcrossTop: ({ count }) => `Compare across ${count} top ${count === 1 ? "company" : "companies"}.`,
130
- boardWideAverage: ({ entity, range }) => `Board-wide ${entity} average: ${range}/yr.`,
131
- averageSalaryInCity: ({ place, range, count }) => `Average salary in ${place} is ${range}/yr across ${count} jobs. Browse salary data by title and skill.`,
132
- browseLocationsInRegion: ({ count, place }) => `Browse salary data across ${count} locations in ${place}. Compare salaries by title, skill, and company.`,
133
- companyPays: ({ company, range, count }) => `${company} pays ${range}/yr on average across ${count} job postings.`,
134
- breakdownAcrossCategories: ({ count }) => `Breakdown across ${count} job ${count === 1 ? "category" : "categories"}.`,
135
- compareWithSimilar: ({ count }) => `Compare with ${count} similar ${count === 1 ? "company" : "companies"}.`,
136
- salaryInfoFor: ({ company, board }) => `Salary information for ${company} on ${board}.`,
137
- categoryRolesAtCompanyPay: ({ category, company, range, count }) => `${category} roles at ${company} pay ${range}/yr based on ${count} job postings.`,
138
- categorySalaryDataFor: ({ category, company, board }) => `${category} salary data for ${company} on ${board}.`
139
- }
140
- };
141
- var DE = {
142
- timeframe: {
143
- per_year: "pro Jahr",
144
- per_month: "pro Monat",
145
- per_week: "pro Woche",
146
- per_day: "pro Tag",
147
- per_hour: "pro Stunde"
148
- },
149
- rangePrefix: { from: "ab", upTo: "bis zu" },
150
- seniority: {
151
- entry_level: "Entry-Level",
152
- associate: "Associate",
153
- mid_level: "Mid-Level",
154
- senior: "Senior",
155
- lead: "Lead",
156
- principal: "Principal",
157
- director: "Director",
158
- executive: "F\xFChrungskraft"
159
- },
160
- frames: {
161
- entitySalariesTitle: ({ entity, range }) => `${entity} Geh\xE4lter (${range}/Jahr)`,
162
- salariesInPlaceTitle: ({ place, range }) => `Geh\xE4lter in ${place} (${range}/Jahr)`,
163
- salariesInPlaceTitleNoRange: ({ place }) => `Geh\xE4lter in ${place}`,
164
- entitySalariesInPlaceTitle: ({ entity, place, range }) => `${entity} Geh\xE4lter in ${place} (${range}/Jahr)`,
165
- companySalariesTitle: ({ company, range }) => `${company} Geh\xE4lter${range ? ` (${range}/Jahr)` : ""}`,
166
- companyCategorySalariesTitle: ({ company, category, range }) => `${company} ${category} Geh\xE4lter${range ? ` (${range}/Jahr)` : ""}`,
167
- professionalsEarn: ({ entity, range, count }) => `${entity}-Fachkr\xE4fte verdienen durchschnittlich ${range}/Jahr, basierend auf ${count} Stellenanzeigen.`,
168
- rolesPay: ({ entity, range, count }) => `${entity}-Positionen werden mit durchschnittlich ${range}/Jahr verg\xFCtet, basierend auf ${count} Stellenanzeigen.`,
169
- professionalsInLocationEarn: ({ entity, place, range, count }) => `${entity}-Fachkr\xE4fte in ${place} verdienen durchschnittlich ${range}/Jahr, basierend auf ${count} Stellenanzeigen.`,
170
- seniorityRange: ({ lowLabel, lowAmount, highLabel, highAmount }) => `${lowLabel}-Positionen beginnen bei ${lowAmount}, ${highLabel}-Positionen erreichen ${highAmount}.`,
171
- seniorityRangeWhile: ({ lowLabel, lowAmount, highLabel, highAmount }) => `${lowLabel}-Geh\xE4lter beginnen bei ${lowAmount}, w\xE4hrend ${highLabel}-Positionen ${highAmount} erreichen.`,
172
- compareAcrossTopPaying: ({ count }) => `Vergleichen Sie ${count} ${count === 1 ? "bestzahlendes" : "bestzahlende"} Unternehmen.`,
173
- compareAcrossTop: ({ count }) => `Vergleichen Sie ${count} Top-Unternehmen.`,
174
- boardWideAverage: ({ entity, range }) => `Gesamtdurchschnitt ${entity}: ${range}/Jahr.`,
175
- averageSalaryInCity: ({ place, range, count }) => `Das Durchschnittsgehalt in ${place} betr\xE4gt ${range}/Jahr, basierend auf ${count} Stellen. Gehaltsdaten nach Titel und F\xE4higkeiten durchsuchen.`,
176
- browseLocationsInRegion: ({ count, place }) => `Gehaltsdaten f\xFCr ${count} Standorte in ${place} durchsuchen. Geh\xE4lter nach Titel, F\xE4higkeiten und Unternehmen vergleichen.`,
177
- companyPays: ({ company, range, count }) => `${company} zahlt durchschnittlich ${range}/Jahr, basierend auf ${count} Stellenanzeigen.`,
178
- breakdownAcrossCategories: ({ count }) => `Aufschl\xFCsselung \xFCber ${count} Job-${count === 1 ? "Kategorie" : "Kategorien"}.`,
179
- compareWithSimilar: ({ count }) => `Vergleichen Sie mit ${count} \xE4hnlichen Unternehmen.`,
180
- salaryInfoFor: ({ company, board }) => `Gehaltsinformationen f\xFCr ${company} auf ${board}.`,
181
- categoryRolesAtCompanyPay: ({ category, company, range, count }) => `${category}-Positionen bei ${company} werden mit ${range}/Jahr verg\xFCtet, basierend auf ${count} Stellenanzeigen.`,
182
- categorySalaryDataFor: ({ category, company, board }) => `${category}-Gehaltsdaten f\xFCr ${company} auf ${board}.`
183
- }
184
- };
185
- var LEXICONS = { en: EN, de: DE };
186
- function getSalaryLexicon(locale) {
187
- return locale && LEXICONS[locale] || EN;
188
- }
189
-
190
- // src/format/labels.ts
191
- var EN_LABELS = {
192
- // remoteOption
193
- on_site: "On-site",
194
- hybrid: "Hybrid",
195
- remote: "Remote",
196
- // employmentType
197
- full_time: "Full-time",
198
- part_time: "Part-time",
199
- contract: "Contract",
200
- internship: "Internship",
201
- temporary: "Temporary",
202
- volunteer: "Volunteer",
203
- other: "Other"
204
- };
205
- var DE_LABELS = {
206
- on_site: "Vor Ort",
207
- hybrid: "Hybrid",
208
- remote: "Remote",
209
- full_time: "Vollzeit",
210
- part_time: "Teilzeit",
211
- contract: "Freiberuflich",
212
- internship: "Praktikum",
213
- temporary: "Befristet",
214
- volunteer: "Ehrenamtlich",
215
- other: "Sonstiges"
216
- };
217
- var FR_LABELS = {
218
- on_site: "Sur site",
219
- hybrid: "Hybride",
220
- remote: "T\xE9l\xE9travail",
221
- full_time: "Temps plein",
222
- part_time: "Temps partiel",
223
- contract: "Contrat",
224
- internship: "Stage",
225
- temporary: "Temporaire",
226
- volunteer: "B\xE9n\xE9volat",
227
- other: "Autre"
228
- };
229
- var VOCABULARIES = {
230
- en: EN_LABELS,
231
- de: DE_LABELS,
232
- fr: FR_LABELS
233
- };
234
- var OVERRIDE_KEYS = {
235
- on_site: "onSiteLabel",
236
- hybrid: "hybridLabel",
237
- remote: "remoteLabel",
238
- full_time: "fullTimeLabel",
239
- part_time: "partTimeLabel",
240
- contract: "contractLabel",
241
- internship: "internshipLabel",
242
- temporary: "temporaryLabel",
243
- volunteer: "volunteerLabel",
244
- entry_level: "seniorityEntryLevel",
245
- associate: "seniorityAssociate",
246
- mid_level: "seniorityMidLevel",
247
- senior: "senioritySenior",
248
- lead: "seniorityLead",
249
- principal: "seniorityPrincipal",
250
- director: "seniorityDirector",
251
- executive: "seniorityExecutive"
252
- };
253
- var SENIORITY_KEYS = /* @__PURE__ */ new Set([
254
- "entry_level",
255
- "associate",
256
- "mid_level",
257
- "senior",
258
- "lead",
259
- "principal",
260
- "director",
261
- "executive"
262
- ]);
263
- function storedOverride(value, labels) {
264
- const key = OVERRIDE_KEYS[value];
265
- const override = key ? labels?.jobCardLabels?.[key] : void 0;
266
- return typeof override === "string" && override.trim() !== "" ? override : null;
267
- }
268
- function fieldLabel(locale, value, labels) {
269
- if (!value) return null;
270
- const override = storedOverride(value, labels);
271
- if (override) return override;
272
- if (SENIORITY_KEYS.has(value)) {
273
- return getSalaryLexicon(locale).seniority[value];
274
- }
275
- const vocabulary = VOCABULARIES[locale] ?? EN_LABELS;
276
- return vocabulary[value] ?? EN_LABELS[value] ?? value;
277
- }
278
-
279
- // src/format/location.ts
280
- function locationLabel(locale, job) {
281
- const office = job.officeLocations[0];
282
- const place = office ? office.displayName ?? [office.city ?? office.locality, office.country].filter(Boolean).join(", ") : null;
283
- if (job.remoteOption === "remote") {
284
- return job.remoteWorldwide ? "Remote (worldwide)" : "Remote";
285
- }
286
- if (!place) return fieldLabel(locale, job.remoteOption) ?? "";
287
- return job.remoteOption === "hybrid" ? `${place} (hybrid)` : place;
288
- }
289
- function cardLocationLabel(locale, job) {
290
- if (job.remoteOption === "remote") {
291
- return job.remoteLocationLabel ? `Remote \xB7 ${job.remoteLocationLabel}` : "Remote";
120
+ if (!dateStr) return null;
121
+ const isDateOnly = /^\d{4}-\d{2}(-\d{2})?$/.test(dateStr);
122
+ const parsed = isDateOnly ? /* @__PURE__ */ new Date(
123
+ dateStr.length === 7 ? `${dateStr}-01T00:00:00.000Z` : `${dateStr}T00:00:00.000Z`
124
+ ) : new Date(dateStr);
125
+ if (Number.isNaN(parsed.getTime())) return null;
126
+ const normalized = normalizeLocale(locale);
127
+ if (!normalized) return null;
128
+ try {
129
+ return getMonthYearFormat(normalized).format(parsed);
130
+ } catch {
131
+ return null;
292
132
  }
293
- return job.locationLabel ?? fieldLabel(locale, job.remoteOption) ?? "";
294
- }
295
-
296
- // src/format/job-card.ts
297
- function fullJobToCard(locale, job) {
298
- return {
299
- id: job.id,
300
- object: "job_card",
301
- slug: job.slug ?? "",
302
- title: job.title,
303
- publishedAt: job.publishedAt,
304
- employmentType: job.employmentType,
305
- remoteOption: job.remoteOption,
306
- remoteLocationLabel: job.remoteWorldwide ? "Worldwide" : null,
307
- salaryMin: job.salaryMin,
308
- salaryMax: job.salaryMax,
309
- salaryCurrency: job.salaryCurrency,
310
- salaryTimeframe: job.salaryTimeframe,
311
- isFeatured: job.isFeatured,
312
- locationLabel: locationLabel(locale, job),
313
- company: job.company?.slug ? {
314
- slug: job.company.slug,
315
- name: job.company.name ?? "",
316
- logoUrl: job.company.logoUrl
317
- } : null,
318
- categories: job.categories,
319
- skills: job.skills,
320
- links: job.links
321
- };
322
133
  }
323
134
 
324
135
  // src/format/salary-range.ts
325
- var CURRENCY_SYMBOLS = {
326
- USD: "$",
327
- EUR: "\u20AC",
328
- GBP: "\xA3",
329
- JPY: "\xA5",
330
- CNY: "\xA5",
331
- KRW: "\u20A9",
332
- INR: "\u20B9",
333
- RUB: "\u20BD",
334
- BRL: "R$",
335
- CAD: "C$",
336
- AUD: "A$",
337
- CHF: "CHF ",
338
- SEK: "kr ",
339
- NOK: "kr ",
340
- DKK: "kr ",
341
- PLN: "z\u0142 ",
342
- MXN: "MX$",
343
- SGD: "S$",
344
- HKD: "HK$",
345
- NZD: "NZ$",
346
- ZAR: "R ",
347
- THB: "\u0E3F",
348
- PHP: "\u20B1",
349
- IDR: "Rp ",
350
- MYR: "RM ",
351
- VND: "\u20AB",
352
- AED: "AED ",
353
- SAR: "SAR ",
354
- ILS: "\u20AA",
355
- TRY: "\u20BA",
356
- CZK: "K\u010D ",
357
- HUF: "Ft ",
358
- RON: "lei ",
359
- BGN: "\u043B\u0432 ",
360
- HRK: "kn ",
361
- ISK: "kr ",
362
- CLP: "CLP$",
363
- COP: "COP$",
364
- PEN: "S/",
365
- ARS: "ARS$",
366
- TWD: "NT$",
367
- NGN: "\u20A6",
368
- EGP: "E\xA3",
369
- PKR: "\u20A8",
370
- BDT: "\u09F3",
371
- UAH: "\u20B4",
372
- KZT: "\u20B8"
373
- };
374
- function getCurrencySymbol(currency) {
375
- if (!currency) {
376
- return "$";
377
- }
378
- const normalized = currency.trim().toUpperCase();
379
- return CURRENCY_SYMBOLS[normalized] ?? `${normalized} `;
380
- }
381
- var compactFormatCache = /* @__PURE__ */ new Map();
382
- function getCompactFormatter(language) {
383
- const cached = compactFormatCache.get(language);
384
- if (cached) return cached;
385
- const formatter = new Intl.NumberFormat(language, {
386
- notation: "compact",
387
- compactDisplay: "short",
388
- maximumFractionDigits: 1
389
- });
390
- compactFormatCache.set(language, formatter);
391
- return formatter;
392
- }
393
- function formatCompactNumber(value, language) {
394
- try {
395
- return getCompactFormatter(language ?? "en").format(value);
396
- } catch {
397
- if (value >= 1e6) {
398
- const millions = value / 1e6;
399
- return millions % 1 === 0 ? `${millions}M` : `${millions.toFixed(1)}M`;
400
- }
401
- if (value >= 1e3) {
402
- const thousands = value / 1e3;
403
- return thousands % 1 === 0 ? `${thousands}k` : `${thousands.toFixed(1)}k`;
136
+ var currencyCache = /* @__PURE__ */ new Map();
137
+ function formatAmount(value, language, currencyCode, currencyDisplay = "symbol", notation = "compact") {
138
+ const cacheKey = `${language}:${currencyCode}:${currencyDisplay}:${notation}`;
139
+ let formatter = currencyCache.get(cacheKey);
140
+ if (formatter === void 0) {
141
+ try {
142
+ const options = {
143
+ style: "currency",
144
+ currency: currencyCode,
145
+ currencyDisplay,
146
+ notation
147
+ };
148
+ if (notation === "compact") {
149
+ options.compactDisplay = "short";
150
+ options.maximumFractionDigits = 1;
151
+ options.minimumFractionDigits = 0;
152
+ }
153
+ formatter = new Intl.NumberFormat(language, options);
154
+ } catch {
155
+ formatter = null;
404
156
  }
405
- return value.toString();
157
+ currencyCache.set(cacheKey, formatter);
406
158
  }
159
+ return formatter ? formatter.format(value) : null;
407
160
  }
408
- var compactCurrencyCache = /* @__PURE__ */ new Map();
409
- function formatCompactCurrency(value, language, currency) {
410
- const currencyCode = (currency ?? "USD").trim().toUpperCase();
411
- const cacheKey = `${language}:${currencyCode}`;
412
- let formatter = compactCurrencyCache.get(cacheKey);
161
+ function formatRange(min, max, language, currencyCode, currencyDisplay = "symbol", notation = "compact") {
162
+ const cacheKey = `${language}:${currencyCode}:${currencyDisplay}:${notation}:range`;
163
+ let formatter = currencyCache.get(cacheKey);
413
164
  if (formatter === void 0) {
414
165
  try {
415
- formatter = new Intl.NumberFormat(language, {
166
+ const options = {
416
167
  style: "currency",
417
168
  currency: currencyCode,
418
- notation: "compact",
419
- compactDisplay: "short",
420
- maximumFractionDigits: 1
421
- });
169
+ currencyDisplay,
170
+ notation
171
+ };
172
+ if (notation === "compact") {
173
+ options.compactDisplay = "short";
174
+ options.maximumFractionDigits = 1;
175
+ options.minimumFractionDigits = 0;
176
+ }
177
+ formatter = new Intl.NumberFormat(language, options);
422
178
  } catch {
423
179
  formatter = null;
424
180
  }
425
- compactCurrencyCache.set(cacheKey, formatter);
181
+ currencyCache.set(cacheKey, formatter);
426
182
  }
427
- if (!formatter) {
428
- return `${getCurrencySymbol(currency)}${formatCompactNumber(value, language)}`;
183
+ if (!formatter) return null;
184
+ return formatter.formatRange(min, max);
185
+ }
186
+ var SALARY_TIMEFRAMES = /* @__PURE__ */ new Set([
187
+ "per_year",
188
+ "per_month",
189
+ "per_week",
190
+ "per_day",
191
+ "per_hour"
192
+ ]);
193
+ function notationForMagnitude(...values) {
194
+ let anyFinite = false;
195
+ for (const v of values) {
196
+ if (v == null || !Number.isFinite(v)) continue;
197
+ anyFinite = true;
198
+ if (Math.abs(v) >= 1e3) return "compact";
429
199
  }
430
- return formatter.format(value);
200
+ return anyFinite ? "standard" : "compact";
431
201
  }
432
- function appendTimeframe(value, timeframeLabel) {
433
- if (!value) {
202
+ function formatSalaryRange(language, min, max, timeframe, currency = null, currencyDisplay = "symbol", notation) {
203
+ const minOk = min == null || Number.isFinite(min);
204
+ const maxOk = max == null || Number.isFinite(max);
205
+ if (!minOk || !maxOk) {
434
206
  return null;
435
207
  }
436
- if (!timeframeLabel) {
437
- return value;
438
- }
439
- return `${value} ${timeframeLabel}`;
440
- }
441
- function formatSalaryRange(language, min, max, timeframe, currency = null, timeframeOverrides) {
442
208
  if (min == null && max == null) {
443
209
  return null;
444
210
  }
445
- const locale = language ?? "en";
446
- const lexicon = getSalaryLexicon(locale);
447
- const overrideMap = {
448
- per_year: timeframeOverrides?.yearlyLabel,
449
- per_month: timeframeOverrides?.monthlyLabel,
450
- per_week: timeframeOverrides?.weeklyLabel,
451
- per_day: timeframeOverrides?.dailyLabel,
452
- per_hour: timeframeOverrides?.hourlyLabel
453
- };
454
- const rawOverride = timeframe ? overrideMap[timeframe] : void 0;
455
- const enSourceWord = timeframe ? getSalaryLexicon("en").timeframe[timeframe] : void 0;
456
- const lexiconTimeframe = timeframe ? lexicon.timeframe[timeframe] ?? null : null;
457
- const timeframeLabel = rawOverride && rawOverride !== enSourceWord ? rawOverride : lexiconTimeframe;
458
- const formatAmount = locale === "en" ? (value) => `${getCurrencySymbol(currency)}${formatCompactNumber(value, locale)}` : (value) => formatCompactCurrency(value, locale, currency);
211
+ const currencyCode = currency?.trim().toUpperCase() || null;
212
+ if (!currencyCode) {
213
+ return null;
214
+ }
215
+ const locale = normalizeLocale(language);
216
+ if (!locale) {
217
+ return null;
218
+ }
219
+ const resolvedNotation = notation ?? notationForMagnitude(min, max);
220
+ const timeframeLabel = typeof timeframe === "string" && SALARY_TIMEFRAMES.has(timeframe) ? timeframe : null;
459
221
  if (min != null && max != null) {
460
- return appendTimeframe(
461
- `${formatAmount(min)} \u2013 ${formatAmount(max)}`,
462
- timeframeLabel
222
+ const low = min <= max ? min : max;
223
+ const high = min <= max ? max : min;
224
+ const text2 = low === high ? formatAmount(
225
+ low,
226
+ locale,
227
+ currencyCode,
228
+ currencyDisplay,
229
+ resolvedNotation
230
+ ) : formatRange(
231
+ low,
232
+ high,
233
+ locale,
234
+ currencyCode,
235
+ currencyDisplay,
236
+ resolvedNotation
463
237
  );
238
+ return text2 ? { text: text2, timeframe: timeframeLabel, bound: "range" } : null;
464
239
  }
465
240
  if (min != null) {
466
- return appendTimeframe(
467
- `${lexicon.rangePrefix.from} ${formatAmount(min)}`,
468
- timeframeLabel
241
+ const text2 = formatAmount(
242
+ min,
243
+ locale,
244
+ currencyCode,
245
+ currencyDisplay,
246
+ resolvedNotation
469
247
  );
248
+ return text2 ? { text: text2, timeframe: timeframeLabel, bound: "from" } : null;
470
249
  }
471
- return appendTimeframe(
472
- `${lexicon.rangePrefix.upTo} ${formatAmount(max)}`,
473
- timeframeLabel
250
+ const text = formatAmount(
251
+ max,
252
+ locale,
253
+ currencyCode,
254
+ currencyDisplay,
255
+ resolvedNotation
474
256
  );
475
- }
476
-
477
- // src/format/company-intro.ts
478
- var NAMED_ENTITIES = {
479
- amp: "&",
480
- lt: "<",
481
- gt: ">",
482
- quot: '"',
483
- apos: "'",
484
- nbsp: " "
485
- };
486
- function decodeEntities(input) {
487
- return input.replace(/&(#\d+|#x[0-9a-f]+|[a-z]+);/gi, (match, body) => {
488
- const token = String(body);
489
- if (token[0] === "#") {
490
- const code = token[1] === "x" || token[1] === "X" ? parseInt(token.slice(2), 16) : parseInt(token.slice(1), 10);
491
- if (!Number.isInteger(code) || code < 0 || code > 1114111) return match;
492
- return String.fromCodePoint(code);
493
- }
494
- return NAMED_ENTITIES[token.toLowerCase()] ?? match;
495
- });
496
- }
497
- function companyIntro(summary, description) {
498
- const trimmedSummary = summary?.trim();
499
- if (trimmedSummary) return trimmedSummary;
500
- if (!description) return null;
501
- const text = decodeEntities(
502
- description.replace(/<script[\s\S]*?<\/script>/gi, " ").replace(/<style[\s\S]*?<\/style>/gi, " ").replace(/<br\s*\/?>/gi, " ").replace(/<\/(p|div|li|h[1-6])>/gi, " ").replace(/<[^>]*>/g, "")
503
- ).replace(/\s+/g, " ").trim();
504
- if (!text) return null;
505
- const [first] = text.split(/(?<=[.!?])\s+/);
506
- return first ?? text;
257
+ return text ? { text, timeframe: timeframeLabel, bound: "upTo" } : null;
507
258
  }
508
259
 
509
260
  // src/format/countries.ts
@@ -773,8 +524,14 @@ function collator(language) {
773
524
  }
774
525
  }
775
526
  function countryOptions(language) {
776
- const names = regionNames(language);
777
- const compare = collator(language).compare;
527
+ const locale = normalizeLocale(language);
528
+ if (!locale) {
529
+ return COUNTRY_CODES.map((code) => ({ code, name: code })).sort(
530
+ (a, b) => a.code < b.code ? -1 : a.code > b.code ? 1 : 0
531
+ );
532
+ }
533
+ const names = regionNames(locale);
534
+ const compare = collator(locale).compare;
778
535
  return COUNTRY_CODES.map((code) => ({
779
536
  code,
780
537
  name: names?.of(code) ?? code
@@ -782,24 +539,27 @@ function countryOptions(language) {
782
539
  }
783
540
 
784
541
  // src/format/custom-fields.ts
542
+ function resolveMultiSelectLabels(def, raw) {
543
+ if (!Array.isArray(raw) || raw.length === 0) return null;
544
+ const labels = raw.map((key) => def.options?.find((o) => o.key === key)?.label).filter((label) => Boolean(label));
545
+ return labels.length > 0 ? labels : null;
546
+ }
785
547
  function renderTextValue(def, raw) {
786
548
  switch (def.type) {
787
549
  case "number":
788
- return typeof raw === "number" ? String(raw) : null;
550
+ return null;
551
+ case "multi_select":
552
+ return null;
789
553
  case "single_select": {
790
554
  if (typeof raw !== "string") return null;
791
555
  return def.options?.find((o) => o.key === raw)?.label ?? null;
792
556
  }
793
- case "multi_select": {
794
- if (!Array.isArray(raw) || raw.length === 0) return null;
795
- const labels = raw.map((key) => def.options?.find((o) => o.key === key)?.label).filter((label) => Boolean(label));
796
- return labels.length > 0 ? labels.join(", ") : null;
797
- }
798
557
  default:
799
558
  return typeof raw === "string" && raw.trim() !== "" ? raw : null;
800
559
  }
801
560
  }
802
- function resolveCustomFieldDisplay(definitions, values) {
561
+ function resolveCustomFieldDisplay(language, definitions, values) {
562
+ void language;
803
563
  const entries = [];
804
564
  for (const def of definitions ?? []) {
805
565
  const raw = values?.[def.key];
@@ -814,6 +574,29 @@ function resolveCustomFieldDisplay(definitions, values) {
814
574
  }
815
575
  continue;
816
576
  }
577
+ if (def.type === "number") {
578
+ if (typeof raw === "number" && Number.isFinite(raw)) {
579
+ entries.push({
580
+ key: def.key,
581
+ label: def.label,
582
+ kind: "number",
583
+ value: raw
584
+ });
585
+ }
586
+ continue;
587
+ }
588
+ if (def.type === "multi_select") {
589
+ const labels = resolveMultiSelectLabels(def, raw);
590
+ if (labels) {
591
+ entries.push({
592
+ key: def.key,
593
+ label: def.label,
594
+ kind: "multi_select",
595
+ values: labels
596
+ });
597
+ }
598
+ continue;
599
+ }
817
600
  const value = renderTextValue(def, raw);
818
601
  if (value !== null) {
819
602
  entries.push({ key: def.key, label: def.label, kind: "text", value });
@@ -821,517 +604,16 @@ function resolveCustomFieldDisplay(definitions, values) {
821
604
  }
822
605
  return entries;
823
606
  }
824
-
825
- // src/format/ui-copy.ts
826
- var PUBLIC_LABEL_GROUPS = [
827
- "jobCardLabels",
828
- "navLabels",
829
- "breadcrumbsLabels",
830
- "footerLabels",
831
- "entityLabels",
832
- "jobSearchLabels",
833
- "globalPaginationLabels",
834
- "blogSharedLabels",
835
- "salaryLabels"
836
- ];
837
- var EN2 = {
838
- jobCard: {
839
- featuredLabel: "Featured",
840
- aiRankedLabel: "AI-ranked",
841
- sortNewestLabel: "Most recent",
842
- sortSalaryHighLabel: "Salary: high to low"
843
- },
844
- jobSearch: {
845
- headingJobs: "Jobs",
846
- keywordLabel: "Keyword",
847
- keywordPlaceholder: "Search jobs\u2026",
848
- locationLabel: "Location",
849
- locationPlaceholder: "City or region",
850
- workplacePlaceholder: "Workplace",
851
- anyWorkplaceLabel: "Any workplace",
852
- typePlaceholder: "Type",
853
- anyTypeLabel: "Any type",
854
- sortPlaceholder: "Sort",
855
- loadMoreLabel: "Load more",
856
- noJobsMatchText: "No jobs match \u2014 try clearing a filter."
857
- },
858
- jobDetail: {
859
- categoriesHeading: "Categories",
860
- skillsHeading: "Skills",
861
- additionalDetailsHeading: "Additional details",
862
- customFieldYesLabel: "Yes",
863
- customFieldNoLabel: "No",
864
- locationsLabel: "Locations",
865
- workPermitsLabel: "Work permits",
866
- timezonesLabel: "Timezones",
867
- educationLabel: "Education",
868
- experienceLabel: "Experience",
869
- worldwideLabel: "Worldwide",
870
- noExperienceRequiredLabel: "No experience required",
871
- experienceYears: (years) => `${years}+ years`,
872
- posted: (published) => `Posted ${published}`,
873
- noDescriptionText: "No description provided.",
874
- viewCompanyProfileLabel: "View company profile",
875
- similarJobsHeading: "Similar jobs",
876
- breadcrumbAriaLabel: "Breadcrumb"
877
- },
878
- apply: {
879
- applyButtonText: "Apply for this job",
880
- applyingLabel: "Applying\u2026",
881
- applyOnEmployerSiteLabel: "Apply on employer site",
882
- signInToApplyLabel: "Sign in to apply",
883
- verifyEmailToApplyLabel: "Verify email to apply",
884
- appliedViewApplicationsLabel: "Applied \u2014 view applications",
885
- applicationSubmitError: "Something went wrong. Please try again."
886
- },
887
- alerts: {
888
- jobAlertTitle: "Get job alerts",
889
- jobAlertEmailPlaceholder: "you@example.com",
890
- jobAlertButtonText: "Get alerts",
891
- subscribingLabel: "Subscribing\u2026",
892
- jobAlertSuccessToast: "If this email isn't already subscribed, we've sent a confirmation link \u2014 check your inbox.",
893
- jobAlertErrorToast: "Something went wrong. Please try again.",
894
- sectionAriaLabel: "Job alerts",
895
- emailAriaLabel: "email",
896
- submitAriaLabel: "get job alerts"
897
- },
898
- copyLink: {
899
- copyLinkLabel: "Copy link",
900
- copiedLabel: "Copied",
901
- ariaLabel: "copy link"
902
- },
903
- salary: {
904
- comparisonHeadlineAverage: "Average salary",
905
- perYearSuffix: "/ year",
906
- comparisonPercentile25Label: "25th percentile",
907
- medianLabel: "Median",
908
- comparisonPercentile75Label: "75th percentile",
909
- basedOnLabel: "Based on",
910
- seniorityTableHeaderLevel: "Level",
911
- seniorityTableHeaderAvg: "Average",
912
- boardBaselineLabel: "Board baseline",
913
- seniorityTableHeaderDiff: "vs. board",
914
- faqHeading: "Frequently asked questions"
915
- },
916
- nav: {
917
- home: "Jobs",
918
- companies: "Companies",
919
- pricing: "Pricing",
920
- talent: "Talent",
921
- post: "Post a job",
922
- blog: "Blog"
923
- },
924
- footer: {
925
- forCandidatesHeading: "For Candidates",
926
- forCompaniesHeading: "For Companies",
927
- resourcesHeading: "Resources",
928
- aboutHeading: "About",
929
- websiteLabel: "Website",
930
- aboutLabel: "About",
931
- contactLabel: "Contact us",
932
- locationsLabel: "Locations",
933
- salariesLabel: "Salaries",
934
- sitemapLabel: "Sitemap",
935
- termsOfServiceLabel: "Terms of Service",
936
- privacyPolicyLabel: "Privacy Policy",
937
- cookiePolicyLabel: "Cookie Policy",
938
- impressumLabel: "Impressum",
939
- allRightsReservedText: "All rights reserved.",
940
- copyrightPrefix: "\xA9 {{year}} {{board_name}}.",
941
- poweredByText: "Powered by",
942
- defaultDescription: "Discover the latest roles from {{board_name}}."
943
- },
944
- breadcrumbs: {
945
- home: "Home",
946
- jobs: "Jobs",
947
- locations: "Locations",
948
- salaries: "Salaries",
949
- companies: "Companies",
950
- skills: "Skills",
951
- titles: "Titles",
952
- blog: "Blog",
953
- post: "Post a Job",
954
- pricing: "Pricing",
955
- about: "About",
956
- impressum: "Impressum",
957
- termsOfService: "Terms of Service",
958
- privacyPolicy: "Privacy Policy",
959
- cookiePolicy: "Cookie Policy",
960
- talent: "Talent"
961
- },
962
- pagination: {
963
- ariaLabel: "Pagination",
964
- previousLabel: "Previous",
965
- nextLabel: "Next"
966
- },
967
- blog: {
968
- bylineLabel: "By",
969
- readingTimeLabel: "min read",
970
- searchLabel: "Search",
971
- searchPlaceholder: "Search posts...",
972
- clearButtonLabel: "Clear search",
973
- tagFilterLabel: "Topics",
974
- tagFilterAllLabel: "All",
975
- emptyTitle: "No matching posts",
976
- emptyDescription: "Try adjusting your search or clearing your filters.",
977
- emptyResetLabel: "Clear filters"
978
- },
979
- entity: {
980
- jobSingular: "job",
981
- jobPlural: "jobs",
982
- companySingular: "company",
983
- companyPlural: "companies"
984
- }
985
- };
986
- var DE2 = {
987
- jobCard: {
988
- featuredLabel: "Hervorgehoben",
989
- aiRankedLabel: "KI-sortiert",
990
- sortNewestLabel: "Neueste zuerst",
991
- sortSalaryHighLabel: "Gehalt: absteigend"
992
- },
993
- jobSearch: {
994
- headingJobs: "Jobs",
995
- keywordLabel: "Stichwort",
996
- keywordPlaceholder: "Jobtitel oder -beschreibungen suchen",
997
- locationLabel: "Standort",
998
- locationPlaceholder: "Stadt, Land oder Region",
999
- workplacePlaceholder: "Arbeitsmodell",
1000
- anyWorkplaceLabel: "Alle Arbeitsmodelle",
1001
- typePlaceholder: "Anstellungsart",
1002
- anyTypeLabel: "Alle Anstellungsarten",
1003
- sortPlaceholder: "Sortieren",
1004
- loadMoreLabel: "Mehr laden",
1005
- noJobsMatchText: "Keine passenden Jobs \u2014 setze einen Filter zur\xFCck."
1006
- },
1007
- jobDetail: {
1008
- categoriesHeading: "Kategorien",
1009
- skillsHeading: "F\xE4higkeiten",
1010
- additionalDetailsHeading: "Weitere Details",
1011
- customFieldYesLabel: "Ja",
1012
- customFieldNoLabel: "Nein",
1013
- locationsLabel: "Standorte",
1014
- workPermitsLabel: "Arbeitserlaubnis",
1015
- timezonesLabel: "Zeitzonen",
1016
- educationLabel: "Ausbildung",
1017
- experienceLabel: "Berufserfahrung",
1018
- worldwideLabel: "Weltweit",
1019
- noExperienceRequiredLabel: "Keine Berufserfahrung erforderlich",
1020
- experienceYears: (years) => `${years}+ Jahre`,
1021
- posted: (published) => `Ver\xF6ffentlicht ${published}`,
1022
- noDescriptionText: "Keine Beschreibung vorhanden.",
1023
- viewCompanyProfileLabel: "Unternehmensprofil ansehen",
1024
- similarJobsHeading: "\xC4hnliche Jobs",
1025
- breadcrumbAriaLabel: "Seitenpfad"
1026
- },
1027
- apply: {
1028
- applyButtonText: "Jetzt bewerben",
1029
- applyingLabel: "Wird gesendet \u2026",
1030
- applyOnEmployerSiteLabel: "Beim Unternehmen bewerben",
1031
- signInToApplyLabel: "Zum Bewerben anmelden",
1032
- verifyEmailToApplyLabel: "E-Mail best\xE4tigen, um dich zu bewerben",
1033
- appliedViewApplicationsLabel: "Beworben \u2014 Bewerbungen ansehen",
1034
- applicationSubmitError: "Etwas ist schiefgelaufen. Bitte versuche es erneut."
1035
- },
1036
- alerts: {
1037
- jobAlertTitle: "Job-Benachrichtigungen erhalten",
1038
- jobAlertEmailPlaceholder: "name@beispiel.de",
1039
- jobAlertButtonText: "Abonnieren",
1040
- subscribingLabel: "Wird abonniert \u2026",
1041
- jobAlertSuccessToast: "Falls diese E-Mail noch nicht abonniert ist, haben wir einen Best\xE4tigungslink gesendet \u2014 pr\xFCfe deinen Posteingang.",
1042
- jobAlertErrorToast: "Etwas ist schiefgelaufen. Bitte versuche es erneut.",
1043
- sectionAriaLabel: "Job-Benachrichtigungen",
1044
- emailAriaLabel: "E-Mail",
1045
- submitAriaLabel: "Job-Benachrichtigungen erhalten"
1046
- },
1047
- copyLink: {
1048
- copyLinkLabel: "Link kopieren",
1049
- copiedLabel: "Kopiert",
1050
- ariaLabel: "Link kopieren"
1051
- },
1052
- salary: {
1053
- comparisonHeadlineAverage: "Durchschnittsgehalt",
1054
- perYearSuffix: "/ Jahr",
1055
- comparisonPercentile25Label: "25. Perzentil",
1056
- medianLabel: "Median",
1057
- comparisonPercentile75Label: "75. Perzentil",
1058
- basedOnLabel: "Basierend auf",
1059
- seniorityTableHeaderLevel: "Erfahrungslevel",
1060
- seniorityTableHeaderAvg: "Durchschnitt",
1061
- boardBaselineLabel: "Board-Durchschnitt",
1062
- seniorityTableHeaderDiff: "vs. Board",
1063
- faqHeading: "H\xE4ufig gestellte Fragen"
1064
- },
1065
- nav: {
1066
- home: "Jobs",
1067
- companies: "Unternehmen",
1068
- pricing: "Preise",
1069
- talent: "Talente",
1070
- post: "Job ver\xF6ffentlichen",
1071
- blog: "Blog"
1072
- },
1073
- footer: {
1074
- forCandidatesHeading: "F\xFCr Kandidaten",
1075
- forCompaniesHeading: "F\xFCr Unternehmen",
1076
- resourcesHeading: "Ressourcen",
1077
- aboutHeading: "\xDCber uns",
1078
- websiteLabel: "Website",
1079
- aboutLabel: "\xDCber uns",
1080
- contactLabel: "Kontakt",
1081
- locationsLabel: "Standorte",
1082
- salariesLabel: "Geh\xE4lter",
1083
- sitemapLabel: "Sitemap",
1084
- termsOfServiceLabel: "Nutzungsbedingungen",
1085
- privacyPolicyLabel: "Datenschutzerkl\xE4rung",
1086
- cookiePolicyLabel: "Cookie-Richtlinie",
1087
- impressumLabel: "Impressum",
1088
- allRightsReservedText: "Alle Rechte vorbehalten.",
1089
- copyrightPrefix: "\xA9 {{year}} {{board_name}}.",
1090
- poweredByText: "Bereitgestellt von",
1091
- defaultDescription: "Entdecke die neuesten Stellen von {{board_name}}."
1092
- },
1093
- breadcrumbs: {
1094
- home: "Startseite",
1095
- jobs: "Jobs",
1096
- locations: "Standorte",
1097
- salaries: "Geh\xE4lter",
1098
- companies: "Unternehmen",
1099
- skills: "F\xE4higkeiten",
1100
- titles: "Berufsbezeichnungen",
1101
- blog: "Blog",
1102
- post: "Job ver\xF6ffentlichen",
1103
- pricing: "Preise",
1104
- about: "\xDCber uns",
1105
- impressum: "Impressum",
1106
- termsOfService: "Nutzungsbedingungen",
1107
- privacyPolicy: "Datenschutzerkl\xE4rung",
1108
- cookiePolicy: "Cookie-Richtlinie",
1109
- talent: "Talente"
1110
- },
1111
- pagination: {
1112
- ariaLabel: "Seitennummerierung",
1113
- previousLabel: "Zur\xFCck",
1114
- nextLabel: "Weiter"
1115
- },
1116
- blog: {
1117
- bylineLabel: "Von",
1118
- readingTimeLabel: "Minuten Lesezeit",
1119
- searchLabel: "Suche",
1120
- searchPlaceholder: "Artikel suchen...",
1121
- clearButtonLabel: "Suche leeren",
1122
- tagFilterLabel: "Themen",
1123
- tagFilterAllLabel: "Alle",
1124
- emptyTitle: "Keine passenden Artikel gefunden",
1125
- emptyDescription: "Versuche, deine Suche anzupassen oder die Filter zur\xFCckzusetzen.",
1126
- emptyResetLabel: "Filter zur\xFCcksetzen"
1127
- },
1128
- entity: {
1129
- jobSingular: "Job",
1130
- jobPlural: "Jobs",
1131
- companySingular: "Unternehmen",
1132
- companyPlural: "Unternehmen"
1133
- }
1134
- };
1135
- var FR = {
1136
- jobCard: {
1137
- featuredLabel: "\xC0 la une",
1138
- aiRankedLabel: "Classement IA",
1139
- sortNewestLabel: "Plus r\xE9centes",
1140
- sortSalaryHighLabel: "Salaire : d\xE9croissant"
1141
- },
1142
- jobSearch: {
1143
- headingJobs: "Offres d'emploi",
1144
- keywordLabel: "Mot-cl\xE9",
1145
- keywordPlaceholder: "Rechercher une offre\u2026",
1146
- locationLabel: "Lieu",
1147
- locationPlaceholder: "Ville ou r\xE9gion",
1148
- workplacePlaceholder: "Mode de travail",
1149
- anyWorkplaceLabel: "Tous les modes de travail",
1150
- typePlaceholder: "Type de contrat",
1151
- anyTypeLabel: "Tous les types",
1152
- sortPlaceholder: "Trier",
1153
- loadMoreLabel: "Voir plus",
1154
- noJobsMatchText: "Aucune offre ne correspond \u2014 essayez de retirer un filtre."
1155
- },
1156
- jobDetail: {
1157
- categoriesHeading: "Cat\xE9gories",
1158
- skillsHeading: "Comp\xE9tences",
1159
- additionalDetailsHeading: "Informations compl\xE9mentaires",
1160
- customFieldYesLabel: "Oui",
1161
- customFieldNoLabel: "Non",
1162
- locationsLabel: "Lieux",
1163
- workPermitsLabel: "Permis de travail",
1164
- timezonesLabel: "Fuseaux horaires",
1165
- educationLabel: "Formation",
1166
- experienceLabel: "Exp\xE9rience",
1167
- worldwideLabel: "Monde entier",
1168
- noExperienceRequiredLabel: "Aucune exp\xE9rience requise",
1169
- experienceYears: (years) => `${years}+ ans`,
1170
- posted: (published) => `Publi\xE9e ${published}`,
1171
- noDescriptionText: "Aucune description fournie.",
1172
- viewCompanyProfileLabel: "Voir le profil de l'entreprise",
1173
- similarJobsHeading: "Offres similaires",
1174
- breadcrumbAriaLabel: "Fil d'Ariane"
1175
- },
1176
- apply: {
1177
- applyButtonText: "Postuler \xE0 cette offre",
1178
- applyingLabel: "Envoi en cours\u2026",
1179
- applyOnEmployerSiteLabel: "Postuler sur le site de l'employeur",
1180
- signInToApplyLabel: "Connectez-vous pour postuler",
1181
- verifyEmailToApplyLabel: "V\xE9rifiez votre e-mail pour postuler",
1182
- appliedViewApplicationsLabel: "Candidature envoy\xE9e \u2014 voir mes candidatures",
1183
- applicationSubmitError: "Une erreur est survenue. Veuillez r\xE9essayer."
1184
- },
1185
- alerts: {
1186
- jobAlertTitle: "Recevoir des alertes emploi",
1187
- jobAlertEmailPlaceholder: "vous@exemple.fr",
1188
- jobAlertButtonText: "Activer les alertes",
1189
- subscribingLabel: "Abonnement en cours\u2026",
1190
- jobAlertSuccessToast: "Si cet e-mail n'est pas d\xE9j\xE0 abonn\xE9, nous avons envoy\xE9 un lien de confirmation \u2014 v\xE9rifiez votre bo\xEEte de r\xE9ception.",
1191
- jobAlertErrorToast: "Une erreur est survenue. Veuillez r\xE9essayer.",
1192
- sectionAriaLabel: "Alertes emploi",
1193
- emailAriaLabel: "e-mail",
1194
- submitAriaLabel: "recevoir des alertes emploi"
1195
- },
1196
- copyLink: {
1197
- copyLinkLabel: "Copier le lien",
1198
- copiedLabel: "Copi\xE9",
1199
- ariaLabel: "copier le lien"
1200
- },
1201
- salary: {
1202
- comparisonHeadlineAverage: "Salaire moyen",
1203
- perYearSuffix: "/ an",
1204
- comparisonPercentile25Label: "25e percentile",
1205
- medianLabel: "M\xE9diane",
1206
- comparisonPercentile75Label: "75e percentile",
1207
- basedOnLabel: "Bas\xE9 sur",
1208
- seniorityTableHeaderLevel: "Niveau",
1209
- seniorityTableHeaderAvg: "Moyenne",
1210
- boardBaselineLabel: "R\xE9f\xE9rence du site",
1211
- seniorityTableHeaderDiff: "vs site",
1212
- faqHeading: "Questions fr\xE9quentes"
1213
- },
1214
- nav: {
1215
- home: "Offres",
1216
- companies: "Entreprises",
1217
- pricing: "Tarifs",
1218
- talent: "Talents",
1219
- post: "Publier une offre",
1220
- blog: "Blog"
1221
- },
1222
- footer: {
1223
- forCandidatesHeading: "Pour les candidats",
1224
- forCompaniesHeading: "Pour les entreprises",
1225
- resourcesHeading: "Ressources",
1226
- aboutHeading: "\xC0 propos",
1227
- websiteLabel: "Site web",
1228
- aboutLabel: "\xC0 propos",
1229
- contactLabel: "Nous contacter",
1230
- locationsLabel: "Lieux",
1231
- salariesLabel: "Salaires",
1232
- sitemapLabel: "Plan du site",
1233
- termsOfServiceLabel: "Conditions d'utilisation",
1234
- privacyPolicyLabel: "Politique de confidentialit\xE9",
1235
- cookiePolicyLabel: "Politique de cookies",
1236
- impressumLabel: "Mentions l\xE9gales",
1237
- allRightsReservedText: "Tous droits r\xE9serv\xE9s.",
1238
- copyrightPrefix: "\xA9 {{year}} {{board_name}}.",
1239
- poweredByText: "Propuls\xE9 par",
1240
- defaultDescription: "D\xE9couvrez les derni\xE8res offres de {{board_name}}."
1241
- },
1242
- breadcrumbs: {
1243
- home: "Accueil",
1244
- jobs: "Offres",
1245
- locations: "Lieux",
1246
- salaries: "Salaires",
1247
- companies: "Entreprises",
1248
- skills: "Comp\xE9tences",
1249
- titles: "Intitul\xE9s de poste",
1250
- blog: "Blog",
1251
- post: "Publier une offre",
1252
- pricing: "Tarifs",
1253
- about: "\xC0 propos",
1254
- impressum: "Mentions l\xE9gales",
1255
- termsOfService: "Conditions d'utilisation",
1256
- privacyPolicy: "Politique de confidentialit\xE9",
1257
- cookiePolicy: "Politique de cookies",
1258
- talent: "Talents"
1259
- },
1260
- pagination: {
1261
- ariaLabel: "Pagination",
1262
- previousLabel: "Pr\xE9c\xE9dent",
1263
- nextLabel: "Suivant"
1264
- },
1265
- blog: {
1266
- bylineLabel: "Par",
1267
- readingTimeLabel: "min de lecture",
1268
- searchLabel: "Recherche",
1269
- searchPlaceholder: "Rechercher un article...",
1270
- clearButtonLabel: "Effacer la recherche",
1271
- tagFilterLabel: "Th\xE8mes",
1272
- tagFilterAllLabel: "Tous",
1273
- emptyTitle: "Aucun article correspondant",
1274
- emptyDescription: "Essayez de modifier votre recherche ou de r\xE9initialiser les filtres.",
1275
- emptyResetLabel: "R\xE9initialiser les filtres"
1276
- },
1277
- entity: {
1278
- jobSingular: "offre",
1279
- jobPlural: "offres",
1280
- companySingular: "entreprise",
1281
- companyPlural: "entreprises"
1282
- }
1283
- };
1284
- var CATALOGS = { en: EN2, de: DE2, fr: FR };
1285
- function mergeGroup(group, overrides) {
1286
- if (!overrides) return group;
1287
- const out = { ...group };
1288
- for (const [key, value] of Object.entries(group)) {
1289
- if (typeof value !== "string") continue;
1290
- const override = overrides[key];
1291
- if (typeof override === "string" && override.trim() !== "") {
1292
- out[key] = override;
1293
- }
1294
- }
1295
- return out;
1296
- }
1297
- var GROUP_OVERRIDE_SOURCE = {
1298
- jobCard: "jobCardLabels",
1299
- jobSearch: "jobSearchLabels",
1300
- jobDetail: "jobCardLabels",
1301
- apply: "jobCardLabels",
1302
- alerts: "jobCardLabels",
1303
- copyLink: "jobCardLabels",
1304
- salary: "salaryLabels",
1305
- nav: "navLabels",
1306
- footer: "footerLabels",
1307
- breadcrumbs: "breadcrumbsLabels",
1308
- pagination: "globalPaginationLabels",
1309
- blog: "blogSharedLabels",
1310
- entity: "entityLabels"
1311
- };
1312
- function uiCopy(language, labels) {
1313
- const catalog = language && CATALOGS[language] || EN2;
1314
- if (!labels) return catalog;
1315
- const resolved = {};
1316
- for (const [group, source] of Object.entries(GROUP_OVERRIDE_SOURCE)) {
1317
- resolved[group] = mergeGroup(catalog[group], labels[source]);
1318
- }
1319
- return resolved;
1320
- }
1321
607
  export {
1322
608
  COUNTRY_CODES,
1323
- PUBLIC_LABEL_GROUPS,
1324
- cardLocationLabel,
1325
- companyIntro,
609
+ buildJobBreadcrumbs,
1326
610
  countryOptions,
1327
- fieldLabel,
1328
611
  formatDate,
1329
612
  formatMonthYear,
1330
613
  formatPublishedRelativeDate,
1331
614
  formatSalaryRange,
1332
- fullJobToCard,
1333
- getSalaryLexicon,
1334
- locationLabel,
1335
- resolveCustomFieldDisplay,
1336
- uiCopy
615
+ formatSalaryStat,
616
+ formatSalaryStatRange,
617
+ normalizeWebsiteUrl,
618
+ resolveCustomFieldDisplay
1337
619
  };