@next-degree/pickle-shared-js 0.11.0 → 0.12.1

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 (95) hide show
  1. package/dist/{company_service_sanity-CGNCrk8e.d.cts → company_service_sanity-Br0R7m-A.d.cts} +384 -384
  2. package/dist/{company_service_sanity-CAyYirw5.d.ts → company_service_sanity-DF01qvTz.d.ts} +384 -384
  3. package/dist/components/jobCard/JobLocation.cjs +6 -3
  4. package/dist/components/jobCard/JobLocation.cjs.map +1 -1
  5. package/dist/components/jobCard/JobLocation.d.cts +1 -1
  6. package/dist/components/jobCard/JobLocation.d.ts +1 -1
  7. package/dist/components/jobCard/JobLocation.js +2 -3
  8. package/dist/components/jobCard/JobLocation.js.map +1 -1
  9. package/dist/components/jobPost/JobDescription.cjs +3 -1
  10. package/dist/components/jobPost/JobDescription.cjs.map +1 -1
  11. package/dist/components/jobPost/JobDescription.js +3 -1
  12. package/dist/components/jobPost/JobDescription.js.map +1 -1
  13. package/dist/components/jobPost/JobPost.cjs +17 -13
  14. package/dist/components/jobPost/JobPost.cjs.map +1 -1
  15. package/dist/components/jobPost/JobPost.d.cts +1 -1
  16. package/dist/components/jobPost/JobPost.d.ts +1 -1
  17. package/dist/components/jobPost/JobPost.js +17 -13
  18. package/dist/components/jobPost/JobPost.js.map +1 -1
  19. package/dist/components/primitives/command.d.cts +1 -1
  20. package/dist/components/primitives/command.d.ts +1 -1
  21. package/dist/components/ui/Button.d.cts +1 -1
  22. package/dist/components/ui/Button.d.ts +1 -1
  23. package/dist/components/ui/Combobox.cjs +28 -19
  24. package/dist/components/ui/Combobox.cjs.map +1 -1
  25. package/dist/components/ui/Combobox.js +29 -20
  26. package/dist/components/ui/Combobox.js.map +1 -1
  27. package/dist/components/ui/DismissibleBanner.cjs +85 -0
  28. package/dist/components/ui/DismissibleBanner.cjs.map +1 -0
  29. package/dist/components/ui/DismissibleBanner.d.cts +11 -0
  30. package/dist/components/ui/DismissibleBanner.d.ts +11 -0
  31. package/dist/components/ui/DismissibleBanner.js +60 -0
  32. package/dist/components/ui/DismissibleBanner.js.map +1 -0
  33. package/dist/components/ui/ReadMore.cjs +3 -1
  34. package/dist/components/ui/ReadMore.cjs.map +1 -1
  35. package/dist/components/ui/ReadMore.js +3 -1
  36. package/dist/components/ui/ReadMore.js.map +1 -1
  37. package/dist/components/ui/buttonShadcn.d.cts +1 -1
  38. package/dist/components/ui/buttonShadcn.d.ts +1 -1
  39. package/dist/{displayText-D8MYOaYK.d.ts → displayText-C1DIK8hr.d.ts} +2 -2
  40. package/dist/{displayText-DHKm6_JF.d.cts → displayText-DzxDrQAT.d.cts} +2 -2
  41. package/dist/hooks/useDisplayText.d.cts +3 -3
  42. package/dist/hooks/useDisplayText.d.ts +3 -3
  43. package/dist/index.cjs +1224 -1139
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +9 -5
  46. package/dist/index.d.ts +9 -5
  47. package/dist/index.js +1162 -1080
  48. package/dist/index.js.map +1 -1
  49. package/dist/{job_posting_service_latest-C8PT9mxn.d.cts → job_posting_service_latest-DCbi2bXu.d.cts} +261 -261
  50. package/dist/{job_posting_service_latest-C8PT9mxn.d.ts → job_posting_service_latest-DCbi2bXu.d.ts} +261 -261
  51. package/dist/{job_posting_service_latest-DaKYQh30.d.cts → job_posting_service_latest-tqnHqjwc.d.cts} +261 -261
  52. package/dist/{job_posting_service_latest-DaKYQh30.d.ts → job_posting_service_latest-tqnHqjwc.d.ts} +261 -261
  53. package/dist/{job_posting_service_sanity-BK7jdr2W.d.cts → job_posting_service_sanity-B7GvIdYQ.d.cts} +523 -523
  54. package/dist/{job_posting_service_sanity-nyUCPROx.d.ts → job_posting_service_sanity-CfLaGMVK.d.ts} +523 -523
  55. package/dist/lib/locations.d.cts +2 -2
  56. package/dist/lib/locations.d.ts +2 -2
  57. package/dist/lib/mappings.d.cts +3 -3
  58. package/dist/lib/mappings.d.ts +3 -3
  59. package/dist/lib/salaryRange.cjs +14 -12
  60. package/dist/lib/salaryRange.cjs.map +1 -1
  61. package/dist/lib/salaryRange.d.cts +2 -2
  62. package/dist/lib/salaryRange.d.ts +2 -2
  63. package/dist/lib/salaryRange.js +14 -12
  64. package/dist/lib/salaryRange.js.map +1 -1
  65. package/dist/services/displayText.d.cts +3 -3
  66. package/dist/services/displayText.d.ts +3 -3
  67. package/dist/styles/globals.css +3 -0
  68. package/dist/styles/globals.css.map +1 -1
  69. package/dist/types/data/company_service_latest.d.cts +1 -1
  70. package/dist/types/data/company_service_latest.d.ts +1 -1
  71. package/dist/types/data/job_posting_service_latest.d.cts +1 -1
  72. package/dist/types/data/job_posting_service_latest.d.ts +1 -1
  73. package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
  74. package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
  75. package/dist/types/index.d.cts +5 -5
  76. package/dist/types/index.d.ts +5 -5
  77. package/dist/types/latest/company_service_latest.d.cts +1 -1
  78. package/dist/types/latest/company_service_latest.d.ts +1 -1
  79. package/dist/types/latest/custom/company_service_sanity.d.cts +3 -3
  80. package/dist/types/latest/custom/company_service_sanity.d.ts +3 -3
  81. package/dist/types/latest/custom/job_posting_service_sanity.d.cts +3 -3
  82. package/dist/types/latest/custom/job_posting_service_sanity.d.ts +3 -3
  83. package/dist/types/latest/job_posting_service_latest.d.cts +1 -1
  84. package/dist/types/latest/job_posting_service_latest.d.ts +1 -1
  85. package/dist/types/latest/shared_pickle_output_latest.d.cts +1 -1
  86. package/dist/types/latest/shared_pickle_output_latest.d.ts +1 -1
  87. package/package.json +2 -2
  88. package/dist/{company_service_latest-o6X0atwz.d.cts → company_service_latest-C7Moeufo.d.cts} +228 -228
  89. package/dist/{company_service_latest-o6X0atwz.d.ts → company_service_latest-C7Moeufo.d.ts} +228 -228
  90. package/dist/{company_service_latest-DpBsftTD.d.cts → company_service_latest-CITz7F53.d.cts} +228 -228
  91. package/dist/{company_service_latest-DpBsftTD.d.ts → company_service_latest-CITz7F53.d.ts} +228 -228
  92. package/dist/{shared_pickle_output_latest-BVF7Zh2H.d.cts → shared_pickle_output_latest--XZhOUyE.d.cts} +11 -11
  93. package/dist/{shared_pickle_output_latest-BVF7Zh2H.d.ts → shared_pickle_output_latest--XZhOUyE.d.ts} +11 -11
  94. package/dist/{shared_pickle_output_latest-BjRRmT8R.d.cts → shared_pickle_output_latest-DKOmTyYk.d.cts} +11 -11
  95. package/dist/{shared_pickle_output_latest-BjRRmT8R.d.ts → shared_pickle_output_latest-DKOmTyYk.d.ts} +11 -11
package/dist/index.cjs CHANGED
@@ -43,11 +43,13 @@ __export(index_exports, {
43
43
  CompanyTake: () => CompanyTake,
44
44
  Counter: () => Counter,
45
45
  DatePicker: () => DatePicker,
46
+ DismissibleBanner: () => DismissibleBanner,
46
47
  Icon: () => Icon,
47
48
  Input: () => Input_default,
48
49
  InputOtp: () => InputOtp,
49
50
  JobDescription: () => JobDescription,
50
51
  JobHeader: () => JobHeader,
52
+ JobLocation: () => JobLocation,
51
53
  JobPost: () => JobPost,
52
54
  JobPostService: () => job_posting_service_latest_exports2,
53
55
  Label: () => Label_default,
@@ -64,6 +66,7 @@ __export(index_exports, {
64
66
  WindowHistoryProvider: () => WindowHistoryProvider,
65
67
  cn: () => cn,
66
68
  fetchLocation: () => fetchLocation,
69
+ salaryRange: () => salaryRange,
67
70
  useDisplayText: () => useDisplayText,
68
71
  useWindowHistory: () => useWindowHistory
69
72
  });
@@ -1186,40 +1189,49 @@ var Combobox = (0, import_react6.forwardRef)((props, ref) => {
1186
1189
  } = props;
1187
1190
  const [selected, setSelected] = (0, import_react6.useState)([]);
1188
1191
  const [open, setOpen] = (0, import_react6.useState)(false);
1192
+ const isUserUpdate = (0, import_react6.useRef)(false);
1189
1193
  const IconComponent = icon && import_lucide_react10.icons[icon];
1190
1194
  const hideSearchBox = options?.length <= 5;
1191
1195
  const isDefault = variant === "default";
1192
1196
  const isChip = variant === "chip";
1193
- const isEmpty = selected.length == 0;
1197
+ const isEmpty = selected.length === 0;
1194
1198
  const showChevron = isDefault ? isEmpty : true;
1195
1199
  const close = () => setOpen(false);
1196
1200
  (0, import_react6.useEffect)(() => {
1197
- const valueArray = multiselect ? value ?? [] : value ? [value] : [];
1198
- setSelected(
1199
- valueArray.map((v) => options.find((o) => o.value === v)).filter((v) => v !== void 0)
1200
- );
1201
- }, [value]);
1201
+ if (!isUserUpdate.current) {
1202
+ const valueArray = multiselect ? value ?? [] : value ? [value] : [];
1203
+ setSelected(
1204
+ valueArray.map((v) => options.find((o) => o.value === v)).filter((v) => v !== void 0)
1205
+ );
1206
+ }
1207
+ }, [value, options, multiselect]);
1208
+ (0, import_react6.useEffect)(() => {
1209
+ if (isUserUpdate.current) {
1210
+ if (multiselect) {
1211
+ handleChange?.(selected.map((o) => o.value));
1212
+ } else {
1213
+ handleChange?.(selected[0]?.value ?? "");
1214
+ }
1215
+ isUserUpdate.current = false;
1216
+ }
1217
+ }, [selected, multiselect, handleChange]);
1218
+ const updateMultiSelect = (prev, option) => {
1219
+ return prev.some((o) => o.value === option.value) ? prev.filter((v) => v !== option) : [...prev, option];
1220
+ };
1202
1221
  const handleSelect = (value2) => {
1203
1222
  const option = options.find((o) => o.value === value2);
1204
1223
  if (!option) return;
1224
+ isUserUpdate.current = true;
1205
1225
  if (multiselect) {
1206
- return setSelected((prev) => {
1207
- const newSelected = prev.some((o) => o.value === value2) ? prev.filter((v) => v !== option) : [...prev, option];
1208
- handleChange?.(newSelected.map((o) => o.value));
1209
- return newSelected;
1210
- });
1226
+ setSelected((prev) => updateMultiSelect(prev, option));
1227
+ } else {
1228
+ setSelected([option]);
1229
+ close();
1211
1230
  }
1212
- setSelected([option]);
1213
- handleChange?.(option.value);
1214
- close();
1215
1231
  };
1216
1232
  const handleClear = () => {
1233
+ isUserUpdate.current = true;
1217
1234
  setSelected([]);
1218
- if (multiselect) {
1219
- handleChange?.([]);
1220
- } else {
1221
- handleChange?.("");
1222
- }
1223
1235
  };
1224
1236
  const handleDisplayValue = () => {
1225
1237
  const defaultLabel = !isEmpty ? selected.map((s) => s.title).join(", ") : placeholder;
@@ -1799,6 +1811,7 @@ var import_jsx_runtime28 = require("react/jsx-runtime");
1799
1811
  function ReadMore({ text, ...props }) {
1800
1812
  const [isExpanded, setIsExpanded] = (0, import_react13.useState)(false);
1801
1813
  const [maxWords, setMaxWords] = (0, import_react13.useState)(160);
1814
+ const isOverMaxWords = text.split(" ").length > maxWords;
1802
1815
  (0, import_react13.useEffect)(() => {
1803
1816
  const updateMaxWords = () => {
1804
1817
  const windowWidth = window.innerWidth;
@@ -1813,6 +1826,7 @@ function ReadMore({ text, ...props }) {
1813
1826
  return () => window.removeEventListener("resize", updateMaxWords);
1814
1827
  }, []);
1815
1828
  function createReadMoreText(text2, maxWords2, isExpanded2) {
1829
+ if (!isOverMaxWords) return text2;
1816
1830
  const words = text2.split(" ");
1817
1831
  const snippet2 = isExpanded2 ? text2 : words.slice(0, maxWords2).join(" ");
1818
1832
  const readMoreText = isExpanded2 ? "" : "...";
@@ -1822,7 +1836,7 @@ function ReadMore({ text, ...props }) {
1822
1836
  const snippet = createReadMoreText(text, maxWords, isExpanded);
1823
1837
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ...props, children: [
1824
1838
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react_markdown.default, { children: snippet }) }),
1825
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1839
+ isOverMaxWords && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1826
1840
  Button,
1827
1841
  {
1828
1842
  type: "button",
@@ -2086,631 +2100,1108 @@ function StepTabs({
2086
2100
  );
2087
2101
  }
2088
2102
 
2089
- // src/components/company/CompanyBenefits.tsx
2090
- var import_jsx_runtime33 = require("react/jsx-runtime");
2091
- function CompanyBenefits({ benefits }) {
2092
- if (!benefits) return null;
2093
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
2094
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg", children: "Company benefits" }),
2095
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
2096
- ] });
2097
- }
2098
-
2099
- // src/components/company/CompanyInformation.tsx
2100
- var import_jsx_runtime34 = require("react/jsx-runtime");
2101
- function CompanyInformation({
2102
- name,
2103
- how,
2104
- mission,
2105
- wow,
2106
- website
2107
- }) {
2108
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col gap-2", children: [
2109
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
2110
- "h2",
2111
- {
2112
- "data-testid": "company-name",
2113
- className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg",
2114
- children: [
2115
- "About ",
2116
- name
2117
- ]
2118
- }
2119
- ),
2120
- how && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
2121
- mission && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-2", children: [
2122
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u{1F680}" }),
2123
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-base text-grey-80", children: [
2124
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pr-1 font-bold", children: "Mission" }),
2125
- mission
2126
- ] })
2127
- ] }),
2128
- wow && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-2", children: [
2129
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { children: "\u{1F31F}" }),
2130
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-base text-grey-80", children: [
2131
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
2132
- wow
2133
- ] })
2134
- ] }),
2135
- website && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2136
- LinkButton,
2137
- {
2138
- "data-testid": "company-website-link",
2139
- href: website,
2140
- target: "_blank",
2141
- rel: "noopener noreferrer",
2142
- children: "Website"
2143
- }
2144
- ) })
2145
- ] });
2146
- }
2147
-
2148
- // src/components/company/CompanyTake.tsx
2149
- var import_jsx_runtime35 = require("react/jsx-runtime");
2150
- function CompanyTake({ content, avatarSrc }) {
2151
- if (!content) return null;
2152
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2153
- "div",
2154
- {
2155
- "data-testid": "company-take",
2156
- className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
2157
- children: [
2158
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
2159
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
2160
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mt-8 flex w-full items-center gap-3", children: [
2161
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
2162
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
2163
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
2164
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
2165
- ] })
2166
- ] })
2167
- ]
2168
- }
2169
- );
2170
- }
2171
-
2172
- // src/components/jobPost/JobDescription.tsx
2173
- var import_jsx_runtime36 = require("react/jsx-runtime");
2174
- function JobDescription({ description }) {
2175
- if (!description) return null;
2176
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
2177
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
2178
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ReadMore, { text: description })
2179
- ] });
2180
- }
2181
-
2182
- // src/components/jobPost/JobHeader.tsx
2183
- var import_lucide_react17 = require("lucide-react");
2184
- var import_image = __toESM(require("next/image"), 1);
2185
-
2186
- // src/components/buttons/BackButton.tsx
2103
+ // src/components/ui/DismissibleBanner.tsx
2187
2104
  var import_lucide_react15 = require("lucide-react");
