@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.js
CHANGED
|
@@ -501,24 +501,17 @@ var Input_default = Input;
|
|
|
501
501
|
// src/components/ui/MapComponent.tsx
|
|
502
502
|
import { APIProvider, Map, AdvancedMarker, Pin } from "@vis.gl/react-google-maps";
|
|
503
503
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
504
|
-
function MapComponent({
|
|
505
|
-
apiKey,
|
|
506
|
-
mapId,
|
|
507
|
-
position,
|
|
508
|
-
className,
|
|
509
|
-
zoom = 15
|
|
510
|
-
}) {
|
|
504
|
+
function MapComponent({ apiKey, mapId, position, className, zoom = 15 }) {
|
|
511
505
|
const defaultPosition = { lat: 40.715021, lng: -74.00459 };
|
|
512
506
|
const defaultZoom = 11;
|
|
513
507
|
return /* @__PURE__ */ jsx10(APIProvider, { apiKey, children: /* @__PURE__ */ jsx10("div", { className: cn("h-screen max-w-full", className), children: /* @__PURE__ */ jsx10(
|
|
514
508
|
Map,
|
|
515
509
|
{
|
|
516
|
-
|
|
510
|
+
zoom: position ? zoom : defaultZoom,
|
|
517
511
|
center: position || defaultPosition,
|
|
518
512
|
mapId,
|
|
519
513
|
keyboardShortcuts: false,
|
|
520
514
|
disableDefaultUI: true,
|
|
521
|
-
zoomControl: true,
|
|
522
515
|
children: position && /* @__PURE__ */ jsx10(AdvancedMarker, { position, children: /* @__PURE__ */ jsx10(Pin, { background: "#0B5441", borderColor: "#EBFDF1", glyphColor: "#D4F500" }) })
|
|
523
516
|
}
|
|
524
517
|
) }) });
|
|
@@ -1325,11 +1318,96 @@ var counterVariants = cva6(
|
|
|
1325
1318
|
}
|
|
1326
1319
|
);
|
|
1327
1320
|
|
|
1321
|
+
// src/components/ui/InputOtp.tsx
|
|
1322
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
1323
|
+
|
|
1324
|
+
// src/components/primitives/input-otp.tsx
|
|
1325
|
+
import * as React7 from "react";
|
|
1326
|
+
import { OTPInput, OTPInputContext } from "input-otp";
|
|
1327
|
+
import { Dot } from "lucide-react";
|
|
1328
|
+
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1329
|
+
var InputOTP = React7.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1330
|
+
OTPInput,
|
|
1331
|
+
{
|
|
1332
|
+
ref,
|
|
1333
|
+
containerClassName: cn(
|
|
1334
|
+
"flex items-center gap-2 has-[:disabled]:opacity-50",
|
|
1335
|
+
containerClassName
|
|
1336
|
+
),
|
|
1337
|
+
className: cn("disabled:cursor-not-allowed", className),
|
|
1338
|
+
...props
|
|
1339
|
+
}
|
|
1340
|
+
));
|
|
1341
|
+
InputOTP.displayName = "InputOTP";
|
|
1342
|
+
var InputOTPGroup = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
1343
|
+
InputOTPGroup.displayName = "InputOTPGroup";
|
|
1344
|
+
var InputOTPSlot = React7.forwardRef(({ index, error, className, ...props }, ref) => {
|
|
1345
|
+
const inputOTPContext = React7.useContext(OTPInputContext);
|
|
1346
|
+
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
1347
|
+
return /* @__PURE__ */ jsxs11(
|
|
1348
|
+
"div",
|
|
1349
|
+
{
|
|
1350
|
+
ref,
|
|
1351
|
+
className: cn(
|
|
1352
|
+
"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",
|
|
1353
|
+
isActive && "z-10 ring-2 ring-purple-100 ring-offset-white dark:ring-purple-20 dark:ring-offset-purple-100",
|
|
1354
|
+
error && "border-red-500 dark:border-red-400",
|
|
1355
|
+
className
|
|
1356
|
+
),
|
|
1357
|
+
...props,
|
|
1358
|
+
children: [
|
|
1359
|
+
char,
|
|
1360
|
+
hasFakeCaret && /* @__PURE__ */ jsx19("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx19("div", { className: "animate-caret-blink h-4 w-px bg-neutral-950 duration-1000 dark:bg-neutral-50" }) })
|
|
1361
|
+
]
|
|
1362
|
+
}
|
|
1363
|
+
);
|
|
1364
|
+
});
|
|
1365
|
+
InputOTPSlot.displayName = "InputOTPSlot";
|
|
1366
|
+
var InputOTPSeparator = React7.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx19("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx19(Dot, {}) }));
|
|
1367
|
+
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
1368
|
+
|
|
1369
|
+
// src/components/ui/InputOtp.tsx
|
|
1370
|
+
import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1371
|
+
var InputOtp = forwardRef13(
|
|
1372
|
+
({ digits, label, description, error, ...props }, ref) => {
|
|
1373
|
+
return /* @__PURE__ */ jsxs12(
|
|
1374
|
+
"div",
|
|
1375
|
+
{
|
|
1376
|
+
className: "group flex w-full flex-col gap-1",
|
|
1377
|
+
"data-testid": `input-otp-wrapper-${props.id}`,
|
|
1378
|
+
children: [
|
|
1379
|
+
label && /* @__PURE__ */ jsx20(
|
|
1380
|
+
Label_default,
|
|
1381
|
+
{
|
|
1382
|
+
text: label,
|
|
1383
|
+
htmlFor: props.name,
|
|
1384
|
+
required: props.required,
|
|
1385
|
+
description
|
|
1386
|
+
}
|
|
1387
|
+
),
|
|
1388
|
+
/* @__PURE__ */ jsx20("div", { className: "relative flex flex-row items-center", children: /* @__PURE__ */ jsx20(
|
|
1389
|
+
InputOTP,
|
|
1390
|
+
{
|
|
1391
|
+
ref,
|
|
1392
|
+
maxLength: digits,
|
|
1393
|
+
"data-testid": `input-otp-element-${props.id}`,
|
|
1394
|
+
...props,
|
|
1395
|
+
children: [...Array(digits)].map((_, index) => /* @__PURE__ */ jsx20(InputOTPGroup, { children: /* @__PURE__ */ jsx20(InputOTPSlot, { index, error: Boolean(error) }) }, index))
|
|
1396
|
+
}
|
|
1397
|
+
) }),
|
|
1398
|
+
/* @__PURE__ */ jsx20(ErrorMessage_default, { message: error })
|
|
1399
|
+
]
|
|
1400
|
+
}
|
|
1401
|
+
);
|
|
1402
|
+
}
|
|
1403
|
+
);
|
|
1404
|
+
InputOtp.displayName = "Input";
|
|
1405
|
+
|
|
1328
1406
|
// src/components/primitives/avatar.tsx
|
|
1329
1407
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
1330
|
-
import * as
|
|
1331
|
-
import { jsx as
|
|
1332
|
-
var AvatarBase =
|
|
1408
|
+
import * as React8 from "react";
|
|
1409
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1410
|
+
var AvatarBase = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1333
1411
|
AvatarPrimitive.Root,
|
|
1334
1412
|
{
|
|
1335
1413
|
ref,
|
|
@@ -1338,7 +1416,7 @@ var AvatarBase = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1338
1416
|
}
|
|
1339
1417
|
));
|
|
1340
1418
|
AvatarBase.displayName = AvatarPrimitive.Root.displayName;
|
|
1341
|
-
var AvatarImage =
|
|
1419
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1342
1420
|
AvatarPrimitive.Image,
|
|
1343
1421
|
{
|
|
1344
1422
|
ref,
|
|
@@ -1348,7 +1426,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1348
1426
|
}
|
|
1349
1427
|
));
|
|
1350
1428
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
1351
|
-
var AvatarFallback =
|
|
1429
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
1352
1430
|
AvatarPrimitive.Fallback,
|
|
1353
1431
|
{
|
|
1354
1432
|
ref,
|
|
@@ -1364,17 +1442,17 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
1364
1442
|
// src/components/ui/Avatar.tsx
|
|
1365
1443
|
import { cva as cva7 } from "cva";
|
|
1366
1444
|
import Link from "next/link";
|
|
1367
|
-
import { jsx as
|
|
1445
|
+
import { jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1368
1446
|
function Avatar({ size, src, href, name, ...linkProps }) {
|
|
1369
1447
|
const fallbackShort = name?.slice(0, 2);
|
|
1370
1448
|
const fallbackWords = name?.split(" ").map((n) => n[0]).join("").slice(0, 2);
|
|
1371
1449
|
const fallback = fallbackWords && fallbackWords.length > 1 ? fallbackWords : fallbackShort;
|
|
1372
|
-
const renderAvatar = () => /* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1374
|
-
/* @__PURE__ */
|
|
1450
|
+
const renderAvatar = () => /* @__PURE__ */ jsxs13(AvatarBase, { className: avatarVariants({ size }), children: [
|
|
1451
|
+
/* @__PURE__ */ jsx22(AvatarImage, { src, alt: name }),
|
|
1452
|
+
/* @__PURE__ */ jsx22(AvatarFallback, { children: fallback?.toUpperCase() })
|
|
1375
1453
|
] });
|
|
1376
1454
|
if (href) {
|
|
1377
|
-
return /* @__PURE__ */
|
|
1455
|
+
return /* @__PURE__ */ jsx22(Link, { href, ...linkProps, children: renderAvatar() });
|
|
1378
1456
|
}
|
|
1379
1457
|
return renderAvatar();
|
|
1380
1458
|
}
|
|
@@ -1394,13 +1472,13 @@ var avatarVariants = cva7("ring ring-white ring-2", {
|
|
|
1394
1472
|
// src/components/ui/Icon.tsx
|
|
1395
1473
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
1396
1474
|
import { cva as cva8 } from "cva";
|
|
1397
|
-
import { forwardRef as
|
|
1475
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
1398
1476
|
import { twMerge as twMerge3 } from "tailwind-merge";
|
|
1399
|
-
import { jsx as
|
|
1400
|
-
var Icon =
|
|
1477
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1478
|
+
var Icon = forwardRef15(
|
|
1401
1479
|
({ variant, size, active = false, readonly = false, className, ...props }, ref) => {
|
|
1402
1480
|
const Component = readonly ? Slot2 : "button";
|
|
1403
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ jsx23(
|
|
1404
1482
|
Component,
|
|
1405
1483
|
{
|
|
1406
1484
|
className: cn(
|
|
@@ -1470,7 +1548,7 @@ var iconVariants = cva8(
|
|
|
1470
1548
|
|
|
1471
1549
|
// src/components/ui/LinkButton.tsx
|
|
1472
1550
|
import Link2 from "next/link";
|
|
1473
|
-
import { jsx as
|
|
1551
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1474
1552
|
var LinkButton = ({
|
|
1475
1553
|
disabled = false,
|
|
1476
1554
|
useAnchor = false,
|
|
@@ -1479,7 +1557,7 @@ var LinkButton = ({
|
|
|
1479
1557
|
...props
|
|
1480
1558
|
}) => {
|
|
1481
1559
|
const Component = useAnchor ? "a" : Link2;
|
|
1482
|
-
return /* @__PURE__ */
|
|
1560
|
+
return /* @__PURE__ */ jsx24(
|
|
1483
1561
|
Component,
|
|
1484
1562
|
{
|
|
1485
1563
|
href,
|
|
@@ -1494,7 +1572,7 @@ var LinkButton = ({
|
|
|
1494
1572
|
// src/components/ui/ReadMore.tsx
|
|
1495
1573
|
import { useEffect as useEffect5, useState as useState5 } from "react";
|
|
1496
1574
|
import Markdown from "react-markdown";
|
|
1497
|
-
import { jsx as
|
|
1575
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1498
1576
|
function ReadMore({ text, ...props }) {
|
|
1499
1577
|
const [isExpanded, setIsExpanded] = useState5(false);
|
|
1500
1578
|
const [maxWords, setMaxWords] = useState5(160);
|
|
@@ -1519,9 +1597,9 @@ function ReadMore({ text, ...props }) {
|
|
|
1519
1597
|
}
|
|
1520
1598
|
const toggleText = () => setIsExpanded(!isExpanded);
|
|
1521
1599
|
const snippet = createReadMoreText(text, maxWords, isExpanded);
|
|
1522
|
-
return /* @__PURE__ */
|
|
1523
|
-
/* @__PURE__ */
|
|
1524
|
-
/* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ jsxs14("div", { ...props, children: [
|
|
1601
|
+
/* @__PURE__ */ jsx25("div", { "data-testid": "read-more-text", className: "prose lg:prose-lg", children: /* @__PURE__ */ jsx25(Markdown, { children: snippet }) }),
|
|
1602
|
+
/* @__PURE__ */ jsx25(Button, { className: "mt-2 flex items-center justify-center", variant: "link", onClick: toggleText, children: /* @__PURE__ */ jsxs14("p", { className: "text-sm font-bold underline underline-offset-2", children: [
|
|
1525
1603
|
"Read ",
|
|
1526
1604
|
isExpanded ? "less" : "more"
|
|
1527
1605
|
] }) })
|
|
@@ -1529,17 +1607,17 @@ function ReadMore({ text, ...props }) {
|
|
|
1529
1607
|
}
|
|
1530
1608
|
|
|
1531
1609
|
// src/components/company/CompanyBenefits.tsx
|
|
1532
|
-
import { jsx as
|
|
1610
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1533
1611
|
function CompanyBenefits({ benefits }) {
|
|
1534
1612
|
if (!benefits) return null;
|
|
1535
|
-
return /* @__PURE__ */
|
|
1536
|
-
/* @__PURE__ */
|
|
1537
|
-
/* @__PURE__ */
|
|
1613
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-2", "data-testid": "company-benefits", children: [
|
|
1614
|
+
/* @__PURE__ */ jsx26("h2", { className: "break-word max-w-full text-xl font-bold text-black sm:max-w-2xl md:max-w-lg", children: "Company benefits" }),
|
|
1615
|
+
/* @__PURE__ */ jsx26("ul", { className: "flex flex-col gap-3", children: benefits.map((benefit, i) => /* @__PURE__ */ jsx26("li", { className: "text-base text-grey-80", children: benefit }, `${benefit}-${i}`)) })
|
|
1538
1616
|
] });
|
|
1539
1617
|
}
|
|
1540
1618
|
|
|
1541
1619
|
// src/components/company/CompanyInformation.tsx
|
|
1542
|
-
import { jsx as
|
|
1620
|
+
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1543
1621
|
function CompanyInformation({
|
|
1544
1622
|
name,
|
|
1545
1623
|
how,
|
|
@@ -1547,8 +1625,8 @@ function CompanyInformation({
|
|
|
1547
1625
|
wow,
|
|
1548
1626
|
website
|
|
1549
1627
|
}) {
|
|
1550
|
-
return /* @__PURE__ */
|
|
1551
|
-
/* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-2", children: [
|
|
1629
|
+
/* @__PURE__ */ jsxs16(
|
|
1552
1630
|
"h2",
|
|
1553
1631
|
{
|
|
1554
1632
|
"data-testid": "company-name",
|
|
@@ -1559,22 +1637,22 @@ function CompanyInformation({
|
|
|
1559
1637
|
]
|
|
1560
1638
|
}
|
|
1561
1639
|
),
|
|
1562
|
-
how && /* @__PURE__ */
|
|
1563
|
-
mission && /* @__PURE__ */
|
|
1564
|
-
/* @__PURE__ */
|
|
1565
|
-
/* @__PURE__ */
|
|
1566
|
-
/* @__PURE__ */
|
|
1640
|
+
how && /* @__PURE__ */ jsx27("p", { "data-testid": "company-information", className: "text-base text-grey-80", children: how }),
|
|
1641
|
+
mission && /* @__PURE__ */ jsxs16("div", { className: "flex gap-2", children: [
|
|
1642
|
+
/* @__PURE__ */ jsx27("span", { children: "\u{1F680}" }),
|
|
1643
|
+
/* @__PURE__ */ jsxs16("p", { className: "text-base text-grey-80", children: [
|
|
1644
|
+
/* @__PURE__ */ jsx27("span", { className: "pr-1 font-bold", children: "Mission" }),
|
|
1567
1645
|
mission
|
|
1568
1646
|
] })
|
|
1569
1647
|
] }),
|
|
1570
|
-
wow && /* @__PURE__ */
|
|
1571
|
-
/* @__PURE__ */
|
|
1572
|
-
/* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
1648
|
+
wow && /* @__PURE__ */ jsxs16("div", { className: "flex gap-2", children: [
|
|
1649
|
+
/* @__PURE__ */ jsx27("span", { children: "\u{1F31F}" }),
|
|
1650
|
+
/* @__PURE__ */ jsxs16("p", { className: "text-base text-grey-80", children: [
|
|
1651
|
+
/* @__PURE__ */ jsx27("span", { className: "pr-1 font-bold", children: "Wow Factor" }),
|
|
1574
1652
|
wow
|
|
1575
1653
|
] })
|
|
1576
1654
|
] }),
|
|
1577
|
-
website && /* @__PURE__ */
|
|
1655
|
+
website && /* @__PURE__ */ jsx27("div", { className: "pt-2", children: /* @__PURE__ */ jsx27(
|
|
1578
1656
|
LinkButton,
|
|
1579
1657
|
{
|
|
1580
1658
|
"data-testid": "company-website-link",
|
|
@@ -1588,22 +1666,22 @@ function CompanyInformation({
|
|
|
1588
1666
|
}
|
|
1589
1667
|
|
|
1590
1668
|
// src/components/company/CompanyTake.tsx
|
|
1591
|
-
import { jsx as
|
|
1669
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1592
1670
|
function CompanyTake({ content, avatarSrc }) {
|
|
1593
1671
|
if (!content) return null;
|
|
1594
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ jsxs17(
|
|
1595
1673
|
"div",
|
|
1596
1674
|
{
|
|
1597
1675
|
"data-testid": "company-take",
|
|
1598
1676
|
className: "align-center w-full justify-start rounded-2xl bg-green-90 p-6",
|
|
1599
1677
|
children: [
|
|
1600
|
-
/* @__PURE__ */
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */
|
|
1603
|
-
/* @__PURE__ */
|
|
1604
|
-
/* @__PURE__ */
|
|
1605
|
-
/* @__PURE__ */
|
|
1606
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ jsx28("p", { className: "text-lg font-bold text-white sm:text-xl", children: "The Real Dill \u2618\uFE0F" }),
|
|
1679
|
+
/* @__PURE__ */ jsx28("div", { className: "mt-2 flex items-center justify-start", children: /* @__PURE__ */ jsx28("p", { className: "text-sm font-normal text-grey-10", children: content }) }),
|
|
1680
|
+
/* @__PURE__ */ jsxs17("div", { className: "mt-8 flex w-full items-center gap-3", children: [
|
|
1681
|
+
/* @__PURE__ */ jsx28(Avatar, { name: "Jon Lee", src: avatarSrc }),
|
|
1682
|
+
/* @__PURE__ */ jsxs17("div", { className: "flex flex-col flex-wrap items-start", children: [
|
|
1683
|
+
/* @__PURE__ */ jsx28("p", { className: "text-sm font-bold text-white", children: "Jon Lee, PT, DPT, OCS, FAAOMPT, MBA" }),
|
|
1684
|
+
/* @__PURE__ */ jsx28("p", { className: "text-xs font-normal text-grey-30", children: "Pickle co-founder" })
|
|
1607
1685
|
] })
|
|
1608
1686
|
] })
|
|
1609
1687
|
]
|
|
@@ -1612,17 +1690,17 @@ function CompanyTake({ content, avatarSrc }) {
|
|
|
1612
1690
|
}
|
|
1613
1691
|
|
|
1614
1692
|
// src/components/jobPost/JobDescription.tsx
|
|
1615
|
-
import { jsx as
|
|
1693
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1616
1694
|
function JobDescription({ description }) {
|
|
1617
1695
|
if (!description) return null;
|
|
1618
|
-
return /* @__PURE__ */
|
|
1619
|
-
/* @__PURE__ */
|
|
1620
|
-
/* @__PURE__ */
|
|
1696
|
+
return /* @__PURE__ */ jsxs18("div", { className: "flex w-full flex-col gap-2", children: [
|
|
1697
|
+
/* @__PURE__ */ jsx29("h3", { className: "text-xl font-bold", children: "Job Description" }),
|
|
1698
|
+
/* @__PURE__ */ jsx29(ReadMore, { text: description })
|
|
1621
1699
|
] });
|
|
1622
1700
|
}
|
|
1623
1701
|
|
|
1624
1702
|
// src/components/jobPost/JobHeader.tsx
|
|
1625
|
-
import { Dot } from "lucide-react";
|
|
1703
|
+
import { Dot as Dot2 } from "lucide-react";
|
|
1626
1704
|
import Image2 from "next/image";
|
|
1627
1705
|
|
|
1628
1706
|
// src/components/buttons/BackButton.tsx
|
|
@@ -1630,12 +1708,12 @@ import { X as X4 } from "lucide-react";
|
|
|
1630
1708
|
import { useRouter } from "next/navigation";
|
|
1631
1709
|
|
|
1632
1710
|
// src/hooks/useWindowHistory.ts
|
|
1633
|
-
import { useContext } from "react";
|
|
1711
|
+
import { useContext as useContext2 } from "react";
|
|
1634
1712
|
|
|
1635
1713
|
// src/contexts/WindowHistoryProvider.tsx
|
|
1636
1714
|
import { useSearchParams } from "next/navigation";
|
|
1637
1715
|
import { createContext, useEffect as useEffect6, useMemo, useState as useState6 } from "react";
|
|
1638
|
-
import { jsx as
|
|
1716
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1639
1717
|
var WindowHistoryContext = createContext({});
|
|
1640
1718
|
function WindowHistoryProvider({ children }) {
|
|
1641
1719
|
const [history, setHistory] = useState6([]);
|
|
@@ -1646,20 +1724,17 @@ function WindowHistoryProvider({ children }) {
|
|
|
1646
1724
|
);
|
|
1647
1725
|
}, [searchParams]);
|
|
1648
1726
|
const contextValue = useMemo(() => ({ history }), [history]);
|
|
1649
|
-
return /* @__PURE__ */
|
|
1727
|
+
return /* @__PURE__ */ jsx30(WindowHistoryContext.Provider, { value: contextValue, children });
|
|
1650
1728
|
}
|
|
1651
1729
|
|
|
1652
1730
|
// src/hooks/useWindowHistory.ts
|
|
1653
1731
|
function useWindowHistory() {
|
|
1654
|
-
const windowHistoryContext =
|
|
1655
|
-
if (Object.keys(windowHistoryContext).length === 0) {
|
|
1656
|
-
throw new Error("useWindowHistory was used outside of its WindowHistoryContext");
|
|
1657
|
-
}
|
|
1732
|
+
const windowHistoryContext = useContext2(WindowHistoryContext);
|
|
1658
1733
|
return windowHistoryContext;
|
|
1659
1734
|
}
|
|
1660
1735
|
|
|
1661
1736
|
// src/components/buttons/BackButton.tsx
|
|
1662
|
-
import { jsx as
|
|
1737
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1663
1738
|
function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
1664
1739
|
const { history } = useWindowHistory();
|
|
1665
1740
|
const router = useRouter();
|
|
@@ -1668,7 +1743,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1668
1743
|
const previous = history[history.length - 2];
|
|
1669
1744
|
history.length > 1 && isAcceptedRoute(previous) ? router.back() : router.push(fallbackHref ?? "/");
|
|
1670
1745
|
};
|
|
1671
|
-
return /* @__PURE__ */
|
|
1746
|
+
return /* @__PURE__ */ jsx31(
|
|
1672
1747
|
Icon,
|
|
1673
1748
|
{
|
|
1674
1749
|
"aria-label": "back button",
|
|
@@ -1677,7 +1752,7 @@ function BackButton({ acceptedRoutes, fallbackHref, className, ...props }) {
|
|
|
1677
1752
|
onClick: goBack,
|
|
1678
1753
|
className,
|
|
1679
1754
|
...props,
|
|
1680
|
-
children: /* @__PURE__ */
|
|
1755
|
+
children: /* @__PURE__ */ jsx31(X4, {})
|
|
1681
1756
|
}
|
|
1682
1757
|
);
|
|
1683
1758
|
}
|
|
@@ -1729,7 +1804,7 @@ var iconMap = {
|
|
|
1729
1804
|
};
|
|
1730
1805
|
|
|
1731
1806
|
// src/components/jobPost/JobHeader.tsx
|
|
1732
|
-
import { jsx as
|
|
1807
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1733
1808
|
function JobHeader({
|
|
1734
1809
|
title,
|
|
1735
1810
|
subtitles,
|
|
@@ -1745,9 +1820,9 @@ function JobHeader({
|
|
|
1745
1820
|
}) {
|
|
1746
1821
|
const renderIcon = (icon) => {
|
|
1747
1822
|
const Icon2 = iconMap[icon];
|
|
1748
|
-
return /* @__PURE__ */
|
|
1823
|
+
return /* @__PURE__ */ jsx32(Icon2, { size: 18 });
|
|
1749
1824
|
};
|
|
1750
|
-
return /* @__PURE__ */
|
|
1825
|
+
return /* @__PURE__ */ jsxs19(
|
|
1751
1826
|
"div",
|
|
1752
1827
|
{
|
|
1753
1828
|
"data-testid": "job-header-root",
|
|
@@ -1756,8 +1831,8 @@ function JobHeader({
|
|
|
1756
1831
|
!standalone && "rounded-3xl"
|
|
1757
1832
|
),
|
|
1758
1833
|
children: [
|
|
1759
|
-
!standalone && /* @__PURE__ */
|
|
1760
|
-
/* @__PURE__ */
|
|
1834
|
+
!standalone && /* @__PURE__ */ jsxs19("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: [
|
|
1835
|
+
/* @__PURE__ */ jsx32(
|
|
1761
1836
|
Image2,
|
|
1762
1837
|
{
|
|
1763
1838
|
className: "h-full w-full rounded-t-3xl object-cover",
|
|
@@ -1766,7 +1841,7 @@ function JobHeader({
|
|
|
1766
1841
|
fill: true
|
|
1767
1842
|
}
|
|
1768
1843
|
),
|
|
1769
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ jsx32(
|
|
1770
1845
|
BackButton,
|
|
1771
1846
|
{
|
|
1772
1847
|
acceptedRoutes: backAcceptedRoutes,
|
|
@@ -1775,12 +1850,12 @@ function JobHeader({
|
|
|
1775
1850
|
"data-testid": "job-header-back-button"
|
|
1776
1851
|
}
|
|
1777
1852
|
),
|
|
1778
|
-
/* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ jsx32(
|
|
1779
1854
|
"div",
|
|
1780
1855
|
{
|
|
1781
1856
|
className: "absolute left-4 top-8 md:left-6 md:top-16 lg:top-24",
|
|
1782
1857
|
"data-testid": "job-header-avatar",
|
|
1783
|
-
children: /* @__PURE__ */
|
|
1858
|
+
children: /* @__PURE__ */ jsx32(
|
|
1784
1859
|
Avatar,
|
|
1785
1860
|
{
|
|
1786
1861
|
size: "large",
|
|
@@ -1794,9 +1869,9 @@ function JobHeader({
|
|
|
1794
1869
|
}
|
|
1795
1870
|
)
|
|
1796
1871
|
] }),
|
|
1797
|
-
/* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
1799
|
-
standalone && /* @__PURE__ */
|
|
1872
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex w-full flex-col items-start justify-start gap-4 px-6", children: [
|
|
1873
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex flex-col md:flex-row", children: [
|
|
1874
|
+
standalone && /* @__PURE__ */ jsx32("div", { className: "-mt-4 mr-4 md:mt-0", "data-testid": "job-header-avatar", children: /* @__PURE__ */ jsx32(
|
|
1800
1875
|
Avatar,
|
|
1801
1876
|
{
|
|
1802
1877
|
size: "large",
|
|
@@ -1807,26 +1882,26 @@ function JobHeader({
|
|
|
1807
1882
|
rel: "noopener noreferrer"
|
|
1808
1883
|
}
|
|
1809
1884
|
) }),
|
|
1810
|
-
/* @__PURE__ */
|
|
1885
|
+
/* @__PURE__ */ jsx32("div", { className: "prose mt-4 flex w-full items-center text-grey-80 lg:prose-lg", children: subtitles?.map((subtitle, i) => /* @__PURE__ */ jsxs19(
|
|
1811
1886
|
"div",
|
|
1812
1887
|
{
|
|
1813
1888
|
"data-testid": `job-header-subtitle-${i}`,
|
|
1814
1889
|
className: "flex items-center",
|
|
1815
1890
|
children: [
|
|
1816
1891
|
subtitle,
|
|
1817
|
-
i < subtitles.length - 1 && /* @__PURE__ */
|
|
1892
|
+
i < subtitles.length - 1 && /* @__PURE__ */ jsx32(Dot2, { className: "mx-1 shrink-0", size: 10 })
|
|
1818
1893
|
]
|
|
1819
1894
|
},
|
|
1820
1895
|
subtitle
|
|
1821
1896
|
)) })
|
|
1822
1897
|
] }),
|
|
1823
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ jsxs19(
|
|
1824
1899
|
"div",
|
|
1825
1900
|
{
|
|
1826
1901
|
"data-testid": "job-header-content",
|
|
1827
1902
|
className: "mt-2 flex w-full flex-row flex-wrap items-center justify-between gap-1",
|
|
1828
1903
|
children: [
|
|
1829
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ jsx32(
|
|
1830
1905
|
"h2",
|
|
1831
1906
|
{
|
|
1832
1907
|
"data-testid": "job-header-title",
|
|
@@ -1834,7 +1909,7 @@ function JobHeader({
|
|
|
1834
1909
|
children: title
|
|
1835
1910
|
}
|
|
1836
1911
|
),
|
|
1837
|
-
!!actions && /* @__PURE__ */
|
|
1912
|
+
!!actions && /* @__PURE__ */ jsx32(
|
|
1838
1913
|
"div",
|
|
1839
1914
|
{
|
|
1840
1915
|
className: "flex w-full justify-end gap-2 md:w-auto",
|
|
@@ -1845,12 +1920,12 @@ function JobHeader({
|
|
|
1845
1920
|
]
|
|
1846
1921
|
}
|
|
1847
1922
|
),
|
|
1848
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ jsx32(
|
|
1849
1924
|
"div",
|
|
1850
1925
|
{
|
|
1851
1926
|
"data-testid": "job-header-tags",
|
|
1852
1927
|
className: "flex flex-row flex-wrap items-center justify-start gap-2",
|
|
1853
|
-
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */
|
|
1928
|
+
children: tags?.map(({ name, label, icon }) => /* @__PURE__ */ jsxs19(
|
|
1854
1929
|
Chip_default,
|
|
1855
1930
|
{
|
|
1856
1931
|
size: "small",
|
|
@@ -1859,7 +1934,7 @@ function JobHeader({
|
|
|
1859
1934
|
"data-testid": `job-header-tag-${name}`,
|
|
1860
1935
|
children: [
|
|
1861
1936
|
renderIcon(icon),
|
|
1862
|
-
/* @__PURE__ */
|
|
1937
|
+
/* @__PURE__ */ jsx32("span", { children: label })
|
|
1863
1938
|
]
|
|
1864
1939
|
},
|
|
1865
1940
|
name
|
|
@@ -1882,21 +1957,19 @@ __export(shared_pickle_output_latest_exports, {
|
|
|
1882
1957
|
DetailLevelEnum: () => DetailLevelEnum,
|
|
1883
1958
|
TypeEnum: () => TypeEnum,
|
|
1884
1959
|
UnitTextEnum: () => UnitTextEnum,
|
|
1885
|
-
imageAssetSchema: () => imageAssetSchema,
|
|
1886
|
-
imageSchema: () => imageSchema,
|
|
1887
1960
|
monetaryAmountSchema: () => monetaryAmountSchema,
|
|
1888
1961
|
placeSchema: () => placeSchema,
|
|
1889
1962
|
postalAddressSchema: () => postalAddressSchema,
|
|
1890
1963
|
quantitativeValueSchema: () => quantitativeValueSchema
|
|
1891
1964
|
});
|
|
1892
1965
|
import { z } from "zod";
|
|
1893
|
-
var TypeEnum = z.enum(["
|
|
1966
|
+
var TypeEnum = z.enum(["MONETARY_AMOUNT"]);
|
|
1894
1967
|
var DetailLevelEnum = z.enum(["COUNTRY", "GEO", "LOCALITY", "POSTAL_CODE", "REGION"]);
|
|
1895
1968
|
var UnitTextEnum = z.enum(["DAY", "HOUR", "MONTH", "PER_ACTIVITY", "WEEK", "YEAR"]);
|
|
1896
1969
|
var CurrencyEnum = z.enum(["EUR", "GBP", "USD"]);
|
|
1897
1970
|
var postalAddressSchema = z.object({
|
|
1898
1971
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
1899
|
-
type: z.string().describe("Document type used
|
|
1972
|
+
type: z.string().describe("Document type used within sanity"),
|
|
1900
1973
|
addressCountry: z.string().describe("The physical country as defined in ISO 3166 Alpha-2"),
|
|
1901
1974
|
addressRegion: z.optional(z.string()).describe("The region in which the locality is, and which is in the country."),
|
|
1902
1975
|
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."),
|
|
@@ -1912,7 +1985,7 @@ var placeSchema = z.object({
|
|
|
1912
1985
|
});
|
|
1913
1986
|
var quantitativeValueSchema = z.object({
|
|
1914
1987
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
1915
|
-
type: z.string().describe("Document type used
|
|
1988
|
+
type: z.string().describe("Document type used within sanity"),
|
|
1916
1989
|
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."),
|
|
1917
1990
|
minValue: z.optional(z.number()).describe("The single minium value in a range for a quantitative_value, requires a maximum value."),
|
|
1918
1991
|
maxValue: z.optional(z.number()).describe("The maximum value in a range for a quantitative_value, requires a minimum value."),
|
|
@@ -1920,34 +1993,13 @@ var quantitativeValueSchema = z.object({
|
|
|
1920
1993
|
});
|
|
1921
1994
|
var monetaryAmountSchema = z.object({
|
|
1922
1995
|
version: z.literal("1.0.0").default("1.0.0"),
|
|
1923
|
-
type: z.string().describe("Document type used
|
|
1996
|
+
type: z.string().describe("Document type used within sanity"),
|
|
1924
1997
|
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."),
|
|
1925
1998
|
minValue: z.optional(z.number()).describe("The annualized single minium value in a range for a quantitative_value. Deprecated use value.minValue"),
|
|
1926
1999
|
maxValue: z.optional(z.number()).describe("The annualized maximum value in a range for a quantitative_value. Deprecated use value.maxValue"),
|
|
1927
2000
|
value: z.optional(quantitativeValueSchema).describe("The quantitative_value for a given salary"),
|
|
1928
2001
|
currency: z.optional(CurrencyEnum)
|
|
1929
2002
|
});
|
|
1930
|
-
var imageAssetSchema = z.object({
|
|
1931
|
-
version: z.literal("1.0.0").default("1.0.0"),
|
|
1932
|
-
altText: z.optional(z.string()).describe("The alt text for the image"),
|
|
1933
|
-
assetId: z.optional(z.string()).describe("The asset ID for the image"),
|
|
1934
|
-
description: z.optional(z.string()).describe("The description for the image"),
|
|
1935
|
-
extension: z.optional(z.string()).describe("The extension for the image"),
|
|
1936
|
-
label: z.optional(z.string()).describe("The label for the image"),
|
|
1937
|
-
mimeType: z.optional(z.string()).describe("The mime type for the image"),
|
|
1938
|
-
originalFilename: z.optional(z.string()).describe("The original filename for the image"),
|
|
1939
|
-
path: z.optional(z.string()).describe("The path for the image"),
|
|
1940
|
-
sha1Hash: z.optional(z.string()).describe("The SHA1 hash for the image"),
|
|
1941
|
-
size: z.optional(z.number()).describe("The size for the image"),
|
|
1942
|
-
title: z.optional(z.string()).describe("The title for the image"),
|
|
1943
|
-
uploadId: z.optional(z.string()).describe("The upload ID for the image"),
|
|
1944
|
-
url: z.optional(z.string()).describe("The URL for the image")
|
|
1945
|
-
});
|
|
1946
|
-
var imageSchema = z.object({
|
|
1947
|
-
version: z.literal("1.0.0").default("1.0.0"),
|
|
1948
|
-
type: z.string().describe("Document type used for schema"),
|
|
1949
|
-
asset: z.optional(imageAssetSchema).describe("The asset for the image")
|
|
1950
|
-
});
|
|
1951
2003
|
|
|
1952
2004
|
// src/lib/salaryRange.ts
|
|
1953
2005
|
function salaryRange(salary) {
|
|
@@ -2459,7 +2511,7 @@ function formattedJobLocation(job) {
|
|
|
2459
2511
|
}
|
|
2460
2512
|
|
|
2461
2513
|
// src/components/jobPost/JobPost.tsx
|
|
2462
|
-
import { jsx as
|
|
2514
|
+
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2463
2515
|
function JobPost({
|
|
2464
2516
|
job,
|
|
2465
2517
|
bannerSrc,
|
|
@@ -2503,7 +2555,7 @@ function JobPost({
|
|
|
2503
2555
|
label: formattedLocation
|
|
2504
2556
|
}
|
|
2505
2557
|
].filter((t) => !!t);
|
|
2506
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ jsxs20(
|
|
2507
2559
|
"div",
|
|
2508
2560
|
{
|
|
2509
2561
|
className: cn(
|
|
@@ -2511,13 +2563,12 @@ function JobPost({
|
|
|
2511
2563
|
!standalone && "border-1 rounded-3xl border-grey-5"
|
|
2512
2564
|
),
|
|
2513
2565
|
children: [
|
|
2514
|
-
/* @__PURE__ */
|
|
2566
|
+
/* @__PURE__ */ jsx33(
|
|
2515
2567
|
JobHeader,
|
|
2516
2568
|
{
|
|
2517
2569
|
title: job.title,
|
|
2518
2570
|
bannerSrc,
|
|
2519
2571
|
avatarName: job.hiringOrganization?.companyName,
|
|
2520
|
-
avatarSrc: job.hiringOrganization?.logo?.asset?.url,
|
|
2521
2572
|
subtitles: [job.hiringOrganization?.companyName ?? "", `Posted ${formattedDate}`],
|
|
2522
2573
|
actions,
|
|
2523
2574
|
standalone,
|
|
@@ -2525,29 +2576,29 @@ function JobPost({
|
|
|
2525
2576
|
tags
|
|
2526
2577
|
}
|
|
2527
2578
|
),
|
|
2528
|
-
/* @__PURE__ */
|
|
2529
|
-
/* @__PURE__ */
|
|
2530
|
-
/* @__PURE__ */
|
|
2579
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
2580
|
+
/* @__PURE__ */ jsx33(JobDescription, { description: job.description }),
|
|
2581
|
+
/* @__PURE__ */ jsx33(
|
|
2531
2582
|
CompanyTake,
|
|
2532
2583
|
{
|
|
2533
2584
|
avatarSrc,
|
|
2534
2585
|
content: job.hiringOrganization?.companyNDG?.companyNDGTake
|
|
2535
2586
|
}
|
|
2536
2587
|
),
|
|
2537
|
-
/* @__PURE__ */
|
|
2588
|
+
/* @__PURE__ */ jsx33(
|
|
2538
2589
|
CompanyInformation,
|
|
2539
2590
|
{
|
|
2540
2591
|
name: job.hiringOrganization?.companyName ?? "",
|
|
2541
2592
|
how: job.hiringOrganization?.companyPhilosophy?.companyHow,
|
|
2542
|
-
mission: job.hiringOrganization?.companyPhilosophy?.
|
|
2593
|
+
mission: job.hiringOrganization?.companyPhilosophy?.mission,
|
|
2543
2594
|
wow: job.hiringOrganization?.companyNDG?.companyWow,
|
|
2544
2595
|
website: job.hiringOrganization?.companyWebsite
|
|
2545
2596
|
}
|
|
2546
2597
|
),
|
|
2547
|
-
/* @__PURE__ */
|
|
2598
|
+
/* @__PURE__ */ jsx33(
|
|
2548
2599
|
CompanyBenefits,
|
|
2549
2600
|
{
|
|
2550
|
-
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.
|
|
2601
|
+
benefits: job.hiringOrganization?.companyCareers?.companyBenefits?.map((b) => b.description).filter((d) => d !== void 0)
|
|
2551
2602
|
}
|
|
2552
2603
|
)
|
|
2553
2604
|
] })
|
|
@@ -2583,11 +2634,12 @@ __export(company_service_latest_exports, {
|
|
|
2583
2634
|
TitleEnum: () => TitleEnum,
|
|
2584
2635
|
TypeEnum: () => TypeEnum2,
|
|
2585
2636
|
companyBenefitsSchema: () => companyBenefitsSchema,
|
|
2586
|
-
|
|
2637
|
+
companyCareersPageSchema: () => companyCareersPageSchema,
|
|
2587
2638
|
companyNdgSchema: () => companyNdgSchema,
|
|
2588
2639
|
companyPhilosophySchema: () => companyPhilosophySchema,
|
|
2589
2640
|
companySchema: () => companySchema,
|
|
2590
2641
|
foundingInformationSchema: () => foundingInformationSchema,
|
|
2642
|
+
imageSchema: () => imageSchema,
|
|
2591
2643
|
industrySchema: () => industrySchema,
|
|
2592
2644
|
jobBoardSchema: () => jobBoardSchema,
|
|
2593
2645
|
ngdMetadataSchema: () => ngdMetadataSchema,
|
|
@@ -2601,6 +2653,10 @@ var CategoryEnum = z2.enum(["FINANCIAL", "HEALTH", "PROFESSIONAL_DEVELOPMENT", "
|
|
|
2601
2653
|
var TitleEnum = z2.enum(["DMD", "JD", "MBA", "MD", "MHA", "MPH", "PT", "PH_D", "RN"]);
|
|
2602
2654
|
var PublishStatusEnum = z2.enum(["DRAFT", "IN_REVIEW", "PUBLISHED", "REMOVED"]);
|
|
2603
2655
|
var OfficeTypeEnum = z2.enum(["BRANCH", "HEADQUARTERS", "SATELLITE"]);
|
|
2656
|
+
var imageSchema = z2.object({
|
|
2657
|
+
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2658
|
+
url: z2.string()
|
|
2659
|
+
});
|
|
2604
2660
|
var socialMediaSchema = z2.object({
|
|
2605
2661
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2606
2662
|
url: z2.string().describe("The link to the social media platform"),
|
|
@@ -2608,14 +2664,14 @@ var socialMediaSchema = z2.object({
|
|
|
2608
2664
|
});
|
|
2609
2665
|
var companyBenefitsSchema = z2.object({
|
|
2610
2666
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2611
|
-
type: z2.string().describe("Document type used
|
|
2612
|
-
|
|
2667
|
+
type: z2.string().describe("Document type used within sanity"),
|
|
2668
|
+
name: z2.string(),
|
|
2613
2669
|
description: z2.optional(z2.string()),
|
|
2614
2670
|
category: CategoryEnum
|
|
2615
2671
|
});
|
|
2616
2672
|
var industrySchema = z2.lazy(() => z2.object({
|
|
2617
2673
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2618
|
-
type: z2.string().describe("Document type used
|
|
2674
|
+
type: z2.string().describe("Document type used within sanity"),
|
|
2619
2675
|
name: z2.string(),
|
|
2620
2676
|
description: z2.optional(z2.string()).describe("A brief description of the industry"),
|
|
2621
2677
|
onetIndustryId: z2.optional(z2.string()).describe("ONET industry ID"),
|
|
@@ -2623,7 +2679,7 @@ var industrySchema = z2.lazy(() => z2.object({
|
|
|
2623
2679
|
}));
|
|
2624
2680
|
var jobBoardSchema = z2.object({
|
|
2625
2681
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2626
|
-
type: z2.string().describe("Document type used
|
|
2682
|
+
type: z2.string().describe("Document type used within sanity"),
|
|
2627
2683
|
name: z2.string().describe("The name of the job board"),
|
|
2628
2684
|
description: z2.string().describe("A brief description of the job board"),
|
|
2629
2685
|
logo: z2.optional(imageSchema).describe("The logo of the job board"),
|
|
@@ -2631,7 +2687,7 @@ var jobBoardSchema = z2.object({
|
|
|
2631
2687
|
});
|
|
2632
2688
|
var personSchema = z2.object({
|
|
2633
2689
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2634
|
-
type: z2.string().describe("Document type used
|
|
2690
|
+
type: z2.string().describe("Document type used within sanity"),
|
|
2635
2691
|
firstName: z2.string().describe("The first name of the person"),
|
|
2636
2692
|
lastName: z2.string().describe("The last name of the person"),
|
|
2637
2693
|
title: z2.optional(z2.array(z2.string())).describe("The titles of the degree of the person"),
|
|
@@ -2647,62 +2703,56 @@ var personSchema = z2.object({
|
|
|
2647
2703
|
url: z2.optional(z2.string()).describe("The URL of the person"),
|
|
2648
2704
|
address: z2.optional(placeSchema).describe("The address of the person")
|
|
2649
2705
|
});
|
|
2650
|
-
var
|
|
2706
|
+
var companyCareersPageSchema = z2.object({
|
|
2651
2707
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
jobBoardSlug: z2.optional(z2.array(z2.string())),
|
|
2708
|
+
companyCareersUrl: z2.string().describe("The URL of the company careers page"),
|
|
2709
|
+
companyJobBoard: z2.optional(jobBoardSchema),
|
|
2710
|
+
jobBoardSlug: z2.array(z2.string()),
|
|
2656
2711
|
companyBenefits: z2.optional(z2.array(companyBenefitsSchema)).describe("What are the specific benefits of that company. The benefit is generic.")
|
|
2657
2712
|
});
|
|
2658
2713
|
var companyPhilosophySchema = z2.object({
|
|
2659
2714
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2660
|
-
|
|
2661
|
-
companyMission: z2.optional(z2.string()).describe("The mission statement of the company."),
|
|
2715
|
+
mission: z2.optional(z2.string()).describe("The mission statement of the company."),
|
|
2662
2716
|
companyHow: z2.optional(z2.string()).describe("How does the company achieve its mission"),
|
|
2663
2717
|
companyCulture: z2.optional(z2.array(z2.string())).describe("What are some of the culture aspects of this company?")
|
|
2664
2718
|
});
|
|
2665
2719
|
var companyNdgSchema = z2.object({
|
|
2666
2720
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2667
|
-
type: z2.string().describe("Document type used for schema"),
|
|
2668
2721
|
companyWow: z2.optional(z2.string()).describe("What is the wow of this company?"),
|
|
2669
2722
|
companyNDGTake: z2.optional(z2.string()).describe("What is the NDG POV on this company?"),
|
|
2723
|
+
// Manually edited due to a different naming convention
|
|
2670
2724
|
companyBestFit: z2.optional(z2.array(z2.string())),
|
|
2671
2725
|
companyInterests: z2.optional(z2.array(z2.string()))
|
|
2672
2726
|
});
|
|
2673
2727
|
var foundingInformationSchema = z2.object({
|
|
2674
2728
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
foundedCity: z2.optional(z2.string()),
|
|
2729
|
+
foundedYear: z2.optional(z2.string()),
|
|
2730
|
+
foundingCountry: z2.optional(z2.string()),
|
|
2731
|
+
foundingCity: z2.optional(z2.string()),
|
|
2679
2732
|
founders: z2.optional(z2.array(personSchema))
|
|
2680
2733
|
});
|
|
2681
2734
|
var ngdMetadataSchema = z2.object({
|
|
2682
2735
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2683
|
-
type: z2.string().describe("Document type used for schema"),
|
|
2684
2736
|
lastScraped: z2.optional(z2.string()).describe("Date the last entity was scraped, if applicable"),
|
|
2685
2737
|
scraperVersion: z2.optional(z2.string()),
|
|
2686
2738
|
postProcessorVersion: z2.optional(z2.string()),
|
|
2687
2739
|
uniqueRunId: z2.optional(z2.string()),
|
|
2688
2740
|
postProcessorUniqueRunId: z2.optional(z2.string()),
|
|
2689
|
-
|
|
2741
|
+
shouldThisDocumentBeScraped: z2.optional(z2.boolean())
|
|
2690
2742
|
});
|
|
2691
2743
|
var companySchema = z2.object({
|
|
2692
2744
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2693
|
-
id: z2.string().describe("The NDG specific id for a company. Cannot be changed."),
|
|
2694
|
-
createdAt: z2.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2695
|
-
updatedAt: z2.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2696
2745
|
companyName: z2.string().describe("The name of the company"),
|
|
2697
2746
|
slug: z2.string().describe("The NDG specific slug for a company."),
|
|
2698
|
-
type: z2.string().describe("Document type used
|
|
2747
|
+
type: z2.string().describe("Document type used within sanity"),
|
|
2699
2748
|
logo: z2.optional(imageSchema).describe("The logo of the company"),
|
|
2700
2749
|
companyWebsite: z2.optional(z2.string()).describe("The website of the company"),
|
|
2701
2750
|
socialMedia: z2.optional(z2.array(socialMediaSchema)).describe("The social media links of the company"),
|
|
2702
2751
|
brandColor: z2.optional(z2.string()).describe("The brand color of the company"),
|
|
2703
|
-
companyCareers: z2.optional(
|
|
2752
|
+
companyCareers: z2.optional(companyCareersPageSchema).describe("Career Specific Information for the company."),
|
|
2704
2753
|
companyPhilosophy: z2.optional(companyPhilosophySchema).describe("Company mission,values and how the company achieves its mission."),
|
|
2705
2754
|
companyNDG: z2.optional(companyNdgSchema).describe("Next Degree specific information for the company."),
|
|
2755
|
+
// Manually edited due to a different naming convention
|
|
2706
2756
|
foundingInfo: z2.optional(foundingInformationSchema),
|
|
2707
2757
|
headquartersLocation: z2.optional(placeSchema),
|
|
2708
2758
|
employeeEstimate: z2.optional(z2.string()),
|
|
@@ -2711,7 +2761,7 @@ var companySchema = z2.object({
|
|
|
2711
2761
|
});
|
|
2712
2762
|
var officeSchema = z2.object({
|
|
2713
2763
|
version: z2.literal("1.0.0").default("1.0.0"),
|
|
2714
|
-
type: z2.string().describe("Document type used
|
|
2764
|
+
type: z2.string().describe("Document type used within sanity"),
|
|
2715
2765
|
name: z2.string().describe("Name or nickname for the office (e.g., 'NYC HQ', 'West Coast Branch')"),
|
|
2716
2766
|
officeType: OfficeTypeEnum,
|
|
2717
2767
|
companyId: z2.optional(companySchema),
|
|
@@ -2735,7 +2785,7 @@ var ClinicalSpecialtyEnum = z3.enum(["ANESTHESIOLOGY", "CARDIOLOGY", "CASE_MANAG
|
|
|
2735
2785
|
var jobPostSchema = z3.object({
|
|
2736
2786
|
version: z3.literal("1.0.0").default("1.0.0"),
|
|
2737
2787
|
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."),
|
|
2738
|
-
type: z3.string().describe("Document type used
|
|
2788
|
+
type: z3.string().describe("Document type used within sanity"),
|
|
2739
2789
|
createdAt: z3.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2740
2790
|
updatedAt: z3.string().datetime().describe("Time document was created. Autoset by Sanity"),
|
|
2741
2791
|
dateAdded: z3.optional(z3.string().datetime()).describe("The date the job was added to the platform"),
|
|
@@ -2783,6 +2833,7 @@ export {
|
|
|
2783
2833
|
Counter,
|
|
2784
2834
|
Icon,
|
|
2785
2835
|
Input_default as Input,
|
|
2836
|
+
InputOtp,
|
|
2786
2837
|
JobDescription,
|
|
2787
2838
|
JobHeader,
|
|
2788
2839
|
JobPost,
|