@next-degree/pickle-shared-js 0.5.31 → 0.6.44

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 (239) hide show
  1. package/dist/company_service_latest-DQ5joNqO.d.cts +4243 -0
  2. package/dist/company_service_latest-DQ5joNqO.d.ts +4243 -0
  3. package/dist/components/buttons/BackButton.cjs +161 -0
  4. package/dist/components/buttons/BackButton.cjs.map +1 -0
  5. package/dist/components/buttons/BackButton.d.cts +9 -0
  6. package/dist/components/buttons/BackButton.d.ts +9 -0
  7. package/dist/components/buttons/BackButton.js +137 -0
  8. package/dist/components/buttons/BackButton.js.map +1 -0
  9. package/dist/components/company/CompanyBenefits.cjs +38 -0
  10. package/dist/components/company/CompanyBenefits.cjs.map +1 -0
  11. package/dist/components/company/CompanyBenefits.d.cts +8 -0
  12. package/dist/components/company/CompanyBenefits.d.ts +8 -0
  13. package/dist/components/company/CompanyBenefits.js +13 -0
  14. package/dist/components/company/CompanyBenefits.js.map +1 -0
  15. package/dist/components/company/CompanyInformation.cjs +112 -0
  16. package/dist/components/company/CompanyInformation.cjs.map +1 -0
  17. package/dist/components/company/CompanyInformation.d.cts +12 -0
  18. package/dist/components/company/CompanyInformation.d.ts +12 -0
  19. package/dist/components/company/CompanyInformation.js +75 -0
  20. package/dist/components/company/CompanyInformation.js.map +1 -0
  21. package/dist/components/company/CompanyTake.cjs +140 -0
  22. package/dist/components/company/CompanyTake.cjs.map +1 -0
  23. package/dist/components/company/CompanyTake.d.cts +9 -0
  24. package/dist/components/company/CompanyTake.d.ts +9 -0
  25. package/dist/components/company/CompanyTake.js +104 -0
  26. package/dist/components/company/CompanyTake.js.map +1 -0
  27. package/dist/components/jobPost/JobDescription.cjs +205 -0
  28. package/dist/components/jobPost/JobDescription.cjs.map +1 -0
  29. package/dist/components/jobPost/JobDescription.d.cts +8 -0
  30. package/dist/components/jobPost/JobDescription.d.ts +8 -0
  31. package/dist/components/jobPost/JobDescription.js +168 -0
  32. package/dist/components/jobPost/JobDescription.js.map +1 -0
  33. package/dist/components/jobPost/JobHeader.cjs +436 -0
  34. package/dist/components/jobPost/JobHeader.cjs.map +1 -0
  35. package/dist/components/jobPost/JobHeader.d.cts +26 -0
  36. package/dist/components/jobPost/JobHeader.d.ts +26 -0
  37. package/dist/components/jobPost/JobHeader.js +423 -0
  38. package/dist/components/jobPost/JobHeader.js.map +1 -0
  39. package/dist/components/jobPost/JobPost.cjs +1371 -0
  40. package/dist/components/jobPost/JobPost.cjs.map +1 -0
  41. package/dist/components/jobPost/JobPost.d.cts +16 -0
  42. package/dist/components/jobPost/JobPost.d.ts +16 -0
  43. package/dist/components/jobPost/JobPost.js +1358 -0
  44. package/dist/components/jobPost/JobPost.js.map +1 -0
  45. package/dist/components/primitives/avatar.cjs +88 -0
  46. package/dist/components/primitives/avatar.cjs.map +1 -0
  47. package/dist/components/primitives/avatar.d.cts +13 -0
  48. package/dist/components/primitives/avatar.d.ts +13 -0
  49. package/dist/components/primitives/avatar.js +52 -0
  50. package/dist/components/primitives/avatar.js.map +1 -0
  51. package/dist/components/primitives/command.d.cts +3 -3
  52. package/dist/components/primitives/command.d.ts +3 -3
  53. package/dist/components/ui/Avatar.cjs +117 -0
  54. package/dist/components/ui/Avatar.cjs.map +1 -0
  55. package/dist/components/ui/Avatar.d.cts +16 -0
  56. package/dist/components/ui/Avatar.d.ts +16 -0
  57. package/dist/components/ui/Avatar.js +79 -0
  58. package/dist/components/ui/Avatar.js.map +1 -0
  59. package/dist/components/ui/Icon.cjs +114 -0
  60. package/dist/components/ui/Icon.cjs.map +1 -0
  61. package/dist/components/ui/Icon.d.cts +15 -0
  62. package/dist/components/ui/Icon.d.ts +15 -0
  63. package/dist/components/ui/Icon.js +89 -0
  64. package/dist/components/ui/Icon.js.map +1 -0
  65. package/dist/{app/layout.cjs → components/ui/LinkButton.cjs} +25 -35
  66. package/dist/components/ui/LinkButton.cjs.map +1 -0
  67. package/dist/components/ui/LinkButton.d.cts +29 -0
  68. package/dist/components/ui/LinkButton.d.ts +29 -0
  69. package/dist/components/ui/LinkButton.js +26 -0
  70. package/dist/components/ui/LinkButton.js.map +1 -0
  71. package/dist/components/ui/ReadMore.cjs +194 -0
  72. package/dist/components/ui/ReadMore.cjs.map +1 -0
  73. package/dist/components/ui/ReadMore.d.cts +9 -0
  74. package/dist/components/ui/ReadMore.d.ts +9 -0
  75. package/dist/components/ui/ReadMore.js +160 -0
  76. package/dist/components/ui/ReadMore.js.map +1 -0
  77. package/dist/contexts/WindowHistoryProvider.cjs +48 -0
  78. package/dist/contexts/WindowHistoryProvider.cjs.map +1 -0
  79. package/dist/contexts/WindowHistoryProvider.d.cts +11 -0
  80. package/dist/contexts/WindowHistoryProvider.d.ts +11 -0
  81. package/dist/contexts/WindowHistoryProvider.js +23 -0
  82. package/dist/contexts/WindowHistoryProvider.js.map +1 -0
  83. package/dist/displayText-BvUjsvAx.d.cts +48 -0
  84. package/dist/displayText-CDK-QDbc.d.ts +48 -0
  85. package/dist/hooks/useDisplayText.cjs +502 -0
  86. package/dist/hooks/useDisplayText.cjs.map +1 -0
  87. package/dist/hooks/useDisplayText.d.cts +8 -0
  88. package/dist/hooks/useDisplayText.d.ts +8 -0
  89. package/dist/hooks/useDisplayText.js +477 -0
  90. package/dist/hooks/useDisplayText.js.map +1 -0
  91. package/dist/hooks/useWindowHistory.cjs +46 -0
  92. package/dist/hooks/useWindowHistory.cjs.map +1 -0
  93. package/dist/hooks/useWindowHistory.d.cts +7 -0
  94. package/dist/hooks/useWindowHistory.d.ts +7 -0
  95. package/dist/hooks/useWindowHistory.js +21 -0
  96. package/dist/hooks/useWindowHistory.js.map +1 -0
  97. package/dist/index.cjs +1459 -2
  98. package/dist/index.cjs.map +1 -1
  99. package/dist/index.d.cts +21 -0
  100. package/dist/index.d.ts +21 -0
  101. package/dist/index.js +1468 -1
  102. package/dist/index.js.map +1 -1
  103. package/dist/job_posting_service_latest-Uc2AcDWn.d.cts +4109 -0
  104. package/dist/job_posting_service_latest-Uc2AcDWn.d.ts +4109 -0
  105. package/dist/lib/icons.cjs +53 -0
  106. package/dist/lib/icons.cjs.map +1 -0
  107. package/dist/lib/icons.d.cts +27 -0
  108. package/dist/lib/icons.d.ts +27 -0
  109. package/dist/lib/icons.js +49 -0
  110. package/dist/lib/icons.js.map +1 -0
  111. package/dist/lib/locations.cjs +45 -0
  112. package/dist/lib/locations.cjs.map +1 -0
  113. package/dist/lib/locations.d.cts +8 -0
  114. package/dist/lib/locations.d.ts +8 -0
  115. package/dist/lib/locations.js +19 -0
  116. package/dist/lib/locations.js.map +1 -0
  117. package/dist/lib/mappings.cjs +443 -0
  118. package/dist/lib/mappings.cjs.map +1 -0
  119. package/dist/lib/mappings.d.cts +4 -0
  120. package/dist/lib/mappings.d.ts +4 -0
  121. package/dist/lib/mappings.js +409 -0
  122. package/dist/lib/mappings.js.map +1 -0
  123. package/dist/lib/salaryRange.cjs +111 -0
  124. package/dist/lib/salaryRange.cjs.map +1 -0
  125. package/dist/lib/salaryRange.d.cts +6 -0
  126. package/dist/lib/salaryRange.d.ts +6 -0
  127. package/dist/lib/salaryRange.js +84 -0
  128. package/dist/lib/salaryRange.js.map +1 -0
  129. package/dist/services/displayText.cjs +470 -0
  130. package/dist/services/displayText.cjs.map +1 -0
  131. package/dist/services/displayText.d.cts +4 -0
  132. package/dist/services/displayText.d.ts +4 -0
  133. package/dist/services/displayText.js +443 -0
  134. package/dist/services/displayText.js.map +1 -0
  135. package/dist/shared_pickle_output_latest-DUO_efBh.d.cts +334 -0
  136. package/dist/shared_pickle_output_latest-DUO_efBh.d.ts +334 -0
  137. package/dist/styles/globals.css +817 -0
  138. package/dist/styles/globals.css.map +1 -1
  139. package/dist/types/data/company_service_latest.cjs +249 -0
  140. package/dist/types/data/company_service_latest.cjs.map +1 -0
  141. package/dist/types/data/company_service_latest.d.cts +2 -0
  142. package/dist/types/data/company_service_latest.d.ts +2 -0
  143. package/dist/types/data/company_service_latest.js +208 -0
  144. package/dist/types/data/company_service_latest.js.map +1 -0
  145. package/dist/types/data/job_posting_service_latest.cjs +289 -0
  146. package/dist/types/data/job_posting_service_latest.cjs.map +1 -0
  147. package/dist/types/data/job_posting_service_latest.d.cts +2 -0
  148. package/dist/types/data/job_posting_service_latest.d.ts +2 -0
  149. package/dist/types/data/job_posting_service_latest.js +253 -0
  150. package/dist/types/data/job_posting_service_latest.js.map +1 -0
  151. package/dist/types/data/shared_pickle_output_latest.cjs +107 -0
  152. package/dist/types/data/shared_pickle_output_latest.cjs.map +1 -0
  153. package/dist/types/data/shared_pickle_output_latest.d.cts +2 -0
  154. package/dist/types/data/shared_pickle_output_latest.d.ts +2 -0
  155. package/dist/types/data/shared_pickle_output_latest.js +73 -0
  156. package/dist/types/data/shared_pickle_output_latest.js.map +1 -0
  157. package/dist/types/displayText.errors.cjs +44 -0
  158. package/dist/types/displayText.errors.cjs.map +1 -0
  159. package/dist/types/displayText.errors.d.cts +8 -0
  160. package/dist/types/displayText.errors.d.ts +8 -0
  161. package/dist/types/displayText.errors.js +18 -0
  162. package/dist/types/displayText.errors.js.map +1 -0
  163. package/package.json +19 -7
  164. package/dist/AmbitBold-3SZZPYLH.otf +0 -0
  165. package/dist/AmbitBoldItalic-JSHFTN4A.otf +0 -0
  166. package/dist/AmbitRegular-MB5U7O3L.otf +0 -0
  167. package/dist/app/layout.cjs.map +0 -1
  168. package/dist/app/layout.css +0 -1423
  169. package/dist/app/layout.css.map +0 -1
  170. package/dist/app/layout.d.cts +0 -11
  171. package/dist/app/layout.d.ts +0 -11
  172. package/dist/app/layout.js +0 -36
  173. package/dist/app/layout.js.map +0 -1
  174. package/dist/app/page.cjs +0 -1607
  175. package/dist/app/page.cjs.map +0 -1
  176. package/dist/app/page.d.cts +0 -5
  177. package/dist/app/page.d.ts +0 -5
  178. package/dist/app/page.js +0 -1581
  179. package/dist/app/page.js.map +0 -1
  180. package/dist/assets/fonts/AmbitBold.cjs +0 -3
  181. package/dist/assets/fonts/AmbitBold.cjs.map +0 -1
  182. package/dist/assets/fonts/AmbitBold.d.cts +0 -2
  183. package/dist/assets/fonts/AmbitBold.d.ts +0 -2
  184. package/dist/assets/fonts/AmbitBold.js +0 -6
  185. package/dist/assets/fonts/AmbitBold.js.map +0 -1
  186. package/dist/assets/fonts/AmbitBoldItalic.cjs +0 -3
  187. package/dist/assets/fonts/AmbitBoldItalic.cjs.map +0 -1
  188. package/dist/assets/fonts/AmbitBoldItalic.d.cts +0 -2
  189. package/dist/assets/fonts/AmbitBoldItalic.d.ts +0 -2
  190. package/dist/assets/fonts/AmbitBoldItalic.js +0 -6
  191. package/dist/assets/fonts/AmbitBoldItalic.js.map +0 -1
  192. package/dist/assets/fonts/AmbitRegular.cjs +0 -3
  193. package/dist/assets/fonts/AmbitRegular.cjs.map +0 -1
  194. package/dist/assets/fonts/AmbitRegular.d.cts +0 -2
  195. package/dist/assets/fonts/AmbitRegular.d.ts +0 -2
  196. package/dist/assets/fonts/AmbitRegular.js +0 -6
  197. package/dist/assets/fonts/AmbitRegular.js.map +0 -1
  198. package/dist/components/demos/ComboboxDemo.cjs +0 -814
  199. package/dist/components/demos/ComboboxDemo.cjs.map +0 -1
  200. package/dist/components/demos/ComboboxDemo.d.cts +0 -5
  201. package/dist/components/demos/ComboboxDemo.d.ts +0 -5
  202. package/dist/components/demos/ComboboxDemo.js +0 -786
  203. package/dist/components/demos/ComboboxDemo.js.map +0 -1
  204. package/dist/components/demos/CounterDemo.cjs +0 -270
  205. package/dist/components/demos/CounterDemo.cjs.map +0 -1
  206. package/dist/components/demos/CounterDemo.d.cts +0 -5
  207. package/dist/components/demos/CounterDemo.d.ts +0 -5
  208. package/dist/components/demos/CounterDemo.js +0 -238
  209. package/dist/components/demos/CounterDemo.js.map +0 -1
  210. package/dist/components/demos/InputDemo.cjs +0 -225
  211. package/dist/components/demos/InputDemo.cjs.map +0 -1
  212. package/dist/components/demos/InputDemo.d.cts +0 -5
  213. package/dist/components/demos/InputDemo.d.ts +0 -5
  214. package/dist/components/demos/InputDemo.js +0 -192
  215. package/dist/components/demos/InputDemo.js.map +0 -1
  216. package/dist/components/demos/MapComponentDemo.cjs +0 -129
  217. package/dist/components/demos/MapComponentDemo.cjs.map +0 -1
  218. package/dist/components/demos/MapComponentDemo.d.cts +0 -5
  219. package/dist/components/demos/MapComponentDemo.d.ts +0 -5
  220. package/dist/components/demos/MapComponentDemo.js +0 -107
  221. package/dist/components/demos/MapComponentDemo.js.map +0 -1
  222. package/dist/components/demos/PlacesQueryInputDemo.cjs +0 -341
  223. package/dist/components/demos/PlacesQueryInputDemo.cjs.map +0 -1
  224. package/dist/components/demos/PlacesQueryInputDemo.d.cts +0 -5
  225. package/dist/components/demos/PlacesQueryInputDemo.d.ts +0 -5
  226. package/dist/components/demos/PlacesQueryInputDemo.js +0 -309
  227. package/dist/components/demos/PlacesQueryInputDemo.js.map +0 -1
  228. package/dist/components/demos/SelectDemo.cjs +0 -365
  229. package/dist/components/demos/SelectDemo.cjs.map +0 -1
  230. package/dist/components/demos/SelectDemo.d.cts +0 -5
  231. package/dist/components/demos/SelectDemo.d.ts +0 -5
  232. package/dist/components/demos/SelectDemo.js +0 -337
  233. package/dist/components/demos/SelectDemo.js.map +0 -1
  234. package/dist/components/demos/index.cjs +0 -1600
  235. package/dist/components/demos/index.cjs.map +0 -1
  236. package/dist/components/demos/index.d.cts +0 -5
  237. package/dist/components/demos/index.d.ts +0 -5
  238. package/dist/components/demos/index.js +0 -1574
  239. package/dist/components/demos/index.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -30,20 +30,37 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ Avatar: () => Avatar,