2188
- var import_navigation2 = require("next/navigation");
2189
-
2190
- // src/hooks/useWindowHistory.ts
2191
- var import_react16 = require("react");
2192
-
2193
- // src/contexts/WindowHistoryProvider.tsx
2194
- var import_navigation = require("next/navigation");
2195
2105
  var import_react15 = require("react");
2196
- var import_jsx_runtime37 = require("react/jsx-runtime");
2197
- var WindowHistoryContext = (0, import_react15.createContext)({});
2198
- function WindowHistoryProvider({ children }) {
2199
- const [history, setHistory] = (0, import_react15.useState)([]);
2200
- const searchParams = (0, import_navigation.useSearchParams)();
2106
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2107
+ function DismissibleBanner({
2108
+ children,
2109
+ cookieId,
2110
+ className,
2111
+ textClassNames,
2112
+ buttonClassNames
2113
+ }) {
2114
+ const safeId = encodeURIComponent(cookieId);
2115
+ const [isVisible, setIsVisible] = (0, import_react15.useState)(false);
2201
2116
  (0, import_react15.useEffect)(() => {
2202
- setHistory(
2203
- (prev) => prev.at(-1) === window.location.href ? prev : [...prev, window.location.href]
2204
- );
2205
- }, [searchParams]);
2206
- const contextValue = (0, import_react15.useMemo)(() => ({ history }), [history]);
2207
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(WindowHistoryContext.Provider, { value: contextValue, children });
2208
- }
2209
-
2210
- // src/hooks/useWindowHistory.ts
2211
- function useWindowHistory() {
2212
- const windowHistoryContext = (0, import_react16.useContext)(WindowHistoryContext);
2213
- return windowHistoryContext;
2214
- }
2215
-
2216
- // src/components/buttons/BackButton.tsx
2217
- var import_jsx_runtime38 = require("react/jsx-runtime");
2218
- function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
2219
- const { history } = useWindowHistory();
2220
- const router = (0, import_navigation2.useRouter)();
2221
- const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(new URL(r).pathname));
2222
- const goBack = () => {
2223
- const previous = history[history.length - 2];
2224
- if (history.length > 1 && isAcceptedRoute(previous)) {
2225
- router.back();
2226
- } else {
2227
- router.push(fallbackHref ?? "/");
2117
+ const cookies = document.cookie.split(";");
2118
+ const isDismissed = cookies.some((cookie) => cookie.trim().startsWith(`${safeId}=true`));
2119
+ if (!isDismissed) {
2120
+ setIsVisible(true);
2228
2121
  }
2122
+ }, [safeId]);
2123
+ const handleDismiss = () => {
2124
+ document.cookie = `${safeId}=true;path=/`;
2125
+ setIsVisible(false);
2229
2126
  };
2230
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2231
- Icon,
2127
+ if (!isVisible) return null;
2128
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
2129
+ "nav",
2232
2130
  {
2233
- "aria-label": "back button",
2234
- variant: "transparent",
2235
- size: "small",
2236
- onClick: goBack,
2237
- className,
2238
- ...props,
2239
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react15.X, {})
2131
+ className: cn(
2132
+ "align-center flex w-full items-center justify-between gap-2 bg-blue-100 px-4 py-3",
2133
+ className
2134
+ ),
2135
+ children: [
2136
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: cn("w-full text-center text-sm text-green-100", textClassNames), children }),
2137
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2138
+ "button",
2139
+ {
2140
+ className: cn("text-green-100", buttonClassNames),
2141
+ "aria-label": "Close banner",
2142
+ onClick: handleDismiss,
2143
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react15.X, { size: 28 })
2144
+ }
2145
+ )
2146
+ ]
2240
2147
  }
2241
2148
  );
2242
2149
  }
2243
2150
 
2244
- // src/lib/icons.ts
2245
- var import_lucide_react16 = require("lucide-react");
2246
- var iconMap = {
2247
- house: import_lucide_react16.Home,
2248
- layers: import_lucide_react16.Layers,
2249
- users: import_lucide_react16.Users,
2250
- settings: import_lucide_react16.Settings,
2251
- building: import_lucide_react16.Building,
2252
- bell: import_lucide_react16.Bell,
2253
- wallet: import_lucide_react16.Wallet,
2254
- contact: import_lucide_react16.Contact,
2255
- banknote: import_lucide_react16.Banknote,
2256
- "message-square-dot": import_lucide_react16.MessageSquareDot,
2257
- "life-buoy": import_lucide_react16.LifeBuoy,
2258
- "building-2": import_lucide_react16.Building2,
2259
- "gallery-vertical-end": import_lucide_react16.GalleryVerticalEnd,
2260
- "square-kanban": import_lucide_react16.SquareKanban,
2261
- "briefcase-business": import_lucide_react16.BriefcaseBusiness,
2262
- "circle-user": import_lucide_react16.CircleUser,
2263
- "key-round": import_lucide_react16.KeyRound,
2264
- "clock-2": import_lucide_react16.Clock2,
2265
- "circle-user-round": import_lucide_react16.CircleUserRound,
2266
- "map-pin": import_lucide_react16.MapPin
2267
- };
2151
+ // src/types/latest/company_service_latest.ts
2152
+ var import_zod2 = require("zod");
2268
2153
 
2269
- // src/components/jobPost/JobHeader.tsx
2270
- var import_jsx_runtime39 = require("react/jsx-runtime");
2271
- function JobHeader({
2272
- title,
2273
- subtitles,
2274
- standalone,
2275
- bannerSrc,
2276
- avatarSrc,
2277
- avatarName,
2278
- avatarHref,
2279
- backFallbackHref,
2280
- backAcceptedRoutes,
2281
- actions,
2282
- tags
2283
- }) {
2284
- const renderIcon = (icon) => {
2285
- const Icon2 = iconMap[icon];
2286
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon2, { size: 18 });
2287
- };
2288
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2289
- "div",
2290
- {
2291
- "data-testid": "job-header-root",
2292
- className: cn(
2293
- "-mt-8 flex w-full flex-col items-center justify-between gap-6 md:-mt-0",
2294
- !standalone && "rounded-3xl"
2295
- ),
2296
- children: [
2297
- !standalone && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "relative flex min-h-16 w-full items-center rounded-t-3xl bg-transparent md:min-h-24 md:flex-row lg:min-h-32", children: [
2298
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2299
- import_image.default,
2300
- {
2301
- className: "h-full w-full rounded-t-3xl object-cover",
2302
- src: bannerSrc,
2303
- alt: "job banner",
2304
- fill: true
2305
- }
2306
- ),
2307
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2308
- BackButton,
2309
- {
2310
- acceptedRoutes: backAcceptedRoutes,
2311
- fallbackHref: backFallbackHref,
2312
- className: "absolute right-2 top-2 flex items-center justify-center text-white sm:hidden",
2313
- "data-testid": "job-header-back-button"
2314
- }
2315
- ),
2316
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2317
- "div",
2318
- {
2319
- className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
2320
- "data-testid": "job-header-avatar",
2321
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2322
- Avatar,
2323
- {
2324
- size: "large",
2325
- target: "_blank",
2326
- href: avatarHref,
2327
- name: avatarName,
2328
- src: avatarSrc,
2329
- rel: "noopener noreferrer"
2330
- }
2331
- )
2332
- }
2333
- )
2334
- ] }),
2335
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
2336
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
2337
- standalone && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2338
- Avatar,
2339
- {
2340
- size: "large",
2341
- target: "_blank",
2342
- href: avatarHref,
2343
- name: avatarName,
2344
- src: avatarSrc,
2345
- rel: "noopener noreferrer"
2346
- }
2347
- ) }),
2348
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2349
- "div",
2350
- {
2351
- "data-testid": `job-header-subtitle-${i}`,
2352
- className: "flex items-center",
2353
- children: [
2354
- subtitle,
2355
- i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react17.Dot, { className: "mx-1 shrink-0", size: 10 })
2356
- ]
2357
- },
2358
- subtitle
2359
- )) })
2360
- ] }),
2361
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2362
- "div",
2363
- {
2364
- "data-testid": "job-header-content",
2365
- className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
2366
- children: [
2367
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2368
- "h2",
2369
- {
2370
- "data-testid": "job-header-title",
2371
- className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg",
2372
- children: title
2373
- }
2374
- ),
2375
- !!actions && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2376
- "div",
2377
- {
2378
- className: "flex w-full justify-end gap-2 md:w-auto",
2379
- "data-testid": "job-header-actions",
2380
- children: actions
2381
- }
2382
- )
2383
- ]
2384
- }
2385
- ),
2386
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2387
- "div",
2388
- {
2389
- "data-testid": "job-header-tags",
2390
- className: "flex flex-row flex-wrap items-center justify-start gap-2",
2391
- children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
2392
- Chip_default,
2393
- {
2394
- size: "small",
2395
- variant: "neutral",
2396
- "aria-label": name,
2397
- "data-testid": `job-header-tag-${name}`,
2398
- children: [
2399
- renderIcon(icon),
2400
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { children: label })
2401
- ]
2402
- },
2403
- name
2404
- ))
2405
- }
2406
- )
2407
- ] })
2408
- ]
2409
- }
2410
- );
2411
- }
2412
-
2413
- // src/components/jobPost/JobPost.tsx
2414
- var DateFns = __toESM(require("date-fns"), 1);
2154
+ // src/types/latest/shared_pickle_output_latest.ts
2155
+ var shared_pickle_output_latest_exports = {};
2156
+ __export(shared_pickle_output_latest_exports, {
2157
+ CurrencyEnum: () => CurrencyEnum,
2158
+ DetailLevelEnum: () => DetailLevelEnum,
2159
+ TypeEnum: () => TypeEnum,
2160
+ UnitTextEnum: () => UnitTextEnum,
2161
+ imageAssetSchema: () => imageAssetSchema,
2162
+ imageSchema: () => imageSchema,
2163
+ monetaryAmountSchema: () => monetaryAmountSchema,
2164
+ placeSchema: () => placeSchema,
2165
+ postalAddressSchema: () => postalAddressSchema,
2166
+ quantitativeValueSchema: () => quantitativeValueSchema
2167
+ });
2168
+ var import_zod = require("zod");
2169
+ var TypeEnum = import_zod.z.enum(["IMAGE"]);
2170
+ var DetailLevelEnum = import_zod.z.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
2171
+ var UnitTextEnum = import_zod.z.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
2172
+ var CurrencyEnum = import_zod.z.enum(["EUR", "GBP", "USD"]);
2173
+ var postalAddressSchema = import_zod.z.object({
2174
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
2175
+ type: import_zod.z.string().describe("Document type used for schema"),
2176
+ addressCountry: import_zod.z.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
2177
+ addressRegion: import_zod.z.optional(import_zod.z.string()).describe("The region in which the locality is, and which is in the country."),
2178
+ addressLocality: import_zod.z.optional(import_zod.z.string()).describe("The locality in which the street address is, and which is in the region. In the US this would be city."),
2179
+ streetAddress: import_zod.z.optional(import_zod.z.string()).describe("The street name of the address within the locality."),
2180
+ streetNumber: import_zod.z.optional(import_zod.z.string()).describe("The house of building number within the street."),
2181
+ postalCode: import_zod.z.optional(import_zod.z.string()).describe("The postal code"),
2182
+ description: import_zod.z.optional(import_zod.z.string()).describe("A descriptive string containing the full address.")
2183
+ });
2184
+ var placeSchema = import_zod.z.object({
2185
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
2186
+ detailLevel: import_zod.z.optional(DetailLevelEnum),
2187
+ latitude: import_zod.z.optional(import_zod.z.number()).describe("The latitude of a location."),
2188
+ longitude: import_zod.z.optional(import_zod.z.number()).describe("The longitude of a location."),
2189
+ address: import_zod.z.optional(postalAddressSchema).describe("The physical place of the location")
2190
+ });
2191
+ var quantitativeValueSchema = import_zod.z.object({
2192
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
2193
+ type: import_zod.z.string().describe("Document type used for schema"),
2194
+ value: import_zod.z.optional(import_zod.z.number()).describe("The single value for some quantity e.g 5000, if a range is needed use minValue and maxValue. Typically used for a single salary."),
2195
+ minValue: import_zod.z.optional(import_zod.z.number()).describe("The single minium value in a range for a quantitative_value, requires a maximum value."),
2196
+ maxValue: import_zod.z.optional(import_zod.z.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
2197
+ unitText: UnitTextEnum
2198
+ });
2199
+ var monetaryAmountSchema = import_zod.z.object({
2200
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
2201
+ type: import_zod.z.string().describe("Document type used for schema"),
2202
+ singleValue: import_zod.z.optional(import_zod.z.number()).describe("The annualized single value for some quantity e.g 5000, if a range is needed use minValue and maxValue. Deprecated - use value.value instead."),
2203
+ minValue: import_zod.z.optional(import_zod.z.number()).describe("The annualized single minium value in a range for a quantitative_value. Deprecated use value.minValue"),
2204
+ maxValue: import_zod.z.optional(import_zod.z.number()).describe("The annualized maximum value in a range for a quantitative_value. Deprecated use value.maxValue"),
2205
+ value: import_zod.z.optional(quantitativeValueSchema).describe("The quantitative_value for a given salary"),
2206
+ currency: import_zod.z.optional(CurrencyEnum)
2207
+ });
2208
+ var imageAssetSchema = import_zod.z.object({
2209
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
2210
+ altText: import_zod.z.optional(import_zod.z.string()).describe("The alt text for the image"),
2211
+ assetId: import_zod.z.optional(import_zod.z.string()).describe("The asset ID for the image"),
2212
+ description: import_zod.z.optional(import_zod.z.string()).describe("The description for the image"),
2213
+ extension: import_zod.z.optional(import_zod.z.string()).describe("The extension for the image"),
2214
+ label: import_zod.z.optional(import_zod.z.string()).describe("The label for the image"),
2215
+ mimeType: import_zod.z.optional(import_zod.z.string()).describe("The mime type for the image"),
2216
+ originalFilename: import_zod.z.optional(import_zod.z.string()).describe("The original filename for the image"),
2217
+ path: import_zod.z.optional(import_zod.z.string()).describe("The path for the image"),
2218
+ sha1Hash: import_zod.z.optional(import_zod.z.string()).describe("The SHA1 hash for the image"),
2219
+ size: import_zod.z.optional(import_zod.z.number()).describe("The size for the image"),
2220
+ title: import_zod.z.optional(import_zod.z.string()).describe("The title for the image"),
2221
+ uploadId: import_zod.z.optional(import_zod.z.string()).describe("The upload ID for the image"),
2222
+ url: import_zod.z.optional(import_zod.z.string()).describe("The URL for the image")
2223
+ });
2224
+ var imageSchema = import_zod.z.object({
2225
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
2226
+ type: import_zod.z.string().describe("Document type used for schema"),
2227
+ asset: import_zod.z.optional(imageAssetSchema).describe("The asset for the image")
2228
+ });
2415
2229
 
2416
- // src/hooks/useDisplayText.ts
2417
- var import_react17 = require("react");
2230
+ // src/types/latest/company_service_latest.ts
2231
+ var TypeEnum2 = import_zod2.z.enum(["OFFICE"]);
2232
+ var CategoryEnum = import_zod2.z.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "WORK_LIFE_BALANCE"]);
2233
+ var TitleEnum = import_zod2.z.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
2234
+ var PublishStatusEnum = import_zod2.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
2235
+ var OfficeTypeEnum = import_zod2.z.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
2236
+ var socialMediaSchema = import_zod2.z.object({
2237
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2238
+ url: import_zod2.z.string().describe("The link to the social media platform"),
2239
+ type: import_zod2.z.string().describe("The type of social media link")
2240
+ });
2241
+ var companyBenefitsSchema = import_zod2.z.object({
2242
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2243
+ type: import_zod2.z.string().describe("Document type used for schema"),
2244
+ title: import_zod2.z.string(),
2245
+ description: import_zod2.z.optional(import_zod2.z.string()),
2246
+ category: CategoryEnum
2247
+ });
2248
+ var industrySchema = import_zod2.z.lazy(() => import_zod2.z.object({
2249
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2250
+ type: import_zod2.z.string().describe("Document type used for schema"),
2251
+ name: import_zod2.z.string(),
2252
+ description: import_zod2.z.optional(import_zod2.z.string()).describe("A brief description of the industry"),
2253
+ onetIndustryId: import_zod2.z.optional(import_zod2.z.string()).describe("ONET industry ID"),
2254
+ parent: import_zod2.z.optional(industrySchema)
2255
+ }));
2256
+ var jobBoardSchema = import_zod2.z.object({
2257
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2258
+ type: import_zod2.z.string().describe("Document type used for schema"),
2259
+ name: import_zod2.z.string().describe("The name of the job board"),
2260
+ description: import_zod2.z.string().describe("A brief description of the job board"),
2261
+ logo: import_zod2.z.optional(imageSchema).describe("The logo of the job board"),
2262
+ baseUrl: import_zod2.z.optional(import_zod2.z.string()).describe("The base URL of the job board")
2263
+ });
2264
+ var personSchema = import_zod2.z.object({
2265
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2266
+ type: import_zod2.z.string().describe("Document type used for schema"),
2267
+ firstName: import_zod2.z.string().describe("The first name of the person"),
2268
+ lastName: import_zod2.z.string().describe("The last name of the person"),
2269
+ title: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("The titles of the degree of the person"),
2270
+ slug: import_zod2.z.string().describe("person slug - should be familyname-givenname-title(s)"),
2271
+ jobTitle: import_zod2.z.optional(import_zod2.z.string()).describe("The job title of the person"),
2272
+ isDoctor: import_zod2.z.optional(import_zod2.z.boolean()).describe("Is the person a doctor"),
2273
+ isMedical: import_zod2.z.optional(import_zod2.z.boolean()).describe("Are they of a medical background?"),
2274
+ isScientist: import_zod2.z.optional(import_zod2.z.boolean()).describe("Are they a scientist?"),
2275
+ image: import_zod2.z.optional(imageSchema).describe("The image of the person"),
2276
+ email: import_zod2.z.optional(import_zod2.z.string()).describe("The email of the person"),
2277
+ socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the person"),
2278
+ telephone: import_zod2.z.optional(import_zod2.z.string()).describe("The telephone number of the person"),
2279
+ url: import_zod2.z.optional(import_zod2.z.string()).describe("The URL of the person"),
2280
+ address: import_zod2.z.optional(placeSchema).describe("The address of the person")
2281
+ });
2282
+ var companyCareersSchema = import_zod2.z.object({
2283
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2284
+ type: import_zod2.z.string().describe("Document type used for schema"),
2285
+ careersUrl: import_zod2.z.string().describe("The URL of the company careers page"),
2286
+ jobBoard: import_zod2.z.optional(jobBoardSchema),
2287
+ jobBoardSlug: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
2288
+ companyBenefits: import_zod2.z.optional(import_zod2.z.array(companyBenefitsSchema)).describe("What are the specific benefits of that company. The benefit is generic.")
2289
+ });
2290
+ var companyPhilosophySchema = import_zod2.z.object({
2291
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2292
+ type: import_zod2.z.string().describe("Document type used for schema"),
2293
+ companyMission: import_zod2.z.optional(import_zod2.z.string()).describe("The mission statement of the company."),
2294
+ companyHow: import_zod2.z.optional(import_zod2.z.string()).describe("How does the company achieve its mission"),
2295
+ companyCulture: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("What are some of the culture aspects of this company?")
2296
+ });
2297
+ var companyNdgSchema = import_zod2.z.object({
2298
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2299
+ type: import_zod2.z.string().describe("Document type used for schema"),
2300
+ companyWow: import_zod2.z.optional(import_zod2.z.string()).describe("What is the wow of this company?"),
2301
+ companyNdgTake: import_zod2.z.optional(import_zod2.z.string()).describe("What is the NDG POV on this company?"),
2302
+ companyBestFit: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
2303
+ companyInterests: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string()))
2304
+ });
2305
+ var foundingInformationSchema = import_zod2.z.object({
2306
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2307
+ type: import_zod2.z.string().describe("Document type used for schema"),
2308
+ foundedDate: import_zod2.z.optional(import_zod2.z.string()),
2309
+ foundedCountry: import_zod2.z.optional(import_zod2.z.string()),
2310
+ foundedCity: import_zod2.z.optional(import_zod2.z.string()),
2311
+ founders: import_zod2.z.optional(import_zod2.z.array(personSchema))
2312
+ });
2313
+ var ngdMetadataSchema = import_zod2.z.object({
2314
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2315
+ type: import_zod2.z.string().describe("Document type used for schema"),
2316
+ lastScraped: import_zod2.z.optional(import_zod2.z.string()).describe("Date the last entity was scraped, if applicable"),
2317
+ scraperVersion: import_zod2.z.optional(import_zod2.z.string()),
2318
+ postProcessorVersion: import_zod2.z.optional(import_zod2.z.string()),
2319
+ uniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
2320
+ postProcessorUniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
2321
+ isScrapeManaged: import_zod2.z.optional(import_zod2.z.boolean()).default(true)
2322
+ });
2323
+ var companySchema = import_zod2.z.object({
2324
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2325
+ id: import_zod2.z.string().describe("The NDG specific id for a company. Cannot be changed."),
2326
+ createdAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2327
+ updatedAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2328
+ companyName: import_zod2.z.string().describe("The name of the company"),
2329
+ slug: import_zod2.z.string().describe("The NDG specific slug for a company."),
2330
+ type: import_zod2.z.string().describe("Document type used for schema"),
2331
+ logo: import_zod2.z.optional(imageSchema).describe("The logo of the company"),
2332
+ companyWebsite: import_zod2.z.optional(import_zod2.z.string()).describe("The website of the company"),
2333
+ socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the company"),
2334
+ brandColor: import_zod2.z.optional(import_zod2.z.string()).describe("The brand color of the company"),
2335
+ companyCareers: import_zod2.z.optional(companyCareersSchema).describe("Career Specific Information for the company."),
2336
+ companyPhilosophy: import_zod2.z.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
2337
+ companyNdg: import_zod2.z.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
2338
+ foundingInfo: import_zod2.z.optional(foundingInformationSchema),
2339
+ headquartersLocation: import_zod2.z.optional(placeSchema),
2340
+ employeeEstimate: import_zod2.z.optional(import_zod2.z.string()),
2341
+ publishStatus: import_zod2.z.optional(import_zod2.z.string()),
2342
+ ngdMetadata: import_zod2.z.optional(ngdMetadataSchema)
2343
+ });
2344
+ var officeSchema = import_zod2.z.object({
2345
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2346
+ type: import_zod2.z.string().describe("Document type used for schema"),
2347
+ name: import_zod2.z.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
2348
+ officeType: OfficeTypeEnum,
2349
+ companyId: import_zod2.z.optional(companySchema),
2350
+ geoLocation: import_zod2.z.optional(placeSchema).describe("Geographical location details: coordinates + postal address"),
2351
+ createdAt: import_zod2.z.optional(import_zod2.z.string()),
2352
+ updatedAt: import_zod2.z.optional(import_zod2.z.string())
2353
+ });
2418
2354
 
