@next-degree/pickle-shared-js 0.6.45 → 0.6.47
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.
- package/dist/{company_service_latest-DQ5joNqO.d.cts → company_service_latest-uu3w8AR6.d.cts} +305 -1907
- package/dist/{company_service_latest-DQ5joNqO.d.ts → company_service_latest-uu3w8AR6.d.ts} +305 -1907
- package/dist/components/buttons/BackButton.cjs +0 -3
- package/dist/components/buttons/BackButton.cjs.map +1 -1
- package/dist/components/buttons/BackButton.js +0 -3
- package/dist/components/buttons/BackButton.js.map +1 -1
- package/dist/components/company/CompanyTake.cjs.map +1 -1
- package/dist/components/company/CompanyTake.js.map +1 -1
- package/dist/components/jobPost/JobDescription.cjs.map +1 -1
- package/dist/components/jobPost/JobDescription.js.map +1 -1
- package/dist/components/jobPost/JobHeader.cjs +0 -3
- package/dist/components/jobPost/JobHeader.cjs.map +1 -1
- package/dist/components/jobPost/JobHeader.js +0 -3
- package/dist/components/jobPost/JobHeader.js.map +1 -1
- package/dist/components/jobPost/JobPost.cjs +6 -31
- package/dist/components/jobPost/JobPost.cjs.map +1 -1
- package/dist/components/jobPost/JobPost.d.cts +1 -1
- package/dist/components/jobPost/JobPost.d.ts +1 -1
- package/dist/components/jobPost/JobPost.js +6 -31
- package/dist/components/jobPost/JobPost.js.map +1 -1
- package/dist/components/primitives/avatar.cjs.map +1 -1
- package/dist/components/primitives/avatar.js.map +1 -1
- package/dist/components/primitives/command.cjs.map +1 -1
- package/dist/components/primitives/command.d.cts +1 -1
- package/dist/components/primitives/command.d.ts +1 -1
- package/dist/components/primitives/command.js.map +1 -1
- package/dist/components/primitives/dialog.cjs.map +1 -1
- package/dist/components/primitives/dialog.js.map +1 -1
- package/dist/components/primitives/input-otp.cjs +99 -0
- package/dist/components/primitives/input-otp.cjs.map +1 -0
- package/dist/components/primitives/input-otp.d.cts +38 -0
- package/dist/components/primitives/input-otp.d.ts +38 -0
- package/dist/components/primitives/input-otp.js +62 -0
- package/dist/components/primitives/input-otp.js.map +1 -0
- package/dist/components/primitives/popover.cjs.map +1 -1
- package/dist/components/primitives/popover.js.map +1 -1
- package/dist/components/primitives/separator.cjs.map +1 -1
- package/dist/components/primitives/separator.js.map +1 -1
- package/dist/components/primitives/tooltip.cjs.map +1 -1
- package/dist/components/primitives/tooltip.js.map +1 -1
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/Badge.cjs.map +1 -1
- package/dist/components/ui/Badge.js.map +1 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Combobox.cjs.map +1 -1
- package/dist/components/ui/Combobox.js.map +1 -1
- package/dist/components/ui/Counter.cjs.map +1 -1
- package/dist/components/ui/Counter.js.map +1 -1
- package/dist/components/ui/ErrorMessage.cjs.map +1 -1
- package/dist/components/ui/ErrorMessage.js.map +1 -1
- package/dist/components/ui/Icon.cjs.map +1 -1
- package/dist/components/ui/Icon.js.map +1 -1
- package/dist/components/ui/Input.cjs.map +1 -1
- package/dist/components/ui/Input.js.map +1 -1
- package/dist/components/ui/InputOtp.cjs +187 -0
- package/dist/components/ui/InputOtp.cjs.map +1 -0
- package/dist/components/ui/InputOtp.d.cts +14 -0
- package/dist/components/ui/InputOtp.d.ts +14 -0
- package/dist/components/ui/InputOtp.js +152 -0
- package/dist/components/ui/InputOtp.js.map +1 -0
- package/dist/components/ui/Label.cjs.map +1 -1
- package/dist/components/ui/Label.js.map +1 -1
- package/dist/components/ui/ListItem.cjs.map +1 -1
- package/dist/components/ui/ListItem.js.map +1 -1
- package/dist/components/ui/MapComponent.cjs +2 -9
- package/dist/components/ui/MapComponent.cjs.map +1 -1
- package/dist/components/ui/MapComponent.d.cts +1 -1
- package/dist/components/ui/MapComponent.d.ts +1 -1
- package/dist/components/ui/MapComponent.js +2 -9
- package/dist/components/ui/MapComponent.js.map +1 -1
- package/dist/components/ui/PlacesQueryInput.cjs.map +1 -1
- package/dist/components/ui/PlacesQueryInput.js.map +1 -1
- package/dist/components/ui/ReadMore.cjs.map +1 -1
- package/dist/components/ui/ReadMore.js.map +1 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/{displayText-Dl2hcn02.d.ts → displayText-CcePAspL.d.ts} +2 -2
- package/dist/{displayText-C5jAFYZY.d.cts → displayText-D3BX6YTj.d.cts} +2 -2
- package/dist/hooks/useDisplayText.d.cts +3 -3
- package/dist/hooks/useDisplayText.d.ts +3 -3
- package/dist/hooks/useWindowHistory.cjs +0 -3
- package/dist/hooks/useWindowHistory.cjs.map +1 -1
- package/dist/hooks/useWindowHistory.js +0 -3
- package/dist/hooks/useWindowHistory.js.map +1 -1
- package/dist/index.cjs +241 -189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +205 -154
- package/dist/index.js.map +1 -1
- package/dist/{job_posting_service_latest-D3PatPBh.d.cts → job_posting_service_latest-CWuc_SuJ.d.cts} +302 -1622
- package/dist/{job_posting_service_latest-D3PatPBh.d.ts → job_posting_service_latest-CWuc_SuJ.d.ts} +302 -1622
- package/dist/lib/locations.d.cts +2 -2
- package/dist/lib/locations.d.ts +2 -2
- package/dist/lib/mappings.d.cts +3 -3
- package/dist/lib/mappings.d.ts +3 -3
- package/dist/lib/salaryRange.cjs +4 -25
- package/dist/lib/salaryRange.cjs.map +1 -1
- package/dist/lib/salaryRange.d.cts +1 -1
- package/dist/lib/salaryRange.d.ts +1 -1
- package/dist/lib/salaryRange.js +4 -25
- package/dist/lib/salaryRange.js.map +1 -1
- package/dist/lib/utils.cjs.map +1 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/services/displayText.d.cts +3 -3
- package/dist/services/displayText.d.ts +3 -3
- package/dist/{shared_pickle_output_latest-DUO_efBh.d.cts → shared_pickle_output_latest-CxZJXPOS.d.cts} +8 -148
- package/dist/{shared_pickle_output_latest-DUO_efBh.d.ts → shared_pickle_output_latest-CxZJXPOS.d.ts} +8 -148
- package/dist/styles/globals.css +109 -37
- package/dist/styles/globals.css.map +1 -1
- package/dist/types/data/company_service_latest.cjs +31 -52
- package/dist/types/data/company_service_latest.cjs.map +1 -1
- package/dist/types/data/company_service_latest.d.cts +1 -1
- package/dist/types/data/company_service_latest.d.ts +1 -1
- package/dist/types/data/company_service_latest.js +29 -51
- package/dist/types/data/company_service_latest.js.map +1 -1
- package/dist/types/data/job_posting_service_latest.cjs +28 -51
- package/dist/types/data/job_posting_service_latest.cjs.map +1 -1
- package/dist/types/data/job_posting_service_latest.d.cts +1 -1
- package/dist/types/data/job_posting_service_latest.d.ts +1 -1
- package/dist/types/data/job_posting_service_latest.js +28 -51
- package/dist/types/data/job_posting_service_latest.js.map +1 -1
- package/dist/types/data/shared_pickle_output_latest.cjs +4 -29
- package/dist/types/data/shared_pickle_output_latest.cjs.map +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.cts +1 -1
- package/dist/types/data/shared_pickle_output_latest.d.ts +1 -1
- package/dist/types/data/shared_pickle_output_latest.js +4 -27
- package/dist/types/data/shared_pickle_output_latest.js.map +1 -1
- package/package.json +6 -4
package/dist/index.cjs
CHANGED
|
@@ -44,6 +44,7 @@ __export(index_exports, {
|
|
|
44
44
|
Counter: () => Counter,
|
|
45
45
|
Icon: () => Icon,
|
|
46
46
|
Input: () => Input_default,
|
|
47
|
+
InputOtp: () => InputOtp,
|
|
47
48
|
JobDescription: () => JobDescription,
|
|
48
49
|
JobHeader: () => JobHeader,
|
|
49
50
|
JobPost: () => JobPost,
|
|
@@ -554,24 +555,17 @@ var Input_default = Input;
|
|
|
554
555
|
// src/components/ui/MapComponent.tsx
|
|
555
556
|
var import_react_google_maps = require("@vis.gl/react-google-maps");
|
|
556
557
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
557
|
-
function MapComponent({
|
|
558
|
-
apiKey,
|
|
559
|
-
mapId,
|
|
560
|
-
position,
|
|
561
|
-
className,
|
|
562
|
-
zoom = 15
|
|
563
|
-
}) {
|
|
558
|
+
function MapComponent({ apiKey, mapId, position, className, zoom = 15 }) {
|
|
564
559
|
const defaultPosition = { lat: 40.715021, lng: -74.00459 };
|
|
565
560
|
const defaultZoom = 11;
|
|
566
561
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_google_maps.APIProvider, { apiKey, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn("h-screen max-w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
567
562
|
import_react_google_maps.Map,
|
|
568
563
|
{
|
|
569
|
-
|
|
564
|
+
zoom: position ? zoom : defaultZoom,
|
|
570
565
|
center: position || defaultPosition,
|
|
571
566
|
mapId,
|
|
572
567
|
keyboardShortcuts: false,
|
|
573
568
|
disableDefaultUI: true,
|
|
574
|
-
zoomControl: true,
|
|
575
569
|
children: position && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_google_maps.AdvancedMarker, { position, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_google_maps.Pin, { background: "#0B5441", borderColor: "#EBFDF1", glyphColor: "#D4F500" }) })
|
|
576
570
|
}
|
|
577
571
|
) }) });
|
|
@@ -1378,11 +1372,96 @@ var counterVariants = (0, import_cva6.cva)(
|
|
|
1378
1372
|
}
|
|
1379
1373
|
);
|
|
1380
1374
|
|
|
1381
|
-
// src/components/
|
|
1382
|
-
var
|
|
1375
|
+
// src/components/ui/InputOtp.tsx
|
|
1376
|
+
var import_react8 = require("react");
|
|
1377
|
+
|
|
1378
|
+
// src/components/primitives/input-otp.tsx
|
|
1383
1379
|
var React7 = __toESM(require("react"), 1);
|
|
1380
|
+
var import_input_otp = require("input-otp");
|
|
1381
|
+
var import_lucide_react12 = require("lucide-react");
|
|
1384
1382
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1385
|
-
var
|
|
1383
|
+
var InputOTP = React7.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1384
|
+
import_input_otp.OTPInput,
|
|
1385
|
+
{
|
|
1386
|
+
ref,
|
|
1387
|
+
containerClassName: cn(
|
|
1388
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
1389
|
+
containerClassName
|
|
1390
|
+
),
|
|
1391
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
1392
|
+
...props
|
|
1393
|
+
}
|
|
1394
|
+
));
|
|
1395
|
+
InputOTP.displayName = "InputOTP";
|
|
1396
|
+
var InputOTPGroup = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1397
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1398
|
+
var InputOTPSlot = React7.forwardRef(({ index, error, className, ...props }, ref) => {
|
|
1399
|
+
const inputOTPContext = React7.useContext(import_input_otp.OTPInputContext);
|
|
1400
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1402
|
+
"div",
|
|
1403
|
+
{
|
|
1404
|
+
ref,
|
|
1405
|
+
className: cn(
|
|
1406
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-r border-neutral-200 text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md dark:border-neutral-800",
|
|
1407
|
+
isActive && "z-10 ring-2 ring-purple-100 ring-offset-white dark:ring-purple-20 dark:ring-offset-purple-100",
|
|
1408
|
+
error && "border-red-500 dark:border-red-400",
|
|
1409
|
+
className
|
|
1410
|
+
),
|
|
1411
|
+
...props,
|
|
1412
|
+
children: [
|
|
1413
|
+
char,
|
|
1414
|
+
hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "animate-caret-blink h-4 w-px bg-neutral-950 duration-1000 dark:bg-neutral-50" }) })
|
|
1415
|
+
]
|
|
1416
|
+
}
|
|
1417
|
+
);
|
|
1418
|
+
});
|
|
1419
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1420
|
+
var InputOTPSeparator = React7.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.Dot, {}) }));
|
|
1421
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1422
|
+
|
|
1423
|
+
// src/components/ui/InputOtp.tsx
|
|
1424
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1425
|
+
var InputOtp = (0, import_react8.forwardRef)(
|
|
1426
|
+
({ digits, label, description, error, ...props }, ref) => {
|
|
1427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1428
|
+
"div",
|
|
1429
|
+
{
|
|
1430
|
+
className: "group flex w-full flex-col gap-1",
|
|
1431
|
+
"data-testid": `input-otp-wrapper-${props.id}`,
|
|
1432
|
+
children: [
|
|
1433
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1434
|
+
Label_default,
|
|
1435
|
+
{
|
|
1436
|
+
text: label,
|
|
1437
|
+
htmlFor: props.name,
|
|
1438
|
+
required: props.required,
|
|
1439
|
+
description
|
|
1440
|
+
}
|
|
1441
|
+
),
|
|
1442
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "relative flex flex-row items-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1443
|
+
InputOTP,
|
|
1444
|
+
{
|
|
1445
|
+
ref,
|
|
1446
|
+
maxLength: digits,
|
|
1447
|
+
"data-testid": `input-otp-element-${props.id}`,
|
|
1448
|
+
...props,
|
|
1449
|
+
children: [...Array(digits)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputOTPGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InputOTPSlot, { index, error: Boolean(error) }) }, index))
|
|
1450
|
+
}
|
|
1451
|
+
) }),
|
|
1452
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ErrorMessage_default, { message: error })
|
|
1453
|
+
]
|
|
1454
|
+
}
|
|
1455
|
+
);
|
|
1456
|
+
}
|
|
1457
|
+
);
|
|
1458
|
+
InputOtp.displayName = "Input";
|
|
1459
|
+
|
|
1460
|
+
// src/components/primitives/avatar.tsx
|
|
1461
|
+
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
1462
|
+
var React8 = __toESM(require("react"), 1);
|
|
1463
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1464
|
+
var AvatarBase = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1386
1465
|
AvatarPrimitive.Root,
|
|
1387
1466
|
{
|
|
1388
1467
|
ref,
|
|
@@ -1391,7 +1470,7 @@ var AvatarBase = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1391
1470
|
}
|
|
1392
1471
|
));
|
|
1393
1472
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
1394
|
-
var AvatarImage =
|
|
1473
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1395
1474
|
AvatarPrimitive.Image,
|
|
1396
1475
|
{
|
|
1397
1476
|
ref,
|
|
@@ -1401,7 +1480,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1401
1480
|
}
|
|
1402
1481
|
));
|
|
1403
1482
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1404
|
-
var AvatarFallback =
|
|
1483
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1405
1484
|
AvatarPrimitive.Fallback,
|
|
1406
1485
|
{
|
|
1407
1486
|
ref,
|
|
@@ -1417,17 +1496,17 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
1417
1496
|
// src/components/ui/Avatar.tsx
|
|
1418
1497
|
var import_cva7 = require("cva");
|
|
1419
1498
|
var import_link = __toESM(require("next/link"), 1);
|
|
1420
|
-
var
|
|
1499
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1421
1500
|
function Avatar({ size, src, href, name, ...linkProps }) {
|
|
1422
1501
|
const fallbackShort = name?.slice(0, 2);
|
|
1423
1502
|
const fallbackWords = name?.split(" ").map((n) => n[0]).join("").slice(0, 2);
|
|
1424
1503
|
const fallback = fallbackWords && fallbackWords.length > 1 ? fallbackWords : fallbackShort;
|
|
1425
|
-
const renderAvatar = () => /* @__PURE__ */ (0,
|
|
1426
|
-
/* @__PURE__ */ (0,
|
|
1427
|
-
/* @__PURE__ */ (0,
|
|
1504
|
+
const renderAvatar = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AvatarBase, { className: avatarVariants({ size }), children: [
|
|
1505
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AvatarImage, { src, alt: name }),
|
|
1506
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AvatarFallback, { children: fallback?.toUpperCase() })
|
|
1428
1507
|
] });
|
|
1429
1508
|
if (href) {
|
|
1430
|
-
return /* @__PURE__ */ (0,
|
|
1509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_link.default, { href, ...linkProps, children: renderAvatar() });
|
|
1431
1510
|
}
|
|
1432
1511
|
return renderAvatar();
|
|
1433
1512
|
}
|
|
@@ -1447,13 +1526,13 @@ var avatarVariants = (0, import_cva7.cva)("ring ring-white ring-2", {
|
|
|
1447
1526
|
// src/components/ui/Icon.tsx
|
|
1448
1527
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
1449
1528
|
var import_cva8 = require("cva");
|
|
1450
|
-
var
|
|
1529
|
+
var import_react9 = require("react");
|
|
1451
1530
|
var import_tailwind_merge3 = require("tailwind-merge");
|
|
1452
|
-
var
|
|
1453
|
-
var Icon = (0,
|
|
1531
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1532
|
+
var Icon = (0, import_react9.forwardRef)(
|
|
1454
1533
|
({ variant, size, active = false, readonly = false, className, ...props }, ref) => {
|
|
1455
1534
|
const Component = readonly ? import_react_slot2.Slot : "button";
|
|
1456
|
-
return /* @__PURE__ */ (0,
|
|
1535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1457
1536
|
Component,
|
|
1458
1537
|
{
|
|
1459
1538
|
className: cn(
|
|
@@ -1523,7 +1602,7 @@ var iconVariants = (0, import_cva8.cva)(
|
|
|
1523
1602
|
|
|
1524
1603
|
// src/components/ui/LinkButton.tsx
|
|
1525
1604
|
var import_link2 = __toESM(require("next/link"), 1);
|
|
1526
|
-
var
|
|
1605
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1527
1606
|
var LinkButton = ({
|
|
1528
1607
|
disabled = false,
|
|
1529
1608
|
useAnchor = false,
|
|
@@ -1532,7 +1611,7 @@ var LinkButton = ({
|
|
|
1532
1611
|
...props
|
|
1533
1612
|
}) => {
|
|
1534
1613
|
const Component = useAnchor ? "a" : import_link2.default;
|
|
1535
|
-
return /* @__PURE__ */ (0,
|
|
1614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1536
1615
|
Component,
|
|
1537
1616
|
{
|
|
1538
1617
|
href,
|
|
@@ -1545,13 +1624,13 @@ var LinkButton = ({
|
|
|
1545
1624
|
};
|
|
1546
1625
|
|
|
1547
1626
|
// src/components/ui/ReadMore.tsx
|
|
1548
|
-
var
|
|
1627
|
+
var import_react10 = require("react");
|
|
1549
1628
|
var import_react_markdown = __toESM(require("react-markdown"), 1);
|
|
1550
|
-
var
|
|
1629
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1551
1630
|
function ReadMore({ text, ...props }) {
|
|
1552
|
-
const [isExpanded, setIsExpanded] = (0,
|
|
1553
|
-
const [maxWords, setMaxWords] = (0,
|
|
1554
|
-
(0,
|
|
1631
|
+
const [isExpanded, setIsExpanded] = (0, import_react10.useState)(false);
|
|
1632
|
+
const [maxWords, setMaxWords] = (0, import_react10.useState)(160);
|
|
1633
|
+
(0, import_react10.useEffect)(() => {
|
|
1555
1634
|
const updateMaxWords = () => {
|
|
1556
1635
|
const windowWidth = window.innerWidth;
|
|
1557
1636
|
if (windowWidth <= 768) {
|
|
@@ -1572,9 +1651,9 @@ function ReadMore({ text, ...props }) {
|
|
|
1572
1651
|
}
|
|
1573
1652
|
const toggleText = () => setIsExpanded(!isExpanded);
|
|
1574
1653
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
1575
|
-
return /* @__PURE__ */ (0,
|
|
1576
|
-
/* @__PURE__ */ (0,
|
|
1577
|
-
/* @__PURE__ */ (0,
|
|
1654
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ...props, children: [
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_markdown.default, { children: snippet }) }),
|
|
1656
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button, { className: "mt-2 flex items-center justify-center", variant: "link", onClick: toggleText, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("p", { className: "text-sm font-bold underline underline-offset-2", children: [
|
|
1578
1657
|
"Read ",
|
|
1579
1658
|
isExpanded ? "less" : "more"
|
|
1580
1659
|
] }) })
|
|
@@ -1582,17 +1661,17 @@ function ReadMore({ text, ...props }) {
|
|
|
1582
1661
|
}
|
|
1583
1662
|
|
|
1584
1663
|
// src/components/company/CompanyBenefits.tsx
|
|
1585
|
-
var
|
|
1664
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1586
1665
|
function CompanyBenefits({ benefits }) {
|
|
1587
1666
|
if (!benefits) return null;
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1589
|
-
/* @__PURE__ */ (0,
|
|
1590
|
-
/* @__PURE__ */ (0,
|
|
1667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
1668
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.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" }),
|
|
1669
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
1591
1670
|
] });
|
|
1592
1671
|
}
|
|
1593
1672
|
|
|
1594
1673
|
// src/components/company/CompanyInformation.tsx
|
|
1595
|
-
var
|
|
1674
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1596
1675
|
function CompanyInformation({
|
|
1597
1676
|
name,
|
|
1598
1677
|
how,
|
|
@@ -1600,8 +1679,8 @@ function CompanyInformation({
|
|
|
1600
1679
|
wow,
|
|
1601
1680
|
website
|
|
1602
1681
|
}) {
|
|
1603
|
-
return /* @__PURE__ */ (0,
|
|
1604
|
-
/* @__PURE__ */ (0,
|
|
1682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
1683
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1605
1684
|
"h2",
|
|
1606
1685
|
{
|
|
1607
1686
|
"data-testid": "company-name",
|
|
@@ -1612,22 +1691,22 @@ function CompanyInformation({
|
|
|
1612
1691
|
]
|
|
1613
1692
|
}
|
|
1614
1693
|
),
|
|
1615
|
-
how && /* @__PURE__ */ (0,
|
|
1616
|
-
mission && /* @__PURE__ */ (0,
|
|
1617
|
-
/* @__PURE__ */ (0,
|
|
1618
|
-
/* @__PURE__ */ (0,
|
|
1619
|
-
/* @__PURE__ */ (0,
|
|
1694
|
+
how && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
1695
|
+
mission && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex gap-2", children: [
|
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: "\u{1F680}" }),
|
|
1697
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("p", { className: "text-base text-grey-80", children: [
|
|
1698
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "pr-1 font-bold", children: "Mission" }),
|
|
1620
1699
|
mission
|
|
1621
1700
|
] })
|
|
1622
1701
|
] }),
|
|
1623
|
-
wow && /* @__PURE__ */ (0,
|
|
1624
|
-
/* @__PURE__ */ (0,
|
|
1625
|
-
/* @__PURE__ */ (0,
|
|
1626
|
-
/* @__PURE__ */ (0,
|
|
1702
|
+
wow && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex gap-2", children: [
|
|
1703
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: "\u{1F31F}" }),
|
|
1704
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("p", { className: "text-base text-grey-80", children: [
|
|
1705
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
1627
1706
|
wow
|
|
1628
1707
|
] })
|
|
1629
1708
|
] }),
|
|
1630
|
-
website && /* @__PURE__ */ (0,
|
|
1709
|
+
website && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1631
1710
|
LinkButton,
|
|
1632
1711
|
{
|
|
1633
1712
|
"data-testid": "company-website-link",
|
|
@@ -1641,22 +1720,22 @@ function CompanyInformation({
|
|
|
1641
1720
|
}
|
|
1642
1721
|
|
|
1643
1722
|
// src/components/company/CompanyTake.tsx
|
|
1644
|
-
var
|
|
1723
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1645
1724
|
function CompanyTake({ content, avatarSrc }) {
|
|
1646
1725
|
if (!content) return null;
|
|
1647
|
-
return /* @__PURE__ */ (0,
|
|
1726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1648
1727
|
"div",
|
|
1649
1728
|
{
|
|
1650
1729
|
"data-testid": "company-take",
|
|
1651
1730
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
1652
1731
|
children: [
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
1657
|
-
/* @__PURE__ */ (0,
|
|
1658
|
-
/* @__PURE__ */ (0,
|
|
1659
|
-
/* @__PURE__ */ (0,
|
|
1732
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
1733
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
|
|
1734
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
1735
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
1736
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
1737
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
1738
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
1660
1739
|
] })
|
|
1661
1740
|
] })
|
|
1662
1741
|
]
|
|
@@ -1665,54 +1744,51 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
1665
1744
|
}
|
|
1666
1745
|
|
|
1667
1746
|
// src/components/jobPost/JobDescription.tsx
|
|
1668
|
-
var
|
|
1747
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1669
1748
|
function JobDescription({ description }) {
|
|
1670
1749
|
if (!description) return null;
|
|
1671
|
-
return /* @__PURE__ */ (0,
|
|
1672
|
-
/* @__PURE__ */ (0,
|
|
1673
|
-
/* @__PURE__ */ (0,
|
|
1750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex w-full flex-col gap-2", children: [
|
|
1751
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
1752
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ReadMore, { text: description })
|
|
1674
1753
|
] });
|
|
1675
1754
|
}
|
|
1676
1755
|
|
|
1677
1756
|
// src/components/jobPost/JobHeader.tsx
|
|
1678
|
-
var
|
|
1757
|
+
var import_lucide_react15 = require("lucide-react");
|
|
1679
1758
|
var import_image = __toESM(require("next/image"), 1);
|
|
1680
1759
|
|
|
1681
1760
|
// src/components/buttons/BackButton.tsx
|
|
1682
|
-
var
|
|
1761
|
+
var import_lucide_react13 = require("lucide-react");
|
|
1683
1762
|
var import_navigation2 = require("next/navigation");
|
|
1684
1763
|
|
|
1685
1764
|
// src/hooks/useWindowHistory.ts
|
|
1686
|
-
var
|
|
1765
|
+
var import_react12 = require("react");
|
|
1687
1766
|
|
|
1688
1767
|
// src/contexts/WindowHistoryProvider.tsx
|
|
1689
1768
|
var import_navigation = require("next/navigation");
|
|
1690
|
-
var
|
|
1691
|
-
var
|
|
1692
|
-
var WindowHistoryContext = (0,
|
|
1769
|
+
var import_react11 = require("react");
|
|
1770
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1771
|
+
var WindowHistoryContext = (0, import_react11.createContext)({});
|
|
1693
1772
|
function WindowHistoryProvider({ children }) {
|
|
1694
|
-
const [history, setHistory] = (0,
|
|
1773
|
+
const [history, setHistory] = (0, import_react11.useState)([]);
|
|
1695
1774
|
const searchParams = (0, import_navigation.useSearchParams)();
|
|
1696
|
-
(0,
|
|
1775
|
+
(0, import_react11.useEffect)(() => {
|
|
1697
1776
|
setHistory(
|
|
1698
1777
|
(prev) => prev.at(-1) === window.location.href ? prev : [...prev, window.location.href]
|
|
1699
1778
|
);
|
|
1700
1779
|
}, [searchParams]);
|
|
1701
|
-
const contextValue = (0,
|
|
1702
|
-
return /* @__PURE__ */ (0,
|
|
1780
|
+
const contextValue = (0, import_react11.useMemo)(() => ({ history }), [history]);
|
|
1781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
1703
1782
|
}
|
|
1704
1783
|
|
|
1705
1784
|
// src/hooks/useWindowHistory.ts
|
|
1706
1785
|
function useWindowHistory() {
|
|
1707
|
-
const windowHistoryContext = (0,
|
|
1708
|
-
if (Object.keys(windowHistoryContext).length === 0) {
|
|
1709
|
-
throw new Error("useWindowHistory was used outside of its WindowHistoryContext");
|
|
1710
|
-
}
|
|
1786
|
+
const windowHistoryContext = (0, import_react12.useContext)(WindowHistoryContext);
|
|
1711
1787
|
return windowHistoryContext;
|
|
1712
1788
|
}
|
|
1713
1789
|
|
|
1714
1790
|
// src/components/buttons/BackButton.tsx
|
|
1715
|
-
var
|
|
1791
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1716
1792
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
1717
1793
|
const { history } = useWindowHistory();
|
|
1718
1794
|
const router = (0, import_navigation2.useRouter)();
|
|
@@ -1721,7 +1797,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1721
1797
|
const previous = history[history.length - 2];
|
|
1722
1798
|
history.length > 1 && isAcceptedRoute(previous) ? router.back() : router.push(fallbackHref ?? "/");
|
|
1723
1799
|
};
|
|
1724
|
-
return /* @__PURE__ */ (0,
|
|
1800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1725
1801
|
Icon,
|
|
1726
1802
|
{
|
|
1727
1803
|
"aria-label": "back button",
|
|
@@ -1730,38 +1806,38 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1730
1806
|
onClick: goBack,
|
|
1731
1807
|
className,
|
|
1732
1808
|
...props,
|
|
1733
|
-
children: /* @__PURE__ */ (0,
|
|
1809
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react13.X, {})
|
|
1734
1810
|
}
|
|
1735
1811
|
);
|
|
1736
1812
|
}
|
|
1737
1813
|
|
|
1738
1814
|
// src/lib/icons.ts
|
|
1739
|
-
var
|
|
1815
|
+
var import_lucide_react14 = require("lucide-react");
|
|
1740
1816
|
var iconMap = {
|
|
1741
|
-
house:
|
|
1742
|
-
layers:
|
|
1743
|
-
users:
|
|
1744
|
-
settings:
|
|
1745
|
-
building:
|
|
1746
|
-
bell:
|
|
1747
|
-
wallet:
|
|
1748
|
-
contact:
|
|
1749
|
-
banknote:
|
|
1750
|
-
"message-square-dot":
|
|
1751
|
-
"life-buoy":
|
|
1752
|
-
"building-2":
|
|
1753
|
-
"gallery-vertical-end":
|
|
1754
|
-
"square-kanban":
|
|
1755
|
-
"briefcase-business":
|
|
1756
|
-
"circle-user":
|
|
1757
|
-
"key-round":
|
|
1758
|
-
"clock-2":
|
|
1759
|
-
"circle-user-round":
|
|
1760
|
-
"map-pin":
|
|
1817
|
+
house: import_lucide_react14.Home,
|
|
1818
|
+
layers: import_lucide_react14.Layers,
|
|
1819
|
+
users: import_lucide_react14.Users,
|
|
1820
|
+
settings: import_lucide_react14.Settings,
|
|
1821
|
+
building: import_lucide_react14.Building,
|
|
1822
|
+
bell: import_lucide_react14.Bell,
|
|
1823
|
+
wallet: import_lucide_react14.Wallet,
|
|
1824
|
+
contact: import_lucide_react14.Contact,
|
|
1825
|
+
banknote: import_lucide_react14.Banknote,
|
|
1826
|
+
"message-square-dot": import_lucide_react14.MessageSquareDot,
|
|
1827
|
+
"life-buoy": import_lucide_react14.LifeBuoy,
|
|
1828
|
+
"building-2": import_lucide_react14.Building2,
|
|
1829
|
+
"gallery-vertical-end": import_lucide_react14.GalleryVerticalEnd,
|
|
1830
|
+
"square-kanban": import_lucide_react14.SquareKanban,
|
|
1831
|
+
"briefcase-business": import_lucide_react14.BriefcaseBusiness,
|
|
1832
|
+
"circle-user": import_lucide_react14.CircleUser,
|
|
1833
|
+
"key-round": import_lucide_react14.KeyRound,
|
|
1834
|
+
"clock-2": import_lucide_react14.Clock2,
|
|
1835
|
+
"circle-user-round": import_lucide_react14.CircleUserRound,
|
|
1836
|
+
"map-pin": import_lucide_react14.MapPin
|
|
1761
1837
|
};
|
|
1762
1838
|
|
|
1763
1839
|
// src/components/jobPost/JobHeader.tsx
|
|
1764
|
-
var
|
|
1840
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1765
1841
|
function JobHeader({
|
|
1766
1842
|
title,
|
|
1767
1843
|
subtitles,
|
|
@@ -1777,9 +1853,9 @@ function JobHeader({
|
|
|
1777
1853
|
}) {
|
|
1778
1854
|
const renderIcon = (icon) => {
|
|
1779
1855
|
const Icon2 = iconMap[icon];
|
|
1780
|
-
return /* @__PURE__ */ (0,
|
|
1856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon2, { size: 18 });
|
|
1781
1857
|
};
|
|
1782
|
-
return /* @__PURE__ */ (0,
|
|
1858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1783
1859
|
"div",
|
|
1784
1860
|
{
|
|
1785
1861
|
"data-testid": "job-header-root",
|
|
@@ -1788,8 +1864,8 @@ function JobHeader({
|
|
|
1788
1864
|
!standalone && "rounded-3xl"
|
|
1789
1865
|
),
|
|
1790
1866
|
children: [
|
|
1791
|
-
!standalone && /* @__PURE__ */ (0,
|
|
1792
|
-
/* @__PURE__ */ (0,
|
|
1867
|
+
!standalone && /* @__PURE__ */ (0, import_jsx_runtime32.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: [
|
|
1868
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1793
1869
|
import_image.default,
|
|
1794
1870
|
{
|
|
1795
1871
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -1798,7 +1874,7 @@ function JobHeader({
|
|
|
1798
1874
|
fill: true
|
|
1799
1875
|
}
|
|
1800
1876
|
),
|
|
1801
|
-
/* @__PURE__ */ (0,
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1802
1878
|
BackButton,
|
|
1803
1879
|
{
|
|
1804
1880
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -1807,12 +1883,12 @@ function JobHeader({
|
|
|
1807
1883
|
"data-testid": "job-header-back-button"
|
|
1808
1884
|
}
|
|
1809
1885
|
),
|
|
1810
|
-
/* @__PURE__ */ (0,
|
|
1886
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1811
1887
|
"div",
|
|
1812
1888
|
{
|
|
1813
1889
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
1814
1890
|
"data-testid": "job-header-avatar",
|
|
1815
|
-
children: /* @__PURE__ */ (0,
|
|
1891
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1816
1892
|
Avatar,
|
|
1817
1893
|
{
|
|
1818
1894
|
size: "large",
|
|
@@ -1826,9 +1902,9 @@ function JobHeader({
|
|
|
1826
1902
|
}
|
|
1827
1903
|
)
|
|
1828
1904
|
] }),
|
|
1829
|
-
/* @__PURE__ */ (0,
|
|
1830
|
-
/* @__PURE__ */ (0,
|
|
1831
|
-
standalone && /* @__PURE__ */ (0,
|
|
1905
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col md:flex-row", children: [
|
|
1907
|
+
standalone && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1832
1908
|
Avatar,
|
|
1833
1909
|
{
|
|
1834
1910
|
size: "large",
|
|
@@ -1839,26 +1915,26 @@ function JobHeader({
|
|
|
1839
1915
|
rel: "noopener noreferrer"
|
|
1840
1916
|
}
|
|
1841
1917
|
) }),
|
|
1842
|
-
/* @__PURE__ */ (0,
|
|
1918
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.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_runtime32.jsxs)(
|
|
1843
1919
|
"div",
|
|
1844
1920
|
{
|
|
1845
1921
|
"data-testid": `job-header-subtitle-${i}`,
|
|
1846
1922
|
className: "flex items-center",
|
|
1847
1923
|
children: [
|
|
1848
1924
|
subtitle,
|
|
1849
|
-
i < subtitles.length - 1 && /* @__PURE__ */ (0,
|
|
1925
|
+
i < subtitles.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react15.Dot, { className: "mx-1 shrink-0", size: 10 })
|
|
1850
1926
|
]
|
|
1851
1927
|
},
|
|
1852
1928
|
subtitle
|
|
1853
1929
|
)) })
|
|
1854
1930
|
] }),
|
|
1855
|
-
/* @__PURE__ */ (0,
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1856
1932
|
"div",
|
|
1857
1933
|
{
|
|
1858
1934
|
"data-testid": "job-header-content",
|
|
1859
1935
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
1860
1936
|
children: [
|
|
1861
|
-
/* @__PURE__ */ (0,
|
|
1937
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1862
1938
|
"h2",
|
|
1863
1939
|
{
|
|
1864
1940
|
"data-testid": "job-header-title",
|
|
@@ -1866,7 +1942,7 @@ function JobHeader({
|
|
|
1866
1942
|
children: title
|
|
1867
1943
|
}
|
|
1868
1944
|
),
|
|
1869
|
-
!!actions && /* @__PURE__ */ (0,
|
|
1945
|
+
!!actions && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1870
1946
|
"div",
|
|
1871
1947
|
{
|
|
1872
1948
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -1877,12 +1953,12 @@ function JobHeader({
|
|
|
1877
1953
|
]
|
|
1878
1954
|
}
|
|
1879
1955
|
),
|
|
1880
|
-
/* @__PURE__ */ (0,
|
|
1956
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1881
1957
|
"div",
|
|
1882
1958
|
{
|
|
1883
1959
|
"data-testid": "job-header-tags",
|
|
1884
1960
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
1885
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0,
|
|
1961
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1886
1962
|
Chip_default,
|
|
1887
1963
|
{
|
|
1888
1964
|
size: "small",
|
|
@@ -1891,7 +1967,7 @@ function JobHeader({
|
|
|
1891
1967
|
"data-testid": `job-header-tag-${name}`,
|
|
1892
1968
|
children: [
|
|
1893
1969
|
renderIcon(icon),
|
|
1894
|
-
/* @__PURE__ */ (0,
|
|
1970
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { children: label })
|
|
1895
1971
|
]
|
|
1896
1972
|
},
|
|
1897
1973
|
name
|
|
@@ -1914,21 +1990,19 @@ __export(shared_pickle_output_latest_exports, {
|
|
|
1914
1990
|
DetailLevelEnum: () => DetailLevelEnum,
|
|
1915
1991
|
TypeEnum: () => TypeEnum,
|
|
1916
1992
|
UnitTextEnum: () => UnitTextEnum,
|
|
1917
|
-
imageAssetSchema: () => imageAssetSchema,
|
|
1918
|
-
imageSchema: () => imageSchema,
|
|
1919
1993
|
monetaryAmountSchema: () => monetaryAmountSchema,
|
|
1920
1994
|
placeSchema: () => placeSchema,
|
|
1921
1995
|
postalAddressSchema: () => postalAddressSchema,
|
|
1922
1996
|
quantitativeValueSchema: () => quantitativeValueSchema
|
|
1923
1997
|
});
|
|
1924
1998
|
var import_zod = require("zod");
|
|
1925
|
-
var TypeEnum = import_zod.z.enum(["
|
|
1999
|
+
var TypeEnum = import_zod.z.enum(["MONETARY_AMOUNT"]);
|
|
1926
2000
|
var DetailLevelEnum = import_zod.z.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
|
|
1927
2001
|
var UnitTextEnum = import_zod.z.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
|
|
1928
2002
|
var CurrencyEnum = import_zod.z.enum(["EUR", "GBP", "USD"]);
|
|
1929
2003
|
var postalAddressSchema = import_zod.z.object({
|
|
1930
2004
|
version: import_zod.z.literal("1.0.0").default("1.0.0"),
|
|
1931
|
-
type: import_zod.z.string().describe("Document type used
|
|
2005
|
+
type: import_zod.z.string().describe("Document type used within sanity"),
|
|
1932
2006
|
addressCountry: import_zod.z.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
|
|
1933
2007
|
addressRegion: import_zod.z.optional(import_zod.z.string()).describe("The region in which the locality is, and which is in the country."),
|
|
1934
2008
|
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."),
|
|
@@ -1944,7 +2018,7 @@ var placeSchema = import_zod.z.object({
|
|
|
1944
2018
|
});
|
|
1945
2019
|
var quantitativeValueSchema = import_zod.z.object({
|
|
1946
2020
|
version: import_zod.z.literal("1.0.0").default("1.0.0"),
|
|
1947
|
-
type: import_zod.z.string().describe("Document type used
|
|
2021
|
+
type: import_zod.z.string().describe("Document type used within sanity"),
|
|
1948
2022
|
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."),
|
|
1949
2023
|
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."),
|
|
1950
2024
|
maxValue: import_zod.z.optional(import_zod.z.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
|
|
@@ -1952,34 +2026,13 @@ var quantitativeValueSchema = import_zod.z.object({
|
|
|
1952
2026
|
});
|
|
1953
2027
|
var monetaryAmountSchema = import_zod.z.object({
|
|
1954
2028
|
version: import_zod.z.literal("1.0.0").default("1.0.0"),
|
|
1955
|
-
type: import_zod.z.string().describe("Document type used
|
|
2029
|
+
type: import_zod.z.string().describe("Document type used within sanity"),
|
|
1956
2030
|
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."),
|
|
1957
2031
|
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"),
|
|
1958
2032
|
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"),
|
|
1959
2033
|
value: import_zod.z.optional(quantitativeValueSchema).describe("The quantitative_value for a given salary"),
|
|
1960
2034
|
currency: import_zod.z.optional(CurrencyEnum)
|
|
1961
2035
|
});
|
|
1962
|
-
var imageAssetSchema = import_zod.z.object({
|
|
1963
|
-
version: import_zod.z.literal("1.0.0").default("1.0.0"),
|
|
1964
|
-
altText: import_zod.z.optional(import_zod.z.string()).describe("The alt text for the image"),
|
|
1965
|
-
assetId: import_zod.z.optional(import_zod.z.string()).describe("The asset ID for the image"),
|
|
1966
|
-
description: import_zod.z.optional(import_zod.z.string()).describe("The description for the image"),
|
|
1967
|
-
extension: import_zod.z.optional(import_zod.z.string()).describe("The extension for the image"),
|
|
1968
|
-
label: import_zod.z.optional(import_zod.z.string()).describe("The label for the image"),
|
|
1969
|
-
mimeType: import_zod.z.optional(import_zod.z.string()).describe("The mime type for the image"),
|
|
1970
|
-
originalFilename: import_zod.z.optional(import_zod.z.string()).describe("The original filename for the image"),
|
|
1971
|
-
path: import_zod.z.optional(import_zod.z.string()).describe("The path for the image"),
|
|
1972
|
-
sha1Hash: import_zod.z.optional(import_zod.z.string()).describe("The SHA1 hash for the image"),
|
|
1973
|
-
size: import_zod.z.optional(import_zod.z.number()).describe("The size for the image"),
|
|
1974
|
-
title: import_zod.z.optional(import_zod.z.string()).describe("The title for the image"),
|
|
1975
|
-
uploadId: import_zod.z.optional(import_zod.z.string()).describe("The upload ID for the image"),
|
|
1976
|
-
url: import_zod.z.optional(import_zod.z.string()).describe("The URL for the image")
|
|
1977
|
-
});
|
|
1978
|
-
var imageSchema = import_zod.z.object({
|
|
1979
|
-
version: import_zod.z.literal("1.0.0").default("1.0.0"),
|
|
1980
|
-
type: import_zod.z.string().describe("Document type used for schema"),
|
|
1981
|
-
asset: import_zod.z.optional(imageAssetSchema).describe("The asset for the image")
|
|
1982
|
-
});
|
|
1983
2036
|
|
|
1984
2037
|
// src/lib/salaryRange.ts
|
|
1985
2038
|
function salaryRange(salary) {
|
|
@@ -2002,7 +2055,7 @@ function salaryRange(salary) {
|
|
|
2002
2055
|
}
|
|
2003
2056
|
|
|
2004
2057
|
// src/hooks/useDisplayText.ts
|
|
2005
|
-
var
|
|
2058
|
+
var import_react13 = require("react");
|
|
2006
2059
|
|
|
2007
2060
|
// src/lib/mappings.ts
|
|
2008
2061
|
var employmentTypeDisplayText = {
|
|
@@ -2446,9 +2499,9 @@ var DisplayTextService = class {
|
|
|
2446
2499
|
|
|
2447
2500
|
// src/hooks/useDisplayText.ts
|
|
2448
2501
|
var useDisplayText = (scope, value) => {
|
|
2449
|
-
const [displayText, setDisplayText] = (0,
|
|
2450
|
-
const displayService = (0,
|
|
2451
|
-
(0,
|
|
2502
|
+
const [displayText, setDisplayText] = (0, import_react13.useState)("");
|
|
2503
|
+
const displayService = (0, import_react13.useMemo)(() => new DisplayTextService(), []);
|
|
2504
|
+
(0, import_react13.useEffect)(() => {
|
|
2452
2505
|
if (!displayService || !value) {
|
|
2453
2506
|
setDisplayText("");
|
|
2454
2507
|
return;
|
|
@@ -2491,7 +2544,7 @@ function formattedJobLocation(job) {
|
|
|
2491
2544
|
}
|
|
2492
2545
|
|
|
2493
2546
|
// src/components/jobPost/JobPost.tsx
|
|
2494
|
-
var
|
|
2547
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2495
2548
|
function JobPost({
|
|
2496
2549
|
job,
|
|
2497
2550
|
bannerSrc,
|
|
@@ -2535,7 +2588,7 @@ function JobPost({
|
|
|
2535
2588
|
label: formattedLocation
|
|
2536
2589
|
}
|
|
2537
2590
|
].filter((t) => !!t);
|
|
2538
|
-
return /* @__PURE__ */ (0,
|
|
2591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2539
2592
|
"div",
|
|
2540
2593
|
{
|
|
2541
2594
|
className: cn(
|
|
@@ -2543,13 +2596,12 @@ function JobPost({
|
|
|
2543
2596
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
2544
2597
|
),
|
|
2545
2598
|
children: [
|
|
2546
|
-
/* @__PURE__ */ (0,
|
|
2599
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2547
2600
|
JobHeader,
|
|
2548
2601
|
{
|
|
2549
2602
|
title: job.title,
|
|
2550
2603
|
bannerSrc,
|
|
2551
2604
|
avatarName: job.hiringOrganization?.companyName,
|
|
2552
|
-
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
2553
2605
|
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
2554
2606
|
actions,
|
|
2555
2607
|
standalone,
|
|
@@ -2557,29 +2609,29 @@ function JobPost({
|
|
|
2557
2609
|
tags
|
|
2558
2610
|
}
|
|
2559
2611
|
),
|
|
2560
|
-
/* @__PURE__ */ (0,
|
|
2561
|
-
/* @__PURE__ */ (0,
|
|
2562
|
-
/* @__PURE__ */ (0,
|
|
2612
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
2613
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(JobDescription, { description: job.description }),
|
|
2614
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2563
2615
|
CompanyTake,
|
|
2564
2616
|
{
|
|
2565
2617
|
avatarSrc,
|
|
2566
2618
|
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
2567
2619
|
}
|
|
2568
2620
|
),
|
|
2569
|
-
/* @__PURE__ */ (0,
|
|
2621
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2570
2622
|
CompanyInformation,
|
|
2571
2623
|
{
|
|
2572
2624
|
name: job.hiringOrganization?.companyName ?? "",
|
|
2573
2625
|
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
2574
|
-
mission: job.hiringOrganization?.companyPhilosophy?.
|
|
2626
|
+
mission: job.hiringOrganization?.companyPhilosophy?.mission,
|
|
2575
2627
|
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
2576
2628
|
website: job.hiringOrganization?.companyWebsite
|
|
2577
2629
|
}
|
|
2578
2630
|
),
|
|
2579
|
-
/* @__PURE__ */ (0,
|
|
2631
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2580
2632
|
CompanyBenefits,
|
|
2581
2633
|
{
|
|
2582
|
-
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.
|
|
2634
|
+
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.description).filter((d) => d !== void 0)
|
|
2583
2635
|
}
|
|
2584
2636
|
)
|
|
2585
2637
|
] })
|
|
@@ -2615,11 +2667,12 @@ __export(company_service_latest_exports, {
|
|
|
2615
2667
|
TitleEnum: () => TitleEnum,
|
|
2616
2668
|
TypeEnum: () => TypeEnum2,
|
|
2617
2669
|
companyBenefitsSchema: () => companyBenefitsSchema,
|
|
2618
|
-
|
|
2670
|
+
companyCareersPageSchema: () => companyCareersPageSchema,
|
|
2619
2671
|
companyNdgSchema: () => companyNdgSchema,
|
|
2620
2672
|
companyPhilosophySchema: () => companyPhilosophySchema,
|
|
2621
2673
|
companySchema: () => companySchema,
|
|
2622
2674
|
foundingInformationSchema: () => foundingInformationSchema,
|
|
2675
|
+
imageSchema: () => imageSchema,
|
|
2623
2676
|
industrySchema: () => industrySchema,
|
|
2624
2677
|
jobBoardSchema: () => jobBoardSchema,
|
|
2625
2678
|
ngdMetadataSchema: () => ngdMetadataSchema,
|
|
@@ -2633,6 +2686,10 @@ var CategoryEnum = import_zod2.z.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVE
|
|
|
2633
2686
|
var TitleEnum = import_zod2.z.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
|
|
2634
2687
|
var PublishStatusEnum = import_zod2.z.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
|
|
2635
2688
|
var OfficeTypeEnum = import_zod2.z.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
|
|
2689
|
+
var imageSchema = import_zod2.z.object({
|
|
2690
|
+
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2691
|
+
url: import_zod2.z.string()
|
|
2692
|
+
});
|
|
2636
2693
|
var socialMediaSchema = import_zod2.z.object({
|
|
2637
2694
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2638
2695
|
url: import_zod2.z.string().describe("The link to the social media platform"),
|
|
@@ -2640,14 +2697,14 @@ var socialMediaSchema = import_zod2.z.object({
|
|
|
2640
2697
|
});
|
|
2641
2698
|
var companyBenefitsSchema = import_zod2.z.object({
|
|
2642
2699
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2643
|
-
type: import_zod2.z.string().describe("Document type used
|
|
2644
|
-
|
|
2700
|
+
type: import_zod2.z.string().describe("Document type used within sanity"),
|
|
2701
|
+
name: import_zod2.z.string(),
|
|
2645
2702
|
description: import_zod2.z.optional(import_zod2.z.string()),
|
|
2646
2703
|
category: CategoryEnum
|
|
2647
2704
|
});
|
|
2648
2705
|
var industrySchema = import_zod2.z.lazy(() => import_zod2.z.object({
|
|
2649
2706
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2650
|
-
type: import_zod2.z.string().describe("Document type used
|
|
2707
|
+
type: import_zod2.z.string().describe("Document type used within sanity"),
|
|
2651
2708
|
name: import_zod2.z.string(),
|
|
2652
2709
|
description: import_zod2.z.optional(import_zod2.z.string()).describe("A brief description of the industry"),
|
|
2653
2710
|
onetIndustryId: import_zod2.z.optional(import_zod2.z.string()).describe("ONET industry ID"),
|
|
@@ -2655,7 +2712,7 @@ var industrySchema = import_zod2.z.lazy(() => import_zod2.z.object({
|
|
|
2655
2712
|
}));
|
|
2656
2713
|
var jobBoardSchema = import_zod2.z.object({
|
|
2657
2714
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2658
|
-
type: import_zod2.z.string().describe("Document type used
|
|
2715
|
+
type: import_zod2.z.string().describe("Document type used within sanity"),
|
|
2659
2716
|
name: import_zod2.z.string().describe("The name of the job board"),
|
|
2660
2717
|
description: import_zod2.z.string().describe("A brief description of the job board"),
|
|
2661
2718
|
logo: import_zod2.z.optional(imageSchema).describe("The logo of the job board"),
|
|
@@ -2663,7 +2720,7 @@ var jobBoardSchema = import_zod2.z.object({
|
|
|
2663
2720
|
});
|
|
2664
2721
|
var personSchema = import_zod2.z.object({
|
|
2665
2722
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2666
|
-
type: import_zod2.z.string().describe("Document type used
|
|
2723
|
+
type: import_zod2.z.string().describe("Document type used within sanity"),
|
|
2667
2724
|
firstName: import_zod2.z.string().describe("The first name of the person"),
|
|
2668
2725
|
lastName: import_zod2.z.string().describe("The last name of the person"),
|
|
2669
2726
|
title: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("The titles of the degree of the person"),
|
|
@@ -2679,62 +2736,56 @@ var personSchema = import_zod2.z.object({
|
|
|
2679
2736
|
url: import_zod2.z.optional(import_zod2.z.string()).describe("The URL of the person"),
|
|
2680
2737
|
address: import_zod2.z.optional(placeSchema).describe("The address of the person")
|
|
2681
2738
|
});
|
|
2682
|
-
var
|
|
2739
|
+
var companyCareersPageSchema = import_zod2.z.object({
|
|
2683
2740
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
jobBoardSlug: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
|
|
2741
|
+
companyCareersUrl: import_zod2.z.string().describe("The URL of the company careers page"),
|
|
2742
|
+
companyJobBoard: import_zod2.z.optional(jobBoardSchema),
|
|
2743
|
+
jobBoardSlug: import_zod2.z.array(import_zod2.z.string()),
|
|
2688
2744
|
companyBenefits: import_zod2.z.optional(import_zod2.z.array(companyBenefitsSchema)).describe("What are the specific benefits of that company. The benefit is generic.")
|
|
2689
2745
|
});
|
|
2690
2746
|
var companyPhilosophySchema = import_zod2.z.object({
|
|
2691
2747
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2692
|
-
|
|
2693
|
-
companyMission: import_zod2.z.optional(import_zod2.z.string()).describe("The mission statement of the company."),
|
|
2748
|
+
mission: import_zod2.z.optional(import_zod2.z.string()).describe("The mission statement of the company."),
|
|
2694
2749
|
companyHow: import_zod2.z.optional(import_zod2.z.string()).describe("How does the company achieve its mission"),
|
|
2695
2750
|
companyCulture: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())).describe("What are some of the culture aspects of this company?")
|
|
2696
2751
|
});
|
|
2697
2752
|
var companyNdgSchema = import_zod2.z.object({
|
|
2698
2753
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2699
|
-
type: import_zod2.z.string().describe("Document type used for schema"),
|
|
2700
2754
|
companyWow: import_zod2.z.optional(import_zod2.z.string()).describe("What is the wow of this company?"),
|
|
2701
2755
|
companyNDGTake: import_zod2.z.optional(import_zod2.z.string()).describe("What is the NDG POV on this company?"),
|
|
2756
|
+
// Manually edited due to a different naming convention
|
|
2702
2757
|
companyBestFit: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string())),
|
|
2703
2758
|
companyInterests: import_zod2.z.optional(import_zod2.z.array(import_zod2.z.string()))
|
|
2704
2759
|
});
|
|
2705
2760
|
var foundingInformationSchema = import_zod2.z.object({
|
|
2706
2761
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
foundedCity: import_zod2.z.optional(import_zod2.z.string()),
|
|
2762
|
+
foundedYear: import_zod2.z.optional(import_zod2.z.string()),
|
|
2763
|
+
foundingCountry: import_zod2.z.optional(import_zod2.z.string()),
|
|
2764
|
+
foundingCity: import_zod2.z.optional(import_zod2.z.string()),
|
|
2711
2765
|
founders: import_zod2.z.optional(import_zod2.z.array(personSchema))
|
|
2712
2766
|
});
|
|
2713
2767
|
var ngdMetadataSchema = import_zod2.z.object({
|
|
2714
2768
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2715
|
-
type: import_zod2.z.string().describe("Document type used for schema"),
|
|
2716
2769
|
lastScraped: import_zod2.z.optional(import_zod2.z.string()).describe("Date the last entity was scraped, if applicable"),
|
|
2717
2770
|
scraperVersion: import_zod2.z.optional(import_zod2.z.string()),
|
|
2718
2771
|
postProcessorVersion: import_zod2.z.optional(import_zod2.z.string()),
|
|
2719
2772
|
uniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
|
|
2720
2773
|
postProcessorUniqueRunId: import_zod2.z.optional(import_zod2.z.string()),
|
|
2721
|
-
|
|
2774
|
+
shouldThisDocumentBeScraped: import_zod2.z.optional(import_zod2.z.boolean())
|
|
2722
2775
|
});
|
|
2723
2776
|
var companySchema = import_zod2.z.object({
|
|
2724
2777
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2725
|
-
id: import_zod2.z.string().describe("The NDG specific id for a company. Cannot be changed."),
|
|
2726
|
-
createdAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2727
|
-
updatedAt: import_zod2.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2728
2778
|
companyName: import_zod2.z.string().describe("The name of the company"),
|
|
2729
2779
|
slug: import_zod2.z.string().describe("The NDG specific slug for a company."),
|
|
2730
|
-
type: import_zod2.z.string().describe("Document type used
|
|
2780
|
+
type: import_zod2.z.string().describe("Document type used within sanity"),
|
|
2731
2781
|
logo: import_zod2.z.optional(imageSchema).describe("The logo of the company"),
|
|
2732
2782
|
companyWebsite: import_zod2.z.optional(import_zod2.z.string()).describe("The website of the company"),
|
|
2733
2783
|
socialMedia: import_zod2.z.optional(import_zod2.z.array(socialMediaSchema)).describe("The social media links of the company"),
|
|
2734
2784
|
brandColor: import_zod2.z.optional(import_zod2.z.string()).describe("The brand color of the company"),
|
|
2735
|
-
companyCareers: import_zod2.z.optional(
|
|
2785
|
+
companyCareers: import_zod2.z.optional(companyCareersPageSchema).describe("Career Specific Information for the company."),
|
|
2736
2786
|
companyPhilosophy: import_zod2.z.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
|
|
2737
2787
|
companyNDG: import_zod2.z.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
|
|
2788
|
+
// Manually edited due to a different naming convention
|
|
2738
2789
|
foundingInfo: import_zod2.z.optional(foundingInformationSchema),
|
|
2739
2790
|
headquartersLocation: import_zod2.z.optional(placeSchema),
|
|
2740
2791
|
employeeEstimate: import_zod2.z.optional(import_zod2.z.string()),
|
|
@@ -2743,7 +2794,7 @@ var companySchema = import_zod2.z.object({
|
|
|
2743
2794
|
});
|
|
2744
2795
|
var officeSchema = import_zod2.z.object({
|
|
2745
2796
|
version: import_zod2.z.literal("1.0.0").default("1.0.0"),
|
|
2746
|
-
type: import_zod2.z.string().describe("Document type used
|
|
2797
|
+
type: import_zod2.z.string().describe("Document type used within sanity"),
|
|
2747
2798
|
name: import_zod2.z.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
|
|
2748
2799
|
officeType: OfficeTypeEnum,
|
|
2749
2800
|
companyId: import_zod2.z.optional(companySchema),
|
|
@@ -2767,7 +2818,7 @@ var ClinicalSpecialtyEnum = import_zod3.z.enum(["ANESTHESIOLOGY", "CARDIOLOGY",
|
|
|
2767
2818
|
var jobPostSchema = import_zod3.z.object({
|
|
2768
2819
|
version: import_zod3.z.literal("1.0.0").default("1.0.0"),
|
|
2769
2820
|
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."),
|
|
2770
|
-
type: import_zod3.z.string().describe("Document type used
|
|
2821
|
+
type: import_zod3.z.string().describe("Document type used within sanity"),
|
|
2771
2822
|
createdAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2772
2823
|
updatedAt: import_zod3.z.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2773
2824
|
dateAdded: import_zod3.z.optional(import_zod3.z.string().datetime()).describe("The date the job was added to the platform"),
|
|
@@ -2816,6 +2867,7 @@ var jobPostSchema = import_zod3.z.object({
|
|
|
2816
2867
|
Counter,
|
|
2817
2868
|
Icon,
|
|
2818
2869
|
Input,
|
|
2870
|
+
InputOtp,
|
|
2819
2871
|
JobDescription,
|
|
2820
2872
|
JobHeader,
|
|
2821
2873
|
JobPost,
|