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