2419
- // src/lib/mappings.ts
2420
- var employmentTypeDisplayText = {
2421
- FULL_TIME: {
2422
- en: "Full Time"
2423
- },
2424
- INTERNSHIP: {
2425
- en: "Internship"
2426
- },
2427
- OTHER: {
2428
- en: "Other"
2429
- },
2430
- PART_TIME: {
2431
- en: "Part Time"
2432
- },
2433
- PER_DIEM: {
2434
- en: "Per-Diem"
2435
- },
2436
- TEMPORARY: {
2437
- en: "Temporary"
2438
- },
2439
- CONTRACT: {
2440
- en: "Contract"
2441
- }
2442
- };
2443
- var unitTextDisplayText = {
2444
- DAY: {
2445
- en: "Day"
2446
- },
2447
- HOUR: {
2448
- en: "Hour"
2449
- },
2450
- MONTH: {
2451
- en: "Month"
2452
- },
2453
- PER_ACTIVITY: {
2454
- en: "Per Activity"
2455
- },
2456
- WEEK: {
2457
- en: "Week"
2458
- },
2459
- YEAR: {
2460
- en: "Year"
2461
- }
2462
- };
2463
- var currencyDisplayText = {
2464
- EUR: {
2465
- en: "\u20AC"
2466
- },
2467
- GBP: {
2468
- en: "\xA3"
2469
- },
2470
- USD: {
2471
- en: "$"
2472
- }
2473
- };
2474
- var employmentLevelDisplayText = {
2475
- DIRECTOR: {
2476
- en: "Director"
2477
- },
2478
- ENTRY_LEVEL: {
2479
- en: "Entry Level"
2480
- },
2481
- EXECUTIVE: {
2482
- en: "Executive"
2483
- },
2484
- EXPERIENCED: {
2485
- en: "Experienced"
2486
- },
2487
- INTERN: {
2488
- en: "Intern"
2489
- },
2490
- MANAGER: {
2491
- en: "Manager"
2492
- }
2493
- };
2494
- var jobFunctionDisplayText = {
2495
- CLINICAL_RESEARCH: {
2496
- en: "Clinical Research"
2497
- },
2498
- CUSTOMER_SUCCESS: {
2499
- en: "Customer Success"
2500
- },
2501
- DATA_ANALYTICS: {
2502
- en: "Data Analytics"
2503
- },
2504
- FINANCE_AND_AUDIT: {
2505
- en: "Finance and Audit"
2506
- },
2507
- MARKETING: {
2508
- en: "Marketing"
2509
- },
2510
- OPERATIONS: {
2511
- en: "Operations"
2512
- },
2513
- PEOPLE_HUMAN_RESOURCES: {
2514
- en: "People Human Resources"
2515
- },
2516
- PRODUCT_AND_TECH: {
2517
- en: "Product and Tech"
2518
- },
2519
- QUALITY_ASSURANCE_AND_OUTCOMES: {
2520
- en: "Quality Assurance and Outcomes"
2521
- },
2522
- SALES_AND_BUSINESS_DEVELOPMENT: {
2523
- en: "Sales and Business Development"
2524
- },
2525
- STRATEGY_AND_CONSULTING: {
2526
- en: "Strategy and Consulting"
2527
- }
2528
- };
2529
- var bestFitDisplayText = {
2530
- DENTIST: {
2531
- en: "Dentist"
2532
- },
2533
- DIETICIAN: {
2534
- en: "Dietician"
2535
- },
2536
- DOULA: {
2537
- en: "Doula"
2538
- },
2539
- MEDICAL_ASSISTANT: {
2540
- en: "Medical Assistant"
2541
- },
2542
- MIDWIFE: {
2543
- en: "Midwife"
2544
- },
2545
- NURSE: {
2546
- en: "Nurse"
2547
- },
2548
- OCCUPATIONAL_THERAPIST: {
2549
- en: "Occupational Therapist"
2550
- },
2551
- PHARMACIST: {
2552
- en: "Pharmacist"
2553
- },
2554
- PHYSICAL_THERAPIST: {
2555
- en: "Physical Therapist"
2556
- },
2557
- PHYSICIAN: {
2558
- en: "Physician"
2559
- },
2560
- PHYSICIAN_ASSISTANT: {
2561
- en: "Physician Assistant"
2562
- },
2563
- PSYCHOLOGIST: {
2564
- en: "Psychologist"
2565
- },
2566
- RADIOLOGIST: {
2567
- en: "Radiologist"
2568
- },
2569
- SOCIAL_WORKER: {
2570
- en: "Social Worker"
2571
- },
2572
- SPEECH_LANGUAGE_PATHOLOGIST: {
2573
- en: "Speech Language Pathologist"
2574
- },
2575
- SURGEON: {
2576
- en: "Surgeon"
2355
+ // src/types/latest/job_posting_service_latest.ts
2356
+ var import_zod3 = require("zod");
2357
+ var TypeEnum3 = import_zod3.z.enum(["JOB_POST"]);
2358
+ var JobLocationTypeEnum = import_zod3.z.enum(["FLOAT", "HYBRID", "ONSITE", "REMOTE"]);
2359
+ var EmploymentTypeEnum = import_zod3.z.enum(["CONTRACT", "FULL_TIME", "INTERNSHIP", "OTHER", "PART_TIME", "PER_DIEM", "TEMPORARY"]);
2360
+ var EmploymentLevelEnum = import_zod3.z.enum(["DIRECTOR", "ENTRY_LEVEL", "EXECUTIVE", "EXPERIENCED", "INTERN", "MANAGER"]);
2361
+ var JobFunctionEnum = import_zod3.z.enum(["CLINICAL_RESEARCH", "CUSTOMER_SUCCESS", "DATA_ANALYTICS", "FINANCE_AND_AUDIT", "MARKETING", "OPERATIONS", "PEOPLE_HUMAN_RESOURCES", "PRODUCT_AND_TECH", "QUALITY_ASSURANCE_AND_OUTCOMES", "SALES_AND_BUSINESS_DEVELOPMENT", "STRATEGY_AND_CONSULTING"]);
2362
+ var PublishStatusEnum2 = import_zod3.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
2363
+ var BestFitEnum = import_zod3.z.enum(["DENTIST", "DIETICIAN", "DOULA", "MEDICAL_ASSISTANT", "MIDWIFE", "NURSE", "OCCUPATIONAL_THERAPIST", "PHARMACIST", "PHYSICAL_THERAPIST", "PHYSICIAN", "PHYSICIAN_ASSISTANT", "PSYCHOLOGIST", "RADIOLOGIST", "SOCIAL_WORKER", "SPEECH_LANGUAGE_PATHOLOGIST", "SURGEON"]);
2364
+ var ClinicalLicenseEnum = import_zod3.z.enum(["CNA", "CNM", "CNS", "COTA", "CRNA", "LPN", "LVN", "NP", "OT", "PT", "PTA", "RN"]);
2365
+ var ShiftEnum = import_zod3.z.enum(["DAY", "EIGHT_HOUR", "EVENING", "FLEXIBLE", "MID_SHIFT", "MONDAY_TO_FRIDAY", "NIGHT", "ON_CALL", "TEN_HOUR", "TWELVE_HOUR", "WEEKENDS"]);
2366
+ var ClinicalSettingEnum = import_zod3.z.enum(["ACUTE_CARE", "AMBULATORY_SURGERY_CENTER", "CLINIC", "HOME_HEALTH", "HOSPITAL", "INPATIENT", "LONG_TERM_CARE", "MED_SPA", "NURSING_HOME", "OFFICE", "OUTPATIENT", "PRIVATE_PRACTICE", "REHAB_CENTER", "SCHOOL", "SKILLED_NURSING_FACILITY"]);
2367
+ var ClinicalSpecialtyEnum = import_zod3.z.enum(["ANESTHESIOLOGY", "CARDIOLOGY", "CASE_MANAGEMENT", "CHRONIC_PAIN", "CLINICAL_ELECTROPHYSIOLOGY", "CRITICAL_AND_ACUTE_CARE", "DERMATOLOGY", "DIALYSIS", "EMERGENCY_MEDICINE", "ENDOCRINOLOGY", "ERGONOMICS", "FEEDING_EATING_AND_SWALLOWING", "GASTROENTEROLOGY", "GERIATRICS", "HAND_THERAPY", "HEMATOLOGY", "HOLISTIC_MEDICINE", "INFORMATICS", "INTERNAL_MEDICINE", "LABOR_AND_DELIVERY", "MANUAL_THERAPY", "MED_SURG", "MENTAL_HEALTH", "NEPHROLOGY", "NEUROLOGY", "ONCOLOGY", "ORTHOPEDICS", "OTOLARYNGOLOGY", "PEDIATRICS", "PHYSICAL_AND_REHABILITATION_MEDICINE", "PLASTIC_SURGERY", "PRIMARY_CARE", "PSYCHIATRY", "PULMONOLOGY", "RADIOLOGY", "SENSORY", "SPORTS", "SURGERY", "TRAUMA_MEDICINE", "URGENT_CARE", "UROLOGY", "VISION", "WOMENS_HEALTH", "WOUND_AND_BURN_CARE"]);
2368
+ var jobPostSchema = import_zod3.z.object({
2369
+ version: import_zod3.z.literal("1.0.0").default("1.0.0"),
2370
+ id: import_zod3.z.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed."),
2371
+ type: import_zod3.z.string().describe("Document type used for schema"),
2372
+ createdAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2373
+ updatedAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2374
+ dateAdded: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was added to the platform"),
2375
+ datePosted: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was published for public viewing"),
2376
+ dateRemoved: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was removed from public viewing"),
2377
+ validThrough: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job posting is valid through. After this date it will be removed from public viewing"),
2378
+ vacancyCount: import_zod3.z.optional(import_zod3.z.number().int()).describe("The number of vacancies for a given job posting"),
2379
+ clientId: import_zod3.z.string().describe("The ID assigned by the client to a job - normally the same as the GH / Lever / Ashby ID or internal ID"),
2380
+ url: import_zod3.z.string().describe("The URL of the job to be displayed for users to apply with. Direct job link."),
2381
+ title: import_zod3.z.string().describe("The title of the job post"),
2382
+ description: import_zod3.z.string().describe("The description of the job post saved as markdown. Used for rendering the job description."),
2383
+ richTextDescription: import_zod3.z.optional(import_zod3.z.string()).describe("The description of the job post saved as rich text"),
2384
+ isClinical: import_zod3.z.boolean().default(false).describe("Denotes if a job posting is clinical in nature or not. A role is clinical if it requires direct clinical patient care."),
2385
+ isRemote: import_zod3.z.boolean().default(false).describe("Denotes if a job posting is remote in nature. For a posting to be 'remote' it must be 100% remote (e.g hybrid roles would denote this to false)."),
2386
+ isVerified: import_zod3.z.boolean().default(false).describe("Denotes if a job posting has been manually verified - and thus ALL fields can be considered accurate. Can be used for DS training."),
2387
+ isDirectApply: import_zod3.z.boolean().default(false).describe("Denotes if a job posting url is direct apply. To be direct apply a user must be able to apply to the role without logging in and under 2 clicks."),
2388
+ jobLocationType: import_zod3.z.optional(import_zod3.z.array(JobLocationTypeEnum)),
2389
+ employmentType: import_zod3.z.optional(import_zod3.z.array(EmploymentTypeEnum)),
2390
+ employmentLevel: import_zod3.z.optional(EmploymentLevelEnum),
2391
+ jobFunction: import_zod3.z.optional(JobFunctionEnum),
2392
+ publishStatus: PublishStatusEnum2,
2393
+ bestFit: import_zod3.z.optional(import_zod3.z.array(BestFitEnum)),
2394
+ clinicalLicense: import_zod3.z.optional(import_zod3.z.array(ClinicalLicenseEnum)),
2395
+ shift: import_zod3.z.optional(import_zod3.z.array(ShiftEnum)),
2396
+ clinicalSetting: import_zod3.z.optional(import_zod3.z.array(ClinicalSettingEnum)),
2397
+ clinicalSpecialty: import_zod3.z.optional(import_zod3.z.array(ClinicalSpecialtyEnum)),
2398
+ estimatedSalary: import_zod3.z.optional(monetaryAmountSchema).describe("Determines the estimated salary for a given job posting"),
2399
+ jobLocation: import_zod3.z.optional(postalAddressSchema).describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
2400
+ applicableOffices: import_zod3.z.optional(import_zod3.z.array(officeSchema)).describe("The physical location(s) in which employees may be located for to be eligible for the job. Used in conjunction with job_location_type."),
2401
+ applicantLocationRequirements: import_zod3.z.optional(import_zod3.z.array(placeSchema)).describe("The geographic location(s) in which employees may be located for to be eligible for the job. The job description must clearly state that the applicant may be located in certain geographical location(s). This property is required if applicants may be located in one or more geographic locations and the job is 100% remote."),
2402
+ hiringOrganization: import_zod3.z.optional(companySchema).describe("The organization that is hiring for the role")
2403
+ });
2404
+
2405
+ // src/types/latest/custom/company_service_sanity.ts
2406
+ var import_zod5 = require("zod");
2407
+
2408
+ // src/types/latest/custom/custom_sanity_models.ts
2409
+ var import_zod4 = require("zod");
2410
+ var sanityReferenceSchema = import_zod4.z.object({
2411
+ _ref: import_zod4.z.string(),
2412
+ _type: import_zod4.z.string(),
2413
+ _key: import_zod4.z.optional(import_zod4.z.string())
2414
+ });
2415
+ var sanitySlugSchema = import_zod4.z.object({
2416
+ current: import_zod4.z.string(),
2417
+ _type: import_zod4.z.string(),
2418
+ _key: import_zod4.z.optional(import_zod4.z.string())
2419
+ });
2420
+
2421
+ // src/types/latest/custom/company_service_sanity.ts
2422
+ var foundingInformationSchema2 = foundingInformationSchema.extend({
2423
+ _type: import_zod5.z.string().describe("Document type used within sanity").default("companyFounding"),
2424
+ founders: import_zod5.z.optional(import_zod5.z.union([import_zod5.z.array(personSchema), import_zod5.z.array(sanityReferenceSchema)])).nullable(),
2425
+ founderList: import_zod5.z.optional(import_zod5.z.union([import_zod5.z.array(personSchema), import_zod5.z.array(sanityReferenceSchema)])).nullable()
2426
+ }).omit({ type: true }).strict().transform((data) => ({
2427
+ ...data,
2428
+ type: data._type,
2429
+ founders: data.founders || data.founderList || void 0
2430
+ })).transform(({ _type, founderList, ...rest }) => rest);
2431
+ var companyNdgSchema2 = companyNdgSchema.extend({
2432
+ _type: import_zod5.z.string().describe("Document type used within sanity").default("companyNDG"),
2433
+ companyNDGTake: import_zod5.z.string().nullable().describe("What is the NDG POV on this company?")
2434
+ }).omit({ type: true }).strict().transform((data) => ({
2435
+ ...data,
2436
+ type: data._type,
2437
+ companyNdgTake: data.companyNDGTake
2438
+ })).transform(({ _type, companyNDGTake, ...rest }) => rest);
2439
+ var ngdMetadataSchema2 = ngdMetadataSchema.extend({
2440
+ _type: import_zod5.z.string().describe("Document type used within sanity").default("ndgMetadata")
2441
+ }).omit({ type: true }).transform((data) => ({
2442
+ ...data,
2443
+ type: data._type
2444
+ })).transform(({ _type, ...rest }) => rest);
2445
+ var companyPhilosophySchema2 = companyPhilosophySchema.extend({
2446
+ _type: import_zod5.z.string().describe("Document type used within sanity").default("companyPhilosophy")
2447
+ }).omit({ type: true }).strict().transform((data) => ({
2448
+ ...data,
2449
+ type: data._type
2450
+ })).transform(({ _type, ...rest }) => rest);
2451
+ var companyCareersSchema2 = companyCareersSchema.extend({
2452
+ _type: import_zod5.z.string().describe("Document type used within sanity").default("companyCareers"),
2453
+ companyBenefits: import_zod5.z.optional(import_zod5.z.array(
2454
+ import_zod5.z.union([companyBenefitsSchema, sanityReferenceSchema])
2455
+ )).nullable().describe("What are the specific benefits of that company. The benefit is generic."),
2456
+ jobBoard: import_zod5.z.union([jobBoardSchema, sanityReferenceSchema]).nullable(),
2457
+ jobBoardSlug: import_zod5.z.optional(import_zod5.z.union([import_zod5.z.array(import_zod5.z.string()), import_zod5.z.array(sanitySlugSchema)]))
2458
+ }).omit({ type: true }).strict().transform((data) => ({
2459
+ ...data,
2460
+ type: data._type
2461
+ })).transform(({ _type, ...rest }) => rest);
2462
+ var companySchema2 = companySchema.extend({
2463
+ _id: import_zod5.z.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed."),
2464
+ _rev: import_zod5.z.string().nullable().describe("Revision number"),
2465
+ _type: import_zod5.z.string().describe("Document type used within sanity").default("company"),
2466
+ _createdAt: import_zod5.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2467
+ _updatedAt: import_zod5.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2468
+ companyCareers: companyCareersSchema2.nullable().describe("Career Specific Information for the company."),
2469
+ companyPhilosophy: companyPhilosophySchema2.nullable().describe("Company mission,values and how the company achieves its mission."),
2470
+ companyNDG: companyNdgSchema2.nullable().describe("Next Degree specific information for the company."),
2471
+ foundingInfo: foundingInformationSchema2.nullable(),
2472
+ slug: import_zod5.z.union([import_zod5.z.string(), sanitySlugSchema]).describe("The NDG specific slug for a company."),
2473
+ ndgMetadata: ngdMetadataSchema2.nullable(),
2474
+ logo: import_zod5.z.union([imageSchema, import_zod5.z.record(import_zod5.z.any())]).nullable().describe("The logo of the company"),
2475
+ //Deprecated Models
2476
+ logoImageURL: import_zod5.z.optional(import_zod5.z.string()).describe("The logo of the company"),
2477
+ industryList: import_zod5.z.optional(import_zod5.z.array(sanityReferenceSchema)).describe("The industry of the company")
2478
+ }).omit({ type: true, id: true, createdAt: true, updatedAt: true }).strict().transform((data) => ({
2479
+ ...data,
2480
+ type: data._type,
2481
+ id: data._id,
2482
+ createdAt: data._createdAt,
2483
+ updatedAt: data._updatedAt,
2484
+ rev: data._rev
2485
+ })).transform(({ _type, _id, _rev, _createdAt, _updatedAt, ...rest }) => rest);
2486
+
2487
+ // src/types/latest/custom/job_posting_service_sanity.ts
2488
+ var import_zod6 = require("zod");
2489
+ var JobPostTypeEnum = import_zod6.z.enum(["jobPost"]);
2490
+ var MonetaryAmountTypeEnum = import_zod6.z.enum(["monetaryAmount"]);
2491
+ var postalAddressSchema2 = postalAddressSchema.extend({
2492
+ _type: import_zod6.z.string().describe("Document type used within sanity").default("address")
2493
+ }).omit({ type: true }).strict().transform((data) => ({
2494
+ ...data,
2495
+ type: data._type
2496
+ })).transform(({ _type, ...rest }) => rest);
2497
+ var quantitativeValueSchema2 = quantitativeValueSchema.extend({
2498
+ _type: import_zod6.z.string().describe("Document type used within sanity").default("quantitativeValue")
2499
+ }).omit({ type: true }).strict().transform((data) => ({
2500
+ ...data,
2501
+ type: data._type
2502
+ })).transform(({ _type, ...rest }) => rest);
2503
+ var monetaryAmountSchema2 = monetaryAmountSchema.extend({
2504
+ _type: import_zod6.z.string().describe("Document type used within sanity").default("monetaryAmount"),
2505
+ value: quantitativeValueSchema2.optional().describe("The quantitative_value for a given salary")
2506
+ }).omit({ type: true }).strict().transform((data) => ({
2507
+ ...data,
2508
+ type: data._type
2509
+ })).transform(({ _type, ...rest }) => rest);
2510
+ var jobPostSchema2 = jobPostSchema.extend({
2511
+ // Override base fields with Sanity-specific fields
2512
+ _id: import_zod6.z.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed.").regex(/^ndg-.*-.*$/),
2513
+ _rev: import_zod6.z.string().optional().describe("Revision number"),
2514
+ _type: import_zod6.z.string().describe("Document type used within sanity").default("jobPost"),
2515
+ _createdAt: import_zod6.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2516
+ _updatedAt: import_zod6.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2517
+ // Override fields with new schemas
2518
+ estimatedSalary: monetaryAmountSchema2.optional().describe("Determines the estimated salary for a given job posting"),
2519
+ jobLocation: postalAddressSchema2.optional().describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
2520
+ // Add Sanity-specific fields
2521
+ ndgMetadata: import_zod6.z.record(import_zod6.z.any()).optional(),
2522
+ ndgID: import_zod6.z.string().optional(),
2523
+ hiringOrganization: import_zod6.z.optional(import_zod6.z.union([sanityReferenceSchema, companySchema])),
2524
+ raw: import_zod6.z.record(import_zod6.z.any()).optional(),
2525
+ isLoaded: import_zod6.z.boolean().default(false),
2526
+ isVerified: import_zod6.z.boolean().default(false),
2527
+ needsReview: import_zod6.z.boolean().default(false),
2528
+ schema_version: import_zod6.z.string().optional(),
2529
+ origin: import_zod6.z.string().optional(),
2530
+ temp: import_zod6.z.record(import_zod6.z.any()).optional(),
2531
+ applicationType: import_zod6.z.string().optional(),
2532
+ // Override clientId to use Sanity naming convention
2533
+ clientID: import_zod6.z.string()
2534
+ }).omit({ type: true, id: true, createdAt: true, updatedAt: true, clientId: true }).transform((data) => ({
2535
+ ...data,
2536
+ type: data._type,
2537
+ id: data._id,
2538
+ createdAt: data._createdAt,
2539
+ updatedAt: data._updatedAt,
2540
+ rev: data._rev
2541
+ })).transform(({ _type, _id, _rev, _createdAt, _updatedAt, ...rest }) => rest);
2542
+
2543
+ // src/lib/salaryRange.ts
2544
+ var CurrencyEnum2 = shared_pickle_output_latest_exports.CurrencyEnum;
2545
+ function salaryRange(salary, showUnitText = true) {
2546
+ if (!salary) return null;
2547
+ let min = salary.minValue;
2548
+ let max = salary.maxValue;
2549
+ let single = salary.singleValue;
2550
+ let value = salary.value;
2551
+ let unitText = "YEAR";
2552
+ const signs = {
2553
+ [CurrencyEnum2.Values.USD]: "$",
2554
+ [CurrencyEnum2.Values.GBP]: "\xA3",
2555
+ [CurrencyEnum2.Values.EUR]: "\u20AC"
2556
+ };
2557
+ const sign = signs[salary.currency ?? CurrencyEnum2.Values.USD];
2558
+ if (value != null && typeof value === "object") {
2559
+ min = value.minValue;
2560
+ max = value.maxValue;
2561
+ single = value.value;
2562
+ unitText = value.unitText;
2577
2563
  }
2564
+ if (unitText === "YEAR") unitText = " per year";
2565
+ if (unitText === "MONTH") unitText = " per month";
2566
+ if (unitText === "WEEK") unitText = " per week";
2567
+ if (unitText === "DAY") unitText = " per day";
2568
+ if (unitText === "PER_ACTIVITY") unitText = " per activity";
2569
+ if (unitText === "HOUR") unitText = " per hour";
2570
+ if (showUnitText === false) unitText = "";
2571
+ const isValid = (v) => v != null && v >= 0;
2572
+ if (!isValid(min) && !isValid(max) && !isValid(single)) return null;
2573
+ if (isValid(single)) return sign + single.toLocaleString() + unitText;
2574
+ if (min === max) return sign + min?.toLocaleString() + unitText;
2575
+ if (isValid(min) && isValid(max))
2576
+ return sign + min?.toLocaleString() + " - " + sign + max?.toLocaleString() + unitText;
2577
+ return null;
2578
+ }
2579
+
2580
+ // src/components/company/CompanyBenefits.tsx
2581
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2582
+ function CompanyBenefits({ benefits }) {
2583
+ if (!benefits) return null;
2584
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
2585
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg", children: "Company benefits" }),
2586
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
2587
+ ] });
2588
+ }
2589
+
2590
+ // src/components/company/CompanyInformation.tsx
2591
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2592
+ function CompanyInformation({
2593
+ name,
2594
+ how,
2595
+ mission,
2596
+ wow,
2597
+ website
2598
+ }) {
2599
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-2", children: [
2600
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2601
+ "h2",
2602
+ {
2603
+ "data-testid": "company-name",
2604
+ className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg",
2605
+ children: [
2606
+ "About ",
2607
+ name
2608
+ ]
2609
+ }
2610
+ ),
2611
+ how && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
2612
+ mission && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-2", children: [
2613
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: "\u{1F680}" }),
2614
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-base text-grey-80", children: [
2615
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "pr-1 font-bold", children: "Mission" }),
2616
+ mission
2617
+ ] })
2618
+ ] }),
2619
+ wow && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-2", children: [
2620
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: "\u{1F31F}" }),
2621
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-base text-grey-80", children: [
2622
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
2623
+ wow
2624
+ ] })
2625
+ ] }),
2626
+ website && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2627
+ LinkButton,
2628
+ {
2629
+ "data-testid": "company-website-link",
2630
+ href: website,
2631
+ target: "_blank",
2632
+ rel: "noopener noreferrer",
2633
+ children: "Website"
2634
+ }
2635
+ ) })
2636
+ ] });
2637
+ }
2638
+
2639
+ // src/components/company/CompanyTake.tsx
2640
+ var import_jsx_runtime36 = require("react/jsx-runtime");
2641
+ function CompanyTake({ content, avatarSrc }) {
2642
+ if (!content) return null;
2643
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2644
+ "div",
2645
+ {
2646
+ "data-testid": "company-take",
2647
+ className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
2648
+ children: [
2649
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
2650
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
2651
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "mt-8 flex w-full items-center gap-3", children: [
2652
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
2653
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
2654
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
2655
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
2656
+ ] })
2657
+ ] })
2658
+ ]
2659
+ }
2660
+ );
2661
+ }
2662
+
2663
+ // src/components/jobPost/JobDescription.tsx
2664
+ var import_jsx_runtime37 = require("react/jsx-runtime");
2665
+ function JobDescription({ description }) {
2666
+ if (!description) return null;
2667
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
2668
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
2669
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ReadMore, { text: description })
2670
+ ] });
2671
+ }
2672
+
2673
+ // src/components/jobPost/JobHeader.tsx
2674
+ var import_lucide_react18 = require("lucide-react");
2675
+ var import_image = __toESM(require("next/image"), 1);
2676
+
2677
+ // src/components/buttons/BackButton.tsx
2678
+ var import_lucide_react16 = require("lucide-react");
2679
+ var import_navigation2 = require("next/navigation");
2680
+
2681
+ // src/hooks/useWindowHistory.ts
2682
+ var import_react17 = require("react");
2683
+
2684
+ // src/contexts/WindowHistoryProvider.tsx
2685
+ var import_navigation = require("next/navigation");
2686
+ var import_react16 = require("react");
2687
+ var import_jsx_runtime38 = require("react/jsx-runtime");
2688
+ var WindowHistoryContext = (0, import_react16.createContext)({});
2689
+ function WindowHistoryProvider({ children }) {
2690
+ const [history, setHistory] = (0, import_react16.useState)([]);
2691
+ const searchParams = (0, import_navigation.useSearchParams)();
2692
+ (0, import_react16.useEffect)(() => {
2693
+ setHistory(
2694
+ (prev) => prev.at(-1) === window.location.href ? prev : [...prev, window.location.href]
2695
+ );
2696
+ }, [searchParams]);
2697
+ const contextValue = (0, import_react16.useMemo)(() => ({ history }), [history]);
2698
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WindowHistoryContext.Provider, { value: contextValue, children });
2699
+ }
2700
+
2701
+ // src/hooks/useWindowHistory.ts
2702
+ function useWindowHistory() {
2703
+ const windowHistoryContext = (0, import_react17.useContext)(WindowHistoryContext);
2704
+ return windowHistoryContext;
2705
+ }
2706
+
2707
+ // src/components/buttons/BackButton.tsx
2708
+ var import_jsx_runtime39 = require("react/jsx-runtime");
2709
+ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
2710
+ const { history } = useWindowHistory();
2711
+ const router = (0, import_navigation2.useRouter)();
2712
+ const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(new URL(r).pathname));
2713
+ const goBack = () => {
2714
+ const previous = history[history.length - 2];
2715
+ if (history.length > 1 && isAcceptedRoute(previous)) {
2716
+ router.back();
2717
+ } else {
2718
+ router.push(fallbackHref ?? "/");
2719
+ }
2720
+ };
2721
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2722
+ Icon,
2723
+ {
2724
+ "aria-label": "back button",
2725
+ variant: "transparent",
2726
+ size: "small",
2727
+ onClick: goBack,
2728
+ className,
2729
+ ...props,
2730
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react16.X, {})
2731
+ }
2732
+ );
2733
+ }
2734
+
2735
+ // src/lib/icons.ts
2736
+ var import_lucide_react17 = require("lucide-react");
2737
+ var iconMap = {
2738
+ house: import_lucide_react17.Home,
2739
+ layers: import_lucide_react17.Layers,
2740
+ users: import_lucide_react17.Users,
2741
+ settings: import_lucide_react17.Settings,
2742
+ building: import_lucide_react17.Building,
2743
+ bell: import_lucide_react17.Bell,
2744
+ wallet: import_lucide_react17.Wallet,
2745
+ contact: import_lucide_react17.Contact,
2746
+ banknote: import_lucide_react17.Banknote,
2747
+ "message-square-dot": import_lucide_react17.MessageSquareDot,
2748
+ "life-buoy": import_lucide_react17.LifeBuoy,
2749
+ "building-2": import_lucide_react17.Building2,
2750
+ "gallery-vertical-end": import_lucide_react17.GalleryVerticalEnd,
2751
+ "square-kanban": import_lucide_react17.SquareKanban,
2752
+ "briefcase-business": import_lucide_react17.BriefcaseBusiness,
2753
+ "circle-user": import_lucide_react17.CircleUser,
2754
+ "key-round": import_lucide_react17.KeyRound,
2755
+ "clock-2": import_lucide_react17.Clock2,
2756
+ "circle-user-round": import_lucide_react17.CircleUserRound,
2757
+ "map-pin": import_lucide_react17.MapPin
2578
2758
  };