34
+ BackButton: () => BackButton,
33
35
  Badge: () => Badge,
34
36
  Button: () => Button,
35
37
  Checkbox: () => Checkbox_default,
36
38
  Chip: () => Chip_default,
37
39
  Combobox: () => Combobox,
40
+ CompanyBenefits: () => CompanyBenefits,
41
+ CompanyInformation: () => CompanyInformation,
42
+ CompanyService: () => company_service_latest_exports,
43
+ CompanyTake: () => CompanyTake,
38
44
  Counter: () => Counter,
45
+ Icon: () => Icon,
39
46
  Input: () => Input_default,
47
+ JobDescription: () => JobDescription,
48
+ JobHeader: () => JobHeader,
49
+ JobPost: () => JobPost,
50
+ JobPostService: () => job_posting_service_latest_exports,
40
51
  Label: () => Label_default,
52
+ LinkButton: () => LinkButton,
41
53
  ListItem: () => ListItem_default,
42
54
  MapComponent: () => MapComponent_default,
43
55
  PlacesQueryInput: () => PlacesQueryInput_default,
56
+ ReadMore: () => ReadMore,
44
57
  Select: () => Select_default,
58
+ SharedService: () => shared_pickle_output_latest_exports,
59
+ WindowHistoryProvider: () => WindowHistoryProvider,
45
60
  cn: () => cn,
46
- fetchLocation: () => fetchLocation
61
+ fetchLocation: () => fetchLocation,
62
+ useDisplayText: () => useDisplayText,
63
+ useWindowHistory: () => useWindowHistory
47
64
  });
48
65
  module.exports = __toCommonJS(index_exports);
49
66
 
@@ -1353,21 +1370,1461 @@ var counterVariants = (0, import_cva6.cva)(
1353
1370
  }
1354
1371
  }
1355
1372
  );