2579
- var clinicalSpecialtyDisplayText = {
2580
- ANESTHESIOLOGY: {
2581
- en: "Anesthesiology"
2582
- },
2583
- CARDIOLOGY: {
2584
- en: "Cardiology"
2585
- },
2586
- CARDIOVASCULAR_AND_PULMONARY: {
2587
- en: "Cardiovascular and Pulmonary"
2588
- },
2589
- CASE_MANAGEMENT: {
2590
- en: "Case Management"
2591
- },
2592
- CHRONIC_PAIN: {
2593
- en: "Chronic Pain"
2594
- },
2595
- CLINICAL_ELECTROPHYSIOLOGY: {
2596
- en: "Clinical Electrophysiology"
2597
- },
2598
- CRITICAL_AND_ACUTE_CARE: {
2599
- en: "Critical and Acute Care"
2600
- },
2601
- DERMATOLOGY: {
2602
- en: "Dermatology"
2603
- },
2604
- DIALYSIS: {
2605
- en: "Dialysis"
2606
- },
2607
- EMERGENCY_MEDICINE: {
2608
- en: "Emergency Medicine"
2609
- },
2610
- ENDOCRINOLOGY: {
2611
- en: "Endocrinology"
2612
- },
2613
- ERGONOMICS: {
2614
- en: "Ergonomics"
2615
- },
2616
- FEEDING_EATING_AND_SWALLOWING: {
2617
- en: "Feeding, Eating, and Swallowing"
2618
- },
2619
- GASTROENTEROLOGY: {
2620
- en: "Gastroenterology"
2621
- },
2622
- GERIATRICS: {
2623
- en: "Geriatrics"
2624
- },
2625
- HAND_THERAPY: {
2626
- en: "Hand Therapy"
2627
- },
2628
- HEMATOLOGY: {
2629
- en: "Hematology"
2630
- },
2631
- HOLISTIC_MEDICINE: {
2632
- en: "Holistic Medicine"
2633
- },
2634
- INFORMATICS: {
2635
- en: "Informatics"
2636
- },
2637
- INTERNAL_MEDICINE: {
2638
- en: "Internal Medicine"
2639
- },
2640
- LABOR_AND_DELIVERY: {
2641
- en: "Labor and Delivery"
2759
+
2760
+ // src/components/jobPost/JobHeader.tsx
2761
+ var import_jsx_runtime40 = require("react/jsx-runtime");
2762
+ function JobHeader({
2763
+ title,
2764
+ subtitles,
2765
+ standalone,
2766
+ bannerSrc,
2767
+ avatarSrc,
2768
+ avatarName,
2769
+ avatarHref,
2770
+ backFallbackHref,
2771
+ backAcceptedRoutes,
2772
+ actions,
2773
+ tags
2774
+ }) {
2775
+ const renderIcon = (icon) => {
2776
+ const Icon2 = iconMap[icon];
2777
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon2, { size: 18 });
2778
+ };
2779
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2780
+ "div",
2781
+ {
2782
+ "data-testid": "job-header-root",
2783
+ className: cn(
2784
+ "-mt-8 flex w-full flex-col items-center justify-between gap-6 md:-mt-0",
2785
+ !standalone && "rounded-3xl"
2786
+ ),
2787
+ children: [
2788
+ !standalone && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative flex min-h-16 w-full items-center rounded-t-3xl bg-transparent md:min-h-24 md:flex-row lg:min-h-32", children: [
2789
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2790
+ import_image.default,
2791
+ {
2792
+ className: "h-full w-full rounded-t-3xl object-cover",
2793
+ src: bannerSrc,
2794
+ alt: "job banner",
2795
+ fill: true
2796
+ }
2797
+ ),
2798
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2799
+ BackButton,
2800
+ {
2801
+ acceptedRoutes: backAcceptedRoutes,
2802
+ fallbackHref: backFallbackHref,
2803
+ className: "absolute right-2 top-2 flex items-center justify-center text-white sm:hidden",
2804
+ "data-testid": "job-header-back-button"
2805
+ }
2806
+ ),
2807
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2808
+ "div",
2809
+ {
2810
+ className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
2811
+ "data-testid": "job-header-avatar",
2812
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2813
+ Avatar,
2814
+ {
2815
+ size: "large",
2816
+ target: "_blank",
2817
+ href: avatarHref,
2818
+ name: avatarName,
2819
+ src: avatarSrc,
2820
+ rel: "noopener noreferrer"
2821
+ }
2822
+ )
2823
+ }
2824
+ )
2825
+ ] }),
2826
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
2827
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
2828
+ standalone && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2829
+ Avatar,
2830
+ {
2831
+ size: "large",
2832
+ target: "_blank",
2833
+ href: avatarHref,
2834
+ name: avatarName,
2835
+ src: avatarSrc,
2836
+ rel: "noopener noreferrer"
2837
+ }
2838
+ ) }),
2839
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2840
+ "div",
2841
+ {
2842
+ "data-testid": `job-header-subtitle-${i}`,
2843
+ className: "flex items-center",
2844
+ children: [
2845
+ subtitle,
2846
+ i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react18.Dot, { className: "mx-1 shrink-0", size: 10 })
2847
+ ]
2848
+ },
2849
+ subtitle
2850
+ )) })
2851
+ ] }),
2852
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2853
+ "div",
2854
+ {
2855
+ "data-testid": "job-header-content",
2856
+ className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
2857
+ children: [
2858
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2859
+ "h2",
2860
+ {
2861
+ "data-testid": "job-header-title",
2862
+ className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg",
2863
+ children: title
2864
+ }
2865
+ ),
2866
+ !!actions && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2867
+ "div",
2868
+ {
2869
+ className: "flex w-full justify-end gap-2 md:w-auto",
2870
+ "data-testid": "job-header-actions",
2871
+ children: actions
2872
+ }
2873
+ )
2874
+ ]
2875
+ }
2876
+ ),
2877
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2878
+ "div",
2879
+ {
2880
+ "data-testid": "job-header-tags",
2881
+ className: "flex flex-row flex-wrap items-center justify-start gap-2",
2882
+ children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
2883
+ Chip_default,
2884
+ {
2885
+ size: "small",
2886
+ variant: "neutral",
2887
+ "aria-label": name,
2888
+ "data-testid": `job-header-tag-${name}`,
2889
+ children: [
2890
+ renderIcon(icon),
2891
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: label })
2892
+ ]
2893
+ },
2894
+ name
2895
+ ))
2896
+ }
2897
+ )
2898
+ ] })
2899
+ ]
2900
+ }
2901
+ );
2902
+ }
2903
+
2904
+ // src/components/jobPost/JobPost.tsx
2905
+ var DateFns = __toESM(require("date-fns"), 1);
2906
+
2907
+ // src/hooks/useDisplayText.ts
2908
+ var import_react18 = require("react");
2909
+
2910
+ // src/lib/mappings.ts
2911
+ var employmentTypeDisplayText = {
2912
+ FULL_TIME: {
2913
+ en: "Full Time"
2642
2914
  },
2643
- MANUAL_THERAPY: {
2644
- en: "Manual Therapy"
2915
+ INTERNSHIP: {
2916
+ en: "Internship"
2645
2917
  },
2646
- MED_SURG: {
2647
- en: "Medical-Surgical"
2918
+ OTHER: {
2919
+ en: "Other"
2648
2920
  },
2649
- MENTAL_HEALTH: {
2650
- en: "Mental Health"
2921
+ PART_TIME: {
2922
+ en: "Part Time"
2651
2923
  },
2652
- NEPHROLOGY: {
2653
- en: "Nephrology"
2924
+ PER_DIEM: {
2925
+ en: "Per-Diem"
2654
2926
  },
2655
- NEUROLOGY: {
2656
- en: "Neurology"
2927
+ TEMPORARY: {
2928
+ en: "Temporary"
2657
2929
  },
2658
- ONCOLOGY: {
2659
- en: "Oncology"
2930
+ CONTRACT: {
2931
+ en: "Contract"
2932
+ }
2933
+ };
2934
+ var unitTextDisplayText = {
2935
+ DAY: {
2936
+ en: "Day"
2660
2937
  },
2661
- ORTHOPEDICS: {
2662
- en: "Orthopedics"
2938
+ HOUR: {
2939
+ en: "Hour"
2663
2940
  },
2664
- OTOLARYNGOLOGY: {
2665
- en: "Otolaryngology"
2941
+ MONTH: {
2942
+ en: "Month"
2666
2943
  },
2667
- PEDIATRICS: {
2668
- en: "Pediatrics"
2944
+ PER_ACTIVITY: {
2945
+ en: "Per Activity"
2669
2946
  },
2670
- PHYSICAL_AND_REHABILITATION_MEDICINE: {
2671
- en: "Physical and Rehabilitation Medicine"
2947
+ WEEK: {
2948
+ en: "Week"
2672
2949
  },
2673
- PLASTIC_SURGERY: {
2674
- en: "Plastic Surgery"
2950
+ YEAR: {
2951
+ en: "Year"
2952
+ }
2953
+ };
2954
+ var currencyDisplayText = {
2955
+ EUR: {
2956
+ en: "\u20AC"
2675
2957
  },
2676
- PRIMARY_CARE: {
2677
- en: "Primary Care"
2958
+ GBP: {
2959
+ en: "\xA3"
2678
2960
  },
2679
- PSYCHIATRY: {
2680
- en: "Psychiatry"
2961
+ USD: {
2962
+ en: "$"
2963
+ }
2964
+ };
2965
+ var employmentLevelDisplayText = {
2966
+ DIRECTOR: {
2967
+ en: "Director"
2681
2968
  },
2682
- PULMONOLOGY: {
2683
- en: "Pulmonology"
2969
+ ENTRY_LEVEL: {
2970
+ en: "Entry Level"
2684
2971
  },
2685
- RADIOLOGY: {
2686
- en: "Radiology"
2972
+ EXECUTIVE: {
2973
+ en: "Executive"
2687
2974
  },
2688
- SENSORY: {
2689
- en: "Sensory"
2975
+ EXPERIENCED: {
2976
+ en: "Experienced"
2690
2977
  },
2691
- SPORTS: {
2692
- en: "Sports"
2978
+ INTERN: {
2979
+ en: "Intern"
2693
2980
  },
2694
- SURGERY: {
2695
- en: "Surgery"
2981
+ MANAGER: {
2982
+ en: "Manager"
2983
+ }
2984
+ };
2985
+ var jobFunctionDisplayText = {
2986
+ CLINICAL_RESEARCH: {
2987
+ en: "Clinical Research"
2696
2988
  },
2697
- TRANSPLANT_SURGERY: {
2698
- en: "Transplant Surgery"
2989
+ CUSTOMER_SUCCESS: {
2990
+ en: "Customer Success"
2699
2991
  },
2700
- TRAUMA_MEDICINE: {
2701
- en: "Trauma Medicine"
2992
+ DATA_ANALYTICS: {
2993
+ en: "Data Analytics"
2702
2994
  },
2703
- URGENT_CARE: {
2704
- en: "Urgent Care"
2995
+ FINANCE_AND_AUDIT: {
2996
+ en: "Finance and Audit"
2705
2997
  },
2706
- UROLOGY: {
2707
- en: "Urology"
2998
+ MARKETING: {
2999
+ en: "Marketing"
2708
3000
  },
2709
- VISION: {
2710
- en: "Vision"
3001
+ OPERATIONS: {
3002
+ en: "Operations"
2711
3003
  },
2712
- WOMENS_HEALTH: {
2713
- en: "Women's Health"
3004
+ PEOPLE_HUMAN_RESOURCES: {
3005
+ en: "People Human Resources"
3006
+ },
3007
+ PRODUCT_AND_TECH: {
3008
+ en: "Product and Tech"
3009
+ },
3010
+ QUALITY_ASSURANCE_AND_OUTCOMES: {
3011
+ en: "Quality Assurance and Outcomes"
3012
+ },
3013
+ SALES_AND_BUSINESS_DEVELOPMENT: {
3014
+ en: "Sales and Business Development"
3015
+ },
3016
+ STRATEGY_AND_CONSULTING: {
3017
+ en: "Strategy and Consulting"
3018
+ }
3019
+ };
3020
+ var bestFitDisplayText = {
3021
+ DENTIST: {
3022
+ en: "Dentist"
3023
+ },
3024
+ DIETICIAN: {
3025
+ en: "Dietician"
3026
+ },
3027
+ DOULA: {
3028
+ en: "Doula"
3029
+ },
3030
+ MEDICAL_ASSISTANT: {
3031
+ en: "Medical Assistant"
3032
+ },
3033
+ MIDWIFE: {
3034
+ en: "Midwife"
3035
+ },
3036
+ NURSE: {
3037
+ en: "Nurse"
3038
+ },
3039
+ OCCUPATIONAL_THERAPIST: {
3040
+ en: "Occupational Therapist"
3041
+ },
3042
+ PHARMACIST: {
3043
+ en: "Pharmacist"
3044
+ },
3045
+ PHYSICAL_THERAPIST: {
3046
+ en: "Physical Therapist"
3047
+ },
3048
+ PHYSICIAN: {
3049
+ en: "Physician"
3050
+ },
3051
+ PHYSICIAN_ASSISTANT: {
3052
+ en: "Physician Assistant"
3053
+ },
3054
+ PSYCHOLOGIST: {
3055
+ en: "Psychologist"
3056
+ },
3057
+ RADIOLOGIST: {
3058
+ en: "Radiologist"
3059
+ },
3060
+ SOCIAL_WORKER: {
3061
+ en: "Social Worker"
3062
+ },
3063
+ SPEECH_LANGUAGE_PATHOLOGIST: {
3064
+ en: "Speech Language Pathologist"
3065
+ },
3066
+ SURGEON: {
3067
+ en: "Surgeon"
3068
+ }
3069
+ };
3070
+ var clinicalSpecialtyDisplayText = {
3071
+ ANESTHESIOLOGY: {
3072
+ en: "Anesthesiology"
3073
+ },
3074
+ CARDIOLOGY: {
3075
+ en: "Cardiology"
3076
+ },
3077
+ CARDIOVASCULAR_AND_PULMONARY: {
3078
+ en: "Cardiovascular and Pulmonary"
3079
+ },
3080
+ CASE_MANAGEMENT: {
3081
+ en: "Case Management"
3082
+ },
3083
+ CHRONIC_PAIN: {
3084
+ en: "Chronic Pain"
3085
+ },
3086
+ CLINICAL_ELECTROPHYSIOLOGY: {
3087
+ en: "Clinical Electrophysiology"
3088
+ },
3089
+ CRITICAL_AND_ACUTE_CARE: {
3090
+ en: "Critical and Acute Care"
3091
+ },
3092
+ DERMATOLOGY: {
3093
+ en: "Dermatology"
3094
+ },
3095
+ DIALYSIS: {
3096
+ en: "Dialysis"
3097
+ },
3098
+ EMERGENCY_MEDICINE: {
3099
+ en: "Emergency Medicine"
3100
+ },
3101
+ ENDOCRINOLOGY: {
3102
+ en: "Endocrinology"
3103
+ },
3104
+ ERGONOMICS: {
3105
+ en: "Ergonomics"
3106
+ },
3107
+ FEEDING_EATING_AND_SWALLOWING: {
3108
+ en: "Feeding, Eating, and Swallowing"
3109
+ },
3110
+ GASTROENTEROLOGY: {
3111
+ en: "Gastroenterology"
3112
+ },
3113
+ GERIATRICS: {
3114
+ en: "Geriatrics"
3115
+ },
3116
+ HAND_THERAPY: {
3117
+ en: "Hand Therapy"
3118
+ },
3119
+ HEMATOLOGY: {
3120
+ en: "Hematology"
3121
+ },
3122
+ HOLISTIC_MEDICINE: {
3123
+ en: "Holistic Medicine"
3124
+ },
3125
+ INFORMATICS: {
3126
+ en: "Informatics"
3127
+ },
3128
+ INTERNAL_MEDICINE: {
3129
+ en: "Internal Medicine"
3130
+ },
3131
+ LABOR_AND_DELIVERY: {
3132
+ en: "Labor and Delivery"
3133
+ },
3134
+ MANUAL_THERAPY: {
3135
+ en: "Manual Therapy"
3136
+ },
3137
+ MED_SURG: {
3138
+ en: "Medical-Surgical"
3139
+ },
3140
+ MENTAL_HEALTH: {
3141
+ en: "Mental Health"
3142
+ },
3143
+ NEPHROLOGY: {
3144
+ en: "Nephrology"
3145
+ },
3146
+ NEUROLOGY: {
3147
+ en: "Neurology"
3148
+ },
3149
+ ONCOLOGY: {
3150
+ en: "Oncology"
3151
+ },
3152
+ ORTHOPEDICS: {
3153
+ en: "Orthopedics"
3154
+ },
3155
+ OTOLARYNGOLOGY: {
3156
+ en: "Otolaryngology"
3157
+ },
3158
+ PEDIATRICS: {
3159
+ en: "Pediatrics"
3160
+ },
3161
+ PHYSICAL_AND_REHABILITATION_MEDICINE: {
3162
+ en: "Physical and Rehabilitation Medicine"
3163
+ },
3164
+ PLASTIC_SURGERY: {
3165
+ en: "Plastic Surgery"
3166
+ },
3167
+ PRIMARY_CARE: {
3168
+ en: "Primary Care"
3169
+ },
3170
+ PSYCHIATRY: {
3171
+ en: "Psychiatry"
3172
+ },
3173
+ PULMONOLOGY: {
3174
+ en: "Pulmonology"
3175
+ },
3176
+ RADIOLOGY: {
3177
+ en: "Radiology"
3178
+ },
3179
+ SENSORY: {
3180
+ en: "Sensory"
3181
+ },
3182
+ SPORTS: {
3183
+ en: "Sports"
3184
+ },
3185
+ SURGERY: {
3186
+ en: "Surgery"
3187
+ },
3188
+ TRANSPLANT_SURGERY: {
3189
+ en: "Transplant Surgery"
3190
+ },
3191
+ TRAUMA_MEDICINE: {
3192
+ en: "Trauma Medicine"
3193
+ },
3194
+ URGENT_CARE: {
3195
+ en: "Urgent Care"
3196
+ },
3197
+ UROLOGY: {
3198
+ en: "Urology"
3199
+ },
3200
+ VISION: {
3201
+ en: "Vision"
3202
+ },
3203
+ WOMENS_HEALTH: {
3204
+ en: "Women's Health"
2714
3205
  },
2715
3206
  WOUND_AND_BURN_CARE: {
2716
3207
  en: "Wound and Burn Care"
@@ -2797,540 +3288,113 @@ var clinicalSettingDisplayText = {
2797
3288
  SCHOOL: {
2798
3289
  en: "School"
2799
3290
  },
2800
- SKILLED_NURSING_FACILITY: {
2801
- en: "Skilled Nursing Facility"
2802
- }
2803
- };
2804
- var defaultMappings = {
2805
- employmentType: employmentTypeDisplayText,
2806
- unitText: unitTextDisplayText,
2807
- currency: currencyDisplayText,
2808
- employmentLevel: employmentLevelDisplayText,
2809
- jobFunction: jobFunctionDisplayText,
2810
- bestFit: bestFitDisplayText,
2811
- clinicalSpecialty: clinicalSpecialtyDisplayText,
2812
- clinicalSetting: clinicalSettingDisplayText,
2813
- shift: shiftDisplayText
2814
- };
2815
-
2816
- // src/types/displayText.errors.tsx
2817
- var DisplayTextScopeNotFoundError = class extends Error {
2818
- constructor(scope) {
2819
- super(`No display text mapping found for scope: ${scope}`);
2820
- this.name = "DisplayTextScopeNotFoundError";
2821
- }
2822
- };
2823
- var DisplayTextValueNotFoundError = class extends Error {
2824
- constructor(value, scope) {
2825
- super(`No display text found for value: '${value}' in scope: '${scope}'`);
2826
- this.name = "DisplayTextValueNotFoundError";
2827
- }
2828
- };
2829
-
2830
- // src/services/displayText.tsx
2831
- var DisplayTextService = class {
2832
- constructor(customMappings) {
2833
- this.defaultLanguage = "en";
2834
- this.mappings = {
2835
- ...defaultMappings,
2836
- // Use all pre-defined mappings as defaults
2837
- ...customMappings
2838
- // Override with any custom mappings if provided
2839
- };
2840
- }
2841
- async getDisplayText(scope, value, language = this.defaultLanguage) {
2842
- const scopeMapping = this.mappings[scope];
2843
- if (!scopeMapping) {
2844
- throw new DisplayTextScopeNotFoundError(scope);
2845
- }
2846
- if (Array.isArray(value)) {
2847
- const displayTextPromises = value.map((v) => this.getDisplayText(scope, v, language));
2848
- const displayTexts2 = await Promise.all(displayTextPromises);
2849
- return displayTexts2.filter((v) => !!v).join(", ");
2850
- }
2851
- const displayTexts = scopeMapping[value];
2852
- if (!displayTexts) {
2853
- throw new DisplayTextValueNotFoundError(value, scope);
2854
- }
2855
- return displayTexts[language] || displayTexts[this.defaultLanguage] || value;
2856
- }
2857
- };
2858
-
2859
- // src/hooks/useDisplayText.ts
2860
- var useDisplayText = (scope, value) => {
2861
- const [displayText, setDisplayText] = (0, import_react17.useState)("");
2862
- const displayService = (0, import_react17.useMemo)(() => new DisplayTextService(), []);
2863
- (0, import_react17.useEffect)(() => {
2864
- if (!displayService || !value) {
2865
- setDisplayText("");
2866
- return;
2867
- }
2868
- void (async () => {
2869
- try {
2870
- const result = await displayService.getDisplayText(scope, value);
2871
- if (typeof result === "string") {
2872
- setDisplayText(result);
2873
- } else {
2874
- console.error("Expected a string result, but got:", result);
2875
- }
2876
- } catch (error) {
2877
- if (error instanceof DisplayTextValueNotFoundError) {
2878
- console.warn("Display text value not found:", value);
2879
- setDisplayText(String(value));
2880
- } else {
2881
- console.error("Unexpected error formatting text:", error);
2882
- setDisplayText(String(value));
2883
- }
2884
- }
2885
- })();
2886
- }, [scope, value, displayService]);
2887
- return displayText;
2888
- };
2889
-
2890
- // src/lib/locations.ts
2891
- function formattedAddress(address) {
2892
- const { addressLocality, addressRegion, addressCountry } = address;
2893
- if (addressLocality && addressRegion) return `${addressLocality}, ${addressRegion}`;
2894
- if (addressRegion && addressCountry) return `${addressRegion}, ${addressCountry}`;
2895
- if (addressRegion) return addressRegion;
2896
- if (addressCountry) return addressCountry;
2897
- return null;
2898
- }
2899
- function formattedJobLocation(job) {
2900
- const address = job.jobLocation && formattedAddress(job.jobLocation);
2901
- const remote = job.isRemote ? "Remote" : "";
2902
- return [address, remote].filter(Boolean).join(" | ");
2903
- }
2904
-
2905
- // src/types/latest/company_service_latest.ts
2906
- var import_zod2 = require("zod");
2907
-
2908
- // src/types/latest/shared_pickle_output_latest.ts
2909
- var shared_pickle_output_latest_exports = {};
2910
- __export(shared_pickle_output_latest_exports, {
2911
- CurrencyEnum: () => CurrencyEnum,
2912
- DetailLevelEnum: () => DetailLevelEnum,
2913
- TypeEnum: () => TypeEnum,
2914
- UnitTextEnum: () => UnitTextEnum,
2915
- imageAssetSchema: () => imageAssetSchema,
2916
- imageSchema: () => imageSchema,
2917
- monetaryAmountSchema: () => monetaryAmountSchema,
2918
- placeSchema: () => placeSchema,
2919
- postalAddressSchema: () => postalAddressSchema,
2920
- quantitativeValueSchema: () => quantitativeValueSchema
2921
- });
2922
- var import_zod = require("zod");
2923
- var TypeEnum = import_zod.z.enum(["IMAGE"]);
2924
- var DetailLevelEnum = import_zod.z.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
2925
- var UnitTextEnum = import_zod.z.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
2926
- var CurrencyEnum = import_zod.z.enum(["EUR", "GBP", "USD"]);
2927
- var postalAddressSchema = import_zod.z.object({
2928
- version: import_zod.z.literal("1.0.0").default("1.0.0"),
2929
- type: import_zod.z.string().describe("Document type used for schema"),
2930
- addressCountry: import_zod.z.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
2931
- addressRegion: import_zod.z.optional(import_zod.z.string()).describe("The region in which the locality is, and which is in the country."),
2932
- addressLocality: import_zod.z.optional(import_zod.z.string()).describe("The locality in which the street address is, and which is in the region. In the US this would be city."),
2933
- streetAddress: import_zod.z.optional(import_zod.z.string()).describe("The street name of the address within the locality."),
2934
- streetNumber: import_zod.z.optional(import_zod.z.string()).describe("The house of building number within the street."),
2935
- postalCode: import_zod.z.optional(import_zod.z.string()).describe("The postal code"),
2936
- description: import_zod.z.optional(import_zod.z.string()).describe("A descriptive string containing the full address.")
2937
- });
2938
- var placeSchema = import_zod.z.object({
2939
- version: import_zod.z.literal("1.0.0").default("1.0.0"),
2940
- detailLevel: import_zod.z.optional(DetailLevelEnum),
2941
- latitude: import_zod.z.optional(import_zod.z.number()).describe("The latitude of a location."),
2942
- longitude: import_zod.z.optional(import_zod.z.number()).describe("The longitude of a location."),
2943
- address: import_zod.z.optional(postalAddressSchema).describe("The physical place of the location")
2944
- });
2945
- var quantitativeValueSchema = import_zod.z.object({
2946
- version: import_zod.z.literal("1.0.0").default("1.0.0"),
2947
- type: import_zod.z.string().describe("Document type used for schema"),
2948
- value: import_zod.z.optional(import_zod.z.number()).describe("The single value for some quantity e.g 5000, if a range is needed use minValue and maxValue. Typically used for a single salary."),
2949
- minValue: import_zod.z.optional(import_zod.z.number()).describe("The single minium value in a range for a quantitative_value, requires a maximum value."),
2950
- maxValue: import_zod.z.optional(import_zod.z.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
2951
- unitText: UnitTextEnum
2952
- });
2953
- var monetaryAmountSchema = import_zod.z.object({
2954
- version: import_zod.z.literal("1.0.0").default("1.0.0"),
2955
- type: import_zod.z.string().describe("Document type used for schema"),
2956
- singleValue: import_zod.z.optional(import_zod.z.number()).describe("The annualized single value for some quantity e.g 5000, if a range is needed use minValue and maxValue. Deprecated - use value.value instead."),
2957
- minValue: import_zod.z.optional(import_zod.z.number()).describe("The annualized single minium value in a range for a quantitative_value. Deprecated use value.minValue"),
2958
- maxValue: import_zod.z.optional(import_zod.z.number()).describe("The annualized maximum value in a range for a quantitative_value. Deprecated use value.maxValue"),
2959
- value: import_zod.z.optional(quantitativeValueSchema).describe("The quantitative_value for a given salary"),
2960
- currency: import_zod.z.optional(CurrencyEnum)
2961
- });
2962
- var imageAssetSchema = import_zod.z.object({
2963
- version: import_zod.z.literal("1.0.0").default("1.0.0"),
2964
- altText: import_zod.z.optional(import_zod.z.string()).describe("The alt text for the image"),
2965
- assetId: import_zod.z.optional(import_zod.z.string()).describe("The asset ID for the image"),
2966
- description: import_zod.z.optional(import_zod.z.string()).describe("The description for the image"),
2967
- extension: import_zod.z.optional(import_zod.z.string()).describe("The extension for the image"),
2968
- label: import_zod.z.optional(import_zod.z.string()).describe("The label for the image"),
2969
- mimeType: import_zod.z.optional(import_zod.z.string()).describe("The mime type for the image"),
2970
- originalFilename: import_zod.z.optional(import_zod.z.string()).describe("The original filename for the image"),
2971
- path: import_zod.z.optional(import_zod.z.string()).describe("The path for the image"),
2972
- sha1Hash: import_zod.z.optional(import_zod.z.string()).describe("The SHA1 hash for the image"),
2973
- size: import_zod.z.optional(import_zod.z.number()).describe("The size for the image"),
2974
- title: import_zod.z.optional(import_zod.z.string()).describe("The title for the image"),
2975
- uploadId: import_zod.z.optional(import_zod.z.string()).describe("The upload ID for the image"),
2976
- url: import_zod.z.optional(import_zod.z.string()).describe("The URL for the image")
2977
- });
2978
- var imageSchema = import_zod.z.object({
2979
- version: import_zod.z.literal("1.0.0").default("1.0.0"),
2980
- type: import_zod.z.string().describe("Document type used for schema"),
2981
- asset: import_zod.z.optional(imageAssetSchema).describe("The asset for the image")
2982
- });
2983
-
2984
- // src/types/latest/company_service_latest.ts
2985
- var TypeEnum2 = import_zod2.z.enum(["OFFICE"]);
2986
- var CategoryEnum = import_zod2.z.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "WORK_LIFE_BALANCE"]);
2987
- var TitleEnum = import_zod2.z.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
2988
- var PublishStatusEnum = import_zod2.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
2989
- var OfficeTypeEnum = import_zod2.z.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
2990
- var socialMediaSchema = import_zod2.z.object({
2991
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2992
- url: import_zod2.z.string().describe("The link to the social media platform"),
2993
- type: import_zod2.z.string().describe("The type of social media link")
2994
- });
2995
- var companyBenefitsSchema = import_zod2.z.object({
2996
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2997
- type: import_zod2.z.string().describe("Document type used for schema"),
2998
- title: import_zod2.z.string(),
2999
- description: import_zod2.z.optional(import_zod2.z.string()),
3000
- category: CategoryEnum
3001
- });
3002
- var industrySchema = import_zod2.z.lazy(() => import_zod2.z.object({
3003
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3004
- type: import_zod2.z.string().describe("Document type used for schema"),
3005
- name: import_zod2.z.string(),
3006
- description: import_zod2.z.optional(import_zod2.z.string()).describe("A brief description of the industry"),
3007
- onetIndustryId: import_zod2.z.optional(import_zod2.z.string()).describe("ONET industry ID"),
3008
- parent: import_zod2.z.optional(industrySchema)
3009
- }));
3010
- var jobBoardSchema = import_zod2.z.object({
3011
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3012
- type: import_zod2.z.string().describe("Document type used for schema"),
3013
- name: import_zod2.z.string().describe("The name of the job board"),
3014
- description: import_zod2.z.string().describe("A brief description of the job board"),
3015
- logo: import_zod2.z.optional(imageSchema).describe("The logo of the job board"),
3016
- baseUrl: import_zod2.z.optional(import_zod2.z.string()).describe("The base URL of the job board")
3017
- });
3018
- var personSchema = import_zod2.z.object({
3019
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3020
- type: import_zod2.z.string().describe("Document type used for schema"),
3021
- firstName: import_zod2.z.string().describe("The first name of the person"),
3022
- lastName: import_zod2.z.string().describe("The last name of the person"),
3023
- title: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("The titles of the degree of the person"),
3024
- slug: import_zod2.z.string().describe("person slug - should be familyname-givenname-title(s)"),
3025
- jobTitle: import_zod2.z.optional(import_zod2.z.string()).describe("The job title of the person"),
3026
- isDoctor: import_zod2.z.optional(import_zod2.z.boolean()).describe("Is the person a doctor"),
3027
- isMedical: import_zod2.z.optional(import_zod2.z.boolean()).describe("Are they of a medical background?"),
3028
- isScientist: import_zod2.z.optional(import_zod2.z.boolean()).describe("Are they a scientist?"),
3029
- image: import_zod2.z.optional(imageSchema).describe("The image of the person"),
3030
- email: import_zod2.z.optional(import_zod2.z.string()).describe("The email of the person"),
3031
- socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the person"),
3032
- telephone: import_zod2.z.optional(import_zod2.z.string()).describe("The telephone number of the person"),
3033
- url: import_zod2.z.optional(import_zod2.z.string()).describe("The URL of the person"),
3034
- address: import_zod2.z.optional(placeSchema).describe("The address of the person")
3035
- });
3036
- var companyCareersSchema = import_zod2.z.object({
3037
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3038
- type: import_zod2.z.string().describe("Document type used for schema"),
3039
- careersUrl: import_zod2.z.string().describe("The URL of the company careers page"),
3040
- jobBoard: import_zod2.z.optional(jobBoardSchema),
3041
- jobBoardSlug: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
3042
- companyBenefits: import_zod2.z.optional(import_zod2.z.array(companyBenefitsSchema)).describe("What are the specific benefits of that company. The benefit is generic.")
3043
- });
3044
- var companyPhilosophySchema = import_zod2.z.object({
3045
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3046
- type: import_zod2.z.string().describe("Document type used for schema"),
3047
- companyMission: import_zod2.z.optional(import_zod2.z.string()).describe("The mission statement of the company."),
3048
- companyHow: import_zod2.z.optional(import_zod2.z.string()).describe("How does the company achieve its mission"),
3049
- companyCulture: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("What are some of the culture aspects of this company?")
3050
- });
3051
- var companyNdgSchema = import_zod2.z.object({
3052
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3053
- type: import_zod2.z.string().describe("Document type used for schema"),
3054
- companyWow: import_zod2.z.optional(import_zod2.z.string()).describe("What is the wow of this company?"),
3055
- companyNdgTake: import_zod2.z.optional(import_zod2.z.string()).describe("What is the NDG POV on this company?"),
3056
- companyBestFit: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
3057
- companyInterests: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string()))
3058
- });
3059
- var foundingInformationSchema = import_zod2.z.object({
3060
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3061
- type: import_zod2.z.string().describe("Document type used for schema"),
3062
- foundedDate: import_zod2.z.optional(import_zod2.z.string()),
3063
- foundedCountry: import_zod2.z.optional(import_zod2.z.string()),
3064
- foundedCity: import_zod2.z.optional(import_zod2.z.string()),
3065
- founders: import_zod2.z.optional(import_zod2.z.array(personSchema))
3066
- });
3067
- var ngdMetadataSchema = import_zod2.z.object({
3068
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3069
- type: import_zod2.z.string().describe("Document type used for schema"),
3070
- lastScraped: import_zod2.z.optional(import_zod2.z.string()).describe("Date the last entity was scraped, if applicable"),
3071
- scraperVersion: import_zod2.z.optional(import_zod2.z.string()),
3072
- postProcessorVersion: import_zod2.z.optional(import_zod2.z.string()),
3073
- uniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
3074
- postProcessorUniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
3075
- isScrapeManaged: import_zod2.z.optional(import_zod2.z.boolean()).default(true)
3076
- });
3077
- var companySchema = import_zod2.z.object({
3078
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3079
- id: import_zod2.z.string().describe("The NDG specific id for a company. Cannot be changed."),
3080
- createdAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3081
- updatedAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3082
- companyName: import_zod2.z.string().describe("The name of the company"),
3083
- slug: import_zod2.z.string().describe("The NDG specific slug for a company."),
3084
- type: import_zod2.z.string().describe("Document type used for schema"),
3085
- logo: import_zod2.z.optional(imageSchema).describe("The logo of the company"),
3086
- companyWebsite: import_zod2.z.optional(import_zod2.z.string()).describe("The website of the company"),
3087
- socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the company"),
3088
- brandColor: import_zod2.z.optional(import_zod2.z.string()).describe("The brand color of the company"),
3089
- companyCareers: import_zod2.z.optional(companyCareersSchema).describe("Career Specific Information for the company."),
3090
- companyPhilosophy: import_zod2.z.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
3091
- companyNdg: import_zod2.z.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
3092
- foundingInfo: import_zod2.z.optional(foundingInformationSchema),
3093
- headquartersLocation: import_zod2.z.optional(placeSchema),
3094
- employeeEstimate: import_zod2.z.optional(import_zod2.z.string()),
3095
- publishStatus: import_zod2.z.optional(import_zod2.z.string()),
3096
- ngdMetadata: import_zod2.z.optional(ngdMetadataSchema)
3097
- });
3098
- var officeSchema = import_zod2.z.object({
3099
- version: import_zod2.z.literal("1.0.0").default("1.0.0"),
3100
- type: import_zod2.z.string().describe("Document type used for schema"),
3101
- name: import_zod2.z.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
3102
- officeType: OfficeTypeEnum,
3103
- companyId: import_zod2.z.optional(companySchema),
3104
- geoLocation: import_zod2.z.optional(placeSchema).describe("Geographical location details: coordinates + postal address"),
3105
- createdAt: import_zod2.z.optional(import_zod2.z.string()),
3106
- updatedAt: import_zod2.z.optional(import_zod2.z.string())
3107
- });
3108
-
3109
- // src/types/latest/job_posting_service_latest.ts
3110
- var import_zod3 = require("zod");
3111
- var TypeEnum3 = import_zod3.z.enum(["JOB_POST"]);
3112
- var JobLocationTypeEnum = import_zod3.z.enum(["FLOAT", "HYBRID", "ONSITE", "REMOTE"]);
3113
- var EmploymentTypeEnum = import_zod3.z.enum(["CONTRACT", "FULL_TIME", "INTERNSHIP", "OTHER", "PART_TIME", "PER_DIEM", "TEMPORARY"]);
3114
- var EmploymentLevelEnum = import_zod3.z.enum(["DIRECTOR", "ENTRY_LEVEL", "EXECUTIVE", "EXPERIENCED", "INTERN", "MANAGER"]);
3115
- var JobFunctionEnum = import_zod3.z.enum(["CLINICAL_RESEARCH", "CUSTOMER_SUCCESS", "DATA_ANALYTICS", "FINANCE_AND_AUDIT", "MARKETING", "OPERATIONS", "PEOPLE_HUMAN_RESOURCES", "PRODUCT_AND_TECH", "QUALITY_ASSURANCE_AND_OUTCOMES", "SALES_AND_BUSINESS_DEVELOPMENT", "STRATEGY_AND_CONSULTING"]);
3116
- var PublishStatusEnum2 = import_zod3.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
3117
- var BestFitEnum = import_zod3.z.enum(["DENTIST", "DIETICIAN", "DOULA", "MEDICAL_ASSISTANT", "MIDWIFE", "NURSE", "OCCUPATIONAL_THERAPIST", "PHARMACIST", "PHYSICAL_THERAPIST", "PHYSICIAN", "PHYSICIAN_ASSISTANT", "PSYCHOLOGIST", "RADIOLOGIST", "SOCIAL_WORKER", "SPEECH_LANGUAGE_PATHOLOGIST", "SURGEON"]);
3118
- var ClinicalLicenseEnum = import_zod3.z.enum(["CNA", "CNM", "CNS", "COTA", "CRNA", "LPN", "LVN", "NP", "OT", "PT", "PTA", "RN"]);
3119
- var ShiftEnum = import_zod3.z.enum(["DAY", "EIGHT_HOUR", "EVENING", "FLEXIBLE", "MID_SHIFT", "MONDAY_TO_FRIDAY", "NIGHT", "ON_CALL", "TEN_HOUR", "TWELVE_HOUR", "WEEKENDS"]);
3120
- var ClinicalSettingEnum = import_zod3.z.enum(["ACUTE_CARE", "AMBULATORY_SURGERY_CENTER", "CLINIC", "HOME_HEALTH", "HOSPITAL", "INPATIENT", "LONG_TERM_CARE", "MED_SPA", "NURSING_HOME", "OFFICE", "OUTPATIENT", "PRIVATE_PRACTICE", "REHAB_CENTER", "SCHOOL", "SKILLED_NURSING_FACILITY"]);
3121
- var ClinicalSpecialtyEnum = import_zod3.z.enum(["ANESTHESIOLOGY", "CARDIOLOGY", "CASE_MANAGEMENT", "CHRONIC_PAIN", "CLINICAL_ELECTROPHYSIOLOGY", "CRITICAL_AND_ACUTE_CARE", "DERMATOLOGY", "DIALYSIS", "EMERGENCY_MEDICINE", "ENDOCRINOLOGY", "ERGONOMICS", "FEEDING_EATING_AND_SWALLOWING", "GASTROENTEROLOGY", "GERIATRICS", "HAND_THERAPY", "HEMATOLOGY", "HOLISTIC_MEDICINE", "INFORMATICS", "INTERNAL_MEDICINE", "LABOR_AND_DELIVERY", "MANUAL_THERAPY", "MED_SURG", "MENTAL_HEALTH", "NEPHROLOGY", "NEUROLOGY", "ONCOLOGY", "ORTHOPEDICS", "OTOLARYNGOLOGY", "PEDIATRICS", "PHYSICAL_AND_REHABILITATION_MEDICINE", "PLASTIC_SURGERY", "PRIMARY_CARE", "PSYCHIATRY", "PULMONOLOGY", "RADIOLOGY", "SENSORY", "SPORTS", "SURGERY", "TRAUMA_MEDICINE", "URGENT_CARE", "UROLOGY", "VISION", "WOMENS_HEALTH", "WOUND_AND_BURN_CARE"]);
3122
- var jobPostSchema = import_zod3.z.object({
3123
- version: import_zod3.z.literal("1.0.0").default("1.0.0"),
3124
- id: import_zod3.z.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed."),
3125
- type: import_zod3.z.string().describe("Document type used for schema"),
3126
- createdAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3127
- updatedAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3128
- dateAdded: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was added to the platform"),
3129
- datePosted: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was published for public viewing"),
3130
- dateRemoved: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was removed from public viewing"),
3131
- validThrough: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job posting is valid through. After this date it will be removed from public viewing"),
3132
- vacancyCount: import_zod3.z.optional(import_zod3.z.number().int()).describe("The number of vacancies for a given job posting"),
3133
- clientId: import_zod3.z.string().describe("The ID assigned by the client to a job - normally the same as the GH / Lever / Ashby ID or internal ID"),
3134
- url: import_zod3.z.string().describe("The URL of the job to be displayed for users to apply with. Direct job link."),
3135
- title: import_zod3.z.string().describe("The title of the job post"),
3136
- description: import_zod3.z.string().describe("The description of the job post saved as markdown. Used for rendering the job description."),
3137
- richTextDescription: import_zod3.z.optional(import_zod3.z.string()).describe("The description of the job post saved as rich text"),
3138
- isClinical: import_zod3.z.boolean().default(false).describe("Denotes if a job posting is clinical in nature or not. A role is clinical if it requires direct clinical patient care."),
3139
- isRemote: import_zod3.z.boolean().default(false).describe("Denotes if a job posting is remote in nature. For a posting to be 'remote' it must be 100% remote (e.g hybrid roles would denote this to false)."),
3140
- isVerified: import_zod3.z.boolean().default(false).describe("Denotes if a job posting has been manually verified - and thus ALL fields can be considered accurate. Can be used for DS training."),
3141
- isDirectApply: import_zod3.z.boolean().default(false).describe("Denotes if a job posting url is direct apply. To be direct apply a user must be able to apply to the role without logging in and under 2 clicks."),
3142
- jobLocationType: import_zod3.z.optional(import_zod3.z.array(JobLocationTypeEnum)),
3143
- employmentType: import_zod3.z.optional(import_zod3.z.array(EmploymentTypeEnum)),
3144
- employmentLevel: import_zod3.z.optional(EmploymentLevelEnum),
3145
- jobFunction: import_zod3.z.optional(JobFunctionEnum),
3146
- publishStatus: PublishStatusEnum2,
3147
- bestFit: import_zod3.z.optional(import_zod3.z.array(BestFitEnum)),
3148
- clinicalLicense: import_zod3.z.optional(import_zod3.z.array(ClinicalLicenseEnum)),
3149
- shift: import_zod3.z.optional(import_zod3.z.array(ShiftEnum)),
3150
- clinicalSetting: import_zod3.z.optional(import_zod3.z.array(ClinicalSettingEnum)),
3151
- clinicalSpecialty: import_zod3.z.optional(import_zod3.z.array(ClinicalSpecialtyEnum)),
3152
- estimatedSalary: import_zod3.z.optional(monetaryAmountSchema).describe("Determines the estimated salary for a given job posting"),
3153
- jobLocation: import_zod3.z.optional(postalAddressSchema).describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
3154
- applicableOffices: import_zod3.z.optional(import_zod3.z.array(officeSchema)).describe("The physical location(s) in which employees may be located for to be eligible for the job. Used in conjunction with job_location_type."),
3155
- applicantLocationRequirements: import_zod3.z.optional(import_zod3.z.array(placeSchema)).describe("The geographic location(s) in which employees may be located for to be eligible for the job. The job description must clearly state that the applicant may be located in certain geographical location(s). This property is required if applicants may be located in one or more geographic locations and the job is 100% remote."),
3156
- hiringOrganization: import_zod3.z.optional(companySchema).describe("The organization that is hiring for the role")
3157
- });
3158
-
3159
- // src/types/latest/custom/company_service_sanity.ts
3160
- var import_zod5 = require("zod");
3291
+ SKILLED_NURSING_FACILITY: {
3292
+ en: "Skilled Nursing Facility"
3293
+ }
3294
+ };
3295
+ var defaultMappings = {
3296
+ employmentType: employmentTypeDisplayText,
3297
+ unitText: unitTextDisplayText,
3298
+ currency: currencyDisplayText,
3299
+ employmentLevel: employmentLevelDisplayText,
3300
+ jobFunction: jobFunctionDisplayText,
3301
+ bestFit: bestFitDisplayText,
3302
+ clinicalSpecialty: clinicalSpecialtyDisplayText,
3303
+ clinicalSetting: clinicalSettingDisplayText,
3304
+ shift: shiftDisplayText
3305
+ };
3161
3306
 
3162
- // src/types/latest/custom/custom_sanity_models.ts
3163
- var import_zod4 = require("zod");
3164
- var sanityReferenceSchema = import_zod4.z.object({
3165
- _ref: import_zod4.z.string(),
3166
- _type: import_zod4.z.string(),
3167
- _key: import_zod4.z.optional(import_zod4.z.string())
3168
- });
3169
- var sanitySlugSchema = import_zod4.z.object({
3170
- current: import_zod4.z.string(),
3171
- _type: import_zod4.z.string(),
3172
- _key: import_zod4.z.optional(import_zod4.z.string())
3173
- });
3307
+ // src/types/displayText.errors.tsx
3308
+ var DisplayTextScopeNotFoundError = class extends Error {
3309
+ constructor(scope) {
3310
+ super(`No display text mapping found for scope: ${scope}`);
3311
+ this.name = "DisplayTextScopeNotFoundError";
3312
+ }
3313
+ };
3314
+ var DisplayTextValueNotFoundError = class extends Error {
3315
+ constructor(value, scope) {
3316
+ super(`No display text found for value: '${value}' in scope: '${scope}'`);
3317
+ this.name = "DisplayTextValueNotFoundError";
3318
+ }
3319
+ };
3174
3320
 
3175
- // src/types/latest/custom/company_service_sanity.ts
3176
- var foundingInformationSchema2 = foundingInformationSchema.extend({
3177
- _type: import_zod5.z.string().describe("Document type used within sanity").default("companyFounding"),
3178
- founders: import_zod5.z.optional(import_zod5.z.union([import_zod5.z.array(personSchema), import_zod5.z.array(sanityReferenceSchema)])).nullable(),
3179
- founderList: import_zod5.z.optional(import_zod5.z.union([import_zod5.z.array(personSchema), import_zod5.z.array(sanityReferenceSchema)])).nullable()
3180
- }).omit({ type: true }).strict().transform((data) => ({
3181
- ...data,
3182
- type: data._type,
3183
- founders: data.founders || data.founderList || void 0
3184
- })).transform(({ _type, founderList, ...rest }) => rest);
3185
- var companyNdgSchema2 = companyNdgSchema.extend({
3186
- _type: import_zod5.z.string().describe("Document type used within sanity").default("companyNDG"),
3187
- companyNDGTake: import_zod5.z.string().nullable().describe("What is the NDG POV on this company?")
3188
- }).omit({ type: true }).strict().transform((data) => ({
3189
- ...data,
3190
- type: data._type,
3191
- companyNdgTake: data.companyNDGTake
3192
- })).transform(({ _type, companyNDGTake, ...rest }) => rest);
3193
- var ngdMetadataSchema2 = ngdMetadataSchema.extend({
3194
- _type: import_zod5.z.string().describe("Document type used within sanity").default("ndgMetadata")
3195
- }).omit({ type: true }).transform((data) => ({
3196
- ...data,
3197
- type: data._type
3198
- })).transform(({ _type, ...rest }) => rest);
3199
- var companyPhilosophySchema2 = companyPhilosophySchema.extend({
3200
- _type: import_zod5.z.string().describe("Document type used within sanity").default("companyPhilosophy")
3201
- }).omit({ type: true }).strict().transform((data) => ({
3202
- ...data,
3203
- type: data._type
3204
- })).transform(({ _type, ...rest }) => rest);
3205
- var companyCareersSchema2 = companyCareersSchema.extend({
3206
- _type: import_zod5.z.string().describe("Document type used within sanity").default("companyCareers"),
3207
- companyBenefits: import_zod5.z.optional(import_zod5.z.array(
3208
- import_zod5.z.union([companyBenefitsSchema, sanityReferenceSchema])
3209
- )).nullable().describe("What are the specific benefits of that company. The benefit is generic."),
3210
- jobBoard: import_zod5.z.union([jobBoardSchema, sanityReferenceSchema]).nullable(),
3211
- jobBoardSlug: import_zod5.z.optional(import_zod5.z.union([import_zod5.z.array(import_zod5.z.string()), import_zod5.z.array(sanitySlugSchema)]))
3212
- }).omit({ type: true }).strict().transform((data) => ({
3213
- ...data,
3214
- type: data._type
3215
- })).transform(({ _type, ...rest }) => rest);
3216
- var companySchema2 = companySchema.extend({
3217
- _id: import_zod5.z.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed."),
3218
- _rev: import_zod5.z.string().nullable().describe("Revision number"),
3219
- _type: import_zod5.z.string().describe("Document type used within sanity").default("company"),
3220
- _createdAt: import_zod5.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3221
- _updatedAt: import_zod5.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3222
- companyCareers: companyCareersSchema2.nullable().describe("Career Specific Information for the company."),
3223
- companyPhilosophy: companyPhilosophySchema2.nullable().describe("Company mission,values and how the company achieves its mission."),
3224
- companyNDG: companyNdgSchema2.nullable().describe("Next Degree specific information for the company."),
3225
- foundingInfo: foundingInformationSchema2.nullable(),
3226
- slug: import_zod5.z.union([import_zod5.z.string(), sanitySlugSchema]).describe("The NDG specific slug for a company."),
3227
- ndgMetadata: ngdMetadataSchema2.nullable(),
3228
- logo: import_zod5.z.union([imageSchema, import_zod5.z.record(import_zod5.z.any())]).nullable().describe("The logo of the company"),
3229
- //Deprecated Models
3230
- logoImageURL: import_zod5.z.optional(import_zod5.z.string()).describe("The logo of the company"),
3231
- industryList: import_zod5.z.optional(import_zod5.z.array(sanityReferenceSchema)).describe("The industry of the company")
3232
- }).omit({ type: true, id: true, createdAt: true, updatedAt: true }).strict().transform((data) => ({
3233
- ...data,
3234
- type: data._type,
3235
- id: data._id,
3236
- createdAt: data._createdAt,
3237
- updatedAt: data._updatedAt,
3238
- rev: data._rev
3239
- })).transform(({ _type, _id, _rev, _createdAt, _updatedAt, ...rest }) => rest);
3321
+ // src/services/displayText.tsx
3322
+ var DisplayTextService = class {
3323
+ constructor(customMappings) {
3324
+ this.defaultLanguage = "en";
3325
+ this.mappings = {
3326
+ ...defaultMappings,
3327
+ // Use all pre-defined mappings as defaults
3328
+ ...customMappings
3329
+ // Override with any custom mappings if provided
3330
+ };
3331
+ }
3332
+ async getDisplayText(scope, value, language = this.defaultLanguage) {
3333
+ const scopeMapping = this.mappings[scope];
3334
+ if (!scopeMapping) {
3335
+ throw new DisplayTextScopeNotFoundError(scope);
3336
+ }
3337
+ if (Array.isArray(value)) {
3338
+ const displayTextPromises = value.map((v) => this.getDisplayText(scope, v, language));
3339
+ const displayTexts2 = await Promise.all(displayTextPromises);
3340
+ return displayTexts2.filter((v) => !!v).join(", ");
3341
+ }
3342
+ const displayTexts = scopeMapping[value];
3343
+ if (!displayTexts) {
3344
+ throw new DisplayTextValueNotFoundError(value, scope);
3345
+ }
3346
+ return displayTexts[language] || displayTexts[this.defaultLanguage] || value;
3347
+ }
3348
+ };
3240
3349
 
3241
- // src/types/latest/custom/job_posting_service_sanity.ts
3242
- var import_zod6 = require("zod");
3243
- var JobPostTypeEnum = import_zod6.z.enum(["jobPost"]);
3244
- var MonetaryAmountTypeEnum = import_zod6.z.enum(["monetaryAmount"]);
3245
- var postalAddressSchema2 = postalAddressSchema.extend({
3246
- _type: import_zod6.z.string().describe("Document type used within sanity").default("address")
3247
- }).omit({ type: true }).strict().transform((data) => ({
3248
- ...data,
3249
- type: data._type
3250
- })).transform(({ _type, ...rest }) => rest);
3251
- var quantitativeValueSchema2 = quantitativeValueSchema.extend({
3252
- _type: import_zod6.z.string().describe("Document type used within sanity").default("quantitativeValue")
3253
- }).omit({ type: true }).strict().transform((data) => ({
3254
- ...data,
3255
- type: data._type
3256
- })).transform(({ _type, ...rest }) => rest);
3257
- var monetaryAmountSchema2 = monetaryAmountSchema.extend({
3258
- _type: import_zod6.z.string().describe("Document type used within sanity").default("monetaryAmount"),
3259
- value: quantitativeValueSchema2.optional().describe("The quantitative_value for a given salary")
3260
- }).omit({ type: true }).strict().transform((data) => ({
3261
- ...data,
3262
- type: data._type
3263
- })).transform(({ _type, ...rest }) => rest);
3264
- var jobPostSchema2 = jobPostSchema.extend({
3265
- // Override base fields with Sanity-specific fields
3266
- _id: import_zod6.z.string().describe("The NDG specific id for a job posting in form of ndg-<company_slug>-<unique-job-id>. Serves as unique identifier. Cannot be changed.").regex(/^ndg-.*-.*$/),
3267
- _rev: import_zod6.z.string().optional().describe("Revision number"),
3268
- _type: import_zod6.z.string().describe("Document type used within sanity").default("jobPost"),
3269
- _createdAt: import_zod6.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3270
- _updatedAt: import_zod6.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
3271
- // Override fields with new schemas
3272
- estimatedSalary: monetaryAmountSchema2.optional().describe("Determines the estimated salary for a given job posting"),
3273
- jobLocation: postalAddressSchema2.optional().describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
3274
- // Add Sanity-specific fields
3275
- ndgMetadata: import_zod6.z.record(import_zod6.z.any()).optional(),
3276
- ndgID: import_zod6.z.string().optional(),
3277
- hiringOrganization: import_zod6.z.optional(import_zod6.z.union([sanityReferenceSchema, companySchema])),
3278
- raw: import_zod6.z.record(import_zod6.z.any()).optional(),
3279
- isLoaded: import_zod6.z.boolean().default(false),
3280
- isVerified: import_zod6.z.boolean().default(false),
3281
- needsReview: import_zod6.z.boolean().default(false),
3282
- schema_version: import_zod6.z.string().optional(),
3283
- origin: import_zod6.z.string().optional(),
3284
- temp: import_zod6.z.record(import_zod6.z.any()).optional(),
3285
- applicationType: import_zod6.z.string().optional(),
3286
- // Override clientId to use Sanity naming convention
3287
- clientID: import_zod6.z.string()
3288
- }).omit({ type: true, id: true, createdAt: true, updatedAt: true, clientId: true }).transform((data) => ({
3289
- ...data,
3290
- type: data._type,
3291
- id: data._id,
3292
- createdAt: data._createdAt,
3293
- updatedAt: data._updatedAt,
3294
- rev: data._rev
3295
- })).transform(({ _type, _id, _rev, _createdAt, _updatedAt, ...rest }) => rest);
3350
+ // src/hooks/useDisplayText.ts
3351
+ var useDisplayText = (scope, value) => {
3352
+ const [displayText, setDisplayText] = (0, import_react18.useState)("");
3353
+ const displayService = (0, import_react18.useMemo)(() => new DisplayTextService(), []);
3354
+ (0, import_react18.useEffect)(() => {
3355
+ if (!displayService || !value) {
3356
+ setDisplayText("");
3357
+ return;
3358
+ }
3359
+ void (async () => {
3360
+ try {
3361
+ const result = await displayService.getDisplayText(scope, value);
3362
+ if (typeof result === "string") {
3363
+ setDisplayText(result);
3364
+ } else {
3365
+ console.error("Expected a string result, but got:", result);
3366
+ }
3367
+ } catch (error) {
3368
+ if (error instanceof DisplayTextValueNotFoundError) {
3369
+ console.warn("Display text value not found:", value);
3370
+ setDisplayText(String(value));
3371
+ } else {
3372
+ console.error("Unexpected error formatting text:", error);
3373
+ setDisplayText(String(value));
3374
+ }
3375
+ }
3376
+ })();
3377
+ }, [scope, value, displayService]);
3378
+ return displayText;
3379
+ };
3296
3380
 
3297
- // src/lib/salaryRange.ts
3298
- var CurrencyEnum2 = shared_pickle_output_latest_exports.CurrencyEnum;
3299
- function salaryRange(salary) {
3300
- if (!salary) return null;
3301
- let min = salary.minValue;
3302
- let max = salary.maxValue;
3303
- let single = salary.singleValue;
3304
- let value = salary.value;
3305
- let unitText = "YEAR";
3306
- const signs = {
3307
- [CurrencyEnum2.Values.USD]: "$",
3308
- [CurrencyEnum2.Values.GBP]: "\xA3",
3309
- [CurrencyEnum2.Values.EUR]: "\u20AC"
3310
- };
3311
- const sign = signs[salary.currency ?? CurrencyEnum2.Values.USD];
3312
- if (value != null && typeof value === "object") {
3313
- min = value.minValue;
3314
- max = value.maxValue;
3315
- single = value.value;
3316
- unitText = value.unitText;
3317
- }
3318
- if (unitText === "YEAR") unitText = "per year";
3319
- if (unitText === "MONTH") unitText = "per month";
3320
- if (unitText === "WEEK") unitText = "per week";
3321
- if (unitText === "DAY") unitText = "per day";
3322
- if (unitText === "PER_ACTIVITY") unitText = "per activity";
3323
- if (unitText === "HOUR") unitText = "per hour";
3324
- if (min == null && max == null && single == null) return null;
3325
- if (single != null) return sign + single.toLocaleString() + " " + unitText;
3326
- if (min === max) return sign + min?.toLocaleString() + " " + unitText;
3327
- if (min != null && max != null)
3328
- return sign + min?.toLocaleString() + " - " + sign + max?.toLocaleString() + " " + unitText;
3381
+ // src/lib/locations.ts
3382
+ function formattedAddress(address) {
3383
+ const { addressLocality, addressRegion, addressCountry } = address;
3384
+ if (addressLocality && addressRegion) return `${addressLocality}, ${addressRegion}`;
3385
+ if (addressRegion && addressCountry) return `${addressRegion}, ${addressCountry}`;
3386
+ if (addressRegion) return addressRegion;
3387
+ if (addressCountry) return addressCountry;
3329
3388
  return null;
3330
3389
  }
3390
+ function formattedJobLocation(job) {
3391
+ const address = job.jobLocation && formattedAddress(job.jobLocation);
3392
+ const remote = job.isRemote ? "Remote" : "";
3393
+ return [address, remote].filter(Boolean).join(" | ");
3394
+ }
3331
3395
 
3332
3396
  // src/components/jobPost/JobPost.tsx
3333
- var import_jsx_runtime40 = require("react/jsx-runtime");
3397
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3334
3398
  function JobPost({
3335
3399
  job,
3336
3400
  bannerSrc,
@@ -3376,7 +3440,7 @@ function JobPost({
3376
3440
  label: formattedLocation
3377
3441
  }
3378
3442
  ].filter((t) => !!t);
3379
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3443
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3380
3444
  "div",
3381
3445
  {
3382
3446
  className: cn(
@@ -3384,7 +3448,7 @@ function JobPost({
3384
3448
  !standalone && "border-1 rounded-3xl border-grey-5"
3385
3449
  ),
3386
3450
  children: [
3387
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3451
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3388
3452
  JobHeader,
3389
3453
  {
3390
3454
  title: job.title,
@@ -3400,16 +3464,16 @@ function JobPost({
3400
3464
  tags
3401
3465
  }
3402
3466
  ),
3403
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-col gap-8 px-6", children: [
3404
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(JobDescription, { description: job.description }),
3405
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3467
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-8 px-6", children: [
3468
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(JobDescription, { description: job.description }),
3469
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3406
3470
  CompanyTake,
3407
3471
  {
3408
3472
  avatarSrc,
3409
3473
  content: job.hiringOrganization?.companyNDG?.companyNDGTake
3410
3474
  }
3411
3475
  ),
3412
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3476
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3413
3477
  CompanyInformation,
3414
3478
  {
3415
3479
  name: job.hiringOrganization?.companyName ?? "",
@@ -3419,7 +3483,7 @@ function JobPost({
3419
3483
  website: job.hiringOrganization?.companyWebsite
3420
3484
  }
3421
3485
  ),
3422
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3486
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3423
3487
  CompanyBenefits,
3424
3488
  {
3425
3489
  benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
@@ -3431,6 +3495,24 @@ function JobPost({
3431
3495
  );
3432
3496
  }
3433
3497
 
3498
+ // src/components/jobCard/JobLocation.tsx
3499
+ var import_lucide_react19 = require("lucide-react");
3500
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3501
+ function JobLocation({ mainLocation, extendedLocations }) {
3502
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center gap-2", "data-testid": "job-card-location", children: [
3503
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react19.MapPin, { size: 16 }),
3504
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-sm font-thin", children: mainLocation }),
3505
+ extendedLocations && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Tooltip, { children: [
3506
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "length-text group text-nowrap rounded-full bg-grey-5 px-2 py-1 text-sm font-bold text-gray-700 group-hover:cursor-pointer", children: [
3507
+ "+ ",
3508
+ extendedLocations.length,
3509
+ " more"
3510
+ ] }) }),
3511
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipContent, { className: "border-1 rounded-md border border-grey-5 bg-white p-2", children: extendedLocations.map((location) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-nowrap text-sm", children: location }, location)) })
3512
+ ] }) })
3513
+ ] });
3514
+ }
3515
+
3434
3516
  // src/types/data/company_service_latest.ts
3435
3517
  var company_service_latest_exports2 = {};
3436
3518
  __export(company_service_latest_exports2, {
@@ -3734,11 +3816,13 @@ var jobPostSchema3 = import_zod9.z.object({
3734
3816
  CompanyTake,
3735
3817
  Counter,
3736
3818
  DatePicker,
3819
+ DismissibleBanner,
3737
3820
  Icon,
3738
3821
  Input,
3739
3822
  InputOtp,
3740
3823
  JobDescription,
3741
3824
  JobHeader,
3825
+ JobLocation,
3742
3826
  JobPost,
3743
3827
  JobPostService,
3744
3828
  Label,
@@ -3755,6 +3839,7 @@ var jobPostSchema3 = import_zod9.z.object({
3755
3839
  WindowHistoryProvider,
3756
3840
  cn,
3757
3841
  fetchLocation,
3842
+ salaryRange,
3758
3843
  useDisplayText,
3759
3844
  useWindowHistory
3760
3845
  });