1373
+
1374
+ // src/components/primitives/avatar.tsx
1375
+ var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
1376
+ var React7 = __toESM(require("react"), 1);
1377
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1378
+ var AvatarBase = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1379
+ AvatarPrimitive.Root,
1380
+ {
1381
+ ref,
1382
+ className: cn("relative flex shrink-0 overflow-hidden rounded-full", className),
1383
+ ...props
1384
+ }
1385
+ ));
1386
+ AvatarBase.displayName = AvatarPrimitive.Root.displayName;
1387
+ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1388
+ AvatarPrimitive.Image,
1389
+ {
1390
+ ref,
1391
+ className: cn("aspect-square h-full w-full", className),
1392
+ "data-testid": "job-card-avatar",
1393
+ ...props
1394
+ }
1395
+ ));
1396
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
1397
+ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1398
+ AvatarPrimitive.Fallback,
1399
+ {
1400
+ ref,
1401
+ className: cn(
1402
+ "flex h-full w-full items-center justify-center rounded-full bg-pumpkin-100 py-2 text-sm font-bold capitalize leading-normal text-white md:text-lg",
1403
+ className
1404
+ ),
1405
+ ...props
1406
+ }
1407
+ ));
1408
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
1409
+
1410
+ // src/components/ui/Avatar.tsx
1411
+ var import_cva7 = require("cva");
1412
+ var import_link = __toESM(require("next/link"), 1);
1413
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1414
+ function Avatar({ size, src, href, name, ...linkProps }) {
1415
+ const fallbackShort = name?.slice(0, 2);
1416
+ const fallbackWords = name?.split(" ").map((n) => n[0]).join("").slice(0, 2);
1417
+ const fallback = fallbackWords && fallbackWords.length > 1 ? fallbackWords : fallbackShort;
1418
+ const renderAvatar = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(AvatarBase, { className: avatarVariants({ size }), children: [
1419
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(AvatarImage, { src, alt: name }),
1420
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(AvatarFallback, { children: fallback?.toUpperCase() })
1421
+ ] });
1422
+ if (href) {
1423
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_link.default, { href, ...linkProps, children: renderAvatar() });
1424
+ }
1425
+ return renderAvatar();
1426
+ }
1427
+ var avatarVariants = (0, import_cva7.cva)("ring ring-white ring-2", {
1428
+ variants: {
1429
+ size: {
1430
+ large: "h-16 w-16",
1431
+ medium: "h-10 w-10",
1432
+ small: "h-8 w-8"
1433
+ }
1434
+ },
1435
+ defaultVariants: {
1436
+ size: "medium"
1437
+ }
1438
+ });
1439
+
1440
+ // src/components/ui/Icon.tsx
1441
+ var import_react_slot2 = require("@radix-ui/react-slot");
1442
+ var import_cva8 = require("cva");
1443
+ var import_react8 = require("react");
1444
+ var import_tailwind_merge3 = require("tailwind-merge");
1445
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1446
+ var Icon = (0, import_react8.forwardRef)(
1447
+ ({ variant, size, active = false, readonly = false, className, ...props }, ref) => {
1448
+ const Component = readonly ? import_react_slot2.Slot : "button";
1449
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1450
+ Component,
1451
+ {
1452
+ className: cn(
1453
+ (0, import_tailwind_merge3.twMerge)(iconVariants({ variant: active ? "active" : variant, size })),
1454
+ className
1455
+ ),
1456
+ ...props,
1457
+ ref
1458
+ }
1459
+ );
1460
+ }
1461
+ );
1462
+ Icon.displayName = "Icon";
1463
+ var iconVariants = (0, import_cva8.cva)(
1464
+ [
1465
+ "inline-flex",
1466
+ "items-center",
1467
+ "rounded-full",
1468
+ "outline-2",
1469
+ "outline-offset-2",
1470
+ "outline-dashed",
1471
+ "outline-transparent",
1472
+ "disabled:text-grey-40",
1473
+ "disabled:bg-transparent",
1474
+ "disabled:pointer-events-none"
1475
+ ],
1476
+ {
1477
+ variants: {
1478
+ variant: {
1479
+ filled: [
1480
+ "border",
1481
+ "border-green-80",
1482
+ "bg-green-90",
1483
+ "text-white",
1484
+ "hover:bg-green-80",
1485
+ "active:bg-green-80",
1486
+ "focus:outline-pickle-100",
1487
+ "disabled:bg-green-70"
1488
+ ],
1489
+ transparent: [
1490
+ "text-black",
1491
+ "hover:bg-grey-5",
1492
+ "active:bg-grey-10",
1493
+ "focus:outline-purple-100"
1494
+ ],
1495
+ tonal: [
1496
+ "border",
1497
+ "border-grey-5",
1498
+ "hover:border-grey-10",
1499
+ "active:border-grey-20",
1500
+ "focus:outline-purple-100"
1501
+ ],
1502
+ active: ["text-black", "bg-pickle-100"]
1503
+ },
1504
+ size: {
1505
+ small: ["h-10", "w-10", "p-3"],
1506
+ medium: ["h-12", "w-12", "p-4"],
1507
+ large: ["h-14", "w-14", "p-4"]
1508
+ }
1509
+ },
1510
+ defaultVariants: {
1511
+ variant: "filled",
1512
+ size: "medium"
1513
+ }
1514
+ }
1515
+ );
1516
+
1517
+ // src/components/ui/LinkButton.tsx
1518
+ var import_link2 = __toESM(require("next/link"), 1);
1519
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1520
+ var LinkButton = ({
1521
+ disabled = false,
1522
+ useAnchor = false,
1523
+ children,
1524
+ href,
1525
+ ...props
1526
+ }) => {
1527
+ const Component = useAnchor ? "a" : import_link2.default;
1528
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1529
+ Component,
1530
+ {
1531
+ href,
1532
+ className: `inline-flex items-center justify-center gap-2 rounded-full text-sm font-bold leading-tight text-black underline outline-dashed outline-2 outline-offset-2 outline-transparent hover:text-purple-100 focus:text-black focus:outline-purple-100 active:text-purple-80 ${disabled ? "pointer-events-none text-grey-40" : ""} `,
1533
+ ...disabled && { "aria-disabled": true, tabIndex: -1 },
1534
+ ...props,
1535
+ children
1536
+ }
1537
+ );
1538
+ };
1539
+
1540
+ // src/components/ui/ReadMore.tsx
1541
+ var import_react9 = require("react");
1542
+ var import_react_markdown = __toESM(require("react-markdown"), 1);
1543
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1544
+ function ReadMore({ text, ...props }) {
1545
+ const [isExpanded, setIsExpanded] = (0, import_react9.useState)(false);
1546
+ const [maxWords, setMaxWords] = (0, import_react9.useState)(160);
1547
+ (0, import_react9.useEffect)(() => {
1548
+ const updateMaxWords = () => {
1549
+ const windowWidth = window.innerWidth;
1550
+ if (windowWidth <= 768) {
1551
+ setMaxWords(50);
1552
+ } else {
1553
+ setMaxWords(160);
1554
+ }
1555
+ };
1556
+ updateMaxWords();
1557
+ window.addEventListener("resize", updateMaxWords);
1558
+ return () => window.removeEventListener("resize", updateMaxWords);
1559
+ }, []);
1560
+ function createReadMoreText(text2, maxWords2, isExpanded2) {
1561
+ const words = text2.split(" ");
1562
+ const snippet2 = isExpanded2 ? text2 : words.slice(0, maxWords2).join(" ");
1563
+ const readMoreText = isExpanded2 ? "" : "...";
1564
+ return `${snippet2} ${readMoreText}`;
1565
+ }
1566
+ const toggleText = () => setIsExpanded(!isExpanded);
1567
+ const snippet = createReadMoreText(text, maxWords, isExpanded);
1568
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { ...props, children: [
1569
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_markdown.default, { children: snippet }) }),
1570
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { className: "mt-2 flex items-center justify-center", variant: "link", onClick: toggleText, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("p", { className: "text-sm font-bold underline underline-offset-2", children: [
1571
+ "Read ",
1572
+ isExpanded ? "less" : "more"
1573
+ ] }) })
1574
+ ] });
1575
+ }
1576
+
1577
+ // src/components/company/CompanyBenefits.tsx
1578
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1579
+ function CompanyBenefits({ benefits }) {
1580
+ if (!benefits) return null;
1581
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
1582
+ /* @__PURE__ */ (0, import_jsx_runtime24.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" }),
1583
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
1584
+ ] });
1585
+ }
1586
+
1587
+ // src/components/company/CompanyInformation.tsx
1588
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1589
+ function CompanyInformation({
1590
+ name,
1591
+ how,
1592
+ mission,
1593
+ wow,
1594
+ website
1595
+ }) {
1596
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-2", children: [
1597
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
1598
+ "h2",
1599
+ {
1600
+ "data-testid": "company-name",
1601
+ className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg",
1602
+ children: [
1603
+ "About ",
1604
+ name
1605
+ ]
1606
+ }
1607
+ ),
1608
+ how && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
1609
+ mission && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex gap-2", children: [
1610
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "\u{1F680}" }),
1611
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("p", { className: "text-base text-grey-80", children: [
1612
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "pr-1 font-bold", children: "Mission" }),
1613
+ mission
1614
+ ] })
1615
+ ] }),
1616
+ wow && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex gap-2", children: [
1617
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: "\u{1F31F}" }),
1618
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("p", { className: "text-base text-grey-80", children: [
1619
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
1620
+ wow
1621
+ ] })
1622
+ ] }),
1623
+ website && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1624
+ LinkButton,
1625
+ {
1626
+ "data-testid": "company-website-link",
1627
+ href: website,
1628
+ target: "_blank",
1629
+ rel: "noopener noreferrer",
1630
+ children: "Website"
1631
+ }
1632
+ ) })
1633
+ ] });
1634
+ }
1635
+
1636
+ // src/components/company/CompanyTake.tsx
1637
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1638
+ function CompanyTake({ content, avatarSrc }) {
1639
+ if (!content) return null;
1640
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
1641
+ "div",
1642
+ {
1643
+ "data-testid": "company-take",
1644
+ className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
1645
+ children: [
1646
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
1647
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
1648
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "mt-8 flex w-full items-center gap-3", children: [
1649
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
1650
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
1651
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
1652
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
1653
+ ] })
1654
+ ] })
1655
+ ]
1656
+ }
1657
+ );
1658
+ }
1659
+
1660
+ // src/components/jobPost/JobDescription.tsx
1661
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1662
+ function JobDescription({ description }) {
1663
+ if (!description) return null;
1664
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
1665
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
1666
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ReadMore, { text: description })
1667
+ ] });
1668
+ }
1669
+
1670
+ // src/components/jobPost/JobHeader.tsx
1671
+ var import_lucide_react14 = require("lucide-react");
1672
+ var import_image = __toESM(require("next/image"), 1);
1673
+
1674
+ // src/components/buttons/BackButton.tsx
1675
+ var import_lucide_react12 = require("lucide-react");
1676
+ var import_navigation2 = require("next/navigation");
1677
+
1678
+ // src/hooks/useWindowHistory.ts
1679
+ var import_react11 = require("react");
1680
+
1681
+ // src/contexts/WindowHistoryProvider.tsx
1682
+ var import_navigation = require("next/navigation");
1683
+ var import_react10 = require("react");
1684
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1685
+ var WindowHistoryContext = (0, import_react10.createContext)({});
1686
+ function WindowHistoryProvider({ children }) {
1687
+ const [history, setHistory] = (0, import_react10.useState)([]);
1688
+ const searchParams = (0, import_navigation.useSearchParams)();
1689
+ (0, import_react10.useEffect)(() => {
1690
+ setHistory(
1691
+ (prev) => prev.at(-1) === window.location.href ? prev : [...prev, window.location.href]
1692
+ );
1693
+ }, [searchParams]);
1694
+ const contextValue = (0, import_react10.useMemo)(() => ({ history }), [history]);
1695
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(WindowHistoryContext.Provider, { value: contextValue, children });
1696
+ }
1697
+
1698
+ // src/hooks/useWindowHistory.ts
1699
+ function useWindowHistory() {
1700
+ const windowHistoryContext = (0, import_react11.useContext)(WindowHistoryContext);
1701
+ if (Object.keys(windowHistoryContext).length === 0) {
1702
+ throw new Error("useWindowHistory was used outside of its WindowHistoryContext");
1703
+ }
1704
+ return windowHistoryContext;
1705
+ }
1706
+
1707
+ // src/components/buttons/BackButton.tsx
1708
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1709
+ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
1710
+ const { history } = useWindowHistory();
1711
+ const router = (0, import_navigation2.useRouter)();
1712
+ const isAcceptedRoute = (r) => !!acceptedRoutes?.find((route) => new RegExp("^" + route + "$", "i").test(r));
1713
+ const goBack = () => {
1714
+ const previous = history[history.length - 2];
1715
+ history.length > 1 && isAcceptedRoute(previous) ? router.back() : router.push(fallbackHref ?? "/");
1716
+ };
1717
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1718
+ Icon,
1719
+ {
1720
+ "aria-label": "back button",
1721
+ variant: "transparent",
1722
+ size: "small",
1723
+ onClick: goBack,
1724
+ className,
1725
+ ...props,
1726
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react12.X, {})
1727
+ }
1728
+ );
1729
+ }
1730
+
1731
+ // src/lib/icons.ts
1732
+ var import_lucide_react13 = require("lucide-react");
1733
+ var iconMap = {
1734
+ house: import_lucide_react13.Home,
1735
+ layers: import_lucide_react13.Layers,
1736
+ users: import_lucide_react13.Users,
1737
+ settings: import_lucide_react13.Settings,
1738
+ building: import_lucide_react13.Building,
1739
+ bell: import_lucide_react13.Bell,
1740
+ wallet: import_lucide_react13.Wallet,
1741
+ contact: import_lucide_react13.Contact,
1742
+ banknote: import_lucide_react13.Banknote,
1743
+ "message-square-dot": import_lucide_react13.MessageSquareDot,
1744
+ "life-buoy": import_lucide_react13.LifeBuoy,
1745
+ "building-2": import_lucide_react13.Building2,
1746
+ "gallery-vertical-end": import_lucide_react13.GalleryVerticalEnd,
1747
+ "square-kanban": import_lucide_react13.SquareKanban,
1748
+ "briefcase-business": import_lucide_react13.BriefcaseBusiness,
1749
+ "circle-user": import_lucide_react13.CircleUser,
1750
+ "key-round": import_lucide_react13.KeyRound,
1751
+ "clock-2": import_lucide_react13.Clock2,
1752
+ "circle-user-round": import_lucide_react13.CircleUserRound,
1753
+ "map-pin": import_lucide_react13.MapPin
1754
+ };
1755
+
1756
+ // src/components/jobPost/JobHeader.tsx
1757
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1758
+ function JobHeader({
1759
+ title,
1760
+ subtitles,
1761
+ standalone,
1762
+ bannerSrc,
1763
+ avatarSrc,
1764
+ avatarName,
1765
+ avatarHref,
1766
+ backFallbackHref,
1767
+ backAcceptedRoutes,
1768
+ actions,
1769
+ tags
1770
+ }) {
1771
+ const renderIcon = (icon) => {
1772
+ const Icon2 = iconMap[icon];
1773
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { size: 18 });
1774
+ };
1775
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1776
+ "div",
1777
+ {
1778
+ "data-testid": "job-header-root",
1779
+ className: cn(
1780
+ "-mt-8 flex w-full flex-col items-center justify-between gap-6 md:-mt-0",
1781
+ !standalone && "rounded-3xl"
1782
+ ),
1783
+ children: [
1784
+ !standalone && /* @__PURE__ */ (0, import_jsx_runtime30.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: [
1785
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1786
+ import_image.default,
1787
+ {
1788
+ className: "h-full w-full rounded-t-3xl object-cover",
1789
+ src: bannerSrc,
1790
+ alt: "job banner",
1791
+ fill: true
1792
+ }
1793
+ ),
1794
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1795
+ BackButton,
1796
+ {
1797
+ acceptedRoutes: backAcceptedRoutes,
1798
+ fallbackHref: backFallbackHref,
1799
+ className: "absolute right-2 top-2 flex items-center justify-center text-white sm:hidden",
1800
+ "data-testid": "job-header-back-button"
1801
+ }
1802
+ ),
1803
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1804
+ "div",
1805
+ {
1806
+ className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
1807
+ "data-testid": "job-header-avatar",
1808
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1809
+ Avatar,
1810
+ {
1811
+ size: "large",
1812
+ target: "_blank",
1813
+ href: avatarHref,
1814
+ name: avatarName,
1815
+ src: avatarSrc,
1816
+ rel: "noopener noreferrer"
1817
+ }
1818
+ )
1819
+ }
1820
+ )
1821
+ ] }),
1822
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
1823
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
1824
+ standalone && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1825
+ Avatar,
1826
+ {
1827
+ size: "large",
1828
+ target: "_blank",
1829
+ href: avatarHref,
1830
+ name: avatarName,
1831
+ src: avatarSrc,
1832
+ rel: "noopener noreferrer"
1833
+ }
1834
+ ) }),
1835
+ /* @__PURE__ */ (0, import_jsx_runtime30.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_runtime30.jsxs)(
1836
+ "div",
1837
+ {
1838
+ "data-testid": `job-header-subtitle-${i}`,
1839
+ className: "flex items-center",
1840
+ children: [
1841
+ subtitle,
1842
+ i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react14.Dot, { className: "mx-1 shrink-0", size: 10 })
1843
+ ]
1844
+ },
1845
+ subtitle
1846
+ )) })
1847
+ ] }),
1848
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1849
+ "div",
1850
+ {
1851
+ "data-testid": "job-header-content",
1852
+ className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
1853
+ children: [
1854
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1855
+ "h2",
1856
+ {
1857
+ "data-testid": "job-header-title",
1858
+ className: "break-word max-w-full text-2xl font-bold text-black sm:max-w-2xl md:max-w-lg",
1859
+ children: title
1860
+ }
1861
+ ),
1862
+ !!actions && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1863
+ "div",
1864
+ {
1865
+ className: "flex w-full justify-end gap-2 md:w-auto",
1866
+ "data-testid": "job-header-actions",
1867
+ children: actions
1868
+ }
1869
+ )
1870
+ ]
1871
+ }
1872
+ ),
1873
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1874
+ "div",
1875
+ {
1876
+ "data-testid": "job-header-tags",
1877
+ className: "flex flex-row flex-wrap items-center justify-start gap-2",
1878
+ children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
1879
+ Chip_default,
1880
+ {
1881
+ size: "small",
1882
+ variant: "neutral",
1883
+ "aria-label": name,
1884
+ "data-testid": `job-header-tag-${name}`,
1885
+ children: [
1886
+ renderIcon(icon),
1887
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: label })
1888
+ ]
1889
+ },
1890
+ name
1891
+ ))
1892
+ }
1893
+ )
1894
+ ] })
1895
+ ]
1896
+ }
1897
+ );
1898
+ }
1899
+
1900
+ // src/components/jobPost/JobPost.tsx
1901
+ var DateFns = __toESM(require("date-fns"), 1);
1902
+
1903
+ // src/types/data/shared_pickle_output_latest.ts
1904
+ var shared_pickle_output_latest_exports = {};
1905
+ __export(shared_pickle_output_latest_exports, {
1906
+ CurrencyEnum: () => CurrencyEnum,
1907
+ DetailLevelEnum: () => DetailLevelEnum,
1908
+ TypeEnum: () => TypeEnum,
1909
+ UnitTextEnum: () => UnitTextEnum,
1910
+ imageAssetSchema: () => imageAssetSchema,
1911
+ imageSchema: () => imageSchema,
1912
+ monetaryAmountSchema: () => monetaryAmountSchema,
1913
+ placeSchema: () => placeSchema,
1914
+ postalAddressSchema: () => postalAddressSchema,
1915
+ quantitativeValueSchema: () => quantitativeValueSchema
1916
+ });
1917
+ var import_zod = require("zod");
1918
+ var TypeEnum = import_zod.z.enum(["IMAGE"]);
1919
+ var DetailLevelEnum = import_zod.z.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
1920
+ var UnitTextEnum = import_zod.z.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
1921
+ var CurrencyEnum = import_zod.z.enum(["EUR", "GBP", "USD"]);
1922
+ var postalAddressSchema = import_zod.z.object({
1923
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
1924
+ type: import_zod.z.string().describe("Document type used for schema"),
1925
+ addressCountry: import_zod.z.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
1926
+ addressRegion: import_zod.z.optional(import_zod.z.string()).describe("The region in which the locality is, and which is in the country."),
1927
+ 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."),
1928
+ streetAddress: import_zod.z.optional(import_zod.z.string()).describe("The street address within the locality."),
1929
+ postalCode: import_zod.z.optional(import_zod.z.string()).describe("The postal code")
1930
+ });
1931
+ var placeSchema = import_zod.z.object({
1932
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
1933
+ detailLevel: import_zod.z.optional(DetailLevelEnum),
1934
+ latitude: import_zod.z.optional(import_zod.z.number()).describe("The latitude of a location."),
1935
+ longitude: import_zod.z.optional(import_zod.z.number()).describe("The longitude of a location."),
1936
+ address: import_zod.z.optional(postalAddressSchema).describe("The physical place of the location")
1937
+ });
1938
+ var quantitativeValueSchema = import_zod.z.object({
1939
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
1940
+ type: import_zod.z.string().describe("Document type used for schema"),
1941
+ 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."),
1942
+ 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."),
1943
+ maxValue: import_zod.z.optional(import_zod.z.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
1944
+ unitText: UnitTextEnum
1945
+ });
1946
+ var monetaryAmountSchema = import_zod.z.object({
1947
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
1948
+ type: import_zod.z.string().describe("Document type used for schema"),
1949
+ 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."),
1950
+ 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"),
1951
+ 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"),
1952
+ value: import_zod.z.optional(quantitativeValueSchema).describe("The quantitative_value for a given salary"),
1953
+ currency: import_zod.z.optional(CurrencyEnum)
1954
+ });
1955
+ var imageAssetSchema = import_zod.z.object({
1956
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
1957
+ altText: import_zod.z.optional(import_zod.z.string()).describe("The alt text for the image"),
1958
+ assetId: import_zod.z.optional(import_zod.z.string()).describe("The asset ID for the image"),
1959
+ description: import_zod.z.optional(import_zod.z.string()).describe("The description for the image"),
1960
+ extension: import_zod.z.optional(import_zod.z.string()).describe("The extension for the image"),
1961
+ label: import_zod.z.optional(import_zod.z.string()).describe("The label for the image"),
1962
+ mimeType: import_zod.z.optional(import_zod.z.string()).describe("The mime type for the image"),
1963
+ originalFilename: import_zod.z.optional(import_zod.z.string()).describe("The original filename for the image"),
1964
+ path: import_zod.z.optional(import_zod.z.string()).describe("The path for the image"),
1965
+ sha1Hash: import_zod.z.optional(import_zod.z.string()).describe("The SHA1 hash for the image"),
1966
+ size: import_zod.z.optional(import_zod.z.number()).describe("The size for the image"),
1967
+ title: import_zod.z.optional(import_zod.z.string()).describe("The title for the image"),
1968
+ uploadId: import_zod.z.optional(import_zod.z.string()).describe("The upload ID for the image"),
1969
+ url: import_zod.z.optional(import_zod.z.string()).describe("The URL for the image")
1970
+ });
1971
+ var imageSchema = import_zod.z.object({
1972
+ version: import_zod.z.literal("1.0.0").default("1.0.0"),
1973
+ type: import_zod.z.string().describe("Document type used for schema"),
1974
+ asset: import_zod.z.optional(imageAssetSchema).describe("The asset for the image")
1975
+ });
1976
+
1977
+ // src/lib/salaryRange.ts
1978
+ function salaryRange(salary) {
1979
+ if (!salary) return null;
1980
+ const min = salary.minValue;
1981
+ const max = salary.maxValue;
1982
+ const single = salary.singleValue;
1983
+ const signs = {
1984
+ [CurrencyEnum.Values.USD]: "$",
1985
+ [CurrencyEnum.Values.GBP]: "\xA3",
1986
+ [CurrencyEnum.Values.EUR]: "\u20AC"
1987
+ };
1988
+ const sign = signs[salary.currency ?? CurrencyEnum.Values.USD];
1989
+ if (min == null && max == null && single == null) return null;
1990
+ if (single != null) return sign + single.toLocaleString();
1991
+ if (min === max) return sign + min?.toLocaleString();
1992
+ if (min != null && max != null)
1993
+ return sign + min?.toLocaleString() + " - " + sign + max?.toLocaleString();
1994
+ return null;
1995
+ }
1996
+
1997
+ // src/hooks/useDisplayText.ts
1998
+ var import_react12 = require("react");
1999
+
2000
+ // src/lib/mappings.ts
2001
+ var employmentTypeDisplayText = {
2002
+ FULL_TIME: {
2003
+ en: "Full Time"
2004
+ },
2005
+ INTERNSHIP: {
2006
+ en: "Internship"
2007
+ },
2008
+ OTHER: {
2009
+ en: "Other"
2010
+ },
2011
+ PART_TIME: {
2012
+ en: "Part Time"
2013
+ },
2014
+ PER_DIEM: {
2015
+ en: "Per-Diem"
2016
+ },
2017
+ TEMPORARY: {
2018
+ en: "Temporary"
2019
+ },
2020
+ CONTRACT: {
2021
+ en: "Contract"
2022
+ }
2023
+ };
2024
+ var unitTextDisplayText = {
2025
+ DAY: {
2026
+ en: "Day"
2027
+ },
2028
+ HOUR: {
2029
+ en: "Hour"
2030
+ },
2031
+ MONTH: {
2032
+ en: "Month"
2033
+ },
2034
+ PER_ACTIVITY: {
2035
+ en: "Per Activity"
2036
+ },
2037
+ WEEK: {
2038
+ en: "Week"
2039
+ },
2040
+ YEAR: {
2041
+ en: "Year"
2042
+ }
2043
+ };
2044
+ var currencyDisplayText = {
2045
+ EUR: {
2046
+ en: "\u20AC"
2047
+ },
2048
+ GBP: {
2049
+ en: "\xA3"
2050
+ },
2051
+ USD: {
2052
+ en: "$"
2053
+ }
2054
+ };
2055
+ var employmentLevelDisplayText = {
2056
+ DIRECTOR: {
2057
+ en: "Director"
2058
+ },
2059
+ ENTRY_LEVEL: {
2060
+ en: "Entry Level"
2061
+ },
2062
+ EXECUTIVE: {
2063
+ en: "Executive"
2064
+ },
2065
+ EXPERIENCED: {
2066
+ en: "Experienced"
2067
+ },
2068
+ INTERN: {
2069
+ en: "Intern"
2070
+ },
2071
+ MANAGER: {
2072
+ en: "Manager"
2073
+ }
2074
+ };
2075
+ var jobFunctionDisplayText = {
2076
+ CLINICAL_RESEARCH: {
2077
+ en: "Clinical Research"
2078
+ },
2079
+ CUSTOMER_SUCCESS: {
2080
+ en: "Customer Success"
2081
+ },
2082
+ DATA_ANALYTICS: {
2083
+ en: "Data Analytics"
2084
+ },
2085
+ FINANCE_AND_AUDIT: {
2086
+ en: "Finance and Audit"
2087
+ },
2088
+ MARKETING: {
2089
+ en: "Marketing"
2090
+ },
2091
+ OPERATIONS: {
2092
+ en: "Operations"
2093
+ },
2094
+ PEOPLE_HUMAN_RESOURCES: {
2095
+ en: "People Human Resources"
2096
+ },
2097
+ PRODUCT_AND_TECH: {
2098
+ en: "Product and Tech"
2099
+ },
2100
+ QUALITY_ASSURANCE_AND_OUTCOMES: {
2101
+ en: "Quality Assurance and Outcomes"
2102
+ },
2103
+ SALES_AND_BUSINESS_DEVELOPMENT: {
2104
+ en: "Sales and Business Development"
2105
+ },
2106
+ STRATEGY_AND_CONSULTING: {
2107
+ en: "Strategy and Consulting"
2108
+ }
2109
+ };
2110
+ var bestFitDisplayText = {
2111
+ DENTIST: {
2112
+ en: "Dentist"
2113
+ },
2114
+ DIETICIAN: {
2115
+ en: "Dietician"
2116
+ },
2117
+ DOULA: {
2118
+ en: "Doula"
2119
+ },
2120
+ MEDICAL_ASSISTANT: {
2121
+ en: "Medical Assistant"
2122
+ },
2123
+ MIDWIFE: {
2124
+ en: "Midwife"
2125
+ },
2126
+ NURSE: {
2127
+ en: "Nurse"
2128
+ },
2129
+ OCCUPATIONAL_THERAPIST: {
2130
+ en: "Occupational Therapist"
2131
+ },
2132
+ PHARMACIST: {
2133
+ en: "Pharmacist"
2134
+ },
2135
+ PHYSICAL_THERAPIST: {
2136
+ en: "Physical Therapist"
2137
+ },
2138
+ PHYSICIAN: {
2139
+ en: "Physician"
2140
+ },
2141
+ PHYSICIAN_ASSISTANT: {
2142
+ en: "Physician Assistant"
2143
+ },
2144
+ PSYCHOLOGIST: {
2145
+ en: "Psychologist"
2146
+ },
2147
+ RADIOLOGIST: {
2148
+ en: "Radiologist"
2149
+ },
2150
+ SOCIAL_WORKER: {
2151
+ en: "Social Worker"
2152
+ },
2153
+ SPEECH_LANGUAGE_PATHOLOGIST: {
2154
+ en: "Speech Language Pathologist"
2155
+ },
2156
+ SURGEON: {
2157
+ en: "Surgeon"
2158
+ }
2159
+ };
2160
+ var clinicalSpecialtyDisplayText = {
2161
+ ANESTHESIOLOGY: {
2162
+ en: "Anesthesiology"
2163
+ },
2164
+ CARDIOLOGY: {
2165
+ en: "Cardiology"
2166
+ },
2167
+ CARDIOVASCULAR_AND_PULMONARY: {
2168
+ en: "Cardiovascular and Pulmonary"
2169
+ },
2170
+ CASE_MANAGEMENT: {
2171
+ en: "Case Management"
2172
+ },
2173
+ CHRONIC_PAIN: {
2174
+ en: "Chronic Pain"
2175
+ },
2176
+ CLINICAL_ELECTROPHYSIOLOGY: {
2177
+ en: "Clinical Electrophysiology"
2178
+ },
2179
+ CRITICAL_AND_ACUTE_CARE: {
2180
+ en: "Critical and Acute Care"
2181
+ },
2182
+ DERMATOLOGY: {
2183
+ en: "Dermatology"
2184
+ },
2185
+ DIALYSIS: {
2186
+ en: "Dialysis"
2187
+ },
2188
+ EMERGENCY_MEDICINE: {
2189
+ en: "Emergency Medicine"
2190
+ },
2191
+ ENDOCRINOLOGY: {
2192
+ en: "Endocrinology"
2193
+ },
2194
+ ERGONOMICS: {
2195
+ en: "Ergonomics"
2196
+ },
2197
+ FEEDING_EATING_AND_SWALLOWING: {
2198
+ en: "Feeding, Eating, and Swallowing"
2199
+ },
2200
+ GASTROENTEROLOGY: {
2201
+ en: "Gastroenterology"
2202
+ },
2203
+ GERIATRICS: {
2204
+ en: "Geriatrics"
2205
+ },
2206
+ HAND_THERAPY: {
2207
+ en: "Hand Therapy"
2208
+ },
2209
+ HEMATOLOGY: {
2210
+ en: "Hematology"
2211
+ },
2212
+ HOLISTIC_MEDICINE: {
2213
+ en: "Holistic Medicine"
2214
+ },
2215
+ INFORMATICS: {
2216
+ en: "Informatics"
2217
+ },
2218
+ INTERNAL_MEDICINE: {
2219
+ en: "Internal Medicine"
2220
+ },
2221
+ LABOR_AND_DELIVERY: {
2222
+ en: "Labor and Delivery"
2223
+ },
2224
+ MANUAL_THERAPY: {
2225
+ en: "Manual Therapy"
2226
+ },
2227
+ MED_SURG: {
2228
+ en: "Medical-Surgical"
2229
+ },
2230
+ MENTAL_HEALTH: {
2231
+ en: "Mental Health"
2232
+ },
2233
+ NEPHROLOGY: {
2234
+ en: "Nephrology"
2235
+ },
2236
+ NEUROLOGY: {
2237
+ en: "Neurology"
2238
+ },
2239
+ ONCOLOGY: {
2240
+ en: "Oncology"
2241
+ },
2242
+ ORTHOPEDICS: {
2243
+ en: "Orthopedics"
2244
+ },
2245
+ OTOLARYNGOLOGY: {
2246
+ en: "Otolaryngology"
2247
+ },
2248
+ PEDIATRICS: {
2249
+ en: "Pediatrics"
2250
+ },
2251
+ PHYSICAL_AND_REHABILITATION_MEDICINE: {
2252
+ en: "Physical and Rehabilitation Medicine"
2253
+ },
2254
+ PLASTIC_SURGERY: {
2255
+ en: "Plastic Surgery"
2256
+ },
2257
+ PRIMARY_CARE: {
2258
+ en: "Primary Care"
2259
+ },
2260
+ PSYCHIATRY: {
2261
+ en: "Psychiatry"
2262
+ },
2263
+ PULMONOLOGY: {
2264
+ en: "Pulmonology"
2265
+ },
2266
+ RADIOLOGY: {
2267
+ en: "Radiology"
2268
+ },
2269
+ SENSORY: {
2270
+ en: "Sensory"
2271
+ },
2272
+ SPORTS: {
2273
+ en: "Sports"
2274
+ },
2275
+ SURGERY: {
2276
+ en: "Surgery"
2277
+ },
2278
+ TRANSPLANT_SURGERY: {
2279
+ en: "Transplant Surgery"
2280
+ },
2281
+ TRAUMA_MEDICINE: {
2282
+ en: "Trauma Medicine"
2283
+ },
2284
+ URGENT_CARE: {
2285
+ en: "Urgent Care"
2286
+ },
2287
+ UROLOGY: {
2288
+ en: "Urology"
2289
+ },
2290
+ VISION: {
2291
+ en: "Vision"
2292
+ },
2293
+ WOMENS_HEALTH: {
2294
+ en: "Women's Health"
2295
+ },
2296
+ WOUND_AND_BURN_CARE: {
2297
+ en: "Wound and Burn Care"
2298
+ },
2299
+ WOUND_MANAGEMENT: {
2300
+ en: "Wound Management"
2301
+ }
2302
+ };
2303
+ var shiftDisplayText = {
2304
+ TEN_HOUR: {
2305
+ en: "10 Hour"
2306
+ },
2307
+ TWELVE_HOUR: {
2308
+ en: "12 Hour"
2309
+ },
2310
+ EIGHT_HOUR: {
2311
+ en: "8 Hour"
2312
+ },
2313
+ DAY: {
2314
+ en: "Day"
2315
+ },
2316
+ EVENING: {
2317
+ en: "Evening"
2318
+ },
2319
+ FLEXIBLE: {
2320
+ en: "Flexible"
2321
+ },
2322
+ MID_SHIFT: {
2323
+ en: "Mid Shift"
2324
+ },
2325
+ MONDAY_TO_FRIDAY: {
2326
+ en: "Monday to Friday"
2327
+ },
2328
+ NIGHT: {
2329
+ en: "Night"
2330
+ },
2331
+ ON_CALL: {
2332
+ en: "On Call"
2333
+ },
2334
+ WEEKENDS: {
2335
+ en: "Weekends"
2336
+ }
2337
+ };
2338
+ var clinicalSettingDisplayText = {
2339
+ ACUTE_CARE: {
2340
+ en: "Acute Care"
2341
+ },
2342
+ AMBULATORY_SURGERY_CENTER: {
2343
+ en: "Ambulatory Surgery Center"
2344
+ },
2345
+ CLINIC: {
2346
+ en: "Clinic"
2347
+ },
2348
+ HOME_HEALTH: {
2349
+ en: "Home Health"
2350
+ },
2351
+ HOSPITAL: {
2352
+ en: "Hospital"
2353
+ },
2354
+ INPATIENT: {
2355
+ en: "Inpatient"
2356
+ },
2357
+ LONG_TERM_CARE: {
2358
+ en: "Long Term Care"
2359
+ },
2360
+ MED_SPA: {
2361
+ en: "Med Spa"
2362
+ },
2363
+ NURSING_HOME: {
2364
+ en: "Nursing Home"
2365
+ },
2366
+ OFFICE: {
2367
+ en: "Office"
2368
+ },
2369
+ OUTPATIENT: {
2370
+ en: "Outpatient"
2371
+ },
2372
+ PRIVATE_PRACTICE: {
2373
+ en: "Private Practice"
2374
+ },
2375
+ REHAB_CENTER: {
2376
+ en: "Rehab Center"
2377
+ },
2378
+ SCHOOL: {
2379
+ en: "School"
2380
+ },
2381
+ SKILLED_NURSING_FACILITY: {
2382
+ en: "Skilled Nursing Facility"
2383
+ }
2384
+ };
2385
+ var defaultMappings = {
2386
+ employmentType: employmentTypeDisplayText,
2387
+ unitText: unitTextDisplayText,
2388
+ currency: currencyDisplayText,
2389
+ employmentLevel: employmentLevelDisplayText,
2390
+ jobFunction: jobFunctionDisplayText,
2391
+ bestFit: bestFitDisplayText,
2392
+ clinicalSpecialty: clinicalSpecialtyDisplayText,
2393
+ clinicalSetting: clinicalSettingDisplayText,
2394
+ shift: shiftDisplayText
2395
+ };
2396
+
2397
+ // src/types/displayText.errors.tsx
2398
+ var DisplayTextScopeNotFoundError = class extends Error {
2399
+ constructor(scope) {
2400
+ super(`No display text mapping found for scope: ${scope}`);
2401
+ this.name = "DisplayTextScopeNotFoundError";
2402
+ }
2403
+ };
2404
+ var DisplayTextValueNotFoundError = class extends Error {
2405
+ constructor(value, scope) {
2406
+ super(`No display text found for value: '${value}' in scope: '${scope}'`);
2407
+ this.name = "DisplayTextValueNotFoundError";
2408
+ }
2409
+ };
2410
+
2411
+ // src/services/displayText.tsx
2412
+ var DisplayTextService = class {
2413
+ constructor(customMappings) {
2414
+ this.defaultLanguage = "en";
2415
+ this.mappings = {
2416
+ ...defaultMappings,
2417
+ // Use all pre-defined mappings as defaults
2418
+ ...customMappings
2419
+ // Override with any custom mappings if provided
2420
+ };
2421
+ }
2422
+ async getDisplayText(scope, value, language = this.defaultLanguage) {
2423
+ const scopeMapping = this.mappings[scope];
2424
+ if (!scopeMapping) {
2425
+ throw new DisplayTextScopeNotFoundError(scope);
2426
+ }
2427
+ if (Array.isArray(value)) {
2428
+ const displayTextPromises = value.map((v) => this.getDisplayText(scope, v, language));
2429
+ const displayTexts2 = await Promise.all(displayTextPromises);
2430
+ return displayTexts2.filter((v) => !!v).join(", ");
2431
+ }
2432
+ const displayTexts = scopeMapping[value];
2433
+ if (!displayTexts) {
2434
+ throw new DisplayTextValueNotFoundError(value, scope);
2435
+ }
2436
+ return displayTexts[language] || displayTexts[this.defaultLanguage] || value;
2437
+ }
2438
+ };
2439
+
2440
+ // src/hooks/useDisplayText.ts
2441
+ var useDisplayText = (scope, value) => {
2442
+ const [displayText, setDisplayText] = (0, import_react12.useState)("");
2443
+ const displayService = (0, import_react12.useMemo)(() => new DisplayTextService(), []);
2444
+ (0, import_react12.useEffect)(() => {
2445
+ if (!displayService || !value) {
2446
+ setDisplayText("");
2447
+ return;
2448
+ }
2449
+ void (async () => {
2450
+ try {
2451
+ const result = await displayService.getDisplayText(scope, value);
2452
+ if (typeof result === "string") {
2453
+ setDisplayText(result);
2454
+ } else {
2455
+ console.error("Expected a string result, but got:", result);
2456
+ }
2457
+ } catch (error) {
2458
+ if (error instanceof DisplayTextValueNotFoundError) {
2459
+ console.warn("Display text value not found:", value);
2460
+ setDisplayText(String(value));
2461
+ } else {
2462
+ console.error("Unexpected error formatting text:", error);
2463
+ setDisplayText(String(value));
2464
+ }
2465
+ }
2466
+ })();
2467
+ }, [scope, value, displayService]);
2468
+ return displayText;
2469
+ };
2470
+
2471
+ // src/lib/locations.ts
2472
+ function formattedAddress(address) {
2473
+ const { addressLocality, addressRegion, addressCountry } = address;
2474
+ if (addressLocality && addressRegion) return `${addressLocality}, ${addressRegion}`;
2475
+ if (addressRegion && addressCountry) return `${addressRegion}, ${addressCountry}`;
2476
+ if (addressRegion) return addressRegion;
2477
+ if (addressCountry) return addressCountry;
2478
+ return null;
2479
+ }
2480
+ function formattedJobLocation(job) {
2481
+ const address = job.jobLocation && formattedAddress(job.jobLocation);
2482
+ const remote = job.isRemote ? "Remote" : "";
2483
+ return [address, remote].filter(Boolean).join(" | ");
2484
+ }
2485
+
2486
+ // src/components/jobPost/JobPost.tsx
2487
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2488
+ function JobPost({
2489
+ job,
2490
+ bannerSrc,
2491
+ avatarSrc,
2492
+ standalone,
2493
+ fallbackHref,
2494
+ actions
2495
+ }) {
2496
+ const formattedEmploymentType = useDisplayText("employmentType", job.employmentType);
2497
+ const formattedEmploymentLevel = useDisplayText("employmentLevel", job.employmentLevel);
2498
+ const formattedJobFunction = useDisplayText("jobFunction", job.jobFunction);
2499
+ const formattedLocation = formattedJobLocation(job);
2500
+ const formattedSalary = salaryRange(job.estimatedSalary);
2501
+ const formattedDate = DateFns.formatDistanceToNow(new Date(job.datePosted), {
2502
+ addSuffix: true
2503
+ });
2504
+ const tags = [
2505
+ !!formattedSalary && {
2506
+ icon: "banknote",
2507
+ name: "salary",
2508
+ label: `${formattedSalary} a year`
2509
+ },
2510
+ !!formattedEmploymentType && {
2511
+ icon: "briefcase-business",
2512
+ name: "employmentType",
2513
+ label: formattedEmploymentType
2514
+ },
2515
+ !!formattedEmploymentLevel && {
2516
+ icon: "circle-user",
2517
+ name: "level",
2518
+ label: formattedEmploymentLevel
2519
+ },
2520
+ !!formattedJobFunction && {
2521
+ icon: "briefcase-business",
2522
+ name: "jobFunction",
2523
+ label: formattedJobFunction
2524
+ },
2525
+ !!formattedLocation && {
2526
+ icon: "map-pin",
2527
+ name: "location",
2528
+ label: formattedLocation
2529
+ }
2530
+ ].filter((t) => !!t);
2531
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2532
+ "div",
2533
+ {
2534
+ className: cn(
2535
+ "flex flex-col gap-10 pb-4",
2536
+ !standalone && "border-1 rounded-3xl border-grey-5"
2537
+ ),
2538
+ children: [
2539
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2540
+ JobHeader,
2541
+ {
2542
+ title: job.title,
2543
+ bannerSrc,
2544
+ avatarName: job.hiringOrganization?.companyName,
2545
+ avatarSrc: job.hiringOrganization?.logo?.asset?.url,
2546
+ subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
2547
+ actions,
2548
+ standalone,
2549
+ backFallbackHref: fallbackHref,
2550
+ tags
2551
+ }
2552
+ ),
2553
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-8 px-6", children: [
2554
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(JobDescription, { description: job.description }),
2555
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2556
+ CompanyTake,
2557
+ {
2558
+ avatarSrc,
2559
+ content: job.hiringOrganization?.companyNDG?.companyNDGTake
2560
+ }
2561
+ ),
2562
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2563
+ CompanyInformation,
2564
+ {
2565
+ name: job.hiringOrganization?.companyName ?? "",
2566
+ how: job.hiringOrganization?.companyPhilosophy?.companyHow,
2567
+ mission: job.hiringOrganization?.companyPhilosophy?.companyMission,
2568
+ wow: job.hiringOrganization?.companyNDG?.companyWow,
2569
+ website: job.hiringOrganization?.companyWebsite
2570
+ }
2571
+ ),
2572
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2573
+ CompanyBenefits,
2574
+ {
2575
+ benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.title).filter((d) => d !== void 0)
2576
+ }
2577
+ )
2578
+ ] })
2579
+ ]
2580
+ }
2581
+ );
2582
+ }
2583
+
2584
+ // src/types/data/job_posting_service_latest.ts
2585
+ var job_posting_service_latest_exports = {};
2586
+ __export(job_posting_service_latest_exports, {
2587
+ BestFitEnum: () => BestFitEnum,
2588
+ ClinicalLicenseEnum: () => ClinicalLicenseEnum,
2589
+ ClinicalSettingEnum: () => ClinicalSettingEnum,
2590
+ ClinicalSpecialtyEnum: () => ClinicalSpecialtyEnum,
2591
+ EmploymentLevelEnum: () => EmploymentLevelEnum,
2592
+ EmploymentTypeEnum: () => EmploymentTypeEnum,
2593
+ JobFunctionEnum: () => JobFunctionEnum,
2594
+ JobLocationTypeEnum: () => JobLocationTypeEnum,
2595
+ PublishStatusEnum: () => PublishStatusEnum2,
2596
+ ShiftEnum: () => ShiftEnum,
2597
+ TypeEnum: () => TypeEnum3,
2598
+ jobPostSchema: () => jobPostSchema
2599
+ });
2600
+ var import_zod3 = require("zod");
2601
+
2602
+ // src/types/data/company_service_latest.ts
2603
+ var company_service_latest_exports = {};
2604
+ __export(company_service_latest_exports, {
2605
+ CategoryEnum: () => CategoryEnum,
2606
+ OfficeTypeEnum: () => OfficeTypeEnum,
2607
+ PublishStatusEnum: () => PublishStatusEnum,
2608
+ TitleEnum: () => TitleEnum,
2609
+ TypeEnum: () => TypeEnum2,
2610
+ companyBenefitsSchema: () => companyBenefitsSchema,
2611
+ companyCareersSchema: () => companyCareersSchema,
2612
+ companyNdgSchema: () => companyNdgSchema,
2613
+ companyPhilosophySchema: () => companyPhilosophySchema,
2614
+ companySchema: () => companySchema,
2615
+ foundingInformationSchema: () => foundingInformationSchema,
2616
+ industrySchema: () => industrySchema,
2617
+ jobBoardSchema: () => jobBoardSchema,
2618
+ ngdMetadataSchema: () => ngdMetadataSchema,
2619
+ officeSchema: () => officeSchema,
2620
+ personSchema: () => personSchema,
2621
+ socialMediaSchema: () => socialMediaSchema
2622
+ });
2623
+ var import_zod2 = require("zod");
2624
+ var TypeEnum2 = import_zod2.z.enum(["OFFICE"]);
2625
+ var CategoryEnum = import_zod2.z.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "WORK_LIFE_BALANCE"]);
2626
+ var TitleEnum = import_zod2.z.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
2627
+ var PublishStatusEnum = import_zod2.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
2628
+ var OfficeTypeEnum = import_zod2.z.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
2629
+ var socialMediaSchema = import_zod2.z.object({
2630
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2631
+ url: import_zod2.z.string().describe("The link to the social media platform"),
2632
+ type: import_zod2.z.string().describe("The type of social media link")
2633
+ });
2634
+ var companyBenefitsSchema = import_zod2.z.object({
2635
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2636
+ type: import_zod2.z.string().describe("Document type used for schema"),
2637
+ title: import_zod2.z.string(),
2638
+ description: import_zod2.z.optional(import_zod2.z.string()),
2639
+ category: CategoryEnum
2640
+ });
2641
+ var industrySchema = import_zod2.z.lazy(() => import_zod2.z.object({
2642
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2643
+ type: import_zod2.z.string().describe("Document type used for schema"),
2644
+ name: import_zod2.z.string(),
2645
+ description: import_zod2.z.optional(import_zod2.z.string()).describe("A brief description of the industry"),
2646
+ onetIndustryId: import_zod2.z.optional(import_zod2.z.string()).describe("ONET industry ID"),
2647
+ parent: import_zod2.z.optional(industrySchema)
2648
+ }));
2649
+ var jobBoardSchema = import_zod2.z.object({
2650
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2651
+ type: import_zod2.z.string().describe("Document type used for schema"),
2652
+ name: import_zod2.z.string().describe("The name of the job board"),
2653
+ description: import_zod2.z.string().describe("A brief description of the job board"),
2654
+ logo: import_zod2.z.optional(imageSchema).describe("The logo of the job board"),
2655
+ baseUrl: import_zod2.z.optional(import_zod2.z.string()).describe("The base URL of the job board")
2656
+ });
2657
+ var personSchema = import_zod2.z.object({
2658
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2659
+ type: import_zod2.z.string().describe("Document type used for schema"),
2660
+ firstName: import_zod2.z.string().describe("The first name of the person"),
2661
+ lastName: import_zod2.z.string().describe("The last name of the person"),
2662
+ title: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("The titles of the degree of the person"),
2663
+ slug: import_zod2.z.string().describe("person slug - should be familyname-givenname-title(s)"),
2664
+ jobTitle: import_zod2.z.optional(import_zod2.z.string()).describe("The job title of the person"),
2665
+ isDoctor: import_zod2.z.optional(import_zod2.z.boolean()).describe("Is the person a doctor"),
2666
+ isMedical: import_zod2.z.optional(import_zod2.z.boolean()).describe("Are they of a medical background?"),
2667
+ isScientist: import_zod2.z.optional(import_zod2.z.boolean()).describe("Are they a scientist?"),
2668
+ image: import_zod2.z.optional(imageSchema).describe("The image of the person"),
2669
+ email: import_zod2.z.optional(import_zod2.z.string()).describe("The email of the person"),
2670
+ socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the person"),
2671
+ telephone: import_zod2.z.optional(import_zod2.z.string()).describe("The telephone number of the person"),
2672
+ url: import_zod2.z.optional(import_zod2.z.string()).describe("The URL of the person"),
2673
+ address: import_zod2.z.optional(placeSchema).describe("The address of the person")
2674
+ });
2675
+ var companyCareersSchema = import_zod2.z.object({
2676
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2677
+ type: import_zod2.z.string().describe("Document type used for schema"),
2678
+ careersUrl: import_zod2.z.string().describe("The URL of the company careers page"),
2679
+ jobBoard: import_zod2.z.optional(jobBoardSchema),
2680
+ jobBoardSlug: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
2681
+ companyBenefits: import_zod2.z.optional(import_zod2.z.array(companyBenefitsSchema)).describe("What are the specific benefits of that company. The benefit is generic.")
2682
+ });
2683
+ var companyPhilosophySchema = import_zod2.z.object({
2684
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2685
+ type: import_zod2.z.string().describe("Document type used for schema"),
2686
+ companyMission: import_zod2.z.optional(import_zod2.z.string()).describe("The mission statement of the company."),
2687
+ companyHow: import_zod2.z.optional(import_zod2.z.string()).describe("How does the company achieve its mission"),
2688
+ companyCulture: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("What are some of the culture aspects of this company?")
2689
+ });
2690
+ var companyNdgSchema = import_zod2.z.object({
2691
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2692
+ type: import_zod2.z.string().describe("Document type used for schema"),
2693
+ companyWow: import_zod2.z.optional(import_zod2.z.string()).describe("What is the wow of this company?"),
2694
+ companyNDGTake: import_zod2.z.optional(import_zod2.z.string()).describe("What is the NDG POV on this company?"),
2695
+ companyBestFit: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
2696
+ companyInterests: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string()))
2697
+ });
2698
+ var foundingInformationSchema = import_zod2.z.object({
2699
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2700
+ type: import_zod2.z.string().describe("Document type used for schema"),
2701
+ foundedDate: import_zod2.z.optional(import_zod2.z.string()),
2702
+ foundedCountry: import_zod2.z.optional(import_zod2.z.string()),
2703
+ foundedCity: import_zod2.z.optional(import_zod2.z.string()),
2704
+ founders: import_zod2.z.optional(import_zod2.z.array(personSchema))
2705
+ });
2706
+ var ngdMetadataSchema = import_zod2.z.object({
2707
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2708
+ type: import_zod2.z.string().describe("Document type used for schema"),
2709
+ lastScraped: import_zod2.z.optional(import_zod2.z.string()).describe("Date the last entity was scraped, if applicable"),
2710
+ scraperVersion: import_zod2.z.optional(import_zod2.z.string()),
2711
+ postProcessorVersion: import_zod2.z.optional(import_zod2.z.string()),
2712
+ uniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
2713
+ postProcessorUniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
2714
+ isScrapeManaged: import_zod2.z.optional(import_zod2.z.boolean()).default(true)
2715
+ });
2716
+ var companySchema = import_zod2.z.object({
2717
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2718
+ id: import_zod2.z.string().describe("The NDG specific id for a company. Cannot be changed."),
2719
+ createdAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2720
+ updatedAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2721
+ companyName: import_zod2.z.string().describe("The name of the company"),
2722
+ slug: import_zod2.z.string().describe("The NDG specific slug for a company."),
2723
+ type: import_zod2.z.string().describe("Document type used for schema"),
2724
+ logo: import_zod2.z.optional(imageSchema).describe("The logo of the company"),
2725
+ companyWebsite: import_zod2.z.optional(import_zod2.z.string()).describe("The website of the company"),
2726
+ socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the company"),
2727
+ brandColor: import_zod2.z.optional(import_zod2.z.string()).describe("The brand color of the company"),
2728
+ companyCareers: import_zod2.z.optional(companyCareersSchema).describe("Career Specific Information for the company."),
2729
+ companyPhilosophy: import_zod2.z.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
2730
+ companyNDG: import_zod2.z.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
2731
+ foundingInfo: import_zod2.z.optional(foundingInformationSchema),
2732
+ headquartersLocation: import_zod2.z.optional(placeSchema),
2733
+ employeeEstimate: import_zod2.z.optional(import_zod2.z.string()),
2734
+ publishStatus: import_zod2.z.optional(import_zod2.z.string()),
2735
+ ngdMetadata: import_zod2.z.optional(ngdMetadataSchema)
2736
+ });
2737
+ var officeSchema = import_zod2.z.object({
2738
+ version: import_zod2.z.literal("1.0.0").default("1.0.0"),
2739
+ type: import_zod2.z.string().describe("Document type used for schema"),
2740
+ name: import_zod2.z.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
2741
+ officeType: OfficeTypeEnum,
2742
+ companyId: import_zod2.z.optional(companySchema),
2743
+ geoLocation: import_zod2.z.optional(placeSchema).describe("Geographical location details: coordinates + postal address"),
2744
+ createdAt: import_zod2.z.optional(import_zod2.z.string()),
2745
+ updatedAt: import_zod2.z.optional(import_zod2.z.string())
2746
+ });
2747
+
2748
+ // src/types/data/job_posting_service_latest.ts
2749
+ var TypeEnum3 = import_zod3.z.enum(["JOB_POST"]);
2750
+ var JobLocationTypeEnum = import_zod3.z.enum(["FLOAT", "HYBRID", "ONSITE", "REMOTE"]);
2751
+ var EmploymentTypeEnum = import_zod3.z.enum(["CONTRACT", "FULL_TIME", "INTERNSHIP", "OTHER", "PART_TIME", "PER_DIEM", "TEMPORARY"]);
2752
+ var EmploymentLevelEnum = import_zod3.z.enum(["DIRECTOR", "ENTRY_LEVEL", "EXECUTIVE", "EXPERIENCED", "INTERN", "MANAGER"]);
2753
+ 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"]);
2754
+ var PublishStatusEnum2 = import_zod3.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
2755
+ 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"]);
2756
+ var ClinicalLicenseEnum = import_zod3.z.enum(["CNA", "CNM", "CNS", "COTA", "CRNA", "LPN", "LVN", "NP", "OT", "PT", "PTA", "RN"]);
2757
+ var ShiftEnum = import_zod3.z.enum(["DAY", "EIGHT_HOUR", "EVENING", "FLEXIBLE", "MID_SHIFT", "MONDAY_TO_FRIDAY", "NIGHT", "ON_CALL", "TEN_HOUR", "TWELVE_HOUR", "WEEKENDS"]);
2758
+ 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"]);
2759
+ 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"]);
2760
+ var jobPostSchema = import_zod3.z.object({
2761
+ version: import_zod3.z.literal("1.0.0").default("1.0.0"),
2762
+ 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."),
2763
+ type: import_zod3.z.string().describe("Document type used for schema"),
2764
+ createdAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2765
+ updatedAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
2766
+ dateAdded: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was added to the platform"),
2767
+ datePosted: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was published for public viewing"),
2768
+ dateRemoved: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was removed from public viewing"),
2769
+ 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"),
2770
+ vacancyCount: import_zod3.z.optional(import_zod3.z.number().int()).describe("The number of vacancies for a given job posting"),
2771
+ 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"),
2772
+ url: import_zod3.z.string().describe("The URL of the job to be displayed for users to apply with. Direct job link."),
2773
+ title: import_zod3.z.string().describe("The title of the job post"),
2774
+ description: import_zod3.z.string().describe("The description of the job post saved as markdown. Used for rendering the job description."),
2775
+ richTextDescription: import_zod3.z.optional(import_zod3.z.string()).describe("The description of the job post saved as rich text"),
2776
+ 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."),
2777
+ 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)."),
2778
+ 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."),
2779
+ 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."),
2780
+ jobLocationType: import_zod3.z.optional(import_zod3.z.array(JobLocationTypeEnum)),
2781
+ employmentType: import_zod3.z.optional(import_zod3.z.array(EmploymentTypeEnum)),
2782
+ employmentLevel: import_zod3.z.optional(EmploymentLevelEnum),
2783
+ jobFunction: import_zod3.z.optional(JobFunctionEnum),
2784
+ publishStatus: PublishStatusEnum2,
2785
+ bestFit: import_zod3.z.optional(import_zod3.z.array(BestFitEnum)),
2786
+ clinicalLicense: import_zod3.z.optional(import_zod3.z.array(ClinicalLicenseEnum)),
2787
+ shift: import_zod3.z.optional(import_zod3.z.array(ShiftEnum)),
2788
+ clinicalSetting: import_zod3.z.optional(import_zod3.z.array(ClinicalSettingEnum)),
2789
+ clinicalSpecialty: import_zod3.z.optional(import_zod3.z.array(ClinicalSpecialtyEnum)),
2790
+ estimatedSalary: import_zod3.z.optional(monetaryAmountSchema).describe("Determines the estimated salary for a given job posting"),
2791
+ jobLocation: import_zod3.z.optional(postalAddressSchema).describe("Determines the primary physical location where the job is to be performed. For remote roles, use applicantLocationRequirements"),
2792
+ 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."),
2793
+ 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."),
2794
+ hiringOrganization: import_zod3.z.optional(companySchema).describe("The organization that is hiring for the role")
2795
+ });
1356
2796
  // Annotate the CommonJS export names for ESM import in node:
1357
2797
  0 && (module.exports = {
2798
+ Avatar,
2799
+ BackButton,
1358
2800
  Badge,
1359
2801
  Button,
1360
2802
  Checkbox,
1361
2803
  Chip,
1362
2804
  Combobox,
2805
+ CompanyBenefits,
2806
+ CompanyInformation,
2807
+ CompanyService,
2808
+ CompanyTake,
1363
2809
  Counter,
2810
+ Icon,
1364
2811
  Input,
2812
+ JobDescription,
2813
+ JobHeader,
2814
+ JobPost,
2815
+ JobPostService,
1365
2816
  Label,
2817
+ LinkButton,
1366
2818
  ListItem,
1367
2819
  MapComponent,
1368
2820
  PlacesQueryInput,
2821
+ ReadMore,
1369
2822
  Select,
2823
+ SharedService,
2824
+ WindowHistoryProvider,
1370
2825
  cn,
1371
- fetchLocation
2826
+ fetchLocation,
2827
+ useDisplayText,
2828
+ useWindowHistory
1372
2829
  });
1373
2830
  //# sourceMappingURL=index.cjs.map